@stack-spot/portal-network 1.0.0-dev.1770385994291 → 1.0.0-dev.1770819406507
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/api/ai.d.ts +60 -4
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +25 -2
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +137 -100
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +95 -53
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/client/agent-tools.d.ts +3 -14
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +7 -25
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.js +1 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +102 -34
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +127 -37
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/types.d.ts +3 -3
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +88 -5
- package/src/api/cloudPlatform.ts +256 -165
- package/src/client/agent-tools.ts +8 -23
- package/src/client/ai.ts +1 -1
- package/src/client/cloud-platform.ts +70 -20
- package/src/client/types.ts +3 -3
package/src/api/ai.ts
CHANGED
|
@@ -368,6 +368,7 @@ export type QuickCommandListResponse = {
|
|
|
368
368
|
export type Method = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
369
369
|
export type QuickCommandsStepFetchRequest = {
|
|
370
370
|
slug: string;
|
|
371
|
+
"type"?: "FETCH";
|
|
371
372
|
url: string;
|
|
372
373
|
method: Method;
|
|
373
374
|
headers?: {
|
|
@@ -378,6 +379,7 @@ export type QuickCommandsStepFetchRequest = {
|
|
|
378
379
|
};
|
|
379
380
|
export type QuickCommandsStepPromptRequest = {
|
|
380
381
|
slug: string;
|
|
382
|
+
"type"?: "LLM";
|
|
381
383
|
prompt: string;
|
|
382
384
|
use_stack?: boolean;
|
|
383
385
|
use_project_files?: boolean;
|
|
@@ -390,6 +392,16 @@ export type QuickCommandsStepPromptRequest = {
|
|
|
390
392
|
next_step_slug?: string | null;
|
|
391
393
|
next_failure_step_slug?: string | null;
|
|
392
394
|
};
|
|
395
|
+
export type QuickCommandsStepParallelEndRequest = {
|
|
396
|
+
slug: string;
|
|
397
|
+
"type"?: "PARALLEL_END";
|
|
398
|
+
next_step_slug: string;
|
|
399
|
+
};
|
|
400
|
+
export type QuickCommandsStepParallelStartRequest = {
|
|
401
|
+
slug: string;
|
|
402
|
+
"type"?: "PARALLEL_START";
|
|
403
|
+
next_steps_slugs: string[];
|
|
404
|
+
};
|
|
393
405
|
export type OperatorType = "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "greater" | "smaller" | "greaterEqual" | "smallerEqual" | "isEmpty" | "isNotEmpty" | "isDefined" | "isUndefined";
|
|
394
406
|
export type SimpleExpr = {
|
|
395
407
|
left?: any | null;
|
|
@@ -414,11 +426,13 @@ export type RouterStepRoute = {
|
|
|
414
426
|
};
|
|
415
427
|
export type QuickCommandsStepRouterRequest = {
|
|
416
428
|
slug: string;
|
|
429
|
+
"type"?: "ROUTER";
|
|
417
430
|
routes: RouterStepRoute[];
|
|
418
431
|
max_executions: number;
|
|
419
432
|
};
|
|
420
433
|
export type QuickCommandsStepScriptRequest = {
|
|
421
434
|
slug: string;
|
|
435
|
+
"type"?: "SCRIPT";
|
|
422
436
|
script: string;
|
|
423
437
|
use_uploaded_files: boolean;
|
|
424
438
|
next_step_slug?: string | null;
|
|
@@ -434,7 +448,19 @@ export type QuickCommandsCreateRequest = {
|
|
|
434
448
|
"type"?: QuickCommandTypeRequest;
|
|
435
449
|
description: string;
|
|
436
450
|
final_result: string;
|
|
437
|
-
steps: (
|
|
451
|
+
steps: (({
|
|
452
|
+
"type": "FETCH";
|
|
453
|
+
} & QuickCommandsStepFetchRequest) | ({
|
|
454
|
+
"type": "LLM";
|
|
455
|
+
} & QuickCommandsStepPromptRequest) | ({
|
|
456
|
+
"type": "PARALLEL_END";
|
|
457
|
+
} & QuickCommandsStepParallelEndRequest) | ({
|
|
458
|
+
"type": "PARALLEL_START";
|
|
459
|
+
} & QuickCommandsStepParallelStartRequest) | ({
|
|
460
|
+
"type": "ROUTER";
|
|
461
|
+
} & QuickCommandsStepRouterRequest) | ({
|
|
462
|
+
"type": "SCRIPT";
|
|
463
|
+
} & QuickCommandsStepScriptRequest))[];
|
|
438
464
|
return_type?: QuickCommandsReturnType | null;
|
|
439
465
|
preserve_conversation?: boolean;
|
|
440
466
|
custom_inputs?: CustomInputRequest[] | null;
|
|
@@ -443,6 +469,20 @@ export type QuickCommandsCreateRequest = {
|
|
|
443
469
|
} | null;
|
|
444
470
|
share_context_between_steps?: boolean | null;
|
|
445
471
|
};
|
|
472
|
+
export type QuickCommandAccountListResponseV1 = {
|
|
473
|
+
name: string;
|
|
474
|
+
username: string;
|
|
475
|
+
"type": QuickCommandTypeRequest;
|
|
476
|
+
creator: string | null;
|
|
477
|
+
created_at?: string | null;
|
|
478
|
+
visibility_level: string;
|
|
479
|
+
id: string;
|
|
480
|
+
slug: string;
|
|
481
|
+
};
|
|
482
|
+
export type PaginatedResponseQuickCommandAccountListResponseV1 = {
|
|
483
|
+
total_pages: number;
|
|
484
|
+
items: QuickCommandAccountListResponseV1[];
|
|
485
|
+
};
|
|
446
486
|
export type QuickCommandsUpdateRequest = {
|
|
447
487
|
name?: string | null;
|
|
448
488
|
description?: string | null;
|
|
@@ -459,7 +499,7 @@ export type QuickCommandsUpdateRequest = {
|
|
|
459
499
|
use_only?: boolean | null;
|
|
460
500
|
use_uploaded_files?: boolean | null;
|
|
461
501
|
};
|
|
462
|
-
export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER" | "SCRIPT";
|
|
502
|
+
export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER" | "SCRIPT" | "PARALLEL_START" | "PARALLEL_END";
|
|
463
503
|
export type Method2 = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
464
504
|
export type QuickCommandStepFetchResponse = {
|
|
465
505
|
slug: string;
|
|
@@ -600,7 +640,7 @@ export type QuickCommandFetchResponseResult = {
|
|
|
600
640
|
[key: string]: string;
|
|
601
641
|
} | null;
|
|
602
642
|
data?: string | null;
|
|
603
|
-
|
|
643
|
+
status_code?: number | null;
|
|
604
644
|
};
|
|
605
645
|
export type QuickCommandStepScriptStatus = "queued" | "running" | "success" | "failure";
|
|
606
646
|
export type QuickCommandScriptExecutionResponse = {
|
|
@@ -2643,6 +2683,46 @@ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authori
|
|
|
2643
2683
|
})
|
|
2644
2684
|
}));
|
|
2645
2685
|
}
|
|
2686
|
+
/**
|
|
2687
|
+
* List All
|
|
2688
|
+
*/
|
|
2689
|
+
export function listAllV1QuickCommandsAccountGet({ name, size, page, username, order, types, authorization, xAccountId, xMemberId, xUsername }: {
|
|
2690
|
+
name?: string | null;
|
|
2691
|
+
size?: number;
|
|
2692
|
+
page?: number;
|
|
2693
|
+
username?: string | null;
|
|
2694
|
+
order?: OrderEnum | null;
|
|
2695
|
+
types?: QuickCommandTypeRequest[] | null;
|
|
2696
|
+
authorization: string;
|
|
2697
|
+
xAccountId?: string | null;
|
|
2698
|
+
xMemberId?: string | null;
|
|
2699
|
+
xUsername?: string | null;
|
|
2700
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2701
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2702
|
+
status: 200;
|
|
2703
|
+
data: PaginatedResponseQuickCommandAccountListResponseV1;
|
|
2704
|
+
} | {
|
|
2705
|
+
status: 404;
|
|
2706
|
+
} | {
|
|
2707
|
+
status: 422;
|
|
2708
|
+
data: HttpValidationError;
|
|
2709
|
+
}>(`/v1/quick-commands/account${QS.query(QS.explode({
|
|
2710
|
+
name,
|
|
2711
|
+
size,
|
|
2712
|
+
page,
|
|
2713
|
+
username,
|
|
2714
|
+
order,
|
|
2715
|
+
types
|
|
2716
|
+
}))}`, {
|
|
2717
|
+
...opts,
|
|
2718
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2719
|
+
authorization,
|
|
2720
|
+
"x-account-id": xAccountId,
|
|
2721
|
+
"x-member-id": xMemberId,
|
|
2722
|
+
"x-username": xUsername
|
|
2723
|
+
})
|
|
2724
|
+
}));
|
|
2725
|
+
}
|
|
2646
2726
|
/**
|
|
2647
2727
|
* Update Quick Command
|
|
2648
2728
|
*/
|
|
@@ -2791,8 +2871,9 @@ export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authoriz
|
|
|
2791
2871
|
/**
|
|
2792
2872
|
* Share
|
|
2793
2873
|
*/
|
|
2794
|
-
export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, xMemberId, xUsername }: {
|
|
2874
|
+
export function shareV1QuickCommandsSlugSharePost({ slug, isResourceAccessManager, authorization, xAccountId, xMemberId, xUsername }: {
|
|
2795
2875
|
slug: string;
|
|
2876
|
+
isResourceAccessManager?: boolean | null;
|
|
2796
2877
|
authorization: string;
|
|
2797
2878
|
xAccountId?: string | null;
|
|
2798
2879
|
xMemberId?: string | null;
|
|
@@ -2805,7 +2886,9 @@ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccoun
|
|
|
2805
2886
|
} | {
|
|
2806
2887
|
status: 422;
|
|
2807
2888
|
data: HttpValidationError;
|
|
2808
|
-
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/share
|
|
2889
|
+
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/share${QS.query(QS.explode({
|
|
2890
|
+
is_resource_access_manager: isResourceAccessManager
|
|
2891
|
+
}))}`, {
|
|
2809
2892
|
...opts,
|
|
2810
2893
|
method: "POST",
|
|
2811
2894
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -26,6 +26,8 @@ export type RoleSpecPermission = {
|
|
|
26
26
|
"delete": boolean;
|
|
27
27
|
};
|
|
28
28
|
export type RoleSpec = {
|
|
29
|
+
boundary: RoleSpecPermission;
|
|
30
|
+
boundarySSO: RoleSpecPermission;
|
|
29
31
|
certificate: RoleSpecPermission;
|
|
30
32
|
cidr: RoleSpecPermission;
|
|
31
33
|
dnsRecord: RoleSpecPermission;
|
|
@@ -64,6 +66,32 @@ export type VpnResponse = {
|
|
|
64
66
|
updatedAt: string;
|
|
65
67
|
deletedAt?: string;
|
|
66
68
|
};
|
|
69
|
+
export type SecTool = {
|
|
70
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
71
|
+
};
|
|
72
|
+
export type SecTools = {
|
|
73
|
+
guardDuty: SecTool;
|
|
74
|
+
inspector: SecTool;
|
|
75
|
+
securityHub: SecTool;
|
|
76
|
+
};
|
|
77
|
+
export type FoundationDetails = {
|
|
78
|
+
name: string;
|
|
79
|
+
description: string;
|
|
80
|
+
cloudProvider: string;
|
|
81
|
+
region: string;
|
|
82
|
+
secTools: SecTools;
|
|
83
|
+
secProjectTags: Tag[];
|
|
84
|
+
};
|
|
85
|
+
export type FoundationResponse = {
|
|
86
|
+
stackSpotAccountId: string;
|
|
87
|
+
foundationId: string;
|
|
88
|
+
details: FoundationDetails;
|
|
89
|
+
tags: Tag[];
|
|
90
|
+
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
91
|
+
createdAt: string;
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
deletedAt?: string;
|
|
94
|
+
};
|
|
67
95
|
export type ProjectDetails = {
|
|
68
96
|
name: string;
|
|
69
97
|
folderName: string;
|
|
@@ -210,34 +238,39 @@ export type CertificateResponse = {
|
|
|
210
238
|
updatedAt: string;
|
|
211
239
|
deletedAt?: string;
|
|
212
240
|
};
|
|
213
|
-
export type
|
|
214
|
-
|
|
241
|
+
export type BoundaryDetails = {
|
|
242
|
+
name: string;
|
|
243
|
+
description: string;
|
|
244
|
+
policyDocument: string;
|
|
215
245
|
};
|
|
216
|
-
export type
|
|
246
|
+
export type BoundaryResponse = {
|
|
247
|
+
foundationId: string;
|
|
248
|
+
boundaryId: string;
|
|
249
|
+
details: BoundaryDetails;
|
|
217
250
|
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
251
|
+
tags: Tag[];
|
|
252
|
+
createdAt: string;
|
|
253
|
+
updatedAt: string;
|
|
254
|
+
deletedAt?: string;
|
|
218
255
|
};
|
|
219
|
-
export type
|
|
220
|
-
guardDuty: SecTool;
|
|
221
|
-
inspector: SecTool;
|
|
222
|
-
securityHub: SecTool;
|
|
223
|
-
};
|
|
224
|
-
export type FoundationDetails = {
|
|
256
|
+
export type BoundarySsoDetails = {
|
|
225
257
|
name: string;
|
|
226
258
|
description: string;
|
|
227
|
-
|
|
228
|
-
region: string;
|
|
229
|
-
secTools: SecTools;
|
|
259
|
+
policyDocument: string;
|
|
230
260
|
};
|
|
231
|
-
export type
|
|
232
|
-
stackSpotAccountId: string;
|
|
261
|
+
export type BoundarySsoResponse = {
|
|
233
262
|
foundationId: string;
|
|
234
|
-
|
|
235
|
-
|
|
263
|
+
boundarySSOId: string;
|
|
264
|
+
details: BoundarySsoDetails;
|
|
236
265
|
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
266
|
+
tags: Tag[];
|
|
237
267
|
createdAt: string;
|
|
238
268
|
updatedAt: string;
|
|
239
269
|
deletedAt?: string;
|
|
240
270
|
};
|
|
271
|
+
export type ListRole = {
|
|
272
|
+
content: Role[];
|
|
273
|
+
};
|
|
241
274
|
export type ListFoundationResponse = {
|
|
242
275
|
stackSpotAccountId: string;
|
|
243
276
|
pendingResources: boolean;
|
|
@@ -266,57 +299,6 @@ export type CreateVpnRequest = {
|
|
|
266
299
|
destinationCidrBlock: string;
|
|
267
300
|
tags?: Tag[];
|
|
268
301
|
};
|
|
269
|
-
export type TenantDetails = {
|
|
270
|
-
name: string;
|
|
271
|
-
};
|
|
272
|
-
export type TenantResponse = {
|
|
273
|
-
stackSpotAccountId: string;
|
|
274
|
-
foundationId: string;
|
|
275
|
-
tenantId: string;
|
|
276
|
-
details: TenantDetails;
|
|
277
|
-
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
278
|
-
createdAt: string;
|
|
279
|
-
updatedAt: string;
|
|
280
|
-
deletedAt?: string;
|
|
281
|
-
};
|
|
282
|
-
export type ListTenantResponse = {
|
|
283
|
-
stackSpotAccountId: string;
|
|
284
|
-
foundationId: string;
|
|
285
|
-
pendingResources: boolean;
|
|
286
|
-
content: TenantResponse[];
|
|
287
|
-
};
|
|
288
|
-
export type CreateTenantRequest = {
|
|
289
|
-
name: string;
|
|
290
|
-
publicCidrs: string[];
|
|
291
|
-
};
|
|
292
|
-
export type RuntimeDetails = {
|
|
293
|
-
name: string;
|
|
294
|
-
};
|
|
295
|
-
export type RuntimeResponse = {
|
|
296
|
-
stackSpotAccountId: string;
|
|
297
|
-
foundationId: string;
|
|
298
|
-
tenantId: string;
|
|
299
|
-
runtimeId: string;
|
|
300
|
-
details: RuntimeDetails;
|
|
301
|
-
status: "READY" | "PENDING" | "DELETING" | "ERROR";
|
|
302
|
-
createdAt: string;
|
|
303
|
-
updatedAt: string;
|
|
304
|
-
deletedAt?: string;
|
|
305
|
-
};
|
|
306
|
-
export type ListRuntimeResponse = {
|
|
307
|
-
stackSpotAccountId: string;
|
|
308
|
-
foundationId: string;
|
|
309
|
-
projectId?: string;
|
|
310
|
-
tenantId?: string;
|
|
311
|
-
pendingResources: boolean;
|
|
312
|
-
content: RuntimeResponse[];
|
|
313
|
-
};
|
|
314
|
-
export type CreateRuntimeRequest = {
|
|
315
|
-
projectId: string;
|
|
316
|
-
name: string;
|
|
317
|
-
publicCidrs: string[];
|
|
318
|
-
clusterAdminRoles: string[];
|
|
319
|
-
};
|
|
320
302
|
export type ListProjectResponse = {
|
|
321
303
|
stackSpotAccountId: string;
|
|
322
304
|
foundationId: string;
|
|
@@ -396,8 +378,8 @@ export type ListCertificateResponse = {
|
|
|
396
378
|
};
|
|
397
379
|
export type CreateCertificateRequestBase = {
|
|
398
380
|
tags?: Tag[];
|
|
399
|
-
forInbound: "TRUE" | "FALSE";
|
|
400
381
|
certificateName: string;
|
|
382
|
+
forInbound: "TRUE" | "FALSE";
|
|
401
383
|
"type": string;
|
|
402
384
|
};
|
|
403
385
|
export type CreatePublicCertificateRequest = {
|
|
@@ -412,6 +394,29 @@ export type ImportCertificateRequest = {
|
|
|
412
394
|
certificatePrivateKey: string;
|
|
413
395
|
certificateChain?: string;
|
|
414
396
|
};
|
|
397
|
+
export type ListBoundaryResponse = {
|
|
398
|
+
foundationId: string;
|
|
399
|
+
pendingResources: boolean;
|
|
400
|
+
content: BoundaryResponse[];
|
|
401
|
+
};
|
|
402
|
+
export type JsonNode = any;
|
|
403
|
+
export type CreateBoundaryRequest = {
|
|
404
|
+
name: string;
|
|
405
|
+
description: string;
|
|
406
|
+
policyDocument: JsonNode;
|
|
407
|
+
tags: Tag[];
|
|
408
|
+
};
|
|
409
|
+
export type ListBoundarySsoResponse = {
|
|
410
|
+
foundationId: string;
|
|
411
|
+
pendingResources: boolean;
|
|
412
|
+
content: BoundarySsoResponse[];
|
|
413
|
+
};
|
|
414
|
+
export type CreateBoundarySsoRequest = {
|
|
415
|
+
name: string;
|
|
416
|
+
description: string;
|
|
417
|
+
policyDocument: JsonNode;
|
|
418
|
+
tags: Tag[];
|
|
419
|
+
};
|
|
415
420
|
export type Configuration = {
|
|
416
421
|
ikev1: string;
|
|
417
422
|
ikev2: string;
|
|
@@ -472,6 +477,19 @@ export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, bod
|
|
|
472
477
|
})
|
|
473
478
|
})));
|
|
474
479
|
}
|
|
480
|
+
export function putFoundationSecProjectTags({ foundationId, body }: {
|
|
481
|
+
foundationId: string;
|
|
482
|
+
body: Tag[];
|
|
483
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
484
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
485
|
+
status: 202;
|
|
486
|
+
data: FoundationResponse;
|
|
487
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/sec-project-tags`, oazapfts.json({
|
|
488
|
+
...opts,
|
|
489
|
+
method: "PUT",
|
|
490
|
+
body
|
|
491
|
+
})));
|
|
492
|
+
}
|
|
475
493
|
export function putProjectTags({ authorization, xAccountId, foundationId, projectId, body }: {
|
|
476
494
|
authorization: string;
|
|
477
495
|
xAccountId?: string;
|
|
@@ -629,6 +647,90 @@ export function putCertificateTags({ authorization, xAccountId, foundationId, ce
|
|
|
629
647
|
})
|
|
630
648
|
})));
|
|
631
649
|
}
|
|
650
|
+
export function putBoundaryTags({ foundationId, boundaryId, body }: {
|
|
651
|
+
foundationId: string;
|
|
652
|
+
boundaryId: string;
|
|
653
|
+
body: Tag[];
|
|
654
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
655
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
656
|
+
status: 202;
|
|
657
|
+
data: BoundaryResponse;
|
|
658
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/tags`, oazapfts.json({
|
|
659
|
+
...opts,
|
|
660
|
+
method: "PUT",
|
|
661
|
+
body
|
|
662
|
+
})));
|
|
663
|
+
}
|
|
664
|
+
export function putBoundaryPolicyDocument({ foundationId, boundaryId, body }: {
|
|
665
|
+
foundationId: string;
|
|
666
|
+
boundaryId: string;
|
|
667
|
+
body: string;
|
|
668
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
669
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
670
|
+
status: 202;
|
|
671
|
+
data: BoundaryResponse;
|
|
672
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/policy-document`, {
|
|
673
|
+
...opts,
|
|
674
|
+
method: "PUT",
|
|
675
|
+
body
|
|
676
|
+
}));
|
|
677
|
+
}
|
|
678
|
+
export function putBoundaryDescription({ foundationId, boundaryId, body }: {
|
|
679
|
+
foundationId: string;
|
|
680
|
+
boundaryId: string;
|
|
681
|
+
body: string;
|
|
682
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
683
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
684
|
+
status: 202;
|
|
685
|
+
data: BoundaryResponse;
|
|
686
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}/description`, {
|
|
687
|
+
...opts,
|
|
688
|
+
method: "PUT",
|
|
689
|
+
body
|
|
690
|
+
}));
|
|
691
|
+
}
|
|
692
|
+
export function putBoundarySsoTags({ foundationId, boundarySsoId, body }: {
|
|
693
|
+
foundationId: string;
|
|
694
|
+
boundarySsoId: string;
|
|
695
|
+
body: Tag[];
|
|
696
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
697
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
698
|
+
status: 202;
|
|
699
|
+
data: BoundarySsoResponse;
|
|
700
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/tags`, oazapfts.json({
|
|
701
|
+
...opts,
|
|
702
|
+
method: "PUT",
|
|
703
|
+
body
|
|
704
|
+
})));
|
|
705
|
+
}
|
|
706
|
+
export function putBoundarySsoPolicyDocument({ foundationId, boundarySsoId, body }: {
|
|
707
|
+
foundationId: string;
|
|
708
|
+
boundarySsoId: string;
|
|
709
|
+
body: string;
|
|
710
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
711
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
712
|
+
status: 202;
|
|
713
|
+
data: BoundarySsoResponse;
|
|
714
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/policy-document`, {
|
|
715
|
+
...opts,
|
|
716
|
+
method: "PUT",
|
|
717
|
+
body
|
|
718
|
+
}));
|
|
719
|
+
}
|
|
720
|
+
export function putBoundarySsoDescription({ foundationId, boundarySsoId, body }: {
|
|
721
|
+
foundationId: string;
|
|
722
|
+
boundarySsoId: string;
|
|
723
|
+
body: string;
|
|
724
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
725
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
726
|
+
status: 202;
|
|
727
|
+
data: BoundarySsoResponse;
|
|
728
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}/description`, {
|
|
729
|
+
...opts,
|
|
730
|
+
method: "PUT",
|
|
731
|
+
body
|
|
732
|
+
}));
|
|
733
|
+
}
|
|
632
734
|
export function listRole(opts?: Oazapfts.RequestOpts) {
|
|
633
735
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
634
736
|
status: 200;
|
|
@@ -717,75 +819,6 @@ export function createVpn({ authorization, xAccountId, foundationId, createVpnRe
|
|
|
717
819
|
})
|
|
718
820
|
})));
|
|
719
821
|
}
|
|
720
|
-
export function listTenant({ authorization, xAccountId, foundationId }: {
|
|
721
|
-
authorization: string;
|
|
722
|
-
xAccountId?: string;
|
|
723
|
-
foundationId: string;
|
|
724
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
725
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
726
|
-
status: 200;
|
|
727
|
-
data: ListTenantResponse;
|
|
728
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants`, {
|
|
729
|
-
...opts,
|
|
730
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
731
|
-
Authorization: authorization,
|
|
732
|
-
"x-account-id": xAccountId
|
|
733
|
-
})
|
|
734
|
-
}));
|
|
735
|
-
}
|
|
736
|
-
export function createTenant({ authorization, xAccountId, foundationId, createTenantRequest }: {
|
|
737
|
-
authorization: string;
|
|
738
|
-
xAccountId?: string;
|
|
739
|
-
foundationId: string;
|
|
740
|
-
createTenantRequest: CreateTenantRequest;
|
|
741
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
742
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
743
|
-
status: 202;
|
|
744
|
-
data: TenantResponse;
|
|
745
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants`, oazapfts.json({
|
|
746
|
-
...opts,
|
|
747
|
-
method: "POST",
|
|
748
|
-
body: createTenantRequest,
|
|
749
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
750
|
-
Authorization: authorization,
|
|
751
|
-
"x-account-id": xAccountId
|
|
752
|
-
})
|
|
753
|
-
})));
|
|
754
|
-
}
|
|
755
|
-
export function listRuntime({ foundationId, tenantId, projectId }: {
|
|
756
|
-
foundationId: string;
|
|
757
|
-
tenantId?: string;
|
|
758
|
-
projectId?: string;
|
|
759
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
760
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
761
|
-
status: 200;
|
|
762
|
-
data: ListRuntimeResponse;
|
|
763
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes${QS.query(QS.explode({
|
|
764
|
-
tenantId,
|
|
765
|
-
projectId
|
|
766
|
-
}))}`, {
|
|
767
|
-
...opts
|
|
768
|
-
}));
|
|
769
|
-
}
|
|
770
|
-
export function createRuntime({ authorization, xAccountId, foundationId, createRuntimeRequest }: {
|
|
771
|
-
authorization: string;
|
|
772
|
-
xAccountId?: string;
|
|
773
|
-
foundationId: string;
|
|
774
|
-
createRuntimeRequest: CreateRuntimeRequest;
|
|
775
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
776
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
777
|
-
status: 202;
|
|
778
|
-
data: RuntimeResponse;
|
|
779
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes`, oazapfts.json({
|
|
780
|
-
...opts,
|
|
781
|
-
method: "POST",
|
|
782
|
-
body: createRuntimeRequest,
|
|
783
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
784
|
-
Authorization: authorization,
|
|
785
|
-
"x-account-id": xAccountId
|
|
786
|
-
})
|
|
787
|
-
})));
|
|
788
|
-
}
|
|
789
822
|
export function listProject({ authorization, xAccountId, foundationId, parentFolderId }: {
|
|
790
823
|
authorization: string;
|
|
791
824
|
xAccountId?: string;
|
|
@@ -1053,6 +1086,52 @@ export function createCertificate({ authorization, xAccountId, foundationId, bod
|
|
|
1053
1086
|
})
|
|
1054
1087
|
})));
|
|
1055
1088
|
}
|
|
1089
|
+
export function listBoundary({ foundationId }: {
|
|
1090
|
+
foundationId: string;
|
|
1091
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1092
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1093
|
+
status: 200;
|
|
1094
|
+
data: ListBoundaryResponse;
|
|
1095
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, {
|
|
1096
|
+
...opts
|
|
1097
|
+
}));
|
|
1098
|
+
}
|
|
1099
|
+
export function createBoundary({ foundationId, createBoundaryRequest }: {
|
|
1100
|
+
foundationId: string;
|
|
1101
|
+
createBoundaryRequest: CreateBoundaryRequest;
|
|
1102
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1103
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1104
|
+
status: 202;
|
|
1105
|
+
data: BoundaryResponse;
|
|
1106
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, oazapfts.json({
|
|
1107
|
+
...opts,
|
|
1108
|
+
method: "POST",
|
|
1109
|
+
body: createBoundaryRequest
|
|
1110
|
+
})));
|
|
1111
|
+
}
|
|
1112
|
+
export function listBoundarySso({ foundationId }: {
|
|
1113
|
+
foundationId: string;
|
|
1114
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1115
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1116
|
+
status: 200;
|
|
1117
|
+
data: ListBoundarySsoResponse;
|
|
1118
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, {
|
|
1119
|
+
...opts
|
|
1120
|
+
}));
|
|
1121
|
+
}
|
|
1122
|
+
export function createBoundarySso({ foundationId, createBoundarySsoRequest }: {
|
|
1123
|
+
foundationId: string;
|
|
1124
|
+
createBoundarySsoRequest: CreateBoundarySsoRequest;
|
|
1125
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1126
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1127
|
+
status: 202;
|
|
1128
|
+
data: BoundarySsoResponse;
|
|
1129
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, oazapfts.json({
|
|
1130
|
+
...opts,
|
|
1131
|
+
method: "POST",
|
|
1132
|
+
body: createBoundarySsoRequest
|
|
1133
|
+
})));
|
|
1134
|
+
}
|
|
1056
1135
|
export function getFoundation({ authorization, xAccountId, foundationId }: {
|
|
1057
1136
|
authorization: string;
|
|
1058
1137
|
xAccountId?: string;
|
|
@@ -1118,34 +1197,6 @@ export function getVpnConfiguration({ authorization, xAccountId, foundationId, v
|
|
|
1118
1197
|
})
|
|
1119
1198
|
}));
|
|
1120
1199
|
}
|
|
1121
|
-
export function getTenant({ authorization, xAccountId, foundationId, tenantId }: {
|
|
1122
|
-
authorization: string;
|
|
1123
|
-
xAccountId?: string;
|
|
1124
|
-
foundationId: string;
|
|
1125
|
-
tenantId: string;
|
|
1126
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1127
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1128
|
-
status: 200;
|
|
1129
|
-
data: TenantResponse;
|
|
1130
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/tenants/${encodeURIComponent(tenantId)}`, {
|
|
1131
|
-
...opts,
|
|
1132
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1133
|
-
Authorization: authorization,
|
|
1134
|
-
"x-account-id": xAccountId
|
|
1135
|
-
})
|
|
1136
|
-
}));
|
|
1137
|
-
}
|
|
1138
|
-
export function getRuntime({ foundationId, runtimeId }: {
|
|
1139
|
-
foundationId: string;
|
|
1140
|
-
runtimeId: string;
|
|
1141
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1142
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1143
|
-
status: 200;
|
|
1144
|
-
data: RuntimeResponse;
|
|
1145
|
-
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
1146
|
-
...opts
|
|
1147
|
-
}));
|
|
1148
|
-
}
|
|
1149
1200
|
export function getProject({ authorization, xAccountId, foundationId, projectId }: {
|
|
1150
1201
|
authorization: string;
|
|
1151
1202
|
xAccountId?: string;
|
|
@@ -1338,6 +1389,46 @@ export function deleteCertificate({ authorization, xAccountId, foundationId, cer
|
|
|
1338
1389
|
})
|
|
1339
1390
|
}));
|
|
1340
1391
|
}
|
|
1392
|
+
export function getBoundary({ foundationId, boundaryId }: {
|
|
1393
|
+
foundationId: string;
|
|
1394
|
+
boundaryId: string;
|
|
1395
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1396
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1397
|
+
status: 200;
|
|
1398
|
+
data: BoundaryResponse;
|
|
1399
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
|
|
1400
|
+
...opts
|
|
1401
|
+
}));
|
|
1402
|
+
}
|
|
1403
|
+
export function deleteBoundary({ foundationId, boundaryId }: {
|
|
1404
|
+
foundationId: string;
|
|
1405
|
+
boundaryId: string;
|
|
1406
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1407
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
|
|
1408
|
+
...opts,
|
|
1409
|
+
method: "DELETE"
|
|
1410
|
+
}));
|
|
1411
|
+
}
|
|
1412
|
+
export function getBoundarySso({ foundationId, boundarySsoId }: {
|
|
1413
|
+
foundationId: string;
|
|
1414
|
+
boundarySsoId: string;
|
|
1415
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1416
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1417
|
+
status: 200;
|
|
1418
|
+
data: BoundarySsoResponse;
|
|
1419
|
+
}>(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}`, {
|
|
1420
|
+
...opts
|
|
1421
|
+
}));
|
|
1422
|
+
}
|
|
1423
|
+
export function deleteBoundarySso({ foundationId, boundarySsoId }: {
|
|
1424
|
+
foundationId: string;
|
|
1425
|
+
boundarySsoId: string;
|
|
1426
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1427
|
+
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso/${encodeURIComponent(boundarySsoId)}`, {
|
|
1428
|
+
...opts,
|
|
1429
|
+
method: "DELETE"
|
|
1430
|
+
}));
|
|
1431
|
+
}
|
|
1341
1432
|
export function deleteFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
1342
1433
|
authorization: string;
|
|
1343
1434
|
xAccountId?: string;
|