windmill-utils-internal 1.3.4 → 1.3.6
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 +410 -56
- package/dist/cjs/gen/services.gen.js +835 -80
- package/dist/cjs/gen/types.gen.d.ts +1213 -188
- 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/path-utils/path-assigner.d.ts +5 -0
- package/dist/cjs/path-utils/path-assigner.js +18 -2
- 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 +410 -56
- package/dist/esm/gen/services.gen.js +784 -67
- package/dist/esm/gen/types.gen.d.ts +1213 -188
- 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/path-utils/path-assigner.d.ts +5 -0
- package/dist/esm/path-utils/path-assigner.js +17 -2
- 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.listFavoriteAssets = exports.listAssetsByUsage = exports.listAssets = exports.clearIndex = exports.countSearchLogsIndex = exports.searchLogsIndex = exports.searchJobsIndex = 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.setEnvironmentVariable = exports.getDefaultScripts = exports.editDefaultScripts = exports.editWorkspaceDefaultApp = exports.editWorkspaceDeployUiSettings = exports.deleteGitSyncRepository = exports.editGitSyncRepository = exports.editWorkspaceGitSyncConfig = exports.getGitSyncEnabled = exports.editDataTableConfig = exports.editDucklakeConfig = exports.listDataTableSchemas = exports.listDataTables = exports.listDucklakes = exports.editLargeFileStorageConfig = exports.editSuccessHandler = exports.editErrorHandler = exports.getCopilotInfo = exports.getCopilotSettingsState = 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.getImports = 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.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.pruneVersions = exports.getCloudQuotas = 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 = exports.getWorkspaceDefaultApp = exports.setWorkspaceEncryptionKey = exports.getWorkspaceEncryptionKey = void 0;
|
|
8
|
+
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 = exports.deleteResourcesBulk = exports.deleteResource = exports.createResource = exports.sendMessageToConversation = exports.getOauthConnect = void 0;
|
|
9
|
+
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.diffRawScriptsWithDeployed = exports.storeRawScriptTemp = exports.getScriptDeploymentStatus = exports.rawScriptByHash = exports.getScriptByHash = exports.existsScriptByPath = exports.rawScriptByPathTokened = exports.rawScriptByPath = exports.listDedicatedWithDeps = 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 = exports.deleteWorkspaceDependencies = exports.archiveWorkspaceDependencies = exports.createWorkspaceDependencies = exports.isDefaultTagsPerWorkspace = exports.geDefaultTags = void 0;
|
|
10
|
+
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 = exports.toggleWorkspaceErrorHandlerForFlow = exports.listTokensOfFlow = exports.getTriggersCountOfFlow = exports.getFlowDeploymentStatus = exports.getFlowByPath = exports.updateFlowHistory = exports.getFlowVersion = exports.listFlowPathsFromWorkspaceRunnable = void 0;
|
|
11
|
+
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 = exports.runFlowPreviewAndWaitResult = exports.runFlowPreview = exports.runRawScriptDependencies = exports.runCodeWorkflowTask = exports.runScriptPreviewAndWaitResult = exports.runScriptByHashInline = exports.runScriptByPathInline = exports.runScriptPreviewInline = void 0;
|
|
12
|
+
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 = exports.cancelSuspendedJobGet = exports.resumeSuspendedFlowAsOwner = exports.getFlowUserState = exports.setFlowUserState = exports.resumeSuspendedJobPost = exports.resumeSuspendedJobGet = exports.getApprovalInfo = exports.resumeSuspended = exports.getTeamsApprovalPayload = exports.getSlackApprovalPayload = void 0;
|
|
13
|
+
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 = exports.createSqsTrigger = exports.testNatsConnection = exports.setNatsTriggerMode = exports.existsNatsTrigger = exports.listNatsTriggers = exports.getNatsTrigger = exports.deleteNatsTrigger = exports.updateNatsTrigger = exports.createNatsTrigger = exports.commitKafkaOffsets = void 0;
|
|
14
|
+
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 = exports.getTemplateScript = exports.createTemplateScript = exports.isValidPostgresConfiguration = exports.getPostgresVersion = exports.listAllTgoogleTopicSubscriptions = exports.listGoogleTopics = exports.deleteGcpSubscription = exports.testGcpConnection = exports.setGcpTriggerMode = exports.existsGcpTrigger = void 0;
|
|
15
|
+
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 = exports.existsFolder = exports.getFolder = exports.deleteFolder = exports.updateFolder = exports.createFolder = exports.listFolderNames = exports.listFolders = exports.getGroupPermissionHistory = exports.removeUserToGroup = exports.addUserToGroup = 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.getIndexDiskStorageSizes = 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 = exports.listGitRepoFiles = exports.loadFilePreview = exports.loadFileMetadata = exports.listStoredFiles = exports.datasetStorageTestConnection = exports.s3ResourceInfo = exports.polarsConnectionSettingsV2 = exports.polarsConnectionSettings = exports.duckdbConnectionSettingsV2 = exports.duckdbConnectionSettings = 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.
|
|
@@ -1808,6 +1926,25 @@ const getDependents = (data) => {
|
|
|
1808
1926
|
});
|
|
1809
1927
|
};
|
|
1810
1928
|
exports.getDependents = getDependents;
|
|
1929
|
+
/**
|
|
1930
|
+
* get script imports for an importer path
|
|
1931
|
+
* @param data The data for the request.
|
|
1932
|
+
* @param data.workspace
|
|
1933
|
+
* @param data.importerPath The script path to get imports for
|
|
1934
|
+
* @returns string list of imported script paths
|
|
1935
|
+
* @throws ApiError
|
|
1936
|
+
*/
|
|
1937
|
+
const getImports = (data) => {
|
|
1938
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1939
|
+
method: 'GET',
|
|
1940
|
+
url: '/w/{workspace}/workspaces/get_imports/{importer_path}',
|
|
1941
|
+
path: {
|
|
1942
|
+
workspace: data.workspace,
|
|
1943
|
+
importer_path: data.importerPath
|
|
1944
|
+
}
|
|
1945
|
+
});
|
|
1946
|
+
};
|
|
1947
|
+
exports.getImports = getImports;
|
|
1811
1948
|
/**
|
|
1812
1949
|
* get dependents amounts for multiple imported paths
|
|
1813
1950
|
* @param data The data for the request.
|
|
@@ -2128,7 +2265,7 @@ exports.editWebhook = editWebhook;
|
|
|
2128
2265
|
* @param data The data for the request.
|
|
2129
2266
|
* @param data.workspace
|
|
2130
2267
|
* @param data.requestBody WorkspaceCopilotConfig
|
|
2131
|
-
* @returns
|
|
2268
|
+
* @returns unknown status
|
|
2132
2269
|
* @throws ApiError
|
|
2133
2270
|
*/
|
|
2134
2271
|
const editCopilotConfig = (data) => {
|
|
@@ -2143,6 +2280,23 @@ const editCopilotConfig = (data) => {
|
|
|
2143
2280
|
});
|
|
2144
2281
|
};
|
|
2145
2282
|
exports.editCopilotConfig = editCopilotConfig;
|
|
2283
|
+
/**
|
|
2284
|
+
* get copilot settings state
|
|
2285
|
+
* @param data The data for the request.
|
|
2286
|
+
* @param data.workspace
|
|
2287
|
+
* @returns unknown status
|
|
2288
|
+
* @throws ApiError
|
|
2289
|
+
*/
|
|
2290
|
+
const getCopilotSettingsState = (data) => {
|
|
2291
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
2292
|
+
method: 'GET',
|
|
2293
|
+
url: '/w/{workspace}/workspaces/get_copilot_settings_state',
|
|
2294
|
+
path: {
|
|
2295
|
+
workspace: data.workspace
|
|
2296
|
+
}
|
|
2297
|
+
});
|
|
2298
|
+
};
|
|
2299
|
+
exports.getCopilotSettingsState = getCopilotSettingsState;
|
|
2146
2300
|
/**
|
|
2147
2301
|
* get copilot info
|
|
2148
2302
|
* @param data The data for the request.
|
|
@@ -2311,6 +2465,23 @@ const editDataTableConfig = (data) => {
|
|
|
2311
2465
|
});
|
|
2312
2466
|
};
|
|
2313
2467
|
exports.editDataTableConfig = editDataTableConfig;
|
|
2468
|
+
/**
|
|
2469
|
+
* Check if git sync is available for this workspace
|
|
2470
|
+
* @param data The data for the request.
|
|
2471
|
+
* @param data.workspace
|
|
2472
|
+
* @returns unknown Git sync availability status
|
|
2473
|
+
* @throws ApiError
|
|
2474
|
+
*/
|
|
2475
|
+
const getGitSyncEnabled = (data) => {
|
|
2476
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
2477
|
+
method: 'GET',
|
|
2478
|
+
url: '/w/{workspace}/workspaces/git_sync_enabled',
|
|
2479
|
+
path: {
|
|
2480
|
+
workspace: data.workspace
|
|
2481
|
+
}
|
|
2482
|
+
});
|
|
2483
|
+
};
|
|
2484
|
+
exports.getGitSyncEnabled = getGitSyncEnabled;
|
|
2314
2485
|
/**
|
|
2315
2486
|
* edit workspace git sync settings
|
|
2316
2487
|
* @param data The data for the request.
|
|
@@ -2916,6 +3087,10 @@ exports.existsVariable = existsVariable;
|
|
|
2916
3087
|
* @param data The data for the request.
|
|
2917
3088
|
* @param data.workspace
|
|
2918
3089
|
* @param data.pathStart filter variables by path prefix
|
|
3090
|
+
* @param data.path exact path match filter
|
|
3091
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
3092
|
+
* @param data.value pattern match filter for non-secret variable values (case-insensitive)
|
|
3093
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
2919
3094
|
* @param data.page which page to return (start at 1, default 1)
|
|
2920
3095
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
2921
3096
|
* @returns ListableVariable variable list
|
|
@@ -2930,6 +3105,10 @@ const listVariable = (data) => {
|
|
|
2930
3105
|
},
|
|
2931
3106
|
query: {
|
|
2932
3107
|
path_start: data.pathStart,
|
|
3108
|
+
path: data.path,
|
|
3109
|
+
description: data.description,
|
|
3110
|
+
value: data.value,
|
|
3111
|
+
broad_filter: data.broadFilter,
|
|
2933
3112
|
page: data.page,
|
|
2934
3113
|
per_page: data.perPage
|
|
2935
3114
|
}
|
|
@@ -3055,6 +3234,150 @@ const workspaceMuteCriticalAlertsUi = (data) => {
|
|
|
3055
3234
|
});
|
|
3056
3235
|
};
|
|
3057
3236
|
exports.workspaceMuteCriticalAlertsUi = workspaceMuteCriticalAlertsUi;
|
|
3237
|
+
/**
|
|
3238
|
+
* list all protection rules for a workspace
|
|
3239
|
+
* @param data The data for the request.
|
|
3240
|
+
* @param data.workspace
|
|
3241
|
+
* @returns ProtectionRuleset list of protection rules
|
|
3242
|
+
* @throws ApiError
|
|
3243
|
+
*/
|
|
3244
|
+
const listProtectionRules = (data) => {
|
|
3245
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3246
|
+
method: 'GET',
|
|
3247
|
+
url: '/w/{workspace}/workspaces/protection_rules',
|
|
3248
|
+
path: {
|
|
3249
|
+
workspace: data.workspace
|
|
3250
|
+
}
|
|
3251
|
+
});
|
|
3252
|
+
};
|
|
3253
|
+
exports.listProtectionRules = listProtectionRules;
|
|
3254
|
+
/**
|
|
3255
|
+
* create a new protection rule
|
|
3256
|
+
* @param data The data for the request.
|
|
3257
|
+
* @param data.workspace
|
|
3258
|
+
* @param data.requestBody New protection rule configuration
|
|
3259
|
+
* @returns string protection rule created successfully
|
|
3260
|
+
* @throws ApiError
|
|
3261
|
+
*/
|
|
3262
|
+
const createProtectionRule = (data) => {
|
|
3263
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3264
|
+
method: 'POST',
|
|
3265
|
+
url: '/w/{workspace}/workspaces/protection_rules',
|
|
3266
|
+
path: {
|
|
3267
|
+
workspace: data.workspace
|
|
3268
|
+
},
|
|
3269
|
+
body: data.requestBody,
|
|
3270
|
+
mediaType: 'application/json',
|
|
3271
|
+
errors: {
|
|
3272
|
+
400: 'rule with this name already exists'
|
|
3273
|
+
}
|
|
3274
|
+
});
|
|
3275
|
+
};
|
|
3276
|
+
exports.createProtectionRule = createProtectionRule;
|
|
3277
|
+
/**
|
|
3278
|
+
* update an existing protection rule
|
|
3279
|
+
* @param data The data for the request.
|
|
3280
|
+
* @param data.workspace
|
|
3281
|
+
* @param data.ruleName Name of the protection rule to update
|
|
3282
|
+
* @param data.requestBody Updated protection rule configuration
|
|
3283
|
+
* @returns string protection rule updated successfully
|
|
3284
|
+
* @throws ApiError
|
|
3285
|
+
*/
|
|
3286
|
+
const updateProtectionRule = (data) => {
|
|
3287
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3288
|
+
method: 'POST',
|
|
3289
|
+
url: '/w/{workspace}/workspaces/protection_rules/{rule_name}',
|
|
3290
|
+
path: {
|
|
3291
|
+
workspace: data.workspace,
|
|
3292
|
+
rule_name: data.ruleName
|
|
3293
|
+
},
|
|
3294
|
+
body: data.requestBody,
|
|
3295
|
+
mediaType: 'application/json',
|
|
3296
|
+
errors: {
|
|
3297
|
+
404: 'protection rule not found'
|
|
3298
|
+
}
|
|
3299
|
+
});
|
|
3300
|
+
};
|
|
3301
|
+
exports.updateProtectionRule = updateProtectionRule;
|
|
3302
|
+
/**
|
|
3303
|
+
* delete a protection rule
|
|
3304
|
+
* @param data The data for the request.
|
|
3305
|
+
* @param data.workspace
|
|
3306
|
+
* @param data.ruleName Name of the protection rule to delete
|
|
3307
|
+
* @returns string protection rule deleted successfully
|
|
3308
|
+
* @throws ApiError
|
|
3309
|
+
*/
|
|
3310
|
+
const deleteProtectionRule = (data) => {
|
|
3311
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3312
|
+
method: 'DELETE',
|
|
3313
|
+
url: '/w/{workspace}/workspaces/protection_rules/{rule_name}',
|
|
3314
|
+
path: {
|
|
3315
|
+
workspace: data.workspace,
|
|
3316
|
+
rule_name: data.ruleName
|
|
3317
|
+
},
|
|
3318
|
+
errors: {
|
|
3319
|
+
404: 'protection rule not found'
|
|
3320
|
+
}
|
|
3321
|
+
});
|
|
3322
|
+
};
|
|
3323
|
+
exports.deleteProtectionRule = deleteProtectionRule;
|
|
3324
|
+
/**
|
|
3325
|
+
* log AI chat message
|
|
3326
|
+
* @param data The data for the request.
|
|
3327
|
+
* @param data.workspace
|
|
3328
|
+
* @param data.requestBody
|
|
3329
|
+
* @returns void logged
|
|
3330
|
+
* @throws ApiError
|
|
3331
|
+
*/
|
|
3332
|
+
const logAiChat = (data) => {
|
|
3333
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3334
|
+
method: 'POST',
|
|
3335
|
+
url: '/w/{workspace}/workspaces/log_chat',
|
|
3336
|
+
path: {
|
|
3337
|
+
workspace: data.workspace
|
|
3338
|
+
},
|
|
3339
|
+
body: data.requestBody,
|
|
3340
|
+
mediaType: 'application/json'
|
|
3341
|
+
});
|
|
3342
|
+
};
|
|
3343
|
+
exports.logAiChat = logAiChat;
|
|
3344
|
+
/**
|
|
3345
|
+
* get cloud quota usage and limits for workspace
|
|
3346
|
+
* @param data The data for the request.
|
|
3347
|
+
* @param data.workspace
|
|
3348
|
+
* @returns unknown cloud quota usage and limits
|
|
3349
|
+
* @throws ApiError
|
|
3350
|
+
*/
|
|
3351
|
+
const getCloudQuotas = (data) => {
|
|
3352
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3353
|
+
method: 'GET',
|
|
3354
|
+
url: '/w/{workspace}/workspaces/cloud_quotas',
|
|
3355
|
+
path: {
|
|
3356
|
+
workspace: data.workspace
|
|
3357
|
+
}
|
|
3358
|
+
});
|
|
3359
|
+
};
|
|
3360
|
+
exports.getCloudQuotas = getCloudQuotas;
|
|
3361
|
+
/**
|
|
3362
|
+
* prune old versions of scripts, flows, or apps
|
|
3363
|
+
* @param data The data for the request.
|
|
3364
|
+
* @param data.workspace
|
|
3365
|
+
* @param data.requestBody
|
|
3366
|
+
* @returns unknown number of pruned versions
|
|
3367
|
+
* @throws ApiError
|
|
3368
|
+
*/
|
|
3369
|
+
const pruneVersions = (data) => {
|
|
3370
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
3371
|
+
method: 'POST',
|
|
3372
|
+
url: '/w/{workspace}/workspaces/prune_versions',
|
|
3373
|
+
path: {
|
|
3374
|
+
workspace: data.workspace
|
|
3375
|
+
},
|
|
3376
|
+
body: data.requestBody,
|
|
3377
|
+
mediaType: 'application/json'
|
|
3378
|
+
});
|
|
3379
|
+
};
|
|
3380
|
+
exports.pruneVersions = pruneVersions;
|
|
3058
3381
|
/**
|
|
3059
3382
|
* Set public app rate limit for this workspace
|
|
3060
3383
|
* @param data The data for the request.
|
|
@@ -3546,6 +3869,10 @@ exports.existsResource = existsResource;
|
|
|
3546
3869
|
* @param data.resourceType resource_types to list from, separated by ',',
|
|
3547
3870
|
* @param data.resourceTypeExclude resource_types to not list from, separated by ',',
|
|
3548
3871
|
* @param data.pathStart filter resources by path prefix
|
|
3872
|
+
* @param data.path exact path match filter
|
|
3873
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
3874
|
+
* @param data.value JSONB subset match filter using base64 encoded JSON
|
|
3875
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
3549
3876
|
* @returns ListableResource resource list
|
|
3550
3877
|
* @throws ApiError
|
|
3551
3878
|
*/
|
|
@@ -3561,7 +3888,11 @@ const listResource = (data) => {
|
|
|
3561
3888
|
per_page: data.perPage,
|
|
3562
3889
|
resource_type: data.resourceType,
|
|
3563
3890
|
resource_type_exclude: data.resourceTypeExclude,
|
|
3564
|
-
path_start: data.pathStart
|
|
3891
|
+
path_start: data.pathStart,
|
|
3892
|
+
path: data.path,
|
|
3893
|
+
description: data.description,
|
|
3894
|
+
value: data.value,
|
|
3895
|
+
broad_filter: data.broadFilter
|
|
3565
3896
|
}
|
|
3566
3897
|
});
|
|
3567
3898
|
};
|
|
@@ -3645,7 +3976,7 @@ exports.createResourceType = createResourceType;
|
|
|
3645
3976
|
* get map from resource type to format extension
|
|
3646
3977
|
* @param data The data for the request.
|
|
3647
3978
|
* @param data.workspace
|
|
3648
|
-
* @returns unknown map from resource type to file
|
|
3979
|
+
* @returns unknown map from resource type to file resource info
|
|
3649
3980
|
* @throws ApiError
|
|
3650
3981
|
*/
|
|
3651
3982
|
const fileResourceTypeToFileExtMap = (data) => {
|
|
@@ -4108,7 +4439,7 @@ exports.listSearchScript = listSearchScript;
|
|
|
4108
4439
|
* @param data.page which page to return (start at 1, default 1)
|
|
4109
4440
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
4110
4441
|
* @param data.orderDesc order by desc order (default true)
|
|
4111
|
-
* @param data.createdBy
|
|
4442
|
+
* @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')
|
|
4112
4443
|
* @param data.pathStart mask to filter matching starting path
|
|
4113
4444
|
* @param data.pathExact mask to filter exact matching path
|
|
4114
4445
|
* @param data.firstParentHash mask to filter scripts whom first direct parent has exact hash
|
|
@@ -4717,6 +5048,23 @@ const updateScriptHistory = (data) => {
|
|
|
4717
5048
|
});
|
|
4718
5049
|
};
|
|
4719
5050
|
exports.updateScriptHistory = updateScriptHistory;
|
|
5051
|
+
/**
|
|
5052
|
+
* list dedicated worker scripts with workspace dependency annotations
|
|
5053
|
+
* @param data The data for the request.
|
|
5054
|
+
* @param data.workspace
|
|
5055
|
+
* @returns unknown list of dedicated scripts with their workspace dependency names
|
|
5056
|
+
* @throws ApiError
|
|
5057
|
+
*/
|
|
5058
|
+
const listDedicatedWithDeps = (data) => {
|
|
5059
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5060
|
+
method: 'GET',
|
|
5061
|
+
url: '/w/{workspace}/scripts/list_dedicated_with_deps',
|
|
5062
|
+
path: {
|
|
5063
|
+
workspace: data.workspace
|
|
5064
|
+
}
|
|
5065
|
+
});
|
|
5066
|
+
};
|
|
5067
|
+
exports.listDedicatedWithDeps = listDedicatedWithDeps;
|
|
4720
5068
|
/**
|
|
4721
5069
|
* raw script by path
|
|
4722
5070
|
* @param data The data for the request.
|
|
@@ -4839,6 +5187,46 @@ const getScriptDeploymentStatus = (data) => {
|
|
|
4839
5187
|
});
|
|
4840
5188
|
};
|
|
4841
5189
|
exports.getScriptDeploymentStatus = getScriptDeploymentStatus;
|
|
5190
|
+
/**
|
|
5191
|
+
* store raw script content temporarily for CLI lock generation
|
|
5192
|
+
* @param data The data for the request.
|
|
5193
|
+
* @param data.workspace
|
|
5194
|
+
* @param data.requestBody script content to store
|
|
5195
|
+
* @returns string hash of stored content
|
|
5196
|
+
* @throws ApiError
|
|
5197
|
+
*/
|
|
5198
|
+
const storeRawScriptTemp = (data) => {
|
|
5199
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5200
|
+
method: 'POST',
|
|
5201
|
+
url: '/w/{workspace}/scripts/raw_temp/store',
|
|
5202
|
+
path: {
|
|
5203
|
+
workspace: data.workspace
|
|
5204
|
+
},
|
|
5205
|
+
body: data.requestBody,
|
|
5206
|
+
mediaType: 'application/json'
|
|
5207
|
+
});
|
|
5208
|
+
};
|
|
5209
|
+
exports.storeRawScriptTemp = storeRawScriptTemp;
|
|
5210
|
+
/**
|
|
5211
|
+
* diff local script hashes against deployed versions
|
|
5212
|
+
* @param data The data for the request.
|
|
5213
|
+
* @param data.workspace
|
|
5214
|
+
* @param data.requestBody scripts and workspace deps to diff against deployed versions
|
|
5215
|
+
* @returns string list of paths that differ from deployed versions
|
|
5216
|
+
* @throws ApiError
|
|
5217
|
+
*/
|
|
5218
|
+
const diffRawScriptsWithDeployed = (data) => {
|
|
5219
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
5220
|
+
method: 'POST',
|
|
5221
|
+
url: '/w/{workspace}/scripts/raw_temp/diff',
|
|
5222
|
+
path: {
|
|
5223
|
+
workspace: data.workspace
|
|
5224
|
+
},
|
|
5225
|
+
body: data.requestBody,
|
|
5226
|
+
mediaType: 'application/json'
|
|
5227
|
+
});
|
|
5228
|
+
};
|
|
5229
|
+
exports.diffRawScriptsWithDeployed = diffRawScriptsWithDeployed;
|
|
4842
5230
|
/**
|
|
4843
5231
|
* list selected jobs script/flow schemas grouped by (kind, path)
|
|
4844
5232
|
* @param data The data for the request.
|
|
@@ -5488,7 +5876,7 @@ exports.listSearchFlow = listSearchFlow;
|
|
|
5488
5876
|
* @param data.page which page to return (start at 1, default 1)
|
|
5489
5877
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5490
5878
|
* @param data.orderDesc order by desc order (default true)
|
|
5491
|
-
* @param data.createdBy
|
|
5879
|
+
* @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')
|
|
5492
5880
|
* @param data.pathStart mask to filter matching starting path
|
|
5493
5881
|
* @param data.pathExact mask to filter exact matching path
|
|
5494
5882
|
* @param data.showArchived (default false)
|
|
@@ -5948,7 +6336,7 @@ exports.listConversationMessages = listConversationMessages;
|
|
|
5948
6336
|
* @param data.page which page to return (start at 1, default 1)
|
|
5949
6337
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5950
6338
|
* @param data.orderDesc order by desc order (default true)
|
|
5951
|
-
* @param data.createdBy
|
|
6339
|
+
* @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')
|
|
5952
6340
|
* @param data.pathStart mask to filter matching starting path
|
|
5953
6341
|
* @param data.pathExact mask to filter exact matching path
|
|
5954
6342
|
* @param data.starredOnly (default false)
|
|
@@ -6019,7 +6407,7 @@ exports.listSearchApp = listSearchApp;
|
|
|
6019
6407
|
* @param data.page which page to return (start at 1, default 1)
|
|
6020
6408
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6021
6409
|
* @param data.orderDesc order by desc order (default true)
|
|
6022
|
-
* @param data.createdBy
|
|
6410
|
+
* @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')
|
|
6023
6411
|
* @param data.pathStart mask to filter matching starting path
|
|
6024
6412
|
* @param data.pathExact mask to filter exact matching path
|
|
6025
6413
|
* @param data.starredOnly (default false)
|
|
@@ -6778,6 +7166,50 @@ const runScriptPreviewInline = (data) => {
|
|
|
6778
7166
|
});
|
|
6779
7167
|
};
|
|
6780
7168
|
exports.runScriptPreviewInline = runScriptPreviewInline;
|
|
7169
|
+
/**
|
|
7170
|
+
* run script by path without starting a new job
|
|
7171
|
+
* @param data The data for the request.
|
|
7172
|
+
* @param data.workspace
|
|
7173
|
+
* @param data.path
|
|
7174
|
+
* @param data.requestBody script args
|
|
7175
|
+
* @returns unknown script result
|
|
7176
|
+
* @throws ApiError
|
|
7177
|
+
*/
|
|
7178
|
+
const runScriptByPathInline = (data) => {
|
|
7179
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
7180
|
+
method: 'POST',
|
|
7181
|
+
url: '/w/{workspace}/jobs/run_inline/p/{path}',
|
|
7182
|
+
path: {
|
|
7183
|
+
workspace: data.workspace,
|
|
7184
|
+
path: data.path
|
|
7185
|
+
},
|
|
7186
|
+
body: data.requestBody,
|
|
7187
|
+
mediaType: 'application/json'
|
|
7188
|
+
});
|
|
7189
|
+
};
|
|
7190
|
+
exports.runScriptByPathInline = runScriptByPathInline;
|
|
7191
|
+
/**
|
|
7192
|
+
* run script by hash without starting a new job
|
|
7193
|
+
* @param data The data for the request.
|
|
7194
|
+
* @param data.workspace
|
|
7195
|
+
* @param data.hash
|
|
7196
|
+
* @param data.requestBody script args
|
|
7197
|
+
* @returns unknown script result
|
|
7198
|
+
* @throws ApiError
|
|
7199
|
+
*/
|
|
7200
|
+
const runScriptByHashInline = (data) => {
|
|
7201
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
7202
|
+
method: 'POST',
|
|
7203
|
+
url: '/w/{workspace}/jobs/run_inline/h/{hash}',
|
|
7204
|
+
path: {
|
|
7205
|
+
workspace: data.workspace,
|
|
7206
|
+
hash: data.hash
|
|
7207
|
+
},
|
|
7208
|
+
body: data.requestBody,
|
|
7209
|
+
mediaType: 'application/json'
|
|
7210
|
+
});
|
|
7211
|
+
};
|
|
7212
|
+
exports.runScriptByHashInline = runScriptByHashInline;
|
|
6781
7213
|
/**
|
|
6782
7214
|
* run script preview and wait for result
|
|
6783
7215
|
* @param data The data for the request.
|
|
@@ -6923,26 +7355,26 @@ exports.runDynamicSelect = runDynamicSelect;
|
|
|
6923
7355
|
* @param data The data for the request.
|
|
6924
7356
|
* @param data.workspace
|
|
6925
7357
|
* @param data.orderDesc order by desc order (default true)
|
|
6926
|
-
* @param data.createdBy
|
|
7358
|
+
* @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')
|
|
6927
7359
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
6928
|
-
* @param data.worker worker this job
|
|
6929
|
-
* @param data.scriptPathExact
|
|
6930
|
-
* @param data.scriptPathStart
|
|
7360
|
+
* @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')
|
|
7361
|
+
* @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')
|
|
7362
|
+
* @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')
|
|
6931
7363
|
* @param data.schedulePath mask to filter by schedule path
|
|
6932
|
-
* @param data.triggerPath
|
|
6933
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
7364
|
+
* @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')
|
|
7365
|
+
* @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')
|
|
6934
7366
|
* @param data.scriptHash mask to filter exact matching path
|
|
6935
7367
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6936
7368
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6937
7369
|
* @param data.success filter on successful jobs
|
|
6938
7370
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6939
|
-
* @param data.jobKinds filter
|
|
7371
|
+
* @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')
|
|
6940
7372
|
* @param data.suspended filter on suspended jobs
|
|
6941
7373
|
* @param data.running filter on running jobs
|
|
6942
7374
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6943
7375
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6944
7376
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6945
|
-
* @param data.tag filter
|
|
7377
|
+
* @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')
|
|
6946
7378
|
* @param data.page which page to return (start at 1, default 1)
|
|
6947
7379
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6948
7380
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
@@ -7056,12 +7488,12 @@ exports.countCompletedJobs = countCompletedJobs;
|
|
|
7056
7488
|
* get the ids of all jobs matching the given filters
|
|
7057
7489
|
* @param data The data for the request.
|
|
7058
7490
|
* @param data.workspace
|
|
7059
|
-
* @param data.createdBy
|
|
7060
|
-
* @param data.label
|
|
7061
|
-
* @param data.worker worker this job
|
|
7491
|
+
* @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')
|
|
7492
|
+
* @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')
|
|
7493
|
+
* @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')
|
|
7062
7494
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7063
|
-
* @param data.scriptPathExact
|
|
7064
|
-
* @param data.scriptPathStart
|
|
7495
|
+
* @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')
|
|
7496
|
+
* @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')
|
|
7065
7497
|
* @param data.schedulePath mask to filter by schedule path
|
|
7066
7498
|
* @param data.scriptHash mask to filter exact matching path
|
|
7067
7499
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -7074,10 +7506,10 @@ exports.countCompletedJobs = countCompletedJobs;
|
|
|
7074
7506
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
7075
7507
|
* @param data.running filter on running jobs
|
|
7076
7508
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7077
|
-
* @param data.jobKinds filter
|
|
7509
|
+
* @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')
|
|
7078
7510
|
* @param data.suspended filter on suspended jobs
|
|
7079
7511
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7080
|
-
* @param data.tag filter
|
|
7512
|
+
* @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')
|
|
7081
7513
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7082
7514
|
* @param data.page which page to return (start at 1, default 1)
|
|
7083
7515
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
@@ -7138,23 +7570,23 @@ exports.listFilteredJobsUuids = listFilteredJobsUuids;
|
|
|
7138
7570
|
* @param data The data for the request.
|
|
7139
7571
|
* @param data.workspace
|
|
7140
7572
|
* @param data.orderDesc order by desc order (default true)
|
|
7141
|
-
* @param data.createdBy
|
|
7573
|
+
* @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')
|
|
7142
7574
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7143
|
-
* @param data.scriptPathExact
|
|
7144
|
-
* @param data.scriptPathStart
|
|
7575
|
+
* @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')
|
|
7576
|
+
* @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')
|
|
7145
7577
|
* @param data.schedulePath mask to filter by schedule path
|
|
7146
7578
|
* @param data.scriptHash mask to filter exact matching path
|
|
7147
7579
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
7148
7580
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
7149
7581
|
* @param data.success filter on successful jobs
|
|
7150
7582
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7151
|
-
* @param data.jobKinds filter
|
|
7583
|
+
* @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')
|
|
7152
7584
|
* @param data.suspended filter on suspended jobs
|
|
7153
7585
|
* @param data.running filter on running jobs
|
|
7154
7586
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7155
7587
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7156
7588
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7157
|
-
* @param data.tag filter
|
|
7589
|
+
* @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')
|
|
7158
7590
|
* @param data.page which page to return (start at 1, default 1)
|
|
7159
7591
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7160
7592
|
* @param data.concurrencyKey
|
|
@@ -7294,22 +7726,22 @@ exports.cancelSuspendedTriggerJobs = cancelSuspendedTriggerJobs;
|
|
|
7294
7726
|
* @param data The data for the request.
|
|
7295
7727
|
* @param data.workspace
|
|
7296
7728
|
* @param data.orderDesc order by desc order (default true)
|
|
7297
|
-
* @param data.createdBy
|
|
7298
|
-
* @param data.label
|
|
7299
|
-
* @param data.worker worker this job
|
|
7729
|
+
* @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')
|
|
7730
|
+
* @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')
|
|
7731
|
+
* @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')
|
|
7300
7732
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7301
|
-
* @param data.scriptPathExact
|
|
7302
|
-
* @param data.scriptPathStart
|
|
7733
|
+
* @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')
|
|
7734
|
+
* @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')
|
|
7303
7735
|
* @param data.schedulePath mask to filter by schedule path
|
|
7304
7736
|
* @param data.scriptHash mask to filter exact matching path
|
|
7305
7737
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
7306
7738
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
7307
7739
|
* @param data.success filter on successful jobs
|
|
7308
|
-
* @param data.jobKinds filter
|
|
7740
|
+
* @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')
|
|
7309
7741
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7310
7742
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7311
7743
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7312
|
-
* @param data.tag filter
|
|
7744
|
+
* @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')
|
|
7313
7745
|
* @param data.page which page to return (start at 1, default 1)
|
|
7314
7746
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7315
7747
|
* @param data.isSkipped is the job skipped
|
|
@@ -7464,12 +7896,12 @@ exports.deleteJobs = deleteJobs;
|
|
|
7464
7896
|
* list all jobs
|
|
7465
7897
|
* @param data The data for the request.
|
|
7466
7898
|
* @param data.workspace
|
|
7467
|
-
* @param data.createdBy
|
|
7468
|
-
* @param data.label
|
|
7469
|
-
* @param data.worker worker this job
|
|
7899
|
+
* @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')
|
|
7900
|
+
* @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')
|
|
7901
|
+
* @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')
|
|
7470
7902
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
7471
|
-
* @param data.scriptPathExact
|
|
7472
|
-
* @param data.scriptPathStart
|
|
7903
|
+
* @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')
|
|
7904
|
+
* @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')
|
|
7473
7905
|
* @param data.schedulePath mask to filter by schedule path
|
|
7474
7906
|
* @param data.scriptHash mask to filter exact matching path
|
|
7475
7907
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -7482,20 +7914,21 @@ exports.deleteJobs = deleteJobs;
|
|
|
7482
7914
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
7483
7915
|
* @param data.running filter on running jobs
|
|
7484
7916
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7485
|
-
* @param data.jobKinds filter
|
|
7917
|
+
* @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')
|
|
7486
7918
|
* @param data.suspended filter on suspended jobs
|
|
7487
7919
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7488
|
-
* @param data.tag filter
|
|
7920
|
+
* @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')
|
|
7489
7921
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7490
7922
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7491
7923
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7492
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
7924
|
+
* @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')
|
|
7493
7925
|
* @param data.isSkipped is the job skipped
|
|
7494
7926
|
* @param data.isFlowStep is the job a flow step
|
|
7495
7927
|
* @param data.hasNullParent has null parent
|
|
7496
7928
|
* @param data.success filter on successful jobs
|
|
7497
7929
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
7498
7930
|
* @param data.isNotSchedule is not a scheduled job
|
|
7931
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match on path, tag, schedule path, trigger kind, label)
|
|
7499
7932
|
* @returns Job All jobs
|
|
7500
7933
|
* @throws ApiError
|
|
7501
7934
|
*/
|
|
@@ -7538,7 +7971,8 @@ const listJobs = (data) => {
|
|
|
7538
7971
|
has_null_parent: data.hasNullParent,
|
|
7539
7972
|
success: data.success,
|
|
7540
7973
|
all_workspaces: data.allWorkspaces,
|
|
7541
|
-
is_not_schedule: data.isNotSchedule
|
|
7974
|
+
is_not_schedule: data.isNotSchedule,
|
|
7975
|
+
broad_filter: data.broadFilter
|
|
7542
7976
|
}
|
|
7543
7977
|
});
|
|
7544
7978
|
};
|
|
@@ -7741,6 +8175,7 @@ exports.getJobUpdates = getJobUpdates;
|
|
|
7741
8175
|
* @param data.getProgress
|
|
7742
8176
|
* @param data.onlyResult
|
|
7743
8177
|
* @param data.noLogs
|
|
8178
|
+
* @param data.fast
|
|
7744
8179
|
* @returns string server-sent events stream of job updates
|
|
7745
8180
|
* @throws ApiError
|
|
7746
8181
|
*/
|
|
@@ -7758,7 +8193,8 @@ const getJobUpdatesSse = (data) => {
|
|
|
7758
8193
|
stream_offset: data.streamOffset,
|
|
7759
8194
|
get_progress: data.getProgress,
|
|
7760
8195
|
only_result: data.onlyResult,
|
|
7761
|
-
no_logs: data.noLogs
|
|
8196
|
+
no_logs: data.noLogs,
|
|
8197
|
+
fast: data.fast
|
|
7762
8198
|
}
|
|
7763
8199
|
});
|
|
7764
8200
|
};
|
|
@@ -8078,6 +8514,8 @@ exports.getResumeUrls = getResumeUrls;
|
|
|
8078
8514
|
* @param data.message
|
|
8079
8515
|
* @param data.defaultArgsJson
|
|
8080
8516
|
* @param data.dynamicEnumsJson
|
|
8517
|
+
* @param data.resumeButtonText
|
|
8518
|
+
* @param data.cancelButtonText
|
|
8081
8519
|
* @returns unknown Interactive slack approval message sent successfully
|
|
8082
8520
|
* @throws ApiError
|
|
8083
8521
|
*/
|
|
@@ -8096,7 +8534,9 @@ const getSlackApprovalPayload = (data) => {
|
|
|
8096
8534
|
channel_id: data.channelId,
|
|
8097
8535
|
flow_step_id: data.flowStepId,
|
|
8098
8536
|
default_args_json: data.defaultArgsJson,
|
|
8099
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8537
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8538
|
+
resume_button_text: data.resumeButtonText,
|
|
8539
|
+
cancel_button_text: data.cancelButtonText
|
|
8100
8540
|
}
|
|
8101
8541
|
});
|
|
8102
8542
|
};
|
|
@@ -8113,6 +8553,8 @@ exports.getSlackApprovalPayload = getSlackApprovalPayload;
|
|
|
8113
8553
|
* @param data.message
|
|
8114
8554
|
* @param data.defaultArgsJson
|
|
8115
8555
|
* @param data.dynamicEnumsJson
|
|
8556
|
+
* @param data.resumeButtonText
|
|
8557
|
+
* @param data.cancelButtonText
|
|
8116
8558
|
* @returns unknown Interactive slack approval message sent successfully
|
|
8117
8559
|
* @throws ApiError
|
|
8118
8560
|
*/
|
|
@@ -8131,11 +8573,62 @@ const getTeamsApprovalPayload = (data) => {
|
|
|
8131
8573
|
channel_name: data.channelName,
|
|
8132
8574
|
flow_step_id: data.flowStepId,
|
|
8133
8575
|
default_args_json: data.defaultArgsJson,
|
|
8134
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8576
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8577
|
+
resume_button_text: data.resumeButtonText,
|
|
8578
|
+
cancel_button_text: data.cancelButtonText
|
|
8135
8579
|
}
|
|
8136
8580
|
});
|
|
8137
8581
|
};
|
|
8138
8582
|
exports.getTeamsApprovalPayload = getTeamsApprovalPayload;
|
|
8583
|
+
/**
|
|
8584
|
+
* resume or cancel a suspended flow/WAC job
|
|
8585
|
+
* Resume or cancel a suspended flow/WAC job. Uses approval rules to determine authorization. Either a valid approval_token or an authenticated session is required.
|
|
8586
|
+
*
|
|
8587
|
+
* @param data The data for the request.
|
|
8588
|
+
* @param data.workspace
|
|
8589
|
+
* @param data.jobId
|
|
8590
|
+
* @param data.requestBody
|
|
8591
|
+
* @returns string job resumed
|
|
8592
|
+
* @throws ApiError
|
|
8593
|
+
*/
|
|
8594
|
+
const resumeSuspended = (data) => {
|
|
8595
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
8596
|
+
method: 'POST',
|
|
8597
|
+
url: '/w/{workspace}/jobs_u/flow/resume_suspended/{job_id}',
|
|
8598
|
+
path: {
|
|
8599
|
+
workspace: data.workspace,
|
|
8600
|
+
job_id: data.jobId
|
|
8601
|
+
},
|
|
8602
|
+
body: data.requestBody,
|
|
8603
|
+
mediaType: 'application/json'
|
|
8604
|
+
});
|
|
8605
|
+
};
|
|
8606
|
+
exports.resumeSuspended = resumeSuspended;
|
|
8607
|
+
/**
|
|
8608
|
+
* get approval info for a suspended flow/WAC job
|
|
8609
|
+
* Get approval info for a suspended flow/WAC job. Returns form schema, approval rules, and whether the current user can approve. Either a valid token query parameter or an authenticated session is required.
|
|
8610
|
+
*
|
|
8611
|
+
* @param data The data for the request.
|
|
8612
|
+
* @param data.workspace
|
|
8613
|
+
* @param data.jobId
|
|
8614
|
+
* @param data.token approval token for unauthenticated access
|
|
8615
|
+
* @returns unknown approval info
|
|
8616
|
+
* @throws ApiError
|
|
8617
|
+
*/
|
|
8618
|
+
const getApprovalInfo = (data) => {
|
|
8619
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
8620
|
+
method: 'GET',
|
|
8621
|
+
url: '/w/{workspace}/jobs_u/flow/approval_info/{job_id}',
|
|
8622
|
+
path: {
|
|
8623
|
+
workspace: data.workspace,
|
|
8624
|
+
job_id: data.jobId
|
|
8625
|
+
},
|
|
8626
|
+
query: {
|
|
8627
|
+
token: data.token
|
|
8628
|
+
}
|
|
8629
|
+
});
|
|
8630
|
+
};
|
|
8631
|
+
exports.getApprovalInfo = getApprovalInfo;
|
|
8139
8632
|
/**
|
|
8140
8633
|
* resume a job for a suspended flow
|
|
8141
8634
|
* @param data The data for the request.
|
|
@@ -8492,9 +8985,13 @@ exports.existsSchedule = existsSchedule;
|
|
|
8492
8985
|
* @param data.page which page to return (start at 1, default 1)
|
|
8493
8986
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
8494
8987
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
8495
|
-
* @param data.path filter by path
|
|
8988
|
+
* @param data.path filter by path (script path)
|
|
8496
8989
|
* @param data.isFlow filter schedules by whether they target a flow
|
|
8497
8990
|
* @param data.pathStart filter schedules by path prefix
|
|
8991
|
+
* @param data.schedulePath exact match on the schedule's path
|
|
8992
|
+
* @param data.description pattern match filter for description field (case-insensitive)
|
|
8993
|
+
* @param data.summary pattern match filter for summary field (case-insensitive)
|
|
8994
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
8498
8995
|
* @returns Schedule schedule list
|
|
8499
8996
|
* @throws ApiError
|
|
8500
8997
|
*/
|
|
@@ -8511,7 +9008,11 @@ const listSchedules = (data) => {
|
|
|
8511
9008
|
args: data.args,
|
|
8512
9009
|
path: data.path,
|
|
8513
9010
|
is_flow: data.isFlow,
|
|
8514
|
-
path_start: data.pathStart
|
|
9011
|
+
path_start: data.pathStart,
|
|
9012
|
+
schedule_path: data.schedulePath,
|
|
9013
|
+
description: data.description,
|
|
9014
|
+
summary: data.summary,
|
|
9015
|
+
broad_filter: data.broadFilter
|
|
8515
9016
|
}
|
|
8516
9017
|
});
|
|
8517
9018
|
};
|
|
@@ -9129,6 +9630,47 @@ const testKafkaConnection = (data) => {
|
|
|
9129
9630
|
});
|
|
9130
9631
|
};
|
|
9131
9632
|
exports.testKafkaConnection = testKafkaConnection;
|
|
9633
|
+
/**
|
|
9634
|
+
* reset kafka trigger offsets to earliest
|
|
9635
|
+
* @param data The data for the request.
|
|
9636
|
+
* @param data.workspace
|
|
9637
|
+
* @param data.path
|
|
9638
|
+
* @returns unknown kafka trigger offsets reset successfully
|
|
9639
|
+
* @throws ApiError
|
|
9640
|
+
*/
|
|
9641
|
+
const resetKafkaOffsets = (data) => {
|
|
9642
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9643
|
+
method: 'POST',
|
|
9644
|
+
url: '/w/{workspace}/kafka_triggers/reset_offsets/{path}',
|
|
9645
|
+
path: {
|
|
9646
|
+
workspace: data.workspace,
|
|
9647
|
+
path: data.path
|
|
9648
|
+
}
|
|
9649
|
+
});
|
|
9650
|
+
};
|
|
9651
|
+
exports.resetKafkaOffsets = resetKafkaOffsets;
|
|
9652
|
+
/**
|
|
9653
|
+
* commit kafka offsets for a specific trigger
|
|
9654
|
+
* @param data The data for the request.
|
|
9655
|
+
* @param data.workspace
|
|
9656
|
+
* @param data.path
|
|
9657
|
+
* @param data.requestBody offsets to commit
|
|
9658
|
+
* @returns unknown kafka offsets committed successfully
|
|
9659
|
+
* @throws ApiError
|
|
9660
|
+
*/
|
|
9661
|
+
const commitKafkaOffsets = (data) => {
|
|
9662
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9663
|
+
method: 'POST',
|
|
9664
|
+
url: '/w/{workspace}/kafka_triggers/commit_offsets/{path}',
|
|
9665
|
+
path: {
|
|
9666
|
+
workspace: data.workspace,
|
|
9667
|
+
path: data.path
|
|
9668
|
+
},
|
|
9669
|
+
body: data.requestBody,
|
|
9670
|
+
mediaType: 'application/json'
|
|
9671
|
+
});
|
|
9672
|
+
};
|
|
9673
|
+
exports.commitKafkaOffsets = commitKafkaOffsets;
|
|
9132
9674
|
/**
|
|
9133
9675
|
* create nats trigger
|
|
9134
9676
|
* @param data The data for the request.
|
|
@@ -9549,6 +10091,47 @@ const generateNativeTriggerServiceConnectUrl = (data) => {
|
|
|
9549
10091
|
});
|
|
9550
10092
|
};
|
|
9551
10093
|
exports.generateNativeTriggerServiceConnectUrl = generateNativeTriggerServiceConnectUrl;
|
|
10094
|
+
/**
|
|
10095
|
+
* check if instance-level credential sharing is available for a service
|
|
10096
|
+
* @param data The data for the request.
|
|
10097
|
+
* @param data.workspace
|
|
10098
|
+
* @param data.serviceName
|
|
10099
|
+
* @returns boolean whether instance sharing is available
|
|
10100
|
+
* @throws ApiError
|
|
10101
|
+
*/
|
|
10102
|
+
const checkInstanceSharingAvailable = (data) => {
|
|
10103
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
10104
|
+
method: 'GET',
|
|
10105
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/instance_sharing_available',
|
|
10106
|
+
path: {
|
|
10107
|
+
workspace: data.workspace,
|
|
10108
|
+
service_name: data.serviceName
|
|
10109
|
+
}
|
|
10110
|
+
});
|
|
10111
|
+
};
|
|
10112
|
+
exports.checkInstanceSharingAvailable = checkInstanceSharingAvailable;
|
|
10113
|
+
/**
|
|
10114
|
+
* generate connect url using instance-level credentials
|
|
10115
|
+
* @param data The data for the request.
|
|
10116
|
+
* @param data.workspace
|
|
10117
|
+
* @param data.serviceName
|
|
10118
|
+
* @param data.requestBody redirect_uri
|
|
10119
|
+
* @returns string authorization URL using instance credentials
|
|
10120
|
+
* @throws ApiError
|
|
10121
|
+
*/
|
|
10122
|
+
const generateInstanceConnectUrl = (data) => {
|
|
10123
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
10124
|
+
method: 'POST',
|
|
10125
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/generate_instance_connect_url',
|
|
10126
|
+
path: {
|
|
10127
|
+
workspace: data.workspace,
|
|
10128
|
+
service_name: data.serviceName
|
|
10129
|
+
},
|
|
10130
|
+
body: data.requestBody,
|
|
10131
|
+
mediaType: 'application/json'
|
|
10132
|
+
});
|
|
10133
|
+
};
|
|
10134
|
+
exports.generateInstanceConnectUrl = generateInstanceConnectUrl;
|
|
9552
10135
|
/**
|
|
9553
10136
|
* delete native trigger service
|
|
9554
10137
|
* @param data The data for the request.
|
|
@@ -9573,21 +10156,17 @@ exports.deleteNativeTriggerService = deleteNativeTriggerService;
|
|
|
9573
10156
|
* @param data The data for the request.
|
|
9574
10157
|
* @param data.workspace
|
|
9575
10158
|
* @param data.serviceName
|
|
9576
|
-
* @param data.
|
|
9577
|
-
* @param data.state
|
|
9578
|
-
* @param data.requestBody redirect_uri
|
|
10159
|
+
* @param data.requestBody OAuth callback data
|
|
9579
10160
|
* @returns string native trigger service oauth completed
|
|
9580
10161
|
* @throws ApiError
|
|
9581
10162
|
*/
|
|
9582
10163
|
const nativeTriggerServiceCallback = (data) => {
|
|
9583
10164
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9584
10165
|
method: 'POST',
|
|
9585
|
-
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback
|
|
10166
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback',
|
|
9586
10167
|
path: {
|
|
9587
10168
|
workspace: data.workspace,
|
|
9588
|
-
service_name: data.serviceName
|
|
9589
|
-
code: data.code,
|
|
9590
|
-
state: data.state
|
|
10169
|
+
service_name: data.serviceName
|
|
9591
10170
|
},
|
|
9592
10171
|
body: data.requestBody,
|
|
9593
10172
|
mediaType: 'application/json'
|
|
@@ -9782,6 +10361,67 @@ const listNextCloudEvents = (data) => {
|
|
|
9782
10361
|
});
|
|
9783
10362
|
};
|
|
9784
10363
|
exports.listNextCloudEvents = listNextCloudEvents;
|
|
10364
|
+
/**
|
|
10365
|
+
* list Google Calendars for the authenticated user
|
|
10366
|
+
* @param data The data for the request.
|
|
10367
|
+
* @param data.workspace
|
|
10368
|
+
* @returns GoogleCalendarEntry list of Google Calendars
|
|
10369
|
+
* @throws ApiError
|
|
10370
|
+
*/
|
|
10371
|
+
const listGoogleCalendars = (data) => {
|
|
10372
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
10373
|
+
method: 'GET',
|
|
10374
|
+
url: '/w/{workspace}/native_triggers/google/calendars',
|
|
10375
|
+
path: {
|
|
10376
|
+
workspace: data.workspace
|
|
10377
|
+
}
|
|
10378
|
+
});
|
|
10379
|
+
};
|
|
10380
|
+
exports.listGoogleCalendars = listGoogleCalendars;
|
|
10381
|
+
/**
|
|
10382
|
+
* list or search Google Drive files
|
|
10383
|
+
* @param data The data for the request.
|
|
10384
|
+
* @param data.workspace
|
|
10385
|
+
* @param data.q search query to filter files by name
|
|
10386
|
+
* @param data.parentId folder ID to list children of
|
|
10387
|
+
* @param data.pageToken token for next page of results
|
|
10388
|
+
* @param data.sharedWithMe if true, list files shared with the user
|
|
10389
|
+
* @returns GoogleDriveFilesResponse list of Google Drive files
|
|
10390
|
+
* @throws ApiError
|
|
10391
|
+
*/
|
|
10392
|
+
const listGoogleDriveFiles = (data) => {
|
|
10393
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
10394
|
+
method: 'GET',
|
|
10395
|
+
url: '/w/{workspace}/native_triggers/google/drive/files',
|
|
10396
|
+
path: {
|
|
10397
|
+
workspace: data.workspace
|
|
10398
|
+
},
|
|
10399
|
+
query: {
|
|
10400
|
+
q: data.q,
|
|
10401
|
+
parent_id: data.parentId,
|
|
10402
|
+
page_token: data.pageToken,
|
|
10403
|
+
shared_with_me: data.sharedWithMe
|
|
10404
|
+
}
|
|
10405
|
+
});
|
|
10406
|
+
};
|
|
10407
|
+
exports.listGoogleDriveFiles = listGoogleDriveFiles;
|
|
10408
|
+
/**
|
|
10409
|
+
* list shared drives accessible to the user
|
|
10410
|
+
* @param data The data for the request.
|
|
10411
|
+
* @param data.workspace
|
|
10412
|
+
* @returns SharedDriveEntry list of shared drives
|
|
10413
|
+
* @throws ApiError
|
|
10414
|
+
*/
|
|
10415
|
+
const listGoogleSharedDrives = (data) => {
|
|
10416
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
10417
|
+
method: 'GET',
|
|
10418
|
+
url: '/w/{workspace}/native_triggers/google/drive/shared_drives',
|
|
10419
|
+
path: {
|
|
10420
|
+
workspace: data.workspace
|
|
10421
|
+
}
|
|
10422
|
+
});
|
|
10423
|
+
};
|
|
10424
|
+
exports.listGoogleSharedDrives = listGoogleSharedDrives;
|
|
9785
10425
|
/**
|
|
9786
10426
|
* receive webhook from external native trigger service
|
|
9787
10427
|
* @param data The data for the request.
|
|
@@ -10826,7 +11466,7 @@ exports.listInstanceGroupsWithWorkspaces = listInstanceGroupsWithWorkspaces;
|
|
|
10826
11466
|
* get instance group
|
|
10827
11467
|
* @param data The data for the request.
|
|
10828
11468
|
* @param data.name
|
|
10829
|
-
* @returns
|
|
11469
|
+
* @returns InstanceGroupWithWorkspaces instance group
|
|
10830
11470
|
* @throws ApiError
|
|
10831
11471
|
*/
|
|
10832
11472
|
const getInstanceGroup = (data) => {
|
|
@@ -12813,11 +13453,11 @@ exports.getConcurrencyKey = getConcurrencyKey;
|
|
|
12813
13453
|
* @param data.workspace
|
|
12814
13454
|
* @param data.concurrencyKey
|
|
12815
13455
|
* @param data.rowLimit
|
|
12816
|
-
* @param data.createdBy
|
|
12817
|
-
* @param data.label
|
|
13456
|
+
* @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')
|
|
13457
|
+
* @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')
|
|
12818
13458
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
12819
|
-
* @param data.scriptPathExact
|
|
12820
|
-
* @param data.scriptPathStart
|
|
13459
|
+
* @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')
|
|
13460
|
+
* @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')
|
|
12821
13461
|
* @param data.schedulePath mask to filter by schedule path
|
|
12822
13462
|
* @param data.scriptHash mask to filter exact matching path
|
|
12823
13463
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -12828,14 +13468,14 @@ exports.getConcurrencyKey = getConcurrencyKey;
|
|
|
12828
13468
|
* @param data.completedAfter filter on started after (exclusive) timestamp
|
|
12829
13469
|
* @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
|
|
12830
13470
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
12831
|
-
* @param data.jobKinds filter
|
|
13471
|
+
* @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')
|
|
12832
13472
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
12833
|
-
* @param data.tag filter
|
|
13473
|
+
* @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')
|
|
12834
13474
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
12835
13475
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
12836
13476
|
* @param data.page which page to return (start at 1, default 1)
|
|
12837
13477
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12838
|
-
* @param data.triggerKind trigger kind (schedule,
|
|
13478
|
+
* @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')
|
|
12839
13479
|
* @param data.isSkipped is the job skipped
|
|
12840
13480
|
* @param data.isFlowStep is the job a flow step
|
|
12841
13481
|
* @param data.hasNullParent has null parent
|
|
@@ -12960,22 +13600,58 @@ const countSearchLogsIndex = (data) => {
|
|
|
12960
13600
|
};
|
|
12961
13601
|
exports.countSearchLogsIndex = countSearchLogsIndex;
|
|
12962
13602
|
/**
|
|
12963
|
-
*
|
|
13603
|
+
* Get index disk storage sizes from the indexer.
|
|
13604
|
+
* @returns unknown disk storage sizes for each index
|
|
13605
|
+
* @throws ApiError
|
|
13606
|
+
*/
|
|
13607
|
+
const getIndexDiskStorageSizes = () => {
|
|
13608
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13609
|
+
method: 'GET',
|
|
13610
|
+
url: '/srch/index/storage/disk'
|
|
13611
|
+
});
|
|
13612
|
+
};
|
|
13613
|
+
exports.getIndexDiskStorageSizes = getIndexDiskStorageSizes;
|
|
13614
|
+
/**
|
|
13615
|
+
* Clear an index and restart the indexer.
|
|
12964
13616
|
* @param data The data for the request.
|
|
12965
13617
|
* @param data.idxName
|
|
12966
|
-
* @returns string idx to be deleted and
|
|
13618
|
+
* @returns string idx to be deleted and indexer restarting
|
|
12967
13619
|
* @throws ApiError
|
|
12968
13620
|
*/
|
|
12969
13621
|
const clearIndex = (data) => {
|
|
12970
13622
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
12971
13623
|
method: 'DELETE',
|
|
12972
|
-
url: '/
|
|
13624
|
+
url: '/indexer/delete/{idx_name}',
|
|
12973
13625
|
path: {
|
|
12974
13626
|
idx_name: data.idxName
|
|
12975
13627
|
}
|
|
12976
13628
|
});
|
|
12977
13629
|
};
|
|
12978
13630
|
exports.clearIndex = clearIndex;
|
|
13631
|
+
/**
|
|
13632
|
+
* Get index storage sizes (disk and S3).
|
|
13633
|
+
* @returns unknown storage sizes for each index
|
|
13634
|
+
* @throws ApiError
|
|
13635
|
+
*/
|
|
13636
|
+
const getIndexStorageSizes = () => {
|
|
13637
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13638
|
+
method: 'GET',
|
|
13639
|
+
url: '/indexer/storage'
|
|
13640
|
+
});
|
|
13641
|
+
};
|
|
13642
|
+
exports.getIndexStorageSizes = getIndexStorageSizes;
|
|
13643
|
+
/**
|
|
13644
|
+
* Get indexer status including liveness and storage sizes.
|
|
13645
|
+
* @returns unknown indexer status for each index
|
|
13646
|
+
* @throws ApiError
|
|
13647
|
+
*/
|
|
13648
|
+
const getIndexerStatus = () => {
|
|
13649
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13650
|
+
method: 'GET',
|
|
13651
|
+
url: '/indexer/status'
|
|
13652
|
+
});
|
|
13653
|
+
};
|
|
13654
|
+
exports.getIndexerStatus = getIndexerStatus;
|
|
12979
13655
|
/**
|
|
12980
13656
|
* List all assets in the workspace with cursor pagination
|
|
12981
13657
|
* @param data The data for the request.
|
|
@@ -12986,6 +13662,9 @@ exports.clearIndex = clearIndex;
|
|
|
12986
13662
|
* @param data.assetPath Filter by asset path (case-insensitive partial match)
|
|
12987
13663
|
* @param data.usagePath Filter by usage path (case-insensitive partial match)
|
|
12988
13664
|
* @param data.assetKinds Filter by asset kinds (multiple values allowed)
|
|
13665
|
+
* @param data.path exact path match filter
|
|
13666
|
+
* @param data.columns JSONB subset match filter for columns using base64 encoded JSON
|
|
13667
|
+
* @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
|
|
12989
13668
|
* @returns unknown paginated assets in the workspace
|
|
12990
13669
|
* @throws ApiError
|
|
12991
13670
|
*/
|
|
@@ -13002,7 +13681,10 @@ const listAssets = (data) => {
|
|
|
13002
13681
|
cursor_id: data.cursorId,
|
|
13003
13682
|
asset_path: data.assetPath,
|
|
13004
13683
|
usage_path: data.usagePath,
|
|
13005
|
-
asset_kinds: data.assetKinds
|
|
13684
|
+
asset_kinds: data.assetKinds,
|
|
13685
|
+
path: data.path,
|
|
13686
|
+
columns: data.columns,
|
|
13687
|
+
broad_filter: data.broadFilter
|
|
13006
13688
|
}
|
|
13007
13689
|
});
|
|
13008
13690
|
};
|
|
@@ -13044,6 +13726,79 @@ const listFavoriteAssets = (data) => {
|
|
|
13044
13726
|
});
|
|
13045
13727
|
};
|
|
13046
13728
|
exports.listFavoriteAssets = listFavoriteAssets;
|
|
13729
|
+
/**
|
|
13730
|
+
* List all volumes in the workspace
|
|
13731
|
+
* @param data The data for the request.
|
|
13732
|
+
* @param data.workspace
|
|
13733
|
+
* @returns Volume list of volumes
|
|
13734
|
+
* @throws ApiError
|
|
13735
|
+
*/
|
|
13736
|
+
const listVolumes = (data) => {
|
|
13737
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13738
|
+
method: 'GET',
|
|
13739
|
+
url: '/w/{workspace}/volumes/list',
|
|
13740
|
+
path: {
|
|
13741
|
+
workspace: data.workspace
|
|
13742
|
+
}
|
|
13743
|
+
});
|
|
13744
|
+
};
|
|
13745
|
+
exports.listVolumes = listVolumes;
|
|
13746
|
+
/**
|
|
13747
|
+
* Get the volume storage name (secondary storage) or null for primary
|
|
13748
|
+
* @param data The data for the request.
|
|
13749
|
+
* @param data.workspace
|
|
13750
|
+
* @returns string volume storage name or null
|
|
13751
|
+
* @throws ApiError
|
|
13752
|
+
*/
|
|
13753
|
+
const getVolumeStorage = (data) => {
|
|
13754
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13755
|
+
method: 'GET',
|
|
13756
|
+
url: '/w/{workspace}/volumes/storage',
|
|
13757
|
+
path: {
|
|
13758
|
+
workspace: data.workspace
|
|
13759
|
+
}
|
|
13760
|
+
});
|
|
13761
|
+
};
|
|
13762
|
+
exports.getVolumeStorage = getVolumeStorage;
|
|
13763
|
+
/**
|
|
13764
|
+
* Create a new volume
|
|
13765
|
+
* @param data The data for the request.
|
|
13766
|
+
* @param data.workspace
|
|
13767
|
+
* @param data.requestBody
|
|
13768
|
+
* @returns string volume created
|
|
13769
|
+
* @throws ApiError
|
|
13770
|
+
*/
|
|
13771
|
+
const createVolume = (data) => {
|
|
13772
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13773
|
+
method: 'POST',
|
|
13774
|
+
url: '/w/{workspace}/volumes/create',
|
|
13775
|
+
path: {
|
|
13776
|
+
workspace: data.workspace
|
|
13777
|
+
},
|
|
13778
|
+
body: data.requestBody,
|
|
13779
|
+
mediaType: 'application/json'
|
|
13780
|
+
});
|
|
13781
|
+
};
|
|
13782
|
+
exports.createVolume = createVolume;
|
|
13783
|
+
/**
|
|
13784
|
+
* Delete a volume (admin only)
|
|
13785
|
+
* @param data The data for the request.
|
|
13786
|
+
* @param data.workspace
|
|
13787
|
+
* @param data.name
|
|
13788
|
+
* @returns string volume deleted
|
|
13789
|
+
* @throws ApiError
|
|
13790
|
+
*/
|
|
13791
|
+
const deleteVolume = (data) => {
|
|
13792
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13793
|
+
method: 'DELETE',
|
|
13794
|
+
url: '/w/{workspace}/volumes/delete/{name}',
|
|
13795
|
+
path: {
|
|
13796
|
+
workspace: data.workspace,
|
|
13797
|
+
name: data.name
|
|
13798
|
+
}
|
|
13799
|
+
});
|
|
13800
|
+
};
|
|
13801
|
+
exports.deleteVolume = deleteVolume;
|
|
13047
13802
|
/**
|
|
13048
13803
|
* list available MCP tools
|
|
13049
13804
|
* @param data The data for the request.
|