openai 7.28.0 → 7.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/helpers/standard-schema.d.mts +8 -3
- package/helpers/standard-schema.d.mts.map +1 -1
- package/helpers/standard-schema.d.ts +8 -3
- package/helpers/standard-schema.d.ts.map +1 -1
- package/helpers/standard-schema.js +1 -0
- package/helpers/standard-schema.js.map +1 -1
- package/helpers/standard-schema.mjs +1 -0
- package/helpers/standard-schema.mjs.map +1 -1
- package/helpers/zod.d.mts +2 -0
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +2 -0
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +1 -0
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +1 -0
- package/helpers/zod.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts +2 -1
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +2 -1
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +9 -2
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +9 -2
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +5 -0
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +5 -0
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/agents/agent-session-stream.d.mts +7 -0
- package/lib/agents/agent-session-stream.d.mts.map +1 -1
- package/lib/agents/agent-session-stream.d.ts +7 -0
- package/lib/agents/agent-session-stream.d.ts.map +1 -1
- package/lib/agents/agent-session-stream.js +8 -110
- package/lib/agents/agent-session-stream.js.map +1 -1
- package/lib/agents/agent-session-stream.mjs +9 -111
- package/lib/agents/agent-session-stream.mjs.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.d.mts +41 -1
- package/lib/beta/agents/agent-session-create-stream.d.mts.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.d.ts +41 -1
- package/lib/beta/agents/agent-session-create-stream.d.ts.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.js +70 -2
- package/lib/beta/agents/agent-session-create-stream.js.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.mjs +69 -2
- package/lib/beta/agents/agent-session-create-stream.mjs.map +1 -1
- package/lib/beta/agents/function-tool.d.mts.map +1 -1
- package/lib/beta/agents/function-tool.d.ts.map +1 -1
- package/lib/beta/agents/function-tool.js +22 -15
- package/lib/beta/agents/function-tool.js.map +1 -1
- package/lib/beta/agents/function-tool.mjs +22 -15
- package/lib/beta/agents/function-tool.mjs.map +1 -1
- package/lib/beta/agents/parse-result.d.mts +2 -0
- package/lib/beta/agents/parse-result.d.mts.map +1 -1
- package/lib/beta/agents/parse-result.d.ts +2 -0
- package/lib/beta/agents/parse-result.d.ts.map +1 -1
- package/lib/beta/agents/tool-dispatcher.d.mts +13 -0
- package/lib/beta/agents/tool-dispatcher.d.mts.map +1 -0
- package/lib/beta/agents/tool-dispatcher.d.ts +13 -0
- package/lib/beta/agents/tool-dispatcher.d.ts.map +1 -0
- package/lib/beta/agents/tool-dispatcher.js +185 -0
- package/lib/beta/agents/tool-dispatcher.js.map +1 -0
- package/lib/beta/agents/tool-dispatcher.mjs +181 -0
- package/lib/beta/agents/tool-dispatcher.mjs.map +1 -0
- package/lib/beta/agents/tool-error.d.mts +13 -0
- package/lib/beta/agents/tool-error.d.mts.map +1 -0
- package/lib/beta/agents/tool-error.d.ts +13 -0
- package/lib/beta/agents/tool-error.d.ts.map +1 -0
- package/lib/beta/agents/tool-error.js +3 -0
- package/lib/beta/agents/tool-error.js.map +1 -0
- package/lib/beta/agents/tool-error.mjs +2 -0
- package/lib/beta/agents/tool-error.mjs.map +1 -0
- package/lib/beta/agents/tool-stages.d.mts +12 -0
- package/lib/beta/agents/tool-stages.d.mts.map +1 -0
- package/lib/beta/agents/tool-stages.d.ts +12 -0
- package/lib/beta/agents/tool-stages.d.ts.map +1 -0
- package/lib/beta/agents/tool-stages.js +6 -0
- package/lib/beta/agents/tool-stages.js.map +1 -0
- package/lib/beta/agents/tool-stages.mjs +3 -0
- package/lib/beta/agents/tool-stages.mjs.map +1 -0
- package/lib/chat-completions/streaming.d.mts +11 -0
- package/lib/chat-completions/streaming.d.mts.map +1 -0
- package/lib/chat-completions/streaming.d.ts +11 -0
- package/lib/chat-completions/streaming.d.ts.map +1 -0
- package/lib/chat-completions/streaming.js +27 -0
- package/lib/chat-completions/streaming.js.map +1 -0
- package/lib/chat-completions/streaming.mjs +23 -0
- package/lib/chat-completions/streaming.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/admin/organization/usage.d.mts +304 -9
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +304 -9
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/beta/agents/agents.d.mts +12 -6
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +12 -6
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +6 -8
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +6 -8
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/sessions/index.d.mts +1 -1
- package/resources/beta/agents/sessions/index.d.mts.map +1 -1
- package/resources/beta/agents/sessions/index.d.ts +1 -1
- package/resources/beta/agents/sessions/index.d.ts.map +1 -1
- package/resources/beta/agents/sessions/index.js +2 -2
- package/resources/beta/agents/sessions/index.js.map +1 -1
- package/resources/beta/agents/sessions/index.mjs +1 -1
- package/resources/beta/agents/sessions/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +6 -3
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +6 -3
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +7 -4
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +8 -5
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.mts +2 -2
- package/resources/beta/agents/sessions/subagents/turns/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/subagents/turns/turns.d.ts +2 -2
- package/resources/beta/agents/sessions/subagents/turns/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns/index.d.mts +3 -0
- package/resources/beta/agents/sessions/turns/index.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/index.d.ts +3 -0
- package/resources/beta/agents/sessions/turns/index.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/index.js +9 -0
- package/resources/beta/agents/sessions/turns/index.js.map +1 -0
- package/resources/beta/agents/sessions/turns/index.mjs +4 -0
- package/resources/beta/agents/sessions/turns/index.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns/items.d.mts +43 -0
- package/resources/beta/agents/sessions/turns/items.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/items.d.ts +43 -0
- package/resources/beta/agents/sessions/turns/items.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/items.js +40 -0
- package/resources/beta/agents/sessions/turns/items.js.map +1 -0
- package/resources/beta/agents/sessions/turns/items.mjs +36 -0
- package/resources/beta/agents/sessions/turns/items.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.d.mts +128 -0
- package/resources/beta/agents/sessions/turns/turns.d.mts.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.d.ts +128 -0
- package/resources/beta/agents/sessions/turns/turns.d.ts.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.js +111 -0
- package/resources/beta/agents/sessions/turns/turns.js.map +1 -0
- package/resources/beta/agents/sessions/turns/turns.mjs +106 -0
- package/resources/beta/agents/sessions/turns/turns.mjs.map +1 -0
- package/resources/beta/agents/sessions/turns.d.mts +1 -123
- package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
- package/resources/beta/agents/sessions/turns.d.ts +1 -123
- package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
- package/resources/beta/agents/sessions/turns.js +2 -99
- package/resources/beta/agents/sessions/turns.js.map +1 -1
- package/resources/beta/agents/sessions/turns.mjs +1 -97
- package/resources/beta/agents/sessions/turns.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/index.d.mts +1 -1
- package/resources/beta/responses/index.d.mts.map +1 -1
- package/resources/beta/responses/index.d.ts +1 -1
- package/resources/beta/responses/index.d.ts.map +1 -1
- package/resources/beta/responses/index.js.map +1 -1
- package/resources/beta/responses/index.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +378 -6
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +378 -6
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +42 -8
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +42 -8
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +5 -2
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +5 -2
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/completions.d.mts +1 -1
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +1 -1
- package/resources/completions.d.ts.map +1 -1
- package/resources/decisions.d.mts +196 -0
- package/resources/decisions.d.mts.map +1 -0
- package/resources/decisions.d.ts +196 -0
- package/resources/decisions.d.ts.map +1 -0
- package/resources/decisions.js +32 -0
- package/resources/decisions.js.map +1 -0
- package/resources/decisions.mjs +28 -0
- package/resources/decisions.mjs.map +1 -0
- package/resources/fine-tuning/jobs/jobs.d.mts +7 -2
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +7 -2
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/graders/grader-models.d.mts +1 -1
- package/resources/graders/grader-models.d.ts +1 -1
- package/resources/images.d.mts +4 -3
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +4 -3
- package/resources/images.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +10 -0
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +10 -0
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/responses/responses.d.mts +380 -6
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +380 -6
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +5 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +5 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/videos.d.mts +5 -0
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +5 -0
- package/resources/videos.d.ts.map +1 -1
- package/src/client.ts +21 -0
- package/src/helpers/standard-schema.ts +11 -4
- package/src/helpers/zod.ts +4 -0
- package/src/lib/ChatCompletionStream.ts +10 -3
- package/src/lib/ResponsesParser.ts +8 -0
- package/src/lib/agents/agent-session-stream.ts +20 -124
- package/src/lib/beta/agents/agent-session-create-stream.ts +87 -1
- package/src/lib/beta/agents/function-tool.ts +23 -15
- package/src/lib/beta/agents/tool-dispatcher.ts +226 -0
- package/src/lib/beta/agents/tool-error.ts +12 -0
- package/src/lib/beta/agents/tool-stages.ts +14 -0
- package/src/lib/chat-completions/streaming.ts +35 -0
- package/src/resources/admin/organization/usage.ts +350 -9
- package/src/resources/beta/agents/agents.ts +14 -5
- package/src/resources/beta/agents/environments/templates.ts +6 -8
- package/src/resources/beta/agents/sessions/index.ts +7 -1
- package/src/resources/beta/agents/sessions/sessions.ts +16 -4
- package/src/resources/beta/agents/sessions/subagents/turns/turns.ts +2 -2
- package/src/resources/beta/agents/sessions/turns/index.ts +4 -0
- package/src/resources/beta/agents/sessions/turns/items.ts +79 -0
- package/src/resources/beta/agents/sessions/turns/turns.ts +383 -0
- package/src/resources/beta/agents/sessions/turns.ts +1 -373
- package/src/resources/beta/beta.ts +2 -0
- package/src/resources/beta/index.ts +1 -0
- package/src/resources/beta/responses/index.ts +1 -0
- package/src/resources/beta/responses/responses.ts +470 -5
- package/src/resources/chat/completions/completions.ts +65 -18
- package/src/resources/completions.ts +1 -1
- package/src/resources/decisions.ts +290 -0
- package/src/resources/fine-tuning/jobs/jobs.ts +7 -2
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/images.ts +4 -3
- package/src/resources/index.ts +9 -0
- package/src/resources/realtime/realtime.ts +10 -0
- package/src/resources/responses/api.md +1 -0
- package/src/resources/responses/responses.ts +472 -5
- package/src/resources/shared.ts +6 -0
- package/src/resources/videos.ts +6 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -354,6 +354,14 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
354
354
|
*/
|
|
355
355
|
api_key_id?: string | null;
|
|
356
356
|
|
|
357
|
+
/**
|
|
358
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
359
|
+
* activity and `unlabeled` includes all records without published source
|
|
360
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
361
|
+
* direct API usage. Without source grouping, this field is null.
|
|
362
|
+
*/
|
|
363
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
364
|
+
|
|
357
365
|
/**
|
|
358
366
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
359
367
|
* batch or not.
|
|
@@ -767,6 +775,14 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
767
775
|
*/
|
|
768
776
|
api_key_id?: string | null;
|
|
769
777
|
|
|
778
|
+
/**
|
|
779
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
780
|
+
* activity and `unlabeled` includes all records without published source
|
|
781
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
782
|
+
* direct API usage. Without source grouping, this field is null.
|
|
783
|
+
*/
|
|
784
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
785
|
+
|
|
770
786
|
/**
|
|
771
787
|
* When `group_by=context_level`, this field provides the search context size of
|
|
772
788
|
* the grouped usage result.
|
|
@@ -809,6 +825,14 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
809
825
|
*/
|
|
810
826
|
api_key_id?: string | null;
|
|
811
827
|
|
|
828
|
+
/**
|
|
829
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
830
|
+
* activity and `unlabeled` includes all records without published source
|
|
831
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
832
|
+
* direct API usage. Without source grouping, this field is null.
|
|
833
|
+
*/
|
|
834
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
835
|
+
|
|
812
836
|
/**
|
|
813
837
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
814
838
|
* costs result.
|
|
@@ -832,6 +856,12 @@ export namespace UsageAudioSpeechesResponse {
|
|
|
832
856
|
* result, this field is `null`.
|
|
833
857
|
*/
|
|
834
858
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
862
|
+
* result.
|
|
863
|
+
*/
|
|
864
|
+
user_id?: string | null;
|
|
835
865
|
}
|
|
836
866
|
|
|
837
867
|
export namespace OrganizationCostsResult {
|
|
@@ -918,6 +948,14 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
918
948
|
*/
|
|
919
949
|
api_key_id?: string | null;
|
|
920
950
|
|
|
951
|
+
/**
|
|
952
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
953
|
+
* activity and `unlabeled` includes all records without published source
|
|
954
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
955
|
+
* direct API usage. Without source grouping, this field is null.
|
|
956
|
+
*/
|
|
957
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
958
|
+
|
|
921
959
|
/**
|
|
922
960
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
923
961
|
* batch or not.
|
|
@@ -1331,6 +1369,14 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
1331
1369
|
*/
|
|
1332
1370
|
api_key_id?: string | null;
|
|
1333
1371
|
|
|
1372
|
+
/**
|
|
1373
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
1374
|
+
* activity and `unlabeled` includes all records without published source
|
|
1375
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
1376
|
+
* direct API usage. Without source grouping, this field is null.
|
|
1377
|
+
*/
|
|
1378
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
1379
|
+
|
|
1334
1380
|
/**
|
|
1335
1381
|
* When `group_by=context_level`, this field provides the search context size of
|
|
1336
1382
|
* the grouped usage result.
|
|
@@ -1373,6 +1419,14 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
1373
1419
|
*/
|
|
1374
1420
|
api_key_id?: string | null;
|
|
1375
1421
|
|
|
1422
|
+
/**
|
|
1423
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
1424
|
+
* activity and `unlabeled` includes all records without published source
|
|
1425
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
1426
|
+
* direct API usage. Without source grouping, this field is null.
|
|
1427
|
+
*/
|
|
1428
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
1429
|
+
|
|
1376
1430
|
/**
|
|
1377
1431
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
1378
1432
|
* costs result.
|
|
@@ -1396,6 +1450,12 @@ export namespace UsageAudioTranscriptionsResponse {
|
|
|
1396
1450
|
* result, this field is `null`.
|
|
1397
1451
|
*/
|
|
1398
1452
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
1456
|
+
* result.
|
|
1457
|
+
*/
|
|
1458
|
+
user_id?: string | null;
|
|
1399
1459
|
}
|
|
1400
1460
|
|
|
1401
1461
|
export namespace OrganizationCostsResult {
|
|
@@ -1482,6 +1542,14 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1482
1542
|
*/
|
|
1483
1543
|
api_key_id?: string | null;
|
|
1484
1544
|
|
|
1545
|
+
/**
|
|
1546
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
1547
|
+
* activity and `unlabeled` includes all records without published source
|
|
1548
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
1549
|
+
* direct API usage. Without source grouping, this field is null.
|
|
1550
|
+
*/
|
|
1551
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
1552
|
+
|
|
1485
1553
|
/**
|
|
1486
1554
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
1487
1555
|
* batch or not.
|
|
@@ -1895,6 +1963,14 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1895
1963
|
*/
|
|
1896
1964
|
api_key_id?: string | null;
|
|
1897
1965
|
|
|
1966
|
+
/**
|
|
1967
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
1968
|
+
* activity and `unlabeled` includes all records without published source
|
|
1969
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
1970
|
+
* direct API usage. Without source grouping, this field is null.
|
|
1971
|
+
*/
|
|
1972
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
1973
|
+
|
|
1898
1974
|
/**
|
|
1899
1975
|
* When `group_by=context_level`, this field provides the search context size of
|
|
1900
1976
|
* the grouped usage result.
|
|
@@ -1937,6 +2013,14 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1937
2013
|
*/
|
|
1938
2014
|
api_key_id?: string | null;
|
|
1939
2015
|
|
|
2016
|
+
/**
|
|
2017
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
2018
|
+
* activity and `unlabeled` includes all records without published source
|
|
2019
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
2020
|
+
* direct API usage. Without source grouping, this field is null.
|
|
2021
|
+
*/
|
|
2022
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
2023
|
+
|
|
1940
2024
|
/**
|
|
1941
2025
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
1942
2026
|
* costs result.
|
|
@@ -1960,6 +2044,12 @@ export namespace UsageCodeInterpreterSessionsResponse {
|
|
|
1960
2044
|
* result, this field is `null`.
|
|
1961
2045
|
*/
|
|
1962
2046
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
2047
|
+
|
|
2048
|
+
/**
|
|
2049
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
2050
|
+
* result.
|
|
2051
|
+
*/
|
|
2052
|
+
user_id?: string | null;
|
|
1963
2053
|
}
|
|
1964
2054
|
|
|
1965
2055
|
export namespace OrganizationCostsResult {
|
|
@@ -2046,6 +2136,14 @@ export namespace UsageCompletionsResponse {
|
|
|
2046
2136
|
*/
|
|
2047
2137
|
api_key_id?: string | null;
|
|
2048
2138
|
|
|
2139
|
+
/**
|
|
2140
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
2141
|
+
* activity and `unlabeled` includes all records without published source
|
|
2142
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
2143
|
+
* direct API usage. Without source grouping, this field is null.
|
|
2144
|
+
*/
|
|
2145
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
2146
|
+
|
|
2049
2147
|
/**
|
|
2050
2148
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
2051
2149
|
* batch or not.
|
|
@@ -2459,6 +2557,14 @@ export namespace UsageCompletionsResponse {
|
|
|
2459
2557
|
*/
|
|
2460
2558
|
api_key_id?: string | null;
|
|
2461
2559
|
|
|
2560
|
+
/**
|
|
2561
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
2562
|
+
* activity and `unlabeled` includes all records without published source
|
|
2563
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
2564
|
+
* direct API usage. Without source grouping, this field is null.
|
|
2565
|
+
*/
|
|
2566
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
2567
|
+
|
|
2462
2568
|
/**
|
|
2463
2569
|
* When `group_by=context_level`, this field provides the search context size of
|
|
2464
2570
|
* the grouped usage result.
|
|
@@ -2501,6 +2607,14 @@ export namespace UsageCompletionsResponse {
|
|
|
2501
2607
|
*/
|
|
2502
2608
|
api_key_id?: string | null;
|
|
2503
2609
|
|
|
2610
|
+
/**
|
|
2611
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
2612
|
+
* activity and `unlabeled` includes all records without published source
|
|
2613
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
2614
|
+
* direct API usage. Without source grouping, this field is null.
|
|
2615
|
+
*/
|
|
2616
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
2617
|
+
|
|
2504
2618
|
/**
|
|
2505
2619
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
2506
2620
|
* costs result.
|
|
@@ -2524,6 +2638,12 @@ export namespace UsageCompletionsResponse {
|
|
|
2524
2638
|
* result, this field is `null`.
|
|
2525
2639
|
*/
|
|
2526
2640
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
2641
|
+
|
|
2642
|
+
/**
|
|
2643
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
2644
|
+
* result.
|
|
2645
|
+
*/
|
|
2646
|
+
user_id?: string | null;
|
|
2527
2647
|
}
|
|
2528
2648
|
|
|
2529
2649
|
export namespace OrganizationCostsResult {
|
|
@@ -2610,6 +2730,14 @@ export namespace UsageCostsResponse {
|
|
|
2610
2730
|
*/
|
|
2611
2731
|
api_key_id?: string | null;
|
|
2612
2732
|
|
|
2733
|
+
/**
|
|
2734
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
2735
|
+
* activity and `unlabeled` includes all records without published source
|
|
2736
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
2737
|
+
* direct API usage. Without source grouping, this field is null.
|
|
2738
|
+
*/
|
|
2739
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
2740
|
+
|
|
2613
2741
|
/**
|
|
2614
2742
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
2615
2743
|
* batch or not.
|
|
@@ -3023,6 +3151,14 @@ export namespace UsageCostsResponse {
|
|
|
3023
3151
|
*/
|
|
3024
3152
|
api_key_id?: string | null;
|
|
3025
3153
|
|
|
3154
|
+
/**
|
|
3155
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
3156
|
+
* activity and `unlabeled` includes all records without published source
|
|
3157
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
3158
|
+
* direct API usage. Without source grouping, this field is null.
|
|
3159
|
+
*/
|
|
3160
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
3161
|
+
|
|
3026
3162
|
/**
|
|
3027
3163
|
* When `group_by=context_level`, this field provides the search context size of
|
|
3028
3164
|
* the grouped usage result.
|
|
@@ -3065,6 +3201,14 @@ export namespace UsageCostsResponse {
|
|
|
3065
3201
|
*/
|
|
3066
3202
|
api_key_id?: string | null;
|
|
3067
3203
|
|
|
3204
|
+
/**
|
|
3205
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
3206
|
+
* activity and `unlabeled` includes all records without published source
|
|
3207
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
3208
|
+
* direct API usage. Without source grouping, this field is null.
|
|
3209
|
+
*/
|
|
3210
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
3211
|
+
|
|
3068
3212
|
/**
|
|
3069
3213
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
3070
3214
|
* costs result.
|
|
@@ -3088,6 +3232,12 @@ export namespace UsageCostsResponse {
|
|
|
3088
3232
|
* result, this field is `null`.
|
|
3089
3233
|
*/
|
|
3090
3234
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
3235
|
+
|
|
3236
|
+
/**
|
|
3237
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
3238
|
+
* result.
|
|
3239
|
+
*/
|
|
3240
|
+
user_id?: string | null;
|
|
3091
3241
|
}
|
|
3092
3242
|
|
|
3093
3243
|
export namespace OrganizationCostsResult {
|
|
@@ -3174,6 +3324,14 @@ export namespace UsageEmbeddingsResponse {
|
|
|
3174
3324
|
*/
|
|
3175
3325
|
api_key_id?: string | null;
|
|
3176
3326
|
|
|
3327
|
+
/**
|
|
3328
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
3329
|
+
* activity and `unlabeled` includes all records without published source
|
|
3330
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
3331
|
+
* direct API usage. Without source grouping, this field is null.
|
|
3332
|
+
*/
|
|
3333
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
3334
|
+
|
|
3177
3335
|
/**
|
|
3178
3336
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
3179
3337
|
* batch or not.
|
|
@@ -3587,6 +3745,14 @@ export namespace UsageEmbeddingsResponse {
|
|
|
3587
3745
|
*/
|
|
3588
3746
|
api_key_id?: string | null;
|
|
3589
3747
|
|
|
3748
|
+
/**
|
|
3749
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
3750
|
+
* activity and `unlabeled` includes all records without published source
|
|
3751
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
3752
|
+
* direct API usage. Without source grouping, this field is null.
|
|
3753
|
+
*/
|
|
3754
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
3755
|
+
|
|
3590
3756
|
/**
|
|
3591
3757
|
* When `group_by=context_level`, this field provides the search context size of
|
|
3592
3758
|
* the grouped usage result.
|
|
@@ -3629,6 +3795,14 @@ export namespace UsageEmbeddingsResponse {
|
|
|
3629
3795
|
*/
|
|
3630
3796
|
api_key_id?: string | null;
|
|
3631
3797
|
|
|
3798
|
+
/**
|
|
3799
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
3800
|
+
* activity and `unlabeled` includes all records without published source
|
|
3801
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
3802
|
+
* direct API usage. Without source grouping, this field is null.
|
|
3803
|
+
*/
|
|
3804
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
3805
|
+
|
|
3632
3806
|
/**
|
|
3633
3807
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
3634
3808
|
* costs result.
|
|
@@ -3652,6 +3826,12 @@ export namespace UsageEmbeddingsResponse {
|
|
|
3652
3826
|
* result, this field is `null`.
|
|
3653
3827
|
*/
|
|
3654
3828
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
3829
|
+
|
|
3830
|
+
/**
|
|
3831
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
3832
|
+
* result.
|
|
3833
|
+
*/
|
|
3834
|
+
user_id?: string | null;
|
|
3655
3835
|
}
|
|
3656
3836
|
|
|
3657
3837
|
export namespace OrganizationCostsResult {
|
|
@@ -3738,6 +3918,14 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
3738
3918
|
*/
|
|
3739
3919
|
api_key_id?: string | null;
|
|
3740
3920
|
|
|
3921
|
+
/**
|
|
3922
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
3923
|
+
* activity and `unlabeled` includes all records without published source
|
|
3924
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
3925
|
+
* direct API usage. Without source grouping, this field is null.
|
|
3926
|
+
*/
|
|
3927
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
3928
|
+
|
|
3741
3929
|
/**
|
|
3742
3930
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
3743
3931
|
* batch or not.
|
|
@@ -4151,6 +4339,14 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
4151
4339
|
*/
|
|
4152
4340
|
api_key_id?: string | null;
|
|
4153
4341
|
|
|
4342
|
+
/**
|
|
4343
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
4344
|
+
* activity and `unlabeled` includes all records without published source
|
|
4345
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
4346
|
+
* direct API usage. Without source grouping, this field is null.
|
|
4347
|
+
*/
|
|
4348
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
4349
|
+
|
|
4154
4350
|
/**
|
|
4155
4351
|
* When `group_by=context_level`, this field provides the search context size of
|
|
4156
4352
|
* the grouped usage result.
|
|
@@ -4193,6 +4389,14 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
4193
4389
|
*/
|
|
4194
4390
|
api_key_id?: string | null;
|
|
4195
4391
|
|
|
4392
|
+
/**
|
|
4393
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
4394
|
+
* activity and `unlabeled` includes all records without published source
|
|
4395
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
4396
|
+
* direct API usage. Without source grouping, this field is null.
|
|
4397
|
+
*/
|
|
4398
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
4399
|
+
|
|
4196
4400
|
/**
|
|
4197
4401
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
4198
4402
|
* costs result.
|
|
@@ -4216,6 +4420,12 @@ export namespace UsageFileSearchCallsResponse {
|
|
|
4216
4420
|
* result, this field is `null`.
|
|
4217
4421
|
*/
|
|
4218
4422
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
4426
|
+
* result.
|
|
4427
|
+
*/
|
|
4428
|
+
user_id?: string | null;
|
|
4219
4429
|
}
|
|
4220
4430
|
|
|
4221
4431
|
export namespace OrganizationCostsResult {
|
|
@@ -4302,6 +4512,14 @@ export namespace UsageImagesResponse {
|
|
|
4302
4512
|
*/
|
|
4303
4513
|
api_key_id?: string | null;
|
|
4304
4514
|
|
|
4515
|
+
/**
|
|
4516
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
4517
|
+
* activity and `unlabeled` includes all records without published source
|
|
4518
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
4519
|
+
* direct API usage. Without source grouping, this field is null.
|
|
4520
|
+
*/
|
|
4521
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
4522
|
+
|
|
4305
4523
|
/**
|
|
4306
4524
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
4307
4525
|
* batch or not.
|
|
@@ -4715,6 +4933,14 @@ export namespace UsageImagesResponse {
|
|
|
4715
4933
|
*/
|
|
4716
4934
|
api_key_id?: string | null;
|
|
4717
4935
|
|
|
4936
|
+
/**
|
|
4937
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
4938
|
+
* activity and `unlabeled` includes all records without published source
|
|
4939
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
4940
|
+
* direct API usage. Without source grouping, this field is null.
|
|
4941
|
+
*/
|
|
4942
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
4943
|
+
|
|
4718
4944
|
/**
|
|
4719
4945
|
* When `group_by=context_level`, this field provides the search context size of
|
|
4720
4946
|
* the grouped usage result.
|
|
@@ -4757,6 +4983,14 @@ export namespace UsageImagesResponse {
|
|
|
4757
4983
|
*/
|
|
4758
4984
|
api_key_id?: string | null;
|
|
4759
4985
|
|
|
4986
|
+
/**
|
|
4987
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
4988
|
+
* activity and `unlabeled` includes all records without published source
|
|
4989
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
4990
|
+
* direct API usage. Without source grouping, this field is null.
|
|
4991
|
+
*/
|
|
4992
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
4993
|
+
|
|
4760
4994
|
/**
|
|
4761
4995
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
4762
4996
|
* costs result.
|
|
@@ -4780,6 +5014,12 @@ export namespace UsageImagesResponse {
|
|
|
4780
5014
|
* result, this field is `null`.
|
|
4781
5015
|
*/
|
|
4782
5016
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
5017
|
+
|
|
5018
|
+
/**
|
|
5019
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
5020
|
+
* result.
|
|
5021
|
+
*/
|
|
5022
|
+
user_id?: string | null;
|
|
4783
5023
|
}
|
|
4784
5024
|
|
|
4785
5025
|
export namespace OrganizationCostsResult {
|
|
@@ -4866,6 +5106,14 @@ export namespace UsageModerationsResponse {
|
|
|
4866
5106
|
*/
|
|
4867
5107
|
api_key_id?: string | null;
|
|
4868
5108
|
|
|
5109
|
+
/**
|
|
5110
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
5111
|
+
* activity and `unlabeled` includes all records without published source
|
|
5112
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
5113
|
+
* direct API usage. Without source grouping, this field is null.
|
|
5114
|
+
*/
|
|
5115
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
5116
|
+
|
|
4869
5117
|
/**
|
|
4870
5118
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
4871
5119
|
* batch or not.
|
|
@@ -5279,6 +5527,14 @@ export namespace UsageModerationsResponse {
|
|
|
5279
5527
|
*/
|
|
5280
5528
|
api_key_id?: string | null;
|
|
5281
5529
|
|
|
5530
|
+
/**
|
|
5531
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
5532
|
+
* activity and `unlabeled` includes all records without published source
|
|
5533
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
5534
|
+
* direct API usage. Without source grouping, this field is null.
|
|
5535
|
+
*/
|
|
5536
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
5537
|
+
|
|
5282
5538
|
/**
|
|
5283
5539
|
* When `group_by=context_level`, this field provides the search context size of
|
|
5284
5540
|
* the grouped usage result.
|
|
@@ -5321,6 +5577,14 @@ export namespace UsageModerationsResponse {
|
|
|
5321
5577
|
*/
|
|
5322
5578
|
api_key_id?: string | null;
|
|
5323
5579
|
|
|
5580
|
+
/**
|
|
5581
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
5582
|
+
* activity and `unlabeled` includes all records without published source
|
|
5583
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
5584
|
+
* direct API usage. Without source grouping, this field is null.
|
|
5585
|
+
*/
|
|
5586
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
5587
|
+
|
|
5324
5588
|
/**
|
|
5325
5589
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
5326
5590
|
* costs result.
|
|
@@ -5344,6 +5608,12 @@ export namespace UsageModerationsResponse {
|
|
|
5344
5608
|
* result, this field is `null`.
|
|
5345
5609
|
*/
|
|
5346
5610
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
5611
|
+
|
|
5612
|
+
/**
|
|
5613
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
5614
|
+
* result.
|
|
5615
|
+
*/
|
|
5616
|
+
user_id?: string | null;
|
|
5347
5617
|
}
|
|
5348
5618
|
|
|
5349
5619
|
export namespace OrganizationCostsResult {
|
|
@@ -5430,6 +5700,14 @@ export namespace UsageVectorStoresResponse {
|
|
|
5430
5700
|
*/
|
|
5431
5701
|
api_key_id?: string | null;
|
|
5432
5702
|
|
|
5703
|
+
/**
|
|
5704
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
5705
|
+
* activity and `unlabeled` includes all records without published source
|
|
5706
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
5707
|
+
* direct API usage. Without source grouping, this field is null.
|
|
5708
|
+
*/
|
|
5709
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
5710
|
+
|
|
5433
5711
|
/**
|
|
5434
5712
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
5435
5713
|
* batch or not.
|
|
@@ -5843,6 +6121,14 @@ export namespace UsageVectorStoresResponse {
|
|
|
5843
6121
|
*/
|
|
5844
6122
|
api_key_id?: string | null;
|
|
5845
6123
|
|
|
6124
|
+
/**
|
|
6125
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
6126
|
+
* activity and `unlabeled` includes all records without published source
|
|
6127
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
6128
|
+
* direct API usage. Without source grouping, this field is null.
|
|
6129
|
+
*/
|
|
6130
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
6131
|
+
|
|
5846
6132
|
/**
|
|
5847
6133
|
* When `group_by=context_level`, this field provides the search context size of
|
|
5848
6134
|
* the grouped usage result.
|
|
@@ -5885,6 +6171,14 @@ export namespace UsageVectorStoresResponse {
|
|
|
5885
6171
|
*/
|
|
5886
6172
|
api_key_id?: string | null;
|
|
5887
6173
|
|
|
6174
|
+
/**
|
|
6175
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
6176
|
+
* activity and `unlabeled` includes all records without published source
|
|
6177
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
6178
|
+
* direct API usage. Without source grouping, this field is null.
|
|
6179
|
+
*/
|
|
6180
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
6181
|
+
|
|
5888
6182
|
/**
|
|
5889
6183
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
5890
6184
|
* costs result.
|
|
@@ -5908,6 +6202,12 @@ export namespace UsageVectorStoresResponse {
|
|
|
5908
6202
|
* result, this field is `null`.
|
|
5909
6203
|
*/
|
|
5910
6204
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
6205
|
+
|
|
6206
|
+
/**
|
|
6207
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
6208
|
+
* result.
|
|
6209
|
+
*/
|
|
6210
|
+
user_id?: string | null;
|
|
5911
6211
|
}
|
|
5912
6212
|
|
|
5913
6213
|
export namespace OrganizationCostsResult {
|
|
@@ -5994,6 +6294,14 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
5994
6294
|
*/
|
|
5995
6295
|
api_key_id?: string | null;
|
|
5996
6296
|
|
|
6297
|
+
/**
|
|
6298
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
6299
|
+
* activity and `unlabeled` includes all records without published source
|
|
6300
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
6301
|
+
* direct API usage. Without source grouping, this field is null.
|
|
6302
|
+
*/
|
|
6303
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
6304
|
+
|
|
5997
6305
|
/**
|
|
5998
6306
|
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
5999
6307
|
* batch or not.
|
|
@@ -6407,6 +6715,14 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
6407
6715
|
*/
|
|
6408
6716
|
api_key_id?: string | null;
|
|
6409
6717
|
|
|
6718
|
+
/**
|
|
6719
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
6720
|
+
* activity and `unlabeled` includes all records without published source
|
|
6721
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
6722
|
+
* direct API usage. Without source grouping, this field is null.
|
|
6723
|
+
*/
|
|
6724
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
6725
|
+
|
|
6410
6726
|
/**
|
|
6411
6727
|
* When `group_by=context_level`, this field provides the search context size of
|
|
6412
6728
|
* the grouped usage result.
|
|
@@ -6449,6 +6765,14 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
6449
6765
|
*/
|
|
6450
6766
|
api_key_id?: string | null;
|
|
6451
6767
|
|
|
6768
|
+
/**
|
|
6769
|
+
* When grouped by `api_source`, `agents_api` identifies attributed Agents API
|
|
6770
|
+
* activity and `unlabeled` includes all records without published source
|
|
6771
|
+
* attribution, including historical and unknown origins. Unlabeled does not imply
|
|
6772
|
+
* direct API usage. Without source grouping, this field is null.
|
|
6773
|
+
*/
|
|
6774
|
+
api_source?: 'agents_api' | 'unlabeled' | null;
|
|
6775
|
+
|
|
6452
6776
|
/**
|
|
6453
6777
|
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
6454
6778
|
* costs result.
|
|
@@ -6472,6 +6796,12 @@ export namespace UsageWebSearchCallsResponse {
|
|
|
6472
6796
|
* result, this field is `null`.
|
|
6473
6797
|
*/
|
|
6474
6798
|
quantity_unit?: UsageAPI.CostQuantityUnit | null;
|
|
6799
|
+
|
|
6800
|
+
/**
|
|
6801
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped costs
|
|
6802
|
+
* result.
|
|
6803
|
+
*/
|
|
6804
|
+
user_id?: string | null;
|
|
6475
6805
|
}
|
|
6476
6806
|
|
|
6477
6807
|
export namespace OrganizationCostsResult {
|
|
@@ -6685,10 +7015,14 @@ export interface UsageCompletionsParams {
|
|
|
6685
7015
|
|
|
6686
7016
|
/**
|
|
6687
7017
|
* Group the usage data by the specified fields. Support fields include
|
|
6688
|
-
* `project_id`, `user_id`, `api_key_id`, `model`, `batch`, `service_tier
|
|
6689
|
-
* combination of them.
|
|
7018
|
+
* `project_id`, `user_id`, `api_key_id`, `model`, `batch`, `service_tier`,
|
|
7019
|
+
* `api_source` or any combination of them. When grouped by `api_source`, results
|
|
7020
|
+
* use `agents_api` for attributed Agents API activity and `unlabeled` for all
|
|
7021
|
+
* other activity. Without source grouping, `api_source` is null.
|
|
6690
7022
|
*/
|
|
6691
|
-
group_by?: Array<
|
|
7023
|
+
group_by?: Array<
|
|
7024
|
+
'project_id' | 'user_id' | 'api_key_id' | 'model' | 'batch' | 'service_tier' | 'api_source'
|
|
7025
|
+
>;
|
|
6692
7026
|
|
|
6693
7027
|
/**
|
|
6694
7028
|
* Specifies the number of buckets to return.
|
|
@@ -6744,10 +7078,15 @@ export interface UsageCostsParams {
|
|
|
6744
7078
|
end_time?: number;
|
|
6745
7079
|
|
|
6746
7080
|
/**
|
|
6747
|
-
* Group the costs by the specified fields.
|
|
6748
|
-
* `line_item`, `api_key_id
|
|
7081
|
+
* Group the costs by the specified fields. Supported fields include `project_id`,
|
|
7082
|
+
* `user_id`, `line_item`, `api_key_id`, and `api_source`. Support for combining
|
|
7083
|
+
* `user_id` with `project_id` grouping or the `project_ids` filter depends on the
|
|
7084
|
+
* organization and requested time range. Unsupported combinations return HTTP 400.
|
|
7085
|
+
* When grouped by `api_source`, results use `agents_api` for attributed Agents API
|
|
7086
|
+
* activity and `unlabeled` for all other activity. Without source grouping,
|
|
7087
|
+
* `api_source` is null.
|
|
6749
7088
|
*/
|
|
6750
|
-
group_by?: Array<'project_id' | 'line_item' | 'api_key_id'>;
|
|
7089
|
+
group_by?: Array<'project_id' | 'user_id' | 'line_item' | 'api_key_id' | 'api_source'>;
|
|
6751
7090
|
|
|
6752
7091
|
/**
|
|
6753
7092
|
* A limit on the number of buckets to be returned. Limit can range between 1 and
|
|
@@ -7096,10 +7435,12 @@ export interface UsageWebSearchCallsParams {
|
|
|
7096
7435
|
|
|
7097
7436
|
/**
|
|
7098
7437
|
* Group the usage data by the specified fields. Support fields include
|
|
7099
|
-
* `project_id`, `user_id`, `api_key_id`, `model`, `context_level` or
|
|
7100
|
-
* combination of them.
|
|
7438
|
+
* `project_id`, `user_id`, `api_key_id`, `model`, `context_level`, `api_source` or
|
|
7439
|
+
* any combination of them. When grouped by `api_source`, results use `agents_api`
|
|
7440
|
+
* for attributed Agents API activity and `unlabeled` for all other activity.
|
|
7441
|
+
* Without source grouping, `api_source` is null.
|
|
7101
7442
|
*/
|
|
7102
|
-
group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model' | 'context_level'>;
|
|
7443
|
+
group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model' | 'context_level' | 'api_source'>;
|
|
7103
7444
|
|
|
7104
7445
|
/**
|
|
7105
7446
|
* Specifies the number of buckets to return.
|