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
package/dist/index.js
CHANGED
|
@@ -3,8 +3,7 @@ export { AuthManager, buildAuthUrl, buildFederatedLogoutUrl, clearTestingToken,
|
|
|
3
3
|
export { ApiError } from "./http.js";
|
|
4
4
|
export * from "./types.js";
|
|
5
5
|
export { readSSE, parseSSEJson } from "./streams.js";
|
|
6
|
-
export { normalizeRunStatus,
|
|
7
|
-
export { parseTaskStreamEvent, upsertTaskMessage } from "./task-events.js";
|
|
6
|
+
export { normalizeRunStatus, isTerminalFunctionStatus, isTerminalFlowStatus, sleep, nextBackoffDelay, } from "./run-utils.js";
|
|
8
7
|
export { parseAssistantStreamEvent, upsertConversationMessage } from "./assistant-events.js";
|
|
9
8
|
export { DEFAULT_RECORD_FORM_HIDDEN_FIELDS, buildRecordFormValues, buildRecordPayload, buildRecordSchemaFields, formatRecordValueForForm, getEditableRecordFields, getRecordFieldKind, orderRecordSchemaFields, } from "./record-form.js";
|
|
10
9
|
export { buildDefaultRecordDetailFieldGroups, detectRecordDescriptionColumn, detectRecordStatusColumn, detectRecordTitleColumn, formatRecordDateDisplayValue, formatRecordDisplayValue, formatRecordPlainValue, humanizeRecordFieldName, isDefaultRecordDetailHiddenField, } from "./record-display.js";
|
|
@@ -46,13 +46,8 @@ export declare class ConversationsNamespace {
|
|
|
46
46
|
pod_id?: string | null;
|
|
47
47
|
signal?: AbortSignal;
|
|
48
48
|
}): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
|
49
|
-
sendOrCreateMessageStream(payload: SendMessageRequest, options?: {
|
|
50
|
-
pod_id?: string | null;
|
|
51
|
-
signal?: AbortSignal;
|
|
52
|
-
}): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
|
53
49
|
resumeStream(conversationId: string, options?: {
|
|
54
50
|
pod_id?: string | null;
|
|
55
|
-
agent_run_id?: string | null;
|
|
56
51
|
signal?: AbortSignal;
|
|
57
52
|
}): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
|
58
53
|
stopRun(conversationId: string, options?: {
|
|
@@ -118,24 +118,9 @@ export class ConversationsNamespace {
|
|
|
118
118
|
},
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
sendOrCreateMessageStream(payload, options = {}) {
|
|
122
|
-
const podId = this.requirePodId(options.pod_id);
|
|
123
|
-
return this.http.stream(`/pods/${podId}/conversations/messages`, {
|
|
124
|
-
method: "POST",
|
|
125
|
-
body: payload,
|
|
126
|
-
signal: options.signal,
|
|
127
|
-
headers: {
|
|
128
|
-
"Content-Type": "application/json",
|
|
129
|
-
Accept: "text/event-stream",
|
|
130
|
-
},
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
121
|
resumeStream(conversationId, options = {}) {
|
|
134
122
|
const podId = this.requirePodId(options.pod_id);
|
|
135
123
|
return this.http.stream(`/pods/${podId}/conversations/${conversationId}/stream`, {
|
|
136
|
-
params: {
|
|
137
|
-
agent_run_id: options.agent_run_id,
|
|
138
|
-
},
|
|
139
124
|
signal: options.signal,
|
|
140
125
|
headers: {
|
|
141
126
|
Accept: "text/event-stream",
|
|
@@ -10,7 +10,9 @@ export declare class PodMembersNamespace {
|
|
|
10
10
|
cursor?: string;
|
|
11
11
|
}): Promise<import("../types.js").PodMemberListResponse>;
|
|
12
12
|
add(podId: string, payload: PodMemberAddRequest): Promise<import("../types.js").PodMemberResponse>;
|
|
13
|
-
get(podId: string,
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
get(podId: string, podMemberId: string): Promise<import("../types.js").PodMemberDetailResponse>;
|
|
14
|
+
lookupByEmail(podId: string, email: string): Promise<import("../types.js").PodMemberDetailResponse>;
|
|
15
|
+
lookupByUserId(podId: string, userId: string): Promise<import("../types.js").PodMemberDetailResponse>;
|
|
16
|
+
updateRole(podId: string, podMemberId: string, role: PodRole): Promise<import("../types.js").PodMemberResponse>;
|
|
17
|
+
remove(podId: string, podMemberId: string): Promise<void>;
|
|
16
18
|
}
|
|
@@ -10,13 +10,19 @@ export class PodMembersNamespace {
|
|
|
10
10
|
add(podId, payload) {
|
|
11
11
|
return this.client.request(() => PodMembersService.podMemberAdd(podId, payload));
|
|
12
12
|
}
|
|
13
|
-
get(podId,
|
|
14
|
-
return this.client.request(() => PodMembersService.podMemberGet(podId,
|
|
13
|
+
get(podId, podMemberId) {
|
|
14
|
+
return this.client.request(() => PodMembersService.podMemberGet(podId, podMemberId));
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
return this.client.request(() => PodMembersService.
|
|
16
|
+
lookupByEmail(podId, email) {
|
|
17
|
+
return this.client.request(() => PodMembersService.podMemberLookupByEmail(podId, email));
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
return this.client.request(() => PodMembersService.
|
|
19
|
+
lookupByUserId(podId, userId) {
|
|
20
|
+
return this.client.request(() => PodMembersService.podMemberLookupByUserId(podId, userId));
|
|
21
|
+
}
|
|
22
|
+
updateRole(podId, podMemberId, role) {
|
|
23
|
+
return this.client.request(() => PodMembersService.podMemberUpdateRole(podId, podMemberId, { role }));
|
|
24
|
+
}
|
|
25
|
+
remove(podId, podMemberId) {
|
|
26
|
+
return this.client.request(() => PodMembersService.podMemberRemove(podId, podMemberId));
|
|
21
27
|
}
|
|
22
28
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { GeneratedClientAdapter } from "../generated.js";
|
|
2
|
+
import type { CreateScheduleRequest } from "../openapi_client/models/CreateScheduleRequest.js";
|
|
3
|
+
import type { ScheduleType } from "../openapi_client/models/ScheduleType.js";
|
|
4
|
+
import type { UpdateScheduleRequest } from "../openapi_client/models/UpdateScheduleRequest.js";
|
|
5
|
+
export interface ScheduleListOptions {
|
|
6
|
+
scheduleType?: ScheduleType | null;
|
|
7
|
+
isActive?: boolean | null;
|
|
8
|
+
agentName?: string | null;
|
|
9
|
+
workflowName?: string | null;
|
|
10
|
+
limit?: number;
|
|
11
|
+
pageToken?: string | null;
|
|
12
|
+
}
|
|
13
|
+
export declare class SchedulesNamespace {
|
|
14
|
+
private readonly client;
|
|
15
|
+
private readonly podId;
|
|
16
|
+
constructor(client: GeneratedClientAdapter, podId: () => string);
|
|
17
|
+
list(options?: ScheduleListOptions): Promise<import("../types.js").ScheduleListResponse>;
|
|
18
|
+
create(payload: CreateScheduleRequest): Promise<import("../types.js").ScheduleResponse>;
|
|
19
|
+
get(scheduleId: string): Promise<import("../types.js").ScheduleResponse>;
|
|
20
|
+
update(scheduleId: string, payload: UpdateScheduleRequest): Promise<import("../types.js").ScheduleResponse>;
|
|
21
|
+
delete(scheduleId: string): Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SchedulesService } from "../openapi_client/services/SchedulesService.js";
|
|
2
|
+
export class SchedulesNamespace {
|
|
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(() => SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.limit ?? 100, options.pageToken));
|
|
11
|
+
}
|
|
12
|
+
create(payload) {
|
|
13
|
+
return this.client.request(() => SchedulesService.scheduleCreate(this.podId(), payload));
|
|
14
|
+
}
|
|
15
|
+
get(scheduleId) {
|
|
16
|
+
return this.client.request(() => SchedulesService.scheduleGet(this.podId(), scheduleId));
|
|
17
|
+
}
|
|
18
|
+
update(scheduleId, payload) {
|
|
19
|
+
return this.client.request(() => SchedulesService.scheduleUpdate(this.podId(), scheduleId, payload));
|
|
20
|
+
}
|
|
21
|
+
delete(scheduleId) {
|
|
22
|
+
return this.client.request(() => SchedulesService.scheduleDelete(this.podId(), scheduleId));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -2,7 +2,6 @@ import type { GeneratedClientAdapter } from "../generated.js";
|
|
|
2
2
|
import { type HttpClient } from "../http.js";
|
|
3
3
|
import type { WorkflowCreateRequest } from "../openapi_client/models/WorkflowCreateRequest.js";
|
|
4
4
|
import type { WorkflowGraphUpdateRequest } from "../openapi_client/models/WorkflowGraphUpdateRequest.js";
|
|
5
|
-
import type { WorkflowInstallRequest } from "../openapi_client/models/WorkflowInstallRequest.js";
|
|
6
5
|
import type { WorkflowUpdateRequest } from "../openapi_client/models/WorkflowUpdateRequest.js";
|
|
7
6
|
import type { WorkflowRunInputs } from "../types.js";
|
|
8
7
|
export declare class WorkflowsNamespace {
|
|
@@ -22,10 +21,6 @@ export declare class WorkflowsNamespace {
|
|
|
22
21
|
readonly graph: {
|
|
23
22
|
update: (workflowName: string, graph: WorkflowGraphUpdateRequest) => Promise<import("../types.js").FlowResponse>;
|
|
24
23
|
};
|
|
25
|
-
readonly installs: {
|
|
26
|
-
create: (workflowName: string, payload?: WorkflowInstallRequest) => Promise<import("../types.js").FlowInstallResponse>;
|
|
27
|
-
delete: (workflowName: string, installId: string) => Promise<void>;
|
|
28
|
-
};
|
|
29
24
|
private postRunAction;
|
|
30
25
|
readonly runs: {
|
|
31
26
|
start: (workflowName: string, inputs?: WorkflowRunInputs) => Promise<import("../types.js").FlowRunEntity>;
|
|
@@ -33,6 +28,10 @@ export declare class WorkflowsNamespace {
|
|
|
33
28
|
limit?: number;
|
|
34
29
|
pageToken?: string;
|
|
35
30
|
}) => Promise<import("../types.js").WorkflowRunListResponse>;
|
|
31
|
+
waitingAssignedToMe: (options?: {
|
|
32
|
+
limit?: number;
|
|
33
|
+
pageToken?: string;
|
|
34
|
+
}) => Promise<import("../types.js").WorkflowRunWaitAssignmentListResponse>;
|
|
36
35
|
get: (runId: string, podId?: string) => Promise<import("../types.js").FlowRunEntity>;
|
|
37
36
|
resume: (runId: string, inputs?: WorkflowRunInputs, podId?: string) => Promise<import("../types.js").FlowRunEntity>;
|
|
38
37
|
visualize: (runId: string, podId?: string) => Promise<string>;
|
|
@@ -30,10 +30,6 @@ export class WorkflowsNamespace {
|
|
|
30
30
|
graph = {
|
|
31
31
|
update: (workflowName, graph) => this.client.request(() => WorkflowsService.workflowGraphUpdate(this.podId(), workflowName, graph)),
|
|
32
32
|
};
|
|
33
|
-
installs = {
|
|
34
|
-
create: (workflowName, payload = {}) => this.client.request(() => WorkflowsService.workflowInstallCreate(this.podId(), workflowName, payload)),
|
|
35
|
-
delete: (workflowName, installId) => this.client.request(() => WorkflowsService.workflowInstallDelete(this.podId(), workflowName, installId)),
|
|
36
|
-
};
|
|
37
33
|
async postRunAction(runId, action, podId) {
|
|
38
34
|
const encodedPodId = encodeURIComponent(podId);
|
|
39
35
|
const encodedRunId = encodeURIComponent(runId);
|
|
@@ -50,6 +46,7 @@ export class WorkflowsNamespace {
|
|
|
50
46
|
runs = {
|
|
51
47
|
start: (workflowName, inputs = {}) => this.client.request(() => WorkflowsService.workflowStart(this.podId(), workflowName, inputs)),
|
|
52
48
|
list: (workflowName, options = {}) => this.client.request(() => WorkflowsService.workflowRunList(this.podId(), workflowName, options.limit ?? 100, options.pageToken)),
|
|
49
|
+
waitingAssignedToMe: (options = {}) => this.client.request(() => WorkflowsService.workflowRunWaitingAssignedToMe(this.podId(), options.limit ?? 100, options.pageToken)),
|
|
53
50
|
get: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunGet(podId, runId)),
|
|
54
51
|
resume: (runId, inputs = {}, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunResume(podId, runId, inputs)),
|
|
55
52
|
visualize: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunVisualize(podId, runId)),
|
|
@@ -47,9 +47,9 @@ export type { CreateDeskRequest } from './models/CreateDeskRequest.js';
|
|
|
47
47
|
export type { CreateFolderRequest } from './models/CreateFolderRequest.js';
|
|
48
48
|
export type { CreateFunctionRequest } from './models/CreateFunctionRequest.js';
|
|
49
49
|
export type { CreateRecordRequest } from './models/CreateRecordRequest.js';
|
|
50
|
+
export type { CreateScheduleRequest } from './models/CreateScheduleRequest.js';
|
|
50
51
|
export type { CreateSurfaceRequest } from './models/CreateSurfaceRequest.js';
|
|
51
52
|
export type { CreateTableRequest } from './models/CreateTableRequest.js';
|
|
52
|
-
export type { CreateTriggerRequest } from './models/CreateTriggerRequest.js';
|
|
53
53
|
export { CredentialTypes } from './models/CredentialTypes.js';
|
|
54
54
|
export { DatastoreDataType } from './models/DatastoreDataType.js';
|
|
55
55
|
export type { DatastoreFileUploadRequest } from './models/DatastoreFileUploadRequest.js';
|
|
@@ -92,7 +92,6 @@ export type { FileSearchResponse } from './models/FileSearchResponse.js';
|
|
|
92
92
|
export type { FileSearchResultSchema } from './models/FileSearchResultSchema.js';
|
|
93
93
|
export { FileSearchScopeMode } from './models/FileSearchScopeMode.js';
|
|
94
94
|
export type { FileUploadResponse } from './models/FileUploadResponse.js';
|
|
95
|
-
export type { FlowInstallResponse } from './models/FlowInstallResponse.js';
|
|
96
95
|
export type { FlowResponse } from './models/FlowResponse.js';
|
|
97
96
|
export type { FlowRunEntity } from './models/FlowRunEntity.js';
|
|
98
97
|
export { FlowRunStatus } from './models/FlowRunStatus.js';
|
|
@@ -158,7 +157,6 @@ export type { PodAppConfigItem } from './models/PodAppConfigItem.js';
|
|
|
158
157
|
export { PodAppMode } from './models/PodAppMode.js';
|
|
159
158
|
export type { PodConfigResponse } from './models/PodConfigResponse.js';
|
|
160
159
|
export type { PodCreateRequest } from './models/PodCreateRequest.js';
|
|
161
|
-
export type { PodFlowConfigItem } from './models/PodFlowConfigItem.js';
|
|
162
160
|
export type { PodJoinRequestApproveRequest } from './models/PodJoinRequestApproveRequest.js';
|
|
163
161
|
export type { PodJoinRequestCreateResponse } from './models/PodJoinRequestCreateResponse.js';
|
|
164
162
|
export type { PodJoinRequestListResponse } from './models/PodJoinRequestListResponse.js';
|
|
@@ -187,6 +185,9 @@ export type { ScheduledFlowStartOutput } from './models/ScheduledFlowStartOutput
|
|
|
187
185
|
export { ScheduledFlowStartType } from './models/ScheduledFlowStartType.js';
|
|
188
186
|
export type { ScheduledWorkflowStartInput } from './models/ScheduledWorkflowStartInput.js';
|
|
189
187
|
export type { ScheduledWorkflowStartOutput } from './models/ScheduledWorkflowStartOutput.js';
|
|
188
|
+
export type { ScheduleListResponse } from './models/ScheduleListResponse.js';
|
|
189
|
+
export type { ScheduleResponse } from './models/ScheduleResponse.js';
|
|
190
|
+
export { ScheduleType } from './models/ScheduleType.js';
|
|
190
191
|
export { SearchMethod } from './models/SearchMethod.js';
|
|
191
192
|
export type { SearchResult } from './models/SearchResult.js';
|
|
192
193
|
export type { SeatInfoResponse } from './models/SeatInfoResponse.js';
|
|
@@ -227,9 +228,6 @@ export type { ThinkingContent } from './models/ThinkingContent.js';
|
|
|
227
228
|
export type { ToggleSurfaceRequest } from './models/ToggleSurfaceRequest.js';
|
|
228
229
|
export type { ToolCallContent } from './models/ToolCallContent.js';
|
|
229
230
|
export type { ToolReturnContent } from './models/ToolReturnContent.js';
|
|
230
|
-
export type { TriggerListResponse } from './models/TriggerListResponse.js';
|
|
231
|
-
export type { TriggerResponse } from './models/TriggerResponse.js';
|
|
232
|
-
export { TriggerType } from './models/TriggerType.js';
|
|
233
231
|
export type { update } from './models/update.js';
|
|
234
232
|
export type { UpdateAgentRequest } from './models/UpdateAgentRequest.js';
|
|
235
233
|
export type { UpdateConversationRequest } from './models/UpdateConversationRequest.js';
|
|
@@ -237,9 +235,9 @@ export type { UpdateDeskRequest } from './models/UpdateDeskRequest.js';
|
|
|
237
235
|
export type { UpdateFunctionRequest } from './models/UpdateFunctionRequest.js';
|
|
238
236
|
export type { UpdateMemberRoleRequest } from './models/UpdateMemberRoleRequest.js';
|
|
239
237
|
export type { UpdateRecordRequest } from './models/UpdateRecordRequest.js';
|
|
238
|
+
export type { UpdateScheduleRequest } from './models/UpdateScheduleRequest.js';
|
|
240
239
|
export type { UpdateSurfaceRequest } from './models/UpdateSurfaceRequest.js';
|
|
241
240
|
export type { UpdateTableRequest } from './models/UpdateTableRequest.js';
|
|
242
|
-
export type { UpdateTriggerRequest } from './models/UpdateTriggerRequest.js';
|
|
243
241
|
export type { UsageRecordResponse } from './models/UsageRecordResponse.js';
|
|
244
242
|
export type { UsageSummaryResponse } from './models/UsageSummaryResponse.js';
|
|
245
243
|
export type { UserProfileRequest } from './models/UserProfileRequest.js';
|
|
@@ -259,12 +257,14 @@ export type { WhatsAppSurfaceConfigInput } from './models/WhatsAppSurfaceConfigI
|
|
|
259
257
|
export type { WorkflowCreateRequest } from './models/WorkflowCreateRequest.js';
|
|
260
258
|
export type { WorkflowEdge } from './models/WorkflowEdge.js';
|
|
261
259
|
export type { WorkflowGraphUpdateRequest } from './models/WorkflowGraphUpdateRequest.js';
|
|
262
|
-
export type { WorkflowInstallListResponse } from './models/WorkflowInstallListResponse.js';
|
|
263
|
-
export { WorkflowInstallMode } from './models/WorkflowInstallMode.js';
|
|
264
|
-
export type { WorkflowInstallRequest } from './models/WorkflowInstallRequest.js';
|
|
265
260
|
export type { WorkflowListResponse } from './models/WorkflowListResponse.js';
|
|
261
|
+
export { WorkflowMode } from './models/WorkflowMode.js';
|
|
266
262
|
export type { WorkflowRunListResponse } from './models/WorkflowRunListResponse.js';
|
|
267
|
-
export type {
|
|
263
|
+
export type { WorkflowRunWaitAssignment } from './models/WorkflowRunWaitAssignment.js';
|
|
264
|
+
export type { WorkflowRunWaitAssignmentListResponse } from './models/WorkflowRunWaitAssignmentListResponse.js';
|
|
265
|
+
export type { WorkflowRunWaitEntity } from './models/WorkflowRunWaitEntity.js';
|
|
266
|
+
export { WorkflowRunWaitStatus } from './models/WorkflowRunWaitStatus.js';
|
|
267
|
+
export { WorkflowRunWaitType } from './models/WorkflowRunWaitType.js';
|
|
268
268
|
export type { WorkflowUpdateRequest } from './models/WorkflowUpdateRequest.js';
|
|
269
269
|
export { AgentConversationsService } from './services/AgentConversationsService.js';
|
|
270
270
|
export { AgentFilesService } from './services/AgentFilesService.js';
|
|
@@ -290,8 +290,8 @@ export { PodMembersService } from './services/PodMembersService.js';
|
|
|
290
290
|
export { PodsService } from './services/PodsService.js';
|
|
291
291
|
export { QueryService } from './services/QueryService.js';
|
|
292
292
|
export { RecordsService } from './services/RecordsService.js';
|
|
293
|
+
export { SchedulesService } from './services/SchedulesService.js';
|
|
293
294
|
export { TablesService } from './services/TablesService.js';
|
|
294
|
-
export { TriggersService } from './services/TriggersService.js';
|
|
295
295
|
export { UsersService } from './services/UsersService.js';
|
|
296
296
|
export { WebhooksService } from './services/WebhooksService.js';
|
|
297
297
|
export { WorkflowsService } from './services/WorkflowsService.js';
|
|
@@ -30,6 +30,7 @@ export { PodJoinRequestStatus } from './models/PodJoinRequestStatus.js';
|
|
|
30
30
|
export { PodRole } from './models/PodRole.js';
|
|
31
31
|
export { ResourceType } from './models/ResourceType.js';
|
|
32
32
|
export { ScheduledFlowStartType } from './models/ScheduledFlowStartType.js';
|
|
33
|
+
export { ScheduleType } from './models/ScheduleType.js';
|
|
33
34
|
export { SearchMethod } from './models/SearchMethod.js';
|
|
34
35
|
export { SubscriptionStatus } from './models/SubscriptionStatus.js';
|
|
35
36
|
export { SurfaceCredentialMode } from './models/SurfaceCredentialMode.js';
|
|
@@ -40,8 +41,9 @@ export { SurfaceSetupMode } from './models/SurfaceSetupMode.js';
|
|
|
40
41
|
export { SurfaceSetupPhase } from './models/SurfaceSetupPhase.js';
|
|
41
42
|
export { SurfaceWebhookMode } from './models/SurfaceWebhookMode.js';
|
|
42
43
|
export { TableAccessMode } from './models/TableAccessMode.js';
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
44
|
+
export { WorkflowMode } from './models/WorkflowMode.js';
|
|
45
|
+
export { WorkflowRunWaitStatus } from './models/WorkflowRunWaitStatus.js';
|
|
46
|
+
export { WorkflowRunWaitType } from './models/WorkflowRunWaitType.js';
|
|
45
47
|
export { AgentConversationsService } from './services/AgentConversationsService.js';
|
|
46
48
|
export { AgentFilesService } from './services/AgentFilesService.js';
|
|
47
49
|
export { AgentsService } from './services/AgentsService.js';
|
|
@@ -66,8 +68,8 @@ export { PodMembersService } from './services/PodMembersService.js';
|
|
|
66
68
|
export { PodsService } from './services/PodsService.js';
|
|
67
69
|
export { QueryService } from './services/QueryService.js';
|
|
68
70
|
export { RecordsService } from './services/RecordsService.js';
|
|
71
|
+
export { SchedulesService } from './services/SchedulesService.js';
|
|
69
72
|
export { TablesService } from './services/TablesService.js';
|
|
70
|
-
export { TriggersService } from './services/TriggersService.js';
|
|
71
73
|
export { UsersService } from './services/UsersService.js';
|
|
72
74
|
export { WebhooksService } from './services/WebhooksService.js';
|
|
73
75
|
export { WorkflowsService } from './services/WorkflowsService.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ScheduleType } from './ScheduleType.js';
|
|
2
|
+
/**
|
|
3
|
+
* Request to create a pod schedule.
|
|
4
|
+
*/
|
|
5
|
+
export type CreateScheduleRequest = {
|
|
6
|
+
account_id?: (string | null);
|
|
7
|
+
agent_name?: (string | null);
|
|
8
|
+
application_trigger_id?: (string | null);
|
|
9
|
+
config?: Record<string, any>;
|
|
10
|
+
filter_instruction?: (string | null);
|
|
11
|
+
filter_output_schema?: (Record<string, any> | null);
|
|
12
|
+
schedule_type: ScheduleType;
|
|
13
|
+
workflow_name?: (string | null);
|
|
14
|
+
};
|
|
@@ -10,7 +10,7 @@ import type { ManualWorkflowStartOutput } from './ManualWorkflowStartOutput.js';
|
|
|
10
10
|
import type { ScheduledWorkflowStartOutput } from './ScheduledWorkflowStartOutput.js';
|
|
11
11
|
import type { WaitUntilNodeResponse } from './WaitUntilNodeResponse.js';
|
|
12
12
|
import type { WorkflowEdge } from './WorkflowEdge.js';
|
|
13
|
-
import type {
|
|
13
|
+
import type { WorkflowMode } from './WorkflowMode.js';
|
|
14
14
|
export type FlowResponse = {
|
|
15
15
|
created_at?: (string | null);
|
|
16
16
|
description?: (string | null);
|
|
@@ -18,7 +18,7 @@ export type FlowResponse = {
|
|
|
18
18
|
icon_url?: (string | null);
|
|
19
19
|
id: string;
|
|
20
20
|
is_active?: boolean;
|
|
21
|
-
mode?:
|
|
21
|
+
mode?: WorkflowMode;
|
|
22
22
|
name: string;
|
|
23
23
|
nodes?: Array<(FormNodeResponse | AgentNodeResponse | FunctionNodeResponse | DecisionNodeResponse | LoopNodeResponse | WaitUntilNodeResponse | EndNodeResponse)>;
|
|
24
24
|
pod_id: string;
|
|
@@ -13,11 +13,12 @@ export type FlowRunEntity = {
|
|
|
13
13
|
flow_id: string;
|
|
14
14
|
id?: string;
|
|
15
15
|
pod_id: string;
|
|
16
|
+
schedule_event_id?: (string | null);
|
|
17
|
+
start_payload?: Record<string, any>;
|
|
18
|
+
start_type?: string;
|
|
16
19
|
started_at?: (string | null);
|
|
17
20
|
status?: FlowRunStatus;
|
|
18
21
|
step_history?: Array<StepExecution>;
|
|
19
|
-
trigger_event_id?: (string | null);
|
|
20
|
-
trigger_type?: string;
|
|
21
22
|
updated_at?: string;
|
|
22
23
|
user_id: string;
|
|
23
24
|
/**
|
|
@@ -29,7 +30,7 @@ export type FlowRunEntity = {
|
|
|
29
30
|
*/
|
|
30
31
|
waiting_function_run_id?: (string | null);
|
|
31
32
|
/**
|
|
32
|
-
*
|
|
33
|
+
* Scheduler wake job id when the workflow is waiting for time.
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
|
+
waiting_timer_id?: (string | null);
|
|
35
36
|
};
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* Configuration for Form node (User Input).
|
|
3
3
|
*/
|
|
4
4
|
export type FormNodeConfig = {
|
|
5
|
+
/**
|
|
6
|
+
* Pod member assigned to submit this form.
|
|
7
|
+
*/
|
|
8
|
+
assignee_pod_member_id?: (string | null);
|
|
9
|
+
/**
|
|
10
|
+
* Optional JMESPath expression resolving to a pod member id. Takes precedence over assignee_pod_member_id.
|
|
11
|
+
*/
|
|
12
|
+
assignee_pod_member_id_expression?: (string | null);
|
|
5
13
|
/**
|
|
6
14
|
* JSON Schema for user input
|
|
7
15
|
*/
|
|
@@ -4,7 +4,6 @@ import type { ThinkingContent } from './ThinkingContent.js';
|
|
|
4
4
|
import type { ToolCallContent } from './ToolCallContent.js';
|
|
5
5
|
import type { ToolReturnContent } from './ToolReturnContent.js';
|
|
6
6
|
export type MessageResponse = {
|
|
7
|
-
agent_run_id?: (string | null);
|
|
8
7
|
content: (NotificationContent | TextContent | ThinkingContent | ToolCallContent | ToolReturnContent);
|
|
9
8
|
conversation_id: string;
|
|
10
9
|
created_at: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScheduleType } from './ScheduleType.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Schedule response.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type ScheduleResponse = {
|
|
6
6
|
account_id: (string | null);
|
|
7
|
+
agent_id: (string | null);
|
|
8
|
+
agent_name?: (string | null);
|
|
7
9
|
application_trigger_id: (string | null);
|
|
8
10
|
config: Record<string, any>;
|
|
9
11
|
created_at: string;
|
|
@@ -13,7 +15,9 @@ export type TriggerResponse = {
|
|
|
13
15
|
is_active: boolean;
|
|
14
16
|
is_internal: boolean;
|
|
15
17
|
pod_id: (string | null);
|
|
16
|
-
|
|
18
|
+
schedule_type: ScheduleType;
|
|
17
19
|
updated_at: string;
|
|
18
20
|
user_id: string;
|
|
21
|
+
workflow_id: (string | null);
|
|
22
|
+
workflow_name?: (string | null);
|
|
19
23
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Type of schedule source.
|
|
7
|
+
*/
|
|
8
|
+
export var ScheduleType;
|
|
9
|
+
(function (ScheduleType) {
|
|
10
|
+
ScheduleType["TIME"] = "TIME";
|
|
11
|
+
ScheduleType["WEBHOOK"] = "WEBHOOK";
|
|
12
|
+
ScheduleType["DATASTORE"] = "DATASTORE";
|
|
13
|
+
})(ScheduleType || (ScheduleType = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ScheduledFlowStartType } from './ScheduledFlowStartType.js';
|
|
2
2
|
export type ScheduledFlowStartInput = {
|
|
3
3
|
/**
|
|
4
|
-
* Time trigger mode for this workflow definition. Concrete schedule values are provided
|
|
4
|
+
* Time trigger mode for this workflow definition. Concrete schedule values are provided by pod schedules.
|
|
5
5
|
*/
|
|
6
6
|
schedule_type: ScheduledFlowStartType;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ScheduledFlowStartType } from './ScheduledFlowStartType.js';
|
|
2
2
|
export type ScheduledFlowStartOutput = {
|
|
3
3
|
/**
|
|
4
|
-
* Time trigger mode for this workflow definition. Concrete schedule values are provided
|
|
4
|
+
* Time trigger mode for this workflow definition. Concrete schedule values are provided by pod schedules.
|
|
5
5
|
*/
|
|
6
6
|
schedule_type: ScheduledFlowStartType;
|
|
7
7
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Request to update a
|
|
2
|
+
* Request to update a schedule.
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
4
|
+
export type UpdateScheduleRequest = {
|
|
5
|
+
agent_name?: (string | null);
|
|
5
6
|
config?: (Record<string, any> | null);
|
|
6
7
|
filter_instruction?: (string | null);
|
|
7
8
|
filter_output_schema?: (Record<string, any> | null);
|
|
8
9
|
is_active?: (boolean | null);
|
|
10
|
+
workflow_name?: (string | null);
|
|
9
11
|
};
|
|
@@ -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 WorkflowCreateRequest = {
|
|
7
7
|
/**
|
|
8
8
|
* Optional workflow description.
|
|
@@ -13,9 +13,9 @@ export type WorkflowCreateRequest = {
|
|
|
13
13
|
*/
|
|
14
14
|
icon_url?: (string | null);
|
|
15
15
|
/**
|
|
16
|
-
* Workflow
|
|
16
|
+
* Workflow schedule ownership mode. `GLOBAL` means one pod-level workflow schedule is allowed; `USER` is reserved for per-user schedule ownership.
|
|
17
17
|
*/
|
|
18
|
-
mode?:
|
|
18
|
+
mode?: WorkflowMode;
|
|
19
19
|
/**
|
|
20
20
|
* Workflow name.
|
|
21
21
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Workflow schedule ownership mode.
|
|
7
|
+
*/
|
|
8
|
+
export var WorkflowMode;
|
|
9
|
+
(function (WorkflowMode) {
|
|
10
|
+
WorkflowMode["GLOBAL"] = "GLOBAL";
|
|
11
|
+
WorkflowMode["USER"] = "USER";
|
|
12
|
+
})(WorkflowMode || (WorkflowMode = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { WorkflowRunWaitStatus } from './WorkflowRunWaitStatus.js';
|
|
2
|
+
import type { WorkflowRunWaitType } from './WorkflowRunWaitType.js';
|
|
3
|
+
/**
|
|
4
|
+
* A queryable wait owned by a workflow run.
|
|
5
|
+
*/
|
|
6
|
+
export type WorkflowRunWaitEntity = {
|
|
7
|
+
assigned_pod_member_id?: (string | null);
|
|
8
|
+
completed_at?: (string | null);
|
|
9
|
+
created_at?: string;
|
|
10
|
+
external_ref?: (string | null);
|
|
11
|
+
flow_id: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
node_id: string;
|
|
14
|
+
payload?: Record<string, any>;
|
|
15
|
+
pod_id: string;
|
|
16
|
+
run_id: string;
|
|
17
|
+
status?: WorkflowRunWaitStatus;
|
|
18
|
+
updated_at?: string;
|
|
19
|
+
wait_type: WorkflowRunWaitType;
|
|
20
|
+
};
|