lemma-sdk 0.2.43 → 0.2.44
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 +1 -0
- package/dist/assistant-events.js +25 -3
- package/dist/browser/lemma-client.js +1082 -296
- package/dist/client.d.ts +8 -0
- package/dist/client.js +13 -1
- 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 +12 -5
- package/dist/namespaces/files.js +12 -3
- 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/resource-access.d.ts +11 -0
- package/dist/namespaces/resource-access.js +18 -0
- package/dist/namespaces/schedules.d.ts +3 -3
- package/dist/namespaces/tables.d.ts +4 -4
- package/dist/namespaces/workflows.d.ts +4 -4
- package/dist/openapi_client/index.d.ts +76 -30
- package/dist/openapi_client/index.js +20 -7
- 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 +9 -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/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 +22 -0
- package/dist/openapi_client/models/AgentSurfaceResponse.d.ts +11 -4
- 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/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/BillingInterval.d.ts +2 -2
- package/dist/openapi_client/models/BillingInterval.js +2 -2
- package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +0 -2
- 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/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 -6
- package/dist/openapi_client/models/CreateOpenAICompatibleRuntimeProfileRequest.d.ts +11 -0
- package/dist/openapi_client/models/CreateScheduleRequest.d.ts +13 -1
- package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +12 -14
- package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -1
- package/dist/openapi_client/models/CreateUserDaemonRuntimeProfileRequest.d.ts +9 -0
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -1
- 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/DeskServingConfigResponse.d.ts +11 -0
- package/dist/openapi_client/models/DeskServingConfigResponse.js +8 -0
- 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/{FileResponse.d.ts → FileDetailResponse.d.ts} +2 -2
- package/dist/openapi_client/models/FileListResponse.d.ts +2 -2
- package/dist/openapi_client/models/{FlowResponse.d.ts → FlowDetailResponse.d.ts} +2 -2
- package/dist/openapi_client/models/{FunctionResponse.d.ts → FunctionActionResponse.d.ts} +3 -10
- package/dist/openapi_client/models/FunctionActionResponse.js +1 -0
- package/dist/openapi_client/models/FunctionDetailResponse.d.ts +34 -0
- package/dist/openapi_client/models/FunctionDetailResponse.js +1 -0
- package/dist/openapi_client/models/FunctionListResponse.d.ts +2 -2
- package/dist/openapi_client/models/FunctionPermissionsReplaceRequest.d.ts +4 -0
- package/dist/openapi_client/models/FunctionPermissionsReplaceRequest.js +1 -0
- package/dist/openapi_client/models/FunctionPermissionsResponse.d.ts +6 -0
- package/dist/openapi_client/models/FunctionPermissionsResponse.js +1 -0
- package/dist/openapi_client/models/FunctionResourcePermissionRequest.d.ts +6 -0
- package/dist/openapi_client/models/FunctionResourcePermissionRequest.js +1 -0
- package/dist/openapi_client/models/FunctionResourcePermissionResponse.d.ts +6 -0
- package/dist/openapi_client/models/FunctionResourcePermissionResponse.js +1 -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/FunctionRunSummaryResponse.js +1 -0
- package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +1 -1
- package/dist/openapi_client/models/HarnessKind.d.ts +4 -2
- package/dist/openapi_client/models/HarnessKind.js +4 -2
- package/dist/openapi_client/models/LemmaProviderCapabilityResponseSchema.d.ts +12 -0
- package/dist/openapi_client/models/LemmaProviderCapabilityResponseSchema.js +1 -0
- package/dist/openapi_client/models/OAuth2DefaultsResponseSchema.d.ts +10 -0
- package/dist/openapi_client/models/OAuth2DefaultsResponseSchema.js +1 -0
- package/dist/openapi_client/models/OperationSummary.d.ts +4 -0
- package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +1 -1
- package/dist/openapi_client/models/PlanResponse.d.ts +3 -2
- package/dist/openapi_client/models/PlanType.d.ts +7 -0
- package/dist/openapi_client/models/PlanType.js +12 -0
- package/dist/openapi_client/models/PodConfig.d.ts +6 -0
- package/dist/openapi_client/models/PodConfig.js +1 -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/PodEffectivePermissionsResponse.js +1 -0
- package/dist/openapi_client/models/PodPermissionCatalogResponse.d.ts +4 -0
- package/dist/openapi_client/models/PodPermissionCatalogResponse.js +1 -0
- package/dist/openapi_client/models/PodPermissionResponse.d.ts +7 -0
- package/dist/openapi_client/models/PodPermissionResponse.js +1 -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/PodRolePermissionsReplaceRequest.js +1 -0
- package/dist/openapi_client/models/PodRolePermissionsResponse.d.ts +6 -0
- package/dist/openapi_client/models/PodRolePermissionsResponse.js +1 -0
- package/dist/openapi_client/models/PodRoleResourcePermissionRequest.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleResourcePermissionRequest.js +1 -0
- package/dist/openapi_client/models/PodRoleResourcePermissionResponse.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleResourcePermissionResponse.js +1 -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/ResolveUserApprovalRequest.js +1 -0
- package/dist/openapi_client/models/ResourceAccessGrantRequest.d.ts +3 -0
- package/dist/openapi_client/models/ResourceAccessGrantRequest.js +1 -0
- package/dist/openapi_client/models/ResourceAccessGrantResponse.d.ts +12 -0
- package/dist/openapi_client/models/ResourceAccessGrantResponse.js +1 -0
- package/dist/openapi_client/models/ResourceAccessResponse.d.ts +7 -0
- package/dist/openapi_client/models/ResourceAccessResponse.js +1 -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 +4 -0
- package/dist/openapi_client/models/RuntimeProfileScope.js +9 -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} +3 -3
- package/dist/openapi_client/models/ScheduleDetailResponse.js +1 -0
- package/dist/openapi_client/models/ScheduleListResponse.d.ts +2 -2
- package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +1 -4
- package/dist/openapi_client/models/SubscriptionResponse.d.ts +2 -2
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +2 -2
- package/dist/openapi_client/models/SurfaceBehaviorConfigInput.d.ts +3 -0
- package/dist/openapi_client/models/SurfaceBehaviorConfigInput.js +1 -0
- package/dist/openapi_client/models/SurfaceEventMode.d.ts +6 -0
- package/dist/openapi_client/models/SurfaceEventMode.js +11 -0
- package/dist/openapi_client/models/SurfaceMode.d.ts +5 -0
- package/dist/openapi_client/models/SurfaceMode.js +10 -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/{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 +2 -2
- package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +1 -3
- package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +1 -0
- 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 +1 -1
- package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +11 -14
- package/dist/openapi_client/models/UpdateTableRequest.d.ts +1 -1
- 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/VerifyTokenResponse.d.ts +5 -0
- package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +1 -0
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +2 -1
- package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
- package/dist/openapi_client/models/WorkflowRunListResponse.d.ts +2 -2
- package/dist/openapi_client/models/WorkflowRunSummaryResponse.d.ts +18 -0
- package/dist/openapi_client/models/WorkflowRunSummaryResponse.js +1 -0
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +2 -1
- package/dist/openapi_client/models/WorkspaceAppAccessRequest.d.ts +6 -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 +10 -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 +8 -8
- package/dist/openapi_client/services/AgentSurfacesService.js +20 -20
- 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 +12 -8
- package/dist/openapi_client/services/ApplicationsService.js +24 -16
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +3 -2
- package/dist/openapi_client/services/BillingSubscriptionsService.js +3 -3
- 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 +18 -9
- package/dist/openapi_client/services/FilesService.js +28 -4
- package/dist/openapi_client/services/FunctionsService.d.ts +29 -7
- package/dist/openapi_client/services/FunctionsService.js +48 -3
- package/dist/openapi_client/services/IntegrationsService.d.ts +65 -14
- package/dist/openapi_client/services/IntegrationsService.js +144 -23
- 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/PublicDesksService.d.ts +10 -0
- package/dist/openapi_client/services/PublicDesksService.js +15 -0
- package/dist/openapi_client/services/SchedulesService.d.ts +7 -7
- package/dist/openapi_client/services/SchedulesService.js +3 -3
- package/dist/openapi_client/services/TablesService.d.ts +9 -9
- package/dist/openapi_client/services/TablesService.js +4 -4
- 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 +9 -9
- package/dist/openapi_client/services/WorkflowsService.js +4 -4
- 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/useAssistantController.d.ts +26 -3
- package/dist/react/useAssistantController.js +187 -69
- package/dist/react/useAssistantSession.d.ts +10 -7
- package/dist/react/useAssistantSession.js +106 -5
- package/dist/react/useConversations.d.ts +1 -7
- package/dist/react/useConversations.js +4 -10
- package/dist/react/useFlowRunHistory.d.ts +4 -4
- package/dist/react/useFlowRunHistory.js +9 -4
- package/dist/react/useFlowSession.d.ts +2 -2
- 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/useWorkflowRun.d.ts +2 -2
- package/dist/react/useWorkflowRuns.d.ts +5 -5
- package/dist/react/useWorkflowStart.d.ts +2 -2
- package/dist/types.d.ts +45 -8
- package/package.json +2 -2
- 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/BillingScope.d.ts +0 -7
- package/dist/openapi_client/models/BillingScope.js +0 -12
- package/dist/openapi_client/models/FunctionTableAccessEntry.d.ts +0 -5
- package/dist/openapi_client/models/GmailSurfaceConfigInput.d.ts +0 -4
- package/dist/openapi_client/models/OutlookSurfaceConfigInput.d.ts +0 -4
- package/dist/openapi_client/models/RecentUsageResponse.d.ts +0 -9
- package/dist/openapi_client/models/SlackCredentialsInput.d.ts +0 -5
- package/dist/openapi_client/models/SlackSurfaceConfigInput.d.ts +0 -6
- package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +0 -4
- package/dist/openapi_client/models/SurfaceCredentialMode.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/TeamsSurfaceConfigInput.d.ts +0 -6
- package/dist/openapi_client/models/TelegramCredentialsInput.d.ts +0 -5
- 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/WhatsAppSurfaceConfigInput.d.ts +0 -6
- package/dist/openapi_client/services/BillingUsageService.d.ts +0 -138
- package/dist/openapi_client/services/BillingUsageService.js +0 -302
- /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/{DeskResponse.js → AgentDetailResponse.js} +0 -0
- /package/dist/openapi_client/models/{FileResponse.js → AgentHarnessInfo.js} +0 -0
- /package/dist/openapi_client/models/{FlowResponse.js → AgentHarnessListResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionResponse.js → AgentPermissionsReplaceRequest.js} +0 -0
- /package/dist/openapi_client/models/{FunctionTableAccessEntry.js → AgentPermissionsResponse.js} +0 -0
- /package/dist/openapi_client/models/{GmailSurfaceConfigInput.js → AgentResourcePermissionRequest.js} +0 -0
- /package/dist/openapi_client/models/{OutlookSurfaceConfigInput.js → AgentResourcePermissionResponse.js} +0 -0
- /package/dist/openapi_client/models/{RecentUsageResponse.js → AgentRuntimeConfig.js} +0 -0
- /package/dist/openapi_client/models/{ScheduleResponse.js → AgentRuntimeProfileListResponse.js} +0 -0
- /package/dist/openapi_client/models/{SlackCredentialsInput.js → AgentRuntimeProfileResponse.js} +0 -0
- /package/dist/openapi_client/models/{SlackSurfaceConfigInput.js → AuthConfigCreateSchema.js} +0 -0
- /package/dist/openapi_client/models/{TableAccessEntry.js → AuthConfigListResponseSchema.js} +0 -0
- /package/dist/openapi_client/models/{TableResponse.js → AuthConfigResponseSchema.js} +0 -0
- /package/dist/openapi_client/models/{TeamsCredentialsInput.js → ComposioProviderCapabilityResponseSchema.js} +0 -0
- /package/dist/openapi_client/models/{TeamsSurfaceConfigInput.js → ConvertedPageResponse.js} +0 -0
- /package/dist/openapi_client/models/{TelegramCredentialsInput.js → CreateAnthropicCompatibleRuntimeProfileRequest.js} +0 -0
- /package/dist/openapi_client/models/{TelegramSurfaceConfigInput.js → CreateOpenAICompatibleRuntimeProfileRequest.js} +0 -0
- /package/dist/openapi_client/models/{WebSearchAgentRequest.js → CreateUserDaemonRuntimeProfileRequest.js} +0 -0
- /package/dist/openapi_client/models/{WebSearchAgentResponse.js → DeskDetailResponse.js} +0 -0
- /package/dist/openapi_client/models/{WhatsAppCredentialsInput.js → FileDetailResponse.js} +0 -0
- /package/dist/openapi_client/models/{WhatsAppSurfaceConfigInput.js → FlowDetailResponse.js} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PodRoleCreateRequest } from '../models/PodRoleCreateRequest.js';
|
|
2
2
|
import type { PodRoleListResponse } from '../models/PodRoleListResponse.js';
|
|
3
|
+
import type { PodRolePermissionsReplaceRequest } from '../models/PodRolePermissionsReplaceRequest.js';
|
|
4
|
+
import type { PodRolePermissionsResponse } from '../models/PodRolePermissionsResponse.js';
|
|
3
5
|
import type { PodRoleResponse } from '../models/PodRoleResponse.js';
|
|
4
6
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
7
|
export declare class PodRolesService {
|
|
@@ -26,4 +28,30 @@ export declare class PodRolesService {
|
|
|
26
28
|
* @throws ApiError
|
|
27
29
|
*/
|
|
28
30
|
static podRolesDelete(podId: string, roleName: string): CancelablePromise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Update Pod Role
|
|
33
|
+
* @param podId
|
|
34
|
+
* @param roleName
|
|
35
|
+
* @param requestBody
|
|
36
|
+
* @returns PodRoleResponse Successful Response
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static podRolesUpdate(podId: string, roleName: string, requestBody: PodRoleCreateRequest): CancelablePromise<PodRoleResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Get Pod Role Permissions
|
|
42
|
+
* @param podId
|
|
43
|
+
* @param roleName
|
|
44
|
+
* @returns PodRolePermissionsResponse Successful Response
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static podRolePermissionsGet(podId: string, roleName: string): CancelablePromise<PodRolePermissionsResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Replace Pod Role Permissions
|
|
50
|
+
* @param podId
|
|
51
|
+
* @param roleName
|
|
52
|
+
* @param requestBody
|
|
53
|
+
* @returns PodRolePermissionsResponse Successful Response
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static podRolePermissionsReplace(podId: string, roleName: string, requestBody: PodRolePermissionsReplaceRequest): CancelablePromise<PodRolePermissionsResponse>;
|
|
29
57
|
}
|
|
@@ -60,4 +60,70 @@ export class PodRolesService {
|
|
|
60
60
|
},
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Update Pod Role
|
|
65
|
+
* @param podId
|
|
66
|
+
* @param roleName
|
|
67
|
+
* @param requestBody
|
|
68
|
+
* @returns PodRoleResponse Successful Response
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static podRolesUpdate(podId, roleName, requestBody) {
|
|
72
|
+
return __request(OpenAPI, {
|
|
73
|
+
method: 'PATCH',
|
|
74
|
+
url: '/pods/{pod_id}/roles/{role_name}',
|
|
75
|
+
path: {
|
|
76
|
+
'pod_id': podId,
|
|
77
|
+
'role_name': roleName,
|
|
78
|
+
},
|
|
79
|
+
body: requestBody,
|
|
80
|
+
mediaType: 'application/json',
|
|
81
|
+
errors: {
|
|
82
|
+
422: `Validation Error`,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get Pod Role Permissions
|
|
88
|
+
* @param podId
|
|
89
|
+
* @param roleName
|
|
90
|
+
* @returns PodRolePermissionsResponse Successful Response
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
static podRolePermissionsGet(podId, roleName) {
|
|
94
|
+
return __request(OpenAPI, {
|
|
95
|
+
method: 'GET',
|
|
96
|
+
url: '/pods/{pod_id}/roles/{role_name}/permissions',
|
|
97
|
+
path: {
|
|
98
|
+
'pod_id': podId,
|
|
99
|
+
'role_name': roleName,
|
|
100
|
+
},
|
|
101
|
+
errors: {
|
|
102
|
+
422: `Validation Error`,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Replace Pod Role Permissions
|
|
108
|
+
* @param podId
|
|
109
|
+
* @param roleName
|
|
110
|
+
* @param requestBody
|
|
111
|
+
* @returns PodRolePermissionsResponse Successful Response
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
static podRolePermissionsReplace(podId, roleName, requestBody) {
|
|
115
|
+
return __request(OpenAPI, {
|
|
116
|
+
method: 'PUT',
|
|
117
|
+
url: '/pods/{pod_id}/roles/{role_name}/permissions',
|
|
118
|
+
path: {
|
|
119
|
+
'pod_id': podId,
|
|
120
|
+
'role_name': roleName,
|
|
121
|
+
},
|
|
122
|
+
body: requestBody,
|
|
123
|
+
mediaType: 'application/json',
|
|
124
|
+
errors: {
|
|
125
|
+
422: `Validation Error`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
63
129
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DeskServingConfigResponse } from '../models/DeskServingConfigResponse.js';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
3
|
+
export declare class PublicDesksService {
|
|
4
|
+
/**
|
|
5
|
+
* Get Desk Serving Config
|
|
6
|
+
* @returns DeskServingConfigResponse Successful Response
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static deskServingConfig(): CancelablePromise<DeskServingConfigResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class PublicDesksService {
|
|
4
|
+
/**
|
|
5
|
+
* Get Desk Serving Config
|
|
6
|
+
* @returns DeskServingConfigResponse Successful Response
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static deskServingConfig() {
|
|
10
|
+
return __request(OpenAPI, {
|
|
11
|
+
method: 'GET',
|
|
12
|
+
url: '/public/desks/-/config',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CreateScheduleRequest } from '../models/CreateScheduleRequest.js';
|
|
2
|
+
import type { ScheduleDetailResponse } from '../models/ScheduleDetailResponse.js';
|
|
2
3
|
import type { ScheduleListResponse } from '../models/ScheduleListResponse.js';
|
|
3
|
-
import type { ScheduleResponse } from '../models/ScheduleResponse.js';
|
|
4
4
|
import type { ScheduleType } from '../models/ScheduleType.js';
|
|
5
5
|
import type { UpdateScheduleRequest } from '../models/UpdateScheduleRequest.js';
|
|
6
6
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -24,10 +24,10 @@ export declare class SchedulesService {
|
|
|
24
24
|
* Create a new pod schedule.
|
|
25
25
|
* @param podId
|
|
26
26
|
* @param requestBody
|
|
27
|
-
* @returns
|
|
27
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
|
-
static scheduleCreate(podId: string, requestBody: CreateScheduleRequest): CancelablePromise<
|
|
30
|
+
static scheduleCreate(podId: string, requestBody: CreateScheduleRequest): CancelablePromise<ScheduleDetailResponse>;
|
|
31
31
|
/**
|
|
32
32
|
* Delete Schedule
|
|
33
33
|
* Delete a schedule.
|
|
@@ -42,18 +42,18 @@ export declare class SchedulesService {
|
|
|
42
42
|
* Get a schedule by ID.
|
|
43
43
|
* @param podId
|
|
44
44
|
* @param scheduleId
|
|
45
|
-
* @returns
|
|
45
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
46
46
|
* @throws ApiError
|
|
47
47
|
*/
|
|
48
|
-
static scheduleGet(podId: string, scheduleId: string): CancelablePromise<
|
|
48
|
+
static scheduleGet(podId: string, scheduleId: string): CancelablePromise<ScheduleDetailResponse>;
|
|
49
49
|
/**
|
|
50
50
|
* Update Schedule
|
|
51
51
|
* Update a schedule.
|
|
52
52
|
* @param podId
|
|
53
53
|
* @param scheduleId
|
|
54
54
|
* @param requestBody
|
|
55
|
-
* @returns
|
|
55
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
56
56
|
* @throws ApiError
|
|
57
57
|
*/
|
|
58
|
-
static scheduleUpdate(podId: string, scheduleId: string, requestBody: UpdateScheduleRequest): CancelablePromise<
|
|
58
|
+
static scheduleUpdate(podId: string, scheduleId: string, requestBody: UpdateScheduleRequest): CancelablePromise<ScheduleDetailResponse>;
|
|
59
59
|
}
|
|
@@ -39,7 +39,7 @@ export class SchedulesService {
|
|
|
39
39
|
* Create a new pod schedule.
|
|
40
40
|
* @param podId
|
|
41
41
|
* @param requestBody
|
|
42
|
-
* @returns
|
|
42
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
43
43
|
* @throws ApiError
|
|
44
44
|
*/
|
|
45
45
|
static scheduleCreate(podId, requestBody) {
|
|
@@ -82,7 +82,7 @@ export class SchedulesService {
|
|
|
82
82
|
* Get a schedule by ID.
|
|
83
83
|
* @param podId
|
|
84
84
|
* @param scheduleId
|
|
85
|
-
* @returns
|
|
85
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
86
86
|
* @throws ApiError
|
|
87
87
|
*/
|
|
88
88
|
static scheduleGet(podId, scheduleId) {
|
|
@@ -104,7 +104,7 @@ export class SchedulesService {
|
|
|
104
104
|
* @param podId
|
|
105
105
|
* @param scheduleId
|
|
106
106
|
* @param requestBody
|
|
107
|
-
* @returns
|
|
107
|
+
* @returns ScheduleDetailResponse Successful Response
|
|
108
108
|
* @throws ApiError
|
|
109
109
|
*/
|
|
110
110
|
static scheduleUpdate(podId, scheduleId, requestBody) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AddColumnRequest } from '../models/AddColumnRequest.js';
|
|
2
2
|
import type { CreateTableRequest } from '../models/CreateTableRequest.js';
|
|
3
3
|
import type { DatastoreMessageResponse } from '../models/DatastoreMessageResponse.js';
|
|
4
|
+
import type { TableDetailResponse } from '../models/TableDetailResponse.js';
|
|
4
5
|
import type { TableListResponse } from '../models/TableListResponse.js';
|
|
5
|
-
import type { TableResponse } from '../models/TableResponse.js';
|
|
6
6
|
import type { UpdateTableRequest } from '../models/UpdateTableRequest.js';
|
|
7
7
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
8
|
export declare class TablesService {
|
|
@@ -21,10 +21,10 @@ export declare class TablesService {
|
|
|
21
21
|
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
22
22
|
* @param podId
|
|
23
23
|
* @param requestBody
|
|
24
|
-
* @returns
|
|
24
|
+
* @returns TableDetailResponse Successful Response
|
|
25
25
|
* @throws ApiError
|
|
26
26
|
*/
|
|
27
|
-
static tableCreate(podId: string, requestBody: CreateTableRequest): CancelablePromise<
|
|
27
|
+
static tableCreate(podId: string, requestBody: CreateTableRequest): CancelablePromise<TableDetailResponse>;
|
|
28
28
|
/**
|
|
29
29
|
* Delete Table
|
|
30
30
|
* Delete a table and all records in it.
|
|
@@ -39,30 +39,30 @@ export declare class TablesService {
|
|
|
39
39
|
* Get table schema metadata by table name.
|
|
40
40
|
* @param podId
|
|
41
41
|
* @param tableName
|
|
42
|
-
* @returns
|
|
42
|
+
* @returns TableDetailResponse Successful Response
|
|
43
43
|
* @throws ApiError
|
|
44
44
|
*/
|
|
45
|
-
static tableGet(podId: string, tableName: string): CancelablePromise<
|
|
45
|
+
static tableGet(podId: string, tableName: string): CancelablePromise<TableDetailResponse>;
|
|
46
46
|
/**
|
|
47
47
|
* Update Table
|
|
48
48
|
* Update table metadata/configuration payload.
|
|
49
49
|
* @param podId
|
|
50
50
|
* @param tableName
|
|
51
51
|
* @param requestBody
|
|
52
|
-
* @returns
|
|
52
|
+
* @returns TableDetailResponse Successful Response
|
|
53
53
|
* @throws ApiError
|
|
54
54
|
*/
|
|
55
|
-
static tableUpdate(podId: string, tableName: string, requestBody: UpdateTableRequest): CancelablePromise<
|
|
55
|
+
static tableUpdate(podId: string, tableName: string, requestBody: UpdateTableRequest): CancelablePromise<TableDetailResponse>;
|
|
56
56
|
/**
|
|
57
57
|
* Add Column
|
|
58
58
|
* Add a new column to a table. Column names must be unique and compatible with existing table schema rules.
|
|
59
59
|
* @param podId
|
|
60
60
|
* @param tableName
|
|
61
61
|
* @param requestBody
|
|
62
|
-
* @returns
|
|
62
|
+
* @returns TableDetailResponse Successful Response
|
|
63
63
|
* @throws ApiError
|
|
64
64
|
*/
|
|
65
|
-
static tableColumnAdd(podId: string, tableName: string, requestBody: AddColumnRequest): CancelablePromise<
|
|
65
|
+
static tableColumnAdd(podId: string, tableName: string, requestBody: AddColumnRequest): CancelablePromise<TableDetailResponse>;
|
|
66
66
|
/**
|
|
67
67
|
* Remove Column
|
|
68
68
|
* Remove a non-primary, non-system column from a table. System columns and the primary key cannot be removed.
|
|
@@ -31,7 +31,7 @@ export class TablesService {
|
|
|
31
31
|
* Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
|
|
32
32
|
* @param podId
|
|
33
33
|
* @param requestBody
|
|
34
|
-
* @returns
|
|
34
|
+
* @returns TableDetailResponse Successful Response
|
|
35
35
|
* @throws ApiError
|
|
36
36
|
*/
|
|
37
37
|
static tableCreate(podId, requestBody) {
|
|
@@ -74,7 +74,7 @@ export class TablesService {
|
|
|
74
74
|
* Get table schema metadata by table name.
|
|
75
75
|
* @param podId
|
|
76
76
|
* @param tableName
|
|
77
|
-
* @returns
|
|
77
|
+
* @returns TableDetailResponse Successful Response
|
|
78
78
|
* @throws ApiError
|
|
79
79
|
*/
|
|
80
80
|
static tableGet(podId, tableName) {
|
|
@@ -96,7 +96,7 @@ export class TablesService {
|
|
|
96
96
|
* @param podId
|
|
97
97
|
* @param tableName
|
|
98
98
|
* @param requestBody
|
|
99
|
-
* @returns
|
|
99
|
+
* @returns TableDetailResponse Successful Response
|
|
100
100
|
* @throws ApiError
|
|
101
101
|
*/
|
|
102
102
|
static tableUpdate(podId, tableName, requestBody) {
|
|
@@ -120,7 +120,7 @@ export class TablesService {
|
|
|
120
120
|
* @param podId
|
|
121
121
|
* @param tableName
|
|
122
122
|
* @param requestBody
|
|
123
|
-
* @returns
|
|
123
|
+
* @returns TableDetailResponse Successful Response
|
|
124
124
|
* @throws ApiError
|
|
125
125
|
*/
|
|
126
126
|
static tableColumnAdd(podId, tableName, requestBody) {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { UsageLimitsResponse } from '../models/UsageLimitsResponse.js';
|
|
2
|
+
import type { UsageListResponse } from '../models/UsageListResponse.js';
|
|
3
|
+
import type { UsageStatsResponse } from '../models/UsageStatsResponse.js';
|
|
4
|
+
import type { UsageSummaryResponse } from '../models/UsageSummaryResponse.js';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
+
export declare class UsageService {
|
|
7
|
+
/**
|
|
8
|
+
* List Usage Events
|
|
9
|
+
* @param organizationId
|
|
10
|
+
* @param start
|
|
11
|
+
* @param end
|
|
12
|
+
* @param days
|
|
13
|
+
* @param limit
|
|
14
|
+
* @param podId
|
|
15
|
+
* @param userId
|
|
16
|
+
* @param agentId
|
|
17
|
+
* @param profileId
|
|
18
|
+
* @param profileScope
|
|
19
|
+
* @param modelName
|
|
20
|
+
* @param usageKind
|
|
21
|
+
* @param sourceType
|
|
22
|
+
* @param status
|
|
23
|
+
* @returns UsageListResponse Successful Response
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
static usageOrganizationEventsList(organizationId: string, start?: (string | null), end?: (string | null), days?: number, limit?: number, podId?: (string | null), userId?: (string | null), agentId?: (string | null), profileId?: (string | null), profileScope?: (string | null), modelName?: (string | null), usageKind?: (string | null), sourceType?: (string | null), status?: (string | null)): CancelablePromise<UsageListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Get Usage Limits
|
|
29
|
+
* @param organizationId
|
|
30
|
+
* @returns UsageLimitsResponse Successful Response
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static usageOrganizationLimitsGet(organizationId: string): CancelablePromise<UsageLimitsResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Get My Usage
|
|
36
|
+
* @param organizationId
|
|
37
|
+
* @param start
|
|
38
|
+
* @param end
|
|
39
|
+
* @param days
|
|
40
|
+
* @param limit
|
|
41
|
+
* @param podId
|
|
42
|
+
* @param userId
|
|
43
|
+
* @param agentId
|
|
44
|
+
* @param profileId
|
|
45
|
+
* @param profileScope
|
|
46
|
+
* @param modelName
|
|
47
|
+
* @param usageKind
|
|
48
|
+
* @param sourceType
|
|
49
|
+
* @param status
|
|
50
|
+
* @returns UsageSummaryResponse Successful Response
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static usageOrganizationMeSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), days?: number, limit?: number, podId?: (string | null), userId?: (string | null), agentId?: (string | null), profileId?: (string | null), profileScope?: (string | null), modelName?: (string | null), usageKind?: (string | null), sourceType?: (string | null), status?: (string | null)): CancelablePromise<UsageSummaryResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Get Usage Stats
|
|
56
|
+
* @param organizationId
|
|
57
|
+
* @param start
|
|
58
|
+
* @param end
|
|
59
|
+
* @param days
|
|
60
|
+
* @param limit
|
|
61
|
+
* @param podId
|
|
62
|
+
* @param userId
|
|
63
|
+
* @param agentId
|
|
64
|
+
* @param profileId
|
|
65
|
+
* @param profileScope
|
|
66
|
+
* @param modelName
|
|
67
|
+
* @param usageKind
|
|
68
|
+
* @param sourceType
|
|
69
|
+
* @param status
|
|
70
|
+
* @param granularity
|
|
71
|
+
* @param groupBy
|
|
72
|
+
* @returns UsageStatsResponse Successful Response
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static usageOrganizationStatsGet(organizationId: string, start?: (string | null), end?: (string | null), days?: number, limit?: number, podId?: (string | null), userId?: (string | null), agentId?: (string | null), profileId?: (string | null), profileScope?: (string | null), modelName?: (string | null), usageKind?: (string | null), sourceType?: (string | null), status?: (string | null), granularity?: string, groupBy?: (string | null)): CancelablePromise<UsageStatsResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Get Organization Usage Summary
|
|
78
|
+
* @param organizationId
|
|
79
|
+
* @param start
|
|
80
|
+
* @param end
|
|
81
|
+
* @param days
|
|
82
|
+
* @param limit
|
|
83
|
+
* @param podId
|
|
84
|
+
* @param userId
|
|
85
|
+
* @param agentId
|
|
86
|
+
* @param profileId
|
|
87
|
+
* @param profileScope
|
|
88
|
+
* @param modelName
|
|
89
|
+
* @param usageKind
|
|
90
|
+
* @param sourceType
|
|
91
|
+
* @param status
|
|
92
|
+
* @returns UsageSummaryResponse Successful Response
|
|
93
|
+
* @throws ApiError
|
|
94
|
+
*/
|
|
95
|
+
static usageOrganizationSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), days?: number, limit?: number, podId?: (string | null), userId?: (string | null), agentId?: (string | null), profileId?: (string | null), profileScope?: (string | null), modelName?: (string | null), usageKind?: (string | null), sourceType?: (string | null), status?: (string | null)): CancelablePromise<UsageSummaryResponse>;
|
|
96
|
+
}
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FlowDetailResponse } from '../models/FlowDetailResponse.js';
|
|
2
2
|
import type { FlowRunEntity } from '../models/FlowRunEntity.js';
|
|
3
3
|
import type { WorkflowCreateRequest } from '../models/WorkflowCreateRequest.js';
|
|
4
4
|
import type { WorkflowGraphUpdateRequest } from '../models/WorkflowGraphUpdateRequest.js';
|
|
@@ -72,10 +72,10 @@ export declare class WorkflowsService {
|
|
|
72
72
|
* Create a workflow definition. Use this before uploading graph nodes/edges with `workflow.graph.update`.
|
|
73
73
|
* @param podId
|
|
74
74
|
* @param requestBody
|
|
75
|
-
* @returns
|
|
75
|
+
* @returns FlowDetailResponse Successful Response
|
|
76
76
|
* @throws ApiError
|
|
77
77
|
*/
|
|
78
|
-
static workflowCreate(podId: string, requestBody: WorkflowCreateRequest): CancelablePromise<
|
|
78
|
+
static workflowCreate(podId: string, requestBody: WorkflowCreateRequest): CancelablePromise<FlowDetailResponse>;
|
|
79
79
|
/**
|
|
80
80
|
* Delete Workflow
|
|
81
81
|
* Delete a workflow definition.
|
|
@@ -90,30 +90,30 @@ export declare class WorkflowsService {
|
|
|
90
90
|
* Get a single workflow definition including graph and start configuration.
|
|
91
91
|
* @param podId
|
|
92
92
|
* @param workflowName
|
|
93
|
-
* @returns
|
|
93
|
+
* @returns FlowDetailResponse Successful Response
|
|
94
94
|
* @throws ApiError
|
|
95
95
|
*/
|
|
96
|
-
static workflowGet(podId: string, workflowName: string): CancelablePromise<
|
|
96
|
+
static workflowGet(podId: string, workflowName: string): CancelablePromise<FlowDetailResponse>;
|
|
97
97
|
/**
|
|
98
98
|
* Update Workflow Metadata
|
|
99
99
|
* 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
100
|
* @param podId
|
|
101
101
|
* @param workflowName
|
|
102
102
|
* @param requestBody
|
|
103
|
-
* @returns
|
|
103
|
+
* @returns FlowDetailResponse Successful Response
|
|
104
104
|
* @throws ApiError
|
|
105
105
|
*/
|
|
106
|
-
static workflowUpdate(podId: string, workflowName: string, requestBody: WorkflowUpdateRequest): CancelablePromise<
|
|
106
|
+
static workflowUpdate(podId: string, workflowName: string, requestBody: WorkflowUpdateRequest): CancelablePromise<FlowDetailResponse>;
|
|
107
107
|
/**
|
|
108
108
|
* Update Workflow Graph
|
|
109
109
|
* 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
110
|
* @param podId
|
|
111
111
|
* @param workflowName
|
|
112
112
|
* @param requestBody
|
|
113
|
-
* @returns
|
|
113
|
+
* @returns FlowDetailResponse Successful Response
|
|
114
114
|
* @throws ApiError
|
|
115
115
|
*/
|
|
116
|
-
static workflowGraphUpdate(podId: string, workflowName: string, requestBody: WorkflowGraphUpdateRequest): CancelablePromise<
|
|
116
|
+
static workflowGraphUpdate(podId: string, workflowName: string, requestBody: WorkflowGraphUpdateRequest): CancelablePromise<FlowDetailResponse>;
|
|
117
117
|
/**
|
|
118
118
|
* Start Workflow
|
|
119
119
|
* Start a new workflow run. For event/scheduled/datastore starts, the request body is treated as initial trigger payload and merged into execution context.
|