@flashstart/client 0.1.0 → 0.2.1
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 +9 -2
- package/dist/src/generated/authentication/client/client.gen.d.ts +2 -0
- package/dist/src/generated/authentication/client/client.gen.js +216 -0
- package/dist/src/generated/authentication/client/index.d.ts +10 -0
- package/dist/src/generated/authentication/client/index.js +6 -0
- package/dist/src/generated/authentication/client/types.gen.d.ts +120 -0
- package/dist/src/generated/authentication/client/types.gen.js +2 -0
- package/dist/src/generated/authentication/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/authentication/client/utils.gen.js +228 -0
- package/dist/src/generated/authentication/client.gen.d.ts +12 -0
- package/dist/src/generated/authentication/client.gen.js +3 -0
- package/dist/src/generated/authentication/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/authentication/core/auth.gen.js +14 -0
- package/dist/src/generated/authentication/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/authentication/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/authentication/core/params.gen.d.ts +43 -0
- package/dist/src/generated/authentication/core/params.gen.js +109 -0
- package/dist/src/generated/authentication/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/authentication/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/authentication/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/authentication/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/authentication/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/authentication/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/authentication/core/types.gen.d.ts +83 -0
- package/dist/src/generated/authentication/core/types.gen.js +2 -0
- package/dist/src/generated/authentication/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/authentication/core/utils.gen.js +87 -0
- package/dist/src/generated/authentication/index.d.ts +2 -0
- package/dist/src/generated/authentication/index.js +2 -0
- package/dist/src/generated/authentication/sdk.gen.d.ts +151 -0
- package/dist/src/generated/authentication/sdk.gen.js +359 -0
- package/dist/src/generated/authentication/types.gen.d.ts +1135 -0
- package/dist/src/generated/authentication/types.gen.js +2 -0
- package/dist/src/generated/integration/client/client.gen.d.ts +2 -0
- package/dist/src/generated/integration/client/client.gen.js +216 -0
- package/dist/src/generated/integration/client/index.d.ts +10 -0
- package/dist/src/generated/integration/client/index.js +6 -0
- package/dist/src/generated/integration/client/types.gen.d.ts +120 -0
- package/dist/src/generated/integration/client/types.gen.js +2 -0
- package/dist/src/generated/integration/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/integration/client/utils.gen.js +228 -0
- package/dist/src/generated/integration/client.gen.d.ts +12 -0
- package/dist/src/generated/integration/client.gen.js +3 -0
- package/dist/src/generated/integration/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/integration/core/auth.gen.js +14 -0
- package/dist/src/generated/integration/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/integration/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/integration/core/params.gen.d.ts +43 -0
- package/dist/src/generated/integration/core/params.gen.js +109 -0
- package/dist/src/generated/integration/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/integration/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/integration/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/integration/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/integration/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/integration/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/integration/core/types.gen.d.ts +83 -0
- package/dist/src/generated/integration/core/types.gen.js +2 -0
- package/dist/src/generated/integration/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/integration/core/utils.gen.js +87 -0
- package/dist/src/generated/integration/index.d.ts +2 -0
- package/dist/src/generated/integration/index.js +2 -0
- package/dist/src/generated/integration/sdk.gen.d.ts +207 -0
- package/dist/src/generated/integration/sdk.gen.js +527 -0
- package/dist/src/generated/integration/types.gen.d.ts +2604 -0
- package/dist/src/generated/integration/types.gen.js +2 -0
- package/dist/src/generated/network/index.d.ts +1 -1
- package/dist/src/generated/network/types.gen.d.ts +751 -55
- package/dist/src/generated/protection/index.d.ts +1 -1
- package/dist/src/generated/protection/types.gen.d.ts +627 -357
- package/dist/src/generated/report/client/client.gen.d.ts +2 -0
- package/dist/src/generated/report/client/client.gen.js +216 -0
- package/dist/src/generated/report/client/index.d.ts +10 -0
- package/dist/src/generated/report/client/index.js +6 -0
- package/dist/src/generated/report/client/types.gen.d.ts +120 -0
- package/dist/src/generated/report/client/types.gen.js +2 -0
- package/dist/src/generated/report/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/report/client/utils.gen.js +228 -0
- package/dist/src/generated/report/client.gen.d.ts +12 -0
- package/dist/src/generated/report/client.gen.js +3 -0
- package/dist/src/generated/report/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/report/core/auth.gen.js +14 -0
- package/dist/src/generated/report/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/report/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/report/core/params.gen.d.ts +43 -0
- package/dist/src/generated/report/core/params.gen.js +109 -0
- package/dist/src/generated/report/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/report/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/report/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/report/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/report/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/report/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/report/core/types.gen.d.ts +83 -0
- package/dist/src/generated/report/core/types.gen.js +2 -0
- package/dist/src/generated/report/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/report/core/utils.gen.js +87 -0
- package/dist/src/generated/report/index.d.ts +2 -0
- package/dist/src/generated/report/index.js +2 -0
- package/dist/src/generated/report/sdk.gen.d.ts +59 -0
- package/dist/src/generated/report/sdk.gen.js +89 -0
- package/dist/src/generated/report/types.gen.d.ts +389 -0
- package/dist/src/generated/report/types.gen.js +2 -0
- package/dist/src/index.d.ts +13 -1
- package/dist/src/index.js +39 -4
- package/package.json +5 -2
|
@@ -163,26 +163,12 @@ export type FlashStartErrorBody = {
|
|
|
163
163
|
export type MissingCredentialsErrorBody = {
|
|
164
164
|
message: string;
|
|
165
165
|
};
|
|
166
|
-
export type NetworkId = string;
|
|
167
|
-
export type PolicyId = string;
|
|
168
|
-
export type EdnsId = string;
|
|
169
|
-
export type OrganizationId = string;
|
|
170
|
-
export type IncludePolicies = boolean;
|
|
171
|
-
export type SingleStaticNetworkCreation2 = SingleStaticNetworkCreation;
|
|
172
|
-
export type CidrStaticNetworkCreation2 = CidrStaticNetworkCreation;
|
|
173
|
-
export type RangeStaticNetworkCreation2 = RangeStaticNetworkCreation;
|
|
174
|
-
export type InternalDynamicNetworkCreation2 = InternalDynamicNetworkCreation;
|
|
175
|
-
export type ExternalDynamicNetworkCreation2 = ExternalDynamicNetworkCreation;
|
|
176
|
-
export type EncryptedNetworkCreation2 = EncryptedNetworkCreation;
|
|
177
|
-
export type StaticNetworkUpdate2 = StaticNetworkUpdate;
|
|
178
|
-
export type InternalDynamicNetworkUpdate2 = InternalDynamicNetworkUpdate;
|
|
179
|
-
export type ExternalDynamicNetworkUpdate2 = ExternalDynamicNetworkUpdate;
|
|
180
166
|
export type ListNetworksData = {
|
|
181
167
|
body?: never;
|
|
182
168
|
path?: never;
|
|
183
169
|
query?: {
|
|
184
170
|
organizationId?: string;
|
|
185
|
-
includePolicies?:
|
|
171
|
+
includePolicies?: 'true' | 'false';
|
|
186
172
|
};
|
|
187
173
|
url: '/v1/';
|
|
188
174
|
};
|
|
@@ -213,7 +199,172 @@ export type ListNetworksResponses = {
|
|
|
213
199
|
/**
|
|
214
200
|
* Networks
|
|
215
201
|
*/
|
|
216
|
-
200: Array<
|
|
202
|
+
200: Array<{
|
|
203
|
+
id: string;
|
|
204
|
+
name: string;
|
|
205
|
+
note: string | null;
|
|
206
|
+
organizationId: string;
|
|
207
|
+
createdAt: string;
|
|
208
|
+
updatedAt: string;
|
|
209
|
+
lastQueriedAt?: string | null;
|
|
210
|
+
type: 'STATIC_SINGLE';
|
|
211
|
+
ip: string | string;
|
|
212
|
+
} | {
|
|
213
|
+
id: string;
|
|
214
|
+
name: string;
|
|
215
|
+
note: string | null;
|
|
216
|
+
organizationId: string;
|
|
217
|
+
createdAt: string;
|
|
218
|
+
updatedAt: string;
|
|
219
|
+
lastQueriedAt?: string | null;
|
|
220
|
+
type: 'STATIC_CIDR';
|
|
221
|
+
cidr: string;
|
|
222
|
+
} | {
|
|
223
|
+
id: string;
|
|
224
|
+
name: string;
|
|
225
|
+
note: string | null;
|
|
226
|
+
organizationId: string;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
updatedAt: string;
|
|
229
|
+
lastQueriedAt?: string | null;
|
|
230
|
+
type: 'STATIC_RANGE';
|
|
231
|
+
rangeIp: {
|
|
232
|
+
start: string;
|
|
233
|
+
end: string;
|
|
234
|
+
};
|
|
235
|
+
} | {
|
|
236
|
+
id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
note: string | null;
|
|
239
|
+
organizationId: string;
|
|
240
|
+
createdAt: string;
|
|
241
|
+
updatedAt: string;
|
|
242
|
+
lastQueriedAt?: string | null;
|
|
243
|
+
type: 'DYNAMIC_INTERNAL';
|
|
244
|
+
ddns: {
|
|
245
|
+
username: string;
|
|
246
|
+
password: string;
|
|
247
|
+
lastSync?: string | null;
|
|
248
|
+
};
|
|
249
|
+
dynamicIp: string | string | '';
|
|
250
|
+
} | {
|
|
251
|
+
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
note: string | null;
|
|
254
|
+
organizationId: string;
|
|
255
|
+
createdAt: string;
|
|
256
|
+
updatedAt: string;
|
|
257
|
+
lastQueriedAt?: string | null;
|
|
258
|
+
type: 'DYNAMIC_EXTERNAL';
|
|
259
|
+
domain: string;
|
|
260
|
+
dynamicIp: string | '';
|
|
261
|
+
lastChanged?: string | null;
|
|
262
|
+
} | {
|
|
263
|
+
id: string;
|
|
264
|
+
name: string;
|
|
265
|
+
note: string | null;
|
|
266
|
+
organizationId: string;
|
|
267
|
+
createdAt: string;
|
|
268
|
+
updatedAt: string;
|
|
269
|
+
lastQueriedAt?: string | null;
|
|
270
|
+
type: 'STATIC_ENCRYPTED';
|
|
271
|
+
tag: string;
|
|
272
|
+
policyId: string;
|
|
273
|
+
} | {
|
|
274
|
+
network: {
|
|
275
|
+
id: string;
|
|
276
|
+
name: string;
|
|
277
|
+
note: string | null;
|
|
278
|
+
organizationId: string;
|
|
279
|
+
createdAt: string;
|
|
280
|
+
updatedAt: string;
|
|
281
|
+
lastQueriedAt?: string | null;
|
|
282
|
+
type: 'STATIC_SINGLE';
|
|
283
|
+
ip: string | string;
|
|
284
|
+
} | {
|
|
285
|
+
id: string;
|
|
286
|
+
name: string;
|
|
287
|
+
note: string | null;
|
|
288
|
+
organizationId: string;
|
|
289
|
+
createdAt: string;
|
|
290
|
+
updatedAt: string;
|
|
291
|
+
lastQueriedAt?: string | null;
|
|
292
|
+
type: 'STATIC_CIDR';
|
|
293
|
+
cidr: string;
|
|
294
|
+
} | {
|
|
295
|
+
id: string;
|
|
296
|
+
name: string;
|
|
297
|
+
note: string | null;
|
|
298
|
+
organizationId: string;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
updatedAt: string;
|
|
301
|
+
lastQueriedAt?: string | null;
|
|
302
|
+
type: 'STATIC_RANGE';
|
|
303
|
+
rangeIp: {
|
|
304
|
+
start: string;
|
|
305
|
+
end: string;
|
|
306
|
+
};
|
|
307
|
+
} | {
|
|
308
|
+
id: string;
|
|
309
|
+
name: string;
|
|
310
|
+
note: string | null;
|
|
311
|
+
organizationId: string;
|
|
312
|
+
createdAt: string;
|
|
313
|
+
updatedAt: string;
|
|
314
|
+
lastQueriedAt?: string | null;
|
|
315
|
+
type: 'DYNAMIC_INTERNAL';
|
|
316
|
+
ddns: {
|
|
317
|
+
username: string;
|
|
318
|
+
password: string;
|
|
319
|
+
lastSync?: string | null;
|
|
320
|
+
};
|
|
321
|
+
dynamicIp: string | string | '';
|
|
322
|
+
} | {
|
|
323
|
+
id: string;
|
|
324
|
+
name: string;
|
|
325
|
+
note: string | null;
|
|
326
|
+
organizationId: string;
|
|
327
|
+
createdAt: string;
|
|
328
|
+
updatedAt: string;
|
|
329
|
+
lastQueriedAt?: string | null;
|
|
330
|
+
type: 'DYNAMIC_EXTERNAL';
|
|
331
|
+
domain: string;
|
|
332
|
+
dynamicIp: string | '';
|
|
333
|
+
lastChanged?: string | null;
|
|
334
|
+
} | {
|
|
335
|
+
id: string;
|
|
336
|
+
name: string;
|
|
337
|
+
note: string | null;
|
|
338
|
+
organizationId: string;
|
|
339
|
+
createdAt: string;
|
|
340
|
+
updatedAt: string;
|
|
341
|
+
lastQueriedAt?: string | null;
|
|
342
|
+
type: 'STATIC_ENCRYPTED';
|
|
343
|
+
tag: string;
|
|
344
|
+
policyId: string;
|
|
345
|
+
};
|
|
346
|
+
policies: Array<{
|
|
347
|
+
id: string | null;
|
|
348
|
+
networkId: string;
|
|
349
|
+
dns: {
|
|
350
|
+
id: string;
|
|
351
|
+
port: number;
|
|
352
|
+
primaryDNSv4: string;
|
|
353
|
+
secondaryDNSv4: string;
|
|
354
|
+
primaryDNSv6: string;
|
|
355
|
+
secondaryDNSv6: string;
|
|
356
|
+
} | null;
|
|
357
|
+
policy: {
|
|
358
|
+
id: string;
|
|
359
|
+
isLimited: boolean;
|
|
360
|
+
isShared: boolean;
|
|
361
|
+
name: string;
|
|
362
|
+
organizationId: string;
|
|
363
|
+
};
|
|
364
|
+
tag?: string | null;
|
|
365
|
+
note: string | null;
|
|
366
|
+
}>;
|
|
367
|
+
}>;
|
|
217
368
|
};
|
|
218
369
|
export type ListNetworksResponse = ListNetworksResponses[keyof ListNetworksResponses];
|
|
219
370
|
export type ListNetworkDnsData = {
|
|
@@ -241,7 +392,14 @@ export type ListNetworkDnsResponses = {
|
|
|
241
392
|
/**
|
|
242
393
|
* Network DNS entries
|
|
243
394
|
*/
|
|
244
|
-
200: Array<
|
|
395
|
+
200: Array<{
|
|
396
|
+
id: string;
|
|
397
|
+
port: number;
|
|
398
|
+
primaryDNSv4: string;
|
|
399
|
+
secondaryDNSv4: string;
|
|
400
|
+
primaryDNSv6: string;
|
|
401
|
+
secondaryDNSv6: string;
|
|
402
|
+
}>;
|
|
245
403
|
};
|
|
246
404
|
export type ListNetworkDnsResponse = ListNetworkDnsResponses[keyof ListNetworkDnsResponses];
|
|
247
405
|
export type ListEdnsData = {
|
|
@@ -279,11 +437,22 @@ export type ListEdnsResponses = {
|
|
|
279
437
|
/**
|
|
280
438
|
* EDNS entries
|
|
281
439
|
*/
|
|
282
|
-
200: Array<
|
|
440
|
+
200: Array<{
|
|
441
|
+
id: string;
|
|
442
|
+
tag: string;
|
|
443
|
+
note: string | null;
|
|
444
|
+
policyId: string;
|
|
445
|
+
organizationId: string;
|
|
446
|
+
}>;
|
|
283
447
|
};
|
|
284
448
|
export type ListEdnsResponse = ListEdnsResponses[keyof ListEdnsResponses];
|
|
285
449
|
export type CreateEdnsData = {
|
|
286
|
-
body:
|
|
450
|
+
body: {
|
|
451
|
+
organizationId?: string;
|
|
452
|
+
policyId: string;
|
|
453
|
+
tag: string;
|
|
454
|
+
note?: string;
|
|
455
|
+
};
|
|
287
456
|
path?: never;
|
|
288
457
|
query?: never;
|
|
289
458
|
url: '/v1/edns';
|
|
@@ -319,7 +488,13 @@ export type CreateEdnsResponses = {
|
|
|
319
488
|
/**
|
|
320
489
|
* EDNS entry
|
|
321
490
|
*/
|
|
322
|
-
201:
|
|
491
|
+
201: {
|
|
492
|
+
id: string;
|
|
493
|
+
tag: string;
|
|
494
|
+
note: string | null;
|
|
495
|
+
policyId: string;
|
|
496
|
+
organizationId: string;
|
|
497
|
+
};
|
|
323
498
|
};
|
|
324
499
|
export type CreateEdnsResponse = CreateEdnsResponses[keyof CreateEdnsResponses];
|
|
325
500
|
export type DeleteEdnsData = {
|
|
@@ -361,7 +536,13 @@ export type DeleteEdnsResponses = {
|
|
|
361
536
|
/**
|
|
362
537
|
* Deleted EDNS entry
|
|
363
538
|
*/
|
|
364
|
-
200:
|
|
539
|
+
200: {
|
|
540
|
+
id: string;
|
|
541
|
+
tag: string;
|
|
542
|
+
note: string | null;
|
|
543
|
+
policyId: string;
|
|
544
|
+
organizationId: string;
|
|
545
|
+
};
|
|
365
546
|
};
|
|
366
547
|
export type DeleteEdnsResponse = DeleteEdnsResponses[keyof DeleteEdnsResponses];
|
|
367
548
|
export type GetEdnsData = {
|
|
@@ -403,11 +584,20 @@ export type GetEdnsResponses = {
|
|
|
403
584
|
/**
|
|
404
585
|
* EDNS entry
|
|
405
586
|
*/
|
|
406
|
-
200:
|
|
587
|
+
200: {
|
|
588
|
+
id: string;
|
|
589
|
+
tag: string;
|
|
590
|
+
note: string | null;
|
|
591
|
+
policyId: string;
|
|
592
|
+
organizationId: string;
|
|
593
|
+
};
|
|
407
594
|
};
|
|
408
595
|
export type GetEdnsResponse = GetEdnsResponses[keyof GetEdnsResponses];
|
|
409
596
|
export type UpdateEdnsData = {
|
|
410
|
-
body:
|
|
597
|
+
body: {
|
|
598
|
+
tag: string;
|
|
599
|
+
note?: string;
|
|
600
|
+
};
|
|
411
601
|
path: {
|
|
412
602
|
ednsId: string;
|
|
413
603
|
};
|
|
@@ -445,7 +635,13 @@ export type UpdateEdnsResponses = {
|
|
|
445
635
|
/**
|
|
446
636
|
* EDNS entry
|
|
447
637
|
*/
|
|
448
|
-
200:
|
|
638
|
+
200: {
|
|
639
|
+
id: string;
|
|
640
|
+
tag: string;
|
|
641
|
+
note: string | null;
|
|
642
|
+
policyId: string;
|
|
643
|
+
organizationId: string;
|
|
644
|
+
};
|
|
449
645
|
};
|
|
450
646
|
export type UpdateEdnsResponse = UpdateEdnsResponses[keyof UpdateEdnsResponses];
|
|
451
647
|
export type ListAvailableNetworkDnsData = {
|
|
@@ -487,7 +683,14 @@ export type ListAvailableNetworkDnsResponses = {
|
|
|
487
683
|
/**
|
|
488
684
|
* Available DNS entries
|
|
489
685
|
*/
|
|
490
|
-
200: Array<
|
|
686
|
+
200: Array<{
|
|
687
|
+
id: string;
|
|
688
|
+
port: number;
|
|
689
|
+
primaryDNSv4: string;
|
|
690
|
+
secondaryDNSv4: string;
|
|
691
|
+
primaryDNSv6: string;
|
|
692
|
+
secondaryDNSv6: string;
|
|
693
|
+
}>;
|
|
491
694
|
};
|
|
492
695
|
export type ListAvailableNetworkDnsResponse = ListAvailableNetworkDnsResponses[keyof ListAvailableNetworkDnsResponses];
|
|
493
696
|
export type DeleteNetworkData = {
|
|
@@ -529,7 +732,78 @@ export type DeleteNetworkResponses = {
|
|
|
529
732
|
/**
|
|
530
733
|
* Deleted network
|
|
531
734
|
*/
|
|
532
|
-
200:
|
|
735
|
+
200: {
|
|
736
|
+
id: string;
|
|
737
|
+
name: string;
|
|
738
|
+
note: string | null;
|
|
739
|
+
organizationId: string;
|
|
740
|
+
createdAt: string;
|
|
741
|
+
updatedAt: string;
|
|
742
|
+
lastQueriedAt?: string | null;
|
|
743
|
+
type: 'STATIC_SINGLE';
|
|
744
|
+
ip: string | string;
|
|
745
|
+
} | {
|
|
746
|
+
id: string;
|
|
747
|
+
name: string;
|
|
748
|
+
note: string | null;
|
|
749
|
+
organizationId: string;
|
|
750
|
+
createdAt: string;
|
|
751
|
+
updatedAt: string;
|
|
752
|
+
lastQueriedAt?: string | null;
|
|
753
|
+
type: 'STATIC_CIDR';
|
|
754
|
+
cidr: string;
|
|
755
|
+
} | {
|
|
756
|
+
id: string;
|
|
757
|
+
name: string;
|
|
758
|
+
note: string | null;
|
|
759
|
+
organizationId: string;
|
|
760
|
+
createdAt: string;
|
|
761
|
+
updatedAt: string;
|
|
762
|
+
lastQueriedAt?: string | null;
|
|
763
|
+
type: 'STATIC_RANGE';
|
|
764
|
+
rangeIp: {
|
|
765
|
+
start: string;
|
|
766
|
+
end: string;
|
|
767
|
+
};
|
|
768
|
+
} | {
|
|
769
|
+
id: string;
|
|
770
|
+
name: string;
|
|
771
|
+
note: string | null;
|
|
772
|
+
organizationId: string;
|
|
773
|
+
createdAt: string;
|
|
774
|
+
updatedAt: string;
|
|
775
|
+
lastQueriedAt?: string | null;
|
|
776
|
+
type: 'DYNAMIC_INTERNAL';
|
|
777
|
+
ddns: {
|
|
778
|
+
username: string;
|
|
779
|
+
password: string;
|
|
780
|
+
lastSync?: string | null;
|
|
781
|
+
};
|
|
782
|
+
dynamicIp: string | string | '';
|
|
783
|
+
} | {
|
|
784
|
+
id: string;
|
|
785
|
+
name: string;
|
|
786
|
+
note: string | null;
|
|
787
|
+
organizationId: string;
|
|
788
|
+
createdAt: string;
|
|
789
|
+
updatedAt: string;
|
|
790
|
+
lastQueriedAt?: string | null;
|
|
791
|
+
type: 'DYNAMIC_EXTERNAL';
|
|
792
|
+
domain: string;
|
|
793
|
+
dynamicIp: string | '';
|
|
794
|
+
lastChanged?: string | null;
|
|
795
|
+
} | {
|
|
796
|
+
id: string;
|
|
797
|
+
name: string;
|
|
798
|
+
note: string | null;
|
|
799
|
+
organizationId: string;
|
|
800
|
+
createdAt: string;
|
|
801
|
+
updatedAt: string;
|
|
802
|
+
lastQueriedAt?: string | null;
|
|
803
|
+
type: 'STATIC_ENCRYPTED';
|
|
804
|
+
tag: string;
|
|
805
|
+
policyId: string;
|
|
806
|
+
};
|
|
533
807
|
};
|
|
534
808
|
export type DeleteNetworkResponse = DeleteNetworkResponses[keyof DeleteNetworkResponses];
|
|
535
809
|
export type GetNetworkData = {
|
|
@@ -538,7 +812,7 @@ export type GetNetworkData = {
|
|
|
538
812
|
networkId: string;
|
|
539
813
|
};
|
|
540
814
|
query?: {
|
|
541
|
-
includePolicies?:
|
|
815
|
+
includePolicies?: 'true' | 'false';
|
|
542
816
|
};
|
|
543
817
|
url: '/v1/{networkId}';
|
|
544
818
|
};
|
|
@@ -573,7 +847,172 @@ export type GetNetworkResponses = {
|
|
|
573
847
|
/**
|
|
574
848
|
* Network
|
|
575
849
|
*/
|
|
576
|
-
200:
|
|
850
|
+
200: {
|
|
851
|
+
id: string;
|
|
852
|
+
name: string;
|
|
853
|
+
note: string | null;
|
|
854
|
+
organizationId: string;
|
|
855
|
+
createdAt: string;
|
|
856
|
+
updatedAt: string;
|
|
857
|
+
lastQueriedAt?: string | null;
|
|
858
|
+
type: 'STATIC_SINGLE';
|
|
859
|
+
ip: string | string;
|
|
860
|
+
} | {
|
|
861
|
+
id: string;
|
|
862
|
+
name: string;
|
|
863
|
+
note: string | null;
|
|
864
|
+
organizationId: string;
|
|
865
|
+
createdAt: string;
|
|
866
|
+
updatedAt: string;
|
|
867
|
+
lastQueriedAt?: string | null;
|
|
868
|
+
type: 'STATIC_CIDR';
|
|
869
|
+
cidr: string;
|
|
870
|
+
} | {
|
|
871
|
+
id: string;
|
|
872
|
+
name: string;
|
|
873
|
+
note: string | null;
|
|
874
|
+
organizationId: string;
|
|
875
|
+
createdAt: string;
|
|
876
|
+
updatedAt: string;
|
|
877
|
+
lastQueriedAt?: string | null;
|
|
878
|
+
type: 'STATIC_RANGE';
|
|
879
|
+
rangeIp: {
|
|
880
|
+
start: string;
|
|
881
|
+
end: string;
|
|
882
|
+
};
|
|
883
|
+
} | {
|
|
884
|
+
id: string;
|
|
885
|
+
name: string;
|
|
886
|
+
note: string | null;
|
|
887
|
+
organizationId: string;
|
|
888
|
+
createdAt: string;
|
|
889
|
+
updatedAt: string;
|
|
890
|
+
lastQueriedAt?: string | null;
|
|
891
|
+
type: 'DYNAMIC_INTERNAL';
|
|
892
|
+
ddns: {
|
|
893
|
+
username: string;
|
|
894
|
+
password: string;
|
|
895
|
+
lastSync?: string | null;
|
|
896
|
+
};
|
|
897
|
+
dynamicIp: string | string | '';
|
|
898
|
+
} | {
|
|
899
|
+
id: string;
|
|
900
|
+
name: string;
|
|
901
|
+
note: string | null;
|
|
902
|
+
organizationId: string;
|
|
903
|
+
createdAt: string;
|
|
904
|
+
updatedAt: string;
|
|
905
|
+
lastQueriedAt?: string | null;
|
|
906
|
+
type: 'DYNAMIC_EXTERNAL';
|
|
907
|
+
domain: string;
|
|
908
|
+
dynamicIp: string | '';
|
|
909
|
+
lastChanged?: string | null;
|
|
910
|
+
} | {
|
|
911
|
+
id: string;
|
|
912
|
+
name: string;
|
|
913
|
+
note: string | null;
|
|
914
|
+
organizationId: string;
|
|
915
|
+
createdAt: string;
|
|
916
|
+
updatedAt: string;
|
|
917
|
+
lastQueriedAt?: string | null;
|
|
918
|
+
type: 'STATIC_ENCRYPTED';
|
|
919
|
+
tag: string;
|
|
920
|
+
policyId: string;
|
|
921
|
+
} | {
|
|
922
|
+
network: {
|
|
923
|
+
id: string;
|
|
924
|
+
name: string;
|
|
925
|
+
note: string | null;
|
|
926
|
+
organizationId: string;
|
|
927
|
+
createdAt: string;
|
|
928
|
+
updatedAt: string;
|
|
929
|
+
lastQueriedAt?: string | null;
|
|
930
|
+
type: 'STATIC_SINGLE';
|
|
931
|
+
ip: string | string;
|
|
932
|
+
} | {
|
|
933
|
+
id: string;
|
|
934
|
+
name: string;
|
|
935
|
+
note: string | null;
|
|
936
|
+
organizationId: string;
|
|
937
|
+
createdAt: string;
|
|
938
|
+
updatedAt: string;
|
|
939
|
+
lastQueriedAt?: string | null;
|
|
940
|
+
type: 'STATIC_CIDR';
|
|
941
|
+
cidr: string;
|
|
942
|
+
} | {
|
|
943
|
+
id: string;
|
|
944
|
+
name: string;
|
|
945
|
+
note: string | null;
|
|
946
|
+
organizationId: string;
|
|
947
|
+
createdAt: string;
|
|
948
|
+
updatedAt: string;
|
|
949
|
+
lastQueriedAt?: string | null;
|
|
950
|
+
type: 'STATIC_RANGE';
|
|
951
|
+
rangeIp: {
|
|
952
|
+
start: string;
|
|
953
|
+
end: string;
|
|
954
|
+
};
|
|
955
|
+
} | {
|
|
956
|
+
id: string;
|
|
957
|
+
name: string;
|
|
958
|
+
note: string | null;
|
|
959
|
+
organizationId: string;
|
|
960
|
+
createdAt: string;
|
|
961
|
+
updatedAt: string;
|
|
962
|
+
lastQueriedAt?: string | null;
|
|
963
|
+
type: 'DYNAMIC_INTERNAL';
|
|
964
|
+
ddns: {
|
|
965
|
+
username: string;
|
|
966
|
+
password: string;
|
|
967
|
+
lastSync?: string | null;
|
|
968
|
+
};
|
|
969
|
+
dynamicIp: string | string | '';
|
|
970
|
+
} | {
|
|
971
|
+
id: string;
|
|
972
|
+
name: string;
|
|
973
|
+
note: string | null;
|
|
974
|
+
organizationId: string;
|
|
975
|
+
createdAt: string;
|
|
976
|
+
updatedAt: string;
|
|
977
|
+
lastQueriedAt?: string | null;
|
|
978
|
+
type: 'DYNAMIC_EXTERNAL';
|
|
979
|
+
domain: string;
|
|
980
|
+
dynamicIp: string | '';
|
|
981
|
+
lastChanged?: string | null;
|
|
982
|
+
} | {
|
|
983
|
+
id: string;
|
|
984
|
+
name: string;
|
|
985
|
+
note: string | null;
|
|
986
|
+
organizationId: string;
|
|
987
|
+
createdAt: string;
|
|
988
|
+
updatedAt: string;
|
|
989
|
+
lastQueriedAt?: string | null;
|
|
990
|
+
type: 'STATIC_ENCRYPTED';
|
|
991
|
+
tag: string;
|
|
992
|
+
policyId: string;
|
|
993
|
+
};
|
|
994
|
+
policies: Array<{
|
|
995
|
+
id: string | null;
|
|
996
|
+
networkId: string;
|
|
997
|
+
dns: {
|
|
998
|
+
id: string;
|
|
999
|
+
port: number;
|
|
1000
|
+
primaryDNSv4: string;
|
|
1001
|
+
secondaryDNSv4: string;
|
|
1002
|
+
primaryDNSv6: string;
|
|
1003
|
+
secondaryDNSv6: string;
|
|
1004
|
+
} | null;
|
|
1005
|
+
policy: {
|
|
1006
|
+
id: string;
|
|
1007
|
+
isLimited: boolean;
|
|
1008
|
+
isShared: boolean;
|
|
1009
|
+
name: string;
|
|
1010
|
+
organizationId: string;
|
|
1011
|
+
};
|
|
1012
|
+
tag?: string | null;
|
|
1013
|
+
note: string | null;
|
|
1014
|
+
}>;
|
|
1015
|
+
};
|
|
577
1016
|
};
|
|
578
1017
|
export type GetNetworkResponse = GetNetworkResponses[keyof GetNetworkResponses];
|
|
579
1018
|
export type ListNetworkPoliciesData = {
|
|
@@ -615,11 +1054,39 @@ export type ListNetworkPoliciesResponses = {
|
|
|
615
1054
|
/**
|
|
616
1055
|
* Network policies
|
|
617
1056
|
*/
|
|
618
|
-
200: Array<
|
|
1057
|
+
200: Array<{
|
|
1058
|
+
id: string | null;
|
|
1059
|
+
networkId: string;
|
|
1060
|
+
dns: {
|
|
1061
|
+
id: string;
|
|
1062
|
+
port: number;
|
|
1063
|
+
primaryDNSv4: string;
|
|
1064
|
+
secondaryDNSv4: string;
|
|
1065
|
+
primaryDNSv6: string;
|
|
1066
|
+
secondaryDNSv6: string;
|
|
1067
|
+
} | null;
|
|
1068
|
+
policy: {
|
|
1069
|
+
id: string;
|
|
1070
|
+
isLimited: boolean;
|
|
1071
|
+
isShared: boolean;
|
|
1072
|
+
name: string;
|
|
1073
|
+
organizationId: string;
|
|
1074
|
+
};
|
|
1075
|
+
tag?: string | null;
|
|
1076
|
+
note: string | null;
|
|
1077
|
+
}>;
|
|
619
1078
|
};
|
|
620
1079
|
export type ListNetworkPoliciesResponse = ListNetworkPoliciesResponses[keyof ListNetworkPoliciesResponses];
|
|
621
1080
|
export type AddNetworkPolicyData = {
|
|
622
|
-
body:
|
|
1081
|
+
body: {
|
|
1082
|
+
policyId: string;
|
|
1083
|
+
note?: string;
|
|
1084
|
+
dnsId: string;
|
|
1085
|
+
} | {
|
|
1086
|
+
policyId: string;
|
|
1087
|
+
note?: string;
|
|
1088
|
+
dnsPort: number;
|
|
1089
|
+
};
|
|
623
1090
|
path: {
|
|
624
1091
|
networkId: string;
|
|
625
1092
|
};
|
|
@@ -657,7 +1124,27 @@ export type AddNetworkPolicyResponses = {
|
|
|
657
1124
|
/**
|
|
658
1125
|
* Network policy
|
|
659
1126
|
*/
|
|
660
|
-
201:
|
|
1127
|
+
201: {
|
|
1128
|
+
id: string | null;
|
|
1129
|
+
networkId: string;
|
|
1130
|
+
dns: {
|
|
1131
|
+
id: string;
|
|
1132
|
+
port: number;
|
|
1133
|
+
primaryDNSv4: string;
|
|
1134
|
+
secondaryDNSv4: string;
|
|
1135
|
+
primaryDNSv6: string;
|
|
1136
|
+
secondaryDNSv6: string;
|
|
1137
|
+
} | null;
|
|
1138
|
+
policy: {
|
|
1139
|
+
id: string;
|
|
1140
|
+
isLimited: boolean;
|
|
1141
|
+
isShared: boolean;
|
|
1142
|
+
name: string;
|
|
1143
|
+
organizationId: string;
|
|
1144
|
+
};
|
|
1145
|
+
tag?: string | null;
|
|
1146
|
+
note: string | null;
|
|
1147
|
+
};
|
|
661
1148
|
};
|
|
662
1149
|
export type AddNetworkPolicyResponse = AddNetworkPolicyResponses[keyof AddNetworkPolicyResponses];
|
|
663
1150
|
export type DeleteNetworkPolicyData = {
|
|
@@ -700,7 +1187,27 @@ export type DeleteNetworkPolicyResponses = {
|
|
|
700
1187
|
/**
|
|
701
1188
|
* Deleted network policy
|
|
702
1189
|
*/
|
|
703
|
-
200:
|
|
1190
|
+
200: {
|
|
1191
|
+
id: string | null;
|
|
1192
|
+
networkId: string;
|
|
1193
|
+
dns: {
|
|
1194
|
+
id: string;
|
|
1195
|
+
port: number;
|
|
1196
|
+
primaryDNSv4: string;
|
|
1197
|
+
secondaryDNSv4: string;
|
|
1198
|
+
primaryDNSv6: string;
|
|
1199
|
+
secondaryDNSv6: string;
|
|
1200
|
+
} | null;
|
|
1201
|
+
policy: {
|
|
1202
|
+
id: string;
|
|
1203
|
+
isLimited: boolean;
|
|
1204
|
+
isShared: boolean;
|
|
1205
|
+
name: string;
|
|
1206
|
+
organizationId: string;
|
|
1207
|
+
};
|
|
1208
|
+
tag?: string | null;
|
|
1209
|
+
note: string | null;
|
|
1210
|
+
};
|
|
704
1211
|
};
|
|
705
1212
|
export type DeleteNetworkPolicyResponse = DeleteNetworkPolicyResponses[keyof DeleteNetworkPolicyResponses];
|
|
706
1213
|
export type CreateSingleStaticNetworkData = {
|
|
@@ -743,19 +1250,24 @@ export type CreateSingleStaticNetworkResponses = {
|
|
|
743
1250
|
*/
|
|
744
1251
|
201: {
|
|
745
1252
|
id: string;
|
|
746
|
-
type: 'STATIC_SINGLE';
|
|
747
1253
|
name: string;
|
|
748
1254
|
note: string | null;
|
|
749
1255
|
organizationId: string;
|
|
750
1256
|
createdAt: string;
|
|
751
1257
|
updatedAt: string;
|
|
752
1258
|
lastQueriedAt?: string | null;
|
|
1259
|
+
type: 'STATIC_SINGLE';
|
|
753
1260
|
ip: string | string;
|
|
754
1261
|
};
|
|
755
1262
|
};
|
|
756
1263
|
export type CreateSingleStaticNetworkResponse = CreateSingleStaticNetworkResponses[keyof CreateSingleStaticNetworkResponses];
|
|
757
1264
|
export type CreateCidrStaticNetworkData = {
|
|
758
|
-
body:
|
|
1265
|
+
body: {
|
|
1266
|
+
name: string;
|
|
1267
|
+
note?: string;
|
|
1268
|
+
organizationId?: string;
|
|
1269
|
+
cidr: string | string;
|
|
1270
|
+
};
|
|
759
1271
|
path?: never;
|
|
760
1272
|
query?: never;
|
|
761
1273
|
url: '/v1/static/cidr';
|
|
@@ -787,11 +1299,29 @@ export type CreateCidrStaticNetworkResponses = {
|
|
|
787
1299
|
/**
|
|
788
1300
|
* Created network
|
|
789
1301
|
*/
|
|
790
|
-
201:
|
|
1302
|
+
201: {
|
|
1303
|
+
id: string;
|
|
1304
|
+
name: string;
|
|
1305
|
+
note: string | null;
|
|
1306
|
+
organizationId: string;
|
|
1307
|
+
createdAt: string;
|
|
1308
|
+
updatedAt: string;
|
|
1309
|
+
lastQueriedAt?: string | null;
|
|
1310
|
+
type: 'STATIC_CIDR';
|
|
1311
|
+
cidr: string;
|
|
1312
|
+
};
|
|
791
1313
|
};
|
|
792
1314
|
export type CreateCidrStaticNetworkResponse = CreateCidrStaticNetworkResponses[keyof CreateCidrStaticNetworkResponses];
|
|
793
1315
|
export type CreateRangeStaticNetworkData = {
|
|
794
|
-
body:
|
|
1316
|
+
body: {
|
|
1317
|
+
name: string;
|
|
1318
|
+
note?: string;
|
|
1319
|
+
organizationId?: string;
|
|
1320
|
+
rangeIp: {
|
|
1321
|
+
end: string;
|
|
1322
|
+
start: string;
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
795
1325
|
path?: never;
|
|
796
1326
|
query?: never;
|
|
797
1327
|
url: '/v1/static/range';
|
|
@@ -823,11 +1353,32 @@ export type CreateRangeStaticNetworkResponses = {
|
|
|
823
1353
|
/**
|
|
824
1354
|
* Created network
|
|
825
1355
|
*/
|
|
826
|
-
201:
|
|
1356
|
+
201: {
|
|
1357
|
+
id: string;
|
|
1358
|
+
name: string;
|
|
1359
|
+
note: string | null;
|
|
1360
|
+
organizationId: string;
|
|
1361
|
+
createdAt: string;
|
|
1362
|
+
updatedAt: string;
|
|
1363
|
+
lastQueriedAt?: string | null;
|
|
1364
|
+
type: 'STATIC_RANGE';
|
|
1365
|
+
rangeIp: {
|
|
1366
|
+
start: string;
|
|
1367
|
+
end: string;
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
827
1370
|
};
|
|
828
1371
|
export type CreateRangeStaticNetworkResponse = CreateRangeStaticNetworkResponses[keyof CreateRangeStaticNetworkResponses];
|
|
829
1372
|
export type CreateInternalDynamicNetworkData = {
|
|
830
|
-
body:
|
|
1373
|
+
body: {
|
|
1374
|
+
name: string;
|
|
1375
|
+
note?: string;
|
|
1376
|
+
organizationId?: string;
|
|
1377
|
+
ddns: {
|
|
1378
|
+
username: string;
|
|
1379
|
+
password: string;
|
|
1380
|
+
};
|
|
1381
|
+
};
|
|
831
1382
|
path?: never;
|
|
832
1383
|
query?: never;
|
|
833
1384
|
url: '/v1/dynamic/internal';
|
|
@@ -859,11 +1410,31 @@ export type CreateInternalDynamicNetworkResponses = {
|
|
|
859
1410
|
/**
|
|
860
1411
|
* Created network
|
|
861
1412
|
*/
|
|
862
|
-
201:
|
|
1413
|
+
201: {
|
|
1414
|
+
id: string;
|
|
1415
|
+
name: string;
|
|
1416
|
+
note: string | null;
|
|
1417
|
+
organizationId: string;
|
|
1418
|
+
createdAt: string;
|
|
1419
|
+
updatedAt: string;
|
|
1420
|
+
lastQueriedAt?: string | null;
|
|
1421
|
+
type: 'DYNAMIC_INTERNAL';
|
|
1422
|
+
ddns: {
|
|
1423
|
+
username: string;
|
|
1424
|
+
password: string;
|
|
1425
|
+
lastSync?: string | null;
|
|
1426
|
+
};
|
|
1427
|
+
dynamicIp: string | string | '';
|
|
1428
|
+
};
|
|
863
1429
|
};
|
|
864
1430
|
export type CreateInternalDynamicNetworkResponse = CreateInternalDynamicNetworkResponses[keyof CreateInternalDynamicNetworkResponses];
|
|
865
1431
|
export type CreateExternalDynamicNetworkData = {
|
|
866
|
-
body:
|
|
1432
|
+
body: {
|
|
1433
|
+
name: string;
|
|
1434
|
+
note?: string;
|
|
1435
|
+
organizationId?: string;
|
|
1436
|
+
domain: string;
|
|
1437
|
+
};
|
|
867
1438
|
path?: never;
|
|
868
1439
|
query?: never;
|
|
869
1440
|
url: '/v1/dynamic/external';
|
|
@@ -895,11 +1466,29 @@ export type CreateExternalDynamicNetworkResponses = {
|
|
|
895
1466
|
/**
|
|
896
1467
|
* Created network
|
|
897
1468
|
*/
|
|
898
|
-
201:
|
|
1469
|
+
201: {
|
|
1470
|
+
id: string;
|
|
1471
|
+
name: string;
|
|
1472
|
+
note: string | null;
|
|
1473
|
+
organizationId: string;
|
|
1474
|
+
createdAt: string;
|
|
1475
|
+
updatedAt: string;
|
|
1476
|
+
lastQueriedAt?: string | null;
|
|
1477
|
+
type: 'DYNAMIC_EXTERNAL';
|
|
1478
|
+
domain: string;
|
|
1479
|
+
dynamicIp: string | '';
|
|
1480
|
+
lastChanged?: string | null;
|
|
1481
|
+
};
|
|
899
1482
|
};
|
|
900
1483
|
export type CreateExternalDynamicNetworkResponse = CreateExternalDynamicNetworkResponses[keyof CreateExternalDynamicNetworkResponses];
|
|
901
1484
|
export type CreateEncryptedNetworkData = {
|
|
902
|
-
body:
|
|
1485
|
+
body: {
|
|
1486
|
+
name: string;
|
|
1487
|
+
note?: string;
|
|
1488
|
+
organizationId?: string;
|
|
1489
|
+
policyId: string;
|
|
1490
|
+
tag?: string;
|
|
1491
|
+
};
|
|
903
1492
|
path?: never;
|
|
904
1493
|
query?: never;
|
|
905
1494
|
url: '/v1/encrypted';
|
|
@@ -931,11 +1520,25 @@ export type CreateEncryptedNetworkResponses = {
|
|
|
931
1520
|
/**
|
|
932
1521
|
* Created network
|
|
933
1522
|
*/
|
|
934
|
-
201:
|
|
1523
|
+
201: {
|
|
1524
|
+
id: string;
|
|
1525
|
+
name: string;
|
|
1526
|
+
note: string | null;
|
|
1527
|
+
organizationId: string;
|
|
1528
|
+
createdAt: string;
|
|
1529
|
+
updatedAt: string;
|
|
1530
|
+
lastQueriedAt?: string | null;
|
|
1531
|
+
type: 'STATIC_ENCRYPTED';
|
|
1532
|
+
tag: string;
|
|
1533
|
+
policyId: string;
|
|
1534
|
+
};
|
|
935
1535
|
};
|
|
936
1536
|
export type CreateEncryptedNetworkResponse = CreateEncryptedNetworkResponses[keyof CreateEncryptedNetworkResponses];
|
|
937
1537
|
export type UpdateSingleStaticNetworkData = {
|
|
938
|
-
body:
|
|
1538
|
+
body: {
|
|
1539
|
+
name?: string;
|
|
1540
|
+
note?: string;
|
|
1541
|
+
};
|
|
939
1542
|
path: {
|
|
940
1543
|
networkId: string;
|
|
941
1544
|
};
|
|
@@ -973,11 +1576,24 @@ export type UpdateSingleStaticNetworkResponses = {
|
|
|
973
1576
|
/**
|
|
974
1577
|
* Updated network
|
|
975
1578
|
*/
|
|
976
|
-
200:
|
|
1579
|
+
200: {
|
|
1580
|
+
id: string;
|
|
1581
|
+
name: string;
|
|
1582
|
+
note: string | null;
|
|
1583
|
+
organizationId: string;
|
|
1584
|
+
createdAt: string;
|
|
1585
|
+
updatedAt: string;
|
|
1586
|
+
lastQueriedAt?: string | null;
|
|
1587
|
+
type: 'STATIC_SINGLE';
|
|
1588
|
+
ip: string | string;
|
|
1589
|
+
};
|
|
977
1590
|
};
|
|
978
1591
|
export type UpdateSingleStaticNetworkResponse = UpdateSingleStaticNetworkResponses[keyof UpdateSingleStaticNetworkResponses];
|
|
979
1592
|
export type UpdateCidrStaticNetworkData = {
|
|
980
|
-
body:
|
|
1593
|
+
body: {
|
|
1594
|
+
name?: string;
|
|
1595
|
+
note?: string;
|
|
1596
|
+
};
|
|
981
1597
|
path: {
|
|
982
1598
|
networkId: string;
|
|
983
1599
|
};
|
|
@@ -1015,11 +1631,24 @@ export type UpdateCidrStaticNetworkResponses = {
|
|
|
1015
1631
|
/**
|
|
1016
1632
|
* Updated network
|
|
1017
1633
|
*/
|
|
1018
|
-
200:
|
|
1634
|
+
200: {
|
|
1635
|
+
id: string;
|
|
1636
|
+
name: string;
|
|
1637
|
+
note: string | null;
|
|
1638
|
+
organizationId: string;
|
|
1639
|
+
createdAt: string;
|
|
1640
|
+
updatedAt: string;
|
|
1641
|
+
lastQueriedAt?: string | null;
|
|
1642
|
+
type: 'STATIC_CIDR';
|
|
1643
|
+
cidr: string;
|
|
1644
|
+
};
|
|
1019
1645
|
};
|
|
1020
1646
|
export type UpdateCidrStaticNetworkResponse = UpdateCidrStaticNetworkResponses[keyof UpdateCidrStaticNetworkResponses];
|
|
1021
1647
|
export type UpdateRangeStaticNetworkData = {
|
|
1022
|
-
body:
|
|
1648
|
+
body: {
|
|
1649
|
+
name?: string;
|
|
1650
|
+
note?: string;
|
|
1651
|
+
};
|
|
1023
1652
|
path: {
|
|
1024
1653
|
networkId: string;
|
|
1025
1654
|
};
|
|
@@ -1057,11 +1686,31 @@ export type UpdateRangeStaticNetworkResponses = {
|
|
|
1057
1686
|
/**
|
|
1058
1687
|
* Updated network
|
|
1059
1688
|
*/
|
|
1060
|
-
200:
|
|
1689
|
+
200: {
|
|
1690
|
+
id: string;
|
|
1691
|
+
name: string;
|
|
1692
|
+
note: string | null;
|
|
1693
|
+
organizationId: string;
|
|
1694
|
+
createdAt: string;
|
|
1695
|
+
updatedAt: string;
|
|
1696
|
+
lastQueriedAt?: string | null;
|
|
1697
|
+
type: 'STATIC_RANGE';
|
|
1698
|
+
rangeIp: {
|
|
1699
|
+
start: string;
|
|
1700
|
+
end: string;
|
|
1701
|
+
};
|
|
1702
|
+
};
|
|
1061
1703
|
};
|
|
1062
1704
|
export type UpdateRangeStaticNetworkResponse = UpdateRangeStaticNetworkResponses[keyof UpdateRangeStaticNetworkResponses];
|
|
1063
1705
|
export type UpdateInternalDynamicNetworkData = {
|
|
1064
|
-
body:
|
|
1706
|
+
body: {
|
|
1707
|
+
name?: string;
|
|
1708
|
+
note?: string;
|
|
1709
|
+
ddns?: {
|
|
1710
|
+
username?: string;
|
|
1711
|
+
password?: string;
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1065
1714
|
path: {
|
|
1066
1715
|
networkId: string;
|
|
1067
1716
|
};
|
|
@@ -1099,11 +1748,31 @@ export type UpdateInternalDynamicNetworkResponses = {
|
|
|
1099
1748
|
/**
|
|
1100
1749
|
* Updated network
|
|
1101
1750
|
*/
|
|
1102
|
-
200:
|
|
1751
|
+
200: {
|
|
1752
|
+
id: string;
|
|
1753
|
+
name: string;
|
|
1754
|
+
note: string | null;
|
|
1755
|
+
organizationId: string;
|
|
1756
|
+
createdAt: string;
|
|
1757
|
+
updatedAt: string;
|
|
1758
|
+
lastQueriedAt?: string | null;
|
|
1759
|
+
type: 'DYNAMIC_INTERNAL';
|
|
1760
|
+
ddns: {
|
|
1761
|
+
username: string;
|
|
1762
|
+
password: string;
|
|
1763
|
+
lastSync?: string | null;
|
|
1764
|
+
};
|
|
1765
|
+
dynamicIp: string | string | '';
|
|
1766
|
+
};
|
|
1103
1767
|
};
|
|
1104
1768
|
export type UpdateInternalDynamicNetworkResponse = UpdateInternalDynamicNetworkResponses[keyof UpdateInternalDynamicNetworkResponses];
|
|
1105
1769
|
export type UpdateExternalDynamicNetworkData = {
|
|
1106
|
-
body:
|
|
1770
|
+
body: {
|
|
1771
|
+
name?: string;
|
|
1772
|
+
note?: string;
|
|
1773
|
+
domain?: string;
|
|
1774
|
+
dynamicIp?: string;
|
|
1775
|
+
};
|
|
1107
1776
|
path: {
|
|
1108
1777
|
networkId: string;
|
|
1109
1778
|
};
|
|
@@ -1141,11 +1810,27 @@ export type UpdateExternalDynamicNetworkResponses = {
|
|
|
1141
1810
|
/**
|
|
1142
1811
|
* Updated network
|
|
1143
1812
|
*/
|
|
1144
|
-
200:
|
|
1813
|
+
200: {
|
|
1814
|
+
id: string;
|
|
1815
|
+
name: string;
|
|
1816
|
+
note: string | null;
|
|
1817
|
+
organizationId: string;
|
|
1818
|
+
createdAt: string;
|
|
1819
|
+
updatedAt: string;
|
|
1820
|
+
lastQueriedAt?: string | null;
|
|
1821
|
+
type: 'DYNAMIC_EXTERNAL';
|
|
1822
|
+
domain: string;
|
|
1823
|
+
dynamicIp: string | '';
|
|
1824
|
+
lastChanged?: string | null;
|
|
1825
|
+
};
|
|
1145
1826
|
};
|
|
1146
1827
|
export type UpdateExternalDynamicNetworkResponse = UpdateExternalDynamicNetworkResponses[keyof UpdateExternalDynamicNetworkResponses];
|
|
1147
1828
|
export type UpdateEncryptedNetworkData = {
|
|
1148
|
-
body:
|
|
1829
|
+
body: {
|
|
1830
|
+
name?: string;
|
|
1831
|
+
note?: string;
|
|
1832
|
+
policyId?: string;
|
|
1833
|
+
};
|
|
1149
1834
|
path: {
|
|
1150
1835
|
networkId: string;
|
|
1151
1836
|
};
|
|
@@ -1183,6 +1868,17 @@ export type UpdateEncryptedNetworkResponses = {
|
|
|
1183
1868
|
/**
|
|
1184
1869
|
* Updated network
|
|
1185
1870
|
*/
|
|
1186
|
-
200:
|
|
1871
|
+
200: {
|
|
1872
|
+
id: string;
|
|
1873
|
+
name: string;
|
|
1874
|
+
note: string | null;
|
|
1875
|
+
organizationId: string;
|
|
1876
|
+
createdAt: string;
|
|
1877
|
+
updatedAt: string;
|
|
1878
|
+
lastQueriedAt?: string | null;
|
|
1879
|
+
type: 'STATIC_ENCRYPTED';
|
|
1880
|
+
tag: string;
|
|
1881
|
+
policyId: string;
|
|
1882
|
+
};
|
|
1187
1883
|
};
|
|
1188
1884
|
export type UpdateEncryptedNetworkResponse = UpdateEncryptedNetworkResponses[keyof UpdateEncryptedNetworkResponses];
|