extended list contacts GET endpoint

* exposed some more fields

see #675
This commit is contained in:
Bernhard B
2025-03-29 22:33:37 +01:00
parent e452205c38
commit bf929a3aa1
4 changed files with 168 additions and 2 deletions

View File

@@ -2594,6 +2594,26 @@ const docTemplate = `{
}
}
},
"client.ContactProfile": {
"type": "object",
"properties": {
"about": {
"type": "string"
},
"given_name": {
"type": "string"
},
"has_avatar": {
"type": "boolean"
},
"last_updated_timestamp": {
"type": "integer"
},
"lastname": {
"type": "string"
}
}
},
"client.GroupEntry": {
"type": "object",
"properties": {
@@ -2670,15 +2690,27 @@ const docTemplate = `{
"color": {
"type": "string"
},
"given_name": {
"type": "string"
},
"message_expiration": {
"type": "string"
},
"name": {
"type": "string"
},
"nickname": {
"$ref": "#/definitions/client.Nickname"
},
"note": {
"type": "string"
},
"number": {
"type": "string"
},
"profile": {
"$ref": "#/definitions/client.ContactProfile"
},
"profile_name": {
"type": "string"
},
@@ -2710,6 +2742,20 @@ const docTemplate = `{
}
}
},
"client.Nickname": {
"type": "object",
"properties": {
"family_name": {
"type": "string"
},
"given_name": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"client.SetUsernameResponse": {
"type": "object",
"properties": {

View File

@@ -2591,6 +2591,26 @@
}
}
},
"client.ContactProfile": {
"type": "object",
"properties": {
"about": {
"type": "string"
},
"given_name": {
"type": "string"
},
"has_avatar": {
"type": "boolean"
},
"last_updated_timestamp": {
"type": "integer"
},
"lastname": {
"type": "string"
}
}
},
"client.GroupEntry": {
"type": "object",
"properties": {
@@ -2667,15 +2687,27 @@
"color": {
"type": "string"
},
"given_name": {
"type": "string"
},
"message_expiration": {
"type": "string"
},
"name": {
"type": "string"
},
"nickname": {
"$ref": "#/definitions/client.Nickname"
},
"note": {
"type": "string"
},
"number": {
"type": "string"
},
"profile": {
"$ref": "#/definitions/client.ContactProfile"
},
"profile_name": {
"type": "string"
},
@@ -2707,6 +2739,20 @@
}
}
},
"client.Nickname": {
"type": "object",
"properties": {
"family_name": {
"type": "string"
},
"given_name": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"client.SetUsernameResponse": {
"type": "object",
"properties": {

View File

@@ -309,6 +309,19 @@ definitions:
type: string
type: array
type: object
client.ContactProfile:
properties:
about:
type: string
given_name:
type: string
has_avatar:
type: boolean
last_updated_timestamp:
type: integer
lastname:
type: string
type: object
client.GroupEntry:
properties:
admins:
@@ -359,12 +372,20 @@ definitions:
type: boolean
color:
type: string
given_name:
type: string
message_expiration:
type: string
name:
type: string
nickname:
$ref: '#/definitions/client.Nickname'
note:
type: string
number:
type: string
profile:
$ref: '#/definitions/client.ContactProfile'
profile_name:
type: string
username:
@@ -385,6 +406,15 @@ definitions:
url:
type: string
type: object
client.Nickname:
properties:
family_name:
type: string
given_name:
type: string
name:
type: string
type: object
client.SetUsernameResponse:
properties:
username: