@webitel/api-services 26.12.3 → 26.12.4

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 (185) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/outboundResourceGroups/outboundResourceGroups.ts +14 -12
  3. package/src/gen/_models/addUserAccessTokenBody.ts +2 -0
  4. package/src/gen/_models/addUserAccessTokenParams.ts +3 -4
  5. package/src/gen/_models/apiTokenExpiryWarning.ts +13 -0
  6. package/src/gen/_models/apiUserAccessToken.ts +2 -0
  7. package/src/gen/_models/apiUserWarningId.ts +2 -0
  8. package/src/gen/_models/apiWarningData.ts +2 -0
  9. package/src/gen/_models/engineSearchHistoryCallRequest.ts +1 -0
  10. package/src/gen/_models/engineSystemSettingName.ts +0 -1
  11. package/src/gen/_models/gateServiceListGatesParams.ts +7 -0
  12. package/src/gen/_models/gateServiceListGatesTypesItem.ts +1 -0
  13. package/src/gen/_models/googleProtobufAny.ts +117 -0
  14. package/src/gen/_models/googleProtobufNullValue.ts +3 -8
  15. package/src/gen/_models/googleRpcStatus.ts +23 -0
  16. package/src/gen/_models/index.ts +7 -4
  17. package/src/gen/_models/protobufNullValue.ts +3 -8
  18. package/src/gen/_models/searchHistoryCallParams.ts +1 -0
  19. package/src/gen/_models/searchSystemSettingNameItem.ts +0 -1
  20. package/src/gen/_models/threadManagementGetCountersParams.ts +21 -0
  21. package/src/gen/_models/threadManagementGetCountersTypesItem.ts +16 -0
  22. package/src/gen/_models/updateUserAccessToken2Body.ts +2 -0
  23. package/src/gen/_models/updateUserAccessTokenBody.ts +2 -0
  24. package/src/gen/_models/updateUserAccessTokenUpdateBody.ts +2 -0
  25. package/src/gen/_models/webitelImApiGatewayV1Contact.ts +2 -0
  26. package/src/gen/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
  27. package/src/gen/_models/webitelImApiGatewayV1Thread.ts +7 -0
  28. package/src/gen/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
  29. package/src/gen/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
  30. package/src/gen/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
  31. package/src/gen/_models/webitelImApiProviderV1ProviderType.ts +4 -0
  32. package/src/gen/_models/webitelImProviderV1ProviderSummary.ts +6 -0
  33. package/src/gen/_models/webitelImProviderV1ProviderType.ts +3 -0
  34. package/src/gen-wire/_models/addUserAccessTokenBody.ts +2 -0
  35. package/src/gen-wire/_models/addUserAccessTokenParams.ts +3 -4
  36. package/src/gen-wire/_models/apiTokenExpiryWarning.ts +13 -0
  37. package/src/gen-wire/_models/apiUserAccessToken.ts +2 -0
  38. package/src/gen-wire/_models/apiUserWarningId.ts +2 -0
  39. package/src/gen-wire/_models/apiWarningData.ts +2 -0
  40. package/src/gen-wire/_models/engineSearchHistoryCallRequest.ts +1 -0
  41. package/src/gen-wire/_models/engineSystemSettingName.ts +0 -1
  42. package/src/gen-wire/_models/gateServiceListGatesParams.ts +7 -0
  43. package/src/gen-wire/_models/gateServiceListGatesTypesItem.ts +1 -0
  44. package/src/gen-wire/_models/googleProtobufAny.ts +117 -0
  45. package/src/gen-wire/_models/googleProtobufNullValue.ts +3 -8
  46. package/src/gen-wire/_models/googleRpcStatus.ts +23 -0
  47. package/src/gen-wire/_models/index.ts +7 -4
  48. package/src/gen-wire/_models/protobufNullValue.ts +3 -8
  49. package/src/gen-wire/_models/searchHistoryCallParams.ts +1 -0
  50. package/src/gen-wire/_models/searchSystemSettingNameItem.ts +0 -1
  51. package/src/gen-wire/_models/threadManagementGetCountersParams.ts +21 -0
  52. package/src/gen-wire/_models/threadManagementGetCountersTypesItem.ts +16 -0
  53. package/src/gen-wire/_models/updateUserAccessToken2Body.ts +2 -0
  54. package/src/gen-wire/_models/updateUserAccessTokenBody.ts +2 -0
  55. package/src/gen-wire/_models/updateUserAccessTokenUpdateBody.ts +2 -0
  56. package/src/gen-wire/_models/webitelImApiGatewayV1Contact.ts +2 -0
  57. package/src/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
  58. package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +7 -0
  59. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
  60. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
  61. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
  62. package/src/gen-wire/_models/webitelImApiProviderV1ProviderType.ts +4 -0
  63. package/src/gen-wire/_models/webitelImProviderV1ProviderSummary.ts +6 -0
  64. package/src/gen-wire/_models/webitelImProviderV1ProviderType.ts +3 -0
  65. package/src/gen-wire/call-service/call-service.zod.ts +2 -0
  66. package/src/gen-wire/cases/cases.zod.ts +32 -7
  67. package/src/gen-wire/customer/customer.zod.ts +32 -7
  68. package/src/gen-wire/customers/customers.ts +0 -8
  69. package/src/gen-wire/customers/customers.zod.ts +0 -4
  70. package/src/gen-wire/index.ts +6 -7
  71. package/src/gen-wire/index.zod.ts +0 -1
  72. package/src/gen-wire/list-service/list-service.zod.ts +32 -7
  73. package/src/gen-wire/member-service/member-service.zod.ts +32 -7
  74. package/src/gen-wire/messages/messages.zod.ts +32 -7
  75. package/src/gen-wire/pdf-service/pdf-service.zod.ts +128 -28
  76. package/src/gen-wire/system-setting-service/system-setting-service.zod.ts +0 -8
  77. package/src/gen-wire/user-access-tokens/user-access-tokens.zod.ts +85 -5
  78. package/src/gen-wire/users/users.zod.ts +10 -0
  79. package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.ts +6 -0
  80. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +96 -0
  81. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +21 -0
  82. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +449 -0
  83. package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +18 -0
  84. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +150 -0
  85. package/src/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.ts +18 -2
  86. package/src/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +14 -7
  87. package/types/.tsbuildinfo +1 -1
  88. package/types/gen/_models/addUserAccessTokenBody.d.ts +2 -0
  89. package/types/gen/_models/addUserAccessTokenParams.d.ts +3 -4
  90. package/types/gen/_models/apiTokenExpiryWarning.d.ts +12 -0
  91. package/types/gen/_models/apiUserAccessToken.d.ts +2 -0
  92. package/types/gen/_models/apiUserWarningId.d.ts +2 -0
  93. package/types/gen/_models/apiWarningData.d.ts +2 -0
  94. package/types/gen/_models/engineSearchHistoryCallRequest.d.ts +1 -0
  95. package/types/gen/_models/engineSystemSettingName.d.ts +0 -1
  96. package/types/gen/_models/gateServiceListGatesParams.d.ts +7 -0
  97. package/types/gen/_models/gateServiceListGatesTypesItem.d.ts +1 -0
  98. package/types/gen/_models/googleProtobufAny.d.ts +117 -0
  99. package/types/gen/_models/googleProtobufNullValue.d.ts +3 -8
  100. package/types/gen/_models/googleRpcStatus.d.ts +23 -0
  101. package/types/gen/_models/index.d.ts +7 -4
  102. package/types/gen/_models/protobufNullValue.d.ts +3 -8
  103. package/types/gen/_models/searchHistoryCallParams.d.ts +1 -0
  104. package/types/gen/_models/searchSystemSettingNameItem.d.ts +0 -1
  105. package/types/gen/_models/threadManagementGetCountersParams.d.ts +20 -0
  106. package/types/gen/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
  107. package/types/gen/_models/updateUserAccessToken2Body.d.ts +2 -0
  108. package/types/gen/_models/updateUserAccessTokenBody.d.ts +2 -0
  109. package/types/gen/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
  110. package/types/gen/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
  111. package/types/gen/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
  112. package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
  113. package/types/gen/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
  114. package/types/gen/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
  115. package/types/gen/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
  116. package/types/gen/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
  117. package/types/gen/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
  118. package/types/gen/_models/webitelImProviderV1ProviderType.d.ts +3 -0
  119. package/types/gen-wire/_models/addUserAccessTokenBody.d.ts +2 -0
  120. package/types/gen-wire/_models/addUserAccessTokenParams.d.ts +3 -4
  121. package/types/gen-wire/_models/apiTokenExpiryWarning.d.ts +12 -0
  122. package/types/gen-wire/_models/apiUserAccessToken.d.ts +2 -0
  123. package/types/gen-wire/_models/apiUserWarningId.d.ts +2 -0
  124. package/types/gen-wire/_models/apiWarningData.d.ts +2 -0
  125. package/types/gen-wire/_models/engineSearchHistoryCallRequest.d.ts +1 -0
  126. package/types/gen-wire/_models/engineSystemSettingName.d.ts +0 -1
  127. package/types/gen-wire/_models/gateServiceListGatesParams.d.ts +7 -0
  128. package/types/gen-wire/_models/gateServiceListGatesTypesItem.d.ts +1 -0
  129. package/types/gen-wire/_models/googleProtobufAny.d.ts +117 -0
  130. package/types/gen-wire/_models/googleProtobufNullValue.d.ts +3 -8
  131. package/types/gen-wire/_models/googleRpcStatus.d.ts +23 -0
  132. package/types/gen-wire/_models/index.d.ts +7 -4
  133. package/types/gen-wire/_models/protobufNullValue.d.ts +3 -8
  134. package/types/gen-wire/_models/searchHistoryCallParams.d.ts +1 -0
  135. package/types/gen-wire/_models/searchSystemSettingNameItem.d.ts +0 -1
  136. package/types/gen-wire/_models/threadManagementGetCountersParams.d.ts +20 -0
  137. package/types/gen-wire/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
  138. package/types/gen-wire/_models/updateUserAccessToken2Body.d.ts +2 -0
  139. package/types/gen-wire/_models/updateUserAccessTokenBody.d.ts +2 -0
  140. package/types/gen-wire/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
  141. package/types/gen-wire/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
  142. package/types/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
  143. package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
  144. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
  145. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
  146. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
  147. package/types/gen-wire/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
  148. package/types/gen-wire/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
  149. package/types/gen-wire/_models/webitelImProviderV1ProviderType.d.ts +3 -0
  150. package/types/gen-wire/call-service/call-service.zod.d.ts +2 -0
  151. package/types/gen-wire/customers/customers.d.ts +1 -3
  152. package/types/gen-wire/customers/customers.zod.d.ts +0 -3
  153. package/types/gen-wire/index.d.ts +2 -4
  154. package/types/gen-wire/index.zod.d.ts +0 -1
  155. package/types/gen-wire/system-setting-service/system-setting-service.zod.d.ts +0 -8
  156. package/types/gen-wire/user-access-tokens/user-access-tokens.zod.d.ts +46 -0
  157. package/types/gen-wire/users/users.zod.d.ts +8 -0
  158. package/types/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.d.ts +1 -0
  159. package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +16 -0
  160. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +3 -1
  161. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +124 -0
  162. package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +3 -0
  163. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +33 -0
  164. package/types/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.d.ts +4 -0
  165. package/types/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +7 -0
  166. package/src/gen/_models/apiServerInfoResponse.ts +0 -10
  167. package/src/gen/_models/engineSchemaVersion.ts +0 -17
  168. package/src/gen/_models/engineSearchSchemaVersionResponse.ts +0 -12
  169. package/src/gen/_models/searchSchemaVersionParams.ts +0 -14
  170. package/src/gen-wire/_models/apiServerInfoResponse.ts +0 -10
  171. package/src/gen-wire/_models/engineSchemaVersion.ts +0 -16
  172. package/src/gen-wire/_models/engineSearchSchemaVersionResponse.ts +0 -12
  173. package/src/gen-wire/_models/searchSchemaVersionParams.ts +0 -14
  174. package/src/gen-wire/schema-version-service/schema-version-service.ts +0 -46
  175. package/src/gen-wire/schema-version-service/schema-version-service.zod.ts +0 -40
  176. package/types/gen/_models/apiServerInfoResponse.d.ts +0 -9
  177. package/types/gen/_models/engineSchemaVersion.d.ts +0 -16
  178. package/types/gen/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
  179. package/types/gen/_models/searchSchemaVersionParams.d.ts +0 -13
  180. package/types/gen-wire/_models/apiServerInfoResponse.d.ts +0 -9
  181. package/types/gen-wire/_models/engineSchemaVersion.d.ts +0 -15
  182. package/types/gen-wire/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
  183. package/types/gen-wire/_models/searchSchemaVersionParams.d.ts +0 -13
  184. package/types/gen-wire/schema-version-service/schema-version-service.d.ts +0 -13
  185. package/types/gen-wire/schema-version-service/schema-version-service.zod.d.ts +0 -31
@@ -9,6 +9,12 @@ import type { WebitelImProviderV1ProviderStatusCapabilities } from './webitelImP
9
9
  import type { WebitelImProviderV1ProviderType } from './webitelImProviderV1ProviderType';
10
10
 
11
11
  export interface WebitelImProviderV1ProviderSummary {
12
+ /**
13
+ * Public address of the channel the gate serves: the WhatsApp business
14
+ * phone number, the Facebook page name (page id when the name is unknown),
15
+ * the Viber BM sender name. Empty when the provider has none.
16
+ */
17
+ address?: string;
12
18
  /**
13
19
  * Delivery-status receipts the channel is able to produce; unset when no
14
20
  * provider adapter is registered for the channel type.
@@ -7,6 +7,8 @@
7
7
 
8
8
  /**
9
9
  * / ProviderType defines the specific provider or protocol used for messaging.
10
+ *
11
+ * - PROVIDER_TYPE_VIBER_BM: Viber Business Messages (Infobip).
10
12
  */
11
13
  export type WebitelImProviderV1ProviderType =
12
14
  (typeof WebitelImProviderV1ProviderType)[keyof typeof WebitelImProviderV1ProviderType];
@@ -21,4 +23,5 @@ export const WebitelImProviderV1ProviderType = {
21
23
  ProviderTypeInstagram: 'PROVIDER_TYPE_INSTAGRAM',
22
24
  ProviderTypeWhatsapp: 'PROVIDER_TYPE_WHATSAPP',
23
25
  ProviderTypeCustom: 'PROVIDER_TYPE_CUSTOM',
26
+ ProviderTypeViberBm: 'PROVIDER_TYPE_VIBER_BM',
24
27
  } as const;
@@ -18,7 +18,9 @@ export type AddUserAccessTokenBody = {
18
18
  created_by?: ApiObjectId;
19
19
  deleted_at?: string;
20
20
  deleted_by?: ApiObjectId;
21
+ expires_at?: string;
21
22
  id?: string;
23
+ notify_users?: ApiObjectId[];
22
24
  token?: string;
23
25
  updated_at?: string;
24
26
  updated_by?: ApiObjectId;
@@ -6,10 +6,9 @@
6
6
  */
7
7
 
8
8
  export type AddUserAccessTokenParams = {
9
+ enable?: boolean;
9
10
  /**
10
- * ObjectId user = 1; // [required]
11
- * string usage = 2; // [optional] usage description
12
- * bool enable = 3;
11
+ * [optional] create-only; server derives token.expires_at
13
12
  */
14
- enable?: boolean;
13
+ expiry_days?: number;
15
14
  };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export interface ApiTokenExpiryWarning {
9
+ days_remaining?: string;
10
+ expires_at?: string;
11
+ token_id?: string;
12
+ usage?: string;
13
+ }
@@ -14,7 +14,9 @@ export interface ApiUserAccessToken {
14
14
  created_by?: ApiObjectId;
15
15
  deleted_at?: string;
16
16
  deleted_by?: ApiObjectId;
17
+ expires_at?: string;
17
18
  id?: string;
19
+ notify_users?: ApiObjectId[];
18
20
  token?: string;
19
21
  updated_at?: string;
20
22
  updated_by?: ApiObjectId;
@@ -13,4 +13,6 @@ export const ApiUserWarningId = {
13
13
  PasswordExpiresSoon: 'password_expires_soon',
14
14
  LicenseExpiresSoon: 'license_expires_soon',
15
15
  LicenseExpired: 'license_expired',
16
+ TokenExpiresSoon: 'token_expires_soon',
17
+ TokenExpired: 'token_expired',
16
18
  } as const;
@@ -6,8 +6,10 @@
6
6
  */
7
7
  import type { ApiLicenseExpiryWarning } from './apiLicenseExpiryWarning';
8
8
  import type { ApiPasswordExpiryWarning } from './apiPasswordExpiryWarning';
9
+ import type { ApiTokenExpiryWarning } from './apiTokenExpiryWarning';
9
10
 
10
11
  export interface ApiWarningData {
11
12
  license_expiry?: ApiLicenseExpiryWarning;
12
13
  password_expiry?: ApiPasswordExpiryWarning;
14
+ token_expiry?: ApiTokenExpiryWarning;
13
15
  }
@@ -31,6 +31,7 @@ export interface EngineSearchHistoryCallRequest {
31
31
  has_file?: boolean;
32
32
  has_transcript?: boolean;
33
33
  has_transfer?: boolean;
34
+ hide_number?: boolean;
34
35
  id?: string[];
35
36
  member_id?: string[];
36
37
  missed?: boolean;
@@ -13,7 +13,6 @@ export const EngineSystemSettingName = {
13
13
  EnableOmnichannel: 'enable_omnichannel',
14
14
  MemberChunkSize: 'member_chunk_size',
15
15
  AmdCancelNotHuman: 'amd_cancel_not_human',
16
- SchemeVersionLimit: 'scheme_version_limit',
17
16
  Enable2fa: 'enable_2fa',
18
17
  ExportSettings: 'export_settings',
19
18
  SearchNumberLength: 'search_number_length',
@@ -18,6 +18,8 @@ export type GateServiceListGatesParams = {
18
18
  size?: number;
19
19
  /**
20
20
  * Filter by channel type (Telegram, Facebook, etc.)
21
+ *
22
+ * - PROVIDER_TYPE_VIBER_BM: Viber Business Messages (Infobip).
21
23
  */
22
24
  types?: GateServiceListGatesTypesItem[];
23
25
  /**
@@ -32,4 +34,9 @@ export type GateServiceListGatesParams = {
32
34
  * Search query for name or metadata
33
35
  */
34
36
  q?: string;
37
+ /**
38
+ * Domain to list gates of. Required for service (mTLS) callers, which carry
39
+ * no user identity; ignored for user callers, whose own domain is used.
40
+ */
41
+ domain_id?: string;
35
42
  };
@@ -18,4 +18,5 @@ export const GateServiceListGatesTypesItem = {
18
18
  ProviderTypeInstagram: 'PROVIDER_TYPE_INSTAGRAM',
19
19
  ProviderTypeWhatsapp: 'PROVIDER_TYPE_WHATSAPP',
20
20
  ProviderTypeCustom: 'PROVIDER_TYPE_CUSTOM',
21
+ ProviderTypeViberBm: 'PROVIDER_TYPE_VIBER_BM',
21
22
  } as const;
@@ -5,6 +5,123 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
 
8
+ /**
9
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
10
+ * URL that describes the type of the serialized message.
11
+ *
12
+ * Protobuf library provides support to pack/unpack Any values in the form
13
+ * of utility functions or additional generated methods of the Any type.
14
+ *
15
+ * Example 1: Pack and unpack a message in C++.
16
+ *
17
+ * Foo foo = ...;
18
+ * Any any;
19
+ * any.PackFrom(foo);
20
+ * ...
21
+ * if (any.UnpackTo(&foo)) {
22
+ * ...
23
+ * }
24
+ *
25
+ * Example 2: Pack and unpack a message in Java.
26
+ *
27
+ * Foo foo = ...;
28
+ * Any any = Any.pack(foo);
29
+ * ...
30
+ * if (any.is(Foo.class)) {
31
+ * foo = any.unpack(Foo.class);
32
+ * }
33
+ * // or ...
34
+ * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
35
+ * foo = any.unpack(Foo.getDefaultInstance());
36
+ * }
37
+ *
38
+ * Example 3: Pack and unpack a message in Python.
39
+ *
40
+ * foo = Foo(...)
41
+ * any = Any()
42
+ * any.Pack(foo)
43
+ * ...
44
+ * if any.Is(Foo.DESCRIPTOR):
45
+ * any.Unpack(foo)
46
+ * ...
47
+ *
48
+ * Example 4: Pack and unpack a message in Go
49
+ *
50
+ * foo := &pb.Foo{...}
51
+ * any, err := anypb.New(foo)
52
+ * if err != nil {
53
+ * ...
54
+ * }
55
+ * ...
56
+ * foo := &pb.Foo{}
57
+ * if err := any.UnmarshalTo(foo); err != nil {
58
+ * ...
59
+ * }
60
+ *
61
+ * The pack methods provided by protobuf library will by default use
62
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
63
+ * methods only use the fully qualified type name after the last '/'
64
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
65
+ * name "y.z".
66
+ *
67
+ * JSON
68
+ * ====
69
+ * The JSON representation of an `Any` value uses the regular
70
+ * representation of the deserialized, embedded message, with an
71
+ * additional field `@type` which contains the type URL. Example:
72
+ *
73
+ * package google.profile;
74
+ * message Person {
75
+ * string first_name = 1;
76
+ * string last_name = 2;
77
+ * }
78
+ *
79
+ * {
80
+ * "@type": "type.googleapis.com/google.profile.Person",
81
+ * "firstName": <string>,
82
+ * "lastName": <string>
83
+ * }
84
+ *
85
+ * If the embedded message type is well-known and has a custom JSON
86
+ * representation, that representation will be embedded adding a field
87
+ * `value` which holds the custom JSON in addition to the `@type`
88
+ * field. Example (for message [google.protobuf.Duration][]):
89
+ *
90
+ * {
91
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
92
+ * "value": "1.212s"
93
+ * }
94
+ */
8
95
  export interface GoogleProtobufAny {
96
+ /**
97
+ * A URL/resource name that uniquely identifies the type of the serialized
98
+ * protocol buffer message. This string must contain at least
99
+ * one "/" character. The last segment of the URL's path must represent
100
+ * the fully qualified name of the type (as in
101
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
102
+ * (e.g., leading "." is not accepted).
103
+ *
104
+ * In practice, teams usually precompile into the binary all types that they
105
+ * expect it to use in the context of Any. However, for URLs which use the
106
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
107
+ * server that maps type URLs to message definitions as follows:
108
+ *
109
+ * * If no scheme is provided, `https` is assumed.
110
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
111
+ * value in binary format, or produce an error.
112
+ * * Applications are allowed to cache lookup results based on the
113
+ * URL, or have them precompiled into a binary to avoid any
114
+ * lookup. Therefore, binary compatibility needs to be preserved
115
+ * on changes to types. (Use versioned type names to manage
116
+ * breaking changes.)
117
+ *
118
+ * Note: this functionality is not currently available in the official
119
+ * protobuf release, and it is not used for type URLs beginning with
120
+ * type.googleapis.com. As of May 2023, there are no widely used type server
121
+ * implementations and no plans to implement one.
122
+ *
123
+ * Schemes other than `http`, `https` (or the empty scheme) might be
124
+ * used with implementation specific semantics.
125
+ */
9
126
  '@type'?: string;
10
127
  }
@@ -6,15 +6,10 @@
6
6
  */
7
7
 
8
8
  /**
9
- * Represents a JSON `null`.
9
+ * `NullValue` is a singleton enumeration to represent the null value for the
10
+ * `Value` type union.
10
11
  *
11
- * `NullValue` is a sentinel, using an enum with only one value to represent
12
- * the null value for the `Value` type union.
13
- *
14
- * A field of type `NullValue` with any value other than `0` is considered
15
- * invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
16
- * as a JSON `null` regardless of the integer value, and so will round trip to
17
- * a `0` value.
12
+ * The JSON representation for `NullValue` is JSON `null`.
18
13
  *
19
14
  * - NULL_VALUE: Null value.
20
15
  */
@@ -6,8 +6,31 @@
6
6
  */
7
7
  import type { GoogleProtobufAny } from './googleProtobufAny';
8
8
 
9
+ /**
10
+ * The `Status` type defines a logical error model that is suitable for
11
+ * different programming environments, including REST APIs and RPC APIs. It is
12
+ * used by [gRPC](https://github.com/grpc). Each `Status` message contains
13
+ * three pieces of data: error code, error message, and error details.
14
+ *
15
+ * You can find out more about this error model and how to work with it in the
16
+ * [API Design Guide](https://cloud.google.com/apis/design/errors).
17
+ */
9
18
  export interface GoogleRpcStatus {
19
+ /**
20
+ * The status code, which should be an enum value of
21
+ * [google.rpc.Code][google.rpc.Code].
22
+ */
10
23
  code?: number;
24
+ /**
25
+ * A list of messages that carry the error details. There is a common set of
26
+ * message types for APIs to use.
27
+ */
11
28
  details?: GoogleProtobufAny[];
29
+ /**
30
+ * A developer-facing error message, which should be in English. Any
31
+ * user-facing error message should be localized and sent in the
32
+ * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
33
+ * by the client.
34
+ */
12
35
  message?: string;
13
36
  }
@@ -113,11 +113,11 @@ export * from './apiSearchPermissionResponse';
113
113
  export * from './apiSearchRolesResponse';
114
114
  export * from './apiSearchUsersRequest';
115
115
  export * from './apiSearchUsersResponse';
116
- export * from './apiServerInfoResponse';
117
116
  export * from './apiSetStatusRequest';
118
117
  export * from './apiSystemObjects';
119
118
  export * from './apiTfaUrl';
120
119
  export * from './apiToggleDefaultAccessResponse';
120
+ export * from './apiTokenExpiryWarning';
121
121
  export * from './apiUpdateAccessResponseV1';
122
122
  export * from './apiUpdateClassResponse';
123
123
  export * from './apiUpdateCustomerResponse';
@@ -715,11 +715,9 @@ export * from './engineSchemaTag';
715
715
  export * from './engineSchemaVariable';
716
716
  export * from './engineSchemaVariablesServicePatchSchemaVariableBody';
717
717
  export * from './engineSchemaVariablesServiceUpdateSchemaVariableBody';
718
- export * from './engineSchemaVersion';
719
718
  export * from './engineSearchHistoryCallRequest';
720
719
  export * from './engineSearchHistoryCallRequestVariablesString';
721
720
  export * from './engineSearchOnlineSkillsResponse';
722
- export * from './engineSearchSchemaVersionResponse';
723
721
  export * from './engineSendPushResponse';
724
722
  export * from './engineSetQueuesGlobalStateRequest';
725
723
  export * from './engineSetQueuesGlobalStateResponse';
@@ -1126,7 +1124,6 @@ export * from './searchRoutingSchemaTagsTypeItem';
1126
1124
  export * from './searchRoutingSchemaTypeItem';
1127
1125
  export * from './searchRoutingVariableParams';
1128
1126
  export * from './searchSchemaVariableParams';
1129
- export * from './searchSchemaVersionParams';
1130
1127
  export * from './searchScreenRecordingsByAgentChannel';
1131
1128
  export * from './searchScreenRecordingsByAgentParams';
1132
1129
  export * from './searchScreenRecordingsByAgentType';
@@ -1250,6 +1247,8 @@ export * from './storageUploadFileResponse';
1250
1247
  export * from './storageUploadFileUrlResponse';
1251
1248
  export * from './storageUploadStatusCode';
1252
1249
  export * from './suggestTagsParams';
1250
+ export * from './threadManagementGetCountersParams';
1251
+ export * from './threadManagementGetCountersTypesItem';
1253
1252
  export * from './threadManagementGetParams';
1254
1253
  export * from './threadManagementRemoveMemberParams';
1255
1254
  export * from './threadManagementSearchLeftParams';
@@ -1642,6 +1641,7 @@ export * from './webitelImApiGatewayV1ForwardOrigin';
1642
1641
  export * from './webitelImApiGatewayV1ForwardOriginInput';
1643
1642
  export * from './webitelImApiGatewayV1ForwardOriginKind';
1644
1643
  export * from './webitelImApiGatewayV1GetContactSettingsResponse';
1644
+ export * from './webitelImApiGatewayV1GetCountersResponse';
1645
1645
  export * from './webitelImApiGatewayV1GetMessageRevisionsResponse';
1646
1646
  export * from './webitelImApiGatewayV1GetThreadPermissionsResponse';
1647
1647
  export * from './webitelImApiGatewayV1GetUnreadSummaryResponse';
@@ -1722,6 +1722,9 @@ export * from './webitelImApiGatewayV1System';
1722
1722
  export * from './webitelImApiGatewayV1SystemMetadata';
1723
1723
  export * from './webitelImApiGatewayV1TakeOverFromBotResponse';
1724
1724
  export * from './webitelImApiGatewayV1Thread';
1725
+ export * from './webitelImApiGatewayV1ThreadChannel';
1726
+ export * from './webitelImApiGatewayV1ThreadChannelType';
1727
+ export * from './webitelImApiGatewayV1ThreadCounters';
1725
1728
  export * from './webitelImApiGatewayV1ThreadKind';
1726
1729
  export * from './webitelImApiGatewayV1ThreadManagementAddMemberBody';
1727
1730
  export * from './webitelImApiGatewayV1ThreadManagementCreateRequest';
@@ -6,15 +6,10 @@
6
6
  */
7
7
 
8
8
  /**
9
- * Represents a JSON `null`.
9
+ * `NullValue` is a singleton enumeration to represent the null value for the
10
+ * `Value` type union.
10
11
  *
11
- * `NullValue` is a sentinel, using an enum with only one value to represent
12
- * the null value for the `Value` type union.
13
- *
14
- * A field of type `NullValue` with any value other than `0` is considered
15
- * invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
16
- * as a JSON `null` regardless of the integer value, and so will round trip to
17
- * a `0` value.
12
+ * The JSON representation for `NullValue` is JSON `null`.
18
13
  *
19
14
  * - NULL_VALUE: Null value.
20
15
  */
@@ -65,4 +65,5 @@ export type SearchHistoryCallParams = {
65
65
  has_transfer?: boolean;
66
66
  timeline?: boolean;
67
67
  excluded_queue_types?: SearchHistoryCallExcludedQueueTypesItem[];
68
+ hide_number?: boolean;
68
69
  };
@@ -13,7 +13,6 @@ export const SearchSystemSettingNameItem = {
13
13
  EnableOmnichannel: 'enable_omnichannel',
14
14
  MemberChunkSize: 'member_chunk_size',
15
15
  AmdCancelNotHuman: 'amd_cancel_not_human',
16
- SchemeVersionLimit: 'scheme_version_limit',
17
16
  Enable2fa: 'enable_2fa',
18
17
  ExportSettings: 'export_settings',
19
18
  SearchNumberLength: 'search_number_length',
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { ThreadManagementGetCountersTypesItem } from './threadManagementGetCountersTypesItem';
8
+
9
+ export type ThreadManagementGetCountersParams = {
10
+ /**
11
+ * Count only threads of these kinds. Empty counts every kind.
12
+ * UNKNOWN (0) is not allowed.
13
+ *
14
+ * - UNKNOWN: Unknown or unspecified thread type.
15
+ * Must not be used in valid requests.
16
+ * - DIRECT: One-to-one private thread between two users.
17
+ * - GROUP: Group thread with multiple members.
18
+ * - CHANNEL: Channel-style thread (broadcast or topic based communication).
19
+ */
20
+ types?: ThreadManagementGetCountersTypesItem[];
21
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export type ThreadManagementGetCountersTypesItem =
9
+ (typeof ThreadManagementGetCountersTypesItem)[keyof typeof ThreadManagementGetCountersTypesItem];
10
+
11
+ export const ThreadManagementGetCountersTypesItem = {
12
+ Unknown: 'UNKNOWN',
13
+ Direct: 'DIRECT',
14
+ Group: 'GROUP',
15
+ Channel: 'CHANNEL',
16
+ } as const;
@@ -12,6 +12,8 @@ export type UpdateUserAccessToken2Body = {
12
12
  created_by?: ApiObjectId;
13
13
  deleted_at?: string;
14
14
  deleted_by?: ApiObjectId;
15
+ expires_at?: string;
16
+ notify_users?: ApiObjectId[];
15
17
  token?: string;
16
18
  updated_at?: string;
17
19
  updated_by?: ApiObjectId;
@@ -12,6 +12,8 @@ export type UpdateUserAccessTokenBody = {
12
12
  created_by?: ApiObjectId;
13
13
  deleted_at?: string;
14
14
  deleted_by?: ApiObjectId;
15
+ expires_at?: string;
16
+ notify_users?: ApiObjectId[];
15
17
  token?: string;
16
18
  updated_at?: string;
17
19
  updated_by?: ApiObjectId;
@@ -12,6 +12,8 @@ export type UpdateUserAccessTokenUpdateBody = {
12
12
  created_by?: ApiObjectId;
13
13
  deleted_at?: string;
14
14
  deleted_by?: ApiObjectId;
15
+ expires_at?: string;
16
+ notify_users?: ApiObjectId[];
15
17
  token?: string;
16
18
  updated_at?: string;
17
19
  updated_by?: ApiObjectId;
@@ -25,6 +25,8 @@ export interface WebitelImApiGatewayV1Contact {
25
25
  metadata?: WebitelImApiGatewayV1ContactMetadata;
26
26
  /** Display name of the contact. */
27
27
  name?: string;
28
+ /** Phone number in E.164 format (e.g. +380671234567). Empty if unknown. */
29
+ phone?: string;
28
30
  /** Associated internal system subject/identifier. */
29
31
  sub?: string;
30
32
  /** Channel type (e.g., 'webchat', 'telegram'). */
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1ThreadCounters } from './webitelImApiGatewayV1ThreadCounters';
8
+
9
+ /**
10
+ * GetCountersResponse carries the caller's counters per chat folder.
11
+ */
12
+ export interface WebitelImApiGatewayV1GetCountersResponse {
13
+ /** Chats the caller has not snoozed. */
14
+ active?: WebitelImApiGatewayV1ThreadCounters;
15
+ /** Every chat the caller is an active member of: active plus snoozed. */
16
+ all?: WebitelImApiGatewayV1ThreadCounters;
17
+ /** Chats the caller has snoozed. */
18
+ snoozed?: WebitelImApiGatewayV1ThreadCounters;
19
+ }
@@ -7,6 +7,7 @@
7
7
  import type { WebitelImApiGatewayV1ChatTag } from './webitelImApiGatewayV1ChatTag';
8
8
  import type { WebitelImApiGatewayV1HistoryMessage } from './webitelImApiGatewayV1HistoryMessage';
9
9
  import type { WebitelImApiGatewayV1MemberReadState } from './webitelImApiGatewayV1MemberReadState';
10
+ import type { WebitelImApiGatewayV1ThreadChannel } from './webitelImApiGatewayV1ThreadChannel';
10
11
  import type { WebitelImApiGatewayV1ThreadKind } from './webitelImApiGatewayV1ThreadKind';
11
12
  import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
12
13
  import type { WebitelImApiGatewayV1ThreadSettings } from './webitelImApiGatewayV1ThreadSettings';
@@ -18,6 +19,12 @@ import type { WebitelImApiGatewayV1ThreadVariables } from './webitelImApiGateway
18
19
  export interface WebitelImApiGatewayV1Thread {
19
20
  /** The caller's own tags on this thread. Empty if the caller hasn't tagged it. */
20
21
  tags?: WebitelImApiGatewayV1ChatTag[];
22
+ /**
23
+ * Channel the external participant reaches the thread through: a provider
24
+ * gate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget
25
+ * application. Unset when it cannot be resolved (e.g. an internal thread).
26
+ */
27
+ channel?: WebitelImApiGatewayV1ThreadChannel;
21
28
  /** Thread creation timestamp (Unix time, milliseconds). */
22
29
  created_at?: string;
23
30
  /**
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1ThreadChannelType } from './webitelImApiGatewayV1ThreadChannelType';
8
+
9
+ /**
10
+ * ThreadChannel describes the channel a thread came in through.
11
+ */
12
+ export interface WebitelImApiGatewayV1ThreadChannel {
13
+ /**
14
+ * Public address of the channel: the WhatsApp business phone number, the
15
+ * Facebook page name, the Viber BM sender name. Empty for portal / widget.
16
+ */
17
+ address?: string;
18
+ /**
19
+ * Source identifier: the gate id for provider channels, the application
20
+ * (client) id for portal / widget channels.
21
+ */
22
+ id?: string;
23
+ /** Display name: the gate name or the application name. */
24
+ name?: string;
25
+ /** Channel kind; drives the logo shown to the operator. */
26
+ type?: WebitelImApiGatewayV1ThreadChannelType;
27
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ /**
9
+ * ThreadChannelType is the fixed set of channel kinds a thread can come through.
10
+ */
11
+ export type WebitelImApiGatewayV1ThreadChannelType =
12
+ (typeof WebitelImApiGatewayV1ThreadChannelType)[keyof typeof WebitelImApiGatewayV1ThreadChannelType];
13
+
14
+ export const WebitelImApiGatewayV1ThreadChannelType = {
15
+ ThreadChannelTypeUnspecified: 'THREAD_CHANNEL_TYPE_UNSPECIFIED',
16
+ ThreadChannelTypeWhatsapp: 'THREAD_CHANNEL_TYPE_WHATSAPP',
17
+ ThreadChannelTypeFacebook: 'THREAD_CHANNEL_TYPE_FACEBOOK',
18
+ ThreadChannelTypeViberBm: 'THREAD_CHANNEL_TYPE_VIBER_BM',
19
+ ThreadChannelTypePortal: 'THREAD_CHANNEL_TYPE_PORTAL',
20
+ ThreadChannelTypeWidget: 'THREAD_CHANNEL_TYPE_WIDGET',
21
+ ThreadChannelTypeCustom: 'THREAD_CHANNEL_TYPE_CUSTOM',
22
+ } as const;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ /**
9
+ * ThreadCounters is the size of one chat folder.
10
+ */
11
+ export interface WebitelImApiGatewayV1ThreadCounters {
12
+ /** Number of chats in the folder. */
13
+ total?: number;
14
+ /** Number of chats in the folder with at least one unread message. */
15
+ unread_chats?: number;
16
+ }
@@ -7,6 +7,8 @@
7
7
 
8
8
  /**
9
9
  * / ProviderType defines the specific provider or protocol used for messaging.
10
+ *
11
+ * - PROVIDER_TYPE_VIBER_BM: Viber Business Messages (Infobip).
10
12
  */
11
13
  export type WebitelImApiProviderV1ProviderType =
12
14
  (typeof WebitelImApiProviderV1ProviderType)[keyof typeof WebitelImApiProviderV1ProviderType];
@@ -20,4 +22,6 @@ export const WebitelImApiProviderV1ProviderType = {
20
22
  ProviderTypeFacebook: 'PROVIDER_TYPE_FACEBOOK',
21
23
  ProviderTypeInstagram: 'PROVIDER_TYPE_INSTAGRAM',
22
24
  ProviderTypeWhatsapp: 'PROVIDER_TYPE_WHATSAPP',
25
+ ProviderTypeCustom: 'PROVIDER_TYPE_CUSTOM',
26
+ ProviderTypeViberBm: 'PROVIDER_TYPE_VIBER_BM',
23
27
  } as const;
@@ -9,6 +9,12 @@ import type { WebitelImProviderV1ProviderStatusCapabilities } from './webitelImP
9
9
  import type { WebitelImProviderV1ProviderType } from './webitelImProviderV1ProviderType';
10
10
 
11
11
  export interface WebitelImProviderV1ProviderSummary {
12
+ /**
13
+ * Public address of the channel the gate serves: the WhatsApp business
14
+ * phone number, the Facebook page name (page id when the name is unknown),
15
+ * the Viber BM sender name. Empty when the provider has none.
16
+ */
17
+ address?: string;
12
18
  /**
13
19
  * Delivery-status receipts the channel is able to produce; unset when no
14
20
  * provider adapter is registered for the channel type.
@@ -7,6 +7,8 @@
7
7
 
8
8
  /**
9
9
  * / ProviderType defines the specific provider or protocol used for messaging.
10
+ *
11
+ * - PROVIDER_TYPE_VIBER_BM: Viber Business Messages (Infobip).
10
12
  */
11
13
  export type WebitelImProviderV1ProviderType =
12
14
  (typeof WebitelImProviderV1ProviderType)[keyof typeof WebitelImProviderV1ProviderType];
@@ -21,4 +23,5 @@ export const WebitelImProviderV1ProviderType = {
21
23
  ProviderTypeInstagram: 'PROVIDER_TYPE_INSTAGRAM',
22
24
  ProviderTypeWhatsapp: 'PROVIDER_TYPE_WHATSAPP',
23
25
  ProviderTypeCustom: 'PROVIDER_TYPE_CUSTOM',
26
+ ProviderTypeViberBm: 'PROVIDER_TYPE_VIBER_BM',
24
27
  } as const;