lemma-sdk 0.2.6 → 0.2.7
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/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
|
@@ -6,78 +6,71 @@ import type { TableResponse } from '../models/TableResponse.js';
|
|
|
6
6
|
import type { UpdateTableRequest } from '../models/UpdateTableRequest.js';
|
|
7
7
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
8
|
export declare class TablesService {
|
|
9
|
-
/**
|
|
10
|
-
* Create Table
|
|
11
|
-
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
12
|
-
* @param podId
|
|
13
|
-
* @param datastoreName
|
|
14
|
-
* @param requestBody
|
|
15
|
-
* @returns TableResponse Successful Response
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
static tableCreate(podId: string, datastoreName: string, requestBody: CreateTableRequest): CancelablePromise<TableResponse>;
|
|
19
9
|
/**
|
|
20
10
|
* List Tables
|
|
21
11
|
* List tables in a datastore.
|
|
22
12
|
* @param podId
|
|
23
|
-
* @param datastoreName
|
|
24
13
|
* @param limit Max number of tables to return.
|
|
25
14
|
* @param pageToken Cursor from a previous response for pagination.
|
|
26
15
|
* @returns TableListResponse Successful Response
|
|
27
16
|
* @throws ApiError
|
|
28
17
|
*/
|
|
29
|
-
static tableList(podId: string,
|
|
18
|
+
static tableList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<TableListResponse>;
|
|
30
19
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
20
|
+
* Create Table
|
|
21
|
+
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
33
22
|
* @param podId
|
|
34
|
-
* @param
|
|
35
|
-
* @param tableName
|
|
23
|
+
* @param requestBody
|
|
36
24
|
* @returns TableResponse Successful Response
|
|
37
25
|
* @throws ApiError
|
|
38
26
|
*/
|
|
39
|
-
static
|
|
27
|
+
static tableCreate(podId: string, requestBody: CreateTableRequest): CancelablePromise<TableResponse>;
|
|
40
28
|
/**
|
|
41
29
|
* Delete Table
|
|
42
30
|
* Delete a table and all records in it.
|
|
43
31
|
* @param podId
|
|
44
|
-
* @param datastoreName
|
|
45
32
|
* @param tableName
|
|
46
33
|
* @returns DatastoreMessageResponse Successful Response
|
|
47
34
|
* @throws ApiError
|
|
48
35
|
*/
|
|
49
|
-
static tableDelete(podId: string,
|
|
36
|
+
static tableDelete(podId: string, tableName: string): CancelablePromise<DatastoreMessageResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Get Table
|
|
39
|
+
* Get table schema metadata by table name.
|
|
40
|
+
* @param podId
|
|
41
|
+
* @param tableName
|
|
42
|
+
* @returns TableResponse Successful Response
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
static tableGet(podId: string, tableName: string): CancelablePromise<TableResponse>;
|
|
50
46
|
/**
|
|
51
47
|
* Update Table
|
|
52
48
|
* Update table metadata/configuration payload.
|
|
53
49
|
* @param podId
|
|
54
|
-
* @param datastoreName
|
|
55
50
|
* @param tableName
|
|
56
51
|
* @param requestBody
|
|
57
52
|
* @returns TableResponse Successful Response
|
|
58
53
|
* @throws ApiError
|
|
59
54
|
*/
|
|
60
|
-
static tableUpdate(podId: string,
|
|
55
|
+
static tableUpdate(podId: string, tableName: string, requestBody: UpdateTableRequest): CancelablePromise<TableResponse>;
|
|
61
56
|
/**
|
|
62
57
|
* Add Column
|
|
63
58
|
* Add a new column to a table. Column names must be unique and compatible with existing table schema rules.
|
|
64
59
|
* @param podId
|
|
65
|
-
* @param datastoreName
|
|
66
60
|
* @param tableName
|
|
67
61
|
* @param requestBody
|
|
68
62
|
* @returns TableResponse Successful Response
|
|
69
63
|
* @throws ApiError
|
|
70
64
|
*/
|
|
71
|
-
static tableColumnAdd(podId: string,
|
|
65
|
+
static tableColumnAdd(podId: string, tableName: string, requestBody: AddColumnRequest): CancelablePromise<TableResponse>;
|
|
72
66
|
/**
|
|
73
67
|
* Remove Column
|
|
74
68
|
* Remove a non-primary, non-system column from a table. System columns and the primary key cannot be removed.
|
|
75
69
|
* @param podId
|
|
76
|
-
* @param datastoreName
|
|
77
70
|
* @param tableName
|
|
78
71
|
* @param columnName
|
|
79
72
|
* @returns DatastoreMessageResponse Successful Response
|
|
80
73
|
* @throws ApiError
|
|
81
74
|
*/
|
|
82
|
-
static tableColumnRemove(podId: string,
|
|
75
|
+
static tableColumnRemove(podId: string, tableName: string, columnName: string): CancelablePromise<DatastoreMessageResponse>;
|
|
83
76
|
}
|
|
@@ -1,47 +1,21 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class TablesService {
|
|
4
|
-
/**
|
|
5
|
-
* Create Table
|
|
6
|
-
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
7
|
-
* @param podId
|
|
8
|
-
* @param datastoreName
|
|
9
|
-
* @param requestBody
|
|
10
|
-
* @returns TableResponse Successful Response
|
|
11
|
-
* @throws ApiError
|
|
12
|
-
*/
|
|
13
|
-
static tableCreate(podId, datastoreName, requestBody) {
|
|
14
|
-
return __request(OpenAPI, {
|
|
15
|
-
method: 'POST',
|
|
16
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}/tables',
|
|
17
|
-
path: {
|
|
18
|
-
'pod_id': podId,
|
|
19
|
-
'datastore_name': datastoreName,
|
|
20
|
-
},
|
|
21
|
-
body: requestBody,
|
|
22
|
-
mediaType: 'application/json',
|
|
23
|
-
errors: {
|
|
24
|
-
422: `Validation Error`,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
4
|
/**
|
|
29
5
|
* List Tables
|
|
30
6
|
* List tables in a datastore.
|
|
31
7
|
* @param podId
|
|
32
|
-
* @param datastoreName
|
|
33
8
|
* @param limit Max number of tables to return.
|
|
34
9
|
* @param pageToken Cursor from a previous response for pagination.
|
|
35
10
|
* @returns TableListResponse Successful Response
|
|
36
11
|
* @throws ApiError
|
|
37
12
|
*/
|
|
38
|
-
static tableList(podId,
|
|
13
|
+
static tableList(podId, limit = 100, pageToken) {
|
|
39
14
|
return __request(OpenAPI, {
|
|
40
15
|
method: 'GET',
|
|
41
|
-
url: '/pods/{pod_id}/
|
|
16
|
+
url: '/pods/{pod_id}/datastore/tables',
|
|
42
17
|
path: {
|
|
43
18
|
'pod_id': podId,
|
|
44
|
-
'datastore_name': datastoreName,
|
|
45
19
|
},
|
|
46
20
|
query: {
|
|
47
21
|
'limit': limit,
|
|
@@ -53,23 +27,22 @@ export class TablesService {
|
|
|
53
27
|
});
|
|
54
28
|
}
|
|
55
29
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
30
|
+
* Create Table
|
|
31
|
+
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
58
32
|
* @param podId
|
|
59
|
-
* @param
|
|
60
|
-
* @param tableName
|
|
33
|
+
* @param requestBody
|
|
61
34
|
* @returns TableResponse Successful Response
|
|
62
35
|
* @throws ApiError
|
|
63
36
|
*/
|
|
64
|
-
static
|
|
37
|
+
static tableCreate(podId, requestBody) {
|
|
65
38
|
return __request(OpenAPI, {
|
|
66
|
-
method: '
|
|
67
|
-
url: '/pods/{pod_id}/
|
|
39
|
+
method: 'POST',
|
|
40
|
+
url: '/pods/{pod_id}/datastore/tables',
|
|
68
41
|
path: {
|
|
69
42
|
'pod_id': podId,
|
|
70
|
-
'datastore_name': datastoreName,
|
|
71
|
-
'table_name': tableName,
|
|
72
43
|
},
|
|
44
|
+
body: requestBody,
|
|
45
|
+
mediaType: 'application/json',
|
|
73
46
|
errors: {
|
|
74
47
|
422: `Validation Error`,
|
|
75
48
|
},
|
|
@@ -79,18 +52,37 @@ export class TablesService {
|
|
|
79
52
|
* Delete Table
|
|
80
53
|
* Delete a table and all records in it.
|
|
81
54
|
* @param podId
|
|
82
|
-
* @param datastoreName
|
|
83
55
|
* @param tableName
|
|
84
56
|
* @returns DatastoreMessageResponse Successful Response
|
|
85
57
|
* @throws ApiError
|
|
86
58
|
*/
|
|
87
|
-
static tableDelete(podId,
|
|
59
|
+
static tableDelete(podId, tableName) {
|
|
88
60
|
return __request(OpenAPI, {
|
|
89
61
|
method: 'DELETE',
|
|
90
|
-
url: '/pods/{pod_id}/
|
|
62
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}',
|
|
63
|
+
path: {
|
|
64
|
+
'pod_id': podId,
|
|
65
|
+
'table_name': tableName,
|
|
66
|
+
},
|
|
67
|
+
errors: {
|
|
68
|
+
422: `Validation Error`,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get Table
|
|
74
|
+
* Get table schema metadata by table name.
|
|
75
|
+
* @param podId
|
|
76
|
+
* @param tableName
|
|
77
|
+
* @returns TableResponse Successful Response
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static tableGet(podId, tableName) {
|
|
81
|
+
return __request(OpenAPI, {
|
|
82
|
+
method: 'GET',
|
|
83
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}',
|
|
91
84
|
path: {
|
|
92
85
|
'pod_id': podId,
|
|
93
|
-
'datastore_name': datastoreName,
|
|
94
86
|
'table_name': tableName,
|
|
95
87
|
},
|
|
96
88
|
errors: {
|
|
@@ -102,19 +94,17 @@ export class TablesService {
|
|
|
102
94
|
* Update Table
|
|
103
95
|
* Update table metadata/configuration payload.
|
|
104
96
|
* @param podId
|
|
105
|
-
* @param datastoreName
|
|
106
97
|
* @param tableName
|
|
107
98
|
* @param requestBody
|
|
108
99
|
* @returns TableResponse Successful Response
|
|
109
100
|
* @throws ApiError
|
|
110
101
|
*/
|
|
111
|
-
static tableUpdate(podId,
|
|
102
|
+
static tableUpdate(podId, tableName, requestBody) {
|
|
112
103
|
return __request(OpenAPI, {
|
|
113
104
|
method: 'PATCH',
|
|
114
|
-
url: '/pods/{pod_id}/
|
|
105
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}',
|
|
115
106
|
path: {
|
|
116
107
|
'pod_id': podId,
|
|
117
|
-
'datastore_name': datastoreName,
|
|
118
108
|
'table_name': tableName,
|
|
119
109
|
},
|
|
120
110
|
body: requestBody,
|
|
@@ -128,19 +118,17 @@ export class TablesService {
|
|
|
128
118
|
* Add Column
|
|
129
119
|
* Add a new column to a table. Column names must be unique and compatible with existing table schema rules.
|
|
130
120
|
* @param podId
|
|
131
|
-
* @param datastoreName
|
|
132
121
|
* @param tableName
|
|
133
122
|
* @param requestBody
|
|
134
123
|
* @returns TableResponse Successful Response
|
|
135
124
|
* @throws ApiError
|
|
136
125
|
*/
|
|
137
|
-
static tableColumnAdd(podId,
|
|
126
|
+
static tableColumnAdd(podId, tableName, requestBody) {
|
|
138
127
|
return __request(OpenAPI, {
|
|
139
128
|
method: 'POST',
|
|
140
|
-
url: '/pods/{pod_id}/
|
|
129
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/columns',
|
|
141
130
|
path: {
|
|
142
131
|
'pod_id': podId,
|
|
143
|
-
'datastore_name': datastoreName,
|
|
144
132
|
'table_name': tableName,
|
|
145
133
|
},
|
|
146
134
|
body: requestBody,
|
|
@@ -154,19 +142,17 @@ export class TablesService {
|
|
|
154
142
|
* Remove Column
|
|
155
143
|
* Remove a non-primary, non-system column from a table. System columns and the primary key cannot be removed.
|
|
156
144
|
* @param podId
|
|
157
|
-
* @param datastoreName
|
|
158
145
|
* @param tableName
|
|
159
146
|
* @param columnName
|
|
160
147
|
* @returns DatastoreMessageResponse Successful Response
|
|
161
148
|
* @throws ApiError
|
|
162
149
|
*/
|
|
163
|
-
static tableColumnRemove(podId,
|
|
150
|
+
static tableColumnRemove(podId, tableName, columnName) {
|
|
164
151
|
return __request(OpenAPI, {
|
|
165
152
|
method: 'DELETE',
|
|
166
|
-
url: '/pods/{pod_id}/
|
|
153
|
+
url: '/pods/{pod_id}/datastore/tables/{table_name}/columns/{column_name}',
|
|
167
154
|
path: {
|
|
168
155
|
'pod_id': podId,
|
|
169
|
-
'datastore_name': datastoreName,
|
|
170
156
|
'table_name': tableName,
|
|
171
157
|
'column_name': columnName,
|
|
172
158
|
},
|
|
@@ -5,15 +5,6 @@ import type { TaskMessageListResponse } from '../models/TaskMessageListResponse.
|
|
|
5
5
|
import type { TaskResponse } from '../models/TaskResponse.js';
|
|
6
6
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
7
|
export declare class TasksService {
|
|
8
|
-
/**
|
|
9
|
-
* Create Task
|
|
10
|
-
* Create and start a new task
|
|
11
|
-
* @param podId
|
|
12
|
-
* @param requestBody
|
|
13
|
-
* @returns TaskResponse Successful Response
|
|
14
|
-
* @throws ApiError
|
|
15
|
-
*/
|
|
16
|
-
static taskCreate(podId: string, requestBody: CreateTaskRequest): CancelablePromise<TaskResponse>;
|
|
17
8
|
/**
|
|
18
9
|
* List Tasks
|
|
19
10
|
* List all tasks in a pod
|
|
@@ -25,6 +16,15 @@ export declare class TasksService {
|
|
|
25
16
|
* @throws ApiError
|
|
26
17
|
*/
|
|
27
18
|
static taskList(podId: string, agentName?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<TaskListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Create Task
|
|
21
|
+
* Create and start a new task
|
|
22
|
+
* @param podId
|
|
23
|
+
* @param requestBody
|
|
24
|
+
* @returns TaskResponse Successful Response
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static taskCreate(podId: string, requestBody: CreateTaskRequest): CancelablePromise<TaskResponse>;
|
|
28
28
|
/**
|
|
29
29
|
* Get Task
|
|
30
30
|
* Get a task by ID
|
|
@@ -35,14 +35,16 @@ export declare class TasksService {
|
|
|
35
35
|
*/
|
|
36
36
|
static taskGet(podId: string, taskId: string): CancelablePromise<TaskResponse>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
38
|
+
* List Messages
|
|
39
|
+
* List messages for a task
|
|
40
40
|
* @param podId
|
|
41
41
|
* @param taskId
|
|
42
|
-
* @
|
|
42
|
+
* @param limit
|
|
43
|
+
* @param pageToken
|
|
44
|
+
* @returns TaskMessageListResponse Successful Response
|
|
43
45
|
* @throws ApiError
|
|
44
46
|
*/
|
|
45
|
-
static
|
|
47
|
+
static taskMessageList(podId: string, taskId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<TaskMessageListResponse>;
|
|
46
48
|
/**
|
|
47
49
|
* Add Message
|
|
48
50
|
* Add a message to a task
|
|
@@ -54,16 +56,14 @@ export declare class TasksService {
|
|
|
54
56
|
*/
|
|
55
57
|
static taskMessageAdd(podId: string, taskId: string, requestBody: AddMessageRequest): CancelablePromise<TaskResponse>;
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
+
* Stop Task
|
|
60
|
+
* Stop a running task
|
|
59
61
|
* @param podId
|
|
60
62
|
* @param taskId
|
|
61
|
-
* @
|
|
62
|
-
* @param pageToken
|
|
63
|
-
* @returns TaskMessageListResponse Successful Response
|
|
63
|
+
* @returns TaskResponse Successful Response
|
|
64
64
|
* @throws ApiError
|
|
65
65
|
*/
|
|
66
|
-
static
|
|
66
|
+
static taskStop(podId: string, taskId: string): CancelablePromise<TaskResponse>;
|
|
67
67
|
/**
|
|
68
68
|
* Stream Task Updates
|
|
69
69
|
* Stream task updates via Server-Sent Events
|
|
@@ -2,49 +2,49 @@ import { OpenAPI } from '../core/OpenAPI.js';
|
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class TasksService {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* List Tasks
|
|
6
|
+
* List all tasks in a pod
|
|
7
7
|
* @param podId
|
|
8
|
-
* @param
|
|
9
|
-
* @
|
|
8
|
+
* @param agentName
|
|
9
|
+
* @param limit
|
|
10
|
+
* @param pageToken
|
|
11
|
+
* @returns TaskListResponse Successful Response
|
|
10
12
|
* @throws ApiError
|
|
11
13
|
*/
|
|
12
|
-
static
|
|
14
|
+
static taskList(podId, agentName, limit = 100, pageToken) {
|
|
13
15
|
return __request(OpenAPI, {
|
|
14
|
-
method: '
|
|
16
|
+
method: 'GET',
|
|
15
17
|
url: '/pods/{pod_id}/tasks',
|
|
16
18
|
path: {
|
|
17
19
|
'pod_id': podId,
|
|
18
20
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
query: {
|
|
22
|
+
'agent_name': agentName,
|
|
23
|
+
'limit': limit,
|
|
24
|
+
'page_token': pageToken,
|
|
25
|
+
},
|
|
21
26
|
errors: {
|
|
22
27
|
422: `Validation Error`,
|
|
23
28
|
},
|
|
24
29
|
});
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
32
|
+
* Create Task
|
|
33
|
+
* Create and start a new task
|
|
29
34
|
* @param podId
|
|
30
|
-
* @param
|
|
31
|
-
* @
|
|
32
|
-
* @param pageToken
|
|
33
|
-
* @returns TaskListResponse Successful Response
|
|
35
|
+
* @param requestBody
|
|
36
|
+
* @returns TaskResponse Successful Response
|
|
34
37
|
* @throws ApiError
|
|
35
38
|
*/
|
|
36
|
-
static
|
|
39
|
+
static taskCreate(podId, requestBody) {
|
|
37
40
|
return __request(OpenAPI, {
|
|
38
|
-
method: '
|
|
41
|
+
method: 'POST',
|
|
39
42
|
url: '/pods/{pod_id}/tasks',
|
|
40
43
|
path: {
|
|
41
44
|
'pod_id': podId,
|
|
42
45
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
'limit': limit,
|
|
46
|
-
'page_token': pageToken,
|
|
47
|
-
},
|
|
46
|
+
body: requestBody,
|
|
47
|
+
mediaType: 'application/json',
|
|
48
48
|
errors: {
|
|
49
49
|
422: `Validation Error`,
|
|
50
50
|
},
|
|
@@ -72,21 +72,27 @@ export class TasksService {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
75
|
+
* List Messages
|
|
76
|
+
* List messages for a task
|
|
77
77
|
* @param podId
|
|
78
78
|
* @param taskId
|
|
79
|
-
* @
|
|
79
|
+
* @param limit
|
|
80
|
+
* @param pageToken
|
|
81
|
+
* @returns TaskMessageListResponse Successful Response
|
|
80
82
|
* @throws ApiError
|
|
81
83
|
*/
|
|
82
|
-
static
|
|
84
|
+
static taskMessageList(podId, taskId, limit = 100, pageToken) {
|
|
83
85
|
return __request(OpenAPI, {
|
|
84
|
-
method: '
|
|
85
|
-
url: '/pods/{pod_id}/tasks/{task_id}/
|
|
86
|
+
method: 'GET',
|
|
87
|
+
url: '/pods/{pod_id}/tasks/{task_id}/messages',
|
|
86
88
|
path: {
|
|
87
89
|
'pod_id': podId,
|
|
88
90
|
'task_id': taskId,
|
|
89
91
|
},
|
|
92
|
+
query: {
|
|
93
|
+
'limit': limit,
|
|
94
|
+
'page_token': pageToken,
|
|
95
|
+
},
|
|
90
96
|
errors: {
|
|
91
97
|
422: `Validation Error`,
|
|
92
98
|
},
|
|
@@ -117,27 +123,21 @@ export class TasksService {
|
|
|
117
123
|
});
|
|
118
124
|
}
|
|
119
125
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
126
|
+
* Stop Task
|
|
127
|
+
* Stop a running task
|
|
122
128
|
* @param podId
|
|
123
129
|
* @param taskId
|
|
124
|
-
* @
|
|
125
|
-
* @param pageToken
|
|
126
|
-
* @returns TaskMessageListResponse Successful Response
|
|
130
|
+
* @returns TaskResponse Successful Response
|
|
127
131
|
* @throws ApiError
|
|
128
132
|
*/
|
|
129
|
-
static
|
|
133
|
+
static taskStop(podId, taskId) {
|
|
130
134
|
return __request(OpenAPI, {
|
|
131
|
-
method: '
|
|
132
|
-
url: '/pods/{pod_id}/tasks/{task_id}/
|
|
135
|
+
method: 'PATCH',
|
|
136
|
+
url: '/pods/{pod_id}/tasks/{task_id}/stop',
|
|
133
137
|
path: {
|
|
134
138
|
'pod_id': podId,
|
|
135
139
|
'task_id': taskId,
|
|
136
140
|
},
|
|
137
|
-
query: {
|
|
138
|
-
'limit': limit,
|
|
139
|
-
'page_token': pageToken,
|
|
140
|
-
},
|
|
141
141
|
errors: {
|
|
142
142
|
422: `Validation Error`,
|
|
143
143
|
},
|
|
@@ -5,14 +5,6 @@ import type { TriggerType } from '../models/TriggerType.js';
|
|
|
5
5
|
import type { UpdateTriggerRequest } from '../models/UpdateTriggerRequest.js';
|
|
6
6
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
7
|
export declare class TriggersService {
|
|
8
|
-
/**
|
|
9
|
-
* Create Trigger
|
|
10
|
-
* Create a new trigger.
|
|
11
|
-
* @param requestBody
|
|
12
|
-
* @returns TriggerResponse Successful Response
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
static triggerCreate(requestBody: CreateTriggerRequest): CancelablePromise<TriggerResponse>;
|
|
16
8
|
/**
|
|
17
9
|
* List Triggers
|
|
18
10
|
* List triggers.
|
|
@@ -25,6 +17,22 @@ export declare class TriggersService {
|
|
|
25
17
|
* @throws ApiError
|
|
26
18
|
*/
|
|
27
19
|
static triggerList(triggerType?: (TriggerType | null), isActive?: (boolean | null), podId?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<TriggerListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Create Trigger
|
|
22
|
+
* Create a new trigger.
|
|
23
|
+
* @param requestBody
|
|
24
|
+
* @returns TriggerResponse Successful Response
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static triggerCreate(requestBody: CreateTriggerRequest): CancelablePromise<TriggerResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete Trigger
|
|
30
|
+
* Delete a trigger.
|
|
31
|
+
* @param triggerId
|
|
32
|
+
* @returns void
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
static triggerDelete(triggerId: string): CancelablePromise<void>;
|
|
28
36
|
/**
|
|
29
37
|
* Get Trigger
|
|
30
38
|
* Get a trigger by ID.
|
|
@@ -42,12 +50,4 @@ export declare class TriggersService {
|
|
|
42
50
|
* @throws ApiError
|
|
43
51
|
*/
|
|
44
52
|
static triggerUpdate(triggerId: string, requestBody: UpdateTriggerRequest): CancelablePromise<TriggerResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Delete Trigger
|
|
47
|
-
* Delete a trigger.
|
|
48
|
-
* @param triggerId
|
|
49
|
-
* @returns void
|
|
50
|
-
* @throws ApiError
|
|
51
|
-
*/
|
|
52
|
-
static triggerDelete(triggerId: string): CancelablePromise<void>;
|
|
53
53
|
}
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class TriggersService {
|
|
4
|
-
/**
|
|
5
|
-
* Create Trigger
|
|
6
|
-
* Create a new trigger.
|
|
7
|
-
* @param requestBody
|
|
8
|
-
* @returns TriggerResponse Successful Response
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static triggerCreate(requestBody) {
|
|
12
|
-
return __request(OpenAPI, {
|
|
13
|
-
method: 'POST',
|
|
14
|
-
url: '/triggers',
|
|
15
|
-
body: requestBody,
|
|
16
|
-
mediaType: 'application/json',
|
|
17
|
-
errors: {
|
|
18
|
-
422: `Validation Error`,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
4
|
/**
|
|
23
5
|
* List Triggers
|
|
24
6
|
* List triggers.
|
|
@@ -47,15 +29,33 @@ export class TriggersService {
|
|
|
47
29
|
});
|
|
48
30
|
}
|
|
49
31
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* @param
|
|
32
|
+
* Create Trigger
|
|
33
|
+
* Create a new trigger.
|
|
34
|
+
* @param requestBody
|
|
53
35
|
* @returns TriggerResponse Successful Response
|
|
54
36
|
* @throws ApiError
|
|
55
37
|
*/
|
|
56
|
-
static
|
|
38
|
+
static triggerCreate(requestBody) {
|
|
57
39
|
return __request(OpenAPI, {
|
|
58
|
-
method: '
|
|
40
|
+
method: 'POST',
|
|
41
|
+
url: '/triggers',
|
|
42
|
+
body: requestBody,
|
|
43
|
+
mediaType: 'application/json',
|
|
44
|
+
errors: {
|
|
45
|
+
422: `Validation Error`,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Delete Trigger
|
|
51
|
+
* Delete a trigger.
|
|
52
|
+
* @param triggerId
|
|
53
|
+
* @returns void
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static triggerDelete(triggerId) {
|
|
57
|
+
return __request(OpenAPI, {
|
|
58
|
+
method: 'DELETE',
|
|
59
59
|
url: '/triggers/{trigger_id}',
|
|
60
60
|
path: {
|
|
61
61
|
'trigger_id': triggerId,
|
|
@@ -66,41 +66,41 @@ export class TriggersService {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
69
|
+
* Get Trigger
|
|
70
|
+
* Get a trigger by ID.
|
|
71
71
|
* @param triggerId
|
|
72
|
-
* @param requestBody
|
|
73
72
|
* @returns TriggerResponse Successful Response
|
|
74
73
|
* @throws ApiError
|
|
75
74
|
*/
|
|
76
|
-
static
|
|
75
|
+
static triggerGet(triggerId) {
|
|
77
76
|
return __request(OpenAPI, {
|
|
78
|
-
method: '
|
|
77
|
+
method: 'GET',
|
|
79
78
|
url: '/triggers/{trigger_id}',
|
|
80
79
|
path: {
|
|
81
80
|
'trigger_id': triggerId,
|
|
82
81
|
},
|
|
83
|
-
body: requestBody,
|
|
84
|
-
mediaType: 'application/json',
|
|
85
82
|
errors: {
|
|
86
83
|
422: `Validation Error`,
|
|
87
84
|
},
|
|
88
85
|
});
|
|
89
86
|
}
|
|
90
87
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
88
|
+
* Update Trigger
|
|
89
|
+
* Update a trigger.
|
|
93
90
|
* @param triggerId
|
|
94
|
-
* @
|
|
91
|
+
* @param requestBody
|
|
92
|
+
* @returns TriggerResponse Successful Response
|
|
95
93
|
* @throws ApiError
|
|
96
94
|
*/
|
|
97
|
-
static
|
|
95
|
+
static triggerUpdate(triggerId, requestBody) {
|
|
98
96
|
return __request(OpenAPI, {
|
|
99
|
-
method: '
|
|
97
|
+
method: 'PATCH',
|
|
100
98
|
url: '/triggers/{trigger_id}',
|
|
101
99
|
path: {
|
|
102
100
|
'trigger_id': triggerId,
|
|
103
101
|
},
|
|
102
|
+
body: requestBody,
|
|
103
|
+
mediaType: 'application/json',
|
|
104
104
|
errors: {
|
|
105
105
|
422: `Validation Error`,
|
|
106
106
|
},
|