lemma-sdk 0.2.44 → 0.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/assistant-events.d.ts +1 -0
- package/dist/assistant-events.js +37 -2
- package/dist/browser/lemma-client.js +312 -228
- package/dist/client.js +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/config.js +2 -2
- package/dist/hey_client/client/client.gen.d.ts +2 -0
- package/dist/hey_client/client/client.gen.js +216 -0
- package/dist/hey_client/client/index.d.ts +10 -0
- package/dist/hey_client/client/index.js +6 -0
- package/dist/hey_client/client/types.gen.d.ts +120 -0
- package/dist/hey_client/client/types.gen.js +2 -0
- package/dist/hey_client/client/utils.gen.d.ts +37 -0
- package/dist/hey_client/client/utils.gen.js +228 -0
- package/dist/hey_client/client.gen.d.ts +12 -0
- package/dist/hey_client/client.gen.js +3 -0
- package/dist/hey_client/core/auth.gen.d.ts +25 -0
- package/dist/hey_client/core/auth.gen.js +14 -0
- package/dist/hey_client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/hey_client/core/bodySerializer.gen.js +57 -0
- package/dist/hey_client/core/params.gen.d.ts +43 -0
- package/dist/hey_client/core/params.gen.js +100 -0
- package/dist/hey_client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/hey_client/core/pathSerializer.gen.js +106 -0
- package/dist/hey_client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/hey_client/core/queryKeySerializer.gen.js +92 -0
- package/dist/hey_client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/hey_client/core/serverSentEvents.gen.js +132 -0
- package/dist/hey_client/core/types.gen.d.ts +83 -0
- package/dist/hey_client/core/types.gen.js +2 -0
- package/dist/hey_client/core/utils.gen.d.ts +19 -0
- package/dist/hey_client/core/utils.gen.js +87 -0
- package/dist/hey_client/index.d.ts +2 -0
- package/dist/hey_client/index.js +2 -0
- package/dist/hey_client/sdk.gen.d.ts +1005 -0
- package/dist/hey_client/sdk.gen.js +1438 -0
- package/dist/hey_client/types.gen.d.ts +12992 -0
- package/dist/hey_client/types.gen.js +2 -0
- package/dist/namespaces/conversations.d.ts +2 -2
- package/dist/namespaces/files.d.ts +6 -24
- package/dist/namespaces/files.js +6 -16
- package/dist/namespaces/integrations.d.ts +2 -4
- package/dist/namespaces/integrations.js +6 -6
- package/dist/namespaces/pod-surfaces.d.ts +8 -3
- package/dist/namespaces/pod-surfaces.js +15 -6
- package/dist/namespaces/pods.d.ts +2 -3
- package/dist/namespaces/pods.js +1 -6
- package/dist/namespaces/records.d.ts +10 -16
- package/dist/namespaces/records.js +4 -33
- package/dist/namespaces/resource-access.d.ts +3 -3
- package/dist/namespaces/resource-access.js +6 -6
- package/dist/namespaces/schedules.d.ts +1 -0
- package/dist/namespaces/schedules.js +1 -1
- package/dist/namespaces/tables.d.ts +2 -2
- package/dist/namespaces/workflows.d.ts +12 -8
- package/dist/namespaces/workflows.js +9 -18
- package/dist/openapi_client/index.d.ts +23 -42
- package/dist/openapi_client/index.js +5 -11
- package/dist/openapi_client/models/AgentHarnessInfo.d.ts +2 -0
- package/dist/openapi_client/models/AgentNode.d.ts +1 -1
- package/dist/openapi_client/models/AgentNodeConfig.d.ts +1 -1
- package/dist/openapi_client/models/AgentResourcePermissionRequest.d.ts +1 -1
- package/dist/openapi_client/models/AgentResourcePermissionResponse.d.ts +1 -1
- package/dist/openapi_client/models/AgentRuntimeProfileResponse.d.ts +6 -0
- package/dist/openapi_client/models/AgentSurfaceResponse.d.ts +6 -17
- package/dist/openapi_client/models/AgentSurfaceStatus.d.ts +3 -1
- package/dist/openapi_client/models/AgentSurfaceStatus.js +2 -0
- package/dist/openapi_client/models/AgentToolset.d.ts +2 -1
- package/dist/openapi_client/models/AgentToolset.js +1 -0
- package/dist/openapi_client/models/AppTriggerResponseSchema.d.ts +2 -0
- package/dist/openapi_client/models/ApplicationSkillResponse.d.ts +6 -0
- package/dist/openapi_client/models/ApprovalDecisionResponse.d.ts +6 -0
- package/dist/openapi_client/models/AuthProvider.d.ts +4 -0
- package/dist/openapi_client/models/AuthProvider.js +9 -0
- package/dist/openapi_client/models/ConnectedAccountSummary.d.ts +7 -0
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +0 -1
- package/dist/openapi_client/models/CreateScheduleRequest.d.ts +4 -0
- package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +3 -10
- package/dist/openapi_client/models/CreateUserDaemonRuntimeProfileRequest.d.ts +2 -0
- package/dist/openapi_client/models/DataStoreFlowStartInput.d.ts +1 -1
- package/dist/openapi_client/models/DataStoreFlowStartOutput.d.ts +1 -1
- package/dist/openapi_client/models/DatastoreCountResponse.d.ts +6 -0
- package/dist/openapi_client/models/DecisionNode.d.ts +2 -1
- package/dist/openapi_client/models/DecisionRule.d.ts +3 -0
- package/dist/openapi_client/models/EndNode.d.ts +1 -1
- package/dist/openapi_client/models/ExpressionInputBinding.d.ts +6 -2
- package/dist/openapi_client/models/FileListResponse.d.ts +1 -0
- package/dist/openapi_client/models/FileSearchResponse.d.ts +2 -2
- package/dist/openapi_client/models/FlowRunStatus.d.ts +5 -1
- package/dist/openapi_client/models/FlowRunStatus.js +5 -1
- package/dist/openapi_client/models/FormNode.d.ts +2 -1
- package/dist/openapi_client/models/FormNodeConfig.d.ts +1 -1
- package/dist/openapi_client/models/FunctionNode.d.ts +2 -1
- package/dist/openapi_client/models/FunctionResourcePermissionRequest.d.ts +1 -1
- package/dist/openapi_client/models/FunctionResourcePermissionResponse.d.ts +1 -1
- package/dist/openapi_client/models/InstalledAppSummary.d.ts +7 -0
- package/dist/openapi_client/models/IntegrationStatusResponse.d.ts +6 -0
- package/dist/openapi_client/models/LoopNode.d.ts +2 -1
- package/dist/openapi_client/models/LoopNodeConfig.d.ts +3 -3
- package/dist/openapi_client/models/MessageKind.d.ts +14 -0
- package/dist/openapi_client/models/MessageKind.js +19 -0
- package/dist/openapi_client/models/MessageResponse.d.ts +5 -6
- package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -3
- package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +0 -2
- package/dist/openapi_client/models/PodMemberResponse.d.ts +0 -2
- package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +1 -3
- package/dist/openapi_client/models/PodRoleResourcePermissionRequest.d.ts +1 -1
- package/dist/openapi_client/models/PodRoleResourcePermissionResponse.d.ts +1 -1
- package/dist/openapi_client/models/ResourceAccessGrantResponse.d.ts +1 -1
- package/dist/openapi_client/models/ResourceAccessResponse.d.ts +1 -1
- package/dist/openapi_client/models/RuntimeProfileScope.d.ts +2 -1
- package/dist/openapi_client/models/RuntimeProfileScope.js +1 -0
- package/dist/openapi_client/models/ScheduleDetailResponse.d.ts +6 -0
- package/dist/openapi_client/models/ScheduleFireStatus.d.ts +8 -0
- package/dist/openapi_client/models/ScheduleFireStatus.js +13 -0
- package/dist/openapi_client/models/StepRecordResponse.d.ts +10 -0
- package/dist/openapi_client/models/StepStatus.d.ts +7 -0
- package/dist/openapi_client/models/StepStatus.js +12 -0
- package/dist/openapi_client/models/SurfaceBehaviorConfigInput.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceChannelRouteInput.d.ts +6 -0
- package/dist/openapi_client/models/SurfaceChannelRouteResponse.d.ts +6 -0
- package/dist/openapi_client/models/SurfaceConfigResponse.d.ts +10 -0
- package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceCredentialMode.js +9 -0
- package/dist/openapi_client/models/SurfaceIdentityConfigInput.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceIdentityConfigResponse.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceSetupStatusResponse.d.ts +10 -0
- package/dist/openapi_client/models/TableListResponse.d.ts +2 -0
- package/dist/openapi_client/models/ToggleSurfaceRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
- package/dist/openapi_client/models/UpdateSurfaceChannelsRequest.d.ts +4 -0
- package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +4 -11
- package/dist/openapi_client/models/UpsertSurfaceRequest.d.ts +9 -0
- package/dist/openapi_client/models/UserProfileRequest.d.ts +1 -0
- package/dist/openapi_client/models/UserResponse.d.ts +1 -0
- package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +16 -0
- package/dist/openapi_client/models/WorkflowRunFormSubmitRequest.d.ts +13 -0
- package/dist/openapi_client/models/WorkflowRunResponse.d.ts +28 -0
- package/dist/openapi_client/models/WorkflowRunSummaryResponse.d.ts +2 -3
- package/dist/openapi_client/models/WorkflowRunWaitAssignment.d.ts +4 -4
- package/dist/openapi_client/models/{WorkflowRunWaitEntity.d.ts → WorkflowRunWaitResponse.d.ts} +4 -8
- package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +1 -2
- package/dist/openapi_client/models/WorkflowRunWaitType.js +0 -1
- package/dist/openapi_client/models/WorkspaceAppAccessRequest.d.ts +0 -3
- package/dist/openapi_client/models/WorkspaceMeSandbox.d.ts +1 -4
- package/dist/openapi_client/services/AgentConversationsService.d.ts +5 -5
- package/dist/openapi_client/services/AgentConversationsService.js +3 -3
- package/dist/openapi_client/services/AgentSurfacesService.d.ts +39 -10
- package/dist/openapi_client/services/AgentSurfacesService.js +86 -20
- package/dist/openapi_client/services/ApplicationsService.d.ts +29 -19
- package/dist/openapi_client/services/ApplicationsService.js +63 -36
- package/dist/openapi_client/services/FilesService.d.ts +2 -3
- package/dist/openapi_client/services/FilesService.js +1 -1
- package/dist/openapi_client/services/FunctionsService.d.ts +1 -1
- package/dist/openapi_client/services/FunctionsService.js +1 -1
- package/dist/openapi_client/services/IntegrationsService.d.ts +12 -4
- package/dist/openapi_client/services/IntegrationsService.js +22 -4
- package/dist/openapi_client/services/PodResourceAccessService.d.ts +6 -6
- package/dist/openapi_client/services/PodResourceAccessService.js +12 -12
- package/dist/openapi_client/services/RecordsService.d.ts +22 -25
- package/dist/openapi_client/services/RecordsService.js +14 -18
- package/dist/openapi_client/services/SchedulesService.d.ts +2 -1
- package/dist/openapi_client/services/SchedulesService.js +3 -1
- package/dist/openapi_client/services/TablesService.d.ts +4 -5
- package/dist/openapi_client/services/TablesService.js +2 -2
- package/dist/openapi_client/services/WorkflowsService.d.ts +35 -26
- package/dist/openapi_client/services/WorkflowsService.js +57 -39
- package/dist/react/assistant-output.d.ts +6 -0
- package/dist/react/assistant-output.js +16 -0
- package/dist/react/useAddPodMember.js +1 -1
- package/dist/react/useAssistantController.d.ts +9 -1
- package/dist/react/useAssistantController.js +92 -251
- package/dist/react/useAssistantRuntime.js +6 -17
- package/dist/react/useAssistantSession.d.ts +5 -2
- package/dist/react/useAssistantSession.js +47 -7
- package/dist/react/useBulkRecords.d.ts +5 -5
- package/dist/react/useBulkRecords.js +5 -5
- package/dist/react/useConversationMessages.d.ts +2 -2
- package/dist/react/useConversationMessages.js +3 -5
- package/dist/react/useCreateFolder.d.ts +2 -4
- package/dist/react/useCreateFolder.js +2 -3
- package/dist/react/useCreateRecord.d.ts +2 -2
- package/dist/react/useCreateRecord.js +1 -1
- package/dist/react/useDeleteFile.d.ts +1 -4
- package/dist/react/useDeleteFile.js +3 -3
- package/dist/react/useDeleteRecord.d.ts +1 -2
- package/dist/react/useDeleteRecord.js +3 -3
- package/dist/react/useFile.d.ts +2 -4
- package/dist/react/useFile.js +3 -3
- package/dist/react/useFilePreview.d.ts +1 -4
- package/dist/react/useFilePreview.js +4 -5
- package/dist/react/useFileSearch.d.ts +5 -1
- package/dist/react/useFileSearch.js +6 -4
- package/dist/react/useFileTree.d.ts +2 -4
- package/dist/react/useFileTree.js +2 -3
- package/dist/react/useFiles.d.ts +2 -4
- package/dist/react/useFiles.js +3 -5
- package/dist/react/useFlowSession.d.ts +3 -1
- package/dist/react/useFlowSession.js +24 -17
- package/dist/react/useGlobalSearch.js +1 -1
- package/dist/react/useRecord.d.ts +2 -2
- package/dist/react/useRecord.js +1 -1
- package/dist/react/useRecordForm.d.ts +2 -2
- package/dist/react/useRecordForm.js +2 -2
- package/dist/react/useRecords.d.ts +1 -1
- package/dist/react/useRecords.js +2 -13
- package/dist/react/useReferencingRecords.d.ts +4 -6
- package/dist/react/useReferencingRecords.js +5 -5
- package/dist/react/useReverseRelatedRecords.d.ts +3 -4
- package/dist/react/useReverseRelatedRecords.js +6 -6
- package/dist/react/useUpdateFile.d.ts +2 -4
- package/dist/react/useUpdateFile.js +2 -3
- package/dist/react/useUpdateRecord.d.ts +2 -2
- package/dist/react/useUpdateRecord.js +1 -1
- package/dist/react/useUploadFile.d.ts +2 -4
- package/dist/react/useUploadFile.js +2 -3
- package/dist/react/useWorkflowResume.d.ts +1 -0
- package/dist/react/useWorkflowResume.js +10 -1
- package/dist/react/useWorkflowRun.js +1 -3
- package/dist/react/useWorkflowStart.js +11 -26
- package/dist/react/utils.js +2 -0
- package/dist/types.d.ts +15 -9
- package/package.json +7 -2
- package/dist/openapi_client/models/BillingHistoryResponse.d.ts +0 -8
- package/dist/openapi_client/models/BillingInterval.d.ts +0 -7
- package/dist/openapi_client/models/BillingInterval.js +0 -12
- package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +0 -27
- package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +0 -10
- package/dist/openapi_client/models/BillingInvoiceStatus.js +0 -15
- package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +0 -10
- package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +0 -7
- package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +0 -8
- package/dist/openapi_client/models/DatastoreMessageResponse.d.ts +0 -6
- package/dist/openapi_client/models/DeskServingConfigResponse.d.ts +0 -11
- package/dist/openapi_client/models/DeskServingConfigResponse.js +0 -8
- package/dist/openapi_client/models/FlowRunEntity.d.ts +0 -36
- package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +0 -7
- package/dist/openapi_client/models/NotificationContent.d.ts +0 -4
- package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +0 -7
- package/dist/openapi_client/models/PlanListResponse.d.ts +0 -8
- package/dist/openapi_client/models/PlanResponse.d.ts +0 -18
- package/dist/openapi_client/models/PlanType.d.ts +0 -7
- package/dist/openapi_client/models/PlanType.js +0 -12
- package/dist/openapi_client/models/RecordResponse.d.ts +0 -9
- package/dist/openapi_client/models/SeatInfoResponse.d.ts +0 -10
- package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +0 -7
- package/dist/openapi_client/models/StackFrame.d.ts +0 -11
- package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +0 -14
- package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +0 -9
- package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +0 -6
- package/dist/openapi_client/models/StartTeamBillingRequest.js +0 -1
- package/dist/openapi_client/models/StepExecution.d.ts +0 -13
- package/dist/openapi_client/models/StepExecution.js +0 -1
- package/dist/openapi_client/models/SubscriptionResponse.d.ts +0 -22
- package/dist/openapi_client/models/SubscriptionResponse.js +0 -1
- package/dist/openapi_client/models/SubscriptionStatus.d.ts +0 -10
- package/dist/openapi_client/models/SubscriptionStatus.js +0 -15
- package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +0 -10
- package/dist/openapi_client/models/SubscriptionStatusResponse.js +0 -1
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +0 -22
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.js +0 -1
- package/dist/openapi_client/models/SurfaceEventMode.d.ts +0 -6
- package/dist/openapi_client/models/SurfaceEventMode.js +0 -11
- package/dist/openapi_client/models/SurfaceMode.d.ts +0 -5
- package/dist/openapi_client/models/SurfaceMode.js +0 -10
- package/dist/openapi_client/models/SurfaceRoutingScope.d.ts +0 -4
- package/dist/openapi_client/models/SurfaceRoutingScope.js +0 -9
- package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +0 -7
- package/dist/openapi_client/models/TeamsSurfaceConfig.js +0 -1
- package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +0 -7
- package/dist/openapi_client/models/TelegramSurfaceConfig.js +0 -1
- package/dist/openapi_client/models/TextContent.d.ts +0 -4
- package/dist/openapi_client/models/TextContent.js +0 -1
- package/dist/openapi_client/models/ThinkingContent.d.ts +0 -4
- package/dist/openapi_client/models/ThinkingContent.js +0 -1
- package/dist/openapi_client/models/ToolCallContent.d.ts +0 -6
- package/dist/openapi_client/models/ToolCallContent.js +0 -1
- package/dist/openapi_client/models/ToolReturnContent.d.ts +0 -6
- package/dist/openapi_client/models/ToolReturnContent.js +0 -1
- package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +0 -7
- package/dist/openapi_client/models/WhatsAppSurfaceConfig.js +0 -1
- package/dist/openapi_client/models/WorkflowRunWaitEntity.js +0 -1
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +0 -117
- package/dist/openapi_client/services/BillingSubscriptionsService.js +0 -230
- package/dist/openapi_client/services/BillingWebhooksService.d.ts +0 -12
- package/dist/openapi_client/services/BillingWebhooksService.js +0 -25
- package/dist/openapi_client/services/PublicDesksService.d.ts +0 -10
- package/dist/openapi_client/services/PublicDesksService.js +0 -15
- /package/dist/openapi_client/models/{BillingHistoryResponse.js → ApplicationSkillResponse.js} +0 -0
- /package/dist/openapi_client/models/{BillingInvoiceResponse.js → ApprovalDecisionResponse.js} +0 -0
- /package/dist/openapi_client/models/{CancelSubscriptionResponse.js → ConnectedAccountSummary.js} +0 -0
- /package/dist/openapi_client/models/{CreateInvoicePaymentUrlRequest.js → DatastoreCountResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateInvoicePaymentUrlResponse.js → InstalledAppSummary.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreMessageResponse.js → IntegrationStatusResponse.js} +0 -0
- /package/dist/openapi_client/models/{FlowRunEntity.js → StepRecordResponse.js} +0 -0
- /package/dist/openapi_client/models/{GmailSurfaceConfig.js → SurfaceChannelRouteInput.js} +0 -0
- /package/dist/openapi_client/models/{NotificationContent.js → SurfaceChannelRouteResponse.js} +0 -0
- /package/dist/openapi_client/models/{OutlookSurfaceConfig.js → SurfaceConfigResponse.js} +0 -0
- /package/dist/openapi_client/models/{PlanListResponse.js → SurfaceIdentityConfigInput.js} +0 -0
- /package/dist/openapi_client/models/{PlanResponse.js → SurfaceIdentityConfigResponse.js} +0 -0
- /package/dist/openapi_client/models/{RecordResponse.js → SurfaceSetupStatusResponse.js} +0 -0
- /package/dist/openapi_client/models/{SeatInfoResponse.js → UpdateSurfaceChannelsRequest.js} +0 -0
- /package/dist/openapi_client/models/{SlackSurfaceConfig.js → UpsertSurfaceRequest.js} +0 -0
- /package/dist/openapi_client/models/{StackFrame.js → WorkflowRunFormSubmitRequest.js} +0 -0
- /package/dist/openapi_client/models/{StartSubscriptionRequest.js → WorkflowRunResponse.js} +0 -0
- /package/dist/openapi_client/models/{StartSubscriptionResponse.js → WorkflowRunWaitResponse.js} +0 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Status of a flow run.
|
|
3
|
+
*
|
|
4
|
+
* PENDING exists only in memory before the first advance; persisted runs
|
|
5
|
+
* are RUNNING, WAITING, or terminal. WAITING is reserved for human form
|
|
6
|
+
* waits. Runs suspended on platform work such as an agent, function job, or
|
|
7
|
+
* timer remain RUNNING; the active wait row records the exact wait_type.
|
|
3
8
|
*/
|
|
4
9
|
export declare enum FlowRunStatus {
|
|
5
10
|
PENDING = "PENDING",
|
|
6
11
|
RUNNING = "RUNNING",
|
|
7
12
|
WAITING = "WAITING",
|
|
8
|
-
EXECUTING = "EXECUTING",
|
|
9
13
|
COMPLETED = "COMPLETED",
|
|
10
14
|
FAILED = "FAILED",
|
|
11
15
|
CANCELLED = "CANCELLED"
|
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
/**
|
|
6
6
|
* Status of a flow run.
|
|
7
|
+
*
|
|
8
|
+
* PENDING exists only in memory before the first advance; persisted runs
|
|
9
|
+
* are RUNNING, WAITING, or terminal. WAITING is reserved for human form
|
|
10
|
+
* waits. Runs suspended on platform work such as an agent, function job, or
|
|
11
|
+
* timer remain RUNNING; the active wait row records the exact wait_type.
|
|
7
12
|
*/
|
|
8
13
|
export var FlowRunStatus;
|
|
9
14
|
(function (FlowRunStatus) {
|
|
10
15
|
FlowRunStatus["PENDING"] = "PENDING";
|
|
11
16
|
FlowRunStatus["RUNNING"] = "RUNNING";
|
|
12
17
|
FlowRunStatus["WAITING"] = "WAITING";
|
|
13
|
-
FlowRunStatus["EXECUTING"] = "EXECUTING";
|
|
14
18
|
FlowRunStatus["COMPLETED"] = "COMPLETED";
|
|
15
19
|
FlowRunStatus["FAILED"] = "FAILED";
|
|
16
20
|
FlowRunStatus["CANCELLED"] = "CANCELLED";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FunctionNodeConfig } from './FunctionNodeConfig.js';
|
|
2
2
|
/**
|
|
3
|
-
* Function node.
|
|
3
|
+
* Function node. Completes inline for synchronous functions or waits on
|
|
4
|
+
* the function run for asynchronous ones.
|
|
4
5
|
*/
|
|
5
6
|
export type FunctionNode = {
|
|
6
7
|
config: FunctionNodeConfig;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConnectedAccountSummary } from './ConnectedAccountSummary.js';
|
|
2
|
+
import type { InstalledAppSummary } from './InstalledAppSummary.js';
|
|
3
|
+
export type IntegrationStatusResponse = {
|
|
4
|
+
accounts: Array<ConnectedAccountSummary>;
|
|
5
|
+
installed: Array<InstalledAppSummary>;
|
|
6
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { LoopNodeConfig } from './LoopNodeConfig.js';
|
|
2
2
|
/**
|
|
3
|
-
* Loop node.
|
|
3
|
+
* Loop node. Iterates the body chain once per item; the aggregated
|
|
4
|
+
* output is `{results: [...], count: n}` under the loop node id.
|
|
4
5
|
*/
|
|
5
6
|
export type LoopNode = {
|
|
6
7
|
config: LoopNodeConfig;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type LoopNodeConfig = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Id of the first node of the loop body executed per item.
|
|
7
7
|
*/
|
|
8
8
|
child_node_id: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Alias for the current item inside the loop body, available as `loop.<item_var_name>` (the item is always available as `loop.item`).
|
|
11
11
|
*/
|
|
12
12
|
item_var_name?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* JMESPath to an array in the run context to iterate over.
|
|
15
15
|
*/
|
|
16
16
|
items_path: string;
|
|
17
17
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Discriminates the flat message body.
|
|
3
|
+
*
|
|
4
|
+
* A message carries exactly one kind. Textual kinds use ``text``; tool kinds
|
|
5
|
+
* use ``tool_name``/``tool_call_id`` plus ``tool_args`` (call) or
|
|
6
|
+
* ``tool_result`` (return). There is no nested ``content`` object.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum MessageKind {
|
|
9
|
+
TEXT = "text",
|
|
10
|
+
NOTIFICATION = "notification",
|
|
11
|
+
THINKING = "thinking",
|
|
12
|
+
TOOL_CALL = "tool_call",
|
|
13
|
+
TOOL_RETURN = "tool_return"
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Discriminates the flat message body.
|
|
7
|
+
*
|
|
8
|
+
* A message carries exactly one kind. Textual kinds use ``text``; tool kinds
|
|
9
|
+
* use ``tool_name``/``tool_call_id`` plus ``tool_args`` (call) or
|
|
10
|
+
* ``tool_result`` (return). There is no nested ``content`` object.
|
|
11
|
+
*/
|
|
12
|
+
export var MessageKind;
|
|
13
|
+
(function (MessageKind) {
|
|
14
|
+
MessageKind["TEXT"] = "text";
|
|
15
|
+
MessageKind["NOTIFICATION"] = "notification";
|
|
16
|
+
MessageKind["THINKING"] = "thinking";
|
|
17
|
+
MessageKind["TOOL_CALL"] = "tool_call";
|
|
18
|
+
MessageKind["TOOL_RETURN"] = "tool_return";
|
|
19
|
+
})(MessageKind || (MessageKind = {}));
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TextContent } from './TextContent.js';
|
|
3
|
-
import type { ThinkingContent } from './ThinkingContent.js';
|
|
4
|
-
import type { ToolCallContent } from './ToolCallContent.js';
|
|
5
|
-
import type { ToolReturnContent } from './ToolReturnContent.js';
|
|
1
|
+
import type { MessageKind } from './MessageKind.js';
|
|
6
2
|
export type MessageResponse = {
|
|
7
|
-
content: (NotificationContent | TextContent | ThinkingContent | ToolCallContent | ToolReturnContent);
|
|
8
3
|
conversation_id: string;
|
|
9
4
|
created_at: string;
|
|
10
5
|
id: string;
|
|
6
|
+
kind: MessageKind;
|
|
11
7
|
metadata?: (Record<string, any> | null);
|
|
12
8
|
role: string;
|
|
13
9
|
sequence: number;
|
|
10
|
+
text?: (string | null);
|
|
11
|
+
tool_args?: null;
|
|
14
12
|
tool_call_id?: (string | null);
|
|
15
13
|
tool_name?: (string | null);
|
|
14
|
+
tool_result?: null;
|
|
16
15
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { PodRole } from './PodRole.js';
|
|
2
1
|
import type { UserResponse } from './UserResponse.js';
|
|
3
2
|
/**
|
|
4
3
|
* Pod member detail response schema.
|
|
@@ -7,7 +6,6 @@ export type PodMemberDetailResponse = {
|
|
|
7
6
|
created_at: string;
|
|
8
7
|
email: string;
|
|
9
8
|
pod_member_id: string;
|
|
10
|
-
role: PodRole;
|
|
11
9
|
roles?: Array<string>;
|
|
12
10
|
updated_at: string;
|
|
13
11
|
user?: (UserResponse | null);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { PodRole } from './PodRole.js';
|
|
2
1
|
/**
|
|
3
2
|
* Pod member response schema.
|
|
4
3
|
*/
|
|
@@ -6,7 +5,6 @@ export type PodMemberResponse = {
|
|
|
6
5
|
created_at: string;
|
|
7
6
|
email: string;
|
|
8
7
|
pod_member_id: string;
|
|
9
|
-
role: PodRole;
|
|
10
8
|
roles?: Array<string>;
|
|
11
9
|
updated_at: string;
|
|
12
10
|
user_email: string;
|
|
@@ -2,6 +2,6 @@ import type { ResourceAccessGrantResponse } from './ResourceAccessGrantResponse.
|
|
|
2
2
|
import type { ResourceType } from './ResourceType.js';
|
|
3
3
|
export type ResourceAccessResponse = {
|
|
4
4
|
grants?: Array<ResourceAccessGrantResponse>;
|
|
5
|
-
|
|
5
|
+
resource_name: string;
|
|
6
6
|
resource_type: ResourceType;
|
|
7
7
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ScheduleFireStatus } from './ScheduleFireStatus.js';
|
|
1
2
|
import type { ScheduleType } from './ScheduleType.js';
|
|
2
3
|
/**
|
|
3
4
|
* Schedule detail response.
|
|
@@ -15,6 +16,11 @@ export type ScheduleDetailResponse = {
|
|
|
15
16
|
id: string;
|
|
16
17
|
is_active: boolean;
|
|
17
18
|
is_internal: boolean;
|
|
19
|
+
last_error?: (string | null);
|
|
20
|
+
last_fire_status?: (ScheduleFireStatus | null);
|
|
21
|
+
last_fired_at?: (string | null);
|
|
22
|
+
last_run_id?: (string | null);
|
|
23
|
+
name: (string | null);
|
|
18
24
|
pod_id: (string | null);
|
|
19
25
|
schedule_type: ScheduleType;
|
|
20
26
|
updated_at: string;
|
|
@@ -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
|
+
* Outcome of the most recent fire attempt, recorded for debuggability.
|
|
7
|
+
*/
|
|
8
|
+
export var ScheduleFireStatus;
|
|
9
|
+
(function (ScheduleFireStatus) {
|
|
10
|
+
ScheduleFireStatus["TRIGGERED"] = "TRIGGERED";
|
|
11
|
+
ScheduleFireStatus["FILTERED"] = "FILTERED";
|
|
12
|
+
ScheduleFireStatus["ERROR"] = "ERROR";
|
|
13
|
+
})(ScheduleFireStatus || (ScheduleFireStatus = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StepStatus } from './StepStatus.js';
|
|
2
|
+
export type StepRecordResponse = {
|
|
3
|
+
completed_at?: (string | null);
|
|
4
|
+
error?: (string | null);
|
|
5
|
+
node_id: string;
|
|
6
|
+
output_data?: null;
|
|
7
|
+
started_at: string;
|
|
8
|
+
status: StepStatus;
|
|
9
|
+
step_index: number;
|
|
10
|
+
};
|
|
@@ -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 StepStatus;
|
|
6
|
+
(function (StepStatus) {
|
|
7
|
+
StepStatus["RUNNING"] = "RUNNING";
|
|
8
|
+
StepStatus["WAITING"] = "WAITING";
|
|
9
|
+
StepStatus["COMPLETED"] = "COMPLETED";
|
|
10
|
+
StepStatus["FAILED"] = "FAILED";
|
|
11
|
+
StepStatus["CANCELLED"] = "CANCELLED";
|
|
12
|
+
})(StepStatus || (StepStatus = {}));
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { SurfaceChannelRouteInput } from './SurfaceChannelRouteInput.js';
|
|
2
|
+
import type { SurfaceIdentityConfigInput } from './SurfaceIdentityConfigInput.js';
|
|
1
3
|
export type SurfaceBehaviorConfigInput = {
|
|
4
|
+
channels?: Array<SurfaceChannelRouteInput>;
|
|
2
5
|
dm_conversation_reset_after_hours?: number;
|
|
6
|
+
identity?: SurfaceIdentityConfigInput;
|
|
3
7
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SurfaceChannelRouteResponse } from './SurfaceChannelRouteResponse.js';
|
|
2
|
+
import type { SurfaceIdentityConfigResponse } from './SurfaceIdentityConfigResponse.js';
|
|
3
|
+
/**
|
|
4
|
+
* Mirrors SurfaceBehaviorConfigInput: what you send is what you get back.
|
|
5
|
+
*/
|
|
6
|
+
export type SurfaceConfigResponse = {
|
|
7
|
+
channels?: Array<SurfaceChannelRouteResponse>;
|
|
8
|
+
dm_conversation_reset_after_hours?: number;
|
|
9
|
+
identity?: SurfaceIdentityConfigResponse;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SurfaceCredentialMode;
|
|
6
|
+
(function (SurfaceCredentialMode) {
|
|
7
|
+
SurfaceCredentialMode["SYSTEM"] = "SYSTEM";
|
|
8
|
+
SurfaceCredentialMode["CUSTOM"] = "CUSTOM";
|
|
9
|
+
})(SurfaceCredentialMode || (SurfaceCredentialMode = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentSurfaceStatus } from './AgentSurfaceStatus.js';
|
|
2
|
+
import type { SurfacePlatform } from './SurfacePlatform.js';
|
|
3
|
+
export type SurfaceSetupStatusResponse = {
|
|
4
|
+
automatic_setup_supported?: boolean;
|
|
5
|
+
manual_steps?: Array<Record<string, string>>;
|
|
6
|
+
platform: SurfacePlatform;
|
|
7
|
+
status: AgentSurfaceStatus;
|
|
8
|
+
webhook_configured?: boolean;
|
|
9
|
+
webhook_url?: (string | null);
|
|
10
|
+
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import type { SurfaceBehaviorConfigInput } from './SurfaceBehaviorConfigInput.js';
|
|
2
|
-
import type {
|
|
3
|
-
import type { SurfaceMode } from './SurfaceMode.js';
|
|
4
|
-
import type { SurfaceRoutingScope } from './SurfaceRoutingScope.js';
|
|
2
|
+
import type { SurfaceCredentialMode } from './SurfaceCredentialMode.js';
|
|
5
3
|
export type UpdateSurfaceRequest = {
|
|
6
4
|
account_id?: (string | null);
|
|
7
|
-
agent_name?: (string | null);
|
|
8
5
|
config?: (SurfaceBehaviorConfigInput | null);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
external_workspace_id?: (string | null);
|
|
13
|
-
is_active?: (boolean | null);
|
|
14
|
-
mode?: (SurfaceMode | null);
|
|
15
|
-
routing_scope?: (SurfaceRoutingScope | null);
|
|
6
|
+
credential_mode?: (SurfaceCredentialMode | null);
|
|
7
|
+
default_agent_name?: (string | null);
|
|
8
|
+
is_enabled?: (boolean | null);
|
|
16
9
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SurfaceBehaviorConfigInput } from './SurfaceBehaviorConfigInput.js';
|
|
2
|
+
import type { SurfaceCredentialMode } from './SurfaceCredentialMode.js';
|
|
3
|
+
export type UpsertSurfaceRequest = {
|
|
4
|
+
account_id?: (string | null);
|
|
5
|
+
config?: SurfaceBehaviorConfigInput;
|
|
6
|
+
credential_mode?: SurfaceCredentialMode;
|
|
7
|
+
default_agent_name?: (string | null);
|
|
8
|
+
is_enabled?: boolean;
|
|
9
|
+
};
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
+
import type { AgentNode } from './AgentNode.js';
|
|
1
2
|
import type { DataStoreWorkflowStartInput } from './DataStoreWorkflowStartInput.js';
|
|
3
|
+
import type { DecisionNode } from './DecisionNode.js';
|
|
4
|
+
import type { EndNode } from './EndNode.js';
|
|
2
5
|
import type { EventWorkflowStartInput } from './EventWorkflowStartInput.js';
|
|
6
|
+
import type { FormNode } from './FormNode.js';
|
|
7
|
+
import type { FunctionNode } from './FunctionNode.js';
|
|
8
|
+
import type { LoopNode } from './LoopNode.js';
|
|
3
9
|
import type { ManualWorkflowStartInput } from './ManualWorkflowStartInput.js';
|
|
4
10
|
import type { ResourceVisibility } from './ResourceVisibility.js';
|
|
5
11
|
import type { ScheduledWorkflowStartInput } from './ScheduledWorkflowStartInput.js';
|
|
12
|
+
import type { WaitUntilNode } from './WaitUntilNode.js';
|
|
13
|
+
import type { WorkflowEdge } from './WorkflowEdge.js';
|
|
6
14
|
import type { WorkflowMode } from './WorkflowMode.js';
|
|
7
15
|
export type WorkflowCreateRequest = {
|
|
8
16
|
/**
|
|
9
17
|
* Optional workflow description.
|
|
10
18
|
*/
|
|
11
19
|
description?: (string | null);
|
|
20
|
+
/**
|
|
21
|
+
* Optional initial graph edges connecting the provided nodes.
|
|
22
|
+
*/
|
|
23
|
+
edges?: Array<WorkflowEdge>;
|
|
12
24
|
/**
|
|
13
25
|
* Optional public icon URL for the workflow.
|
|
14
26
|
*/
|
|
@@ -21,6 +33,10 @@ export type WorkflowCreateRequest = {
|
|
|
21
33
|
* Workflow name.
|
|
22
34
|
*/
|
|
23
35
|
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional initial graph nodes. When provided, the graph is stored at creation time so a separate `workflow.graph.update` call is not required. Omit (or pass an empty list) to create a shell and upload the graph later. Node `input_mapping` entries must use explicit typed bindings like `{"type": "expression", "value": "start.payload.x"}`.
|
|
38
|
+
*/
|
|
39
|
+
nodes?: Array<(FormNode | AgentNode | FunctionNode | DecisionNode | LoopNode | WaitUntilNode | EndNode)>;
|
|
24
40
|
/**
|
|
25
41
|
* Start configuration. If omitted, the workflow can be started manually via `workflow.start`.
|
|
26
42
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical form submission payload — identical across web, SDKs, CLI.
|
|
3
|
+
*/
|
|
4
|
+
export type WorkflowRunFormSubmitRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* Form field values keyed by field name.
|
|
7
|
+
*/
|
|
8
|
+
inputs?: Record<string, any>;
|
|
9
|
+
/**
|
|
10
|
+
* Id of the FORM node being submitted. Must match the run's active wait; mismatches return 422.
|
|
11
|
+
*/
|
|
12
|
+
node_id: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FlowRunStatus } from './FlowRunStatus.js';
|
|
2
|
+
import type { StepRecordResponse } from './StepRecordResponse.js';
|
|
3
|
+
import type { WorkflowRunWaitResponse } from './WorkflowRunWaitResponse.js';
|
|
4
|
+
/**
|
|
5
|
+
* Full run state. `execution_context` is the same flat view that
|
|
6
|
+
* workflow expressions resolve against (`<node_id>.<field>`, `start.*`,
|
|
7
|
+
* `loop.*`). `active_wait` is set when the run is suspended, including
|
|
8
|
+
* WAITING form waits and RUNNING platform waits.
|
|
9
|
+
*/
|
|
10
|
+
export type WorkflowRunResponse = {
|
|
11
|
+
active_wait?: (WorkflowRunWaitResponse | null);
|
|
12
|
+
completed_at?: (string | null);
|
|
13
|
+
created_at?: (string | null);
|
|
14
|
+
current_node_id?: (string | null);
|
|
15
|
+
error?: (string | null);
|
|
16
|
+
execution_context?: Record<string, any>;
|
|
17
|
+
failed_node_id?: (string | null);
|
|
18
|
+
flow_id: string;
|
|
19
|
+
id: string;
|
|
20
|
+
pod_id: string;
|
|
21
|
+
schedule_event_id?: (string | null);
|
|
22
|
+
start_type?: string;
|
|
23
|
+
started_at?: (string | null);
|
|
24
|
+
status?: FlowRunStatus;
|
|
25
|
+
step_history?: Array<StepRecordResponse>;
|
|
26
|
+
updated_at?: (string | null);
|
|
27
|
+
user_id: string;
|
|
28
|
+
};
|
|
@@ -3,6 +3,8 @@ export type WorkflowRunSummaryResponse = {
|
|
|
3
3
|
completed_at?: (string | null);
|
|
4
4
|
created_at?: (string | null);
|
|
5
5
|
current_node_id?: (string | null);
|
|
6
|
+
error?: (string | null);
|
|
7
|
+
failed_node_id?: (string | null);
|
|
6
8
|
flow_id: string;
|
|
7
9
|
id: string;
|
|
8
10
|
pod_id: string;
|
|
@@ -12,7 +14,4 @@ export type WorkflowRunSummaryResponse = {
|
|
|
12
14
|
status?: FlowRunStatus;
|
|
13
15
|
updated_at?: (string | null);
|
|
14
16
|
user_id: string;
|
|
15
|
-
waiting_agent_conversation_id?: (string | null);
|
|
16
|
-
waiting_function_run_id?: (string | null);
|
|
17
|
-
waiting_timer_id?: (string | null);
|
|
18
17
|
};
|