@knowledge-stack/ksapi 1.102.0 → 1.103.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.102.0
1
+ # @knowledge-stack/ksapi@1.103.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -574,7 +574,7 @@ and is automatically generated by the
574
574
  [OpenAPI Generator](https://openapi-generator.tech) project:
575
575
 
576
576
  - API version: `0.1.0`
577
- - Package version: `1.102.0`
577
+ - Package version: `1.103.0`
578
578
  - Generator version: `7.21.0`
579
579
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
580
580
 
@@ -239,7 +239,7 @@ export interface FoldersApiInterface {
239
239
  */
240
240
  searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
241
241
  /**
242
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
242
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
243
243
  * @summary Search Items Handler
244
244
  * @param {string} nameLike Case-insensitive partial name search
245
245
  * @param {SearchSortOrder} [sortOrder] Sort order for results (default: NAME)
@@ -254,7 +254,7 @@ export interface FoldersApiInterface {
254
254
  */
255
255
  searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
256
256
  /**
257
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
257
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
258
258
  * Search Items Handler
259
259
  */
260
260
  searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
@@ -373,12 +373,12 @@ export declare class FoldersApi extends runtime.BaseAPI implements FoldersApiInt
373
373
  */
374
374
  searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
375
375
  /**
376
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
376
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
377
377
  * Search Items Handler
378
378
  */
379
379
  searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
380
380
  /**
381
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
381
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
382
382
  * Search Items Handler
383
383
  */
384
384
  searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
@@ -449,7 +449,7 @@ class FoldersApi extends runtime.BaseAPI {
449
449
  });
450
450
  }
451
451
  /**
452
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
452
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
453
453
  * Search Items Handler
454
454
  */
455
455
  searchItemsRaw(requestParameters, initOverrides) {
@@ -460,7 +460,7 @@ class FoldersApi extends runtime.BaseAPI {
460
460
  });
461
461
  }
462
462
  /**
463
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
463
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
464
464
  * Search Items Handler
465
465
  */
466
466
  searchItems(requestParameters, initOverrides) {
@@ -239,7 +239,7 @@ export interface FoldersApiInterface {
239
239
  */
240
240
  searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
241
241
  /**
242
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
242
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
243
243
  * @summary Search Items Handler
244
244
  * @param {string} nameLike Case-insensitive partial name search
245
245
  * @param {SearchSortOrder} [sortOrder] Sort order for results (default: NAME)
@@ -254,7 +254,7 @@ export interface FoldersApiInterface {
254
254
  */
255
255
  searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
256
256
  /**
257
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
257
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
258
258
  * Search Items Handler
259
259
  */
260
260
  searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
@@ -373,12 +373,12 @@ export declare class FoldersApi extends runtime.BaseAPI implements FoldersApiInt
373
373
  */
374
374
  searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
375
375
  /**
376
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
376
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
377
377
  * Search Items Handler
378
378
  */
379
379
  searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
380
380
  /**
381
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
381
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
382
382
  * Search Items Handler
383
383
  */
384
384
  searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
@@ -413,7 +413,7 @@ export class FoldersApi extends runtime.BaseAPI {
413
413
  });
414
414
  }
415
415
  /**
416
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
416
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
417
417
  * Search Items Handler
418
418
  */
419
419
  searchItemsRaw(requestParameters, initOverrides) {
@@ -424,7 +424,7 @@ export class FoldersApi extends runtime.BaseAPI {
424
424
  });
425
425
  }
426
426
  /**
427
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
427
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
428
428
  * Search Items Handler
429
429
  */
430
430
  searchItems(requestParameters, initOverrides) {
@@ -11,6 +11,9 @@
11
11
  */
12
12
  /**
13
13
  * A read-only SQL query the caller (or agent) wrote.
14
+ *
15
+ * ``offset`` skips that many leading result rows, so callers can page through
16
+ * a large result a window of ``max_rows`` at a time.
14
17
  * @export
15
18
  * @interface DataSourceQueryRequest
16
19
  */
@@ -27,6 +30,12 @@ export interface DataSourceQueryRequest {
27
30
  * @memberof DataSourceQueryRequest
28
31
  */
29
32
  maxRows?: number;
33
+ /**
34
+ *
35
+ * @type {number}
36
+ * @memberof DataSourceQueryRequest
37
+ */
38
+ offset?: number;
30
39
  }
31
40
  export declare const DataSourceQueryRequestPropertyValidationAttributesMap: {
32
41
  [property: string]: {
@@ -18,6 +18,10 @@ export const DataSourceQueryRequestPropertyValidationAttributesMap = {
18
18
  minimum: 1,
19
19
  exclusiveMinimum: false,
20
20
  },
21
+ offset: {
22
+ minimum: 0,
23
+ exclusiveMinimum: false,
24
+ },
21
25
  };
22
26
  /**
23
27
  * Check if a given object implements the DataSourceQueryRequest interface.
@@ -37,6 +41,7 @@ export function DataSourceQueryRequestFromJSONTyped(json, ignoreDiscriminator) {
37
41
  return {
38
42
  'sql': json['sql'],
39
43
  'maxRows': json['max_rows'] == null ? undefined : json['max_rows'],
44
+ 'offset': json['offset'] == null ? undefined : json['offset'],
40
45
  };
41
46
  }
42
47
  export function DataSourceQueryRequestToJSON(json) {
@@ -49,5 +54,6 @@ export function DataSourceQueryRequestToJSONTyped(value, ignoreDiscriminator = f
49
54
  return {
50
55
  'sql': value['sql'],
51
56
  'max_rows': value['maxRows'],
57
+ 'offset': value['offset'],
52
58
  };
53
59
  }
@@ -16,6 +16,7 @@
16
16
  export declare const SearchablePartType: {
17
17
  readonly Folder: "FOLDER";
18
18
  readonly Document: "DOCUMENT";
19
+ readonly DataSource: "DATA_SOURCE";
19
20
  };
20
21
  export type SearchablePartType = typeof SearchablePartType[keyof typeof SearchablePartType];
21
22
  export declare function instanceOfSearchablePartType(value: any): boolean;
@@ -17,7 +17,8 @@
17
17
  */
18
18
  export const SearchablePartType = {
19
19
  Folder: 'FOLDER',
20
- Document: 'DOCUMENT'
20
+ Document: 'DOCUMENT',
21
+ DataSource: 'DATA_SOURCE'
21
22
  };
22
23
  export function instanceOfSearchablePartType(value) {
23
24
  for (const key in SearchablePartType) {
@@ -11,6 +11,9 @@
11
11
  */
12
12
  /**
13
13
  * A read-only SQL query the caller (or agent) wrote.
14
+ *
15
+ * ``offset`` skips that many leading result rows, so callers can page through
16
+ * a large result a window of ``max_rows`` at a time.
14
17
  * @export
15
18
  * @interface DataSourceQueryRequest
16
19
  */
@@ -27,6 +30,12 @@ export interface DataSourceQueryRequest {
27
30
  * @memberof DataSourceQueryRequest
28
31
  */
29
32
  maxRows?: number;
33
+ /**
34
+ *
35
+ * @type {number}
36
+ * @memberof DataSourceQueryRequest
37
+ */
38
+ offset?: number;
30
39
  }
31
40
  export declare const DataSourceQueryRequestPropertyValidationAttributesMap: {
32
41
  [property: string]: {
@@ -26,6 +26,10 @@ exports.DataSourceQueryRequestPropertyValidationAttributesMap = {
26
26
  minimum: 1,
27
27
  exclusiveMinimum: false,
28
28
  },
29
+ offset: {
30
+ minimum: 0,
31
+ exclusiveMinimum: false,
32
+ },
29
33
  };
30
34
  /**
31
35
  * Check if a given object implements the DataSourceQueryRequest interface.
@@ -45,6 +49,7 @@ function DataSourceQueryRequestFromJSONTyped(json, ignoreDiscriminator) {
45
49
  return {
46
50
  'sql': json['sql'],
47
51
  'maxRows': json['max_rows'] == null ? undefined : json['max_rows'],
52
+ 'offset': json['offset'] == null ? undefined : json['offset'],
48
53
  };
49
54
  }
50
55
  function DataSourceQueryRequestToJSON(json) {
@@ -57,5 +62,6 @@ function DataSourceQueryRequestToJSONTyped(value, ignoreDiscriminator = false) {
57
62
  return {
58
63
  'sql': value['sql'],
59
64
  'max_rows': value['maxRows'],
65
+ 'offset': value['offset'],
60
66
  };
61
67
  }
@@ -16,6 +16,7 @@
16
16
  export declare const SearchablePartType: {
17
17
  readonly Folder: "FOLDER";
18
18
  readonly Document: "DOCUMENT";
19
+ readonly DataSource: "DATA_SOURCE";
19
20
  };
20
21
  export type SearchablePartType = typeof SearchablePartType[keyof typeof SearchablePartType];
21
22
  export declare function instanceOfSearchablePartType(value: any): boolean;
@@ -25,7 +25,8 @@ exports.SearchablePartTypeToJSONTyped = SearchablePartTypeToJSONTyped;
25
25
  */
26
26
  exports.SearchablePartType = {
27
27
  Folder: 'FOLDER',
28
- Document: 'DOCUMENT'
28
+ Document: 'DOCUMENT',
29
+ DataSource: 'DATA_SOURCE'
29
30
  };
30
31
  function instanceOfSearchablePartType(value) {
31
32
  for (const key in exports.SearchablePartType) {
@@ -1,7 +1,7 @@
1
1
 
2
2
  # DataSourceQueryRequest
3
3
 
4
- A read-only SQL query the caller (or agent) wrote.
4
+ A read-only SQL query the caller (or agent) wrote. ``offset`` skips that many leading result rows, so callers can page through a large result a window of ``max_rows`` at a time.
5
5
 
6
6
  ## Properties
7
7
 
@@ -9,6 +9,7 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `sql` | string
11
11
  `maxRows` | number
12
+ `offset` | number
12
13
 
13
14
  ## Example
14
15
 
@@ -19,6 +20,7 @@ import type { DataSourceQueryRequest } from '@knowledge-stack/ksapi'
19
20
  const example = {
20
21
  "sql": null,
21
22
  "maxRows": null,
23
+ "offset": null,
22
24
  } satisfies DataSourceQueryRequest
23
25
 
24
26
  console.log(example)
@@ -520,7 +520,7 @@ example().catch(console.error);
520
520
 
521
521
  Search Items Handler
522
522
 
523
- Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\&#39;s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
523
+ Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\&#39;s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
524
524
 
525
525
  ### Example
526
526
 
@@ -577,7 +577,7 @@ example().catch(console.error);
577
577
  |------------- | ------------- | ------------- | -------------|
578
578
  | **nameLike** | `string` | Case-insensitive partial name search | [Defaults to `undefined`] |
579
579
  | **sortOrder** | `SearchSortOrder` | Sort order for results (default: NAME) | [Optional] [Defaults to `undefined`] [Enum: NAME, UPDATED_AT, CREATED_AT] |
580
- | **partType** | `SearchablePartType` | Filter by item type (default: both folders and documents) | [Optional] [Defaults to `undefined`] [Enum: FOLDER, DOCUMENT] |
580
+ | **partType** | `SearchablePartType` | Filter by item type (default: both folders and documents) | [Optional] [Defaults to `undefined`] [Enum: FOLDER, DOCUMENT, DATA_SOURCE] |
581
581
  | **withTags** | `boolean` | Include tags in the response (default: false) | [Optional] [Defaults to `false`] |
582
582
  | **parentPathPartId** | `string` | Scope search to descendants of this folder\&#39;s path part | [Optional] [Defaults to `undefined`] |
583
583
  | **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.102.0",
3
+ "version": "1.103.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -313,7 +313,7 @@ export interface FoldersApiInterface {
313
313
  searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
314
314
 
315
315
  /**
316
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
316
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
317
317
  * @summary Search Items Handler
318
318
  * @param {string} nameLike Case-insensitive partial name search
319
319
  * @param {SearchSortOrder} [sortOrder] Sort order for results (default: NAME)
@@ -329,7 +329,7 @@ export interface FoldersApiInterface {
329
329
  searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
330
330
 
331
331
  /**
332
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
332
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
333
333
  * Search Items Handler
334
334
  */
335
335
  searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
@@ -830,7 +830,7 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
830
830
  }
831
831
 
832
832
  /**
833
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
833
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
834
834
  * Search Items Handler
835
835
  */
836
836
  async searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>> {
@@ -841,7 +841,7 @@ export class FoldersApi extends runtime.BaseAPI implements FoldersApiInterface {
841
841
  }
842
842
 
843
843
  /**
844
- * Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
844
+ * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
845
845
  * Search Items Handler
846
846
  */
847
847
  async searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator> {
@@ -15,6 +15,9 @@
15
15
  import { mapValues } from '../runtime';
16
16
  /**
17
17
  * A read-only SQL query the caller (or agent) wrote.
18
+ *
19
+ * ``offset`` skips that many leading result rows, so callers can page through
20
+ * a large result a window of ``max_rows`` at a time.
18
21
  * @export
19
22
  * @interface DataSourceQueryRequest
20
23
  */
@@ -31,6 +34,12 @@ export interface DataSourceQueryRequest {
31
34
  * @memberof DataSourceQueryRequest
32
35
  */
33
36
  maxRows?: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof DataSourceQueryRequest
41
+ */
42
+ offset?: number;
34
43
  }
35
44
  export const DataSourceQueryRequestPropertyValidationAttributesMap: {
36
45
  [property: string]: {
@@ -53,6 +62,10 @@ export const DataSourceQueryRequestPropertyValidationAttributesMap: {
53
62
  minimum: 1,
54
63
  exclusiveMinimum: false,
55
64
  },
65
+ offset: {
66
+ minimum: 0,
67
+ exclusiveMinimum: false,
68
+ },
56
69
  }
57
70
 
58
71
 
@@ -76,6 +89,7 @@ export function DataSourceQueryRequestFromJSONTyped(json: any, ignoreDiscriminat
76
89
 
77
90
  'sql': json['sql'],
78
91
  'maxRows': json['max_rows'] == null ? undefined : json['max_rows'],
92
+ 'offset': json['offset'] == null ? undefined : json['offset'],
79
93
  };
80
94
  }
81
95
 
@@ -92,6 +106,7 @@ export function DataSourceQueryRequestToJSONTyped(value?: DataSourceQueryRequest
92
106
 
93
107
  'sql': value['sql'],
94
108
  'max_rows': value['maxRows'],
109
+ 'offset': value['offset'],
95
110
  };
96
111
  }
97
112
 
@@ -19,7 +19,8 @@
19
19
  */
20
20
  export const SearchablePartType = {
21
21
  Folder: 'FOLDER',
22
- Document: 'DOCUMENT'
22
+ Document: 'DOCUMENT',
23
+ DataSource: 'DATA_SOURCE'
23
24
  } as const;
24
25
  export type SearchablePartType = typeof SearchablePartType[keyof typeof SearchablePartType];
25
26