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,1469 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as FunctionsAPI from "./functions.js";
|
|
3
|
+
import * as CopyAPI from "./copy.js";
|
|
4
|
+
import { Copy, CopyCreateParams, FunctionCopyRequest } from "./copy.js";
|
|
5
|
+
import * as VersionsAPI from "./versions.js";
|
|
6
|
+
import { FunctionVersion, ListFunctionVersionsResponse, VersionRetrieveParams, VersionRetrieveResponse, Versions } from "./versions.js";
|
|
7
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
8
|
+
import { FunctionsPage, type FunctionsPageParams, PagePromise } from "../../core/pagination.js";
|
|
9
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
10
|
+
/**
|
|
11
|
+
* Functions are the core building blocks of data transformation in Bem. Each function type serves a specific purpose:
|
|
12
|
+
*
|
|
13
|
+
* - **Transform**: Extract structured JSON data from unstructured documents (PDFs, emails, images)
|
|
14
|
+
* - **Analyze**: Perform visual analysis on documents to extract layout-aware information
|
|
15
|
+
* - **Route**: Direct data to different processing paths based on conditions
|
|
16
|
+
* - **Split**: Break multi-page documents into individual pages for parallel processing
|
|
17
|
+
* - **Join**: Combine outputs from multiple function calls into a single result
|
|
18
|
+
* - **Payload Shaping**: Transform and restructure data using JMESPath expressions
|
|
19
|
+
* - **Enrich**: Enhance data with semantic search against collections
|
|
20
|
+
*
|
|
21
|
+
* Use these endpoints to create, update, list, and manage your functions.
|
|
22
|
+
*/
|
|
23
|
+
export declare class Functions extends APIResource {
|
|
24
|
+
copy: CopyAPI.Copy;
|
|
25
|
+
versions: VersionsAPI.Versions;
|
|
26
|
+
/**
|
|
27
|
+
* Create a Function
|
|
28
|
+
*/
|
|
29
|
+
create(body: FunctionCreateParams, options?: RequestOptions): APIPromise<FunctionResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Get a Function
|
|
32
|
+
*/
|
|
33
|
+
retrieve(functionName: string, options?: RequestOptions): APIPromise<FunctionResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Update a Function
|
|
36
|
+
*/
|
|
37
|
+
update(pathFunctionName: string, body: FunctionUpdateParams, options?: RequestOptions): APIPromise<FunctionResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* List Functions
|
|
40
|
+
*/
|
|
41
|
+
list(query?: FunctionListParams | null | undefined, options?: RequestOptions): PagePromise<FunctionsFunctionsPage, Function>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete a Function
|
|
44
|
+
*/
|
|
45
|
+
delete(functionName: string, options?: RequestOptions): APIPromise<void>;
|
|
46
|
+
}
|
|
47
|
+
export type FunctionsFunctionsPage = FunctionsPage<Function>;
|
|
48
|
+
export type CreateFunction = CreateFunction.TransformFunction | CreateFunction.AnalyzeFunction | CreateFunction.RouteFunction | CreateFunction.SplitFunction | CreateFunction.JoinFunction | CreateFunction.PayloadShapingFunction | CreateFunction.EnrichFunction;
|
|
49
|
+
export declare namespace CreateFunction {
|
|
50
|
+
interface TransformFunction {
|
|
51
|
+
/**
|
|
52
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
53
|
+
*/
|
|
54
|
+
functionName: string;
|
|
55
|
+
type: 'transform';
|
|
56
|
+
/**
|
|
57
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
58
|
+
*/
|
|
59
|
+
displayName?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
62
|
+
*/
|
|
63
|
+
outputSchema?: unknown;
|
|
64
|
+
/**
|
|
65
|
+
* Name of output schema object.
|
|
66
|
+
*/
|
|
67
|
+
outputSchemaName?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether tabular chunking is enabled on the pipeline. This processes tables in
|
|
70
|
+
* CSV/Excel in row batches, rather than all rows at once.
|
|
71
|
+
*/
|
|
72
|
+
tabularChunkingEnabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Array of tags to categorize and organize functions.
|
|
75
|
+
*/
|
|
76
|
+
tags?: Array<string>;
|
|
77
|
+
}
|
|
78
|
+
interface AnalyzeFunction {
|
|
79
|
+
/**
|
|
80
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
81
|
+
*/
|
|
82
|
+
functionName: string;
|
|
83
|
+
type: 'analyze';
|
|
84
|
+
/**
|
|
85
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
86
|
+
*/
|
|
87
|
+
displayName?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
90
|
+
*/
|
|
91
|
+
outputSchema?: unknown;
|
|
92
|
+
/**
|
|
93
|
+
* Name of output schema object.
|
|
94
|
+
*/
|
|
95
|
+
outputSchemaName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Array of tags to categorize and organize functions.
|
|
98
|
+
*/
|
|
99
|
+
tags?: Array<string>;
|
|
100
|
+
}
|
|
101
|
+
interface RouteFunction {
|
|
102
|
+
/**
|
|
103
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
104
|
+
*/
|
|
105
|
+
functionName: string;
|
|
106
|
+
type: 'route';
|
|
107
|
+
/**
|
|
108
|
+
* Description of router. Can be used to provide additional context on router's
|
|
109
|
+
* purpose and expected inputs.
|
|
110
|
+
*/
|
|
111
|
+
description?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
114
|
+
*/
|
|
115
|
+
displayName?: string;
|
|
116
|
+
/**
|
|
117
|
+
* List of routes.
|
|
118
|
+
*/
|
|
119
|
+
routes?: Array<FunctionsAPI.RouteListItem>;
|
|
120
|
+
/**
|
|
121
|
+
* Array of tags to categorize and organize functions.
|
|
122
|
+
*/
|
|
123
|
+
tags?: Array<string>;
|
|
124
|
+
}
|
|
125
|
+
interface SplitFunction {
|
|
126
|
+
/**
|
|
127
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
128
|
+
*/
|
|
129
|
+
functionName: string;
|
|
130
|
+
type: 'split';
|
|
131
|
+
/**
|
|
132
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
133
|
+
*/
|
|
134
|
+
displayName?: string;
|
|
135
|
+
printPageSplitConfig?: SplitFunction.PrintPageSplitConfig;
|
|
136
|
+
semanticPageSplitConfig?: SplitFunction.SemanticPageSplitConfig;
|
|
137
|
+
splitType?: 'print_page' | 'semantic_page';
|
|
138
|
+
/**
|
|
139
|
+
* Array of tags to categorize and organize functions.
|
|
140
|
+
*/
|
|
141
|
+
tags?: Array<string>;
|
|
142
|
+
}
|
|
143
|
+
namespace SplitFunction {
|
|
144
|
+
interface PrintPageSplitConfig {
|
|
145
|
+
nextFunctionID?: string;
|
|
146
|
+
nextFunctionName?: string;
|
|
147
|
+
}
|
|
148
|
+
interface SemanticPageSplitConfig {
|
|
149
|
+
itemClasses?: Array<FunctionsAPI.SplitFunctionSemanticPageItemClass>;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
interface JoinFunction {
|
|
153
|
+
/**
|
|
154
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
155
|
+
*/
|
|
156
|
+
functionName: string;
|
|
157
|
+
type: 'join';
|
|
158
|
+
/**
|
|
159
|
+
* Description of join function.
|
|
160
|
+
*/
|
|
161
|
+
description?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
164
|
+
*/
|
|
165
|
+
displayName?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The type of join to perform.
|
|
168
|
+
*/
|
|
169
|
+
joinType?: 'standard';
|
|
170
|
+
/**
|
|
171
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
172
|
+
*/
|
|
173
|
+
outputSchema?: unknown;
|
|
174
|
+
/**
|
|
175
|
+
* Name of output schema object.
|
|
176
|
+
*/
|
|
177
|
+
outputSchemaName?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Array of tags to categorize and organize functions.
|
|
180
|
+
*/
|
|
181
|
+
tags?: Array<string>;
|
|
182
|
+
}
|
|
183
|
+
interface PayloadShapingFunction {
|
|
184
|
+
/**
|
|
185
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
186
|
+
*/
|
|
187
|
+
functionName: string;
|
|
188
|
+
type: 'payload_shaping';
|
|
189
|
+
/**
|
|
190
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
191
|
+
*/
|
|
192
|
+
displayName?: string;
|
|
193
|
+
/**
|
|
194
|
+
* JMESPath expression that defines how to transform and customize the input
|
|
195
|
+
* payload structure. Payload shaping allows you to extract, reshape, and
|
|
196
|
+
* reorganize data from complex input payloads into a simplified, standardized
|
|
197
|
+
* output format. Use JMESPath syntax to select specific fields, perform
|
|
198
|
+
* calculations, and create new data structures tailored to your needs.
|
|
199
|
+
*/
|
|
200
|
+
shapingSchema?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Array of tags to categorize and organize functions.
|
|
203
|
+
*/
|
|
204
|
+
tags?: Array<string>;
|
|
205
|
+
}
|
|
206
|
+
interface EnrichFunction {
|
|
207
|
+
/**
|
|
208
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
209
|
+
*/
|
|
210
|
+
functionName: string;
|
|
211
|
+
type: 'enrich';
|
|
212
|
+
/**
|
|
213
|
+
* Configuration for enrich function with semantic search steps.
|
|
214
|
+
*
|
|
215
|
+
* **How Enrich Functions Work:**
|
|
216
|
+
*
|
|
217
|
+
* Enrich functions use semantic search to augment JSON data with relevant
|
|
218
|
+
* information from collections. They take JSON input (typically from a transform
|
|
219
|
+
* function), extract specified fields, perform vector-based semantic search
|
|
220
|
+
* against collections, and inject the results back into the data.
|
|
221
|
+
*
|
|
222
|
+
* **Input Requirements:**
|
|
223
|
+
*
|
|
224
|
+
* - Must receive JSON input (typically uploaded to S3 from a previous function)
|
|
225
|
+
* - Can be chained after transform or other functions that produce JSON output
|
|
226
|
+
*
|
|
227
|
+
* **Example Use Cases:**
|
|
228
|
+
*
|
|
229
|
+
* - Match product descriptions to SKU codes from a product catalog
|
|
230
|
+
* - Enrich customer data with account information
|
|
231
|
+
* - Link order line items to inventory records
|
|
232
|
+
*
|
|
233
|
+
* **Configuration:**
|
|
234
|
+
*
|
|
235
|
+
* - Define one or more enrichment steps
|
|
236
|
+
* - Each step extracts values, searches a collection, and injects results
|
|
237
|
+
* - Steps are executed sequentially
|
|
238
|
+
*/
|
|
239
|
+
config?: FunctionsAPI.EnrichConfig;
|
|
240
|
+
/**
|
|
241
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
242
|
+
*/
|
|
243
|
+
displayName?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Array of tags to categorize and organize functions.
|
|
246
|
+
*/
|
|
247
|
+
tags?: Array<string>;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Configuration for enrich function with semantic search steps.
|
|
252
|
+
*
|
|
253
|
+
* **How Enrich Functions Work:**
|
|
254
|
+
*
|
|
255
|
+
* Enrich functions use semantic search to augment JSON data with relevant
|
|
256
|
+
* information from collections. They take JSON input (typically from a transform
|
|
257
|
+
* function), extract specified fields, perform vector-based semantic search
|
|
258
|
+
* against collections, and inject the results back into the data.
|
|
259
|
+
*
|
|
260
|
+
* **Input Requirements:**
|
|
261
|
+
*
|
|
262
|
+
* - Must receive JSON input (typically uploaded to S3 from a previous function)
|
|
263
|
+
* - Can be chained after transform or other functions that produce JSON output
|
|
264
|
+
*
|
|
265
|
+
* **Example Use Cases:**
|
|
266
|
+
*
|
|
267
|
+
* - Match product descriptions to SKU codes from a product catalog
|
|
268
|
+
* - Enrich customer data with account information
|
|
269
|
+
* - Link order line items to inventory records
|
|
270
|
+
*
|
|
271
|
+
* **Configuration:**
|
|
272
|
+
*
|
|
273
|
+
* - Define one or more enrichment steps
|
|
274
|
+
* - Each step extracts values, searches a collection, and injects results
|
|
275
|
+
* - Steps are executed sequentially
|
|
276
|
+
*/
|
|
277
|
+
export interface EnrichConfig {
|
|
278
|
+
/**
|
|
279
|
+
* Array of enrichment steps to execute sequentially
|
|
280
|
+
*/
|
|
281
|
+
steps: Array<EnrichStep>;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Single enrichment step configuration.
|
|
285
|
+
*
|
|
286
|
+
* **Process Flow:**
|
|
287
|
+
*
|
|
288
|
+
* 1. Extract values from `sourceField` using JMESPath
|
|
289
|
+
* 2. Perform search against the specified collection (semantic, exact, or hybrid
|
|
290
|
+
* based on `searchMode`)
|
|
291
|
+
* 3. Return top K matches sorted by relevance (best match first)
|
|
292
|
+
* 4. Inject results into `targetField`
|
|
293
|
+
*
|
|
294
|
+
* **Search Modes:**
|
|
295
|
+
*
|
|
296
|
+
* - `semantic` (default): Vector similarity search - best for natural language and
|
|
297
|
+
* conceptual matching
|
|
298
|
+
* - `exact`: Exact keyword matching - best for SKU numbers, IDs, routing numbers
|
|
299
|
+
* - `hybrid`: Combined semantic + keyword search - best for tags and categories
|
|
300
|
+
*
|
|
301
|
+
* **Result Format:**
|
|
302
|
+
*
|
|
303
|
+
* - Results are always returned as an array (list), regardless of `topK` value
|
|
304
|
+
* - Array is sorted by relevance (best match first)
|
|
305
|
+
* - Each result contains `data` (the collection item) and optionally
|
|
306
|
+
* `cosineDistance`
|
|
307
|
+
* - With `topK=1`: Returns array with single best match:
|
|
308
|
+
* `[{data: {...}, cosineDistance: 0.15}]`
|
|
309
|
+
* - With `topK>1`: Returns array with multiple matches sorted by relevance
|
|
310
|
+
*/
|
|
311
|
+
export interface EnrichStep {
|
|
312
|
+
/**
|
|
313
|
+
* Name of the collection to search against. The collection must exist and contain
|
|
314
|
+
* items. Supports hierarchical paths when used with `includeSubcollections`.
|
|
315
|
+
*/
|
|
316
|
+
collectionName: string;
|
|
317
|
+
/**
|
|
318
|
+
* JMESPath expression to extract source data for semantic search. Can extract
|
|
319
|
+
* single values or arrays. All extracted values will be used for search.
|
|
320
|
+
*/
|
|
321
|
+
sourceField: string;
|
|
322
|
+
/**
|
|
323
|
+
* Field path where enriched results should be placed. Use simple field names
|
|
324
|
+
* (e.g., "enriched_products"). Results are always injected as an array (list),
|
|
325
|
+
* regardless of topK value.
|
|
326
|
+
*/
|
|
327
|
+
targetField: string;
|
|
328
|
+
/**
|
|
329
|
+
* Whether to include cosine distance scores in results. Cosine distance ranges
|
|
330
|
+
* from 0.0 (perfect match) to 2.0 (completely dissimilar). Lower scores indicate
|
|
331
|
+
* better semantic similarity.
|
|
332
|
+
*
|
|
333
|
+
* When enabled, each result includes a `cosineDistance` field.
|
|
334
|
+
*/
|
|
335
|
+
includeCosineDistance?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* When true, searches all collections under the hierarchical path. For example,
|
|
338
|
+
* "customers" will match "customers", "customers.premium", etc.
|
|
339
|
+
*/
|
|
340
|
+
includeSubcollections?: boolean;
|
|
341
|
+
/**
|
|
342
|
+
* Maximum cosine distance threshold for filtering results (default: 0.6). Results
|
|
343
|
+
* with cosine distance above this threshold are excluded.
|
|
344
|
+
*
|
|
345
|
+
* **Only applies to `semantic` and `hybrid` search modes.** Exact search does not
|
|
346
|
+
* use cosine distance and ignores this setting.
|
|
347
|
+
*
|
|
348
|
+
* Cosine distance ranges from 0.0 (identical) to 2.0 (opposite):
|
|
349
|
+
*
|
|
350
|
+
* - 0.0 - 0.3: Very similar (strict threshold, high-quality matches only)
|
|
351
|
+
* - 0.3 - 0.6: Reasonably similar (moderate threshold)
|
|
352
|
+
* - 0.6 - 1.0: Loosely related (lenient threshold)
|
|
353
|
+
* - > 1.0: Rarely useful — allows nearly unrelated results
|
|
354
|
+
*
|
|
355
|
+
* For most semantic search use cases, good matches typically fall in the 0.2 - 0.5
|
|
356
|
+
* range.
|
|
357
|
+
*/
|
|
358
|
+
scoreThreshold?: number;
|
|
359
|
+
/**
|
|
360
|
+
* Search mode to use for enrichment (default: "semantic").
|
|
361
|
+
*
|
|
362
|
+
* **semantic**: Vector similarity search using dense embeddings. Best for finding
|
|
363
|
+
* conceptually similar items.
|
|
364
|
+
*
|
|
365
|
+
* - Use for: Product descriptions, natural language content
|
|
366
|
+
* - Example: "red sports car" matches "crimson convertible automobile"
|
|
367
|
+
*
|
|
368
|
+
* **exact**: Exact keyword matching using PostgreSQL text search. Best for exact
|
|
369
|
+
* identifiers.
|
|
370
|
+
*
|
|
371
|
+
* - Use for: SKU numbers, routing numbers, account IDs, exact tags
|
|
372
|
+
* - Example: "SKU-12345" only matches items containing that exact text
|
|
373
|
+
*
|
|
374
|
+
* **hybrid**: Combined search using 20% semantic + 80% sparse embeddings
|
|
375
|
+
* (keyword-based).
|
|
376
|
+
*
|
|
377
|
+
* - Use for: Tags, categories, partial identifiers
|
|
378
|
+
* - Example: Balances semantic meaning with exact keyword matching
|
|
379
|
+
*/
|
|
380
|
+
searchMode?: 'semantic' | 'exact' | 'hybrid';
|
|
381
|
+
/**
|
|
382
|
+
* Number of top matching results to return per query (default: 1). Results are
|
|
383
|
+
* always returned as an array (list) and automatically sorted by cosine distance
|
|
384
|
+
* (best match = lowest distance first).
|
|
385
|
+
*
|
|
386
|
+
* - 1: Returns array with single best match: `[{...}]`
|
|
387
|
+
* - > 1: Returns array with multiple matches: `[{...}, {...}, ...]`
|
|
388
|
+
*/
|
|
389
|
+
topK?: number;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* A function that transforms and customizes input payloads using JMESPath
|
|
393
|
+
* expressions. Payload shaping allows you to extract specific data, perform
|
|
394
|
+
* calculations, and reshape complex input structures into simplified, standardized
|
|
395
|
+
* output formats tailored to your downstream systems or business requirements.
|
|
396
|
+
*/
|
|
397
|
+
export type Function = Function.TransformFunction | Function.AnalyzeFunction | Function.RouteFunction | Function.SplitFunction | Function.JoinFunction | Function.PayloadShapingFunction | Function.EnrichFunction;
|
|
398
|
+
export declare namespace Function {
|
|
399
|
+
interface TransformFunction {
|
|
400
|
+
/**
|
|
401
|
+
* Email address automatically created by bem. You can forward emails with or
|
|
402
|
+
* without attachments, to be transformed.
|
|
403
|
+
*/
|
|
404
|
+
emailAddress: string;
|
|
405
|
+
/**
|
|
406
|
+
* Unique identifier of function.
|
|
407
|
+
*/
|
|
408
|
+
functionID: string;
|
|
409
|
+
/**
|
|
410
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
411
|
+
*/
|
|
412
|
+
functionName: string;
|
|
413
|
+
/**
|
|
414
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
415
|
+
*/
|
|
416
|
+
outputSchema: unknown;
|
|
417
|
+
/**
|
|
418
|
+
* Name of output schema object.
|
|
419
|
+
*/
|
|
420
|
+
outputSchemaName: string;
|
|
421
|
+
/**
|
|
422
|
+
* Whether tabular chunking is enabled on the pipeline. This processes tables in
|
|
423
|
+
* CSV/Excel in row batches, rather than all rows at once.
|
|
424
|
+
*/
|
|
425
|
+
tabularChunkingEnabled: boolean;
|
|
426
|
+
type: 'transform';
|
|
427
|
+
/**
|
|
428
|
+
* Version number of function.
|
|
429
|
+
*/
|
|
430
|
+
versionNum: number;
|
|
431
|
+
/**
|
|
432
|
+
* Audit trail information for the function.
|
|
433
|
+
*/
|
|
434
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
435
|
+
/**
|
|
436
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
437
|
+
*/
|
|
438
|
+
displayName?: string;
|
|
439
|
+
/**
|
|
440
|
+
* Array of tags to categorize and organize functions.
|
|
441
|
+
*/
|
|
442
|
+
tags?: Array<string>;
|
|
443
|
+
/**
|
|
444
|
+
* List of workflows that use this function.
|
|
445
|
+
*/
|
|
446
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
447
|
+
}
|
|
448
|
+
interface AnalyzeFunction {
|
|
449
|
+
/**
|
|
450
|
+
* Unique identifier of function.
|
|
451
|
+
*/
|
|
452
|
+
functionID: string;
|
|
453
|
+
/**
|
|
454
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
455
|
+
*/
|
|
456
|
+
functionName: string;
|
|
457
|
+
/**
|
|
458
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
459
|
+
*/
|
|
460
|
+
outputSchema: unknown;
|
|
461
|
+
/**
|
|
462
|
+
* Name of output schema object.
|
|
463
|
+
*/
|
|
464
|
+
outputSchemaName: string;
|
|
465
|
+
type: 'analyze';
|
|
466
|
+
/**
|
|
467
|
+
* Version number of function.
|
|
468
|
+
*/
|
|
469
|
+
versionNum: number;
|
|
470
|
+
/**
|
|
471
|
+
* Audit trail information for the function.
|
|
472
|
+
*/
|
|
473
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
474
|
+
/**
|
|
475
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
476
|
+
*/
|
|
477
|
+
displayName?: string;
|
|
478
|
+
/**
|
|
479
|
+
* Array of tags to categorize and organize functions.
|
|
480
|
+
*/
|
|
481
|
+
tags?: Array<string>;
|
|
482
|
+
/**
|
|
483
|
+
* List of workflows that use this function.
|
|
484
|
+
*/
|
|
485
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
486
|
+
}
|
|
487
|
+
interface RouteFunction {
|
|
488
|
+
/**
|
|
489
|
+
* Description of router. Can be used to provide additional context on router's
|
|
490
|
+
* purpose and expected inputs.
|
|
491
|
+
*/
|
|
492
|
+
description: string;
|
|
493
|
+
/**
|
|
494
|
+
* Email address automatically created by bem. You can forward emails with or
|
|
495
|
+
* without attachments, to be routed.
|
|
496
|
+
*/
|
|
497
|
+
emailAddress: string;
|
|
498
|
+
/**
|
|
499
|
+
* Unique identifier of function.
|
|
500
|
+
*/
|
|
501
|
+
functionID: string;
|
|
502
|
+
/**
|
|
503
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
504
|
+
*/
|
|
505
|
+
functionName: string;
|
|
506
|
+
/**
|
|
507
|
+
* List of routes.
|
|
508
|
+
*/
|
|
509
|
+
routes: Array<FunctionsAPI.RouteListItem>;
|
|
510
|
+
type: 'route';
|
|
511
|
+
/**
|
|
512
|
+
* Version number of function.
|
|
513
|
+
*/
|
|
514
|
+
versionNum: number;
|
|
515
|
+
/**
|
|
516
|
+
* Audit trail information for the function.
|
|
517
|
+
*/
|
|
518
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
519
|
+
/**
|
|
520
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
521
|
+
*/
|
|
522
|
+
displayName?: string;
|
|
523
|
+
/**
|
|
524
|
+
* Array of tags to categorize and organize functions.
|
|
525
|
+
*/
|
|
526
|
+
tags?: Array<string>;
|
|
527
|
+
/**
|
|
528
|
+
* List of workflows that use this function.
|
|
529
|
+
*/
|
|
530
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
531
|
+
}
|
|
532
|
+
interface SplitFunction {
|
|
533
|
+
/**
|
|
534
|
+
* Unique identifier of function.
|
|
535
|
+
*/
|
|
536
|
+
functionID: string;
|
|
537
|
+
/**
|
|
538
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
539
|
+
*/
|
|
540
|
+
functionName: string;
|
|
541
|
+
/**
|
|
542
|
+
* The method used to split pages.
|
|
543
|
+
*/
|
|
544
|
+
splitType: 'print_page' | 'semantic_page';
|
|
545
|
+
type: 'split';
|
|
546
|
+
/**
|
|
547
|
+
* Version number of function.
|
|
548
|
+
*/
|
|
549
|
+
versionNum: number;
|
|
550
|
+
/**
|
|
551
|
+
* Audit trail information for the function.
|
|
552
|
+
*/
|
|
553
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
554
|
+
/**
|
|
555
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
556
|
+
*/
|
|
557
|
+
displayName?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Configuration for print page splitting.
|
|
560
|
+
*/
|
|
561
|
+
printPageSplitConfig?: SplitFunction.PrintPageSplitConfig;
|
|
562
|
+
/**
|
|
563
|
+
* Configuration for semantic page splitting.
|
|
564
|
+
*/
|
|
565
|
+
semanticPageSplitConfig?: SplitFunction.SemanticPageSplitConfig;
|
|
566
|
+
/**
|
|
567
|
+
* Array of tags to categorize and organize functions.
|
|
568
|
+
*/
|
|
569
|
+
tags?: Array<string>;
|
|
570
|
+
/**
|
|
571
|
+
* List of workflows that use this function.
|
|
572
|
+
*/
|
|
573
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
574
|
+
}
|
|
575
|
+
namespace SplitFunction {
|
|
576
|
+
/**
|
|
577
|
+
* Configuration for print page splitting.
|
|
578
|
+
*/
|
|
579
|
+
interface PrintPageSplitConfig {
|
|
580
|
+
nextFunctionID?: string;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Configuration for semantic page splitting.
|
|
584
|
+
*/
|
|
585
|
+
interface SemanticPageSplitConfig {
|
|
586
|
+
itemClasses?: Array<FunctionsAPI.SplitFunctionSemanticPageItemClass>;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
interface JoinFunction {
|
|
590
|
+
/**
|
|
591
|
+
* Description of join function.
|
|
592
|
+
*/
|
|
593
|
+
description: string;
|
|
594
|
+
/**
|
|
595
|
+
* Unique identifier of function.
|
|
596
|
+
*/
|
|
597
|
+
functionID: string;
|
|
598
|
+
/**
|
|
599
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
600
|
+
*/
|
|
601
|
+
functionName: string;
|
|
602
|
+
/**
|
|
603
|
+
* The type of join to perform.
|
|
604
|
+
*/
|
|
605
|
+
joinType: 'standard';
|
|
606
|
+
/**
|
|
607
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
608
|
+
*/
|
|
609
|
+
outputSchema: unknown;
|
|
610
|
+
/**
|
|
611
|
+
* Name of output schema object.
|
|
612
|
+
*/
|
|
613
|
+
outputSchemaName: string;
|
|
614
|
+
type: 'join';
|
|
615
|
+
/**
|
|
616
|
+
* Version number of function.
|
|
617
|
+
*/
|
|
618
|
+
versionNum: number;
|
|
619
|
+
/**
|
|
620
|
+
* Audit trail information for the function.
|
|
621
|
+
*/
|
|
622
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
623
|
+
/**
|
|
624
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
625
|
+
*/
|
|
626
|
+
displayName?: string;
|
|
627
|
+
/**
|
|
628
|
+
* Array of tags to categorize and organize functions.
|
|
629
|
+
*/
|
|
630
|
+
tags?: Array<string>;
|
|
631
|
+
/**
|
|
632
|
+
* List of workflows that use this function.
|
|
633
|
+
*/
|
|
634
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* A function that transforms and customizes input payloads using JMESPath
|
|
638
|
+
* expressions. Payload shaping allows you to extract specific data, perform
|
|
639
|
+
* calculations, and reshape complex input structures into simplified, standardized
|
|
640
|
+
* output formats tailored to your downstream systems or business requirements.
|
|
641
|
+
*/
|
|
642
|
+
interface PayloadShapingFunction {
|
|
643
|
+
/**
|
|
644
|
+
* Unique identifier of function.
|
|
645
|
+
*/
|
|
646
|
+
functionID: string;
|
|
647
|
+
/**
|
|
648
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
649
|
+
*/
|
|
650
|
+
functionName: string;
|
|
651
|
+
/**
|
|
652
|
+
* JMESPath expression that defines how to transform and customize the input
|
|
653
|
+
* payload structure. Payload shaping allows you to extract, reshape, and
|
|
654
|
+
* reorganize data from complex input payloads into a simplified, standardized
|
|
655
|
+
* output format. Use JMESPath syntax to select specific fields, perform
|
|
656
|
+
* calculations, and create new data structures tailored to your needs.
|
|
657
|
+
*/
|
|
658
|
+
shapingSchema: string;
|
|
659
|
+
type: 'payload_shaping';
|
|
660
|
+
/**
|
|
661
|
+
* Version number of function.
|
|
662
|
+
*/
|
|
663
|
+
versionNum: number;
|
|
664
|
+
/**
|
|
665
|
+
* Audit trail information for the function.
|
|
666
|
+
*/
|
|
667
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
668
|
+
/**
|
|
669
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
670
|
+
*/
|
|
671
|
+
displayName?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Array of tags to categorize and organize functions.
|
|
674
|
+
*/
|
|
675
|
+
tags?: Array<string>;
|
|
676
|
+
/**
|
|
677
|
+
* List of workflows that use this function.
|
|
678
|
+
*/
|
|
679
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
680
|
+
}
|
|
681
|
+
interface EnrichFunction {
|
|
682
|
+
/**
|
|
683
|
+
* Configuration for enrich function with semantic search steps.
|
|
684
|
+
*
|
|
685
|
+
* **How Enrich Functions Work:**
|
|
686
|
+
*
|
|
687
|
+
* Enrich functions use semantic search to augment JSON data with relevant
|
|
688
|
+
* information from collections. They take JSON input (typically from a transform
|
|
689
|
+
* function), extract specified fields, perform vector-based semantic search
|
|
690
|
+
* against collections, and inject the results back into the data.
|
|
691
|
+
*
|
|
692
|
+
* **Input Requirements:**
|
|
693
|
+
*
|
|
694
|
+
* - Must receive JSON input (typically uploaded to S3 from a previous function)
|
|
695
|
+
* - Can be chained after transform or other functions that produce JSON output
|
|
696
|
+
*
|
|
697
|
+
* **Example Use Cases:**
|
|
698
|
+
*
|
|
699
|
+
* - Match product descriptions to SKU codes from a product catalog
|
|
700
|
+
* - Enrich customer data with account information
|
|
701
|
+
* - Link order line items to inventory records
|
|
702
|
+
*
|
|
703
|
+
* **Configuration:**
|
|
704
|
+
*
|
|
705
|
+
* - Define one or more enrichment steps
|
|
706
|
+
* - Each step extracts values, searches a collection, and injects results
|
|
707
|
+
* - Steps are executed sequentially
|
|
708
|
+
*/
|
|
709
|
+
config: FunctionsAPI.EnrichConfig;
|
|
710
|
+
/**
|
|
711
|
+
* Unique identifier of function.
|
|
712
|
+
*/
|
|
713
|
+
functionID: string;
|
|
714
|
+
/**
|
|
715
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
716
|
+
*/
|
|
717
|
+
functionName: string;
|
|
718
|
+
type: 'enrich';
|
|
719
|
+
/**
|
|
720
|
+
* Version number of function.
|
|
721
|
+
*/
|
|
722
|
+
versionNum: number;
|
|
723
|
+
/**
|
|
724
|
+
* Audit trail information for the function.
|
|
725
|
+
*/
|
|
726
|
+
audit?: FunctionsAPI.FunctionAudit;
|
|
727
|
+
/**
|
|
728
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
729
|
+
*/
|
|
730
|
+
displayName?: string;
|
|
731
|
+
/**
|
|
732
|
+
* Array of tags to categorize and organize functions.
|
|
733
|
+
*/
|
|
734
|
+
tags?: Array<string>;
|
|
735
|
+
/**
|
|
736
|
+
* List of workflows that use this function.
|
|
737
|
+
*/
|
|
738
|
+
usedInWorkflows?: Array<FunctionsAPI.WorkflowUsageInfo>;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
export interface FunctionAudit {
|
|
742
|
+
/**
|
|
743
|
+
* Information about who created the function.
|
|
744
|
+
*/
|
|
745
|
+
functionCreatedBy?: UserActionSummary;
|
|
746
|
+
/**
|
|
747
|
+
* Information about who last updated the function.
|
|
748
|
+
*/
|
|
749
|
+
functionLastUpdatedBy?: UserActionSummary;
|
|
750
|
+
/**
|
|
751
|
+
* Information about who created the current version.
|
|
752
|
+
*/
|
|
753
|
+
versionCreatedBy?: UserActionSummary;
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Single-function response wrapper used by V3 function endpoints. V3 wraps
|
|
757
|
+
* individual function responses in a `{"function": ...}` envelope for consistency
|
|
758
|
+
* with other V3 resource endpoints.
|
|
759
|
+
*/
|
|
760
|
+
export interface FunctionResponse {
|
|
761
|
+
/**
|
|
762
|
+
* A function that transforms and customizes input payloads using JMESPath
|
|
763
|
+
* expressions. Payload shaping allows you to extract specific data, perform
|
|
764
|
+
* calculations, and reshape complex input structures into simplified, standardized
|
|
765
|
+
* output formats tailored to your downstream systems or business requirements.
|
|
766
|
+
*/
|
|
767
|
+
function: Function;
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* The type of the function.
|
|
771
|
+
*/
|
|
772
|
+
export type FunctionType = 'transform' | 'route' | 'split' | 'join' | 'analyze' | 'payload_shaping' | 'enrich';
|
|
773
|
+
export interface ListFunctionsResponse {
|
|
774
|
+
functions?: Array<Function>;
|
|
775
|
+
/**
|
|
776
|
+
* The total number of results available.
|
|
777
|
+
*/
|
|
778
|
+
totalCount?: number;
|
|
779
|
+
}
|
|
780
|
+
export interface RouteListItem {
|
|
781
|
+
name: string;
|
|
782
|
+
description?: string;
|
|
783
|
+
functionID?: string;
|
|
784
|
+
functionName?: string;
|
|
785
|
+
isErrorFallback?: boolean;
|
|
786
|
+
origin?: RouteListItem.Origin;
|
|
787
|
+
regex?: RouteListItem.Regex;
|
|
788
|
+
}
|
|
789
|
+
export declare namespace RouteListItem {
|
|
790
|
+
interface Origin {
|
|
791
|
+
email?: Origin.Email;
|
|
792
|
+
}
|
|
793
|
+
namespace Origin {
|
|
794
|
+
interface Email {
|
|
795
|
+
patterns?: Array<string>;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
interface Regex {
|
|
799
|
+
patterns?: Array<string>;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
export interface SplitFunctionSemanticPageItemClass {
|
|
803
|
+
name: string;
|
|
804
|
+
description?: string;
|
|
805
|
+
/**
|
|
806
|
+
* The unique ID of the function you want to use for this item class.
|
|
807
|
+
*/
|
|
808
|
+
nextFunctionID?: string;
|
|
809
|
+
/**
|
|
810
|
+
* The unique name of the function you want to use for this item class.
|
|
811
|
+
*/
|
|
812
|
+
nextFunctionName?: string;
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* A function that transforms and customizes input payloads using JMESPath
|
|
816
|
+
* expressions. Payload shaping allows you to extract specific data, perform
|
|
817
|
+
* calculations, and reshape complex input structures into simplified, standardized
|
|
818
|
+
* output formats tailored to your downstream systems or business requirements.
|
|
819
|
+
*/
|
|
820
|
+
export type UpdateFunction = UpdateFunction.TransformFunction | UpdateFunction.AnalyzeFunction | UpdateFunction.RouteFunction | UpdateFunction.SplitFunction | UpdateFunction.JoinFunction | UpdateFunction.PayloadShapingFunction | UpdateFunction.UpsertEnrichFunction;
|
|
821
|
+
export declare namespace UpdateFunction {
|
|
822
|
+
interface TransformFunction {
|
|
823
|
+
type: 'transform';
|
|
824
|
+
/**
|
|
825
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
826
|
+
*/
|
|
827
|
+
displayName?: string;
|
|
828
|
+
/**
|
|
829
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
830
|
+
*/
|
|
831
|
+
functionName?: string;
|
|
832
|
+
/**
|
|
833
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
834
|
+
*/
|
|
835
|
+
outputSchema?: unknown;
|
|
836
|
+
/**
|
|
837
|
+
* Name of output schema object.
|
|
838
|
+
*/
|
|
839
|
+
outputSchemaName?: string;
|
|
840
|
+
/**
|
|
841
|
+
* Whether tabular chunking is enabled on the pipeline. This processes tables in
|
|
842
|
+
* CSV/Excel in row batches, rather than all rows at once.
|
|
843
|
+
*/
|
|
844
|
+
tabularChunkingEnabled?: boolean;
|
|
845
|
+
/**
|
|
846
|
+
* Array of tags to categorize and organize functions.
|
|
847
|
+
*/
|
|
848
|
+
tags?: Array<string>;
|
|
849
|
+
}
|
|
850
|
+
interface AnalyzeFunction {
|
|
851
|
+
type: 'analyze';
|
|
852
|
+
/**
|
|
853
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
854
|
+
*/
|
|
855
|
+
displayName?: string;
|
|
856
|
+
/**
|
|
857
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
858
|
+
*/
|
|
859
|
+
functionName?: string;
|
|
860
|
+
/**
|
|
861
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
862
|
+
*/
|
|
863
|
+
outputSchema?: unknown;
|
|
864
|
+
/**
|
|
865
|
+
* Name of output schema object.
|
|
866
|
+
*/
|
|
867
|
+
outputSchemaName?: string;
|
|
868
|
+
/**
|
|
869
|
+
* Array of tags to categorize and organize functions.
|
|
870
|
+
*/
|
|
871
|
+
tags?: Array<string>;
|
|
872
|
+
}
|
|
873
|
+
interface RouteFunction {
|
|
874
|
+
type: 'route';
|
|
875
|
+
/**
|
|
876
|
+
* Description of router. Can be used to provide additional context on router's
|
|
877
|
+
* purpose and expected inputs.
|
|
878
|
+
*/
|
|
879
|
+
description?: string;
|
|
880
|
+
/**
|
|
881
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
882
|
+
*/
|
|
883
|
+
displayName?: string;
|
|
884
|
+
/**
|
|
885
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
886
|
+
*/
|
|
887
|
+
functionName?: string;
|
|
888
|
+
/**
|
|
889
|
+
* List of routes.
|
|
890
|
+
*/
|
|
891
|
+
routes?: Array<FunctionsAPI.RouteListItem>;
|
|
892
|
+
/**
|
|
893
|
+
* Array of tags to categorize and organize functions.
|
|
894
|
+
*/
|
|
895
|
+
tags?: Array<string>;
|
|
896
|
+
}
|
|
897
|
+
interface SplitFunction {
|
|
898
|
+
type: 'split';
|
|
899
|
+
/**
|
|
900
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
901
|
+
*/
|
|
902
|
+
displayName?: string;
|
|
903
|
+
/**
|
|
904
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
905
|
+
*/
|
|
906
|
+
functionName?: string;
|
|
907
|
+
printPageSplitConfig?: SplitFunction.PrintPageSplitConfig;
|
|
908
|
+
semanticPageSplitConfig?: SplitFunction.SemanticPageSplitConfig;
|
|
909
|
+
splitType?: 'print_page' | 'semantic_page';
|
|
910
|
+
/**
|
|
911
|
+
* Array of tags to categorize and organize functions.
|
|
912
|
+
*/
|
|
913
|
+
tags?: Array<string>;
|
|
914
|
+
}
|
|
915
|
+
namespace SplitFunction {
|
|
916
|
+
interface PrintPageSplitConfig {
|
|
917
|
+
nextFunctionID?: string;
|
|
918
|
+
nextFunctionName?: string;
|
|
919
|
+
}
|
|
920
|
+
interface SemanticPageSplitConfig {
|
|
921
|
+
itemClasses?: Array<FunctionsAPI.SplitFunctionSemanticPageItemClass>;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
interface JoinFunction {
|
|
925
|
+
type: 'join';
|
|
926
|
+
/**
|
|
927
|
+
* Description of join function.
|
|
928
|
+
*/
|
|
929
|
+
description?: string;
|
|
930
|
+
/**
|
|
931
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
932
|
+
*/
|
|
933
|
+
displayName?: string;
|
|
934
|
+
/**
|
|
935
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
936
|
+
*/
|
|
937
|
+
functionName?: string;
|
|
938
|
+
/**
|
|
939
|
+
* The type of join to perform.
|
|
940
|
+
*/
|
|
941
|
+
joinType?: 'standard';
|
|
942
|
+
/**
|
|
943
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
944
|
+
*/
|
|
945
|
+
outputSchema?: unknown;
|
|
946
|
+
/**
|
|
947
|
+
* Name of output schema object.
|
|
948
|
+
*/
|
|
949
|
+
outputSchemaName?: string;
|
|
950
|
+
/**
|
|
951
|
+
* Array of tags to categorize and organize functions.
|
|
952
|
+
*/
|
|
953
|
+
tags?: Array<string>;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* A function that transforms and customizes input payloads using JMESPath
|
|
957
|
+
* expressions. Payload shaping allows you to extract specific data, perform
|
|
958
|
+
* calculations, and reshape complex input structures into simplified, standardized
|
|
959
|
+
* output formats tailored to your downstream systems or business requirements.
|
|
960
|
+
*/
|
|
961
|
+
interface PayloadShapingFunction {
|
|
962
|
+
type: 'payload_shaping';
|
|
963
|
+
/**
|
|
964
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
965
|
+
*/
|
|
966
|
+
displayName?: string;
|
|
967
|
+
/**
|
|
968
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
969
|
+
*/
|
|
970
|
+
functionName?: string;
|
|
971
|
+
/**
|
|
972
|
+
* JMESPath expression that defines how to transform and customize the input
|
|
973
|
+
* payload structure. Payload shaping allows you to extract, reshape, and
|
|
974
|
+
* reorganize data from complex input payloads into a simplified, standardized
|
|
975
|
+
* output format. Use JMESPath syntax to select specific fields, perform
|
|
976
|
+
* calculations, and create new data structures tailored to your needs.
|
|
977
|
+
*/
|
|
978
|
+
shapingSchema?: string;
|
|
979
|
+
/**
|
|
980
|
+
* Array of tags to categorize and organize functions.
|
|
981
|
+
*/
|
|
982
|
+
tags?: Array<string>;
|
|
983
|
+
}
|
|
984
|
+
interface UpsertEnrichFunction {
|
|
985
|
+
type: 'enrich';
|
|
986
|
+
/**
|
|
987
|
+
* Configuration for enrich function with semantic search steps.
|
|
988
|
+
*
|
|
989
|
+
* **How Enrich Functions Work:**
|
|
990
|
+
*
|
|
991
|
+
* Enrich functions use semantic search to augment JSON data with relevant
|
|
992
|
+
* information from collections. They take JSON input (typically from a transform
|
|
993
|
+
* function), extract specified fields, perform vector-based semantic search
|
|
994
|
+
* against collections, and inject the results back into the data.
|
|
995
|
+
*
|
|
996
|
+
* **Input Requirements:**
|
|
997
|
+
*
|
|
998
|
+
* - Must receive JSON input (typically uploaded to S3 from a previous function)
|
|
999
|
+
* - Can be chained after transform or other functions that produce JSON output
|
|
1000
|
+
*
|
|
1001
|
+
* **Example Use Cases:**
|
|
1002
|
+
*
|
|
1003
|
+
* - Match product descriptions to SKU codes from a product catalog
|
|
1004
|
+
* - Enrich customer data with account information
|
|
1005
|
+
* - Link order line items to inventory records
|
|
1006
|
+
*
|
|
1007
|
+
* **Configuration:**
|
|
1008
|
+
*
|
|
1009
|
+
* - Define one or more enrichment steps
|
|
1010
|
+
* - Each step extracts values, searches a collection, and injects results
|
|
1011
|
+
* - Steps are executed sequentially
|
|
1012
|
+
*/
|
|
1013
|
+
config?: FunctionsAPI.EnrichConfig;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
export interface UserActionSummary {
|
|
1017
|
+
/**
|
|
1018
|
+
* The date and time the action was created.
|
|
1019
|
+
*/
|
|
1020
|
+
createdAt: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Unique identifier of the user action.
|
|
1023
|
+
*/
|
|
1024
|
+
userActionID: string;
|
|
1025
|
+
/**
|
|
1026
|
+
* API key name. Present for API key-initiated actions.
|
|
1027
|
+
*/
|
|
1028
|
+
apiKeyName?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* Email address. Present for email-initiated actions.
|
|
1031
|
+
*/
|
|
1032
|
+
emailAddress?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* User's email address. Present for user-initiated actions.
|
|
1035
|
+
*/
|
|
1036
|
+
userEmail?: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* User's ID. Present for user-initiated actions.
|
|
1039
|
+
*/
|
|
1040
|
+
userID?: string;
|
|
1041
|
+
}
|
|
1042
|
+
export interface WorkflowUsageInfo {
|
|
1043
|
+
/**
|
|
1044
|
+
* Current version number of workflow, provided for reference - compare to
|
|
1045
|
+
* usedInWorkflowVersionNums to see whether the current version of the workflow
|
|
1046
|
+
* uses this function version.
|
|
1047
|
+
*/
|
|
1048
|
+
currentVersionNum: number;
|
|
1049
|
+
/**
|
|
1050
|
+
* Version numbers of workflows that this function version is used in.
|
|
1051
|
+
*/
|
|
1052
|
+
usedInWorkflowVersionNums: Array<number>;
|
|
1053
|
+
/**
|
|
1054
|
+
* Unique identifier of workflow.
|
|
1055
|
+
*/
|
|
1056
|
+
workflowID: string;
|
|
1057
|
+
/**
|
|
1058
|
+
* Name of workflow.
|
|
1059
|
+
*/
|
|
1060
|
+
workflowName: string;
|
|
1061
|
+
}
|
|
1062
|
+
export type FunctionCreateParams = FunctionCreateParams.CreateTransformFunction | FunctionCreateParams.CreateAnalyzeFunction | FunctionCreateParams.CreateRouteFunction | FunctionCreateParams.CreateSplitFunction | FunctionCreateParams.CreateJoinFunction | FunctionCreateParams.CreatePayloadShapingFunction | FunctionCreateParams.CreateEnrichFunction;
|
|
1063
|
+
export declare namespace FunctionCreateParams {
|
|
1064
|
+
interface CreateTransformFunction {
|
|
1065
|
+
/**
|
|
1066
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1067
|
+
*/
|
|
1068
|
+
functionName: string;
|
|
1069
|
+
type: 'transform';
|
|
1070
|
+
/**
|
|
1071
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1072
|
+
*/
|
|
1073
|
+
displayName?: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
1076
|
+
*/
|
|
1077
|
+
outputSchema?: unknown;
|
|
1078
|
+
/**
|
|
1079
|
+
* Name of output schema object.
|
|
1080
|
+
*/
|
|
1081
|
+
outputSchemaName?: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* Whether tabular chunking is enabled on the pipeline. This processes tables in
|
|
1084
|
+
* CSV/Excel in row batches, rather than all rows at once.
|
|
1085
|
+
*/
|
|
1086
|
+
tabularChunkingEnabled?: boolean;
|
|
1087
|
+
/**
|
|
1088
|
+
* Array of tags to categorize and organize functions.
|
|
1089
|
+
*/
|
|
1090
|
+
tags?: Array<string>;
|
|
1091
|
+
}
|
|
1092
|
+
interface CreateAnalyzeFunction {
|
|
1093
|
+
/**
|
|
1094
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1095
|
+
*/
|
|
1096
|
+
functionName: string;
|
|
1097
|
+
type: 'analyze';
|
|
1098
|
+
/**
|
|
1099
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1100
|
+
*/
|
|
1101
|
+
displayName?: string;
|
|
1102
|
+
/**
|
|
1103
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
1104
|
+
*/
|
|
1105
|
+
outputSchema?: unknown;
|
|
1106
|
+
/**
|
|
1107
|
+
* Name of output schema object.
|
|
1108
|
+
*/
|
|
1109
|
+
outputSchemaName?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* Array of tags to categorize and organize functions.
|
|
1112
|
+
*/
|
|
1113
|
+
tags?: Array<string>;
|
|
1114
|
+
}
|
|
1115
|
+
interface CreateRouteFunction {
|
|
1116
|
+
/**
|
|
1117
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1118
|
+
*/
|
|
1119
|
+
functionName: string;
|
|
1120
|
+
type: 'route';
|
|
1121
|
+
/**
|
|
1122
|
+
* Description of router. Can be used to provide additional context on router's
|
|
1123
|
+
* purpose and expected inputs.
|
|
1124
|
+
*/
|
|
1125
|
+
description?: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1128
|
+
*/
|
|
1129
|
+
displayName?: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* List of routes.
|
|
1132
|
+
*/
|
|
1133
|
+
routes?: Array<RouteListItem>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Array of tags to categorize and organize functions.
|
|
1136
|
+
*/
|
|
1137
|
+
tags?: Array<string>;
|
|
1138
|
+
}
|
|
1139
|
+
interface CreateSplitFunction {
|
|
1140
|
+
/**
|
|
1141
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1142
|
+
*/
|
|
1143
|
+
functionName: string;
|
|
1144
|
+
type: 'split';
|
|
1145
|
+
/**
|
|
1146
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1147
|
+
*/
|
|
1148
|
+
displayName?: string;
|
|
1149
|
+
printPageSplitConfig?: CreateSplitFunction.PrintPageSplitConfig;
|
|
1150
|
+
semanticPageSplitConfig?: CreateSplitFunction.SemanticPageSplitConfig;
|
|
1151
|
+
splitType?: 'print_page' | 'semantic_page';
|
|
1152
|
+
/**
|
|
1153
|
+
* Array of tags to categorize and organize functions.
|
|
1154
|
+
*/
|
|
1155
|
+
tags?: Array<string>;
|
|
1156
|
+
}
|
|
1157
|
+
namespace CreateSplitFunction {
|
|
1158
|
+
interface PrintPageSplitConfig {
|
|
1159
|
+
nextFunctionID?: string;
|
|
1160
|
+
nextFunctionName?: string;
|
|
1161
|
+
}
|
|
1162
|
+
interface SemanticPageSplitConfig {
|
|
1163
|
+
itemClasses?: Array<FunctionsAPI.SplitFunctionSemanticPageItemClass>;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
interface CreateJoinFunction {
|
|
1167
|
+
/**
|
|
1168
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1169
|
+
*/
|
|
1170
|
+
functionName: string;
|
|
1171
|
+
type: 'join';
|
|
1172
|
+
/**
|
|
1173
|
+
* Description of join function.
|
|
1174
|
+
*/
|
|
1175
|
+
description?: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1178
|
+
*/
|
|
1179
|
+
displayName?: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* The type of join to perform.
|
|
1182
|
+
*/
|
|
1183
|
+
joinType?: 'standard';
|
|
1184
|
+
/**
|
|
1185
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
1186
|
+
*/
|
|
1187
|
+
outputSchema?: unknown;
|
|
1188
|
+
/**
|
|
1189
|
+
* Name of output schema object.
|
|
1190
|
+
*/
|
|
1191
|
+
outputSchemaName?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* Array of tags to categorize and organize functions.
|
|
1194
|
+
*/
|
|
1195
|
+
tags?: Array<string>;
|
|
1196
|
+
}
|
|
1197
|
+
interface CreatePayloadShapingFunction {
|
|
1198
|
+
/**
|
|
1199
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1200
|
+
*/
|
|
1201
|
+
functionName: string;
|
|
1202
|
+
type: 'payload_shaping';
|
|
1203
|
+
/**
|
|
1204
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1205
|
+
*/
|
|
1206
|
+
displayName?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* JMESPath expression that defines how to transform and customize the input
|
|
1209
|
+
* payload structure. Payload shaping allows you to extract, reshape, and
|
|
1210
|
+
* reorganize data from complex input payloads into a simplified, standardized
|
|
1211
|
+
* output format. Use JMESPath syntax to select specific fields, perform
|
|
1212
|
+
* calculations, and create new data structures tailored to your needs.
|
|
1213
|
+
*/
|
|
1214
|
+
shapingSchema?: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* Array of tags to categorize and organize functions.
|
|
1217
|
+
*/
|
|
1218
|
+
tags?: Array<string>;
|
|
1219
|
+
}
|
|
1220
|
+
interface CreateEnrichFunction {
|
|
1221
|
+
/**
|
|
1222
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1223
|
+
*/
|
|
1224
|
+
functionName: string;
|
|
1225
|
+
type: 'enrich';
|
|
1226
|
+
/**
|
|
1227
|
+
* Configuration for enrich function with semantic search steps.
|
|
1228
|
+
*
|
|
1229
|
+
* **How Enrich Functions Work:**
|
|
1230
|
+
*
|
|
1231
|
+
* Enrich functions use semantic search to augment JSON data with relevant
|
|
1232
|
+
* information from collections. They take JSON input (typically from a transform
|
|
1233
|
+
* function), extract specified fields, perform vector-based semantic search
|
|
1234
|
+
* against collections, and inject the results back into the data.
|
|
1235
|
+
*
|
|
1236
|
+
* **Input Requirements:**
|
|
1237
|
+
*
|
|
1238
|
+
* - Must receive JSON input (typically uploaded to S3 from a previous function)
|
|
1239
|
+
* - Can be chained after transform or other functions that produce JSON output
|
|
1240
|
+
*
|
|
1241
|
+
* **Example Use Cases:**
|
|
1242
|
+
*
|
|
1243
|
+
* - Match product descriptions to SKU codes from a product catalog
|
|
1244
|
+
* - Enrich customer data with account information
|
|
1245
|
+
* - Link order line items to inventory records
|
|
1246
|
+
*
|
|
1247
|
+
* **Configuration:**
|
|
1248
|
+
*
|
|
1249
|
+
* - Define one or more enrichment steps
|
|
1250
|
+
* - Each step extracts values, searches a collection, and injects results
|
|
1251
|
+
* - Steps are executed sequentially
|
|
1252
|
+
*/
|
|
1253
|
+
config?: EnrichConfig;
|
|
1254
|
+
/**
|
|
1255
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1256
|
+
*/
|
|
1257
|
+
displayName?: string;
|
|
1258
|
+
/**
|
|
1259
|
+
* Array of tags to categorize and organize functions.
|
|
1260
|
+
*/
|
|
1261
|
+
tags?: Array<string>;
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
export type FunctionUpdateParams = FunctionUpdateParams.UpsertTransformFunction | FunctionUpdateParams.UpsertAnalyzeFunction | FunctionUpdateParams.UpsertRouteFunction | FunctionUpdateParams.UpsertSplitFunction | FunctionUpdateParams.UpsertJoinFunction | FunctionUpdateParams.UpsertPayloadShapingFunction | FunctionUpdateParams.UpsertEnrichFunction;
|
|
1265
|
+
export declare namespace FunctionUpdateParams {
|
|
1266
|
+
interface UpsertTransformFunction {
|
|
1267
|
+
type: 'transform';
|
|
1268
|
+
/**
|
|
1269
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1270
|
+
*/
|
|
1271
|
+
displayName?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1274
|
+
*/
|
|
1275
|
+
functionName?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
1278
|
+
*/
|
|
1279
|
+
outputSchema?: unknown;
|
|
1280
|
+
/**
|
|
1281
|
+
* Name of output schema object.
|
|
1282
|
+
*/
|
|
1283
|
+
outputSchemaName?: string;
|
|
1284
|
+
/**
|
|
1285
|
+
* Whether tabular chunking is enabled on the pipeline. This processes tables in
|
|
1286
|
+
* CSV/Excel in row batches, rather than all rows at once.
|
|
1287
|
+
*/
|
|
1288
|
+
tabularChunkingEnabled?: boolean;
|
|
1289
|
+
/**
|
|
1290
|
+
* Array of tags to categorize and organize functions.
|
|
1291
|
+
*/
|
|
1292
|
+
tags?: Array<string>;
|
|
1293
|
+
}
|
|
1294
|
+
interface UpsertAnalyzeFunction {
|
|
1295
|
+
type: 'analyze';
|
|
1296
|
+
/**
|
|
1297
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1298
|
+
*/
|
|
1299
|
+
displayName?: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1302
|
+
*/
|
|
1303
|
+
functionName?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
1306
|
+
*/
|
|
1307
|
+
outputSchema?: unknown;
|
|
1308
|
+
/**
|
|
1309
|
+
* Name of output schema object.
|
|
1310
|
+
*/
|
|
1311
|
+
outputSchemaName?: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* Array of tags to categorize and organize functions.
|
|
1314
|
+
*/
|
|
1315
|
+
tags?: Array<string>;
|
|
1316
|
+
}
|
|
1317
|
+
interface UpsertRouteFunction {
|
|
1318
|
+
type: 'route';
|
|
1319
|
+
/**
|
|
1320
|
+
* Description of router. Can be used to provide additional context on router's
|
|
1321
|
+
* purpose and expected inputs.
|
|
1322
|
+
*/
|
|
1323
|
+
description?: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1326
|
+
*/
|
|
1327
|
+
displayName?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1330
|
+
*/
|
|
1331
|
+
functionName?: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* List of routes.
|
|
1334
|
+
*/
|
|
1335
|
+
routes?: Array<RouteListItem>;
|
|
1336
|
+
/**
|
|
1337
|
+
* Array of tags to categorize and organize functions.
|
|
1338
|
+
*/
|
|
1339
|
+
tags?: Array<string>;
|
|
1340
|
+
}
|
|
1341
|
+
interface UpsertSplitFunction {
|
|
1342
|
+
type: 'split';
|
|
1343
|
+
/**
|
|
1344
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1345
|
+
*/
|
|
1346
|
+
displayName?: string;
|
|
1347
|
+
/**
|
|
1348
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1349
|
+
*/
|
|
1350
|
+
functionName?: string;
|
|
1351
|
+
printPageSplitConfig?: UpsertSplitFunction.PrintPageSplitConfig;
|
|
1352
|
+
semanticPageSplitConfig?: UpsertSplitFunction.SemanticPageSplitConfig;
|
|
1353
|
+
splitType?: 'print_page' | 'semantic_page';
|
|
1354
|
+
/**
|
|
1355
|
+
* Array of tags to categorize and organize functions.
|
|
1356
|
+
*/
|
|
1357
|
+
tags?: Array<string>;
|
|
1358
|
+
}
|
|
1359
|
+
namespace UpsertSplitFunction {
|
|
1360
|
+
interface PrintPageSplitConfig {
|
|
1361
|
+
nextFunctionID?: string;
|
|
1362
|
+
nextFunctionName?: string;
|
|
1363
|
+
}
|
|
1364
|
+
interface SemanticPageSplitConfig {
|
|
1365
|
+
itemClasses?: Array<FunctionsAPI.SplitFunctionSemanticPageItemClass>;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
interface UpsertJoinFunction {
|
|
1369
|
+
type: 'join';
|
|
1370
|
+
/**
|
|
1371
|
+
* Description of join function.
|
|
1372
|
+
*/
|
|
1373
|
+
description?: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1376
|
+
*/
|
|
1377
|
+
displayName?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1380
|
+
*/
|
|
1381
|
+
functionName?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* The type of join to perform.
|
|
1384
|
+
*/
|
|
1385
|
+
joinType?: 'standard';
|
|
1386
|
+
/**
|
|
1387
|
+
* Desired output structure defined in standard JSON Schema convention.
|
|
1388
|
+
*/
|
|
1389
|
+
outputSchema?: unknown;
|
|
1390
|
+
/**
|
|
1391
|
+
* Name of output schema object.
|
|
1392
|
+
*/
|
|
1393
|
+
outputSchemaName?: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Array of tags to categorize and organize functions.
|
|
1396
|
+
*/
|
|
1397
|
+
tags?: Array<string>;
|
|
1398
|
+
}
|
|
1399
|
+
interface UpsertPayloadShapingFunction {
|
|
1400
|
+
type: 'payload_shaping';
|
|
1401
|
+
/**
|
|
1402
|
+
* Display name of function. Human-readable name to help you identify the function.
|
|
1403
|
+
*/
|
|
1404
|
+
displayName?: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* Name of function. Must be UNIQUE on a per-environment basis.
|
|
1407
|
+
*/
|
|
1408
|
+
functionName?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* JMESPath expression that defines how to transform and customize the input
|
|
1411
|
+
* payload structure. Payload shaping allows you to extract, reshape, and
|
|
1412
|
+
* reorganize data from complex input payloads into a simplified, standardized
|
|
1413
|
+
* output format. Use JMESPath syntax to select specific fields, perform
|
|
1414
|
+
* calculations, and create new data structures tailored to your needs.
|
|
1415
|
+
*/
|
|
1416
|
+
shapingSchema?: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* Array of tags to categorize and organize functions.
|
|
1419
|
+
*/
|
|
1420
|
+
tags?: Array<string>;
|
|
1421
|
+
}
|
|
1422
|
+
interface UpsertEnrichFunction {
|
|
1423
|
+
type: 'enrich';
|
|
1424
|
+
/**
|
|
1425
|
+
* Configuration for enrich function with semantic search steps.
|
|
1426
|
+
*
|
|
1427
|
+
* **How Enrich Functions Work:**
|
|
1428
|
+
*
|
|
1429
|
+
* Enrich functions use semantic search to augment JSON data with relevant
|
|
1430
|
+
* information from collections. They take JSON input (typically from a transform
|
|
1431
|
+
* function), extract specified fields, perform vector-based semantic search
|
|
1432
|
+
* against collections, and inject the results back into the data.
|
|
1433
|
+
*
|
|
1434
|
+
* **Input Requirements:**
|
|
1435
|
+
*
|
|
1436
|
+
* - Must receive JSON input (typically uploaded to S3 from a previous function)
|
|
1437
|
+
* - Can be chained after transform or other functions that produce JSON output
|
|
1438
|
+
*
|
|
1439
|
+
* **Example Use Cases:**
|
|
1440
|
+
*
|
|
1441
|
+
* - Match product descriptions to SKU codes from a product catalog
|
|
1442
|
+
* - Enrich customer data with account information
|
|
1443
|
+
* - Link order line items to inventory records
|
|
1444
|
+
*
|
|
1445
|
+
* **Configuration:**
|
|
1446
|
+
*
|
|
1447
|
+
* - Define one or more enrichment steps
|
|
1448
|
+
* - Each step extracts values, searches a collection, and injects results
|
|
1449
|
+
* - Steps are executed sequentially
|
|
1450
|
+
*/
|
|
1451
|
+
config?: EnrichConfig;
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
export interface FunctionListParams extends FunctionsPageParams {
|
|
1455
|
+
displayName?: string;
|
|
1456
|
+
functionIDs?: Array<string>;
|
|
1457
|
+
functionNames?: Array<string>;
|
|
1458
|
+
sortOrder?: 'asc' | 'desc';
|
|
1459
|
+
tags?: Array<string>;
|
|
1460
|
+
types?: Array<FunctionType>;
|
|
1461
|
+
workflowIDs?: Array<string>;
|
|
1462
|
+
workflowNames?: Array<string>;
|
|
1463
|
+
}
|
|
1464
|
+
export declare namespace Functions {
|
|
1465
|
+
export { type CreateFunction as CreateFunction, type EnrichConfig as EnrichConfig, type EnrichStep as EnrichStep, type Function as Function, type FunctionAudit as FunctionAudit, type FunctionResponse as FunctionResponse, type FunctionType as FunctionType, type ListFunctionsResponse as ListFunctionsResponse, type RouteListItem as RouteListItem, type SplitFunctionSemanticPageItemClass as SplitFunctionSemanticPageItemClass, type UpdateFunction as UpdateFunction, type UserActionSummary as UserActionSummary, type WorkflowUsageInfo as WorkflowUsageInfo, type FunctionsFunctionsPage as FunctionsFunctionsPage, type FunctionCreateParams as FunctionCreateParams, type FunctionUpdateParams as FunctionUpdateParams, type FunctionListParams as FunctionListParams, };
|
|
1466
|
+
export { Copy as Copy, type FunctionCopyRequest as FunctionCopyRequest, type CopyCreateParams as CopyCreateParams, };
|
|
1467
|
+
export { Versions as Versions, type FunctionVersion as FunctionVersion, type ListFunctionVersionsResponse as ListFunctionVersionsResponse, type VersionRetrieveResponse as VersionRetrieveResponse, type VersionRetrieveParams as VersionRetrieveParams, };
|
|
1468
|
+
}
|
|
1469
|
+
//# sourceMappingURL=functions.d.ts.map
|