@openziti/ziti-mcp-server 0.1.0
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/LICENSE +201 -0
- package/README.md +868 -0
- package/dist/auth/client-credentials-flow.d.ts +21 -0
- package/dist/auth/client-credentials-flow.js +63 -0
- package/dist/auth/client-credentials-flow.js.map +1 -0
- package/dist/auth/device-auth-flow.d.ts +47 -0
- package/dist/auth/device-auth-flow.js +291 -0
- package/dist/auth/device-auth-flow.js.map +1 -0
- package/dist/clients/base.d.ts +74 -0
- package/dist/clients/base.js +109 -0
- package/dist/clients/base.js.map +1 -0
- package/dist/clients/claude.d.ts +22 -0
- package/dist/clients/claude.js +40 -0
- package/dist/clients/claude.js.map +1 -0
- package/dist/clients/cursor.d.ts +22 -0
- package/dist/clients/cursor.js +39 -0
- package/dist/clients/cursor.js.map +1 -0
- package/dist/clients/index.d.ts +33 -0
- package/dist/clients/index.js +39 -0
- package/dist/clients/index.js.map +1 -0
- package/dist/clients/types.d.ts +70 -0
- package/dist/clients/types.js +2 -0
- package/dist/clients/types.js.map +1 -0
- package/dist/clients/utils.d.ts +22 -0
- package/dist/clients/utils.js +46 -0
- package/dist/clients/utils.js.map +1 -0
- package/dist/clients/vscode.d.ts +76 -0
- package/dist/clients/vscode.js +159 -0
- package/dist/clients/vscode.js.map +1 -0
- package/dist/clients/windsurf.d.ts +22 -0
- package/dist/clients/windsurf.js +39 -0
- package/dist/clients/windsurf.js.map +1 -0
- package/dist/commands/init.d.ts +45 -0
- package/dist/commands/init.js +133 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/logout.d.ts +12 -0
- package/dist/commands/logout.js +90 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/run.d.ts +15 -0
- package/dist/commands/run.js +94 -0
- package/dist/commands/run.js.map +1 -0
- package/dist/commands/session.d.ts +12 -0
- package/dist/commands/session.js +99 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +105 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +67 -0
- package/dist/server.js +171 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/api-sessions.d.ts +3 -0
- package/dist/tools/api-sessions.js +86 -0
- package/dist/tools/api-sessions.js.map +1 -0
- package/dist/tools/auth-policies.d.ts +3 -0
- package/dist/tools/auth-policies.js +347 -0
- package/dist/tools/auth-policies.js.map +1 -0
- package/dist/tools/authenticators.d.ts +3 -0
- package/dist/tools/authenticators.js +183 -0
- package/dist/tools/authenticators.js.map +1 -0
- package/dist/tools/certificate-authorities.d.ts +3 -0
- package/dist/tools/certificate-authorities.js +288 -0
- package/dist/tools/certificate-authorities.js.map +1 -0
- package/dist/tools/config-types.d.ts +3 -0
- package/dist/tools/config-types.js +194 -0
- package/dist/tools/config-types.js.map +1 -0
- package/dist/tools/configs.d.ts +3 -0
- package/dist/tools/configs.js +203 -0
- package/dist/tools/configs.js.map +1 -0
- package/dist/tools/controller-settings.d.ts +3 -0
- package/dist/tools/controller-settings.js +219 -0
- package/dist/tools/controller-settings.js.map +1 -0
- package/dist/tools/controllers.d.ts +3 -0
- package/dist/tools/controllers.js +89 -0
- package/dist/tools/controllers.js.map +1 -0
- package/dist/tools/edge-router-policies.d.ts +3 -0
- package/dist/tools/edge-router-policies.js +262 -0
- package/dist/tools/edge-router-policies.js.map +1 -0
- package/dist/tools/edge-routers.d.ts +3 -0
- package/dist/tools/edge-routers.js +381 -0
- package/dist/tools/edge-routers.js.map +1 -0
- package/dist/tools/enrollments.d.ts +3 -0
- package/dist/tools/enrollments.js +187 -0
- package/dist/tools/enrollments.js.map +1 -0
- package/dist/tools/external-jwt-signers.d.ts +3 -0
- package/dist/tools/external-jwt-signers.js +242 -0
- package/dist/tools/external-jwt-signers.js.map +1 -0
- package/dist/tools/identities.d.ts +3 -0
- package/dist/tools/identities.js +741 -0
- package/dist/tools/identities.js.map +1 -0
- package/dist/tools/identity-types.d.ts +3 -0
- package/dist/tools/identity-types.js +58 -0
- package/dist/tools/identity-types.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.js +101 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/posture-checks.d.ts +3 -0
- package/dist/tools/posture-checks.js +254 -0
- package/dist/tools/posture-checks.js.map +1 -0
- package/dist/tools/routers.d.ts +3 -0
- package/dist/tools/routers.js +169 -0
- package/dist/tools/routers.js.map +1 -0
- package/dist/tools/service-edge-router-policies.d.ts +3 -0
- package/dist/tools/service-edge-router-policies.js +282 -0
- package/dist/tools/service-edge-router-policies.js.map +1 -0
- package/dist/tools/service-policies.d.ts +3 -0
- package/dist/tools/service-policies.js +311 -0
- package/dist/tools/service-policies.js.map +1 -0
- package/dist/tools/services.d.ts +3 -0
- package/dist/tools/services.js +403 -0
- package/dist/tools/services.js.map +1 -0
- package/dist/tools/sessions.d.ts +3 -0
- package/dist/tools/sessions.js +86 -0
- package/dist/tools/sessions.js.map +1 -0
- package/dist/tools/terminators.d.ts +3 -0
- package/dist/tools/terminators.js +187 -0
- package/dist/tools/terminators.js.map +1 -0
- package/dist/tools/transit-routers.d.ts +3 -0
- package/dist/tools/transit-routers.js +169 -0
- package/dist/tools/transit-routers.js.map +1 -0
- package/dist/utils/analytics.d.ts +75 -0
- package/dist/utils/analytics.js +191 -0
- package/dist/utils/analytics.js.map +1 -0
- package/dist/utils/auth0-client.d.ts +27 -0
- package/dist/utils/auth0-client.js +67 -0
- package/dist/utils/auth0-client.js.map +1 -0
- package/dist/utils/authenticated-client.d.ts +6 -0
- package/dist/utils/authenticated-client.js +55 -0
- package/dist/utils/authenticated-client.js.map +1 -0
- package/dist/utils/config.d.ts +65 -0
- package/dist/utils/config.js +80 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/constants.d.ts +15 -0
- package/dist/utils/constants.js +17 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/controller-client/client/client.gen.d.ts +2 -0
- package/dist/utils/controller-client/client/client.gen.js +229 -0
- package/dist/utils/controller-client/client/client.gen.js.map +1 -0
- package/dist/utils/controller-client/client/index.d.ts +8 -0
- package/dist/utils/controller-client/client/index.js +7 -0
- package/dist/utils/controller-client/client/index.js.map +1 -0
- package/dist/utils/controller-client/client/types.gen.d.ts +117 -0
- package/dist/utils/controller-client/client/types.gen.js +3 -0
- package/dist/utils/controller-client/client/types.gen.js.map +1 -0
- package/dist/utils/controller-client/client/utils.gen.d.ts +33 -0
- package/dist/utils/controller-client/client/utils.gen.js +232 -0
- package/dist/utils/controller-client/client/utils.gen.js.map +1 -0
- package/dist/utils/controller-client/client.gen.d.ts +12 -0
- package/dist/utils/controller-client/client.gen.js +6 -0
- package/dist/utils/controller-client/client.gen.js.map +1 -0
- package/dist/utils/controller-client/core/auth.gen.d.ts +18 -0
- package/dist/utils/controller-client/core/auth.gen.js +15 -0
- package/dist/utils/controller-client/core/auth.gen.js.map +1 -0
- package/dist/utils/controller-client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/utils/controller-client/core/bodySerializer.gen.js +58 -0
- package/dist/utils/controller-client/core/bodySerializer.gen.js.map +1 -0
- package/dist/utils/controller-client/core/params.gen.d.ts +43 -0
- package/dist/utils/controller-client/core/params.gen.js +101 -0
- package/dist/utils/controller-client/core/params.gen.js.map +1 -0
- package/dist/utils/controller-client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/utils/controller-client/core/pathSerializer.gen.js +115 -0
- package/dist/utils/controller-client/core/pathSerializer.gen.js.map +1 -0
- package/dist/utils/controller-client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/utils/controller-client/core/queryKeySerializer.gen.js +100 -0
- package/dist/utils/controller-client/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/utils/controller-client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/utils/controller-client/core/serverSentEvents.gen.js +136 -0
- package/dist/utils/controller-client/core/serverSentEvents.gen.js.map +1 -0
- package/dist/utils/controller-client/core/types.gen.d.ts +78 -0
- package/dist/utils/controller-client/core/types.gen.js +3 -0
- package/dist/utils/controller-client/core/types.gen.js.map +1 -0
- package/dist/utils/controller-client/core/utils.gen.d.ts +19 -0
- package/dist/utils/controller-client/core/utils.gen.js +88 -0
- package/dist/utils/controller-client/core/utils.gen.js.map +1 -0
- package/dist/utils/controller-client/index.d.ts +2 -0
- package/dist/utils/controller-client/index.js +3 -0
- package/dist/utils/controller-client/index.js.map +1 -0
- package/dist/utils/controller-client/sdk.gen.d.ts +1302 -0
- package/dist/utils/controller-client/sdk.gen.js +4436 -0
- package/dist/utils/controller-client/sdk.gen.js.map +1 -0
- package/dist/utils/controller-client/types.gen.d.ts +9170 -0
- package/dist/utils/controller-client/types.gen.js +3 -0
- package/dist/utils/controller-client/types.gen.js.map +1 -0
- package/dist/utils/glob.d.ts +75 -0
- package/dist/utils/glob.js +110 -0
- package/dist/utils/glob.js.map +1 -0
- package/dist/utils/http-utility.d.ts +5 -0
- package/dist/utils/http-utility.js +68 -0
- package/dist/utils/http-utility.js.map +1 -0
- package/dist/utils/keychain.d.ts +129 -0
- package/dist/utils/keychain.js +193 -0
- package/dist/utils/keychain.js.map +1 -0
- package/dist/utils/logger.d.ts +4 -0
- package/dist/utils/logger.js +28 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/package.d.ts +3 -0
- package/dist/utils/package.js +9 -0
- package/dist/utils/package.js.map +1 -0
- package/dist/utils/scopes.d.ts +12 -0
- package/dist/utils/scopes.js +19 -0
- package/dist/utils/scopes.js.map +1 -0
- package/dist/utils/terminal.d.ts +35 -0
- package/dist/utils/terminal.js +409 -0
- package/dist/utils/terminal.js.map +1 -0
- package/dist/utils/tools.d.ts +63 -0
- package/dist/utils/tools.js +149 -0
- package/dist/utils/tools.js.map +1 -0
- package/dist/utils/types.d.ts +55 -0
- package/dist/utils/types.js +3 -0
- package/dist/utils/types.js.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,4436 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* Returns version information
|
|
5
|
+
*/
|
|
6
|
+
export const listRoot = (options) => {
|
|
7
|
+
return (options?.client ?? client).get({
|
|
8
|
+
url: '/',
|
|
9
|
+
...options
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Get CA Cert Store
|
|
14
|
+
*
|
|
15
|
+
* This endpoint is used during enrollments to bootstrap trust between enrolling clients and the Ziti Edge API.
|
|
16
|
+
* This endpoint returns a base64 encoded PKCS7 store. The content can be base64 decoded and parsed by any library
|
|
17
|
+
* that supports parsing PKCS7 stores.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export const listWellKnownCas = (options) => {
|
|
21
|
+
return (options?.client ?? client).get({
|
|
22
|
+
url: '/.well-known/est/cacerts',
|
|
23
|
+
...options
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* List active API sessions
|
|
28
|
+
*
|
|
29
|
+
* Returns a list of active API sessions. The resources can be sorted, filtered, and paginated. This endpoint
|
|
30
|
+
* requires admin access.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export const listApiSessions = (options) => {
|
|
34
|
+
return (options?.client ?? client).get({
|
|
35
|
+
security: [
|
|
36
|
+
{
|
|
37
|
+
name: 'zt-session',
|
|
38
|
+
type: 'apiKey'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
scheme: 'bearer',
|
|
42
|
+
type: 'http'
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
url: '/api-sessions',
|
|
46
|
+
...options
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Deletes an API Sessions
|
|
51
|
+
*
|
|
52
|
+
* Deletes and API sesion by id. Requires admin access.
|
|
53
|
+
*/
|
|
54
|
+
export const deleteApiSessions = (options) => {
|
|
55
|
+
return (options.client ?? client).delete({
|
|
56
|
+
security: [
|
|
57
|
+
{
|
|
58
|
+
name: 'zt-session',
|
|
59
|
+
type: 'apiKey'
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
url: '/api-sessions/{id}',
|
|
63
|
+
...options
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves a single API Session
|
|
68
|
+
*
|
|
69
|
+
* Retrieves a single API Session by id. Requires admin access.
|
|
70
|
+
*/
|
|
71
|
+
export const detailApiSessions = (options) => {
|
|
72
|
+
return (options.client ?? client).get({
|
|
73
|
+
security: [
|
|
74
|
+
{
|
|
75
|
+
name: 'zt-session',
|
|
76
|
+
type: 'apiKey'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
scheme: 'bearer',
|
|
80
|
+
type: 'http'
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
url: '/api-sessions/{id}',
|
|
84
|
+
...options
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* List Auth Policies
|
|
89
|
+
*
|
|
90
|
+
* Retrieves a list of Auth Policies
|
|
91
|
+
*/
|
|
92
|
+
export const listAuthPolicies = (options) => {
|
|
93
|
+
return (options?.client ?? client).get({
|
|
94
|
+
security: [
|
|
95
|
+
{
|
|
96
|
+
name: 'zt-session',
|
|
97
|
+
type: 'apiKey'
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
scheme: 'bearer',
|
|
101
|
+
type: 'http'
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
url: '/auth-policies',
|
|
105
|
+
...options
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Creates an Auth Policy
|
|
110
|
+
*
|
|
111
|
+
* Creates an Auth Policy. Requires admin access.
|
|
112
|
+
*/
|
|
113
|
+
export const createAuthPolicy = (options) => {
|
|
114
|
+
return (options.client ?? client).post({
|
|
115
|
+
security: [
|
|
116
|
+
{
|
|
117
|
+
name: 'zt-session',
|
|
118
|
+
type: 'apiKey'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
scheme: 'bearer',
|
|
122
|
+
type: 'http'
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
url: '/auth-policies',
|
|
126
|
+
...options,
|
|
127
|
+
headers: {
|
|
128
|
+
'Content-Type': 'application/json',
|
|
129
|
+
...options.headers
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Delete an Auth Policy
|
|
135
|
+
*
|
|
136
|
+
* Delete an Auth Policy by id. Requires admin access.
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
export const deleteAuthPolicy = (options) => {
|
|
140
|
+
return (options.client ?? client).delete({
|
|
141
|
+
security: [
|
|
142
|
+
{
|
|
143
|
+
name: 'zt-session',
|
|
144
|
+
type: 'apiKey'
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
scheme: 'bearer',
|
|
148
|
+
type: 'http'
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
url: '/auth-policies/{id}',
|
|
152
|
+
...options
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Retrieves a single Auth Policy
|
|
157
|
+
*
|
|
158
|
+
* Retrieves a single Auth Policy by id. Requires admin access.
|
|
159
|
+
*/
|
|
160
|
+
export const detailAuthPolicy = (options) => {
|
|
161
|
+
return (options.client ?? client).get({
|
|
162
|
+
security: [
|
|
163
|
+
{
|
|
164
|
+
name: 'zt-session',
|
|
165
|
+
type: 'apiKey'
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
scheme: 'bearer',
|
|
169
|
+
type: 'http'
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
url: '/auth-policies/{id}',
|
|
173
|
+
...options
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Update the supplied fields on an Auth Policy
|
|
178
|
+
*
|
|
179
|
+
* Update only the supplied fields on an Auth Policy by id. Requires admin access.
|
|
180
|
+
*/
|
|
181
|
+
export const patchAuthPolicy = (options) => {
|
|
182
|
+
return (options.client ?? client).patch({
|
|
183
|
+
security: [
|
|
184
|
+
{
|
|
185
|
+
name: 'zt-session',
|
|
186
|
+
type: 'apiKey'
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
scheme: 'bearer',
|
|
190
|
+
type: 'http'
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
url: '/auth-policies/{id}',
|
|
194
|
+
...options,
|
|
195
|
+
headers: {
|
|
196
|
+
'Content-Type': 'application/json',
|
|
197
|
+
...options.headers
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Update all fields on an Auth Policy
|
|
203
|
+
*
|
|
204
|
+
* Update all fields on an Auth Policy by id. Requires admin access.
|
|
205
|
+
*/
|
|
206
|
+
export const updateAuthPolicy = (options) => {
|
|
207
|
+
return (options.client ?? client).put({
|
|
208
|
+
security: [
|
|
209
|
+
{
|
|
210
|
+
name: 'zt-session',
|
|
211
|
+
type: 'apiKey'
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
scheme: 'bearer',
|
|
215
|
+
type: 'http'
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
url: '/auth-policies/{id}',
|
|
219
|
+
...options,
|
|
220
|
+
headers: {
|
|
221
|
+
'Content-Type': 'application/json',
|
|
222
|
+
...options.headers
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Authenticate via a method supplied via a query string parameter
|
|
228
|
+
*
|
|
229
|
+
* Allowed authentication methods include "password", "cert", and "ext-jwt"
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
export const authenticate = (options) => {
|
|
233
|
+
return (options.client ?? client).post({
|
|
234
|
+
url: '/authenticate',
|
|
235
|
+
...options,
|
|
236
|
+
headers: {
|
|
237
|
+
'Content-Type': 'application/json',
|
|
238
|
+
...options.headers
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Complete MFA authentication
|
|
244
|
+
*
|
|
245
|
+
* Completes MFA authentication by submitting a MFA time based one time token or backup code.
|
|
246
|
+
*/
|
|
247
|
+
export const authenticateMfa = (options) => {
|
|
248
|
+
return (options.client ?? client).post({
|
|
249
|
+
security: [
|
|
250
|
+
{
|
|
251
|
+
name: 'zt-session',
|
|
252
|
+
type: 'apiKey'
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
scheme: 'bearer',
|
|
256
|
+
type: 'http'
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
url: '/authenticate/mfa',
|
|
260
|
+
...options,
|
|
261
|
+
headers: {
|
|
262
|
+
'Content-Type': 'application/json',
|
|
263
|
+
...options.headers
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* List authenticators
|
|
269
|
+
*
|
|
270
|
+
* Returns a list of authenticators associated to identities. The resources can be sorted, filtered, and paginated.
|
|
271
|
+
* This endpoint requires admin access.
|
|
272
|
+
*
|
|
273
|
+
*/
|
|
274
|
+
export const listAuthenticators = (options) => {
|
|
275
|
+
return (options?.client ?? client).get({
|
|
276
|
+
security: [
|
|
277
|
+
{
|
|
278
|
+
name: 'zt-session',
|
|
279
|
+
type: 'apiKey'
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
scheme: 'bearer',
|
|
283
|
+
type: 'http'
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
url: '/authenticators',
|
|
287
|
+
...options
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Creates an authenticator
|
|
292
|
+
*
|
|
293
|
+
* Creates an authenticator for a specific identity. Requires admin access.
|
|
294
|
+
*
|
|
295
|
+
*/
|
|
296
|
+
export const createAuthenticator = (options) => {
|
|
297
|
+
return (options.client ?? client).post({
|
|
298
|
+
security: [
|
|
299
|
+
{
|
|
300
|
+
name: 'zt-session',
|
|
301
|
+
type: 'apiKey'
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
scheme: 'bearer',
|
|
305
|
+
type: 'http'
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
url: '/authenticators',
|
|
309
|
+
...options,
|
|
310
|
+
headers: {
|
|
311
|
+
'Content-Type': 'application/json',
|
|
312
|
+
...options.headers
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* Delete an Authenticator
|
|
318
|
+
*
|
|
319
|
+
* Delete an authenticator by id. Deleting all authenticators for an identity will make it impossible to log in.
|
|
320
|
+
* Requires admin access.
|
|
321
|
+
*
|
|
322
|
+
*/
|
|
323
|
+
export const deleteAuthenticator = (options) => {
|
|
324
|
+
return (options.client ?? client).delete({
|
|
325
|
+
security: [
|
|
326
|
+
{
|
|
327
|
+
name: 'zt-session',
|
|
328
|
+
type: 'apiKey'
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
scheme: 'bearer',
|
|
332
|
+
type: 'http'
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
url: '/authenticators/{id}',
|
|
336
|
+
...options
|
|
337
|
+
});
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* Retrieves a single authenticator
|
|
341
|
+
*
|
|
342
|
+
* Retrieves a single authenticator by id. Requires admin access.
|
|
343
|
+
*/
|
|
344
|
+
export const detailAuthenticator = (options) => {
|
|
345
|
+
return (options.client ?? client).get({
|
|
346
|
+
security: [
|
|
347
|
+
{
|
|
348
|
+
name: 'zt-session',
|
|
349
|
+
type: 'apiKey'
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
scheme: 'bearer',
|
|
353
|
+
type: 'http'
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
url: '/authenticators/{id}',
|
|
357
|
+
...options
|
|
358
|
+
});
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Update the supplied fields on an authenticator
|
|
362
|
+
*
|
|
363
|
+
* Update the supplied fields on an authenticator by id. Requires admin access.
|
|
364
|
+
*/
|
|
365
|
+
export const patchAuthenticator = (options) => {
|
|
366
|
+
return (options.client ?? client).patch({
|
|
367
|
+
security: [
|
|
368
|
+
{
|
|
369
|
+
name: 'zt-session',
|
|
370
|
+
type: 'apiKey'
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
scheme: 'bearer',
|
|
374
|
+
type: 'http'
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
url: '/authenticators/{id}',
|
|
378
|
+
...options,
|
|
379
|
+
headers: {
|
|
380
|
+
'Content-Type': 'application/json',
|
|
381
|
+
...options.headers
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Update all fields on an authenticator
|
|
387
|
+
*
|
|
388
|
+
* Update all fields on an authenticator by id. Requires admin access.
|
|
389
|
+
*/
|
|
390
|
+
export const updateAuthenticator = (options) => {
|
|
391
|
+
return (options.client ?? client).put({
|
|
392
|
+
security: [
|
|
393
|
+
{
|
|
394
|
+
name: 'zt-session',
|
|
395
|
+
type: 'apiKey'
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
scheme: 'bearer',
|
|
399
|
+
type: 'http'
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
url: '/authenticators/{id}',
|
|
403
|
+
...options,
|
|
404
|
+
headers: {
|
|
405
|
+
'Content-Type': 'application/json',
|
|
406
|
+
...options.headers
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* Reverts an authenticator to an enrollment
|
|
412
|
+
*
|
|
413
|
+
* Allows an authenticator to be reverted to an enrollment and allows re-enrollment to occur. On success the
|
|
414
|
+
* created enrollment record response is provided and the source authenticator record will be deleted. The
|
|
415
|
+
* enrollment created depends on the authenticator. UPDB authenticators result in UPDB enrollments, CERT
|
|
416
|
+
* authenticators result in OTT enrollments, CERT + CA authenticators result in OTTCA enrollments.
|
|
417
|
+
*
|
|
418
|
+
*/
|
|
419
|
+
export const reEnrollAuthenticator = (options) => {
|
|
420
|
+
return (options.client ?? client).post({
|
|
421
|
+
security: [
|
|
422
|
+
{
|
|
423
|
+
name: 'zt-session',
|
|
424
|
+
type: 'apiKey'
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
scheme: 'bearer',
|
|
428
|
+
type: 'http'
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
url: '/authenticators/{id}/re-enroll',
|
|
432
|
+
...options,
|
|
433
|
+
headers: {
|
|
434
|
+
'Content-Type': 'application/json',
|
|
435
|
+
...options.headers
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* Indicate a certificate authenticator should be extended and optionally key rolled on next authentication.
|
|
441
|
+
*
|
|
442
|
+
* Allows a certificate authenticator to be flagged for early extension and optionally private key rolling.
|
|
443
|
+
* Connecting clients will receive flags in their API Session indicating that an early extension is request and
|
|
444
|
+
* a hint on whether private keys should be rolled. Clients that do not support extension or cannot roll keys
|
|
445
|
+
* may ignore one or both flags.
|
|
446
|
+
*
|
|
447
|
+
* If this request is made against a non-certificate based authenticator, it will return a 403-forbidden error.
|
|
448
|
+
*
|
|
449
|
+
*/
|
|
450
|
+
export const requestExtendAuthenticator = (options) => {
|
|
451
|
+
return (options.client ?? client).post({
|
|
452
|
+
security: [
|
|
453
|
+
{
|
|
454
|
+
name: 'zt-session',
|
|
455
|
+
type: 'apiKey'
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
scheme: 'bearer',
|
|
459
|
+
type: 'http'
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
url: '/authenticators/{id}/request-extend',
|
|
463
|
+
...options,
|
|
464
|
+
headers: {
|
|
465
|
+
'Content-Type': 'application/json',
|
|
466
|
+
...options.headers
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* List CAs
|
|
472
|
+
*
|
|
473
|
+
* Retrieves a list of CA resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
474
|
+
*/
|
|
475
|
+
export const listCas = (options) => {
|
|
476
|
+
return (options?.client ?? client).get({
|
|
477
|
+
security: [
|
|
478
|
+
{
|
|
479
|
+
name: 'zt-session',
|
|
480
|
+
type: 'apiKey'
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
scheme: 'bearer',
|
|
484
|
+
type: 'http'
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
url: '/cas',
|
|
488
|
+
...options
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* Creates a CA
|
|
493
|
+
*
|
|
494
|
+
* Creates a CA in an unverified state. Requires admin access.
|
|
495
|
+
*/
|
|
496
|
+
export const createCa = (options) => {
|
|
497
|
+
return (options.client ?? client).post({
|
|
498
|
+
security: [
|
|
499
|
+
{
|
|
500
|
+
name: 'zt-session',
|
|
501
|
+
type: 'apiKey'
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
scheme: 'bearer',
|
|
505
|
+
type: 'http'
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
url: '/cas',
|
|
509
|
+
...options,
|
|
510
|
+
headers: {
|
|
511
|
+
'Content-Type': 'application/json',
|
|
512
|
+
...options.headers
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Delete a CA
|
|
518
|
+
*
|
|
519
|
+
* Delete a CA by id. Deleting a CA will delete its associated certificate authenticators. This can make it
|
|
520
|
+
* impossible for identities to authenticate if they no longer have any valid authenticators. Requires admin access.
|
|
521
|
+
*
|
|
522
|
+
*/
|
|
523
|
+
export const deleteCa = (options) => {
|
|
524
|
+
return (options.client ?? client).delete({
|
|
525
|
+
security: [
|
|
526
|
+
{
|
|
527
|
+
name: 'zt-session',
|
|
528
|
+
type: 'apiKey'
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
scheme: 'bearer',
|
|
532
|
+
type: 'http'
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
url: '/cas/{id}',
|
|
536
|
+
...options
|
|
537
|
+
});
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* Retrieves a single CA
|
|
541
|
+
*
|
|
542
|
+
* Retrieves a single CA by id. Requires admin access.
|
|
543
|
+
*/
|
|
544
|
+
export const detailCa = (options) => {
|
|
545
|
+
return (options.client ?? client).get({
|
|
546
|
+
security: [
|
|
547
|
+
{
|
|
548
|
+
name: 'zt-session',
|
|
549
|
+
type: 'apiKey'
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
scheme: 'bearer',
|
|
553
|
+
type: 'http'
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
url: '/cas/{id}',
|
|
557
|
+
...options
|
|
558
|
+
});
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Update the supplied fields on a CA
|
|
562
|
+
*
|
|
563
|
+
* Update only the supplied fields on a CA by id. Requires admin access.
|
|
564
|
+
*/
|
|
565
|
+
export const patchCa = (options) => {
|
|
566
|
+
return (options.client ?? client).patch({
|
|
567
|
+
security: [
|
|
568
|
+
{
|
|
569
|
+
name: 'zt-session',
|
|
570
|
+
type: 'apiKey'
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
scheme: 'bearer',
|
|
574
|
+
type: 'http'
|
|
575
|
+
}
|
|
576
|
+
],
|
|
577
|
+
url: '/cas/{id}',
|
|
578
|
+
...options,
|
|
579
|
+
headers: {
|
|
580
|
+
'Content-Type': 'application/json',
|
|
581
|
+
...options.headers
|
|
582
|
+
}
|
|
583
|
+
});
|
|
584
|
+
};
|
|
585
|
+
/**
|
|
586
|
+
* Update all fields on a CA
|
|
587
|
+
*
|
|
588
|
+
* Update all fields on a CA by id. Requires admin access.
|
|
589
|
+
*/
|
|
590
|
+
export const updateCa = (options) => {
|
|
591
|
+
return (options.client ?? client).put({
|
|
592
|
+
security: [
|
|
593
|
+
{
|
|
594
|
+
name: 'zt-session',
|
|
595
|
+
type: 'apiKey'
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
scheme: 'bearer',
|
|
599
|
+
type: 'http'
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
url: '/cas/{id}',
|
|
603
|
+
...options,
|
|
604
|
+
headers: {
|
|
605
|
+
'Content-Type': 'application/json',
|
|
606
|
+
...options.headers
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Retrieve the enrollment JWT for a CA
|
|
612
|
+
*
|
|
613
|
+
* For CA auto enrollment, the enrollment JWT is static and provided on each CA resource. This endpoint provides
|
|
614
|
+
* the jwt as a text response.
|
|
615
|
+
*
|
|
616
|
+
*/
|
|
617
|
+
export const getCaJwt = (options) => {
|
|
618
|
+
return (options.client ?? client).get({
|
|
619
|
+
security: [
|
|
620
|
+
{
|
|
621
|
+
name: 'zt-session',
|
|
622
|
+
type: 'apiKey'
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
scheme: 'bearer',
|
|
626
|
+
type: 'http'
|
|
627
|
+
}
|
|
628
|
+
],
|
|
629
|
+
url: '/cas/{id}/jwt',
|
|
630
|
+
...options
|
|
631
|
+
});
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* Verify a CA
|
|
635
|
+
*
|
|
636
|
+
* Allows a CA to become verified by submitting a certificate in PEM format that has been signed by the target CA.
|
|
637
|
+
* The common name on the certificate must match the verificationToken property of the CA. Unverfieid CAs can not
|
|
638
|
+
* be used for enrollment/authentication. Requires admin access.
|
|
639
|
+
*
|
|
640
|
+
*/
|
|
641
|
+
export const verifyCa = (options) => {
|
|
642
|
+
return (options.client ?? client).post({
|
|
643
|
+
bodySerializer: null,
|
|
644
|
+
security: [
|
|
645
|
+
{
|
|
646
|
+
name: 'zt-session',
|
|
647
|
+
type: 'apiKey'
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
scheme: 'bearer',
|
|
651
|
+
type: 'http'
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
url: '/cas/{id}/verify',
|
|
655
|
+
...options,
|
|
656
|
+
headers: {
|
|
657
|
+
'Content-Type': 'text/plain',
|
|
658
|
+
...options.headers
|
|
659
|
+
}
|
|
660
|
+
});
|
|
661
|
+
};
|
|
662
|
+
/**
|
|
663
|
+
* List config-types
|
|
664
|
+
*
|
|
665
|
+
* Retrieves a list of config-type resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
666
|
+
*
|
|
667
|
+
*/
|
|
668
|
+
export const listConfigTypes = (options) => {
|
|
669
|
+
return (options?.client ?? client).get({
|
|
670
|
+
security: [
|
|
671
|
+
{
|
|
672
|
+
name: 'zt-session',
|
|
673
|
+
type: 'apiKey'
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
scheme: 'bearer',
|
|
677
|
+
type: 'http'
|
|
678
|
+
}
|
|
679
|
+
],
|
|
680
|
+
url: '/config-types',
|
|
681
|
+
...options
|
|
682
|
+
});
|
|
683
|
+
};
|
|
684
|
+
/**
|
|
685
|
+
* Create a config-type. Requires admin access.
|
|
686
|
+
*/
|
|
687
|
+
export const createConfigType = (options) => {
|
|
688
|
+
return (options.client ?? client).post({
|
|
689
|
+
security: [
|
|
690
|
+
{
|
|
691
|
+
name: 'zt-session',
|
|
692
|
+
type: 'apiKey'
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
scheme: 'bearer',
|
|
696
|
+
type: 'http'
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
url: '/config-types',
|
|
700
|
+
...options,
|
|
701
|
+
headers: {
|
|
702
|
+
'Content-Type': 'application/json',
|
|
703
|
+
...options.headers
|
|
704
|
+
}
|
|
705
|
+
});
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* Delete a config-type
|
|
709
|
+
*
|
|
710
|
+
* Delete a config-type by id. Removing a configuration type that are in use will result in a 409 conflict HTTP status code and error. All configurations of a type must be removed first.
|
|
711
|
+
*/
|
|
712
|
+
export const deleteConfigType = (options) => {
|
|
713
|
+
return (options.client ?? client).delete({
|
|
714
|
+
security: [
|
|
715
|
+
{
|
|
716
|
+
name: 'zt-session',
|
|
717
|
+
type: 'apiKey'
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
scheme: 'bearer',
|
|
721
|
+
type: 'http'
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
url: '/config-types/{id}',
|
|
725
|
+
...options
|
|
726
|
+
});
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* Retrieves a single config-type
|
|
730
|
+
*
|
|
731
|
+
* Retrieves a single config-type by id. Requires admin access.
|
|
732
|
+
*/
|
|
733
|
+
export const detailConfigType = (options) => {
|
|
734
|
+
return (options.client ?? client).get({
|
|
735
|
+
security: [
|
|
736
|
+
{
|
|
737
|
+
name: 'zt-session',
|
|
738
|
+
type: 'apiKey'
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
scheme: 'bearer',
|
|
742
|
+
type: 'http'
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
url: '/config-types/{id}',
|
|
746
|
+
...options
|
|
747
|
+
});
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* Update the supplied fields on a config-type
|
|
751
|
+
*
|
|
752
|
+
* Update the supplied fields on a config-type. Requires admin access.
|
|
753
|
+
*/
|
|
754
|
+
export const patchConfigType = (options) => {
|
|
755
|
+
return (options.client ?? client).patch({
|
|
756
|
+
security: [
|
|
757
|
+
{
|
|
758
|
+
name: 'zt-session',
|
|
759
|
+
type: 'apiKey'
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
scheme: 'bearer',
|
|
763
|
+
type: 'http'
|
|
764
|
+
}
|
|
765
|
+
],
|
|
766
|
+
url: '/config-types/{id}',
|
|
767
|
+
...options,
|
|
768
|
+
headers: {
|
|
769
|
+
'Content-Type': 'application/json',
|
|
770
|
+
...options.headers
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
};
|
|
774
|
+
/**
|
|
775
|
+
* Update all fields on a config-type
|
|
776
|
+
*
|
|
777
|
+
* Update all fields on a config-type by id. Requires admin access.
|
|
778
|
+
*/
|
|
779
|
+
export const updateConfigType = (options) => {
|
|
780
|
+
return (options.client ?? client).put({
|
|
781
|
+
security: [
|
|
782
|
+
{
|
|
783
|
+
name: 'zt-session',
|
|
784
|
+
type: 'apiKey'
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
scheme: 'bearer',
|
|
788
|
+
type: 'http'
|
|
789
|
+
}
|
|
790
|
+
],
|
|
791
|
+
url: '/config-types/{id}',
|
|
792
|
+
...options,
|
|
793
|
+
headers: {
|
|
794
|
+
'Content-Type': 'application/json',
|
|
795
|
+
...options.headers
|
|
796
|
+
}
|
|
797
|
+
});
|
|
798
|
+
};
|
|
799
|
+
/**
|
|
800
|
+
* Lists the configs of a specific config-type
|
|
801
|
+
*
|
|
802
|
+
* Lists the configs associated to a config-type. Requires admin access.
|
|
803
|
+
*/
|
|
804
|
+
export const listConfigsForConfigType = (options) => {
|
|
805
|
+
return (options.client ?? client).get({
|
|
806
|
+
security: [
|
|
807
|
+
{
|
|
808
|
+
name: 'zt-session',
|
|
809
|
+
type: 'apiKey'
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
scheme: 'bearer',
|
|
813
|
+
type: 'http'
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
url: '/config-types/{id}/configs',
|
|
817
|
+
...options
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
/**
|
|
821
|
+
* List configs
|
|
822
|
+
*
|
|
823
|
+
* Retrieves a list of config resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
824
|
+
*
|
|
825
|
+
*/
|
|
826
|
+
export const listConfigs = (options) => {
|
|
827
|
+
return (options?.client ?? client).get({
|
|
828
|
+
security: [
|
|
829
|
+
{
|
|
830
|
+
name: 'zt-session',
|
|
831
|
+
type: 'apiKey'
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
scheme: 'bearer',
|
|
835
|
+
type: 'http'
|
|
836
|
+
}
|
|
837
|
+
],
|
|
838
|
+
url: '/configs',
|
|
839
|
+
...options
|
|
840
|
+
});
|
|
841
|
+
};
|
|
842
|
+
/**
|
|
843
|
+
* Create a config resource
|
|
844
|
+
*
|
|
845
|
+
* Create a config resource. Requires admin access.
|
|
846
|
+
*/
|
|
847
|
+
export const createConfig = (options) => {
|
|
848
|
+
return (options.client ?? client).post({
|
|
849
|
+
security: [
|
|
850
|
+
{
|
|
851
|
+
name: 'zt-session',
|
|
852
|
+
type: 'apiKey'
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
scheme: 'bearer',
|
|
856
|
+
type: 'http'
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
url: '/configs',
|
|
860
|
+
...options,
|
|
861
|
+
headers: {
|
|
862
|
+
'Content-Type': 'application/json',
|
|
863
|
+
...options.headers
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* Delete a config
|
|
869
|
+
*
|
|
870
|
+
* Delete a config by id. Requires admin access.
|
|
871
|
+
*/
|
|
872
|
+
export const deleteConfig = (options) => {
|
|
873
|
+
return (options.client ?? client).delete({
|
|
874
|
+
security: [
|
|
875
|
+
{
|
|
876
|
+
name: 'zt-session',
|
|
877
|
+
type: 'apiKey'
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
scheme: 'bearer',
|
|
881
|
+
type: 'http'
|
|
882
|
+
}
|
|
883
|
+
],
|
|
884
|
+
url: '/configs/{id}',
|
|
885
|
+
...options
|
|
886
|
+
});
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* Retrieves a single config
|
|
890
|
+
*
|
|
891
|
+
* Retrieves a single config by id. Requires admin access.
|
|
892
|
+
*/
|
|
893
|
+
export const detailConfig = (options) => {
|
|
894
|
+
return (options.client ?? client).get({
|
|
895
|
+
security: [
|
|
896
|
+
{
|
|
897
|
+
name: 'zt-session',
|
|
898
|
+
type: 'apiKey'
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
scheme: 'bearer',
|
|
902
|
+
type: 'http'
|
|
903
|
+
}
|
|
904
|
+
],
|
|
905
|
+
url: '/configs/{id}',
|
|
906
|
+
...options
|
|
907
|
+
});
|
|
908
|
+
};
|
|
909
|
+
/**
|
|
910
|
+
* Update the supplied fields on a config
|
|
911
|
+
*
|
|
912
|
+
* Update the supplied fields on a config. Requires admin access.
|
|
913
|
+
*/
|
|
914
|
+
export const patchConfig = (options) => {
|
|
915
|
+
return (options.client ?? client).patch({
|
|
916
|
+
security: [
|
|
917
|
+
{
|
|
918
|
+
name: 'zt-session',
|
|
919
|
+
type: 'apiKey'
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
scheme: 'bearer',
|
|
923
|
+
type: 'http'
|
|
924
|
+
}
|
|
925
|
+
],
|
|
926
|
+
url: '/configs/{id}',
|
|
927
|
+
...options,
|
|
928
|
+
headers: {
|
|
929
|
+
'Content-Type': 'application/json',
|
|
930
|
+
...options.headers
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
};
|
|
934
|
+
/**
|
|
935
|
+
* Update all fields on a config
|
|
936
|
+
*
|
|
937
|
+
* Update all fields on a config by id. Requires admin access.
|
|
938
|
+
*/
|
|
939
|
+
export const updateConfig = (options) => {
|
|
940
|
+
return (options.client ?? client).put({
|
|
941
|
+
security: [
|
|
942
|
+
{
|
|
943
|
+
name: 'zt-session',
|
|
944
|
+
type: 'apiKey'
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
scheme: 'bearer',
|
|
948
|
+
type: 'http'
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
url: '/configs/{id}',
|
|
952
|
+
...options,
|
|
953
|
+
headers: {
|
|
954
|
+
'Content-Type': 'application/json',
|
|
955
|
+
...options.headers
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
};
|
|
959
|
+
/**
|
|
960
|
+
* List services referenced by a config
|
|
961
|
+
*
|
|
962
|
+
* Retrieves a list of service resources that reference a given config; supports filtering, sorting, and pagination. Requires admin access.
|
|
963
|
+
*
|
|
964
|
+
*/
|
|
965
|
+
export const listConfigServices = (options) => {
|
|
966
|
+
return (options.client ?? client).get({
|
|
967
|
+
security: [
|
|
968
|
+
{
|
|
969
|
+
name: 'zt-session',
|
|
970
|
+
type: 'apiKey'
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
scheme: 'bearer',
|
|
974
|
+
type: 'http'
|
|
975
|
+
}
|
|
976
|
+
],
|
|
977
|
+
url: '/configs/{id}/services',
|
|
978
|
+
...options
|
|
979
|
+
});
|
|
980
|
+
};
|
|
981
|
+
/**
|
|
982
|
+
* List controller settings
|
|
983
|
+
*
|
|
984
|
+
* Retrieves a list controller settings including the base `global` settings object and any overriding controller specific settings.
|
|
985
|
+
*
|
|
986
|
+
*/
|
|
987
|
+
export const listControllerSettings = (options) => {
|
|
988
|
+
return (options?.client ?? client).get({
|
|
989
|
+
security: [
|
|
990
|
+
{
|
|
991
|
+
name: 'zt-session',
|
|
992
|
+
type: 'apiKey'
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
scheme: 'bearer',
|
|
996
|
+
type: 'http'
|
|
997
|
+
}
|
|
998
|
+
],
|
|
999
|
+
url: '/controller-settings',
|
|
1000
|
+
...options
|
|
1001
|
+
});
|
|
1002
|
+
};
|
|
1003
|
+
/**
|
|
1004
|
+
* Create a controller specific setting
|
|
1005
|
+
*
|
|
1006
|
+
* Create a new controller specific settings object. Requires admin access.
|
|
1007
|
+
*/
|
|
1008
|
+
export const createControllerSetting = (options) => {
|
|
1009
|
+
return (options.client ?? client).post({
|
|
1010
|
+
security: [
|
|
1011
|
+
{
|
|
1012
|
+
name: 'zt-session',
|
|
1013
|
+
type: 'apiKey'
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
scheme: 'bearer',
|
|
1017
|
+
type: 'http'
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
url: '/controller-settings',
|
|
1021
|
+
...options,
|
|
1022
|
+
headers: {
|
|
1023
|
+
'Content-Type': 'application/json',
|
|
1024
|
+
...options.headers
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
};
|
|
1028
|
+
/**
|
|
1029
|
+
* Retrieves a single controller setting object.
|
|
1030
|
+
*
|
|
1031
|
+
* Retrieves a single controller setting object by id. Requires admin access.
|
|
1032
|
+
*/
|
|
1033
|
+
export const detailControllerSetting = (options) => {
|
|
1034
|
+
return (options.client ?? client).get({
|
|
1035
|
+
security: [
|
|
1036
|
+
{
|
|
1037
|
+
name: 'zt-session',
|
|
1038
|
+
type: 'apiKey'
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
scheme: 'bearer',
|
|
1042
|
+
type: 'http'
|
|
1043
|
+
}
|
|
1044
|
+
],
|
|
1045
|
+
url: '/controller-settings/{id}',
|
|
1046
|
+
...options
|
|
1047
|
+
});
|
|
1048
|
+
};
|
|
1049
|
+
/**
|
|
1050
|
+
* Delete a controller setting object
|
|
1051
|
+
*
|
|
1052
|
+
* Delete a controller setting object by id. Requires admin access.
|
|
1053
|
+
*/
|
|
1054
|
+
export const deleteControllerSetting = (options) => {
|
|
1055
|
+
return (options.client ?? client).delete({
|
|
1056
|
+
security: [
|
|
1057
|
+
{
|
|
1058
|
+
name: 'zt-session',
|
|
1059
|
+
type: 'apiKey'
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
scheme: 'bearer',
|
|
1063
|
+
type: 'http'
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
url: '/controller-settings/{id}/effective',
|
|
1067
|
+
...options
|
|
1068
|
+
});
|
|
1069
|
+
};
|
|
1070
|
+
/**
|
|
1071
|
+
* Retrieves a single controller's effective calculated settings from the instance and global configuration.
|
|
1072
|
+
*
|
|
1073
|
+
* Retrieves a single controller's effective setting object by id. Requires admin access.
|
|
1074
|
+
*/
|
|
1075
|
+
export const detailControllerSettingEffective = (options) => {
|
|
1076
|
+
return (options.client ?? client).get({
|
|
1077
|
+
security: [
|
|
1078
|
+
{
|
|
1079
|
+
name: 'zt-session',
|
|
1080
|
+
type: 'apiKey'
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
scheme: 'bearer',
|
|
1084
|
+
type: 'http'
|
|
1085
|
+
}
|
|
1086
|
+
],
|
|
1087
|
+
url: '/controller-settings/{id}/effective',
|
|
1088
|
+
...options
|
|
1089
|
+
});
|
|
1090
|
+
};
|
|
1091
|
+
/**
|
|
1092
|
+
* Update the supplied fields on a controller setting object
|
|
1093
|
+
*
|
|
1094
|
+
* Update the supplied fields on a controller setting object. Requires admin access.
|
|
1095
|
+
*/
|
|
1096
|
+
export const patchControllerSetting = (options) => {
|
|
1097
|
+
return (options.client ?? client).patch({
|
|
1098
|
+
security: [
|
|
1099
|
+
{
|
|
1100
|
+
name: 'zt-session',
|
|
1101
|
+
type: 'apiKey'
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
scheme: 'bearer',
|
|
1105
|
+
type: 'http'
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
url: '/controller-settings/{id}/effective',
|
|
1109
|
+
...options,
|
|
1110
|
+
headers: {
|
|
1111
|
+
'Content-Type': 'application/json',
|
|
1112
|
+
...options.headers
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* Update all fields on a controller setting object
|
|
1118
|
+
*
|
|
1119
|
+
* Update all fields on a controller setting object by id. Requires admin access.
|
|
1120
|
+
*/
|
|
1121
|
+
export const updateControllerSetting = (options) => {
|
|
1122
|
+
return (options.client ?? client).put({
|
|
1123
|
+
security: [
|
|
1124
|
+
{
|
|
1125
|
+
name: 'zt-session',
|
|
1126
|
+
type: 'apiKey'
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
scheme: 'bearer',
|
|
1130
|
+
type: 'http'
|
|
1131
|
+
}
|
|
1132
|
+
],
|
|
1133
|
+
url: '/controller-settings/{id}/effective',
|
|
1134
|
+
...options,
|
|
1135
|
+
headers: {
|
|
1136
|
+
'Content-Type': 'application/json',
|
|
1137
|
+
...options.headers
|
|
1138
|
+
}
|
|
1139
|
+
});
|
|
1140
|
+
};
|
|
1141
|
+
/**
|
|
1142
|
+
* List controllers
|
|
1143
|
+
*
|
|
1144
|
+
* Retrieves a list of controllers
|
|
1145
|
+
*/
|
|
1146
|
+
export const listControllers = (options) => {
|
|
1147
|
+
return (options?.client ?? client).get({
|
|
1148
|
+
security: [
|
|
1149
|
+
{
|
|
1150
|
+
name: 'zt-session',
|
|
1151
|
+
type: 'apiKey'
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
scheme: 'bearer',
|
|
1155
|
+
type: 'http'
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
url: '/controllers',
|
|
1159
|
+
...options
|
|
1160
|
+
});
|
|
1161
|
+
};
|
|
1162
|
+
/**
|
|
1163
|
+
* Logout
|
|
1164
|
+
*
|
|
1165
|
+
* Terminates the current API session
|
|
1166
|
+
*/
|
|
1167
|
+
export const deleteCurrentApiSession = (options) => {
|
|
1168
|
+
return (options?.client ?? client).delete({
|
|
1169
|
+
security: [
|
|
1170
|
+
{
|
|
1171
|
+
name: 'zt-session',
|
|
1172
|
+
type: 'apiKey'
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
scheme: 'bearer',
|
|
1176
|
+
type: 'http'
|
|
1177
|
+
}
|
|
1178
|
+
],
|
|
1179
|
+
url: '/current-api-session',
|
|
1180
|
+
...options
|
|
1181
|
+
});
|
|
1182
|
+
};
|
|
1183
|
+
/**
|
|
1184
|
+
* Return the current API session
|
|
1185
|
+
*
|
|
1186
|
+
* Retrieves the API session that was used to issue the current request
|
|
1187
|
+
*/
|
|
1188
|
+
export const getCurrentApiSession = (options) => {
|
|
1189
|
+
return (options?.client ?? client).get({
|
|
1190
|
+
security: [
|
|
1191
|
+
{
|
|
1192
|
+
name: 'zt-session',
|
|
1193
|
+
type: 'apiKey'
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
scheme: 'bearer',
|
|
1197
|
+
type: 'http'
|
|
1198
|
+
}
|
|
1199
|
+
],
|
|
1200
|
+
url: '/current-api-session',
|
|
1201
|
+
...options
|
|
1202
|
+
});
|
|
1203
|
+
};
|
|
1204
|
+
/**
|
|
1205
|
+
* Create an MFA TOTP token that proves TOTP code checking has passed as a specific time for posture checks.
|
|
1206
|
+
*
|
|
1207
|
+
* Creates a TOTP token that proves TOTP validation occurred at a specific time. Used in posture response for posture checks.
|
|
1208
|
+
*
|
|
1209
|
+
*/
|
|
1210
|
+
export const createTotpToken = (options) => {
|
|
1211
|
+
return (options.client ?? client).post({
|
|
1212
|
+
security: [
|
|
1213
|
+
{
|
|
1214
|
+
name: 'zt-session',
|
|
1215
|
+
type: 'apiKey'
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
scheme: 'bearer',
|
|
1219
|
+
type: 'http'
|
|
1220
|
+
}
|
|
1221
|
+
],
|
|
1222
|
+
url: '/current-api-session/totp-token',
|
|
1223
|
+
...options,
|
|
1224
|
+
headers: {
|
|
1225
|
+
'Content-Type': 'application/json',
|
|
1226
|
+
...options.headers
|
|
1227
|
+
}
|
|
1228
|
+
});
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* Return the current identity
|
|
1232
|
+
*
|
|
1233
|
+
* Returns the identity associated with the API sessions used to issue the current request
|
|
1234
|
+
*/
|
|
1235
|
+
export const getCurrentIdentity = (options) => {
|
|
1236
|
+
return (options?.client ?? client).get({
|
|
1237
|
+
security: [
|
|
1238
|
+
{
|
|
1239
|
+
name: 'zt-session',
|
|
1240
|
+
type: 'apiKey'
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
scheme: 'bearer',
|
|
1244
|
+
type: 'http'
|
|
1245
|
+
}
|
|
1246
|
+
],
|
|
1247
|
+
url: '/current-identity',
|
|
1248
|
+
...options
|
|
1249
|
+
});
|
|
1250
|
+
};
|
|
1251
|
+
/**
|
|
1252
|
+
* List authenticators for the current identity
|
|
1253
|
+
*
|
|
1254
|
+
* Retrieves a list of authenticators assigned to the current API session's identity; supports filtering, sorting, and pagination.
|
|
1255
|
+
*/
|
|
1256
|
+
export const listCurrentIdentityAuthenticators = (options) => {
|
|
1257
|
+
return (options?.client ?? client).get({
|
|
1258
|
+
security: [
|
|
1259
|
+
{
|
|
1260
|
+
name: 'zt-session',
|
|
1261
|
+
type: 'apiKey'
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
scheme: 'bearer',
|
|
1265
|
+
type: 'http'
|
|
1266
|
+
}
|
|
1267
|
+
],
|
|
1268
|
+
url: '/current-identity/authenticators',
|
|
1269
|
+
...options
|
|
1270
|
+
});
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* Retrieve an authenticator for the current identity
|
|
1274
|
+
*
|
|
1275
|
+
* Retrieves a single authenticator by id. Will only show authenticators assigned to the API session's identity.
|
|
1276
|
+
*/
|
|
1277
|
+
export const detailCurrentIdentityAuthenticator = (options) => {
|
|
1278
|
+
return (options.client ?? client).get({
|
|
1279
|
+
security: [
|
|
1280
|
+
{
|
|
1281
|
+
name: 'zt-session',
|
|
1282
|
+
type: 'apiKey'
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
scheme: 'bearer',
|
|
1286
|
+
type: 'http'
|
|
1287
|
+
}
|
|
1288
|
+
],
|
|
1289
|
+
url: '/current-identity/authenticators/{id}',
|
|
1290
|
+
...options
|
|
1291
|
+
});
|
|
1292
|
+
};
|
|
1293
|
+
/**
|
|
1294
|
+
* Update the supplied fields on an authenticator of this identity
|
|
1295
|
+
*
|
|
1296
|
+
* Update the supplied fields on an authenticator by id. Will only update authenticators assigned to the API
|
|
1297
|
+
* session's identity.
|
|
1298
|
+
*
|
|
1299
|
+
*/
|
|
1300
|
+
export const patchCurrentIdentityAuthenticator = (options) => {
|
|
1301
|
+
return (options.client ?? client).patch({
|
|
1302
|
+
security: [
|
|
1303
|
+
{
|
|
1304
|
+
name: 'zt-session',
|
|
1305
|
+
type: 'apiKey'
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
scheme: 'bearer',
|
|
1309
|
+
type: 'http'
|
|
1310
|
+
}
|
|
1311
|
+
],
|
|
1312
|
+
url: '/current-identity/authenticators/{id}',
|
|
1313
|
+
...options,
|
|
1314
|
+
headers: {
|
|
1315
|
+
'Content-Type': 'application/json',
|
|
1316
|
+
...options.headers
|
|
1317
|
+
}
|
|
1318
|
+
});
|
|
1319
|
+
};
|
|
1320
|
+
/**
|
|
1321
|
+
* Update all fields on an authenticator of this identity
|
|
1322
|
+
*
|
|
1323
|
+
* Update all fields on an authenticator by id. Will only update authenticators assigned to the API session's
|
|
1324
|
+
* identity.
|
|
1325
|
+
*
|
|
1326
|
+
*/
|
|
1327
|
+
export const updateCurrentIdentityAuthenticator = (options) => {
|
|
1328
|
+
return (options.client ?? client).put({
|
|
1329
|
+
security: [
|
|
1330
|
+
{
|
|
1331
|
+
name: 'zt-session',
|
|
1332
|
+
type: 'apiKey'
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
scheme: 'bearer',
|
|
1336
|
+
type: 'http'
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
url: '/current-identity/authenticators/{id}',
|
|
1340
|
+
...options,
|
|
1341
|
+
headers: {
|
|
1342
|
+
'Content-Type': 'application/json',
|
|
1343
|
+
...options.headers
|
|
1344
|
+
}
|
|
1345
|
+
});
|
|
1346
|
+
};
|
|
1347
|
+
/**
|
|
1348
|
+
* Allows the current identity to recieve a new certificate associated with a certificate based authenticator
|
|
1349
|
+
*
|
|
1350
|
+
* This endpoint only functions for certificates issued by the controller. 3rd party certificates are not handled.
|
|
1351
|
+
* Allows an identity to extend its certificate's expiration date by using its current and valid client certificate to submit a CSR. This CSR may be passed in using a new private key, thus allowing private key rotation.
|
|
1352
|
+
* The response from this endpoint is a new client certificate which the client must be verified via the /authenticators/{id}/extend-verify endpoint.
|
|
1353
|
+
* After verification is completion any new connections must be made with new certificate. Prior to verification the old client certificate remains active.
|
|
1354
|
+
*/
|
|
1355
|
+
export const extendCurrentIdentityAuthenticator = (options) => {
|
|
1356
|
+
return (options.client ?? client).post({
|
|
1357
|
+
security: [
|
|
1358
|
+
{
|
|
1359
|
+
name: 'zt-session',
|
|
1360
|
+
type: 'apiKey'
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
scheme: 'bearer',
|
|
1364
|
+
type: 'http'
|
|
1365
|
+
}
|
|
1366
|
+
],
|
|
1367
|
+
url: '/current-identity/authenticators/{id}/extend',
|
|
1368
|
+
...options,
|
|
1369
|
+
headers: {
|
|
1370
|
+
'Content-Type': 'application/json',
|
|
1371
|
+
...options.headers
|
|
1372
|
+
}
|
|
1373
|
+
});
|
|
1374
|
+
};
|
|
1375
|
+
/**
|
|
1376
|
+
* Allows the current identity to validate reciept of a new client certificate
|
|
1377
|
+
*
|
|
1378
|
+
* After submitting a CSR for a new client certificate the resulting public certificate must be re-submitted to this endpoint to verify receipt.
|
|
1379
|
+
* After receipt, the new client certificate must be used for new authentication requests.
|
|
1380
|
+
*/
|
|
1381
|
+
export const extendVerifyCurrentIdentityAuthenticator = (options) => {
|
|
1382
|
+
return (options.client ?? client).post({
|
|
1383
|
+
security: [
|
|
1384
|
+
{
|
|
1385
|
+
name: 'zt-session',
|
|
1386
|
+
type: 'apiKey'
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
scheme: 'bearer',
|
|
1390
|
+
type: 'http'
|
|
1391
|
+
}
|
|
1392
|
+
],
|
|
1393
|
+
url: '/current-identity/authenticators/{id}/extend-verify',
|
|
1394
|
+
...options,
|
|
1395
|
+
headers: {
|
|
1396
|
+
'Content-Type': 'application/json',
|
|
1397
|
+
...options.headers
|
|
1398
|
+
}
|
|
1399
|
+
});
|
|
1400
|
+
};
|
|
1401
|
+
/**
|
|
1402
|
+
* Disable MFA for the current identity
|
|
1403
|
+
*
|
|
1404
|
+
* Disable MFA for the current identity. Requires a current valid time based one time password if MFA enrollment has been completed. If not, code should be an empty string. If one time passwords are not available and admin account can be used to remove MFA from the identity via `DELETE /identities/<id>/mfa`.
|
|
1405
|
+
*
|
|
1406
|
+
*/
|
|
1407
|
+
export const deleteMfa = (options) => {
|
|
1408
|
+
return (options?.client ?? client).delete({
|
|
1409
|
+
security: [
|
|
1410
|
+
{
|
|
1411
|
+
name: 'zt-session',
|
|
1412
|
+
type: 'apiKey'
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
scheme: 'bearer',
|
|
1416
|
+
type: 'http'
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
url: '/current-identity/mfa',
|
|
1420
|
+
...options
|
|
1421
|
+
});
|
|
1422
|
+
};
|
|
1423
|
+
/**
|
|
1424
|
+
* Returns the current status of MFA enrollment
|
|
1425
|
+
*
|
|
1426
|
+
* Returns details about the current MFA enrollment. If enrollment has not been completed it will return the current MFA configuration details necessary to complete a `POST /current-identity/mfa/verify`.
|
|
1427
|
+
*
|
|
1428
|
+
*/
|
|
1429
|
+
export const detailMfa = (options) => {
|
|
1430
|
+
return (options?.client ?? client).get({
|
|
1431
|
+
security: [
|
|
1432
|
+
{
|
|
1433
|
+
name: 'zt-session',
|
|
1434
|
+
type: 'apiKey'
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
scheme: 'bearer',
|
|
1438
|
+
type: 'http'
|
|
1439
|
+
}
|
|
1440
|
+
],
|
|
1441
|
+
url: '/current-identity/mfa',
|
|
1442
|
+
...options
|
|
1443
|
+
});
|
|
1444
|
+
};
|
|
1445
|
+
/**
|
|
1446
|
+
* Initiate MFA enrollment
|
|
1447
|
+
*
|
|
1448
|
+
* Allows authenticator based MFA enrollment. If enrollment has already been completed, it must be disabled before attempting to re-enroll. Subsequent enrollment request is completed via `POST /current-identity/mfa/verify`
|
|
1449
|
+
*
|
|
1450
|
+
*/
|
|
1451
|
+
export const enrollMfa = (options) => {
|
|
1452
|
+
return (options?.client ?? client).post({
|
|
1453
|
+
security: [
|
|
1454
|
+
{
|
|
1455
|
+
name: 'zt-session',
|
|
1456
|
+
type: 'apiKey'
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
scheme: 'bearer',
|
|
1460
|
+
type: 'http'
|
|
1461
|
+
}
|
|
1462
|
+
],
|
|
1463
|
+
url: '/current-identity/mfa',
|
|
1464
|
+
...options
|
|
1465
|
+
});
|
|
1466
|
+
};
|
|
1467
|
+
/**
|
|
1468
|
+
* Show a QR code for unverified MFA enrollments
|
|
1469
|
+
*
|
|
1470
|
+
* Shows an QR code image for unverified MFA enrollments. 404s if the MFA enrollment has been completed or not started.
|
|
1471
|
+
*
|
|
1472
|
+
*/
|
|
1473
|
+
export const detailMfaQrCode = (options) => {
|
|
1474
|
+
return (options?.client ?? client).get({
|
|
1475
|
+
security: [
|
|
1476
|
+
{
|
|
1477
|
+
name: 'zt-session',
|
|
1478
|
+
type: 'apiKey'
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
scheme: 'bearer',
|
|
1482
|
+
type: 'http'
|
|
1483
|
+
}
|
|
1484
|
+
],
|
|
1485
|
+
url: '/current-identity/mfa/qr-code',
|
|
1486
|
+
...options
|
|
1487
|
+
});
|
|
1488
|
+
};
|
|
1489
|
+
/**
|
|
1490
|
+
* For a completed MFA enrollment view the current recovery codes
|
|
1491
|
+
*
|
|
1492
|
+
* Allows the viewing of recovery codes of an MFA enrollment. Requires a current valid time based one time password to interact with. Available after a completed MFA enrollment.
|
|
1493
|
+
*
|
|
1494
|
+
*/
|
|
1495
|
+
export const detailMfaRecoveryCodes = (options) => {
|
|
1496
|
+
return (options?.client ?? client).get({
|
|
1497
|
+
security: [
|
|
1498
|
+
{
|
|
1499
|
+
name: 'zt-session',
|
|
1500
|
+
type: 'apiKey'
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
scheme: 'bearer',
|
|
1504
|
+
type: 'http'
|
|
1505
|
+
}
|
|
1506
|
+
],
|
|
1507
|
+
url: '/current-identity/mfa/recovery-codes',
|
|
1508
|
+
...options,
|
|
1509
|
+
headers: {
|
|
1510
|
+
'Content-Type': 'application/json',
|
|
1511
|
+
...options?.headers
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1514
|
+
};
|
|
1515
|
+
/**
|
|
1516
|
+
* For a completed MFA enrollment regenerate the recovery codes
|
|
1517
|
+
*
|
|
1518
|
+
* Allows regeneration of recovery codes of an MFA enrollment. Requires a current valid time based one time password to interact with. Available after a completed MFA enrollment. This replaces all existing recovery codes.
|
|
1519
|
+
*
|
|
1520
|
+
*/
|
|
1521
|
+
export const createMfaRecoveryCodes = (options) => {
|
|
1522
|
+
return (options.client ?? client).post({
|
|
1523
|
+
security: [
|
|
1524
|
+
{
|
|
1525
|
+
name: 'zt-session',
|
|
1526
|
+
type: 'apiKey'
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
scheme: 'bearer',
|
|
1530
|
+
type: 'http'
|
|
1531
|
+
}
|
|
1532
|
+
],
|
|
1533
|
+
url: '/current-identity/mfa/recovery-codes',
|
|
1534
|
+
...options,
|
|
1535
|
+
headers: {
|
|
1536
|
+
'Content-Type': 'application/json',
|
|
1537
|
+
...options.headers
|
|
1538
|
+
}
|
|
1539
|
+
});
|
|
1540
|
+
};
|
|
1541
|
+
/**
|
|
1542
|
+
* Complete MFA enrollment by verifying a time based one time token
|
|
1543
|
+
*
|
|
1544
|
+
* Completes MFA enrollment by accepting a time based one time password as verification. Called after MFA enrollment has been initiated via `POST /current-identity/mfa`.
|
|
1545
|
+
*
|
|
1546
|
+
*/
|
|
1547
|
+
export const verifyMfa = (options) => {
|
|
1548
|
+
return (options.client ?? client).post({
|
|
1549
|
+
security: [
|
|
1550
|
+
{
|
|
1551
|
+
name: 'zt-session',
|
|
1552
|
+
type: 'apiKey'
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
scheme: 'bearer',
|
|
1556
|
+
type: 'http'
|
|
1557
|
+
}
|
|
1558
|
+
],
|
|
1559
|
+
url: '/current-identity/mfa/verify',
|
|
1560
|
+
...options,
|
|
1561
|
+
headers: {
|
|
1562
|
+
'Content-Type': 'application/json',
|
|
1563
|
+
...options.headers
|
|
1564
|
+
}
|
|
1565
|
+
});
|
|
1566
|
+
};
|
|
1567
|
+
/**
|
|
1568
|
+
* Starts a data integrity scan on the datastore
|
|
1569
|
+
*
|
|
1570
|
+
* Starts a data integrity scan on the datastore. Requires admin access. Only once instance may run at a time, including runs of fixDataIntegrity.
|
|
1571
|
+
*/
|
|
1572
|
+
export const checkDataIntegrity = (options) => {
|
|
1573
|
+
return (options?.client ?? client).post({
|
|
1574
|
+
security: [
|
|
1575
|
+
{
|
|
1576
|
+
name: 'zt-session',
|
|
1577
|
+
type: 'apiKey'
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
scheme: 'bearer',
|
|
1581
|
+
type: 'http'
|
|
1582
|
+
}
|
|
1583
|
+
],
|
|
1584
|
+
url: '/database/check-data-integrity',
|
|
1585
|
+
...options
|
|
1586
|
+
});
|
|
1587
|
+
};
|
|
1588
|
+
/**
|
|
1589
|
+
* Returns any results found from in-progress integrity checks
|
|
1590
|
+
*
|
|
1591
|
+
* Returns any results found from in-progress integrity checks. Requires admin access.
|
|
1592
|
+
*/
|
|
1593
|
+
export const dataIntegrityResults = (options) => {
|
|
1594
|
+
return (options?.client ?? client).get({
|
|
1595
|
+
security: [
|
|
1596
|
+
{
|
|
1597
|
+
name: 'zt-session',
|
|
1598
|
+
type: 'apiKey'
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
scheme: 'bearer',
|
|
1602
|
+
type: 'http'
|
|
1603
|
+
}
|
|
1604
|
+
],
|
|
1605
|
+
url: '/database/data-integrity-results',
|
|
1606
|
+
...options
|
|
1607
|
+
});
|
|
1608
|
+
};
|
|
1609
|
+
/**
|
|
1610
|
+
* Runs a data integrity scan on the datastore, attempts to fix any issues it can and returns any found issues
|
|
1611
|
+
*
|
|
1612
|
+
* Runs a data integrity scan on the datastore, attempts to fix any issues it can, and returns any found issues. Requires admin access. Only once instance may run at a time, including runs of checkDataIntegrity.
|
|
1613
|
+
*/
|
|
1614
|
+
export const fixDataIntegrity = (options) => {
|
|
1615
|
+
return (options?.client ?? client).post({
|
|
1616
|
+
security: [
|
|
1617
|
+
{
|
|
1618
|
+
name: 'zt-session',
|
|
1619
|
+
type: 'apiKey'
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
scheme: 'bearer',
|
|
1623
|
+
type: 'http'
|
|
1624
|
+
}
|
|
1625
|
+
],
|
|
1626
|
+
url: '/database/fix-data-integrity',
|
|
1627
|
+
...options
|
|
1628
|
+
});
|
|
1629
|
+
};
|
|
1630
|
+
/**
|
|
1631
|
+
* Create a new database snapshot
|
|
1632
|
+
*
|
|
1633
|
+
* Create a new database snapshot. Requires admin access.
|
|
1634
|
+
*/
|
|
1635
|
+
export const createDatabaseSnapshot = (options) => {
|
|
1636
|
+
return (options?.client ?? client).post({
|
|
1637
|
+
security: [
|
|
1638
|
+
{
|
|
1639
|
+
name: 'zt-session',
|
|
1640
|
+
type: 'apiKey'
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
scheme: 'bearer',
|
|
1644
|
+
type: 'http'
|
|
1645
|
+
}
|
|
1646
|
+
],
|
|
1647
|
+
url: '/database/snapshot',
|
|
1648
|
+
...options
|
|
1649
|
+
});
|
|
1650
|
+
};
|
|
1651
|
+
/**
|
|
1652
|
+
* List edge router policies
|
|
1653
|
+
*
|
|
1654
|
+
* Retrieves a list of edge router policy resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
1655
|
+
*
|
|
1656
|
+
*/
|
|
1657
|
+
export const listEdgeRouterPolicies = (options) => {
|
|
1658
|
+
return (options?.client ?? client).get({
|
|
1659
|
+
security: [
|
|
1660
|
+
{
|
|
1661
|
+
name: 'zt-session',
|
|
1662
|
+
type: 'apiKey'
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
scheme: 'bearer',
|
|
1666
|
+
type: 'http'
|
|
1667
|
+
}
|
|
1668
|
+
],
|
|
1669
|
+
url: '/edge-router-policies',
|
|
1670
|
+
...options
|
|
1671
|
+
});
|
|
1672
|
+
};
|
|
1673
|
+
/**
|
|
1674
|
+
* Create an edge router policy resource
|
|
1675
|
+
*
|
|
1676
|
+
* Create an edge router policy resource. Requires admin access.
|
|
1677
|
+
*/
|
|
1678
|
+
export const createEdgeRouterPolicy = (options) => {
|
|
1679
|
+
return (options.client ?? client).post({
|
|
1680
|
+
security: [
|
|
1681
|
+
{
|
|
1682
|
+
name: 'zt-session',
|
|
1683
|
+
type: 'apiKey'
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
scheme: 'bearer',
|
|
1687
|
+
type: 'http'
|
|
1688
|
+
}
|
|
1689
|
+
],
|
|
1690
|
+
url: '/edge-router-policies',
|
|
1691
|
+
...options,
|
|
1692
|
+
headers: {
|
|
1693
|
+
'Content-Type': 'application/json',
|
|
1694
|
+
...options.headers
|
|
1695
|
+
}
|
|
1696
|
+
});
|
|
1697
|
+
};
|
|
1698
|
+
/**
|
|
1699
|
+
* Delete an edge router policy
|
|
1700
|
+
*
|
|
1701
|
+
* Delete an edge router policy by id. Requires admin access.
|
|
1702
|
+
*/
|
|
1703
|
+
export const deleteEdgeRouterPolicy = (options) => {
|
|
1704
|
+
return (options.client ?? client).delete({
|
|
1705
|
+
security: [
|
|
1706
|
+
{
|
|
1707
|
+
name: 'zt-session',
|
|
1708
|
+
type: 'apiKey'
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
scheme: 'bearer',
|
|
1712
|
+
type: 'http'
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1715
|
+
url: '/edge-router-policies/{id}',
|
|
1716
|
+
...options
|
|
1717
|
+
});
|
|
1718
|
+
};
|
|
1719
|
+
/**
|
|
1720
|
+
* Retrieves a single edge router policy
|
|
1721
|
+
*
|
|
1722
|
+
* Retrieves a single edge router policy by id. Requires admin access.
|
|
1723
|
+
*/
|
|
1724
|
+
export const detailEdgeRouterPolicy = (options) => {
|
|
1725
|
+
return (options.client ?? client).get({
|
|
1726
|
+
security: [
|
|
1727
|
+
{
|
|
1728
|
+
name: 'zt-session',
|
|
1729
|
+
type: 'apiKey'
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
scheme: 'bearer',
|
|
1733
|
+
type: 'http'
|
|
1734
|
+
}
|
|
1735
|
+
],
|
|
1736
|
+
url: '/edge-router-policies/{id}',
|
|
1737
|
+
...options
|
|
1738
|
+
});
|
|
1739
|
+
};
|
|
1740
|
+
/**
|
|
1741
|
+
* Update the supplied fields on an edge router policy
|
|
1742
|
+
*
|
|
1743
|
+
* Update the supplied fields on an edge router policy. Requires admin access.
|
|
1744
|
+
*/
|
|
1745
|
+
export const patchEdgeRouterPolicy = (options) => {
|
|
1746
|
+
return (options.client ?? client).patch({
|
|
1747
|
+
security: [
|
|
1748
|
+
{
|
|
1749
|
+
name: 'zt-session',
|
|
1750
|
+
type: 'apiKey'
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
scheme: 'bearer',
|
|
1754
|
+
type: 'http'
|
|
1755
|
+
}
|
|
1756
|
+
],
|
|
1757
|
+
url: '/edge-router-policies/{id}',
|
|
1758
|
+
...options,
|
|
1759
|
+
headers: {
|
|
1760
|
+
'Content-Type': 'application/json',
|
|
1761
|
+
...options.headers
|
|
1762
|
+
}
|
|
1763
|
+
});
|
|
1764
|
+
};
|
|
1765
|
+
/**
|
|
1766
|
+
* Update all fields on an edge router policy
|
|
1767
|
+
*
|
|
1768
|
+
* Update all fields on an edge router policy by id. Requires admin access.
|
|
1769
|
+
*/
|
|
1770
|
+
export const updateEdgeRouterPolicy = (options) => {
|
|
1771
|
+
return (options.client ?? client).put({
|
|
1772
|
+
security: [
|
|
1773
|
+
{
|
|
1774
|
+
name: 'zt-session',
|
|
1775
|
+
type: 'apiKey'
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
scheme: 'bearer',
|
|
1779
|
+
type: 'http'
|
|
1780
|
+
}
|
|
1781
|
+
],
|
|
1782
|
+
url: '/edge-router-policies/{id}',
|
|
1783
|
+
...options,
|
|
1784
|
+
headers: {
|
|
1785
|
+
'Content-Type': 'application/json',
|
|
1786
|
+
...options.headers
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1789
|
+
};
|
|
1790
|
+
/**
|
|
1791
|
+
* List edge routers a policy affects
|
|
1792
|
+
*
|
|
1793
|
+
* Retrieves a list of edge routers an edge router policy resources affects; supports filtering, sorting, and pagination. Requires admin access.
|
|
1794
|
+
*
|
|
1795
|
+
*/
|
|
1796
|
+
export const listEdgeRouterPolicyEdgeRouters = (options) => {
|
|
1797
|
+
return (options.client ?? client).get({
|
|
1798
|
+
security: [
|
|
1799
|
+
{
|
|
1800
|
+
name: 'zt-session',
|
|
1801
|
+
type: 'apiKey'
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
scheme: 'bearer',
|
|
1805
|
+
type: 'http'
|
|
1806
|
+
}
|
|
1807
|
+
],
|
|
1808
|
+
url: '/edge-router-policies/{id}/edge-routers',
|
|
1809
|
+
...options
|
|
1810
|
+
});
|
|
1811
|
+
};
|
|
1812
|
+
/**
|
|
1813
|
+
* List identities an edge router policy affects
|
|
1814
|
+
*
|
|
1815
|
+
* Retrieves a list of identities an edge router policy resources affects; supports filtering, sorting, and pagination. Requires admin access.
|
|
1816
|
+
*
|
|
1817
|
+
*/
|
|
1818
|
+
export const listEdgeRouterPolicyIdentities = (options) => {
|
|
1819
|
+
return (options.client ?? client).get({
|
|
1820
|
+
security: [
|
|
1821
|
+
{
|
|
1822
|
+
name: 'zt-session',
|
|
1823
|
+
type: 'apiKey'
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
scheme: 'bearer',
|
|
1827
|
+
type: 'http'
|
|
1828
|
+
}
|
|
1829
|
+
],
|
|
1830
|
+
url: '/edge-router-policies/{id}/identities',
|
|
1831
|
+
...options
|
|
1832
|
+
});
|
|
1833
|
+
};
|
|
1834
|
+
/**
|
|
1835
|
+
* List role attributes in use by edge routers
|
|
1836
|
+
*
|
|
1837
|
+
* Retrieves a list of role attributes in use by edge routers; supports filtering, sorting, and pagination. Requires admin access.
|
|
1838
|
+
*
|
|
1839
|
+
*/
|
|
1840
|
+
export const listEdgeRouterRoleAttributes = (options) => {
|
|
1841
|
+
return (options?.client ?? client).get({
|
|
1842
|
+
security: [
|
|
1843
|
+
{
|
|
1844
|
+
name: 'zt-session',
|
|
1845
|
+
type: 'apiKey'
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
scheme: 'bearer',
|
|
1849
|
+
type: 'http'
|
|
1850
|
+
}
|
|
1851
|
+
],
|
|
1852
|
+
url: '/edge-router-role-attributes',
|
|
1853
|
+
...options
|
|
1854
|
+
});
|
|
1855
|
+
};
|
|
1856
|
+
/**
|
|
1857
|
+
* List edge routers
|
|
1858
|
+
*
|
|
1859
|
+
* Retrieves a list of edge router resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
1860
|
+
*
|
|
1861
|
+
*/
|
|
1862
|
+
export const listEdgeRouters = (options) => {
|
|
1863
|
+
return (options?.client ?? client).get({
|
|
1864
|
+
security: [
|
|
1865
|
+
{
|
|
1866
|
+
name: 'zt-session',
|
|
1867
|
+
type: 'apiKey'
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
scheme: 'bearer',
|
|
1871
|
+
type: 'http'
|
|
1872
|
+
}
|
|
1873
|
+
],
|
|
1874
|
+
url: '/edge-routers',
|
|
1875
|
+
...options
|
|
1876
|
+
});
|
|
1877
|
+
};
|
|
1878
|
+
/**
|
|
1879
|
+
* Create an edge router
|
|
1880
|
+
*
|
|
1881
|
+
* Create a edge router resource. Requires admin access.
|
|
1882
|
+
*/
|
|
1883
|
+
export const createEdgeRouter = (options) => {
|
|
1884
|
+
return (options.client ?? client).post({
|
|
1885
|
+
security: [
|
|
1886
|
+
{
|
|
1887
|
+
name: 'zt-session',
|
|
1888
|
+
type: 'apiKey'
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
scheme: 'bearer',
|
|
1892
|
+
type: 'http'
|
|
1893
|
+
}
|
|
1894
|
+
],
|
|
1895
|
+
url: '/edge-routers',
|
|
1896
|
+
...options,
|
|
1897
|
+
headers: {
|
|
1898
|
+
'Content-Type': 'application/json',
|
|
1899
|
+
...options.headers
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
};
|
|
1903
|
+
/**
|
|
1904
|
+
* Delete an edge router
|
|
1905
|
+
*
|
|
1906
|
+
* Delete an edge router by id. Requires admin access.
|
|
1907
|
+
*/
|
|
1908
|
+
export const deleteEdgeRouter = (options) => {
|
|
1909
|
+
return (options.client ?? client).delete({
|
|
1910
|
+
security: [
|
|
1911
|
+
{
|
|
1912
|
+
name: 'zt-session',
|
|
1913
|
+
type: 'apiKey'
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
scheme: 'bearer',
|
|
1917
|
+
type: 'http'
|
|
1918
|
+
}
|
|
1919
|
+
],
|
|
1920
|
+
url: '/edge-routers/{id}',
|
|
1921
|
+
...options
|
|
1922
|
+
});
|
|
1923
|
+
};
|
|
1924
|
+
/**
|
|
1925
|
+
* Retrieves a single edge router
|
|
1926
|
+
*
|
|
1927
|
+
* Retrieves a single edge router by id. Requires admin access.
|
|
1928
|
+
*/
|
|
1929
|
+
export const detailEdgeRouter = (options) => {
|
|
1930
|
+
return (options.client ?? client).get({
|
|
1931
|
+
security: [
|
|
1932
|
+
{
|
|
1933
|
+
name: 'zt-session',
|
|
1934
|
+
type: 'apiKey'
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
scheme: 'bearer',
|
|
1938
|
+
type: 'http'
|
|
1939
|
+
}
|
|
1940
|
+
],
|
|
1941
|
+
url: '/edge-routers/{id}',
|
|
1942
|
+
...options
|
|
1943
|
+
});
|
|
1944
|
+
};
|
|
1945
|
+
/**
|
|
1946
|
+
* Update the supplied fields on an edge router
|
|
1947
|
+
*
|
|
1948
|
+
* Update the supplied fields on an edge router. Requires admin access.
|
|
1949
|
+
*/
|
|
1950
|
+
export const patchEdgeRouter = (options) => {
|
|
1951
|
+
return (options.client ?? client).patch({
|
|
1952
|
+
security: [
|
|
1953
|
+
{
|
|
1954
|
+
name: 'zt-session',
|
|
1955
|
+
type: 'apiKey'
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
scheme: 'bearer',
|
|
1959
|
+
type: 'http'
|
|
1960
|
+
}
|
|
1961
|
+
],
|
|
1962
|
+
url: '/edge-routers/{id}',
|
|
1963
|
+
...options,
|
|
1964
|
+
headers: {
|
|
1965
|
+
'Content-Type': 'application/json',
|
|
1966
|
+
...options.headers
|
|
1967
|
+
}
|
|
1968
|
+
});
|
|
1969
|
+
};
|
|
1970
|
+
/**
|
|
1971
|
+
* Update all fields on an edge router
|
|
1972
|
+
*
|
|
1973
|
+
* Update all fields on an edge router by id. Requires admin access.
|
|
1974
|
+
*/
|
|
1975
|
+
export const updateEdgeRouter = (options) => {
|
|
1976
|
+
return (options.client ?? client).put({
|
|
1977
|
+
security: [
|
|
1978
|
+
{
|
|
1979
|
+
name: 'zt-session',
|
|
1980
|
+
type: 'apiKey'
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
scheme: 'bearer',
|
|
1984
|
+
type: 'http'
|
|
1985
|
+
}
|
|
1986
|
+
],
|
|
1987
|
+
url: '/edge-routers/{id}',
|
|
1988
|
+
...options,
|
|
1989
|
+
headers: {
|
|
1990
|
+
'Content-Type': 'application/json',
|
|
1991
|
+
...options.headers
|
|
1992
|
+
}
|
|
1993
|
+
});
|
|
1994
|
+
};
|
|
1995
|
+
/**
|
|
1996
|
+
* List the edge router policies that affect an edge router
|
|
1997
|
+
*
|
|
1998
|
+
* Retrieves a list of edge router policies that apply to the specified edge router.
|
|
1999
|
+
*/
|
|
2000
|
+
export const listEdgeRouterEdgeRouterPolicies = (options) => {
|
|
2001
|
+
return (options.client ?? client).get({
|
|
2002
|
+
security: [
|
|
2003
|
+
{
|
|
2004
|
+
name: 'zt-session',
|
|
2005
|
+
type: 'apiKey'
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
scheme: 'bearer',
|
|
2009
|
+
type: 'http'
|
|
2010
|
+
}
|
|
2011
|
+
],
|
|
2012
|
+
url: '/edge-routers/{id}/edge-router-policies',
|
|
2013
|
+
...options
|
|
2014
|
+
});
|
|
2015
|
+
};
|
|
2016
|
+
/**
|
|
2017
|
+
* List associated identities
|
|
2018
|
+
*
|
|
2019
|
+
* Retrieves a list of identities that may access services via the given edge router. Supports filtering, sorting, and pagination. Requires admin access.
|
|
2020
|
+
*
|
|
2021
|
+
*/
|
|
2022
|
+
export const listEdgeRouterIdentities = (options) => {
|
|
2023
|
+
return (options.client ?? client).get({
|
|
2024
|
+
security: [
|
|
2025
|
+
{
|
|
2026
|
+
name: 'zt-session',
|
|
2027
|
+
type: 'apiKey'
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
scheme: 'bearer',
|
|
2031
|
+
type: 'http'
|
|
2032
|
+
}
|
|
2033
|
+
],
|
|
2034
|
+
url: '/edge-routers/{id}/identities',
|
|
2035
|
+
...options
|
|
2036
|
+
});
|
|
2037
|
+
};
|
|
2038
|
+
/**
|
|
2039
|
+
* Re-enroll an edge router
|
|
2040
|
+
*
|
|
2041
|
+
* Removes current certificate based authentication mechanisms and reverts the edge router into a state where enrollment must be performed.
|
|
2042
|
+
* The router retains all other properties and associations. If the router is currently connected, it will be disconnected and any
|
|
2043
|
+
* attemps to reconnect will fail until the enrollment process is completed with the newly generated JWT.
|
|
2044
|
+
*
|
|
2045
|
+
* If the edge router has an existing outstanding enrollment JWT it will be replaced. The previous JWT will no longer be usable to
|
|
2046
|
+
* complete the enrollment process.
|
|
2047
|
+
*
|
|
2048
|
+
*/
|
|
2049
|
+
export const reEnrollEdgeRouter = (options) => {
|
|
2050
|
+
return (options.client ?? client).post({
|
|
2051
|
+
security: [
|
|
2052
|
+
{
|
|
2053
|
+
name: 'zt-session',
|
|
2054
|
+
type: 'apiKey'
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
scheme: 'bearer',
|
|
2058
|
+
type: 'http'
|
|
2059
|
+
}
|
|
2060
|
+
],
|
|
2061
|
+
url: '/edge-routers/{id}/re-enroll',
|
|
2062
|
+
...options
|
|
2063
|
+
});
|
|
2064
|
+
};
|
|
2065
|
+
/**
|
|
2066
|
+
* List the service policies that affect an edge router
|
|
2067
|
+
*
|
|
2068
|
+
* Retrieves a list of service policies policies that apply to the specified edge router.
|
|
2069
|
+
*/
|
|
2070
|
+
export const listEdgeRouterServiceEdgeRouterPolicies = (options) => {
|
|
2071
|
+
return (options.client ?? client).get({
|
|
2072
|
+
security: [
|
|
2073
|
+
{
|
|
2074
|
+
name: 'zt-session',
|
|
2075
|
+
type: 'apiKey'
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
scheme: 'bearer',
|
|
2079
|
+
type: 'http'
|
|
2080
|
+
}
|
|
2081
|
+
],
|
|
2082
|
+
url: '/edge-routers/{id}/service-edge-router-policies',
|
|
2083
|
+
...options
|
|
2084
|
+
});
|
|
2085
|
+
};
|
|
2086
|
+
/**
|
|
2087
|
+
* List associated services
|
|
2088
|
+
*
|
|
2089
|
+
* Retrieves a list of services that may be accessed via the given edge router. Supports filtering, sorting, and pagination. Requires admin access.
|
|
2090
|
+
*
|
|
2091
|
+
*/
|
|
2092
|
+
export const listEdgeRouterServices = (options) => {
|
|
2093
|
+
return (options.client ?? client).get({
|
|
2094
|
+
security: [
|
|
2095
|
+
{
|
|
2096
|
+
name: 'zt-session',
|
|
2097
|
+
type: 'apiKey'
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
scheme: 'bearer',
|
|
2101
|
+
type: 'http'
|
|
2102
|
+
}
|
|
2103
|
+
],
|
|
2104
|
+
url: '/edge-routers/{id}/services',
|
|
2105
|
+
...options
|
|
2106
|
+
});
|
|
2107
|
+
};
|
|
2108
|
+
/**
|
|
2109
|
+
* List outstanding enrollments
|
|
2110
|
+
*
|
|
2111
|
+
* Retrieves a list of outstanding enrollments; supports filtering, sorting, and pagination. Requires admin access.
|
|
2112
|
+
*
|
|
2113
|
+
*/
|
|
2114
|
+
export const listEnrollments = (options) => {
|
|
2115
|
+
return (options?.client ?? client).get({
|
|
2116
|
+
security: [
|
|
2117
|
+
{
|
|
2118
|
+
name: 'zt-session',
|
|
2119
|
+
type: 'apiKey'
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
scheme: 'bearer',
|
|
2123
|
+
type: 'http'
|
|
2124
|
+
}
|
|
2125
|
+
],
|
|
2126
|
+
url: '/enrollments',
|
|
2127
|
+
...options
|
|
2128
|
+
});
|
|
2129
|
+
};
|
|
2130
|
+
/**
|
|
2131
|
+
* Create an outstanding enrollment for an identity
|
|
2132
|
+
*
|
|
2133
|
+
* Creates a new OTT, OTTCA, or UPDB enrollment for a specific identity. If an enrollment of the same type is already outstanding the request will fail with a 409 conflict. If desired, an existing enrollment can be refreshed by `enrollments/:id/refresh` or deleted.
|
|
2134
|
+
*/
|
|
2135
|
+
export const createEnrollment = (options) => {
|
|
2136
|
+
return (options.client ?? client).post({
|
|
2137
|
+
security: [
|
|
2138
|
+
{
|
|
2139
|
+
name: 'zt-session',
|
|
2140
|
+
type: 'apiKey'
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
scheme: 'bearer',
|
|
2144
|
+
type: 'http'
|
|
2145
|
+
}
|
|
2146
|
+
],
|
|
2147
|
+
url: '/enrollments',
|
|
2148
|
+
...options,
|
|
2149
|
+
headers: {
|
|
2150
|
+
'Content-Type': 'application/json',
|
|
2151
|
+
...options.headers
|
|
2152
|
+
}
|
|
2153
|
+
});
|
|
2154
|
+
};
|
|
2155
|
+
/**
|
|
2156
|
+
* Delete an outstanding enrollment
|
|
2157
|
+
*
|
|
2158
|
+
* Delete an outstanding enrollment by id. Requires admin access.
|
|
2159
|
+
*/
|
|
2160
|
+
export const deleteEnrollment = (options) => {
|
|
2161
|
+
return (options.client ?? client).delete({
|
|
2162
|
+
security: [
|
|
2163
|
+
{
|
|
2164
|
+
name: 'zt-session',
|
|
2165
|
+
type: 'apiKey'
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
scheme: 'bearer',
|
|
2169
|
+
type: 'http'
|
|
2170
|
+
}
|
|
2171
|
+
],
|
|
2172
|
+
url: '/enrollments/{id}',
|
|
2173
|
+
...options
|
|
2174
|
+
});
|
|
2175
|
+
};
|
|
2176
|
+
/**
|
|
2177
|
+
* Retrieves an outstanding enrollment
|
|
2178
|
+
*
|
|
2179
|
+
* Retrieves a single outstanding enrollment by id. Requires admin access.
|
|
2180
|
+
*/
|
|
2181
|
+
export const detailEnrollment = (options) => {
|
|
2182
|
+
return (options.client ?? client).get({
|
|
2183
|
+
security: [
|
|
2184
|
+
{
|
|
2185
|
+
name: 'zt-session',
|
|
2186
|
+
type: 'apiKey'
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
scheme: 'bearer',
|
|
2190
|
+
type: 'http'
|
|
2191
|
+
}
|
|
2192
|
+
],
|
|
2193
|
+
url: '/enrollments/{id}',
|
|
2194
|
+
...options
|
|
2195
|
+
});
|
|
2196
|
+
};
|
|
2197
|
+
/**
|
|
2198
|
+
* Refreshes an enrollment record's expiration window
|
|
2199
|
+
*
|
|
2200
|
+
* For expired or unexpired enrollments, reset the expiration window. A new JWT will be generated and must be used for the enrollment.
|
|
2201
|
+
*/
|
|
2202
|
+
export const refreshEnrollment = (options) => {
|
|
2203
|
+
return (options.client ?? client).post({
|
|
2204
|
+
security: [
|
|
2205
|
+
{
|
|
2206
|
+
name: 'zt-session',
|
|
2207
|
+
type: 'apiKey'
|
|
2208
|
+
},
|
|
2209
|
+
{
|
|
2210
|
+
scheme: 'bearer',
|
|
2211
|
+
type: 'http'
|
|
2212
|
+
}
|
|
2213
|
+
],
|
|
2214
|
+
url: '/enrollments/{id}/refresh',
|
|
2215
|
+
...options,
|
|
2216
|
+
headers: {
|
|
2217
|
+
'Content-Type': 'application/json',
|
|
2218
|
+
...options.headers
|
|
2219
|
+
}
|
|
2220
|
+
});
|
|
2221
|
+
};
|
|
2222
|
+
/**
|
|
2223
|
+
* Returns all capabilities this version of the controller is aware of, enabled or not.
|
|
2224
|
+
*/
|
|
2225
|
+
export const listEnumeratedCapabilities = (options) => {
|
|
2226
|
+
return (options?.client ?? client).get({
|
|
2227
|
+
url: '/enumerated-capabilities',
|
|
2228
|
+
...options
|
|
2229
|
+
});
|
|
2230
|
+
};
|
|
2231
|
+
/**
|
|
2232
|
+
* List External JWT Signers
|
|
2233
|
+
*
|
|
2234
|
+
* Retrieves a list of external JWT signers for authentication
|
|
2235
|
+
*/
|
|
2236
|
+
export const listExternalJwtSigners = (options) => {
|
|
2237
|
+
return (options?.client ?? client).get({
|
|
2238
|
+
security: [
|
|
2239
|
+
{
|
|
2240
|
+
name: 'zt-session',
|
|
2241
|
+
type: 'apiKey'
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
scheme: 'bearer',
|
|
2245
|
+
type: 'http'
|
|
2246
|
+
}
|
|
2247
|
+
],
|
|
2248
|
+
url: '/external-jwt-signers',
|
|
2249
|
+
...options
|
|
2250
|
+
});
|
|
2251
|
+
};
|
|
2252
|
+
/**
|
|
2253
|
+
* Creates an External JWT Signer
|
|
2254
|
+
*
|
|
2255
|
+
* Creates an External JWT Signer. Requires admin access.
|
|
2256
|
+
*/
|
|
2257
|
+
export const createExternalJwtSigner = (options) => {
|
|
2258
|
+
return (options.client ?? client).post({
|
|
2259
|
+
security: [
|
|
2260
|
+
{
|
|
2261
|
+
name: 'zt-session',
|
|
2262
|
+
type: 'apiKey'
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
scheme: 'bearer',
|
|
2266
|
+
type: 'http'
|
|
2267
|
+
}
|
|
2268
|
+
],
|
|
2269
|
+
url: '/external-jwt-signers',
|
|
2270
|
+
...options,
|
|
2271
|
+
headers: {
|
|
2272
|
+
'Content-Type': 'application/json',
|
|
2273
|
+
...options.headers
|
|
2274
|
+
}
|
|
2275
|
+
});
|
|
2276
|
+
};
|
|
2277
|
+
/**
|
|
2278
|
+
* Delete an External JWT Signer
|
|
2279
|
+
*
|
|
2280
|
+
* Delete an External JWT Signer by id. Requires admin access.
|
|
2281
|
+
*
|
|
2282
|
+
*/
|
|
2283
|
+
export const deleteExternalJwtSigner = (options) => {
|
|
2284
|
+
return (options.client ?? client).delete({
|
|
2285
|
+
security: [
|
|
2286
|
+
{
|
|
2287
|
+
name: 'zt-session',
|
|
2288
|
+
type: 'apiKey'
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
scheme: 'bearer',
|
|
2292
|
+
type: 'http'
|
|
2293
|
+
}
|
|
2294
|
+
],
|
|
2295
|
+
url: '/external-jwt-signers/{id}',
|
|
2296
|
+
...options
|
|
2297
|
+
});
|
|
2298
|
+
};
|
|
2299
|
+
/**
|
|
2300
|
+
* Retrieves a single External JWT Signer
|
|
2301
|
+
*
|
|
2302
|
+
* Retrieves a single External JWT Signer by id. Requires admin access.
|
|
2303
|
+
*/
|
|
2304
|
+
export const detailExternalJwtSigner = (options) => {
|
|
2305
|
+
return (options.client ?? client).get({
|
|
2306
|
+
security: [
|
|
2307
|
+
{
|
|
2308
|
+
name: 'zt-session',
|
|
2309
|
+
type: 'apiKey'
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
scheme: 'bearer',
|
|
2313
|
+
type: 'http'
|
|
2314
|
+
}
|
|
2315
|
+
],
|
|
2316
|
+
url: '/external-jwt-signers/{id}',
|
|
2317
|
+
...options
|
|
2318
|
+
});
|
|
2319
|
+
};
|
|
2320
|
+
/**
|
|
2321
|
+
* Update the supplied fields on an External JWT Signer
|
|
2322
|
+
*
|
|
2323
|
+
* Update only the supplied fields on an External JWT Signer by id. Requires admin access.
|
|
2324
|
+
*/
|
|
2325
|
+
export const patchExternalJwtSigner = (options) => {
|
|
2326
|
+
return (options.client ?? client).patch({
|
|
2327
|
+
security: [
|
|
2328
|
+
{
|
|
2329
|
+
name: 'zt-session',
|
|
2330
|
+
type: 'apiKey'
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
scheme: 'bearer',
|
|
2334
|
+
type: 'http'
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
url: '/external-jwt-signers/{id}',
|
|
2338
|
+
...options,
|
|
2339
|
+
headers: {
|
|
2340
|
+
'Content-Type': 'application/json',
|
|
2341
|
+
...options.headers
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
};
|
|
2345
|
+
/**
|
|
2346
|
+
* Update all fields on an External JWT Signer
|
|
2347
|
+
*
|
|
2348
|
+
* Update all fields on an External JWT Signer by id. Requires admin access.
|
|
2349
|
+
*/
|
|
2350
|
+
export const updateExternalJwtSigner = (options) => {
|
|
2351
|
+
return (options.client ?? client).put({
|
|
2352
|
+
security: [
|
|
2353
|
+
{
|
|
2354
|
+
name: 'zt-session',
|
|
2355
|
+
type: 'apiKey'
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
scheme: 'bearer',
|
|
2359
|
+
type: 'http'
|
|
2360
|
+
}
|
|
2361
|
+
],
|
|
2362
|
+
url: '/external-jwt-signers/{id}',
|
|
2363
|
+
...options,
|
|
2364
|
+
headers: {
|
|
2365
|
+
'Content-Type': 'application/json',
|
|
2366
|
+
...options.headers
|
|
2367
|
+
}
|
|
2368
|
+
});
|
|
2369
|
+
};
|
|
2370
|
+
/**
|
|
2371
|
+
* List identities
|
|
2372
|
+
*
|
|
2373
|
+
* Retrieves a list of identity resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
2374
|
+
*
|
|
2375
|
+
*/
|
|
2376
|
+
export const listIdentities = (options) => {
|
|
2377
|
+
return (options?.client ?? client).get({
|
|
2378
|
+
security: [
|
|
2379
|
+
{
|
|
2380
|
+
name: 'zt-session',
|
|
2381
|
+
type: 'apiKey'
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
scheme: 'bearer',
|
|
2385
|
+
type: 'http'
|
|
2386
|
+
}
|
|
2387
|
+
],
|
|
2388
|
+
url: '/identities',
|
|
2389
|
+
...options
|
|
2390
|
+
});
|
|
2391
|
+
};
|
|
2392
|
+
/**
|
|
2393
|
+
* Create an identity resource
|
|
2394
|
+
*
|
|
2395
|
+
* Create an identity resource. Requires admin access.
|
|
2396
|
+
*/
|
|
2397
|
+
export const createIdentity = (options) => {
|
|
2398
|
+
return (options.client ?? client).post({
|
|
2399
|
+
security: [
|
|
2400
|
+
{
|
|
2401
|
+
name: 'zt-session',
|
|
2402
|
+
type: 'apiKey'
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
scheme: 'bearer',
|
|
2406
|
+
type: 'http'
|
|
2407
|
+
}
|
|
2408
|
+
],
|
|
2409
|
+
url: '/identities',
|
|
2410
|
+
...options,
|
|
2411
|
+
headers: {
|
|
2412
|
+
'Content-Type': 'application/json',
|
|
2413
|
+
...options.headers
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
};
|
|
2417
|
+
/**
|
|
2418
|
+
* Delete an identity
|
|
2419
|
+
*
|
|
2420
|
+
* Delete an identity by id. Requires admin access.
|
|
2421
|
+
*/
|
|
2422
|
+
export const deleteIdentity = (options) => {
|
|
2423
|
+
return (options.client ?? client).delete({
|
|
2424
|
+
security: [
|
|
2425
|
+
{
|
|
2426
|
+
name: 'zt-session',
|
|
2427
|
+
type: 'apiKey'
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
scheme: 'bearer',
|
|
2431
|
+
type: 'http'
|
|
2432
|
+
}
|
|
2433
|
+
],
|
|
2434
|
+
url: '/identities/{id}',
|
|
2435
|
+
...options
|
|
2436
|
+
});
|
|
2437
|
+
};
|
|
2438
|
+
/**
|
|
2439
|
+
* Retrieves a single identity
|
|
2440
|
+
*
|
|
2441
|
+
* Retrieves a single identity by id. Requires admin access.
|
|
2442
|
+
*/
|
|
2443
|
+
export const detailIdentity = (options) => {
|
|
2444
|
+
return (options.client ?? client).get({
|
|
2445
|
+
security: [
|
|
2446
|
+
{
|
|
2447
|
+
name: 'zt-session',
|
|
2448
|
+
type: 'apiKey'
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
scheme: 'bearer',
|
|
2452
|
+
type: 'http'
|
|
2453
|
+
}
|
|
2454
|
+
],
|
|
2455
|
+
url: '/identities/{id}',
|
|
2456
|
+
...options
|
|
2457
|
+
});
|
|
2458
|
+
};
|
|
2459
|
+
/**
|
|
2460
|
+
* Update the supplied fields on an identity
|
|
2461
|
+
*
|
|
2462
|
+
* Update the supplied fields on an identity. Requires admin access.
|
|
2463
|
+
*/
|
|
2464
|
+
export const patchIdentity = (options) => {
|
|
2465
|
+
return (options.client ?? client).patch({
|
|
2466
|
+
security: [
|
|
2467
|
+
{
|
|
2468
|
+
name: 'zt-session',
|
|
2469
|
+
type: 'apiKey'
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
scheme: 'bearer',
|
|
2473
|
+
type: 'http'
|
|
2474
|
+
}
|
|
2475
|
+
],
|
|
2476
|
+
url: '/identities/{id}',
|
|
2477
|
+
...options,
|
|
2478
|
+
headers: {
|
|
2479
|
+
'Content-Type': 'application/json',
|
|
2480
|
+
...options.headers
|
|
2481
|
+
}
|
|
2482
|
+
});
|
|
2483
|
+
};
|
|
2484
|
+
/**
|
|
2485
|
+
* Update all fields on an identity
|
|
2486
|
+
*
|
|
2487
|
+
* Update all fields on an identity by id. Requires admin access.
|
|
2488
|
+
*/
|
|
2489
|
+
export const updateIdentity = (options) => {
|
|
2490
|
+
return (options.client ?? client).put({
|
|
2491
|
+
security: [
|
|
2492
|
+
{
|
|
2493
|
+
name: 'zt-session',
|
|
2494
|
+
type: 'apiKey'
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
scheme: 'bearer',
|
|
2498
|
+
type: 'http'
|
|
2499
|
+
}
|
|
2500
|
+
],
|
|
2501
|
+
url: '/identities/{id}',
|
|
2502
|
+
...options,
|
|
2503
|
+
headers: {
|
|
2504
|
+
'Content-Type': 'application/json',
|
|
2505
|
+
...options.headers
|
|
2506
|
+
}
|
|
2507
|
+
});
|
|
2508
|
+
};
|
|
2509
|
+
/**
|
|
2510
|
+
* Retrieve the current authenticators of a specific identity
|
|
2511
|
+
*
|
|
2512
|
+
* Returns a list of authenticators associated to the identity specified
|
|
2513
|
+
*
|
|
2514
|
+
*/
|
|
2515
|
+
export const getIdentityAuthenticators = (options) => {
|
|
2516
|
+
return (options.client ?? client).get({
|
|
2517
|
+
security: [
|
|
2518
|
+
{
|
|
2519
|
+
name: 'zt-session',
|
|
2520
|
+
type: 'apiKey'
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
scheme: 'bearer',
|
|
2524
|
+
type: 'http'
|
|
2525
|
+
}
|
|
2526
|
+
],
|
|
2527
|
+
url: '/identities/{id}/authenticators',
|
|
2528
|
+
...options
|
|
2529
|
+
});
|
|
2530
|
+
};
|
|
2531
|
+
/**
|
|
2532
|
+
* Set an identity as disabled
|
|
2533
|
+
*
|
|
2534
|
+
* Reject an identity's API session requests for N minutes or indefinitely if 0.
|
|
2535
|
+
*
|
|
2536
|
+
*/
|
|
2537
|
+
export const disableIdentity = (options) => {
|
|
2538
|
+
return (options.client ?? client).post({
|
|
2539
|
+
security: [
|
|
2540
|
+
{
|
|
2541
|
+
name: 'zt-session',
|
|
2542
|
+
type: 'apiKey'
|
|
2543
|
+
},
|
|
2544
|
+
{
|
|
2545
|
+
scheme: 'bearer',
|
|
2546
|
+
type: 'http'
|
|
2547
|
+
}
|
|
2548
|
+
],
|
|
2549
|
+
url: '/identities/{id}/disable',
|
|
2550
|
+
...options,
|
|
2551
|
+
headers: {
|
|
2552
|
+
'Content-Type': 'application/json',
|
|
2553
|
+
...options.headers
|
|
2554
|
+
}
|
|
2555
|
+
});
|
|
2556
|
+
};
|
|
2557
|
+
/**
|
|
2558
|
+
* List the edge router policies that affect an identity
|
|
2559
|
+
*
|
|
2560
|
+
* Retrieves a list of edge router policies that apply to the specified identity.
|
|
2561
|
+
*/
|
|
2562
|
+
export const listIdentitysEdgeRouterPolicies = (options) => {
|
|
2563
|
+
return (options.client ?? client).get({
|
|
2564
|
+
security: [
|
|
2565
|
+
{
|
|
2566
|
+
name: 'zt-session',
|
|
2567
|
+
type: 'apiKey'
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
scheme: 'bearer',
|
|
2571
|
+
type: 'http'
|
|
2572
|
+
}
|
|
2573
|
+
],
|
|
2574
|
+
url: '/identities/{id}/edge-router-policies',
|
|
2575
|
+
...options
|
|
2576
|
+
});
|
|
2577
|
+
};
|
|
2578
|
+
/**
|
|
2579
|
+
* List accessible edge-routers
|
|
2580
|
+
*
|
|
2581
|
+
* Retrieves a list of edge-routers that the given identity may use to access services. Supports filtering, sorting, and pagination. Requires admin access.
|
|
2582
|
+
*
|
|
2583
|
+
*/
|
|
2584
|
+
export const listIdentityEdgeRouters = (options) => {
|
|
2585
|
+
return (options.client ?? client).get({
|
|
2586
|
+
security: [
|
|
2587
|
+
{
|
|
2588
|
+
name: 'zt-session',
|
|
2589
|
+
type: 'apiKey'
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
scheme: 'bearer',
|
|
2593
|
+
type: 'http'
|
|
2594
|
+
}
|
|
2595
|
+
],
|
|
2596
|
+
url: '/identities/{id}/edge-routers',
|
|
2597
|
+
...options
|
|
2598
|
+
});
|
|
2599
|
+
};
|
|
2600
|
+
/**
|
|
2601
|
+
* Clears all disabled state from an identity
|
|
2602
|
+
*
|
|
2603
|
+
* Allows an admin to remove disabled statuses from an identity.
|
|
2604
|
+
*
|
|
2605
|
+
*/
|
|
2606
|
+
export const enableIdentity = (options) => {
|
|
2607
|
+
return (options.client ?? client).post({
|
|
2608
|
+
security: [
|
|
2609
|
+
{
|
|
2610
|
+
name: 'zt-session',
|
|
2611
|
+
type: 'apiKey'
|
|
2612
|
+
},
|
|
2613
|
+
{
|
|
2614
|
+
scheme: 'bearer',
|
|
2615
|
+
type: 'http'
|
|
2616
|
+
}
|
|
2617
|
+
],
|
|
2618
|
+
url: '/identities/{id}/enable',
|
|
2619
|
+
...options
|
|
2620
|
+
});
|
|
2621
|
+
};
|
|
2622
|
+
/**
|
|
2623
|
+
* Retrieve the current enrollments of a specific identity
|
|
2624
|
+
*
|
|
2625
|
+
* Returns a list of enrollments associated to the identity specified
|
|
2626
|
+
*
|
|
2627
|
+
*/
|
|
2628
|
+
export const getIdentityEnrollments = (options) => {
|
|
2629
|
+
return (options.client ?? client).get({
|
|
2630
|
+
security: [
|
|
2631
|
+
{
|
|
2632
|
+
name: 'zt-session',
|
|
2633
|
+
type: 'apiKey'
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
scheme: 'bearer',
|
|
2637
|
+
type: 'http'
|
|
2638
|
+
}
|
|
2639
|
+
],
|
|
2640
|
+
url: '/identities/{id}/enrollments',
|
|
2641
|
+
...options
|
|
2642
|
+
});
|
|
2643
|
+
};
|
|
2644
|
+
/**
|
|
2645
|
+
* Retrieve a list of the most recent service failure requests due to posture checks
|
|
2646
|
+
*
|
|
2647
|
+
* Returns a list of service session requests that failed due to posture checks. The entries will contain
|
|
2648
|
+
* every policy that was verified against and every failed check in each policy. Each check will include
|
|
2649
|
+
* the historical posture data and posture check configuration.
|
|
2650
|
+
*
|
|
2651
|
+
*/
|
|
2652
|
+
export const getIdentityFailedServiceRequests = (options) => {
|
|
2653
|
+
return (options.client ?? client).get({
|
|
2654
|
+
security: [
|
|
2655
|
+
{
|
|
2656
|
+
name: 'zt-session',
|
|
2657
|
+
type: 'apiKey'
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
scheme: 'bearer',
|
|
2661
|
+
type: 'http'
|
|
2662
|
+
}
|
|
2663
|
+
],
|
|
2664
|
+
url: '/identities/{id}/failed-service-requests',
|
|
2665
|
+
...options
|
|
2666
|
+
});
|
|
2667
|
+
};
|
|
2668
|
+
/**
|
|
2669
|
+
* Remove MFA from an identitity
|
|
2670
|
+
*
|
|
2671
|
+
* Allows an admin to remove MFA enrollment from a specific identity. Requires admin.
|
|
2672
|
+
*
|
|
2673
|
+
*/
|
|
2674
|
+
export const removeIdentityMfa = (options) => {
|
|
2675
|
+
return (options.client ?? client).delete({
|
|
2676
|
+
security: [
|
|
2677
|
+
{
|
|
2678
|
+
name: 'zt-session',
|
|
2679
|
+
type: 'apiKey'
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
scheme: 'bearer',
|
|
2683
|
+
type: 'http'
|
|
2684
|
+
}
|
|
2685
|
+
],
|
|
2686
|
+
url: '/identities/{id}/mfa',
|
|
2687
|
+
...options
|
|
2688
|
+
});
|
|
2689
|
+
};
|
|
2690
|
+
/**
|
|
2691
|
+
* Analyze policies relating the given identity and service
|
|
2692
|
+
*
|
|
2693
|
+
* Analyzes policies to see if the given identity should be able to dial or bind the given service. |
|
|
2694
|
+
* Will check services policies to see if the identity can access the service. Will check edge router policies |
|
|
2695
|
+
* to check if the identity and service have access to common edge routers so that a connnection can be made. |
|
|
2696
|
+
* Will also check if at least one edge router is on-line. Requires admin access.
|
|
2697
|
+
*
|
|
2698
|
+
*/
|
|
2699
|
+
export const getIdentityPolicyAdvice = (options) => {
|
|
2700
|
+
return (options.client ?? client).get({
|
|
2701
|
+
security: [
|
|
2702
|
+
{
|
|
2703
|
+
name: 'zt-session',
|
|
2704
|
+
type: 'apiKey'
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
scheme: 'bearer',
|
|
2708
|
+
type: 'http'
|
|
2709
|
+
}
|
|
2710
|
+
],
|
|
2711
|
+
url: '/identities/{id}/policy-advice/{serviceId}',
|
|
2712
|
+
...options
|
|
2713
|
+
});
|
|
2714
|
+
};
|
|
2715
|
+
/**
|
|
2716
|
+
* Retrieve the curent posture data for a specific identity.
|
|
2717
|
+
*
|
|
2718
|
+
* Returns a nested map data represeting the posture data of the identity.
|
|
2719
|
+
* This data should be considered volatile.
|
|
2720
|
+
*
|
|
2721
|
+
*/
|
|
2722
|
+
export const getIdentityPostureData = (options) => {
|
|
2723
|
+
return (options.client ?? client).get({
|
|
2724
|
+
security: [
|
|
2725
|
+
{
|
|
2726
|
+
name: 'zt-session',
|
|
2727
|
+
type: 'apiKey'
|
|
2728
|
+
},
|
|
2729
|
+
{
|
|
2730
|
+
scheme: 'bearer',
|
|
2731
|
+
type: 'http'
|
|
2732
|
+
}
|
|
2733
|
+
],
|
|
2734
|
+
url: '/identities/{id}/posture-data',
|
|
2735
|
+
...options
|
|
2736
|
+
});
|
|
2737
|
+
};
|
|
2738
|
+
/**
|
|
2739
|
+
* Indicate all certificate authenticators for the identity should be extended and optionally key rolled on next authentication.
|
|
2740
|
+
*
|
|
2741
|
+
* Allows all certificate authenticators on an identity to be flagged for early extension and optionally private
|
|
2742
|
+
* key rolling. Connecting clients will receive flags in their API Session indicating that an early extension is
|
|
2743
|
+
* request and a hint on whether private keys should be rolled. Clients that do not support extension or cannot
|
|
2744
|
+
* roll keys may ignore one or both flags.
|
|
2745
|
+
*
|
|
2746
|
+
* If this request is made against an identity with zero certificate authenticators, a 403 will be returned.
|
|
2747
|
+
*
|
|
2748
|
+
*/
|
|
2749
|
+
export const requestExtendAllCertAuthenticators = (options) => {
|
|
2750
|
+
return (options.client ?? client).post({
|
|
2751
|
+
security: [
|
|
2752
|
+
{
|
|
2753
|
+
name: 'zt-session',
|
|
2754
|
+
type: 'apiKey'
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
scheme: 'bearer',
|
|
2758
|
+
type: 'http'
|
|
2759
|
+
}
|
|
2760
|
+
],
|
|
2761
|
+
url: '/identities/{id}/request-extend',
|
|
2762
|
+
...options,
|
|
2763
|
+
headers: {
|
|
2764
|
+
'Content-Type': 'application/json',
|
|
2765
|
+
...options.headers
|
|
2766
|
+
}
|
|
2767
|
+
});
|
|
2768
|
+
};
|
|
2769
|
+
/**
|
|
2770
|
+
* Remove associated service configs from a specific identity
|
|
2771
|
+
*
|
|
2772
|
+
* Remove service configs from a specific identity
|
|
2773
|
+
*/
|
|
2774
|
+
export const disassociateIdentitysServiceConfigs = (options) => {
|
|
2775
|
+
return (options.client ?? client).delete({
|
|
2776
|
+
security: [
|
|
2777
|
+
{
|
|
2778
|
+
name: 'zt-session',
|
|
2779
|
+
type: 'apiKey'
|
|
2780
|
+
},
|
|
2781
|
+
{
|
|
2782
|
+
scheme: 'bearer',
|
|
2783
|
+
type: 'http'
|
|
2784
|
+
}
|
|
2785
|
+
],
|
|
2786
|
+
url: '/identities/{id}/service-configs',
|
|
2787
|
+
...options,
|
|
2788
|
+
headers: {
|
|
2789
|
+
'Content-Type': 'application/json',
|
|
2790
|
+
...options.headers
|
|
2791
|
+
}
|
|
2792
|
+
});
|
|
2793
|
+
};
|
|
2794
|
+
/**
|
|
2795
|
+
* List the service configs associated a specific identity
|
|
2796
|
+
*
|
|
2797
|
+
* Retrieves a list of service configs associated to a specific identity
|
|
2798
|
+
*/
|
|
2799
|
+
export const listIdentitysServiceConfigs = (options) => {
|
|
2800
|
+
return (options.client ?? client).get({
|
|
2801
|
+
security: [
|
|
2802
|
+
{
|
|
2803
|
+
name: 'zt-session',
|
|
2804
|
+
type: 'apiKey'
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
scheme: 'bearer',
|
|
2808
|
+
type: 'http'
|
|
2809
|
+
}
|
|
2810
|
+
],
|
|
2811
|
+
url: '/identities/{id}/service-configs',
|
|
2812
|
+
...options
|
|
2813
|
+
});
|
|
2814
|
+
};
|
|
2815
|
+
/**
|
|
2816
|
+
* Associate service configs for a specific identity
|
|
2817
|
+
*
|
|
2818
|
+
* Associate service configs to a specific identity
|
|
2819
|
+
*/
|
|
2820
|
+
export const associateIdentitysServiceConfigs = (options) => {
|
|
2821
|
+
return (options.client ?? client).post({
|
|
2822
|
+
security: [
|
|
2823
|
+
{
|
|
2824
|
+
name: 'zt-session',
|
|
2825
|
+
type: 'apiKey'
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
scheme: 'bearer',
|
|
2829
|
+
type: 'http'
|
|
2830
|
+
}
|
|
2831
|
+
],
|
|
2832
|
+
url: '/identities/{id}/service-configs',
|
|
2833
|
+
...options,
|
|
2834
|
+
headers: {
|
|
2835
|
+
'Content-Type': 'application/json',
|
|
2836
|
+
...options.headers
|
|
2837
|
+
}
|
|
2838
|
+
});
|
|
2839
|
+
};
|
|
2840
|
+
/**
|
|
2841
|
+
* List the service policies that affect an identity
|
|
2842
|
+
*
|
|
2843
|
+
* Retrieves a list of service policies that apply to the specified identity.
|
|
2844
|
+
*/
|
|
2845
|
+
export const listIdentityServicePolicies = (options) => {
|
|
2846
|
+
return (options.client ?? client).get({
|
|
2847
|
+
security: [
|
|
2848
|
+
{
|
|
2849
|
+
name: 'zt-session',
|
|
2850
|
+
type: 'apiKey'
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
scheme: 'bearer',
|
|
2854
|
+
type: 'http'
|
|
2855
|
+
}
|
|
2856
|
+
],
|
|
2857
|
+
url: '/identities/{id}/service-policies',
|
|
2858
|
+
...options
|
|
2859
|
+
});
|
|
2860
|
+
};
|
|
2861
|
+
/**
|
|
2862
|
+
* List accessible services
|
|
2863
|
+
*
|
|
2864
|
+
* Retrieves a list of services that the given identity has access to. Supports filtering, sorting, and pagination. Requires admin access.
|
|
2865
|
+
*
|
|
2866
|
+
*/
|
|
2867
|
+
export const listIdentityServices = (options) => {
|
|
2868
|
+
return (options.client ?? client).get({
|
|
2869
|
+
security: [
|
|
2870
|
+
{
|
|
2871
|
+
name: 'zt-session',
|
|
2872
|
+
type: 'apiKey'
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
scheme: 'bearer',
|
|
2876
|
+
type: 'http'
|
|
2877
|
+
}
|
|
2878
|
+
],
|
|
2879
|
+
url: '/identities/{id}/services',
|
|
2880
|
+
...options
|
|
2881
|
+
});
|
|
2882
|
+
};
|
|
2883
|
+
/**
|
|
2884
|
+
* Enable/disable data flow tracing for an identity
|
|
2885
|
+
*
|
|
2886
|
+
* Allows an admin to enable/disable data flow tracing for an identity
|
|
2887
|
+
*
|
|
2888
|
+
*/
|
|
2889
|
+
export const updateIdentityTracing = (options) => {
|
|
2890
|
+
return (options.client ?? client).put({
|
|
2891
|
+
security: [
|
|
2892
|
+
{
|
|
2893
|
+
name: 'zt-session',
|
|
2894
|
+
type: 'apiKey'
|
|
2895
|
+
},
|
|
2896
|
+
{
|
|
2897
|
+
scheme: 'bearer',
|
|
2898
|
+
type: 'http'
|
|
2899
|
+
}
|
|
2900
|
+
],
|
|
2901
|
+
url: '/identities/{id}/trace',
|
|
2902
|
+
...options,
|
|
2903
|
+
headers: {
|
|
2904
|
+
'Content-Type': 'application/json',
|
|
2905
|
+
...options.headers
|
|
2906
|
+
}
|
|
2907
|
+
});
|
|
2908
|
+
};
|
|
2909
|
+
/**
|
|
2910
|
+
* List role attributes in use by identities
|
|
2911
|
+
*
|
|
2912
|
+
* Retrieves a list of role attributes in use by identities; supports filtering, sorting, and pagination. Requires admin access.
|
|
2913
|
+
*
|
|
2914
|
+
*/
|
|
2915
|
+
export const listIdentityRoleAttributes = (options) => {
|
|
2916
|
+
return (options?.client ?? client).get({
|
|
2917
|
+
security: [
|
|
2918
|
+
{
|
|
2919
|
+
name: 'zt-session',
|
|
2920
|
+
type: 'apiKey'
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
scheme: 'bearer',
|
|
2924
|
+
type: 'http'
|
|
2925
|
+
}
|
|
2926
|
+
],
|
|
2927
|
+
url: '/identity-role-attributes',
|
|
2928
|
+
...options
|
|
2929
|
+
});
|
|
2930
|
+
};
|
|
2931
|
+
/**
|
|
2932
|
+
* List available identity types
|
|
2933
|
+
*
|
|
2934
|
+
* Retrieves a list of identity types; supports filtering, sorting, and pagination. Requires admin access.
|
|
2935
|
+
*
|
|
2936
|
+
*/
|
|
2937
|
+
export const listIdentityTypes = (options) => {
|
|
2938
|
+
return (options?.client ?? client).get({
|
|
2939
|
+
security: [
|
|
2940
|
+
{
|
|
2941
|
+
name: 'zt-session',
|
|
2942
|
+
type: 'apiKey'
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
scheme: 'bearer',
|
|
2946
|
+
type: 'http'
|
|
2947
|
+
}
|
|
2948
|
+
],
|
|
2949
|
+
url: '/identity-types',
|
|
2950
|
+
...options
|
|
2951
|
+
});
|
|
2952
|
+
};
|
|
2953
|
+
/**
|
|
2954
|
+
* Retrieves a identity type
|
|
2955
|
+
*
|
|
2956
|
+
* Retrieves a single identity type by id. Requires admin access.
|
|
2957
|
+
*/
|
|
2958
|
+
export const detailIdentityType = (options) => {
|
|
2959
|
+
return (options.client ?? client).get({
|
|
2960
|
+
security: [
|
|
2961
|
+
{
|
|
2962
|
+
name: 'zt-session',
|
|
2963
|
+
type: 'apiKey'
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
scheme: 'bearer',
|
|
2967
|
+
type: 'http'
|
|
2968
|
+
}
|
|
2969
|
+
],
|
|
2970
|
+
url: '/identity-types/{id}',
|
|
2971
|
+
...options
|
|
2972
|
+
});
|
|
2973
|
+
};
|
|
2974
|
+
/**
|
|
2975
|
+
* Returns a list of JWTs suitable for bootstrapping network trust.
|
|
2976
|
+
*
|
|
2977
|
+
* Returns a list of JWTs for trusting a network
|
|
2978
|
+
*/
|
|
2979
|
+
export const listNetworkJwts = (options) => {
|
|
2980
|
+
return (options?.client ?? client).get({
|
|
2981
|
+
url: '/network-jwts',
|
|
2982
|
+
...options
|
|
2983
|
+
});
|
|
2984
|
+
};
|
|
2985
|
+
/**
|
|
2986
|
+
* List role attributes in use by posture checks
|
|
2987
|
+
*
|
|
2988
|
+
* Retrieves a list of role attributes in use by posture checks; supports filtering, sorting, and pagination. Requires admin access.
|
|
2989
|
+
*
|
|
2990
|
+
*/
|
|
2991
|
+
export const listPostureCheckRoleAttributes = (options) => {
|
|
2992
|
+
return (options?.client ?? client).get({
|
|
2993
|
+
security: [
|
|
2994
|
+
{
|
|
2995
|
+
name: 'zt-session',
|
|
2996
|
+
type: 'apiKey'
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
scheme: 'bearer',
|
|
3000
|
+
type: 'http'
|
|
3001
|
+
}
|
|
3002
|
+
],
|
|
3003
|
+
url: '/posture-check-role-attributes',
|
|
3004
|
+
...options
|
|
3005
|
+
});
|
|
3006
|
+
};
|
|
3007
|
+
/**
|
|
3008
|
+
* List a subset of posture check types
|
|
3009
|
+
*
|
|
3010
|
+
* Retrieves a list of posture check types
|
|
3011
|
+
*
|
|
3012
|
+
*/
|
|
3013
|
+
export const listPostureCheckTypes = (options) => {
|
|
3014
|
+
return (options?.client ?? client).get({
|
|
3015
|
+
security: [
|
|
3016
|
+
{
|
|
3017
|
+
name: 'zt-session',
|
|
3018
|
+
type: 'apiKey'
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
scheme: 'bearer',
|
|
3022
|
+
type: 'http'
|
|
3023
|
+
}
|
|
3024
|
+
],
|
|
3025
|
+
url: '/posture-check-types',
|
|
3026
|
+
...options
|
|
3027
|
+
});
|
|
3028
|
+
};
|
|
3029
|
+
/**
|
|
3030
|
+
* Retrieves a single posture check type
|
|
3031
|
+
*
|
|
3032
|
+
* Retrieves a single posture check type by id
|
|
3033
|
+
*/
|
|
3034
|
+
export const detailPostureCheckType = (options) => {
|
|
3035
|
+
return (options.client ?? client).get({
|
|
3036
|
+
security: [
|
|
3037
|
+
{
|
|
3038
|
+
name: 'zt-session',
|
|
3039
|
+
type: 'apiKey'
|
|
3040
|
+
},
|
|
3041
|
+
{
|
|
3042
|
+
scheme: 'bearer',
|
|
3043
|
+
type: 'http'
|
|
3044
|
+
}
|
|
3045
|
+
],
|
|
3046
|
+
url: '/posture-check-types/{id}',
|
|
3047
|
+
...options
|
|
3048
|
+
});
|
|
3049
|
+
};
|
|
3050
|
+
/**
|
|
3051
|
+
* List a subset of posture checks
|
|
3052
|
+
*
|
|
3053
|
+
* Retrieves a list of posture checks
|
|
3054
|
+
*
|
|
3055
|
+
*/
|
|
3056
|
+
export const listPostureChecks = (options) => {
|
|
3057
|
+
return (options?.client ?? client).get({
|
|
3058
|
+
security: [
|
|
3059
|
+
{
|
|
3060
|
+
name: 'zt-session',
|
|
3061
|
+
type: 'apiKey'
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
scheme: 'bearer',
|
|
3065
|
+
type: 'http'
|
|
3066
|
+
}
|
|
3067
|
+
],
|
|
3068
|
+
url: '/posture-checks',
|
|
3069
|
+
...options
|
|
3070
|
+
});
|
|
3071
|
+
};
|
|
3072
|
+
/**
|
|
3073
|
+
* Creates a Posture Checks
|
|
3074
|
+
*
|
|
3075
|
+
* Creates a Posture Checks
|
|
3076
|
+
*/
|
|
3077
|
+
export const createPostureCheck = (options) => {
|
|
3078
|
+
return (options.client ?? client).post({
|
|
3079
|
+
security: [
|
|
3080
|
+
{
|
|
3081
|
+
name: 'zt-session',
|
|
3082
|
+
type: 'apiKey'
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
scheme: 'bearer',
|
|
3086
|
+
type: 'http'
|
|
3087
|
+
}
|
|
3088
|
+
],
|
|
3089
|
+
url: '/posture-checks',
|
|
3090
|
+
...options,
|
|
3091
|
+
headers: {
|
|
3092
|
+
'Content-Type': 'application/json',
|
|
3093
|
+
...options.headers
|
|
3094
|
+
}
|
|
3095
|
+
});
|
|
3096
|
+
};
|
|
3097
|
+
/**
|
|
3098
|
+
* Deletes an Posture Checks
|
|
3099
|
+
*
|
|
3100
|
+
* Deletes and Posture Checks by id
|
|
3101
|
+
*/
|
|
3102
|
+
export const deletePostureCheck = (options) => {
|
|
3103
|
+
return (options.client ?? client).delete({
|
|
3104
|
+
security: [
|
|
3105
|
+
{
|
|
3106
|
+
name: 'zt-session',
|
|
3107
|
+
type: 'apiKey'
|
|
3108
|
+
},
|
|
3109
|
+
{
|
|
3110
|
+
scheme: 'bearer',
|
|
3111
|
+
type: 'http'
|
|
3112
|
+
}
|
|
3113
|
+
],
|
|
3114
|
+
url: '/posture-checks/{id}',
|
|
3115
|
+
...options
|
|
3116
|
+
});
|
|
3117
|
+
};
|
|
3118
|
+
/**
|
|
3119
|
+
* Retrieves a single Posture Checks
|
|
3120
|
+
*
|
|
3121
|
+
* Retrieves a single Posture Checks by id
|
|
3122
|
+
*/
|
|
3123
|
+
export const detailPostureCheck = (options) => {
|
|
3124
|
+
return (options.client ?? client).get({
|
|
3125
|
+
security: [
|
|
3126
|
+
{
|
|
3127
|
+
name: 'zt-session',
|
|
3128
|
+
type: 'apiKey'
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
scheme: 'bearer',
|
|
3132
|
+
type: 'http'
|
|
3133
|
+
}
|
|
3134
|
+
],
|
|
3135
|
+
url: '/posture-checks/{id}',
|
|
3136
|
+
...options
|
|
3137
|
+
});
|
|
3138
|
+
};
|
|
3139
|
+
/**
|
|
3140
|
+
* Update the supplied fields on a Posture Checks
|
|
3141
|
+
*
|
|
3142
|
+
* Update only the supplied fields on a Posture Checks by id
|
|
3143
|
+
*/
|
|
3144
|
+
export const patchPostureCheck = (options) => {
|
|
3145
|
+
return (options.client ?? client).patch({
|
|
3146
|
+
security: [
|
|
3147
|
+
{
|
|
3148
|
+
name: 'zt-session',
|
|
3149
|
+
type: 'apiKey'
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
scheme: 'bearer',
|
|
3153
|
+
type: 'http'
|
|
3154
|
+
}
|
|
3155
|
+
],
|
|
3156
|
+
url: '/posture-checks/{id}',
|
|
3157
|
+
...options,
|
|
3158
|
+
headers: {
|
|
3159
|
+
'Content-Type': 'application/json',
|
|
3160
|
+
...options.headers
|
|
3161
|
+
}
|
|
3162
|
+
});
|
|
3163
|
+
};
|
|
3164
|
+
/**
|
|
3165
|
+
* Update all fields on a Posture Checks
|
|
3166
|
+
*
|
|
3167
|
+
* Update all fields on a Posture Checks by id
|
|
3168
|
+
*/
|
|
3169
|
+
export const updatePostureCheck = (options) => {
|
|
3170
|
+
return (options.client ?? client).put({
|
|
3171
|
+
security: [
|
|
3172
|
+
{
|
|
3173
|
+
name: 'zt-session',
|
|
3174
|
+
type: 'apiKey'
|
|
3175
|
+
},
|
|
3176
|
+
{
|
|
3177
|
+
scheme: 'bearer',
|
|
3178
|
+
type: 'http'
|
|
3179
|
+
}
|
|
3180
|
+
],
|
|
3181
|
+
url: '/posture-checks/{id}',
|
|
3182
|
+
...options,
|
|
3183
|
+
headers: {
|
|
3184
|
+
'Content-Type': 'application/json',
|
|
3185
|
+
...options.headers
|
|
3186
|
+
}
|
|
3187
|
+
});
|
|
3188
|
+
};
|
|
3189
|
+
/**
|
|
3190
|
+
* List routers
|
|
3191
|
+
*
|
|
3192
|
+
* Retrieves a list of router resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
3193
|
+
*
|
|
3194
|
+
*/
|
|
3195
|
+
export const listRouters = (options) => {
|
|
3196
|
+
return (options?.client ?? client).get({
|
|
3197
|
+
security: [
|
|
3198
|
+
{
|
|
3199
|
+
name: 'zt-session',
|
|
3200
|
+
type: 'apiKey'
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
scheme: 'bearer',
|
|
3204
|
+
type: 'http'
|
|
3205
|
+
}
|
|
3206
|
+
],
|
|
3207
|
+
url: '/routers',
|
|
3208
|
+
...options
|
|
3209
|
+
});
|
|
3210
|
+
};
|
|
3211
|
+
/**
|
|
3212
|
+
* Create a router resource
|
|
3213
|
+
*
|
|
3214
|
+
* Create a router resource. Requires admin access.
|
|
3215
|
+
*/
|
|
3216
|
+
export const createRouter = (options) => {
|
|
3217
|
+
return (options.client ?? client).post({
|
|
3218
|
+
security: [
|
|
3219
|
+
{
|
|
3220
|
+
name: 'zt-session',
|
|
3221
|
+
type: 'apiKey'
|
|
3222
|
+
},
|
|
3223
|
+
{
|
|
3224
|
+
scheme: 'bearer',
|
|
3225
|
+
type: 'http'
|
|
3226
|
+
}
|
|
3227
|
+
],
|
|
3228
|
+
url: '/routers',
|
|
3229
|
+
...options,
|
|
3230
|
+
headers: {
|
|
3231
|
+
'Content-Type': 'application/json',
|
|
3232
|
+
...options.headers
|
|
3233
|
+
}
|
|
3234
|
+
});
|
|
3235
|
+
};
|
|
3236
|
+
/**
|
|
3237
|
+
* Delete a router
|
|
3238
|
+
*
|
|
3239
|
+
* Delete a router by id. Requires admin access.
|
|
3240
|
+
*/
|
|
3241
|
+
export const deleteRouter = (options) => {
|
|
3242
|
+
return (options.client ?? client).delete({
|
|
3243
|
+
security: [
|
|
3244
|
+
{
|
|
3245
|
+
name: 'zt-session',
|
|
3246
|
+
type: 'apiKey'
|
|
3247
|
+
},
|
|
3248
|
+
{
|
|
3249
|
+
scheme: 'bearer',
|
|
3250
|
+
type: 'http'
|
|
3251
|
+
}
|
|
3252
|
+
],
|
|
3253
|
+
url: '/routers/{id}',
|
|
3254
|
+
...options
|
|
3255
|
+
});
|
|
3256
|
+
};
|
|
3257
|
+
/**
|
|
3258
|
+
* Retrieves a single router
|
|
3259
|
+
*
|
|
3260
|
+
* Retrieves a single router by id. Requires admin access.
|
|
3261
|
+
*/
|
|
3262
|
+
export const detailRouter = (options) => {
|
|
3263
|
+
return (options.client ?? client).get({
|
|
3264
|
+
security: [
|
|
3265
|
+
{
|
|
3266
|
+
name: 'zt-session',
|
|
3267
|
+
type: 'apiKey'
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
scheme: 'bearer',
|
|
3271
|
+
type: 'http'
|
|
3272
|
+
}
|
|
3273
|
+
],
|
|
3274
|
+
url: '/routers/{id}',
|
|
3275
|
+
...options
|
|
3276
|
+
});
|
|
3277
|
+
};
|
|
3278
|
+
/**
|
|
3279
|
+
* Update the supplied fields on a router
|
|
3280
|
+
*
|
|
3281
|
+
* Update the supplied fields on a router. Requires admin access.
|
|
3282
|
+
*/
|
|
3283
|
+
export const patchRouter = (options) => {
|
|
3284
|
+
return (options.client ?? client).patch({
|
|
3285
|
+
security: [
|
|
3286
|
+
{
|
|
3287
|
+
name: 'zt-session',
|
|
3288
|
+
type: 'apiKey'
|
|
3289
|
+
},
|
|
3290
|
+
{
|
|
3291
|
+
scheme: 'bearer',
|
|
3292
|
+
type: 'http'
|
|
3293
|
+
}
|
|
3294
|
+
],
|
|
3295
|
+
url: '/routers/{id}',
|
|
3296
|
+
...options,
|
|
3297
|
+
headers: {
|
|
3298
|
+
'Content-Type': 'application/json',
|
|
3299
|
+
...options.headers
|
|
3300
|
+
}
|
|
3301
|
+
});
|
|
3302
|
+
};
|
|
3303
|
+
/**
|
|
3304
|
+
* Update all fields on a router
|
|
3305
|
+
*
|
|
3306
|
+
* Update all fields on a router by id. Requires admin access.
|
|
3307
|
+
*/
|
|
3308
|
+
export const updateRouter = (options) => {
|
|
3309
|
+
return (options.client ?? client).put({
|
|
3310
|
+
security: [
|
|
3311
|
+
{
|
|
3312
|
+
name: 'zt-session',
|
|
3313
|
+
type: 'apiKey'
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
scheme: 'bearer',
|
|
3317
|
+
type: 'http'
|
|
3318
|
+
}
|
|
3319
|
+
],
|
|
3320
|
+
url: '/routers/{id}',
|
|
3321
|
+
...options,
|
|
3322
|
+
headers: {
|
|
3323
|
+
'Content-Type': 'application/json',
|
|
3324
|
+
...options.headers
|
|
3325
|
+
}
|
|
3326
|
+
});
|
|
3327
|
+
};
|
|
3328
|
+
/**
|
|
3329
|
+
* List service edge router policies
|
|
3330
|
+
*
|
|
3331
|
+
* Retrieves a list of service edge router policy resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
3332
|
+
*
|
|
3333
|
+
*/
|
|
3334
|
+
export const listServiceEdgeRouterPolicies = (options) => {
|
|
3335
|
+
return (options?.client ?? client).get({
|
|
3336
|
+
security: [
|
|
3337
|
+
{
|
|
3338
|
+
name: 'zt-session',
|
|
3339
|
+
type: 'apiKey'
|
|
3340
|
+
},
|
|
3341
|
+
{
|
|
3342
|
+
scheme: 'bearer',
|
|
3343
|
+
type: 'http'
|
|
3344
|
+
}
|
|
3345
|
+
],
|
|
3346
|
+
url: '/service-edge-router-policies',
|
|
3347
|
+
...options
|
|
3348
|
+
});
|
|
3349
|
+
};
|
|
3350
|
+
/**
|
|
3351
|
+
* Create a service edge router policy resource
|
|
3352
|
+
*
|
|
3353
|
+
* Create a service edge router policy resource. Requires admin access.
|
|
3354
|
+
*/
|
|
3355
|
+
export const createServiceEdgeRouterPolicy = (options) => {
|
|
3356
|
+
return (options.client ?? client).post({
|
|
3357
|
+
security: [
|
|
3358
|
+
{
|
|
3359
|
+
name: 'zt-session',
|
|
3360
|
+
type: 'apiKey'
|
|
3361
|
+
},
|
|
3362
|
+
{
|
|
3363
|
+
scheme: 'bearer',
|
|
3364
|
+
type: 'http'
|
|
3365
|
+
}
|
|
3366
|
+
],
|
|
3367
|
+
url: '/service-edge-router-policies',
|
|
3368
|
+
...options,
|
|
3369
|
+
headers: {
|
|
3370
|
+
'Content-Type': 'application/json',
|
|
3371
|
+
...options.headers
|
|
3372
|
+
}
|
|
3373
|
+
});
|
|
3374
|
+
};
|
|
3375
|
+
/**
|
|
3376
|
+
* Delete a service edge policy
|
|
3377
|
+
*
|
|
3378
|
+
* Delete a service edge policy by id. Requires admin access.
|
|
3379
|
+
*/
|
|
3380
|
+
export const deleteServiceEdgeRouterPolicy = (options) => {
|
|
3381
|
+
return (options.client ?? client).delete({
|
|
3382
|
+
security: [
|
|
3383
|
+
{
|
|
3384
|
+
name: 'zt-session',
|
|
3385
|
+
type: 'apiKey'
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
scheme: 'bearer',
|
|
3389
|
+
type: 'http'
|
|
3390
|
+
}
|
|
3391
|
+
],
|
|
3392
|
+
url: '/service-edge-router-policies/{id}',
|
|
3393
|
+
...options
|
|
3394
|
+
});
|
|
3395
|
+
};
|
|
3396
|
+
/**
|
|
3397
|
+
* Retrieves a single service edge policy
|
|
3398
|
+
*
|
|
3399
|
+
* Retrieves a single service edge policy by id. Requires admin access.
|
|
3400
|
+
*/
|
|
3401
|
+
export const detailServiceEdgeRouterPolicy = (options) => {
|
|
3402
|
+
return (options.client ?? client).get({
|
|
3403
|
+
security: [
|
|
3404
|
+
{
|
|
3405
|
+
name: 'zt-session',
|
|
3406
|
+
type: 'apiKey'
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
scheme: 'bearer',
|
|
3410
|
+
type: 'http'
|
|
3411
|
+
}
|
|
3412
|
+
],
|
|
3413
|
+
url: '/service-edge-router-policies/{id}',
|
|
3414
|
+
...options
|
|
3415
|
+
});
|
|
3416
|
+
};
|
|
3417
|
+
/**
|
|
3418
|
+
* Update the supplied fields on a service edge policy
|
|
3419
|
+
*
|
|
3420
|
+
* Update the supplied fields on a service edge policy. Requires admin access.
|
|
3421
|
+
*/
|
|
3422
|
+
export const patchServiceEdgeRouterPolicy = (options) => {
|
|
3423
|
+
return (options.client ?? client).patch({
|
|
3424
|
+
security: [
|
|
3425
|
+
{
|
|
3426
|
+
name: 'zt-session',
|
|
3427
|
+
type: 'apiKey'
|
|
3428
|
+
},
|
|
3429
|
+
{
|
|
3430
|
+
scheme: 'bearer',
|
|
3431
|
+
type: 'http'
|
|
3432
|
+
}
|
|
3433
|
+
],
|
|
3434
|
+
url: '/service-edge-router-policies/{id}',
|
|
3435
|
+
...options,
|
|
3436
|
+
headers: {
|
|
3437
|
+
'Content-Type': 'application/json',
|
|
3438
|
+
...options.headers
|
|
3439
|
+
}
|
|
3440
|
+
});
|
|
3441
|
+
};
|
|
3442
|
+
/**
|
|
3443
|
+
* Update all fields on a service edge policy
|
|
3444
|
+
*
|
|
3445
|
+
* Update all fields on a service edge policy by id. Requires admin access.
|
|
3446
|
+
*/
|
|
3447
|
+
export const updateServiceEdgeRouterPolicy = (options) => {
|
|
3448
|
+
return (options.client ?? client).put({
|
|
3449
|
+
security: [
|
|
3450
|
+
{
|
|
3451
|
+
name: 'zt-session',
|
|
3452
|
+
type: 'apiKey'
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
scheme: 'bearer',
|
|
3456
|
+
type: 'http'
|
|
3457
|
+
}
|
|
3458
|
+
],
|
|
3459
|
+
url: '/service-edge-router-policies/{id}',
|
|
3460
|
+
...options,
|
|
3461
|
+
headers: {
|
|
3462
|
+
'Content-Type': 'application/json',
|
|
3463
|
+
...options.headers
|
|
3464
|
+
}
|
|
3465
|
+
});
|
|
3466
|
+
};
|
|
3467
|
+
/**
|
|
3468
|
+
* List the edge routers that a service edge router policy applies to
|
|
3469
|
+
*
|
|
3470
|
+
* List the edge routers that a service edge router policy applies to
|
|
3471
|
+
*/
|
|
3472
|
+
export const listServiceEdgeRouterPolicyEdgeRouters = (options) => {
|
|
3473
|
+
return (options.client ?? client).get({
|
|
3474
|
+
security: [
|
|
3475
|
+
{
|
|
3476
|
+
name: 'zt-session',
|
|
3477
|
+
type: 'apiKey'
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
scheme: 'bearer',
|
|
3481
|
+
type: 'http'
|
|
3482
|
+
}
|
|
3483
|
+
],
|
|
3484
|
+
url: '/service-edge-router-policies/{id}/edge-routers',
|
|
3485
|
+
...options
|
|
3486
|
+
});
|
|
3487
|
+
};
|
|
3488
|
+
/**
|
|
3489
|
+
* List the services that a service edge router policy applies to
|
|
3490
|
+
*
|
|
3491
|
+
* List the services that a service edge router policy applies to
|
|
3492
|
+
*/
|
|
3493
|
+
export const listServiceEdgeRouterPolicyServices = (options) => {
|
|
3494
|
+
return (options.client ?? client).get({
|
|
3495
|
+
security: [
|
|
3496
|
+
{
|
|
3497
|
+
name: 'zt-session',
|
|
3498
|
+
type: 'apiKey'
|
|
3499
|
+
},
|
|
3500
|
+
{
|
|
3501
|
+
scheme: 'bearer',
|
|
3502
|
+
type: 'http'
|
|
3503
|
+
}
|
|
3504
|
+
],
|
|
3505
|
+
url: '/service-edge-router-policies/{id}/services',
|
|
3506
|
+
...options
|
|
3507
|
+
});
|
|
3508
|
+
};
|
|
3509
|
+
/**
|
|
3510
|
+
* List service policies
|
|
3511
|
+
*
|
|
3512
|
+
* Retrieves a list of service policy resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
3513
|
+
*
|
|
3514
|
+
*/
|
|
3515
|
+
export const listServicePolicies = (options) => {
|
|
3516
|
+
return (options?.client ?? client).get({
|
|
3517
|
+
security: [
|
|
3518
|
+
{
|
|
3519
|
+
name: 'zt-session',
|
|
3520
|
+
type: 'apiKey'
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
scheme: 'bearer',
|
|
3524
|
+
type: 'http'
|
|
3525
|
+
}
|
|
3526
|
+
],
|
|
3527
|
+
url: '/service-policies',
|
|
3528
|
+
...options
|
|
3529
|
+
});
|
|
3530
|
+
};
|
|
3531
|
+
/**
|
|
3532
|
+
* Create a service policy resource
|
|
3533
|
+
*
|
|
3534
|
+
* Create a service policy resource. Requires admin access.
|
|
3535
|
+
*/
|
|
3536
|
+
export const createServicePolicy = (options) => {
|
|
3537
|
+
return (options.client ?? client).post({
|
|
3538
|
+
security: [
|
|
3539
|
+
{
|
|
3540
|
+
name: 'zt-session',
|
|
3541
|
+
type: 'apiKey'
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
scheme: 'bearer',
|
|
3545
|
+
type: 'http'
|
|
3546
|
+
}
|
|
3547
|
+
],
|
|
3548
|
+
url: '/service-policies',
|
|
3549
|
+
...options,
|
|
3550
|
+
headers: {
|
|
3551
|
+
'Content-Type': 'application/json',
|
|
3552
|
+
...options.headers
|
|
3553
|
+
}
|
|
3554
|
+
});
|
|
3555
|
+
};
|
|
3556
|
+
/**
|
|
3557
|
+
* Delete a service policy
|
|
3558
|
+
*
|
|
3559
|
+
* Delete a service policy by id. Requires admin access.
|
|
3560
|
+
*/
|
|
3561
|
+
export const deleteServicePolicy = (options) => {
|
|
3562
|
+
return (options.client ?? client).delete({
|
|
3563
|
+
security: [
|
|
3564
|
+
{
|
|
3565
|
+
name: 'zt-session',
|
|
3566
|
+
type: 'apiKey'
|
|
3567
|
+
},
|
|
3568
|
+
{
|
|
3569
|
+
scheme: 'bearer',
|
|
3570
|
+
type: 'http'
|
|
3571
|
+
}
|
|
3572
|
+
],
|
|
3573
|
+
url: '/service-policies/{id}',
|
|
3574
|
+
...options
|
|
3575
|
+
});
|
|
3576
|
+
};
|
|
3577
|
+
/**
|
|
3578
|
+
* Retrieves a single service policy
|
|
3579
|
+
*
|
|
3580
|
+
* Retrieves a single service policy by id. Requires admin access.
|
|
3581
|
+
*/
|
|
3582
|
+
export const detailServicePolicy = (options) => {
|
|
3583
|
+
return (options.client ?? client).get({
|
|
3584
|
+
security: [
|
|
3585
|
+
{
|
|
3586
|
+
name: 'zt-session',
|
|
3587
|
+
type: 'apiKey'
|
|
3588
|
+
},
|
|
3589
|
+
{
|
|
3590
|
+
scheme: 'bearer',
|
|
3591
|
+
type: 'http'
|
|
3592
|
+
}
|
|
3593
|
+
],
|
|
3594
|
+
url: '/service-policies/{id}',
|
|
3595
|
+
...options
|
|
3596
|
+
});
|
|
3597
|
+
};
|
|
3598
|
+
/**
|
|
3599
|
+
* Update the supplied fields on a service policy
|
|
3600
|
+
*
|
|
3601
|
+
* Update the supplied fields on a service policy. Requires admin access.
|
|
3602
|
+
*/
|
|
3603
|
+
export const patchServicePolicy = (options) => {
|
|
3604
|
+
return (options.client ?? client).patch({
|
|
3605
|
+
security: [
|
|
3606
|
+
{
|
|
3607
|
+
name: 'zt-session',
|
|
3608
|
+
type: 'apiKey'
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
scheme: 'bearer',
|
|
3612
|
+
type: 'http'
|
|
3613
|
+
}
|
|
3614
|
+
],
|
|
3615
|
+
url: '/service-policies/{id}',
|
|
3616
|
+
...options,
|
|
3617
|
+
headers: {
|
|
3618
|
+
'Content-Type': 'application/json',
|
|
3619
|
+
...options.headers
|
|
3620
|
+
}
|
|
3621
|
+
});
|
|
3622
|
+
};
|
|
3623
|
+
/**
|
|
3624
|
+
* Update all fields on a service policy
|
|
3625
|
+
*
|
|
3626
|
+
* Update all fields on a service policy by id. Requires admin access.
|
|
3627
|
+
*/
|
|
3628
|
+
export const updateServicePolicy = (options) => {
|
|
3629
|
+
return (options.client ?? client).put({
|
|
3630
|
+
security: [
|
|
3631
|
+
{
|
|
3632
|
+
name: 'zt-session',
|
|
3633
|
+
type: 'apiKey'
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
scheme: 'bearer',
|
|
3637
|
+
type: 'http'
|
|
3638
|
+
}
|
|
3639
|
+
],
|
|
3640
|
+
url: '/service-policies/{id}',
|
|
3641
|
+
...options,
|
|
3642
|
+
headers: {
|
|
3643
|
+
'Content-Type': 'application/json',
|
|
3644
|
+
...options.headers
|
|
3645
|
+
}
|
|
3646
|
+
});
|
|
3647
|
+
};
|
|
3648
|
+
/**
|
|
3649
|
+
* List identities a service policy affects
|
|
3650
|
+
*
|
|
3651
|
+
* Retrieves a list of identity resources that are affected by a service policy; supports filtering, sorting, and pagination. Requires admin access.
|
|
3652
|
+
*
|
|
3653
|
+
*/
|
|
3654
|
+
export const listServicePolicyIdentities = (options) => {
|
|
3655
|
+
return (options.client ?? client).get({
|
|
3656
|
+
security: [
|
|
3657
|
+
{
|
|
3658
|
+
name: 'zt-session',
|
|
3659
|
+
type: 'apiKey'
|
|
3660
|
+
},
|
|
3661
|
+
{
|
|
3662
|
+
scheme: 'bearer',
|
|
3663
|
+
type: 'http'
|
|
3664
|
+
}
|
|
3665
|
+
],
|
|
3666
|
+
url: '/service-policies/{id}/identities',
|
|
3667
|
+
...options
|
|
3668
|
+
});
|
|
3669
|
+
};
|
|
3670
|
+
/**
|
|
3671
|
+
* List posture check a service policy includes
|
|
3672
|
+
*
|
|
3673
|
+
* Retrieves a list of posture check resources that are affected by a service policy; supports filtering, sorting, and pagination. Requires admin access.
|
|
3674
|
+
*
|
|
3675
|
+
*/
|
|
3676
|
+
export const listServicePolicyPostureChecks = (options) => {
|
|
3677
|
+
return (options.client ?? client).get({
|
|
3678
|
+
security: [
|
|
3679
|
+
{
|
|
3680
|
+
name: 'zt-session',
|
|
3681
|
+
type: 'apiKey'
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
scheme: 'bearer',
|
|
3685
|
+
type: 'http'
|
|
3686
|
+
}
|
|
3687
|
+
],
|
|
3688
|
+
url: '/service-policies/{id}/posture-checks',
|
|
3689
|
+
...options
|
|
3690
|
+
});
|
|
3691
|
+
};
|
|
3692
|
+
/**
|
|
3693
|
+
* List services a service policy affects
|
|
3694
|
+
*
|
|
3695
|
+
* Retrieves a list of service resources that are affected by a service policy; supports filtering, sorting, and pagination. Requires admin access.
|
|
3696
|
+
*
|
|
3697
|
+
*/
|
|
3698
|
+
export const listServicePolicyServices = (options) => {
|
|
3699
|
+
return (options.client ?? client).get({
|
|
3700
|
+
security: [
|
|
3701
|
+
{
|
|
3702
|
+
name: 'zt-session',
|
|
3703
|
+
type: 'apiKey'
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
scheme: 'bearer',
|
|
3707
|
+
type: 'http'
|
|
3708
|
+
}
|
|
3709
|
+
],
|
|
3710
|
+
url: '/service-policies/{id}/services',
|
|
3711
|
+
...options
|
|
3712
|
+
});
|
|
3713
|
+
};
|
|
3714
|
+
/**
|
|
3715
|
+
* List role attributes in use by services
|
|
3716
|
+
*
|
|
3717
|
+
* Retrieves a list of role attributes in use by services; supports filtering, sorting, and pagination. Requires admin access.
|
|
3718
|
+
*
|
|
3719
|
+
*/
|
|
3720
|
+
export const listServiceRoleAttributes = (options) => {
|
|
3721
|
+
return (options?.client ?? client).get({
|
|
3722
|
+
security: [
|
|
3723
|
+
{
|
|
3724
|
+
name: 'zt-session',
|
|
3725
|
+
type: 'apiKey'
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
scheme: 'bearer',
|
|
3729
|
+
type: 'http'
|
|
3730
|
+
}
|
|
3731
|
+
],
|
|
3732
|
+
url: '/service-role-attributes',
|
|
3733
|
+
...options
|
|
3734
|
+
});
|
|
3735
|
+
};
|
|
3736
|
+
/**
|
|
3737
|
+
* List services
|
|
3738
|
+
*
|
|
3739
|
+
* Retrieves a list of config resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
3740
|
+
*
|
|
3741
|
+
*/
|
|
3742
|
+
export const listServices = (options) => {
|
|
3743
|
+
return (options?.client ?? client).get({
|
|
3744
|
+
security: [
|
|
3745
|
+
{
|
|
3746
|
+
name: 'zt-session',
|
|
3747
|
+
type: 'apiKey'
|
|
3748
|
+
},
|
|
3749
|
+
{
|
|
3750
|
+
scheme: 'bearer',
|
|
3751
|
+
type: 'http'
|
|
3752
|
+
}
|
|
3753
|
+
],
|
|
3754
|
+
url: '/services',
|
|
3755
|
+
...options
|
|
3756
|
+
});
|
|
3757
|
+
};
|
|
3758
|
+
/**
|
|
3759
|
+
* Create a services resource
|
|
3760
|
+
*
|
|
3761
|
+
* Create a services resource. Requires admin access.
|
|
3762
|
+
*/
|
|
3763
|
+
export const createService = (options) => {
|
|
3764
|
+
return (options.client ?? client).post({
|
|
3765
|
+
security: [
|
|
3766
|
+
{
|
|
3767
|
+
name: 'zt-session',
|
|
3768
|
+
type: 'apiKey'
|
|
3769
|
+
},
|
|
3770
|
+
{
|
|
3771
|
+
scheme: 'bearer',
|
|
3772
|
+
type: 'http'
|
|
3773
|
+
}
|
|
3774
|
+
],
|
|
3775
|
+
url: '/services',
|
|
3776
|
+
...options,
|
|
3777
|
+
headers: {
|
|
3778
|
+
'Content-Type': 'application/json',
|
|
3779
|
+
...options.headers
|
|
3780
|
+
}
|
|
3781
|
+
});
|
|
3782
|
+
};
|
|
3783
|
+
/**
|
|
3784
|
+
* Delete a service
|
|
3785
|
+
*
|
|
3786
|
+
* Delete a service by id. Requires admin access.
|
|
3787
|
+
*/
|
|
3788
|
+
export const deleteService = (options) => {
|
|
3789
|
+
return (options.client ?? client).delete({
|
|
3790
|
+
security: [
|
|
3791
|
+
{
|
|
3792
|
+
name: 'zt-session',
|
|
3793
|
+
type: 'apiKey'
|
|
3794
|
+
},
|
|
3795
|
+
{
|
|
3796
|
+
scheme: 'bearer',
|
|
3797
|
+
type: 'http'
|
|
3798
|
+
}
|
|
3799
|
+
],
|
|
3800
|
+
url: '/services/{id}',
|
|
3801
|
+
...options
|
|
3802
|
+
});
|
|
3803
|
+
};
|
|
3804
|
+
/**
|
|
3805
|
+
* Retrieves a single service
|
|
3806
|
+
*
|
|
3807
|
+
* Retrieves a single service by id. Requires admin access.
|
|
3808
|
+
*/
|
|
3809
|
+
export const detailService = (options) => {
|
|
3810
|
+
return (options.client ?? client).get({
|
|
3811
|
+
security: [
|
|
3812
|
+
{
|
|
3813
|
+
name: 'zt-session',
|
|
3814
|
+
type: 'apiKey'
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
scheme: 'bearer',
|
|
3818
|
+
type: 'http'
|
|
3819
|
+
}
|
|
3820
|
+
],
|
|
3821
|
+
url: '/services/{id}',
|
|
3822
|
+
...options
|
|
3823
|
+
});
|
|
3824
|
+
};
|
|
3825
|
+
/**
|
|
3826
|
+
* Update the supplied fields on a service
|
|
3827
|
+
*
|
|
3828
|
+
* Update the supplied fields on a service. Requires admin access.
|
|
3829
|
+
*/
|
|
3830
|
+
export const patchService = (options) => {
|
|
3831
|
+
return (options.client ?? client).patch({
|
|
3832
|
+
security: [
|
|
3833
|
+
{
|
|
3834
|
+
name: 'zt-session',
|
|
3835
|
+
type: 'apiKey'
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
scheme: 'bearer',
|
|
3839
|
+
type: 'http'
|
|
3840
|
+
}
|
|
3841
|
+
],
|
|
3842
|
+
url: '/services/{id}',
|
|
3843
|
+
...options,
|
|
3844
|
+
headers: {
|
|
3845
|
+
'Content-Type': 'application/json',
|
|
3846
|
+
...options.headers
|
|
3847
|
+
}
|
|
3848
|
+
});
|
|
3849
|
+
};
|
|
3850
|
+
/**
|
|
3851
|
+
* Update all fields on a service
|
|
3852
|
+
*
|
|
3853
|
+
* Update all fields on a service by id. Requires admin access.
|
|
3854
|
+
*/
|
|
3855
|
+
export const updateService = (options) => {
|
|
3856
|
+
return (options.client ?? client).put({
|
|
3857
|
+
security: [
|
|
3858
|
+
{
|
|
3859
|
+
name: 'zt-session',
|
|
3860
|
+
type: 'apiKey'
|
|
3861
|
+
},
|
|
3862
|
+
{
|
|
3863
|
+
scheme: 'bearer',
|
|
3864
|
+
type: 'http'
|
|
3865
|
+
}
|
|
3866
|
+
],
|
|
3867
|
+
url: '/services/{id}',
|
|
3868
|
+
...options,
|
|
3869
|
+
headers: {
|
|
3870
|
+
'Content-Type': 'application/json',
|
|
3871
|
+
...options.headers
|
|
3872
|
+
}
|
|
3873
|
+
});
|
|
3874
|
+
};
|
|
3875
|
+
/**
|
|
3876
|
+
* List configs associated to a specific service
|
|
3877
|
+
*
|
|
3878
|
+
* Retrieves a list of config resources associated to a specific service; supports filtering, sorting, and pagination. Requires admin access.
|
|
3879
|
+
*
|
|
3880
|
+
*/
|
|
3881
|
+
export const listServiceConfig = (options) => {
|
|
3882
|
+
return (options.client ?? client).get({
|
|
3883
|
+
security: [
|
|
3884
|
+
{
|
|
3885
|
+
name: 'zt-session',
|
|
3886
|
+
type: 'apiKey'
|
|
3887
|
+
},
|
|
3888
|
+
{
|
|
3889
|
+
scheme: 'bearer',
|
|
3890
|
+
type: 'http'
|
|
3891
|
+
}
|
|
3892
|
+
],
|
|
3893
|
+
url: '/services/{id}/configs',
|
|
3894
|
+
...options
|
|
3895
|
+
});
|
|
3896
|
+
};
|
|
3897
|
+
/**
|
|
3898
|
+
* List accessible edge-routers
|
|
3899
|
+
*
|
|
3900
|
+
* Retrieves a list of edge-routers that may be used to access the given service. Supports filtering, sorting, and pagination. Requires admin access.
|
|
3901
|
+
*
|
|
3902
|
+
*/
|
|
3903
|
+
export const listServiceEdgeRouters = (options) => {
|
|
3904
|
+
return (options.client ?? client).get({
|
|
3905
|
+
security: [
|
|
3906
|
+
{
|
|
3907
|
+
name: 'zt-session',
|
|
3908
|
+
type: 'apiKey'
|
|
3909
|
+
},
|
|
3910
|
+
{
|
|
3911
|
+
scheme: 'bearer',
|
|
3912
|
+
type: 'http'
|
|
3913
|
+
}
|
|
3914
|
+
],
|
|
3915
|
+
url: '/services/{id}/edge-routers',
|
|
3916
|
+
...options
|
|
3917
|
+
});
|
|
3918
|
+
};
|
|
3919
|
+
/**
|
|
3920
|
+
* List identities with access
|
|
3921
|
+
*
|
|
3922
|
+
* Retrieves a list of identities that have access to this service. Supports filtering, sorting, and pagination. Requires admin access.
|
|
3923
|
+
*
|
|
3924
|
+
*/
|
|
3925
|
+
export const listServiceIdentities = (options) => {
|
|
3926
|
+
return (options.client ?? client).get({
|
|
3927
|
+
security: [
|
|
3928
|
+
{
|
|
3929
|
+
name: 'zt-session',
|
|
3930
|
+
type: 'apiKey'
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
scheme: 'bearer',
|
|
3934
|
+
type: 'http'
|
|
3935
|
+
}
|
|
3936
|
+
],
|
|
3937
|
+
url: '/services/{id}/identities',
|
|
3938
|
+
...options
|
|
3939
|
+
});
|
|
3940
|
+
};
|
|
3941
|
+
/**
|
|
3942
|
+
* List service edge router policies that affect a specific service
|
|
3943
|
+
*
|
|
3944
|
+
* Retrieves a list of service edge router policy resources that affect a specific service; supports filtering, sorting, and pagination. Requires admin access.
|
|
3945
|
+
*
|
|
3946
|
+
*/
|
|
3947
|
+
export const listServiceServiceEdgeRouterPolicies = (options) => {
|
|
3948
|
+
return (options.client ?? client).get({
|
|
3949
|
+
security: [
|
|
3950
|
+
{
|
|
3951
|
+
name: 'zt-session',
|
|
3952
|
+
type: 'apiKey'
|
|
3953
|
+
},
|
|
3954
|
+
{
|
|
3955
|
+
scheme: 'bearer',
|
|
3956
|
+
type: 'http'
|
|
3957
|
+
}
|
|
3958
|
+
],
|
|
3959
|
+
url: '/services/{id}/service-edge-router-policies',
|
|
3960
|
+
...options
|
|
3961
|
+
});
|
|
3962
|
+
};
|
|
3963
|
+
/**
|
|
3964
|
+
* List service policies that affect a specific service
|
|
3965
|
+
*
|
|
3966
|
+
* Retrieves a list of service policy resources that affect specific service; supports filtering, sorting, and pagination. Requires admin access.
|
|
3967
|
+
*
|
|
3968
|
+
*/
|
|
3969
|
+
export const listServiceServicePolicies = (options) => {
|
|
3970
|
+
return (options.client ?? client).get({
|
|
3971
|
+
security: [
|
|
3972
|
+
{
|
|
3973
|
+
name: 'zt-session',
|
|
3974
|
+
type: 'apiKey'
|
|
3975
|
+
},
|
|
3976
|
+
{
|
|
3977
|
+
scheme: 'bearer',
|
|
3978
|
+
type: 'http'
|
|
3979
|
+
}
|
|
3980
|
+
],
|
|
3981
|
+
url: '/services/{id}/service-policies',
|
|
3982
|
+
...options
|
|
3983
|
+
});
|
|
3984
|
+
};
|
|
3985
|
+
/**
|
|
3986
|
+
* List of terminators assigned to a service
|
|
3987
|
+
*
|
|
3988
|
+
* Retrieves a list of terminator resources that are assigned specific service; supports filtering, sorting, and pagination.
|
|
3989
|
+
*
|
|
3990
|
+
*/
|
|
3991
|
+
export const listServiceTerminators = (options) => {
|
|
3992
|
+
return (options.client ?? client).get({
|
|
3993
|
+
security: [
|
|
3994
|
+
{
|
|
3995
|
+
name: 'zt-session',
|
|
3996
|
+
type: 'apiKey'
|
|
3997
|
+
},
|
|
3998
|
+
{
|
|
3999
|
+
scheme: 'bearer',
|
|
4000
|
+
type: 'http'
|
|
4001
|
+
}
|
|
4002
|
+
],
|
|
4003
|
+
url: '/services/{id}/terminators',
|
|
4004
|
+
...options
|
|
4005
|
+
});
|
|
4006
|
+
};
|
|
4007
|
+
/**
|
|
4008
|
+
* List sessions
|
|
4009
|
+
*
|
|
4010
|
+
* Retrieves a list of active sessions resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
4011
|
+
*
|
|
4012
|
+
* Sessions are tied to an API session and are moved when an API session times out or logs out. Active sessions
|
|
4013
|
+
* (i.e. Ziti SDK connected to an edge router) will keep the session and API session marked as active.
|
|
4014
|
+
*
|
|
4015
|
+
*/
|
|
4016
|
+
export const listSessions = (options) => {
|
|
4017
|
+
return (options?.client ?? client).get({
|
|
4018
|
+
security: [
|
|
4019
|
+
{
|
|
4020
|
+
name: 'zt-session',
|
|
4021
|
+
type: 'apiKey'
|
|
4022
|
+
},
|
|
4023
|
+
{
|
|
4024
|
+
scheme: 'bearer',
|
|
4025
|
+
type: 'http'
|
|
4026
|
+
}
|
|
4027
|
+
],
|
|
4028
|
+
url: '/sessions',
|
|
4029
|
+
...options
|
|
4030
|
+
});
|
|
4031
|
+
};
|
|
4032
|
+
/**
|
|
4033
|
+
* Delete a session
|
|
4034
|
+
*
|
|
4035
|
+
* Delete a session by id. Requires admin access.
|
|
4036
|
+
*/
|
|
4037
|
+
export const deleteSession = (options) => {
|
|
4038
|
+
return (options.client ?? client).delete({
|
|
4039
|
+
security: [
|
|
4040
|
+
{
|
|
4041
|
+
name: 'zt-session',
|
|
4042
|
+
type: 'apiKey'
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
scheme: 'bearer',
|
|
4046
|
+
type: 'http'
|
|
4047
|
+
}
|
|
4048
|
+
],
|
|
4049
|
+
url: '/sessions/{id}',
|
|
4050
|
+
...options
|
|
4051
|
+
});
|
|
4052
|
+
};
|
|
4053
|
+
/**
|
|
4054
|
+
* Retrieves a single session
|
|
4055
|
+
*
|
|
4056
|
+
* Retrieves a single session by id. Requires admin access.
|
|
4057
|
+
*/
|
|
4058
|
+
export const detailSession = (options) => {
|
|
4059
|
+
return (options.client ?? client).get({
|
|
4060
|
+
security: [
|
|
4061
|
+
{
|
|
4062
|
+
name: 'zt-session',
|
|
4063
|
+
type: 'apiKey'
|
|
4064
|
+
},
|
|
4065
|
+
{
|
|
4066
|
+
scheme: 'bearer',
|
|
4067
|
+
type: 'http'
|
|
4068
|
+
}
|
|
4069
|
+
],
|
|
4070
|
+
url: '/sessions/{id}',
|
|
4071
|
+
...options
|
|
4072
|
+
});
|
|
4073
|
+
};
|
|
4074
|
+
/**
|
|
4075
|
+
* Retrieves a single session's router path
|
|
4076
|
+
*
|
|
4077
|
+
* Retrieves a single session's route path by id. Requires admin access.
|
|
4078
|
+
*/
|
|
4079
|
+
export const detailSessionRoutePath = (options) => {
|
|
4080
|
+
return (options.client ?? client).get({
|
|
4081
|
+
security: [
|
|
4082
|
+
{
|
|
4083
|
+
name: 'zt-session',
|
|
4084
|
+
type: 'apiKey'
|
|
4085
|
+
},
|
|
4086
|
+
{
|
|
4087
|
+
scheme: 'bearer',
|
|
4088
|
+
type: 'http'
|
|
4089
|
+
}
|
|
4090
|
+
],
|
|
4091
|
+
url: '/sessions/{id}/route-path',
|
|
4092
|
+
...options
|
|
4093
|
+
});
|
|
4094
|
+
};
|
|
4095
|
+
/**
|
|
4096
|
+
* Returns a list of API specs
|
|
4097
|
+
*
|
|
4098
|
+
* Returns a list of spec files embedded within the controller for consumption/documentation/code geneartion
|
|
4099
|
+
*/
|
|
4100
|
+
export const listSpecs = (options) => {
|
|
4101
|
+
return (options?.client ?? client).get({
|
|
4102
|
+
url: '/specs',
|
|
4103
|
+
...options
|
|
4104
|
+
});
|
|
4105
|
+
};
|
|
4106
|
+
/**
|
|
4107
|
+
* Return a single spec resource
|
|
4108
|
+
*
|
|
4109
|
+
* Returns single spec resource embedded within the controller for consumption/documentation/code geneartion
|
|
4110
|
+
*/
|
|
4111
|
+
export const detailSpec = (options) => {
|
|
4112
|
+
return (options.client ?? client).get({
|
|
4113
|
+
url: '/specs/{id}',
|
|
4114
|
+
...options
|
|
4115
|
+
});
|
|
4116
|
+
};
|
|
4117
|
+
/**
|
|
4118
|
+
* Returns the spec's file
|
|
4119
|
+
*
|
|
4120
|
+
* Return the body of the specification (i.e. Swagger, OpenAPI 2.0, 3.0, etc).
|
|
4121
|
+
*/
|
|
4122
|
+
export const detailSpecBody = (options) => {
|
|
4123
|
+
return (options.client ?? client).get({
|
|
4124
|
+
url: '/specs/{id}/spec',
|
|
4125
|
+
...options
|
|
4126
|
+
});
|
|
4127
|
+
};
|
|
4128
|
+
/**
|
|
4129
|
+
* Returns a list of accessible resource counts
|
|
4130
|
+
*
|
|
4131
|
+
* This endpoint is usefull for UIs that wish to display UI elements with counts.
|
|
4132
|
+
*/
|
|
4133
|
+
export const listSummary = (options) => {
|
|
4134
|
+
return (options?.client ?? client).get({
|
|
4135
|
+
security: [
|
|
4136
|
+
{
|
|
4137
|
+
name: 'zt-session',
|
|
4138
|
+
type: 'apiKey'
|
|
4139
|
+
},
|
|
4140
|
+
{
|
|
4141
|
+
scheme: 'bearer',
|
|
4142
|
+
type: 'http'
|
|
4143
|
+
}
|
|
4144
|
+
],
|
|
4145
|
+
url: '/summary',
|
|
4146
|
+
...options
|
|
4147
|
+
});
|
|
4148
|
+
};
|
|
4149
|
+
/**
|
|
4150
|
+
* List terminators
|
|
4151
|
+
*
|
|
4152
|
+
* Retrieves a list of terminator resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
4153
|
+
*
|
|
4154
|
+
*/
|
|
4155
|
+
export const listTerminators = (options) => {
|
|
4156
|
+
return (options?.client ?? client).get({
|
|
4157
|
+
security: [
|
|
4158
|
+
{
|
|
4159
|
+
name: 'zt-session',
|
|
4160
|
+
type: 'apiKey'
|
|
4161
|
+
},
|
|
4162
|
+
{
|
|
4163
|
+
scheme: 'bearer',
|
|
4164
|
+
type: 'http'
|
|
4165
|
+
}
|
|
4166
|
+
],
|
|
4167
|
+
url: '/terminators',
|
|
4168
|
+
...options
|
|
4169
|
+
});
|
|
4170
|
+
};
|
|
4171
|
+
/**
|
|
4172
|
+
* Create a terminator resource
|
|
4173
|
+
*
|
|
4174
|
+
* Create a terminator resource. Requires admin access.
|
|
4175
|
+
*/
|
|
4176
|
+
export const createTerminator = (options) => {
|
|
4177
|
+
return (options.client ?? client).post({
|
|
4178
|
+
security: [
|
|
4179
|
+
{
|
|
4180
|
+
name: 'zt-session',
|
|
4181
|
+
type: 'apiKey'
|
|
4182
|
+
},
|
|
4183
|
+
{
|
|
4184
|
+
scheme: 'bearer',
|
|
4185
|
+
type: 'http'
|
|
4186
|
+
}
|
|
4187
|
+
],
|
|
4188
|
+
url: '/terminators',
|
|
4189
|
+
...options,
|
|
4190
|
+
headers: {
|
|
4191
|
+
'Content-Type': 'application/json',
|
|
4192
|
+
...options.headers
|
|
4193
|
+
}
|
|
4194
|
+
});
|
|
4195
|
+
};
|
|
4196
|
+
/**
|
|
4197
|
+
* Delete a terminator
|
|
4198
|
+
*
|
|
4199
|
+
* Delete a terminator by id. Requires admin access.
|
|
4200
|
+
*/
|
|
4201
|
+
export const deleteTerminator = (options) => {
|
|
4202
|
+
return (options.client ?? client).delete({
|
|
4203
|
+
security: [
|
|
4204
|
+
{
|
|
4205
|
+
name: 'zt-session',
|
|
4206
|
+
type: 'apiKey'
|
|
4207
|
+
},
|
|
4208
|
+
{
|
|
4209
|
+
scheme: 'bearer',
|
|
4210
|
+
type: 'http'
|
|
4211
|
+
}
|
|
4212
|
+
],
|
|
4213
|
+
url: '/terminators/{id}',
|
|
4214
|
+
...options
|
|
4215
|
+
});
|
|
4216
|
+
};
|
|
4217
|
+
/**
|
|
4218
|
+
* Retrieves a single terminator
|
|
4219
|
+
*
|
|
4220
|
+
* Retrieves a single terminator by id. Requires admin access.
|
|
4221
|
+
*/
|
|
4222
|
+
export const detailTerminator = (options) => {
|
|
4223
|
+
return (options.client ?? client).get({
|
|
4224
|
+
security: [
|
|
4225
|
+
{
|
|
4226
|
+
name: 'zt-session',
|
|
4227
|
+
type: 'apiKey'
|
|
4228
|
+
},
|
|
4229
|
+
{
|
|
4230
|
+
scheme: 'bearer',
|
|
4231
|
+
type: 'http'
|
|
4232
|
+
}
|
|
4233
|
+
],
|
|
4234
|
+
url: '/terminators/{id}',
|
|
4235
|
+
...options
|
|
4236
|
+
});
|
|
4237
|
+
};
|
|
4238
|
+
/**
|
|
4239
|
+
* Update the supplied fields on a terminator
|
|
4240
|
+
*
|
|
4241
|
+
* Update the supplied fields on a terminator. Requires admin access.
|
|
4242
|
+
*/
|
|
4243
|
+
export const patchTerminator = (options) => {
|
|
4244
|
+
return (options.client ?? client).patch({
|
|
4245
|
+
security: [
|
|
4246
|
+
{
|
|
4247
|
+
name: 'zt-session',
|
|
4248
|
+
type: 'apiKey'
|
|
4249
|
+
},
|
|
4250
|
+
{
|
|
4251
|
+
scheme: 'bearer',
|
|
4252
|
+
type: 'http'
|
|
4253
|
+
}
|
|
4254
|
+
],
|
|
4255
|
+
url: '/terminators/{id}',
|
|
4256
|
+
...options,
|
|
4257
|
+
headers: {
|
|
4258
|
+
'Content-Type': 'application/json',
|
|
4259
|
+
...options.headers
|
|
4260
|
+
}
|
|
4261
|
+
});
|
|
4262
|
+
};
|
|
4263
|
+
/**
|
|
4264
|
+
* Update all fields on a terminator
|
|
4265
|
+
*
|
|
4266
|
+
* Update all fields on a terminator by id. Requires admin access.
|
|
4267
|
+
*/
|
|
4268
|
+
export const updateTerminator = (options) => {
|
|
4269
|
+
return (options.client ?? client).put({
|
|
4270
|
+
security: [
|
|
4271
|
+
{
|
|
4272
|
+
name: 'zt-session',
|
|
4273
|
+
type: 'apiKey'
|
|
4274
|
+
},
|
|
4275
|
+
{
|
|
4276
|
+
scheme: 'bearer',
|
|
4277
|
+
type: 'http'
|
|
4278
|
+
}
|
|
4279
|
+
],
|
|
4280
|
+
url: '/terminators/{id}',
|
|
4281
|
+
...options,
|
|
4282
|
+
headers: {
|
|
4283
|
+
'Content-Type': 'application/json',
|
|
4284
|
+
...options.headers
|
|
4285
|
+
}
|
|
4286
|
+
});
|
|
4287
|
+
};
|
|
4288
|
+
/**
|
|
4289
|
+
* List routers
|
|
4290
|
+
*
|
|
4291
|
+
* Retrieves a list of router resources; supports filtering, sorting, and pagination. Requires admin access.
|
|
4292
|
+
*
|
|
4293
|
+
*/
|
|
4294
|
+
export const listTransitRouters = (options) => {
|
|
4295
|
+
return (options?.client ?? client).get({
|
|
4296
|
+
security: [
|
|
4297
|
+
{
|
|
4298
|
+
name: 'zt-session',
|
|
4299
|
+
type: 'apiKey'
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
scheme: 'bearer',
|
|
4303
|
+
type: 'http'
|
|
4304
|
+
}
|
|
4305
|
+
],
|
|
4306
|
+
url: '/transit-routers',
|
|
4307
|
+
...options
|
|
4308
|
+
});
|
|
4309
|
+
};
|
|
4310
|
+
/**
|
|
4311
|
+
* Create a router resource
|
|
4312
|
+
*
|
|
4313
|
+
* Create a router resource. Requires admin access.
|
|
4314
|
+
*/
|
|
4315
|
+
export const createTransitRouter = (options) => {
|
|
4316
|
+
return (options.client ?? client).post({
|
|
4317
|
+
security: [
|
|
4318
|
+
{
|
|
4319
|
+
name: 'zt-session',
|
|
4320
|
+
type: 'apiKey'
|
|
4321
|
+
},
|
|
4322
|
+
{
|
|
4323
|
+
scheme: 'bearer',
|
|
4324
|
+
type: 'http'
|
|
4325
|
+
}
|
|
4326
|
+
],
|
|
4327
|
+
url: '/transit-routers',
|
|
4328
|
+
...options,
|
|
4329
|
+
headers: {
|
|
4330
|
+
'Content-Type': 'application/json',
|
|
4331
|
+
...options.headers
|
|
4332
|
+
}
|
|
4333
|
+
});
|
|
4334
|
+
};
|
|
4335
|
+
/**
|
|
4336
|
+
* Delete a router
|
|
4337
|
+
*
|
|
4338
|
+
* Delete a router by id. Requires admin access.
|
|
4339
|
+
*/
|
|
4340
|
+
export const deleteTransitRouter = (options) => {
|
|
4341
|
+
return (options.client ?? client).delete({
|
|
4342
|
+
security: [
|
|
4343
|
+
{
|
|
4344
|
+
name: 'zt-session',
|
|
4345
|
+
type: 'apiKey'
|
|
4346
|
+
},
|
|
4347
|
+
{
|
|
4348
|
+
scheme: 'bearer',
|
|
4349
|
+
type: 'http'
|
|
4350
|
+
}
|
|
4351
|
+
],
|
|
4352
|
+
url: '/transit-routers/{id}',
|
|
4353
|
+
...options
|
|
4354
|
+
});
|
|
4355
|
+
};
|
|
4356
|
+
/**
|
|
4357
|
+
* Retrieves a single router
|
|
4358
|
+
*
|
|
4359
|
+
* Retrieves a single router by id. Requires admin access.
|
|
4360
|
+
*/
|
|
4361
|
+
export const detailTransitRouter = (options) => {
|
|
4362
|
+
return (options.client ?? client).get({
|
|
4363
|
+
security: [
|
|
4364
|
+
{
|
|
4365
|
+
name: 'zt-session',
|
|
4366
|
+
type: 'apiKey'
|
|
4367
|
+
},
|
|
4368
|
+
{
|
|
4369
|
+
scheme: 'bearer',
|
|
4370
|
+
type: 'http'
|
|
4371
|
+
}
|
|
4372
|
+
],
|
|
4373
|
+
url: '/transit-routers/{id}',
|
|
4374
|
+
...options
|
|
4375
|
+
});
|
|
4376
|
+
};
|
|
4377
|
+
/**
|
|
4378
|
+
* Update the supplied fields on a router
|
|
4379
|
+
*
|
|
4380
|
+
* Update the supplied fields on a router. Requires admin access.
|
|
4381
|
+
*/
|
|
4382
|
+
export const patchTransitRouter = (options) => {
|
|
4383
|
+
return (options.client ?? client).patch({
|
|
4384
|
+
security: [
|
|
4385
|
+
{
|
|
4386
|
+
name: 'zt-session',
|
|
4387
|
+
type: 'apiKey'
|
|
4388
|
+
},
|
|
4389
|
+
{
|
|
4390
|
+
scheme: 'bearer',
|
|
4391
|
+
type: 'http'
|
|
4392
|
+
}
|
|
4393
|
+
],
|
|
4394
|
+
url: '/transit-routers/{id}',
|
|
4395
|
+
...options,
|
|
4396
|
+
headers: {
|
|
4397
|
+
'Content-Type': 'application/json',
|
|
4398
|
+
...options.headers
|
|
4399
|
+
}
|
|
4400
|
+
});
|
|
4401
|
+
};
|
|
4402
|
+
/**
|
|
4403
|
+
* Update all fields on a router
|
|
4404
|
+
*
|
|
4405
|
+
* Update all fields on a router by id. Requires admin access.
|
|
4406
|
+
*/
|
|
4407
|
+
export const updateTransitRouter = (options) => {
|
|
4408
|
+
return (options.client ?? client).put({
|
|
4409
|
+
security: [
|
|
4410
|
+
{
|
|
4411
|
+
name: 'zt-session',
|
|
4412
|
+
type: 'apiKey'
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
scheme: 'bearer',
|
|
4416
|
+
type: 'http'
|
|
4417
|
+
}
|
|
4418
|
+
],
|
|
4419
|
+
url: '/transit-routers/{id}',
|
|
4420
|
+
...options,
|
|
4421
|
+
headers: {
|
|
4422
|
+
'Content-Type': 'application/json',
|
|
4423
|
+
...options.headers
|
|
4424
|
+
}
|
|
4425
|
+
});
|
|
4426
|
+
};
|
|
4427
|
+
/**
|
|
4428
|
+
* Returns version information
|
|
4429
|
+
*/
|
|
4430
|
+
export const listVersion = (options) => {
|
|
4431
|
+
return (options?.client ?? client).get({
|
|
4432
|
+
url: '/version',
|
|
4433
|
+
...options
|
|
4434
|
+
});
|
|
4435
|
+
};
|
|
4436
|
+
//# sourceMappingURL=sdk.gen.js.map
|