@songtonyli/dsh-cli 0.1.55 → 0.1.57
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/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.js +17 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.js +60 -41
- package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +2 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +9 -6
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +30 -12
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +3 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +3 -4
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.js +31 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +53 -5
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +27 -5
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +5 -3
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/any_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/api_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/google/protobuf/c_sharp_features_pb.js +33 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/compiler/plugin_pb.js +3 -3
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/cpp_features_pb.js +34 -6
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/google/protobuf/cpp_file_options_pb.js +33 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/google/protobuf/cpp_options_pb.js +22 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/descriptor_pb.js +49 -6
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/duration_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/empty_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/field_mask_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/go_features_pb.js +4 -4
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/java_features_pb.js +4 -4
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/google/protobuf/json_enumvalue_options_pb.js +33 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/google/protobuf/json_options_pb.js +22 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/source_context_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/struct_pb.js +11 -6
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/timestamp_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/type_pb.js +3 -3
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/{gen/google → google}/protobuf/wrappers_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.js +15 -15
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +18 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +60 -41
- package/node_modules/@bufbuild/protobuf/dist/esm/create.js +2 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +10 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +31 -13
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +3 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +4 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +3 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +29 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +53 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +28 -6
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +5 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/any_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/api_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/c_sharp_features_pb.js +30 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/compiler/plugin_pb.js +3 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/cpp_features_pb.js +33 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/cpp_file_options_pb.js +30 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/cpp_options_pb.js +19 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/descriptor_pb.js +47 -4
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/duration_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/empty_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/field_mask_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/go_features_pb.js +4 -4
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/java_features_pb.js +4 -4
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/json_enumvalue_options_pb.js +30 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/json_options_pb.js +19 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/source_context_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/struct_pb.js +11 -6
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/timestamp_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/type_pb.js +3 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/{gen/google → google}/protobuf/wrappers_pb.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +15 -15
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +1 -1
- package/node_modules/@bufbuild/protobuf/package.json +236 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -182
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +15 -4
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +15 -4
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +692 -43
- package/node_modules/@earendil-works/pi-ai/README.md +207 -27
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +6 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-workers-ai-system-one.js +43 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-workers-ai-system-one.lazy.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/llama-cpp-classify.js +365 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/llama-cpp-classify.lazy.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +18 -17
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +20 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +14 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +26 -9
- package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +2 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/system-one-shared.js +183 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/typesafe-system-one.js +19 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/typesafe-system-one.lazy.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js +19 -128
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/callback-server.js +146 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +5 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-chatgpt.js +266 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js +20 -124
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +19 -138
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +21 -89
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +3 -19
- package/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/cli.js +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.js +14 -13
- package/node_modules/@earendil-works/pi-ai/dist/images.js +5 -0
- package/node_modules/@earendil-works/pi-ai/dist/index.js +0 -1
- package/node_modules/@earendil-works/pi-ai/dist/model-catalog.js +14 -2
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +131 -41
- package/node_modules/@earendil-works/pi-ai/dist/models.js +157 -30
- package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +25 -21
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js +10 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/typesafe.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai.js +11 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +5 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js +11 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/typesafe.js +18 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/typesafe.models.js +8 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js +5 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/headers.js +10 -8
- package/node_modules/@earendil-works/pi-ai/dist/utils/model-operations.js +47 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/models-error.js +19 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +7 -0
- package/node_modules/@earendil-works/pi-ai/package.json +4 -4
- package/node_modules/@earendil-works/pi-telemetry/package.json +2 -2
- package/node_modules/openai/CHANGELOG.md +1089 -1
- package/node_modules/openai/README.md +201 -102
- package/node_modules/openai/_vendor/partial-json-parser/parser.js +55 -38
- package/node_modules/openai/_vendor/partial-json-parser/parser.mjs +55 -38
- package/node_modules/openai/_vendor/zod-to-json-schema/Options.js +11 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/Options.mjs +11 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/Refs.js +4 -4
- package/node_modules/openai/_vendor/zod-to-json-schema/Refs.mjs +4 -4
- package/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.js +2 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.mjs +2 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/index.js +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/index.mjs +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.js +139 -54
- package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.mjs +139 -54
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs +1 -1
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js +10 -4
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs +10 -4
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js +1 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs +1 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js +10 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs +10 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js +6 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs +6 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js +5 -0
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs +5 -0
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.js +7 -9
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs +7 -9
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js +3 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.mjs +3 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js +8 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.mjs +8 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.js +12 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.mjs +12 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.js +43 -38
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.mjs +43 -38
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.js +11 -12
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.mjs +11 -12
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.js +3 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.mjs +3 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.js +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.mjs +2 -2
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.js +1 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.mjs +1 -3
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.js +7 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.mjs +7 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.js +57 -34
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.mjs +57 -34
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.js +24 -19
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.mjs +24 -19
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.js +46 -24
- package/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.mjs +46 -24
- package/node_modules/openai/_vendor/zod-to-json-schema/util.js +7 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/util.mjs +7 -5
- package/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.js +110 -38
- package/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +110 -38
- package/node_modules/openai/auth/subject-token-providers.js +235 -10
- package/node_modules/openai/auth/subject-token-providers.mjs +235 -10
- package/node_modules/openai/auth/workload-identity-auth.js +185 -24
- package/node_modules/openai/auth/workload-identity-auth.mjs +186 -25
- package/node_modules/openai/auth/x509-transport.js +273 -0
- package/node_modules/openai/auth/x509-transport.mjs +268 -0
- package/node_modules/openai/azure.js +74 -21
- package/node_modules/openai/azure.mjs +75 -22
- package/node_modules/openai/bedrock.js +174 -0
- package/node_modules/openai/bedrock.mjs +169 -0
- package/node_modules/openai/beta/realtime/internal-base.js +71 -10
- package/node_modules/openai/beta/realtime/internal-base.mjs +70 -10
- package/node_modules/openai/beta/realtime/websocket.js +180 -33
- package/node_modules/openai/beta/realtime/websocket.mjs +181 -34
- package/node_modules/openai/beta/realtime/ws.js +93 -14
- package/node_modules/openai/beta/realtime/ws.mjs +94 -15
- package/node_modules/openai/client.js +745 -99
- package/node_modules/openai/client.mjs +747 -101
- package/node_modules/openai/core/EventEmitter.js +127 -16
- package/node_modules/openai/core/EventEmitter.mjs +128 -17
- package/node_modules/openai/core/api-promise.js +0 -1
- package/node_modules/openai/core/api-promise.mjs +0 -1
- package/node_modules/openai/core/error.js +5 -5
- package/node_modules/openai/core/error.mjs +5 -5
- package/node_modules/openai/core/pagination.js +33 -3
- package/node_modules/openai/core/pagination.mjs +31 -2
- package/node_modules/openai/core/resource.js +0 -1
- package/node_modules/openai/core/resource.mjs +0 -1
- package/node_modules/openai/core/streaming.js +453 -88
- package/node_modules/openai/core/streaming.mjs +454 -89
- package/node_modules/openai/core/uploads.js +3 -1
- package/node_modules/openai/core/uploads.mjs +1 -0
- package/node_modules/openai/helpers/audio.js +198 -28
- package/node_modules/openai/helpers/audio.mjs +199 -29
- package/node_modules/openai/helpers/live.js +6 -0
- package/node_modules/openai/helpers/live.mjs +2 -0
- package/node_modules/openai/helpers/standard-schema.js +393 -0
- package/node_modules/openai/helpers/standard-schema.mjs +387 -0
- package/node_modules/openai/helpers/zod-v3-strict-schema.js +408 -0
- package/node_modules/openai/helpers/zod-v3-strict-schema.mjs +404 -0
- package/node_modules/openai/helpers/zod.js +221 -24
- package/node_modules/openai/helpers/zod.mjs +222 -26
- package/node_modules/openai/index.js +8 -7
- package/node_modules/openai/index.mjs +2 -2
- package/node_modules/openai/internal/assistant-stream-delta.js +316 -0
- package/node_modules/openai/internal/assistant-stream-delta.mjs +308 -0
- package/node_modules/openai/internal/auth/x509-api-origin.js +28 -0
- package/node_modules/openai/internal/auth/x509-api-origin.mjs +24 -0
- package/node_modules/openai/internal/auth/x509-credential-options.js +125 -0
- package/node_modules/openai/internal/auth/x509-credential-options.mjs +121 -0
- package/node_modules/openai/internal/auth/x509-token-exchange.js +248 -0
- package/node_modules/openai/internal/auth/x509-token-exchange.mjs +245 -0
- package/node_modules/openai/internal/auth/x509-transport-capability.js +171 -0
- package/node_modules/openai/internal/auth/x509-transport-capability.mjs +166 -0
- package/node_modules/openai/internal/auth/x509-transport-registry.js +53 -0
- package/node_modules/openai/internal/auth/x509-transport-registry.mjs +48 -0
- package/node_modules/openai/internal/auth/x509-transport-state-browser.js +35 -0
- package/node_modules/openai/internal/auth/x509-transport-state-browser.mjs +32 -0
- package/node_modules/openai/internal/auth/x509-transport-state.cjs +35 -0
- package/node_modules/openai/internal/auth/x509-transport-state.js +36 -0
- package/node_modules/openai/internal/auth/x509-transport-state.mjs +20 -0
- package/node_modules/openai/internal/auth/x509-workload-identity-auth.js +787 -0
- package/node_modules/openai/internal/auth/x509-workload-identity-auth.mjs +778 -0
- package/node_modules/openai/internal/bedrock.js +438 -0
- package/node_modules/openai/internal/bedrock.mjs +424 -0
- package/node_modules/openai/internal/builtin-types.js +0 -1
- package/node_modules/openai/internal/builtin-types.mjs +0 -1
- package/node_modules/openai/internal/data-residency.js +34 -0
- package/node_modules/openai/internal/data-residency.mjs +30 -0
- package/node_modules/openai/internal/decoders/line.js +140 -54
- package/node_modules/openai/internal/decoders/line.mjs +141 -55
- package/node_modules/openai/internal/detect-platform.js +3 -4
- package/node_modules/openai/internal/detect-platform.mjs +3 -4
- package/node_modules/openai/internal/errors.js +3 -3
- package/node_modules/openai/internal/errors.mjs +3 -3
- package/node_modules/openai/internal/headers.js +11 -9
- package/node_modules/openai/internal/headers.mjs +11 -9
- package/node_modules/openai/internal/multipart-encoding.js +51 -0
- package/node_modules/openai/internal/multipart-encoding.mjs +48 -0
- package/node_modules/openai/internal/parse.js +35 -11
- package/node_modules/openai/internal/parse.mjs +35 -11
- package/node_modules/openai/internal/provider.js +50 -0
- package/node_modules/openai/internal/provider.mjs +46 -0
- package/node_modules/openai/internal/qs/formats.js +1 -2
- package/node_modules/openai/internal/qs/formats.mjs +1 -1
- package/node_modules/openai/internal/qs/stringify.js +60 -51
- package/node_modules/openai/internal/qs/stringify.mjs +60 -51
- package/node_modules/openai/internal/qs/utils.js +368 -50
- package/node_modules/openai/internal/qs/utils.mjs +368 -50
- package/node_modules/openai/internal/realtime-credentials.js +23 -0
- package/node_modules/openai/internal/realtime-credentials.mjs +19 -0
- package/node_modules/openai/internal/request-options.js +43 -2
- package/node_modules/openai/internal/request-options.mjs +42 -2
- package/node_modules/openai/internal/responses/canonical-output-text.js +123 -0
- package/node_modules/openai/internal/responses/canonical-output-text.mjs +115 -0
- package/node_modules/openai/internal/responses/output-text-index.js +77 -0
- package/node_modules/openai/internal/responses/output-text-index.mjs +73 -0
- package/node_modules/openai/internal/responses/response-accumulator.js +942 -0
- package/node_modules/openai/internal/responses/response-accumulator.mjs +938 -0
- package/node_modules/openai/internal/shim-types.js +6 -1
- package/node_modules/openai/internal/shim-types.mjs +6 -1
- package/node_modules/openai/internal/shims.js +6 -1
- package/node_modules/openai/internal/shims.mjs +6 -1
- package/node_modules/openai/internal/stream-utils.js +35 -7
- package/node_modules/openai/internal/stream-utils.mjs +35 -7
- package/node_modules/openai/internal/to-file.js +47 -24
- package/node_modules/openai/internal/to-file.mjs +47 -24
- package/node_modules/openai/internal/tslib.js +6 -0
- package/node_modules/openai/internal/tslib.mjs +6 -1
- package/node_modules/openai/internal/types.js +0 -1
- package/node_modules/openai/internal/types.mjs +0 -1
- package/node_modules/openai/internal/uploads.js +377 -43
- package/node_modules/openai/internal/uploads.mjs +376 -44
- package/node_modules/openai/internal/utils/abort.js +94 -0
- package/node_modules/openai/internal/utils/abort.mjs +90 -0
- package/node_modules/openai/internal/utils/base64.js +3 -1
- package/node_modules/openai/internal/utils/base64.mjs +3 -1
- package/node_modules/openai/internal/utils/bytes.js +5 -0
- package/node_modules/openai/internal/utils/bytes.mjs +5 -0
- package/node_modules/openai/internal/utils/env.js +9 -5
- package/node_modules/openai/internal/utils/env.mjs +9 -5
- package/node_modules/openai/internal/utils/log.js +73 -11
- package/node_modules/openai/internal/utils/log.mjs +70 -11
- package/node_modules/openai/internal/utils/path.js +50 -30
- package/node_modules/openai/internal/utils/path.mjs +50 -30
- package/node_modules/openai/internal/utils/query.js +0 -1
- package/node_modules/openai/internal/utils/query.mjs +0 -1
- package/node_modules/openai/internal/utils/sleep.js +51 -2
- package/node_modules/openai/internal/utils/sleep.mjs +51 -2
- package/node_modules/openai/internal/utils/uuid.js +0 -1
- package/node_modules/openai/internal/utils/uuid.mjs +0 -1
- package/node_modules/openai/internal/utils/values.js +0 -1
- package/node_modules/openai/internal/utils/values.mjs +0 -1
- package/node_modules/openai/internal/utils.js +0 -1
- package/node_modules/openai/internal/utils.mjs +0 -1
- package/node_modules/openai/internal/ws-adapter-browser.js +66 -21
- package/node_modules/openai/internal/ws-adapter-browser.mjs +66 -21
- package/node_modules/openai/internal/ws-adapter-node.js +90 -24
- package/node_modules/openai/internal/ws-adapter-node.mjs +90 -24
- package/node_modules/openai/internal/ws-adapter.js +4 -0
- package/node_modules/openai/internal/ws-adapter.mjs +4 -0
- package/node_modules/openai/internal/ws.js +193 -48
- package/node_modules/openai/internal/ws.mjs +188 -49
- package/node_modules/openai/lib/AbstractChatCompletionRunner.js +254 -72
- package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +256 -74
- package/node_modules/openai/lib/AssistantStream.js +430 -259
- package/node_modules/openai/lib/AssistantStream.mjs +432 -261
- package/node_modules/openai/lib/ChatCompletionRunner.js +12 -5
- package/node_modules/openai/lib/ChatCompletionRunner.mjs +13 -6
- package/node_modules/openai/lib/ChatCompletionStream.js +1430 -189
- package/node_modules/openai/lib/ChatCompletionStream.mjs +1433 -193
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.js +40 -2
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +41 -3
- package/node_modules/openai/lib/EventEmitter.js +124 -16
- package/node_modules/openai/lib/EventEmitter.mjs +125 -17
- package/node_modules/openai/lib/EventStream.js +1533 -55
- package/node_modules/openai/lib/EventStream.mjs +1534 -56
- package/node_modules/openai/lib/ResponsesParser.js +68 -29
- package/node_modules/openai/lib/ResponsesParser.mjs +69 -30
- package/node_modules/openai/lib/RunnableFunction.js +3 -0
- package/node_modules/openai/lib/RunnableFunction.mjs +3 -0
- package/node_modules/openai/lib/Util.js +7 -4
- package/node_modules/openai/lib/Util.mjs +7 -4
- package/node_modules/openai/lib/agents/agent-session-stream.js +274 -0
- package/node_modules/openai/lib/agents/agent-session-stream.mjs +270 -0
- package/node_modules/openai/lib/agents/output-text.js +8 -0
- package/node_modules/openai/lib/agents/output-text.mjs +5 -0
- package/node_modules/openai/lib/agents/turn-state.js +62 -0
- package/node_modules/openai/lib/agents/turn-state.mjs +58 -0
- package/node_modules/openai/lib/assistant-run-polling.js +17 -0
- package/node_modules/openai/lib/assistant-run-polling.mjs +14 -0
- package/node_modules/openai/lib/chatCompletionUtils.js +5 -6
- package/node_modules/openai/lib/chatCompletionUtils.mjs +5 -6
- package/node_modules/openai/lib/embeddings.js +58 -0
- package/node_modules/openai/lib/embeddings.mjs +55 -0
- package/node_modules/openai/lib/file-processing.js +31 -0
- package/node_modules/openai/lib/file-processing.mjs +28 -0
- package/node_modules/openai/lib/live/transcript-grouper.js +229 -0
- package/node_modules/openai/lib/live/transcript-grouper.mjs +225 -0
- package/node_modules/openai/lib/live/transcript-grouping.js +309 -0
- package/node_modules/openai/lib/live/transcript-grouping.mjs +305 -0
- package/node_modules/openai/lib/live/webrtc.js +16 -0
- package/node_modules/openai/lib/live/webrtc.mjs +10 -0
- package/node_modules/openai/lib/parser.js +142 -42
- package/node_modules/openai/lib/parser.mjs +140 -42
- package/node_modules/openai/lib/polling.js +131 -0
- package/node_modules/openai/lib/polling.mjs +128 -0
- package/node_modules/openai/lib/realtime/webrtc.js +16 -0
- package/node_modules/openai/lib/realtime/webrtc.mjs +10 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.js +15 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.mjs +12 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.js +139 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.mjs +135 -0
- package/node_modules/openai/lib/responses/ResponseStream.js +85 -159
- package/node_modules/openai/lib/responses/ResponseStream.mjs +86 -160
- package/node_modules/openai/lib/responses/responses-websocket-lane.js +314 -0
- package/node_modules/openai/lib/responses/responses-websocket-lane.mjs +309 -0
- package/node_modules/openai/lib/responses/responses-websocket-session.js +268 -0
- package/node_modules/openai/lib/responses/responses-websocket-session.mjs +263 -0
- package/node_modules/openai/lib/transform.js +1608 -82
- package/node_modules/openai/lib/transform.mjs +1602 -82
- package/node_modules/openai/lib/vector-store-polling.js +24 -0
- package/node_modules/openai/lib/vector-store-polling.mjs +20 -0
- package/node_modules/openai/lib/vector-store-upload.js +41 -0
- package/node_modules/openai/lib/vector-store-upload.mjs +38 -0
- package/node_modules/openai/lib/webhook-signature.js +125 -0
- package/node_modules/openai/lib/webhook-signature.mjs +121 -0
- package/node_modules/openai/lib/webrtc/connection.js +233 -0
- package/node_modules/openai/lib/webrtc/connection.mjs +229 -0
- package/node_modules/openai/lib/webrtc/data-channel.js +133 -0
- package/node_modules/openai/lib/webrtc/data-channel.mjs +129 -0
- package/node_modules/openai/lib/webrtc/errors.js +18 -0
- package/node_modules/openai/lib/webrtc/errors.mjs +14 -0
- package/node_modules/openai/lib/webrtc/subscriptions.js +64 -0
- package/node_modules/openai/lib/webrtc/subscriptions.mjs +60 -0
- package/node_modules/openai/lib/webrtc/types.js +3 -0
- package/node_modules/openai/lib/webrtc/types.mjs +2 -0
- package/node_modules/openai/live/webrtc.js +8 -0
- package/node_modules/openai/live/webrtc.mjs +2 -0
- package/node_modules/openai/package.json +71 -11
- package/node_modules/openai/providers/bedrock/aws.js +211 -0
- package/node_modules/openai/providers/bedrock/aws.mjs +207 -0
- package/node_modules/openai/providers/bedrock.js +43 -0
- package/node_modules/openai/providers/bedrock.mjs +39 -0
- package/node_modules/openai/realtime/internal-base.js +118 -11
- package/node_modules/openai/realtime/internal-base.mjs +116 -11
- package/node_modules/openai/realtime/webrtc.js +8 -0
- package/node_modules/openai/realtime/webrtc.mjs +2 -0
- package/node_modules/openai/realtime/websocket.js +174 -39
- package/node_modules/openai/realtime/websocket.mjs +175 -40
- package/node_modules/openai/realtime/ws.js +86 -18
- package/node_modules/openai/realtime/ws.mjs +87 -19
- package/node_modules/openai/resources/admin/admin.js +1 -1
- package/node_modules/openai/resources/admin/admin.mjs +1 -1
- package/node_modules/openai/resources/admin/index.js +1 -1
- package/node_modules/openai/resources/admin/index.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/admin-api-keys.js +1 -1
- package/node_modules/openai/resources/admin/organization/admin-api-keys.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/audit-logs.js +1 -1
- package/node_modules/openai/resources/admin/organization/audit-logs.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/certificates.js +1 -1
- package/node_modules/openai/resources/admin/organization/certificates.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/data-retention.js +1 -1
- package/node_modules/openai/resources/admin/organization/data-retention.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/groups/groups.js +1 -1
- package/node_modules/openai/resources/admin/organization/groups/groups.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/groups/index.js +1 -1
- package/node_modules/openai/resources/admin/organization/groups/index.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/groups/roles.js +1 -1
- package/node_modules/openai/resources/admin/organization/groups/roles.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/groups/users.js +1 -1
- package/node_modules/openai/resources/admin/organization/groups/users.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/groups.js +1 -1
- package/node_modules/openai/resources/admin/organization/groups.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/index.js +4 -2
- package/node_modules/openai/resources/admin/organization/index.mjs +2 -1
- package/node_modules/openai/resources/admin/organization/invites.js +1 -1
- package/node_modules/openai/resources/admin/organization/invites.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/organization.js +5 -1
- package/node_modules/openai/resources/admin/organization/organization.mjs +5 -1
- package/node_modules/openai/resources/admin/organization/projects/api-keys.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/api-keys.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/certificates.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/certificates.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/data-retention.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/data-retention.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/groups/groups.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/groups/groups.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/groups/index.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/groups/index.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/groups/roles.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/groups/roles.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/groups.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/groups.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.js +8 -6
- package/node_modules/openai/resources/admin/organization/projects/index.mjs +3 -2
- package/node_modules/openai/resources/admin/organization/projects/model-permissions.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/model-permissions.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.js +7 -3
- package/node_modules/openai/resources/admin/organization/projects/projects.mjs +7 -3
- package/node_modules/openai/resources/admin/organization/projects/rate-limits.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/rate-limits.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/roles.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/roles.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js +9 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.js +3 -98
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs +2 -96
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +20 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.mjs +20 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.js +67 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.mjs +63 -0
- package/node_modules/openai/resources/admin/organization/projects/users/index.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/users/index.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/users/roles.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/users/roles.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/users/users.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/users/users.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects/users.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects/users.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/projects.js +1 -1
- package/node_modules/openai/resources/admin/organization/projects.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/roles.js +1 -1
- package/node_modules/openai/resources/admin/organization/roles.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/spend-alerts.js +18 -1
- package/node_modules/openai/resources/admin/organization/spend-alerts.mjs +18 -1
- package/node_modules/openai/resources/admin/organization/spend-limit.js +59 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.mjs +55 -0
- package/node_modules/openai/resources/admin/organization/usage.js +1 -1
- package/node_modules/openai/resources/admin/organization/usage.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/users/index.js +1 -1
- package/node_modules/openai/resources/admin/organization/users/index.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/users/roles.js +1 -1
- package/node_modules/openai/resources/admin/organization/users/roles.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/users/users.js +1 -1
- package/node_modules/openai/resources/admin/organization/users/users.mjs +1 -1
- package/node_modules/openai/resources/admin/organization/users.js +1 -1
- package/node_modules/openai/resources/admin/organization/users.mjs +1 -1
- package/node_modules/openai/resources/admin/organization.js +1 -1
- package/node_modules/openai/resources/admin/organization.mjs +1 -1
- package/node_modules/openai/resources/admin.js +1 -1
- package/node_modules/openai/resources/admin.mjs +1 -1
- package/node_modules/openai/resources/audio/audio.js +1 -1
- package/node_modules/openai/resources/audio/audio.mjs +1 -1
- package/node_modules/openai/resources/audio/index.js +1 -1
- package/node_modules/openai/resources/audio/index.mjs +1 -1
- package/node_modules/openai/resources/audio/speech.js +1 -1
- package/node_modules/openai/resources/audio/speech.mjs +1 -1
- package/node_modules/openai/resources/audio/transcriptions.js +1 -1
- package/node_modules/openai/resources/audio/transcriptions.mjs +1 -1
- package/node_modules/openai/resources/audio/translations.js +1 -1
- package/node_modules/openai/resources/audio/translations.mjs +1 -1
- package/node_modules/openai/resources/audio.js +1 -1
- package/node_modules/openai/resources/audio.mjs +1 -1
- package/node_modules/openai/resources/batches.js +1 -1
- package/node_modules/openai/resources/batches.mjs +1 -1
- package/node_modules/openai/resources/beta/agents/agents.js +118 -0
- package/node_modules/openai/resources/beta/agents/agents.mjs +113 -0
- package/node_modules/openai/resources/beta/agents/environments/environments.js +43 -0
- package/node_modules/openai/resources/beta/agents/environments/environments.mjs +38 -0
- package/node_modules/openai/resources/beta/agents/environments/files.js +61 -0
- package/node_modules/openai/resources/beta/agents/environments/files.mjs +57 -0
- package/node_modules/openai/resources/beta/agents/environments/index.js +11 -0
- package/node_modules/openai/resources/beta/agents/environments/index.mjs +5 -0
- package/node_modules/openai/resources/beta/agents/environments/templates.js +112 -0
- package/node_modules/openai/resources/beta/agents/environments/templates.mjs +108 -0
- package/node_modules/openai/resources/beta/agents/environments.js +6 -0
- package/node_modules/openai/resources/beta/agents/environments.mjs +3 -0
- package/node_modules/openai/resources/beta/agents/index.js +13 -0
- package/node_modules/openai/resources/beta/agents/index.mjs +6 -0
- package/node_modules/openai/resources/beta/agents/sessions/artifacts.js +106 -0
- package/node_modules/openai/resources/beta/agents/sessions/artifacts.mjs +102 -0
- package/node_modules/openai/resources/beta/agents/sessions/events.js +75 -0
- package/node_modules/openai/resources/beta/agents/sessions/events.mjs +71 -0
- package/node_modules/openai/resources/beta/agents/sessions/index.js +17 -0
- package/node_modules/openai/resources/beta/agents/sessions/index.mjs +8 -0
- package/node_modules/openai/resources/beta/agents/sessions/items.js +35 -0
- package/node_modules/openai/resources/beta/agents/sessions/items.mjs +31 -0
- package/node_modules/openai/resources/beta/agents/sessions/sessions.js +127 -0
- package/node_modules/openai/resources/beta/agents/sessions/sessions.mjs +122 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/index.js +11 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/index.mjs +5 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/items.js +36 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/items.mjs +32 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/subagents.js +67 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/subagents.mjs +62 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/index.js +9 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/index.mjs +4 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/items.js +36 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/items.mjs +32 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/turns.js +68 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/turns.mjs +63 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/turns.js +6 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents/turns.mjs +3 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents.js +6 -0
- package/node_modules/openai/resources/beta/agents/sessions/subagents.mjs +3 -0
- package/node_modules/openai/resources/beta/agents/sessions/turns.js +57 -0
- package/node_modules/openai/resources/beta/agents/sessions/turns.mjs +53 -0
- package/node_modules/openai/resources/beta/agents/sessions.js +6 -0
- package/node_modules/openai/resources/beta/agents/sessions.mjs +3 -0
- package/node_modules/openai/resources/beta/agents/vaults/credentials.js +132 -0
- package/node_modules/openai/resources/beta/agents/vaults/credentials.mjs +128 -0
- package/node_modules/openai/resources/beta/agents/vaults/index.js +9 -0
- package/node_modules/openai/resources/beta/agents/vaults/index.mjs +4 -0
- package/node_modules/openai/resources/beta/agents/vaults/vaults.js +93 -0
- package/node_modules/openai/resources/beta/agents/vaults/vaults.mjs +88 -0
- package/node_modules/openai/resources/beta/agents/vaults.js +6 -0
- package/node_modules/openai/resources/beta/agents/vaults.mjs +3 -0
- package/node_modules/openai/resources/beta/agents.js +6 -0
- package/node_modules/openai/resources/beta/agents.mjs +3 -0
- package/node_modules/openai/resources/beta/assistants.js +1 -1
- package/node_modules/openai/resources/beta/assistants.mjs +1 -1
- package/node_modules/openai/resources/beta/beta.js +9 -1
- package/node_modules/openai/resources/beta/beta.mjs +9 -1
- package/node_modules/openai/resources/beta/chatkit/chatkit.js +1 -1
- package/node_modules/openai/resources/beta/chatkit/chatkit.mjs +1 -1
- package/node_modules/openai/resources/beta/chatkit/index.js +1 -1
- package/node_modules/openai/resources/beta/chatkit/index.mjs +1 -1
- package/node_modules/openai/resources/beta/chatkit/sessions.js +1 -1
- package/node_modules/openai/resources/beta/chatkit/sessions.mjs +1 -1
- package/node_modules/openai/resources/beta/chatkit/threads.js +1 -1
- package/node_modules/openai/resources/beta/chatkit/threads.mjs +1 -1
- package/node_modules/openai/resources/beta/chatkit.js +1 -1
- package/node_modules/openai/resources/beta/chatkit.mjs +1 -1
- package/node_modules/openai/resources/beta/index.js +12 -8
- package/node_modules/openai/resources/beta/index.mjs +3 -1
- package/node_modules/openai/resources/beta/realtime/index.js +0 -1
- package/node_modules/openai/resources/beta/realtime/index.mjs +0 -1
- package/node_modules/openai/resources/beta/realtime/realtime.js +0 -1
- package/node_modules/openai/resources/beta/realtime/realtime.mjs +0 -1
- package/node_modules/openai/resources/beta/realtime/sessions.js +0 -1
- package/node_modules/openai/resources/beta/realtime/sessions.mjs +0 -1
- package/node_modules/openai/resources/beta/realtime/transcription-sessions.js +0 -1
- package/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs +0 -1
- package/node_modules/openai/resources/beta/realtime.js +0 -1
- package/node_modules/openai/resources/beta/realtime.mjs +0 -1
- package/node_modules/openai/resources/beta/responses/index.js +11 -0
- package/node_modules/openai/resources/beta/responses/index.mjs +5 -0
- package/node_modules/openai/resources/beta/responses/input-items.js +37 -0
- package/node_modules/openai/resources/beta/responses/input-items.mjs +33 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.js +34 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.mjs +30 -0
- package/node_modules/openai/resources/beta/responses/internal-base.js +66 -0
- package/node_modules/openai/resources/beta/responses/internal-base.mjs +60 -0
- package/node_modules/openai/resources/beta/responses/responses.js +121 -0
- package/node_modules/openai/resources/beta/responses/responses.mjs +116 -0
- package/node_modules/openai/resources/beta/responses/ws-base.js +566 -0
- package/node_modules/openai/resources/beta/responses/ws-base.mjs +560 -0
- package/node_modules/openai/resources/beta/responses/ws.js +47 -0
- package/node_modules/openai/resources/beta/responses/ws.mjs +42 -0
- package/node_modules/openai/resources/beta/responses.js +6 -0
- package/node_modules/openai/resources/beta/responses.mjs +3 -0
- package/node_modules/openai/resources/beta/threads/index.js +1 -1
- package/node_modules/openai/resources/beta/threads/index.mjs +1 -1
- package/node_modules/openai/resources/beta/threads/messages.js +1 -1
- package/node_modules/openai/resources/beta/threads/messages.mjs +1 -1
- package/node_modules/openai/resources/beta/threads/runs/index.js +1 -1
- package/node_modules/openai/resources/beta/threads/runs/index.mjs +1 -1
- package/node_modules/openai/resources/beta/threads/runs/runs.js +3 -44
- package/node_modules/openai/resources/beta/threads/runs/runs.mjs +3 -44
- package/node_modules/openai/resources/beta/threads/runs/steps.js +1 -1
- package/node_modules/openai/resources/beta/threads/runs/steps.mjs +1 -1
- package/node_modules/openai/resources/beta/threads/runs.js +1 -1
- package/node_modules/openai/resources/beta/threads/runs.mjs +1 -1
- package/node_modules/openai/resources/beta/threads/threads.js +1 -1
- package/node_modules/openai/resources/beta/threads/threads.mjs +1 -1
- package/node_modules/openai/resources/beta/threads.js +1 -1
- package/node_modules/openai/resources/beta/threads.mjs +1 -1
- package/node_modules/openai/resources/beta.js +1 -1
- package/node_modules/openai/resources/beta.mjs +1 -1
- package/node_modules/openai/resources/chat/chat.js +1 -1
- package/node_modules/openai/resources/chat/chat.mjs +1 -1
- package/node_modules/openai/resources/chat/completions/completions.js +2 -5
- package/node_modules/openai/resources/chat/completions/completions.mjs +2 -5
- package/node_modules/openai/resources/chat/completions/index.js +1 -1
- package/node_modules/openai/resources/chat/completions/index.mjs +1 -1
- package/node_modules/openai/resources/chat/completions/messages.js +1 -1
- package/node_modules/openai/resources/chat/completions/messages.mjs +1 -1
- package/node_modules/openai/resources/chat/completions.js +1 -1
- package/node_modules/openai/resources/chat/completions.mjs +1 -1
- package/node_modules/openai/resources/chat/index.js +1 -1
- package/node_modules/openai/resources/chat/index.mjs +1 -1
- package/node_modules/openai/resources/chat.js +1 -1
- package/node_modules/openai/resources/chat.mjs +1 -1
- package/node_modules/openai/resources/completions.js +1 -1
- package/node_modules/openai/resources/completions.mjs +1 -1
- package/node_modules/openai/resources/containers/containers.js +1 -1
- package/node_modules/openai/resources/containers/containers.mjs +1 -1
- package/node_modules/openai/resources/containers/files/content.js +1 -1
- package/node_modules/openai/resources/containers/files/content.mjs +1 -1
- package/node_modules/openai/resources/containers/files/files.js +1 -1
- package/node_modules/openai/resources/containers/files/files.mjs +1 -1
- package/node_modules/openai/resources/containers/files/index.js +1 -1
- package/node_modules/openai/resources/containers/files/index.mjs +1 -1
- package/node_modules/openai/resources/containers/files.js +1 -1
- package/node_modules/openai/resources/containers/files.mjs +1 -1
- package/node_modules/openai/resources/containers/index.js +1 -1
- package/node_modules/openai/resources/containers/index.mjs +1 -1
- package/node_modules/openai/resources/containers.js +1 -1
- package/node_modules/openai/resources/containers.mjs +1 -1
- package/node_modules/openai/resources/content-provenance-checks.js +24 -0
- package/node_modules/openai/resources/content-provenance-checks.mjs +20 -0
- package/node_modules/openai/resources/conversations/conversations.js +1 -1
- package/node_modules/openai/resources/conversations/conversations.mjs +1 -1
- package/node_modules/openai/resources/conversations/index.js +1 -1
- package/node_modules/openai/resources/conversations/index.mjs +1 -1
- package/node_modules/openai/resources/conversations/items.js +1 -1
- package/node_modules/openai/resources/conversations/items.mjs +1 -1
- package/node_modules/openai/resources/conversations.js +1 -1
- package/node_modules/openai/resources/conversations.mjs +1 -1
- package/node_modules/openai/resources/embeddings.js +3 -47
- package/node_modules/openai/resources/embeddings.mjs +3 -47
- package/node_modules/openai/resources/evals/evals.js +2 -2
- package/node_modules/openai/resources/evals/evals.mjs +2 -2
- package/node_modules/openai/resources/evals/index.js +1 -1
- package/node_modules/openai/resources/evals/index.mjs +1 -1
- package/node_modules/openai/resources/evals/runs/index.js +1 -1
- package/node_modules/openai/resources/evals/runs/index.mjs +1 -1
- package/node_modules/openai/resources/evals/runs/output-items.js +1 -1
- package/node_modules/openai/resources/evals/runs/output-items.mjs +1 -1
- package/node_modules/openai/resources/evals/runs/runs.js +1 -1
- package/node_modules/openai/resources/evals/runs/runs.mjs +1 -1
- package/node_modules/openai/resources/evals/runs.js +1 -1
- package/node_modules/openai/resources/evals/runs.mjs +1 -1
- package/node_modules/openai/resources/evals.js +1 -1
- package/node_modules/openai/resources/evals.mjs +1 -1
- package/node_modules/openai/resources/files.js +9 -22
- package/node_modules/openai/resources/files.mjs +9 -22
- package/node_modules/openai/resources/fine-tuning/alpha/alpha.js +1 -1
- package/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/alpha/graders.js +1 -1
- package/node_modules/openai/resources/fine-tuning/alpha/graders.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/alpha/index.js +1 -1
- package/node_modules/openai/resources/fine-tuning/alpha/index.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/alpha.js +1 -1
- package/node_modules/openai/resources/fine-tuning/alpha.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.js +1 -1
- package/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/checkpoints/index.js +1 -1
- package/node_modules/openai/resources/fine-tuning/checkpoints/index.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +9 -5
- package/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs +9 -5
- package/node_modules/openai/resources/fine-tuning/checkpoints.js +1 -1
- package/node_modules/openai/resources/fine-tuning/checkpoints.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/fine-tuning.js +1 -1
- package/node_modules/openai/resources/fine-tuning/fine-tuning.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/index.js +1 -1
- package/node_modules/openai/resources/fine-tuning/index.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +1 -1
- package/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/jobs/index.js +1 -1
- package/node_modules/openai/resources/fine-tuning/jobs/index.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/jobs/jobs.js +3 -3
- package/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs +3 -3
- package/node_modules/openai/resources/fine-tuning/jobs.js +1 -1
- package/node_modules/openai/resources/fine-tuning/jobs.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning/methods.js +1 -1
- package/node_modules/openai/resources/fine-tuning/methods.mjs +1 -1
- package/node_modules/openai/resources/fine-tuning.js +1 -1
- package/node_modules/openai/resources/fine-tuning.mjs +1 -1
- package/node_modules/openai/resources/graders/grader-models.js +1 -1
- package/node_modules/openai/resources/graders/grader-models.mjs +1 -1
- package/node_modules/openai/resources/graders/graders.js +1 -1
- package/node_modules/openai/resources/graders/graders.mjs +1 -1
- package/node_modules/openai/resources/graders/index.js +1 -1
- package/node_modules/openai/resources/graders/index.mjs +1 -1
- package/node_modules/openai/resources/graders.js +1 -1
- package/node_modules/openai/resources/graders.mjs +1 -1
- package/node_modules/openai/resources/images.js +8 -2
- package/node_modules/openai/resources/images.mjs +8 -2
- package/node_modules/openai/resources/index.js +9 -3
- package/node_modules/openai/resources/index.mjs +5 -2
- package/node_modules/openai/resources/live/forks/forks.js +9 -0
- package/node_modules/openai/resources/live/forks/forks.mjs +5 -0
- package/node_modules/openai/resources/live/forks/index.js +7 -0
- package/node_modules/openai/resources/live/forks/index.mjs +3 -0
- package/node_modules/openai/resources/live/forks/internal-base.js +65 -0
- package/node_modules/openai/resources/live/forks/internal-base.mjs +59 -0
- package/node_modules/openai/resources/live/forks/ws-base.js +547 -0
- package/node_modules/openai/resources/live/forks/ws-base.mjs +543 -0
- package/node_modules/openai/resources/live/forks/ws.js +32 -0
- package/node_modules/openai/resources/live/forks/ws.mjs +27 -0
- package/node_modules/openai/resources/live/forks.js +6 -0
- package/node_modules/openai/resources/live/forks.mjs +3 -0
- package/node_modules/openai/resources/live/index.js +13 -0
- package/node_modules/openai/resources/live/index.mjs +6 -0
- package/node_modules/openai/resources/live/internal-base.js +64 -0
- package/node_modules/openai/resources/live/internal-base.mjs +58 -0
- package/node_modules/openai/resources/live/live.js +40 -0
- package/node_modules/openai/resources/live/live.mjs +35 -0
- package/node_modules/openai/resources/live/sessions.js +124 -0
- package/node_modules/openai/resources/live/sessions.mjs +120 -0
- package/node_modules/openai/resources/live/sideband/index.js +7 -0
- package/node_modules/openai/resources/live/sideband/index.mjs +3 -0
- package/node_modules/openai/resources/live/sideband/internal-base.js +65 -0
- package/node_modules/openai/resources/live/sideband/internal-base.mjs +59 -0
- package/node_modules/openai/resources/live/sideband/sideband.js +9 -0
- package/node_modules/openai/resources/live/sideband/sideband.mjs +5 -0
- package/node_modules/openai/resources/live/sideband/ws-base.js +547 -0
- package/node_modules/openai/resources/live/sideband/ws-base.mjs +543 -0
- package/node_modules/openai/resources/live/sideband/ws.js +32 -0
- package/node_modules/openai/resources/live/sideband/ws.mjs +27 -0
- package/node_modules/openai/resources/live/sideband.js +6 -0
- package/node_modules/openai/resources/live/sideband.mjs +3 -0
- package/node_modules/openai/resources/live/ws-base.js +547 -0
- package/node_modules/openai/resources/live/ws-base.mjs +543 -0
- package/node_modules/openai/resources/live/ws.js +32 -0
- package/node_modules/openai/resources/live/ws.mjs +27 -0
- package/node_modules/openai/resources/live.js +6 -0
- package/node_modules/openai/resources/live.mjs +3 -0
- package/node_modules/openai/resources/models.js +1 -1
- package/node_modules/openai/resources/models.mjs +1 -1
- package/node_modules/openai/resources/moderations.js +3 -2
- package/node_modules/openai/resources/moderations.mjs +3 -2
- package/node_modules/openai/resources/realtime/calls.js +25 -1
- package/node_modules/openai/resources/realtime/calls.mjs +25 -1
- package/node_modules/openai/resources/realtime/client-secrets.js +2 -2
- package/node_modules/openai/resources/realtime/client-secrets.mjs +2 -2
- package/node_modules/openai/resources/realtime/index.js +1 -1
- package/node_modules/openai/resources/realtime/index.mjs +2 -2
- package/node_modules/openai/resources/realtime/realtime.js +1 -1
- package/node_modules/openai/resources/realtime/realtime.mjs +1 -1
- package/node_modules/openai/resources/realtime.js +1 -1
- package/node_modules/openai/resources/realtime.mjs +1 -1
- package/node_modules/openai/resources/responses/index.js +1 -1
- package/node_modules/openai/resources/responses/index.mjs +1 -1
- package/node_modules/openai/resources/responses/input-items.js +1 -1
- package/node_modules/openai/resources/responses/input-items.mjs +1 -1
- package/node_modules/openai/resources/responses/input-tokens.js +1 -1
- package/node_modules/openai/resources/responses/input-tokens.mjs +1 -1
- package/node_modules/openai/resources/responses/internal-base.js +24 -6
- package/node_modules/openai/resources/responses/internal-base.mjs +24 -6
- package/node_modules/openai/resources/responses/responses.js +5 -5
- package/node_modules/openai/resources/responses/responses.mjs +5 -5
- package/node_modules/openai/resources/responses/ws-base.js +115 -23
- package/node_modules/openai/resources/responses/ws-base.mjs +115 -25
- package/node_modules/openai/resources/responses/ws.js +23 -7
- package/node_modules/openai/resources/responses/ws.mjs +23 -7
- package/node_modules/openai/resources/responses.js +1 -1
- package/node_modules/openai/resources/responses.mjs +1 -1
- package/node_modules/openai/resources/safety/alerts.js +16 -0
- package/node_modules/openai/resources/safety/alerts.mjs +12 -0
- package/node_modules/openai/resources/safety/index.js +9 -0
- package/node_modules/openai/resources/safety/index.mjs +4 -0
- package/node_modules/openai/resources/safety/safety.js +17 -0
- package/node_modules/openai/resources/safety/safety.mjs +12 -0
- package/node_modules/openai/resources/safety.js +6 -0
- package/node_modules/openai/resources/safety.mjs +3 -0
- package/node_modules/openai/resources/shared.js +1 -1
- package/node_modules/openai/resources/shared.mjs +1 -1
- package/node_modules/openai/resources/skills/content.js +1 -1
- package/node_modules/openai/resources/skills/content.mjs +1 -1
- package/node_modules/openai/resources/skills/index.js +1 -1
- package/node_modules/openai/resources/skills/index.mjs +1 -1
- package/node_modules/openai/resources/skills/skills.js +4 -2
- package/node_modules/openai/resources/skills/skills.mjs +4 -2
- package/node_modules/openai/resources/skills/versions/content.js +1 -1
- package/node_modules/openai/resources/skills/versions/content.mjs +1 -1
- package/node_modules/openai/resources/skills/versions/index.js +1 -1
- package/node_modules/openai/resources/skills/versions/index.mjs +1 -1
- package/node_modules/openai/resources/skills/versions/versions.js +4 -2
- package/node_modules/openai/resources/skills/versions/versions.mjs +4 -2
- package/node_modules/openai/resources/skills/versions.js +1 -1
- package/node_modules/openai/resources/skills/versions.mjs +1 -1
- package/node_modules/openai/resources/skills.js +1 -1
- package/node_modules/openai/resources/skills.mjs +1 -1
- package/node_modules/openai/resources/uploads/index.js +1 -1
- package/node_modules/openai/resources/uploads/index.mjs +1 -1
- package/node_modules/openai/resources/uploads/parts.js +6 -5
- package/node_modules/openai/resources/uploads/parts.mjs +6 -5
- package/node_modules/openai/resources/uploads/uploads.js +10 -10
- package/node_modules/openai/resources/uploads/uploads.mjs +10 -10
- package/node_modules/openai/resources/uploads.js +1 -1
- package/node_modules/openai/resources/uploads.mjs +1 -1
- package/node_modules/openai/resources/vector-stores/file-batches.js +6 -63
- package/node_modules/openai/resources/vector-stores/file-batches.mjs +6 -63
- package/node_modules/openai/resources/vector-stores/files.js +6 -39
- package/node_modules/openai/resources/vector-stores/files.mjs +6 -39
- package/node_modules/openai/resources/vector-stores/index.js +1 -1
- package/node_modules/openai/resources/vector-stores/index.mjs +1 -1
- package/node_modules/openai/resources/vector-stores/vector-stores.js +1 -1
- package/node_modules/openai/resources/vector-stores/vector-stores.mjs +1 -1
- package/node_modules/openai/resources/vector-stores.js +1 -1
- package/node_modules/openai/resources/vector-stores.mjs +1 -1
- package/node_modules/openai/resources/videos.js +24 -1
- package/node_modules/openai/resources/videos.mjs +24 -1
- package/node_modules/openai/resources/webhooks/event-types.js +21 -0
- package/node_modules/openai/resources/webhooks/event-types.mjs +17 -0
- package/node_modules/openai/resources/webhooks/index.js +4 -1
- package/node_modules/openai/resources/webhooks/index.mjs +2 -1
- package/node_modules/openai/resources/webhooks/webhooks.js +127 -43
- package/node_modules/openai/resources/webhooks/webhooks.mjs +127 -43
- package/node_modules/openai/resources/webhooks.js +1 -1
- package/node_modules/openai/resources/webhooks.mjs +1 -1
- package/node_modules/openai/src/_vendor/partial-json-parser/LICENSE +21 -0
- package/node_modules/openai/src/_vendor/partial-json-parser/README.md +11 -1
- package/node_modules/openai/src/_vendor/partial-json-parser/parser.ts +66 -35
- package/node_modules/openai/src/_vendor/zod-to-json-schema/Options.ts +32 -18
- package/node_modules/openai/src/_vendor/zod-to-json-schema/Refs.ts +7 -6
- package/node_modules/openai/src/_vendor/zod-to-json-schema/errorMessages.ts +5 -3
- package/node_modules/openai/src/_vendor/zod-to-json-schema/index.ts +3 -1
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parseDef.ts +194 -79
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/array.ts +8 -5
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/bigint.ts +20 -12
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/branded.ts +4 -4
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/catch.ts +4 -5
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/date.ts +16 -10
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/default.ts +10 -5
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/effects.ts +4 -3
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/enum.ts +1 -1
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/intersection.ts +12 -9
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/literal.ts +12 -2
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/map.ts +6 -4
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +10 -11
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/null.ts +4 -3
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nullable.ts +25 -10
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/number.ts +17 -8
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/object.ts +57 -54
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/optional.ts +25 -17
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +8 -6
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/promise.ts +10 -5
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/readonly.ts +4 -5
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/record.ts +22 -19
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/set.ts +6 -4
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/string.ts +62 -37
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/tuple.ts +32 -25
- package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/union.ts +51 -33
- package/node_modules/openai/src/_vendor/zod-to-json-schema/util.ts +11 -6
- package/node_modules/openai/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +133 -52
- package/node_modules/openai/src/auth/index.ts +7 -1
- package/node_modules/openai/src/auth/subject-token-providers.ts +281 -16
- package/node_modules/openai/src/auth/types.ts +48 -5
- package/node_modules/openai/src/auth/workload-identity-auth.ts +227 -26
- package/node_modules/openai/src/auth/x509-transport.ts +369 -0
- package/node_modules/openai/src/azure.ts +127 -28
- package/node_modules/openai/src/bedrock.ts +294 -0
- package/node_modules/openai/src/beta/realtime/internal-base.ts +136 -16
- package/node_modules/openai/src/beta/realtime/websocket.ts +264 -48
- package/node_modules/openai/src/beta/realtime/ws.ts +138 -25
- package/node_modules/openai/src/client.ts +975 -124
- package/node_modules/openai/src/core/EventEmitter.ts +162 -26
- package/node_modules/openai/src/core/api-promise.ts +0 -2
- package/node_modules/openai/src/core/error.ts +6 -8
- package/node_modules/openai/src/core/pagination.ts +67 -7
- package/node_modules/openai/src/core/resource.ts +0 -2
- package/node_modules/openai/src/core/streaming.ts +490 -100
- package/node_modules/openai/src/core/uploads.ts +6 -1
- package/node_modules/openai/src/helpers/audio.ts +215 -32
- package/node_modules/openai/src/helpers/live.ts +8 -0
- package/node_modules/openai/src/helpers/standard-schema.ts +819 -0
- package/node_modules/openai/src/helpers/zod-v3-strict-schema.ts +520 -0
- package/node_modules/openai/src/helpers/zod.ts +418 -56
- package/node_modules/openai/src/index.ts +4 -5
- package/node_modules/openai/src/internal/assistant-stream-delta.ts +440 -0
- package/node_modules/openai/src/internal/auth/x509-api-origin.ts +27 -0
- package/node_modules/openai/src/internal/auth/x509-credential-options.ts +149 -0
- package/node_modules/openai/src/internal/auth/x509-token-exchange.ts +319 -0
- package/node_modules/openai/src/internal/auth/x509-transport-capability.ts +227 -0
- package/node_modules/openai/src/internal/auth/x509-transport-registry.ts +127 -0
- package/node_modules/openai/src/internal/auth/x509-transport-state-browser.ts +43 -0
- package/node_modules/openai/src/internal/auth/x509-transport-state.cts +43 -0
- package/node_modules/openai/src/internal/auth/x509-workload-identity-auth.ts +972 -0
- package/node_modules/openai/src/internal/bedrock.ts +586 -0
- package/node_modules/openai/src/internal/builtin-types.ts +0 -2
- package/node_modules/openai/src/internal/data-residency.ts +44 -0
- package/node_modules/openai/src/internal/decoders/line.ts +145 -61
- package/node_modules/openai/src/internal/detect-platform.ts +3 -5
- package/node_modules/openai/src/internal/errors.ts +3 -4
- package/node_modules/openai/src/internal/headers.ts +14 -10
- package/node_modules/openai/src/internal/multipart-encoding.ts +53 -0
- package/node_modules/openai/src/internal/parse.ts +47 -19
- package/node_modules/openai/src/internal/provider.ts +92 -0
- package/node_modules/openai/src/internal/qs/formats.ts +1 -1
- package/node_modules/openai/src/internal/qs/stringify.ts +57 -53
- package/node_modules/openai/src/internal/qs/types.ts +1 -1
- package/node_modules/openai/src/internal/qs/utils.ts +443 -54
- package/node_modules/openai/src/internal/realtime-credentials.ts +27 -0
- package/node_modules/openai/src/internal/request-options.ts +52 -3
- package/node_modules/openai/src/internal/responses/canonical-output-text.ts +160 -0
- package/node_modules/openai/src/internal/responses/output-text-index.ts +84 -0
- package/node_modules/openai/src/internal/responses/response-accumulator.ts +1263 -0
- package/node_modules/openai/src/internal/shim-types.ts +3 -4
- package/node_modules/openai/src/internal/shims.ts +0 -2
- package/node_modules/openai/src/internal/stream-utils.ts +37 -5
- package/node_modules/openai/src/internal/to-file.ts +90 -35
- package/node_modules/openai/src/internal/types.ts +21 -29
- package/node_modules/openai/src/internal/uploads.ts +533 -59
- package/node_modules/openai/src/internal/utils/abort.ts +116 -0
- package/node_modules/openai/src/internal/utils/base64.ts +3 -2
- package/node_modules/openai/src/internal/utils/bytes.ts +7 -0
- package/node_modules/openai/src/internal/utils/env.ts +9 -7
- package/node_modules/openai/src/internal/utils/log.ts +77 -14
- package/node_modules/openai/src/internal/utils/path.ts +53 -32
- package/node_modules/openai/src/internal/utils/query.ts +0 -2
- package/node_modules/openai/src/internal/utils/sleep.ts +51 -2
- package/node_modules/openai/src/internal/utils/uuid.ts +0 -2
- package/node_modules/openai/src/internal/utils/values.ts +0 -2
- package/node_modules/openai/src/internal/utils.ts +0 -2
- package/node_modules/openai/src/internal/ws-adapter-browser.ts +83 -24
- package/node_modules/openai/src/internal/ws-adapter-node.ts +105 -26
- package/node_modules/openai/src/internal/ws-adapter.ts +23 -0
- package/node_modules/openai/src/internal/ws.ts +250 -51
- package/node_modules/openai/src/lib/.keep +2 -2
- package/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +349 -102
- package/node_modules/openai/src/lib/AssistantStream.ts +537 -268
- package/node_modules/openai/src/lib/ChatCompletionRunner.ts +75 -22
- package/node_modules/openai/src/lib/ChatCompletionStream.ts +2016 -268
- package/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +115 -17
- package/node_modules/openai/src/lib/EventEmitter.ts +171 -26
- package/node_modules/openai/src/lib/EventStream.ts +1979 -64
- package/node_modules/openai/src/lib/ResponsesParser.ts +153 -56
- package/node_modules/openai/src/lib/RunnableFunction.ts +99 -37
- package/node_modules/openai/src/lib/Util.ts +7 -5
- package/node_modules/openai/src/lib/agents/agent-session-stream.ts +328 -0
- package/node_modules/openai/src/lib/agents/output-text.ts +6 -0
- package/node_modules/openai/src/lib/agents/turn-state.ts +61 -0
- package/node_modules/openai/src/lib/assistant-run-polling.ts +27 -0
- package/node_modules/openai/src/lib/chatCompletionUtils.ts +9 -10
- package/node_modules/openai/src/lib/embeddings.ts +73 -0
- package/node_modules/openai/src/lib/file-processing.ts +37 -0
- package/node_modules/openai/src/lib/jsonschema.ts +77 -34
- package/node_modules/openai/src/lib/live/transcript-grouper.ts +307 -0
- package/node_modules/openai/src/lib/live/transcript-grouping.ts +394 -0
- package/node_modules/openai/src/lib/live/webrtc.ts +23 -0
- package/node_modules/openai/src/lib/parser.ts +247 -69
- package/node_modules/openai/src/lib/polling.ts +145 -0
- package/node_modules/openai/src/lib/realtime/webrtc.ts +20 -0
- package/node_modules/openai/src/lib/responses/EventTypes.ts +9 -60
- package/node_modules/openai/src/lib/responses/ResponseAccumulator.ts +27 -0
- package/node_modules/openai/src/lib/responses/ResponseInputItems.ts +167 -0
- package/node_modules/openai/src/lib/responses/ResponseStream.ts +135 -179
- package/node_modules/openai/src/lib/responses/responses-websocket-lane.ts +388 -0
- package/node_modules/openai/src/lib/responses/responses-websocket-session.ts +317 -0
- package/node_modules/openai/src/lib/transform.ts +2015 -100
- package/node_modules/openai/src/lib/vector-store-polling.ts +46 -0
- package/node_modules/openai/src/lib/vector-store-upload.ts +57 -0
- package/node_modules/openai/src/lib/webhook-signature.ts +164 -0
- package/node_modules/openai/src/lib/webrtc/connection.ts +313 -0
- package/node_modules/openai/src/lib/webrtc/data-channel.ts +151 -0
- package/node_modules/openai/src/lib/webrtc/errors.ts +38 -0
- package/node_modules/openai/src/lib/webrtc/subscriptions.ts +65 -0
- package/node_modules/openai/src/lib/webrtc/types.ts +110 -0
- package/node_modules/openai/src/live/webrtc.ts +10 -0
- package/node_modules/openai/src/providers/bedrock/aws.ts +331 -0
- package/node_modules/openai/src/providers/bedrock.ts +51 -0
- package/node_modules/openai/src/realtime/internal-base.ts +265 -17
- package/node_modules/openai/src/realtime/webrtc.ts +10 -0
- package/node_modules/openai/src/realtime/websocket.ts +259 -54
- package/node_modules/openai/src/realtime/ws.ts +135 -29
- package/node_modules/openai/src/resources/admin/admin.ts +1 -1
- package/node_modules/openai/src/resources/admin/index.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/admin-api-keys.ts +18 -2
- package/node_modules/openai/src/resources/admin/organization/audit-logs.ts +327 -4
- package/node_modules/openai/src/resources/admin/organization/certificates.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/data-retention.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/groups/groups.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/groups/index.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/groups/roles.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/groups/users.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/groups.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/index.ts +9 -1
- package/node_modules/openai/src/resources/admin/organization/invites.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/organization.ts +21 -1
- package/node_modules/openai/src/resources/admin/organization/projects/api-keys.ts +22 -2
- package/node_modules/openai/src/resources/admin/organization/projects/certificates.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/data-retention.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/groups/groups.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/groups/index.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/groups/roles.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/groups.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/hosted-tool-permissions.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/index.ts +10 -2
- package/node_modules/openai/src/resources/admin/organization/projects/model-permissions.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/projects.ts +70 -19
- package/node_modules/openai/src/resources/admin/organization/projects/rate-limits.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/roles.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/api-keys.ts +91 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +299 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts.ts +2 -265
- package/node_modules/openai/src/resources/admin/organization/projects/spend-alerts.ts +33 -1
- package/node_modules/openai/src/resources/admin/organization/projects/spend-limit.ts +156 -0
- package/node_modules/openai/src/resources/admin/organization/projects/users/index.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/users/roles.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/users/users.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects/users.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/projects.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/roles.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/spend-alerts.ts +19 -1
- package/node_modules/openai/src/resources/admin/organization/spend-limit.ts +144 -0
- package/node_modules/openai/src/resources/admin/organization/usage.ts +706 -89
- package/node_modules/openai/src/resources/admin/organization/users/index.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/users/roles.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/users/users.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization/users.ts +1 -1
- package/node_modules/openai/src/resources/admin/organization.ts +1 -1
- package/node_modules/openai/src/resources/admin.ts +1 -1
- package/node_modules/openai/src/resources/audio/audio.ts +4 -1
- package/node_modules/openai/src/resources/audio/index.ts +2 -1
- package/node_modules/openai/src/resources/audio/speech.ts +4 -3
- package/node_modules/openai/src/resources/audio/transcriptions.ts +51 -13
- package/node_modules/openai/src/resources/audio/translations.ts +5 -3
- package/node_modules/openai/src/resources/audio.ts +1 -1
- package/node_modules/openai/src/resources/batches.ts +10 -9
- package/node_modules/openai/src/resources/beta/agents/agents.ts +4627 -0
- package/node_modules/openai/src/resources/beta/agents/environments/environments.ts +111 -0
- package/node_modules/openai/src/resources/beta/agents/environments/files.ts +169 -0
- package/node_modules/openai/src/resources/beta/agents/environments/index.ts +19 -0
- package/node_modules/openai/src/resources/beta/agents/environments/templates.ts +535 -0
- package/node_modules/openai/src/resources/beta/agents/environments.ts +3 -0
- package/node_modules/openai/src/resources/beta/agents/index.ts +127 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/artifacts.ts +249 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/events.ts +94 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/index.ts +24 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/items.ts +59 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/sessions.ts +403 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/subagents/index.ts +5 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/subagents/items.ts +65 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/subagents/subagents.ts +113 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/subagents/turns/index.ts +4 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/subagents/turns/items.ts +70 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/subagents/turns/turns.ts +111 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/subagents/turns.ts +3 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/subagents.ts +3 -0
- package/node_modules/openai/src/resources/beta/agents/sessions/turns.ts +159 -0
- package/node_modules/openai/src/resources/beta/agents/sessions.ts +3 -0
- package/node_modules/openai/src/resources/beta/agents/vaults/credentials.ts +693 -0
- package/node_modules/openai/src/resources/beta/agents/vaults/index.ts +29 -0
- package/node_modules/openai/src/resources/beta/agents/vaults/vaults.ts +243 -0
- package/node_modules/openai/src/resources/beta/agents/vaults.ts +3 -0
- package/node_modules/openai/src/resources/beta/agents.ts +3 -0
- package/node_modules/openai/src/resources/beta/assistants.ts +154 -172
- package/node_modules/openai/src/resources/beta/beta.ts +578 -3
- package/node_modules/openai/src/resources/beta/chatkit/chatkit.ts +1 -1
- package/node_modules/openai/src/resources/beta/chatkit/index.ts +1 -1
- package/node_modules/openai/src/resources/beta/chatkit/sessions.ts +1 -1
- package/node_modules/openai/src/resources/beta/chatkit/threads.ts +1 -1
- package/node_modules/openai/src/resources/beta/chatkit.ts +1 -1
- package/node_modules/openai/src/resources/beta/index.ts +290 -1
- package/node_modules/openai/src/resources/beta/realtime/index.ts +0 -2
- package/node_modules/openai/src/resources/beta/realtime/realtime.ts +0 -2
- package/node_modules/openai/src/resources/beta/realtime/sessions.ts +0 -2
- package/node_modules/openai/src/resources/beta/realtime/transcription-sessions.ts +0 -2
- package/node_modules/openai/src/resources/beta/realtime.ts +0 -2
- package/node_modules/openai/src/resources/beta/responses/index.ts +189 -0
- package/node_modules/openai/src/resources/beta/responses/input-items.ts +105 -0
- package/node_modules/openai/src/resources/beta/responses/input-tokens.ts +249 -0
- package/node_modules/openai/src/resources/beta/responses/internal-base.ts +136 -0
- package/node_modules/openai/src/resources/beta/responses/responses.ts +15060 -0
- package/node_modules/openai/src/resources/beta/responses/ws-base.ts +729 -0
- package/node_modules/openai/src/resources/beta/responses/ws.ts +62 -0
- package/node_modules/openai/src/resources/beta/responses.ts +3 -0
- package/node_modules/openai/src/resources/beta/threads/index.ts +1 -1
- package/node_modules/openai/src/resources/beta/threads/messages.ts +30 -24
- package/node_modules/openai/src/resources/beta/threads/runs/index.ts +2 -2
- package/node_modules/openai/src/resources/beta/threads/runs/runs.ts +47 -93
- package/node_modules/openai/src/resources/beta/threads/runs/steps.ts +15 -16
- package/node_modules/openai/src/resources/beta/threads/runs.ts +1 -1
- package/node_modules/openai/src/resources/beta/threads/threads.ts +54 -51
- package/node_modules/openai/src/resources/beta/threads.ts +1 -1
- package/node_modules/openai/src/resources/beta.ts +1 -1
- package/node_modules/openai/src/resources/chat/chat.ts +1 -1
- package/node_modules/openai/src/resources/chat/completions/completions.ts +762 -108
- package/node_modules/openai/src/resources/chat/completions/index.ts +1 -1
- package/node_modules/openai/src/resources/chat/completions/messages.ts +1 -1
- package/node_modules/openai/src/resources/chat/completions.ts +1 -1
- package/node_modules/openai/src/resources/chat/index.ts +1 -1
- package/node_modules/openai/src/resources/chat.ts +1 -1
- package/node_modules/openai/src/resources/completions.ts +36 -15
- package/node_modules/openai/src/resources/containers/containers.ts +1 -1
- package/node_modules/openai/src/resources/containers/files/content.ts +1 -1
- package/node_modules/openai/src/resources/containers/files/files.ts +1 -1
- package/node_modules/openai/src/resources/containers/files/index.ts +1 -1
- package/node_modules/openai/src/resources/containers/files.ts +1 -1
- package/node_modules/openai/src/resources/containers/index.ts +1 -1
- package/node_modules/openai/src/resources/containers.ts +1 -1
- package/node_modules/openai/src/resources/content-provenance-checks.ts +132 -0
- package/node_modules/openai/src/resources/conversations/conversations.ts +23 -2
- package/node_modules/openai/src/resources/conversations/index.ts +1 -1
- package/node_modules/openai/src/resources/conversations/items.ts +93 -5
- package/node_modules/openai/src/resources/conversations.ts +1 -1
- package/node_modules/openai/src/resources/embeddings.ts +22 -49
- package/node_modules/openai/src/resources/evals/evals.ts +6 -6
- package/node_modules/openai/src/resources/evals/index.ts +1 -1
- package/node_modules/openai/src/resources/evals/runs/index.ts +1 -1
- package/node_modules/openai/src/resources/evals/runs/output-items.ts +1 -1
- package/node_modules/openai/src/resources/evals/runs/runs.ts +119 -191
- package/node_modules/openai/src/resources/evals/runs.ts +1 -1
- package/node_modules/openai/src/resources/evals.ts +1 -1
- package/node_modules/openai/src/resources/files.ts +9 -26
- package/node_modules/openai/src/resources/fine-tuning/alpha/alpha.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/alpha/graders.ts +6 -5
- package/node_modules/openai/src/resources/fine-tuning/alpha/index.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/alpha.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/checkpoints/checkpoints.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/checkpoints/index.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/checkpoints/permissions.ts +9 -5
- package/node_modules/openai/src/resources/fine-tuning/checkpoints.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/fine-tuning.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/index.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/jobs/index.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +14 -13
- package/node_modules/openai/src/resources/fine-tuning/jobs.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning/methods.ts +1 -1
- package/node_modules/openai/src/resources/fine-tuning.ts +1 -1
- package/node_modules/openai/src/resources/graders/grader-models.ts +7 -14
- package/node_modules/openai/src/resources/graders/graders.ts +1 -1
- package/node_modules/openai/src/resources/graders/index.ts +1 -1
- package/node_modules/openai/src/resources/graders.ts +1 -1
- package/node_modules/openai/src/resources/images.ts +100 -85
- package/node_modules/openai/src/resources/index.ts +9 -2
- package/node_modules/openai/src/resources/live/api.md +87 -0
- package/node_modules/openai/src/resources/live/forks/forks.ts +169 -0
- package/node_modules/openai/src/resources/live/forks/index.ts +5 -0
- package/node_modules/openai/src/resources/live/forks/internal-base.ts +126 -0
- package/node_modules/openai/src/resources/live/forks/ws-base.ts +700 -0
- package/node_modules/openai/src/resources/live/forks/ws.ts +47 -0
- package/node_modules/openai/src/resources/live/forks.ts +3 -0
- package/node_modules/openai/src/resources/live/index.ts +20 -0
- package/node_modules/openai/src/resources/live/internal-base.ts +123 -0
- package/node_modules/openai/src/resources/live/live.ts +2296 -0
- package/node_modules/openai/src/resources/live/sessions.ts +343 -0
- package/node_modules/openai/src/resources/live/sideband/index.ts +10 -0
- package/node_modules/openai/src/resources/live/sideband/internal-base.ts +126 -0
- package/node_modules/openai/src/resources/live/sideband/sideband.ts +58 -0
- package/node_modules/openai/src/resources/live/sideband/ws-base.ts +710 -0
- package/node_modules/openai/src/resources/live/sideband/ws.ts +47 -0
- package/node_modules/openai/src/resources/live/sideband.ts +3 -0
- package/node_modules/openai/src/resources/live/ws-base.ts +696 -0
- package/node_modules/openai/src/resources/live/ws.ts +43 -0
- package/node_modules/openai/src/resources/live.ts +3 -0
- package/node_modules/openai/src/resources/models.ts +6 -1
- package/node_modules/openai/src/resources/moderations.ts +6 -5
- package/node_modules/openai/src/resources/realtime/api.md +1 -0
- package/node_modules/openai/src/resources/realtime/calls.ts +50 -2
- package/node_modules/openai/src/resources/realtime/client-secrets.ts +27 -10
- package/node_modules/openai/src/resources/realtime/index.ts +8 -2
- package/node_modules/openai/src/resources/realtime/realtime.ts +93 -35
- package/node_modules/openai/src/resources/realtime.ts +1 -1
- package/node_modules/openai/src/resources/responses/api.md +20 -0
- package/node_modules/openai/src/resources/responses/index.ts +1 -1
- package/node_modules/openai/src/resources/responses/input-items.ts +1 -1
- package/node_modules/openai/src/resources/responses/input-tokens.ts +26 -16
- package/node_modules/openai/src/resources/responses/internal-base.ts +33 -14
- package/node_modules/openai/src/resources/responses/responses.ts +4150 -792
- package/node_modules/openai/src/resources/responses/ws-base.ts +147 -31
- package/node_modules/openai/src/resources/responses/ws.ts +33 -9
- package/node_modules/openai/src/resources/responses.ts +1 -1
- package/node_modules/openai/src/resources/safety/alerts.ts +51 -0
- package/node_modules/openai/src/resources/safety/index.ts +4 -0
- package/node_modules/openai/src/resources/safety/safety.ts +15 -0
- package/node_modules/openai/src/resources/safety.ts +3 -0
- package/node_modules/openai/src/resources/shared.ts +98 -41
- package/node_modules/openai/src/resources/skills/content.ts +1 -1
- package/node_modules/openai/src/resources/skills/index.ts +1 -1
- package/node_modules/openai/src/resources/skills/skills.ts +4 -2
- package/node_modules/openai/src/resources/skills/versions/content.ts +1 -1
- package/node_modules/openai/src/resources/skills/versions/index.ts +1 -1
- package/node_modules/openai/src/resources/skills/versions/versions.ts +4 -2
- package/node_modules/openai/src/resources/skills/versions.ts +1 -1
- package/node_modules/openai/src/resources/skills.ts +1 -1
- package/node_modules/openai/src/resources/uploads/index.ts +1 -1
- package/node_modules/openai/src/resources/uploads/parts.ts +6 -5
- package/node_modules/openai/src/resources/uploads/uploads.ts +12 -12
- package/node_modules/openai/src/resources/uploads.ts +1 -1
- package/node_modules/openai/src/resources/vector-stores/file-batches.ts +24 -89
- package/node_modules/openai/src/resources/vector-stores/files.ts +12 -52
- package/node_modules/openai/src/resources/vector-stores/index.ts +1 -1
- package/node_modules/openai/src/resources/vector-stores/vector-stores.ts +4 -4
- package/node_modules/openai/src/resources/vector-stores.ts +1 -1
- package/node_modules/openai/src/resources/videos.ts +63 -2
- package/node_modules/openai/src/resources/webhooks/api.md +40 -17
- package/node_modules/openai/src/resources/webhooks/event-types.ts +21 -0
- package/node_modules/openai/src/resources/webhooks/index.ts +2 -1
- package/node_modules/openai/src/resources/webhooks/webhooks.ts +694 -69
- package/node_modules/openai/src/resources/webhooks.ts +1 -1
- package/node_modules/openai/src/tsconfig.json +6 -3
- package/node_modules/openai/src/version.ts +2 -1
- package/node_modules/openai/version.js +2 -1
- package/node_modules/openai/version.mjs +2 -1
- package/package.json +6 -6
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +0 -832
- package/node_modules/@earendil-works/pi-ai/dist/images-models.js +0 -143
- package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js +0 -22
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/LICENSE +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/README.md +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/constants.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +0 -0
- /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +0 -0
- /package/node_modules/@earendil-works/pi-ai/dist/{auth/oauth → utils}/oauth-page.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by
|
|
1
|
+
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as UsageAPI from './usage';
|
|
4
5
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
6
7
|
|
|
@@ -233,6 +234,21 @@ export class Usage extends APIResource {
|
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
|
|
237
|
+
/**
|
|
238
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
239
|
+
* result, this field is `null`.
|
|
240
|
+
*/
|
|
241
|
+
export type CostQuantityUnit =
|
|
242
|
+
| (string & {})
|
|
243
|
+
| 'tokens'
|
|
244
|
+
| '1000_tokens'
|
|
245
|
+
| 'duration_seconds'
|
|
246
|
+
| 'duration_minutes'
|
|
247
|
+
| 'duration_hours'
|
|
248
|
+
| 'gibibyte_hours'
|
|
249
|
+
| 'images'
|
|
250
|
+
| 'characters';
|
|
251
|
+
|
|
236
252
|
export interface UsageAudioSpeechesResponse {
|
|
237
253
|
data: Array<UsageAudioSpeechesResponse.Data>;
|
|
238
254
|
|
|
@@ -272,8 +288,9 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
272
288
|
*/
|
|
273
289
|
export interface OrganizationUsageCompletionsResult {
|
|
274
290
|
/**
|
|
275
|
-
* The aggregated number of
|
|
276
|
-
*
|
|
291
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
292
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
293
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
277
294
|
*/
|
|
278
295
|
input_tokens: number;
|
|
279
296
|
|
|
@@ -285,8 +302,9 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
285
302
|
object: 'organization.usage.completions.result';
|
|
286
303
|
|
|
287
304
|
/**
|
|
288
|
-
* The aggregated number of
|
|
289
|
-
*
|
|
305
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
306
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
307
|
+
* tokens.
|
|
290
308
|
*/
|
|
291
309
|
output_tokens: number;
|
|
292
310
|
|
|
@@ -303,17 +321,53 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
303
321
|
batch?: boolean | null;
|
|
304
322
|
|
|
305
323
|
/**
|
|
306
|
-
* The aggregated number of audio input tokens used
|
|
324
|
+
* The aggregated number of uncached audio input tokens used.
|
|
307
325
|
*/
|
|
308
326
|
input_audio_tokens?: number;
|
|
309
327
|
|
|
310
328
|
/**
|
|
311
|
-
* The aggregated number of
|
|
312
|
-
|
|
313
|
-
|
|
329
|
+
* The aggregated number of input tokens written to the cache.
|
|
330
|
+
*/
|
|
331
|
+
input_cache_write_tokens?: number;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* The aggregated number of cached audio input tokens used.
|
|
335
|
+
*/
|
|
336
|
+
input_cached_audio_tokens?: number;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The aggregated number of cached image input tokens used.
|
|
340
|
+
*/
|
|
341
|
+
input_cached_image_tokens?: number;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* The aggregated number of cached text input tokens used.
|
|
345
|
+
*/
|
|
346
|
+
input_cached_text_tokens?: number;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
350
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
314
351
|
*/
|
|
315
352
|
input_cached_tokens?: number;
|
|
316
353
|
|
|
354
|
+
/**
|
|
355
|
+
* The aggregated number of uncached image input tokens used.
|
|
356
|
+
*/
|
|
357
|
+
input_image_tokens?: number;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
361
|
+
* tokens.
|
|
362
|
+
*/
|
|
363
|
+
input_text_tokens?: number;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
367
|
+
* image inputs, excluding cache-write tokens.
|
|
368
|
+
*/
|
|
369
|
+
input_uncached_tokens?: number;
|
|
370
|
+
|
|
317
371
|
/**
|
|
318
372
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
319
373
|
* result.
|
|
@@ -325,6 +379,16 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
325
379
|
*/
|
|
326
380
|
output_audio_tokens?: number;
|
|
327
381
|
|
|
382
|
+
/**
|
|
383
|
+
* The aggregated number of image output tokens used.
|
|
384
|
+
*/
|
|
385
|
+
output_image_tokens?: number;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* The aggregated number of text output tokens used.
|
|
389
|
+
*/
|
|
390
|
+
output_text_tokens?: number;
|
|
391
|
+
|
|
328
392
|
/**
|
|
329
393
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
330
394
|
* usage result.
|
|
@@ -715,6 +779,12 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
715
779
|
* result.
|
|
716
780
|
*/
|
|
717
781
|
quantity?: number | null;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
785
|
+
* result, this field is `null`.
|
|
786
|
+
*/
|
|
787
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
718
788
|
}
|
|
719
789
|
|
|
720
790
|
export namespace OrganizationCostsResult {
|
|
@@ -775,8 +845,9 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
775
845
|
*/
|
|
776
846
|
export interface OrganizationUsageCompletionsResult {
|
|
777
847
|
/**
|
|
778
|
-
* The aggregated number of
|
|
779
|
-
*
|
|
848
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
849
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
850
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
780
851
|
*/
|
|
781
852
|
input_tokens: number;
|
|
782
853
|
|
|
@@ -788,8 +859,9 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
788
859
|
object: 'organization.usage.completions.result';
|
|
789
860
|
|
|
790
861
|
/**
|
|
791
|
-
* The aggregated number of
|
|
792
|
-
*
|
|
862
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
863
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
864
|
+
* tokens.
|
|
793
865
|
*/
|
|
794
866
|
output_tokens: number;
|
|
795
867
|
|
|
@@ -806,17 +878,53 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
806
878
|
batch?: boolean | null;
|
|
807
879
|
|
|
808
880
|
/**
|
|
809
|
-
* The aggregated number of audio input tokens used
|
|
881
|
+
* The aggregated number of uncached audio input tokens used.
|
|
810
882
|
*/
|
|
811
883
|
input_audio_tokens?: number;
|
|
812
884
|
|
|
813
885
|
/**
|
|
814
|
-
* The aggregated number of
|
|
815
|
-
|
|
816
|
-
|
|
886
|
+
* The aggregated number of input tokens written to the cache.
|
|
887
|
+
*/
|
|
888
|
+
input_cache_write_tokens?: number;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* The aggregated number of cached audio input tokens used.
|
|
892
|
+
*/
|
|
893
|
+
input_cached_audio_tokens?: number;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* The aggregated number of cached image input tokens used.
|
|
897
|
+
*/
|
|
898
|
+
input_cached_image_tokens?: number;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* The aggregated number of cached text input tokens used.
|
|
902
|
+
*/
|
|
903
|
+
input_cached_text_tokens?: number;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
907
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
817
908
|
*/
|
|
818
909
|
input_cached_tokens?: number;
|
|
819
910
|
|
|
911
|
+
/**
|
|
912
|
+
* The aggregated number of uncached image input tokens used.
|
|
913
|
+
*/
|
|
914
|
+
input_image_tokens?: number;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
918
|
+
* tokens.
|
|
919
|
+
*/
|
|
920
|
+
input_text_tokens?: number;
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
924
|
+
* image inputs, excluding cache-write tokens.
|
|
925
|
+
*/
|
|
926
|
+
input_uncached_tokens?: number;
|
|
927
|
+
|
|
820
928
|
/**
|
|
821
929
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
822
930
|
* result.
|
|
@@ -828,6 +936,16 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
828
936
|
*/
|
|
829
937
|
output_audio_tokens?: number;
|
|
830
938
|
|
|
939
|
+
/**
|
|
940
|
+
* The aggregated number of image output tokens used.
|
|
941
|
+
*/
|
|
942
|
+
output_image_tokens?: number;
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* The aggregated number of text output tokens used.
|
|
946
|
+
*/
|
|
947
|
+
output_text_tokens?: number;
|
|
948
|
+
|
|
831
949
|
/**
|
|
832
950
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
833
951
|
* usage result.
|
|
@@ -1218,6 +1336,12 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
1218
1336
|
* result.
|
|
1219
1337
|
*/
|
|
1220
1338
|
quantity?: number | null;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
1342
|
+
* result, this field is `null`.
|
|
1343
|
+
*/
|
|
1344
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
1221
1345
|
}
|
|
1222
1346
|
|
|
1223
1347
|
export namespace OrganizationCostsResult {
|
|
@@ -1278,8 +1402,9 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1278
1402
|
*/
|
|
1279
1403
|
export interface OrganizationUsageCompletionsResult {
|
|
1280
1404
|
/**
|
|
1281
|
-
* The aggregated number of
|
|
1282
|
-
*
|
|
1405
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
1406
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
1407
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
1283
1408
|
*/
|
|
1284
1409
|
input_tokens: number;
|
|
1285
1410
|
|
|
@@ -1291,8 +1416,9 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1291
1416
|
object: 'organization.usage.completions.result';
|
|
1292
1417
|
|
|
1293
1418
|
/**
|
|
1294
|
-
* The aggregated number of
|
|
1295
|
-
*
|
|
1419
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
1420
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
1421
|
+
* tokens.
|
|
1296
1422
|
*/
|
|
1297
1423
|
output_tokens: number;
|
|
1298
1424
|
|
|
@@ -1309,17 +1435,53 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1309
1435
|
batch?: boolean | null;
|
|
1310
1436
|
|
|
1311
1437
|
/**
|
|
1312
|
-
* The aggregated number of audio input tokens used
|
|
1438
|
+
* The aggregated number of uncached audio input tokens used.
|
|
1313
1439
|
*/
|
|
1314
1440
|
input_audio_tokens?: number;
|
|
1315
1441
|
|
|
1316
1442
|
/**
|
|
1317
|
-
* The aggregated number of
|
|
1318
|
-
|
|
1319
|
-
|
|
1443
|
+
* The aggregated number of input tokens written to the cache.
|
|
1444
|
+
*/
|
|
1445
|
+
input_cache_write_tokens?: number;
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* The aggregated number of cached audio input tokens used.
|
|
1449
|
+
*/
|
|
1450
|
+
input_cached_audio_tokens?: number;
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* The aggregated number of cached image input tokens used.
|
|
1454
|
+
*/
|
|
1455
|
+
input_cached_image_tokens?: number;
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* The aggregated number of cached text input tokens used.
|
|
1459
|
+
*/
|
|
1460
|
+
input_cached_text_tokens?: number;
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
1464
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
1320
1465
|
*/
|
|
1321
1466
|
input_cached_tokens?: number;
|
|
1322
1467
|
|
|
1468
|
+
/**
|
|
1469
|
+
* The aggregated number of uncached image input tokens used.
|
|
1470
|
+
*/
|
|
1471
|
+
input_image_tokens?: number;
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
1475
|
+
* tokens.
|
|
1476
|
+
*/
|
|
1477
|
+
input_text_tokens?: number;
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
1481
|
+
* image inputs, excluding cache-write tokens.
|
|
1482
|
+
*/
|
|
1483
|
+
input_uncached_tokens?: number;
|
|
1484
|
+
|
|
1323
1485
|
/**
|
|
1324
1486
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1325
1487
|
* result.
|
|
@@ -1331,6 +1493,16 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1331
1493
|
*/
|
|
1332
1494
|
output_audio_tokens?: number;
|
|
1333
1495
|
|
|
1496
|
+
/**
|
|
1497
|
+
* The aggregated number of image output tokens used.
|
|
1498
|
+
*/
|
|
1499
|
+
output_image_tokens?: number;
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* The aggregated number of text output tokens used.
|
|
1503
|
+
*/
|
|
1504
|
+
output_text_tokens?: number;
|
|
1505
|
+
|
|
1334
1506
|
/**
|
|
1335
1507
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1336
1508
|
* usage result.
|
|
@@ -1721,6 +1893,12 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1721
1893
|
* result.
|
|
1722
1894
|
*/
|
|
1723
1895
|
quantity?: number | null;
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
1899
|
+
* result, this field is `null`.
|
|
1900
|
+
*/
|
|
1901
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
1724
1902
|
}
|
|
1725
1903
|
|
|
1726
1904
|
export namespace OrganizationCostsResult {
|
|
@@ -1781,8 +1959,9 @@ export namespace UsageCompletionsResponse {
|
|
|
1781
1959
|
*/
|
|
1782
1960
|
export interface OrganizationUsageCompletionsResult {
|
|
1783
1961
|
/**
|
|
1784
|
-
* The aggregated number of
|
|
1785
|
-
*
|
|
1962
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
1963
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
1964
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
1786
1965
|
*/
|
|
1787
1966
|
input_tokens: number;
|
|
1788
1967
|
|
|
@@ -1794,8 +1973,9 @@ export namespace UsageCompletionsResponse {
|
|
|
1794
1973
|
object: 'organization.usage.completions.result';
|
|
1795
1974
|
|
|
1796
1975
|
/**
|
|
1797
|
-
* The aggregated number of
|
|
1798
|
-
*
|
|
1976
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
1977
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
1978
|
+
* tokens.
|
|
1799
1979
|
*/
|
|
1800
1980
|
output_tokens: number;
|
|
1801
1981
|
|
|
@@ -1812,17 +1992,53 @@ export namespace UsageCompletionsResponse {
|
|
|
1812
1992
|
batch?: boolean | null;
|
|
1813
1993
|
|
|
1814
1994
|
/**
|
|
1815
|
-
* The aggregated number of audio input tokens used
|
|
1995
|
+
* The aggregated number of uncached audio input tokens used.
|
|
1816
1996
|
*/
|
|
1817
1997
|
input_audio_tokens?: number;
|
|
1818
1998
|
|
|
1819
1999
|
/**
|
|
1820
|
-
* The aggregated number of
|
|
1821
|
-
|
|
1822
|
-
|
|
2000
|
+
* The aggregated number of input tokens written to the cache.
|
|
2001
|
+
*/
|
|
2002
|
+
input_cache_write_tokens?: number;
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* The aggregated number of cached audio input tokens used.
|
|
2006
|
+
*/
|
|
2007
|
+
input_cached_audio_tokens?: number;
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* The aggregated number of cached image input tokens used.
|
|
2011
|
+
*/
|
|
2012
|
+
input_cached_image_tokens?: number;
|
|
2013
|
+
|
|
2014
|
+
/**
|
|
2015
|
+
* The aggregated number of cached text input tokens used.
|
|
2016
|
+
*/
|
|
2017
|
+
input_cached_text_tokens?: number;
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
2021
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
1823
2022
|
*/
|
|
1824
2023
|
input_cached_tokens?: number;
|
|
1825
2024
|
|
|
2025
|
+
/**
|
|
2026
|
+
* The aggregated number of uncached image input tokens used.
|
|
2027
|
+
*/
|
|
2028
|
+
input_image_tokens?: number;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
2032
|
+
* tokens.
|
|
2033
|
+
*/
|
|
2034
|
+
input_text_tokens?: number;
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
2038
|
+
* image inputs, excluding cache-write tokens.
|
|
2039
|
+
*/
|
|
2040
|
+
input_uncached_tokens?: number;
|
|
2041
|
+
|
|
1826
2042
|
/**
|
|
1827
2043
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1828
2044
|
* result.
|
|
@@ -1834,6 +2050,16 @@ export namespace UsageCompletionsResponse {
|
|
|
1834
2050
|
*/
|
|
1835
2051
|
output_audio_tokens?: number;
|
|
1836
2052
|
|
|
2053
|
+
/**
|
|
2054
|
+
* The aggregated number of image output tokens used.
|
|
2055
|
+
*/
|
|
2056
|
+
output_image_tokens?: number;
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* The aggregated number of text output tokens used.
|
|
2060
|
+
*/
|
|
2061
|
+
output_text_tokens?: number;
|
|
2062
|
+
|
|
1837
2063
|
/**
|
|
1838
2064
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1839
2065
|
* usage result.
|
|
@@ -2224,6 +2450,12 @@ export namespace UsageCompletionsResponse {
|
|
|
2224
2450
|
* result.
|
|
2225
2451
|
*/
|
|
2226
2452
|
quantity?: number | null;
|
|
2453
|
+
|
|
2454
|
+
/**
|
|
2455
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
2456
|
+
* result, this field is `null`.
|
|
2457
|
+
*/
|
|
2458
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
2227
2459
|
}
|
|
2228
2460
|
|
|
2229
2461
|
export namespace OrganizationCostsResult {
|
|
@@ -2284,8 +2516,9 @@ export namespace UsageCostsResponse {
|
|
|
2284
2516
|
*/
|
|
2285
2517
|
export interface OrganizationUsageCompletionsResult {
|
|
2286
2518
|
/**
|
|
2287
|
-
* The aggregated number of
|
|
2288
|
-
*
|
|
2519
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
2520
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
2521
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
2289
2522
|
*/
|
|
2290
2523
|
input_tokens: number;
|
|
2291
2524
|
|
|
@@ -2297,8 +2530,9 @@ export namespace UsageCostsResponse {
|
|
|
2297
2530
|
object: 'organization.usage.completions.result';
|
|
2298
2531
|
|
|
2299
2532
|
/**
|
|
2300
|
-
* The aggregated number of
|
|
2301
|
-
*
|
|
2533
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
2534
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
2535
|
+
* tokens.
|
|
2302
2536
|
*/
|
|
2303
2537
|
output_tokens: number;
|
|
2304
2538
|
|
|
@@ -2315,17 +2549,53 @@ export namespace UsageCostsResponse {
|
|
|
2315
2549
|
batch?: boolean | null;
|
|
2316
2550
|
|
|
2317
2551
|
/**
|
|
2318
|
-
* The aggregated number of audio input tokens used
|
|
2552
|
+
* The aggregated number of uncached audio input tokens used.
|
|
2319
2553
|
*/
|
|
2320
2554
|
input_audio_tokens?: number;
|
|
2321
2555
|
|
|
2322
2556
|
/**
|
|
2323
|
-
* The aggregated number of
|
|
2324
|
-
|
|
2325
|
-
|
|
2557
|
+
* The aggregated number of input tokens written to the cache.
|
|
2558
|
+
*/
|
|
2559
|
+
input_cache_write_tokens?: number;
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* The aggregated number of cached audio input tokens used.
|
|
2563
|
+
*/
|
|
2564
|
+
input_cached_audio_tokens?: number;
|
|
2565
|
+
|
|
2566
|
+
/**
|
|
2567
|
+
* The aggregated number of cached image input tokens used.
|
|
2568
|
+
*/
|
|
2569
|
+
input_cached_image_tokens?: number;
|
|
2570
|
+
|
|
2571
|
+
/**
|
|
2572
|
+
* The aggregated number of cached text input tokens used.
|
|
2573
|
+
*/
|
|
2574
|
+
input_cached_text_tokens?: number;
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
2578
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
2326
2579
|
*/
|
|
2327
2580
|
input_cached_tokens?: number;
|
|
2328
2581
|
|
|
2582
|
+
/**
|
|
2583
|
+
* The aggregated number of uncached image input tokens used.
|
|
2584
|
+
*/
|
|
2585
|
+
input_image_tokens?: number;
|
|
2586
|
+
|
|
2587
|
+
/**
|
|
2588
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
2589
|
+
* tokens.
|
|
2590
|
+
*/
|
|
2591
|
+
input_text_tokens?: number;
|
|
2592
|
+
|
|
2593
|
+
/**
|
|
2594
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
2595
|
+
* image inputs, excluding cache-write tokens.
|
|
2596
|
+
*/
|
|
2597
|
+
input_uncached_tokens?: number;
|
|
2598
|
+
|
|
2329
2599
|
/**
|
|
2330
2600
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2331
2601
|
* result.
|
|
@@ -2337,6 +2607,16 @@ export namespace UsageCostsResponse {
|
|
|
2337
2607
|
*/
|
|
2338
2608
|
output_audio_tokens?: number;
|
|
2339
2609
|
|
|
2610
|
+
/**
|
|
2611
|
+
* The aggregated number of image output tokens used.
|
|
2612
|
+
*/
|
|
2613
|
+
output_image_tokens?: number;
|
|
2614
|
+
|
|
2615
|
+
/**
|
|
2616
|
+
* The aggregated number of text output tokens used.
|
|
2617
|
+
*/
|
|
2618
|
+
output_text_tokens?: number;
|
|
2619
|
+
|
|
2340
2620
|
/**
|
|
2341
2621
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2342
2622
|
* usage result.
|
|
@@ -2727,6 +3007,12 @@ export namespace UsageCostsResponse {
|
|
|
2727
3007
|
* result.
|
|
2728
3008
|
*/
|
|
2729
3009
|
quantity?: number | null;
|
|
3010
|
+
|
|
3011
|
+
/**
|
|
3012
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
3013
|
+
* result, this field is `null`.
|
|
3014
|
+
*/
|
|
3015
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
2730
3016
|
}
|
|
2731
3017
|
|
|
2732
3018
|
export namespace OrganizationCostsResult {
|
|
@@ -2787,8 +3073,9 @@ export namespace UsageEmbeddingsResponse {
|
|
|
2787
3073
|
*/
|
|
2788
3074
|
export interface OrganizationUsageCompletionsResult {
|
|
2789
3075
|
/**
|
|
2790
|
-
* The aggregated number of
|
|
2791
|
-
*
|
|
3076
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
3077
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
3078
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
2792
3079
|
*/
|
|
2793
3080
|
input_tokens: number;
|
|
2794
3081
|
|
|
@@ -2800,8 +3087,9 @@ export namespace UsageEmbeddingsResponse {
|
|
|
2800
3087
|
object: 'organization.usage.completions.result';
|
|
2801
3088
|
|
|
2802
3089
|
/**
|
|
2803
|
-
* The aggregated number of
|
|
2804
|
-
*
|
|
3090
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
3091
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
3092
|
+
* tokens.
|
|
2805
3093
|
*/
|
|
2806
3094
|
output_tokens: number;
|
|
2807
3095
|
|
|
@@ -2818,17 +3106,53 @@ export namespace UsageEmbeddingsResponse {
|
|
|
2818
3106
|
batch?: boolean | null;
|
|
2819
3107
|
|
|
2820
3108
|
/**
|
|
2821
|
-
* The aggregated number of audio input tokens used
|
|
3109
|
+
* The aggregated number of uncached audio input tokens used.
|
|
2822
3110
|
*/
|
|
2823
3111
|
input_audio_tokens?: number;
|
|
2824
3112
|
|
|
2825
3113
|
/**
|
|
2826
|
-
* The aggregated number of
|
|
2827
|
-
|
|
2828
|
-
|
|
3114
|
+
* The aggregated number of input tokens written to the cache.
|
|
3115
|
+
*/
|
|
3116
|
+
input_cache_write_tokens?: number;
|
|
3117
|
+
|
|
3118
|
+
/**
|
|
3119
|
+
* The aggregated number of cached audio input tokens used.
|
|
3120
|
+
*/
|
|
3121
|
+
input_cached_audio_tokens?: number;
|
|
3122
|
+
|
|
3123
|
+
/**
|
|
3124
|
+
* The aggregated number of cached image input tokens used.
|
|
3125
|
+
*/
|
|
3126
|
+
input_cached_image_tokens?: number;
|
|
3127
|
+
|
|
3128
|
+
/**
|
|
3129
|
+
* The aggregated number of cached text input tokens used.
|
|
3130
|
+
*/
|
|
3131
|
+
input_cached_text_tokens?: number;
|
|
3132
|
+
|
|
3133
|
+
/**
|
|
3134
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
3135
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
2829
3136
|
*/
|
|
2830
3137
|
input_cached_tokens?: number;
|
|
2831
3138
|
|
|
3139
|
+
/**
|
|
3140
|
+
* The aggregated number of uncached image input tokens used.
|
|
3141
|
+
*/
|
|
3142
|
+
input_image_tokens?: number;
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
3146
|
+
* tokens.
|
|
3147
|
+
*/
|
|
3148
|
+
input_text_tokens?: number;
|
|
3149
|
+
|
|
3150
|
+
/**
|
|
3151
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
3152
|
+
* image inputs, excluding cache-write tokens.
|
|
3153
|
+
*/
|
|
3154
|
+
input_uncached_tokens?: number;
|
|
3155
|
+
|
|
2832
3156
|
/**
|
|
2833
3157
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2834
3158
|
* result.
|
|
@@ -2840,6 +3164,16 @@ export namespace UsageEmbeddingsResponse {
|
|
|
2840
3164
|
*/
|
|
2841
3165
|
output_audio_tokens?: number;
|
|
2842
3166
|
|
|
3167
|
+
/**
|
|
3168
|
+
* The aggregated number of image output tokens used.
|
|
3169
|
+
*/
|
|
3170
|
+
output_image_tokens?: number;
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* The aggregated number of text output tokens used.
|
|
3174
|
+
*/
|
|
3175
|
+
output_text_tokens?: number;
|
|
3176
|
+
|
|
2843
3177
|
/**
|
|
2844
3178
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2845
3179
|
* usage result.
|
|
@@ -3230,6 +3564,12 @@ export namespace UsageEmbeddingsResponse {
|
|
|
3230
3564
|
* result.
|
|
3231
3565
|
*/
|
|
3232
3566
|
quantity?: number | null;
|
|
3567
|
+
|
|
3568
|
+
/**
|
|
3569
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
3570
|
+
* result, this field is `null`.
|
|
3571
|
+
*/
|
|
3572
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
3233
3573
|
}
|
|
3234
3574
|
|
|
3235
3575
|
export namespace OrganizationCostsResult {
|
|
@@ -3290,8 +3630,9 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3290
3630
|
*/
|
|
3291
3631
|
export interface OrganizationUsageCompletionsResult {
|
|
3292
3632
|
/**
|
|
3293
|
-
* The aggregated number of
|
|
3294
|
-
*
|
|
3633
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
3634
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
3635
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
3295
3636
|
*/
|
|
3296
3637
|
input_tokens: number;
|
|
3297
3638
|
|
|
@@ -3303,8 +3644,9 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3303
3644
|
object: 'organization.usage.completions.result';
|
|
3304
3645
|
|
|
3305
3646
|
/**
|
|
3306
|
-
* The aggregated number of
|
|
3307
|
-
*
|
|
3647
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
3648
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
3649
|
+
* tokens.
|
|
3308
3650
|
*/
|
|
3309
3651
|
output_tokens: number;
|
|
3310
3652
|
|
|
@@ -3321,17 +3663,53 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3321
3663
|
batch?: boolean | null;
|
|
3322
3664
|
|
|
3323
3665
|
/**
|
|
3324
|
-
* The aggregated number of audio input tokens used
|
|
3666
|
+
* The aggregated number of uncached audio input tokens used.
|
|
3325
3667
|
*/
|
|
3326
3668
|
input_audio_tokens?: number;
|
|
3327
3669
|
|
|
3328
3670
|
/**
|
|
3329
|
-
* The aggregated number of
|
|
3330
|
-
|
|
3331
|
-
|
|
3671
|
+
* The aggregated number of input tokens written to the cache.
|
|
3672
|
+
*/
|
|
3673
|
+
input_cache_write_tokens?: number;
|
|
3674
|
+
|
|
3675
|
+
/**
|
|
3676
|
+
* The aggregated number of cached audio input tokens used.
|
|
3677
|
+
*/
|
|
3678
|
+
input_cached_audio_tokens?: number;
|
|
3679
|
+
|
|
3680
|
+
/**
|
|
3681
|
+
* The aggregated number of cached image input tokens used.
|
|
3682
|
+
*/
|
|
3683
|
+
input_cached_image_tokens?: number;
|
|
3684
|
+
|
|
3685
|
+
/**
|
|
3686
|
+
* The aggregated number of cached text input tokens used.
|
|
3687
|
+
*/
|
|
3688
|
+
input_cached_text_tokens?: number;
|
|
3689
|
+
|
|
3690
|
+
/**
|
|
3691
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
3692
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
3332
3693
|
*/
|
|
3333
3694
|
input_cached_tokens?: number;
|
|
3334
3695
|
|
|
3696
|
+
/**
|
|
3697
|
+
* The aggregated number of uncached image input tokens used.
|
|
3698
|
+
*/
|
|
3699
|
+
input_image_tokens?: number;
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
3703
|
+
* tokens.
|
|
3704
|
+
*/
|
|
3705
|
+
input_text_tokens?: number;
|
|
3706
|
+
|
|
3707
|
+
/**
|
|
3708
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
3709
|
+
* image inputs, excluding cache-write tokens.
|
|
3710
|
+
*/
|
|
3711
|
+
input_uncached_tokens?: number;
|
|
3712
|
+
|
|
3335
3713
|
/**
|
|
3336
3714
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
3337
3715
|
* result.
|
|
@@ -3343,6 +3721,16 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3343
3721
|
*/
|
|
3344
3722
|
output_audio_tokens?: number;
|
|
3345
3723
|
|
|
3724
|
+
/**
|
|
3725
|
+
* The aggregated number of image output tokens used.
|
|
3726
|
+
*/
|
|
3727
|
+
output_image_tokens?: number;
|
|
3728
|
+
|
|
3729
|
+
/**
|
|
3730
|
+
* The aggregated number of text output tokens used.
|
|
3731
|
+
*/
|
|
3732
|
+
output_text_tokens?: number;
|
|
3733
|
+
|
|
3346
3734
|
/**
|
|
3347
3735
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3348
3736
|
* usage result.
|
|
@@ -3733,6 +4121,12 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3733
4121
|
* result.
|
|
3734
4122
|
*/
|
|
3735
4123
|
quantity?: number | null;
|
|
4124
|
+
|
|
4125
|
+
/**
|
|
4126
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
4127
|
+
* result, this field is `null`.
|
|
4128
|
+
*/
|
|
4129
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
3736
4130
|
}
|
|
3737
4131
|
|
|
3738
4132
|
export namespace OrganizationCostsResult {
|
|
@@ -3793,8 +4187,9 @@ export namespace UsageImagesResponse {
|
|
|
3793
4187
|
*/
|
|
3794
4188
|
export interface OrganizationUsageCompletionsResult {
|
|
3795
4189
|
/**
|
|
3796
|
-
* The aggregated number of
|
|
3797
|
-
*
|
|
4190
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
4191
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
4192
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
3798
4193
|
*/
|
|
3799
4194
|
input_tokens: number;
|
|
3800
4195
|
|
|
@@ -3806,8 +4201,9 @@ export namespace UsageImagesResponse {
|
|
|
3806
4201
|
object: 'organization.usage.completions.result';
|
|
3807
4202
|
|
|
3808
4203
|
/**
|
|
3809
|
-
* The aggregated number of
|
|
3810
|
-
*
|
|
4204
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
4205
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
4206
|
+
* tokens.
|
|
3811
4207
|
*/
|
|
3812
4208
|
output_tokens: number;
|
|
3813
4209
|
|
|
@@ -3824,17 +4220,53 @@ export namespace UsageImagesResponse {
|
|
|
3824
4220
|
batch?: boolean | null;
|
|
3825
4221
|
|
|
3826
4222
|
/**
|
|
3827
|
-
* The aggregated number of audio input tokens used
|
|
4223
|
+
* The aggregated number of uncached audio input tokens used.
|
|
3828
4224
|
*/
|
|
3829
4225
|
input_audio_tokens?: number;
|
|
3830
4226
|
|
|
3831
4227
|
/**
|
|
3832
|
-
* The aggregated number of
|
|
3833
|
-
|
|
3834
|
-
|
|
4228
|
+
* The aggregated number of input tokens written to the cache.
|
|
4229
|
+
*/
|
|
4230
|
+
input_cache_write_tokens?: number;
|
|
4231
|
+
|
|
4232
|
+
/**
|
|
4233
|
+
* The aggregated number of cached audio input tokens used.
|
|
4234
|
+
*/
|
|
4235
|
+
input_cached_audio_tokens?: number;
|
|
4236
|
+
|
|
4237
|
+
/**
|
|
4238
|
+
* The aggregated number of cached image input tokens used.
|
|
4239
|
+
*/
|
|
4240
|
+
input_cached_image_tokens?: number;
|
|
4241
|
+
|
|
4242
|
+
/**
|
|
4243
|
+
* The aggregated number of cached text input tokens used.
|
|
4244
|
+
*/
|
|
4245
|
+
input_cached_text_tokens?: number;
|
|
4246
|
+
|
|
4247
|
+
/**
|
|
4248
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
4249
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
3835
4250
|
*/
|
|
3836
4251
|
input_cached_tokens?: number;
|
|
3837
4252
|
|
|
4253
|
+
/**
|
|
4254
|
+
* The aggregated number of uncached image input tokens used.
|
|
4255
|
+
*/
|
|
4256
|
+
input_image_tokens?: number;
|
|
4257
|
+
|
|
4258
|
+
/**
|
|
4259
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
4260
|
+
* tokens.
|
|
4261
|
+
*/
|
|
4262
|
+
input_text_tokens?: number;
|
|
4263
|
+
|
|
4264
|
+
/**
|
|
4265
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
4266
|
+
* image inputs, excluding cache-write tokens.
|
|
4267
|
+
*/
|
|
4268
|
+
input_uncached_tokens?: number;
|
|
4269
|
+
|
|
3838
4270
|
/**
|
|
3839
4271
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
3840
4272
|
* result.
|
|
@@ -3846,6 +4278,16 @@ export namespace UsageImagesResponse {
|
|
|
3846
4278
|
*/
|
|
3847
4279
|
output_audio_tokens?: number;
|
|
3848
4280
|
|
|
4281
|
+
/**
|
|
4282
|
+
* The aggregated number of image output tokens used.
|
|
4283
|
+
*/
|
|
4284
|
+
output_image_tokens?: number;
|
|
4285
|
+
|
|
4286
|
+
/**
|
|
4287
|
+
* The aggregated number of text output tokens used.
|
|
4288
|
+
*/
|
|
4289
|
+
output_text_tokens?: number;
|
|
4290
|
+
|
|
3849
4291
|
/**
|
|
3850
4292
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3851
4293
|
* usage result.
|
|
@@ -4236,6 +4678,12 @@ export namespace UsageImagesResponse {
|
|
|
4236
4678
|
* result.
|
|
4237
4679
|
*/
|
|
4238
4680
|
quantity?: number | null;
|
|
4681
|
+
|
|
4682
|
+
/**
|
|
4683
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
4684
|
+
* result, this field is `null`.
|
|
4685
|
+
*/
|
|
4686
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
4239
4687
|
}
|
|
4240
4688
|
|
|
4241
4689
|
export namespace OrganizationCostsResult {
|
|
@@ -4296,8 +4744,9 @@ export namespace UsageModerationsResponse {
|
|
|
4296
4744
|
*/
|
|
4297
4745
|
export interface OrganizationUsageCompletionsResult {
|
|
4298
4746
|
/**
|
|
4299
|
-
* The aggregated number of
|
|
4300
|
-
*
|
|
4747
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
4748
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
4749
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
4301
4750
|
*/
|
|
4302
4751
|
input_tokens: number;
|
|
4303
4752
|
|
|
@@ -4309,8 +4758,9 @@ export namespace UsageModerationsResponse {
|
|
|
4309
4758
|
object: 'organization.usage.completions.result';
|
|
4310
4759
|
|
|
4311
4760
|
/**
|
|
4312
|
-
* The aggregated number of
|
|
4313
|
-
*
|
|
4761
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
4762
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
4763
|
+
* tokens.
|
|
4314
4764
|
*/
|
|
4315
4765
|
output_tokens: number;
|
|
4316
4766
|
|
|
@@ -4327,17 +4777,53 @@ export namespace UsageModerationsResponse {
|
|
|
4327
4777
|
batch?: boolean | null;
|
|
4328
4778
|
|
|
4329
4779
|
/**
|
|
4330
|
-
* The aggregated number of audio input tokens used
|
|
4780
|
+
* The aggregated number of uncached audio input tokens used.
|
|
4331
4781
|
*/
|
|
4332
4782
|
input_audio_tokens?: number;
|
|
4333
4783
|
|
|
4334
4784
|
/**
|
|
4335
|
-
* The aggregated number of
|
|
4336
|
-
|
|
4337
|
-
|
|
4785
|
+
* The aggregated number of input tokens written to the cache.
|
|
4786
|
+
*/
|
|
4787
|
+
input_cache_write_tokens?: number;
|
|
4788
|
+
|
|
4789
|
+
/**
|
|
4790
|
+
* The aggregated number of cached audio input tokens used.
|
|
4791
|
+
*/
|
|
4792
|
+
input_cached_audio_tokens?: number;
|
|
4793
|
+
|
|
4794
|
+
/**
|
|
4795
|
+
* The aggregated number of cached image input tokens used.
|
|
4796
|
+
*/
|
|
4797
|
+
input_cached_image_tokens?: number;
|
|
4798
|
+
|
|
4799
|
+
/**
|
|
4800
|
+
* The aggregated number of cached text input tokens used.
|
|
4801
|
+
*/
|
|
4802
|
+
input_cached_text_tokens?: number;
|
|
4803
|
+
|
|
4804
|
+
/**
|
|
4805
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
4806
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
4338
4807
|
*/
|
|
4339
4808
|
input_cached_tokens?: number;
|
|
4340
4809
|
|
|
4810
|
+
/**
|
|
4811
|
+
* The aggregated number of uncached image input tokens used.
|
|
4812
|
+
*/
|
|
4813
|
+
input_image_tokens?: number;
|
|
4814
|
+
|
|
4815
|
+
/**
|
|
4816
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
4817
|
+
* tokens.
|
|
4818
|
+
*/
|
|
4819
|
+
input_text_tokens?: number;
|
|
4820
|
+
|
|
4821
|
+
/**
|
|
4822
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
4823
|
+
* image inputs, excluding cache-write tokens.
|
|
4824
|
+
*/
|
|
4825
|
+
input_uncached_tokens?: number;
|
|
4826
|
+
|
|
4341
4827
|
/**
|
|
4342
4828
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
4343
4829
|
* result.
|
|
@@ -4349,6 +4835,16 @@ export namespace UsageModerationsResponse {
|
|
|
4349
4835
|
*/
|
|
4350
4836
|
output_audio_tokens?: number;
|
|
4351
4837
|
|
|
4838
|
+
/**
|
|
4839
|
+
* The aggregated number of image output tokens used.
|
|
4840
|
+
*/
|
|
4841
|
+
output_image_tokens?: number;
|
|
4842
|
+
|
|
4843
|
+
/**
|
|
4844
|
+
* The aggregated number of text output tokens used.
|
|
4845
|
+
*/
|
|
4846
|
+
output_text_tokens?: number;
|
|
4847
|
+
|
|
4352
4848
|
/**
|
|
4353
4849
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
4354
4850
|
* usage result.
|
|
@@ -4739,6 +5235,12 @@ export namespace UsageModerationsResponse {
|
|
|
4739
5235
|
* result.
|
|
4740
5236
|
*/
|
|
4741
5237
|
quantity?: number | null;
|
|
5238
|
+
|
|
5239
|
+
/**
|
|
5240
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
5241
|
+
* result, this field is `null`.
|
|
5242
|
+
*/
|
|
5243
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
4742
5244
|
}
|
|
4743
5245
|
|
|
4744
5246
|
export namespace OrganizationCostsResult {
|
|
@@ -4799,8 +5301,9 @@ export namespace UsageVectorStoresResponse {
|
|
|
4799
5301
|
*/
|
|
4800
5302
|
export interface OrganizationUsageCompletionsResult {
|
|
4801
5303
|
/**
|
|
4802
|
-
* The aggregated number of
|
|
4803
|
-
*
|
|
5304
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
5305
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
5306
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
4804
5307
|
*/
|
|
4805
5308
|
input_tokens: number;
|
|
4806
5309
|
|
|
@@ -4812,8 +5315,9 @@ export namespace UsageVectorStoresResponse {
|
|
|
4812
5315
|
object: 'organization.usage.completions.result';
|
|
4813
5316
|
|
|
4814
5317
|
/**
|
|
4815
|
-
* The aggregated number of
|
|
4816
|
-
*
|
|
5318
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
5319
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
5320
|
+
* tokens.
|
|
4817
5321
|
*/
|
|
4818
5322
|
output_tokens: number;
|
|
4819
5323
|
|
|
@@ -4830,17 +5334,53 @@ export namespace UsageVectorStoresResponse {
|
|
|
4830
5334
|
batch?: boolean | null;
|
|
4831
5335
|
|
|
4832
5336
|
/**
|
|
4833
|
-
* The aggregated number of audio input tokens used
|
|
5337
|
+
* The aggregated number of uncached audio input tokens used.
|
|
4834
5338
|
*/
|
|
4835
5339
|
input_audio_tokens?: number;
|
|
4836
5340
|
|
|
4837
5341
|
/**
|
|
4838
|
-
* The aggregated number of
|
|
4839
|
-
|
|
4840
|
-
|
|
5342
|
+
* The aggregated number of input tokens written to the cache.
|
|
5343
|
+
*/
|
|
5344
|
+
input_cache_write_tokens?: number;
|
|
5345
|
+
|
|
5346
|
+
/**
|
|
5347
|
+
* The aggregated number of cached audio input tokens used.
|
|
5348
|
+
*/
|
|
5349
|
+
input_cached_audio_tokens?: number;
|
|
5350
|
+
|
|
5351
|
+
/**
|
|
5352
|
+
* The aggregated number of cached image input tokens used.
|
|
5353
|
+
*/
|
|
5354
|
+
input_cached_image_tokens?: number;
|
|
5355
|
+
|
|
5356
|
+
/**
|
|
5357
|
+
* The aggregated number of cached text input tokens used.
|
|
5358
|
+
*/
|
|
5359
|
+
input_cached_text_tokens?: number;
|
|
5360
|
+
|
|
5361
|
+
/**
|
|
5362
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
5363
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
4841
5364
|
*/
|
|
4842
5365
|
input_cached_tokens?: number;
|
|
4843
5366
|
|
|
5367
|
+
/**
|
|
5368
|
+
* The aggregated number of uncached image input tokens used.
|
|
5369
|
+
*/
|
|
5370
|
+
input_image_tokens?: number;
|
|
5371
|
+
|
|
5372
|
+
/**
|
|
5373
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
5374
|
+
* tokens.
|
|
5375
|
+
*/
|
|
5376
|
+
input_text_tokens?: number;
|
|
5377
|
+
|
|
5378
|
+
/**
|
|
5379
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
5380
|
+
* image inputs, excluding cache-write tokens.
|
|
5381
|
+
*/
|
|
5382
|
+
input_uncached_tokens?: number;
|
|
5383
|
+
|
|
4844
5384
|
/**
|
|
4845
5385
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
4846
5386
|
* result.
|
|
@@ -4852,6 +5392,16 @@ export namespace UsageVectorStoresResponse {
|
|
|
4852
5392
|
*/
|
|
4853
5393
|
output_audio_tokens?: number;
|
|
4854
5394
|
|
|
5395
|
+
/**
|
|
5396
|
+
* The aggregated number of image output tokens used.
|
|
5397
|
+
*/
|
|
5398
|
+
output_image_tokens?: number;
|
|
5399
|
+
|
|
5400
|
+
/**
|
|
5401
|
+
* The aggregated number of text output tokens used.
|
|
5402
|
+
*/
|
|
5403
|
+
output_text_tokens?: number;
|
|
5404
|
+
|
|
4855
5405
|
/**
|
|
4856
5406
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
4857
5407
|
* usage result.
|
|
@@ -5242,6 +5792,12 @@ export namespace UsageVectorStoresResponse {
|
|
|
5242
5792
|
* result.
|
|
5243
5793
|
*/
|
|
5244
5794
|
quantity?: number | null;
|
|
5795
|
+
|
|
5796
|
+
/**
|
|
5797
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
5798
|
+
* result, this field is `null`.
|
|
5799
|
+
*/
|
|
5800
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
5245
5801
|
}
|
|
5246
5802
|
|
|
5247
5803
|
export namespace OrganizationCostsResult {
|
|
@@ -5302,8 +5858,9 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5302
5858
|
*/
|
|
5303
5859
|
export interface OrganizationUsageCompletionsResult {
|
|
5304
5860
|
/**
|
|
5305
|
-
* The aggregated number of
|
|
5306
|
-
*
|
|
5861
|
+
* The aggregated number of input tokens used, including cached and cache-write
|
|
5862
|
+
* tokens. This includes text, audio, and image tokens. For customers subscribed to
|
|
5863
|
+
* Scale Tier, this includes Scale Tier tokens.
|
|
5307
5864
|
*/
|
|
5308
5865
|
input_tokens: number;
|
|
5309
5866
|
|
|
@@ -5315,8 +5872,9 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5315
5872
|
object: 'organization.usage.completions.result';
|
|
5316
5873
|
|
|
5317
5874
|
/**
|
|
5318
|
-
* The aggregated number of
|
|
5319
|
-
*
|
|
5875
|
+
* The aggregated number of output tokens used across text, audio, and image
|
|
5876
|
+
* outputs. For customers subscribed to Scale Tier, this includes Scale Tier
|
|
5877
|
+
* tokens.
|
|
5320
5878
|
*/
|
|
5321
5879
|
output_tokens: number;
|
|
5322
5880
|
|
|
@@ -5333,17 +5891,53 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5333
5891
|
batch?: boolean | null;
|
|
5334
5892
|
|
|
5335
5893
|
/**
|
|
5336
|
-
* The aggregated number of audio input tokens used
|
|
5894
|
+
* The aggregated number of uncached audio input tokens used.
|
|
5337
5895
|
*/
|
|
5338
5896
|
input_audio_tokens?: number;
|
|
5339
5897
|
|
|
5340
5898
|
/**
|
|
5341
|
-
* The aggregated number of
|
|
5342
|
-
|
|
5343
|
-
|
|
5899
|
+
* The aggregated number of input tokens written to the cache.
|
|
5900
|
+
*/
|
|
5901
|
+
input_cache_write_tokens?: number;
|
|
5902
|
+
|
|
5903
|
+
/**
|
|
5904
|
+
* The aggregated number of cached audio input tokens used.
|
|
5905
|
+
*/
|
|
5906
|
+
input_cached_audio_tokens?: number;
|
|
5907
|
+
|
|
5908
|
+
/**
|
|
5909
|
+
* The aggregated number of cached image input tokens used.
|
|
5910
|
+
*/
|
|
5911
|
+
input_cached_image_tokens?: number;
|
|
5912
|
+
|
|
5913
|
+
/**
|
|
5914
|
+
* The aggregated number of cached text input tokens used.
|
|
5915
|
+
*/
|
|
5916
|
+
input_cached_text_tokens?: number;
|
|
5917
|
+
|
|
5918
|
+
/**
|
|
5919
|
+
* The aggregated number of cached input tokens used across text, audio, and image
|
|
5920
|
+
* inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
|
|
5344
5921
|
*/
|
|
5345
5922
|
input_cached_tokens?: number;
|
|
5346
5923
|
|
|
5924
|
+
/**
|
|
5925
|
+
* The aggregated number of uncached image input tokens used.
|
|
5926
|
+
*/
|
|
5927
|
+
input_image_tokens?: number;
|
|
5928
|
+
|
|
5929
|
+
/**
|
|
5930
|
+
* The aggregated number of uncached text input tokens used, excluding cache-write
|
|
5931
|
+
* tokens.
|
|
5932
|
+
*/
|
|
5933
|
+
input_text_tokens?: number;
|
|
5934
|
+
|
|
5935
|
+
/**
|
|
5936
|
+
* The aggregated number of uncached input tokens used across text, audio, and
|
|
5937
|
+
* image inputs, excluding cache-write tokens.
|
|
5938
|
+
*/
|
|
5939
|
+
input_uncached_tokens?: number;
|
|
5940
|
+
|
|
5347
5941
|
/**
|
|
5348
5942
|
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
5349
5943
|
* result.
|
|
@@ -5355,6 +5949,16 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5355
5949
|
*/
|
|
5356
5950
|
output_audio_tokens?: number;
|
|
5357
5951
|
|
|
5952
|
+
/**
|
|
5953
|
+
* The aggregated number of image output tokens used.
|
|
5954
|
+
*/
|
|
5955
|
+
output_image_tokens?: number;
|
|
5956
|
+
|
|
5957
|
+
/**
|
|
5958
|
+
* The aggregated number of text output tokens used.
|
|
5959
|
+
*/
|
|
5960
|
+
output_text_tokens?: number;
|
|
5961
|
+
|
|
5358
5962
|
/**
|
|
5359
5963
|
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
5360
5964
|
* usage result.
|
|
@@ -5745,6 +6349,12 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5745
6349
|
* result.
|
|
5746
6350
|
*/
|
|
5747
6351
|
quantity?: number | null;
|
|
6352
|
+
|
|
6353
|
+
/**
|
|
6354
|
+
* The unit of the `quantity` value. If no single supported unit applies to the
|
|
6355
|
+
* result, this field is `null`.
|
|
6356
|
+
*/
|
|
6357
|
+
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
5748
6358
|
}
|
|
5749
6359
|
|
|
5750
6360
|
export namespace OrganizationCostsResult {
|
|
@@ -6028,6 +6638,12 @@ export interface UsageCostsParams {
|
|
|
6028
6638
|
*/
|
|
6029
6639
|
limit?: number;
|
|
6030
6640
|
|
|
6641
|
+
/**
|
|
6642
|
+
* Return only costs for these exact line item names. Each value must match the
|
|
6643
|
+
* complete `line_item` value, for example `gpt-6-astra, input_tokens`.
|
|
6644
|
+
*/
|
|
6645
|
+
line_items?: Array<string>;
|
|
6646
|
+
|
|
6031
6647
|
/**
|
|
6032
6648
|
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
6033
6649
|
* previous response.
|
|
@@ -6401,6 +7017,7 @@ export interface UsageWebSearchCallsParams {
|
|
|
6401
7017
|
|
|
6402
7018
|
export declare namespace Usage {
|
|
6403
7019
|
export {
|
|
7020
|
+
type CostQuantityUnit as CostQuantityUnit,
|
|
6404
7021
|
type UsageAudioSpeechesResponse as UsageAudioSpeechesResponse,
|
|
6405
7022
|
type UsageAudioTranscriptionsResponse as UsageAudioTranscriptionsResponse,
|
|
6406
7023
|
type UsageCodeInterpreterSessionsResponse as UsageCodeInterpreterSessionsResponse,
|