@nebula-ai/sdk 1.3.0 → 1.4.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/LICENSE +18 -4
- package/README.md +42 -346
- package/dist/index.cjs +1268 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2824 -0
- package/dist/index.d.ts +2824 -0
- package/dist/index.js +1244 -0
- package/dist/index.js.map +1 -0
- package/package.json +40 -141
- package/CHANGELOG.md +0 -35
- package/api-promise.d.mts +0 -2
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -2
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -2
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -205
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -205
- package/client.d.ts.map +0 -1
- package/client.js +0 -505
- package/client.js.map +0 -1
- package/client.mjs +0 -501
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -46
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -74
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -70
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -46
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -113
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -97
- package/core/error.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -11
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -7
- package/core/resource.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -2
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -2
- package/error.d.ts.map +0 -1
- package/error.js +0 -6
- package/error.js.map +0 -1
- package/error.mjs +0 -2
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -13
- package/index.d.mts.map +0 -1
- package/index.d.ts +0 -13
- package/index.d.ts.map +0 -1
- package/index.js +0 -43
- package/index.js.map +0 -1
- package/index.mjs +0 -13
- package/index.mjs.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -73
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -4
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -3
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -41
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -36
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -20
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -79
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -74
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -12
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -40
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -37
- package/internal/parse.mjs.map +0 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -7
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -13
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -9
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -277
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -274
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -15
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -230
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/internal/request-options.d.mts +0 -79
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -79
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -14
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -10
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts +0 -17
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -4
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -3
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -20
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -20
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -92
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -85
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -45
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -88
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -81
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -4
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -3
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -42
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -131
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -38
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -33
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts +0 -4
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs +0 -26
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -22
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -18
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -37
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -86
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -80
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -74
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/query.d.mts +0 -2
- package/internal/utils/query.d.mts.map +0 -1
- package/internal/utils/query.d.ts +0 -2
- package/internal/utils/query.d.ts.map +0 -1
- package/internal/utils/query.js +0 -10
- package/internal/utils/query.js.map +0 -1
- package/internal/utils/query.mjs +0 -6
- package/internal/utils/query.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -7
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -3
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -19
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -15
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -18
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -112
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -94
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -8
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -8
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -12
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -9
- package/internal/utils.mjs.map +0 -1
- package/lib/dx.d.mts +0 -96
- package/lib/dx.d.mts.map +0 -1
- package/lib/dx.d.ts +0 -96
- package/lib/dx.d.ts.map +0 -1
- package/lib/dx.js +0 -239
- package/lib/dx.js.map +0 -1
- package/lib/dx.mjs +0 -235
- package/lib/dx.mjs.map +0 -1
- package/resource.d.mts +0 -2
- package/resource.d.mts.map +0 -1
- package/resource.d.ts +0 -2
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -6
- package/resource.js.map +0 -1
- package/resource.mjs +0 -2
- package/resource.mjs.map +0 -1
- package/resources/collections.d.mts +0 -289
- package/resources/collections.d.mts.map +0 -1
- package/resources/collections.d.ts +0 -289
- package/resources/collections.d.ts.map +0 -1
- package/resources/collections.js +0 -72
- package/resources/collections.js.map +0 -1
- package/resources/collections.mjs +0 -68
- package/resources/collections.mjs.map +0 -1
- package/resources/connectors.d.mts +0 -148
- package/resources/connectors.d.mts.map +0 -1
- package/resources/connectors.d.ts +0 -148
- package/resources/connectors.d.ts.map +0 -1
- package/resources/connectors.js +0 -50
- package/resources/connectors.js.map +0 -1
- package/resources/connectors.mjs +0 -46
- package/resources/connectors.mjs.map +0 -1
- package/resources/index.d.mts +0 -6
- package/resources/index.d.mts.map +0 -1
- package/resources/index.d.ts +0 -6
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -13
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -6
- package/resources/index.mjs.map +0 -1
- package/resources/memories.d.mts +0 -1737
- package/resources/memories.d.mts.map +0 -1
- package/resources/memories.d.ts +0 -1737
- package/resources/memories.d.ts.map +0 -1
- package/resources/memories.js +0 -157
- package/resources/memories.js.map +0 -1
- package/resources/memories.mjs +0 -153
- package/resources/memories.mjs.map +0 -1
- package/resources/snapshots.d.mts +0 -281
- package/resources/snapshots.d.mts.map +0 -1
- package/resources/snapshots.d.ts +0 -281
- package/resources/snapshots.d.ts.map +0 -1
- package/resources/snapshots.js +0 -22
- package/resources/snapshots.js.map +0 -1
- package/resources/snapshots.mjs +0 -18
- package/resources/snapshots.mjs.map +0 -1
- package/resources/top-level.d.mts +0 -14
- package/resources/top-level.d.mts.map +0 -1
- package/resources/top-level.d.ts +0 -14
- package/resources/top-level.d.ts.map +0 -1
- package/resources/top-level.js +0 -4
- package/resources/top-level.js.map +0 -1
- package/resources/top-level.mjs +0 -3
- package/resources/top-level.mjs.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/resources.d.ts +0 -2
- package/resources.d.ts.map +0 -1
- package/resources.js +0 -5
- package/resources.js.map +0 -1
- package/resources.mjs +0 -2
- package/resources.mjs.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/client.ts +0 -892
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -92
- package/src/core/error.ts +0 -130
- package/src/core/resource.ts +0 -11
- package/src/core/uploads.ts +0 -2
- package/src/error.ts +0 -2
- package/src/index.ts +0 -36
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -93
- package/src/internal/detect-platform.ts +0 -196
- package/src/internal/errors.ts +0 -33
- package/src/internal/headers.ts +0 -97
- package/src/internal/parse.ts +0 -56
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -10
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -385
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/internal/request-options.ts +0 -93
- package/src/internal/shim-types.ts +0 -26
- package/src/internal/shims.ts +0 -107
- package/src/internal/to-file.ts +0 -154
- package/src/internal/types.ts +0 -95
- package/src/internal/uploads.ts +0 -187
- package/src/internal/utils/base64.ts +0 -40
- package/src/internal/utils/bytes.ts +0 -32
- package/src/internal/utils/env.ts +0 -18
- package/src/internal/utils/log.ts +0 -127
- package/src/internal/utils/path.ts +0 -88
- package/src/internal/utils/query.ts +0 -7
- package/src/internal/utils/sleep.ts +0 -3
- package/src/internal/utils/uuid.ts +0 -17
- package/src/internal/utils/values.ts +0 -105
- package/src/internal/utils.ts +0 -9
- package/src/lib/.keep +0 -4
- package/src/lib/dx.ts +0 -459
- package/src/resource.ts +0 -2
- package/src/resources/collections.ts +0 -474
- package/src/resources/connectors.ts +0 -236
- package/src/resources/index.ts +0 -56
- package/src/resources/memories.ts +0 -2409
- package/src/resources/snapshots.ts +0 -387
- package/src/resources/top-level.ts +0 -19
- package/src/resources.ts +0 -1
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -2
- package/src/version.ts +0 -1
- package/uploads.d.mts +0 -2
- package/uploads.d.mts.map +0 -1
- package/uploads.d.ts +0 -2
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -6
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -2
- package/uploads.mjs.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../src/resources/collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;OAKG;IACH,cAAc,CACZ,cAAsB,EACtB,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,cAAc,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AA/ED,kCA+EC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { path } from "../internal/utils/path.mjs";
|
|
4
|
-
export class Collections extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new collection and automatically add the creating user to it.
|
|
7
|
-
*
|
|
8
|
-
* This endpoint allows authenticated users to create a new collection with a
|
|
9
|
-
* specified name and optional description. The user creating the collection is
|
|
10
|
-
* automatically added as a member.
|
|
11
|
-
*/
|
|
12
|
-
create(body, options) {
|
|
13
|
-
return this._client.post('/v1/collections', { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get details of a specific collection.
|
|
17
|
-
*
|
|
18
|
-
* This endpoint retrieves detailed information about a single collection
|
|
19
|
-
* identified by its UUID. The user must have access to the collection to view its
|
|
20
|
-
* details.
|
|
21
|
-
*/
|
|
22
|
-
retrieve(id, options) {
|
|
23
|
-
return this._client.get(path `/v1/collections/${id}`, options);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Update an existing collection's configuration.
|
|
27
|
-
*
|
|
28
|
-
* This endpoint allows updating the name, description, and access settings of an
|
|
29
|
-
* existing collection. The user must have appropriate permissions to modify the
|
|
30
|
-
* collection.
|
|
31
|
-
*/
|
|
32
|
-
update(id, body, options) {
|
|
33
|
-
return this._client.post(path `/v1/collections/${id}`, { body, ...options });
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Returns a paginated list of collections the authenticated user has access to.
|
|
37
|
-
*
|
|
38
|
-
* Results can be filtered by providing specific collection IDs. Regular users will
|
|
39
|
-
* only see collections they own or have access to. Superusers can see all
|
|
40
|
-
* collections.
|
|
41
|
-
*
|
|
42
|
-
* The collections are returned in order of last modification, with most recent
|
|
43
|
-
* first.
|
|
44
|
-
*/
|
|
45
|
-
list(query = {}, options) {
|
|
46
|
-
return this._client.get('/v1/collections', { query, ...options });
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Delete an existing collection.
|
|
50
|
-
*
|
|
51
|
-
* This endpoint allows deletion of a collection identified by its UUID. The user
|
|
52
|
-
* must have appropriate permissions to delete the collection. Deleting a
|
|
53
|
-
* collection removes all associations but does not delete the engrams within it.
|
|
54
|
-
*/
|
|
55
|
-
delete(id, options) {
|
|
56
|
-
return this._client.delete(path `/v1/collections/${id}`, options);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Retrieve a collection by its (owner_id, name) combination.
|
|
60
|
-
*
|
|
61
|
-
* The authenticated user can only fetch collections they own, or, if superuser,
|
|
62
|
-
* from anyone.
|
|
63
|
-
*/
|
|
64
|
-
retrieveByName(collectionName, query = {}, options) {
|
|
65
|
-
return this._client.get(path `/v1/collections/name/${collectionName}`, { query, ...options });
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=collections.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collections.mjs","sourceRoot":"","sources":["../src/resources/collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;OAKG;IACH,cAAc,CACZ,cAAsB,EACtB,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,cAAc,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class Connectors extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get a single connection by ID
|
|
7
|
-
*/
|
|
8
|
-
retrieve(connectionID: string, options?: RequestOptions): APIPromise<ConnectorRetrieveResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* List active connections for a collection
|
|
11
|
-
*/
|
|
12
|
-
list(query: ConnectorListParams, options?: RequestOptions): APIPromise<ConnectorListResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Start OAuth connection flow
|
|
15
|
-
*/
|
|
16
|
-
connect(provider: string, body: ConnectorConnectParams, options?: RequestOptions): APIPromise<ConnectorConnectResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Disconnect an external data source
|
|
19
|
-
*/
|
|
20
|
-
disconnect(connectionID: string, params?: ConnectorDisconnectParams | null | undefined, options?: RequestOptions): APIPromise<ConnectorDisconnectResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* List available connector providers
|
|
23
|
-
*/
|
|
24
|
-
listProviders(options?: RequestOptions): APIPromise<ConnectorListProvidersResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Manually trigger a sync
|
|
27
|
-
*/
|
|
28
|
-
sync(connectionID: string, options?: RequestOptions): APIPromise<ConnectorSyncResponse>;
|
|
29
|
-
}
|
|
30
|
-
export interface ConnectorRetrieveResponse {
|
|
31
|
-
results: ConnectorRetrieveResponse.Results;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace ConnectorRetrieveResponse {
|
|
34
|
-
interface Results {
|
|
35
|
-
id: string;
|
|
36
|
-
collection_id: string;
|
|
37
|
-
created_at: string;
|
|
38
|
-
provider: string;
|
|
39
|
-
status: 'active' | 'pending' | 'revoked';
|
|
40
|
-
updated_at: string;
|
|
41
|
-
user_id: string;
|
|
42
|
-
config?: {
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
} | null;
|
|
45
|
-
error_detail?: Results.ErrorDetail | null;
|
|
46
|
-
external_account_id?: string | null;
|
|
47
|
-
health?: 'ok' | 'error' | null;
|
|
48
|
-
items_synced?: number | null;
|
|
49
|
-
last_error?: string | null;
|
|
50
|
-
last_synced_at?: string | null;
|
|
51
|
-
next_sync_at?: string | null;
|
|
52
|
-
sync_cursor?: {
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
} | null;
|
|
55
|
-
token_expires_at?: string | null;
|
|
56
|
-
}
|
|
57
|
-
namespace Results {
|
|
58
|
-
interface ErrorDetail {
|
|
59
|
-
message: string;
|
|
60
|
-
retryable: boolean;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export interface ConnectorListResponse {
|
|
65
|
-
results: Array<ConnectorListResponse.Result>;
|
|
66
|
-
}
|
|
67
|
-
export declare namespace ConnectorListResponse {
|
|
68
|
-
interface Result {
|
|
69
|
-
id: string;
|
|
70
|
-
collection_id: string;
|
|
71
|
-
created_at: string;
|
|
72
|
-
provider: string;
|
|
73
|
-
status: 'active' | 'pending' | 'revoked';
|
|
74
|
-
updated_at: string;
|
|
75
|
-
user_id: string;
|
|
76
|
-
config?: {
|
|
77
|
-
[key: string]: unknown;
|
|
78
|
-
} | null;
|
|
79
|
-
error_detail?: Result.ErrorDetail | null;
|
|
80
|
-
external_account_id?: string | null;
|
|
81
|
-
health?: 'ok' | 'error' | null;
|
|
82
|
-
items_synced?: number | null;
|
|
83
|
-
last_error?: string | null;
|
|
84
|
-
last_synced_at?: string | null;
|
|
85
|
-
next_sync_at?: string | null;
|
|
86
|
-
sync_cursor?: {
|
|
87
|
-
[key: string]: unknown;
|
|
88
|
-
} | null;
|
|
89
|
-
token_expires_at?: string | null;
|
|
90
|
-
}
|
|
91
|
-
namespace Result {
|
|
92
|
-
interface ErrorDetail {
|
|
93
|
-
message: string;
|
|
94
|
-
retryable: boolean;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export interface ConnectorConnectResponse {
|
|
99
|
-
results: ConnectorConnectResponse.Results;
|
|
100
|
-
}
|
|
101
|
-
export declare namespace ConnectorConnectResponse {
|
|
102
|
-
interface Results {
|
|
103
|
-
auth_url: string;
|
|
104
|
-
state: string;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
export interface ConnectorDisconnectResponse {
|
|
108
|
-
results: ConnectorDisconnectResponse.Results;
|
|
109
|
-
}
|
|
110
|
-
export declare namespace ConnectorDisconnectResponse {
|
|
111
|
-
interface Results {
|
|
112
|
-
message: string;
|
|
113
|
-
warnings?: Array<Results.Warning>;
|
|
114
|
-
}
|
|
115
|
-
namespace Results {
|
|
116
|
-
interface Warning {
|
|
117
|
-
code: string;
|
|
118
|
-
message: string;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export interface ConnectorListProvidersResponse {
|
|
123
|
-
results: Array<string>;
|
|
124
|
-
}
|
|
125
|
-
export interface ConnectorSyncResponse {
|
|
126
|
-
results: ConnectorSyncResponse.Results;
|
|
127
|
-
}
|
|
128
|
-
export declare namespace ConnectorSyncResponse {
|
|
129
|
-
interface Results {
|
|
130
|
-
message: string;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
export interface ConnectorListParams {
|
|
134
|
-
collection_id: string;
|
|
135
|
-
}
|
|
136
|
-
export interface ConnectorConnectParams {
|
|
137
|
-
collection_id: string;
|
|
138
|
-
config?: {
|
|
139
|
-
[key: string]: unknown;
|
|
140
|
-
} | null;
|
|
141
|
-
}
|
|
142
|
-
export interface ConnectorDisconnectParams {
|
|
143
|
-
delete_memories?: boolean;
|
|
144
|
-
}
|
|
145
|
-
export declare namespace Connectors {
|
|
146
|
-
export { type ConnectorRetrieveResponse as ConnectorRetrieveResponse, type ConnectorListResponse as ConnectorListResponse, type ConnectorConnectResponse as ConnectorConnectResponse, type ConnectorDisconnectResponse as ConnectorDisconnectResponse, type ConnectorListProvidersResponse as ConnectorListProvidersResponse, type ConnectorSyncResponse as ConnectorSyncResponse, type ConnectorListParams as ConnectorListParams, type ConnectorConnectParams as ConnectorConnectParams, type ConnectorDisconnectParams as ConnectorDisconnectParams, };
|
|
147
|
-
}
|
|
148
|
-
//# sourceMappingURL=connectors.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.mts","sourceRoot":"","sources":["../src/resources/connectors.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI/F;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI7F;;OAEG;IACH,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;OAEG;IACH,UAAU,CACR,YAAY,EAAE,MAAM,EACpB,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAQ1C;;OAEG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAInF;;OAEG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGxF;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,yBAAyB,CAAC,OAAO,CAAC;CAC5C;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,OAAO;QACtB,EAAE,EAAE,MAAM,CAAC;QAEX,aAAa,EAAE,MAAM,CAAC;QAEtB,UAAU,EAAE,MAAM,CAAC;QAEnB,QAAQ,EAAE,MAAM,CAAC;QAEjB,MAAM,E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EAAE,MAAM,CAAC;YAEb,OAAO,EAAE,MAAM,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,qBAAqB,CAAC,OAAO,CAAC;CACxC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,OAAO;QACtB,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
export declare class Connectors extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get a single connection by ID
|
|
7
|
-
*/
|
|
8
|
-
retrieve(connectionID: string, options?: RequestOptions): APIPromise<ConnectorRetrieveResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* List active connections for a collection
|
|
11
|
-
*/
|
|
12
|
-
list(query: ConnectorListParams, options?: RequestOptions): APIPromise<ConnectorListResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Start OAuth connection flow
|
|
15
|
-
*/
|
|
16
|
-
connect(provider: string, body: ConnectorConnectParams, options?: RequestOptions): APIPromise<ConnectorConnectResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Disconnect an external data source
|
|
19
|
-
*/
|
|
20
|
-
disconnect(connectionID: string, params?: ConnectorDisconnectParams | null | undefined, options?: RequestOptions): APIPromise<ConnectorDisconnectResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* List available connector providers
|
|
23
|
-
*/
|
|
24
|
-
listProviders(options?: RequestOptions): APIPromise<ConnectorListProvidersResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Manually trigger a sync
|
|
27
|
-
*/
|
|
28
|
-
sync(connectionID: string, options?: RequestOptions): APIPromise<ConnectorSyncResponse>;
|
|
29
|
-
}
|
|
30
|
-
export interface ConnectorRetrieveResponse {
|
|
31
|
-
results: ConnectorRetrieveResponse.Results;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace ConnectorRetrieveResponse {
|
|
34
|
-
interface Results {
|
|
35
|
-
id: string;
|
|
36
|
-
collection_id: string;
|
|
37
|
-
created_at: string;
|
|
38
|
-
provider: string;
|
|
39
|
-
status: 'active' | 'pending' | 'revoked';
|
|
40
|
-
updated_at: string;
|
|
41
|
-
user_id: string;
|
|
42
|
-
config?: {
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
} | null;
|
|
45
|
-
error_detail?: Results.ErrorDetail | null;
|
|
46
|
-
external_account_id?: string | null;
|
|
47
|
-
health?: 'ok' | 'error' | null;
|
|
48
|
-
items_synced?: number | null;
|
|
49
|
-
last_error?: string | null;
|
|
50
|
-
last_synced_at?: string | null;
|
|
51
|
-
next_sync_at?: string | null;
|
|
52
|
-
sync_cursor?: {
|
|
53
|
-
[key: string]: unknown;
|
|
54
|
-
} | null;
|
|
55
|
-
token_expires_at?: string | null;
|
|
56
|
-
}
|
|
57
|
-
namespace Results {
|
|
58
|
-
interface ErrorDetail {
|
|
59
|
-
message: string;
|
|
60
|
-
retryable: boolean;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export interface ConnectorListResponse {
|
|
65
|
-
results: Array<ConnectorListResponse.Result>;
|
|
66
|
-
}
|
|
67
|
-
export declare namespace ConnectorListResponse {
|
|
68
|
-
interface Result {
|
|
69
|
-
id: string;
|
|
70
|
-
collection_id: string;
|
|
71
|
-
created_at: string;
|
|
72
|
-
provider: string;
|
|
73
|
-
status: 'active' | 'pending' | 'revoked';
|
|
74
|
-
updated_at: string;
|
|
75
|
-
user_id: string;
|
|
76
|
-
config?: {
|
|
77
|
-
[key: string]: unknown;
|
|
78
|
-
} | null;
|
|
79
|
-
error_detail?: Result.ErrorDetail | null;
|
|
80
|
-
external_account_id?: string | null;
|
|
81
|
-
health?: 'ok' | 'error' | null;
|
|
82
|
-
items_synced?: number | null;
|
|
83
|
-
last_error?: string | null;
|
|
84
|
-
last_synced_at?: string | null;
|
|
85
|
-
next_sync_at?: string | null;
|
|
86
|
-
sync_cursor?: {
|
|
87
|
-
[key: string]: unknown;
|
|
88
|
-
} | null;
|
|
89
|
-
token_expires_at?: string | null;
|
|
90
|
-
}
|
|
91
|
-
namespace Result {
|
|
92
|
-
interface ErrorDetail {
|
|
93
|
-
message: string;
|
|
94
|
-
retryable: boolean;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export interface ConnectorConnectResponse {
|
|
99
|
-
results: ConnectorConnectResponse.Results;
|
|
100
|
-
}
|
|
101
|
-
export declare namespace ConnectorConnectResponse {
|
|
102
|
-
interface Results {
|
|
103
|
-
auth_url: string;
|
|
104
|
-
state: string;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
export interface ConnectorDisconnectResponse {
|
|
108
|
-
results: ConnectorDisconnectResponse.Results;
|
|
109
|
-
}
|
|
110
|
-
export declare namespace ConnectorDisconnectResponse {
|
|
111
|
-
interface Results {
|
|
112
|
-
message: string;
|
|
113
|
-
warnings?: Array<Results.Warning>;
|
|
114
|
-
}
|
|
115
|
-
namespace Results {
|
|
116
|
-
interface Warning {
|
|
117
|
-
code: string;
|
|
118
|
-
message: string;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export interface ConnectorListProvidersResponse {
|
|
123
|
-
results: Array<string>;
|
|
124
|
-
}
|
|
125
|
-
export interface ConnectorSyncResponse {
|
|
126
|
-
results: ConnectorSyncResponse.Results;
|
|
127
|
-
}
|
|
128
|
-
export declare namespace ConnectorSyncResponse {
|
|
129
|
-
interface Results {
|
|
130
|
-
message: string;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
export interface ConnectorListParams {
|
|
134
|
-
collection_id: string;
|
|
135
|
-
}
|
|
136
|
-
export interface ConnectorConnectParams {
|
|
137
|
-
collection_id: string;
|
|
138
|
-
config?: {
|
|
139
|
-
[key: string]: unknown;
|
|
140
|
-
} | null;
|
|
141
|
-
}
|
|
142
|
-
export interface ConnectorDisconnectParams {
|
|
143
|
-
delete_memories?: boolean;
|
|
144
|
-
}
|
|
145
|
-
export declare namespace Connectors {
|
|
146
|
-
export { type ConnectorRetrieveResponse as ConnectorRetrieveResponse, type ConnectorListResponse as ConnectorListResponse, type ConnectorConnectResponse as ConnectorConnectResponse, type ConnectorDisconnectResponse as ConnectorDisconnectResponse, type ConnectorListProvidersResponse as ConnectorListProvidersResponse, type ConnectorSyncResponse as ConnectorSyncResponse, type ConnectorListParams as ConnectorListParams, type ConnectorConnectParams as ConnectorConnectParams, type ConnectorDisconnectParams as ConnectorDisconnectParams, };
|
|
147
|
-
}
|
|
148
|
-
//# sourceMappingURL=connectors.d.ts.map
|
|
@@ -1 +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,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,qBAAqB,CAAC,OAAO,CAAC;CACxC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,OAAO;QACtB,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
package/resources/connectors.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Connectors = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const path_1 = require("../internal/utils/path.js");
|
|
7
|
-
class Connectors extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get a single connection by ID
|
|
10
|
-
*/
|
|
11
|
-
retrieve(connectionID, options) {
|
|
12
|
-
return this._client.get((0, path_1.path) `/v1/connectors/${connectionID}`, options);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* List active connections for a collection
|
|
16
|
-
*/
|
|
17
|
-
list(query, options) {
|
|
18
|
-
return this._client.get('/v1/connectors', { query, ...options });
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Start OAuth connection flow
|
|
22
|
-
*/
|
|
23
|
-
connect(provider, body, options) {
|
|
24
|
-
return this._client.post((0, path_1.path) `/v1/connectors/${provider}/connect`, { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Disconnect an external data source
|
|
28
|
-
*/
|
|
29
|
-
disconnect(connectionID, params = {}, options) {
|
|
30
|
-
const { delete_memories } = params ?? {};
|
|
31
|
-
return this._client.delete((0, path_1.path) `/v1/connectors/${connectionID}`, {
|
|
32
|
-
query: { delete_memories },
|
|
33
|
-
...options,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* List available connector providers
|
|
38
|
-
*/
|
|
39
|
-
listProviders(options) {
|
|
40
|
-
return this._client.get('/v1/connectors/providers', options);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Manually trigger a sync
|
|
44
|
-
*/
|
|
45
|
-
sync(connectionID, options) {
|
|
46
|
-
return this._client.post((0, path_1.path) `/v1/connectors/${connectionID}/sync`, options);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.Connectors = Connectors;
|
|
50
|
-
//# sourceMappingURL=connectors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.js","sourceRoot":"","sources":["../src/resources/connectors.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,UAAW,SAA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@@ -1,46 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { path } from "../internal/utils/path.mjs";
|
|
4
|
-
export class Connectors extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get a single connection by ID
|
|
7
|
-
*/
|
|
8
|
-
retrieve(connectionID, options) {
|
|
9
|
-
return this._client.get(path `/v1/connectors/${connectionID}`, options);
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* List active connections for a collection
|
|
13
|
-
*/
|
|
14
|
-
list(query, options) {
|
|
15
|
-
return this._client.get('/v1/connectors', { query, ...options });
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Start OAuth connection flow
|
|
19
|
-
*/
|
|
20
|
-
connect(provider, body, options) {
|
|
21
|
-
return this._client.post(path `/v1/connectors/${provider}/connect`, { body, ...options });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Disconnect an external data source
|
|
25
|
-
*/
|
|
26
|
-
disconnect(connectionID, params = {}, options) {
|
|
27
|
-
const { delete_memories } = params ?? {};
|
|
28
|
-
return this._client.delete(path `/v1/connectors/${connectionID}`, {
|
|
29
|
-
query: { delete_memories },
|
|
30
|
-
...options,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* List available connector providers
|
|
35
|
-
*/
|
|
36
|
-
listProviders(options) {
|
|
37
|
-
return this._client.get('/v1/connectors/providers', options);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Manually trigger a sync
|
|
41
|
-
*/
|
|
42
|
-
sync(connectionID, options) {
|
|
43
|
-
return this._client.post(path `/v1/connectors/${connectionID}/sync`, options);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=connectors.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.mjs","source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,kBAAkB,YAAY,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
package/resources/index.d.mts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { Collections, type CollectionCreateResponse, type CollectionRetrieveResponse, type CollectionUpdateResponse, type CollectionListResponse, type CollectionDeleteResponse, type CollectionRetrieveByNameResponse, type CollectionCreateParams, type CollectionUpdateParams, type CollectionListParams, type CollectionRetrieveByNameParams, } from "./collections.mjs";
|
|
2
|
-
export { Connectors, type ConnectorRetrieveResponse, type ConnectorListResponse, type ConnectorConnectResponse, type ConnectorDisconnectResponse, type ConnectorListProvidersResponse, type ConnectorSyncResponse, type ConnectorListParams, type ConnectorConnectParams, type ConnectorDisconnectParams, } from "./connectors.mjs";
|
|
3
|
-
export { Memories, type MemoryCreateResponse, type MemoryRetrieveResponse, type MemoryUpdateResponse, type MemoryListResponse, type MemoryDeleteResponse, type MemoryAppendResponse, type MemoryCreateUploadResponse, type MemoryDeleteManyResponse, type MemoryDeleteUploadResponse, type MemorySearchResponse, type MemoryCreateParams, type MemoryUpdateParams, type MemoryListParams, type MemoryAppendParams, type MemoryCreateUploadParams, type MemoryDeleteManyParams, type MemoryDeleteUploadParams, type MemorySearchParams, } from "./memories.mjs";
|
|
4
|
-
export { Snapshots, type SnapshotExportResponse, type SnapshotImportResponse, type SnapshotExportParams, type SnapshotImportParams, } from "./snapshots.mjs";
|
|
5
|
-
export { type HealthResponse } from "./top-level.mjs";
|
|
6
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,GACpC;OACM,EACL,UAAU,EACV,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,GACxB;OACM,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EAAE,KAAK,cAAc,EAAE"}
|
package/resources/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { Collections, type CollectionCreateResponse, type CollectionRetrieveResponse, type CollectionUpdateResponse, type CollectionListResponse, type CollectionDeleteResponse, type CollectionRetrieveByNameResponse, type CollectionCreateParams, type CollectionUpdateParams, type CollectionListParams, type CollectionRetrieveByNameParams, } from "./collections.js";
|
|
2
|
-
export { Connectors, type ConnectorRetrieveResponse, type ConnectorListResponse, type ConnectorConnectResponse, type ConnectorDisconnectResponse, type ConnectorListProvidersResponse, type ConnectorSyncResponse, type ConnectorListParams, type ConnectorConnectParams, type ConnectorDisconnectParams, } from "./connectors.js";
|
|
3
|
-
export { Memories, type MemoryCreateResponse, type MemoryRetrieveResponse, type MemoryUpdateResponse, type MemoryListResponse, type MemoryDeleteResponse, type MemoryAppendResponse, type MemoryCreateUploadResponse, type MemoryDeleteManyResponse, type MemoryDeleteUploadResponse, type MemorySearchResponse, type MemoryCreateParams, type MemoryUpdateParams, type MemoryListParams, type MemoryAppendParams, type MemoryCreateUploadParams, type MemoryDeleteManyParams, type MemoryDeleteUploadParams, type MemorySearchParams, } from "./memories.js";
|
|
4
|
-
export { Snapshots, type SnapshotExportResponse, type SnapshotImportResponse, type SnapshotExportParams, type SnapshotImportParams, } from "./snapshots.js";
|
|
5
|
-
export { type HealthResponse } from "./top-level.js";
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,GACpC;OACM,EACL,UAAU,EACV,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,GACxB;OACM,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EAAE,KAAK,cAAc,EAAE"}
|
package/resources/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Snapshots = exports.Memories = exports.Connectors = exports.Collections = void 0;
|
|
5
|
-
var collections_1 = require("./collections.js");
|
|
6
|
-
Object.defineProperty(exports, "Collections", { enumerable: true, get: function () { return collections_1.Collections; } });
|
|
7
|
-
var connectors_1 = require("./connectors.js");
|
|
8
|
-
Object.defineProperty(exports, "Connectors", { enumerable: true, get: function () { return connectors_1.Connectors; } });
|
|
9
|
-
var memories_1 = require("./memories.js");
|
|
10
|
-
Object.defineProperty(exports, "Memories", { enumerable: true, get: function () { return memories_1.Memories; } });
|
|
11
|
-
var snapshots_1 = require("./snapshots.js");
|
|
12
|
-
Object.defineProperty(exports, "Snapshots", { enumerable: true, get: function () { return snapshots_1.Snapshots; } });
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAYuB;AAXrB,0GAAA,WAAW,OAAA;AAYb,8CAWsB;AAVpB,wGAAA,UAAU,OAAA;AAWZ,0CAoBoB;AAnBlB,oGAAA,QAAQ,OAAA;AAoBV,4CAMqB;AALnB,sGAAA,SAAS,OAAA"}
|
package/resources/index.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { Collections, } from "./collections.mjs";
|
|
3
|
-
export { Connectors, } from "./connectors.mjs";
|
|
4
|
-
export { Memories, } from "./memories.mjs";
|
|
5
|
-
export { Snapshots, } from "./snapshots.mjs";
|
|
6
|
-
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAWZ;OACM,EACL,UAAU,GAUX;OACM,EACL,QAAQ,GAmBT;OACM,EACL,SAAS,GAKV"}
|