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
package/dist/react/utils.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentRuntimeConfig, AgentHarnessInfo, AgentHarnessListResponse, AgentDetailResponse, AgentRuntimeProfileListResponse, AgentRuntimeProfileResponse, ColumnSchema, ConversationResponse as GeneratedConversationResponse, CreateAgentRequest, DatastoreQueryResponse, DirectoryTreeNode, DirectoryTreeResponse, FileDetailResponse, FileSearchResponse, FileSearchResultSchema, FlowDetailResponse,
|
|
1
|
+
import type { AgentRuntimeConfig, AgentHarnessInfo, AgentHarnessListResponse, AgentDetailResponse, AgentRuntimeProfileListResponse, AgentRuntimeProfileResponse, ColumnSchema, ConversationResponse as GeneratedConversationResponse, CreateAgentRequest, DatastoreQueryResponse, DirectoryTreeNode, DirectoryTreeResponse, FileDetailResponse, FileSearchResponse, FileSearchResultSchema, FlowDetailResponse, WorkflowRunResponse, FunctionDetailResponse, FunctionRunResponse, FunctionRunSummaryResponse, HarnessKind, IconUploadResponse, OrganizationInvitationResponse, OrganizationMemberResponse, OrganizationResponse, PodConfigResponse, PodJoinRequestCreateResponse, PodMemberResponse, PodRoleResponse, PodResponse, ResourceAccessGrantResponse, ResourceAccessResponse, ResourceType as GeneratedResourceType, ScheduleDetailResponse, TableDetailResponse, UpdateAgentRequest, UsageRecordResponse as GeneratedUsageRecordResponse, UsageListResponse as GeneratedUsageListResponse, UsageStatsBucketResponse as GeneratedUsageStatsBucketResponse, UsageStatsResponse as GeneratedUsageStatsResponse, UsageSummaryResponse as GeneratedUsageSummaryResponse, UserResponse, WorkflowRunWaitAssignment, WorkflowRunSummaryResponse } from "./openapi_client/index.js";
|
|
2
2
|
/** Public ergonomic types. */
|
|
3
3
|
export interface AvailableModelInfo {
|
|
4
4
|
id: ConversationModel;
|
|
@@ -38,14 +38,12 @@ export interface ListRecordsOptions {
|
|
|
38
38
|
limit?: number;
|
|
39
39
|
pageToken?: string;
|
|
40
40
|
offset?: number;
|
|
41
|
-
sortBy?: string;
|
|
42
|
-
order?: "asc" | "desc" | string;
|
|
43
|
-
params?: Record<string, string | number | boolean | undefined | null>;
|
|
44
41
|
}
|
|
45
42
|
export interface RunFunctionOptions {
|
|
46
43
|
/** Input payload for the function */
|
|
47
44
|
input?: Record<string, unknown>;
|
|
48
45
|
}
|
|
46
|
+
/** Form field values submitted to a workflow form node. */
|
|
49
47
|
export interface WorkflowRunInputs {
|
|
50
48
|
[key: string]: unknown;
|
|
51
49
|
}
|
|
@@ -61,22 +59,31 @@ export type Conversation = GeneratedConversationResponse & {
|
|
|
61
59
|
model?: ConversationModel | null;
|
|
62
60
|
status?: string | null;
|
|
63
61
|
};
|
|
62
|
+
/** Discriminator for the flat message shape (replaces the old nested content union). */
|
|
63
|
+
export type MessageKind = "text" | "thinking" | "notification" | "tool_call" | "tool_return";
|
|
64
64
|
export interface ConversationMessageResponse {
|
|
65
65
|
id: string;
|
|
66
66
|
role: string;
|
|
67
|
-
|
|
67
|
+
kind: MessageKind;
|
|
68
|
+
/** Body for text / thinking / notification messages. */
|
|
69
|
+
text?: string | null;
|
|
70
|
+
/** Set on tool_call / tool_return messages. */
|
|
71
|
+
tool_name?: string | null;
|
|
72
|
+
tool_call_id?: string | null;
|
|
73
|
+
/** Inputs for a tool_call (arbitrary JSON). */
|
|
74
|
+
tool_args?: unknown;
|
|
75
|
+
/** Output for a tool_return (arbitrary JSON). */
|
|
76
|
+
tool_result?: unknown;
|
|
68
77
|
created_at: string;
|
|
69
78
|
conversation_id?: string;
|
|
70
79
|
sequence?: number;
|
|
71
80
|
agent_run_id?: string | null;
|
|
72
81
|
metadata?: Record<string, unknown> | null;
|
|
73
|
-
tool_call_id?: string | null;
|
|
74
|
-
tool_name?: string | null;
|
|
75
82
|
}
|
|
76
83
|
export type ConversationMessage = ConversationMessageResponse;
|
|
77
84
|
export type FunctionRun = FunctionRunResponse;
|
|
78
85
|
export type FunctionRunSummary = FunctionRunSummaryResponse;
|
|
79
|
-
export type FlowRun =
|
|
86
|
+
export type FlowRun = WorkflowRunResponse;
|
|
80
87
|
export type WorkflowRunSummary = WorkflowRunSummaryResponse;
|
|
81
88
|
/** @deprecated Use Workflow or FlowDetailResponse. */
|
|
82
89
|
export type FlowResponse = FlowDetailResponse;
|
|
@@ -97,7 +104,6 @@ export type DatastoreFileSearchResponse = FileSearchResponse;
|
|
|
97
104
|
export type DatastoreFileSearchResult = FileSearchResultSchema;
|
|
98
105
|
export type DatastoreDirectoryTree = DirectoryTreeResponse;
|
|
99
106
|
export type DatastoreDirectoryTreeNode = DirectoryTreeNode;
|
|
100
|
-
export type DatastoreFileNamespace = "PRIVATE" | "PERSONAL" | "POD";
|
|
101
107
|
export type Pod = PodResponse;
|
|
102
108
|
export type PodConfig = PodConfigResponse;
|
|
103
109
|
export type PodMember = PodMemberResponse;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lemma-sdk",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Official TypeScript SDK for Lemma pod-scoped
|
|
3
|
+
"version": "0.2.46",
|
|
4
|
+
"description": "Official TypeScript SDK for Lemma APIs, optimized around pod-scoped workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"lemma",
|
|
21
21
|
"sdk",
|
|
22
22
|
"typescript",
|
|
23
|
+
"javascript",
|
|
24
|
+
"node",
|
|
25
|
+
"browser",
|
|
23
26
|
"api",
|
|
24
27
|
"react"
|
|
25
28
|
],
|
|
@@ -41,6 +44,7 @@
|
|
|
41
44
|
],
|
|
42
45
|
"scripts": {
|
|
43
46
|
"generate:client": "./scripts/generate_openapi_client.sh",
|
|
47
|
+
"generate:client:hey": "LEMMA_TS_GENERATOR=hey ./scripts/generate_openapi_client.sh",
|
|
44
48
|
"build": "npm run clean && tsc -p tsconfig.json && npm run build:bundle",
|
|
45
49
|
"build:bundle": "tsc -p tsconfig.bundle.json && node ./scripts/build_browser_bundle.mjs",
|
|
46
50
|
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true, maxRetries: 10, retryDelay: 100 })\"",
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
"supertokens-web-js": "^0.16.0"
|
|
62
66
|
},
|
|
63
67
|
"devDependencies": {
|
|
68
|
+
"@hey-api/openapi-ts": "^0.73.0",
|
|
64
69
|
"@types/react": "^19.2.14",
|
|
65
70
|
"openapi-typescript-codegen": "^0.29.0",
|
|
66
71
|
"shadcn": "^4.2.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* Billing interval enum.
|
|
7
|
-
*/
|
|
8
|
-
export var BillingInterval;
|
|
9
|
-
(function (BillingInterval) {
|
|
10
|
-
BillingInterval["MONTHLY"] = "MONTHLY";
|
|
11
|
-
BillingInterval["YEARLY"] = "YEARLY";
|
|
12
|
-
})(BillingInterval || (BillingInterval = {}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { BillingInvoiceStatus } from './BillingInvoiceStatus.js';
|
|
2
|
-
/**
|
|
3
|
-
* Response schema for a billing invoice.
|
|
4
|
-
*/
|
|
5
|
-
export type BillingInvoiceResponse = {
|
|
6
|
-
amount_cents: number;
|
|
7
|
-
checkout_url: (string | null);
|
|
8
|
-
created_at: string;
|
|
9
|
-
currency: string;
|
|
10
|
-
dodo_payment_id: (string | null);
|
|
11
|
-
due_at: (string | null);
|
|
12
|
-
id: string;
|
|
13
|
-
llm_credit_cents: number;
|
|
14
|
-
llm_overage_cents: number;
|
|
15
|
-
metadata: Record<string, any>;
|
|
16
|
-
organization_id: (string | null);
|
|
17
|
-
paid_at: (string | null);
|
|
18
|
-
period_end: string;
|
|
19
|
-
period_start: string;
|
|
20
|
-
plan_id: string;
|
|
21
|
-
seat_count: number;
|
|
22
|
-
status: BillingInvoiceStatus;
|
|
23
|
-
subscription_id: (string | null);
|
|
24
|
-
total_cents: number;
|
|
25
|
-
updated_at: string;
|
|
26
|
-
user_id: (string | null);
|
|
27
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* Billing invoice status enum.
|
|
7
|
-
*/
|
|
8
|
-
export var BillingInvoiceStatus;
|
|
9
|
-
(function (BillingInvoiceStatus) {
|
|
10
|
-
BillingInvoiceStatus["DRAFT"] = "draft";
|
|
11
|
-
BillingInvoiceStatus["UNPAID"] = "unpaid";
|
|
12
|
-
BillingInvoiceStatus["PAID"] = "paid";
|
|
13
|
-
BillingInvoiceStatus["FAILED"] = "failed";
|
|
14
|
-
BillingInvoiceStatus["VOID"] = "void";
|
|
15
|
-
})(BillingInvoiceStatus || (BillingInvoiceStatus = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionStatus } from './SubscriptionStatus.js';
|
|
2
|
-
/**
|
|
3
|
-
* Response for subscription cancellation.
|
|
4
|
-
*/
|
|
5
|
-
export type CancelSubscriptionResponse = {
|
|
6
|
-
effective_date: (string | null);
|
|
7
|
-
message: string;
|
|
8
|
-
status: SubscriptionStatus;
|
|
9
|
-
subscription_id: string;
|
|
10
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var DeskServingConfigResponse;
|
|
2
|
-
(function (DeskServingConfigResponse) {
|
|
3
|
-
let mode;
|
|
4
|
-
(function (mode) {
|
|
5
|
-
mode["HOST"] = "HOST";
|
|
6
|
-
mode["PATH"] = "PATH";
|
|
7
|
-
})(mode = DeskServingConfigResponse.mode || (DeskServingConfigResponse.mode = {}));
|
|
8
|
-
})(DeskServingConfigResponse || (DeskServingConfigResponse = {}));
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { FlowRunStatus } from './FlowRunStatus.js';
|
|
2
|
-
import type { StackFrame } from './StackFrame.js';
|
|
3
|
-
import type { StepExecution } from './StepExecution.js';
|
|
4
|
-
/**
|
|
5
|
-
* FlowRun Aggregate representing an execution of a Flow.
|
|
6
|
-
*/
|
|
7
|
-
export type FlowRunEntity = {
|
|
8
|
-
completed_at?: (string | null);
|
|
9
|
-
created_at?: string;
|
|
10
|
-
current_node_id?: (string | null);
|
|
11
|
-
execution_context?: Record<string, any>;
|
|
12
|
-
execution_stack?: Array<StackFrame>;
|
|
13
|
-
flow_id: string;
|
|
14
|
-
id?: string;
|
|
15
|
-
pod_id: string;
|
|
16
|
-
schedule_event_id?: (string | null);
|
|
17
|
-
start_payload?: Record<string, any>;
|
|
18
|
-
start_type?: string;
|
|
19
|
-
started_at?: (string | null);
|
|
20
|
-
status?: FlowRunStatus;
|
|
21
|
-
step_history?: Array<StepExecution>;
|
|
22
|
-
updated_at?: string;
|
|
23
|
-
user_id: string;
|
|
24
|
-
/**
|
|
25
|
-
* Agent conversation id when the workflow is waiting for a pod agent execution.
|
|
26
|
-
*/
|
|
27
|
-
waiting_agent_conversation_id?: (string | null);
|
|
28
|
-
/**
|
|
29
|
-
* Function run id when the workflow is waiting for an async function.
|
|
30
|
-
*/
|
|
31
|
-
waiting_function_run_id?: (string | null);
|
|
32
|
-
/**
|
|
33
|
-
* Scheduler wake job id when the workflow is waiting for time.
|
|
34
|
-
*/
|
|
35
|
-
waiting_timer_id?: (string | null);
|
|
36
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { PlanType } from './PlanType.js';
|
|
2
|
-
/**
|
|
3
|
-
* Response schema for a plan.
|
|
4
|
-
*/
|
|
5
|
-
export type PlanResponse = {
|
|
6
|
-
created_at: string;
|
|
7
|
-
currency: string;
|
|
8
|
-
description: (string | null);
|
|
9
|
-
features: Record<string, any>;
|
|
10
|
-
id: string;
|
|
11
|
-
is_active: boolean;
|
|
12
|
-
name: string;
|
|
13
|
-
plan_type: PlanType;
|
|
14
|
-
price_cents: number;
|
|
15
|
-
seat_limit: (number | null);
|
|
16
|
-
updated_at: string;
|
|
17
|
-
usage_limits: Record<string, any>;
|
|
18
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* Plan type enum.
|
|
7
|
-
*/
|
|
8
|
-
export var PlanType;
|
|
9
|
-
(function (PlanType) {
|
|
10
|
-
PlanType["PERSONAL"] = "PERSONAL";
|
|
11
|
-
PlanType["TEAM"] = "TEAM";
|
|
12
|
-
})(PlanType || (PlanType = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Request to start a subscription.
|
|
3
|
-
*/
|
|
4
|
-
export type StartSubscriptionRequest = {
|
|
5
|
-
/**
|
|
6
|
-
* URL to redirect if payment is cancelled
|
|
7
|
-
*/
|
|
8
|
-
cancel_url: string;
|
|
9
|
-
plan_id: string;
|
|
10
|
-
/**
|
|
11
|
-
* URL to redirect after successful payment
|
|
12
|
-
*/
|
|
13
|
-
success_url: string;
|
|
14
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionResponse } from './SubscriptionResponse.js';
|
|
2
|
-
/**
|
|
3
|
-
* Response with checkout URL.
|
|
4
|
-
*/
|
|
5
|
-
export type StartSubscriptionResponse = {
|
|
6
|
-
checkout_url?: (string | null);
|
|
7
|
-
message?: string;
|
|
8
|
-
subscription?: (SubscriptionResponse | null);
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { FlowRunStatus } from './FlowRunStatus.js';
|
|
2
|
-
/**
|
|
3
|
-
* Record of a single node execution.
|
|
4
|
-
*/
|
|
5
|
-
export type StepExecution = {
|
|
6
|
-
completed_at?: (string | null);
|
|
7
|
-
error?: (string | null);
|
|
8
|
-
input_data?: (Record<string, any> | null);
|
|
9
|
-
node_id: string;
|
|
10
|
-
output_data?: null;
|
|
11
|
-
started_at: string;
|
|
12
|
-
status: FlowRunStatus;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { BillingInterval } from './BillingInterval.js';
|
|
2
|
-
import type { PlanResponse } from './PlanResponse.js';
|
|
3
|
-
import type { SubscriptionStatus } from './SubscriptionStatus.js';
|
|
4
|
-
/**
|
|
5
|
-
* Response schema for a subscription.
|
|
6
|
-
*/
|
|
7
|
-
export type SubscriptionResponse = {
|
|
8
|
-
billing_interval: BillingInterval;
|
|
9
|
-
cancel_at_period_end: boolean;
|
|
10
|
-
created_at: string;
|
|
11
|
-
current_period_end: (string | null);
|
|
12
|
-
current_period_start: (string | null);
|
|
13
|
-
dodo_subscription_id: (string | null);
|
|
14
|
-
id: string;
|
|
15
|
-
organization_id: (string | null);
|
|
16
|
-
plan?: (PlanResponse | null);
|
|
17
|
-
plan_id: string;
|
|
18
|
-
seat_count: number;
|
|
19
|
-
status: SubscriptionStatus;
|
|
20
|
-
updated_at: string;
|
|
21
|
-
user_id: (string | null);
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* Subscription status enum.
|
|
7
|
-
*/
|
|
8
|
-
export var SubscriptionStatus;
|
|
9
|
-
(function (SubscriptionStatus) {
|
|
10
|
-
SubscriptionStatus["PENDING"] = "pending";
|
|
11
|
-
SubscriptionStatus["ACTIVE"] = "active";
|
|
12
|
-
SubscriptionStatus["CANCELLED"] = "cancelled";
|
|
13
|
-
SubscriptionStatus["EXPIRED"] = "expired";
|
|
14
|
-
SubscriptionStatus["PAST_DUE"] = "past_due";
|
|
15
|
-
})(SubscriptionStatus || (SubscriptionStatus = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionStatus } from './SubscriptionStatus.js';
|
|
2
|
-
/**
|
|
3
|
-
* Simple subscription status response.
|
|
4
|
-
*/
|
|
5
|
-
export type SubscriptionStatusResponse = {
|
|
6
|
-
has_subscription: boolean;
|
|
7
|
-
is_active: boolean;
|
|
8
|
-
plan_name: (string | null);
|
|
9
|
-
status: (SubscriptionStatus | null);
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { BillingInterval } from './BillingInterval.js';
|
|
2
|
-
import type { PlanResponse } from './PlanResponse.js';
|
|
3
|
-
import type { SubscriptionStatus } from './SubscriptionStatus.js';
|
|
4
|
-
/**
|
|
5
|
-
* Subscription response with plan details.
|
|
6
|
-
*/
|
|
7
|
-
export type SubscriptionWithPlanResponse = {
|
|
8
|
-
billing_interval: BillingInterval;
|
|
9
|
-
cancel_at_period_end: boolean;
|
|
10
|
-
created_at: string;
|
|
11
|
-
current_period_end: (string | null);
|
|
12
|
-
current_period_start: (string | null);
|
|
13
|
-
dodo_subscription_id: (string | null);
|
|
14
|
-
id: string;
|
|
15
|
-
organization_id: (string | null);
|
|
16
|
-
plan: PlanResponse;
|
|
17
|
-
plan_id: string;
|
|
18
|
-
seat_count: number;
|
|
19
|
-
status: SubscriptionStatus;
|
|
20
|
-
updated_at: string;
|
|
21
|
-
user_id: (string | null);
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export var SurfaceEventMode;
|
|
6
|
-
(function (SurfaceEventMode) {
|
|
7
|
-
SurfaceEventMode["WEBHOOK"] = "WEBHOOK";
|
|
8
|
-
SurfaceEventMode["POLLING"] = "POLLING";
|
|
9
|
-
SurfaceEventMode["SOCKET"] = "SOCKET";
|
|
10
|
-
SurfaceEventMode["SCHEDULE"] = "SCHEDULE";
|
|
11
|
-
})(SurfaceEventMode || (SurfaceEventMode = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export var SurfaceMode;
|
|
6
|
-
(function (SurfaceMode) {
|
|
7
|
-
SurfaceMode["DM"] = "DM";
|
|
8
|
-
SurfaceMode["CHANNEL"] = "CHANNEL";
|
|
9
|
-
SurfaceMode["EMAIL"] = "EMAIL";
|
|
10
|
-
})(SurfaceMode || (SurfaceMode = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export var SurfaceRoutingScope;
|
|
6
|
-
(function (SurfaceRoutingScope) {
|
|
7
|
-
SurfaceRoutingScope["POD"] = "POD";
|
|
8
|
-
SurfaceRoutingScope["PERSONAL"] = "PERSONAL";
|
|
9
|
-
})(SurfaceRoutingScope || (SurfaceRoutingScope = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|