windmill-utils-internal 1.3.3 → 1.3.5
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/cjs/config/config.js +16 -113
- package/dist/cjs/gen/core/OpenAPI.js +1 -1
- package/dist/cjs/gen/services.gen.d.ts +336 -92
- package/dist/cjs/gen/services.gen.js +681 -158
- package/dist/cjs/gen/types.gen.d.ts +2095 -301
- package/dist/cjs/inline-scripts/extractor.d.ts +6 -4
- package/dist/cjs/inline-scripts/extractor.js +10 -3
- package/dist/cjs/inline-scripts/replacer.d.ts +28 -1
- package/dist/cjs/inline-scripts/replacer.js +134 -0
- package/dist/cjs/parse/parse-schema.js +4 -0
- package/dist/cjs/path-utils/path-assigner.js +2 -0
- package/dist/esm/config/config.js +13 -77
- package/dist/esm/gen/core/OpenAPI.js +1 -1
- package/dist/esm/gen/services.gen.d.ts +336 -92
- package/dist/esm/gen/services.gen.js +638 -141
- package/dist/esm/gen/types.gen.d.ts +2095 -301
- package/dist/esm/inline-scripts/extractor.d.ts +6 -4
- package/dist/esm/inline-scripts/extractor.js +10 -3
- package/dist/esm/inline-scripts/replacer.d.ts +28 -1
- package/dist/esm/inline-scripts/replacer.js +131 -0
- package/dist/esm/parse/parse-schema.js +4 -0
- package/dist/esm/path-utils/path-assigner.js +2 -0
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.mcpOauthCallback = exports.startMcpOauthPopup = exports.discoverMcpOauth = exports.listMcpTools = exports.listAssetsByUsage = exports.listAssets = exports.clearIndex = exports.countSearchLogsIndex = exports.searchLogsIndex = exports.searchJobsIndex = exports.listExtendedJobs = exports.getConcurrencyKey = void 0;
|
|
4
|
+
exports.getCriticalAlerts = exports.testCriticalChannels = exports.testSmtp = exports.getLocal = exports.setGlobal = exports.getGlobal = exports.setupCustomInstanceDb = exports.listCustomInstanceDbs = exports.refreshCustomInstanceUserPwd = exports.existsUsername = exports.existsWorkspace = exports.createWorkspaceFork = exports.createWorkspaceForkGitBranch = exports.createWorkspace = exports.listWorkspacesAsSuperAdmin = exports.getWorkspaceAsSuperAdmin = exports.listUserWorkspaces = exports.isDomainAllowed = exports.listWorkspaces = exports.getGlobalConnectedRepositories = exports.convertUserToGroup = exports.deleteUser = exports.submitOnboardingData = exports.globalUsersExport = exports.globalUsersOverwrite = exports.globalUserDelete = exports.globalUserRename = exports.globalUsernameInfo = exports.globalUserUpdate = exports.createUserGlobally = exports.setLoginTypeForUser = exports.setPasswordForUser = exports.setPassword = exports.isOwnerOfPath = exports.updateUser = exports.getUser = exports.resetPassword = exports.requestPasswordReset = exports.isSmtpConfigured = exports.logout = exports.login = exports.listAuditLogs = exports.getAuditLog = exports.getOpenApiYaml = exports.queryDocumentation = exports.getLicenseId = exports.backendUptodate = exports.getHealthDetailed = exports.getHealthStatus = exports.backendVersion = void 0;
|
|
5
|
+
exports.updateOperatorSettings = exports.whois = exports.changeWorkspaceColor = exports.changeWorkspaceId = exports.changeWorkspaceName = exports.getWorkspaceName = exports.leaveWorkspace = exports.deleteWorkspace = exports.unarchiveWorkspace = exports.archiveWorkspace = exports.deleteInvite = exports.addUser = exports.inviteUser = exports.declineInvite = exports.acceptInvite = exports.getGhesConfig = exports.ghesInstallationCallback = exports.importInstallation = exports.exportInstallation = exports.deleteFromWorkspace = exports.installFromWorkspace = exports.getGithubAppToken = exports.whoami = exports.listWorkspaceInvites = exports.globalWhoami = exports.getRunnable = exports.getUsage = exports.leaveInstance = exports.updateTutorialProgress = exports.getTutorialProgress = exports.refreshUserToken = exports.getCurrentEmail = exports.migrateSecretsToDatabase = exports.migrateSecretsToVault = exports.testSecretBackend = exports.getJwks = exports.getMinKeepAliveVersion = exports.setInstanceConfig = exports.getInstanceConfig = exports.listGlobalSettings = exports.testMetadata = exports.createCustomerPortalSession = exports.renewLicenseKey = exports.getLatestKeyRenewalAttempt = exports.getStats = exports.sendStats = exports.testObjectStorageConfig = exports.testLicenseKey = exports.acknowledgeAllCriticalAlerts = exports.acknowledgeCriticalAlert = void 0;
|
|
6
|
+
exports.getWorkspaceDefaultApp = exports.setWorkspaceEncryptionKey = exports.getWorkspaceEncryptionKey = exports.setEnvironmentVariable = exports.getDefaultScripts = exports.editDefaultScripts = exports.editWorkspaceDefaultApp = exports.editWorkspaceDeployUiSettings = exports.deleteGitSyncRepository = exports.editGitSyncRepository = exports.editWorkspaceGitSyncConfig = exports.editDataTableConfig = exports.editDucklakeConfig = exports.listDataTableSchemas = exports.listDataTables = exports.listDucklakes = exports.editLargeFileStorageConfig = exports.editSuccessHandler = exports.editErrorHandler = exports.getCopilotInfo = exports.editCopilotConfig = exports.editWebhook = exports.editInstanceGroups = exports.editAutoInvite = exports.editDeployTo = exports.runTeamsMessageTestJob = exports.runSlackMessageTestJob = exports.connectTeams = exports.listAvailableTeamsChannels = exports.listAvailableTeamsIds = exports.editTeamsCommand = exports.deleteWorkspaceSlackOauthConfig = exports.setWorkspaceSlackOauthConfig = exports.getWorkspaceSlackOauthConfig = exports.editSlackCommand = exports.getDependencyMap = exports.getDependentsAmounts = exports.getDependents = exports.rebuildDependencyMap = exports.setThresholdAlert = exports.getThresholdAlert = exports.getPremiumInfo = exports.getIsPremium = exports.getDeployTo = exports.getSettings = exports.listPendingInvites = exports.listUsersAsSuperAdmin = exports.existsEmail = exports.resetDiffTally = exports.compareWorkspaces = void 0;
|
|
7
|
+
exports.deleteResourcesBulk = exports.deleteResource = exports.createResource = exports.sendMessageToConversation = exports.getOauthConnect = exports.listOauthConnects = exports.listOauthLogins = exports.disconnectTeams = exports.disconnectSlack = exports.disconnectAccount = exports.refreshToken = exports.connectClientCredentials = exports.createAccount = exports.connectCallback = exports.connectSlackCallbackInstance = exports.connectSlackCallback = exports.loginWithOauth = exports.setPublicAppRateLimit = exports.logAiChat = exports.deleteProtectionRule = exports.updateProtectionRule = exports.createProtectionRule = exports.listProtectionRules = exports.workspaceMuteCriticalAlertsUi = exports.workspaceAcknowledgeAllCriticalAlerts = exports.workspaceAcknowledgeCriticalAlert = exports.workspaceGetCriticalAlerts = exports.getSecondaryStorageNames = exports.listContextualVariables = exports.listVariable = exports.existsVariable = exports.getVariableValue = exports.getVariable = exports.updateVariable = exports.deleteVariablesBulk = exports.deleteVariable = exports.encryptValue = exports.createVariable = exports.getOidcToken = exports.listTokens = exports.deleteToken = exports.createTokenImpersonate = exports.createToken = exports.listAvailableScopes = exports.usernameToEmail = exports.listUsernames = exports.listUsersUsage = exports.listUsers = exports.getUsedTriggers = exports.getWorkspaceUsage = void 0;
|
|
8
|
+
exports.deleteWorkspaceDependencies = exports.archiveWorkspaceDependencies = exports.createWorkspaceDependencies = exports.isDefaultTagsPerWorkspace = exports.geDefaultTags = exports.getCustomTagsForWorkspace = exports.getCustomTags = exports.toggleWorkspaceErrorHandlerForScript = exports.createScript = exports.deleteDraft = exports.createDraft = exports.listScriptPaths = exports.listScripts = exports.listSearchScript = exports.queryHubScripts = exports.getTopHubScripts = exports.pickHubScriptByPath = exports.getHubScriptByPath = exports.getHubScriptContentByPath = exports.getPublicAppByCustomPath = exports.getHubRawAppById = exports.getHubAppById = exports.listHubApps = exports.getHubFlowById = exports.listHubFlows = exports.listHubIntegrations = exports.queryResourceTypes = exports.getNpmPackageFile = exports.getNpmPackageFiletree = exports.resolveNpmPackageVersion = exports.getNpmPackageMetadata = exports.listResourceTypeNames = exports.listResourceType = exports.existsResourceType = exports.getResourceType = exports.updateResourceType = exports.deleteResourceType = exports.fileResourceTypeToFileExtMap = exports.createResourceType = exports.listResourceNames = exports.getMcpTools = exports.listSearchResource = exports.listResource = exports.existsResource = exports.getGitCommitHash = exports.getResourceValue = exports.getResourceValueInterpolated = exports.getResource = exports.updateResourceValue = exports.updateResource = void 0;
|
|
9
|
+
exports.toggleWorkspaceErrorHandlerForFlow = exports.listTokensOfFlow = exports.getTriggersCountOfFlow = exports.getFlowDeploymentStatus = exports.getFlowByPath = exports.updateFlowHistory = exports.getFlowVersion = exports.listFlowPathsFromWorkspaceRunnable = exports.getFlowLatestVersion = exports.getFlowHistory = exports.listFlows = exports.listSearchFlow = exports.listFlowPaths = exports.resultById = exports.runAndStreamScriptByHashGet = exports.runAndStreamScriptByHash = exports.runAndStreamScriptByPathGet = exports.runAndStreamScriptByPath = exports.runAndStreamFlowByVersionGet = exports.runAndStreamFlowByVersion = exports.runAndStreamFlowByPathGet = exports.runAndStreamFlowByPath = exports.runWaitResultFlowByVersionGet = exports.runWaitResultFlowByVersion = exports.runWaitResultFlowByPath = exports.runWaitResultScriptByPathGet = exports.runWaitResultScriptByPath = exports.runScriptByPath = exports.listSelectedJobGroups = exports.getScriptDeploymentStatus = exports.rawScriptByHash = exports.getScriptByHash = exports.existsScriptByPath = exports.rawScriptByPathTokened = exports.rawScriptByPath = exports.updateScriptHistory = exports.getScriptLatestVersion = exports.listScriptPathsFromWorkspaceRunnable = exports.getScriptHistoryByPath = exports.getScriptByPathWithDraft = exports.listTokensOfScript = exports.getTriggersCountOfScript = exports.getScriptByPath = exports.deleteScriptsBulk = exports.deleteScriptByPath = exports.deleteScriptByHash = exports.archiveScriptByHash = exports.archiveScriptByPath = exports.getLatestWorkspaceDependencies = exports.listWorkspaceDependencies = void 0;
|
|
10
|
+
exports.runFlowPreviewAndWaitResult = exports.runFlowPreview = exports.runRawScriptDependencies = exports.runCodeWorkflowTask = exports.runScriptPreviewAndWaitResult = exports.runScriptByHashInline = exports.runScriptByPathInline = exports.runScriptPreviewInline = exports.runScriptPreview = exports.runScriptByHash = exports.restartFlowAtStep = exports.batchReRunJobs = exports.runFlowByVersion = exports.runFlowByPath = exports.deleteS3FileFromApp = exports.uploadS3FileFromApp = exports.executeComponent = exports.signS3Objects = exports.customPathExists = exports.updateAppRaw = exports.updateApp = exports.deleteApp = exports.getAppByVersion = exports.getPublicSecretOfLatestVersionOfApp = exports.getPublicSecretOfApp = exports.getPublicResource = exports.getPublicAppBySecret = exports.updateAppHistory = exports.listAppPathsFromWorkspaceRunnable = exports.getAppLatestVersion = exports.getAppHistoryByPath = exports.getAppByPathWithDraft = exports.getAppLiteByPath = exports.getAppByPath = exports.existsApp = exports.createAppRaw = exports.createApp = exports.listApps = exports.listSearchApp = exports.getRawAppData = exports.listRawApps = exports.listConversationMessages = exports.deleteFlowConversation = exports.listFlowConversations = exports.deleteFlowByPath = exports.archiveFlowByPath = exports.updateFlow = exports.createFlow = exports.existsFlowByPath = exports.getFlowByPathWithDraft = void 0;
|
|
11
|
+
exports.cancelSuspendedJobGet = exports.resumeSuspendedFlowAsOwner = exports.getFlowUserState = exports.setFlowUserState = exports.resumeSuspendedJobPost = exports.resumeSuspendedJobGet = exports.getTeamsApprovalPayload = exports.getSlackApprovalPayload = exports.getResumeUrls = exports.createJobSignature = exports.getScheduledFor = exports.getQueuePosition = exports.forceCancelQueuedJob = exports.cancelPersistentQueuedJobs = exports.cancelQueuedJob = exports.deleteCompletedJob = exports.getCompletedJobTiming = exports.getCompletedJobResultMaybe = exports.getCompletedJobResult = exports.getCompletedJob = exports.getFlowDebugInfo = exports.getLogFileFromStore = exports.getJobUpdatesSse = exports.getJobUpdates = exports.getStartedAtByIds = exports.getJobArgs = exports.getCompletedJobLogsTail = exports.getJobLogs = exports.getRootJobId = exports.getJob = exports.countJobsByTag = exports.getDbClock = exports.listJobs = exports.deleteJobs = exports.importQueuedJobs = exports.exportQueuedJobs = exports.importCompletedJobs = exports.exportCompletedJobs = exports.listCompletedJobs = exports.cancelSuspendedTriggerJobs = exports.resumeSuspendedTriggerJobs = exports.getJobOtelTraces = exports.cancelSelection = exports.listFilteredQueueUuids = exports.listFilteredJobsUuids = exports.countCompletedJobs = exports.getCompletedCount = exports.getQueueCount = exports.listQueue = exports.runDynamicSelect = void 0;
|
|
12
|
+
exports.createSqsTrigger = exports.testNatsConnection = exports.setNatsTriggerMode = exports.existsNatsTrigger = exports.listNatsTriggers = exports.getNatsTrigger = exports.deleteNatsTrigger = exports.updateNatsTrigger = exports.createNatsTrigger = exports.commitKafkaOffsets = exports.resetKafkaOffsets = exports.testKafkaConnection = exports.setKafkaTriggerMode = exports.existsKafkaTrigger = exports.listKafkaTriggers = exports.getKafkaTrigger = exports.deleteKafkaTrigger = exports.updateKafkaTrigger = exports.createKafkaTrigger = exports.testWebsocketConnection = exports.setWebsocketTriggerMode = exports.existsWebsocketTrigger = exports.listWebsocketTriggers = exports.getWebsocketTrigger = exports.deleteWebsocketTrigger = exports.updateWebsocketTrigger = exports.createWebsocketTrigger = exports.setHttpTriggerMode = exports.existsRoute = exports.existsHttpTrigger = exports.listHttpTriggers = exports.getHttpTrigger = exports.deleteHttpTrigger = exports.updateHttpTrigger = exports.createHttpTrigger = exports.createHttpTriggers = exports.downloadOpenapiSpec = exports.generateOpenapiSpec = exports.setDefaultErrorOrRecoveryHandler = exports.listSchedulesWithJobs = exports.listSchedules = exports.existsSchedule = exports.getSchedule = exports.deleteSchedule = exports.setScheduleEnabled = exports.updateSchedule = exports.createSchedule = exports.previewSchedule = exports.getSuspendedJobFlow = exports.cancelSuspendedJobPost = void 0;
|
|
13
|
+
exports.getTemplateScript = exports.createTemplateScript = exports.isValidPostgresConfiguration = exports.getPostgresVersion = exports.listAllTgoogleTopicSubscriptions = exports.listGoogleTopics = exports.deleteGcpSubscription = exports.testGcpConnection = exports.setGcpTriggerMode = exports.existsGcpTrigger = exports.listGcpTriggers = exports.getGcpTrigger = exports.deleteGcpTrigger = exports.updateGcpTrigger = exports.createGcpTrigger = exports.testMqttConnection = exports.setMqttTriggerMode = exports.existsMqttTrigger = exports.listMqttTriggers = exports.getMqttTrigger = exports.deleteMqttTrigger = exports.updateMqttTrigger = exports.createMqttTrigger = exports.nativeTriggerWebhook = exports.listGoogleSharedDrives = exports.listGoogleDriveFiles = exports.listGoogleCalendars = exports.listNextCloudEvents = exports.syncNativeTriggers = exports.existsNativeTrigger = exports.listNativeTriggers = exports.deleteNativeTrigger = exports.getNativeTrigger = exports.updateNativeTrigger = exports.createNativeTrigger = exports.nativeTriggerServiceCallback = exports.deleteNativeTriggerService = exports.generateInstanceConnectUrl = exports.checkInstanceSharingAvailable = exports.generateNativeTriggerServiceConnectUrl = exports.createNativeTriggerService = exports.checkIfNativeTriggersServiceExists = exports.listNativeTriggerServices = exports.testSqsConnection = exports.setSqsTriggerMode = exports.existsSqsTrigger = exports.listSqsTriggers = exports.getSqsTrigger = exports.deleteSqsTrigger = exports.updateSqsTrigger = void 0;
|
|
14
|
+
exports.existsFolder = exports.getFolder = exports.deleteFolder = exports.updateFolder = exports.createFolder = exports.listFolderNames = exports.listFolders = exports.getGroupPermissionHistory = exports.removeUserToGroup = exports.addUserToGroup = exports.getGroup = exports.deleteGroup = exports.updateGroup = exports.createGroup = exports.listGroupNames = exports.listGroups = exports.overwriteInstanceGroups = exports.exportInstanceGroups = exports.removeUserFromInstanceGroup = exports.addUserToInstanceGroup = exports.deleteInstanceGroup = exports.updateInstanceGroup = exports.createInstanceGroup = exports.getInstanceGroup = exports.listInstanceGroupsWithWorkspaces = exports.listInstanceGroups = exports.setEmailTriggerMode = exports.existsEmailLocalPart = exports.existsEmailTrigger = exports.listEmailTriggers = exports.getEmailTrigger = exports.deleteEmailTrigger = exports.updateEmailTrigger = exports.createEmailTrigger = exports.testPostgresConnection = exports.setPostgresTriggerMode = exports.existsPostgresTrigger = exports.listPostgresTriggers = exports.getPostgresTrigger = exports.deletePostgresTrigger = exports.updatePostgresTrigger = exports.createPostgresTrigger = exports.deletePostgresPublication = exports.updatePostgresPublication = exports.createPostgresPublication = exports.getPostgresPublication = exports.listPostgresPublication = exports.deletePostgresReplicationSlot = exports.createPostgresReplicationSlot = exports.listPostgresReplicationSlot = void 0;
|
|
15
|
+
exports.listGitRepoFiles = exports.loadFilePreview = exports.loadFileMetadata = exports.listStoredFiles = exports.datasetStorageTestConnection = exports.s3ResourceInfo = exports.polarsConnectionSettingsV2 = exports.polarsConnectionSettings = exports.duckdbConnectionSettingsV2 = exports.duckdbConnectionSettings = exports.deleteInput = exports.updateInput = exports.createInput = exports.listInputs = exports.getArgsFromHistoryOrSavedInput = exports.getInputHistory = exports.unstar = exports.star = exports.deleteCapture = exports.getCapture = exports.moveCapturesAndConfigs = exports.listCaptures = exports.getCaptureConfigs = exports.pingCaptureConfig = exports.setCaptureConfig = exports.removeGranularAcls = exports.addGranularAcls = exports.getGranularAcls = exports.getMinVersion = exports.listBlacklistedAgentTokens = exports.removeBlacklistAgentToken = exports.blacklistAgentToken = exports.createAgentToken = exports.listAvailablePythonVersions = exports.nativeKubernetesAutoscalingHealthcheck = exports.listAutoscalingEvents = exports.listConfigs = exports.deleteConfig = exports.updateConfig = exports.getConfig = exports.listWorkerGroups = exports.getCountsOfRunningJobsPerTag = exports.getCountsOfJobsWaitingPerTag = exports.getQueueMetrics = exports.existsWorkersWithTags = exports.listWorkers = exports.getFolderPermissionHistory = exports.removeOwnerToFolder = exports.addOwnerToFolder = exports.getFolderUsage = void 0;
|
|
16
|
+
exports.mcpOauthCallback = exports.startMcpOauthPopup = exports.discoverMcpOauth = exports.listMcpTools = exports.deleteVolume = exports.createVolume = exports.getVolumeStorage = exports.listVolumes = exports.listFavoriteAssets = exports.listAssetsByUsage = exports.listAssets = exports.getIndexerStatus = exports.getIndexStorageSizes = exports.clearIndex = exports.countSearchLogsIndex = exports.searchLogsIndex = exports.searchJobsIndex = exports.listExtendedJobs = exports.getConcurrencyKey = exports.deleteConcurrencyGroup = exports.listConcurrencyGroups = exports.getLogFile = exports.listLogFiles = exports.getJobProgress = exports.setJobProgress = exports.getJobMetrics = exports.fileDownloadParquetAsCsv = exports.fileDownload = exports.gitRepoViewerFileUpload = exports.fileUpload = exports.moveS3File = exports.deleteS3File = exports.loadCsvPreview = exports.loadTableRowCount = exports.loadParquetPreview = exports.checkS3FolderExists = exports.loadGitRepoFileMetadata = exports.loadGitRepoFilePreview = void 0;
|
|
17
17
|
const OpenAPI_1 = require("./core/OpenAPI");
|
|
18
18
|
const request_1 = require("./core/request");
|
|
19
19
|
/**
|
|
@@ -28,6 +28,50 @@ const backendVersion = () => {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
exports.backendVersion = backendVersion;
|
|
31
|
+
/**
|
|
32
|
+
* health status
|
|
33
|
+
* Health status endpoint. Returns cached health status (database connectivity, worker count).
|
|
34
|
+
* Cache TTL is fixed at 5 seconds. Use force=true query parameter to bypass cache.
|
|
35
|
+
* Note: This endpoint is intentionally different from Kubernetes probes to avoid confusion.
|
|
36
|
+
* For k8s liveness/readiness probes, use /version endpoint.
|
|
37
|
+
*
|
|
38
|
+
* @param data The data for the request.
|
|
39
|
+
* @param data.force Force a fresh check, bypassing the cache
|
|
40
|
+
* @returns HealthStatusResponse server is healthy or degraded
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
const getHealthStatus = (data = {}) => {
|
|
44
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
45
|
+
method: 'GET',
|
|
46
|
+
url: '/health/status',
|
|
47
|
+
query: {
|
|
48
|
+
force: data.force
|
|
49
|
+
},
|
|
50
|
+
errors: {
|
|
51
|
+
503: 'server is unhealthy (database unreachable)'
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
exports.getHealthStatus = getHealthStatus;
|
|
56
|
+
/**
|
|
57
|
+
* detailed health status
|
|
58
|
+
* Returns detailed health information including database pool stats, worker details, and queue status.
|
|
59
|
+
* Requires authentication. Use for monitoring dashboards and debugging.
|
|
60
|
+
* This endpoint always returns fresh data (no caching).
|
|
61
|
+
*
|
|
62
|
+
* @returns DetailedHealthResponse server is healthy or degraded
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
const getHealthDetailed = () => {
|
|
66
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
67
|
+
method: 'GET',
|
|
68
|
+
url: '/health/detailed',
|
|
69
|
+
errors: {
|
|
70
|
+
503: 'server is unhealthy (database unreachable)'
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
exports.getHealthDetailed = getHealthDetailed;
|
|
31
75
|
/**
|
|
32
76
|
* is backend up to date
|
|
33
77
|
* @returns string is backend up to date
|
|
@@ -906,6 +950,18 @@ const sendStats = () => {
|
|
|
906
950
|
});
|
|
907
951
|
};
|
|
908
952
|
exports.sendStats = sendStats;
|
|
953
|
+
/**
|
|
954
|
+
* get telemetry stats with HMAC signature (EE only)
|
|
955
|
+
* @returns unknown telemetry stats JSON with signature
|
|
956
|
+
* @throws ApiError
|
|
957
|
+
*/
|
|
958
|
+
const getStats = () => {
|
|
959
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
960
|
+
method: 'GET',
|
|
961
|
+
url: '/settings/get_stats'
|
|
962
|
+
});
|
|
963
|
+
};
|
|
964
|
+
exports.getStats = getStats;
|
|
909
965
|
/**
|
|
910
966
|
* get latest key renewal attempt
|
|
911
967
|
* @returns unknown status
|
|
@@ -980,6 +1036,34 @@ const listGlobalSettings = () => {
|
|
|
980
1036
|
});
|
|
981
1037
|
};
|
|
982
1038
|
exports.listGlobalSettings = listGlobalSettings;
|
|
1039
|
+
/**
|
|
1040
|
+
* get full instance config (global settings + worker configs)
|
|
1041
|
+
* @returns InstanceConfig full instance configuration
|
|
1042
|
+
* @throws ApiError
|
|
1043
|
+
*/
|
|
1044
|
+
const getInstanceConfig = () => {
|
|
1045
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1046
|
+
method: 'GET',
|
|
1047
|
+
url: '/settings/instance_config'
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
exports.getInstanceConfig = getInstanceConfig;
|
|
1051
|
+
/**
|
|
1052
|
+
* update instance config (bulk upsert, no deletes). Empty or missing global_settings/worker_configs are skipped.
|
|
1053
|
+
* @param data The data for the request.
|
|
1054
|
+
* @param data.requestBody full instance configuration to apply
|
|
1055
|
+
* @returns string instance config updated
|
|
1056
|
+
* @throws ApiError
|
|
1057
|
+
*/
|
|
1058
|
+
const setInstanceConfig = (data) => {
|
|
1059
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1060
|
+
method: 'PUT',
|
|
1061
|
+
url: '/settings/instance_config',
|
|
1062
|
+
body: data.requestBody,
|
|
1063
|
+
mediaType: 'application/json'
|
|
1064
|
+
});
|
|
1065
|
+
};
|
|
1066
|
+
exports.setInstanceConfig = setInstanceConfig;
|
|
983
1067
|
/**
|
|
984
1068
|
* get minimum worker versions required to stay alive
|
|
985
1069
|
* @returns unknown minimum keep-alive versions for workers and agents
|
|
@@ -1287,6 +1371,40 @@ const importInstallation = (data) => {
|
|
|
1287
1371
|
});
|
|
1288
1372
|
};
|
|
1289
1373
|
exports.importInstallation = importInstallation;
|
|
1374
|
+
/**
|
|
1375
|
+
* GHES installation callback
|
|
1376
|
+
* Register a self-managed GitHub App installation from GitHub Enterprise Server
|
|
1377
|
+
* @param data The data for the request.
|
|
1378
|
+
* @param data.workspace
|
|
1379
|
+
* @param data.requestBody
|
|
1380
|
+
* @returns unknown GHES installation registered successfully
|
|
1381
|
+
* @throws ApiError
|
|
1382
|
+
*/
|
|
1383
|
+
const ghesInstallationCallback = (data) => {
|
|
1384
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1385
|
+
method: 'POST',
|
|
1386
|
+
url: '/w/{workspace}/github_app/ghes_installation_callback',
|
|
1387
|
+
path: {
|
|
1388
|
+
workspace: data.workspace
|
|
1389
|
+
},
|
|
1390
|
+
body: data.requestBody,
|
|
1391
|
+
mediaType: 'application/json'
|
|
1392
|
+
});
|
|
1393
|
+
};
|
|
1394
|
+
exports.ghesInstallationCallback = ghesInstallationCallback;
|
|
1395
|
+
/**
|
|
1396
|
+
* Get GHES app config
|
|
1397
|
+
* Returns the GitHub Enterprise Server app configuration (without private key) for constructing the installation URL
|
|
1398
|
+
* @returns unknown GHES app configuration
|
|
1399
|
+
* @throws ApiError
|
|
1400
|
+
*/
|
|
1401
|
+
const getGhesConfig = () => {
|
|
1402
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1403
|
+
method: 'GET',
|
|
1404
|
+
url: '/github_app/ghes_config'
|
|
1405
|
+
});
|
|
1406
|
+
};
|
|
1407
|
+
exports.getGhesConfig = getGhesConfig;
|
|
1290
1408
|
/**
|
|
1291
1409
|
* accept invite to workspace
|
|
1292
1410
|
* @param data The data for the request.
|
|
@@ -2916,6 +3034,10 @@ exports.existsVariable = existsVariable;
|
|
|
2916
3034
|
* @param data The data for the request.
|
|
2917
3035
|
* @param data.workspace
|
|
2918
3036
|
* @param data.pathStart filter variables by path prefix
|
|
3037
|
+
* @param data.path exact path match filter
|
|
3038
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
3039
|
+
* @param data.value pattern match filter for non-secret variable values (case-insensitive)
|
|
3040
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
2919
3041
|
* @param data.page which page to return (start at 1, default 1)
|
|
2920
3042
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
2921
3043
|
* @returns ListableVariable variable list
|
|
@@ -2930,6 +3052,10 @@ const listVariable = (data) => {
|
|
|
2930
3052
|
},
|
|
2931
3053
|
query: {
|
|
2932
3054
|
path_start: data.pathStart,
|
|
3055
|
+
path: data.path,
|
|
3056
|
+
description: data.description,
|
|
3057
|
+
value: data.value,
|
|
3058
|
+
broad_filter: data.broadFilter,
|
|
2933
3059
|
page: data.page,
|
|
2934
3060
|
per_page: data.perPage
|
|
2935
3061
|
}
|
|
@@ -2957,6 +3083,7 @@ exports.listContextualVariables = listContextualVariables;
|
|
|
2957
3083
|
* get secondary storage names
|
|
2958
3084
|
* @param data The data for the request.
|
|
2959
3085
|
* @param data.workspace
|
|
3086
|
+
* @param data.includeDefault If true, include "_default_" in the list if primary workspace storage is set
|
|
2960
3087
|
* @returns string status
|
|
2961
3088
|
* @throws ApiError
|
|
2962
3089
|
*/
|
|
@@ -2966,6 +3093,9 @@ const getSecondaryStorageNames = (data) => {
|
|
|
2966
3093
|
url: '/w/{workspace}/workspaces/get_secondary_storage_names',
|
|
2967
3094
|
path: {
|
|
2968
3095
|
workspace: data.workspace
|
|
3096
|
+
},
|
|
3097
|
+
query: {
|
|
3098
|
+
include_default: data.includeDefault
|
|
2969
3099
|
}
|
|
2970
3100
|
});
|
|
2971
3101
|
};
|
|
@@ -3051,6 +3181,133 @@ const workspaceMuteCriticalAlertsUi = (data) => {
|
|
|
3051
3181
|
});
|
|
3052
3182
|
};
|
|
3053
3183
|
exports.workspaceMuteCriticalAlertsUi = workspaceMuteCriticalAlertsUi;
|
|
3184
|
+
/**
|
|
3185
|
+
* list all protection rules for a workspace
|
|
3186
|
+
* @param data The data for the request.
|
|
3187
|
+
* @param data.workspace
|
|
3188
|
+
* @returns ProtectionRuleset list of protection rules
|
|
3189
|
+
* @throws ApiError
|
|
3190
|
+
*/
|
|
3191
|
+
const listProtectionRules = (data) => {
|
|
3192
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3193
|
+
method: 'GET',
|
|
3194
|
+
url: '/w/{workspace}/workspaces/protection_rules',
|
|
3195
|
+
path: {
|
|
3196
|
+
workspace: data.workspace
|
|
3197
|
+
}
|
|
3198
|
+
});
|
|
3199
|
+
};
|
|
3200
|
+
exports.listProtectionRules = listProtectionRules;
|
|
3201
|
+
/**
|
|
3202
|
+
* create a new protection rule
|
|
3203
|
+
* @param data The data for the request.
|
|
3204
|
+
* @param data.workspace
|
|
3205
|
+
* @param data.requestBody New protection rule configuration
|
|
3206
|
+
* @returns string protection rule created successfully
|
|
3207
|
+
* @throws ApiError
|
|
3208
|
+
*/
|
|
3209
|
+
const createProtectionRule = (data) => {
|
|
3210
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3211
|
+
method: 'POST',
|
|
3212
|
+
url: '/w/{workspace}/workspaces/protection_rules',
|
|
3213
|
+
path: {
|
|
3214
|
+
workspace: data.workspace
|
|
3215
|
+
},
|
|
3216
|
+
body: data.requestBody,
|
|
3217
|
+
mediaType: 'application/json',
|
|
3218
|
+
errors: {
|
|
3219
|
+
400: 'rule with this name already exists'
|
|
3220
|
+
}
|
|
3221
|
+
});
|
|
3222
|
+
};
|
|
3223
|
+
exports.createProtectionRule = createProtectionRule;
|
|
3224
|
+
/**
|
|
3225
|
+
* update an existing protection rule
|
|
3226
|
+
* @param data The data for the request.
|
|
3227
|
+
* @param data.workspace
|
|
3228
|
+
* @param data.ruleName Name of the protection rule to update
|
|
3229
|
+
* @param data.requestBody Updated protection rule configuration
|
|
3230
|
+
* @returns string protection rule updated successfully
|
|
3231
|
+
* @throws ApiError
|
|
3232
|
+
*/
|
|
3233
|
+
const updateProtectionRule = (data) => {
|
|
3234
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3235
|
+
method: 'POST',
|
|
3236
|
+
url: '/w/{workspace}/workspaces/protection_rules/{rule_name}',
|
|
3237
|
+
path: {
|
|
3238
|
+
workspace: data.workspace,
|
|
3239
|
+
rule_name: data.ruleName
|
|
3240
|
+
},
|
|
3241
|
+
body: data.requestBody,
|
|
3242
|
+
mediaType: 'application/json',
|
|
3243
|
+
errors: {
|
|
3244
|
+
404: 'protection rule not found'
|
|
3245
|
+
}
|
|
3246
|
+
});
|
|
3247
|
+
};
|
|
3248
|
+
exports.updateProtectionRule = updateProtectionRule;
|
|
3249
|
+
/**
|
|
3250
|
+
* delete a protection rule
|
|
3251
|
+
* @param data The data for the request.
|
|
3252
|
+
* @param data.workspace
|
|
3253
|
+
* @param data.ruleName Name of the protection rule to delete
|
|
3254
|
+
* @returns string protection rule deleted successfully
|
|
3255
|
+
* @throws ApiError
|
|
3256
|
+
*/
|
|
3257
|
+
const deleteProtectionRule = (data) => {
|
|
3258
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3259
|
+
method: 'DELETE',
|
|
3260
|
+
url: '/w/{workspace}/workspaces/protection_rules/{rule_name}',
|
|
3261
|
+
path: {
|
|
3262
|
+
workspace: data.workspace,
|
|
3263
|
+
rule_name: data.ruleName
|
|
3264
|
+
},
|
|
3265
|
+
errors: {
|
|
3266
|
+
404: 'protection rule not found'
|
|
3267
|
+
}
|
|
3268
|
+
});
|
|
3269
|
+
};
|
|
3270
|
+
exports.deleteProtectionRule = deleteProtectionRule;
|
|
3271
|
+
/**
|
|
3272
|
+
* log AI chat message
|
|
3273
|
+
* @param data The data for the request.
|
|
3274
|
+
* @param data.workspace
|
|
3275
|
+
* @param data.requestBody
|
|
3276
|
+
* @returns void logged
|
|
3277
|
+
* @throws ApiError
|
|
3278
|
+
*/
|
|
3279
|
+
const logAiChat = (data) => {
|
|
3280
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3281
|
+
method: 'POST',
|
|
3282
|
+
url: '/w/{workspace}/workspaces/log_chat',
|
|
3283
|
+
path: {
|
|
3284
|
+
workspace: data.workspace
|
|
3285
|
+
},
|
|
3286
|
+
body: data.requestBody,
|
|
3287
|
+
mediaType: 'application/json'
|
|
3288
|
+
});
|
|
3289
|
+
};
|
|
3290
|
+
exports.logAiChat = logAiChat;
|
|
3291
|
+
/**
|
|
3292
|
+
* Set public app rate limit for this workspace
|
|
3293
|
+
* @param data The data for the request.
|
|
3294
|
+
* @param data.workspace
|
|
3295
|
+
* @param data.requestBody Public app rate limit configuration
|
|
3296
|
+
* @returns string Successfully updated public app rate limit settings.
|
|
3297
|
+
* @throws ApiError
|
|
3298
|
+
*/
|
|
3299
|
+
const setPublicAppRateLimit = (data) => {
|
|
3300
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3301
|
+
method: 'POST',
|
|
3302
|
+
url: '/w/{workspace}/workspaces/public_app_rate_limit',
|
|
3303
|
+
path: {
|
|
3304
|
+
workspace: data.workspace
|
|
3305
|
+
},
|
|
3306
|
+
body: data.requestBody,
|
|
3307
|
+
mediaType: 'application/json'
|
|
3308
|
+
});
|
|
3309
|
+
};
|
|
3310
|
+
exports.setPublicAppRateLimit = setPublicAppRateLimit;
|
|
3054
3311
|
/**
|
|
3055
3312
|
* login with oauth authorization flow
|
|
3056
3313
|
* @param data The data for the request.
|
|
@@ -3522,6 +3779,10 @@ exports.existsResource = existsResource;
|
|
|
3522
3779
|
* @param data.resourceType resource_types to list from, separated by ',',
|
|
3523
3780
|
* @param data.resourceTypeExclude resource_types to not list from, separated by ',',
|
|
3524
3781
|
* @param data.pathStart filter resources by path prefix
|
|
3782
|
+
* @param data.path exact path match filter
|
|
3783
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
3784
|
+
* @param data.value JSONB subset match filter using base64 encoded JSON
|
|
3785
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
3525
3786
|
* @returns ListableResource resource list
|
|
3526
3787
|
* @throws ApiError
|
|
3527
3788
|
*/
|
|
@@ -3537,7 +3798,11 @@ const listResource = (data) => {
|
|
|
3537
3798
|
per_page: data.perPage,
|
|
3538
3799
|
resource_type: data.resourceType,
|
|
3539
3800
|
resource_type_exclude: data.resourceTypeExclude,
|
|
3540
|
-
path_start: data.pathStart
|
|
3801
|
+
path_start: data.pathStart,
|
|
3802
|
+
path: data.path,
|
|
3803
|
+
description: data.description,
|
|
3804
|
+
value: data.value,
|
|
3805
|
+
broad_filter: data.broadFilter
|
|
3541
3806
|
}
|
|
3542
3807
|
});
|
|
3543
3808
|
};
|
|
@@ -3621,7 +3886,7 @@ exports.createResourceType = createResourceType;
|
|
|
3621
3886
|
* get map from resource type to format extension
|
|
3622
3887
|
* @param data The data for the request.
|
|
3623
3888
|
* @param data.workspace
|
|
3624
|
-
* @returns unknown map from resource type to file
|
|
3889
|
+
* @returns unknown map from resource type to file resource info
|
|
3625
3890
|
* @throws ApiError
|
|
3626
3891
|
*/
|
|
3627
3892
|
const fileResourceTypeToFileExtMap = (data) => {
|
|
@@ -3931,6 +4196,23 @@ const getHubAppById = (data) => {
|
|
|
3931
4196
|
});
|
|
3932
4197
|
};
|
|
3933
4198
|
exports.getHubAppById = getHubAppById;
|
|
4199
|
+
/**
|
|
4200
|
+
* get hub raw app by id
|
|
4201
|
+
* @param data The data for the request.
|
|
4202
|
+
* @param data.id
|
|
4203
|
+
* @returns unknown raw app
|
|
4204
|
+
* @throws ApiError
|
|
4205
|
+
*/
|
|
4206
|
+
const getHubRawAppById = (data) => {
|
|
4207
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
4208
|
+
method: 'GET',
|
|
4209
|
+
url: '/apps/hub/get_raw/{id}',
|
|
4210
|
+
path: {
|
|
4211
|
+
id: data.id
|
|
4212
|
+
}
|
|
4213
|
+
});
|
|
4214
|
+
};
|
|
4215
|
+
exports.getHubRawAppById = getHubRawAppById;
|
|
3934
4216
|
/**
|
|
3935
4217
|
* get public app by custom path
|
|
3936
4218
|
* @param data The data for the request.
|
|
@@ -4067,7 +4349,7 @@ exports.listSearchScript = listSearchScript;
|
|
|
4067
4349
|
* @param data.page which page to return (start at 1, default 1)
|
|
4068
4350
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
4069
4351
|
* @param data.orderDesc order by desc order (default true)
|
|
4070
|
-
* @param data.createdBy
|
|
4352
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
4071
4353
|
* @param data.pathStart mask to filter matching starting path
|
|
4072
4354
|
* @param data.pathExact mask to filter exact matching path
|
|
4073
4355
|
* @param data.firstParentHash mask to filter scripts whom first direct parent has exact hash
|
|
@@ -5447,7 +5729,7 @@ exports.listSearchFlow = listSearchFlow;
|
|
|
5447
5729
|
* @param data.page which page to return (start at 1, default 1)
|
|
5448
5730
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5449
5731
|
* @param data.orderDesc order by desc order (default true)
|
|
5450
|
-
* @param data.createdBy
|
|
5732
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
5451
5733
|
* @param data.pathStart mask to filter matching starting path
|
|
5452
5734
|
* @param data.pathExact mask to filter exact matching path
|
|
5453
5735
|
* @param data.showArchived (default false)
|
|
@@ -5907,7 +6189,7 @@ exports.listConversationMessages = listConversationMessages;
|
|
|
5907
6189
|
* @param data.page which page to return (start at 1, default 1)
|
|
5908
6190
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5909
6191
|
* @param data.orderDesc order by desc order (default true)
|
|
5910
|
-
* @param data.createdBy
|
|
6192
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
5911
6193
|
* @param data.pathStart mask to filter matching starting path
|
|
5912
6194
|
* @param data.pathExact mask to filter exact matching path
|
|
5913
6195
|
* @param data.starredOnly (default false)
|
|
@@ -5935,25 +6217,6 @@ const listRawApps = (data) => {
|
|
|
5935
6217
|
});
|
|
5936
6218
|
};
|
|
5937
6219
|
exports.listRawApps = listRawApps;
|
|
5938
|
-
/**
|
|
5939
|
-
* does an app exisst at path
|
|
5940
|
-
* @param data The data for the request.
|
|
5941
|
-
* @param data.workspace
|
|
5942
|
-
* @param data.path
|
|
5943
|
-
* @returns boolean app exists
|
|
5944
|
-
* @throws ApiError
|
|
5945
|
-
*/
|
|
5946
|
-
const existsRawApp = (data) => {
|
|
5947
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5948
|
-
method: 'GET',
|
|
5949
|
-
url: '/w/{workspace}/raw_apps/exists/{path}',
|
|
5950
|
-
path: {
|
|
5951
|
-
workspace: data.workspace,
|
|
5952
|
-
path: data.path
|
|
5953
|
-
}
|
|
5954
|
-
});
|
|
5955
|
-
};
|
|
5956
|
-
exports.existsRawApp = existsRawApp;
|
|
5957
6220
|
/**
|
|
5958
6221
|
* get raw app data by
|
|
5959
6222
|
* @param data The data for the request.
|
|
@@ -5997,7 +6260,7 @@ exports.listSearchApp = listSearchApp;
|
|
|
5997
6260
|
* @param data.page which page to return (start at 1, default 1)
|
|
5998
6261
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5999
6262
|
* @param data.orderDesc order by desc order (default true)
|
|
6000
|
-
* @param data.createdBy
|
|
6263
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
6001
6264
|
* @param data.pathStart mask to filter matching starting path
|
|
6002
6265
|
* @param data.pathExact mask to filter exact matching path
|
|
6003
6266
|
* @param data.starredOnly (default false)
|
|
@@ -6331,67 +6594,6 @@ const getAppByVersion = (data) => {
|
|
|
6331
6594
|
});
|
|
6332
6595
|
};
|
|
6333
6596
|
exports.getAppByVersion = getAppByVersion;
|
|
6334
|
-
/**
|
|
6335
|
-
* create raw app
|
|
6336
|
-
* @param data The data for the request.
|
|
6337
|
-
* @param data.workspace
|
|
6338
|
-
* @param data.requestBody new raw app
|
|
6339
|
-
* @returns string raw app created
|
|
6340
|
-
* @throws ApiError
|
|
6341
|
-
*/
|
|
6342
|
-
const createRawApp = (data) => {
|
|
6343
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6344
|
-
method: 'POST',
|
|
6345
|
-
url: '/w/{workspace}/raw_apps/create',
|
|
6346
|
-
path: {
|
|
6347
|
-
workspace: data.workspace
|
|
6348
|
-
},
|
|
6349
|
-
body: data.requestBody,
|
|
6350
|
-
mediaType: 'application/json'
|
|
6351
|
-
});
|
|
6352
|
-
};
|
|
6353
|
-
exports.createRawApp = createRawApp;
|
|
6354
|
-
/**
|
|
6355
|
-
* update app
|
|
6356
|
-
* @param data The data for the request.
|
|
6357
|
-
* @param data.workspace
|
|
6358
|
-
* @param data.path
|
|
6359
|
-
* @param data.requestBody updateraw app
|
|
6360
|
-
* @returns string app updated
|
|
6361
|
-
* @throws ApiError
|
|
6362
|
-
*/
|
|
6363
|
-
const updateRawApp = (data) => {
|
|
6364
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6365
|
-
method: 'POST',
|
|
6366
|
-
url: '/w/{workspace}/raw_apps/update/{path}',
|
|
6367
|
-
path: {
|
|
6368
|
-
workspace: data.workspace,
|
|
6369
|
-
path: data.path
|
|
6370
|
-
},
|
|
6371
|
-
body: data.requestBody,
|
|
6372
|
-
mediaType: 'application/json'
|
|
6373
|
-
});
|
|
6374
|
-
};
|
|
6375
|
-
exports.updateRawApp = updateRawApp;
|
|
6376
|
-
/**
|
|
6377
|
-
* delete raw app
|
|
6378
|
-
* @param data The data for the request.
|
|
6379
|
-
* @param data.workspace
|
|
6380
|
-
* @param data.path
|
|
6381
|
-
* @returns string app deleted
|
|
6382
|
-
* @throws ApiError
|
|
6383
|
-
*/
|
|
6384
|
-
const deleteRawApp = (data) => {
|
|
6385
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
6386
|
-
method: 'DELETE',
|
|
6387
|
-
url: '/w/{workspace}/raw_apps/delete/{path}',
|
|
6388
|
-
path: {
|
|
6389
|
-
workspace: data.workspace,
|
|
6390
|
-
path: data.path
|
|
6391
|
-
}
|
|
6392
|
-
});
|
|
6393
|
-
};
|
|
6394
|
-
exports.deleteRawApp = deleteRawApp;
|
|
6395
6597
|
/**
|
|
6396
6598
|
* delete app
|
|
6397
6599
|
* @param data The data for the request.
|
|
@@ -6817,6 +7019,50 @@ const runScriptPreviewInline = (data) => {
|
|
|
6817
7019
|
});
|
|
6818
7020
|
};
|
|
6819
7021
|
exports.runScriptPreviewInline = runScriptPreviewInline;
|
|
7022
|
+
/**
|
|
7023
|
+
* run script by path without starting a new job
|
|
7024
|
+
* @param data The data for the request.
|
|
7025
|
+
* @param data.workspace
|
|
7026
|
+
* @param data.path
|
|
7027
|
+
* @param data.requestBody script args
|
|
7028
|
+
* @returns unknown script result
|
|
7029
|
+
* @throws ApiError
|
|
7030
|
+
*/
|
|
7031
|
+
const runScriptByPathInline = (data) => {
|
|
7032
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
7033
|
+
method: 'POST',
|
|
7034
|
+
url: '/w/{workspace}/jobs/run_inline/p/{path}',
|
|
7035
|
+
path: {
|
|
7036
|
+
workspace: data.workspace,
|
|
7037
|
+
path: data.path
|
|
7038
|
+
},
|
|
7039
|
+
body: data.requestBody,
|
|
7040
|
+
mediaType: 'application/json'
|
|
7041
|
+
});
|
|
7042
|
+
};
|
|
7043
|
+
exports.runScriptByPathInline = runScriptByPathInline;
|
|
7044
|
+
/**
|
|
7045
|
+
* run script by hash without starting a new job
|
|
7046
|
+
* @param data The data for the request.
|
|
7047
|
+
* @param data.workspace
|
|
7048
|
+
* @param data.hash
|
|
7049
|
+
* @param data.requestBody script args
|
|
7050
|
+
* @returns unknown script result
|
|
7051
|
+
* @throws ApiError
|
|
7052
|
+
*/
|
|
7053
|
+
const runScriptByHashInline = (data) => {
|
|
7054
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
7055
|
+
method: 'POST',
|
|
7056
|
+
url: '/w/{workspace}/jobs/run_inline/h/{hash}',
|
|
7057
|
+
path: {
|
|
7058
|
+
workspace: data.workspace,
|
|
7059
|
+
hash: data.hash
|
|
7060
|
+
},
|
|
7061
|
+
body: data.requestBody,
|
|
7062
|
+
mediaType: 'application/json'
|
|
7063
|
+
});
|
|
7064
|
+
};
|
|
7065
|
+
exports.runScriptByHashInline = runScriptByHashInline;
|
|
6820
7066
|
/**
|
|
6821
7067
|
* run script preview and wait for result
|
|
6822
7068
|
* @param data The data for the request.
|
|
@@ -6962,26 +7208,26 @@ exports.runDynamicSelect = runDynamicSelect;
|
|
|
6962
7208
|
* @param data The data for the request.
|
|
6963
7209
|
* @param data.workspace
|
|
6964
7210
|
* @param data.orderDesc order by desc order (default true)
|
|
6965
|
-
* @param data.createdBy
|
|
7211
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
6966
7212
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
6967
|
-
* @param data.worker worker this job
|
|
6968
|
-
* @param data.scriptPathExact
|
|
6969
|
-
* @param data.scriptPathStart
|
|
7213
|
+
* @param data.worker filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
|
|
7214
|
+
* @param data.scriptPathExact filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
|
|
7215
|
+
* @param data.scriptPathStart filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
|
|
6970
7216
|
* @param data.schedulePath mask to filter by schedule path
|
|
6971
|
-
* @param data.triggerPath
|
|
6972
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
7217
|
+
* @param data.triggerPath filter by trigger path. Supports comma-separated list (e.g. 'f/trigger1,f/trigger2') and negation by prefixing all values with '!' (e.g. '!f/trigger1,!f/trigger2')
|
|
7218
|
+
* @param data.triggerKind filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
|
|
6973
7219
|
* @param data.scriptHash mask to filter exact matching path
|
|
6974
7220
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6975
7221
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6976
7222
|
* @param data.success filter on successful jobs
|
|
6977
7223
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6978
|
-
* @param data.jobKinds filter
|
|
7224
|
+
* @param data.jobKinds filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
|
|
6979
7225
|
* @param data.suspended filter on suspended jobs
|
|
6980
7226
|
* @param data.running filter on running jobs
|
|
6981
7227
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6982
7228
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6983
7229
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6984
|
-
* @param data.tag filter
|
|
7230
|
+
* @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
|
|
6985
7231
|
* @param data.page which page to return (start at 1, default 1)
|
|
6986
7232
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6987
7233
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
@@ -7095,12 +7341,12 @@ exports.countCompletedJobs = countCompletedJobs;
|
|
|
7095
7341
|
* get the ids of all jobs matching the given filters
|
|
7096
7342
|
* @param data The data for the request.
|
|
7097
7343
|
* @param data.workspace
|
|
7098
|
-
* @param data.createdBy
|
|
7099
|
-
* @param data.label
|
|
7100
|
-
* @param data.worker worker this job
|
|
7344
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
7345
|
+
* @param data.label filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
|
|
7346
|
+
* @param data.worker filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
|
|
7101
7347
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7102
|
-
* @param data.scriptPathExact
|
|
7103
|
-
* @param data.scriptPathStart
|
|
7348
|
+
* @param data.scriptPathExact filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
|
|
7349
|
+
* @param data.scriptPathStart filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
|
|
7104
7350
|
* @param data.schedulePath mask to filter by schedule path
|
|
7105
7351
|
* @param data.scriptHash mask to filter exact matching path
|
|
7106
7352
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -7113,10 +7359,10 @@ exports.countCompletedJobs = countCompletedJobs;
|
|
|
7113
7359
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
7114
7360
|
* @param data.running filter on running jobs
|
|
7115
7361
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7116
|
-
* @param data.jobKinds filter
|
|
7362
|
+
* @param data.jobKinds filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
|
|
7117
7363
|
* @param data.suspended filter on suspended jobs
|
|
7118
7364
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7119
|
-
* @param data.tag filter
|
|
7365
|
+
* @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
|
|
7120
7366
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7121
7367
|
* @param data.page which page to return (start at 1, default 1)
|
|
7122
7368
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
@@ -7177,23 +7423,23 @@ exports.listFilteredJobsUuids = listFilteredJobsUuids;
|
|
|
7177
7423
|
* @param data The data for the request.
|
|
7178
7424
|
* @param data.workspace
|
|
7179
7425
|
* @param data.orderDesc order by desc order (default true)
|
|
7180
|
-
* @param data.createdBy
|
|
7426
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
7181
7427
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7182
|
-
* @param data.scriptPathExact
|
|
7183
|
-
* @param data.scriptPathStart
|
|
7428
|
+
* @param data.scriptPathExact filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
|
|
7429
|
+
* @param data.scriptPathStart filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
|
|
7184
7430
|
* @param data.schedulePath mask to filter by schedule path
|
|
7185
7431
|
* @param data.scriptHash mask to filter exact matching path
|
|
7186
7432
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
7187
7433
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
7188
7434
|
* @param data.success filter on successful jobs
|
|
7189
7435
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7190
|
-
* @param data.jobKinds filter
|
|
7436
|
+
* @param data.jobKinds filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
|
|
7191
7437
|
* @param data.suspended filter on suspended jobs
|
|
7192
7438
|
* @param data.running filter on running jobs
|
|
7193
7439
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7194
7440
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7195
7441
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7196
|
-
* @param data.tag filter
|
|
7442
|
+
* @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
|
|
7197
7443
|
* @param data.page which page to return (start at 1, default 1)
|
|
7198
7444
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7199
7445
|
* @param data.concurrencyKey
|
|
@@ -7333,22 +7579,22 @@ exports.cancelSuspendedTriggerJobs = cancelSuspendedTriggerJobs;
|
|
|
7333
7579
|
* @param data The data for the request.
|
|
7334
7580
|
* @param data.workspace
|
|
7335
7581
|
* @param data.orderDesc order by desc order (default true)
|
|
7336
|
-
* @param data.createdBy
|
|
7337
|
-
* @param data.label
|
|
7338
|
-
* @param data.worker worker this job
|
|
7582
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
7583
|
+
* @param data.label filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
|
|
7584
|
+
* @param data.worker filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
|
|
7339
7585
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7340
|
-
* @param data.scriptPathExact
|
|
7341
|
-
* @param data.scriptPathStart
|
|
7586
|
+
* @param data.scriptPathExact filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
|
|
7587
|
+
* @param data.scriptPathStart filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
|
|
7342
7588
|
* @param data.schedulePath mask to filter by schedule path
|
|
7343
7589
|
* @param data.scriptHash mask to filter exact matching path
|
|
7344
7590
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
7345
7591
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
7346
7592
|
* @param data.success filter on successful jobs
|
|
7347
|
-
* @param data.jobKinds filter
|
|
7593
|
+
* @param data.jobKinds filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
|
|
7348
7594
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7349
7595
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7350
7596
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7351
|
-
* @param data.tag filter
|
|
7597
|
+
* @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
|
|
7352
7598
|
* @param data.page which page to return (start at 1, default 1)
|
|
7353
7599
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7354
7600
|
* @param data.isSkipped is the job skipped
|
|
@@ -7503,12 +7749,12 @@ exports.deleteJobs = deleteJobs;
|
|
|
7503
7749
|
* list all jobs
|
|
7504
7750
|
* @param data The data for the request.
|
|
7505
7751
|
* @param data.workspace
|
|
7506
|
-
* @param data.createdBy
|
|
7507
|
-
* @param data.label
|
|
7508
|
-
* @param data.worker worker this job
|
|
7752
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
7753
|
+
* @param data.label filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
|
|
7754
|
+
* @param data.worker filter by worker this job ran on. Supports comma-separated list (e.g. 'worker-1,worker-2') and negation by prefixing all values with '!' (e.g. '!worker-1,!worker-2')
|
|
7509
7755
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7510
|
-
* @param data.scriptPathExact
|
|
7511
|
-
* @param data.scriptPathStart
|
|
7756
|
+
* @param data.scriptPathExact filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
|
|
7757
|
+
* @param data.scriptPathStart filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
|
|
7512
7758
|
* @param data.schedulePath mask to filter by schedule path
|
|
7513
7759
|
* @param data.scriptHash mask to filter exact matching path
|
|
7514
7760
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -7521,20 +7767,21 @@ exports.deleteJobs = deleteJobs;
|
|
|
7521
7767
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
7522
7768
|
* @param data.running filter on running jobs
|
|
7523
7769
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7524
|
-
* @param data.jobKinds filter
|
|
7770
|
+
* @param data.jobKinds filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
|
|
7525
7771
|
* @param data.suspended filter on suspended jobs
|
|
7526
7772
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7527
|
-
* @param data.tag filter
|
|
7773
|
+
* @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
|
|
7528
7774
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7529
7775
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7530
7776
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7531
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
7777
|
+
* @param data.triggerKind filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
|
|
7532
7778
|
* @param data.isSkipped is the job skipped
|
|
7533
7779
|
* @param data.isFlowStep is the job a flow step
|
|
7534
7780
|
* @param data.hasNullParent has null parent
|
|
7535
7781
|
* @param data.success filter on successful jobs
|
|
7536
7782
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
7537
7783
|
* @param data.isNotSchedule is not a scheduled job
|
|
7784
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match on path, tag, schedule path, trigger kind, label)
|
|
7538
7785
|
* @returns Job All jobs
|
|
7539
7786
|
* @throws ApiError
|
|
7540
7787
|
*/
|
|
@@ -7577,7 +7824,8 @@ const listJobs = (data) => {
|
|
|
7577
7824
|
has_null_parent: data.hasNullParent,
|
|
7578
7825
|
success: data.success,
|
|
7579
7826
|
all_workspaces: data.allWorkspaces,
|
|
7580
|
-
is_not_schedule: data.isNotSchedule
|
|
7827
|
+
is_not_schedule: data.isNotSchedule,
|
|
7828
|
+
broad_filter: data.broadFilter
|
|
7581
7829
|
}
|
|
7582
7830
|
});
|
|
7583
7831
|
};
|
|
@@ -8117,6 +8365,8 @@ exports.getResumeUrls = getResumeUrls;
|
|
|
8117
8365
|
* @param data.message
|
|
8118
8366
|
* @param data.defaultArgsJson
|
|
8119
8367
|
* @param data.dynamicEnumsJson
|
|
8368
|
+
* @param data.resumeButtonText
|
|
8369
|
+
* @param data.cancelButtonText
|
|
8120
8370
|
* @returns unknown Interactive slack approval message sent successfully
|
|
8121
8371
|
* @throws ApiError
|
|
8122
8372
|
*/
|
|
@@ -8135,7 +8385,9 @@ const getSlackApprovalPayload = (data) => {
|
|
|
8135
8385
|
channel_id: data.channelId,
|
|
8136
8386
|
flow_step_id: data.flowStepId,
|
|
8137
8387
|
default_args_json: data.defaultArgsJson,
|
|
8138
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8388
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8389
|
+
resume_button_text: data.resumeButtonText,
|
|
8390
|
+
cancel_button_text: data.cancelButtonText
|
|
8139
8391
|
}
|
|
8140
8392
|
});
|
|
8141
8393
|
};
|
|
@@ -8152,6 +8404,8 @@ exports.getSlackApprovalPayload = getSlackApprovalPayload;
|
|
|
8152
8404
|
* @param data.message
|
|
8153
8405
|
* @param data.defaultArgsJson
|
|
8154
8406
|
* @param data.dynamicEnumsJson
|
|
8407
|
+
* @param data.resumeButtonText
|
|
8408
|
+
* @param data.cancelButtonText
|
|
8155
8409
|
* @returns unknown Interactive slack approval message sent successfully
|
|
8156
8410
|
* @throws ApiError
|
|
8157
8411
|
*/
|
|
@@ -8170,7 +8424,9 @@ const getTeamsApprovalPayload = (data) => {
|
|
|
8170
8424
|
channel_name: data.channelName,
|
|
8171
8425
|
flow_step_id: data.flowStepId,
|
|
8172
8426
|
default_args_json: data.defaultArgsJson,
|
|
8173
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8427
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8428
|
+
resume_button_text: data.resumeButtonText,
|
|
8429
|
+
cancel_button_text: data.cancelButtonText
|
|
8174
8430
|
}
|
|
8175
8431
|
});
|
|
8176
8432
|
};
|
|
@@ -8531,9 +8787,13 @@ exports.existsSchedule = existsSchedule;
|
|
|
8531
8787
|
* @param data.page which page to return (start at 1, default 1)
|
|
8532
8788
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
8533
8789
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
8534
|
-
* @param data.path filter by path
|
|
8790
|
+
* @param data.path filter by path (script path)
|
|
8535
8791
|
* @param data.isFlow filter schedules by whether they target a flow
|
|
8536
8792
|
* @param data.pathStart filter schedules by path prefix
|
|
8793
|
+
* @param data.schedulePath exact match on the schedule's path
|
|
8794
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
8795
|
+
* @param data.summary pattern match filter for summary field (case-insensitive)
|
|
8796
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
8537
8797
|
* @returns Schedule schedule list
|
|
8538
8798
|
* @throws ApiError
|
|
8539
8799
|
*/
|
|
@@ -8550,7 +8810,11 @@ const listSchedules = (data) => {
|
|
|
8550
8810
|
args: data.args,
|
|
8551
8811
|
path: data.path,
|
|
8552
8812
|
is_flow: data.isFlow,
|
|
8553
|
-
path_start: data.pathStart
|
|
8813
|
+
path_start: data.pathStart,
|
|
8814
|
+
schedule_path: data.schedulePath,
|
|
8815
|
+
description: data.description,
|
|
8816
|
+
summary: data.summary,
|
|
8817
|
+
broad_filter: data.broadFilter
|
|
8554
8818
|
}
|
|
8555
8819
|
});
|
|
8556
8820
|
};
|
|
@@ -9168,6 +9432,47 @@ const testKafkaConnection = (data) => {
|
|
|
9168
9432
|
});
|
|
9169
9433
|
};
|
|
9170
9434
|
exports.testKafkaConnection = testKafkaConnection;
|
|
9435
|
+
/**
|
|
9436
|
+
* reset kafka trigger offsets to earliest
|
|
9437
|
+
* @param data The data for the request.
|
|
9438
|
+
* @param data.workspace
|
|
9439
|
+
* @param data.path
|
|
9440
|
+
* @returns unknown kafka trigger offsets reset successfully
|
|
9441
|
+
* @throws ApiError
|
|
9442
|
+
*/
|
|
9443
|
+
const resetKafkaOffsets = (data) => {
|
|
9444
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9445
|
+
method: 'POST',
|
|
9446
|
+
url: '/w/{workspace}/kafka_triggers/reset_offsets/{path}',
|
|
9447
|
+
path: {
|
|
9448
|
+
workspace: data.workspace,
|
|
9449
|
+
path: data.path
|
|
9450
|
+
}
|
|
9451
|
+
});
|
|
9452
|
+
};
|
|
9453
|
+
exports.resetKafkaOffsets = resetKafkaOffsets;
|
|
9454
|
+
/**
|
|
9455
|
+
* commit kafka offsets for a specific trigger
|
|
9456
|
+
* @param data The data for the request.
|
|
9457
|
+
* @param data.workspace
|
|
9458
|
+
* @param data.path
|
|
9459
|
+
* @param data.requestBody offsets to commit
|
|
9460
|
+
* @returns unknown kafka offsets committed successfully
|
|
9461
|
+
* @throws ApiError
|
|
9462
|
+
*/
|
|
9463
|
+
const commitKafkaOffsets = (data) => {
|
|
9464
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9465
|
+
method: 'POST',
|
|
9466
|
+
url: '/w/{workspace}/kafka_triggers/commit_offsets/{path}',
|
|
9467
|
+
path: {
|
|
9468
|
+
workspace: data.workspace,
|
|
9469
|
+
path: data.path
|
|
9470
|
+
},
|
|
9471
|
+
body: data.requestBody,
|
|
9472
|
+
mediaType: 'application/json'
|
|
9473
|
+
});
|
|
9474
|
+
};
|
|
9475
|
+
exports.commitKafkaOffsets = commitKafkaOffsets;
|
|
9171
9476
|
/**
|
|
9172
9477
|
* create nats trigger
|
|
9173
9478
|
* @param data The data for the request.
|
|
@@ -9588,6 +9893,47 @@ const generateNativeTriggerServiceConnectUrl = (data) => {
|
|
|
9588
9893
|
});
|
|
9589
9894
|
};
|
|
9590
9895
|
exports.generateNativeTriggerServiceConnectUrl = generateNativeTriggerServiceConnectUrl;
|
|
9896
|
+
/**
|
|
9897
|
+
* check if instance-level credential sharing is available for a service
|
|
9898
|
+
* @param data The data for the request.
|
|
9899
|
+
* @param data.workspace
|
|
9900
|
+
* @param data.serviceName
|
|
9901
|
+
* @returns boolean whether instance sharing is available
|
|
9902
|
+
* @throws ApiError
|
|
9903
|
+
*/
|
|
9904
|
+
const checkInstanceSharingAvailable = (data) => {
|
|
9905
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9906
|
+
method: 'GET',
|
|
9907
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/instance_sharing_available',
|
|
9908
|
+
path: {
|
|
9909
|
+
workspace: data.workspace,
|
|
9910
|
+
service_name: data.serviceName
|
|
9911
|
+
}
|
|
9912
|
+
});
|
|
9913
|
+
};
|
|
9914
|
+
exports.checkInstanceSharingAvailable = checkInstanceSharingAvailable;
|
|
9915
|
+
/**
|
|
9916
|
+
* generate connect url using instance-level credentials
|
|
9917
|
+
* @param data The data for the request.
|
|
9918
|
+
* @param data.workspace
|
|
9919
|
+
* @param data.serviceName
|
|
9920
|
+
* @param data.requestBody redirect_uri
|
|
9921
|
+
* @returns string authorization URL using instance credentials
|
|
9922
|
+
* @throws ApiError
|
|
9923
|
+
*/
|
|
9924
|
+
const generateInstanceConnectUrl = (data) => {
|
|
9925
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9926
|
+
method: 'POST',
|
|
9927
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/generate_instance_connect_url',
|
|
9928
|
+
path: {
|
|
9929
|
+
workspace: data.workspace,
|
|
9930
|
+
service_name: data.serviceName
|
|
9931
|
+
},
|
|
9932
|
+
body: data.requestBody,
|
|
9933
|
+
mediaType: 'application/json'
|
|
9934
|
+
});
|
|
9935
|
+
};
|
|
9936
|
+
exports.generateInstanceConnectUrl = generateInstanceConnectUrl;
|
|
9591
9937
|
/**
|
|
9592
9938
|
* delete native trigger service
|
|
9593
9939
|
* @param data The data for the request.
|
|
@@ -9612,21 +9958,17 @@ exports.deleteNativeTriggerService = deleteNativeTriggerService;
|
|
|
9612
9958
|
* @param data The data for the request.
|
|
9613
9959
|
* @param data.workspace
|
|
9614
9960
|
* @param data.serviceName
|
|
9615
|
-
* @param data.
|
|
9616
|
-
* @param data.state
|
|
9617
|
-
* @param data.requestBody redirect_uri
|
|
9961
|
+
* @param data.requestBody OAuth callback data
|
|
9618
9962
|
* @returns string native trigger service oauth completed
|
|
9619
9963
|
* @throws ApiError
|
|
9620
9964
|
*/
|
|
9621
9965
|
const nativeTriggerServiceCallback = (data) => {
|
|
9622
9966
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9623
9967
|
method: 'POST',
|
|
9624
|
-
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback
|
|
9968
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback',
|
|
9625
9969
|
path: {
|
|
9626
9970
|
workspace: data.workspace,
|
|
9627
|
-
service_name: data.serviceName
|
|
9628
|
-
code: data.code,
|
|
9629
|
-
state: data.state
|
|
9971
|
+
service_name: data.serviceName
|
|
9630
9972
|
},
|
|
9631
9973
|
body: data.requestBody,
|
|
9632
9974
|
mediaType: 'application/json'
|
|
@@ -9821,6 +10163,67 @@ const listNextCloudEvents = (data) => {
|
|
|
9821
10163
|
});
|
|
9822
10164
|
};
|
|
9823
10165
|
exports.listNextCloudEvents = listNextCloudEvents;
|
|
10166
|
+
/**
|
|
10167
|
+
* list Google Calendars for the authenticated user
|
|
10168
|
+
* @param data The data for the request.
|
|
10169
|
+
* @param data.workspace
|
|
10170
|
+
* @returns GoogleCalendarEntry list of Google Calendars
|
|
10171
|
+
* @throws ApiError
|
|
10172
|
+
*/
|
|
10173
|
+
const listGoogleCalendars = (data) => {
|
|
10174
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
10175
|
+
method: 'GET',
|
|
10176
|
+
url: '/w/{workspace}/native_triggers/google/calendars',
|
|
10177
|
+
path: {
|
|
10178
|
+
workspace: data.workspace
|
|
10179
|
+
}
|
|
10180
|
+
});
|
|
10181
|
+
};
|
|
10182
|
+
exports.listGoogleCalendars = listGoogleCalendars;
|
|
10183
|
+
/**
|
|
10184
|
+
* list or search Google Drive files
|
|
10185
|
+
* @param data The data for the request.
|
|
10186
|
+
* @param data.workspace
|
|
10187
|
+
* @param data.q search query to filter files by name
|
|
10188
|
+
* @param data.parentId folder ID to list children of
|
|
10189
|
+
* @param data.pageToken token for next page of results
|
|
10190
|
+
* @param data.sharedWithMe if true, list files shared with the user
|
|
10191
|
+
* @returns GoogleDriveFilesResponse list of Google Drive files
|
|
10192
|
+
* @throws ApiError
|
|
10193
|
+
*/
|
|
10194
|
+
const listGoogleDriveFiles = (data) => {
|
|
10195
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
10196
|
+
method: 'GET',
|
|
10197
|
+
url: '/w/{workspace}/native_triggers/google/drive/files',
|
|
10198
|
+
path: {
|
|
10199
|
+
workspace: data.workspace
|
|
10200
|
+
},
|
|
10201
|
+
query: {
|
|
10202
|
+
q: data.q,
|
|
10203
|
+
parent_id: data.parentId,
|
|
10204
|
+
page_token: data.pageToken,
|
|
10205
|
+
shared_with_me: data.sharedWithMe
|
|
10206
|
+
}
|
|
10207
|
+
});
|
|
10208
|
+
};
|
|
10209
|
+
exports.listGoogleDriveFiles = listGoogleDriveFiles;
|
|
10210
|
+
/**
|
|
10211
|
+
* list shared drives accessible to the user
|
|
10212
|
+
* @param data The data for the request.
|
|
10213
|
+
* @param data.workspace
|
|
10214
|
+
* @returns SharedDriveEntry list of shared drives
|
|
10215
|
+
* @throws ApiError
|
|
10216
|
+
*/
|
|
10217
|
+
const listGoogleSharedDrives = (data) => {
|
|
10218
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
10219
|
+
method: 'GET',
|
|
10220
|
+
url: '/w/{workspace}/native_triggers/google/drive/shared_drives',
|
|
10221
|
+
path: {
|
|
10222
|
+
workspace: data.workspace
|
|
10223
|
+
}
|
|
10224
|
+
});
|
|
10225
|
+
};
|
|
10226
|
+
exports.listGoogleSharedDrives = listGoogleSharedDrives;
|
|
9824
10227
|
/**
|
|
9825
10228
|
* receive webhook from external native trigger service
|
|
9826
10229
|
* @param data The data for the request.
|
|
@@ -10865,7 +11268,7 @@ exports.listInstanceGroupsWithWorkspaces = listInstanceGroupsWithWorkspaces;
|
|
|
10865
11268
|
* get instance group
|
|
10866
11269
|
* @param data The data for the request.
|
|
10867
11270
|
* @param data.name
|
|
10868
|
-
* @returns
|
|
11271
|
+
* @returns InstanceGroupWithWorkspaces instance group
|
|
10869
11272
|
* @throws ApiError
|
|
10870
11273
|
*/
|
|
10871
11274
|
const getInstanceGroup = (data) => {
|
|
@@ -12852,11 +13255,11 @@ exports.getConcurrencyKey = getConcurrencyKey;
|
|
|
12852
13255
|
* @param data.workspace
|
|
12853
13256
|
* @param data.concurrencyKey
|
|
12854
13257
|
* @param data.rowLimit
|
|
12855
|
-
* @param data.createdBy
|
|
12856
|
-
* @param data.label
|
|
13258
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
13259
|
+
* @param data.label filter by exact matching job label. Supports comma-separated list (e.g. 'deploy,release') and negation by prefixing all values with '!' (e.g. '!deploy,!release')
|
|
12857
13260
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
12858
|
-
* @param data.scriptPathExact
|
|
12859
|
-
* @param data.scriptPathStart
|
|
13261
|
+
* @param data.scriptPathExact filter by exact matching script path. Supports comma-separated list (e.g. 'f/script1,f/script2') and negation by prefixing all values with '!' (e.g. '!f/script1,!f/script2')
|
|
13262
|
+
* @param data.scriptPathStart filter by script path prefix. Supports comma-separated list (e.g. 'f/folder1,f/folder2') and negation by prefixing all values with '!' (e.g. '!f/folder1,!f/folder2')
|
|
12860
13263
|
* @param data.schedulePath mask to filter by schedule path
|
|
12861
13264
|
* @param data.scriptHash mask to filter exact matching path
|
|
12862
13265
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -12867,14 +13270,14 @@ exports.getConcurrencyKey = getConcurrencyKey;
|
|
|
12867
13270
|
* @param data.completedAfter filter on started after (exclusive) timestamp
|
|
12868
13271
|
* @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
|
|
12869
13272
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
12870
|
-
* @param data.jobKinds filter
|
|
13273
|
+
* @param data.jobKinds filter by job kind. Supports comma-separated list of values ('preview', 'script', 'dependencies', 'flow') and negation by prefixing all values with '!' (e.g. '!preview,!dependencies')
|
|
12871
13274
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
12872
|
-
* @param data.tag filter
|
|
13275
|
+
* @param data.tag filter by tag/worker group. Supports comma-separated list (e.g. 'gpu,highmem') and negation by prefixing all values with '!' (e.g. '!gpu,!highmem')
|
|
12873
13276
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
12874
13277
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
12875
13278
|
* @param data.page which page to return (start at 1, default 1)
|
|
12876
13279
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12877
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
13280
|
+
* @param data.triggerKind filter by trigger kind. Supports comma-separated list (e.g. 'schedule,webhook') and negation by prefixing all values with '!' (e.g. '!schedule,!webhook')
|
|
12878
13281
|
* @param data.isSkipped is the job skipped
|
|
12879
13282
|
* @param data.isFlowStep is the job a flow step
|
|
12880
13283
|
* @param data.hasNullParent has null parent
|
|
@@ -12999,22 +13402,46 @@ const countSearchLogsIndex = (data) => {
|
|
|
12999
13402
|
};
|
|
13000
13403
|
exports.countSearchLogsIndex = countSearchLogsIndex;
|
|
13001
13404
|
/**
|
|
13002
|
-
*
|
|
13405
|
+
* Clear an index and restart the indexer.
|
|
13003
13406
|
* @param data The data for the request.
|
|
13004
13407
|
* @param data.idxName
|
|
13005
|
-
* @returns string idx to be deleted and
|
|
13408
|
+
* @returns string idx to be deleted and indexer restarting
|
|
13006
13409
|
* @throws ApiError
|
|
13007
13410
|
*/
|
|
13008
13411
|
const clearIndex = (data) => {
|
|
13009
13412
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13010
13413
|
method: 'DELETE',
|
|
13011
|
-
url: '/
|
|
13414
|
+
url: '/indexer/delete/{idx_name}',
|
|
13012
13415
|
path: {
|
|
13013
13416
|
idx_name: data.idxName
|
|
13014
13417
|
}
|
|
13015
13418
|
});
|
|
13016
13419
|
};
|
|
13017
13420
|
exports.clearIndex = clearIndex;
|
|
13421
|
+
/**
|
|
13422
|
+
* Get index storage sizes (disk and S3).
|
|
13423
|
+
* @returns unknown storage sizes for each index
|
|
13424
|
+
* @throws ApiError
|
|
13425
|
+
*/
|
|
13426
|
+
const getIndexStorageSizes = () => {
|
|
13427
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13428
|
+
method: 'GET',
|
|
13429
|
+
url: '/indexer/storage'
|
|
13430
|
+
});
|
|
13431
|
+
};
|
|
13432
|
+
exports.getIndexStorageSizes = getIndexStorageSizes;
|
|
13433
|
+
/**
|
|
13434
|
+
* Get indexer status including liveness and storage sizes.
|
|
13435
|
+
* @returns unknown indexer status for each index
|
|
13436
|
+
* @throws ApiError
|
|
13437
|
+
*/
|
|
13438
|
+
const getIndexerStatus = () => {
|
|
13439
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13440
|
+
method: 'GET',
|
|
13441
|
+
url: '/indexer/status'
|
|
13442
|
+
});
|
|
13443
|
+
};
|
|
13444
|
+
exports.getIndexerStatus = getIndexerStatus;
|
|
13018
13445
|
/**
|
|
13019
13446
|
* List all assets in the workspace with cursor pagination
|
|
13020
13447
|
* @param data The data for the request.
|
|
@@ -13025,6 +13452,9 @@ exports.clearIndex = clearIndex;
|
|
|
13025
13452
|
* @param data.assetPath Filter by asset path (case-insensitive partial match)
|
|
13026
13453
|
* @param data.usagePath Filter by usage path (case-insensitive partial match)
|
|
13027
13454
|
* @param data.assetKinds Filter by asset kinds (multiple values allowed)
|
|
13455
|
+
* @param data.path exact path match filter
|
|
13456
|
+
* @param data.columns JSONB subset match filter for columns using base64 encoded JSON
|
|
13457
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
13028
13458
|
* @returns unknown paginated assets in the workspace
|
|
13029
13459
|
* @throws ApiError
|
|
13030
13460
|
*/
|
|
@@ -13041,7 +13471,10 @@ const listAssets = (data) => {
|
|
|
13041
13471
|
cursor_id: data.cursorId,
|
|
13042
13472
|
asset_path: data.assetPath,
|
|
13043
13473
|
usage_path: data.usagePath,
|
|
13044
|
-
asset_kinds: data.assetKinds
|
|
13474
|
+
asset_kinds: data.assetKinds,
|
|
13475
|
+
path: data.path,
|
|
13476
|
+
columns: data.columns,
|
|
13477
|
+
broad_filter: data.broadFilter
|
|
13045
13478
|
}
|
|
13046
13479
|
});
|
|
13047
13480
|
};
|
|
@@ -13066,6 +13499,96 @@ const listAssetsByUsage = (data) => {
|
|
|
13066
13499
|
});
|
|
13067
13500
|
};
|
|
13068
13501
|
exports.listAssetsByUsage = listAssetsByUsage;
|
|
13502
|
+
/**
|
|
13503
|
+
* List all favorite assets for the authenticated user
|
|
13504
|
+
* @param data The data for the request.
|
|
13505
|
+
* @param data.workspace
|
|
13506
|
+
* @returns unknown list of favorite assets
|
|
13507
|
+
* @throws ApiError
|
|
13508
|
+
*/
|
|
13509
|
+
const listFavoriteAssets = (data) => {
|
|
13510
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13511
|
+
method: 'GET',
|
|
13512
|
+
url: '/w/{workspace}/assets/list_favorites',
|
|
13513
|
+
path: {
|
|
13514
|
+
workspace: data.workspace
|
|
13515
|
+
}
|
|
13516
|
+
});
|
|
13517
|
+
};
|
|
13518
|
+
exports.listFavoriteAssets = listFavoriteAssets;
|
|
13519
|
+
/**
|
|
13520
|
+
* List all volumes in the workspace
|
|
13521
|
+
* @param data The data for the request.
|
|
13522
|
+
* @param data.workspace
|
|
13523
|
+
* @returns Volume list of volumes
|
|
13524
|
+
* @throws ApiError
|
|
13525
|
+
*/
|
|
13526
|
+
const listVolumes = (data) => {
|
|
13527
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13528
|
+
method: 'GET',
|
|
13529
|
+
url: '/w/{workspace}/volumes/list',
|
|
13530
|
+
path: {
|
|
13531
|
+
workspace: data.workspace
|
|
13532
|
+
}
|
|
13533
|
+
});
|
|
13534
|
+
};
|
|
13535
|
+
exports.listVolumes = listVolumes;
|
|
13536
|
+
/**
|
|
13537
|
+
* Get the volume storage name (secondary storage) or null for primary
|
|
13538
|
+
* @param data The data for the request.
|
|
13539
|
+
* @param data.workspace
|
|
13540
|
+
* @returns string volume storage name or null
|
|
13541
|
+
* @throws ApiError
|
|
13542
|
+
*/
|
|
13543
|
+
const getVolumeStorage = (data) => {
|
|
13544
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13545
|
+
method: 'GET',
|
|
13546
|
+
url: '/w/{workspace}/volumes/storage',
|
|
13547
|
+
path: {
|
|
13548
|
+
workspace: data.workspace
|
|
13549
|
+
}
|
|
13550
|
+
});
|
|
13551
|
+
};
|
|
13552
|
+
exports.getVolumeStorage = getVolumeStorage;
|
|
13553
|
+
/**
|
|
13554
|
+
* Create a new volume
|
|
13555
|
+
* @param data The data for the request.
|
|
13556
|
+
* @param data.workspace
|
|
13557
|
+
* @param data.requestBody
|
|
13558
|
+
* @returns string volume created
|
|
13559
|
+
* @throws ApiError
|
|
13560
|
+
*/
|
|
13561
|
+
const createVolume = (data) => {
|
|
13562
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13563
|
+
method: 'POST',
|
|
13564
|
+
url: '/w/{workspace}/volumes/create',
|
|
13565
|
+
path: {
|
|
13566
|
+
workspace: data.workspace
|
|
13567
|
+
},
|
|
13568
|
+
body: data.requestBody,
|
|
13569
|
+
mediaType: 'application/json'
|
|
13570
|
+
});
|
|
13571
|
+
};
|
|
13572
|
+
exports.createVolume = createVolume;
|
|
13573
|
+
/**
|
|
13574
|
+
* Delete a volume (admin only)
|
|
13575
|
+
* @param data The data for the request.
|
|
13576
|
+
* @param data.workspace
|
|
13577
|
+
* @param data.name
|
|
13578
|
+
* @returns string volume deleted
|
|
13579
|
+
* @throws ApiError
|
|
13580
|
+
*/
|
|
13581
|
+
const deleteVolume = (data) => {
|
|
13582
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13583
|
+
method: 'DELETE',
|
|
13584
|
+
url: '/w/{workspace}/volumes/delete/{name}',
|
|
13585
|
+
path: {
|
|
13586
|
+
workspace: data.workspace,
|
|
13587
|
+
name: data.name
|
|
13588
|
+
}
|
|
13589
|
+
});
|
|
13590
|
+
};
|
|
13591
|
+
exports.deleteVolume = deleteVolume;
|
|
13069
13592
|
/**
|
|
13070
13593
|
* list available MCP tools
|
|
13071
13594
|
* @param data The data for the request.
|