lemma-sdk 0.2.37 → 0.2.40
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 +30 -14
- package/dist/browser/lemma-client.js +260 -206
- package/dist/client.d.ts +2 -2
- package/dist/client.js +3 -3
- package/dist/index.d.ts +2 -4
- package/dist/index.js +1 -2
- package/dist/namespaces/conversations.d.ts +0 -5
- package/dist/namespaces/conversations.js +0 -15
- package/dist/namespaces/pod-members.d.ts +5 -3
- package/dist/namespaces/pod-members.js +12 -6
- package/dist/namespaces/schedules.d.ts +22 -0
- package/dist/namespaces/schedules.js +24 -0
- package/dist/namespaces/workflows.d.ts +4 -5
- package/dist/namespaces/workflows.js +1 -4
- package/dist/openapi_client/index.d.ts +12 -12
- package/dist/openapi_client/index.js +5 -3
- package/dist/openapi_client/models/AgentModelName.d.ts +1 -1
- package/dist/openapi_client/models/AgentModelName.js +1 -1
- package/dist/openapi_client/models/CreateScheduleRequest.d.ts +14 -0
- package/dist/openapi_client/models/FlowResponse.d.ts +2 -2
- package/dist/openapi_client/models/FlowRunEntity.d.ts +5 -4
- package/dist/openapi_client/models/FormNodeConfig.d.ts +8 -0
- package/dist/openapi_client/models/MessageResponse.d.ts +0 -1
- package/dist/openapi_client/models/PodConfigResponse.d.ts +0 -2
- package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +2 -0
- package/dist/openapi_client/models/PodMemberResponse.d.ts +2 -0
- package/dist/openapi_client/models/ScheduleListResponse.d.ts +9 -0
- package/dist/openapi_client/models/{TriggerResponse.d.ts → ScheduleResponse.d.ts} +8 -4
- package/dist/openapi_client/models/{TriggerType.d.ts → ScheduleType.d.ts} +2 -2
- package/dist/openapi_client/models/ScheduleType.js +13 -0
- package/dist/openapi_client/models/ScheduledFlowStartInput.d.ts +1 -1
- package/dist/openapi_client/models/ScheduledFlowStartOutput.d.ts +1 -1
- package/dist/openapi_client/models/SendMessageRequest.d.ts +0 -2
- package/dist/openapi_client/models/{UpdateTriggerRequest.d.ts → UpdateScheduleRequest.d.ts} +4 -2
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +3 -3
- package/dist/openapi_client/models/WorkflowMode.d.ts +7 -0
- package/dist/openapi_client/models/WorkflowMode.js +12 -0
- package/dist/openapi_client/models/WorkflowRunWaitAssignment.d.ts +6 -0
- package/dist/openapi_client/models/WorkflowRunWaitAssignmentListResponse.d.ts +6 -0
- package/dist/openapi_client/models/WorkflowRunWaitEntity.d.ts +20 -0
- package/dist/openapi_client/models/WorkflowRunWaitStatus.d.ts +6 -0
- package/dist/openapi_client/models/WorkflowRunWaitStatus.js +11 -0
- package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +7 -0
- package/dist/openapi_client/models/WorkflowRunWaitType.js +12 -0
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +3 -3
- package/dist/openapi_client/services/AgentConversationsService.d.ts +4 -14
- package/dist/openapi_client/services/AgentConversationsService.js +4 -30
- package/dist/openapi_client/services/PodMembersService.d.ts +25 -7
- package/dist/openapi_client/services/PodMembersService.js +57 -13
- package/dist/openapi_client/services/SchedulesService.d.ts +59 -0
- package/dist/openapi_client/services/SchedulesService.js +125 -0
- package/dist/openapi_client/services/WebhooksService.d.ts +4 -4
- package/dist/openapi_client/services/WebhooksService.js +6 -6
- package/dist/openapi_client/services/WorkflowsService.d.ts +12 -33
- package/dist/openapi_client/services/WorkflowsService.js +26 -69
- package/dist/react/AuthGuard.js +1 -1
- package/dist/react/index.d.ts +10 -8
- package/dist/react/index.js +5 -4
- package/dist/react/useAssistantController.js +0 -2
- package/dist/react/useAssistantSession.d.ts +0 -2
- package/dist/react/useAssistantSession.js +8 -14
- package/dist/react/useCreateSchedule.d.ts +17 -0
- package/dist/react/useCreateSchedule.js +45 -0
- package/dist/react/useDeleteSchedule.d.ts +19 -0
- package/dist/react/useDeleteSchedule.js +49 -0
- package/dist/react/usePodAccess.js +1 -1
- package/dist/react/useSchedules.d.ts +30 -0
- package/dist/react/useSchedules.js +123 -0
- package/dist/react/useUpdateSchedule.d.ts +20 -0
- package/dist/react/useUpdateSchedule.js +49 -0
- package/dist/react/useWorkflowRun.js +1 -1
- package/dist/react/useWorkflowRunWaitAssignments.d.ts +26 -0
- package/dist/react/useWorkflowRunWaitAssignments.js +102 -0
- package/dist/react/useWorkflowStart.js +1 -1
- package/dist/run-utils.d.ts +1 -5
- package/dist/run-utils.js +0 -10
- package/dist/types.d.ts +3 -43
- package/package.json +1 -1
- package/dist/namespaces/tasks.d.ts +0 -25
- package/dist/namespaces/tasks.js +0 -91
- package/dist/openapi_client/models/CreateTriggerRequest.d.ts +0 -13
- package/dist/openapi_client/models/FlowInstallResponse.d.ts +0 -15
- package/dist/openapi_client/models/PodFlowConfigItem.d.ts +0 -7
- package/dist/openapi_client/models/TriggerListResponse.d.ts +0 -9
- package/dist/openapi_client/models/TriggerType.js +0 -13
- package/dist/openapi_client/models/WorkflowInstallListResponse.d.ts +0 -4
- package/dist/openapi_client/models/WorkflowInstallMode.d.ts +0 -7
- package/dist/openapi_client/models/WorkflowInstallMode.js +0 -12
- package/dist/openapi_client/models/WorkflowInstallRequest.d.ts +0 -11
- package/dist/openapi_client/models/WorkflowInstallRequest.js +0 -1
- package/dist/openapi_client/models/WorkflowTimeInstallConfig.d.ts +0 -19
- package/dist/openapi_client/models/WorkflowTimeInstallConfig.js +0 -1
- package/dist/openapi_client/services/TriggersService.d.ts +0 -53
- package/dist/openapi_client/services/TriggersService.js +0 -109
- package/dist/react/useAgentRun.d.ts +0 -38
- package/dist/react/useAgentRun.js +0 -149
- package/dist/react/useAgentRuns.d.ts +0 -33
- package/dist/react/useAgentRuns.js +0 -149
- package/dist/react/useAssistantRun.d.ts +0 -27
- package/dist/react/useAssistantRun.js +0 -47
- package/dist/react/useTaskSession.d.ts +0 -35
- package/dist/react/useTaskSession.js +0 -269
- package/dist/task-events.d.ts +0 -8
- package/dist/task-events.js +0 -115
- /package/dist/openapi_client/models/{CreateTriggerRequest.js → CreateScheduleRequest.js} +0 -0
- /package/dist/openapi_client/models/{FlowInstallResponse.js → ScheduleListResponse.js} +0 -0
- /package/dist/openapi_client/models/{PodFlowConfigItem.js → ScheduleResponse.js} +0 -0
- /package/dist/openapi_client/models/{TriggerListResponse.js → UpdateScheduleRequest.js} +0 -0
- /package/dist/openapi_client/models/{TriggerResponse.js → WorkflowRunWaitAssignment.js} +0 -0
- /package/dist/openapi_client/models/{UpdateTriggerRequest.js → WorkflowRunWaitAssignmentListResponse.js} +0 -0
- /package/dist/openapi_client/models/{WorkflowInstallListResponse.js → WorkflowRunWaitEntity.js} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var WorkflowRunWaitStatus;
|
|
6
|
+
(function (WorkflowRunWaitStatus) {
|
|
7
|
+
WorkflowRunWaitStatus["ACTIVE"] = "ACTIVE";
|
|
8
|
+
WorkflowRunWaitStatus["COMPLETED"] = "COMPLETED";
|
|
9
|
+
WorkflowRunWaitStatus["FAILED"] = "FAILED";
|
|
10
|
+
WorkflowRunWaitStatus["CANCELLED"] = "CANCELLED";
|
|
11
|
+
})(WorkflowRunWaitStatus || (WorkflowRunWaitStatus = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var WorkflowRunWaitType;
|
|
6
|
+
(function (WorkflowRunWaitType) {
|
|
7
|
+
WorkflowRunWaitType["HUMAN"] = "HUMAN";
|
|
8
|
+
WorkflowRunWaitType["AGENT"] = "AGENT";
|
|
9
|
+
WorkflowRunWaitType["FUNCTION"] = "FUNCTION";
|
|
10
|
+
WorkflowRunWaitType["TIME"] = "TIME";
|
|
11
|
+
WorkflowRunWaitType["SCHEDULE"] = "SCHEDULE";
|
|
12
|
+
})(WorkflowRunWaitType || (WorkflowRunWaitType = {}));
|
|
@@ -2,7 +2,7 @@ import type { DataStoreWorkflowStartInput } from './DataStoreWorkflowStartInput.
|
|
|
2
2
|
import type { EventWorkflowStartInput } from './EventWorkflowStartInput.js';
|
|
3
3
|
import type { ManualWorkflowStartInput } from './ManualWorkflowStartInput.js';
|
|
4
4
|
import type { ScheduledWorkflowStartInput } from './ScheduledWorkflowStartInput.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { WorkflowMode } from './WorkflowMode.js';
|
|
6
6
|
export type WorkflowUpdateRequest = {
|
|
7
7
|
/**
|
|
8
8
|
* Updated workflow description.
|
|
@@ -13,9 +13,9 @@ export type WorkflowUpdateRequest = {
|
|
|
13
13
|
*/
|
|
14
14
|
icon_url?: (string | null);
|
|
15
15
|
/**
|
|
16
|
-
* Updated workflow
|
|
16
|
+
* Updated workflow schedule ownership mode.
|
|
17
17
|
*/
|
|
18
|
-
mode?: (
|
|
18
|
+
mode?: (WorkflowMode | null);
|
|
19
19
|
/**
|
|
20
20
|
* Updated start trigger configuration.
|
|
21
21
|
*/
|
|
@@ -26,15 +26,6 @@ export declare class AgentConversationsService {
|
|
|
26
26
|
* @throws ApiError
|
|
27
27
|
*/
|
|
28
28
|
static agentConversationCreate(podId: string, requestBody: CreateConversationRequest): CancelablePromise<ConversationResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Send Pod Conversation Message
|
|
31
|
-
* Create or continue a pod-scoped assistant or agent conversation and stream runtime events over Server-Sent Events until the active run completes. Provide agent_name to target a pod agent; omit it for the default pod assistant.
|
|
32
|
-
* @param podId
|
|
33
|
-
* @param requestBody
|
|
34
|
-
* @returns any Successful Response
|
|
35
|
-
* @throws ApiError
|
|
36
|
-
*/
|
|
37
|
-
static agentConversationMessageSendOrCreate(podId: string, requestBody: SendMessageRequest): CancelablePromise<any>;
|
|
38
29
|
/**
|
|
39
30
|
* Get Pod Conversation
|
|
40
31
|
* Get a single pod-scoped assistant or agent conversation by id.
|
|
@@ -67,7 +58,7 @@ export declare class AgentConversationsService {
|
|
|
67
58
|
static agentConversationMessageList(podId: string, conversationId: string, afterSequence?: (number | null), limit?: number): CancelablePromise<MessageListResponse>;
|
|
68
59
|
/**
|
|
69
60
|
* Send Pod Conversation Message
|
|
70
|
-
* Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active
|
|
61
|
+
* Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active turn completes. User messages can also be appended while work is already active; the next harness step sees the new message in persisted history.
|
|
71
62
|
* @param podId
|
|
72
63
|
* @param conversationId
|
|
73
64
|
* @param requestBody
|
|
@@ -77,7 +68,7 @@ export declare class AgentConversationsService {
|
|
|
77
68
|
static agentConversationMessageSend(podId: string, conversationId: string, requestBody: SendMessageRequest): CancelablePromise<any>;
|
|
78
69
|
/**
|
|
79
70
|
* Stop Pod Conversation
|
|
80
|
-
* Request cancellation of the active
|
|
71
|
+
* Request cancellation of the active conversation work.
|
|
81
72
|
* @param podId
|
|
82
73
|
* @param conversationId
|
|
83
74
|
* @returns ConversationResponse Successful Response
|
|
@@ -86,12 +77,11 @@ export declare class AgentConversationsService {
|
|
|
86
77
|
static agentConversationStop(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
|
|
87
78
|
/**
|
|
88
79
|
* Stream Pod Conversation
|
|
89
|
-
* Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active
|
|
80
|
+
* Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active work.
|
|
90
81
|
* @param podId
|
|
91
82
|
* @param conversationId
|
|
92
|
-
* @param agentRunId
|
|
93
83
|
* @returns any Successful Response
|
|
94
84
|
* @throws ApiError
|
|
95
85
|
*/
|
|
96
|
-
static agentConversationStream(podId: string, conversationId: string
|
|
86
|
+
static agentConversationStream(podId: string, conversationId: string): CancelablePromise<any>;
|
|
97
87
|
}
|
|
@@ -50,28 +50,6 @@ export class AgentConversationsService {
|
|
|
50
50
|
},
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
/**
|
|
54
|
-
* Send Pod Conversation Message
|
|
55
|
-
* Create or continue a pod-scoped assistant or agent conversation and stream runtime events over Server-Sent Events until the active run completes. Provide agent_name to target a pod agent; omit it for the default pod assistant.
|
|
56
|
-
* @param podId
|
|
57
|
-
* @param requestBody
|
|
58
|
-
* @returns any Successful Response
|
|
59
|
-
* @throws ApiError
|
|
60
|
-
*/
|
|
61
|
-
static agentConversationMessageSendOrCreate(podId, requestBody) {
|
|
62
|
-
return __request(OpenAPI, {
|
|
63
|
-
method: 'POST',
|
|
64
|
-
url: '/pods/{pod_id}/conversations/messages',
|
|
65
|
-
path: {
|
|
66
|
-
'pod_id': podId,
|
|
67
|
-
},
|
|
68
|
-
body: requestBody,
|
|
69
|
-
mediaType: 'application/json',
|
|
70
|
-
errors: {
|
|
71
|
-
422: `Validation Error`,
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
53
|
/**
|
|
76
54
|
* Get Pod Conversation
|
|
77
55
|
* Get a single pod-scoped assistant or agent conversation by id.
|
|
@@ -146,7 +124,7 @@ export class AgentConversationsService {
|
|
|
146
124
|
}
|
|
147
125
|
/**
|
|
148
126
|
* Send Pod Conversation Message
|
|
149
|
-
* Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active
|
|
127
|
+
* Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active turn completes. User messages can also be appended while work is already active; the next harness step sees the new message in persisted history.
|
|
150
128
|
* @param podId
|
|
151
129
|
* @param conversationId
|
|
152
130
|
* @param requestBody
|
|
@@ -170,7 +148,7 @@ export class AgentConversationsService {
|
|
|
170
148
|
}
|
|
171
149
|
/**
|
|
172
150
|
* Stop Pod Conversation
|
|
173
|
-
* Request cancellation of the active
|
|
151
|
+
* Request cancellation of the active conversation work.
|
|
174
152
|
* @param podId
|
|
175
153
|
* @param conversationId
|
|
176
154
|
* @returns ConversationResponse Successful Response
|
|
@@ -191,14 +169,13 @@ export class AgentConversationsService {
|
|
|
191
169
|
}
|
|
192
170
|
/**
|
|
193
171
|
* Stream Pod Conversation
|
|
194
|
-
* Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active
|
|
172
|
+
* Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active work.
|
|
195
173
|
* @param podId
|
|
196
174
|
* @param conversationId
|
|
197
|
-
* @param agentRunId
|
|
198
175
|
* @returns any Successful Response
|
|
199
176
|
* @throws ApiError
|
|
200
177
|
*/
|
|
201
|
-
static agentConversationStream(podId, conversationId
|
|
178
|
+
static agentConversationStream(podId, conversationId) {
|
|
202
179
|
return __request(OpenAPI, {
|
|
203
180
|
method: 'GET',
|
|
204
181
|
url: '/pods/{pod_id}/conversations/{conversation_id}/stream',
|
|
@@ -206,9 +183,6 @@ export class AgentConversationsService {
|
|
|
206
183
|
'pod_id': podId,
|
|
207
184
|
'conversation_id': conversationId,
|
|
208
185
|
},
|
|
209
|
-
query: {
|
|
210
|
-
'agent_run_id': agentRunId,
|
|
211
|
-
},
|
|
212
186
|
errors: {
|
|
213
187
|
422: `Validation Error`,
|
|
214
188
|
},
|
|
@@ -24,32 +24,50 @@ export declare class PodMembersService {
|
|
|
24
24
|
* @throws ApiError
|
|
25
25
|
*/
|
|
26
26
|
static podMemberAdd(podId: string, requestBody: PodMemberAddRequest): CancelablePromise<PodMemberResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Lookup Pod Member By Email
|
|
29
|
+
* Resolve a pod member by email
|
|
30
|
+
* @param podId
|
|
31
|
+
* @param email
|
|
32
|
+
* @returns PodMemberDetailResponse Successful Response
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
static podMemberLookupByEmail(podId: string, email: string): CancelablePromise<PodMemberDetailResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Lookup Pod Member By User ID
|
|
38
|
+
* Resolve a pod member by user id
|
|
39
|
+
* @param podId
|
|
40
|
+
* @param userId
|
|
41
|
+
* @returns PodMemberDetailResponse Successful Response
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
static podMemberLookupByUserId(podId: string, userId: string): CancelablePromise<PodMemberDetailResponse>;
|
|
27
45
|
/**
|
|
28
46
|
* Remove Pod Member
|
|
29
47
|
* Remove a member from a pod
|
|
30
48
|
* @param podId
|
|
31
|
-
* @param
|
|
49
|
+
* @param podMemberId
|
|
32
50
|
* @returns void
|
|
33
51
|
* @throws ApiError
|
|
34
52
|
*/
|
|
35
|
-
static podMemberRemove(podId: string,
|
|
53
|
+
static podMemberRemove(podId: string, podMemberId: string): CancelablePromise<void>;
|
|
36
54
|
/**
|
|
37
55
|
* Get Pod Member
|
|
38
|
-
* Get a pod member by
|
|
56
|
+
* Get a pod member by pod member id
|
|
39
57
|
* @param podId
|
|
40
|
-
* @param
|
|
58
|
+
* @param podMemberId
|
|
41
59
|
* @returns PodMemberDetailResponse Successful Response
|
|
42
60
|
* @throws ApiError
|
|
43
61
|
*/
|
|
44
|
-
static podMemberGet(podId: string,
|
|
62
|
+
static podMemberGet(podId: string, podMemberId: string): CancelablePromise<PodMemberDetailResponse>;
|
|
45
63
|
/**
|
|
46
64
|
* Update Member Role
|
|
47
65
|
* Update a pod member's role
|
|
48
66
|
* @param podId
|
|
49
|
-
* @param
|
|
67
|
+
* @param podMemberId
|
|
50
68
|
* @param requestBody
|
|
51
69
|
* @returns PodMemberResponse Successful Response
|
|
52
70
|
* @throws ApiError
|
|
53
71
|
*/
|
|
54
|
-
static podMemberUpdateRole(podId: string,
|
|
72
|
+
static podMemberUpdateRole(podId: string, podMemberId: string, requestBody: PodMemberUpdateRoleRequest): CancelablePromise<PodMemberResponse>;
|
|
55
73
|
}
|
|
@@ -48,21 +48,65 @@ export class PodMembersService {
|
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Lookup Pod Member By Email
|
|
53
|
+
* Resolve a pod member by email
|
|
54
|
+
* @param podId
|
|
55
|
+
* @param email
|
|
56
|
+
* @returns PodMemberDetailResponse Successful Response
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static podMemberLookupByEmail(podId, email) {
|
|
60
|
+
return __request(OpenAPI, {
|
|
61
|
+
method: 'GET',
|
|
62
|
+
url: '/pods/{pod_id}/members/lookup/by-email',
|
|
63
|
+
path: {
|
|
64
|
+
'pod_id': podId,
|
|
65
|
+
},
|
|
66
|
+
query: {
|
|
67
|
+
'email': email,
|
|
68
|
+
},
|
|
69
|
+
errors: {
|
|
70
|
+
422: `Validation Error`,
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Lookup Pod Member By User ID
|
|
76
|
+
* Resolve a pod member by user id
|
|
77
|
+
* @param podId
|
|
78
|
+
* @param userId
|
|
79
|
+
* @returns PodMemberDetailResponse Successful Response
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
static podMemberLookupByUserId(podId, userId) {
|
|
83
|
+
return __request(OpenAPI, {
|
|
84
|
+
method: 'GET',
|
|
85
|
+
url: '/pods/{pod_id}/members/lookup/by-user-id/{user_id}',
|
|
86
|
+
path: {
|
|
87
|
+
'pod_id': podId,
|
|
88
|
+
'user_id': userId,
|
|
89
|
+
},
|
|
90
|
+
errors: {
|
|
91
|
+
422: `Validation Error`,
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
}
|
|
51
95
|
/**
|
|
52
96
|
* Remove Pod Member
|
|
53
97
|
* Remove a member from a pod
|
|
54
98
|
* @param podId
|
|
55
|
-
* @param
|
|
99
|
+
* @param podMemberId
|
|
56
100
|
* @returns void
|
|
57
101
|
* @throws ApiError
|
|
58
102
|
*/
|
|
59
|
-
static podMemberRemove(podId,
|
|
103
|
+
static podMemberRemove(podId, podMemberId) {
|
|
60
104
|
return __request(OpenAPI, {
|
|
61
105
|
method: 'DELETE',
|
|
62
|
-
url: '/pods/{pod_id}/members/{
|
|
106
|
+
url: '/pods/{pod_id}/members/{pod_member_id}',
|
|
63
107
|
path: {
|
|
64
108
|
'pod_id': podId,
|
|
65
|
-
'
|
|
109
|
+
'pod_member_id': podMemberId,
|
|
66
110
|
},
|
|
67
111
|
errors: {
|
|
68
112
|
422: `Validation Error`,
|
|
@@ -71,19 +115,19 @@ export class PodMembersService {
|
|
|
71
115
|
}
|
|
72
116
|
/**
|
|
73
117
|
* Get Pod Member
|
|
74
|
-
* Get a pod member by
|
|
118
|
+
* Get a pod member by pod member id
|
|
75
119
|
* @param podId
|
|
76
|
-
* @param
|
|
120
|
+
* @param podMemberId
|
|
77
121
|
* @returns PodMemberDetailResponse Successful Response
|
|
78
122
|
* @throws ApiError
|
|
79
123
|
*/
|
|
80
|
-
static podMemberGet(podId,
|
|
124
|
+
static podMemberGet(podId, podMemberId) {
|
|
81
125
|
return __request(OpenAPI, {
|
|
82
126
|
method: 'GET',
|
|
83
|
-
url: '/pods/{pod_id}/members/{
|
|
127
|
+
url: '/pods/{pod_id}/members/{pod_member_id}',
|
|
84
128
|
path: {
|
|
85
129
|
'pod_id': podId,
|
|
86
|
-
'
|
|
130
|
+
'pod_member_id': podMemberId,
|
|
87
131
|
},
|
|
88
132
|
errors: {
|
|
89
133
|
422: `Validation Error`,
|
|
@@ -94,18 +138,18 @@ export class PodMembersService {
|
|
|
94
138
|
* Update Member Role
|
|
95
139
|
* Update a pod member's role
|
|
96
140
|
* @param podId
|
|
97
|
-
* @param
|
|
141
|
+
* @param podMemberId
|
|
98
142
|
* @param requestBody
|
|
99
143
|
* @returns PodMemberResponse Successful Response
|
|
100
144
|
* @throws ApiError
|
|
101
145
|
*/
|
|
102
|
-
static podMemberUpdateRole(podId,
|
|
146
|
+
static podMemberUpdateRole(podId, podMemberId, requestBody) {
|
|
103
147
|
return __request(OpenAPI, {
|
|
104
148
|
method: 'PATCH',
|
|
105
|
-
url: '/pods/{pod_id}/members/{
|
|
149
|
+
url: '/pods/{pod_id}/members/{pod_member_id}/role',
|
|
106
150
|
path: {
|
|
107
151
|
'pod_id': podId,
|
|
108
|
-
'
|
|
152
|
+
'pod_member_id': podMemberId,
|
|
109
153
|
},
|
|
110
154
|
body: requestBody,
|
|
111
155
|
mediaType: 'application/json',
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { CreateScheduleRequest } from '../models/CreateScheduleRequest.js';
|
|
2
|
+
import type { ScheduleListResponse } from '../models/ScheduleListResponse.js';
|
|
3
|
+
import type { ScheduleResponse } from '../models/ScheduleResponse.js';
|
|
4
|
+
import type { ScheduleType } from '../models/ScheduleType.js';
|
|
5
|
+
import type { UpdateScheduleRequest } from '../models/UpdateScheduleRequest.js';
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
|
+
export declare class SchedulesService {
|
|
8
|
+
/**
|
|
9
|
+
* List Schedules
|
|
10
|
+
* List pod schedules.
|
|
11
|
+
* @param podId
|
|
12
|
+
* @param scheduleType
|
|
13
|
+
* @param isActive
|
|
14
|
+
* @param agentName
|
|
15
|
+
* @param workflowName
|
|
16
|
+
* @param limit
|
|
17
|
+
* @param pageToken
|
|
18
|
+
* @returns ScheduleListResponse Successful Response
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
static scheduleList(podId: string, scheduleType?: (ScheduleType | null), isActive?: (boolean | null), agentName?: (string | null), workflowName?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<ScheduleListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create Schedule
|
|
24
|
+
* Create a new pod schedule.
|
|
25
|
+
* @param podId
|
|
26
|
+
* @param requestBody
|
|
27
|
+
* @returns ScheduleResponse Successful Response
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
static scheduleCreate(podId: string, requestBody: CreateScheduleRequest): CancelablePromise<ScheduleResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Delete Schedule
|
|
33
|
+
* Delete a schedule.
|
|
34
|
+
* @param podId
|
|
35
|
+
* @param scheduleId
|
|
36
|
+
* @returns void
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static scheduleDelete(podId: string, scheduleId: string): CancelablePromise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Get Schedule
|
|
42
|
+
* Get a schedule by ID.
|
|
43
|
+
* @param podId
|
|
44
|
+
* @param scheduleId
|
|
45
|
+
* @returns ScheduleResponse Successful Response
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
static scheduleGet(podId: string, scheduleId: string): CancelablePromise<ScheduleResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Update Schedule
|
|
51
|
+
* Update a schedule.
|
|
52
|
+
* @param podId
|
|
53
|
+
* @param scheduleId
|
|
54
|
+
* @param requestBody
|
|
55
|
+
* @returns ScheduleResponse Successful Response
|
|
56
|
+
* @throws ApiError
|
|
57
|
+
*/
|
|
58
|
+
static scheduleUpdate(podId: string, scheduleId: string, requestBody: UpdateScheduleRequest): CancelablePromise<ScheduleResponse>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class SchedulesService {
|
|
4
|
+
/**
|
|
5
|
+
* List Schedules
|
|
6
|
+
* List pod schedules.
|
|
7
|
+
* @param podId
|
|
8
|
+
* @param scheduleType
|
|
9
|
+
* @param isActive
|
|
10
|
+
* @param agentName
|
|
11
|
+
* @param workflowName
|
|
12
|
+
* @param limit
|
|
13
|
+
* @param pageToken
|
|
14
|
+
* @returns ScheduleListResponse Successful Response
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static scheduleList(podId, scheduleType, isActive, agentName, workflowName, limit = 100, pageToken) {
|
|
18
|
+
return __request(OpenAPI, {
|
|
19
|
+
method: 'GET',
|
|
20
|
+
url: '/pods/{pod_id}/schedules',
|
|
21
|
+
path: {
|
|
22
|
+
'pod_id': podId,
|
|
23
|
+
},
|
|
24
|
+
query: {
|
|
25
|
+
'schedule_type': scheduleType,
|
|
26
|
+
'is_active': isActive,
|
|
27
|
+
'agent_name': agentName,
|
|
28
|
+
'workflow_name': workflowName,
|
|
29
|
+
'limit': limit,
|
|
30
|
+
'page_token': pageToken,
|
|
31
|
+
},
|
|
32
|
+
errors: {
|
|
33
|
+
422: `Validation Error`,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Create Schedule
|
|
39
|
+
* Create a new pod schedule.
|
|
40
|
+
* @param podId
|
|
41
|
+
* @param requestBody
|
|
42
|
+
* @returns ScheduleResponse Successful Response
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
static scheduleCreate(podId, requestBody) {
|
|
46
|
+
return __request(OpenAPI, {
|
|
47
|
+
method: 'POST',
|
|
48
|
+
url: '/pods/{pod_id}/schedules',
|
|
49
|
+
path: {
|
|
50
|
+
'pod_id': podId,
|
|
51
|
+
},
|
|
52
|
+
body: requestBody,
|
|
53
|
+
mediaType: 'application/json',
|
|
54
|
+
errors: {
|
|
55
|
+
422: `Validation Error`,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Delete Schedule
|
|
61
|
+
* Delete a schedule.
|
|
62
|
+
* @param podId
|
|
63
|
+
* @param scheduleId
|
|
64
|
+
* @returns void
|
|
65
|
+
* @throws ApiError
|
|
66
|
+
*/
|
|
67
|
+
static scheduleDelete(podId, scheduleId) {
|
|
68
|
+
return __request(OpenAPI, {
|
|
69
|
+
method: 'DELETE',
|
|
70
|
+
url: '/pods/{pod_id}/schedules/{schedule_id}',
|
|
71
|
+
path: {
|
|
72
|
+
'pod_id': podId,
|
|
73
|
+
'schedule_id': scheduleId,
|
|
74
|
+
},
|
|
75
|
+
errors: {
|
|
76
|
+
422: `Validation Error`,
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get Schedule
|
|
82
|
+
* Get a schedule by ID.
|
|
83
|
+
* @param podId
|
|
84
|
+
* @param scheduleId
|
|
85
|
+
* @returns ScheduleResponse Successful Response
|
|
86
|
+
* @throws ApiError
|
|
87
|
+
*/
|
|
88
|
+
static scheduleGet(podId, scheduleId) {
|
|
89
|
+
return __request(OpenAPI, {
|
|
90
|
+
method: 'GET',
|
|
91
|
+
url: '/pods/{pod_id}/schedules/{schedule_id}',
|
|
92
|
+
path: {
|
|
93
|
+
'pod_id': podId,
|
|
94
|
+
'schedule_id': scheduleId,
|
|
95
|
+
},
|
|
96
|
+
errors: {
|
|
97
|
+
422: `Validation Error`,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Update Schedule
|
|
103
|
+
* Update a schedule.
|
|
104
|
+
* @param podId
|
|
105
|
+
* @param scheduleId
|
|
106
|
+
* @param requestBody
|
|
107
|
+
* @returns ScheduleResponse Successful Response
|
|
108
|
+
* @throws ApiError
|
|
109
|
+
*/
|
|
110
|
+
static scheduleUpdate(podId, scheduleId, requestBody) {
|
|
111
|
+
return __request(OpenAPI, {
|
|
112
|
+
method: 'PATCH',
|
|
113
|
+
url: '/pods/{pod_id}/schedules/{schedule_id}',
|
|
114
|
+
path: {
|
|
115
|
+
'pod_id': podId,
|
|
116
|
+
'schedule_id': scheduleId,
|
|
117
|
+
},
|
|
118
|
+
body: requestBody,
|
|
119
|
+
mediaType: 'application/json',
|
|
120
|
+
errors: {
|
|
121
|
+
422: `Validation Error`,
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
2
|
export declare class WebhooksService {
|
|
3
3
|
/**
|
|
4
|
-
* Handle Specific
|
|
5
|
-
* Receive webhook for a specific
|
|
6
|
-
* @param
|
|
4
|
+
* Handle Specific Schedule Webhook
|
|
5
|
+
* Receive webhook for a specific schedule ID
|
|
6
|
+
* @param scheduleId
|
|
7
7
|
* @returns any Successful Response
|
|
8
8
|
* @throws ApiError
|
|
9
9
|
*/
|
|
10
|
-
static
|
|
10
|
+
static webhookScheduleHandle(scheduleId: string): CancelablePromise<Record<string, any>>;
|
|
11
11
|
/**
|
|
12
12
|
* Handle Webhook
|
|
13
13
|
* Receive webhooks from various sources (slack, composio, jira, email, etc.)
|
|
@@ -2,18 +2,18 @@ import { OpenAPI } from '../core/OpenAPI.js';
|
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class WebhooksService {
|
|
4
4
|
/**
|
|
5
|
-
* Handle Specific
|
|
6
|
-
* Receive webhook for a specific
|
|
7
|
-
* @param
|
|
5
|
+
* Handle Specific Schedule Webhook
|
|
6
|
+
* Receive webhook for a specific schedule ID
|
|
7
|
+
* @param scheduleId
|
|
8
8
|
* @returns any Successful Response
|
|
9
9
|
* @throws ApiError
|
|
10
10
|
*/
|
|
11
|
-
static
|
|
11
|
+
static webhookScheduleHandle(scheduleId) {
|
|
12
12
|
return __request(OpenAPI, {
|
|
13
13
|
method: 'POST',
|
|
14
|
-
url: '/webhooks/
|
|
14
|
+
url: '/webhooks/schedules/{schedule_id}',
|
|
15
15
|
path: {
|
|
16
|
-
'
|
|
16
|
+
'schedule_id': scheduleId,
|
|
17
17
|
},
|
|
18
18
|
errors: {
|
|
19
19
|
422: `Validation Error`,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import type { FlowInstallResponse } from '../models/FlowInstallResponse.js';
|
|
2
1
|
import type { FlowResponse } from '../models/FlowResponse.js';
|
|
3
2
|
import type { FlowRunEntity } from '../models/FlowRunEntity.js';
|
|
4
3
|
import type { WorkflowCreateRequest } from '../models/WorkflowCreateRequest.js';
|
|
5
4
|
import type { WorkflowGraphUpdateRequest } from '../models/WorkflowGraphUpdateRequest.js';
|
|
6
|
-
import type { WorkflowInstallListResponse } from '../models/WorkflowInstallListResponse.js';
|
|
7
|
-
import type { WorkflowInstallRequest } from '../models/WorkflowInstallRequest.js';
|
|
8
5
|
import type { WorkflowListResponse } from '../models/WorkflowListResponse.js';
|
|
9
6
|
import type { WorkflowRunListResponse } from '../models/WorkflowRunListResponse.js';
|
|
7
|
+
import type { WorkflowRunWaitAssignmentListResponse } from '../models/WorkflowRunWaitAssignmentListResponse.js';
|
|
10
8
|
import type { WorkflowUpdateRequest } from '../models/WorkflowUpdateRequest.js';
|
|
11
9
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
12
10
|
export declare class WorkflowsService {
|
|
11
|
+
/**
|
|
12
|
+
* List Workflow Runs Waiting For Current User
|
|
13
|
+
* List active human form waits assigned to the current pod member.
|
|
14
|
+
* @param podId
|
|
15
|
+
* @param limit
|
|
16
|
+
* @param pageToken
|
|
17
|
+
* @returns WorkflowRunWaitAssignmentListResponse Successful Response
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static workflowRunWaitingAssignedToMe(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunWaitAssignmentListResponse>;
|
|
13
21
|
/**
|
|
14
22
|
* Get Workflow Run
|
|
15
23
|
* Get current state, context, and step history of a workflow run.
|
|
@@ -88,7 +96,7 @@ export declare class WorkflowsService {
|
|
|
88
96
|
static workflowGet(podId: string, workflowName: string): CancelablePromise<FlowResponse>;
|
|
89
97
|
/**
|
|
90
98
|
* Update Workflow Metadata
|
|
91
|
-
* Update workflow-level metadata such as description
|
|
99
|
+
* Update workflow-level metadata such as description and schedule mode. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
|
|
92
100
|
* @param podId
|
|
93
101
|
* @param workflowName
|
|
94
102
|
* @param requestBody
|
|
@@ -106,35 +114,6 @@ export declare class WorkflowsService {
|
|
|
106
114
|
* @throws ApiError
|
|
107
115
|
*/
|
|
108
116
|
static workflowGraphUpdate(podId: string, workflowName: string, requestBody: WorkflowGraphUpdateRequest): CancelablePromise<FlowResponse>;
|
|
109
|
-
/**
|
|
110
|
-
* Install Workflow
|
|
111
|
-
* Install a workflow for runtime execution. Provide `account_id` when the workflow needs an integration account binding, and provide `schedule` when installing a scheduled workflow.
|
|
112
|
-
* @param podId
|
|
113
|
-
* @param workflowName
|
|
114
|
-
* @param requestBody
|
|
115
|
-
* @returns FlowInstallResponse Successful Response
|
|
116
|
-
* @throws ApiError
|
|
117
|
-
*/
|
|
118
|
-
static workflowInstallCreate(podId: string, workflowName: string, requestBody: WorkflowInstallRequest): CancelablePromise<FlowInstallResponse>;
|
|
119
|
-
/**
|
|
120
|
-
* List Workflow Installs
|
|
121
|
-
* List workflow installations visible to the current user. `GLOBAL` workflows return the pod-level install; `USER` workflows return the current user's install.
|
|
122
|
-
* @param podId
|
|
123
|
-
* @param workflowName
|
|
124
|
-
* @returns WorkflowInstallListResponse Successful Response
|
|
125
|
-
* @throws ApiError
|
|
126
|
-
*/
|
|
127
|
-
static workflowInstallList(podId: string, workflowName: string): CancelablePromise<WorkflowInstallListResponse>;
|
|
128
|
-
/**
|
|
129
|
-
* Uninstall Workflow
|
|
130
|
-
* Remove a previously created workflow installation binding.
|
|
131
|
-
* @param podId
|
|
132
|
-
* @param workflowName
|
|
133
|
-
* @param installId
|
|
134
|
-
* @returns void
|
|
135
|
-
* @throws ApiError
|
|
136
|
-
*/
|
|
137
|
-
static workflowInstallDelete(podId: string, workflowName: string, installId: string): CancelablePromise<void>;
|
|
138
117
|
/**
|
|
139
118
|
* Start Workflow
|
|
140
119
|
* Start a new workflow run. For event/scheduled/datastore starts, the request body is treated as initial trigger payload and merged into execution context.
|