windmill-client 1.309.0 → 1.309.2
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/dist/core/ApiError.d.ts +1 -1
- package/dist/core/ApiRequestOptions.d.ts +5 -5
- package/dist/core/ApiResult.d.ts +3 -3
- package/dist/core/CancelablePromise.d.ts +10 -4
- package/dist/core/CancelablePromise.js +33 -56
- package/dist/core/OpenAPI.d.ts +17 -6
- package/dist/core/OpenAPI.js +26 -6
- package/dist/core/request.d.ts +6 -7
- package/dist/core/request.js +40 -56
- package/dist/index.d.ts +4 -178
- package/dist/index.js +19 -102
- package/dist/schemas.gen.d.ts +3155 -0
- package/dist/schemas.gen.js +3222 -0
- package/dist/services.gen.d.ts +1928 -0
- package/dist/services.gen.js +5341 -0
- package/dist/types.gen.d.ts +6898 -0
- package/dist/{models/After.js → types.gen.js} +1 -0
- package/package.json +3 -2
- package/dist/models/AccountId.d.ts +0 -1
- package/dist/models/AccountId.js +0 -2
- package/dist/models/ActionKind.d.ts +0 -9
- package/dist/models/ActionKind.js +0 -17
- package/dist/models/After.d.ts +0 -4
- package/dist/models/AppHistory.d.ts +0 -4
- package/dist/models/AppHistory.js +0 -2
- package/dist/models/AppWithLastVersion.d.ts +0 -21
- package/dist/models/AppWithLastVersion.js +0 -12
- package/dist/models/AppWithLastVersionWDraft.d.ts +0 -5
- package/dist/models/AppWithLastVersionWDraft.js +0 -2
- package/dist/models/ArgsFilter.d.ts +0 -4
- package/dist/models/ArgsFilter.js +0 -2
- package/dist/models/AuditLog.d.ts +0 -102
- package/dist/models/AuditLog.js +0 -99
- package/dist/models/Before.d.ts +0 -4
- package/dist/models/Before.js +0 -2
- package/dist/models/BranchAll.d.ts +0 -10
- package/dist/models/BranchAll.js +0 -2
- package/dist/models/BranchOne.d.ts +0 -10
- package/dist/models/BranchOne.js +0 -2
- package/dist/models/CacheTtl.d.ts +0 -4
- package/dist/models/CacheTtl.js +0 -2
- package/dist/models/ClientName.d.ts +0 -1
- package/dist/models/ClientName.js +0 -2
- package/dist/models/CompletedJob.d.ts +0 -71
- package/dist/models/CompletedJob.js +0 -36
- package/dist/models/ConcurrencyGroup.d.ts +0 -4
- package/dist/models/ConcurrencyGroup.js +0 -2
- package/dist/models/ConcurrencyId.d.ts +0 -1
- package/dist/models/ConcurrencyId.js +0 -2
- package/dist/models/ContextualVariable.d.ts +0 -6
- package/dist/models/ContextualVariable.js +0 -2
- package/dist/models/CreateInput.d.ts +0 -4
- package/dist/models/CreateInput.js +0 -2
- package/dist/models/CreateResource.d.ts +0 -6
- package/dist/models/CreateResource.js +0 -2
- package/dist/models/CreateVariable.d.ts +0 -8
- package/dist/models/CreateVariable.js +0 -2
- package/dist/models/CreateWorkspace.d.ts +0 -5
- package/dist/models/CreateWorkspace.js +0 -2
- package/dist/models/CreatedBy.d.ts +0 -4
- package/dist/models/CreatedBy.js +0 -2
- package/dist/models/CreatedOrStartedAfter.d.ts +0 -4
- package/dist/models/CreatedOrStartedAfter.js +0 -2
- package/dist/models/CreatedOrStartedBefore.d.ts +0 -4
- package/dist/models/CreatedOrStartedBefore.js +0 -2
- package/dist/models/EditResource.d.ts +0 -5
- package/dist/models/EditResource.js +0 -2
- package/dist/models/EditResourceType.d.ts +0 -4
- package/dist/models/EditResourceType.js +0 -2
- package/dist/models/EditSchedule.d.ts +0 -19
- package/dist/models/EditSchedule.js +0 -2
- package/dist/models/EditVariable.d.ts +0 -6
- package/dist/models/EditVariable.js +0 -2
- package/dist/models/EditWorkspaceUser.d.ts +0 -5
- package/dist/models/EditWorkspaceUser.js +0 -2
- package/dist/models/Flow.d.ts +0 -3
- package/dist/models/Flow.js +0 -2
- package/dist/models/FlowMetadata.d.ts +0 -16
- package/dist/models/FlowMetadata.js +0 -2
- package/dist/models/FlowModule.d.ts +0 -34
- package/dist/models/FlowModule.js +0 -2
- package/dist/models/FlowModuleValue.d.ts +0 -9
- package/dist/models/FlowModuleValue.js +0 -2
- package/dist/models/FlowPreview.d.ts +0 -10
- package/dist/models/FlowPreview.js +0 -2
- package/dist/models/FlowStatus.d.ts +0 -13
- package/dist/models/FlowStatus.js +0 -2
- package/dist/models/FlowStatusModule.d.ts +0 -34
- package/dist/models/FlowStatusModule.js +0 -15
- package/dist/models/FlowValue.d.ts +0 -13
- package/dist/models/FlowValue.js +0 -2
- package/dist/models/Folder.d.ts +0 -5
- package/dist/models/Folder.js +0 -2
- package/dist/models/ForloopFlow.d.ts +0 -10
- package/dist/models/ForloopFlow.js +0 -2
- package/dist/models/GetStarted.d.ts +0 -1
- package/dist/models/GetStarted.js +0 -2
- package/dist/models/GitRepositorySettings.d.ts +0 -7
- package/dist/models/GitRepositorySettings.js +0 -2
- package/dist/models/GlobalUserInfo.d.ts +0 -15
- package/dist/models/GlobalUserInfo.js +0 -11
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/HubScriptKind.d.ts +0 -1
- package/dist/models/HubScriptKind.js +0 -2
- package/dist/models/Identity.d.ts +0 -4
- package/dist/models/Identity.js +0 -2
- package/dist/models/IncludeHeader.d.ts +0 -6
- package/dist/models/IncludeHeader.js +0 -2
- package/dist/models/Input.d.ts +0 -9
- package/dist/models/Input.js +0 -2
- package/dist/models/InputId.d.ts +0 -1
- package/dist/models/InputId.js +0 -2
- package/dist/models/InputTransform.d.ts +0 -3
- package/dist/models/InputTransform.js +0 -2
- package/dist/models/InstanceGroup.d.ts +0 -5
- package/dist/models/InstanceGroup.js +0 -2
- package/dist/models/JavascriptTransform.d.ts +0 -4
- package/dist/models/JavascriptTransform.js +0 -2
- package/dist/models/Job.d.ts +0 -12
- package/dist/models/Job.js +0 -10
- package/dist/models/JobId.d.ts +0 -1
- package/dist/models/JobId.js +0 -2
- package/dist/models/JobKinds.d.ts +0 -4
- package/dist/models/JobKinds.js +0 -2
- package/dist/models/Key.d.ts +0 -1
- package/dist/models/Key.js +0 -2
- package/dist/models/LargeFileStorage.d.ts +0 -14
- package/dist/models/LargeFileStorage.js +0 -13
- package/dist/models/ListableApp.d.ts +0 -18
- package/dist/models/ListableApp.js +0 -12
- package/dist/models/ListableRawApp.d.ts +0 -9
- package/dist/models/ListableRawApp.js +0 -2
- package/dist/models/ListableResource.d.ts +0 -14
- package/dist/models/ListableResource.js +0 -2
- package/dist/models/ListableVariable.d.ts +0 -14
- package/dist/models/ListableVariable.js +0 -2
- package/dist/models/Login.d.ts +0 -4
- package/dist/models/Login.js +0 -2
- package/dist/models/MainArgSignature.d.ts +0 -33
- package/dist/models/MainArgSignature.js +0 -11
- package/dist/models/MetricDataPoint.d.ts +0 -4
- package/dist/models/MetricDataPoint.js +0 -2
- package/dist/models/MetricMetadata.d.ts +0 -4
- package/dist/models/MetricMetadata.js +0 -2
- package/dist/models/Name.d.ts +0 -1
- package/dist/models/Name.js +0 -2
- package/dist/models/NewJobId.d.ts +0 -4
- package/dist/models/NewJobId.js +0 -2
- package/dist/models/NewSchedule.d.ts +0 -23
- package/dist/models/NewSchedule.js +0 -2
- package/dist/models/NewScript.d.ts +0 -51
- package/dist/models/NewScript.js +0 -30
- package/dist/models/NewScriptWithDraft.d.ts +0 -5
- package/dist/models/NewScriptWithDraft.js +0 -2
- package/dist/models/NewToken.d.ts +0 -5
- package/dist/models/NewToken.js +0 -2
- package/dist/models/NewTokenImpersonate.d.ts +0 -5
- package/dist/models/NewTokenImpersonate.js +0 -2
- package/dist/models/OpenFlow.d.ts +0 -7
- package/dist/models/OpenFlow.js +0 -2
- package/dist/models/OpenFlowWPath.d.ts +0 -10
- package/dist/models/OpenFlowWPath.js +0 -2
- package/dist/models/Operation.d.ts +0 -4
- package/dist/models/Operation.js +0 -2
- package/dist/models/OrderDesc.d.ts +0 -4
- package/dist/models/OrderDesc.js +0 -2
- package/dist/models/Page.d.ts +0 -4
- package/dist/models/Page.js +0 -2
- package/dist/models/ParentJob.d.ts +0 -4
- package/dist/models/ParentJob.js +0 -2
- package/dist/models/Path.d.ts +0 -1
- package/dist/models/Path.js +0 -2
- package/dist/models/PathFlow.d.ts +0 -6
- package/dist/models/PathFlow.js +0 -2
- package/dist/models/PathId.d.ts +0 -1
- package/dist/models/PathId.js +0 -2
- package/dist/models/PathScript.d.ts +0 -7
- package/dist/models/PathScript.js +0 -2
- package/dist/models/PathVersion.d.ts +0 -1
- package/dist/models/PathVersion.js +0 -2
- package/dist/models/Payload.d.ts +0 -6
- package/dist/models/Payload.js +0 -2
- package/dist/models/PerPage.d.ts +0 -4
- package/dist/models/PerPage.js +0 -2
- package/dist/models/PolarsClientKwargs.d.ts +0 -3
- package/dist/models/PolarsClientKwargs.js +0 -2
- package/dist/models/Policy.d.ts +0 -13
- package/dist/models/Policy.js +0 -12
- package/dist/models/Preview.d.ts +0 -33
- package/dist/models/Preview.js +0 -28
- package/dist/models/QueueLimit.d.ts +0 -5
- package/dist/models/QueueLimit.js +0 -2
- package/dist/models/QueuedJob.d.ts +0 -69
- package/dist/models/QueuedJob.js +0 -36
- package/dist/models/RawScript.d.ts +0 -29
- package/dist/models/RawScript.js +0 -22
- package/dist/models/RawScriptForDependencies.d.ts +0 -22
- package/dist/models/RawScriptForDependencies.js +0 -22
- package/dist/models/Resource.d.ts +0 -9
- package/dist/models/Resource.js +0 -2
- package/dist/models/ResourceName.d.ts +0 -4
- package/dist/models/ResourceName.js +0 -2
- package/dist/models/ResourceType.d.ts +0 -6
- package/dist/models/ResourceType.js +0 -2
- package/dist/models/RestartedFrom.d.ts +0 -5
- package/dist/models/RestartedFrom.js +0 -2
- package/dist/models/ResultFilter.d.ts +0 -4
- package/dist/models/ResultFilter.js +0 -2
- package/dist/models/Retry.d.ts +0 -12
- package/dist/models/Retry.js +0 -2
- package/dist/models/RunnableId.d.ts +0 -1
- package/dist/models/RunnableId.js +0 -2
- package/dist/models/RunnableType.d.ts +0 -5
- package/dist/models/RunnableType.js +0 -13
- package/dist/models/RunnableTypeQuery.d.ts +0 -2
- package/dist/models/RunnableTypeQuery.js +0 -2
- package/dist/models/Running.d.ts +0 -4
- package/dist/models/Running.js +0 -2
- package/dist/models/S3Resource.d.ts +0 -9
- package/dist/models/S3Resource.js +0 -2
- package/dist/models/ScalarMetric.d.ts +0 -4
- package/dist/models/ScalarMetric.js +0 -2
- package/dist/models/Schedule.d.ts +0 -28
- package/dist/models/Schedule.js +0 -2
- package/dist/models/SchedulePath.d.ts +0 -4
- package/dist/models/SchedulePath.js +0 -2
- package/dist/models/ScheduleWJobs.d.ts +0 -8
- package/dist/models/ScheduleWJobs.js +0 -2
- package/dist/models/ScheduledForBeforeNow.d.ts +0 -4
- package/dist/models/ScheduledForBeforeNow.js +0 -2
- package/dist/models/Script.d.ts +0 -63
- package/dist/models/Script.js +0 -30
- package/dist/models/ScriptArgs.d.ts +0 -1
- package/dist/models/ScriptArgs.js +0 -2
- package/dist/models/ScriptExactHash.d.ts +0 -4
- package/dist/models/ScriptExactHash.js +0 -2
- package/dist/models/ScriptExactPath.d.ts +0 -4
- package/dist/models/ScriptExactPath.js +0 -2
- package/dist/models/ScriptHash.d.ts +0 -1
- package/dist/models/ScriptHash.js +0 -2
- package/dist/models/ScriptHistory.d.ts +0 -4
- package/dist/models/ScriptHistory.js +0 -2
- package/dist/models/ScriptPath.d.ts +0 -1
- package/dist/models/ScriptPath.js +0 -2
- package/dist/models/ScriptStartPath.d.ts +0 -4
- package/dist/models/ScriptStartPath.js +0 -2
- package/dist/models/SlackToken.d.ts +0 -8
- package/dist/models/SlackToken.js +0 -2
- package/dist/models/StartedAfter.d.ts +0 -4
- package/dist/models/StartedAfter.js +0 -2
- package/dist/models/StartedBefore.d.ts +0 -4
- package/dist/models/StartedBefore.js +0 -2
- package/dist/models/StaticTransform.d.ts +0 -4
- package/dist/models/StaticTransform.js +0 -2
- package/dist/models/Success.d.ts +0 -4
- package/dist/models/Success.js +0 -2
- package/dist/models/Suspended.d.ts +0 -4
- package/dist/models/Suspended.js +0 -2
- package/dist/models/Tag.d.ts +0 -4
- package/dist/models/Tag.js +0 -2
- package/dist/models/TimeseriesMetric.d.ts +0 -5
- package/dist/models/TimeseriesMetric.js +0 -2
- package/dist/models/Token.d.ts +0 -1
- package/dist/models/Token.js +0 -2
- package/dist/models/TokenResponse.d.ts +0 -6
- package/dist/models/TokenResponse.js +0 -2
- package/dist/models/TruncatedToken.d.ts +0 -8
- package/dist/models/TruncatedToken.js +0 -2
- package/dist/models/UpdateInput.d.ts +0 -5
- package/dist/models/UpdateInput.js +0 -2
- package/dist/models/UploadFilePart.d.ts +0 -4
- package/dist/models/UploadFilePart.js +0 -2
- package/dist/models/User.d.ts +0 -12
- package/dist/models/User.js +0 -2
- package/dist/models/UserUsage.d.ts +0 -4
- package/dist/models/UserUsage.js +0 -2
- package/dist/models/UserWorkspaceList.d.ts +0 -8
- package/dist/models/UserWorkspaceList.js +0 -2
- package/dist/models/Username.d.ts +0 -4
- package/dist/models/Username.js +0 -2
- package/dist/models/VersionId.d.ts +0 -1
- package/dist/models/VersionId.js +0 -2
- package/dist/models/WhileloopFlow.d.ts +0 -8
- package/dist/models/WhileloopFlow.js +0 -2
- package/dist/models/WindmillFileMetadata.d.ts +0 -7
- package/dist/models/WindmillFileMetadata.js +0 -2
- package/dist/models/WindmillFilePreview.d.ts +0 -13
- package/dist/models/WindmillFilePreview.js +0 -13
- package/dist/models/WindmillLargeFile.d.ts +0 -3
- package/dist/models/WindmillLargeFile.js +0 -2
- package/dist/models/WorkerPing.d.ts +0 -11
- package/dist/models/WorkerPing.js +0 -2
- package/dist/models/WorkerTag.d.ts +0 -4
- package/dist/models/WorkerTag.js +0 -2
- package/dist/models/WorkflowStatus.d.ts +0 -6
- package/dist/models/WorkflowStatus.js +0 -2
- package/dist/models/WorkflowStatusRecord.d.ts +0 -2
- package/dist/models/WorkflowStatusRecord.js +0 -2
- package/dist/models/WorkflowTask.d.ts +0 -4
- package/dist/models/WorkflowTask.js +0 -2
- package/dist/models/Workspace.d.ts +0 -6
- package/dist/models/Workspace.js +0 -2
- package/dist/models/WorkspaceDefaultScripts.d.ts +0 -5
- package/dist/models/WorkspaceDefaultScripts.js +0 -2
- package/dist/models/WorkspaceGitSyncSettings.d.ts +0 -6
- package/dist/models/WorkspaceGitSyncSettings.js +0 -2
- package/dist/models/WorkspaceId.d.ts +0 -1
- package/dist/models/WorkspaceId.js +0 -2
- package/dist/models/WorkspaceInvite.d.ts +0 -6
- package/dist/models/WorkspaceInvite.js +0 -2
- package/dist/services/AdminService.d.ts +0 -36
- package/dist/services/AdminService.js +0 -55
- package/dist/services/AppService.d.ts +0 -244
- package/dist/services/AppService.js +0 -273
- package/dist/services/AuditService.d.ts +0 -53
- package/dist/services/AuditService.js +0 -47
- package/dist/services/CaptureService.d.ts +0 -30
- package/dist/services/CaptureService.js +0 -56
- package/dist/services/ConcurrencyGroupsService.d.ts +0 -18
- package/dist/services/ConcurrencyGroupsService.js +0 -33
- package/dist/services/ConfigService.d.ts +0 -40
- package/dist/services/ConfigService.js +0 -63
- package/dist/services/DraftService.d.ts +0 -26
- package/dist/services/DraftService.js +0 -40
- package/dist/services/FavoriteService.d.ts +0 -27
- package/dist/services/FavoriteService.js +0 -40
- package/dist/services/FlowService.d.ts +0 -215
- package/dist/services/FlowService.js +0 -231
- package/dist/services/FolderService.d.ts +0 -129
- package/dist/services/FolderService.js +0 -155
- package/dist/services/GranularAclService.d.ts +0 -46
- package/dist/services/GranularAclService.js +0 -60
- package/dist/services/GroupService.d.ts +0 -189
- package/dist/services/GroupService.js +0 -240
- package/dist/services/HelpersService.d.ts +0 -215
- package/dist/services/HelpersService.js +0 -260
- package/dist/services/InputService.d.ts +0 -78
- package/dist/services/InputService.js +0 -99
- package/dist/services/IntegrationService.d.ts +0 -16
- package/dist/services/IntegrationService.js +0 -22
- package/dist/services/JobService.d.ts +0 -1052
- package/dist/services/JobService.js +0 -894
- package/dist/services/MetricsService.d.ts +0 -27
- package/dist/services/MetricsService.js +0 -25
- package/dist/services/OauthService.d.ts +0 -97
- package/dist/services/OauthService.js +0 -124
- package/dist/services/OidcService.d.ts +0 -12
- package/dist/services/OidcService.js +0 -23
- package/dist/services/RawAppService.d.ts +0 -103
- package/dist/services/RawAppService.js +0 -110
- package/dist/services/ResourceService.d.ts +0 -234
- package/dist/services/ResourceService.js +0 -312
- package/dist/services/ScheduleService.d.ts +0 -149
- package/dist/services/ScheduleService.js +0 -171
- package/dist/services/ScriptService.d.ts +0 -355
- package/dist/services/ScriptService.js +0 -373
- package/dist/services/SettingService.d.ts +0 -93
- package/dist/services/SettingService.js +0 -112
- package/dist/services/SettingsService.d.ts +0 -27
- package/dist/services/SettingsService.js +0 -52
- package/dist/services/UserService.d.ts +0 -366
- package/dist/services/UserService.js +0 -479
- package/dist/services/VariableService.d.ts +0 -109
- package/dist/services/VariableService.js +0 -155
- package/dist/services/WorkerService.d.ts +0 -49
- package/dist/services/WorkerService.js +0 -71
- package/dist/services/WorkspaceService.d.ts +0 -517
- package/dist/services/WorkspaceService.js +0 -623
|
@@ -0,0 +1,3222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.$ExtraPerms = exports.$Flow = exports.$GlobalUserInfo = exports.$WorkspaceInvite = exports.$Workspace = exports.$CreateWorkspace = exports.$UserWorkspaceList = exports.$WorkerPing = exports.$Folder = exports.$InstanceGroup = exports.$Group = exports.$EditSchedule = exports.$NewSchedule = exports.$ScheduleWJobs = exports.$Schedule = exports.$EditResourceType = exports.$ResourceType = exports.$ListableResource = exports.$Resource = exports.$EditResource = exports.$CreateResource = exports.$WorkflowStatus = exports.$WorkflowStatusRecord = exports.$WorkflowTask = exports.$Preview = exports.$MainArgSignature = exports.$AuditLog = exports.$EditVariable = exports.$CreateVariable = exports.$ContextualVariable = exports.$ListableVariable = exports.$NewTokenImpersonate = exports.$NewToken = exports.$TruncatedToken = exports.$EditWorkspaceUser = exports.$Login = exports.$UserUsage = exports.$User = exports.$Job = exports.$CompletedJob = exports.$QueuedJob = exports.$RunnableType = exports.$UpdateInput = exports.$CreateInput = exports.$Input = exports.$ScriptArgs = exports.$ScriptHistory = exports.$NewScriptWithDraft = exports.$NewScript = exports.$Script = void 0;
|
|
5
|
+
exports.$VersionId = exports.$WorkspaceId = exports.$Key = exports.$FlowStatusModule = exports.$FlowStatus = exports.$Identity = exports.$BranchAll = exports.$BranchOne = exports.$WhileloopFlow = exports.$ForloopFlow = exports.$PathFlow = exports.$PathScript = exports.$RawScript = exports.$FlowModuleValue = exports.$JavascriptTransform = exports.$StaticTransform = exports.$InputTransform = exports.$FlowModule = exports.$Retry = exports.$FlowValue = exports.$OpenFlow = exports.$ConcurrencyGroup = exports.$RawScriptForDependencies = exports.$MetricDataPoint = exports.$TimeseriesMetric = exports.$ScalarMetric = exports.$MetricMetadata = exports.$UploadFilePart = exports.$GitRepositorySettings = exports.$WorkspaceDefaultScripts = exports.$WorkspaceGitSyncSettings = exports.$S3Resource = exports.$WindmillFilePreview = exports.$WindmillFileMetadata = exports.$WindmillLargeFile = exports.$LargeFileStorage = exports.$PolarsClientKwargs = exports.$HubScriptKind = exports.$TokenResponse = exports.$SlackToken = exports.$AppHistory = exports.$AppWithLastVersionWDraft = exports.$AppWithLastVersion = exports.$ListableRawApp = exports.$ListableApp = exports.$Policy = exports.$RestartedFrom = exports.$FlowPreview = exports.$OpenFlowWPath = exports.$FlowMetadata = void 0;
|
|
6
|
+
exports.$ConcurrencyId = exports.$GetStarted = exports.$InputId = exports.$RunnableTypeQuery = exports.$RunnableId = exports.$JobKinds = exports.$ActionKind = exports.$ResourceName = exports.$Operation = exports.$Username = exports.$Before = exports.$After = exports.$ResultFilter = exports.$Tag = exports.$ArgsFilter = exports.$Running = exports.$Suspended = exports.$ScheduledForBeforeNow = exports.$Success = exports.$CreatedOrStartedBefore = exports.$CreatedOrStartedAfter = exports.$StartedAfter = exports.$StartedBefore = exports.$ScriptExactHash = exports.$ScriptExactPath = exports.$SchedulePath = exports.$ScriptStartPath = exports.$Payload = exports.$QueueLimit = exports.$IncludeHeader = exports.$NewJobId = exports.$CacheTtl = exports.$WorkerTag = exports.$ParentJob = exports.$CreatedBy = exports.$OrderDesc = exports.$PerPage = exports.$Page = exports.$Name = exports.$PathVersion = exports.$PathId = exports.$Path = exports.$JobId = exports.$ScriptHash = exports.$ScriptPath = exports.$ClientName = exports.$AccountId = exports.$Token = void 0;
|
|
7
|
+
exports.$Script = {
|
|
8
|
+
type: 'object',
|
|
9
|
+
properties: {
|
|
10
|
+
workspace_id: {
|
|
11
|
+
type: 'string'
|
|
12
|
+
},
|
|
13
|
+
hash: {
|
|
14
|
+
type: 'string'
|
|
15
|
+
},
|
|
16
|
+
path: {
|
|
17
|
+
type: 'string'
|
|
18
|
+
},
|
|
19
|
+
parent_hashes: {
|
|
20
|
+
type: 'array',
|
|
21
|
+
description: `The first element is the direct parent of the script, the second is the parent of the first, etc
|
|
22
|
+
`,
|
|
23
|
+
items: {
|
|
24
|
+
type: 'string'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
summary: {
|
|
28
|
+
type: 'string'
|
|
29
|
+
},
|
|
30
|
+
description: {
|
|
31
|
+
type: 'string'
|
|
32
|
+
},
|
|
33
|
+
content: {
|
|
34
|
+
type: 'string'
|
|
35
|
+
},
|
|
36
|
+
created_by: {
|
|
37
|
+
type: 'string'
|
|
38
|
+
},
|
|
39
|
+
created_at: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
format: 'date-time'
|
|
42
|
+
},
|
|
43
|
+
archived: {
|
|
44
|
+
type: 'boolean'
|
|
45
|
+
},
|
|
46
|
+
schema: {
|
|
47
|
+
type: 'object'
|
|
48
|
+
},
|
|
49
|
+
deleted: {
|
|
50
|
+
type: 'boolean'
|
|
51
|
+
},
|
|
52
|
+
is_template: {
|
|
53
|
+
type: 'boolean'
|
|
54
|
+
},
|
|
55
|
+
extra_perms: {
|
|
56
|
+
type: 'object',
|
|
57
|
+
additionalProperties: {
|
|
58
|
+
type: 'boolean'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
lock: {
|
|
62
|
+
type: 'string'
|
|
63
|
+
},
|
|
64
|
+
lock_error_logs: {
|
|
65
|
+
type: 'string'
|
|
66
|
+
},
|
|
67
|
+
language: {
|
|
68
|
+
type: 'string',
|
|
69
|
+
enum: ['python3', 'deno', 'go', 'bash', 'powershell', 'postgresql', 'mysql', 'bigquery', 'snowflake', 'mssql', 'graphql', 'nativets', 'bun']
|
|
70
|
+
},
|
|
71
|
+
kind: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
enum: ['script', 'failure', 'trigger', 'command', 'approval']
|
|
74
|
+
},
|
|
75
|
+
starred: {
|
|
76
|
+
type: 'boolean'
|
|
77
|
+
},
|
|
78
|
+
tag: {
|
|
79
|
+
type: 'string'
|
|
80
|
+
},
|
|
81
|
+
has_draft: {
|
|
82
|
+
type: 'boolean'
|
|
83
|
+
},
|
|
84
|
+
draft_only: {
|
|
85
|
+
type: 'boolean'
|
|
86
|
+
},
|
|
87
|
+
envs: {
|
|
88
|
+
type: 'array',
|
|
89
|
+
items: {
|
|
90
|
+
type: 'string'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
concurrent_limit: {
|
|
94
|
+
type: 'integer'
|
|
95
|
+
},
|
|
96
|
+
concurrency_time_window_s: {
|
|
97
|
+
type: 'integer'
|
|
98
|
+
},
|
|
99
|
+
cache_ttl: {
|
|
100
|
+
type: 'number'
|
|
101
|
+
},
|
|
102
|
+
dedicated_worker: {
|
|
103
|
+
type: 'boolean'
|
|
104
|
+
},
|
|
105
|
+
ws_error_handler_muted: {
|
|
106
|
+
type: 'boolean'
|
|
107
|
+
},
|
|
108
|
+
priority: {
|
|
109
|
+
type: 'integer'
|
|
110
|
+
},
|
|
111
|
+
restart_unless_cancelled: {
|
|
112
|
+
type: 'boolean'
|
|
113
|
+
},
|
|
114
|
+
timeout: {
|
|
115
|
+
type: 'integer'
|
|
116
|
+
},
|
|
117
|
+
delete_after_use: {
|
|
118
|
+
type: 'boolean'
|
|
119
|
+
},
|
|
120
|
+
visible_to_runner_only: {
|
|
121
|
+
type: 'boolean'
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
required: ['hash', 'path', 'summary', 'description', 'content', 'created_by', 'created_at', 'archived', 'deleted', 'is_template', 'extra_perms', 'language', 'kind', 'starred']
|
|
125
|
+
};
|
|
126
|
+
exports.$NewScript = {
|
|
127
|
+
type: 'object',
|
|
128
|
+
properties: {
|
|
129
|
+
path: {
|
|
130
|
+
type: 'string'
|
|
131
|
+
},
|
|
132
|
+
parent_hash: {
|
|
133
|
+
type: 'string'
|
|
134
|
+
},
|
|
135
|
+
summary: {
|
|
136
|
+
type: 'string'
|
|
137
|
+
},
|
|
138
|
+
description: {
|
|
139
|
+
type: 'string'
|
|
140
|
+
},
|
|
141
|
+
content: {
|
|
142
|
+
type: 'string'
|
|
143
|
+
},
|
|
144
|
+
schema: {
|
|
145
|
+
type: 'object'
|
|
146
|
+
},
|
|
147
|
+
is_template: {
|
|
148
|
+
type: 'boolean'
|
|
149
|
+
},
|
|
150
|
+
lock: {
|
|
151
|
+
type: 'string'
|
|
152
|
+
},
|
|
153
|
+
language: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
enum: ['python3', 'deno', 'go', 'bash', 'powershell', 'postgresql', 'mysql', 'bigquery', 'snowflake', 'mssql', 'graphql', 'nativets', 'bun']
|
|
156
|
+
},
|
|
157
|
+
kind: {
|
|
158
|
+
type: 'string',
|
|
159
|
+
enum: ['script', 'failure', 'trigger', 'command', 'approval']
|
|
160
|
+
},
|
|
161
|
+
tag: {
|
|
162
|
+
type: 'string'
|
|
163
|
+
},
|
|
164
|
+
draft_only: {
|
|
165
|
+
type: 'boolean'
|
|
166
|
+
},
|
|
167
|
+
envs: {
|
|
168
|
+
type: 'array',
|
|
169
|
+
items: {
|
|
170
|
+
type: 'string'
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
concurrent_limit: {
|
|
174
|
+
type: 'integer'
|
|
175
|
+
},
|
|
176
|
+
concurrency_time_window_s: {
|
|
177
|
+
type: 'integer'
|
|
178
|
+
},
|
|
179
|
+
cache_ttl: {
|
|
180
|
+
type: 'number'
|
|
181
|
+
},
|
|
182
|
+
dedicated_worker: {
|
|
183
|
+
type: 'boolean'
|
|
184
|
+
},
|
|
185
|
+
ws_error_handler_muted: {
|
|
186
|
+
type: 'boolean'
|
|
187
|
+
},
|
|
188
|
+
priority: {
|
|
189
|
+
type: 'integer'
|
|
190
|
+
},
|
|
191
|
+
restart_unless_cancelled: {
|
|
192
|
+
type: 'boolean'
|
|
193
|
+
},
|
|
194
|
+
timeout: {
|
|
195
|
+
type: 'integer'
|
|
196
|
+
},
|
|
197
|
+
delete_after_use: {
|
|
198
|
+
type: 'boolean'
|
|
199
|
+
},
|
|
200
|
+
deployment_message: {
|
|
201
|
+
type: 'string'
|
|
202
|
+
},
|
|
203
|
+
concurrency_key: {
|
|
204
|
+
type: 'string'
|
|
205
|
+
},
|
|
206
|
+
visible_to_runner_only: {
|
|
207
|
+
type: 'boolean'
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
required: ['path', 'summary', 'description', 'content', 'language']
|
|
211
|
+
};
|
|
212
|
+
exports.$NewScriptWithDraft = {
|
|
213
|
+
allOf: [
|
|
214
|
+
{
|
|
215
|
+
'$ref': '#/components/schemas/NewScript'
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type: 'object',
|
|
219
|
+
properties: {
|
|
220
|
+
draft: {
|
|
221
|
+
'$ref': '#/components/schemas/NewScript'
|
|
222
|
+
},
|
|
223
|
+
hash: {
|
|
224
|
+
type: 'string'
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
required: ['hash']
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
};
|
|
231
|
+
exports.$ScriptHistory = {
|
|
232
|
+
type: 'object',
|
|
233
|
+
properties: {
|
|
234
|
+
script_hash: {
|
|
235
|
+
type: 'string'
|
|
236
|
+
},
|
|
237
|
+
deployment_msg: {
|
|
238
|
+
type: 'string'
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
required: ['script_hash']
|
|
242
|
+
};
|
|
243
|
+
exports.$ScriptArgs = {
|
|
244
|
+
type: 'object',
|
|
245
|
+
additionalProperties: {}
|
|
246
|
+
};
|
|
247
|
+
exports.$Input = {
|
|
248
|
+
type: 'object',
|
|
249
|
+
properties: {
|
|
250
|
+
id: {
|
|
251
|
+
type: 'string'
|
|
252
|
+
},
|
|
253
|
+
name: {
|
|
254
|
+
type: 'string'
|
|
255
|
+
},
|
|
256
|
+
args: {
|
|
257
|
+
type: 'object'
|
|
258
|
+
},
|
|
259
|
+
created_by: {
|
|
260
|
+
type: 'string'
|
|
261
|
+
},
|
|
262
|
+
created_at: {
|
|
263
|
+
type: 'string',
|
|
264
|
+
format: 'date-time'
|
|
265
|
+
},
|
|
266
|
+
is_public: {
|
|
267
|
+
type: 'boolean'
|
|
268
|
+
},
|
|
269
|
+
success: {
|
|
270
|
+
type: 'boolean'
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
required: ['id', 'name', 'args', 'created_by', 'created_at', 'is_public']
|
|
274
|
+
};
|
|
275
|
+
exports.$CreateInput = {
|
|
276
|
+
type: 'object',
|
|
277
|
+
properties: {
|
|
278
|
+
name: {
|
|
279
|
+
type: 'string'
|
|
280
|
+
},
|
|
281
|
+
args: {
|
|
282
|
+
type: 'object'
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
required: ['name', 'args', 'created_by']
|
|
286
|
+
};
|
|
287
|
+
exports.$UpdateInput = {
|
|
288
|
+
type: 'object',
|
|
289
|
+
properties: {
|
|
290
|
+
id: {
|
|
291
|
+
type: 'string'
|
|
292
|
+
},
|
|
293
|
+
name: {
|
|
294
|
+
type: 'string'
|
|
295
|
+
},
|
|
296
|
+
is_public: {
|
|
297
|
+
type: 'boolean'
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
required: ['id', 'name', 'is_public']
|
|
301
|
+
};
|
|
302
|
+
exports.$RunnableType = {
|
|
303
|
+
type: 'string',
|
|
304
|
+
enum: ['ScriptHash', 'ScriptPath', 'FlowPath']
|
|
305
|
+
};
|
|
306
|
+
exports.$QueuedJob = {
|
|
307
|
+
type: 'object',
|
|
308
|
+
properties: {
|
|
309
|
+
workspace_id: {
|
|
310
|
+
type: 'string'
|
|
311
|
+
},
|
|
312
|
+
id: {
|
|
313
|
+
type: 'string',
|
|
314
|
+
format: 'uuid'
|
|
315
|
+
},
|
|
316
|
+
parent_job: {
|
|
317
|
+
type: 'string',
|
|
318
|
+
format: 'uuid'
|
|
319
|
+
},
|
|
320
|
+
created_by: {
|
|
321
|
+
type: 'string'
|
|
322
|
+
},
|
|
323
|
+
created_at: {
|
|
324
|
+
type: 'string',
|
|
325
|
+
format: 'date-time'
|
|
326
|
+
},
|
|
327
|
+
started_at: {
|
|
328
|
+
type: 'string',
|
|
329
|
+
format: 'date-time'
|
|
330
|
+
},
|
|
331
|
+
scheduled_for: {
|
|
332
|
+
type: 'string',
|
|
333
|
+
format: 'date-time'
|
|
334
|
+
},
|
|
335
|
+
running: {
|
|
336
|
+
type: 'boolean'
|
|
337
|
+
},
|
|
338
|
+
script_path: {
|
|
339
|
+
type: 'string'
|
|
340
|
+
},
|
|
341
|
+
script_hash: {
|
|
342
|
+
type: 'string'
|
|
343
|
+
},
|
|
344
|
+
args: {
|
|
345
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
346
|
+
},
|
|
347
|
+
logs: {
|
|
348
|
+
type: 'string'
|
|
349
|
+
},
|
|
350
|
+
raw_code: {
|
|
351
|
+
type: 'string'
|
|
352
|
+
},
|
|
353
|
+
canceled: {
|
|
354
|
+
type: 'boolean'
|
|
355
|
+
},
|
|
356
|
+
canceled_by: {
|
|
357
|
+
type: 'string'
|
|
358
|
+
},
|
|
359
|
+
canceled_reason: {
|
|
360
|
+
type: 'string'
|
|
361
|
+
},
|
|
362
|
+
last_ping: {
|
|
363
|
+
type: 'string',
|
|
364
|
+
format: 'date-time'
|
|
365
|
+
},
|
|
366
|
+
job_kind: {
|
|
367
|
+
type: 'string',
|
|
368
|
+
enum: ['script', 'preview', 'dependencies', 'flowdependencies', 'appdependencies', 'flow', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow']
|
|
369
|
+
},
|
|
370
|
+
schedule_path: {
|
|
371
|
+
type: 'string'
|
|
372
|
+
},
|
|
373
|
+
permissioned_as: {
|
|
374
|
+
type: 'string',
|
|
375
|
+
description: `The user (u/userfoo) or group (g/groupfoo) whom
|
|
376
|
+
the execution of this script will be permissioned_as and by extension its DT_TOKEN.
|
|
377
|
+
`
|
|
378
|
+
},
|
|
379
|
+
flow_status: {
|
|
380
|
+
'$ref': '#/components/schemas/FlowStatus'
|
|
381
|
+
},
|
|
382
|
+
raw_flow: {
|
|
383
|
+
'$ref': '#/components/schemas/FlowValue'
|
|
384
|
+
},
|
|
385
|
+
is_flow_step: {
|
|
386
|
+
type: 'boolean'
|
|
387
|
+
},
|
|
388
|
+
language: {
|
|
389
|
+
type: 'string',
|
|
390
|
+
enum: ['python3', 'deno', 'go', 'bash', 'powershell', 'postgresql', 'mysql', 'bigquery', 'snowflake', 'mssql', 'graphql', 'nativets', 'bun']
|
|
391
|
+
},
|
|
392
|
+
email: {
|
|
393
|
+
type: 'string'
|
|
394
|
+
},
|
|
395
|
+
visible_to_owner: {
|
|
396
|
+
type: 'boolean'
|
|
397
|
+
},
|
|
398
|
+
mem_peak: {
|
|
399
|
+
type: 'integer'
|
|
400
|
+
},
|
|
401
|
+
tag: {
|
|
402
|
+
type: 'string'
|
|
403
|
+
},
|
|
404
|
+
priority: {
|
|
405
|
+
type: 'integer'
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
required: ['id', 'running', 'canceled', 'job_kind', 'permissioned_as', 'is_flow_step', 'email', 'visible_to_owner', 'tag']
|
|
409
|
+
};
|
|
410
|
+
exports.$CompletedJob = {
|
|
411
|
+
type: 'object',
|
|
412
|
+
properties: {
|
|
413
|
+
workspace_id: {
|
|
414
|
+
type: 'string'
|
|
415
|
+
},
|
|
416
|
+
id: {
|
|
417
|
+
type: 'string',
|
|
418
|
+
format: 'uuid'
|
|
419
|
+
},
|
|
420
|
+
parent_job: {
|
|
421
|
+
type: 'string',
|
|
422
|
+
format: 'uuid'
|
|
423
|
+
},
|
|
424
|
+
created_by: {
|
|
425
|
+
type: 'string'
|
|
426
|
+
},
|
|
427
|
+
created_at: {
|
|
428
|
+
type: 'string',
|
|
429
|
+
format: 'date-time'
|
|
430
|
+
},
|
|
431
|
+
started_at: {
|
|
432
|
+
type: 'string',
|
|
433
|
+
format: 'date-time'
|
|
434
|
+
},
|
|
435
|
+
duration_ms: {
|
|
436
|
+
type: 'integer'
|
|
437
|
+
},
|
|
438
|
+
success: {
|
|
439
|
+
type: 'boolean'
|
|
440
|
+
},
|
|
441
|
+
script_path: {
|
|
442
|
+
type: 'string'
|
|
443
|
+
},
|
|
444
|
+
script_hash: {
|
|
445
|
+
type: 'string'
|
|
446
|
+
},
|
|
447
|
+
args: {
|
|
448
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
449
|
+
},
|
|
450
|
+
result: {},
|
|
451
|
+
logs: {
|
|
452
|
+
type: 'string'
|
|
453
|
+
},
|
|
454
|
+
deleted: {
|
|
455
|
+
type: 'boolean'
|
|
456
|
+
},
|
|
457
|
+
raw_code: {
|
|
458
|
+
type: 'string'
|
|
459
|
+
},
|
|
460
|
+
canceled: {
|
|
461
|
+
type: 'boolean'
|
|
462
|
+
},
|
|
463
|
+
canceled_by: {
|
|
464
|
+
type: 'string'
|
|
465
|
+
},
|
|
466
|
+
canceled_reason: {
|
|
467
|
+
type: 'string'
|
|
468
|
+
},
|
|
469
|
+
job_kind: {
|
|
470
|
+
type: 'string',
|
|
471
|
+
enum: ['script', 'preview', 'dependencies', 'flow', 'flowdependencies', 'appdependencies', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow']
|
|
472
|
+
},
|
|
473
|
+
schedule_path: {
|
|
474
|
+
type: 'string'
|
|
475
|
+
},
|
|
476
|
+
permissioned_as: {
|
|
477
|
+
type: 'string',
|
|
478
|
+
description: `The user (u/userfoo) or group (g/groupfoo) whom
|
|
479
|
+
the execution of this script will be permissioned_as and by extension its DT_TOKEN.
|
|
480
|
+
`
|
|
481
|
+
},
|
|
482
|
+
flow_status: {
|
|
483
|
+
'$ref': '#/components/schemas/FlowStatus'
|
|
484
|
+
},
|
|
485
|
+
raw_flow: {
|
|
486
|
+
'$ref': '#/components/schemas/FlowValue'
|
|
487
|
+
},
|
|
488
|
+
is_flow_step: {
|
|
489
|
+
type: 'boolean'
|
|
490
|
+
},
|
|
491
|
+
language: {
|
|
492
|
+
type: 'string',
|
|
493
|
+
enum: ['python3', 'deno', 'go', 'bash', 'powershell', 'postgresql', 'mysql', 'bigquery', 'snowflake', 'mssql', 'graphql', 'nativets', 'bun']
|
|
494
|
+
},
|
|
495
|
+
is_skipped: {
|
|
496
|
+
type: 'boolean'
|
|
497
|
+
},
|
|
498
|
+
email: {
|
|
499
|
+
type: 'string'
|
|
500
|
+
},
|
|
501
|
+
visible_to_owner: {
|
|
502
|
+
type: 'boolean'
|
|
503
|
+
},
|
|
504
|
+
mem_peak: {
|
|
505
|
+
type: 'integer'
|
|
506
|
+
},
|
|
507
|
+
tag: {
|
|
508
|
+
type: 'string'
|
|
509
|
+
},
|
|
510
|
+
priority: {
|
|
511
|
+
type: 'integer'
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
required: ['id', 'created_by', 'duration_ms', 'created_at', 'started_at', 'success', 'canceled', 'job_kind', 'permissioned_as', 'is_flow_step', 'is_skipped', 'email', 'visible_to_owner', 'tag']
|
|
515
|
+
};
|
|
516
|
+
exports.$Job = {
|
|
517
|
+
oneOf: [
|
|
518
|
+
{
|
|
519
|
+
allOf: [
|
|
520
|
+
{
|
|
521
|
+
'$ref': '#/components/schemas/CompletedJob'
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
type: 'object',
|
|
525
|
+
properties: {
|
|
526
|
+
type: {
|
|
527
|
+
type: 'string',
|
|
528
|
+
enum: ['CompletedJob']
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
allOf: [
|
|
536
|
+
{
|
|
537
|
+
'$ref': '#/components/schemas/QueuedJob'
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
type: 'object',
|
|
541
|
+
properties: {
|
|
542
|
+
type: {
|
|
543
|
+
type: 'string',
|
|
544
|
+
enum: ['QueuedJob']
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
discriminator: {
|
|
552
|
+
propertyName: 'type'
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
exports.$User = {
|
|
556
|
+
type: 'object',
|
|
557
|
+
properties: {
|
|
558
|
+
email: {
|
|
559
|
+
type: 'string'
|
|
560
|
+
},
|
|
561
|
+
username: {
|
|
562
|
+
type: 'string'
|
|
563
|
+
},
|
|
564
|
+
is_admin: {
|
|
565
|
+
type: 'boolean'
|
|
566
|
+
},
|
|
567
|
+
is_super_admin: {
|
|
568
|
+
type: 'boolean'
|
|
569
|
+
},
|
|
570
|
+
created_at: {
|
|
571
|
+
type: 'string',
|
|
572
|
+
format: 'date-time'
|
|
573
|
+
},
|
|
574
|
+
operator: {
|
|
575
|
+
type: 'boolean'
|
|
576
|
+
},
|
|
577
|
+
disabled: {
|
|
578
|
+
type: 'boolean'
|
|
579
|
+
},
|
|
580
|
+
groups: {
|
|
581
|
+
type: 'array',
|
|
582
|
+
items: {
|
|
583
|
+
type: 'string'
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
folders: {
|
|
587
|
+
type: 'array',
|
|
588
|
+
items: {
|
|
589
|
+
type: 'string'
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
folders_owners: {
|
|
593
|
+
type: 'array',
|
|
594
|
+
items: {
|
|
595
|
+
type: 'string'
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
required: ['email', 'username', 'is_admin', 'is_super_admin', 'created_at', 'operator', 'disabled', 'folders', 'folders_owners']
|
|
600
|
+
};
|
|
601
|
+
exports.$UserUsage = {
|
|
602
|
+
type: 'object',
|
|
603
|
+
properties: {
|
|
604
|
+
email: {
|
|
605
|
+
type: 'string'
|
|
606
|
+
},
|
|
607
|
+
executions: {
|
|
608
|
+
type: 'number'
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
};
|
|
612
|
+
exports.$Login = {
|
|
613
|
+
type: 'object',
|
|
614
|
+
properties: {
|
|
615
|
+
email: {
|
|
616
|
+
type: 'string'
|
|
617
|
+
},
|
|
618
|
+
password: {
|
|
619
|
+
type: 'string'
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
required: ['email', 'password']
|
|
623
|
+
};
|
|
624
|
+
exports.$EditWorkspaceUser = {
|
|
625
|
+
type: 'object',
|
|
626
|
+
properties: {
|
|
627
|
+
is_admin: {
|
|
628
|
+
type: 'boolean'
|
|
629
|
+
},
|
|
630
|
+
operator: {
|
|
631
|
+
type: 'boolean'
|
|
632
|
+
},
|
|
633
|
+
disabled: {
|
|
634
|
+
type: 'boolean'
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
exports.$TruncatedToken = {
|
|
639
|
+
type: 'object',
|
|
640
|
+
properties: {
|
|
641
|
+
label: {
|
|
642
|
+
type: 'string'
|
|
643
|
+
},
|
|
644
|
+
expiration: {
|
|
645
|
+
type: 'string',
|
|
646
|
+
format: 'date-time'
|
|
647
|
+
},
|
|
648
|
+
token_prefix: {
|
|
649
|
+
type: 'string'
|
|
650
|
+
},
|
|
651
|
+
created_at: {
|
|
652
|
+
type: 'string',
|
|
653
|
+
format: 'date-time'
|
|
654
|
+
},
|
|
655
|
+
last_used_at: {
|
|
656
|
+
type: 'string',
|
|
657
|
+
format: 'date-time'
|
|
658
|
+
},
|
|
659
|
+
scopes: {
|
|
660
|
+
type: 'array',
|
|
661
|
+
items: {
|
|
662
|
+
type: 'string'
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
required: ['token_prefix', 'created_at', 'last_used_at']
|
|
667
|
+
};
|
|
668
|
+
exports.$NewToken = {
|
|
669
|
+
type: 'object',
|
|
670
|
+
properties: {
|
|
671
|
+
label: {
|
|
672
|
+
type: 'string'
|
|
673
|
+
},
|
|
674
|
+
expiration: {
|
|
675
|
+
type: 'string',
|
|
676
|
+
format: 'date-time'
|
|
677
|
+
},
|
|
678
|
+
scopes: {
|
|
679
|
+
type: 'array',
|
|
680
|
+
items: {
|
|
681
|
+
type: 'string'
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
exports.$NewTokenImpersonate = {
|
|
687
|
+
type: 'object',
|
|
688
|
+
properties: {
|
|
689
|
+
label: {
|
|
690
|
+
type: 'string'
|
|
691
|
+
},
|
|
692
|
+
expiration: {
|
|
693
|
+
type: 'string',
|
|
694
|
+
format: 'date-time'
|
|
695
|
+
},
|
|
696
|
+
impersonate_email: {
|
|
697
|
+
type: 'string'
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
required: ['impersonate_email']
|
|
701
|
+
};
|
|
702
|
+
exports.$ListableVariable = {
|
|
703
|
+
type: 'object',
|
|
704
|
+
properties: {
|
|
705
|
+
workspace_id: {
|
|
706
|
+
type: 'string'
|
|
707
|
+
},
|
|
708
|
+
path: {
|
|
709
|
+
type: 'string'
|
|
710
|
+
},
|
|
711
|
+
value: {
|
|
712
|
+
type: 'string'
|
|
713
|
+
},
|
|
714
|
+
is_secret: {
|
|
715
|
+
type: 'boolean'
|
|
716
|
+
},
|
|
717
|
+
description: {
|
|
718
|
+
type: 'string'
|
|
719
|
+
},
|
|
720
|
+
account: {
|
|
721
|
+
type: 'integer'
|
|
722
|
+
},
|
|
723
|
+
is_oauth: {
|
|
724
|
+
type: 'boolean'
|
|
725
|
+
},
|
|
726
|
+
extra_perms: {
|
|
727
|
+
type: 'object',
|
|
728
|
+
additionalProperties: {
|
|
729
|
+
type: 'boolean'
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
is_expired: {
|
|
733
|
+
type: 'boolean'
|
|
734
|
+
},
|
|
735
|
+
refresh_error: {
|
|
736
|
+
type: 'string'
|
|
737
|
+
},
|
|
738
|
+
is_linked: {
|
|
739
|
+
type: 'boolean'
|
|
740
|
+
},
|
|
741
|
+
is_refreshed: {
|
|
742
|
+
type: 'boolean'
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
required: ['workspace_id', 'path', 'is_secret', 'extra_perms']
|
|
746
|
+
};
|
|
747
|
+
exports.$ContextualVariable = {
|
|
748
|
+
type: 'object',
|
|
749
|
+
properties: {
|
|
750
|
+
name: {
|
|
751
|
+
type: 'string'
|
|
752
|
+
},
|
|
753
|
+
value: {
|
|
754
|
+
type: 'string'
|
|
755
|
+
},
|
|
756
|
+
description: {
|
|
757
|
+
type: 'string'
|
|
758
|
+
},
|
|
759
|
+
is_custom: {
|
|
760
|
+
type: 'boolean'
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
required: ['name', 'value', 'description', 'is_custom']
|
|
764
|
+
};
|
|
765
|
+
exports.$CreateVariable = {
|
|
766
|
+
type: 'object',
|
|
767
|
+
properties: {
|
|
768
|
+
path: {
|
|
769
|
+
type: 'string'
|
|
770
|
+
},
|
|
771
|
+
value: {
|
|
772
|
+
type: 'string'
|
|
773
|
+
},
|
|
774
|
+
is_secret: {
|
|
775
|
+
type: 'boolean'
|
|
776
|
+
},
|
|
777
|
+
description: {
|
|
778
|
+
type: 'string'
|
|
779
|
+
},
|
|
780
|
+
account: {
|
|
781
|
+
type: 'integer'
|
|
782
|
+
},
|
|
783
|
+
is_oauth: {
|
|
784
|
+
type: 'boolean'
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
required: ['path', 'value', 'is_secret', 'description']
|
|
788
|
+
};
|
|
789
|
+
exports.$EditVariable = {
|
|
790
|
+
type: 'object',
|
|
791
|
+
properties: {
|
|
792
|
+
path: {
|
|
793
|
+
type: 'string'
|
|
794
|
+
},
|
|
795
|
+
value: {
|
|
796
|
+
type: 'string'
|
|
797
|
+
},
|
|
798
|
+
is_secret: {
|
|
799
|
+
type: 'boolean'
|
|
800
|
+
},
|
|
801
|
+
description: {
|
|
802
|
+
type: 'string'
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
exports.$AuditLog = {
|
|
807
|
+
type: 'object',
|
|
808
|
+
properties: {
|
|
809
|
+
id: {
|
|
810
|
+
type: 'integer'
|
|
811
|
+
},
|
|
812
|
+
timestamp: {
|
|
813
|
+
type: 'string',
|
|
814
|
+
format: 'date-time'
|
|
815
|
+
},
|
|
816
|
+
username: {
|
|
817
|
+
type: 'string'
|
|
818
|
+
},
|
|
819
|
+
operation: {
|
|
820
|
+
type: 'string',
|
|
821
|
+
enum: ['jobs.run', 'jobs.run.script', 'jobs.run.preview', 'jobs.run.flow', 'jobs.run.flow_preview', 'jobs.run.script_hub', 'jobs.run.dependencies', 'jobs.run.identity', 'jobs.run.noop', 'jobs.flow_dependencies', 'jobs', 'jobs.cancel', 'jobs.force_cancel', 'jobs.disapproval', 'jobs.delete', 'account.delete', 'openai.request', 'resources.create', 'resources.update', 'resources.delete', 'resource_types.create', 'resource_types.update', 'resource_types.delete', 'schedule.create', 'schedule.setenabled', 'schedule.edit', 'schedule.delete', 'scripts.create', 'scripts.update', 'scripts.archive', 'scripts.delete', 'users.create', 'users.delete', 'users.update', 'users.login', 'users.logout', 'users.accept_invite', 'users.decline_invite', 'users.token.create', 'users.token.delete', 'users.add_to_workspace', 'users.add_global', 'users.setpassword', 'users.impersonate', 'users.leave_workspace', 'oauth.login', 'oauth.signup', 'variables.create', 'variables.delete', 'variables.update', 'flows.create', 'flows.update', 'flows.delete', 'flows.archive', 'apps.create', 'apps.update', 'apps.delete', 'folder.create', 'folder.update', 'folder.delete', 'folder.add_owner', 'folder.remove_owner', 'group.create', 'group.delete', 'group.edit', 'group.adduser', 'group.removeuser', 'igroup.create', 'igroup.delete', 'igroup.adduser', 'igroup.removeuser', 'variables.decrypt_secret', 'workspaces.edit_command_script', 'workspaces.edit_deploy_to', 'workspaces.edit_auto_invite_domain', 'workspaces.edit_webhook', 'workspaces.edit_copilot_config', 'workspaces.edit_error_handler', 'workspaces.create', 'workspaces.update', 'workspaces.archive', 'workspaces.unarchive', 'workspaces.delete']
|
|
822
|
+
},
|
|
823
|
+
action_kind: {
|
|
824
|
+
type: 'string',
|
|
825
|
+
enum: ['Created', 'Updated', 'Delete', 'Execute']
|
|
826
|
+
},
|
|
827
|
+
resource: {
|
|
828
|
+
type: 'string'
|
|
829
|
+
},
|
|
830
|
+
parameters: {
|
|
831
|
+
type: 'object'
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
required: ['id', 'timestamp', 'username', 'operation', 'action_kind']
|
|
835
|
+
};
|
|
836
|
+
exports.$MainArgSignature = {
|
|
837
|
+
type: 'object',
|
|
838
|
+
properties: {
|
|
839
|
+
type: {
|
|
840
|
+
type: 'string',
|
|
841
|
+
enum: ['Valid', 'Invalid']
|
|
842
|
+
},
|
|
843
|
+
error: {
|
|
844
|
+
type: 'string'
|
|
845
|
+
},
|
|
846
|
+
star_args: {
|
|
847
|
+
type: 'boolean'
|
|
848
|
+
},
|
|
849
|
+
star_kwargs: {
|
|
850
|
+
type: 'boolean'
|
|
851
|
+
},
|
|
852
|
+
args: {
|
|
853
|
+
type: 'array',
|
|
854
|
+
items: {
|
|
855
|
+
type: 'object',
|
|
856
|
+
properties: {
|
|
857
|
+
name: {
|
|
858
|
+
type: 'string'
|
|
859
|
+
},
|
|
860
|
+
typ: {
|
|
861
|
+
oneOf: [
|
|
862
|
+
{
|
|
863
|
+
type: 'string',
|
|
864
|
+
enum: ['float', 'int', 'bool', 'email', 'unknown', 'bytes', 'dict', 'datetime', 'sql']
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
type: 'object',
|
|
868
|
+
properties: {
|
|
869
|
+
resource: {
|
|
870
|
+
type: 'string',
|
|
871
|
+
nullable: true
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
required: ['resource']
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
type: 'object',
|
|
878
|
+
properties: {
|
|
879
|
+
str: {
|
|
880
|
+
type: 'array',
|
|
881
|
+
items: {
|
|
882
|
+
type: 'string'
|
|
883
|
+
},
|
|
884
|
+
nullable: true
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
required: ['str']
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
type: 'object',
|
|
891
|
+
properties: {
|
|
892
|
+
object: {
|
|
893
|
+
type: 'array',
|
|
894
|
+
items: {
|
|
895
|
+
type: 'object',
|
|
896
|
+
properties: {
|
|
897
|
+
key: {
|
|
898
|
+
type: 'string'
|
|
899
|
+
},
|
|
900
|
+
typ: {
|
|
901
|
+
oneOf: [
|
|
902
|
+
{
|
|
903
|
+
type: 'string',
|
|
904
|
+
enum: ['float', 'int', 'bool', 'email', 'unknown', 'bytes', 'dict', 'datetime', 'sql']
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
type: 'object',
|
|
908
|
+
properties: {
|
|
909
|
+
str: {}
|
|
910
|
+
},
|
|
911
|
+
required: ['str']
|
|
912
|
+
}
|
|
913
|
+
]
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
required: ['key', 'typ']
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
required: ['object']
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
type: 'object',
|
|
924
|
+
properties: {
|
|
925
|
+
list: {
|
|
926
|
+
oneOf: [
|
|
927
|
+
{
|
|
928
|
+
type: 'string',
|
|
929
|
+
enum: ['float', 'int', 'bool', 'email', 'unknown', 'bytes', 'dict', 'datetime', 'sql']
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
type: 'object',
|
|
933
|
+
properties: {
|
|
934
|
+
str: {}
|
|
935
|
+
},
|
|
936
|
+
required: ['str']
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
nullable: true
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
required: ['list']
|
|
943
|
+
}
|
|
944
|
+
]
|
|
945
|
+
},
|
|
946
|
+
has_default: {
|
|
947
|
+
type: 'boolean'
|
|
948
|
+
},
|
|
949
|
+
default: {}
|
|
950
|
+
},
|
|
951
|
+
required: ['name', 'typ']
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
required: ['star_args', 'start_kwargs', 'args', 'type', 'error']
|
|
956
|
+
};
|
|
957
|
+
exports.$Preview = {
|
|
958
|
+
type: 'object',
|
|
959
|
+
properties: {
|
|
960
|
+
content: {
|
|
961
|
+
type: 'string'
|
|
962
|
+
},
|
|
963
|
+
path: {
|
|
964
|
+
type: 'string'
|
|
965
|
+
},
|
|
966
|
+
args: {
|
|
967
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
968
|
+
},
|
|
969
|
+
language: {
|
|
970
|
+
type: 'string',
|
|
971
|
+
enum: ['python3', 'deno', 'go', 'bash', 'powershell', 'postgresql', 'mysql', 'bigquery', 'snowflake', 'mssql', 'graphql', 'nativets', 'bun']
|
|
972
|
+
},
|
|
973
|
+
tag: {
|
|
974
|
+
type: 'string'
|
|
975
|
+
},
|
|
976
|
+
kind: {
|
|
977
|
+
type: 'string',
|
|
978
|
+
enum: ['code', 'identity', 'http']
|
|
979
|
+
},
|
|
980
|
+
dedicated_worker: {
|
|
981
|
+
type: 'boolean'
|
|
982
|
+
},
|
|
983
|
+
lock: {
|
|
984
|
+
type: 'string'
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
required: ['args']
|
|
988
|
+
};
|
|
989
|
+
exports.$WorkflowTask = {
|
|
990
|
+
type: 'object',
|
|
991
|
+
properties: {
|
|
992
|
+
args: {
|
|
993
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
required: ['args']
|
|
997
|
+
};
|
|
998
|
+
exports.$WorkflowStatusRecord = {
|
|
999
|
+
type: 'object',
|
|
1000
|
+
additionalProperties: {
|
|
1001
|
+
'$ref': '#/components/schemas/WorkflowStatus'
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
exports.$WorkflowStatus = {
|
|
1005
|
+
type: 'object',
|
|
1006
|
+
properties: {
|
|
1007
|
+
scheduled_for: {
|
|
1008
|
+
type: 'string',
|
|
1009
|
+
format: 'date-time'
|
|
1010
|
+
},
|
|
1011
|
+
started_at: {
|
|
1012
|
+
type: 'string',
|
|
1013
|
+
format: 'date-time'
|
|
1014
|
+
},
|
|
1015
|
+
duration_ms: {
|
|
1016
|
+
type: 'number'
|
|
1017
|
+
},
|
|
1018
|
+
name: {
|
|
1019
|
+
type: 'string'
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
exports.$CreateResource = {
|
|
1024
|
+
type: 'object',
|
|
1025
|
+
properties: {
|
|
1026
|
+
path: {
|
|
1027
|
+
type: 'string'
|
|
1028
|
+
},
|
|
1029
|
+
value: {},
|
|
1030
|
+
description: {
|
|
1031
|
+
type: 'string'
|
|
1032
|
+
},
|
|
1033
|
+
resource_type: {
|
|
1034
|
+
type: 'string'
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
required: ['path', 'value', 'resource_type']
|
|
1038
|
+
};
|
|
1039
|
+
exports.$EditResource = {
|
|
1040
|
+
type: 'object',
|
|
1041
|
+
properties: {
|
|
1042
|
+
path: {
|
|
1043
|
+
type: 'string'
|
|
1044
|
+
},
|
|
1045
|
+
description: {
|
|
1046
|
+
type: 'string'
|
|
1047
|
+
},
|
|
1048
|
+
value: {}
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
exports.$Resource = {
|
|
1052
|
+
type: 'object',
|
|
1053
|
+
properties: {
|
|
1054
|
+
workspace_id: {
|
|
1055
|
+
type: 'string'
|
|
1056
|
+
},
|
|
1057
|
+
path: {
|
|
1058
|
+
type: 'string'
|
|
1059
|
+
},
|
|
1060
|
+
description: {
|
|
1061
|
+
type: 'string'
|
|
1062
|
+
},
|
|
1063
|
+
resource_type: {
|
|
1064
|
+
type: 'string'
|
|
1065
|
+
},
|
|
1066
|
+
value: {},
|
|
1067
|
+
is_oauth: {
|
|
1068
|
+
type: 'boolean'
|
|
1069
|
+
},
|
|
1070
|
+
extra_perms: {
|
|
1071
|
+
type: 'object',
|
|
1072
|
+
additionalProperties: {
|
|
1073
|
+
type: 'boolean'
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
required: ['path', 'resource_type', 'is_oauth']
|
|
1078
|
+
};
|
|
1079
|
+
exports.$ListableResource = {
|
|
1080
|
+
type: 'object',
|
|
1081
|
+
properties: {
|
|
1082
|
+
workspace_id: {
|
|
1083
|
+
type: 'string'
|
|
1084
|
+
},
|
|
1085
|
+
path: {
|
|
1086
|
+
type: 'string'
|
|
1087
|
+
},
|
|
1088
|
+
description: {
|
|
1089
|
+
type: 'string'
|
|
1090
|
+
},
|
|
1091
|
+
resource_type: {
|
|
1092
|
+
type: 'string'
|
|
1093
|
+
},
|
|
1094
|
+
value: {},
|
|
1095
|
+
is_oauth: {
|
|
1096
|
+
type: 'boolean'
|
|
1097
|
+
},
|
|
1098
|
+
extra_perms: {
|
|
1099
|
+
type: 'object',
|
|
1100
|
+
additionalProperties: {
|
|
1101
|
+
type: 'boolean'
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
is_expired: {
|
|
1105
|
+
type: 'boolean'
|
|
1106
|
+
},
|
|
1107
|
+
refresh_error: {
|
|
1108
|
+
type: 'string'
|
|
1109
|
+
},
|
|
1110
|
+
is_linked: {
|
|
1111
|
+
type: 'boolean'
|
|
1112
|
+
},
|
|
1113
|
+
is_refreshed: {
|
|
1114
|
+
type: 'boolean'
|
|
1115
|
+
},
|
|
1116
|
+
account: {
|
|
1117
|
+
type: 'number'
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
required: ['path', 'resource_type', 'is_oauth', 'is_linked', 'is_refreshed']
|
|
1121
|
+
};
|
|
1122
|
+
exports.$ResourceType = {
|
|
1123
|
+
type: 'object',
|
|
1124
|
+
properties: {
|
|
1125
|
+
workspace_id: {
|
|
1126
|
+
type: 'string'
|
|
1127
|
+
},
|
|
1128
|
+
name: {
|
|
1129
|
+
type: 'string'
|
|
1130
|
+
},
|
|
1131
|
+
schema: {},
|
|
1132
|
+
description: {
|
|
1133
|
+
type: 'string'
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
required: ['name']
|
|
1137
|
+
};
|
|
1138
|
+
exports.$EditResourceType = {
|
|
1139
|
+
type: 'object',
|
|
1140
|
+
properties: {
|
|
1141
|
+
schema: {},
|
|
1142
|
+
description: {
|
|
1143
|
+
type: 'string'
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
exports.$Schedule = {
|
|
1148
|
+
type: 'object',
|
|
1149
|
+
properties: {
|
|
1150
|
+
path: {
|
|
1151
|
+
type: 'string'
|
|
1152
|
+
},
|
|
1153
|
+
edited_by: {
|
|
1154
|
+
type: 'string'
|
|
1155
|
+
},
|
|
1156
|
+
edited_at: {
|
|
1157
|
+
type: 'string',
|
|
1158
|
+
format: 'date-time'
|
|
1159
|
+
},
|
|
1160
|
+
schedule: {
|
|
1161
|
+
type: 'string'
|
|
1162
|
+
},
|
|
1163
|
+
timezone: {
|
|
1164
|
+
type: 'string'
|
|
1165
|
+
},
|
|
1166
|
+
enabled: {
|
|
1167
|
+
type: 'boolean'
|
|
1168
|
+
},
|
|
1169
|
+
script_path: {
|
|
1170
|
+
type: 'string'
|
|
1171
|
+
},
|
|
1172
|
+
is_flow: {
|
|
1173
|
+
type: 'boolean'
|
|
1174
|
+
},
|
|
1175
|
+
args: {
|
|
1176
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1177
|
+
},
|
|
1178
|
+
extra_perms: {
|
|
1179
|
+
type: 'object',
|
|
1180
|
+
additionalProperties: {
|
|
1181
|
+
type: 'boolean'
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
email: {
|
|
1185
|
+
type: 'string'
|
|
1186
|
+
},
|
|
1187
|
+
error: {
|
|
1188
|
+
type: 'string'
|
|
1189
|
+
},
|
|
1190
|
+
on_failure: {
|
|
1191
|
+
type: 'string'
|
|
1192
|
+
},
|
|
1193
|
+
on_failure_times: {
|
|
1194
|
+
type: 'number'
|
|
1195
|
+
},
|
|
1196
|
+
on_failure_exact: {
|
|
1197
|
+
type: 'boolean'
|
|
1198
|
+
},
|
|
1199
|
+
on_failure_extra_args: {
|
|
1200
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1201
|
+
},
|
|
1202
|
+
on_recovery: {
|
|
1203
|
+
type: 'string'
|
|
1204
|
+
},
|
|
1205
|
+
on_recovery_times: {
|
|
1206
|
+
type: 'number'
|
|
1207
|
+
},
|
|
1208
|
+
on_recovery_extra_args: {
|
|
1209
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1210
|
+
},
|
|
1211
|
+
ws_error_handler_muted: {
|
|
1212
|
+
type: 'boolean'
|
|
1213
|
+
},
|
|
1214
|
+
retry: {
|
|
1215
|
+
'$ref': '#/components/schemas/Retry'
|
|
1216
|
+
},
|
|
1217
|
+
summary: {
|
|
1218
|
+
type: 'string'
|
|
1219
|
+
},
|
|
1220
|
+
no_flow_overlap: {
|
|
1221
|
+
type: 'boolean'
|
|
1222
|
+
},
|
|
1223
|
+
tag: {
|
|
1224
|
+
type: 'string'
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
required: ['path', 'edited_by', 'edited_at', 'schedule', 'script_path', 'timezone', 'extra_perms', 'is_flow', 'enabled', 'email']
|
|
1228
|
+
};
|
|
1229
|
+
exports.$ScheduleWJobs = {
|
|
1230
|
+
allOf: [
|
|
1231
|
+
{
|
|
1232
|
+
'$ref': '#/components/schemas/Schedule'
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
type: 'object',
|
|
1236
|
+
properties: {
|
|
1237
|
+
jobs: {
|
|
1238
|
+
type: 'array',
|
|
1239
|
+
items: {
|
|
1240
|
+
type: 'object',
|
|
1241
|
+
properties: {
|
|
1242
|
+
id: {
|
|
1243
|
+
type: 'string'
|
|
1244
|
+
},
|
|
1245
|
+
success: {
|
|
1246
|
+
type: 'boolean'
|
|
1247
|
+
},
|
|
1248
|
+
duration_ms: {
|
|
1249
|
+
type: 'number'
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
required: ['id', 'success', 'duration_ms']
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
]
|
|
1258
|
+
};
|
|
1259
|
+
exports.$NewSchedule = {
|
|
1260
|
+
type: 'object',
|
|
1261
|
+
properties: {
|
|
1262
|
+
path: {
|
|
1263
|
+
type: 'string'
|
|
1264
|
+
},
|
|
1265
|
+
schedule: {
|
|
1266
|
+
type: 'string'
|
|
1267
|
+
},
|
|
1268
|
+
timezone: {
|
|
1269
|
+
type: 'string'
|
|
1270
|
+
},
|
|
1271
|
+
script_path: {
|
|
1272
|
+
type: 'string'
|
|
1273
|
+
},
|
|
1274
|
+
is_flow: {
|
|
1275
|
+
type: 'boolean'
|
|
1276
|
+
},
|
|
1277
|
+
args: {
|
|
1278
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1279
|
+
},
|
|
1280
|
+
enabled: {
|
|
1281
|
+
type: 'boolean'
|
|
1282
|
+
},
|
|
1283
|
+
on_failure: {
|
|
1284
|
+
type: 'string'
|
|
1285
|
+
},
|
|
1286
|
+
on_failure_times: {
|
|
1287
|
+
type: 'number'
|
|
1288
|
+
},
|
|
1289
|
+
on_failure_exact: {
|
|
1290
|
+
type: 'boolean'
|
|
1291
|
+
},
|
|
1292
|
+
on_failure_extra_args: {
|
|
1293
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1294
|
+
},
|
|
1295
|
+
on_recovery: {
|
|
1296
|
+
type: 'string'
|
|
1297
|
+
},
|
|
1298
|
+
on_recovery_times: {
|
|
1299
|
+
type: 'number'
|
|
1300
|
+
},
|
|
1301
|
+
on_recovery_extra_args: {
|
|
1302
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1303
|
+
},
|
|
1304
|
+
ws_error_handler_muted: {
|
|
1305
|
+
type: 'boolean'
|
|
1306
|
+
},
|
|
1307
|
+
retry: {
|
|
1308
|
+
'$ref': '#/components/schemas/Retry'
|
|
1309
|
+
},
|
|
1310
|
+
no_flow_overlap: {
|
|
1311
|
+
type: 'boolean'
|
|
1312
|
+
},
|
|
1313
|
+
summary: {
|
|
1314
|
+
type: 'string'
|
|
1315
|
+
},
|
|
1316
|
+
tag: {
|
|
1317
|
+
type: 'string'
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
required: ['path', 'schedule', 'timezone', 'script_path', 'is_flow', 'args']
|
|
1321
|
+
};
|
|
1322
|
+
exports.$EditSchedule = {
|
|
1323
|
+
type: 'object',
|
|
1324
|
+
properties: {
|
|
1325
|
+
schedule: {
|
|
1326
|
+
type: 'string'
|
|
1327
|
+
},
|
|
1328
|
+
timezone: {
|
|
1329
|
+
type: 'string'
|
|
1330
|
+
},
|
|
1331
|
+
args: {
|
|
1332
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1333
|
+
},
|
|
1334
|
+
on_failure: {
|
|
1335
|
+
type: 'string'
|
|
1336
|
+
},
|
|
1337
|
+
on_failure_times: {
|
|
1338
|
+
type: 'number'
|
|
1339
|
+
},
|
|
1340
|
+
on_failure_exact: {
|
|
1341
|
+
type: 'boolean'
|
|
1342
|
+
},
|
|
1343
|
+
on_failure_extra_args: {
|
|
1344
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1345
|
+
},
|
|
1346
|
+
on_recovery: {
|
|
1347
|
+
type: 'string'
|
|
1348
|
+
},
|
|
1349
|
+
on_recovery_times: {
|
|
1350
|
+
type: 'number'
|
|
1351
|
+
},
|
|
1352
|
+
on_recovery_extra_args: {
|
|
1353
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1354
|
+
},
|
|
1355
|
+
ws_error_handler_muted: {
|
|
1356
|
+
type: 'boolean'
|
|
1357
|
+
},
|
|
1358
|
+
retry: {
|
|
1359
|
+
'$ref': '#/components/schemas/Retry'
|
|
1360
|
+
},
|
|
1361
|
+
no_flow_overlap: {
|
|
1362
|
+
type: 'boolean'
|
|
1363
|
+
},
|
|
1364
|
+
summary: {
|
|
1365
|
+
type: 'string'
|
|
1366
|
+
},
|
|
1367
|
+
tag: {
|
|
1368
|
+
type: 'string'
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
required: ['schedule', 'timezone', 'script_path', 'is_flow', 'args']
|
|
1372
|
+
};
|
|
1373
|
+
exports.$Group = {
|
|
1374
|
+
type: 'object',
|
|
1375
|
+
properties: {
|
|
1376
|
+
name: {
|
|
1377
|
+
type: 'string'
|
|
1378
|
+
},
|
|
1379
|
+
summary: {
|
|
1380
|
+
type: 'string'
|
|
1381
|
+
},
|
|
1382
|
+
members: {
|
|
1383
|
+
type: 'array',
|
|
1384
|
+
items: {
|
|
1385
|
+
type: 'string'
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
extra_perms: {
|
|
1389
|
+
type: 'object',
|
|
1390
|
+
additionalProperties: {
|
|
1391
|
+
type: 'boolean'
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
required: ['name']
|
|
1396
|
+
};
|
|
1397
|
+
exports.$InstanceGroup = {
|
|
1398
|
+
type: 'object',
|
|
1399
|
+
properties: {
|
|
1400
|
+
name: {
|
|
1401
|
+
type: 'string'
|
|
1402
|
+
},
|
|
1403
|
+
summary: {
|
|
1404
|
+
type: 'string'
|
|
1405
|
+
},
|
|
1406
|
+
emails: {
|
|
1407
|
+
type: 'array',
|
|
1408
|
+
items: {
|
|
1409
|
+
type: 'string'
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
required: ['name']
|
|
1414
|
+
};
|
|
1415
|
+
exports.$Folder = {
|
|
1416
|
+
type: 'object',
|
|
1417
|
+
properties: {
|
|
1418
|
+
name: {
|
|
1419
|
+
type: 'string'
|
|
1420
|
+
},
|
|
1421
|
+
owners: {
|
|
1422
|
+
type: 'array',
|
|
1423
|
+
items: {
|
|
1424
|
+
type: 'string'
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
extra_perms: {
|
|
1428
|
+
type: 'object',
|
|
1429
|
+
additionalProperties: {
|
|
1430
|
+
type: 'boolean'
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
},
|
|
1434
|
+
required: ['name', 'owners', 'extra_perms']
|
|
1435
|
+
};
|
|
1436
|
+
exports.$WorkerPing = {
|
|
1437
|
+
type: 'object',
|
|
1438
|
+
properties: {
|
|
1439
|
+
worker: {
|
|
1440
|
+
type: 'string'
|
|
1441
|
+
},
|
|
1442
|
+
worker_instance: {
|
|
1443
|
+
type: 'string'
|
|
1444
|
+
},
|
|
1445
|
+
last_ping: {
|
|
1446
|
+
type: 'number'
|
|
1447
|
+
},
|
|
1448
|
+
started_at: {
|
|
1449
|
+
type: 'string',
|
|
1450
|
+
format: 'date-time'
|
|
1451
|
+
},
|
|
1452
|
+
ip: {
|
|
1453
|
+
type: 'string'
|
|
1454
|
+
},
|
|
1455
|
+
jobs_executed: {
|
|
1456
|
+
type: 'integer'
|
|
1457
|
+
},
|
|
1458
|
+
custom_tags: {
|
|
1459
|
+
type: 'array',
|
|
1460
|
+
items: {
|
|
1461
|
+
type: 'string'
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
worker_group: {
|
|
1465
|
+
type: 'string'
|
|
1466
|
+
},
|
|
1467
|
+
wm_version: {
|
|
1468
|
+
type: 'string'
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
required: ['worker', 'worker_instance', 'ping_at', 'started_at', 'ip', 'jobs_executed', 'worker_group', 'wm_version']
|
|
1472
|
+
};
|
|
1473
|
+
exports.$UserWorkspaceList = {
|
|
1474
|
+
type: 'object',
|
|
1475
|
+
properties: {
|
|
1476
|
+
email: {
|
|
1477
|
+
type: 'string'
|
|
1478
|
+
},
|
|
1479
|
+
workspaces: {
|
|
1480
|
+
type: 'array',
|
|
1481
|
+
items: {
|
|
1482
|
+
type: 'object',
|
|
1483
|
+
properties: {
|
|
1484
|
+
id: {
|
|
1485
|
+
type: 'string'
|
|
1486
|
+
},
|
|
1487
|
+
name: {
|
|
1488
|
+
type: 'string'
|
|
1489
|
+
},
|
|
1490
|
+
username: {
|
|
1491
|
+
type: 'string'
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
required: ['id', 'name', 'username']
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1498
|
+
required: ['email', 'workspaces']
|
|
1499
|
+
};
|
|
1500
|
+
exports.$CreateWorkspace = {
|
|
1501
|
+
type: 'object',
|
|
1502
|
+
properties: {
|
|
1503
|
+
id: {
|
|
1504
|
+
type: 'string'
|
|
1505
|
+
},
|
|
1506
|
+
name: {
|
|
1507
|
+
type: 'string'
|
|
1508
|
+
},
|
|
1509
|
+
username: {
|
|
1510
|
+
type: 'string'
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
required: ['id', 'name']
|
|
1514
|
+
};
|
|
1515
|
+
exports.$Workspace = {
|
|
1516
|
+
type: 'object',
|
|
1517
|
+
properties: {
|
|
1518
|
+
id: {
|
|
1519
|
+
type: 'string'
|
|
1520
|
+
},
|
|
1521
|
+
name: {
|
|
1522
|
+
type: 'string'
|
|
1523
|
+
},
|
|
1524
|
+
owner: {
|
|
1525
|
+
type: 'string'
|
|
1526
|
+
},
|
|
1527
|
+
domain: {
|
|
1528
|
+
type: 'string'
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1531
|
+
required: ['id', 'name', 'owner']
|
|
1532
|
+
};
|
|
1533
|
+
exports.$WorkspaceInvite = {
|
|
1534
|
+
type: 'object',
|
|
1535
|
+
properties: {
|
|
1536
|
+
workspace_id: {
|
|
1537
|
+
type: 'string'
|
|
1538
|
+
},
|
|
1539
|
+
email: {
|
|
1540
|
+
type: 'string'
|
|
1541
|
+
},
|
|
1542
|
+
is_admin: {
|
|
1543
|
+
type: 'boolean'
|
|
1544
|
+
},
|
|
1545
|
+
operator: {
|
|
1546
|
+
type: 'boolean'
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
required: ['workspace_id', 'email', 'is_admin', 'operator']
|
|
1550
|
+
};
|
|
1551
|
+
exports.$GlobalUserInfo = {
|
|
1552
|
+
type: 'object',
|
|
1553
|
+
properties: {
|
|
1554
|
+
email: {
|
|
1555
|
+
type: 'string'
|
|
1556
|
+
},
|
|
1557
|
+
login_type: {
|
|
1558
|
+
type: 'string',
|
|
1559
|
+
enum: ['password', 'github']
|
|
1560
|
+
},
|
|
1561
|
+
super_admin: {
|
|
1562
|
+
type: 'boolean'
|
|
1563
|
+
},
|
|
1564
|
+
verified: {
|
|
1565
|
+
type: 'boolean'
|
|
1566
|
+
},
|
|
1567
|
+
name: {
|
|
1568
|
+
type: 'string'
|
|
1569
|
+
},
|
|
1570
|
+
company: {
|
|
1571
|
+
type: 'string'
|
|
1572
|
+
},
|
|
1573
|
+
username: {
|
|
1574
|
+
type: 'string'
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
required: ['email', 'login_type', 'super_admin', 'verified']
|
|
1578
|
+
};
|
|
1579
|
+
exports.$Flow = {
|
|
1580
|
+
allOf: [
|
|
1581
|
+
{
|
|
1582
|
+
'$ref': '#/components/schemas/OpenFlow'
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
'$ref': '#/components/schemas/FlowMetadata'
|
|
1586
|
+
}
|
|
1587
|
+
]
|
|
1588
|
+
};
|
|
1589
|
+
exports.$ExtraPerms = {
|
|
1590
|
+
type: 'object',
|
|
1591
|
+
additionalProperties: {
|
|
1592
|
+
type: 'boolean'
|
|
1593
|
+
}
|
|
1594
|
+
};
|
|
1595
|
+
exports.$FlowMetadata = {
|
|
1596
|
+
type: 'object',
|
|
1597
|
+
properties: {
|
|
1598
|
+
workspace_id: {
|
|
1599
|
+
type: 'string'
|
|
1600
|
+
},
|
|
1601
|
+
path: {
|
|
1602
|
+
type: 'string'
|
|
1603
|
+
},
|
|
1604
|
+
edited_by: {
|
|
1605
|
+
type: 'string'
|
|
1606
|
+
},
|
|
1607
|
+
edited_at: {
|
|
1608
|
+
type: 'string',
|
|
1609
|
+
format: 'date-time'
|
|
1610
|
+
},
|
|
1611
|
+
archived: {
|
|
1612
|
+
type: 'boolean'
|
|
1613
|
+
},
|
|
1614
|
+
extra_perms: {
|
|
1615
|
+
'$ref': '#/components/schemas/ExtraPerms'
|
|
1616
|
+
},
|
|
1617
|
+
starred: {
|
|
1618
|
+
type: 'boolean'
|
|
1619
|
+
},
|
|
1620
|
+
draft_only: {
|
|
1621
|
+
type: 'boolean'
|
|
1622
|
+
},
|
|
1623
|
+
tag: {
|
|
1624
|
+
type: 'string'
|
|
1625
|
+
},
|
|
1626
|
+
ws_error_handler_muted: {
|
|
1627
|
+
type: 'boolean'
|
|
1628
|
+
},
|
|
1629
|
+
priority: {
|
|
1630
|
+
type: 'integer'
|
|
1631
|
+
},
|
|
1632
|
+
dedicated_worker: {
|
|
1633
|
+
type: 'boolean'
|
|
1634
|
+
},
|
|
1635
|
+
timeout: {
|
|
1636
|
+
type: 'number'
|
|
1637
|
+
},
|
|
1638
|
+
visible_to_runner_only: {
|
|
1639
|
+
type: 'boolean'
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
required: ['path', 'edited_by', 'edited_at', 'archived', 'extra_perms']
|
|
1643
|
+
};
|
|
1644
|
+
exports.$OpenFlowWPath = {
|
|
1645
|
+
allOf: [
|
|
1646
|
+
{
|
|
1647
|
+
'$ref': '#/components/schemas/OpenFlow'
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
type: 'object',
|
|
1651
|
+
properties: {
|
|
1652
|
+
path: {
|
|
1653
|
+
type: 'string'
|
|
1654
|
+
},
|
|
1655
|
+
tag: {
|
|
1656
|
+
type: 'string'
|
|
1657
|
+
},
|
|
1658
|
+
ws_error_handler_muted: {
|
|
1659
|
+
type: 'boolean'
|
|
1660
|
+
},
|
|
1661
|
+
priority: {
|
|
1662
|
+
type: 'integer'
|
|
1663
|
+
},
|
|
1664
|
+
dedicated_worker: {
|
|
1665
|
+
type: 'boolean'
|
|
1666
|
+
},
|
|
1667
|
+
timeout: {
|
|
1668
|
+
type: 'number'
|
|
1669
|
+
},
|
|
1670
|
+
visible_to_runner_only: {
|
|
1671
|
+
type: 'boolean'
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
required: ['path']
|
|
1675
|
+
}
|
|
1676
|
+
]
|
|
1677
|
+
};
|
|
1678
|
+
exports.$FlowPreview = {
|
|
1679
|
+
type: 'object',
|
|
1680
|
+
properties: {
|
|
1681
|
+
value: {
|
|
1682
|
+
'$ref': '#/components/schemas/FlowValue'
|
|
1683
|
+
},
|
|
1684
|
+
path: {
|
|
1685
|
+
type: 'string'
|
|
1686
|
+
},
|
|
1687
|
+
args: {
|
|
1688
|
+
'$ref': '#/components/schemas/ScriptArgs'
|
|
1689
|
+
},
|
|
1690
|
+
tag: {
|
|
1691
|
+
type: 'string'
|
|
1692
|
+
},
|
|
1693
|
+
restarted_from: {
|
|
1694
|
+
'$ref': '#/components/schemas/RestartedFrom'
|
|
1695
|
+
}
|
|
1696
|
+
},
|
|
1697
|
+
required: ['value', 'content', 'args']
|
|
1698
|
+
};
|
|
1699
|
+
exports.$RestartedFrom = {
|
|
1700
|
+
type: 'object',
|
|
1701
|
+
properties: {
|
|
1702
|
+
flow_job_id: {
|
|
1703
|
+
type: 'string',
|
|
1704
|
+
format: 'uuid'
|
|
1705
|
+
},
|
|
1706
|
+
step_id: {
|
|
1707
|
+
type: 'string'
|
|
1708
|
+
},
|
|
1709
|
+
branch_or_iteration_n: {
|
|
1710
|
+
type: 'integer'
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
};
|
|
1714
|
+
exports.$Policy = {
|
|
1715
|
+
type: 'object',
|
|
1716
|
+
properties: {
|
|
1717
|
+
triggerables: {
|
|
1718
|
+
type: 'object',
|
|
1719
|
+
additionalProperties: {
|
|
1720
|
+
type: 'object'
|
|
1721
|
+
}
|
|
1722
|
+
},
|
|
1723
|
+
execution_mode: {
|
|
1724
|
+
type: 'string',
|
|
1725
|
+
enum: ['viewer', 'publisher', 'anonymous']
|
|
1726
|
+
},
|
|
1727
|
+
on_behalf_of: {
|
|
1728
|
+
type: 'string'
|
|
1729
|
+
},
|
|
1730
|
+
on_behalf_of_email: {
|
|
1731
|
+
type: 'string'
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
};
|
|
1735
|
+
exports.$ListableApp = {
|
|
1736
|
+
type: 'object',
|
|
1737
|
+
properties: {
|
|
1738
|
+
id: {
|
|
1739
|
+
type: 'integer'
|
|
1740
|
+
},
|
|
1741
|
+
workspace_id: {
|
|
1742
|
+
type: 'string'
|
|
1743
|
+
},
|
|
1744
|
+
path: {
|
|
1745
|
+
type: 'string'
|
|
1746
|
+
},
|
|
1747
|
+
summary: {
|
|
1748
|
+
type: 'string'
|
|
1749
|
+
},
|
|
1750
|
+
version: {
|
|
1751
|
+
type: 'integer'
|
|
1752
|
+
},
|
|
1753
|
+
extra_perms: {
|
|
1754
|
+
type: 'object',
|
|
1755
|
+
additionalProperties: {
|
|
1756
|
+
type: 'boolean'
|
|
1757
|
+
}
|
|
1758
|
+
},
|
|
1759
|
+
starred: {
|
|
1760
|
+
type: 'boolean'
|
|
1761
|
+
},
|
|
1762
|
+
edited_at: {
|
|
1763
|
+
type: 'string',
|
|
1764
|
+
format: 'date-time'
|
|
1765
|
+
},
|
|
1766
|
+
execution_mode: {
|
|
1767
|
+
type: 'string',
|
|
1768
|
+
enum: ['viewer', 'publisher', 'anonymous']
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
required: ['id', 'workspace_id', 'path', 'summary', 'version', 'extra_perms', 'edited_at', 'execution_mode']
|
|
1772
|
+
};
|
|
1773
|
+
exports.$ListableRawApp = {
|
|
1774
|
+
type: 'object',
|
|
1775
|
+
properties: {
|
|
1776
|
+
workspace_id: {
|
|
1777
|
+
type: 'string'
|
|
1778
|
+
},
|
|
1779
|
+
path: {
|
|
1780
|
+
type: 'string'
|
|
1781
|
+
},
|
|
1782
|
+
summary: {
|
|
1783
|
+
type: 'string'
|
|
1784
|
+
},
|
|
1785
|
+
extra_perms: {
|
|
1786
|
+
type: 'object',
|
|
1787
|
+
additionalProperties: {
|
|
1788
|
+
type: 'boolean'
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
starred: {
|
|
1792
|
+
type: 'boolean'
|
|
1793
|
+
},
|
|
1794
|
+
version: {
|
|
1795
|
+
type: 'number'
|
|
1796
|
+
},
|
|
1797
|
+
edited_at: {
|
|
1798
|
+
type: 'string',
|
|
1799
|
+
format: 'date-time'
|
|
1800
|
+
}
|
|
1801
|
+
},
|
|
1802
|
+
required: ['workspace_id', 'path', 'summary', 'extra_perms', 'version', 'edited_at']
|
|
1803
|
+
};
|
|
1804
|
+
exports.$AppWithLastVersion = {
|
|
1805
|
+
type: 'object',
|
|
1806
|
+
properties: {
|
|
1807
|
+
id: {
|
|
1808
|
+
type: 'integer'
|
|
1809
|
+
},
|
|
1810
|
+
workspace_id: {
|
|
1811
|
+
type: 'string'
|
|
1812
|
+
},
|
|
1813
|
+
path: {
|
|
1814
|
+
type: 'string'
|
|
1815
|
+
},
|
|
1816
|
+
summary: {
|
|
1817
|
+
type: 'string'
|
|
1818
|
+
},
|
|
1819
|
+
versions: {
|
|
1820
|
+
type: 'array',
|
|
1821
|
+
items: {
|
|
1822
|
+
type: 'integer'
|
|
1823
|
+
}
|
|
1824
|
+
},
|
|
1825
|
+
created_by: {
|
|
1826
|
+
type: 'string'
|
|
1827
|
+
},
|
|
1828
|
+
created_at: {
|
|
1829
|
+
type: 'string',
|
|
1830
|
+
format: 'date-time'
|
|
1831
|
+
},
|
|
1832
|
+
value: {
|
|
1833
|
+
type: 'object'
|
|
1834
|
+
},
|
|
1835
|
+
policy: {
|
|
1836
|
+
'$ref': '#/components/schemas/Policy'
|
|
1837
|
+
},
|
|
1838
|
+
execution_mode: {
|
|
1839
|
+
type: 'string',
|
|
1840
|
+
enum: ['viewer', 'publisher', 'anonymous']
|
|
1841
|
+
},
|
|
1842
|
+
extra_perms: {
|
|
1843
|
+
type: 'object',
|
|
1844
|
+
additionalProperties: {
|
|
1845
|
+
type: 'boolean'
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
required: ['id', 'workspace_id', 'path', 'summary', 'versions', 'created_by', 'created_at', 'value', 'policy', 'execution_mode', 'extra_perms']
|
|
1850
|
+
};
|
|
1851
|
+
exports.$AppWithLastVersionWDraft = {
|
|
1852
|
+
allOf: [
|
|
1853
|
+
{
|
|
1854
|
+
'$ref': '#/components/schemas/AppWithLastVersion'
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
type: 'object',
|
|
1858
|
+
properties: {
|
|
1859
|
+
draft_only: {
|
|
1860
|
+
type: 'boolean'
|
|
1861
|
+
},
|
|
1862
|
+
draft: {}
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
]
|
|
1866
|
+
};
|
|
1867
|
+
exports.$AppHistory = {
|
|
1868
|
+
type: 'object',
|
|
1869
|
+
properties: {
|
|
1870
|
+
version: {
|
|
1871
|
+
type: 'integer'
|
|
1872
|
+
},
|
|
1873
|
+
deployment_msg: {
|
|
1874
|
+
type: 'string'
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
required: ['version']
|
|
1878
|
+
};
|
|
1879
|
+
exports.$SlackToken = {
|
|
1880
|
+
type: 'object',
|
|
1881
|
+
properties: {
|
|
1882
|
+
access_token: {
|
|
1883
|
+
type: 'string'
|
|
1884
|
+
},
|
|
1885
|
+
team_id: {
|
|
1886
|
+
type: 'string'
|
|
1887
|
+
},
|
|
1888
|
+
team_name: {
|
|
1889
|
+
type: 'string'
|
|
1890
|
+
},
|
|
1891
|
+
bot: {
|
|
1892
|
+
type: 'object',
|
|
1893
|
+
properties: {
|
|
1894
|
+
bot_access_token: {
|
|
1895
|
+
type: 'string'
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
},
|
|
1900
|
+
required: ['access_token', 'team_id', 'team_name', 'bot']
|
|
1901
|
+
};
|
|
1902
|
+
exports.$TokenResponse = {
|
|
1903
|
+
type: 'object',
|
|
1904
|
+
properties: {
|
|
1905
|
+
access_token: {
|
|
1906
|
+
type: 'string'
|
|
1907
|
+
},
|
|
1908
|
+
expires_in: {
|
|
1909
|
+
type: 'integer'
|
|
1910
|
+
},
|
|
1911
|
+
refresh_token: {
|
|
1912
|
+
type: 'string'
|
|
1913
|
+
},
|
|
1914
|
+
scope: {
|
|
1915
|
+
type: 'array',
|
|
1916
|
+
items: {
|
|
1917
|
+
type: 'string'
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
required: ['access_token']
|
|
1922
|
+
};
|
|
1923
|
+
exports.$HubScriptKind = {
|
|
1924
|
+
name: 'kind',
|
|
1925
|
+
schema: {
|
|
1926
|
+
type: 'string',
|
|
1927
|
+
enum: ['script', 'failure', 'trigger', 'approval']
|
|
1928
|
+
}
|
|
1929
|
+
};
|
|
1930
|
+
exports.$PolarsClientKwargs = {
|
|
1931
|
+
type: 'object',
|
|
1932
|
+
properties: {
|
|
1933
|
+
region_name: {
|
|
1934
|
+
type: 'string'
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
required: ['region_name']
|
|
1938
|
+
};
|
|
1939
|
+
exports.$LargeFileStorage = {
|
|
1940
|
+
type: 'object',
|
|
1941
|
+
properties: {
|
|
1942
|
+
type: {
|
|
1943
|
+
type: 'string',
|
|
1944
|
+
enum: ['S3Storage', 'AzureBlobStorage', 'AzureWorkloadIdentity', 'S3AwsOidc']
|
|
1945
|
+
},
|
|
1946
|
+
s3_resource_path: {
|
|
1947
|
+
type: 'string'
|
|
1948
|
+
},
|
|
1949
|
+
azure_blob_resource_path: {
|
|
1950
|
+
type: 'string'
|
|
1951
|
+
},
|
|
1952
|
+
public_resource: {
|
|
1953
|
+
type: 'boolean'
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
};
|
|
1957
|
+
exports.$WindmillLargeFile = {
|
|
1958
|
+
type: 'object',
|
|
1959
|
+
properties: {
|
|
1960
|
+
s3: {
|
|
1961
|
+
type: 'string'
|
|
1962
|
+
}
|
|
1963
|
+
},
|
|
1964
|
+
required: ['s3']
|
|
1965
|
+
};
|
|
1966
|
+
exports.$WindmillFileMetadata = {
|
|
1967
|
+
type: 'object',
|
|
1968
|
+
properties: {
|
|
1969
|
+
mime_type: {
|
|
1970
|
+
type: 'string'
|
|
1971
|
+
},
|
|
1972
|
+
size_in_bytes: {
|
|
1973
|
+
type: 'integer'
|
|
1974
|
+
},
|
|
1975
|
+
last_modified: {
|
|
1976
|
+
type: 'string',
|
|
1977
|
+
format: 'date-time'
|
|
1978
|
+
},
|
|
1979
|
+
expires: {
|
|
1980
|
+
type: 'string',
|
|
1981
|
+
format: 'date-time'
|
|
1982
|
+
},
|
|
1983
|
+
version_id: {
|
|
1984
|
+
type: 'string'
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
};
|
|
1988
|
+
exports.$WindmillFilePreview = {
|
|
1989
|
+
type: 'object',
|
|
1990
|
+
properties: {
|
|
1991
|
+
msg: {
|
|
1992
|
+
type: 'string'
|
|
1993
|
+
},
|
|
1994
|
+
content: {
|
|
1995
|
+
type: 'string'
|
|
1996
|
+
},
|
|
1997
|
+
content_type: {
|
|
1998
|
+
type: 'string',
|
|
1999
|
+
enum: ['RawText', 'Csv', 'Parquet', 'Unknown']
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
required: ['content_type']
|
|
2003
|
+
};
|
|
2004
|
+
exports.$S3Resource = {
|
|
2005
|
+
type: 'object',
|
|
2006
|
+
properties: {
|
|
2007
|
+
bucket: {
|
|
2008
|
+
type: 'string'
|
|
2009
|
+
},
|
|
2010
|
+
region: {
|
|
2011
|
+
type: 'string'
|
|
2012
|
+
},
|
|
2013
|
+
endPoint: {
|
|
2014
|
+
type: 'string'
|
|
2015
|
+
},
|
|
2016
|
+
useSSL: {
|
|
2017
|
+
type: 'boolean'
|
|
2018
|
+
},
|
|
2019
|
+
accessKey: {
|
|
2020
|
+
type: 'string'
|
|
2021
|
+
},
|
|
2022
|
+
secretKey: {
|
|
2023
|
+
type: 'string'
|
|
2024
|
+
},
|
|
2025
|
+
pathStyle: {
|
|
2026
|
+
type: 'boolean'
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
required: ['bucket', 'region', 'endPoint', 'useSSL', 'pathStyle']
|
|
2030
|
+
};
|
|
2031
|
+
exports.$WorkspaceGitSyncSettings = {
|
|
2032
|
+
type: 'object',
|
|
2033
|
+
properties: {
|
|
2034
|
+
include_path: {
|
|
2035
|
+
type: 'array',
|
|
2036
|
+
items: {
|
|
2037
|
+
type: 'string'
|
|
2038
|
+
}
|
|
2039
|
+
},
|
|
2040
|
+
include_type: {
|
|
2041
|
+
type: 'array',
|
|
2042
|
+
items: {
|
|
2043
|
+
type: 'string',
|
|
2044
|
+
enum: ['script', 'flow', 'app', 'folder', 'resource', 'variable', 'secret', 'resourcetype', 'schedule', 'user', 'group']
|
|
2045
|
+
}
|
|
2046
|
+
},
|
|
2047
|
+
repositories: {
|
|
2048
|
+
type: 'array',
|
|
2049
|
+
items: {
|
|
2050
|
+
'$ref': '#/components/schemas/GitRepositorySettings'
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
exports.$WorkspaceDefaultScripts = {
|
|
2056
|
+
type: 'object',
|
|
2057
|
+
properties: {
|
|
2058
|
+
order: {
|
|
2059
|
+
type: 'array',
|
|
2060
|
+
items: {
|
|
2061
|
+
type: 'string'
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
hidden: {
|
|
2065
|
+
type: 'array',
|
|
2066
|
+
items: {
|
|
2067
|
+
type: 'string'
|
|
2068
|
+
}
|
|
2069
|
+
},
|
|
2070
|
+
default_script_content: {
|
|
2071
|
+
additionalProperties: {
|
|
2072
|
+
type: 'string'
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
};
|
|
2077
|
+
exports.$GitRepositorySettings = {
|
|
2078
|
+
type: 'object',
|
|
2079
|
+
properties: {
|
|
2080
|
+
script_path: {
|
|
2081
|
+
type: 'string'
|
|
2082
|
+
},
|
|
2083
|
+
git_repo_resource_path: {
|
|
2084
|
+
type: 'string'
|
|
2085
|
+
},
|
|
2086
|
+
use_individual_branch: {
|
|
2087
|
+
type: 'boolean'
|
|
2088
|
+
},
|
|
2089
|
+
group_by_folder: {
|
|
2090
|
+
type: 'boolean'
|
|
2091
|
+
},
|
|
2092
|
+
exclude_types_override: {
|
|
2093
|
+
type: 'array',
|
|
2094
|
+
items: {
|
|
2095
|
+
type: 'string',
|
|
2096
|
+
enum: ['script', 'flow', 'app', 'folder', 'resource', 'variable', 'secret', 'resourcetype', 'schedule', 'user', 'group']
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2100
|
+
required: ['script_path', 'git_repo_resource_path']
|
|
2101
|
+
};
|
|
2102
|
+
exports.$UploadFilePart = {
|
|
2103
|
+
type: 'object',
|
|
2104
|
+
properties: {
|
|
2105
|
+
part_number: {
|
|
2106
|
+
type: 'integer'
|
|
2107
|
+
},
|
|
2108
|
+
tag: {
|
|
2109
|
+
type: 'string'
|
|
2110
|
+
}
|
|
2111
|
+
},
|
|
2112
|
+
required: ['part_number', 'tag']
|
|
2113
|
+
};
|
|
2114
|
+
exports.$MetricMetadata = {
|
|
2115
|
+
type: 'object',
|
|
2116
|
+
properties: {
|
|
2117
|
+
id: {
|
|
2118
|
+
type: 'string'
|
|
2119
|
+
},
|
|
2120
|
+
name: {
|
|
2121
|
+
type: 'string'
|
|
2122
|
+
}
|
|
2123
|
+
},
|
|
2124
|
+
required: ['id']
|
|
2125
|
+
};
|
|
2126
|
+
exports.$ScalarMetric = {
|
|
2127
|
+
type: 'object',
|
|
2128
|
+
properties: {
|
|
2129
|
+
metric_id: {
|
|
2130
|
+
type: 'string'
|
|
2131
|
+
},
|
|
2132
|
+
value: {
|
|
2133
|
+
type: 'number'
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
required: ['id', 'value']
|
|
2137
|
+
};
|
|
2138
|
+
exports.$TimeseriesMetric = {
|
|
2139
|
+
type: 'object',
|
|
2140
|
+
properties: {
|
|
2141
|
+
metric_id: {
|
|
2142
|
+
type: 'string'
|
|
2143
|
+
},
|
|
2144
|
+
values: {
|
|
2145
|
+
type: 'array',
|
|
2146
|
+
items: {
|
|
2147
|
+
'$ref': '#/components/schemas/MetricDataPoint'
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2151
|
+
required: ['id', 'values']
|
|
2152
|
+
};
|
|
2153
|
+
exports.$MetricDataPoint = {
|
|
2154
|
+
type: 'object',
|
|
2155
|
+
properties: {
|
|
2156
|
+
timestamp: {
|
|
2157
|
+
type: 'string',
|
|
2158
|
+
format: 'date-time'
|
|
2159
|
+
},
|
|
2160
|
+
value: {
|
|
2161
|
+
type: 'number'
|
|
2162
|
+
}
|
|
2163
|
+
},
|
|
2164
|
+
required: ['timestamp', 'value']
|
|
2165
|
+
};
|
|
2166
|
+
exports.$RawScriptForDependencies = {
|
|
2167
|
+
type: 'object',
|
|
2168
|
+
properties: {
|
|
2169
|
+
raw_code: {
|
|
2170
|
+
type: 'string'
|
|
2171
|
+
},
|
|
2172
|
+
path: {
|
|
2173
|
+
type: 'string'
|
|
2174
|
+
},
|
|
2175
|
+
language: {
|
|
2176
|
+
type: 'string',
|
|
2177
|
+
enum: ['python3', 'deno', 'go', 'bash', 'powershell', 'postgresql', 'mysql', 'bigquery', 'snowflake', 'mssql', 'graphql', 'nativets', 'bun']
|
|
2178
|
+
}
|
|
2179
|
+
},
|
|
2180
|
+
required: ['raw_code', 'path', 'language']
|
|
2181
|
+
};
|
|
2182
|
+
exports.$ConcurrencyGroup = {
|
|
2183
|
+
type: 'object',
|
|
2184
|
+
properties: {
|
|
2185
|
+
concurrency_id: {
|
|
2186
|
+
type: 'string'
|
|
2187
|
+
},
|
|
2188
|
+
job_uuids: {
|
|
2189
|
+
type: 'array',
|
|
2190
|
+
items: {
|
|
2191
|
+
type: 'string'
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
},
|
|
2195
|
+
required: ['concurrency_id', 'job_uuids']
|
|
2196
|
+
};
|
|
2197
|
+
exports.$OpenFlow = {
|
|
2198
|
+
type: 'object',
|
|
2199
|
+
properties: {
|
|
2200
|
+
summary: {
|
|
2201
|
+
type: 'string'
|
|
2202
|
+
},
|
|
2203
|
+
description: {
|
|
2204
|
+
type: 'string'
|
|
2205
|
+
},
|
|
2206
|
+
value: {
|
|
2207
|
+
'$ref': '#/components/schemas/FlowValue'
|
|
2208
|
+
},
|
|
2209
|
+
schema: {
|
|
2210
|
+
type: 'object'
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2213
|
+
required: ['summary', 'value']
|
|
2214
|
+
};
|
|
2215
|
+
exports.$FlowValue = {
|
|
2216
|
+
type: 'object',
|
|
2217
|
+
properties: {
|
|
2218
|
+
modules: {
|
|
2219
|
+
type: 'array',
|
|
2220
|
+
items: {
|
|
2221
|
+
'$ref': '#/components/schemas/FlowModule'
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
failure_module: {
|
|
2225
|
+
'$ref': '#/components/schemas/FlowModule'
|
|
2226
|
+
},
|
|
2227
|
+
same_worker: {
|
|
2228
|
+
type: 'boolean'
|
|
2229
|
+
},
|
|
2230
|
+
concurrent_limit: {
|
|
2231
|
+
type: 'number'
|
|
2232
|
+
},
|
|
2233
|
+
concurrency_key: {
|
|
2234
|
+
type: 'string'
|
|
2235
|
+
},
|
|
2236
|
+
concurrency_time_window_s: {
|
|
2237
|
+
type: 'number'
|
|
2238
|
+
},
|
|
2239
|
+
skip_expr: {
|
|
2240
|
+
type: 'string'
|
|
2241
|
+
},
|
|
2242
|
+
cache_ttl: {
|
|
2243
|
+
type: 'number'
|
|
2244
|
+
},
|
|
2245
|
+
priority: {
|
|
2246
|
+
type: 'number'
|
|
2247
|
+
},
|
|
2248
|
+
early_return: {
|
|
2249
|
+
type: 'string'
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
required: ['modules']
|
|
2253
|
+
};
|
|
2254
|
+
exports.$Retry = {
|
|
2255
|
+
type: 'object',
|
|
2256
|
+
properties: {
|
|
2257
|
+
constant: {
|
|
2258
|
+
type: 'object',
|
|
2259
|
+
properties: {
|
|
2260
|
+
attempts: {
|
|
2261
|
+
type: 'integer'
|
|
2262
|
+
},
|
|
2263
|
+
seconds: {
|
|
2264
|
+
type: 'integer'
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
},
|
|
2268
|
+
exponential: {
|
|
2269
|
+
type: 'object',
|
|
2270
|
+
properties: {
|
|
2271
|
+
attempts: {
|
|
2272
|
+
type: 'integer'
|
|
2273
|
+
},
|
|
2274
|
+
multiplier: {
|
|
2275
|
+
type: 'integer'
|
|
2276
|
+
},
|
|
2277
|
+
seconds: {
|
|
2278
|
+
type: 'integer'
|
|
2279
|
+
},
|
|
2280
|
+
random_factor: {
|
|
2281
|
+
type: 'integer',
|
|
2282
|
+
minimum: 0,
|
|
2283
|
+
maximum: 100
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
};
|
|
2289
|
+
exports.$FlowModule = {
|
|
2290
|
+
type: 'object',
|
|
2291
|
+
properties: {
|
|
2292
|
+
id: {
|
|
2293
|
+
type: 'string'
|
|
2294
|
+
},
|
|
2295
|
+
value: {
|
|
2296
|
+
'$ref': '#/components/schemas/FlowModuleValue'
|
|
2297
|
+
},
|
|
2298
|
+
stop_after_if: {
|
|
2299
|
+
type: 'object',
|
|
2300
|
+
properties: {
|
|
2301
|
+
skip_if_stopped: {
|
|
2302
|
+
type: 'boolean'
|
|
2303
|
+
},
|
|
2304
|
+
expr: {
|
|
2305
|
+
type: 'string'
|
|
2306
|
+
}
|
|
2307
|
+
},
|
|
2308
|
+
required: ['expr']
|
|
2309
|
+
},
|
|
2310
|
+
sleep: {
|
|
2311
|
+
'$ref': '#/components/schemas/InputTransform'
|
|
2312
|
+
},
|
|
2313
|
+
cache_ttl: {
|
|
2314
|
+
type: 'number'
|
|
2315
|
+
},
|
|
2316
|
+
timeout: {
|
|
2317
|
+
type: 'number'
|
|
2318
|
+
},
|
|
2319
|
+
delete_after_use: {
|
|
2320
|
+
type: 'boolean'
|
|
2321
|
+
},
|
|
2322
|
+
summary: {
|
|
2323
|
+
type: 'string'
|
|
2324
|
+
},
|
|
2325
|
+
mock: {
|
|
2326
|
+
type: 'object',
|
|
2327
|
+
properties: {
|
|
2328
|
+
enabled: {
|
|
2329
|
+
type: 'boolean'
|
|
2330
|
+
},
|
|
2331
|
+
return_value: {}
|
|
2332
|
+
}
|
|
2333
|
+
},
|
|
2334
|
+
suspend: {
|
|
2335
|
+
type: 'object',
|
|
2336
|
+
properties: {
|
|
2337
|
+
required_events: {
|
|
2338
|
+
type: 'integer'
|
|
2339
|
+
},
|
|
2340
|
+
timeout: {
|
|
2341
|
+
type: 'integer'
|
|
2342
|
+
},
|
|
2343
|
+
resume_form: {
|
|
2344
|
+
type: 'object',
|
|
2345
|
+
properties: {
|
|
2346
|
+
schema: {
|
|
2347
|
+
type: 'object'
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
},
|
|
2351
|
+
user_auth_required: {
|
|
2352
|
+
type: 'boolean'
|
|
2353
|
+
},
|
|
2354
|
+
user_groups_required: {
|
|
2355
|
+
'$ref': '#/components/schemas/InputTransform'
|
|
2356
|
+
},
|
|
2357
|
+
self_approval_disabled: {
|
|
2358
|
+
type: 'boolean'
|
|
2359
|
+
},
|
|
2360
|
+
hide_cancel: {
|
|
2361
|
+
type: 'boolean'
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
},
|
|
2365
|
+
priority: {
|
|
2366
|
+
type: 'number'
|
|
2367
|
+
},
|
|
2368
|
+
continue_on_error: {
|
|
2369
|
+
type: 'boolean'
|
|
2370
|
+
},
|
|
2371
|
+
retry: {
|
|
2372
|
+
'$ref': '#/components/schemas/Retry'
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
required: ['value', 'id']
|
|
2376
|
+
};
|
|
2377
|
+
exports.$InputTransform = {
|
|
2378
|
+
oneOf: [
|
|
2379
|
+
{
|
|
2380
|
+
'$ref': '#/components/schemas/StaticTransform'
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
'$ref': '#/components/schemas/JavascriptTransform'
|
|
2384
|
+
}
|
|
2385
|
+
],
|
|
2386
|
+
discriminator: {
|
|
2387
|
+
propertyName: 'type',
|
|
2388
|
+
mapping: {
|
|
2389
|
+
static: '#/components/schemas/StaticTransform',
|
|
2390
|
+
javascript: '#/components/schemas/JavascriptTransform'
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
};
|
|
2394
|
+
exports.$StaticTransform = {
|
|
2395
|
+
type: 'object',
|
|
2396
|
+
properties: {
|
|
2397
|
+
value: {},
|
|
2398
|
+
type: {
|
|
2399
|
+
type: 'string',
|
|
2400
|
+
enum: ['javascript']
|
|
2401
|
+
}
|
|
2402
|
+
},
|
|
2403
|
+
required: ['expr', 'type']
|
|
2404
|
+
};
|
|
2405
|
+
exports.$JavascriptTransform = {
|
|
2406
|
+
type: 'object',
|
|
2407
|
+
properties: {
|
|
2408
|
+
expr: {
|
|
2409
|
+
type: 'string'
|
|
2410
|
+
},
|
|
2411
|
+
type: {
|
|
2412
|
+
type: 'string',
|
|
2413
|
+
enum: ['javascript']
|
|
2414
|
+
}
|
|
2415
|
+
},
|
|
2416
|
+
required: ['expr', 'type']
|
|
2417
|
+
};
|
|
2418
|
+
exports.$FlowModuleValue = {
|
|
2419
|
+
oneOf: [
|
|
2420
|
+
{
|
|
2421
|
+
'$ref': '#/components/schemas/RawScript'
|
|
2422
|
+
},
|
|
2423
|
+
{
|
|
2424
|
+
'$ref': '#/components/schemas/PathScript'
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
'$ref': '#/components/schemas/PathFlow'
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
'$ref': '#/components/schemas/ForloopFlow'
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
'$ref': '#/components/schemas/WhileloopFlow'
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
'$ref': '#/components/schemas/BranchOne'
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
'$ref': '#/components/schemas/BranchAll'
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
'$ref': '#/components/schemas/Identity'
|
|
2443
|
+
}
|
|
2444
|
+
],
|
|
2445
|
+
discriminator: {
|
|
2446
|
+
propertyName: 'type',
|
|
2447
|
+
mapping: {
|
|
2448
|
+
rawscript: '#/components/schemas/RawScript',
|
|
2449
|
+
script: '#/components/schemas/PathScript',
|
|
2450
|
+
flow: '#/components/schemas/PathFlow',
|
|
2451
|
+
forloopflow: '#/components/schemas/ForloopFlow',
|
|
2452
|
+
whileloopflow: '#/components/schemas/WhileloopFlow',
|
|
2453
|
+
branchone: '#/components/schemas/BranchOne',
|
|
2454
|
+
branchall: '#/components/schemas/BranchAll',
|
|
2455
|
+
identity: '#/components/schemas/Identity'
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
};
|
|
2459
|
+
exports.$RawScript = {
|
|
2460
|
+
type: 'object',
|
|
2461
|
+
properties: {
|
|
2462
|
+
input_transforms: {
|
|
2463
|
+
type: 'object',
|
|
2464
|
+
additionalProperties: {
|
|
2465
|
+
'$ref': '#/components/schemas/InputTransform'
|
|
2466
|
+
}
|
|
2467
|
+
},
|
|
2468
|
+
content: {
|
|
2469
|
+
type: 'string'
|
|
2470
|
+
},
|
|
2471
|
+
language: {
|
|
2472
|
+
type: 'string',
|
|
2473
|
+
enum: ['deno', 'bun', 'python3', 'go', 'bash', 'powershell', 'postgresql', 'mysql', 'bigquery', 'snowflake', 'mssql', 'graphql', 'nativets']
|
|
2474
|
+
},
|
|
2475
|
+
path: {
|
|
2476
|
+
type: 'string'
|
|
2477
|
+
},
|
|
2478
|
+
lock: {
|
|
2479
|
+
type: 'string'
|
|
2480
|
+
},
|
|
2481
|
+
type: {
|
|
2482
|
+
type: 'string',
|
|
2483
|
+
enum: ['rawscript']
|
|
2484
|
+
},
|
|
2485
|
+
tag: {
|
|
2486
|
+
type: 'string'
|
|
2487
|
+
},
|
|
2488
|
+
concurrent_limit: {
|
|
2489
|
+
type: 'number'
|
|
2490
|
+
},
|
|
2491
|
+
concurrency_time_window_s: {
|
|
2492
|
+
type: 'number'
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
required: ['type', 'content', 'language', 'input_transforms']
|
|
2496
|
+
};
|
|
2497
|
+
exports.$PathScript = {
|
|
2498
|
+
type: 'object',
|
|
2499
|
+
properties: {
|
|
2500
|
+
input_transforms: {
|
|
2501
|
+
type: 'object',
|
|
2502
|
+
additionalProperties: {
|
|
2503
|
+
'$ref': '#/components/schemas/InputTransform'
|
|
2504
|
+
}
|
|
2505
|
+
},
|
|
2506
|
+
path: {
|
|
2507
|
+
type: 'string'
|
|
2508
|
+
},
|
|
2509
|
+
hash: {
|
|
2510
|
+
type: 'string'
|
|
2511
|
+
},
|
|
2512
|
+
type: {
|
|
2513
|
+
type: 'string',
|
|
2514
|
+
enum: ['script']
|
|
2515
|
+
}
|
|
2516
|
+
},
|
|
2517
|
+
required: ['type', 'path', 'input_transforms']
|
|
2518
|
+
};
|
|
2519
|
+
exports.$PathFlow = {
|
|
2520
|
+
type: 'object',
|
|
2521
|
+
properties: {
|
|
2522
|
+
input_transforms: {
|
|
2523
|
+
type: 'object',
|
|
2524
|
+
additionalProperties: {
|
|
2525
|
+
'$ref': '#/components/schemas/InputTransform'
|
|
2526
|
+
}
|
|
2527
|
+
},
|
|
2528
|
+
path: {
|
|
2529
|
+
type: 'string'
|
|
2530
|
+
},
|
|
2531
|
+
type: {
|
|
2532
|
+
type: 'string',
|
|
2533
|
+
enum: ['flow']
|
|
2534
|
+
}
|
|
2535
|
+
},
|
|
2536
|
+
required: ['type', 'path', 'input_transforms']
|
|
2537
|
+
};
|
|
2538
|
+
exports.$ForloopFlow = {
|
|
2539
|
+
type: 'object',
|
|
2540
|
+
properties: {
|
|
2541
|
+
modules: {
|
|
2542
|
+
type: 'array',
|
|
2543
|
+
items: {
|
|
2544
|
+
'$ref': '#/components/schemas/FlowModule'
|
|
2545
|
+
}
|
|
2546
|
+
},
|
|
2547
|
+
iterator: {
|
|
2548
|
+
'$ref': '#/components/schemas/InputTransform'
|
|
2549
|
+
},
|
|
2550
|
+
skip_failures: {
|
|
2551
|
+
type: 'boolean'
|
|
2552
|
+
},
|
|
2553
|
+
type: {
|
|
2554
|
+
type: 'string',
|
|
2555
|
+
enum: ['forloopflow']
|
|
2556
|
+
},
|
|
2557
|
+
parallel: {
|
|
2558
|
+
type: 'boolean'
|
|
2559
|
+
},
|
|
2560
|
+
parallelism: {
|
|
2561
|
+
type: 'integer'
|
|
2562
|
+
}
|
|
2563
|
+
},
|
|
2564
|
+
required: ['modules', 'iterator', 'skip_failures', 'type']
|
|
2565
|
+
};
|
|
2566
|
+
exports.$WhileloopFlow = {
|
|
2567
|
+
type: 'object',
|
|
2568
|
+
properties: {
|
|
2569
|
+
modules: {
|
|
2570
|
+
type: 'array',
|
|
2571
|
+
items: {
|
|
2572
|
+
'$ref': '#/components/schemas/FlowModule'
|
|
2573
|
+
}
|
|
2574
|
+
},
|
|
2575
|
+
skip_failures: {
|
|
2576
|
+
type: 'boolean'
|
|
2577
|
+
},
|
|
2578
|
+
type: {
|
|
2579
|
+
type: 'string',
|
|
2580
|
+
enum: ['forloopflow']
|
|
2581
|
+
},
|
|
2582
|
+
parallel: {
|
|
2583
|
+
type: 'boolean'
|
|
2584
|
+
},
|
|
2585
|
+
parallelism: {
|
|
2586
|
+
type: 'integer'
|
|
2587
|
+
}
|
|
2588
|
+
},
|
|
2589
|
+
required: ['modules', 'skip_failures', 'type']
|
|
2590
|
+
};
|
|
2591
|
+
exports.$BranchOne = {
|
|
2592
|
+
type: 'object',
|
|
2593
|
+
properties: {
|
|
2594
|
+
branches: {
|
|
2595
|
+
type: 'array',
|
|
2596
|
+
items: {
|
|
2597
|
+
type: 'object',
|
|
2598
|
+
properties: {
|
|
2599
|
+
summary: {
|
|
2600
|
+
type: 'string'
|
|
2601
|
+
},
|
|
2602
|
+
expr: {
|
|
2603
|
+
type: 'string'
|
|
2604
|
+
},
|
|
2605
|
+
modules: {
|
|
2606
|
+
type: 'array',
|
|
2607
|
+
items: {
|
|
2608
|
+
'$ref': '#/components/schemas/FlowModule'
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
},
|
|
2612
|
+
required: ['modules', 'expr']
|
|
2613
|
+
}
|
|
2614
|
+
},
|
|
2615
|
+
default: {
|
|
2616
|
+
type: 'array',
|
|
2617
|
+
items: {
|
|
2618
|
+
'$ref': '#/components/schemas/FlowModule'
|
|
2619
|
+
},
|
|
2620
|
+
required: ['modules']
|
|
2621
|
+
},
|
|
2622
|
+
type: {
|
|
2623
|
+
type: 'string',
|
|
2624
|
+
enum: ['branchone']
|
|
2625
|
+
}
|
|
2626
|
+
},
|
|
2627
|
+
required: ['branches', 'default', 'type']
|
|
2628
|
+
};
|
|
2629
|
+
exports.$BranchAll = {
|
|
2630
|
+
type: 'object',
|
|
2631
|
+
properties: {
|
|
2632
|
+
branches: {
|
|
2633
|
+
type: 'array',
|
|
2634
|
+
items: {
|
|
2635
|
+
type: 'object',
|
|
2636
|
+
properties: {
|
|
2637
|
+
summary: {
|
|
2638
|
+
type: 'string'
|
|
2639
|
+
},
|
|
2640
|
+
skip_failure: {
|
|
2641
|
+
type: 'boolean'
|
|
2642
|
+
},
|
|
2643
|
+
modules: {
|
|
2644
|
+
type: 'array',
|
|
2645
|
+
items: {
|
|
2646
|
+
'$ref': '#/components/schemas/FlowModule'
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
},
|
|
2650
|
+
required: ['modules', 'expr']
|
|
2651
|
+
}
|
|
2652
|
+
},
|
|
2653
|
+
type: {
|
|
2654
|
+
type: 'string',
|
|
2655
|
+
enum: ['branchall']
|
|
2656
|
+
},
|
|
2657
|
+
parallel: {
|
|
2658
|
+
type: 'boolean'
|
|
2659
|
+
}
|
|
2660
|
+
},
|
|
2661
|
+
required: ['branches', 'type']
|
|
2662
|
+
};
|
|
2663
|
+
exports.$Identity = {
|
|
2664
|
+
type: 'object',
|
|
2665
|
+
properties: {
|
|
2666
|
+
type: {
|
|
2667
|
+
type: 'string',
|
|
2668
|
+
enum: ['identity']
|
|
2669
|
+
},
|
|
2670
|
+
flow: {
|
|
2671
|
+
type: 'boolean'
|
|
2672
|
+
}
|
|
2673
|
+
},
|
|
2674
|
+
required: ['type']
|
|
2675
|
+
};
|
|
2676
|
+
exports.$FlowStatus = {
|
|
2677
|
+
type: 'object',
|
|
2678
|
+
properties: {
|
|
2679
|
+
step: {
|
|
2680
|
+
type: 'integer'
|
|
2681
|
+
},
|
|
2682
|
+
modules: {
|
|
2683
|
+
type: 'array',
|
|
2684
|
+
items: {
|
|
2685
|
+
'$ref': '#/components/schemas/FlowStatusModule'
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2688
|
+
user_states: {
|
|
2689
|
+
additionalProperties: true
|
|
2690
|
+
},
|
|
2691
|
+
failure_module: {
|
|
2692
|
+
allOf: [
|
|
2693
|
+
{
|
|
2694
|
+
'$ref': '#/components/schemas/FlowStatusModule'
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
type: 'object',
|
|
2698
|
+
properties: {
|
|
2699
|
+
parent_module: {
|
|
2700
|
+
type: 'string'
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
]
|
|
2705
|
+
},
|
|
2706
|
+
retry: {
|
|
2707
|
+
type: 'object',
|
|
2708
|
+
properties: {
|
|
2709
|
+
fail_count: {
|
|
2710
|
+
type: 'integer'
|
|
2711
|
+
},
|
|
2712
|
+
failed_jobs: {
|
|
2713
|
+
type: 'array',
|
|
2714
|
+
items: {
|
|
2715
|
+
type: 'string',
|
|
2716
|
+
format: 'uuid'
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
},
|
|
2722
|
+
required: ['step', 'modules', 'failure_module']
|
|
2723
|
+
};
|
|
2724
|
+
exports.$FlowStatusModule = {
|
|
2725
|
+
type: 'object',
|
|
2726
|
+
properties: {
|
|
2727
|
+
type: {
|
|
2728
|
+
type: 'string',
|
|
2729
|
+
enum: ['WaitingForPriorSteps', 'WaitingForEvents', 'WaitingForExecutor', 'InProgress', 'Success', 'Failure']
|
|
2730
|
+
},
|
|
2731
|
+
id: {
|
|
2732
|
+
type: 'string'
|
|
2733
|
+
},
|
|
2734
|
+
job: {
|
|
2735
|
+
type: 'string',
|
|
2736
|
+
format: 'uuid'
|
|
2737
|
+
},
|
|
2738
|
+
count: {
|
|
2739
|
+
type: 'integer'
|
|
2740
|
+
},
|
|
2741
|
+
iterator: {
|
|
2742
|
+
type: 'object',
|
|
2743
|
+
properties: {
|
|
2744
|
+
index: {
|
|
2745
|
+
type: 'integer'
|
|
2746
|
+
},
|
|
2747
|
+
itered: {
|
|
2748
|
+
type: 'array',
|
|
2749
|
+
items: {}
|
|
2750
|
+
},
|
|
2751
|
+
args: {}
|
|
2752
|
+
}
|
|
2753
|
+
},
|
|
2754
|
+
flow_jobs: {
|
|
2755
|
+
type: 'array',
|
|
2756
|
+
items: {
|
|
2757
|
+
type: 'string'
|
|
2758
|
+
}
|
|
2759
|
+
},
|
|
2760
|
+
branch_chosen: {
|
|
2761
|
+
type: 'object',
|
|
2762
|
+
properties: {
|
|
2763
|
+
type: {
|
|
2764
|
+
type: 'string',
|
|
2765
|
+
enum: ['branch', 'default']
|
|
2766
|
+
},
|
|
2767
|
+
branch: {
|
|
2768
|
+
type: 'integer'
|
|
2769
|
+
}
|
|
2770
|
+
},
|
|
2771
|
+
required: ['type']
|
|
2772
|
+
},
|
|
2773
|
+
branchall: {
|
|
2774
|
+
type: 'object',
|
|
2775
|
+
properties: {
|
|
2776
|
+
branch: {
|
|
2777
|
+
type: 'integer'
|
|
2778
|
+
},
|
|
2779
|
+
len: {
|
|
2780
|
+
type: 'integer'
|
|
2781
|
+
}
|
|
2782
|
+
},
|
|
2783
|
+
required: ['branch', 'len']
|
|
2784
|
+
},
|
|
2785
|
+
approvers: {
|
|
2786
|
+
type: 'array',
|
|
2787
|
+
items: {
|
|
2788
|
+
type: 'object',
|
|
2789
|
+
properties: {
|
|
2790
|
+
resume_id: {
|
|
2791
|
+
type: 'integer'
|
|
2792
|
+
},
|
|
2793
|
+
approver: {
|
|
2794
|
+
type: 'string'
|
|
2795
|
+
}
|
|
2796
|
+
},
|
|
2797
|
+
required: ['resume_id', 'approver']
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
},
|
|
2801
|
+
required: ['type']
|
|
2802
|
+
};
|
|
2803
|
+
exports.$Key = {
|
|
2804
|
+
name: 'key',
|
|
2805
|
+
in: 'path',
|
|
2806
|
+
required: true,
|
|
2807
|
+
schema: {
|
|
2808
|
+
type: 'string'
|
|
2809
|
+
}
|
|
2810
|
+
};
|
|
2811
|
+
exports.$WorkspaceId = {
|
|
2812
|
+
name: 'workspace',
|
|
2813
|
+
in: 'path',
|
|
2814
|
+
required: true,
|
|
2815
|
+
schema: {
|
|
2816
|
+
type: 'string'
|
|
2817
|
+
}
|
|
2818
|
+
};
|
|
2819
|
+
exports.$VersionId = {
|
|
2820
|
+
name: 'version',
|
|
2821
|
+
in: 'path',
|
|
2822
|
+
required: true,
|
|
2823
|
+
schema: {
|
|
2824
|
+
type: 'number'
|
|
2825
|
+
}
|
|
2826
|
+
};
|
|
2827
|
+
exports.$Token = {
|
|
2828
|
+
name: 'token',
|
|
2829
|
+
in: 'path',
|
|
2830
|
+
required: true,
|
|
2831
|
+
schema: {
|
|
2832
|
+
type: 'string'
|
|
2833
|
+
}
|
|
2834
|
+
};
|
|
2835
|
+
exports.$AccountId = {
|
|
2836
|
+
name: 'id',
|
|
2837
|
+
in: 'path',
|
|
2838
|
+
required: true,
|
|
2839
|
+
schema: {
|
|
2840
|
+
type: 'integer'
|
|
2841
|
+
}
|
|
2842
|
+
};
|
|
2843
|
+
exports.$ClientName = {
|
|
2844
|
+
name: 'client_name',
|
|
2845
|
+
in: 'path',
|
|
2846
|
+
required: true,
|
|
2847
|
+
schema: {
|
|
2848
|
+
type: 'string'
|
|
2849
|
+
}
|
|
2850
|
+
};
|
|
2851
|
+
exports.$ScriptPath = {
|
|
2852
|
+
name: 'path',
|
|
2853
|
+
in: 'path',
|
|
2854
|
+
required: true,
|
|
2855
|
+
schema: {
|
|
2856
|
+
type: 'string'
|
|
2857
|
+
}
|
|
2858
|
+
};
|
|
2859
|
+
exports.$ScriptHash = {
|
|
2860
|
+
name: 'hash',
|
|
2861
|
+
in: 'path',
|
|
2862
|
+
required: true,
|
|
2863
|
+
schema: {
|
|
2864
|
+
type: 'string'
|
|
2865
|
+
}
|
|
2866
|
+
};
|
|
2867
|
+
exports.$JobId = {
|
|
2868
|
+
name: 'id',
|
|
2869
|
+
in: 'path',
|
|
2870
|
+
required: true,
|
|
2871
|
+
schema: {
|
|
2872
|
+
type: 'string',
|
|
2873
|
+
format: 'uuid'
|
|
2874
|
+
}
|
|
2875
|
+
};
|
|
2876
|
+
exports.$Path = {
|
|
2877
|
+
name: 'path',
|
|
2878
|
+
in: 'path',
|
|
2879
|
+
required: true,
|
|
2880
|
+
schema: {
|
|
2881
|
+
type: 'string'
|
|
2882
|
+
}
|
|
2883
|
+
};
|
|
2884
|
+
exports.$PathId = {
|
|
2885
|
+
name: 'id',
|
|
2886
|
+
in: 'path',
|
|
2887
|
+
required: true,
|
|
2888
|
+
schema: {
|
|
2889
|
+
type: 'integer'
|
|
2890
|
+
}
|
|
2891
|
+
};
|
|
2892
|
+
exports.$PathVersion = {
|
|
2893
|
+
name: 'version',
|
|
2894
|
+
in: 'path',
|
|
2895
|
+
required: true,
|
|
2896
|
+
schema: {
|
|
2897
|
+
type: 'integer'
|
|
2898
|
+
}
|
|
2899
|
+
};
|
|
2900
|
+
exports.$Name = {
|
|
2901
|
+
name: 'name',
|
|
2902
|
+
in: 'path',
|
|
2903
|
+
required: true,
|
|
2904
|
+
schema: {
|
|
2905
|
+
type: 'string'
|
|
2906
|
+
}
|
|
2907
|
+
};
|
|
2908
|
+
exports.$Page = {
|
|
2909
|
+
name: 'page',
|
|
2910
|
+
description: 'which page to return (start at 1, default 1)',
|
|
2911
|
+
in: 'query',
|
|
2912
|
+
schema: {
|
|
2913
|
+
type: 'integer'
|
|
2914
|
+
}
|
|
2915
|
+
};
|
|
2916
|
+
exports.$PerPage = {
|
|
2917
|
+
name: 'per_page',
|
|
2918
|
+
description: 'number of items to return for a given page (default 30, max 100)',
|
|
2919
|
+
in: 'query',
|
|
2920
|
+
schema: {
|
|
2921
|
+
type: 'integer'
|
|
2922
|
+
}
|
|
2923
|
+
};
|
|
2924
|
+
exports.$OrderDesc = {
|
|
2925
|
+
name: 'order_desc',
|
|
2926
|
+
description: 'order by desc order (default true)',
|
|
2927
|
+
in: 'query',
|
|
2928
|
+
schema: {
|
|
2929
|
+
type: 'boolean'
|
|
2930
|
+
}
|
|
2931
|
+
};
|
|
2932
|
+
exports.$CreatedBy = {
|
|
2933
|
+
name: 'created_by',
|
|
2934
|
+
description: 'mask to filter exact matching user creator',
|
|
2935
|
+
in: 'query',
|
|
2936
|
+
schema: {
|
|
2937
|
+
type: 'string'
|
|
2938
|
+
}
|
|
2939
|
+
};
|
|
2940
|
+
exports.$ParentJob = {
|
|
2941
|
+
name: 'parent_job',
|
|
2942
|
+
description: 'The parent job that is at the origin and responsible for the execution of this script if any',
|
|
2943
|
+
in: 'query',
|
|
2944
|
+
schema: {
|
|
2945
|
+
type: 'string',
|
|
2946
|
+
format: 'uuid'
|
|
2947
|
+
}
|
|
2948
|
+
};
|
|
2949
|
+
exports.$WorkerTag = {
|
|
2950
|
+
name: 'tag',
|
|
2951
|
+
description: 'Override the tag to use',
|
|
2952
|
+
in: 'query',
|
|
2953
|
+
schema: {
|
|
2954
|
+
type: 'string'
|
|
2955
|
+
}
|
|
2956
|
+
};
|
|
2957
|
+
exports.$CacheTtl = {
|
|
2958
|
+
name: 'cache_ttl',
|
|
2959
|
+
description: 'Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl',
|
|
2960
|
+
in: 'query',
|
|
2961
|
+
schema: {
|
|
2962
|
+
type: 'string'
|
|
2963
|
+
}
|
|
2964
|
+
};
|
|
2965
|
+
exports.$NewJobId = {
|
|
2966
|
+
name: 'job_id',
|
|
2967
|
+
description: 'The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)',
|
|
2968
|
+
in: 'query',
|
|
2969
|
+
schema: {
|
|
2970
|
+
type: 'string',
|
|
2971
|
+
format: 'uuid'
|
|
2972
|
+
}
|
|
2973
|
+
};
|
|
2974
|
+
exports.$IncludeHeader = {
|
|
2975
|
+
name: 'include_header',
|
|
2976
|
+
description: `List of headers's keys (separated with ',') whove value are added to the args
|
|
2977
|
+
Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
2978
|
+
`,
|
|
2979
|
+
in: 'query',
|
|
2980
|
+
schema: {
|
|
2981
|
+
type: 'string'
|
|
2982
|
+
}
|
|
2983
|
+
};
|
|
2984
|
+
exports.$QueueLimit = {
|
|
2985
|
+
name: 'queue_limit',
|
|
2986
|
+
description: `The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
2987
|
+
`,
|
|
2988
|
+
in: 'query',
|
|
2989
|
+
schema: {
|
|
2990
|
+
type: 'string'
|
|
2991
|
+
}
|
|
2992
|
+
};
|
|
2993
|
+
exports.$Payload = {
|
|
2994
|
+
name: 'payload',
|
|
2995
|
+
description: `The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
2996
|
+
\`encodeURIComponent(btoa(JSON.stringify({a: 2})))\`
|
|
2997
|
+
`,
|
|
2998
|
+
in: 'query',
|
|
2999
|
+
schema: {
|
|
3000
|
+
type: 'string'
|
|
3001
|
+
}
|
|
3002
|
+
};
|
|
3003
|
+
exports.$ScriptStartPath = {
|
|
3004
|
+
name: 'script_path_start',
|
|
3005
|
+
description: 'mask to filter matching starting path',
|
|
3006
|
+
in: 'query',
|
|
3007
|
+
schema: {
|
|
3008
|
+
type: 'string'
|
|
3009
|
+
}
|
|
3010
|
+
};
|
|
3011
|
+
exports.$SchedulePath = {
|
|
3012
|
+
name: 'schedule_path',
|
|
3013
|
+
description: 'mask to filter by schedule path',
|
|
3014
|
+
in: 'query',
|
|
3015
|
+
schema: {
|
|
3016
|
+
type: 'string'
|
|
3017
|
+
}
|
|
3018
|
+
};
|
|
3019
|
+
exports.$ScriptExactPath = {
|
|
3020
|
+
name: 'script_path_exact',
|
|
3021
|
+
description: 'mask to filter exact matching path',
|
|
3022
|
+
in: 'query',
|
|
3023
|
+
schema: {
|
|
3024
|
+
type: 'string'
|
|
3025
|
+
}
|
|
3026
|
+
};
|
|
3027
|
+
exports.$ScriptExactHash = {
|
|
3028
|
+
name: 'script_hash',
|
|
3029
|
+
description: 'mask to filter exact matching path',
|
|
3030
|
+
in: 'query',
|
|
3031
|
+
schema: {
|
|
3032
|
+
type: 'string'
|
|
3033
|
+
}
|
|
3034
|
+
};
|
|
3035
|
+
exports.$StartedBefore = {
|
|
3036
|
+
name: 'started_before',
|
|
3037
|
+
description: 'filter on started before (inclusive) timestamp',
|
|
3038
|
+
in: 'query',
|
|
3039
|
+
schema: {
|
|
3040
|
+
type: 'string',
|
|
3041
|
+
format: 'date-time'
|
|
3042
|
+
}
|
|
3043
|
+
};
|
|
3044
|
+
exports.$StartedAfter = {
|
|
3045
|
+
name: 'started_after',
|
|
3046
|
+
description: 'filter on started after (exclusive) timestamp',
|
|
3047
|
+
in: 'query',
|
|
3048
|
+
schema: {
|
|
3049
|
+
type: 'string',
|
|
3050
|
+
format: 'date-time'
|
|
3051
|
+
}
|
|
3052
|
+
};
|
|
3053
|
+
exports.$CreatedOrStartedAfter = {
|
|
3054
|
+
name: 'created_or_started_after',
|
|
3055
|
+
description: 'filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp',
|
|
3056
|
+
in: 'query',
|
|
3057
|
+
schema: {
|
|
3058
|
+
type: 'string',
|
|
3059
|
+
format: 'date-time'
|
|
3060
|
+
}
|
|
3061
|
+
};
|
|
3062
|
+
exports.$CreatedOrStartedBefore = {
|
|
3063
|
+
name: 'created_or_started_before',
|
|
3064
|
+
description: 'filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp',
|
|
3065
|
+
in: 'query',
|
|
3066
|
+
schema: {
|
|
3067
|
+
type: 'string',
|
|
3068
|
+
format: 'date-time'
|
|
3069
|
+
}
|
|
3070
|
+
};
|
|
3071
|
+
exports.$Success = {
|
|
3072
|
+
name: 'success',
|
|
3073
|
+
description: 'filter on successful jobs',
|
|
3074
|
+
in: 'query',
|
|
3075
|
+
schema: {
|
|
3076
|
+
type: 'boolean'
|
|
3077
|
+
}
|
|
3078
|
+
};
|
|
3079
|
+
exports.$ScheduledForBeforeNow = {
|
|
3080
|
+
name: 'scheduled_for_before_now',
|
|
3081
|
+
description: 'filter on jobs scheduled_for before now (hence waitinf for a worker)',
|
|
3082
|
+
in: 'query',
|
|
3083
|
+
schema: {
|
|
3084
|
+
type: 'boolean'
|
|
3085
|
+
}
|
|
3086
|
+
};
|
|
3087
|
+
exports.$Suspended = {
|
|
3088
|
+
name: 'suspended',
|
|
3089
|
+
description: 'filter on suspended jobs',
|
|
3090
|
+
in: 'query',
|
|
3091
|
+
schema: {
|
|
3092
|
+
type: 'boolean'
|
|
3093
|
+
}
|
|
3094
|
+
};
|
|
3095
|
+
exports.$Running = {
|
|
3096
|
+
name: 'running',
|
|
3097
|
+
description: 'filter on running jobs',
|
|
3098
|
+
in: 'query',
|
|
3099
|
+
schema: {
|
|
3100
|
+
type: 'boolean'
|
|
3101
|
+
}
|
|
3102
|
+
};
|
|
3103
|
+
exports.$ArgsFilter = {
|
|
3104
|
+
name: 'args',
|
|
3105
|
+
description: 'filter on jobs containing those args as a json subset (@> in postgres)',
|
|
3106
|
+
in: 'query',
|
|
3107
|
+
schema: {
|
|
3108
|
+
type: 'string'
|
|
3109
|
+
}
|
|
3110
|
+
};
|
|
3111
|
+
exports.$Tag = {
|
|
3112
|
+
name: 'tag',
|
|
3113
|
+
description: 'filter on jobs with a given tag/worker group',
|
|
3114
|
+
in: 'query',
|
|
3115
|
+
schema: {
|
|
3116
|
+
type: 'string'
|
|
3117
|
+
}
|
|
3118
|
+
};
|
|
3119
|
+
exports.$ResultFilter = {
|
|
3120
|
+
name: 'result',
|
|
3121
|
+
description: 'filter on jobs containing those result as a json subset (@> in postgres)',
|
|
3122
|
+
in: 'query',
|
|
3123
|
+
schema: {
|
|
3124
|
+
type: 'string'
|
|
3125
|
+
}
|
|
3126
|
+
};
|
|
3127
|
+
exports.$After = {
|
|
3128
|
+
name: 'after',
|
|
3129
|
+
description: 'filter on created after (exclusive) timestamp',
|
|
3130
|
+
in: 'query',
|
|
3131
|
+
schema: {
|
|
3132
|
+
type: 'string',
|
|
3133
|
+
format: 'date-time'
|
|
3134
|
+
}
|
|
3135
|
+
};
|
|
3136
|
+
exports.$Before = {
|
|
3137
|
+
name: 'before',
|
|
3138
|
+
description: 'filter on created before (exclusive) timestamp',
|
|
3139
|
+
in: 'query',
|
|
3140
|
+
schema: {
|
|
3141
|
+
type: 'string',
|
|
3142
|
+
format: 'date-time'
|
|
3143
|
+
}
|
|
3144
|
+
};
|
|
3145
|
+
exports.$Username = {
|
|
3146
|
+
name: 'username',
|
|
3147
|
+
description: 'filter on exact username of user',
|
|
3148
|
+
in: 'query',
|
|
3149
|
+
schema: {
|
|
3150
|
+
type: 'string'
|
|
3151
|
+
}
|
|
3152
|
+
};
|
|
3153
|
+
exports.$Operation = {
|
|
3154
|
+
name: 'operation',
|
|
3155
|
+
description: 'filter on exact or prefix name of operation',
|
|
3156
|
+
in: 'query',
|
|
3157
|
+
schema: {
|
|
3158
|
+
type: 'string'
|
|
3159
|
+
}
|
|
3160
|
+
};
|
|
3161
|
+
exports.$ResourceName = {
|
|
3162
|
+
name: 'resource',
|
|
3163
|
+
description: 'filter on exact or prefix name of resource',
|
|
3164
|
+
in: 'query',
|
|
3165
|
+
schema: {
|
|
3166
|
+
type: 'string'
|
|
3167
|
+
}
|
|
3168
|
+
};
|
|
3169
|
+
exports.$ActionKind = {
|
|
3170
|
+
name: 'action_kind',
|
|
3171
|
+
description: 'filter on type of operation',
|
|
3172
|
+
in: 'query',
|
|
3173
|
+
schema: {
|
|
3174
|
+
type: 'string',
|
|
3175
|
+
enum: ['Create', 'Update', 'Delete', 'Execute']
|
|
3176
|
+
}
|
|
3177
|
+
};
|
|
3178
|
+
exports.$JobKinds = {
|
|
3179
|
+
name: 'job_kinds',
|
|
3180
|
+
description: "filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,",
|
|
3181
|
+
in: 'query',
|
|
3182
|
+
schema: {
|
|
3183
|
+
type: 'string'
|
|
3184
|
+
}
|
|
3185
|
+
};
|
|
3186
|
+
exports.$RunnableId = {
|
|
3187
|
+
name: 'runnable_id',
|
|
3188
|
+
in: 'query',
|
|
3189
|
+
schema: {
|
|
3190
|
+
type: 'string'
|
|
3191
|
+
}
|
|
3192
|
+
};
|
|
3193
|
+
exports.$RunnableTypeQuery = {
|
|
3194
|
+
name: 'runnable_type',
|
|
3195
|
+
in: 'query',
|
|
3196
|
+
schema: {
|
|
3197
|
+
'$ref': '#/components/schemas/RunnableType'
|
|
3198
|
+
}
|
|
3199
|
+
};
|
|
3200
|
+
exports.$InputId = {
|
|
3201
|
+
name: 'input',
|
|
3202
|
+
in: 'path',
|
|
3203
|
+
required: true,
|
|
3204
|
+
schema: {
|
|
3205
|
+
type: 'string'
|
|
3206
|
+
}
|
|
3207
|
+
};
|
|
3208
|
+
exports.$GetStarted = {
|
|
3209
|
+
name: 'get_started',
|
|
3210
|
+
in: 'query',
|
|
3211
|
+
schema: {
|
|
3212
|
+
type: 'boolean'
|
|
3213
|
+
}
|
|
3214
|
+
};
|
|
3215
|
+
exports.$ConcurrencyId = {
|
|
3216
|
+
name: 'concurrency_id',
|
|
3217
|
+
in: 'path',
|
|
3218
|
+
required: true,
|
|
3219
|
+
schema: {
|
|
3220
|
+
type: 'string'
|
|
3221
|
+
}
|
|
3222
|
+
};
|