lemma-sdk 0.2.43 → 0.2.45
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 +2 -5
- package/dist/assistant-events.d.ts +2 -0
- package/dist/assistant-events.js +50 -3
- package/dist/browser/lemma-client.js +1333 -435
- package/dist/client.d.ts +8 -0
- package/dist/client.js +13 -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 +13004 -0
- package/dist/hey_client/types.gen.js +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/namespaces/agent-runtime.d.ts +28 -0
- package/dist/namespaces/agent-runtime.js +34 -0
- package/dist/namespaces/agents.d.ts +8 -3
- package/dist/namespaces/agents.js +4 -0
- package/dist/namespaces/conversations.d.ts +35 -7
- package/dist/namespaces/conversations.js +103 -22
- package/dist/namespaces/desks.d.ts +3 -3
- package/dist/namespaces/files.d.ts +17 -28
- package/dist/namespaces/files.js +10 -11
- package/dist/namespaces/functions.d.ts +8 -3
- package/dist/namespaces/functions.js +4 -0
- package/dist/namespaces/integrations.d.ts +54 -12
- package/dist/namespaces/integrations.js +52 -16
- package/dist/namespaces/pod-members.d.ts +1 -0
- package/dist/namespaces/pod-members.js +4 -1
- package/dist/namespaces/pod-permissions.d.ts +14 -0
- package/dist/namespaces/pod-permissions.js +18 -0
- package/dist/namespaces/pod-roles.d.ts +16 -0
- package/dist/namespaces/pod-roles.js +25 -0
- 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 +7 -7
- package/dist/namespaces/resource-access.d.ts +11 -0
- package/dist/namespaces/resource-access.js +18 -0
- package/dist/namespaces/schedules.d.ts +4 -3
- package/dist/namespaces/schedules.js +1 -1
- package/dist/namespaces/tables.d.ts +6 -6
- package/dist/namespaces/workflows.d.ts +16 -12
- package/dist/namespaces/workflows.js +9 -18
- package/dist/openapi_client/index.d.ts +90 -61
- package/dist/openapi_client/index.js +17 -12
- package/dist/openapi_client/models/AccountCreateSchema.d.ts +18 -0
- package/dist/openapi_client/models/AccountResponseSchema.d.ts +3 -0
- package/dist/openapi_client/models/AgentActionResponse.d.ts +20 -0
- package/dist/openapi_client/models/AgentDetailResponse.d.ts +22 -0
- package/dist/openapi_client/models/AgentHarnessInfo.d.ts +11 -0
- package/dist/openapi_client/models/AgentHarnessListResponse.d.ts +4 -0
- package/dist/openapi_client/models/AgentListResponse.d.ts +2 -2
- 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/AgentPermissionsReplaceRequest.d.ts +4 -0
- package/dist/openapi_client/models/AgentPermissionsResponse.d.ts +6 -0
- package/dist/openapi_client/models/AgentResourcePermissionRequest.d.ts +6 -0
- package/dist/openapi_client/models/AgentResourcePermissionResponse.d.ts +6 -0
- package/dist/openapi_client/models/AgentRunApprovalDecision.d.ts +8 -0
- package/dist/openapi_client/models/AgentRunApprovalDecision.js +13 -0
- package/dist/openapi_client/models/AgentRuntimeConfig.d.ts +7 -0
- package/dist/openapi_client/models/AgentRuntimeProfileListResponse.d.ts +6 -0
- package/dist/openapi_client/models/AgentRuntimeProfileResponse.d.ts +28 -0
- package/dist/openapi_client/models/AgentSurfaceResponse.d.ts +8 -12
- package/dist/openapi_client/models/AgentSurfaceStatus.d.ts +3 -1
- package/dist/openapi_client/models/AgentSurfaceStatus.js +2 -0
- package/dist/openapi_client/models/ApplicationDetailResponseSchema.d.ts +3 -3
- package/dist/openapi_client/models/ApplicationResponseSchema.d.ts +3 -3
- package/dist/openapi_client/models/ApplicationSkillResponse.d.ts +6 -0
- package/dist/openapi_client/models/AuthConfigCreateSchema.d.ts +7 -0
- package/dist/openapi_client/models/AuthConfigListResponseSchema.d.ts +6 -0
- package/dist/openapi_client/models/AuthConfigResponseSchema.d.ts +13 -0
- package/dist/openapi_client/models/AuthScheme.d.ts +5 -0
- package/dist/openapi_client/models/AuthScheme.js +10 -0
- package/dist/openapi_client/models/ComposioProviderCapabilityResponseSchema.d.ts +9 -0
- package/dist/openapi_client/models/ConnectRequestInitiateSchema.d.ts +5 -1
- package/dist/openapi_client/models/ConnectRequestResponseSchema.d.ts +2 -0
- package/dist/openapi_client/models/ConnectedAccountSummary.d.ts +7 -0
- package/dist/openapi_client/models/ConversationResponse.d.ts +2 -2
- package/dist/openapi_client/models/ConvertedArtifactResponse.d.ts +1 -0
- package/dist/openapi_client/models/ConvertedFileResponse.d.ts +4 -0
- package/dist/openapi_client/models/ConvertedPageResponse.d.ts +8 -0
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +4 -12
- package/dist/openapi_client/models/CreateAnthropicCompatibleRuntimeProfileRequest.d.ts +11 -0
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +2 -2
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -1
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +1 -1
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -7
- package/dist/openapi_client/models/CreateOpenAICompatibleRuntimeProfileRequest.d.ts +11 -0
- package/dist/openapi_client/models/CreateScheduleRequest.d.ts +17 -1
- package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +6 -15
- package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -1
- package/dist/openapi_client/models/CreateUserDaemonRuntimeProfileRequest.d.ts +11 -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/DatastoreFileUploadRequest.d.ts +1 -1
- 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/DeskBundleUploadResponse.d.ts +2 -2
- package/dist/openapi_client/models/{DeskResponse.d.ts → DeskDetailResponse.d.ts} +2 -2
- package/dist/openapi_client/models/DeskListResponse.d.ts +2 -2
- package/dist/openapi_client/models/EndNode.d.ts +1 -1
- package/dist/openapi_client/models/EventFlowStartInput.d.ts +0 -8
- package/dist/openapi_client/models/EventFlowStartOutput.d.ts +0 -8
- package/dist/openapi_client/models/ExpressionInputBinding.d.ts +6 -2
- package/dist/openapi_client/models/{FileResponse.d.ts → FileDetailResponse.d.ts} +2 -2
- package/dist/openapi_client/models/FileListResponse.d.ts +3 -2
- package/dist/openapi_client/models/FileSearchResponse.d.ts +2 -2
- package/dist/openapi_client/models/{FlowResponse.d.ts → FlowDetailResponse.d.ts} +2 -2
- package/dist/openapi_client/models/FlowRunStatus.d.ts +4 -1
- package/dist/openapi_client/models/FlowRunStatus.js +4 -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/{FunctionResponse.d.ts → FunctionActionResponse.d.ts} +3 -10
- package/dist/openapi_client/models/FunctionDetailResponse.d.ts +34 -0
- package/dist/openapi_client/models/FunctionListResponse.d.ts +2 -2
- package/dist/openapi_client/models/FunctionNode.d.ts +2 -1
- package/dist/openapi_client/models/FunctionPermissionsReplaceRequest.d.ts +4 -0
- package/dist/openapi_client/models/FunctionPermissionsResponse.d.ts +6 -0
- package/dist/openapi_client/models/FunctionResourcePermissionRequest.d.ts +6 -0
- package/dist/openapi_client/models/FunctionResourcePermissionResponse.d.ts +6 -0
- package/dist/openapi_client/models/FunctionRunListResponse.d.ts +2 -2
- package/dist/openapi_client/models/FunctionRunSummaryResponse.d.ts +13 -0
- package/dist/openapi_client/models/HarnessKind.d.ts +4 -2
- package/dist/openapi_client/models/HarnessKind.js +4 -2
- 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/LemmaProviderCapabilityResponseSchema.d.ts +12 -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/OAuth2DefaultsResponseSchema.d.ts +10 -0
- package/dist/openapi_client/models/OperationSummary.d.ts +4 -0
- package/dist/openapi_client/models/PodConfig.d.ts +6 -0
- package/dist/openapi_client/models/PodCreateRequest.d.ts +2 -0
- package/dist/openapi_client/models/PodEffectivePermissionsResponse.d.ts +4 -0
- 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/PodPermissionCatalogResponse.d.ts +4 -0
- package/dist/openapi_client/models/PodPermissionResponse.d.ts +7 -0
- package/dist/openapi_client/models/PodResponse.d.ts +2 -0
- package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +2 -0
- package/dist/openapi_client/models/PodRolePermissionsReplaceRequest.d.ts +4 -0
- package/dist/openapi_client/models/PodRolePermissionsResponse.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleResourcePermissionRequest.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleResourcePermissionResponse.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleResponse.d.ts +3 -0
- package/dist/openapi_client/models/PodUpdateRequest.d.ts +2 -0
- package/dist/openapi_client/models/ResolveUserApprovalRequest.d.ts +5 -0
- package/dist/openapi_client/models/ResourceAccessGrantRequest.d.ts +3 -0
- package/dist/openapi_client/models/ResourceAccessGrantResponse.d.ts +12 -0
- package/dist/openapi_client/models/ResourceAccessResponse.d.ts +7 -0
- package/dist/openapi_client/models/ResourceType.d.ts +19 -0
- package/dist/openapi_client/models/ResourceType.js +24 -0
- package/dist/openapi_client/models/ResourceVisibility.d.ts +6 -0
- package/dist/openapi_client/models/ResourceVisibility.js +11 -0
- package/dist/openapi_client/models/RuntimeModelCapability.d.ts +8 -0
- package/dist/openapi_client/models/RuntimeModelCapability.js +13 -0
- package/dist/openapi_client/models/RuntimeModelCatalogEntry.d.ts +9 -0
- package/dist/openapi_client/models/RuntimeModelCatalogEntry.js +1 -0
- package/dist/openapi_client/models/RuntimeProfileKind.d.ts +4 -0
- package/dist/openapi_client/models/RuntimeProfileKind.js +9 -0
- package/dist/openapi_client/models/RuntimeProfileProtocol.d.ts +9 -0
- package/dist/openapi_client/models/RuntimeProfileProtocol.js +14 -0
- package/dist/openapi_client/models/RuntimeProfileScope.d.ts +5 -0
- package/dist/openapi_client/models/RuntimeProfileScope.js +10 -0
- package/dist/openapi_client/models/RuntimeProfileStatus.d.ts +5 -0
- package/dist/openapi_client/models/RuntimeProfileStatus.js +10 -0
- package/dist/openapi_client/models/{ScheduleResponse.d.ts → ScheduleDetailResponse.d.ts} +9 -3
- package/dist/openapi_client/models/ScheduleDetailResponse.js +1 -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/ScheduleListResponse.d.ts +2 -2
- package/dist/openapi_client/models/StepRecordResponse.d.ts +10 -0
- package/dist/openapi_client/models/StepRecordResponse.js +1 -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 +7 -0
- package/dist/openapi_client/models/SurfaceBehaviorConfigInput.js +1 -0
- package/dist/openapi_client/models/SurfaceChannelRouteInput.d.ts +6 -0
- package/dist/openapi_client/models/SurfaceChannelRouteInput.js +1 -0
- package/dist/openapi_client/models/SurfaceChannelRouteResponse.d.ts +6 -0
- package/dist/openapi_client/models/SurfaceChannelRouteResponse.js +1 -0
- package/dist/openapi_client/models/SurfaceConfigResponse.d.ts +10 -0
- package/dist/openapi_client/models/SurfaceConfigResponse.js +1 -0
- package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +2 -2
- package/dist/openapi_client/models/SurfaceCredentialMode.js +2 -2
- package/dist/openapi_client/models/SurfaceIdentityConfigInput.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceIdentityConfigInput.js +1 -0
- package/dist/openapi_client/models/SurfaceIdentityConfigResponse.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceIdentityConfigResponse.js +1 -0
- package/dist/openapi_client/models/SurfaceSetupMode.d.ts +2 -3
- package/dist/openapi_client/models/SurfaceSetupMode.js +1 -2
- package/dist/openapi_client/models/SurfaceSetupStatusResponse.d.ts +10 -0
- package/dist/openapi_client/models/SurfaceSetupStatusResponse.js +1 -0
- package/dist/openapi_client/models/{TableResponse.d.ts → TableDetailResponse.d.ts} +3 -3
- package/dist/openapi_client/models/TableDetailResponse.js +1 -0
- package/dist/openapi_client/models/TableListResponse.d.ts +4 -2
- package/dist/openapi_client/models/ToggleSurfaceRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +4 -12
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -2
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +0 -1
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -6
- package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +2 -1
- package/dist/openapi_client/models/UpdateSurfaceChannelsRequest.d.ts +4 -0
- package/dist/openapi_client/models/UpdateSurfaceChannelsRequest.js +1 -0
- package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +5 -15
- package/dist/openapi_client/models/UpdateTableRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpsertSurfaceRequest.d.ts +9 -0
- package/dist/openapi_client/models/UpsertSurfaceRequest.js +1 -0
- package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +2 -3
- package/dist/openapi_client/models/UsageLimitsResponse.d.ts +1 -4
- package/dist/openapi_client/models/UsageListResponse.d.ts +0 -3
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +10 -14
- package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +1 -4
- package/dist/openapi_client/models/UsageStatsResponse.d.ts +0 -3
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +4 -6
- package/dist/openapi_client/models/UserApprovalListResponse.d.ts +4 -0
- package/dist/openapi_client/models/UserApprovalListResponse.js +1 -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/VerifyTokenResponse.d.ts +5 -0
- package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +18 -1
- package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
- package/dist/openapi_client/models/WorkflowRunFormSubmitRequest.d.ts +13 -0
- package/dist/openapi_client/models/WorkflowRunFormSubmitRequest.js +1 -0
- package/dist/openapi_client/models/WorkflowRunListResponse.d.ts +2 -2
- package/dist/openapi_client/models/WorkflowRunResponse.d.ts +28 -0
- package/dist/openapi_client/models/WorkflowRunResponse.js +1 -0
- package/dist/openapi_client/models/WorkflowRunSummaryResponse.d.ts +17 -0
- package/dist/openapi_client/models/WorkflowRunSummaryResponse.js +1 -0
- 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/WorkflowRunWaitResponse.js +1 -0
- package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +1 -2
- package/dist/openapi_client/models/WorkflowRunWaitType.js +0 -1
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +2 -1
- package/dist/openapi_client/models/WorkspaceAppAccessRequest.d.ts +3 -0
- package/dist/openapi_client/models/WorkspaceAppAccessRequest.js +1 -0
- package/dist/openapi_client/models/WorkspaceAppAccessResponse.d.ts +5 -0
- package/dist/openapi_client/models/WorkspaceAppAccessResponse.js +1 -0
- package/dist/openapi_client/models/WorkspaceMeApp.d.ts +5 -0
- package/dist/openapi_client/models/WorkspaceMeApp.js +1 -0
- package/dist/openapi_client/models/WorkspaceMeResponse.d.ts +9 -0
- package/dist/openapi_client/models/WorkspaceMeResponse.js +1 -0
- package/dist/openapi_client/models/WorkspaceMeSandbox.d.ts +7 -0
- package/dist/openapi_client/models/WorkspaceMeSandbox.js +1 -0
- package/dist/openapi_client/models/WorkspaceMeSession.d.ts +6 -0
- package/dist/openapi_client/models/WorkspaceMeSession.js +1 -0
- package/dist/openapi_client/models/update.d.ts +1 -1
- package/dist/openapi_client/services/AgentConversationsService.d.ts +28 -3
- package/dist/openapi_client/services/AgentConversationsService.js +54 -3
- package/dist/openapi_client/services/AgentRuntimeService.d.ts +30 -0
- package/dist/openapi_client/services/AgentRuntimeService.js +54 -0
- package/dist/openapi_client/services/AgentSurfacesIngressService.d.ts +15 -20
- package/dist/openapi_client/services/AgentSurfacesIngressService.js +23 -28
- package/dist/openapi_client/services/AgentSurfacesService.d.ts +41 -12
- package/dist/openapi_client/services/AgentSurfacesService.js +90 -24
- package/dist/openapi_client/services/AgentToolsService.d.ts +0 -10
- package/dist/openapi_client/services/AgentToolsService.js +0 -18
- package/dist/openapi_client/services/AgentsService.d.ts +31 -9
- package/dist/openapi_client/services/AgentsService.js +50 -5
- package/dist/openapi_client/services/ApplicationsService.d.ts +22 -8
- package/dist/openapi_client/services/ApplicationsService.js +47 -16
- package/dist/openapi_client/services/DesksService.d.ts +7 -7
- package/dist/openapi_client/services/DesksService.js +3 -3
- package/dist/openapi_client/services/FilesService.d.ts +20 -12
- package/dist/openapi_client/services/FilesService.js +29 -5
- package/dist/openapi_client/services/FunctionsService.d.ts +30 -8
- package/dist/openapi_client/services/FunctionsService.js +49 -4
- package/dist/openapi_client/services/IntegrationsService.d.ts +70 -11
- package/dist/openapi_client/services/IntegrationsService.js +159 -20
- package/dist/openapi_client/services/OrganizationsService.d.ts +8 -0
- package/dist/openapi_client/services/OrganizationsService.js +19 -0
- package/dist/openapi_client/services/PodMembersService.d.ts +0 -10
- package/dist/openapi_client/services/PodMembersService.js +0 -24
- package/dist/openapi_client/services/PodPermissionsService.d.ts +19 -0
- package/dist/openapi_client/services/PodPermissionsService.js +40 -0
- package/dist/openapi_client/services/PodResourceAccessService.d.ts +38 -0
- package/dist/openapi_client/services/PodResourceAccessService.js +81 -0
- package/dist/openapi_client/services/PodRolesService.d.ts +28 -0
- package/dist/openapi_client/services/PodRolesService.js +66 -0
- package/dist/openapi_client/services/RecordsService.d.ts +21 -22
- package/dist/openapi_client/services/RecordsService.js +13 -13
- package/dist/openapi_client/services/SchedulesService.d.ts +9 -8
- package/dist/openapi_client/services/SchedulesService.js +6 -4
- package/dist/openapi_client/services/TablesService.d.ts +13 -14
- package/dist/openapi_client/services/TablesService.js +6 -6
- package/dist/openapi_client/services/UsageService.d.ts +96 -0
- package/dist/openapi_client/services/UsageService.js +210 -0
- package/dist/openapi_client/services/WorkflowsService.d.ts +44 -35
- package/dist/openapi_client/services/WorkflowsService.js +61 -43
- package/dist/openapi_client/services/WorkspaceAppsService.d.ts +12 -0
- package/dist/openapi_client/services/WorkspaceAppsService.js +21 -0
- package/dist/openapi_client/services/WorkspaceService.d.ts +10 -0
- package/dist/openapi_client/services/WorkspaceService.js +15 -0
- package/dist/react/AuthGuard.d.ts +16 -2
- package/dist/react/AuthGuard.js +169 -130
- package/dist/react/index.d.ts +1 -1
- package/dist/react/useAddPodMember.js +1 -1
- package/dist/react/useAssistantController.d.ts +27 -3
- package/dist/react/useAssistantController.js +192 -70
- package/dist/react/useAssistantSession.d.ts +10 -6
- package/dist/react/useAssistantSession.js +146 -4
- package/dist/react/useBulkRecords.d.ts +5 -5
- package/dist/react/useBulkRecords.js +5 -5
- package/dist/react/useConversations.d.ts +1 -7
- package/dist/react/useConversations.js +4 -10
- 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/useFlowRunHistory.d.ts +4 -4
- package/dist/react/useFlowRunHistory.js +9 -4
- package/dist/react/useFlowSession.d.ts +5 -3
- package/dist/react/useFlowSession.js +24 -17
- package/dist/react/useFunctionRun.d.ts +2 -2
- package/dist/react/useFunctionRuns.d.ts +5 -5
- package/dist/react/useFunctionSession.d.ts +2 -2
- 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/useReverseRelatedRecords.js +1 -1
- 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.d.ts +2 -2
- package/dist/react/useWorkflowRun.js +1 -3
- package/dist/react/useWorkflowRuns.d.ts +5 -5
- package/dist/react/useWorkflowStart.d.ts +2 -2
- package/dist/react/useWorkflowStart.js +11 -26
- package/dist/react/utils.js +2 -0
- package/dist/types.d.ts +47 -10
- package/package.json +8 -3
- package/dist/openapi_client/models/AgentModelName.d.ts +0 -13
- package/dist/openapi_client/models/AgentModelName.js +0 -18
- package/dist/openapi_client/models/AgentResponse.d.ts +0 -29
- package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +0 -18
- package/dist/openapi_client/models/ApplicationMode.d.ts +0 -7
- package/dist/openapi_client/models/ApplicationMode.js +0 -12
- 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 -29
- package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +0 -10
- package/dist/openapi_client/models/BillingInvoiceStatus.js +0 -15
- package/dist/openapi_client/models/BillingScope.d.ts +0 -7
- package/dist/openapi_client/models/BillingScope.js +0 -12
- 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/FlowRunEntity.d.ts +0 -36
- package/dist/openapi_client/models/FunctionTableAccessEntry.d.ts +0 -5
- package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +0 -7
- package/dist/openapi_client/models/GmailSurfaceConfigInput.d.ts +0 -4
- package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +0 -7
- package/dist/openapi_client/models/OutlookSurfaceConfigInput.d.ts +0 -4
- package/dist/openapi_client/models/PlanListResponse.d.ts +0 -8
- package/dist/openapi_client/models/PlanResponse.d.ts +0 -17
- package/dist/openapi_client/models/RecentUsageResponse.d.ts +0 -9
- 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/SlackCredentialsInput.d.ts +0 -5
- package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +0 -10
- package/dist/openapi_client/models/SlackSurfaceConfigInput.d.ts +0 -6
- 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/StepExecution.d.ts +0 -13
- package/dist/openapi_client/models/SubscriptionResponse.d.ts +0 -22
- 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/SubscriptionWithPlanResponse.d.ts +0 -22
- package/dist/openapi_client/models/SurfaceRoutingScope.d.ts +0 -4
- package/dist/openapi_client/models/SurfaceRoutingScope.js +0 -9
- package/dist/openapi_client/models/SurfaceWebhookMode.d.ts +0 -4
- package/dist/openapi_client/models/SurfaceWebhookMode.js +0 -9
- package/dist/openapi_client/models/TableAccessEntry.d.ts +0 -8
- package/dist/openapi_client/models/TableAccessMode.d.ts +0 -7
- package/dist/openapi_client/models/TableAccessMode.js +0 -12
- package/dist/openapi_client/models/TeamsCredentialsInput.d.ts +0 -6
- package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +0 -9
- package/dist/openapi_client/models/TeamsSurfaceConfigInput.d.ts +0 -6
- package/dist/openapi_client/models/TelegramCredentialsInput.d.ts +0 -5
- package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +0 -6
- package/dist/openapi_client/models/TelegramSurfaceConfigInput.d.ts +0 -6
- package/dist/openapi_client/models/WebSearchAgentRequest.d.ts +0 -9
- package/dist/openapi_client/models/WebSearchAgentResponse.d.ts +0 -25
- package/dist/openapi_client/models/WhatsAppCredentialsInput.d.ts +0 -8
- package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +0 -6
- package/dist/openapi_client/models/WhatsAppSurfaceConfigInput.d.ts +0 -6
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +0 -116
- package/dist/openapi_client/services/BillingSubscriptionsService.js +0 -230
- package/dist/openapi_client/services/BillingUsageService.d.ts +0 -138
- package/dist/openapi_client/services/BillingUsageService.js +0 -302
- package/dist/openapi_client/services/BillingWebhooksService.d.ts +0 -12
- package/dist/openapi_client/services/BillingWebhooksService.js +0 -25
- /package/dist/openapi_client/models/{AgentResponse.js → AccountCreateSchema.js} +0 -0
- /package/dist/openapi_client/models/{ApplicationAccessConfig.js → AgentActionResponse.js} +0 -0
- /package/dist/openapi_client/models/{BillingHistoryResponse.js → AgentDetailResponse.js} +0 -0
- /package/dist/openapi_client/models/{BillingInvoiceResponse.js → AgentHarnessInfo.js} +0 -0
- /package/dist/openapi_client/models/{CancelSubscriptionResponse.js → AgentHarnessListResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateInvoicePaymentUrlRequest.js → AgentPermissionsReplaceRequest.js} +0 -0
- /package/dist/openapi_client/models/{CreateInvoicePaymentUrlResponse.js → AgentPermissionsResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreMessageResponse.js → AgentResourcePermissionRequest.js} +0 -0
- /package/dist/openapi_client/models/{DeskResponse.js → AgentResourcePermissionResponse.js} +0 -0
- /package/dist/openapi_client/models/{FileResponse.js → AgentRuntimeConfig.js} +0 -0
- /package/dist/openapi_client/models/{FlowResponse.js → AgentRuntimeProfileListResponse.js} +0 -0
- /package/dist/openapi_client/models/{FlowRunEntity.js → AgentRuntimeProfileResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionResponse.js → ApplicationSkillResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionTableAccessEntry.js → AuthConfigCreateSchema.js} +0 -0
- /package/dist/openapi_client/models/{GmailSurfaceConfig.js → AuthConfigListResponseSchema.js} +0 -0
- /package/dist/openapi_client/models/{GmailSurfaceConfigInput.js → AuthConfigResponseSchema.js} +0 -0
- /package/dist/openapi_client/models/{OutlookSurfaceConfig.js → ComposioProviderCapabilityResponseSchema.js} +0 -0
- /package/dist/openapi_client/models/{OutlookSurfaceConfigInput.js → ConnectedAccountSummary.js} +0 -0
- /package/dist/openapi_client/models/{PlanListResponse.js → ConvertedPageResponse.js} +0 -0
- /package/dist/openapi_client/models/{PlanResponse.js → CreateAnthropicCompatibleRuntimeProfileRequest.js} +0 -0
- /package/dist/openapi_client/models/{RecentUsageResponse.js → CreateOpenAICompatibleRuntimeProfileRequest.js} +0 -0
- /package/dist/openapi_client/models/{RecordResponse.js → CreateUserDaemonRuntimeProfileRequest.js} +0 -0
- /package/dist/openapi_client/models/{ScheduleResponse.js → DatastoreCountResponse.js} +0 -0
- /package/dist/openapi_client/models/{SeatInfoResponse.js → DeskDetailResponse.js} +0 -0
- /package/dist/openapi_client/models/{SlackCredentialsInput.js → FileDetailResponse.js} +0 -0
- /package/dist/openapi_client/models/{SlackSurfaceConfig.js → FlowDetailResponse.js} +0 -0
- /package/dist/openapi_client/models/{SlackSurfaceConfigInput.js → FunctionActionResponse.js} +0 -0
- /package/dist/openapi_client/models/{StackFrame.js → FunctionDetailResponse.js} +0 -0
- /package/dist/openapi_client/models/{StartSubscriptionRequest.js → FunctionPermissionsReplaceRequest.js} +0 -0
- /package/dist/openapi_client/models/{StartSubscriptionResponse.js → FunctionPermissionsResponse.js} +0 -0
- /package/dist/openapi_client/models/{StartTeamBillingRequest.js → FunctionResourcePermissionRequest.js} +0 -0
- /package/dist/openapi_client/models/{StepExecution.js → FunctionResourcePermissionResponse.js} +0 -0
- /package/dist/openapi_client/models/{SubscriptionResponse.js → FunctionRunSummaryResponse.js} +0 -0
- /package/dist/openapi_client/models/{SubscriptionStatusResponse.js → InstalledAppSummary.js} +0 -0
- /package/dist/openapi_client/models/{SubscriptionWithPlanResponse.js → IntegrationStatusResponse.js} +0 -0
- /package/dist/openapi_client/models/{TableAccessEntry.js → LemmaProviderCapabilityResponseSchema.js} +0 -0
- /package/dist/openapi_client/models/{TableResponse.js → OAuth2DefaultsResponseSchema.js} +0 -0
- /package/dist/openapi_client/models/{TeamsCredentialsInput.js → PodConfig.js} +0 -0
- /package/dist/openapi_client/models/{TeamsSurfaceConfig.js → PodEffectivePermissionsResponse.js} +0 -0
- /package/dist/openapi_client/models/{TeamsSurfaceConfigInput.js → PodPermissionCatalogResponse.js} +0 -0
- /package/dist/openapi_client/models/{TelegramCredentialsInput.js → PodPermissionResponse.js} +0 -0
- /package/dist/openapi_client/models/{TelegramSurfaceConfig.js → PodRolePermissionsReplaceRequest.js} +0 -0
- /package/dist/openapi_client/models/{TelegramSurfaceConfigInput.js → PodRolePermissionsResponse.js} +0 -0
- /package/dist/openapi_client/models/{WebSearchAgentRequest.js → PodRoleResourcePermissionRequest.js} +0 -0
- /package/dist/openapi_client/models/{WebSearchAgentResponse.js → PodRoleResourcePermissionResponse.js} +0 -0
- /package/dist/openapi_client/models/{WhatsAppCredentialsInput.js → ResolveUserApprovalRequest.js} +0 -0
- /package/dist/openapi_client/models/{WhatsAppSurfaceConfig.js → ResourceAccessGrantRequest.js} +0 -0
- /package/dist/openapi_client/models/{WhatsAppSurfaceConfigInput.js → ResourceAccessGrantResponse.js} +0 -0
- /package/dist/openapi_client/models/{WorkflowRunWaitEntity.js → ResourceAccessResponse.js} +0 -0
|
@@ -37,6 +37,7 @@ const auth_js_1 = require("./auth.js");
|
|
|
37
37
|
Object.defineProperty(exports, "AuthManager", { enumerable: true, get: function () { return auth_js_1.AuthManager; } });
|
|
38
38
|
const generated_js_1 = require("./generated.js");
|
|
39
39
|
const http_js_1 = require("./http.js");
|
|
40
|
+
const agent_runtime_js_1 = require("./namespaces/agent-runtime.js");
|
|
40
41
|
const agents_js_1 = require("./namespaces/agents.js");
|
|
41
42
|
const conversations_js_1 = require("./namespaces/conversations.js");
|
|
42
43
|
const desks_js_1 = require("./namespaces/desks.js");
|
|
@@ -46,10 +47,13 @@ const icons_js_1 = require("./namespaces/icons.js");
|
|
|
46
47
|
const integrations_js_1 = require("./namespaces/integrations.js");
|
|
47
48
|
const organizations_js_1 = require("./namespaces/organizations.js");
|
|
48
49
|
const pod_members_js_1 = require("./namespaces/pod-members.js");
|
|
50
|
+
const pod_permissions_js_1 = require("./namespaces/pod-permissions.js");
|
|
49
51
|
const pod_join_requests_js_1 = require("./namespaces/pod-join-requests.js");
|
|
50
52
|
const pods_js_1 = require("./namespaces/pods.js");
|
|
53
|
+
const pod_roles_js_1 = require("./namespaces/pod-roles.js");
|
|
51
54
|
const pod_surfaces_js_1 = require("./namespaces/pod-surfaces.js");
|
|
52
55
|
const records_js_1 = require("./namespaces/records.js");
|
|
56
|
+
const resource_access_js_1 = require("./namespaces/resource-access.js");
|
|
53
57
|
const resources_js_1 = require("./namespaces/resources.js");
|
|
54
58
|
const schedules_js_1 = require("./namespaces/schedules.js");
|
|
55
59
|
const tables_js_1 = require("./namespaces/tables.js");
|
|
@@ -75,18 +79,22 @@ class LemmaClient {
|
|
|
75
79
|
this.files = new files_js_1.FilesNamespace(this._generated, this._http, podIdFn);
|
|
76
80
|
this.functions = new functions_js_1.FunctionsNamespace(this._generated, podIdFn);
|
|
77
81
|
this.agents = new agents_js_1.AgentsNamespace(this._generated, podIdFn);
|
|
82
|
+
this.agentRuntime = new agent_runtime_js_1.AgentRuntimeNamespace(this._generated);
|
|
78
83
|
this.conversations = new conversations_js_1.ConversationsNamespace(this._http, podIdFn);
|
|
79
84
|
this.workflows = new workflows_js_1.WorkflowsNamespace(this._generated, this._http, podIdFn);
|
|
80
85
|
this.desks = new desks_js_1.DesksNamespace(this._generated, this._http, podIdFn);
|
|
81
|
-
this.integrations = new integrations_js_1.IntegrationsNamespace(this._generated);
|
|
86
|
+
this.integrations = new integrations_js_1.IntegrationsNamespace(this._generated, this._http);
|
|
82
87
|
this.resources = new resources_js_1.ResourcesNamespace(this._http);
|
|
88
|
+
this.resourceAccess = new resource_access_js_1.ResourceAccessNamespace(this._generated, podIdFn);
|
|
83
89
|
this.schedules = new schedules_js_1.SchedulesNamespace(this._generated, podIdFn);
|
|
84
90
|
this.datastore = new datastore_js_1.DatastoreNamespace(this._generated, podIdFn);
|
|
85
91
|
this.users = new users_js_1.UsersNamespace(this._generated);
|
|
86
92
|
this.icons = new icons_js_1.IconsNamespace(this._generated);
|
|
87
93
|
this.pods = new pods_js_1.PodsNamespace(this._generated, this._http);
|
|
88
94
|
this.podMembers = new pod_members_js_1.PodMembersNamespace(this._generated);
|
|
95
|
+
this.podPermissions = new pod_permissions_js_1.PodPermissionsNamespace(this._generated, this._http, podIdFn);
|
|
89
96
|
this.podJoinRequests = new pod_join_requests_js_1.PodJoinRequestsNamespace(this._generated);
|
|
97
|
+
this.podRoles = new pod_roles_js_1.PodRolesNamespace(this._generated, podIdFn);
|
|
90
98
|
this.organizations = new organizations_js_1.OrganizationsNamespace(this._generated, this._http);
|
|
91
99
|
this.podSurfaces = new pod_surfaces_js_1.PodSurfacesNamespace(this._generated);
|
|
92
100
|
}
|
|
@@ -165,11 +173,11 @@ function resolveConfig(overrides = {}) {
|
|
|
165
173
|
const apiUrl = overrides.apiUrl ??
|
|
166
174
|
win.apiUrl ??
|
|
167
175
|
fromEnv("API_URL") ??
|
|
168
|
-
"https://api.
|
|
176
|
+
"https://api.lemma.work";
|
|
169
177
|
const authUrl = overrides.authUrl ??
|
|
170
178
|
win.authUrl ??
|
|
171
179
|
fromEnv("AUTH_URL") ??
|
|
172
|
-
"https://
|
|
180
|
+
"https://lemma.work/auth";
|
|
173
181
|
const podId = overrides.podId ??
|
|
174
182
|
win.podId ??
|
|
175
183
|
fromEnv("POD_ID");
|
|
@@ -998,125 +1006,76 @@ exports.OpenAPI = {
|
|
|
998
1006
|
};
|
|
999
1007
|
|
|
1000
1008
|
},
|
|
1001
|
-
"./namespaces/
|
|
1009
|
+
"./namespaces/agent-runtime.js": function (module, exports, require) {
|
|
1002
1010
|
"use strict";
|
|
1003
1011
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1004
|
-
exports.
|
|
1005
|
-
const
|
|
1006
|
-
class
|
|
1007
|
-
constructor(client
|
|
1012
|
+
exports.AgentRuntimeNamespace = void 0;
|
|
1013
|
+
const AgentRuntimeService_js_1 = require("./openapi_client/services/AgentRuntimeService.js");
|
|
1014
|
+
class AgentRuntimeNamespace {
|
|
1015
|
+
constructor(client) {
|
|
1008
1016
|
this.client = client;
|
|
1009
|
-
this.podId = podId;
|
|
1010
1017
|
}
|
|
1011
|
-
|
|
1012
|
-
return this.client.request(() =>
|
|
1018
|
+
listHarnesses() {
|
|
1019
|
+
return this.client.request(() => AgentRuntimeService_js_1.AgentRuntimeService.agentRuntimeHarnessesList());
|
|
1013
1020
|
}
|
|
1014
|
-
|
|
1015
|
-
return this.
|
|
1021
|
+
listAvailableHarnesses() {
|
|
1022
|
+
return this.listHarnesses();
|
|
1016
1023
|
}
|
|
1017
|
-
|
|
1018
|
-
return this.
|
|
1024
|
+
listRuntimes(orgId) {
|
|
1025
|
+
return this.listProfiles(orgId);
|
|
1019
1026
|
}
|
|
1020
|
-
|
|
1021
|
-
return this.client.request(() =>
|
|
1027
|
+
listProfiles(orgId) {
|
|
1028
|
+
return this.client.request(() => AgentRuntimeService_js_1.AgentRuntimeService.agentRuntimeProfilesList(orgId));
|
|
1022
1029
|
}
|
|
1023
|
-
|
|
1024
|
-
return this.
|
|
1030
|
+
createRuntime(orgId, request) {
|
|
1031
|
+
return this.createProfile(orgId, request);
|
|
1032
|
+
}
|
|
1033
|
+
createProfile(orgId, request) {
|
|
1034
|
+
return this.client.request(() => AgentRuntimeService_js_1.AgentRuntimeService.agentRuntimeProfilesCreate(orgId, request));
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* @deprecated Runtime defaults are now pod config (`default_profile_id`) or
|
|
1038
|
+
* organization Agent Runtimes. The backend no longer exposes a global
|
|
1039
|
+
* default-runtime mutation endpoint.
|
|
1040
|
+
*/
|
|
1041
|
+
updateDefault(agentRuntime) {
|
|
1042
|
+
void agentRuntime;
|
|
1043
|
+
return Promise.reject(new Error("agentRuntime.updateDefault is no longer supported. Update pod config.default_profile_id instead."));
|
|
1025
1044
|
}
|
|
1026
1045
|
}
|
|
1027
|
-
exports.
|
|
1046
|
+
exports.AgentRuntimeNamespace = AgentRuntimeNamespace;
|
|
1028
1047
|
|
|
1029
1048
|
},
|
|
1030
|
-
"./openapi_client/services/
|
|
1049
|
+
"./openapi_client/services/AgentRuntimeService.js": function (module, exports, require) {
|
|
1031
1050
|
"use strict";
|
|
1032
1051
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1033
|
-
exports.
|
|
1052
|
+
exports.AgentRuntimeService = void 0;
|
|
1034
1053
|
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
1035
1054
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
1036
|
-
class
|
|
1055
|
+
class AgentRuntimeService {
|
|
1037
1056
|
/**
|
|
1038
|
-
* List
|
|
1039
|
-
*
|
|
1040
|
-
* @param podId
|
|
1041
|
-
* @param pageToken
|
|
1042
|
-
* @param limit
|
|
1043
|
-
* @returns AgentListResponse Successful Response
|
|
1057
|
+
* List Available Agent Harnesses
|
|
1058
|
+
* @returns AgentHarnessListResponse Successful Response
|
|
1044
1059
|
* @throws ApiError
|
|
1045
1060
|
*/
|
|
1046
|
-
static
|
|
1061
|
+
static agentRuntimeHarnessesList() {
|
|
1047
1062
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1048
1063
|
method: 'GET',
|
|
1049
|
-
url: '/
|
|
1050
|
-
path: {
|
|
1051
|
-
'pod_id': podId,
|
|
1052
|
-
},
|
|
1053
|
-
query: {
|
|
1054
|
-
'page_token': pageToken,
|
|
1055
|
-
'limit': limit,
|
|
1056
|
-
},
|
|
1057
|
-
errors: {
|
|
1058
|
-
422: `Validation Error`,
|
|
1059
|
-
},
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* Create Agent
|
|
1064
|
-
* Create a pod-owned agent definition with model, harness, toolsets, resource access grants, callable functions, and callable child agents.
|
|
1065
|
-
* @param podId
|
|
1066
|
-
* @param requestBody
|
|
1067
|
-
* @returns AgentResponse Successful Response
|
|
1068
|
-
* @throws ApiError
|
|
1069
|
-
*/
|
|
1070
|
-
static agentCreate(podId, requestBody) {
|
|
1071
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1072
|
-
method: 'POST',
|
|
1073
|
-
url: '/pods/{pod_id}/agents',
|
|
1074
|
-
path: {
|
|
1075
|
-
'pod_id': podId,
|
|
1076
|
-
},
|
|
1077
|
-
body: requestBody,
|
|
1078
|
-
mediaType: 'application/json',
|
|
1079
|
-
errors: {
|
|
1080
|
-
422: `Validation Error`,
|
|
1081
|
-
},
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
/**
|
|
1085
|
-
* Delete Agent
|
|
1086
|
-
* Delete a pod-owned agent definition by name.
|
|
1087
|
-
* @param podId
|
|
1088
|
-
* @param agentName
|
|
1089
|
-
* @returns AgentMessageResponse Successful Response
|
|
1090
|
-
* @throws ApiError
|
|
1091
|
-
*/
|
|
1092
|
-
static agentDelete(podId, agentName) {
|
|
1093
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1094
|
-
method: 'DELETE',
|
|
1095
|
-
url: '/pods/{pod_id}/agents/{agent_name}',
|
|
1096
|
-
path: {
|
|
1097
|
-
'pod_id': podId,
|
|
1098
|
-
'agent_name': agentName,
|
|
1099
|
-
},
|
|
1100
|
-
errors: {
|
|
1101
|
-
422: `Validation Error`,
|
|
1102
|
-
},
|
|
1064
|
+
url: '/agent-runtime/harnesses',
|
|
1103
1065
|
});
|
|
1104
1066
|
}
|
|
1105
1067
|
/**
|
|
1106
|
-
*
|
|
1107
|
-
*
|
|
1108
|
-
* @
|
|
1109
|
-
* @param agentName
|
|
1110
|
-
* @returns AgentResponse Successful Response
|
|
1068
|
+
* List Available Agent Runtime Profiles
|
|
1069
|
+
* @param orgId
|
|
1070
|
+
* @returns AgentRuntimeProfileListResponse Successful Response
|
|
1111
1071
|
* @throws ApiError
|
|
1112
1072
|
*/
|
|
1113
|
-
static
|
|
1073
|
+
static agentRuntimeProfilesList(orgId) {
|
|
1114
1074
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1115
1075
|
method: 'GET',
|
|
1116
|
-
url: '/
|
|
1076
|
+
url: '/organizations/{org_id}/agent-runtime/profiles',
|
|
1117
1077
|
path: {
|
|
1118
|
-
'
|
|
1119
|
-
'agent_name': agentName,
|
|
1078
|
+
'org_id': orgId,
|
|
1120
1079
|
},
|
|
1121
1080
|
errors: {
|
|
1122
1081
|
422: `Validation Error`,
|
|
@@ -1124,21 +1083,18 @@ class AgentsService {
|
|
|
1124
1083
|
});
|
|
1125
1084
|
}
|
|
1126
1085
|
/**
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1129
|
-
* @param podId
|
|
1130
|
-
* @param agentName
|
|
1086
|
+
* Create Agent Runtime Profile
|
|
1087
|
+
* @param orgId
|
|
1131
1088
|
* @param requestBody
|
|
1132
|
-
* @returns
|
|
1089
|
+
* @returns AgentRuntimeProfileResponse Successful Response
|
|
1133
1090
|
* @throws ApiError
|
|
1134
1091
|
*/
|
|
1135
|
-
static
|
|
1092
|
+
static agentRuntimeProfilesCreate(orgId, requestBody) {
|
|
1136
1093
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1137
|
-
method: '
|
|
1138
|
-
url: '/
|
|
1094
|
+
method: 'POST',
|
|
1095
|
+
url: '/organizations/{org_id}/agent-runtime/profiles',
|
|
1139
1096
|
path: {
|
|
1140
|
-
'
|
|
1141
|
-
'agent_name': agentName,
|
|
1097
|
+
'org_id': orgId,
|
|
1142
1098
|
},
|
|
1143
1099
|
body: requestBody,
|
|
1144
1100
|
mediaType: 'application/json',
|
|
@@ -1148,7 +1104,7 @@ class AgentsService {
|
|
|
1148
1104
|
});
|
|
1149
1105
|
}
|
|
1150
1106
|
}
|
|
1151
|
-
exports.
|
|
1107
|
+
exports.AgentRuntimeService = AgentRuntimeService;
|
|
1152
1108
|
|
|
1153
1109
|
},
|
|
1154
1110
|
"./openapi_client/core/request.js": function (module, exports, require) {
|
|
@@ -1564,21 +1520,222 @@ class CancelablePromise {
|
|
|
1564
1520
|
return __classPrivateFieldGet(this, _CancelablePromise_isCancelled, "f");
|
|
1565
1521
|
}
|
|
1566
1522
|
}
|
|
1567
|
-
exports.CancelablePromise = CancelablePromise;
|
|
1523
|
+
exports.CancelablePromise = CancelablePromise;
|
|
1524
|
+
|
|
1525
|
+
},
|
|
1526
|
+
"./namespaces/agents.js": function (module, exports, require) {
|
|
1527
|
+
"use strict";
|
|
1528
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1529
|
+
exports.AgentsNamespace = void 0;
|
|
1530
|
+
const AgentsService_js_1 = require("./openapi_client/services/AgentsService.js");
|
|
1531
|
+
class AgentsNamespace {
|
|
1532
|
+
constructor(client, podId) {
|
|
1533
|
+
this.client = client;
|
|
1534
|
+
this.podId = podId;
|
|
1535
|
+
this.permissions = {
|
|
1536
|
+
get: (agentName) => this.client.request(() => AgentsService_js_1.AgentsService.agentPermissionsGet(this.podId(), agentName)),
|
|
1537
|
+
replace: (agentName, payload) => this.client.request(() => AgentsService_js_1.AgentsService.agentPermissionsReplace(this.podId(), agentName, payload)),
|
|
1538
|
+
};
|
|
1539
|
+
}
|
|
1540
|
+
list(options = {}) {
|
|
1541
|
+
return this.client.request(() => AgentsService_js_1.AgentsService.agentList(this.podId(), options.pageToken, options.limit ?? 100));
|
|
1542
|
+
}
|
|
1543
|
+
create(payload) {
|
|
1544
|
+
return this.client.request(() => AgentsService_js_1.AgentsService.agentCreate(this.podId(), payload));
|
|
1545
|
+
}
|
|
1546
|
+
get(agentName) {
|
|
1547
|
+
return this.client.request(() => AgentsService_js_1.AgentsService.agentGet(this.podId(), agentName));
|
|
1548
|
+
}
|
|
1549
|
+
update(agentName, payload) {
|
|
1550
|
+
return this.client.request(() => AgentsService_js_1.AgentsService.agentUpdate(this.podId(), agentName, payload));
|
|
1551
|
+
}
|
|
1552
|
+
delete(agentName) {
|
|
1553
|
+
return this.client.request(() => AgentsService_js_1.AgentsService.agentDelete(this.podId(), agentName));
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
exports.AgentsNamespace = AgentsNamespace;
|
|
1557
|
+
|
|
1558
|
+
},
|
|
1559
|
+
"./openapi_client/services/AgentsService.js": function (module, exports, require) {
|
|
1560
|
+
"use strict";
|
|
1561
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1562
|
+
exports.AgentsService = void 0;
|
|
1563
|
+
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
1564
|
+
const request_js_1 = require("./openapi_client/core/request.js");
|
|
1565
|
+
class AgentsService {
|
|
1566
|
+
/**
|
|
1567
|
+
* List Agents
|
|
1568
|
+
* List pod-owned agent definitions visible to the current user.
|
|
1569
|
+
* @param podId
|
|
1570
|
+
* @param pageToken
|
|
1571
|
+
* @param limit
|
|
1572
|
+
* @returns AgentListResponse Successful Response
|
|
1573
|
+
* @throws ApiError
|
|
1574
|
+
*/
|
|
1575
|
+
static agentList(podId, pageToken, limit = 100) {
|
|
1576
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1577
|
+
method: 'GET',
|
|
1578
|
+
url: '/pods/{pod_id}/agents',
|
|
1579
|
+
path: {
|
|
1580
|
+
'pod_id': podId,
|
|
1581
|
+
},
|
|
1582
|
+
query: {
|
|
1583
|
+
'page_token': pageToken,
|
|
1584
|
+
'limit': limit,
|
|
1585
|
+
},
|
|
1586
|
+
errors: {
|
|
1587
|
+
422: `Validation Error`,
|
|
1588
|
+
},
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* Create Agent
|
|
1593
|
+
* Create a pod-owned agent definition with runtime, toolsets, and schemas.
|
|
1594
|
+
* @param podId
|
|
1595
|
+
* @param requestBody
|
|
1596
|
+
* @returns AgentActionResponse Successful Response
|
|
1597
|
+
* @throws ApiError
|
|
1598
|
+
*/
|
|
1599
|
+
static agentCreate(podId, requestBody) {
|
|
1600
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1601
|
+
method: 'POST',
|
|
1602
|
+
url: '/pods/{pod_id}/agents',
|
|
1603
|
+
path: {
|
|
1604
|
+
'pod_id': podId,
|
|
1605
|
+
},
|
|
1606
|
+
body: requestBody,
|
|
1607
|
+
mediaType: 'application/json',
|
|
1608
|
+
errors: {
|
|
1609
|
+
422: `Validation Error`,
|
|
1610
|
+
},
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Delete Agent
|
|
1615
|
+
* Delete a pod-owned agent definition by name.
|
|
1616
|
+
* @param podId
|
|
1617
|
+
* @param agentName
|
|
1618
|
+
* @returns AgentMessageResponse Successful Response
|
|
1619
|
+
* @throws ApiError
|
|
1620
|
+
*/
|
|
1621
|
+
static agentDelete(podId, agentName) {
|
|
1622
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1623
|
+
method: 'DELETE',
|
|
1624
|
+
url: '/pods/{pod_id}/agents/{agent_name}',
|
|
1625
|
+
path: {
|
|
1626
|
+
'pod_id': podId,
|
|
1627
|
+
'agent_name': agentName,
|
|
1628
|
+
},
|
|
1629
|
+
errors: {
|
|
1630
|
+
422: `Validation Error`,
|
|
1631
|
+
},
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* Get Agent
|
|
1636
|
+
* Get one pod-owned agent definition by its stable name.
|
|
1637
|
+
* @param podId
|
|
1638
|
+
* @param agentName
|
|
1639
|
+
* @returns AgentDetailResponse Successful Response
|
|
1640
|
+
* @throws ApiError
|
|
1641
|
+
*/
|
|
1642
|
+
static agentGet(podId, agentName) {
|
|
1643
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1644
|
+
method: 'GET',
|
|
1645
|
+
url: '/pods/{pod_id}/agents/{agent_name}',
|
|
1646
|
+
path: {
|
|
1647
|
+
'pod_id': podId,
|
|
1648
|
+
'agent_name': agentName,
|
|
1649
|
+
},
|
|
1650
|
+
errors: {
|
|
1651
|
+
422: `Validation Error`,
|
|
1652
|
+
},
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Update Agent
|
|
1657
|
+
* Update an agent definition, including prompt instruction, runtime, toolsets, and schemas.
|
|
1658
|
+
* @param podId
|
|
1659
|
+
* @param agentName
|
|
1660
|
+
* @param requestBody
|
|
1661
|
+
* @returns AgentActionResponse Successful Response
|
|
1662
|
+
* @throws ApiError
|
|
1663
|
+
*/
|
|
1664
|
+
static agentUpdate(podId, agentName, requestBody) {
|
|
1665
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1666
|
+
method: 'PATCH',
|
|
1667
|
+
url: '/pods/{pod_id}/agents/{agent_name}',
|
|
1668
|
+
path: {
|
|
1669
|
+
'pod_id': podId,
|
|
1670
|
+
'agent_name': agentName,
|
|
1671
|
+
},
|
|
1672
|
+
body: requestBody,
|
|
1673
|
+
mediaType: 'application/json',
|
|
1674
|
+
errors: {
|
|
1675
|
+
422: `Validation Error`,
|
|
1676
|
+
},
|
|
1677
|
+
});
|
|
1678
|
+
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Get Agent Resource Permissions
|
|
1681
|
+
* Get explicit resource grants assigned to an agent.
|
|
1682
|
+
* @param podId
|
|
1683
|
+
* @param agentName
|
|
1684
|
+
* @returns AgentPermissionsResponse Successful Response
|
|
1685
|
+
* @throws ApiError
|
|
1686
|
+
*/
|
|
1687
|
+
static agentPermissionsGet(podId, agentName) {
|
|
1688
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1689
|
+
method: 'GET',
|
|
1690
|
+
url: '/pods/{pod_id}/agents/{agent_name}/permissions',
|
|
1691
|
+
path: {
|
|
1692
|
+
'pod_id': podId,
|
|
1693
|
+
'agent_name': agentName,
|
|
1694
|
+
},
|
|
1695
|
+
errors: {
|
|
1696
|
+
422: `Validation Error`,
|
|
1697
|
+
},
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* Replace Agent Resource Permissions
|
|
1702
|
+
* Replace explicit resource grants assigned to an agent.
|
|
1703
|
+
* @param podId
|
|
1704
|
+
* @param agentName
|
|
1705
|
+
* @param requestBody
|
|
1706
|
+
* @returns AgentPermissionsResponse Successful Response
|
|
1707
|
+
* @throws ApiError
|
|
1708
|
+
*/
|
|
1709
|
+
static agentPermissionsReplace(podId, agentName, requestBody) {
|
|
1710
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1711
|
+
method: 'PUT',
|
|
1712
|
+
url: '/pods/{pod_id}/agents/{agent_name}/permissions',
|
|
1713
|
+
path: {
|
|
1714
|
+
'pod_id': podId,
|
|
1715
|
+
'agent_name': agentName,
|
|
1716
|
+
},
|
|
1717
|
+
body: requestBody,
|
|
1718
|
+
mediaType: 'application/json',
|
|
1719
|
+
errors: {
|
|
1720
|
+
422: `Validation Error`,
|
|
1721
|
+
},
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
exports.AgentsService = AgentsService;
|
|
1568
1726
|
|
|
1569
1727
|
},
|
|
1570
1728
|
"./namespaces/conversations.js": function (module, exports, require) {
|
|
1571
1729
|
"use strict";
|
|
1572
1730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1573
1731
|
exports.ConversationsNamespace = void 0;
|
|
1574
|
-
const AgentModelName_js_1 = require("./openapi_client/models/AgentModelName.js");
|
|
1575
1732
|
function normalizeConversation(conversation) {
|
|
1576
1733
|
if (!conversation)
|
|
1577
1734
|
return conversation;
|
|
1578
1735
|
const record = conversation;
|
|
1579
1736
|
return {
|
|
1580
1737
|
...record,
|
|
1581
|
-
model: record.model ?? record.model_name ?? null,
|
|
1738
|
+
model: record.model ?? record.agent_runtime?.model_name ?? record.model_name ?? null,
|
|
1582
1739
|
status: record.status ?? "waiting",
|
|
1583
1740
|
};
|
|
1584
1741
|
}
|
|
@@ -1592,25 +1749,19 @@ function normalizeConversationList(response) {
|
|
|
1592
1749
|
function normalizeMessage(message) {
|
|
1593
1750
|
return message;
|
|
1594
1751
|
}
|
|
1595
|
-
function buildModelList() {
|
|
1596
|
-
return Object.values(AgentModelName_js_1.AgentModelName).map((model) => ({
|
|
1597
|
-
id: model,
|
|
1598
|
-
name: model,
|
|
1599
|
-
}));
|
|
1600
|
-
}
|
|
1601
1752
|
class ConversationsNamespace {
|
|
1602
1753
|
constructor(http, podId) {
|
|
1603
1754
|
this.http = http;
|
|
1604
1755
|
this.podId = podId;
|
|
1756
|
+
this.profileCatalogPromises = new Map();
|
|
1605
1757
|
this.messages = {
|
|
1606
1758
|
list: (conversationId, options = {}) => {
|
|
1607
1759
|
const podId = this.requirePodId(options.pod_id);
|
|
1608
|
-
const parsedPageToken = typeof options.page_token === "string" && options.page_token.trim().length > 0
|
|
1609
|
-
? Number(options.page_token)
|
|
1610
|
-
: null;
|
|
1611
1760
|
return this.http.request("GET", `/pods/${podId}/conversations/${conversationId}/messages`, {
|
|
1612
1761
|
params: {
|
|
1613
|
-
|
|
1762
|
+
page_token: options.page_token,
|
|
1763
|
+
before_sequence: options.before_sequence,
|
|
1764
|
+
after_sequence: options.after_sequence,
|
|
1614
1765
|
limit: options.limit ?? 100,
|
|
1615
1766
|
},
|
|
1616
1767
|
}).then((response) => ({
|
|
@@ -1625,6 +1776,20 @@ class ConversationsNamespace {
|
|
|
1625
1776
|
});
|
|
1626
1777
|
},
|
|
1627
1778
|
};
|
|
1779
|
+
this.approvals = {
|
|
1780
|
+
list: (conversationId, options = {}) => {
|
|
1781
|
+
const podId = this.requirePodId(options.pod_id);
|
|
1782
|
+
return this.http.request("GET", `/pods/${podId}/conversations/${conversationId}/approvals`);
|
|
1783
|
+
},
|
|
1784
|
+
resolve: (conversationId, approvalId, payload, options = {}) => {
|
|
1785
|
+
const podId = this.requirePodId(options.pod_id);
|
|
1786
|
+
const body = {
|
|
1787
|
+
...payload,
|
|
1788
|
+
decision: payload.decision,
|
|
1789
|
+
};
|
|
1790
|
+
return this.http.request("POST", `/pods/${podId}/conversations/${conversationId}/approvals/${approvalId}/decision`, { body });
|
|
1791
|
+
},
|
|
1792
|
+
};
|
|
1628
1793
|
}
|
|
1629
1794
|
resolvePodId(explicitPodId) {
|
|
1630
1795
|
if (typeof explicitPodId === "string") {
|
|
@@ -1644,13 +1809,68 @@ class ConversationsNamespace {
|
|
|
1644
1809
|
}
|
|
1645
1810
|
return podId;
|
|
1646
1811
|
}
|
|
1812
|
+
listRuntimeCatalog() {
|
|
1813
|
+
this.runtimeCatalogPromise ?? (this.runtimeCatalogPromise = this.http.request("GET", "/agent-runtime/harnesses"));
|
|
1814
|
+
return this.runtimeCatalogPromise;
|
|
1815
|
+
}
|
|
1816
|
+
listProfileCatalog(orgId) {
|
|
1817
|
+
const key = orgId.trim();
|
|
1818
|
+
const existing = this.profileCatalogPromises.get(key);
|
|
1819
|
+
if (existing)
|
|
1820
|
+
return existing;
|
|
1821
|
+
const request = this.http.request("GET", `/organizations/${encodeURIComponent(key)}/agent-runtime/profiles`);
|
|
1822
|
+
this.profileCatalogPromises.set(key, request);
|
|
1823
|
+
return request;
|
|
1824
|
+
}
|
|
1825
|
+
modelOptionsFromProfiles(catalog) {
|
|
1826
|
+
return catalog.items.flatMap((profile) => {
|
|
1827
|
+
const catalogEntries = profile.model_catalog ?? [];
|
|
1828
|
+
const entries = catalogEntries.length > 0
|
|
1829
|
+
? catalogEntries
|
|
1830
|
+
: profile.default_model_name
|
|
1831
|
+
? [{
|
|
1832
|
+
name: profile.default_model_name,
|
|
1833
|
+
display_name: null,
|
|
1834
|
+
provider_model_name: profile.default_model_name,
|
|
1835
|
+
capabilities: [],
|
|
1836
|
+
default_model_settings: {},
|
|
1837
|
+
metadata: {},
|
|
1838
|
+
}]
|
|
1839
|
+
: [];
|
|
1840
|
+
return entries.map((model) => ({
|
|
1841
|
+
id: model.name,
|
|
1842
|
+
name: model.display_name ?? model.name,
|
|
1843
|
+
agentRuntime: profile,
|
|
1844
|
+
agentRuntimeId: profile.id,
|
|
1845
|
+
profile,
|
|
1846
|
+
profile_id: profile.id,
|
|
1847
|
+
harness_kind: profile.derived_harness_kind,
|
|
1848
|
+
description: profile.name,
|
|
1849
|
+
runtime: {
|
|
1850
|
+
profile_id: profile.id,
|
|
1851
|
+
model_name: model.name,
|
|
1852
|
+
},
|
|
1853
|
+
}));
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
async resolveAgentRuntime(agentRuntime, model, harnessKind, profileId) {
|
|
1857
|
+
if (agentRuntime || !model) {
|
|
1858
|
+
return agentRuntime;
|
|
1859
|
+
}
|
|
1860
|
+
if (profileId) {
|
|
1861
|
+
return {
|
|
1862
|
+
profile_id: profileId,
|
|
1863
|
+
model_name: model,
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
void harnessKind;
|
|
1867
|
+
return undefined;
|
|
1868
|
+
}
|
|
1647
1869
|
list(options = {}) {
|
|
1648
1870
|
const podId = this.requirePodId(options.pod_id);
|
|
1649
1871
|
return this.http.request("GET", `/pods/${podId}/conversations`, {
|
|
1650
1872
|
params: {
|
|
1651
1873
|
agent_name: options.agent_name,
|
|
1652
|
-
status: options.status,
|
|
1653
|
-
type: options.type,
|
|
1654
1874
|
limit: options.limit ?? 20,
|
|
1655
1875
|
page_token: options.page_token,
|
|
1656
1876
|
},
|
|
@@ -1659,21 +1879,38 @@ class ConversationsNamespace {
|
|
|
1659
1879
|
listByAgent(agentName, options = {}) {
|
|
1660
1880
|
return this.list({ ...options, agent_name: agentName });
|
|
1661
1881
|
}
|
|
1662
|
-
async listModels() {
|
|
1663
|
-
const
|
|
1882
|
+
async listModels(options = {}) {
|
|
1883
|
+
const orgId = options.orgId?.trim();
|
|
1884
|
+
if (orgId) {
|
|
1885
|
+
const catalog = await this.listProfileCatalog(orgId);
|
|
1886
|
+
const items = this.modelOptionsFromProfiles(catalog);
|
|
1887
|
+
return {
|
|
1888
|
+
items,
|
|
1889
|
+
limit: items.length,
|
|
1890
|
+
next_page_token: null,
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
const catalog = await this.listRuntimeCatalog();
|
|
1894
|
+
const items = catalog.items.flatMap((harness) => (harness.models ?? []).map((model) => ({
|
|
1895
|
+
id: model,
|
|
1896
|
+
name: model,
|
|
1897
|
+
harness_kind: harness.harness_kind,
|
|
1898
|
+
description: harness.daemon_display_name,
|
|
1899
|
+
})));
|
|
1664
1900
|
return {
|
|
1665
1901
|
items,
|
|
1666
1902
|
limit: items.length,
|
|
1667
1903
|
next_page_token: null,
|
|
1668
1904
|
};
|
|
1669
1905
|
}
|
|
1670
|
-
create(payload = {}) {
|
|
1906
|
+
async create(payload = {}) {
|
|
1671
1907
|
const podId = this.requirePodId(payload.pod_id);
|
|
1672
|
-
const { agent_name, model, model_name, pod_id, ...requestBody } = payload;
|
|
1908
|
+
const { agent_name, harness_kind, model, model_name, pod_id, profile_id, ...requestBody } = payload;
|
|
1909
|
+
const agentRuntime = await this.resolveAgentRuntime(requestBody.agent_runtime, model_name ?? model, harness_kind, profile_id);
|
|
1673
1910
|
const body = {
|
|
1674
1911
|
...requestBody,
|
|
1675
1912
|
agent_name: agent_name ?? undefined,
|
|
1676
|
-
|
|
1913
|
+
agent_runtime: agentRuntime,
|
|
1677
1914
|
};
|
|
1678
1915
|
void pod_id;
|
|
1679
1916
|
return this.http.request("POST", `/pods/${podId}/conversations`, {
|
|
@@ -1691,12 +1928,13 @@ class ConversationsNamespace {
|
|
|
1691
1928
|
return this.http.request("GET", `/pods/${podId}/conversations/${conversationId}`)
|
|
1692
1929
|
.then(normalizeConversation);
|
|
1693
1930
|
}
|
|
1694
|
-
update(conversationId, payload, options = {}) {
|
|
1931
|
+
async update(conversationId, payload, options = {}) {
|
|
1695
1932
|
const podId = this.requirePodId(options.pod_id);
|
|
1696
|
-
const { model, model_name, ...requestBody } = payload;
|
|
1933
|
+
const { harness_kind, model, model_name, profile_id, ...requestBody } = payload;
|
|
1934
|
+
const agentRuntime = await this.resolveAgentRuntime(requestBody.agent_runtime, model_name ?? model, harness_kind, profile_id);
|
|
1697
1935
|
const body = {
|
|
1698
1936
|
...requestBody,
|
|
1699
|
-
|
|
1937
|
+
agent_runtime: agentRuntime,
|
|
1700
1938
|
};
|
|
1701
1939
|
return this.http.request("PATCH", `/pods/${podId}/conversations/${conversationId}`, {
|
|
1702
1940
|
body,
|
|
@@ -1732,30 +1970,6 @@ class ConversationsNamespace {
|
|
|
1732
1970
|
}
|
|
1733
1971
|
exports.ConversationsNamespace = ConversationsNamespace;
|
|
1734
1972
|
|
|
1735
|
-
},
|
|
1736
|
-
"./openapi_client/models/AgentModelName.js": function (module, exports, require) {
|
|
1737
|
-
"use strict";
|
|
1738
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1739
|
-
exports.AgentModelName = void 0;
|
|
1740
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1741
|
-
/* istanbul ignore file */
|
|
1742
|
-
/* tslint:disable */
|
|
1743
|
-
/* eslint-disable */
|
|
1744
|
-
/**
|
|
1745
|
-
* Models that can be selected for an agent conversation.
|
|
1746
|
-
*/
|
|
1747
|
-
var AgentModelName;
|
|
1748
|
-
(function (AgentModelName) {
|
|
1749
|
-
AgentModelName["GEMINI_PRO"] = "GEMINI_PRO";
|
|
1750
|
-
AgentModelName["GEMINI_FLASH"] = "GEMINI_FLASH";
|
|
1751
|
-
AgentModelName["GEMINI_FLASH_LITE"] = "GEMINI_FLASH_LITE";
|
|
1752
|
-
AgentModelName["KIMI_K2"] = "KIMI_K2";
|
|
1753
|
-
AgentModelName["GPT_OSS"] = "GPT_OSS";
|
|
1754
|
-
AgentModelName["DEEPSEEK_V32"] = "DEEPSEEK_V32";
|
|
1755
|
-
AgentModelName["GLM_5"] = "GLM_5";
|
|
1756
|
-
AgentModelName["QWEN3_6"] = "QWEN3_6";
|
|
1757
|
-
})(AgentModelName || (exports.AgentModelName = AgentModelName = {}));
|
|
1758
|
-
|
|
1759
1973
|
},
|
|
1760
1974
|
"./namespaces/desks.js": function (module, exports, require) {
|
|
1761
1975
|
"use strict";
|
|
@@ -1834,7 +2048,7 @@ class DesksService {
|
|
|
1834
2048
|
* Create Desk
|
|
1835
2049
|
* @param podId
|
|
1836
2050
|
* @param requestBody
|
|
1837
|
-
* @returns
|
|
2051
|
+
* @returns DeskDetailResponse Successful Response
|
|
1838
2052
|
* @throws ApiError
|
|
1839
2053
|
*/
|
|
1840
2054
|
static deskCreate(podId, requestBody) {
|
|
@@ -1875,7 +2089,7 @@ class DesksService {
|
|
|
1875
2089
|
* Get Desk
|
|
1876
2090
|
* @param podId
|
|
1877
2091
|
* @param deskName
|
|
1878
|
-
* @returns
|
|
2092
|
+
* @returns DeskDetailResponse Successful Response
|
|
1879
2093
|
* @throws ApiError
|
|
1880
2094
|
*/
|
|
1881
2095
|
static deskGet(podId, deskName) {
|
|
@@ -1896,7 +2110,7 @@ class DesksService {
|
|
|
1896
2110
|
* @param podId
|
|
1897
2111
|
* @param deskName
|
|
1898
2112
|
* @param requestBody
|
|
1899
|
-
* @returns
|
|
2113
|
+
* @returns DeskDetailResponse Successful Response
|
|
1900
2114
|
* @throws ApiError
|
|
1901
2115
|
*/
|
|
1902
2116
|
static deskUpdate(podId, deskName, requestBody) {
|
|
@@ -2073,10 +2287,9 @@ class FilesNamespace {
|
|
|
2073
2287
|
},
|
|
2074
2288
|
};
|
|
2075
2289
|
this.converted = {
|
|
2076
|
-
get: (path
|
|
2077
|
-
render: (path
|
|
2078
|
-
download: (path, artifact = "document.md"
|
|
2079
|
-
void options;
|
|
2290
|
+
get: (path) => this.client.request(() => FilesService_js_1.FilesService.fileConvertedGet(this.podId(), path)),
|
|
2291
|
+
render: (path) => this.client.request(() => FilesService_js_1.FilesService.fileConvertedRender(this.podId(), path)),
|
|
2292
|
+
download: (path, artifact = "document.md") => {
|
|
2080
2293
|
const encodedPath = encodeURIComponent(path);
|
|
2081
2294
|
const encodedArtifact = encodeURIComponent(artifact);
|
|
2082
2295
|
return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/converted/download?path=${encodedPath}&artifact=${encodedArtifact}`);
|
|
@@ -2087,23 +2300,22 @@ class FilesNamespace {
|
|
|
2087
2300
|
const directoryPath = options.directoryPath ?? options.parentId ?? "/";
|
|
2088
2301
|
return this.client.request(() => FilesService_js_1.FilesService.fileList(this.podId(), directoryPath, options.limit ?? 100, options.pageToken));
|
|
2089
2302
|
}
|
|
2090
|
-
get(path
|
|
2091
|
-
void options;
|
|
2303
|
+
get(path) {
|
|
2092
2304
|
return this.client.request(() => FilesService_js_1.FilesService.fileGet(this.podId(), path));
|
|
2093
2305
|
}
|
|
2094
|
-
delete(path
|
|
2095
|
-
void options;
|
|
2306
|
+
delete(path) {
|
|
2096
2307
|
return this.client.request(() => FilesService_js_1.FilesService.fileDelete(this.podId(), path));
|
|
2097
2308
|
}
|
|
2098
2309
|
search(query, options = {}) {
|
|
2099
2310
|
return this.client.request(() => FilesService_js_1.FilesService.fileSearch(this.podId(), {
|
|
2100
2311
|
query,
|
|
2101
2312
|
limit: options.limit ?? 10,
|
|
2102
|
-
|
|
2313
|
+
scope_mode: options.scopeMode,
|
|
2314
|
+
scope_path: options.scopePath,
|
|
2315
|
+
search_method: (options.searchMethod ?? SearchMethod_js_1.SearchMethod.HYBRID),
|
|
2103
2316
|
}));
|
|
2104
2317
|
}
|
|
2105
|
-
download(path
|
|
2106
|
-
void options;
|
|
2318
|
+
download(path) {
|
|
2107
2319
|
const encodedPath = encodeURIComponent(path);
|
|
2108
2320
|
return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/download?path=${encodedPath}`);
|
|
2109
2321
|
}
|
|
@@ -2135,6 +2347,7 @@ class FilesNamespace {
|
|
|
2135
2347
|
description: options.description,
|
|
2136
2348
|
new_path: resolvedNewPath,
|
|
2137
2349
|
search_enabled: options.searchEnabled,
|
|
2350
|
+
visibility: options.visibility,
|
|
2138
2351
|
};
|
|
2139
2352
|
return this.client.request(() => FilesService_js_1.FilesService.fileUpdate(this.podId(), payload));
|
|
2140
2353
|
}
|
|
@@ -2195,7 +2408,7 @@ class FilesService {
|
|
|
2195
2408
|
* Upload File
|
|
2196
2409
|
* @param podId
|
|
2197
2410
|
* @param formData
|
|
2198
|
-
* @returns
|
|
2411
|
+
* @returns FileDetailResponse Successful Response
|
|
2199
2412
|
* @throws ApiError
|
|
2200
2413
|
*/
|
|
2201
2414
|
static fileUpload(podId, formData) {
|
|
@@ -2216,7 +2429,7 @@ class FilesService {
|
|
|
2216
2429
|
* Delete File Or Folder
|
|
2217
2430
|
* @param podId
|
|
2218
2431
|
* @param path
|
|
2219
|
-
* @returns
|
|
2432
|
+
* @returns void
|
|
2220
2433
|
* @throws ApiError
|
|
2221
2434
|
*/
|
|
2222
2435
|
static fileDelete(podId, path) {
|
|
@@ -2238,7 +2451,7 @@ class FilesService {
|
|
|
2238
2451
|
* Get File
|
|
2239
2452
|
* @param podId
|
|
2240
2453
|
* @param path
|
|
2241
|
-
* @returns
|
|
2454
|
+
* @returns FileDetailResponse Successful Response
|
|
2242
2455
|
* @throws ApiError
|
|
2243
2456
|
*/
|
|
2244
2457
|
static fileGet(podId, path) {
|
|
@@ -2260,7 +2473,7 @@ class FilesService {
|
|
|
2260
2473
|
* Update File
|
|
2261
2474
|
* @param podId
|
|
2262
2475
|
* @param formData
|
|
2263
|
-
* @returns
|
|
2476
|
+
* @returns FileDetailResponse Successful Response
|
|
2264
2477
|
* @throws ApiError
|
|
2265
2478
|
*/
|
|
2266
2479
|
static fileUpdate(podId, formData) {
|
|
@@ -2277,6 +2490,30 @@ class FilesService {
|
|
|
2277
2490
|
},
|
|
2278
2491
|
});
|
|
2279
2492
|
}
|
|
2493
|
+
/**
|
|
2494
|
+
* Download Converted File Archive
|
|
2495
|
+
* @param podId
|
|
2496
|
+
* @param path
|
|
2497
|
+
* @param withAssets
|
|
2498
|
+
* @returns binary File bytes
|
|
2499
|
+
* @throws ApiError
|
|
2500
|
+
*/
|
|
2501
|
+
static fileConvertedArchive(podId, path, withAssets = false) {
|
|
2502
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2503
|
+
method: 'GET',
|
|
2504
|
+
url: '/pods/{pod_id}/datastore/files/converted/archive',
|
|
2505
|
+
path: {
|
|
2506
|
+
'pod_id': podId,
|
|
2507
|
+
},
|
|
2508
|
+
query: {
|
|
2509
|
+
'path': path,
|
|
2510
|
+
'with_assets': withAssets,
|
|
2511
|
+
},
|
|
2512
|
+
errors: {
|
|
2513
|
+
422: `Validation Error`,
|
|
2514
|
+
},
|
|
2515
|
+
});
|
|
2516
|
+
}
|
|
2280
2517
|
/**
|
|
2281
2518
|
* Get Converted File Metadata
|
|
2282
2519
|
* @param podId
|
|
@@ -2371,7 +2608,7 @@ class FilesService {
|
|
|
2371
2608
|
* Create Folder
|
|
2372
2609
|
* @param podId
|
|
2373
2610
|
* @param requestBody
|
|
2374
|
-
* @returns
|
|
2611
|
+
* @returns FileDetailResponse Successful Response
|
|
2375
2612
|
* @throws ApiError
|
|
2376
2613
|
*/
|
|
2377
2614
|
static fileFolderCreate(podId, requestBody) {
|
|
@@ -2446,6 +2683,10 @@ class FunctionsNamespace {
|
|
|
2446
2683
|
constructor(client, podId) {
|
|
2447
2684
|
this.client = client;
|
|
2448
2685
|
this.podId = podId;
|
|
2686
|
+
this.permissions = {
|
|
2687
|
+
get: (name) => this.client.request(() => FunctionsService_js_1.FunctionsService.functionPermissionsGet(this.podId(), name)),
|
|
2688
|
+
replace: (name, payload) => this.client.request(() => FunctionsService_js_1.FunctionsService.functionPermissionsReplace(this.podId(), name, payload)),
|
|
2689
|
+
};
|
|
2449
2690
|
this.runs = {
|
|
2450
2691
|
create: (name, options = {}) => this.client.request(() => {
|
|
2451
2692
|
const payload = { input_data: options.input };
|
|
@@ -2508,10 +2749,10 @@ class FunctionsService {
|
|
|
2508
2749
|
}
|
|
2509
2750
|
/**
|
|
2510
2751
|
* Create Function
|
|
2511
|
-
* Create a new function in a pod. Do not send input_schema or
|
|
2752
|
+
* Create a new function in a pod. Do not send input_schema, output_schema, or config_schema; the platform derives those schemas from the function code and returns them in the response.
|
|
2512
2753
|
* @param podId
|
|
2513
2754
|
* @param requestBody
|
|
2514
|
-
* @returns
|
|
2755
|
+
* @returns FunctionActionResponse Successful Response
|
|
2515
2756
|
* @throws ApiError
|
|
2516
2757
|
*/
|
|
2517
2758
|
static functionCreate(podId, requestBody) {
|
|
@@ -2554,7 +2795,7 @@ class FunctionsService {
|
|
|
2554
2795
|
* Get a function by name
|
|
2555
2796
|
* @param podId
|
|
2556
2797
|
* @param functionName
|
|
2557
|
-
* @returns
|
|
2798
|
+
* @returns FunctionDetailResponse Successful Response
|
|
2558
2799
|
* @throws ApiError
|
|
2559
2800
|
*/
|
|
2560
2801
|
static functionGet(podId, functionName) {
|
|
@@ -2576,7 +2817,7 @@ class FunctionsService {
|
|
|
2576
2817
|
* @param podId
|
|
2577
2818
|
* @param functionName
|
|
2578
2819
|
* @param requestBody
|
|
2579
|
-
* @returns
|
|
2820
|
+
* @returns FunctionActionResponse Successful Response
|
|
2580
2821
|
* @throws ApiError
|
|
2581
2822
|
*/
|
|
2582
2823
|
static functionUpdate(podId, functionName, requestBody) {
|
|
@@ -2594,6 +2835,51 @@ class FunctionsService {
|
|
|
2594
2835
|
},
|
|
2595
2836
|
});
|
|
2596
2837
|
}
|
|
2838
|
+
/**
|
|
2839
|
+
* Get Function Resource Permissions
|
|
2840
|
+
* Get explicit resource grants assigned to a function.
|
|
2841
|
+
* @param podId
|
|
2842
|
+
* @param functionName
|
|
2843
|
+
* @returns FunctionPermissionsResponse Successful Response
|
|
2844
|
+
* @throws ApiError
|
|
2845
|
+
*/
|
|
2846
|
+
static functionPermissionsGet(podId, functionName) {
|
|
2847
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2848
|
+
method: 'GET',
|
|
2849
|
+
url: '/pods/{pod_id}/functions/{function_name}/permissions',
|
|
2850
|
+
path: {
|
|
2851
|
+
'pod_id': podId,
|
|
2852
|
+
'function_name': functionName,
|
|
2853
|
+
},
|
|
2854
|
+
errors: {
|
|
2855
|
+
422: `Validation Error`,
|
|
2856
|
+
},
|
|
2857
|
+
});
|
|
2858
|
+
}
|
|
2859
|
+
/**
|
|
2860
|
+
* Replace Function Resource Permissions
|
|
2861
|
+
* Replace explicit resource grants assigned to a function.
|
|
2862
|
+
* @param podId
|
|
2863
|
+
* @param functionName
|
|
2864
|
+
* @param requestBody
|
|
2865
|
+
* @returns FunctionPermissionsResponse Successful Response
|
|
2866
|
+
* @throws ApiError
|
|
2867
|
+
*/
|
|
2868
|
+
static functionPermissionsReplace(podId, functionName, requestBody) {
|
|
2869
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2870
|
+
method: 'PUT',
|
|
2871
|
+
url: '/pods/{pod_id}/functions/{function_name}/permissions',
|
|
2872
|
+
path: {
|
|
2873
|
+
'pod_id': podId,
|
|
2874
|
+
'function_name': functionName,
|
|
2875
|
+
},
|
|
2876
|
+
body: requestBody,
|
|
2877
|
+
mediaType: 'application/json',
|
|
2878
|
+
errors: {
|
|
2879
|
+
422: `Validation Error`,
|
|
2880
|
+
},
|
|
2881
|
+
});
|
|
2882
|
+
}
|
|
2597
2883
|
/**
|
|
2598
2884
|
* List Runs
|
|
2599
2885
|
* List runs for a function
|
|
@@ -2749,23 +3035,27 @@ exports.IntegrationsNamespace = void 0;
|
|
|
2749
3035
|
const AgentToolsService_js_1 = require("./openapi_client/services/AgentToolsService.js");
|
|
2750
3036
|
const ApplicationsService_js_1 = require("./openapi_client/services/ApplicationsService.js");
|
|
2751
3037
|
const IntegrationsService_js_1 = require("./openapi_client/services/IntegrationsService.js");
|
|
3038
|
+
function encodePath(value) {
|
|
3039
|
+
return encodeURIComponent(value);
|
|
3040
|
+
}
|
|
2752
3041
|
class IntegrationsNamespace {
|
|
2753
|
-
constructor(client) {
|
|
3042
|
+
constructor(client, http) {
|
|
2754
3043
|
this.client = client;
|
|
3044
|
+
this.http = http;
|
|
2755
3045
|
this.operations = {
|
|
2756
|
-
discover: (
|
|
2757
|
-
list: async (
|
|
2758
|
-
const response = await this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDiscover(
|
|
3046
|
+
discover: (scope, options = {}) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDiscover(scope.organizationId, scope.authConfigName, options.query, options.limit ?? 100)),
|
|
3047
|
+
list: async (scope, options = {}) => {
|
|
3048
|
+
const response = await this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDiscover(scope.organizationId, scope.authConfigName, options.query, options.limit ?? 100));
|
|
2759
3049
|
return response.items ?? [];
|
|
2760
3050
|
},
|
|
2761
|
-
get: (
|
|
2762
|
-
details: (
|
|
3051
|
+
get: (scope, operationName) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDetail(scope.organizationId, scope.authConfigName, operationName)),
|
|
3052
|
+
details: (scope, operationNames) => {
|
|
2763
3053
|
const body = { operation_names: operationNames };
|
|
2764
|
-
return this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDetailsBatch(
|
|
3054
|
+
return this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDetailsBatch(scope.organizationId, scope.authConfigName, body));
|
|
2765
3055
|
},
|
|
2766
|
-
execute: (
|
|
3056
|
+
execute: (scope, operationName, payload, accountId) => {
|
|
2767
3057
|
const body = { payload, account_id: accountId };
|
|
2768
|
-
return this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationExecute(
|
|
3058
|
+
return this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationExecute(scope.organizationId, scope.authConfigName, operationName, body));
|
|
2769
3059
|
},
|
|
2770
3060
|
};
|
|
2771
3061
|
this.triggers = {
|
|
@@ -2773,10 +3063,28 @@ class IntegrationsNamespace {
|
|
|
2773
3063
|
get: (triggerId) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationTriggerGet(triggerId)),
|
|
2774
3064
|
};
|
|
2775
3065
|
this.accounts = {
|
|
2776
|
-
list: (options = {}) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountList(options.applicationId, options.limit ?? 100, options.pageToken)),
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
3066
|
+
list: (organizationId, options = {}) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountList(organizationId, options.applicationId, options.limit ?? 100, options.pageToken)),
|
|
3067
|
+
create: (organizationId, payload) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountCreate(organizationId, payload)),
|
|
3068
|
+
get: (organizationId, accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountGet(organizationId, accountId)),
|
|
3069
|
+
credentials: (organizationId, accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountCredentialsGet(organizationId, accountId)),
|
|
3070
|
+
delete: (organizationId, accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountDelete(organizationId, accountId)),
|
|
3071
|
+
/**
|
|
3072
|
+
* @deprecated Use list/get/create with an organization id. Kept only for
|
|
3073
|
+
* callers that still need the response shape while migrating.
|
|
3074
|
+
*/
|
|
3075
|
+
listOrgScoped: (organizationId, options = {}) => this.http.request("GET", `/organizations/${encodePath(organizationId)}/integrations/accounts`, {
|
|
3076
|
+
params: {
|
|
3077
|
+
application_id: options.applicationId,
|
|
3078
|
+
limit: options.limit ?? 100,
|
|
3079
|
+
page_token: options.pageToken,
|
|
3080
|
+
},
|
|
3081
|
+
}),
|
|
3082
|
+
};
|
|
3083
|
+
this.authConfigs = {
|
|
3084
|
+
list: (organizationId, options = {}) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAuthConfigList(organizationId, options.limit ?? 100, options.pageToken)),
|
|
3085
|
+
create: (organizationId, payload) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAuthConfigCreate(organizationId, payload)),
|
|
3086
|
+
get: (organizationId, authConfigName) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAuthConfigGet(organizationId, authConfigName)),
|
|
3087
|
+
delete: (organizationId, authConfigName) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAuthConfigDelete(organizationId, authConfigName)),
|
|
2780
3088
|
};
|
|
2781
3089
|
}
|
|
2782
3090
|
list(options = {}) {
|
|
@@ -2792,9 +3100,22 @@ class IntegrationsNamespace {
|
|
|
2792
3100
|
};
|
|
2793
3101
|
return this.client.request(() => AgentToolsService_js_1.AgentToolsService.agentToolIntegrationHelperAgent(body));
|
|
2794
3102
|
}
|
|
2795
|
-
|
|
2796
|
-
const
|
|
2797
|
-
|
|
3103
|
+
async enableApp(organizationId, applicationId, options = {}) {
|
|
3104
|
+
const configs = await this.authConfigs.list(organizationId, { limit: 100 });
|
|
3105
|
+
const existing = configs.items.find((config) => config.application_id === applicationId && config.status === "ACTIVE");
|
|
3106
|
+
if (existing)
|
|
3107
|
+
return existing;
|
|
3108
|
+
return this.authConfigs.create(organizationId, {
|
|
3109
|
+
application_id: applicationId,
|
|
3110
|
+
provider: options.provider,
|
|
3111
|
+
config_source: options.config_source ?? "SYSTEM_DEFAULT",
|
|
3112
|
+
credential_config: options.credential_config ?? options.provider_config,
|
|
3113
|
+
name: options.name,
|
|
3114
|
+
});
|
|
3115
|
+
}
|
|
3116
|
+
createConnectRequest(organizationId, input) {
|
|
3117
|
+
const payload = typeof input === "string" ? { application_id: input } : input;
|
|
3118
|
+
return this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationConnectRequestCreate(organizationId, payload));
|
|
2798
3119
|
}
|
|
2799
3120
|
}
|
|
2800
3121
|
exports.IntegrationsNamespace = IntegrationsNamespace;
|
|
@@ -2861,24 +3182,6 @@ class AgentToolsService {
|
|
|
2861
3182
|
},
|
|
2862
3183
|
});
|
|
2863
3184
|
}
|
|
2864
|
-
/**
|
|
2865
|
-
* Agent Web Search Agent
|
|
2866
|
-
* Run the multi-step web search agent and return a synthesized answer.
|
|
2867
|
-
* @param requestBody
|
|
2868
|
-
* @returns WebSearchAgentResponse Successful Response
|
|
2869
|
-
* @throws ApiError
|
|
2870
|
-
*/
|
|
2871
|
-
static agentToolWebSearchAgent(requestBody) {
|
|
2872
|
-
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2873
|
-
method: 'POST',
|
|
2874
|
-
url: '/tools/web-search-agent',
|
|
2875
|
-
body: requestBody,
|
|
2876
|
-
mediaType: 'application/json',
|
|
2877
|
-
errors: {
|
|
2878
|
-
422: `Validation Error`,
|
|
2879
|
-
},
|
|
2880
|
-
});
|
|
2881
|
-
}
|
|
2882
3185
|
}
|
|
2883
3186
|
exports.AgentToolsService = AgentToolsService;
|
|
2884
3187
|
|
|
@@ -2975,19 +3278,44 @@ class ApplicationsService {
|
|
|
2975
3278
|
});
|
|
2976
3279
|
}
|
|
2977
3280
|
/**
|
|
2978
|
-
*
|
|
3281
|
+
* Get Application Skill
|
|
3282
|
+
* Get the skill guide markdown for an application. Pass `provider=lemma` or `provider=composio` to get provider-specific instructions when the app supports both. Falls back to the generic doc if no provider-specific file exists. Returns 404 if no skill doc has been generated yet.
|
|
2979
3283
|
* @param applicationId
|
|
3284
|
+
* @param provider Provider override: lemma or composio
|
|
3285
|
+
* @returns ApplicationSkillResponse Successful Response
|
|
3286
|
+
* @throws ApiError
|
|
3287
|
+
*/
|
|
3288
|
+
static applicationSkillGet(applicationId, provider) {
|
|
3289
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3290
|
+
method: 'GET',
|
|
3291
|
+
url: '/integrations/applications/{application_id}/skill',
|
|
3292
|
+
path: {
|
|
3293
|
+
'application_id': applicationId,
|
|
3294
|
+
},
|
|
3295
|
+
query: {
|
|
3296
|
+
'provider': provider,
|
|
3297
|
+
},
|
|
3298
|
+
errors: {
|
|
3299
|
+
422: `Validation Error`,
|
|
3300
|
+
},
|
|
3301
|
+
});
|
|
3302
|
+
}
|
|
3303
|
+
/**
|
|
3304
|
+
* Discover Application Operations
|
|
3305
|
+
* @param organizationId
|
|
3306
|
+
* @param authConfigName
|
|
2980
3307
|
* @param query
|
|
2981
3308
|
* @param limit
|
|
2982
3309
|
* @returns OperationDiscoverResponse Successful Response
|
|
2983
3310
|
* @throws ApiError
|
|
2984
3311
|
*/
|
|
2985
|
-
static applicationOperationDiscover(
|
|
3312
|
+
static applicationOperationDiscover(organizationId, authConfigName, query, limit = 100) {
|
|
2986
3313
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2987
3314
|
method: 'GET',
|
|
2988
|
-
url: '/integrations/
|
|
3315
|
+
url: '/organizations/{organization_id}/integrations/{auth_config_name}/operations',
|
|
2989
3316
|
path: {
|
|
2990
|
-
'
|
|
3317
|
+
'organization_id': organizationId,
|
|
3318
|
+
'auth_config_name': authConfigName,
|
|
2991
3319
|
},
|
|
2992
3320
|
query: {
|
|
2993
3321
|
'query': query,
|
|
@@ -3000,17 +3328,19 @@ class ApplicationsService {
|
|
|
3000
3328
|
}
|
|
3001
3329
|
/**
|
|
3002
3330
|
* Get Application Operation Details In Batch
|
|
3003
|
-
* @param
|
|
3331
|
+
* @param organizationId
|
|
3332
|
+
* @param authConfigName
|
|
3004
3333
|
* @param requestBody
|
|
3005
3334
|
* @returns OperationDetailsBatchResponse Successful Response
|
|
3006
3335
|
* @throws ApiError
|
|
3007
3336
|
*/
|
|
3008
|
-
static applicationOperationDetailsBatch(
|
|
3337
|
+
static applicationOperationDetailsBatch(organizationId, authConfigName, requestBody) {
|
|
3009
3338
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3010
3339
|
method: 'POST',
|
|
3011
|
-
url: '/integrations/
|
|
3340
|
+
url: '/organizations/{organization_id}/integrations/{auth_config_name}/operations/details',
|
|
3012
3341
|
path: {
|
|
3013
|
-
'
|
|
3342
|
+
'organization_id': organizationId,
|
|
3343
|
+
'auth_config_name': authConfigName,
|
|
3014
3344
|
},
|
|
3015
3345
|
body: requestBody,
|
|
3016
3346
|
mediaType: 'application/json',
|
|
@@ -3021,17 +3351,19 @@ class ApplicationsService {
|
|
|
3021
3351
|
}
|
|
3022
3352
|
/**
|
|
3023
3353
|
* Get Application Operation Details
|
|
3024
|
-
* @param
|
|
3354
|
+
* @param organizationId
|
|
3355
|
+
* @param authConfigName
|
|
3025
3356
|
* @param operationName
|
|
3026
3357
|
* @returns OperationDetail Successful Response
|
|
3027
3358
|
* @throws ApiError
|
|
3028
3359
|
*/
|
|
3029
|
-
static applicationOperationDetail(
|
|
3360
|
+
static applicationOperationDetail(organizationId, authConfigName, operationName) {
|
|
3030
3361
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3031
3362
|
method: 'GET',
|
|
3032
|
-
url: '/integrations/
|
|
3363
|
+
url: '/organizations/{organization_id}/integrations/{auth_config_name}/operations/{operation_name}',
|
|
3033
3364
|
path: {
|
|
3034
|
-
'
|
|
3365
|
+
'organization_id': organizationId,
|
|
3366
|
+
'auth_config_name': authConfigName,
|
|
3035
3367
|
'operation_name': operationName,
|
|
3036
3368
|
},
|
|
3037
3369
|
errors: {
|
|
@@ -3041,18 +3373,20 @@ class ApplicationsService {
|
|
|
3041
3373
|
}
|
|
3042
3374
|
/**
|
|
3043
3375
|
* Execute Application Operation
|
|
3044
|
-
* @param
|
|
3376
|
+
* @param organizationId
|
|
3377
|
+
* @param authConfigName
|
|
3045
3378
|
* @param operationName
|
|
3046
3379
|
* @param requestBody
|
|
3047
3380
|
* @returns OperationExecutionResponse Successful Response
|
|
3048
3381
|
* @throws ApiError
|
|
3049
3382
|
*/
|
|
3050
|
-
static applicationOperationExecute(
|
|
3383
|
+
static applicationOperationExecute(organizationId, authConfigName, operationName, requestBody) {
|
|
3051
3384
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3052
3385
|
method: 'POST',
|
|
3053
|
-
url: '/integrations/
|
|
3386
|
+
url: '/organizations/{organization_id}/integrations/{auth_config_name}/operations/{operation_name}/execute',
|
|
3054
3387
|
path: {
|
|
3055
|
-
'
|
|
3388
|
+
'organization_id': organizationId,
|
|
3389
|
+
'auth_config_name': authConfigName,
|
|
3056
3390
|
'operation_name': operationName,
|
|
3057
3391
|
},
|
|
3058
3392
|
body: requestBody,
|
|
@@ -3073,19 +3407,44 @@ exports.IntegrationsService = void 0;
|
|
|
3073
3407
|
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
3074
3408
|
const request_js_1 = require("./openapi_client/core/request.js");
|
|
3075
3409
|
class IntegrationsService {
|
|
3410
|
+
/**
|
|
3411
|
+
* OAuth Callback
|
|
3412
|
+
* Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
|
|
3413
|
+
* @param error
|
|
3414
|
+
* @param format
|
|
3415
|
+
* @returns string Successful Response
|
|
3416
|
+
* @throws ApiError
|
|
3417
|
+
*/
|
|
3418
|
+
static integrationOauthCallback(error, format) {
|
|
3419
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3420
|
+
method: 'GET',
|
|
3421
|
+
url: '/integrations/connect-requests/oauth/callback',
|
|
3422
|
+
query: {
|
|
3423
|
+
'error': error,
|
|
3424
|
+
'format': format,
|
|
3425
|
+
},
|
|
3426
|
+
errors: {
|
|
3427
|
+
422: `Validation Error`,
|
|
3428
|
+
},
|
|
3429
|
+
});
|
|
3430
|
+
}
|
|
3076
3431
|
/**
|
|
3077
3432
|
* List Accounts
|
|
3078
3433
|
* Get all connected accounts for the current user. Optionally filter by application_id or application_name
|
|
3434
|
+
* @param organizationId
|
|
3079
3435
|
* @param applicationId
|
|
3080
3436
|
* @param limit
|
|
3081
3437
|
* @param pageToken
|
|
3082
3438
|
* @returns AccountListResponseSchema Successful Response
|
|
3083
3439
|
* @throws ApiError
|
|
3084
3440
|
*/
|
|
3085
|
-
static integrationAccountList(applicationId, limit = 100, pageToken) {
|
|
3441
|
+
static integrationAccountList(organizationId, applicationId, limit = 100, pageToken) {
|
|
3086
3442
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3087
3443
|
method: 'GET',
|
|
3088
|
-
url: '/integrations/accounts',
|
|
3444
|
+
url: '/organizations/{organization_id}/integrations/accounts',
|
|
3445
|
+
path: {
|
|
3446
|
+
'organization_id': organizationId,
|
|
3447
|
+
},
|
|
3089
3448
|
query: {
|
|
3090
3449
|
'application_id': applicationId,
|
|
3091
3450
|
'limit': limit,
|
|
@@ -3096,38 +3455,150 @@ class IntegrationsService {
|
|
|
3096
3455
|
},
|
|
3097
3456
|
});
|
|
3098
3457
|
}
|
|
3458
|
+
/**
|
|
3459
|
+
* Create Account
|
|
3460
|
+
* Directly connect a credential-managed native account for an org auth config.
|
|
3461
|
+
* @param organizationId
|
|
3462
|
+
* @param requestBody
|
|
3463
|
+
* @returns AccountResponseSchema Successful Response
|
|
3464
|
+
* @throws ApiError
|
|
3465
|
+
*/
|
|
3466
|
+
static integrationAccountCreate(organizationId, requestBody) {
|
|
3467
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3468
|
+
method: 'POST',
|
|
3469
|
+
url: '/organizations/{organization_id}/integrations/accounts',
|
|
3470
|
+
path: {
|
|
3471
|
+
'organization_id': organizationId,
|
|
3472
|
+
},
|
|
3473
|
+
body: requestBody,
|
|
3474
|
+
mediaType: 'application/json',
|
|
3475
|
+
errors: {
|
|
3476
|
+
422: `Validation Error`,
|
|
3477
|
+
},
|
|
3478
|
+
});
|
|
3479
|
+
}
|
|
3099
3480
|
/**
|
|
3100
3481
|
* Delete Account
|
|
3101
3482
|
* Delete a connected account and revoke the connection
|
|
3483
|
+
* @param organizationId
|
|
3102
3484
|
* @param accountId
|
|
3103
3485
|
* @returns MessageResponseSchema Successful Response
|
|
3104
3486
|
* @throws ApiError
|
|
3105
3487
|
*/
|
|
3106
|
-
static integrationAccountDelete(accountId) {
|
|
3488
|
+
static integrationAccountDelete(organizationId, accountId) {
|
|
3489
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3490
|
+
method: 'DELETE',
|
|
3491
|
+
url: '/organizations/{organization_id}/integrations/accounts/{account_id}',
|
|
3492
|
+
path: {
|
|
3493
|
+
'organization_id': organizationId,
|
|
3494
|
+
'account_id': accountId,
|
|
3495
|
+
},
|
|
3496
|
+
errors: {
|
|
3497
|
+
422: `Validation Error`,
|
|
3498
|
+
},
|
|
3499
|
+
});
|
|
3500
|
+
}
|
|
3501
|
+
/**
|
|
3502
|
+
* Get Account
|
|
3503
|
+
* Get a specific account by ID
|
|
3504
|
+
* @param organizationId
|
|
3505
|
+
* @param accountId
|
|
3506
|
+
* @returns AccountResponseSchema Successful Response
|
|
3507
|
+
* @throws ApiError
|
|
3508
|
+
*/
|
|
3509
|
+
static integrationAccountGet(organizationId, accountId) {
|
|
3510
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3511
|
+
method: 'GET',
|
|
3512
|
+
url: '/organizations/{organization_id}/integrations/accounts/{account_id}',
|
|
3513
|
+
path: {
|
|
3514
|
+
'organization_id': organizationId,
|
|
3515
|
+
'account_id': accountId,
|
|
3516
|
+
},
|
|
3517
|
+
errors: {
|
|
3518
|
+
422: `Validation Error`,
|
|
3519
|
+
},
|
|
3520
|
+
});
|
|
3521
|
+
}
|
|
3522
|
+
/**
|
|
3523
|
+
* Get Credentials
|
|
3524
|
+
* Get the credentials for a specific account
|
|
3525
|
+
* @param organizationId
|
|
3526
|
+
* @param accountId
|
|
3527
|
+
* @returns AccountCredentialsResponseSchema Successful Response
|
|
3528
|
+
* @throws ApiError
|
|
3529
|
+
*/
|
|
3530
|
+
static integrationAccountCredentialsGet(organizationId, accountId) {
|
|
3531
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3532
|
+
method: 'GET',
|
|
3533
|
+
url: '/organizations/{organization_id}/integrations/accounts/{account_id}/credentials',
|
|
3534
|
+
path: {
|
|
3535
|
+
'organization_id': organizationId,
|
|
3536
|
+
'account_id': accountId,
|
|
3537
|
+
},
|
|
3538
|
+
errors: {
|
|
3539
|
+
422: `Validation Error`,
|
|
3540
|
+
},
|
|
3541
|
+
});
|
|
3542
|
+
}
|
|
3543
|
+
/**
|
|
3544
|
+
* List Auth Configs
|
|
3545
|
+
* @param organizationId
|
|
3546
|
+
* @param limit
|
|
3547
|
+
* @param pageToken
|
|
3548
|
+
* @returns AuthConfigListResponseSchema Successful Response
|
|
3549
|
+
* @throws ApiError
|
|
3550
|
+
*/
|
|
3551
|
+
static integrationAuthConfigList(organizationId, limit = 100, pageToken) {
|
|
3552
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3553
|
+
method: 'GET',
|
|
3554
|
+
url: '/organizations/{organization_id}/integrations/auth-configs',
|
|
3555
|
+
path: {
|
|
3556
|
+
'organization_id': organizationId,
|
|
3557
|
+
},
|
|
3558
|
+
query: {
|
|
3559
|
+
'limit': limit,
|
|
3560
|
+
'page_token': pageToken,
|
|
3561
|
+
},
|
|
3562
|
+
errors: {
|
|
3563
|
+
422: `Validation Error`,
|
|
3564
|
+
},
|
|
3565
|
+
});
|
|
3566
|
+
}
|
|
3567
|
+
/**
|
|
3568
|
+
* Create Auth Config
|
|
3569
|
+
* @param organizationId
|
|
3570
|
+
* @param requestBody
|
|
3571
|
+
* @returns AuthConfigResponseSchema Successful Response
|
|
3572
|
+
* @throws ApiError
|
|
3573
|
+
*/
|
|
3574
|
+
static integrationAuthConfigCreate(organizationId, requestBody) {
|
|
3107
3575
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3108
|
-
method: '
|
|
3109
|
-
url: '/
|
|
3576
|
+
method: 'POST',
|
|
3577
|
+
url: '/organizations/{organization_id}/integrations/auth-configs',
|
|
3110
3578
|
path: {
|
|
3111
|
-
'
|
|
3579
|
+
'organization_id': organizationId,
|
|
3112
3580
|
},
|
|
3581
|
+
body: requestBody,
|
|
3582
|
+
mediaType: 'application/json',
|
|
3113
3583
|
errors: {
|
|
3114
3584
|
422: `Validation Error`,
|
|
3115
3585
|
},
|
|
3116
3586
|
});
|
|
3117
3587
|
}
|
|
3118
3588
|
/**
|
|
3119
|
-
*
|
|
3120
|
-
*
|
|
3121
|
-
* @param
|
|
3122
|
-
* @returns
|
|
3589
|
+
* Delete Auth Config
|
|
3590
|
+
* @param organizationId
|
|
3591
|
+
* @param authConfigName
|
|
3592
|
+
* @returns boolean Successful Response
|
|
3123
3593
|
* @throws ApiError
|
|
3124
3594
|
*/
|
|
3125
|
-
static
|
|
3595
|
+
static integrationAuthConfigDelete(organizationId, authConfigName) {
|
|
3126
3596
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3127
|
-
method: '
|
|
3128
|
-
url: '/integrations/
|
|
3597
|
+
method: 'DELETE',
|
|
3598
|
+
url: '/organizations/{organization_id}/integrations/auth-configs/{auth_config_name}',
|
|
3129
3599
|
path: {
|
|
3130
|
-
'
|
|
3600
|
+
'organization_id': organizationId,
|
|
3601
|
+
'auth_config_name': authConfigName,
|
|
3131
3602
|
},
|
|
3132
3603
|
errors: {
|
|
3133
3604
|
422: `Validation Error`,
|
|
@@ -3135,18 +3606,19 @@ class IntegrationsService {
|
|
|
3135
3606
|
});
|
|
3136
3607
|
}
|
|
3137
3608
|
/**
|
|
3138
|
-
* Get
|
|
3139
|
-
*
|
|
3140
|
-
* @param
|
|
3141
|
-
* @returns
|
|
3609
|
+
* Get Auth Config
|
|
3610
|
+
* @param organizationId
|
|
3611
|
+
* @param authConfigName
|
|
3612
|
+
* @returns AuthConfigResponseSchema Successful Response
|
|
3142
3613
|
* @throws ApiError
|
|
3143
3614
|
*/
|
|
3144
|
-
static
|
|
3615
|
+
static integrationAuthConfigGet(organizationId, authConfigName) {
|
|
3145
3616
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3146
3617
|
method: 'GET',
|
|
3147
|
-
url: '/integrations/
|
|
3618
|
+
url: '/organizations/{organization_id}/integrations/auth-configs/{auth_config_name}',
|
|
3148
3619
|
path: {
|
|
3149
|
-
'
|
|
3620
|
+
'organization_id': organizationId,
|
|
3621
|
+
'auth_config_name': authConfigName,
|
|
3150
3622
|
},
|
|
3151
3623
|
errors: {
|
|
3152
3624
|
422: `Validation Error`,
|
|
@@ -3156,14 +3628,18 @@ class IntegrationsService {
|
|
|
3156
3628
|
/**
|
|
3157
3629
|
* Initiate Connect Request
|
|
3158
3630
|
* Initiate an OAuth connection request for an application
|
|
3631
|
+
* @param organizationId
|
|
3159
3632
|
* @param requestBody
|
|
3160
3633
|
* @returns ConnectRequestResponseSchema Successful Response
|
|
3161
3634
|
* @throws ApiError
|
|
3162
3635
|
*/
|
|
3163
|
-
static integrationConnectRequestCreate(requestBody) {
|
|
3636
|
+
static integrationConnectRequestCreate(organizationId, requestBody) {
|
|
3164
3637
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3165
3638
|
method: 'POST',
|
|
3166
|
-
url: '/integrations/connect-requests',
|
|
3639
|
+
url: '/organizations/{organization_id}/integrations/connect-requests',
|
|
3640
|
+
path: {
|
|
3641
|
+
'organization_id': organizationId,
|
|
3642
|
+
},
|
|
3167
3643
|
body: requestBody,
|
|
3168
3644
|
mediaType: 'application/json',
|
|
3169
3645
|
errors: {
|
|
@@ -3172,20 +3648,17 @@ class IntegrationsService {
|
|
|
3172
3648
|
});
|
|
3173
3649
|
}
|
|
3174
3650
|
/**
|
|
3175
|
-
*
|
|
3176
|
-
*
|
|
3177
|
-
* @
|
|
3178
|
-
* @param format
|
|
3179
|
-
* @returns string Successful Response
|
|
3651
|
+
* Get Integration Status
|
|
3652
|
+
* @param organizationId
|
|
3653
|
+
* @returns IntegrationStatusResponse Successful Response
|
|
3180
3654
|
* @throws ApiError
|
|
3181
3655
|
*/
|
|
3182
|
-
static
|
|
3656
|
+
static integrationStatusGet(organizationId) {
|
|
3183
3657
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3184
3658
|
method: 'GET',
|
|
3185
|
-
url: '/
|
|
3186
|
-
|
|
3187
|
-
'
|
|
3188
|
-
'format': format,
|
|
3659
|
+
url: '/organizations/{organization_id}/integrations/status',
|
|
3660
|
+
path: {
|
|
3661
|
+
'organization_id': organizationId,
|
|
3189
3662
|
},
|
|
3190
3663
|
errors: {
|
|
3191
3664
|
422: `Validation Error`,
|
|
@@ -3487,6 +3960,25 @@ class OrganizationsService {
|
|
|
3487
3960
|
},
|
|
3488
3961
|
});
|
|
3489
3962
|
}
|
|
3963
|
+
/**
|
|
3964
|
+
* Join Auto-Join Organization
|
|
3965
|
+
* Join an organization when the current user's email domain is allowed to auto-join
|
|
3966
|
+
* @param orgId
|
|
3967
|
+
* @returns OrganizationResponse Successful Response
|
|
3968
|
+
* @throws ApiError
|
|
3969
|
+
*/
|
|
3970
|
+
static orgJoinAutoJoin(orgId) {
|
|
3971
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3972
|
+
method: 'POST',
|
|
3973
|
+
url: '/organizations/{org_id}/join',
|
|
3974
|
+
path: {
|
|
3975
|
+
'org_id': orgId,
|
|
3976
|
+
},
|
|
3977
|
+
errors: {
|
|
3978
|
+
422: `Validation Error`,
|
|
3979
|
+
},
|
|
3980
|
+
});
|
|
3981
|
+
}
|
|
3490
3982
|
/**
|
|
3491
3983
|
* List Organization Members
|
|
3492
3984
|
* Get all members of an organization
|
|
@@ -3606,7 +4098,10 @@ class PodMembersNamespace {
|
|
|
3606
4098
|
return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberLookupByUserId(podId, userId));
|
|
3607
4099
|
}
|
|
3608
4100
|
updateRole(podId, podMemberId, role) {
|
|
3609
|
-
return this.client.request(() => PodMembersService_js_1.PodMembersService.
|
|
4101
|
+
return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberUpdateRoles(podId, podMemberId, { roles: [role] }));
|
|
4102
|
+
}
|
|
4103
|
+
updateRoles(podId, podMemberId, roles) {
|
|
4104
|
+
return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberUpdateRoles(podId, podMemberId, { roles }));
|
|
3610
4105
|
}
|
|
3611
4106
|
remove(podId, podMemberId) {
|
|
3612
4107
|
return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberRemove(podId, podMemberId));
|
|
@@ -3756,18 +4251,18 @@ class PodMembersService {
|
|
|
3756
4251
|
});
|
|
3757
4252
|
}
|
|
3758
4253
|
/**
|
|
3759
|
-
* Update Member
|
|
3760
|
-
* Update a pod member's
|
|
4254
|
+
* Update Member Roles
|
|
4255
|
+
* Update a pod member's roles
|
|
3761
4256
|
* @param podId
|
|
3762
4257
|
* @param podMemberId
|
|
3763
4258
|
* @param requestBody
|
|
3764
4259
|
* @returns PodMemberResponse Successful Response
|
|
3765
4260
|
* @throws ApiError
|
|
3766
4261
|
*/
|
|
3767
|
-
static
|
|
4262
|
+
static podMemberUpdateRoles(podId, podMemberId, requestBody) {
|
|
3768
4263
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3769
4264
|
method: 'PATCH',
|
|
3770
|
-
url: '/pods/{pod_id}/members/{pod_member_id}/
|
|
4265
|
+
url: '/pods/{pod_id}/members/{pod_member_id}/roles',
|
|
3771
4266
|
path: {
|
|
3772
4267
|
'pod_id': podId,
|
|
3773
4268
|
'pod_member_id': podMemberId,
|
|
@@ -3779,32 +4274,77 @@ class PodMembersService {
|
|
|
3779
4274
|
},
|
|
3780
4275
|
});
|
|
3781
4276
|
}
|
|
4277
|
+
}
|
|
4278
|
+
exports.PodMembersService = PodMembersService;
|
|
4279
|
+
|
|
4280
|
+
},
|
|
4281
|
+
"./namespaces/pod-permissions.js": function (module, exports, require) {
|
|
4282
|
+
"use strict";
|
|
4283
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4284
|
+
exports.PodPermissionsNamespace = void 0;
|
|
4285
|
+
const PodPermissionsService_js_1 = require("./openapi_client/services/PodPermissionsService.js");
|
|
4286
|
+
class PodPermissionsNamespace {
|
|
4287
|
+
constructor(client, http, podId) {
|
|
4288
|
+
this.client = client;
|
|
4289
|
+
this.http = http;
|
|
4290
|
+
this.podId = podId;
|
|
4291
|
+
}
|
|
4292
|
+
catalog(podId) {
|
|
4293
|
+
return this.client.request(() => PodPermissionsService_js_1.PodPermissionsService.podPermissionsCatalog(podId ?? this.podId()));
|
|
4294
|
+
}
|
|
4295
|
+
me(podId) {
|
|
4296
|
+
const targetPodId = encodeURIComponent(podId ?? this.podId());
|
|
4297
|
+
return this.http.request("GET", `/pods/${targetPodId}/permissions/me`);
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
exports.PodPermissionsNamespace = PodPermissionsNamespace;
|
|
4301
|
+
|
|
4302
|
+
},
|
|
4303
|
+
"./openapi_client/services/PodPermissionsService.js": function (module, exports, require) {
|
|
4304
|
+
"use strict";
|
|
4305
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4306
|
+
exports.PodPermissionsService = void 0;
|
|
4307
|
+
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
4308
|
+
const request_js_1 = require("./openapi_client/core/request.js");
|
|
4309
|
+
class PodPermissionsService {
|
|
3782
4310
|
/**
|
|
3783
|
-
*
|
|
3784
|
-
* Update a pod member's roles
|
|
4311
|
+
* Get Pod Permission Catalog
|
|
3785
4312
|
* @param podId
|
|
3786
|
-
* @
|
|
3787
|
-
* @param requestBody
|
|
3788
|
-
* @returns PodMemberResponse Successful Response
|
|
4313
|
+
* @returns PodPermissionCatalogResponse Successful Response
|
|
3789
4314
|
* @throws ApiError
|
|
3790
4315
|
*/
|
|
3791
|
-
static
|
|
4316
|
+
static podPermissionsCatalog(podId) {
|
|
3792
4317
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3793
|
-
method: '
|
|
3794
|
-
url: '/pods/{pod_id}/
|
|
4318
|
+
method: 'GET',
|
|
4319
|
+
url: '/pods/{pod_id}/permissions/catalog',
|
|
4320
|
+
path: {
|
|
4321
|
+
'pod_id': podId,
|
|
4322
|
+
},
|
|
4323
|
+
errors: {
|
|
4324
|
+
422: `Validation Error`,
|
|
4325
|
+
},
|
|
4326
|
+
});
|
|
4327
|
+
}
|
|
4328
|
+
/**
|
|
4329
|
+
* Get My Pod Permissions
|
|
4330
|
+
* @param podId
|
|
4331
|
+
* @returns PodEffectivePermissionsResponse Successful Response
|
|
4332
|
+
* @throws ApiError
|
|
4333
|
+
*/
|
|
4334
|
+
static podPermissionsMe(podId) {
|
|
4335
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4336
|
+
method: 'GET',
|
|
4337
|
+
url: '/pods/{pod_id}/permissions/me',
|
|
3795
4338
|
path: {
|
|
3796
4339
|
'pod_id': podId,
|
|
3797
|
-
'pod_member_id': podMemberId,
|
|
3798
4340
|
},
|
|
3799
|
-
body: requestBody,
|
|
3800
|
-
mediaType: 'application/json',
|
|
3801
4341
|
errors: {
|
|
3802
4342
|
422: `Validation Error`,
|
|
3803
4343
|
},
|
|
3804
4344
|
});
|
|
3805
4345
|
}
|
|
3806
4346
|
}
|
|
3807
|
-
exports.
|
|
4347
|
+
exports.PodPermissionsService = PodPermissionsService;
|
|
3808
4348
|
|
|
3809
4349
|
},
|
|
3810
4350
|
"./namespaces/pod-join-requests.js": function (module, exports, require) {
|
|
@@ -3993,12 +4533,7 @@ class PodsNamespace {
|
|
|
3993
4533
|
pageToken: options.pageToken ?? options.cursor,
|
|
3994
4534
|
});
|
|
3995
4535
|
}
|
|
3996
|
-
|
|
3997
|
-
params: {
|
|
3998
|
-
limit: options.limit ?? 100,
|
|
3999
|
-
page_token: options.pageToken ?? options.cursor,
|
|
4000
|
-
},
|
|
4001
|
-
});
|
|
4536
|
+
throw new Error("organizationId is required for pods.list(). Use listByOrganization(organizationId).");
|
|
4002
4537
|
}
|
|
4003
4538
|
listByOrganization(organizationId, options = {}) {
|
|
4004
4539
|
return this.client.request(() => PodsService_js_1.PodsService.podList(organizationId, options.limit ?? 100, options.pageToken ?? options.cursor));
|
|
@@ -4048,43 +4583,203 @@ class PodsService {
|
|
|
4048
4583
|
});
|
|
4049
4584
|
}
|
|
4050
4585
|
/**
|
|
4051
|
-
* List PodS by Organization
|
|
4052
|
-
* List all pods in an organization
|
|
4053
|
-
* @param organizationId
|
|
4054
|
-
* @param limit
|
|
4055
|
-
* @param pageToken
|
|
4056
|
-
* @returns PodListResponse Successful Response
|
|
4586
|
+
* List PodS by Organization
|
|
4587
|
+
* List all pods in an organization
|
|
4588
|
+
* @param organizationId
|
|
4589
|
+
* @param limit
|
|
4590
|
+
* @param pageToken
|
|
4591
|
+
* @returns PodListResponse Successful Response
|
|
4592
|
+
* @throws ApiError
|
|
4593
|
+
*/
|
|
4594
|
+
static podList(organizationId, limit = 100, pageToken) {
|
|
4595
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4596
|
+
method: 'GET',
|
|
4597
|
+
url: '/pods/organization/{organization_id}',
|
|
4598
|
+
path: {
|
|
4599
|
+
'organization_id': organizationId,
|
|
4600
|
+
},
|
|
4601
|
+
query: {
|
|
4602
|
+
'limit': limit,
|
|
4603
|
+
'page_token': pageToken,
|
|
4604
|
+
},
|
|
4605
|
+
errors: {
|
|
4606
|
+
422: `Validation Error`,
|
|
4607
|
+
},
|
|
4608
|
+
});
|
|
4609
|
+
}
|
|
4610
|
+
/**
|
|
4611
|
+
* Delete Pod
|
|
4612
|
+
* Delete a pod
|
|
4613
|
+
* @param podId
|
|
4614
|
+
* @returns void
|
|
4615
|
+
* @throws ApiError
|
|
4616
|
+
*/
|
|
4617
|
+
static podDelete(podId) {
|
|
4618
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4619
|
+
method: 'DELETE',
|
|
4620
|
+
url: '/pods/{pod_id}',
|
|
4621
|
+
path: {
|
|
4622
|
+
'pod_id': podId,
|
|
4623
|
+
},
|
|
4624
|
+
errors: {
|
|
4625
|
+
422: `Validation Error`,
|
|
4626
|
+
},
|
|
4627
|
+
});
|
|
4628
|
+
}
|
|
4629
|
+
/**
|
|
4630
|
+
* Get Pod
|
|
4631
|
+
* Get pod details
|
|
4632
|
+
* @param podId
|
|
4633
|
+
* @returns PodResponse Successful Response
|
|
4634
|
+
* @throws ApiError
|
|
4635
|
+
*/
|
|
4636
|
+
static podGet(podId) {
|
|
4637
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4638
|
+
method: 'GET',
|
|
4639
|
+
url: '/pods/{pod_id}',
|
|
4640
|
+
path: {
|
|
4641
|
+
'pod_id': podId,
|
|
4642
|
+
},
|
|
4643
|
+
errors: {
|
|
4644
|
+
422: `Validation Error`,
|
|
4645
|
+
},
|
|
4646
|
+
});
|
|
4647
|
+
}
|
|
4648
|
+
/**
|
|
4649
|
+
* Update Pod
|
|
4650
|
+
* Update pod details
|
|
4651
|
+
* @param podId
|
|
4652
|
+
* @param requestBody
|
|
4653
|
+
* @returns PodResponse Successful Response
|
|
4654
|
+
* @throws ApiError
|
|
4655
|
+
*/
|
|
4656
|
+
static podUpdate(podId, requestBody) {
|
|
4657
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4658
|
+
method: 'PUT',
|
|
4659
|
+
url: '/pods/{pod_id}',
|
|
4660
|
+
path: {
|
|
4661
|
+
'pod_id': podId,
|
|
4662
|
+
},
|
|
4663
|
+
body: requestBody,
|
|
4664
|
+
mediaType: 'application/json',
|
|
4665
|
+
errors: {
|
|
4666
|
+
422: `Validation Error`,
|
|
4667
|
+
},
|
|
4668
|
+
});
|
|
4669
|
+
}
|
|
4670
|
+
/**
|
|
4671
|
+
* Get Pod Config
|
|
4672
|
+
* Get pod configuration requirements (apps, flows) and user status
|
|
4673
|
+
* @param podId
|
|
4674
|
+
* @returns PodConfigResponse Successful Response
|
|
4675
|
+
* @throws ApiError
|
|
4676
|
+
*/
|
|
4677
|
+
static podConfigGet(podId) {
|
|
4678
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4679
|
+
method: 'GET',
|
|
4680
|
+
url: '/pods/{pod_id}/config',
|
|
4681
|
+
path: {
|
|
4682
|
+
'pod_id': podId,
|
|
4683
|
+
},
|
|
4684
|
+
errors: {
|
|
4685
|
+
422: `Validation Error`,
|
|
4686
|
+
},
|
|
4687
|
+
});
|
|
4688
|
+
}
|
|
4689
|
+
}
|
|
4690
|
+
exports.PodsService = PodsService;
|
|
4691
|
+
|
|
4692
|
+
},
|
|
4693
|
+
"./namespaces/pod-roles.js": function (module, exports, require) {
|
|
4694
|
+
"use strict";
|
|
4695
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4696
|
+
exports.PodRolesNamespace = void 0;
|
|
4697
|
+
const PodRolesService_js_1 = require("./openapi_client/services/PodRolesService.js");
|
|
4698
|
+
class PodRolesNamespace {
|
|
4699
|
+
constructor(client, podId) {
|
|
4700
|
+
this.client = client;
|
|
4701
|
+
this.podId = podId;
|
|
4702
|
+
this.permissions = {
|
|
4703
|
+
get: (roleName, podId) => this.client.request(() => PodRolesService_js_1.PodRolesService.podRolePermissionsGet(podId ?? this.podId(), roleName)),
|
|
4704
|
+
replace: (roleName, payload, podId) => this.client.request(() => PodRolesService_js_1.PodRolesService.podRolePermissionsReplace(podId ?? this.podId(), roleName, payload)),
|
|
4705
|
+
};
|
|
4706
|
+
}
|
|
4707
|
+
list(podId) {
|
|
4708
|
+
return this.client.request(() => PodRolesService_js_1.PodRolesService.podRolesList(podId ?? this.podId()));
|
|
4709
|
+
}
|
|
4710
|
+
create(payload, podId) {
|
|
4711
|
+
return this.client.request(() => PodRolesService_js_1.PodRolesService.podRolesCreate(podId ?? this.podId(), payload));
|
|
4712
|
+
}
|
|
4713
|
+
update(roleName, payload, podId) {
|
|
4714
|
+
return this.client.request(() => PodRolesService_js_1.PodRolesService.podRolesUpdate(podId ?? this.podId(), roleName, payload));
|
|
4715
|
+
}
|
|
4716
|
+
delete(roleName, podId) {
|
|
4717
|
+
return this.client.request(() => PodRolesService_js_1.PodRolesService.podRolesDelete(podId ?? this.podId(), roleName));
|
|
4718
|
+
}
|
|
4719
|
+
}
|
|
4720
|
+
exports.PodRolesNamespace = PodRolesNamespace;
|
|
4721
|
+
|
|
4722
|
+
},
|
|
4723
|
+
"./openapi_client/services/PodRolesService.js": function (module, exports, require) {
|
|
4724
|
+
"use strict";
|
|
4725
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4726
|
+
exports.PodRolesService = void 0;
|
|
4727
|
+
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
4728
|
+
const request_js_1 = require("./openapi_client/core/request.js");
|
|
4729
|
+
class PodRolesService {
|
|
4730
|
+
/**
|
|
4731
|
+
* List Pod Roles
|
|
4732
|
+
* @param podId
|
|
4733
|
+
* @returns PodRoleListResponse Successful Response
|
|
4734
|
+
* @throws ApiError
|
|
4735
|
+
*/
|
|
4736
|
+
static podRolesList(podId) {
|
|
4737
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4738
|
+
method: 'GET',
|
|
4739
|
+
url: '/pods/{pod_id}/roles',
|
|
4740
|
+
path: {
|
|
4741
|
+
'pod_id': podId,
|
|
4742
|
+
},
|
|
4743
|
+
errors: {
|
|
4744
|
+
422: `Validation Error`,
|
|
4745
|
+
},
|
|
4746
|
+
});
|
|
4747
|
+
}
|
|
4748
|
+
/**
|
|
4749
|
+
* Create Pod Role
|
|
4750
|
+
* @param podId
|
|
4751
|
+
* @param requestBody
|
|
4752
|
+
* @returns PodRoleResponse Successful Response
|
|
4057
4753
|
* @throws ApiError
|
|
4058
4754
|
*/
|
|
4059
|
-
static
|
|
4755
|
+
static podRolesCreate(podId, requestBody) {
|
|
4060
4756
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4061
|
-
method: '
|
|
4062
|
-
url: '/pods/
|
|
4757
|
+
method: 'POST',
|
|
4758
|
+
url: '/pods/{pod_id}/roles',
|
|
4063
4759
|
path: {
|
|
4064
|
-
'
|
|
4065
|
-
},
|
|
4066
|
-
query: {
|
|
4067
|
-
'limit': limit,
|
|
4068
|
-
'page_token': pageToken,
|
|
4760
|
+
'pod_id': podId,
|
|
4069
4761
|
},
|
|
4762
|
+
body: requestBody,
|
|
4763
|
+
mediaType: 'application/json',
|
|
4070
4764
|
errors: {
|
|
4071
4765
|
422: `Validation Error`,
|
|
4072
4766
|
},
|
|
4073
4767
|
});
|
|
4074
4768
|
}
|
|
4075
4769
|
/**
|
|
4076
|
-
* Delete Pod
|
|
4077
|
-
* Delete a pod
|
|
4770
|
+
* Delete Pod Role
|
|
4078
4771
|
* @param podId
|
|
4772
|
+
* @param roleName
|
|
4079
4773
|
* @returns void
|
|
4080
4774
|
* @throws ApiError
|
|
4081
4775
|
*/
|
|
4082
|
-
static
|
|
4776
|
+
static podRolesDelete(podId, roleName) {
|
|
4083
4777
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4084
4778
|
method: 'DELETE',
|
|
4085
|
-
url: '/pods/{pod_id}',
|
|
4779
|
+
url: '/pods/{pod_id}/roles/{role_name}',
|
|
4086
4780
|
path: {
|
|
4087
4781
|
'pod_id': podId,
|
|
4782
|
+
'role_name': roleName,
|
|
4088
4783
|
},
|
|
4089
4784
|
errors: {
|
|
4090
4785
|
422: `Validation Error`,
|
|
@@ -4092,67 +4787,73 @@ class PodsService {
|
|
|
4092
4787
|
});
|
|
4093
4788
|
}
|
|
4094
4789
|
/**
|
|
4095
|
-
*
|
|
4096
|
-
* Get pod details
|
|
4790
|
+
* Update Pod Role
|
|
4097
4791
|
* @param podId
|
|
4098
|
-
* @
|
|
4792
|
+
* @param roleName
|
|
4793
|
+
* @param requestBody
|
|
4794
|
+
* @returns PodRoleResponse Successful Response
|
|
4099
4795
|
* @throws ApiError
|
|
4100
4796
|
*/
|
|
4101
|
-
static
|
|
4797
|
+
static podRolesUpdate(podId, roleName, requestBody) {
|
|
4102
4798
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4103
|
-
method: '
|
|
4104
|
-
url: '/pods/{pod_id}',
|
|
4799
|
+
method: 'PATCH',
|
|
4800
|
+
url: '/pods/{pod_id}/roles/{role_name}',
|
|
4105
4801
|
path: {
|
|
4106
4802
|
'pod_id': podId,
|
|
4803
|
+
'role_name': roleName,
|
|
4107
4804
|
},
|
|
4805
|
+
body: requestBody,
|
|
4806
|
+
mediaType: 'application/json',
|
|
4108
4807
|
errors: {
|
|
4109
4808
|
422: `Validation Error`,
|
|
4110
4809
|
},
|
|
4111
4810
|
});
|
|
4112
4811
|
}
|
|
4113
4812
|
/**
|
|
4114
|
-
*
|
|
4115
|
-
* Update pod details
|
|
4813
|
+
* Get Pod Role Permissions
|
|
4116
4814
|
* @param podId
|
|
4117
|
-
* @param
|
|
4118
|
-
* @returns
|
|
4815
|
+
* @param roleName
|
|
4816
|
+
* @returns PodRolePermissionsResponse Successful Response
|
|
4119
4817
|
* @throws ApiError
|
|
4120
4818
|
*/
|
|
4121
|
-
static
|
|
4819
|
+
static podRolePermissionsGet(podId, roleName) {
|
|
4122
4820
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4123
|
-
method: '
|
|
4124
|
-
url: '/pods/{pod_id}',
|
|
4821
|
+
method: 'GET',
|
|
4822
|
+
url: '/pods/{pod_id}/roles/{role_name}/permissions',
|
|
4125
4823
|
path: {
|
|
4126
4824
|
'pod_id': podId,
|
|
4825
|
+
'role_name': roleName,
|
|
4127
4826
|
},
|
|
4128
|
-
body: requestBody,
|
|
4129
|
-
mediaType: 'application/json',
|
|
4130
4827
|
errors: {
|
|
4131
4828
|
422: `Validation Error`,
|
|
4132
4829
|
},
|
|
4133
4830
|
});
|
|
4134
4831
|
}
|
|
4135
4832
|
/**
|
|
4136
|
-
*
|
|
4137
|
-
* Get pod configuration requirements (apps, flows) and user status
|
|
4833
|
+
* Replace Pod Role Permissions
|
|
4138
4834
|
* @param podId
|
|
4139
|
-
* @
|
|
4835
|
+
* @param roleName
|
|
4836
|
+
* @param requestBody
|
|
4837
|
+
* @returns PodRolePermissionsResponse Successful Response
|
|
4140
4838
|
* @throws ApiError
|
|
4141
4839
|
*/
|
|
4142
|
-
static
|
|
4840
|
+
static podRolePermissionsReplace(podId, roleName, requestBody) {
|
|
4143
4841
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4144
|
-
method: '
|
|
4145
|
-
url: '/pods/{pod_id}/
|
|
4842
|
+
method: 'PUT',
|
|
4843
|
+
url: '/pods/{pod_id}/roles/{role_name}/permissions',
|
|
4146
4844
|
path: {
|
|
4147
4845
|
'pod_id': podId,
|
|
4846
|
+
'role_name': roleName,
|
|
4148
4847
|
},
|
|
4848
|
+
body: requestBody,
|
|
4849
|
+
mediaType: 'application/json',
|
|
4149
4850
|
errors: {
|
|
4150
4851
|
422: `Validation Error`,
|
|
4151
4852
|
},
|
|
4152
4853
|
});
|
|
4153
4854
|
}
|
|
4154
4855
|
}
|
|
4155
|
-
exports.
|
|
4856
|
+
exports.PodRolesService = PodRolesService;
|
|
4156
4857
|
|
|
4157
4858
|
},
|
|
4158
4859
|
"./namespaces/pod-surfaces.js": function (module, exports, require) {
|
|
@@ -4170,14 +4871,23 @@ class PodSurfacesNamespace {
|
|
|
4170
4871
|
create(podId, payload) {
|
|
4171
4872
|
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceCreate(podId, payload));
|
|
4172
4873
|
}
|
|
4173
|
-
|
|
4174
|
-
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.
|
|
4874
|
+
upsert(podId, platform, payload) {
|
|
4875
|
+
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpsertByPlatform(podId, platform, payload));
|
|
4175
4876
|
}
|
|
4176
|
-
|
|
4177
|
-
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.
|
|
4877
|
+
get(podId, surfaceRef) {
|
|
4878
|
+
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceGet(podId, surfaceRef));
|
|
4178
4879
|
}
|
|
4179
|
-
|
|
4180
|
-
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.
|
|
4880
|
+
updateConfig(podId, surfaceRef, payload) {
|
|
4881
|
+
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpdate(podId, surfaceRef, payload));
|
|
4882
|
+
}
|
|
4883
|
+
updateChannels(podId, surfaceRef, payload) {
|
|
4884
|
+
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpdateChannels(podId, surfaceRef, payload));
|
|
4885
|
+
}
|
|
4886
|
+
setupStatus(podId, surfaceRef) {
|
|
4887
|
+
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceSetupStatus(podId, surfaceRef));
|
|
4888
|
+
}
|
|
4889
|
+
toggle(podId, surfaceRef, isEnabled) {
|
|
4890
|
+
return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceToggle(podId, surfaceRef, { is_enabled: isEnabled }));
|
|
4181
4891
|
}
|
|
4182
4892
|
}
|
|
4183
4893
|
exports.PodSurfacesNamespace = PodSurfacesNamespace;
|
|
@@ -4255,20 +4965,63 @@ class AgentSurfacesService {
|
|
|
4255
4965
|
},
|
|
4256
4966
|
});
|
|
4257
4967
|
}
|
|
4968
|
+
/**
|
|
4969
|
+
* Upsert Surface By Platform
|
|
4970
|
+
* @param podId
|
|
4971
|
+
* @param platform
|
|
4972
|
+
* @param requestBody
|
|
4973
|
+
* @returns any Successful Response
|
|
4974
|
+
* @throws ApiError
|
|
4975
|
+
*/
|
|
4976
|
+
static agentSurfaceUpsertByPlatform(podId, platform, requestBody) {
|
|
4977
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4978
|
+
method: 'PUT',
|
|
4979
|
+
url: '/pods/{pod_id}/surfaces/{platform}',
|
|
4980
|
+
path: {
|
|
4981
|
+
'pod_id': podId,
|
|
4982
|
+
'platform': platform,
|
|
4983
|
+
},
|
|
4984
|
+
body: requestBody,
|
|
4985
|
+
mediaType: 'application/json',
|
|
4986
|
+
errors: {
|
|
4987
|
+
422: `Validation Error`,
|
|
4988
|
+
},
|
|
4989
|
+
});
|
|
4990
|
+
}
|
|
4991
|
+
/**
|
|
4992
|
+
* Delete Surface
|
|
4993
|
+
* @param podId
|
|
4994
|
+
* @param surfaceRef
|
|
4995
|
+
* @returns void
|
|
4996
|
+
* @throws ApiError
|
|
4997
|
+
*/
|
|
4998
|
+
static agentSurfaceDelete(podId, surfaceRef) {
|
|
4999
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5000
|
+
method: 'DELETE',
|
|
5001
|
+
url: '/pods/{pod_id}/surfaces/{surface_ref}',
|
|
5002
|
+
path: {
|
|
5003
|
+
'pod_id': podId,
|
|
5004
|
+
'surface_ref': surfaceRef,
|
|
5005
|
+
},
|
|
5006
|
+
errors: {
|
|
5007
|
+
422: `Validation Error`,
|
|
5008
|
+
},
|
|
5009
|
+
});
|
|
5010
|
+
}
|
|
4258
5011
|
/**
|
|
4259
5012
|
* Get Surface
|
|
4260
5013
|
* @param podId
|
|
4261
|
-
* @param
|
|
5014
|
+
* @param surfaceRef
|
|
4262
5015
|
* @returns any Successful Response
|
|
4263
5016
|
* @throws ApiError
|
|
4264
5017
|
*/
|
|
4265
|
-
static agentSurfaceGet(podId,
|
|
5018
|
+
static agentSurfaceGet(podId, surfaceRef) {
|
|
4266
5019
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4267
5020
|
method: 'GET',
|
|
4268
|
-
url: '/pods/{pod_id}/surfaces/{
|
|
5021
|
+
url: '/pods/{pod_id}/surfaces/{surface_ref}',
|
|
4269
5022
|
path: {
|
|
4270
5023
|
'pod_id': podId,
|
|
4271
|
-
'
|
|
5024
|
+
'surface_ref': surfaceRef,
|
|
4272
5025
|
},
|
|
4273
5026
|
errors: {
|
|
4274
5027
|
422: `Validation Error`,
|
|
@@ -4278,18 +5031,18 @@ class AgentSurfacesService {
|
|
|
4278
5031
|
/**
|
|
4279
5032
|
* Update Surface
|
|
4280
5033
|
* @param podId
|
|
4281
|
-
* @param
|
|
5034
|
+
* @param surfaceRef
|
|
4282
5035
|
* @param requestBody
|
|
4283
5036
|
* @returns any Successful Response
|
|
4284
5037
|
* @throws ApiError
|
|
4285
5038
|
*/
|
|
4286
|
-
static agentSurfaceUpdate(podId,
|
|
5039
|
+
static agentSurfaceUpdate(podId, surfaceRef, requestBody) {
|
|
4287
5040
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4288
5041
|
method: 'PATCH',
|
|
4289
|
-
url: '/pods/{pod_id}/surfaces/{
|
|
5042
|
+
url: '/pods/{pod_id}/surfaces/{surface_ref}',
|
|
4290
5043
|
path: {
|
|
4291
5044
|
'pod_id': podId,
|
|
4292
|
-
'
|
|
5045
|
+
'surface_ref': surfaceRef,
|
|
4293
5046
|
},
|
|
4294
5047
|
body: requestBody,
|
|
4295
5048
|
mediaType: 'application/json',
|
|
@@ -4301,17 +5054,17 @@ class AgentSurfacesService {
|
|
|
4301
5054
|
/**
|
|
4302
5055
|
* Get Admin Consent Info
|
|
4303
5056
|
* @param podId
|
|
4304
|
-
* @param
|
|
5057
|
+
* @param surfaceRef
|
|
4305
5058
|
* @returns AdminConsentInfoResponse Successful Response
|
|
4306
5059
|
* @throws ApiError
|
|
4307
5060
|
*/
|
|
4308
|
-
static agentSurfaceAdminConsentInfo(podId,
|
|
5061
|
+
static agentSurfaceAdminConsentInfo(podId, surfaceRef) {
|
|
4309
5062
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4310
5063
|
method: 'GET',
|
|
4311
|
-
url: '/pods/{pod_id}/surfaces/{
|
|
5064
|
+
url: '/pods/{pod_id}/surfaces/{surface_ref}/admin-consent',
|
|
4312
5065
|
path: {
|
|
4313
5066
|
'pod_id': podId,
|
|
4314
|
-
'
|
|
5067
|
+
'surface_ref': surfaceRef,
|
|
4315
5068
|
},
|
|
4316
5069
|
errors: {
|
|
4317
5070
|
422: `Validation Error`,
|
|
@@ -4319,20 +5072,20 @@ class AgentSurfacesService {
|
|
|
4319
5072
|
});
|
|
4320
5073
|
}
|
|
4321
5074
|
/**
|
|
4322
|
-
*
|
|
5075
|
+
* Update Surface Channels
|
|
4323
5076
|
* @param podId
|
|
4324
|
-
* @param
|
|
5077
|
+
* @param surfaceRef
|
|
4325
5078
|
* @param requestBody
|
|
4326
5079
|
* @returns any Successful Response
|
|
4327
5080
|
* @throws ApiError
|
|
4328
5081
|
*/
|
|
4329
|
-
static
|
|
5082
|
+
static agentSurfaceUpdateChannels(podId, surfaceRef, requestBody) {
|
|
4330
5083
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4331
|
-
method: '
|
|
4332
|
-
url: '/pods/{pod_id}/surfaces/{
|
|
5084
|
+
method: 'PUT',
|
|
5085
|
+
url: '/pods/{pod_id}/surfaces/{surface_ref}/channels',
|
|
4333
5086
|
path: {
|
|
4334
5087
|
'pod_id': podId,
|
|
4335
|
-
'
|
|
5088
|
+
'surface_ref': surfaceRef,
|
|
4336
5089
|
},
|
|
4337
5090
|
body: requestBody,
|
|
4338
5091
|
mediaType: 'application/json',
|
|
@@ -4342,20 +5095,43 @@ class AgentSurfacesService {
|
|
|
4342
5095
|
});
|
|
4343
5096
|
}
|
|
4344
5097
|
/**
|
|
4345
|
-
* Get
|
|
5098
|
+
* Get Surface Setup Status
|
|
4346
5099
|
* @param podId
|
|
4347
|
-
* @param
|
|
4348
|
-
* @returns
|
|
5100
|
+
* @param surfaceRef
|
|
5101
|
+
* @returns SurfaceSetupStatusResponse Successful Response
|
|
4349
5102
|
* @throws ApiError
|
|
4350
5103
|
*/
|
|
4351
|
-
static
|
|
5104
|
+
static agentSurfaceSetupStatus(podId, surfaceRef) {
|
|
4352
5105
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4353
5106
|
method: 'GET',
|
|
4354
|
-
url: '/pods/{pod_id}/surfaces/{
|
|
5107
|
+
url: '/pods/{pod_id}/surfaces/{surface_ref}/setup',
|
|
5108
|
+
path: {
|
|
5109
|
+
'pod_id': podId,
|
|
5110
|
+
'surface_ref': surfaceRef,
|
|
5111
|
+
},
|
|
5112
|
+
errors: {
|
|
5113
|
+
422: `Validation Error`,
|
|
5114
|
+
},
|
|
5115
|
+
});
|
|
5116
|
+
}
|
|
5117
|
+
/**
|
|
5118
|
+
* Toggle Surface
|
|
5119
|
+
* @param podId
|
|
5120
|
+
* @param surfaceRef
|
|
5121
|
+
* @param requestBody
|
|
5122
|
+
* @returns any Successful Response
|
|
5123
|
+
* @throws ApiError
|
|
5124
|
+
*/
|
|
5125
|
+
static agentSurfaceToggle(podId, surfaceRef, requestBody) {
|
|
5126
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5127
|
+
method: 'PATCH',
|
|
5128
|
+
url: '/pods/{pod_id}/surfaces/{surface_ref}/toggle',
|
|
4355
5129
|
path: {
|
|
4356
5130
|
'pod_id': podId,
|
|
4357
|
-
'
|
|
5131
|
+
'surface_ref': surfaceRef,
|
|
4358
5132
|
},
|
|
5133
|
+
body: requestBody,
|
|
5134
|
+
mediaType: 'application/json',
|
|
4359
5135
|
errors: {
|
|
4360
5136
|
422: `Validation Error`,
|
|
4361
5137
|
},
|
|
@@ -4498,11 +5274,11 @@ class RecordsService {
|
|
|
4498
5274
|
}
|
|
4499
5275
|
/**
|
|
4500
5276
|
* Create Record
|
|
4501
|
-
* Insert a record into a table. Reserved tables (`reserved_*`) are system-managed and cannot be mutated through record write endpoints.
|
|
5277
|
+
* Insert a record into a table. Returns the created record object keyed by column name (no envelope). Reserved tables (`reserved_*`) are system-managed and cannot be mutated through record write endpoints.
|
|
4502
5278
|
* @param podId
|
|
4503
5279
|
* @param tableName
|
|
4504
5280
|
* @param requestBody
|
|
4505
|
-
* @returns
|
|
5281
|
+
* @returns any Successful Response
|
|
4506
5282
|
* @throws ApiError
|
|
4507
5283
|
*/
|
|
4508
5284
|
static recordCreate(podId, tableName, requestBody) {
|
|
@@ -4522,11 +5298,11 @@ class RecordsService {
|
|
|
4522
5298
|
}
|
|
4523
5299
|
/**
|
|
4524
5300
|
* Bulk Create
|
|
4525
|
-
* Insert multiple records in one request.
|
|
5301
|
+
* Insert multiple records in one request. Returns the affected-row count.
|
|
4526
5302
|
* @param podId
|
|
4527
5303
|
* @param tableName
|
|
4528
5304
|
* @param requestBody
|
|
4529
|
-
* @returns
|
|
5305
|
+
* @returns DatastoreCountResponse Successful Response
|
|
4530
5306
|
* @throws ApiError
|
|
4531
5307
|
*/
|
|
4532
5308
|
static recordBulkCreate(podId, tableName, requestBody) {
|
|
@@ -4546,11 +5322,11 @@ class RecordsService {
|
|
|
4546
5322
|
}
|
|
4547
5323
|
/**
|
|
4548
5324
|
* Bulk Delete
|
|
4549
|
-
* Delete multiple records by primary key values.
|
|
5325
|
+
* Delete multiple records by primary key values. Returns the affected-row count.
|
|
4550
5326
|
* @param podId
|
|
4551
5327
|
* @param tableName
|
|
4552
5328
|
* @param requestBody
|
|
4553
|
-
* @returns
|
|
5329
|
+
* @returns DatastoreCountResponse Successful Response
|
|
4554
5330
|
* @throws ApiError
|
|
4555
5331
|
*/
|
|
4556
5332
|
static recordBulkDelete(podId, tableName, requestBody) {
|
|
@@ -4570,11 +5346,11 @@ class RecordsService {
|
|
|
4570
5346
|
}
|
|
4571
5347
|
/**
|
|
4572
5348
|
* Bulk Update
|
|
4573
|
-
* Update multiple records in one request (each item needs primary key).
|
|
5349
|
+
* Update multiple records in one request (each item needs primary key). Returns the affected-row count.
|
|
4574
5350
|
* @param podId
|
|
4575
5351
|
* @param tableName
|
|
4576
5352
|
* @param requestBody
|
|
4577
|
-
* @returns
|
|
5353
|
+
* @returns DatastoreCountResponse Successful Response
|
|
4578
5354
|
* @throws ApiError
|
|
4579
5355
|
*/
|
|
4580
5356
|
static recordBulkUpdate(podId, tableName, requestBody) {
|
|
@@ -4598,7 +5374,7 @@ class RecordsService {
|
|
|
4598
5374
|
* @param podId
|
|
4599
5375
|
* @param tableName
|
|
4600
5376
|
* @param recordId
|
|
4601
|
-
* @returns
|
|
5377
|
+
* @returns void
|
|
4602
5378
|
* @throws ApiError
|
|
4603
5379
|
*/
|
|
4604
5380
|
static recordDelete(podId, tableName, recordId) {
|
|
@@ -4617,11 +5393,11 @@ class RecordsService {
|
|
|
4617
5393
|
}
|
|
4618
5394
|
/**
|
|
4619
5395
|
* Get Record
|
|
4620
|
-
* Fetch one record by primary key value. The `record_id` path segment is the table's primary key value as stored in the table, not necessarily a UUID.
|
|
5396
|
+
* Fetch one record by primary key value (returns the record object, no envelope). The `record_id` path segment is the table's primary key value as stored in the table, not necessarily a UUID.
|
|
4621
5397
|
* @param podId
|
|
4622
5398
|
* @param tableName
|
|
4623
5399
|
* @param recordId
|
|
4624
|
-
* @returns
|
|
5400
|
+
* @returns any Successful Response
|
|
4625
5401
|
* @throws ApiError
|
|
4626
5402
|
*/
|
|
4627
5403
|
static recordGet(podId, tableName, recordId) {
|
|
@@ -4640,12 +5416,12 @@ class RecordsService {
|
|
|
4640
5416
|
}
|
|
4641
5417
|
/**
|
|
4642
5418
|
* Update Record
|
|
4643
|
-
* Patch a record by primary key.
|
|
5419
|
+
* Patch a record by primary key. Returns the updated record object (no envelope).
|
|
4644
5420
|
* @param podId
|
|
4645
5421
|
* @param tableName
|
|
4646
5422
|
* @param recordId
|
|
4647
5423
|
* @param requestBody
|
|
4648
|
-
* @returns
|
|
5424
|
+
* @returns any Successful Response
|
|
4649
5425
|
* @throws ApiError
|
|
4650
5426
|
*/
|
|
4651
5427
|
static recordUpdate(podId, tableName, recordId, requestBody) {
|
|
@@ -4667,6 +5443,117 @@ class RecordsService {
|
|
|
4667
5443
|
}
|
|
4668
5444
|
exports.RecordsService = RecordsService;
|
|
4669
5445
|
|
|
5446
|
+
},
|
|
5447
|
+
"./namespaces/resource-access.js": function (module, exports, require) {
|
|
5448
|
+
"use strict";
|
|
5449
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5450
|
+
exports.ResourceAccessNamespace = void 0;
|
|
5451
|
+
const PodResourceAccessService_js_1 = require("./openapi_client/services/PodResourceAccessService.js");
|
|
5452
|
+
class ResourceAccessNamespace {
|
|
5453
|
+
constructor(client, podId) {
|
|
5454
|
+
this.client = client;
|
|
5455
|
+
this.podId = podId;
|
|
5456
|
+
}
|
|
5457
|
+
get(resourceType, resourceName, podId) {
|
|
5458
|
+
return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceName));
|
|
5459
|
+
}
|
|
5460
|
+
replaceGrant(resourceType, resourceName, granteeType, granteeId, payload, podId) {
|
|
5461
|
+
return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantReplace(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId, payload));
|
|
5462
|
+
}
|
|
5463
|
+
deleteGrant(resourceType, resourceName, granteeType, granteeId, podId) {
|
|
5464
|
+
return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId));
|
|
5465
|
+
}
|
|
5466
|
+
}
|
|
5467
|
+
exports.ResourceAccessNamespace = ResourceAccessNamespace;
|
|
5468
|
+
|
|
5469
|
+
},
|
|
5470
|
+
"./openapi_client/services/PodResourceAccessService.js": function (module, exports, require) {
|
|
5471
|
+
"use strict";
|
|
5472
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5473
|
+
exports.PodResourceAccessService = void 0;
|
|
5474
|
+
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
5475
|
+
const request_js_1 = require("./openapi_client/core/request.js");
|
|
5476
|
+
class PodResourceAccessService {
|
|
5477
|
+
/**
|
|
5478
|
+
* Get Resource Access
|
|
5479
|
+
* @param podId
|
|
5480
|
+
* @param resourceType
|
|
5481
|
+
* @param resourceName
|
|
5482
|
+
* @returns ResourceAccessResponse Successful Response
|
|
5483
|
+
* @throws ApiError
|
|
5484
|
+
*/
|
|
5485
|
+
static podResourceAccessGet(podId, resourceType, resourceName) {
|
|
5486
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5487
|
+
method: 'GET',
|
|
5488
|
+
url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access',
|
|
5489
|
+
path: {
|
|
5490
|
+
'pod_id': podId,
|
|
5491
|
+
'resource_type': resourceType,
|
|
5492
|
+
'resource_name': resourceName,
|
|
5493
|
+
},
|
|
5494
|
+
errors: {
|
|
5495
|
+
422: `Validation Error`,
|
|
5496
|
+
},
|
|
5497
|
+
});
|
|
5498
|
+
}
|
|
5499
|
+
/**
|
|
5500
|
+
* Delete Resource Access Grant
|
|
5501
|
+
* @param podId
|
|
5502
|
+
* @param resourceType
|
|
5503
|
+
* @param resourceName
|
|
5504
|
+
* @param granteeType
|
|
5505
|
+
* @param granteeId
|
|
5506
|
+
* @returns ResourceAccessResponse Successful Response
|
|
5507
|
+
* @throws ApiError
|
|
5508
|
+
*/
|
|
5509
|
+
static podResourceAccessGrantDelete(podId, resourceType, resourceName, granteeType, granteeId) {
|
|
5510
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5511
|
+
method: 'DELETE',
|
|
5512
|
+
url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access/grantees/{grantee_type}/{grantee_id}',
|
|
5513
|
+
path: {
|
|
5514
|
+
'pod_id': podId,
|
|
5515
|
+
'resource_type': resourceType,
|
|
5516
|
+
'resource_name': resourceName,
|
|
5517
|
+
'grantee_type': granteeType,
|
|
5518
|
+
'grantee_id': granteeId,
|
|
5519
|
+
},
|
|
5520
|
+
errors: {
|
|
5521
|
+
422: `Validation Error`,
|
|
5522
|
+
},
|
|
5523
|
+
});
|
|
5524
|
+
}
|
|
5525
|
+
/**
|
|
5526
|
+
* Replace Resource Access Grant
|
|
5527
|
+
* @param podId
|
|
5528
|
+
* @param resourceType
|
|
5529
|
+
* @param resourceName
|
|
5530
|
+
* @param granteeType
|
|
5531
|
+
* @param granteeId
|
|
5532
|
+
* @param requestBody
|
|
5533
|
+
* @returns ResourceAccessResponse Successful Response
|
|
5534
|
+
* @throws ApiError
|
|
5535
|
+
*/
|
|
5536
|
+
static podResourceAccessGrantReplace(podId, resourceType, resourceName, granteeType, granteeId, requestBody) {
|
|
5537
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5538
|
+
method: 'PUT',
|
|
5539
|
+
url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access/grantees/{grantee_type}/{grantee_id}',
|
|
5540
|
+
path: {
|
|
5541
|
+
'pod_id': podId,
|
|
5542
|
+
'resource_type': resourceType,
|
|
5543
|
+
'resource_name': resourceName,
|
|
5544
|
+
'grantee_type': granteeType,
|
|
5545
|
+
'grantee_id': granteeId,
|
|
5546
|
+
},
|
|
5547
|
+
body: requestBody,
|
|
5548
|
+
mediaType: 'application/json',
|
|
5549
|
+
errors: {
|
|
5550
|
+
422: `Validation Error`,
|
|
5551
|
+
},
|
|
5552
|
+
});
|
|
5553
|
+
}
|
|
5554
|
+
}
|
|
5555
|
+
exports.PodResourceAccessService = PodResourceAccessService;
|
|
5556
|
+
|
|
4670
5557
|
},
|
|
4671
5558
|
"./namespaces/resources.js": function (module, exports, require) {
|
|
4672
5559
|
"use strict";
|
|
@@ -4718,7 +5605,7 @@ class SchedulesNamespace {
|
|
|
4718
5605
|
this.podId = podId;
|
|
4719
5606
|
}
|
|
4720
5607
|
list(options = {}) {
|
|
4721
|
-
return this.client.request(() => SchedulesService_js_1.SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.limit ?? 100, options.pageToken));
|
|
5608
|
+
return this.client.request(() => SchedulesService_js_1.SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.name, options.limit ?? 100, options.pageToken));
|
|
4722
5609
|
}
|
|
4723
5610
|
create(payload) {
|
|
4724
5611
|
return this.client.request(() => SchedulesService_js_1.SchedulesService.scheduleCreate(this.podId(), payload));
|
|
@@ -4751,12 +5638,13 @@ class SchedulesService {
|
|
|
4751
5638
|
* @param isActive
|
|
4752
5639
|
* @param agentName
|
|
4753
5640
|
* @param workflowName
|
|
5641
|
+
* @param name
|
|
4754
5642
|
* @param limit
|
|
4755
5643
|
* @param pageToken
|
|
4756
5644
|
* @returns ScheduleListResponse Successful Response
|
|
4757
5645
|
* @throws ApiError
|
|
4758
5646
|
*/
|
|
4759
|
-
static scheduleList(podId, scheduleType, isActive, agentName, workflowName, limit = 100, pageToken) {
|
|
5647
|
+
static scheduleList(podId, scheduleType, isActive, agentName, workflowName, name, limit = 100, pageToken) {
|
|
4760
5648
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
4761
5649
|
method: 'GET',
|
|
4762
5650
|
url: '/pods/{pod_id}/schedules',
|
|
@@ -4768,6 +5656,7 @@ class SchedulesService {
|
|
|
4768
5656
|
'is_active': isActive,
|
|
4769
5657
|
'agent_name': agentName,
|
|
4770
5658
|
'workflow_name': workflowName,
|
|
5659
|
+
'name': name,
|
|
4771
5660
|
'limit': limit,
|
|
4772
5661
|
'page_token': pageToken,
|
|
4773
5662
|
},
|
|
@@ -4781,7 +5670,7 @@ class SchedulesService {
|
|
|
4781
5670
|
* Create a new pod schedule.
|
|
4782
5671
|
* @param podId
|
|
4783
5672
|
* @param requestBody
|
|
4784
|
-
* @returns
|
|
5673
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
4785
5674
|
* @throws ApiError
|
|
4786
5675
|
*/
|
|
4787
5676
|
static scheduleCreate(podId, requestBody) {
|
|
@@ -4824,7 +5713,7 @@ class SchedulesService {
|
|
|
4824
5713
|
* Get a schedule by ID.
|
|
4825
5714
|
* @param podId
|
|
4826
5715
|
* @param scheduleId
|
|
4827
|
-
* @returns
|
|
5716
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
4828
5717
|
* @throws ApiError
|
|
4829
5718
|
*/
|
|
4830
5719
|
static scheduleGet(podId, scheduleId) {
|
|
@@ -4846,7 +5735,7 @@ class SchedulesService {
|
|
|
4846
5735
|
* @param podId
|
|
4847
5736
|
* @param scheduleId
|
|
4848
5737
|
* @param requestBody
|
|
4849
|
-
* @returns
|
|
5738
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
4850
5739
|
* @throws ApiError
|
|
4851
5740
|
*/
|
|
4852
5741
|
static scheduleUpdate(podId, scheduleId, requestBody) {
|
|
@@ -4951,7 +5840,7 @@ class TablesService {
|
|
|
4951
5840
|
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
4952
5841
|
* @param podId
|
|
4953
5842
|
* @param requestBody
|
|
4954
|
-
* @returns
|
|
5843
|
+
* @returns TableDetailResponse Successful Response
|
|
4955
5844
|
* @throws ApiError
|
|
4956
5845
|
*/
|
|
4957
5846
|
static tableCreate(podId, requestBody) {
|
|
@@ -4973,7 +5862,7 @@ class TablesService {
|
|
|
4973
5862
|
* Delete a table and all records in it.
|
|
4974
5863
|
* @param podId
|
|
4975
5864
|
* @param tableName
|
|
4976
|
-
* @returns
|
|
5865
|
+
* @returns void
|
|
4977
5866
|
* @throws ApiError
|
|
4978
5867
|
*/
|
|
4979
5868
|
static tableDelete(podId, tableName) {
|
|
@@ -4994,7 +5883,7 @@ class TablesService {
|
|
|
4994
5883
|
* Get table schema metadata by table name.
|
|
4995
5884
|
* @param podId
|
|
4996
5885
|
* @param tableName
|
|
4997
|
-
* @returns
|
|
5886
|
+
* @returns TableDetailResponse Successful Response
|
|
4998
5887
|
* @throws ApiError
|
|
4999
5888
|
*/
|
|
5000
5889
|
static tableGet(podId, tableName) {
|
|
@@ -5016,7 +5905,7 @@ class TablesService {
|
|
|
5016
5905
|
* @param podId
|
|
5017
5906
|
* @param tableName
|
|
5018
5907
|
* @param requestBody
|
|
5019
|
-
* @returns
|
|
5908
|
+
* @returns TableDetailResponse Successful Response
|
|
5020
5909
|
* @throws ApiError
|
|
5021
5910
|
*/
|
|
5022
5911
|
static tableUpdate(podId, tableName, requestBody) {
|
|
@@ -5040,7 +5929,7 @@ class TablesService {
|
|
|
5040
5929
|
* @param podId
|
|
5041
5930
|
* @param tableName
|
|
5042
5931
|
* @param requestBody
|
|
5043
|
-
* @returns
|
|
5932
|
+
* @returns TableDetailResponse Successful Response
|
|
5044
5933
|
* @throws ApiError
|
|
5045
5934
|
*/
|
|
5046
5935
|
static tableColumnAdd(podId, tableName, requestBody) {
|
|
@@ -5064,7 +5953,7 @@ class TablesService {
|
|
|
5064
5953
|
* @param podId
|
|
5065
5954
|
* @param tableName
|
|
5066
5955
|
* @param columnName
|
|
5067
|
-
* @returns
|
|
5956
|
+
* @returns void
|
|
5068
5957
|
* @throws ApiError
|
|
5069
5958
|
*/
|
|
5070
5959
|
static tableColumnRemove(podId, tableName, columnName) {
|
|
@@ -5164,7 +6053,6 @@ exports.UsersService = UsersService;
|
|
|
5164
6053
|
"use strict";
|
|
5165
6054
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5166
6055
|
exports.WorkflowsNamespace = void 0;
|
|
5167
|
-
const http_js_1 = require("./http.js");
|
|
5168
6056
|
const WorkflowsService_js_1 = require("./openapi_client/services/WorkflowsService.js");
|
|
5169
6057
|
class WorkflowsNamespace {
|
|
5170
6058
|
constructor(client, http, podId) {
|
|
@@ -5175,14 +6063,19 @@ class WorkflowsNamespace {
|
|
|
5175
6063
|
update: (workflowName, graph) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowGraphUpdate(this.podId(), workflowName, graph)),
|
|
5176
6064
|
};
|
|
5177
6065
|
this.runs = {
|
|
5178
|
-
|
|
6066
|
+
/**
|
|
6067
|
+
* Create a run. Runs take no inputs: when the workflow starts with a
|
|
6068
|
+
* form, the returned run is WAITING with `active_wait` describing the
|
|
6069
|
+
* form to render and submit via `runs.submitForm`.
|
|
6070
|
+
*/
|
|
6071
|
+
create: (workflowName) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunCreate(this.podId(), workflowName)),
|
|
5179
6072
|
list: (workflowName, options = {}) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunList(this.podId(), workflowName, options.limit ?? 100, options.pageToken)),
|
|
5180
6073
|
waitingAssignedToMe: (options = {}) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunWaitingAssignedToMe(this.podId(), options.limit ?? 100, options.pageToken)),
|
|
5181
6074
|
get: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunGet(podId, runId)),
|
|
5182
|
-
|
|
6075
|
+
/** Submit the form a run is waiting on. node_id must match active_wait.node_id. */
|
|
6076
|
+
submitForm: (runId, payload, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunFormSubmit(podId, runId, payload)),
|
|
5183
6077
|
visualize: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunVisualize(podId, runId)),
|
|
5184
|
-
cancel: (runId, podId = this.podId()) => this.
|
|
5185
|
-
retry: (runId, podId = this.podId()) => this.postRunAction(runId, "retry", podId),
|
|
6078
|
+
cancel: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunCancel(podId, runId)),
|
|
5186
6079
|
};
|
|
5187
6080
|
}
|
|
5188
6081
|
list(options = {}) {
|
|
@@ -5203,19 +6096,6 @@ class WorkflowsNamespace {
|
|
|
5203
6096
|
visualize(workflowName) {
|
|
5204
6097
|
return this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowVisualize(this.podId(), workflowName));
|
|
5205
6098
|
}
|
|
5206
|
-
async postRunAction(runId, action, podId) {
|
|
5207
|
-
const encodedPodId = encodeURIComponent(podId);
|
|
5208
|
-
const encodedRunId = encodeURIComponent(runId);
|
|
5209
|
-
try {
|
|
5210
|
-
return await this.http.request("POST", `/pods/${encodedPodId}/workflow-runs/${encodedRunId}/${action}`, { body: {} });
|
|
5211
|
-
}
|
|
5212
|
-
catch (error) {
|
|
5213
|
-
if (error instanceof http_js_1.ApiError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
5214
|
-
return this.http.request("POST", `/pods/${encodedPodId}/flow-runs/${encodedRunId}/${action}`, { body: {} });
|
|
5215
|
-
}
|
|
5216
|
-
throw error;
|
|
5217
|
-
}
|
|
5218
|
-
}
|
|
5219
6099
|
}
|
|
5220
6100
|
exports.WorkflowsNamespace = WorkflowsNamespace;
|
|
5221
6101
|
|
|
@@ -5229,7 +6109,7 @@ const request_js_1 = require("./openapi_client/core/request.js");
|
|
|
5229
6109
|
class WorkflowsService {
|
|
5230
6110
|
/**
|
|
5231
6111
|
* List Workflow Runs Waiting For Current User
|
|
5232
|
-
*
|
|
6112
|
+
* The current user's approval queue: active form waits assigned to them, with the owning run.
|
|
5233
6113
|
* @param podId
|
|
5234
6114
|
* @param limit
|
|
5235
6115
|
* @param pageToken
|
|
@@ -5254,10 +6134,10 @@ class WorkflowsService {
|
|
|
5254
6134
|
}
|
|
5255
6135
|
/**
|
|
5256
6136
|
* Get Workflow Run
|
|
5257
|
-
* Get current state, context,
|
|
6137
|
+
* Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
|
|
5258
6138
|
* @param podId
|
|
5259
6139
|
* @param runId
|
|
5260
|
-
* @returns
|
|
6140
|
+
* @returns WorkflowRunResponse Successful Response
|
|
5261
6141
|
* @throws ApiError
|
|
5262
6142
|
*/
|
|
5263
6143
|
static workflowRunGet(podId, runId) {
|
|
@@ -5274,71 +6154,65 @@ class WorkflowsService {
|
|
|
5274
6154
|
});
|
|
5275
6155
|
}
|
|
5276
6156
|
/**
|
|
5277
|
-
*
|
|
5278
|
-
*
|
|
6157
|
+
* Cancel Workflow Run
|
|
6158
|
+
* 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.
|
|
5279
6159
|
* @param podId
|
|
5280
6160
|
* @param runId
|
|
5281
|
-
* @
|
|
5282
|
-
* @returns FlowRunEntity Successful Response
|
|
6161
|
+
* @returns WorkflowRunResponse Successful Response
|
|
5283
6162
|
* @throws ApiError
|
|
5284
6163
|
*/
|
|
5285
|
-
static
|
|
6164
|
+
static workflowRunCancel(podId, runId) {
|
|
5286
6165
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5287
6166
|
method: 'POST',
|
|
5288
|
-
url: '/pods/{pod_id}/workflow-runs/{run_id}/
|
|
6167
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/cancel',
|
|
5289
6168
|
path: {
|
|
5290
6169
|
'pod_id': podId,
|
|
5291
6170
|
'run_id': runId,
|
|
5292
6171
|
},
|
|
5293
|
-
body: requestBody,
|
|
5294
|
-
mediaType: 'application/json',
|
|
5295
6172
|
errors: {
|
|
5296
6173
|
422: `Validation Error`,
|
|
5297
6174
|
},
|
|
5298
6175
|
});
|
|
5299
6176
|
}
|
|
5300
6177
|
/**
|
|
5301
|
-
*
|
|
5302
|
-
*
|
|
6178
|
+
* Submit Workflow Run Form
|
|
6179
|
+
* 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>`.
|
|
5303
6180
|
* @param podId
|
|
5304
6181
|
* @param runId
|
|
5305
|
-
* @
|
|
6182
|
+
* @param requestBody
|
|
6183
|
+
* @returns WorkflowRunResponse Successful Response
|
|
5306
6184
|
* @throws ApiError
|
|
5307
6185
|
*/
|
|
5308
|
-
static
|
|
6186
|
+
static workflowRunFormSubmit(podId, runId, requestBody) {
|
|
5309
6187
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5310
|
-
method: '
|
|
5311
|
-
url: '/pods/{pod_id}/workflow-runs/{run_id}/
|
|
6188
|
+
method: 'POST',
|
|
6189
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/form',
|
|
5312
6190
|
path: {
|
|
5313
6191
|
'pod_id': podId,
|
|
5314
6192
|
'run_id': runId,
|
|
5315
6193
|
},
|
|
6194
|
+
body: requestBody,
|
|
6195
|
+
mediaType: 'application/json',
|
|
5316
6196
|
errors: {
|
|
5317
6197
|
422: `Validation Error`,
|
|
5318
6198
|
},
|
|
5319
6199
|
});
|
|
5320
6200
|
}
|
|
5321
6201
|
/**
|
|
5322
|
-
*
|
|
5323
|
-
*
|
|
6202
|
+
* Visualize Workflow Run
|
|
6203
|
+
* Render an HTML view of a run overlaid on its workflow graph.
|
|
5324
6204
|
* @param podId
|
|
5325
|
-
* @param
|
|
5326
|
-
* @
|
|
5327
|
-
* @param pageToken
|
|
5328
|
-
* @returns WorkflowRunListResponse Successful Response
|
|
6205
|
+
* @param runId
|
|
6206
|
+
* @returns string Successful Response
|
|
5329
6207
|
* @throws ApiError
|
|
5330
6208
|
*/
|
|
5331
|
-
static
|
|
6209
|
+
static workflowRunVisualize(podId, runId) {
|
|
5332
6210
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5333
6211
|
method: 'GET',
|
|
5334
|
-
url: '/pods/{pod_id}/workflow-runs/{
|
|
6212
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
|
|
5335
6213
|
path: {
|
|
5336
6214
|
'pod_id': podId,
|
|
5337
|
-
'
|
|
5338
|
-
},
|
|
5339
|
-
query: {
|
|
5340
|
-
'limit': limit,
|
|
5341
|
-
'page_token': pageToken,
|
|
6215
|
+
'run_id': runId,
|
|
5342
6216
|
},
|
|
5343
6217
|
errors: {
|
|
5344
6218
|
422: `Validation Error`,
|
|
@@ -5372,10 +6246,10 @@ class WorkflowsService {
|
|
|
5372
6246
|
}
|
|
5373
6247
|
/**
|
|
5374
6248
|
* Create Workflow
|
|
5375
|
-
* Create a workflow definition.
|
|
6249
|
+
* 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`.
|
|
5376
6250
|
* @param podId
|
|
5377
6251
|
* @param requestBody
|
|
5378
|
-
* @returns
|
|
6252
|
+
* @returns FlowDetailResponse Successful Response
|
|
5379
6253
|
* @throws ApiError
|
|
5380
6254
|
*/
|
|
5381
6255
|
static workflowCreate(podId, requestBody) {
|
|
@@ -5418,7 +6292,7 @@ class WorkflowsService {
|
|
|
5418
6292
|
* Get a single workflow definition including graph and start configuration.
|
|
5419
6293
|
* @param podId
|
|
5420
6294
|
* @param workflowName
|
|
5421
|
-
* @returns
|
|
6295
|
+
* @returns FlowDetailResponse Successful Response
|
|
5422
6296
|
* @throws ApiError
|
|
5423
6297
|
*/
|
|
5424
6298
|
static workflowGet(podId, workflowName) {
|
|
@@ -5440,7 +6314,7 @@ class WorkflowsService {
|
|
|
5440
6314
|
* @param podId
|
|
5441
6315
|
* @param workflowName
|
|
5442
6316
|
* @param requestBody
|
|
5443
|
-
* @returns
|
|
6317
|
+
* @returns FlowDetailResponse Successful Response
|
|
5444
6318
|
* @throws ApiError
|
|
5445
6319
|
*/
|
|
5446
6320
|
static workflowUpdate(podId, workflowName, requestBody) {
|
|
@@ -5464,7 +6338,7 @@ class WorkflowsService {
|
|
|
5464
6338
|
* @param podId
|
|
5465
6339
|
* @param workflowName
|
|
5466
6340
|
* @param requestBody
|
|
5467
|
-
* @returns
|
|
6341
|
+
* @returns FlowDetailResponse Successful Response
|
|
5468
6342
|
* @throws ApiError
|
|
5469
6343
|
*/
|
|
5470
6344
|
static workflowGraphUpdate(podId, workflowName, requestBody) {
|
|
@@ -5483,24 +6357,48 @@ class WorkflowsService {
|
|
|
5483
6357
|
});
|
|
5484
6358
|
}
|
|
5485
6359
|
/**
|
|
5486
|
-
*
|
|
5487
|
-
*
|
|
6360
|
+
* List Workflow Runs
|
|
6361
|
+
* List recent runs for a given workflow.
|
|
5488
6362
|
* @param podId
|
|
5489
6363
|
* @param workflowName
|
|
5490
|
-
* @param
|
|
5491
|
-
* @
|
|
6364
|
+
* @param limit
|
|
6365
|
+
* @param pageToken
|
|
6366
|
+
* @returns WorkflowRunListResponse Successful Response
|
|
6367
|
+
* @throws ApiError
|
|
6368
|
+
*/
|
|
6369
|
+
static workflowRunList(podId, workflowName, limit = 100, pageToken) {
|
|
6370
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
6371
|
+
method: 'GET',
|
|
6372
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
|
|
6373
|
+
path: {
|
|
6374
|
+
'pod_id': podId,
|
|
6375
|
+
'workflow_name': workflowName,
|
|
6376
|
+
},
|
|
6377
|
+
query: {
|
|
6378
|
+
'limit': limit,
|
|
6379
|
+
'page_token': pageToken,
|
|
6380
|
+
},
|
|
6381
|
+
errors: {
|
|
6382
|
+
422: `Validation Error`,
|
|
6383
|
+
},
|
|
6384
|
+
});
|
|
6385
|
+
}
|
|
6386
|
+
/**
|
|
6387
|
+
* Create Workflow Run
|
|
6388
|
+
* 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.
|
|
6389
|
+
* @param podId
|
|
6390
|
+
* @param workflowName
|
|
6391
|
+
* @returns WorkflowRunResponse Successful Response
|
|
5492
6392
|
* @throws ApiError
|
|
5493
6393
|
*/
|
|
5494
|
-
static
|
|
6394
|
+
static workflowRunCreate(podId, workflowName) {
|
|
5495
6395
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
5496
6396
|
method: 'POST',
|
|
5497
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}/
|
|
6397
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
|
|
5498
6398
|
path: {
|
|
5499
6399
|
'pod_id': podId,
|
|
5500
6400
|
'workflow_name': workflowName,
|
|
5501
6401
|
},
|
|
5502
|
-
body: requestBody,
|
|
5503
|
-
mediaType: 'application/json',
|
|
5504
6402
|
errors: {
|
|
5505
6403
|
422: `Validation Error`,
|
|
5506
6404
|
},
|