ogx-client 0.7.2-rc1
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 +512 -0
- package/LICENSE +7 -0
- package/README.md +391 -0
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +21 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +17 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +26 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +7 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +26 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +7 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +26 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +7 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +26 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +7 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +107 -0
- package/_shims/auto/types.js +9 -0
- package/_shims/auto/types.mjs +10 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +19 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +15 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +89 -0
- package/_shims/index.js +23 -0
- package/_shims/index.mjs +18 -0
- package/_shims/manual-types.d.ts +18 -0
- package/_shims/manual-types.js +9 -0
- package/_shims/manual-types.mjs +10 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +94 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +61 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +48 -0
- package/_shims/node-types.js +9 -0
- package/_shims/node-types.mjs +10 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +46 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +42 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +83 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +76 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +89 -0
- package/_shims/web-types.js +9 -0
- package/_shims/web-types.mjs +10 -0
- package/core.d.ts +257 -0
- package/core.d.ts.map +1 -0
- package/core.js +936 -0
- package/core.js.map +1 -0
- package/core.mjs +904 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +47 -0
- package/error.d.ts.map +1 -0
- package/error.js +119 -0
- package/error.js.map +1 -0
- package/error.mjs +101 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +233 -0
- package/index.d.ts +233 -0
- package/index.d.ts.map +1 -0
- package/index.js +254 -0
- package/index.js.map +1 -0
- package/index.mjs +210 -0
- package/index.mjs.map +1 -0
- package/internal/decoders/line.d.ts +21 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +155 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +150 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +16 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +13 -0
- package/internal/qs/formats.mjs.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 +19 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +15 -0
- package/internal/qs/index.mjs.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 +285 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +281 -0
- package/internal/qs/stringify.mjs.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 +8 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +7 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +234 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +222 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/stream-utils.d.ts +8 -0
- package/internal/stream-utils.d.ts.map +1 -0
- package/internal/stream-utils.js +44 -0
- package/internal/stream-utils.js.map +1 -0
- package/internal/stream-utils.mjs +40 -0
- package/internal/stream-utils.mjs.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 +39 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +12 -0
- package/internal/utils/query.mjs.map +1 -0
- package/lib/response-helpers.d.ts +23 -0
- package/lib/response-helpers.d.ts.map +1 -0
- package/lib/response-helpers.js +53 -0
- package/lib/response-helpers.js.map +1 -0
- package/lib/response-helpers.mjs +49 -0
- package/lib/response-helpers.mjs.map +1 -0
- package/ogx-client-0.7.2-rc1.tgz +0 -0
- package/package.json +108 -0
- package/pagination.d.ts +21 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +53 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +47 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +15 -0
- package/resource.js.map +1 -0
- package/resource.mjs +11 -0
- package/resource.mjs.map +1 -0
- package/resources/alpha/admin.d.ts +44 -0
- package/resources/alpha/admin.d.ts.map +1 -0
- package/resources/alpha/admin.js +49 -0
- package/resources/alpha/admin.js.map +1 -0
- package/resources/alpha/admin.mjs +45 -0
- package/resources/alpha/admin.mjs.map +1 -0
- package/resources/alpha/alpha.d.ts +14 -0
- package/resources/alpha/alpha.d.ts.map +1 -0
- package/resources/alpha/alpha.js +49 -0
- package/resources/alpha/alpha.js.map +1 -0
- package/resources/alpha/alpha.mjs +22 -0
- package/resources/alpha/alpha.mjs.map +1 -0
- package/resources/alpha/benchmarks.d.ts +104 -0
- package/resources/alpha/benchmarks.d.ts.map +1 -0
- package/resources/alpha/benchmarks.js +50 -0
- package/resources/alpha/benchmarks.js.map +1 -0
- package/resources/alpha/benchmarks.mjs +44 -0
- package/resources/alpha/benchmarks.mjs.map +1 -0
- package/resources/alpha/index.d.ts +4 -0
- package/resources/alpha/index.d.ts.map +1 -0
- package/resources/alpha/index.js +17 -0
- package/resources/alpha/index.js.map +1 -0
- package/resources/alpha/index.mjs +11 -0
- package/resources/alpha/index.mjs.map +1 -0
- package/resources/alpha/inference.d.ts +144 -0
- package/resources/alpha/inference.d.ts.map +1 -0
- package/resources/alpha/inference.js +29 -0
- package/resources/alpha/inference.js.map +1 -0
- package/resources/alpha/inference.mjs +25 -0
- package/resources/alpha/inference.mjs.map +1 -0
- package/resources/alpha.d.ts +2 -0
- package/resources/alpha.d.ts.map +1 -0
- package/resources/alpha.js +25 -0
- package/resources/alpha.js.map +1 -0
- package/resources/alpha.mjs +9 -0
- package/resources/alpha.mjs.map +1 -0
- package/resources/batches.d.ts +442 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/batches.js +53 -0
- package/resources/batches.js.map +1 -0
- package/resources/batches.mjs +48 -0
- package/resources/batches.mjs.map +1 -0
- package/resources/chat/chat.d.ts +276 -0
- package/resources/chat/chat.d.ts.map +1 -0
- package/resources/chat/chat.js +45 -0
- package/resources/chat/chat.js.map +1 -0
- package/resources/chat/chat.mjs +18 -0
- package/resources/chat/chat.mjs.map +1 -0
- package/resources/chat/completions.d.ts +2021 -0
- package/resources/chat/completions.d.ts.map +1 -0
- package/resources/chat/completions.js +39 -0
- package/resources/chat/completions.js.map +1 -0
- package/resources/chat/completions.mjs +35 -0
- package/resources/chat/completions.mjs.map +1 -0
- package/resources/chat/index.d.ts +3 -0
- package/resources/chat/index.d.ts.map +1 -0
- package/resources/chat/index.js +15 -0
- package/resources/chat/index.js.map +1 -0
- package/resources/chat/index.mjs +10 -0
- package/resources/chat/index.mjs.map +1 -0
- package/resources/chat.d.ts +2 -0
- package/resources/chat.d.ts.map +1 -0
- package/resources/chat.js +25 -0
- package/resources/chat.js.map +1 -0
- package/resources/chat.mjs +9 -0
- package/resources/chat.mjs.map +1 -0
- package/resources/completions.d.ts +273 -0
- package/resources/completions.d.ts.map +1 -0
- package/resources/completions.js +26 -0
- package/resources/completions.js.map +1 -0
- package/resources/completions.mjs +22 -0
- package/resources/completions.mjs.map +1 -0
- package/resources/conversations/conversations.d.ts +429 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +73 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +46 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.ts +3 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +16 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +10 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/items.d.ts +1408 -0
- package/resources/conversations/items.d.ts.map +1 -0
- package/resources/conversations/items.js +48 -0
- package/resources/conversations/items.js.map +1 -0
- package/resources/conversations/items.mjs +43 -0
- package/resources/conversations/items.mjs.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +25 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +9 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/embeddings.d.ts +98 -0
- package/resources/embeddings.d.ts.map +1 -0
- package/resources/embeddings.js +30 -0
- package/resources/embeddings.js.map +1 -0
- package/resources/embeddings.mjs +26 -0
- package/resources/embeddings.mjs.map +1 -0
- package/resources/files.d.ts +159 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +78 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +50 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.ts +20 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +66 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +27 -0
- package/resources/index.mjs.map +1 -0
- package/resources/inspect.d.ts +17 -0
- package/resources/inspect.d.ts.map +1 -0
- package/resources/inspect.js +30 -0
- package/resources/inspect.js.map +1 -0
- package/resources/inspect.mjs +26 -0
- package/resources/inspect.mjs.map +1 -0
- package/resources/models/index.d.ts +3 -0
- package/resources/models/index.d.ts.map +1 -0
- package/resources/models/index.js +15 -0
- package/resources/models/index.js.map +1 -0
- package/resources/models/index.mjs +10 -0
- package/resources/models/index.mjs.map +1 -0
- package/resources/models/models.d.ts +97 -0
- package/resources/models/models.d.ts.map +1 -0
- package/resources/models/models.js +57 -0
- package/resources/models/models.js.map +1 -0
- package/resources/models/models.mjs +30 -0
- package/resources/models/models.mjs.map +1 -0
- package/resources/models/openai.d.ts +10 -0
- package/resources/models/openai.d.ts.map +1 -0
- package/resources/models/openai.js +21 -0
- package/resources/models/openai.js.map +1 -0
- package/resources/models/openai.mjs +17 -0
- package/resources/models/openai.mjs.map +1 -0
- package/resources/models.d.ts +2 -0
- package/resources/models.d.ts.map +1 -0
- package/resources/models.js +25 -0
- package/resources/models.js.map +1 -0
- package/resources/models.mjs +9 -0
- package/resources/models.mjs.map +1 -0
- package/resources/moderations.d.ts +83 -0
- package/resources/moderations.d.ts.map +1 -0
- package/resources/moderations.js +24 -0
- package/resources/moderations.js.map +1 -0
- package/resources/moderations.mjs +20 -0
- package/resources/moderations.mjs.map +1 -0
- package/resources/prompts/index.d.ts +3 -0
- package/resources/prompts/index.d.ts.map +1 -0
- package/resources/prompts/index.js +15 -0
- package/resources/prompts/index.js.map +1 -0
- package/resources/prompts/index.mjs +10 -0
- package/resources/prompts/index.mjs.map +1 -0
- package/resources/prompts/prompts.d.ts +113 -0
- package/resources/prompts/prompts.d.ts.map +1 -0
- package/resources/prompts/prompts.js +88 -0
- package/resources/prompts/prompts.js.map +1 -0
- package/resources/prompts/prompts.mjs +61 -0
- package/resources/prompts/prompts.mjs.map +1 -0
- package/resources/prompts/versions.d.ts +13 -0
- package/resources/prompts/versions.d.ts.map +1 -0
- package/resources/prompts/versions.js +24 -0
- package/resources/prompts/versions.js.map +1 -0
- package/resources/prompts/versions.mjs +20 -0
- package/resources/prompts/versions.mjs.map +1 -0
- package/resources/prompts.d.ts +2 -0
- package/resources/prompts.d.ts.map +1 -0
- package/resources/prompts.js +25 -0
- package/resources/prompts.js.map +1 -0
- package/resources/prompts.mjs +9 -0
- package/resources/prompts.mjs.map +1 -0
- package/resources/providers.d.ts +24 -0
- package/resources/providers.d.ts.map +1 -0
- package/resources/providers.js +30 -0
- package/resources/providers.js.map +1 -0
- package/resources/providers.mjs +26 -0
- package/resources/providers.mjs.map +1 -0
- package/resources/responses/index.d.ts +3 -0
- package/resources/responses/index.d.ts.map +1 -0
- package/resources/responses/index.js +16 -0
- package/resources/responses/index.js.map +1 -0
- package/resources/responses/index.mjs +10 -0
- package/resources/responses/index.mjs.map +1 -0
- package/resources/responses/input-items.d.ts +382 -0
- package/resources/responses/input-items.d.ts.map +1 -0
- package/resources/responses/input-items.js +25 -0
- package/resources/responses/input-items.js.map +1 -0
- package/resources/responses/input-items.mjs +21 -0
- package/resources/responses/input-items.mjs.map +1 -0
- package/resources/responses/responses.d.ts +4808 -0
- package/resources/responses/responses.d.ts.map +1 -0
- package/resources/responses/responses.js +85 -0
- package/resources/responses/responses.js.map +1 -0
- package/resources/responses/responses.mjs +57 -0
- package/resources/responses/responses.mjs.map +1 -0
- package/resources/responses.d.ts +2 -0
- package/resources/responses.d.ts.map +1 -0
- package/resources/responses.js +25 -0
- package/resources/responses.js.map +1 -0
- package/resources/responses.mjs +9 -0
- package/resources/responses.mjs.map +1 -0
- package/resources/routes.d.ts +30 -0
- package/resources/routes.d.ts.map +1 -0
- package/resources/routes.js +25 -0
- package/resources/routes.js.map +1 -0
- package/resources/routes.mjs +21 -0
- package/resources/routes.mjs.map +1 -0
- package/resources/safety.d.ts +297 -0
- package/resources/safety.d.ts.map +1 -0
- package/resources/safety.js +24 -0
- package/resources/safety.js.map +1 -0
- package/resources/safety.mjs +20 -0
- package/resources/safety.mjs.map +1 -0
- package/resources/shared.d.ts +447 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +10 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +9 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/shields.d.ts +82 -0
- package/resources/shields.d.ts.map +1 -0
- package/resources/shields.js +46 -0
- package/resources/shields.js.map +1 -0
- package/resources/shields.mjs +42 -0
- package/resources/shields.mjs.map +1 -0
- package/resources/vector-io.d.ts +375 -0
- package/resources/vector-io.d.ts.map +1 -0
- package/resources/vector-io.js +31 -0
- package/resources/vector-io.js.map +1 -0
- package/resources/vector-io.mjs +27 -0
- package/resources/vector-io.mjs.map +1 -0
- package/resources/vector-stores/file-batches.d.ts +268 -0
- package/resources/vector-stores/file-batches.d.ts.map +1 -0
- package/resources/vector-stores/file-batches.js +42 -0
- package/resources/vector-stores/file-batches.js.map +1 -0
- package/resources/vector-stores/file-batches.mjs +38 -0
- package/resources/vector-stores/file-batches.mjs.map +1 -0
- package/resources/vector-stores/files.d.ts +335 -0
- package/resources/vector-stores/files.d.ts.map +1 -0
- package/resources/vector-stores/files.js +60 -0
- package/resources/vector-stores/files.js.map +1 -0
- package/resources/vector-stores/files.mjs +55 -0
- package/resources/vector-stores/files.mjs.map +1 -0
- package/resources/vector-stores/index.d.ts +4 -0
- package/resources/vector-stores/index.d.ts.map +1 -0
- package/resources/vector-stores/index.js +19 -0
- package/resources/vector-stores/index.js.map +1 -0
- package/resources/vector-stores/index.mjs +11 -0
- package/resources/vector-stores/index.mjs.map +1 -0
- package/resources/vector-stores/vector-stores.d.ts +412 -0
- package/resources/vector-stores/vector-stores.d.ts.map +1 -0
- package/resources/vector-stores/vector-stores.js +92 -0
- package/resources/vector-stores/vector-stores.js.map +1 -0
- package/resources/vector-stores/vector-stores.mjs +64 -0
- package/resources/vector-stores/vector-stores.mjs.map +1 -0
- package/resources/vector-stores.d.ts +2 -0
- package/resources/vector-stores.d.ts.map +1 -0
- package/resources/vector-stores.js +25 -0
- package/resources/vector-stores.js.map +1 -0
- package/resources/vector-stores.mjs +9 -0
- package/resources/vector-stores.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +23 -0
- package/resources.js.map +1 -0
- package/resources.mjs +7 -0
- package/resources.mjs.map +1 -0
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +36 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +10 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +36 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +10 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +15 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +10 -0
- package/src/_shims/auto/runtime-node.ts +10 -0
- package/src/_shims/auto/runtime.ts +10 -0
- package/src/_shims/auto/types-node.ts +10 -0
- package/src/_shims/auto/types.d.ts +107 -0
- package/src/_shims/auto/types.js +9 -0
- package/src/_shims/auto/types.mjs +10 -0
- package/src/_shims/bun-runtime.ts +20 -0
- package/src/_shims/index.d.ts +89 -0
- package/src/_shims/index.js +23 -0
- package/src/_shims/index.mjs +18 -0
- package/src/_shims/manual-types.d.ts +18 -0
- package/src/_shims/manual-types.js +9 -0
- package/src/_shims/manual-types.mjs +10 -0
- package/src/_shims/node-runtime.ts +87 -0
- package/src/_shims/node-types.d.ts +48 -0
- package/src/_shims/node-types.js +9 -0
- package/src/_shims/node-types.mjs +10 -0
- package/src/_shims/registry.ts +73 -0
- package/src/_shims/web-runtime.ts +109 -0
- package/src/_shims/web-types.d.ts +89 -0
- package/src/_shims/web-types.js +9 -0
- package/src/_shims/web-types.mjs +10 -0
- package/src/core.ts +1253 -0
- package/src/error.ts +137 -0
- package/src/index.ts +554 -0
- package/src/internal/decoders/line.ts +182 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +15 -0
- package/src/internal/qs/index.ts +19 -0
- package/src/internal/qs/stringify.ts +394 -0
- package/src/internal/qs/types.ts +77 -0
- package/src/internal/qs/utils.ts +271 -0
- package/src/internal/stream-utils.ts +38 -0
- package/src/internal/utils/query.ts +13 -0
- package/src/lib/response-helpers.ts +60 -0
- package/src/pagination.ts +80 -0
- package/src/resource.ts +18 -0
- package/src/resources/alpha/admin.ts +87 -0
- package/src/resources/alpha/alpha.ts +31 -0
- package/src/resources/alpha/benchmarks.ts +152 -0
- package/src/resources/alpha/index.ts +11 -0
- package/src/resources/alpha/inference.ts +191 -0
- package/src/resources/alpha.ts +9 -0
- package/src/resources/batches.ts +692 -0
- package/src/resources/chat/chat.ts +351 -0
- package/src/resources/chat/completions.ts +2430 -0
- package/src/resources/chat/index.ts +19 -0
- package/src/resources/chat.ts +9 -0
- package/src/resources/completions.ts +350 -0
- package/src/resources/conversations/conversations.ts +627 -0
- package/src/resources/conversations/index.ts +25 -0
- package/src/resources/conversations/items.ts +2061 -0
- package/src/resources/conversations.ts +9 -0
- package/src/resources/embeddings.ts +130 -0
- package/src/resources/files.ts +225 -0
- package/src/resources/index.ts +104 -0
- package/src/resources/inspect.ts +30 -0
- package/src/resources/models/index.ts +10 -0
- package/src/resources/models/models.ts +133 -0
- package/src/resources/models/openai.ts +20 -0
- package/src/resources/models.ts +9 -0
- package/src/resources/moderations.ts +97 -0
- package/src/resources/prompts/index.ts +19 -0
- package/src/resources/prompts/prompts.ts +188 -0
- package/src/resources/prompts/versions.ts +27 -0
- package/src/resources/prompts.ts +9 -0
- package/src/resources/providers.ts +41 -0
- package/src/resources/responses/index.ts +26 -0
- package/src/resources/responses/input-items.ts +571 -0
- package/src/resources/responses/responses.ts +6718 -0
- package/src/resources/responses.ts +9 -0
- package/src/resources/routes.ts +55 -0
- package/src/resources/safety.ts +367 -0
- package/src/resources/shared.ts +544 -0
- package/src/resources/shields.ts +119 -0
- package/src/resources/vector-io.ts +485 -0
- package/src/resources/vector-stores/file-batches.ts +386 -0
- package/src/resources/vector-stores/files.ts +496 -0
- package/src/resources/vector-stores/index.ts +38 -0
- package/src/resources/vector-stores/vector-stores.ts +588 -0
- package/src/resources/vector-stores.ts +9 -0
- package/src/resources.ts +7 -0
- package/src/shims/node.ts +56 -0
- package/src/shims/web.ts +56 -0
- package/src/streaming.ts +315 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +261 -0
- package/src/version.ts +7 -0
- package/streaming.d.ts +32 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +272 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +267 -0
- package/streaming.mjs.map +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +176 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +163 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +10 -0
- package/version.js.map +1 -0
- package/version.mjs +7 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import { OpenAICursorPage, type OpenAICursorPageParams } from "../../pagination.js";
|
|
4
|
+
export declare class Files extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Attach a file to a vector store (OpenAI-compatible).
|
|
7
|
+
*/
|
|
8
|
+
create(vectorStoreId: string, body: FileCreateParams, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFile>;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a vector store file (OpenAI-compatible).
|
|
11
|
+
*/
|
|
12
|
+
retrieve(vectorStoreId: string, fileId: string, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFile>;
|
|
13
|
+
/**
|
|
14
|
+
* Update a vector store file (OpenAI-compatible).
|
|
15
|
+
*/
|
|
16
|
+
update(vectorStoreId: string, fileId: string, body: FileUpdateParams, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFile>;
|
|
17
|
+
/**
|
|
18
|
+
* List files in a vector store (OpenAI-compatible).
|
|
19
|
+
*/
|
|
20
|
+
list(vectorStoreId: string, query?: FileListParams, options?: Core.RequestOptions): Core.PagePromise<VectorStoreFilesOpenAICursorPage, VectorStoreFile>;
|
|
21
|
+
list(vectorStoreId: string, options?: Core.RequestOptions): Core.PagePromise<VectorStoreFilesOpenAICursorPage, VectorStoreFile>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a vector store file (OpenAI-compatible).
|
|
24
|
+
*/
|
|
25
|
+
delete(vectorStoreId: string, fileId: string, options?: Core.RequestOptions): Core.APIPromise<FileDeleteResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve vector store file contents (OpenAI-compatible).
|
|
28
|
+
*/
|
|
29
|
+
content(vectorStoreId: string, fileId: string, query?: FileContentParams, options?: Core.RequestOptions): Core.APIPromise<FileContentResponse>;
|
|
30
|
+
content(vectorStoreId: string, fileId: string, options?: Core.RequestOptions): Core.APIPromise<FileContentResponse>;
|
|
31
|
+
}
|
|
32
|
+
export declare class VectorStoreFilesOpenAICursorPage extends OpenAICursorPage<VectorStoreFile> {
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* OpenAI Vector Store File object.
|
|
36
|
+
*/
|
|
37
|
+
export interface VectorStoreFile {
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Automatic chunking strategy for vector store files.
|
|
41
|
+
*/
|
|
42
|
+
chunking_strategy: VectorStoreFile.VectorStoreChunkingStrategyAuto | VectorStoreFile.VectorStoreChunkingStrategyStatic | VectorStoreFile.VectorStoreChunkingStrategyContextual;
|
|
43
|
+
created_at: number;
|
|
44
|
+
status: 'in_progress' | 'completed' | 'cancelled' | 'failed';
|
|
45
|
+
vector_store_id: string;
|
|
46
|
+
/**
|
|
47
|
+
* Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
48
|
+
* for storing additional information about the object in a structured format, and
|
|
49
|
+
* querying for objects via API or the dashboard. Keys are strings with a maximum
|
|
50
|
+
* length of 64 characters. Values are strings with a maximum length of 512
|
|
51
|
+
* characters, booleans, or numbers.
|
|
52
|
+
*/
|
|
53
|
+
attributes?: {
|
|
54
|
+
[key: string]: string | number | boolean;
|
|
55
|
+
} | null;
|
|
56
|
+
/**
|
|
57
|
+
* Error information for failed vector store file processing.
|
|
58
|
+
*/
|
|
59
|
+
last_error?: VectorStoreFile.LastError | null;
|
|
60
|
+
object?: 'vector_store.file';
|
|
61
|
+
usage_bytes?: number;
|
|
62
|
+
}
|
|
63
|
+
export declare namespace VectorStoreFile {
|
|
64
|
+
/**
|
|
65
|
+
* Automatic chunking strategy for vector store files.
|
|
66
|
+
*/
|
|
67
|
+
interface VectorStoreChunkingStrategyAuto {
|
|
68
|
+
type?: 'auto';
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Static chunking strategy with configurable parameters.
|
|
72
|
+
*/
|
|
73
|
+
interface VectorStoreChunkingStrategyStatic {
|
|
74
|
+
/**
|
|
75
|
+
* Configuration for static chunking strategy.
|
|
76
|
+
*/
|
|
77
|
+
static: VectorStoreChunkingStrategyStatic.Static;
|
|
78
|
+
type?: 'static';
|
|
79
|
+
}
|
|
80
|
+
namespace VectorStoreChunkingStrategyStatic {
|
|
81
|
+
/**
|
|
82
|
+
* Configuration for static chunking strategy.
|
|
83
|
+
*/
|
|
84
|
+
interface Static {
|
|
85
|
+
chunk_overlap_tokens?: number;
|
|
86
|
+
max_chunk_size_tokens?: number;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Contextual chunking strategy that uses an LLM to situate chunks within the
|
|
91
|
+
* document.
|
|
92
|
+
*/
|
|
93
|
+
interface VectorStoreChunkingStrategyContextual {
|
|
94
|
+
/**
|
|
95
|
+
* Configuration for contextual chunking.
|
|
96
|
+
*/
|
|
97
|
+
contextual: VectorStoreChunkingStrategyContextual.Contextual;
|
|
98
|
+
/**
|
|
99
|
+
* Strategy type identifier.
|
|
100
|
+
*/
|
|
101
|
+
type?: 'contextual';
|
|
102
|
+
}
|
|
103
|
+
namespace VectorStoreChunkingStrategyContextual {
|
|
104
|
+
/**
|
|
105
|
+
* Configuration for contextual chunking.
|
|
106
|
+
*/
|
|
107
|
+
interface Contextual {
|
|
108
|
+
/**
|
|
109
|
+
* Tokens to overlap between adjacent chunks. Must be less than
|
|
110
|
+
* max_chunk_size_tokens.
|
|
111
|
+
*/
|
|
112
|
+
chunk_overlap_tokens?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Prompt template for contextual retrieval. Uses WHOLE_DOCUMENT and CHUNK_CONTENT
|
|
115
|
+
* placeholders wrapped in double curly braces.
|
|
116
|
+
*/
|
|
117
|
+
context_prompt?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Maximum tokens per chunk. Suggested ~700 to allow room for prepended context.
|
|
120
|
+
*/
|
|
121
|
+
max_chunk_size_tokens?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Maximum concurrent LLM calls. Falls back to config default if not provided.
|
|
124
|
+
*/
|
|
125
|
+
max_concurrency?: number | null;
|
|
126
|
+
/**
|
|
127
|
+
* LLM model for generating context. Falls back to
|
|
128
|
+
* VectorStoresConfig.contextual_retrieval_params.model if not provided.
|
|
129
|
+
*/
|
|
130
|
+
model_id?: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* Timeout per LLM call in seconds. Falls back to config default if not provided.
|
|
133
|
+
*/
|
|
134
|
+
timeout_seconds?: number | null;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Error information for failed vector store file processing.
|
|
139
|
+
*/
|
|
140
|
+
interface LastError {
|
|
141
|
+
code: 'server_error' | 'unsupported_file' | 'invalid_file';
|
|
142
|
+
message: string;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Response from deleting a vector store file.
|
|
147
|
+
*/
|
|
148
|
+
export interface FileDeleteResponse {
|
|
149
|
+
id: string;
|
|
150
|
+
deleted: boolean;
|
|
151
|
+
object?: 'vector_store.file.deleted';
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Represents the parsed content of a vector store file.
|
|
155
|
+
*/
|
|
156
|
+
export interface FileContentResponse {
|
|
157
|
+
data: Array<FileContentResponse.Data>;
|
|
158
|
+
has_more: boolean;
|
|
159
|
+
next_page?: string | null;
|
|
160
|
+
object?: 'vector_store.file_content.page';
|
|
161
|
+
}
|
|
162
|
+
export declare namespace FileContentResponse {
|
|
163
|
+
/**
|
|
164
|
+
* Content item from a vector store file or search result.
|
|
165
|
+
*/
|
|
166
|
+
interface Data {
|
|
167
|
+
text: string;
|
|
168
|
+
type: 'text';
|
|
169
|
+
/**
|
|
170
|
+
* `ChunkMetadata` is backend metadata for a `Chunk` that is used to store
|
|
171
|
+
* additional information about the chunk that will not be used in the context
|
|
172
|
+
* during inference, but is required for backend functionality. The `ChunkMetadata`
|
|
173
|
+
* is set during chunk creation in `FileSearchToolRuntimeImpl().insert()`and is not
|
|
174
|
+
* expected to change after. Use `Chunk.metadata` for metadata that will be used in
|
|
175
|
+
* the context during inference.
|
|
176
|
+
*/
|
|
177
|
+
chunk_metadata?: Data.ChunkMetadata | null;
|
|
178
|
+
embedding?: Array<number> | null;
|
|
179
|
+
metadata?: {
|
|
180
|
+
[key: string]: unknown;
|
|
181
|
+
} | null;
|
|
182
|
+
}
|
|
183
|
+
namespace Data {
|
|
184
|
+
/**
|
|
185
|
+
* `ChunkMetadata` is backend metadata for a `Chunk` that is used to store
|
|
186
|
+
* additional information about the chunk that will not be used in the context
|
|
187
|
+
* during inference, but is required for backend functionality. The `ChunkMetadata`
|
|
188
|
+
* is set during chunk creation in `FileSearchToolRuntimeImpl().insert()`and is not
|
|
189
|
+
* expected to change after. Use `Chunk.metadata` for metadata that will be used in
|
|
190
|
+
* the context during inference.
|
|
191
|
+
*/
|
|
192
|
+
interface ChunkMetadata {
|
|
193
|
+
chunk_id?: string | null;
|
|
194
|
+
chunk_tokenizer?: string | null;
|
|
195
|
+
chunk_window?: string | null;
|
|
196
|
+
content_token_count?: number | null;
|
|
197
|
+
created_timestamp?: number | null;
|
|
198
|
+
document_id?: string | null;
|
|
199
|
+
metadata_token_count?: number | null;
|
|
200
|
+
source?: string | null;
|
|
201
|
+
updated_timestamp?: number | null;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
export interface FileCreateParams {
|
|
206
|
+
/**
|
|
207
|
+
* The ID of the file to attach.
|
|
208
|
+
*/
|
|
209
|
+
file_id: string;
|
|
210
|
+
/**
|
|
211
|
+
* Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
212
|
+
* for storing additional information about the object in a structured format, and
|
|
213
|
+
* querying for objects via API or the dashboard. Keys are strings with a maximum
|
|
214
|
+
* length of 64 characters. Values are strings with a maximum length of 512
|
|
215
|
+
* characters, booleans, or numbers.
|
|
216
|
+
*/
|
|
217
|
+
attributes?: {
|
|
218
|
+
[key: string]: string | number | boolean;
|
|
219
|
+
} | null;
|
|
220
|
+
/**
|
|
221
|
+
* Strategy for chunking the file content.
|
|
222
|
+
*/
|
|
223
|
+
chunking_strategy?: FileCreateParams.VectorStoreChunkingStrategyAuto | FileCreateParams.VectorStoreChunkingStrategyStatic | FileCreateParams.VectorStoreChunkingStrategyContextual | null;
|
|
224
|
+
}
|
|
225
|
+
export declare namespace FileCreateParams {
|
|
226
|
+
/**
|
|
227
|
+
* Automatic chunking strategy for vector store files.
|
|
228
|
+
*/
|
|
229
|
+
interface VectorStoreChunkingStrategyAuto {
|
|
230
|
+
type?: 'auto';
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Static chunking strategy with configurable parameters.
|
|
234
|
+
*/
|
|
235
|
+
interface VectorStoreChunkingStrategyStatic {
|
|
236
|
+
/**
|
|
237
|
+
* Configuration for static chunking strategy.
|
|
238
|
+
*/
|
|
239
|
+
static: VectorStoreChunkingStrategyStatic.Static;
|
|
240
|
+
type?: 'static';
|
|
241
|
+
}
|
|
242
|
+
namespace VectorStoreChunkingStrategyStatic {
|
|
243
|
+
/**
|
|
244
|
+
* Configuration for static chunking strategy.
|
|
245
|
+
*/
|
|
246
|
+
interface Static {
|
|
247
|
+
chunk_overlap_tokens?: number;
|
|
248
|
+
max_chunk_size_tokens?: number;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Contextual chunking strategy that uses an LLM to situate chunks within the
|
|
253
|
+
* document.
|
|
254
|
+
*/
|
|
255
|
+
interface VectorStoreChunkingStrategyContextual {
|
|
256
|
+
/**
|
|
257
|
+
* Configuration for contextual chunking.
|
|
258
|
+
*/
|
|
259
|
+
contextual: VectorStoreChunkingStrategyContextual.Contextual;
|
|
260
|
+
/**
|
|
261
|
+
* Strategy type identifier.
|
|
262
|
+
*/
|
|
263
|
+
type?: 'contextual';
|
|
264
|
+
}
|
|
265
|
+
namespace VectorStoreChunkingStrategyContextual {
|
|
266
|
+
/**
|
|
267
|
+
* Configuration for contextual chunking.
|
|
268
|
+
*/
|
|
269
|
+
interface Contextual {
|
|
270
|
+
/**
|
|
271
|
+
* Tokens to overlap between adjacent chunks. Must be less than
|
|
272
|
+
* max_chunk_size_tokens.
|
|
273
|
+
*/
|
|
274
|
+
chunk_overlap_tokens?: number;
|
|
275
|
+
/**
|
|
276
|
+
* Prompt template for contextual retrieval. Uses WHOLE_DOCUMENT and CHUNK_CONTENT
|
|
277
|
+
* placeholders wrapped in double curly braces.
|
|
278
|
+
*/
|
|
279
|
+
context_prompt?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Maximum tokens per chunk. Suggested ~700 to allow room for prepended context.
|
|
282
|
+
*/
|
|
283
|
+
max_chunk_size_tokens?: number;
|
|
284
|
+
/**
|
|
285
|
+
* Maximum concurrent LLM calls. Falls back to config default if not provided.
|
|
286
|
+
*/
|
|
287
|
+
max_concurrency?: number | null;
|
|
288
|
+
/**
|
|
289
|
+
* LLM model for generating context. Falls back to
|
|
290
|
+
* VectorStoresConfig.contextual_retrieval_params.model if not provided.
|
|
291
|
+
*/
|
|
292
|
+
model_id?: string | null;
|
|
293
|
+
/**
|
|
294
|
+
* Timeout per LLM call in seconds. Falls back to config default if not provided.
|
|
295
|
+
*/
|
|
296
|
+
timeout_seconds?: number | null;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
export interface FileUpdateParams {
|
|
301
|
+
/**
|
|
302
|
+
* The new attributes for the file.
|
|
303
|
+
*/
|
|
304
|
+
attributes: {
|
|
305
|
+
[key: string]: unknown;
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
export interface FileListParams extends OpenAICursorPageParams {
|
|
309
|
+
/**
|
|
310
|
+
* Pagination cursor (before).
|
|
311
|
+
*/
|
|
312
|
+
before?: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* Filter by file status.
|
|
315
|
+
*/
|
|
316
|
+
filter?: 'in_progress' | 'completed' | 'cancelled' | 'failed' | null;
|
|
317
|
+
/**
|
|
318
|
+
* Sort order by created_at: asc or desc.
|
|
319
|
+
*/
|
|
320
|
+
order?: string | null;
|
|
321
|
+
}
|
|
322
|
+
export interface FileContentParams {
|
|
323
|
+
/**
|
|
324
|
+
* Include embedding vectors.
|
|
325
|
+
*/
|
|
326
|
+
include_embeddings?: boolean | null;
|
|
327
|
+
/**
|
|
328
|
+
* Include chunk metadata.
|
|
329
|
+
*/
|
|
330
|
+
include_metadata?: boolean | null;
|
|
331
|
+
}
|
|
332
|
+
export declare namespace Files {
|
|
333
|
+
export { type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileContentResponse as FileContentResponse, VectorStoreFilesOpenAICursorPage as VectorStoreFilesOpenAICursorPage, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileContentParams as FileContentParams, };
|
|
334
|
+
}
|
|
335
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAEjF,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,gBAAgB,EACtB,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AAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,gCAAgC,IAAI,gCAAgC,EACpE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) The OGX Contributors.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.VectorStoreFilesOpenAICursorPage = exports.Files = void 0;
|
|
11
|
+
const resource_1 = require("../../resource.js");
|
|
12
|
+
const core_1 = require("../../core.js");
|
|
13
|
+
const pagination_1 = require("../../pagination.js");
|
|
14
|
+
class Files extends resource_1.APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Attach a file to a vector store (OpenAI-compatible).
|
|
17
|
+
*/
|
|
18
|
+
create(vectorStoreId, body, options) {
|
|
19
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/files`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve a vector store file (OpenAI-compatible).
|
|
23
|
+
*/
|
|
24
|
+
retrieve(vectorStoreId, fileId, options) {
|
|
25
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, options);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Update a vector store file (OpenAI-compatible).
|
|
29
|
+
*/
|
|
30
|
+
update(vectorStoreId, fileId, body, options) {
|
|
31
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
list(vectorStoreId, query = {}, options) {
|
|
34
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
35
|
+
return this.list(vectorStoreId, {}, query);
|
|
36
|
+
}
|
|
37
|
+
return this._client.getAPIList(`/v1/vector_stores/${vectorStoreId}/files`, VectorStoreFilesOpenAICursorPage, { query, ...options });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Delete a vector store file (OpenAI-compatible).
|
|
41
|
+
*/
|
|
42
|
+
delete(vectorStoreId, fileId, options) {
|
|
43
|
+
return this._client.delete(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, options);
|
|
44
|
+
}
|
|
45
|
+
content(vectorStoreId, fileId, query = {}, options) {
|
|
46
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
47
|
+
return this.content(vectorStoreId, fileId, {}, query);
|
|
48
|
+
}
|
|
49
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/files/${fileId}/content`, {
|
|
50
|
+
query,
|
|
51
|
+
...options,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Files = Files;
|
|
56
|
+
class VectorStoreFilesOpenAICursorPage extends pagination_1.OpenAICursorPage {
|
|
57
|
+
}
|
|
58
|
+
exports.VectorStoreFilesOpenAICursorPage = VectorStoreFilesOpenAICursorPage;
|
|
59
|
+
Files.VectorStoreFilesOpenAICursorPage = VectorStoreFilesOpenAICursorPage;
|
|
60
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,oDAAiF;AAEjF,MAAa,KAAM,S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AgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACvD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,aAAa,UAAU,MAAM,UAAU,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AArGD,sBAqGC;AAED,MAAa,gCAAiC,SAAQ,6BAAiC;CAAG;AAA1F,4EAA0F;AA8W1F,KAAK,CAAC,gCAAgC,GAAG,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Copyright (c) The OGX Contributors.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
import { APIResource } from "../../resource.mjs";
|
|
9
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
10
|
+
import { OpenAICursorPage } from "../../pagination.mjs";
|
|
11
|
+
export class Files extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Attach a file to a vector store (OpenAI-compatible).
|
|
14
|
+
*/
|
|
15
|
+
create(vectorStoreId, body, options) {
|
|
16
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/files`, { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a vector store file (OpenAI-compatible).
|
|
20
|
+
*/
|
|
21
|
+
retrieve(vectorStoreId, fileId, options) {
|
|
22
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, options);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Update a vector store file (OpenAI-compatible).
|
|
26
|
+
*/
|
|
27
|
+
update(vectorStoreId, fileId, body, options) {
|
|
28
|
+
return this._client.post(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
list(vectorStoreId, query = {}, options) {
|
|
31
|
+
if (isRequestOptions(query)) {
|
|
32
|
+
return this.list(vectorStoreId, {}, query);
|
|
33
|
+
}
|
|
34
|
+
return this._client.getAPIList(`/v1/vector_stores/${vectorStoreId}/files`, VectorStoreFilesOpenAICursorPage, { query, ...options });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Delete a vector store file (OpenAI-compatible).
|
|
38
|
+
*/
|
|
39
|
+
delete(vectorStoreId, fileId, options) {
|
|
40
|
+
return this._client.delete(`/v1/vector_stores/${vectorStoreId}/files/${fileId}`, options);
|
|
41
|
+
}
|
|
42
|
+
content(vectorStoreId, fileId, query = {}, options) {
|
|
43
|
+
if (isRequestOptions(query)) {
|
|
44
|
+
return this.content(vectorStoreId, fileId, {}, query);
|
|
45
|
+
}
|
|
46
|
+
return this._client.get(`/v1/vector_stores/${vectorStoreId}/files/${fileId}/content`, {
|
|
47
|
+
query,
|
|
48
|
+
...options,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export class VectorStoreFilesOpenAICursorPage extends OpenAICursorPage {
|
|
53
|
+
}
|
|
54
|
+
Files.VectorStoreFilesOpenAICursorPage = VectorStoreFilesOpenAICursorPage;
|
|
55
|
+
//# sourceMappingURL=files.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,gBAAgB,EAA+B;AAExD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;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AO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACvD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,aAAa,UAAU,MAAM,UAAU,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,gCAAiC,SAAQ,gBAAiC;CAAG;AA8W1F,KAAK,CAAC,gCAAgC,GAAG,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { FileBatches, type ListVectorStoreFilesInBatchResponse, type VectorStoreFileBatches, type FileBatchCreateParams, type FileBatchListFilesParams, } from "./file-batches.js";
|
|
2
|
+
export { VectorStoreFilesOpenAICursorPage, Files, type VectorStoreFile, type FileDeleteResponse, type FileContentResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, type FileContentParams, } from "./files.js";
|
|
3
|
+
export { VectorStoresOpenAICursorPage, VectorStores, type ListVectorStoresResponse, type VectorStore, type VectorStoreDeleteResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreSearchParams, } from "./vector-stores.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,WAAW,EACX,KAAK,mCAAmC,EACxC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gCAAgC,EAChC,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) The OGX Contributors.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
+
// the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.VectorStores = exports.VectorStoresOpenAICursorPage = exports.Files = exports.VectorStoreFilesOpenAICursorPage = exports.FileBatches = void 0;
|
|
11
|
+
var file_batches_1 = require("./file-batches.js");
|
|
12
|
+
Object.defineProperty(exports, "FileBatches", { enumerable: true, get: function () { return file_batches_1.FileBatches; } });
|
|
13
|
+
var files_1 = require("./files.js");
|
|
14
|
+
Object.defineProperty(exports, "VectorStoreFilesOpenAICursorPage", { enumerable: true, get: function () { return files_1.VectorStoreFilesOpenAICursorPage; } });
|
|
15
|
+
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
|
|
16
|
+
var vector_stores_1 = require("./vector-stores.js");
|
|
17
|
+
Object.defineProperty(exports, "VectorStoresOpenAICursorPage", { enumerable: true, get: function () { return vector_stores_1.VectorStoresOpenAICursorPage; } });
|
|
18
|
+
Object.defineProperty(exports, "VectorStores", { enumerable: true, get: function () { return vector_stores_1.VectorStores; } });
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,kDAMwB;AALtB,2GAAA,WAAW,OAAA;AAMb,oCAUiB;AATf,yHAAA,gCAAgC,OAAA;AAChC,8FAAA,KAAK,OAAA;AASP,oDAWyB;AAVvB,6HAAA,4BAA4B,OAAA;AAC5B,6GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) The OGX Contributors.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
+
// the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
+
export { FileBatches, } from "./file-batches.mjs";
|
|
9
|
+
export { VectorStoreFilesOpenAICursorPage, Files, } from "./files.mjs";
|
|
10
|
+
export { VectorStoresOpenAICursorPage, VectorStores, } from "./vector-stores.mjs";
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EACL,WAAW,GAKZ;OACM,EACL,gCAAgC,EAChC,KAAK,GAQN;OACM,EACL,4BAA4B,EAC5B,YAAY,GASb"}
|