@webitel/api-services 26.12.6 → 26.12.7
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/gen/_models/index.ts +3 -14
- package/src/gen/_models/listSpacesParams.ts +8 -0
- package/src/gen/_models/listSpacesState.ts +15 -0
- package/src/gen/_models/threadManagementSearchLeftParams.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1Thread.ts +8 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadChannelType.ts +4 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadQueue.ts +16 -0
- package/src/gen/_models/webitelKbArticle.ts +2 -0
- package/src/gen/_models/webitelKbInputArticle.ts +2 -0
- package/src/gen/_models/webitelKbInputSpace.ts +7 -3
- package/src/gen/_models/webitelKbSpace.ts +7 -1
- package/src/gen/_models/webitelKbSpaceState.ts +21 -0
- package/src/gen-wire/_models/index.ts +3 -14
- package/src/gen-wire/_models/listSpacesParams.ts +8 -0
- package/src/gen-wire/_models/listSpacesState.ts +15 -0
- package/src/gen-wire/_models/threadManagementSearchLeftParams.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +8 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.ts +4 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadQueue.ts +16 -0
- package/src/gen-wire/_models/webitelKbArticle.ts +2 -0
- package/src/gen-wire/_models/webitelKbInputArticle.ts +2 -0
- package/src/gen-wire/_models/webitelKbInputSpace.ts +7 -3
- package/src/gen-wire/_models/webitelKbSpace.ts +7 -1
- package/src/gen-wire/_models/webitelKbSpaceState.ts +21 -0
- package/src/gen-wire/articles/articles.zod.ts +58 -0
- package/src/gen-wire/devices/devices.ts +0 -18
- package/src/gen-wire/devices/devices.zod.ts +0 -44
- package/src/gen-wire/domains/domains.ts +0 -86
- package/src/gen-wire/domains/domains.zod.ts +0 -192
- package/src/gen-wire/email-profile-service/email-profile-service.ts +0 -13
- package/src/gen-wire/email-profile-service/email-profile-service.zod.ts +0 -11
- package/src/gen-wire/index.ts +11 -25
- package/src/gen-wire/spaces/spaces.zod.ts +123 -21
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +58 -6
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +14 -1
- package/types/.tsbuildinfo +1 -1
- package/types/gen/_models/index.d.ts +3 -14
- package/types/gen/_models/listSpacesParams.d.ts +8 -0
- package/types/gen/_models/listSpacesState.d.ts +12 -0
- package/types/gen/_models/threadManagementSearchLeftParams.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +4 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadQueue.d.ts +15 -0
- package/types/gen/_models/webitelKbArticle.d.ts +2 -0
- package/types/gen/_models/webitelKbInputArticle.d.ts +2 -0
- package/types/gen/_models/webitelKbInputSpace.d.ts +7 -3
- package/types/gen/_models/webitelKbSpace.d.ts +7 -1
- package/types/gen/_models/webitelKbSpaceState.d.ts +18 -0
- package/types/gen-wire/_models/index.d.ts +3 -14
- package/types/gen-wire/_models/listSpacesParams.d.ts +8 -0
- package/types/gen-wire/_models/listSpacesState.d.ts +12 -0
- package/types/gen-wire/_models/threadManagementSearchLeftParams.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +4 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadQueue.d.ts +15 -0
- package/types/gen-wire/_models/webitelKbArticle.d.ts +2 -0
- package/types/gen-wire/_models/webitelKbInputArticle.d.ts +2 -0
- package/types/gen-wire/_models/webitelKbInputSpace.d.ts +7 -3
- package/types/gen-wire/_models/webitelKbSpace.d.ts +7 -1
- package/types/gen-wire/_models/webitelKbSpaceState.d.ts +18 -0
- package/types/gen-wire/articles/articles.zod.d.ts +13 -0
- package/types/gen-wire/devices/devices.d.ts +1 -3
- package/types/gen-wire/devices/devices.zod.d.ts +0 -32
- package/types/gen-wire/domains/domains.d.ts +1 -13
- package/types/gen-wire/domains/domains.zod.d.ts +0 -160
- package/types/gen-wire/email-profile-service/email-profile-service.d.ts +1 -3
- package/types/gen-wire/email-profile-service/email-profile-service.zod.d.ts +0 -9
- package/types/gen-wire/index.d.ts +3 -3
- package/types/gen-wire/spaces/spaces.zod.d.ts +60 -3
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +32 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +8 -0
- package/src/gen/_models/apiCreateDomainRequest.ts +0 -13
- package/src/gen/_models/apiCreateDomainResponse.ts +0 -10
- package/src/gen/_models/apiListRegistrationsResponse.ts +0 -14
- package/src/gen/_models/apiRegistration.ts +0 -22
- package/src/gen/_models/apiSearchDomainsResponse.ts +0 -11
- package/src/gen/_models/apiUpdateDomainResponse.ts +0 -11
- package/src/gen/_models/deleteDomain2Params.ts +0 -10
- package/src/gen/_models/domainsUpdateDomainBody.ts +0 -11
- package/src/gen/_models/domainsUpdateDomainBodyBody.ts +0 -9
- package/src/gen/_models/domainsUpdateDomainBodyDomain.ts +0 -23
- package/src/gen/_models/engineTestEmailProfileResponse.ts +0 -10
- package/src/gen/_models/listRegistrationsParams.ts +0 -21
- package/src/gen/_models/readDomain2Params.ts +0 -10
- package/src/gen/_models/searchDomainsParams.ts +0 -20
- package/src/gen-wire/_models/apiCreateDomainRequest.ts +0 -13
- package/src/gen-wire/_models/apiCreateDomainResponse.ts +0 -10
- package/src/gen-wire/_models/apiListRegistrationsResponse.ts +0 -14
- package/src/gen-wire/_models/apiRegistration.ts +0 -22
- package/src/gen-wire/_models/apiSearchDomainsResponse.ts +0 -11
- package/src/gen-wire/_models/apiUpdateDomainResponse.ts +0 -11
- package/src/gen-wire/_models/deleteDomain2Params.ts +0 -10
- package/src/gen-wire/_models/domainsUpdateDomainBody.ts +0 -11
- package/src/gen-wire/_models/domainsUpdateDomainBodyBody.ts +0 -9
- package/src/gen-wire/_models/domainsUpdateDomainBodyDomain.ts +0 -23
- package/src/gen-wire/_models/engineTestEmailProfileResponse.ts +0 -10
- package/src/gen-wire/_models/listRegistrationsParams.ts +0 -21
- package/src/gen-wire/_models/readDomain2Params.ts +0 -10
- package/src/gen-wire/_models/searchDomainsParams.ts +0 -20
- package/types/gen/_models/apiCreateDomainRequest.d.ts +0 -12
- package/types/gen/_models/apiCreateDomainResponse.d.ts +0 -9
- package/types/gen/_models/apiListRegistrationsResponse.d.ts +0 -13
- package/types/gen/_models/apiRegistration.d.ts +0 -21
- package/types/gen/_models/apiSearchDomainsResponse.d.ts +0 -10
- package/types/gen/_models/apiUpdateDomainResponse.d.ts +0 -10
- package/types/gen/_models/deleteDomain2Params.d.ts +0 -9
- package/types/gen/_models/domainsUpdateDomainBody.d.ts +0 -10
- package/types/gen/_models/domainsUpdateDomainBodyBody.d.ts +0 -8
- package/types/gen/_models/domainsUpdateDomainBodyDomain.d.ts +0 -22
- package/types/gen/_models/engineTestEmailProfileResponse.d.ts +0 -9
- package/types/gen/_models/listRegistrationsParams.d.ts +0 -20
- package/types/gen/_models/readDomain2Params.d.ts +0 -9
- package/types/gen/_models/searchDomainsParams.d.ts +0 -19
- package/types/gen-wire/_models/apiCreateDomainRequest.d.ts +0 -12
- package/types/gen-wire/_models/apiCreateDomainResponse.d.ts +0 -9
- package/types/gen-wire/_models/apiListRegistrationsResponse.d.ts +0 -13
- package/types/gen-wire/_models/apiRegistration.d.ts +0 -21
- package/types/gen-wire/_models/apiSearchDomainsResponse.d.ts +0 -10
- package/types/gen-wire/_models/apiUpdateDomainResponse.d.ts +0 -10
- package/types/gen-wire/_models/deleteDomain2Params.d.ts +0 -9
- package/types/gen-wire/_models/domainsUpdateDomainBody.d.ts +0 -10
- package/types/gen-wire/_models/domainsUpdateDomainBodyBody.d.ts +0 -8
- package/types/gen-wire/_models/domainsUpdateDomainBodyDomain.d.ts +0 -22
- package/types/gen-wire/_models/engineTestEmailProfileResponse.d.ts +0 -9
- package/types/gen-wire/_models/listRegistrationsParams.d.ts +0 -20
- package/types/gen-wire/_models/readDomain2Params.d.ts +0 -9
- package/types/gen-wire/_models/searchDomainsParams.d.ts +0 -19
|
@@ -1025,6 +1025,10 @@ export const ListArticlesResponse = zod
|
|
|
1025
1025
|
.string()
|
|
1026
1026
|
.optional()
|
|
1027
1027
|
.describe('Concurrency token encoding id and ver.'),
|
|
1028
|
+
home: zod
|
|
1029
|
+
.boolean()
|
|
1030
|
+
.optional()
|
|
1031
|
+
.describe('Whether the article is the home page of its space.'),
|
|
1028
1032
|
id: zod
|
|
1029
1033
|
.string()
|
|
1030
1034
|
.optional()
|
|
@@ -1162,6 +1166,12 @@ export const CreateArticleBody = zod
|
|
|
1162
1166
|
.describe(
|
|
1163
1167
|
'Editor document; serialized server-side to markdown/plaintext/tsvector.',
|
|
1164
1168
|
),
|
|
1169
|
+
home: zod
|
|
1170
|
+
.boolean()
|
|
1171
|
+
.optional()
|
|
1172
|
+
.describe(
|
|
1173
|
+
'Creates the article as the home page of its space; create only.',
|
|
1174
|
+
),
|
|
1165
1175
|
parent_id: zod
|
|
1166
1176
|
.string()
|
|
1167
1177
|
.optional()
|
|
@@ -1214,6 +1224,10 @@ export const CreateArticleResponse = zod
|
|
|
1214
1224
|
.string()
|
|
1215
1225
|
.optional()
|
|
1216
1226
|
.describe('Concurrency token encoding id and ver.'),
|
|
1227
|
+
home: zod
|
|
1228
|
+
.boolean()
|
|
1229
|
+
.optional()
|
|
1230
|
+
.describe('Whether the article is the home page of its space.'),
|
|
1217
1231
|
id: zod.string().optional().describe('Unique identifier of the article.'),
|
|
1218
1232
|
index_state: zod
|
|
1219
1233
|
.enum([
|
|
@@ -1352,6 +1366,10 @@ export const DeleteArticleResponse = zod
|
|
|
1352
1366
|
.string()
|
|
1353
1367
|
.optional()
|
|
1354
1368
|
.describe('Concurrency token encoding id and ver.'),
|
|
1369
|
+
home: zod
|
|
1370
|
+
.boolean()
|
|
1371
|
+
.optional()
|
|
1372
|
+
.describe('Whether the article is the home page of its space.'),
|
|
1355
1373
|
id: zod.string().optional().describe('Unique identifier of the article.'),
|
|
1356
1374
|
index_state: zod
|
|
1357
1375
|
.enum([
|
|
@@ -1497,6 +1515,10 @@ export const LocateArticleResponse = zod
|
|
|
1497
1515
|
.string()
|
|
1498
1516
|
.optional()
|
|
1499
1517
|
.describe('Concurrency token encoding id and ver.'),
|
|
1518
|
+
home: zod
|
|
1519
|
+
.boolean()
|
|
1520
|
+
.optional()
|
|
1521
|
+
.describe('Whether the article is the home page of its space.'),
|
|
1500
1522
|
id: zod.string().optional().describe('Unique identifier of the article.'),
|
|
1501
1523
|
index_state: zod
|
|
1502
1524
|
.enum([
|
|
@@ -1632,6 +1654,12 @@ export const UpdateArticle2Body = zod
|
|
|
1632
1654
|
.describe(
|
|
1633
1655
|
'Editor document; serialized server-side to markdown/plaintext/tsvector.',
|
|
1634
1656
|
),
|
|
1657
|
+
home: zod
|
|
1658
|
+
.boolean()
|
|
1659
|
+
.optional()
|
|
1660
|
+
.describe(
|
|
1661
|
+
'Creates the article as the home page of its space; create only.',
|
|
1662
|
+
),
|
|
1635
1663
|
parent_id: zod
|
|
1636
1664
|
.string()
|
|
1637
1665
|
.optional()
|
|
@@ -1684,6 +1712,10 @@ export const UpdateArticle2Response = zod
|
|
|
1684
1712
|
.string()
|
|
1685
1713
|
.optional()
|
|
1686
1714
|
.describe('Concurrency token encoding id and ver.'),
|
|
1715
|
+
home: zod
|
|
1716
|
+
.boolean()
|
|
1717
|
+
.optional()
|
|
1718
|
+
.describe('Whether the article is the home page of its space.'),
|
|
1687
1719
|
id: zod.string().optional().describe('Unique identifier of the article.'),
|
|
1688
1720
|
index_state: zod
|
|
1689
1721
|
.enum([
|
|
@@ -1819,6 +1851,12 @@ export const UpdateArticleBody = zod
|
|
|
1819
1851
|
.describe(
|
|
1820
1852
|
'Editor document; serialized server-side to markdown/plaintext/tsvector.',
|
|
1821
1853
|
),
|
|
1854
|
+
home: zod
|
|
1855
|
+
.boolean()
|
|
1856
|
+
.optional()
|
|
1857
|
+
.describe(
|
|
1858
|
+
'Creates the article as the home page of its space; create only.',
|
|
1859
|
+
),
|
|
1822
1860
|
parent_id: zod
|
|
1823
1861
|
.string()
|
|
1824
1862
|
.optional()
|
|
@@ -1871,6 +1909,10 @@ export const UpdateArticleResponse = zod
|
|
|
1871
1909
|
.string()
|
|
1872
1910
|
.optional()
|
|
1873
1911
|
.describe('Concurrency token encoding id and ver.'),
|
|
1912
|
+
home: zod
|
|
1913
|
+
.boolean()
|
|
1914
|
+
.optional()
|
|
1915
|
+
.describe('Whether the article is the home page of its space.'),
|
|
1874
1916
|
id: zod.string().optional().describe('Unique identifier of the article.'),
|
|
1875
1917
|
index_state: zod
|
|
1876
1918
|
.enum([
|
|
@@ -2018,6 +2060,10 @@ export const MoveArticleResponse = zod
|
|
|
2018
2060
|
.string()
|
|
2019
2061
|
.optional()
|
|
2020
2062
|
.describe('Concurrency token encoding id and ver.'),
|
|
2063
|
+
home: zod
|
|
2064
|
+
.boolean()
|
|
2065
|
+
.optional()
|
|
2066
|
+
.describe('Whether the article is the home page of its space.'),
|
|
2021
2067
|
id: zod.string().optional().describe('Unique identifier of the article.'),
|
|
2022
2068
|
index_state: zod
|
|
2023
2069
|
.enum([
|
|
@@ -2156,6 +2202,10 @@ export const ReindexArticleResponse = zod
|
|
|
2156
2202
|
.string()
|
|
2157
2203
|
.optional()
|
|
2158
2204
|
.describe('Concurrency token encoding id and ver.'),
|
|
2205
|
+
home: zod
|
|
2206
|
+
.boolean()
|
|
2207
|
+
.optional()
|
|
2208
|
+
.describe('Whether the article is the home page of its space.'),
|
|
2159
2209
|
id: zod.string().optional().describe('Unique identifier of the article.'),
|
|
2160
2210
|
index_state: zod
|
|
2161
2211
|
.enum([
|
|
@@ -2298,6 +2348,10 @@ export const ListAncestorsResponse = zod
|
|
|
2298
2348
|
.string()
|
|
2299
2349
|
.optional()
|
|
2300
2350
|
.describe('Concurrency token encoding id and ver.'),
|
|
2351
|
+
home: zod
|
|
2352
|
+
.boolean()
|
|
2353
|
+
.optional()
|
|
2354
|
+
.describe('Whether the article is the home page of its space.'),
|
|
2301
2355
|
id: zod
|
|
2302
2356
|
.string()
|
|
2303
2357
|
.optional()
|
|
@@ -2455,6 +2509,10 @@ export const ListChildrenResponse = zod
|
|
|
2455
2509
|
.string()
|
|
2456
2510
|
.optional()
|
|
2457
2511
|
.describe('Concurrency token encoding id and ver.'),
|
|
2512
|
+
home: zod
|
|
2513
|
+
.boolean()
|
|
2514
|
+
.optional()
|
|
2515
|
+
.describe('Whether the article is the home page of its space.'),
|
|
2458
2516
|
id: zod
|
|
2459
2517
|
.string()
|
|
2460
2518
|
.optional()
|
|
@@ -13,13 +13,11 @@ import type {
|
|
|
13
13
|
ApiDeleteDeviceResponse,
|
|
14
14
|
ApiDevice,
|
|
15
15
|
ApiDeviceAuditResponse,
|
|
16
|
-
ApiListRegistrationsResponse,
|
|
17
16
|
ApiReadDeviceResponse,
|
|
18
17
|
ApiSearchDeviceResponse,
|
|
19
18
|
ApiUpdateDeviceResponse,
|
|
20
19
|
DeleteDevice2Params,
|
|
21
20
|
DeleteDeviceParams,
|
|
22
|
-
ListRegistrationsParams,
|
|
23
21
|
ReadDeviceParams,
|
|
24
22
|
SearchDeviceAuditParams,
|
|
25
23
|
SearchDeviceParams,
|
|
@@ -97,19 +95,6 @@ export const // --- title start
|
|
|
97
95
|
},
|
|
98
96
|
});
|
|
99
97
|
};
|
|
100
|
-
const listRegistrations = (
|
|
101
|
-
deviceId: string,
|
|
102
|
-
params?: ListRegistrationsParams,
|
|
103
|
-
options?: AxiosRequestConfig,
|
|
104
|
-
): Promise<AxiosResponse<ApiListRegistrationsResponse>> => {
|
|
105
|
-
return axiosInstance.get(`/devices/${deviceId}/registered`, {
|
|
106
|
-
...options,
|
|
107
|
-
params: {
|
|
108
|
-
...params,
|
|
109
|
-
...options?.params,
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
98
|
/**
|
|
114
99
|
* @summary ----- Details (1:M) ----------------------------------------------
|
|
115
100
|
*/
|
|
@@ -160,7 +145,6 @@ export const // --- title start
|
|
|
160
145
|
createDevice,
|
|
161
146
|
updateDevice2,
|
|
162
147
|
updateDevice,
|
|
163
|
-
listRegistrations,
|
|
164
148
|
searchDeviceAudit,
|
|
165
149
|
deleteDevice,
|
|
166
150
|
readDevice,
|
|
@@ -171,8 +155,6 @@ export type SearchDeviceResult = AxiosResponse<ApiSearchDeviceResponse>;
|
|
|
171
155
|
export type CreateDeviceResult = AxiosResponse<ApiCreateDeviceResponse>;
|
|
172
156
|
export type UpdateDevice2Result = AxiosResponse<ApiUpdateDeviceResponse>;
|
|
173
157
|
export type UpdateDeviceResult = AxiosResponse<ApiUpdateDeviceResponse>;
|
|
174
|
-
export type ListRegistrationsResult =
|
|
175
|
-
AxiosResponse<ApiListRegistrationsResponse>;
|
|
176
158
|
export type SearchDeviceAuditResult = AxiosResponse<ApiDeviceAuditResponse>;
|
|
177
159
|
export type DeleteDeviceResult = AxiosResponse<ApiDeleteDeviceResponse>;
|
|
178
160
|
export type ReadDeviceResult = AxiosResponse<ApiReadDeviceResponse>;
|
|
@@ -480,50 +480,6 @@ export const UpdateDeviceResponse = zod.object({
|
|
|
480
480
|
.optional(),
|
|
481
481
|
});
|
|
482
482
|
|
|
483
|
-
export const ListRegistrationsParams = zod.object({
|
|
484
|
-
'device.id': zod.string().describe('Object ID'),
|
|
485
|
-
});
|
|
486
|
-
|
|
487
|
-
export const ListRegistrationsQueryParams = zod.object({
|
|
488
|
-
'user.id': zod.string().optional().describe('Object ID'),
|
|
489
|
-
'user.name': zod.string().optional().describe('Display Name'),
|
|
490
|
-
'device.name': zod.string().optional().describe('Display Name'),
|
|
491
|
-
});
|
|
492
|
-
|
|
493
|
-
export const ListRegistrationsResponse = zod.object({
|
|
494
|
-
items: zod
|
|
495
|
-
.array(
|
|
496
|
-
zod.object({
|
|
497
|
-
callid: zod.string().optional(),
|
|
498
|
-
contact: zod.string().optional(),
|
|
499
|
-
device: zod
|
|
500
|
-
.object({
|
|
501
|
-
id: zod.string().optional(),
|
|
502
|
-
name: zod.string().optional(),
|
|
503
|
-
})
|
|
504
|
-
.optional(),
|
|
505
|
-
expires_at: zod.string().optional(),
|
|
506
|
-
id: zod.string().optional(),
|
|
507
|
-
instance: zod.string().optional(),
|
|
508
|
-
received: zod.string().optional(),
|
|
509
|
-
register_at: zod.string().optional(),
|
|
510
|
-
socket: zod.string().optional(),
|
|
511
|
-
user: zod
|
|
512
|
-
.object({
|
|
513
|
-
id: zod.string().optional(),
|
|
514
|
-
name: zod.string().optional(),
|
|
515
|
-
})
|
|
516
|
-
.optional()
|
|
517
|
-
.describe('UserId lookup value.'),
|
|
518
|
-
user_agent: zod.string().optional(),
|
|
519
|
-
}),
|
|
520
|
-
)
|
|
521
|
-
.optional(),
|
|
522
|
-
next: zod.boolean().optional(),
|
|
523
|
-
page: zod.int().optional(),
|
|
524
|
-
size: zod.int().optional(),
|
|
525
|
-
});
|
|
526
|
-
|
|
527
483
|
/**
|
|
528
484
|
* @summary ----- Details (1:M) ----------------------------------------------
|
|
529
485
|
*/
|
|
@@ -9,18 +9,10 @@ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
|
9
9
|
import axios from '../../api/axios/genClient';
|
|
10
10
|
|
|
11
11
|
import type {
|
|
12
|
-
ApiCreateDomainRequest,
|
|
13
|
-
ApiCreateDomainResponse,
|
|
14
12
|
ApiDeleteDomainResponse,
|
|
15
13
|
ApiReadDomainResponse,
|
|
16
|
-
ApiSearchDomainsResponse,
|
|
17
|
-
ApiUpdateDomainResponse,
|
|
18
|
-
DeleteDomain2Params,
|
|
19
14
|
DeleteDomainParams,
|
|
20
|
-
DomainsUpdateDomainBody,
|
|
21
|
-
ReadDomain2Params,
|
|
22
15
|
ReadDomainParams,
|
|
23
|
-
SearchDomainsParams,
|
|
24
16
|
} from '../_models';
|
|
25
17
|
|
|
26
18
|
// --- header start
|
|
@@ -55,92 +47,14 @@ export const // --- title start
|
|
|
55
47
|
},
|
|
56
48
|
});
|
|
57
49
|
};
|
|
58
|
-
const searchDomains = (
|
|
59
|
-
params?: SearchDomainsParams,
|
|
60
|
-
options?: AxiosRequestConfig,
|
|
61
|
-
): Promise<AxiosResponse<ApiSearchDomainsResponse>> => {
|
|
62
|
-
return axiosInstance.get(`/domains`, {
|
|
63
|
-
...options,
|
|
64
|
-
params: {
|
|
65
|
-
...params,
|
|
66
|
-
...options?.params,
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
const createDomain = (
|
|
71
|
-
apiCreateDomainRequest: ApiCreateDomainRequest,
|
|
72
|
-
options?: AxiosRequestConfig,
|
|
73
|
-
): Promise<AxiosResponse<ApiCreateDomainResponse>> => {
|
|
74
|
-
return axiosInstance.post(`/domains`, apiCreateDomainRequest, options);
|
|
75
|
-
};
|
|
76
|
-
const deleteDomain2 = (
|
|
77
|
-
dc: string,
|
|
78
|
-
params?: DeleteDomain2Params,
|
|
79
|
-
options?: AxiosRequestConfig,
|
|
80
|
-
): Promise<AxiosResponse<ApiDeleteDomainResponse>> => {
|
|
81
|
-
return axiosInstance.delete(`/domains/${dc}`, {
|
|
82
|
-
...options,
|
|
83
|
-
params: {
|
|
84
|
-
...params,
|
|
85
|
-
...options?.params,
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
const readDomain2 = (
|
|
90
|
-
dc: string,
|
|
91
|
-
params?: ReadDomain2Params,
|
|
92
|
-
options?: AxiosRequestConfig,
|
|
93
|
-
): Promise<AxiosResponse<ApiReadDomainResponse>> => {
|
|
94
|
-
return axiosInstance.get(`/domains/${dc}`, {
|
|
95
|
-
...options,
|
|
96
|
-
params: {
|
|
97
|
-
...params,
|
|
98
|
-
...options?.params,
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
const updateDomain2 = (
|
|
103
|
-
domainDc: string,
|
|
104
|
-
domainsUpdateDomainBody: DomainsUpdateDomainBody,
|
|
105
|
-
options?: AxiosRequestConfig,
|
|
106
|
-
): Promise<AxiosResponse<ApiUpdateDomainResponse>> => {
|
|
107
|
-
return axiosInstance.patch(
|
|
108
|
-
`/domains/${domainDc}`,
|
|
109
|
-
domainsUpdateDomainBody,
|
|
110
|
-
options,
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
const updateDomain = (
|
|
114
|
-
domainDc: string,
|
|
115
|
-
domainsUpdateDomainBody: DomainsUpdateDomainBody,
|
|
116
|
-
options?: AxiosRequestConfig,
|
|
117
|
-
): Promise<AxiosResponse<ApiUpdateDomainResponse>> => {
|
|
118
|
-
return axiosInstance.put(
|
|
119
|
-
`/domains/${domainDc}`,
|
|
120
|
-
domainsUpdateDomainBody,
|
|
121
|
-
options,
|
|
122
|
-
);
|
|
123
|
-
};
|
|
124
50
|
|
|
125
51
|
// --- footer start
|
|
126
52
|
return {
|
|
127
53
|
deleteDomain,
|
|
128
54
|
readDomain,
|
|
129
|
-
searchDomains,
|
|
130
|
-
createDomain,
|
|
131
|
-
deleteDomain2,
|
|
132
|
-
readDomain2,
|
|
133
|
-
updateDomain2,
|
|
134
|
-
updateDomain,
|
|
135
55
|
};
|
|
136
56
|
};
|
|
137
57
|
export type DeleteDomainResult = AxiosResponse<ApiDeleteDomainResponse>;
|
|
138
58
|
export type ReadDomainResult = AxiosResponse<ApiReadDomainResponse>;
|
|
139
|
-
export type SearchDomainsResult = AxiosResponse<ApiSearchDomainsResponse>;
|
|
140
|
-
export type CreateDomainResult = AxiosResponse<ApiCreateDomainResponse>;
|
|
141
|
-
export type DeleteDomain2Result = AxiosResponse<ApiDeleteDomainResponse>;
|
|
142
|
-
export type ReadDomain2Result = AxiosResponse<ApiReadDomainResponse>;
|
|
143
|
-
export type UpdateDomain2Result = AxiosResponse<ApiUpdateDomainResponse>;
|
|
144
|
-
export type UpdateDomainResult = AxiosResponse<ApiUpdateDomainResponse>;
|
|
145
59
|
|
|
146
60
|
// --- footer end
|
|
@@ -39,195 +39,3 @@ export const ReadDomainResponse = zod.object({
|
|
|
39
39
|
})
|
|
40
40
|
.optional(),
|
|
41
41
|
});
|
|
42
|
-
|
|
43
|
-
export const SearchDomainsQueryParams = zod.object({
|
|
44
|
-
domain: zod.string().optional().describe('like'),
|
|
45
|
-
fields: zod.array(zod.string()).optional().describe('attrs'),
|
|
46
|
-
sort: zod.array(zod.string()).optional(),
|
|
47
|
-
page: zod.string().optional(),
|
|
48
|
-
size: zod.string().optional(),
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export const SearchDomainsResponse = zod.object({
|
|
52
|
-
domains: zod
|
|
53
|
-
.array(
|
|
54
|
-
zod.object({
|
|
55
|
-
country: zod.string().optional(),
|
|
56
|
-
createdAt: zod.string().optional(),
|
|
57
|
-
createdBy: zod.string().optional(),
|
|
58
|
-
dc: zod.string().optional(),
|
|
59
|
-
domain: zod.string().optional(),
|
|
60
|
-
email: zod.string().optional(),
|
|
61
|
-
locality: zod.string().optional(),
|
|
62
|
-
organization: zod.string().optional(),
|
|
63
|
-
postalAddress: zod.string().optional(),
|
|
64
|
-
postalCode: zod.string().optional(),
|
|
65
|
-
stateOrProvince: zod.string().optional(),
|
|
66
|
-
streetAddress: zod.string().optional(),
|
|
67
|
-
telephoneNumber: zod.string().optional(),
|
|
68
|
-
updatedAt: zod.string().optional(),
|
|
69
|
-
updatedBy: zod.string().optional(),
|
|
70
|
-
}),
|
|
71
|
-
)
|
|
72
|
-
.optional(),
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export const CreateDomainBody = zod.object({
|
|
76
|
-
organization: zod
|
|
77
|
-
.object({
|
|
78
|
-
country: zod.string().optional(),
|
|
79
|
-
createdAt: zod.string().optional(),
|
|
80
|
-
createdBy: zod.string().optional(),
|
|
81
|
-
dc: zod.string().optional(),
|
|
82
|
-
domain: zod.string().optional(),
|
|
83
|
-
email: zod.string().optional(),
|
|
84
|
-
locality: zod.string().optional(),
|
|
85
|
-
organization: zod.string().optional(),
|
|
86
|
-
postalAddress: zod.string().optional(),
|
|
87
|
-
postalCode: zod.string().optional(),
|
|
88
|
-
stateOrProvince: zod.string().optional(),
|
|
89
|
-
streetAddress: zod.string().optional(),
|
|
90
|
-
telephoneNumber: zod.string().optional(),
|
|
91
|
-
updatedAt: zod.string().optional(),
|
|
92
|
-
updatedBy: zod.string().optional(),
|
|
93
|
-
})
|
|
94
|
-
.optional(),
|
|
95
|
-
password: zod.string().optional(),
|
|
96
|
-
superuser: zod.string().optional(),
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
export const CreateDomainResponse = zod.looseObject({});
|
|
100
|
-
|
|
101
|
-
export const DeleteDomain2Params = zod.object({
|
|
102
|
-
dc: zod.string(),
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
export const DeleteDomain2QueryParams = zod.object({
|
|
106
|
-
domain: zod.string().optional(),
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
export const DeleteDomain2Response = zod.looseObject({});
|
|
110
|
-
|
|
111
|
-
export const ReadDomain2Params = zod.object({
|
|
112
|
-
dc: zod.string(),
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
export const ReadDomain2QueryParams = zod.object({
|
|
116
|
-
domain: zod.string().optional(),
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
export const ReadDomain2Response = zod.object({
|
|
120
|
-
domain: zod
|
|
121
|
-
.object({
|
|
122
|
-
country: zod.string().optional(),
|
|
123
|
-
createdAt: zod.string().optional(),
|
|
124
|
-
createdBy: zod.string().optional(),
|
|
125
|
-
dc: zod.string().optional(),
|
|
126
|
-
domain: zod.string().optional(),
|
|
127
|
-
email: zod.string().optional(),
|
|
128
|
-
locality: zod.string().optional(),
|
|
129
|
-
organization: zod.string().optional(),
|
|
130
|
-
postalAddress: zod.string().optional(),
|
|
131
|
-
postalCode: zod.string().optional(),
|
|
132
|
-
stateOrProvince: zod.string().optional(),
|
|
133
|
-
streetAddress: zod.string().optional(),
|
|
134
|
-
telephoneNumber: zod.string().optional(),
|
|
135
|
-
updatedAt: zod.string().optional(),
|
|
136
|
-
updatedBy: zod.string().optional(),
|
|
137
|
-
})
|
|
138
|
-
.optional(),
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
export const UpdateDomain2Params = zod.object({
|
|
142
|
-
'domain.dc': zod.string().describe('component'),
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
export const UpdateDomain2Body = zod.object({
|
|
146
|
-
domain: zod
|
|
147
|
-
.object({
|
|
148
|
-
country: zod.string().optional(),
|
|
149
|
-
createdAt: zod.string().optional(),
|
|
150
|
-
createdBy: zod.string().optional(),
|
|
151
|
-
domain: zod.string().optional(),
|
|
152
|
-
email: zod.string().optional(),
|
|
153
|
-
locality: zod.string().optional(),
|
|
154
|
-
organization: zod.string().optional(),
|
|
155
|
-
postalAddress: zod.string().optional(),
|
|
156
|
-
postalCode: zod.string().optional(),
|
|
157
|
-
stateOrProvince: zod.string().optional(),
|
|
158
|
-
streetAddress: zod.string().optional(),
|
|
159
|
-
telephoneNumber: zod.string().optional(),
|
|
160
|
-
updatedAt: zod.string().optional(),
|
|
161
|
-
updatedBy: zod.string().optional(),
|
|
162
|
-
})
|
|
163
|
-
.optional(),
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
export const UpdateDomain2Response = zod.object({
|
|
167
|
-
domain: zod
|
|
168
|
-
.object({
|
|
169
|
-
country: zod.string().optional(),
|
|
170
|
-
createdAt: zod.string().optional(),
|
|
171
|
-
createdBy: zod.string().optional(),
|
|
172
|
-
dc: zod.string().optional(),
|
|
173
|
-
domain: zod.string().optional(),
|
|
174
|
-
email: zod.string().optional(),
|
|
175
|
-
locality: zod.string().optional(),
|
|
176
|
-
organization: zod.string().optional(),
|
|
177
|
-
postalAddress: zod.string().optional(),
|
|
178
|
-
postalCode: zod.string().optional(),
|
|
179
|
-
stateOrProvince: zod.string().optional(),
|
|
180
|
-
streetAddress: zod.string().optional(),
|
|
181
|
-
telephoneNumber: zod.string().optional(),
|
|
182
|
-
updatedAt: zod.string().optional(),
|
|
183
|
-
updatedBy: zod.string().optional(),
|
|
184
|
-
})
|
|
185
|
-
.optional(),
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
export const UpdateDomainParams = zod.object({
|
|
189
|
-
'domain.dc': zod.string().describe('component'),
|
|
190
|
-
});
|
|
191
|
-
|
|
192
|
-
export const UpdateDomainBody = zod.object({
|
|
193
|
-
domain: zod
|
|
194
|
-
.object({
|
|
195
|
-
country: zod.string().optional(),
|
|
196
|
-
createdAt: zod.string().optional(),
|
|
197
|
-
createdBy: zod.string().optional(),
|
|
198
|
-
domain: zod.string().optional(),
|
|
199
|
-
email: zod.string().optional(),
|
|
200
|
-
locality: zod.string().optional(),
|
|
201
|
-
organization: zod.string().optional(),
|
|
202
|
-
postalAddress: zod.string().optional(),
|
|
203
|
-
postalCode: zod.string().optional(),
|
|
204
|
-
stateOrProvince: zod.string().optional(),
|
|
205
|
-
streetAddress: zod.string().optional(),
|
|
206
|
-
telephoneNumber: zod.string().optional(),
|
|
207
|
-
updatedAt: zod.string().optional(),
|
|
208
|
-
updatedBy: zod.string().optional(),
|
|
209
|
-
})
|
|
210
|
-
.optional(),
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
export const UpdateDomainResponse = zod.object({
|
|
214
|
-
domain: zod
|
|
215
|
-
.object({
|
|
216
|
-
country: zod.string().optional(),
|
|
217
|
-
createdAt: zod.string().optional(),
|
|
218
|
-
createdBy: zod.string().optional(),
|
|
219
|
-
dc: zod.string().optional(),
|
|
220
|
-
domain: zod.string().optional(),
|
|
221
|
-
email: zod.string().optional(),
|
|
222
|
-
locality: zod.string().optional(),
|
|
223
|
-
organization: zod.string().optional(),
|
|
224
|
-
postalAddress: zod.string().optional(),
|
|
225
|
-
postalCode: zod.string().optional(),
|
|
226
|
-
stateOrProvince: zod.string().optional(),
|
|
227
|
-
streetAddress: zod.string().optional(),
|
|
228
|
-
telephoneNumber: zod.string().optional(),
|
|
229
|
-
updatedAt: zod.string().optional(),
|
|
230
|
-
updatedBy: zod.string().optional(),
|
|
231
|
-
})
|
|
232
|
-
.optional(),
|
|
233
|
-
});
|
|
@@ -16,7 +16,6 @@ import type {
|
|
|
16
16
|
EngineListEmailProfile,
|
|
17
17
|
EngineLoginEmailProfileResponse,
|
|
18
18
|
EngineLogoutEmailProfileResponse,
|
|
19
|
-
EngineTestEmailProfileResponse,
|
|
20
19
|
SearchEmailProfileParams,
|
|
21
20
|
} from '../_models';
|
|
22
21
|
|
|
@@ -115,15 +114,6 @@ export const // --- title start
|
|
|
115
114
|
options,
|
|
116
115
|
);
|
|
117
116
|
};
|
|
118
|
-
/**
|
|
119
|
-
* @summary EmailProfile check login
|
|
120
|
-
*/
|
|
121
|
-
const testEmailProfile = (
|
|
122
|
-
id: number,
|
|
123
|
-
options?: AxiosRequestConfig,
|
|
124
|
-
): Promise<AxiosResponse<EngineTestEmailProfileResponse>> => {
|
|
125
|
-
return axiosInstance.get(`/email/profile/${id}/test`, options);
|
|
126
|
-
};
|
|
127
117
|
|
|
128
118
|
// --- footer start
|
|
129
119
|
return {
|
|
@@ -135,7 +125,6 @@ export const // --- title start
|
|
|
135
125
|
updateEmailProfile,
|
|
136
126
|
loginEmailProfile,
|
|
137
127
|
logoutEmailProfile,
|
|
138
|
-
testEmailProfile,
|
|
139
128
|
};
|
|
140
129
|
};
|
|
141
130
|
export type SearchEmailProfileResult = AxiosResponse<EngineListEmailProfile>;
|
|
@@ -148,7 +137,5 @@ export type LoginEmailProfileResult =
|
|
|
148
137
|
AxiosResponse<EngineLoginEmailProfileResponse>;
|
|
149
138
|
export type LogoutEmailProfileResult =
|
|
150
139
|
AxiosResponse<EngineLogoutEmailProfileResponse>;
|
|
151
|
-
export type TestEmailProfileResult =
|
|
152
|
-
AxiosResponse<EngineTestEmailProfileResponse>;
|
|
153
140
|
|
|
154
141
|
// --- footer end
|
|
@@ -539,14 +539,3 @@ export const LogoutEmailProfileParams = zod.object({
|
|
|
539
539
|
});
|
|
540
540
|
|
|
541
541
|
export const LogoutEmailProfileResponse = zod.looseObject({});
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* @summary EmailProfile check login
|
|
545
|
-
*/
|
|
546
|
-
export const TestEmailProfileParams = zod.object({
|
|
547
|
-
id: zod.int(),
|
|
548
|
-
});
|
|
549
|
-
|
|
550
|
-
export const TestEmailProfileResponse = zod.object({
|
|
551
|
-
error: zod.string().optional(),
|
|
552
|
-
});
|
package/src/gen-wire/index.ts
CHANGED
|
@@ -903,9 +903,6 @@ export {
|
|
|
903
903
|
DeleteDeviceParams,
|
|
904
904
|
DeleteDeviceQueryParams,
|
|
905
905
|
DeleteDeviceResponse,
|
|
906
|
-
ListRegistrationsParams,
|
|
907
|
-
ListRegistrationsQueryParams,
|
|
908
|
-
ListRegistrationsResponse,
|
|
909
906
|
ReadDeviceParams,
|
|
910
907
|
ReadDeviceQueryParams,
|
|
911
908
|
ReadDeviceResponse,
|
|
@@ -989,28 +986,7 @@ export {
|
|
|
989
986
|
updateTypeResponseFieldsItemKindDefault,
|
|
990
987
|
} from './dictionaries/dictionaries.zod';
|
|
991
988
|
export * from './domains/domains';
|
|
992
|
-
export
|
|
993
|
-
CreateDomainBody,
|
|
994
|
-
CreateDomainResponse,
|
|
995
|
-
DeleteDomain2Params,
|
|
996
|
-
DeleteDomain2QueryParams,
|
|
997
|
-
DeleteDomain2Response,
|
|
998
|
-
DeleteDomainQueryParams,
|
|
999
|
-
DeleteDomainResponse,
|
|
1000
|
-
ReadDomain2Params,
|
|
1001
|
-
ReadDomain2QueryParams,
|
|
1002
|
-
ReadDomain2Response,
|
|
1003
|
-
ReadDomainQueryParams,
|
|
1004
|
-
ReadDomainResponse,
|
|
1005
|
-
SearchDomainsQueryParams,
|
|
1006
|
-
SearchDomainsResponse,
|
|
1007
|
-
UpdateDomain2Body,
|
|
1008
|
-
UpdateDomain2Params,
|
|
1009
|
-
UpdateDomain2Response,
|
|
1010
|
-
UpdateDomainBody,
|
|
1011
|
-
UpdateDomainParams,
|
|
1012
|
-
UpdateDomainResponse,
|
|
1013
|
-
} from './domains/domains.zod';
|
|
989
|
+
export * from './domains/domains.zod';
|
|
1014
990
|
export * from './dynamic-conditions/dynamic-conditions';
|
|
1015
991
|
export {
|
|
1016
992
|
CreateConditionBody,
|
|
@@ -2239,11 +2215,14 @@ export {
|
|
|
2239
2215
|
CreateSpaceSpacesBodyItem,
|
|
2240
2216
|
CreateSpaceSpacesQueryParams,
|
|
2241
2217
|
CreateSpaceSpacesResponse,
|
|
2218
|
+
createSpaceBodyStateDefault,
|
|
2219
|
+
createSpaceResponseStateDefault,
|
|
2242
2220
|
DeleteSpaceParams,
|
|
2243
2221
|
DeleteSpaceResponse,
|
|
2244
2222
|
DeleteSpaceSpacesParams,
|
|
2245
2223
|
DeleteSpaceSpacesQueryParams,
|
|
2246
2224
|
DeleteSpaceSpacesResponse,
|
|
2225
|
+
deleteSpaceResponseStateDefault,
|
|
2247
2226
|
deleteSpaceSpacesPathEtagRegExp,
|
|
2248
2227
|
ListSpacesQueryParams,
|
|
2249
2228
|
ListSpacesResponse,
|
|
@@ -2254,9 +2233,12 @@ export {
|
|
|
2254
2233
|
LocateSpaceSpacesParams,
|
|
2255
2234
|
LocateSpaceSpacesQueryParams,
|
|
2256
2235
|
LocateSpaceSpacesResponse,
|
|
2236
|
+
listSpacesQueryStateDefault,
|
|
2237
|
+
listSpacesResponseItemsItemStateDefault,
|
|
2257
2238
|
listSpacesSpacesQueryFieldsItemDefault,
|
|
2258
2239
|
listSpacesSpacesQuerySortItemDefault,
|
|
2259
2240
|
listSpacesSpacesQuerySortItemRegExp,
|
|
2241
|
+
locateSpaceResponseStateDefault,
|
|
2260
2242
|
UpdateSpace2Body,
|
|
2261
2243
|
UpdateSpace2Params,
|
|
2262
2244
|
UpdateSpace2QueryParams,
|
|
@@ -2269,6 +2251,10 @@ export {
|
|
|
2269
2251
|
UpdateSpaceSpacesParams,
|
|
2270
2252
|
UpdateSpaceSpacesQueryParams,
|
|
2271
2253
|
UpdateSpaceSpacesResponse,
|
|
2254
|
+
updateSpace2BodyStateDefault,
|
|
2255
|
+
updateSpace2ResponseStateDefault,
|
|
2256
|
+
updateSpaceBodyStateDefault,
|
|
2257
|
+
updateSpaceResponseStateDefault,
|
|
2272
2258
|
} from './spaces/spaces.zod';
|
|
2273
2259
|
export * from './status-conditions/status-conditions';
|
|
2274
2260
|
export {
|