@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.
- package/package.json +1 -1
- package/src/api/clients/outboundResourceGroups/outboundResourceGroups.ts +14 -12
- package/src/gen/_models/addUserAccessTokenBody.ts +2 -0
- package/src/gen/_models/addUserAccessTokenParams.ts +3 -4
- package/src/gen/_models/apiTokenExpiryWarning.ts +13 -0
- package/src/gen/_models/apiUserAccessToken.ts +2 -0
- package/src/gen/_models/apiUserWarningId.ts +2 -0
- package/src/gen/_models/apiWarningData.ts +2 -0
- package/src/gen/_models/engineSearchHistoryCallRequest.ts +1 -0
- package/src/gen/_models/engineSystemSettingName.ts +0 -1
- package/src/gen/_models/gateServiceListGatesParams.ts +7 -0
- package/src/gen/_models/gateServiceListGatesTypesItem.ts +1 -0
- package/src/gen/_models/googleProtobufAny.ts +117 -0
- package/src/gen/_models/googleProtobufNullValue.ts +3 -8
- package/src/gen/_models/googleRpcStatus.ts +23 -0
- package/src/gen/_models/index.ts +7 -4
- package/src/gen/_models/protobufNullValue.ts +3 -8
- package/src/gen/_models/searchHistoryCallParams.ts +1 -0
- package/src/gen/_models/searchSystemSettingNameItem.ts +0 -1
- package/src/gen/_models/threadManagementGetCountersParams.ts +21 -0
- package/src/gen/_models/threadManagementGetCountersTypesItem.ts +16 -0
- package/src/gen/_models/updateUserAccessToken2Body.ts +2 -0
- package/src/gen/_models/updateUserAccessTokenBody.ts +2 -0
- package/src/gen/_models/updateUserAccessTokenUpdateBody.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1Contact.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
- package/src/gen/_models/webitelImApiGatewayV1Thread.ts +7 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderType.ts +4 -0
- package/src/gen/_models/webitelImProviderV1ProviderSummary.ts +6 -0
- package/src/gen/_models/webitelImProviderV1ProviderType.ts +3 -0
- package/src/gen-wire/_models/addUserAccessTokenBody.ts +2 -0
- package/src/gen-wire/_models/addUserAccessTokenParams.ts +3 -4
- package/src/gen-wire/_models/apiTokenExpiryWarning.ts +13 -0
- package/src/gen-wire/_models/apiUserAccessToken.ts +2 -0
- package/src/gen-wire/_models/apiUserWarningId.ts +2 -0
- package/src/gen-wire/_models/apiWarningData.ts +2 -0
- package/src/gen-wire/_models/engineSearchHistoryCallRequest.ts +1 -0
- package/src/gen-wire/_models/engineSystemSettingName.ts +0 -1
- package/src/gen-wire/_models/gateServiceListGatesParams.ts +7 -0
- package/src/gen-wire/_models/gateServiceListGatesTypesItem.ts +1 -0
- package/src/gen-wire/_models/googleProtobufAny.ts +117 -0
- package/src/gen-wire/_models/googleProtobufNullValue.ts +3 -8
- package/src/gen-wire/_models/googleRpcStatus.ts +23 -0
- package/src/gen-wire/_models/index.ts +7 -4
- package/src/gen-wire/_models/protobufNullValue.ts +3 -8
- package/src/gen-wire/_models/searchHistoryCallParams.ts +1 -0
- package/src/gen-wire/_models/searchSystemSettingNameItem.ts +0 -1
- package/src/gen-wire/_models/threadManagementGetCountersParams.ts +21 -0
- package/src/gen-wire/_models/threadManagementGetCountersTypesItem.ts +16 -0
- package/src/gen-wire/_models/updateUserAccessToken2Body.ts +2 -0
- package/src/gen-wire/_models/updateUserAccessTokenBody.ts +2 -0
- package/src/gen-wire/_models/updateUserAccessTokenUpdateBody.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Contact.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +7 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
- package/src/gen-wire/_models/webitelImApiProviderV1ProviderType.ts +4 -0
- package/src/gen-wire/_models/webitelImProviderV1ProviderSummary.ts +6 -0
- package/src/gen-wire/_models/webitelImProviderV1ProviderType.ts +3 -0
- package/src/gen-wire/call-service/call-service.zod.ts +2 -0
- package/src/gen-wire/cases/cases.zod.ts +32 -7
- package/src/gen-wire/customer/customer.zod.ts +32 -7
- package/src/gen-wire/customers/customers.ts +0 -8
- package/src/gen-wire/customers/customers.zod.ts +0 -4
- package/src/gen-wire/index.ts +6 -7
- package/src/gen-wire/index.zod.ts +0 -1
- package/src/gen-wire/list-service/list-service.zod.ts +32 -7
- package/src/gen-wire/member-service/member-service.zod.ts +32 -7
- package/src/gen-wire/messages/messages.zod.ts +32 -7
- package/src/gen-wire/pdf-service/pdf-service.zod.ts +128 -28
- package/src/gen-wire/system-setting-service/system-setting-service.zod.ts +0 -8
- package/src/gen-wire/user-access-tokens/user-access-tokens.zod.ts +85 -5
- package/src/gen-wire/users/users.zod.ts +10 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.ts +6 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +96 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +21 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +449 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +18 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +150 -0
- package/src/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.ts +18 -2
- package/src/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +14 -7
- package/types/.tsbuildinfo +1 -1
- package/types/gen/_models/addUserAccessTokenBody.d.ts +2 -0
- package/types/gen/_models/addUserAccessTokenParams.d.ts +3 -4
- package/types/gen/_models/apiTokenExpiryWarning.d.ts +12 -0
- package/types/gen/_models/apiUserAccessToken.d.ts +2 -0
- package/types/gen/_models/apiUserWarningId.d.ts +2 -0
- package/types/gen/_models/apiWarningData.d.ts +2 -0
- package/types/gen/_models/engineSearchHistoryCallRequest.d.ts +1 -0
- package/types/gen/_models/engineSystemSettingName.d.ts +0 -1
- package/types/gen/_models/gateServiceListGatesParams.d.ts +7 -0
- package/types/gen/_models/gateServiceListGatesTypesItem.d.ts +1 -0
- package/types/gen/_models/googleProtobufAny.d.ts +117 -0
- package/types/gen/_models/googleProtobufNullValue.d.ts +3 -8
- package/types/gen/_models/googleRpcStatus.d.ts +23 -0
- package/types/gen/_models/index.d.ts +7 -4
- package/types/gen/_models/protobufNullValue.d.ts +3 -8
- package/types/gen/_models/searchHistoryCallParams.d.ts +1 -0
- package/types/gen/_models/searchSystemSettingNameItem.d.ts +0 -1
- package/types/gen/_models/threadManagementGetCountersParams.d.ts +20 -0
- package/types/gen/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
- package/types/gen/_models/updateUserAccessToken2Body.d.ts +2 -0
- package/types/gen/_models/updateUserAccessTokenBody.d.ts +2 -0
- package/types/gen/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
- package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
- package/types/gen/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
- package/types/gen/_models/webitelImProviderV1ProviderType.d.ts +3 -0
- package/types/gen-wire/_models/addUserAccessTokenBody.d.ts +2 -0
- package/types/gen-wire/_models/addUserAccessTokenParams.d.ts +3 -4
- package/types/gen-wire/_models/apiTokenExpiryWarning.d.ts +12 -0
- package/types/gen-wire/_models/apiUserAccessToken.d.ts +2 -0
- package/types/gen-wire/_models/apiUserWarningId.d.ts +2 -0
- package/types/gen-wire/_models/apiWarningData.d.ts +2 -0
- package/types/gen-wire/_models/engineSearchHistoryCallRequest.d.ts +1 -0
- package/types/gen-wire/_models/engineSystemSettingName.d.ts +0 -1
- package/types/gen-wire/_models/gateServiceListGatesParams.d.ts +7 -0
- package/types/gen-wire/_models/gateServiceListGatesTypesItem.d.ts +1 -0
- package/types/gen-wire/_models/googleProtobufAny.d.ts +117 -0
- package/types/gen-wire/_models/googleProtobufNullValue.d.ts +3 -8
- package/types/gen-wire/_models/googleRpcStatus.d.ts +23 -0
- package/types/gen-wire/_models/index.d.ts +7 -4
- package/types/gen-wire/_models/protobufNullValue.d.ts +3 -8
- package/types/gen-wire/_models/searchHistoryCallParams.d.ts +1 -0
- package/types/gen-wire/_models/searchSystemSettingNameItem.d.ts +0 -1
- package/types/gen-wire/_models/threadManagementGetCountersParams.d.ts +20 -0
- package/types/gen-wire/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
- package/types/gen-wire/_models/updateUserAccessToken2Body.d.ts +2 -0
- package/types/gen-wire/_models/updateUserAccessTokenBody.d.ts +2 -0
- package/types/gen-wire/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
- package/types/gen-wire/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
- package/types/gen-wire/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
- package/types/gen-wire/_models/webitelImProviderV1ProviderType.d.ts +3 -0
- package/types/gen-wire/call-service/call-service.zod.d.ts +2 -0
- package/types/gen-wire/customers/customers.d.ts +1 -3
- package/types/gen-wire/customers/customers.zod.d.ts +0 -3
- package/types/gen-wire/index.d.ts +2 -4
- package/types/gen-wire/index.zod.d.ts +0 -1
- package/types/gen-wire/system-setting-service/system-setting-service.zod.d.ts +0 -8
- package/types/gen-wire/user-access-tokens/user-access-tokens.zod.d.ts +46 -0
- package/types/gen-wire/users/users.zod.d.ts +8 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.d.ts +1 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +16 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +3 -1
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +124 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +3 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +33 -0
- package/types/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.d.ts +4 -0
- package/types/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +7 -0
- package/src/gen/_models/apiServerInfoResponse.ts +0 -10
- package/src/gen/_models/engineSchemaVersion.ts +0 -17
- package/src/gen/_models/engineSearchSchemaVersionResponse.ts +0 -12
- package/src/gen/_models/searchSchemaVersionParams.ts +0 -14
- package/src/gen-wire/_models/apiServerInfoResponse.ts +0 -10
- package/src/gen-wire/_models/engineSchemaVersion.ts +0 -16
- package/src/gen-wire/_models/engineSearchSchemaVersionResponse.ts +0 -12
- package/src/gen-wire/_models/searchSchemaVersionParams.ts +0 -14
- package/src/gen-wire/schema-version-service/schema-version-service.ts +0 -46
- package/src/gen-wire/schema-version-service/schema-version-service.zod.ts +0 -40
- package/types/gen/_models/apiServerInfoResponse.d.ts +0 -9
- package/types/gen/_models/engineSchemaVersion.d.ts +0 -16
- package/types/gen/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
- package/types/gen/_models/searchSchemaVersionParams.d.ts +0 -13
- package/types/gen-wire/_models/apiServerInfoResponse.d.ts +0 -9
- package/types/gen-wire/_models/engineSchemaVersion.d.ts +0 -15
- package/types/gen-wire/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
- package/types/gen-wire/_models/searchSchemaVersionParams.d.ts +0 -13
- package/types/gen-wire/schema-version-service/schema-version-service.d.ts +0 -13
- package/types/gen-wire/schema-version-service/schema-version-service.zod.d.ts +0 -31
|
@@ -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
|
-
|
|
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
|
}),
|
package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.ts
CHANGED
|
@@ -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()
|
|
@@ -143,6 +143,12 @@ export const MessageHistorySearchMessagesResponse = zod
|
|
|
143
143
|
.string()
|
|
144
144
|
.optional()
|
|
145
145
|
.describe('Display name of the contact.'),
|
|
146
|
+
phone: zod
|
|
147
|
+
.string()
|
|
148
|
+
.optional()
|
|
149
|
+
.describe(
|
|
150
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
151
|
+
),
|
|
146
152
|
sub: zod
|
|
147
153
|
.string()
|
|
148
154
|
.optional()
|
|
@@ -322,6 +328,12 @@ export const MessageHistorySearchMessagesResponse = zod
|
|
|
322
328
|
.string()
|
|
323
329
|
.optional()
|
|
324
330
|
.describe('Display name of the contact.'),
|
|
331
|
+
phone: zod
|
|
332
|
+
.string()
|
|
333
|
+
.optional()
|
|
334
|
+
.describe(
|
|
335
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
336
|
+
),
|
|
325
337
|
sub: zod
|
|
326
338
|
.string()
|
|
327
339
|
.optional()
|
|
@@ -837,6 +849,12 @@ export const MessageHistorySearchMessagesResponse = zod
|
|
|
837
849
|
.string()
|
|
838
850
|
.optional()
|
|
839
851
|
.describe('Display name of the contact.'),
|
|
852
|
+
phone: zod
|
|
853
|
+
.string()
|
|
854
|
+
.optional()
|
|
855
|
+
.describe(
|
|
856
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
857
|
+
),
|
|
840
858
|
sub: zod
|
|
841
859
|
.string()
|
|
842
860
|
.optional()
|
|
@@ -1006,6 +1024,12 @@ export const MessageHistorySearchMessagesResponse = zod
|
|
|
1006
1024
|
.string()
|
|
1007
1025
|
.optional()
|
|
1008
1026
|
.describe('Display name of the contact.'),
|
|
1027
|
+
phone: zod
|
|
1028
|
+
.string()
|
|
1029
|
+
.optional()
|
|
1030
|
+
.describe(
|
|
1031
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1032
|
+
),
|
|
1009
1033
|
sub: zod
|
|
1010
1034
|
.string()
|
|
1011
1035
|
.optional()
|
|
@@ -1136,6 +1160,12 @@ export const MessageHistorySearchMessagesResponse = zod
|
|
|
1136
1160
|
.string()
|
|
1137
1161
|
.optional()
|
|
1138
1162
|
.describe('Display name of the contact.'),
|
|
1163
|
+
phone: zod
|
|
1164
|
+
.string()
|
|
1165
|
+
.optional()
|
|
1166
|
+
.describe(
|
|
1167
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1168
|
+
),
|
|
1139
1169
|
sub: zod
|
|
1140
1170
|
.string()
|
|
1141
1171
|
.optional()
|
|
@@ -1356,6 +1386,12 @@ export const MessageHistoryGetMessageRevisionsResponse = zod.object({
|
|
|
1356
1386
|
.string()
|
|
1357
1387
|
.optional()
|
|
1358
1388
|
.describe('Display name of the contact.'),
|
|
1389
|
+
phone: zod
|
|
1390
|
+
.string()
|
|
1391
|
+
.optional()
|
|
1392
|
+
.describe(
|
|
1393
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1394
|
+
),
|
|
1359
1395
|
sub: zod
|
|
1360
1396
|
.string()
|
|
1361
1397
|
.optional()
|
|
@@ -1582,6 +1618,12 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
|
|
|
1582
1618
|
.string()
|
|
1583
1619
|
.optional()
|
|
1584
1620
|
.describe('Display name of the contact.'),
|
|
1621
|
+
phone: zod
|
|
1622
|
+
.string()
|
|
1623
|
+
.optional()
|
|
1624
|
+
.describe(
|
|
1625
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1626
|
+
),
|
|
1585
1627
|
sub: zod
|
|
1586
1628
|
.string()
|
|
1587
1629
|
.optional()
|
|
@@ -1761,6 +1803,12 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
|
|
|
1761
1803
|
.string()
|
|
1762
1804
|
.optional()
|
|
1763
1805
|
.describe('Display name of the contact.'),
|
|
1806
|
+
phone: zod
|
|
1807
|
+
.string()
|
|
1808
|
+
.optional()
|
|
1809
|
+
.describe(
|
|
1810
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1811
|
+
),
|
|
1764
1812
|
sub: zod
|
|
1765
1813
|
.string()
|
|
1766
1814
|
.optional()
|
|
@@ -2276,6 +2324,12 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
|
|
|
2276
2324
|
.string()
|
|
2277
2325
|
.optional()
|
|
2278
2326
|
.describe('Display name of the contact.'),
|
|
2327
|
+
phone: zod
|
|
2328
|
+
.string()
|
|
2329
|
+
.optional()
|
|
2330
|
+
.describe(
|
|
2331
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
2332
|
+
),
|
|
2279
2333
|
sub: zod
|
|
2280
2334
|
.string()
|
|
2281
2335
|
.optional()
|
|
@@ -2445,6 +2499,12 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
|
|
|
2445
2499
|
.string()
|
|
2446
2500
|
.optional()
|
|
2447
2501
|
.describe('Display name of the contact.'),
|
|
2502
|
+
phone: zod
|
|
2503
|
+
.string()
|
|
2504
|
+
.optional()
|
|
2505
|
+
.describe(
|
|
2506
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
2507
|
+
),
|
|
2448
2508
|
sub: zod
|
|
2449
2509
|
.string()
|
|
2450
2510
|
.optional()
|
|
@@ -2575,6 +2635,12 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
|
|
|
2575
2635
|
.string()
|
|
2576
2636
|
.optional()
|
|
2577
2637
|
.describe('Display name of the contact.'),
|
|
2638
|
+
phone: zod
|
|
2639
|
+
.string()
|
|
2640
|
+
.optional()
|
|
2641
|
+
.describe(
|
|
2642
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
2643
|
+
),
|
|
2578
2644
|
sub: zod
|
|
2579
2645
|
.string()
|
|
2580
2646
|
.optional()
|
|
@@ -2845,6 +2911,12 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
|
|
|
2845
2911
|
.string()
|
|
2846
2912
|
.optional()
|
|
2847
2913
|
.describe('Display name of the contact.'),
|
|
2914
|
+
phone: zod
|
|
2915
|
+
.string()
|
|
2916
|
+
.optional()
|
|
2917
|
+
.describe(
|
|
2918
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
2919
|
+
),
|
|
2848
2920
|
sub: zod
|
|
2849
2921
|
.string()
|
|
2850
2922
|
.optional()
|
|
@@ -3024,6 +3096,12 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
|
|
|
3024
3096
|
.string()
|
|
3025
3097
|
.optional()
|
|
3026
3098
|
.describe('Display name of the contact.'),
|
|
3099
|
+
phone: zod
|
|
3100
|
+
.string()
|
|
3101
|
+
.optional()
|
|
3102
|
+
.describe(
|
|
3103
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3104
|
+
),
|
|
3027
3105
|
sub: zod
|
|
3028
3106
|
.string()
|
|
3029
3107
|
.optional()
|
|
@@ -3539,6 +3617,12 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
|
|
|
3539
3617
|
.string()
|
|
3540
3618
|
.optional()
|
|
3541
3619
|
.describe('Display name of the contact.'),
|
|
3620
|
+
phone: zod
|
|
3621
|
+
.string()
|
|
3622
|
+
.optional()
|
|
3623
|
+
.describe(
|
|
3624
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3625
|
+
),
|
|
3542
3626
|
sub: zod
|
|
3543
3627
|
.string()
|
|
3544
3628
|
.optional()
|
|
@@ -3708,6 +3792,12 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
|
|
|
3708
3792
|
.string()
|
|
3709
3793
|
.optional()
|
|
3710
3794
|
.describe('Display name of the contact.'),
|
|
3795
|
+
phone: zod
|
|
3796
|
+
.string()
|
|
3797
|
+
.optional()
|
|
3798
|
+
.describe(
|
|
3799
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3800
|
+
),
|
|
3711
3801
|
sub: zod
|
|
3712
3802
|
.string()
|
|
3713
3803
|
.optional()
|
|
@@ -3838,6 +3928,12 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
|
|
|
3838
3928
|
.string()
|
|
3839
3929
|
.optional()
|
|
3840
3930
|
.describe('Display name of the contact.'),
|
|
3931
|
+
phone: zod
|
|
3932
|
+
.string()
|
|
3933
|
+
.optional()
|
|
3934
|
+
.describe(
|
|
3935
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3936
|
+
),
|
|
3841
3937
|
sub: zod
|
|
3842
3938
|
.string()
|
|
3843
3939
|
.optional()
|
|
@@ -9,12 +9,14 @@ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
|
9
9
|
import axios from '../../api/axios/genClient';
|
|
10
10
|
|
|
11
11
|
import type {
|
|
12
|
+
ThreadManagementGetCountersParams,
|
|
12
13
|
ThreadManagementGetParams,
|
|
13
14
|
ThreadManagementRemoveMemberParams,
|
|
14
15
|
ThreadManagementSearchLeftParams,
|
|
15
16
|
ThreadManagementSearchParams,
|
|
16
17
|
ThreadManagementSearchVariablesParams,
|
|
17
18
|
WebitelImApiGatewayV1AddMemberResponse,
|
|
19
|
+
WebitelImApiGatewayV1GetCountersResponse,
|
|
18
20
|
WebitelImApiGatewayV1GetUnreadSummaryResponse,
|
|
19
21
|
WebitelImApiGatewayV1HandBackToBotResponse,
|
|
20
22
|
WebitelImApiGatewayV1RemoveMemberResponse,
|
|
@@ -73,6 +75,22 @@ export const // --- title start
|
|
|
73
75
|
);
|
|
74
76
|
};
|
|
75
77
|
/**
|
|
78
|
+
* @summary Returns the caller's chat counters for the chat panel tabs: every active
|
|
79
|
+
chat, the active chats outside Snoozed, and the snoozed chats.
|
|
80
|
+
*/
|
|
81
|
+
const threadManagementGetCounters = (
|
|
82
|
+
params?: ThreadManagementGetCountersParams,
|
|
83
|
+
options?: AxiosRequestConfig,
|
|
84
|
+
): Promise<AxiosResponse<WebitelImApiGatewayV1GetCountersResponse>> => {
|
|
85
|
+
return axiosInstance.get(`/v1/threads/counters`, {
|
|
86
|
+
...options,
|
|
87
|
+
params: {
|
|
88
|
+
...params,
|
|
89
|
+
...options?.params,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
76
94
|
* @summary Search threads that the caller has left from
|
|
77
95
|
*/
|
|
78
96
|
const threadManagementSearchLeft = (
|
|
@@ -271,6 +289,7 @@ Supports pagination and field projection.
|
|
|
271
289
|
return {
|
|
272
290
|
threadManagementSearch,
|
|
273
291
|
threadManagementCreate,
|
|
292
|
+
threadManagementGetCounters,
|
|
274
293
|
threadManagementSearchLeft,
|
|
275
294
|
threadManagementGetUnreadSummary,
|
|
276
295
|
threadManagementGet,
|
|
@@ -290,6 +309,8 @@ export type ThreadManagementSearchResult =
|
|
|
290
309
|
AxiosResponse<WebitelImApiGatewayV1SearchThreadResponse>;
|
|
291
310
|
export type ThreadManagementCreateResult =
|
|
292
311
|
AxiosResponse<WebitelImApiGatewayV1ThreadManagementCreateResponse>;
|
|
312
|
+
export type ThreadManagementGetCountersResult =
|
|
313
|
+
AxiosResponse<WebitelImApiGatewayV1GetCountersResponse>;
|
|
293
314
|
export type ThreadManagementSearchLeftResult =
|
|
294
315
|
AxiosResponse<WebitelImApiGatewayV1SearchLeftResponse>;
|
|
295
316
|
export type ThreadManagementGetUnreadSummaryResult =
|