cadenya 0.16.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 +259 -0
- package/LICENSE +201 -0
- package/README.md +389 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +221 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +221 -0
- package/client.d.ts.map +1 -0
- package/client.js +511 -0
- package/client.js.map +1 -0
- package/client.mjs +507 -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 +59 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +59 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -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 +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/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 +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -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/package.json +148 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/account.d.mts +31 -0
- package/resources/account.d.mts.map +1 -0
- package/resources/account.d.ts +31 -0
- package/resources/account.d.ts.map +1 -0
- package/resources/account.js +16 -0
- package/resources/account.js.map +1 -0
- package/resources/account.mjs +12 -0
- package/resources/account.mjs.map +1 -0
- package/resources/agents/agents.d.mts +132 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +132 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +57 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +52 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/index.d.mts +4 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +4 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +11 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +5 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/variations.d.mts +236 -0
- package/resources/agents/variations.d.mts.map +1 -0
- package/resources/agents/variations.d.ts +236 -0
- package/resources/agents/variations.d.ts.map +1 -0
- package/resources/agents/variations.js +51 -0
- package/resources/agents/variations.js.map +1 -0
- package/resources/agents/variations.mjs +47 -0
- package/resources/agents/variations.mjs.map +1 -0
- package/resources/agents/webhook-deliveries.d.mts +55 -0
- package/resources/agents/webhook-deliveries.d.mts.map +1 -0
- package/resources/agents/webhook-deliveries.d.ts +55 -0
- package/resources/agents/webhook-deliveries.d.ts.map +1 -0
- package/resources/agents/webhook-deliveries.js +17 -0
- package/resources/agents/webhook-deliveries.js.map +1 -0
- package/resources/agents/webhook-deliveries.mjs +13 -0
- package/resources/agents/webhook-deliveries.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/api-keys.d.mts +109 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +109 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +53 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +49 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/document-namespaces.d.mts +91 -0
- package/resources/document-namespaces.d.mts.map +1 -0
- package/resources/document-namespaces.d.ts +91 -0
- package/resources/document-namespaces.d.ts.map +1 -0
- package/resources/document-namespaces.js +48 -0
- package/resources/document-namespaces.js.map +1 -0
- package/resources/document-namespaces.mjs +44 -0
- package/resources/document-namespaces.mjs.map +1 -0
- package/resources/documents.d.mts +968 -0
- package/resources/documents.d.mts.map +1 -0
- package/resources/documents.d.ts +968 -0
- package/resources/documents.d.ts.map +1 -0
- package/resources/documents.js +45 -0
- package/resources/documents.js.map +1 -0
- package/resources/documents.mjs +41 -0
- package/resources/documents.mjs.map +1 -0
- package/resources/index.d.mts +12 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +12 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +27 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +13 -0
- package/resources/index.mjs.map +1 -0
- package/resources/objectives/index.d.mts +3 -0
- package/resources/objectives/index.d.mts.map +1 -0
- package/resources/objectives/index.d.ts +3 -0
- package/resources/objectives/index.d.ts.map +1 -0
- package/resources/objectives/index.js +9 -0
- package/resources/objectives/index.js.map +1 -0
- package/resources/objectives/index.mjs +4 -0
- package/resources/objectives/index.mjs.map +1 -0
- package/resources/objectives/objectives.d.mts +521 -0
- package/resources/objectives/objectives.d.mts.map +1 -0
- package/resources/objectives/objectives.d.ts +521 -0
- package/resources/objectives/objectives.d.ts.map +1 -0
- package/resources/objectives/objectives.js +63 -0
- package/resources/objectives/objectives.js.map +1 -0
- package/resources/objectives/objectives.mjs +58 -0
- package/resources/objectives/objectives.mjs.map +1 -0
- package/resources/objectives/tool-calls.d.mts +120 -0
- package/resources/objectives/tool-calls.d.mts.map +1 -0
- package/resources/objectives/tool-calls.d.ts +120 -0
- package/resources/objectives/tool-calls.d.ts.map +1 -0
- package/resources/objectives/tool-calls.js +42 -0
- package/resources/objectives/tool-calls.js.map +1 -0
- package/resources/objectives/tool-calls.mjs +38 -0
- package/resources/objectives/tool-calls.mjs.map +1 -0
- package/resources/objectives.d.mts +2 -0
- package/resources/objectives.d.mts.map +1 -0
- package/resources/objectives.d.ts +2 -0
- package/resources/objectives.d.ts.map +1 -0
- package/resources/objectives.js +6 -0
- package/resources/objectives.js.map +1 -0
- package/resources/objectives.mjs +3 -0
- package/resources/objectives.mjs.map +1 -0
- package/resources/search.d.mts +24 -0
- package/resources/search.d.mts.map +1 -0
- package/resources/search.d.ts +24 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +15 -0
- package/resources/search.js.map +1 -0
- package/resources/search.mjs +11 -0
- package/resources/search.mjs.map +1 -0
- package/resources/shared.d.mts +176 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +176 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/tool-sets/index.d.mts +3 -0
- package/resources/tool-sets/index.d.mts.map +1 -0
- package/resources/tool-sets/index.d.ts +3 -0
- package/resources/tool-sets/index.d.ts.map +1 -0
- package/resources/tool-sets/index.js +9 -0
- package/resources/tool-sets/index.js.map +1 -0
- package/resources/tool-sets/index.mjs +4 -0
- package/resources/tool-sets/index.mjs.map +1 -0
- package/resources/tool-sets/tool-sets.d.mts +240 -0
- package/resources/tool-sets/tool-sets.d.mts.map +1 -0
- package/resources/tool-sets/tool-sets.d.ts +240 -0
- package/resources/tool-sets/tool-sets.d.ts.map +1 -0
- package/resources/tool-sets/tool-sets.js +62 -0
- package/resources/tool-sets/tool-sets.js.map +1 -0
- package/resources/tool-sets/tool-sets.mjs +57 -0
- package/resources/tool-sets/tool-sets.mjs.map +1 -0
- package/resources/tool-sets/tools.d.mts +130 -0
- package/resources/tool-sets/tools.d.mts.map +1 -0
- package/resources/tool-sets/tools.d.ts +130 -0
- package/resources/tool-sets/tools.d.ts.map +1 -0
- package/resources/tool-sets/tools.js +51 -0
- package/resources/tool-sets/tools.js.map +1 -0
- package/resources/tool-sets/tools.mjs +47 -0
- package/resources/tool-sets/tools.mjs.map +1 -0
- package/resources/tool-sets.d.mts +2 -0
- package/resources/tool-sets.d.mts.map +1 -0
- package/resources/tool-sets.d.ts +2 -0
- package/resources/tool-sets.d.ts.map +1 -0
- package/resources/tool-sets.js +6 -0
- package/resources/tool-sets.js.map +1 -0
- package/resources/tool-sets.mjs +3 -0
- package/resources/tool-sets.mjs.map +1 -0
- package/resources/workspace-secrets.d.mts +70 -0
- package/resources/workspace-secrets.d.mts.map +1 -0
- package/resources/workspace-secrets.d.ts +70 -0
- package/resources/workspace-secrets.d.ts.map +1 -0
- package/resources/workspace-secrets.js +48 -0
- package/resources/workspace-secrets.js.map +1 -0
- package/resources/workspace-secrets.mjs +44 -0
- package/resources/workspace-secrets.mjs.map +1 -0
- package/resources/workspaces.d.mts +37 -0
- package/resources/workspaces.d.mts.map +1 -0
- package/resources/workspaces.d.ts +37 -0
- package/resources/workspaces.d.ts.map +1 -0
- package/resources/workspaces.js +25 -0
- package/resources/workspaces.js.map +1 -0
- package/resources/workspaces.mjs +21 -0
- package/resources/workspaces.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1036 -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 +163 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/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 +126 -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/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/account.ts +42 -0
- package/src/resources/agents/agents.ts +244 -0
- package/src/resources/agents/index.ts +36 -0
- package/src/resources/agents/variations.ts +329 -0
- package/src/resources/agents/webhook-deliveries.ts +92 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/api-keys.ts +157 -0
- package/src/resources/document-namespaces.ts +145 -0
- package/src/resources/documents.ts +1239 -0
- package/src/resources/index.ts +118 -0
- package/src/resources/objectives/index.ts +26 -0
- package/src/resources/objectives/objectives.ts +739 -0
- package/src/resources/objectives/tool-calls.ts +182 -0
- package/src/resources/objectives.ts +3 -0
- package/src/resources/search.ts +39 -0
- package/src/resources/shared.ts +203 -0
- package/src/resources/tool-sets/index.ts +37 -0
- package/src/resources/tool-sets/tool-sets.ts +369 -0
- package/src/resources/tool-sets/tools.ts +208 -0
- package/src/resources/tool-sets.ts +3 -0
- package/src/resources/workspace-secrets.ts +120 -0
- package/src/resources/workspaces.ts +60 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class AccountResource extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves the current account for the token accessing the API. Useful to check
|
|
8
|
+
* if the credentials are valid.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options?: RequestOptions): APIPromise<Account>;
|
|
11
|
+
}
|
|
12
|
+
export interface Account {
|
|
13
|
+
/**
|
|
14
|
+
* AccountResourceMetadata is used to represent a resource that is associated to an
|
|
15
|
+
* account but not to a workspace.
|
|
16
|
+
*/
|
|
17
|
+
metadata?: Shared.AccountResourceMetadata;
|
|
18
|
+
spec?: Account.Spec;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace Account {
|
|
21
|
+
interface Spec {
|
|
22
|
+
billingEmail?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
domain?: string;
|
|
25
|
+
workspaces?: Array<Shared.Workspace>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare namespace AccountResource {
|
|
29
|
+
export { type Account as Account };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=account.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.mts","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAGxD;AAED,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAE1C,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;CACrB;AAED,yBAAiB,OAAO,CAAC;IACvB,UAAiB,IAAI;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;KACtC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EAAE,KAAK,OAAO,IAAI,OAAO,EAAE,CAAC;CACpC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class AccountResource extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves the current account for the token accessing the API. Useful to check
|
|
8
|
+
* if the credentials are valid.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options?: RequestOptions): APIPromise<Account>;
|
|
11
|
+
}
|
|
12
|
+
export interface Account {
|
|
13
|
+
/**
|
|
14
|
+
* AccountResourceMetadata is used to represent a resource that is associated to an
|
|
15
|
+
* account but not to a workspace.
|
|
16
|
+
*/
|
|
17
|
+
metadata?: Shared.AccountResourceMetadata;
|
|
18
|
+
spec?: Account.Spec;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace Account {
|
|
21
|
+
interface Spec {
|
|
22
|
+
billingEmail?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
domain?: string;
|
|
25
|
+
workspaces?: Array<Shared.Workspace>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare namespace AccountResource {
|
|
29
|
+
export { type Account as Account };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAGxD;AAED,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAE1C,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;CACrB;AAED,yBAAiB,OAAO,CAAC;IACvB,UAAiB,IAAI;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;KACtC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EAAE,KAAK,OAAO,IAAI,OAAO,EAAE,CAAC;CACpC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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.AccountResource = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class AccountResource extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the current account for the token accessing the API. Useful to check
|
|
9
|
+
* if the credentials are valid.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(options) {
|
|
12
|
+
return this._client.get('/v1/account', options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.AccountResource = AccountResource;
|
|
16
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AARD,0CAQC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class AccountResource extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the current account for the token accessing the API. Useful to check
|
|
6
|
+
* if the credentials are valid.
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options) {
|
|
9
|
+
return this._client.get('/v1/account', options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=account.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.mjs","sourceRoot":"","sources":["../src/resources/account.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../shared.mjs";
|
|
3
|
+
import * as VariationsAPI from "./variations.mjs";
|
|
4
|
+
import { AgentVariation, AgentVariationSpec, AgentVariationSpecAgentDocument, AgentVariationSpecAgentTool, AgentVariationSpecConstraints, AgentVariationSpecModelConfig, AgentVariationSpecToolSelection, AgentVariationsCursorPagination, ToolSelectionAssignedTools, ToolSelectionAutoDiscovery, VariationCreateParams, VariationDeleteParams, VariationListParams, VariationRetrieveParams, VariationUpdateParams, Variations } from "./variations.mjs";
|
|
5
|
+
import * as WebhookDeliveriesAPI from "./webhook-deliveries.mjs";
|
|
6
|
+
import { WebhookDeliveries, WebhookDeliveriesCursorPagination, WebhookDelivery, WebhookDeliveryListParams } from "./webhook-deliveries.mjs";
|
|
7
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
8
|
+
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
9
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
10
|
+
export declare class Agents extends APIResource {
|
|
11
|
+
variations: VariationsAPI.Variations;
|
|
12
|
+
webhookDeliveries: WebhookDeliveriesAPI.WebhookDeliveries;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new agent in the workspace
|
|
15
|
+
*/
|
|
16
|
+
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves an agent by ID from the workspace
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Agent>;
|
|
21
|
+
/**
|
|
22
|
+
* Updates an agent in the workspace
|
|
23
|
+
*/
|
|
24
|
+
update(id: string, body: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
25
|
+
/**
|
|
26
|
+
* Lists all agents in the workspace
|
|
27
|
+
*/
|
|
28
|
+
list(query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentsCursorPagination, Agent>;
|
|
29
|
+
/**
|
|
30
|
+
* Deletes an agent from the workspace
|
|
31
|
+
*/
|
|
32
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
33
|
+
}
|
|
34
|
+
export type AgentsCursorPagination = CursorPagination<Agent>;
|
|
35
|
+
/**
|
|
36
|
+
* Agent resource
|
|
37
|
+
*/
|
|
38
|
+
export interface Agent {
|
|
39
|
+
/**
|
|
40
|
+
* AgentInfo contains simple information about an agent for display or quick
|
|
41
|
+
* reference
|
|
42
|
+
*/
|
|
43
|
+
info?: Agent.Info;
|
|
44
|
+
/**
|
|
45
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
46
|
+
*/
|
|
47
|
+
metadata?: Shared.ResourceMetadata;
|
|
48
|
+
/**
|
|
49
|
+
* Agent specification (user-provided configuration)
|
|
50
|
+
*/
|
|
51
|
+
spec?: AgentSpec;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace Agent {
|
|
54
|
+
/**
|
|
55
|
+
* AgentInfo contains simple information about an agent for display or quick
|
|
56
|
+
* reference
|
|
57
|
+
*/
|
|
58
|
+
interface Info {
|
|
59
|
+
variationCount?: number;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Agent specification (user-provided configuration)
|
|
64
|
+
*/
|
|
65
|
+
export interface AgentSpec {
|
|
66
|
+
/**
|
|
67
|
+
* Description of the agent's purpose
|
|
68
|
+
*/
|
|
69
|
+
description?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Status of the agent
|
|
72
|
+
*/
|
|
73
|
+
status?: 'AGENT_STATUS_UNSPECIFIED' | 'AGENT_STATUS_DRAFT' | 'AGENT_STATUS_PUBLISHED' | 'AGENT_STATUS_ARCHIVED';
|
|
74
|
+
/**
|
|
75
|
+
* Controls how variations are automatically selected when creating objectives
|
|
76
|
+
* Defaults to RANDOM when unspecified
|
|
77
|
+
*/
|
|
78
|
+
variationSelectionMode?: 'VARIATION_SELECTION_MODE_UNSPECIFIED' | 'VARIATION_SELECTION_MODE_RANDOM' | 'VARIATION_SELECTION_MODE_WEIGHTED';
|
|
79
|
+
/**
|
|
80
|
+
* The URL that Cadenya will send events for any objective assigned to the agent.
|
|
81
|
+
*/
|
|
82
|
+
webhookEventsUrl?: string;
|
|
83
|
+
webhookEventsUrlSecret?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface Page {
|
|
86
|
+
nextCursor?: string;
|
|
87
|
+
total?: number;
|
|
88
|
+
}
|
|
89
|
+
export interface AgentCreateParams {
|
|
90
|
+
/**
|
|
91
|
+
* AgentVariation resource
|
|
92
|
+
*/
|
|
93
|
+
defaultVariation?: VariationsAPI.AgentVariation;
|
|
94
|
+
/**
|
|
95
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
96
|
+
*/
|
|
97
|
+
metadata?: Shared.ResourceMetadata;
|
|
98
|
+
/**
|
|
99
|
+
* Agent specification (user-provided configuration)
|
|
100
|
+
*/
|
|
101
|
+
spec?: AgentSpec;
|
|
102
|
+
}
|
|
103
|
+
export interface AgentUpdateParams {
|
|
104
|
+
/**
|
|
105
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
106
|
+
*/
|
|
107
|
+
metadata?: Shared.ResourceMetadata;
|
|
108
|
+
/**
|
|
109
|
+
* Agent specification (user-provided configuration)
|
|
110
|
+
*/
|
|
111
|
+
spec?: AgentSpec;
|
|
112
|
+
/**
|
|
113
|
+
* Fields to update
|
|
114
|
+
*/
|
|
115
|
+
updateMask?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface AgentListParams extends CursorPaginationParams {
|
|
118
|
+
/**
|
|
119
|
+
* Filter expression (query param: prefix)
|
|
120
|
+
*/
|
|
121
|
+
prefix?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Sort order for results (asc or desc by creation time)
|
|
124
|
+
*/
|
|
125
|
+
sortOrder?: string;
|
|
126
|
+
}
|
|
127
|
+
export declare namespace Agents {
|
|
128
|
+
export { type Agent as Agent, type AgentSpec as AgentSpec, type Page as Page, type AgentsCursorPagination as AgentsCursorPagination, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
129
|
+
export { Variations as Variations, type AgentVariation as AgentVariation, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecAgentDocument as AgentVariationSpecAgentDocument, type AgentVariationSpecAgentTool as AgentVariationSpecAgentTool, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, };
|
|
130
|
+
export { WebhookDeliveries as WebhookDeliveries, type WebhookDelivery as WebhookDelivery, type WebhookDeliveriesCursorPagination as WebhookDeliveriesCursorPagination, type WebhookDeliveryListParams as WebhookDeliveryListParams, };
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=agents.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EACL,cAAc,EACd,kBAAkB,EAClB,+BAA+B,EAC/B,2BAA2B,EAC3B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,EAC1B,qB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AAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,iBAAiB,IAAI,iBAAiB,EACtC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as Shared from "../shared.js";
|
|
3
|
+
import * as VariationsAPI from "./variations.js";
|
|
4
|
+
import { AgentVariation, AgentVariationSpec, AgentVariationSpecAgentDocument, AgentVariationSpecAgentTool, AgentVariationSpecConstraints, AgentVariationSpecModelConfig, AgentVariationSpecToolSelection, AgentVariationsCursorPagination, ToolSelectionAssignedTools, ToolSelectionAutoDiscovery, VariationCreateParams, VariationDeleteParams, VariationListParams, VariationRetrieveParams, VariationUpdateParams, Variations } from "./variations.js";
|
|
5
|
+
import * as WebhookDeliveriesAPI from "./webhook-deliveries.js";
|
|
6
|
+
import { WebhookDeliveries, WebhookDeliveriesCursorPagination, WebhookDelivery, WebhookDeliveryListParams } from "./webhook-deliveries.js";
|
|
7
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
8
|
+
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
9
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
10
|
+
export declare class Agents extends APIResource {
|
|
11
|
+
variations: VariationsAPI.Variations;
|
|
12
|
+
webhookDeliveries: WebhookDeliveriesAPI.WebhookDeliveries;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new agent in the workspace
|
|
15
|
+
*/
|
|
16
|
+
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves an agent by ID from the workspace
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Agent>;
|
|
21
|
+
/**
|
|
22
|
+
* Updates an agent in the workspace
|
|
23
|
+
*/
|
|
24
|
+
update(id: string, body: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent>;
|
|
25
|
+
/**
|
|
26
|
+
* Lists all agents in the workspace
|
|
27
|
+
*/
|
|
28
|
+
list(query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentsCursorPagination, Agent>;
|
|
29
|
+
/**
|
|
30
|
+
* Deletes an agent from the workspace
|
|
31
|
+
*/
|
|
32
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
33
|
+
}
|
|
34
|
+
export type AgentsCursorPagination = CursorPagination<Agent>;
|
|
35
|
+
/**
|
|
36
|
+
* Agent resource
|
|
37
|
+
*/
|
|
38
|
+
export interface Agent {
|
|
39
|
+
/**
|
|
40
|
+
* AgentInfo contains simple information about an agent for display or quick
|
|
41
|
+
* reference
|
|
42
|
+
*/
|
|
43
|
+
info?: Agent.Info;
|
|
44
|
+
/**
|
|
45
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
46
|
+
*/
|
|
47
|
+
metadata?: Shared.ResourceMetadata;
|
|
48
|
+
/**
|
|
49
|
+
* Agent specification (user-provided configuration)
|
|
50
|
+
*/
|
|
51
|
+
spec?: AgentSpec;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace Agent {
|
|
54
|
+
/**
|
|
55
|
+
* AgentInfo contains simple information about an agent for display or quick
|
|
56
|
+
* reference
|
|
57
|
+
*/
|
|
58
|
+
interface Info {
|
|
59
|
+
variationCount?: number;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Agent specification (user-provided configuration)
|
|
64
|
+
*/
|
|
65
|
+
export interface AgentSpec {
|
|
66
|
+
/**
|
|
67
|
+
* Description of the agent's purpose
|
|
68
|
+
*/
|
|
69
|
+
description?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Status of the agent
|
|
72
|
+
*/
|
|
73
|
+
status?: 'AGENT_STATUS_UNSPECIFIED' | 'AGENT_STATUS_DRAFT' | 'AGENT_STATUS_PUBLISHED' | 'AGENT_STATUS_ARCHIVED';
|
|
74
|
+
/**
|
|
75
|
+
* Controls how variations are automatically selected when creating objectives
|
|
76
|
+
* Defaults to RANDOM when unspecified
|
|
77
|
+
*/
|
|
78
|
+
variationSelectionMode?: 'VARIATION_SELECTION_MODE_UNSPECIFIED' | 'VARIATION_SELECTION_MODE_RANDOM' | 'VARIATION_SELECTION_MODE_WEIGHTED';
|
|
79
|
+
/**
|
|
80
|
+
* The URL that Cadenya will send events for any objective assigned to the agent.
|
|
81
|
+
*/
|
|
82
|
+
webhookEventsUrl?: string;
|
|
83
|
+
webhookEventsUrlSecret?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface Page {
|
|
86
|
+
nextCursor?: string;
|
|
87
|
+
total?: number;
|
|
88
|
+
}
|
|
89
|
+
export interface AgentCreateParams {
|
|
90
|
+
/**
|
|
91
|
+
* AgentVariation resource
|
|
92
|
+
*/
|
|
93
|
+
defaultVariation?: VariationsAPI.AgentVariation;
|
|
94
|
+
/**
|
|
95
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
96
|
+
*/
|
|
97
|
+
metadata?: Shared.ResourceMetadata;
|
|
98
|
+
/**
|
|
99
|
+
* Agent specification (user-provided configuration)
|
|
100
|
+
*/
|
|
101
|
+
spec?: AgentSpec;
|
|
102
|
+
}
|
|
103
|
+
export interface AgentUpdateParams {
|
|
104
|
+
/**
|
|
105
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
106
|
+
*/
|
|
107
|
+
metadata?: Shared.ResourceMetadata;
|
|
108
|
+
/**
|
|
109
|
+
* Agent specification (user-provided configuration)
|
|
110
|
+
*/
|
|
111
|
+
spec?: AgentSpec;
|
|
112
|
+
/**
|
|
113
|
+
* Fields to update
|
|
114
|
+
*/
|
|
115
|
+
updateMask?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface AgentListParams extends CursorPaginationParams {
|
|
118
|
+
/**
|
|
119
|
+
* Filter expression (query param: prefix)
|
|
120
|
+
*/
|
|
121
|
+
prefix?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Sort order for results (asc or desc by creation time)
|
|
124
|
+
*/
|
|
125
|
+
sortOrder?: string;
|
|
126
|
+
}
|
|
127
|
+
export declare namespace Agents {
|
|
128
|
+
export { type Agent as Agent, type AgentSpec as AgentSpec, type Page as Page, type AgentsCursorPagination as AgentsCursorPagination, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
129
|
+
export { Variations as Variations, type AgentVariation as AgentVariation, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecAgentDocument as AgentVariationSpecAgentDocument, type AgentVariationSpecAgentTool as AgentVariationSpecAgentTool, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, };
|
|
130
|
+
export { WebhookDeliveries as WebhookDeliveries, type WebhookDelivery as WebhookDelivery, type WebhookDeliveriesCursorPagination as WebhookDeliveriesCursorPagination, type WebhookDeliveryListParams as WebhookDeliveryListParams, };
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EACL,cAAc,EACd,kBAAkB,EAClB,+BAA+B,EAC/B,2BAA2B,EAC3B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,UAAU,EACX;OACM,KAAK,oBAAoB;OACzB,EACL,iBAAiB,EACjB,iCAAiC,EACjC,eAAe,EACf,yBAAyB,EAC1B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CA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AI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,iBAAiB,IAAI,iBAAiB,EACtC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.Agents = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const VariationsAPI = tslib_1.__importStar(require("./variations.js"));
|
|
8
|
+
const variations_1 = require("./variations.js");
|
|
9
|
+
const WebhookDeliveriesAPI = tslib_1.__importStar(require("./webhook-deliveries.js"));
|
|
10
|
+
const webhook_deliveries_1 = require("./webhook-deliveries.js");
|
|
11
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
12
|
+
const headers_1 = require("../../internal/headers.js");
|
|
13
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
14
|
+
class Agents extends resource_1.APIResource {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.variations = new VariationsAPI.Variations(this._client);
|
|
18
|
+
this.webhookDeliveries = new WebhookDeliveriesAPI.WebhookDeliveries(this._client);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new agent in the workspace
|
|
22
|
+
*/
|
|
23
|
+
create(body, options) {
|
|
24
|
+
return this._client.post('/v1/agents', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves an agent by ID from the workspace
|
|
28
|
+
*/
|
|
29
|
+
retrieve(id, options) {
|
|
30
|
+
return this._client.get((0, path_1.path) `/v1/agents/${id}`, options);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Updates an agent in the workspace
|
|
34
|
+
*/
|
|
35
|
+
update(id, body, options) {
|
|
36
|
+
return this._client.patch((0, path_1.path) `/v1/agents/${id}`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Lists all agents in the workspace
|
|
40
|
+
*/
|
|
41
|
+
list(query = {}, options) {
|
|
42
|
+
return this._client.getAPIList('/v1/agents', (pagination_1.CursorPagination), { query, ...options });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Deletes an agent from the workspace
|
|
46
|
+
*/
|
|
47
|
+
delete(id, options) {
|
|
48
|
+
return this._client.delete((0, path_1.path) `/v1/agents/${id}`, {
|
|
49
|
+
...options,
|
|
50
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.Agents = Agents;
|
|
55
|
+
Agents.Variations = variations_1.Variations;
|
|
56
|
+
Agents.WebhookDeliveries = webhook_deliveries_1.WebhookDeliveries;
|
|
57
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.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AC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA9CD,wBA8CC;AA0HD,MAAM,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC/B,MAAM,CAAC,iBAAiB,GAAG,sCAAiB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as VariationsAPI from "./variations.mjs";
|
|
4
|
+
import { Variations, } from "./variations.mjs";
|
|
5
|
+
import * as WebhookDeliveriesAPI from "./webhook-deliveries.mjs";
|
|
6
|
+
import { WebhookDeliveries, } from "./webhook-deliveries.mjs";
|
|
7
|
+
import { CursorPagination } from "../../core/pagination.mjs";
|
|
8
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
9
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
10
|
+
export class Agents extends APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.variations = new VariationsAPI.Variations(this._client);
|
|
14
|
+
this.webhookDeliveries = new WebhookDeliveriesAPI.WebhookDeliveries(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates a new agent in the workspace
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/v1/agents', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves an agent by ID from the workspace
|
|
24
|
+
*/
|
|
25
|
+
retrieve(id, options) {
|
|
26
|
+
return this._client.get(path `/v1/agents/${id}`, options);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Updates an agent in the workspace
|
|
30
|
+
*/
|
|
31
|
+
update(id, body, options) {
|
|
32
|
+
return this._client.patch(path `/v1/agents/${id}`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Lists all agents in the workspace
|
|
36
|
+
*/
|
|
37
|
+
list(query = {}, options) {
|
|
38
|
+
return this._client.getAPIList('/v1/agents', (CursorPagination), { query, ...options });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Deletes an agent from the workspace
|
|
42
|
+
*/
|
|
43
|
+
delete(id, options) {
|
|
44
|
+
return this._client.delete(path `/v1/agents/${id}`, {
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
Agents.Variations = Variations;
|
|
51
|
+
Agents.WebhookDeliveries = WebhookDeliveries;
|
|
52
|
+
//# sourceMappingURL=agents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,aAAa;OAClB,EAgBL,UAAU,GACX;OACM,KAAK,oBAAoB;OACzB,EACL,iBAAiB,GAIlB;OAEM,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,sBAAiB,GAA2C,IAAI,oBAAoB,CAAC,iBAAiB,CACpG,IAAI,CAAC,OAAO,CACb,CAAC;IA0CJ,CAAC;IAxCC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,gBAAuB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA0HD,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AAC/B,MAAM,CAAC,iBAAiB,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Agents, type Agent, type AgentSpec, type Page, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentsCursorPagination, } from "./agents.mjs";
|
|
2
|
+
export { Variations, type AgentVariation, type AgentVariationSpec, type AgentVariationSpecAgentDocument, type AgentVariationSpecAgentTool, type AgentVariationSpecConstraints, type AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection, type ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery, type VariationCreateParams, type VariationRetrieveParams, type VariationUpdateParams, type VariationListParams, type VariationDeleteParams, type AgentVariationsCursorPagination, } from "./variations.mjs";
|
|
3
|
+
export { WebhookDeliveries, type WebhookDelivery, type WebhookDeliveryListParams, type WebhookDeliveriesCursorPagination, } from "./webhook-deliveries.mjs";
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,GACrC;OACM,EACL,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Agents, type Agent, type AgentSpec, type Page, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentsCursorPagination, } from "./agents.js";
|
|
2
|
+
export { Variations, type AgentVariation, type AgentVariationSpec, type AgentVariationSpecAgentDocument, type AgentVariationSpecAgentTool, type AgentVariationSpecConstraints, type AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection, type ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery, type VariationCreateParams, type VariationRetrieveParams, type VariationUpdateParams, type VariationListParams, type VariationDeleteParams, type AgentVariationsCursorPagination, } from "./variations.js";
|
|
3
|
+
export { WebhookDeliveries, type WebhookDelivery, type WebhookDeliveryListParams, type WebhookDeliveriesCursorPagination, } from "./webhook-deliveries.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,GACrC;OACM,EACL,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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.WebhookDeliveries = exports.Variations = exports.Agents = void 0;
|
|
5
|
+
var agents_1 = require("./agents.js");
|
|
6
|
+
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
|
+
var variations_1 = require("./variations.js");
|
|
8
|
+
Object.defineProperty(exports, "Variations", { enumerable: true, get: function () { return variations_1.Variations; } });
|
|
9
|
+
var webhook_deliveries_1 = require("./webhook-deliveries.js");
|
|
10
|
+
Object.defineProperty(exports, "WebhookDeliveries", { enumerable: true, get: function () { return webhook_deliveries_1.WebhookDeliveries; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCASkB;AARhB,gGAAA,MAAM,OAAA;AASR,8CAiBsB;AAhBpB,wGAAA,UAAU,OAAA;AAiBZ,8DAK8B;AAJ5B,uHAAA,iBAAiB,OAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Agents, } from "./agents.mjs";
|
|
3
|
+
export { Variations, } from "./variations.mjs";
|
|
4
|
+
export { WebhookDeliveries, } from "./webhook-deliveries.mjs";
|
|
5
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAQP;OACM,EACL,UAAU,GAgBX;OACM,EACL,iBAAiB,GAIlB"}
|