@stack-spot/portal-network 0.189.0 → 0.190.0-beta.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/dist/api/account.d.ts +85 -202
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +68 -140
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/ai.d.ts +189 -86
  7. package/dist/api/ai.d.ts.map +1 -1
  8. package/dist/api/ai.js +238 -142
  9. package/dist/api/ai.js.map +1 -1
  10. package/dist/api/cloudPlatform.d.ts +363 -188
  11. package/dist/api/cloudPlatform.d.ts.map +1 -1
  12. package/dist/api/cloudPlatform.js +253 -80
  13. package/dist/api/cloudPlatform.js.map +1 -1
  14. package/dist/api/codeShift.d.ts +5 -3
  15. package/dist/api/codeShift.d.ts.map +1 -1
  16. package/dist/api/codeShift.js.map +1 -1
  17. package/dist/api/genAiInference.d.ts +22 -2
  18. package/dist/api/genAiInference.d.ts.map +1 -1
  19. package/dist/api/genAiInference.js +22 -3
  20. package/dist/api/genAiInference.js.map +1 -1
  21. package/dist/client/account.d.ts +18 -4
  22. package/dist/client/account.d.ts.map +1 -1
  23. package/dist/client/account.js +58 -31
  24. package/dist/client/account.js.map +1 -1
  25. package/dist/client/ai.d.ts +29 -0
  26. package/dist/client/ai.d.ts.map +1 -1
  27. package/dist/client/ai.js +121 -14
  28. package/dist/client/ai.js.map +1 -1
  29. package/dist/client/cloud-platform.d.ts +128 -1
  30. package/dist/client/cloud-platform.d.ts.map +1 -1
  31. package/dist/client/cloud-platform.js +92 -2
  32. package/dist/client/cloud-platform.js.map +1 -1
  33. package/dist/client/code-shift.js +1 -1
  34. package/dist/client/code-shift.js.map +1 -1
  35. package/dist/client/types.d.ts +26 -5
  36. package/dist/client/types.d.ts.map +1 -1
  37. package/package.json +3 -3
  38. package/readme.md +2 -1
  39. package/src/api/account.ts +127 -392
  40. package/src/api/agent-tools.ts +3 -0
  41. package/src/api/agent.ts +2 -0
  42. package/src/api/ai.ts +364 -157
  43. package/src/api/cloudPlatform.ts +638 -264
  44. package/src/api/codeShift.ts +5 -3
  45. package/src/api/genAiInference.ts +47 -4
  46. package/src/api/notification.ts +2 -0
  47. package/src/client/account.ts +54 -38
  48. package/src/client/ai.ts +126 -13
  49. package/src/client/cloud-platform.ts +52 -2
  50. package/src/client/code-shift.ts +1 -1
  51. package/src/client/types.ts +27 -5
@@ -14,6 +14,172 @@ const oazapfts = Oazapfts.runtime(defaults);
14
14
  export const servers = {
15
15
  generatedServerUrl: "https://cloud-cloud-platform-api.dev.stackspot.com"
16
16
  };
17
+ export type Tag = {
18
+ key: string;
19
+ value: string;
20
+ };
21
+ export type TunnelStatus = {
22
+ tunnel1?: string;
23
+ tunnel2?: string;
24
+ };
25
+ export type VpnDetails = {
26
+ peerCustomerGatewayIp: string;
27
+ destinationCidrBlock: string;
28
+ tunnelStatus: TunnelStatus;
29
+ };
30
+ export type VpnResponse = {
31
+ stackSpotAccountId: string;
32
+ foundationId: string;
33
+ vpnId: string;
34
+ details: VpnDetails;
35
+ tags: Tag[];
36
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ deletedAt?: string;
40
+ };
41
+ export type ProjectDetails = {
42
+ name: string;
43
+ folderName: string;
44
+ providerAccountId?: string;
45
+ };
46
+ export type ProjectResponse = {
47
+ stackSpotAccountId: string;
48
+ foundationId: string;
49
+ parentFolderId: string;
50
+ projectId: string;
51
+ details: ProjectDetails;
52
+ tags: Tag[];
53
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
54
+ createdAt: string;
55
+ updatedAt: string;
56
+ deletedAt?: string;
57
+ };
58
+ export type NetworkSubnetDetails = {
59
+ az?: string;
60
+ cidr?: string;
61
+ id?: string;
62
+ "type": "NAT" | "PRIVATE" | "PUBLIC";
63
+ };
64
+ export type NetworkDetails = {
65
+ cidrs?: string[];
66
+ name: string;
67
+ "type": "WORKLOAD";
68
+ subnets: NetworkSubnetDetails[];
69
+ };
70
+ export type NetworkResponse = {
71
+ stackSpotAccountId: string;
72
+ foundationId: string;
73
+ projectId: string;
74
+ networkId: string;
75
+ details: NetworkDetails;
76
+ tags: Tag[];
77
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
78
+ createdAt: string;
79
+ updatedAt: string;
80
+ deletedAt?: string;
81
+ };
82
+ export type InboundDetails = {
83
+ recordName: string;
84
+ };
85
+ export type InboundResponse = {
86
+ stackSpotAccountId: string;
87
+ foundationId: string;
88
+ projectId: string;
89
+ inboundId: string;
90
+ details: InboundDetails;
91
+ tags: Tag[];
92
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
93
+ createdAt: string;
94
+ updatedAt: string;
95
+ deletedAt?: string;
96
+ };
97
+ export type FolderContent = {
98
+ "type": "FOLDER" | "PROJECT";
99
+ id: string;
100
+ name: string;
101
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
102
+ };
103
+ export type FolderDetails = {
104
+ name: string;
105
+ pendingResources: boolean;
106
+ content: FolderContent[];
107
+ };
108
+ export type FolderResponse = {
109
+ stackSpotAccountId: string;
110
+ foundationId: string;
111
+ parentFolderId: string;
112
+ folderId: string;
113
+ details: FolderDetails;
114
+ tags: Tag[];
115
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
116
+ createdAt: string;
117
+ updatedAt: string;
118
+ deletedAt?: string;
119
+ };
120
+ export type DnsZoneDetails = {
121
+ domain: string;
122
+ dnsZoneType: string;
123
+ };
124
+ export type DnsZoneResponse = {
125
+ stackSpotAccountId: string;
126
+ foundationId: string;
127
+ dnsZoneId: string;
128
+ details: DnsZoneDetails;
129
+ tags: Tag[];
130
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ deletedAt?: string;
134
+ };
135
+ export type CidrDetails = {
136
+ cidrNotation: string;
137
+ networkAddress: string;
138
+ netmask: string;
139
+ broadcastAddress: string;
140
+ lowAddress: string;
141
+ highAddress: string;
142
+ addressCount: number;
143
+ };
144
+ export type CidrResponse = {
145
+ stackSpotAccountId: string;
146
+ foundationId: string;
147
+ cidrId: string;
148
+ details: CidrDetails;
149
+ tags: Tag[];
150
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
151
+ createdAt: string;
152
+ updatedAt: string;
153
+ deletedAt?: string;
154
+ };
155
+ export type CertificateDomainValidation = {
156
+ domainName?: string;
157
+ recordName?: string;
158
+ recordType?: string;
159
+ recordValue?: string;
160
+ };
161
+ export type CertificateDetails = {
162
+ name: string;
163
+ forInbound: "TRUE" | "FALSE";
164
+ certificateStatus?: string;
165
+ domainName?: string;
166
+ domainValidation?: CertificateDomainValidation[];
167
+ notAfter?: string;
168
+ notBefore?: string;
169
+ "type"?: string;
170
+ validationMethod?: string;
171
+ };
172
+ export type CertificateResponse = {
173
+ stackSpotAccountId: string;
174
+ foundationId: string;
175
+ certificateId: string;
176
+ details: CertificateDetails;
177
+ status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
178
+ tags: Tag[];
179
+ createdAt: string;
180
+ updatedAt: string;
181
+ deletedAt?: string;
182
+ };
17
183
  export type FoundationDetails = {
18
184
  name: string;
19
185
  description: string;
@@ -24,6 +190,7 @@ export type FoundationResponse = {
24
190
  stackSpotAccountId: string;
25
191
  foundationId: string;
26
192
  details: FoundationDetails;
193
+ tags: Tag[];
27
194
  status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
28
195
  createdAt: string;
29
196
  updatedAt: string;
@@ -40,25 +207,6 @@ export type CreateFoundationRequest = {
40
207
  cloudProvider: string;
41
208
  region: string;
42
209
  };
43
- export type TunnelStatus = {
44
- tunnel1?: string;
45
- tunnel2?: string;
46
- };
47
- export type VpnDetails = {
48
- peerCustomerGatewayIp: string;
49
- destinationCidrBlock: string;
50
- tunnelStatus: TunnelStatus;
51
- };
52
- export type VpnResponse = {
53
- stackSpotAccountId: string;
54
- foundationId: string;
55
- vpnId: string;
56
- details: VpnDetails;
57
- status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
58
- createdAt: string;
59
- updatedAt: string;
60
- deletedAt?: string;
61
- };
62
210
  export type ListVpnResponse = {
63
211
  stackSpotAccountId: string;
64
212
  foundationId: string;
@@ -68,6 +216,7 @@ export type ListVpnResponse = {
68
216
  export type CreateVpnRequest = {
69
217
  peerCustomerGatewayIp: string;
70
218
  destinationCidrBlock: string;
219
+ tags?: Tag[];
71
220
  };
72
221
  export type TenantDetails = {
73
222
  name: string;
@@ -89,25 +238,37 @@ export type ListTenantResponse = {
89
238
  content: TenantResponse[];
90
239
  };
91
240
  export type CreateTenantRequest = {
92
- tenantName: string;
241
+ name: string;
93
242
  publicCidrs: string[];
94
243
  };
95
- export type ProjectDetails = {
244
+ export type RuntimeDetails = {
96
245
  name: string;
97
- folderName: string;
98
- providerAccountId?: string;
99
246
  };
100
- export type ProjectResponse = {
247
+ export type RuntimeResponse = {
101
248
  stackSpotAccountId: string;
102
249
  foundationId: string;
103
- parentFolderId: string;
104
- projectId: string;
105
- details: ProjectDetails;
250
+ tenantId: string;
251
+ runtimeId: string;
252
+ details: RuntimeDetails;
106
253
  status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
107
254
  createdAt: string;
108
255
  updatedAt: string;
109
256
  deletedAt?: string;
110
257
  };
258
+ export type ListRuntimeResponse = {
259
+ stackSpotAccountId: string;
260
+ foundationId: string;
261
+ projectId?: string;
262
+ tenantId?: string;
263
+ pendingResources: boolean;
264
+ content: RuntimeResponse[];
265
+ };
266
+ export type CreateRuntimeRequest = {
267
+ projectId: string;
268
+ name: string;
269
+ publicCidrs: string[];
270
+ clusterAdminRoles: string[];
271
+ };
111
272
  export type ListProjectResponse = {
112
273
  stackSpotAccountId: string;
113
274
  foundationId: string;
@@ -119,29 +280,7 @@ export type CreateProjectRequest = {
119
280
  parentFolderId: string;
120
281
  name: string;
121
282
  description: string;
122
- };
123
- export type NetworkSubnetDetails = {
124
- az?: string;
125
- cidr?: string;
126
- id?: string;
127
- "type": "NAT" | "PRIVATE" | "PUBLIC";
128
- };
129
- export type NetworkDetails = {
130
- cidrs?: string[];
131
- name: string;
132
- "type": "WORKLOAD";
133
- subnets: NetworkSubnetDetails[];
134
- };
135
- export type NetworkResponse = {
136
- stackSpotAccountId: string;
137
- foundationId: string;
138
- projectId: string;
139
- networkId: string;
140
- details: NetworkDetails;
141
- status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
142
- createdAt: string;
143
- updatedAt: string;
144
- deletedAt?: string;
283
+ tags?: Tag[];
145
284
  };
146
285
  export type ListNetworkResponse = {
147
286
  stackSpotAccountId: string;
@@ -155,6 +294,7 @@ export type CreateNetworkRequest = {
155
294
  prefixLength: number;
156
295
  networkName?: string;
157
296
  networkType: "WORKLOAD";
297
+ tags?: Tag[];
158
298
  };
159
299
  export type NetworkConnectionDetails = {
160
300
  accepted?: boolean;
@@ -170,6 +310,7 @@ export type NetworkConnectionResponse = {
170
310
  requesterProjectId: string;
171
311
  networkConnectionId: string;
172
312
  details: NetworkConnectionDetails;
313
+ tags: Tag[];
173
314
  status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
174
315
  createdAt: string;
175
316
  updatedAt: string;
@@ -188,20 +329,7 @@ export type ListNetworkConnectionResponse = {
188
329
  export type CreateNetworkConnectionRequest = {
189
330
  accepterNetworkId: string;
190
331
  requesterNetworkId: string;
191
- };
192
- export type InboundDetails = {
193
- recordName: string;
194
- };
195
- export type InboundResponse = {
196
- stackSpotAccountId: string;
197
- foundationId: string;
198
- projectId: string;
199
- inboundId: string;
200
- details: InboundDetails;
201
- status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
202
- createdAt: string;
203
- updatedAt: string;
204
- deletedAt?: string;
332
+ tags?: Tag[];
205
333
  };
206
334
  export type ListInboundResponse = {
207
335
  stackSpotAccountId: string;
@@ -214,46 +342,12 @@ export type CreateInboundRequest = {
214
342
  certificateId: string;
215
343
  domain: string;
216
344
  applicationLoadBalancer: string;
217
- };
218
- export type FolderContent = {
219
- "type": "FOLDER" | "PROJECT";
220
- id: string;
221
- name: string;
222
- status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
223
- };
224
- export type FolderDetails = {
225
- name: string;
226
- pendingResources: boolean;
227
- content: FolderContent[];
228
- };
229
- export type FolderResponse = {
230
- stackSpotAccountId: string;
231
- foundationId: string;
232
- parentFolderId: string;
233
- folderId: string;
234
- details: FolderDetails;
235
- status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
236
- createdAt: string;
237
- updatedAt: string;
238
- deletedAt?: string;
345
+ tags?: Tag[];
239
346
  };
240
347
  export type CreateFolderRequest = {
241
348
  parentFolderId: string;
242
349
  name: string;
243
- };
244
- export type DnsZoneDetails = {
245
- domain: string;
246
- dnsZoneType: string;
247
- };
248
- export type DnsZoneResponse = {
249
- stackSpotAccountId: string;
250
- foundationId: string;
251
- dnsZoneId: string;
252
- details: DnsZoneDetails;
253
- status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
254
- createdAt: string;
255
- updatedAt: string;
256
- deletedAt?: string;
350
+ tags?: Tag[];
257
351
  };
258
352
  export type ListDnsZoneResponse = {
259
353
  stackSpotAccountId: string;
@@ -265,6 +359,7 @@ export type CreateDnsZoneRequest = {
265
359
  domain: string;
266
360
  "type": "PUBLIC" | "PRIVATE";
267
361
  projectId?: string;
362
+ tags?: Tag[];
268
363
  };
269
364
  export type DnsRecordDetails = {
270
365
  recordName: string;
@@ -279,45 +374,27 @@ export type DnsRecordResponse = {
279
374
  dnsZoneId: string;
280
375
  dnsRecordId: string;
281
376
  details: DnsRecordDetails;
377
+ tags: Tag[];
282
378
  status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
283
379
  createdAt: string;
284
380
  updatedAt: string;
285
381
  deletedAt?: string;
286
382
  };
287
383
  export type ListDnsRecordResponse = {
288
- stackSpotAccountId: string;
289
- foundationId: string;
290
- projectId?: string;
291
- dnsZoneId?: string;
292
- pendingResources: boolean;
293
- content: DnsRecordResponse[];
294
- };
295
- export type CreateDnsRecordRequest = {
296
- dnsZoneId: string;
297
- projectId?: string;
298
- recordName: string;
299
- records: string[];
300
- ttl: number;
301
- "type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
302
- };
303
- export type CidrDetails = {
304
- cidrNotation: string;
305
- networkAddress: string;
306
- netmask: string;
307
- broadcastAddress: string;
308
- lowAddress: string;
309
- highAddress: string;
310
- addressCount: number;
311
- };
312
- export type CidrResponse = {
313
- stackSpotAccountId: string;
314
- foundationId: string;
315
- cidrId: string;
316
- details: CidrDetails;
317
- status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
318
- createdAt: string;
319
- updatedAt: string;
320
- deletedAt?: string;
384
+ stackSpotAccountId: string;
385
+ foundationId: string;
386
+ projectId?: string;
387
+ dnsZoneId?: string;
388
+ pendingResources: boolean;
389
+ content: DnsRecordResponse[];
390
+ };
391
+ export type CreateDnsRecordRequest = {
392
+ dnsZoneId: string;
393
+ projectId?: string;
394
+ recordName: string;
395
+ records: string[];
396
+ ttl: number;
397
+ "type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
321
398
  };
322
399
  export type ListCidrResponse = {
323
400
  stackSpotAccountId: string;
@@ -328,33 +405,7 @@ export type ListCidrResponse = {
328
405
  export type CreateCidrRequest = {
329
406
  address: string;
330
407
  prefix: number;
331
- };
332
- export type CertificateDomainValidation = {
333
- domainName?: string;
334
- recordName?: string;
335
- recordType?: string;
336
- recordValue?: string;
337
- };
338
- export type CertificateDetails = {
339
- name: string;
340
- forInbound: "TRUE" | "FALSE";
341
- certificateStatus?: string;
342
- domainName?: string;
343
- domainValidation?: CertificateDomainValidation[];
344
- notAfter?: string;
345
- notBefore?: string;
346
- "type"?: string;
347
- validationMethod?: string;
348
- };
349
- export type CertificateResponse = {
350
- stackSpotAccountId: string;
351
- foundationId: string;
352
- certificateId: string;
353
- details: CertificateDetails;
354
- status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
355
- createdAt: string;
356
- updatedAt: string;
357
- deletedAt?: string;
408
+ tags?: Tag[];
358
409
  };
359
410
  export type ListCertificateResponse = {
360
411
  stackSpotAccountId: string;
@@ -363,6 +414,7 @@ export type ListCertificateResponse = {
363
414
  content: CertificateResponse[];
364
415
  };
365
416
  export type CreateCertificateRequestBase = {
417
+ tags?: Tag[];
366
418
  certificateName: string;
367
419
  forInbound: "TRUE" | "FALSE";
368
420
  "type": string;
@@ -388,37 +440,219 @@ export type VpnConfigurationResponse = {
388
440
  foundationId: string;
389
441
  configuration: Configuration;
390
442
  };
391
- export function listFoundations({ authorization }: {
443
+ export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, body }: {
392
444
  authorization: string;
445
+ xAccountId?: string;
446
+ foundationId: string;
447
+ vpnId: string;
448
+ body: Tag[];
393
449
  }, opts?: Oazapfts.RequestOpts) {
394
450
  return oazapfts.ok(oazapfts.fetchJson<{
395
- status: 200;
451
+ status: 202;
452
+ data: VpnResponse;
453
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/tags`, oazapfts.json({
454
+ ...opts,
455
+ method: "PUT",
456
+ body,
457
+ headers: oazapfts.mergeHeaders(opts?.headers, {
458
+ Authorization: authorization,
459
+ "x-account-id": xAccountId
460
+ })
461
+ })));
462
+ }
463
+ export function putProjectTags({ authorization, xAccountId, foundationId, projectId, body }: {
464
+ authorization: string;
465
+ xAccountId?: string;
466
+ foundationId: string;
467
+ projectId: string;
468
+ body: Tag[];
469
+ }, opts?: Oazapfts.RequestOpts) {
470
+ return oazapfts.ok(oazapfts.fetchJson<{
471
+ status: 202;
472
+ data: ProjectResponse;
473
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}/tags`, oazapfts.json({
474
+ ...opts,
475
+ method: "PUT",
476
+ body,
477
+ headers: oazapfts.mergeHeaders(opts?.headers, {
478
+ Authorization: authorization,
479
+ "x-account-id": xAccountId
480
+ })
481
+ })));
482
+ }
483
+ export function putNetworkTags({ authorization, xAccountId, foundationId, networkId, body }: {
484
+ authorization: string;
485
+ xAccountId?: string;
486
+ foundationId: string;
487
+ networkId: string;
488
+ body: Tag[];
489
+ }, opts?: Oazapfts.RequestOpts) {
490
+ return oazapfts.ok(oazapfts.fetchJson<{
491
+ status: 202;
492
+ data: NetworkResponse;
493
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}/tags`, oazapfts.json({
494
+ ...opts,
495
+ method: "PUT",
496
+ body,
497
+ headers: oazapfts.mergeHeaders(opts?.headers, {
498
+ Authorization: authorization,
499
+ "x-account-id": xAccountId
500
+ })
501
+ })));
502
+ }
503
+ export function putInboundTags({ authorization, xAccountId, foundationId, inboundId, body }: {
504
+ authorization: string;
505
+ xAccountId?: string;
506
+ foundationId: string;
507
+ inboundId: string;
508
+ body: Tag[];
509
+ }, opts?: Oazapfts.RequestOpts) {
510
+ return oazapfts.ok(oazapfts.fetchJson<{
511
+ status: 202;
512
+ data: InboundResponse;
513
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds/${encodeURIComponent(inboundId)}/tags`, oazapfts.json({
514
+ ...opts,
515
+ method: "PUT",
516
+ body,
517
+ headers: oazapfts.mergeHeaders(opts?.headers, {
518
+ Authorization: authorization,
519
+ "x-account-id": xAccountId
520
+ })
521
+ })));
522
+ }
523
+ export function getFolderTags({ authorization, xAccountId, foundationId, folderId }: {
524
+ authorization: string;
525
+ xAccountId?: string;
526
+ foundationId: string;
527
+ folderId: string;
528
+ }, opts?: Oazapfts.RequestOpts) {
529
+ return oazapfts.ok(oazapfts.fetchJson<{
530
+ status: 202;
531
+ data: Tag[];
532
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, {
533
+ ...opts,
534
+ headers: oazapfts.mergeHeaders(opts?.headers, {
535
+ Authorization: authorization,
536
+ "x-account-id": xAccountId
537
+ })
538
+ }));
539
+ }
540
+ export function putFolderTags({ authorization, xAccountId, foundationId, folderId, body }: {
541
+ authorization: string;
542
+ xAccountId?: string;
543
+ foundationId: string;
544
+ folderId: string;
545
+ body: Tag[];
546
+ }, opts?: Oazapfts.RequestOpts) {
547
+ return oazapfts.ok(oazapfts.fetchJson<{
548
+ status: 202;
549
+ data: FolderResponse;
550
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, oazapfts.json({
551
+ ...opts,
552
+ method: "PUT",
553
+ body,
554
+ headers: oazapfts.mergeHeaders(opts?.headers, {
555
+ Authorization: authorization,
556
+ "x-account-id": xAccountId
557
+ })
558
+ })));
559
+ }
560
+ export function putDnsZoneTags({ authorization, xAccountId, foundationId, dnsZoneId, body }: {
561
+ authorization: string;
562
+ xAccountId?: string;
563
+ foundationId: string;
564
+ dnsZoneId: string;
565
+ body: Tag[];
566
+ }, opts?: Oazapfts.RequestOpts) {
567
+ return oazapfts.ok(oazapfts.fetchJson<{
568
+ status: 202;
569
+ data: DnsZoneResponse;
570
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}/tags`, oazapfts.json({
571
+ ...opts,
572
+ method: "PUT",
573
+ body,
574
+ headers: oazapfts.mergeHeaders(opts?.headers, {
575
+ Authorization: authorization,
576
+ "x-account-id": xAccountId
577
+ })
578
+ })));
579
+ }
580
+ export function putCidrTags({ authorization, xAccountId, foundationId, cidrId, body }: {
581
+ authorization: string;
582
+ xAccountId?: string;
583
+ foundationId: string;
584
+ cidrId: string;
585
+ body: Tag[];
586
+ }, opts?: Oazapfts.RequestOpts) {
587
+ return oazapfts.ok(oazapfts.fetchJson<{
588
+ status: 202;
589
+ data: CidrResponse;
590
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}/tags`, oazapfts.json({
591
+ ...opts,
592
+ method: "PUT",
593
+ body,
594
+ headers: oazapfts.mergeHeaders(opts?.headers, {
595
+ Authorization: authorization,
596
+ "x-account-id": xAccountId
597
+ })
598
+ })));
599
+ }
600
+ export function putCertificateTags({ authorization, xAccountId, foundationId, certificateId, body }: {
601
+ authorization: string;
602
+ xAccountId?: string;
603
+ foundationId: string;
604
+ certificateId: string;
605
+ body: Tag[];
606
+ }, opts?: Oazapfts.RequestOpts) {
607
+ return oazapfts.ok(oazapfts.fetchJson<{
608
+ status: 202;
609
+ data: CertificateResponse;
610
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}/tags`, oazapfts.json({
611
+ ...opts,
612
+ method: "PUT",
613
+ body,
614
+ headers: oazapfts.mergeHeaders(opts?.headers, {
615
+ Authorization: authorization,
616
+ "x-account-id": xAccountId
617
+ })
618
+ })));
619
+ }
620
+ export function listFoundations({ authorization, xAccountId }: {
621
+ authorization: string;
622
+ xAccountId?: string;
623
+ }, opts?: Oazapfts.RequestOpts) {
624
+ return oazapfts.ok(oazapfts.fetchJson<{
625
+ status: 202;
396
626
  data: ListFoundationResponse;
397
627
  }>("/v1/foundations", {
398
628
  ...opts,
399
629
  headers: oazapfts.mergeHeaders(opts?.headers, {
400
- Authorization: authorization
630
+ Authorization: authorization,
631
+ "x-account-id": xAccountId
401
632
  })
402
633
  }));
403
634
  }
404
- export function createFoundation({ authorization, createFoundationRequest }: {
635
+ export function createFoundation({ authorization, xAccountId, createFoundationRequest }: {
405
636
  authorization: string;
637
+ xAccountId?: string;
406
638
  createFoundationRequest: CreateFoundationRequest;
407
639
  }, opts?: Oazapfts.RequestOpts) {
408
640
  return oazapfts.ok(oazapfts.fetchJson<{
409
- status: 200;
641
+ status: 202;
410
642
  data: FoundationResponse;
411
643
  }>("/v1/foundations", oazapfts.json({
412
644
  ...opts,
413
645
  method: "POST",
414
646
  body: createFoundationRequest,
415
647
  headers: oazapfts.mergeHeaders(opts?.headers, {
416
- Authorization: authorization
648
+ Authorization: authorization,
649
+ "x-account-id": xAccountId
417
650
  })
418
651
  })));
419
652
  }
420
- export function listVpns({ authorization, foundationId }: {
653
+ export function listVpns({ authorization, xAccountId, foundationId }: {
421
654
  authorization: string;
655
+ xAccountId?: string;
422
656
  foundationId: string;
423
657
  }, opts?: Oazapfts.RequestOpts) {
424
658
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -427,29 +661,33 @@ export function listVpns({ authorization, foundationId }: {
427
661
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns`, {
428
662
  ...opts,
429
663
  headers: oazapfts.mergeHeaders(opts?.headers, {
430
- Authorization: authorization
664
+ Authorization: authorization,
665
+ "x-account-id": xAccountId
431
666
  })
432
667
  }));
433
668
  }
434
- export function createVpn({ authorization, foundationId, createVpnRequest }: {
669
+ export function createVpn({ authorization, xAccountId, foundationId, createVpnRequest }: {
435
670
  authorization: string;
671
+ xAccountId?: string;
436
672
  foundationId: string;
437
673
  createVpnRequest: CreateVpnRequest;
438
674
  }, opts?: Oazapfts.RequestOpts) {
439
675
  return oazapfts.ok(oazapfts.fetchJson<{
440
- status: 200;
676
+ status: 202;
441
677
  data: VpnResponse;
442
678
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns`, oazapfts.json({
443
679
  ...opts,
444
680
  method: "POST",
445
681
  body: createVpnRequest,
446
682
  headers: oazapfts.mergeHeaders(opts?.headers, {
447
- Authorization: authorization
683
+ Authorization: authorization,
684
+ "x-account-id": xAccountId
448
685
  })
449
686
  })));
450
687
  }
451
- export function listTenant({ authorization, foundationId }: {
688
+ export function listTenant({ authorization, xAccountId, foundationId }: {
452
689
  authorization: string;
690
+ xAccountId?: string;
453
691
  foundationId: string;
454
692
  }, opts?: Oazapfts.RequestOpts) {
455
693
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -458,12 +696,14 @@ export function listTenant({ authorization, foundationId }: {
458
696
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/tenants`, {
459
697
  ...opts,
460
698
  headers: oazapfts.mergeHeaders(opts?.headers, {
461
- Authorization: authorization
699
+ Authorization: authorization,
700
+ "x-account-id": xAccountId
462
701
  })
463
702
  }));
464
703
  }
465
- export function createTenant({ authorization, foundationId, createTenantRequest }: {
704
+ export function createTenant({ authorization, xAccountId, foundationId, createTenantRequest }: {
466
705
  authorization: string;
706
+ xAccountId?: string;
467
707
  foundationId: string;
468
708
  createTenantRequest: CreateTenantRequest;
469
709
  }, opts?: Oazapfts.RequestOpts) {
@@ -475,12 +715,54 @@ export function createTenant({ authorization, foundationId, createTenantRequest
475
715
  method: "POST",
476
716
  body: createTenantRequest,
477
717
  headers: oazapfts.mergeHeaders(opts?.headers, {
478
- Authorization: authorization
718
+ Authorization: authorization,
719
+ "x-account-id": xAccountId
720
+ })
721
+ })));
722
+ }
723
+ export function listRuntime({ authorization, xAccountId, foundationId, tenantId, projectId }: {
724
+ authorization: string;
725
+ xAccountId?: string;
726
+ foundationId: string;
727
+ tenantId?: string;
728
+ projectId?: string;
729
+ }, opts?: Oazapfts.RequestOpts) {
730
+ return oazapfts.ok(oazapfts.fetchJson<{
731
+ status: 200;
732
+ data: ListRuntimeResponse;
733
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes${QS.query(QS.explode({
734
+ tenantId,
735
+ projectId
736
+ }))}`, {
737
+ ...opts,
738
+ headers: oazapfts.mergeHeaders(opts?.headers, {
739
+ Authorization: authorization,
740
+ "x-account-id": xAccountId
741
+ })
742
+ }));
743
+ }
744
+ export function createRuntime({ authorization, xAccountId, foundationId, createRuntimeRequest }: {
745
+ authorization: string;
746
+ xAccountId?: string;
747
+ foundationId: string;
748
+ createRuntimeRequest: CreateRuntimeRequest;
749
+ }, opts?: Oazapfts.RequestOpts) {
750
+ return oazapfts.ok(oazapfts.fetchJson<{
751
+ status: 202;
752
+ data: RuntimeResponse;
753
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes`, oazapfts.json({
754
+ ...opts,
755
+ method: "POST",
756
+ body: createRuntimeRequest,
757
+ headers: oazapfts.mergeHeaders(opts?.headers, {
758
+ Authorization: authorization,
759
+ "x-account-id": xAccountId
479
760
  })
480
761
  })));
481
762
  }
482
- export function listProject({ authorization, foundationId, parentFolderId }: {
763
+ export function listProject({ authorization, xAccountId, foundationId, parentFolderId }: {
483
764
  authorization: string;
765
+ xAccountId?: string;
484
766
  foundationId: string;
485
767
  parentFolderId?: string;
486
768
  }, opts?: Oazapfts.RequestOpts) {
@@ -492,63 +774,71 @@ export function listProject({ authorization, foundationId, parentFolderId }: {
492
774
  }))}`, {
493
775
  ...opts,
494
776
  headers: oazapfts.mergeHeaders(opts?.headers, {
495
- Authorization: authorization
777
+ Authorization: authorization,
778
+ "x-account-id": xAccountId
496
779
  })
497
780
  }));
498
781
  }
499
- export function createProject({ authorization, foundationId, createProjectRequest }: {
782
+ export function createProject({ authorization, xAccountId, foundationId, createProjectRequest }: {
500
783
  authorization: string;
784
+ xAccountId?: string;
501
785
  foundationId: string;
502
786
  createProjectRequest: CreateProjectRequest;
503
787
  }, opts?: Oazapfts.RequestOpts) {
504
788
  return oazapfts.ok(oazapfts.fetchJson<{
505
- status: 200;
789
+ status: 202;
506
790
  data: ProjectResponse;
507
791
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
508
792
  ...opts,
509
793
  method: "POST",
510
794
  body: createProjectRequest,
511
795
  headers: oazapfts.mergeHeaders(opts?.headers, {
512
- Authorization: authorization
796
+ Authorization: authorization,
797
+ "x-account-id": xAccountId
513
798
  })
514
799
  })));
515
800
  }
516
- export function listNetwork({ authorization, foundationId, projectId }: {
801
+ export function listNetwork({ authorization, xAccountId, foundationId, projectId }: {
517
802
  authorization: string;
803
+ xAccountId?: string;
518
804
  foundationId: string;
519
805
  projectId?: string;
520
806
  }, opts?: Oazapfts.RequestOpts) {
521
807
  return oazapfts.ok(oazapfts.fetchJson<{
522
- status: 200;
808
+ status: 202;
523
809
  data: ListNetworkResponse;
524
810
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
525
811
  projectId
526
812
  }))}`, {
527
813
  ...opts,
528
814
  headers: oazapfts.mergeHeaders(opts?.headers, {
529
- Authorization: authorization
815
+ Authorization: authorization,
816
+ "x-account-id": xAccountId
530
817
  })
531
818
  }));
532
819
  }
533
- export function createNetwork({ authorization, foundationId, createNetworkRequest }: {
820
+ export function createNetwork({ authorization, xAccountId, foundationId, createNetworkRequest }: {
534
821
  authorization: string;
822
+ xAccountId?: string;
535
823
  foundationId: string;
536
824
  createNetworkRequest: CreateNetworkRequest;
537
825
  }, opts?: Oazapfts.RequestOpts) {
538
826
  return oazapfts.ok(oazapfts.fetchJson<{
539
- status: 200;
827
+ status: 202;
540
828
  data: NetworkResponse;
541
829
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks`, oazapfts.json({
542
830
  ...opts,
543
831
  method: "POST",
544
832
  body: createNetworkRequest,
545
833
  headers: oazapfts.mergeHeaders(opts?.headers, {
546
- Authorization: authorization
834
+ Authorization: authorization,
835
+ "x-account-id": xAccountId
547
836
  })
548
837
  })));
549
838
  }
550
- export function listNetworkConnection({ authorization, foundationId, accepterNetworkId, accepterProjectId, requesterNetworkId, requesterProjectId }: {
839
+ export function listNetworkConnection({ authorization, xAccountId, foundationId, accepterNetworkId, accepterProjectId, requesterNetworkId, requesterProjectId }: {
551
840
  authorization: string;
841
+ xAccountId?: string;
552
842
  foundationId: string;
553
843
  accepterNetworkId?: string;
554
844
  accepterProjectId?: string;
@@ -566,29 +856,51 @@ export function listNetworkConnection({ authorization, foundationId, accepterNet
566
856
  }))}`, {
567
857
  ...opts,
568
858
  headers: oazapfts.mergeHeaders(opts?.headers, {
569
- Authorization: authorization
859
+ Authorization: authorization,
860
+ "x-account-id": xAccountId
570
861
  })
571
862
  }));
572
863
  }
573
- export function createNetworkConnection({ authorization, foundationId, createNetworkConnectionRequest }: {
864
+ export function createNetworkConnection({ authorization, xAccountId, foundationId, createNetworkConnectionRequest }: {
574
865
  authorization: string;
866
+ xAccountId?: string;
575
867
  foundationId: string;
576
868
  createNetworkConnectionRequest: CreateNetworkConnectionRequest;
577
869
  }, opts?: Oazapfts.RequestOpts) {
578
870
  return oazapfts.ok(oazapfts.fetchJson<{
579
- status: 200;
871
+ status: 202;
580
872
  data: NetworkConnectionResponse;
581
873
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections`, oazapfts.json({
582
874
  ...opts,
583
875
  method: "POST",
584
876
  body: createNetworkConnectionRequest,
585
877
  headers: oazapfts.mergeHeaders(opts?.headers, {
586
- Authorization: authorization
878
+ Authorization: authorization,
879
+ "x-account-id": xAccountId
587
880
  })
588
881
  })));
589
882
  }
590
- export function listInbound({ authorization, foundationId }: {
883
+ export function acceptNetworkConnection({ authorization, xAccountId, foundationId, networkConnectionId }: {
884
+ authorization: string;
885
+ xAccountId?: string;
886
+ foundationId: string;
887
+ networkConnectionId: string;
888
+ }, opts?: Oazapfts.RequestOpts) {
889
+ return oazapfts.ok(oazapfts.fetchJson<{
890
+ status: 200;
891
+ data: NetworkConnectionResponse;
892
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}/accept`, {
893
+ ...opts,
894
+ method: "POST",
895
+ headers: oazapfts.mergeHeaders(opts?.headers, {
896
+ Authorization: authorization,
897
+ "x-account-id": xAccountId
898
+ })
899
+ }));
900
+ }
901
+ export function listInbound({ authorization, xAccountId, foundationId }: {
591
902
  authorization: string;
903
+ xAccountId?: string;
592
904
  foundationId: string;
593
905
  }, opts?: Oazapfts.RequestOpts) {
594
906
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -597,29 +909,33 @@ export function listInbound({ authorization, foundationId }: {
597
909
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, {
598
910
  ...opts,
599
911
  headers: oazapfts.mergeHeaders(opts?.headers, {
600
- Authorization: authorization
912
+ Authorization: authorization,
913
+ "x-account-id": xAccountId
601
914
  })
602
915
  }));
603
916
  }
604
- export function createInbound({ authorization, foundationId, createInboundRequest }: {
917
+ export function createInbound({ authorization, xAccountId, foundationId, createInboundRequest }: {
605
918
  authorization: string;
919
+ xAccountId?: string;
606
920
  foundationId: string;
607
921
  createInboundRequest: CreateInboundRequest;
608
922
  }, opts?: Oazapfts.RequestOpts) {
609
923
  return oazapfts.ok(oazapfts.fetchJson<{
610
- status: 200;
924
+ status: 202;
611
925
  data: InboundResponse;
612
926
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, oazapfts.json({
613
927
  ...opts,
614
928
  method: "POST",
615
929
  body: createInboundRequest,
616
930
  headers: oazapfts.mergeHeaders(opts?.headers, {
617
- Authorization: authorization
931
+ Authorization: authorization,
932
+ "x-account-id": xAccountId
618
933
  })
619
934
  })));
620
935
  }
621
- export function getFolder({ authorization, foundationId, folderId }: {
936
+ export function getFolder({ authorization, xAccountId, foundationId, folderId }: {
622
937
  authorization: string;
938
+ xAccountId?: string;
623
939
  foundationId: string;
624
940
  folderId: string;
625
941
  }, opts?: Oazapfts.RequestOpts) {
@@ -631,32 +947,36 @@ export function getFolder({ authorization, foundationId, folderId }: {
631
947
  }))}`, {
632
948
  ...opts,
633
949
  headers: oazapfts.mergeHeaders(opts?.headers, {
634
- Authorization: authorization
950
+ Authorization: authorization,
951
+ "x-account-id": xAccountId
635
952
  })
636
953
  }));
637
954
  }
638
- export function createFolder({ authorization, foundationId, createFolderRequest }: {
955
+ export function createFolder({ authorization, xAccountId, foundationId, createFolderRequest }: {
639
956
  authorization: string;
957
+ xAccountId?: string;
640
958
  foundationId: string;
641
959
  createFolderRequest: CreateFolderRequest;
642
960
  }, opts?: Oazapfts.RequestOpts) {
643
961
  return oazapfts.ok(oazapfts.fetchJson<{
644
- status: 200;
962
+ status: 202;
645
963
  data: FolderResponse;
646
964
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/folders`, oazapfts.json({
647
965
  ...opts,
648
966
  method: "POST",
649
967
  body: createFolderRequest,
650
968
  headers: oazapfts.mergeHeaders(opts?.headers, {
651
- Authorization: authorization
969
+ Authorization: authorization,
970
+ "x-account-id": xAccountId
652
971
  })
653
972
  })));
654
973
  }
655
- export function listDnsZone({ authorization, foundationId, projectId, privacy }: {
974
+ export function listDnsZone({ authorization, xAccountId, foundationId, projectId, privacy }: {
656
975
  authorization: string;
976
+ xAccountId?: string;
657
977
  foundationId: string;
658
978
  projectId?: string;
659
- privacy?: string;
979
+ privacy?: "PUBLIC" | "PRIVATE";
660
980
  }, opts?: Oazapfts.RequestOpts) {
661
981
  return oazapfts.ok(oazapfts.fetchJson<{
662
982
  status: 200;
@@ -667,29 +987,33 @@ export function listDnsZone({ authorization, foundationId, projectId, privacy }:
667
987
  }))}`, {
668
988
  ...opts,
669
989
  headers: oazapfts.mergeHeaders(opts?.headers, {
670
- Authorization: authorization
990
+ Authorization: authorization,
991
+ "x-account-id": xAccountId
671
992
  })
672
993
  }));
673
994
  }
674
- export function createDnsZone({ authorization, foundationId, createDnsZoneRequest }: {
995
+ export function createDnsZone({ authorization, xAccountId, foundationId, createDnsZoneRequest }: {
675
996
  authorization: string;
997
+ xAccountId?: string;
676
998
  foundationId: string;
677
999
  createDnsZoneRequest: CreateDnsZoneRequest;
678
1000
  }, opts?: Oazapfts.RequestOpts) {
679
1001
  return oazapfts.ok(oazapfts.fetchJson<{
680
- status: 200;
1002
+ status: 202;
681
1003
  data: DnsZoneResponse;
682
1004
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones`, oazapfts.json({
683
1005
  ...opts,
684
1006
  method: "POST",
685
1007
  body: createDnsZoneRequest,
686
1008
  headers: oazapfts.mergeHeaders(opts?.headers, {
687
- Authorization: authorization
1009
+ Authorization: authorization,
1010
+ "x-account-id": xAccountId
688
1011
  })
689
1012
  })));
690
1013
  }
691
- export function listDnsRecord({ authorization, foundationId, projectId, dnsZoneId }: {
1014
+ export function listDnsRecord({ authorization, xAccountId, foundationId, projectId, dnsZoneId }: {
692
1015
  authorization: string;
1016
+ xAccountId?: string;
693
1017
  foundationId: string;
694
1018
  projectId?: string;
695
1019
  dnsZoneId?: string;
@@ -703,29 +1027,33 @@ export function listDnsRecord({ authorization, foundationId, projectId, dnsZoneI
703
1027
  }))}`, {
704
1028
  ...opts,
705
1029
  headers: oazapfts.mergeHeaders(opts?.headers, {
706
- Authorization: authorization
1030
+ Authorization: authorization,
1031
+ "x-account-id": xAccountId
707
1032
  })
708
1033
  }));
709
1034
  }
710
- export function createDnsRecord({ authorization, foundationId, createDnsRecordRequest }: {
1035
+ export function createDnsRecord({ authorization, xAccountId, foundationId, createDnsRecordRequest }: {
711
1036
  authorization: string;
1037
+ xAccountId?: string;
712
1038
  foundationId: string;
713
1039
  createDnsRecordRequest: CreateDnsRecordRequest;
714
1040
  }, opts?: Oazapfts.RequestOpts) {
715
1041
  return oazapfts.ok(oazapfts.fetchJson<{
716
- status: 200;
1042
+ status: 202;
717
1043
  data: DnsRecordResponse;
718
1044
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records`, oazapfts.json({
719
1045
  ...opts,
720
1046
  method: "POST",
721
1047
  body: createDnsRecordRequest,
722
1048
  headers: oazapfts.mergeHeaders(opts?.headers, {
723
- Authorization: authorization
1049
+ Authorization: authorization,
1050
+ "x-account-id": xAccountId
724
1051
  })
725
1052
  })));
726
1053
  }
727
- export function listCidr({ authorization, foundationId }: {
1054
+ export function listCidr({ authorization, xAccountId, foundationId }: {
728
1055
  authorization: string;
1056
+ xAccountId?: string;
729
1057
  foundationId: string;
730
1058
  }, opts?: Oazapfts.RequestOpts) {
731
1059
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -734,29 +1062,33 @@ export function listCidr({ authorization, foundationId }: {
734
1062
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs`, {
735
1063
  ...opts,
736
1064
  headers: oazapfts.mergeHeaders(opts?.headers, {
737
- Authorization: authorization
1065
+ Authorization: authorization,
1066
+ "x-account-id": xAccountId
738
1067
  })
739
1068
  }));
740
1069
  }
741
- export function createCidr({ authorization, foundationId, createCidrRequest }: {
1070
+ export function createCidr({ authorization, xAccountId, foundationId, createCidrRequest }: {
742
1071
  authorization: string;
1072
+ xAccountId?: string;
743
1073
  foundationId: string;
744
1074
  createCidrRequest: CreateCidrRequest;
745
1075
  }, opts?: Oazapfts.RequestOpts) {
746
1076
  return oazapfts.ok(oazapfts.fetchJson<{
747
- status: 200;
1077
+ status: 202;
748
1078
  data: CidrResponse;
749
1079
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs`, oazapfts.json({
750
1080
  ...opts,
751
1081
  method: "POST",
752
1082
  body: createCidrRequest,
753
1083
  headers: oazapfts.mergeHeaders(opts?.headers, {
754
- Authorization: authorization
1084
+ Authorization: authorization,
1085
+ "x-account-id": xAccountId
755
1086
  })
756
1087
  })));
757
1088
  }
758
- export function listCertificates({ authorization, foundationId, forInbound }: {
1089
+ export function listCertificates({ authorization, xAccountId, foundationId, forInbound }: {
759
1090
  authorization: string;
1091
+ xAccountId?: string;
760
1092
  foundationId: string;
761
1093
  forInbound?: "TRUE" | "FALSE";
762
1094
  }, opts?: Oazapfts.RequestOpts) {
@@ -768,59 +1100,49 @@ export function listCertificates({ authorization, foundationId, forInbound }: {
768
1100
  }))}`, {
769
1101
  ...opts,
770
1102
  headers: oazapfts.mergeHeaders(opts?.headers, {
771
- Authorization: authorization
1103
+ Authorization: authorization,
1104
+ "x-account-id": xAccountId
772
1105
  })
773
1106
  }));
774
1107
  }
775
- export function createCertificate({ authorization, foundationId, body }: {
1108
+ export function createCertificate({ authorization, xAccountId, foundationId, body }: {
776
1109
  authorization: string;
1110
+ xAccountId?: string;
777
1111
  foundationId: string;
778
1112
  body: CreatePublicCertificateRequest | ImportCertificateRequest;
779
1113
  }, opts?: Oazapfts.RequestOpts) {
780
1114
  return oazapfts.ok(oazapfts.fetchJson<{
781
- status: 200;
1115
+ status: 202;
782
1116
  data: CertificateResponse;
783
1117
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates`, oazapfts.json({
784
1118
  ...opts,
785
1119
  method: "POST",
786
1120
  body,
787
1121
  headers: oazapfts.mergeHeaders(opts?.headers, {
788
- Authorization: authorization
1122
+ Authorization: authorization,
1123
+ "x-account-id": xAccountId
789
1124
  })
790
1125
  })));
791
1126
  }
792
- export function acceptNetworkConnection({ authorization, foundationId, networkConnectionId }: {
793
- authorization: string;
794
- foundationId: string;
795
- networkConnectionId: string;
796
- }, opts?: Oazapfts.RequestOpts) {
797
- return oazapfts.ok(oazapfts.fetchJson<{
798
- status: 200;
799
- data: NetworkConnectionResponse;
800
- }>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}/accept`, {
801
- ...opts,
802
- method: "PATCH",
803
- headers: oazapfts.mergeHeaders(opts?.headers, {
804
- Authorization: authorization
805
- })
806
- }));
807
- }
808
- export function getFoundation({ authorization, foundationId }: {
1127
+ export function getFoundation({ authorization, xAccountId, foundationId }: {
809
1128
  authorization: string;
1129
+ xAccountId?: string;
810
1130
  foundationId: string;
811
1131
  }, opts?: Oazapfts.RequestOpts) {
812
1132
  return oazapfts.ok(oazapfts.fetchJson<{
813
- status: 200;
1133
+ status: 202;
814
1134
  data: FoundationResponse;
815
1135
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}`, {
816
1136
  ...opts,
817
1137
  headers: oazapfts.mergeHeaders(opts?.headers, {
818
- Authorization: authorization
1138
+ Authorization: authorization,
1139
+ "x-account-id": xAccountId
819
1140
  })
820
1141
  }));
821
1142
  }
822
- export function getVpn({ authorization, foundationId, vpnId }: {
1143
+ export function getVpn({ authorization, xAccountId, foundationId, vpnId }: {
823
1144
  authorization: string;
1145
+ xAccountId?: string;
824
1146
  foundationId: string;
825
1147
  vpnId: string;
826
1148
  }, opts?: Oazapfts.RequestOpts) {
@@ -830,12 +1152,14 @@ export function getVpn({ authorization, foundationId, vpnId }: {
830
1152
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
831
1153
  ...opts,
832
1154
  headers: oazapfts.mergeHeaders(opts?.headers, {
833
- Authorization: authorization
1155
+ Authorization: authorization,
1156
+ "x-account-id": xAccountId
834
1157
  })
835
1158
  }));
836
1159
  }
837
- export function getVpnConfiguration({ authorization, foundationId, vpnId }: {
1160
+ export function getVpnConfiguration({ authorization, xAccountId, foundationId, vpnId }: {
838
1161
  authorization: string;
1162
+ xAccountId?: string;
839
1163
  foundationId: string;
840
1164
  vpnId: string;
841
1165
  }, opts?: Oazapfts.RequestOpts) {
@@ -845,12 +1169,14 @@ export function getVpnConfiguration({ authorization, foundationId, vpnId }: {
845
1169
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/configuration`, {
846
1170
  ...opts,
847
1171
  headers: oazapfts.mergeHeaders(opts?.headers, {
848
- Authorization: authorization
1172
+ Authorization: authorization,
1173
+ "x-account-id": xAccountId
849
1174
  })
850
1175
  }));
851
1176
  }
852
- export function getProject({ authorization, foundationId, tenantId }: {
1177
+ export function getTenant({ authorization, xAccountId, foundationId, tenantId }: {
853
1178
  authorization: string;
1179
+ xAccountId?: string;
854
1180
  foundationId: string;
855
1181
  tenantId: string;
856
1182
  }, opts?: Oazapfts.RequestOpts) {
@@ -860,12 +1186,31 @@ export function getProject({ authorization, foundationId, tenantId }: {
860
1186
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/tenants/${encodeURIComponent(tenantId)}`, {
861
1187
  ...opts,
862
1188
  headers: oazapfts.mergeHeaders(opts?.headers, {
863
- Authorization: authorization
1189
+ Authorization: authorization,
1190
+ "x-account-id": xAccountId
1191
+ })
1192
+ }));
1193
+ }
1194
+ export function getRuntime({ authorization, xAccountId, foundationId, runtimeId }: {
1195
+ authorization: string;
1196
+ xAccountId?: string;
1197
+ foundationId: string;
1198
+ runtimeId: string;
1199
+ }, opts?: Oazapfts.RequestOpts) {
1200
+ return oazapfts.ok(oazapfts.fetchJson<{
1201
+ status: 200;
1202
+ data: RuntimeResponse;
1203
+ }>(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes/${encodeURIComponent(runtimeId)}`, {
1204
+ ...opts,
1205
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1206
+ Authorization: authorization,
1207
+ "x-account-id": xAccountId
864
1208
  })
865
1209
  }));
866
1210
  }
867
- export function getProject1({ authorization, foundationId, projectId }: {
1211
+ export function getProject({ authorization, xAccountId, foundationId, projectId }: {
868
1212
  authorization: string;
1213
+ xAccountId?: string;
869
1214
  foundationId: string;
870
1215
  projectId: string;
871
1216
  }, opts?: Oazapfts.RequestOpts) {
@@ -875,27 +1220,31 @@ export function getProject1({ authorization, foundationId, projectId }: {
875
1220
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
876
1221
  ...opts,
877
1222
  headers: oazapfts.mergeHeaders(opts?.headers, {
878
- Authorization: authorization
1223
+ Authorization: authorization,
1224
+ "x-account-id": xAccountId
879
1225
  })
880
1226
  }));
881
1227
  }
882
- export function getNetwork({ authorization, foundationId, networkId }: {
1228
+ export function getNetwork({ authorization, xAccountId, foundationId, networkId }: {
883
1229
  authorization: string;
1230
+ xAccountId?: string;
884
1231
  foundationId: string;
885
1232
  networkId: string;
886
1233
  }, opts?: Oazapfts.RequestOpts) {
887
1234
  return oazapfts.ok(oazapfts.fetchJson<{
888
- status: 200;
1235
+ status: 202;
889
1236
  data: NetworkResponse;
890
1237
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
891
1238
  ...opts,
892
1239
  headers: oazapfts.mergeHeaders(opts?.headers, {
893
- Authorization: authorization
1240
+ Authorization: authorization,
1241
+ "x-account-id": xAccountId
894
1242
  })
895
1243
  }));
896
1244
  }
897
- export function getNetworkConnection({ authorization, foundationId, networkConnectionId }: {
1245
+ export function getNetworkConnection({ authorization, xAccountId, foundationId, networkConnectionId }: {
898
1246
  authorization: string;
1247
+ xAccountId?: string;
899
1248
  foundationId: string;
900
1249
  networkConnectionId: string;
901
1250
  }, opts?: Oazapfts.RequestOpts) {
@@ -905,12 +1254,14 @@ export function getNetworkConnection({ authorization, foundationId, networkConne
905
1254
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}`, {
906
1255
  ...opts,
907
1256
  headers: oazapfts.mergeHeaders(opts?.headers, {
908
- Authorization: authorization
1257
+ Authorization: authorization,
1258
+ "x-account-id": xAccountId
909
1259
  })
910
1260
  }));
911
1261
  }
912
- export function getInbound({ authorization, foundationId, inboundId }: {
1262
+ export function getInbound({ authorization, xAccountId, foundationId, inboundId }: {
913
1263
  authorization: string;
1264
+ xAccountId?: string;
914
1265
  foundationId: string;
915
1266
  inboundId: string;
916
1267
  }, opts?: Oazapfts.RequestOpts) {
@@ -920,12 +1271,14 @@ export function getInbound({ authorization, foundationId, inboundId }: {
920
1271
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds/${encodeURIComponent(inboundId)}`, {
921
1272
  ...opts,
922
1273
  headers: oazapfts.mergeHeaders(opts?.headers, {
923
- Authorization: authorization
1274
+ Authorization: authorization,
1275
+ "x-account-id": xAccountId
924
1276
  })
925
1277
  }));
926
1278
  }
927
- export function getDnsZone({ authorization, foundationId, dnsZoneId }: {
1279
+ export function getDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }: {
928
1280
  authorization: string;
1281
+ xAccountId?: string;
929
1282
  foundationId: string;
930
1283
  dnsZoneId: string;
931
1284
  }, opts?: Oazapfts.RequestOpts) {
@@ -935,12 +1288,14 @@ export function getDnsZone({ authorization, foundationId, dnsZoneId }: {
935
1288
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
936
1289
  ...opts,
937
1290
  headers: oazapfts.mergeHeaders(opts?.headers, {
938
- Authorization: authorization
1291
+ Authorization: authorization,
1292
+ "x-account-id": xAccountId
939
1293
  })
940
1294
  }));
941
1295
  }
942
- export function getDnsZone1({ authorization, foundationId, dnsRecordId }: {
1296
+ export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }: {
943
1297
  authorization: string;
1298
+ xAccountId?: string;
944
1299
  foundationId: string;
945
1300
  dnsRecordId: string;
946
1301
  }, opts?: Oazapfts.RequestOpts) {
@@ -950,12 +1305,14 @@ export function getDnsZone1({ authorization, foundationId, dnsRecordId }: {
950
1305
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
951
1306
  ...opts,
952
1307
  headers: oazapfts.mergeHeaders(opts?.headers, {
953
- Authorization: authorization
1308
+ Authorization: authorization,
1309
+ "x-account-id": xAccountId
954
1310
  })
955
1311
  }));
956
1312
  }
957
- export function getCidr({ authorization, foundationId, cidrId }: {
1313
+ export function getCidr({ authorization, xAccountId, foundationId, cidrId }: {
958
1314
  authorization: string;
1315
+ xAccountId?: string;
959
1316
  foundationId: string;
960
1317
  cidrId: string;
961
1318
  }, opts?: Oazapfts.RequestOpts) {
@@ -965,12 +1322,14 @@ export function getCidr({ authorization, foundationId, cidrId }: {
965
1322
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
966
1323
  ...opts,
967
1324
  headers: oazapfts.mergeHeaders(opts?.headers, {
968
- Authorization: authorization
1325
+ Authorization: authorization,
1326
+ "x-account-id": xAccountId
969
1327
  })
970
1328
  }));
971
1329
  }
972
- export function getCertificate({ authorization, foundationId, certificateId }: {
1330
+ export function getCertificate({ authorization, xAccountId, foundationId, certificateId }: {
973
1331
  authorization: string;
1332
+ xAccountId?: string;
974
1333
  foundationId: string;
975
1334
  certificateId: string;
976
1335
  }, opts?: Oazapfts.RequestOpts) {
@@ -980,10 +1339,25 @@ export function getCertificate({ authorization, foundationId, certificateId }: {
980
1339
  }>(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
981
1340
  ...opts,
982
1341
  headers: oazapfts.mergeHeaders(opts?.headers, {
983
- Authorization: authorization
1342
+ Authorization: authorization,
1343
+ "x-account-id": xAccountId
984
1344
  })
985
1345
  }));
986
1346
  }
1347
+ export function getProvisionAvailability({ cloudProvider }: {
1348
+ cloudProvider: string;
1349
+ }, opts?: Oazapfts.RequestOpts) {
1350
+ return oazapfts.ok(oazapfts.fetchJson<{
1351
+ status: 200;
1352
+ data: {
1353
+ [key: string]: boolean;
1354
+ };
1355
+ }>(`/v1/foundations/provision-avaliability${QS.query(QS.explode({
1356
+ cloudProvider
1357
+ }))}`, {
1358
+ ...opts
1359
+ }));
1360
+ }
987
1361
  export function providers(opts?: Oazapfts.RequestOpts) {
988
1362
  return oazapfts.ok(oazapfts.fetchJson<{
989
1363
  status: 200;