@keboola/api-client 0.1.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +18 -1
  2. package/dist/ai/index.cjs +7 -1
  3. package/dist/ai/index.cjs.map +1 -1
  4. package/dist/ai/index.js +7 -1
  5. package/dist/ai/index.js.map +1 -1
  6. package/dist/assets/index.cjs +7 -1
  7. package/dist/assets/index.cjs.map +1 -1
  8. package/dist/assets/index.js +7 -1
  9. package/dist/assets/index.js.map +1 -1
  10. package/dist/chat/index.cjs +3 -1
  11. package/dist/chat/index.cjs.map +1 -1
  12. package/dist/chat/index.d.cts +1 -1
  13. package/dist/chat/index.d.ts +1 -1
  14. package/dist/chat/index.js +3 -1
  15. package/dist/chat/index.js.map +1 -1
  16. package/dist/chat/types.d.cts +1 -1
  17. package/dist/chat/types.d.ts +1 -1
  18. package/dist/constants/index.cjs +145 -0
  19. package/dist/constants/index.cjs.map +1 -0
  20. package/dist/constants/index.d.cts +28 -0
  21. package/dist/constants/index.d.ts +28 -0
  22. package/dist/constants/index.js +142 -0
  23. package/dist/constants/index.js.map +1 -0
  24. package/dist/dataScience/index.cjs +7 -2
  25. package/dist/dataScience/index.cjs.map +1 -1
  26. package/dist/dataScience/index.js +7 -2
  27. package/dist/dataScience/index.js.map +1 -1
  28. package/dist/domain/permissions/index.cjs +13 -0
  29. package/dist/domain/permissions/index.cjs.map +1 -0
  30. package/dist/domain/permissions/index.d.cts +5 -0
  31. package/dist/domain/permissions/index.d.ts +5 -0
  32. package/dist/domain/permissions/index.js +11 -0
  33. package/dist/domain/permissions/index.js.map +1 -0
  34. package/dist/editor/index.cjs +7 -10
  35. package/dist/editor/index.cjs.map +1 -1
  36. package/dist/editor/index.d.cts +11 -19
  37. package/dist/editor/index.d.ts +11 -19
  38. package/dist/editor/index.js +7 -10
  39. package/dist/editor/index.js.map +1 -1
  40. package/dist/editor/types.d.cts +1 -1
  41. package/dist/editor/types.d.ts +1 -1
  42. package/dist/encryption/index.cjs +7 -1
  43. package/dist/encryption/index.cjs.map +1 -1
  44. package/dist/encryption/index.js +7 -1
  45. package/dist/encryption/index.js.map +1 -1
  46. package/dist/import/index.cjs +7 -1
  47. package/dist/import/index.cjs.map +1 -1
  48. package/dist/import/index.js +7 -1
  49. package/dist/import/index.js.map +1 -1
  50. package/dist/index.cjs +308 -42
  51. package/dist/index.cjs.map +1 -1
  52. package/dist/index.d.cts +1085 -122
  53. package/dist/index.d.ts +1085 -122
  54. package/dist/index.js +308 -42
  55. package/dist/index.js.map +1 -1
  56. package/dist/management/index.cjs +40 -23
  57. package/dist/management/index.cjs.map +1 -1
  58. package/dist/management/index.d.cts +59 -23
  59. package/dist/management/index.d.ts +59 -23
  60. package/dist/management/index.js +40 -23
  61. package/dist/management/index.js.map +1 -1
  62. package/dist/management/types.d.cts +2 -2
  63. package/dist/management/types.d.ts +2 -2
  64. package/dist/metastore/index.cjs +7 -1
  65. package/dist/metastore/index.cjs.map +1 -1
  66. package/dist/metastore/index.js +7 -1
  67. package/dist/metastore/index.js.map +1 -1
  68. package/dist/oauth/index.cjs +234 -0
  69. package/dist/oauth/index.cjs.map +1 -0
  70. package/dist/oauth/index.d.cts +12 -0
  71. package/dist/oauth/index.d.ts +12 -0
  72. package/dist/oauth/index.js +228 -0
  73. package/dist/oauth/index.js.map +1 -0
  74. package/dist/oauth/types.cjs +4 -0
  75. package/dist/oauth/types.cjs.map +1 -0
  76. package/dist/oauth/types.d.cts +34 -0
  77. package/dist/oauth/types.d.ts +34 -0
  78. package/dist/oauth/types.js +3 -0
  79. package/dist/oauth/types.js.map +1 -0
  80. package/dist/queryService/index.cjs +7 -1
  81. package/dist/queryService/index.cjs.map +1 -1
  82. package/dist/queryService/index.js +7 -1
  83. package/dist/queryService/index.js.map +1 -1
  84. package/dist/queue/index.cjs +7 -1
  85. package/dist/queue/index.cjs.map +1 -1
  86. package/dist/queue/index.js +7 -1
  87. package/dist/queue/index.js.map +1 -1
  88. package/dist/sdk/configurations/index.cjs +14 -0
  89. package/dist/sdk/configurations/index.cjs.map +1 -0
  90. package/dist/sdk/configurations/index.d.cts +24 -0
  91. package/dist/sdk/configurations/index.d.ts +24 -0
  92. package/dist/sdk/configurations/index.js +11 -0
  93. package/dist/sdk/configurations/index.js.map +1 -0
  94. package/dist/sdk/storage/index.cjs +179 -1
  95. package/dist/sdk/storage/index.cjs.map +1 -1
  96. package/dist/sdk/storage/index.d.cts +118 -13
  97. package/dist/sdk/storage/index.d.ts +118 -13
  98. package/dist/sdk/storage/index.js +169 -2
  99. package/dist/sdk/storage/index.js.map +1 -1
  100. package/dist/status/index.cjs +7 -1
  101. package/dist/status/index.cjs.map +1 -1
  102. package/dist/status/index.js +7 -1
  103. package/dist/status/index.js.map +1 -1
  104. package/dist/storage/index.cjs +107 -9
  105. package/dist/storage/index.cjs.map +1 -1
  106. package/dist/storage/index.d.cts +1 -1
  107. package/dist/storage/index.d.ts +1 -1
  108. package/dist/storage/index.js +107 -9
  109. package/dist/storage/index.js.map +1 -1
  110. package/dist/storage/types.d.cts +2977 -1306
  111. package/dist/storage/types.d.ts +2977 -1306
  112. package/dist/{storageClient-DPLh_p0V.d.cts → storageClient-DSLTM3Cr.d.cts} +20 -1
  113. package/dist/{storageClient-YVWer22Y.d.ts → storageClient-DrYOs4Xm.d.ts} +20 -1
  114. package/dist/storageSdk-BBqAo0Vx.d.cts +143 -0
  115. package/dist/storageSdk-ZVmKQQSl.d.ts +143 -0
  116. package/dist/syncActions/index.cjs +7 -1
  117. package/dist/syncActions/index.cjs.map +1 -1
  118. package/dist/syncActions/index.js +7 -1
  119. package/dist/syncActions/index.js.map +1 -1
  120. package/dist/telemetry/index.cjs +7 -1
  121. package/dist/telemetry/index.cjs.map +1 -1
  122. package/dist/telemetry/index.js +7 -1
  123. package/dist/telemetry/index.js.map +1 -1
  124. package/dist/{types-B7k8S4ki.d.ts → types-B--u7l2H.d.ts} +33 -118
  125. package/dist/{types-BeShtGlc.d.cts → types-BTcT8Q0T.d.cts} +15 -1
  126. package/dist/{types-BeShtGlc.d.ts → types-BTcT8Q0T.d.ts} +15 -1
  127. package/dist/{types-BNQK_jR_.d.cts → types-C0Owx2P7.d.cts} +33 -118
  128. package/dist/{types-DJ6nbNq5.d.cts → types-CNkgmuhe.d.cts} +1 -1
  129. package/dist/{types-BjrNNn5I.d.ts → types-DzwzVgyG.d.ts} +1 -1
  130. package/dist/vault/index.cjs +3 -1
  131. package/dist/vault/index.cjs.map +1 -1
  132. package/dist/vault/index.js +3 -1
  133. package/dist/vault/index.js.map +1 -1
  134. package/dist/verify/index.cjs +3 -1
  135. package/dist/verify/index.cjs.map +1 -1
  136. package/dist/verify/index.js +3 -1
  137. package/dist/verify/index.js.map +1 -1
  138. package/package.json +71 -5
package/dist/index.d.cts CHANGED
@@ -1,27 +1,28 @@
1
- import { G as GetAllFeaturesQuery, F as Feature, c as components$5, C as CreateMaintainerBody, U as UpdateMaintainerBody, M as MaintainerUser, A as AddMaintainerUserBody, a as CreateMaintainerInvitationBody, b as CreateMaintainerOrganizationBody, d as MetadataItem, S as SetMaintainerMetadataBody, e as UpdateOrganizationBody, f as AddOrganizationUserBody, g as CreateOrganizationInvitationBody, P as Project, h as CreateOrganizationProjectBody, i as SetOrganizationMetadataBody, j as GetProjectPath, k as CreateProjectFeaturePath, l as CreateProjectFeatureBody, R as RemoveProjectFeaturePath, m as User, L as ListProjectUsersPath, n as GetProjectMetadataPath, o as ProjectMetadataItem, p as SetProjectMetadataPath, q as SetProjectMetadataBody, r as GetProjectReviewersPath, s as Reviewer, t as SetProjectReviewersPath, u as SetProjectReviewersBody, v as AddUserFeatureBody, w as AddUserFeaturePath, x as RemoveUserFeaturePath } from './types-BeShtGlc.cjs';
1
+ import { G as GetAllFeaturesQuery, F as Feature, c as components$5, C as CreateMaintainerBody, U as UpdateMaintainerBody, M as MaintainerUser, A as AddMaintainerUserBody, a as CreateMaintainerInvitationBody, b as CreateMaintainerOrganizationBody, d as MetadataItem, S as SetMaintainerMetadataBody, O as OrganizationDetail, e as UpdateOrganizationBody, f as AddOrganizationUserBody, g as CreateOrganizationInvitationBody, P as Project, h as CreateOrganizationProjectBody, i as SetOrganizationMetadataBody, j as GetProjectPath, k as CreateProjectFeaturePath, l as CreateProjectFeatureBody, R as RemoveProjectFeaturePath, m as User, L as ListProjectUsersPath, n as GetProjectMetadataPath, o as ProjectMetadataItem, p as SetProjectMetadataPath, q as SetProjectMetadataBody, r as GetProjectReviewersPath, s as Reviewer, t as SetProjectReviewersPath, u as SetProjectReviewersBody, v as AddUserFeatureBody, w as AddUserFeaturePath, x as RemoveUserFeaturePath } from './types-BTcT8Q0T.cjs';
2
2
  import { M as MiddlewareFn, B as BaseClientOptions, A as ApiResponse, H as HttpMethod } from './types-DgaMV8FF.cjs';
3
3
  export { c as ApiError, d as CreateCallbackMiddlewareOptions, e as FetchClientError, i as isAbortError, f as isApiError, g as isFetchClientError } from './types-DgaMV8FF.cjs';
4
4
  import { StatusSummary } from './status/types.cjs';
5
5
  import { Post } from './assets/types.cjs';
6
+ import { GetCredentialsQuery, Credential, CreateCredentialBody } from './oauth/types.cjs';
6
7
  import * as zod from 'zod';
7
8
  import { c as OpenapiQueryType, d as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-C7mpAfq-.cjs';
8
9
  import { U as UploadFileParams, a as UploadedFile } from './types-Dg1tEsVR.cjs';
9
10
  import { D as DescribeConfigurationVersionBody, a as DescribeConfigurationMergeBody, E as ExplainErrorBody, b as DescribeConfigurationBody, S as SuggestComponentBody, c as components$4, F as FeedbackBody } from './types-Dws8mFNY.cjs';
10
11
  import { SuggestionsRequestBody, SuggestionsApiResponse } from './chat/suggestions.cjs';
11
- import { G as GetHistoryQuery$1, c as components$3, a as GetChatPath$1, C as ChatRequest$1, b as GetVotesQuery$1, V as VoteRequest$1, U as UsageResponse$1, A as AgentSettings, d as UpdateAgentSettingsRequest, e as UserAgentSettings, f as UpdateUserAgentSettingsRequest, T as ToolsListResponse } from './types-DJ6nbNq5.cjs';
12
+ import { G as GetHistoryQuery$1, c as components$3, a as GetChatPath$1, C as ChatRequest$1, b as GetVotesQuery$1, V as VoteRequest$1, U as UsageResponse$1, A as AgentSettings, d as UpdateAgentSettingsRequest, e as UserAgentSettings, f as UpdateUserAgentSettingsRequest, T as ToolsListResponse } from './types-CNkgmuhe.cjs';
12
13
  import { G as GetQueueJobPath, c as components$2, S as SearchJobsQuery } from './types-CRSKcua9.cjs';
13
14
  import { P as PostQueryPath, a as PostQueryBody, b as PostCancelQueryJobPath, G as GetQueryJobPath, c as components$1, d as GetQueryResultsPath, e as GetQueryResutsQuery, f as GetQueriesPath, g as GetQueriesHistoryQuery, h as GetExportResultsQuery, E as ExportResultsResponse } from './types-DJkU9gvB.cjs';
14
15
  import { CreateCredentialsBody, WorkspaceData } from './telemetry/types.cjs';
15
16
  import { EnrollMFAInput, GetDataAppPublicGitRepositoryInput, GetDataAppPasswordPrivateGitRepositoryInput, GetDataAppSSHKeyPrivateGitRepositoryInput, GetPublicGitRepositoryInput, GetGitPrivateRepositoryInput } from './syncActions/types.cjs';
16
- import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from './types-BNQK_jR_.cjs';
17
+ import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from './types-C0Owx2P7.cjs';
17
18
  import { EncryptQuery } from './encryption/types.cjs';
18
19
  import { G as GetDataAppRunsPath, a as GetDataAppRunsQuery, b as GetDataAppRunPath, c as GetDataAppLogsDownloadPath, d as GetDataAppLogsTailPath, e as GetDataAppLogsTailQuery, L as LogEntry, f as GetAppsQuery, g as GetDataAppPath, C as CreateDataAppBody, P as PatchDataAppPath, h as PatchDataAppBody, D as DeleteDataAppPath, i as GetDataAppPasswordPath, R as ResetDataAppPasswordPath, j as GetSandboxPath } from './utils-DE09pDTi.cjs';
19
20
  export { p as parseLogLines } from './utils-DE09pDTi.cjs';
20
21
  import { CreateVariableBody, DeleteVariablePath, VariableWithHash, GetVariablesQuery, GetVariablesByBranchId } from './vault/types.cjs';
21
- import { ServiceId, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, Service, StackComponent, GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, GetEventsQuery, StorageEvent, CreateEventBody, File as File$1, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, Job, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, ConfigurationPath, ComponentConfig, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, GetStackInfoQuery, StackInfo } from './storage/types.cjs';
22
+ import { ServiceId, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput, Service, StackComponent, GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, Job, GetEventsQuery, StorageEvent, CreateEventBody, File as File$1, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, ConfigurationPath, ComponentConfig, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, GetStackInfoQuery, StackInfo } from './storage/types.cjs';
22
23
  import { M as MetaObject } from './types-C-bd4ArM.cjs';
23
- import { C as ConcurrentOptions, M as MiddlewareFn$1 } from './storageClient-DPLh_p0V.cjs';
24
- export { a as concurrent } from './storageClient-DPLh_p0V.cjs';
24
+ import { C as ConcurrentOptions, M as MiddlewareFn$1 } from './storageClient-DSLTM3Cr.cjs';
25
+ export { a as concurrent } from './storageClient-DSLTM3Cr.cjs';
25
26
  import { K as KeboolaObjectId } from './keboolaUID-D1DGSbge.cjs';
26
27
  export { k as keboolaUID } from './keboolaUID-D1DGSbge.cjs';
27
28
  import { TagWithBindings, TagData, CreateMetaObjectMetaDataInput, UpdateMetaObjectMetaDataInput } from './sdk/tag/types.cjs';
@@ -29,7 +30,7 @@ import { B as Backend, S as StorageToken } from './types-DYMMsuU0.cjs';
29
30
  export { c as createGenericFetchClient } from './createGenericFetchClient-CLUzu-jY.cjs';
30
31
  export { M as ManagementClientAuthError, i as isManagementClientAuthError } from './authMiddleware-BteBe1Bt.cjs';
31
32
  import { ManagementToken } from './verify/types.cjs';
32
- export { createStorageSdk } from './sdk/storage/index.cjs';
33
+ export { c as createStorageSdk } from './storageSdk-BBqAo0Vx.cjs';
33
34
  import 'qs';
34
35
  import './createOpenapiFetchClient-CpXmAIFB.cjs';
35
36
  import './metastore/index.cjs';
@@ -181,18 +182,15 @@ type paths = {
181
182
  'application/json': {
182
183
  chats: {
183
184
  /** Format: uuid */
184
- id: string;
185
- title: string;
186
- userId: string;
185
+ id?: string;
186
+ title?: string;
187
+ userId?: string;
187
188
  /** Format: date-time */
188
- createdAt: string;
189
- /**
190
- * Format: date-time
191
- * @description Timestamp of the last message in this chat
192
- */
193
- lastMessageAt: string;
189
+ createdAt?: string;
190
+ /** Format: date-time */
191
+ lastMessageAt?: string;
194
192
  /** @enum {string} */
195
- visibility: 'public' | 'private';
193
+ visibility?: 'public' | 'private';
196
194
  branchId?: number | null;
197
195
  }[];
198
196
  hasMore: boolean;
@@ -276,6 +274,7 @@ type paths = {
276
274
  hidden?: boolean;
277
275
  requestContext?: {
278
276
  path?: string;
277
+ sqlEditorActive?: boolean;
279
278
  };
280
279
  };
281
280
  };
@@ -329,6 +328,21 @@ type paths = {
329
328
  };
330
329
  };
331
330
  };
331
+ /** @description A message is already being processed in this chat */
332
+ 409: {
333
+ headers: {
334
+ [name: string]: unknown;
335
+ };
336
+ content: {
337
+ 'application/json': {
338
+ error: {
339
+ type: string;
340
+ surface: string;
341
+ message: string;
342
+ };
343
+ };
344
+ };
345
+ };
332
346
  /** @description Rate limit exceeded */
333
347
  429: {
334
348
  headers: {
@@ -369,18 +383,13 @@ type paths = {
369
383
  content: {
370
384
  'application/json': {
371
385
  /** Format: uuid */
372
- id: string;
373
- title: string;
374
- userId: string;
386
+ id?: string;
387
+ title?: string;
388
+ userId?: string;
375
389
  /** Format: date-time */
376
- createdAt: string;
377
- /**
378
- * Format: date-time
379
- * @description Timestamp of the last message in this chat
380
- */
381
- lastMessageAt: string;
390
+ createdAt?: string;
382
391
  /** @enum {string} */
383
- visibility: 'public' | 'private';
392
+ visibility?: 'public' | 'private';
384
393
  branchId?: number | null;
385
394
  };
386
395
  };
@@ -437,6 +446,180 @@ type paths = {
437
446
  patch?: never;
438
447
  trace?: never;
439
448
  };
449
+ '/api/chat/{id}/stream': {
450
+ parameters: {
451
+ query?: never;
452
+ header?: never;
453
+ path?: never;
454
+ cookie?: never;
455
+ };
456
+ /**
457
+ * Reattach to the in-flight SSE stream for a chat
458
+ * @description Subscribe to the bus for a running or recently-completed assistant turn. Replays buffered events from the start of the run, then continues live (if the run is still in flight). Returns 404 if no run exists for this chat or its retention window has expired.
459
+ */
460
+ get: {
461
+ parameters: {
462
+ query?: never;
463
+ header?: never;
464
+ path: {
465
+ id: string;
466
+ };
467
+ cookie?: never;
468
+ };
469
+ requestBody?: never;
470
+ responses: {
471
+ /** @description SSE stream of chat events */
472
+ 200: {
473
+ headers: {
474
+ [name: string]: unknown;
475
+ };
476
+ content: {
477
+ 'text/event-stream': unknown;
478
+ };
479
+ };
480
+ /** @description Unauthorized */
481
+ 401: {
482
+ headers: {
483
+ [name: string]: unknown;
484
+ };
485
+ content: {
486
+ 'application/json': {
487
+ error: {
488
+ type: string;
489
+ surface: string;
490
+ message: string;
491
+ };
492
+ };
493
+ };
494
+ };
495
+ /** @description Forbidden */
496
+ 403: {
497
+ headers: {
498
+ [name: string]: unknown;
499
+ };
500
+ content: {
501
+ 'application/json': {
502
+ error: {
503
+ type: string;
504
+ surface: string;
505
+ message: string;
506
+ };
507
+ };
508
+ };
509
+ };
510
+ /** @description No stream for this chat — either never started or retention window expired */
511
+ 404: {
512
+ headers: {
513
+ [name: string]: unknown;
514
+ };
515
+ content: {
516
+ 'application/json': {
517
+ error: {
518
+ type: string;
519
+ surface: string;
520
+ message: string;
521
+ };
522
+ };
523
+ };
524
+ };
525
+ };
526
+ };
527
+ put?: never;
528
+ post?: never;
529
+ delete?: never;
530
+ options?: never;
531
+ head?: never;
532
+ patch?: never;
533
+ trace?: never;
534
+ };
535
+ '/api/chat/{id}/stop': {
536
+ parameters: {
537
+ query?: never;
538
+ header?: never;
539
+ path?: never;
540
+ cookie?: never;
541
+ };
542
+ get?: never;
543
+ put?: never;
544
+ /**
545
+ * Stop the in-flight assistant turn for a chat
546
+ * @description Signals the chat handler to abort the sandbox process. Idempotent — returns 200 even if no run is active.
547
+ */
548
+ post: {
549
+ parameters: {
550
+ query?: never;
551
+ header?: never;
552
+ path: {
553
+ id: string;
554
+ };
555
+ cookie?: never;
556
+ };
557
+ requestBody?: never;
558
+ responses: {
559
+ /** @description Stop requested (or no run was active) */
560
+ 200: {
561
+ headers: {
562
+ [name: string]: unknown;
563
+ };
564
+ content: {
565
+ 'application/json': {
566
+ stopped: boolean;
567
+ };
568
+ };
569
+ };
570
+ /** @description Unauthorized */
571
+ 401: {
572
+ headers: {
573
+ [name: string]: unknown;
574
+ };
575
+ content: {
576
+ 'application/json': {
577
+ error: {
578
+ type: string;
579
+ surface: string;
580
+ message: string;
581
+ };
582
+ };
583
+ };
584
+ };
585
+ /** @description Forbidden */
586
+ 403: {
587
+ headers: {
588
+ [name: string]: unknown;
589
+ };
590
+ content: {
591
+ 'application/json': {
592
+ error: {
593
+ type: string;
594
+ surface: string;
595
+ message: string;
596
+ };
597
+ };
598
+ };
599
+ };
600
+ /** @description Chat not found */
601
+ 404: {
602
+ headers: {
603
+ [name: string]: unknown;
604
+ };
605
+ content: {
606
+ 'application/json': {
607
+ error: {
608
+ type: string;
609
+ surface: string;
610
+ message: string;
611
+ };
612
+ };
613
+ };
614
+ };
615
+ };
616
+ };
617
+ delete?: never;
618
+ options?: never;
619
+ head?: never;
620
+ patch?: never;
621
+ trace?: never;
622
+ };
440
623
  '/api/chat/{id}': {
441
624
  parameters: {
442
625
  query?: never;
@@ -472,10 +655,7 @@ type paths = {
472
655
  userId: string;
473
656
  /** Format: date-time */
474
657
  createdAt: string;
475
- /**
476
- * Format: date-time
477
- * @description Timestamp of the last message in this chat
478
- */
658
+ /** Format: date-time */
479
659
  lastMessageAt: string;
480
660
  /** @enum {string} */
481
661
  visibility: 'public' | 'private';
@@ -504,15 +684,47 @@ type paths = {
504
684
  /** @enum {string} */
505
685
  type: 'step-start';
506
686
  }
687
+ | {
688
+ /** @enum {string} */
689
+ type: 'data-compact-boundary';
690
+ data: {
691
+ /** @enum {string} */
692
+ trigger: 'manual' | 'auto';
693
+ preTokens: number;
694
+ preservedSegment?: {
695
+ /** Format: uuid */
696
+ headUuid: string;
697
+ /** Format: uuid */
698
+ anchorUuid: string;
699
+ /** Format: uuid */
700
+ tailUuid: string;
701
+ };
702
+ summary: string;
703
+ sdkSessionId: string;
704
+ };
705
+ }
507
706
  | {
508
707
  type: string;
509
708
  toolCallId: string;
510
709
  /** @enum {string} */
511
- state: 'output-available' | 'input-available' | 'input-streaming';
710
+ state:
711
+ | 'output-available'
712
+ | 'output-error'
713
+ | 'output-denied'
714
+ | 'input-available'
715
+ | 'input-streaming'
716
+ | 'approval-requested'
717
+ | 'approval-responded';
512
718
  input?: {
513
719
  [key: string]: unknown;
514
720
  };
515
721
  output?: unknown;
722
+ errorText?: string;
723
+ approval?: {
724
+ id: string;
725
+ approved: boolean;
726
+ reason?: string;
727
+ };
516
728
  }
517
729
  )[];
518
730
  metadata?: {
@@ -521,6 +733,7 @@ type paths = {
521
733
  hidden?: boolean;
522
734
  requestContext?: {
523
735
  path?: string;
736
+ sqlEditorActive?: boolean;
524
737
  };
525
738
  /** Format: uuid */
526
739
  compactedTo?: string;
@@ -834,7 +1047,7 @@ type paths = {
834
1047
  [key: string]: unknown;
835
1048
  };
836
1049
  answers?: {
837
- [key: string]: string | string[];
1050
+ [key: string]: string;
838
1051
  };
839
1052
  };
840
1053
  };
@@ -977,26 +1190,561 @@ type paths = {
977
1190
  surface: string;
978
1191
  message: string;
979
1192
  };
980
- };
981
- };
1193
+ };
1194
+ };
1195
+ };
1196
+ /** @description Unauthorized */
1197
+ 401: {
1198
+ headers: {
1199
+ [name: string]: unknown;
1200
+ };
1201
+ content: {
1202
+ 'application/json': {
1203
+ error: {
1204
+ type: string;
1205
+ surface: string;
1206
+ message: string;
1207
+ };
1208
+ };
1209
+ };
1210
+ };
1211
+ /** @description Forbidden — request belongs to a different chat */
1212
+ 403: {
1213
+ headers: {
1214
+ [name: string]: unknown;
1215
+ };
1216
+ content: {
1217
+ 'application/json': {
1218
+ error: {
1219
+ type: string;
1220
+ surface: string;
1221
+ message: string;
1222
+ };
1223
+ };
1224
+ };
1225
+ };
1226
+ /** @description No pending UI tool request found */
1227
+ 404: {
1228
+ headers: {
1229
+ [name: string]: unknown;
1230
+ };
1231
+ content: {
1232
+ 'application/json': {
1233
+ error: {
1234
+ type: string;
1235
+ surface: string;
1236
+ message: string;
1237
+ };
1238
+ };
1239
+ };
1240
+ };
1241
+ };
1242
+ };
1243
+ delete?: never;
1244
+ options?: never;
1245
+ head?: never;
1246
+ patch?: never;
1247
+ trace?: never;
1248
+ };
1249
+ '/api/usage': {
1250
+ parameters: {
1251
+ query?: never;
1252
+ header?: never;
1253
+ path?: never;
1254
+ cookie?: never;
1255
+ };
1256
+ /**
1257
+ * Get rate limit usage information
1258
+ * @description Returns the current rate limit usage for the authenticated user in the current project.
1259
+ */
1260
+ get: {
1261
+ parameters: {
1262
+ query?: never;
1263
+ header?: never;
1264
+ path?: never;
1265
+ cookie?: never;
1266
+ };
1267
+ requestBody?: never;
1268
+ responses: {
1269
+ /** @description Rate limit usage information */
1270
+ 200: {
1271
+ headers: {
1272
+ [name: string]: unknown;
1273
+ };
1274
+ content: {
1275
+ 'application/json': {
1276
+ messagesUsed: number;
1277
+ messagesLimit: number;
1278
+ /** Format: date-time */
1279
+ resetDate: string;
1280
+ };
1281
+ };
1282
+ };
1283
+ /** @description Unauthorized */
1284
+ 401: {
1285
+ headers: {
1286
+ [name: string]: unknown;
1287
+ };
1288
+ content: {
1289
+ 'application/json': {
1290
+ error: {
1291
+ type: string;
1292
+ surface: string;
1293
+ message: string;
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ /** @description Internal server error */
1299
+ 500: {
1300
+ headers: {
1301
+ [name: string]: unknown;
1302
+ };
1303
+ content: {
1304
+ 'application/json': {
1305
+ error: {
1306
+ type: string;
1307
+ surface: string;
1308
+ message: string;
1309
+ };
1310
+ };
1311
+ };
1312
+ };
1313
+ };
1314
+ };
1315
+ put?: never;
1316
+ post?: never;
1317
+ delete?: never;
1318
+ options?: never;
1319
+ head?: never;
1320
+ patch?: never;
1321
+ trace?: never;
1322
+ };
1323
+ '/api/settings': {
1324
+ parameters: {
1325
+ query?: never;
1326
+ header?: never;
1327
+ path?: never;
1328
+ cookie?: never;
1329
+ };
1330
+ /**
1331
+ * Get project settings
1332
+ * @description Retrieve project-level custom instructions
1333
+ */
1334
+ get: {
1335
+ parameters: {
1336
+ query?: never;
1337
+ header?: never;
1338
+ path?: never;
1339
+ cookie?: never;
1340
+ };
1341
+ requestBody?: never;
1342
+ responses: {
1343
+ /** @description Project settings */
1344
+ 200: {
1345
+ headers: {
1346
+ [name: string]: unknown;
1347
+ };
1348
+ content: {
1349
+ 'application/json': {
1350
+ projectId: string;
1351
+ customInstructions: string | null;
1352
+ createdAt: string;
1353
+ updatedAt: string;
1354
+ };
1355
+ };
1356
+ };
1357
+ /** @description Unauthorized */
1358
+ 401: {
1359
+ headers: {
1360
+ [name: string]: unknown;
1361
+ };
1362
+ content: {
1363
+ 'application/json': {
1364
+ error: {
1365
+ type: string;
1366
+ surface: string;
1367
+ message: string;
1368
+ };
1369
+ };
1370
+ };
1371
+ };
1372
+ };
1373
+ };
1374
+ put?: never;
1375
+ post?: never;
1376
+ delete?: never;
1377
+ options?: never;
1378
+ head?: never;
1379
+ /**
1380
+ * Update project settings
1381
+ * @description Update project-level custom instructions
1382
+ */
1383
+ patch: {
1384
+ parameters: {
1385
+ query?: never;
1386
+ header?: never;
1387
+ path?: never;
1388
+ cookie?: never;
1389
+ };
1390
+ requestBody?: {
1391
+ content: {
1392
+ 'application/json': {
1393
+ customInstructions?: string | null;
1394
+ };
1395
+ };
1396
+ };
1397
+ responses: {
1398
+ /** @description Updated project settings */
1399
+ 200: {
1400
+ headers: {
1401
+ [name: string]: unknown;
1402
+ };
1403
+ content: {
1404
+ 'application/json': {
1405
+ projectId: string;
1406
+ customInstructions: string | null;
1407
+ createdAt: string;
1408
+ updatedAt: string;
1409
+ };
1410
+ };
1411
+ };
1412
+ /** @description Bad request */
1413
+ 400: {
1414
+ headers: {
1415
+ [name: string]: unknown;
1416
+ };
1417
+ content: {
1418
+ 'application/json': {
1419
+ error: {
1420
+ type: string;
1421
+ surface: string;
1422
+ message: string;
1423
+ };
1424
+ };
1425
+ };
1426
+ };
1427
+ /** @description Unauthorized */
1428
+ 401: {
1429
+ headers: {
1430
+ [name: string]: unknown;
1431
+ };
1432
+ content: {
1433
+ 'application/json': {
1434
+ error: {
1435
+ type: string;
1436
+ surface: string;
1437
+ message: string;
1438
+ };
1439
+ };
1440
+ };
1441
+ };
1442
+ };
1443
+ };
1444
+ trace?: never;
1445
+ };
1446
+ '/api/settings/user': {
1447
+ parameters: {
1448
+ query?: never;
1449
+ header?: never;
1450
+ path?: never;
1451
+ cookie?: never;
1452
+ };
1453
+ /**
1454
+ * Get user settings
1455
+ * @description Retrieve user-level custom instructions and tool permissions
1456
+ */
1457
+ get: {
1458
+ parameters: {
1459
+ query?: never;
1460
+ header?: never;
1461
+ path?: never;
1462
+ cookie?: never;
1463
+ };
1464
+ requestBody?: never;
1465
+ responses: {
1466
+ /** @description User settings */
1467
+ 200: {
1468
+ headers: {
1469
+ [name: string]: unknown;
1470
+ };
1471
+ content: {
1472
+ 'application/json': {
1473
+ projectId: string;
1474
+ userId: string;
1475
+ customInstructions: string | null;
1476
+ toolPermissions: {
1477
+ [key: string]: 'always_allow' | 'always_ask' | 'blocked';
1478
+ } | null;
1479
+ createdAt: string;
1480
+ updatedAt: string;
1481
+ };
1482
+ };
1483
+ };
1484
+ /** @description Unauthorized */
1485
+ 401: {
1486
+ headers: {
1487
+ [name: string]: unknown;
1488
+ };
1489
+ content: {
1490
+ 'application/json': {
1491
+ error: {
1492
+ type: string;
1493
+ surface: string;
1494
+ message: string;
1495
+ };
1496
+ };
1497
+ };
1498
+ };
1499
+ };
1500
+ };
1501
+ put?: never;
1502
+ post?: never;
1503
+ delete?: never;
1504
+ options?: never;
1505
+ head?: never;
1506
+ /**
1507
+ * Update user settings
1508
+ * @description Update user-level custom instructions and/or tool permissions. Tool permissions are merged with existing values.
1509
+ */
1510
+ patch: {
1511
+ parameters: {
1512
+ query?: never;
1513
+ header?: never;
1514
+ path?: never;
1515
+ cookie?: never;
1516
+ };
1517
+ requestBody?: {
1518
+ content: {
1519
+ 'application/json': {
1520
+ customInstructions?: string | null;
1521
+ toolPermissions?: {
1522
+ [key: string]: 'always_allow' | 'always_ask' | 'blocked';
1523
+ } | null;
1524
+ };
1525
+ };
1526
+ };
1527
+ responses: {
1528
+ /** @description Updated user settings */
1529
+ 200: {
1530
+ headers: {
1531
+ [name: string]: unknown;
1532
+ };
1533
+ content: {
1534
+ 'application/json': {
1535
+ projectId: string;
1536
+ userId: string;
1537
+ customInstructions: string | null;
1538
+ toolPermissions: {
1539
+ [key: string]: 'always_allow' | 'always_ask' | 'blocked';
1540
+ } | null;
1541
+ createdAt: string;
1542
+ updatedAt: string;
1543
+ };
1544
+ };
1545
+ };
1546
+ /** @description Bad request */
1547
+ 400: {
1548
+ headers: {
1549
+ [name: string]: unknown;
1550
+ };
1551
+ content: {
1552
+ 'application/json': {
1553
+ error: {
1554
+ type: string;
1555
+ surface: string;
1556
+ message: string;
1557
+ };
1558
+ };
1559
+ };
1560
+ };
1561
+ /** @description Unauthorized */
1562
+ 401: {
1563
+ headers: {
1564
+ [name: string]: unknown;
1565
+ };
1566
+ content: {
1567
+ 'application/json': {
1568
+ error: {
1569
+ type: string;
1570
+ surface: string;
1571
+ message: string;
1572
+ };
1573
+ };
1574
+ };
1575
+ };
1576
+ };
1577
+ };
1578
+ trace?: never;
1579
+ };
1580
+ '/api/suggestions': {
1581
+ parameters: {
1582
+ query?: never;
1583
+ header?: never;
1584
+ path?: never;
1585
+ cookie?: never;
1586
+ };
1587
+ get?: never;
1588
+ put?: never;
1589
+ /**
1590
+ * Generate contextual suggestions
1591
+ * @description Generate AI-powered contextual suggestions for dashboard, job-detail, or configuration-detail contexts
1592
+ */
1593
+ post: {
1594
+ parameters: {
1595
+ query?: never;
1596
+ header?: never;
1597
+ path?: never;
1598
+ cookie?: never;
1599
+ };
1600
+ requestBody?: {
1601
+ content: {
1602
+ 'application/json':
1603
+ | {
1604
+ /** @enum {string} */
1605
+ context: 'dashboard';
1606
+ data: {
1607
+ recentFailedJobs: {
1608
+ id: string;
1609
+ /** @enum {string} */
1610
+ status: 'error' | 'warning';
1611
+ component: string;
1612
+ configId: string;
1613
+ configName?: string;
1614
+ createdTime: string;
1615
+ durationSeconds?: number;
1616
+ errorMessage?: string;
1617
+ }[];
1618
+ deprecatedComponents: {
1619
+ id: string;
1620
+ name: string;
1621
+ type: string;
1622
+ expiredOn: string;
1623
+ configCount: number;
1624
+ }[];
1625
+ userRecentEdits: {
1626
+ component: string;
1627
+ configId: string;
1628
+ configName: string;
1629
+ lastEdited: string;
1630
+ }[];
1631
+ /** Format: email */
1632
+ currentUserEmail: string;
1633
+ };
1634
+ }
1635
+ | {
1636
+ /** @enum {string} */
1637
+ context: 'job-detail';
1638
+ data: {
1639
+ job: {
1640
+ id: string;
1641
+ /** @enum {string} */
1642
+ status:
1643
+ | 'created'
1644
+ | 'waiting'
1645
+ | 'processing'
1646
+ | 'success'
1647
+ | 'error'
1648
+ | 'terminating'
1649
+ | 'terminated'
1650
+ | 'cancelled'
1651
+ | 'warning';
1652
+ component: string;
1653
+ configId?: string;
1654
+ configName?: string;
1655
+ createdTime: string;
1656
+ startTime?: string;
1657
+ endTime?: string;
1658
+ durationSeconds?: number;
1659
+ errorMessage?: string;
1660
+ /** @enum {string} */
1661
+ errorType?: 'user' | 'application';
1662
+ backendSize?: string;
1663
+ };
1664
+ component?: {
1665
+ id: string;
1666
+ name: string;
1667
+ type: string;
1668
+ };
1669
+ runtimeHistory?: {
1670
+ averageDurationSeconds?: number;
1671
+ minDurationSeconds?: number;
1672
+ maxDurationSeconds?: number;
1673
+ recentJobsCount: number;
1674
+ isSlowerThanAverage?: boolean;
1675
+ isFasterThanAverage?: boolean;
1676
+ percentageDifference?: number;
1677
+ };
1678
+ /** Format: email */
1679
+ currentUserEmail: string;
1680
+ };
1681
+ }
1682
+ | {
1683
+ /** @enum {string} */
1684
+ context: 'configuration-detail';
1685
+ data: {
1686
+ configuration: {
1687
+ id: string;
1688
+ name: string;
1689
+ description?: string;
1690
+ component: string;
1691
+ hasRows: boolean;
1692
+ rowCount?: number;
1693
+ lastChangeDescription?: string;
1694
+ };
1695
+ component?: {
1696
+ id: string;
1697
+ name: string;
1698
+ type: string;
1699
+ };
1700
+ latestJobs?: {
1701
+ id: string;
1702
+ /** @enum {string} */
1703
+ status:
1704
+ | 'created'
1705
+ | 'waiting'
1706
+ | 'processing'
1707
+ | 'success'
1708
+ | 'error'
1709
+ | 'terminating'
1710
+ | 'terminated'
1711
+ | 'cancelled'
1712
+ | 'warning';
1713
+ durationSeconds?: number;
1714
+ errorMessage?: string;
1715
+ createdTime: string;
1716
+ }[];
1717
+ /** Format: email */
1718
+ currentUserEmail: string;
1719
+ };
1720
+ };
982
1721
  };
983
- /** @description Unauthorized */
984
- 401: {
1722
+ };
1723
+ responses: {
1724
+ /** @description Suggestions generated successfully */
1725
+ 200: {
985
1726
  headers: {
986
1727
  [name: string]: unknown;
987
1728
  };
988
1729
  content: {
989
1730
  'application/json': {
990
- error: {
991
- type: string;
992
- surface: string;
993
- message: string;
994
- };
1731
+ suggestions: {
1732
+ /** Format: uuid */
1733
+ id: string;
1734
+ label: string;
1735
+ prompt: string;
1736
+ priority: number;
1737
+ /** @enum {string} */
1738
+ category: 'error' | 'maintenance' | 'documentation';
1739
+ reasoning: string;
1740
+ }[];
1741
+ /** Format: uuid */
1742
+ suggestionSessionId: string;
995
1743
  };
996
1744
  };
997
1745
  };
998
- /** @description Forbidden request belongs to a different chat */
999
- 403: {
1746
+ /** @description Bad request */
1747
+ 400: {
1000
1748
  headers: {
1001
1749
  [name: string]: unknown;
1002
1750
  };
@@ -1010,8 +1758,8 @@ type paths = {
1010
1758
  };
1011
1759
  };
1012
1760
  };
1013
- /** @description No pending UI tool request found */
1014
- 404: {
1761
+ /** @description Unauthorized */
1762
+ 401: {
1015
1763
  headers: {
1016
1764
  [name: string]: unknown;
1017
1765
  };
@@ -1033,7 +1781,7 @@ type paths = {
1033
1781
  patch?: never;
1034
1782
  trace?: never;
1035
1783
  };
1036
- '/api/usage': {
1784
+ '/api/settings/tools': {
1037
1785
  parameters: {
1038
1786
  query?: never;
1039
1787
  header?: never;
@@ -1041,8 +1789,8 @@ type paths = {
1041
1789
  cookie?: never;
1042
1790
  };
1043
1791
  /**
1044
- * Get rate limit usage information
1045
- * @description Returns the current rate limit usage for the authenticated user in the current project.
1792
+ * List available tools
1793
+ * @description List all available MCP tools with their metadata
1046
1794
  */
1047
1795
  get: {
1048
1796
  parameters: {
@@ -1053,17 +1801,18 @@ type paths = {
1053
1801
  };
1054
1802
  requestBody?: never;
1055
1803
  responses: {
1056
- /** @description Rate limit usage information */
1804
+ /** @description List of available tools */
1057
1805
  200: {
1058
1806
  headers: {
1059
1807
  [name: string]: unknown;
1060
1808
  };
1061
1809
  content: {
1062
1810
  'application/json': {
1063
- messagesUsed: number;
1064
- messagesLimit: number;
1065
- /** Format: date-time */
1066
- resetDate: string;
1811
+ tools: {
1812
+ name: string;
1813
+ description: string;
1814
+ readOnly: boolean;
1815
+ }[];
1067
1816
  };
1068
1817
  };
1069
1818
  };
@@ -1082,21 +1831,6 @@ type paths = {
1082
1831
  };
1083
1832
  };
1084
1833
  };
1085
- /** @description Internal server error */
1086
- 500: {
1087
- headers: {
1088
- [name: string]: unknown;
1089
- };
1090
- content: {
1091
- 'application/json': {
1092
- error: {
1093
- type: string;
1094
- surface: string;
1095
- message: string;
1096
- };
1097
- };
1098
- };
1099
- };
1100
1834
  };
1101
1835
  };
1102
1836
  put?: never;
@@ -1191,6 +1925,143 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1191
1925
  maxAttempts?: number;
1192
1926
  abortSignal?: AbortSignal;
1193
1927
  }) => Promise<TableExportJob>;
1928
+ getBucketListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
1929
+ listBucketListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
1930
+ createBucketListing: (bucketId: string, input: CreateBucketListingInput, options?: {
1931
+ interval?: number;
1932
+ maxAttempts?: number;
1933
+ abortSignal?: AbortSignal;
1934
+ }) => Promise<{
1935
+ id: number;
1936
+ tableId: string | null;
1937
+ runId: string;
1938
+ url: string;
1939
+ createdTime: string;
1940
+ creatorToken: {
1941
+ id: string;
1942
+ description: string;
1943
+ };
1944
+ endTime: string | null;
1945
+ startTime: string | null;
1946
+ operationName: "bucketListingCreate";
1947
+ operationParams: {
1948
+ queue: string;
1949
+ } & {
1950
+ bucketId: string;
1951
+ };
1952
+ metrics: {
1953
+ inCompressed: boolean;
1954
+ inBytes: number;
1955
+ inBytesUncompressed: number;
1956
+ outCompressed: boolean;
1957
+ outBytes: number;
1958
+ outBytesUncompressed: number;
1959
+ };
1960
+ } & ({
1961
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
1962
+ results: null;
1963
+ } | {
1964
+ status: "error";
1965
+ results: null;
1966
+ error: {
1967
+ code: string;
1968
+ message: string;
1969
+ exceptionId?: string;
1970
+ };
1971
+ } | {
1972
+ status: "success";
1973
+ results: null;
1974
+ })>;
1975
+ updateBucketListing: (bucketId: string, input: UpdateBucketListingInput, options?: {
1976
+ interval?: number;
1977
+ maxAttempts?: number;
1978
+ abortSignal?: AbortSignal;
1979
+ }) => Promise<{
1980
+ id: number;
1981
+ tableId: string | null;
1982
+ runId: string;
1983
+ url: string;
1984
+ createdTime: string;
1985
+ creatorToken: {
1986
+ id: string;
1987
+ description: string;
1988
+ };
1989
+ endTime: string | null;
1990
+ startTime: string | null;
1991
+ operationName: "bucketListingUpdate";
1992
+ operationParams: {
1993
+ queue: string;
1994
+ } & {
1995
+ bucketId: string;
1996
+ };
1997
+ metrics: {
1998
+ inCompressed: boolean;
1999
+ inBytes: number;
2000
+ inBytesUncompressed: number;
2001
+ outCompressed: boolean;
2002
+ outBytes: number;
2003
+ outBytesUncompressed: number;
2004
+ };
2005
+ } & ({
2006
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
2007
+ results: null;
2008
+ } | {
2009
+ status: "error";
2010
+ results: null;
2011
+ error: {
2012
+ code: string;
2013
+ message: string;
2014
+ exceptionId?: string;
2015
+ };
2016
+ } | {
2017
+ status: "success";
2018
+ results: null;
2019
+ })>;
2020
+ deleteBucketListing: (bucketId: string, options?: {
2021
+ interval?: number;
2022
+ maxAttempts?: number;
2023
+ abortSignal?: AbortSignal;
2024
+ }) => Promise<{
2025
+ id: number;
2026
+ tableId: string | null;
2027
+ runId: string;
2028
+ url: string;
2029
+ createdTime: string;
2030
+ creatorToken: {
2031
+ id: string;
2032
+ description: string;
2033
+ };
2034
+ endTime: string | null;
2035
+ startTime: string | null;
2036
+ operationName: "bucketListingDelete";
2037
+ operationParams: {
2038
+ queue: string;
2039
+ } & {
2040
+ bucketId: string;
2041
+ };
2042
+ metrics: {
2043
+ inCompressed: boolean;
2044
+ inBytes: number;
2045
+ inBytesUncompressed: number;
2046
+ outCompressed: boolean;
2047
+ outBytes: number;
2048
+ outBytesUncompressed: number;
2049
+ };
2050
+ } & ({
2051
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
2052
+ results: null;
2053
+ } | {
2054
+ status: "error";
2055
+ results: null;
2056
+ error: {
2057
+ code: string;
2058
+ message: string;
2059
+ exceptionId?: string;
2060
+ };
2061
+ } | {
2062
+ status: "success";
2063
+ results: null;
2064
+ })>;
1194
2065
  };
1195
2066
  };
1196
2067
  vault: {
@@ -1408,13 +2279,13 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1408
2279
  id: string;
1409
2280
  createdAt: string;
1410
2281
  updatedAt: string;
1411
- status: string;
2282
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
1412
2283
  userId: string;
1413
2284
  branchId: string;
1414
2285
  componentId: string;
1415
2286
  configurationId: string;
1416
2287
  workspaceSchema: string;
1417
- workspaceDatabase: string;
2288
+ workspaceDatabase?: string | null;
1418
2289
  workspaceId: string;
1419
2290
  workspaceCreateJobId: string | null;
1420
2291
  workspaceLoadJobs: {
@@ -1434,13 +2305,13 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1434
2305
  id: string;
1435
2306
  createdAt: string;
1436
2307
  updatedAt: string;
1437
- status: string;
2308
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
1438
2309
  userId: string;
1439
2310
  branchId: string;
1440
2311
  componentId: string;
1441
2312
  configurationId: string;
1442
2313
  workspaceSchema: string;
1443
- workspaceDatabase: string;
2314
+ workspaceDatabase?: string | null;
1444
2315
  workspaceId: string;
1445
2316
  workspaceCreateJobId: string | null;
1446
2317
  workspaceLoadJobs: {
@@ -1460,13 +2331,13 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1460
2331
  id: string;
1461
2332
  createdAt: string;
1462
2333
  updatedAt: string;
1463
- status: string;
2334
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
1464
2335
  userId: string;
1465
2336
  branchId: string;
1466
2337
  componentId: string;
1467
2338
  configurationId: string;
1468
2339
  workspaceSchema: string;
1469
- workspaceDatabase: string;
2340
+ workspaceDatabase?: string | null;
1470
2341
  workspaceId: string;
1471
2342
  workspaceCreateJobId: string | null;
1472
2343
  workspaceLoadJobs: {
@@ -1500,13 +2371,13 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1500
2371
  id: string;
1501
2372
  createdAt: string;
1502
2373
  updatedAt: string;
1503
- status: string;
2374
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
1504
2375
  userId: string;
1505
2376
  branchId: string;
1506
2377
  componentId: string;
1507
2378
  configurationId: string;
1508
2379
  workspaceSchema: string;
1509
- workspaceDatabase: string;
2380
+ workspaceDatabase?: string | null;
1510
2381
  workspaceId: string;
1511
2382
  workspaceCreateJobId: string | null;
1512
2383
  workspaceLoadJobs: {
@@ -1526,13 +2397,13 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1526
2397
  id: string;
1527
2398
  createdAt: string;
1528
2399
  updatedAt: string;
1529
- status: string;
2400
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
1530
2401
  userId: string;
1531
2402
  branchId: string;
1532
2403
  componentId: string;
1533
2404
  configurationId: string;
1534
2405
  workspaceSchema: string;
1535
- workspaceDatabase: string;
2406
+ workspaceDatabase?: string | null;
1536
2407
  workspaceId: string;
1537
2408
  workspaceCreateJobId: string | null;
1538
2409
  workspaceLoadJobs: {
@@ -1548,14 +2419,6 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1548
2419
  workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
1549
2420
  lastLoadedAt?: string | null;
1550
2421
  }>;
1551
- getWorkspacePassword: (id: string, signal?: AbortSignal) => Promise<{
1552
- username: string;
1553
- password: string;
1554
- host: string;
1555
- database: string;
1556
- schema: string;
1557
- warehouse: string;
1558
- }>;
1559
2422
  resetWorkspacePassword: (id: string) => Promise<{
1560
2423
  username: string;
1561
2424
  password: string;
@@ -1884,12 +2747,12 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1884
2747
  kaiAgent: {
1885
2748
  getHistory: (params?: GetHistoryQuery) => Promise<{
1886
2749
  chats: {
1887
- id: string;
1888
- title: string;
1889
- userId: string;
1890
- createdAt: string;
1891
- lastMessageAt: string;
1892
- visibility: "public" | "private";
2750
+ id?: string;
2751
+ title?: string;
2752
+ userId?: string;
2753
+ createdAt?: string;
2754
+ lastMessageAt?: string;
2755
+ visibility?: "public" | "private";
1893
2756
  branchId?: number | null;
1894
2757
  }[];
1895
2758
  hasMore: boolean;
@@ -1916,20 +2779,40 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1916
2779
  result: string;
1917
2780
  } | {
1918
2781
  type: "step-start";
2782
+ } | {
2783
+ type: "data-compact-boundary";
2784
+ data: {
2785
+ trigger: "manual" | "auto";
2786
+ preTokens: number;
2787
+ preservedSegment?: {
2788
+ headUuid: string;
2789
+ anchorUuid: string;
2790
+ tailUuid: string;
2791
+ };
2792
+ summary: string;
2793
+ sdkSessionId: string;
2794
+ };
1919
2795
  } | {
1920
2796
  type: string;
1921
2797
  toolCallId: string;
1922
- state: "output-available" | "input-available" | "input-streaming";
2798
+ state: "output-available" | "output-error" | "output-denied" | "input-available" | "input-streaming" | "approval-requested" | "approval-responded";
1923
2799
  input?: {
1924
2800
  [key: string]: unknown;
1925
2801
  };
1926
2802
  output?: unknown;
2803
+ errorText?: string;
2804
+ approval?: {
2805
+ id: string;
2806
+ approved: boolean;
2807
+ reason?: string;
2808
+ };
1927
2809
  })[];
1928
2810
  metadata?: {
1929
2811
  createdAt?: string;
1930
2812
  hidden?: boolean;
1931
2813
  requestContext?: {
1932
2814
  path?: string;
2815
+ sqlEditorActive?: boolean;
1933
2816
  };
1934
2817
  compactedTo?: string;
1935
2818
  compactedFrom?: string;
@@ -1938,12 +2821,11 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1938
2821
  }[];
1939
2822
  }>;
1940
2823
  deleteChat: (chatId: string) => Promise<{
1941
- id: string;
1942
- title: string;
1943
- userId: string;
1944
- createdAt: string;
1945
- lastMessageAt: string;
1946
- visibility: "public" | "private";
2824
+ id?: string;
2825
+ title?: string;
2826
+ userId?: string;
2827
+ createdAt?: string;
2828
+ visibility?: "public" | "private";
1947
2829
  branchId?: number | null;
1948
2830
  }>;
1949
2831
  createChat: (request: ChatRequest) => Promise<Response>;
@@ -1960,6 +2842,9 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
1960
2842
  output?: string;
1961
2843
  errorText?: string;
1962
2844
  }) => Promise<void>;
2845
+ stopChat: (chatId: string) => Promise<{
2846
+ stopped: boolean;
2847
+ }>;
1963
2848
  getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
1964
2849
  getAgentSettings: (signal?: AbortSignal) => Promise<{
1965
2850
  projectId: string;
@@ -2005,8 +2890,31 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2005
2890
  readOnly: boolean;
2006
2891
  }[];
2007
2892
  }>;
2893
+ listSandboxFiles: (chatId: string, path?: string, signal?: AbortSignal) => Promise<{
2894
+ entries: {
2895
+ name: string;
2896
+ path: string;
2897
+ type: "file" | "dir";
2898
+ size?: number | undefined;
2899
+ }[];
2900
+ }>;
2901
+ readSandboxFile: (chatId: string, path: string, signal?: AbortSignal) => Promise<{
2902
+ content: string;
2903
+ encoding: "utf-8" | "binary";
2904
+ truncated: boolean;
2905
+ size: number;
2906
+ }>;
2907
+ getSandboxGitBranch: (chatId: string, signal?: AbortSignal) => Promise<{
2908
+ branch: string | null;
2909
+ }>;
2008
2910
  chatStreamUrl: string;
2009
2911
  };
2912
+ oauth: {
2913
+ getCredentials: (query?: GetCredentialsQuery, signal?: AbortSignal) => Promise<Credential[]>;
2914
+ getCredential: (componentId: string, id: string, signal?: AbortSignal) => Promise<Credential>;
2915
+ createCredential: (componentId: string, body: CreateCredentialBody, signal?: AbortSignal) => Promise<Credential>;
2916
+ deleteCredential: (componentId: string, id: string, signal?: AbortSignal) => Promise<void>;
2917
+ };
2010
2918
  stack: {
2011
2919
  services: Service[];
2012
2920
  features: string[];
@@ -2089,6 +2997,11 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2089
2997
  })>;
2090
2998
  createScheduledRefresh: (input: CreateScheduledRefreshPath & CreateScheduledRefreshBody) => Promise<ScheduledTask>;
2091
2999
  deleteScheduledTask: (taskId: string) => Promise<void>;
3000
+ getListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
3001
+ createListing: (bucketId: string, input: CreateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingCreate">>;
3002
+ updateListing: (bucketId: string, input: UpdateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingUpdate">>;
3003
+ deleteListing: (bucketId: string, signal?: AbortSignal) => Promise<Job<"bucketListingDelete">>;
3004
+ listListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
2092
3005
  };
2093
3006
  events: {
2094
3007
  getEvents: (query?: GetEventsQuery, signal?: AbortSignal) => Promise<StorageEvent[]>;
@@ -2353,6 +3266,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2353
3266
  id?: number;
2354
3267
  name?: string;
2355
3268
  email?: string;
3269
+ status?: "approved" | "rejected" | null;
2356
3270
  }[];
2357
3271
  }[]>;
2358
3272
  getMergeRequest: (id: number, signal?: AbortSignal) => Promise<MergeRequestDetail>;
@@ -2388,6 +3302,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2388
3302
  id?: number;
2389
3303
  name?: string;
2390
3304
  email?: string;
3305
+ status?: "approved" | "rejected" | null;
2391
3306
  }[];
2392
3307
  }>;
2393
3308
  updateMergeRequest: (id: number, params: UpdateMergeRequestParams) => Promise<{
@@ -2421,6 +3336,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2421
3336
  id?: number;
2422
3337
  name?: string;
2423
3338
  email?: string;
3339
+ status?: "approved" | "rejected" | null;
2424
3340
  }[];
2425
3341
  }>;
2426
3342
  requestReview: (id: number) => Promise<{
@@ -2454,6 +3370,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2454
3370
  id?: number;
2455
3371
  name?: string;
2456
3372
  email?: string;
3373
+ status?: "approved" | "rejected" | null;
2457
3374
  }[];
2458
3375
  } & {
2459
3376
  changeLog?: Record<string, never>;
@@ -2489,6 +3406,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2489
3406
  id?: number;
2490
3407
  name?: string;
2491
3408
  email?: string;
3409
+ status?: "approved" | "rejected" | null;
2492
3410
  }[];
2493
3411
  } & {
2494
3412
  changeLog?: Record<string, never>;
@@ -2524,10 +3442,19 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2524
3442
  id?: number;
2525
3443
  name?: string;
2526
3444
  email?: string;
3445
+ status?: "approved" | "rejected" | null;
2527
3446
  }[];
2528
3447
  } & {
2529
3448
  changeLog?: Record<string, never>;
2530
3449
  }>;
3450
+ getMergeRequestConflicts: (id: number, signal?: AbortSignal) => Promise<{
3451
+ message: string;
3452
+ componentId: string;
3453
+ configurationId: string;
3454
+ isDeleted: boolean;
3455
+ devBranchVersionIdentifier: string;
3456
+ defaultBranchVersionIdentifier: string;
3457
+ }[]>;
2531
3458
  };
2532
3459
  jobs: {
2533
3460
  getJob: <T extends JobOperation | string = string>(id: GetJobPath["id"], signal?: AbortSignal) => Promise<Job<T>>;
@@ -2706,7 +3633,23 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2706
3633
  getAllFeatures: (query: GetAllFeaturesQuery, signal?: AbortSignal) => Promise<Feature[]>;
2707
3634
  };
2708
3635
  maintainers: {
2709
- getMaintainers: (signal?: AbortSignal) => Promise<Record<string, never>[]>;
3636
+ getMaintainers: (signal?: AbortSignal) => Promise<{
3637
+ id: number;
3638
+ name: string;
3639
+ created: string;
3640
+ defaultConnectionMysqlId?: number | null;
3641
+ defaultConnectionSnowflakeId?: number | null;
3642
+ defaultConnectionSynapseId?: number | null;
3643
+ defaultConnectionExasolId?: number | null;
3644
+ defaultConnectionBigqueryId?: number | null;
3645
+ defaultConnectionTeradataId?: number | null;
3646
+ defaultFileStorageId?: number | null;
3647
+ zendeskUrl?: string | null;
3648
+ organizations: {
3649
+ id: number;
3650
+ name: string;
3651
+ }[];
3652
+ }[]>;
2710
3653
  getMaintainer: (maintainerId: number, signal?: AbortSignal) => Promise<{
2711
3654
  id: number;
2712
3655
  name: string;
@@ -2719,6 +3662,10 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2719
3662
  defaultConnectionTeradataId?: number | null;
2720
3663
  defaultFileStorageId?: number | null;
2721
3664
  zendeskUrl?: string | null;
3665
+ organizations: {
3666
+ id: number;
3667
+ name: string;
3668
+ }[];
2722
3669
  } & {
2723
3670
  organizations?: components$5["schemas"]["OrganizationResponse"][];
2724
3671
  }>;
@@ -2734,6 +3681,10 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2734
3681
  defaultConnectionTeradataId?: number | null;
2735
3682
  defaultFileStorageId?: number | null;
2736
3683
  zendeskUrl?: string | null;
3684
+ organizations: {
3685
+ id: number;
3686
+ name: string;
3687
+ }[];
2737
3688
  }>;
2738
3689
  updateMaintainer: ({ maintainerId, ...body }: {
2739
3690
  maintainerId: number;
@@ -2749,6 +3700,10 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2749
3700
  defaultConnectionTeradataId?: number | null;
2750
3701
  defaultFileStorageId?: number | null;
2751
3702
  zendeskUrl?: string | null;
3703
+ organizations: {
3704
+ id: number;
3705
+ name: string;
3706
+ }[];
2752
3707
  }>;
2753
3708
  deleteMaintainer: (maintainerId: number) => Promise<void>;
2754
3709
  getMaintainerUsers: (maintainerId: number, signal?: AbortSignal) => Promise<MaintainerUser[]>;
@@ -2805,15 +3760,6 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2805
3760
  maintainerId: number;
2806
3761
  invitationId: number;
2807
3762
  }) => Promise<void>;
2808
- getMaintainerOrganizations: (maintainerId: number, signal?: AbortSignal) => Promise<{
2809
- id: number;
2810
- name: string;
2811
- created: string;
2812
- allowAutoJoin: boolean;
2813
- crmId?: string | null;
2814
- activityCenterProjectId?: number | null;
2815
- mfaRequired: boolean;
2816
- }[]>;
2817
3763
  createMaintainerOrganization: ({ maintainerId, ...body }: {
2818
3764
  maintainerId: number;
2819
3765
  } & CreateMaintainerOrganizationBody) => Promise<{
@@ -2824,6 +3770,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2824
3770
  crmId?: string | null;
2825
3771
  activityCenterProjectId?: number | null;
2826
3772
  mfaRequired: boolean;
3773
+ projectsCount: number;
2827
3774
  }>;
2828
3775
  getMaintainerMetadata: (maintainerId: number, signal?: AbortSignal) => Promise<MetadataItem[]>;
2829
3776
  setMaintainerMetadata: ({ maintainerId, ...body }: {
@@ -2857,18 +3804,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2857
3804
  zendeskUrl?: string | null;
2858
3805
  };
2859
3806
  }[]>;
2860
- getOrganization: (organizationId: number, signal?: AbortSignal) => Promise<{
2861
- id: number;
2862
- name: string;
2863
- created: string;
2864
- allowAutoJoin: boolean;
2865
- crmId?: string | null;
2866
- activityCenterProjectId?: number | null;
2867
- mfaRequired: boolean;
2868
- } & {
2869
- projects?: Record<string, never>[];
2870
- maintainer?: Record<string, never>;
2871
- }>;
3807
+ getOrganization: (organizationId: number, signal?: AbortSignal) => Promise<OrganizationDetail>;
2872
3808
  updateOrganization: ({ organizationId, ...body }: {
2873
3809
  organizationId: number;
2874
3810
  } & UpdateOrganizationBody) => Promise<{
@@ -2879,6 +3815,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2879
3815
  crmId?: string | null;
2880
3816
  activityCenterProjectId?: number | null;
2881
3817
  mfaRequired: boolean;
3818
+ projectsCount: number;
2882
3819
  }>;
2883
3820
  deleteOrganization: (organizationId: number) => Promise<void>;
2884
3821
  forceMfa: (organizationId: number) => Promise<{
@@ -2889,6 +3826,7 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
2889
3826
  crmId?: string | null;
2890
3827
  activityCenterProjectId?: number | null;
2891
3828
  mfaRequired: boolean;
3829
+ projectsCount: number;
2892
3830
  }>;
2893
3831
  joinOrganization: (organizationId: number) => Promise<void>;
2894
3832
  getOrganizationUsers: (organizationId: number, signal?: AbortSignal) => Promise<{
@@ -3047,6 +3985,31 @@ declare const createClients: ({ baseUrl, token, callbacks, assetsBaseUrl, status
3047
3985
  addUserAdminFeature: ({ feature, userIdOrMail }: AddUserFeatureBody & AddUserFeaturePath, signal?: AbortSignal) => Promise<User>;
3048
3986
  removeUserAdminFeature: ({ userIdOrMail, feature }: RemoveUserFeaturePath, signal?: AbortSignal) => Promise<User>;
3049
3987
  };
3988
+ verifyToken: (signal?: AbortSignal) => Promise<{
3989
+ id: number;
3990
+ description: string;
3991
+ created: string;
3992
+ lastUsed?: string | null;
3993
+ expires?: string | null;
3994
+ isSessionToken: boolean;
3995
+ isExpired: boolean;
3996
+ isDisabled: boolean;
3997
+ scopes: string[];
3998
+ type: string;
3999
+ creator: {
4000
+ id?: number;
4001
+ name?: string;
4002
+ };
4003
+ user?: {
4004
+ id?: number;
4005
+ name?: string;
4006
+ email?: string;
4007
+ mfaEnabled?: boolean;
4008
+ features?: string[];
4009
+ canAccessLogs?: boolean;
4010
+ isSuperAdmin?: boolean;
4011
+ } | null;
4012
+ }>;
3050
4013
  };
3051
4014
  }>;
3052
4015
  type Clients = Awaited<ReturnType<typeof createClients>>;