lemma-sdk 0.2.6 → 0.2.8
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/README.md +1 -1
- package/dist/browser/lemma-client.js +674 -1004
- package/dist/client.d.ts +0 -2
- package/dist/client.js +0 -3
- package/dist/index.d.ts +0 -1
- package/dist/namespaces/files.d.ts +8 -8
- package/dist/namespaces/files.js +16 -16
- package/dist/namespaces/records.d.ts +10 -10
- package/dist/namespaces/records.js +24 -24
- package/dist/namespaces/tables.d.ts +7 -7
- package/dist/namespaces/tables.js +13 -13
- package/dist/namespaces/workflows.d.ts +4 -4
- package/dist/openapi_client/index.d.ts +16 -15
- package/dist/openapi_client/index.js +4 -2
- package/dist/openapi_client/models/AccountCredentialsResponseSchema.d.ts +1 -1
- package/dist/openapi_client/models/AccountResponseSchema.d.ts +6 -6
- package/dist/openapi_client/models/{AgentNode_Input.d.ts → AgentNode.d.ts} +2 -2
- package/dist/openapi_client/models/{AgentNode_Output.d.ts → AgentNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/AgentResponse.d.ts +10 -8
- package/dist/openapi_client/models/AppTriggerResponseSchema.d.ts +4 -4
- package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +4 -4
- package/dist/openapi_client/models/ApplicationDetailResponseSchema.d.ts +6 -6
- package/dist/openapi_client/models/ApplicationResponseSchema.d.ts +5 -5
- package/dist/openapi_client/models/AssistantResponse.d.ts +9 -7
- package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +3 -3
- package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +3 -3
- package/dist/openapi_client/models/ColumnSchema.d.ts +22 -22
- package/dist/openapi_client/models/ConnectRequestResponseSchema.d.ts +4 -4
- package/dist/openapi_client/models/ConversationMessageResponse.d.ts +2 -2
- package/dist/openapi_client/models/ConversationResponse.d.ts +8 -8
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +6 -4
- package/dist/openapi_client/models/CreateAssistantRequest.d.ts +5 -3
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +3 -3
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +2 -3
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +6 -1
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +8 -6
- package/dist/openapi_client/models/CreateTableRequest.d.ts +8 -8
- package/dist/openapi_client/models/CreateTriggerRequest.d.ts +3 -3
- package/dist/openapi_client/models/DataStoreFlowStart.d.ts +6 -6
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +3 -1
- package/dist/openapi_client/models/{DecisionNode_Input.d.ts → DecisionNode.d.ts} +2 -2
- package/dist/openapi_client/models/{DecisionNode_Output.d.ts → DecisionNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +1 -1
- package/dist/openapi_client/models/DeskBundleUploadResponse.d.ts +1 -1
- package/dist/openapi_client/models/DeskResponse.d.ts +6 -7
- package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/EndNode.d.ts +1 -1
- package/dist/openapi_client/models/EndNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/EventFlowStart.d.ts +5 -5
- package/dist/openapi_client/models/FileInfo.d.ts +3 -3
- package/dist/openapi_client/models/FileResponse.d.ts +13 -9
- package/dist/openapi_client/models/FileSearchRequest.d.ts +2 -2
- package/dist/openapi_client/models/FileSearchResponse.d.ts +1 -1
- package/dist/openapi_client/models/FileSearchResultSchema.d.ts +1 -1
- package/dist/openapi_client/models/FileUploadResponse.d.ts +2 -2
- package/dist/openapi_client/models/FileVisibility.d.ts +4 -0
- package/dist/openapi_client/models/FileVisibility.js +9 -0
- package/dist/openapi_client/models/FlowInstallEntity.d.ts +5 -5
- package/dist/openapi_client/models/FlowResponse.d.ts +23 -0
- package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -10
- package/dist/openapi_client/models/FlowStart.d.ts +4 -4
- package/dist/openapi_client/models/FormNode.d.ts +1 -1
- package/dist/openapi_client/models/FormNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/{FunctionNode_Input.d.ts → FunctionNode.d.ts} +2 -2
- package/dist/openapi_client/models/{FunctionNode_Output.d.ts → FunctionNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/FunctionResponse.d.ts +13 -11
- package/dist/openapi_client/models/FunctionRunResponse.d.ts +7 -7
- package/dist/openapi_client/models/IconUploadResponse.d.ts +1 -1
- package/dist/openapi_client/models/LoopNode.d.ts +1 -1
- package/dist/openapi_client/models/LoopNodeConfig.d.ts +4 -4
- package/dist/openapi_client/models/LoopNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/NotificationContent.d.ts +1 -1
- package/dist/openapi_client/models/OperationDetail.d.ts +1 -1
- package/dist/openapi_client/models/OperationExecutionRequest.d.ts +1 -1
- package/dist/openapi_client/models/OperationSummary.d.ts +1 -1
- package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +5 -5
- package/dist/openapi_client/models/OrganizationMemberResponse.d.ts +3 -3
- package/dist/openapi_client/models/OrganizationResponse.d.ts +1 -1
- package/dist/openapi_client/models/PlanResponse.d.ts +6 -6
- package/dist/openapi_client/models/PodAppConfigItem.d.ts +3 -3
- package/dist/openapi_client/models/PodCreateRequest.d.ts +3 -3
- package/dist/openapi_client/models/PodFlowConfigItem.d.ts +3 -3
- package/dist/openapi_client/models/PodListResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodMemberListResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodMemberResponse.d.ts +2 -2
- package/dist/openapi_client/models/PodPermissionsResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodResponse.d.ts +6 -6
- package/dist/openapi_client/models/PodUpdateRequest.d.ts +2 -2
- package/dist/openapi_client/models/RecentUsageResponse.d.ts +1 -1
- package/dist/openapi_client/models/RecordListResponse.d.ts +1 -1
- package/dist/openapi_client/models/RecordQueryRequest.d.ts +4 -4
- package/dist/openapi_client/models/RecordSort.d.ts +4 -4
- package/dist/openapi_client/models/SearchResult.d.ts +3 -3
- package/dist/openapi_client/models/SeatInfoResponse.d.ts +2 -2
- package/dist/openapi_client/models/SlackSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/StackFrame.d.ts +3 -3
- package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +4 -4
- package/dist/openapi_client/models/StepExecution.d.ts +4 -4
- package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +1 -1
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +7 -7
- package/dist/openapi_client/models/TableAccessEntry.d.ts +5 -0
- package/dist/openapi_client/models/TableAccessMode.d.ts +7 -0
- package/dist/openapi_client/models/TableAccessMode.js +12 -0
- package/dist/openapi_client/models/TableResponse.d.ts +5 -5
- package/dist/openapi_client/models/TaskMessageResponse.d.ts +2 -2
- package/dist/openapi_client/models/TaskResponse.d.ts +5 -5
- package/dist/openapi_client/models/TeamsSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/TextContent.d.ts +1 -1
- package/dist/openapi_client/models/ThinkingContent.d.ts +1 -1
- package/dist/openapi_client/models/ToolCallRequest.d.ts +2 -2
- package/dist/openapi_client/models/ToolCallResponse.d.ts +1 -1
- package/dist/openapi_client/models/TriggerResponse.d.ts +6 -6
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +5 -3
- package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +4 -2
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -4
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +11 -11
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +5 -5
- package/dist/openapi_client/models/UserProfileRequest.d.ts +2 -2
- package/dist/openapi_client/models/UserResponse.d.ts +6 -6
- package/dist/openapi_client/models/ValidationError.d.ts +2 -2
- package/dist/openapi_client/models/VerifyTokenResponse.d.ts +1 -1
- package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
- package/dist/openapi_client/models/WaitUntilNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/WebSearchAgentResponse.d.ts +8 -8
- package/dist/openapi_client/models/WebSearchRequest.d.ts +4 -4
- package/dist/openapi_client/models/WebSearchResponse.d.ts +8 -8
- package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +6 -6
- package/dist/openapi_client/models/WorkflowEdge.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +7 -7
- package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
- package/dist/openapi_client/models/update.d.ts +3 -1
- package/dist/openapi_client/services/AgentFilesService.d.ts +46 -0
- package/dist/openapi_client/services/AgentFilesService.js +103 -0
- package/dist/openapi_client/services/AgentsService.d.ts +15 -15
- package/dist/openapi_client/services/AgentsService.js +33 -33
- package/dist/openapi_client/services/ApplicationsService.d.ts +7 -7
- package/dist/openapi_client/services/ApplicationsService.js +16 -16
- package/dist/openapi_client/services/AssistantSurfacesService.d.ts +9 -9
- package/dist/openapi_client/services/AssistantSurfacesService.js +19 -19
- package/dist/openapi_client/services/AssistantsService.d.ts +13 -13
- package/dist/openapi_client/services/AssistantsService.js +31 -31
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +15 -15
- package/dist/openapi_client/services/BillingSubscriptionsService.js +22 -22
- package/dist/openapi_client/services/BillingUsageService.d.ts +7 -7
- package/dist/openapi_client/services/BillingUsageService.js +10 -10
- package/dist/openapi_client/services/ConversationsService.d.ts +13 -13
- package/dist/openapi_client/services/ConversationsService.js +27 -27
- package/dist/openapi_client/services/DesksService.d.ts +13 -13
- package/dist/openapi_client/services/DesksService.js +31 -31
- package/dist/openapi_client/services/FilesService.d.ts +21 -72
- package/dist/openapi_client/services/FilesService.js +39 -154
- package/dist/openapi_client/services/FunctionsService.d.ts +21 -21
- package/dist/openapi_client/services/FunctionsService.js +45 -45
- package/dist/openapi_client/services/IntegrationsService.d.ts +24 -24
- package/dist/openapi_client/services/IntegrationsService.js +47 -47
- package/dist/openapi_client/services/OrganizationsService.d.ts +46 -46
- package/dist/openapi_client/services/OrganizationsService.js +88 -88
- package/dist/openapi_client/services/PodMembersService.d.ts +13 -13
- package/dist/openapi_client/services/PodMembersService.js +29 -29
- package/dist/openapi_client/services/PodsService.d.ts +18 -18
- package/dist/openapi_client/services/PodsService.js +34 -34
- package/dist/openapi_client/services/PublicDesksService.d.ts +10 -0
- package/dist/openapi_client/services/PublicDesksService.js +22 -0
- package/dist/openapi_client/services/RecordsService.d.ts +39 -48
- package/dist/openapi_client/services/RecordsService.js +71 -89
- package/dist/openapi_client/services/TablesService.d.ts +18 -25
- package/dist/openapi_client/services/TablesService.js +39 -53
- package/dist/openapi_client/services/TasksService.d.ts +19 -19
- package/dist/openapi_client/services/TasksService.js +39 -39
- package/dist/openapi_client/services/TriggersService.d.ts +16 -16
- package/dist/openapi_client/services/TriggersService.js +35 -35
- package/dist/openapi_client/services/WebhooksService.d.ts +8 -8
- package/dist/openapi_client/services/WebhooksService.js +18 -18
- package/dist/openapi_client/services/WorkflowsService.d.ts +59 -59
- package/dist/openapi_client/services/WorkflowsService.js +115 -115
- package/dist/react/useAssistantSession.js +28 -23
- package/package.json +1 -1
- package/dist/namespaces/datastores.d.ts +0 -18
- package/dist/namespaces/datastores.js +0 -28
- package/dist/openapi_client/models/CreateDatastoreRequest.d.ts +0 -21
- package/dist/openapi_client/models/DatastoreListResponse.d.ts +0 -9
- package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +0 -9
- package/dist/openapi_client/models/DatastoreResponse.d.ts +0 -15
- package/dist/openapi_client/models/FlowEntity.d.ts +0 -26
- package/dist/openapi_client/models/RecordQueryResponse.d.ts +0 -13
- package/dist/openapi_client/models/UpdateDatastoreRequest.d.ts +0 -17
- package/dist/openapi_client/models/UpdateDatastoreRequest.js +0 -1
- package/dist/openapi_client/services/DatastoreService.d.ts +0 -67
- package/dist/openapi_client/services/DatastoreService.js +0 -141
- package/dist/openapi_client/services/PublicSdkService.d.ts +0 -17
- package/dist/openapi_client/services/PublicSdkService.js +0 -35
- /package/dist/openapi_client/models/{AgentNode_Input.js → AgentNode.js} +0 -0
- /package/dist/openapi_client/models/{AgentNode_Output.js → AgentNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateDatastoreRequest.js → DecisionNode.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreListResponse.js → DecisionNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreQueryRequest.js → EndNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreResponse.js → FlowResponse.js} +0 -0
- /package/dist/openapi_client/models/{DecisionNode_Input.js → FormNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DecisionNode_Output.js → FunctionNode.js} +0 -0
- /package/dist/openapi_client/models/{FlowEntity.js → FunctionNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionNode_Input.js → LoopNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionNode_Output.js → TableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{RecordQueryResponse.js → WaitUntilNodeResponse.js} +0 -0
|
@@ -38,7 +38,6 @@ const generated_js_1 = require("./generated.js");
|
|
|
38
38
|
const http_js_1 = require("./http.js");
|
|
39
39
|
const agents_js_1 = require("./namespaces/agents.js");
|
|
40
40
|
const assistants_js_1 = require("./namespaces/assistants.js");
|
|
41
|
-
const datastores_js_1 = require("./namespaces/datastores.js");
|
|
42
41
|
const desks_js_1 = require("./namespaces/desks.js");
|
|
43
42
|
const files_js_1 = require("./namespaces/files.js");
|
|
44
43
|
const functions_js_1 = require("./namespaces/functions.js");
|
|
@@ -68,7 +67,6 @@ class LemmaClient {
|
|
|
68
67
|
}
|
|
69
68
|
return this._currentPodId;
|
|
70
69
|
};
|
|
71
|
-
this.datastores = new datastores_js_1.DatastoresNamespace(this._generated, podIdFn);
|
|
72
70
|
this.tables = new tables_js_1.TablesNamespace(this._generated, podIdFn);
|
|
73
71
|
this.records = new records_js_1.RecordsNamespace(this._generated, this._http, podIdFn);
|
|
74
72
|
this.files = new files_js_1.FilesNamespace(this._generated, this._http, podIdFn);
|
|
@@ -922,6 +920,31 @@ exports.AgentsService = void 0;
|
|
|
922
920
|
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
923
921
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
924
922
|
class AgentsService {
|
|
923
|
+
/**
|
|
924
|
+
* List Agents
|
|
925
|
+
* List all agents in a pod
|
|
926
|
+
* @param podId
|
|
927
|
+
* @param limit
|
|
928
|
+
* @param pageToken
|
|
929
|
+
* @returns AgentListResponse Successful Response
|
|
930
|
+
* @throws ApiError
|
|
931
|
+
*/
|
|
932
|
+
static agentList(podId, limit = 100, pageToken) {
|
|
933
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
934
|
+
method: 'GET',
|
|
935
|
+
url: '/pods/{pod_id}/agents',
|
|
936
|
+
path: {
|
|
937
|
+
'pod_id': podId,
|
|
938
|
+
},
|
|
939
|
+
query: {
|
|
940
|
+
'limit': limit,
|
|
941
|
+
'page_token': pageToken,
|
|
942
|
+
},
|
|
943
|
+
errors: {
|
|
944
|
+
422: `Validation Error`,
|
|
945
|
+
},
|
|
946
|
+
});
|
|
947
|
+
}
|
|
925
948
|
/**
|
|
926
949
|
* Create Agent
|
|
927
950
|
* Create a new agent in a pod
|
|
@@ -945,24 +968,20 @@ class AgentsService {
|
|
|
945
968
|
});
|
|
946
969
|
}
|
|
947
970
|
/**
|
|
948
|
-
*
|
|
949
|
-
*
|
|
971
|
+
* Delete Agent
|
|
972
|
+
* Delete an agent
|
|
950
973
|
* @param podId
|
|
951
|
-
* @param
|
|
952
|
-
* @
|
|
953
|
-
* @returns AgentListResponse Successful Response
|
|
974
|
+
* @param agentName
|
|
975
|
+
* @returns AgentMessageResponse Successful Response
|
|
954
976
|
* @throws ApiError
|
|
955
977
|
*/
|
|
956
|
-
static
|
|
978
|
+
static agentDelete(podId, agentName) {
|
|
957
979
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
958
|
-
method: '
|
|
959
|
-
url: '/pods/{pod_id}/agents',
|
|
980
|
+
method: 'DELETE',
|
|
981
|
+
url: '/pods/{pod_id}/agents/{agent_name}',
|
|
960
982
|
path: {
|
|
961
983
|
'pod_id': podId,
|
|
962
|
-
|
|
963
|
-
query: {
|
|
964
|
-
'limit': limit,
|
|
965
|
-
'page_token': pageToken,
|
|
984
|
+
'agent_name': agentName,
|
|
966
985
|
},
|
|
967
986
|
errors: {
|
|
968
987
|
422: `Validation Error`,
|
|
@@ -1014,27 +1033,6 @@ class AgentsService {
|
|
|
1014
1033
|
},
|
|
1015
1034
|
});
|
|
1016
1035
|
}
|
|
1017
|
-
/**
|
|
1018
|
-
* Delete Agent
|
|
1019
|
-
* Delete an agent
|
|
1020
|
-
* @param podId
|
|
1021
|
-
* @param agentName
|
|
1022
|
-
* @returns AgentMessageResponse Successful Response
|
|
1023
|
-
* @throws ApiError
|
|
1024
|
-
*/
|
|
1025
|
-
static agentDelete(podId, agentName) {
|
|
1026
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1027
|
-
method: 'DELETE',
|
|
1028
|
-
url: '/pods/{pod_id}/agents/{agent_name}',
|
|
1029
|
-
path: {
|
|
1030
|
-
'pod_id': podId,
|
|
1031
|
-
'agent_name': agentName,
|
|
1032
|
-
},
|
|
1033
|
-
errors: {
|
|
1034
|
-
422: `Validation Error`,
|
|
1035
|
-
},
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
1036
|
}
|
|
1039
1037
|
exports.AgentsService = AgentsService;
|
|
1040
1038
|
|
|
@@ -1609,187 +1607,6 @@ class ConversationsNamespace {
|
|
|
1609
1607
|
}
|
|
1610
1608
|
exports.ConversationsNamespace = ConversationsNamespace;
|
|
1611
1609
|
|
|
1612
|
-
},
|
|
1613
|
-
"./namespaces/datastores.js": function (module, exports, require) {
|
|
1614
|
-
"use strict";
|
|
1615
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1616
|
-
exports.DatastoresNamespace = void 0;
|
|
1617
|
-
const DatastoreService_js_1 = require("./openapi_client/services/DatastoreService.js");
|
|
1618
|
-
class DatastoresNamespace {
|
|
1619
|
-
constructor(client, podId) {
|
|
1620
|
-
this.client = client;
|
|
1621
|
-
this.podId = podId;
|
|
1622
|
-
}
|
|
1623
|
-
list(options = {}) {
|
|
1624
|
-
return this.client.request(() => DatastoreService_js_1.DatastoreService.datastoreList(this.podId(), options.limit ?? 100, options.pageToken));
|
|
1625
|
-
}
|
|
1626
|
-
create(payload) {
|
|
1627
|
-
return this.client.request(() => DatastoreService_js_1.DatastoreService.datastoreCreate(this.podId(), payload));
|
|
1628
|
-
}
|
|
1629
|
-
get(name) {
|
|
1630
|
-
return this.client.request(() => DatastoreService_js_1.DatastoreService.datastoreGet(this.podId(), name));
|
|
1631
|
-
}
|
|
1632
|
-
update(name, payload) {
|
|
1633
|
-
return this.client.request(() => DatastoreService_js_1.DatastoreService.datastoreUpdate(this.podId(), name, payload));
|
|
1634
|
-
}
|
|
1635
|
-
delete(name) {
|
|
1636
|
-
return this.client.request(() => DatastoreService_js_1.DatastoreService.datastoreDelete(this.podId(), name));
|
|
1637
|
-
}
|
|
1638
|
-
query(name, request) {
|
|
1639
|
-
const payload = typeof request === "string" ? { query: request } : request;
|
|
1640
|
-
return this.client.request(() => DatastoreService_js_1.DatastoreService.datastoreQuery(this.podId(), name, payload));
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
exports.DatastoresNamespace = DatastoresNamespace;
|
|
1644
|
-
|
|
1645
|
-
},
|
|
1646
|
-
"./openapi_client/services/DatastoreService.js": function (module, exports, require) {
|
|
1647
|
-
"use strict";
|
|
1648
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1649
|
-
exports.DatastoreService = void 0;
|
|
1650
|
-
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
1651
|
-
const request_js_1 = require("./openapi_client/core/request.js");
|
|
1652
|
-
class DatastoreService {
|
|
1653
|
-
/**
|
|
1654
|
-
* Create Datastore
|
|
1655
|
-
* Create a datastore namespace inside a pod. Use this before creating tables. Datastore names are normalized for stable API paths.
|
|
1656
|
-
* @param podId
|
|
1657
|
-
* @param requestBody
|
|
1658
|
-
* @returns DatastoreResponse Successful Response
|
|
1659
|
-
* @throws ApiError
|
|
1660
|
-
*/
|
|
1661
|
-
static datastoreCreate(podId, requestBody) {
|
|
1662
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1663
|
-
method: 'POST',
|
|
1664
|
-
url: '/pods/{pod_id}/datastores',
|
|
1665
|
-
path: {
|
|
1666
|
-
'pod_id': podId,
|
|
1667
|
-
},
|
|
1668
|
-
body: requestBody,
|
|
1669
|
-
mediaType: 'application/json',
|
|
1670
|
-
errors: {
|
|
1671
|
-
422: `Validation Error`,
|
|
1672
|
-
},
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
/**
|
|
1676
|
-
* List Datastores
|
|
1677
|
-
* List datastores available in the pod.
|
|
1678
|
-
* @param podId
|
|
1679
|
-
* @param limit Max number of datastores to return.
|
|
1680
|
-
* @param pageToken Cursor from a previous response to fetch the next page.
|
|
1681
|
-
* @returns DatastoreListResponse Successful Response
|
|
1682
|
-
* @throws ApiError
|
|
1683
|
-
*/
|
|
1684
|
-
static datastoreList(podId, limit = 100, pageToken) {
|
|
1685
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1686
|
-
method: 'GET',
|
|
1687
|
-
url: '/pods/{pod_id}/datastores',
|
|
1688
|
-
path: {
|
|
1689
|
-
'pod_id': podId,
|
|
1690
|
-
},
|
|
1691
|
-
query: {
|
|
1692
|
-
'limit': limit,
|
|
1693
|
-
'page_token': pageToken,
|
|
1694
|
-
},
|
|
1695
|
-
errors: {
|
|
1696
|
-
422: `Validation Error`,
|
|
1697
|
-
},
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
/**
|
|
1701
|
-
* Get Datastore
|
|
1702
|
-
* Get datastore metadata by datastore name.
|
|
1703
|
-
* @param podId
|
|
1704
|
-
* @param datastoreName
|
|
1705
|
-
* @returns DatastoreResponse Successful Response
|
|
1706
|
-
* @throws ApiError
|
|
1707
|
-
*/
|
|
1708
|
-
static datastoreGet(podId, datastoreName) {
|
|
1709
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1710
|
-
method: 'GET',
|
|
1711
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}',
|
|
1712
|
-
path: {
|
|
1713
|
-
'pod_id': podId,
|
|
1714
|
-
'datastore_name': datastoreName,
|
|
1715
|
-
},
|
|
1716
|
-
errors: {
|
|
1717
|
-
422: `Validation Error`,
|
|
1718
|
-
},
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
/**
|
|
1722
|
-
* Update Datastore
|
|
1723
|
-
* Update datastore metadata and event emission settings.
|
|
1724
|
-
* @param podId
|
|
1725
|
-
* @param datastoreName
|
|
1726
|
-
* @param requestBody
|
|
1727
|
-
* @returns DatastoreResponse Successful Response
|
|
1728
|
-
* @throws ApiError
|
|
1729
|
-
*/
|
|
1730
|
-
static datastoreUpdate(podId, datastoreName, requestBody) {
|
|
1731
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1732
|
-
method: 'PATCH',
|
|
1733
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}',
|
|
1734
|
-
path: {
|
|
1735
|
-
'pod_id': podId,
|
|
1736
|
-
'datastore_name': datastoreName,
|
|
1737
|
-
},
|
|
1738
|
-
body: requestBody,
|
|
1739
|
-
mediaType: 'application/json',
|
|
1740
|
-
errors: {
|
|
1741
|
-
422: `Validation Error`,
|
|
1742
|
-
},
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
/**
|
|
1746
|
-
* Delete Datastore
|
|
1747
|
-
* Delete a datastore and its underlying resources.
|
|
1748
|
-
* @param podId
|
|
1749
|
-
* @param datastoreName
|
|
1750
|
-
* @returns DatastoreMessageResponse Successful Response
|
|
1751
|
-
* @throws ApiError
|
|
1752
|
-
*/
|
|
1753
|
-
static datastoreDelete(podId, datastoreName) {
|
|
1754
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1755
|
-
method: 'DELETE',
|
|
1756
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}',
|
|
1757
|
-
path: {
|
|
1758
|
-
'pod_id': podId,
|
|
1759
|
-
'datastore_name': datastoreName,
|
|
1760
|
-
},
|
|
1761
|
-
errors: {
|
|
1762
|
-
422: `Validation Error`,
|
|
1763
|
-
},
|
|
1764
|
-
});
|
|
1765
|
-
}
|
|
1766
|
-
/**
|
|
1767
|
-
* Execute Query
|
|
1768
|
-
* Execute a read-only SQL query in the datastore schema. Mutating statements (`INSERT`, `UPDATE`, `DELETE`, `DROP`, etc.) are blocked.
|
|
1769
|
-
* @param podId
|
|
1770
|
-
* @param datastoreName
|
|
1771
|
-
* @param requestBody
|
|
1772
|
-
* @returns RecordQueryResponse Successful Response
|
|
1773
|
-
* @throws ApiError
|
|
1774
|
-
*/
|
|
1775
|
-
static datastoreQuery(podId, datastoreName, requestBody) {
|
|
1776
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1777
|
-
method: 'POST',
|
|
1778
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}/query',
|
|
1779
|
-
path: {
|
|
1780
|
-
'pod_id': podId,
|
|
1781
|
-
'datastore_name': datastoreName,
|
|
1782
|
-
},
|
|
1783
|
-
body: requestBody,
|
|
1784
|
-
mediaType: 'application/json',
|
|
1785
|
-
errors: {
|
|
1786
|
-
422: `Validation Error`,
|
|
1787
|
-
},
|
|
1788
|
-
});
|
|
1789
|
-
}
|
|
1790
|
-
}
|
|
1791
|
-
exports.DatastoreService = DatastoreService;
|
|
1792
|
-
|
|
1793
1610
|
},
|
|
1794
1611
|
"./namespaces/desks.js": function (module, exports, require) {
|
|
1795
1612
|
"use strict";
|
|
@@ -1838,60 +1655,60 @@ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
|
1838
1655
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
1839
1656
|
class DesksService {
|
|
1840
1657
|
/**
|
|
1841
|
-
*
|
|
1658
|
+
* List Desks
|
|
1842
1659
|
* @param podId
|
|
1843
|
-
* @param
|
|
1844
|
-
* @
|
|
1660
|
+
* @param limit
|
|
1661
|
+
* @param pageToken
|
|
1662
|
+
* @returns DeskListResponse Successful Response
|
|
1845
1663
|
* @throws ApiError
|
|
1846
1664
|
*/
|
|
1847
|
-
static
|
|
1665
|
+
static deskList(podId, limit = 100, pageToken) {
|
|
1848
1666
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1849
|
-
method: '
|
|
1667
|
+
method: 'GET',
|
|
1850
1668
|
url: '/pods/{pod_id}/desks',
|
|
1851
1669
|
path: {
|
|
1852
1670
|
'pod_id': podId,
|
|
1853
1671
|
},
|
|
1854
|
-
|
|
1855
|
-
|
|
1672
|
+
query: {
|
|
1673
|
+
'limit': limit,
|
|
1674
|
+
'page_token': pageToken,
|
|
1675
|
+
},
|
|
1856
1676
|
errors: {
|
|
1857
1677
|
422: `Validation Error`,
|
|
1858
1678
|
},
|
|
1859
1679
|
});
|
|
1860
1680
|
}
|
|
1861
1681
|
/**
|
|
1862
|
-
*
|
|
1682
|
+
* Create Desk
|
|
1863
1683
|
* @param podId
|
|
1864
|
-
* @param
|
|
1865
|
-
* @
|
|
1866
|
-
* @returns DeskListResponse Successful Response
|
|
1684
|
+
* @param requestBody
|
|
1685
|
+
* @returns DeskResponse Successful Response
|
|
1867
1686
|
* @throws ApiError
|
|
1868
1687
|
*/
|
|
1869
|
-
static
|
|
1688
|
+
static deskCreate(podId, requestBody) {
|
|
1870
1689
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1871
|
-
method: '
|
|
1690
|
+
method: 'POST',
|
|
1872
1691
|
url: '/pods/{pod_id}/desks',
|
|
1873
1692
|
path: {
|
|
1874
1693
|
'pod_id': podId,
|
|
1875
1694
|
},
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
'page_token': pageToken,
|
|
1879
|
-
},
|
|
1695
|
+
body: requestBody,
|
|
1696
|
+
mediaType: 'application/json',
|
|
1880
1697
|
errors: {
|
|
1881
1698
|
422: `Validation Error`,
|
|
1882
1699
|
},
|
|
1883
1700
|
});
|
|
1884
1701
|
}
|
|
1885
1702
|
/**
|
|
1886
|
-
*
|
|
1703
|
+
* Delete Desk
|
|
1887
1704
|
* @param podId
|
|
1888
1705
|
* @param deskName
|
|
1889
|
-
* @returns
|
|
1706
|
+
* @returns DeskMessageResponse Successful Response
|
|
1890
1707
|
* @throws ApiError
|
|
1891
1708
|
*/
|
|
1892
|
-
static
|
|
1709
|
+
static deskDelete(podId, deskName) {
|
|
1893
1710
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1894
|
-
method: '
|
|
1711
|
+
method: 'DELETE',
|
|
1895
1712
|
url: '/pods/{pod_id}/desks/{desk_name}',
|
|
1896
1713
|
path: {
|
|
1897
1714
|
'pod_id': podId,
|
|
@@ -1903,43 +1720,43 @@ class DesksService {
|
|
|
1903
1720
|
});
|
|
1904
1721
|
}
|
|
1905
1722
|
/**
|
|
1906
|
-
*
|
|
1723
|
+
* Get Desk
|
|
1907
1724
|
* @param podId
|
|
1908
1725
|
* @param deskName
|
|
1909
|
-
* @param requestBody
|
|
1910
1726
|
* @returns DeskResponse Successful Response
|
|
1911
1727
|
* @throws ApiError
|
|
1912
1728
|
*/
|
|
1913
|
-
static
|
|
1729
|
+
static deskGet(podId, deskName) {
|
|
1914
1730
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1915
|
-
method: '
|
|
1731
|
+
method: 'GET',
|
|
1916
1732
|
url: '/pods/{pod_id}/desks/{desk_name}',
|
|
1917
1733
|
path: {
|
|
1918
1734
|
'pod_id': podId,
|
|
1919
1735
|
'desk_name': deskName,
|
|
1920
1736
|
},
|
|
1921
|
-
body: requestBody,
|
|
1922
|
-
mediaType: 'application/json',
|
|
1923
1737
|
errors: {
|
|
1924
1738
|
422: `Validation Error`,
|
|
1925
1739
|
},
|
|
1926
1740
|
});
|
|
1927
1741
|
}
|
|
1928
1742
|
/**
|
|
1929
|
-
*
|
|
1743
|
+
* Update Desk
|
|
1930
1744
|
* @param podId
|
|
1931
1745
|
* @param deskName
|
|
1932
|
-
* @
|
|
1746
|
+
* @param requestBody
|
|
1747
|
+
* @returns DeskResponse Successful Response
|
|
1933
1748
|
* @throws ApiError
|
|
1934
1749
|
*/
|
|
1935
|
-
static
|
|
1750
|
+
static deskUpdate(podId, deskName, requestBody) {
|
|
1936
1751
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1937
|
-
method: '
|
|
1752
|
+
method: 'PATCH',
|
|
1938
1753
|
url: '/pods/{pod_id}/desks/{desk_name}',
|
|
1939
1754
|
path: {
|
|
1940
1755
|
'pod_id': podId,
|
|
1941
1756
|
'desk_name': deskName,
|
|
1942
1757
|
},
|
|
1758
|
+
body: requestBody,
|
|
1759
|
+
mediaType: 'application/json',
|
|
1943
1760
|
errors: {
|
|
1944
1761
|
422: `Validation Error`,
|
|
1945
1762
|
},
|
|
@@ -2024,36 +1841,36 @@ class FilesNamespace {
|
|
|
2024
1841
|
this.http = http;
|
|
2025
1842
|
this.podId = podId;
|
|
2026
1843
|
this.folder = {
|
|
2027
|
-
create: (
|
|
1844
|
+
create: (name, options = {}) => {
|
|
2028
1845
|
const payload = {
|
|
2029
1846
|
name,
|
|
2030
1847
|
description: options.description,
|
|
2031
1848
|
parent_id: options.parentId,
|
|
2032
1849
|
};
|
|
2033
|
-
return this.client.request(() => FilesService_js_1.FilesService.fileFolderCreate(this.podId(),
|
|
1850
|
+
return this.client.request(() => FilesService_js_1.FilesService.fileFolderCreate(this.podId(), payload));
|
|
2034
1851
|
},
|
|
2035
1852
|
};
|
|
2036
1853
|
}
|
|
2037
|
-
list(
|
|
2038
|
-
return this.client.request(() => FilesService_js_1.FilesService.fileList(this.podId(),
|
|
1854
|
+
list(options = {}) {
|
|
1855
|
+
return this.client.request(() => FilesService_js_1.FilesService.fileList(this.podId(), options.parentId, options.limit ?? 100, options.pageToken));
|
|
2039
1856
|
}
|
|
2040
|
-
get(
|
|
2041
|
-
return this.client.request(() => FilesService_js_1.FilesService.fileGet(this.podId(),
|
|
1857
|
+
get(fileId) {
|
|
1858
|
+
return this.client.request(() => FilesService_js_1.FilesService.fileGet(this.podId(), fileId));
|
|
2042
1859
|
}
|
|
2043
|
-
delete(
|
|
2044
|
-
return this.client.request(() => FilesService_js_1.FilesService.fileDelete(this.podId(),
|
|
1860
|
+
delete(fileId) {
|
|
1861
|
+
return this.client.request(() => FilesService_js_1.FilesService.fileDelete(this.podId(), fileId));
|
|
2045
1862
|
}
|
|
2046
|
-
search(
|
|
2047
|
-
return this.client.request(() => FilesService_js_1.FilesService.fileSearch(this.podId(),
|
|
1863
|
+
search(query, options = {}) {
|
|
1864
|
+
return this.client.request(() => FilesService_js_1.FilesService.fileSearch(this.podId(), {
|
|
2048
1865
|
query,
|
|
2049
1866
|
limit: options.limit ?? 10,
|
|
2050
1867
|
search_method: options.searchMethod ?? SearchMethod_js_1.SearchMethod.HYBRID,
|
|
2051
1868
|
}));
|
|
2052
1869
|
}
|
|
2053
|
-
download(
|
|
2054
|
-
return this.http.requestBytes("GET", `/pods/${this.podId()}/
|
|
1870
|
+
download(fileId) {
|
|
1871
|
+
return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/${fileId}/download`);
|
|
2055
1872
|
}
|
|
2056
|
-
upload(
|
|
1873
|
+
upload(file, options = {}) {
|
|
2057
1874
|
const payload = {
|
|
2058
1875
|
data: file,
|
|
2059
1876
|
name: options.name ?? (file instanceof File ? file.name : undefined),
|
|
@@ -2061,9 +1878,9 @@ class FilesNamespace {
|
|
|
2061
1878
|
parent_id: options.parentId,
|
|
2062
1879
|
search_enabled: options.searchEnabled ?? true,
|
|
2063
1880
|
};
|
|
2064
|
-
return this.client.request(() => FilesService_js_1.FilesService.fileUpload(this.podId(),
|
|
1881
|
+
return this.client.request(() => FilesService_js_1.FilesService.fileUpload(this.podId(), payload));
|
|
2065
1882
|
}
|
|
2066
|
-
update(
|
|
1883
|
+
update(fileId, options = {}) {
|
|
2067
1884
|
const payload = {
|
|
2068
1885
|
data: options.file,
|
|
2069
1886
|
name: options.name,
|
|
@@ -2071,7 +1888,7 @@ class FilesNamespace {
|
|
|
2071
1888
|
parent_id: options.parentId,
|
|
2072
1889
|
search_enabled: options.searchEnabled,
|
|
2073
1890
|
};
|
|
2074
|
-
return this.client.request(() => FilesService_js_1.FilesService.fileUpdate(this.podId(),
|
|
1891
|
+
return this.client.request(() => FilesService_js_1.FilesService.fileUpdate(this.podId(), fileId, payload));
|
|
2075
1892
|
}
|
|
2076
1893
|
}
|
|
2077
1894
|
exports.FilesNamespace = FilesNamespace;
|
|
@@ -2102,24 +1919,22 @@ const request_js_1 = require("./openapi_client/core/request.js");
|
|
|
2102
1919
|
class FilesService {
|
|
2103
1920
|
/**
|
|
2104
1921
|
* List Files
|
|
2105
|
-
* @param
|
|
2106
|
-
* @param
|
|
2107
|
-
* @param path
|
|
1922
|
+
* @param podId
|
|
1923
|
+
* @param parentId
|
|
2108
1924
|
* @param limit
|
|
2109
1925
|
* @param pageToken
|
|
2110
|
-
* @returns
|
|
1926
|
+
* @returns FileListResponse Successful Response
|
|
2111
1927
|
* @throws ApiError
|
|
2112
1928
|
*/
|
|
2113
|
-
static
|
|
1929
|
+
static fileList(podId, parentId, limit = 100, pageToken) {
|
|
2114
1930
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2115
1931
|
method: 'GET',
|
|
2116
|
-
url: '/
|
|
1932
|
+
url: '/pods/{pod_id}/datastore/files',
|
|
2117
1933
|
path: {
|
|
2118
|
-
'
|
|
2119
|
-
'resource_id': resourceId,
|
|
1934
|
+
'pod_id': podId,
|
|
2120
1935
|
},
|
|
2121
1936
|
query: {
|
|
2122
|
-
'
|
|
1937
|
+
'parent_id': parentId,
|
|
2123
1938
|
'limit': limit,
|
|
2124
1939
|
'page_token': pageToken,
|
|
2125
1940
|
},
|
|
@@ -2130,23 +1945,17 @@ class FilesService {
|
|
|
2130
1945
|
}
|
|
2131
1946
|
/**
|
|
2132
1947
|
* Upload File
|
|
2133
|
-
* @param
|
|
2134
|
-
* @param resourceId
|
|
1948
|
+
* @param podId
|
|
2135
1949
|
* @param formData
|
|
2136
|
-
* @
|
|
2137
|
-
* @returns FileUploadResponse Successful Response
|
|
1950
|
+
* @returns FileResponse Successful Response
|
|
2138
1951
|
* @throws ApiError
|
|
2139
1952
|
*/
|
|
2140
|
-
static
|
|
1953
|
+
static fileUpload(podId, formData) {
|
|
2141
1954
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2142
1955
|
method: 'POST',
|
|
2143
|
-
url: '/
|
|
1956
|
+
url: '/pods/{pod_id}/datastore/files',
|
|
2144
1957
|
path: {
|
|
2145
|
-
'
|
|
2146
|
-
'resource_id': resourceId,
|
|
2147
|
-
},
|
|
2148
|
-
query: {
|
|
2149
|
-
'path': path,
|
|
1958
|
+
'pod_id': podId,
|
|
2150
1959
|
},
|
|
2151
1960
|
formData: formData,
|
|
2152
1961
|
mediaType: 'multipart/form-data',
|
|
@@ -2156,118 +1965,62 @@ class FilesService {
|
|
|
2156
1965
|
});
|
|
2157
1966
|
}
|
|
2158
1967
|
/**
|
|
2159
|
-
*
|
|
2160
|
-
* @param resourceType
|
|
2161
|
-
* @param resourceId
|
|
2162
|
-
* @param filePath
|
|
2163
|
-
* @returns any Successful Response
|
|
2164
|
-
* @throws ApiError
|
|
2165
|
-
*/
|
|
2166
|
-
static downloadFileFilesResourceTypeResourceIdDownloadFilePathGet(resourceType, resourceId, filePath) {
|
|
2167
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2168
|
-
method: 'GET',
|
|
2169
|
-
url: '/files/{resource_type}/{resource_id}/download/{file_path}',
|
|
2170
|
-
path: {
|
|
2171
|
-
'resource_type': resourceType,
|
|
2172
|
-
'resource_id': resourceId,
|
|
2173
|
-
'file_path': filePath,
|
|
2174
|
-
},
|
|
2175
|
-
errors: {
|
|
2176
|
-
422: `Validation Error`,
|
|
2177
|
-
},
|
|
2178
|
-
});
|
|
2179
|
-
}
|
|
2180
|
-
/**
|
|
2181
|
-
* Delete File
|
|
2182
|
-
* @param resourceType
|
|
2183
|
-
* @param resourceId
|
|
2184
|
-
* @param filePath
|
|
2185
|
-
* @returns any Successful Response
|
|
2186
|
-
* @throws ApiError
|
|
2187
|
-
*/
|
|
2188
|
-
static deleteFileFilesResourceTypeResourceIdDeleteFilePathDelete(resourceType, resourceId, filePath) {
|
|
2189
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2190
|
-
method: 'DELETE',
|
|
2191
|
-
url: '/files/{resource_type}/{resource_id}/delete/{file_path}',
|
|
2192
|
-
path: {
|
|
2193
|
-
'resource_type': resourceType,
|
|
2194
|
-
'resource_id': resourceId,
|
|
2195
|
-
'file_path': filePath,
|
|
2196
|
-
},
|
|
2197
|
-
errors: {
|
|
2198
|
-
422: `Validation Error`,
|
|
2199
|
-
},
|
|
2200
|
-
});
|
|
2201
|
-
}
|
|
2202
|
-
/**
|
|
2203
|
-
* Upload File
|
|
1968
|
+
* Create Folder
|
|
2204
1969
|
* @param podId
|
|
2205
|
-
* @param
|
|
2206
|
-
* @param formData
|
|
1970
|
+
* @param requestBody
|
|
2207
1971
|
* @returns FileResponse Successful Response
|
|
2208
1972
|
* @throws ApiError
|
|
2209
1973
|
*/
|
|
2210
|
-
static
|
|
1974
|
+
static fileFolderCreate(podId, requestBody) {
|
|
2211
1975
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2212
1976
|
method: 'POST',
|
|
2213
|
-
url: '/pods/{pod_id}/
|
|
1977
|
+
url: '/pods/{pod_id}/datastore/files/folders',
|
|
2214
1978
|
path: {
|
|
2215
1979
|
'pod_id': podId,
|
|
2216
|
-
'datastore_name': datastoreName,
|
|
2217
1980
|
},
|
|
2218
|
-
|
|
2219
|
-
mediaType: '
|
|
1981
|
+
body: requestBody,
|
|
1982
|
+
mediaType: 'application/json',
|
|
2220
1983
|
errors: {
|
|
2221
1984
|
422: `Validation Error`,
|
|
2222
1985
|
},
|
|
2223
1986
|
});
|
|
2224
1987
|
}
|
|
2225
1988
|
/**
|
|
2226
|
-
*
|
|
1989
|
+
* Search Files
|
|
2227
1990
|
* @param podId
|
|
2228
|
-
* @param
|
|
2229
|
-
* @
|
|
2230
|
-
* @param limit
|
|
2231
|
-
* @param pageToken
|
|
2232
|
-
* @returns FileListResponse Successful Response
|
|
1991
|
+
* @param requestBody
|
|
1992
|
+
* @returns FileSearchResponse Successful Response
|
|
2233
1993
|
* @throws ApiError
|
|
2234
1994
|
*/
|
|
2235
|
-
static
|
|
1995
|
+
static fileSearch(podId, requestBody) {
|
|
2236
1996
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2237
|
-
method: '
|
|
2238
|
-
url: '/pods/{pod_id}/
|
|
1997
|
+
method: 'POST',
|
|
1998
|
+
url: '/pods/{pod_id}/datastore/files/search',
|
|
2239
1999
|
path: {
|
|
2240
2000
|
'pod_id': podId,
|
|
2241
|
-
'datastore_name': datastoreName,
|
|
2242
|
-
},
|
|
2243
|
-
query: {
|
|
2244
|
-
'parent_id': parentId,
|
|
2245
|
-
'limit': limit,
|
|
2246
|
-
'page_token': pageToken,
|
|
2247
2001
|
},
|
|
2002
|
+
body: requestBody,
|
|
2003
|
+
mediaType: 'application/json',
|
|
2248
2004
|
errors: {
|
|
2249
2005
|
422: `Validation Error`,
|
|
2250
2006
|
},
|
|
2251
2007
|
});
|
|
2252
2008
|
}
|
|
2253
2009
|
/**
|
|
2254
|
-
*
|
|
2010
|
+
* Delete File
|
|
2255
2011
|
* @param podId
|
|
2256
|
-
* @param
|
|
2257
|
-
* @
|
|
2258
|
-
* @returns FileResponse Successful Response
|
|
2012
|
+
* @param fileId
|
|
2013
|
+
* @returns DatastoreMessageResponse Successful Response
|
|
2259
2014
|
* @throws ApiError
|
|
2260
2015
|
*/
|
|
2261
|
-
static
|
|
2016
|
+
static fileDelete(podId, fileId) {
|
|
2262
2017
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2263
|
-
method: '
|
|
2264
|
-
url: '/pods/{pod_id}/
|
|
2018
|
+
method: 'DELETE',
|
|
2019
|
+
url: '/pods/{pod_id}/datastore/files/{file_id}',
|
|
2265
2020
|
path: {
|
|
2266
2021
|
'pod_id': podId,
|
|
2267
|
-
'
|
|
2022
|
+
'file_id': fileId,
|
|
2268
2023
|
},
|
|
2269
|
-
body: requestBody,
|
|
2270
|
-
mediaType: 'application/json',
|
|
2271
2024
|
errors: {
|
|
2272
2025
|
422: `Validation Error`,
|
|
2273
2026
|
},
|
|
@@ -2276,18 +2029,16 @@ class FilesService {
|
|
|
2276
2029
|
/**
|
|
2277
2030
|
* Get File
|
|
2278
2031
|
* @param podId
|
|
2279
|
-
* @param datastoreName
|
|
2280
2032
|
* @param fileId
|
|
2281
2033
|
* @returns FileResponse Successful Response
|
|
2282
2034
|
* @throws ApiError
|
|
2283
2035
|
*/
|
|
2284
|
-
static fileGet(podId,
|
|
2036
|
+
static fileGet(podId, fileId) {
|
|
2285
2037
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2286
2038
|
method: 'GET',
|
|
2287
|
-
url: '/pods/{pod_id}/
|
|
2039
|
+
url: '/pods/{pod_id}/datastore/files/{file_id}',
|
|
2288
2040
|
path: {
|
|
2289
2041
|
'pod_id': podId,
|
|
2290
|
-
'datastore_name': datastoreName,
|
|
2291
2042
|
'file_id': fileId,
|
|
2292
2043
|
},
|
|
2293
2044
|
errors: {
|
|
@@ -2298,19 +2049,17 @@ class FilesService {
|
|
|
2298
2049
|
/**
|
|
2299
2050
|
* Update File
|
|
2300
2051
|
* @param podId
|
|
2301
|
-
* @param datastoreName
|
|
2302
2052
|
* @param fileId
|
|
2303
2053
|
* @param formData
|
|
2304
2054
|
* @returns FileResponse Successful Response
|
|
2305
2055
|
* @throws ApiError
|
|
2306
2056
|
*/
|
|
2307
|
-
static fileUpdate(podId,
|
|
2057
|
+
static fileUpdate(podId, fileId, formData) {
|
|
2308
2058
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2309
2059
|
method: 'PATCH',
|
|
2310
|
-
url: '/pods/{pod_id}/
|
|
2060
|
+
url: '/pods/{pod_id}/datastore/files/{file_id}',
|
|
2311
2061
|
path: {
|
|
2312
2062
|
'pod_id': podId,
|
|
2313
|
-
'datastore_name': datastoreName,
|
|
2314
2063
|
'file_id': fileId,
|
|
2315
2064
|
},
|
|
2316
2065
|
formData: formData,
|
|
@@ -2320,43 +2069,19 @@ class FilesService {
|
|
|
2320
2069
|
},
|
|
2321
2070
|
});
|
|
2322
2071
|
}
|
|
2323
|
-
/**
|
|
2324
|
-
* Delete File
|
|
2325
|
-
* @param podId
|
|
2326
|
-
* @param datastoreName
|
|
2327
|
-
* @param fileId
|
|
2328
|
-
* @returns DatastoreMessageResponse Successful Response
|
|
2329
|
-
* @throws ApiError
|
|
2330
|
-
*/
|
|
2331
|
-
static fileDelete(podId, datastoreName, fileId) {
|
|
2332
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2333
|
-
method: 'DELETE',
|
|
2334
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}/files/{file_id}',
|
|
2335
|
-
path: {
|
|
2336
|
-
'pod_id': podId,
|
|
2337
|
-
'datastore_name': datastoreName,
|
|
2338
|
-
'file_id': fileId,
|
|
2339
|
-
},
|
|
2340
|
-
errors: {
|
|
2341
|
-
422: `Validation Error`,
|
|
2342
|
-
},
|
|
2343
|
-
});
|
|
2344
|
-
}
|
|
2345
2072
|
/**
|
|
2346
2073
|
* Download File
|
|
2347
2074
|
* @param podId
|
|
2348
|
-
* @param datastoreName
|
|
2349
2075
|
* @param fileId
|
|
2350
2076
|
* @returns any Successful Response
|
|
2351
2077
|
* @throws ApiError
|
|
2352
2078
|
*/
|
|
2353
|
-
static fileDownload(podId,
|
|
2079
|
+
static fileDownload(podId, fileId) {
|
|
2354
2080
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2355
2081
|
method: 'GET',
|
|
2356
|
-
url: '/pods/{pod_id}/
|
|
2082
|
+
url: '/pods/{pod_id}/datastore/files/{file_id}/download',
|
|
2357
2083
|
path: {
|
|
2358
2084
|
'pod_id': podId,
|
|
2359
|
-
'datastore_name': datastoreName,
|
|
2360
2085
|
'file_id': fileId,
|
|
2361
2086
|
},
|
|
2362
2087
|
errors: {
|
|
@@ -2364,29 +2089,6 @@ class FilesService {
|
|
|
2364
2089
|
},
|
|
2365
2090
|
});
|
|
2366
2091
|
}
|
|
2367
|
-
/**
|
|
2368
|
-
* Search Files
|
|
2369
|
-
* @param podId
|
|
2370
|
-
* @param datastoreName
|
|
2371
|
-
* @param requestBody
|
|
2372
|
-
* @returns FileSearchResponse Successful Response
|
|
2373
|
-
* @throws ApiError
|
|
2374
|
-
*/
|
|
2375
|
-
static fileSearch(podId, datastoreName, requestBody) {
|
|
2376
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2377
|
-
method: 'POST',
|
|
2378
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}/files/search',
|
|
2379
|
-
path: {
|
|
2380
|
-
'pod_id': podId,
|
|
2381
|
-
'datastore_name': datastoreName,
|
|
2382
|
-
},
|
|
2383
|
-
body: requestBody,
|
|
2384
|
-
mediaType: 'application/json',
|
|
2385
|
-
errors: {
|
|
2386
|
-
422: `Validation Error`,
|
|
2387
|
-
},
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
2092
|
}
|
|
2391
2093
|
exports.FilesService = FilesService;
|
|
2392
2094
|
|
|
@@ -2435,6 +2137,31 @@ exports.FunctionsService = void 0;
|
|
|
2435
2137
|
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
2436
2138
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
2437
2139
|
class FunctionsService {
|
|
2140
|
+
/**
|
|
2141
|
+
* List Functions
|
|
2142
|
+
* List all functions in a pod
|
|
2143
|
+
* @param podId
|
|
2144
|
+
* @param limit
|
|
2145
|
+
* @param pageToken
|
|
2146
|
+
* @returns FunctionListResponse Successful Response
|
|
2147
|
+
* @throws ApiError
|
|
2148
|
+
*/
|
|
2149
|
+
static functionList(podId, limit = 100, pageToken) {
|
|
2150
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2151
|
+
method: 'GET',
|
|
2152
|
+
url: '/pods/{pod_id}/functions',
|
|
2153
|
+
path: {
|
|
2154
|
+
'pod_id': podId,
|
|
2155
|
+
},
|
|
2156
|
+
query: {
|
|
2157
|
+
'limit': limit,
|
|
2158
|
+
'page_token': pageToken,
|
|
2159
|
+
},
|
|
2160
|
+
errors: {
|
|
2161
|
+
422: `Validation Error`,
|
|
2162
|
+
},
|
|
2163
|
+
});
|
|
2164
|
+
}
|
|
2438
2165
|
/**
|
|
2439
2166
|
* Create Function
|
|
2440
2167
|
* Create a new function in a pod
|
|
@@ -2458,24 +2185,20 @@ class FunctionsService {
|
|
|
2458
2185
|
});
|
|
2459
2186
|
}
|
|
2460
2187
|
/**
|
|
2461
|
-
*
|
|
2462
|
-
*
|
|
2188
|
+
* Delete Function
|
|
2189
|
+
* Delete a function
|
|
2463
2190
|
* @param podId
|
|
2464
|
-
* @param
|
|
2465
|
-
* @
|
|
2466
|
-
* @returns FunctionListResponse Successful Response
|
|
2191
|
+
* @param functionName
|
|
2192
|
+
* @returns FunctionMessageResponse Successful Response
|
|
2467
2193
|
* @throws ApiError
|
|
2468
2194
|
*/
|
|
2469
|
-
static
|
|
2195
|
+
static functionDelete(podId, functionName) {
|
|
2470
2196
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2471
|
-
method: '
|
|
2472
|
-
url: '/pods/{pod_id}/functions',
|
|
2197
|
+
method: 'DELETE',
|
|
2198
|
+
url: '/pods/{pod_id}/functions/{function_name}',
|
|
2473
2199
|
path: {
|
|
2474
2200
|
'pod_id': podId,
|
|
2475
|
-
|
|
2476
|
-
query: {
|
|
2477
|
-
'limit': limit,
|
|
2478
|
-
'page_token': pageToken,
|
|
2201
|
+
'function_name': functionName,
|
|
2479
2202
|
},
|
|
2480
2203
|
errors: {
|
|
2481
2204
|
422: `Validation Error`,
|
|
@@ -2528,21 +2251,27 @@ class FunctionsService {
|
|
|
2528
2251
|
});
|
|
2529
2252
|
}
|
|
2530
2253
|
/**
|
|
2531
|
-
*
|
|
2532
|
-
*
|
|
2254
|
+
* List Runs
|
|
2255
|
+
* List runs for a function
|
|
2533
2256
|
* @param podId
|
|
2534
2257
|
* @param functionName
|
|
2535
|
-
* @
|
|
2258
|
+
* @param limit
|
|
2259
|
+
* @param pageToken
|
|
2260
|
+
* @returns FunctionRunListResponse Successful Response
|
|
2536
2261
|
* @throws ApiError
|
|
2537
2262
|
*/
|
|
2538
|
-
static
|
|
2263
|
+
static functionRunList(podId, functionName, limit = 100, pageToken) {
|
|
2539
2264
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2540
|
-
method: '
|
|
2541
|
-
url: '/pods/{pod_id}/functions/{function_name}',
|
|
2265
|
+
method: 'GET',
|
|
2266
|
+
url: '/pods/{pod_id}/functions/{function_name}/runs',
|
|
2542
2267
|
path: {
|
|
2543
2268
|
'pod_id': podId,
|
|
2544
2269
|
'function_name': functionName,
|
|
2545
2270
|
},
|
|
2271
|
+
query: {
|
|
2272
|
+
'limit': limit,
|
|
2273
|
+
'page_token': pageToken,
|
|
2274
|
+
},
|
|
2546
2275
|
errors: {
|
|
2547
2276
|
422: `Validation Error`,
|
|
2548
2277
|
},
|
|
@@ -2572,33 +2301,6 @@ class FunctionsService {
|
|
|
2572
2301
|
},
|
|
2573
2302
|
});
|
|
2574
2303
|
}
|
|
2575
|
-
/**
|
|
2576
|
-
* List Runs
|
|
2577
|
-
* List runs for a function
|
|
2578
|
-
* @param podId
|
|
2579
|
-
* @param functionName
|
|
2580
|
-
* @param limit
|
|
2581
|
-
* @param pageToken
|
|
2582
|
-
* @returns FunctionRunListResponse Successful Response
|
|
2583
|
-
* @throws ApiError
|
|
2584
|
-
*/
|
|
2585
|
-
static functionRunList(podId, functionName, limit = 100, pageToken) {
|
|
2586
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2587
|
-
method: 'GET',
|
|
2588
|
-
url: '/pods/{pod_id}/functions/{function_name}/runs',
|
|
2589
|
-
path: {
|
|
2590
|
-
'pod_id': podId,
|
|
2591
|
-
'function_name': functionName,
|
|
2592
|
-
},
|
|
2593
|
-
query: {
|
|
2594
|
-
'limit': limit,
|
|
2595
|
-
'page_token': pageToken,
|
|
2596
|
-
},
|
|
2597
|
-
errors: {
|
|
2598
|
-
422: `Validation Error`,
|
|
2599
|
-
},
|
|
2600
|
-
});
|
|
2601
|
-
}
|
|
2602
2304
|
/**
|
|
2603
2305
|
* Get Run
|
|
2604
2306
|
* Get a specific function run
|
|
@@ -2831,44 +2533,44 @@ class ApplicationsService {
|
|
|
2831
2533
|
});
|
|
2832
2534
|
}
|
|
2833
2535
|
/**
|
|
2834
|
-
*
|
|
2536
|
+
* List Application Operations
|
|
2835
2537
|
* @param applicationId
|
|
2836
|
-
* @
|
|
2538
|
+
* @param query
|
|
2539
|
+
* @param limit
|
|
2540
|
+
* @param pageToken
|
|
2541
|
+
* @returns OperationListResponse Successful Response
|
|
2837
2542
|
* @throws ApiError
|
|
2838
2543
|
*/
|
|
2839
|
-
static
|
|
2544
|
+
static applicationOperationList(applicationId, query, limit = 100, pageToken) {
|
|
2840
2545
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2841
2546
|
method: 'GET',
|
|
2842
|
-
url: '/integrations/applications/{application_id}/operations
|
|
2547
|
+
url: '/integrations/applications/{application_id}/operations',
|
|
2843
2548
|
path: {
|
|
2844
2549
|
'application_id': applicationId,
|
|
2845
2550
|
},
|
|
2551
|
+
query: {
|
|
2552
|
+
'query': query,
|
|
2553
|
+
'limit': limit,
|
|
2554
|
+
'page_token': pageToken,
|
|
2555
|
+
},
|
|
2846
2556
|
errors: {
|
|
2847
2557
|
422: `Validation Error`,
|
|
2848
2558
|
},
|
|
2849
2559
|
});
|
|
2850
2560
|
}
|
|
2851
2561
|
/**
|
|
2852
|
-
*
|
|
2562
|
+
* Get Application Descriptor
|
|
2853
2563
|
* @param applicationId
|
|
2854
|
-
* @
|
|
2855
|
-
* @param limit
|
|
2856
|
-
* @param pageToken
|
|
2857
|
-
* @returns OperationListResponse Successful Response
|
|
2564
|
+
* @returns AppDescriptorResponse Successful Response
|
|
2858
2565
|
* @throws ApiError
|
|
2859
2566
|
*/
|
|
2860
|
-
static
|
|
2567
|
+
static applicationDescriptor(applicationId) {
|
|
2861
2568
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2862
2569
|
method: 'GET',
|
|
2863
|
-
url: '/integrations/applications/{application_id}/operations',
|
|
2570
|
+
url: '/integrations/applications/{application_id}/operations/descriptor',
|
|
2864
2571
|
path: {
|
|
2865
2572
|
'application_id': applicationId,
|
|
2866
2573
|
},
|
|
2867
|
-
query: {
|
|
2868
|
-
'query': query,
|
|
2869
|
-
'limit': limit,
|
|
2870
|
-
'page_token': pageToken,
|
|
2871
|
-
},
|
|
2872
2574
|
errors: {
|
|
2873
2575
|
422: `Validation Error`,
|
|
2874
2576
|
},
|
|
@@ -2929,36 +2631,41 @@ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
|
2929
2631
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
2930
2632
|
class IntegrationsService {
|
|
2931
2633
|
/**
|
|
2932
|
-
*
|
|
2933
|
-
*
|
|
2934
|
-
* @param
|
|
2935
|
-
* @
|
|
2634
|
+
* List Accounts
|
|
2635
|
+
* Get all connected accounts for the current user. Optionally filter by application_id or application_name
|
|
2636
|
+
* @param applicationId
|
|
2637
|
+
* @param limit
|
|
2638
|
+
* @param pageToken
|
|
2639
|
+
* @returns AccountListResponseSchema Successful Response
|
|
2936
2640
|
* @throws ApiError
|
|
2937
2641
|
*/
|
|
2938
|
-
static
|
|
2642
|
+
static integrationAccountList(applicationId, limit = 100, pageToken) {
|
|
2939
2643
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2940
|
-
method: '
|
|
2941
|
-
url: '/integrations/
|
|
2942
|
-
|
|
2943
|
-
|
|
2644
|
+
method: 'GET',
|
|
2645
|
+
url: '/integrations/accounts',
|
|
2646
|
+
query: {
|
|
2647
|
+
'application_id': applicationId,
|
|
2648
|
+
'limit': limit,
|
|
2649
|
+
'page_token': pageToken,
|
|
2650
|
+
},
|
|
2944
2651
|
errors: {
|
|
2945
2652
|
422: `Validation Error`,
|
|
2946
2653
|
},
|
|
2947
2654
|
});
|
|
2948
2655
|
}
|
|
2949
2656
|
/**
|
|
2950
|
-
*
|
|
2951
|
-
*
|
|
2952
|
-
* @param
|
|
2953
|
-
* @returns
|
|
2657
|
+
* Delete Account
|
|
2658
|
+
* Delete a connected account and revoke the connection
|
|
2659
|
+
* @param accountId
|
|
2660
|
+
* @returns MessageResponseSchema Successful Response
|
|
2954
2661
|
* @throws ApiError
|
|
2955
2662
|
*/
|
|
2956
|
-
static
|
|
2663
|
+
static integrationAccountDelete(accountId) {
|
|
2957
2664
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2958
|
-
method: '
|
|
2959
|
-
url: '/integrations/
|
|
2960
|
-
|
|
2961
|
-
'
|
|
2665
|
+
method: 'DELETE',
|
|
2666
|
+
url: '/integrations/accounts/{account_id}',
|
|
2667
|
+
path: {
|
|
2668
|
+
'account_id': accountId,
|
|
2962
2669
|
},
|
|
2963
2670
|
errors: {
|
|
2964
2671
|
422: `Validation Error`,
|
|
@@ -2966,22 +2673,18 @@ class IntegrationsService {
|
|
|
2966
2673
|
});
|
|
2967
2674
|
}
|
|
2968
2675
|
/**
|
|
2969
|
-
*
|
|
2970
|
-
* Get
|
|
2971
|
-
* @param
|
|
2972
|
-
* @
|
|
2973
|
-
* @param pageToken
|
|
2974
|
-
* @returns AccountListResponseSchema Successful Response
|
|
2676
|
+
* Get Account
|
|
2677
|
+
* Get a specific account by ID
|
|
2678
|
+
* @param accountId
|
|
2679
|
+
* @returns AccountResponseSchema Successful Response
|
|
2975
2680
|
* @throws ApiError
|
|
2976
2681
|
*/
|
|
2977
|
-
static
|
|
2682
|
+
static integrationAccountGet(accountId) {
|
|
2978
2683
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2979
2684
|
method: 'GET',
|
|
2980
|
-
url: '/integrations/accounts',
|
|
2981
|
-
|
|
2982
|
-
'
|
|
2983
|
-
'limit': limit,
|
|
2984
|
-
'page_token': pageToken,
|
|
2685
|
+
url: '/integrations/accounts/{account_id}',
|
|
2686
|
+
path: {
|
|
2687
|
+
'account_id': accountId,
|
|
2985
2688
|
},
|
|
2986
2689
|
errors: {
|
|
2987
2690
|
422: `Validation Error`,
|
|
@@ -2989,16 +2692,16 @@ class IntegrationsService {
|
|
|
2989
2692
|
});
|
|
2990
2693
|
}
|
|
2991
2694
|
/**
|
|
2992
|
-
* Get
|
|
2993
|
-
* Get a specific account
|
|
2695
|
+
* Get Credentials
|
|
2696
|
+
* Get the credentials for a specific account
|
|
2994
2697
|
* @param accountId
|
|
2995
|
-
* @returns
|
|
2698
|
+
* @returns AccountCredentialsResponseSchema Successful Response
|
|
2996
2699
|
* @throws ApiError
|
|
2997
2700
|
*/
|
|
2998
|
-
static
|
|
2701
|
+
static integrationAccountCredentialsGet(accountId) {
|
|
2999
2702
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3000
2703
|
method: 'GET',
|
|
3001
|
-
url: '/integrations/accounts/{account_id}',
|
|
2704
|
+
url: '/integrations/accounts/{account_id}/credentials',
|
|
3002
2705
|
path: {
|
|
3003
2706
|
'account_id': accountId,
|
|
3004
2707
|
},
|
|
@@ -3008,37 +2711,36 @@ class IntegrationsService {
|
|
|
3008
2711
|
});
|
|
3009
2712
|
}
|
|
3010
2713
|
/**
|
|
3011
|
-
*
|
|
3012
|
-
*
|
|
3013
|
-
* @param
|
|
3014
|
-
* @returns
|
|
2714
|
+
* Initiate Connect Request
|
|
2715
|
+
* Initiate an OAuth connection request for an application
|
|
2716
|
+
* @param requestBody
|
|
2717
|
+
* @returns ConnectRequestResponseSchema Successful Response
|
|
3015
2718
|
* @throws ApiError
|
|
3016
2719
|
*/
|
|
3017
|
-
static
|
|
2720
|
+
static integrationConnectRequestCreate(requestBody) {
|
|
3018
2721
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3019
|
-
method: '
|
|
3020
|
-
url: '/integrations/
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
},
|
|
2722
|
+
method: 'POST',
|
|
2723
|
+
url: '/integrations/connect-requests',
|
|
2724
|
+
body: requestBody,
|
|
2725
|
+
mediaType: 'application/json',
|
|
3024
2726
|
errors: {
|
|
3025
2727
|
422: `Validation Error`,
|
|
3026
2728
|
},
|
|
3027
2729
|
});
|
|
3028
2730
|
}
|
|
3029
2731
|
/**
|
|
3030
|
-
*
|
|
3031
|
-
*
|
|
3032
|
-
* @param
|
|
3033
|
-
* @returns
|
|
2732
|
+
* OAuth Callback
|
|
2733
|
+
* Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
|
|
2734
|
+
* @param error
|
|
2735
|
+
* @returns AccountResponseSchema Successful Response
|
|
3034
2736
|
* @throws ApiError
|
|
3035
2737
|
*/
|
|
3036
|
-
static
|
|
2738
|
+
static integrationOauthCallback(error) {
|
|
3037
2739
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3038
2740
|
method: 'GET',
|
|
3039
|
-
url: '/integrations/
|
|
3040
|
-
|
|
3041
|
-
'
|
|
2741
|
+
url: '/integrations/connect-requests/oauth/callback',
|
|
2742
|
+
query: {
|
|
2743
|
+
'error': error,
|
|
3042
2744
|
},
|
|
3043
2745
|
errors: {
|
|
3044
2746
|
422: `Validation Error`,
|
|
@@ -3113,24 +2815,6 @@ const OrganizationInvitationStatus_js_1 = require("./openapi_client/models/Organ
|
|
|
3113
2815
|
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
3114
2816
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
3115
2817
|
class OrganizationsService {
|
|
3116
|
-
/**
|
|
3117
|
-
* Create Organization
|
|
3118
|
-
* Create a new organization
|
|
3119
|
-
* @param requestBody
|
|
3120
|
-
* @returns OrganizationResponse Successful Response
|
|
3121
|
-
* @throws ApiError
|
|
3122
|
-
*/
|
|
3123
|
-
static orgCreate(requestBody) {
|
|
3124
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3125
|
-
method: 'POST',
|
|
3126
|
-
url: '/organizations',
|
|
3127
|
-
body: requestBody,
|
|
3128
|
-
mediaType: 'application/json',
|
|
3129
|
-
errors: {
|
|
3130
|
-
422: `Validation Error`,
|
|
3131
|
-
},
|
|
3132
|
-
});
|
|
3133
|
-
}
|
|
3134
2818
|
/**
|
|
3135
2819
|
* List My Organizations
|
|
3136
2820
|
* Get all organizations the current user belongs to
|
|
@@ -3152,6 +2836,24 @@ class OrganizationsService {
|
|
|
3152
2836
|
},
|
|
3153
2837
|
});
|
|
3154
2838
|
}
|
|
2839
|
+
/**
|
|
2840
|
+
* Create Organization
|
|
2841
|
+
* Create a new organization
|
|
2842
|
+
* @param requestBody
|
|
2843
|
+
* @returns OrganizationResponse Successful Response
|
|
2844
|
+
* @throws ApiError
|
|
2845
|
+
*/
|
|
2846
|
+
static orgCreate(requestBody) {
|
|
2847
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2848
|
+
method: 'POST',
|
|
2849
|
+
url: '/organizations',
|
|
2850
|
+
body: requestBody,
|
|
2851
|
+
mediaType: 'application/json',
|
|
2852
|
+
errors: {
|
|
2853
|
+
422: `Validation Error`,
|
|
2854
|
+
},
|
|
2855
|
+
});
|
|
2856
|
+
}
|
|
3155
2857
|
/**
|
|
3156
2858
|
* List My Invitations
|
|
3157
2859
|
* Get all pending invitations for the current user
|
|
@@ -3176,18 +2878,18 @@ class OrganizationsService {
|
|
|
3176
2878
|
});
|
|
3177
2879
|
}
|
|
3178
2880
|
/**
|
|
3179
|
-
*
|
|
3180
|
-
*
|
|
3181
|
-
* @param
|
|
3182
|
-
* @returns
|
|
2881
|
+
* Revoke Invitation
|
|
2882
|
+
* Revoke an organization invitation
|
|
2883
|
+
* @param invitationId
|
|
2884
|
+
* @returns void
|
|
3183
2885
|
* @throws ApiError
|
|
3184
2886
|
*/
|
|
3185
|
-
static
|
|
2887
|
+
static orgInvitationRevoke(invitationId) {
|
|
3186
2888
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3187
|
-
method: '
|
|
3188
|
-
url: '/organizations/{
|
|
2889
|
+
method: 'DELETE',
|
|
2890
|
+
url: '/organizations/invitations/{invitation_id}',
|
|
3189
2891
|
path: {
|
|
3190
|
-
'
|
|
2892
|
+
'invitation_id': invitationId,
|
|
3191
2893
|
},
|
|
3192
2894
|
errors: {
|
|
3193
2895
|
422: `Validation Error`,
|
|
@@ -3195,24 +2897,37 @@ class OrganizationsService {
|
|
|
3195
2897
|
});
|
|
3196
2898
|
}
|
|
3197
2899
|
/**
|
|
3198
|
-
*
|
|
3199
|
-
* Get
|
|
3200
|
-
* @param
|
|
3201
|
-
* @
|
|
3202
|
-
* @param pageToken
|
|
3203
|
-
* @returns OrganizationMemberListResponse Successful Response
|
|
2900
|
+
* Get Organization Invitation
|
|
2901
|
+
* Get an invitation by id
|
|
2902
|
+
* @param invitationId
|
|
2903
|
+
* @returns OrganizationInvitationResponse Successful Response
|
|
3204
2904
|
* @throws ApiError
|
|
3205
2905
|
*/
|
|
3206
|
-
static
|
|
2906
|
+
static orgInvitationGet(invitationId) {
|
|
3207
2907
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3208
2908
|
method: 'GET',
|
|
3209
|
-
url: '/organizations/{
|
|
2909
|
+
url: '/organizations/invitations/{invitation_id}',
|
|
3210
2910
|
path: {
|
|
3211
|
-
'
|
|
2911
|
+
'invitation_id': invitationId,
|
|
3212
2912
|
},
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
2913
|
+
errors: {
|
|
2914
|
+
422: `Validation Error`,
|
|
2915
|
+
},
|
|
2916
|
+
});
|
|
2917
|
+
}
|
|
2918
|
+
/**
|
|
2919
|
+
* Accept Invitation
|
|
2920
|
+
* Accept an organization invitation
|
|
2921
|
+
* @param invitationId
|
|
2922
|
+
* @returns OrganizationMessageResponse Successful Response
|
|
2923
|
+
* @throws ApiError
|
|
2924
|
+
*/
|
|
2925
|
+
static orgInvitationAccept(invitationId) {
|
|
2926
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2927
|
+
method: 'POST',
|
|
2928
|
+
url: '/organizations/invitations/{invitation_id}/accept',
|
|
2929
|
+
path: {
|
|
2930
|
+
'invitation_id': invitationId,
|
|
3216
2931
|
},
|
|
3217
2932
|
errors: {
|
|
3218
2933
|
422: `Validation Error`,
|
|
@@ -3220,22 +2935,19 @@ class OrganizationsService {
|
|
|
3220
2935
|
});
|
|
3221
2936
|
}
|
|
3222
2937
|
/**
|
|
3223
|
-
*
|
|
3224
|
-
*
|
|
2938
|
+
* Get Organization
|
|
2939
|
+
* Get organization details
|
|
3225
2940
|
* @param orgId
|
|
3226
|
-
* @
|
|
3227
|
-
* @returns OrganizationInvitationResponse Successful Response
|
|
2941
|
+
* @returns OrganizationResponse Successful Response
|
|
3228
2942
|
* @throws ApiError
|
|
3229
2943
|
*/
|
|
3230
|
-
static
|
|
2944
|
+
static orgGet(orgId) {
|
|
3231
2945
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3232
|
-
method: '
|
|
3233
|
-
url: '/organizations/{org_id}
|
|
2946
|
+
method: 'GET',
|
|
2947
|
+
url: '/organizations/{org_id}',
|
|
3234
2948
|
path: {
|
|
3235
2949
|
'org_id': orgId,
|
|
3236
2950
|
},
|
|
3237
|
-
body: requestBody,
|
|
3238
|
-
mediaType: 'application/json',
|
|
3239
2951
|
errors: {
|
|
3240
2952
|
422: `Validation Error`,
|
|
3241
2953
|
},
|
|
@@ -3269,37 +2981,46 @@ class OrganizationsService {
|
|
|
3269
2981
|
});
|
|
3270
2982
|
}
|
|
3271
2983
|
/**
|
|
3272
|
-
*
|
|
3273
|
-
*
|
|
3274
|
-
* @param
|
|
3275
|
-
* @
|
|
2984
|
+
* Invite Member
|
|
2985
|
+
* Invite a user to join the organization
|
|
2986
|
+
* @param orgId
|
|
2987
|
+
* @param requestBody
|
|
2988
|
+
* @returns OrganizationInvitationResponse Successful Response
|
|
3276
2989
|
* @throws ApiError
|
|
3277
2990
|
*/
|
|
3278
|
-
static
|
|
2991
|
+
static orgInvitationInvite(orgId, requestBody) {
|
|
3279
2992
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3280
2993
|
method: 'POST',
|
|
3281
|
-
url: '/organizations/
|
|
2994
|
+
url: '/organizations/{org_id}/invitations',
|
|
3282
2995
|
path: {
|
|
3283
|
-
'
|
|
2996
|
+
'org_id': orgId,
|
|
3284
2997
|
},
|
|
2998
|
+
body: requestBody,
|
|
2999
|
+
mediaType: 'application/json',
|
|
3285
3000
|
errors: {
|
|
3286
3001
|
422: `Validation Error`,
|
|
3287
3002
|
},
|
|
3288
3003
|
});
|
|
3289
3004
|
}
|
|
3290
3005
|
/**
|
|
3291
|
-
*
|
|
3292
|
-
* Get
|
|
3293
|
-
* @param
|
|
3294
|
-
* @
|
|
3006
|
+
* List Organization Members
|
|
3007
|
+
* Get all members of an organization
|
|
3008
|
+
* @param orgId
|
|
3009
|
+
* @param limit
|
|
3010
|
+
* @param pageToken
|
|
3011
|
+
* @returns OrganizationMemberListResponse Successful Response
|
|
3295
3012
|
* @throws ApiError
|
|
3296
3013
|
*/
|
|
3297
|
-
static
|
|
3014
|
+
static orgMemberList(orgId, limit = 100, pageToken) {
|
|
3298
3015
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3299
3016
|
method: 'GET',
|
|
3300
|
-
url: '/organizations/
|
|
3017
|
+
url: '/organizations/{org_id}/members',
|
|
3301
3018
|
path: {
|
|
3302
|
-
'
|
|
3019
|
+
'org_id': orgId,
|
|
3020
|
+
},
|
|
3021
|
+
query: {
|
|
3022
|
+
'limit': limit,
|
|
3023
|
+
'page_token': pageToken,
|
|
3303
3024
|
},
|
|
3304
3025
|
errors: {
|
|
3305
3026
|
422: `Validation Error`,
|
|
@@ -3307,18 +3028,20 @@ class OrganizationsService {
|
|
|
3307
3028
|
});
|
|
3308
3029
|
}
|
|
3309
3030
|
/**
|
|
3310
|
-
*
|
|
3311
|
-
*
|
|
3312
|
-
* @param
|
|
3031
|
+
* Remove Member
|
|
3032
|
+
* Remove a member from the organization
|
|
3033
|
+
* @param orgId
|
|
3034
|
+
* @param memberId
|
|
3313
3035
|
* @returns void
|
|
3314
3036
|
* @throws ApiError
|
|
3315
3037
|
*/
|
|
3316
|
-
static
|
|
3038
|
+
static orgMemberRemove(orgId, memberId) {
|
|
3317
3039
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3318
3040
|
method: 'DELETE',
|
|
3319
|
-
url: '/organizations/
|
|
3041
|
+
url: '/organizations/{org_id}/members/{member_id}',
|
|
3320
3042
|
path: {
|
|
3321
|
-
'
|
|
3043
|
+
'org_id': orgId,
|
|
3044
|
+
'member_id': memberId,
|
|
3322
3045
|
},
|
|
3323
3046
|
errors: {
|
|
3324
3047
|
422: `Validation Error`,
|
|
@@ -3349,27 +3072,6 @@ class OrganizationsService {
|
|
|
3349
3072
|
},
|
|
3350
3073
|
});
|
|
3351
3074
|
}
|
|
3352
|
-
/**
|
|
3353
|
-
* Remove Member
|
|
3354
|
-
* Remove a member from the organization
|
|
3355
|
-
* @param orgId
|
|
3356
|
-
* @param memberId
|
|
3357
|
-
* @returns void
|
|
3358
|
-
* @throws ApiError
|
|
3359
|
-
*/
|
|
3360
|
-
static orgMemberRemove(orgId, memberId) {
|
|
3361
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3362
|
-
method: 'DELETE',
|
|
3363
|
-
url: '/organizations/{org_id}/members/{member_id}',
|
|
3364
|
-
path: {
|
|
3365
|
-
'org_id': orgId,
|
|
3366
|
-
'member_id': memberId,
|
|
3367
|
-
},
|
|
3368
|
-
errors: {
|
|
3369
|
-
422: `Validation Error`,
|
|
3370
|
-
},
|
|
3371
|
-
});
|
|
3372
|
-
}
|
|
3373
3075
|
}
|
|
3374
3076
|
exports.OrganizationsService = OrganizationsService;
|
|
3375
3077
|
|
|
@@ -3427,92 +3129,92 @@ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
|
3427
3129
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
3428
3130
|
class PodMembersService {
|
|
3429
3131
|
/**
|
|
3430
|
-
*
|
|
3431
|
-
*
|
|
3132
|
+
* List Pod Members
|
|
3133
|
+
* List all members of a pod
|
|
3432
3134
|
* @param podId
|
|
3433
|
-
* @param
|
|
3434
|
-
* @
|
|
3135
|
+
* @param limit
|
|
3136
|
+
* @param pageToken
|
|
3137
|
+
* @returns PodMemberListResponse Successful Response
|
|
3435
3138
|
* @throws ApiError
|
|
3436
3139
|
*/
|
|
3437
|
-
static
|
|
3140
|
+
static podMemberList(podId, limit = 100, pageToken) {
|
|
3438
3141
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3439
|
-
method: '
|
|
3142
|
+
method: 'GET',
|
|
3440
3143
|
url: '/pods/{pod_id}/members',
|
|
3441
3144
|
path: {
|
|
3442
3145
|
'pod_id': podId,
|
|
3443
3146
|
},
|
|
3444
|
-
|
|
3445
|
-
|
|
3147
|
+
query: {
|
|
3148
|
+
'limit': limit,
|
|
3149
|
+
'page_token': pageToken,
|
|
3150
|
+
},
|
|
3446
3151
|
errors: {
|
|
3447
3152
|
422: `Validation Error`,
|
|
3448
3153
|
},
|
|
3449
3154
|
});
|
|
3450
3155
|
}
|
|
3451
3156
|
/**
|
|
3452
|
-
*
|
|
3453
|
-
*
|
|
3157
|
+
* Add Pod Member
|
|
3158
|
+
* Add a member to a pod
|
|
3454
3159
|
* @param podId
|
|
3455
|
-
* @param
|
|
3456
|
-
* @
|
|
3457
|
-
* @returns PodMemberListResponse Successful Response
|
|
3160
|
+
* @param requestBody
|
|
3161
|
+
* @returns PodMemberResponse Successful Response
|
|
3458
3162
|
* @throws ApiError
|
|
3459
3163
|
*/
|
|
3460
|
-
static
|
|
3164
|
+
static podMemberAdd(podId, requestBody) {
|
|
3461
3165
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3462
|
-
method: '
|
|
3166
|
+
method: 'POST',
|
|
3463
3167
|
url: '/pods/{pod_id}/members',
|
|
3464
3168
|
path: {
|
|
3465
3169
|
'pod_id': podId,
|
|
3466
3170
|
},
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
'page_token': pageToken,
|
|
3470
|
-
},
|
|
3171
|
+
body: requestBody,
|
|
3172
|
+
mediaType: 'application/json',
|
|
3471
3173
|
errors: {
|
|
3472
3174
|
422: `Validation Error`,
|
|
3473
3175
|
},
|
|
3474
3176
|
});
|
|
3475
3177
|
}
|
|
3476
3178
|
/**
|
|
3477
|
-
*
|
|
3478
|
-
*
|
|
3179
|
+
* Remove Pod Member
|
|
3180
|
+
* Remove a member from a pod
|
|
3479
3181
|
* @param podId
|
|
3480
3182
|
* @param memberId
|
|
3481
|
-
* @
|
|
3482
|
-
* @returns PodMemberResponse Successful Response
|
|
3183
|
+
* @returns void
|
|
3483
3184
|
* @throws ApiError
|
|
3484
3185
|
*/
|
|
3485
|
-
static
|
|
3186
|
+
static podMemberRemove(podId, memberId) {
|
|
3486
3187
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3487
|
-
method: '
|
|
3488
|
-
url: '/pods/{pod_id}/members/{member_id}
|
|
3188
|
+
method: 'DELETE',
|
|
3189
|
+
url: '/pods/{pod_id}/members/{member_id}',
|
|
3489
3190
|
path: {
|
|
3490
3191
|
'pod_id': podId,
|
|
3491
3192
|
'member_id': memberId,
|
|
3492
3193
|
},
|
|
3493
|
-
body: requestBody,
|
|
3494
|
-
mediaType: 'application/json',
|
|
3495
3194
|
errors: {
|
|
3496
3195
|
422: `Validation Error`,
|
|
3497
3196
|
},
|
|
3498
3197
|
});
|
|
3499
3198
|
}
|
|
3500
3199
|
/**
|
|
3501
|
-
*
|
|
3502
|
-
*
|
|
3200
|
+
* Update Member Role
|
|
3201
|
+
* Update a pod member's role
|
|
3503
3202
|
* @param podId
|
|
3504
3203
|
* @param memberId
|
|
3505
|
-
* @
|
|
3204
|
+
* @param requestBody
|
|
3205
|
+
* @returns PodMemberResponse Successful Response
|
|
3506
3206
|
* @throws ApiError
|
|
3507
3207
|
*/
|
|
3508
|
-
static
|
|
3208
|
+
static podMemberUpdateRole(podId, memberId, requestBody) {
|
|
3509
3209
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3510
|
-
method: '
|
|
3511
|
-
url: '/pods/{pod_id}/members/{member_id}',
|
|
3210
|
+
method: 'PATCH',
|
|
3211
|
+
url: '/pods/{pod_id}/members/{member_id}/role',
|
|
3512
3212
|
path: {
|
|
3513
3213
|
'pod_id': podId,
|
|
3514
3214
|
'member_id': memberId,
|
|
3515
3215
|
},
|
|
3216
|
+
body: requestBody,
|
|
3217
|
+
mediaType: 'application/json',
|
|
3516
3218
|
errors: {
|
|
3517
3219
|
422: `Validation Error`,
|
|
3518
3220
|
},
|
|
@@ -3594,18 +3296,24 @@ class PodsService {
|
|
|
3594
3296
|
});
|
|
3595
3297
|
}
|
|
3596
3298
|
/**
|
|
3597
|
-
*
|
|
3598
|
-
*
|
|
3599
|
-
* @param
|
|
3600
|
-
* @
|
|
3299
|
+
* List PodS by Organization
|
|
3300
|
+
* List all pods in an organization
|
|
3301
|
+
* @param organizationId
|
|
3302
|
+
* @param limit
|
|
3303
|
+
* @param pageToken
|
|
3304
|
+
* @returns PodListResponse Successful Response
|
|
3601
3305
|
* @throws ApiError
|
|
3602
3306
|
*/
|
|
3603
|
-
static
|
|
3307
|
+
static podList(organizationId, limit = 100, pageToken) {
|
|
3604
3308
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3605
3309
|
method: 'GET',
|
|
3606
|
-
url: '/pods/{
|
|
3310
|
+
url: '/pods/organization/{organization_id}',
|
|
3607
3311
|
path: {
|
|
3608
|
-
'
|
|
3312
|
+
'organization_id': organizationId,
|
|
3313
|
+
},
|
|
3314
|
+
query: {
|
|
3315
|
+
'limit': limit,
|
|
3316
|
+
'page_token': pageToken,
|
|
3609
3317
|
},
|
|
3610
3318
|
errors: {
|
|
3611
3319
|
422: `Validation Error`,
|
|
@@ -3613,37 +3321,34 @@ class PodsService {
|
|
|
3613
3321
|
});
|
|
3614
3322
|
}
|
|
3615
3323
|
/**
|
|
3616
|
-
*
|
|
3617
|
-
*
|
|
3324
|
+
* Delete Pod
|
|
3325
|
+
* Delete a pod
|
|
3618
3326
|
* @param podId
|
|
3619
|
-
* @
|
|
3620
|
-
* @returns PodResponse Successful Response
|
|
3327
|
+
* @returns void
|
|
3621
3328
|
* @throws ApiError
|
|
3622
3329
|
*/
|
|
3623
|
-
static
|
|
3330
|
+
static podDelete(podId) {
|
|
3624
3331
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3625
|
-
method: '
|
|
3332
|
+
method: 'DELETE',
|
|
3626
3333
|
url: '/pods/{pod_id}',
|
|
3627
3334
|
path: {
|
|
3628
3335
|
'pod_id': podId,
|
|
3629
3336
|
},
|
|
3630
|
-
body: requestBody,
|
|
3631
|
-
mediaType: 'application/json',
|
|
3632
3337
|
errors: {
|
|
3633
3338
|
422: `Validation Error`,
|
|
3634
3339
|
},
|
|
3635
3340
|
});
|
|
3636
3341
|
}
|
|
3637
3342
|
/**
|
|
3638
|
-
*
|
|
3639
|
-
*
|
|
3343
|
+
* Get Pod
|
|
3344
|
+
* Get pod details
|
|
3640
3345
|
* @param podId
|
|
3641
|
-
* @returns
|
|
3346
|
+
* @returns PodResponse Successful Response
|
|
3642
3347
|
* @throws ApiError
|
|
3643
3348
|
*/
|
|
3644
|
-
static
|
|
3349
|
+
static podGet(podId) {
|
|
3645
3350
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3646
|
-
method: '
|
|
3351
|
+
method: 'GET',
|
|
3647
3352
|
url: '/pods/{pod_id}',
|
|
3648
3353
|
path: {
|
|
3649
3354
|
'pod_id': podId,
|
|
@@ -3654,25 +3359,22 @@ class PodsService {
|
|
|
3654
3359
|
});
|
|
3655
3360
|
}
|
|
3656
3361
|
/**
|
|
3657
|
-
*
|
|
3658
|
-
*
|
|
3659
|
-
* @param
|
|
3660
|
-
* @param
|
|
3661
|
-
* @
|
|
3662
|
-
* @returns PodListResponse Successful Response
|
|
3362
|
+
* Update Pod
|
|
3363
|
+
* Update pod details
|
|
3364
|
+
* @param podId
|
|
3365
|
+
* @param requestBody
|
|
3366
|
+
* @returns PodResponse Successful Response
|
|
3663
3367
|
* @throws ApiError
|
|
3664
3368
|
*/
|
|
3665
|
-
static
|
|
3369
|
+
static podUpdate(podId, requestBody) {
|
|
3666
3370
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3667
|
-
method: '
|
|
3668
|
-
url: '/pods/
|
|
3371
|
+
method: 'PUT',
|
|
3372
|
+
url: '/pods/{pod_id}',
|
|
3669
3373
|
path: {
|
|
3670
|
-
'
|
|
3671
|
-
},
|
|
3672
|
-
query: {
|
|
3673
|
-
'limit': limit,
|
|
3674
|
-
'page_token': pageToken,
|
|
3374
|
+
'pod_id': podId,
|
|
3675
3375
|
},
|
|
3376
|
+
body: requestBody,
|
|
3377
|
+
mediaType: 'application/json',
|
|
3676
3378
|
errors: {
|
|
3677
3379
|
422: `Validation Error`,
|
|
3678
3380
|
},
|
|
@@ -3737,47 +3439,47 @@ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
|
3737
3439
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
3738
3440
|
class AssistantSurfacesService {
|
|
3739
3441
|
/**
|
|
3740
|
-
*
|
|
3741
|
-
*
|
|
3442
|
+
* List Surfaces
|
|
3443
|
+
* List configured surfaces in a pod.
|
|
3742
3444
|
* @param podId
|
|
3743
|
-
* @param
|
|
3744
|
-
* @
|
|
3445
|
+
* @param limit
|
|
3446
|
+
* @param pageToken
|
|
3447
|
+
* @returns AssistantSurfaceListResponse Successful Response
|
|
3745
3448
|
* @throws ApiError
|
|
3746
3449
|
*/
|
|
3747
|
-
static
|
|
3450
|
+
static assistantSurfaceList(podId, limit = 100, pageToken) {
|
|
3748
3451
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3749
|
-
method: '
|
|
3452
|
+
method: 'GET',
|
|
3750
3453
|
url: '/pods/{pod_id}/surfaces',
|
|
3751
3454
|
path: {
|
|
3752
3455
|
'pod_id': podId,
|
|
3753
3456
|
},
|
|
3754
|
-
|
|
3755
|
-
|
|
3457
|
+
query: {
|
|
3458
|
+
'limit': limit,
|
|
3459
|
+
'page_token': pageToken,
|
|
3460
|
+
},
|
|
3756
3461
|
errors: {
|
|
3757
3462
|
422: `Validation Error`,
|
|
3758
3463
|
},
|
|
3759
3464
|
});
|
|
3760
3465
|
}
|
|
3761
3466
|
/**
|
|
3762
|
-
*
|
|
3763
|
-
*
|
|
3467
|
+
* Create Surface
|
|
3468
|
+
* Create a new surface for an assistant.
|
|
3764
3469
|
* @param podId
|
|
3765
|
-
* @param
|
|
3766
|
-
* @
|
|
3767
|
-
* @returns AssistantSurfaceListResponse Successful Response
|
|
3470
|
+
* @param requestBody
|
|
3471
|
+
* @returns any Successful Response
|
|
3768
3472
|
* @throws ApiError
|
|
3769
3473
|
*/
|
|
3770
|
-
static
|
|
3474
|
+
static assistantSurfaceCreate(podId, requestBody) {
|
|
3771
3475
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3772
|
-
method: '
|
|
3476
|
+
method: 'POST',
|
|
3773
3477
|
url: '/pods/{pod_id}/surfaces',
|
|
3774
3478
|
path: {
|
|
3775
3479
|
'pod_id': podId,
|
|
3776
3480
|
},
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
'page_token': pageToken,
|
|
3780
|
-
},
|
|
3481
|
+
body: requestBody,
|
|
3482
|
+
mediaType: 'application/json',
|
|
3781
3483
|
errors: {
|
|
3782
3484
|
422: `Validation Error`,
|
|
3783
3485
|
},
|
|
@@ -3861,8 +3563,8 @@ exports.AssistantSurfacesService = AssistantSurfacesService;
|
|
|
3861
3563
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3862
3564
|
exports.RecordsNamespace = void 0;
|
|
3863
3565
|
const RecordsService_js_1 = require("./openapi_client/services/RecordsService.js");
|
|
3864
|
-
function getRecordsPath(podId,
|
|
3865
|
-
return `/pods/${encodeURIComponent(podId)}/
|
|
3566
|
+
function getRecordsPath(podId, table) {
|
|
3567
|
+
return `/pods/${encodeURIComponent(podId)}/datastore/tables/${encodeURIComponent(table)}/records`;
|
|
3866
3568
|
}
|
|
3867
3569
|
class RecordsNamespace {
|
|
3868
3570
|
constructor(client, http, podId) {
|
|
@@ -3870,21 +3572,21 @@ class RecordsNamespace {
|
|
|
3870
3572
|
this.http = http;
|
|
3871
3573
|
this.podId = podId;
|
|
3872
3574
|
this.bulk = {
|
|
3873
|
-
create: (
|
|
3575
|
+
create: (table, records) => {
|
|
3874
3576
|
const payload = { records };
|
|
3875
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordBulkCreate(this.podId(),
|
|
3577
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordBulkCreate(this.podId(), table, payload));
|
|
3876
3578
|
},
|
|
3877
|
-
update: (
|
|
3579
|
+
update: (table, records) => {
|
|
3878
3580
|
const payload = { records };
|
|
3879
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordBulkUpdate(this.podId(),
|
|
3581
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordBulkUpdate(this.podId(), table, payload));
|
|
3880
3582
|
},
|
|
3881
|
-
delete: (
|
|
3583
|
+
delete: (table, recordIds) => {
|
|
3882
3584
|
const payload = { record_ids: recordIds };
|
|
3883
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordBulkDelete(this.podId(),
|
|
3585
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordBulkDelete(this.podId(), table, payload));
|
|
3884
3586
|
},
|
|
3885
3587
|
};
|
|
3886
3588
|
}
|
|
3887
|
-
list(
|
|
3589
|
+
list(table, options = {}) {
|
|
3888
3590
|
const { filters, sort, limit, pageToken, offset, sortBy, order, params } = options;
|
|
3889
3591
|
if (filters || sort) {
|
|
3890
3592
|
const payload = {
|
|
@@ -3893,14 +3595,14 @@ class RecordsNamespace {
|
|
|
3893
3595
|
limit,
|
|
3894
3596
|
page_token: pageToken,
|
|
3895
3597
|
};
|
|
3896
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordQuery(this.podId(),
|
|
3598
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordQuery(this.podId(), table, payload));
|
|
3897
3599
|
}
|
|
3898
3600
|
const hasCustomParams = typeof offset === "number" ||
|
|
3899
3601
|
typeof sortBy === "string" ||
|
|
3900
3602
|
typeof order === "string" ||
|
|
3901
3603
|
!!params;
|
|
3902
3604
|
if (hasCustomParams) {
|
|
3903
|
-
return this.http.request("GET", getRecordsPath(this.podId(),
|
|
3605
|
+
return this.http.request("GET", getRecordsPath(this.podId(), table), {
|
|
3904
3606
|
params: {
|
|
3905
3607
|
limit: limit ?? 20,
|
|
3906
3608
|
page_token: pageToken,
|
|
@@ -3911,27 +3613,27 @@ class RecordsNamespace {
|
|
|
3911
3613
|
},
|
|
3912
3614
|
});
|
|
3913
3615
|
}
|
|
3914
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordList(this.podId(),
|
|
3616
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordList(this.podId(), table, limit ?? 20, pageToken));
|
|
3915
3617
|
}
|
|
3916
|
-
listWithParams(
|
|
3917
|
-
return this.http.request("GET", getRecordsPath(this.podId(),
|
|
3618
|
+
listWithParams(table, params) {
|
|
3619
|
+
return this.http.request("GET", getRecordsPath(this.podId(), table), {
|
|
3918
3620
|
params,
|
|
3919
3621
|
});
|
|
3920
3622
|
}
|
|
3921
|
-
create(
|
|
3922
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordCreate(this.podId(),
|
|
3623
|
+
create(table, data) {
|
|
3624
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordCreate(this.podId(), table, { data }));
|
|
3923
3625
|
}
|
|
3924
|
-
get(
|
|
3925
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordGet(this.podId(),
|
|
3626
|
+
get(table, recordId) {
|
|
3627
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordGet(this.podId(), table, recordId));
|
|
3926
3628
|
}
|
|
3927
|
-
update(
|
|
3928
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordUpdate(this.podId(),
|
|
3629
|
+
update(table, recordId, data) {
|
|
3630
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordUpdate(this.podId(), table, recordId, { data }));
|
|
3929
3631
|
}
|
|
3930
|
-
delete(
|
|
3931
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordDelete(this.podId(),
|
|
3632
|
+
delete(table, recordId) {
|
|
3633
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordDelete(this.podId(), table, recordId));
|
|
3932
3634
|
}
|
|
3933
|
-
query(
|
|
3934
|
-
return this.client.request(() => RecordsService_js_1.RecordsService.recordQuery(this.podId(),
|
|
3635
|
+
query(table, payload) {
|
|
3636
|
+
return this.client.request(() => RecordsService_js_1.RecordsService.recordQuery(this.podId(), table, payload));
|
|
3935
3637
|
}
|
|
3936
3638
|
}
|
|
3937
3639
|
exports.RecordsNamespace = RecordsNamespace;
|
|
@@ -3944,50 +3646,22 @@ exports.RecordsService = void 0;
|
|
|
3944
3646
|
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
3945
3647
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
3946
3648
|
class RecordsService {
|
|
3947
|
-
/**
|
|
3948
|
-
* Create Record
|
|
3949
|
-
* Insert a record into a table. Reserved tables (`reserved_*`) are system-managed and cannot be mutated through record write endpoints.
|
|
3950
|
-
* @param podId
|
|
3951
|
-
* @param datastoreName
|
|
3952
|
-
* @param tableName
|
|
3953
|
-
* @param requestBody
|
|
3954
|
-
* @returns RecordResponse Successful Response
|
|
3955
|
-
* @throws ApiError
|
|
3956
|
-
*/
|
|
3957
|
-
static recordCreate(podId, datastoreName, tableName, requestBody) {
|
|
3958
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3959
|
-
method: 'POST',
|
|
3960
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}/tables/{table_name}/records',
|
|
3961
|
-
path: {
|
|
3962
|
-
'pod_id': podId,
|
|
3963
|
-
'datastore_name': datastoreName,
|
|
3964
|
-
'table_name': tableName,
|
|
3965
|
-
},
|
|
3966
|
-
body: requestBody,
|
|
3967
|
-
mediaType: 'application/json',
|
|
3968
|
-
errors: {
|
|
3969
|
-
422: `Validation Error`,
|
|
3970
|
-
},
|
|
3971
|
-
});
|
|
3972
|
-
}
|
|
3973
3649
|
/**
|
|
3974
3650
|
* List Records
|
|
3975
3651
|
* List table records with token pagination only. Use `record.query` when you need structured filters or explicit sort clauses.
|
|
3976
3652
|
* @param podId
|
|
3977
|
-
* @param datastoreName
|
|
3978
3653
|
* @param tableName
|
|
3979
3654
|
* @param limit Max number of rows to return.
|
|
3980
3655
|
* @param pageToken Opaque token from a previous response page.
|
|
3981
3656
|
* @returns RecordListResponse Successful Response
|
|
3982
3657
|
* @throws ApiError
|
|
3983
3658
|
*/
|
|
3984
|
-
static recordList(podId,
|
|
3659
|
+
static recordList(podId, tableName, limit = 20, pageToken) {
|
|
3985
3660
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3986
3661
|
method: 'GET',
|
|
3987
|
-
url: '/pods/{pod_id}/
|
|
3662
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records',
|
|
3988
3663
|
path: {
|
|
3989
3664
|
'pod_id': podId,
|
|
3990
|
-
'datastore_name': datastoreName,
|
|
3991
3665
|
'table_name': tableName,
|
|
3992
3666
|
},
|
|
3993
3667
|
query: {
|
|
@@ -4000,50 +3674,45 @@ class RecordsService {
|
|
|
4000
3674
|
});
|
|
4001
3675
|
}
|
|
4002
3676
|
/**
|
|
4003
|
-
*
|
|
4004
|
-
*
|
|
3677
|
+
* Create Record
|
|
3678
|
+
* Insert a record into a table. Reserved tables (`reserved_*`) are system-managed and cannot be mutated through record write endpoints.
|
|
4005
3679
|
* @param podId
|
|
4006
|
-
* @param datastoreName
|
|
4007
3680
|
* @param tableName
|
|
4008
|
-
* @param
|
|
3681
|
+
* @param requestBody
|
|
4009
3682
|
* @returns RecordResponse Successful Response
|
|
4010
3683
|
* @throws ApiError
|
|
4011
3684
|
*/
|
|
4012
|
-
static
|
|
3685
|
+
static recordCreate(podId, tableName, requestBody) {
|
|
4013
3686
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4014
|
-
method: '
|
|
4015
|
-
url: '/pods/{pod_id}/
|
|
3687
|
+
method: 'POST',
|
|
3688
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records',
|
|
4016
3689
|
path: {
|
|
4017
3690
|
'pod_id': podId,
|
|
4018
|
-
'datastore_name': datastoreName,
|
|
4019
3691
|
'table_name': tableName,
|
|
4020
|
-
'record_id': recordId,
|
|
4021
3692
|
},
|
|
3693
|
+
body: requestBody,
|
|
3694
|
+
mediaType: 'application/json',
|
|
4022
3695
|
errors: {
|
|
4023
3696
|
422: `Validation Error`,
|
|
4024
3697
|
},
|
|
4025
3698
|
});
|
|
4026
3699
|
}
|
|
4027
3700
|
/**
|
|
4028
|
-
*
|
|
4029
|
-
*
|
|
3701
|
+
* Bulk Create
|
|
3702
|
+
* Insert multiple records in one request.
|
|
4030
3703
|
* @param podId
|
|
4031
|
-
* @param datastoreName
|
|
4032
3704
|
* @param tableName
|
|
4033
|
-
* @param recordId
|
|
4034
3705
|
* @param requestBody
|
|
4035
|
-
* @returns
|
|
3706
|
+
* @returns DatastoreMessageResponse Successful Response
|
|
4036
3707
|
* @throws ApiError
|
|
4037
3708
|
*/
|
|
4038
|
-
static
|
|
3709
|
+
static recordBulkCreate(podId, tableName, requestBody) {
|
|
4039
3710
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4040
|
-
method: '
|
|
4041
|
-
url: '/pods/{pod_id}/
|
|
3711
|
+
method: 'POST',
|
|
3712
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records/bulk/create',
|
|
4042
3713
|
path: {
|
|
4043
3714
|
'pod_id': podId,
|
|
4044
|
-
'datastore_name': datastoreName,
|
|
4045
3715
|
'table_name': tableName,
|
|
4046
|
-
'record_id': recordId,
|
|
4047
3716
|
},
|
|
4048
3717
|
body: requestBody,
|
|
4049
3718
|
mediaType: 'application/json',
|
|
@@ -4053,47 +3722,44 @@ class RecordsService {
|
|
|
4053
3722
|
});
|
|
4054
3723
|
}
|
|
4055
3724
|
/**
|
|
4056
|
-
* Delete
|
|
4057
|
-
* Delete
|
|
3725
|
+
* Bulk Delete
|
|
3726
|
+
* Delete multiple records by primary key values.
|
|
4058
3727
|
* @param podId
|
|
4059
|
-
* @param datastoreName
|
|
4060
3728
|
* @param tableName
|
|
4061
|
-
* @param
|
|
3729
|
+
* @param requestBody
|
|
4062
3730
|
* @returns DatastoreMessageResponse Successful Response
|
|
4063
3731
|
* @throws ApiError
|
|
4064
3732
|
*/
|
|
4065
|
-
static
|
|
3733
|
+
static recordBulkDelete(podId, tableName, requestBody) {
|
|
4066
3734
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4067
|
-
method: '
|
|
4068
|
-
url: '/pods/{pod_id}/
|
|
3735
|
+
method: 'POST',
|
|
3736
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records/bulk/delete',
|
|
4069
3737
|
path: {
|
|
4070
3738
|
'pod_id': podId,
|
|
4071
|
-
'datastore_name': datastoreName,
|
|
4072
3739
|
'table_name': tableName,
|
|
4073
|
-
'record_id': recordId,
|
|
4074
3740
|
},
|
|
3741
|
+
body: requestBody,
|
|
3742
|
+
mediaType: 'application/json',
|
|
4075
3743
|
errors: {
|
|
4076
3744
|
422: `Validation Error`,
|
|
4077
3745
|
},
|
|
4078
3746
|
});
|
|
4079
3747
|
}
|
|
4080
3748
|
/**
|
|
4081
|
-
* Bulk
|
|
4082
|
-
*
|
|
3749
|
+
* Bulk Update
|
|
3750
|
+
* Update multiple records in one request (each item needs primary key).
|
|
4083
3751
|
* @param podId
|
|
4084
|
-
* @param datastoreName
|
|
4085
3752
|
* @param tableName
|
|
4086
3753
|
* @param requestBody
|
|
4087
3754
|
* @returns DatastoreMessageResponse Successful Response
|
|
4088
3755
|
* @throws ApiError
|
|
4089
3756
|
*/
|
|
4090
|
-
static
|
|
3757
|
+
static recordBulkUpdate(podId, tableName, requestBody) {
|
|
4091
3758
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4092
3759
|
method: 'POST',
|
|
4093
|
-
url: '/pods/{pod_id}/
|
|
3760
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records/bulk/update',
|
|
4094
3761
|
path: {
|
|
4095
3762
|
'pod_id': podId,
|
|
4096
|
-
'datastore_name': datastoreName,
|
|
4097
3763
|
'table_name': tableName,
|
|
4098
3764
|
},
|
|
4099
3765
|
body: requestBody,
|
|
@@ -4104,22 +3770,20 @@ class RecordsService {
|
|
|
4104
3770
|
});
|
|
4105
3771
|
}
|
|
4106
3772
|
/**
|
|
4107
|
-
*
|
|
4108
|
-
*
|
|
3773
|
+
* Query Records
|
|
3774
|
+
* Query one table with structured filters and sorting. Use this instead of dynamic query parameters when you need filtering. Example filters: `[{"field": "status", "op": "eq", "value": "OPEN"}]`.
|
|
4109
3775
|
* @param podId
|
|
4110
|
-
* @param datastoreName
|
|
4111
3776
|
* @param tableName
|
|
4112
3777
|
* @param requestBody
|
|
4113
|
-
* @returns
|
|
3778
|
+
* @returns RecordListResponse Successful Response
|
|
4114
3779
|
* @throws ApiError
|
|
4115
3780
|
*/
|
|
4116
|
-
static
|
|
3781
|
+
static recordQuery(podId, tableName, requestBody) {
|
|
4117
3782
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4118
3783
|
method: 'POST',
|
|
4119
|
-
url: '/pods/{pod_id}/
|
|
3784
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records/query',
|
|
4120
3785
|
path: {
|
|
4121
3786
|
'pod_id': podId,
|
|
4122
|
-
'datastore_name': datastoreName,
|
|
4123
3787
|
'table_name': tableName,
|
|
4124
3788
|
},
|
|
4125
3789
|
body: requestBody,
|
|
@@ -4130,49 +3794,69 @@ class RecordsService {
|
|
|
4130
3794
|
});
|
|
4131
3795
|
}
|
|
4132
3796
|
/**
|
|
4133
|
-
*
|
|
4134
|
-
* Delete
|
|
3797
|
+
* Delete Record
|
|
3798
|
+
* Delete a record by primary key.
|
|
4135
3799
|
* @param podId
|
|
4136
|
-
* @param datastoreName
|
|
4137
3800
|
* @param tableName
|
|
4138
|
-
* @param
|
|
3801
|
+
* @param recordId
|
|
4139
3802
|
* @returns DatastoreMessageResponse Successful Response
|
|
4140
3803
|
* @throws ApiError
|
|
4141
3804
|
*/
|
|
4142
|
-
static
|
|
3805
|
+
static recordDelete(podId, tableName, recordId) {
|
|
4143
3806
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4144
|
-
method: '
|
|
4145
|
-
url: '/pods/{pod_id}/
|
|
3807
|
+
method: 'DELETE',
|
|
3808
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records/{record_id}',
|
|
4146
3809
|
path: {
|
|
4147
3810
|
'pod_id': podId,
|
|
4148
|
-
'datastore_name': datastoreName,
|
|
4149
3811
|
'table_name': tableName,
|
|
3812
|
+
'record_id': recordId,
|
|
4150
3813
|
},
|
|
4151
|
-
body: requestBody,
|
|
4152
|
-
mediaType: 'application/json',
|
|
4153
3814
|
errors: {
|
|
4154
3815
|
422: `Validation Error`,
|
|
4155
3816
|
},
|
|
4156
3817
|
});
|
|
4157
3818
|
}
|
|
4158
3819
|
/**
|
|
4159
|
-
*
|
|
4160
|
-
*
|
|
3820
|
+
* Get Record
|
|
3821
|
+
* Fetch one record by primary key value. The `record_id` path segment is the table's primary key value as stored in the table, not necessarily a UUID.
|
|
3822
|
+
* @param podId
|
|
3823
|
+
* @param tableName
|
|
3824
|
+
* @param recordId
|
|
3825
|
+
* @returns RecordResponse Successful Response
|
|
3826
|
+
* @throws ApiError
|
|
3827
|
+
*/
|
|
3828
|
+
static recordGet(podId, tableName, recordId) {
|
|
3829
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3830
|
+
method: 'GET',
|
|
3831
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records/{record_id}',
|
|
3832
|
+
path: {
|
|
3833
|
+
'pod_id': podId,
|
|
3834
|
+
'table_name': tableName,
|
|
3835
|
+
'record_id': recordId,
|
|
3836
|
+
},
|
|
3837
|
+
errors: {
|
|
3838
|
+
422: `Validation Error`,
|
|
3839
|
+
},
|
|
3840
|
+
});
|
|
3841
|
+
}
|
|
3842
|
+
/**
|
|
3843
|
+
* Update Record
|
|
3844
|
+
* Patch a record by primary key.
|
|
4161
3845
|
* @param podId
|
|
4162
|
-
* @param datastoreName
|
|
4163
3846
|
* @param tableName
|
|
3847
|
+
* @param recordId
|
|
4164
3848
|
* @param requestBody
|
|
4165
|
-
* @returns
|
|
3849
|
+
* @returns RecordResponse Successful Response
|
|
4166
3850
|
* @throws ApiError
|
|
4167
3851
|
*/
|
|
4168
|
-
static
|
|
3852
|
+
static recordUpdate(podId, tableName, recordId, requestBody) {
|
|
4169
3853
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4170
|
-
method: '
|
|
4171
|
-
url: '/pods/{pod_id}/
|
|
3854
|
+
method: 'PATCH',
|
|
3855
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/records/{record_id}',
|
|
4172
3856
|
path: {
|
|
4173
3857
|
'pod_id': podId,
|
|
4174
|
-
'datastore_name': datastoreName,
|
|
4175
3858
|
'table_name': tableName,
|
|
3859
|
+
'record_id': recordId,
|
|
4176
3860
|
},
|
|
4177
3861
|
body: requestBody,
|
|
4178
3862
|
mediaType: 'application/json',
|
|
@@ -4244,27 +3928,27 @@ class TablesNamespace {
|
|
|
4244
3928
|
this.client = client;
|
|
4245
3929
|
this.podId = podId;
|
|
4246
3930
|
this.columns = {
|
|
4247
|
-
add: (
|
|
3931
|
+
add: (tableName, request) => {
|
|
4248
3932
|
const payload = "column" in request ? request : { column: request };
|
|
4249
|
-
return this.client.request(() => TablesService_js_1.TablesService.tableColumnAdd(this.podId(),
|
|
3933
|
+
return this.client.request(() => TablesService_js_1.TablesService.tableColumnAdd(this.podId(), tableName, payload));
|
|
4250
3934
|
},
|
|
4251
|
-
remove: (
|
|
3935
|
+
remove: (tableName, columnName) => this.client.request(() => TablesService_js_1.TablesService.tableColumnRemove(this.podId(), tableName, columnName)),
|
|
4252
3936
|
};
|
|
4253
3937
|
}
|
|
4254
|
-
list(
|
|
4255
|
-
return this.client.request(() => TablesService_js_1.TablesService.tableList(this.podId(),
|
|
3938
|
+
list(options = {}) {
|
|
3939
|
+
return this.client.request(() => TablesService_js_1.TablesService.tableList(this.podId(), options.limit ?? 100, options.pageToken));
|
|
4256
3940
|
}
|
|
4257
|
-
create(
|
|
4258
|
-
return this.client.request(() => TablesService_js_1.TablesService.tableCreate(this.podId(),
|
|
3941
|
+
create(payload) {
|
|
3942
|
+
return this.client.request(() => TablesService_js_1.TablesService.tableCreate(this.podId(), normalizeCreateTablePayload(payload)));
|
|
4259
3943
|
}
|
|
4260
|
-
get(
|
|
4261
|
-
return this.client.request(() => TablesService_js_1.TablesService.tableGet(this.podId(),
|
|
3944
|
+
get(tableName) {
|
|
3945
|
+
return this.client.request(() => TablesService_js_1.TablesService.tableGet(this.podId(), tableName));
|
|
4262
3946
|
}
|
|
4263
|
-
update(
|
|
4264
|
-
return this.client.request(() => TablesService_js_1.TablesService.tableUpdate(this.podId(),
|
|
3947
|
+
update(tableName, payload) {
|
|
3948
|
+
return this.client.request(() => TablesService_js_1.TablesService.tableUpdate(this.podId(), tableName, payload));
|
|
4265
3949
|
}
|
|
4266
|
-
delete(
|
|
4267
|
-
return this.client.request(() => TablesService_js_1.TablesService.tableDelete(this.podId(),
|
|
3950
|
+
delete(tableName) {
|
|
3951
|
+
return this.client.request(() => TablesService_js_1.TablesService.tableDelete(this.podId(), tableName));
|
|
4268
3952
|
}
|
|
4269
3953
|
}
|
|
4270
3954
|
exports.TablesNamespace = TablesNamespace;
|
|
@@ -4273,51 +3957,25 @@ exports.TablesNamespace = TablesNamespace;
|
|
|
4273
3957
|
"./openapi_client/services/TablesService.js": function (module, exports, require) {
|
|
4274
3958
|
"use strict";
|
|
4275
3959
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4276
|
-
exports.TablesService = void 0;
|
|
4277
|
-
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
4278
|
-
const request_js_1 = require("./openapi_client/core/request.js");
|
|
4279
|
-
class TablesService {
|
|
4280
|
-
/**
|
|
4281
|
-
* Create Table
|
|
4282
|
-
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
4283
|
-
* @param podId
|
|
4284
|
-
* @param datastoreName
|
|
4285
|
-
* @param requestBody
|
|
4286
|
-
* @returns TableResponse Successful Response
|
|
4287
|
-
* @throws ApiError
|
|
4288
|
-
*/
|
|
4289
|
-
static tableCreate(podId, datastoreName, requestBody) {
|
|
4290
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4291
|
-
method: 'POST',
|
|
4292
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}/tables',
|
|
4293
|
-
path: {
|
|
4294
|
-
'pod_id': podId,
|
|
4295
|
-
'datastore_name': datastoreName,
|
|
4296
|
-
},
|
|
4297
|
-
body: requestBody,
|
|
4298
|
-
mediaType: 'application/json',
|
|
4299
|
-
errors: {
|
|
4300
|
-
422: `Validation Error`,
|
|
4301
|
-
},
|
|
4302
|
-
});
|
|
4303
|
-
}
|
|
3960
|
+
exports.TablesService = void 0;
|
|
3961
|
+
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
3962
|
+
const request_js_1 = require("./openapi_client/core/request.js");
|
|
3963
|
+
class TablesService {
|
|
4304
3964
|
/**
|
|
4305
3965
|
* List Tables
|
|
4306
3966
|
* List tables in a datastore.
|
|
4307
3967
|
* @param podId
|
|
4308
|
-
* @param datastoreName
|
|
4309
3968
|
* @param limit Max number of tables to return.
|
|
4310
3969
|
* @param pageToken Cursor from a previous response for pagination.
|
|
4311
3970
|
* @returns TableListResponse Successful Response
|
|
4312
3971
|
* @throws ApiError
|
|
4313
3972
|
*/
|
|
4314
|
-
static tableList(podId,
|
|
3973
|
+
static tableList(podId, limit = 100, pageToken) {
|
|
4315
3974
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4316
3975
|
method: 'GET',
|
|
4317
|
-
url: '/pods/{pod_id}/
|
|
3976
|
+
url: '/pods/{pod_id}/datastore/tables',
|
|
4318
3977
|
path: {
|
|
4319
3978
|
'pod_id': podId,
|
|
4320
|
-
'datastore_name': datastoreName,
|
|
4321
3979
|
},
|
|
4322
3980
|
query: {
|
|
4323
3981
|
'limit': limit,
|
|
@@ -4329,23 +3987,22 @@ class TablesService {
|
|
|
4329
3987
|
});
|
|
4330
3988
|
}
|
|
4331
3989
|
/**
|
|
4332
|
-
*
|
|
4333
|
-
*
|
|
3990
|
+
* Create Table
|
|
3991
|
+
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
4334
3992
|
* @param podId
|
|
4335
|
-
* @param
|
|
4336
|
-
* @param tableName
|
|
3993
|
+
* @param requestBody
|
|
4337
3994
|
* @returns TableResponse Successful Response
|
|
4338
3995
|
* @throws ApiError
|
|
4339
3996
|
*/
|
|
4340
|
-
static
|
|
3997
|
+
static tableCreate(podId, requestBody) {
|
|
4341
3998
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4342
|
-
method: '
|
|
4343
|
-
url: '/pods/{pod_id}/
|
|
3999
|
+
method: 'POST',
|
|
4000
|
+
url: '/pods/{pod_id}/datastore/tables',
|
|
4344
4001
|
path: {
|
|
4345
4002
|
'pod_id': podId,
|
|
4346
|
-
'datastore_name': datastoreName,
|
|
4347
|
-
'table_name': tableName,
|
|
4348
4003
|
},
|
|
4004
|
+
body: requestBody,
|
|
4005
|
+
mediaType: 'application/json',
|
|
4349
4006
|
errors: {
|
|
4350
4007
|
422: `Validation Error`,
|
|
4351
4008
|
},
|
|
@@ -4355,18 +4012,37 @@ class TablesService {
|
|
|
4355
4012
|
* Delete Table
|
|
4356
4013
|
* Delete a table and all records in it.
|
|
4357
4014
|
* @param podId
|
|
4358
|
-
* @param datastoreName
|
|
4359
4015
|
* @param tableName
|
|
4360
4016
|
* @returns DatastoreMessageResponse Successful Response
|
|
4361
4017
|
* @throws ApiError
|
|
4362
4018
|
*/
|
|
4363
|
-
static tableDelete(podId,
|
|
4019
|
+
static tableDelete(podId, tableName) {
|
|
4364
4020
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4365
4021
|
method: 'DELETE',
|
|
4366
|
-
url: '/pods/{pod_id}/
|
|
4022
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}',
|
|
4023
|
+
path: {
|
|
4024
|
+
'pod_id': podId,
|
|
4025
|
+
'table_name': tableName,
|
|
4026
|
+
},
|
|
4027
|
+
errors: {
|
|
4028
|
+
422: `Validation Error`,
|
|
4029
|
+
},
|
|
4030
|
+
});
|
|
4031
|
+
}
|
|
4032
|
+
/**
|
|
4033
|
+
* Get Table
|
|
4034
|
+
* Get table schema metadata by table name.
|
|
4035
|
+
* @param podId
|
|
4036
|
+
* @param tableName
|
|
4037
|
+
* @returns TableResponse Successful Response
|
|
4038
|
+
* @throws ApiError
|
|
4039
|
+
*/
|
|
4040
|
+
static tableGet(podId, tableName) {
|
|
4041
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4042
|
+
method: 'GET',
|
|
4043
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}',
|
|
4367
4044
|
path: {
|
|
4368
4045
|
'pod_id': podId,
|
|
4369
|
-
'datastore_name': datastoreName,
|
|
4370
4046
|
'table_name': tableName,
|
|
4371
4047
|
},
|
|
4372
4048
|
errors: {
|
|
@@ -4378,19 +4054,17 @@ class TablesService {
|
|
|
4378
4054
|
* Update Table
|
|
4379
4055
|
* Update table metadata/configuration payload.
|
|
4380
4056
|
* @param podId
|
|
4381
|
-
* @param datastoreName
|
|
4382
4057
|
* @param tableName
|
|
4383
4058
|
* @param requestBody
|
|
4384
4059
|
* @returns TableResponse Successful Response
|
|
4385
4060
|
* @throws ApiError
|
|
4386
4061
|
*/
|
|
4387
|
-
static tableUpdate(podId,
|
|
4062
|
+
static tableUpdate(podId, tableName, requestBody) {
|
|
4388
4063
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4389
4064
|
method: 'PATCH',
|
|
4390
|
-
url: '/pods/{pod_id}/
|
|
4065
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}',
|
|
4391
4066
|
path: {
|
|
4392
4067
|
'pod_id': podId,
|
|
4393
|
-
'datastore_name': datastoreName,
|
|
4394
4068
|
'table_name': tableName,
|
|
4395
4069
|
},
|
|
4396
4070
|
body: requestBody,
|
|
@@ -4404,19 +4078,17 @@ class TablesService {
|
|
|
4404
4078
|
* Add Column
|
|
4405
4079
|
* Add a new column to a table. Column names must be unique and compatible with existing table schema rules.
|
|
4406
4080
|
* @param podId
|
|
4407
|
-
* @param datastoreName
|
|
4408
4081
|
* @param tableName
|
|
4409
4082
|
* @param requestBody
|
|
4410
4083
|
* @returns TableResponse Successful Response
|
|
4411
4084
|
* @throws ApiError
|
|
4412
4085
|
*/
|
|
4413
|
-
static tableColumnAdd(podId,
|
|
4086
|
+
static tableColumnAdd(podId, tableName, requestBody) {
|
|
4414
4087
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4415
4088
|
method: 'POST',
|
|
4416
|
-
url: '/pods/{pod_id}/
|
|
4089
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/columns',
|
|
4417
4090
|
path: {
|
|
4418
4091
|
'pod_id': podId,
|
|
4419
|
-
'datastore_name': datastoreName,
|
|
4420
4092
|
'table_name': tableName,
|
|
4421
4093
|
},
|
|
4422
4094
|
body: requestBody,
|
|
@@ -4430,19 +4102,17 @@ class TablesService {
|
|
|
4430
4102
|
* Remove Column
|
|
4431
4103
|
* Remove a non-primary, non-system column from a table. System columns and the primary key cannot be removed.
|
|
4432
4104
|
* @param podId
|
|
4433
|
-
* @param datastoreName
|
|
4434
4105
|
* @param tableName
|
|
4435
4106
|
* @param columnName
|
|
4436
4107
|
* @returns DatastoreMessageResponse Successful Response
|
|
4437
4108
|
* @throws ApiError
|
|
4438
4109
|
*/
|
|
4439
|
-
static tableColumnRemove(podId,
|
|
4110
|
+
static tableColumnRemove(podId, tableName, columnName) {
|
|
4440
4111
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4441
4112
|
method: 'DELETE',
|
|
4442
|
-
url: '/pods/{pod_id}/
|
|
4113
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/columns/{column_name}',
|
|
4443
4114
|
path: {
|
|
4444
4115
|
'pod_id': podId,
|
|
4445
|
-
'datastore_name': datastoreName,
|
|
4446
4116
|
'table_name': tableName,
|
|
4447
4117
|
'column_name': columnName,
|
|
4448
4118
|
},
|
|
@@ -4655,67 +4325,65 @@ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
|
4655
4325
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
4656
4326
|
class WorkflowsService {
|
|
4657
4327
|
/**
|
|
4658
|
-
*
|
|
4659
|
-
*
|
|
4328
|
+
* Get Workflow Run
|
|
4329
|
+
* Get current state, context, and step history of a workflow run.
|
|
4660
4330
|
* @param podId
|
|
4661
|
-
* @param
|
|
4662
|
-
* @returns
|
|
4331
|
+
* @param runId
|
|
4332
|
+
* @returns FlowRunEntity Successful Response
|
|
4663
4333
|
* @throws ApiError
|
|
4664
4334
|
*/
|
|
4665
|
-
static
|
|
4335
|
+
static workflowRunGet(podId, runId) {
|
|
4666
4336
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4667
|
-
method: '
|
|
4668
|
-
url: '/pods/{pod_id}/
|
|
4337
|
+
method: 'GET',
|
|
4338
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}',
|
|
4669
4339
|
path: {
|
|
4670
4340
|
'pod_id': podId,
|
|
4341
|
+
'run_id': runId,
|
|
4671
4342
|
},
|
|
4672
|
-
body: requestBody,
|
|
4673
|
-
mediaType: 'application/json',
|
|
4674
4343
|
errors: {
|
|
4675
4344
|
422: `Validation Error`,
|
|
4676
4345
|
},
|
|
4677
4346
|
});
|
|
4678
4347
|
}
|
|
4679
4348
|
/**
|
|
4680
|
-
*
|
|
4681
|
-
*
|
|
4349
|
+
* Resume Workflow Run
|
|
4350
|
+
* Resume a run in WAITING or EXECUTING state. The payload is written back into the current waiting node output and execution continues.
|
|
4682
4351
|
* @param podId
|
|
4683
|
-
* @param
|
|
4684
|
-
* @param
|
|
4685
|
-
* @returns
|
|
4352
|
+
* @param runId
|
|
4353
|
+
* @param requestBody
|
|
4354
|
+
* @returns FlowRunEntity Successful Response
|
|
4686
4355
|
* @throws ApiError
|
|
4687
4356
|
*/
|
|
4688
|
-
static
|
|
4357
|
+
static workflowRunResume(podId, runId, requestBody) {
|
|
4689
4358
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4690
|
-
method: '
|
|
4691
|
-
url: '/pods/{pod_id}/
|
|
4359
|
+
method: 'POST',
|
|
4360
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/resume',
|
|
4692
4361
|
path: {
|
|
4693
4362
|
'pod_id': podId,
|
|
4363
|
+
'run_id': runId,
|
|
4694
4364
|
},
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
'page_token': pageToken,
|
|
4698
|
-
},
|
|
4365
|
+
body: requestBody,
|
|
4366
|
+
mediaType: 'application/json',
|
|
4699
4367
|
errors: {
|
|
4700
4368
|
422: `Validation Error`,
|
|
4701
4369
|
},
|
|
4702
4370
|
});
|
|
4703
4371
|
}
|
|
4704
4372
|
/**
|
|
4705
|
-
*
|
|
4706
|
-
*
|
|
4373
|
+
* Visualize Workflow Run
|
|
4374
|
+
* Render an HTML view of a run overlaid on its workflow graph.
|
|
4707
4375
|
* @param podId
|
|
4708
|
-
* @param
|
|
4709
|
-
* @returns
|
|
4376
|
+
* @param runId
|
|
4377
|
+
* @returns string Successful Response
|
|
4710
4378
|
* @throws ApiError
|
|
4711
4379
|
*/
|
|
4712
|
-
static
|
|
4380
|
+
static workflowRunVisualize(podId, runId) {
|
|
4713
4381
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4714
4382
|
method: 'GET',
|
|
4715
|
-
url: '/pods/{pod_id}/
|
|
4383
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
|
|
4716
4384
|
path: {
|
|
4717
4385
|
'pod_id': podId,
|
|
4718
|
-
'
|
|
4386
|
+
'run_id': runId,
|
|
4719
4387
|
},
|
|
4720
4388
|
errors: {
|
|
4721
4389
|
422: `Validation Error`,
|
|
@@ -4723,44 +4391,51 @@ class WorkflowsService {
|
|
|
4723
4391
|
});
|
|
4724
4392
|
}
|
|
4725
4393
|
/**
|
|
4726
|
-
*
|
|
4727
|
-
*
|
|
4394
|
+
* List Workflow Runs
|
|
4395
|
+
* List recent runs for a given workflow.
|
|
4728
4396
|
* @param podId
|
|
4729
4397
|
* @param workflowName
|
|
4730
|
-
* @param
|
|
4731
|
-
* @
|
|
4398
|
+
* @param limit
|
|
4399
|
+
* @param pageToken
|
|
4400
|
+
* @returns WorkflowRunListResponse Successful Response
|
|
4732
4401
|
* @throws ApiError
|
|
4733
4402
|
*/
|
|
4734
|
-
static
|
|
4403
|
+
static workflowRunList(podId, workflowName, limit = 100, pageToken) {
|
|
4735
4404
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4736
|
-
method: '
|
|
4737
|
-
url: '/pods/{pod_id}/
|
|
4405
|
+
method: 'GET',
|
|
4406
|
+
url: '/pods/{pod_id}/workflow-runs/{workflow_name}/runs',
|
|
4738
4407
|
path: {
|
|
4739
4408
|
'pod_id': podId,
|
|
4740
4409
|
'workflow_name': workflowName,
|
|
4741
4410
|
},
|
|
4742
|
-
|
|
4743
|
-
|
|
4411
|
+
query: {
|
|
4412
|
+
'limit': limit,
|
|
4413
|
+
'page_token': pageToken,
|
|
4414
|
+
},
|
|
4744
4415
|
errors: {
|
|
4745
4416
|
422: `Validation Error`,
|
|
4746
4417
|
},
|
|
4747
4418
|
});
|
|
4748
4419
|
}
|
|
4749
4420
|
/**
|
|
4750
|
-
*
|
|
4751
|
-
*
|
|
4421
|
+
* List Workflows
|
|
4422
|
+
* List all workflows in a pod.
|
|
4752
4423
|
* @param podId
|
|
4753
|
-
* @param
|
|
4754
|
-
* @
|
|
4424
|
+
* @param limit
|
|
4425
|
+
* @param pageToken
|
|
4426
|
+
* @returns WorkflowListResponse Successful Response
|
|
4755
4427
|
* @throws ApiError
|
|
4756
4428
|
*/
|
|
4757
|
-
static
|
|
4429
|
+
static workflowList(podId, limit = 100, pageToken) {
|
|
4758
4430
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4759
|
-
method: '
|
|
4760
|
-
url: '/pods/{pod_id}/workflows
|
|
4431
|
+
method: 'GET',
|
|
4432
|
+
url: '/pods/{pod_id}/workflows',
|
|
4761
4433
|
path: {
|
|
4762
4434
|
'pod_id': podId,
|
|
4763
|
-
|
|
4435
|
+
},
|
|
4436
|
+
query: {
|
|
4437
|
+
'limit': limit,
|
|
4438
|
+
'page_token': pageToken,
|
|
4764
4439
|
},
|
|
4765
4440
|
errors: {
|
|
4766
4441
|
422: `Validation Error`,
|
|
@@ -4768,21 +4443,19 @@ class WorkflowsService {
|
|
|
4768
4443
|
});
|
|
4769
4444
|
}
|
|
4770
4445
|
/**
|
|
4771
|
-
*
|
|
4772
|
-
*
|
|
4446
|
+
* Create Workflow
|
|
4447
|
+
* Create a workflow definition. Use this before uploading graph nodes/edges with `workflow.graph.update`.
|
|
4773
4448
|
* @param podId
|
|
4774
|
-
* @param workflowName
|
|
4775
4449
|
* @param requestBody
|
|
4776
|
-
* @returns
|
|
4450
|
+
* @returns FlowResponse Successful Response
|
|
4777
4451
|
* @throws ApiError
|
|
4778
4452
|
*/
|
|
4779
|
-
static
|
|
4453
|
+
static workflowCreate(podId, requestBody) {
|
|
4780
4454
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4781
|
-
method: '
|
|
4782
|
-
url: '/pods/{pod_id}/workflows
|
|
4455
|
+
method: 'POST',
|
|
4456
|
+
url: '/pods/{pod_id}/workflows',
|
|
4783
4457
|
path: {
|
|
4784
4458
|
'pod_id': podId,
|
|
4785
|
-
'workflow_name': workflowName,
|
|
4786
4459
|
},
|
|
4787
4460
|
body: requestBody,
|
|
4788
4461
|
mediaType: 'application/json',
|
|
@@ -4792,46 +4465,41 @@ class WorkflowsService {
|
|
|
4792
4465
|
});
|
|
4793
4466
|
}
|
|
4794
4467
|
/**
|
|
4795
|
-
*
|
|
4796
|
-
*
|
|
4468
|
+
* Delete Workflow
|
|
4469
|
+
* Delete a workflow definition.
|
|
4797
4470
|
* @param podId
|
|
4798
4471
|
* @param workflowName
|
|
4799
|
-
* @
|
|
4800
|
-
* @returns FlowInstallEntity Successful Response
|
|
4472
|
+
* @returns void
|
|
4801
4473
|
* @throws ApiError
|
|
4802
4474
|
*/
|
|
4803
|
-
static
|
|
4475
|
+
static workflowDelete(podId, workflowName) {
|
|
4804
4476
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4805
|
-
method: '
|
|
4806
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}
|
|
4477
|
+
method: 'DELETE',
|
|
4478
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}',
|
|
4807
4479
|
path: {
|
|
4808
4480
|
'pod_id': podId,
|
|
4809
4481
|
'workflow_name': workflowName,
|
|
4810
4482
|
},
|
|
4811
|
-
body: requestBody,
|
|
4812
|
-
mediaType: 'application/json',
|
|
4813
4483
|
errors: {
|
|
4814
4484
|
422: `Validation Error`,
|
|
4815
4485
|
},
|
|
4816
4486
|
});
|
|
4817
4487
|
}
|
|
4818
4488
|
/**
|
|
4819
|
-
*
|
|
4820
|
-
*
|
|
4489
|
+
* Get Workflow
|
|
4490
|
+
* Get a single workflow definition including graph and start configuration.
|
|
4821
4491
|
* @param podId
|
|
4822
4492
|
* @param workflowName
|
|
4823
|
-
* @
|
|
4824
|
-
* @returns void
|
|
4493
|
+
* @returns FlowResponse Successful Response
|
|
4825
4494
|
* @throws ApiError
|
|
4826
4495
|
*/
|
|
4827
|
-
static
|
|
4496
|
+
static workflowGet(podId, workflowName) {
|
|
4828
4497
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4829
|
-
method: '
|
|
4830
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}
|
|
4498
|
+
method: 'GET',
|
|
4499
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}',
|
|
4831
4500
|
path: {
|
|
4832
4501
|
'pod_id': podId,
|
|
4833
4502
|
'workflow_name': workflowName,
|
|
4834
|
-
'install_id': installId,
|
|
4835
4503
|
},
|
|
4836
4504
|
errors: {
|
|
4837
4505
|
422: `Validation Error`,
|
|
@@ -4839,18 +4507,18 @@ class WorkflowsService {
|
|
|
4839
4507
|
});
|
|
4840
4508
|
}
|
|
4841
4509
|
/**
|
|
4842
|
-
*
|
|
4843
|
-
*
|
|
4510
|
+
* Update Workflow Metadata
|
|
4511
|
+
* Update workflow-level metadata such as description/install requirements. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
|
|
4844
4512
|
* @param podId
|
|
4845
4513
|
* @param workflowName
|
|
4846
4514
|
* @param requestBody
|
|
4847
|
-
* @returns
|
|
4515
|
+
* @returns FlowResponse Successful Response
|
|
4848
4516
|
* @throws ApiError
|
|
4849
4517
|
*/
|
|
4850
|
-
static
|
|
4518
|
+
static workflowUpdate(podId, workflowName, requestBody) {
|
|
4851
4519
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4852
|
-
method: '
|
|
4853
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}
|
|
4520
|
+
method: 'PATCH',
|
|
4521
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}',
|
|
4854
4522
|
path: {
|
|
4855
4523
|
'pod_id': podId,
|
|
4856
4524
|
'workflow_name': workflowName,
|
|
@@ -4863,42 +4531,45 @@ class WorkflowsService {
|
|
|
4863
4531
|
});
|
|
4864
4532
|
}
|
|
4865
4533
|
/**
|
|
4866
|
-
*
|
|
4867
|
-
*
|
|
4534
|
+
* Update Workflow Graph
|
|
4535
|
+
* Replace the workflow graph. Agent/function node `input_mapping` entries must use explicit typed bindings. Use `{type: "expression", value: "start.payload.issue.key"}` for context lookups and `{type: "literal", value: "abc"}` for fixed JSON values.
|
|
4868
4536
|
* @param podId
|
|
4869
4537
|
* @param workflowName
|
|
4870
|
-
* @
|
|
4538
|
+
* @param requestBody
|
|
4539
|
+
* @returns FlowResponse Successful Response
|
|
4871
4540
|
* @throws ApiError
|
|
4872
4541
|
*/
|
|
4873
|
-
static
|
|
4542
|
+
static workflowGraphUpdate(podId, workflowName, requestBody) {
|
|
4874
4543
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4875
|
-
method: '
|
|
4876
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}/
|
|
4544
|
+
method: 'PUT',
|
|
4545
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/graph',
|
|
4877
4546
|
path: {
|
|
4878
4547
|
'pod_id': podId,
|
|
4879
4548
|
'workflow_name': workflowName,
|
|
4880
4549
|
},
|
|
4550
|
+
body: requestBody,
|
|
4551
|
+
mediaType: 'application/json',
|
|
4881
4552
|
errors: {
|
|
4882
4553
|
422: `Validation Error`,
|
|
4883
4554
|
},
|
|
4884
4555
|
});
|
|
4885
4556
|
}
|
|
4886
4557
|
/**
|
|
4887
|
-
*
|
|
4888
|
-
*
|
|
4558
|
+
* Install Workflow
|
|
4559
|
+
* Install a workflow for runtime execution. Provide `account_id` when the workflow needs an integration account binding.
|
|
4889
4560
|
* @param podId
|
|
4890
|
-
* @param
|
|
4561
|
+
* @param workflowName
|
|
4891
4562
|
* @param requestBody
|
|
4892
|
-
* @returns
|
|
4563
|
+
* @returns FlowInstallEntity Successful Response
|
|
4893
4564
|
* @throws ApiError
|
|
4894
4565
|
*/
|
|
4895
|
-
static
|
|
4566
|
+
static workflowInstallCreate(podId, workflowName, requestBody) {
|
|
4896
4567
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4897
4568
|
method: 'POST',
|
|
4898
|
-
url: '/pods/{pod_id}/
|
|
4569
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/install',
|
|
4899
4570
|
path: {
|
|
4900
4571
|
'pod_id': podId,
|
|
4901
|
-
'
|
|
4572
|
+
'workflow_name': workflowName,
|
|
4902
4573
|
},
|
|
4903
4574
|
body: requestBody,
|
|
4904
4575
|
mediaType: 'application/json',
|
|
@@ -4908,20 +4579,22 @@ class WorkflowsService {
|
|
|
4908
4579
|
});
|
|
4909
4580
|
}
|
|
4910
4581
|
/**
|
|
4911
|
-
*
|
|
4912
|
-
*
|
|
4582
|
+
* Uninstall Workflow
|
|
4583
|
+
* Remove a previously created workflow installation binding.
|
|
4913
4584
|
* @param podId
|
|
4914
|
-
* @param
|
|
4915
|
-
* @
|
|
4585
|
+
* @param workflowName
|
|
4586
|
+
* @param installId
|
|
4587
|
+
* @returns void
|
|
4916
4588
|
* @throws ApiError
|
|
4917
4589
|
*/
|
|
4918
|
-
static
|
|
4590
|
+
static workflowInstallDelete(podId, workflowName, installId) {
|
|
4919
4591
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4920
|
-
method: '
|
|
4921
|
-
url: '/pods/{pod_id}/
|
|
4592
|
+
method: 'DELETE',
|
|
4593
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/installs/{install_id}',
|
|
4922
4594
|
path: {
|
|
4923
4595
|
'pod_id': podId,
|
|
4924
|
-
'
|
|
4596
|
+
'workflow_name': workflowName,
|
|
4597
|
+
'install_id': installId,
|
|
4925
4598
|
},
|
|
4926
4599
|
errors: {
|
|
4927
4600
|
422: `Validation Error`,
|
|
@@ -4929,47 +4602,44 @@ class WorkflowsService {
|
|
|
4929
4602
|
});
|
|
4930
4603
|
}
|
|
4931
4604
|
/**
|
|
4932
|
-
*
|
|
4933
|
-
*
|
|
4605
|
+
* Start Workflow
|
|
4606
|
+
* Start a new workflow run. For event/scheduled/datastore starts, the request body is treated as initial trigger payload and merged into execution context.
|
|
4934
4607
|
* @param podId
|
|
4935
4608
|
* @param workflowName
|
|
4936
|
-
* @param
|
|
4937
|
-
* @
|
|
4938
|
-
* @returns WorkflowRunListResponse Successful Response
|
|
4609
|
+
* @param requestBody
|
|
4610
|
+
* @returns FlowRunEntity Successful Response
|
|
4939
4611
|
* @throws ApiError
|
|
4940
4612
|
*/
|
|
4941
|
-
static
|
|
4613
|
+
static workflowStart(podId, workflowName, requestBody) {
|
|
4942
4614
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4943
|
-
method: '
|
|
4944
|
-
url: '/pods/{pod_id}/
|
|
4615
|
+
method: 'POST',
|
|
4616
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/start',
|
|
4945
4617
|
path: {
|
|
4946
4618
|
'pod_id': podId,
|
|
4947
4619
|
'workflow_name': workflowName,
|
|
4948
4620
|
},
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
'page_token': pageToken,
|
|
4952
|
-
},
|
|
4621
|
+
body: requestBody,
|
|
4622
|
+
mediaType: 'application/json',
|
|
4953
4623
|
errors: {
|
|
4954
4624
|
422: `Validation Error`,
|
|
4955
4625
|
},
|
|
4956
4626
|
});
|
|
4957
4627
|
}
|
|
4958
4628
|
/**
|
|
4959
|
-
* Visualize Workflow
|
|
4960
|
-
* Render an HTML
|
|
4629
|
+
* Visualize Workflow
|
|
4630
|
+
* Render an HTML visualization for debugging workflow graph structure.
|
|
4961
4631
|
* @param podId
|
|
4962
|
-
* @param
|
|
4632
|
+
* @param workflowName
|
|
4963
4633
|
* @returns string Successful Response
|
|
4964
4634
|
* @throws ApiError
|
|
4965
4635
|
*/
|
|
4966
|
-
static
|
|
4636
|
+
static workflowVisualize(podId, workflowName) {
|
|
4967
4637
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4968
4638
|
method: 'GET',
|
|
4969
|
-
url: '/pods/{pod_id}/
|
|
4639
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/visualize',
|
|
4970
4640
|
path: {
|
|
4971
4641
|
'pod_id': podId,
|
|
4972
|
-
'
|
|
4642
|
+
'workflow_name': workflowName,
|
|
4973
4643
|
},
|
|
4974
4644
|
errors: {
|
|
4975
4645
|
422: `Validation Error`,
|