@stack-spot/portal-network 0.231.0 → 0.233.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/api/account.d.ts +294 -677
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +274 -466
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/agent-tools.d.ts +88 -17
  7. package/dist/api/agent-tools.d.ts.map +1 -1
  8. package/dist/api/agent-tools.js +70 -10
  9. package/dist/api/agent-tools.js.map +1 -1
  10. package/dist/api/ai.d.ts +4 -2
  11. package/dist/api/ai.d.ts.map +1 -1
  12. package/dist/api/ai.js +8 -4
  13. package/dist/api/ai.js.map +1 -1
  14. package/dist/api/dataIntegration.d.ts +87 -9
  15. package/dist/api/dataIntegration.d.ts.map +1 -1
  16. package/dist/api/dataIntegration.js +87 -8
  17. package/dist/api/dataIntegration.js.map +1 -1
  18. package/dist/api/workspace-ai.d.ts +22 -0
  19. package/dist/api/workspace-ai.d.ts.map +1 -1
  20. package/dist/api/workspace-ai.js +19 -0
  21. package/dist/api/workspace-ai.js.map +1 -1
  22. package/dist/client/account.d.ts.map +1 -1
  23. package/dist/client/account.js +180 -180
  24. package/dist/client/account.js.map +1 -1
  25. package/dist/client/agent-tools.d.ts +20 -1
  26. package/dist/client/agent-tools.d.ts.map +1 -1
  27. package/dist/client/agent-tools.js +10 -1
  28. package/dist/client/agent-tools.js.map +1 -1
  29. package/dist/client/ai.d.ts +18 -0
  30. package/dist/client/ai.d.ts.map +1 -1
  31. package/dist/client/ai.js +10 -1
  32. package/dist/client/ai.js.map +1 -1
  33. package/dist/client/data-integration.d.ts +26 -0
  34. package/dist/client/data-integration.d.ts.map +1 -1
  35. package/dist/client/data-integration.js +19 -1
  36. package/dist/client/data-integration.js.map +1 -1
  37. package/dist/client/workspace-ai.d.ts +10 -0
  38. package/dist/client/workspace-ai.d.ts.map +1 -1
  39. package/dist/client/workspace-ai.js +7 -1
  40. package/dist/client/workspace-ai.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/api/account.ts +321 -1006
  43. package/src/api/agent-tools.ts +164 -22
  44. package/src/api/ai.ts +12 -6
  45. package/src/api/dataIntegration.ts +190 -15
  46. package/src/api/workspace-ai.ts +45 -0
  47. package/src/client/account.ts +353 -329
  48. package/src/client/agent-tools.ts +49 -1
  49. package/src/client/ai.ts +5 -0
  50. package/src/client/data-integration.ts +12 -1
  51. package/src/client/workspace-ai.ts +2 -0
@@ -4,8 +4,8 @@
4
4
  * DO NOT MODIFY - This file has been generated using oazapfts.
5
5
  * See https://www.npmjs.com/package/oazapfts
6
6
  */
7
- import * as Oazapfts from "@oazapfts/runtime";
8
- import * as QS from "@oazapfts/runtime/query";
7
+ import * as Oazapfts from "@oazapfts/runtime"
8
+ import * as QS from "@oazapfts/runtime/query"
9
9
  export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
10
  headers: {},
11
11
  baseUrl: "/",
@@ -102,8 +102,10 @@ export type KnowledgeSourceItemResponse = {
102
102
  visibility_level: VisibilityLevelEnum;
103
103
  object_count: number;
104
104
  use_only: boolean;
105
+ username?: string | null;
106
+ created?: string | null;
105
107
  };
106
- export type ExceptionType = "DATAINTEGRATION_1000_INVALID_JWT" | "DATAINTEGRATION_1001_DECODE_JWT_ERROR" | "DATAINTEGRATION_1002_KNOWLEDGE_SOURCE_DOES_NOT_EXISTS" | "DATAINTEGRATION_1003_KNOWLEDGE_SOURCE_WRONG_TYPE" | "DATAINTEGRATION_1004_UNSUPPORTED_KNOWLEDGE_SOURCE_TYPE_FOR_UPLOAD" | "DATAINTEGRATION_1005_KNOWLEDGE_OBJECT_NOT_FOUND" | "DATAINTEGRATION_1006_UNSUPPORTED_FILE_TYPE" | "DATAINTEGRATION_1007_KNOWLEDGE_SOURCE_SLUG_ALREADY_EXISTS" | "DATAINTEGRATION_1008_KNOWLEDGE_SOURCE_NOT_FOUND" | "DATAINTEGRATION_1009_KNOWLEDGE_SOURCE_CANNOT_BE_ASSOCIATED" | "DATAINTEGRATION_1010_KNOWLEDGE_SOURCE_NOT_ACCOUNT_VISIBLE" | "DATAINTEGRATION_1011_ACCOUNT_SETTINGS_NOT_FOUND" | "DATAINTEGRATION_1012_SECRET_NOT_FOUND" | "DATAINTEGRATION_1013_STRATEGY_NOT_FOUND" | "DATAINTEGRATION_1014_EMBEDDING_INTEGRATION_ERROR" | "DATAINTEGRATION_1015_KNOWLEDGE_OBJECT_UNEXPECTED_ERROR" | "DATAINTEGRATION_1016_FILE_UPLOAD_DOES_NOT_EXISTS" | "DATAINTEGRATION_1017_INVALID_VISIBILITY_CHANGE" | "DATAINTEGRATION_1018_TOKENS_USAGE_LIMIT_REACHED" | "DATAINTEGRATION_1019_KNOWLEDGE_SOURCE_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1020_FILE_UPLOAD_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1021_FILE_UPLOAD_INDEXED_OR_NOT_SPLITTED" | "DATAINTEGRATION_1022_KNOWLEDGE_GROUP_NOT_FOUND" | "DATAINTEGRATION_1023_FILE_UPLOAD_UNSUPPORTED_TARGET" | "DATAINTEGRATION_1024_FILE_UPLOAD_OPENAPI_SPEC_ERROR" | "DATAINTEGRATION_1025_FILE_UPLOAD_INVALID_SCRIPT_CONTENT" | "DATAINTEGRATION_1026_FILE_UPLOAD_EMPTY_SCRIPT_CONTENT" | "DATAINTEGRATION_1027_FILE_UPLOAD_INVALID_SCRIPT_EXECUTION_STATE_ID" | "DATAINTEGRATION_2000_LLM_INTEGRATION_ERROR" | "DATAINTEGRATION_2001_LLM_RATE_LIMIT_ERROR" | "DATAINTEGRATION_2002_LLM_PROMPT_TOO_LARGE_ERROR" | "DATAINTEGRATION_2003_LLM_FILE_TOO_LARGE_ERROR" | "DATAINTEGRATION_3000_FEATURE_DISABLED_ERROR" | "DATAINTEGRATION_5000_UNEXPECTED_ERROR" | "DATAINTEGRATION_6000_FORBIDDEN" | "DATAINTEGRATION_8001_ACCOUNT_API_ERROR" | "DATAINTEGRATION_4001_FAVORITE_ALREADY_EXISTS" | "DATAINTEGRATION_4002_FAVORITE_NOT_FOUND" | "DATAINTEGRATION_5001_DEFAULT_MODEL_NAME_NOT_FOUND" | "DATAINTEGRATION_9001_CONVERSATION_NOT_FOUND" | "DATAINTEGRATION_9002_INVALID_ID";
108
+ export type ExceptionType = "DATAINTEGRATION_1000_INVALID_JWT" | "DATAINTEGRATION_1001_DECODE_JWT_ERROR" | "DATAINTEGRATION_1002_KNOWLEDGE_SOURCE_DOES_NOT_EXISTS" | "DATAINTEGRATION_1003_KNOWLEDGE_SOURCE_WRONG_TYPE" | "DATAINTEGRATION_1004_UNSUPPORTED_KNOWLEDGE_SOURCE_TYPE_FOR_UPLOAD" | "DATAINTEGRATION_1005_KNOWLEDGE_OBJECT_NOT_FOUND" | "DATAINTEGRATION_1006_UNSUPPORTED_FILE_TYPE" | "DATAINTEGRATION_1007_KNOWLEDGE_SOURCE_SLUG_ALREADY_EXISTS" | "DATAINTEGRATION_1008_KNOWLEDGE_SOURCE_NOT_FOUND" | "DATAINTEGRATION_1009_KNOWLEDGE_SOURCE_CANNOT_BE_ASSOCIATED" | "DATAINTEGRATION_1010_KNOWLEDGE_SOURCE_NOT_ACCOUNT_VISIBLE" | "DATAINTEGRATION_1011_ACCOUNT_SETTINGS_NOT_FOUND" | "DATAINTEGRATION_1012_SECRET_NOT_FOUND" | "DATAINTEGRATION_1013_STRATEGY_NOT_FOUND" | "DATAINTEGRATION_1014_EMBEDDING_INTEGRATION_ERROR" | "DATAINTEGRATION_1015_KNOWLEDGE_OBJECT_UNEXPECTED_ERROR" | "DATAINTEGRATION_1016_FILE_UPLOAD_DOES_NOT_EXISTS" | "DATAINTEGRATION_1017_INVALID_VISIBILITY_CHANGE" | "DATAINTEGRATION_1018_TOKENS_USAGE_LIMIT_REACHED" | "DATAINTEGRATION_1019_KNOWLEDGE_SOURCE_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1020_FILE_UPLOAD_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1021_FILE_UPLOAD_INDEXED_OR_NOT_SPLITTED" | "DATAINTEGRATION_1022_KNOWLEDGE_GROUP_NOT_FOUND" | "DATAINTEGRATION_1023_FILE_UPLOAD_UNSUPPORTED_TARGET" | "DATAINTEGRATION_1024_FILE_UPLOAD_OPENAPI_SPEC_ERROR" | "DATAINTEGRATION_1025_FILE_UPLOAD_INVALID_SCRIPT_CONTENT" | "DATAINTEGRATION_1026_FILE_UPLOAD_EMPTY_SCRIPT_CONTENT" | "DATAINTEGRATION_1027_FILE_UPLOAD_INVALID_SCRIPT_EXECUTION_STATE_ID" | "DATAINTEGRATION_1028_FILE_UPLOAD_INSECURE_SCRIPT_CONTENT" | "DATAINTEGRATION_2000_LLM_INTEGRATION_ERROR" | "DATAINTEGRATION_2001_LLM_RATE_LIMIT_ERROR" | "DATAINTEGRATION_2002_LLM_PROMPT_TOO_LARGE_ERROR" | "DATAINTEGRATION_2003_LLM_FILE_TOO_LARGE_ERROR" | "DATAINTEGRATION_3000_FEATURE_DISABLED_ERROR" | "DATAINTEGRATION_5000_UNEXPECTED_ERROR" | "DATAINTEGRATION_6000_FORBIDDEN" | "DATAINTEGRATION_8001_ACCOUNT_API_ERROR" | "DATAINTEGRATION_4001_FAVORITE_ALREADY_EXISTS" | "DATAINTEGRATION_4002_FAVORITE_NOT_FOUND" | "DATAINTEGRATION_5001_DEFAULT_MODEL_NAME_NOT_FOUND" | "DATAINTEGRATION_9001_CONVERSATION_NOT_FOUND" | "DATAINTEGRATION_9002_INVALID_ID";
107
109
  export type HttpErrorResponse = {
108
110
  "type"?: string;
109
111
  status: string;
@@ -115,6 +117,23 @@ export type HttpErrorResponse = {
115
117
  export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
116
118
  export type KnowledgeSourceSearchRequest = {
117
119
  ids: string[];
120
+ is_resource_access_manager?: boolean | null;
121
+ };
122
+ export type OrderDirection = "ASC" | "DESC";
123
+ export type OrderByFields = "name" | "visibility_level" | "username" | "created" | "type";
124
+ export type KnowledgeSourceAccountListResponseV1 = {
125
+ name: string;
126
+ username: string | null;
127
+ "type": KnowledgeSourceTypeEnum;
128
+ creator: string | null;
129
+ created_at?: string | null;
130
+ visibility_level: string;
131
+ id: string;
132
+ slug: string;
133
+ };
134
+ export type PaginatedResponseKnowledgeSourceAccountListResponseV1 = {
135
+ total_pages: number;
136
+ items: KnowledgeSourceAccountListResponseV1[];
118
137
  };
119
138
  export type KnowledgeSourcePatchesRequest = {
120
139
  name: string;
@@ -126,6 +145,7 @@ export type KnowledgeSourcesPublishRequest = {
126
145
  };
127
146
  export type KnowledgeSourcePublishBatchRequest = {
128
147
  ids: string[];
148
+ is_resource_access_manager?: boolean | null;
129
149
  };
130
150
  export type ForkKnowledgeSourceRequest = {
131
151
  slug: string;
@@ -331,6 +351,7 @@ export type ConversationHistoryResponse = {
331
351
  [key: string]: any;
332
352
  } | null;
333
353
  updated: string | null;
354
+ agent_version_number?: number | null;
334
355
  };
335
356
  export type ConversationResponse = {
336
357
  id: string;
@@ -348,9 +369,9 @@ export type ConversationUpdateTitleRequest = {
348
369
  };
349
370
  export type ConversationHistoryRequest = {
350
371
  agent_id: string;
351
- built_in: boolean;
352
372
  user_input: string;
353
373
  ai_response: string;
374
+ built_in?: boolean;
354
375
  tools?: {
355
376
  [key: string]: any;
356
377
  };
@@ -360,6 +381,7 @@ export type ConversationHistoryRequest = {
360
381
  llm_response?: {
361
382
  [key: string]: any;
362
383
  };
384
+ agent_version_number?: number | null;
363
385
  };
364
386
  export type SearchConversationHistoryRequest = {
365
387
  query: string;
@@ -707,6 +729,46 @@ export function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, au
707
729
  })
708
730
  })));
709
731
  }
732
+ /**
733
+ * List Account Ks
734
+ */
735
+ export function listAccountKsV1KnowledgeSourcesAccountGet({ name, size, page, username, types, order, orderBy, xAccountId, xUsername, authorization }: {
736
+ name?: string | null;
737
+ size?: number;
738
+ page?: number;
739
+ username?: string[] | null;
740
+ types?: KnowledgeSourceTypeEnum[];
741
+ order?: OrderDirection | null;
742
+ orderBy?: OrderByFields | null;
743
+ xAccountId?: string | null;
744
+ xUsername?: string | null;
745
+ authorization: string;
746
+ }, opts?: Oazapfts.RequestOpts) {
747
+ return oazapfts.ok(oazapfts.fetchJson<{
748
+ status: 200;
749
+ data: PaginatedResponseKnowledgeSourceAccountListResponseV1;
750
+ } | {
751
+ status: 404;
752
+ } | {
753
+ status: 422;
754
+ data: HttpValidationError;
755
+ }>(`/v1/knowledge-sources/account${QS.query(QS.explode({
756
+ name,
757
+ size,
758
+ page,
759
+ username,
760
+ types,
761
+ order,
762
+ order_by: orderBy
763
+ }))}`, {
764
+ ...opts,
765
+ headers: oazapfts.mergeHeaders(opts?.headers, {
766
+ "x-account-id": xAccountId,
767
+ "x-username": xUsername,
768
+ authorization
769
+ })
770
+ }));
771
+ }
710
772
  /**
711
773
  * Find Ks
712
774
  */
@@ -771,9 +833,9 @@ export function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsernam
771
833
  */
772
834
  export function deleteKsV1KnowledgeSourcesSlugDelete({ slug, xAccountId, xUsername, authorization }: {
773
835
  slug: string;
774
- xAccountId: string;
775
- xUsername: string;
776
- authorization: string;
836
+ xAccountId?: string;
837
+ xUsername?: string;
838
+ authorization?: string;
777
839
  }, opts?: Oazapfts.RequestOpts) {
778
840
  return oazapfts.ok(oazapfts.fetchJson<{
779
841
  status: 204;
@@ -828,8 +890,9 @@ export function existsKsV1KnowledgeSourcesSlugExistsGet({ slug, xAccountId, xUse
828
890
  /**
829
891
  * Share Ks
830
892
  */
831
- export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUsername, authorization }: {
893
+ export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, isResourceAccessManager, xAccountId, xUsername, authorization }: {
832
894
  slug: string;
895
+ isResourceAccessManager?: boolean | null;
833
896
  xAccountId?: string | null;
834
897
  xUsername?: string | null;
835
898
  authorization: string;
@@ -845,7 +908,9 @@ export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUser
845
908
  } | {
846
909
  status: 422;
847
910
  data: HttpErrorResponse;
848
- }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/share`, {
911
+ }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/share${QS.query(QS.explode({
912
+ is_resource_access_manager: isResourceAccessManager
913
+ }))}`, {
849
914
  ...opts,
850
915
  method: "POST",
851
916
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -855,6 +920,39 @@ export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUser
855
920
  })
856
921
  }));
857
922
  }
923
+ /**
924
+ * Update Visibility
925
+ */
926
+ export function updateVisibilityV1KnowledgeSourcesSlugVisibilityPatch({ slug, visibility, xAccountId, xUsername, authorization }: {
927
+ slug: string;
928
+ visibility: VisibilityLevelEnum;
929
+ xAccountId?: string | null;
930
+ xUsername?: string | null;
931
+ authorization: string;
932
+ }, opts?: Oazapfts.RequestOpts) {
933
+ return oazapfts.ok(oazapfts.fetchJson<{
934
+ status: 204;
935
+ } | {
936
+ status: 403;
937
+ data: HttpErrorResponse;
938
+ } | {
939
+ status: 404;
940
+ data: HttpErrorResponse;
941
+ } | {
942
+ status: 422;
943
+ data: HttpErrorResponse;
944
+ }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/visibility${QS.query(QS.explode({
945
+ visibility
946
+ }))}`, {
947
+ ...opts,
948
+ method: "PATCH",
949
+ headers: oazapfts.mergeHeaders(opts?.headers, {
950
+ "x-account-id": xAccountId,
951
+ "x-username": xUsername,
952
+ authorization
953
+ })
954
+ }));
955
+ }
858
956
  /**
859
957
  * Add Favorite
860
958
  */
@@ -918,8 +1016,9 @@ export function deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete({ slug, xAcco
918
1016
  /**
919
1017
  * Publish Ks
920
1018
  */
921
- export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, xUsername, authorization, body }: {
1019
+ export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, isResourceAccessManager, xAccountId, xUsername, authorization, body }: {
922
1020
  slug: string;
1021
+ isResourceAccessManager?: boolean | null;
923
1022
  xAccountId?: string | null;
924
1023
  xUsername?: string | null;
925
1024
  authorization: string;
@@ -936,7 +1035,9 @@ export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, x
936
1035
  } | {
937
1036
  status: 422;
938
1037
  data: HttpValidationError;
939
- }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/publish`, oazapfts.json({
1038
+ }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/publish${QS.query(QS.explode({
1039
+ is_resource_access_manager: isResourceAccessManager
1040
+ }))}`, oazapfts.json({
940
1041
  ...opts,
941
1042
  method: "POST",
942
1043
  body,
@@ -1106,7 +1207,12 @@ export function listKosChecksumsV1KnowledgeSourcesKsSlugObjectsChecksumsGet({ ks
1106
1207
  /**
1107
1208
  * Vectorize Snippet Ks
1108
1209
  */
1109
- export function vectorizeSnippetKsV1KnowledgeSourcesSlugSnippetsPost(opts?: Oazapfts.RequestOpts) {
1210
+ export function vectorizeSnippetKsV1KnowledgeSourcesSlugSnippetsPost({ slug, xAccountId, xUsername, authorization }: {
1211
+ slug: string;
1212
+ xAccountId?: string | null;
1213
+ xUsername?: string | null;
1214
+ authorization: string;
1215
+ }, opts?: Oazapfts.RequestOpts) {
1110
1216
  return oazapfts.ok(oazapfts.fetchJson<{
1111
1217
  status: 201;
1112
1218
  data: any;
@@ -1114,13 +1220,23 @@ export function vectorizeSnippetKsV1KnowledgeSourcesSlugSnippetsPost(opts?: Oaza
1114
1220
  status: 404;
1115
1221
  }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets`, {
1116
1222
  ...opts,
1117
- method: "POST"
1223
+ method: "POST",
1224
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1225
+ "x-account-id": xAccountId,
1226
+ "x-username": xUsername,
1227
+ authorization
1228
+ })
1118
1229
  }));
1119
1230
  }
1120
1231
  /**
1121
1232
  * Vectorize Custom Ks
1122
1233
  */
1123
- export function vectorizeCustomKsV1KnowledgeSourcesSlugCustomPost(opts?: Oazapfts.RequestOpts) {
1234
+ export function vectorizeCustomKsV1KnowledgeSourcesSlugCustomPost({ slug, xAccountId, xUsername, authorization }: {
1235
+ slug: string;
1236
+ xAccountId?: string | null;
1237
+ xUsername?: string | null;
1238
+ authorization: string;
1239
+ }, opts?: Oazapfts.RequestOpts) {
1124
1240
  return oazapfts.ok(oazapfts.fetchJson<{
1125
1241
  status: 201;
1126
1242
  data: any;
@@ -1128,7 +1244,12 @@ export function vectorizeCustomKsV1KnowledgeSourcesSlugCustomPost(opts?: Oazapft
1128
1244
  status: 404;
1129
1245
  }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom`, {
1130
1246
  ...opts,
1131
- method: "POST"
1247
+ method: "POST",
1248
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1249
+ "x-account-id": xAccountId,
1250
+ "x-username": xUsername,
1251
+ authorization
1252
+ })
1132
1253
  }));
1133
1254
  }
1134
1255
  /**
@@ -2289,3 +2410,57 @@ export function getScriptExecutionStatePresignedUrlV1ScriptExecutionIdPresignedU
2289
2410
  })
2290
2411
  }));
2291
2412
  }
2413
+ /**
2414
+ * Put Script Execution Step Logs
2415
+ */
2416
+ export function putScriptExecutionStepLogsV1ScriptExecutionIdLogsPut({ id, xAccountId, xUsername, authorization, body }: {
2417
+ id: string;
2418
+ xAccountId?: string | null;
2419
+ xUsername?: string | null;
2420
+ authorization: string;
2421
+ body?: string;
2422
+ }, opts?: Oazapfts.RequestOpts) {
2423
+ return oazapfts.ok(oazapfts.fetchJson<{
2424
+ status: 204;
2425
+ } | {
2426
+ status: 404;
2427
+ } | {
2428
+ status: 422;
2429
+ data: HttpValidationError;
2430
+ }>(`/v1/script-execution/${encodeURIComponent(id)}/logs`, {
2431
+ ...opts,
2432
+ method: "PUT",
2433
+ body,
2434
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2435
+ "x-account-id": xAccountId,
2436
+ "x-username": xUsername,
2437
+ authorization
2438
+ })
2439
+ }));
2440
+ }
2441
+ /**
2442
+ * Get Script Execution Log Presigned Url
2443
+ */
2444
+ export function getScriptExecutionLogPresignedUrlV1ScriptExecutionIdLogsPresignedUrlGet({ id, xAccountId, xUsername, authorization }: {
2445
+ id: string;
2446
+ xAccountId?: string | null;
2447
+ xUsername?: string | null;
2448
+ authorization: string;
2449
+ }, opts?: Oazapfts.RequestOpts) {
2450
+ return oazapfts.ok(oazapfts.fetchJson<{
2451
+ status: 200;
2452
+ data: GetPresignedUrlResponse;
2453
+ } | {
2454
+ status: 404;
2455
+ } | {
2456
+ status: 422;
2457
+ data: HttpValidationError;
2458
+ }>(`/v1/script-execution/${encodeURIComponent(id)}/logs/presigned/url`, {
2459
+ ...opts,
2460
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2461
+ "x-account-id": xAccountId,
2462
+ "x-username": xUsername,
2463
+ authorization
2464
+ })
2465
+ }));
2466
+ }
@@ -38,6 +38,7 @@ export type WorkspaceResponse = {
38
38
  description?: string | null;
39
39
  logo?: string | null;
40
40
  created_by: string;
41
+ created_at?: string | null;
41
42
  };
42
43
  export type UpdateWorkspaceRequest = {
43
44
  name: string;
@@ -50,6 +51,12 @@ export type ShareableLinkResponse = {
50
51
  "type": string;
51
52
  created_by: string;
52
53
  };
54
+ export type OrderDirection = "ASC" | "DESC";
55
+ export type OrderByFields = "name" | "created_by" | "created";
56
+ export type PaginatedResponseWorkspaceResponse = {
57
+ total_pages: number;
58
+ items: WorkspaceResponse[];
59
+ };
53
60
  export type Action = "view" | "edit" | "grant_access";
54
61
  export type PermissionListRequest = {
55
62
  identifier: string;
@@ -99,6 +106,8 @@ export type PermissionForSharedRequest = {
99
106
  };
100
107
  export type PermissionListForSharedRequest = {
101
108
  users: PermissionForSharedRequest[];
109
+ /** Indicates if the request originated from the Access Manager page */
110
+ is_resource_access_manager?: boolean | null;
102
111
  };
103
112
  export type ResourceMembersResponse = {
104
113
  id: string;
@@ -316,6 +325,42 @@ export function createShareableLinkV1WorkspacesWorkspaceIdSharePost({ workspaceI
316
325
  })
317
326
  }));
318
327
  }
328
+ /**
329
+ * List Workspaces
330
+ */
331
+ export function listWorkspacesV2WorkspacesGet({ name, size, page, username, order, orderBy, authorization, xAccountId }: {
332
+ name?: string | null;
333
+ size?: number;
334
+ page?: number;
335
+ username?: string[] | null;
336
+ order?: OrderDirection | null;
337
+ orderBy?: OrderByFields | null;
338
+ authorization: string;
339
+ xAccountId?: string | null;
340
+ }, opts?: Oazapfts.RequestOpts) {
341
+ return oazapfts.ok(oazapfts.fetchJson<{
342
+ status: 200;
343
+ data: PaginatedResponseWorkspaceResponse;
344
+ } | {
345
+ status: 404;
346
+ } | {
347
+ status: 422;
348
+ data: HttpValidationError;
349
+ }>(`/v2/workspaces${QS.query(QS.explode({
350
+ name,
351
+ size,
352
+ page,
353
+ username,
354
+ order,
355
+ order_by: orderBy
356
+ }))}`, {
357
+ ...opts,
358
+ headers: oazapfts.mergeHeaders(opts?.headers, {
359
+ authorization,
360
+ "x-account-id": xAccountId
361
+ })
362
+ }));
363
+ }
319
364
  /**
320
365
  * Add Permission
321
366
  */