windmill-utils-internal 1.3.1 → 1.3.3

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.
Files changed (84) hide show
  1. package/dist/{gen → cjs/gen}/core/OpenAPI.js +1 -1
  2. package/dist/{gen → cjs/gen}/services.gen.d.ts +1058 -52
  3. package/dist/{gen → cjs/gen}/services.gen.js +2284 -154
  4. package/dist/{gen → cjs/gen}/types.gen.d.ts +2904 -263
  5. package/dist/{inline-scripts → cjs/inline-scripts}/extractor.d.ts +12 -1
  6. package/dist/{inline-scripts → cjs/inline-scripts}/extractor.js +45 -20
  7. package/dist/{inline-scripts → cjs/inline-scripts}/replacer.d.ts +1 -1
  8. package/dist/cjs/inline-scripts/replacer.js +88 -0
  9. package/dist/{parse → cjs/parse}/parse-schema.js +29 -3
  10. package/dist/cjs/path-utils/path-assigner.d.ts +58 -0
  11. package/dist/cjs/path-utils/path-assigner.js +164 -0
  12. package/dist/esm/config/config.d.ts +11 -0
  13. package/dist/esm/config/config.js +189 -0
  14. package/dist/esm/config/index.d.ts +1 -0
  15. package/dist/esm/config/index.js +1 -0
  16. package/dist/esm/constants.d.ts +16 -0
  17. package/dist/esm/constants.js +41 -0
  18. package/dist/esm/gen/core/ApiError.d.ts +10 -0
  19. package/dist/esm/gen/core/ApiError.js +16 -0
  20. package/dist/esm/gen/core/ApiRequestOptions.d.ts +14 -0
  21. package/dist/esm/gen/core/ApiRequestOptions.js +1 -0
  22. package/dist/esm/gen/core/ApiResult.d.ts +7 -0
  23. package/dist/esm/gen/core/ApiResult.js +1 -0
  24. package/dist/esm/gen/core/CancelablePromise.d.ts +26 -0
  25. package/dist/esm/gen/core/CancelablePromise.js +95 -0
  26. package/dist/esm/gen/core/OpenAPI.d.ts +27 -0
  27. package/dist/esm/gen/core/OpenAPI.js +35 -0
  28. package/dist/esm/gen/core/request.d.ts +29 -0
  29. package/dist/esm/gen/core/request.js +305 -0
  30. package/dist/esm/gen/index.d.ts +5 -0
  31. package/dist/esm/gen/index.js +6 -0
  32. package/dist/esm/gen/services.gen.d.ts +6137 -0
  33. package/dist/esm/gen/services.gen.js +12516 -0
  34. package/dist/esm/gen/types.gen.d.ts +10613 -0
  35. package/dist/esm/gen/types.gen.js +2 -0
  36. package/dist/esm/index.d.ts +14 -0
  37. package/dist/esm/index.js +14 -0
  38. package/dist/esm/inline-scripts/extractor.d.ts +41 -0
  39. package/dist/esm/inline-scripts/extractor.js +108 -0
  40. package/dist/esm/inline-scripts/index.d.ts +2 -0
  41. package/dist/esm/inline-scripts/index.js +2 -0
  42. package/dist/esm/inline-scripts/replacer.d.ts +16 -0
  43. package/dist/esm/inline-scripts/replacer.js +85 -0
  44. package/dist/esm/parse/index.d.ts +1 -0
  45. package/dist/esm/parse/index.js +1 -0
  46. package/dist/esm/parse/parse-schema.d.ts +98 -0
  47. package/dist/esm/parse/parse-schema.js +250 -0
  48. package/dist/esm/path-utils/index.d.ts +1 -0
  49. package/dist/esm/path-utils/index.js +1 -0
  50. package/dist/esm/path-utils/path-assigner.d.ts +58 -0
  51. package/dist/esm/path-utils/path-assigner.js +157 -0
  52. package/package.json +15 -5
  53. package/dist/inline-scripts/replacer.js +0 -95
  54. package/dist/path-utils/path-assigner.d.ts +0 -28
  55. package/dist/path-utils/path-assigner.js +0 -76
  56. /package/dist/{config → cjs/config}/config.d.ts +0 -0
  57. /package/dist/{config → cjs/config}/config.js +0 -0
  58. /package/dist/{config → cjs/config}/index.d.ts +0 -0
  59. /package/dist/{config → cjs/config}/index.js +0 -0
  60. /package/dist/{constants.d.ts → cjs/constants.d.ts} +0 -0
  61. /package/dist/{constants.js → cjs/constants.js} +0 -0
  62. /package/dist/{gen → cjs/gen}/core/ApiError.d.ts +0 -0
  63. /package/dist/{gen → cjs/gen}/core/ApiError.js +0 -0
  64. /package/dist/{gen → cjs/gen}/core/ApiRequestOptions.d.ts +0 -0
  65. /package/dist/{gen → cjs/gen}/core/ApiRequestOptions.js +0 -0
  66. /package/dist/{gen → cjs/gen}/core/ApiResult.d.ts +0 -0
  67. /package/dist/{gen → cjs/gen}/core/ApiResult.js +0 -0
  68. /package/dist/{gen → cjs/gen}/core/CancelablePromise.d.ts +0 -0
  69. /package/dist/{gen → cjs/gen}/core/CancelablePromise.js +0 -0
  70. /package/dist/{gen → cjs/gen}/core/OpenAPI.d.ts +0 -0
  71. /package/dist/{gen → cjs/gen}/core/request.d.ts +0 -0
  72. /package/dist/{gen → cjs/gen}/core/request.js +0 -0
  73. /package/dist/{gen → cjs/gen}/index.d.ts +0 -0
  74. /package/dist/{gen → cjs/gen}/index.js +0 -0
  75. /package/dist/{gen → cjs/gen}/types.gen.js +0 -0
  76. /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  77. /package/dist/{index.js → cjs/index.js} +0 -0
  78. /package/dist/{inline-scripts → cjs/inline-scripts}/index.d.ts +0 -0
  79. /package/dist/{inline-scripts → cjs/inline-scripts}/index.js +0 -0
  80. /package/dist/{parse → cjs/parse}/index.d.ts +0 -0
  81. /package/dist/{parse → cjs/parse}/index.js +0 -0
  82. /package/dist/{parse → cjs/parse}/parse-schema.d.ts +0 -0
  83. /package/dist/{path-utils → cjs/path-utils}/index.d.ts +0 -0
  84. /package/dist/{path-utils → cjs/path-utils}/index.js +0 -0
@@ -1,17 +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.listGlobalSettings = exports.testMetadata = exports.createCustomerPortalSession = exports.renewLicenseKey = exports.getLatestKeyRenewalAttempt = exports.sendStats = exports.testObjectStorageConfig = exports.testLicenseKey = exports.acknowledgeAllCriticalAlerts = exports.acknowledgeCriticalAlert = exports.getCriticalAlerts = exports.testCriticalChannels = exports.testSmtp = exports.getLocal = exports.setGlobal = exports.getGlobal = exports.createDucklakeDatabase = exports.databasesExist = exports.existsUsername = exports.existsWorkspace = exports.createWorkspaceFork = exports.createWorkspace = exports.listWorkspacesAsSuperAdmin = exports.listUserWorkspaces = exports.isDomainAllowed = exports.listWorkspaces = exports.getGlobalConnectedRepositories = exports.convertUserToGroup = exports.deleteUser = 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.logout = exports.login = exports.listAuditLogs = exports.getAuditLog = exports.getOpenApiYaml = exports.getLicenseId = exports.backendUptodate = exports.backendVersion = void 0;
5
- exports.editAutoInvite = exports.editDeployTo = exports.runTeamsMessageTestJob = exports.runSlackMessageTestJob = exports.connectTeams = exports.listAvailableTeamsChannels = exports.listAvailableTeamsIds = exports.editTeamsCommand = exports.editSlackCommand = exports.getDependencyMap = exports.rebuildDependencyMap = exports.setThresholdAlert = exports.getThresholdAlert = exports.getPremiumInfo = exports.getIsPremium = exports.getDeployTo = exports.getSettings = exports.listPendingInvites = exports.listUsersAsSuperAdmin = exports.existsEmail = 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.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 = void 0;
6
- exports.connectSlackCallbackInstance = exports.connectSlackCallback = exports.loginWithOauth = 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.getLargeFileStorageConfig = exports.getWorkspaceDefaultApp = exports.setWorkspaceEncryptionKey = exports.getWorkspaceEncryptionKey = exports.setEnvironmentVariable = exports.getDefaultScripts = exports.editDefaultScripts = exports.editWorkspaceDefaultApp = exports.editWorkspaceDeployUiSettings = exports.deleteGitSyncRepository = exports.editGitSyncRepository = exports.editWorkspaceGitSyncConfig = exports.editDucklakeConfig = exports.listDucklakes = exports.editLargeFileStorageConfig = exports.editErrorHandler = exports.getCopilotInfo = exports.editCopilotConfig = exports.editWebhook = exports.editInstanceGroups = void 0;
7
- exports.getCustomTags = exports.toggleWorkspaceErrorHandlerForScript = exports.createScript = exports.deleteDraft = exports.createDraft = exports.listScriptPaths = exports.listScripts = exports.listSearchScript = exports.queryHubScripts = exports.getTopHubScripts = exports.getHubScriptByPath = exports.getHubScriptContentByPath = exports.getPublicAppByCustomPath = exports.getHubAppById = exports.listHubApps = exports.getHubFlowById = exports.listHubFlows = exports.listHubIntegrations = exports.queryResourceTypes = exports.listResourceTypeNames = exports.listResourceType = exports.existsResourceType = exports.getResourceType = exports.updateResourceType = exports.deleteResourceType = exports.fileResourceTypeToFileExtMap = exports.createResourceType = exports.listResourceNames = exports.listSearchResource = exports.listResource = exports.existsResource = exports.getResourceValue = exports.getResourceValueInterpolated = exports.getResource = exports.updateResourceValue = exports.updateResource = 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 = void 0;
8
- exports.listSearchApp = exports.getRawAppData = exports.existsRawApp = exports.listRawApps = 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 = exports.getFlowLatestVersion = exports.getFlowHistory = exports.listFlows = exports.listSearchFlow = exports.listFlowPaths = exports.resultById = 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.isDefaultTagsPerWorkspace = exports.geDefaultTags = void 0;
9
- exports.getRootJobId = exports.getJob = exports.countJobsByTag = exports.getDbClock = exports.listJobs = exports.listCompletedJobs = 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.runScriptPreview = exports.runScriptByHash = exports.restartFlowAtStep = exports.batchReRunJobs = exports.runFlowByPath = exports.deleteS3FileFromApp = exports.uploadS3FileFromApp = exports.executeComponent = exports.signS3Objects = exports.customPathExists = exports.updateAppRaw = exports.updateApp = exports.deleteApp = exports.deleteRawApp = exports.updateRawApp = exports.createRawApp = exports.getAppByVersion = 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 = void 0;
10
- exports.createWebsocketTrigger = 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.getTeamsApprovalPayload = exports.getSlackApprovalPayload = exports.getResumeUrls = exports.createJobSignature = exports.getScheduledFor = exports.getQueuePosition = exports.forceCancelQueuedJob = exports.cancelPersistentQueuedJobs = exports.cancelQueuedJob = exports.deleteCompletedJob = exports.getCompletedJobResultMaybe = exports.getCompletedJobResult = exports.getCompletedJob = exports.getFlowDebugInfo = exports.getLogFileFromStore = exports.getJobUpdatesSse = exports.getJobUpdates = exports.getStartedAtByIds = exports.getJobArgs = exports.getCompletedJobLogsTail = exports.getJobLogs = void 0;
11
- exports.listAllTgoogleTopicSubscriptions = exports.listGoogleTopics = exports.deleteGcpSubscription = exports.testGcpConnection = exports.setGcpTriggerEnabled = exports.existsGcpTrigger = exports.listGcpTriggers = exports.getGcpTrigger = exports.deleteGcpTrigger = exports.updateGcpTrigger = exports.createGcpTrigger = exports.testMqttConnection = exports.setMqttTriggerEnabled = exports.existsMqttTrigger = exports.listMqttTriggers = exports.getMqttTrigger = exports.deleteMqttTrigger = exports.updateMqttTrigger = exports.createMqttTrigger = exports.testSqsConnection = exports.setSqsTriggerEnabled = exports.existsSqsTrigger = exports.listSqsTriggers = exports.getSqsTrigger = exports.deleteSqsTrigger = exports.updateSqsTrigger = exports.createSqsTrigger = exports.testNatsConnection = exports.setNatsTriggerEnabled = exports.existsNatsTrigger = exports.listNatsTriggers = exports.getNatsTrigger = exports.deleteNatsTrigger = exports.updateNatsTrigger = exports.createNatsTrigger = exports.testKafkaConnection = exports.setKafkaTriggerEnabled = exports.existsKafkaTrigger = exports.listKafkaTriggers = exports.getKafkaTrigger = exports.deleteKafkaTrigger = exports.updateKafkaTrigger = exports.createKafkaTrigger = exports.testWebsocketConnection = exports.setWebsocketTriggerEnabled = exports.existsWebsocketTrigger = exports.listWebsocketTriggers = exports.getWebsocketTrigger = exports.deleteWebsocketTrigger = exports.updateWebsocketTrigger = void 0;
12
- exports.deleteFolder = exports.updateFolder = exports.createFolder = exports.listFolderNames = exports.listFolders = 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.existsEmailLocalPart = exports.existsEmailTrigger = exports.listEmailTriggers = exports.getEmailTrigger = exports.deleteEmailTrigger = exports.updateEmailTrigger = exports.createEmailTrigger = exports.testPostgresConnection = exports.setPostgresTriggerEnabled = 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 = void 0;
13
- exports.loadParquetPreview = 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.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.removeOwnerToFolder = exports.addOwnerToFolder = exports.getFolderUsage = exports.existsFolder = exports.getFolder = void 0;
14
- exports.listMcpTools = exports.listAssetsByUsage = exports.listAssets = 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.fileUpload = exports.moveS3File = exports.deleteS3File = exports.loadCsvPreview = exports.loadTableRowCount = void 0;
4
+ exports.acknowledgeAllCriticalAlerts = exports.acknowledgeCriticalAlert = 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.backendVersion = void 0;
5
+ exports.getDeployTo = exports.getSettings = exports.listPendingInvites = exports.listUsersAsSuperAdmin = exports.existsEmail = exports.resetDiffTally = exports.compareWorkspaces = 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.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.listGlobalSettings = exports.testMetadata = exports.createCustomerPortalSession = exports.renewLicenseKey = exports.getLatestKeyRenewalAttempt = exports.sendStats = exports.testObjectStorageConfig = exports.testLicenseKey = void 0;
6
+ exports.listAvailableScopes = exports.usernameToEmail = exports.listUsernames = exports.listUsersUsage = exports.listUsers = exports.getUsedTriggers = exports.getWorkspaceUsage = 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 = void 0;
7
+ 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 = 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.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 = void 0;
8
+ 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 = 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.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 = void 0;
9
+ exports.listApps = exports.listSearchApp = exports.getRawAppData = exports.existsRawApp = 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 = 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 = void 0;
10
+ 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.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.deleteRawApp = exports.updateRawApp = exports.createRawApp = 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 = void 0;
11
+ 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.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 = void 0;
12
+ exports.createNativeTrigger = exports.nativeTriggerServiceCallback = exports.deleteNativeTriggerService = 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.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 = void 0;
13
+ 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 = 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.listNextCloudEvents = exports.syncNativeTriggers = exports.existsNativeTrigger = exports.listNativeTriggers = exports.deleteNativeTrigger = exports.getNativeTrigger = exports.updateNativeTrigger = void 0;
14
+ 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 = 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 = void 0;
15
+ 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 = 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 = void 0;
16
+ exports.mcpOauthCallback = exports.startMcpOauthPopup = exports.discoverMcpOauth = exports.listMcpTools = exports.listAssetsByUsage = exports.listAssets = exports.clearIndex = exports.countSearchLogsIndex = exports.searchLogsIndex = exports.searchJobsIndex = exports.listExtendedJobs = exports.getConcurrencyKey = void 0;
15
17
  const OpenAPI_1 = require("./core/OpenAPI");
16
18
  const request_1 = require("./core/request");
17
19
  /**
@@ -50,6 +52,25 @@ const getLicenseId = () => {
50
52
  });
51
53
  };
52
54
  exports.getLicenseId = getLicenseId;
55
+ /**
56
+ * query Windmill AI documentation assistant (EE only)
57
+ * @param data The data for the request.
58
+ * @param data.requestBody query to send to the AI documentation assistant
59
+ * @returns unknown AI documentation assistant response
60
+ * @throws ApiError
61
+ */
62
+ const queryDocumentation = (data) => {
63
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
64
+ method: 'POST',
65
+ url: '/inkeep',
66
+ body: data.requestBody,
67
+ mediaType: 'application/json',
68
+ errors: {
69
+ 403: 'Enterprise Edition required'
70
+ }
71
+ });
72
+ };
73
+ exports.queryDocumentation = queryDocumentation;
53
74
  /**
54
75
  * get openapi yaml spec
55
76
  * @returns string openapi yaml file content
@@ -151,6 +172,56 @@ const logout = () => {
151
172
  });
152
173
  };
153
174
  exports.logout = logout;
175
+ /**
176
+ * check if SMTP is configured for password reset
177
+ * @returns boolean returns true if SMTP is configured
178
+ * @throws ApiError
179
+ */
180
+ const isSmtpConfigured = () => {
181
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
182
+ method: 'GET',
183
+ url: '/auth/is_smtp_configured'
184
+ });
185
+ };
186
+ exports.isSmtpConfigured = isSmtpConfigured;
187
+ /**
188
+ * request password reset email
189
+ * @param data The data for the request.
190
+ * @param data.requestBody email to send password reset link to
191
+ * @returns PasswordResetResponse password reset email sent (if user exists)
192
+ * @throws ApiError
193
+ */
194
+ const requestPasswordReset = (data) => {
195
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
196
+ method: 'POST',
197
+ url: '/auth/request_password_reset',
198
+ body: data.requestBody,
199
+ mediaType: 'application/json',
200
+ errors: {
201
+ 400: 'SMTP not configured'
202
+ }
203
+ });
204
+ };
205
+ exports.requestPasswordReset = requestPasswordReset;
206
+ /**
207
+ * reset password using token
208
+ * @param data The data for the request.
209
+ * @param data.requestBody token and new password
210
+ * @returns PasswordResetResponse password reset successfully
211
+ * @throws ApiError
212
+ */
213
+ const resetPassword = (data) => {
214
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
215
+ method: 'POST',
216
+ url: '/auth/reset_password',
217
+ body: data.requestBody,
218
+ mediaType: 'application/json',
219
+ errors: {
220
+ 400: 'invalid or expired token'
221
+ }
222
+ });
223
+ };
224
+ exports.resetPassword = resetPassword;
154
225
  /**
155
226
  * get user (require admin privilege)
156
227
  * @param data The data for the request.
@@ -385,6 +456,22 @@ const globalUsersExport = () => {
385
456
  });
386
457
  };
387
458
  exports.globalUsersExport = globalUsersExport;
459
+ /**
460
+ * Submit user onboarding data
461
+ * @param data The data for the request.
462
+ * @param data.requestBody
463
+ * @returns string Onboarding data submitted successfully
464
+ * @throws ApiError
465
+ */
466
+ const submitOnboardingData = (data) => {
467
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
468
+ method: 'POST',
469
+ url: '/users/onboarding',
470
+ body: data.requestBody,
471
+ mediaType: 'application/json'
472
+ });
473
+ };
474
+ exports.submitOnboardingData = submitOnboardingData;
388
475
  /**
389
476
  * delete user (require admin privilege)
390
477
  * @param data The data for the request.
@@ -425,13 +512,18 @@ const convertUserToGroup = (data) => {
425
512
  exports.convertUserToGroup = convertUserToGroup;
426
513
  /**
427
514
  * get connected repositories
515
+ * @param data The data for the request.
516
+ * @param data.page Page number for pagination (default 1)
428
517
  * @returns GithubInstallations connected repositories
429
518
  * @throws ApiError
430
519
  */
431
- const getGlobalConnectedRepositories = () => {
520
+ const getGlobalConnectedRepositories = (data = {}) => {
432
521
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
433
522
  method: 'GET',
434
- url: '/github_app/connected_repositories'
523
+ url: '/github_app/connected_repositories',
524
+ query: {
525
+ page: data.page
526
+ }
435
527
  });
436
528
  };
437
529
  exports.getGlobalConnectedRepositories = getGlobalConnectedRepositories;
@@ -471,6 +563,23 @@ const listUserWorkspaces = () => {
471
563
  });
472
564
  };
473
565
  exports.listUserWorkspaces = listUserWorkspaces;
566
+ /**
567
+ * get workspace as super admin (require to be super admin)
568
+ * @param data The data for the request.
569
+ * @param data.workspace
570
+ * @returns Workspace workspace
571
+ * @throws ApiError
572
+ */
573
+ const getWorkspaceAsSuperAdmin = (data) => {
574
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
575
+ method: 'GET',
576
+ url: '/w/{workspace}/workspaces/get_as_superadmin',
577
+ path: {
578
+ workspace: data.workspace
579
+ }
580
+ });
581
+ };
582
+ exports.getWorkspaceAsSuperAdmin = getWorkspaceAsSuperAdmin;
474
583
  /**
475
584
  * list all workspaces as super admin (require to be super admin)
476
585
  * @param data The data for the request.
@@ -506,9 +615,30 @@ const createWorkspace = (data) => {
506
615
  });
507
616
  };
508
617
  exports.createWorkspace = createWorkspace;
618
+ /**
619
+ * create forked workspace branch with git sync
620
+ * @param data The data for the request.
621
+ * @param data.workspace
622
+ * @param data.requestBody new forked workspace
623
+ * @returns string forked workspace branch created
624
+ * @throws ApiError
625
+ */
626
+ const createWorkspaceForkGitBranch = (data) => {
627
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
628
+ method: 'POST',
629
+ url: '/w/{workspace}/workspaces/create_workspace_fork_branch',
630
+ path: {
631
+ workspace: data.workspace
632
+ },
633
+ body: data.requestBody,
634
+ mediaType: 'application/json'
635
+ });
636
+ };
637
+ exports.createWorkspaceForkGitBranch = createWorkspaceForkGitBranch;
509
638
  /**
510
639
  * create forked workspace
511
640
  * @param data The data for the request.
641
+ * @param data.workspace
512
642
  * @param data.requestBody new forked workspace
513
643
  * @returns string forked workspace created
514
644
  * @throws ApiError
@@ -516,7 +646,10 @@ exports.createWorkspace = createWorkspace;
516
646
  const createWorkspaceFork = (data) => {
517
647
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
518
648
  method: 'POST',
519
- url: '/workspaces/create_fork',
649
+ url: '/w/{workspace}/workspaces/create_fork',
650
+ path: {
651
+ workspace: data.workspace
652
+ },
520
653
  body: data.requestBody,
521
654
  mediaType: 'application/json'
522
655
  });
@@ -555,38 +688,49 @@ const existsUsername = (data) => {
555
688
  };
556
689
  exports.existsUsername = existsUsername;
557
690
  /**
558
- * checks that all given databases exist or else return the ones that don't
559
- * @param data The data for the request.
560
- * @param data.requestBody
561
- * @returns string databases that do not exist
691
+ * Refreshes the password for the custom_instance_user
692
+ * @returns unknown Success
562
693
  * @throws ApiError
563
694
  */
564
- const databasesExist = (data) => {
695
+ const refreshCustomInstanceUserPwd = () => {
565
696
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
566
697
  method: 'POST',
567
- url: '/settings/databases_exist',
568
- body: data.requestBody,
569
- mediaType: 'application/json'
698
+ url: '/settings/refresh_custom_instance_user_pwd'
699
+ });
700
+ };
701
+ exports.refreshCustomInstanceUserPwd = refreshCustomInstanceUserPwd;
702
+ /**
703
+ * Returns the set-up statuses of custom instance pg databases
704
+ * @returns CustomInstanceDb Statuses of all custom instance dbs
705
+ * @throws ApiError
706
+ */
707
+ const listCustomInstanceDbs = () => {
708
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
709
+ method: 'POST',
710
+ url: '/settings/list_custom_instance_pg_databases'
570
711
  });
571
712
  };
572
- exports.databasesExist = databasesExist;
713
+ exports.listCustomInstanceDbs = listCustomInstanceDbs;
573
714
  /**
574
- * Runs CREATE DATABASE on the Windmill Postgres and grants access to the ducklake_user
715
+ * Runs CREATE DATABASE on the Windmill Postgres and grants access to the custom_instance_user
575
716
  * @param data The data for the request.
576
717
  * @param data.name The name of the database to create
577
- * @returns unknown status
718
+ * @param data.requestBody
719
+ * @returns CustomInstanceDb status
578
720
  * @throws ApiError
579
721
  */
580
- const createDucklakeDatabase = (data) => {
722
+ const setupCustomInstanceDb = (data) => {
581
723
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
582
724
  method: 'POST',
583
- url: '/settings/create_ducklake_database/{name}',
725
+ url: '/settings/setup_custom_instance_pg_database/{name}',
584
726
  path: {
585
727
  name: data.name
586
- }
728
+ },
729
+ body: data.requestBody,
730
+ mediaType: 'application/json'
587
731
  });
588
732
  };
589
- exports.createDucklakeDatabase = createDucklakeDatabase;
733
+ exports.setupCustomInstanceDb = setupCustomInstanceDb;
590
734
  /**
591
735
  * get global settings
592
736
  * @param data The data for the request.
@@ -836,6 +980,78 @@ const listGlobalSettings = () => {
836
980
  });
837
981
  };
838
982
  exports.listGlobalSettings = listGlobalSettings;
983
+ /**
984
+ * get minimum worker versions required to stay alive
985
+ * @returns unknown minimum keep-alive versions for workers and agents
986
+ * @throws ApiError
987
+ */
988
+ const getMinKeepAliveVersion = () => {
989
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
990
+ method: 'GET',
991
+ url: '/min_keep_alive_version'
992
+ });
993
+ };
994
+ exports.getMinKeepAliveVersion = getMinKeepAliveVersion;
995
+ /**
996
+ * get JWKS for Vault JWT authentication
997
+ * @returns JwksResponse JSON Web Key Set
998
+ * @throws ApiError
999
+ */
1000
+ const getJwks = () => {
1001
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1002
+ method: 'GET',
1003
+ url: '/.well-known/jwks.json'
1004
+ });
1005
+ };
1006
+ exports.getJwks = getJwks;
1007
+ /**
1008
+ * test secret backend connection (HashiCorp Vault)
1009
+ * @param data The data for the request.
1010
+ * @param data.requestBody Vault settings to test
1011
+ * @returns string connection successful
1012
+ * @throws ApiError
1013
+ */
1014
+ const testSecretBackend = (data) => {
1015
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1016
+ method: 'POST',
1017
+ url: '/settings/test_secret_backend',
1018
+ body: data.requestBody,
1019
+ mediaType: 'application/json'
1020
+ });
1021
+ };
1022
+ exports.testSecretBackend = testSecretBackend;
1023
+ /**
1024
+ * migrate secrets from database to HashiCorp Vault
1025
+ * @param data The data for the request.
1026
+ * @param data.requestBody Vault settings for migration target
1027
+ * @returns SecretMigrationReport migration report
1028
+ * @throws ApiError
1029
+ */
1030
+ const migrateSecretsToVault = (data) => {
1031
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1032
+ method: 'POST',
1033
+ url: '/settings/migrate_secrets_to_vault',
1034
+ body: data.requestBody,
1035
+ mediaType: 'application/json'
1036
+ });
1037
+ };
1038
+ exports.migrateSecretsToVault = migrateSecretsToVault;
1039
+ /**
1040
+ * migrate secrets from HashiCorp Vault to database
1041
+ * @param data The data for the request.
1042
+ * @param data.requestBody Vault settings for migration source
1043
+ * @returns SecretMigrationReport migration report
1044
+ * @throws ApiError
1045
+ */
1046
+ const migrateSecretsToDatabase = (data) => {
1047
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1048
+ method: 'POST',
1049
+ url: '/settings/migrate_secrets_to_database',
1050
+ body: data.requestBody,
1051
+ mediaType: 'application/json'
1052
+ });
1053
+ };
1054
+ exports.migrateSecretsToDatabase = migrateSecretsToDatabase;
839
1055
  /**
840
1056
  * get current user email (if logged in)
841
1057
  * @returns string user email
@@ -1201,6 +1417,7 @@ exports.unarchiveWorkspace = unarchiveWorkspace;
1201
1417
  * delete workspace (require super admin)
1202
1418
  * @param data The data for the request.
1203
1419
  * @param data.workspace
1420
+ * @param data.onlyDeleteForks
1204
1421
  * @returns string status
1205
1422
  * @throws ApiError
1206
1423
  */
@@ -1210,6 +1427,9 @@ const deleteWorkspace = (data) => {
1210
1427
  url: '/workspaces/delete/{workspace}',
1211
1428
  path: {
1212
1429
  workspace: data.workspace
1430
+ },
1431
+ query: {
1432
+ only_delete_forks: data.onlyDeleteForks
1213
1433
  }
1214
1434
  });
1215
1435
  };
@@ -1348,6 +1568,46 @@ const updateOperatorSettings = (data) => {
1348
1568
  });
1349
1569
  };
1350
1570
  exports.updateOperatorSettings = updateOperatorSettings;
1571
+ /**
1572
+ * Compare two workspaces
1573
+ * Compares the current workspace with a target workspace to find differences in scripts, flows, apps, resources, and variables. Returns information about items that are ahead, behind, or in conflict.
1574
+ * @param data The data for the request.
1575
+ * @param data.workspace
1576
+ * @param data.targetWorkspaceId The ID of the workspace to compare with
1577
+ * @returns WorkspaceComparison Workspace comparison results
1578
+ * @throws ApiError
1579
+ */
1580
+ const compareWorkspaces = (data) => {
1581
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1582
+ method: 'GET',
1583
+ url: '/w/{workspace}/workspaces/compare/{target_workspace_id}',
1584
+ path: {
1585
+ workspace: data.workspace,
1586
+ target_workspace_id: data.targetWorkspaceId
1587
+ }
1588
+ });
1589
+ };
1590
+ exports.compareWorkspaces = compareWorkspaces;
1591
+ /**
1592
+ * Resets the ahead and behind deployement counter after a deployement
1593
+ * This endpoint should be called after a fork deployement
1594
+ * @param data The data for the request.
1595
+ * @param data.workspace
1596
+ * @param data.forkWorkspaceId The ID of the workspace to compare with
1597
+ * @returns unknown status
1598
+ * @throws ApiError
1599
+ */
1600
+ const resetDiffTally = (data) => {
1601
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1602
+ method: 'POST',
1603
+ url: '/w/{workspace}/workspaces/reset_diff_tally/{fork_workspace_id}',
1604
+ path: {
1605
+ workspace: data.workspace,
1606
+ fork_workspace_id: data.forkWorkspaceId
1607
+ }
1608
+ });
1609
+ };
1610
+ exports.resetDiffTally = resetDiffTally;
1351
1611
  /**
1352
1612
  * exists email
1353
1613
  * @param data The data for the request.
@@ -1529,6 +1789,45 @@ const rebuildDependencyMap = (data) => {
1529
1789
  });
1530
1790
  };
1531
1791
  exports.rebuildDependencyMap = rebuildDependencyMap;
1792
+ /**
1793
+ * get dependents of an imported path
1794
+ * @param data The data for the request.
1795
+ * @param data.workspace
1796
+ * @param data.importedPath The imported path to get dependents for
1797
+ * @returns DependencyDependent list of dependents
1798
+ * @throws ApiError
1799
+ */
1800
+ const getDependents = (data) => {
1801
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1802
+ method: 'GET',
1803
+ url: '/w/{workspace}/workspaces/get_dependents/{imported_path}',
1804
+ path: {
1805
+ workspace: data.workspace,
1806
+ imported_path: data.importedPath
1807
+ }
1808
+ });
1809
+ };
1810
+ exports.getDependents = getDependents;
1811
+ /**
1812
+ * get dependents amounts for multiple imported paths
1813
+ * @param data The data for the request.
1814
+ * @param data.workspace
1815
+ * @param data.requestBody List of imported paths to get dependents counts for
1816
+ * @returns DependentsAmount list of dependents amounts
1817
+ * @throws ApiError
1818
+ */
1819
+ const getDependentsAmounts = (data) => {
1820
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1821
+ method: 'POST',
1822
+ url: '/w/{workspace}/workspaces/get_dependents_amounts',
1823
+ path: {
1824
+ workspace: data.workspace
1825
+ },
1826
+ body: data.requestBody,
1827
+ mediaType: 'application/json'
1828
+ });
1829
+ };
1830
+ exports.getDependentsAmounts = getDependentsAmounts;
1532
1831
  /**
1533
1832
  * get dependency map
1534
1833
  * @param data The data for the request.
@@ -1566,6 +1865,60 @@ const editSlackCommand = (data) => {
1566
1865
  });
1567
1866
  };
1568
1867
  exports.editSlackCommand = editSlackCommand;
1868
+ /**
1869
+ * get workspace slack oauth config
1870
+ * @param data The data for the request.
1871
+ * @param data.workspace
1872
+ * @returns unknown slack oauth config
1873
+ * @throws ApiError
1874
+ */
1875
+ const getWorkspaceSlackOauthConfig = (data) => {
1876
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1877
+ method: 'GET',
1878
+ url: '/w/{workspace}/workspaces/slack_oauth_config',
1879
+ path: {
1880
+ workspace: data.workspace
1881
+ }
1882
+ });
1883
+ };
1884
+ exports.getWorkspaceSlackOauthConfig = getWorkspaceSlackOauthConfig;
1885
+ /**
1886
+ * set workspace slack oauth config
1887
+ * @param data The data for the request.
1888
+ * @param data.workspace
1889
+ * @param data.requestBody Slack OAuth Configuration
1890
+ * @returns string status
1891
+ * @throws ApiError
1892
+ */
1893
+ const setWorkspaceSlackOauthConfig = (data) => {
1894
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1895
+ method: 'POST',
1896
+ url: '/w/{workspace}/workspaces/slack_oauth_config',
1897
+ path: {
1898
+ workspace: data.workspace
1899
+ },
1900
+ body: data.requestBody,
1901
+ mediaType: 'application/json'
1902
+ });
1903
+ };
1904
+ exports.setWorkspaceSlackOauthConfig = setWorkspaceSlackOauthConfig;
1905
+ /**
1906
+ * delete workspace slack oauth config
1907
+ * @param data The data for the request.
1908
+ * @param data.workspace
1909
+ * @returns string status
1910
+ * @throws ApiError
1911
+ */
1912
+ const deleteWorkspaceSlackOauthConfig = (data) => {
1913
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1914
+ method: 'DELETE',
1915
+ url: '/w/{workspace}/workspaces/slack_oauth_config',
1916
+ path: {
1917
+ workspace: data.workspace
1918
+ }
1919
+ });
1920
+ };
1921
+ exports.deleteWorkspaceSlackOauthConfig = deleteWorkspaceSlackOauthConfig;
1569
1922
  /**
1570
1923
  * edit teams command
1571
1924
  * @param data The data for the request.
@@ -1590,7 +1943,8 @@ exports.editTeamsCommand = editTeamsCommand;
1590
1943
  * list available teams ids
1591
1944
  * @param data The data for the request.
1592
1945
  * @param data.workspace
1593
- * @param data.search Search teams by name
1946
+ * @param data.search Search teams by name. If omitted, returns first page of all teams.
1947
+ * @param data.nextLink Pagination cursor URL from previous response. Pass this to fetch the next page of results.
1594
1948
  * @returns unknown status
1595
1949
  * @throws ApiError
1596
1950
  */
@@ -1602,7 +1956,8 @@ const listAvailableTeamsIds = (data) => {
1602
1956
  workspace: data.workspace
1603
1957
  },
1604
1958
  query: {
1605
- search: data.search
1959
+ search: data.search,
1960
+ next_link: data.nextLink
1606
1961
  }
1607
1962
  });
1608
1963
  };
@@ -1612,7 +1967,6 @@ exports.listAvailableTeamsIds = listAvailableTeamsIds;
1612
1967
  * @param data The data for the request.
1613
1968
  * @param data.workspace
1614
1969
  * @param data.teamId Microsoft Teams team ID
1615
- * @param data.search Search channels by name
1616
1970
  * @returns unknown List of channels for the specified team
1617
1971
  * @throws ApiError
1618
1972
  */
@@ -1624,8 +1978,7 @@ const listAvailableTeamsChannels = (data) => {
1624
1978
  workspace: data.workspace
1625
1979
  },
1626
1980
  query: {
1627
- team_id: data.teamId,
1628
- search: data.search
1981
+ team_id: data.teamId
1629
1982
  }
1630
1983
  });
1631
1984
  };
@@ -1827,6 +2180,26 @@ const editErrorHandler = (data) => {
1827
2180
  });
1828
2181
  };
1829
2182
  exports.editErrorHandler = editErrorHandler;
2183
+ /**
2184
+ * edit success handler
2185
+ * @param data The data for the request.
2186
+ * @param data.workspace
2187
+ * @param data.requestBody WorkspaceSuccessHandler
2188
+ * @returns string status
2189
+ * @throws ApiError
2190
+ */
2191
+ const editSuccessHandler = (data) => {
2192
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2193
+ method: 'POST',
2194
+ url: '/w/{workspace}/workspaces/edit_success_handler',
2195
+ path: {
2196
+ workspace: data.workspace
2197
+ },
2198
+ body: data.requestBody,
2199
+ mediaType: 'application/json'
2200
+ });
2201
+ };
2202
+ exports.editSuccessHandler = editSuccessHandler;
1830
2203
  /**
1831
2204
  * edit large file storage settings
1832
2205
  * @param data The data for the request.
@@ -1865,10 +2238,44 @@ const listDucklakes = (data) => {
1865
2238
  };
1866
2239
  exports.listDucklakes = listDucklakes;
1867
2240
  /**
1868
- * edit ducklake settings
2241
+ * list Datatables
1869
2242
  * @param data The data for the request.
1870
2243
  * @param data.workspace
1871
- * @param data.requestBody Ducklake settings
2244
+ * @returns string status
2245
+ * @throws ApiError
2246
+ */
2247
+ const listDataTables = (data) => {
2248
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2249
+ method: 'GET',
2250
+ url: '/w/{workspace}/workspaces/list_datatables',
2251
+ path: {
2252
+ workspace: data.workspace
2253
+ }
2254
+ });
2255
+ };
2256
+ exports.listDataTables = listDataTables;
2257
+ /**
2258
+ * list schemas of all connected Datatables
2259
+ * @param data The data for the request.
2260
+ * @param data.workspace
2261
+ * @returns DataTableSchema schemas of all datatables
2262
+ * @throws ApiError
2263
+ */
2264
+ const listDataTableSchemas = (data) => {
2265
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2266
+ method: 'GET',
2267
+ url: '/w/{workspace}/workspaces/list_datatable_schemas',
2268
+ path: {
2269
+ workspace: data.workspace
2270
+ }
2271
+ });
2272
+ };
2273
+ exports.listDataTableSchemas = listDataTableSchemas;
2274
+ /**
2275
+ * edit ducklake settings
2276
+ * @param data The data for the request.
2277
+ * @param data.workspace
2278
+ * @param data.requestBody Ducklake settings
1872
2279
  * @returns unknown status
1873
2280
  * @throws ApiError
1874
2281
  */
@@ -1884,6 +2291,26 @@ const editDucklakeConfig = (data) => {
1884
2291
  });
1885
2292
  };
1886
2293
  exports.editDucklakeConfig = editDucklakeConfig;
2294
+ /**
2295
+ * edit datatable settings
2296
+ * @param data The data for the request.
2297
+ * @param data.workspace
2298
+ * @param data.requestBody DataTable settings
2299
+ * @returns unknown status
2300
+ * @throws ApiError
2301
+ */
2302
+ const editDataTableConfig = (data) => {
2303
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2304
+ method: 'POST',
2305
+ url: '/w/{workspace}/workspaces/edit_datatable_config',
2306
+ path: {
2307
+ workspace: data.workspace
2308
+ },
2309
+ body: data.requestBody,
2310
+ mediaType: 'application/json'
2311
+ });
2312
+ };
2313
+ exports.editDataTableConfig = editDataTableConfig;
1887
2314
  /**
1888
2315
  * edit workspace git sync settings
1889
2316
  * @param data The data for the request.
@@ -2095,23 +2522,6 @@ const getWorkspaceDefaultApp = (data) => {
2095
2522
  });
2096
2523
  };
2097
2524
  exports.getWorkspaceDefaultApp = getWorkspaceDefaultApp;
2098
- /**
2099
- * get large file storage config
2100
- * @param data The data for the request.
2101
- * @param data.workspace
2102
- * @returns LargeFileStorage status
2103
- * @throws ApiError
2104
- */
2105
- const getLargeFileStorageConfig = (data) => {
2106
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2107
- method: 'GET',
2108
- url: '/w/{workspace}/workspaces/get_large_file_storage_config',
2109
- path: {
2110
- workspace: data.workspace
2111
- }
2112
- });
2113
- };
2114
- exports.getLargeFileStorageConfig = getLargeFileStorageConfig;
2115
2525
  /**
2116
2526
  * get usage
2117
2527
  * @param data The data for the request.
@@ -2303,6 +2713,7 @@ exports.listTokens = listTokens;
2303
2713
  * @param data The data for the request.
2304
2714
  * @param data.workspace
2305
2715
  * @param data.audience
2716
+ * @param data.expiresIn
2306
2717
  * @returns string new oidc token
2307
2718
  * @throws ApiError
2308
2719
  */
@@ -2313,6 +2724,9 @@ const getOidcToken = (data) => {
2313
2724
  path: {
2314
2725
  workspace: data.workspace,
2315
2726
  audience: data.audience
2727
+ },
2728
+ query: {
2729
+ expires_in: data.expiresIn
2316
2730
  }
2317
2731
  });
2318
2732
  };
@@ -3057,6 +3471,29 @@ const getResourceValue = (data) => {
3057
3471
  });
3058
3472
  };
3059
3473
  exports.getResourceValue = getResourceValue;
3474
+ /**
3475
+ * get git repository latest commit hash
3476
+ * @param data The data for the request.
3477
+ * @param data.workspace
3478
+ * @param data.path
3479
+ * @param data.gitSshIdentity
3480
+ * @returns unknown git commit hash
3481
+ * @throws ApiError
3482
+ */
3483
+ const getGitCommitHash = (data) => {
3484
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
3485
+ method: 'GET',
3486
+ url: '/w/{workspace}/resources/git_commit_hash/{path}',
3487
+ path: {
3488
+ workspace: data.workspace,
3489
+ path: data.path
3490
+ },
3491
+ query: {
3492
+ git_ssh_identity: data.gitSshIdentity
3493
+ }
3494
+ });
3495
+ };
3496
+ exports.getGitCommitHash = getGitCommitHash;
3060
3497
  /**
3061
3498
  * does resource exists
3062
3499
  * @param data The data for the request.
@@ -3122,6 +3559,25 @@ const listSearchResource = (data) => {
3122
3559
  });
3123
3560
  };
3124
3561
  exports.listSearchResource = listSearchResource;
3562
+ /**
3563
+ * get MCP tools from resource
3564
+ * @param data The data for the request.
3565
+ * @param data.workspace
3566
+ * @param data.path
3567
+ * @returns unknown list of MCP tools
3568
+ * @throws ApiError
3569
+ */
3570
+ const getMcpTools = (data) => {
3571
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
3572
+ method: 'GET',
3573
+ url: '/w/{workspace}/resources/mcp_tools/{path}',
3574
+ path: {
3575
+ workspace: data.workspace,
3576
+ path: data.path
3577
+ }
3578
+ });
3579
+ };
3580
+ exports.getMcpTools = getMcpTools;
3125
3581
  /**
3126
3582
  * list resource names
3127
3583
  * @param data The data for the request.
@@ -3291,6 +3747,92 @@ const listResourceTypeNames = (data) => {
3291
3747
  });
3292
3748
  };
3293
3749
  exports.listResourceTypeNames = listResourceTypeNames;
3750
+ /**
3751
+ * get npm package metadata from private registry
3752
+ * @param data The data for the request.
3753
+ * @param data.workspace
3754
+ * @param data._package npm package name
3755
+ * @returns unknown package metadata
3756
+ * @throws ApiError
3757
+ */
3758
+ const getNpmPackageMetadata = (data) => {
3759
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
3760
+ method: 'GET',
3761
+ url: '/w/{workspace}/npm_proxy/metadata/{package}',
3762
+ path: {
3763
+ workspace: data.workspace,
3764
+ package: data._package
3765
+ }
3766
+ });
3767
+ };
3768
+ exports.getNpmPackageMetadata = getNpmPackageMetadata;
3769
+ /**
3770
+ * resolve npm package version from private registry
3771
+ * @param data The data for the request.
3772
+ * @param data.workspace
3773
+ * @param data._package npm package name
3774
+ * @param data.tag version tag or reference
3775
+ * @returns unknown resolved version
3776
+ * @throws ApiError
3777
+ */
3778
+ const resolveNpmPackageVersion = (data) => {
3779
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
3780
+ method: 'GET',
3781
+ url: '/w/{workspace}/npm_proxy/resolve/{package}',
3782
+ path: {
3783
+ workspace: data.workspace,
3784
+ package: data._package
3785
+ },
3786
+ query: {
3787
+ tag: data.tag
3788
+ }
3789
+ });
3790
+ };
3791
+ exports.resolveNpmPackageVersion = resolveNpmPackageVersion;
3792
+ /**
3793
+ * get npm package file tree from private registry
3794
+ * @param data The data for the request.
3795
+ * @param data.workspace
3796
+ * @param data._package npm package name
3797
+ * @param data.version package version
3798
+ * @returns unknown package file tree
3799
+ * @throws ApiError
3800
+ */
3801
+ const getNpmPackageFiletree = (data) => {
3802
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
3803
+ method: 'GET',
3804
+ url: '/w/{workspace}/npm_proxy/filetree/{package}/{version}',
3805
+ path: {
3806
+ workspace: data.workspace,
3807
+ package: data._package,
3808
+ version: data.version
3809
+ }
3810
+ });
3811
+ };
3812
+ exports.getNpmPackageFiletree = getNpmPackageFiletree;
3813
+ /**
3814
+ * get specific file from npm package in private registry
3815
+ * @param data The data for the request.
3816
+ * @param data.workspace
3817
+ * @param data._package npm package name
3818
+ * @param data.version package version
3819
+ * @param data.filepath file path within package
3820
+ * @returns string file content
3821
+ * @throws ApiError
3822
+ */
3823
+ const getNpmPackageFile = (data) => {
3824
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
3825
+ method: 'GET',
3826
+ url: '/w/{workspace}/npm_proxy/file/{package}/{version}/{filepath}',
3827
+ path: {
3828
+ workspace: data.workspace,
3829
+ package: data._package,
3830
+ version: data.version,
3831
+ filepath: data.filepath
3832
+ }
3833
+ });
3834
+ };
3835
+ exports.getNpmPackageFile = getNpmPackageFile;
3294
3836
  /**
3295
3837
  * query resource types by similarity
3296
3838
  * @param data The data for the request.
@@ -3440,6 +3982,23 @@ const getHubScriptByPath = (data) => {
3440
3982
  });
3441
3983
  };
3442
3984
  exports.getHubScriptByPath = getHubScriptByPath;
3985
+ /**
3986
+ * record hub script pick
3987
+ * @param data The data for the request.
3988
+ * @param data.path
3989
+ * @returns unknown script pick recorded
3990
+ * @throws ApiError
3991
+ */
3992
+ const pickHubScriptByPath = (data) => {
3993
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
3994
+ method: 'GET',
3995
+ url: '/scripts/hub/pick/{path}',
3996
+ path: {
3997
+ path: data.path
3998
+ }
3999
+ });
4000
+ };
4001
+ exports.pickHubScriptByPath = pickHubScriptByPath;
3443
4002
  /**
3444
4003
  * get top hub scripts
3445
4004
  * @param data The data for the request.
@@ -3551,6 +4110,13 @@ exports.listSearchScript = listSearchScript;
3551
4110
  * @param data.languages Filter to only include scripts written in the given languages.
3552
4111
  * Accepts multiple values as a comma-separated list.
3553
4112
  *
4113
+ * @param data.withoutDescription (default false)
4114
+ * If true, the description field will be omitted from the response.
4115
+ *
4116
+ * @param data.dedicatedWorker (default regardless)
4117
+ * If true, show only scripts with dedicated_worker enabled.
4118
+ * If false, show only scripts with dedicated_worker disabled.
4119
+ *
3554
4120
  * @returns Script All scripts
3555
4121
  * @throws ApiError
3556
4122
  */
@@ -3578,7 +4144,9 @@ const listScripts = (data) => {
3578
4144
  kinds: data.kinds,
3579
4145
  starred_only: data.starredOnly,
3580
4146
  with_deployment_msg: data.withDeploymentMsg,
3581
- languages: data.languages
4147
+ languages: data.languages,
4148
+ without_description: data.withoutDescription,
4149
+ dedicated_worker: data.dedicatedWorker
3582
4150
  }
3583
4151
  });
3584
4152
  };
@@ -3686,7 +4254,6 @@ exports.toggleWorkspaceErrorHandlerForScript = toggleWorkspaceErrorHandlerForScr
3686
4254
  /**
3687
4255
  * get all instance custom tags (tags are used to dispatch jobs to different worker groups)
3688
4256
  * @param data The data for the request.
3689
- * @param data.workspace
3690
4257
  * @param data.showWorkspaceRestriction
3691
4258
  * @returns string list of custom tags
3692
4259
  * @throws ApiError
@@ -3696,12 +4263,28 @@ const getCustomTags = (data = {}) => {
3696
4263
  method: 'GET',
3697
4264
  url: '/workers/custom_tags',
3698
4265
  query: {
3699
- workspace: data.workspace,
3700
4266
  show_workspace_restriction: data.showWorkspaceRestriction
3701
4267
  }
3702
4268
  });
3703
4269
  };
3704
4270
  exports.getCustomTags = getCustomTags;
4271
+ /**
4272
+ * get custom tags available for this workspace
4273
+ * @param data The data for the request.
4274
+ * @param data.workspace
4275
+ * @returns string list of custom tags for workspace
4276
+ * @throws ApiError
4277
+ */
4278
+ const getCustomTagsForWorkspace = (data) => {
4279
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4280
+ method: 'GET',
4281
+ url: '/w/{workspace}/workers/custom_tags',
4282
+ path: {
4283
+ workspace: data.workspace
4284
+ }
4285
+ });
4286
+ };
4287
+ exports.getCustomTagsForWorkspace = getCustomTagsForWorkspace;
3705
4288
  /**
3706
4289
  * get all instance default tags
3707
4290
  * @returns string list of default tags
@@ -3726,6 +4309,112 @@ const isDefaultTagsPerWorkspace = () => {
3726
4309
  });
3727
4310
  };
3728
4311
  exports.isDefaultTagsPerWorkspace = isDefaultTagsPerWorkspace;
4312
+ /**
4313
+ * create workspace dependencies
4314
+ * @param data The data for the request.
4315
+ * @param data.workspace
4316
+ * @param data.requestBody New workspace dependencies
4317
+ * @returns string workspace dependencies created
4318
+ * @throws ApiError
4319
+ */
4320
+ const createWorkspaceDependencies = (data) => {
4321
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4322
+ method: 'POST',
4323
+ url: '/w/{workspace}/workspace_dependencies/create',
4324
+ path: {
4325
+ workspace: data.workspace
4326
+ },
4327
+ body: data.requestBody,
4328
+ mediaType: 'application/json'
4329
+ });
4330
+ };
4331
+ exports.createWorkspaceDependencies = createWorkspaceDependencies;
4332
+ /**
4333
+ * archive workspace dependencies (require admin)
4334
+ * @param data The data for the request.
4335
+ * @param data.workspace
4336
+ * @param data.language
4337
+ * @param data.name
4338
+ * @returns unknown result
4339
+ * @throws ApiError
4340
+ */
4341
+ const archiveWorkspaceDependencies = (data) => {
4342
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4343
+ method: 'POST',
4344
+ url: '/w/{workspace}/workspace_dependencies/archive/{language}',
4345
+ path: {
4346
+ workspace: data.workspace,
4347
+ language: data.language
4348
+ },
4349
+ query: {
4350
+ name: data.name
4351
+ }
4352
+ });
4353
+ };
4354
+ exports.archiveWorkspaceDependencies = archiveWorkspaceDependencies;
4355
+ /**
4356
+ * delete workspace dependencies (require admin)
4357
+ * @param data The data for the request.
4358
+ * @param data.workspace
4359
+ * @param data.language
4360
+ * @param data.name
4361
+ * @returns unknown result
4362
+ * @throws ApiError
4363
+ */
4364
+ const deleteWorkspaceDependencies = (data) => {
4365
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4366
+ method: 'POST',
4367
+ url: '/w/{workspace}/workspace_dependencies/delete/{language}',
4368
+ path: {
4369
+ workspace: data.workspace,
4370
+ language: data.language
4371
+ },
4372
+ query: {
4373
+ name: data.name
4374
+ }
4375
+ });
4376
+ };
4377
+ exports.deleteWorkspaceDependencies = deleteWorkspaceDependencies;
4378
+ /**
4379
+ * list all workspace dependencies
4380
+ * @param data The data for the request.
4381
+ * @param data.workspace
4382
+ * @returns WorkspaceDependencies All workspace dependencies
4383
+ * @throws ApiError
4384
+ */
4385
+ const listWorkspaceDependencies = (data) => {
4386
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4387
+ method: 'GET',
4388
+ url: '/w/{workspace}/workspace_dependencies/list',
4389
+ path: {
4390
+ workspace: data.workspace
4391
+ }
4392
+ });
4393
+ };
4394
+ exports.listWorkspaceDependencies = listWorkspaceDependencies;
4395
+ /**
4396
+ * get latest workspace dependencies by language and name
4397
+ * @param data The data for the request.
4398
+ * @param data.workspace
4399
+ * @param data.language
4400
+ * @param data.name
4401
+ * @returns WorkspaceDependencies Latest workspace dependencies
4402
+ * @throws ApiError
4403
+ */
4404
+ const getLatestWorkspaceDependencies = (data) => {
4405
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4406
+ method: 'GET',
4407
+ url: '/w/{workspace}/workspace_dependencies/get_latest/{language}',
4408
+ path: {
4409
+ workspace: data.workspace,
4410
+ language: data.language
4411
+ },
4412
+ query: {
4413
+ name: data.name
4414
+ }
4415
+ });
4416
+ };
4417
+ exports.getLatestWorkspaceDependencies = getLatestWorkspaceDependencies;
3729
4418
  /**
3730
4419
  * archive script by path
3731
4420
  * @param data The data for the request.
@@ -4265,6 +4954,7 @@ exports.runWaitResultScriptByPathGet = runWaitResultScriptByPathGet;
4265
4954
  *
4266
4955
  * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
4267
4956
  * @param data.skipPreprocessor skip the preprocessor
4957
+ * @param data.memoryId memory ID for chat-enabled flows
4268
4958
  * @returns unknown job result
4269
4959
  * @throws ApiError
4270
4960
  */
@@ -4280,7 +4970,8 @@ const runWaitResultFlowByPath = (data) => {
4280
4970
  include_header: data.includeHeader,
4281
4971
  queue_limit: data.queueLimit,
4282
4972
  job_id: data.jobId,
4283
- skip_preprocessor: data.skipPreprocessor
4973
+ skip_preprocessor: data.skipPreprocessor,
4974
+ memory_id: data.memoryId
4284
4975
  },
4285
4976
  body: data.requestBody,
4286
4977
  mediaType: 'application/json'
@@ -4288,15 +4979,422 @@ const runWaitResultFlowByPath = (data) => {
4288
4979
  };
4289
4980
  exports.runWaitResultFlowByPath = runWaitResultFlowByPath;
4290
4981
  /**
4291
- * get job result by id
4982
+ * run flow by version and wait until completion
4292
4983
  * @param data The data for the request.
4293
4984
  * @param data.workspace
4294
- * @param data.flowJobId
4295
- * @param data.nodeId
4985
+ * @param data.version flow version ID
4986
+ * @param data.requestBody script args
4987
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
4988
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
4989
+ *
4990
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
4991
+ *
4992
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
4993
+ * @param data.skipPreprocessor skip the preprocessor
4994
+ * @param data.memoryId memory ID for chat-enabled flows
4296
4995
  * @returns unknown job result
4297
4996
  * @throws ApiError
4298
4997
  */
4299
- const resultById = (data) => {
4998
+ const runWaitResultFlowByVersion = (data) => {
4999
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5000
+ method: 'POST',
5001
+ url: '/w/{workspace}/jobs/run_wait_result/fv/{version}',
5002
+ path: {
5003
+ workspace: data.workspace,
5004
+ version: data.version
5005
+ },
5006
+ query: {
5007
+ include_header: data.includeHeader,
5008
+ queue_limit: data.queueLimit,
5009
+ job_id: data.jobId,
5010
+ skip_preprocessor: data.skipPreprocessor,
5011
+ memory_id: data.memoryId
5012
+ },
5013
+ body: data.requestBody,
5014
+ mediaType: 'application/json'
5015
+ });
5016
+ };
5017
+ exports.runWaitResultFlowByVersion = runWaitResultFlowByVersion;
5018
+ /**
5019
+ * run flow by version with GET and wait until completion
5020
+ * @param data The data for the request.
5021
+ * @param data.workspace
5022
+ * @param data.version flow version ID
5023
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5024
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5025
+ *
5026
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5027
+ *
5028
+ * @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
5029
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
5030
+ *
5031
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5032
+ * @param data.skipPreprocessor skip the preprocessor
5033
+ * @param data.memoryId memory ID for chat-enabled flows
5034
+ * @returns unknown job result
5035
+ * @throws ApiError
5036
+ */
5037
+ const runWaitResultFlowByVersionGet = (data) => {
5038
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5039
+ method: 'GET',
5040
+ url: '/w/{workspace}/jobs/run_wait_result/fv/{version}',
5041
+ path: {
5042
+ workspace: data.workspace,
5043
+ version: data.version
5044
+ },
5045
+ query: {
5046
+ include_header: data.includeHeader,
5047
+ queue_limit: data.queueLimit,
5048
+ payload: data.payload,
5049
+ job_id: data.jobId,
5050
+ skip_preprocessor: data.skipPreprocessor,
5051
+ memory_id: data.memoryId
5052
+ }
5053
+ });
5054
+ };
5055
+ exports.runWaitResultFlowByVersionGet = runWaitResultFlowByVersionGet;
5056
+ /**
5057
+ * run flow by path and stream updates via SSE
5058
+ * @param data The data for the request.
5059
+ * @param data.workspace
5060
+ * @param data.path
5061
+ * @param data.requestBody flow args
5062
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5063
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5064
+ *
5065
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5066
+ *
5067
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5068
+ * @param data.skipPreprocessor skip the preprocessor
5069
+ * @param data.memoryId memory ID for chat-enabled flows
5070
+ * @param data.pollDelayMs delay between polling for job updates in milliseconds
5071
+ * @returns string server-sent events stream of job updates
5072
+ * @throws ApiError
5073
+ */
5074
+ const runAndStreamFlowByPath = (data) => {
5075
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5076
+ method: 'POST',
5077
+ url: '/w/{workspace}/jobs/run_and_stream/f/{path}',
5078
+ path: {
5079
+ workspace: data.workspace,
5080
+ path: data.path
5081
+ },
5082
+ query: {
5083
+ include_header: data.includeHeader,
5084
+ queue_limit: data.queueLimit,
5085
+ job_id: data.jobId,
5086
+ skip_preprocessor: data.skipPreprocessor,
5087
+ memory_id: data.memoryId,
5088
+ poll_delay_ms: data.pollDelayMs
5089
+ },
5090
+ body: data.requestBody,
5091
+ mediaType: 'application/json'
5092
+ });
5093
+ };
5094
+ exports.runAndStreamFlowByPath = runAndStreamFlowByPath;
5095
+ /**
5096
+ * run flow by path with GET and stream updates via SSE
5097
+ * @param data The data for the request.
5098
+ * @param data.workspace
5099
+ * @param data.path
5100
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5101
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5102
+ *
5103
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5104
+ *
5105
+ * @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
5106
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
5107
+ *
5108
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5109
+ * @param data.skipPreprocessor skip the preprocessor
5110
+ * @param data.memoryId memory ID for chat-enabled flows
5111
+ * @param data.pollDelayMs delay between polling for job updates in milliseconds
5112
+ * @returns string server-sent events stream of job updates
5113
+ * @throws ApiError
5114
+ */
5115
+ const runAndStreamFlowByPathGet = (data) => {
5116
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5117
+ method: 'GET',
5118
+ url: '/w/{workspace}/jobs/run_and_stream/f/{path}',
5119
+ path: {
5120
+ workspace: data.workspace,
5121
+ path: data.path
5122
+ },
5123
+ query: {
5124
+ include_header: data.includeHeader,
5125
+ queue_limit: data.queueLimit,
5126
+ payload: data.payload,
5127
+ job_id: data.jobId,
5128
+ skip_preprocessor: data.skipPreprocessor,
5129
+ memory_id: data.memoryId,
5130
+ poll_delay_ms: data.pollDelayMs
5131
+ }
5132
+ });
5133
+ };
5134
+ exports.runAndStreamFlowByPathGet = runAndStreamFlowByPathGet;
5135
+ /**
5136
+ * run flow by version and stream updates via SSE
5137
+ * @param data The data for the request.
5138
+ * @param data.workspace
5139
+ * @param data.version flow version ID
5140
+ * @param data.requestBody flow args
5141
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5142
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5143
+ *
5144
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5145
+ *
5146
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5147
+ * @param data.skipPreprocessor skip the preprocessor
5148
+ * @param data.memoryId memory ID for chat-enabled flows
5149
+ * @param data.pollDelayMs delay between polling for job updates in milliseconds
5150
+ * @returns string server-sent events stream of job updates
5151
+ * @throws ApiError
5152
+ */
5153
+ const runAndStreamFlowByVersion = (data) => {
5154
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5155
+ method: 'POST',
5156
+ url: '/w/{workspace}/jobs/run_and_stream/fv/{version}',
5157
+ path: {
5158
+ workspace: data.workspace,
5159
+ version: data.version
5160
+ },
5161
+ query: {
5162
+ include_header: data.includeHeader,
5163
+ queue_limit: data.queueLimit,
5164
+ job_id: data.jobId,
5165
+ skip_preprocessor: data.skipPreprocessor,
5166
+ memory_id: data.memoryId,
5167
+ poll_delay_ms: data.pollDelayMs
5168
+ },
5169
+ body: data.requestBody,
5170
+ mediaType: 'application/json'
5171
+ });
5172
+ };
5173
+ exports.runAndStreamFlowByVersion = runAndStreamFlowByVersion;
5174
+ /**
5175
+ * run flow by version with GET and stream updates via SSE
5176
+ * @param data The data for the request.
5177
+ * @param data.workspace
5178
+ * @param data.version flow version ID
5179
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5180
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5181
+ *
5182
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5183
+ *
5184
+ * @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
5185
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
5186
+ *
5187
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5188
+ * @param data.skipPreprocessor skip the preprocessor
5189
+ * @param data.memoryId memory ID for chat-enabled flows
5190
+ * @param data.pollDelayMs delay between polling for job updates in milliseconds
5191
+ * @returns string server-sent events stream of job updates
5192
+ * @throws ApiError
5193
+ */
5194
+ const runAndStreamFlowByVersionGet = (data) => {
5195
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5196
+ method: 'GET',
5197
+ url: '/w/{workspace}/jobs/run_and_stream/fv/{version}',
5198
+ path: {
5199
+ workspace: data.workspace,
5200
+ version: data.version
5201
+ },
5202
+ query: {
5203
+ include_header: data.includeHeader,
5204
+ queue_limit: data.queueLimit,
5205
+ payload: data.payload,
5206
+ job_id: data.jobId,
5207
+ skip_preprocessor: data.skipPreprocessor,
5208
+ memory_id: data.memoryId,
5209
+ poll_delay_ms: data.pollDelayMs
5210
+ }
5211
+ });
5212
+ };
5213
+ exports.runAndStreamFlowByVersionGet = runAndStreamFlowByVersionGet;
5214
+ /**
5215
+ * run script by path and stream updates via SSE
5216
+ * @param data The data for the request.
5217
+ * @param data.workspace
5218
+ * @param data.path
5219
+ * @param data.requestBody script args
5220
+ * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
5221
+ * @param data.tag Override the tag to use
5222
+ * @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
5223
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5224
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5225
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5226
+ *
5227
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5228
+ *
5229
+ * @param data.skipPreprocessor skip the preprocessor
5230
+ * @param data.pollDelayMs delay between polling for job updates in milliseconds
5231
+ * @returns string server-sent events stream of job updates
5232
+ * @throws ApiError
5233
+ */
5234
+ const runAndStreamScriptByPath = (data) => {
5235
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5236
+ method: 'POST',
5237
+ url: '/w/{workspace}/jobs/run_and_stream/p/{path}',
5238
+ path: {
5239
+ workspace: data.workspace,
5240
+ path: data.path
5241
+ },
5242
+ query: {
5243
+ parent_job: data.parentJob,
5244
+ tag: data.tag,
5245
+ cache_ttl: data.cacheTtl,
5246
+ job_id: data.jobId,
5247
+ include_header: data.includeHeader,
5248
+ queue_limit: data.queueLimit,
5249
+ skip_preprocessor: data.skipPreprocessor,
5250
+ poll_delay_ms: data.pollDelayMs
5251
+ },
5252
+ body: data.requestBody,
5253
+ mediaType: 'application/json'
5254
+ });
5255
+ };
5256
+ exports.runAndStreamScriptByPath = runAndStreamScriptByPath;
5257
+ /**
5258
+ * run script by path with GET and stream updates via SSE
5259
+ * @param data The data for the request.
5260
+ * @param data.workspace
5261
+ * @param data.path
5262
+ * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
5263
+ * @param data.tag Override the tag to use
5264
+ * @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
5265
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5266
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5267
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5268
+ *
5269
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5270
+ *
5271
+ * @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
5272
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
5273
+ *
5274
+ * @param data.skipPreprocessor skip the preprocessor
5275
+ * @param data.pollDelayMs delay between polling for job updates in milliseconds
5276
+ * @returns string server-sent events stream of job updates
5277
+ * @throws ApiError
5278
+ */
5279
+ const runAndStreamScriptByPathGet = (data) => {
5280
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5281
+ method: 'GET',
5282
+ url: '/w/{workspace}/jobs/run_and_stream/p/{path}',
5283
+ path: {
5284
+ workspace: data.workspace,
5285
+ path: data.path
5286
+ },
5287
+ query: {
5288
+ parent_job: data.parentJob,
5289
+ tag: data.tag,
5290
+ cache_ttl: data.cacheTtl,
5291
+ job_id: data.jobId,
5292
+ include_header: data.includeHeader,
5293
+ queue_limit: data.queueLimit,
5294
+ payload: data.payload,
5295
+ skip_preprocessor: data.skipPreprocessor,
5296
+ poll_delay_ms: data.pollDelayMs
5297
+ }
5298
+ });
5299
+ };
5300
+ exports.runAndStreamScriptByPathGet = runAndStreamScriptByPathGet;
5301
+ /**
5302
+ * run script by hash and stream updates via SSE
5303
+ * @param data The data for the request.
5304
+ * @param data.workspace
5305
+ * @param data.hash
5306
+ * @param data.requestBody script args
5307
+ * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
5308
+ * @param data.tag Override the tag to use
5309
+ * @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
5310
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5311
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5312
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5313
+ *
5314
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5315
+ *
5316
+ * @param data.skipPreprocessor skip the preprocessor
5317
+ * @param data.pollDelayMs delay between polling for job updates in milliseconds
5318
+ * @returns string server-sent events stream of job updates
5319
+ * @throws ApiError
5320
+ */
5321
+ const runAndStreamScriptByHash = (data) => {
5322
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5323
+ method: 'POST',
5324
+ url: '/w/{workspace}/jobs/run_and_stream/h/{hash}',
5325
+ path: {
5326
+ workspace: data.workspace,
5327
+ hash: data.hash
5328
+ },
5329
+ query: {
5330
+ parent_job: data.parentJob,
5331
+ tag: data.tag,
5332
+ cache_ttl: data.cacheTtl,
5333
+ job_id: data.jobId,
5334
+ include_header: data.includeHeader,
5335
+ queue_limit: data.queueLimit,
5336
+ skip_preprocessor: data.skipPreprocessor,
5337
+ poll_delay_ms: data.pollDelayMs
5338
+ },
5339
+ body: data.requestBody,
5340
+ mediaType: 'application/json'
5341
+ });
5342
+ };
5343
+ exports.runAndStreamScriptByHash = runAndStreamScriptByHash;
5344
+ /**
5345
+ * run script by hash with GET and stream updates via SSE
5346
+ * @param data The data for the request.
5347
+ * @param data.workspace
5348
+ * @param data.hash
5349
+ * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
5350
+ * @param data.tag Override the tag to use
5351
+ * @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
5352
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
5353
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
5354
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5355
+ *
5356
+ * @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
5357
+ *
5358
+ * @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
5359
+ * `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
5360
+ *
5361
+ * @param data.skipPreprocessor skip the preprocessor
5362
+ * @param data.pollDelayMs delay between polling for job updates in milliseconds
5363
+ * @returns string server-sent events stream of job updates
5364
+ * @throws ApiError
5365
+ */
5366
+ const runAndStreamScriptByHashGet = (data) => {
5367
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5368
+ method: 'GET',
5369
+ url: '/w/{workspace}/jobs/run_and_stream/h/{hash}',
5370
+ path: {
5371
+ workspace: data.workspace,
5372
+ hash: data.hash
5373
+ },
5374
+ query: {
5375
+ parent_job: data.parentJob,
5376
+ tag: data.tag,
5377
+ cache_ttl: data.cacheTtl,
5378
+ job_id: data.jobId,
5379
+ include_header: data.includeHeader,
5380
+ queue_limit: data.queueLimit,
5381
+ payload: data.payload,
5382
+ skip_preprocessor: data.skipPreprocessor,
5383
+ poll_delay_ms: data.pollDelayMs
5384
+ }
5385
+ });
5386
+ };
5387
+ exports.runAndStreamScriptByHashGet = runAndStreamScriptByHashGet;
5388
+ /**
5389
+ * get job result by id
5390
+ * @param data The data for the request.
5391
+ * @param data.workspace
5392
+ * @param data.flowJobId
5393
+ * @param data.nodeId
5394
+ * @returns unknown job result
5395
+ * @throws ApiError
5396
+ */
5397
+ const resultById = (data) => {
4300
5398
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4301
5399
  method: 'GET',
4302
5400
  url: '/w/{workspace}/jobs/result_by_id/{flow_job_id}/{node_id}',
@@ -4366,6 +5464,13 @@ exports.listSearchFlow = listSearchFlow;
4366
5464
  * @param data.withDeploymentMsg (default false)
4367
5465
  * include deployment message
4368
5466
  *
5467
+ * @param data.withoutDescription (default false)
5468
+ * If true, the description field will be omitted from the response.
5469
+ *
5470
+ * @param data.dedicatedWorker (default regardless)
5471
+ * If true, show only flows with dedicated_worker enabled.
5472
+ * If false, show only flows with dedicated_worker disabled.
5473
+ *
4369
5474
  * @returns unknown All flow
4370
5475
  * @throws ApiError
4371
5476
  */
@@ -4386,7 +5491,9 @@ const listFlows = (data) => {
4386
5491
  show_archived: data.showArchived,
4387
5492
  starred_only: data.starredOnly,
4388
5493
  include_draft_only: data.includeDraftOnly,
4389
- with_deployment_msg: data.withDeploymentMsg
5494
+ with_deployment_msg: data.withDeploymentMsg,
5495
+ without_description: data.withoutDescription,
5496
+ dedicated_worker: data.dedicatedWorker
4390
5497
  }
4391
5498
  });
4392
5499
  };
@@ -4459,18 +5566,16 @@ exports.listFlowPathsFromWorkspaceRunnable = listFlowPathsFromWorkspaceRunnable;
4459
5566
  * @param data The data for the request.
4460
5567
  * @param data.workspace
4461
5568
  * @param data.version
4462
- * @param data.path
4463
5569
  * @returns Flow flow details
4464
5570
  * @throws ApiError
4465
5571
  */
4466
5572
  const getFlowVersion = (data) => {
4467
5573
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4468
5574
  method: 'GET',
4469
- url: '/w/{workspace}/flows/get/v/{version}/p/{path}',
5575
+ url: '/w/{workspace}/flows/get/v/{version}',
4470
5576
  path: {
4471
5577
  workspace: data.workspace,
4472
- version: data.version,
4473
- path: data.path
5578
+ version: data.version
4474
5579
  }
4475
5580
  });
4476
5581
  };
@@ -4480,7 +5585,6 @@ exports.getFlowVersion = getFlowVersion;
4480
5585
  * @param data The data for the request.
4481
5586
  * @param data.workspace
4482
5587
  * @param data.version
4483
- * @param data.path
4484
5588
  * @param data.requestBody Flow deployment message
4485
5589
  * @returns string success
4486
5590
  * @throws ApiError
@@ -4488,11 +5592,10 @@ exports.getFlowVersion = getFlowVersion;
4488
5592
  const updateFlowHistory = (data) => {
4489
5593
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4490
5594
  method: 'POST',
4491
- url: '/w/{workspace}/flows/history_update/v/{version}/p/{path}',
5595
+ url: '/w/{workspace}/flows/history_update/v/{version}',
4492
5596
  path: {
4493
5597
  workspace: data.workspace,
4494
- version: data.version,
4495
- path: data.path
5598
+ version: data.version
4496
5599
  },
4497
5600
  body: data.requestBody,
4498
5601
  mediaType: 'application/json'
@@ -4726,6 +5829,77 @@ const deleteFlowByPath = (data) => {
4726
5829
  });
4727
5830
  };
4728
5831
  exports.deleteFlowByPath = deleteFlowByPath;
5832
+ /**
5833
+ * list flow conversations
5834
+ * @param data The data for the request.
5835
+ * @param data.workspace
5836
+ * @param data.page which page to return (start at 1, default 1)
5837
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
5838
+ * @param data.flowPath filter conversations by flow path
5839
+ * @returns FlowConversation flow conversations list
5840
+ * @throws ApiError
5841
+ */
5842
+ const listFlowConversations = (data) => {
5843
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5844
+ method: 'GET',
5845
+ url: '/w/{workspace}/flow_conversations/list',
5846
+ path: {
5847
+ workspace: data.workspace
5848
+ },
5849
+ query: {
5850
+ page: data.page,
5851
+ per_page: data.perPage,
5852
+ flow_path: data.flowPath
5853
+ }
5854
+ });
5855
+ };
5856
+ exports.listFlowConversations = listFlowConversations;
5857
+ /**
5858
+ * delete flow conversation
5859
+ * @param data The data for the request.
5860
+ * @param data.workspace
5861
+ * @param data.conversationId conversation id
5862
+ * @returns string flow conversation deleted
5863
+ * @throws ApiError
5864
+ */
5865
+ const deleteFlowConversation = (data) => {
5866
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5867
+ method: 'DELETE',
5868
+ url: '/w/{workspace}/flow_conversations/delete/{conversation_id}',
5869
+ path: {
5870
+ workspace: data.workspace,
5871
+ conversation_id: data.conversationId
5872
+ }
5873
+ });
5874
+ };
5875
+ exports.deleteFlowConversation = deleteFlowConversation;
5876
+ /**
5877
+ * list conversation messages
5878
+ * @param data The data for the request.
5879
+ * @param data.workspace
5880
+ * @param data.conversationId conversation id
5881
+ * @param data.page which page to return (start at 1, default 1)
5882
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
5883
+ * @param data.afterId id to fetch only the messages after that id
5884
+ * @returns FlowConversationMessage conversation messages
5885
+ * @throws ApiError
5886
+ */
5887
+ const listConversationMessages = (data) => {
5888
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5889
+ method: 'GET',
5890
+ url: '/w/{workspace}/flow_conversations/{conversation_id}/messages',
5891
+ path: {
5892
+ workspace: data.workspace,
5893
+ conversation_id: data.conversationId
5894
+ },
5895
+ query: {
5896
+ page: data.page,
5897
+ per_page: data.perPage,
5898
+ after_id: data.afterId
5899
+ }
5900
+ });
5901
+ };
5902
+ exports.listConversationMessages = listConversationMessages;
4729
5903
  /**
4730
5904
  * list all raw apps
4731
5905
  * @param data The data for the request.
@@ -4781,22 +5955,20 @@ const existsRawApp = (data) => {
4781
5955
  };
4782
5956
  exports.existsRawApp = existsRawApp;
4783
5957
  /**
4784
- * get app by path
5958
+ * get raw app data by
4785
5959
  * @param data The data for the request.
4786
5960
  * @param data.workspace
4787
- * @param data.version
4788
- * @param data.path
5961
+ * @param data.secretWithExtension
4789
5962
  * @returns string app details
4790
5963
  * @throws ApiError
4791
5964
  */
4792
5965
  const getRawAppData = (data) => {
4793
5966
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
4794
5967
  method: 'GET',
4795
- url: '/w/{workspace}/apps/get_data/{version}/{path}',
5968
+ url: '/w/{workspace}/apps/get_data/v/{secretWithExtension}',
4796
5969
  path: {
4797
5970
  workspace: data.workspace,
4798
- version: data.version,
4799
- path: data.path
5971
+ secretWithExtension: data.secretWithExtension
4800
5972
  }
4801
5973
  });
4802
5974
  };
@@ -5121,6 +6293,25 @@ const getPublicSecretOfApp = (data) => {
5121
6293
  });
5122
6294
  };
5123
6295
  exports.getPublicSecretOfApp = getPublicSecretOfApp;
6296
+ /**
6297
+ * get public secret of latest version of an app bundle
6298
+ * @param data The data for the request.
6299
+ * @param data.workspace
6300
+ * @param data.path
6301
+ * @returns string app secret
6302
+ * @throws ApiError
6303
+ */
6304
+ const getPublicSecretOfLatestVersionOfApp = (data) => {
6305
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
6306
+ method: 'GET',
6307
+ url: '/w/{workspace}/apps/secret_of_latest_version/{path}',
6308
+ path: {
6309
+ workspace: data.workspace,
6310
+ path: data.path
6311
+ }
6312
+ });
6313
+ };
6314
+ exports.getPublicSecretOfLatestVersionOfApp = getPublicSecretOfLatestVersionOfApp;
5124
6315
  /**
5125
6316
  * get app by version
5126
6317
  * @param data The data for the request.
@@ -5400,6 +6591,7 @@ exports.deleteS3FileFromApp = deleteS3FileFromApp;
5400
6591
  * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
5401
6592
  *
5402
6593
  * @param data.invisibleToOwner make the run invisible to the the flow owner (default false)
6594
+ * @param data.memoryId memory ID for chat-enabled flows
5403
6595
  * @returns string job created
5404
6596
  * @throws ApiError
5405
6597
  */
@@ -5419,13 +6611,58 @@ const runFlowByPath = (data) => {
5419
6611
  tag: data.tag,
5420
6612
  job_id: data.jobId,
5421
6613
  include_header: data.includeHeader,
5422
- invisible_to_owner: data.invisibleToOwner
6614
+ invisible_to_owner: data.invisibleToOwner,
6615
+ memory_id: data.memoryId
5423
6616
  },
5424
6617
  body: data.requestBody,
5425
6618
  mediaType: 'application/json'
5426
6619
  });
5427
6620
  };
5428
6621
  exports.runFlowByPath = runFlowByPath;
6622
+ /**
6623
+ * run flow by version
6624
+ * @param data The data for the request.
6625
+ * @param data.workspace
6626
+ * @param data.version flow version ID
6627
+ * @param data.requestBody flow args
6628
+ * @param data.scheduledFor when to schedule this job (leave empty for immediate run)
6629
+ * @param data.scheduledInSecs schedule the script to execute in the number of seconds starting now
6630
+ * @param data.skipPreprocessor skip the preprocessor
6631
+ * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
6632
+ * @param data.tag Override the tag to use
6633
+ * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
6634
+ * @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
6635
+ * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
6636
+ *
6637
+ * @param data.invisibleToOwner make the run invisible to the the flow owner (default false)
6638
+ * @param data.memoryId memory ID for chat-enabled flows
6639
+ * @returns string job created
6640
+ * @throws ApiError
6641
+ */
6642
+ const runFlowByVersion = (data) => {
6643
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
6644
+ method: 'POST',
6645
+ url: '/w/{workspace}/jobs/run/fv/{version}',
6646
+ path: {
6647
+ workspace: data.workspace,
6648
+ version: data.version
6649
+ },
6650
+ query: {
6651
+ scheduled_for: data.scheduledFor,
6652
+ scheduled_in_secs: data.scheduledInSecs,
6653
+ skip_preprocessor: data.skipPreprocessor,
6654
+ parent_job: data.parentJob,
6655
+ tag: data.tag,
6656
+ job_id: data.jobId,
6657
+ include_header: data.includeHeader,
6658
+ invisible_to_owner: data.invisibleToOwner,
6659
+ memory_id: data.memoryId
6660
+ },
6661
+ body: data.requestBody,
6662
+ mediaType: 'application/json'
6663
+ });
6664
+ };
6665
+ exports.runFlowByVersion = runFlowByVersion;
5429
6666
  /**
5430
6667
  * re-run multiple jobs
5431
6668
  * @param data The data for the request.
@@ -5451,9 +6688,7 @@ exports.batchReRunJobs = batchReRunJobs;
5451
6688
  * @param data The data for the request.
5452
6689
  * @param data.workspace
5453
6690
  * @param data.id
5454
- * @param data.stepId step id to restart the flow from
5455
- * @param data.branchOrIterationN for branchall or loop, the iteration at which the flow should restart
5456
- * @param data.requestBody flow args
6691
+ * @param data.requestBody restart flow parameters
5457
6692
  * @param data.scheduledFor when to schedule this job (leave empty for immediate run)
5458
6693
  * @param data.scheduledInSecs schedule the script to execute in the number of seconds starting now
5459
6694
  * @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
@@ -5469,12 +6704,10 @@ exports.batchReRunJobs = batchReRunJobs;
5469
6704
  const restartFlowAtStep = (data) => {
5470
6705
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
5471
6706
  method: 'POST',
5472
- url: '/w/{workspace}/jobs/restart/f/{id}/from/{step_id}/{branch_or_iteration_n}',
6707
+ url: '/w/{workspace}/jobs/restart/f/{id}',
5473
6708
  path: {
5474
6709
  workspace: data.workspace,
5475
- id: data.id,
5476
- step_id: data.stepId,
5477
- branch_or_iteration_n: data.branchOrIterationN
6710
+ id: data.id
5478
6711
  },
5479
6712
  query: {
5480
6713
  scheduled_for: data.scheduledFor,
@@ -5564,6 +6797,26 @@ const runScriptPreview = (data) => {
5564
6797
  });
5565
6798
  };
5566
6799
  exports.runScriptPreview = runScriptPreview;
6800
+ /**
6801
+ * run script preview without starting a new job
6802
+ * @param data The data for the request.
6803
+ * @param data.workspace
6804
+ * @param data.requestBody preview
6805
+ * @returns unknown script result
6806
+ * @throws ApiError
6807
+ */
6808
+ const runScriptPreviewInline = (data) => {
6809
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
6810
+ method: 'POST',
6811
+ url: '/w/{workspace}/jobs/run_inline/preview',
6812
+ path: {
6813
+ workspace: data.workspace
6814
+ },
6815
+ body: data.requestBody,
6816
+ mediaType: 'application/json'
6817
+ });
6818
+ };
6819
+ exports.runScriptPreviewInline = runScriptPreviewInline;
5567
6820
  /**
5568
6821
  * run script preview and wait for result
5569
6822
  * @param data The data for the request.
@@ -5638,6 +6891,7 @@ exports.runRawScriptDependencies = runRawScriptDependencies;
5638
6891
  *
5639
6892
  * @param data.invisibleToOwner make the run invisible to the the script owner (default false)
5640
6893
  * @param data.jobId The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
6894
+ * @param data.memoryId memory ID for chat-enabled flows
5641
6895
  * @returns string job created
5642
6896
  * @throws ApiError
5643
6897
  */
@@ -5651,7 +6905,8 @@ const runFlowPreview = (data) => {
5651
6905
  query: {
5652
6906
  include_header: data.includeHeader,
5653
6907
  invisible_to_owner: data.invisibleToOwner,
5654
- job_id: data.jobId
6908
+ job_id: data.jobId,
6909
+ memory_id: data.memoryId
5655
6910
  },
5656
6911
  body: data.requestBody,
5657
6912
  mediaType: 'application/json'
@@ -5663,6 +6918,7 @@ exports.runFlowPreview = runFlowPreview;
5663
6918
  * @param data The data for the request.
5664
6919
  * @param data.workspace
5665
6920
  * @param data.requestBody preview
6921
+ * @param data.memoryId memory ID for chat-enabled flows
5666
6922
  * @returns unknown job result
5667
6923
  * @throws ApiError
5668
6924
  */
@@ -5673,6 +6929,9 @@ const runFlowPreviewAndWaitResult = (data) => {
5673
6929
  path: {
5674
6930
  workspace: data.workspace
5675
6931
  },
6932
+ query: {
6933
+ memory_id: data.memoryId
6934
+ },
5676
6935
  body: data.requestBody,
5677
6936
  mediaType: 'application/json'
5678
6937
  });
@@ -5709,6 +6968,8 @@ exports.runDynamicSelect = runDynamicSelect;
5709
6968
  * @param data.scriptPathExact mask to filter exact matching path
5710
6969
  * @param data.scriptPathStart mask to filter matching starting path
5711
6970
  * @param data.schedulePath mask to filter by schedule path
6971
+ * @param data.triggerPath mask to filter by trigger path
6972
+ * @param data.triggerKind trigger kind (schedule, http, websocket...)
5712
6973
  * @param data.scriptHash mask to filter exact matching path
5713
6974
  * @param data.startedBefore filter on started before (inclusive) timestamp
5714
6975
  * @param data.startedAfter filter on started after (exclusive) timestamp
@@ -5743,6 +7004,8 @@ const listQueue = (data) => {
5743
7004
  script_path_exact: data.scriptPathExact,
5744
7005
  script_path_start: data.scriptPathStart,
5745
7006
  schedule_path: data.schedulePath,
7007
+ trigger_path: data.triggerPath,
7008
+ trigger_kind: data.triggerKind,
5746
7009
  script_hash: data.scriptHash,
5747
7010
  started_before: data.startedBefore,
5748
7011
  started_after: data.startedAfter,
@@ -5844,11 +7107,12 @@ exports.countCompletedJobs = countCompletedJobs;
5844
7107
  * @param data.startedAfter filter on started after (exclusive) timestamp
5845
7108
  * @param data.createdBefore filter on created before (inclusive) timestamp
5846
7109
  * @param data.createdAfter filter on created after (exclusive) timestamp
5847
- * @param data.createdOrStartedBefore filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
7110
+ * @param data.completedBefore filter on started before (inclusive) timestamp
7111
+ * @param data.completedAfter filter on started after (exclusive) timestamp
7112
+ * @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
7113
+ * @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
5848
7114
  * @param data.running filter on running jobs
5849
7115
  * @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
5850
- * @param data.createdOrStartedAfter filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
5851
- * @param data.createdOrStartedAfterCompletedJobs filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
5852
7116
  * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
5853
7117
  * @param data.suspended filter on suspended jobs
5854
7118
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
@@ -5885,11 +7149,12 @@ const listFilteredJobsUuids = (data) => {
5885
7149
  started_after: data.startedAfter,
5886
7150
  created_before: data.createdBefore,
5887
7151
  created_after: data.createdAfter,
5888
- created_or_started_before: data.createdOrStartedBefore,
7152
+ completed_before: data.completedBefore,
7153
+ completed_after: data.completedAfter,
7154
+ created_before_queue: data.createdBeforeQueue,
7155
+ created_after_queue: data.createdAfterQueue,
5889
7156
  running: data.running,
5890
7157
  scheduled_for_before_now: data.scheduledForBeforeNow,
5891
- created_or_started_after: data.createdOrStartedAfter,
5892
- created_or_started_after_completed_jobs: data.createdOrStartedAfterCompletedJobs,
5893
7158
  job_kinds: data.jobKinds,
5894
7159
  suspended: data.suspended,
5895
7160
  args: data.args,
@@ -5996,6 +7261,73 @@ const cancelSelection = (data) => {
5996
7261
  });
5997
7262
  };
5998
7263
  exports.cancelSelection = cancelSelection;
7264
+ /**
7265
+ * get OpenTelemetry traces for a job
7266
+ * @param data The data for the request.
7267
+ * @param data.workspace
7268
+ * @param data.id
7269
+ * @returns unknown list of OTEL Span objects (compatible with OpenTelemetry Span proto)
7270
+ * @throws ApiError
7271
+ */
7272
+ const getJobOtelTraces = (data) => {
7273
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7274
+ method: 'GET',
7275
+ url: '/w/{workspace}/jobs/get_otel_traces/{id}',
7276
+ path: {
7277
+ workspace: data.workspace,
7278
+ id: data.id
7279
+ }
7280
+ });
7281
+ };
7282
+ exports.getJobOtelTraces = getJobOtelTraces;
7283
+ /**
7284
+ * resume all suspended jobs for a specific trigger
7285
+ * @param data The data for the request.
7286
+ * @param data.workspace
7287
+ * @param data.triggerKind The kind of trigger
7288
+ * @param data.triggerPath The path of the trigger (can contain forward slashes)
7289
+ * @param data.requestBody Optional list of job IDs to reassign
7290
+ * @returns string confirmation message
7291
+ * @throws ApiError
7292
+ */
7293
+ const resumeSuspendedTriggerJobs = (data) => {
7294
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7295
+ method: 'POST',
7296
+ url: '/w/{workspace}/trigger/{trigger_kind}/resume_suspended_trigger_jobs/{trigger_path}',
7297
+ path: {
7298
+ workspace: data.workspace,
7299
+ trigger_kind: data.triggerKind,
7300
+ trigger_path: data.triggerPath
7301
+ },
7302
+ body: data.requestBody,
7303
+ mediaType: 'application/json'
7304
+ });
7305
+ };
7306
+ exports.resumeSuspendedTriggerJobs = resumeSuspendedTriggerJobs;
7307
+ /**
7308
+ * cancel all suspended jobs for a specific trigger
7309
+ * @param data The data for the request.
7310
+ * @param data.workspace
7311
+ * @param data.triggerKind The kind of trigger
7312
+ * @param data.triggerPath The path of the trigger (can contain forward slashes)
7313
+ * @param data.requestBody Optional list of job IDs to cancel
7314
+ * @returns string confirmation message
7315
+ * @throws ApiError
7316
+ */
7317
+ const cancelSuspendedTriggerJobs = (data) => {
7318
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7319
+ method: 'POST',
7320
+ url: '/w/{workspace}/trigger/{trigger_kind}/cancel_suspended_trigger_jobs/{trigger_path}',
7321
+ path: {
7322
+ workspace: data.workspace,
7323
+ trigger_kind: data.triggerKind,
7324
+ trigger_path: data.triggerPath
7325
+ },
7326
+ body: data.requestBody,
7327
+ mediaType: 'application/json'
7328
+ });
7329
+ };
7330
+ exports.cancelSuspendedTriggerJobs = cancelSuspendedTriggerJobs;
5999
7331
  /**
6000
7332
  * list all completed jobs
6001
7333
  * @param data The data for the request.
@@ -6060,7 +7392,113 @@ const listCompletedJobs = (data) => {
6060
7392
  }
6061
7393
  });
6062
7394
  };
6063
- exports.listCompletedJobs = listCompletedJobs;
7395
+ exports.listCompletedJobs = listCompletedJobs;
7396
+ /**
7397
+ * export all completed jobs for backup/migration
7398
+ * @param data The data for the request.
7399
+ * @param data.workspace
7400
+ * @param data.page which page to return (start at 1, default 1)
7401
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
7402
+ * @returns ExportableCompletedJob All completed jobs exported
7403
+ * @throws ApiError
7404
+ */
7405
+ const exportCompletedJobs = (data) => {
7406
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7407
+ method: 'GET',
7408
+ url: '/w/{workspace}/jobs/completed/export',
7409
+ path: {
7410
+ workspace: data.workspace
7411
+ },
7412
+ query: {
7413
+ page: data.page,
7414
+ per_page: data.perPage
7415
+ }
7416
+ });
7417
+ };
7418
+ exports.exportCompletedJobs = exportCompletedJobs;
7419
+ /**
7420
+ * import completed jobs from backup/migration
7421
+ * @param data The data for the request.
7422
+ * @param data.workspace
7423
+ * @param data.requestBody
7424
+ * @returns string Successfully imported completed jobs
7425
+ * @throws ApiError
7426
+ */
7427
+ const importCompletedJobs = (data) => {
7428
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7429
+ method: 'POST',
7430
+ url: '/w/{workspace}/jobs/completed/import',
7431
+ path: {
7432
+ workspace: data.workspace
7433
+ },
7434
+ body: data.requestBody,
7435
+ mediaType: 'application/json'
7436
+ });
7437
+ };
7438
+ exports.importCompletedJobs = importCompletedJobs;
7439
+ /**
7440
+ * export all queued jobs for backup/migration
7441
+ * @param data The data for the request.
7442
+ * @param data.workspace
7443
+ * @param data.page which page to return (start at 1, default 1)
7444
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
7445
+ * @returns ExportableQueuedJob All queued jobs exported
7446
+ * @throws ApiError
7447
+ */
7448
+ const exportQueuedJobs = (data) => {
7449
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7450
+ method: 'GET',
7451
+ url: '/w/{workspace}/jobs/queue/export',
7452
+ path: {
7453
+ workspace: data.workspace
7454
+ },
7455
+ query: {
7456
+ page: data.page,
7457
+ per_page: data.perPage
7458
+ }
7459
+ });
7460
+ };
7461
+ exports.exportQueuedJobs = exportQueuedJobs;
7462
+ /**
7463
+ * import queued jobs from backup/migration
7464
+ * @param data The data for the request.
7465
+ * @param data.workspace
7466
+ * @param data.requestBody
7467
+ * @returns string Successfully imported queued jobs
7468
+ * @throws ApiError
7469
+ */
7470
+ const importQueuedJobs = (data) => {
7471
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7472
+ method: 'POST',
7473
+ url: '/w/{workspace}/jobs/queue/import',
7474
+ path: {
7475
+ workspace: data.workspace
7476
+ },
7477
+ body: data.requestBody,
7478
+ mediaType: 'application/json'
7479
+ });
7480
+ };
7481
+ exports.importQueuedJobs = importQueuedJobs;
7482
+ /**
7483
+ * delete jobs by IDs from all related tables
7484
+ * @param data The data for the request.
7485
+ * @param data.workspace
7486
+ * @param data.requestBody
7487
+ * @returns string Successfully deleted jobs
7488
+ * @throws ApiError
7489
+ */
7490
+ const deleteJobs = (data) => {
7491
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7492
+ method: 'POST',
7493
+ url: '/w/{workspace}/jobs/delete',
7494
+ path: {
7495
+ workspace: data.workspace
7496
+ },
7497
+ body: data.requestBody,
7498
+ mediaType: 'application/json'
7499
+ });
7500
+ };
7501
+ exports.deleteJobs = deleteJobs;
6064
7502
  /**
6065
7503
  * list all jobs
6066
7504
  * @param data The data for the request.
@@ -6077,19 +7515,20 @@ exports.listCompletedJobs = listCompletedJobs;
6077
7515
  * @param data.startedAfter filter on started after (exclusive) timestamp
6078
7516
  * @param data.createdBefore filter on created before (inclusive) timestamp
6079
7517
  * @param data.createdAfter filter on created after (exclusive) timestamp
6080
- * @param data.createdOrStartedBefore filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
7518
+ * @param data.completedBefore filter on started before (inclusive) timestamp
7519
+ * @param data.completedAfter filter on started after (exclusive) timestamp
7520
+ * @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
7521
+ * @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
6081
7522
  * @param data.running filter on running jobs
6082
7523
  * @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
6083
- * @param data.createdOrStartedAfter filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
6084
- * @param data.createdOrStartedAfterCompletedJobs filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
6085
7524
  * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
6086
7525
  * @param data.suspended filter on suspended jobs
6087
7526
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
6088
7527
  * @param data.tag filter on jobs with a given tag/worker group
6089
7528
  * @param data.result filter on jobs containing those result as a json subset (@> in postgres)
6090
7529
  * @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
6091
- * @param data.page which page to return (start at 1, default 1)
6092
7530
  * @param data.perPage number of items to return for a given page (default 30, max 100)
7531
+ * @param data.triggerKind trigger kind (schedule, http, websocket...)
6093
7532
  * @param data.isSkipped is the job skipped
6094
7533
  * @param data.isFlowStep is the job a flow step
6095
7534
  * @param data.hasNullParent has null parent
@@ -6119,19 +7558,20 @@ const listJobs = (data) => {
6119
7558
  started_after: data.startedAfter,
6120
7559
  created_before: data.createdBefore,
6121
7560
  created_after: data.createdAfter,
6122
- created_or_started_before: data.createdOrStartedBefore,
7561
+ completed_before: data.completedBefore,
7562
+ completed_after: data.completedAfter,
7563
+ created_before_queue: data.createdBeforeQueue,
7564
+ created_after_queue: data.createdAfterQueue,
6123
7565
  running: data.running,
6124
7566
  scheduled_for_before_now: data.scheduledForBeforeNow,
6125
- created_or_started_after: data.createdOrStartedAfter,
6126
- created_or_started_after_completed_jobs: data.createdOrStartedAfterCompletedJobs,
6127
7567
  job_kinds: data.jobKinds,
6128
7568
  suspended: data.suspended,
6129
7569
  args: data.args,
6130
7570
  tag: data.tag,
6131
7571
  result: data.result,
6132
7572
  allow_wildcards: data.allowWildcards,
6133
- page: data.page,
6134
7573
  per_page: data.perPage,
7574
+ trigger_kind: data.triggerKind,
6135
7575
  is_skipped: data.isSkipped,
6136
7576
  is_flow_step: data.isFlowStep,
6137
7577
  has_null_parent: data.hasNullParent,
@@ -6471,6 +7911,25 @@ const getCompletedJobResultMaybe = (data) => {
6471
7911
  });
6472
7912
  };
6473
7913
  exports.getCompletedJobResultMaybe = getCompletedJobResultMaybe;
7914
+ /**
7915
+ * get completed job timing
7916
+ * @param data The data for the request.
7917
+ * @param data.workspace
7918
+ * @param data.id
7919
+ * @returns unknown job timing details
7920
+ * @throws ApiError
7921
+ */
7922
+ const getCompletedJobTiming = (data) => {
7923
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7924
+ method: 'GET',
7925
+ url: '/w/{workspace}/jobs_u/completed/get_timing/{id}',
7926
+ path: {
7927
+ workspace: data.workspace,
7928
+ id: data.id
7929
+ }
7930
+ });
7931
+ };
7932
+ exports.getCompletedJobTiming = getCompletedJobTiming;
6474
7933
  /**
6475
7934
  * delete completed job (erase content but keep run id)
6476
7935
  * @param data The data for the request.
@@ -6626,6 +8085,7 @@ exports.createJobSignature = createJobSignature;
6626
8085
  * @param data.id
6627
8086
  * @param data.resumeId
6628
8087
  * @param data.approver
8088
+ * @param data.flowLevel If true, generate resume URLs for the parent flow instead of the specific step. This allows pre-approvals that can be consumed by any later suspend step in the same flow.
6629
8089
  * @returns unknown url endpoints
6630
8090
  * @throws ApiError
6631
8091
  */
@@ -6639,7 +8099,8 @@ const getResumeUrls = (data) => {
6639
8099
  resume_id: data.resumeId
6640
8100
  },
6641
8101
  query: {
6642
- approver: data.approver
8102
+ approver: data.approver,
8103
+ flow_level: data.flowLevel
6643
8104
  }
6644
8105
  });
6645
8106
  };
@@ -7345,6 +8806,28 @@ const existsRoute = (data) => {
7345
8806
  });
7346
8807
  };
7347
8808
  exports.existsRoute = existsRoute;
8809
+ /**
8810
+ * enable/disable http trigger
8811
+ * @param data The data for the request.
8812
+ * @param data.workspace
8813
+ * @param data.path
8814
+ * @param data.requestBody
8815
+ * @returns string http trigger enable/disable
8816
+ * @throws ApiError
8817
+ */
8818
+ const setHttpTriggerMode = (data) => {
8819
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
8820
+ method: 'POST',
8821
+ url: '/w/{workspace}/http_triggers/setmode/{path}',
8822
+ path: {
8823
+ workspace: data.workspace,
8824
+ path: data.path
8825
+ },
8826
+ body: data.requestBody,
8827
+ mediaType: 'application/json'
8828
+ });
8829
+ };
8830
+ exports.setHttpTriggerMode = setHttpTriggerMode;
7348
8831
  /**
7349
8832
  * create websocket trigger
7350
8833
  * @param data The data for the request.
@@ -7482,10 +8965,10 @@ exports.existsWebsocketTrigger = existsWebsocketTrigger;
7482
8965
  * @returns string websocket trigger enabled set
7483
8966
  * @throws ApiError
7484
8967
  */
7485
- const setWebsocketTriggerEnabled = (data) => {
8968
+ const setWebsocketTriggerMode = (data) => {
7486
8969
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7487
8970
  method: 'POST',
7488
- url: '/w/{workspace}/websocket_triggers/setenabled/{path}',
8971
+ url: '/w/{workspace}/websocket_triggers/setmode/{path}',
7489
8972
  path: {
7490
8973
  workspace: data.workspace,
7491
8974
  path: data.path
@@ -7494,7 +8977,7 @@ const setWebsocketTriggerEnabled = (data) => {
7494
8977
  mediaType: 'application/json'
7495
8978
  });
7496
8979
  };
7497
- exports.setWebsocketTriggerEnabled = setWebsocketTriggerEnabled;
8980
+ exports.setWebsocketTriggerMode = setWebsocketTriggerMode;
7498
8981
  /**
7499
8982
  * test websocket connection
7500
8983
  * @param data The data for the request.
@@ -7652,10 +9135,10 @@ exports.existsKafkaTrigger = existsKafkaTrigger;
7652
9135
  * @returns string kafka trigger enabled set
7653
9136
  * @throws ApiError
7654
9137
  */
7655
- const setKafkaTriggerEnabled = (data) => {
9138
+ const setKafkaTriggerMode = (data) => {
7656
9139
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7657
9140
  method: 'POST',
7658
- url: '/w/{workspace}/kafka_triggers/setenabled/{path}',
9141
+ url: '/w/{workspace}/kafka_triggers/setmode/{path}',
7659
9142
  path: {
7660
9143
  workspace: data.workspace,
7661
9144
  path: data.path
@@ -7664,7 +9147,7 @@ const setKafkaTriggerEnabled = (data) => {
7664
9147
  mediaType: 'application/json'
7665
9148
  });
7666
9149
  };
7667
- exports.setKafkaTriggerEnabled = setKafkaTriggerEnabled;
9150
+ exports.setKafkaTriggerMode = setKafkaTriggerMode;
7668
9151
  /**
7669
9152
  * test kafka connection
7670
9153
  * @param data The data for the request.
@@ -7822,10 +9305,10 @@ exports.existsNatsTrigger = existsNatsTrigger;
7822
9305
  * @returns string nats trigger enabled set
7823
9306
  * @throws ApiError
7824
9307
  */
7825
- const setNatsTriggerEnabled = (data) => {
9308
+ const setNatsTriggerMode = (data) => {
7826
9309
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7827
9310
  method: 'POST',
7828
- url: '/w/{workspace}/nats_triggers/setenabled/{path}',
9311
+ url: '/w/{workspace}/nats_triggers/setmode/{path}',
7829
9312
  path: {
7830
9313
  workspace: data.workspace,
7831
9314
  path: data.path
@@ -7834,7 +9317,7 @@ const setNatsTriggerEnabled = (data) => {
7834
9317
  mediaType: 'application/json'
7835
9318
  });
7836
9319
  };
7837
- exports.setNatsTriggerEnabled = setNatsTriggerEnabled;
9320
+ exports.setNatsTriggerMode = setNatsTriggerMode;
7838
9321
  /**
7839
9322
  * test NATS connection
7840
9323
  * @param data The data for the request.
@@ -7972,59 +9455,396 @@ exports.listSqsTriggers = listSqsTriggers;
7972
9455
  * @returns boolean sqs trigger exists
7973
9456
  * @throws ApiError
7974
9457
  */
7975
- const existsSqsTrigger = (data) => {
9458
+ const existsSqsTrigger = (data) => {
9459
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9460
+ method: 'GET',
9461
+ url: '/w/{workspace}/sqs_triggers/exists/{path}',
9462
+ path: {
9463
+ workspace: data.workspace,
9464
+ path: data.path
9465
+ }
9466
+ });
9467
+ };
9468
+ exports.existsSqsTrigger = existsSqsTrigger;
9469
+ /**
9470
+ * set enabled sqs trigger
9471
+ * @param data The data for the request.
9472
+ * @param data.workspace
9473
+ * @param data.path
9474
+ * @param data.requestBody updated sqs trigger enable
9475
+ * @returns string sqs trigger enabled set
9476
+ * @throws ApiError
9477
+ */
9478
+ const setSqsTriggerMode = (data) => {
9479
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9480
+ method: 'POST',
9481
+ url: '/w/{workspace}/sqs_triggers/setmode/{path}',
9482
+ path: {
9483
+ workspace: data.workspace,
9484
+ path: data.path
9485
+ },
9486
+ body: data.requestBody,
9487
+ mediaType: 'application/json'
9488
+ });
9489
+ };
9490
+ exports.setSqsTriggerMode = setSqsTriggerMode;
9491
+ /**
9492
+ * test sqs connection
9493
+ * @param data The data for the request.
9494
+ * @param data.workspace
9495
+ * @param data.requestBody test sqs connection
9496
+ * @returns string successfuly connected to sqs
9497
+ * @throws ApiError
9498
+ */
9499
+ const testSqsConnection = (data) => {
9500
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9501
+ method: 'POST',
9502
+ url: '/w/{workspace}/sqs_triggers/test',
9503
+ path: {
9504
+ workspace: data.workspace
9505
+ },
9506
+ body: data.requestBody,
9507
+ mediaType: 'application/json'
9508
+ });
9509
+ };
9510
+ exports.testSqsConnection = testSqsConnection;
9511
+ /**
9512
+ * list available native trigger services
9513
+ * @param data The data for the request.
9514
+ * @param data.workspace
9515
+ * @returns WorkspaceIntegrations native trigger services list
9516
+ * @throws ApiError
9517
+ */
9518
+ const listNativeTriggerServices = (data) => {
9519
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9520
+ method: 'GET',
9521
+ url: '/w/{workspace}/native_triggers/integrations/list',
9522
+ path: {
9523
+ workspace: data.workspace
9524
+ }
9525
+ });
9526
+ };
9527
+ exports.listNativeTriggerServices = listNativeTriggerServices;
9528
+ /**
9529
+ * check if integrations for a particular service exists
9530
+ * @param data The data for the request.
9531
+ * @param data.workspace
9532
+ * @param data.serviceName
9533
+ * @returns boolean integration exists
9534
+ * @throws ApiError
9535
+ */
9536
+ const checkIfNativeTriggersServiceExists = (data) => {
9537
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9538
+ method: 'GET',
9539
+ url: '/w/{workspace}/native_triggers/integrations/{service_name}/exists',
9540
+ path: {
9541
+ workspace: data.workspace,
9542
+ service_name: data.serviceName
9543
+ }
9544
+ });
9545
+ };
9546
+ exports.checkIfNativeTriggersServiceExists = checkIfNativeTriggersServiceExists;
9547
+ /**
9548
+ * create native trigger service
9549
+ * @param data The data for the request.
9550
+ * @param data.workspace
9551
+ * @param data.serviceName
9552
+ * @param data.requestBody new native trigger service
9553
+ * @returns string native trigger service created
9554
+ * @throws ApiError
9555
+ */
9556
+ const createNativeTriggerService = (data) => {
9557
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9558
+ method: 'POST',
9559
+ url: '/w/{workspace}/native_triggers/integrations/{service_name}/create',
9560
+ path: {
9561
+ workspace: data.workspace,
9562
+ service_name: data.serviceName
9563
+ },
9564
+ body: data.requestBody,
9565
+ mediaType: 'application/json'
9566
+ });
9567
+ };
9568
+ exports.createNativeTriggerService = createNativeTriggerService;
9569
+ /**
9570
+ * generate connect url for native trigger service
9571
+ * @param data The data for the request.
9572
+ * @param data.workspace
9573
+ * @param data.serviceName
9574
+ * @param data.requestBody redirect_uri
9575
+ * @returns string native trigger service connect url
9576
+ * @throws ApiError
9577
+ */
9578
+ const generateNativeTriggerServiceConnectUrl = (data) => {
9579
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9580
+ method: 'POST',
9581
+ url: '/w/{workspace}/native_triggers/integrations/{service_name}/generate_connect_url',
9582
+ path: {
9583
+ workspace: data.workspace,
9584
+ service_name: data.serviceName
9585
+ },
9586
+ body: data.requestBody,
9587
+ mediaType: 'application/json'
9588
+ });
9589
+ };
9590
+ exports.generateNativeTriggerServiceConnectUrl = generateNativeTriggerServiceConnectUrl;
9591
+ /**
9592
+ * delete native trigger service
9593
+ * @param data The data for the request.
9594
+ * @param data.workspace
9595
+ * @param data.serviceName
9596
+ * @returns string native trigger service deleted
9597
+ * @throws ApiError
9598
+ */
9599
+ const deleteNativeTriggerService = (data) => {
9600
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9601
+ method: 'DELETE',
9602
+ url: '/w/{workspace}/native_triggers/integrations/{service_name}/delete',
9603
+ path: {
9604
+ workspace: data.workspace,
9605
+ service_name: data.serviceName
9606
+ }
9607
+ });
9608
+ };
9609
+ exports.deleteNativeTriggerService = deleteNativeTriggerService;
9610
+ /**
9611
+ * native trigger service oauth callback
9612
+ * @param data The data for the request.
9613
+ * @param data.workspace
9614
+ * @param data.serviceName
9615
+ * @param data.code
9616
+ * @param data.state
9617
+ * @param data.requestBody redirect_uri
9618
+ * @returns string native trigger service oauth completed
9619
+ * @throws ApiError
9620
+ */
9621
+ const nativeTriggerServiceCallback = (data) => {
9622
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9623
+ method: 'POST',
9624
+ url: '/w/{workspace}/native_triggers/integrations/{service_name}/callback/{code}/{state}',
9625
+ path: {
9626
+ workspace: data.workspace,
9627
+ service_name: data.serviceName,
9628
+ code: data.code,
9629
+ state: data.state
9630
+ },
9631
+ body: data.requestBody,
9632
+ mediaType: 'application/json'
9633
+ });
9634
+ };
9635
+ exports.nativeTriggerServiceCallback = nativeTriggerServiceCallback;
9636
+ /**
9637
+ * create native trigger
9638
+ * Creates a new native trigger for the specified service.
9639
+ * Requires write access to the script or flow that the trigger will be associated with.
9640
+ *
9641
+ * @param data The data for the request.
9642
+ * @param data.workspace
9643
+ * @param data.serviceName
9644
+ * @param data.requestBody new native trigger configuration
9645
+ * @returns CreateTriggerResponse native trigger created
9646
+ * @throws ApiError
9647
+ */
9648
+ const createNativeTrigger = (data) => {
9649
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9650
+ method: 'POST',
9651
+ url: '/w/{workspace}/native_triggers/{service_name}/create',
9652
+ path: {
9653
+ workspace: data.workspace,
9654
+ service_name: data.serviceName
9655
+ },
9656
+ body: data.requestBody,
9657
+ mediaType: 'application/json'
9658
+ });
9659
+ };
9660
+ exports.createNativeTrigger = createNativeTrigger;
9661
+ /**
9662
+ * update native trigger
9663
+ * Updates an existing native trigger.
9664
+ * Requires write access to the script or flow that the trigger is associated with.
9665
+ *
9666
+ * @param data The data for the request.
9667
+ * @param data.workspace
9668
+ * @param data.serviceName
9669
+ * @param data.externalId The external ID of the trigger from the external service
9670
+ * @param data.requestBody updated native trigger configuration
9671
+ * @returns string native trigger updated
9672
+ * @throws ApiError
9673
+ */
9674
+ const updateNativeTrigger = (data) => {
9675
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9676
+ method: 'POST',
9677
+ url: '/w/{workspace}/native_triggers/{service_name}/update/{external_id}',
9678
+ path: {
9679
+ workspace: data.workspace,
9680
+ service_name: data.serviceName,
9681
+ external_id: data.externalId
9682
+ },
9683
+ body: data.requestBody,
9684
+ mediaType: 'application/json'
9685
+ });
9686
+ };
9687
+ exports.updateNativeTrigger = updateNativeTrigger;
9688
+ /**
9689
+ * get native trigger
9690
+ * Retrieves a native trigger by its external ID.
9691
+ * Requires write access to the script or flow that the trigger is associated with.
9692
+ *
9693
+ * @param data The data for the request.
9694
+ * @param data.workspace
9695
+ * @param data.serviceName
9696
+ * @param data.externalId The external ID of the trigger from the external service
9697
+ * @returns NativeTriggerWithExternal native trigger with external configuration
9698
+ * @throws ApiError
9699
+ */
9700
+ const getNativeTrigger = (data) => {
9701
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9702
+ method: 'GET',
9703
+ url: '/w/{workspace}/native_triggers/{service_name}/get/{external_id}',
9704
+ path: {
9705
+ workspace: data.workspace,
9706
+ service_name: data.serviceName,
9707
+ external_id: data.externalId
9708
+ }
9709
+ });
9710
+ };
9711
+ exports.getNativeTrigger = getNativeTrigger;
9712
+ /**
9713
+ * delete native trigger
9714
+ * Deletes a native trigger by its external ID.
9715
+ * Requires write access to the script or flow that the trigger is associated with.
9716
+ *
9717
+ * @param data The data for the request.
9718
+ * @param data.workspace
9719
+ * @param data.serviceName
9720
+ * @param data.externalId The external ID of the trigger from the external service
9721
+ * @returns string native trigger deleted
9722
+ * @throws ApiError
9723
+ */
9724
+ const deleteNativeTrigger = (data) => {
9725
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9726
+ method: 'DELETE',
9727
+ url: '/w/{workspace}/native_triggers/{service_name}/delete/{external_id}',
9728
+ path: {
9729
+ workspace: data.workspace,
9730
+ service_name: data.serviceName,
9731
+ external_id: data.externalId
9732
+ }
9733
+ });
9734
+ };
9735
+ exports.deleteNativeTrigger = deleteNativeTrigger;
9736
+ /**
9737
+ * list native triggers
9738
+ * Lists all native triggers for the specified service in the workspace.
9739
+ * @param data The data for the request.
9740
+ * @param data.workspace
9741
+ * @param data.serviceName
9742
+ * @param data.page which page to return (start at 1, default 1)
9743
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
9744
+ * @param data.path filter by script path
9745
+ * @param data.isFlow filter by is_flow
9746
+ * @returns NativeTrigger native triggers list
9747
+ * @throws ApiError
9748
+ */
9749
+ const listNativeTriggers = (data) => {
9750
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9751
+ method: 'GET',
9752
+ url: '/w/{workspace}/native_triggers/{service_name}/list',
9753
+ path: {
9754
+ workspace: data.workspace,
9755
+ service_name: data.serviceName
9756
+ },
9757
+ query: {
9758
+ page: data.page,
9759
+ per_page: data.perPage,
9760
+ path: data.path,
9761
+ is_flow: data.isFlow
9762
+ }
9763
+ });
9764
+ };
9765
+ exports.listNativeTriggers = listNativeTriggers;
9766
+ /**
9767
+ * check if native trigger exists
9768
+ * Checks if a native trigger with the given external ID exists.
9769
+ * @param data The data for the request.
9770
+ * @param data.workspace
9771
+ * @param data.serviceName
9772
+ * @param data.externalId The external ID of the trigger from the external service
9773
+ * @returns boolean whether the native trigger exists
9774
+ * @throws ApiError
9775
+ */
9776
+ const existsNativeTrigger = (data) => {
9777
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
9778
+ method: 'GET',
9779
+ url: '/w/{workspace}/native_triggers/{service_name}/exists/{external_id}',
9780
+ path: {
9781
+ workspace: data.workspace,
9782
+ service_name: data.serviceName,
9783
+ external_id: data.externalId
9784
+ }
9785
+ });
9786
+ };
9787
+ exports.existsNativeTrigger = existsNativeTrigger;
9788
+ /**
9789
+ * sync native triggers with external service
9790
+ * @param data The data for the request.
9791
+ * @param data.workspace
9792
+ * @param data.serviceName
9793
+ * @returns unknown sync completed successfully
9794
+ * @throws ApiError
9795
+ */
9796
+ const syncNativeTriggers = (data) => {
7976
9797
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7977
- method: 'GET',
7978
- url: '/w/{workspace}/sqs_triggers/exists/{path}',
9798
+ method: 'POST',
9799
+ url: '/w/{workspace}/native_triggers/{service_name}/sync',
7979
9800
  path: {
7980
9801
  workspace: data.workspace,
7981
- path: data.path
9802
+ service_name: data.serviceName
7982
9803
  }
7983
9804
  });
7984
9805
  };
7985
- exports.existsSqsTrigger = existsSqsTrigger;
9806
+ exports.syncNativeTriggers = syncNativeTriggers;
7986
9807
  /**
7987
- * set enabled sqs trigger
9808
+ * list available NextCloud events
7988
9809
  * @param data The data for the request.
7989
9810
  * @param data.workspace
7990
- * @param data.path
7991
- * @param data.requestBody updated sqs trigger enable
7992
- * @returns string sqs trigger enabled set
9811
+ * @returns NextCloudEventType list of available NextCloud events
7993
9812
  * @throws ApiError
7994
9813
  */
7995
- const setSqsTriggerEnabled = (data) => {
9814
+ const listNextCloudEvents = (data) => {
7996
9815
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
7997
- method: 'POST',
7998
- url: '/w/{workspace}/sqs_triggers/setenabled/{path}',
9816
+ method: 'GET',
9817
+ url: '/w/{workspace}/native_triggers/nextcloud/events',
7999
9818
  path: {
8000
- workspace: data.workspace,
8001
- path: data.path
8002
- },
8003
- body: data.requestBody,
8004
- mediaType: 'application/json'
9819
+ workspace: data.workspace
9820
+ }
8005
9821
  });
8006
9822
  };
8007
- exports.setSqsTriggerEnabled = setSqsTriggerEnabled;
9823
+ exports.listNextCloudEvents = listNextCloudEvents;
8008
9824
  /**
8009
- * test sqs connection
9825
+ * receive webhook from external native trigger service
8010
9826
  * @param data The data for the request.
8011
- * @param data.workspace
8012
- * @param data.requestBody test sqs connection
8013
- * @returns string successfuly connected to sqs
9827
+ * @param data.serviceName
9828
+ * @param data.workspaceId
9829
+ * @param data.internalId The internal database ID of the trigger
9830
+ * @param data.requestBody webhook payload from external service
9831
+ * @returns string webhook received successfully
8014
9832
  * @throws ApiError
8015
9833
  */
8016
- const testSqsConnection = (data) => {
9834
+ const nativeTriggerWebhook = (data) => {
8017
9835
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
8018
9836
  method: 'POST',
8019
- url: '/w/{workspace}/sqs_triggers/test',
9837
+ url: '/native_triggers/{service_name}/w/{workspace_id}/webhook/{internal_id}',
8020
9838
  path: {
8021
- workspace: data.workspace
9839
+ service_name: data.serviceName,
9840
+ workspace_id: data.workspaceId,
9841
+ internal_id: data.internalId
8022
9842
  },
8023
9843
  body: data.requestBody,
8024
9844
  mediaType: 'application/json'
8025
9845
  });
8026
9846
  };
8027
- exports.testSqsConnection = testSqsConnection;
9847
+ exports.nativeTriggerWebhook = nativeTriggerWebhook;
8028
9848
  /**
8029
9849
  * create mqtt trigger
8030
9850
  * @param data The data for the request.
@@ -8162,10 +9982,10 @@ exports.existsMqttTrigger = existsMqttTrigger;
8162
9982
  * @returns string mqtt trigger enabled set
8163
9983
  * @throws ApiError
8164
9984
  */
8165
- const setMqttTriggerEnabled = (data) => {
9985
+ const setMqttTriggerMode = (data) => {
8166
9986
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
8167
9987
  method: 'POST',
8168
- url: '/w/{workspace}/mqtt_triggers/setenabled/{path}',
9988
+ url: '/w/{workspace}/mqtt_triggers/setmode/{path}',
8169
9989
  path: {
8170
9990
  workspace: data.workspace,
8171
9991
  path: data.path
@@ -8174,7 +9994,7 @@ const setMqttTriggerEnabled = (data) => {
8174
9994
  mediaType: 'application/json'
8175
9995
  });
8176
9996
  };
8177
- exports.setMqttTriggerEnabled = setMqttTriggerEnabled;
9997
+ exports.setMqttTriggerMode = setMqttTriggerMode;
8178
9998
  /**
8179
9999
  * test mqtt connection
8180
10000
  * @param data The data for the request.
@@ -8332,10 +10152,10 @@ exports.existsGcpTrigger = existsGcpTrigger;
8332
10152
  * @returns string gcp trigger enabled set
8333
10153
  * @throws ApiError
8334
10154
  */
8335
- const setGcpTriggerEnabled = (data) => {
10155
+ const setGcpTriggerMode = (data) => {
8336
10156
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
8337
10157
  method: 'POST',
8338
- url: '/w/{workspace}/gcp_triggers/setenabled/{path}',
10158
+ url: '/w/{workspace}/gcp_triggers/setmode/{path}',
8339
10159
  path: {
8340
10160
  workspace: data.workspace,
8341
10161
  path: data.path
@@ -8344,7 +10164,7 @@ const setGcpTriggerEnabled = (data) => {
8344
10164
  mediaType: 'application/json'
8345
10165
  });
8346
10166
  };
8347
- exports.setGcpTriggerEnabled = setGcpTriggerEnabled;
10167
+ exports.setGcpTriggerMode = setGcpTriggerMode;
8348
10168
  /**
8349
10169
  * test gcp connection
8350
10170
  * @param data The data for the request.
@@ -8814,10 +10634,10 @@ exports.existsPostgresTrigger = existsPostgresTrigger;
8814
10634
  * @returns string postgres trigger enabled set
8815
10635
  * @throws ApiError
8816
10636
  */
8817
- const setPostgresTriggerEnabled = (data) => {
10637
+ const setPostgresTriggerMode = (data) => {
8818
10638
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
8819
10639
  method: 'POST',
8820
- url: '/w/{workspace}/postgres_triggers/setenabled/{path}',
10640
+ url: '/w/{workspace}/postgres_triggers/setmode/{path}',
8821
10641
  path: {
8822
10642
  workspace: data.workspace,
8823
10643
  path: data.path
@@ -8826,7 +10646,7 @@ const setPostgresTriggerEnabled = (data) => {
8826
10646
  mediaType: 'application/json'
8827
10647
  });
8828
10648
  };
8829
- exports.setPostgresTriggerEnabled = setPostgresTriggerEnabled;
10649
+ exports.setPostgresTriggerMode = setPostgresTriggerMode;
8830
10650
  /**
8831
10651
  * test postgres connection
8832
10652
  * @param data The data for the request.
@@ -8995,6 +10815,28 @@ const existsEmailLocalPart = (data) => {
8995
10815
  });
8996
10816
  };
8997
10817
  exports.existsEmailLocalPart = existsEmailLocalPart;
10818
+ /**
10819
+ * enable/disable email trigger
10820
+ * @param data The data for the request.
10821
+ * @param data.workspace
10822
+ * @param data.path
10823
+ * @param data.requestBody
10824
+ * @returns string email trigger enable/disable
10825
+ * @throws ApiError
10826
+ */
10827
+ const setEmailTriggerMode = (data) => {
10828
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
10829
+ method: 'POST',
10830
+ url: '/w/{workspace}/email_triggers/setmode/{path}',
10831
+ path: {
10832
+ workspace: data.workspace,
10833
+ path: data.path
10834
+ },
10835
+ body: data.requestBody,
10836
+ mediaType: 'application/json'
10837
+ });
10838
+ };
10839
+ exports.setEmailTriggerMode = setEmailTriggerMode;
8998
10840
  /**
8999
10841
  * list instance groups
9000
10842
  * @returns InstanceGroup instance group list
@@ -9325,6 +11167,31 @@ const removeUserToGroup = (data) => {
9325
11167
  });
9326
11168
  };
9327
11169
  exports.removeUserToGroup = removeUserToGroup;
11170
+ /**
11171
+ * get group permission history
11172
+ * @param data The data for the request.
11173
+ * @param data.workspace
11174
+ * @param data.name
11175
+ * @param data.page which page to return (start at 1, default 1)
11176
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
11177
+ * @returns unknown group permission history
11178
+ * @throws ApiError
11179
+ */
11180
+ const getGroupPermissionHistory = (data) => {
11181
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
11182
+ method: 'GET',
11183
+ url: '/w/{workspace}/groups_history/get/{name}',
11184
+ path: {
11185
+ workspace: data.workspace,
11186
+ name: data.name
11187
+ },
11188
+ query: {
11189
+ page: data.page,
11190
+ per_page: data.perPage
11191
+ }
11192
+ });
11193
+ };
11194
+ exports.getGroupPermissionHistory = getGroupPermissionHistory;
9328
11195
  /**
9329
11196
  * list folders
9330
11197
  * @param data The data for the request.
@@ -9531,6 +11398,31 @@ const removeOwnerToFolder = (data) => {
9531
11398
  });
9532
11399
  };
9533
11400
  exports.removeOwnerToFolder = removeOwnerToFolder;
11401
+ /**
11402
+ * get folder permission history
11403
+ * @param data The data for the request.
11404
+ * @param data.workspace
11405
+ * @param data.name
11406
+ * @param data.page which page to return (start at 1, default 1)
11407
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
11408
+ * @returns unknown folder permission history
11409
+ * @throws ApiError
11410
+ */
11411
+ const getFolderPermissionHistory = (data) => {
11412
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
11413
+ method: 'GET',
11414
+ url: '/w/{workspace}/folders_history/get/{name}',
11415
+ path: {
11416
+ workspace: data.workspace,
11417
+ name: data.name
11418
+ },
11419
+ query: {
11420
+ page: data.page,
11421
+ per_page: data.perPage
11422
+ }
11423
+ });
11424
+ };
11425
+ exports.getFolderPermissionHistory = getFolderPermissionHistory;
9534
11426
  /**
9535
11427
  * list workers
9536
11428
  * @param data The data for the request.
@@ -9556,6 +11448,7 @@ exports.listWorkers = listWorkers;
9556
11448
  * exists workers with tags
9557
11449
  * @param data The data for the request.
9558
11450
  * @param data.tags comma separated list of tags
11451
+ * @param data.workspace workspace to filter tags visibility (required when TAGS_ARE_SENSITIVE is enabled for non-superadmins)
9559
11452
  * @returns boolean map of tags to whether at least one worker with the tag exists
9560
11453
  * @throws ApiError
9561
11454
  */
@@ -9564,7 +11457,8 @@ const existsWorkersWithTags = (data) => {
9564
11457
  method: 'GET',
9565
11458
  url: '/workers/exists_workers_with_tags',
9566
11459
  query: {
9567
- tags: data.tags
11460
+ tags: data.tags,
11461
+ workspace: data.workspace
9568
11462
  }
9569
11463
  });
9570
11464
  };
@@ -9687,6 +11581,8 @@ exports.listConfigs = listConfigs;
9687
11581
  * List autoscaling events
9688
11582
  * @param data The data for the request.
9689
11583
  * @param data.workerGroup
11584
+ * @param data.page which page to return (start at 1, default 1)
11585
+ * @param data.perPage number of items to return for a given page (default 30, max 100)
9690
11586
  * @returns AutoscalingEvent List of autoscaling events
9691
11587
  * @throws ApiError
9692
11588
  */
@@ -9696,6 +11592,10 @@ const listAutoscalingEvents = (data) => {
9696
11592
  url: '/configs/list_autoscaling_events/{worker_group}',
9697
11593
  path: {
9698
11594
  worker_group: data.workerGroup
11595
+ },
11596
+ query: {
11597
+ page: data.page,
11598
+ per_page: data.perPage
9699
11599
  }
9700
11600
  });
9701
11601
  };
@@ -9792,6 +11692,18 @@ const listBlacklistedAgentTokens = (data = {}) => {
9792
11692
  });
9793
11693
  };
9794
11694
  exports.listBlacklistedAgentTokens = listBlacklistedAgentTokens;
11695
+ /**
11696
+ * get minimum worker version across all workers
11697
+ * @returns string minimum worker version
11698
+ * @throws ApiError
11699
+ */
11700
+ const getMinVersion = () => {
11701
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
11702
+ method: 'GET',
11703
+ url: '/agent_workers/get_min_version'
11704
+ });
11705
+ };
11706
+ exports.getMinVersion = getMinVersion;
9795
11707
  /**
9796
11708
  * get granular acls
9797
11709
  * @param data The data for the request.
@@ -10410,6 +12322,112 @@ const loadFilePreview = (data) => {
10410
12322
  });
10411
12323
  };
10412
12324
  exports.loadFilePreview = loadFilePreview;
12325
+ /**
12326
+ * List the file keys available in instance object storage with resource-based access control
12327
+ * @param data The data for the request.
12328
+ * @param data.workspace
12329
+ * @param data.maxKeys
12330
+ * @param data.marker
12331
+ * @param data.prefix
12332
+ * @param data.storage
12333
+ * @returns unknown List of file keys
12334
+ * @throws ApiError
12335
+ */
12336
+ const listGitRepoFiles = (data) => {
12337
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
12338
+ method: 'GET',
12339
+ url: '/w/{workspace}/job_helpers/list_git_repo_files',
12340
+ path: {
12341
+ workspace: data.workspace
12342
+ },
12343
+ query: {
12344
+ max_keys: data.maxKeys,
12345
+ marker: data.marker,
12346
+ prefix: data.prefix,
12347
+ storage: data.storage
12348
+ }
12349
+ });
12350
+ };
12351
+ exports.listGitRepoFiles = listGitRepoFiles;
12352
+ /**
12353
+ * Load a preview of a file from instance storage with resource-based access control
12354
+ * @param data The data for the request.
12355
+ * @param data.workspace
12356
+ * @param data.fileKey
12357
+ * @param data.fileSizeInBytes
12358
+ * @param data.fileMimeType
12359
+ * @param data.csvSeparator
12360
+ * @param data.csvHasHeader
12361
+ * @param data.readBytesFrom
12362
+ * @param data.readBytesLength
12363
+ * @param data.storage
12364
+ * @returns WindmillFilePreview FilePreview
12365
+ * @throws ApiError
12366
+ */
12367
+ const loadGitRepoFilePreview = (data) => {
12368
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
12369
+ method: 'GET',
12370
+ url: '/w/{workspace}/job_helpers/load_git_repo_file_preview',
12371
+ path: {
12372
+ workspace: data.workspace
12373
+ },
12374
+ query: {
12375
+ file_key: data.fileKey,
12376
+ file_size_in_bytes: data.fileSizeInBytes,
12377
+ file_mime_type: data.fileMimeType,
12378
+ csv_separator: data.csvSeparator,
12379
+ csv_has_header: data.csvHasHeader,
12380
+ read_bytes_from: data.readBytesFrom,
12381
+ read_bytes_length: data.readBytesLength,
12382
+ storage: data.storage
12383
+ }
12384
+ });
12385
+ };
12386
+ exports.loadGitRepoFilePreview = loadGitRepoFilePreview;
12387
+ /**
12388
+ * Load file metadata from instance storage with resource-based access control
12389
+ * @param data The data for the request.
12390
+ * @param data.workspace
12391
+ * @param data.fileKey
12392
+ * @param data.storage
12393
+ * @returns WindmillFileMetadata FileMetadata
12394
+ * @throws ApiError
12395
+ */
12396
+ const loadGitRepoFileMetadata = (data) => {
12397
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
12398
+ method: 'GET',
12399
+ url: '/w/{workspace}/job_helpers/load_git_repo_file_metadata',
12400
+ path: {
12401
+ workspace: data.workspace
12402
+ },
12403
+ query: {
12404
+ file_key: data.fileKey,
12405
+ storage: data.storage
12406
+ }
12407
+ });
12408
+ };
12409
+ exports.loadGitRepoFileMetadata = loadGitRepoFileMetadata;
12410
+ /**
12411
+ * Check if S3 path exists and is a folder
12412
+ * @param data The data for the request.
12413
+ * @param data.workspace
12414
+ * @param data.fileKey S3 file key to check (e.g., gitrepos/{workspace_id}/u/user/resource/{commit_hash})
12415
+ * @returns unknown S3 folder existence check result
12416
+ * @throws ApiError
12417
+ */
12418
+ const checkS3FolderExists = (data) => {
12419
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
12420
+ method: 'GET',
12421
+ url: '/w/{workspace}/job_helpers/check_s3_folder_exists',
12422
+ path: {
12423
+ workspace: data.workspace
12424
+ },
12425
+ query: {
12426
+ file_key: data.fileKey
12427
+ }
12428
+ });
12429
+ };
12430
+ exports.checkS3FolderExists = checkS3FolderExists;
10413
12431
  /**
10414
12432
  * Load a preview of a parquet file
10415
12433
  * @param data The data for the request.
@@ -10593,6 +12611,42 @@ const fileUpload = (data) => {
10593
12611
  });
10594
12612
  };
10595
12613
  exports.fileUpload = fileUpload;
12614
+ /**
12615
+ * Upload a file to the instance storage gitrepos section for viewing
12616
+ * @param data The data for the request.
12617
+ * @param data.workspace
12618
+ * @param data.requestBody File content
12619
+ * @param data.fileKey
12620
+ * @param data.fileExtension
12621
+ * @param data.s3ResourcePath
12622
+ * @param data.resourceType
12623
+ * @param data.storage
12624
+ * @param data.contentType
12625
+ * @param data.contentDisposition
12626
+ * @returns unknown File upload status
12627
+ * @throws ApiError
12628
+ */
12629
+ const gitRepoViewerFileUpload = (data) => {
12630
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
12631
+ method: 'POST',
12632
+ url: '/w/{workspace}/job_helpers/upload_git_repo_file_to_instance_storage',
12633
+ path: {
12634
+ workspace: data.workspace
12635
+ },
12636
+ query: {
12637
+ file_key: data.fileKey,
12638
+ file_extension: data.fileExtension,
12639
+ s3_resource_path: data.s3ResourcePath,
12640
+ resource_type: data.resourceType,
12641
+ storage: data.storage,
12642
+ content_type: data.contentType,
12643
+ content_disposition: data.contentDisposition
12644
+ },
12645
+ body: data.requestBody,
12646
+ mediaType: 'application/octet-stream'
12647
+ });
12648
+ };
12649
+ exports.gitRepoViewerFileUpload = gitRepoViewerFileUpload;
10596
12650
  /**
10597
12651
  * Download file from S3 bucket
10598
12652
  * @param data The data for the request.
@@ -10807,11 +12861,12 @@ exports.getConcurrencyKey = getConcurrencyKey;
10807
12861
  * @param data.scriptHash mask to filter exact matching path
10808
12862
  * @param data.startedBefore filter on started before (inclusive) timestamp
10809
12863
  * @param data.startedAfter filter on started after (exclusive) timestamp
10810
- * @param data.createdOrStartedBefore filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
10811
12864
  * @param data.running filter on running jobs
10812
12865
  * @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
10813
- * @param data.createdOrStartedAfter filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
10814
- * @param data.createdOrStartedAfterCompletedJobs filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
12866
+ * @param data.completedBefore filter on started before (inclusive) timestamp
12867
+ * @param data.completedAfter filter on started after (exclusive) timestamp
12868
+ * @param data.createdBeforeQueue filter on jobs created before X for jobs in the queue only
12869
+ * @param data.createdAfterQueue filter on jobs created after X for jobs in the queue only
10815
12870
  * @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
10816
12871
  * @param data.args filter on jobs containing those args as a json subset (@> in postgres)
10817
12872
  * @param data.tag filter on jobs with a given tag/worker group
@@ -10819,6 +12874,7 @@ exports.getConcurrencyKey = getConcurrencyKey;
10819
12874
  * @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
10820
12875
  * @param data.page which page to return (start at 1, default 1)
10821
12876
  * @param data.perPage number of items to return for a given page (default 30, max 100)
12877
+ * @param data.triggerKind trigger kind (schedule, http, websocket...)
10822
12878
  * @param data.isSkipped is the job skipped
10823
12879
  * @param data.isFlowStep is the job a flow step
10824
12880
  * @param data.hasNullParent has null parent
@@ -10847,11 +12903,12 @@ const listExtendedJobs = (data) => {
10847
12903
  script_hash: data.scriptHash,
10848
12904
  started_before: data.startedBefore,
10849
12905
  started_after: data.startedAfter,
10850
- created_or_started_before: data.createdOrStartedBefore,
10851
12906
  running: data.running,
10852
12907
  scheduled_for_before_now: data.scheduledForBeforeNow,
10853
- created_or_started_after: data.createdOrStartedAfter,
10854
- created_or_started_after_completed_jobs: data.createdOrStartedAfterCompletedJobs,
12908
+ completed_before: data.completedBefore,
12909
+ completed_after: data.completedAfter,
12910
+ created_before_queue: data.createdBeforeQueue,
12911
+ created_after_queue: data.createdAfterQueue,
10855
12912
  job_kinds: data.jobKinds,
10856
12913
  args: data.args,
10857
12914
  tag: data.tag,
@@ -10859,6 +12916,7 @@ const listExtendedJobs = (data) => {
10859
12916
  allow_wildcards: data.allowWildcards,
10860
12917
  page: data.page,
10861
12918
  per_page: data.perPage,
12919
+ trigger_kind: data.triggerKind,
10862
12920
  is_skipped: data.isSkipped,
10863
12921
  is_flow_step: data.isFlowStep,
10864
12922
  has_null_parent: data.hasNullParent,
@@ -10958,10 +13016,16 @@ const clearIndex = (data) => {
10958
13016
  };
10959
13017
  exports.clearIndex = clearIndex;
10960
13018
  /**
10961
- * List all assets in the workspace
13019
+ * List all assets in the workspace with cursor pagination
10962
13020
  * @param data The data for the request.
10963
13021
  * @param data.workspace
10964
- * @returns unknown all assets in the workspace
13022
+ * @param data.perPage Number of items per page (max 1000, default 50)
13023
+ * @param data.cursorCreatedAt Cursor timestamp for pagination (created_at of last item from previous page)
13024
+ * @param data.cursorId Cursor ID for pagination (id of last item from previous page)
13025
+ * @param data.assetPath Filter by asset path (case-insensitive partial match)
13026
+ * @param data.usagePath Filter by usage path (case-insensitive partial match)
13027
+ * @param data.assetKinds Filter by asset kinds (multiple values allowed)
13028
+ * @returns unknown paginated assets in the workspace
10965
13029
  * @throws ApiError
10966
13030
  */
10967
13031
  const listAssets = (data) => {
@@ -10970,6 +13034,14 @@ const listAssets = (data) => {
10970
13034
  url: '/w/{workspace}/assets/list',
10971
13035
  path: {
10972
13036
  workspace: data.workspace
13037
+ },
13038
+ query: {
13039
+ per_page: data.perPage,
13040
+ cursor_created_at: data.cursorCreatedAt,
13041
+ cursor_id: data.cursorId,
13042
+ asset_path: data.assetPath,
13043
+ usage_path: data.usagePath,
13044
+ asset_kinds: data.assetKinds
10973
13045
  }
10974
13046
  });
10975
13047
  };
@@ -11011,3 +13083,61 @@ const listMcpTools = (data) => {
11011
13083
  });
11012
13084
  };
11013
13085
  exports.listMcpTools = listMcpTools;
13086
+ /**
13087
+ * discover MCP server OAuth metadata
13088
+ * @param data The data for the request.
13089
+ * @param data.requestBody
13090
+ * @returns unknown OAuth metadata from MCP server
13091
+ * @throws ApiError
13092
+ */
13093
+ const discoverMcpOauth = (data) => {
13094
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
13095
+ method: 'POST',
13096
+ url: '/mcp/oauth/discover',
13097
+ body: data.requestBody,
13098
+ mediaType: 'application/json'
13099
+ });
13100
+ };
13101
+ exports.discoverMcpOauth = discoverMcpOauth;
13102
+ /**
13103
+ * start MCP OAuth popup flow
13104
+ * Opens in a popup, discovers OAuth metadata, registers client, and redirects to OAuth provider
13105
+ * @param data The data for the request.
13106
+ * @param data.mcpServerUrl URL of the MCP server to connect to
13107
+ * @param data.scopes Comma-separated list of OAuth scopes to request
13108
+ * @throws ApiError
13109
+ */
13110
+ const startMcpOauthPopup = (data) => {
13111
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
13112
+ method: 'GET',
13113
+ url: '/mcp/oauth/start',
13114
+ query: {
13115
+ mcp_server_url: data.mcpServerUrl,
13116
+ scopes: data.scopes
13117
+ },
13118
+ errors: {
13119
+ 302: 'Redirect to OAuth provider authorization URL'
13120
+ }
13121
+ });
13122
+ };
13123
+ exports.startMcpOauthPopup = startMcpOauthPopup;
13124
+ /**
13125
+ * MCP OAuth callback
13126
+ * Handles OAuth callback, exchanges code for tokens, returns HTML that posts message to opener
13127
+ * @param data The data for the request.
13128
+ * @param data.code OAuth authorization code
13129
+ * @param data.state CSRF state token
13130
+ * @returns string HTML page with JavaScript that posts tokens to opener window and closes
13131
+ * @throws ApiError
13132
+ */
13133
+ const mcpOauthCallback = (data) => {
13134
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
13135
+ method: 'GET',
13136
+ url: '/mcp/oauth/callback',
13137
+ query: {
13138
+ code: data.code,
13139
+ state: data.state
13140
+ }
13141
+ });
13142
+ };
13143
+ exports.mcpOauthCallback = mcpOauthCallback;