@webitel/api-services 26.8.47 → 26.8.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/clients/catalog/__tests__/catalog.spec.ts +79 -0
- package/src/api/clients/catalog/catalog.ts +16 -3
- package/src/api/clients/media/media.ts +5 -0
- package/src/gen/_models/apiUserSetting.ts +1 -0
- package/src/gen/_models/deleteMediaFileParams.ts +1 -0
- package/src/gen/_models/deleteRoleParams.ts +17 -0
- package/src/gen/_models/engineAttemptHistory.ts +1 -0
- package/src/gen/_models/engineCreateRoutingSchemaRequest.ts +1 -0
- package/src/gen/_models/engineCreateSchemaVariableRequest.ts +1 -0
- package/src/gen/_models/engineCreateSystemSettingRequest.ts +1 -0
- package/src/gen/_models/engineQueueType.ts +24 -0
- package/src/gen/_models/engineRoutingSchema.ts +1 -0
- package/src/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.ts +1 -0
- package/src/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.ts +1 -0
- package/src/gen/_models/engineSchemaVariable.ts +1 -0
- package/src/gen/_models/engineSchemaVariablesServicePatchSchemaVariableBody.ts +1 -0
- package/src/gen/_models/engineSchemaVariablesServiceUpdateSchemaVariableBody.ts +1 -0
- package/src/gen/_models/engineSchemaVersion.ts +1 -0
- package/src/gen/_models/engineSearchHistoryCallRequest.ts +2 -0
- package/src/gen/_models/engineSystemSetting.ts +1 -0
- package/src/gen/_models/engineSystemSettingServicePatchSystemSettingBody.ts +1 -0
- package/src/gen/_models/engineSystemSettingServiceUpdateSystemSettingBody.ts +1 -1
- package/src/gen/_models/index.ts +25 -2
- package/src/gen/_models/locateArticleParams.ts +13 -0
- package/src/gen/_models/readRoleParams.ts +15 -0
- package/src/gen/_models/roleMetadataParams.ts +17 -0
- package/src/gen/_models/searchHistoryCallExcludedQueueTypesItem.ts +24 -0
- package/src/gen/_models/searchHistoryCallParams.ts +2 -0
- package/src/gen/_models/searchRecordAvailableRolesParams.ts +53 -0
- package/src/gen/_models/searchRetrievalParams.ts +3 -2
- package/src/gen/_models/searchRetrievalTagMatch.ts +1 -0
- package/src/gen/_models/searchRolesParams.ts +50 -0
- package/src/gen/_models/updateArticle2Params.ts +13 -0
- package/src/gen/_models/updateArticleParams.ts +13 -0
- package/src/gen/_models/updateModel2Params.ts +13 -0
- package/src/gen/_models/updateModelParams.ts +13 -0
- package/src/gen/_models/updateSpace2Params.ts +13 -0
- package/src/gen/_models/updateSpaceParams.ts +13 -0
- package/src/gen/_models/webitelCasesCaseTimelinePostprocessingResult.ts +13 -0
- package/src/gen/_models/webitelCasesCaseTimelineVariable.ts +11 -0
- package/src/gen/_models/webitelCasesGetTimelineItemInfoResponse.ts +13 -0
- package/src/gen/_models/webitelImApiGatewayV1GetUpdatesRequest.ts +11 -0
- package/src/gen/_models/webitelImApiGatewayV1GetUpdatesResponse.ts +19 -0
- package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.ts +0 -10
- package/src/gen/_models/webitelImApiGatewayV1MemberReadState.ts +19 -0
- package/src/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SearchThreadResponse.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1Thread.ts +8 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadMemberChange.ts +15 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadMemberChangeAction.ts +16 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +27 -0
- package/src/gen/_models/webitelImApiGatewayV1UpdatedMessage.ts +41 -0
- package/src/gen/_models/webitelImApiGatewayV1UpdatedMessageMetadata.ts +10 -0
- package/src/gen/_models/webitelKbArticle.ts +3 -0
- package/src/gen/_models/webitelKbSemanticSearchRequest.ts +1 -1
- package/src/gen/_models/webitelKbTagMatch.ts +3 -1
- package/src/gen-wire/_models/deleteMediaFileParams.ts +1 -0
- package/src/gen-wire/_models/engineAttemptHistory.ts +1 -0
- package/src/gen-wire/_models/engineQueueType.ts +24 -0
- package/src/gen-wire/_models/engineSearchHistoryCallRequest.ts +2 -0
- package/src/gen-wire/_models/index.ts +20 -2
- package/src/gen-wire/_models/locateArticleParams.ts +13 -0
- package/src/gen-wire/_models/searchHistoryCallExcludedQueueTypesItem.ts +24 -0
- package/src/gen-wire/_models/searchHistoryCallParams.ts +2 -0
- package/src/gen-wire/_models/searchRetrievalParams.ts +3 -2
- package/src/gen-wire/_models/searchRetrievalTagMatch.ts +1 -0
- package/src/gen-wire/_models/updateArticle2Params.ts +13 -0
- package/src/gen-wire/_models/updateArticleParams.ts +13 -0
- package/src/gen-wire/_models/updateModel2Params.ts +13 -0
- package/src/gen-wire/_models/updateModelParams.ts +13 -0
- package/src/gen-wire/_models/updateSpace2Params.ts +13 -0
- package/src/gen-wire/_models/updateSpaceParams.ts +13 -0
- package/src/gen-wire/_models/webitelCasesCaseTimelinePostprocessingResult.ts +13 -0
- package/src/gen-wire/_models/webitelCasesCaseTimelineVariable.ts +11 -0
- package/src/gen-wire/_models/webitelCasesGetTimelineItemInfoResponse.ts +13 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1GetUpdatesRequest.ts +11 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1GetUpdatesResponse.ts +19 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.ts +0 -10
- package/src/gen-wire/_models/webitelImApiGatewayV1MemberReadState.ts +19 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +8 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadMemberChange.ts +15 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadMemberChangeAction.ts +16 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +27 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.ts +41 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1UpdatedMessageMetadata.ts +10 -0
- package/src/gen-wire/_models/webitelKbArticle.ts +3 -0
- package/src/gen-wire/_models/webitelKbSemanticSearchRequest.ts +1 -1
- package/src/gen-wire/_models/webitelKbTagMatch.ts +3 -1
- package/src/gen-wire/articles/articles.ts +42 -3
- package/src/gen-wire/articles/articles.zod.ts +586 -0
- package/src/gen-wire/call-service/call-service.zod.ts +40 -0
- package/src/gen-wire/case-timeline/case-timeline.ts +15 -0
- package/src/gen-wire/case-timeline/case-timeline.zod.ts +35 -0
- package/src/gen-wire/embedding-models/embedding-models.ts +18 -2
- package/src/gen-wire/embedding-models/embedding-models.zod.ts +18 -0
- package/src/gen-wire/index.ts +41 -17
- package/src/gen-wire/index.zod.ts +1 -0
- package/src/gen-wire/media-file-service/media-file-service.zod.ts +1 -0
- package/src/gen-wire/member-service/member-service.zod.ts +1 -0
- package/src/gen-wire/retrieval/retrieval.zod.ts +6 -4
- package/src/gen-wire/spaces/spaces.ts +18 -10
- package/src/gen-wire/spaces/spaces.zod.ts +18 -0
- package/src/gen-wire/timeline/timeline.ts +3 -3
- package/src/gen-wire/timeline/timeline.zod.ts +2 -2
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +18 -189
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +597 -309
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.ts +47 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +3350 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/catalog/catalog.d.ts +4 -1
- package/types/api/clients/media/media.d.ts +1 -0
- package/types/gen/_models/apiUserSetting.d.ts +1 -0
- package/types/gen/_models/deleteMediaFileParams.d.ts +1 -0
- package/types/gen/_models/deleteRoleParams.d.ts +16 -0
- package/types/gen/_models/engineAttemptHistory.d.ts +1 -0
- package/types/gen/_models/engineCreateRoutingSchemaRequest.d.ts +1 -0
- package/types/gen/_models/engineCreateSchemaVariableRequest.d.ts +1 -0
- package/types/gen/_models/engineCreateSystemSettingRequest.d.ts +1 -0
- package/types/gen/_models/engineQueueType.d.ts +21 -0
- package/types/gen/_models/engineRoutingSchema.d.ts +1 -0
- package/types/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.d.ts +1 -0
- package/types/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.d.ts +1 -0
- package/types/gen/_models/engineSchemaVariable.d.ts +1 -0
- package/types/gen/_models/engineSchemaVariablesServicePatchSchemaVariableBody.d.ts +1 -0
- package/types/gen/_models/engineSchemaVariablesServiceUpdateSchemaVariableBody.d.ts +1 -0
- package/types/gen/_models/engineSchemaVersion.d.ts +1 -0
- package/types/gen/_models/engineSearchHistoryCallRequest.d.ts +2 -0
- package/types/gen/_models/engineSystemSetting.d.ts +1 -0
- package/types/gen/_models/engineSystemSettingServicePatchSystemSettingBody.d.ts +1 -0
- package/types/gen/_models/engineSystemSettingServiceUpdateSystemSettingBody.d.ts +1 -1
- package/types/gen/_models/index.d.ts +25 -2
- package/types/gen/_models/locateArticleParams.d.ts +12 -0
- package/types/gen/_models/readRoleParams.d.ts +14 -0
- package/types/gen/_models/roleMetadataParams.d.ts +16 -0
- package/types/gen/_models/searchHistoryCallExcludedQueueTypesItem.d.ts +21 -0
- package/types/gen/_models/searchHistoryCallParams.d.ts +2 -0
- package/types/gen/_models/searchRecordAvailableRolesParams.d.ts +52 -0
- package/types/gen/_models/searchRetrievalParams.d.ts +3 -2
- package/types/gen/_models/searchRetrievalTagMatch.d.ts +1 -0
- package/types/gen/_models/searchRolesParams.d.ts +49 -0
- package/types/gen/_models/updateArticle2Params.d.ts +12 -0
- package/types/gen/_models/updateArticleParams.d.ts +12 -0
- package/types/gen/_models/updateModel2Params.d.ts +12 -0
- package/types/gen/_models/updateModelParams.d.ts +12 -0
- package/types/gen/_models/updateSpace2Params.d.ts +12 -0
- package/types/gen/_models/updateSpaceParams.d.ts +12 -0
- package/types/gen/_models/webitelCasesCaseTimelinePostprocessingResult.d.ts +12 -0
- package/types/gen/_models/webitelCasesCaseTimelineVariable.d.ts +10 -0
- package/types/gen/_models/webitelCasesGetTimelineItemInfoResponse.d.ts +12 -0
- package/types/gen/_models/webitelImApiGatewayV1GetUpdatesRequest.d.ts +10 -0
- package/types/gen/_models/webitelImApiGatewayV1GetUpdatesResponse.d.ts +18 -0
- package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.d.ts +0 -10
- package/types/gen/_models/webitelImApiGatewayV1MemberReadState.d.ts +18 -0
- package/types/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadMemberChange.d.ts +14 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadMemberChangeAction.d.ts +12 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +26 -0
- package/types/gen/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +40 -0
- package/types/gen/_models/webitelImApiGatewayV1UpdatedMessageMetadata.d.ts +9 -0
- package/types/gen/_models/webitelKbArticle.d.ts +3 -0
- package/types/gen/_models/webitelKbSemanticSearchRequest.d.ts +1 -1
- package/types/gen/_models/webitelKbTagMatch.d.ts +3 -1
- package/types/gen-wire/_models/deleteMediaFileParams.d.ts +1 -0
- package/types/gen-wire/_models/engineAttemptHistory.d.ts +1 -0
- package/types/gen-wire/_models/engineQueueType.d.ts +21 -0
- package/types/gen-wire/_models/engineSearchHistoryCallRequest.d.ts +2 -0
- package/types/gen-wire/_models/index.d.ts +20 -2
- package/types/gen-wire/_models/locateArticleParams.d.ts +12 -0
- package/types/gen-wire/_models/searchHistoryCallExcludedQueueTypesItem.d.ts +21 -0
- package/types/gen-wire/_models/searchHistoryCallParams.d.ts +2 -0
- package/types/gen-wire/_models/searchRetrievalParams.d.ts +3 -2
- package/types/gen-wire/_models/searchRetrievalTagMatch.d.ts +1 -0
- package/types/gen-wire/_models/updateArticle2Params.d.ts +12 -0
- package/types/gen-wire/_models/updateArticleParams.d.ts +12 -0
- package/types/gen-wire/_models/updateModel2Params.d.ts +12 -0
- package/types/gen-wire/_models/updateModelParams.d.ts +12 -0
- package/types/gen-wire/_models/updateSpace2Params.d.ts +12 -0
- package/types/gen-wire/_models/updateSpaceParams.d.ts +12 -0
- package/types/gen-wire/_models/webitelCasesCaseTimelinePostprocessingResult.d.ts +12 -0
- package/types/gen-wire/_models/webitelCasesCaseTimelineVariable.d.ts +10 -0
- package/types/gen-wire/_models/webitelCasesGetTimelineItemInfoResponse.d.ts +12 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1GetUpdatesRequest.d.ts +10 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1GetUpdatesResponse.d.ts +18 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.d.ts +0 -10
- package/types/gen-wire/_models/webitelImApiGatewayV1MemberReadState.d.ts +18 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadMemberChange.d.ts +14 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadMemberChangeAction.d.ts +12 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +26 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +40 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1UpdatedMessageMetadata.d.ts +9 -0
- package/types/gen-wire/_models/webitelKbArticle.d.ts +3 -0
- package/types/gen-wire/_models/webitelKbSemanticSearchRequest.d.ts +1 -1
- package/types/gen-wire/_models/webitelKbTagMatch.d.ts +3 -1
- package/types/gen-wire/articles/articles.d.ts +6 -4
- package/types/gen-wire/articles/articles.zod.d.ts +221 -0
- package/types/gen-wire/call-service/call-service.zod.d.ts +29 -0
- package/types/gen-wire/case-timeline/case-timeline.d.ts +3 -1
- package/types/gen-wire/case-timeline/case-timeline.zod.d.ts +23 -0
- package/types/gen-wire/embedding-models/embedding-models.d.ts +3 -3
- package/types/gen-wire/embedding-models/embedding-models.zod.d.ts +6 -0
- package/types/gen-wire/index.d.ts +10 -8
- package/types/gen-wire/index.zod.d.ts +1 -0
- package/types/gen-wire/media-file-service/media-file-service.zod.d.ts +1 -0
- package/types/gen-wire/member-service/member-service.zod.d.ts +1 -0
- package/types/gen-wire/retrieval/retrieval.zod.d.ts +4 -2
- package/types/gen-wire/spaces/spaces.d.ts +3 -3
- package/types/gen-wire/spaces/spaces.zod.d.ts +6 -0
- package/types/gen-wire/timeline/timeline.d.ts +2 -2
- package/types/gen-wire/timeline/timeline.zod.d.ts +2 -2
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +3 -72
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +201 -96
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.d.ts +13 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +1122 -0
- package/src/gen/_models/webitelImApiGatewayV1MessageDeliveryStatus.ts +0 -27
- package/src/gen/_models/webitelImApiGatewayV1MessageRecipientStatus.ts +0 -24
- package/src/gen-wire/_models/webitelImApiGatewayV1MessageDeliveryStatus.ts +0 -27
- package/src/gen-wire/_models/webitelImApiGatewayV1MessageRecipientStatus.ts +0 -24
- package/types/gen/_models/webitelImApiGatewayV1MessageDeliveryStatus.d.ts +0 -24
- package/types/gen/_models/webitelImApiGatewayV1MessageRecipientStatus.d.ts +0 -23
- package/types/gen-wire/_models/webitelImApiGatewayV1MessageDeliveryStatus.d.ts +0 -24
- package/types/gen-wire/_models/webitelImApiGatewayV1MessageRecipientStatus.d.ts +0 -23
|
@@ -59,15 +59,14 @@ export const ThreadManagementSearchQueryParams = zod.object({
|
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
export const threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
62
|
-
export const threadManagementSearchResponseItemsItemLastMsgDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
63
62
|
export const threadManagementSearchResponseItemsItemLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
64
63
|
export const threadManagementSearchResponseItemsItemLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
65
64
|
export const threadManagementSearchResponseItemsItemLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
|
|
66
65
|
export const threadManagementSearchResponseItemsItemLastMsgReactedMetadataReactedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
67
66
|
export const threadManagementSearchResponseItemsItemLastMsgReplyToSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
68
67
|
export const threadManagementSearchResponseItemsItemLastMsgSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
69
|
-
export const threadManagementSearchResponseItemsItemLastMsgStatusesItemStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
70
68
|
export const threadManagementSearchResponseItemsItemMembersItemRoleDefault = `ROLE_UNSPECIFIED`;
|
|
69
|
+
export const threadManagementSearchResponseItemsItemReadStatesItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
71
70
|
export const threadManagementSearchResponseItemsItemTypeDefault = `UNKNOWN`;
|
|
72
71
|
|
|
73
72
|
export const ThreadManagementSearchResponse = zod
|
|
@@ -224,20 +223,6 @@ export const ThreadManagementSearchResponse = zod
|
|
|
224
223
|
.describe(
|
|
225
224
|
'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
|
|
226
225
|
),
|
|
227
|
-
delivery_status: zod
|
|
228
|
-
.enum([
|
|
229
|
-
'MESSAGE_DELIVERY_STATUS_UNSPECIFIED',
|
|
230
|
-
'MESSAGE_DELIVERY_STATUS_SENT',
|
|
231
|
-
'MESSAGE_DELIVERY_STATUS_DELIVERED',
|
|
232
|
-
'MESSAGE_DELIVERY_STATUS_READ',
|
|
233
|
-
'MESSAGE_DELIVERY_STATUS_FAILED',
|
|
234
|
-
])
|
|
235
|
-
.default(
|
|
236
|
-
threadManagementSearchResponseItemsItemLastMsgDeliveryStatusDefault,
|
|
237
|
-
)
|
|
238
|
-
.describe(
|
|
239
|
-
'Aggregated delivery status across recipients: FAILED when every\nrecipient failed, otherwise the minimal status among non-failed ones.\nUNSPECIFIED for messages without per-recipient tracking (historical).',
|
|
240
|
-
),
|
|
241
226
|
documents: zod
|
|
242
227
|
.array(
|
|
243
228
|
zod
|
|
@@ -1098,55 +1083,6 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1098
1083
|
.describe(
|
|
1099
1084
|
'Per-thread monotonic sequence number, assigned on message creation.',
|
|
1100
1085
|
),
|
|
1101
|
-
statuses: zod
|
|
1102
|
-
.array(
|
|
1103
|
-
zod
|
|
1104
|
-
.object({
|
|
1105
|
-
delivered_at: zod
|
|
1106
|
-
.string()
|
|
1107
|
-
.optional()
|
|
1108
|
-
.describe(
|
|
1109
|
-
'Unix time in milliseconds; zero when not reached.',
|
|
1110
|
-
),
|
|
1111
|
-
error: zod
|
|
1112
|
-
.string()
|
|
1113
|
-
.optional()
|
|
1114
|
-
.describe(
|
|
1115
|
-
'JSON-encoded provider error details for FAILED.',
|
|
1116
|
-
),
|
|
1117
|
-
failed_at: zod.string().optional(),
|
|
1118
|
-
member_id: zod
|
|
1119
|
-
.string()
|
|
1120
|
-
.optional()
|
|
1121
|
-
.describe('Recipient contact id.'),
|
|
1122
|
-
read_at: zod.string().optional(),
|
|
1123
|
-
status: zod
|
|
1124
|
-
.enum([
|
|
1125
|
-
'MESSAGE_DELIVERY_STATUS_UNSPECIFIED',
|
|
1126
|
-
'MESSAGE_DELIVERY_STATUS_SENT',
|
|
1127
|
-
'MESSAGE_DELIVERY_STATUS_DELIVERED',
|
|
1128
|
-
'MESSAGE_DELIVERY_STATUS_READ',
|
|
1129
|
-
'MESSAGE_DELIVERY_STATUS_FAILED',
|
|
1130
|
-
])
|
|
1131
|
-
.default(
|
|
1132
|
-
threadManagementSearchResponseItemsItemLastMsgStatusesItemStatusDefault,
|
|
1133
|
-
)
|
|
1134
|
-
.describe(
|
|
1135
|
-
'MessageDeliveryStatus is a per-recipient delivery state of a message.\nTransitions are monotonic: SENT -> DELIVERED -> READ.\nFAILED is terminal but may be superseded by a later DELIVERED (retry).\n\n - MESSAGE_DELIVERY_STATUS_SENT: Accepted by the system and queued for delivery.\n - MESSAGE_DELIVERY_STATUS_DELIVERED: Reached the recipient (stream ACK, push, provider receipt, bot dispatch).\n - MESSAGE_DELIVERY_STATUS_READ: Read by the recipient. Not applicable to bots.\n - MESSAGE_DELIVERY_STATUS_FAILED: Delivery failed (provider rejected, invalid contact, channel restriction).',
|
|
1136
|
-
),
|
|
1137
|
-
via: zod
|
|
1138
|
-
.string()
|
|
1139
|
-
.optional()
|
|
1140
|
-
.describe(
|
|
1141
|
-
'Confirmation source: ws|push|provider|bot.',
|
|
1142
|
-
),
|
|
1143
|
-
})
|
|
1144
|
-
.describe(
|
|
1145
|
-
'MessageRecipientStatus is a per-recipient delivery state of a message.',
|
|
1146
|
-
),
|
|
1147
|
-
)
|
|
1148
|
-
.optional()
|
|
1149
|
-
.describe('Per-recipient delivery details.'),
|
|
1150
1086
|
system: zod
|
|
1151
1087
|
.object({
|
|
1152
1088
|
message_id: zod
|
|
@@ -1291,6 +1227,133 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1291
1227
|
)
|
|
1292
1228
|
.optional()
|
|
1293
1229
|
.describe('Detailed member information.'),
|
|
1230
|
+
read_states: zod
|
|
1231
|
+
.array(
|
|
1232
|
+
zod
|
|
1233
|
+
.object({
|
|
1234
|
+
delivered_up_to_seq: zod.string().optional(),
|
|
1235
|
+
member: zod
|
|
1236
|
+
.object({
|
|
1237
|
+
contact: zod
|
|
1238
|
+
.object({
|
|
1239
|
+
app_id: zod
|
|
1240
|
+
.string()
|
|
1241
|
+
.optional()
|
|
1242
|
+
.describe(
|
|
1243
|
+
'Identifier of the specific integration app or bot.',
|
|
1244
|
+
),
|
|
1245
|
+
created_at: zod
|
|
1246
|
+
.string()
|
|
1247
|
+
.optional()
|
|
1248
|
+
.describe(
|
|
1249
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1250
|
+
),
|
|
1251
|
+
is_bot: zod
|
|
1252
|
+
.boolean()
|
|
1253
|
+
.optional()
|
|
1254
|
+
.describe(
|
|
1255
|
+
'Represents if usere is real person or automatic script.',
|
|
1256
|
+
),
|
|
1257
|
+
iss: zod
|
|
1258
|
+
.string()
|
|
1259
|
+
.optional()
|
|
1260
|
+
.describe(
|
|
1261
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
1262
|
+
),
|
|
1263
|
+
metadata: zod
|
|
1264
|
+
.record(zod.string(), zod.string())
|
|
1265
|
+
.optional()
|
|
1266
|
+
.describe(
|
|
1267
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
1268
|
+
),
|
|
1269
|
+
name: zod
|
|
1270
|
+
.string()
|
|
1271
|
+
.optional()
|
|
1272
|
+
.describe('Display name of the contact.'),
|
|
1273
|
+
sub: zod
|
|
1274
|
+
.string()
|
|
1275
|
+
.optional()
|
|
1276
|
+
.describe(
|
|
1277
|
+
'Associated internal system subject/identifier.',
|
|
1278
|
+
),
|
|
1279
|
+
type: zod
|
|
1280
|
+
.string()
|
|
1281
|
+
.optional()
|
|
1282
|
+
.describe(
|
|
1283
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
1284
|
+
),
|
|
1285
|
+
updated_at: zod
|
|
1286
|
+
.string()
|
|
1287
|
+
.optional()
|
|
1288
|
+
.describe(
|
|
1289
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
1290
|
+
),
|
|
1291
|
+
username: zod
|
|
1292
|
+
.string()
|
|
1293
|
+
.optional()
|
|
1294
|
+
.describe('Technical username or handle.'),
|
|
1295
|
+
vias: zod
|
|
1296
|
+
.array(
|
|
1297
|
+
zod.object({
|
|
1298
|
+
contact_id: zod.string().optional(),
|
|
1299
|
+
created_at: zod.string().optional(),
|
|
1300
|
+
disable: zod.boolean().optional(),
|
|
1301
|
+
disable_reason: zod.string().optional(),
|
|
1302
|
+
metadata: zod.looseObject({}).optional(),
|
|
1303
|
+
updated_at: zod.string().optional(),
|
|
1304
|
+
via: zod.string().optional(),
|
|
1305
|
+
}),
|
|
1306
|
+
)
|
|
1307
|
+
.optional(),
|
|
1308
|
+
})
|
|
1309
|
+
.optional()
|
|
1310
|
+
.describe(
|
|
1311
|
+
'Contact represents an external messaging identity.',
|
|
1312
|
+
),
|
|
1313
|
+
id: zod.string().optional(),
|
|
1314
|
+
permissions: zod
|
|
1315
|
+
.object({
|
|
1316
|
+
can_add_members: zod.boolean().optional(),
|
|
1317
|
+
can_change_members_permissions: zod
|
|
1318
|
+
.boolean()
|
|
1319
|
+
.optional(),
|
|
1320
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
1321
|
+
can_delete_messages: zod.boolean().optional(),
|
|
1322
|
+
can_remove_members: zod.boolean().optional(),
|
|
1323
|
+
can_send_messages: zod.boolean().optional(),
|
|
1324
|
+
created_at: zod.string().optional(),
|
|
1325
|
+
id: zod.string().optional(),
|
|
1326
|
+
member_id: zod.string().optional(),
|
|
1327
|
+
updated_at: zod.string().optional(),
|
|
1328
|
+
})
|
|
1329
|
+
.optional(),
|
|
1330
|
+
role: zod
|
|
1331
|
+
.enum([
|
|
1332
|
+
'ROLE_UNSPECIFIED',
|
|
1333
|
+
'ROLE_MEMBER',
|
|
1334
|
+
'ROLE_ADMIN',
|
|
1335
|
+
'ROLE_OWNER',
|
|
1336
|
+
'ROLE_SUPERVISOR',
|
|
1337
|
+
])
|
|
1338
|
+
.default(
|
|
1339
|
+
threadManagementSearchResponseItemsItemReadStatesItemMemberRoleDefault,
|
|
1340
|
+
),
|
|
1341
|
+
})
|
|
1342
|
+
.optional()
|
|
1343
|
+
.describe(
|
|
1344
|
+
"The member, in the same shape as history's sender; set by GetUpdates.",
|
|
1345
|
+
),
|
|
1346
|
+
member_id: zod.string().optional(),
|
|
1347
|
+
read_up_to_seq: zod.string().optional(),
|
|
1348
|
+
})
|
|
1349
|
+
.describe(
|
|
1350
|
+
"MemberReadState is one member's delivery/read horizon in a thread, as\nper-thread message seq (0 = nothing reached that state yet).",
|
|
1351
|
+
),
|
|
1352
|
+
)
|
|
1353
|
+
.optional()
|
|
1354
|
+
.describe(
|
|
1355
|
+
'Per-member read horizons (snapshot, matches GetUpdates model).\nClient derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.',
|
|
1356
|
+
),
|
|
1294
1357
|
settings: zod
|
|
1295
1358
|
.object({
|
|
1296
1359
|
created_at: zod
|
|
@@ -1335,6 +1398,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1335
1398
|
.string()
|
|
1336
1399
|
.optional()
|
|
1337
1400
|
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
1401
|
+
updates_cursor: zod
|
|
1402
|
+
.string()
|
|
1403
|
+
.optional()
|
|
1404
|
+
.describe(
|
|
1405
|
+
'GetUpdates cursor read before this thread (set by Get; Search carries it on the response).',
|
|
1406
|
+
),
|
|
1338
1407
|
variables: zod
|
|
1339
1408
|
.object({
|
|
1340
1409
|
thread_id: zod
|
|
@@ -1455,6 +1524,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1455
1524
|
.boolean()
|
|
1456
1525
|
.optional()
|
|
1457
1526
|
.describe('Indicates whether there is a next page available.'),
|
|
1527
|
+
updates_cursor: zod
|
|
1528
|
+
.string()
|
|
1529
|
+
.optional()
|
|
1530
|
+
.describe(
|
|
1531
|
+
'GetUpdates cursor read before this page: every later change comes from GetUpdates(updates_cursor).',
|
|
1532
|
+
),
|
|
1458
1533
|
})
|
|
1459
1534
|
.describe(
|
|
1460
1535
|
'SearchThreadResponse contains the list of threads\nand pagination metadata.',
|
|
@@ -1491,15 +1566,14 @@ export const ThreadManagementCreateBody = zod
|
|
|
1491
1566
|
);
|
|
1492
1567
|
|
|
1493
1568
|
export const threadManagementCreateResponseThreadLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1494
|
-
export const threadManagementCreateResponseThreadLastMsgDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
1495
1569
|
export const threadManagementCreateResponseThreadLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
1496
1570
|
export const threadManagementCreateResponseThreadLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
1497
1571
|
export const threadManagementCreateResponseThreadLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
|
|
1498
1572
|
export const threadManagementCreateResponseThreadLastMsgReactedMetadataReactedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1499
1573
|
export const threadManagementCreateResponseThreadLastMsgReplyToSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1500
1574
|
export const threadManagementCreateResponseThreadLastMsgSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1501
|
-
export const threadManagementCreateResponseThreadLastMsgStatusesItemStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
1502
1575
|
export const threadManagementCreateResponseThreadMembersItemRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1576
|
+
export const threadManagementCreateResponseThreadReadStatesItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1503
1577
|
export const threadManagementCreateResponseThreadTypeDefault = `UNKNOWN`;
|
|
1504
1578
|
|
|
1505
1579
|
export const ThreadManagementCreateResponse = zod
|
|
@@ -1650,20 +1724,6 @@ export const ThreadManagementCreateResponse = zod
|
|
|
1650
1724
|
.describe(
|
|
1651
1725
|
'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
|
|
1652
1726
|
),
|
|
1653
|
-
delivery_status: zod
|
|
1654
|
-
.enum([
|
|
1655
|
-
'MESSAGE_DELIVERY_STATUS_UNSPECIFIED',
|
|
1656
|
-
'MESSAGE_DELIVERY_STATUS_SENT',
|
|
1657
|
-
'MESSAGE_DELIVERY_STATUS_DELIVERED',
|
|
1658
|
-
'MESSAGE_DELIVERY_STATUS_READ',
|
|
1659
|
-
'MESSAGE_DELIVERY_STATUS_FAILED',
|
|
1660
|
-
])
|
|
1661
|
-
.default(
|
|
1662
|
-
threadManagementCreateResponseThreadLastMsgDeliveryStatusDefault,
|
|
1663
|
-
)
|
|
1664
|
-
.describe(
|
|
1665
|
-
'Aggregated delivery status across recipients: FAILED when every\nrecipient failed, otherwise the minimal status among non-failed ones.\nUNSPECIFIED for messages without per-recipient tracking (historical).',
|
|
1666
|
-
),
|
|
1667
1727
|
documents: zod
|
|
1668
1728
|
.array(
|
|
1669
1729
|
zod
|
|
@@ -2512,53 +2572,6 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2512
2572
|
.describe(
|
|
2513
2573
|
'Per-thread monotonic sequence number, assigned on message creation.',
|
|
2514
2574
|
),
|
|
2515
|
-
statuses: zod
|
|
2516
|
-
.array(
|
|
2517
|
-
zod
|
|
2518
|
-
.object({
|
|
2519
|
-
delivered_at: zod
|
|
2520
|
-
.string()
|
|
2521
|
-
.optional()
|
|
2522
|
-
.describe(
|
|
2523
|
-
'Unix time in milliseconds; zero when not reached.',
|
|
2524
|
-
),
|
|
2525
|
-
error: zod
|
|
2526
|
-
.string()
|
|
2527
|
-
.optional()
|
|
2528
|
-
.describe(
|
|
2529
|
-
'JSON-encoded provider error details for FAILED.',
|
|
2530
|
-
),
|
|
2531
|
-
failed_at: zod.string().optional(),
|
|
2532
|
-
member_id: zod
|
|
2533
|
-
.string()
|
|
2534
|
-
.optional()
|
|
2535
|
-
.describe('Recipient contact id.'),
|
|
2536
|
-
read_at: zod.string().optional(),
|
|
2537
|
-
status: zod
|
|
2538
|
-
.enum([
|
|
2539
|
-
'MESSAGE_DELIVERY_STATUS_UNSPECIFIED',
|
|
2540
|
-
'MESSAGE_DELIVERY_STATUS_SENT',
|
|
2541
|
-
'MESSAGE_DELIVERY_STATUS_DELIVERED',
|
|
2542
|
-
'MESSAGE_DELIVERY_STATUS_READ',
|
|
2543
|
-
'MESSAGE_DELIVERY_STATUS_FAILED',
|
|
2544
|
-
])
|
|
2545
|
-
.default(
|
|
2546
|
-
threadManagementCreateResponseThreadLastMsgStatusesItemStatusDefault,
|
|
2547
|
-
)
|
|
2548
|
-
.describe(
|
|
2549
|
-
'MessageDeliveryStatus is a per-recipient delivery state of a message.\nTransitions are monotonic: SENT -> DELIVERED -> READ.\nFAILED is terminal but may be superseded by a later DELIVERED (retry).\n\n - MESSAGE_DELIVERY_STATUS_SENT: Accepted by the system and queued for delivery.\n - MESSAGE_DELIVERY_STATUS_DELIVERED: Reached the recipient (stream ACK, push, provider receipt, bot dispatch).\n - MESSAGE_DELIVERY_STATUS_READ: Read by the recipient. Not applicable to bots.\n - MESSAGE_DELIVERY_STATUS_FAILED: Delivery failed (provider rejected, invalid contact, channel restriction).',
|
|
2550
|
-
),
|
|
2551
|
-
via: zod
|
|
2552
|
-
.string()
|
|
2553
|
-
.optional()
|
|
2554
|
-
.describe('Confirmation source: ws|push|provider|bot.'),
|
|
2555
|
-
})
|
|
2556
|
-
.describe(
|
|
2557
|
-
'MessageRecipientStatus is a per-recipient delivery state of a message.',
|
|
2558
|
-
),
|
|
2559
|
-
)
|
|
2560
|
-
.optional()
|
|
2561
|
-
.describe('Per-recipient delivery details.'),
|
|
2562
2575
|
system: zod
|
|
2563
2576
|
.object({
|
|
2564
2577
|
message_id: zod
|
|
@@ -2699,65 +2712,14 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2699
2712
|
)
|
|
2700
2713
|
.optional()
|
|
2701
2714
|
.describe('Detailed member information.'),
|
|
2702
|
-
|
|
2703
|
-
.
|
|
2704
|
-
|
|
2705
|
-
.
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
domain_id: zod.int().optional().describe('Domain identifier.'),
|
|
2709
|
-
id: zod.string().optional().describe('Settings identifier.'),
|
|
2710
|
-
title: zod
|
|
2711
|
-
.string()
|
|
2712
|
-
.optional()
|
|
2713
|
-
.describe(
|
|
2714
|
-
'Custom title for the direct thread.\nUsually represents the display name of the conversation.',
|
|
2715
|
-
),
|
|
2716
|
-
updated_at: zod
|
|
2717
|
-
.string()
|
|
2718
|
-
.optional()
|
|
2719
|
-
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
2720
|
-
})
|
|
2721
|
-
.optional()
|
|
2722
|
-
.describe('User-specific settings for this thread.'),
|
|
2723
|
-
subject: zod.string().optional().describe('Thread subject or title.'),
|
|
2724
|
-
type: zod
|
|
2725
|
-
.enum([
|
|
2726
|
-
'UNKNOWN',
|
|
2727
|
-
'DIRECT',
|
|
2728
|
-
'GROUP',
|
|
2729
|
-
'CHANNEL',
|
|
2730
|
-
])
|
|
2731
|
-
.default(threadManagementCreateResponseThreadTypeDefault)
|
|
2732
|
-
.describe('Type of the thread.'),
|
|
2733
|
-
unread_count: zod
|
|
2734
|
-
.int()
|
|
2735
|
-
.optional()
|
|
2736
|
-
.describe(
|
|
2737
|
-
"Number of unread messages in this thread for the calling participant.\nCounts content messages not yet read; the caller's own messages and\nsystem messages are excluded.",
|
|
2738
|
-
),
|
|
2739
|
-
updated_at: zod
|
|
2740
|
-
.string()
|
|
2741
|
-
.optional()
|
|
2742
|
-
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
2743
|
-
variables: zod
|
|
2744
|
-
.object({
|
|
2745
|
-
thread_id: zod
|
|
2746
|
-
.string()
|
|
2747
|
-
.optional()
|
|
2748
|
-
.describe('Unique identifier for the thread.'),
|
|
2749
|
-
variables: zod
|
|
2750
|
-
.record(
|
|
2751
|
-
zod.string(),
|
|
2752
|
-
zod
|
|
2715
|
+
read_states: zod
|
|
2716
|
+
.array(
|
|
2717
|
+
zod
|
|
2718
|
+
.object({
|
|
2719
|
+
delivered_up_to_seq: zod.string().optional(),
|
|
2720
|
+
member: zod
|
|
2753
2721
|
.object({
|
|
2754
|
-
|
|
2755
|
-
.string()
|
|
2756
|
-
.optional()
|
|
2757
|
-
.describe(
|
|
2758
|
-
'Timestamp when the variable was set (Unix time, milliseconds).',
|
|
2759
|
-
),
|
|
2760
|
-
set_by: zod
|
|
2722
|
+
contact: zod
|
|
2761
2723
|
.object({
|
|
2762
2724
|
app_id: zod
|
|
2763
2725
|
.string()
|
|
@@ -2830,7 +2792,191 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2830
2792
|
.optional(),
|
|
2831
2793
|
})
|
|
2832
2794
|
.optional()
|
|
2833
|
-
.describe(
|
|
2795
|
+
.describe(
|
|
2796
|
+
'Contact represents an external messaging identity.',
|
|
2797
|
+
),
|
|
2798
|
+
id: zod.string().optional(),
|
|
2799
|
+
permissions: zod
|
|
2800
|
+
.object({
|
|
2801
|
+
can_add_members: zod.boolean().optional(),
|
|
2802
|
+
can_change_members_permissions: zod
|
|
2803
|
+
.boolean()
|
|
2804
|
+
.optional(),
|
|
2805
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
2806
|
+
can_delete_messages: zod.boolean().optional(),
|
|
2807
|
+
can_remove_members: zod.boolean().optional(),
|
|
2808
|
+
can_send_messages: zod.boolean().optional(),
|
|
2809
|
+
created_at: zod.string().optional(),
|
|
2810
|
+
id: zod.string().optional(),
|
|
2811
|
+
member_id: zod.string().optional(),
|
|
2812
|
+
updated_at: zod.string().optional(),
|
|
2813
|
+
})
|
|
2814
|
+
.optional(),
|
|
2815
|
+
role: zod
|
|
2816
|
+
.enum([
|
|
2817
|
+
'ROLE_UNSPECIFIED',
|
|
2818
|
+
'ROLE_MEMBER',
|
|
2819
|
+
'ROLE_ADMIN',
|
|
2820
|
+
'ROLE_OWNER',
|
|
2821
|
+
'ROLE_SUPERVISOR',
|
|
2822
|
+
])
|
|
2823
|
+
.default(
|
|
2824
|
+
threadManagementCreateResponseThreadReadStatesItemMemberRoleDefault,
|
|
2825
|
+
),
|
|
2826
|
+
})
|
|
2827
|
+
.optional()
|
|
2828
|
+
.describe(
|
|
2829
|
+
"The member, in the same shape as history's sender; set by GetUpdates.",
|
|
2830
|
+
),
|
|
2831
|
+
member_id: zod.string().optional(),
|
|
2832
|
+
read_up_to_seq: zod.string().optional(),
|
|
2833
|
+
})
|
|
2834
|
+
.describe(
|
|
2835
|
+
"MemberReadState is one member's delivery/read horizon in a thread, as\nper-thread message seq (0 = nothing reached that state yet).",
|
|
2836
|
+
),
|
|
2837
|
+
)
|
|
2838
|
+
.optional()
|
|
2839
|
+
.describe(
|
|
2840
|
+
'Per-member read horizons (snapshot, matches GetUpdates model).\nClient derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.',
|
|
2841
|
+
),
|
|
2842
|
+
settings: zod
|
|
2843
|
+
.object({
|
|
2844
|
+
created_at: zod
|
|
2845
|
+
.string()
|
|
2846
|
+
.optional()
|
|
2847
|
+
.describe('Creation timestamp (Unix time, milliseconds).'),
|
|
2848
|
+
domain_id: zod.int().optional().describe('Domain identifier.'),
|
|
2849
|
+
id: zod.string().optional().describe('Settings identifier.'),
|
|
2850
|
+
title: zod
|
|
2851
|
+
.string()
|
|
2852
|
+
.optional()
|
|
2853
|
+
.describe(
|
|
2854
|
+
'Custom title for the direct thread.\nUsually represents the display name of the conversation.',
|
|
2855
|
+
),
|
|
2856
|
+
updated_at: zod
|
|
2857
|
+
.string()
|
|
2858
|
+
.optional()
|
|
2859
|
+
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
2860
|
+
})
|
|
2861
|
+
.optional()
|
|
2862
|
+
.describe('User-specific settings for this thread.'),
|
|
2863
|
+
subject: zod.string().optional().describe('Thread subject or title.'),
|
|
2864
|
+
type: zod
|
|
2865
|
+
.enum([
|
|
2866
|
+
'UNKNOWN',
|
|
2867
|
+
'DIRECT',
|
|
2868
|
+
'GROUP',
|
|
2869
|
+
'CHANNEL',
|
|
2870
|
+
])
|
|
2871
|
+
.default(threadManagementCreateResponseThreadTypeDefault)
|
|
2872
|
+
.describe('Type of the thread.'),
|
|
2873
|
+
unread_count: zod
|
|
2874
|
+
.int()
|
|
2875
|
+
.optional()
|
|
2876
|
+
.describe(
|
|
2877
|
+
"Number of unread messages in this thread for the calling participant.\nCounts content messages not yet read; the caller's own messages and\nsystem messages are excluded.",
|
|
2878
|
+
),
|
|
2879
|
+
updated_at: zod
|
|
2880
|
+
.string()
|
|
2881
|
+
.optional()
|
|
2882
|
+
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
2883
|
+
updates_cursor: zod
|
|
2884
|
+
.string()
|
|
2885
|
+
.optional()
|
|
2886
|
+
.describe(
|
|
2887
|
+
'GetUpdates cursor read before this thread (set by Get; Search carries it on the response).',
|
|
2888
|
+
),
|
|
2889
|
+
variables: zod
|
|
2890
|
+
.object({
|
|
2891
|
+
thread_id: zod
|
|
2892
|
+
.string()
|
|
2893
|
+
.optional()
|
|
2894
|
+
.describe('Unique identifier for the thread.'),
|
|
2895
|
+
variables: zod
|
|
2896
|
+
.record(
|
|
2897
|
+
zod.string(),
|
|
2898
|
+
zod
|
|
2899
|
+
.object({
|
|
2900
|
+
set_at: zod
|
|
2901
|
+
.string()
|
|
2902
|
+
.optional()
|
|
2903
|
+
.describe(
|
|
2904
|
+
'Timestamp when the variable was set (Unix time, milliseconds).',
|
|
2905
|
+
),
|
|
2906
|
+
set_by: zod
|
|
2907
|
+
.object({
|
|
2908
|
+
app_id: zod
|
|
2909
|
+
.string()
|
|
2910
|
+
.optional()
|
|
2911
|
+
.describe(
|
|
2912
|
+
'Identifier of the specific integration app or bot.',
|
|
2913
|
+
),
|
|
2914
|
+
created_at: zod
|
|
2915
|
+
.string()
|
|
2916
|
+
.optional()
|
|
2917
|
+
.describe(
|
|
2918
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
2919
|
+
),
|
|
2920
|
+
is_bot: zod
|
|
2921
|
+
.boolean()
|
|
2922
|
+
.optional()
|
|
2923
|
+
.describe(
|
|
2924
|
+
'Represents if usere is real person or automatic script.',
|
|
2925
|
+
),
|
|
2926
|
+
iss: zod
|
|
2927
|
+
.string()
|
|
2928
|
+
.optional()
|
|
2929
|
+
.describe(
|
|
2930
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
2931
|
+
),
|
|
2932
|
+
metadata: zod
|
|
2933
|
+
.record(zod.string(), zod.string())
|
|
2934
|
+
.optional()
|
|
2935
|
+
.describe(
|
|
2936
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
2937
|
+
),
|
|
2938
|
+
name: zod
|
|
2939
|
+
.string()
|
|
2940
|
+
.optional()
|
|
2941
|
+
.describe('Display name of the contact.'),
|
|
2942
|
+
sub: zod
|
|
2943
|
+
.string()
|
|
2944
|
+
.optional()
|
|
2945
|
+
.describe(
|
|
2946
|
+
'Associated internal system subject/identifier.',
|
|
2947
|
+
),
|
|
2948
|
+
type: zod
|
|
2949
|
+
.string()
|
|
2950
|
+
.optional()
|
|
2951
|
+
.describe(
|
|
2952
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
2953
|
+
),
|
|
2954
|
+
updated_at: zod
|
|
2955
|
+
.string()
|
|
2956
|
+
.optional()
|
|
2957
|
+
.describe(
|
|
2958
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
2959
|
+
),
|
|
2960
|
+
username: zod
|
|
2961
|
+
.string()
|
|
2962
|
+
.optional()
|
|
2963
|
+
.describe('Technical username or handle.'),
|
|
2964
|
+
vias: zod
|
|
2965
|
+
.array(
|
|
2966
|
+
zod.object({
|
|
2967
|
+
contact_id: zod.string().optional(),
|
|
2968
|
+
created_at: zod.string().optional(),
|
|
2969
|
+
disable: zod.boolean().optional(),
|
|
2970
|
+
disable_reason: zod.string().optional(),
|
|
2971
|
+
metadata: zod.looseObject({}).optional(),
|
|
2972
|
+
updated_at: zod.string().optional(),
|
|
2973
|
+
via: zod.string().optional(),
|
|
2974
|
+
}),
|
|
2975
|
+
)
|
|
2976
|
+
.optional(),
|
|
2977
|
+
})
|
|
2978
|
+
.optional()
|
|
2979
|
+
.describe('Contact who set the variable.'),
|
|
2834
2980
|
value: zod
|
|
2835
2981
|
.unknown()
|
|
2836
2982
|
.optional()
|
|
@@ -2896,15 +3042,14 @@ export const ThreadManagementSearchLeftQueryParams = zod.object({
|
|
|
2896
3042
|
});
|
|
2897
3043
|
|
|
2898
3044
|
export const threadManagementSearchLeftResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
2899
|
-
export const threadManagementSearchLeftResponseItemsItemLastMsgDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
2900
3045
|
export const threadManagementSearchLeftResponseItemsItemLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
2901
3046
|
export const threadManagementSearchLeftResponseItemsItemLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
2902
3047
|
export const threadManagementSearchLeftResponseItemsItemLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
|
|
2903
3048
|
export const threadManagementSearchLeftResponseItemsItemLastMsgReactedMetadataReactedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
2904
3049
|
export const threadManagementSearchLeftResponseItemsItemLastMsgReplyToSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
2905
3050
|
export const threadManagementSearchLeftResponseItemsItemLastMsgSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
2906
|
-
export const threadManagementSearchLeftResponseItemsItemLastMsgStatusesItemStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
2907
3051
|
export const threadManagementSearchLeftResponseItemsItemMembersItemRoleDefault = `ROLE_UNSPECIFIED`;
|
|
3052
|
+
export const threadManagementSearchLeftResponseItemsItemReadStatesItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
2908
3053
|
export const threadManagementSearchLeftResponseItemsItemTypeDefault = `UNKNOWN`;
|
|
2909
3054
|
|
|
2910
3055
|
export const ThreadManagementSearchLeftResponse = zod.object({
|
|
@@ -3058,20 +3203,6 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3058
3203
|
.describe(
|
|
3059
3204
|
'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
|
|
3060
3205
|
),
|
|
3061
|
-
delivery_status: zod
|
|
3062
|
-
.enum([
|
|
3063
|
-
'MESSAGE_DELIVERY_STATUS_UNSPECIFIED',
|
|
3064
|
-
'MESSAGE_DELIVERY_STATUS_SENT',
|
|
3065
|
-
'MESSAGE_DELIVERY_STATUS_DELIVERED',
|
|
3066
|
-
'MESSAGE_DELIVERY_STATUS_READ',
|
|
3067
|
-
'MESSAGE_DELIVERY_STATUS_FAILED',
|
|
3068
|
-
])
|
|
3069
|
-
.default(
|
|
3070
|
-
threadManagementSearchLeftResponseItemsItemLastMsgDeliveryStatusDefault,
|
|
3071
|
-
)
|
|
3072
|
-
.describe(
|
|
3073
|
-
'Aggregated delivery status across recipients: FAILED when every\nrecipient failed, otherwise the minimal status among non-failed ones.\nUNSPECIFIED for messages without per-recipient tracking (historical).',
|
|
3074
|
-
),
|
|
3075
3206
|
documents: zod
|
|
3076
3207
|
.array(
|
|
3077
3208
|
zod
|
|
@@ -3925,53 +4056,6 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3925
4056
|
.describe(
|
|
3926
4057
|
'Per-thread monotonic sequence number, assigned on message creation.',
|
|
3927
4058
|
),
|
|
3928
|
-
statuses: zod
|
|
3929
|
-
.array(
|
|
3930
|
-
zod
|
|
3931
|
-
.object({
|
|
3932
|
-
delivered_at: zod
|
|
3933
|
-
.string()
|
|
3934
|
-
.optional()
|
|
3935
|
-
.describe(
|
|
3936
|
-
'Unix time in milliseconds; zero when not reached.',
|
|
3937
|
-
),
|
|
3938
|
-
error: zod
|
|
3939
|
-
.string()
|
|
3940
|
-
.optional()
|
|
3941
|
-
.describe(
|
|
3942
|
-
'JSON-encoded provider error details for FAILED.',
|
|
3943
|
-
),
|
|
3944
|
-
failed_at: zod.string().optional(),
|
|
3945
|
-
member_id: zod
|
|
3946
|
-
.string()
|
|
3947
|
-
.optional()
|
|
3948
|
-
.describe('Recipient contact id.'),
|
|
3949
|
-
read_at: zod.string().optional(),
|
|
3950
|
-
status: zod
|
|
3951
|
-
.enum([
|
|
3952
|
-
'MESSAGE_DELIVERY_STATUS_UNSPECIFIED',
|
|
3953
|
-
'MESSAGE_DELIVERY_STATUS_SENT',
|
|
3954
|
-
'MESSAGE_DELIVERY_STATUS_DELIVERED',
|
|
3955
|
-
'MESSAGE_DELIVERY_STATUS_READ',
|
|
3956
|
-
'MESSAGE_DELIVERY_STATUS_FAILED',
|
|
3957
|
-
])
|
|
3958
|
-
.default(
|
|
3959
|
-
threadManagementSearchLeftResponseItemsItemLastMsgStatusesItemStatusDefault,
|
|
3960
|
-
)
|
|
3961
|
-
.describe(
|
|
3962
|
-
'MessageDeliveryStatus is a per-recipient delivery state of a message.\nTransitions are monotonic: SENT -> DELIVERED -> READ.\nFAILED is terminal but may be superseded by a later DELIVERED (retry).\n\n - MESSAGE_DELIVERY_STATUS_SENT: Accepted by the system and queued for delivery.\n - MESSAGE_DELIVERY_STATUS_DELIVERED: Reached the recipient (stream ACK, push, provider receipt, bot dispatch).\n - MESSAGE_DELIVERY_STATUS_READ: Read by the recipient. Not applicable to bots.\n - MESSAGE_DELIVERY_STATUS_FAILED: Delivery failed (provider rejected, invalid contact, channel restriction).',
|
|
3963
|
-
),
|
|
3964
|
-
via: zod
|
|
3965
|
-
.string()
|
|
3966
|
-
.optional()
|
|
3967
|
-
.describe('Confirmation source: ws|push|provider|bot.'),
|
|
3968
|
-
})
|
|
3969
|
-
.describe(
|
|
3970
|
-
'MessageRecipientStatus is a per-recipient delivery state of a message.',
|
|
3971
|
-
),
|
|
3972
|
-
)
|
|
3973
|
-
.optional()
|
|
3974
|
-
.describe('Per-recipient delivery details.'),
|
|
3975
4059
|
system: zod
|
|
3976
4060
|
.object({
|
|
3977
4061
|
message_id: zod
|
|
@@ -4114,6 +4198,133 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4114
4198
|
)
|
|
4115
4199
|
.optional()
|
|
4116
4200
|
.describe('Detailed member information.'),
|
|
4201
|
+
read_states: zod
|
|
4202
|
+
.array(
|
|
4203
|
+
zod
|
|
4204
|
+
.object({
|
|
4205
|
+
delivered_up_to_seq: zod.string().optional(),
|
|
4206
|
+
member: zod
|
|
4207
|
+
.object({
|
|
4208
|
+
contact: zod
|
|
4209
|
+
.object({
|
|
4210
|
+
app_id: zod
|
|
4211
|
+
.string()
|
|
4212
|
+
.optional()
|
|
4213
|
+
.describe(
|
|
4214
|
+
'Identifier of the specific integration app or bot.',
|
|
4215
|
+
),
|
|
4216
|
+
created_at: zod
|
|
4217
|
+
.string()
|
|
4218
|
+
.optional()
|
|
4219
|
+
.describe(
|
|
4220
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
4221
|
+
),
|
|
4222
|
+
is_bot: zod
|
|
4223
|
+
.boolean()
|
|
4224
|
+
.optional()
|
|
4225
|
+
.describe(
|
|
4226
|
+
'Represents if usere is real person or automatic script.',
|
|
4227
|
+
),
|
|
4228
|
+
iss: zod
|
|
4229
|
+
.string()
|
|
4230
|
+
.optional()
|
|
4231
|
+
.describe(
|
|
4232
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
4233
|
+
),
|
|
4234
|
+
metadata: zod
|
|
4235
|
+
.record(zod.string(), zod.string())
|
|
4236
|
+
.optional()
|
|
4237
|
+
.describe(
|
|
4238
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
4239
|
+
),
|
|
4240
|
+
name: zod
|
|
4241
|
+
.string()
|
|
4242
|
+
.optional()
|
|
4243
|
+
.describe('Display name of the contact.'),
|
|
4244
|
+
sub: zod
|
|
4245
|
+
.string()
|
|
4246
|
+
.optional()
|
|
4247
|
+
.describe(
|
|
4248
|
+
'Associated internal system subject/identifier.',
|
|
4249
|
+
),
|
|
4250
|
+
type: zod
|
|
4251
|
+
.string()
|
|
4252
|
+
.optional()
|
|
4253
|
+
.describe(
|
|
4254
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
4255
|
+
),
|
|
4256
|
+
updated_at: zod
|
|
4257
|
+
.string()
|
|
4258
|
+
.optional()
|
|
4259
|
+
.describe(
|
|
4260
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
4261
|
+
),
|
|
4262
|
+
username: zod
|
|
4263
|
+
.string()
|
|
4264
|
+
.optional()
|
|
4265
|
+
.describe('Technical username or handle.'),
|
|
4266
|
+
vias: zod
|
|
4267
|
+
.array(
|
|
4268
|
+
zod.object({
|
|
4269
|
+
contact_id: zod.string().optional(),
|
|
4270
|
+
created_at: zod.string().optional(),
|
|
4271
|
+
disable: zod.boolean().optional(),
|
|
4272
|
+
disable_reason: zod.string().optional(),
|
|
4273
|
+
metadata: zod.looseObject({}).optional(),
|
|
4274
|
+
updated_at: zod.string().optional(),
|
|
4275
|
+
via: zod.string().optional(),
|
|
4276
|
+
}),
|
|
4277
|
+
)
|
|
4278
|
+
.optional(),
|
|
4279
|
+
})
|
|
4280
|
+
.optional()
|
|
4281
|
+
.describe(
|
|
4282
|
+
'Contact represents an external messaging identity.',
|
|
4283
|
+
),
|
|
4284
|
+
id: zod.string().optional(),
|
|
4285
|
+
permissions: zod
|
|
4286
|
+
.object({
|
|
4287
|
+
can_add_members: zod.boolean().optional(),
|
|
4288
|
+
can_change_members_permissions: zod
|
|
4289
|
+
.boolean()
|
|
4290
|
+
.optional(),
|
|
4291
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
4292
|
+
can_delete_messages: zod.boolean().optional(),
|
|
4293
|
+
can_remove_members: zod.boolean().optional(),
|
|
4294
|
+
can_send_messages: zod.boolean().optional(),
|
|
4295
|
+
created_at: zod.string().optional(),
|
|
4296
|
+
id: zod.string().optional(),
|
|
4297
|
+
member_id: zod.string().optional(),
|
|
4298
|
+
updated_at: zod.string().optional(),
|
|
4299
|
+
})
|
|
4300
|
+
.optional(),
|
|
4301
|
+
role: zod
|
|
4302
|
+
.enum([
|
|
4303
|
+
'ROLE_UNSPECIFIED',
|
|
4304
|
+
'ROLE_MEMBER',
|
|
4305
|
+
'ROLE_ADMIN',
|
|
4306
|
+
'ROLE_OWNER',
|
|
4307
|
+
'ROLE_SUPERVISOR',
|
|
4308
|
+
])
|
|
4309
|
+
.default(
|
|
4310
|
+
threadManagementSearchLeftResponseItemsItemReadStatesItemMemberRoleDefault,
|
|
4311
|
+
),
|
|
4312
|
+
})
|
|
4313
|
+
.optional()
|
|
4314
|
+
.describe(
|
|
4315
|
+
"The member, in the same shape as history's sender; set by GetUpdates.",
|
|
4316
|
+
),
|
|
4317
|
+
member_id: zod.string().optional(),
|
|
4318
|
+
read_up_to_seq: zod.string().optional(),
|
|
4319
|
+
})
|
|
4320
|
+
.describe(
|
|
4321
|
+
"MemberReadState is one member's delivery/read horizon in a thread, as\nper-thread message seq (0 = nothing reached that state yet).",
|
|
4322
|
+
),
|
|
4323
|
+
)
|
|
4324
|
+
.optional()
|
|
4325
|
+
.describe(
|
|
4326
|
+
'Per-member read horizons (snapshot, matches GetUpdates model).\nClient derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.',
|
|
4327
|
+
),
|
|
4117
4328
|
settings: zod
|
|
4118
4329
|
.object({
|
|
4119
4330
|
created_at: zod
|
|
@@ -4155,6 +4366,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4155
4366
|
.string()
|
|
4156
4367
|
.optional()
|
|
4157
4368
|
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
4369
|
+
updates_cursor: zod
|
|
4370
|
+
.string()
|
|
4371
|
+
.optional()
|
|
4372
|
+
.describe(
|
|
4373
|
+
'GetUpdates cursor read before this thread (set by Get; Search carries it on the response).',
|
|
4374
|
+
),
|
|
4158
4375
|
variables: zod
|
|
4159
4376
|
.object({
|
|
4160
4377
|
thread_id: zod
|
|
@@ -4313,15 +4530,14 @@ export const ThreadManagementGetQueryParams = zod.object({
|
|
|
4313
4530
|
});
|
|
4314
4531
|
|
|
4315
4532
|
export const threadManagementGetResponseLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
4316
|
-
export const threadManagementGetResponseLastMsgDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
4317
4533
|
export const threadManagementGetResponseLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
4318
4534
|
export const threadManagementGetResponseLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
4319
4535
|
export const threadManagementGetResponseLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
|
|
4320
4536
|
export const threadManagementGetResponseLastMsgReactedMetadataReactedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
4321
4537
|
export const threadManagementGetResponseLastMsgReplyToSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
4322
4538
|
export const threadManagementGetResponseLastMsgSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
4323
|
-
export const threadManagementGetResponseLastMsgStatusesItemStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
4324
4539
|
export const threadManagementGetResponseMembersItemRoleDefault = `ROLE_UNSPECIFIED`;
|
|
4540
|
+
export const threadManagementGetResponseReadStatesItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
4325
4541
|
export const threadManagementGetResponseTypeDefault = `UNKNOWN`;
|
|
4326
4542
|
|
|
4327
4543
|
export const ThreadManagementGetResponse = zod
|
|
@@ -4458,18 +4674,6 @@ export const ThreadManagementGetResponse = zod
|
|
|
4458
4674
|
.describe(
|
|
4459
4675
|
'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
|
|
4460
4676
|
),
|
|
4461
|
-
delivery_status: zod
|
|
4462
|
-
.enum([
|
|
4463
|
-
'MESSAGE_DELIVERY_STATUS_UNSPECIFIED',
|
|
4464
|
-
'MESSAGE_DELIVERY_STATUS_SENT',
|
|
4465
|
-
'MESSAGE_DELIVERY_STATUS_DELIVERED',
|
|
4466
|
-
'MESSAGE_DELIVERY_STATUS_READ',
|
|
4467
|
-
'MESSAGE_DELIVERY_STATUS_FAILED',
|
|
4468
|
-
])
|
|
4469
|
-
.default(threadManagementGetResponseLastMsgDeliveryStatusDefault)
|
|
4470
|
-
.describe(
|
|
4471
|
-
'Aggregated delivery status across recipients: FAILED when every\nrecipient failed, otherwise the minimal status among non-failed ones.\nUNSPECIFIED for messages without per-recipient tracking (historical).',
|
|
4472
|
-
),
|
|
4473
4677
|
documents: zod
|
|
4474
4678
|
.array(
|
|
4475
4679
|
zod
|
|
@@ -5275,51 +5479,6 @@ export const ThreadManagementGetResponse = zod
|
|
|
5275
5479
|
.describe(
|
|
5276
5480
|
'Per-thread monotonic sequence number, assigned on message creation.',
|
|
5277
5481
|
),
|
|
5278
|
-
statuses: zod
|
|
5279
|
-
.array(
|
|
5280
|
-
zod
|
|
5281
|
-
.object({
|
|
5282
|
-
delivered_at: zod
|
|
5283
|
-
.string()
|
|
5284
|
-
.optional()
|
|
5285
|
-
.describe(
|
|
5286
|
-
'Unix time in milliseconds; zero when not reached.',
|
|
5287
|
-
),
|
|
5288
|
-
error: zod
|
|
5289
|
-
.string()
|
|
5290
|
-
.optional()
|
|
5291
|
-
.describe('JSON-encoded provider error details for FAILED.'),
|
|
5292
|
-
failed_at: zod.string().optional(),
|
|
5293
|
-
member_id: zod
|
|
5294
|
-
.string()
|
|
5295
|
-
.optional()
|
|
5296
|
-
.describe('Recipient contact id.'),
|
|
5297
|
-
read_at: zod.string().optional(),
|
|
5298
|
-
status: zod
|
|
5299
|
-
.enum([
|
|
5300
|
-
'MESSAGE_DELIVERY_STATUS_UNSPECIFIED',
|
|
5301
|
-
'MESSAGE_DELIVERY_STATUS_SENT',
|
|
5302
|
-
'MESSAGE_DELIVERY_STATUS_DELIVERED',
|
|
5303
|
-
'MESSAGE_DELIVERY_STATUS_READ',
|
|
5304
|
-
'MESSAGE_DELIVERY_STATUS_FAILED',
|
|
5305
|
-
])
|
|
5306
|
-
.default(
|
|
5307
|
-
threadManagementGetResponseLastMsgStatusesItemStatusDefault,
|
|
5308
|
-
)
|
|
5309
|
-
.describe(
|
|
5310
|
-
'MessageDeliveryStatus is a per-recipient delivery state of a message.\nTransitions are monotonic: SENT -> DELIVERED -> READ.\nFAILED is terminal but may be superseded by a later DELIVERED (retry).\n\n - MESSAGE_DELIVERY_STATUS_SENT: Accepted by the system and queued for delivery.\n - MESSAGE_DELIVERY_STATUS_DELIVERED: Reached the recipient (stream ACK, push, provider receipt, bot dispatch).\n - MESSAGE_DELIVERY_STATUS_READ: Read by the recipient. Not applicable to bots.\n - MESSAGE_DELIVERY_STATUS_FAILED: Delivery failed (provider rejected, invalid contact, channel restriction).',
|
|
5311
|
-
),
|
|
5312
|
-
via: zod
|
|
5313
|
-
.string()
|
|
5314
|
-
.optional()
|
|
5315
|
-
.describe('Confirmation source: ws|push|provider|bot.'),
|
|
5316
|
-
})
|
|
5317
|
-
.describe(
|
|
5318
|
-
'MessageRecipientStatus is a per-recipient delivery state of a message.',
|
|
5319
|
-
),
|
|
5320
|
-
)
|
|
5321
|
-
.optional()
|
|
5322
|
-
.describe('Per-recipient delivery details.'),
|
|
5323
5482
|
system: zod
|
|
5324
5483
|
.object({
|
|
5325
5484
|
message_id: zod
|
|
@@ -5450,6 +5609,129 @@ export const ThreadManagementGetResponse = zod
|
|
|
5450
5609
|
)
|
|
5451
5610
|
.optional()
|
|
5452
5611
|
.describe('Detailed member information.'),
|
|
5612
|
+
read_states: zod
|
|
5613
|
+
.array(
|
|
5614
|
+
zod
|
|
5615
|
+
.object({
|
|
5616
|
+
delivered_up_to_seq: zod.string().optional(),
|
|
5617
|
+
member: zod
|
|
5618
|
+
.object({
|
|
5619
|
+
contact: zod
|
|
5620
|
+
.object({
|
|
5621
|
+
app_id: zod
|
|
5622
|
+
.string()
|
|
5623
|
+
.optional()
|
|
5624
|
+
.describe(
|
|
5625
|
+
'Identifier of the specific integration app or bot.',
|
|
5626
|
+
),
|
|
5627
|
+
created_at: zod
|
|
5628
|
+
.string()
|
|
5629
|
+
.optional()
|
|
5630
|
+
.describe(
|
|
5631
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
5632
|
+
),
|
|
5633
|
+
is_bot: zod
|
|
5634
|
+
.boolean()
|
|
5635
|
+
.optional()
|
|
5636
|
+
.describe(
|
|
5637
|
+
'Represents if usere is real person or automatic script.',
|
|
5638
|
+
),
|
|
5639
|
+
iss: zod
|
|
5640
|
+
.string()
|
|
5641
|
+
.optional()
|
|
5642
|
+
.describe(
|
|
5643
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
5644
|
+
),
|
|
5645
|
+
metadata: zod
|
|
5646
|
+
.record(zod.string(), zod.string())
|
|
5647
|
+
.optional()
|
|
5648
|
+
.describe(
|
|
5649
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
5650
|
+
),
|
|
5651
|
+
name: zod
|
|
5652
|
+
.string()
|
|
5653
|
+
.optional()
|
|
5654
|
+
.describe('Display name of the contact.'),
|
|
5655
|
+
sub: zod
|
|
5656
|
+
.string()
|
|
5657
|
+
.optional()
|
|
5658
|
+
.describe(
|
|
5659
|
+
'Associated internal system subject/identifier.',
|
|
5660
|
+
),
|
|
5661
|
+
type: zod
|
|
5662
|
+
.string()
|
|
5663
|
+
.optional()
|
|
5664
|
+
.describe("Channel type (e.g., 'webchat', 'telegram')."),
|
|
5665
|
+
updated_at: zod
|
|
5666
|
+
.string()
|
|
5667
|
+
.optional()
|
|
5668
|
+
.describe(
|
|
5669
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
5670
|
+
),
|
|
5671
|
+
username: zod
|
|
5672
|
+
.string()
|
|
5673
|
+
.optional()
|
|
5674
|
+
.describe('Technical username or handle.'),
|
|
5675
|
+
vias: zod
|
|
5676
|
+
.array(
|
|
5677
|
+
zod.object({
|
|
5678
|
+
contact_id: zod.string().optional(),
|
|
5679
|
+
created_at: zod.string().optional(),
|
|
5680
|
+
disable: zod.boolean().optional(),
|
|
5681
|
+
disable_reason: zod.string().optional(),
|
|
5682
|
+
metadata: zod.looseObject({}).optional(),
|
|
5683
|
+
updated_at: zod.string().optional(),
|
|
5684
|
+
via: zod.string().optional(),
|
|
5685
|
+
}),
|
|
5686
|
+
)
|
|
5687
|
+
.optional(),
|
|
5688
|
+
})
|
|
5689
|
+
.optional()
|
|
5690
|
+
.describe(
|
|
5691
|
+
'Contact represents an external messaging identity.',
|
|
5692
|
+
),
|
|
5693
|
+
id: zod.string().optional(),
|
|
5694
|
+
permissions: zod
|
|
5695
|
+
.object({
|
|
5696
|
+
can_add_members: zod.boolean().optional(),
|
|
5697
|
+
can_change_members_permissions: zod.boolean().optional(),
|
|
5698
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
5699
|
+
can_delete_messages: zod.boolean().optional(),
|
|
5700
|
+
can_remove_members: zod.boolean().optional(),
|
|
5701
|
+
can_send_messages: zod.boolean().optional(),
|
|
5702
|
+
created_at: zod.string().optional(),
|
|
5703
|
+
id: zod.string().optional(),
|
|
5704
|
+
member_id: zod.string().optional(),
|
|
5705
|
+
updated_at: zod.string().optional(),
|
|
5706
|
+
})
|
|
5707
|
+
.optional(),
|
|
5708
|
+
role: zod
|
|
5709
|
+
.enum([
|
|
5710
|
+
'ROLE_UNSPECIFIED',
|
|
5711
|
+
'ROLE_MEMBER',
|
|
5712
|
+
'ROLE_ADMIN',
|
|
5713
|
+
'ROLE_OWNER',
|
|
5714
|
+
'ROLE_SUPERVISOR',
|
|
5715
|
+
])
|
|
5716
|
+
.default(
|
|
5717
|
+
threadManagementGetResponseReadStatesItemMemberRoleDefault,
|
|
5718
|
+
),
|
|
5719
|
+
})
|
|
5720
|
+
.optional()
|
|
5721
|
+
.describe(
|
|
5722
|
+
"The member, in the same shape as history's sender; set by GetUpdates.",
|
|
5723
|
+
),
|
|
5724
|
+
member_id: zod.string().optional(),
|
|
5725
|
+
read_up_to_seq: zod.string().optional(),
|
|
5726
|
+
})
|
|
5727
|
+
.describe(
|
|
5728
|
+
"MemberReadState is one member's delivery/read horizon in a thread, as\nper-thread message seq (0 = nothing reached that state yet).",
|
|
5729
|
+
),
|
|
5730
|
+
)
|
|
5731
|
+
.optional()
|
|
5732
|
+
.describe(
|
|
5733
|
+
'Per-member read horizons (snapshot, matches GetUpdates model).\nClient derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.',
|
|
5734
|
+
),
|
|
5453
5735
|
settings: zod
|
|
5454
5736
|
.object({
|
|
5455
5737
|
created_at: zod
|
|
@@ -5491,6 +5773,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
5491
5773
|
.string()
|
|
5492
5774
|
.optional()
|
|
5493
5775
|
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
5776
|
+
updates_cursor: zod
|
|
5777
|
+
.string()
|
|
5778
|
+
.optional()
|
|
5779
|
+
.describe(
|
|
5780
|
+
'GetUpdates cursor read before this thread (set by Get; Search carries it on the response).',
|
|
5781
|
+
),
|
|
5494
5782
|
variables: zod
|
|
5495
5783
|
.object({
|
|
5496
5784
|
thread_id: zod
|