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,9 +1,9 @@
|
|
|
1
1
|
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { ApprovalDecisionResponse } from "../openapi_client/models/ApprovalDecisionResponse.js";
|
|
2
3
|
import type { AgentRuntimeConfig } from "../openapi_client/models/AgentRuntimeConfig.js";
|
|
3
4
|
import type { ConversationListResponse } from "../openapi_client/models/ConversationListResponse.js";
|
|
4
5
|
import type { CreateConversationRequest } from "../openapi_client/models/CreateConversationRequest.js";
|
|
5
6
|
import type { HarnessKind } from "../openapi_client/models/HarnessKind.js";
|
|
6
|
-
import type { MessageResponse } from "../openapi_client/models/MessageResponse.js";
|
|
7
7
|
import type { ResolveUserApprovalRequest } from "../openapi_client/models/ResolveUserApprovalRequest.js";
|
|
8
8
|
import type { SendMessageRequest } from "../openapi_client/models/SendMessageRequest.js";
|
|
9
9
|
import type { UpdateConversationRequest } from "../openapi_client/models/UpdateConversationRequest.js";
|
|
@@ -96,7 +96,7 @@ export declare class ConversationsNamespace {
|
|
|
96
96
|
}) => Promise<UserApprovalListResponse>;
|
|
97
97
|
resolve: (conversationId: string, approvalId: string, payload: ResolveUserApprovalInput, options?: {
|
|
98
98
|
pod_id?: string | null;
|
|
99
|
-
}) => Promise<
|
|
99
|
+
}) => Promise<ApprovalDecisionResponse>;
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
export {};
|
|
@@ -4,7 +4,6 @@ import type { ConvertedFileResponse } from "../openapi_client/models/ConvertedFi
|
|
|
4
4
|
import type { DirectoryTreeResponse } from "../openapi_client/models/DirectoryTreeResponse.js";
|
|
5
5
|
import { FileSearchScopeMode } from "../openapi_client/models/FileSearchScopeMode.js";
|
|
6
6
|
import { SearchMethod } from "../openapi_client/models/SearchMethod.js";
|
|
7
|
-
import type { DatastoreFileNamespace } from "../types.js";
|
|
8
7
|
type SearchMethodInput = SearchMethod | `${SearchMethod}`;
|
|
9
8
|
type FileSearchScopeModeInput = FileSearchScopeMode | `${FileSearchScopeMode}`;
|
|
10
9
|
export declare class FilesNamespace {
|
|
@@ -17,27 +16,19 @@ export declare class FilesNamespace {
|
|
|
17
16
|
pageToken?: string;
|
|
18
17
|
directoryPath?: string;
|
|
19
18
|
parentId?: string;
|
|
20
|
-
namespace?: DatastoreFileNamespace | null;
|
|
21
19
|
}): Promise<import("../types.js").FileListResponse>;
|
|
22
|
-
get(path: string
|
|
23
|
-
|
|
24
|
-
}): Promise<import("../types.js").FileDetailResponse>;
|
|
25
|
-
delete(path: string, options?: {
|
|
26
|
-
namespace?: DatastoreFileNamespace | null;
|
|
27
|
-
}): Promise<import("../types.js").DatastoreMessageResponse>;
|
|
20
|
+
get(path: string): Promise<import("../types.js").FileDetailResponse>;
|
|
21
|
+
delete(path: string): Promise<void>;
|
|
28
22
|
search(query: string, options?: {
|
|
29
23
|
limit?: number;
|
|
30
24
|
scopeMode?: FileSearchScopeModeInput;
|
|
31
25
|
scopePath?: string | null;
|
|
32
26
|
searchMethod?: SearchMethodInput;
|
|
33
27
|
}): Promise<import("../types.js").FileSearchResponse>;
|
|
34
|
-
download(path: string
|
|
35
|
-
namespace?: DatastoreFileNamespace | null;
|
|
36
|
-
}): Promise<Blob>;
|
|
28
|
+
download(path: string): Promise<Blob>;
|
|
37
29
|
tree(options?: {
|
|
38
30
|
rootPath?: string;
|
|
39
31
|
filesPerDirectory?: number;
|
|
40
|
-
namespace?: DatastoreFileNamespace | null;
|
|
41
32
|
}): Promise<DirectoryTreeResponse>;
|
|
42
33
|
upload(file: Blob, options?: {
|
|
43
34
|
name?: string;
|
|
@@ -45,7 +36,6 @@ export declare class FilesNamespace {
|
|
|
45
36
|
parentId?: string;
|
|
46
37
|
searchEnabled?: boolean;
|
|
47
38
|
description?: string;
|
|
48
|
-
namespace?: DatastoreFileNamespace | null;
|
|
49
39
|
}): Promise<import("../types.js").FileDetailResponse>;
|
|
50
40
|
update(path: string, options?: {
|
|
51
41
|
file?: Blob;
|
|
@@ -56,26 +46,18 @@ export declare class FilesNamespace {
|
|
|
56
46
|
newPath?: string;
|
|
57
47
|
searchEnabled?: boolean;
|
|
58
48
|
visibility?: string | null;
|
|
59
|
-
namespace?: DatastoreFileNamespace | null;
|
|
60
49
|
}): Promise<import("../types.js").FileDetailResponse>;
|
|
61
50
|
readonly folder: {
|
|
62
51
|
create: (name: string, options?: {
|
|
63
52
|
directoryPath?: string;
|
|
64
53
|
parentId?: string;
|
|
65
54
|
description?: string;
|
|
66
|
-
namespace?: DatastoreFileNamespace | null;
|
|
67
55
|
}) => Promise<import("../types.js").FileDetailResponse>;
|
|
68
56
|
};
|
|
69
57
|
readonly converted: {
|
|
70
|
-
get: (path: string
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
render: (path: string, options?: {
|
|
74
|
-
namespace?: DatastoreFileNamespace | null;
|
|
75
|
-
}) => Promise<string>;
|
|
76
|
-
download: (path: string, artifact?: string, options?: {
|
|
77
|
-
namespace?: DatastoreFileNamespace | null;
|
|
78
|
-
}) => Promise<Blob>;
|
|
58
|
+
get: (path: string) => Promise<ConvertedFileResponse>;
|
|
59
|
+
render: (path: string) => Promise<string>;
|
|
60
|
+
download: (path: string, artifact?: string) => Promise<Blob>;
|
|
79
61
|
};
|
|
80
62
|
}
|
|
81
63
|
export {};
|
package/dist/namespaces/files.js
CHANGED
|
@@ -42,12 +42,10 @@ export class FilesNamespace {
|
|
|
42
42
|
const directoryPath = options.directoryPath ?? options.parentId ?? "/";
|
|
43
43
|
return this.client.request(() => FilesService.fileList(this.podId(), directoryPath, options.limit ?? 100, options.pageToken));
|
|
44
44
|
}
|
|
45
|
-
get(path
|
|
46
|
-
void options;
|
|
45
|
+
get(path) {
|
|
47
46
|
return this.client.request(() => FilesService.fileGet(this.podId(), path));
|
|
48
47
|
}
|
|
49
|
-
delete(path
|
|
50
|
-
void options;
|
|
48
|
+
delete(path) {
|
|
51
49
|
return this.client.request(() => FilesService.fileDelete(this.podId(), path));
|
|
52
50
|
}
|
|
53
51
|
search(query, options = {}) {
|
|
@@ -59,8 +57,7 @@ export class FilesNamespace {
|
|
|
59
57
|
search_method: (options.searchMethod ?? SearchMethod.HYBRID),
|
|
60
58
|
}));
|
|
61
59
|
}
|
|
62
|
-
download(path
|
|
63
|
-
void options;
|
|
60
|
+
download(path) {
|
|
64
61
|
const encodedPath = encodeURIComponent(path);
|
|
65
62
|
return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/download?path=${encodedPath}`);
|
|
66
63
|
}
|
|
@@ -106,16 +103,9 @@ export class FilesNamespace {
|
|
|
106
103
|
},
|
|
107
104
|
};
|
|
108
105
|
converted = {
|
|
109
|
-
get: (path
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}),
|
|
113
|
-
render: (path, options = {}) => this.client.request(() => {
|
|
114
|
-
void options;
|
|
115
|
-
return FilesService.fileConvertedRender(this.podId(), path);
|
|
116
|
-
}),
|
|
117
|
-
download: (path, artifact = "document.md", options = {}) => {
|
|
118
|
-
void options;
|
|
106
|
+
get: (path) => this.client.request(() => FilesService.fileConvertedGet(this.podId(), path)),
|
|
107
|
+
render: (path) => this.client.request(() => FilesService.fileConvertedRender(this.podId(), path)),
|
|
108
|
+
download: (path, artifact = "document.md") => {
|
|
119
109
|
const encodedPath = encodeURIComponent(path);
|
|
120
110
|
const encodedArtifact = encodeURIComponent(artifact);
|
|
121
111
|
return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/converted/download?path=${encodedPath}&artifact=${encodedArtifact}`);
|
|
@@ -44,13 +44,11 @@ export declare class IntegrationsNamespace {
|
|
|
44
44
|
};
|
|
45
45
|
helperAgent(goal: string, appNames: string[]): Promise<import("../types.js").IntegrationHelperAgentResponse>;
|
|
46
46
|
readonly triggers: {
|
|
47
|
-
list: (options?: {
|
|
48
|
-
applicationId?: string;
|
|
47
|
+
list: (scope: OperationScope, options?: {
|
|
49
48
|
search?: string;
|
|
50
49
|
limit?: number;
|
|
51
|
-
pageToken?: string;
|
|
52
50
|
}) => Promise<import("../types.js").AppTriggerListResponseSchema>;
|
|
53
|
-
get: (
|
|
51
|
+
get: (scope: OperationScope, triggerName: string) => Promise<import("../types.js").AppTriggerResponseSchema>;
|
|
54
52
|
};
|
|
55
53
|
readonly accounts: {
|
|
56
54
|
list: (organizationId: string, options?: {
|
|
@@ -41,8 +41,8 @@ export class IntegrationsNamespace {
|
|
|
41
41
|
return this.client.request(() => AgentToolsService.agentToolIntegrationHelperAgent(body));
|
|
42
42
|
}
|
|
43
43
|
triggers = {
|
|
44
|
-
list: (options = {}) => this.client.request(() => ApplicationsService.applicationTriggerList(
|
|
45
|
-
get: (
|
|
44
|
+
list: (scope, options = {}) => this.client.request(() => ApplicationsService.applicationTriggerList(scope.organizationId, scope.authConfigName, options.search, options.limit ?? 100)),
|
|
45
|
+
get: (scope, triggerName) => this.client.request(() => ApplicationsService.applicationTriggerGet(scope.organizationId, scope.authConfigName, triggerName)),
|
|
46
46
|
};
|
|
47
47
|
accounts = {
|
|
48
48
|
list: (organizationId, options = {}) => this.client.request(() => IntegrationsService.integrationAccountList(organizationId, options.applicationId, options.limit ?? 100, options.pageToken)),
|
|
@@ -63,10 +63,10 @@ export class IntegrationsNamespace {
|
|
|
63
63
|
}),
|
|
64
64
|
};
|
|
65
65
|
authConfigs = {
|
|
66
|
-
list: (organizationId, options = {}) => this.client.request(() => IntegrationsService.
|
|
67
|
-
create: (organizationId, payload) => this.client.request(() => IntegrationsService.
|
|
68
|
-
get: (organizationId, authConfigName) => this.client.request(() => IntegrationsService.
|
|
69
|
-
delete: (organizationId, authConfigName) => this.client.request(() => IntegrationsService.
|
|
66
|
+
list: (organizationId, options = {}) => this.client.request(() => IntegrationsService.integrationAuthConfigList(organizationId, options.limit ?? 100, options.pageToken)),
|
|
67
|
+
create: (organizationId, payload) => this.client.request(() => IntegrationsService.integrationAuthConfigCreate(organizationId, payload)),
|
|
68
|
+
get: (organizationId, authConfigName) => this.client.request(() => IntegrationsService.integrationAuthConfigGet(organizationId, authConfigName)),
|
|
69
|
+
delete: (organizationId, authConfigName) => this.client.request(() => IntegrationsService.integrationAuthConfigDelete(organizationId, authConfigName)),
|
|
70
70
|
};
|
|
71
71
|
async enableApp(organizationId, applicationId, options = {}) {
|
|
72
72
|
const configs = await this.authConfigs.list(organizationId, { limit: 100 });
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { GeneratedClientAdapter } from "../generated.js";
|
|
2
2
|
import type { CreateSurfaceRequest } from "../openapi_client/models/CreateSurfaceRequest.js";
|
|
3
|
+
import type { UpdateSurfaceChannelsRequest } from "../openapi_client/models/UpdateSurfaceChannelsRequest.js";
|
|
3
4
|
import type { UpdateSurfaceRequest } from "../openapi_client/models/UpdateSurfaceRequest.js";
|
|
5
|
+
import type { UpsertSurfaceRequest } from "../openapi_client/models/UpsertSurfaceRequest.js";
|
|
4
6
|
export declare class PodSurfacesNamespace {
|
|
5
7
|
private readonly client;
|
|
6
8
|
constructor(client: GeneratedClientAdapter);
|
|
@@ -10,7 +12,10 @@ export declare class PodSurfacesNamespace {
|
|
|
10
12
|
cursor?: string;
|
|
11
13
|
}): Promise<import("../types.js").AgentSurfaceListResponse>;
|
|
12
14
|
create(podId: string, payload: CreateSurfaceRequest): Promise<any>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
upsert(podId: string, platform: string, payload: UpsertSurfaceRequest): Promise<any>;
|
|
16
|
+
get(podId: string, surfaceRef: string): Promise<any>;
|
|
17
|
+
updateConfig(podId: string, surfaceRef: string, payload: UpdateSurfaceRequest): Promise<any>;
|
|
18
|
+
updateChannels(podId: string, surfaceRef: string, payload: UpdateSurfaceChannelsRequest): Promise<any>;
|
|
19
|
+
setupStatus(podId: string, surfaceRef: string): Promise<import("../types.js").SurfaceSetupStatusResponse>;
|
|
20
|
+
toggle(podId: string, surfaceRef: string, isEnabled: boolean): Promise<any>;
|
|
16
21
|
}
|
|
@@ -10,13 +10,22 @@ export class PodSurfacesNamespace {
|
|
|
10
10
|
create(podId, payload) {
|
|
11
11
|
return this.client.request(() => AgentSurfacesService.agentSurfaceCreate(podId, payload));
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
return this.client.request(() => AgentSurfacesService.
|
|
13
|
+
upsert(podId, platform, payload) {
|
|
14
|
+
return this.client.request(() => AgentSurfacesService.agentSurfaceUpsertByPlatform(podId, platform, payload));
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
return this.client.request(() => AgentSurfacesService.
|
|
16
|
+
get(podId, surfaceRef) {
|
|
17
|
+
return this.client.request(() => AgentSurfacesService.agentSurfaceGet(podId, surfaceRef));
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
return this.client.request(() => AgentSurfacesService.
|
|
19
|
+
updateConfig(podId, surfaceRef, payload) {
|
|
20
|
+
return this.client.request(() => AgentSurfacesService.agentSurfaceUpdate(podId, surfaceRef, payload));
|
|
21
|
+
}
|
|
22
|
+
updateChannels(podId, surfaceRef, payload) {
|
|
23
|
+
return this.client.request(() => AgentSurfacesService.agentSurfaceUpdateChannels(podId, surfaceRef, payload));
|
|
24
|
+
}
|
|
25
|
+
setupStatus(podId, surfaceRef) {
|
|
26
|
+
return this.client.request(() => AgentSurfacesService.agentSurfaceSetupStatus(podId, surfaceRef));
|
|
27
|
+
}
|
|
28
|
+
toggle(podId, surfaceRef, isEnabled) {
|
|
29
|
+
return this.client.request(() => AgentSurfacesService.agentSurfaceToggle(podId, surfaceRef, { is_enabled: isEnabled }));
|
|
21
30
|
}
|
|
22
31
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { GeneratedClientAdapter } from "../generated.js";
|
|
2
2
|
import type { HttpClient } from "../http.js";
|
|
3
3
|
import type { PodCreateRequest } from "../openapi_client/models/PodCreateRequest.js";
|
|
4
|
-
import type { PodListResponse } from "../openapi_client/models/PodListResponse.js";
|
|
5
4
|
import type { PodUpdateRequest } from "../openapi_client/models/PodUpdateRequest.js";
|
|
6
5
|
export declare class PodsNamespace {
|
|
7
6
|
private readonly client;
|
|
@@ -12,12 +11,12 @@ export declare class PodsNamespace {
|
|
|
12
11
|
limit?: number;
|
|
13
12
|
pageToken?: string;
|
|
14
13
|
cursor?: string;
|
|
15
|
-
}): Promise<PodListResponse>;
|
|
14
|
+
}): Promise<import("../types.js").PodListResponse>;
|
|
16
15
|
listByOrganization(organizationId: string, options?: {
|
|
17
16
|
limit?: number;
|
|
18
17
|
pageToken?: string;
|
|
19
18
|
cursor?: string;
|
|
20
|
-
}): Promise<PodListResponse>;
|
|
19
|
+
}): Promise<import("../types.js").PodListResponse>;
|
|
21
20
|
get(podId: string): Promise<import("../types.js").PodResponse>;
|
|
22
21
|
create(payload: PodCreateRequest): Promise<import("../types.js").PodResponse>;
|
|
23
22
|
update(podId: string, payload: PodUpdateRequest): Promise<import("../types.js").PodResponse>;
|
package/dist/namespaces/pods.js
CHANGED
|
@@ -13,12 +13,7 @@ export class PodsNamespace {
|
|
|
13
13
|
pageToken: options.pageToken ?? options.cursor,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
params: {
|
|
18
|
-
limit: options.limit ?? 100,
|
|
19
|
-
page_token: options.pageToken ?? options.cursor,
|
|
20
|
-
},
|
|
21
|
-
});
|
|
16
|
+
throw new Error("organizationId is required for pods.list(). Use listByOrganization(organizationId).");
|
|
22
17
|
}
|
|
23
18
|
listByOrganization(organizationId, options = {}) {
|
|
24
19
|
return this.client.request(() => PodsService.podList(organizationId, options.limit ?? 100, options.pageToken ?? options.cursor));
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { GeneratedClientAdapter } from "../generated.js";
|
|
2
|
-
import type { HttpClient } from "../http.js";
|
|
3
|
-
import type { RecordListResponse } from "../openapi_client/models/RecordListResponse.js";
|
|
4
2
|
import type { ListRecordsOptions, RecordFilter, RecordSort } from "../types.js";
|
|
5
3
|
export interface RecordQueryRequest {
|
|
6
4
|
filters?: RecordFilter[];
|
|
@@ -8,24 +6,20 @@ export interface RecordQueryRequest {
|
|
|
8
6
|
limit?: number;
|
|
9
7
|
page_token?: string;
|
|
10
8
|
offset?: number;
|
|
11
|
-
sort_by?: string;
|
|
12
|
-
order?: "asc" | "desc" | string;
|
|
13
9
|
}
|
|
14
10
|
export declare class RecordsNamespace {
|
|
15
11
|
private readonly client;
|
|
16
|
-
private readonly http;
|
|
17
12
|
private readonly podId;
|
|
18
|
-
constructor(client: GeneratedClientAdapter,
|
|
19
|
-
list(table: string, options?: ListRecordsOptions): Promise<RecordListResponse>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
query(table: string, payload: RecordQueryRequest): Promise<RecordListResponse>;
|
|
13
|
+
constructor(client: GeneratedClientAdapter, podId: () => string);
|
|
14
|
+
list(table: string, options?: ListRecordsOptions): Promise<import("../types.js").RecordListResponse>;
|
|
15
|
+
create(table: string, data: Record<string, unknown>): Promise<Record<string, any>>;
|
|
16
|
+
get(table: string, recordId: string): Promise<Record<string, any>>;
|
|
17
|
+
update(table: string, recordId: string, data: Record<string, unknown>): Promise<Record<string, any>>;
|
|
18
|
+
delete(table: string, recordId: string): Promise<void>;
|
|
19
|
+
query(table: string, payload: RecordQueryRequest): Promise<import("../types.js").RecordListResponse>;
|
|
26
20
|
readonly bulk: {
|
|
27
|
-
create: (table: string, records: Record<string, unknown>[]) => Promise<import("../types.js").
|
|
28
|
-
update: (table: string, records: Record<string, unknown>[]) => Promise<import("../types.js").
|
|
29
|
-
delete: (table: string, recordIds: Array<string | number>) => Promise<import("../types.js").
|
|
21
|
+
create: (table: string, records: Record<string, unknown>[]) => Promise<import("../types.js").DatastoreCountResponse>;
|
|
22
|
+
update: (table: string, records: Record<string, unknown>[]) => Promise<import("../types.js").DatastoreCountResponse>;
|
|
23
|
+
delete: (table: string, recordIds: Array<string | number>) => Promise<import("../types.js").DatastoreCountResponse>;
|
|
30
24
|
};
|
|
31
25
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { RecordsService } from "../openapi_client/services/RecordsService.js";
|
|
2
|
-
function getRecordsPath(podId, table) {
|
|
3
|
-
return `/pods/${encodeURIComponent(podId)}/datastore/tables/${encodeURIComponent(table)}/records`;
|
|
4
|
-
}
|
|
5
2
|
function serializeFilters(filters) {
|
|
6
3
|
if (!filters || filters.length === 0) {
|
|
7
4
|
return undefined;
|
|
@@ -16,40 +13,14 @@ function serializeSort(sort) {
|
|
|
16
13
|
}
|
|
17
14
|
export class RecordsNamespace {
|
|
18
15
|
client;
|
|
19
|
-
http;
|
|
20
16
|
podId;
|
|
21
|
-
constructor(client,
|
|
17
|
+
constructor(client, podId) {
|
|
22
18
|
this.client = client;
|
|
23
|
-
this.http = http;
|
|
24
19
|
this.podId = podId;
|
|
25
20
|
}
|
|
26
21
|
list(table, options = {}) {
|
|
27
|
-
const { filters, sort, limit, pageToken, offset
|
|
28
|
-
|
|
29
|
-
return this.client.request(() => RecordsService.recordList(this.podId(), table, limit ?? 20, offset, sortBy ?? undefined, order ?? "asc", serializeFilters(filters), serializeSort(sort), pageToken));
|
|
30
|
-
}
|
|
31
|
-
const hasCustomParams = typeof offset === "number" ||
|
|
32
|
-
typeof sortBy === "string" ||
|
|
33
|
-
typeof order === "string" ||
|
|
34
|
-
!!params;
|
|
35
|
-
if (hasCustomParams) {
|
|
36
|
-
return this.http.request("GET", getRecordsPath(this.podId(), table), {
|
|
37
|
-
params: {
|
|
38
|
-
limit: limit ?? 20,
|
|
39
|
-
page_token: pageToken,
|
|
40
|
-
offset,
|
|
41
|
-
sort_by: sortBy,
|
|
42
|
-
order,
|
|
43
|
-
...(params ?? {}),
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return this.client.request(() => RecordsService.recordList(this.podId(), table, limit ?? 20, offset, sortBy ?? undefined, order ?? "asc", undefined, undefined, pageToken));
|
|
48
|
-
}
|
|
49
|
-
listWithParams(table, params) {
|
|
50
|
-
return this.http.request("GET", getRecordsPath(this.podId(), table), {
|
|
51
|
-
params,
|
|
52
|
-
});
|
|
22
|
+
const { filters, sort, limit, pageToken, offset } = options;
|
|
23
|
+
return this.client.request(() => RecordsService.recordList(this.podId(), table, limit ?? 20, offset, serializeFilters(filters), serializeSort(sort), pageToken));
|
|
53
24
|
}
|
|
54
25
|
create(table, data) {
|
|
55
26
|
return this.client.request(() => RecordsService.recordCreate(this.podId(), table, { data }));
|
|
@@ -64,7 +35,7 @@ export class RecordsNamespace {
|
|
|
64
35
|
return this.client.request(() => RecordsService.recordDelete(this.podId(), table, recordId));
|
|
65
36
|
}
|
|
66
37
|
query(table, payload) {
|
|
67
|
-
return this.client.request(() => RecordsService.recordList(this.podId(), table, payload.limit ?? 20, payload.offset,
|
|
38
|
+
return this.client.request(() => RecordsService.recordList(this.podId(), table, payload.limit ?? 20, payload.offset, serializeFilters(payload.filters), serializeSort(payload.sort), payload.page_token));
|
|
68
39
|
}
|
|
69
40
|
bulk = {
|
|
70
41
|
create: (table, records) => {
|
|
@@ -5,7 +5,7 @@ export declare class ResourceAccessNamespace {
|
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly podId;
|
|
7
7
|
constructor(client: GeneratedClientAdapter, podId: () => string);
|
|
8
|
-
get(resourceType: ResourceType | string,
|
|
9
|
-
replaceGrant(resourceType: ResourceType | string,
|
|
10
|
-
deleteGrant(resourceType: ResourceType | string,
|
|
8
|
+
get(resourceType: ResourceType | string, resourceName: string, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
|
|
9
|
+
replaceGrant(resourceType: ResourceType | string, resourceName: string, granteeType: string, granteeId: string, payload: ResourceAccessGrantRequest, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
|
|
10
|
+
deleteGrant(resourceType: ResourceType | string, resourceName: string, granteeType: string, granteeId: string, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
|
|
11
11
|
}
|
|
@@ -6,13 +6,13 @@ export class ResourceAccessNamespace {
|
|
|
6
6
|
this.client = client;
|
|
7
7
|
this.podId = podId;
|
|
8
8
|
}
|
|
9
|
-
get(resourceType,
|
|
10
|
-
return this.client.request(() => PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType,
|
|
9
|
+
get(resourceType, resourceName, podId) {
|
|
10
|
+
return this.client.request(() => PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceName));
|
|
11
11
|
}
|
|
12
|
-
replaceGrant(resourceType,
|
|
13
|
-
return this.client.request(() => PodResourceAccessService.podResourceAccessGrantReplace(podId ?? this.podId(), resourceType,
|
|
12
|
+
replaceGrant(resourceType, resourceName, granteeType, granteeId, payload, podId) {
|
|
13
|
+
return this.client.request(() => PodResourceAccessService.podResourceAccessGrantReplace(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId, payload));
|
|
14
14
|
}
|
|
15
|
-
deleteGrant(resourceType,
|
|
16
|
-
return this.client.request(() => PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType,
|
|
15
|
+
deleteGrant(resourceType, resourceName, granteeType, granteeId, podId) {
|
|
16
|
+
return this.client.request(() => PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -7,7 +7,7 @@ export class SchedulesNamespace {
|
|
|
7
7
|
this.podId = podId;
|
|
8
8
|
}
|
|
9
9
|
list(options = {}) {
|
|
10
|
-
return this.client.request(() => SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.limit ?? 100, options.pageToken));
|
|
10
|
+
return this.client.request(() => SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.name, options.limit ?? 100, options.pageToken));
|
|
11
11
|
}
|
|
12
12
|
create(payload) {
|
|
13
13
|
return this.client.request(() => SchedulesService.scheduleCreate(this.podId(), payload));
|
|
@@ -18,10 +18,10 @@ export declare class TablesNamespace {
|
|
|
18
18
|
create(payload: CreateTableInput): Promise<import("../types.js").TableDetailResponse>;
|
|
19
19
|
get(tableName: string): Promise<import("../types.js").TableDetailResponse>;
|
|
20
20
|
update(tableName: string, payload: UpdateTableRequest): Promise<import("../types.js").TableDetailResponse>;
|
|
21
|
-
delete(tableName: string): Promise<
|
|
21
|
+
delete(tableName: string): Promise<void>;
|
|
22
22
|
readonly columns: {
|
|
23
23
|
add: (tableName: string, request: AddColumnRequest | AddColumnRequest["column"]) => Promise<import("../types.js").TableDetailResponse>;
|
|
24
|
-
remove: (tableName: string, columnName: string) => Promise<
|
|
24
|
+
remove: (tableName: string, columnName: string) => Promise<void>;
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { GeneratedClientAdapter } from "../generated.js";
|
|
2
|
-
import {
|
|
2
|
+
import type { HttpClient } from "../http.js";
|
|
3
3
|
import type { WorkflowCreateRequest } from "../openapi_client/models/WorkflowCreateRequest.js";
|
|
4
4
|
import type { WorkflowGraphUpdateRequest } from "../openapi_client/models/WorkflowGraphUpdateRequest.js";
|
|
5
|
+
import type { WorkflowRunFormSubmitRequest } from "../openapi_client/models/WorkflowRunFormSubmitRequest.js";
|
|
5
6
|
import type { WorkflowUpdateRequest } from "../openapi_client/models/WorkflowUpdateRequest.js";
|
|
6
|
-
import type { WorkflowRunInputs } from "../types.js";
|
|
7
7
|
export declare class WorkflowsNamespace {
|
|
8
8
|
private readonly client;
|
|
9
9
|
private readonly http;
|
|
@@ -21,9 +21,13 @@ export declare class WorkflowsNamespace {
|
|
|
21
21
|
readonly graph: {
|
|
22
22
|
update: (workflowName: string, graph: WorkflowGraphUpdateRequest) => Promise<import("../types.js").FlowDetailResponse>;
|
|
23
23
|
};
|
|
24
|
-
private postRunAction;
|
|
25
24
|
readonly runs: {
|
|
26
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Create a run. Runs take no inputs: when the workflow starts with a
|
|
27
|
+
* form, the returned run is WAITING with `active_wait` describing the
|
|
28
|
+
* form to render and submit via `runs.submitForm`.
|
|
29
|
+
*/
|
|
30
|
+
create: (workflowName: string) => Promise<import("../types.js").WorkflowRunResponse>;
|
|
27
31
|
list: (workflowName: string, options?: {
|
|
28
32
|
limit?: number;
|
|
29
33
|
pageToken?: string;
|
|
@@ -32,10 +36,10 @@ export declare class WorkflowsNamespace {
|
|
|
32
36
|
limit?: number;
|
|
33
37
|
pageToken?: string;
|
|
34
38
|
}) => Promise<import("../types.js").WorkflowRunWaitAssignmentListResponse>;
|
|
35
|
-
get: (runId: string, podId?: string) => Promise<import("../types.js").
|
|
36
|
-
|
|
39
|
+
get: (runId: string, podId?: string) => Promise<import("../types.js").WorkflowRunResponse>;
|
|
40
|
+
/** Submit the form a run is waiting on. node_id must match active_wait.node_id. */
|
|
41
|
+
submitForm: (runId: string, payload: WorkflowRunFormSubmitRequest, podId?: string) => Promise<import("../types.js").WorkflowRunResponse>;
|
|
37
42
|
visualize: (runId: string, podId?: string) => Promise<string>;
|
|
38
|
-
cancel: (runId: string, podId?: string) => Promise<
|
|
39
|
-
retry: (runId: string, podId?: string) => Promise<Record<string, unknown>>;
|
|
43
|
+
cancel: (runId: string, podId?: string) => Promise<import("../types.js").WorkflowRunResponse>;
|
|
40
44
|
};
|
|
41
45
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ApiError } from "../http.js";
|
|
2
1
|
import { WorkflowsService } from "../openapi_client/services/WorkflowsService.js";
|
|
3
2
|
export class WorkflowsNamespace {
|
|
4
3
|
client;
|
|
@@ -30,27 +29,19 @@ export class WorkflowsNamespace {
|
|
|
30
29
|
graph = {
|
|
31
30
|
update: (workflowName, graph) => this.client.request(() => WorkflowsService.workflowGraphUpdate(this.podId(), workflowName, graph)),
|
|
32
31
|
};
|
|
33
|
-
async postRunAction(runId, action, podId) {
|
|
34
|
-
const encodedPodId = encodeURIComponent(podId);
|
|
35
|
-
const encodedRunId = encodeURIComponent(runId);
|
|
36
|
-
try {
|
|
37
|
-
return await this.http.request("POST", `/pods/${encodedPodId}/workflow-runs/${encodedRunId}/${action}`, { body: {} });
|
|
38
|
-
}
|
|
39
|
-
catch (error) {
|
|
40
|
-
if (error instanceof ApiError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
41
|
-
return this.http.request("POST", `/pods/${encodedPodId}/flow-runs/${encodedRunId}/${action}`, { body: {} });
|
|
42
|
-
}
|
|
43
|
-
throw error;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
32
|
runs = {
|
|
47
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Create a run. Runs take no inputs: when the workflow starts with a
|
|
35
|
+
* form, the returned run is WAITING with `active_wait` describing the
|
|
36
|
+
* form to render and submit via `runs.submitForm`.
|
|
37
|
+
*/
|
|
38
|
+
create: (workflowName) => this.client.request(() => WorkflowsService.workflowRunCreate(this.podId(), workflowName)),
|
|
48
39
|
list: (workflowName, options = {}) => this.client.request(() => WorkflowsService.workflowRunList(this.podId(), workflowName, options.limit ?? 100, options.pageToken)),
|
|
49
40
|
waitingAssignedToMe: (options = {}) => this.client.request(() => WorkflowsService.workflowRunWaitingAssignedToMe(this.podId(), options.limit ?? 100, options.pageToken)),
|
|
50
41
|
get: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunGet(podId, runId)),
|
|
51
|
-
|
|
42
|
+
/** Submit the form a run is waiting on. node_id must match active_wait.node_id. */
|
|
43
|
+
submitForm: (runId, payload, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunFormSubmit(podId, runId, payload)),
|
|
52
44
|
visualize: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunVisualize(podId, runId)),
|
|
53
|
-
cancel: (runId, podId = this.podId()) => this.
|
|
54
|
-
retry: (runId, podId = this.podId()) => this.postRunAction(runId, "retry", podId),
|
|
45
|
+
cancel: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunCancel(podId, runId)),
|
|
55
46
|
};
|
|
56
47
|
}
|