windmill-utils-internal 1.3.4 → 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 +310 -55
- package/dist/cjs/gen/services.gen.js +623 -78
- package/dist/cjs/gen/types.gen.d.ts +949 -178
- 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/esm/config/config.js +13 -77
- package/dist/esm/gen/core/OpenAPI.js +1 -1
- package/dist/esm/gen/services.gen.d.ts +310 -55
- package/dist/esm/gen/services.gen.js +583 -65
- package/dist/esm/gen/types.gen.d.ts +949 -178
- 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/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.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
|
}
|
|
@@ -3055,6 +3181,113 @@ const workspaceMuteCriticalAlertsUi = (data) => {
|
|
|
3055
3181
|
});
|
|
3056
3182
|
};
|
|
3057
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;
|
|
3058
3291
|
/**
|
|
3059
3292
|
* Set public app rate limit for this workspace
|
|
3060
3293
|
* @param data The data for the request.
|
|
@@ -3546,6 +3779,10 @@ exports.existsResource = existsResource;
|
|
|
3546
3779
|
* @param data.resourceType resource_types to list from, separated by ',',
|
|
3547
3780
|
* @param data.resourceTypeExclude resource_types to not list from, separated by ',',
|
|
3548
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)
|
|
3549
3786
|
* @returns ListableResource resource list
|
|
3550
3787
|
* @throws ApiError
|
|
3551
3788
|
*/
|
|
@@ -3561,7 +3798,11 @@ const listResource = (data) => {
|
|
|
3561
3798
|
per_page: data.perPage,
|
|
3562
3799
|
resource_type: data.resourceType,
|
|
3563
3800
|
resource_type_exclude: data.resourceTypeExclude,
|
|
3564
|
-
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
|
|
3565
3806
|
}
|
|
3566
3807
|
});
|
|
3567
3808
|
};
|
|
@@ -3645,7 +3886,7 @@ exports.createResourceType = createResourceType;
|
|
|
3645
3886
|
* get map from resource type to format extension
|
|
3646
3887
|
* @param data The data for the request.
|
|
3647
3888
|
* @param data.workspace
|
|
3648
|
-
* @returns unknown map from resource type to file
|
|
3889
|
+
* @returns unknown map from resource type to file resource info
|
|
3649
3890
|
* @throws ApiError
|
|
3650
3891
|
*/
|
|
3651
3892
|
const fileResourceTypeToFileExtMap = (data) => {
|
|
@@ -4108,7 +4349,7 @@ exports.listSearchScript = listSearchScript;
|
|
|
4108
4349
|
* @param data.page which page to return (start at 1, default 1)
|
|
4109
4350
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
4110
4351
|
* @param data.orderDesc order by desc order (default true)
|
|
4111
|
-
* @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')
|
|
4112
4353
|
* @param data.pathStart mask to filter matching starting path
|
|
4113
4354
|
* @param data.pathExact mask to filter exact matching path
|
|
4114
4355
|
* @param data.firstParentHash mask to filter scripts whom first direct parent has exact hash
|
|
@@ -5488,7 +5729,7 @@ exports.listSearchFlow = listSearchFlow;
|
|
|
5488
5729
|
* @param data.page which page to return (start at 1, default 1)
|
|
5489
5730
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5490
5731
|
* @param data.orderDesc order by desc order (default true)
|
|
5491
|
-
* @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')
|
|
5492
5733
|
* @param data.pathStart mask to filter matching starting path
|
|
5493
5734
|
* @param data.pathExact mask to filter exact matching path
|
|
5494
5735
|
* @param data.showArchived (default false)
|
|
@@ -5948,7 +6189,7 @@ exports.listConversationMessages = listConversationMessages;
|
|
|
5948
6189
|
* @param data.page which page to return (start at 1, default 1)
|
|
5949
6190
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5950
6191
|
* @param data.orderDesc order by desc order (default true)
|
|
5951
|
-
* @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')
|
|
5952
6193
|
* @param data.pathStart mask to filter matching starting path
|
|
5953
6194
|
* @param data.pathExact mask to filter exact matching path
|
|
5954
6195
|
* @param data.starredOnly (default false)
|
|
@@ -6019,7 +6260,7 @@ exports.listSearchApp = listSearchApp;
|
|
|
6019
6260
|
* @param data.page which page to return (start at 1, default 1)
|
|
6020
6261
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6021
6262
|
* @param data.orderDesc order by desc order (default true)
|
|
6022
|
-
* @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')
|
|
6023
6264
|
* @param data.pathStart mask to filter matching starting path
|
|
6024
6265
|
* @param data.pathExact mask to filter exact matching path
|
|
6025
6266
|
* @param data.starredOnly (default false)
|
|
@@ -6778,6 +7019,50 @@ const runScriptPreviewInline = (data) => {
|
|
|
6778
7019
|
});
|
|
6779
7020
|
};
|
|
6780
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;
|
|
6781
7066
|
/**
|
|
6782
7067
|
* run script preview and wait for result
|
|
6783
7068
|
* @param data The data for the request.
|
|
@@ -6923,26 +7208,26 @@ exports.runDynamicSelect = runDynamicSelect;
|
|
|
6923
7208
|
* @param data The data for the request.
|
|
6924
7209
|
* @param data.workspace
|
|
6925
7210
|
* @param data.orderDesc order by desc order (default true)
|
|
6926
|
-
* @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')
|
|
6927
7212
|
* @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
|
|
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')
|
|
6931
7216
|
* @param data.schedulePath mask to filter by schedule path
|
|
6932
|
-
* @param data.triggerPath
|
|
6933
|
-
* @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')
|
|
6934
7219
|
* @param data.scriptHash mask to filter exact matching path
|
|
6935
7220
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
6936
7221
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
6937
7222
|
* @param data.success filter on successful jobs
|
|
6938
7223
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
6939
|
-
* @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')
|
|
6940
7225
|
* @param data.suspended filter on suspended jobs
|
|
6941
7226
|
* @param data.running filter on running jobs
|
|
6942
7227
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
6943
7228
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
6944
7229
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
6945
|
-
* @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')
|
|
6946
7231
|
* @param data.page which page to return (start at 1, default 1)
|
|
6947
7232
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6948
7233
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
@@ -7056,12 +7341,12 @@ exports.countCompletedJobs = countCompletedJobs;
|
|
|
7056
7341
|
* get the ids of all jobs matching the given filters
|
|
7057
7342
|
* @param data The data for the request.
|
|
7058
7343
|
* @param data.workspace
|
|
7059
|
-
* @param data.createdBy
|
|
7060
|
-
* @param data.label
|
|
7061
|
-
* @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')
|
|
7062
7347
|
* @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
|
|
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')
|
|
7065
7350
|
* @param data.schedulePath mask to filter by schedule path
|
|
7066
7351
|
* @param data.scriptHash mask to filter exact matching path
|
|
7067
7352
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -7074,10 +7359,10 @@ exports.countCompletedJobs = countCompletedJobs;
|
|
|
7074
7359
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
7075
7360
|
* @param data.running filter on running jobs
|
|
7076
7361
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7077
|
-
* @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')
|
|
7078
7363
|
* @param data.suspended filter on suspended jobs
|
|
7079
7364
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7080
|
-
* @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')
|
|
7081
7366
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7082
7367
|
* @param data.page which page to return (start at 1, default 1)
|
|
7083
7368
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
@@ -7138,23 +7423,23 @@ exports.listFilteredJobsUuids = listFilteredJobsUuids;
|
|
|
7138
7423
|
* @param data The data for the request.
|
|
7139
7424
|
* @param data.workspace
|
|
7140
7425
|
* @param data.orderDesc order by desc order (default true)
|
|
7141
|
-
* @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')
|
|
7142
7427
|
* @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
|
|
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')
|
|
7145
7430
|
* @param data.schedulePath mask to filter by schedule path
|
|
7146
7431
|
* @param data.scriptHash mask to filter exact matching path
|
|
7147
7432
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
7148
7433
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
7149
7434
|
* @param data.success filter on successful jobs
|
|
7150
7435
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7151
|
-
* @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')
|
|
7152
7437
|
* @param data.suspended filter on suspended jobs
|
|
7153
7438
|
* @param data.running filter on running jobs
|
|
7154
7439
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7155
7440
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7156
7441
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7157
|
-
* @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')
|
|
7158
7443
|
* @param data.page which page to return (start at 1, default 1)
|
|
7159
7444
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7160
7445
|
* @param data.concurrencyKey
|
|
@@ -7294,22 +7579,22 @@ exports.cancelSuspendedTriggerJobs = cancelSuspendedTriggerJobs;
|
|
|
7294
7579
|
* @param data The data for the request.
|
|
7295
7580
|
* @param data.workspace
|
|
7296
7581
|
* @param data.orderDesc order by desc order (default true)
|
|
7297
|
-
* @param data.createdBy
|
|
7298
|
-
* @param data.label
|
|
7299
|
-
* @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')
|
|
7300
7585
|
* @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
|
|
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')
|
|
7303
7588
|
* @param data.schedulePath mask to filter by schedule path
|
|
7304
7589
|
* @param data.scriptHash mask to filter exact matching path
|
|
7305
7590
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
7306
7591
|
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
7307
7592
|
* @param data.success filter on successful jobs
|
|
7308
|
-
* @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')
|
|
7309
7594
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7310
7595
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7311
7596
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7312
|
-
* @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')
|
|
7313
7598
|
* @param data.page which page to return (start at 1, default 1)
|
|
7314
7599
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7315
7600
|
* @param data.isSkipped is the job skipped
|
|
@@ -7464,12 +7749,12 @@ exports.deleteJobs = deleteJobs;
|
|
|
7464
7749
|
* list all jobs
|
|
7465
7750
|
* @param data The data for the request.
|
|
7466
7751
|
* @param data.workspace
|
|
7467
|
-
* @param data.createdBy
|
|
7468
|
-
* @param data.label
|
|
7469
|
-
* @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')
|
|
7470
7755
|
* @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
|
|
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')
|
|
7473
7758
|
* @param data.schedulePath mask to filter by schedule path
|
|
7474
7759
|
* @param data.scriptHash mask to filter exact matching path
|
|
7475
7760
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -7482,20 +7767,21 @@ exports.deleteJobs = deleteJobs;
|
|
|
7482
7767
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
7483
7768
|
* @param data.running filter on running jobs
|
|
7484
7769
|
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
7485
|
-
* @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')
|
|
7486
7771
|
* @param data.suspended filter on suspended jobs
|
|
7487
7772
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
7488
|
-
* @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')
|
|
7489
7774
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
7490
7775
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
7491
7776
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7492
|
-
* @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')
|
|
7493
7778
|
* @param data.isSkipped is the job skipped
|
|
7494
7779
|
* @param data.isFlowStep is the job a flow step
|
|
7495
7780
|
* @param data.hasNullParent has null parent
|
|
7496
7781
|
* @param data.success filter on successful jobs
|
|
7497
7782
|
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
7498
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)
|
|
7499
7785
|
* @returns Job All jobs
|
|
7500
7786
|
* @throws ApiError
|
|
7501
7787
|
*/
|
|
@@ -7538,7 +7824,8 @@ const listJobs = (data) => {
|
|
|
7538
7824
|
has_null_parent: data.hasNullParent,
|
|
7539
7825
|
success: data.success,
|
|
7540
7826
|
all_workspaces: data.allWorkspaces,
|
|
7541
|
-
is_not_schedule: data.isNotSchedule
|
|
7827
|
+
is_not_schedule: data.isNotSchedule,
|
|
7828
|
+
broad_filter: data.broadFilter
|
|
7542
7829
|
}
|
|
7543
7830
|
});
|
|
7544
7831
|
};
|
|
@@ -8078,6 +8365,8 @@ exports.getResumeUrls = getResumeUrls;
|
|
|
8078
8365
|
* @param data.message
|
|
8079
8366
|
* @param data.defaultArgsJson
|
|
8080
8367
|
* @param data.dynamicEnumsJson
|
|
8368
|
+
* @param data.resumeButtonText
|
|
8369
|
+
* @param data.cancelButtonText
|
|
8081
8370
|
* @returns unknown Interactive slack approval message sent successfully
|
|
8082
8371
|
* @throws ApiError
|
|
8083
8372
|
*/
|
|
@@ -8096,7 +8385,9 @@ const getSlackApprovalPayload = (data) => {
|
|
|
8096
8385
|
channel_id: data.channelId,
|
|
8097
8386
|
flow_step_id: data.flowStepId,
|
|
8098
8387
|
default_args_json: data.defaultArgsJson,
|
|
8099
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8388
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8389
|
+
resume_button_text: data.resumeButtonText,
|
|
8390
|
+
cancel_button_text: data.cancelButtonText
|
|
8100
8391
|
}
|
|
8101
8392
|
});
|
|
8102
8393
|
};
|
|
@@ -8113,6 +8404,8 @@ exports.getSlackApprovalPayload = getSlackApprovalPayload;
|
|
|
8113
8404
|
* @param data.message
|
|
8114
8405
|
* @param data.defaultArgsJson
|
|
8115
8406
|
* @param data.dynamicEnumsJson
|
|
8407
|
+
* @param data.resumeButtonText
|
|
8408
|
+
* @param data.cancelButtonText
|
|
8116
8409
|
* @returns unknown Interactive slack approval message sent successfully
|
|
8117
8410
|
* @throws ApiError
|
|
8118
8411
|
*/
|
|
@@ -8131,7 +8424,9 @@ const getTeamsApprovalPayload = (data) => {
|
|
|
8131
8424
|
channel_name: data.channelName,
|
|
8132
8425
|
flow_step_id: data.flowStepId,
|
|
8133
8426
|
default_args_json: data.defaultArgsJson,
|
|
8134
|
-
dynamic_enums_json: data.dynamicEnumsJson
|
|
8427
|
+
dynamic_enums_json: data.dynamicEnumsJson,
|
|
8428
|
+
resume_button_text: data.resumeButtonText,
|
|
8429
|
+
cancel_button_text: data.cancelButtonText
|
|
8135
8430
|
}
|
|
8136
8431
|
});
|
|
8137
8432
|
};
|
|
@@ -8492,9 +8787,13 @@ exports.existsSchedule = existsSchedule;
|
|
|
8492
8787
|
* @param data.page which page to return (start at 1, default 1)
|
|
8493
8788
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
8494
8789
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
8495
|
-
* @param data.path filter by path
|
|
8790
|
+
* @param data.path filter by path (script path)
|
|
8496
8791
|
* @param data.isFlow filter schedules by whether they target a flow
|
|
8497
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)
|
|
8498
8797
|
* @returns Schedule schedule list
|
|
8499
8798
|
* @throws ApiError
|
|
8500
8799
|
*/
|
|
@@ -8511,7 +8810,11 @@ const listSchedules = (data) => {
|
|
|
8511
8810
|
args: data.args,
|
|
8512
8811
|
path: data.path,
|
|
8513
8812
|
is_flow: data.isFlow,
|
|
8514
|
-
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
|
|
8515
8818
|
}
|
|
8516
8819
|
});
|
|
8517
8820
|
};
|
|
@@ -9129,6 +9432,47 @@ const testKafkaConnection = (data) => {
|
|
|
9129
9432
|
});
|
|
9130
9433
|
};
|
|
9131
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;
|
|
9132
9476
|
/**
|
|
9133
9477
|
* create nats trigger
|
|
9134
9478
|
* @param data The data for the request.
|
|
@@ -9549,6 +9893,47 @@ const generateNativeTriggerServiceConnectUrl = (data) => {
|
|
|
9549
9893
|
});
|
|
9550
9894
|
};
|
|
9551
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;
|
|
9552
9937
|
/**
|
|
9553
9938
|
* delete native trigger service
|
|
9554
9939
|
* @param data The data for the request.
|
|
@@ -9573,21 +9958,17 @@ exports.deleteNativeTriggerService = deleteNativeTriggerService;
|
|
|
9573
9958
|
* @param data The data for the request.
|
|
9574
9959
|
* @param data.workspace
|
|
9575
9960
|
* @param data.serviceName
|
|
9576
|
-
* @param data.
|
|
9577
|
-
* @param data.state
|
|
9578
|
-
* @param data.requestBody redirect_uri
|
|
9961
|
+
* @param data.requestBody OAuth callback data
|
|
9579
9962
|
* @returns string native trigger service oauth completed
|
|
9580
9963
|
* @throws ApiError
|
|
9581
9964
|
*/
|
|
9582
9965
|
const nativeTriggerServiceCallback = (data) => {
|
|
9583
9966
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
9584
9967
|
method: 'POST',
|
|
9585
|
-
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback
|
|
9968
|
+
url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback',
|
|
9586
9969
|
path: {
|
|
9587
9970
|
workspace: data.workspace,
|
|
9588
|
-
service_name: data.serviceName
|
|
9589
|
-
code: data.code,
|
|
9590
|
-
state: data.state
|
|
9971
|
+
service_name: data.serviceName
|
|
9591
9972
|
},
|
|
9592
9973
|
body: data.requestBody,
|
|
9593
9974
|
mediaType: 'application/json'
|
|
@@ -9782,6 +10163,67 @@ const listNextCloudEvents = (data) => {
|
|
|
9782
10163
|
});
|
|
9783
10164
|
};
|
|
9784
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;
|
|
9785
10227
|
/**
|
|
9786
10228
|
* receive webhook from external native trigger service
|
|
9787
10229
|
* @param data The data for the request.
|
|
@@ -10826,7 +11268,7 @@ exports.listInstanceGroupsWithWorkspaces = listInstanceGroupsWithWorkspaces;
|
|
|
10826
11268
|
* get instance group
|
|
10827
11269
|
* @param data The data for the request.
|
|
10828
11270
|
* @param data.name
|
|
10829
|
-
* @returns
|
|
11271
|
+
* @returns InstanceGroupWithWorkspaces instance group
|
|
10830
11272
|
* @throws ApiError
|
|
10831
11273
|
*/
|
|
10832
11274
|
const getInstanceGroup = (data) => {
|
|
@@ -12813,11 +13255,11 @@ exports.getConcurrencyKey = getConcurrencyKey;
|
|
|
12813
13255
|
* @param data.workspace
|
|
12814
13256
|
* @param data.concurrencyKey
|
|
12815
13257
|
* @param data.rowLimit
|
|
12816
|
-
* @param data.createdBy
|
|
12817
|
-
* @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')
|
|
12818
13260
|
* @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
|
|
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')
|
|
12821
13263
|
* @param data.schedulePath mask to filter by schedule path
|
|
12822
13264
|
* @param data.scriptHash mask to filter exact matching path
|
|
12823
13265
|
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
@@ -12828,14 +13270,14 @@ exports.getConcurrencyKey = getConcurrencyKey;
|
|
|
12828
13270
|
* @param data.completedAfter filter on started after (exclusive) timestamp
|
|
12829
13271
|
* @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
|
|
12830
13272
|
* @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
|
|
12831
|
-
* @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')
|
|
12832
13274
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
12833
|
-
* @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')
|
|
12834
13276
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
12835
13277
|
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
12836
13278
|
* @param data.page which page to return (start at 1, default 1)
|
|
12837
13279
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12838
|
-
* @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')
|
|
12839
13281
|
* @param data.isSkipped is the job skipped
|
|
12840
13282
|
* @param data.isFlowStep is the job a flow step
|
|
12841
13283
|
* @param data.hasNullParent has null parent
|
|
@@ -12960,22 +13402,46 @@ const countSearchLogsIndex = (data) => {
|
|
|
12960
13402
|
};
|
|
12961
13403
|
exports.countSearchLogsIndex = countSearchLogsIndex;
|
|
12962
13404
|
/**
|
|
12963
|
-
*
|
|
13405
|
+
* Clear an index and restart the indexer.
|
|
12964
13406
|
* @param data The data for the request.
|
|
12965
13407
|
* @param data.idxName
|
|
12966
|
-
* @returns string idx to be deleted and
|
|
13408
|
+
* @returns string idx to be deleted and indexer restarting
|
|
12967
13409
|
* @throws ApiError
|
|
12968
13410
|
*/
|
|
12969
13411
|
const clearIndex = (data) => {
|
|
12970
13412
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
12971
13413
|
method: 'DELETE',
|
|
12972
|
-
url: '/
|
|
13414
|
+
url: '/indexer/delete/{idx_name}',
|
|
12973
13415
|
path: {
|
|
12974
13416
|
idx_name: data.idxName
|
|
12975
13417
|
}
|
|
12976
13418
|
});
|
|
12977
13419
|
};
|
|
12978
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;
|
|
12979
13445
|
/**
|
|
12980
13446
|
* List all assets in the workspace with cursor pagination
|
|
12981
13447
|
* @param data The data for the request.
|
|
@@ -12986,6 +13452,9 @@ exports.clearIndex = clearIndex;
|
|
|
12986
13452
|
* @param data.assetPath Filter by asset path (case-insensitive partial match)
|
|
12987
13453
|
* @param data.usagePath Filter by usage path (case-insensitive partial match)
|
|
12988
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)
|
|
12989
13458
|
* @returns unknown paginated assets in the workspace
|
|
12990
13459
|
* @throws ApiError
|
|
12991
13460
|
*/
|
|
@@ -13002,7 +13471,10 @@ const listAssets = (data) => {
|
|
|
13002
13471
|
cursor_id: data.cursorId,
|
|
13003
13472
|
asset_path: data.assetPath,
|
|
13004
13473
|
usage_path: data.usagePath,
|
|
13005
|
-
asset_kinds: data.assetKinds
|
|
13474
|
+
asset_kinds: data.assetKinds,
|
|
13475
|
+
path: data.path,
|
|
13476
|
+
columns: data.columns,
|
|
13477
|
+
broad_filter: data.broadFilter
|
|
13006
13478
|
}
|
|
13007
13479
|
});
|
|
13008
13480
|
};
|
|
@@ -13044,6 +13516,79 @@ const listFavoriteAssets = (data) => {
|
|
|
13044
13516
|
});
|
|
13045
13517
|
};
|
|
13046
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;
|
|
13047
13592
|
/**
|
|
13048
13593
|
* list available MCP tools
|
|
13049
13594
|
* @param data The data for the request.
|