@webitel/api-services 0.1.46 → 0.1.47
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/users/users.ts +15 -0
- package/src/api/transformers/index.ts +1 -1
- package/src/gen/_models/index.ts +41 -0
- package/src/gen/_models/webitelImApiGatewayV1DirectConfig.ts +15 -0
- package/src/gen/_models/webitelImApiGatewayV1DirectConfig.zod.ts +15 -0
- package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.ts +3 -0
- package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.zod.ts +3 -0
- package/src/gen/_models/webitelImApiGatewayV1System.ts +19 -0
- package/src/gen/_models/webitelImApiGatewayV1System.zod.ts +19 -0
- package/src/gen/_models/webitelImApiGatewayV1SystemMetadata.ts +13 -0
- package/src/gen/_models/webitelImApiGatewayV1SystemMetadata.zod.ts +13 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementCreateRequest.ts +14 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementCreateRequest.zod.ts +14 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementCreateResponse.ts +15 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementCreateResponse.zod.ts +15 -0
- package/src/gen/_models/webitelImApiProviderV1FacebookServiceSetGetStartedBody.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1FacebookServiceSetGetStartedBody.zod.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1FacebookServiceSetPersistentMenuBody.ts +12 -0
- package/src/gen/_models/webitelImApiProviderV1FacebookServiceSetPersistentMenuBody.zod.ts +12 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderDeleteGetStartedResponse.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderDeleteGetStartedResponse.zod.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderDeletePersistentMenuResponse.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderDeletePersistentMenuResponse.zod.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderInteractive.ts +14 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderInteractive.zod.ts +14 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardButton.ts +17 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardButton.zod.ts +17 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonCallback.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonCallback.zod.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonRequest.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonRequest.zod.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonURL.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonURL.zod.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardListReply.ts +12 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardListReply.zod.ts +12 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardMarkup.ts +11 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardMarkup.zod.ts +11 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardRow.ts +11 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardRow.zod.ts +11 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardRowWithSection.ts +12 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderKeyboardRowWithSection.zod.ts +12 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderMenuItem.ts +14 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderMenuItem.zod.ts +14 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderMenuNestedItems.ts +11 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderMenuNestedItems.zod.ts +11 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderSendInteractiveRequest.ts +16 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderSendInteractiveRequest.zod.ts +16 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderSetGetStartedResponse.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderSetGetStartedResponse.zod.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderSetPersistentMenuResponse.ts +10 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderSetPersistentMenuResponse.zod.ts +10 -0
- package/src/gen/_models/webitelImProviderV1FacebookServiceSetGetStartedBody.ts +10 -0
- package/src/gen/_models/webitelImProviderV1FacebookServiceSetGetStartedBody.zod.ts +10 -0
- package/src/gen/_models/webitelImProviderV1FacebookServiceSetPersistentMenuBody.ts +12 -0
- package/src/gen/_models/webitelImProviderV1FacebookServiceSetPersistentMenuBody.zod.ts +12 -0
- package/src/gen/_models/webitelImProviderV1ProviderDeleteGetStartedResponse.ts +10 -0
- package/src/gen/_models/webitelImProviderV1ProviderDeleteGetStartedResponse.zod.ts +10 -0
- package/src/gen/_models/webitelImProviderV1ProviderDeletePersistentMenuResponse.ts +10 -0
- package/src/gen/_models/webitelImProviderV1ProviderDeletePersistentMenuResponse.zod.ts +10 -0
- package/src/gen/_models/webitelImProviderV1ProviderInteractive.ts +18 -0
- package/src/gen/_models/webitelImProviderV1ProviderInteractive.zod.ts +18 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardButton.ts +22 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardButton.zod.ts +22 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardButtonCallback.ts +13 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardButtonCallback.zod.ts +13 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardButtonRequest.ts +13 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardButtonRequest.zod.ts +13 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardButtonURL.ts +13 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardButtonURL.zod.ts +13 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardListReply.ts +16 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardListReply.zod.ts +16 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardMarkup.ts +14 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardMarkup.zod.ts +14 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardRow.ts +14 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardRow.zod.ts +14 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardRowWithSection.ts +15 -0
- package/src/gen/_models/webitelImProviderV1ProviderKeyboardRowWithSection.zod.ts +15 -0
- package/src/gen/_models/webitelImProviderV1ProviderMenuItem.ts +14 -0
- package/src/gen/_models/webitelImProviderV1ProviderMenuItem.zod.ts +14 -0
- package/src/gen/_models/webitelImProviderV1ProviderMenuNestedItems.ts +11 -0
- package/src/gen/_models/webitelImProviderV1ProviderMenuNestedItems.zod.ts +11 -0
- package/src/gen/_models/webitelImProviderV1ProviderSendInteractiveRequest.ts +22 -0
- package/src/gen/_models/webitelImProviderV1ProviderSendInteractiveRequest.zod.ts +22 -0
- package/src/gen/_models/webitelImProviderV1ProviderSetGetStartedResponse.ts +10 -0
- package/src/gen/_models/webitelImProviderV1ProviderSetGetStartedResponse.zod.ts +10 -0
- package/src/gen/_models/webitelImProviderV1ProviderSetPersistentMenuResponse.ts +10 -0
- package/src/gen/_models/webitelImProviderV1ProviderSetPersistentMenuResponse.zod.ts +10 -0
- package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.faker.ts +54 -0
- package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.msw.ts +54 -0
- package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +42 -0
- package/src/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.faker.ts +1520 -5
- package/src/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.msw.ts +1549 -5
- package/src/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +17 -0
- package/src/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +1061 -192
- package/src/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.faker.ts +16 -0
- package/src/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.msw.ts +136 -0
- package/src/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.ts +70 -0
- package/src/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.zod.ts +56 -0
- package/src/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.faker.ts +16 -0
- package/src/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.msw.ts +132 -0
- package/src/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.ts +78 -0
- package/src/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.zod.ts +58 -0
- package/src/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.faker.ts +26 -0
- package/src/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.msw.ts +55 -0
- package/src/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.ts +19 -0
- package/src/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +166 -0
- package/src/locale/index.ts +1 -1
- package/types/api/clients/users/users.d.ts +1 -0
- package/types/api/transformers/index.d.ts +1 -1
- package/types/gen/_models/webitelImApiGatewayV1DirectConfig.d.ts +14 -0
- package/types/gen/_models/webitelImApiGatewayV1DirectConfig.zod.d.ts +14 -0
- package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.d.ts +3 -0
- package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.zod.d.ts +3 -0
- package/types/gen/_models/webitelImApiGatewayV1System.d.ts +18 -0
- package/types/gen/_models/webitelImApiGatewayV1System.zod.d.ts +18 -0
- package/types/gen/_models/webitelImApiGatewayV1SystemMetadata.d.ts +12 -0
- package/types/gen/_models/webitelImApiGatewayV1SystemMetadata.zod.d.ts +12 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementCreateRequest.d.ts +13 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementCreateRequest.zod.d.ts +13 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementCreateResponse.d.ts +14 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementCreateResponse.zod.d.ts +14 -0
- package/types/gen/_models/webitelImApiProviderV1FacebookServiceSetGetStartedBody.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1FacebookServiceSetGetStartedBody.zod.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1FacebookServiceSetPersistentMenuBody.d.ts +11 -0
- package/types/gen/_models/webitelImApiProviderV1FacebookServiceSetPersistentMenuBody.zod.d.ts +11 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderDeleteGetStartedResponse.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderDeleteGetStartedResponse.zod.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderDeletePersistentMenuResponse.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderDeletePersistentMenuResponse.zod.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderInteractive.d.ts +13 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderInteractive.zod.d.ts +13 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardButton.d.ts +16 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardButton.zod.d.ts +16 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonCallback.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonCallback.zod.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonRequest.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonRequest.zod.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonURL.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardButtonURL.zod.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardListReply.d.ts +11 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardListReply.zod.d.ts +11 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardMarkup.d.ts +10 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardMarkup.zod.d.ts +10 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardRow.d.ts +10 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardRow.zod.d.ts +10 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardRowWithSection.d.ts +11 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderKeyboardRowWithSection.zod.d.ts +11 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderMenuItem.d.ts +13 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderMenuItem.zod.d.ts +13 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderMenuNestedItems.d.ts +10 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderMenuNestedItems.zod.d.ts +10 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderSendInteractiveRequest.d.ts +15 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderSendInteractiveRequest.zod.d.ts +15 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderSetGetStartedResponse.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderSetGetStartedResponse.zod.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderSetPersistentMenuResponse.d.ts +9 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderSetPersistentMenuResponse.zod.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1FacebookServiceSetGetStartedBody.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1FacebookServiceSetGetStartedBody.zod.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1FacebookServiceSetPersistentMenuBody.d.ts +11 -0
- package/types/gen/_models/webitelImProviderV1FacebookServiceSetPersistentMenuBody.zod.d.ts +11 -0
- package/types/gen/_models/webitelImProviderV1ProviderDeleteGetStartedResponse.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1ProviderDeleteGetStartedResponse.zod.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1ProviderDeletePersistentMenuResponse.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1ProviderDeletePersistentMenuResponse.zod.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1ProviderInteractive.d.ts +17 -0
- package/types/gen/_models/webitelImProviderV1ProviderInteractive.zod.d.ts +17 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardButton.d.ts +21 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardButton.zod.d.ts +21 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardButtonCallback.d.ts +12 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardButtonCallback.zod.d.ts +12 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardButtonRequest.d.ts +12 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardButtonRequest.zod.d.ts +12 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardButtonURL.d.ts +12 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardButtonURL.zod.d.ts +12 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardListReply.d.ts +15 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardListReply.zod.d.ts +15 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardMarkup.d.ts +13 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardMarkup.zod.d.ts +13 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardRow.d.ts +13 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardRow.zod.d.ts +13 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardRowWithSection.d.ts +14 -0
- package/types/gen/_models/webitelImProviderV1ProviderKeyboardRowWithSection.zod.d.ts +14 -0
- package/types/gen/_models/webitelImProviderV1ProviderMenuItem.d.ts +13 -0
- package/types/gen/_models/webitelImProviderV1ProviderMenuItem.zod.d.ts +13 -0
- package/types/gen/_models/webitelImProviderV1ProviderMenuNestedItems.d.ts +10 -0
- package/types/gen/_models/webitelImProviderV1ProviderMenuNestedItems.zod.d.ts +10 -0
- package/types/gen/_models/webitelImProviderV1ProviderSendInteractiveRequest.d.ts +21 -0
- package/types/gen/_models/webitelImProviderV1ProviderSendInteractiveRequest.zod.d.ts +21 -0
- package/types/gen/_models/webitelImProviderV1ProviderSetGetStartedResponse.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1ProviderSetGetStartedResponse.zod.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1ProviderSetPersistentMenuResponse.d.ts +9 -0
- package/types/gen/_models/webitelImProviderV1ProviderSetPersistentMenuResponse.zod.d.ts +9 -0
- package/types/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +10 -0
- package/types/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +3 -1
- package/types/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.faker.d.ts +2 -1
- package/types/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.msw.d.ts +3 -1
- package/types/gen/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +264 -0
- package/types/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.d.ts +9 -1
- package/types/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.faker.d.ts +5 -1
- package/types/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.msw.d.ts +9 -1
- package/types/gen/webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.zod.d.ts +30 -0
- package/types/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.d.ts +9 -1
- package/types/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.faker.d.ts +5 -1
- package/types/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.msw.d.ts +9 -1
- package/types/gen/webitel-im-provider-v1-facebookservice/webitel-im-provider-v1-facebookservice.zod.d.ts +42 -0
- package/types/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.d.ts +3 -1
- package/types/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.faker.d.ts +1 -0
- package/types/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.msw.d.ts +2 -0
- package/types/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +53 -0
- package/types/locale/index.d.ts +1 -1
|
@@ -561,6 +561,27 @@ export const ThreadManagementSearchResponse = zod
|
|
|
561
561
|
})
|
|
562
562
|
.optional()
|
|
563
563
|
.describe('Sender user aggregated information.'),
|
|
564
|
+
system: zod
|
|
565
|
+
.object({
|
|
566
|
+
messageId: zod
|
|
567
|
+
.string()
|
|
568
|
+
.optional()
|
|
569
|
+
.describe(
|
|
570
|
+
'ID of message for which system messages is binded.',
|
|
571
|
+
),
|
|
572
|
+
metadata: zod
|
|
573
|
+
.looseObject({})
|
|
574
|
+
.optional()
|
|
575
|
+
.describe(
|
|
576
|
+
'Represents additional metadata binded into system message.',
|
|
577
|
+
),
|
|
578
|
+
type: zod
|
|
579
|
+
.string()
|
|
580
|
+
.optional()
|
|
581
|
+
.describe('Represents type of the message.'),
|
|
582
|
+
})
|
|
583
|
+
.optional()
|
|
584
|
+
.describe('System message content.'),
|
|
564
585
|
threadId: zod
|
|
565
586
|
.string()
|
|
566
587
|
.optional()
|
|
@@ -571,12 +592,994 @@ export const ThreadManagementSearchResponse = zod
|
|
|
571
592
|
.describe('Message type identifier.'),
|
|
572
593
|
})
|
|
573
594
|
.optional()
|
|
574
|
-
.describe('Last message of the linked thread.'),
|
|
575
|
-
members: zod
|
|
576
|
-
.array(
|
|
595
|
+
.describe('Last message of the linked thread.'),
|
|
596
|
+
members: zod
|
|
597
|
+
.array(
|
|
598
|
+
zod
|
|
599
|
+
.object({
|
|
600
|
+
contact: zod
|
|
601
|
+
.object({
|
|
602
|
+
appId: zod
|
|
603
|
+
.string()
|
|
604
|
+
.optional()
|
|
605
|
+
.describe(
|
|
606
|
+
'Identifier of the specific integration app or bot.',
|
|
607
|
+
),
|
|
608
|
+
createdAt: zod
|
|
609
|
+
.string()
|
|
610
|
+
.optional()
|
|
611
|
+
.describe(
|
|
612
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
613
|
+
),
|
|
614
|
+
isBot: zod
|
|
615
|
+
.boolean()
|
|
616
|
+
.optional()
|
|
617
|
+
.describe(
|
|
618
|
+
'Represents if usere is real person or automatic script.',
|
|
619
|
+
),
|
|
620
|
+
iss: zod
|
|
621
|
+
.string()
|
|
622
|
+
.optional()
|
|
623
|
+
.describe(
|
|
624
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
625
|
+
),
|
|
626
|
+
metadata: zod
|
|
627
|
+
.record(zod.string(), zod.string())
|
|
628
|
+
.optional()
|
|
629
|
+
.describe(
|
|
630
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
631
|
+
),
|
|
632
|
+
name: zod
|
|
633
|
+
.string()
|
|
634
|
+
.optional()
|
|
635
|
+
.describe('Display name of the contact.'),
|
|
636
|
+
sub: zod
|
|
637
|
+
.string()
|
|
638
|
+
.optional()
|
|
639
|
+
.describe(
|
|
640
|
+
'Associated internal system subject/identifier.',
|
|
641
|
+
),
|
|
642
|
+
type: zod
|
|
643
|
+
.string()
|
|
644
|
+
.optional()
|
|
645
|
+
.describe(
|
|
646
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
647
|
+
),
|
|
648
|
+
updatedAt: zod
|
|
649
|
+
.string()
|
|
650
|
+
.optional()
|
|
651
|
+
.describe(
|
|
652
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
653
|
+
),
|
|
654
|
+
username: zod
|
|
655
|
+
.string()
|
|
656
|
+
.optional()
|
|
657
|
+
.describe('Technical username or handle.'),
|
|
658
|
+
vias: zod
|
|
659
|
+
.array(
|
|
660
|
+
zod.object({
|
|
661
|
+
contactId: zod.string().optional(),
|
|
662
|
+
createdAt: zod.string().optional(),
|
|
663
|
+
disable: zod.boolean().optional(),
|
|
664
|
+
disableReason: zod.string().optional(),
|
|
665
|
+
metadata: zod.looseObject({}).optional(),
|
|
666
|
+
updatedAt: zod.string().optional(),
|
|
667
|
+
via: zod.string().optional(),
|
|
668
|
+
}),
|
|
669
|
+
)
|
|
670
|
+
.optional(),
|
|
671
|
+
})
|
|
672
|
+
.optional()
|
|
673
|
+
.describe(
|
|
674
|
+
'Contact represents an external messaging identity.',
|
|
675
|
+
),
|
|
676
|
+
id: zod.string().optional(),
|
|
677
|
+
permissions: zod
|
|
678
|
+
.object({
|
|
679
|
+
canAddMembers: zod.boolean().optional(),
|
|
680
|
+
canChangeMembersPermissions: zod.boolean().optional(),
|
|
681
|
+
canChangeThreadInfo: zod.boolean().optional(),
|
|
682
|
+
canRemoveMembers: zod.boolean().optional(),
|
|
683
|
+
canSendMessages: zod.boolean().optional(),
|
|
684
|
+
createdAt: zod.string().optional(),
|
|
685
|
+
id: zod.string().optional(),
|
|
686
|
+
memberId: zod.string().optional(),
|
|
687
|
+
updatedAt: zod.string().optional(),
|
|
688
|
+
})
|
|
689
|
+
.optional(),
|
|
690
|
+
role: zod
|
|
691
|
+
.enum([
|
|
692
|
+
'ROLE_UNSPECIFIED',
|
|
693
|
+
'ROLE_MEMBER',
|
|
694
|
+
'ROLE_ADMIN',
|
|
695
|
+
'ROLE_OWNER',
|
|
696
|
+
'ROLE_SUPERVISOR',
|
|
697
|
+
])
|
|
698
|
+
.default(
|
|
699
|
+
threadManagementSearchResponseItemsItemMembersItemRoleDefault,
|
|
700
|
+
),
|
|
701
|
+
})
|
|
702
|
+
.describe(
|
|
703
|
+
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
704
|
+
),
|
|
705
|
+
)
|
|
706
|
+
.optional()
|
|
707
|
+
.describe('Detailed member information.'),
|
|
708
|
+
settings: zod
|
|
709
|
+
.object({
|
|
710
|
+
createdAt: zod
|
|
711
|
+
.string()
|
|
712
|
+
.optional()
|
|
713
|
+
.describe('Creation timestamp (Unix time, milliseconds).'),
|
|
714
|
+
domainId: zod
|
|
715
|
+
.number()
|
|
716
|
+
.optional()
|
|
717
|
+
.describe('Domain identifier.'),
|
|
718
|
+
id: zod.string().optional().describe('Settings identifier.'),
|
|
719
|
+
title: zod
|
|
720
|
+
.string()
|
|
721
|
+
.optional()
|
|
722
|
+
.describe(
|
|
723
|
+
'Custom title for the direct thread.\nUsually represents the display name of the conversation.',
|
|
724
|
+
),
|
|
725
|
+
updatedAt: zod
|
|
726
|
+
.string()
|
|
727
|
+
.optional()
|
|
728
|
+
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
729
|
+
})
|
|
730
|
+
.optional()
|
|
731
|
+
.describe('User-specific settings for this thread.'),
|
|
732
|
+
subject: zod
|
|
733
|
+
.string()
|
|
734
|
+
.optional()
|
|
735
|
+
.describe('Thread subject or title.'),
|
|
736
|
+
type: zod
|
|
737
|
+
.enum([
|
|
738
|
+
'UNKNOWN',
|
|
739
|
+
'DIRECT',
|
|
740
|
+
'GROUP',
|
|
741
|
+
'CHANNEL',
|
|
742
|
+
])
|
|
743
|
+
.default(threadManagementSearchResponseItemsItemTypeDefault)
|
|
744
|
+
.describe('Type of the thread.'),
|
|
745
|
+
updatedAt: zod
|
|
746
|
+
.string()
|
|
747
|
+
.optional()
|
|
748
|
+
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
749
|
+
variables: zod
|
|
750
|
+
.object({
|
|
751
|
+
threadId: zod
|
|
752
|
+
.string()
|
|
753
|
+
.optional()
|
|
754
|
+
.describe('Unique identifier for the thread.'),
|
|
755
|
+
variables: zod
|
|
756
|
+
.record(
|
|
757
|
+
zod.string(),
|
|
758
|
+
zod
|
|
759
|
+
.object({
|
|
760
|
+
setAt: zod
|
|
761
|
+
.string()
|
|
762
|
+
.optional()
|
|
763
|
+
.describe(
|
|
764
|
+
'Timestamp when the variable was set (Unix time, milliseconds).',
|
|
765
|
+
),
|
|
766
|
+
setBy: zod
|
|
767
|
+
.object({
|
|
768
|
+
appId: zod
|
|
769
|
+
.string()
|
|
770
|
+
.optional()
|
|
771
|
+
.describe(
|
|
772
|
+
'Identifier of the specific integration app or bot.',
|
|
773
|
+
),
|
|
774
|
+
createdAt: zod
|
|
775
|
+
.string()
|
|
776
|
+
.optional()
|
|
777
|
+
.describe(
|
|
778
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
779
|
+
),
|
|
780
|
+
isBot: zod
|
|
781
|
+
.boolean()
|
|
782
|
+
.optional()
|
|
783
|
+
.describe(
|
|
784
|
+
'Represents if usere is real person or automatic script.',
|
|
785
|
+
),
|
|
786
|
+
iss: zod
|
|
787
|
+
.string()
|
|
788
|
+
.optional()
|
|
789
|
+
.describe(
|
|
790
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
791
|
+
),
|
|
792
|
+
metadata: zod
|
|
793
|
+
.record(zod.string(), zod.string())
|
|
794
|
+
.optional()
|
|
795
|
+
.describe(
|
|
796
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
797
|
+
),
|
|
798
|
+
name: zod
|
|
799
|
+
.string()
|
|
800
|
+
.optional()
|
|
801
|
+
.describe('Display name of the contact.'),
|
|
802
|
+
sub: zod
|
|
803
|
+
.string()
|
|
804
|
+
.optional()
|
|
805
|
+
.describe(
|
|
806
|
+
'Associated internal system subject/identifier.',
|
|
807
|
+
),
|
|
808
|
+
type: zod
|
|
809
|
+
.string()
|
|
810
|
+
.optional()
|
|
811
|
+
.describe(
|
|
812
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
813
|
+
),
|
|
814
|
+
updatedAt: zod
|
|
815
|
+
.string()
|
|
816
|
+
.optional()
|
|
817
|
+
.describe(
|
|
818
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
819
|
+
),
|
|
820
|
+
username: zod
|
|
821
|
+
.string()
|
|
822
|
+
.optional()
|
|
823
|
+
.describe('Technical username or handle.'),
|
|
824
|
+
vias: zod
|
|
825
|
+
.array(
|
|
826
|
+
zod.object({
|
|
827
|
+
contactId: zod.string().optional(),
|
|
828
|
+
createdAt: zod.string().optional(),
|
|
829
|
+
disable: zod.boolean().optional(),
|
|
830
|
+
disableReason: zod.string().optional(),
|
|
831
|
+
metadata: zod.looseObject({}).optional(),
|
|
832
|
+
updatedAt: zod.string().optional(),
|
|
833
|
+
via: zod.string().optional(),
|
|
834
|
+
}),
|
|
835
|
+
)
|
|
836
|
+
.optional(),
|
|
837
|
+
})
|
|
838
|
+
.optional()
|
|
839
|
+
.describe('Contact who set the variable.'),
|
|
840
|
+
value: zod
|
|
841
|
+
.looseObject({})
|
|
842
|
+
.optional()
|
|
843
|
+
.describe(
|
|
844
|
+
'Arbitrary structured value of the variable.\nSupports dynamic JSON-like content.',
|
|
845
|
+
),
|
|
846
|
+
})
|
|
847
|
+
.describe(
|
|
848
|
+
'VariableEntry represents a single variable value\nalong with metadata about who and when it was set.',
|
|
849
|
+
),
|
|
850
|
+
)
|
|
851
|
+
.optional()
|
|
852
|
+
.describe(
|
|
853
|
+
'Key-value map of variables.\nKey is the variable name, value contains data and metadata.',
|
|
854
|
+
),
|
|
855
|
+
})
|
|
856
|
+
.optional()
|
|
857
|
+
.describe('Optional variables associated with the thread.'),
|
|
858
|
+
})
|
|
859
|
+
.describe(
|
|
860
|
+
'Thread represents a thread (aka chat or conversation) entity.',
|
|
861
|
+
),
|
|
862
|
+
)
|
|
863
|
+
.optional()
|
|
864
|
+
.describe('List of threads matching the search criteria.'),
|
|
865
|
+
next: zod
|
|
866
|
+
.boolean()
|
|
867
|
+
.optional()
|
|
868
|
+
.describe('Indicates whether there is a next page available.'),
|
|
869
|
+
})
|
|
870
|
+
.describe(
|
|
871
|
+
'SearchThreadResponse contains the list of threads\nand pagination metadata.',
|
|
872
|
+
);
|
|
873
|
+
|
|
874
|
+
export const ThreadManagementCreateBody = zod
|
|
875
|
+
.object({
|
|
876
|
+
direct: zod
|
|
877
|
+
.object({
|
|
878
|
+
member: zod
|
|
879
|
+
.object({
|
|
880
|
+
iss: zod.string().optional(),
|
|
881
|
+
sub: zod.string().optional(),
|
|
882
|
+
via: zod.string().optional(),
|
|
883
|
+
})
|
|
884
|
+
.optional()
|
|
885
|
+
.describe(
|
|
886
|
+
'IM contact that will be added to the created thread as second member.',
|
|
887
|
+
),
|
|
888
|
+
})
|
|
889
|
+
.optional()
|
|
890
|
+
.describe(
|
|
891
|
+
'DirectConfig defines settings required to establish a 1:1 thread.',
|
|
892
|
+
),
|
|
893
|
+
})
|
|
894
|
+
.describe(
|
|
895
|
+
'ThreadManagementCreateRequest defines parameters for creating a specific thread type.',
|
|
896
|
+
);
|
|
897
|
+
|
|
898
|
+
export const threadManagementCreateResponseThreadLastMsgSenderRoleDefault = `ROLE_UNSPECIFIED`;
|
|
899
|
+
export const threadManagementCreateResponseThreadMembersItemRoleDefault = `ROLE_UNSPECIFIED`;
|
|
900
|
+
export const threadManagementCreateResponseThreadTypeDefault = `UNKNOWN`;
|
|
901
|
+
|
|
902
|
+
export const ThreadManagementCreateResponse = zod
|
|
903
|
+
.object({
|
|
904
|
+
thread: zod
|
|
905
|
+
.object({
|
|
906
|
+
createdAt: zod
|
|
907
|
+
.string()
|
|
908
|
+
.optional()
|
|
909
|
+
.describe('Thread creation timestamp (Unix time, milliseconds).'),
|
|
910
|
+
description: zod
|
|
911
|
+
.string()
|
|
912
|
+
.optional()
|
|
913
|
+
.describe('Optional thread description.'),
|
|
914
|
+
id: zod.string().optional().describe('Unique thread identifier.'),
|
|
915
|
+
lastMsg: zod
|
|
916
|
+
.object({
|
|
917
|
+
body: zod.string().optional().describe('Message body content.'),
|
|
918
|
+
contact: zod
|
|
919
|
+
.object({
|
|
920
|
+
email: zod.string().optional(),
|
|
921
|
+
name: zod.string().optional(),
|
|
922
|
+
phone: zod.string().optional(),
|
|
923
|
+
})
|
|
924
|
+
.optional(),
|
|
925
|
+
createdAt: zod
|
|
926
|
+
.string()
|
|
927
|
+
.optional()
|
|
928
|
+
.describe(
|
|
929
|
+
'Message creation timestamp (Unix time, milliseconds).',
|
|
930
|
+
),
|
|
931
|
+
documents: zod
|
|
932
|
+
.array(
|
|
933
|
+
zod
|
|
934
|
+
.object({
|
|
935
|
+
createdAt: zod
|
|
936
|
+
.string()
|
|
937
|
+
.optional()
|
|
938
|
+
.describe(
|
|
939
|
+
'Creation timestamp (Unix time, milliseconds).',
|
|
940
|
+
),
|
|
941
|
+
fileId: zod
|
|
942
|
+
.string()
|
|
943
|
+
.optional()
|
|
944
|
+
.describe('File storage identifier.'),
|
|
945
|
+
id: zod
|
|
946
|
+
.string()
|
|
947
|
+
.optional()
|
|
948
|
+
.describe('Document identifier.'),
|
|
949
|
+
messageId: zod
|
|
950
|
+
.string()
|
|
951
|
+
.optional()
|
|
952
|
+
.describe(
|
|
953
|
+
'Identifier of the message this document belongs to.',
|
|
954
|
+
),
|
|
955
|
+
mime: zod
|
|
956
|
+
.string()
|
|
957
|
+
.optional()
|
|
958
|
+
.describe('MIME type of the document.'),
|
|
959
|
+
name: zod
|
|
960
|
+
.string()
|
|
961
|
+
.optional()
|
|
962
|
+
.describe('Original file name.'),
|
|
963
|
+
size: zod
|
|
964
|
+
.string()
|
|
965
|
+
.optional()
|
|
966
|
+
.describe('File size in bytes.'),
|
|
967
|
+
url: zod
|
|
968
|
+
.string()
|
|
969
|
+
.optional()
|
|
970
|
+
.describe(
|
|
971
|
+
'Public signed URL for downloading the document.',
|
|
972
|
+
),
|
|
973
|
+
})
|
|
974
|
+
.describe(
|
|
975
|
+
'Document represents a file attachment\nassociated with a message.',
|
|
976
|
+
),
|
|
977
|
+
)
|
|
978
|
+
.optional()
|
|
979
|
+
.describe('List of document attachments.'),
|
|
980
|
+
editedAt: zod
|
|
981
|
+
.string()
|
|
982
|
+
.optional()
|
|
983
|
+
.describe(
|
|
984
|
+
'Message last update timestamp (Unix time, milliseconds).',
|
|
985
|
+
),
|
|
986
|
+
id: zod.string().optional().describe('Unique message identifier.'),
|
|
987
|
+
images: zod
|
|
988
|
+
.array(
|
|
989
|
+
zod
|
|
990
|
+
.object({
|
|
991
|
+
createdAt: zod
|
|
992
|
+
.string()
|
|
993
|
+
.optional()
|
|
994
|
+
.describe(
|
|
995
|
+
'Creation timestamp (Unix time, milliseconds).',
|
|
996
|
+
),
|
|
997
|
+
fileId: zod
|
|
998
|
+
.string()
|
|
999
|
+
.optional()
|
|
1000
|
+
.describe('File storage identifier.'),
|
|
1001
|
+
height: zod
|
|
1002
|
+
.number()
|
|
1003
|
+
.optional()
|
|
1004
|
+
.describe('Image height in pixels.'),
|
|
1005
|
+
id: zod.string().optional().describe('Image identifier.'),
|
|
1006
|
+
messageId: zod
|
|
1007
|
+
.string()
|
|
1008
|
+
.optional()
|
|
1009
|
+
.describe(
|
|
1010
|
+
'Identifier of the message this message belongs to.',
|
|
1011
|
+
),
|
|
1012
|
+
mime: zod
|
|
1013
|
+
.string()
|
|
1014
|
+
.optional()
|
|
1015
|
+
.describe('MIME type of the image.'),
|
|
1016
|
+
url: zod
|
|
1017
|
+
.string()
|
|
1018
|
+
.optional()
|
|
1019
|
+
.describe('Public signed URL for accessing the image.'),
|
|
1020
|
+
width: zod
|
|
1021
|
+
.number()
|
|
1022
|
+
.optional()
|
|
1023
|
+
.describe('Image width in pixels.'),
|
|
1024
|
+
})
|
|
1025
|
+
.describe(
|
|
1026
|
+
'Image represents an image attachment\nassociated with a message.',
|
|
1027
|
+
),
|
|
1028
|
+
)
|
|
1029
|
+
.optional()
|
|
1030
|
+
.describe('List of image attachments.'),
|
|
1031
|
+
interactive: zod
|
|
1032
|
+
.object({
|
|
1033
|
+
documents: zod
|
|
1034
|
+
.object({
|
|
1035
|
+
documents: zod
|
|
1036
|
+
.array(
|
|
1037
|
+
zod
|
|
1038
|
+
.object({
|
|
1039
|
+
fileName: zod.string().optional(),
|
|
1040
|
+
id: zod.string().optional(),
|
|
1041
|
+
mimeType: zod.string().optional(),
|
|
1042
|
+
sizeBytes: zod.string().optional(),
|
|
1043
|
+
url: zod.string().optional(),
|
|
1044
|
+
})
|
|
1045
|
+
.describe(
|
|
1046
|
+
'Represents `Document` message with necessary fields\nto process it into frequently used `document`\nentity in messaging systems.',
|
|
1047
|
+
),
|
|
1048
|
+
)
|
|
1049
|
+
.optional()
|
|
1050
|
+
.describe(
|
|
1051
|
+
'Documents to be attached to the header of interactive message.\nMax allowed documents: 10.',
|
|
1052
|
+
),
|
|
1053
|
+
})
|
|
1054
|
+
.optional()
|
|
1055
|
+
.describe('Document attachments header.'),
|
|
1056
|
+
images: zod
|
|
1057
|
+
.object({
|
|
1058
|
+
images: zod
|
|
1059
|
+
.array(
|
|
1060
|
+
zod
|
|
1061
|
+
.object({
|
|
1062
|
+
id: zod.string().optional(),
|
|
1063
|
+
link: zod.string().optional(),
|
|
1064
|
+
mimeType: zod.string().optional(),
|
|
1065
|
+
name: zod.string().optional(),
|
|
1066
|
+
})
|
|
1067
|
+
.describe(
|
|
1068
|
+
'Represents `Image` entity with\nnecessary fields.',
|
|
1069
|
+
),
|
|
1070
|
+
)
|
|
1071
|
+
.optional()
|
|
1072
|
+
.describe(
|
|
1073
|
+
'Images to be attached to the header of interactive message.\nMax allowed images: 10.',
|
|
1074
|
+
),
|
|
1075
|
+
})
|
|
1076
|
+
.optional()
|
|
1077
|
+
.describe('Images attachment header.'),
|
|
1078
|
+
listReply: zod
|
|
1079
|
+
.object({
|
|
1080
|
+
mainButtonTitle: zod
|
|
1081
|
+
.string()
|
|
1082
|
+
.optional()
|
|
1083
|
+
.describe(
|
|
1084
|
+
'Title of the main button, that on-click show up list.',
|
|
1085
|
+
),
|
|
1086
|
+
sections: zod
|
|
1087
|
+
.array(
|
|
1088
|
+
zod
|
|
1089
|
+
.object({
|
|
1090
|
+
buttons: zod
|
|
1091
|
+
.array(
|
|
1092
|
+
zod
|
|
1093
|
+
.object({
|
|
1094
|
+
callback: zod
|
|
1095
|
+
.object({
|
|
1096
|
+
data: zod
|
|
1097
|
+
.string()
|
|
1098
|
+
.optional()
|
|
1099
|
+
.describe(
|
|
1100
|
+
'Opaque data payload passed back to the server upon interaction.',
|
|
1101
|
+
),
|
|
1102
|
+
})
|
|
1103
|
+
.optional()
|
|
1104
|
+
.describe(
|
|
1105
|
+
'Triggers a backend event (callback) with associated metadata.',
|
|
1106
|
+
),
|
|
1107
|
+
id: zod
|
|
1108
|
+
.string()
|
|
1109
|
+
.optional()
|
|
1110
|
+
.describe(
|
|
1111
|
+
'Unique idempotent identifier for the button.\nUsed by the frontend to track state and prevent duplicate interactions.',
|
|
1112
|
+
),
|
|
1113
|
+
label: zod
|
|
1114
|
+
.string()
|
|
1115
|
+
.optional()
|
|
1116
|
+
.describe(
|
|
1117
|
+
'The human-readable label displayed on the button.',
|
|
1118
|
+
),
|
|
1119
|
+
metadata: zod
|
|
1120
|
+
.looseObject({})
|
|
1121
|
+
.optional()
|
|
1122
|
+
.describe(
|
|
1123
|
+
'Extensible metadata for UI/UX styling (e.g., "color", "theme", "size").\nUsage: Allows for future-proofing without breaking schema changes.',
|
|
1124
|
+
),
|
|
1125
|
+
request: zod
|
|
1126
|
+
.object({
|
|
1127
|
+
action: zod
|
|
1128
|
+
.string()
|
|
1129
|
+
.optional()
|
|
1130
|
+
.describe(
|
|
1131
|
+
'The specific action to be performed by the client application.',
|
|
1132
|
+
),
|
|
1133
|
+
})
|
|
1134
|
+
.optional()
|
|
1135
|
+
.describe(
|
|
1136
|
+
'Requests sensitive information from the client (e.g., location or contact).',
|
|
1137
|
+
),
|
|
1138
|
+
url: zod
|
|
1139
|
+
.object({
|
|
1140
|
+
url: zod
|
|
1141
|
+
.string()
|
|
1142
|
+
.optional()
|
|
1143
|
+
.describe(
|
|
1144
|
+
'Must be a valid absolute URI (e.g., https://example.com).',
|
|
1145
|
+
),
|
|
1146
|
+
})
|
|
1147
|
+
.optional()
|
|
1148
|
+
.describe(
|
|
1149
|
+
'Directs the user to an external web resource.',
|
|
1150
|
+
),
|
|
1151
|
+
})
|
|
1152
|
+
.describe(
|
|
1153
|
+
'Defines a single interactive element within the keyboard.\nEach button must have a unique identifier and a specific action type.',
|
|
1154
|
+
),
|
|
1155
|
+
)
|
|
1156
|
+
.optional()
|
|
1157
|
+
.describe(
|
|
1158
|
+
'Collection of buttons within this section.\nMinimum of 1 button is required to prevent empty sections.',
|
|
1159
|
+
),
|
|
1160
|
+
section: zod
|
|
1161
|
+
.string()
|
|
1162
|
+
.optional()
|
|
1163
|
+
.describe(
|
|
1164
|
+
'The header text for this section. Must be concise and descriptive.',
|
|
1165
|
+
),
|
|
1166
|
+
})
|
|
1167
|
+
.describe(
|
|
1168
|
+
'Represents a row of buttons grouped under a specific logical section header.\nUseful for creating categorized menus or structured interactive interfaces.',
|
|
1169
|
+
),
|
|
1170
|
+
)
|
|
1171
|
+
.optional()
|
|
1172
|
+
.describe('List with sections with buttons.'),
|
|
1173
|
+
})
|
|
1174
|
+
.optional()
|
|
1175
|
+
.describe(
|
|
1176
|
+
'List reply with main list button text and sections with buttons.',
|
|
1177
|
+
),
|
|
1178
|
+
markup: zod
|
|
1179
|
+
.object({
|
|
1180
|
+
rows: zod
|
|
1181
|
+
.array(
|
|
1182
|
+
zod
|
|
1183
|
+
.object({
|
|
1184
|
+
buttons: zod
|
|
1185
|
+
.array(
|
|
1186
|
+
zod
|
|
1187
|
+
.object({
|
|
1188
|
+
callback: zod
|
|
1189
|
+
.object({
|
|
1190
|
+
data: zod
|
|
1191
|
+
.string()
|
|
1192
|
+
.optional()
|
|
1193
|
+
.describe(
|
|
1194
|
+
'Opaque data payload passed back to the server upon interaction.',
|
|
1195
|
+
),
|
|
1196
|
+
})
|
|
1197
|
+
.optional()
|
|
1198
|
+
.describe(
|
|
1199
|
+
'Triggers a backend event (callback) with associated metadata.',
|
|
1200
|
+
),
|
|
1201
|
+
id: zod
|
|
1202
|
+
.string()
|
|
1203
|
+
.optional()
|
|
1204
|
+
.describe(
|
|
1205
|
+
'Unique idempotent identifier for the button.\nUsed by the frontend to track state and prevent duplicate interactions.',
|
|
1206
|
+
),
|
|
1207
|
+
label: zod
|
|
1208
|
+
.string()
|
|
1209
|
+
.optional()
|
|
1210
|
+
.describe(
|
|
1211
|
+
'The human-readable label displayed on the button.',
|
|
1212
|
+
),
|
|
1213
|
+
metadata: zod
|
|
1214
|
+
.looseObject({})
|
|
1215
|
+
.optional()
|
|
1216
|
+
.describe(
|
|
1217
|
+
'Extensible metadata for UI/UX styling (e.g., "color", "theme", "size").\nUsage: Allows for future-proofing without breaking schema changes.',
|
|
1218
|
+
),
|
|
1219
|
+
request: zod
|
|
1220
|
+
.object({
|
|
1221
|
+
action: zod
|
|
1222
|
+
.string()
|
|
1223
|
+
.optional()
|
|
1224
|
+
.describe(
|
|
1225
|
+
'The specific action to be performed by the client application.',
|
|
1226
|
+
),
|
|
1227
|
+
})
|
|
1228
|
+
.optional()
|
|
1229
|
+
.describe(
|
|
1230
|
+
'Requests sensitive information from the client (e.g., location or contact).',
|
|
1231
|
+
),
|
|
1232
|
+
url: zod
|
|
1233
|
+
.object({
|
|
1234
|
+
url: zod
|
|
1235
|
+
.string()
|
|
1236
|
+
.optional()
|
|
1237
|
+
.describe(
|
|
1238
|
+
'Must be a valid absolute URI (e.g., https://example.com).',
|
|
1239
|
+
),
|
|
1240
|
+
})
|
|
1241
|
+
.optional()
|
|
1242
|
+
.describe(
|
|
1243
|
+
'Directs the user to an external web resource.',
|
|
1244
|
+
),
|
|
1245
|
+
})
|
|
1246
|
+
.describe(
|
|
1247
|
+
'Defines a single interactive element within the keyboard.\nEach button must have a unique identifier and a specific action type.',
|
|
1248
|
+
),
|
|
1249
|
+
)
|
|
1250
|
+
.optional()
|
|
1251
|
+
.describe(
|
|
1252
|
+
'Horizontal collection of buttons.\nCapped at 10 to ensure UI responsiveness and prevent overflow.',
|
|
1253
|
+
),
|
|
1254
|
+
})
|
|
1255
|
+
.describe(
|
|
1256
|
+
'A standard horizontal row of interactive buttons without a section header.',
|
|
1257
|
+
),
|
|
1258
|
+
)
|
|
1259
|
+
.optional()
|
|
1260
|
+
.describe('Rows of buttons matrix.'),
|
|
1261
|
+
})
|
|
1262
|
+
.optional()
|
|
1263
|
+
.describe('Markup matrix with buttons.'),
|
|
1264
|
+
singleUse: zod
|
|
1265
|
+
.boolean()
|
|
1266
|
+
.optional()
|
|
1267
|
+
.describe('Force to block user keyboard.'),
|
|
1268
|
+
})
|
|
1269
|
+
.optional()
|
|
1270
|
+
.describe(
|
|
1271
|
+
'Interactive represents a rich message with UI elements.',
|
|
1272
|
+
),
|
|
1273
|
+
location: zod
|
|
1274
|
+
.object({
|
|
1275
|
+
address: zod.string().optional(),
|
|
1276
|
+
latitude: zod.number().optional(),
|
|
1277
|
+
longitude: zod.number().optional(),
|
|
1278
|
+
name: zod.string().optional(),
|
|
1279
|
+
})
|
|
1280
|
+
.optional(),
|
|
1281
|
+
metadata: zod
|
|
1282
|
+
.looseObject({})
|
|
1283
|
+
.optional()
|
|
1284
|
+
.describe(
|
|
1285
|
+
'Arbitrary message metadata.\nCan contain structured data depending on message type.',
|
|
1286
|
+
),
|
|
1287
|
+
sender: zod
|
|
1288
|
+
.object({
|
|
1289
|
+
contact: zod
|
|
1290
|
+
.object({
|
|
1291
|
+
appId: zod
|
|
1292
|
+
.string()
|
|
1293
|
+
.optional()
|
|
1294
|
+
.describe(
|
|
1295
|
+
'Identifier of the specific integration app or bot.',
|
|
1296
|
+
),
|
|
1297
|
+
createdAt: zod
|
|
1298
|
+
.string()
|
|
1299
|
+
.optional()
|
|
1300
|
+
.describe(
|
|
1301
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1302
|
+
),
|
|
1303
|
+
isBot: zod
|
|
1304
|
+
.boolean()
|
|
1305
|
+
.optional()
|
|
1306
|
+
.describe(
|
|
1307
|
+
'Represents if usere is real person or automatic script.',
|
|
1308
|
+
),
|
|
1309
|
+
iss: zod
|
|
1310
|
+
.string()
|
|
1311
|
+
.optional()
|
|
1312
|
+
.describe(
|
|
1313
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
1314
|
+
),
|
|
1315
|
+
metadata: zod
|
|
1316
|
+
.record(zod.string(), zod.string())
|
|
1317
|
+
.optional()
|
|
1318
|
+
.describe(
|
|
1319
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
1320
|
+
),
|
|
1321
|
+
name: zod
|
|
1322
|
+
.string()
|
|
1323
|
+
.optional()
|
|
1324
|
+
.describe('Display name of the contact.'),
|
|
1325
|
+
sub: zod
|
|
1326
|
+
.string()
|
|
1327
|
+
.optional()
|
|
1328
|
+
.describe(
|
|
1329
|
+
'Associated internal system subject/identifier.',
|
|
1330
|
+
),
|
|
1331
|
+
type: zod
|
|
1332
|
+
.string()
|
|
1333
|
+
.optional()
|
|
1334
|
+
.describe("Channel type (e.g., 'webchat', 'telegram')."),
|
|
1335
|
+
updatedAt: zod
|
|
1336
|
+
.string()
|
|
1337
|
+
.optional()
|
|
1338
|
+
.describe(
|
|
1339
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
1340
|
+
),
|
|
1341
|
+
username: zod
|
|
1342
|
+
.string()
|
|
1343
|
+
.optional()
|
|
1344
|
+
.describe('Technical username or handle.'),
|
|
1345
|
+
vias: zod
|
|
1346
|
+
.array(
|
|
1347
|
+
zod.object({
|
|
1348
|
+
contactId: zod.string().optional(),
|
|
1349
|
+
createdAt: zod.string().optional(),
|
|
1350
|
+
disable: zod.boolean().optional(),
|
|
1351
|
+
disableReason: zod.string().optional(),
|
|
1352
|
+
metadata: zod.looseObject({}).optional(),
|
|
1353
|
+
updatedAt: zod.string().optional(),
|
|
1354
|
+
via: zod.string().optional(),
|
|
1355
|
+
}),
|
|
1356
|
+
)
|
|
1357
|
+
.optional(),
|
|
1358
|
+
})
|
|
1359
|
+
.optional()
|
|
1360
|
+
.describe(
|
|
1361
|
+
'Contact represents an external messaging identity.',
|
|
1362
|
+
),
|
|
1363
|
+
id: zod.string().optional(),
|
|
1364
|
+
permissions: zod
|
|
1365
|
+
.object({
|
|
1366
|
+
canAddMembers: zod.boolean().optional(),
|
|
1367
|
+
canChangeMembersPermissions: zod.boolean().optional(),
|
|
1368
|
+
canChangeThreadInfo: zod.boolean().optional(),
|
|
1369
|
+
canRemoveMembers: zod.boolean().optional(),
|
|
1370
|
+
canSendMessages: zod.boolean().optional(),
|
|
1371
|
+
createdAt: zod.string().optional(),
|
|
1372
|
+
id: zod.string().optional(),
|
|
1373
|
+
memberId: zod.string().optional(),
|
|
1374
|
+
updatedAt: zod.string().optional(),
|
|
1375
|
+
})
|
|
1376
|
+
.optional(),
|
|
1377
|
+
role: zod
|
|
1378
|
+
.enum([
|
|
1379
|
+
'ROLE_UNSPECIFIED',
|
|
1380
|
+
'ROLE_MEMBER',
|
|
1381
|
+
'ROLE_ADMIN',
|
|
1382
|
+
'ROLE_OWNER',
|
|
1383
|
+
'ROLE_SUPERVISOR',
|
|
1384
|
+
])
|
|
1385
|
+
.default(
|
|
1386
|
+
threadManagementCreateResponseThreadLastMsgSenderRoleDefault,
|
|
1387
|
+
),
|
|
1388
|
+
})
|
|
1389
|
+
.optional()
|
|
1390
|
+
.describe('Sender user aggregated information.'),
|
|
1391
|
+
system: zod
|
|
1392
|
+
.object({
|
|
1393
|
+
messageId: zod
|
|
1394
|
+
.string()
|
|
1395
|
+
.optional()
|
|
1396
|
+
.describe(
|
|
1397
|
+
'ID of message for which system messages is binded.',
|
|
1398
|
+
),
|
|
1399
|
+
metadata: zod
|
|
1400
|
+
.looseObject({})
|
|
1401
|
+
.optional()
|
|
1402
|
+
.describe(
|
|
1403
|
+
'Represents additional metadata binded into system message.',
|
|
1404
|
+
),
|
|
1405
|
+
type: zod
|
|
1406
|
+
.string()
|
|
1407
|
+
.optional()
|
|
1408
|
+
.describe('Represents type of the message.'),
|
|
1409
|
+
})
|
|
1410
|
+
.optional()
|
|
1411
|
+
.describe('System message content.'),
|
|
1412
|
+
threadId: zod
|
|
1413
|
+
.string()
|
|
1414
|
+
.optional()
|
|
1415
|
+
.describe('Identifier of the thread the message belongs to.'),
|
|
1416
|
+
type: zod.number().optional().describe('Message type identifier.'),
|
|
1417
|
+
})
|
|
1418
|
+
.optional()
|
|
1419
|
+
.describe('Last message of the linked thread.'),
|
|
1420
|
+
members: zod
|
|
1421
|
+
.array(
|
|
1422
|
+
zod
|
|
1423
|
+
.object({
|
|
1424
|
+
contact: zod
|
|
1425
|
+
.object({
|
|
1426
|
+
appId: zod
|
|
1427
|
+
.string()
|
|
1428
|
+
.optional()
|
|
1429
|
+
.describe(
|
|
1430
|
+
'Identifier of the specific integration app or bot.',
|
|
1431
|
+
),
|
|
1432
|
+
createdAt: zod
|
|
1433
|
+
.string()
|
|
1434
|
+
.optional()
|
|
1435
|
+
.describe(
|
|
1436
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1437
|
+
),
|
|
1438
|
+
isBot: zod
|
|
1439
|
+
.boolean()
|
|
1440
|
+
.optional()
|
|
1441
|
+
.describe(
|
|
1442
|
+
'Represents if usere is real person or automatic script.',
|
|
1443
|
+
),
|
|
1444
|
+
iss: zod
|
|
1445
|
+
.string()
|
|
1446
|
+
.optional()
|
|
1447
|
+
.describe(
|
|
1448
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
1449
|
+
),
|
|
1450
|
+
metadata: zod
|
|
1451
|
+
.record(zod.string(), zod.string())
|
|
1452
|
+
.optional()
|
|
1453
|
+
.describe(
|
|
1454
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
1455
|
+
),
|
|
1456
|
+
name: zod
|
|
1457
|
+
.string()
|
|
1458
|
+
.optional()
|
|
1459
|
+
.describe('Display name of the contact.'),
|
|
1460
|
+
sub: zod
|
|
1461
|
+
.string()
|
|
1462
|
+
.optional()
|
|
1463
|
+
.describe(
|
|
1464
|
+
'Associated internal system subject/identifier.',
|
|
1465
|
+
),
|
|
1466
|
+
type: zod
|
|
1467
|
+
.string()
|
|
1468
|
+
.optional()
|
|
1469
|
+
.describe("Channel type (e.g., 'webchat', 'telegram')."),
|
|
1470
|
+
updatedAt: zod
|
|
1471
|
+
.string()
|
|
1472
|
+
.optional()
|
|
1473
|
+
.describe(
|
|
1474
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
1475
|
+
),
|
|
1476
|
+
username: zod
|
|
1477
|
+
.string()
|
|
1478
|
+
.optional()
|
|
1479
|
+
.describe('Technical username or handle.'),
|
|
1480
|
+
vias: zod
|
|
1481
|
+
.array(
|
|
1482
|
+
zod.object({
|
|
1483
|
+
contactId: zod.string().optional(),
|
|
1484
|
+
createdAt: zod.string().optional(),
|
|
1485
|
+
disable: zod.boolean().optional(),
|
|
1486
|
+
disableReason: zod.string().optional(),
|
|
1487
|
+
metadata: zod.looseObject({}).optional(),
|
|
1488
|
+
updatedAt: zod.string().optional(),
|
|
1489
|
+
via: zod.string().optional(),
|
|
1490
|
+
}),
|
|
1491
|
+
)
|
|
1492
|
+
.optional(),
|
|
1493
|
+
})
|
|
1494
|
+
.optional()
|
|
1495
|
+
.describe(
|
|
1496
|
+
'Contact represents an external messaging identity.',
|
|
1497
|
+
),
|
|
1498
|
+
id: zod.string().optional(),
|
|
1499
|
+
permissions: zod
|
|
1500
|
+
.object({
|
|
1501
|
+
canAddMembers: zod.boolean().optional(),
|
|
1502
|
+
canChangeMembersPermissions: zod.boolean().optional(),
|
|
1503
|
+
canChangeThreadInfo: zod.boolean().optional(),
|
|
1504
|
+
canRemoveMembers: zod.boolean().optional(),
|
|
1505
|
+
canSendMessages: zod.boolean().optional(),
|
|
1506
|
+
createdAt: zod.string().optional(),
|
|
1507
|
+
id: zod.string().optional(),
|
|
1508
|
+
memberId: zod.string().optional(),
|
|
1509
|
+
updatedAt: zod.string().optional(),
|
|
1510
|
+
})
|
|
1511
|
+
.optional(),
|
|
1512
|
+
role: zod
|
|
1513
|
+
.enum([
|
|
1514
|
+
'ROLE_UNSPECIFIED',
|
|
1515
|
+
'ROLE_MEMBER',
|
|
1516
|
+
'ROLE_ADMIN',
|
|
1517
|
+
'ROLE_OWNER',
|
|
1518
|
+
'ROLE_SUPERVISOR',
|
|
1519
|
+
])
|
|
1520
|
+
.default(
|
|
1521
|
+
threadManagementCreateResponseThreadMembersItemRoleDefault,
|
|
1522
|
+
),
|
|
1523
|
+
})
|
|
1524
|
+
.describe(
|
|
1525
|
+
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
1526
|
+
),
|
|
1527
|
+
)
|
|
1528
|
+
.optional()
|
|
1529
|
+
.describe('Detailed member information.'),
|
|
1530
|
+
settings: zod
|
|
1531
|
+
.object({
|
|
1532
|
+
createdAt: zod
|
|
1533
|
+
.string()
|
|
1534
|
+
.optional()
|
|
1535
|
+
.describe('Creation timestamp (Unix time, milliseconds).'),
|
|
1536
|
+
domainId: zod.number().optional().describe('Domain identifier.'),
|
|
1537
|
+
id: zod.string().optional().describe('Settings identifier.'),
|
|
1538
|
+
title: zod
|
|
1539
|
+
.string()
|
|
1540
|
+
.optional()
|
|
1541
|
+
.describe(
|
|
1542
|
+
'Custom title for the direct thread.\nUsually represents the display name of the conversation.',
|
|
1543
|
+
),
|
|
1544
|
+
updatedAt: zod
|
|
1545
|
+
.string()
|
|
1546
|
+
.optional()
|
|
1547
|
+
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
1548
|
+
})
|
|
1549
|
+
.optional()
|
|
1550
|
+
.describe('User-specific settings for this thread.'),
|
|
1551
|
+
subject: zod.string().optional().describe('Thread subject or title.'),
|
|
1552
|
+
type: zod
|
|
1553
|
+
.enum([
|
|
1554
|
+
'UNKNOWN',
|
|
1555
|
+
'DIRECT',
|
|
1556
|
+
'GROUP',
|
|
1557
|
+
'CHANNEL',
|
|
1558
|
+
])
|
|
1559
|
+
.default(threadManagementCreateResponseThreadTypeDefault)
|
|
1560
|
+
.describe('Type of the thread.'),
|
|
1561
|
+
updatedAt: zod
|
|
1562
|
+
.string()
|
|
1563
|
+
.optional()
|
|
1564
|
+
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
1565
|
+
variables: zod
|
|
1566
|
+
.object({
|
|
1567
|
+
threadId: zod
|
|
1568
|
+
.string()
|
|
1569
|
+
.optional()
|
|
1570
|
+
.describe('Unique identifier for the thread.'),
|
|
1571
|
+
variables: zod
|
|
1572
|
+
.record(
|
|
1573
|
+
zod.string(),
|
|
577
1574
|
zod
|
|
578
1575
|
.object({
|
|
579
|
-
|
|
1576
|
+
setAt: zod
|
|
1577
|
+
.string()
|
|
1578
|
+
.optional()
|
|
1579
|
+
.describe(
|
|
1580
|
+
'Timestamp when the variable was set (Unix time, milliseconds).',
|
|
1581
|
+
),
|
|
1582
|
+
setBy: zod
|
|
580
1583
|
.object({
|
|
581
1584
|
appId: zod
|
|
582
1585
|
.string()
|
|
@@ -649,205 +1652,31 @@ export const ThreadManagementSearchResponse = zod
|
|
|
649
1652
|
.optional(),
|
|
650
1653
|
})
|
|
651
1654
|
.optional()
|
|
1655
|
+
.describe('Contact who set the variable.'),
|
|
1656
|
+
value: zod
|
|
1657
|
+
.looseObject({})
|
|
1658
|
+
.optional()
|
|
652
1659
|
.describe(
|
|
653
|
-
'
|
|
654
|
-
),
|
|
655
|
-
id: zod.string().optional(),
|
|
656
|
-
permissions: zod
|
|
657
|
-
.object({
|
|
658
|
-
canAddMembers: zod.boolean().optional(),
|
|
659
|
-
canChangeMembersPermissions: zod.boolean().optional(),
|
|
660
|
-
canChangeThreadInfo: zod.boolean().optional(),
|
|
661
|
-
canRemoveMembers: zod.boolean().optional(),
|
|
662
|
-
canSendMessages: zod.boolean().optional(),
|
|
663
|
-
createdAt: zod.string().optional(),
|
|
664
|
-
id: zod.string().optional(),
|
|
665
|
-
memberId: zod.string().optional(),
|
|
666
|
-
updatedAt: zod.string().optional(),
|
|
667
|
-
})
|
|
668
|
-
.optional(),
|
|
669
|
-
role: zod
|
|
670
|
-
.enum([
|
|
671
|
-
'ROLE_UNSPECIFIED',
|
|
672
|
-
'ROLE_MEMBER',
|
|
673
|
-
'ROLE_ADMIN',
|
|
674
|
-
'ROLE_OWNER',
|
|
675
|
-
'ROLE_SUPERVISOR',
|
|
676
|
-
])
|
|
677
|
-
.default(
|
|
678
|
-
threadManagementSearchResponseItemsItemMembersItemRoleDefault,
|
|
1660
|
+
'Arbitrary structured value of the variable.\nSupports dynamic JSON-like content.',
|
|
679
1661
|
),
|
|
680
1662
|
})
|
|
681
1663
|
.describe(
|
|
682
|
-
'
|
|
1664
|
+
'VariableEntry represents a single variable value\nalong with metadata about who and when it was set.',
|
|
683
1665
|
),
|
|
684
1666
|
)
|
|
685
1667
|
.optional()
|
|
686
|
-
.describe(
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
createdAt: zod
|
|
690
|
-
.string()
|
|
691
|
-
.optional()
|
|
692
|
-
.describe('Creation timestamp (Unix time, milliseconds).'),
|
|
693
|
-
domainId: zod
|
|
694
|
-
.number()
|
|
695
|
-
.optional()
|
|
696
|
-
.describe('Domain identifier.'),
|
|
697
|
-
id: zod.string().optional().describe('Settings identifier.'),
|
|
698
|
-
title: zod
|
|
699
|
-
.string()
|
|
700
|
-
.optional()
|
|
701
|
-
.describe(
|
|
702
|
-
'Custom title for the direct thread.\nUsually represents the display name of the conversation.',
|
|
703
|
-
),
|
|
704
|
-
updatedAt: zod
|
|
705
|
-
.string()
|
|
706
|
-
.optional()
|
|
707
|
-
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
708
|
-
})
|
|
709
|
-
.optional()
|
|
710
|
-
.describe('User-specific settings for this thread.'),
|
|
711
|
-
subject: zod
|
|
712
|
-
.string()
|
|
713
|
-
.optional()
|
|
714
|
-
.describe('Thread subject or title.'),
|
|
715
|
-
type: zod
|
|
716
|
-
.enum([
|
|
717
|
-
'UNKNOWN',
|
|
718
|
-
'DIRECT',
|
|
719
|
-
'GROUP',
|
|
720
|
-
'CHANNEL',
|
|
721
|
-
])
|
|
722
|
-
.default(threadManagementSearchResponseItemsItemTypeDefault)
|
|
723
|
-
.describe('Type of the thread.'),
|
|
724
|
-
updatedAt: zod
|
|
725
|
-
.string()
|
|
726
|
-
.optional()
|
|
727
|
-
.describe('Last update timestamp (Unix time, milliseconds).'),
|
|
728
|
-
variables: zod
|
|
729
|
-
.object({
|
|
730
|
-
threadId: zod
|
|
731
|
-
.string()
|
|
732
|
-
.optional()
|
|
733
|
-
.describe('Unique identifier for the thread.'),
|
|
734
|
-
variables: zod
|
|
735
|
-
.record(
|
|
736
|
-
zod.string(),
|
|
737
|
-
zod
|
|
738
|
-
.object({
|
|
739
|
-
setAt: zod
|
|
740
|
-
.string()
|
|
741
|
-
.optional()
|
|
742
|
-
.describe(
|
|
743
|
-
'Timestamp when the variable was set (Unix time, milliseconds).',
|
|
744
|
-
),
|
|
745
|
-
setBy: zod
|
|
746
|
-
.object({
|
|
747
|
-
appId: zod
|
|
748
|
-
.string()
|
|
749
|
-
.optional()
|
|
750
|
-
.describe(
|
|
751
|
-
'Identifier of the specific integration app or bot.',
|
|
752
|
-
),
|
|
753
|
-
createdAt: zod
|
|
754
|
-
.string()
|
|
755
|
-
.optional()
|
|
756
|
-
.describe(
|
|
757
|
-
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
758
|
-
),
|
|
759
|
-
isBot: zod
|
|
760
|
-
.boolean()
|
|
761
|
-
.optional()
|
|
762
|
-
.describe(
|
|
763
|
-
'Represents if usere is real person or automatic script.',
|
|
764
|
-
),
|
|
765
|
-
iss: zod
|
|
766
|
-
.string()
|
|
767
|
-
.optional()
|
|
768
|
-
.describe(
|
|
769
|
-
'Provider-specific unique identifier (Issuer ID).',
|
|
770
|
-
),
|
|
771
|
-
metadata: zod
|
|
772
|
-
.record(zod.string(), zod.string())
|
|
773
|
-
.optional()
|
|
774
|
-
.describe(
|
|
775
|
-
'Additional dynamic attributes provided by the messenger.',
|
|
776
|
-
),
|
|
777
|
-
name: zod
|
|
778
|
-
.string()
|
|
779
|
-
.optional()
|
|
780
|
-
.describe('Display name of the contact.'),
|
|
781
|
-
sub: zod
|
|
782
|
-
.string()
|
|
783
|
-
.optional()
|
|
784
|
-
.describe(
|
|
785
|
-
'Associated internal system subject/identifier.',
|
|
786
|
-
),
|
|
787
|
-
type: zod
|
|
788
|
-
.string()
|
|
789
|
-
.optional()
|
|
790
|
-
.describe(
|
|
791
|
-
"Channel type (e.g., 'webchat', 'telegram').",
|
|
792
|
-
),
|
|
793
|
-
updatedAt: zod
|
|
794
|
-
.string()
|
|
795
|
-
.optional()
|
|
796
|
-
.describe(
|
|
797
|
-
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
798
|
-
),
|
|
799
|
-
username: zod
|
|
800
|
-
.string()
|
|
801
|
-
.optional()
|
|
802
|
-
.describe('Technical username or handle.'),
|
|
803
|
-
vias: zod
|
|
804
|
-
.array(
|
|
805
|
-
zod.object({
|
|
806
|
-
contactId: zod.string().optional(),
|
|
807
|
-
createdAt: zod.string().optional(),
|
|
808
|
-
disable: zod.boolean().optional(),
|
|
809
|
-
disableReason: zod.string().optional(),
|
|
810
|
-
metadata: zod.looseObject({}).optional(),
|
|
811
|
-
updatedAt: zod.string().optional(),
|
|
812
|
-
via: zod.string().optional(),
|
|
813
|
-
}),
|
|
814
|
-
)
|
|
815
|
-
.optional(),
|
|
816
|
-
})
|
|
817
|
-
.optional()
|
|
818
|
-
.describe('Contact who set the variable.'),
|
|
819
|
-
value: zod
|
|
820
|
-
.looseObject({})
|
|
821
|
-
.optional()
|
|
822
|
-
.describe(
|
|
823
|
-
'Arbitrary structured value of the variable.\nSupports dynamic JSON-like content.',
|
|
824
|
-
),
|
|
825
|
-
})
|
|
826
|
-
.describe(
|
|
827
|
-
'VariableEntry represents a single variable value\nalong with metadata about who and when it was set.',
|
|
828
|
-
),
|
|
829
|
-
)
|
|
830
|
-
.optional()
|
|
831
|
-
.describe(
|
|
832
|
-
'Key-value map of variables.\nKey is the variable name, value contains data and metadata.',
|
|
833
|
-
),
|
|
834
|
-
})
|
|
835
|
-
.optional()
|
|
836
|
-
.describe('Optional variables associated with the thread.'),
|
|
1668
|
+
.describe(
|
|
1669
|
+
'Key-value map of variables.\nKey is the variable name, value contains data and metadata.',
|
|
1670
|
+
),
|
|
837
1671
|
})
|
|
838
|
-
.
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
)
|
|
842
|
-
.optional()
|
|
843
|
-
.describe('List of threads matching the search criteria.'),
|
|
844
|
-
next: zod
|
|
845
|
-
.boolean()
|
|
1672
|
+
.optional()
|
|
1673
|
+
.describe('Optional variables associated with the thread.'),
|
|
1674
|
+
})
|
|
846
1675
|
.optional()
|
|
847
|
-
.describe('
|
|
1676
|
+
.describe('Represents main entity for thread.'),
|
|
848
1677
|
})
|
|
849
1678
|
.describe(
|
|
850
|
-
'
|
|
1679
|
+
'ThreadManagementCreateResponse represents information enabled after thread creation.',
|
|
851
1680
|
);
|
|
852
1681
|
|
|
853
1682
|
/**
|
|
@@ -1387,6 +2216,27 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
1387
2216
|
})
|
|
1388
2217
|
.optional()
|
|
1389
2218
|
.describe('Sender user aggregated information.'),
|
|
2219
|
+
system: zod
|
|
2220
|
+
.object({
|
|
2221
|
+
messageId: zod
|
|
2222
|
+
.string()
|
|
2223
|
+
.optional()
|
|
2224
|
+
.describe(
|
|
2225
|
+
'ID of message for which system messages is binded.',
|
|
2226
|
+
),
|
|
2227
|
+
metadata: zod
|
|
2228
|
+
.looseObject({})
|
|
2229
|
+
.optional()
|
|
2230
|
+
.describe(
|
|
2231
|
+
'Represents additional metadata binded into system message.',
|
|
2232
|
+
),
|
|
2233
|
+
type: zod
|
|
2234
|
+
.string()
|
|
2235
|
+
.optional()
|
|
2236
|
+
.describe('Represents type of the message.'),
|
|
2237
|
+
})
|
|
2238
|
+
.optional()
|
|
2239
|
+
.describe('System message content.'),
|
|
1390
2240
|
threadId: zod
|
|
1391
2241
|
.string()
|
|
1392
2242
|
.optional()
|
|
@@ -2145,6 +2995,25 @@ export const ThreadManagementGetResponse = zod
|
|
|
2145
2995
|
})
|
|
2146
2996
|
.optional()
|
|
2147
2997
|
.describe('Sender user aggregated information.'),
|
|
2998
|
+
system: zod
|
|
2999
|
+
.object({
|
|
3000
|
+
messageId: zod
|
|
3001
|
+
.string()
|
|
3002
|
+
.optional()
|
|
3003
|
+
.describe('ID of message for which system messages is binded.'),
|
|
3004
|
+
metadata: zod
|
|
3005
|
+
.looseObject({})
|
|
3006
|
+
.optional()
|
|
3007
|
+
.describe(
|
|
3008
|
+
'Represents additional metadata binded into system message.',
|
|
3009
|
+
),
|
|
3010
|
+
type: zod
|
|
3011
|
+
.string()
|
|
3012
|
+
.optional()
|
|
3013
|
+
.describe('Represents type of the message.'),
|
|
3014
|
+
})
|
|
3015
|
+
.optional()
|
|
3016
|
+
.describe('System message content.'),
|
|
2148
3017
|
threadId: zod
|
|
2149
3018
|
.string()
|
|
2150
3019
|
.optional()
|