@stack-spot/portal-network 0.218.3 → 0.220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/api/agent-tools.d.ts +752 -164
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +203 -43
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +3 -2
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +1 -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/api/genAiInference.d.ts +5 -1
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +41 -0
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +34 -0
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/client/agent-tools.d.ts +130 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +105 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts +0 -1
- package/dist/client/ai.d.ts.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 +1 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workspace-ai.d.ts +13 -3
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +15 -1
- package/dist/client/workspace-ai.js.map +1 -1
- package/package.json +1 -1
- package/src/api/agent-tools.ts +1259 -472
- package/src/api/ai.ts +3 -3
- package/src/api/cloudPlatform.ts +256 -165
- package/src/api/genAiInference.ts +5 -1
- package/src/api/workspace-ai.ts +83 -0
- package/src/client/agent-tools.ts +55 -2
- package/src/client/cloud-platform.ts +70 -20
- package/src/client/types.ts +1 -0
- package/src/client/workspace-ai.ts +18 -3
package/src/api/ai.ts
CHANGED
|
@@ -384,6 +384,7 @@ export type QuickCommandsStepPromptRequest = {
|
|
|
384
384
|
allow_use_current_workspace?: boolean;
|
|
385
385
|
knowledge_source_slugs?: string[] | null;
|
|
386
386
|
agent_id?: string | null;
|
|
387
|
+
agent_version_number?: number | null;
|
|
387
388
|
use_uploaded_files?: boolean;
|
|
388
389
|
agent_built_in?: boolean | null;
|
|
389
390
|
next_step_slug?: string | null;
|
|
@@ -871,6 +872,7 @@ export type ChatRequest = {
|
|
|
871
872
|
} | null;
|
|
872
873
|
user_prompt: string;
|
|
873
874
|
project_id?: string | null;
|
|
875
|
+
agent_version_number?: number | null;
|
|
874
876
|
};
|
|
875
877
|
export type SourceProjectFile3 = {
|
|
876
878
|
"type": "project_file";
|
|
@@ -4061,14 +4063,13 @@ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId,
|
|
|
4061
4063
|
/**
|
|
4062
4064
|
* List All
|
|
4063
4065
|
*/
|
|
4064
|
-
export function listAllV3QuickCommandsGet({ name, slug, size, page, visibilityList, order,
|
|
4066
|
+
export function listAllV3QuickCommandsGet({ name, slug, size, page, visibilityList, order, types, authorization, xAccountId, xMemberId, xUsername }: {
|
|
4065
4067
|
name?: string | null;
|
|
4066
4068
|
slug?: string | null;
|
|
4067
4069
|
size?: number;
|
|
4068
4070
|
page?: number;
|
|
4069
4071
|
visibilityList?: VisibilityLevelEnum[] | null;
|
|
4070
4072
|
order?: OrderEnum | null;
|
|
4071
|
-
isRemote?: boolean;
|
|
4072
4073
|
types?: QuickCommandTypeRequest[] | null;
|
|
4073
4074
|
authorization: string;
|
|
4074
4075
|
xAccountId?: string | null;
|
|
@@ -4090,7 +4091,6 @@ export function listAllV3QuickCommandsGet({ name, slug, size, page, visibilityLi
|
|
|
4090
4091
|
page,
|
|
4091
4092
|
visibility_list: visibilityList,
|
|
4092
4093
|
order,
|
|
4093
|
-
is_remote: isRemote,
|
|
4094
4094
|
types
|
|
4095
4095
|
}))}`, {
|
|
4096
4096
|
...opts,
|
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;
|
|
@@ -69,7 +69,7 @@ export type ValidationError = {
|
|
|
69
69
|
export type HttpValidationError = {
|
|
70
70
|
detail?: ValidationError[];
|
|
71
71
|
};
|
|
72
|
-
export type ResourceName = "agents" | "deep_ks" | "autocomplete";
|
|
72
|
+
export type ResourceName = "agents" | "deep_ks" | "autocomplete" | "summary";
|
|
73
73
|
export type LlmModelResourceRequest = {
|
|
74
74
|
name: ResourceName;
|
|
75
75
|
is_default?: boolean;
|
|
@@ -244,6 +244,8 @@ export type ChatCompletion = {
|
|
|
244
244
|
} | null;
|
|
245
245
|
/** ID of an alternative model for chat completion. It should be present on available_model_ids agent attr. */
|
|
246
246
|
selected_model_id?: string | null;
|
|
247
|
+
/** The specific Agent version number to be use in chat. */
|
|
248
|
+
agent_version_number?: number | null;
|
|
247
249
|
};
|
|
248
250
|
export type ChatRequest = {
|
|
249
251
|
streaming: boolean;
|
|
@@ -260,6 +262,8 @@ export type ChatRequest = {
|
|
|
260
262
|
knowledge_sources?: string[];
|
|
261
263
|
deep_search_ks?: boolean;
|
|
262
264
|
show_chat_processing_state?: boolean;
|
|
265
|
+
/** The specific Agent version number to be use in chat. */
|
|
266
|
+
agent_version_number?: number | null;
|
|
263
267
|
};
|
|
264
268
|
export type PromptTokensCurrentUsageResponse = {
|
|
265
269
|
used: number;
|
package/src/api/workspace-ai.ts
CHANGED
|
@@ -84,6 +84,13 @@ export type ListWksContentsResponse = {
|
|
|
84
84
|
[key: string]: any;
|
|
85
85
|
}[] | null;
|
|
86
86
|
};
|
|
87
|
+
export type ContentVersion = {
|
|
88
|
+
core_id: string;
|
|
89
|
+
version_number?: number | null;
|
|
90
|
+
};
|
|
91
|
+
export type AddWorkspaceContentRequestV2 = {
|
|
92
|
+
content_identifier: ContentVersion[];
|
|
93
|
+
};
|
|
87
94
|
export type ActionShared = "VIEW" | "EDIT" | "GRANT_ACESS";
|
|
88
95
|
export type PermissionForSharedRequest = {
|
|
89
96
|
userId: string;
|
|
@@ -100,6 +107,12 @@ export type ResourceMembersResponse = {
|
|
|
100
107
|
name: string;
|
|
101
108
|
actions: string[];
|
|
102
109
|
};
|
|
110
|
+
export type ResourceMembersPaginatedResponse = {
|
|
111
|
+
items: ResourceMembersResponse[];
|
|
112
|
+
page: number;
|
|
113
|
+
size: number;
|
|
114
|
+
total_pages: number;
|
|
115
|
+
};
|
|
103
116
|
/**
|
|
104
117
|
* Create Workspace
|
|
105
118
|
*/
|
|
@@ -534,6 +547,36 @@ export function listAllContentsV1WorkspacesWorkspaceIdContentsGet({ workspaceId,
|
|
|
534
547
|
})
|
|
535
548
|
}));
|
|
536
549
|
}
|
|
550
|
+
/**
|
|
551
|
+
* Add Content
|
|
552
|
+
*/
|
|
553
|
+
export function addContentV2WorkspacesWorkspaceIdContentTypePost({ workspaceId, contentType, authorization, xAccountId, addWorkspaceContentRequestV2 }: {
|
|
554
|
+
workspaceId: string;
|
|
555
|
+
contentType: ContentType;
|
|
556
|
+
authorization: string;
|
|
557
|
+
xAccountId?: string | null;
|
|
558
|
+
addWorkspaceContentRequestV2: AddWorkspaceContentRequestV2;
|
|
559
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
560
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
561
|
+
status: 200;
|
|
562
|
+
data: {
|
|
563
|
+
[key: string]: any;
|
|
564
|
+
};
|
|
565
|
+
} | {
|
|
566
|
+
status: 404;
|
|
567
|
+
} | {
|
|
568
|
+
status: 422;
|
|
569
|
+
data: HttpValidationError;
|
|
570
|
+
}>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/${encodeURIComponent(contentType)}`, oazapfts.json({
|
|
571
|
+
...opts,
|
|
572
|
+
method: "POST",
|
|
573
|
+
body: addWorkspaceContentRequestV2,
|
|
574
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
575
|
+
authorization,
|
|
576
|
+
"x-account-id": xAccountId
|
|
577
|
+
})
|
|
578
|
+
})));
|
|
579
|
+
}
|
|
537
580
|
/**
|
|
538
581
|
* Use Shareable Link
|
|
539
582
|
*/
|
|
@@ -653,6 +696,46 @@ export function listMembersV1ResourceTypeResourceTypeResourcesResourceIdentifier
|
|
|
653
696
|
})
|
|
654
697
|
}));
|
|
655
698
|
}
|
|
699
|
+
/**
|
|
700
|
+
* List Members
|
|
701
|
+
*/
|
|
702
|
+
export function listMembersV2ResourceTypeResourceTypeResourcesResourceIdentifierMembersGet({ resourceType, resourceIdentifier, search, filterBy, filterValue, sortBy, page, size, order, authorization, xAccountId }: {
|
|
703
|
+
resourceType: ContentType;
|
|
704
|
+
resourceIdentifier: string;
|
|
705
|
+
search?: string | null;
|
|
706
|
+
filterBy?: string | null;
|
|
707
|
+
filterValue?: string | null;
|
|
708
|
+
sortBy?: SortBy | null;
|
|
709
|
+
page?: number;
|
|
710
|
+
size?: number;
|
|
711
|
+
order?: OrderEnum;
|
|
712
|
+
authorization: string;
|
|
713
|
+
xAccountId?: string | null;
|
|
714
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
715
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
716
|
+
status: 200;
|
|
717
|
+
data: ResourceMembersPaginatedResponse;
|
|
718
|
+
} | {
|
|
719
|
+
status: 404;
|
|
720
|
+
} | {
|
|
721
|
+
status: 422;
|
|
722
|
+
data: HttpValidationError;
|
|
723
|
+
}>(`/v2/resource-type/${encodeURIComponent(resourceType)}/resources/${encodeURIComponent(resourceIdentifier)}/members${QS.query(QS.explode({
|
|
724
|
+
search,
|
|
725
|
+
filter_by: filterBy,
|
|
726
|
+
filter_value: filterValue,
|
|
727
|
+
sort_by: sortBy,
|
|
728
|
+
page,
|
|
729
|
+
size,
|
|
730
|
+
order
|
|
731
|
+
}))}`, {
|
|
732
|
+
...opts,
|
|
733
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
734
|
+
authorization,
|
|
735
|
+
"x-account-id": xAccountId
|
|
736
|
+
})
|
|
737
|
+
}));
|
|
738
|
+
}
|
|
656
739
|
/**
|
|
657
740
|
* Healthz
|
|
658
741
|
*/
|