bem-ai-sdk 0.0.4
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 +28 -0
- package/LICENSE +201 -0
- package/README.md +399 -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 +260 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +260 -0
- package/client.d.ts.map +1 -0
- package/client.js +538 -0
- package/client.js.map +1 -0
- package/client.mjs +534 -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 +135 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +135 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +305 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +294 -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/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +153 -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/calls.d.mts +216 -0
- package/resources/calls.d.mts.map +1 -0
- package/resources/calls.d.ts +216 -0
- package/resources/calls.d.ts.map +1 -0
- package/resources/calls.js +64 -0
- package/resources/calls.js.map +1 -0
- package/resources/calls.mjs +60 -0
- package/resources/calls.mjs.map +1 -0
- package/resources/errors.d.mts +150 -0
- package/resources/errors.d.mts.map +1 -0
- package/resources/errors.d.ts +150 -0
- package/resources/errors.d.ts.map +1 -0
- package/resources/errors.js +47 -0
- package/resources/errors.js.map +1 -0
- package/resources/errors.mjs +43 -0
- package/resources/errors.mjs.map +1 -0
- package/resources/functions/copy.d.mts +81 -0
- package/resources/functions/copy.d.mts.map +1 -0
- package/resources/functions/copy.d.ts +81 -0
- package/resources/functions/copy.d.ts.map +1 -0
- package/resources/functions/copy.js +28 -0
- package/resources/functions/copy.js.map +1 -0
- package/resources/functions/copy.mjs +24 -0
- package/resources/functions/copy.mjs.map +1 -0
- package/resources/functions/functions.d.mts +1469 -0
- package/resources/functions/functions.d.mts.map +1 -0
- package/resources/functions/functions.d.ts +1469 -0
- package/resources/functions/functions.d.ts.map +1 -0
- package/resources/functions/functions.js +70 -0
- package/resources/functions/functions.js.map +1 -0
- package/resources/functions/functions.mjs +65 -0
- package/resources/functions/functions.mjs.map +1 -0
- package/resources/functions/index.d.mts +4 -0
- package/resources/functions/index.d.mts.map +1 -0
- package/resources/functions/index.d.ts +4 -0
- package/resources/functions/index.d.ts.map +1 -0
- package/resources/functions/index.js +11 -0
- package/resources/functions/index.js.map +1 -0
- package/resources/functions/index.mjs +5 -0
- package/resources/functions/index.mjs.map +1 -0
- package/resources/functions/versions.d.mts +419 -0
- package/resources/functions/versions.d.mts.map +1 -0
- package/resources/functions/versions.d.ts +419 -0
- package/resources/functions/versions.d.ts.map +1 -0
- package/resources/functions/versions.js +36 -0
- package/resources/functions/versions.js.map +1 -0
- package/resources/functions/versions.mjs +32 -0
- package/resources/functions/versions.mjs.map +1 -0
- package/resources/functions.d.mts +2 -0
- package/resources/functions.d.mts.map +1 -0
- package/resources/functions.d.ts +2 -0
- package/resources/functions.d.ts.map +1 -0
- package/resources/functions.js +6 -0
- package/resources/functions.js.map +1 -0
- package/resources/functions.mjs +3 -0
- package/resources/functions.mjs.map +1 -0
- package/resources/index.d.mts +6 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +15 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -0
- package/resources/outputs.d.mts +737 -0
- package/resources/outputs.d.mts.map +1 -0
- package/resources/outputs.d.ts +737 -0
- package/resources/outputs.d.ts.map +1 -0
- package/resources/outputs.js +54 -0
- package/resources/outputs.js.map +1 -0
- package/resources/outputs.mjs +50 -0
- package/resources/outputs.mjs.map +1 -0
- package/resources/workflows/index.d.mts +3 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +3 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +9 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +4 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/versions.d.mts +37 -0
- package/resources/workflows/versions.d.mts.map +1 -0
- package/resources/workflows/versions.d.ts +37 -0
- package/resources/workflows/versions.d.ts.map +1 -0
- package/resources/workflows/versions.js +27 -0
- package/resources/workflows/versions.js.map +1 -0
- package/resources/workflows/versions.mjs +23 -0
- package/resources/workflows/versions.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +366 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +366 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +88 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +83 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +2 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +2 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +6 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +3 -0
- package/resources/workflows.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 +970 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +89 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +512 -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/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/calls.ts +264 -0
- package/src/resources/errors.ts +199 -0
- package/src/resources/functions/copy.ts +96 -0
- package/src/resources/functions/functions.ts +1892 -0
- package/src/resources/functions/index.ts +30 -0
- package/src/resources/functions/versions.ts +533 -0
- package/src/resources/functions.ts +3 -0
- package/src/resources/index.ts +56 -0
- package/src/resources/outputs.ts +987 -0
- package/src/resources/workflows/index.ts +25 -0
- package/src/resources/workflows/versions.ts +68 -0
- package/src/resources/workflows/workflows.ts +505 -0
- package/src/resources/workflows.ts +3 -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,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Versions,
|
|
5
|
+
type VersionRetrieveResponse,
|
|
6
|
+
type VersionRetrieveParams,
|
|
7
|
+
type VersionListParams,
|
|
8
|
+
} from './versions';
|
|
9
|
+
export {
|
|
10
|
+
Workflows,
|
|
11
|
+
type FunctionVersionIdentifier,
|
|
12
|
+
type Workflow,
|
|
13
|
+
type WorkflowRequestRelationship,
|
|
14
|
+
type WorkflowCreateResponse,
|
|
15
|
+
type WorkflowRetrieveResponse,
|
|
16
|
+
type WorkflowUpdateResponse,
|
|
17
|
+
type WorkflowCopyResponse,
|
|
18
|
+
type WorkflowCreateParams,
|
|
19
|
+
type WorkflowUpdateParams,
|
|
20
|
+
type WorkflowListParams,
|
|
21
|
+
type WorkflowCallParams,
|
|
22
|
+
type WorkflowCopyParams,
|
|
23
|
+
type WorkflowsWorkflowVersionsPage,
|
|
24
|
+
type WorkflowsWorkflowsPage,
|
|
25
|
+
} from './workflows';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as WorkflowsAPI from './workflows';
|
|
5
|
+
import { WorkflowsWorkflowVersionsPage } from './workflows';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { PagePromise, WorkflowVersionsPage, type WorkflowVersionsPageParams } from '../../core/pagination';
|
|
8
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
9
|
+
import { path } from '../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Workflow operations
|
|
13
|
+
*/
|
|
14
|
+
export class Versions extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get a Workflow Version
|
|
17
|
+
*/
|
|
18
|
+
retrieve(
|
|
19
|
+
versionNum: number,
|
|
20
|
+
params: VersionRetrieveParams,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): APIPromise<VersionRetrieveResponse> {
|
|
23
|
+
const { workflowName } = params;
|
|
24
|
+
return this._client.get(path`/v3/workflows/${workflowName}/versions/${versionNum}`, options);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* List Workflow Versions
|
|
29
|
+
*/
|
|
30
|
+
list(
|
|
31
|
+
workflowName: string,
|
|
32
|
+
query: VersionListParams | null | undefined = {},
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): PagePromise<WorkflowsWorkflowVersionsPage, WorkflowsAPI.Workflow> {
|
|
35
|
+
return this._client.getAPIList(
|
|
36
|
+
path`/v3/workflows/${workflowName}/versions`,
|
|
37
|
+
WorkflowVersionsPage<WorkflowsAPI.Workflow>,
|
|
38
|
+
{ query, ...options },
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface VersionRetrieveResponse {
|
|
44
|
+
/**
|
|
45
|
+
* Error message if the workflow version retrieval failed.
|
|
46
|
+
*/
|
|
47
|
+
error?: string;
|
|
48
|
+
|
|
49
|
+
workflow?: WorkflowsAPI.Workflow;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface VersionRetrieveParams {
|
|
53
|
+
workflowName: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface VersionListParams extends WorkflowVersionsPageParams {
|
|
57
|
+
sortOrder?: 'asc' | 'desc';
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare namespace Versions {
|
|
61
|
+
export {
|
|
62
|
+
type VersionRetrieveResponse as VersionRetrieveResponse,
|
|
63
|
+
type VersionRetrieveParams as VersionRetrieveParams,
|
|
64
|
+
type VersionListParams as VersionListParams,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { type WorkflowsWorkflowVersionsPage };
|
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as WorkflowsAPI from './workflows';
|
|
5
|
+
import * as CallsAPI from '../calls';
|
|
6
|
+
import * as FunctionsAPI from '../functions/functions';
|
|
7
|
+
import * as VersionsAPI from './versions';
|
|
8
|
+
import { VersionListParams, VersionRetrieveParams, VersionRetrieveResponse, Versions } from './versions';
|
|
9
|
+
import { APIPromise } from '../../core/api-promise';
|
|
10
|
+
import {
|
|
11
|
+
PagePromise,
|
|
12
|
+
WorkflowVersionsPage,
|
|
13
|
+
WorkflowsPage,
|
|
14
|
+
type WorkflowsPageParams,
|
|
15
|
+
} from '../../core/pagination';
|
|
16
|
+
import { buildHeaders } from '../../internal/headers';
|
|
17
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
18
|
+
import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
19
|
+
import { path } from '../../internal/utils/path';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Workflow operations
|
|
23
|
+
*/
|
|
24
|
+
export class Workflows extends APIResource {
|
|
25
|
+
versions: VersionsAPI.Versions = new VersionsAPI.Versions(this._client);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Create a Workflow
|
|
29
|
+
*/
|
|
30
|
+
create(body: WorkflowCreateParams, options?: RequestOptions): APIPromise<WorkflowCreateResponse> {
|
|
31
|
+
return this._client.post('/v3/workflows', { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Get a Workflow
|
|
36
|
+
*/
|
|
37
|
+
retrieve(workflowName: string, options?: RequestOptions): APIPromise<WorkflowRetrieveResponse> {
|
|
38
|
+
return this._client.get(path`/v3/workflows/${workflowName}`, options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Update a Workflow
|
|
43
|
+
*/
|
|
44
|
+
update(
|
|
45
|
+
workflowName: string,
|
|
46
|
+
body: WorkflowUpdateParams,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): APIPromise<WorkflowUpdateResponse> {
|
|
49
|
+
return this._client.patch(path`/v3/workflows/${workflowName}`, { body, ...options });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* List Workflows
|
|
54
|
+
*/
|
|
55
|
+
list(
|
|
56
|
+
query: WorkflowListParams | null | undefined = {},
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): PagePromise<WorkflowsWorkflowsPage, Workflow> {
|
|
59
|
+
return this._client.getAPIList('/v3/workflows', WorkflowsPage<Workflow>, { query, ...options });
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Delete a Workflow
|
|
64
|
+
*/
|
|
65
|
+
delete(workflowName: string, options?: RequestOptions): APIPromise<void> {
|
|
66
|
+
return this._client.delete(path`/v3/workflows/${workflowName}`, {
|
|
67
|
+
...options,
|
|
68
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* **Invoke a workflow by submitting a multipart form request.**
|
|
74
|
+
*
|
|
75
|
+
* Workflows can only be called via multipart form in V3. Submit the input file
|
|
76
|
+
* along with an optional reference ID for tracking.
|
|
77
|
+
*
|
|
78
|
+
* ## Synchronous vs Asynchronous
|
|
79
|
+
*
|
|
80
|
+
* By default the call is created asynchronously and this endpoint returns
|
|
81
|
+
* `202 Accepted` immediately with a `pending` call object. Set the `wait` field to
|
|
82
|
+
* `true` to block until the call completes (up to 30 seconds):
|
|
83
|
+
*
|
|
84
|
+
* - On success: returns `200 OK` with the completed call, `outputs` populated
|
|
85
|
+
* - On failure: returns `500 Internal Server Error` with the call and an `error`
|
|
86
|
+
* message
|
|
87
|
+
* - On timeout: returns `202 Accepted` with the still-running call
|
|
88
|
+
*
|
|
89
|
+
* ## Tracking
|
|
90
|
+
*
|
|
91
|
+
* Poll `GET /v3/calls/{callID}` to check status, or configure a webhook
|
|
92
|
+
* subscription to receive events when the call finishes.
|
|
93
|
+
*/
|
|
94
|
+
call(
|
|
95
|
+
workflowName: string,
|
|
96
|
+
body: WorkflowCallParams,
|
|
97
|
+
options?: RequestOptions,
|
|
98
|
+
): APIPromise<CallsAPI.CallGetResponse> {
|
|
99
|
+
return this._client.post(
|
|
100
|
+
path`/v3/workflows/${workflowName}/call`,
|
|
101
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Copy a Workflow
|
|
107
|
+
*/
|
|
108
|
+
copy(body: WorkflowCopyParams, options?: RequestOptions): APIPromise<WorkflowCopyResponse> {
|
|
109
|
+
return this._client.post('/v3/workflows/copy', { body, ...options });
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type WorkflowsWorkflowsPage = WorkflowsPage<Workflow>;
|
|
114
|
+
|
|
115
|
+
export type WorkflowsWorkflowVersionsPage = WorkflowVersionsPage<Workflow>;
|
|
116
|
+
|
|
117
|
+
export interface FunctionVersionIdentifier {
|
|
118
|
+
/**
|
|
119
|
+
* Unique identifier of function. Provide either id or name, not both.
|
|
120
|
+
*/
|
|
121
|
+
id?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Name of function. Must be UNIQUE on a per-environment basis. Provide either id
|
|
125
|
+
* or name, not both.
|
|
126
|
+
*/
|
|
127
|
+
name?: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Version number of function.
|
|
131
|
+
*/
|
|
132
|
+
versionNum?: number;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface Workflow {
|
|
136
|
+
/**
|
|
137
|
+
* Unique identifier of workflow.
|
|
138
|
+
*/
|
|
139
|
+
id: string;
|
|
140
|
+
|
|
141
|
+
mainFunction: FunctionVersionIdentifier;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Unique name of workflow. Must be UNIQUE on a per-environment basis.
|
|
145
|
+
*/
|
|
146
|
+
name: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Version number of workflow version.
|
|
150
|
+
*/
|
|
151
|
+
versionNum: number;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Audit trail information for the workflow.
|
|
155
|
+
*/
|
|
156
|
+
audit?: Workflow.Audit;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The date and time the workflow was created.
|
|
160
|
+
*/
|
|
161
|
+
createdAt?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Display name of workflow.
|
|
165
|
+
*/
|
|
166
|
+
displayName?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Email address of workflow.
|
|
170
|
+
*/
|
|
171
|
+
emailAddress?: string;
|
|
172
|
+
|
|
173
|
+
relationships?: Array<Workflow.Relationship>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Array of tags to categorize and organize workflows.
|
|
177
|
+
*/
|
|
178
|
+
tags?: Array<string>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The date and time the workflow was last updated.
|
|
182
|
+
*/
|
|
183
|
+
updatedAt?: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export namespace Workflow {
|
|
187
|
+
/**
|
|
188
|
+
* Audit trail information for the workflow.
|
|
189
|
+
*/
|
|
190
|
+
export interface Audit {
|
|
191
|
+
/**
|
|
192
|
+
* Information about who created the current version.
|
|
193
|
+
*/
|
|
194
|
+
versionCreatedBy?: FunctionsAPI.UserActionSummary;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Information about who created the workflow.
|
|
198
|
+
*/
|
|
199
|
+
workflowCreatedBy?: FunctionsAPI.UserActionSummary;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Information about who last updated the workflow.
|
|
203
|
+
*/
|
|
204
|
+
workflowLastUpdatedBy?: FunctionsAPI.UserActionSummary;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface Relationship {
|
|
208
|
+
destinationFunction: WorkflowsAPI.FunctionVersionIdentifier;
|
|
209
|
+
|
|
210
|
+
sourceFunction: WorkflowsAPI.FunctionVersionIdentifier;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Name of destination.
|
|
214
|
+
*/
|
|
215
|
+
destinationName?: string;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface WorkflowRequestRelationship {
|
|
220
|
+
destinationFunction: FunctionVersionIdentifier;
|
|
221
|
+
|
|
222
|
+
sourceFunction: FunctionVersionIdentifier;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Name of destination.
|
|
226
|
+
*/
|
|
227
|
+
destinationName?: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface WorkflowCreateResponse {
|
|
231
|
+
/**
|
|
232
|
+
* Error message if the workflow creation failed.
|
|
233
|
+
*/
|
|
234
|
+
error?: string;
|
|
235
|
+
|
|
236
|
+
workflow?: Workflow;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface WorkflowRetrieveResponse {
|
|
240
|
+
/**
|
|
241
|
+
* Error message if the workflow retrieval failed.
|
|
242
|
+
*/
|
|
243
|
+
error?: string;
|
|
244
|
+
|
|
245
|
+
workflow?: Workflow;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface WorkflowUpdateResponse {
|
|
249
|
+
/**
|
|
250
|
+
* Error message if the workflow update failed.
|
|
251
|
+
*/
|
|
252
|
+
error?: string;
|
|
253
|
+
|
|
254
|
+
workflow?: Workflow;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface WorkflowCopyResponse {
|
|
258
|
+
/**
|
|
259
|
+
* Information about functions that were copied when copying to a different
|
|
260
|
+
* environment. Empty when copying within the same environment.
|
|
261
|
+
*/
|
|
262
|
+
copiedFunctions?: Array<WorkflowCopyResponse.CopiedFunction>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The environment where the workflow was copied to.
|
|
266
|
+
*/
|
|
267
|
+
environment?: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Error message if the workflow copy failed.
|
|
271
|
+
*/
|
|
272
|
+
error?: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The newly created workflow.
|
|
276
|
+
*/
|
|
277
|
+
workflow?: Workflow;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export namespace WorkflowCopyResponse {
|
|
281
|
+
export interface CopiedFunction {
|
|
282
|
+
/**
|
|
283
|
+
* ID of the source function that was copied.
|
|
284
|
+
*/
|
|
285
|
+
sourceFunctionID: string;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Name of the source function that was copied.
|
|
289
|
+
*/
|
|
290
|
+
sourceFunctionName: string;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Version number of the source function that was copied.
|
|
294
|
+
*/
|
|
295
|
+
sourceVersionNum: number;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* ID of the newly created function in the target environment.
|
|
299
|
+
*/
|
|
300
|
+
targetFunctionID: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Name of the newly created function in the target environment.
|
|
304
|
+
*/
|
|
305
|
+
targetFunctionName: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Version number of the newly created function in the target environment.
|
|
309
|
+
*/
|
|
310
|
+
targetVersionNum: number;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface WorkflowCreateParams {
|
|
315
|
+
/**
|
|
316
|
+
* Display name of workflow.
|
|
317
|
+
*/
|
|
318
|
+
displayName?: string;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Main function for the workflow. The `mainFunction` and `relationships` fields
|
|
322
|
+
* act as a unit and must be provided together, or neither provided.
|
|
323
|
+
*
|
|
324
|
+
* - If `mainFunction` is provided without `relationships`, relationships will
|
|
325
|
+
* default to an empty array.
|
|
326
|
+
* - If `relationships` is provided, `mainFunction` must also be provided
|
|
327
|
+
* (validation error if missing).
|
|
328
|
+
* - If neither is provided, both mainFunction and relationships remain unchanged
|
|
329
|
+
* from the current workflow version.
|
|
330
|
+
*/
|
|
331
|
+
mainFunction?: FunctionVersionIdentifier;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Name of workflow. Can be updated to rename the workflow. Must be unique within
|
|
335
|
+
* the environment and match the pattern ^[a-zA-Z0-9_-]{1,128}$.
|
|
336
|
+
*/
|
|
337
|
+
name?: string;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Relationships between functions in the workflow. The `mainFunction` and
|
|
341
|
+
* `relationships` fields act as a unit and must be provided together, or neither
|
|
342
|
+
* provided.
|
|
343
|
+
*
|
|
344
|
+
* - If `relationships` is provided, `mainFunction` must also be provided
|
|
345
|
+
* (validation error if missing).
|
|
346
|
+
* - If `mainFunction` is provided without `relationships`, relationships will
|
|
347
|
+
* default to an empty array.
|
|
348
|
+
* - If neither is provided, both mainFunction and relationships remain unchanged
|
|
349
|
+
* from the current workflow version.
|
|
350
|
+
*/
|
|
351
|
+
relationships?: Array<WorkflowRequestRelationship>;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Array of tags to categorize and organize workflows.
|
|
355
|
+
*/
|
|
356
|
+
tags?: Array<string>;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export interface WorkflowUpdateParams {
|
|
360
|
+
/**
|
|
361
|
+
* Display name of workflow.
|
|
362
|
+
*/
|
|
363
|
+
displayName?: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Main function for the workflow. The `mainFunction` and `relationships` fields
|
|
367
|
+
* act as a unit and must be provided together, or neither provided.
|
|
368
|
+
*
|
|
369
|
+
* - If `mainFunction` is provided without `relationships`, relationships will
|
|
370
|
+
* default to an empty array.
|
|
371
|
+
* - If `relationships` is provided, `mainFunction` must also be provided
|
|
372
|
+
* (validation error if missing).
|
|
373
|
+
* - If neither is provided, both mainFunction and relationships remain unchanged
|
|
374
|
+
* from the current workflow version.
|
|
375
|
+
*/
|
|
376
|
+
mainFunction?: FunctionVersionIdentifier;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Name of workflow. Can be updated to rename the workflow. Must be unique within
|
|
380
|
+
* the environment and match the pattern ^[a-zA-Z0-9_-]{1,128}$.
|
|
381
|
+
*/
|
|
382
|
+
name?: string;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Relationships between functions in the workflow. The `mainFunction` and
|
|
386
|
+
* `relationships` fields act as a unit and must be provided together, or neither
|
|
387
|
+
* provided.
|
|
388
|
+
*
|
|
389
|
+
* - If `relationships` is provided, `mainFunction` must also be provided
|
|
390
|
+
* (validation error if missing).
|
|
391
|
+
* - If `mainFunction` is provided without `relationships`, relationships will
|
|
392
|
+
* default to an empty array.
|
|
393
|
+
* - If neither is provided, both mainFunction and relationships remain unchanged
|
|
394
|
+
* from the current workflow version.
|
|
395
|
+
*/
|
|
396
|
+
relationships?: Array<WorkflowRequestRelationship>;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Array of tags to categorize and organize workflows.
|
|
400
|
+
*/
|
|
401
|
+
tags?: Array<string>;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export interface WorkflowListParams extends WorkflowsPageParams {
|
|
405
|
+
displayName?: string;
|
|
406
|
+
|
|
407
|
+
functionIDs?: Array<string>;
|
|
408
|
+
|
|
409
|
+
functionNames?: Array<string>;
|
|
410
|
+
|
|
411
|
+
sortOrder?: 'asc' | 'desc';
|
|
412
|
+
|
|
413
|
+
tags?: Array<string>;
|
|
414
|
+
|
|
415
|
+
workflowIDs?: Array<string>;
|
|
416
|
+
|
|
417
|
+
workflowNames?: Array<string>;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export interface WorkflowCallParams {
|
|
421
|
+
/**
|
|
422
|
+
* Your reference ID for tracking this call.
|
|
423
|
+
*/
|
|
424
|
+
callReferenceID?: string;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Single input file (for transform, analyze, route, and split functions).
|
|
428
|
+
*/
|
|
429
|
+
file?: unknown;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Multiple input files (for join functions).
|
|
433
|
+
*/
|
|
434
|
+
files?: Array<string>;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* When `true`, the endpoint blocks until the call completes (up to 30 seconds) and
|
|
438
|
+
* returns the finished call object. Default: `false`.
|
|
439
|
+
*/
|
|
440
|
+
wait?: string;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export interface WorkflowCopyParams {
|
|
444
|
+
/**
|
|
445
|
+
* Name of the source workflow to copy from.
|
|
446
|
+
*/
|
|
447
|
+
sourceWorkflowName: string;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Name for the new copied workflow. Must be unique within the target environment.
|
|
451
|
+
*/
|
|
452
|
+
targetWorkflowName: string;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Optional version number of the source workflow to copy. If not provided, copies
|
|
456
|
+
* the current version.
|
|
457
|
+
*/
|
|
458
|
+
sourceWorkflowVersionNum?: number;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Optional tags for the copied workflow. If not provided, uses the source
|
|
462
|
+
* workflow's tags.
|
|
463
|
+
*/
|
|
464
|
+
tags?: Array<string>;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Optional display name for the copied workflow. If not provided, uses the source
|
|
468
|
+
* workflow's display name with " (Copy)" appended.
|
|
469
|
+
*/
|
|
470
|
+
targetDisplayName?: string;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Optional target environment name. If provided, copies the workflow to a
|
|
474
|
+
* different environment. When copying to a different environment, all functions
|
|
475
|
+
* used in the workflow will also be copied.
|
|
476
|
+
*/
|
|
477
|
+
targetEnvironment?: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
Workflows.Versions = Versions;
|
|
481
|
+
|
|
482
|
+
export declare namespace Workflows {
|
|
483
|
+
export {
|
|
484
|
+
type FunctionVersionIdentifier as FunctionVersionIdentifier,
|
|
485
|
+
type Workflow as Workflow,
|
|
486
|
+
type WorkflowRequestRelationship as WorkflowRequestRelationship,
|
|
487
|
+
type WorkflowCreateResponse as WorkflowCreateResponse,
|
|
488
|
+
type WorkflowRetrieveResponse as WorkflowRetrieveResponse,
|
|
489
|
+
type WorkflowUpdateResponse as WorkflowUpdateResponse,
|
|
490
|
+
type WorkflowCopyResponse as WorkflowCopyResponse,
|
|
491
|
+
type WorkflowsWorkflowsPage as WorkflowsWorkflowsPage,
|
|
492
|
+
type WorkflowCreateParams as WorkflowCreateParams,
|
|
493
|
+
type WorkflowUpdateParams as WorkflowUpdateParams,
|
|
494
|
+
type WorkflowListParams as WorkflowListParams,
|
|
495
|
+
type WorkflowCallParams as WorkflowCallParams,
|
|
496
|
+
type WorkflowCopyParams as WorkflowCopyParams,
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
export {
|
|
500
|
+
Versions as Versions,
|
|
501
|
+
type VersionRetrieveResponse as VersionRetrieveResponse,
|
|
502
|
+
type VersionRetrieveParams as VersionRetrieveParams,
|
|
503
|
+
type VersionListParams as VersionListParams,
|
|
504
|
+
};
|
|
505
|
+
}
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "ES2015",
|
|
8
|
+
"lib": ["DOM", "DOM.Iterable", "ES2018"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/uploads.ts
ADDED
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '0.0.4'; // x-release-please-version
|
package/uploads.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.d.ts
ADDED
package/uploads.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/uploads instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/uploads.js"), exports);
|
|
6
|
+
//# sourceMappingURL=uploads.js.map
|
package/uploads.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,4DAA+B"}
|
package/uploads.mjs
ADDED
package/uploads.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/version.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.d.ts
ADDED
package/version.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.js
ADDED
package/version.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
ADDED
package/version.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|