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,16 +1,17 @@
|
|
|
1
1
|
import type { FlowDetailResponse } from '../models/FlowDetailResponse.js';
|
|
2
|
-
import type { FlowRunEntity } from '../models/FlowRunEntity.js';
|
|
3
2
|
import type { WorkflowCreateRequest } from '../models/WorkflowCreateRequest.js';
|
|
4
3
|
import type { WorkflowGraphUpdateRequest } from '../models/WorkflowGraphUpdateRequest.js';
|
|
5
4
|
import type { WorkflowListResponse } from '../models/WorkflowListResponse.js';
|
|
5
|
+
import type { WorkflowRunFormSubmitRequest } from '../models/WorkflowRunFormSubmitRequest.js';
|
|
6
6
|
import type { WorkflowRunListResponse } from '../models/WorkflowRunListResponse.js';
|
|
7
|
+
import type { WorkflowRunResponse } from '../models/WorkflowRunResponse.js';
|
|
7
8
|
import type { WorkflowRunWaitAssignmentListResponse } from '../models/WorkflowRunWaitAssignmentListResponse.js';
|
|
8
9
|
import type { WorkflowUpdateRequest } from '../models/WorkflowUpdateRequest.js';
|
|
9
10
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
10
11
|
export declare class WorkflowsService {
|
|
11
12
|
/**
|
|
12
13
|
* List Workflow Runs Waiting For Current User
|
|
13
|
-
*
|
|
14
|
+
* The current user's approval queue: active form waits assigned to them, with the owning run.
|
|
14
15
|
* @param podId
|
|
15
16
|
* @param limit
|
|
16
17
|
* @param pageToken
|
|
@@ -20,23 +21,32 @@ export declare class WorkflowsService {
|
|
|
20
21
|
static workflowRunWaitingAssignedToMe(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunWaitAssignmentListResponse>;
|
|
21
22
|
/**
|
|
22
23
|
* Get Workflow Run
|
|
23
|
-
* Get current state, context,
|
|
24
|
+
* Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
|
|
24
25
|
* @param podId
|
|
25
26
|
* @param runId
|
|
26
|
-
* @returns
|
|
27
|
+
* @returns WorkflowRunResponse Successful Response
|
|
27
28
|
* @throws ApiError
|
|
28
29
|
*/
|
|
29
|
-
static workflowRunGet(podId: string, runId: string): CancelablePromise<
|
|
30
|
+
static workflowRunGet(podId: string, runId: string): CancelablePromise<WorkflowRunResponse>;
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
32
|
+
* Cancel Workflow Run
|
|
33
|
+
* Cancel a non-terminal run. The active wait (if any) is cancelled in the same transaction; late completion events for cancelled waits are dropped. Cancelling a terminal run returns 409.
|
|
34
|
+
* @param podId
|
|
35
|
+
* @param runId
|
|
36
|
+
* @returns WorkflowRunResponse Successful Response
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static workflowRunCancel(podId: string, runId: string): CancelablePromise<WorkflowRunResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Submit Workflow Run Form
|
|
42
|
+
* Submit the form the run is waiting on. `node_id` must match the run's active HUMAN wait (409 when the run is not waiting on a form, 422 on node mismatch, 403 when the wait is assigned to someone else). The submitted `inputs` become the form node's output, available to later nodes as `<node_id>.<field>`.
|
|
33
43
|
* @param podId
|
|
34
44
|
* @param runId
|
|
35
45
|
* @param requestBody
|
|
36
|
-
* @returns
|
|
46
|
+
* @returns WorkflowRunResponse Successful Response
|
|
37
47
|
* @throws ApiError
|
|
38
48
|
*/
|
|
39
|
-
static
|
|
49
|
+
static workflowRunFormSubmit(podId: string, runId: string, requestBody: WorkflowRunFormSubmitRequest): CancelablePromise<WorkflowRunResponse>;
|
|
40
50
|
/**
|
|
41
51
|
* Visualize Workflow Run
|
|
42
52
|
* Render an HTML view of a run overlaid on its workflow graph.
|
|
@@ -46,17 +56,6 @@ export declare class WorkflowsService {
|
|
|
46
56
|
* @throws ApiError
|
|
47
57
|
*/
|
|
48
58
|
static workflowRunVisualize(podId: string, runId: string): CancelablePromise<string>;
|
|
49
|
-
/**
|
|
50
|
-
* List Workflow Runs
|
|
51
|
-
* List recent runs for a given workflow.
|
|
52
|
-
* @param podId
|
|
53
|
-
* @param workflowName
|
|
54
|
-
* @param limit
|
|
55
|
-
* @param pageToken
|
|
56
|
-
* @returns WorkflowRunListResponse Successful Response
|
|
57
|
-
* @throws ApiError
|
|
58
|
-
*/
|
|
59
|
-
static workflowRunList(podId: string, workflowName: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunListResponse>;
|
|
60
59
|
/**
|
|
61
60
|
* List Workflows
|
|
62
61
|
* List all workflows in a pod.
|
|
@@ -69,7 +68,7 @@ export declare class WorkflowsService {
|
|
|
69
68
|
static workflowList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowListResponse>;
|
|
70
69
|
/**
|
|
71
70
|
* Create Workflow
|
|
72
|
-
* Create a workflow definition.
|
|
71
|
+
* Create a workflow definition. The graph (`nodes`/`edges`) can be included in this call to create a ready-to-run workflow in one step, or omitted to create a shell and upload the graph later with `workflow.graph.update`.
|
|
73
72
|
* @param podId
|
|
74
73
|
* @param requestBody
|
|
75
74
|
* @returns FlowDetailResponse Successful Response
|
|
@@ -115,15 +114,25 @@ export declare class WorkflowsService {
|
|
|
115
114
|
*/
|
|
116
115
|
static workflowGraphUpdate(podId: string, workflowName: string, requestBody: WorkflowGraphUpdateRequest): CancelablePromise<FlowDetailResponse>;
|
|
117
116
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
117
|
+
* List Workflow Runs
|
|
118
|
+
* List recent runs for a given workflow.
|
|
120
119
|
* @param podId
|
|
121
120
|
* @param workflowName
|
|
122
|
-
* @param
|
|
123
|
-
* @
|
|
121
|
+
* @param limit
|
|
122
|
+
* @param pageToken
|
|
123
|
+
* @returns WorkflowRunListResponse Successful Response
|
|
124
|
+
* @throws ApiError
|
|
125
|
+
*/
|
|
126
|
+
static workflowRunList(podId: string, workflowName: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunListResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Create Workflow Run
|
|
129
|
+
* Create a new run for this workflow. Takes no request body: if the workflow's entry node is a FORM node the run is created WAITING on it (see `active_wait` in the response) and input is submitted via `workflow.run.form.submit`; otherwise the run executes immediately. Trigger payloads for scheduled/event/datastore starts are supplied by the platform, not through this endpoint.
|
|
130
|
+
* @param podId
|
|
131
|
+
* @param workflowName
|
|
132
|
+
* @returns WorkflowRunResponse Successful Response
|
|
124
133
|
* @throws ApiError
|
|
125
134
|
*/
|
|
126
|
-
static
|
|
135
|
+
static workflowRunCreate(podId: string, workflowName: string): CancelablePromise<WorkflowRunResponse>;
|
|
127
136
|
/**
|
|
128
137
|
* Visualize Workflow
|
|
129
138
|
* Render an HTML visualization for debugging workflow graph structure.
|
|
@@ -3,7 +3,7 @@ import { request as __request } from '../core/request.js';
|
|
|
3
3
|
export class WorkflowsService {
|
|
4
4
|
/**
|
|
5
5
|
* List Workflow Runs Waiting For Current User
|
|
6
|
-
*
|
|
6
|
+
* The current user's approval queue: active form waits assigned to them, with the owning run.
|
|
7
7
|
* @param podId
|
|
8
8
|
* @param limit
|
|
9
9
|
* @param pageToken
|
|
@@ -28,10 +28,10 @@ export class WorkflowsService {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Get Workflow Run
|
|
31
|
-
* Get current state, context,
|
|
31
|
+
* Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
|
|
32
32
|
* @param podId
|
|
33
33
|
* @param runId
|
|
34
|
-
* @returns
|
|
34
|
+
* @returns WorkflowRunResponse Successful Response
|
|
35
35
|
* @throws ApiError
|
|
36
36
|
*/
|
|
37
37
|
static workflowRunGet(podId, runId) {
|
|
@@ -48,71 +48,65 @@ export class WorkflowsService {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
51
|
+
* Cancel Workflow Run
|
|
52
|
+
* Cancel a non-terminal run. The active wait (if any) is cancelled in the same transaction; late completion events for cancelled waits are dropped. Cancelling a terminal run returns 409.
|
|
53
53
|
* @param podId
|
|
54
54
|
* @param runId
|
|
55
|
-
* @
|
|
56
|
-
* @returns FlowRunEntity Successful Response
|
|
55
|
+
* @returns WorkflowRunResponse Successful Response
|
|
57
56
|
* @throws ApiError
|
|
58
57
|
*/
|
|
59
|
-
static
|
|
58
|
+
static workflowRunCancel(podId, runId) {
|
|
60
59
|
return __request(OpenAPI, {
|
|
61
60
|
method: 'POST',
|
|
62
|
-
url: '/pods/{pod_id}/workflow-runs/{run_id}/
|
|
61
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/cancel',
|
|
63
62
|
path: {
|
|
64
63
|
'pod_id': podId,
|
|
65
64
|
'run_id': runId,
|
|
66
65
|
},
|
|
67
|
-
body: requestBody,
|
|
68
|
-
mediaType: 'application/json',
|
|
69
66
|
errors: {
|
|
70
67
|
422: `Validation Error`,
|
|
71
68
|
},
|
|
72
69
|
});
|
|
73
70
|
}
|
|
74
71
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
72
|
+
* Submit Workflow Run Form
|
|
73
|
+
* Submit the form the run is waiting on. `node_id` must match the run's active HUMAN wait (409 when the run is not waiting on a form, 422 on node mismatch, 403 when the wait is assigned to someone else). The submitted `inputs` become the form node's output, available to later nodes as `<node_id>.<field>`.
|
|
77
74
|
* @param podId
|
|
78
75
|
* @param runId
|
|
79
|
-
* @
|
|
76
|
+
* @param requestBody
|
|
77
|
+
* @returns WorkflowRunResponse Successful Response
|
|
80
78
|
* @throws ApiError
|
|
81
79
|
*/
|
|
82
|
-
static
|
|
80
|
+
static workflowRunFormSubmit(podId, runId, requestBody) {
|
|
83
81
|
return __request(OpenAPI, {
|
|
84
|
-
method: '
|
|
85
|
-
url: '/pods/{pod_id}/workflow-runs/{run_id}/
|
|
82
|
+
method: 'POST',
|
|
83
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/form',
|
|
86
84
|
path: {
|
|
87
85
|
'pod_id': podId,
|
|
88
86
|
'run_id': runId,
|
|
89
87
|
},
|
|
88
|
+
body: requestBody,
|
|
89
|
+
mediaType: 'application/json',
|
|
90
90
|
errors: {
|
|
91
91
|
422: `Validation Error`,
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
96
|
+
* Visualize Workflow Run
|
|
97
|
+
* Render an HTML view of a run overlaid on its workflow graph.
|
|
98
98
|
* @param podId
|
|
99
|
-
* @param
|
|
100
|
-
* @
|
|
101
|
-
* @param pageToken
|
|
102
|
-
* @returns WorkflowRunListResponse Successful Response
|
|
99
|
+
* @param runId
|
|
100
|
+
* @returns string Successful Response
|
|
103
101
|
* @throws ApiError
|
|
104
102
|
*/
|
|
105
|
-
static
|
|
103
|
+
static workflowRunVisualize(podId, runId) {
|
|
106
104
|
return __request(OpenAPI, {
|
|
107
105
|
method: 'GET',
|
|
108
|
-
url: '/pods/{pod_id}/workflow-runs/{
|
|
106
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
|
|
109
107
|
path: {
|
|
110
108
|
'pod_id': podId,
|
|
111
|
-
'
|
|
112
|
-
},
|
|
113
|
-
query: {
|
|
114
|
-
'limit': limit,
|
|
115
|
-
'page_token': pageToken,
|
|
109
|
+
'run_id': runId,
|
|
116
110
|
},
|
|
117
111
|
errors: {
|
|
118
112
|
422: `Validation Error`,
|
|
@@ -146,7 +140,7 @@ export class WorkflowsService {
|
|
|
146
140
|
}
|
|
147
141
|
/**
|
|
148
142
|
* Create Workflow
|
|
149
|
-
* Create a workflow definition.
|
|
143
|
+
* Create a workflow definition. The graph (`nodes`/`edges`) can be included in this call to create a ready-to-run workflow in one step, or omitted to create a shell and upload the graph later with `workflow.graph.update`.
|
|
150
144
|
* @param podId
|
|
151
145
|
* @param requestBody
|
|
152
146
|
* @returns FlowDetailResponse Successful Response
|
|
@@ -257,24 +251,48 @@ export class WorkflowsService {
|
|
|
257
251
|
});
|
|
258
252
|
}
|
|
259
253
|
/**
|
|
260
|
-
*
|
|
261
|
-
*
|
|
254
|
+
* List Workflow Runs
|
|
255
|
+
* List recent runs for a given workflow.
|
|
262
256
|
* @param podId
|
|
263
257
|
* @param workflowName
|
|
264
|
-
* @param
|
|
265
|
-
* @
|
|
258
|
+
* @param limit
|
|
259
|
+
* @param pageToken
|
|
260
|
+
* @returns WorkflowRunListResponse Successful Response
|
|
261
|
+
* @throws ApiError
|
|
262
|
+
*/
|
|
263
|
+
static workflowRunList(podId, workflowName, limit = 100, pageToken) {
|
|
264
|
+
return __request(OpenAPI, {
|
|
265
|
+
method: 'GET',
|
|
266
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
|
|
267
|
+
path: {
|
|
268
|
+
'pod_id': podId,
|
|
269
|
+
'workflow_name': workflowName,
|
|
270
|
+
},
|
|
271
|
+
query: {
|
|
272
|
+
'limit': limit,
|
|
273
|
+
'page_token': pageToken,
|
|
274
|
+
},
|
|
275
|
+
errors: {
|
|
276
|
+
422: `Validation Error`,
|
|
277
|
+
},
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Create Workflow Run
|
|
282
|
+
* Create a new run for this workflow. Takes no request body: if the workflow's entry node is a FORM node the run is created WAITING on it (see `active_wait` in the response) and input is submitted via `workflow.run.form.submit`; otherwise the run executes immediately. Trigger payloads for scheduled/event/datastore starts are supplied by the platform, not through this endpoint.
|
|
283
|
+
* @param podId
|
|
284
|
+
* @param workflowName
|
|
285
|
+
* @returns WorkflowRunResponse Successful Response
|
|
266
286
|
* @throws ApiError
|
|
267
287
|
*/
|
|
268
|
-
static
|
|
288
|
+
static workflowRunCreate(podId, workflowName) {
|
|
269
289
|
return __request(OpenAPI, {
|
|
270
290
|
method: 'POST',
|
|
271
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}/
|
|
291
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
|
|
272
292
|
path: {
|
|
273
293
|
'pod_id': podId,
|
|
274
294
|
'workflow_name': workflowName,
|
|
275
295
|
},
|
|
276
|
-
body: requestBody,
|
|
277
|
-
mediaType: 'application/json',
|
|
278
296
|
errors: {
|
|
279
297
|
422: `Validation Error`,
|
|
280
298
|
},
|
|
@@ -2,5 +2,11 @@ import type { ConversationMessage } from "../types.js";
|
|
|
2
2
|
export declare function normalizeConversationStatus(status: unknown): string | undefined;
|
|
3
3
|
export declare function isConversationRunningStatus(status: unknown): boolean;
|
|
4
4
|
export declare function extractConversationMessageText(content: unknown): string;
|
|
5
|
+
/**
|
|
6
|
+
* Display text for a flat conversation message. Text/thinking/notification
|
|
7
|
+
* messages carry their body under `text`; tool_return messages may carry a
|
|
8
|
+
* human-readable payload under `tool_result`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function conversationMessageText(message: Pick<ConversationMessage, "text" | "tool_result"> | null | undefined): string;
|
|
5
11
|
export declare function sortConversationMessagesByCreatedAt(messages: ConversationMessage[]): ConversationMessage[];
|
|
6
12
|
export declare function getLatestAssistantMessage(messages: ConversationMessage[]): ConversationMessage | null;
|
|
@@ -72,6 +72,22 @@ export function extractConversationMessageText(content) {
|
|
|
72
72
|
return content.text.trim();
|
|
73
73
|
return extractTextFromStructuredContentEntry(content);
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Display text for a flat conversation message. Text/thinking/notification
|
|
77
|
+
* messages carry their body under `text`; tool_return messages may carry a
|
|
78
|
+
* human-readable payload under `tool_result`.
|
|
79
|
+
*/
|
|
80
|
+
export function conversationMessageText(message) {
|
|
81
|
+
if (!message)
|
|
82
|
+
return "";
|
|
83
|
+
if (typeof message.text === "string" && message.text.trim().length > 0) {
|
|
84
|
+
return message.text.trim();
|
|
85
|
+
}
|
|
86
|
+
if (message.tool_result !== undefined && message.tool_result !== null) {
|
|
87
|
+
return extractConversationMessageText(message.tool_result);
|
|
88
|
+
}
|
|
89
|
+
return "";
|
|
90
|
+
}
|
|
75
91
|
export function sortConversationMessagesByCreatedAt(messages) {
|
|
76
92
|
return [...messages].sort((a, b) => {
|
|
77
93
|
const aTime = Number.isFinite(new Date(a.created_at).getTime()) ? new Date(a.created_at).getTime() : 0;
|
|
@@ -20,7 +20,7 @@ export function useAddPodMember({ client, podId, enabled = true, defaultRole = P
|
|
|
20
20
|
const resolvedPodId = resolvePodId(client, podId);
|
|
21
21
|
const nextMember = await client.podMembers.add(resolvedPodId, {
|
|
22
22
|
organization_member_id: organizationMemberId,
|
|
23
|
-
|
|
23
|
+
roles: [input.role ?? defaultRole],
|
|
24
24
|
});
|
|
25
25
|
setAddedMember(nextMember);
|
|
26
26
|
onSuccessRef.current?.(nextMember);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LemmaClient } from "../client.js";
|
|
2
|
-
import type { AgentRuntimeConfig, AvailableModelInfo, Conversation, ConversationModel } from "../types.js";
|
|
2
|
+
import type { AgentRuntimeConfig, AvailableModelInfo, Conversation, ConversationModel, MessageKind } from "../types.js";
|
|
3
3
|
import { type AssistantStreamingTool } from "./useAssistantSession.js";
|
|
4
4
|
export type { AssistantStreamingTool } from "./useAssistantSession.js";
|
|
5
5
|
export interface AssistantConversationScope {
|
|
@@ -50,8 +50,12 @@ export interface AssistantRenderableMessage {
|
|
|
50
50
|
agent_run_id?: string | null;
|
|
51
51
|
metadata?: Record<string, unknown> | null;
|
|
52
52
|
message_metadata?: Record<string, unknown> | null;
|
|
53
|
+
/** Flat message fields, passed through so consumers can inspect the raw kind. */
|
|
54
|
+
kind?: MessageKind;
|
|
53
55
|
tool_call_id?: string | null;
|
|
54
56
|
tool_name?: string | null;
|
|
57
|
+
tool_args?: unknown;
|
|
58
|
+
tool_result?: unknown;
|
|
55
59
|
}
|
|
56
60
|
export interface AssistantAction {
|
|
57
61
|
id: string;
|
|
@@ -80,6 +84,7 @@ export interface UseAssistantControllerOptions extends AssistantConversationScop
|
|
|
80
84
|
export interface SendAssistantControllerMessageOptions {
|
|
81
85
|
forceNewConversation?: boolean;
|
|
82
86
|
metadata?: Record<string, unknown> | null;
|
|
87
|
+
conversationMetadata?: Record<string, unknown> | null;
|
|
83
88
|
instructions?: string | null;
|
|
84
89
|
}
|
|
85
90
|
export type AssistantUserApprovalDecision = "APPROVE_ONCE" | "APPROVE_FOR_SESSION" | "DENY";
|
|
@@ -93,6 +98,8 @@ export interface UseAssistantControllerResult {
|
|
|
93
98
|
isActiveConversationRunning: boolean;
|
|
94
99
|
isLoading: boolean;
|
|
95
100
|
isLoadingConversations: boolean;
|
|
101
|
+
isLoadingMoreConversations: boolean;
|
|
102
|
+
hasMoreConversations: boolean;
|
|
96
103
|
isLoadingMessages: boolean;
|
|
97
104
|
isLoadingOlderMessages: boolean;
|
|
98
105
|
hasOlderMessages: boolean;
|
|
@@ -112,6 +119,7 @@ export interface UseAssistantControllerResult {
|
|
|
112
119
|
removePendingFile: (fileKey: string) => void;
|
|
113
120
|
clearPendingFiles: () => void;
|
|
114
121
|
loadOlderMessages: () => Promise<boolean>;
|
|
122
|
+
loadMoreConversations: () => Promise<Conversation[]>;
|
|
115
123
|
resolveUserApproval: (approvalId: string, decision: AssistantUserApprovalDecision, response?: Record<string, unknown> | null) => Promise<void>;
|
|
116
124
|
clearMessages: () => void;
|
|
117
125
|
stop: () => void;
|