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