@nebula-ai/sdk 1.2.2 → 1.3.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/CHANGELOG.md +35 -0
- package/LICENSE +4 -23
- package/README.md +305 -126
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +205 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +205 -0
- package/client.d.ts.map +1 -0
- package/client.js +505 -0
- package/client.js.map +1 -0
- package/client.mjs +501 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +13 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +13 -0
- package/index.d.ts.map +1 -0
- package/index.js +43 -0
- package/index.js.map +1 -0
- package/index.mjs +13 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +79 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +79 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/lib/dx.d.mts +96 -0
- package/lib/dx.d.mts.map +1 -0
- package/lib/dx.d.ts +96 -0
- package/lib/dx.d.ts.map +1 -0
- package/lib/dx.js +239 -0
- package/lib/dx.js.map +1 -0
- package/lib/dx.mjs +235 -0
- package/lib/dx.mjs.map +1 -0
- package/package.json +144 -58
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/collections.d.mts +289 -0
- package/resources/collections.d.mts.map +1 -0
- package/resources/collections.d.ts +289 -0
- package/resources/collections.d.ts.map +1 -0
- package/resources/collections.js +72 -0
- package/resources/collections.js.map +1 -0
- package/resources/collections.mjs +68 -0
- package/resources/collections.mjs.map +1 -0
- package/resources/connectors.d.mts +148 -0
- package/resources/connectors.d.mts.map +1 -0
- package/resources/connectors.d.ts +148 -0
- package/resources/connectors.d.ts.map +1 -0
- package/resources/connectors.js +50 -0
- package/resources/connectors.js.map +1 -0
- package/resources/connectors.mjs +46 -0
- package/resources/connectors.mjs.map +1 -0
- package/resources/index.d.mts +6 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +13 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +6 -0
- package/resources/index.mjs.map +1 -0
- package/resources/memories.d.mts +1737 -0
- package/resources/memories.d.mts.map +1 -0
- package/resources/memories.d.ts +1737 -0
- package/resources/memories.d.ts.map +1 -0
- package/resources/memories.js +157 -0
- package/resources/memories.js.map +1 -0
- package/resources/memories.mjs +153 -0
- package/resources/memories.mjs.map +1 -0
- package/resources/snapshots.d.mts +281 -0
- package/resources/snapshots.d.mts.map +1 -0
- package/resources/snapshots.d.ts +281 -0
- package/resources/snapshots.d.ts.map +1 -0
- package/resources/snapshots.js +22 -0
- package/resources/snapshots.js.map +1 -0
- package/resources/snapshots.mjs +18 -0
- package/resources/snapshots.mjs.map +1 -0
- package/resources/top-level.d.mts +14 -0
- package/resources/top-level.d.mts.map +1 -0
- package/resources/top-level.d.ts +14 -0
- package/resources/top-level.d.ts.map +1 -0
- package/resources/top-level.js +4 -0
- package/resources/top-level.js.map +1 -0
- package/resources/top-level.mjs +3 -0
- package/resources/top-level.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +892 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +36 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +93 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -0
- package/src/lib/dx.ts +459 -0
- package/src/resource.ts +2 -0
- package/src/resources/collections.ts +474 -0
- package/src/resources/connectors.ts +236 -0
- package/src/resources/index.ts +56 -0
- package/src/resources/memories.ts +2409 -0
- package/src/resources/snapshots.ts +387 -0
- package/src/resources/top-level.ts +19 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/dist/index.d.mts +0 -599
- package/dist/index.d.ts +0 -599
- package/dist/index.js +0 -1345
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -1330
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Collections extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new collection and automatically add the creating user to it.
|
|
11
|
+
*
|
|
12
|
+
* This endpoint allows authenticated users to create a new collection with a
|
|
13
|
+
* specified name and optional description. The user creating the collection is
|
|
14
|
+
* automatically added as a member.
|
|
15
|
+
*/
|
|
16
|
+
create(body: CollectionCreateParams, options?: RequestOptions): APIPromise<CollectionCreateResponse> {
|
|
17
|
+
return this._client.post('/v1/collections', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Get details of a specific collection.
|
|
22
|
+
*
|
|
23
|
+
* This endpoint retrieves detailed information about a single collection
|
|
24
|
+
* identified by its UUID. The user must have access to the collection to view its
|
|
25
|
+
* details.
|
|
26
|
+
*/
|
|
27
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<CollectionRetrieveResponse> {
|
|
28
|
+
return this._client.get(path`/v1/collections/${id}`, options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Update an existing collection's configuration.
|
|
33
|
+
*
|
|
34
|
+
* This endpoint allows updating the name, description, and access settings of an
|
|
35
|
+
* existing collection. The user must have appropriate permissions to modify the
|
|
36
|
+
* collection.
|
|
37
|
+
*/
|
|
38
|
+
update(
|
|
39
|
+
id: string,
|
|
40
|
+
body: CollectionUpdateParams,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<CollectionUpdateResponse> {
|
|
43
|
+
return this._client.post(path`/v1/collections/${id}`, { body, ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns a paginated list of collections the authenticated user has access to.
|
|
48
|
+
*
|
|
49
|
+
* Results can be filtered by providing specific collection IDs. Regular users will
|
|
50
|
+
* only see collections they own or have access to. Superusers can see all
|
|
51
|
+
* collections.
|
|
52
|
+
*
|
|
53
|
+
* The collections are returned in order of last modification, with most recent
|
|
54
|
+
* first.
|
|
55
|
+
*/
|
|
56
|
+
list(
|
|
57
|
+
query: CollectionListParams | null | undefined = {},
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): APIPromise<CollectionListResponse> {
|
|
60
|
+
return this._client.get('/v1/collections', { query, ...options });
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Delete an existing collection.
|
|
65
|
+
*
|
|
66
|
+
* This endpoint allows deletion of a collection identified by its UUID. The user
|
|
67
|
+
* must have appropriate permissions to delete the collection. Deleting a
|
|
68
|
+
* collection removes all associations but does not delete the engrams within it.
|
|
69
|
+
*/
|
|
70
|
+
delete(id: string, options?: RequestOptions): APIPromise<CollectionDeleteResponse> {
|
|
71
|
+
return this._client.delete(path`/v1/collections/${id}`, options);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Retrieve a collection by its (owner_id, name) combination.
|
|
76
|
+
*
|
|
77
|
+
* The authenticated user can only fetch collections they own, or, if superuser,
|
|
78
|
+
* from anyone.
|
|
79
|
+
*/
|
|
80
|
+
retrieveByName(
|
|
81
|
+
collectionName: string,
|
|
82
|
+
query: CollectionRetrieveByNameParams | null | undefined = {},
|
|
83
|
+
options?: RequestOptions,
|
|
84
|
+
): APIPromise<CollectionRetrieveByNameResponse> {
|
|
85
|
+
return this._client.get(path`/v1/collections/name/${collectionName}`, { query, ...options });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface CollectionCreateResponse {
|
|
90
|
+
results: CollectionCreateResponse.Results;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export namespace CollectionCreateResponse {
|
|
94
|
+
export interface Results {
|
|
95
|
+
id: string;
|
|
96
|
+
|
|
97
|
+
created_at: string;
|
|
98
|
+
|
|
99
|
+
description: string | null;
|
|
100
|
+
|
|
101
|
+
engram_count: number;
|
|
102
|
+
|
|
103
|
+
graph_collection_status: string;
|
|
104
|
+
|
|
105
|
+
graph_sync_status: string;
|
|
106
|
+
|
|
107
|
+
name: string;
|
|
108
|
+
|
|
109
|
+
owner_id: string | null;
|
|
110
|
+
|
|
111
|
+
updated_at: string;
|
|
112
|
+
|
|
113
|
+
user_count: number;
|
|
114
|
+
|
|
115
|
+
access_tier?: string | null;
|
|
116
|
+
|
|
117
|
+
cache_policy?: string | null;
|
|
118
|
+
|
|
119
|
+
chain_type?: string | null;
|
|
120
|
+
|
|
121
|
+
contract_address?: string | null;
|
|
122
|
+
|
|
123
|
+
creator_royalty_bps?: number | null;
|
|
124
|
+
|
|
125
|
+
has_preview_access?: boolean | null;
|
|
126
|
+
|
|
127
|
+
is_forked?: boolean | null;
|
|
128
|
+
|
|
129
|
+
marketplace_metadata?: { [key: string]: unknown } | null;
|
|
130
|
+
|
|
131
|
+
memory_count?: number | null;
|
|
132
|
+
|
|
133
|
+
nft_collection_address?: string | null;
|
|
134
|
+
|
|
135
|
+
owner_email?: string | null;
|
|
136
|
+
|
|
137
|
+
owner_name?: string | null;
|
|
138
|
+
|
|
139
|
+
preview_query_limit?: number | null;
|
|
140
|
+
|
|
141
|
+
purchase_price_usd?: string | null;
|
|
142
|
+
|
|
143
|
+
rental_price_monthly_usd?: string | null;
|
|
144
|
+
|
|
145
|
+
workspace_id?: string | null;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface CollectionRetrieveResponse {
|
|
150
|
+
results: CollectionRetrieveResponse.Results;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export namespace CollectionRetrieveResponse {
|
|
154
|
+
export interface Results {
|
|
155
|
+
id: string;
|
|
156
|
+
|
|
157
|
+
created_at: string;
|
|
158
|
+
|
|
159
|
+
description: string | null;
|
|
160
|
+
|
|
161
|
+
engram_count: number;
|
|
162
|
+
|
|
163
|
+
graph_collection_status: string;
|
|
164
|
+
|
|
165
|
+
graph_sync_status: string;
|
|
166
|
+
|
|
167
|
+
name: string;
|
|
168
|
+
|
|
169
|
+
owner_id: string | null;
|
|
170
|
+
|
|
171
|
+
updated_at: string;
|
|
172
|
+
|
|
173
|
+
user_count: number;
|
|
174
|
+
|
|
175
|
+
access_tier?: string | null;
|
|
176
|
+
|
|
177
|
+
cache_policy?: string | null;
|
|
178
|
+
|
|
179
|
+
chain_type?: string | null;
|
|
180
|
+
|
|
181
|
+
contract_address?: string | null;
|
|
182
|
+
|
|
183
|
+
creator_royalty_bps?: number | null;
|
|
184
|
+
|
|
185
|
+
has_preview_access?: boolean | null;
|
|
186
|
+
|
|
187
|
+
is_forked?: boolean | null;
|
|
188
|
+
|
|
189
|
+
marketplace_metadata?: { [key: string]: unknown } | null;
|
|
190
|
+
|
|
191
|
+
memory_count?: number | null;
|
|
192
|
+
|
|
193
|
+
nft_collection_address?: string | null;
|
|
194
|
+
|
|
195
|
+
owner_email?: string | null;
|
|
196
|
+
|
|
197
|
+
owner_name?: string | null;
|
|
198
|
+
|
|
199
|
+
preview_query_limit?: number | null;
|
|
200
|
+
|
|
201
|
+
purchase_price_usd?: string | null;
|
|
202
|
+
|
|
203
|
+
rental_price_monthly_usd?: string | null;
|
|
204
|
+
|
|
205
|
+
workspace_id?: string | null;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface CollectionUpdateResponse {
|
|
210
|
+
results: CollectionUpdateResponse.Results;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export namespace CollectionUpdateResponse {
|
|
214
|
+
export interface Results {
|
|
215
|
+
id: string;
|
|
216
|
+
|
|
217
|
+
created_at: string;
|
|
218
|
+
|
|
219
|
+
description: string | null;
|
|
220
|
+
|
|
221
|
+
engram_count: number;
|
|
222
|
+
|
|
223
|
+
graph_collection_status: string;
|
|
224
|
+
|
|
225
|
+
graph_sync_status: string;
|
|
226
|
+
|
|
227
|
+
name: string;
|
|
228
|
+
|
|
229
|
+
owner_id: string | null;
|
|
230
|
+
|
|
231
|
+
updated_at: string;
|
|
232
|
+
|
|
233
|
+
user_count: number;
|
|
234
|
+
|
|
235
|
+
access_tier?: string | null;
|
|
236
|
+
|
|
237
|
+
cache_policy?: string | null;
|
|
238
|
+
|
|
239
|
+
chain_type?: string | null;
|
|
240
|
+
|
|
241
|
+
contract_address?: string | null;
|
|
242
|
+
|
|
243
|
+
creator_royalty_bps?: number | null;
|
|
244
|
+
|
|
245
|
+
has_preview_access?: boolean | null;
|
|
246
|
+
|
|
247
|
+
is_forked?: boolean | null;
|
|
248
|
+
|
|
249
|
+
marketplace_metadata?: { [key: string]: unknown } | null;
|
|
250
|
+
|
|
251
|
+
memory_count?: number | null;
|
|
252
|
+
|
|
253
|
+
nft_collection_address?: string | null;
|
|
254
|
+
|
|
255
|
+
owner_email?: string | null;
|
|
256
|
+
|
|
257
|
+
owner_name?: string | null;
|
|
258
|
+
|
|
259
|
+
preview_query_limit?: number | null;
|
|
260
|
+
|
|
261
|
+
purchase_price_usd?: string | null;
|
|
262
|
+
|
|
263
|
+
rental_price_monthly_usd?: string | null;
|
|
264
|
+
|
|
265
|
+
workspace_id?: string | null;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export interface CollectionListResponse {
|
|
270
|
+
results: Array<CollectionListResponse.Result>;
|
|
271
|
+
|
|
272
|
+
total_entries: number;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export namespace CollectionListResponse {
|
|
276
|
+
export interface Result {
|
|
277
|
+
id: string;
|
|
278
|
+
|
|
279
|
+
created_at: string;
|
|
280
|
+
|
|
281
|
+
description: string | null;
|
|
282
|
+
|
|
283
|
+
engram_count: number;
|
|
284
|
+
|
|
285
|
+
graph_collection_status: string;
|
|
286
|
+
|
|
287
|
+
graph_sync_status: string;
|
|
288
|
+
|
|
289
|
+
name: string;
|
|
290
|
+
|
|
291
|
+
owner_id: string | null;
|
|
292
|
+
|
|
293
|
+
updated_at: string;
|
|
294
|
+
|
|
295
|
+
user_count: number;
|
|
296
|
+
|
|
297
|
+
access_tier?: string | null;
|
|
298
|
+
|
|
299
|
+
cache_policy?: string | null;
|
|
300
|
+
|
|
301
|
+
chain_type?: string | null;
|
|
302
|
+
|
|
303
|
+
contract_address?: string | null;
|
|
304
|
+
|
|
305
|
+
creator_royalty_bps?: number | null;
|
|
306
|
+
|
|
307
|
+
has_preview_access?: boolean | null;
|
|
308
|
+
|
|
309
|
+
is_forked?: boolean | null;
|
|
310
|
+
|
|
311
|
+
marketplace_metadata?: { [key: string]: unknown } | null;
|
|
312
|
+
|
|
313
|
+
memory_count?: number | null;
|
|
314
|
+
|
|
315
|
+
nft_collection_address?: string | null;
|
|
316
|
+
|
|
317
|
+
owner_email?: string | null;
|
|
318
|
+
|
|
319
|
+
owner_name?: string | null;
|
|
320
|
+
|
|
321
|
+
preview_query_limit?: number | null;
|
|
322
|
+
|
|
323
|
+
purchase_price_usd?: string | null;
|
|
324
|
+
|
|
325
|
+
rental_price_monthly_usd?: string | null;
|
|
326
|
+
|
|
327
|
+
workspace_id?: string | null;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface CollectionDeleteResponse {
|
|
332
|
+
results: CollectionDeleteResponse.Results;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export namespace CollectionDeleteResponse {
|
|
336
|
+
export interface Results {
|
|
337
|
+
success: boolean;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export interface CollectionRetrieveByNameResponse {
|
|
342
|
+
results: CollectionRetrieveByNameResponse.Results;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export namespace CollectionRetrieveByNameResponse {
|
|
346
|
+
export interface Results {
|
|
347
|
+
id: string;
|
|
348
|
+
|
|
349
|
+
created_at: string;
|
|
350
|
+
|
|
351
|
+
description: string | null;
|
|
352
|
+
|
|
353
|
+
engram_count: number;
|
|
354
|
+
|
|
355
|
+
graph_collection_status: string;
|
|
356
|
+
|
|
357
|
+
graph_sync_status: string;
|
|
358
|
+
|
|
359
|
+
name: string;
|
|
360
|
+
|
|
361
|
+
owner_id: string | null;
|
|
362
|
+
|
|
363
|
+
updated_at: string;
|
|
364
|
+
|
|
365
|
+
user_count: number;
|
|
366
|
+
|
|
367
|
+
access_tier?: string | null;
|
|
368
|
+
|
|
369
|
+
cache_policy?: string | null;
|
|
370
|
+
|
|
371
|
+
chain_type?: string | null;
|
|
372
|
+
|
|
373
|
+
contract_address?: string | null;
|
|
374
|
+
|
|
375
|
+
creator_royalty_bps?: number | null;
|
|
376
|
+
|
|
377
|
+
has_preview_access?: boolean | null;
|
|
378
|
+
|
|
379
|
+
is_forked?: boolean | null;
|
|
380
|
+
|
|
381
|
+
marketplace_metadata?: { [key: string]: unknown } | null;
|
|
382
|
+
|
|
383
|
+
memory_count?: number | null;
|
|
384
|
+
|
|
385
|
+
nft_collection_address?: string | null;
|
|
386
|
+
|
|
387
|
+
owner_email?: string | null;
|
|
388
|
+
|
|
389
|
+
owner_name?: string | null;
|
|
390
|
+
|
|
391
|
+
preview_query_limit?: number | null;
|
|
392
|
+
|
|
393
|
+
purchase_price_usd?: string | null;
|
|
394
|
+
|
|
395
|
+
rental_price_monthly_usd?: string | null;
|
|
396
|
+
|
|
397
|
+
workspace_id?: string | null;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export interface CollectionCreateParams {
|
|
402
|
+
name: string;
|
|
403
|
+
|
|
404
|
+
description?: string | null;
|
|
405
|
+
|
|
406
|
+
workspace_id?: string | null;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export interface CollectionUpdateParams {
|
|
410
|
+
access_tier?: string | null;
|
|
411
|
+
|
|
412
|
+
description?: string | null;
|
|
413
|
+
|
|
414
|
+
generate_description?: boolean;
|
|
415
|
+
|
|
416
|
+
name?: string | null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export interface CollectionListParams {
|
|
420
|
+
/**
|
|
421
|
+
* A list of collection IDs to retrieve. If not provided, all collections will be
|
|
422
|
+
* returned.
|
|
423
|
+
*/
|
|
424
|
+
ids?: Array<string>;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Specifies a limit on the number of objects to return, ranging between 1 and 100.
|
|
428
|
+
* Defaults to 100.
|
|
429
|
+
*/
|
|
430
|
+
limit?: number;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Filter collections by name (case-insensitive exact match).
|
|
434
|
+
*/
|
|
435
|
+
name?: string | null;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Specifies the number of objects to skip. Defaults to 0.
|
|
439
|
+
*/
|
|
440
|
+
offset?: number;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* If true, only returns collections owned by the user, not all accessible
|
|
444
|
+
* collections.
|
|
445
|
+
*/
|
|
446
|
+
owner_only?: boolean;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Filter by workspace ID. Pass a UUID to scope to a workspace, or omit for all.
|
|
450
|
+
*/
|
|
451
|
+
workspace_id?: string | null;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export interface CollectionRetrieveByNameParams {
|
|
455
|
+
/**
|
|
456
|
+
* (Superuser only) Specify the owner_id to retrieve a collection by name
|
|
457
|
+
*/
|
|
458
|
+
owner_id?: string | null;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export declare namespace Collections {
|
|
462
|
+
export {
|
|
463
|
+
type CollectionCreateResponse as CollectionCreateResponse,
|
|
464
|
+
type CollectionRetrieveResponse as CollectionRetrieveResponse,
|
|
465
|
+
type CollectionUpdateResponse as CollectionUpdateResponse,
|
|
466
|
+
type CollectionListResponse as CollectionListResponse,
|
|
467
|
+
type CollectionDeleteResponse as CollectionDeleteResponse,
|
|
468
|
+
type CollectionRetrieveByNameResponse as CollectionRetrieveByNameResponse,
|
|
469
|
+
type CollectionCreateParams as CollectionCreateParams,
|
|
470
|
+
type CollectionUpdateParams as CollectionUpdateParams,
|
|
471
|
+
type CollectionListParams as CollectionListParams,
|
|
472
|
+
type CollectionRetrieveByNameParams as CollectionRetrieveByNameParams,
|
|
473
|
+
};
|
|
474
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Connectors extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get a single connection by ID
|
|
11
|
+
*/
|
|
12
|
+
retrieve(connectionID: string, options?: RequestOptions): APIPromise<ConnectorRetrieveResponse> {
|
|
13
|
+
return this._client.get(path`/v1/connectors/${connectionID}`, options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* List active connections for a collection
|
|
18
|
+
*/
|
|
19
|
+
list(query: ConnectorListParams, options?: RequestOptions): APIPromise<ConnectorListResponse> {
|
|
20
|
+
return this._client.get('/v1/connectors', { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Start OAuth connection flow
|
|
25
|
+
*/
|
|
26
|
+
connect(
|
|
27
|
+
provider: string,
|
|
28
|
+
body: ConnectorConnectParams,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): APIPromise<ConnectorConnectResponse> {
|
|
31
|
+
return this._client.post(path`/v1/connectors/${provider}/connect`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Disconnect an external data source
|
|
36
|
+
*/
|
|
37
|
+
disconnect(
|
|
38
|
+
connectionID: string,
|
|
39
|
+
params: ConnectorDisconnectParams | null | undefined = {},
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<ConnectorDisconnectResponse> {
|
|
42
|
+
const { delete_memories } = params ?? {};
|
|
43
|
+
return this._client.delete(path`/v1/connectors/${connectionID}`, {
|
|
44
|
+
query: { delete_memories },
|
|
45
|
+
...options,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* List available connector providers
|
|
51
|
+
*/
|
|
52
|
+
listProviders(options?: RequestOptions): APIPromise<ConnectorListProvidersResponse> {
|
|
53
|
+
return this._client.get('/v1/connectors/providers', options);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Manually trigger a sync
|
|
58
|
+
*/
|
|
59
|
+
sync(connectionID: string, options?: RequestOptions): APIPromise<ConnectorSyncResponse> {
|
|
60
|
+
return this._client.post(path`/v1/connectors/${connectionID}/sync`, options);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ConnectorRetrieveResponse {
|
|
65
|
+
results: ConnectorRetrieveResponse.Results;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export namespace ConnectorRetrieveResponse {
|
|
69
|
+
export interface Results {
|
|
70
|
+
id: string;
|
|
71
|
+
|
|
72
|
+
collection_id: string;
|
|
73
|
+
|
|
74
|
+
created_at: string;
|
|
75
|
+
|
|
76
|
+
provider: string;
|
|
77
|
+
|
|
78
|
+
status: 'active' | 'pending' | 'revoked';
|
|
79
|
+
|
|
80
|
+
updated_at: string;
|
|
81
|
+
|
|
82
|
+
user_id: string;
|
|
83
|
+
|
|
84
|
+
config?: { [key: string]: unknown } | null;
|
|
85
|
+
|
|
86
|
+
error_detail?: Results.ErrorDetail | null;
|
|
87
|
+
|
|
88
|
+
external_account_id?: string | null;
|
|
89
|
+
|
|
90
|
+
health?: 'ok' | 'error' | null;
|
|
91
|
+
|
|
92
|
+
items_synced?: number | null;
|
|
93
|
+
|
|
94
|
+
last_error?: string | null;
|
|
95
|
+
|
|
96
|
+
last_synced_at?: string | null;
|
|
97
|
+
|
|
98
|
+
next_sync_at?: string | null;
|
|
99
|
+
|
|
100
|
+
sync_cursor?: { [key: string]: unknown } | null;
|
|
101
|
+
|
|
102
|
+
token_expires_at?: string | null;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export namespace Results {
|
|
106
|
+
export interface ErrorDetail {
|
|
107
|
+
message: string;
|
|
108
|
+
|
|
109
|
+
retryable: boolean;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface ConnectorListResponse {
|
|
115
|
+
results: Array<ConnectorListResponse.Result>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export namespace ConnectorListResponse {
|
|
119
|
+
export interface Result {
|
|
120
|
+
id: string;
|
|
121
|
+
|
|
122
|
+
collection_id: string;
|
|
123
|
+
|
|
124
|
+
created_at: string;
|
|
125
|
+
|
|
126
|
+
provider: string;
|
|
127
|
+
|
|
128
|
+
status: 'active' | 'pending' | 'revoked';
|
|
129
|
+
|
|
130
|
+
updated_at: string;
|
|
131
|
+
|
|
132
|
+
user_id: string;
|
|
133
|
+
|
|
134
|
+
config?: { [key: string]: unknown } | null;
|
|
135
|
+
|
|
136
|
+
error_detail?: Result.ErrorDetail | null;
|
|
137
|
+
|
|
138
|
+
external_account_id?: string | null;
|
|
139
|
+
|
|
140
|
+
health?: 'ok' | 'error' | null;
|
|
141
|
+
|
|
142
|
+
items_synced?: number | null;
|
|
143
|
+
|
|
144
|
+
last_error?: string | null;
|
|
145
|
+
|
|
146
|
+
last_synced_at?: string | null;
|
|
147
|
+
|
|
148
|
+
next_sync_at?: string | null;
|
|
149
|
+
|
|
150
|
+
sync_cursor?: { [key: string]: unknown } | null;
|
|
151
|
+
|
|
152
|
+
token_expires_at?: string | null;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export namespace Result {
|
|
156
|
+
export interface ErrorDetail {
|
|
157
|
+
message: string;
|
|
158
|
+
|
|
159
|
+
retryable: boolean;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface ConnectorConnectResponse {
|
|
165
|
+
results: ConnectorConnectResponse.Results;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export namespace ConnectorConnectResponse {
|
|
169
|
+
export interface Results {
|
|
170
|
+
auth_url: string;
|
|
171
|
+
|
|
172
|
+
state: string;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface ConnectorDisconnectResponse {
|
|
177
|
+
results: ConnectorDisconnectResponse.Results;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export namespace ConnectorDisconnectResponse {
|
|
181
|
+
export interface Results {
|
|
182
|
+
message: string;
|
|
183
|
+
|
|
184
|
+
warnings?: Array<Results.Warning>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export namespace Results {
|
|
188
|
+
export interface Warning {
|
|
189
|
+
code: string;
|
|
190
|
+
|
|
191
|
+
message: string;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface ConnectorListProvidersResponse {
|
|
197
|
+
results: Array<string>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface ConnectorSyncResponse {
|
|
201
|
+
results: ConnectorSyncResponse.Results;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export namespace ConnectorSyncResponse {
|
|
205
|
+
export interface Results {
|
|
206
|
+
message: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export interface ConnectorListParams {
|
|
211
|
+
collection_id: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface ConnectorConnectParams {
|
|
215
|
+
collection_id: string;
|
|
216
|
+
|
|
217
|
+
config?: { [key: string]: unknown } | null;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface ConnectorDisconnectParams {
|
|
221
|
+
delete_memories?: boolean;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export declare namespace Connectors {
|
|
225
|
+
export {
|
|
226
|
+
type ConnectorRetrieveResponse as ConnectorRetrieveResponse,
|
|
227
|
+
type ConnectorListResponse as ConnectorListResponse,
|
|
228
|
+
type ConnectorConnectResponse as ConnectorConnectResponse,
|
|
229
|
+
type ConnectorDisconnectResponse as ConnectorDisconnectResponse,
|
|
230
|
+
type ConnectorListProvidersResponse as ConnectorListProvidersResponse,
|
|
231
|
+
type ConnectorSyncResponse as ConnectorSyncResponse,
|
|
232
|
+
type ConnectorListParams as ConnectorListParams,
|
|
233
|
+
type ConnectorConnectParams as ConnectorConnectParams,
|
|
234
|
+
type ConnectorDisconnectParams as ConnectorDisconnectParams,
|
|
235
|
+
};
|
|
236
|
+
}
|