@flashstart/client 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.
Files changed (100) hide show
  1. package/README.md +37 -0
  2. package/dist/src/generated/client/client.gen.d.ts +2 -0
  3. package/dist/src/generated/client/client.gen.js +216 -0
  4. package/dist/src/generated/client/index.d.ts +10 -0
  5. package/dist/src/generated/client/index.js +6 -0
  6. package/dist/src/generated/client/types.gen.d.ts +120 -0
  7. package/dist/src/generated/client/types.gen.js +2 -0
  8. package/dist/src/generated/client/utils.gen.d.ts +37 -0
  9. package/dist/src/generated/client/utils.gen.js +228 -0
  10. package/dist/src/generated/client.gen.d.ts +12 -0
  11. package/dist/src/generated/client.gen.js +3 -0
  12. package/dist/src/generated/core/auth.gen.d.ts +25 -0
  13. package/dist/src/generated/core/auth.gen.js +14 -0
  14. package/dist/src/generated/core/bodySerializer.gen.d.ts +25 -0
  15. package/dist/src/generated/core/bodySerializer.gen.js +57 -0
  16. package/dist/src/generated/core/params.gen.d.ts +43 -0
  17. package/dist/src/generated/core/params.gen.js +109 -0
  18. package/dist/src/generated/core/pathSerializer.gen.d.ts +33 -0
  19. package/dist/src/generated/core/pathSerializer.gen.js +106 -0
  20. package/dist/src/generated/core/queryKeySerializer.gen.d.ts +18 -0
  21. package/dist/src/generated/core/queryKeySerializer.gen.js +92 -0
  22. package/dist/src/generated/core/serverSentEvents.gen.d.ts +71 -0
  23. package/dist/src/generated/core/serverSentEvents.gen.js +132 -0
  24. package/dist/src/generated/core/types.gen.d.ts +83 -0
  25. package/dist/src/generated/core/types.gen.js +2 -0
  26. package/dist/src/generated/core/utils.gen.d.ts +19 -0
  27. package/dist/src/generated/core/utils.gen.js +87 -0
  28. package/dist/src/generated/index.d.ts +2 -0
  29. package/dist/src/generated/index.js +2 -0
  30. package/dist/src/generated/network/client/client.gen.d.ts +2 -0
  31. package/dist/src/generated/network/client/client.gen.js +216 -0
  32. package/dist/src/generated/network/client/index.d.ts +10 -0
  33. package/dist/src/generated/network/client/index.js +6 -0
  34. package/dist/src/generated/network/client/types.gen.d.ts +120 -0
  35. package/dist/src/generated/network/client/types.gen.js +2 -0
  36. package/dist/src/generated/network/client/utils.gen.d.ts +37 -0
  37. package/dist/src/generated/network/client/utils.gen.js +228 -0
  38. package/dist/src/generated/network/client.gen.d.ts +12 -0
  39. package/dist/src/generated/network/client.gen.js +3 -0
  40. package/dist/src/generated/network/core/auth.gen.d.ts +25 -0
  41. package/dist/src/generated/network/core/auth.gen.js +14 -0
  42. package/dist/src/generated/network/core/bodySerializer.gen.d.ts +25 -0
  43. package/dist/src/generated/network/core/bodySerializer.gen.js +57 -0
  44. package/dist/src/generated/network/core/params.gen.d.ts +43 -0
  45. package/dist/src/generated/network/core/params.gen.js +109 -0
  46. package/dist/src/generated/network/core/pathSerializer.gen.d.ts +33 -0
  47. package/dist/src/generated/network/core/pathSerializer.gen.js +106 -0
  48. package/dist/src/generated/network/core/queryKeySerializer.gen.d.ts +18 -0
  49. package/dist/src/generated/network/core/queryKeySerializer.gen.js +92 -0
  50. package/dist/src/generated/network/core/serverSentEvents.gen.d.ts +71 -0
  51. package/dist/src/generated/network/core/serverSentEvents.gen.js +132 -0
  52. package/dist/src/generated/network/core/types.gen.d.ts +83 -0
  53. package/dist/src/generated/network/core/types.gen.js +2 -0
  54. package/dist/src/generated/network/core/utils.gen.d.ts +19 -0
  55. package/dist/src/generated/network/core/utils.gen.js +87 -0
  56. package/dist/src/generated/network/index.d.ts +2 -0
  57. package/dist/src/generated/network/index.js +2 -0
  58. package/dist/src/generated/network/sdk.gen.d.ts +135 -0
  59. package/dist/src/generated/network/sdk.gen.js +339 -0
  60. package/dist/src/generated/network/types.gen.d.ts +1188 -0
  61. package/dist/src/generated/network/types.gen.js +2 -0
  62. package/dist/src/generated/protection/client/client.gen.d.ts +2 -0
  63. package/dist/src/generated/protection/client/client.gen.js +216 -0
  64. package/dist/src/generated/protection/client/index.d.ts +10 -0
  65. package/dist/src/generated/protection/client/index.js +6 -0
  66. package/dist/src/generated/protection/client/types.gen.d.ts +120 -0
  67. package/dist/src/generated/protection/client/types.gen.js +2 -0
  68. package/dist/src/generated/protection/client/utils.gen.d.ts +37 -0
  69. package/dist/src/generated/protection/client/utils.gen.js +228 -0
  70. package/dist/src/generated/protection/client.gen.d.ts +12 -0
  71. package/dist/src/generated/protection/client.gen.js +3 -0
  72. package/dist/src/generated/protection/core/auth.gen.d.ts +25 -0
  73. package/dist/src/generated/protection/core/auth.gen.js +14 -0
  74. package/dist/src/generated/protection/core/bodySerializer.gen.d.ts +25 -0
  75. package/dist/src/generated/protection/core/bodySerializer.gen.js +57 -0
  76. package/dist/src/generated/protection/core/params.gen.d.ts +43 -0
  77. package/dist/src/generated/protection/core/params.gen.js +109 -0
  78. package/dist/src/generated/protection/core/pathSerializer.gen.d.ts +33 -0
  79. package/dist/src/generated/protection/core/pathSerializer.gen.js +106 -0
  80. package/dist/src/generated/protection/core/queryKeySerializer.gen.d.ts +18 -0
  81. package/dist/src/generated/protection/core/queryKeySerializer.gen.js +92 -0
  82. package/dist/src/generated/protection/core/serverSentEvents.gen.d.ts +71 -0
  83. package/dist/src/generated/protection/core/serverSentEvents.gen.js +132 -0
  84. package/dist/src/generated/protection/core/types.gen.d.ts +83 -0
  85. package/dist/src/generated/protection/core/types.gen.js +2 -0
  86. package/dist/src/generated/protection/core/utils.gen.d.ts +19 -0
  87. package/dist/src/generated/protection/core/utils.gen.js +87 -0
  88. package/dist/src/generated/protection/index.d.ts +2 -0
  89. package/dist/src/generated/protection/index.js +2 -0
  90. package/dist/src/generated/protection/sdk.gen.d.ts +255 -0
  91. package/dist/src/generated/protection/sdk.gen.js +663 -0
  92. package/dist/src/generated/protection/types.gen.d.ts +2199 -0
  93. package/dist/src/generated/protection/types.gen.js +2 -0
  94. package/dist/src/generated/sdk.gen.d.ts +91 -0
  95. package/dist/src/generated/sdk.gen.js +206 -0
  96. package/dist/src/generated/types.gen.d.ts +909 -0
  97. package/dist/src/generated/types.gen.js +2 -0
  98. package/dist/src/index.d.ts +50 -0
  99. package/dist/src/index.js +85 -0
  100. package/package.json +34 -0
@@ -0,0 +1,1188 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://core.flashstart.com/network' | (string & {});
3
+ };
4
+ export type Uuid = string;
5
+ export type BaseNetworkCreation = {
6
+ name: string;
7
+ note?: string;
8
+ organizationId?: Uuid;
9
+ };
10
+ export type SingleStaticNetworkCreation = BaseNetworkCreation & {
11
+ ip: string;
12
+ };
13
+ export type CidrStaticNetworkCreation = BaseNetworkCreation & {
14
+ cidr: string;
15
+ };
16
+ export type RangeStaticNetworkCreation = BaseNetworkCreation & {
17
+ rangeIp: RangeIp;
18
+ };
19
+ export type InternalDynamicNetworkCreation = BaseNetworkCreation & {
20
+ ddns: Ddns;
21
+ };
22
+ export type ExternalDynamicNetworkCreation = BaseNetworkCreation & {
23
+ domain: string;
24
+ };
25
+ export type EncryptedNetworkCreation = BaseNetworkCreation & {
26
+ policyId: Uuid;
27
+ tag?: string;
28
+ };
29
+ export type StaticNetworkUpdate = {
30
+ name?: string;
31
+ note?: string;
32
+ };
33
+ export type InternalDynamicNetworkUpdate = StaticNetworkUpdate & {
34
+ ddns?: DdnsUpdate;
35
+ };
36
+ export type ExternalDynamicNetworkUpdate = StaticNetworkUpdate & {
37
+ domain?: string;
38
+ dynamicIp?: string;
39
+ };
40
+ export type RangeIp = {
41
+ start: string;
42
+ end: string;
43
+ };
44
+ export type Ddns = {
45
+ username: string;
46
+ password: string;
47
+ lastSync?: string | null;
48
+ };
49
+ export type DdnsUpdate = {
50
+ username?: string;
51
+ password?: string;
52
+ };
53
+ export type Network = ({
54
+ type: 'STATIC_SINGLE';
55
+ } & SingleStaticNetwork) | ({
56
+ type: 'STATIC_CIDR';
57
+ } & CidrStaticNetwork) | ({
58
+ type: 'STATIC_RANGE';
59
+ } & RangeStaticNetwork) | ({
60
+ type: 'DYNAMIC_INTERNAL';
61
+ } & InternalDynamicNetwork) | ({
62
+ type: 'DYNAMIC_EXTERNAL';
63
+ } & ExternalDynamicNetwork) | ({
64
+ type: 'STATIC_ENCRYPTED';
65
+ } & EncryptedNetwork);
66
+ export type BaseNetwork = {
67
+ id: Uuid;
68
+ type: 'STATIC_SINGLE' | 'STATIC_CIDR' | 'STATIC_RANGE' | 'DYNAMIC_INTERNAL' | 'DYNAMIC_EXTERNAL' | 'STATIC_ENCRYPTED';
69
+ name: string;
70
+ note: string | null;
71
+ organizationId: Uuid;
72
+ createdAt: string;
73
+ updatedAt: string;
74
+ lastQueriedAt?: string | null;
75
+ };
76
+ export type SingleStaticNetwork = BaseNetwork & {
77
+ type?: 'STATIC_SINGLE';
78
+ ip: string;
79
+ };
80
+ export type CidrStaticNetwork = BaseNetwork & {
81
+ type?: 'STATIC_CIDR';
82
+ cidr: string;
83
+ };
84
+ export type RangeStaticNetwork = BaseNetwork & {
85
+ type?: 'STATIC_RANGE';
86
+ rangeIp: RangeIp;
87
+ };
88
+ export type InternalDynamicNetwork = BaseNetwork & {
89
+ type?: 'DYNAMIC_INTERNAL';
90
+ ddns: Ddns;
91
+ dynamicIp: string;
92
+ };
93
+ export type ExternalDynamicNetwork = BaseNetwork & {
94
+ type?: 'DYNAMIC_EXTERNAL';
95
+ domain: string;
96
+ dynamicIp: string;
97
+ lastChanged?: string | null;
98
+ };
99
+ export type EncryptedNetwork = BaseNetwork & {
100
+ type?: 'STATIC_ENCRYPTED';
101
+ tag: string;
102
+ policyId: Uuid;
103
+ };
104
+ export type Policy = {
105
+ id: Uuid;
106
+ isLimited: boolean;
107
+ isShared: boolean;
108
+ name: string;
109
+ organizationId: Uuid;
110
+ };
111
+ export type Edns = {
112
+ id: string;
113
+ tag: string;
114
+ note: string | null;
115
+ policyId: string;
116
+ organizationId: string;
117
+ };
118
+ export type EdnsCreation = {
119
+ policyId: string;
120
+ tag: string;
121
+ note?: string;
122
+ organizationId?: string;
123
+ };
124
+ export type EdnsUpdate = {
125
+ tag: string;
126
+ note?: string;
127
+ };
128
+ export type NetworkWithPolicies = {
129
+ network: Network;
130
+ policies: Array<NetworkPolicy>;
131
+ };
132
+ export type NetworkResult = Network | NetworkWithPolicies;
133
+ export type NetworkDns = {
134
+ id: Uuid;
135
+ port: number;
136
+ primaryDNSv4: string;
137
+ secondaryDNSv4: string;
138
+ primaryDNSv6: string;
139
+ secondaryDNSv6: string;
140
+ };
141
+ export type NetworkPolicyCreation = {
142
+ policyId: Uuid;
143
+ dnsId: Uuid;
144
+ note?: string;
145
+ } | {
146
+ policyId: Uuid;
147
+ dnsPort: number;
148
+ note?: string;
149
+ };
150
+ export type NetworkPolicy = {
151
+ id: string | null;
152
+ networkId: Uuid;
153
+ dns: NetworkDns | null;
154
+ policy: Policy;
155
+ tag?: string | null;
156
+ note: string | null;
157
+ };
158
+ export type FlashStartErrorBody = {
159
+ code: string;
160
+ message?: string;
161
+ details?: unknown;
162
+ };
163
+ export type MissingCredentialsErrorBody = {
164
+ message: string;
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
+ export type ListNetworksData = {
181
+ body?: never;
182
+ path?: never;
183
+ query?: {
184
+ organizationId?: string;
185
+ includePolicies?: boolean;
186
+ };
187
+ url: '/v1/';
188
+ };
189
+ export type ListNetworksErrors = {
190
+ /**
191
+ * Invalid request
192
+ */
193
+ 400: FlashStartErrorBody;
194
+ /**
195
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
196
+ */
197
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
198
+ /**
199
+ * Insufficient permission
200
+ */
201
+ 403: FlashStartErrorBody;
202
+ /**
203
+ * Invalid request
204
+ */
205
+ 422: FlashStartErrorBody;
206
+ /**
207
+ * Internal server error
208
+ */
209
+ 500: FlashStartErrorBody;
210
+ };
211
+ export type ListNetworksError = ListNetworksErrors[keyof ListNetworksErrors];
212
+ export type ListNetworksResponses = {
213
+ /**
214
+ * Networks
215
+ */
216
+ 200: Array<NetworkResult>;
217
+ };
218
+ export type ListNetworksResponse = ListNetworksResponses[keyof ListNetworksResponses];
219
+ export type ListNetworkDnsData = {
220
+ body?: never;
221
+ path?: never;
222
+ query?: never;
223
+ url: '/v1/dns';
224
+ };
225
+ export type ListNetworkDnsErrors = {
226
+ /**
227
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
228
+ */
229
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
230
+ /**
231
+ * Insufficient permission
232
+ */
233
+ 403: FlashStartErrorBody;
234
+ /**
235
+ * Internal server error
236
+ */
237
+ 500: FlashStartErrorBody;
238
+ };
239
+ export type ListNetworkDnsError = ListNetworkDnsErrors[keyof ListNetworkDnsErrors];
240
+ export type ListNetworkDnsResponses = {
241
+ /**
242
+ * Network DNS entries
243
+ */
244
+ 200: Array<NetworkDns>;
245
+ };
246
+ export type ListNetworkDnsResponse = ListNetworkDnsResponses[keyof ListNetworkDnsResponses];
247
+ export type ListEdnsData = {
248
+ body?: never;
249
+ path?: never;
250
+ query?: {
251
+ organizationId?: string;
252
+ };
253
+ url: '/v1/edns';
254
+ };
255
+ export type ListEdnsErrors = {
256
+ /**
257
+ * Invalid request
258
+ */
259
+ 400: FlashStartErrorBody;
260
+ /**
261
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
262
+ */
263
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
264
+ /**
265
+ * Insufficient permission
266
+ */
267
+ 403: FlashStartErrorBody;
268
+ /**
269
+ * Invalid request
270
+ */
271
+ 422: FlashStartErrorBody;
272
+ /**
273
+ * Internal server error
274
+ */
275
+ 500: FlashStartErrorBody;
276
+ };
277
+ export type ListEdnsError = ListEdnsErrors[keyof ListEdnsErrors];
278
+ export type ListEdnsResponses = {
279
+ /**
280
+ * EDNS entries
281
+ */
282
+ 200: Array<Edns>;
283
+ };
284
+ export type ListEdnsResponse = ListEdnsResponses[keyof ListEdnsResponses];
285
+ export type CreateEdnsData = {
286
+ body: EdnsCreation;
287
+ path?: never;
288
+ query?: never;
289
+ url: '/v1/edns';
290
+ };
291
+ export type CreateEdnsErrors = {
292
+ /**
293
+ * Invalid request
294
+ */
295
+ 400: FlashStartErrorBody;
296
+ /**
297
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
298
+ */
299
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
300
+ /**
301
+ * Insufficient permission
302
+ */
303
+ 403: FlashStartErrorBody;
304
+ /**
305
+ * Resource not found
306
+ */
307
+ 404: FlashStartErrorBody;
308
+ /**
309
+ * Invalid request
310
+ */
311
+ 422: FlashStartErrorBody;
312
+ /**
313
+ * Internal server error
314
+ */
315
+ 500: FlashStartErrorBody;
316
+ };
317
+ export type CreateEdnsError = CreateEdnsErrors[keyof CreateEdnsErrors];
318
+ export type CreateEdnsResponses = {
319
+ /**
320
+ * EDNS entry
321
+ */
322
+ 201: Edns;
323
+ };
324
+ export type CreateEdnsResponse = CreateEdnsResponses[keyof CreateEdnsResponses];
325
+ export type DeleteEdnsData = {
326
+ body?: never;
327
+ path: {
328
+ ednsId: string;
329
+ };
330
+ query?: never;
331
+ url: '/v1/edns/{ednsId}';
332
+ };
333
+ export type DeleteEdnsErrors = {
334
+ /**
335
+ * Invalid request
336
+ */
337
+ 400: FlashStartErrorBody;
338
+ /**
339
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
340
+ */
341
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
342
+ /**
343
+ * Insufficient permission
344
+ */
345
+ 403: FlashStartErrorBody;
346
+ /**
347
+ * Resource not found
348
+ */
349
+ 404: FlashStartErrorBody;
350
+ /**
351
+ * Invalid request
352
+ */
353
+ 422: FlashStartErrorBody;
354
+ /**
355
+ * Internal server error
356
+ */
357
+ 500: FlashStartErrorBody;
358
+ };
359
+ export type DeleteEdnsError = DeleteEdnsErrors[keyof DeleteEdnsErrors];
360
+ export type DeleteEdnsResponses = {
361
+ /**
362
+ * Deleted EDNS entry
363
+ */
364
+ 200: Edns;
365
+ };
366
+ export type DeleteEdnsResponse = DeleteEdnsResponses[keyof DeleteEdnsResponses];
367
+ export type GetEdnsData = {
368
+ body?: never;
369
+ path: {
370
+ ednsId: string;
371
+ };
372
+ query?: never;
373
+ url: '/v1/edns/{ednsId}';
374
+ };
375
+ export type GetEdnsErrors = {
376
+ /**
377
+ * Invalid request
378
+ */
379
+ 400: FlashStartErrorBody;
380
+ /**
381
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
382
+ */
383
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
384
+ /**
385
+ * Insufficient permission
386
+ */
387
+ 403: FlashStartErrorBody;
388
+ /**
389
+ * Resource not found
390
+ */
391
+ 404: FlashStartErrorBody;
392
+ /**
393
+ * Invalid request
394
+ */
395
+ 422: FlashStartErrorBody;
396
+ /**
397
+ * Internal server error
398
+ */
399
+ 500: FlashStartErrorBody;
400
+ };
401
+ export type GetEdnsError = GetEdnsErrors[keyof GetEdnsErrors];
402
+ export type GetEdnsResponses = {
403
+ /**
404
+ * EDNS entry
405
+ */
406
+ 200: Edns;
407
+ };
408
+ export type GetEdnsResponse = GetEdnsResponses[keyof GetEdnsResponses];
409
+ export type UpdateEdnsData = {
410
+ body: EdnsUpdate;
411
+ path: {
412
+ ednsId: string;
413
+ };
414
+ query?: never;
415
+ url: '/v1/edns/{ednsId}';
416
+ };
417
+ export type UpdateEdnsErrors = {
418
+ /**
419
+ * Invalid request
420
+ */
421
+ 400: FlashStartErrorBody;
422
+ /**
423
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
424
+ */
425
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
426
+ /**
427
+ * Insufficient permission
428
+ */
429
+ 403: FlashStartErrorBody;
430
+ /**
431
+ * Resource not found
432
+ */
433
+ 404: FlashStartErrorBody;
434
+ /**
435
+ * Invalid request
436
+ */
437
+ 422: FlashStartErrorBody;
438
+ /**
439
+ * Internal server error
440
+ */
441
+ 500: FlashStartErrorBody;
442
+ };
443
+ export type UpdateEdnsError = UpdateEdnsErrors[keyof UpdateEdnsErrors];
444
+ export type UpdateEdnsResponses = {
445
+ /**
446
+ * EDNS entry
447
+ */
448
+ 200: Edns;
449
+ };
450
+ export type UpdateEdnsResponse = UpdateEdnsResponses[keyof UpdateEdnsResponses];
451
+ export type ListAvailableNetworkDnsData = {
452
+ body?: never;
453
+ path: {
454
+ networkId: string;
455
+ };
456
+ query?: never;
457
+ url: '/v1/{networkId}/dns/available';
458
+ };
459
+ export type ListAvailableNetworkDnsErrors = {
460
+ /**
461
+ * Invalid request
462
+ */
463
+ 400: FlashStartErrorBody;
464
+ /**
465
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
466
+ */
467
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
468
+ /**
469
+ * Insufficient permission
470
+ */
471
+ 403: FlashStartErrorBody;
472
+ /**
473
+ * Resource not found
474
+ */
475
+ 404: FlashStartErrorBody;
476
+ /**
477
+ * Invalid request
478
+ */
479
+ 422: FlashStartErrorBody;
480
+ /**
481
+ * Internal server error
482
+ */
483
+ 500: FlashStartErrorBody;
484
+ };
485
+ export type ListAvailableNetworkDnsError = ListAvailableNetworkDnsErrors[keyof ListAvailableNetworkDnsErrors];
486
+ export type ListAvailableNetworkDnsResponses = {
487
+ /**
488
+ * Available DNS entries
489
+ */
490
+ 200: Array<NetworkDns>;
491
+ };
492
+ export type ListAvailableNetworkDnsResponse = ListAvailableNetworkDnsResponses[keyof ListAvailableNetworkDnsResponses];
493
+ export type DeleteNetworkData = {
494
+ body?: never;
495
+ path: {
496
+ networkId: string;
497
+ };
498
+ query?: never;
499
+ url: '/v1/{networkId}';
500
+ };
501
+ export type DeleteNetworkErrors = {
502
+ /**
503
+ * Invalid request
504
+ */
505
+ 400: FlashStartErrorBody;
506
+ /**
507
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
508
+ */
509
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
510
+ /**
511
+ * Insufficient permission
512
+ */
513
+ 403: FlashStartErrorBody;
514
+ /**
515
+ * Resource not found
516
+ */
517
+ 404: FlashStartErrorBody;
518
+ /**
519
+ * Invalid request
520
+ */
521
+ 422: FlashStartErrorBody;
522
+ /**
523
+ * Internal server error
524
+ */
525
+ 500: FlashStartErrorBody;
526
+ };
527
+ export type DeleteNetworkError = DeleteNetworkErrors[keyof DeleteNetworkErrors];
528
+ export type DeleteNetworkResponses = {
529
+ /**
530
+ * Deleted network
531
+ */
532
+ 200: Network;
533
+ };
534
+ export type DeleteNetworkResponse = DeleteNetworkResponses[keyof DeleteNetworkResponses];
535
+ export type GetNetworkData = {
536
+ body?: never;
537
+ path: {
538
+ networkId: string;
539
+ };
540
+ query?: {
541
+ includePolicies?: boolean;
542
+ };
543
+ url: '/v1/{networkId}';
544
+ };
545
+ export type GetNetworkErrors = {
546
+ /**
547
+ * Invalid request
548
+ */
549
+ 400: FlashStartErrorBody;
550
+ /**
551
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
552
+ */
553
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
554
+ /**
555
+ * Insufficient permission
556
+ */
557
+ 403: FlashStartErrorBody;
558
+ /**
559
+ * Resource not found
560
+ */
561
+ 404: FlashStartErrorBody;
562
+ /**
563
+ * Invalid request
564
+ */
565
+ 422: FlashStartErrorBody;
566
+ /**
567
+ * Internal server error
568
+ */
569
+ 500: FlashStartErrorBody;
570
+ };
571
+ export type GetNetworkError = GetNetworkErrors[keyof GetNetworkErrors];
572
+ export type GetNetworkResponses = {
573
+ /**
574
+ * Network
575
+ */
576
+ 200: NetworkResult;
577
+ };
578
+ export type GetNetworkResponse = GetNetworkResponses[keyof GetNetworkResponses];
579
+ export type ListNetworkPoliciesData = {
580
+ body?: never;
581
+ path: {
582
+ networkId: string;
583
+ };
584
+ query?: never;
585
+ url: '/v1/{networkId}/policies';
586
+ };
587
+ export type ListNetworkPoliciesErrors = {
588
+ /**
589
+ * Invalid request
590
+ */
591
+ 400: FlashStartErrorBody;
592
+ /**
593
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
594
+ */
595
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
596
+ /**
597
+ * Insufficient permission
598
+ */
599
+ 403: FlashStartErrorBody;
600
+ /**
601
+ * Resource not found
602
+ */
603
+ 404: FlashStartErrorBody;
604
+ /**
605
+ * Invalid request
606
+ */
607
+ 422: FlashStartErrorBody;
608
+ /**
609
+ * Internal server error
610
+ */
611
+ 500: FlashStartErrorBody;
612
+ };
613
+ export type ListNetworkPoliciesError = ListNetworkPoliciesErrors[keyof ListNetworkPoliciesErrors];
614
+ export type ListNetworkPoliciesResponses = {
615
+ /**
616
+ * Network policies
617
+ */
618
+ 200: Array<NetworkPolicy>;
619
+ };
620
+ export type ListNetworkPoliciesResponse = ListNetworkPoliciesResponses[keyof ListNetworkPoliciesResponses];
621
+ export type AddNetworkPolicyData = {
622
+ body: NetworkPolicyCreation;
623
+ path: {
624
+ networkId: string;
625
+ };
626
+ query?: never;
627
+ url: '/v1/{networkId}/policies';
628
+ };
629
+ export type AddNetworkPolicyErrors = {
630
+ /**
631
+ * Invalid request
632
+ */
633
+ 400: FlashStartErrorBody;
634
+ /**
635
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
636
+ */
637
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
638
+ /**
639
+ * Insufficient permission
640
+ */
641
+ 403: FlashStartErrorBody;
642
+ /**
643
+ * Resource not found
644
+ */
645
+ 404: FlashStartErrorBody;
646
+ /**
647
+ * Invalid request
648
+ */
649
+ 422: FlashStartErrorBody;
650
+ /**
651
+ * Internal server error
652
+ */
653
+ 500: FlashStartErrorBody;
654
+ };
655
+ export type AddNetworkPolicyError = AddNetworkPolicyErrors[keyof AddNetworkPolicyErrors];
656
+ export type AddNetworkPolicyResponses = {
657
+ /**
658
+ * Network policy
659
+ */
660
+ 201: NetworkPolicy;
661
+ };
662
+ export type AddNetworkPolicyResponse = AddNetworkPolicyResponses[keyof AddNetworkPolicyResponses];
663
+ export type DeleteNetworkPolicyData = {
664
+ body?: never;
665
+ path: {
666
+ networkId: string;
667
+ policyId: string;
668
+ };
669
+ query?: never;
670
+ url: '/v1/{networkId}/policies/{policyId}';
671
+ };
672
+ export type DeleteNetworkPolicyErrors = {
673
+ /**
674
+ * Invalid request
675
+ */
676
+ 400: FlashStartErrorBody;
677
+ /**
678
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
679
+ */
680
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
681
+ /**
682
+ * Insufficient permission
683
+ */
684
+ 403: FlashStartErrorBody;
685
+ /**
686
+ * Resource not found
687
+ */
688
+ 404: FlashStartErrorBody;
689
+ /**
690
+ * Invalid request
691
+ */
692
+ 422: FlashStartErrorBody;
693
+ /**
694
+ * Internal server error
695
+ */
696
+ 500: FlashStartErrorBody;
697
+ };
698
+ export type DeleteNetworkPolicyError = DeleteNetworkPolicyErrors[keyof DeleteNetworkPolicyErrors];
699
+ export type DeleteNetworkPolicyResponses = {
700
+ /**
701
+ * Deleted network policy
702
+ */
703
+ 200: NetworkPolicy;
704
+ };
705
+ export type DeleteNetworkPolicyResponse = DeleteNetworkPolicyResponses[keyof DeleteNetworkPolicyResponses];
706
+ export type CreateSingleStaticNetworkData = {
707
+ body: {
708
+ name: string;
709
+ note?: string;
710
+ organizationId?: string;
711
+ ip: string | string;
712
+ };
713
+ path?: never;
714
+ query?: never;
715
+ url: '/v1/static/single';
716
+ };
717
+ export type CreateSingleStaticNetworkErrors = {
718
+ /**
719
+ * Invalid request
720
+ */
721
+ 400: FlashStartErrorBody;
722
+ /**
723
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
724
+ */
725
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
726
+ /**
727
+ * Insufficient permission
728
+ */
729
+ 403: FlashStartErrorBody;
730
+ /**
731
+ * Invalid request
732
+ */
733
+ 422: FlashStartErrorBody;
734
+ /**
735
+ * Internal server error
736
+ */
737
+ 500: FlashStartErrorBody;
738
+ };
739
+ export type CreateSingleStaticNetworkError = CreateSingleStaticNetworkErrors[keyof CreateSingleStaticNetworkErrors];
740
+ export type CreateSingleStaticNetworkResponses = {
741
+ /**
742
+ * Created network
743
+ */
744
+ 201: {
745
+ id: string;
746
+ type: 'STATIC_SINGLE';
747
+ name: string;
748
+ note: string | null;
749
+ organizationId: string;
750
+ createdAt: string;
751
+ updatedAt: string;
752
+ lastQueriedAt?: string | null;
753
+ ip: string | string;
754
+ };
755
+ };
756
+ export type CreateSingleStaticNetworkResponse = CreateSingleStaticNetworkResponses[keyof CreateSingleStaticNetworkResponses];
757
+ export type CreateCidrStaticNetworkData = {
758
+ body: CidrStaticNetworkCreation2;
759
+ path?: never;
760
+ query?: never;
761
+ url: '/v1/static/cidr';
762
+ };
763
+ export type CreateCidrStaticNetworkErrors = {
764
+ /**
765
+ * Invalid request
766
+ */
767
+ 400: FlashStartErrorBody;
768
+ /**
769
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
770
+ */
771
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
772
+ /**
773
+ * Insufficient permission
774
+ */
775
+ 403: FlashStartErrorBody;
776
+ /**
777
+ * Invalid request
778
+ */
779
+ 422: FlashStartErrorBody;
780
+ /**
781
+ * Internal server error
782
+ */
783
+ 500: FlashStartErrorBody;
784
+ };
785
+ export type CreateCidrStaticNetworkError = CreateCidrStaticNetworkErrors[keyof CreateCidrStaticNetworkErrors];
786
+ export type CreateCidrStaticNetworkResponses = {
787
+ /**
788
+ * Created network
789
+ */
790
+ 201: Network;
791
+ };
792
+ export type CreateCidrStaticNetworkResponse = CreateCidrStaticNetworkResponses[keyof CreateCidrStaticNetworkResponses];
793
+ export type CreateRangeStaticNetworkData = {
794
+ body: RangeStaticNetworkCreation2;
795
+ path?: never;
796
+ query?: never;
797
+ url: '/v1/static/range';
798
+ };
799
+ export type CreateRangeStaticNetworkErrors = {
800
+ /**
801
+ * Invalid request
802
+ */
803
+ 400: FlashStartErrorBody;
804
+ /**
805
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
806
+ */
807
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
808
+ /**
809
+ * Insufficient permission
810
+ */
811
+ 403: FlashStartErrorBody;
812
+ /**
813
+ * Invalid request
814
+ */
815
+ 422: FlashStartErrorBody;
816
+ /**
817
+ * Internal server error
818
+ */
819
+ 500: FlashStartErrorBody;
820
+ };
821
+ export type CreateRangeStaticNetworkError = CreateRangeStaticNetworkErrors[keyof CreateRangeStaticNetworkErrors];
822
+ export type CreateRangeStaticNetworkResponses = {
823
+ /**
824
+ * Created network
825
+ */
826
+ 201: Network;
827
+ };
828
+ export type CreateRangeStaticNetworkResponse = CreateRangeStaticNetworkResponses[keyof CreateRangeStaticNetworkResponses];
829
+ export type CreateInternalDynamicNetworkData = {
830
+ body: InternalDynamicNetworkCreation2;
831
+ path?: never;
832
+ query?: never;
833
+ url: '/v1/dynamic/internal';
834
+ };
835
+ export type CreateInternalDynamicNetworkErrors = {
836
+ /**
837
+ * Invalid request
838
+ */
839
+ 400: FlashStartErrorBody;
840
+ /**
841
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
842
+ */
843
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
844
+ /**
845
+ * Insufficient permission
846
+ */
847
+ 403: FlashStartErrorBody;
848
+ /**
849
+ * Invalid request
850
+ */
851
+ 422: FlashStartErrorBody;
852
+ /**
853
+ * Internal server error
854
+ */
855
+ 500: FlashStartErrorBody;
856
+ };
857
+ export type CreateInternalDynamicNetworkError = CreateInternalDynamicNetworkErrors[keyof CreateInternalDynamicNetworkErrors];
858
+ export type CreateInternalDynamicNetworkResponses = {
859
+ /**
860
+ * Created network
861
+ */
862
+ 201: Network;
863
+ };
864
+ export type CreateInternalDynamicNetworkResponse = CreateInternalDynamicNetworkResponses[keyof CreateInternalDynamicNetworkResponses];
865
+ export type CreateExternalDynamicNetworkData = {
866
+ body: ExternalDynamicNetworkCreation2;
867
+ path?: never;
868
+ query?: never;
869
+ url: '/v1/dynamic/external';
870
+ };
871
+ export type CreateExternalDynamicNetworkErrors = {
872
+ /**
873
+ * Invalid request
874
+ */
875
+ 400: FlashStartErrorBody;
876
+ /**
877
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
878
+ */
879
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
880
+ /**
881
+ * Insufficient permission
882
+ */
883
+ 403: FlashStartErrorBody;
884
+ /**
885
+ * Invalid request
886
+ */
887
+ 422: FlashStartErrorBody;
888
+ /**
889
+ * Internal server error
890
+ */
891
+ 500: FlashStartErrorBody;
892
+ };
893
+ export type CreateExternalDynamicNetworkError = CreateExternalDynamicNetworkErrors[keyof CreateExternalDynamicNetworkErrors];
894
+ export type CreateExternalDynamicNetworkResponses = {
895
+ /**
896
+ * Created network
897
+ */
898
+ 201: Network;
899
+ };
900
+ export type CreateExternalDynamicNetworkResponse = CreateExternalDynamicNetworkResponses[keyof CreateExternalDynamicNetworkResponses];
901
+ export type CreateEncryptedNetworkData = {
902
+ body: EncryptedNetworkCreation2;
903
+ path?: never;
904
+ query?: never;
905
+ url: '/v1/encrypted';
906
+ };
907
+ export type CreateEncryptedNetworkErrors = {
908
+ /**
909
+ * Invalid request
910
+ */
911
+ 400: FlashStartErrorBody;
912
+ /**
913
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
914
+ */
915
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
916
+ /**
917
+ * Insufficient permission
918
+ */
919
+ 403: FlashStartErrorBody;
920
+ /**
921
+ * Invalid request
922
+ */
923
+ 422: FlashStartErrorBody;
924
+ /**
925
+ * Internal server error
926
+ */
927
+ 500: FlashStartErrorBody;
928
+ };
929
+ export type CreateEncryptedNetworkError = CreateEncryptedNetworkErrors[keyof CreateEncryptedNetworkErrors];
930
+ export type CreateEncryptedNetworkResponses = {
931
+ /**
932
+ * Created network
933
+ */
934
+ 201: Network;
935
+ };
936
+ export type CreateEncryptedNetworkResponse = CreateEncryptedNetworkResponses[keyof CreateEncryptedNetworkResponses];
937
+ export type UpdateSingleStaticNetworkData = {
938
+ body: StaticNetworkUpdate2;
939
+ path: {
940
+ networkId: string;
941
+ };
942
+ query?: never;
943
+ url: '/v1/static/single/{networkId}';
944
+ };
945
+ export type UpdateSingleStaticNetworkErrors = {
946
+ /**
947
+ * Invalid request
948
+ */
949
+ 400: FlashStartErrorBody;
950
+ /**
951
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
952
+ */
953
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
954
+ /**
955
+ * Insufficient permission
956
+ */
957
+ 403: FlashStartErrorBody;
958
+ /**
959
+ * Resource not found
960
+ */
961
+ 404: FlashStartErrorBody;
962
+ /**
963
+ * Invalid request
964
+ */
965
+ 422: FlashStartErrorBody;
966
+ /**
967
+ * Internal server error
968
+ */
969
+ 500: FlashStartErrorBody;
970
+ };
971
+ export type UpdateSingleStaticNetworkError = UpdateSingleStaticNetworkErrors[keyof UpdateSingleStaticNetworkErrors];
972
+ export type UpdateSingleStaticNetworkResponses = {
973
+ /**
974
+ * Updated network
975
+ */
976
+ 200: Network;
977
+ };
978
+ export type UpdateSingleStaticNetworkResponse = UpdateSingleStaticNetworkResponses[keyof UpdateSingleStaticNetworkResponses];
979
+ export type UpdateCidrStaticNetworkData = {
980
+ body: StaticNetworkUpdate2;
981
+ path: {
982
+ networkId: string;
983
+ };
984
+ query?: never;
985
+ url: '/v1/static/cidr/{networkId}';
986
+ };
987
+ export type UpdateCidrStaticNetworkErrors = {
988
+ /**
989
+ * Invalid request
990
+ */
991
+ 400: FlashStartErrorBody;
992
+ /**
993
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
994
+ */
995
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
996
+ /**
997
+ * Insufficient permission
998
+ */
999
+ 403: FlashStartErrorBody;
1000
+ /**
1001
+ * Resource not found
1002
+ */
1003
+ 404: FlashStartErrorBody;
1004
+ /**
1005
+ * Invalid request
1006
+ */
1007
+ 422: FlashStartErrorBody;
1008
+ /**
1009
+ * Internal server error
1010
+ */
1011
+ 500: FlashStartErrorBody;
1012
+ };
1013
+ export type UpdateCidrStaticNetworkError = UpdateCidrStaticNetworkErrors[keyof UpdateCidrStaticNetworkErrors];
1014
+ export type UpdateCidrStaticNetworkResponses = {
1015
+ /**
1016
+ * Updated network
1017
+ */
1018
+ 200: Network;
1019
+ };
1020
+ export type UpdateCidrStaticNetworkResponse = UpdateCidrStaticNetworkResponses[keyof UpdateCidrStaticNetworkResponses];
1021
+ export type UpdateRangeStaticNetworkData = {
1022
+ body: StaticNetworkUpdate2;
1023
+ path: {
1024
+ networkId: string;
1025
+ };
1026
+ query?: never;
1027
+ url: '/v1/static/range/{networkId}';
1028
+ };
1029
+ export type UpdateRangeStaticNetworkErrors = {
1030
+ /**
1031
+ * Invalid request
1032
+ */
1033
+ 400: FlashStartErrorBody;
1034
+ /**
1035
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
1036
+ */
1037
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
1038
+ /**
1039
+ * Insufficient permission
1040
+ */
1041
+ 403: FlashStartErrorBody;
1042
+ /**
1043
+ * Resource not found
1044
+ */
1045
+ 404: FlashStartErrorBody;
1046
+ /**
1047
+ * Invalid request
1048
+ */
1049
+ 422: FlashStartErrorBody;
1050
+ /**
1051
+ * Internal server error
1052
+ */
1053
+ 500: FlashStartErrorBody;
1054
+ };
1055
+ export type UpdateRangeStaticNetworkError = UpdateRangeStaticNetworkErrors[keyof UpdateRangeStaticNetworkErrors];
1056
+ export type UpdateRangeStaticNetworkResponses = {
1057
+ /**
1058
+ * Updated network
1059
+ */
1060
+ 200: Network;
1061
+ };
1062
+ export type UpdateRangeStaticNetworkResponse = UpdateRangeStaticNetworkResponses[keyof UpdateRangeStaticNetworkResponses];
1063
+ export type UpdateInternalDynamicNetworkData = {
1064
+ body: InternalDynamicNetworkUpdate2;
1065
+ path: {
1066
+ networkId: string;
1067
+ };
1068
+ query?: never;
1069
+ url: '/v1/dynamic/internal/{networkId}';
1070
+ };
1071
+ export type UpdateInternalDynamicNetworkErrors = {
1072
+ /**
1073
+ * Invalid request
1074
+ */
1075
+ 400: FlashStartErrorBody;
1076
+ /**
1077
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
1078
+ */
1079
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
1080
+ /**
1081
+ * Insufficient permission
1082
+ */
1083
+ 403: FlashStartErrorBody;
1084
+ /**
1085
+ * Resource not found
1086
+ */
1087
+ 404: FlashStartErrorBody;
1088
+ /**
1089
+ * Invalid request
1090
+ */
1091
+ 422: FlashStartErrorBody;
1092
+ /**
1093
+ * Internal server error
1094
+ */
1095
+ 500: FlashStartErrorBody;
1096
+ };
1097
+ export type UpdateInternalDynamicNetworkError = UpdateInternalDynamicNetworkErrors[keyof UpdateInternalDynamicNetworkErrors];
1098
+ export type UpdateInternalDynamicNetworkResponses = {
1099
+ /**
1100
+ * Updated network
1101
+ */
1102
+ 200: Network;
1103
+ };
1104
+ export type UpdateInternalDynamicNetworkResponse = UpdateInternalDynamicNetworkResponses[keyof UpdateInternalDynamicNetworkResponses];
1105
+ export type UpdateExternalDynamicNetworkData = {
1106
+ body: ExternalDynamicNetworkUpdate2;
1107
+ path: {
1108
+ networkId: string;
1109
+ };
1110
+ query?: never;
1111
+ url: '/v1/dynamic/external/{networkId}';
1112
+ };
1113
+ export type UpdateExternalDynamicNetworkErrors = {
1114
+ /**
1115
+ * Invalid request
1116
+ */
1117
+ 400: FlashStartErrorBody;
1118
+ /**
1119
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
1120
+ */
1121
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
1122
+ /**
1123
+ * Insufficient permission
1124
+ */
1125
+ 403: FlashStartErrorBody;
1126
+ /**
1127
+ * Resource not found
1128
+ */
1129
+ 404: FlashStartErrorBody;
1130
+ /**
1131
+ * Invalid request
1132
+ */
1133
+ 422: FlashStartErrorBody;
1134
+ /**
1135
+ * Internal server error
1136
+ */
1137
+ 500: FlashStartErrorBody;
1138
+ };
1139
+ export type UpdateExternalDynamicNetworkError = UpdateExternalDynamicNetworkErrors[keyof UpdateExternalDynamicNetworkErrors];
1140
+ export type UpdateExternalDynamicNetworkResponses = {
1141
+ /**
1142
+ * Updated network
1143
+ */
1144
+ 200: Network;
1145
+ };
1146
+ export type UpdateExternalDynamicNetworkResponse = UpdateExternalDynamicNetworkResponses[keyof UpdateExternalDynamicNetworkResponses];
1147
+ export type UpdateEncryptedNetworkData = {
1148
+ body: StaticNetworkUpdate2;
1149
+ path: {
1150
+ networkId: string;
1151
+ };
1152
+ query?: never;
1153
+ url: '/v1/encrypted/{networkId}';
1154
+ };
1155
+ export type UpdateEncryptedNetworkErrors = {
1156
+ /**
1157
+ * Invalid request
1158
+ */
1159
+ 400: FlashStartErrorBody;
1160
+ /**
1161
+ * Missing or invalid API key or bearer credentials; missing credentials return a message, invalid credentials return a standard error
1162
+ */
1163
+ 401: MissingCredentialsErrorBody | FlashStartErrorBody;
1164
+ /**
1165
+ * Insufficient permission
1166
+ */
1167
+ 403: FlashStartErrorBody;
1168
+ /**
1169
+ * Resource not found
1170
+ */
1171
+ 404: FlashStartErrorBody;
1172
+ /**
1173
+ * Invalid request
1174
+ */
1175
+ 422: FlashStartErrorBody;
1176
+ /**
1177
+ * Internal server error
1178
+ */
1179
+ 500: FlashStartErrorBody;
1180
+ };
1181
+ export type UpdateEncryptedNetworkError = UpdateEncryptedNetworkErrors[keyof UpdateEncryptedNetworkErrors];
1182
+ export type UpdateEncryptedNetworkResponses = {
1183
+ /**
1184
+ * Updated network
1185
+ */
1186
+ 200: Network;
1187
+ };
1188
+ export type UpdateEncryptedNetworkResponse = UpdateEncryptedNetworkResponses[keyof UpdateEncryptedNetworkResponses];