@keboola/api-client 12.0.0 → 13.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 +25 -1
- package/dist/ai/index.d.cts +2 -2
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/types.d.cts +2 -2
- package/dist/ai/types.d.ts +2 -2
- package/dist/auth/index.cjs +13 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.cts +142 -0
- package/dist/auth/index.d.ts +142 -0
- package/dist/auth/index.js +4 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/types.cjs +4 -0
- package/dist/auth/types.cjs.map +1 -0
- package/dist/auth/types.d.cts +2 -0
- package/dist/auth/types.d.ts +2 -0
- package/dist/auth/types.js +3 -0
- package/dist/auth/types.js.map +1 -0
- package/dist/chat/index.d.cts +7 -2
- package/dist/chat/index.d.ts +7 -2
- package/dist/chat/types.d.cts +2 -2
- package/dist/chat/types.d.ts +2 -2
- package/dist/chunk-I3VK6VQT.js +113 -0
- package/dist/chunk-I3VK6VQT.js.map +1 -0
- package/dist/chunk-IL5MYBXL.cjs +115 -0
- package/dist/chunk-IL5MYBXL.cjs.map +1 -0
- package/dist/{createOpenapiFetchClient-CKNLT4ND.d.cts → createOpenapiFetchClient-DIsEiRUz.d.cts} +1 -1
- package/dist/{createOpenapiFetchClient-B50N1zkV.d.ts → createOpenapiFetchClient-Oi-KX-f-.d.ts} +1 -1
- package/dist/dataScience/index.d.cts +3 -3
- package/dist/dataScience/index.d.ts +3 -3
- package/dist/dataScience/types.d.cts +2 -2
- package/dist/dataScience/types.d.ts +2 -2
- package/dist/domain/permissions/index.d.cts +3 -3
- package/dist/domain/permissions/index.d.ts +3 -3
- package/dist/editor/index.d.cts +2 -2
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/types.d.cts +2 -2
- package/dist/editor/types.d.ts +2 -2
- package/dist/encryption/index.d.cts +2 -2
- package/dist/encryption/index.d.ts +2 -2
- package/dist/encryption/types.d.cts +2 -2
- package/dist/encryption/types.d.ts +2 -2
- package/dist/index.cjs +20 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +200 -60
- package/dist/index.d.ts +200 -60
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/dist/management/index.d.cts +2 -2
- package/dist/management/index.d.ts +2 -2
- package/dist/metastore/index.d.cts +3 -3
- package/dist/metastore/index.d.ts +3 -3
- package/dist/metastore/types.d.cts +2 -2
- package/dist/metastore/types.d.ts +2 -2
- package/dist/notifications/index.d.cts +2 -2
- package/dist/notifications/index.d.ts +2 -2
- package/dist/notifications/types.d.cts +2 -2
- package/dist/notifications/types.d.ts +2 -2
- package/dist/{project-BxSa1Ci9.d.ts → project-D9FCXphc.d.ts} +1 -1
- package/dist/{project-NJuUPx8-.d.cts → project-DWdvh1ev.d.cts} +1 -1
- package/dist/queryService/index.d.cts +2 -2
- package/dist/queryService/index.d.ts +2 -2
- package/dist/queryService/types.d.cts +2 -2
- package/dist/queryService/types.d.ts +2 -2
- package/dist/queue/index.d.cts +2 -2
- package/dist/queue/index.d.ts +2 -2
- package/dist/queue/types.d.cts +2 -2
- package/dist/queue/types.d.ts +2 -2
- package/dist/scheduler/index.d.cts +1 -1
- package/dist/scheduler/index.d.ts +1 -1
- package/dist/scheduler/types.d.cts +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/sdk/configurations/index.d.cts +5 -5
- package/dist/sdk/configurations/index.d.ts +5 -5
- package/dist/sdk/storage/index.d.cts +5 -5
- package/dist/sdk/storage/index.d.ts +5 -5
- package/dist/sdk/tag/index.d.cts +3 -3
- package/dist/sdk/tag/index.d.ts +3 -3
- package/dist/sdk/tag/types.d.cts +3 -3
- package/dist/sdk/tag/types.d.ts +3 -3
- package/dist/sdk/vault/index.d.cts +3 -3
- package/dist/sdk/vault/index.d.ts +3 -3
- package/dist/storage/index.d.cts +4 -4
- package/dist/storage/index.d.ts +4 -4
- package/dist/storage/types.d.cts +5 -5
- package/dist/storage/types.d.ts +5 -5
- package/dist/{storageClient-Bk4H2HIw.d.ts → storageClient-Bm2xAtWJ.d.ts} +26 -26
- package/dist/{storageClient-CB4U57Pr.d.cts → storageClient-CeLEkQNI.d.cts} +26 -26
- package/dist/{storageSdk-BDrsuMDA.d.ts → storageSdk-CBM85gUk.d.cts} +20 -20
- package/dist/{storageSdk-wn97Zloc.d.cts → storageSdk-Db1TowTM.d.ts} +20 -20
- package/dist/stream/index.d.cts +2 -2
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/types.d.cts +2 -2
- package/dist/stream/types.d.ts +2 -2
- package/dist/syncActions/index.d.cts +2 -2
- package/dist/syncActions/index.d.ts +2 -2
- package/dist/syncActions/types.d.cts +1 -1
- package/dist/syncActions/types.d.ts +1 -1
- package/dist/{types-yKV1EX6f.d.ts → types-5hVwJbZy.d.ts} +1 -1
- package/dist/{types-DTkxk0fW.d.cts → types-BMHNYi_B.d.cts} +1 -1
- package/dist/{types-CWebeQXy.d.cts → types-BavhR4tO.d.cts} +1 -1
- package/dist/{types-D9cNOf-3.d.cts → types-BiylbcWm.d.cts} +1 -1
- package/dist/types-BsA3W6Mo.d.cts +1786 -0
- package/dist/{types-DsqDUWJn.d.cts → types-BsIu3NSe.d.cts} +1 -1
- package/dist/types-CBYDpcI1.d.ts +1786 -0
- package/dist/{types-BVldT2vs.d.cts → types-CD0r-1MV.d.cts} +1 -1
- package/dist/{types-CvHPHNH0.d.cts → types-CaoEwPpD.d.cts} +1 -1
- package/dist/{types-BxjcUj-y.d.cts → types-Coaofyh9.d.cts} +1 -1
- package/dist/{types-GmAeMsok.d.ts → types-Ct6wJf9k.d.ts} +1 -1
- package/dist/{types-CS8MYc2k.d.ts → types-CyQJ4AXd.d.ts} +1 -1
- package/dist/{types-DFWnAftN.d.cts → types-DHA8WCNr.d.ts} +1 -1
- package/dist/{types-D64zThBJ.d.ts → types-DLUrR6Xu.d.ts} +1 -1
- package/dist/{types-CFd7q2ed.d.ts → types-DLWBh7iV.d.ts} +1 -1
- package/dist/{types-CMEwVQ78.d.cts → types-DclddzzB.d.cts} +1 -1
- package/dist/{types-Bc-H4gfv.d.cts → types-QLM97gSa.d.cts} +7 -1
- package/dist/{types-JvKRS8Qd.d.ts → types-R6KVJSvx.d.ts} +7 -1
- package/dist/{types-D3Kkh6yW.d.ts → types-_uKmxlZr.d.ts} +1 -1
- package/dist/{types-jKnx7Tm_.d.cts → types-auVqO7UT.d.cts} +1 -1
- package/dist/{types-jKnx7Tm_.d.ts → types-auVqO7UT.d.ts} +1 -1
- package/dist/{types-Dv3vN7M9.d.ts → types-kPz1WIPX.d.cts} +1 -1
- package/dist/{types-Mghz1gMD.d.ts → types-njJEULW3.d.ts} +1 -1
- package/dist/{types-DacFMc6L.d.ts → types-rgoWljL8.d.ts} +1 -1
- package/dist/{utils-Cl4emy8g.d.ts → utils-BcMjZotB.d.ts} +1 -1
- package/dist/{utils-JsCYFmHj.d.cts → utils-IEMDjlU4.d.cts} +1 -1
- package/dist/vault/index.d.cts +1 -1
- package/dist/vault/index.d.ts +1 -1
- package/dist/vault/types.d.cts +1 -1
- package/dist/vault/types.d.ts +1 -1
- package/dist/verify/index.d.cts +2 -2
- package/dist/verify/index.d.ts +2 -2
- package/package.json +30 -4
- package/surface/auth.md +27 -0
- package/surface/chat.md +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as OpenapiQueryType, c as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-auVqO7UT.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as OpenapiPathType, d as OpenapiQueryType, a as OpenapiReturnType } from './types-auVqO7UT.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as OpenapiQueryType, c as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-auVqO7UT.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as OpenapiQueryType, b as OpenapiBodyType, a as OpenapiReturnType, A as ArrayElement } from './types-auVqO7UT.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createEncryptionClient } from './encryption/index.js';
|
|
2
|
-
import { P as ProjectId } from './types-
|
|
2
|
+
import { P as ProjectId } from './types-Ct6wJf9k.js';
|
|
3
3
|
import { createVaultClient } from './vault/index.js';
|
|
4
4
|
|
|
5
5
|
type VaultClient = ReturnType<typeof createVaultClient>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as OpenapiBodyType,
|
|
1
|
+
import { b as OpenapiBodyType, c as OpenapiPathType, d as OpenapiQueryType, a as OpenapiReturnType } from './types-auVqO7UT.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { d as OpenapiQueryType, c as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-auVqO7UT.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1256,6 +1256,12 @@ type components = {
|
|
|
1256
1256
|
visibility: 'public' | 'private';
|
|
1257
1257
|
/** @description Keboola branch ID that the chat operates in */
|
|
1258
1258
|
branchId?: number | null;
|
|
1259
|
+
/** @description Latest context-window fill for this conversation (persisted at turn-end), for rehydrating the usage indicator on load. Null until the first turn. */
|
|
1260
|
+
contextWindow?: {
|
|
1261
|
+
usedTokens: number;
|
|
1262
|
+
maxTokens: number;
|
|
1263
|
+
percentage: number;
|
|
1264
|
+
} | null;
|
|
1259
1265
|
messages: components['schemas']['Message'][];
|
|
1260
1266
|
};
|
|
1261
1267
|
/** @description Streamed as an error event when the conversation is too long and compaction has been triggered. The client should poll the original chat for a compactedTo metadata message to discover the new chat ID. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { d as OpenapiQueryType, c as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-auVqO7UT.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1256,6 +1256,12 @@ type components = {
|
|
|
1256
1256
|
visibility: 'public' | 'private';
|
|
1257
1257
|
/** @description Keboola branch ID that the chat operates in */
|
|
1258
1258
|
branchId?: number | null;
|
|
1259
|
+
/** @description Latest context-window fill for this conversation (persisted at turn-end), for rehydrating the usage indicator on load. Null until the first turn. */
|
|
1260
|
+
contextWindow?: {
|
|
1261
|
+
usedTokens: number;
|
|
1262
|
+
maxTokens: number;
|
|
1263
|
+
percentage: number;
|
|
1264
|
+
} | null;
|
|
1259
1265
|
messages: components['schemas']['Message'][];
|
|
1260
1266
|
};
|
|
1261
1267
|
/** @description Streamed as an error event when the conversation is too long and compaction has been triggered. The client should poll the original chat for a compactedTo metadata message to discover the new chat ID. */
|
|
@@ -61,4 +61,4 @@ type OpenapiSuccessType<T> = 200 extends keyof T ? T[200] : 201 extends keyof T
|
|
|
61
61
|
type OpenapiReturnType<OP> = OpenapiSuccessType<OpenapiResponseTypes<OP>>;
|
|
62
62
|
type ArrayElement<T> = T extends (infer U)[] ? U : never;
|
|
63
63
|
|
|
64
|
-
export type { ArrayElement as A, OpenapiParametersType as O, OpenapiReturnType as a, OpenapiBodyType as b,
|
|
64
|
+
export type { ArrayElement as A, OpenapiParametersType as O, OpenapiReturnType as a, OpenapiBodyType as b, OpenapiPathType as c, OpenapiQueryType as d };
|
|
@@ -61,4 +61,4 @@ type OpenapiSuccessType<T> = 200 extends keyof T ? T[200] : 201 extends keyof T
|
|
|
61
61
|
type OpenapiReturnType<OP> = OpenapiSuccessType<OpenapiResponseTypes<OP>>;
|
|
62
62
|
type ArrayElement<T> = T extends (infer U)[] ? U : never;
|
|
63
63
|
|
|
64
|
-
export type { ArrayElement as A, OpenapiParametersType as O, OpenapiReturnType as a, OpenapiBodyType as b,
|
|
64
|
+
export type { ArrayElement as A, OpenapiParametersType as O, OpenapiReturnType as a, OpenapiBodyType as b, OpenapiPathType as c, OpenapiQueryType as d };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as OpenapiQueryType, b as OpenapiBodyType, a as OpenapiReturnType, A as ArrayElement } from './types-auVqO7UT.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OpenapiReturnType,
|
|
1
|
+
import { a as OpenapiReturnType, c as OpenapiPathType, b as OpenapiBodyType } from './types-auVqO7UT.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as OpenapiPathType, d as OpenapiQueryType, a as OpenapiReturnType } from './types-auVqO7UT.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as OpenapiPathType, d as OpenapiQueryType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-auVqO7UT.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as OpenapiPathType, d as OpenapiQueryType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-auVqO7UT.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
package/dist/vault/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ClientInitOptions } from '../types-BLJoO6YL.cjs';
|
|
2
2
|
import { CreateVariableBody, DeleteVariablePath, VariableWithHash, GetVariablesQuery, GetVariablesByBranchId } from './types.cjs';
|
|
3
3
|
import 'qs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-auVqO7UT.cjs';
|
|
5
5
|
|
|
6
6
|
declare const createVaultClient: ({ baseUrl, middlewares, token }: ClientInitOptions) => {
|
|
7
7
|
createVariable: (body: CreateVariableBody, signal?: AbortSignal) => Promise<{
|
package/dist/vault/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ClientInitOptions } from '../types-BLJoO6YL.js';
|
|
2
2
|
import { CreateVariableBody, DeleteVariablePath, VariableWithHash, GetVariablesQuery, GetVariablesByBranchId } from './types.js';
|
|
3
3
|
import 'qs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-auVqO7UT.js';
|
|
5
5
|
|
|
6
6
|
declare const createVaultClient: ({ baseUrl, middlewares, token }: ClientInitOptions) => {
|
|
7
7
|
createVariable: (body: CreateVariableBody, signal?: AbortSignal) => Promise<{
|
package/dist/vault/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as OpenapiBodyType, A as ArrayElement, a as OpenapiReturnType,
|
|
1
|
+
import { b as OpenapiBodyType, A as ArrayElement, a as OpenapiReturnType, c as OpenapiPathType, d as OpenapiQueryType } from '../types-auVqO7UT.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
package/dist/vault/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as OpenapiBodyType, A as ArrayElement, a as OpenapiReturnType,
|
|
1
|
+
import { b as OpenapiBodyType, A as ArrayElement, a as OpenapiReturnType, c as OpenapiPathType, d as OpenapiQueryType } from '../types-auVqO7UT.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
package/dist/verify/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as StorageToken } from '../types-
|
|
1
|
+
import { S as StorageToken } from '../types-DclddzzB.cjs';
|
|
2
2
|
import { ManagementToken } from './types.cjs';
|
|
3
3
|
import '../backends-BgUzAQul.cjs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-auVqO7UT.cjs';
|
|
5
5
|
|
|
6
6
|
declare const createVerifyClient: () => {
|
|
7
7
|
storageApiToken: (host: string, token: string, signal?: AbortSignal) => Promise<StorageToken>;
|
package/dist/verify/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as StorageToken } from '../types-
|
|
1
|
+
import { S as StorageToken } from '../types-Ct6wJf9k.js';
|
|
2
2
|
import { ManagementToken } from './types.js';
|
|
3
3
|
import '../backends-BgUzAQul.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-auVqO7UT.js';
|
|
5
5
|
|
|
6
6
|
declare const createVerifyClient: () => {
|
|
7
7
|
storageApiToken: (host: string, token: string, signal?: AbortSignal) => Promise<StorageToken>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keboola/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "TypeScript SDK for Keboola APIs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,6 +27,12 @@
|
|
|
27
27
|
"assets/types": [
|
|
28
28
|
"./dist/assets/types.d.ts"
|
|
29
29
|
],
|
|
30
|
+
"auth": [
|
|
31
|
+
"./dist/auth/index.d.ts"
|
|
32
|
+
],
|
|
33
|
+
"auth/types": [
|
|
34
|
+
"./dist/auth/types.d.ts"
|
|
35
|
+
],
|
|
30
36
|
"chat": [
|
|
31
37
|
"./dist/chat/index.d.ts"
|
|
32
38
|
],
|
|
@@ -242,6 +248,26 @@
|
|
|
242
248
|
"default": "./dist/assets/types.cjs"
|
|
243
249
|
}
|
|
244
250
|
},
|
|
251
|
+
"./auth": {
|
|
252
|
+
"import": {
|
|
253
|
+
"types": "./dist/auth/index.d.ts",
|
|
254
|
+
"default": "./dist/auth/index.js"
|
|
255
|
+
},
|
|
256
|
+
"require": {
|
|
257
|
+
"types": "./dist/auth/index.d.cts",
|
|
258
|
+
"default": "./dist/auth/index.cjs"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"./auth/types": {
|
|
262
|
+
"import": {
|
|
263
|
+
"types": "./dist/auth/types.d.ts",
|
|
264
|
+
"default": "./dist/auth/types.js"
|
|
265
|
+
},
|
|
266
|
+
"require": {
|
|
267
|
+
"types": "./dist/auth/types.d.cts",
|
|
268
|
+
"default": "./dist/auth/types.cjs"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
245
271
|
"./chat": {
|
|
246
272
|
"import": {
|
|
247
273
|
"types": "./dist/chat/index.d.ts",
|
|
@@ -715,14 +741,14 @@
|
|
|
715
741
|
"esbuild": "^0.28.1",
|
|
716
742
|
"msw": "^2.14.6",
|
|
717
743
|
"openapi-typescript": "7.10.1",
|
|
718
|
-
"oxfmt": "^0.
|
|
719
|
-
"oxlint": "^1.
|
|
744
|
+
"oxfmt": "^0.57.0",
|
|
745
|
+
"oxlint": "^1.72.0",
|
|
720
746
|
"tsup": "^8.5.1",
|
|
721
747
|
"typescript": "^6.0.3",
|
|
722
748
|
"vite": "^8.0.16",
|
|
723
749
|
"vitest": "^4.1.8",
|
|
724
750
|
"yaml": "^2.8.3",
|
|
725
|
-
"@keboola/oxlint-config": "^2.0.
|
|
751
|
+
"@keboola/oxlint-config": "^2.0.1",
|
|
726
752
|
"@keboola/tsconfig": "^0.1.2"
|
|
727
753
|
},
|
|
728
754
|
"scripts": {
|
package/surface/auth.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# `api.auth` — `@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.auth.approveDeviceAuthorization(body: { userCode: string; decision: "approve" | "deny"; }, signal?: AbortSignal | undefined): Promise<{ status: "approved" | "denied"; idempotent: boolean; decision: "approve" | "deny"; }>`
|
|
8
|
+
- `api.auth.assertSaml(body: { samlResponse: string; requestHandle: string; customerSlug: string | null; }, signal?: AbortSignal | undefined): Promise<{ accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; } | { mfaRequired: boolean; mfaType: string; mfaToken: string; expiresIn: number; allowedMethods: string[]; webauthn: Record<string, never> | null; }>`
|
|
9
|
+
- `api.auth.createDeviceAuthorization(body: { clientId: string; scope: { credentialType?: "session" | undefined; }; requestedCredentialType: string; }, signal?: AbortSignal | undefined): Promise<{ deviceCode: string; userCode: string; verificationUri: string; verificationUriComplete: string; expiresIn: number; interval: number; }>`
|
|
10
|
+
- `api.auth.createPat(body: { name: string; expiresIn: number | null; scope: { projects: string[] | null; readOnly: boolean | null; } | null; }, signal?: AbortSignal | undefined): Promise<{ accessToken: string; tokenType: string; expiresIn: number; pat: { id: string; name: string; scope: Record<string, never>; projects: { id: number; name: string | null; role: string | null; }[]; readOnly: boolean; parentTokenId?: string | null | undefined; parentTokenType?: "session" | "pat" | null | undefined; expiresAt: string; lastUsedAt?: string | null | undefined; createdAt: string; }; }>`
|
|
11
|
+
- `api.auth.createSudoChallenge(signal?: AbortSignal | undefined): Promise<{ challengeToken: string; options: Record<string, never>; expiresIn: number; }>`
|
|
12
|
+
- `api.auth.exchangePat(body?: { expiresIn: number | null; scope: { projects: string[] | null; readOnly: boolean | null; } | null; } | undefined, signal?: AbortSignal | undefined): Promise<{ accessToken: string; tokenType: string; expiresIn: number; scope: Record<string, never>; readOnly: boolean; parentTokenId: string; parentTokenType: "session" | "pat"; expiresAt: string; pat: { id: string; name: string; scope: Record<string, never>; projects: { id: number; name: string | null; role: string | null; }[]; readOnly: boolean; parentTokenId?: string | null | undefined; parentTokenType?: "session" | "pat" | null | undefined; expiresAt: string; lastUsedAt?: string | null | undefined; createdAt: string; }; }>`
|
|
13
|
+
- `api.auth.getDeviceAuthorizationToken(body: { clientId: string; deviceCode: string; }, signal?: AbortSignal | undefined): Promise<{ accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; }>`
|
|
14
|
+
- `api.auth.getPkceToken(body: { clientId: string; code: string; redirectUri: string; state: string; codeVerifier: string; }, signal?: AbortSignal | undefined): Promise<{ accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; }>`
|
|
15
|
+
- `api.auth.initiateSaml(body?: { customerSlug: string | null; } | undefined, signal?: AbortSignal | undefined): Promise<{ ssoUrl: string; requestHandle: string; expiresIn: number; }>`
|
|
16
|
+
- `api.auth.introspectToken(signal?: AbortSignal | undefined): Promise<{ sessionId: string; user: { id: number; email: string; name: string; }; grantType: string; sudoVerified: boolean; createdAt: string; expiresAt: string; lastUsedAt?: string | null | undefined; lastUsedIp?: string | null | undefined; userAgent?: string | null | undefined; projects: { id: number; name: string | null; role: string | null; }[]; }>`
|
|
17
|
+
- `api.auth.listPats(signal?: AbortSignal | undefined): Promise<{ items: { id: string; name: string; scope: Record<string, never>; projects: { id: number; name: string | null; role: string | null; }[]; readOnly: boolean; parentTokenId?: string | null | undefined; parentTokenType?: "session" | "pat" | null | undefined; expiresAt: string; lastUsedAt?: string | null | undefined; createdAt: string; }[]; }>`
|
|
18
|
+
- `api.auth.listSessions(signal?: AbortSignal | undefined): Promise<{ sessions?: { id: string; grantType: string; createdAt: string; lastUsedAt?: string | null | undefined; lastUsedIp?: string | null | undefined; userAgent?: string | null | undefined; accessTokenExpiresAt: string; refreshTokenExpiresAt: string; isCurrent: boolean; }[] | undefined; }>`
|
|
19
|
+
- `api.auth.login(body: { grantType: "password" | "google" | "microsoft"; email: string | null; password: string | null; idToken: string | null; }, signal?: AbortSignal | undefined): Promise<{ accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; } | { mfaRequired: boolean; mfaType: string; mfaToken: string; expiresIn: number; allowedMethods: string[]; webauthn: Record<string, never> | null; }>`
|
|
20
|
+
- `api.auth.refreshToken(body: { refreshToken: string; }, signal?: AbortSignal | undefined): Promise<{ accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; }>`
|
|
21
|
+
- `api.auth.regenerateRecoveryCodes(signal?: AbortSignal | undefined): Promise<{ codes: string[]; }>`
|
|
22
|
+
- `api.auth.revokeAllSessions(signal?: AbortSignal | undefined): Promise<void>`
|
|
23
|
+
- `api.auth.revokePat(id: string, signal?: AbortSignal | undefined): Promise<void>`
|
|
24
|
+
- `api.auth.revokeSession(sessionId: string, signal?: AbortSignal | undefined): Promise<void>`
|
|
25
|
+
- `api.auth.revokeToken(body: { token: string; tokenTypeHint: "accessToken" | "refreshToken" | null; }, signal?: AbortSignal | undefined): Promise<void>`
|
|
26
|
+
- `api.auth.sudo(body: { totpCode: string | null; recoveryCode: string | null; webauthnAssertion: string | null; challengeToken: string | null; type: string; }, signal?: AbortSignal | undefined): Promise<{ sudoVerified: boolean; sudoExpiresAt: string; sudoTimeoutSeconds: number; }>`
|
|
27
|
+
- `api.auth.verifyMfa(body: { mfaToken: string; type: "totp" | "recovery_code" | "webauthn"; code: string | null; assertion: string | null; }, signal?: AbortSignal | undefined): Promise<{ accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; }>`
|
package/surface/chat.md
CHANGED
|
@@ -7,7 +7,7 @@ Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
|
7
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
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
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; }[]; }>`
|
|
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; contextWindow?: { usedTokens: number; maxTokens: number; percentage: 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
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
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
13
|
- `api.chat.getToolsList(signal?: AbortSignal | undefined): Promise<{ tools: { name: string; description: string; readOnly: boolean; }[]; }>`
|