@tambo-ai/typescript-sdk 0.70.0 → 0.72.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 +25 -0
- package/README.md +117 -48
- 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/bin/cli +53 -0
- package/bin/migration-config.json +213 -0
- package/client.d.mts +213 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +213 -0
- package/client.d.ts.map +1 -0
- package/client.js +504 -0
- package/client.js.map +1 -0
- package/client.mjs +500 -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/pagination.d.mts +56 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +56 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +111 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +105 -0
- package/core/pagination.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 +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +8 -146
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -144
- package/index.d.ts.map +1 -1
- package/index.js +21 -155
- package/index.js.map +1 -1
- package/index.mjs +6 -121
- package/index.mjs.map +1 -1
- 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 +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -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/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 +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/lib/advance-stream.d.mts +5 -0
- package/lib/advance-stream.d.mts.map +1 -0
- package/lib/advance-stream.d.ts +3 -3
- package/lib/advance-stream.d.ts.map +1 -1
- package/lib/advance-stream.js +1 -2
- package/lib/advance-stream.js.map +1 -1
- package/lib/advance-stream.mjs.map +1 -1
- package/package.json +123 -62
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +1 -19
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -43
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -41
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/beta/auth.d.mts +103 -0
- package/resources/beta/auth.d.mts.map +1 -0
- package/resources/beta/auth.d.ts +5 -4
- package/resources/beta/auth.d.ts.map +1 -1
- package/resources/beta/auth.js +3 -2
- package/resources/beta/auth.js.map +1 -1
- package/resources/beta/auth.mjs +3 -2
- package/resources/beta/auth.mjs.map +1 -1
- package/resources/beta/beta.d.mts +22 -0
- package/resources/beta/beta.d.mts.map +1 -0
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +6 -29
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +2 -3
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +6 -0
- package/resources/beta/index.d.mts.map +1 -0
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +1 -2
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/projects/api-key.d.mts +43 -0
- package/resources/beta/projects/api-key.d.mts.map +1 -0
- package/resources/beta/projects/api-key.d.ts +10 -6
- package/resources/beta/projects/api-key.d.ts.map +1 -1
- package/resources/beta/projects/api-key.js +7 -5
- package/resources/beta/projects/api-key.js.map +1 -1
- package/resources/beta/projects/api-key.mjs +7 -5
- package/resources/beta/projects/api-key.mjs.map +1 -1
- package/resources/beta/projects/index.d.mts +4 -0
- package/resources/beta/projects/index.d.mts.map +1 -0
- package/resources/beta/projects/index.d.ts +2 -2
- package/resources/beta/projects/index.d.ts.map +1 -1
- package/resources/beta/projects/index.js.map +1 -1
- package/resources/beta/projects/index.mjs +2 -2
- package/resources/beta/projects/index.mjs.map +1 -1
- package/resources/beta/projects/projects.d.mts +75 -0
- package/resources/beta/projects/projects.d.mts.map +1 -0
- package/resources/beta/projects/projects.d.ts +14 -9
- package/resources/beta/projects/projects.d.ts.map +1 -1
- package/resources/beta/projects/projects.js +7 -28
- package/resources/beta/projects/projects.js.map +1 -1
- package/resources/beta/projects/projects.mjs +5 -4
- package/resources/beta/projects/projects.mjs.map +1 -1
- package/resources/beta/projects/provider-key.d.mts +44 -0
- package/resources/beta/projects/provider-key.d.mts.map +1 -0
- package/resources/beta/projects/provider-key.d.ts +10 -6
- package/resources/beta/projects/provider-key.d.ts.map +1 -1
- package/resources/beta/projects/provider-key.js +7 -5
- package/resources/beta/projects/provider-key.js.map +1 -1
- package/resources/beta/projects/provider-key.mjs +7 -5
- package/resources/beta/projects/provider-key.mjs.map +1 -1
- package/resources/beta/projects.d.mts +2 -0
- package/resources/beta/projects.d.mts.map +1 -0
- package/resources/beta/projects.d.ts.map +1 -1
- package/resources/beta/projects.js +2 -15
- package/resources/beta/projects.js.map +1 -1
- package/resources/beta/registry.d.mts +19 -0
- package/resources/beta/registry.d.mts.map +1 -0
- package/resources/beta/registry.d.ts +4 -3
- package/resources/beta/registry.d.ts.map +1 -1
- package/resources/beta/registry.js +3 -2
- package/resources/beta/registry.js.map +1 -1
- package/resources/beta/registry.mjs +3 -2
- package/resources/beta/registry.mjs.map +1 -1
- package/resources/beta/threads/index.d.mts +4 -0
- package/resources/beta/threads/index.d.mts.map +1 -0
- package/resources/beta/threads/index.d.ts +3 -3
- package/resources/beta/threads/index.d.ts.map +1 -1
- package/resources/beta/threads/index.js +1 -2
- package/resources/beta/threads/index.js.map +1 -1
- package/resources/beta/threads/index.mjs +1 -1
- package/resources/beta/threads/index.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +112 -0
- package/resources/beta/threads/messages.d.mts.map +1 -0
- package/resources/beta/threads/messages.d.ts +26 -14
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +23 -18
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +23 -18
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/suggestions.d.mts +92 -0
- package/resources/beta/threads/suggestions.d.mts.map +1 -0
- package/resources/beta/threads/suggestions.d.ts +20 -9
- package/resources/beta/threads/suggestions.d.ts.map +1 -1
- package/resources/beta/threads/suggestions.js +10 -7
- package/resources/beta/threads/suggestions.js.map +1 -1
- package/resources/beta/threads/suggestions.mjs +10 -7
- package/resources/beta/threads/suggestions.mjs.map +1 -1
- package/resources/beta/threads/threads.d.mts +482 -0
- package/resources/beta/threads/threads.d.mts.map +1 -0
- package/resources/beta/threads/threads.d.ts +120 -24
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js +48 -54
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +44 -27
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/beta/threads.d.mts +2 -0
- package/resources/beta/threads.d.mts.map +1 -0
- package/resources/beta/threads.d.ts.map +1 -1
- package/resources/beta/threads.js +2 -15
- package/resources/beta/threads.js.map +1 -1
- package/resources/beta.d.mts +2 -0
- package/resources/beta.d.mts.map +1 -0
- package/resources/beta.d.ts.map +1 -1
- package/resources/beta.js +2 -15
- package/resources/beta.js.map +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -15
- package/resources/index.js.map +1 -1
- package/resources/shared.d.mts +46 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +818 -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/pagination.ts +174 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +12 -263
- 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 +50 -0
- package/src/internal/request-options.ts +91 -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/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 +8 -0
- package/src/lib/advance-stream.ts +5 -6
- package/src/pagination.ts +2 -73
- package/src/resource.ts +2 -11
- package/src/resources/beta/auth.ts +7 -8
- package/src/resources/beta/beta.ts +2 -3
- package/src/resources/beta/index.ts +1 -1
- package/src/resources/beta/projects/api-key.ts +23 -8
- package/src/resources/beta/projects/index.ts +12 -2
- package/src/resources/beta/projects/projects.ts +26 -9
- package/src/resources/beta/projects/provider-key.ts +18 -10
- package/src/resources/beta/registry.ts +6 -4
- package/src/resources/beta/threads/index.ts +3 -1
- package/src/resources/beta/threads/messages.ts +43 -33
- package/src/resources/beta/threads/suggestions.ts +33 -17
- package/src/resources/beta/threads/threads.ts +159 -64
- package/src/tsconfig.json +2 -1
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1236
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { APIResource } from "../../../resource.js";
|
|
2
|
-
import
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
3
4
|
export declare class APIKey extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
@@ -9,17 +10,17 @@ export declare class APIKey extends APIResource {
|
|
|
9
10
|
* );
|
|
10
11
|
* ```
|
|
11
12
|
*/
|
|
12
|
-
list(id: string, options?:
|
|
13
|
+
list(id: string, options?: RequestOptions): APIPromise<APIKeyListResponse>;
|
|
13
14
|
/**
|
|
14
15
|
* @example
|
|
15
16
|
* ```ts
|
|
16
17
|
* const apiKey = await client.beta.projects.apiKey.delete(
|
|
17
|
-
* 'id',
|
|
18
18
|
* 'apiKeyId',
|
|
19
|
+
* { id: 'id' },
|
|
19
20
|
* );
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
|
-
delete(
|
|
23
|
+
delete(apiKeyID: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<APIKeyDeleteResponse>;
|
|
23
24
|
}
|
|
24
25
|
export type APIKeyListResponse = Array<APIKeyListResponse.APIKeyListResponseItem>;
|
|
25
26
|
export declare namespace APIKeyListResponse {
|
|
@@ -33,7 +34,10 @@ export declare namespace APIKeyListResponse {
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
export type APIKeyDeleteResponse = boolean;
|
|
37
|
+
export interface APIKeyDeleteParams {
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
36
40
|
export declare namespace APIKey {
|
|
37
|
-
export { type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse };
|
|
41
|
+
export { type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyDeleteParams as APIKeyDeleteParams, };
|
|
38
42
|
}
|
|
39
43
|
//# sourceMappingURL=api-key.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1E;;;;;;;;OAQG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAIpC;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAElF,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,sBAAsB;QACrC,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.APIKey = void 0;
|
|
5
|
-
const resource_1 = require("../../../resource.js");
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
6
7
|
class APIKey extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* @example
|
|
@@ -13,19 +14,20 @@ class APIKey extends resource_1.APIResource {
|
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
16
|
list(id, options) {
|
|
16
|
-
return this._client.get(`/projects/${id}/api-keys`, options);
|
|
17
|
+
return this._client.get((0, path_1.path) `/projects/${id}/api-keys`, options);
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* @example
|
|
20
21
|
* ```ts
|
|
21
22
|
* const apiKey = await client.beta.projects.apiKey.delete(
|
|
22
|
-
* 'id',
|
|
23
23
|
* 'apiKeyId',
|
|
24
|
+
* { id: 'id' },
|
|
24
25
|
* );
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
|
-
delete(
|
|
28
|
-
|
|
28
|
+
delete(apiKeyID, params, options) {
|
|
29
|
+
const { id } = params;
|
|
30
|
+
return this._client.delete((0, path_1.path) `/projects/${id}/api-key/${apiKeyID}`, options);
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
exports.APIKey = APIKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;CACF;AA9BD,wBA8BC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
3
4
|
export class APIKey extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
@@ -10,19 +11,20 @@ export class APIKey extends APIResource {
|
|
|
10
11
|
* ```
|
|
11
12
|
*/
|
|
12
13
|
list(id, options) {
|
|
13
|
-
return this._client.get(`/projects/${id}/api-keys`, options);
|
|
14
|
+
return this._client.get(path `/projects/${id}/api-keys`, options);
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* @example
|
|
17
18
|
* ```ts
|
|
18
19
|
* const apiKey = await client.beta.projects.apiKey.delete(
|
|
19
|
-
* 'id',
|
|
20
20
|
* 'apiKeyId',
|
|
21
|
+
* { id: 'id' },
|
|
21
22
|
* );
|
|
22
23
|
* ```
|
|
23
24
|
*/
|
|
24
|
-
delete(
|
|
25
|
-
|
|
25
|
+
delete(apiKeyID, params, options) {
|
|
26
|
+
const { id } = params;
|
|
27
|
+
return this._client.delete(path `/projects/${id}/api-key/${apiKeyID}`, options);
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
//# sourceMappingURL=api-key.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.mjs","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"api-key.mjs","sourceRoot":"","sources":["../../../src/resources/beta/projects/api-key.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,YAAY,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { APIKey, type APIKeyListResponse, type APIKeyDeleteResponse, type APIKeyDeleteParams, } from "./api-key.mjs";
|
|
2
|
+
export { Projects, type ProjectRetrieveResponse, type ProjectDeleteResponse, type ProjectGetCurrentResponse, } from "./projects.mjs";
|
|
3
|
+
export { ProviderKey, type ProviderKeyListResponse, type ProviderKeyDeleteResponse, type ProviderKeyDeleteParams, } from "./provider-key.mjs";
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,GAC/B;OACM,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { APIKey, type APIKeyListResponse, type APIKeyDeleteResponse } from "./api-key.js";
|
|
1
|
+
export { APIKey, type APIKeyListResponse, type APIKeyDeleteResponse, type APIKeyDeleteParams, } from "./api-key.js";
|
|
2
2
|
export { Projects, type ProjectRetrieveResponse, type ProjectDeleteResponse, type ProjectGetCurrentResponse, } from "./projects.js";
|
|
3
|
-
export { ProviderKey, type ProviderKeyListResponse, type ProviderKeyDeleteResponse } from "./provider-key.js";
|
|
3
|
+
export { ProviderKey, type ProviderKeyListResponse, type ProviderKeyDeleteResponse, type ProviderKeyDeleteParams, } from "./provider-key.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,GAC/B;OACM,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,iGAAA,MAAM,OAAA;AAKR,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA;AAKV,kDAKwB;AAJtB,2GAAA,WAAW,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { APIKey } from "./api-key.mjs";
|
|
2
|
+
export { APIKey, } from "./api-key.mjs";
|
|
3
3
|
export { Projects, } from "./projects.mjs";
|
|
4
|
-
export { ProviderKey } from "./provider-key.mjs";
|
|
4
|
+
export { ProviderKey, } from "./provider-key.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/beta/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAIP;OACM,EACL,QAAQ,GAIT;OACM,EACL,WAAW,GAIZ"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as APIKeyAPI from "./api-key.mjs";
|
|
3
|
+
import { APIKey, APIKeyDeleteParams, APIKeyDeleteResponse, APIKeyListResponse } from "./api-key.mjs";
|
|
4
|
+
import * as ProviderKeyAPI from "./provider-key.mjs";
|
|
5
|
+
import { ProviderKey, ProviderKeyDeleteParams, ProviderKeyDeleteResponse, ProviderKeyListResponse } from "./provider-key.mjs";
|
|
6
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
8
|
+
export declare class Projects extends APIResource {
|
|
9
|
+
apiKey: APIKeyAPI.APIKey;
|
|
10
|
+
providerKey: ProviderKeyAPI.ProviderKey;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const project = await client.beta.projects.retrieve('id');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ProjectRetrieveResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const project = await client.beta.projects.delete('id');
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
delete(id: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const response = await client.beta.projects.getCurrent();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
getCurrent(options?: RequestOptions): APIPromise<ProjectGetCurrentResponse>;
|
|
32
|
+
}
|
|
33
|
+
export interface ProjectRetrieveResponse {
|
|
34
|
+
id: string;
|
|
35
|
+
isTokenRequired: boolean;
|
|
36
|
+
name: string;
|
|
37
|
+
providerType: 'llm' | 'agent';
|
|
38
|
+
userId: string;
|
|
39
|
+
agentName?: string;
|
|
40
|
+
agentProviderType?: 'ag-ui' | 'mastra' | 'crewai' | 'llamaindex' | 'langgraph' | 'pydanticai';
|
|
41
|
+
agentUrl?: string;
|
|
42
|
+
allowSystemPromptOverride?: boolean;
|
|
43
|
+
customInstructions?: string;
|
|
44
|
+
customLlmBaseURL?: string;
|
|
45
|
+
customLlmModelName?: string;
|
|
46
|
+
customLlmParameters?: unknown;
|
|
47
|
+
defaultLlmModelName?: string;
|
|
48
|
+
defaultLlmProviderName?: string;
|
|
49
|
+
maxInputTokens?: number | null;
|
|
50
|
+
}
|
|
51
|
+
export type ProjectDeleteResponse = boolean;
|
|
52
|
+
export interface ProjectGetCurrentResponse {
|
|
53
|
+
id: string;
|
|
54
|
+
isTokenRequired: boolean;
|
|
55
|
+
name: string;
|
|
56
|
+
providerType: 'llm' | 'agent';
|
|
57
|
+
userId: string;
|
|
58
|
+
agentName?: string;
|
|
59
|
+
agentProviderType?: 'ag-ui' | 'mastra' | 'crewai' | 'llamaindex' | 'langgraph' | 'pydanticai';
|
|
60
|
+
agentUrl?: string;
|
|
61
|
+
allowSystemPromptOverride?: boolean;
|
|
62
|
+
customInstructions?: string;
|
|
63
|
+
customLlmBaseURL?: string;
|
|
64
|
+
customLlmModelName?: string;
|
|
65
|
+
customLlmParameters?: unknown;
|
|
66
|
+
defaultLlmModelName?: string;
|
|
67
|
+
defaultLlmProviderName?: string;
|
|
68
|
+
maxInputTokens?: number | null;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace Projects {
|
|
71
|
+
export { type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectGetCurrentResponse as ProjectGetCurrentResponse, };
|
|
72
|
+
export { APIKey as APIKey, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyDeleteParams as APIKeyDeleteParams, };
|
|
73
|
+
export { ProviderKey as ProviderKey, type ProviderKeyListResponse as ProviderKeyListResponse, type ProviderKeyDeleteResponse as ProviderKeyDeleteResponse, type ProviderKeyDeleteParams as ProviderKeyDeleteParams, };
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=projects.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/projects/projects.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { APIResource } from "../../../resource.js";
|
|
2
|
-
import * as Core from "../../../core.js";
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
3
2
|
import * as APIKeyAPI from "./api-key.js";
|
|
4
|
-
import { APIKey, APIKeyDeleteResponse, APIKeyListResponse } from "./api-key.js";
|
|
3
|
+
import { APIKey, APIKeyDeleteParams, APIKeyDeleteResponse, APIKeyListResponse } from "./api-key.js";
|
|
5
4
|
import * as ProviderKeyAPI from "./provider-key.js";
|
|
6
|
-
import { ProviderKey, ProviderKeyDeleteResponse, ProviderKeyListResponse } from "./provider-key.js";
|
|
5
|
+
import { ProviderKey, ProviderKeyDeleteParams, ProviderKeyDeleteResponse, ProviderKeyListResponse } from "./provider-key.js";
|
|
6
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
8
|
export declare class Projects extends APIResource {
|
|
8
9
|
apiKey: APIKeyAPI.APIKey;
|
|
9
10
|
providerKey: ProviderKeyAPI.ProviderKey;
|
|
@@ -13,21 +14,21 @@ export declare class Projects extends APIResource {
|
|
|
13
14
|
* const project = await client.beta.projects.retrieve('id');
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
|
-
retrieve(id: string, options?:
|
|
17
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ProjectRetrieveResponse>;
|
|
17
18
|
/**
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
20
21
|
* const project = await client.beta.projects.delete('id');
|
|
21
22
|
* ```
|
|
22
23
|
*/
|
|
23
|
-
delete(id: string, options?:
|
|
24
|
+
delete(id: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse>;
|
|
24
25
|
/**
|
|
25
26
|
* @example
|
|
26
27
|
* ```ts
|
|
27
28
|
* const response = await client.beta.projects.getCurrent();
|
|
28
29
|
* ```
|
|
29
30
|
*/
|
|
30
|
-
getCurrent(options?:
|
|
31
|
+
getCurrent(options?: RequestOptions): APIPromise<ProjectGetCurrentResponse>;
|
|
31
32
|
}
|
|
32
33
|
export interface ProjectRetrieveResponse {
|
|
33
34
|
id: string;
|
|
@@ -38,9 +39,11 @@ export interface ProjectRetrieveResponse {
|
|
|
38
39
|
agentName?: string;
|
|
39
40
|
agentProviderType?: 'ag-ui' | 'mastra' | 'crewai' | 'llamaindex' | 'langgraph' | 'pydanticai';
|
|
40
41
|
agentUrl?: string;
|
|
42
|
+
allowSystemPromptOverride?: boolean;
|
|
41
43
|
customInstructions?: string;
|
|
42
44
|
customLlmBaseURL?: string;
|
|
43
45
|
customLlmModelName?: string;
|
|
46
|
+
customLlmParameters?: unknown;
|
|
44
47
|
defaultLlmModelName?: string;
|
|
45
48
|
defaultLlmProviderName?: string;
|
|
46
49
|
maxInputTokens?: number | null;
|
|
@@ -55,16 +58,18 @@ export interface ProjectGetCurrentResponse {
|
|
|
55
58
|
agentName?: string;
|
|
56
59
|
agentProviderType?: 'ag-ui' | 'mastra' | 'crewai' | 'llamaindex' | 'langgraph' | 'pydanticai';
|
|
57
60
|
agentUrl?: string;
|
|
61
|
+
allowSystemPromptOverride?: boolean;
|
|
58
62
|
customInstructions?: string;
|
|
59
63
|
customLlmBaseURL?: string;
|
|
60
64
|
customLlmModelName?: string;
|
|
65
|
+
customLlmParameters?: unknown;
|
|
61
66
|
defaultLlmModelName?: string;
|
|
62
67
|
defaultLlmProviderName?: string;
|
|
63
68
|
maxInputTokens?: number | null;
|
|
64
69
|
}
|
|
65
70
|
export declare namespace Projects {
|
|
66
71
|
export { type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectGetCurrentResponse as ProjectGetCurrentResponse, };
|
|
67
|
-
export { APIKey as APIKey, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, };
|
|
68
|
-
export { ProviderKey as ProviderKey, type ProviderKeyListResponse as ProviderKeyListResponse, type ProviderKeyDeleteResponse as ProviderKeyDeleteResponse, };
|
|
72
|
+
export { APIKey as APIKey, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyDeleteParams as APIKeyDeleteParams, };
|
|
73
|
+
export { ProviderKey as ProviderKey, type ProviderKeyListResponse as ProviderKeyListResponse, type ProviderKeyDeleteResponse as ProviderKeyDeleteResponse, type ProviderKeyDeleteParams as ProviderKeyDeleteParams, };
|
|
69
74
|
}
|
|
70
75
|
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/projects.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/projects.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE;OACxE,KAAK,cAAc;OACnB,EACL,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACxB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInF;;;;;OAKG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI/E;;;;;OAKG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAG5E;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IAEX,eAAe,EAAE,OAAO,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IAEb,YAAY,EAAE,KAAK,GAAG,OAAO,CAAC;IAE9B,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iBAAiB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,CAAC;IAE9F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAE5C,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IAEX,eAAe,EAAE,OAAO,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IAEb,YAAY,EAAE,KAAK,GAAG,OAAO,CAAC;IAE9B,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iBAAiB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,CAAC;IAE9F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
4
|
exports.Projects = void 0;
|
|
28
|
-
const
|
|
29
|
-
const
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const APIKeyAPI = tslib_1.__importStar(require("./api-key.js"));
|
|
30
8
|
const api_key_1 = require("./api-key.js");
|
|
31
|
-
const ProviderKeyAPI = __importStar(require("./provider-key.js"));
|
|
9
|
+
const ProviderKeyAPI = tslib_1.__importStar(require("./provider-key.js"));
|
|
32
10
|
const provider_key_1 = require("./provider-key.js");
|
|
11
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
33
12
|
class Projects extends resource_1.APIResource {
|
|
34
13
|
constructor() {
|
|
35
14
|
super(...arguments);
|
|
@@ -43,7 +22,7 @@ class Projects extends resource_1.APIResource {
|
|
|
43
22
|
* ```
|
|
44
23
|
*/
|
|
45
24
|
retrieve(id, options) {
|
|
46
|
-
return this._client.get(`/projects/${id}`, options);
|
|
25
|
+
return this._client.get((0, path_1.path) `/projects/${id}`, options);
|
|
47
26
|
}
|
|
48
27
|
/**
|
|
49
28
|
* @example
|
|
@@ -52,7 +31,7 @@ class Projects extends resource_1.APIResource {
|
|
|
52
31
|
* ```
|
|
53
32
|
*/
|
|
54
33
|
delete(id, options) {
|
|
55
|
-
return this._client.delete(`/projects/${id}`, options);
|
|
34
|
+
return this._client.delete((0, path_1.path) `/projects/${id}`, options);
|
|
56
35
|
}
|
|
57
36
|
/**
|
|
58
37
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/projects.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/projects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,gEAAuC;AACvC,0CAAiG;AACjG,0EAAiD;AACjD,oDAKwB;AAGxB,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+BzF,CAAC;IA7BC;;;;;OAKG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAjCD,4BAiCC;AAwED,QAAQ,CAAC,MAAM,GAAG,gBAAM,CAAC;AACzB,QAAQ,CAAC,WAAW,GAAG,0BAAW,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as APIKeyAPI from "./api-key.mjs";
|
|
4
4
|
import { APIKey } from "./api-key.mjs";
|
|
5
5
|
import * as ProviderKeyAPI from "./provider-key.mjs";
|
|
6
|
-
import { ProviderKey } from "./provider-key.mjs";
|
|
6
|
+
import { ProviderKey, } from "./provider-key.mjs";
|
|
7
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
7
8
|
export class Projects extends APIResource {
|
|
8
9
|
constructor() {
|
|
9
10
|
super(...arguments);
|
|
@@ -17,7 +18,7 @@ export class Projects extends APIResource {
|
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
20
|
retrieve(id, options) {
|
|
20
|
-
return this._client.get(`/projects/${id}`, options);
|
|
21
|
+
return this._client.get(path `/projects/${id}`, options);
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* @example
|
|
@@ -26,7 +27,7 @@ export class Projects extends APIResource {
|
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
29
|
delete(id, options) {
|
|
29
|
-
return this._client.delete(`/projects/${id}`, options);
|
|
30
|
+
return this._client.delete(path `/projects/${id}`, options);
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.mjs","sourceRoot":"","sources":["../../../src/resources/beta/projects/projects.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"projects.mjs","sourceRoot":"","sources":["../../../src/resources/beta/projects/projects.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAgE;OACxE,KAAK,cAAc;OACnB,EACL,WAAW,GAIZ;OAGM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+BzF,CAAC;IA7BC;;;;;OAKG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAwED,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ProviderKey extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* const providerKeys =
|
|
9
|
+
* await client.beta.projects.providerKey.list('id');
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
list(id: string, options?: RequestOptions): APIPromise<ProviderKeyListResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const providerKey =
|
|
17
|
+
* await client.beta.projects.providerKey.delete(
|
|
18
|
+
* 'providerKeyId',
|
|
19
|
+
* { id: 'id' },
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
delete(providerKeyID: string, params: ProviderKeyDeleteParams, options?: RequestOptions): APIPromise<ProviderKeyDeleteResponse>;
|
|
24
|
+
}
|
|
25
|
+
export type ProviderKeyListResponse = Array<ProviderKeyListResponse.ProviderKeyListResponseItem>;
|
|
26
|
+
export declare namespace ProviderKeyListResponse {
|
|
27
|
+
interface ProviderKeyListResponseItem {
|
|
28
|
+
id?: string;
|
|
29
|
+
partiallyHiddenKey?: string;
|
|
30
|
+
providerKeyEncrypted?: string;
|
|
31
|
+
providerName?: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export interface ProviderKeyDeleteResponse {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ProviderKeyDeleteParams {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace ProviderKey {
|
|
42
|
+
export { type ProviderKeyListResponse as ProviderKeyListResponse, type ProviderKeyDeleteResponse as ProviderKeyDeleteResponse, type ProviderKeyDeleteParams as ProviderKeyDeleteParams, };
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=provider-key.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-key.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/projects/provider-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI/E;;;;;;;;;OASG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAIzC;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAC;AAEjG,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,2BAA2B;QAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAE9B,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { APIResource } from "../../../resource.js";
|
|
2
|
-
import
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
3
4
|
export declare class ProviderKey extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
@@ -8,18 +9,18 @@ export declare class ProviderKey extends APIResource {
|
|
|
8
9
|
* await client.beta.projects.providerKey.list('id');
|
|
9
10
|
* ```
|
|
10
11
|
*/
|
|
11
|
-
list(id: string, options?:
|
|
12
|
+
list(id: string, options?: RequestOptions): APIPromise<ProviderKeyListResponse>;
|
|
12
13
|
/**
|
|
13
14
|
* @example
|
|
14
15
|
* ```ts
|
|
15
16
|
* const providerKey =
|
|
16
17
|
* await client.beta.projects.providerKey.delete(
|
|
17
|
-
* 'id',
|
|
18
18
|
* 'providerKeyId',
|
|
19
|
+
* { id: 'id' },
|
|
19
20
|
* );
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
|
-
delete(
|
|
23
|
+
delete(providerKeyID: string, params: ProviderKeyDeleteParams, options?: RequestOptions): APIPromise<ProviderKeyDeleteResponse>;
|
|
23
24
|
}
|
|
24
25
|
export type ProviderKeyListResponse = Array<ProviderKeyListResponse.ProviderKeyListResponseItem>;
|
|
25
26
|
export declare namespace ProviderKeyListResponse {
|
|
@@ -34,7 +35,10 @@ export interface ProviderKeyDeleteResponse {
|
|
|
34
35
|
id: string;
|
|
35
36
|
name: string;
|
|
36
37
|
}
|
|
38
|
+
export interface ProviderKeyDeleteParams {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
37
41
|
export declare namespace ProviderKey {
|
|
38
|
-
export { type ProviderKeyListResponse as ProviderKeyListResponse, type ProviderKeyDeleteResponse as ProviderKeyDeleteResponse, };
|
|
42
|
+
export { type ProviderKeyListResponse as ProviderKeyListResponse, type ProviderKeyDeleteResponse as ProviderKeyDeleteResponse, type ProviderKeyDeleteParams as ProviderKeyDeleteParams, };
|
|
39
43
|
}
|
|
40
44
|
//# sourceMappingURL=provider-key.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-key.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/provider-key.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider-key.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/projects/provider-key.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI/E;;;;;;;;;OASG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAIzC;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,CAAC,2BAA2B,CAAC,CAAC;AAEjG,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,2BAA2B;QAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAE9B,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ProviderKey = void 0;
|
|
5
|
-
const resource_1 = require("../../../resource.js");
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
6
7
|
class ProviderKey extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* @example
|
|
@@ -12,20 +13,21 @@ class ProviderKey extends resource_1.APIResource {
|
|
|
12
13
|
* ```
|
|
13
14
|
*/
|
|
14
15
|
list(id, options) {
|
|
15
|
-
return this._client.get(`/projects/${id}/provider-keys`, options);
|
|
16
|
+
return this._client.get((0, path_1.path) `/projects/${id}/provider-keys`, options);
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
20
21
|
* const providerKey =
|
|
21
22
|
* await client.beta.projects.providerKey.delete(
|
|
22
|
-
* 'id',
|
|
23
23
|
* 'providerKeyId',
|
|
24
|
+
* { id: 'id' },
|
|
24
25
|
* );
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
|
-
delete(
|
|
28
|
-
|
|
28
|
+
delete(providerKeyID, params, options) {
|
|
29
|
+
const { id } = params;
|
|
30
|
+
return this._client.delete((0, path_1.path) `/projects/${id}/provider-key/${providerKeyID}`, options);
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
exports.ProviderKey = ProviderKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-key.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/provider-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"provider-key.js","sourceRoot":"","sources":["../../../src/resources/beta/projects/provider-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;OAMG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,aAAqB,EACrB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,iBAAiB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF;AA9BD,kCA8BC"}
|