@adaptic/maestro 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/scripts/huddle/node_modules/.package-lock.json +0 -50
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/CHANGELOG.md +0 -1677
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/LICENSE +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/README.md +0 -674
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +0 -226
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +0 -223
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/bin/cli +0 -53
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/bin/migration-config.json +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.d.mts +0 -225
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.d.ts +0 -225
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.js +0 -536
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.mjs +0 -531
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +0 -49
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +0 -49
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.js +0 -76
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +0 -72
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.d.mts +0 -47
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.d.ts +0 -47
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.js +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.mjs +0 -98
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +0 -63
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +0 -63
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.js +0 -123
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.mjs +0 -117
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.d.mts +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.d.ts +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.js +0 -11
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.mjs +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +0 -31
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +0 -31
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.js +0 -282
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.mjs +0 -277
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.d.mts +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.d.ts +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.js +0 -35
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.mjs +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts +0 -73
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts +0 -73
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.js +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.d.mts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.d.ts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.js +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.mjs +0 -12
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts +0 -10
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts +0 -10
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js +0 -39
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs +0 -35
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.js +0 -113
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs +0 -108
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.js +0 -162
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs +0 -157
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.js +0 -41
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.mjs +0 -36
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +0 -22
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +0 -22
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.js +0 -79
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.mjs +0 -74
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.js +0 -55
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.mjs +0 -51
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +0 -34
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +0 -34
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.js +0 -14
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +0 -10
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shim-types.d.mts +0 -28
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shim-types.d.ts +0 -28
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +0 -20
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +0 -20
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.js +0 -92
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.mjs +0 -85
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.js +0 -38
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs +0 -35
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts +0 -45
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts +0 -45
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.js +0 -96
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.mjs +0 -93
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/tslib.js +0 -81
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/tslib.mjs +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.d.mts +0 -67
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.d.ts +0 -67
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.js +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts +0 -42
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts +0 -42
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.js +0 -146
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.mjs +0 -136
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.js +0 -38
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs +0 -33
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js +0 -31
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs +0 -26
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts +0 -9
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts +0 -9
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.js +0 -22
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs +0 -18
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +0 -37
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +0 -37
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.js +0 -86
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +0 -80
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.js +0 -58
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs +0 -53
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js +0 -19
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts +0 -16
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts +0 -16
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.js +0 -109
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs +0 -92
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.d.mts +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.d.ts +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.js +0 -11
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.mjs +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +0 -553
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +0 -549
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +0 -553
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +0 -549
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/package.json +0 -185
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +0 -61
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +0 -61
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +0 -25
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +0 -20
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +0 -151
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +0 -151
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.js +0 -122
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +0 -118
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.js +0 -13
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +0 -343
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +0 -343
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +0 -204
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +0 -200
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js +0 -9
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +0 -1561
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +0 -1561
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +0 -86
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +0 -81
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +0 -74
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +0 -74
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.js +0 -60
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +0 -56
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +0 -183
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +0 -183
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.js +0 -23
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.mjs +0 -19
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.d.mts +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.d.ts +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.js +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.mjs +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +0 -304
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +0 -304
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +0 -153
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +0 -149
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.js +0 -9
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +0 -1264
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +0 -1264
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +0 -72
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +0 -67
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.d.mts +0 -59
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.d.ts +0 -59
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.js +0 -45
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.mjs +0 -41
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.d.mts +0 -42
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.d.ts +0 -42
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.js +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.js +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.js +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +0 -264
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/api-promise.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/client.ts +0 -1070
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/README.md +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +0 -101
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/error.ts +0 -133
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +0 -201
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/resource.ts +0 -11
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +0 -331
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/uploads.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/error.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/index.ts +0 -23
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/README.md +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/builtin-types.ts +0 -93
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +0 -12
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/decoders/jsonl.ts +0 -48
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/decoders/line.ts +0 -135
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/detect-platform.ts +0 -196
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/errors.ts +0 -33
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +0 -99
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +0 -84
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +0 -39
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/shim-types.d.ts +0 -28
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/shims.ts +0 -107
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/stream-utils.ts +0 -32
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/to-file.ts +0 -159
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/types.ts +0 -92
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/uploads.ts +0 -193
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/base64.ts +0 -40
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/bytes.ts +0 -32
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/env.ts +0 -18
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +0 -127
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/path.ts +0 -65
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/uuid.ts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/values.ts +0 -102
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils.ts +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/lib/.keep +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +0 -683
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +0 -684
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/pagination.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resource.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +0 -380
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +0 -258
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +0 -148
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +0 -502
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +0 -135
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +0 -2249
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/messages.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +0 -118
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +0 -231
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/index.ts +0 -121
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +0 -396
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +0 -110
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +0 -1783
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/models.ts +0 -103
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/shared.ts +0 -72
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources.ts +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/streaming.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/tsconfig.json +0 -11
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/uploads.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/version.ts +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.js +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.mjs.map +0 -1
- package/scripts/huddle/node_modules/dotenv/CHANGELOG.md +0 -520
- package/scripts/huddle/node_modules/dotenv/LICENSE +0 -23
- package/scripts/huddle/node_modules/dotenv/README-es.md +0 -411
- package/scripts/huddle/node_modules/dotenv/README.md +0 -645
- package/scripts/huddle/node_modules/dotenv/SECURITY.md +0 -1
- package/scripts/huddle/node_modules/dotenv/config.d.ts +0 -1
- package/scripts/huddle/node_modules/dotenv/config.js +0 -9
- package/scripts/huddle/node_modules/dotenv/lib/cli-options.js +0 -17
- package/scripts/huddle/node_modules/dotenv/lib/env-options.js +0 -28
- package/scripts/huddle/node_modules/dotenv/lib/main.d.ts +0 -162
- package/scripts/huddle/node_modules/dotenv/lib/main.js +0 -386
- package/scripts/huddle/node_modules/dotenv/package.json +0 -62
- package/scripts/huddle/node_modules/ws/LICENSE +0 -20
- package/scripts/huddle/node_modules/ws/README.md +0 -548
- package/scripts/huddle/node_modules/ws/browser.js +0 -8
- package/scripts/huddle/node_modules/ws/index.js +0 -22
- package/scripts/huddle/node_modules/ws/lib/buffer-util.js +0 -131
- package/scripts/huddle/node_modules/ws/lib/constants.js +0 -19
- package/scripts/huddle/node_modules/ws/lib/event-target.js +0 -292
- package/scripts/huddle/node_modules/ws/lib/extension.js +0 -203
- package/scripts/huddle/node_modules/ws/lib/limiter.js +0 -55
- package/scripts/huddle/node_modules/ws/lib/permessage-deflate.js +0 -528
- package/scripts/huddle/node_modules/ws/lib/receiver.js +0 -706
- package/scripts/huddle/node_modules/ws/lib/sender.js +0 -602
- package/scripts/huddle/node_modules/ws/lib/stream.js +0 -161
- package/scripts/huddle/node_modules/ws/lib/subprotocol.js +0 -62
- package/scripts/huddle/node_modules/ws/lib/validation.js +0 -152
- package/scripts/huddle/node_modules/ws/lib/websocket-server.js +0 -554
- package/scripts/huddle/node_modules/ws/lib/websocket.js +0 -1393
- package/scripts/huddle/node_modules/ws/package.json +0 -70
- package/scripts/huddle/node_modules/ws/wrapper.mjs +0 -21
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getDefaultFetch = getDefaultFetch;
|
|
5
|
-
exports.makeReadableStream = makeReadableStream;
|
|
6
|
-
exports.ReadableStreamFrom = ReadableStreamFrom;
|
|
7
|
-
exports.ReadableStreamToAsyncIterable = ReadableStreamToAsyncIterable;
|
|
8
|
-
exports.CancelReadableStream = CancelReadableStream;
|
|
9
|
-
function getDefaultFetch() {
|
|
10
|
-
if (typeof fetch !== 'undefined') {
|
|
11
|
-
return fetch;
|
|
12
|
-
}
|
|
13
|
-
throw new Error('`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`');
|
|
14
|
-
}
|
|
15
|
-
function makeReadableStream(...args) {
|
|
16
|
-
const ReadableStream = globalThis.ReadableStream;
|
|
17
|
-
if (typeof ReadableStream === 'undefined') {
|
|
18
|
-
// Note: All of the platforms / runtimes we officially support already define
|
|
19
|
-
// `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes.
|
|
20
|
-
throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`');
|
|
21
|
-
}
|
|
22
|
-
return new ReadableStream(...args);
|
|
23
|
-
}
|
|
24
|
-
function ReadableStreamFrom(iterable) {
|
|
25
|
-
let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
26
|
-
return makeReadableStream({
|
|
27
|
-
start() { },
|
|
28
|
-
async pull(controller) {
|
|
29
|
-
const { done, value } = await iter.next();
|
|
30
|
-
if (done) {
|
|
31
|
-
controller.close();
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
controller.enqueue(value);
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
async cancel() {
|
|
38
|
-
await iter.return?.();
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
44
|
-
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
45
|
-
*
|
|
46
|
-
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
47
|
-
*/
|
|
48
|
-
function ReadableStreamToAsyncIterable(stream) {
|
|
49
|
-
if (stream[Symbol.asyncIterator])
|
|
50
|
-
return stream;
|
|
51
|
-
const reader = stream.getReader();
|
|
52
|
-
return {
|
|
53
|
-
async next() {
|
|
54
|
-
try {
|
|
55
|
-
const result = await reader.read();
|
|
56
|
-
if (result?.done)
|
|
57
|
-
reader.releaseLock(); // release lock when stream becomes closed
|
|
58
|
-
return result;
|
|
59
|
-
}
|
|
60
|
-
catch (e) {
|
|
61
|
-
reader.releaseLock(); // release lock when stream becomes errored
|
|
62
|
-
throw e;
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
async return() {
|
|
66
|
-
const cancelPromise = reader.cancel();
|
|
67
|
-
reader.releaseLock();
|
|
68
|
-
await cancelPromise;
|
|
69
|
-
return { done: true, value: undefined };
|
|
70
|
-
},
|
|
71
|
-
[Symbol.asyncIterator]() {
|
|
72
|
-
return this;
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Cancels a ReadableStream we don't need to consume.
|
|
78
|
-
* See https://undici.nodejs.org/#/?id=garbage-collection
|
|
79
|
-
*/
|
|
80
|
-
async function CancelReadableStream(stream) {
|
|
81
|
-
if (stream === null || typeof stream !== 'object')
|
|
82
|
-
return;
|
|
83
|
-
if (stream[Symbol.asyncIterator]) {
|
|
84
|
-
await stream[Symbol.asyncIterator]().return?.();
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
const reader = stream.getReader();
|
|
88
|
-
const cancelPromise = reader.cancel();
|
|
89
|
-
reader.releaseLock();
|
|
90
|
-
await cancelPromise;
|
|
91
|
-
}
|
|
92
|
-
//# sourceMappingURL=shims.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shims.js","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAYtF,0CAQC;AAID,gDAWC;AAED,gDAkBC;AAQD,sEAyBC;AAMD,oDAYC;AA9FD,SAAgB,eAAe;IAC7B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,CAAC;QACjC,OAAO,KAAY,CAAC;IACtB,CAAC;IAED,MAAM,IAAI,KAAK,CACb,sJAAsJ,CACvJ,CAAC;AACJ,CAAC;AAID,SAAgB,kBAAkB,CAAC,GAAG,IAAwB;IAC5D,MAAM,cAAc,GAAI,UAAkB,CAAC,cAAc,CAAC;IAC1D,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE,CAAC;QAC1C,6EAA6E;QAC7E,yFAAyF;QACzF,MAAM,IAAI,KAAK,CACb,yHAAyH,CAC1H,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;AACrC,CAAC;AAED,SAAgB,kBAAkB,CAAI,QAAwC;IAC5E,IAAI,IAAI,GACN,MAAM,CAAC,aAAa,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IAEpG,OAAO,kBAAkB,CAAC;QACxB,KAAK,KAAI,CAAC;QACV,KAAK,CAAC,IAAI,CAAC,UAAe;YACxB,MAAM,EA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,CAAC,MAAW;IACpD,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO;IAE1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;QAChD,OAAO;IACT,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,WAAW,EAAE,CAAC;IACrB,MAAM,aAAa,CAAC;AACtB,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export function getDefaultFetch() {
|
|
3
|
-
if (typeof fetch !== 'undefined') {
|
|
4
|
-
return fetch;
|
|
5
|
-
}
|
|
6
|
-
throw new Error('`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`');
|
|
7
|
-
}
|
|
8
|
-
export function makeReadableStream(...args) {
|
|
9
|
-
const ReadableStream = globalThis.ReadableStream;
|
|
10
|
-
if (typeof ReadableStream === 'undefined') {
|
|
11
|
-
// Note: All of the platforms / runtimes we officially support already define
|
|
12
|
-
// `ReadableStream` as a global, so this should only ever be hit on unsupported runtimes.
|
|
13
|
-
throw new Error('`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`');
|
|
14
|
-
}
|
|
15
|
-
return new ReadableStream(...args);
|
|
16
|
-
}
|
|
17
|
-
export function ReadableStreamFrom(iterable) {
|
|
18
|
-
let iter = Symbol.asyncIterator in iterable ? iterable[Symbol.asyncIterator]() : iterable[Symbol.iterator]();
|
|
19
|
-
return makeReadableStream({
|
|
20
|
-
start() { },
|
|
21
|
-
async pull(controller) {
|
|
22
|
-
const { done, value } = await iter.next();
|
|
23
|
-
if (done) {
|
|
24
|
-
controller.close();
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
controller.enqueue(value);
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
async cancel() {
|
|
31
|
-
await iter.return?.();
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
37
|
-
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
38
|
-
*
|
|
39
|
-
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
40
|
-
*/
|
|
41
|
-
export function ReadableStreamToAsyncIterable(stream) {
|
|
42
|
-
if (stream[Symbol.asyncIterator])
|
|
43
|
-
return stream;
|
|
44
|
-
const reader = stream.getReader();
|
|
45
|
-
return {
|
|
46
|
-
async next() {
|
|
47
|
-
try {
|
|
48
|
-
const result = await reader.read();
|
|
49
|
-
if (result?.done)
|
|
50
|
-
reader.releaseLock(); // release lock when stream becomes closed
|
|
51
|
-
return result;
|
|
52
|
-
}
|
|
53
|
-
catch (e) {
|
|
54
|
-
reader.releaseLock(); // release lock when stream becomes errored
|
|
55
|
-
throw e;
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
async return() {
|
|
59
|
-
const cancelPromise = reader.cancel();
|
|
60
|
-
reader.releaseLock();
|
|
61
|
-
await cancelPromise;
|
|
62
|
-
return { done: true, value: undefined };
|
|
63
|
-
},
|
|
64
|
-
[Symbol.asyncIterator]() {
|
|
65
|
-
return this;
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Cancels a ReadableStream we don't need to consume.
|
|
71
|
-
* See https://undici.nodejs.org/#/?id=garbage-collection
|
|
72
|
-
*/
|
|
73
|
-
export async function CancelReadableStream(stream) {
|
|
74
|
-
if (stream === null || typeof stream !== 'object')
|
|
75
|
-
return;
|
|
76
|
-
if (stream[Symbol.asyncIterator]) {
|
|
77
|
-
await stream[Symbol.asyncIterator]().return?.();
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const reader = stream.getReader();
|
|
81
|
-
const cancelPromise = reader.cancel();
|
|
82
|
-
reader.releaseLock();
|
|
83
|
-
await cancelPromise;
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=shims.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shims.mjs","sourceRoot":"","sources":["../src/internal/shims.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAYtF,MAAM,UAAU,eAAe;IAC7B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,CAAC;QACjC,OAAO,KAAY,CAAC;IACtB,CAAC;IAED,MAAM,IAAI,KAAK,CACb,sJAAsJ,CACvJ,CAAC;AACJ,CAAC;AAID,MAAM,UAAU,kBAAkB,CAAC,GAAG,IAAwB;IAC5D,MAAM,cAAc,GAAI,UAAkB,CAAC,cAAc,CAAC;IAC1D,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE,CAAC;QAC1C,6EAA6E;QAC7E,yFAAyF;QACzF,MAAM,IAAI,KAAK,CACb,yHAAyH,CAC1H,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,QAAwC;IAC5E,IAAI,IAAI,GACN,MAAM,CAAC,aAAa,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IAEpG,OAAO,kBAAkB,CAAC;QACxB,KAAK,KAAI,CAAC;QACV,KAAK,CAAC,IAAI,CAAC,UAAe;YACxB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAA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ACpD,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO;IAE1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;QACjC,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;QAChD,OAAO;IACT,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,WAAW,EAAE,CAAC;IACrB,MAAM,aAAa,CAAC;AACtB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
3
|
-
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
4
|
-
*
|
|
5
|
-
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
6
|
-
*/
|
|
7
|
-
export declare function ReadableStreamToAsyncIterable<T>(stream: any): AsyncIterableIterator<T>;
|
|
8
|
-
//# sourceMappingURL=stream-utils.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-utils.d.mts","sourceRoot":"","sources":["../src/internal/stream-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
3
|
-
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
4
|
-
*
|
|
5
|
-
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
6
|
-
*/
|
|
7
|
-
export declare function ReadableStreamToAsyncIterable<T>(stream: any): AsyncIterableIterator<T>;
|
|
8
|
-
//# sourceMappingURL=stream-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-utils.d.ts","sourceRoot":"","sources":["../src/internal/stream-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBtF"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReadableStreamToAsyncIterable = ReadableStreamToAsyncIterable;
|
|
4
|
-
/**
|
|
5
|
-
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
6
|
-
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
7
|
-
*
|
|
8
|
-
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
9
|
-
*/
|
|
10
|
-
function ReadableStreamToAsyncIterable(stream) {
|
|
11
|
-
if (stream[Symbol.asyncIterator])
|
|
12
|
-
return stream;
|
|
13
|
-
const reader = stream.getReader();
|
|
14
|
-
return {
|
|
15
|
-
async next() {
|
|
16
|
-
try {
|
|
17
|
-
const result = await reader.read();
|
|
18
|
-
if (result?.done)
|
|
19
|
-
reader.releaseLock(); // release lock when stream becomes closed
|
|
20
|
-
return result;
|
|
21
|
-
}
|
|
22
|
-
catch (e) {
|
|
23
|
-
reader.releaseLock(); // release lock when stream becomes errored
|
|
24
|
-
throw e;
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
async return() {
|
|
28
|
-
const cancelPromise = reader.cancel();
|
|
29
|
-
reader.releaseLock();
|
|
30
|
-
await cancelPromise;
|
|
31
|
-
return { done: true, value: undefined };
|
|
32
|
-
},
|
|
33
|
-
[Symbol.asyncIterator]() {
|
|
34
|
-
return this;
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=stream-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-utils.js","sourceRoot":"","sources":["../src/internal/stream-utils.ts"],"names":[],"mappings":";;AAMA,sEAyBC;AA/BD;;;;;GAKG;AACH,SAAgB,6BAA6B,CAAI,MAAW;IAC1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;QAAE,OAAO,MAAM,CAAC;IAEhD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,OAAO;QACL,KAAK,CAAC,IAAI;YACR,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;gBACnC,IAAI,MAAM,EAAE,IAAI;oBAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,0CAA0C;gBAClF,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,2CAA2C;gBACjE,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;QACD,KAAK,CAAC,MAAM;YACV,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YACtC,MAAM,CAAC,WAAW,EAAE,CAAC;YACrB,MAAM,aAAa,CAAC;YACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAC1C,CAAC;QACD,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Most browsers don't yet have async iterable support for ReadableStream,
|
|
3
|
-
* and Node has a very different way of reading bytes from its "ReadableStream".
|
|
4
|
-
*
|
|
5
|
-
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
|
|
6
|
-
*/
|
|
7
|
-
export function ReadableStreamToAsyncIterable(stream) {
|
|
8
|
-
if (stream[Symbol.asyncIterator])
|
|
9
|
-
return stream;
|
|
10
|
-
const reader = stream.getReader();
|
|
11
|
-
return {
|
|
12
|
-
async next() {
|
|
13
|
-
try {
|
|
14
|
-
const result = await reader.read();
|
|
15
|
-
if (result?.done)
|
|
16
|
-
reader.releaseLock(); // release lock when stream becomes closed
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
catch (e) {
|
|
20
|
-
reader.releaseLock(); // release lock when stream becomes errored
|
|
21
|
-
throw e;
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
async return() {
|
|
25
|
-
const cancelPromise = reader.cancel();
|
|
26
|
-
reader.releaseLock();
|
|
27
|
-
await cancelPromise;
|
|
28
|
-
return { done: true, value: undefined };
|
|
29
|
-
},
|
|
30
|
-
[Symbol.asyncIterator]() {
|
|
31
|
-
return this;
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=stream-utils.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-utils.mjs","sourceRoot":"","sources":["../src/internal/stream-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAAI,MAAW;IAC1D,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;QAAE,OAAO,MAAM,CAAC;IAEhD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,OAAO;QACL,KAAK,CAAC,IAAI;YACR,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;gBACnC,IAAI,MAAM,EAAE,IAAI;oBAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,0CAA0C;gBAClF,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,2CAA2C;gBACjE,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;QACD,KAAK,CAAC,MAAM;YACV,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YACtC,MAAM,CAAC,WAAW,EAAE,CAAC;YACrB,MAAM,aAAa,CAAC;YACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAC1C,CAAC;QACD,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { FilePropertyBag } from "./builtin-types.mjs";
|
|
2
|
-
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | DataView;
|
|
3
|
-
/**
|
|
4
|
-
* Intended to match DOM Blob, node-fetch Blob, node:buffer Blob, etc.
|
|
5
|
-
* Don't add arrayBuffer here, node-fetch doesn't have it
|
|
6
|
-
*/
|
|
7
|
-
interface BlobLike {
|
|
8
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
9
|
-
readonly size: number;
|
|
10
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
|
|
11
|
-
readonly type: string;
|
|
12
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
13
|
-
text(): Promise<string>;
|
|
14
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
|
|
15
|
-
slice(start?: number, end?: number): BlobLike;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Intended to match DOM File, node:buffer File, undici File, etc.
|
|
19
|
-
*/
|
|
20
|
-
interface FileLike extends BlobLike {
|
|
21
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
|
|
22
|
-
readonly lastModified: number;
|
|
23
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
24
|
-
readonly name?: string | undefined;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Intended to match DOM Response, node-fetch Response, undici Response, etc.
|
|
28
|
-
*/
|
|
29
|
-
export interface ResponseLike {
|
|
30
|
-
url: string;
|
|
31
|
-
blob(): Promise<BlobLike>;
|
|
32
|
-
}
|
|
33
|
-
export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
34
|
-
/**
|
|
35
|
-
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
36
|
-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
37
|
-
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
38
|
-
* @param {Object=} options additional properties
|
|
39
|
-
* @param {string=} options.type the MIME type of the content
|
|
40
|
-
* @param {number=} options.lastModified the last modified timestamp
|
|
41
|
-
* @returns a {@link File} with the given properties
|
|
42
|
-
*/
|
|
43
|
-
export declare function toFile(value: ToFileInput | PromiseLike<ToFileInput>, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise<File>;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=to-file.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-file.d.mts","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,eAAe,EAAE;AAG/B,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF;;;GAGG;AACH,UAAU,QAAQ;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/C;AAcD;;GAEG;AACH,UAAU,QAAS,SAAQ,QAAQ;IACjC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAQD,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAC7B,aAAa,CAAC,YAAY,CAAC,CAAC;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAsCf"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { FilePropertyBag } from "./builtin-types.js";
|
|
2
|
-
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | DataView;
|
|
3
|
-
/**
|
|
4
|
-
* Intended to match DOM Blob, node-fetch Blob, node:buffer Blob, etc.
|
|
5
|
-
* Don't add arrayBuffer here, node-fetch doesn't have it
|
|
6
|
-
*/
|
|
7
|
-
interface BlobLike {
|
|
8
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
9
|
-
readonly size: number;
|
|
10
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
|
|
11
|
-
readonly type: string;
|
|
12
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
13
|
-
text(): Promise<string>;
|
|
14
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
|
|
15
|
-
slice(start?: number, end?: number): BlobLike;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Intended to match DOM File, node:buffer File, undici File, etc.
|
|
19
|
-
*/
|
|
20
|
-
interface FileLike extends BlobLike {
|
|
21
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
|
|
22
|
-
readonly lastModified: number;
|
|
23
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
24
|
-
readonly name?: string | undefined;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Intended to match DOM Response, node-fetch Response, undici Response, etc.
|
|
28
|
-
*/
|
|
29
|
-
export interface ResponseLike {
|
|
30
|
-
url: string;
|
|
31
|
-
blob(): Promise<BlobLike>;
|
|
32
|
-
}
|
|
33
|
-
export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
34
|
-
/**
|
|
35
|
-
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
36
|
-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
37
|
-
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
38
|
-
* @param {Object=} options additional properties
|
|
39
|
-
* @param {string=} options.type the MIME type of the content
|
|
40
|
-
* @param {number=} options.lastModified the last modified timestamp
|
|
41
|
-
* @returns a {@link File} with the given properties
|
|
42
|
-
*/
|
|
43
|
-
export declare function toFile(value: ToFileInput | PromiseLike<ToFileInput>, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise<File>;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=to-file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-file.d.ts","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,eAAe,EAAE;AAG/B,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF;;;GAGG;AACH,UAAU,QAAQ;IAChB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC/C;AAcD;;GAEG;AACH,UAAU,QAAS,SAAQ,QAAQ;IACjC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAQD,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAC7B,aAAa,CAAC,YAAY,CAAC,CAAC;AAEhC;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAsCf"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toFile = toFile;
|
|
4
|
-
const uploads_1 = require("./uploads.js");
|
|
5
|
-
const uploads_2 = require("./uploads.js");
|
|
6
|
-
/**
|
|
7
|
-
* This check adds the arrayBuffer() method type because it is available and used at runtime
|
|
8
|
-
*/
|
|
9
|
-
const isBlobLike = (value) => value != null &&
|
|
10
|
-
typeof value === 'object' &&
|
|
11
|
-
typeof value.size === 'number' &&
|
|
12
|
-
typeof value.type === 'string' &&
|
|
13
|
-
typeof value.text === 'function' &&
|
|
14
|
-
typeof value.slice === 'function' &&
|
|
15
|
-
typeof value.arrayBuffer === 'function';
|
|
16
|
-
/**
|
|
17
|
-
* This check adds the arrayBuffer() method type because it is available and used at runtime
|
|
18
|
-
*/
|
|
19
|
-
const isFileLike = (value) => value != null &&
|
|
20
|
-
typeof value === 'object' &&
|
|
21
|
-
typeof value.name === 'string' &&
|
|
22
|
-
typeof value.lastModified === 'number' &&
|
|
23
|
-
isBlobLike(value);
|
|
24
|
-
const isResponseLike = (value) => value != null &&
|
|
25
|
-
typeof value === 'object' &&
|
|
26
|
-
typeof value.url === 'string' &&
|
|
27
|
-
typeof value.blob === 'function';
|
|
28
|
-
/**
|
|
29
|
-
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
30
|
-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
31
|
-
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
32
|
-
* @param {Object=} options additional properties
|
|
33
|
-
* @param {string=} options.type the MIME type of the content
|
|
34
|
-
* @param {number=} options.lastModified the last modified timestamp
|
|
35
|
-
* @returns a {@link File} with the given properties
|
|
36
|
-
*/
|
|
37
|
-
async function toFile(value, name, options) {
|
|
38
|
-
(0, uploads_2.checkFileSupport)();
|
|
39
|
-
// If it's a promise, resolve it.
|
|
40
|
-
value = await value;
|
|
41
|
-
name || (name = (0, uploads_1.getName)(value));
|
|
42
|
-
// If we've been given a `File` we don't need to do anything if the name / options
|
|
43
|
-
// have not been customised.
|
|
44
|
-
if (isFileLike(value)) {
|
|
45
|
-
if (value instanceof File && name == null && options == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return (0, uploads_1.makeFile)([await value.arrayBuffer()], name ?? value.name, {
|
|
49
|
-
type: value.type,
|
|
50
|
-
lastModified: value.lastModified,
|
|
51
|
-
...options,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
if (isResponseLike(value)) {
|
|
55
|
-
const blob = await value.blob();
|
|
56
|
-
name || (name = new URL(value.url).pathname.split(/[\\/]/).pop());
|
|
57
|
-
return (0, uploads_1.makeFile)(await getBytes(blob), name, options);
|
|
58
|
-
}
|
|
59
|
-
const parts = await getBytes(value);
|
|
60
|
-
if (!options?.type) {
|
|
61
|
-
const type = parts.find((part) => typeof part === 'object' && 'type' in part && part.type);
|
|
62
|
-
if (typeof type === 'string') {
|
|
63
|
-
options = { ...options, type };
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return (0, uploads_1.makeFile)(parts, name, options);
|
|
67
|
-
}
|
|
68
|
-
async function getBytes(value) {
|
|
69
|
-
let parts = [];
|
|
70
|
-
if (typeof value === 'string' ||
|
|
71
|
-
ArrayBuffer.isView(value) || // includes Uint8Array, Buffer, etc.
|
|
72
|
-
value instanceof ArrayBuffer) {
|
|
73
|
-
parts.push(value);
|
|
74
|
-
}
|
|
75
|
-
else if (isBlobLike(value)) {
|
|
76
|
-
parts.push(value instanceof Blob ? value : await value.arrayBuffer());
|
|
77
|
-
}
|
|
78
|
-
else if ((0, uploads_1.isAsyncIterable)(value) // includes Readable, ReadableStream, etc.
|
|
79
|
-
) {
|
|
80
|
-
for await (const chunk of value) {
|
|
81
|
-
parts.push(...(await getBytes(chunk))); // TODO, consider validating?
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
const constructor = value?.constructor?.name;
|
|
86
|
-
throw new Error(`Unexpected data type: ${typeof value}${constructor ? `; constructor: ${constructor}` : ''}${propsForError(value)}`);
|
|
87
|
-
}
|
|
88
|
-
return parts;
|
|
89
|
-
}
|
|
90
|
-
function propsForError(value) {
|
|
91
|
-
if (typeof value !== 'object' || value === null)
|
|
92
|
-
return '';
|
|
93
|
-
const props = Object.getOwnPropertyNames(value);
|
|
94
|
-
return `; props: [${props.map((p) => `"${p}"`).join(', ')}]`;
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=to-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-file.js","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":";;AAkFA,wBA0CC;AA5HD,0CAAyE;AAEzE,0CAA6C;AAmB7C;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAU,EAA+D,EAAE,CAC7F,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU;IAChC,OAAO,KAAK,CAAC,KAAK,KAAK,UAAU;IACjC,OAAO,KAAK,CAAC,WAAW,KAAK,UAAU,CAAC;AAY1C;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAU,EAA+D,EAAE,CAC7F,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,YAAY,KAAK,QAAQ;IACtC,UAAU,CAAC,KA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SAAM,CAAC;QACN,MAAM,WAAW,GAAG,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC;QAC7C,MAAM,IAAI,KAAK,CACb,yBAAyB,OAAO,KAAK,GACnC,WAAW,CAAC,CAAC,CAAC,kBAAkB,WAAW,EAAE,CAAC,CAAC,CAAC,EAClD,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,CAC1B,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAChD,OAAO,aAAa,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/D,CAAC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { getName, makeFile, isAsyncIterable } from "./uploads.mjs";
|
|
2
|
-
import { checkFileSupport } from "./uploads.mjs";
|
|
3
|
-
/**
|
|
4
|
-
* This check adds the arrayBuffer() method type because it is available and used at runtime
|
|
5
|
-
*/
|
|
6
|
-
const isBlobLike = (value) => value != null &&
|
|
7
|
-
typeof value === 'object' &&
|
|
8
|
-
typeof value.size === 'number' &&
|
|
9
|
-
typeof value.type === 'string' &&
|
|
10
|
-
typeof value.text === 'function' &&
|
|
11
|
-
typeof value.slice === 'function' &&
|
|
12
|
-
typeof value.arrayBuffer === 'function';
|
|
13
|
-
/**
|
|
14
|
-
* This check adds the arrayBuffer() method type because it is available and used at runtime
|
|
15
|
-
*/
|
|
16
|
-
const isFileLike = (value) => value != null &&
|
|
17
|
-
typeof value === 'object' &&
|
|
18
|
-
typeof value.name === 'string' &&
|
|
19
|
-
typeof value.lastModified === 'number' &&
|
|
20
|
-
isBlobLike(value);
|
|
21
|
-
const isResponseLike = (value) => value != null &&
|
|
22
|
-
typeof value === 'object' &&
|
|
23
|
-
typeof value.url === 'string' &&
|
|
24
|
-
typeof value.blob === 'function';
|
|
25
|
-
/**
|
|
26
|
-
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
27
|
-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
28
|
-
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
29
|
-
* @param {Object=} options additional properties
|
|
30
|
-
* @param {string=} options.type the MIME type of the content
|
|
31
|
-
* @param {number=} options.lastModified the last modified timestamp
|
|
32
|
-
* @returns a {@link File} with the given properties
|
|
33
|
-
*/
|
|
34
|
-
export async function toFile(value, name, options) {
|
|
35
|
-
checkFileSupport();
|
|
36
|
-
// If it's a promise, resolve it.
|
|
37
|
-
value = await value;
|
|
38
|
-
name || (name = getName(value));
|
|
39
|
-
// If we've been given a `File` we don't need to do anything if the name / options
|
|
40
|
-
// have not been customised.
|
|
41
|
-
if (isFileLike(value)) {
|
|
42
|
-
if (value instanceof File && name == null && options == null) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
return makeFile([await value.arrayBuffer()], name ?? value.name, {
|
|
46
|
-
type: value.type,
|
|
47
|
-
lastModified: value.lastModified,
|
|
48
|
-
...options,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
if (isResponseLike(value)) {
|
|
52
|
-
const blob = await value.blob();
|
|
53
|
-
name || (name = new URL(value.url).pathname.split(/[\\/]/).pop());
|
|
54
|
-
return makeFile(await getBytes(blob), name, options);
|
|
55
|
-
}
|
|
56
|
-
const parts = await getBytes(value);
|
|
57
|
-
if (!options?.type) {
|
|
58
|
-
const type = parts.find((part) => typeof part === 'object' && 'type' in part && part.type);
|
|
59
|
-
if (typeof type === 'string') {
|
|
60
|
-
options = { ...options, type };
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return makeFile(parts, name, options);
|
|
64
|
-
}
|
|
65
|
-
async function getBytes(value) {
|
|
66
|
-
let parts = [];
|
|
67
|
-
if (typeof value === 'string' ||
|
|
68
|
-
ArrayBuffer.isView(value) || // includes Uint8Array, Buffer, etc.
|
|
69
|
-
value instanceof ArrayBuffer) {
|
|
70
|
-
parts.push(value);
|
|
71
|
-
}
|
|
72
|
-
else if (isBlobLike(value)) {
|
|
73
|
-
parts.push(value instanceof Blob ? value : await value.arrayBuffer());
|
|
74
|
-
}
|
|
75
|
-
else if (isAsyncIterable(value) // includes Readable, ReadableStream, etc.
|
|
76
|
-
) {
|
|
77
|
-
for await (const chunk of value) {
|
|
78
|
-
parts.push(...(await getBytes(chunk))); // TODO, consider validating?
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
const constructor = value?.constructor?.name;
|
|
83
|
-
throw new Error(`Unexpected data type: ${typeof value}${constructor ? `; constructor: ${constructor}` : ''}${propsForError(value)}`);
|
|
84
|
-
}
|
|
85
|
-
return parts;
|
|
86
|
-
}
|
|
87
|
-
function propsForError(value) {
|
|
88
|
-
if (typeof value !== 'object' || value === null)
|
|
89
|
-
return '';
|
|
90
|
-
const props = Object.getOwnPropertyNames(value);
|
|
91
|
-
return `; props: [${props.map((p) => `"${p}"`).join(', ')}]`;
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=to-file.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-file.mjs","sourceRoot":"","sources":["../src/internal/to-file.ts"],"names":[],"mappings":"OAAO,EAAY,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE;OAEhD,EAAE,gBAAgB,EAAE;AAmB3B;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAU,EAA+D,EAAE,CAC7F,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CA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