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
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class UsageService {
|
|
4
|
+
/**
|
|
5
|
+
* List Usage Events
|
|
6
|
+
* @param organizationId
|
|
7
|
+
* @param start
|
|
8
|
+
* @param end
|
|
9
|
+
* @param days
|
|
10
|
+
* @param limit
|
|
11
|
+
* @param podId
|
|
12
|
+
* @param userId
|
|
13
|
+
* @param agentId
|
|
14
|
+
* @param profileId
|
|
15
|
+
* @param profileScope
|
|
16
|
+
* @param modelName
|
|
17
|
+
* @param usageKind
|
|
18
|
+
* @param sourceType
|
|
19
|
+
* @param status
|
|
20
|
+
* @returns UsageListResponse Successful Response
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static usageOrganizationEventsList(organizationId, start, end, days = 30, limit = 100, podId, userId, agentId, profileId, profileScope, modelName, usageKind, sourceType, status) {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: 'GET',
|
|
26
|
+
url: '/usage/organizations/{organization_id}/events',
|
|
27
|
+
path: {
|
|
28
|
+
'organization_id': organizationId,
|
|
29
|
+
},
|
|
30
|
+
query: {
|
|
31
|
+
'start': start,
|
|
32
|
+
'end': end,
|
|
33
|
+
'days': days,
|
|
34
|
+
'limit': limit,
|
|
35
|
+
'pod_id': podId,
|
|
36
|
+
'user_id': userId,
|
|
37
|
+
'agent_id': agentId,
|
|
38
|
+
'profile_id': profileId,
|
|
39
|
+
'profile_scope': profileScope,
|
|
40
|
+
'model_name': modelName,
|
|
41
|
+
'usage_kind': usageKind,
|
|
42
|
+
'source_type': sourceType,
|
|
43
|
+
'status': status,
|
|
44
|
+
},
|
|
45
|
+
errors: {
|
|
46
|
+
422: `Validation Error`,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get Usage Limits
|
|
52
|
+
* @param organizationId
|
|
53
|
+
* @returns UsageLimitsResponse Successful Response
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static usageOrganizationLimitsGet(organizationId) {
|
|
57
|
+
return __request(OpenAPI, {
|
|
58
|
+
method: 'GET',
|
|
59
|
+
url: '/usage/organizations/{organization_id}/limits',
|
|
60
|
+
path: {
|
|
61
|
+
'organization_id': organizationId,
|
|
62
|
+
},
|
|
63
|
+
errors: {
|
|
64
|
+
422: `Validation Error`,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Get My Usage
|
|
70
|
+
* @param organizationId
|
|
71
|
+
* @param start
|
|
72
|
+
* @param end
|
|
73
|
+
* @param days
|
|
74
|
+
* @param limit
|
|
75
|
+
* @param podId
|
|
76
|
+
* @param userId
|
|
77
|
+
* @param agentId
|
|
78
|
+
* @param profileId
|
|
79
|
+
* @param profileScope
|
|
80
|
+
* @param modelName
|
|
81
|
+
* @param usageKind
|
|
82
|
+
* @param sourceType
|
|
83
|
+
* @param status
|
|
84
|
+
* @returns UsageSummaryResponse Successful Response
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
static usageOrganizationMeSummaryGet(organizationId, start, end, days = 30, limit = 100, podId, userId, agentId, profileId, profileScope, modelName, usageKind, sourceType, status) {
|
|
88
|
+
return __request(OpenAPI, {
|
|
89
|
+
method: 'GET',
|
|
90
|
+
url: '/usage/organizations/{organization_id}/me',
|
|
91
|
+
path: {
|
|
92
|
+
'organization_id': organizationId,
|
|
93
|
+
},
|
|
94
|
+
query: {
|
|
95
|
+
'start': start,
|
|
96
|
+
'end': end,
|
|
97
|
+
'days': days,
|
|
98
|
+
'limit': limit,
|
|
99
|
+
'pod_id': podId,
|
|
100
|
+
'user_id': userId,
|
|
101
|
+
'agent_id': agentId,
|
|
102
|
+
'profile_id': profileId,
|
|
103
|
+
'profile_scope': profileScope,
|
|
104
|
+
'model_name': modelName,
|
|
105
|
+
'usage_kind': usageKind,
|
|
106
|
+
'source_type': sourceType,
|
|
107
|
+
'status': status,
|
|
108
|
+
},
|
|
109
|
+
errors: {
|
|
110
|
+
422: `Validation Error`,
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Get Usage Stats
|
|
116
|
+
* @param organizationId
|
|
117
|
+
* @param start
|
|
118
|
+
* @param end
|
|
119
|
+
* @param days
|
|
120
|
+
* @param limit
|
|
121
|
+
* @param podId
|
|
122
|
+
* @param userId
|
|
123
|
+
* @param agentId
|
|
124
|
+
* @param profileId
|
|
125
|
+
* @param profileScope
|
|
126
|
+
* @param modelName
|
|
127
|
+
* @param usageKind
|
|
128
|
+
* @param sourceType
|
|
129
|
+
* @param status
|
|
130
|
+
* @param granularity
|
|
131
|
+
* @param groupBy
|
|
132
|
+
* @returns UsageStatsResponse Successful Response
|
|
133
|
+
* @throws ApiError
|
|
134
|
+
*/
|
|
135
|
+
static usageOrganizationStatsGet(organizationId, start, end, days = 30, limit = 100, podId, userId, agentId, profileId, profileScope, modelName, usageKind, sourceType, status, granularity = 'day', groupBy) {
|
|
136
|
+
return __request(OpenAPI, {
|
|
137
|
+
method: 'GET',
|
|
138
|
+
url: '/usage/organizations/{organization_id}/stats',
|
|
139
|
+
path: {
|
|
140
|
+
'organization_id': organizationId,
|
|
141
|
+
},
|
|
142
|
+
query: {
|
|
143
|
+
'start': start,
|
|
144
|
+
'end': end,
|
|
145
|
+
'days': days,
|
|
146
|
+
'limit': limit,
|
|
147
|
+
'pod_id': podId,
|
|
148
|
+
'user_id': userId,
|
|
149
|
+
'agent_id': agentId,
|
|
150
|
+
'profile_id': profileId,
|
|
151
|
+
'profile_scope': profileScope,
|
|
152
|
+
'model_name': modelName,
|
|
153
|
+
'usage_kind': usageKind,
|
|
154
|
+
'source_type': sourceType,
|
|
155
|
+
'status': status,
|
|
156
|
+
'granularity': granularity,
|
|
157
|
+
'group_by': groupBy,
|
|
158
|
+
},
|
|
159
|
+
errors: {
|
|
160
|
+
422: `Validation Error`,
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Get Organization Usage Summary
|
|
166
|
+
* @param organizationId
|
|
167
|
+
* @param start
|
|
168
|
+
* @param end
|
|
169
|
+
* @param days
|
|
170
|
+
* @param limit
|
|
171
|
+
* @param podId
|
|
172
|
+
* @param userId
|
|
173
|
+
* @param agentId
|
|
174
|
+
* @param profileId
|
|
175
|
+
* @param profileScope
|
|
176
|
+
* @param modelName
|
|
177
|
+
* @param usageKind
|
|
178
|
+
* @param sourceType
|
|
179
|
+
* @param status
|
|
180
|
+
* @returns UsageSummaryResponse Successful Response
|
|
181
|
+
* @throws ApiError
|
|
182
|
+
*/
|
|
183
|
+
static usageOrganizationSummaryGet(organizationId, start, end, days = 30, limit = 100, podId, userId, agentId, profileId, profileScope, modelName, usageKind, sourceType, status) {
|
|
184
|
+
return __request(OpenAPI, {
|
|
185
|
+
method: 'GET',
|
|
186
|
+
url: '/usage/organizations/{organization_id}/summary',
|
|
187
|
+
path: {
|
|
188
|
+
'organization_id': organizationId,
|
|
189
|
+
},
|
|
190
|
+
query: {
|
|
191
|
+
'start': start,
|
|
192
|
+
'end': end,
|
|
193
|
+
'days': days,
|
|
194
|
+
'limit': limit,
|
|
195
|
+
'pod_id': podId,
|
|
196
|
+
'user_id': userId,
|
|
197
|
+
'agent_id': agentId,
|
|
198
|
+
'profile_id': profileId,
|
|
199
|
+
'profile_scope': profileScope,
|
|
200
|
+
'model_name': modelName,
|
|
201
|
+
'usage_kind': usageKind,
|
|
202
|
+
'source_type': sourceType,
|
|
203
|
+
'status': status,
|
|
204
|
+
},
|
|
205
|
+
errors: {
|
|
206
|
+
422: `Validation Error`,
|
|
207
|
+
},
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { FlowRunEntity } from '../models/FlowRunEntity.js';
|
|
1
|
+
import type { FlowDetailResponse } from '../models/FlowDetailResponse.js';
|
|
3
2
|
import type { WorkflowCreateRequest } from '../models/WorkflowCreateRequest.js';
|
|
4
3
|
import type { WorkflowGraphUpdateRequest } from '../models/WorkflowGraphUpdateRequest.js';
|
|
5
4
|
import type { WorkflowListResponse } from '../models/WorkflowListResponse.js';
|
|
5
|
+
import type { WorkflowRunFormSubmitRequest } from '../models/WorkflowRunFormSubmitRequest.js';
|
|
6
6
|
import type { WorkflowRunListResponse } from '../models/WorkflowRunListResponse.js';
|
|
7
|
+
import type { WorkflowRunResponse } from '../models/WorkflowRunResponse.js';
|
|
7
8
|
import type { WorkflowRunWaitAssignmentListResponse } from '../models/WorkflowRunWaitAssignmentListResponse.js';
|
|
8
9
|
import type { WorkflowUpdateRequest } from '../models/WorkflowUpdateRequest.js';
|
|
9
10
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
10
11
|
export declare class WorkflowsService {
|
|
11
12
|
/**
|
|
12
13
|
* List Workflow Runs Waiting For Current User
|
|
13
|
-
*
|
|
14
|
+
* The current user's approval queue: active form waits assigned to them, with the owning run.
|
|
14
15
|
* @param podId
|
|
15
16
|
* @param limit
|
|
16
17
|
* @param pageToken
|
|
@@ -20,23 +21,32 @@ export declare class WorkflowsService {
|
|
|
20
21
|
static workflowRunWaitingAssignedToMe(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunWaitAssignmentListResponse>;
|
|
21
22
|
/**
|
|
22
23
|
* Get Workflow Run
|
|
23
|
-
* Get current state, context,
|
|
24
|
+
* Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
|
|
24
25
|
* @param podId
|
|
25
26
|
* @param runId
|
|
26
|
-
* @returns
|
|
27
|
+
* @returns WorkflowRunResponse Successful Response
|
|
27
28
|
* @throws ApiError
|
|
28
29
|
*/
|
|
29
|
-
static workflowRunGet(podId: string, runId: string): CancelablePromise<
|
|
30
|
+
static workflowRunGet(podId: string, runId: string): CancelablePromise<WorkflowRunResponse>;
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
32
|
+
* Cancel Workflow Run
|
|
33
|
+
* Cancel a non-terminal run. The active wait (if any) is cancelled in the same transaction; late completion events for cancelled waits are dropped. Cancelling a terminal run returns 409.
|
|
34
|
+
* @param podId
|
|
35
|
+
* @param runId
|
|
36
|
+
* @returns WorkflowRunResponse Successful Response
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static workflowRunCancel(podId: string, runId: string): CancelablePromise<WorkflowRunResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Submit Workflow Run Form
|
|
42
|
+
* Submit the form the run is waiting on. `node_id` must match the run's active HUMAN wait (409 when the run is not waiting on a form, 422 on node mismatch, 403 when the wait is assigned to someone else). The submitted `inputs` become the form node's output, available to later nodes as `<node_id>.<field>`.
|
|
33
43
|
* @param podId
|
|
34
44
|
* @param runId
|
|
35
45
|
* @param requestBody
|
|
36
|
-
* @returns
|
|
46
|
+
* @returns WorkflowRunResponse Successful Response
|
|
37
47
|
* @throws ApiError
|
|
38
48
|
*/
|
|
39
|
-
static
|
|
49
|
+
static workflowRunFormSubmit(podId: string, runId: string, requestBody: WorkflowRunFormSubmitRequest): CancelablePromise<WorkflowRunResponse>;
|
|
40
50
|
/**
|
|
41
51
|
* Visualize Workflow Run
|
|
42
52
|
* Render an HTML view of a run overlaid on its workflow graph.
|
|
@@ -46,17 +56,6 @@ export declare class WorkflowsService {
|
|
|
46
56
|
* @throws ApiError
|
|
47
57
|
*/
|
|
48
58
|
static workflowRunVisualize(podId: string, runId: string): CancelablePromise<string>;
|
|
49
|
-
/**
|
|
50
|
-
* List Workflow Runs
|
|
51
|
-
* List recent runs for a given workflow.
|
|
52
|
-
* @param podId
|
|
53
|
-
* @param workflowName
|
|
54
|
-
* @param limit
|
|
55
|
-
* @param pageToken
|
|
56
|
-
* @returns WorkflowRunListResponse Successful Response
|
|
57
|
-
* @throws ApiError
|
|
58
|
-
*/
|
|
59
|
-
static workflowRunList(podId: string, workflowName: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunListResponse>;
|
|
60
59
|
/**
|
|
61
60
|
* List Workflows
|
|
62
61
|
* List all workflows in a pod.
|
|
@@ -69,13 +68,13 @@ export declare class WorkflowsService {
|
|
|
69
68
|
static workflowList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowListResponse>;
|
|
70
69
|
/**
|
|
71
70
|
* Create Workflow
|
|
72
|
-
* Create a workflow definition.
|
|
71
|
+
* Create a workflow definition. The graph (`nodes`/`edges`) can be included in this call to create a ready-to-run workflow in one step, or omitted to create a shell and upload the graph later with `workflow.graph.update`.
|
|
73
72
|
* @param podId
|
|
74
73
|
* @param requestBody
|
|
75
|
-
* @returns
|
|
74
|
+
* @returns FlowDetailResponse Successful Response
|
|
76
75
|
* @throws ApiError
|
|
77
76
|
*/
|
|
78
|
-
static workflowCreate(podId: string, requestBody: WorkflowCreateRequest): CancelablePromise<
|
|
77
|
+
static workflowCreate(podId: string, requestBody: WorkflowCreateRequest): CancelablePromise<FlowDetailResponse>;
|
|
79
78
|
/**
|
|
80
79
|
* Delete Workflow
|
|
81
80
|
* Delete a workflow definition.
|
|
@@ -90,40 +89,50 @@ export declare class WorkflowsService {
|
|
|
90
89
|
* Get a single workflow definition including graph and start configuration.
|
|
91
90
|
* @param podId
|
|
92
91
|
* @param workflowName
|
|
93
|
-
* @returns
|
|
92
|
+
* @returns FlowDetailResponse Successful Response
|
|
94
93
|
* @throws ApiError
|
|
95
94
|
*/
|
|
96
|
-
static workflowGet(podId: string, workflowName: string): CancelablePromise<
|
|
95
|
+
static workflowGet(podId: string, workflowName: string): CancelablePromise<FlowDetailResponse>;
|
|
97
96
|
/**
|
|
98
97
|
* Update Workflow Metadata
|
|
99
98
|
* Update workflow-level metadata such as description and schedule mode. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
|
|
100
99
|
* @param podId
|
|
101
100
|
* @param workflowName
|
|
102
101
|
* @param requestBody
|
|
103
|
-
* @returns
|
|
102
|
+
* @returns FlowDetailResponse Successful Response
|
|
104
103
|
* @throws ApiError
|
|
105
104
|
*/
|
|
106
|
-
static workflowUpdate(podId: string, workflowName: string, requestBody: WorkflowUpdateRequest): CancelablePromise<
|
|
105
|
+
static workflowUpdate(podId: string, workflowName: string, requestBody: WorkflowUpdateRequest): CancelablePromise<FlowDetailResponse>;
|
|
107
106
|
/**
|
|
108
107
|
* Update Workflow Graph
|
|
109
108
|
* Replace the workflow graph. Agent/function node `input_mapping` entries must use explicit typed bindings. Use `{type: "expression", value: "start.payload.issue.key"}` for context lookups and `{type: "literal", value: "abc"}` for fixed JSON values.
|
|
110
109
|
* @param podId
|
|
111
110
|
* @param workflowName
|
|
112
111
|
* @param requestBody
|
|
113
|
-
* @returns
|
|
112
|
+
* @returns FlowDetailResponse Successful Response
|
|
114
113
|
* @throws ApiError
|
|
115
114
|
*/
|
|
116
|
-
static workflowGraphUpdate(podId: string, workflowName: string, requestBody: WorkflowGraphUpdateRequest): CancelablePromise<
|
|
115
|
+
static workflowGraphUpdate(podId: string, workflowName: string, requestBody: WorkflowGraphUpdateRequest): CancelablePromise<FlowDetailResponse>;
|
|
117
116
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
117
|
+
* List Workflow Runs
|
|
118
|
+
* List recent runs for a given workflow.
|
|
120
119
|
* @param podId
|
|
121
120
|
* @param workflowName
|
|
122
|
-
* @param
|
|
123
|
-
* @
|
|
121
|
+
* @param limit
|
|
122
|
+
* @param pageToken
|
|
123
|
+
* @returns WorkflowRunListResponse Successful Response
|
|
124
|
+
* @throws ApiError
|
|
125
|
+
*/
|
|
126
|
+
static workflowRunList(podId: string, workflowName: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunListResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Create Workflow Run
|
|
129
|
+
* Create a new run for this workflow. Takes no request body: if the workflow's entry node is a FORM node the run is created WAITING on it (see `active_wait` in the response) and input is submitted via `workflow.run.form.submit`; otherwise the run executes immediately. Trigger payloads for scheduled/event/datastore starts are supplied by the platform, not through this endpoint.
|
|
130
|
+
* @param podId
|
|
131
|
+
* @param workflowName
|
|
132
|
+
* @returns WorkflowRunResponse Successful Response
|
|
124
133
|
* @throws ApiError
|
|
125
134
|
*/
|
|
126
|
-
static
|
|
135
|
+
static workflowRunCreate(podId: string, workflowName: string): CancelablePromise<WorkflowRunResponse>;
|
|
127
136
|
/**
|
|
128
137
|
* Visualize Workflow
|
|
129
138
|
* Render an HTML visualization for debugging workflow graph structure.
|
|
@@ -3,7 +3,7 @@ import { request as __request } from '../core/request.js';
|
|
|
3
3
|
export class WorkflowsService {
|
|
4
4
|
/**
|
|
5
5
|
* List Workflow Runs Waiting For Current User
|
|
6
|
-
*
|
|
6
|
+
* The current user's approval queue: active form waits assigned to them, with the owning run.
|
|
7
7
|
* @param podId
|
|
8
8
|
* @param limit
|
|
9
9
|
* @param pageToken
|
|
@@ -28,10 +28,10 @@ export class WorkflowsService {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Get Workflow Run
|
|
31
|
-
* Get current state, context,
|
|
31
|
+
* Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
|
|
32
32
|
* @param podId
|
|
33
33
|
* @param runId
|
|
34
|
-
* @returns
|
|
34
|
+
* @returns WorkflowRunResponse Successful Response
|
|
35
35
|
* @throws ApiError
|
|
36
36
|
*/
|
|
37
37
|
static workflowRunGet(podId, runId) {
|
|
@@ -48,71 +48,65 @@ export class WorkflowsService {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
51
|
+
* Cancel Workflow Run
|
|
52
|
+
* Cancel a non-terminal run. The active wait (if any) is cancelled in the same transaction; late completion events for cancelled waits are dropped. Cancelling a terminal run returns 409.
|
|
53
53
|
* @param podId
|
|
54
54
|
* @param runId
|
|
55
|
-
* @
|
|
56
|
-
* @returns FlowRunEntity Successful Response
|
|
55
|
+
* @returns WorkflowRunResponse Successful Response
|
|
57
56
|
* @throws ApiError
|
|
58
57
|
*/
|
|
59
|
-
static
|
|
58
|
+
static workflowRunCancel(podId, runId) {
|
|
60
59
|
return __request(OpenAPI, {
|
|
61
60
|
method: 'POST',
|
|
62
|
-
url: '/pods/{pod_id}/workflow-runs/{run_id}/
|
|
61
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/cancel',
|
|
63
62
|
path: {
|
|
64
63
|
'pod_id': podId,
|
|
65
64
|
'run_id': runId,
|
|
66
65
|
},
|
|
67
|
-
body: requestBody,
|
|
68
|
-
mediaType: 'application/json',
|
|
69
66
|
errors: {
|
|
70
67
|
422: `Validation Error`,
|
|
71
68
|
},
|
|
72
69
|
});
|
|
73
70
|
}
|
|
74
71
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
72
|
+
* Submit Workflow Run Form
|
|
73
|
+
* Submit the form the run is waiting on. `node_id` must match the run's active HUMAN wait (409 when the run is not waiting on a form, 422 on node mismatch, 403 when the wait is assigned to someone else). The submitted `inputs` become the form node's output, available to later nodes as `<node_id>.<field>`.
|
|
77
74
|
* @param podId
|
|
78
75
|
* @param runId
|
|
79
|
-
* @
|
|
76
|
+
* @param requestBody
|
|
77
|
+
* @returns WorkflowRunResponse Successful Response
|
|
80
78
|
* @throws ApiError
|
|
81
79
|
*/
|
|
82
|
-
static
|
|
80
|
+
static workflowRunFormSubmit(podId, runId, requestBody) {
|
|
83
81
|
return __request(OpenAPI, {
|
|
84
|
-
method: '
|
|
85
|
-
url: '/pods/{pod_id}/workflow-runs/{run_id}/
|
|
82
|
+
method: 'POST',
|
|
83
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/form',
|
|
86
84
|
path: {
|
|
87
85
|
'pod_id': podId,
|
|
88
86
|
'run_id': runId,
|
|
89
87
|
},
|
|
88
|
+
body: requestBody,
|
|
89
|
+
mediaType: 'application/json',
|
|
90
90
|
errors: {
|
|
91
91
|
422: `Validation Error`,
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
96
|
+
* Visualize Workflow Run
|
|
97
|
+
* Render an HTML view of a run overlaid on its workflow graph.
|
|
98
98
|
* @param podId
|
|
99
|
-
* @param
|
|
100
|
-
* @
|
|
101
|
-
* @param pageToken
|
|
102
|
-
* @returns WorkflowRunListResponse Successful Response
|
|
99
|
+
* @param runId
|
|
100
|
+
* @returns string Successful Response
|
|
103
101
|
* @throws ApiError
|
|
104
102
|
*/
|
|
105
|
-
static
|
|
103
|
+
static workflowRunVisualize(podId, runId) {
|
|
106
104
|
return __request(OpenAPI, {
|
|
107
105
|
method: 'GET',
|
|
108
|
-
url: '/pods/{pod_id}/workflow-runs/{
|
|
106
|
+
url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
|
|
109
107
|
path: {
|
|
110
108
|
'pod_id': podId,
|
|
111
|
-
'
|
|
112
|
-
},
|
|
113
|
-
query: {
|
|
114
|
-
'limit': limit,
|
|
115
|
-
'page_token': pageToken,
|
|
109
|
+
'run_id': runId,
|
|
116
110
|
},
|
|
117
111
|
errors: {
|
|
118
112
|
422: `Validation Error`,
|
|
@@ -146,10 +140,10 @@ export class WorkflowsService {
|
|
|
146
140
|
}
|
|
147
141
|
/**
|
|
148
142
|
* Create Workflow
|
|
149
|
-
* Create a workflow definition.
|
|
143
|
+
* Create a workflow definition. The graph (`nodes`/`edges`) can be included in this call to create a ready-to-run workflow in one step, or omitted to create a shell and upload the graph later with `workflow.graph.update`.
|
|
150
144
|
* @param podId
|
|
151
145
|
* @param requestBody
|
|
152
|
-
* @returns
|
|
146
|
+
* @returns FlowDetailResponse Successful Response
|
|
153
147
|
* @throws ApiError
|
|
154
148
|
*/
|
|
155
149
|
static workflowCreate(podId, requestBody) {
|
|
@@ -192,7 +186,7 @@ export class WorkflowsService {
|
|
|
192
186
|
* Get a single workflow definition including graph and start configuration.
|
|
193
187
|
* @param podId
|
|
194
188
|
* @param workflowName
|
|
195
|
-
* @returns
|
|
189
|
+
* @returns FlowDetailResponse Successful Response
|
|
196
190
|
* @throws ApiError
|
|
197
191
|
*/
|
|
198
192
|
static workflowGet(podId, workflowName) {
|
|
@@ -214,7 +208,7 @@ export class WorkflowsService {
|
|
|
214
208
|
* @param podId
|
|
215
209
|
* @param workflowName
|
|
216
210
|
* @param requestBody
|
|
217
|
-
* @returns
|
|
211
|
+
* @returns FlowDetailResponse Successful Response
|
|
218
212
|
* @throws ApiError
|
|
219
213
|
*/
|
|
220
214
|
static workflowUpdate(podId, workflowName, requestBody) {
|
|
@@ -238,7 +232,7 @@ export class WorkflowsService {
|
|
|
238
232
|
* @param podId
|
|
239
233
|
* @param workflowName
|
|
240
234
|
* @param requestBody
|
|
241
|
-
* @returns
|
|
235
|
+
* @returns FlowDetailResponse Successful Response
|
|
242
236
|
* @throws ApiError
|
|
243
237
|
*/
|
|
244
238
|
static workflowGraphUpdate(podId, workflowName, requestBody) {
|
|
@@ -257,24 +251,48 @@ export class WorkflowsService {
|
|
|
257
251
|
});
|
|
258
252
|
}
|
|
259
253
|
/**
|
|
260
|
-
*
|
|
261
|
-
*
|
|
254
|
+
* List Workflow Runs
|
|
255
|
+
* List recent runs for a given workflow.
|
|
262
256
|
* @param podId
|
|
263
257
|
* @param workflowName
|
|
264
|
-
* @param
|
|
265
|
-
* @
|
|
258
|
+
* @param limit
|
|
259
|
+
* @param pageToken
|
|
260
|
+
* @returns WorkflowRunListResponse Successful Response
|
|
261
|
+
* @throws ApiError
|
|
262
|
+
*/
|
|
263
|
+
static workflowRunList(podId, workflowName, limit = 100, pageToken) {
|
|
264
|
+
return __request(OpenAPI, {
|
|
265
|
+
method: 'GET',
|
|
266
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
|
|
267
|
+
path: {
|
|
268
|
+
'pod_id': podId,
|
|
269
|
+
'workflow_name': workflowName,
|
|
270
|
+
},
|
|
271
|
+
query: {
|
|
272
|
+
'limit': limit,
|
|
273
|
+
'page_token': pageToken,
|
|
274
|
+
},
|
|
275
|
+
errors: {
|
|
276
|
+
422: `Validation Error`,
|
|
277
|
+
},
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Create Workflow Run
|
|
282
|
+
* Create a new run for this workflow. Takes no request body: if the workflow's entry node is a FORM node the run is created WAITING on it (see `active_wait` in the response) and input is submitted via `workflow.run.form.submit`; otherwise the run executes immediately. Trigger payloads for scheduled/event/datastore starts are supplied by the platform, not through this endpoint.
|
|
283
|
+
* @param podId
|
|
284
|
+
* @param workflowName
|
|
285
|
+
* @returns WorkflowRunResponse Successful Response
|
|
266
286
|
* @throws ApiError
|
|
267
287
|
*/
|
|
268
|
-
static
|
|
288
|
+
static workflowRunCreate(podId, workflowName) {
|
|
269
289
|
return __request(OpenAPI, {
|
|
270
290
|
method: 'POST',
|
|
271
|
-
url: '/pods/{pod_id}/workflows/{workflow_name}/
|
|
291
|
+
url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
|
|
272
292
|
path: {
|
|
273
293
|
'pod_id': podId,
|
|
274
294
|
'workflow_name': workflowName,
|
|
275
295
|
},
|
|
276
|
-
body: requestBody,
|
|
277
|
-
mediaType: 'application/json',
|
|
278
296
|
errors: {
|
|
279
297
|
422: `Validation Error`,
|
|
280
298
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WorkspaceAppAccessRequest } from '../models/WorkspaceAppAccessRequest.js';
|
|
2
|
+
import type { WorkspaceAppAccessResponse } from '../models/WorkspaceAppAccessResponse.js';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
|
+
export declare class WorkspaceAppsService {
|
|
5
|
+
/**
|
|
6
|
+
* Create workspace browser access URL
|
|
7
|
+
* @param requestBody
|
|
8
|
+
* @returns WorkspaceAppAccessResponse Successful Response
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static workspaceBrowserAccess(requestBody: WorkspaceAppAccessRequest): CancelablePromise<WorkspaceAppAccessResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class WorkspaceAppsService {
|
|
4
|
+
/**
|
|
5
|
+
* Create workspace browser access URL
|
|
6
|
+
* @param requestBody
|
|
7
|
+
* @returns WorkspaceAppAccessResponse Successful Response
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static workspaceBrowserAccess(requestBody) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'POST',
|
|
13
|
+
url: '/workspace/apps/browser/access',
|
|
14
|
+
body: requestBody,
|
|
15
|
+
mediaType: 'application/json',
|
|
16
|
+
errors: {
|
|
17
|
+
422: `Validation Error`,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WorkspaceMeResponse } from '../models/WorkspaceMeResponse.js';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
3
|
+
export declare class WorkspaceService {
|
|
4
|
+
/**
|
|
5
|
+
* Get current workspace state
|
|
6
|
+
* @returns WorkspaceMeResponse Successful Response
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static workspaceMe(): CancelablePromise<WorkspaceMeResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class WorkspaceService {
|
|
4
|
+
/**
|
|
5
|
+
* Get current workspace state
|
|
6
|
+
* @returns WorkspaceMeResponse Successful Response
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static workspaceMe() {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'GET',
|
|
12
|
+
url: '/workspace/me',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -3,9 +3,23 @@ import type { LemmaClient } from "../client.js";
|
|
|
3
3
|
export interface AuthGuardProps {
|
|
4
4
|
client: LemmaClient;
|
|
5
5
|
children: ReactNode;
|
|
6
|
-
|
|
6
|
+
/** Optional custom loading element. Defaults to a blank screen. */
|
|
7
7
|
loadingFallback?: ReactNode;
|
|
8
|
+
/** Optional custom unauthenticated element. Defaults to a centered sign-in page. */
|
|
8
9
|
unauthenticatedFallback?: ReactNode;
|
|
10
|
+
/** Optional custom element shown when user is authenticated but lacks pod membership. */
|
|
9
11
|
accessRequestFallback?: ReactNode;
|
|
10
12
|
}
|
|
11
|
-
|
|
13
|
+
/**
|
|
14
|
+
* AuthGuard wraps your application and handles auth state:
|
|
15
|
+
* - Loading: shows loadingFallback (blank by default)
|
|
16
|
+
* - Unauthenticated: shows sign-in page (or custom unauthenticatedFallback)
|
|
17
|
+
* - Authenticated and member: renders children
|
|
18
|
+
* - Authenticated but not pod member: shows request-access page
|
|
19
|
+
*
|
|
20
|
+
* Usage:
|
|
21
|
+
* <AuthGuard client={getClient()}>
|
|
22
|
+
* <App />
|
|
23
|
+
* </AuthGuard>
|
|
24
|
+
*/
|
|
25
|
+
export declare function AuthGuard({ client, children, loadingFallback, unauthenticatedFallback, accessRequestFallback, }: AuthGuardProps): import("react/jsx-runtime").JSX.Element;
|