@webitel/api-services 26.12.3 → 26.12.5

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.
Files changed (186) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/cases/cases.ts +3 -1
  3. package/src/api/clients/outboundResourceGroups/outboundResourceGroups.ts +14 -12
  4. package/src/gen/_models/addUserAccessTokenBody.ts +2 -0
  5. package/src/gen/_models/addUserAccessTokenParams.ts +3 -4
  6. package/src/gen/_models/apiTokenExpiryWarning.ts +13 -0
  7. package/src/gen/_models/apiUserAccessToken.ts +2 -0
  8. package/src/gen/_models/apiUserWarningId.ts +2 -0
  9. package/src/gen/_models/apiWarningData.ts +2 -0
  10. package/src/gen/_models/engineSearchHistoryCallRequest.ts +1 -0
  11. package/src/gen/_models/engineSystemSettingName.ts +0 -1
  12. package/src/gen/_models/gateServiceListGatesParams.ts +7 -0
  13. package/src/gen/_models/gateServiceListGatesTypesItem.ts +1 -0
  14. package/src/gen/_models/googleProtobufAny.ts +117 -0
  15. package/src/gen/_models/googleProtobufNullValue.ts +3 -8
  16. package/src/gen/_models/googleRpcStatus.ts +23 -0
  17. package/src/gen/_models/index.ts +7 -4
  18. package/src/gen/_models/protobufNullValue.ts +3 -8
  19. package/src/gen/_models/searchHistoryCallParams.ts +1 -0
  20. package/src/gen/_models/searchSystemSettingNameItem.ts +0 -1
  21. package/src/gen/_models/threadManagementGetCountersParams.ts +21 -0
  22. package/src/gen/_models/threadManagementGetCountersTypesItem.ts +16 -0
  23. package/src/gen/_models/updateUserAccessToken2Body.ts +2 -0
  24. package/src/gen/_models/updateUserAccessTokenBody.ts +2 -0
  25. package/src/gen/_models/updateUserAccessTokenUpdateBody.ts +2 -0
  26. package/src/gen/_models/webitelImApiGatewayV1Contact.ts +2 -0
  27. package/src/gen/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
  28. package/src/gen/_models/webitelImApiGatewayV1Thread.ts +7 -0
  29. package/src/gen/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
  30. package/src/gen/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
  31. package/src/gen/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
  32. package/src/gen/_models/webitelImApiProviderV1ProviderType.ts +4 -0
  33. package/src/gen/_models/webitelImProviderV1ProviderSummary.ts +6 -0
  34. package/src/gen/_models/webitelImProviderV1ProviderType.ts +3 -0
  35. package/src/gen-wire/_models/addUserAccessTokenBody.ts +2 -0
  36. package/src/gen-wire/_models/addUserAccessTokenParams.ts +3 -4
  37. package/src/gen-wire/_models/apiTokenExpiryWarning.ts +13 -0
  38. package/src/gen-wire/_models/apiUserAccessToken.ts +2 -0
  39. package/src/gen-wire/_models/apiUserWarningId.ts +2 -0
  40. package/src/gen-wire/_models/apiWarningData.ts +2 -0
  41. package/src/gen-wire/_models/engineSearchHistoryCallRequest.ts +1 -0
  42. package/src/gen-wire/_models/engineSystemSettingName.ts +0 -1
  43. package/src/gen-wire/_models/gateServiceListGatesParams.ts +7 -0
  44. package/src/gen-wire/_models/gateServiceListGatesTypesItem.ts +1 -0
  45. package/src/gen-wire/_models/googleProtobufAny.ts +117 -0
  46. package/src/gen-wire/_models/googleProtobufNullValue.ts +3 -8
  47. package/src/gen-wire/_models/googleRpcStatus.ts +23 -0
  48. package/src/gen-wire/_models/index.ts +7 -4
  49. package/src/gen-wire/_models/protobufNullValue.ts +3 -8
  50. package/src/gen-wire/_models/searchHistoryCallParams.ts +1 -0
  51. package/src/gen-wire/_models/searchSystemSettingNameItem.ts +0 -1
  52. package/src/gen-wire/_models/threadManagementGetCountersParams.ts +21 -0
  53. package/src/gen-wire/_models/threadManagementGetCountersTypesItem.ts +16 -0
  54. package/src/gen-wire/_models/updateUserAccessToken2Body.ts +2 -0
  55. package/src/gen-wire/_models/updateUserAccessTokenBody.ts +2 -0
  56. package/src/gen-wire/_models/updateUserAccessTokenUpdateBody.ts +2 -0
  57. package/src/gen-wire/_models/webitelImApiGatewayV1Contact.ts +2 -0
  58. package/src/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
  59. package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +7 -0
  60. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
  61. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
  62. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
  63. package/src/gen-wire/_models/webitelImApiProviderV1ProviderType.ts +4 -0
  64. package/src/gen-wire/_models/webitelImProviderV1ProviderSummary.ts +6 -0
  65. package/src/gen-wire/_models/webitelImProviderV1ProviderType.ts +3 -0
  66. package/src/gen-wire/call-service/call-service.zod.ts +2 -0
  67. package/src/gen-wire/cases/cases.zod.ts +32 -7
  68. package/src/gen-wire/customer/customer.zod.ts +32 -7
  69. package/src/gen-wire/customers/customers.ts +0 -8
  70. package/src/gen-wire/customers/customers.zod.ts +0 -4
  71. package/src/gen-wire/index.ts +6 -7
  72. package/src/gen-wire/index.zod.ts +0 -1
  73. package/src/gen-wire/list-service/list-service.zod.ts +32 -7
  74. package/src/gen-wire/member-service/member-service.zod.ts +32 -7
  75. package/src/gen-wire/messages/messages.zod.ts +32 -7
  76. package/src/gen-wire/pdf-service/pdf-service.zod.ts +128 -28
  77. package/src/gen-wire/system-setting-service/system-setting-service.zod.ts +0 -8
  78. package/src/gen-wire/user-access-tokens/user-access-tokens.zod.ts +85 -5
  79. package/src/gen-wire/users/users.zod.ts +10 -0
  80. package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.ts +6 -0
  81. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +96 -0
  82. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +21 -0
  83. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +449 -0
  84. package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +18 -0
  85. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +150 -0
  86. package/src/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.ts +18 -2
  87. package/src/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +14 -7
  88. package/types/.tsbuildinfo +1 -1
  89. package/types/gen/_models/addUserAccessTokenBody.d.ts +2 -0
  90. package/types/gen/_models/addUserAccessTokenParams.d.ts +3 -4
  91. package/types/gen/_models/apiTokenExpiryWarning.d.ts +12 -0
  92. package/types/gen/_models/apiUserAccessToken.d.ts +2 -0
  93. package/types/gen/_models/apiUserWarningId.d.ts +2 -0
  94. package/types/gen/_models/apiWarningData.d.ts +2 -0
  95. package/types/gen/_models/engineSearchHistoryCallRequest.d.ts +1 -0
  96. package/types/gen/_models/engineSystemSettingName.d.ts +0 -1
  97. package/types/gen/_models/gateServiceListGatesParams.d.ts +7 -0
  98. package/types/gen/_models/gateServiceListGatesTypesItem.d.ts +1 -0
  99. package/types/gen/_models/googleProtobufAny.d.ts +117 -0
  100. package/types/gen/_models/googleProtobufNullValue.d.ts +3 -8
  101. package/types/gen/_models/googleRpcStatus.d.ts +23 -0
  102. package/types/gen/_models/index.d.ts +7 -4
  103. package/types/gen/_models/protobufNullValue.d.ts +3 -8
  104. package/types/gen/_models/searchHistoryCallParams.d.ts +1 -0
  105. package/types/gen/_models/searchSystemSettingNameItem.d.ts +0 -1
  106. package/types/gen/_models/threadManagementGetCountersParams.d.ts +20 -0
  107. package/types/gen/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
  108. package/types/gen/_models/updateUserAccessToken2Body.d.ts +2 -0
  109. package/types/gen/_models/updateUserAccessTokenBody.d.ts +2 -0
  110. package/types/gen/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
  111. package/types/gen/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
  112. package/types/gen/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
  113. package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
  114. package/types/gen/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
  115. package/types/gen/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
  116. package/types/gen/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
  117. package/types/gen/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
  118. package/types/gen/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
  119. package/types/gen/_models/webitelImProviderV1ProviderType.d.ts +3 -0
  120. package/types/gen-wire/_models/addUserAccessTokenBody.d.ts +2 -0
  121. package/types/gen-wire/_models/addUserAccessTokenParams.d.ts +3 -4
  122. package/types/gen-wire/_models/apiTokenExpiryWarning.d.ts +12 -0
  123. package/types/gen-wire/_models/apiUserAccessToken.d.ts +2 -0
  124. package/types/gen-wire/_models/apiUserWarningId.d.ts +2 -0
  125. package/types/gen-wire/_models/apiWarningData.d.ts +2 -0
  126. package/types/gen-wire/_models/engineSearchHistoryCallRequest.d.ts +1 -0
  127. package/types/gen-wire/_models/engineSystemSettingName.d.ts +0 -1
  128. package/types/gen-wire/_models/gateServiceListGatesParams.d.ts +7 -0
  129. package/types/gen-wire/_models/gateServiceListGatesTypesItem.d.ts +1 -0
  130. package/types/gen-wire/_models/googleProtobufAny.d.ts +117 -0
  131. package/types/gen-wire/_models/googleProtobufNullValue.d.ts +3 -8
  132. package/types/gen-wire/_models/googleRpcStatus.d.ts +23 -0
  133. package/types/gen-wire/_models/index.d.ts +7 -4
  134. package/types/gen-wire/_models/protobufNullValue.d.ts +3 -8
  135. package/types/gen-wire/_models/searchHistoryCallParams.d.ts +1 -0
  136. package/types/gen-wire/_models/searchSystemSettingNameItem.d.ts +0 -1
  137. package/types/gen-wire/_models/threadManagementGetCountersParams.d.ts +20 -0
  138. package/types/gen-wire/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
  139. package/types/gen-wire/_models/updateUserAccessToken2Body.d.ts +2 -0
  140. package/types/gen-wire/_models/updateUserAccessTokenBody.d.ts +2 -0
  141. package/types/gen-wire/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
  142. package/types/gen-wire/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
  143. package/types/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
  144. package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
  145. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
  146. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
  147. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
  148. package/types/gen-wire/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
  149. package/types/gen-wire/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
  150. package/types/gen-wire/_models/webitelImProviderV1ProviderType.d.ts +3 -0
  151. package/types/gen-wire/call-service/call-service.zod.d.ts +2 -0
  152. package/types/gen-wire/customers/customers.d.ts +1 -3
  153. package/types/gen-wire/customers/customers.zod.d.ts +0 -3
  154. package/types/gen-wire/index.d.ts +2 -4
  155. package/types/gen-wire/index.zod.d.ts +0 -1
  156. package/types/gen-wire/system-setting-service/system-setting-service.zod.d.ts +0 -8
  157. package/types/gen-wire/user-access-tokens/user-access-tokens.zod.d.ts +46 -0
  158. package/types/gen-wire/users/users.zod.d.ts +8 -0
  159. package/types/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.d.ts +1 -0
  160. package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +16 -0
  161. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +3 -1
  162. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +124 -0
  163. package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +3 -0
  164. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +33 -0
  165. package/types/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.d.ts +4 -0
  166. package/types/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +7 -0
  167. package/src/gen/_models/apiServerInfoResponse.ts +0 -10
  168. package/src/gen/_models/engineSchemaVersion.ts +0 -17
  169. package/src/gen/_models/engineSearchSchemaVersionResponse.ts +0 -12
  170. package/src/gen/_models/searchSchemaVersionParams.ts +0 -14
  171. package/src/gen-wire/_models/apiServerInfoResponse.ts +0 -10
  172. package/src/gen-wire/_models/engineSchemaVersion.ts +0 -16
  173. package/src/gen-wire/_models/engineSearchSchemaVersionResponse.ts +0 -12
  174. package/src/gen-wire/_models/searchSchemaVersionParams.ts +0 -14
  175. package/src/gen-wire/schema-version-service/schema-version-service.ts +0 -46
  176. package/src/gen-wire/schema-version-service/schema-version-service.zod.ts +0 -40
  177. package/types/gen/_models/apiServerInfoResponse.d.ts +0 -9
  178. package/types/gen/_models/engineSchemaVersion.d.ts +0 -16
  179. package/types/gen/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
  180. package/types/gen/_models/searchSchemaVersionParams.d.ts +0 -13
  181. package/types/gen-wire/_models/apiServerInfoResponse.d.ts +0 -9
  182. package/types/gen-wire/_models/engineSchemaVersion.d.ts +0 -15
  183. package/types/gen-wire/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
  184. package/types/gen-wire/_models/searchSchemaVersionParams.d.ts +0 -13
  185. package/types/gen-wire/schema-version-service/schema-version-service.d.ts +0 -13
  186. package/types/gen-wire/schema-version-service/schema-version-service.zod.d.ts +0 -31
@@ -32,17 +32,42 @@ export const DownloadScreenrecordingArchiveQueryParams = zod.object({
32
32
  export const DownloadScreenrecordingArchiveResponse = zod.object({
33
33
  error: zod
34
34
  .object({
35
- code: zod.int().optional(),
35
+ code: zod
36
+ .int()
37
+ .optional()
38
+ .describe(
39
+ 'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
40
+ ),
36
41
  details: zod
37
42
  .array(
38
- zod.object({
39
- '@type': zod.string().optional(),
40
- }),
43
+ zod
44
+ .object({
45
+ '@type': zod
46
+ .string()
47
+ .optional()
48
+ .describe(
49
+ 'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
50
+ ),
51
+ })
52
+ .describe(
53
+ '`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
54
+ ),
41
55
  )
42
- .optional(),
43
- message: zod.string().optional(),
56
+ .optional()
57
+ .describe(
58
+ 'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
59
+ ),
60
+ message: zod
61
+ .string()
62
+ .optional()
63
+ .describe(
64
+ 'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
65
+ ),
44
66
  })
45
- .optional(),
67
+ .optional()
68
+ .describe(
69
+ 'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
70
+ ),
46
71
  result: zod
47
72
  .object({
48
73
  data: zod.string().optional(),
@@ -79,17 +104,42 @@ export const DownloadScreenshotArchiveQueryParams = zod.object({
79
104
  export const DownloadScreenshotArchiveResponse = zod.object({
80
105
  error: zod
81
106
  .object({
82
- code: zod.int().optional(),
107
+ code: zod
108
+ .int()
109
+ .optional()
110
+ .describe(
111
+ 'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
112
+ ),
83
113
  details: zod
84
114
  .array(
85
- zod.object({
86
- '@type': zod.string().optional(),
87
- }),
115
+ zod
116
+ .object({
117
+ '@type': zod
118
+ .string()
119
+ .optional()
120
+ .describe(
121
+ 'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
122
+ ),
123
+ })
124
+ .describe(
125
+ '`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
126
+ ),
88
127
  )
89
- .optional(),
90
- message: zod.string().optional(),
128
+ .optional()
129
+ .describe(
130
+ 'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
131
+ ),
132
+ message: zod
133
+ .string()
134
+ .optional()
135
+ .describe(
136
+ 'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
137
+ ),
91
138
  })
92
- .optional(),
139
+ .optional()
140
+ .describe(
141
+ 'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
142
+ ),
93
143
  result: zod
94
144
  .object({
95
145
  data: zod.string().optional(),
@@ -258,17 +308,42 @@ export const DownloadCallArchiveQueryParams = zod.object({
258
308
  export const DownloadCallArchiveResponse = zod.object({
259
309
  error: zod
260
310
  .object({
261
- code: zod.int().optional(),
311
+ code: zod
312
+ .int()
313
+ .optional()
314
+ .describe(
315
+ 'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
316
+ ),
262
317
  details: zod
263
318
  .array(
264
- zod.object({
265
- '@type': zod.string().optional(),
266
- }),
319
+ zod
320
+ .object({
321
+ '@type': zod
322
+ .string()
323
+ .optional()
324
+ .describe(
325
+ 'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
326
+ ),
327
+ })
328
+ .describe(
329
+ '`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
330
+ ),
267
331
  )
268
- .optional(),
269
- message: zod.string().optional(),
332
+ .optional()
333
+ .describe(
334
+ 'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
335
+ ),
336
+ message: zod
337
+ .string()
338
+ .optional()
339
+ .describe(
340
+ 'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
341
+ ),
270
342
  })
271
- .optional(),
343
+ .optional()
344
+ .describe(
345
+ 'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
346
+ ),
272
347
  result: zod
273
348
  .object({
274
349
  data: zod.string().optional(),
@@ -302,17 +377,42 @@ export const DownloadCallScreenrecordingArchiveQueryParams = zod.object({
302
377
  export const DownloadCallScreenrecordingArchiveResponse = zod.object({
303
378
  error: zod
304
379
  .object({
305
- code: zod.int().optional(),
380
+ code: zod
381
+ .int()
382
+ .optional()
383
+ .describe(
384
+ 'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
385
+ ),
306
386
  details: zod
307
387
  .array(
308
- zod.object({
309
- '@type': zod.string().optional(),
310
- }),
388
+ zod
389
+ .object({
390
+ '@type': zod
391
+ .string()
392
+ .optional()
393
+ .describe(
394
+ 'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
395
+ ),
396
+ })
397
+ .describe(
398
+ '`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
399
+ ),
311
400
  )
312
- .optional(),
313
- message: zod.string().optional(),
401
+ .optional()
402
+ .describe(
403
+ 'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
404
+ ),
405
+ message: zod
406
+ .string()
407
+ .optional()
408
+ .describe(
409
+ 'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
410
+ ),
314
411
  })
315
- .optional(),
412
+ .optional()
413
+ .describe(
414
+ 'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
415
+ ),
316
416
  result: zod
317
417
  .object({
318
418
  data: zod.string().optional(),
@@ -19,7 +19,6 @@ export const SearchSystemSettingQueryParams = zod.object({
19
19
  'enable_omnichannel',
20
20
  'member_chunk_size',
21
21
  'amd_cancel_not_human',
22
- 'scheme_version_limit',
23
22
  'enable_2fa',
24
23
  'export_settings',
25
24
  'search_number_length',
@@ -75,7 +74,6 @@ export const SearchSystemSettingResponse = zod.object({
75
74
  'enable_omnichannel',
76
75
  'member_chunk_size',
77
76
  'amd_cancel_not_human',
78
- 'scheme_version_limit',
79
77
  'enable_2fa',
80
78
  'export_settings',
81
79
  'search_number_length',
@@ -129,7 +127,6 @@ export const CreateSystemSettingBody = zod.object({
129
127
  'enable_omnichannel',
130
128
  'member_chunk_size',
131
129
  'amd_cancel_not_human',
132
- 'scheme_version_limit',
133
130
  'enable_2fa',
134
131
  'export_settings',
135
132
  'search_number_length',
@@ -180,7 +177,6 @@ export const CreateSystemSettingResponse = zod.object({
180
177
  'enable_omnichannel',
181
178
  'member_chunk_size',
182
179
  'amd_cancel_not_human',
183
- 'scheme_version_limit',
184
180
  'enable_2fa',
185
181
  'export_settings',
186
182
  'search_number_length',
@@ -254,7 +250,6 @@ export const DeleteSystemSettingResponse = zod.object({
254
250
  'enable_omnichannel',
255
251
  'member_chunk_size',
256
252
  'amd_cancel_not_human',
257
- 'scheme_version_limit',
258
253
  'enable_2fa',
259
254
  'export_settings',
260
255
  'search_number_length',
@@ -309,7 +304,6 @@ export const ReadSystemSettingResponse = zod.object({
309
304
  'enable_omnichannel',
310
305
  'member_chunk_size',
311
306
  'amd_cancel_not_human',
312
- 'scheme_version_limit',
313
307
  'enable_2fa',
314
308
  'export_settings',
315
309
  'search_number_length',
@@ -368,7 +362,6 @@ export const PatchSystemSettingResponse = zod.object({
368
362
  'enable_omnichannel',
369
363
  'member_chunk_size',
370
364
  'amd_cancel_not_human',
371
- 'scheme_version_limit',
372
365
  'enable_2fa',
373
366
  'export_settings',
374
367
  'search_number_length',
@@ -425,7 +418,6 @@ export const UpdateSystemSettingResponse = zod.object({
425
418
  'enable_omnichannel',
426
419
  'member_chunk_size',
427
420
  'amd_cancel_not_human',
428
- 'scheme_version_limit',
429
421
  'enable_2fa',
430
422
  'export_settings',
431
423
  'search_number_length',
@@ -11,12 +11,11 @@ export const AddUserAccessTokenParams = zod.object({
11
11
  });
12
12
 
13
13
  export const AddUserAccessTokenQueryParams = zod.object({
14
- enable: zod
15
- .boolean()
14
+ enable: zod.boolean().optional(),
15
+ expiry_days: zod
16
+ .int()
16
17
  .optional()
17
- .describe(
18
- 'ObjectId user = 1; // [required]\n string usage = 2; // [optional] usage description\n bool enable = 3;',
19
- ),
18
+ .describe('[optional] create-only; server derives token.expires_at'),
20
19
  });
21
20
 
22
21
  export const AddUserAccessTokenBody = zod
@@ -35,7 +34,16 @@ export const AddUserAccessTokenBody = zod
35
34
  name: zod.string().optional(),
36
35
  })
37
36
  .optional(),
37
+ expires_at: zod.string().optional(),
38
38
  id: zod.string().optional(),
39
+ notify_users: zod
40
+ .array(
41
+ zod.object({
42
+ id: zod.string().optional(),
43
+ name: zod.string().optional(),
44
+ }),
45
+ )
46
+ .optional(),
39
47
  token: zod.string().optional(),
40
48
  updated_at: zod.string().optional(),
41
49
  updated_by: zod
@@ -71,7 +79,16 @@ export const AddUserAccessTokenResponse = zod
71
79
  name: zod.string().optional(),
72
80
  })
73
81
  .optional(),
82
+ expires_at: zod.string().optional(),
74
83
  id: zod.string().optional(),
84
+ notify_users: zod
85
+ .array(
86
+ zod.object({
87
+ id: zod.string().optional(),
88
+ name: zod.string().optional(),
89
+ }),
90
+ )
91
+ .optional(),
75
92
  token: zod.string().optional(),
76
93
  updated_at: zod.string().optional(),
77
94
  updated_by: zod
@@ -118,6 +135,15 @@ export const UpdateUserAccessToken2Body = zod.object({
118
135
  name: zod.string().optional(),
119
136
  })
120
137
  .optional(),
138
+ expires_at: zod.string().optional(),
139
+ notify_users: zod
140
+ .array(
141
+ zod.object({
142
+ id: zod.string().optional(),
143
+ name: zod.string().optional(),
144
+ }),
145
+ )
146
+ .optional(),
121
147
  token: zod.string().optional(),
122
148
  updated_at: zod.string().optional(),
123
149
  updated_by: zod
@@ -150,7 +176,16 @@ export const UpdateUserAccessToken2Response = zod
150
176
  name: zod.string().optional(),
151
177
  })
152
178
  .optional(),
179
+ expires_at: zod.string().optional(),
153
180
  id: zod.string().optional(),
181
+ notify_users: zod
182
+ .array(
183
+ zod.object({
184
+ id: zod.string().optional(),
185
+ name: zod.string().optional(),
186
+ }),
187
+ )
188
+ .optional(),
154
189
  token: zod.string().optional(),
155
190
  updated_at: zod.string().optional(),
156
191
  updated_by: zod
@@ -197,6 +232,15 @@ export const UpdateUserAccessTokenBody = zod.object({
197
232
  name: zod.string().optional(),
198
233
  })
199
234
  .optional(),
235
+ expires_at: zod.string().optional(),
236
+ notify_users: zod
237
+ .array(
238
+ zod.object({
239
+ id: zod.string().optional(),
240
+ name: zod.string().optional(),
241
+ }),
242
+ )
243
+ .optional(),
200
244
  token: zod.string().optional(),
201
245
  updated_at: zod.string().optional(),
202
246
  updated_by: zod
@@ -229,7 +273,16 @@ export const UpdateUserAccessTokenResponse = zod
229
273
  name: zod.string().optional(),
230
274
  })
231
275
  .optional(),
276
+ expires_at: zod.string().optional(),
232
277
  id: zod.string().optional(),
278
+ notify_users: zod
279
+ .array(
280
+ zod.object({
281
+ id: zod.string().optional(),
282
+ name: zod.string().optional(),
283
+ }),
284
+ )
285
+ .optional(),
233
286
  token: zod.string().optional(),
234
287
  updated_at: zod.string().optional(),
235
288
  updated_by: zod
@@ -291,7 +344,16 @@ export const ListUserAccessTokenResponse = zod.object({
291
344
  name: zod.string().optional(),
292
345
  })
293
346
  .optional(),
347
+ expires_at: zod.string().optional(),
294
348
  id: zod.string().optional(),
349
+ notify_users: zod
350
+ .array(
351
+ zod.object({
352
+ id: zod.string().optional(),
353
+ name: zod.string().optional(),
354
+ }),
355
+ )
356
+ .optional(),
295
357
  token: zod.string().optional(),
296
358
  updated_at: zod.string().optional(),
297
359
  updated_by: zod
@@ -341,7 +403,16 @@ export const DeleteUserAccessTokenResponse = zod
341
403
  name: zod.string().optional(),
342
404
  })
343
405
  .optional(),
406
+ expires_at: zod.string().optional(),
344
407
  id: zod.string().optional(),
408
+ notify_users: zod
409
+ .array(
410
+ zod.object({
411
+ id: zod.string().optional(),
412
+ name: zod.string().optional(),
413
+ }),
414
+ )
415
+ .optional(),
345
416
  token: zod.string().optional(),
346
417
  updated_at: zod.string().optional(),
347
418
  updated_by: zod
@@ -385,7 +456,16 @@ export const GetUserAccessTokenResponse = zod
385
456
  name: zod.string().optional(),
386
457
  })
387
458
  .optional(),
459
+ expires_at: zod.string().optional(),
388
460
  id: zod.string().optional(),
461
+ notify_users: zod
462
+ .array(
463
+ zod.object({
464
+ id: zod.string().optional(),
465
+ name: zod.string().optional(),
466
+ }),
467
+ )
468
+ .optional(),
389
469
  token: zod.string().optional(),
390
470
  updated_at: zod.string().optional(),
391
471
  updated_by: zod
@@ -994,6 +994,8 @@ export const GetUserWarningsResponse = zod.object({
994
994
  'password_expires_soon',
995
995
  'license_expires_soon',
996
996
  'license_expired',
997
+ 'token_expires_soon',
998
+ 'token_expired',
997
999
  ])
998
1000
  .default(getUserWarningsResponseWarningsItemIdDefault),
999
1001
  warning_data: zod
@@ -1011,6 +1013,14 @@ export const GetUserWarningsResponse = zod.object({
1011
1013
  expires_at: zod.string().optional(),
1012
1014
  })
1013
1015
  .optional(),
1016
+ token_expiry: zod
1017
+ .object({
1018
+ days_remaining: zod.string().optional(),
1019
+ expires_at: zod.string().optional(),
1020
+ token_id: zod.string().optional(),
1021
+ usage: zod.string().optional(),
1022
+ })
1023
+ .optional(),
1014
1024
  })
1015
1025
  .optional(),
1016
1026
  }),
@@ -78,6 +78,12 @@ export const ContactsSearchResponse = zod
78
78
  .string()
79
79
  .optional()
80
80
  .describe('Display name of the contact.'),
81
+ phone: zod
82
+ .string()
83
+ .optional()
84
+ .describe(
85
+ 'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
86
+ ),
81
87
  sub: zod
82
88
  .string()
83
89
  .optional()