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.
Files changed (111) hide show
  1. package/README.md +30 -14
  2. package/dist/browser/lemma-client.js +260 -206
  3. package/dist/client.d.ts +2 -2
  4. package/dist/client.js +3 -3
  5. package/dist/index.d.ts +2 -4
  6. package/dist/index.js +1 -2
  7. package/dist/namespaces/conversations.d.ts +0 -5
  8. package/dist/namespaces/conversations.js +0 -15
  9. package/dist/namespaces/pod-members.d.ts +5 -3
  10. package/dist/namespaces/pod-members.js +12 -6
  11. package/dist/namespaces/schedules.d.ts +22 -0
  12. package/dist/namespaces/schedules.js +24 -0
  13. package/dist/namespaces/workflows.d.ts +4 -5
  14. package/dist/namespaces/workflows.js +1 -4
  15. package/dist/openapi_client/index.d.ts +12 -12
  16. package/dist/openapi_client/index.js +5 -3
  17. package/dist/openapi_client/models/AgentModelName.d.ts +1 -1
  18. package/dist/openapi_client/models/AgentModelName.js +1 -1
  19. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +14 -0
  20. package/dist/openapi_client/models/FlowResponse.d.ts +2 -2
  21. package/dist/openapi_client/models/FlowRunEntity.d.ts +5 -4
  22. package/dist/openapi_client/models/FormNodeConfig.d.ts +8 -0
  23. package/dist/openapi_client/models/MessageResponse.d.ts +0 -1
  24. package/dist/openapi_client/models/PodConfigResponse.d.ts +0 -2
  25. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +2 -0
  26. package/dist/openapi_client/models/PodMemberResponse.d.ts +2 -0
  27. package/dist/openapi_client/models/ScheduleListResponse.d.ts +9 -0
  28. package/dist/openapi_client/models/{TriggerResponse.d.ts → ScheduleResponse.d.ts} +8 -4
  29. package/dist/openapi_client/models/{TriggerType.d.ts → ScheduleType.d.ts} +2 -2
  30. package/dist/openapi_client/models/ScheduleType.js +13 -0
  31. package/dist/openapi_client/models/ScheduledFlowStartInput.d.ts +1 -1
  32. package/dist/openapi_client/models/ScheduledFlowStartOutput.d.ts +1 -1
  33. package/dist/openapi_client/models/SendMessageRequest.d.ts +0 -2
  34. package/dist/openapi_client/models/{UpdateTriggerRequest.d.ts → UpdateScheduleRequest.d.ts} +4 -2
  35. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +3 -3
  36. package/dist/openapi_client/models/WorkflowMode.d.ts +7 -0
  37. package/dist/openapi_client/models/WorkflowMode.js +12 -0
  38. package/dist/openapi_client/models/WorkflowRunWaitAssignment.d.ts +6 -0
  39. package/dist/openapi_client/models/WorkflowRunWaitAssignmentListResponse.d.ts +6 -0
  40. package/dist/openapi_client/models/WorkflowRunWaitEntity.d.ts +20 -0
  41. package/dist/openapi_client/models/WorkflowRunWaitStatus.d.ts +6 -0
  42. package/dist/openapi_client/models/WorkflowRunWaitStatus.js +11 -0
  43. package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +7 -0
  44. package/dist/openapi_client/models/WorkflowRunWaitType.js +12 -0
  45. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +3 -3
  46. package/dist/openapi_client/services/AgentConversationsService.d.ts +4 -14
  47. package/dist/openapi_client/services/AgentConversationsService.js +4 -30
  48. package/dist/openapi_client/services/PodMembersService.d.ts +25 -7
  49. package/dist/openapi_client/services/PodMembersService.js +57 -13
  50. package/dist/openapi_client/services/SchedulesService.d.ts +59 -0
  51. package/dist/openapi_client/services/SchedulesService.js +125 -0
  52. package/dist/openapi_client/services/WebhooksService.d.ts +4 -4
  53. package/dist/openapi_client/services/WebhooksService.js +6 -6
  54. package/dist/openapi_client/services/WorkflowsService.d.ts +12 -33
  55. package/dist/openapi_client/services/WorkflowsService.js +26 -69
  56. package/dist/react/AuthGuard.js +1 -1
  57. package/dist/react/index.d.ts +10 -8
  58. package/dist/react/index.js +5 -4
  59. package/dist/react/useAssistantController.js +0 -2
  60. package/dist/react/useAssistantSession.d.ts +0 -2
  61. package/dist/react/useAssistantSession.js +8 -14
  62. package/dist/react/useCreateSchedule.d.ts +17 -0
  63. package/dist/react/useCreateSchedule.js +45 -0
  64. package/dist/react/useDeleteSchedule.d.ts +19 -0
  65. package/dist/react/useDeleteSchedule.js +49 -0
  66. package/dist/react/usePodAccess.js +1 -1
  67. package/dist/react/useSchedules.d.ts +30 -0
  68. package/dist/react/useSchedules.js +123 -0
  69. package/dist/react/useUpdateSchedule.d.ts +20 -0
  70. package/dist/react/useUpdateSchedule.js +49 -0
  71. package/dist/react/useWorkflowRun.js +1 -1
  72. package/dist/react/useWorkflowRunWaitAssignments.d.ts +26 -0
  73. package/dist/react/useWorkflowRunWaitAssignments.js +102 -0
  74. package/dist/react/useWorkflowStart.js +1 -1
  75. package/dist/run-utils.d.ts +1 -5
  76. package/dist/run-utils.js +0 -10
  77. package/dist/types.d.ts +3 -43
  78. package/package.json +1 -1
  79. package/dist/namespaces/tasks.d.ts +0 -25
  80. package/dist/namespaces/tasks.js +0 -91
  81. package/dist/openapi_client/models/CreateTriggerRequest.d.ts +0 -13
  82. package/dist/openapi_client/models/FlowInstallResponse.d.ts +0 -15
  83. package/dist/openapi_client/models/PodFlowConfigItem.d.ts +0 -7
  84. package/dist/openapi_client/models/TriggerListResponse.d.ts +0 -9
  85. package/dist/openapi_client/models/TriggerType.js +0 -13
  86. package/dist/openapi_client/models/WorkflowInstallListResponse.d.ts +0 -4
  87. package/dist/openapi_client/models/WorkflowInstallMode.d.ts +0 -7
  88. package/dist/openapi_client/models/WorkflowInstallMode.js +0 -12
  89. package/dist/openapi_client/models/WorkflowInstallRequest.d.ts +0 -11
  90. package/dist/openapi_client/models/WorkflowInstallRequest.js +0 -1
  91. package/dist/openapi_client/models/WorkflowTimeInstallConfig.d.ts +0 -19
  92. package/dist/openapi_client/models/WorkflowTimeInstallConfig.js +0 -1
  93. package/dist/openapi_client/services/TriggersService.d.ts +0 -53
  94. package/dist/openapi_client/services/TriggersService.js +0 -109
  95. package/dist/react/useAgentRun.d.ts +0 -38
  96. package/dist/react/useAgentRun.js +0 -149
  97. package/dist/react/useAgentRuns.d.ts +0 -33
  98. package/dist/react/useAgentRuns.js +0 -149
  99. package/dist/react/useAssistantRun.d.ts +0 -27
  100. package/dist/react/useAssistantRun.js +0 -47
  101. package/dist/react/useTaskSession.d.ts +0 -35
  102. package/dist/react/useTaskSession.js +0 -269
  103. package/dist/task-events.d.ts +0 -8
  104. package/dist/task-events.js +0 -115
  105. /package/dist/openapi_client/models/{CreateTriggerRequest.js → CreateScheduleRequest.js} +0 -0
  106. /package/dist/openapi_client/models/{FlowInstallResponse.js → ScheduleListResponse.js} +0 -0
  107. /package/dist/openapi_client/models/{PodFlowConfigItem.js → ScheduleResponse.js} +0 -0
  108. /package/dist/openapi_client/models/{TriggerListResponse.js → UpdateScheduleRequest.js} +0 -0
  109. /package/dist/openapi_client/models/{TriggerResponse.js → WorkflowRunWaitAssignment.js} +0 -0
  110. /package/dist/openapi_client/models/{UpdateTriggerRequest.js → WorkflowRunWaitAssignmentListResponse.js} +0 -0
  111. /package/dist/openapi_client/models/{WorkflowInstallListResponse.js → WorkflowRunWaitEntity.js} +0 -0
@@ -0,0 +1,6 @@
1
+ export declare enum WorkflowRunWaitStatus {
2
+ ACTIVE = "ACTIVE",
3
+ COMPLETED = "COMPLETED",
4
+ FAILED = "FAILED",
5
+ CANCELLED = "CANCELLED"
6
+ }
@@ -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,7 @@
1
+ export declare enum WorkflowRunWaitType {
2
+ HUMAN = "HUMAN",
3
+ AGENT = "AGENT",
4
+ FUNCTION = "FUNCTION",
5
+ TIME = "TIME",
6
+ SCHEDULE = "SCHEDULE"
7
+ }
@@ -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 { WorkflowInstallMode } from './WorkflowInstallMode.js';
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 installation scope.
16
+ * Updated workflow schedule ownership mode.
17
17
  */
18
- mode?: (WorkflowInstallMode | null);
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 run completes. User messages can also be appended while a run is already active; the next harness step sees the new message in persisted history.
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 internal run for a conversation.
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 run. Optionally filter to a specific internal run id for reconnects.
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, agentRunId?: (string | null)): CancelablePromise<any>;
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 run completes. User messages can also be appended while a run is already active; the next harness step sees the new message in persisted history.
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 internal run for a conversation.
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 run. Optionally filter to a specific internal run id for reconnects.
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, agentRunId) {
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 userId
49
+ * @param podMemberId
32
50
  * @returns void
33
51
  * @throws ApiError
34
52
  */
35
- static podMemberRemove(podId: string, userId: string): CancelablePromise<void>;
53
+ static podMemberRemove(podId: string, podMemberId: string): CancelablePromise<void>;
36
54
  /**
37
55
  * Get Pod Member
38
- * Get a pod member by user id
56
+ * Get a pod member by pod member id
39
57
  * @param podId
40
- * @param userId
58
+ * @param podMemberId
41
59
  * @returns PodMemberDetailResponse Successful Response
42
60
  * @throws ApiError
43
61
  */
44
- static podMemberGet(podId: string, userId: string): CancelablePromise<PodMemberDetailResponse>;
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 userId
67
+ * @param podMemberId
50
68
  * @param requestBody
51
69
  * @returns PodMemberResponse Successful Response
52
70
  * @throws ApiError
53
71
  */
54
- static podMemberUpdateRole(podId: string, userId: string, requestBody: PodMemberUpdateRoleRequest): CancelablePromise<PodMemberResponse>;
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 userId
99
+ * @param podMemberId
56
100
  * @returns void
57
101
  * @throws ApiError
58
102
  */
59
- static podMemberRemove(podId, userId) {
103
+ static podMemberRemove(podId, podMemberId) {
60
104
  return __request(OpenAPI, {
61
105
  method: 'DELETE',
62
- url: '/pods/{pod_id}/members/{user_id}',
106
+ url: '/pods/{pod_id}/members/{pod_member_id}',
63
107
  path: {
64
108
  'pod_id': podId,
65
- 'user_id': userId,
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 user id
118
+ * Get a pod member by pod member id
75
119
  * @param podId
76
- * @param userId
120
+ * @param podMemberId
77
121
  * @returns PodMemberDetailResponse Successful Response
78
122
  * @throws ApiError
79
123
  */
80
- static podMemberGet(podId, userId) {
124
+ static podMemberGet(podId, podMemberId) {
81
125
  return __request(OpenAPI, {
82
126
  method: 'GET',
83
- url: '/pods/{pod_id}/members/{user_id}',
127
+ url: '/pods/{pod_id}/members/{pod_member_id}',
84
128
  path: {
85
129
  'pod_id': podId,
86
- 'user_id': userId,
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 userId
141
+ * @param podMemberId
98
142
  * @param requestBody
99
143
  * @returns PodMemberResponse Successful Response
100
144
  * @throws ApiError
101
145
  */
102
- static podMemberUpdateRole(podId, userId, requestBody) {
146
+ static podMemberUpdateRole(podId, podMemberId, requestBody) {
103
147
  return __request(OpenAPI, {
104
148
  method: 'PATCH',
105
- url: '/pods/{pod_id}/members/{user_id}/role',
149
+ url: '/pods/{pod_id}/members/{pod_member_id}/role',
106
150
  path: {
107
151
  'pod_id': podId,
108
- 'user_id': userId,
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 Trigger Webhook
5
- * Receive webhook for a specific trigger ID
6
- * @param triggerId
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 webhookTriggerHandle(triggerId: string): CancelablePromise<Record<string, any>>;
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 Trigger Webhook
6
- * Receive webhook for a specific trigger ID
7
- * @param triggerId
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 webhookTriggerHandle(triggerId) {
11
+ static webhookScheduleHandle(scheduleId) {
12
12
  return __request(OpenAPI, {
13
13
  method: 'POST',
14
- url: '/webhooks/trigger/{trigger_id}',
14
+ url: '/webhooks/schedules/{schedule_id}',
15
15
  path: {
16
- 'trigger_id': triggerId,
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/install mode. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
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.