@keboola/api-client 35.0.0 → 36.0.0

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 (39) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/apps/index.cjs +26 -19
  3. package/dist/apps/index.cjs.map +1 -1
  4. package/dist/apps/index.d.cts +31 -73
  5. package/dist/apps/index.d.ts +31 -73
  6. package/dist/apps/index.js +26 -19
  7. package/dist/apps/index.js.map +1 -1
  8. package/dist/apps/types.d.cts +2 -2
  9. package/dist/apps/types.d.ts +2 -2
  10. package/dist/{index-DFBFa3SS.d.ts → index-2JM0gyAf.d.ts} +27 -64
  11. package/dist/{index-Dodwl64k.d.cts → index-BDG-LKXj.d.cts} +2 -2
  12. package/dist/{index-P-iT5THa.d.ts → index-BXF-bs2d.d.ts} +2 -2
  13. package/dist/{index-BLx14ZI4.d.cts → index-DIAyi-EZ.d.cts} +27 -64
  14. package/dist/index.d.cts +2 -2
  15. package/dist/index.d.ts +2 -2
  16. package/dist/management/index.d.cts +1 -1
  17. package/dist/management/index.d.ts +1 -1
  18. package/dist/management/types.d.cts +1 -1
  19. package/dist/management/types.d.ts +1 -1
  20. package/dist/queryService/index.d.cts +1 -1
  21. package/dist/queryService/index.d.ts +1 -1
  22. package/dist/queue/index.d.cts +1 -1
  23. package/dist/queue/index.d.ts +1 -1
  24. package/dist/sdk/configurations/index.d.cts +1 -1
  25. package/dist/sdk/configurations/index.d.ts +1 -1
  26. package/dist/sdk/queryService/index.d.cts +1 -1
  27. package/dist/sdk/queryService/index.d.ts +1 -1
  28. package/dist/sdk/storage/index.d.cts +1 -1
  29. package/dist/sdk/storage/index.d.ts +1 -1
  30. package/dist/storage/index.d.cts +1 -1
  31. package/dist/storage/index.d.ts +1 -1
  32. package/dist/{types-BMeDOB_D.d.ts → types-BuqxXXYP.d.ts} +13 -1
  33. package/dist/{types-B3GOGUJ7.d.cts → types-CzsnuPFh.d.cts} +13 -1
  34. package/dist/{types-CBgLCkYe.d.ts → types-D6UmMa6E.d.ts} +224 -401
  35. package/dist/{types-DARv_P6O.d.cts → types-DXskkNp8.d.cts} +224 -401
  36. package/package.json +8 -8
  37. package/surface/apps.md +11 -11
  38. package/surface/billing.md +2 -2
  39. package/surface/editor.md +5 -5
@@ -9,10 +9,9 @@ import { n as readAppLogsDownload, r as readAppLogsTail } from "../appLogs-xsVkT
9
9
  * `baseUrl` must already point past the `/v2` prefix (`https://<data-science-host>/v2`); the
10
10
  * registry composes it — see `createServiceClients`.
11
11
  *
12
- * Two documented endpoints are deliberately absent: `PATCH /apps/{appId}` has no patchable field
13
- * yet (`name`/`description` are create-only, so `{}` is the only accepted body), and
14
- * `POST /apps/{appId}/activity` is apps-proxy's heartbeat, authenticated by a Manage API token with
15
- * the `apps:proxy` scope that this storage-token client cannot supply.
12
+ * One documented endpoint is deliberately absent: `POST /apps/{appId}/activity` is apps-proxy's
13
+ * heartbeat, authenticated by a Manage API token with the `apps:proxy` scope that this
14
+ * storage-token client cannot supply.
16
15
  */
17
16
  const createAppsClient = ({ baseUrl, middlewares, auth }) => {
18
17
  const client = createOpenapiFetchClient({
@@ -47,8 +46,8 @@ const createAppsClient = ({ baseUrl, middlewares, auth }) => {
47
46
  await client.delete("/apps/{appId}", { path: { appId } }, { signal });
48
47
  };
49
48
  /**
50
- * Drops production routing — the app's URL 404s afterwards. `null` when there was nothing to
51
- * unpublish (already unpublished, or never deployed via `/v2`): the service answers `204`.
49
+ * Drops production routing — the app's URL 404s afterwards. A no-op (already unpublished, or
50
+ * never deployed) returns the app unchanged rather than failing.
52
51
  */
53
52
  const unpublishApp = async (appId, signal) => {
54
53
  const { data } = await client.post("/apps/{appId}/unpublish", { path: { appId } }, { signal });
@@ -56,15 +55,15 @@ const createAppsClient = ({ baseUrl, middlewares, auth }) => {
56
55
  };
57
56
  /**
58
57
  * Sleeps the app now instead of waiting for the idle timer, and disarms wake-on-request: a
59
- * visitor gets a `503` until an explicit {@link resumeApp}. `null` when already suspended (`204`).
58
+ * visitor gets a `503` until an explicit {@link resumeApp}. A no-op on an already suspended app.
60
59
  */
61
60
  const suspendApp = async (appId, signal) => {
62
61
  const { data } = await client.post("/apps/{appId}/suspend", { path: { appId } }, { signal });
63
62
  return data;
64
63
  };
65
64
  /**
66
- * Wakes the app now and re-arms wake-on-request. `null` when it was already running (`204`).
67
- * The returned app reports `STARTING` — the operator has not confirmed it serving yet.
65
+ * Wakes the app now and re-arms wake-on-request. A no-op on an already running app.
66
+ * The returned app reports `starting` — the operator has not confirmed it serving yet.
68
67
  */
69
68
  const resumeApp = async (appId, signal) => {
70
69
  const { data } = await client.post("/apps/{appId}/resume", { path: { appId } }, { signal });
@@ -77,7 +76,7 @@ const createAppsClient = ({ baseUrl, middlewares, auth }) => {
77
76
  };
78
77
  /** Mints a fresh password, replacing any existing one. Read it back with {@link getAppPassword}. */
79
78
  const resetAppPassword = async (appId, signal) => {
80
- const { data } = await client.post("/apps/{appId}/reset-password", { path: { appId } }, { signal });
79
+ const { data } = await client.post("/apps/{appId}/password/reset", { path: { appId } }, { signal });
81
80
  return data;
82
81
  };
83
82
  /**
@@ -100,8 +99,8 @@ const createAppsClient = ({ baseUrl, middlewares, auth }) => {
100
99
  };
101
100
  /**
102
101
  * Deploys the app's current config version as a new immutable deployment, promoting it unless
103
- * `body.promote` is `false` (a staged release never runs until promoted). The id and `number` come
104
- * back synchronously; readiness does not.
102
+ * `body.promote` is `false` (a staged release never runs until promoted). Pin an older config
103
+ * version with `body.configVersion`. The deployment comes back synchronously; readiness does not.
105
104
  */
106
105
  const createDeployment = async (appId, body, options = {}) => {
107
106
  const { data } = await client.post("/apps/{appId}/deployments", {
@@ -110,9 +109,17 @@ const createAppsClient = ({ baseUrl, middlewares, auth }) => {
110
109
  }, writeOptions(options));
111
110
  return data;
112
111
  };
113
- /** Full history, retired (`archived: true`) deployments included — rows outlive their workloads. */
114
- const getDeployments = async (appId, signal) => {
115
- const { data } = await client.get("/apps/{appId}/deployments", { path: { appId } }, { signal });
112
+ /**
113
+ * Deployment history, newest page first.
114
+ *
115
+ * - `query.archived` filters on whether the deployment was deleted; omitting it returns both.
116
+ * - A deleted deployment keeps its row — history outlives the workload.
117
+ */
118
+ const getDeployments = async (appId, query = {}, signal) => {
119
+ const { data } = await client.get("/apps/{appId}/deployments", {
120
+ path: { appId },
121
+ query
122
+ }, { signal });
116
123
  return data;
117
124
  };
118
125
  const getDeployment = async (appId, deploymentId, signal) => {
@@ -123,8 +130,8 @@ const createAppsClient = ({ baseUrl, middlewares, auth }) => {
123
130
  return data;
124
131
  };
125
132
  /**
126
- * Retires the deployment: the workload and its rendered-config secret go, the row stays in
127
- * history as `archived`. Rejected with a `409` while the app's `production` still names it.
133
+ * Deletes the deployment: its running resources and credentials go, the row stays in history as
134
+ * `archived`. Rejected with a `409` while the app's `production` still names it.
128
135
  */
129
136
  const deleteDeployment = async (appId, deploymentId, signal) => {
130
137
  await client.delete("/apps/{appId}/deployments/{deploymentId}", { path: {
@@ -134,8 +141,8 @@ const createAppsClient = ({ baseUrl, middlewares, auth }) => {
134
141
  };
135
142
  /**
136
143
  * Makes this deployment production — the same call rolls back, applied to an older one. The route
137
- * switches only once the target serves, so the returned app's `production.desiredId` and
138
- * `.actualId` differ until it converges. `null` when it was already production (`204`).
144
+ * switches only once the target serves, so the returned app's `production.desiredDeploymentId`
145
+ * and `.actualDeploymentId` differ until it converges.
139
146
  */
140
147
  const promoteDeployment = async (appId, deploymentId, signal) => {
141
148
  const { data } = await client.post("/apps/{appId}/deployments/{deploymentId}/promote", { path: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/clients/apps/appsClient.ts"],"sourcesContent":["import { readAppLogsDownload, readAppLogsTail } from '../../domain/appLogs';\nimport { createOpenapiFetchClient } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type {\n App,\n AppId,\n CreateAppBody,\n CreateCredentialBody,\n CreateDeploymentBody,\n CredentialId,\n DeploymentId,\n GetAppRunsQuery,\n GetAppsQuery,\n GetLogsTailQuery,\n RunId,\n} from './types';\n\n/**\n * No `idempotencyKey`. The service accepted an `Idempotency-Key` that turned a replayed create\n * into a no-op, and support for it was **dropped on 17 Aug 2026** — the spec still documents the\n * header and has yet to catch up. It was\n * unusable from a browser in any case — the service's `Access-Control-Allow-Headers` never listed\n * the header, so sending it failed the preflight and the request never left the page.\n *\n * Every create here is therefore a genuine create, and a caller that retries one is responsible\n * for the duplicate it may produce.\n */\ntype WriteOptions = {\n signal?: AbortSignal;\n};\n\ntype LogsTailOptions = {\n query?: GetLogsTailQuery;\n signal?: AbortSignal;\n};\n\n/**\n * `/v2` App Deployments — data apps plus the immutable deployment history behind them. Sibling of\n * the `dataScience` client, which wraps the same service's `/v1` surface.\n *\n * `baseUrl` must already point past the `/v2` prefix (`https://<data-science-host>/v2`); the\n * registry composes it — see `createServiceClients`.\n *\n * Two documented endpoints are deliberately absent: `PATCH /apps/{appId}` has no patchable field\n * yet (`name`/`description` are create-only, so `{}` is the only accepted body), and\n * `POST /apps/{appId}/activity` is apps-proxy's heartbeat, authenticated by a Manage API token with\n * the `apps:proxy` scope that this storage-token client cannot supply.\n */\nexport const createAppsClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n\n const writeOptions = ({ signal }: WriteOptions) => ({ signal });\n\n /** Service metadata (`appName`, `appVersion`, `apiDocs`) — the `/v2` surface has no `/health-check`. */\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await client.get('/', {}, { signal });\n\n return data;\n };\n\n const getApps = async (query: GetAppsQuery = {}, signal?: AbortSignal) => {\n const { data } = await client.get('/apps', { query }, { signal });\n\n return data;\n };\n\n const getApp = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}', { path: { appId } }, { signal });\n\n return data;\n };\n\n /**\n * Reserves the app and its Storage configuration only. Content (`parameters`) and auth\n * (`authorization.app_proxy`) are written afterwards through the Storage API, on the config named\n * by the response's `componentId`/`branchId`/`configId`.\n */\n const createApp = async (body: CreateAppBody, options: WriteOptions = {}) => {\n const { data } = await client.post('/apps', { body }, writeOptions(options));\n\n return data;\n };\n\n const deleteApp = async (appId: AppId, signal?: AbortSignal) => {\n await client.delete('/apps/{appId}', { path: { appId } }, { signal });\n };\n\n /**\n * Drops production routing — the app's URL 404s afterwards. `null` when there was nothing to\n * unpublish (already unpublished, or never deployed via `/v2`): the service answers `204`.\n */\n const unpublishApp = async (appId: AppId, signal?: AbortSignal): Promise<App | null> => {\n const { data } = await client.post('/apps/{appId}/unpublish', { path: { appId } }, { signal });\n\n return data;\n };\n\n /**\n * Sleeps the app now instead of waiting for the idle timer, and disarms wake-on-request: a\n * visitor gets a `503` until an explicit {@link resumeApp}. `null` when already suspended (`204`).\n */\n const suspendApp = async (appId: AppId, signal?: AbortSignal): Promise<App | null> => {\n const { data } = await client.post('/apps/{appId}/suspend', { path: { appId } }, { signal });\n\n return data;\n };\n\n /**\n * Wakes the app now and re-arms wake-on-request. `null` when it was already running (`204`).\n * The returned app reports `STARTING` — the operator has not confirmed it serving yet.\n */\n const resumeApp = async (appId: AppId, signal?: AbortSignal): Promise<App | null> => {\n const { data } = await client.post('/apps/{appId}/resume', { path: { appId } }, { signal });\n\n return data;\n };\n\n /** `password` is `null` until one is minted — by the app's first deployment or {@link resetAppPassword}. */\n const getAppPassword = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}/password', { path: { appId } }, { signal });\n\n return data;\n };\n\n /** Mints a fresh password, replacing any existing one. Read it back with {@link getAppPassword}. */\n const resetAppPassword = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.post(\n '/apps/{appId}/reset-password',\n { path: { appId } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Runs of the app, newest first — app-wide, so this is where a failed deployment's cause lives\n * (`failureReason`, `startupLogs`). Narrow to one deployment with `query.deploymentId`.\n */\n const getAppRuns = async (appId: AppId, query: GetAppRunsQuery = {}, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}/runs', { path: { appId }, query }, { signal });\n\n return data;\n };\n\n const getAppRun = async (appId: AppId, runId: RunId, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/apps/{appId}/runs/{runId}',\n { path: { appId, runId } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Deploys the app's current config version as a new immutable deployment, promoting it unless\n * `body.promote` is `false` (a staged release never runs until promoted). The id and `number` come\n * back synchronously; readiness does not.\n */\n const createDeployment = async (\n appId: AppId,\n body?: CreateDeploymentBody,\n options: WriteOptions = {},\n ) => {\n const { data } = await client.post(\n '/apps/{appId}/deployments',\n { path: { appId }, body },\n writeOptions(options),\n );\n\n return data;\n };\n\n /** Full history, retired (`archived: true`) deployments included — rows outlive their workloads. */\n const getDeployments = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}/deployments', { path: { appId } }, { signal });\n\n return data;\n };\n\n const getDeployment = async (appId: AppId, deploymentId: DeploymentId, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/apps/{appId}/deployments/{deploymentId}',\n { path: { appId, deploymentId } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Retires the deployment: the workload and its rendered-config secret go, the row stays in\n * history as `archived`. Rejected with a `409` while the app's `production` still names it.\n */\n const deleteDeployment = async (\n appId: AppId,\n deploymentId: DeploymentId,\n signal?: AbortSignal,\n ) => {\n await client.delete(\n '/apps/{appId}/deployments/{deploymentId}',\n { path: { appId, deploymentId } },\n { signal },\n );\n };\n\n /**\n * Makes this deployment production — the same call rolls back, applied to an older one. The route\n * switches only once the target serves, so the returned app's `production.desiredId` and\n * `.actualId` differ until it converges. `null` when it was already production (`204`).\n */\n const promoteDeployment = async (\n appId: AppId,\n deploymentId: DeploymentId,\n signal?: AbortSignal,\n ): Promise<App | null> => {\n const { data } = await client.post(\n '/apps/{appId}/deployments/{deploymentId}/promote',\n { path: { appId, deploymentId } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Container output of the app's currently serving member. `query.since` and `query.lines` are\n * mutually exclusive; passing neither returns the log from its start.\n */\n const getAppLogsTail = (appId: AppId, { query, signal }: LogsTailOptions = {}) =>\n readAppLogsTail(() =>\n client.get('/apps/{appId}/logs/tail', { path: { appId }, query }, { signal }),\n );\n\n const getAppLogsDownload = (appId: AppId, signal?: AbortSignal) =>\n readAppLogsDownload(() =>\n client.get('/apps/{appId}/logs/download', { path: { appId } }, { signal }),\n );\n\n const getDeploymentLogsTail = (\n appId: AppId,\n deploymentId: DeploymentId,\n { query, signal }: LogsTailOptions = {},\n ) =>\n readAppLogsTail(() =>\n client.get(\n '/apps/{appId}/deployments/{deploymentId}/logs/tail',\n { path: { appId, deploymentId }, query },\n { signal },\n ),\n );\n\n const getDeploymentLogsDownload = (\n appId: AppId,\n deploymentId: DeploymentId,\n signal?: AbortSignal,\n ) =>\n readAppLogsDownload(() =>\n client.get(\n '/apps/{appId}/deployments/{deploymentId}/logs/download',\n { path: { appId, deploymentId } },\n { signal },\n ),\n );\n\n /** The app's Git repository — managed or external. `409` when it has none configured. */\n const getAppGitRepo = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}/git-repo', { path: { appId } }, { signal });\n\n return data;\n };\n\n /** Credentials of the app's managed repository, per app rather than per deployment. */\n const getAppGitRepoCredentials = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/apps/{appId}/git-repo/credentials',\n { path: { appId } },\n { signal },\n );\n\n return data;\n };\n\n const getAppGitRepoCredential = async (\n appId: AppId,\n credentialId: CredentialId,\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get(\n '/apps/{appId}/git-repo/credentials/{credentialId}',\n { path: { appId, credentialId } },\n { signal },\n );\n\n return data;\n };\n\n /** An `http_token` credential returns its `secret` here and nowhere else — store it now or lose it. */\n const createAppGitRepoCredential = async (\n appId: AppId,\n body: CreateCredentialBody,\n options: WriteOptions = {},\n ) => {\n const { data } = await client.post(\n '/apps/{appId}/git-repo/credentials',\n { path: { appId }, body },\n writeOptions(options),\n );\n\n return data;\n };\n\n const deleteAppGitRepoCredential = async (\n appId: AppId,\n credentialId: CredentialId,\n signal?: AbortSignal,\n ) => {\n await client.delete(\n '/apps/{appId}/git-repo/credentials/{credentialId}',\n { path: { appId, credentialId } },\n { signal },\n );\n };\n\n return {\n healthCheck,\n getApps,\n getApp,\n createApp,\n deleteApp,\n unpublishApp,\n suspendApp,\n resumeApp,\n getAppPassword,\n resetAppPassword,\n getAppRuns,\n getAppRun,\n createDeployment,\n getDeployments,\n getDeployment,\n deleteDeployment,\n promoteDeployment,\n getAppLogsTail,\n getAppLogsDownload,\n getDeploymentLogsTail,\n getDeploymentLogsDownload,\n getAppGitRepo,\n getAppGitRepoCredentials,\n getAppGitRepoCredential,\n createAppGitRepoCredential,\n deleteAppGitRepoCredential,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAmDA,MAAa,oBAAoB,EAAE,SAAS,aAAa,WAA8B;CACrF,MAAM,SAAS,yBAAgC;EAC7C;EACA;EACA,SAAS,kBAAkB,IAAI;CACjC,CAAC;CAED,MAAM,gBAAgB,EAAE,cAA4B,EAAE,OAAO;;CAG7D,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC;EAErD,OAAO;CACT;CAEA,MAAM,UAAU,OAAO,QAAsB,CAAC,GAAG,WAAyB;EACxE,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,SAAS,EAAE,MAAM,GAAG,EAAE,OAAO,CAAC;EAEhE,OAAO;CACT;CAEA,MAAM,SAAS,OAAO,OAAc,WAAyB;EAC3D,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,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X;CACF;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/clients/apps/appsClient.ts"],"sourcesContent":["import { readAppLogsDownload, readAppLogsTail } from '../../domain/appLogs';\nimport { createOpenapiFetchClient } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type {\n App,\n AppId,\n CreateAppBody,\n CreateCredentialBody,\n CreateDeploymentBody,\n CredentialId,\n DeploymentId,\n GetAppRunsQuery,\n GetAppsQuery,\n GetDeploymentsQuery,\n GetLogsTailQuery,\n RunId,\n} from './types';\n\n/**\n * Options every write takes.\n *\n * - No `idempotencyKey`: the service accepts no `Idempotency-Key`, so every create here is a\n * genuine create and a caller that retries one owns the duplicate it may produce.\n */\ntype WriteOptions = {\n signal?: AbortSignal;\n};\n\ntype LogsTailOptions = {\n query?: GetLogsTailQuery;\n signal?: AbortSignal;\n};\n\n/**\n * `/v2` App Deployments — data apps plus the immutable deployment history behind them. Sibling of\n * the `dataScience` client, which wraps the same service's `/v1` surface.\n *\n * `baseUrl` must already point past the `/v2` prefix (`https://<data-science-host>/v2`); the\n * registry composes it — see `createServiceClients`.\n *\n * One documented endpoint is deliberately absent: `POST /apps/{appId}/activity` is apps-proxy's\n * heartbeat, authenticated by a Manage API token with the `apps:proxy` scope that this\n * storage-token client cannot supply.\n */\nexport const createAppsClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n\n const writeOptions = ({ signal }: WriteOptions) => ({ signal });\n\n /** Service metadata (`appName`, `appVersion`, `apiDocs`) — the `/v2` surface has no `/health-check`. */\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await client.get('/', {}, { signal });\n\n return data;\n };\n\n const getApps = async (query: GetAppsQuery = {}, signal?: AbortSignal) => {\n const { data } = await client.get('/apps', { query }, { signal });\n\n return data;\n };\n\n const getApp = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}', { path: { appId } }, { signal });\n\n return data;\n };\n\n /**\n * Reserves the app and its Storage configuration only. Content (`parameters`) and auth\n * (`authorization.app_proxy`) are written afterwards through the Storage API, on the config named\n * by the response's `componentId`/`branchId`/`configId`.\n */\n const createApp = async (body: CreateAppBody, options: WriteOptions = {}) => {\n const { data } = await client.post('/apps', { body }, writeOptions(options));\n\n return data;\n };\n\n const deleteApp = async (appId: AppId, signal?: AbortSignal) => {\n await client.delete('/apps/{appId}', { path: { appId } }, { signal });\n };\n\n /**\n * Drops production routing — the app's URL 404s afterwards. A no-op (already unpublished, or\n * never deployed) returns the app unchanged rather than failing.\n */\n const unpublishApp = async (appId: AppId, signal?: AbortSignal): Promise<App> => {\n const { data } = await client.post('/apps/{appId}/unpublish', { path: { appId } }, { signal });\n\n return data;\n };\n\n /**\n * Sleeps the app now instead of waiting for the idle timer, and disarms wake-on-request: a\n * visitor gets a `503` until an explicit {@link resumeApp}. A no-op on an already suspended app.\n */\n const suspendApp = async (appId: AppId, signal?: AbortSignal): Promise<App> => {\n const { data } = await client.post('/apps/{appId}/suspend', { path: { appId } }, { signal });\n\n return data;\n };\n\n /**\n * Wakes the app now and re-arms wake-on-request. A no-op on an already running app.\n * The returned app reports `starting` — the operator has not confirmed it serving yet.\n */\n const resumeApp = async (appId: AppId, signal?: AbortSignal): Promise<App> => {\n const { data } = await client.post('/apps/{appId}/resume', { path: { appId } }, { signal });\n\n return data;\n };\n\n /** `password` is `null` until one is minted — by the app's first deployment or {@link resetAppPassword}. */\n const getAppPassword = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}/password', { path: { appId } }, { signal });\n\n return data;\n };\n\n /** Mints a fresh password, replacing any existing one. Read it back with {@link getAppPassword}. */\n const resetAppPassword = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.post(\n '/apps/{appId}/password/reset',\n { path: { appId } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Runs of the app, newest first — app-wide, so this is where a failed deployment's cause lives\n * (`failureReason`, `startupLogs`). Narrow to one deployment with `query.deploymentId`.\n */\n const getAppRuns = async (appId: AppId, query: GetAppRunsQuery = {}, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}/runs', { path: { appId }, query }, { signal });\n\n return data;\n };\n\n const getAppRun = async (appId: AppId, runId: RunId, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/apps/{appId}/runs/{runId}',\n { path: { appId, runId } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Deploys the app's current config version as a new immutable deployment, promoting it unless\n * `body.promote` is `false` (a staged release never runs until promoted). Pin an older config\n * version with `body.configVersion`. The deployment comes back synchronously; readiness does not.\n */\n const createDeployment = async (\n appId: AppId,\n body?: CreateDeploymentBody,\n options: WriteOptions = {},\n ) => {\n const { data } = await client.post(\n '/apps/{appId}/deployments',\n { path: { appId }, body },\n writeOptions(options),\n );\n\n return data;\n };\n\n /**\n * Deployment history, newest page first.\n *\n * - `query.archived` filters on whether the deployment was deleted; omitting it returns both.\n * - A deleted deployment keeps its row — history outlives the workload.\n */\n const getDeployments = async (\n appId: AppId,\n query: GetDeploymentsQuery = {},\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get(\n '/apps/{appId}/deployments',\n { path: { appId }, query },\n { signal },\n );\n\n return data;\n };\n\n const getDeployment = async (appId: AppId, deploymentId: DeploymentId, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/apps/{appId}/deployments/{deploymentId}',\n { path: { appId, deploymentId } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Deletes the deployment: its running resources and credentials go, the row stays in history as\n * `archived`. Rejected with a `409` while the app's `production` still names it.\n */\n const deleteDeployment = async (\n appId: AppId,\n deploymentId: DeploymentId,\n signal?: AbortSignal,\n ) => {\n await client.delete(\n '/apps/{appId}/deployments/{deploymentId}',\n { path: { appId, deploymentId } },\n { signal },\n );\n };\n\n /**\n * Makes this deployment production — the same call rolls back, applied to an older one. The route\n * switches only once the target serves, so the returned app's `production.desiredDeploymentId`\n * and `.actualDeploymentId` differ until it converges.\n */\n const promoteDeployment = async (\n appId: AppId,\n deploymentId: DeploymentId,\n signal?: AbortSignal,\n ): Promise<App> => {\n const { data } = await client.post(\n '/apps/{appId}/deployments/{deploymentId}/promote',\n { path: { appId, deploymentId } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Container output of the app's currently serving member. `query.since` and `query.lines` are\n * mutually exclusive; passing neither returns the log from its start.\n */\n const getAppLogsTail = (appId: AppId, { query, signal }: LogsTailOptions = {}) =>\n readAppLogsTail(() =>\n client.get('/apps/{appId}/logs/tail', { path: { appId }, query }, { signal }),\n );\n\n const getAppLogsDownload = (appId: AppId, signal?: AbortSignal) =>\n readAppLogsDownload(() =>\n client.get('/apps/{appId}/logs/download', { path: { appId } }, { signal }),\n );\n\n const getDeploymentLogsTail = (\n appId: AppId,\n deploymentId: DeploymentId,\n { query, signal }: LogsTailOptions = {},\n ) =>\n readAppLogsTail(() =>\n client.get(\n '/apps/{appId}/deployments/{deploymentId}/logs/tail',\n { path: { appId, deploymentId }, query },\n { signal },\n ),\n );\n\n const getDeploymentLogsDownload = (\n appId: AppId,\n deploymentId: DeploymentId,\n signal?: AbortSignal,\n ) =>\n readAppLogsDownload(() =>\n client.get(\n '/apps/{appId}/deployments/{deploymentId}/logs/download',\n { path: { appId, deploymentId } },\n { signal },\n ),\n );\n\n /** The app's Git repository — managed or external. `409` when it has none configured. */\n const getAppGitRepo = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get('/apps/{appId}/git-repo', { path: { appId } }, { signal });\n\n return data;\n };\n\n /** Credentials of the app's managed repository, per app rather than per deployment. */\n const getAppGitRepoCredentials = async (appId: AppId, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/apps/{appId}/git-repo/credentials',\n { path: { appId } },\n { signal },\n );\n\n return data;\n };\n\n const getAppGitRepoCredential = async (\n appId: AppId,\n credentialId: CredentialId,\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get(\n '/apps/{appId}/git-repo/credentials/{credentialId}',\n { path: { appId, credentialId } },\n { signal },\n );\n\n return data;\n };\n\n /** An `http_token` credential returns its `secret` here and nowhere else — store it now or lose it. */\n const createAppGitRepoCredential = async (\n appId: AppId,\n body: CreateCredentialBody,\n options: WriteOptions = {},\n ) => {\n const { data } = await client.post(\n '/apps/{appId}/git-repo/credentials',\n { path: { appId }, body },\n writeOptions(options),\n );\n\n return data;\n };\n\n const deleteAppGitRepoCredential = async (\n appId: AppId,\n credentialId: CredentialId,\n signal?: AbortSignal,\n ) => {\n await client.delete(\n '/apps/{appId}/git-repo/credentials/{credentialId}',\n { path: { appId, credentialId } },\n { signal },\n );\n };\n\n return {\n healthCheck,\n getApps,\n getApp,\n createApp,\n deleteApp,\n unpublishApp,\n suspendApp,\n resumeApp,\n getAppPassword,\n resetAppPassword,\n getAppRuns,\n getAppRun,\n createDeployment,\n getDeployments,\n getDeployment,\n deleteDeployment,\n promoteDeployment,\n getAppLogsTail,\n getAppLogsDownload,\n getDeploymentLogsTail,\n getDeploymentLogsDownload,\n getAppGitRepo,\n getAppGitRepoCredentials,\n getAppGitRepoCredential,\n createAppGitRepoCredential,\n deleteAppGitRepoCredential,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,MAAa,oBAAoB,EAAE,SAAS,aAAa,WAA8B;CACrF,MAAM,SAAS,yBAAgC;EAC7C;EACA;EACA,SAAS,kBAAkB,IAAI;CACjC,CAAC;CAED,MAAM,gBAAgB,EAAE,cAA4B,EAAE,OAAO;;CAG7D,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,OAAO,IAAI,KAAK,CAAC,GAAG,EAAE,OA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X;EAEA,OAAO;CACT;;CAGA,MAAM,6BAA6B,OACjC,OACA,MACA,UAAwB,CAAC,MACtB;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,KAC5B,sCACA;GAAE,MAAM,EAAE,MAAM;GAAG;EAAK,GACxB,aAAa,OAAO,CACtB;EAEA,OAAO;CACT;CAEA,MAAM,6BAA6B,OACjC,OACA,cACA,WACG;EACH,MAAM,OAAO,OACX,qDACA,EAAE,MAAM;GAAE;GAAO;EAAa,EAAE,GAChC,EAAE,OAAO,CACX;CACF;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
@@ -1,3 +1,3 @@
1
- import { _ as DeploymentRunState, a as AppRun, b as GetLogsTailQuery, c as CreateCredentialBody, d as Credential, f as CredentialId, g as DeploymentId, h as DeploymentBuildState, i as AppPassword, l as CreateDeploymentBody, m as Deployment, n as AppGitRepo, o as AppState, p as CredentialList, r as AppId, s as CreateAppBody, t as App, u as CreatedCredential, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-DARv_P6O.cjs";
1
+ import { S as RunId, _ as DeploymentRunState, a as AppRun, b as GetDeploymentsQuery, c as CreateCredentialBody, d as Credential, f as CredentialId, g as DeploymentId, h as DeploymentBuildState, i as AppPassword, l as CreateDeploymentBody, m as Deployment, n as AppGitRepo, o as AppState, p as CredentialList, r as AppId, s as CreateAppBody, t as App, u as CreatedCredential, v as GetAppRunsQuery, x as GetLogsTailQuery, y as GetAppsQuery } from "../types-DXskkNp8.cjs";
2
2
  import { t as LogEntry } from "../appLogs-D5A13Y0y.cjs";
3
- export { App, AppGitRepo, AppId, AppPassword, AppRun, AppState, CreateAppBody, CreateCredentialBody, CreateDeploymentBody, CreatedCredential, Credential, CredentialId, CredentialList, Deployment, DeploymentBuildState, DeploymentId, DeploymentRunState, GetAppRunsQuery, GetAppsQuery, GetLogsTailQuery, type LogEntry, RunId };
3
+ export { App, AppGitRepo, AppId, AppPassword, AppRun, AppState, CreateAppBody, CreateCredentialBody, CreateDeploymentBody, CreatedCredential, Credential, CredentialId, CredentialList, Deployment, DeploymentBuildState, DeploymentId, DeploymentRunState, GetAppRunsQuery, GetAppsQuery, GetDeploymentsQuery, GetLogsTailQuery, type LogEntry, RunId };
@@ -1,3 +1,3 @@
1
- import { _ as DeploymentRunState, a as AppRun, b as GetLogsTailQuery, c as CreateCredentialBody, d as Credential, f as CredentialId, g as DeploymentId, h as DeploymentBuildState, i as AppPassword, l as CreateDeploymentBody, m as Deployment, n as AppGitRepo, o as AppState, p as CredentialList, r as AppId, s as CreateAppBody, t as App, u as CreatedCredential, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "../types-CBgLCkYe.js";
1
+ import { S as RunId, _ as DeploymentRunState, a as AppRun, b as GetDeploymentsQuery, c as CreateCredentialBody, d as Credential, f as CredentialId, g as DeploymentId, h as DeploymentBuildState, i as AppPassword, l as CreateDeploymentBody, m as Deployment, n as AppGitRepo, o as AppState, p as CredentialList, r as AppId, s as CreateAppBody, t as App, u as CreatedCredential, v as GetAppRunsQuery, x as GetLogsTailQuery, y as GetAppsQuery } from "../types-D6UmMa6E.js";
2
2
  import { t as LogEntry } from "../appLogs-Ch7DYpzx.js";
3
- export { App, AppGitRepo, AppId, AppPassword, AppRun, AppState, CreateAppBody, CreateCredentialBody, CreateDeploymentBody, CreatedCredential, Credential, CredentialId, CredentialList, Deployment, DeploymentBuildState, DeploymentId, DeploymentRunState, GetAppRunsQuery, GetAppsQuery, GetLogsTailQuery, type LogEntry, RunId };
3
+ export { App, AppGitRepo, AppId, AppPassword, AppRun, AppState, CreateAppBody, CreateCredentialBody, CreateDeploymentBody, CreatedCredential, Credential, CredentialId, CredentialList, Deployment, DeploymentBuildState, DeploymentId, DeploymentRunState, GetAppRunsQuery, GetAppsQuery, GetDeploymentsQuery, GetLogsTailQuery, type LogEntry, RunId };
@@ -1,7 +1,7 @@
1
1
  import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "./types-BTWIPEiU.js";
2
2
  import { D as MiddlewareFn$1, E as HttpMethod, T as ApiResponse, l as UploadProgress, t as createOpenapiFetchClient, u as createGenericFetchClient } from "./index-KuQ79Mnz.js";
3
3
  import { n as ClientInitOptions } from "./types-Ct0YPy2w.js";
4
- import { S as components$1, b as GetLogsTailQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "./types-CBgLCkYe.js";
4
+ import { C as components$1, S as RunId, b as GetDeploymentsQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as GetLogsTailQuery, y as GetAppsQuery } from "./types-D6UmMa6E.js";
5
5
  import { t as LogEntry } from "./appLogs-Ch7DYpzx.js";
6
6
  import { r as createAuthClient } from "./authClient-D8i3JTM-.js";
7
7
  import { C as Vote, O as components$2, _ as ToolsListResponse, b as UsageResponse, d as GetVotesQuery, l as GetChatPath, o as ChatRequest, t as AgentSettings, u as GetHistoryQuery, v as UpdateAgentSettingsRequest, w as VoteRequest, x as UserAgentSettings, y as UpdateUserAgentSettingsRequest } from "./types-DhDNS-5B.js";
@@ -16,7 +16,7 @@ import { a as EncryptQuery, s as ScopedSecrets } from "./types-BQsOHNI0.js";
16
16
  import { n as WriteTableInput, t as UploadFileInput } from "./types-nrviNdzZ.js";
17
17
  import { a as GetHistoryQuery$1, c as VoteRequest$1, i as GetChatPath$1, n as ChatRequest$1, o as GetVotesQuery$1, s as UsageResponse$1, t as ApprovalBody } from "./types-BupPADSm.js";
18
18
  import { n as SpendCapsView, t as SpendCapMember } from "./kaiAgentClient-BJj_2aqt.js";
19
- import { i as createManagementClient } from "./index-P-iT5THa.js";
19
+ import { i as createManagementClient } from "./index-BXF-bs2d.js";
20
20
  import { D as components$5, S as ReplaceTargetProjectsInput, T as UpdateMetaObjectInput, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsPath, f as GetMetaObjectsPath, g as MetaStoreObjectResponse, h as MetaStoreListResponse, i as CreateMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, p as MetaObject, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as ReplaceMetaObjectInput } from "./types-BH5LLeJy.js";
21
21
  import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components$6, t as CreateSubscriptionBody } from "./types-CKiW3n6v.js";
22
22
  import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "./types-B2U9cFcx.js";
@@ -14111,18 +14111,13 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14111
14111
  componentId: string;
14112
14112
  branchId: string | null;
14113
14113
  configId: string;
14114
- configVersion: string;
14115
14114
  type?: 'streamlit' | 'python-js' | null;
14116
- mode?: 'prod' | 'dev';
14117
14115
  url: string | null;
14118
14116
  production: {
14119
- desiredNumber?: number | null;
14120
- desiredId?: string | null;
14121
- actualNumber?: number | null;
14122
- actualId?: string | null;
14117
+ desiredDeploymentId?: string | null;
14118
+ actualDeploymentId?: string | null;
14123
14119
  };
14124
- undeployedChanges?: boolean;
14125
- state: 'NOT_DEPLOYED' | 'STARTING' | 'RUNNING' | 'SLEEPING' | 'SUSPENDED';
14120
+ state: 'notDeployed' | 'starting' | 'running' | 'suspended' | 'disabled';
14126
14121
  }[]>;
14127
14122
  getApp: (appId: AppId, signal?: AbortSignal) => Promise<{
14128
14123
  id: string;
@@ -14130,18 +14125,13 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14130
14125
  componentId: string;
14131
14126
  branchId: string | null;
14132
14127
  configId: string;
14133
- configVersion: string;
14134
14128
  type?: 'streamlit' | 'python-js' | null;
14135
- mode?: 'prod' | 'dev';
14136
14129
  url: string | null;
14137
14130
  production: {
14138
- desiredNumber?: number | null;
14139
- desiredId?: string | null;
14140
- actualNumber?: number | null;
14141
- actualId?: string | null;
14131
+ desiredDeploymentId?: string | null;
14132
+ actualDeploymentId?: string | null;
14142
14133
  };
14143
- undeployedChanges?: boolean;
14144
- state: 'NOT_DEPLOYED' | 'STARTING' | 'RUNNING' | 'SLEEPING' | 'SUSPENDED';
14134
+ state: 'notDeployed' | 'starting' | 'running' | 'suspended' | 'disabled';
14145
14135
  }>;
14146
14136
  createApp: (body: CreateAppBody, options?: {
14147
14137
  signal?: AbortSignal;
@@ -14151,44 +14141,23 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14151
14141
  componentId: string;
14152
14142
  branchId: string | null;
14153
14143
  configId: string;
14154
- configVersion: string;
14155
14144
  type?: 'streamlit' | 'python-js' | null;
14156
- mode?: 'prod' | 'dev';
14157
14145
  url: string | null;
14158
14146
  production: {
14159
- desiredNumber?: number | null;
14160
- desiredId?: string | null;
14161
- actualNumber?: number | null;
14162
- actualId?: string | null;
14147
+ desiredDeploymentId?: string | null;
14148
+ actualDeploymentId?: string | null;
14163
14149
  };
14164
- undeployedChanges?: boolean;
14165
- state: 'NOT_DEPLOYED' | 'STARTING' | 'RUNNING' | 'SLEEPING' | 'SUSPENDED';
14150
+ state: 'notDeployed' | 'starting' | 'running' | 'suspended' | 'disabled';
14166
14151
  }>;
14167
14152
  deleteApp: (appId: AppId, signal?: AbortSignal) => Promise<void>;
14168
- unpublishApp: (appId: AppId, signal?: AbortSignal) => Promise<App | null>;
14169
- suspendApp: (appId: AppId, signal?: AbortSignal) => Promise<App | null>;
14170
- resumeApp: (appId: AppId, signal?: AbortSignal) => Promise<App | null>;
14153
+ unpublishApp: (appId: AppId, signal?: AbortSignal) => Promise<App>;
14154
+ suspendApp: (appId: AppId, signal?: AbortSignal) => Promise<App>;
14155
+ resumeApp: (appId: AppId, signal?: AbortSignal) => Promise<App>;
14171
14156
  getAppPassword: (appId: AppId, signal?: AbortSignal) => Promise<{
14172
14157
  password?: string | null;
14173
14158
  }>;
14174
14159
  resetAppPassword: (appId: AppId, signal?: AbortSignal) => Promise<{
14175
- id: string;
14176
- projectId: string;
14177
- componentId: string;
14178
- branchId: string | null;
14179
- configId: string;
14180
- configVersion: string;
14181
- type?: 'streamlit' | 'python-js' | null;
14182
- mode?: 'prod' | 'dev';
14183
- url: string | null;
14184
- production: {
14185
- desiredNumber?: number | null;
14186
- desiredId?: string | null;
14187
- actualNumber?: number | null;
14188
- actualId?: string | null;
14189
- };
14190
- undeployedChanges?: boolean;
14191
- state: 'NOT_DEPLOYED' | 'STARTING' | 'RUNNING' | 'SLEEPING' | 'SUSPENDED';
14160
+ password: string;
14192
14161
  }>;
14193
14162
  getAppRuns: (appId: AppId, query?: GetAppRunsQuery, signal?: AbortSignal) => Promise<{
14194
14163
  id: string;
@@ -14232,45 +14201,39 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14232
14201
  signal?: AbortSignal;
14233
14202
  }) => Promise<{
14234
14203
  id: string;
14235
- number: number;
14236
- configId: string;
14237
14204
  configVersion: string;
14238
14205
  gitCommitSha: string | null;
14239
- size?: 'micro' | 'tiny' | 'small' | 'medium' | 'large' | 'external' | null;
14240
- buildState: 'PREBUILT' | 'PENDING' | 'BUILDING' | 'BUILT' | 'FAILED';
14241
- runState: 'NEVER_RUN' | 'PENDING' | 'STARTING' | 'RUNNING' | 'STOPPING' | 'STOPPED' | 'FAILED';
14206
+ runtimeSize?: 'micro' | 'tiny' | 'small' | 'medium' | 'large' | 'external' | null;
14207
+ buildState: 'pending' | 'building' | 'ready' | 'failed';
14208
+ runState: 'neverRun' | 'pending' | 'starting' | 'running' | 'stopping' | 'stopped' | 'failed';
14242
14209
  archived: boolean;
14243
14210
  archivedAt: string | null;
14244
14211
  createdAt: string;
14245
14212
  }>;
14246
- getDeployments: (appId: AppId, signal?: AbortSignal) => Promise<{
14213
+ getDeployments: (appId: AppId, query?: GetDeploymentsQuery, signal?: AbortSignal) => Promise<{
14247
14214
  id: string;
14248
- number: number;
14249
- configId: string;
14250
14215
  configVersion: string;
14251
14216
  gitCommitSha: string | null;
14252
- size?: 'micro' | 'tiny' | 'small' | 'medium' | 'large' | 'external' | null;
14253
- buildState: 'PREBUILT' | 'PENDING' | 'BUILDING' | 'BUILT' | 'FAILED';
14254
- runState: 'NEVER_RUN' | 'PENDING' | 'STARTING' | 'RUNNING' | 'STOPPING' | 'STOPPED' | 'FAILED';
14217
+ runtimeSize?: 'micro' | 'tiny' | 'small' | 'medium' | 'large' | 'external' | null;
14218
+ buildState: 'pending' | 'building' | 'ready' | 'failed';
14219
+ runState: 'neverRun' | 'pending' | 'starting' | 'running' | 'stopping' | 'stopped' | 'failed';
14255
14220
  archived: boolean;
14256
14221
  archivedAt: string | null;
14257
14222
  createdAt: string;
14258
14223
  }[]>;
14259
14224
  getDeployment: (appId: AppId, deploymentId: DeploymentId, signal?: AbortSignal) => Promise<{
14260
14225
  id: string;
14261
- number: number;
14262
- configId: string;
14263
14226
  configVersion: string;
14264
14227
  gitCommitSha: string | null;
14265
- size?: 'micro' | 'tiny' | 'small' | 'medium' | 'large' | 'external' | null;
14266
- buildState: 'PREBUILT' | 'PENDING' | 'BUILDING' | 'BUILT' | 'FAILED';
14267
- runState: 'NEVER_RUN' | 'PENDING' | 'STARTING' | 'RUNNING' | 'STOPPING' | 'STOPPED' | 'FAILED';
14228
+ runtimeSize?: 'micro' | 'tiny' | 'small' | 'medium' | 'large' | 'external' | null;
14229
+ buildState: 'pending' | 'building' | 'ready' | 'failed';
14230
+ runState: 'neverRun' | 'pending' | 'starting' | 'running' | 'stopping' | 'stopped' | 'failed';
14268
14231
  archived: boolean;
14269
14232
  archivedAt: string | null;
14270
14233
  createdAt: string;
14271
14234
  }>;
14272
14235
  deleteDeployment: (appId: AppId, deploymentId: DeploymentId, signal?: AbortSignal) => Promise<void>;
14273
- promoteDeployment: (appId: AppId, deploymentId: DeploymentId, signal?: AbortSignal) => Promise<App | null>;
14236
+ promoteDeployment: (appId: AppId, deploymentId: DeploymentId, signal?: AbortSignal) => Promise<App>;
14274
14237
  getAppLogsTail: (appId: AppId, { query, signal }?: {
14275
14238
  query?: GetLogsTailQuery;
14276
14239
  signal?: AbortSignal;
@@ -17455,4 +17418,4 @@ declare const createQueryServiceClient: ({ baseUrl, middlewares, auth }: ClientI
17455
17418
  };
17456
17419
  //#endregion
17457
17420
  export { createDerivedStore as $, LegacySession as A, delay as At, createStorageClient as B, KeboolaErrorType as Bt, LogLevel as C, poller as Ct, ResponseLog as D, PollResult as Dt, RequestLog as E, PollOptions as Et, ProjectClients as F, collect as Ft, createMemoryStorage as G, SyncActionError as Gt, createPersistor as H, ClientContext as Ht, RegisteredComponentId as I, coalesce as It, deepMerge as J, QueryJobTimeoutError as Jt, createNullStorage as K, isSyncActionError as Kt, registry as L, TaskFn as Lt, createKeboola as M, ConcurrentOptions as Mt, KeboolaOptions as N, concurrent as Nt, createLoggingMiddleware as O, PollTick as Ot, KeboolaApi as P, CollectOptions as Pt, createDerivedAsyncStore as Q, UserError as Qt, GenericFetchClient as R, assert as Rt, Log as S, poll as St, LoggingOptions as T, PollKey as Tt, StorageAdapter as U, isStorageTokenMutatingRequest as Ut, Persistor as V, isKeboolaError as Vt, createLocalStorage as W, createDefaultBranch as Wt, isPlainObject as X, QueryJobError as Xt, isEmptyDeep as Y, isQueryJobTimeoutError as Yt, AsyncState as Z, isQueryJobError as Zt, toBackendSubscribers as _, Poller as _t, parseCurrentDevBranchIdFromUrl as a, Failure as at, RetryOptions as b, emitter as bt, removeBranchFromUrl as c, asError as ct, constructFQID as d, PollRegistry as dt, shallowEqual as et, parseFQID as f, createPollRegistry as ft, fromBackendSubscribers as g, PollTask as gt, createStorageSdk as h, PollState as ht, createQueryServiceSdk as i, generateUUID as it, createLegacyKeboola as j, dedupe as jt, BearerSession as k, lazy as kt, FQID_TYPES as l, series as lt, tableIdParser as m, PollSnapshot as mt, ExecuteQueryOptions as n, Store as nt, parseDevBranchId as o, Result as ot, parse as p, ObservedPoller as pt, createSessionStorage as q, ServiceUnavailableError as qt, WaitForJobOptions as r, createStore as rt, prefixTagsWithDevBranchId as s, Success as st, createQueryServiceClient as t, ReadableStore as tt, ParsedFQID as u, PollEntry as ut, jobStatus as v, PollerStartFn as vt, Logger as w, PollContext as wt, createRetryMiddleware as x, failureOf as xt, KeboolaHttpHeader as y, PollerStopFn as yt, StorageOpenApiFetchClient as z, KeboolaError as zt };
17458
- //# sourceMappingURL=index-DFBFa3SS.d.ts.map
17421
+ //# sourceMappingURL=index-2JM0gyAf.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { D as MiddlewareFn, S as ManagementClientAuthError, t as createOpenapiFetchClient } from "./index-V7XKUQm9.cjs";
2
2
  import { n as ClientInitOptions } from "./types-_RhBCj4_.cjs";
3
- import { $ as RemoveProjectUserPath, $n as FeatureProject, $t as MaintainerInvitationPath, A as GetProjectPath, An as OrganizationUserPath, At as CreditPaymentRequest, B as ProjectBase, Bn as FileStorageGcs, C as CreateProjectFeatureBody, Ct as UserDetail, D as DeleteProjectInvitationPath, Dn as OrganizationMetadataItemPath, E as CreateProjectInvitationPath, Et as UserOrganizationMembership, F as ListProjectJoinRequestsPath, Fn as CreateFileStorageAbsBody, Ft as TopUpSetting, Ht as CreateMaintainerBody, I as ListProjectUsersPath, In as CreateFileStorageGcsBody, It as UpdateStripeCustomerBody, Jt as CreateSamlConfigInput, K as ProjectMetadataItem, Kn as RotateFileStorageGcsInput, Kt as CreateMaintainerOrganizationInput, Ln as CreateFileStorageS3Body, Lt as UpdateTopUpSettingBody, Mn as SetOrganizationMetadataInput, Mt as PayAsYouGoBillingConfiguration, N as JoinProjectInput, Nt as StripeCustomer, O as DeleteProjectMetadataPath, Ot as UserProjectMembership, P as ListProjectInvitationsPath, Pn as UpdateOrganizationInput, Q as RemoveProjectTemplateFeaturePath, Qn as FeatureAdmin, R as MoveProjectInput, Sn as OrganizationDetail, St as User, T as CreateProjectInvitationBody, Tt as UserMaintainerMembership, Un as RotateFileStorageAbsInput, Vt as CompleteSamlSetupInput, W as ProjectJoinRequestPath, Wt as CreateMaintainerInvitationInput, X as RemoveProjectFeaturePath, Xt as Maintainer, Yn as RotateFileStorageS3Input, Z as RemoveProjectLimitPath, Zn as Feature, Zt as MaintainerDetail, _ as AddProjectUserPath, _t as RemoveUserFeaturePath, a as CreateBigqueryStorageBackendBody, bn as CreateOrganizationProjectInput, c as StorageBackend, ct as SetProjectMetadataPath, dn as UpdateMaintainerInput, en as MaintainerMetadataItemPath, ft as UpdateProjectInput, g as AddProjectUserBody, gt as GetUsersQuery, h as UpdateStorageBackendInput, hn as AddOrganizationUserInput, ht as DeleteUserMetadataPath, in as MetadataItem, ir as DeletedProjectsListQuery, it as SetProjectDisabledInput, j as GetProjectReviewersPath, jt as CreditPurchase, k as GetProjectMetadataPath, kt as CreatePaymentRequestBody, ln as SetMaintainerMetadataInput, lr as paths, lt as SetProjectReviewersBody, mt as AddUserFeaturePath, n as ActivateUiAppVersionPath, nn as MaintainerUser, nt as Reviewer, o as CreateSnowflakeStorageBackendBody, on as SamlConfigPath, ot as SetProjectLimitsInput, p as UpdateBigqueryStorageBackendInput, pn as UpdateSamlConfigInput, pt as AddUserFeatureBody, r as RegisterUiAppBody, rn as MaintainerUserPath, s as GetStorageBackendProjectsQuery, st as SetProjectMetadataBody, tr as GetAllFeaturesQuery, tt as RequestProjectAccessInput, ut as SetProjectReviewersPath, vn as CreateOrganizationInvitationInput, w as CreateProjectFeaturePath, wn as OrganizationInvitationPath, wt as UserListItem, x as ChangeProjectUserRoleInput, xt as UpdateUserInput, y as AssignProjectTemplateFeatureInput, yt as SetUserMetadataInput, z as Project, zt as AddMaintainerUserInput } from "./types-B3GOGUJ7.cjs";
3
+ import { $ as RemoveProjectUserPath, $n as FeatureProject, $t as MaintainerInvitationPath, A as GetProjectPath, An as OrganizationUserPath, At as CreditPaymentRequest, B as ProjectBase, Bn as FileStorageGcs, C as CreateProjectFeatureBody, Ct as UserDetail, D as DeleteProjectInvitationPath, Dn as OrganizationMetadataItemPath, E as CreateProjectInvitationPath, Et as UserOrganizationMembership, F as ListProjectJoinRequestsPath, Fn as CreateFileStorageAbsBody, Ft as TopUpSetting, Ht as CreateMaintainerBody, I as ListProjectUsersPath, In as CreateFileStorageGcsBody, It as UpdateStripeCustomerBody, Jt as CreateSamlConfigInput, K as ProjectMetadataItem, Kn as RotateFileStorageGcsInput, Kt as CreateMaintainerOrganizationInput, Ln as CreateFileStorageS3Body, Lt as UpdateTopUpSettingBody, Mn as SetOrganizationMetadataInput, Mt as PayAsYouGoBillingConfiguration, N as JoinProjectInput, Nt as StripeCustomer, O as DeleteProjectMetadataPath, Ot as UserProjectMembership, P as ListProjectInvitationsPath, Pn as UpdateOrganizationInput, Q as RemoveProjectTemplateFeaturePath, Qn as FeatureAdmin, R as MoveProjectInput, Sn as OrganizationDetail, St as User, T as CreateProjectInvitationBody, Tt as UserMaintainerMembership, Un as RotateFileStorageAbsInput, Vt as CompleteSamlSetupInput, W as ProjectJoinRequestPath, Wt as CreateMaintainerInvitationInput, X as RemoveProjectFeaturePath, Xt as Maintainer, Yn as RotateFileStorageS3Input, Z as RemoveProjectLimitPath, Zn as Feature, Zt as MaintainerDetail, _ as AddProjectUserPath, _t as RemoveUserFeaturePath, a as CreateBigqueryStorageBackendBody, bn as CreateOrganizationProjectInput, c as StorageBackend, ct as SetProjectMetadataPath, dn as UpdateMaintainerInput, en as MaintainerMetadataItemPath, ft as UpdateProjectInput, g as AddProjectUserBody, gt as GetUsersQuery, h as UpdateStorageBackendInput, hn as AddOrganizationUserInput, ht as DeleteUserMetadataPath, in as MetadataItem, ir as DeletedProjectsListQuery, it as SetProjectDisabledInput, j as GetProjectReviewersPath, jt as CreditPurchase, k as GetProjectMetadataPath, kt as CreatePaymentRequestBody, ln as SetMaintainerMetadataInput, lr as paths, lt as SetProjectReviewersBody, mt as AddUserFeaturePath, n as ActivateUiAppVersionPath, nn as MaintainerUser, nt as Reviewer, o as CreateSnowflakeStorageBackendBody, on as SamlConfigPath, ot as SetProjectLimitsInput, p as UpdateBigqueryStorageBackendInput, pn as UpdateSamlConfigInput, pt as AddUserFeatureBody, r as RegisterUiAppBody, rn as MaintainerUserPath, s as GetStorageBackendProjectsQuery, st as SetProjectMetadataBody, tr as GetAllFeaturesQuery, tt as RequestProjectAccessInput, ut as SetProjectReviewersPath, vn as CreateOrganizationInvitationInput, w as CreateProjectFeaturePath, wn as OrganizationInvitationPath, wt as UserListItem, x as ChangeProjectUserRoleInput, xt as UpdateUserInput, y as AssignProjectTemplateFeatureInput, yt as SetUserMetadataInput, z as Project, zt as AddMaintainerUserInput } from "./types-CzsnuPFh.cjs";
4
4
  //#region src/clients/management/managementClient.d.ts
5
5
  type ManagementOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
6
6
  type AuthStrategy = {
@@ -1105,4 +1105,4 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
1105
1105
  declare const isManagementClientAuthError: (error: unknown) => error is ManagementClientAuthError;
1106
1106
  //#endregion
1107
1107
  export { createManagementClient as i, AuthStrategy as n, ManagementOpenApiFetchClient as r, isManagementClientAuthError as t };
1108
- //# sourceMappingURL=index-Dodwl64k.d.cts.map
1108
+ //# sourceMappingURL=index-BDG-LKXj.d.cts.map
@@ -1,6 +1,6 @@
1
1
  import { D as MiddlewareFn, S as ManagementClientAuthError, t as createOpenapiFetchClient } from "./index-KuQ79Mnz.js";
2
2
  import { n as ClientInitOptions } from "./types-Ct0YPy2w.js";
3
- import { $ as RemoveProjectUserPath, $n as FeatureProject, $t as MaintainerInvitationPath, A as GetProjectPath, An as OrganizationUserPath, At as CreditPaymentRequest, B as ProjectBase, Bn as FileStorageGcs, C as CreateProjectFeatureBody, Ct as UserDetail, D as DeleteProjectInvitationPath, Dn as OrganizationMetadataItemPath, E as CreateProjectInvitationPath, Et as UserOrganizationMembership, F as ListProjectJoinRequestsPath, Fn as CreateFileStorageAbsBody, Ft as TopUpSetting, Ht as CreateMaintainerBody, I as ListProjectUsersPath, In as CreateFileStorageGcsBody, It as UpdateStripeCustomerBody, Jt as CreateSamlConfigInput, K as ProjectMetadataItem, Kn as RotateFileStorageGcsInput, Kt as CreateMaintainerOrganizationInput, Ln as CreateFileStorageS3Body, Lt as UpdateTopUpSettingBody, Mn as SetOrganizationMetadataInput, Mt as PayAsYouGoBillingConfiguration, N as JoinProjectInput, Nt as StripeCustomer, O as DeleteProjectMetadataPath, Ot as UserProjectMembership, P as ListProjectInvitationsPath, Pn as UpdateOrganizationInput, Q as RemoveProjectTemplateFeaturePath, Qn as FeatureAdmin, R as MoveProjectInput, Sn as OrganizationDetail, St as User, T as CreateProjectInvitationBody, Tt as UserMaintainerMembership, Un as RotateFileStorageAbsInput, Vt as CompleteSamlSetupInput, W as ProjectJoinRequestPath, Wt as CreateMaintainerInvitationInput, X as RemoveProjectFeaturePath, Xt as Maintainer, Yn as RotateFileStorageS3Input, Z as RemoveProjectLimitPath, Zn as Feature, Zt as MaintainerDetail, _ as AddProjectUserPath, _t as RemoveUserFeaturePath, a as CreateBigqueryStorageBackendBody, bn as CreateOrganizationProjectInput, c as StorageBackend, ct as SetProjectMetadataPath, dn as UpdateMaintainerInput, en as MaintainerMetadataItemPath, ft as UpdateProjectInput, g as AddProjectUserBody, gt as GetUsersQuery, h as UpdateStorageBackendInput, hn as AddOrganizationUserInput, ht as DeleteUserMetadataPath, in as MetadataItem, ir as DeletedProjectsListQuery, it as SetProjectDisabledInput, j as GetProjectReviewersPath, jt as CreditPurchase, k as GetProjectMetadataPath, kt as CreatePaymentRequestBody, ln as SetMaintainerMetadataInput, lr as paths, lt as SetProjectReviewersBody, mt as AddUserFeaturePath, n as ActivateUiAppVersionPath, nn as MaintainerUser, nt as Reviewer, o as CreateSnowflakeStorageBackendBody, on as SamlConfigPath, ot as SetProjectLimitsInput, p as UpdateBigqueryStorageBackendInput, pn as UpdateSamlConfigInput, pt as AddUserFeatureBody, r as RegisterUiAppBody, rn as MaintainerUserPath, s as GetStorageBackendProjectsQuery, st as SetProjectMetadataBody, tr as GetAllFeaturesQuery, tt as RequestProjectAccessInput, ut as SetProjectReviewersPath, vn as CreateOrganizationInvitationInput, w as CreateProjectFeaturePath, wn as OrganizationInvitationPath, wt as UserListItem, x as ChangeProjectUserRoleInput, xt as UpdateUserInput, y as AssignProjectTemplateFeatureInput, yt as SetUserMetadataInput, z as Project, zt as AddMaintainerUserInput } from "./types-BMeDOB_D.js";
3
+ import { $ as RemoveProjectUserPath, $n as FeatureProject, $t as MaintainerInvitationPath, A as GetProjectPath, An as OrganizationUserPath, At as CreditPaymentRequest, B as ProjectBase, Bn as FileStorageGcs, C as CreateProjectFeatureBody, Ct as UserDetail, D as DeleteProjectInvitationPath, Dn as OrganizationMetadataItemPath, E as CreateProjectInvitationPath, Et as UserOrganizationMembership, F as ListProjectJoinRequestsPath, Fn as CreateFileStorageAbsBody, Ft as TopUpSetting, Ht as CreateMaintainerBody, I as ListProjectUsersPath, In as CreateFileStorageGcsBody, It as UpdateStripeCustomerBody, Jt as CreateSamlConfigInput, K as ProjectMetadataItem, Kn as RotateFileStorageGcsInput, Kt as CreateMaintainerOrganizationInput, Ln as CreateFileStorageS3Body, Lt as UpdateTopUpSettingBody, Mn as SetOrganizationMetadataInput, Mt as PayAsYouGoBillingConfiguration, N as JoinProjectInput, Nt as StripeCustomer, O as DeleteProjectMetadataPath, Ot as UserProjectMembership, P as ListProjectInvitationsPath, Pn as UpdateOrganizationInput, Q as RemoveProjectTemplateFeaturePath, Qn as FeatureAdmin, R as MoveProjectInput, Sn as OrganizationDetail, St as User, T as CreateProjectInvitationBody, Tt as UserMaintainerMembership, Un as RotateFileStorageAbsInput, Vt as CompleteSamlSetupInput, W as ProjectJoinRequestPath, Wt as CreateMaintainerInvitationInput, X as RemoveProjectFeaturePath, Xt as Maintainer, Yn as RotateFileStorageS3Input, Z as RemoveProjectLimitPath, Zn as Feature, Zt as MaintainerDetail, _ as AddProjectUserPath, _t as RemoveUserFeaturePath, a as CreateBigqueryStorageBackendBody, bn as CreateOrganizationProjectInput, c as StorageBackend, ct as SetProjectMetadataPath, dn as UpdateMaintainerInput, en as MaintainerMetadataItemPath, ft as UpdateProjectInput, g as AddProjectUserBody, gt as GetUsersQuery, h as UpdateStorageBackendInput, hn as AddOrganizationUserInput, ht as DeleteUserMetadataPath, in as MetadataItem, ir as DeletedProjectsListQuery, it as SetProjectDisabledInput, j as GetProjectReviewersPath, jt as CreditPurchase, k as GetProjectMetadataPath, kt as CreatePaymentRequestBody, ln as SetMaintainerMetadataInput, lr as paths, lt as SetProjectReviewersBody, mt as AddUserFeaturePath, n as ActivateUiAppVersionPath, nn as MaintainerUser, nt as Reviewer, o as CreateSnowflakeStorageBackendBody, on as SamlConfigPath, ot as SetProjectLimitsInput, p as UpdateBigqueryStorageBackendInput, pn as UpdateSamlConfigInput, pt as AddUserFeatureBody, r as RegisterUiAppBody, rn as MaintainerUserPath, s as GetStorageBackendProjectsQuery, st as SetProjectMetadataBody, tr as GetAllFeaturesQuery, tt as RequestProjectAccessInput, ut as SetProjectReviewersPath, vn as CreateOrganizationInvitationInput, w as CreateProjectFeaturePath, wn as OrganizationInvitationPath, wt as UserListItem, x as ChangeProjectUserRoleInput, xt as UpdateUserInput, y as AssignProjectTemplateFeatureInput, yt as SetUserMetadataInput, z as Project, zt as AddMaintainerUserInput } from "./types-BuqxXXYP.js";
4
4
  //#region src/clients/management/managementClient.d.ts
5
5
  type ManagementOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
6
6
  type AuthStrategy = {
@@ -1105,4 +1105,4 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
1105
1105
  declare const isManagementClientAuthError: (error: unknown) => error is ManagementClientAuthError;
1106
1106
  //#endregion
1107
1107
  export { createManagementClient as i, AuthStrategy as n, ManagementOpenApiFetchClient as r, isManagementClientAuthError as t };
1108
- //# sourceMappingURL=index-P-iT5THa.d.ts.map
1108
+ //# sourceMappingURL=index-BXF-bs2d.d.ts.map