@composio/client 0.1.0-alpha.1
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 +15 -0
- package/LICENSE +201 -0
- package/README.md +373 -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 +19 -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 +218 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +218 -0
- package/client.d.ts.map +1 -0
- package/client.js +506 -0
- package/client.js.map +1 -0
- package/client.mjs +479 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +47 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +47 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +84 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +80 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +47 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +47 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +19 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +75 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +75 -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 +21 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +21 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +77 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +72 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +13 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +13 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +36 -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 +33 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +33 -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 +28 -0
- package/internal/shim-types.d.ts +28 -0
- package/internal/shims/crypto.d.mts +13 -0
- package/internal/shims/crypto.d.mts.map +1 -0
- package/internal/shims/crypto.d.ts +13 -0
- package/internal/shims/crypto.d.ts.map +1 -0
- package/internal/shims/crypto.js +13 -0
- package/internal/shims/crypto.js.map +1 -0
- package/internal/shims/crypto.mjs +9 -0
- package/internal/shims/crypto.mjs.map +1 -0
- package/internal/shims/file.d.mts +23 -0
- package/internal/shims/file.d.mts.map +1 -0
- package/internal/shims/file.d.ts +23 -0
- package/internal/shims/file.d.ts.map +1 -0
- package/internal/shims/file.js +16 -0
- package/internal/shims/file.js.map +1 -0
- package/internal/shims/file.mjs +12 -0
- package/internal/shims/file.mjs.map +1 -0
- package/internal/shims/getBuiltinModule.d.mts +11 -0
- package/internal/shims/getBuiltinModule.d.mts.map +1 -0
- package/internal/shims/getBuiltinModule.d.ts +11 -0
- package/internal/shims/getBuiltinModule.d.ts.map +1 -0
- package/internal/shims/getBuiltinModule.js +68 -0
- package/internal/shims/getBuiltinModule.js.map +1 -0
- package/internal/shims/getBuiltinModule.mjs +64 -0
- package/internal/shims/getBuiltinModule.mjs.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.mts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.mts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.ts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.ts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.js +5 -0
- package/internal/shims/nullGetBuiltinModule.js.map +1 -0
- package/internal/shims/nullGetBuiltinModule.mjs +2 -0
- package/internal/shims/nullGetBuiltinModule.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 +93 -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 +46 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +46 -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 +87 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/types.d.mts +68 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +68 -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 +44 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +44 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +131 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +122 -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 +33 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +28 -0
- package/internal/utils/base64.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 +38 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +38 -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 +58 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +53 -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 +20 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +16 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +16 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +16 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +109 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +92 -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 +24 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +146 -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 +19 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/action-execution.d.mts +155 -0
- package/resources/action-execution.d.mts.map +1 -0
- package/resources/action-execution.d.ts +155 -0
- package/resources/action-execution.d.ts.map +1 -0
- package/resources/action-execution.js +19 -0
- package/resources/action-execution.js.map +1 -0
- package/resources/action-execution.mjs +15 -0
- package/resources/action-execution.mjs.map +1 -0
- package/resources/auth-configs.d.mts +217 -0
- package/resources/auth-configs.d.mts.map +1 -0
- package/resources/auth-configs.d.ts +217 -0
- package/resources/auth-configs.d.ts.map +1 -0
- package/resources/auth-configs.js +29 -0
- package/resources/auth-configs.js.map +1 -0
- package/resources/auth-configs.mjs +25 -0
- package/resources/auth-configs.mjs.map +1 -0
- package/resources/connected-accounts.d.mts +449 -0
- package/resources/connected-accounts.d.mts.map +1 -0
- package/resources/connected-accounts.d.ts +449 -0
- package/resources/connected-accounts.d.ts.map +1 -0
- package/resources/connected-accounts.js +28 -0
- package/resources/connected-accounts.js.map +1 -0
- package/resources/connected-accounts.mjs +24 -0
- package/resources/connected-accounts.mjs.map +1 -0
- package/resources/index.d.mts +11 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +11 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +25 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +12 -0
- package/resources/index.mjs.map +1 -0
- package/resources/org/api-key.d.mts +17 -0
- package/resources/org/api-key.d.mts.map +1 -0
- package/resources/org/api-key.d.ts +17 -0
- package/resources/org/api-key.d.ts.map +1 -0
- package/resources/org/api-key.js +15 -0
- package/resources/org/api-key.js.map +1 -0
- package/resources/org/api-key.mjs +11 -0
- package/resources/org/api-key.mjs.map +1 -0
- package/resources/org/index.d.mts +4 -0
- package/resources/org/index.d.mts.map +1 -0
- package/resources/org/index.d.ts +4 -0
- package/resources/org/index.d.ts.map +1 -0
- package/resources/org/index.js +11 -0
- package/resources/org/index.js.map +1 -0
- package/resources/org/index.mjs +5 -0
- package/resources/org/index.mjs.map +1 -0
- package/resources/org/org.d.mts +14 -0
- package/resources/org/org.d.mts.map +1 -0
- package/resources/org/org.d.ts +14 -0
- package/resources/org/org.d.ts.map +1 -0
- package/resources/org/org.js +43 -0
- package/resources/org/org.js.map +1 -0
- package/resources/org/org.mjs +16 -0
- package/resources/org/org.mjs.map +1 -0
- package/resources/org/project/api-keys.d.mts +109 -0
- package/resources/org/project/api-keys.d.mts.map +1 -0
- package/resources/org/project/api-keys.d.ts +109 -0
- package/resources/org/project/api-keys.d.ts.map +1 -0
- package/resources/org/project/api-keys.js +23 -0
- package/resources/org/project/api-keys.js.map +1 -0
- package/resources/org/project/api-keys.mjs +19 -0
- package/resources/org/project/api-keys.mjs.map +1 -0
- package/resources/org/project/index.d.mts +5 -0
- package/resources/org/project/index.d.mts.map +1 -0
- package/resources/org/project/index.d.ts +5 -0
- package/resources/org/project/index.d.ts.map +1 -0
- package/resources/org/project/index.js +13 -0
- package/resources/org/project/index.js.map +1 -0
- package/resources/org/project/index.mjs +6 -0
- package/resources/org/project/index.mjs.map +1 -0
- package/resources/org/project/project.d.mts +90 -0
- package/resources/org/project/project.d.mts.map +1 -0
- package/resources/org/project/project.d.ts +90 -0
- package/resources/org/project/project.d.ts.map +1 -0
- package/resources/org/project/project.js +60 -0
- package/resources/org/project/project.js.map +1 -0
- package/resources/org/project/project.mjs +33 -0
- package/resources/org/project/project.mjs.map +1 -0
- package/resources/org/project/trigger.d.mts +51 -0
- package/resources/org/project/trigger.d.mts.map +1 -0
- package/resources/org/project/trigger.d.ts +51 -0
- package/resources/org/project/trigger.d.ts.map +1 -0
- package/resources/org/project/trigger.js +16 -0
- package/resources/org/project/trigger.js.map +1 -0
- package/resources/org/project/trigger.mjs +12 -0
- package/resources/org/project/trigger.mjs.map +1 -0
- package/resources/org/project/webhook.d.mts +92 -0
- package/resources/org/project/webhook.d.mts.map +1 -0
- package/resources/org/project/webhook.d.ts +92 -0
- package/resources/org/project/webhook.d.ts.map +1 -0
- package/resources/org/project/webhook.js +24 -0
- package/resources/org/project/webhook.js.map +1 -0
- package/resources/org/project/webhook.mjs +20 -0
- package/resources/org/project/webhook.mjs.map +1 -0
- package/resources/org/project.d.mts +2 -0
- package/resources/org/project.d.mts.map +1 -0
- package/resources/org/project.d.ts +2 -0
- package/resources/org/project.d.ts.map +1 -0
- package/resources/org/project.js +19 -0
- package/resources/org/project.js.map +1 -0
- package/resources/org/project.mjs +3 -0
- package/resources/org/project.mjs.map +1 -0
- package/resources/org.d.mts +2 -0
- package/resources/org.d.mts.map +1 -0
- package/resources/org.d.ts +2 -0
- package/resources/org.d.ts.map +1 -0
- package/resources/org.js +19 -0
- package/resources/org.js.map +1 -0
- package/resources/org.mjs +3 -0
- package/resources/org.mjs.map +1 -0
- package/resources/team-members.d.mts +57 -0
- package/resources/team-members.d.mts.map +1 -0
- package/resources/team-members.d.ts +57 -0
- package/resources/team-members.d.ts.map +1 -0
- package/resources/team-members.js +22 -0
- package/resources/team-members.js.map +1 -0
- package/resources/team-members.mjs +18 -0
- package/resources/team-members.mjs.map +1 -0
- package/resources/toolkits.d.mts +141 -0
- package/resources/toolkits.d.mts.map +1 -0
- package/resources/toolkits.d.ts +141 -0
- package/resources/toolkits.d.ts.map +1 -0
- package/resources/toolkits.js +19 -0
- package/resources/toolkits.js.map +1 -0
- package/resources/toolkits.mjs +15 -0
- package/resources/toolkits.mjs.map +1 -0
- package/resources/tools.d.mts +164 -0
- package/resources/tools.d.mts.map +1 -0
- package/resources/tools.d.ts +164 -0
- package/resources/tools.d.ts.map +1 -0
- package/resources/tools.js +28 -0
- package/resources/tools.js.map +1 -0
- package/resources/tools.mjs +24 -0
- package/resources/tools.mjs.map +1 -0
- package/resources/trigger-instances/handle.d.mts +25 -0
- package/resources/trigger-instances/handle.d.mts.map +1 -0
- package/resources/trigger-instances/handle.d.ts +25 -0
- package/resources/trigger-instances/handle.d.ts.map +1 -0
- package/resources/trigger-instances/handle.js +18 -0
- package/resources/trigger-instances/handle.js.map +1 -0
- package/resources/trigger-instances/handle.mjs +14 -0
- package/resources/trigger-instances/handle.mjs.map +1 -0
- package/resources/trigger-instances/index.d.mts +3 -0
- package/resources/trigger-instances/index.d.mts.map +1 -0
- package/resources/trigger-instances/index.d.ts +3 -0
- package/resources/trigger-instances/index.d.ts.map +1 -0
- package/resources/trigger-instances/index.js +9 -0
- package/resources/trigger-instances/index.js.map +1 -0
- package/resources/trigger-instances/index.mjs +4 -0
- package/resources/trigger-instances/index.mjs.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.mts +126 -0
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.ts +126 -0
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -0
- package/resources/trigger-instances/trigger-instances.js +53 -0
- package/resources/trigger-instances/trigger-instances.js.map +1 -0
- package/resources/trigger-instances/trigger-instances.mjs +26 -0
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -0
- package/resources/trigger-instances.d.mts +2 -0
- package/resources/trigger-instances.d.mts.map +1 -0
- package/resources/trigger-instances.d.ts +2 -0
- package/resources/trigger-instances.d.ts.map +1 -0
- package/resources/trigger-instances.js +19 -0
- package/resources/trigger-instances.js.map +1 -0
- package/resources/trigger-instances.mjs +3 -0
- package/resources/trigger-instances.mjs.map +1 -0
- package/resources/trigger.d.mts +73 -0
- package/resources/trigger.d.mts.map +1 -0
- package/resources/trigger.d.ts +73 -0
- package/resources/trigger.d.ts.map +1 -0
- package/resources/trigger.js +12 -0
- package/resources/trigger.js.map +1 -0
- package/resources/trigger.mjs +8 -0
- package/resources/trigger.mjs.map +1 -0
- package/resources/triggers-types.d.mts +59 -0
- package/resources/triggers-types.d.mts.map +1 -0
- package/resources/triggers-types.d.ts +59 -0
- package/resources/triggers-types.d.ts.map +1 -0
- package/resources/triggers-types.js +19 -0
- package/resources/triggers-types.js.map +1 -0
- package/resources/triggers-types.mjs +15 -0
- package/resources/triggers-types.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 +18 -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 +898 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -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 +96 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +37 -0
- package/src/internal/shim-types.d.ts +28 -0
- package/src/internal/shims/crypto.ts +18 -0
- package/src/internal/shims/file.ts +32 -0
- package/src/internal/shims/getBuiltinModule.ts +64 -0
- package/src/internal/shims/nullGetBuiltinModule.ts +1 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +152 -0
- package/src/internal/types.ts +92 -0
- package/src/internal/uploads.ts +175 -0
- package/src/internal/utils/base64.ts +37 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +65 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +19 -0
- package/src/internal/utils/values.ts +102 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/action-execution.ts +244 -0
- package/src/resources/auth-configs.ts +362 -0
- package/src/resources/connected-accounts.ts +661 -0
- package/src/resources/index.ts +82 -0
- package/src/resources/org/api-key.ts +30 -0
- package/src/resources/org/index.ts +12 -0
- package/src/resources/org/org.ts +39 -0
- package/src/resources/org/project/api-keys.ts +156 -0
- package/src/resources/org/project/index.ts +35 -0
- package/src/resources/org/project/project.ts +206 -0
- package/src/resources/org/project/trigger.ts +95 -0
- package/src/resources/org/project/webhook.ts +131 -0
- package/src/resources/org/project.ts +3 -0
- package/src/resources/org.ts +3 -0
- package/src/resources/team-members.ts +111 -0
- package/src/resources/toolkits.ts +232 -0
- package/src/resources/tools.ts +265 -0
- package/src/resources/trigger-instances/handle.ts +45 -0
- package/src/resources/trigger-instances/index.ts +19 -0
- package/src/resources/trigger-instances/trigger-instances.ts +202 -0
- package/src/resources/trigger-instances.ts +3 -0
- package/src/resources/trigger.ts +108 -0
- package/src/resources/triggers-types.ts +105 -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 +19 -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,15 @@
|
|
|
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.APIKey = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class APIKey extends resource_1.APIResource {
|
|
7
|
+
retrieve(options) {
|
|
8
|
+
return this._client.get('/api/v3/org/api_key', options);
|
|
9
|
+
}
|
|
10
|
+
regenerate(options) {
|
|
11
|
+
return this._client.post('/api/v3/org/api_key/regenerate', options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.APIKey = APIKey;
|
|
15
|
+
//# sourceMappingURL=api-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,MAAO,SAAQ,sBAAW;IACrC,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AARD,wBAQC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
export class APIKey extends APIResource {
|
|
4
|
+
retrieve(options) {
|
|
5
|
+
return this._client.get('/api/v3/org/api_key', options);
|
|
6
|
+
}
|
|
7
|
+
regenerate(options) {
|
|
8
|
+
return this._client.post('/api/v3/org/api_key/regenerate', options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=api-key.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-key.mjs","sourceRoot":"","sources":["../../src/resources/org/api-key.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { APIKey, type APIKeyRetrieveResponse, type APIKeyRegenerateResponse } from "./api-key.mjs";
|
|
2
|
+
export { Org } from "./org.mjs";
|
|
3
|
+
export { Project, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, } from "./project/index.mjs";
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/org/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,sBAAsB,EAAE,KAAK,wBAAwB,EAAE;OACtE,EAAE,GAAG,EAAE;OACP,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { APIKey, type APIKeyRetrieveResponse, type APIKeyRegenerateResponse } from "./api-key.js";
|
|
2
|
+
export { Org } from "./org.js";
|
|
3
|
+
export { Project, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, } from "./project/index.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/org/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,sBAAsB,EAAE,KAAK,wBAAwB,EAAE;OACtE,EAAE,GAAG,EAAE;OACP,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB"}
|
|
@@ -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.Project = exports.Org = exports.APIKey = void 0;
|
|
5
|
+
var api_key_1 = require("./api-key.js");
|
|
6
|
+
Object.defineProperty(exports, "APIKey", { enumerable: true, get: function () { return api_key_1.APIKey; } });
|
|
7
|
+
var org_1 = require("./org.js");
|
|
8
|
+
Object.defineProperty(exports, "Org", { enumerable: true, get: function () { return org_1.Org; } });
|
|
9
|
+
var index_1 = require("./project/index.js");
|
|
10
|
+
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return index_1.Project; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/org/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA+F;AAAtF,iGAAA,MAAM,OAAA;AACf,gCAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,4CAOyB;AANvB,gGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/org/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAA8D;OACtE,EAAE,GAAG,EAAE;OACP,EACL,OAAO,GAMR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as APIKeyAPI from "./api-key.mjs";
|
|
3
|
+
import { APIKey, APIKeyRegenerateResponse, APIKeyRetrieveResponse } from "./api-key.mjs";
|
|
4
|
+
import * as ProjectAPI from "./project/project.mjs";
|
|
5
|
+
import { Project, ProjectCreateParams, ProjectCreateResponse, ProjectDeleteResponse, ProjectListResponse, ProjectRetrieveResponse } from "./project/project.mjs";
|
|
6
|
+
export declare class Org extends APIResource {
|
|
7
|
+
apiKey: APIKeyAPI.APIKey;
|
|
8
|
+
project: ProjectAPI.Project;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace Org {
|
|
11
|
+
export { APIKey as APIKey, type APIKeyRetrieveResponse as APIKeyRetrieveResponse, type APIKeyRegenerateResponse as APIKeyRegenerateResponse, };
|
|
12
|
+
export { Project as Project, type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, };
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=org.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org.d.mts","sourceRoot":"","sources":["../../src/resources/org/org.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,wBAAwB,EAAE,sBAAsB,EAAE;OAC5D,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACxB;AAED,qBAAa,GAAI,SAAQ,WAAW;IAClC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAKD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as APIKeyAPI from "./api-key.js";
|
|
3
|
+
import { APIKey, APIKeyRegenerateResponse, APIKeyRetrieveResponse } from "./api-key.js";
|
|
4
|
+
import * as ProjectAPI from "./project/project.js";
|
|
5
|
+
import { Project, ProjectCreateParams, ProjectCreateResponse, ProjectDeleteResponse, ProjectListResponse, ProjectRetrieveResponse } from "./project/project.js";
|
|
6
|
+
export declare class Org extends APIResource {
|
|
7
|
+
apiKey: APIKeyAPI.APIKey;
|
|
8
|
+
project: ProjectAPI.Project;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace Org {
|
|
11
|
+
export { APIKey as APIKey, type APIKeyRetrieveResponse as APIKeyRetrieveResponse, type APIKeyRegenerateResponse as APIKeyRegenerateResponse, };
|
|
12
|
+
export { Project as Project, type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, };
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=org.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org.d.ts","sourceRoot":"","sources":["../../src/resources/org/org.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE,wBAAwB,EAAE,sBAAsB,EAAE;OAC5D,KAAK,UAAU;OACf,EACL,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACxB;AAED,qBAAa,GAAI,SAAQ,WAAW;IAClC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAKD,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Org = void 0;
|
|
28
|
+
const resource_1 = require("../../core/resource.js");
|
|
29
|
+
const APIKeyAPI = __importStar(require("./api-key.js"));
|
|
30
|
+
const api_key_1 = require("./api-key.js");
|
|
31
|
+
const ProjectAPI = __importStar(require("./project/project.js"));
|
|
32
|
+
const project_1 = require("./project/project.js");
|
|
33
|
+
class Org extends resource_1.APIResource {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
this.apiKey = new APIKeyAPI.APIKey(this._client);
|
|
37
|
+
this.project = new ProjectAPI.Project(this._client);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Org = Org;
|
|
41
|
+
Org.APIKey = api_key_1.APIKey;
|
|
42
|
+
Org.Project = project_1.Project;
|
|
43
|
+
//# sourceMappingURL=org.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org.js","sourceRoot":"","sources":["../../src/resources/org/org.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,qDAAkD;AAClD,wDAAuC;AACvC,0CAAqF;AACrF,iEAAgD;AAChD,kDAO2B;AAE3B,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAHD,kBAGC;AAED,GAAG,CAAC,MAAM,GAAG,gBAAM,CAAC;AACpB,GAAG,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as APIKeyAPI from "./api-key.mjs";
|
|
4
|
+
import { APIKey } from "./api-key.mjs";
|
|
5
|
+
import * as ProjectAPI from "./project/project.mjs";
|
|
6
|
+
import { Project, } from "./project/project.mjs";
|
|
7
|
+
export class Org extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.apiKey = new APIKeyAPI.APIKey(this._client);
|
|
11
|
+
this.project = new ProjectAPI.Project(this._client);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
Org.APIKey = APIKey;
|
|
15
|
+
Org.Project = Project;
|
|
16
|
+
//# sourceMappingURL=org.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org.mjs","sourceRoot":"","sources":["../../src/resources/org/org.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAoD;OAC5D,KAAK,UAAU;OACf,EACL,OAAO,GAMR;AAED,MAAM,OAAO,GAAI,SAAQ,WAAW;IAApC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC;AACpB,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 APIKeys extends APIResource {
|
|
5
|
+
create(projectID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
|
|
6
|
+
list(projectID: string, options?: RequestOptions): APIPromise<APIKeyListResponse>;
|
|
7
|
+
delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<APIKeyDeleteResponse>;
|
|
8
|
+
createAPIKey(projectID: string, options?: RequestOptions): APIPromise<APIKeyCreateAPIKeyResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface APIKeyCreateResponse {
|
|
11
|
+
/**
|
|
12
|
+
* API key ID
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Creation timestamp
|
|
17
|
+
*/
|
|
18
|
+
createdAt: string;
|
|
19
|
+
/**
|
|
20
|
+
* API key value
|
|
21
|
+
*/
|
|
22
|
+
key: string;
|
|
23
|
+
/**
|
|
24
|
+
* API key name
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Last used timestamp
|
|
29
|
+
*/
|
|
30
|
+
lastUsed?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface APIKeyListResponse {
|
|
33
|
+
/**
|
|
34
|
+
* List of API keys
|
|
35
|
+
*/
|
|
36
|
+
items: Array<APIKeyListResponse.Item>;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace APIKeyListResponse {
|
|
39
|
+
interface Item {
|
|
40
|
+
/**
|
|
41
|
+
* API key ID
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Creation timestamp
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* API key value
|
|
50
|
+
*/
|
|
51
|
+
key: string;
|
|
52
|
+
/**
|
|
53
|
+
* API key name
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Last used timestamp
|
|
58
|
+
*/
|
|
59
|
+
last_used?: string;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export interface APIKeyDeleteResponse {
|
|
63
|
+
/**
|
|
64
|
+
* Status message
|
|
65
|
+
*/
|
|
66
|
+
message: string;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the operation was successful
|
|
69
|
+
*/
|
|
70
|
+
success: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface APIKeyCreateAPIKeyResponse {
|
|
73
|
+
/**
|
|
74
|
+
* API key ID
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
/**
|
|
78
|
+
* Creation timestamp
|
|
79
|
+
*/
|
|
80
|
+
createdAt: string;
|
|
81
|
+
/**
|
|
82
|
+
* API key value
|
|
83
|
+
*/
|
|
84
|
+
key: string;
|
|
85
|
+
/**
|
|
86
|
+
* API key name
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
/**
|
|
90
|
+
* Last used timestamp
|
|
91
|
+
*/
|
|
92
|
+
lastUsed?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface APIKeyCreateParams {
|
|
95
|
+
/**
|
|
96
|
+
* API key name
|
|
97
|
+
*/
|
|
98
|
+
name: string;
|
|
99
|
+
}
|
|
100
|
+
export interface APIKeyDeleteParams {
|
|
101
|
+
/**
|
|
102
|
+
* Project ID
|
|
103
|
+
*/
|
|
104
|
+
projectId: string;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace APIKeys {
|
|
107
|
+
export { type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateAPIKeyResponse as APIKeyCreateAPIKeyResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=api-keys.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,W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A0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class APIKeys extends APIResource {
|
|
5
|
+
create(projectID: string, body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKeyCreateResponse>;
|
|
6
|
+
list(projectID: string, options?: RequestOptions): APIPromise<APIKeyListResponse>;
|
|
7
|
+
delete(id: string, params: APIKeyDeleteParams, options?: RequestOptions): APIPromise<APIKeyDeleteResponse>;
|
|
8
|
+
createAPIKey(projectID: string, options?: RequestOptions): APIPromise<APIKeyCreateAPIKeyResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface APIKeyCreateResponse {
|
|
11
|
+
/**
|
|
12
|
+
* API key ID
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Creation timestamp
|
|
17
|
+
*/
|
|
18
|
+
createdAt: string;
|
|
19
|
+
/**
|
|
20
|
+
* API key value
|
|
21
|
+
*/
|
|
22
|
+
key: string;
|
|
23
|
+
/**
|
|
24
|
+
* API key name
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Last used timestamp
|
|
29
|
+
*/
|
|
30
|
+
lastUsed?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface APIKeyListResponse {
|
|
33
|
+
/**
|
|
34
|
+
* List of API keys
|
|
35
|
+
*/
|
|
36
|
+
items: Array<APIKeyListResponse.Item>;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace APIKeyListResponse {
|
|
39
|
+
interface Item {
|
|
40
|
+
/**
|
|
41
|
+
* API key ID
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Creation timestamp
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* API key value
|
|
50
|
+
*/
|
|
51
|
+
key: string;
|
|
52
|
+
/**
|
|
53
|
+
* API key name
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Last used timestamp
|
|
58
|
+
*/
|
|
59
|
+
last_used?: string;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export interface APIKeyDeleteResponse {
|
|
63
|
+
/**
|
|
64
|
+
* Status message
|
|
65
|
+
*/
|
|
66
|
+
message: string;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the operation was successful
|
|
69
|
+
*/
|
|
70
|
+
success: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface APIKeyCreateAPIKeyResponse {
|
|
73
|
+
/**
|
|
74
|
+
* API key ID
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
/**
|
|
78
|
+
* Creation timestamp
|
|
79
|
+
*/
|
|
80
|
+
createdAt: string;
|
|
81
|
+
/**
|
|
82
|
+
* API key value
|
|
83
|
+
*/
|
|
84
|
+
key: string;
|
|
85
|
+
/**
|
|
86
|
+
* API key name
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
/**
|
|
90
|
+
* Last used timestamp
|
|
91
|
+
*/
|
|
92
|
+
lastUsed?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface APIKeyCreateParams {
|
|
95
|
+
/**
|
|
96
|
+
* API key name
|
|
97
|
+
*/
|
|
98
|
+
name: string;
|
|
99
|
+
}
|
|
100
|
+
export interface APIKeyDeleteParams {
|
|
101
|
+
/**
|
|
102
|
+
* Project ID
|
|
103
|
+
*/
|
|
104
|
+
projectId: string;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace APIKeys {
|
|
107
|
+
export { type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateAPIKeyResponse as APIKeyCreateAPIKeyResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=api-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIjF,MAAM,CAAC,EAAE,EAAE,MAAM,EA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IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.APIKeys = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class APIKeys extends resource_1.APIResource {
|
|
8
|
+
create(projectID, body, options) {
|
|
9
|
+
return this._client.post((0, path_1.path) `/api/v3/org/project/${projectID}/api_keys/create`, { body, ...options });
|
|
10
|
+
}
|
|
11
|
+
list(projectID, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/api/v3/org/project/${projectID}/api_keys/list`, options);
|
|
13
|
+
}
|
|
14
|
+
delete(id, params, options) {
|
|
15
|
+
const { projectId } = params;
|
|
16
|
+
return this._client.delete((0, path_1.path) `/api/v3/org/project/${projectId}/api_keys/remove/${id}`, options);
|
|
17
|
+
}
|
|
18
|
+
createAPIKey(projectID, options) {
|
|
19
|
+
return this._client.post((0, path_1.path) `/api/v3/org/project/${projectID}/api_keys/create-api-key`, options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.APIKeys = APIKeys;
|
|
23
|
+
//# sourceMappingURL=api-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IACtC,MAAM,CACJ,SAAiB,EACjB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,uBAAuB,SAAS,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,SAAS,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAA0B,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uBAAuB,SAAS,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,uBAAuB,SAAS,0BAA0B,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AArBD,0BAqBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
export class APIKeys extends APIResource {
|
|
5
|
+
create(projectID, body, options) {
|
|
6
|
+
return this._client.post(path `/api/v3/org/project/${projectID}/api_keys/create`, { body, ...options });
|
|
7
|
+
}
|
|
8
|
+
list(projectID, options) {
|
|
9
|
+
return this._client.get(path `/api/v3/org/project/${projectID}/api_keys/list`, options);
|
|
10
|
+
}
|
|
11
|
+
delete(id, params, options) {
|
|
12
|
+
const { projectId } = params;
|
|
13
|
+
return this._client.delete(path `/api/v3/org/project/${projectId}/api_keys/remove/${id}`, options);
|
|
14
|
+
}
|
|
15
|
+
createAPIKey(projectID, options) {
|
|
16
|
+
return this._client.post(path `/api/v3/org/project/${projectID}/api_keys/create-api-key`, options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=api-keys.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../../../src/resources/org/project/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC,MAAM,CACJ,SAAiB,EACjB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uBAAuB,SAAS,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED,IAAI,CAAC,SAAiB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,SAAS,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAA0B,EAAE,OAAwB;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uBAAuB,SAAS,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,uBAAuB,SAAS,0BAA0B,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { APIKeys, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyDeleteResponse, type APIKeyCreateAPIKeyResponse, type APIKeyCreateParams, type APIKeyDeleteParams, } from "./api-keys.mjs";
|
|
2
|
+
export { Project, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, } from "./project.mjs";
|
|
3
|
+
export { Trigger, type TriggerUpdateResponse, type TriggerListResponse, type TriggerUpdateParams, } from "./trigger.mjs";
|
|
4
|
+
export { Webhook, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookDeleteResponse, type WebhookRefreshResponse, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookDeleteParams, } from "./webhook.mjs";
|
|
5
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/org/project/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { APIKeys, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyDeleteResponse, type APIKeyCreateAPIKeyResponse, type APIKeyCreateParams, type APIKeyDeleteParams, } from "./api-keys.js";
|
|
2
|
+
export { Project, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, } from "./project.js";
|
|
3
|
+
export { Trigger, type TriggerUpdateResponse, type TriggerListResponse, type TriggerUpdateParams, } from "./trigger.js";
|
|
4
|
+
export { Webhook, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookDeleteResponse, type WebhookRefreshResponse, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookDeleteParams, } from "./webhook.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/org/project/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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.Webhook = exports.Trigger = exports.Project = exports.APIKeys = void 0;
|
|
5
|
+
var api_keys_1 = require("./api-keys.js");
|
|
6
|
+
Object.defineProperty(exports, "APIKeys", { enumerable: true, get: function () { return api_keys_1.APIKeys; } });
|
|
7
|
+
var project_1 = require("./project.js");
|
|
8
|
+
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return project_1.Project; } });
|
|
9
|
+
var trigger_1 = require("./trigger.js");
|
|
10
|
+
Object.defineProperty(exports, "Trigger", { enumerable: true, get: function () { return trigger_1.Trigger; } });
|
|
11
|
+
var webhook_1 = require("./webhook.js");
|
|
12
|
+
Object.defineProperty(exports, "Webhook", { enumerable: true, get: function () { return webhook_1.Webhook; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/org/project/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAQoB;AAPlB,mGAAA,OAAO,OAAA;AAQT,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,wCASmB;AARjB,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { APIKeys, } from "./api-keys.mjs";
|
|
3
|
+
export { Project, } from "./project.mjs";
|
|
4
|
+
export { Trigger, } from "./trigger.mjs";
|
|
5
|
+
export { Webhook, } from "./webhook.mjs";
|
|
6
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/org/project/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAOR;OACM,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAIR;OACM,EACL,OAAO,GAQR"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as APIKeysAPI from "./api-keys.mjs";
|
|
3
|
+
import { APIKeyCreateAPIKeyResponse, APIKeyCreateParams, APIKeyCreateResponse, APIKeyDeleteParams, APIKeyDeleteResponse, APIKeyListResponse, APIKeys } from "./api-keys.mjs";
|
|
4
|
+
import * as TriggerAPI from "./trigger.mjs";
|
|
5
|
+
import { Trigger, TriggerListResponse, TriggerUpdateParams, TriggerUpdateResponse } from "./trigger.mjs";
|
|
6
|
+
import * as WebhookAPI from "./webhook.mjs";
|
|
7
|
+
import { Webhook, WebhookDeleteParams, WebhookDeleteResponse, WebhookRefreshResponse, WebhookRetrieveParams, WebhookRetrieveResponse, WebhookUpdateParams, WebhookUpdateResponse } from "./webhook.mjs";
|
|
8
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
9
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
10
|
+
export declare class Project extends APIResource {
|
|
11
|
+
apiKeys: APIKeysAPI.APIKeys;
|
|
12
|
+
webhook: WebhookAPI.Webhook;
|
|
13
|
+
trigger: TriggerAPI.Trigger;
|
|
14
|
+
create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<ProjectCreateResponse>;
|
|
15
|
+
retrieve(projectID: string, options?: RequestOptions): APIPromise<ProjectRetrieveResponse>;
|
|
16
|
+
list(options?: RequestOptions): APIPromise<ProjectListResponse>;
|
|
17
|
+
delete(projectID: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface ProjectCreateResponse {
|
|
20
|
+
id: string;
|
|
21
|
+
auto_id: number;
|
|
22
|
+
created_at: string;
|
|
23
|
+
deleted: boolean;
|
|
24
|
+
email: string;
|
|
25
|
+
event_webhook_url: string | null;
|
|
26
|
+
name: string;
|
|
27
|
+
nano_id: string | null;
|
|
28
|
+
org_id: string;
|
|
29
|
+
updated_at: string;
|
|
30
|
+
webhook_secret: string | null;
|
|
31
|
+
webhook_url: string | null;
|
|
32
|
+
is_new_webhook?: boolean;
|
|
33
|
+
last_subscribed_at?: string | null;
|
|
34
|
+
triggers_enabled?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface ProjectRetrieveResponse {
|
|
37
|
+
id: string;
|
|
38
|
+
auto_id: number;
|
|
39
|
+
created_at: string;
|
|
40
|
+
deleted: boolean;
|
|
41
|
+
email: string;
|
|
42
|
+
event_webhook_url: string | null;
|
|
43
|
+
name: string;
|
|
44
|
+
nano_id: string | null;
|
|
45
|
+
org_id: string;
|
|
46
|
+
updated_at: string;
|
|
47
|
+
webhook_secret: string | null;
|
|
48
|
+
webhook_url: string | null;
|
|
49
|
+
is_new_webhook?: boolean;
|
|
50
|
+
last_subscribed_at?: string | null;
|
|
51
|
+
triggers_enabled?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface ProjectListResponse {
|
|
54
|
+
data: Array<ProjectListResponse.Data>;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace ProjectListResponse {
|
|
57
|
+
interface Data {
|
|
58
|
+
id: string;
|
|
59
|
+
auto_id: number;
|
|
60
|
+
created_at: string;
|
|
61
|
+
deleted: boolean;
|
|
62
|
+
email: string;
|
|
63
|
+
event_webhook_url: string | null;
|
|
64
|
+
name: string;
|
|
65
|
+
nano_id: string | null;
|
|
66
|
+
org_id: string;
|
|
67
|
+
updated_at: string;
|
|
68
|
+
webhook_secret: string | null;
|
|
69
|
+
webhook_url: string | null;
|
|
70
|
+
is_new_webhook?: boolean;
|
|
71
|
+
last_subscribed_at?: string | null;
|
|
72
|
+
triggers_enabled?: boolean;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export interface ProjectDeleteResponse {
|
|
76
|
+
status: string;
|
|
77
|
+
}
|
|
78
|
+
export interface ProjectCreateParams {
|
|
79
|
+
/**
|
|
80
|
+
* Name of the project
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace Project {
|
|
85
|
+
export { type ProjectCreateResponse as ProjectCreateResponse, type ProjectRetrieveResponse as ProjectRetrieveResponse, type ProjectListResponse as ProjectListResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, };
|
|
86
|
+
export { APIKeys as APIKeys, type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyListResponse as APIKeyListResponse, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeyCreateAPIKeyResponse as APIKeyCreateAPIKeyResponse, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyDeleteParams as APIKeyDeleteParams, };
|
|
87
|
+
export { Webhook as Webhook, type WebhookRetrieveResponse as WebhookRetrieveResponse, type WebhookUpdateResponse as WebhookUpdateResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type WebhookRefreshResponse as WebhookRefreshResponse, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookDeleteParams as WebhookDeleteParams, };
|
|
88
|
+
export { Trigger as Trigger, type TriggerUpdateResponse as TriggerUpdateResponse, type TriggerListResponse as TriggerListResponse, type TriggerUpdateParams as TriggerUpdateParams, };
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=project.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.mts","sourceRoot":"","sources":["../../../src/resources/org/project/project.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,EACR;OACM,KAAK,UAAU;OACf,EAAE,OAAO,EA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