@stack-spot/portal-network 0.72.1-beta.3 → 0.73.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 +7 -0
- package/dist/api/account.d.ts +1 -217
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +2 -135
- package/dist/api/account.js.map +1 -1
- package/dist/api/agent.d.ts +30 -5
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/agent.js +24 -4
- package/dist/api/agent.js.map +1 -1
- package/dist/client/account.d.ts +0 -87
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +1 -118
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent.d.ts +1 -0
- package/dist/client/agent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +3 -499
- package/src/api/agent.ts +68 -7
- package/src/client/account.ts +2 -77
package/src/api/agent.ts
CHANGED
|
@@ -42,6 +42,12 @@ export type ViolationResponse = {
|
|
|
42
42
|
field?: string;
|
|
43
43
|
message?: string;
|
|
44
44
|
};
|
|
45
|
+
export type WorkspaceForkRequest = {
|
|
46
|
+
agentIds?: string[];
|
|
47
|
+
};
|
|
48
|
+
export type WorkspaceForkResponse = {
|
|
49
|
+
ids?: string[];
|
|
50
|
+
};
|
|
45
51
|
export type LlmConfigResponse = {
|
|
46
52
|
model_slug: string;
|
|
47
53
|
temperature: number;
|
|
@@ -78,14 +84,16 @@ export type ModifiedAgentRequest = {
|
|
|
78
84
|
"type"?: AgentType;
|
|
79
85
|
llm_config?: (LlmConfigRequestPart) | null;
|
|
80
86
|
knowledge_sources_config?: (KnowledgeSourcesConfigRequestPart) | null;
|
|
87
|
+
use_only?: boolean | null;
|
|
81
88
|
};
|
|
82
89
|
export type ForkAgentRequest = {
|
|
83
90
|
slug?: string;
|
|
84
91
|
name?: string | null;
|
|
85
92
|
};
|
|
86
93
|
export type VisibilityLevel = "PERSONAL" | "SHARED" | "WORKSPACE" | "ACCOUNT";
|
|
87
|
-
export type
|
|
94
|
+
export type PublishRequest = {
|
|
88
95
|
level: VisibilityLevel;
|
|
96
|
+
use_only?: boolean;
|
|
89
97
|
};
|
|
90
98
|
export type AgentResponse = {
|
|
91
99
|
id: string;
|
|
@@ -99,6 +107,7 @@ export type AgentResponse = {
|
|
|
99
107
|
suggested_prompts?: string[];
|
|
100
108
|
knowledge_sources_config?: KnowledgeSourceResponse;
|
|
101
109
|
visibility_level: string;
|
|
110
|
+
use_only: boolean;
|
|
102
111
|
creator_name: string;
|
|
103
112
|
created_by: string;
|
|
104
113
|
created_at: ZonedDateTime;
|
|
@@ -147,6 +156,54 @@ export function postV1Agent({ newAgentRequest }: {
|
|
|
147
156
|
body: newAgentRequest
|
|
148
157
|
})));
|
|
149
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Workspace Fork AI agents.
|
|
161
|
+
*/
|
|
162
|
+
export function postV1AgentWorkspaceFork({ workspaceForkRequest }: {
|
|
163
|
+
workspaceForkRequest?: WorkspaceForkRequest;
|
|
164
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
165
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
166
|
+
status: 201;
|
|
167
|
+
data: WorkspaceForkResponse[];
|
|
168
|
+
} | {
|
|
169
|
+
status: 500;
|
|
170
|
+
data: {
|
|
171
|
+
code?: string;
|
|
172
|
+
details?: string;
|
|
173
|
+
additionalInformation?: {
|
|
174
|
+
[key: string]: any;
|
|
175
|
+
} | null;
|
|
176
|
+
};
|
|
177
|
+
}>("/v1/agent/workspace-fork", oazapfts.json({
|
|
178
|
+
...opts,
|
|
179
|
+
method: "POST",
|
|
180
|
+
body: workspaceForkRequest
|
|
181
|
+
})));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Delete Workspace Fork AI agents.
|
|
185
|
+
*/
|
|
186
|
+
export function deleteV1AgentWorkspaceFork({ workspaceForkRequest }: {
|
|
187
|
+
workspaceForkRequest?: WorkspaceForkRequest;
|
|
188
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
189
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
190
|
+
status: 201;
|
|
191
|
+
data: Blob;
|
|
192
|
+
} | {
|
|
193
|
+
status: 500;
|
|
194
|
+
data: {
|
|
195
|
+
code?: string;
|
|
196
|
+
details?: string;
|
|
197
|
+
additionalInformation?: {
|
|
198
|
+
[key: string]: any;
|
|
199
|
+
} | null;
|
|
200
|
+
};
|
|
201
|
+
}>("/v1/agent/workspace-fork", oazapfts.json({
|
|
202
|
+
...opts,
|
|
203
|
+
method: "DELETE",
|
|
204
|
+
body: workspaceForkRequest
|
|
205
|
+
})));
|
|
206
|
+
}
|
|
150
207
|
/**
|
|
151
208
|
* Get agent by ID
|
|
152
209
|
*/
|
|
@@ -167,6 +224,7 @@ export function getV1AgentByAgentId({ agentId }: {
|
|
|
167
224
|
suggested_prompts?: string[];
|
|
168
225
|
knowledge_sources_config?: KnowledgeSourceResponse;
|
|
169
226
|
visibility_level: string;
|
|
227
|
+
use_only: boolean;
|
|
170
228
|
creator_name: string;
|
|
171
229
|
created_by: string;
|
|
172
230
|
created_at: ZonedDateTime;
|
|
@@ -365,9 +423,9 @@ export function postV1AgentByAgentIdFork({ agentId, forkAgentRequest }: {
|
|
|
365
423
|
/**
|
|
366
424
|
* AI Agent update visibility.
|
|
367
425
|
*/
|
|
368
|
-
export function postV1AgentByAgentIdPublish({ agentId,
|
|
426
|
+
export function postV1AgentByAgentIdPublish({ agentId, publishRequest }: {
|
|
369
427
|
agentId: string;
|
|
370
|
-
|
|
428
|
+
publishRequest?: PublishRequest;
|
|
371
429
|
}, opts?: Oazapfts.RequestOpts) {
|
|
372
430
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
373
431
|
status: 204;
|
|
@@ -408,7 +466,7 @@ export function postV1AgentByAgentIdPublish({ agentId, changeVisibilityRequest }
|
|
|
408
466
|
}>(`/v1/agent/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
|
|
409
467
|
...opts,
|
|
410
468
|
method: "POST",
|
|
411
|
-
body:
|
|
469
|
+
body: publishRequest
|
|
412
470
|
})));
|
|
413
471
|
}
|
|
414
472
|
/**
|
|
@@ -454,6 +512,7 @@ export function getV1AgentByAgentSlugExists({ agentSlug }: {
|
|
|
454
512
|
suggested_prompts?: string[];
|
|
455
513
|
knowledge_sources_config?: KnowledgeSourceResponse;
|
|
456
514
|
visibility_level: string;
|
|
515
|
+
use_only: boolean;
|
|
457
516
|
creator_name: string;
|
|
458
517
|
created_by: string;
|
|
459
518
|
created_at: ZonedDateTime;
|
|
@@ -568,6 +627,7 @@ export function getV1PublicAgentByAgentId({ agentId }: {
|
|
|
568
627
|
suggested_prompts?: string[];
|
|
569
628
|
knowledge_sources_config?: KnowledgeSourceResponse;
|
|
570
629
|
visibility_level: string;
|
|
630
|
+
use_only: boolean;
|
|
571
631
|
creator_name: string;
|
|
572
632
|
created_by: string;
|
|
573
633
|
created_at: ZonedDateTime;
|
|
@@ -739,9 +799,9 @@ export function getV1PublicAgentByAgentIdDependencies({ agentId }: {
|
|
|
739
799
|
/**
|
|
740
800
|
* AI Agent update visibility.
|
|
741
801
|
*/
|
|
742
|
-
export function postV1PublicAgentByAgentIdPublish({ agentId,
|
|
802
|
+
export function postV1PublicAgentByAgentIdPublish({ agentId, publishRequest }: {
|
|
743
803
|
agentId: string;
|
|
744
|
-
|
|
804
|
+
publishRequest?: PublishRequest;
|
|
745
805
|
}, opts?: Oazapfts.RequestOpts) {
|
|
746
806
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
747
807
|
status: 204;
|
|
@@ -782,7 +842,7 @@ export function postV1PublicAgentByAgentIdPublish({ agentId, changeVisibilityReq
|
|
|
782
842
|
}>(`/v1/public/agent/${encodeURIComponent(agentId)}/publish`, oazapfts.json({
|
|
783
843
|
...opts,
|
|
784
844
|
method: "POST",
|
|
785
|
-
body:
|
|
845
|
+
body: publishRequest
|
|
786
846
|
})));
|
|
787
847
|
}
|
|
788
848
|
/**
|
|
@@ -805,6 +865,7 @@ export function getV1PublicAgentByAgentSlugExists({ agentSlug }: {
|
|
|
805
865
|
suggested_prompts?: string[];
|
|
806
866
|
knowledge_sources_config?: KnowledgeSourceResponse;
|
|
807
867
|
visibility_level: string;
|
|
868
|
+
use_only: boolean;
|
|
808
869
|
creator_name: string;
|
|
809
870
|
created_by: string;
|
|
810
871
|
created_at: ZonedDateTime;
|
package/src/client/account.ts
CHANGED
|
@@ -8,16 +8,13 @@ import {
|
|
|
8
8
|
bindGroupMembers,
|
|
9
9
|
bindRoleGroups,
|
|
10
10
|
bindRoles,
|
|
11
|
-
bindToGroups, bindToRoles, create, createAccountRole,
|
|
11
|
+
bindToGroups, bindToRoles, create, createAccountRole, createGroupMapping, createPartner,
|
|
12
12
|
createPersonalAccessToken,
|
|
13
13
|
createServiceCredential1,
|
|
14
14
|
createUser,
|
|
15
15
|
deactivateFidoCredentials,
|
|
16
16
|
defaults,
|
|
17
17
|
deleteAccountRole,
|
|
18
|
-
deleteExtension,
|
|
19
|
-
deleteExtensionLink,
|
|
20
|
-
deleteExtensionVersion,
|
|
21
18
|
deleteGroupMapping,
|
|
22
19
|
deleteMember,
|
|
23
20
|
deleteMemberFavorite,
|
|
@@ -27,10 +24,9 @@ import {
|
|
|
27
24
|
getAccountMembers,
|
|
28
25
|
getAccountMembers2,
|
|
29
26
|
getAccountSso,
|
|
30
|
-
getActiveExtensionVersion,
|
|
31
27
|
getAllAccountSso,
|
|
32
28
|
getAllGroupMapping,
|
|
33
|
-
getAllMemberFidoCredentials,
|
|
29
|
+
getAllMemberFidoCredentials, getFeatures,
|
|
34
30
|
getGroupById,
|
|
35
31
|
getGroupResources,
|
|
36
32
|
getGroupResources1,
|
|
@@ -66,9 +62,6 @@ import {
|
|
|
66
62
|
isCreatedScmCredentials,
|
|
67
63
|
isCreatedScmCredentials1,
|
|
68
64
|
listAccountMemberFavorites,
|
|
69
|
-
listExtensionLinks,
|
|
70
|
-
listExtensions,
|
|
71
|
-
listExtensionVersions,
|
|
72
65
|
listMemberFavoritesByResource,
|
|
73
66
|
listScmCredentials,
|
|
74
67
|
listScmCredentials1, partialUpdateSso, personalAccessTokenAuthorization,
|
|
@@ -78,8 +71,6 @@ import {
|
|
|
78
71
|
scmCredentialSave, scmCredentialSave1, scmCredentialUpdate, scmCredentialUpdate1, scmDelete, sendDownloadEmail, ssoAddAttributes,
|
|
79
72
|
ssoConfigure, ssoGetAttributesConfig, ssoParseConfigurationFile, update1,
|
|
80
73
|
updateAccountRole,
|
|
81
|
-
updateExtension,
|
|
82
|
-
updateExtensionLink,
|
|
83
74
|
updateGroupMapping,
|
|
84
75
|
updateMemberPreferences,
|
|
85
76
|
updatePartnerAccountAdminData,
|
|
@@ -619,72 +610,6 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
619
610
|
* Get Service Credentials
|
|
620
611
|
*/
|
|
621
612
|
allServiceCredentialsWithPagination = this.query(getServiceCredentials)
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* Creates an extension.
|
|
625
|
-
*/
|
|
626
|
-
createExtension = this.mutation(createExtension)
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Deletes an extension.
|
|
630
|
-
*/
|
|
631
|
-
deleteExtension = this.mutation(deleteExtension)
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* Updates an extension with a patch operation.
|
|
635
|
-
*/
|
|
636
|
-
patchExtension = this.mutation(updateExtension)
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Lists all extensions.
|
|
640
|
-
*/
|
|
641
|
-
extensions = this.query(listExtensions)
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* Lists all versions of an extension.
|
|
645
|
-
*/
|
|
646
|
-
extensionVersions = this.query(listExtensionVersions)
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Gets a specific version of an extension.
|
|
650
|
-
*/
|
|
651
|
-
getExtensionVersion = this.query(getExtensionVersion)
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Gets the active version of an extension.
|
|
655
|
-
*/
|
|
656
|
-
getActiveExtensionVersion = this.query(getActiveExtensionVersion)
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* Creates a new version of an extension.
|
|
660
|
-
*/
|
|
661
|
-
createExtensionVersion = this.mutation(createExtensionVersion)
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* Deletes a specific version of an extension.
|
|
665
|
-
*/
|
|
666
|
-
deleteExtensionVersion = this.mutation(deleteExtensionVersion)
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* Lists all extension links.
|
|
670
|
-
*/
|
|
671
|
-
extensionLinks = this.query(listExtensionLinks)
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* Updates an extension link with a patch operation.
|
|
675
|
-
*/
|
|
676
|
-
patchExtensionLink = this.mutation(updateExtensionLink)
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* Creates a new extension link.
|
|
680
|
-
*/
|
|
681
|
-
createExtensionLink = this.mutation(createExtensionLink)
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* Deletes an extension link.
|
|
685
|
-
*/
|
|
686
|
-
deleteExtensionLink = this.mutation(deleteExtensionLink)
|
|
687
|
-
|
|
688
613
|
}
|
|
689
614
|
|
|
690
615
|
export const accountClient = new AccountClient()
|