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
|
@@ -2,67 +2,65 @@ import { OpenAPI } from '../core/OpenAPI.js';
|
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class WorkflowsService {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Get Workflow Run
|
|
6
|
+
* Get current state, context, and step history of a workflow run.
|
|
7
7
|
* @param podId
|
|
8
|
-
* @param
|
|
9
|
-
* @returns
|
|
8
|
+
* @param runId
|
|
9
|
+
* @returns FlowRunEntity Successful Response
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
12
|
-
static
|
|
12
|
+
static workflowRunGet(podId, runId) {
|
|
13
13
|
return __request(OpenAPI, {
|
|
14
|
-
method: '
|
|
15
|
-
url: '/pods/{pod_id}/
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}',
|
|
16
16
|
path: {
|
|
17
17
|
'pod_id': podId,
|
|
18
|
+
'run_id': runId,
|
|
18
19
|
},
|
|
19
|
-
body: requestBody,
|
|
20
|
-
mediaType: 'application/json',
|
|
21
20
|
errors: {
|
|
22
21
|
422: `Validation Error`,
|
|
23
22
|
},
|
|
24
23
|
});
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* Resume Workflow Run
|
|
27
|
+
* Resume a run in WAITING or EXECUTING state. The payload is written back into the current waiting node output and execution continues.
|
|
29
28
|
* @param podId
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
* @returns
|
|
29
|
+
* @param runId
|
|
30
|
+
* @param requestBody
|
|
31
|
+
* @returns FlowRunEntity Successful Response
|
|
33
32
|
* @throws ApiError
|
|
34
33
|
*/
|
|
35
|
-
static
|
|
34
|
+
static workflowRunResume(podId, runId, requestBody) {
|
|
36
35
|
return __request(OpenAPI, {
|
|
37
|
-
method: '
|
|
38
|
-
url: '/pods/{pod_id}/
|
|
36
|
+
method: 'POST',
|
|
37
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/resume',
|
|
39
38
|
path: {
|
|
40
39
|
'pod_id': podId,
|
|
40
|
+
'run_id': runId,
|
|
41
41
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'page_token': pageToken,
|
|
45
|
-
},
|
|
42
|
+
body: requestBody,
|
|
43
|
+
mediaType: 'application/json',
|
|
46
44
|
errors: {
|
|
47
45
|
422: `Validation Error`,
|
|
48
46
|
},
|
|
49
47
|
});
|
|
50
48
|
}
|
|
51
49
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
50
|
+
* Visualize Workflow Run
|
|
51
|
+
* Render an HTML view of a run overlaid on its workflow graph.
|
|
54
52
|
* @param podId
|
|
55
|
-
* @param
|
|
56
|
-
* @returns
|
|
53
|
+
* @param runId
|
|
54
|
+
* @returns string Successful Response
|
|
57
55
|
* @throws ApiError
|
|
58
56
|
*/
|
|
59
|
-
static
|
|
57
|
+
static workflowRunVisualize(podId, runId) {
|
|
60
58
|
return __request(OpenAPI, {
|
|
61
59
|
method: 'GET',
|
|
62
|
-
url: '/pods/{pod_id}/
|
|
60
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
|
|
63
61
|
path: {
|
|
64
62
|
'pod_id': podId,
|
|
65
|
-
'
|
|
63
|
+
'run_id': runId,
|
|
66
64
|
},
|
|
67
65
|
errors: {
|
|
68
66
|
422: `Validation Error`,
|
|
@@ -70,44 +68,51 @@ export class WorkflowsService {
|
|
|
70
68
|
});
|
|
71
69
|
}
|
|
72
70
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
71
|
+
* List Workflow Runs
|
|
72
|
+
* List recent runs for a given workflow.
|
|
75
73
|
* @param podId
|
|
76
74
|
* @param workflowName
|
|
77
|
-
* @param
|
|
78
|
-
* @
|
|
75
|
+
* @param limit
|
|
76
|
+
* @param pageToken
|
|
77
|
+
* @returns WorkflowRunListResponse Successful Response
|
|
79
78
|
* @throws ApiError
|
|
80
79
|
*/
|
|
81
|
-
static
|
|
80
|
+
static workflowRunList(podId, workflowName, limit = 100, pageToken) {
|
|
82
81
|
return __request(OpenAPI, {
|
|
83
|
-
method: '
|
|
84
|
-
url: '/pods/{pod_id}/
|
|
82
|
+
method: 'GET',
|
|
83
|
+
url: '/pods/{pod_id}/workflow-runs/{workflow_name}/runs',
|
|
85
84
|
path: {
|
|
86
85
|
'pod_id': podId,
|
|
87
86
|
'workflow_name': workflowName,
|
|
88
87
|
},
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
query: {
|
|
89
|
+
'limit': limit,
|
|
90
|
+
'page_token': pageToken,
|
|
91
|
+
},
|
|
91
92
|
errors: {
|
|
92
93
|
422: `Validation Error`,
|
|
93
94
|
},
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
98
|
+
* List Workflows
|
|
99
|
+
* List all workflows in a pod.
|
|
99
100
|
* @param podId
|
|
100
|
-
* @param
|
|
101
|
-
* @
|
|
101
|
+
* @param limit
|
|
102
|
+
* @param pageToken
|
|
103
|
+
* @returns WorkflowListResponse Successful Response
|
|
102
104
|
* @throws ApiError
|
|
103
105
|
*/
|
|
104
|
-
static
|
|
106
|
+
static workflowList(podId, limit = 100, pageToken) {
|
|
105
107
|
return __request(OpenAPI, {
|
|
106
|
-
method: '
|
|
107
|
-
url: '/pods/{pod_id}/workflows
|
|
108
|
+
method: 'GET',
|
|
109
|
+
url: '/pods/{pod_id}/workflows',
|
|
108
110
|
path: {
|
|
109
111
|
'pod_id': podId,
|
|
110
|
-
|
|
112
|
+
},
|
|
113
|
+
query: {
|
|
114
|
+
'limit': limit,
|
|
115
|
+
'page_token': pageToken,
|
|
111
116
|
},
|
|
112
117
|
errors: {
|
|
113
118
|
422: `Validation Error`,
|
|
@@ -115,21 +120,19 @@ export class WorkflowsService {
|
|
|
115
120
|
});
|
|
116
121
|
}
|
|
117
122
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
123
|
+
* Create Workflow
|
|
124
|
+
* Create a workflow definition. Use this before uploading graph nodes/edges with `workflow.graph.update`.
|
|
120
125
|
* @param podId
|
|
121
|
-
* @param workflowName
|
|
122
126
|
* @param requestBody
|
|
123
|
-
* @returns
|
|
127
|
+
* @returns FlowResponse Successful Response
|
|
124
128
|
* @throws ApiError
|
|
125
129
|
*/
|
|
126
|
-
static
|
|
130
|
+
static workflowCreate(podId, requestBody) {
|
|
127
131
|
return __request(OpenAPI, {
|
|
128
|
-
method: '
|
|
129
|
-
url: '/pods/{pod_id}/workflows
|
|
132
|
+
method: 'POST',
|
|
133
|
+
url: '/pods/{pod_id}/workflows',
|
|
130
134
|
path: {
|
|
131
135
|
'pod_id': podId,
|
|
132
|
-
'workflow_name': workflowName,
|
|
133
136
|
},
|
|
134
137
|
body: requestBody,
|
|
135
138
|
mediaType: 'application/json',
|
|
@@ -139,46 +142,41 @@ export class WorkflowsService {
|
|
|
139
142
|
});
|
|
140
143
|
}
|
|
141
144
|
/**
|
|
142
|
-
*
|
|
143
|
-
*
|
|
145
|
+
* Delete Workflow
|
|
146
|
+
* Delete a workflow definition.
|
|
144
147
|
* @param podId
|
|
145
148
|
* @param workflowName
|
|
146
|
-
* @
|
|
147
|
-
* @returns FlowInstallEntity Successful Response
|
|
149
|
+
* @returns void
|
|
148
150
|
* @throws ApiError
|
|
149
151
|
*/
|
|
150
|
-
static
|
|
152
|
+
static workflowDelete(podId, workflowName) {
|
|
151
153
|
return __request(OpenAPI, {
|
|
152
|
-
method: '
|
|
153
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}
|
|
154
|
+
method: 'DELETE',
|
|
155
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}',
|
|
154
156
|
path: {
|
|
155
157
|
'pod_id': podId,
|
|
156
158
|
'workflow_name': workflowName,
|
|
157
159
|
},
|
|
158
|
-
body: requestBody,
|
|
159
|
-
mediaType: 'application/json',
|
|
160
160
|
errors: {
|
|
161
161
|
422: `Validation Error`,
|
|
162
162
|
},
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
167
|
-
*
|
|
166
|
+
* Get Workflow
|
|
167
|
+
* Get a single workflow definition including graph and start configuration.
|
|
168
168
|
* @param podId
|
|
169
169
|
* @param workflowName
|
|
170
|
-
* @
|
|
171
|
-
* @returns void
|
|
170
|
+
* @returns FlowResponse Successful Response
|
|
172
171
|
* @throws ApiError
|
|
173
172
|
*/
|
|
174
|
-
static
|
|
173
|
+
static workflowGet(podId, workflowName) {
|
|
175
174
|
return __request(OpenAPI, {
|
|
176
|
-
method: '
|
|
177
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}
|
|
175
|
+
method: 'GET',
|
|
176
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}',
|
|
178
177
|
path: {
|
|
179
178
|
'pod_id': podId,
|
|
180
179
|
'workflow_name': workflowName,
|
|
181
|
-
'install_id': installId,
|
|
182
180
|
},
|
|
183
181
|
errors: {
|
|
184
182
|
422: `Validation Error`,
|
|
@@ -186,18 +184,18 @@ export class WorkflowsService {
|
|
|
186
184
|
});
|
|
187
185
|
}
|
|
188
186
|
/**
|
|
189
|
-
*
|
|
190
|
-
*
|
|
187
|
+
* Update Workflow Metadata
|
|
188
|
+
* Update workflow-level metadata such as description/install requirements. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
|
|
191
189
|
* @param podId
|
|
192
190
|
* @param workflowName
|
|
193
191
|
* @param requestBody
|
|
194
|
-
* @returns
|
|
192
|
+
* @returns FlowResponse Successful Response
|
|
195
193
|
* @throws ApiError
|
|
196
194
|
*/
|
|
197
|
-
static
|
|
195
|
+
static workflowUpdate(podId, workflowName, requestBody) {
|
|
198
196
|
return __request(OpenAPI, {
|
|
199
|
-
method: '
|
|
200
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}
|
|
197
|
+
method: 'PATCH',
|
|
198
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}',
|
|
201
199
|
path: {
|
|
202
200
|
'pod_id': podId,
|
|
203
201
|
'workflow_name': workflowName,
|
|
@@ -210,42 +208,45 @@ export class WorkflowsService {
|
|
|
210
208
|
});
|
|
211
209
|
}
|
|
212
210
|
/**
|
|
213
|
-
*
|
|
214
|
-
*
|
|
211
|
+
* Update Workflow Graph
|
|
212
|
+
* 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.
|
|
215
213
|
* @param podId
|
|
216
214
|
* @param workflowName
|
|
217
|
-
* @
|
|
215
|
+
* @param requestBody
|
|
216
|
+
* @returns FlowResponse Successful Response
|
|
218
217
|
* @throws ApiError
|
|
219
218
|
*/
|
|
220
|
-
static
|
|
219
|
+
static workflowGraphUpdate(podId, workflowName, requestBody) {
|
|
221
220
|
return __request(OpenAPI, {
|
|
222
|
-
method: '
|
|
223
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}/
|
|
221
|
+
method: 'PUT',
|
|
222
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/graph',
|
|
224
223
|
path: {
|
|
225
224
|
'pod_id': podId,
|
|
226
225
|
'workflow_name': workflowName,
|
|
227
226
|
},
|
|
227
|
+
body: requestBody,
|
|
228
|
+
mediaType: 'application/json',
|
|
228
229
|
errors: {
|
|
229
230
|
422: `Validation Error`,
|
|
230
231
|
},
|
|
231
232
|
});
|
|
232
233
|
}
|
|
233
234
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
235
|
+
* Install Workflow
|
|
236
|
+
* Install a workflow for runtime execution. Provide `account_id` when the workflow needs an integration account binding.
|
|
236
237
|
* @param podId
|
|
237
|
-
* @param
|
|
238
|
+
* @param workflowName
|
|
238
239
|
* @param requestBody
|
|
239
|
-
* @returns
|
|
240
|
+
* @returns FlowInstallEntity Successful Response
|
|
240
241
|
* @throws ApiError
|
|
241
242
|
*/
|
|
242
|
-
static
|
|
243
|
+
static workflowInstallCreate(podId, workflowName, requestBody) {
|
|
243
244
|
return __request(OpenAPI, {
|
|
244
245
|
method: 'POST',
|
|
245
|
-
url: '/pods/{pod_id}/
|
|
246
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/install',
|
|
246
247
|
path: {
|
|
247
248
|
'pod_id': podId,
|
|
248
|
-
'
|
|
249
|
+
'workflow_name': workflowName,
|
|
249
250
|
},
|
|
250
251
|
body: requestBody,
|
|
251
252
|
mediaType: 'application/json',
|
|
@@ -255,20 +256,22 @@ export class WorkflowsService {
|
|
|
255
256
|
});
|
|
256
257
|
}
|
|
257
258
|
/**
|
|
258
|
-
*
|
|
259
|
-
*
|
|
259
|
+
* Uninstall Workflow
|
|
260
|
+
* Remove a previously created workflow installation binding.
|
|
260
261
|
* @param podId
|
|
261
|
-
* @param
|
|
262
|
-
* @
|
|
262
|
+
* @param workflowName
|
|
263
|
+
* @param installId
|
|
264
|
+
* @returns void
|
|
263
265
|
* @throws ApiError
|
|
264
266
|
*/
|
|
265
|
-
static
|
|
267
|
+
static workflowInstallDelete(podId, workflowName, installId) {
|
|
266
268
|
return __request(OpenAPI, {
|
|
267
|
-
method: '
|
|
268
|
-
url: '/pods/{pod_id}/
|
|
269
|
+
method: 'DELETE',
|
|
270
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/installs/{install_id}',
|
|
269
271
|
path: {
|
|
270
272
|
'pod_id': podId,
|
|
271
|
-
'
|
|
273
|
+
'workflow_name': workflowName,
|
|
274
|
+
'install_id': installId,
|
|
272
275
|
},
|
|
273
276
|
errors: {
|
|
274
277
|
422: `Validation Error`,
|
|
@@ -276,47 +279,44 @@ export class WorkflowsService {
|
|
|
276
279
|
});
|
|
277
280
|
}
|
|
278
281
|
/**
|
|
279
|
-
*
|
|
280
|
-
*
|
|
282
|
+
* Start Workflow
|
|
283
|
+
* Start a new workflow run. For event/scheduled/datastore starts, the request body is treated as initial trigger payload and merged into execution context.
|
|
281
284
|
* @param podId
|
|
282
285
|
* @param workflowName
|
|
283
|
-
* @param
|
|
284
|
-
* @
|
|
285
|
-
* @returns WorkflowRunListResponse Successful Response
|
|
286
|
+
* @param requestBody
|
|
287
|
+
* @returns FlowRunEntity Successful Response
|
|
286
288
|
* @throws ApiError
|
|
287
289
|
*/
|
|
288
|
-
static
|
|
290
|
+
static workflowStart(podId, workflowName, requestBody) {
|
|
289
291
|
return __request(OpenAPI, {
|
|
290
|
-
method: '
|
|
291
|
-
url: '/pods/{pod_id}/
|
|
292
|
+
method: 'POST',
|
|
293
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/start',
|
|
292
294
|
path: {
|
|
293
295
|
'pod_id': podId,
|
|
294
296
|
'workflow_name': workflowName,
|
|
295
297
|
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
'page_token': pageToken,
|
|
299
|
-
},
|
|
298
|
+
body: requestBody,
|
|
299
|
+
mediaType: 'application/json',
|
|
300
300
|
errors: {
|
|
301
301
|
422: `Validation Error`,
|
|
302
302
|
},
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
|
-
* Visualize Workflow
|
|
307
|
-
* Render an HTML
|
|
306
|
+
* Visualize Workflow
|
|
307
|
+
* Render an HTML visualization for debugging workflow graph structure.
|
|
308
308
|
* @param podId
|
|
309
|
-
* @param
|
|
309
|
+
* @param workflowName
|
|
310
310
|
* @returns string Successful Response
|
|
311
311
|
* @throws ApiError
|
|
312
312
|
*/
|
|
313
|
-
static
|
|
313
|
+
static workflowVisualize(podId, workflowName) {
|
|
314
314
|
return __request(OpenAPI, {
|
|
315
315
|
method: 'GET',
|
|
316
|
-
url: '/pods/{pod_id}/
|
|
316
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/visualize',
|
|
317
317
|
path: {
|
|
318
318
|
'pod_id': podId,
|
|
319
|
-
'
|
|
319
|
+
'workflow_name': workflowName,
|
|
320
320
|
},
|
|
321
321
|
errors: {
|
|
322
322
|
422: `Validation Error`,
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { GeneratedClientAdapter } from "../generated.js";
|
|
2
|
-
import type { CreateDatastoreRequest } from "../openapi_client/models/CreateDatastoreRequest.js";
|
|
3
|
-
import type { DatastoreQueryRequest } from "../openapi_client/models/DatastoreQueryRequest.js";
|
|
4
|
-
import type { UpdateDatastoreRequest } from "../openapi_client/models/UpdateDatastoreRequest.js";
|
|
5
|
-
export declare class DatastoresNamespace {
|
|
6
|
-
private readonly client;
|
|
7
|
-
private readonly podId;
|
|
8
|
-
constructor(client: GeneratedClientAdapter, podId: () => string);
|
|
9
|
-
list(options?: {
|
|
10
|
-
limit?: number;
|
|
11
|
-
pageToken?: string;
|
|
12
|
-
}): Promise<import("../types.js").DatastoreListResponse>;
|
|
13
|
-
create(payload: CreateDatastoreRequest): Promise<import("../types.js").DatastoreResponse>;
|
|
14
|
-
get(name: string): Promise<import("../types.js").DatastoreResponse>;
|
|
15
|
-
update(name: string, payload: UpdateDatastoreRequest): Promise<import("../types.js").DatastoreResponse>;
|
|
16
|
-
delete(name: string): Promise<import("../types.js").DatastoreMessageResponse>;
|
|
17
|
-
query(name: string, request: DatastoreQueryRequest | string): Promise<import("../types.js").RecordQueryResponse>;
|
|
18
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { DatastoreService } from "../openapi_client/services/DatastoreService.js";
|
|
2
|
-
export class DatastoresNamespace {
|
|
3
|
-
client;
|
|
4
|
-
podId;
|
|
5
|
-
constructor(client, podId) {
|
|
6
|
-
this.client = client;
|
|
7
|
-
this.podId = podId;
|
|
8
|
-
}
|
|
9
|
-
list(options = {}) {
|
|
10
|
-
return this.client.request(() => DatastoreService.datastoreList(this.podId(), options.limit ?? 100, options.pageToken));
|
|
11
|
-
}
|
|
12
|
-
create(payload) {
|
|
13
|
-
return this.client.request(() => DatastoreService.datastoreCreate(this.podId(), payload));
|
|
14
|
-
}
|
|
15
|
-
get(name) {
|
|
16
|
-
return this.client.request(() => DatastoreService.datastoreGet(this.podId(), name));
|
|
17
|
-
}
|
|
18
|
-
update(name, payload) {
|
|
19
|
-
return this.client.request(() => DatastoreService.datastoreUpdate(this.podId(), name, payload));
|
|
20
|
-
}
|
|
21
|
-
delete(name) {
|
|
22
|
-
return this.client.request(() => DatastoreService.datastoreDelete(this.podId(), name));
|
|
23
|
-
}
|
|
24
|
-
query(name, request) {
|
|
25
|
-
const payload = typeof request === "string" ? { query: request } : request;
|
|
26
|
-
return this.client.request(() => DatastoreService.datastoreQuery(this.podId(), name, payload));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema for creating a new datastore.
|
|
3
|
-
*/
|
|
4
|
-
export type CreateDatastoreRequest = {
|
|
5
|
-
/**
|
|
6
|
-
* Datastore name. Use a stable resource name because it becomes part of API paths.
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* Human-readable datastore description.
|
|
11
|
-
*/
|
|
12
|
-
description?: (string | null);
|
|
13
|
-
/**
|
|
14
|
-
* Emit datastore record change events for trigger/workflow integrations.
|
|
15
|
-
*/
|
|
16
|
-
events_enabled?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Enable file indexing and search inside this datastore.
|
|
19
|
-
*/
|
|
20
|
-
search_enabled?: boolean;
|
|
21
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema for executing read-only SQL within a datastore.
|
|
3
|
-
*/
|
|
4
|
-
export type DatastoreQueryRequest = {
|
|
5
|
-
/**
|
|
6
|
-
* Read-only SQL query executed inside this datastore schema. Only SELECT-style queries are allowed; mutating statements are blocked. Write queries such as INSERT, UPDATE, DELETE, ALTER, DROP, CREATE, and TRUNCATE are rejected. Example: `SELECT id, amount FROM expenses WHERE amount > 100 ORDER BY created_at DESC LIMIT 20`.
|
|
7
|
-
*/
|
|
8
|
-
query: string;
|
|
9
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema for datastore response.
|
|
3
|
-
*/
|
|
4
|
-
export type DatastoreResponse = {
|
|
5
|
-
id: string;
|
|
6
|
-
pod_id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
description: (string | null);
|
|
9
|
-
events_enabled: boolean;
|
|
10
|
-
search_enabled: boolean;
|
|
11
|
-
graph_rag_enabled: boolean;
|
|
12
|
-
graph_instruction: (string | null);
|
|
13
|
-
created_at: string;
|
|
14
|
-
updated_at: string;
|
|
15
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { AgentNode_Output } from './AgentNode_Output.js';
|
|
2
|
-
import type { DecisionNode_Output } from './DecisionNode_Output.js';
|
|
3
|
-
import type { EndNode } from './EndNode.js';
|
|
4
|
-
import type { FlowStart } from './FlowStart.js';
|
|
5
|
-
import type { FormNode } from './FormNode.js';
|
|
6
|
-
import type { FunctionNode_Output } from './FunctionNode_Output.js';
|
|
7
|
-
import type { LoopNode } from './LoopNode.js';
|
|
8
|
-
import type { WaitUntilNode } from './WaitUntilNode.js';
|
|
9
|
-
import type { WorkflowEdge } from './WorkflowEdge.js';
|
|
10
|
-
/**
|
|
11
|
-
* Flow Aggregate representing a workflow definition.
|
|
12
|
-
*/
|
|
13
|
-
export type FlowEntity = {
|
|
14
|
-
id?: string;
|
|
15
|
-
created_at?: (string | null);
|
|
16
|
-
updated_at?: (string | null);
|
|
17
|
-
name: string;
|
|
18
|
-
description?: (string | null);
|
|
19
|
-
icon_url?: (string | null);
|
|
20
|
-
pod_id: string;
|
|
21
|
-
nodes?: Array<(FormNode | AgentNode_Output | FunctionNode_Output | DecisionNode_Output | LoopNode | WaitUntilNode | EndNode)>;
|
|
22
|
-
edges?: Array<WorkflowEdge>;
|
|
23
|
-
start?: (FlowStart | null);
|
|
24
|
-
is_active?: boolean;
|
|
25
|
-
require_user_install?: boolean;
|
|
26
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema for updating a datastore.
|
|
3
|
-
*/
|
|
4
|
-
export type UpdateDatastoreRequest = {
|
|
5
|
-
/**
|
|
6
|
-
* Updated datastore description.
|
|
7
|
-
*/
|
|
8
|
-
description?: (string | null);
|
|
9
|
-
/**
|
|
10
|
-
* Toggle datastore record change events.
|
|
11
|
-
*/
|
|
12
|
-
events_enabled?: (boolean | null);
|
|
13
|
-
/**
|
|
14
|
-
* Toggle datastore file indexing and search.
|
|
15
|
-
*/
|
|
16
|
-
search_enabled?: (boolean | null);
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|