@keboola/api-client 8.0.1 → 10.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.
- package/API-SURFACE.md +488 -0
- package/README.md +6 -4
- package/dist/ai/index.cjs +3 -4
- package/dist/ai/index.js +2 -3
- package/dist/assets/index.cjs +3 -4
- package/dist/assets/index.js +2 -3
- package/dist/backends-BgUzAQul.d.cts +16 -0
- package/dist/backends-BgUzAQul.d.ts +16 -0
- package/dist/chat/index.cjs +3 -4
- package/dist/chat/index.js +2 -3
- package/dist/chat/suggestions.d.cts +4 -4
- package/dist/chat/suggestions.d.ts +4 -4
- package/dist/{chunk-HUMEK64L.cjs → chunk-2ZXOVTCN.cjs} +59 -16
- package/dist/chunk-2ZXOVTCN.cjs.map +1 -0
- package/dist/chunk-37VZRDNG.cjs +50 -0
- package/dist/chunk-37VZRDNG.cjs.map +1 -0
- package/dist/chunk-3FZHFTLG.cjs +12 -0
- package/dist/chunk-3FZHFTLG.cjs.map +1 -0
- package/dist/{chunk-Y26EBVMH.js → chunk-47CIRFCO.js} +3 -4
- package/dist/chunk-47CIRFCO.js.map +1 -0
- package/dist/chunk-64BDZOM2.js +48 -0
- package/dist/chunk-64BDZOM2.js.map +1 -0
- package/dist/chunk-AHYMMDIC.cjs +29 -0
- package/dist/chunk-AHYMMDIC.cjs.map +1 -0
- package/dist/{chunk-QKCFPPQS.js → chunk-APILLKET.js} +3 -3
- package/dist/{chunk-QKCFPPQS.js.map → chunk-APILLKET.js.map} +1 -1
- package/dist/{chunk-WILFTDTS.js → chunk-ATVNCGTO.js} +3 -3
- package/dist/{chunk-WILFTDTS.js.map → chunk-ATVNCGTO.js.map} +1 -1
- package/dist/{chunk-CFRR7QPR.cjs → chunk-AU2OPVRI.cjs} +9 -10
- package/dist/chunk-AU2OPVRI.cjs.map +1 -0
- package/dist/{chunk-OVGB3W3A.cjs → chunk-BADSOKHM.cjs} +5 -6
- package/dist/chunk-BADSOKHM.cjs.map +1 -0
- package/dist/{chunk-YLK5KBXD.js → chunk-BUY6KV2P.js} +3 -4
- package/dist/chunk-BUY6KV2P.js.map +1 -0
- package/dist/{chunk-CSWK4LWY.js → chunk-CQRPG6ZN.js} +3 -4
- package/dist/chunk-CQRPG6ZN.js.map +1 -0
- package/dist/{chunk-4KJRGFNV.cjs → chunk-DRIO222J.cjs} +5 -6
- package/dist/chunk-DRIO222J.cjs.map +1 -0
- package/dist/{chunk-UYZTOVYS.cjs → chunk-EKG3AIWF.cjs} +117 -28
- package/dist/chunk-EKG3AIWF.cjs.map +1 -0
- package/dist/{chunk-D2SWTZFS.js → chunk-FBGUBMJ7.js} +20 -4
- package/dist/chunk-FBGUBMJ7.js.map +1 -0
- package/dist/chunk-GM3AKU5T.js +10 -0
- package/dist/chunk-GM3AKU5T.js.map +1 -0
- package/dist/{chunk-YIWAUNKU.js → chunk-GOWOD3O4.js} +3 -4
- package/dist/chunk-GOWOD3O4.js.map +1 -0
- package/dist/{chunk-J5JUQRPD.js → chunk-GUJ5RTYJ.js} +3 -4
- package/dist/chunk-GUJ5RTYJ.js.map +1 -0
- package/dist/{chunk-TXDMA4CT.cjs → chunk-H466MBV4.cjs} +5 -6
- package/dist/chunk-H466MBV4.cjs.map +1 -0
- package/dist/{chunk-KCGEV4ZA.cjs → chunk-HZSJXB5C.cjs} +5 -6
- package/dist/chunk-HZSJXB5C.cjs.map +1 -0
- package/dist/{chunk-H5DZOHH7.js → chunk-I7BLN5NZ.js} +3 -4
- package/dist/chunk-I7BLN5NZ.js.map +1 -0
- package/dist/{chunk-V2MQG3FZ.js → chunk-IA7WBVH3.js} +3 -4
- package/dist/chunk-IA7WBVH3.js.map +1 -0
- package/dist/{chunk-XLFQJDYZ.cjs → chunk-IQOXQMON.cjs} +4 -4
- package/dist/{chunk-XLFQJDYZ.cjs.map → chunk-IQOXQMON.cjs.map} +1 -1
- package/dist/{chunk-YGAWVMHH.cjs → chunk-IVIWWOM4.cjs} +5 -6
- package/dist/chunk-IVIWWOM4.cjs.map +1 -0
- package/dist/{chunk-4PT6E6VA.js → chunk-J5WWYWPL.js} +3 -4
- package/dist/chunk-J5WWYWPL.js.map +1 -0
- package/dist/{chunk-NFGQHJVB.cjs → chunk-KZLC2XSZ.cjs} +5 -6
- package/dist/chunk-KZLC2XSZ.cjs.map +1 -0
- package/dist/{chunk-4HORTOGH.js → chunk-LUHYZXJH.js} +3 -4
- package/dist/chunk-LUHYZXJH.js.map +1 -0
- package/dist/{chunk-VFZVLZC6.js → chunk-LY7IR43M.js} +3 -4
- package/dist/chunk-LY7IR43M.js.map +1 -0
- package/dist/{chunk-LUQJU3I3.js → chunk-MIAVX53Y.js} +49 -6
- package/dist/chunk-MIAVX53Y.js.map +1 -0
- package/dist/{chunk-NBUPHAAO.cjs → chunk-MQZT4HJH.cjs} +6 -7
- package/dist/chunk-MQZT4HJH.cjs.map +1 -0
- package/dist/{chunk-54N7LIDM.js → chunk-MUKQ6HZE.js} +4 -5
- package/dist/chunk-MUKQ6HZE.js.map +1 -0
- package/dist/chunk-NFA5ITNG.cjs +14 -0
- package/dist/chunk-NFA5ITNG.cjs.map +1 -0
- package/dist/{chunk-J7EQLDUU.cjs → chunk-NRDZL6JO.cjs} +8 -9
- package/dist/chunk-NRDZL6JO.cjs.map +1 -0
- package/dist/{chunk-5YTV36EI.js → chunk-NXYJKXJ4.js} +3 -4
- package/dist/chunk-NXYJKXJ4.js.map +1 -0
- package/dist/{chunk-IDYRJ4K3.cjs → chunk-OWGJ3PVA.cjs} +23 -4
- package/dist/chunk-OWGJ3PVA.cjs.map +1 -0
- package/dist/{chunk-W3AFDHXQ.cjs → chunk-PG4D5KCD.cjs} +6 -7
- package/dist/chunk-PG4D5KCD.cjs.map +1 -0
- package/dist/{chunk-AK4ZHM77.cjs → chunk-PHQ66FNI.cjs} +5 -6
- package/dist/chunk-PHQ66FNI.cjs.map +1 -0
- package/dist/{chunk-MQABO6OL.cjs → chunk-Q24BTT5D.cjs} +4 -4
- package/dist/{chunk-MQABO6OL.cjs.map → chunk-Q24BTT5D.cjs.map} +1 -1
- package/dist/{chunk-EEG7YZUY.js → chunk-RHZK7AL7.js} +3 -4
- package/dist/chunk-RHZK7AL7.js.map +1 -0
- package/dist/{chunk-BBRS2HLH.cjs → chunk-SBWZKVAG.cjs} +5 -6
- package/dist/chunk-SBWZKVAG.cjs.map +1 -0
- package/dist/{chunk-S4PI2LUQ.cjs → chunk-SDN6SU7K.cjs} +4 -4
- package/dist/{chunk-S4PI2LUQ.cjs.map → chunk-SDN6SU7K.cjs.map} +1 -1
- package/dist/{chunk-6S4JS7OJ.js → chunk-SUA3D6YF.js} +3 -3
- package/dist/{chunk-6S4JS7OJ.js.map → chunk-SUA3D6YF.js.map} +1 -1
- package/dist/{chunk-FB3E7VS6.cjs → chunk-U3W6XYQQ.cjs} +5 -6
- package/dist/chunk-U3W6XYQQ.cjs.map +1 -0
- package/dist/{chunk-5XKPYMQL.cjs → chunk-ULZPXG4L.cjs} +4 -4
- package/dist/{chunk-5XKPYMQL.cjs.map → chunk-ULZPXG4L.cjs.map} +1 -1
- package/dist/{chunk-2Q75RQ3X.js → chunk-VVDMWSSL.js} +3 -4
- package/dist/chunk-VVDMWSSL.js.map +1 -0
- package/dist/{chunk-VUVBYSYM.js → chunk-W2VWZGA3.js} +3 -4
- package/dist/chunk-W2VWZGA3.js.map +1 -0
- package/dist/{chunk-N37PZ2MB.js → chunk-WDAQJ346.js} +3 -3
- package/dist/{chunk-N37PZ2MB.js.map → chunk-WDAQJ346.js.map} +1 -1
- package/dist/{chunk-53WUPUXH.cjs → chunk-XBCR6YKE.cjs} +8 -9
- package/dist/chunk-XBCR6YKE.cjs.map +1 -0
- package/dist/{chunk-CONUMVLZ.cjs → chunk-XP5FQTAA.cjs} +6 -7
- package/dist/chunk-XP5FQTAA.cjs.map +1 -0
- package/dist/{chunk-MQ554O4E.js → chunk-XZAUQZIO.js} +3 -4
- package/dist/chunk-XZAUQZIO.js.map +1 -0
- package/dist/chunk-Y5QJJWDQ.js +12 -0
- package/dist/chunk-Y5QJJWDQ.js.map +1 -0
- package/dist/{chunk-TD2PFSP6.js → chunk-YJHFK3MV.js} +117 -28
- package/dist/chunk-YJHFK3MV.js.map +1 -0
- package/dist/{chunk-PWA6XFXA.cjs → chunk-YTF4RQ52.cjs} +5 -6
- package/dist/chunk-YTF4RQ52.cjs.map +1 -0
- package/dist/{chunk-BZO2GTJP.js → chunk-ZIQM4R3L.js} +3 -4
- package/dist/chunk-ZIQM4R3L.js.map +1 -0
- package/dist/constants/index.cjs +23 -0
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +54 -1
- package/dist/constants/index.d.ts +54 -1
- package/dist/constants/index.js +11 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/dataScience/index.cjs +4 -5
- package/dist/dataScience/index.js +2 -3
- package/dist/domain/permissions/index.cjs +5 -5
- package/dist/domain/permissions/index.cjs.map +1 -1
- package/dist/domain/permissions/index.d.cts +3 -2
- package/dist/domain/permissions/index.d.ts +3 -2
- package/dist/domain/permissions/index.js +5 -5
- package/dist/domain/permissions/index.js.map +1 -1
- package/dist/editor/index.cjs +3 -4
- package/dist/editor/index.js +2 -3
- package/dist/encryption/index.cjs +3 -4
- package/dist/encryption/index.d.cts +2 -1
- package/dist/encryption/index.d.ts +2 -1
- package/dist/encryption/index.js +2 -3
- package/dist/encryption/types.d.cts +2 -1
- package/dist/encryption/types.d.ts +2 -1
- package/dist/import/index.cjs +3 -4
- package/dist/import/index.js +2 -3
- package/dist/index.cjs +181 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3461 -657
- package/dist/index.d.ts +3461 -657
- package/dist/index.js +131 -35
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +6 -7
- package/dist/management/index.d.cts +7 -1
- package/dist/management/index.d.ts +7 -1
- package/dist/management/index.js +4 -5
- package/dist/management/types.d.cts +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/metastore/index.cjs +3 -4
- package/dist/metastore/index.js +2 -3
- package/dist/notifications/index.cjs +3 -4
- package/dist/notifications/index.js +2 -3
- package/dist/oauth/index.cjs +3 -4
- package/dist/oauth/index.js +2 -3
- package/dist/{project-BKbb7xWn.d.ts → project-BxSa1Ci9.d.ts} +2 -1
- package/dist/{project-cYJhOvzB.d.cts → project-NJuUPx8-.d.cts} +2 -1
- package/dist/queryService/index.cjs +3 -4
- package/dist/queryService/index.js +2 -3
- package/dist/queue/index.cjs +3 -4
- package/dist/queue/index.js +2 -3
- package/dist/{registry-Xwk-vCjf.d.ts → registry-ClVf-Wb3.d.cts} +416 -20
- package/dist/{registry-Xwk-vCjf.d.cts → registry-ClVf-Wb3.d.ts} +416 -20
- package/dist/scheduler/index.cjs +3 -4
- package/dist/scheduler/index.js +2 -3
- package/dist/sdk/configurations/index.cjs +3 -3
- package/dist/sdk/configurations/index.d.cts +1413 -224
- package/dist/sdk/configurations/index.d.ts +1413 -224
- package/dist/sdk/configurations/index.js +2 -2
- package/dist/sdk/storage/index.d.cts +4 -3
- package/dist/sdk/storage/index.d.ts +4 -3
- package/dist/sdk/vault/index.d.cts +3 -2
- package/dist/sdk/vault/index.d.ts +3 -2
- package/dist/status/index.cjs +3 -4
- package/dist/status/index.js +2 -3
- package/dist/storage/index.cjs +10 -11
- package/dist/storage/index.d.cts +3 -2
- package/dist/storage/index.d.ts +3 -2
- package/dist/storage/index.js +3 -4
- package/dist/storage/types.d.cts +4 -3
- package/dist/storage/types.d.ts +4 -3
- package/dist/{storageClient-DAglYVkx.d.ts → storageClient-Bk4H2HIw.d.ts} +1 -1
- package/dist/{storageClient-CZpLyDuY.d.cts → storageClient-CB4U57Pr.d.cts} +1 -1
- package/dist/{storageSdk-CoqeaoSG.d.ts → storageSdk-BDrsuMDA.d.ts} +1 -1
- package/dist/{storageSdk-uL-u41Dm.d.cts → storageSdk-wn97Zloc.d.cts} +1 -1
- package/dist/stream/index.cjs +3 -4
- package/dist/stream/index.js +2 -3
- package/dist/syncActions/index.cjs +3 -4
- package/dist/syncActions/index.js +2 -3
- package/dist/telemetry/index.cjs +3 -4
- package/dist/telemetry/index.js +2 -3
- package/dist/{types-Bu8AEdZo.d.cts → types-CMEwVQ78.d.cts} +2 -20
- package/dist/{types-CWK543pL.d.ts → types-D64zThBJ.d.ts} +1 -1
- package/dist/{types-D5FF6mS6.d.cts → types-DsqDUWJn.d.cts} +1 -1
- package/dist/{types-bjHzGr0s.d.ts → types-GmAeMsok.d.ts} +2 -20
- package/dist/{types-DMC601TE.d.cts → types-YEfQ5pAy.d.cts} +20 -1
- package/dist/{types-DMC601TE.d.ts → types-YEfQ5pAy.d.ts} +20 -1
- package/dist/vault/index.cjs +3 -4
- package/dist/vault/index.js +2 -3
- package/dist/verify/index.cjs +3 -4
- package/dist/verify/index.d.cts +2 -1
- package/dist/verify/index.d.ts +2 -1
- package/dist/verify/index.js +2 -3
- package/package.json +25 -22
- package/surface/ai.md +14 -0
- package/surface/assets.md +7 -0
- package/surface/chat.md +19 -0
- package/surface/context.md +40 -0
- package/surface/dataScience.md +19 -0
- package/surface/editor.md +17 -0
- package/surface/encryption.md +9 -0
- package/surface/import.md +7 -0
- package/surface/kaiAgent.md +26 -0
- package/surface/management.md +109 -0
- package/surface/notifications.md +10 -0
- package/surface/oauth.md +10 -0
- package/surface/queryService.md +12 -0
- package/surface/queue.md +8 -0
- package/surface/scheduler.md +12 -0
- package/surface/sdk.md +62 -0
- package/surface/status.md +7 -0
- package/surface/storage.md +182 -0
- package/surface/stream.md +42 -0
- package/surface/syncActions.md +16 -0
- package/surface/telemetry.md +10 -0
- package/surface/vault.md +11 -0
- package/dist/chunk-2Q75RQ3X.js.map +0 -1
- package/dist/chunk-4HORTOGH.js.map +0 -1
- package/dist/chunk-4KJRGFNV.cjs.map +0 -1
- package/dist/chunk-4PT6E6VA.js.map +0 -1
- package/dist/chunk-53WUPUXH.cjs.map +0 -1
- package/dist/chunk-54N7LIDM.js.map +0 -1
- package/dist/chunk-5YTV36EI.js.map +0 -1
- package/dist/chunk-AK4ZHM77.cjs.map +0 -1
- package/dist/chunk-BBRS2HLH.cjs.map +0 -1
- package/dist/chunk-BZO2GTJP.js.map +0 -1
- package/dist/chunk-CFRR7QPR.cjs.map +0 -1
- package/dist/chunk-CONUMVLZ.cjs.map +0 -1
- package/dist/chunk-CSWK4LWY.js.map +0 -1
- package/dist/chunk-D2SWTZFS.js.map +0 -1
- package/dist/chunk-EEG7YZUY.js.map +0 -1
- package/dist/chunk-FB3E7VS6.cjs.map +0 -1
- package/dist/chunk-H5DZOHH7.js.map +0 -1
- package/dist/chunk-HUMEK64L.cjs.map +0 -1
- package/dist/chunk-IDYRJ4K3.cjs.map +0 -1
- package/dist/chunk-J5JUQRPD.js.map +0 -1
- package/dist/chunk-J7EQLDUU.cjs.map +0 -1
- package/dist/chunk-KCGEV4ZA.cjs.map +0 -1
- package/dist/chunk-LUQJU3I3.js.map +0 -1
- package/dist/chunk-MQ554O4E.js.map +0 -1
- package/dist/chunk-NBUPHAAO.cjs.map +0 -1
- package/dist/chunk-NFGQHJVB.cjs.map +0 -1
- package/dist/chunk-OVGB3W3A.cjs.map +0 -1
- package/dist/chunk-PWA6XFXA.cjs.map +0 -1
- package/dist/chunk-R7MQGDLC.cjs +0 -61
- package/dist/chunk-R7MQGDLC.cjs.map +0 -1
- package/dist/chunk-SI5TFV5M.js +0 -54
- package/dist/chunk-SI5TFV5M.js.map +0 -1
- package/dist/chunk-TD2PFSP6.js.map +0 -1
- package/dist/chunk-TXDMA4CT.cjs.map +0 -1
- package/dist/chunk-UYZTOVYS.cjs.map +0 -1
- package/dist/chunk-V2MQG3FZ.js.map +0 -1
- package/dist/chunk-VFZVLZC6.js.map +0 -1
- package/dist/chunk-VKHQ6BWE.cjs +0 -30
- package/dist/chunk-VKHQ6BWE.cjs.map +0 -1
- package/dist/chunk-VUVBYSYM.js.map +0 -1
- package/dist/chunk-W3AFDHXQ.cjs.map +0 -1
- package/dist/chunk-Y26EBVMH.js.map +0 -1
- package/dist/chunk-YGAWVMHH.cjs.map +0 -1
- package/dist/chunk-YIWAUNKU.js.map +0 -1
- package/dist/chunk-YLK5KBXD.js.map +0 -1
package/dist/verify/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { S as StorageToken } from '../types-
|
|
1
|
+
import { S as StorageToken } from '../types-GmAeMsok.js';
|
|
2
2
|
import { ManagementToken } from './types.js';
|
|
3
|
+
import '../backends-BgUzAQul.js';
|
|
3
4
|
import '../types-jKnx7Tm_.js';
|
|
4
5
|
|
|
5
6
|
declare const createVerifyClient: () => {
|
package/dist/verify/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { createVerifyClient } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-SI5TFV5M.js';
|
|
1
|
+
export { createVerifyClient } from '../chunk-LUHYZXJH.js';
|
|
2
|
+
import '../chunk-FBGUBMJ7.js';
|
|
4
3
|
//# sourceMappingURL=index.js.map
|
|
5
4
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keboola/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "TypeScript SDK for Keboola APIs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"README.md"
|
|
12
|
+
"README.md",
|
|
13
|
+
"API-SURFACE.md",
|
|
14
|
+
"surface"
|
|
13
15
|
],
|
|
14
16
|
"typesVersions": {
|
|
15
17
|
"*": {
|
|
@@ -169,22 +171,6 @@
|
|
|
169
171
|
"access": "public"
|
|
170
172
|
},
|
|
171
173
|
"sideEffects": false,
|
|
172
|
-
"scripts": {
|
|
173
|
-
"gen:types": "openapi-typescript --export-type",
|
|
174
|
-
"type-check": "tsc",
|
|
175
|
-
"lint": "yarn lint:format && yarn lint:oxlint",
|
|
176
|
-
"lint:fix": "oxlint --fix . && oxfmt",
|
|
177
|
-
"knip:check": "yarn --cwd ../.. exec knip --workspace packages/api-client",
|
|
178
|
-
"knip:fix": "yarn --cwd ../.. exec knip --workspace packages/api-client --fix-type types,exports,files",
|
|
179
|
-
"lint:oxlint": "oxlint . --quiet",
|
|
180
|
-
"lint:format": "oxfmt --check",
|
|
181
|
-
"transit": "yarn build",
|
|
182
|
-
"build": "NODE_OPTIONS=--max-old-space-size=8192 tsup",
|
|
183
|
-
"build:check": "attw --pack .",
|
|
184
|
-
"prepublishOnly": "yarn build && yarn build:check",
|
|
185
|
-
"test": "vitest run --passWithNoTests --reporter=dot",
|
|
186
|
-
"test:integration": "vitest run --config vitest.integration.config.ts"
|
|
187
|
-
},
|
|
188
174
|
"engines": {
|
|
189
175
|
"node": "24.x"
|
|
190
176
|
},
|
|
@@ -724,8 +710,6 @@
|
|
|
724
710
|
},
|
|
725
711
|
"devDependencies": {
|
|
726
712
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
727
|
-
"@keboola/oxlint-config": "workspace:^",
|
|
728
|
-
"@keboola/tsconfig": "workspace:^",
|
|
729
713
|
"@types/node": "24.12.0",
|
|
730
714
|
"@types/qs": "^6",
|
|
731
715
|
"esbuild": "^0.28.1",
|
|
@@ -737,6 +721,25 @@
|
|
|
737
721
|
"typescript": "^6.0.3",
|
|
738
722
|
"vite": "^8.0.16",
|
|
739
723
|
"vitest": "^4.1.8",
|
|
740
|
-
"yaml": "^2.8.3"
|
|
724
|
+
"yaml": "^2.8.3",
|
|
725
|
+
"@keboola/oxlint-config": "^2.0.0",
|
|
726
|
+
"@keboola/tsconfig": "^0.1.2"
|
|
727
|
+
},
|
|
728
|
+
"scripts": {
|
|
729
|
+
"gen:types": "openapi-typescript --export-type",
|
|
730
|
+
"type-check": "tsc",
|
|
731
|
+
"lint": "pnpm lint:format && pnpm lint:oxlint",
|
|
732
|
+
"lint:fix": "oxlint --fix . && oxfmt",
|
|
733
|
+
"knip:check": "pnpm --dir ../.. exec knip --workspace packages/api-client",
|
|
734
|
+
"knip:fix": "pnpm --dir ../.. exec knip --workspace packages/api-client --fix-type types,exports,files",
|
|
735
|
+
"lint:oxlint": "oxlint . --quiet",
|
|
736
|
+
"lint:format": "oxfmt --check",
|
|
737
|
+
"surface": "node scripts/gen-surface.mjs",
|
|
738
|
+
"surface:check": "node scripts/gen-surface.mjs && git diff --exit-code -- API-SURFACE.md surface",
|
|
739
|
+
"transit": "pnpm build",
|
|
740
|
+
"build": "NODE_OPTIONS=--max-old-space-size=8192 tsup",
|
|
741
|
+
"build:check": "attw --pack .",
|
|
742
|
+
"test": "vitest run --passWithNoTests --reporter=dot",
|
|
743
|
+
"test:integration": "vitest run --config vitest.integration.config.ts"
|
|
741
744
|
}
|
|
742
|
-
}
|
|
745
|
+
}
|
package/surface/ai.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# `api.ai` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.ai.describeConfiguration(body: { branchId: string; componentId: string; configId: string; rowId?: string | undefined; }): Promise<{ description: string; correlationId: string; }>`
|
|
8
|
+
- `api.ai.describeConfigurationMerge(body: { componentId: string; configId: string; baseBranchId: string; currentBranchId: string; }): Promise<{ description: string; correlationId: string; }>`
|
|
9
|
+
- `api.ai.describeConfigurationVersion(body: { branchId: string; componentId: string; configId: string; currentVersionId: string; previousVersionId?: string | undefined; rowId?: string | undefined; }): Promise<{ description: string; correlationId: string; }>`
|
|
10
|
+
- `api.ai.docsQuestion(body: { query: string; }): Promise<{ response: string; metadata: { sources: string[]; }; }>`
|
|
11
|
+
- `api.ai.explainError(body: { error?: string | undefined; jobId: string; }): Promise<{ answer: string; correlationId: string; }>`
|
|
12
|
+
- `api.ai.feedback(body: { value: "good" | "bad" | "cancel"; correlationId?: string | undefined; comment?: string | undefined; subject?: { type: "failed-job"; jobId: string; } | { type: "configuration"; branchId: string; componentId: string; configId: string; rowId?: string | undefined; } | { type: "conversation"; conversationId: string; } | { type: "component-suggestions"; searchTerm: string; } | undefined; }): Promise<never>`
|
|
13
|
+
- `api.ai.getComponentDetail(componentId: string): Promise<{ componentId: string; componentType: string; componentName: string; componentCategories: string[]; description: string; longDescription: string; documentationUrl: string | null; documentation: string | null; configurationSchema: Record<string, never> | null; configurationRowSchema: Record<string, never> | null; configurationDescription: string | null; rootConfigurationExamples: Record<string, never>[] | null; rowConfigurationExamples: Record<string, never>[] | null; componentFlags: string[] | null; }>`
|
|
14
|
+
- `api.ai.suggestComponent(body: { prompt: string; }): Promise<{ components: { componentId: string; score: number; }[]; correlationId: string; }>`
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# `api.assets` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.assets.getPublishedChangelogPosts(signal?: AbortSignal | undefined): Promise<Post[]>`
|
package/surface/chat.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `api.chat` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.chat.createChat(request: { id: string; message: { id: string; role: "user" | "assistant"; parts: ({ type: "text"; text: string; state?: "done" | undefined; } | { type: "tool-result"; toolCallId: string; toolName: string; result: string; } | { type: "step-start"; } | { type: string; toolCallId: string; state: "output-available" | "output-error" | "output-denied" | "input-available" | "input-streaming" | "approval-requested" | "approval-responded"; input?: { [key: string]: unknown; } | undefined; output?: unknown; errorText?: string | undefined; approval?: { id?: string | undefined; approved?: boolean | undefined; reason?: string | undefined; } | undefined; })[]; metadata?: { createdAt?: string | undefined; hidden?: boolean | undefined; requestContext?: { path?: string | undefined; sqlEditorActive?: boolean | undefined; } | undefined; compactedTo?: string | undefined; compactedFrom?: string | undefined; } | undefined; status?: "failed" | "completed" | "pending" | "interrupted" | undefined; }; selectedChatModel: "chat-model" | "chat-model-reasoning"; selectedVisibilityType: "public" | "private"; branchId?: number | undefined; telemetryMetadata?: { [key: string]: string | number | boolean; } | undefined; }): Promise<Response>`
|
|
8
|
+
- `api.chat.deleteChat(chatId: string): Promise<{ id: string; title: string; userId: string; createdAt: string; lastMessageAt: string; visibility: "public" | "private"; branchId?: number | null | undefined; }>`
|
|
9
|
+
- `api.chat.getAgentSettings(signal?: AbortSignal | undefined): Promise<{ projectId: string; customInstructions: string | null; createdAt: string; updatedAt: string; }>`
|
|
10
|
+
- `api.chat.getChat(chatId: string, signal?: AbortSignal | undefined): Promise<{ id: string; title: string; userId: string; createdAt: string; lastMessageAt: string; visibility: "public" | "private"; branchId?: number | null | undefined; messages: { id: string; role: "user" | "assistant"; parts: ({ type: "text"; text: string; state?: "done" | undefined; } | { type: "tool-result"; toolCallId: string; toolName: string; result: string; } | { type: "step-start"; } | { type: string; toolCallId: string; state: "output-available" | "output-error" | "output-denied" | "input-available" | "input-streaming" | "approval-requested" | "approval-responded"; input?: { [key: string]: unknown; } | undefined; output?: unknown; errorText?: string | undefined; approval?: { id?: string | undefined; approved?: boolean | undefined; reason?: string | undefined; } | undefined; })[]; metadata?: { createdAt?: string | undefined; hidden?: boolean | undefined; requestContext?: { path?: string | undefined; sqlEditorActive?: boolean | undefined; } | undefined; compactedTo?: string | undefined; compactedFrom?: string | undefined; } | undefined; status?: "failed" | "completed" | "pending" | "interrupted" | undefined; }[]; }>`
|
|
11
|
+
- `api.chat.getHistory(params?: { limit?: number | undefined; starting_after?: string | undefined; ending_before?: string | undefined; } | undefined): Promise<{ chats: { id: string; title: string; userId: string; createdAt: string; lastMessageAt: string; visibility: "public" | "private"; branchId?: number | null | undefined; }[]; hasMore: boolean; }>`
|
|
12
|
+
- `api.chat.getSuggestions(request: { context: "dashboard"; data: { recentFailedJobs: { id: string; status: "error" | "warning"; component: string; configId: string; createdTime: string; configName?: string | undefined; durationSeconds?: number | undefined; errorMessage?: string | undefined; }[]; deprecatedComponents: { id: string; name: string; type: string; expiredOn: string; configCount: number; }[]; userRecentEdits: { component: string; configId: string; configName: string; lastEdited: string; }[]; currentUserEmail: string; }; } | { context: "job-detail"; data: { job: { id: string; status: "error" | "warning" | "success" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; component: string; createdTime: string; configId?: string | undefined; configName?: string | undefined; startTime?: string | undefined; endTime?: string | undefined; durationSeconds?: number | undefined; errorMessage?: string | undefined; errorType?: "user" | "application" | undefined; backendSize?: string | undefined; }; currentUserEmail: string; component?: { id: string; name: string; type: string; } | undefined; runtimeHistory?: { recentJobsCount: number; averageDurationSeconds?: number | undefined; minDurationSeconds?: number | undefined; maxDurationSeconds?: number | undefined; isSlowerThanAverage?: boolean | undefined; isFasterThanAverage?: boolean | undefined; percentageDifference?: number | undefined; } | undefined; }; } | { context: "configuration-detail"; data: { configuration: { id: string; name: string; component: string; hasRows: boolean; description?: string | undefined; rowCount?: number | undefined; lastChangeDescription?: string | undefined; }; currentUserEmail: string; component?: { id: string; name: string; type: string; } | undefined; latestJobs?: { id: string; status: "error" | "warning" | "success" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; createdTime: string; durationSeconds?: number | undefined; errorMessage?: string | undefined; }[] | undefined; }; }, signal?: AbortSignal | undefined): Promise<{ suggestions: { label: string; prompt: string; priority: number; category: "documentation" | "error" | "maintenance"; reasoning: string; id: string; }[]; suggestionSessionId: string; }>`
|
|
13
|
+
- `api.chat.getToolsList(signal?: AbortSignal | undefined): Promise<{ tools: { name: string; description: string; readOnly: boolean; }[]; }>`
|
|
14
|
+
- `api.chat.getUsage(signal?: AbortSignal | undefined): Promise<{ messagesUsed: number; messagesLimit: number; resetDate: string; }>`
|
|
15
|
+
- `api.chat.getUserAgentSettings(signal?: AbortSignal | undefined): Promise<{ projectId: string; userId: string; customInstructions: string | null; toolPermissions: { [key: string]: "always_allow" | "always_ask" | "blocked"; } | null; createdAt: string; updatedAt: string; }>`
|
|
16
|
+
- `api.chat.getVotes(chatId: string): Promise<{ chatId: string; messageId: string; isUpvoted: boolean; }[]>`
|
|
17
|
+
- `api.chat.submitVote(params: { chatId: string; messageId: string; type: "up" | "down"; }): Promise<void>`
|
|
18
|
+
- `api.chat.updateAgentSettings(request: { customInstructions?: string | null | undefined; }, signal?: AbortSignal | undefined): Promise<{ projectId: string; customInstructions: string | null; createdAt: string; updatedAt: string; }>`
|
|
19
|
+
- `api.chat.updateUserAgentSettings(request: { customInstructions?: string | null | undefined; toolPermissions?: { [key: string]: "always_allow" | "always_ask" | "blocked"; } | null | undefined; }, signal?: AbortSignal | undefined): Promise<{ projectId: string; userId: string; customInstructions: string | null; toolPermissions: { [key: string]: "always_allow" | "always_ask" | "blocked"; } | null; createdAt: string; updatedAt: string; }>`
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# `api.context` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### `api.context.defaultBranch`
|
|
9
|
+
|
|
10
|
+
- `api.context.defaultBranch.getType(branchId?: string | number | undefined): BranchType`
|
|
11
|
+
- `api.context.defaultBranch.isDefault(branchId?: string | number | undefined): boolean`
|
|
12
|
+
- `api.context.defaultBranch.isDev(branchId?: string | number | undefined): boolean`
|
|
13
|
+
|
|
14
|
+
### `api.context.project`
|
|
15
|
+
|
|
16
|
+
- `api.context.project.hasAdminFeature(...feature: string[]): boolean`
|
|
17
|
+
- `api.context.project.hasBackend(backend: Backend): boolean`
|
|
18
|
+
- `api.context.project.hasFeature(...feature: string[]): boolean`
|
|
19
|
+
|
|
20
|
+
### `api.context.st`
|
|
21
|
+
|
|
22
|
+
- `api.context.st.createBucket(input: { stage: BucketStage; name: string; branchId?: string | null | undefined; }): StorageTableInstance`
|
|
23
|
+
- `api.context.st.createDefaultBucket(input: { stage: BucketStage; name: string; }): StorageTableInstance`
|
|
24
|
+
- `api.context.st.createDefaultConfigBucket(input: { stage: BucketStage; componentId: string; configId: string; }): StorageTableInstance`
|
|
25
|
+
- `api.context.st.createDefaultConfigTable(input: { stage: BucketStage; componentId: string; configId: string; tableName: string; }): StorageTableInstance`
|
|
26
|
+
- `api.context.st.createDefaultCsvImportTable(configId: string): StorageTableInstance`
|
|
27
|
+
- `api.context.st.createTable(input: { stage: BucketStage; tableName: string; bucketName: string; branchId?: string | null | undefined; }): StorageTableInstance`
|
|
28
|
+
- `api.context.st.parse(id: string): StorageTableInstance`
|
|
29
|
+
- `api.context.st.parseBucket(id: string): StorageTableInstance`
|
|
30
|
+
- `api.context.st.safeCreateDefaultBucket(input: { stage: BucketStage; name: string; }): StorageTableInstance | null`
|
|
31
|
+
- `api.context.st.safeParse(id: string): StorageTableInstance | null`
|
|
32
|
+
- `api.context.st.safeParseBucket(id: string): StorageTableInstance | null`
|
|
33
|
+
|
|
34
|
+
### `api.context.stack`
|
|
35
|
+
|
|
36
|
+
- `api.context.stack.getComponent(componentId: string): StackComponent | null`
|
|
37
|
+
- `api.context.stack.getServiceUrl(serviceId: ServiceId): string | null`
|
|
38
|
+
- `api.context.stack.hasComponent(...componentId: string[]): boolean`
|
|
39
|
+
- `api.context.stack.hasFeature(...feature: string[]): boolean`
|
|
40
|
+
- `api.context.stack.hasService(serviceId: ServiceId): boolean`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# `api.dataScience` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.dataScience.createApp(body: { type: string; branchId: string | null; name: string; description?: string | null | undefined; config?: { [key: string]: unknown; } | null | undefined; useManagedGitRepo?: boolean | undefined; mode?: "dev" | "prod" | undefined; }, signal?: AbortSignal | undefined): Promise<{ id: string; type?: string | null | undefined; projectId: string; componentId: string; branchId: string | null; configId: string; configVersion: string; state: "created" | "starting" | "running" | "restarting" | "stopping" | "stopped" | "deleting" | "deleted"; desiredState: "running" | "stopped" | "deleted"; mode: "dev" | "prod"; lastRequestTimestamp: string | null; lastStartTimestamp?: string | null | undefined; url?: string | null | undefined; autoSuspendAfterSeconds?: number | undefined; autoRestartEnabled?: boolean | undefined; size?: string | null | undefined; provisioningStrategy: "jobQueue" | "operator"; hasManagedGitRepo?: boolean | undefined; }>`
|
|
8
|
+
- `api.dataScience.deleteApp(appId: string, signal?: AbortSignal | undefined): Promise<ApiResponse<never>>`
|
|
9
|
+
- `api.dataScience.getApp(appId: string, signal?: AbortSignal | undefined): Promise<{ id: string; type?: string | null | undefined; projectId: string; componentId: string; branchId: string | null; configId: string; configVersion: string; state: "created" | "starting" | "running" | "restarting" | "stopping" | "stopped" | "deleting" | "deleted"; desiredState: "running" | "stopped" | "deleted"; mode: "dev" | "prod"; lastRequestTimestamp: string | null; lastStartTimestamp?: string | null | undefined; url?: string | null | undefined; autoSuspendAfterSeconds?: number | undefined; autoRestartEnabled?: boolean | undefined; size?: string | null | undefined; provisioningStrategy: "jobQueue" | "operator"; hasManagedGitRepo?: boolean | undefined; }>`
|
|
10
|
+
- `api.dataScience.getAppLogsDownload(id: string, signal?: AbortSignal | undefined): Promise<{ logs: string; fileName: string; }>`
|
|
11
|
+
- `api.dataScience.getAppLogsTail(id: string, { query, signal }?: { query?: { since?: string | undefined; lines?: number | undefined; } | undefined; signal?: AbortSignal | undefined; }): Promise<{ entries: LogEntry[]; nextLogTimestamp: string | null; }>`
|
|
12
|
+
- `api.dataScience.getAppPassword(appId: string, signal?: AbortSignal | undefined): Promise<{ password?: string | undefined; }>`
|
|
13
|
+
- `api.dataScience.getAppRun(appId: string, runId: string, signal?: AbortSignal | undefined): Promise<{ state: "starting" | "running" | "failed" | "finished"; id: string; appId: string; createdAt?: string | null | undefined; startedAt?: string | null | undefined; stoppedAt?: string | null | undefined; startupLogs?: string | null | undefined; runtimeSize?: string | null | undefined; configVersion?: string | null | undefined; failureReason?: { reason?: string | null | undefined; message?: string | null | undefined; } | null | undefined; mode: "dev" | "prod"; }>`
|
|
14
|
+
- `api.dataScience.getAppRuns(appId: string, query?: { offset?: number | undefined; limit?: number | undefined; } | undefined, signal?: AbortSignal | undefined): Promise<{ state: "starting" | "running" | "failed" | "finished"; id: string; appId: string; createdAt?: string | null | undefined; startedAt?: string | null | undefined; stoppedAt?: string | null | undefined; startupLogs?: string | null | undefined; runtimeSize?: string | null | undefined; configVersion?: string | null | undefined; failureReason?: { reason?: string | null | undefined; message?: string | null | undefined; } | null | undefined; mode: "dev" | "prod"; }[]>`
|
|
15
|
+
- `api.dataScience.getApps(query: { offset?: number | undefined; limit?: number | undefined; componentId?: string | undefined; type?: ("bigquery" | "python" | "r" | "snowflake" | "streamlit" | "python-js")[] | undefined; branchId?: string | undefined; }, signal?: AbortSignal | undefined): Promise<{ id: string; type?: string | null | undefined; projectId: string; componentId: string; branchId: string | null; configId: string; configVersion: string; state: "created" | "starting" | "running" | "restarting" | "stopping" | "stopped" | "deleting" | "deleted"; desiredState: "running" | "stopped" | "deleted"; mode: "dev" | "prod"; lastRequestTimestamp: string | null; lastStartTimestamp?: string | null | undefined; url?: string | null | undefined; autoSuspendAfterSeconds?: number | undefined; autoRestartEnabled?: boolean | undefined; size?: string | null | undefined; provisioningStrategy: "jobQueue" | "operator"; hasManagedGitRepo?: boolean | undefined; }[]>`
|
|
16
|
+
- `api.dataScience.getRuntimes(signal?: AbortSignal | undefined): Promise<{ description: string; type: string; isTypeDefault: boolean; releaseDate: string; endOfLifeDate?: string | null | undefined; imageName?: string | null | undefined; imageTag?: string | null | undefined; transformationComponentId?: string | null | undefined; transformationComponentTag?: string | null | undefined; sandboxImageName?: string | null | undefined; sandboxImageTag?: string | null | undefined; }[]>`
|
|
17
|
+
- `api.dataScience.getSandbox(appId: string, signal?: AbortSignal | undefined): Promise<{ id?: string | undefined; projectId?: string | undefined; tokenId?: string | undefined; branchId?: string | null | undefined; configurationId?: string | undefined; physicalId?: string | undefined; type?: string | undefined; active?: boolean | undefined; createdTimestamp?: string | undefined; startTimestamp?: string | undefined; updatedTimestamp?: string | undefined; persistentStorage?: { pvcName?: string | null | undefined; k8sManifest?: string | null | undefined; isEnabled?: boolean | undefined; ready?: boolean | null | undefined; k8sStorageClassName?: string | null | undefined; } | undefined; shared?: boolean | undefined; componentId?: string | undefined; configurationVersion?: string | undefined; size?: string | null | undefined; lastAutosaveTimestamp?: string | null | undefined; expirationTimestamp?: string | null | undefined; autoSuspendAfterSeconds?: number | undefined; expirationAfterHours?: number | undefined; user?: string | null | undefined; url?: string | null | undefined; password?: string | null | undefined; autosaveTokenId?: string | null | undefined; host?: string | null | undefined; imageVersion?: string | null | undefined; packages?: string[] | null | undefined; sizeParameters?: unknown; stagingWorkspaceId?: unknown; stagingWorkspaceType?: unknown; workspaceDetails?: unknown; databricks?: unknown; credentials?: unknown; }>`
|
|
18
|
+
- `api.dataScience.patchApp(appId: string, body: PatchDataAppBody, signal?: AbortSignal | undefined): Promise<{ id: string; type?: string | null | undefined; projectId: string; componentId: string; branchId: string | null; configId: string; configVersion: string; state: "created" | "starting" | "running" | "restarting" | "stopping" | "stopped" | "deleting" | "deleted"; desiredState: "running" | "stopped" | "deleted"; mode: "dev" | "prod"; lastRequestTimestamp: string | null; lastStartTimestamp?: string | null | undefined; url?: string | null | undefined; autoSuspendAfterSeconds?: number | undefined; autoRestartEnabled?: boolean | undefined; size?: string | null | undefined; provisioningStrategy: "jobQueue" | "operator"; hasManagedGitRepo?: boolean | undefined; }>`
|
|
19
|
+
- `api.dataScience.resetAppPassword(appId: string, signal?: AbortSignal | undefined): Promise<{ id: string; type?: string | null | undefined; projectId: string; componentId: string; branchId: string | null; configId: string; configVersion: string; state: "created" | "starting" | "running" | "restarting" | "stopping" | "stopped" | "deleting" | "deleted"; desiredState: "running" | "stopped" | "deleted"; mode: "dev" | "prod"; lastRequestTimestamp: string | null; lastStartTimestamp?: string | null | undefined; url?: string | null | undefined; autoSuspendAfterSeconds?: number | undefined; autoRestartEnabled?: boolean | undefined; size?: string | null | undefined; provisioningStrategy: "jobQueue" | "operator"; hasManagedGitRepo?: boolean | undefined; }>`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# `api.editor` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.editor.createQueryJob({ id }: { id: string; }, body: { queries: string[]; }): Promise<{ queryJobId: string; url: string; }>`
|
|
8
|
+
- `api.editor.createSession(body: { branchId: string; componentId: string | null; configurationId: string | null; }): Promise<{ id: string; createdAt: string; updatedAt: string; status: "failed" | "deleted" | "initializing" | "ready" | "loading" | "unloading"; userId: string; branchId: string; componentId: string; configurationId: string; workspaceSchema: string; workspaceDatabase?: string | null | undefined; workspaceId: string; workspaceCreateJobId: string | null; workspaceLoadJobs: { id: string; type: string; }[]; snowflakePrivateKey?: string | undefined; readOnlyStorageAccess?: boolean | undefined; backendType?: "bigquery" | "snowflake" | null | undefined; backendSize?: string | null | undefined; lastError?: string | null | undefined; shared: boolean; workspaceLoginType?: "default" | "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | null | undefined; lastLoadedAt?: string | null | undefined; }>`
|
|
9
|
+
- `api.editor.getSession({ id }: { id: string; }, signal?: AbortSignal | undefined): Promise<{ id: string; createdAt: string; updatedAt: string; status: "failed" | "deleted" | "initializing" | "ready" | "loading" | "unloading"; userId: string; branchId: string; componentId: string; configurationId: string; workspaceSchema: string; workspaceDatabase?: string | null | undefined; workspaceId: string; workspaceCreateJobId: string | null; workspaceLoadJobs: { id: string; type: string; }[]; snowflakePrivateKey?: string | undefined; readOnlyStorageAccess?: boolean | undefined; backendType?: "bigquery" | "snowflake" | null | undefined; backendSize?: string | null | undefined; lastError?: string | null | undefined; shared: boolean; workspaceLoginType?: "default" | "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | null | undefined; lastLoadedAt?: string | null | undefined; }>`
|
|
10
|
+
- `api.editor.getSessionCredentials(id: string, signal?: AbortSignal | undefined): Promise<{ [key: string]: unknown; }>`
|
|
11
|
+
- `api.editor.getSessionSchema({ id, onlyWorkspaceSchema, loadTables, }: { id: string; } & { onlyWorkspaceSchema?: "0" | "1" | undefined; loadTables?: "0" | "1" | undefined; }, signal?: AbortSignal | undefined): Promise<{ databases: { name: string | null; displayName?: string | null | undefined; schemas: { name: string; isBranched: boolean; displayName?: string | null | undefined; tables: { name: string; type: "BASE TABLE" | "VIEW" | "ALIAS" | "LOCAL TEMPORARY"; displayName?: string | null | undefined; id?: string | null | undefined; columns: { name: string; type?: string | undefined; }[]; metrics?: { rowCount?: number | null | undefined; byteSize?: number | null | undefined; } | null | undefined; lifecycle?: { createdAt?: string | null | undefined; modifiedAt?: string | null | undefined; lastImportAt?: string | null | undefined; } | null | undefined; }[]; }[]; }[]; }>`
|
|
12
|
+
- `api.editor.getSessions(query: { listAll?: "0" | "1" | undefined; branchId?: string | undefined; }, signal?: AbortSignal | undefined): Promise<{ id: string; createdAt: string; updatedAt: string; status: "failed" | "deleted" | "initializing" | "ready" | "loading" | "unloading"; userId: string; branchId: string; componentId: string; configurationId: string; workspaceSchema: string; workspaceDatabase?: string | null | undefined; workspaceId: string; workspaceCreateJobId: string | null; workspaceLoadJobs: { id: string; type: string; }[]; snowflakePrivateKey?: string | undefined; readOnlyStorageAccess?: boolean | undefined; backendType?: "bigquery" | "snowflake" | null | undefined; backendSize?: string | null | undefined; lastError?: string | null | undefined; shared: boolean; workspaceLoginType?: "default" | "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | null | undefined; lastLoadedAt?: string | null | undefined; }[]>`
|
|
13
|
+
- `api.editor.load({ id }: { id: string; }, body: { mode: "input" | "input-preserve" | "clean"; tableId?: string | null | undefined; }): Promise<{ id: string; createdAt: string; updatedAt: string; status: "failed" | "deleted" | "initializing" | "ready" | "loading" | "unloading"; userId: string; branchId: string; componentId: string; configurationId: string; workspaceSchema: string; workspaceDatabase?: string | null | undefined; workspaceId: string; workspaceCreateJobId: string | null; workspaceLoadJobs: { id: string; type: string; }[]; snowflakePrivateKey?: string | undefined; readOnlyStorageAccess?: boolean | undefined; backendType?: "bigquery" | "snowflake" | null | undefined; backendSize?: string | null | undefined; lastError?: string | null | undefined; shared: boolean; workspaceLoginType?: "default" | "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | null | undefined; lastLoadedAt?: string | null | undefined; }>`
|
|
14
|
+
- `api.editor.resetWorkspacePassword(id: string): Promise<{ username: string; password: string; host: string; database: string; schema: string; warehouse: string; }>`
|
|
15
|
+
- `api.editor.tableDefinition({ id, ...query }: { id: string; } & { tableName: string; schemaName: string; databaseName?: string | null | undefined; }, signal?: AbortSignal | undefined): Promise<{ ddl: string; }>`
|
|
16
|
+
- `api.editor.tablePreview({ id }: { id: string; }, body: { tableName: string; databaseName?: string | null | undefined; schemaName?: string | null | undefined; }): Promise<{ queryJobId: string; url: string; }>`
|
|
17
|
+
- `api.editor.unload({ id }: { id: string; }, body?: { tableId?: string | null | undefined; } | undefined): Promise<{ id: string; createdAt: string; updatedAt: string; status: "failed" | "deleted" | "initializing" | "ready" | "loading" | "unloading"; userId: string; branchId: string; componentId: string; configurationId: string; workspaceSchema: string; workspaceDatabase?: string | null | undefined; workspaceId: string; workspaceCreateJobId: string | null; workspaceLoadJobs: { id: string; type: string; }[]; snowflakePrivateKey?: string | undefined; readOnlyStorageAccess?: boolean | undefined; backendType?: "bigquery" | "snowflake" | null | undefined; backendSize?: string | null | undefined; lastError?: string | null | undefined; shared: boolean; workspaceLoginType?: "default" | "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | null | undefined; lastLoadedAt?: string | null | undefined; }>`
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# `api.encryption` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.encryption.encrypt(data: EncryptQuery & { data: string; }, signal?: AbortSignal | undefined): Promise<string>`
|
|
8
|
+
- `api.encryption.encryptScopedSecrets<T extends Record<string, unknown>>({ scope, ...params }: ScopedSecrets<T>, signal?: AbortSignal | undefined): Promise<T>`
|
|
9
|
+
- `api.encryption.encryptSecrets<T extends Record<string, unknown>>(data: EncryptQuery & { data: T; }, signal?: AbortSignal | undefined): Promise<T>`
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# `api.import` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.import.uploadFile(file: File, params?: UploadFileParams, signal?: AbortSignal | undefined): Promise<UploadedFile>`
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# `api.kaiAgent` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.kaiAgent.approveToolCall(chatId: string, body: { toolUseId: string; approved: boolean; reason?: string | undefined; updatedInput?: { [key: string]: unknown; } | undefined; answers?: { [key: string]: string; } | undefined; }): Promise<void>`
|
|
8
|
+
- `api.kaiAgent.createChat(request: { id: string; message: { id: string; role: "user" | "assistant"; parts: { [key: string]: unknown; }[]; metadata?: { hidden?: boolean | undefined; requestContext?: { path?: string | undefined; sqlEditorActive?: boolean | undefined; } | undefined; } | undefined; }; selectedChatModel?: string | undefined; selectedVisibilityType?: "public" | "private" | undefined; branchId?: number | undefined; telemetryMetadata?: { [key: string]: string | number | boolean; } | undefined; }): Promise<Response>`
|
|
9
|
+
- `api.kaiAgent.deleteChat(chatId: string): Promise<{ id?: string | undefined; title?: string | undefined; userId?: string | undefined; createdAt?: string | undefined; visibility?: "public" | "private" | undefined; branchId?: number | null | undefined; }>`
|
|
10
|
+
- `api.kaiAgent.getAgentSettings(signal?: AbortSignal | undefined): Promise<{ projectId: string; customInstructions: string | null; createdAt: string; updatedAt: string; }>`
|
|
11
|
+
- `api.kaiAgent.getChat(chatId: string, signal?: AbortSignal | undefined): Promise<{ id: string; title: string; userId: string; createdAt: string; lastMessageAt: string; visibility: "public" | "private"; branchId?: number | null | undefined; messages: { id: string; role: "user" | "assistant"; parts: ({ type: "text"; text: string; state?: "done" | undefined; } | { type: "tool-result"; toolCallId: string; toolName: string; result: string; } | { type: "step-start"; } | { type: "data-compact-boundary"; data: { trigger: "manual" | "auto"; preTokens: number; preservedSegment?: { headUuid: string; anchorUuid: string; tailUuid: string; } | undefined; summary: string; sdkSessionId: string; }; } | { type: string; toolCallId: string; state: "output-available" | "output-error" | "output-denied" | "input-available" | "input-streaming" | "approval-requested" | "approval-responded"; input?: { [key: string]: unknown; } | undefined; output?: unknown; errorText?: string | undefined; approval?: { id: string; approved: boolean; reason?: string | undefined; } | undefined; })[]; metadata?: { createdAt?: string | undefined; hidden?: boolean | undefined; requestContext?: { path?: string | undefined; sqlEditorActive?: boolean | undefined; } | undefined; } | undefined; status?: "failed" | "completed" | "pending" | "interrupted" | undefined; }[]; }>`
|
|
12
|
+
- `api.kaiAgent.getHistory(params?: { limit?: number | undefined; starting_after?: string | undefined; ending_before?: string | undefined; } | undefined): Promise<{ chats: { id?: string | undefined; title?: string | undefined; userId?: string | undefined; createdAt?: string | undefined; lastMessageAt?: string | undefined; visibility?: "public" | "private" | undefined; branchId?: number | null | undefined; }[]; hasMore: boolean; }>`
|
|
13
|
+
- `api.kaiAgent.getSandboxGitBranch(chatId: string, signal?: AbortSignal | undefined): Promise<{ branch: string | null; }>`
|
|
14
|
+
- `api.kaiAgent.getSkillsList(signal?: AbortSignal | undefined): Promise<{ skills: { name: string; description: string | null; source: "first-party" | "vendored" | "project"; }[]; commands: { name: string; description: string; }[]; }>`
|
|
15
|
+
- `api.kaiAgent.getSuggestions(request: { context: "dashboard"; data: { recentFailedJobs: { id: string; status: "error" | "warning"; component: string; configId: string; createdTime: string; configName?: string | undefined; durationSeconds?: number | undefined; errorMessage?: string | undefined; }[]; deprecatedComponents: { id: string; name: string; type: string; expiredOn: string; configCount: number; }[]; userRecentEdits: { component: string; configId: string; configName: string; lastEdited: string; }[]; currentUserEmail: string; }; } | { context: "job-detail"; data: { job: { id: string; status: "error" | "warning" | "success" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; component: string; createdTime: string; configId?: string | undefined; configName?: string | undefined; startTime?: string | undefined; endTime?: string | undefined; durationSeconds?: number | undefined; errorMessage?: string | undefined; errorType?: "user" | "application" | undefined; backendSize?: string | undefined; }; currentUserEmail: string; component?: { id: string; name: string; type: string; } | undefined; runtimeHistory?: { recentJobsCount: number; averageDurationSeconds?: number | undefined; minDurationSeconds?: number | undefined; maxDurationSeconds?: number | undefined; isSlowerThanAverage?: boolean | undefined; isFasterThanAverage?: boolean | undefined; percentageDifference?: number | undefined; } | undefined; }; } | { context: "configuration-detail"; data: { configuration: { id: string; name: string; component: string; hasRows: boolean; description?: string | undefined; rowCount?: number | undefined; lastChangeDescription?: string | undefined; }; currentUserEmail: string; component?: { id: string; name: string; type: string; } | undefined; latestJobs?: { id: string; status: "error" | "warning" | "success" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; createdTime: string; durationSeconds?: number | undefined; errorMessage?: string | undefined; }[] | undefined; }; }, signal?: AbortSignal | undefined): Promise<{ suggestions: { label: string; prompt: string; priority: number; category: "documentation" | "error" | "maintenance"; reasoning: string; id: string; }[]; suggestionSessionId: string; }>`
|
|
16
|
+
- `api.kaiAgent.getToolsList(signal?: AbortSignal | undefined): Promise<{ tools: { name: string; description: string; readOnly: boolean; }[]; }>`
|
|
17
|
+
- `api.kaiAgent.getUsage(signal?: AbortSignal | undefined): Promise<{ messagesUsed: number; messagesLimit: number; resetDate: string; }>`
|
|
18
|
+
- `api.kaiAgent.getUserAgentSettings(signal?: AbortSignal | undefined): Promise<{ projectId: string; userId: string; customInstructions: string | null; toolPermissions: Record<string, "always_allow" | "always_ask" | "blocked"> | null; createdAt: string; updatedAt: string; }>`
|
|
19
|
+
- `api.kaiAgent.getVotes(chatId: string): Promise<{ chatId: string; messageId: string; isUpvoted: boolean; }[]>`
|
|
20
|
+
- `api.kaiAgent.listSandboxFiles(chatId: string, path?: string | undefined, signal?: AbortSignal | undefined): Promise<{ entries: { name: string; path: string; type: "file" | "dir"; size?: number | undefined; }[]; }>`
|
|
21
|
+
- `api.kaiAgent.readSandboxFile(chatId: string, path: string, signal?: AbortSignal | undefined): Promise<{ content: string; encoding: "utf-8" | "binary"; truncated: boolean; size: number; }>`
|
|
22
|
+
- `api.kaiAgent.stopChat(chatId: string): Promise<{ stopped: boolean; }>`
|
|
23
|
+
- `api.kaiAgent.submitToolOutput(chatId: string, body: { toolUseId: string; output?: string | undefined; errorText?: string | undefined; }): Promise<void>`
|
|
24
|
+
- `api.kaiAgent.submitVote(params: { chatId: string; messageId: string; type: "up" | "down"; }): Promise<void>`
|
|
25
|
+
- `api.kaiAgent.updateAgentSettings(request: UpdateAgentSettingsRequest, signal?: AbortSignal | undefined): Promise<{ projectId: string; customInstructions: string | null; createdAt: string; updatedAt: string; }>`
|
|
26
|
+
- `api.kaiAgent.updateUserAgentSettings(request: UpdateUserAgentSettingsRequest, signal?: AbortSignal | undefined): Promise<{ projectId: string; userId: string; customInstructions: string | null; toolPermissions: Record<string, "always_allow" | "always_ask" | "blocked"> | null; createdAt: string; updatedAt: string; }>`
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# `api.management` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.management.verifyToken(signal?: AbortSignal | undefined): Promise<{ id: number; description: string; created: string; lastUsed: string | null; expires: string | null; isSessionToken: boolean; isExpired: boolean; isDisabled: boolean; scopes: string[]; type: string; creator: { id: number; name: string; }; user?: { id: number; name: string; email: string; mfaEnabled: boolean; features: string[]; canAccessLogs: boolean; isSuperAdmin: boolean; } | null | undefined; }>`
|
|
8
|
+
|
|
9
|
+
### `api.management.currentUser`
|
|
10
|
+
|
|
11
|
+
- `api.management.currentUser.acceptMaintainerInvitation(id: number): Promise<void>`
|
|
12
|
+
- `api.management.currentUser.acceptOrganizationInvitation(id: number): Promise<void>`
|
|
13
|
+
- `api.management.currentUser.acceptProjectInvitation(id: number): Promise<void>`
|
|
14
|
+
- `api.management.currentUser.deleteProjectJoinRequest(id: number): Promise<void>`
|
|
15
|
+
- `api.management.currentUser.getMaintainerInvitation(id: number, signal?: AbortSignal | undefined): Promise<{ id: number; created: string; maintainer: { id?: number | undefined; name?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }>`
|
|
16
|
+
- `api.management.currentUser.getMaintainerInvitations(signal?: AbortSignal | undefined): Promise<{ id: number; created: string; maintainer: { id?: number | undefined; name?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }[]>`
|
|
17
|
+
- `api.management.currentUser.getOrganizationInvitation(id: number, signal?: AbortSignal | undefined): Promise<{ id: number; created: string; organization: { id?: number | undefined; name?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }>`
|
|
18
|
+
- `api.management.currentUser.getOrganizationInvitations(signal?: AbortSignal | undefined): Promise<{ id: number; created: string; organization: { id?: number | undefined; name?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }[]>`
|
|
19
|
+
- `api.management.currentUser.getProjectInvitation(id: number, signal?: AbortSignal | undefined): Promise<{ id: number; created: string; expires?: string | null | undefined; reason?: string | null | undefined; role?: string | null | undefined; project: { id?: number | undefined; name?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }>`
|
|
20
|
+
- `api.management.currentUser.getProjectInvitations(signal?: AbortSignal | undefined): Promise<{ id: number; created: string; expires?: string | null | undefined; reason?: string | null | undefined; role?: string | null | undefined; project: { id?: number | undefined; name?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }[]>`
|
|
21
|
+
- `api.management.currentUser.getProjectJoinRequests(signal?: AbortSignal | undefined): Promise<{ id: number; created: string; expires?: string | null | undefined; reason?: string | null | undefined; project: { id?: number | undefined; name?: string | undefined; }; }[]>`
|
|
22
|
+
- `api.management.currentUser.rejectMaintainerInvitation(id: number): Promise<void>`
|
|
23
|
+
- `api.management.currentUser.rejectOrganizationInvitation(id: number): Promise<void>`
|
|
24
|
+
- `api.management.currentUser.rejectProjectInvitation(id: number): Promise<void>`
|
|
25
|
+
|
|
26
|
+
### `api.management.deletedProjects`
|
|
27
|
+
|
|
28
|
+
- `api.management.deletedProjects.getDeletedProject(projectId: number, signal?: AbortSignal | undefined): Promise<DeletedProject>`
|
|
29
|
+
- `api.management.deletedProjects.getDeletedProjects(query?: { limit?: number | null | undefined; offset?: number | null | undefined; organizationId?: number | null | undefined; name?: string | null | undefined; } | undefined, signal?: AbortSignal | undefined): Promise<DeletedProject[]>`
|
|
30
|
+
- `api.management.deletedProjects.purgeDeletedProject(projectId: number, ignoreBackendErrors?: boolean): Promise<{ commandExecutionId: string; }>`
|
|
31
|
+
- `api.management.deletedProjects.restoreDeletedProject(projectId: number): Promise<void>`
|
|
32
|
+
|
|
33
|
+
### `api.management.features`
|
|
34
|
+
|
|
35
|
+
- `api.management.features.getAllFeatures(query: GetAllFeaturesQuery, signal?: AbortSignal | undefined): Promise<Feature[]>`
|
|
36
|
+
- `api.management.features.getFeature(featureId: number, signal?: AbortSignal | undefined): Promise<Feature>`
|
|
37
|
+
- `api.management.features.getFeatureAdmins(featureId: number, signal?: AbortSignal | undefined): Promise<FeatureAdmin[]>`
|
|
38
|
+
- `api.management.features.getFeatureProjects(featureId: number, signal?: AbortSignal | undefined): Promise<FeatureProject[]>`
|
|
39
|
+
|
|
40
|
+
### `api.management.maintainers`
|
|
41
|
+
|
|
42
|
+
- `api.management.maintainers.addMaintainerUser({ maintainerId, ...body }: { maintainerId: number; } & { id?: number | null | undefined; email?: string | null | undefined; }): Promise<{ id: number; name: string; email: string; mfaEnabled: boolean; features: string[]; canAccessLogs: boolean; isSuperAdmin: boolean; }>`
|
|
43
|
+
- `api.management.maintainers.createMaintainer(body: { name: string; defaultConnectionMysqlId?: number | null | undefined; defaultConnectionSnowflakeId?: number | null | undefined; defaultConnectionSynapseId?: number | null | undefined; defaultConnectionExasolId?: number | null | undefined; defaultConnectionBigqueryId?: number | null | undefined; defaultConnectionTeradataId?: number | null | undefined; zendeskUrl?: string | null | undefined; defaultFileStorageId?: number | null | undefined; }): Promise<{ id: number; name: string; created: string; defaultConnectionMysqlId?: number | null | undefined; defaultConnectionSnowflakeId?: number | null | undefined; defaultConnectionSynapseId?: number | null | undefined; defaultConnectionExasolId?: number | null | undefined; defaultConnectionBigqueryId?: number | null | undefined; defaultConnectionTeradataId?: number | null | undefined; defaultFileStorageId?: number | null | undefined; zendeskUrl?: string | null | undefined; organizations: { id?: number | undefined; name?: string | undefined; }[]; }>`
|
|
44
|
+
- `api.management.maintainers.createMaintainerInvitation({ maintainerId, ...body }: { maintainerId: number; } & { email: string; }): Promise<{ id: number; created?: string | null | undefined; user: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }>`
|
|
45
|
+
- `api.management.maintainers.createMaintainerOrganization({ maintainerId, ...body }: { maintainerId: number; } & { name: string; crmId?: string | null | undefined; }): Promise<{ id: number; name: string; created: string; allowAutoJoin: boolean; crmId?: string | null | undefined; activityCenterProjectId?: number | null | undefined; mfaRequired: boolean; }>`
|
|
46
|
+
- `api.management.maintainers.deleteMaintainer(maintainerId: number): Promise<void>`
|
|
47
|
+
- `api.management.maintainers.deleteMaintainerInvitation({ maintainerId, invitationId, }: { maintainerId: number; invitationId: number; }): Promise<void>`
|
|
48
|
+
- `api.management.maintainers.deleteMaintainerMetadata({ maintainerId, metadataId, }: { maintainerId: number; metadataId: number; }): Promise<void>`
|
|
49
|
+
- `api.management.maintainers.getMaintainer(maintainerId: number, signal?: AbortSignal | undefined): Promise<MaintainerDetail>`
|
|
50
|
+
- `api.management.maintainers.getMaintainerInvitation({ maintainerId, invitationId }: { maintainerId: number; invitationId: number; }, signal?: AbortSignal | undefined): Promise<{ id: number; created?: string | null | undefined; user: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }>`
|
|
51
|
+
- `api.management.maintainers.getMaintainerInvitations(maintainerId: number, signal?: AbortSignal | undefined): Promise<{ id: number; created?: string | null | undefined; user: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }[]>`
|
|
52
|
+
- `api.management.maintainers.getMaintainerMetadata(maintainerId: number, signal?: AbortSignal | undefined): Promise<MetadataItem[]>`
|
|
53
|
+
- `api.management.maintainers.getMaintainerUsers(maintainerId: number, signal?: AbortSignal | undefined): Promise<MaintainerUser[]>`
|
|
54
|
+
- `api.management.maintainers.getMaintainers(signal?: AbortSignal | undefined): Promise<Maintainer[]>`
|
|
55
|
+
- `api.management.maintainers.removeMaintainerUser({ maintainerId, adminId, }: { maintainerId: number; adminId: number; }): Promise<void>`
|
|
56
|
+
- `api.management.maintainers.setMaintainerMetadata({ maintainerId, ...body }: { maintainerId: number; } & { provider: "user" | "system"; metadata: { key: string; value: string; }[]; }): Promise<MetadataItem[]>`
|
|
57
|
+
- `api.management.maintainers.updateMaintainer({ maintainerId, ...body }: { maintainerId: number; } & { name?: string | null | undefined; defaultConnectionMysqlId?: number | null | undefined; defaultConnectionSnowflakeId?: number | null | undefined; defaultConnectionSynapseId?: number | null | undefined; defaultConnectionExasolId?: number | null | undefined; defaultConnectionBigqueryId?: number | null | undefined; defaultConnectionTeradataId?: number | null | undefined; zendeskUrl?: string | null | undefined; defaultFileStorageId?: number | null | undefined; }): Promise<{ id: number; name: string; created: string; defaultConnectionMysqlId?: number | null | undefined; defaultConnectionSnowflakeId?: number | null | undefined; defaultConnectionSynapseId?: number | null | undefined; defaultConnectionExasolId?: number | null | undefined; defaultConnectionBigqueryId?: number | null | undefined; defaultConnectionTeradataId?: number | null | undefined; defaultFileStorageId?: number | null | undefined; zendeskUrl?: string | null | undefined; organizations: { id?: number | undefined; name?: string | undefined; }[]; }>`
|
|
58
|
+
|
|
59
|
+
### `api.management.organizations`
|
|
60
|
+
|
|
61
|
+
- `api.management.organizations.addOrganizationUser({ organizationId, ...body }: { organizationId: number; } & { id?: number | null | undefined; email?: string | null | undefined; }): Promise<{ id: number; name: string; email: string; mfaEnabled: boolean; features: string[]; canAccessLogs: boolean; isSuperAdmin: boolean; }>`
|
|
62
|
+
- `api.management.organizations.createOrganizationInvitation({ organizationId, ...body }: { organizationId: number; } & { email: string; }): Promise<{ id: number; created?: string | null | undefined; user: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }>`
|
|
63
|
+
- `api.management.organizations.createOrganizationProject({ organizationId, ...body }: { organizationId: number; } & { name: string; type?: "production" | "poc" | "demo" | undefined; defaultBackend?: string | undefined; dataRetentionTimeInDays?: number | undefined; }): Promise<{ id: number; name: string; type: string; region: string; created?: string | null | undefined; expires?: string | null | undefined; features: string[]; dataSizeBytes: number; rowsCount: number; hasMysql: boolean; hasSynapse: boolean; hasSnowflake: boolean; hasExasol: boolean; hasTeradata: boolean; hasBigquery: boolean; defaultBackend: string; hasTryModeOn: string; limits: { [key: string]: { name?: string | undefined; value?: number | undefined; }; }; metrics: { [key: string]: { name?: string | undefined; value?: number | undefined; }; }; isDisabled: boolean; billedMonthlyPrice?: number | null | undefined; dataRetentionTimeInDays: number; isBYODB: boolean; assignedBackends: string[]; fileStorageProvider?: string | null | undefined; payAsYouGo?: { purchasedCredits?: number | undefined; } | null | undefined; disabled?: { reason?: string | undefined; estimatedEndTime?: string | null | undefined; } | null | undefined; } & { fileStorage?: Record<string, never> | undefined; backends?: Record<string, never> | undefined; }>`
|
|
64
|
+
- `api.management.organizations.deleteOrganization(organizationId: number): Promise<void>`
|
|
65
|
+
- `api.management.organizations.deleteOrganizationInvitation({ organizationId, invitationId, }: { organizationId: number; invitationId: number; }): Promise<void>`
|
|
66
|
+
- `api.management.organizations.deleteOrganizationMetadata({ organizationId, metadataId, }: { organizationId: number; metadataId: number; }): Promise<void>`
|
|
67
|
+
- `api.management.organizations.forceMfa(organizationId: number): Promise<{ id: number; name: string; created: string; allowAutoJoin: boolean; crmId?: string | null | undefined; activityCenterProjectId?: number | null | undefined; mfaRequired: boolean; } & { projects: { id: number; name: string; created: string; }[]; }>`
|
|
68
|
+
- `api.management.organizations.getOrganization(organizationId: number, signal?: AbortSignal | undefined): Promise<OrganizationDetail>`
|
|
69
|
+
- `api.management.organizations.getOrganizationInvitation({ organizationId, invitationId }: { organizationId: number; invitationId: number; }, signal?: AbortSignal | undefined): Promise<{ id: number; created?: string | null | undefined; user: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }>`
|
|
70
|
+
- `api.management.organizations.getOrganizationInvitations(organizationId: number, signal?: AbortSignal | undefined): Promise<{ id: number; created?: string | null | undefined; user: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }[]>`
|
|
71
|
+
- `api.management.organizations.getOrganizationMetadata(organizationId: number, signal?: AbortSignal | undefined): Promise<MetadataItem[]>`
|
|
72
|
+
- `api.management.organizations.getOrganizationProjects(organizationId: number, signal?: AbortSignal | undefined): Promise<Project[]>`
|
|
73
|
+
- `api.management.organizations.getOrganizationProjectsUsers(organizationId: number, signal?: AbortSignal | undefined): Promise<{ id: number; name: string; email: string; mfaEnabled: boolean; features: string[]; canAccessLogs: boolean; isSuperAdmin: boolean; }[]>`
|
|
74
|
+
- `api.management.organizations.getOrganizationUsers(organizationId: number, signal?: AbortSignal | undefined): Promise<{ id: number; name: string; email: string; mfaEnabled: boolean; features: string[]; canAccessLogs: boolean; isSuperAdmin: boolean; }[]>`
|
|
75
|
+
- `api.management.organizations.getOrganizations(signal?: AbortSignal | undefined): Promise<{ id: number; name: string; created: string; allowAutoJoin: boolean; crmId: string; activityCenterProjectId?: number | null | undefined; mfaRequired: boolean; maintainer: { id?: number | undefined; name?: string | undefined; created?: string | undefined; defaultConnectionMysqlId?: number | null | undefined; defaultConnectionSnowflakeId?: number | null | undefined; defaultConnectionSynapseId?: number | null | undefined; defaultConnectionExasolId?: number | null | undefined; defaultConnectionBigqueryId?: number | null | undefined; defaultConnectionTeradataId?: number | null | undefined; defaultFileStorageId?: number | null | undefined; zendeskUrl?: string | null | undefined; }; }[]>`
|
|
76
|
+
- `api.management.organizations.joinOrganization(organizationId: number): Promise<void>`
|
|
77
|
+
- `api.management.organizations.removeOrganizationUser({ organizationId, userId, }: { organizationId: number; userId: number; }): Promise<void>`
|
|
78
|
+
- `api.management.organizations.setOrganizationMetadata({ organizationId, ...body }: { organizationId: number; } & { provider: "user" | "system" | "maintainer"; metadata: { key: string; value: string; }[]; }): Promise<MetadataItem[]>`
|
|
79
|
+
- `api.management.organizations.updateOrganization({ organizationId, ...body }: { organizationId: number; } & { name?: string | undefined; maintainerId?: number | undefined; allowAutoJoin?: boolean | undefined; crmId?: string | null | undefined; activityCenterProjectId?: number | null | undefined; mfaRequired?: boolean | undefined; } & { mfaRequired?: boolean | undefined; crmId?: string | null | undefined; activityCenterProjectId?: number | null | undefined; maintainerId?: number | undefined; }): Promise<{ id: number; name: string; created: string; allowAutoJoin: boolean; crmId?: string | null | undefined; activityCenterProjectId?: number | null | undefined; mfaRequired: boolean; } & { projects: { id: number; name: string; created: string; }[]; }>`
|
|
80
|
+
|
|
81
|
+
### `api.management.projects`
|
|
82
|
+
|
|
83
|
+
- `api.management.projects.addProjectFeature({ projectId, feature, }: CreateProjectFeaturePath & CreateProjectFeatureBody): Promise<Project>`
|
|
84
|
+
- `api.management.projects.addProjectUser({ projectId, ...body }: AddProjectUserPath & AddProjectUserBody): Promise<User>`
|
|
85
|
+
- `api.management.projects.changeProjectUserRole({ projectId, userId, role, }: { projectId: number; userId: number; role: "readOnly" | "guest" | "admin" | "share" | "productionManager" | "developer" | "reviewer"; }): Promise<User>`
|
|
86
|
+
- `api.management.projects.createProjectInvitation({ projectId, ...body }: CreateProjectInvitationPath & CreateProjectInvitationBody): Promise<{ id: number; created?: string | null | undefined; expires?: string | null | undefined; reason?: string | null | undefined; role?: string | null | undefined; user: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }>`
|
|
87
|
+
- `api.management.projects.deleteProject(projectId: number): Promise<null>`
|
|
88
|
+
- `api.management.projects.deleteProjectInvitation({ projectId, invitationId, }: DeleteProjectInvitationPath): Promise<null>`
|
|
89
|
+
- `api.management.projects.getProject(projectId: string | number, signal?: AbortSignal | undefined): Promise<Project>`
|
|
90
|
+
- `api.management.projects.getProjectInvitations(projectId: string | number, signal?: AbortSignal | undefined): Promise<{ id: number; created?: string | null | undefined; expires?: string | null | undefined; reason?: string | null | undefined; role?: string | null | undefined; user: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; creator: { id?: number | undefined; name?: string | undefined; email?: string | undefined; }; }[]>`
|
|
91
|
+
- `api.management.projects.getProjectMetadata(projectId: number, signal?: AbortSignal | undefined): Promise<ProjectMetadataItem[]>`
|
|
92
|
+
- `api.management.projects.getProjectReviewers(projectId: number, signal?: AbortSignal | undefined): Promise<Reviewer[]>`
|
|
93
|
+
- `api.management.projects.getProjectUsers(projectId: string | number, signal?: AbortSignal | undefined): Promise<User[]>`
|
|
94
|
+
- `api.management.projects.moveProject({ projectId, organizationId, }: { projectId: number; } & { organizationId: number; }): Promise<Project>`
|
|
95
|
+
- `api.management.projects.removeProjectFeature(path: RemoveProjectFeaturePath): Promise<null>`
|
|
96
|
+
- `api.management.projects.removeProjectUser({ projectId, idOrEmail }: RemoveProjectUserPath): Promise<null>`
|
|
97
|
+
- `api.management.projects.setProjectDisabled({ projectId, ...body }: { projectId: number; } & SetProjectDisabledBody): Promise<Project>`
|
|
98
|
+
- `api.management.projects.setProjectMetadata({ projectId, provider, metadata, }: SetProjectMetadataPath & SetProjectMetadataBody): Promise<ProjectMetadataItem[]>`
|
|
99
|
+
- `api.management.projects.setProjectReviewers({ projectId, adminIds, }: SetProjectReviewersPath & SetProjectReviewersBody): Promise<void>`
|
|
100
|
+
- `api.management.projects.updateProject({ projectId, ...body }: { projectId: number; } & { name?: string | null | undefined; defaultBackend?: string | null | undefined; hasTryModeOn?: boolean | null | undefined; type?: string | null | undefined; expirationDays?: number | null | undefined; billedMonthlyPrice?: number | null | undefined; dataRetentionTimeInDays?: number | null | undefined; timezone?: string | null | undefined; }): Promise<Project>`
|
|
101
|
+
|
|
102
|
+
### `api.management.storageBackends`
|
|
103
|
+
|
|
104
|
+
- `api.management.storageBackends.getStorageBackend(id: number, signal?: AbortSignal | undefined): Promise<{ id: number; host?: string | null | undefined; backend: string; region: string; owner: string; technicalOwner: string; username?: string | null | undefined; stats: { projectsCount?: number | undefined; bucketsCount?: number | undefined; dataSizeGB?: number | undefined; rowsCount?: number | undefined; }; created: string; creator: { id?: number | null | undefined; name?: string | null | undefined; }; warehouse?: string | null | undefined; database?: string | null | undefined; useSynapseManagedIdentity?: boolean | null | undefined; saml2Configuration?: { idpEntityId?: string | undefined; spEntityId?: string | undefined; spAcsUrl?: string | undefined; publicKey?: string | undefined; } | null | undefined; useDynamicBackends: boolean; useSso?: boolean | null | undefined; isSsoEnabled?: boolean | null | undefined; isSsoConfigured?: boolean | null | undefined; technicalOwnerContactEmails: string[]; }>`
|
|
105
|
+
|
|
106
|
+
### `api.management.users`
|
|
107
|
+
|
|
108
|
+
- `api.management.users.addUserAdminFeature({ feature, userIdOrMail }: AddUserFeatureBody & AddUserFeaturePath, signal?: AbortSignal | undefined): Promise<User>`
|
|
109
|
+
- `api.management.users.removeUserAdminFeature({ userIdOrMail, feature }: RemoveUserFeaturePath, signal?: AbortSignal | undefined): Promise<User>`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# `api.notifications` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.notifications.createSubscription(body: { event: string; expiresAt?: string | undefined; projectId: string; filters?: { field?: string | undefined; value?: string | number | boolean | undefined; }[] | undefined; recipient: { channel: "RecipientChannel_Email"; address: string; } | { channel: "RecipientChannel_Webhook"; url: string; }; }, signal?: AbortSignal | undefined): Promise<{ id?: string | undefined; } & { event: string; expiresAt?: string | undefined; projectId: string; filters?: { field?: string | undefined; value?: string | number | boolean | undefined; }[] | undefined; recipient: { channel: "RecipientChannel_Email"; address: string; } | { channel: "RecipientChannel_Webhook"; url: string; }; }>`
|
|
8
|
+
- `api.notifications.deleteSubscription(subscriptionId: number, signal?: AbortSignal | undefined): Promise<void>`
|
|
9
|
+
- `api.notifications.getSubscription(subscriptionId: number, signal?: AbortSignal | undefined): Promise<{ id?: string | undefined; } & { event: string; expiresAt?: string | undefined; projectId: string; filters?: { field?: string | undefined; value?: string | number | boolean | undefined; }[] | undefined; recipient: { channel: "RecipientChannel_Email"; address: string; } | { channel: "RecipientChannel_Webhook"; url: string; }; }>`
|
|
10
|
+
- `api.notifications.getSubscriptions(query?: { event?: string | undefined; } | undefined, signal?: AbortSignal | undefined): Promise<({ id?: string | undefined; } & { event: string; expiresAt?: string | undefined; projectId: string; filters?: { field?: string | undefined; value?: string | number | boolean | undefined; }[] | undefined; recipient: { channel: "RecipientChannel_Email"; address: string; } | { channel: "RecipientChannel_Webhook"; url: string; }; })[]>`
|
package/surface/oauth.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# `api.oauth` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.oauth.createCredential(componentId: string, body: CreateCredentialBody, signal?: AbortSignal | undefined): Promise<Credential>`
|
|
8
|
+
- `api.oauth.deleteCredential(componentId: string, id: string, signal?: AbortSignal | undefined): Promise<void>`
|
|
9
|
+
- `api.oauth.getCredential(componentId: string, id: string, signal?: AbortSignal | undefined): Promise<Credential>`
|
|
10
|
+
- `api.oauth.getCredentials(query?: GetCredentialsQuery | undefined, signal?: AbortSignal | undefined): Promise<Credential[]>`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# `api.queryService` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.queryService.cancelQueryJob(queryJobId: string): Promise<{ queryJobId: string; }>`
|
|
8
|
+
- `api.queryService.createQueryJob(branchId: string, workspaceId: string, body: { actorType?: "user" | "system" | undefined; refreshMetadataOnSuccess?: boolean | undefined; sessionId?: string | undefined; statements: string[]; timeout?: string | undefined; transactional: boolean; }): Promise<{ queryJobId: string; sessionId?: string | undefined; }>`
|
|
9
|
+
- `api.queryService.exportResults(queryJobId: string, statementId: string, query: { fileType: "csv" | "parquet"; gzip?: boolean | undefined; }, signal?: AbortSignal | undefined): Promise<ExportResultsResponse>`
|
|
10
|
+
- `api.queryService.getQueryHistory(branchId: string, workspaceId: string, query?: { afterId?: string | undefined; pageSize?: number | undefined; } | undefined): Promise<{ statements: { backendSize?: string | undefined; completedAt?: string | undefined; createdAt?: string | undefined; error?: string | undefined; executedAt?: string | undefined; id: string; numberOfRows?: number | undefined; query: string; queryId?: string | undefined; queryJobId: string; rowsAffected?: number | undefined; status: "waiting" | "processing" | "failed" | "canceled" | "completed" | "notExecuted"; warehouse?: string | undefined; }[]; }>`
|
|
11
|
+
- `api.queryService.getQueryJob(queryJobId: string): Promise<{ actorType: "user" | "system"; canceledAt?: string | undefined; cancellationReason?: string | undefined; changedAt: string; createdAt: string; expiration?: string | undefined; queryJobId: string; statements: { completedAt?: string | undefined; createdAt?: string | undefined; error?: string | undefined; executedAt?: string | undefined; id: string; numberOfRows?: number | undefined; query: string; queryId?: string | undefined; rowsAffected?: number | undefined; status: "waiting" | "processing" | "failed" | "canceled" | "completed" | "notExecuted"; }[]; status: "created" | "processing" | "failed" | "enqueued" | "canceled" | "completed"; }>`
|
|
12
|
+
- `api.queryService.getQueryResults(queryJobId: string, statementId: string, query?: { offset?: number | undefined; pageSize?: number | undefined; } | undefined): Promise<{ columns?: { length: number; name: string; nullable: boolean; type: string; }[] | undefined; data?: string[][] | undefined; message?: string | undefined; numberOfRows?: number | undefined; rowsAffected?: number | undefined; status: "waiting" | "processing" | "failed" | "canceled" | "completed" | "notExecuted"; }>`
|
package/surface/queue.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# `api.queue` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.queue.getJob(jobId: string, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "warning" | "success" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; }>`
|
|
8
|
+
- `api.queue.searchJobs(query?: { id?: string[] | undefined; runId?: string[] | undefined; branchId?: string[] | undefined; tokenId?: string[] | undefined; tokenDescription?: string[] | undefined; componentId?: string[] | undefined; component?: string[] | undefined; configId?: string[] | undefined; config?: string[] | undefined; configRowIds?: string[] | undefined; mode?: ("run" | "debug")[] | undefined; status?: ("error" | "warning" | "success" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled")[] | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; componentProps?: { type?: string | undefined; } | undefined; createdTimeFrom?: string | undefined; createdTimeTo?: string | undefined; startTimeFrom?: string | undefined; startTimeTo?: string | undefined; endTimeFrom?: string | undefined; endTimeTo?: string | undefined; durationSecondsFrom?: number | undefined; durationSecondsTo?: number | undefined; offset?: number | undefined; limit?: number | undefined; sortBy?: "status" | "branchId" | "runId" | "componentId" | "projectId" | "configId" | "id" | "createdTime" | "durationSeconds" | "startTime" | "endTime" | "tokenDescription" | "updatedTime" | undefined; sortOrder?: "asc" | "desc" | undefined; } | undefined, signal?: AbortSignal | undefined): Promise<{ id: string; runId: string; branchId?: string | undefined; project: { id: string; }; token: { id?: string | undefined; description?: string | undefined; }; status: "error" | "warning" | "success" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled"; desiredStatus?: "processing" | "terminating" | null | undefined; component: string; mode: "run" | "debug"; tag?: string | null | undefined; config?: string | null | undefined; configRow?: string | null | undefined; configData?: Record<string, never> | null | undefined; result?: { images?: { digests?: string[] | undefined; id?: string | undefined; }[] | undefined; configVersion?: number | undefined; message?: string | undefined; } | null | undefined; createdTime: string; startTime?: string | null | undefined; endTime?: string | null | undefined; delayedStartTime?: string | null | undefined; durationSeconds?: number | null | undefined; isFinished: boolean; url: string; variableValuesId?: string | null | undefined; variableValuesData?: { values?: { name?: string | undefined; value?: string | undefined; }[] | undefined; } | null | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | null | undefined; metrics?: { storage?: { inputTablesBytesSum?: number | undefined; outputTablesBytesSum?: number | undefined; } | undefined; backend?: { type?: string | undefined; containerType?: string | undefined; context?: string | undefined; } | undefined; } | null | undefined; type?: "standard" | "container" | "phaseContainer" | "orchestrationContainer" | "retryContainer" | undefined; orchestrationTaskId?: string | null | undefined; previousJobId?: string | null | undefined; onlyOrchestrationTaskIds?: string[] | null | undefined; }[]>`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# `api.scheduler` — `@keboola/api-client` surface
|
|
2
|
+
|
|
3
|
+
<!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
|
|
4
|
+
|
|
5
|
+
Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
6
|
+
|
|
7
|
+
- `api.scheduler.activateSchedule(body: { configurationId: string; configurationVersionId?: string | undefined; }, signal?: AbortSignal | undefined): Promise<{ id: string; tokenId: string; configurationId: string; configurationVersionId: string; schedule: { cronTab: string; timezone: string; state: "enabled" | "disabled"; }; target: { componentId: string; configurationId: string; mode: string; tag: string; }; executions: { jobId: string; executionTime: string; }[]; }>`
|
|
8
|
+
- `api.scheduler.deleteSchedule(scheduleId: string, signal?: AbortSignal | undefined): Promise<void>`
|
|
9
|
+
- `api.scheduler.deleteSchedulesForConfiguration(configurationId: string, signal?: AbortSignal | undefined): Promise<void>`
|
|
10
|
+
- `api.scheduler.getSchedule(scheduleId: string, signal?: AbortSignal | undefined): Promise<{ id: string; tokenId: string; configurationId: string; configurationVersionId: string; schedule: { cronTab: string; timezone: string; state: "enabled" | "disabled"; }; target: { componentId: string; configurationId: string; mode: string; tag: string; }; executions: { jobId: string; executionTime: string; }[]; }>`
|
|
11
|
+
- `api.scheduler.getSchedules(query?: { componentId?: string | undefined; configurationId?: string | undefined; } | undefined, signal?: AbortSignal | undefined): Promise<{ id: string; tokenId: string; configurationId: string; configurationVersionId: string; schedule: { cronTab: string; timezone: string; state: "enabled" | "disabled"; }; target: { componentId: string; configurationId: string; mode: string; tag: string; }; executions: { jobId: string; executionTime: string; }[]; }[]>`
|
|
12
|
+
- `api.scheduler.refreshScheduleToken(scheduleId: string, signal?: AbortSignal | undefined): Promise<void>`
|