@effect/ai-openai 0.15.3 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Generated.js +1541 -408
- package/dist/cjs/Generated.js.map +1 -1
- package/dist/cjs/OpenAiCompletions.js.map +1 -1
- package/dist/dts/Generated.d.ts +2529 -380
- package/dist/dts/Generated.d.ts.map +1 -1
- package/dist/esm/Generated.js +1326 -374
- package/dist/esm/Generated.js.map +1 -1
- package/dist/esm/OpenAiCompletions.js.map +1 -1
- package/package.json +4 -4
- package/src/Generated.ts +1764 -572
- package/src/OpenAiCompletions.ts +2 -2
package/dist/esm/Generated.js
CHANGED
|
@@ -26,9 +26,9 @@ export class AssistantToolsCode extends /*#__PURE__*/S.Struct({
|
|
|
26
26
|
"type": AssistantToolsCodeType
|
|
27
27
|
}) {}
|
|
28
28
|
export class AssistantToolsFileSearchType extends /*#__PURE__*/S.Literal("file_search") {}
|
|
29
|
-
export class
|
|
29
|
+
export class FileSearchRanker extends /*#__PURE__*/S.Literal("auto", "default_2024_08_21") {}
|
|
30
30
|
export class FileSearchRankingOptions extends /*#__PURE__*/S.Struct({
|
|
31
|
-
"ranker": /*#__PURE__*/S.optionalWith(
|
|
31
|
+
"ranker": /*#__PURE__*/S.optionalWith(FileSearchRanker, {
|
|
32
32
|
nullable: true
|
|
33
33
|
}),
|
|
34
34
|
"score_threshold": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
|
|
@@ -151,7 +151,7 @@ export class ListAssistantsResponse extends /*#__PURE__*/S.Class("ListAssistants
|
|
|
151
151
|
"last_id": S.String,
|
|
152
152
|
"has_more": S.Boolean
|
|
153
153
|
}) {}
|
|
154
|
-
export class AssistantSupportedModels extends /*#__PURE__*/S.Literal("o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
|
|
154
|
+
export class AssistantSupportedModels extends /*#__PURE__*/S.Literal("o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
|
|
155
155
|
export class ReasoningEffort extends /*#__PURE__*/S.Literal("low", "medium", "high") {}
|
|
156
156
|
export class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistantRequest")({
|
|
157
157
|
"model": /*#__PURE__*/S.Union(S.String, AssistantSupportedModels),
|
|
@@ -448,6 +448,151 @@ export class CreateBatchRequest extends /*#__PURE__*/S.Class("CreateBatchRequest
|
|
|
448
448
|
nullable: true
|
|
449
449
|
})
|
|
450
450
|
}) {}
|
|
451
|
+
export class ListChatCompletionsParamsOrder extends /*#__PURE__*/S.Literal("asc", "desc") {}
|
|
452
|
+
export class ListChatCompletionsParams extends /*#__PURE__*/S.Struct({
|
|
453
|
+
"model": /*#__PURE__*/S.optionalWith(S.String, {
|
|
454
|
+
nullable: true
|
|
455
|
+
}),
|
|
456
|
+
"metadata": /*#__PURE__*/S.optionalWith(Metadata, {
|
|
457
|
+
nullable: true
|
|
458
|
+
}),
|
|
459
|
+
"after": /*#__PURE__*/S.optionalWith(S.String, {
|
|
460
|
+
nullable: true
|
|
461
|
+
}),
|
|
462
|
+
"limit": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
463
|
+
nullable: true,
|
|
464
|
+
default: () => 20
|
|
465
|
+
}),
|
|
466
|
+
"order": /*#__PURE__*/S.optionalWith(ListChatCompletionsParamsOrder, {
|
|
467
|
+
nullable: true,
|
|
468
|
+
default: () => "asc"
|
|
469
|
+
})
|
|
470
|
+
}) {}
|
|
471
|
+
export class ChatCompletionListObject extends /*#__PURE__*/S.Literal("list") {}
|
|
472
|
+
export class ChatCompletionMessageToolCallType extends /*#__PURE__*/S.Literal("function") {}
|
|
473
|
+
export class ChatCompletionMessageToolCall extends /*#__PURE__*/S.Struct({
|
|
474
|
+
"id": S.String,
|
|
475
|
+
"type": ChatCompletionMessageToolCallType,
|
|
476
|
+
"function": /*#__PURE__*/S.Struct({
|
|
477
|
+
"name": S.String,
|
|
478
|
+
"arguments": S.String
|
|
479
|
+
})
|
|
480
|
+
}) {}
|
|
481
|
+
export class ChatCompletionMessageToolCalls extends /*#__PURE__*/S.Array(ChatCompletionMessageToolCall) {}
|
|
482
|
+
export class ChatCompletionResponseMessageRole extends /*#__PURE__*/S.Literal("assistant") {}
|
|
483
|
+
export class ChatCompletionResponseMessage extends /*#__PURE__*/S.Struct({
|
|
484
|
+
"content": /*#__PURE__*/S.NullOr(S.String),
|
|
485
|
+
"refusal": /*#__PURE__*/S.NullOr(S.String),
|
|
486
|
+
"tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
|
|
487
|
+
nullable: true
|
|
488
|
+
}),
|
|
489
|
+
"annotations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
490
|
+
"type": /*#__PURE__*/S.Literal("url_citation"),
|
|
491
|
+
"url_citation": /*#__PURE__*/S.Struct({
|
|
492
|
+
"end_index": S.Int,
|
|
493
|
+
"start_index": S.Int,
|
|
494
|
+
"url": S.String,
|
|
495
|
+
"title": S.String
|
|
496
|
+
})
|
|
497
|
+
})), {
|
|
498
|
+
nullable: true
|
|
499
|
+
}),
|
|
500
|
+
"role": ChatCompletionResponseMessageRole,
|
|
501
|
+
"function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
502
|
+
"arguments": S.String,
|
|
503
|
+
"name": S.String
|
|
504
|
+
}), {
|
|
505
|
+
nullable: true
|
|
506
|
+
}),
|
|
507
|
+
"audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
508
|
+
"id": S.String,
|
|
509
|
+
"expires_at": S.Int,
|
|
510
|
+
"data": S.String,
|
|
511
|
+
"transcript": S.String
|
|
512
|
+
}), {
|
|
513
|
+
nullable: true
|
|
514
|
+
})
|
|
515
|
+
}) {}
|
|
516
|
+
export class ChatCompletionTokenLogprob extends /*#__PURE__*/S.Struct({
|
|
517
|
+
"token": S.String,
|
|
518
|
+
"logprob": S.Number,
|
|
519
|
+
"bytes": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(S.Int)),
|
|
520
|
+
"top_logprobs": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
521
|
+
"token": S.String,
|
|
522
|
+
"logprob": S.Number,
|
|
523
|
+
"bytes": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(S.Int))
|
|
524
|
+
}))
|
|
525
|
+
}) {}
|
|
526
|
+
export class CreateChatCompletionResponseServiceTier extends /*#__PURE__*/S.Literal("scale", "default") {}
|
|
527
|
+
export class CreateChatCompletionResponseObject extends /*#__PURE__*/S.Literal("chat.completion") {}
|
|
528
|
+
export class CompletionUsage extends /*#__PURE__*/S.Struct({
|
|
529
|
+
"completion_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
|
|
530
|
+
"prompt_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
|
|
531
|
+
"total_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
|
|
532
|
+
"completion_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
533
|
+
"accepted_prediction_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
534
|
+
nullable: true,
|
|
535
|
+
default: () => 0
|
|
536
|
+
}),
|
|
537
|
+
"audio_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
538
|
+
nullable: true,
|
|
539
|
+
default: () => 0
|
|
540
|
+
}),
|
|
541
|
+
"reasoning_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
542
|
+
nullable: true,
|
|
543
|
+
default: () => 0
|
|
544
|
+
}),
|
|
545
|
+
"rejected_prediction_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
546
|
+
nullable: true,
|
|
547
|
+
default: () => 0
|
|
548
|
+
})
|
|
549
|
+
}), {
|
|
550
|
+
nullable: true
|
|
551
|
+
}),
|
|
552
|
+
"prompt_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
553
|
+
"audio_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
554
|
+
nullable: true,
|
|
555
|
+
default: () => 0
|
|
556
|
+
}),
|
|
557
|
+
"cached_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
558
|
+
nullable: true,
|
|
559
|
+
default: () => 0
|
|
560
|
+
})
|
|
561
|
+
}), {
|
|
562
|
+
nullable: true
|
|
563
|
+
})
|
|
564
|
+
}) {}
|
|
565
|
+
export class CreateChatCompletionResponse extends /*#__PURE__*/S.Struct({
|
|
566
|
+
"id": S.String,
|
|
567
|
+
"choices": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
568
|
+
"finish_reason": /*#__PURE__*/S.Literal("stop", "length", "tool_calls", "content_filter", "function_call"),
|
|
569
|
+
"index": S.Int,
|
|
570
|
+
"message": ChatCompletionResponseMessage,
|
|
571
|
+
"logprobs": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
|
|
572
|
+
"content": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(ChatCompletionTokenLogprob)),
|
|
573
|
+
"refusal": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(ChatCompletionTokenLogprob))
|
|
574
|
+
}))
|
|
575
|
+
})),
|
|
576
|
+
"created": S.Int,
|
|
577
|
+
"model": S.String,
|
|
578
|
+
"service_tier": /*#__PURE__*/S.optionalWith(CreateChatCompletionResponseServiceTier, {
|
|
579
|
+
nullable: true
|
|
580
|
+
}),
|
|
581
|
+
"system_fingerprint": /*#__PURE__*/S.optionalWith(S.String, {
|
|
582
|
+
nullable: true
|
|
583
|
+
}),
|
|
584
|
+
"object": CreateChatCompletionResponseObject,
|
|
585
|
+
"usage": /*#__PURE__*/S.optionalWith(CompletionUsage, {
|
|
586
|
+
nullable: true
|
|
587
|
+
})
|
|
588
|
+
}) {}
|
|
589
|
+
export class ChatCompletionList extends /*#__PURE__*/S.Class("ChatCompletionList")({
|
|
590
|
+
"object": /*#__PURE__*/ChatCompletionListObject.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "list")),
|
|
591
|
+
"data": /*#__PURE__*/S.Array(CreateChatCompletionResponse),
|
|
592
|
+
"first_id": S.String,
|
|
593
|
+
"last_id": S.String,
|
|
594
|
+
"has_more": S.Boolean
|
|
595
|
+
}) {}
|
|
451
596
|
export class ChatCompletionRequestMessageContentPartTextType extends /*#__PURE__*/S.Literal("text") {}
|
|
452
597
|
export class ChatCompletionRequestMessageContentPartText extends /*#__PURE__*/S.Struct({
|
|
453
598
|
"type": ChatCompletionRequestMessageContentPartTextType,
|
|
@@ -491,7 +636,22 @@ export class ChatCompletionRequestMessageContentPartAudio extends /*#__PURE__*/S
|
|
|
491
636
|
"format": ChatCompletionRequestMessageContentPartAudioInputAudioFormat
|
|
492
637
|
})
|
|
493
638
|
}) {}
|
|
494
|
-
export class
|
|
639
|
+
export class ChatCompletionRequestMessageContentPartFileType extends /*#__PURE__*/S.Literal("file") {}
|
|
640
|
+
export class ChatCompletionRequestMessageContentPartFile extends /*#__PURE__*/S.Struct({
|
|
641
|
+
"type": ChatCompletionRequestMessageContentPartFileType,
|
|
642
|
+
"file": /*#__PURE__*/S.Struct({
|
|
643
|
+
"file_name": /*#__PURE__*/S.optionalWith(S.String, {
|
|
644
|
+
nullable: true
|
|
645
|
+
}),
|
|
646
|
+
"file_data": /*#__PURE__*/S.optionalWith(S.String, {
|
|
647
|
+
nullable: true
|
|
648
|
+
}),
|
|
649
|
+
"file_id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
650
|
+
nullable: true
|
|
651
|
+
})
|
|
652
|
+
})
|
|
653
|
+
}) {}
|
|
654
|
+
export class ChatCompletionRequestUserMessageContentPart extends /*#__PURE__*/S.Union(ChatCompletionRequestMessageContentPartText, ChatCompletionRequestMessageContentPartImage, ChatCompletionRequestMessageContentPartAudio, ChatCompletionRequestMessageContentPartFile) {}
|
|
495
655
|
export class ChatCompletionRequestUserMessageRole extends /*#__PURE__*/S.Literal("user") {}
|
|
496
656
|
export class ChatCompletionRequestUserMessage extends /*#__PURE__*/S.Struct({
|
|
497
657
|
"content": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(ChatCompletionRequestUserMessageContentPart)),
|
|
@@ -507,16 +667,6 @@ export class ChatCompletionRequestMessageContentPartRefusal extends /*#__PURE__*
|
|
|
507
667
|
}) {}
|
|
508
668
|
export class ChatCompletionRequestAssistantMessageContentPart extends /*#__PURE__*/S.Union(ChatCompletionRequestMessageContentPartText, ChatCompletionRequestMessageContentPartRefusal) {}
|
|
509
669
|
export class ChatCompletionRequestAssistantMessageRole extends /*#__PURE__*/S.Literal("assistant") {}
|
|
510
|
-
export class ChatCompletionMessageToolCallType extends /*#__PURE__*/S.Literal("function") {}
|
|
511
|
-
export class ChatCompletionMessageToolCall extends /*#__PURE__*/S.Struct({
|
|
512
|
-
"id": S.String,
|
|
513
|
-
"type": ChatCompletionMessageToolCallType,
|
|
514
|
-
"function": /*#__PURE__*/S.Struct({
|
|
515
|
-
"name": S.String,
|
|
516
|
-
"arguments": S.String
|
|
517
|
-
})
|
|
518
|
-
}) {}
|
|
519
|
-
export class ChatCompletionMessageToolCalls extends /*#__PURE__*/S.Array(ChatCompletionMessageToolCall) {}
|
|
520
670
|
export class ChatCompletionRequestAssistantMessage extends /*#__PURE__*/S.Struct({
|
|
521
671
|
"content": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(ChatCompletionRequestAssistantMessageContentPart)), {
|
|
522
672
|
nullable: true
|
|
@@ -557,16 +707,32 @@ export class ChatCompletionRequestFunctionMessage extends /*#__PURE__*/S.Struct(
|
|
|
557
707
|
"name": S.String
|
|
558
708
|
}) {}
|
|
559
709
|
export class ChatCompletionRequestMessage extends /*#__PURE__*/S.Union(ChatCompletionRequestDeveloperMessage, ChatCompletionRequestSystemMessage, ChatCompletionRequestUserMessage, ChatCompletionRequestAssistantMessage, ChatCompletionRequestToolMessage, ChatCompletionRequestFunctionMessage) {}
|
|
560
|
-
export class
|
|
561
|
-
export class
|
|
710
|
+
export class ResponseModalities extends /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "audio")) {}
|
|
711
|
+
export class CreateChatCompletionRequestWebSearchOptionsUserLocationType extends /*#__PURE__*/S.Literal("approximate") {}
|
|
712
|
+
export class WebSearchLocation extends /*#__PURE__*/S.Struct({
|
|
713
|
+
"country": /*#__PURE__*/S.optionalWith(S.String, {
|
|
714
|
+
nullable: true
|
|
715
|
+
}),
|
|
716
|
+
"region": /*#__PURE__*/S.optionalWith(S.String, {
|
|
717
|
+
nullable: true
|
|
718
|
+
}),
|
|
719
|
+
"city": /*#__PURE__*/S.optionalWith(S.String, {
|
|
720
|
+
nullable: true
|
|
721
|
+
}),
|
|
722
|
+
"timezone": /*#__PURE__*/S.optionalWith(S.String, {
|
|
723
|
+
nullable: true
|
|
724
|
+
})
|
|
725
|
+
}) {}
|
|
726
|
+
export class WebSearchContextSize extends /*#__PURE__*/S.Literal("low", "medium", "high") {}
|
|
727
|
+
export class CreateChatCompletionRequestServiceTier extends /*#__PURE__*/S.Literal("auto", "default") {}
|
|
728
|
+
export class CreateChatCompletionRequestAudioVoice extends /*#__PURE__*/S.Literal("alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse") {}
|
|
729
|
+
export class CreateChatCompletionRequestAudioFormat extends /*#__PURE__*/S.Literal("wav", "mp3", "flac", "opus", "pcm16") {}
|
|
730
|
+
export class StopConfiguration extends /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(4))) {}
|
|
562
731
|
export class PredictionContentType extends /*#__PURE__*/S.Literal("content") {}
|
|
563
732
|
export class PredictionContent extends /*#__PURE__*/S.Struct({
|
|
564
733
|
"type": PredictionContentType,
|
|
565
734
|
"content": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(ChatCompletionRequestMessageContentPartText))
|
|
566
735
|
}) {}
|
|
567
|
-
export class CreateChatCompletionRequestAudioVoice extends /*#__PURE__*/S.Literal("alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse") {}
|
|
568
|
-
export class CreateChatCompletionRequestAudioFormat extends /*#__PURE__*/S.Literal("wav", "mp3", "flac", "opus", "pcm16") {}
|
|
569
|
-
export class CreateChatCompletionRequestServiceTier extends /*#__PURE__*/S.Literal("auto", "default") {}
|
|
570
736
|
export class ChatCompletionStreamOptions extends /*#__PURE__*/S.Struct({
|
|
571
737
|
"include_usage": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
572
738
|
nullable: true
|
|
@@ -600,52 +766,50 @@ export class ChatCompletionFunctions extends /*#__PURE__*/S.Struct({
|
|
|
600
766
|
nullable: true
|
|
601
767
|
})
|
|
602
768
|
}) {}
|
|
769
|
+
export class CreateChatCompletionRequestModelEnum extends /*#__PURE__*/S.Literal("o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
|
|
603
770
|
export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateChatCompletionRequest")({
|
|
604
771
|
"messages": /*#__PURE__*/S.NonEmptyArray(ChatCompletionRequestMessage),
|
|
605
|
-
"
|
|
606
|
-
|
|
607
|
-
nullable: true,
|
|
608
|
-
default: () => false
|
|
772
|
+
"modalities": /*#__PURE__*/S.optionalWith(ResponseModalities, {
|
|
773
|
+
nullable: true
|
|
609
774
|
}),
|
|
610
775
|
"reasoning_effort": /*#__PURE__*/S.optionalWith(ReasoningEffort, {
|
|
611
776
|
nullable: true,
|
|
612
777
|
default: () => "medium"
|
|
613
778
|
}),
|
|
614
|
-
"
|
|
779
|
+
"max_completion_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
615
780
|
nullable: true
|
|
616
781
|
}),
|
|
617
782
|
"frequency_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
|
|
618
783
|
nullable: true,
|
|
619
784
|
default: () => 0
|
|
620
785
|
}),
|
|
621
|
-
"
|
|
622
|
-
key: S.String,
|
|
623
|
-
value: S.Unknown
|
|
624
|
-
})), {
|
|
625
|
-
default: () => null
|
|
626
|
-
}),
|
|
627
|
-
"logprobs": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
786
|
+
"presence_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
|
|
628
787
|
nullable: true,
|
|
629
|
-
default: () =>
|
|
788
|
+
default: () => 0
|
|
630
789
|
}),
|
|
631
|
-
"
|
|
790
|
+
"web_search_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
791
|
+
"user_location": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
792
|
+
"type": CreateChatCompletionRequestWebSearchOptionsUserLocationType,
|
|
793
|
+
"approximate": WebSearchLocation
|
|
794
|
+
}), {
|
|
795
|
+
nullable: true
|
|
796
|
+
}),
|
|
797
|
+
"search_context_size": /*#__PURE__*/S.optionalWith(WebSearchContextSize, {
|
|
798
|
+
nullable: true,
|
|
799
|
+
default: () => "medium"
|
|
800
|
+
})
|
|
801
|
+
}), {
|
|
632
802
|
nullable: true
|
|
633
803
|
}),
|
|
634
|
-
"
|
|
804
|
+
"top_logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
|
|
635
805
|
nullable: true
|
|
636
806
|
}),
|
|
637
|
-
"
|
|
807
|
+
"response_format": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ResponseFormatText, ResponseFormatJsonSchema, ResponseFormatJsonObject), {
|
|
638
808
|
nullable: true
|
|
639
809
|
}),
|
|
640
|
-
"
|
|
810
|
+
"service_tier": /*#__PURE__*/S.optionalWith(CreateChatCompletionRequestServiceTier, {
|
|
641
811
|
nullable: true,
|
|
642
|
-
default: () =>
|
|
643
|
-
}),
|
|
644
|
-
"modalities": /*#__PURE__*/S.optionalWith(ChatCompletionModalities, {
|
|
645
|
-
nullable: true
|
|
646
|
-
}),
|
|
647
|
-
"prediction": /*#__PURE__*/S.optionalWith(PredictionContent, {
|
|
648
|
-
nullable: true
|
|
812
|
+
default: () => "auto"
|
|
649
813
|
}),
|
|
650
814
|
"audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
651
815
|
"voice": CreateChatCompletionRequestAudioVoice,
|
|
@@ -653,37 +817,42 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
|
|
|
653
817
|
}), {
|
|
654
818
|
nullable: true
|
|
655
819
|
}),
|
|
656
|
-
"
|
|
820
|
+
"store": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
657
821
|
nullable: true,
|
|
658
|
-
default: () =>
|
|
659
|
-
}),
|
|
660
|
-
"response_format": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema), {
|
|
661
|
-
nullable: true
|
|
662
|
-
}),
|
|
663
|
-
"seed": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
664
|
-
nullable: true
|
|
822
|
+
default: () => false
|
|
665
823
|
}),
|
|
666
|
-
"
|
|
824
|
+
"stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
667
825
|
nullable: true,
|
|
668
|
-
default: () =>
|
|
826
|
+
default: () => false
|
|
669
827
|
}),
|
|
670
|
-
"stop": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(
|
|
828
|
+
"stop": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(StopConfiguration), {
|
|
671
829
|
default: () => null
|
|
672
830
|
}),
|
|
673
|
-
"
|
|
831
|
+
"logit_bias": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
|
|
832
|
+
key: S.String,
|
|
833
|
+
value: S.Unknown
|
|
834
|
+
})), {
|
|
835
|
+
default: () => null
|
|
836
|
+
}),
|
|
837
|
+
"logprobs": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
674
838
|
nullable: true,
|
|
675
839
|
default: () => false
|
|
676
840
|
}),
|
|
677
|
-
"
|
|
678
|
-
|
|
841
|
+
"max_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
842
|
+
nullable: true
|
|
679
843
|
}),
|
|
680
|
-
"
|
|
844
|
+
"n": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
|
|
681
845
|
nullable: true,
|
|
682
846
|
default: () => 1
|
|
683
847
|
}),
|
|
684
|
-
"
|
|
685
|
-
nullable: true
|
|
686
|
-
|
|
848
|
+
"prediction": /*#__PURE__*/S.optionalWith(PredictionContent, {
|
|
849
|
+
nullable: true
|
|
850
|
+
}),
|
|
851
|
+
"seed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-9223372036854776000), /*#__PURE__*/S.lessThanOrEqualTo(9223372036854776000)), {
|
|
852
|
+
nullable: true
|
|
853
|
+
}),
|
|
854
|
+
"stream_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
|
|
855
|
+
default: () => null
|
|
687
856
|
}),
|
|
688
857
|
"tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ChatCompletionTool), {
|
|
689
858
|
nullable: true
|
|
@@ -695,112 +864,92 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
|
|
|
695
864
|
nullable: true,
|
|
696
865
|
default: () => true
|
|
697
866
|
}),
|
|
698
|
-
"user": /*#__PURE__*/S.optionalWith(S.String, {
|
|
699
|
-
nullable: true
|
|
700
|
-
}),
|
|
701
867
|
"function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateChatCompletionRequestFunctionCallEnum, ChatCompletionFunctionCallOption), {
|
|
702
868
|
nullable: true
|
|
703
869
|
}),
|
|
704
870
|
"functions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ChatCompletionFunctions).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(128)), {
|
|
705
871
|
nullable: true
|
|
706
|
-
})
|
|
707
|
-
}) {}
|
|
708
|
-
export class ChatCompletionResponseMessageRole extends /*#__PURE__*/S.Literal("assistant") {}
|
|
709
|
-
export class ChatCompletionResponseMessage extends /*#__PURE__*/S.Struct({
|
|
710
|
-
"content": /*#__PURE__*/S.NullOr(S.String),
|
|
711
|
-
"refusal": /*#__PURE__*/S.NullOr(S.String),
|
|
712
|
-
"tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
|
|
713
|
-
nullable: true
|
|
714
872
|
}),
|
|
715
|
-
"
|
|
716
|
-
"
|
|
717
|
-
"arguments": S.String,
|
|
718
|
-
"name": S.String
|
|
719
|
-
}), {
|
|
873
|
+
"model": /*#__PURE__*/S.Union(S.String, CreateChatCompletionRequestModelEnum),
|
|
874
|
+
"metadata": /*#__PURE__*/S.optionalWith(Metadata, {
|
|
720
875
|
nullable: true
|
|
721
876
|
}),
|
|
722
|
-
"
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
"data": S.String,
|
|
726
|
-
"transcript": S.String
|
|
727
|
-
}), {
|
|
728
|
-
nullable: true
|
|
729
|
-
})
|
|
730
|
-
}) {}
|
|
731
|
-
export class ChatCompletionTokenLogprob extends /*#__PURE__*/S.Struct({
|
|
732
|
-
"token": S.String,
|
|
733
|
-
"logprob": S.Number,
|
|
734
|
-
"bytes": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(S.Int)),
|
|
735
|
-
"top_logprobs": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
736
|
-
"token": S.String,
|
|
737
|
-
"logprob": S.Number,
|
|
738
|
-
"bytes": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(S.Int))
|
|
739
|
-
}))
|
|
740
|
-
}) {}
|
|
741
|
-
export class CreateChatCompletionResponseServiceTier extends /*#__PURE__*/S.Literal("scale", "default") {}
|
|
742
|
-
export class CreateChatCompletionResponseObject extends /*#__PURE__*/S.Literal("chat.completion") {}
|
|
743
|
-
export class CompletionUsage extends /*#__PURE__*/S.Struct({
|
|
744
|
-
"completion_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
|
|
745
|
-
"prompt_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
|
|
746
|
-
"total_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
|
|
747
|
-
"completion_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
748
|
-
"accepted_prediction_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
749
|
-
nullable: true,
|
|
750
|
-
default: () => 0
|
|
751
|
-
}),
|
|
752
|
-
"audio_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
753
|
-
nullable: true,
|
|
754
|
-
default: () => 0
|
|
755
|
-
}),
|
|
756
|
-
"reasoning_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
757
|
-
nullable: true,
|
|
758
|
-
default: () => 0
|
|
759
|
-
}),
|
|
760
|
-
"rejected_prediction_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
761
|
-
nullable: true,
|
|
762
|
-
default: () => 0
|
|
763
|
-
})
|
|
764
|
-
}), {
|
|
765
|
-
nullable: true
|
|
877
|
+
"temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
|
|
878
|
+
nullable: true,
|
|
879
|
+
default: () => 1
|
|
766
880
|
}),
|
|
767
|
-
"
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
"cached_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
773
|
-
nullable: true,
|
|
774
|
-
default: () => 0
|
|
775
|
-
})
|
|
776
|
-
}), {
|
|
881
|
+
"top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
|
|
882
|
+
nullable: true,
|
|
883
|
+
default: () => 1
|
|
884
|
+
}),
|
|
885
|
+
"user": /*#__PURE__*/S.optionalWith(S.String, {
|
|
777
886
|
nullable: true
|
|
778
887
|
})
|
|
779
888
|
}) {}
|
|
780
|
-
export class
|
|
889
|
+
export class UpdateChatCompletionRequest extends /*#__PURE__*/S.Class("UpdateChatCompletionRequest")({
|
|
890
|
+
"metadata": /*#__PURE__*/S.NullOr(Metadata)
|
|
891
|
+
}) {}
|
|
892
|
+
export class ChatCompletionDeletedObject extends /*#__PURE__*/S.Literal("chat.completion.deleted") {}
|
|
893
|
+
export class ChatCompletionDeleted extends /*#__PURE__*/S.Class("ChatCompletionDeleted")({
|
|
894
|
+
"object": ChatCompletionDeletedObject,
|
|
781
895
|
"id": S.String,
|
|
782
|
-
"
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
"content": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(ChatCompletionTokenLogprob)),
|
|
788
|
-
"refusal": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(ChatCompletionTokenLogprob))
|
|
789
|
-
}))
|
|
790
|
-
})),
|
|
791
|
-
"created": S.Int,
|
|
792
|
-
"model": S.String,
|
|
793
|
-
"service_tier": /*#__PURE__*/S.optionalWith(CreateChatCompletionResponseServiceTier, {
|
|
896
|
+
"deleted": S.Boolean
|
|
897
|
+
}) {}
|
|
898
|
+
export class GetChatCompletionMessagesParamsOrder extends /*#__PURE__*/S.Literal("asc", "desc") {}
|
|
899
|
+
export class GetChatCompletionMessagesParams extends /*#__PURE__*/S.Struct({
|
|
900
|
+
"after": /*#__PURE__*/S.optionalWith(S.String, {
|
|
794
901
|
nullable: true
|
|
795
902
|
}),
|
|
796
|
-
"
|
|
797
|
-
nullable: true
|
|
903
|
+
"limit": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
904
|
+
nullable: true,
|
|
905
|
+
default: () => 20
|
|
798
906
|
}),
|
|
799
|
-
"
|
|
800
|
-
|
|
801
|
-
|
|
907
|
+
"order": /*#__PURE__*/S.optionalWith(GetChatCompletionMessagesParamsOrder, {
|
|
908
|
+
nullable: true,
|
|
909
|
+
default: () => "asc"
|
|
802
910
|
})
|
|
803
911
|
}) {}
|
|
912
|
+
export class ChatCompletionMessageListObject extends /*#__PURE__*/S.Literal("list") {}
|
|
913
|
+
export class ChatCompletionMessageList extends /*#__PURE__*/S.Class("ChatCompletionMessageList")({
|
|
914
|
+
"object": /*#__PURE__*/ChatCompletionMessageListObject.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "list")),
|
|
915
|
+
"data": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
916
|
+
"id": S.String,
|
|
917
|
+
"content": /*#__PURE__*/S.NullOr(S.String),
|
|
918
|
+
"refusal": /*#__PURE__*/S.NullOr(S.String),
|
|
919
|
+
"tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
|
|
920
|
+
nullable: true
|
|
921
|
+
}),
|
|
922
|
+
"annotations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
923
|
+
"type": /*#__PURE__*/S.Literal("url_citation"),
|
|
924
|
+
"url_citation": /*#__PURE__*/S.Struct({
|
|
925
|
+
"end_index": S.Int,
|
|
926
|
+
"start_index": S.Int,
|
|
927
|
+
"url": S.String,
|
|
928
|
+
"title": S.String
|
|
929
|
+
})
|
|
930
|
+
})), {
|
|
931
|
+
nullable: true
|
|
932
|
+
}),
|
|
933
|
+
"role": /*#__PURE__*/S.Literal("assistant"),
|
|
934
|
+
"function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
935
|
+
"arguments": S.String,
|
|
936
|
+
"name": S.String
|
|
937
|
+
}), {
|
|
938
|
+
nullable: true
|
|
939
|
+
}),
|
|
940
|
+
"audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
941
|
+
"id": S.String,
|
|
942
|
+
"expires_at": S.Int,
|
|
943
|
+
"data": S.String,
|
|
944
|
+
"transcript": S.String
|
|
945
|
+
}), {
|
|
946
|
+
nullable: true
|
|
947
|
+
})
|
|
948
|
+
})),
|
|
949
|
+
"first_id": S.String,
|
|
950
|
+
"last_id": S.String,
|
|
951
|
+
"has_more": S.Boolean
|
|
952
|
+
}) {}
|
|
804
953
|
export class CreateCompletionRequestModelEnum extends /*#__PURE__*/S.Literal("gpt-3.5-turbo-instruct", "davinci-002", "babbage-002") {}
|
|
805
954
|
export class CreateCompletionRequest extends /*#__PURE__*/S.Class("CreateCompletionRequest")({
|
|
806
955
|
"model": /*#__PURE__*/S.Union(S.String, CreateCompletionRequestModelEnum),
|
|
@@ -841,7 +990,7 @@ export class CreateCompletionRequest extends /*#__PURE__*/S.Class("CreateComplet
|
|
|
841
990
|
"seed": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
842
991
|
nullable: true
|
|
843
992
|
}),
|
|
844
|
-
"stop": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(
|
|
993
|
+
"stop": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(StopConfiguration), {
|
|
845
994
|
default: () => null
|
|
846
995
|
}),
|
|
847
996
|
"stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
@@ -957,6 +1106,9 @@ export class OpenAIFile extends /*#__PURE__*/S.Struct({
|
|
|
957
1106
|
"id": S.String,
|
|
958
1107
|
"bytes": S.Int,
|
|
959
1108
|
"created_at": S.Int,
|
|
1109
|
+
"expires_at": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
1110
|
+
nullable: true
|
|
1111
|
+
}),
|
|
960
1112
|
"filename": S.String,
|
|
961
1113
|
"object": OpenAIFileObject,
|
|
962
1114
|
"purpose": OpenAIFilePurpose,
|
|
@@ -986,6 +1138,12 @@ export class ListPaginatedFineTuningJobsParams extends /*#__PURE__*/S.Struct({
|
|
|
986
1138
|
"limit": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
987
1139
|
nullable: true,
|
|
988
1140
|
default: () => 20
|
|
1141
|
+
}),
|
|
1142
|
+
"metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
|
|
1143
|
+
key: S.String,
|
|
1144
|
+
value: S.Unknown
|
|
1145
|
+
}), {
|
|
1146
|
+
nullable: true
|
|
989
1147
|
})
|
|
990
1148
|
}) {}
|
|
991
1149
|
export class FineTuningJobHyperparametersBatchSizeEnum extends /*#__PURE__*/S.Literal("auto") {}
|
|
@@ -1109,6 +1267,9 @@ export class FineTuningJob extends /*#__PURE__*/S.Struct({
|
|
|
1109
1267
|
}),
|
|
1110
1268
|
"method": /*#__PURE__*/S.optionalWith(FineTuneMethod, {
|
|
1111
1269
|
nullable: true
|
|
1270
|
+
}),
|
|
1271
|
+
"metadata": /*#__PURE__*/S.optionalWith(Metadata, {
|
|
1272
|
+
nullable: true
|
|
1112
1273
|
})
|
|
1113
1274
|
}) {}
|
|
1114
1275
|
export class ListPaginatedFineTuningJobsResponseObject extends /*#__PURE__*/S.Literal("list") {}
|
|
@@ -1168,6 +1329,9 @@ export class CreateFineTuningJobRequest extends /*#__PURE__*/S.Class("CreateFine
|
|
|
1168
1329
|
}),
|
|
1169
1330
|
"method": /*#__PURE__*/S.optionalWith(FineTuneMethod, {
|
|
1170
1331
|
nullable: true
|
|
1332
|
+
}),
|
|
1333
|
+
"metadata": /*#__PURE__*/S.optionalWith(Metadata, {
|
|
1334
|
+
nullable: true
|
|
1171
1335
|
})
|
|
1172
1336
|
}) {}
|
|
1173
1337
|
export class ListFineTuningJobCheckpointsParams extends /*#__PURE__*/S.Struct({
|
|
@@ -2657,151 +2821,760 @@ export class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("Realtime
|
|
|
2657
2821
|
"model": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateRequestModel, {
|
|
2658
2822
|
nullable: true
|
|
2659
2823
|
}),
|
|
2660
|
-
"instructions": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2661
|
-
nullable: true
|
|
2824
|
+
"instructions": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2825
|
+
nullable: true
|
|
2826
|
+
}),
|
|
2827
|
+
"voice": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateRequestVoice, {
|
|
2828
|
+
nullable: true
|
|
2829
|
+
}),
|
|
2830
|
+
"input_audio_format": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateRequestInputAudioFormat, {
|
|
2831
|
+
nullable: true
|
|
2832
|
+
}),
|
|
2833
|
+
"output_audio_format": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateRequestOutputAudioFormat, {
|
|
2834
|
+
nullable: true
|
|
2835
|
+
}),
|
|
2836
|
+
"input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
2837
|
+
"model": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2838
|
+
nullable: true
|
|
2839
|
+
}),
|
|
2840
|
+
"language": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2841
|
+
nullable: true
|
|
2842
|
+
}),
|
|
2843
|
+
"prompt": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2844
|
+
nullable: true
|
|
2845
|
+
})
|
|
2846
|
+
}), {
|
|
2847
|
+
nullable: true
|
|
2848
|
+
}),
|
|
2849
|
+
"turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
2850
|
+
"type": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2851
|
+
nullable: true
|
|
2852
|
+
}),
|
|
2853
|
+
"threshold": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
2854
|
+
nullable: true
|
|
2855
|
+
}),
|
|
2856
|
+
"prefix_padding_ms": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
2857
|
+
nullable: true
|
|
2858
|
+
}),
|
|
2859
|
+
"silence_duration_ms": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
2860
|
+
nullable: true
|
|
2861
|
+
}),
|
|
2862
|
+
"create_response": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
2863
|
+
nullable: true,
|
|
2864
|
+
default: () => true
|
|
2865
|
+
}),
|
|
2866
|
+
"interrupt_response": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
2867
|
+
nullable: true,
|
|
2868
|
+
default: () => true
|
|
2869
|
+
})
|
|
2870
|
+
}), {
|
|
2871
|
+
nullable: true
|
|
2872
|
+
}),
|
|
2873
|
+
"tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
2874
|
+
"type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("function"), {
|
|
2875
|
+
nullable: true
|
|
2876
|
+
}),
|
|
2877
|
+
"name": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2878
|
+
nullable: true
|
|
2879
|
+
}),
|
|
2880
|
+
"description": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2881
|
+
nullable: true
|
|
2882
|
+
}),
|
|
2883
|
+
"parameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
|
|
2884
|
+
key: S.String,
|
|
2885
|
+
value: S.Unknown
|
|
2886
|
+
}), {
|
|
2887
|
+
nullable: true
|
|
2888
|
+
})
|
|
2889
|
+
})), {
|
|
2890
|
+
nullable: true
|
|
2891
|
+
}),
|
|
2892
|
+
"tool_choice": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2893
|
+
nullable: true
|
|
2894
|
+
}),
|
|
2895
|
+
"temperature": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
2896
|
+
nullable: true
|
|
2897
|
+
}),
|
|
2898
|
+
"max_response_output_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateRequestMaxResponseOutputTokensEnum), {
|
|
2899
|
+
nullable: true
|
|
2900
|
+
})
|
|
2901
|
+
}) {}
|
|
2902
|
+
export class RealtimeSessionCreateResponseVoice extends /*#__PURE__*/S.Literal("alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse") {}
|
|
2903
|
+
export class RealtimeSessionCreateResponseMaxResponseOutputTokensEnum extends /*#__PURE__*/S.Literal("inf") {}
|
|
2904
|
+
export class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("RealtimeSessionCreateResponse")({
|
|
2905
|
+
"client_secret": /*#__PURE__*/S.Struct({
|
|
2906
|
+
"value": S.String,
|
|
2907
|
+
"expires_at": S.Int
|
|
2908
|
+
}),
|
|
2909
|
+
"instructions": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2910
|
+
nullable: true
|
|
2911
|
+
}),
|
|
2912
|
+
"voice": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateResponseVoice, {
|
|
2913
|
+
nullable: true
|
|
2914
|
+
}),
|
|
2915
|
+
"input_audio_format": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2916
|
+
nullable: true
|
|
2917
|
+
}),
|
|
2918
|
+
"output_audio_format": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2919
|
+
nullable: true
|
|
2920
|
+
}),
|
|
2921
|
+
"input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
2922
|
+
"model": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2923
|
+
nullable: true
|
|
2924
|
+
})
|
|
2925
|
+
}), {
|
|
2926
|
+
nullable: true
|
|
2927
|
+
}),
|
|
2928
|
+
"turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
2929
|
+
"type": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2930
|
+
nullable: true
|
|
2931
|
+
}),
|
|
2932
|
+
"threshold": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
2933
|
+
nullable: true
|
|
2934
|
+
}),
|
|
2935
|
+
"prefix_padding_ms": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
2936
|
+
nullable: true
|
|
2937
|
+
}),
|
|
2938
|
+
"silence_duration_ms": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
2939
|
+
nullable: true
|
|
2940
|
+
})
|
|
2941
|
+
}), {
|
|
2942
|
+
nullable: true
|
|
2943
|
+
}),
|
|
2944
|
+
"tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
2945
|
+
"type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("function"), {
|
|
2946
|
+
nullable: true
|
|
2947
|
+
}),
|
|
2948
|
+
"name": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2949
|
+
nullable: true
|
|
2950
|
+
}),
|
|
2951
|
+
"description": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2952
|
+
nullable: true
|
|
2953
|
+
}),
|
|
2954
|
+
"parameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
|
|
2955
|
+
key: S.String,
|
|
2956
|
+
value: S.Unknown
|
|
2957
|
+
}), {
|
|
2958
|
+
nullable: true
|
|
2959
|
+
})
|
|
2960
|
+
})), {
|
|
2961
|
+
nullable: true
|
|
2962
|
+
}),
|
|
2963
|
+
"tool_choice": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2964
|
+
nullable: true
|
|
2965
|
+
}),
|
|
2966
|
+
"temperature": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
2967
|
+
nullable: true
|
|
2968
|
+
}),
|
|
2969
|
+
"max_response_output_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateResponseMaxResponseOutputTokensEnum), {
|
|
2970
|
+
nullable: true
|
|
2971
|
+
})
|
|
2972
|
+
}) {}
|
|
2973
|
+
export class EasyInputMessageRole extends /*#__PURE__*/S.Literal("user", "assistant", "system", "developer") {}
|
|
2974
|
+
export class InputTextType extends /*#__PURE__*/S.Literal("input_text") {}
|
|
2975
|
+
export class InputText extends /*#__PURE__*/S.Struct({
|
|
2976
|
+
"type": InputTextType,
|
|
2977
|
+
"text": S.String
|
|
2978
|
+
}) {}
|
|
2979
|
+
export class InputImageType extends /*#__PURE__*/S.Literal("input_image") {}
|
|
2980
|
+
export class InputImageDetail extends /*#__PURE__*/S.Literal("high", "low", "auto") {}
|
|
2981
|
+
export class InputImage extends /*#__PURE__*/S.Struct({
|
|
2982
|
+
"type": InputImageType,
|
|
2983
|
+
"image_url": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2984
|
+
nullable: true
|
|
2985
|
+
}),
|
|
2986
|
+
"file_id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2987
|
+
nullable: true
|
|
2988
|
+
}),
|
|
2989
|
+
"detail": /*#__PURE__*/InputImageDetail.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "auto"))
|
|
2990
|
+
}) {}
|
|
2991
|
+
export class InputFileType extends /*#__PURE__*/S.Literal("input_file") {}
|
|
2992
|
+
export class InputFile extends /*#__PURE__*/S.Struct({
|
|
2993
|
+
"type": InputFileType,
|
|
2994
|
+
"file_id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2995
|
+
nullable: true
|
|
2996
|
+
}),
|
|
2997
|
+
"filename": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2998
|
+
nullable: true
|
|
2999
|
+
}),
|
|
3000
|
+
"file_data": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3001
|
+
nullable: true
|
|
3002
|
+
})
|
|
3003
|
+
}) {}
|
|
3004
|
+
export class InputContent extends /*#__PURE__*/S.Union(InputText, InputImage, InputFile) {}
|
|
3005
|
+
export class InputMessageContentList extends /*#__PURE__*/S.Array(InputContent) {}
|
|
3006
|
+
export class EasyInputMessageType extends /*#__PURE__*/S.Literal("message") {}
|
|
3007
|
+
export class EasyInputMessage extends /*#__PURE__*/S.Struct({
|
|
3008
|
+
"role": EasyInputMessageRole,
|
|
3009
|
+
"content": /*#__PURE__*/S.Union(S.String, InputMessageContentList),
|
|
3010
|
+
"type": /*#__PURE__*/S.optionalWith(EasyInputMessageType, {
|
|
3011
|
+
nullable: true
|
|
3012
|
+
})
|
|
3013
|
+
}) {}
|
|
3014
|
+
export class InputMessageType extends /*#__PURE__*/S.Literal("message") {}
|
|
3015
|
+
export class InputMessageRole extends /*#__PURE__*/S.Literal("user", "system", "developer") {}
|
|
3016
|
+
export class InputMessageStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3017
|
+
export class InputMessage extends /*#__PURE__*/S.Struct({
|
|
3018
|
+
"type": /*#__PURE__*/S.optionalWith(InputMessageType, {
|
|
3019
|
+
nullable: true
|
|
3020
|
+
}),
|
|
3021
|
+
"role": InputMessageRole,
|
|
3022
|
+
"status": /*#__PURE__*/S.optionalWith(InputMessageStatus, {
|
|
3023
|
+
nullable: true
|
|
3024
|
+
}),
|
|
3025
|
+
"content": InputMessageContentList
|
|
3026
|
+
}) {}
|
|
3027
|
+
export class OutputMessageType extends /*#__PURE__*/S.Literal("message") {}
|
|
3028
|
+
export class OutputMessageRole extends /*#__PURE__*/S.Literal("assistant") {}
|
|
3029
|
+
export class OutputTextType extends /*#__PURE__*/S.Literal("output_text") {}
|
|
3030
|
+
export class FileCitationType extends /*#__PURE__*/S.Literal("file_citation") {}
|
|
3031
|
+
export class FileCitation extends /*#__PURE__*/S.Struct({
|
|
3032
|
+
"type": FileCitationType,
|
|
3033
|
+
"index": S.Int,
|
|
3034
|
+
"file_id": S.String
|
|
3035
|
+
}) {}
|
|
3036
|
+
export class UrlCitationType extends /*#__PURE__*/S.Literal("url_citation") {}
|
|
3037
|
+
export class UrlCitation extends /*#__PURE__*/S.Struct({
|
|
3038
|
+
"url": S.String,
|
|
3039
|
+
"title": S.String,
|
|
3040
|
+
"type": UrlCitationType,
|
|
3041
|
+
"start_index": S.Int,
|
|
3042
|
+
"end_index": S.Int
|
|
3043
|
+
}) {}
|
|
3044
|
+
export class FilePathType extends /*#__PURE__*/S.Literal("file_path") {}
|
|
3045
|
+
export class FilePath extends /*#__PURE__*/S.Struct({
|
|
3046
|
+
"type": FilePathType,
|
|
3047
|
+
"file_id": S.String,
|
|
3048
|
+
"index": S.Int
|
|
3049
|
+
}) {}
|
|
3050
|
+
export class Annotation extends /*#__PURE__*/S.Union(FileCitation, UrlCitation, FilePath) {}
|
|
3051
|
+
export class OutputText extends /*#__PURE__*/S.Struct({
|
|
3052
|
+
"type": OutputTextType,
|
|
3053
|
+
"text": S.String,
|
|
3054
|
+
"annotations": /*#__PURE__*/S.Array(Annotation)
|
|
3055
|
+
}) {}
|
|
3056
|
+
export class RefusalType extends /*#__PURE__*/S.Literal("refusal") {}
|
|
3057
|
+
export class Refusal extends /*#__PURE__*/S.Struct({
|
|
3058
|
+
"type": RefusalType,
|
|
3059
|
+
"refusal": S.String
|
|
3060
|
+
}) {}
|
|
3061
|
+
export class OutputContent extends /*#__PURE__*/S.Union(OutputText, Refusal) {}
|
|
3062
|
+
export class OutputMessageStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3063
|
+
export class OutputMessage extends /*#__PURE__*/S.Struct({
|
|
3064
|
+
"id": S.String,
|
|
3065
|
+
"type": OutputMessageType,
|
|
3066
|
+
"role": OutputMessageRole,
|
|
3067
|
+
"content": /*#__PURE__*/S.Array(OutputContent),
|
|
3068
|
+
"status": OutputMessageStatus
|
|
3069
|
+
}) {}
|
|
3070
|
+
export class FileSearchToolCallType extends /*#__PURE__*/S.Literal("file_search_call") {}
|
|
3071
|
+
export class FileSearchToolCallStatus extends /*#__PURE__*/S.Literal("in_progress", "searching", "completed", "incomplete", "failed") {}
|
|
3072
|
+
export class VectorStoreFileAttributes extends /*#__PURE__*/S.Record({
|
|
3073
|
+
key: S.String,
|
|
3074
|
+
value: S.Unknown
|
|
3075
|
+
}) {}
|
|
3076
|
+
export class FileSearchToolCall extends /*#__PURE__*/S.Struct({
|
|
3077
|
+
"id": S.String,
|
|
3078
|
+
"type": FileSearchToolCallType,
|
|
3079
|
+
"status": FileSearchToolCallStatus,
|
|
3080
|
+
"queries": /*#__PURE__*/S.Array(S.String),
|
|
3081
|
+
"results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
3082
|
+
"file_id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3083
|
+
nullable: true
|
|
3084
|
+
}),
|
|
3085
|
+
"text": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3086
|
+
nullable: true
|
|
3087
|
+
}),
|
|
3088
|
+
"filename": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3089
|
+
nullable: true
|
|
3090
|
+
}),
|
|
3091
|
+
"attributes": /*#__PURE__*/S.optionalWith(VectorStoreFileAttributes, {
|
|
3092
|
+
nullable: true
|
|
3093
|
+
}),
|
|
3094
|
+
"score": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
3095
|
+
nullable: true
|
|
3096
|
+
})
|
|
3097
|
+
})), {
|
|
3098
|
+
nullable: true
|
|
3099
|
+
})
|
|
3100
|
+
}) {}
|
|
3101
|
+
export class ComputerToolCallType extends /*#__PURE__*/S.Literal("computer_call") {}
|
|
3102
|
+
export class ClickType extends /*#__PURE__*/S.Literal("click") {}
|
|
3103
|
+
export class ClickButton extends /*#__PURE__*/S.Literal("left", "right", "wheel", "back", "forward") {}
|
|
3104
|
+
export class Click extends /*#__PURE__*/S.Struct({
|
|
3105
|
+
"type": /*#__PURE__*/ClickType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "click")),
|
|
3106
|
+
"button": ClickButton,
|
|
3107
|
+
"x": S.Int,
|
|
3108
|
+
"y": S.Int
|
|
3109
|
+
}) {}
|
|
3110
|
+
export class DoubleClickType extends /*#__PURE__*/S.Literal("double_click") {}
|
|
3111
|
+
export class DoubleClick extends /*#__PURE__*/S.Struct({
|
|
3112
|
+
"type": /*#__PURE__*/DoubleClickType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "double_click")),
|
|
3113
|
+
"x": S.Int,
|
|
3114
|
+
"y": S.Int
|
|
3115
|
+
}) {}
|
|
3116
|
+
export class DragType extends /*#__PURE__*/S.Literal("drag") {}
|
|
3117
|
+
export class Coordinate extends /*#__PURE__*/S.Struct({
|
|
3118
|
+
"x": S.Int,
|
|
3119
|
+
"y": S.Int
|
|
3120
|
+
}) {}
|
|
3121
|
+
export class Drag extends /*#__PURE__*/S.Struct({
|
|
3122
|
+
"type": /*#__PURE__*/DragType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "drag")),
|
|
3123
|
+
"path": /*#__PURE__*/S.Array(Coordinate)
|
|
3124
|
+
}) {}
|
|
3125
|
+
export class KeyPressType extends /*#__PURE__*/S.Literal("keypress") {}
|
|
3126
|
+
export class KeyPress extends /*#__PURE__*/S.Struct({
|
|
3127
|
+
"type": /*#__PURE__*/KeyPressType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "keypress")),
|
|
3128
|
+
"keys": /*#__PURE__*/S.Array(S.String)
|
|
3129
|
+
}) {}
|
|
3130
|
+
export class MoveType extends /*#__PURE__*/S.Literal("move") {}
|
|
3131
|
+
export class Move extends /*#__PURE__*/S.Struct({
|
|
3132
|
+
"type": /*#__PURE__*/MoveType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "move")),
|
|
3133
|
+
"x": S.Int,
|
|
3134
|
+
"y": S.Int
|
|
3135
|
+
}) {}
|
|
3136
|
+
export class ScreenshotType extends /*#__PURE__*/S.Literal("screenshot") {}
|
|
3137
|
+
export class Screenshot extends /*#__PURE__*/S.Struct({
|
|
3138
|
+
"type": /*#__PURE__*/ScreenshotType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "screenshot"))
|
|
3139
|
+
}) {}
|
|
3140
|
+
export class ScrollType extends /*#__PURE__*/S.Literal("scroll") {}
|
|
3141
|
+
export class Scroll extends /*#__PURE__*/S.Struct({
|
|
3142
|
+
"type": /*#__PURE__*/ScrollType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "scroll")),
|
|
3143
|
+
"x": S.Int,
|
|
3144
|
+
"y": S.Int,
|
|
3145
|
+
"scroll_x": S.Int,
|
|
3146
|
+
"scroll_y": S.Int
|
|
3147
|
+
}) {}
|
|
3148
|
+
export class TypeType extends /*#__PURE__*/S.Literal("type") {}
|
|
3149
|
+
export class Type extends /*#__PURE__*/S.Struct({
|
|
3150
|
+
"type": /*#__PURE__*/TypeType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "type")),
|
|
3151
|
+
"text": S.String
|
|
3152
|
+
}) {}
|
|
3153
|
+
export class WaitType extends /*#__PURE__*/S.Literal("wait") {}
|
|
3154
|
+
export class Wait extends /*#__PURE__*/S.Struct({
|
|
3155
|
+
"type": /*#__PURE__*/WaitType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "wait"))
|
|
3156
|
+
}) {}
|
|
3157
|
+
export class ComputerAction extends /*#__PURE__*/S.Union(Click, DoubleClick, Drag, KeyPress, Move, Screenshot, Scroll, Type, Wait) {}
|
|
3158
|
+
export class ComputerToolCallSafetyCheck extends /*#__PURE__*/S.Struct({
|
|
3159
|
+
"id": S.String,
|
|
3160
|
+
"code": S.String,
|
|
3161
|
+
"message": S.String
|
|
3162
|
+
}) {}
|
|
3163
|
+
export class ComputerToolCallStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3164
|
+
export class ComputerToolCall extends /*#__PURE__*/S.Struct({
|
|
3165
|
+
"type": /*#__PURE__*/ComputerToolCallType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "computer_call")),
|
|
3166
|
+
"id": S.String,
|
|
3167
|
+
"call_id": S.String,
|
|
3168
|
+
"action": ComputerAction,
|
|
3169
|
+
"pending_safety_checks": /*#__PURE__*/S.Array(ComputerToolCallSafetyCheck),
|
|
3170
|
+
"status": ComputerToolCallStatus
|
|
3171
|
+
}) {}
|
|
3172
|
+
export class ComputerToolCallOutputType extends /*#__PURE__*/S.Literal("computer_call_output") {}
|
|
3173
|
+
export class ComputerScreenshotImageType extends /*#__PURE__*/S.Literal("computer_screenshot") {}
|
|
3174
|
+
export class ComputerScreenshotImage extends /*#__PURE__*/S.Struct({
|
|
3175
|
+
"type": /*#__PURE__*/ComputerScreenshotImageType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "computer_screenshot")),
|
|
3176
|
+
"image_url": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3177
|
+
nullable: true
|
|
3178
|
+
}),
|
|
3179
|
+
"file_id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3180
|
+
nullable: true
|
|
3181
|
+
})
|
|
3182
|
+
}) {}
|
|
3183
|
+
export class ComputerToolCallOutputStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3184
|
+
export class ComputerToolCallOutput extends /*#__PURE__*/S.Struct({
|
|
3185
|
+
"type": /*#__PURE__*/ComputerToolCallOutputType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "computer_call_output")),
|
|
3186
|
+
"id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3187
|
+
nullable: true
|
|
3188
|
+
}),
|
|
3189
|
+
"call_id": S.String,
|
|
3190
|
+
"acknowledged_safety_checks": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
|
|
3191
|
+
nullable: true
|
|
3192
|
+
}),
|
|
3193
|
+
"output": ComputerScreenshotImage,
|
|
3194
|
+
"status": /*#__PURE__*/S.optionalWith(ComputerToolCallOutputStatus, {
|
|
3195
|
+
nullable: true
|
|
3196
|
+
})
|
|
3197
|
+
}) {}
|
|
3198
|
+
export class WebSearchToolCallType extends /*#__PURE__*/S.Literal("web_search_call") {}
|
|
3199
|
+
export class WebSearchToolCallStatus extends /*#__PURE__*/S.Literal("in_progress", "searching", "completed", "failed") {}
|
|
3200
|
+
export class WebSearchToolCall extends /*#__PURE__*/S.Struct({
|
|
3201
|
+
"id": S.String,
|
|
3202
|
+
"type": WebSearchToolCallType,
|
|
3203
|
+
"status": WebSearchToolCallStatus
|
|
3204
|
+
}) {}
|
|
3205
|
+
export class FunctionToolCallType extends /*#__PURE__*/S.Literal("function_call") {}
|
|
3206
|
+
export class FunctionToolCallStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3207
|
+
export class FunctionToolCall extends /*#__PURE__*/S.Struct({
|
|
3208
|
+
"id": S.String,
|
|
3209
|
+
"type": FunctionToolCallType,
|
|
3210
|
+
"call_id": S.String,
|
|
3211
|
+
"name": S.String,
|
|
3212
|
+
"arguments": S.String,
|
|
3213
|
+
"status": /*#__PURE__*/S.optionalWith(FunctionToolCallStatus, {
|
|
3214
|
+
nullable: true
|
|
3215
|
+
})
|
|
3216
|
+
}) {}
|
|
3217
|
+
export class FunctionToolCallOutputType extends /*#__PURE__*/S.Literal("function_call_output") {}
|
|
3218
|
+
export class FunctionToolCallOutputStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3219
|
+
export class FunctionToolCallOutput extends /*#__PURE__*/S.Struct({
|
|
3220
|
+
"id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3221
|
+
nullable: true
|
|
3222
|
+
}),
|
|
3223
|
+
"type": FunctionToolCallOutputType,
|
|
3224
|
+
"call_id": S.String,
|
|
3225
|
+
"output": S.String,
|
|
3226
|
+
"status": /*#__PURE__*/S.optionalWith(FunctionToolCallOutputStatus, {
|
|
3227
|
+
nullable: true
|
|
3228
|
+
})
|
|
3229
|
+
}) {}
|
|
3230
|
+
export class ReasoningItemType extends /*#__PURE__*/S.Literal("reasoning") {}
|
|
3231
|
+
export class ReasoningItemStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3232
|
+
export class ReasoningItem extends /*#__PURE__*/S.Struct({
|
|
3233
|
+
"type": ReasoningItemType,
|
|
3234
|
+
"id": S.String,
|
|
3235
|
+
"content": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
3236
|
+
"type": /*#__PURE__*/S.Literal("reasoning_summary"),
|
|
3237
|
+
"text": S.String
|
|
3238
|
+
})),
|
|
3239
|
+
"status": /*#__PURE__*/S.optionalWith(ReasoningItemStatus, {
|
|
3240
|
+
nullable: true
|
|
3241
|
+
})
|
|
3242
|
+
}) {}
|
|
3243
|
+
export class Item extends /*#__PURE__*/S.Record({
|
|
3244
|
+
key: S.String,
|
|
3245
|
+
value: S.Unknown
|
|
3246
|
+
}) {}
|
|
3247
|
+
export class ItemReferenceType extends /*#__PURE__*/S.Literal("item_reference") {}
|
|
3248
|
+
export class ItemReference extends /*#__PURE__*/S.Struct({
|
|
3249
|
+
"id": S.String,
|
|
3250
|
+
"type": ItemReferenceType
|
|
3251
|
+
}) {}
|
|
3252
|
+
export class InputItem extends /*#__PURE__*/S.Union(EasyInputMessage, /*#__PURE__*/S.Record({
|
|
3253
|
+
key: S.String,
|
|
3254
|
+
value: S.Unknown
|
|
3255
|
+
}), ItemReference) {}
|
|
3256
|
+
export class Includable extends /*#__PURE__*/S.Literal("file_search_call.results", "message.input_image.image_url", "computer_call_output.output.image_url") {}
|
|
3257
|
+
export class ReasoningGenerateSummary extends /*#__PURE__*/S.Literal("concise", "detailed") {}
|
|
3258
|
+
export class Reasoning extends /*#__PURE__*/S.Struct({
|
|
3259
|
+
"effort": /*#__PURE__*/S.NullOr(ReasoningEffort).pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "medium")),
|
|
3260
|
+
"generate_summary": /*#__PURE__*/S.optionalWith(ReasoningGenerateSummary, {
|
|
3261
|
+
nullable: true
|
|
3262
|
+
})
|
|
3263
|
+
}) {}
|
|
3264
|
+
export class TextResponseFormatJsonSchemaType extends /*#__PURE__*/S.Literal("json_schema") {}
|
|
3265
|
+
export class TextResponseFormatJsonSchema extends /*#__PURE__*/S.Struct({
|
|
3266
|
+
"type": TextResponseFormatJsonSchemaType,
|
|
3267
|
+
"description": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3268
|
+
nullable: true
|
|
3269
|
+
}),
|
|
3270
|
+
"name": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3271
|
+
nullable: true
|
|
3272
|
+
}),
|
|
3273
|
+
"schema": ResponseFormatJsonSchemaSchema,
|
|
3274
|
+
"strict": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3275
|
+
nullable: true,
|
|
3276
|
+
default: () => false
|
|
3277
|
+
})
|
|
3278
|
+
}) {}
|
|
3279
|
+
export class TextResponseFormatConfiguration extends /*#__PURE__*/S.Union(ResponseFormatText, TextResponseFormatJsonSchema, ResponseFormatJsonObject) {}
|
|
3280
|
+
export class FileSearchToolType extends /*#__PURE__*/S.Literal("file_search") {}
|
|
3281
|
+
export class ComparisonFilterType extends /*#__PURE__*/S.Literal("eq", "ne", "gt", "gte", "lt", "lte") {}
|
|
3282
|
+
export class ComparisonFilter extends /*#__PURE__*/S.Struct({
|
|
3283
|
+
"type": /*#__PURE__*/ComparisonFilterType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "eq")),
|
|
3284
|
+
"key": S.String,
|
|
3285
|
+
"value": /*#__PURE__*/S.Union(S.String, S.Number, S.Boolean)
|
|
3286
|
+
}) {}
|
|
3287
|
+
export class CompoundFilterType extends /*#__PURE__*/S.Literal("and", "or") {}
|
|
3288
|
+
export class CompoundFilter extends /*#__PURE__*/S.Struct({
|
|
3289
|
+
"type": CompoundFilterType,
|
|
3290
|
+
"filters": /*#__PURE__*/S.Array(ComparisonFilter)
|
|
3291
|
+
}) {}
|
|
3292
|
+
export class FileSearchToolRankingOptionsRanker extends /*#__PURE__*/S.Literal("auto", "default-2024-11-15") {}
|
|
3293
|
+
export class FileSearchTool extends /*#__PURE__*/S.Struct({
|
|
3294
|
+
"type": FileSearchToolType,
|
|
3295
|
+
"vector_store_ids": /*#__PURE__*/S.Array(S.String),
|
|
3296
|
+
"max_num_results": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
3297
|
+
nullable: true
|
|
3298
|
+
}),
|
|
3299
|
+
"filters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
|
|
3300
|
+
nullable: true
|
|
3301
|
+
}),
|
|
3302
|
+
"ranking_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
3303
|
+
"ranker": /*#__PURE__*/S.optionalWith(FileSearchToolRankingOptionsRanker, {
|
|
3304
|
+
nullable: true,
|
|
3305
|
+
default: () => "auto"
|
|
3306
|
+
}),
|
|
3307
|
+
"score_threshold": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
|
|
3308
|
+
nullable: true,
|
|
3309
|
+
default: () => 0
|
|
3310
|
+
})
|
|
3311
|
+
}), {
|
|
3312
|
+
nullable: true
|
|
3313
|
+
})
|
|
3314
|
+
}) {}
|
|
3315
|
+
export class FunctionToolType extends /*#__PURE__*/S.Literal("function") {}
|
|
3316
|
+
export class FunctionTool extends /*#__PURE__*/S.Struct({
|
|
3317
|
+
"type": FunctionToolType,
|
|
3318
|
+
"name": S.String,
|
|
3319
|
+
"description": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3320
|
+
nullable: true
|
|
3321
|
+
}),
|
|
3322
|
+
"parameters": /*#__PURE__*/S.Record({
|
|
3323
|
+
key: S.String,
|
|
3324
|
+
value: S.Unknown
|
|
3325
|
+
}),
|
|
3326
|
+
"strict": S.Boolean
|
|
3327
|
+
}) {}
|
|
3328
|
+
export class ComputerToolType extends /*#__PURE__*/S.Literal("computer-preview") {}
|
|
3329
|
+
export class ComputerToolEnvironment extends /*#__PURE__*/S.Literal("mac", "windows", "ubuntu", "browser") {}
|
|
3330
|
+
export class ComputerTool extends /*#__PURE__*/S.Struct({
|
|
3331
|
+
"type": ComputerToolType,
|
|
3332
|
+
"display_width": S.Number,
|
|
3333
|
+
"display_height": S.Number,
|
|
3334
|
+
"environment": ComputerToolEnvironment
|
|
3335
|
+
}) {}
|
|
3336
|
+
export class WebSearchToolType extends /*#__PURE__*/S.Literal("web_search_preview", "web_search_preview_2025_03_11") {}
|
|
3337
|
+
export class WebSearchToolUserLocationEnumType extends /*#__PURE__*/S.Literal("approximate") {}
|
|
3338
|
+
export class WebSearchToolUserLocation extends /*#__PURE__*/S.Struct({
|
|
3339
|
+
"type": /*#__PURE__*/S.Literal("approximate"),
|
|
3340
|
+
"country": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3341
|
+
nullable: true
|
|
3342
|
+
}),
|
|
3343
|
+
"region": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3344
|
+
nullable: true
|
|
3345
|
+
}),
|
|
3346
|
+
"city": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3347
|
+
nullable: true
|
|
3348
|
+
}),
|
|
3349
|
+
"timezone": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3350
|
+
nullable: true
|
|
3351
|
+
})
|
|
3352
|
+
}) {}
|
|
3353
|
+
export class WebSearchTool extends /*#__PURE__*/S.Struct({
|
|
3354
|
+
"type": WebSearchToolType,
|
|
3355
|
+
"user_location": /*#__PURE__*/S.optionalWith(WebSearchToolUserLocation, {
|
|
3356
|
+
nullable: true
|
|
3357
|
+
}),
|
|
3358
|
+
"search_context_size": /*#__PURE__*/S.optionalWith(WebSearchContextSize, {
|
|
3359
|
+
nullable: true,
|
|
3360
|
+
default: () => "medium"
|
|
3361
|
+
})
|
|
3362
|
+
}) {}
|
|
3363
|
+
export class Tool extends /*#__PURE__*/S.Union(FileSearchTool, FunctionTool, ComputerTool, WebSearchTool) {}
|
|
3364
|
+
export class ToolChoiceOptions extends /*#__PURE__*/S.Literal("none", "auto", "required") {}
|
|
3365
|
+
export class ToolChoiceTypesType extends /*#__PURE__*/S.Literal("file_search", "web_search_preview", "computer_use_preview", "web_search_preview_2025_03_11") {}
|
|
3366
|
+
export class ToolChoiceTypes extends /*#__PURE__*/S.Struct({
|
|
3367
|
+
"type": ToolChoiceTypesType
|
|
3368
|
+
}) {}
|
|
3369
|
+
export class ToolChoiceFunctionType extends /*#__PURE__*/S.Literal("function") {}
|
|
3370
|
+
export class ToolChoiceFunction extends /*#__PURE__*/S.Struct({
|
|
3371
|
+
"type": ToolChoiceFunctionType,
|
|
3372
|
+
"name": S.String
|
|
3373
|
+
}) {}
|
|
3374
|
+
export class CreateResponseTruncation extends /*#__PURE__*/S.Literal("auto", "disabled") {}
|
|
3375
|
+
export class CreateResponseModelEnum extends /*#__PURE__*/S.Literal("o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
|
|
3376
|
+
export class CreateResponse extends /*#__PURE__*/S.Class("CreateResponse")({
|
|
3377
|
+
"input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(InputItem)),
|
|
3378
|
+
"include": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Includable), {
|
|
3379
|
+
nullable: true
|
|
3380
|
+
}),
|
|
3381
|
+
"parallel_tool_calls": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3382
|
+
nullable: true,
|
|
3383
|
+
default: () => true
|
|
3384
|
+
}),
|
|
3385
|
+
"store": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3386
|
+
nullable: true,
|
|
3387
|
+
default: () => true
|
|
2662
3388
|
}),
|
|
2663
|
-
"
|
|
3389
|
+
"stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3390
|
+
nullable: true,
|
|
3391
|
+
default: () => false
|
|
3392
|
+
}),
|
|
3393
|
+
"previous_response_id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2664
3394
|
nullable: true
|
|
2665
3395
|
}),
|
|
2666
|
-
"
|
|
3396
|
+
"reasoning": /*#__PURE__*/S.optionalWith(Reasoning, {
|
|
2667
3397
|
nullable: true
|
|
2668
3398
|
}),
|
|
2669
|
-
"
|
|
3399
|
+
"max_output_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
2670
3400
|
nullable: true
|
|
2671
3401
|
}),
|
|
2672
|
-
"
|
|
2673
|
-
"model": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2674
|
-
nullable: true
|
|
2675
|
-
}),
|
|
2676
|
-
"language": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2677
|
-
nullable: true
|
|
2678
|
-
}),
|
|
2679
|
-
"prompt": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2680
|
-
nullable: true
|
|
2681
|
-
})
|
|
2682
|
-
}), {
|
|
3402
|
+
"instructions": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2683
3403
|
nullable: true
|
|
2684
3404
|
}),
|
|
2685
|
-
"
|
|
2686
|
-
"
|
|
2687
|
-
nullable: true
|
|
2688
|
-
}),
|
|
2689
|
-
"threshold": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
2690
|
-
nullable: true
|
|
2691
|
-
}),
|
|
2692
|
-
"prefix_padding_ms": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
2693
|
-
nullable: true
|
|
2694
|
-
}),
|
|
2695
|
-
"silence_duration_ms": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
3405
|
+
"text": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
3406
|
+
"format": /*#__PURE__*/S.optionalWith(TextResponseFormatConfiguration, {
|
|
2696
3407
|
nullable: true
|
|
2697
|
-
}),
|
|
2698
|
-
"create_response": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
2699
|
-
nullable: true,
|
|
2700
|
-
default: () => true
|
|
2701
3408
|
})
|
|
2702
3409
|
}), {
|
|
2703
3410
|
nullable: true
|
|
2704
3411
|
}),
|
|
2705
|
-
"tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(
|
|
2706
|
-
"type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("function"), {
|
|
2707
|
-
nullable: true
|
|
2708
|
-
}),
|
|
2709
|
-
"name": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2710
|
-
nullable: true
|
|
2711
|
-
}),
|
|
2712
|
-
"description": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2713
|
-
nullable: true
|
|
2714
|
-
}),
|
|
2715
|
-
"parameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
|
|
2716
|
-
key: S.String,
|
|
2717
|
-
value: S.Unknown
|
|
2718
|
-
}), {
|
|
2719
|
-
nullable: true
|
|
2720
|
-
})
|
|
2721
|
-
})), {
|
|
3412
|
+
"tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Tool), {
|
|
2722
3413
|
nullable: true
|
|
2723
3414
|
}),
|
|
2724
|
-
"tool_choice": /*#__PURE__*/S.optionalWith(S.
|
|
3415
|
+
"tool_choice": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ToolChoiceOptions, ToolChoiceTypes, ToolChoiceFunction), {
|
|
2725
3416
|
nullable: true
|
|
2726
3417
|
}),
|
|
2727
|
-
"
|
|
3418
|
+
"truncation": /*#__PURE__*/S.optionalWith(CreateResponseTruncation, {
|
|
3419
|
+
nullable: true,
|
|
3420
|
+
default: () => "disabled"
|
|
3421
|
+
}),
|
|
3422
|
+
"model": /*#__PURE__*/S.Union(S.String, CreateResponseModelEnum),
|
|
3423
|
+
"metadata": /*#__PURE__*/S.optionalWith(Metadata, {
|
|
2728
3424
|
nullable: true
|
|
2729
3425
|
}),
|
|
2730
|
-
"
|
|
3426
|
+
"temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
|
|
3427
|
+
nullable: true,
|
|
3428
|
+
default: () => 1
|
|
3429
|
+
}),
|
|
3430
|
+
"top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
|
|
3431
|
+
nullable: true,
|
|
3432
|
+
default: () => 1
|
|
3433
|
+
}),
|
|
3434
|
+
"user": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2731
3435
|
nullable: true
|
|
2732
3436
|
})
|
|
2733
3437
|
}) {}
|
|
2734
|
-
export class
|
|
2735
|
-
export class
|
|
2736
|
-
export class
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
3438
|
+
export class ResponseObject extends /*#__PURE__*/S.Literal("response") {}
|
|
3439
|
+
export class ResponseStatus extends /*#__PURE__*/S.Literal("completed", "failed", "in_progress", "incomplete") {}
|
|
3440
|
+
export class ResponseErrorCode extends /*#__PURE__*/S.Literal("server_error", "rate_limit_exceeded", "invalid_prompt", "vector_store_timeout", "invalid_image", "invalid_image_format", "invalid_base64_image", "invalid_image_url", "image_too_large", "image_too_small", "image_parse_error", "image_content_policy_violation", "invalid_image_mode", "image_file_too_large", "unsupported_image_media_type", "empty_image_file", "failed_to_download_image", "image_file_not_found") {}
|
|
3441
|
+
export class ResponseError extends /*#__PURE__*/S.Struct({
|
|
3442
|
+
"code": ResponseErrorCode,
|
|
3443
|
+
"message": S.String
|
|
3444
|
+
}) {}
|
|
3445
|
+
export class ResponseIncompleteDetailsReason extends /*#__PURE__*/S.Literal("max_output_tokens", "content_filter") {}
|
|
3446
|
+
export class OutputItem extends /*#__PURE__*/S.Union(OutputMessage, FileSearchToolCall, FunctionToolCall, WebSearchToolCall, ComputerToolCall, ReasoningItem) {}
|
|
3447
|
+
export class ResponseUsage extends /*#__PURE__*/S.Struct({
|
|
3448
|
+
"input_tokens": S.Int,
|
|
3449
|
+
"output_tokens": S.Int,
|
|
3450
|
+
"output_tokens_details": /*#__PURE__*/S.Struct({
|
|
3451
|
+
"reasoning_tokens": S.Int
|
|
2740
3452
|
}),
|
|
2741
|
-
"
|
|
3453
|
+
"total_tokens": S.Int
|
|
3454
|
+
}) {}
|
|
3455
|
+
export class ResponseTruncation extends /*#__PURE__*/S.Literal("auto", "disabled") {}
|
|
3456
|
+
export class ResponseModelEnum extends /*#__PURE__*/S.Literal("o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "computer-use-preview", "computer-use-preview-2025-02-04", "computer-use-preview-2025-03-11", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
|
|
3457
|
+
export class Response extends /*#__PURE__*/S.Class("Response")({
|
|
3458
|
+
"id": S.String,
|
|
3459
|
+
"object": ResponseObject,
|
|
3460
|
+
"status": /*#__PURE__*/S.optionalWith(ResponseStatus, {
|
|
2742
3461
|
nullable: true
|
|
2743
3462
|
}),
|
|
2744
|
-
"
|
|
3463
|
+
"created_at": S.Number,
|
|
3464
|
+
"error": /*#__PURE__*/S.NullOr(ResponseError),
|
|
3465
|
+
"incomplete_details": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
|
|
3466
|
+
"reason": /*#__PURE__*/S.optionalWith(ResponseIncompleteDetailsReason, {
|
|
3467
|
+
nullable: true
|
|
3468
|
+
})
|
|
3469
|
+
})),
|
|
3470
|
+
"output": /*#__PURE__*/S.Array(OutputItem),
|
|
3471
|
+
"output_text": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2745
3472
|
nullable: true
|
|
2746
3473
|
}),
|
|
2747
|
-
"
|
|
3474
|
+
"usage": /*#__PURE__*/S.optionalWith(ResponseUsage, {
|
|
2748
3475
|
nullable: true
|
|
2749
3476
|
}),
|
|
2750
|
-
"
|
|
3477
|
+
"parallel_tool_calls": /*#__PURE__*/S.Boolean.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => true)),
|
|
3478
|
+
"previous_response_id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2751
3479
|
nullable: true
|
|
2752
3480
|
}),
|
|
2753
|
-
"
|
|
2754
|
-
"model": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2755
|
-
nullable: true
|
|
2756
|
-
})
|
|
2757
|
-
}), {
|
|
3481
|
+
"reasoning": /*#__PURE__*/S.optionalWith(Reasoning, {
|
|
2758
3482
|
nullable: true
|
|
2759
3483
|
}),
|
|
2760
|
-
"
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
}),
|
|
2767
|
-
"prefix_padding_ms": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
2768
|
-
nullable: true
|
|
2769
|
-
}),
|
|
2770
|
-
"silence_duration_ms": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
3484
|
+
"max_output_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
3485
|
+
nullable: true
|
|
3486
|
+
}),
|
|
3487
|
+
"instructions": /*#__PURE__*/S.NullOr(S.String),
|
|
3488
|
+
"text": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
3489
|
+
"format": /*#__PURE__*/S.optionalWith(TextResponseFormatConfiguration, {
|
|
2771
3490
|
nullable: true
|
|
2772
3491
|
})
|
|
2773
3492
|
}), {
|
|
2774
3493
|
nullable: true
|
|
2775
3494
|
}),
|
|
2776
|
-
"tools": /*#__PURE__*/S.
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
})), {
|
|
3495
|
+
"tools": /*#__PURE__*/S.Array(Tool),
|
|
3496
|
+
"tool_choice": /*#__PURE__*/S.Union(ToolChoiceOptions, ToolChoiceTypes, ToolChoiceFunction),
|
|
3497
|
+
"truncation": /*#__PURE__*/S.optionalWith(ResponseTruncation, {
|
|
3498
|
+
nullable: true,
|
|
3499
|
+
default: () => "disabled"
|
|
3500
|
+
}),
|
|
3501
|
+
"model": /*#__PURE__*/S.Union(S.String, ResponseModelEnum),
|
|
3502
|
+
"metadata": /*#__PURE__*/S.NullOr(Metadata),
|
|
3503
|
+
"temperature": /*#__PURE__*/S.NullOr(S.Number.pipe(S.greaterThanOrEqualTo(0), S.lessThanOrEqualTo(2))).pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 1)),
|
|
3504
|
+
"top_p": /*#__PURE__*/S.NullOr(S.Number.pipe(S.greaterThanOrEqualTo(0), S.lessThanOrEqualTo(1))).pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 1)),
|
|
3505
|
+
"user": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3506
|
+
nullable: true
|
|
3507
|
+
})
|
|
3508
|
+
}) {}
|
|
3509
|
+
export class GetResponseParams extends /*#__PURE__*/S.Struct({
|
|
3510
|
+
"include": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Includable), {
|
|
2793
3511
|
nullable: true
|
|
3512
|
+
})
|
|
3513
|
+
}) {}
|
|
3514
|
+
export class ListInputItemsParamsOrder extends /*#__PURE__*/S.Literal("asc", "desc") {}
|
|
3515
|
+
export class ListInputItemsParams extends /*#__PURE__*/S.Struct({
|
|
3516
|
+
"limit": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
3517
|
+
nullable: true,
|
|
3518
|
+
default: () => 20
|
|
2794
3519
|
}),
|
|
2795
|
-
"
|
|
3520
|
+
"order": /*#__PURE__*/S.optionalWith(ListInputItemsParamsOrder, {
|
|
2796
3521
|
nullable: true
|
|
2797
3522
|
}),
|
|
2798
|
-
"
|
|
3523
|
+
"after": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2799
3524
|
nullable: true
|
|
2800
3525
|
}),
|
|
2801
|
-
"
|
|
3526
|
+
"before": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3527
|
+
nullable: true
|
|
3528
|
+
})
|
|
3529
|
+
}) {}
|
|
3530
|
+
export class ResponseItemListObject extends /*#__PURE__*/S.Literal("list") {}
|
|
3531
|
+
export class InputMessageResourceType extends /*#__PURE__*/S.Literal("message") {}
|
|
3532
|
+
export class InputMessageResourceRole extends /*#__PURE__*/S.Literal("user", "system", "developer") {}
|
|
3533
|
+
export class InputMessageResourceStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3534
|
+
export class InputMessageResource extends /*#__PURE__*/S.Struct({
|
|
3535
|
+
"id": S.String,
|
|
3536
|
+
"type": /*#__PURE__*/S.optionalWith(InputMessageResourceType, {
|
|
3537
|
+
nullable: true
|
|
3538
|
+
}),
|
|
3539
|
+
"role": InputMessageResourceRole,
|
|
3540
|
+
"status": /*#__PURE__*/S.optionalWith(InputMessageResourceStatus, {
|
|
3541
|
+
nullable: true
|
|
3542
|
+
}),
|
|
3543
|
+
"content": InputMessageContentList
|
|
3544
|
+
}) {}
|
|
3545
|
+
export class ComputerToolCallOutputResourceType extends /*#__PURE__*/S.Literal("computer_call_output") {}
|
|
3546
|
+
export class ComputerToolCallOutputResourceStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3547
|
+
export class ComputerToolCallOutputResource extends /*#__PURE__*/S.Struct({
|
|
3548
|
+
"id": S.String,
|
|
3549
|
+
"type": /*#__PURE__*/ComputerToolCallOutputResourceType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "computer_call_output")),
|
|
3550
|
+
"call_id": S.String,
|
|
3551
|
+
"acknowledged_safety_checks": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
|
|
3552
|
+
nullable: true
|
|
3553
|
+
}),
|
|
3554
|
+
"output": ComputerScreenshotImage,
|
|
3555
|
+
"status": /*#__PURE__*/S.optionalWith(ComputerToolCallOutputResourceStatus, {
|
|
3556
|
+
nullable: true
|
|
3557
|
+
})
|
|
3558
|
+
}) {}
|
|
3559
|
+
export class FunctionToolCallOutputResourceType extends /*#__PURE__*/S.Literal("function_call_output") {}
|
|
3560
|
+
export class FunctionToolCallOutputResourceStatus extends /*#__PURE__*/S.Literal("in_progress", "completed", "incomplete") {}
|
|
3561
|
+
export class FunctionToolCallOutputResource extends /*#__PURE__*/S.Struct({
|
|
3562
|
+
"id": S.String,
|
|
3563
|
+
"type": FunctionToolCallOutputResourceType,
|
|
3564
|
+
"call_id": S.String,
|
|
3565
|
+
"output": S.String,
|
|
3566
|
+
"status": /*#__PURE__*/S.optionalWith(FunctionToolCallOutputResourceStatus, {
|
|
2802
3567
|
nullable: true
|
|
2803
3568
|
})
|
|
2804
3569
|
}) {}
|
|
3570
|
+
export class ItemResource extends /*#__PURE__*/S.Union(InputMessageResource, OutputMessage, FileSearchToolCall, ComputerToolCall, ComputerToolCallOutputResource, WebSearchToolCall, FunctionToolCall, FunctionToolCallOutputResource) {}
|
|
3571
|
+
export class ResponseItemList extends /*#__PURE__*/S.Class("ResponseItemList")({
|
|
3572
|
+
"object": ResponseItemListObject,
|
|
3573
|
+
"data": /*#__PURE__*/S.Array(ItemResource),
|
|
3574
|
+
"has_more": S.Boolean,
|
|
3575
|
+
"first_id": S.String,
|
|
3576
|
+
"last_id": S.String
|
|
3577
|
+
}) {}
|
|
2805
3578
|
export class CreateMessageRequestRole extends /*#__PURE__*/S.Literal("user", "assistant") {}
|
|
2806
3579
|
export class MessageContentImageFileObjectType extends /*#__PURE__*/S.Literal("image_file") {}
|
|
2807
3580
|
export class MessageContentImageFileObjectImageFileDetail extends /*#__PURE__*/S.Literal("auto", "low", "high") {}
|
|
@@ -2920,15 +3693,15 @@ export class ThreadObject extends /*#__PURE__*/S.Class("ThreadObject")({
|
|
|
2920
3693
|
})),
|
|
2921
3694
|
"metadata": /*#__PURE__*/S.NullOr(Metadata)
|
|
2922
3695
|
}) {}
|
|
2923
|
-
export class CreateThreadAndRunRequestModelEnum extends /*#__PURE__*/S.Literal("gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
|
|
2924
|
-
export class
|
|
2925
|
-
export class
|
|
2926
|
-
"type":
|
|
3696
|
+
export class CreateThreadAndRunRequestModelEnum extends /*#__PURE__*/S.Literal("gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4.5-preview", "gpt-4.5-preview-2025-02-27", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
|
|
3697
|
+
export class CreateThreadAndRunRequestTruncationStrategyEnumType extends /*#__PURE__*/S.Literal("auto", "last_messages") {}
|
|
3698
|
+
export class CreateThreadAndRunRequestTruncationStrategy extends /*#__PURE__*/S.Struct({
|
|
3699
|
+
"type": /*#__PURE__*/S.Literal("auto", "last_messages"),
|
|
2927
3700
|
"last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
|
|
2928
3701
|
nullable: true
|
|
2929
3702
|
})
|
|
2930
3703
|
}) {}
|
|
2931
|
-
export class
|
|
3704
|
+
export class CreateThreadAndRunRequestToolChoiceEnumEnum extends /*#__PURE__*/S.Literal("none", "auto", "required") {}
|
|
2932
3705
|
export class AssistantsNamedToolChoiceType extends /*#__PURE__*/S.Literal("function", "code_interpreter", "file_search") {}
|
|
2933
3706
|
export class AssistantsNamedToolChoice extends /*#__PURE__*/S.Struct({
|
|
2934
3707
|
"type": AssistantsNamedToolChoiceType,
|
|
@@ -2938,7 +3711,7 @@ export class AssistantsNamedToolChoice extends /*#__PURE__*/S.Struct({
|
|
|
2938
3711
|
nullable: true
|
|
2939
3712
|
})
|
|
2940
3713
|
}) {}
|
|
2941
|
-
export class
|
|
3714
|
+
export class CreateThreadAndRunRequestToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
|
|
2942
3715
|
export class CreateThreadAndRunRequest extends /*#__PURE__*/S.Class("CreateThreadAndRunRequest")({
|
|
2943
3716
|
"assistant_id": S.String,
|
|
2944
3717
|
"thread": /*#__PURE__*/S.optionalWith(CreateThreadRequest, {
|
|
@@ -2992,10 +3765,10 @@ export class CreateThreadAndRunRequest extends /*#__PURE__*/S.Class("CreateThrea
|
|
|
2992
3765
|
"max_completion_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
|
|
2993
3766
|
nullable: true
|
|
2994
3767
|
}),
|
|
2995
|
-
"truncation_strategy": /*#__PURE__*/S.optionalWith(
|
|
3768
|
+
"truncation_strategy": /*#__PURE__*/S.optionalWith(CreateThreadAndRunRequestTruncationStrategy, {
|
|
2996
3769
|
nullable: true
|
|
2997
3770
|
}),
|
|
2998
|
-
"tool_choice": /*#__PURE__*/S.optionalWith(
|
|
3771
|
+
"tool_choice": /*#__PURE__*/S.optionalWith(CreateThreadAndRunRequestToolChoice, {
|
|
2999
3772
|
nullable: true
|
|
3000
3773
|
}),
|
|
3001
3774
|
"parallel_tool_calls": /*#__PURE__*/S.optionalWith(ParallelToolCalls, {
|
|
@@ -3025,6 +3798,15 @@ export class RunCompletionUsage extends /*#__PURE__*/S.Struct({
|
|
|
3025
3798
|
"prompt_tokens": S.Int,
|
|
3026
3799
|
"total_tokens": S.Int
|
|
3027
3800
|
}) {}
|
|
3801
|
+
export class RunObjectTruncationStrategyEnumType extends /*#__PURE__*/S.Literal("auto", "last_messages") {}
|
|
3802
|
+
export class RunObjectTruncationStrategy extends /*#__PURE__*/S.Struct({
|
|
3803
|
+
"type": /*#__PURE__*/S.Literal("auto", "last_messages"),
|
|
3804
|
+
"last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
|
|
3805
|
+
nullable: true
|
|
3806
|
+
})
|
|
3807
|
+
}) {}
|
|
3808
|
+
export class RunObjectToolChoiceEnumEnum extends /*#__PURE__*/S.Literal("none", "auto", "required") {}
|
|
3809
|
+
export class RunObjectToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
|
|
3028
3810
|
export class RunObject extends /*#__PURE__*/S.Class("RunObject")({
|
|
3029
3811
|
"id": S.String,
|
|
3030
3812
|
"object": RunObjectObject,
|
|
@@ -3065,8 +3847,8 @@ export class RunObject extends /*#__PURE__*/S.Class("RunObject")({
|
|
|
3065
3847
|
}),
|
|
3066
3848
|
"max_prompt_tokens": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256))),
|
|
3067
3849
|
"max_completion_tokens": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256))),
|
|
3068
|
-
"truncation_strategy":
|
|
3069
|
-
"tool_choice":
|
|
3850
|
+
"truncation_strategy": RunObjectTruncationStrategy,
|
|
3851
|
+
"tool_choice": RunObjectToolChoice,
|
|
3070
3852
|
"parallel_tool_calls": /*#__PURE__*/ParallelToolCalls.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => true)),
|
|
3071
3853
|
"response_format": AssistantsApiResponseFormatOption
|
|
3072
3854
|
}) {}
|
|
@@ -3229,6 +4011,15 @@ export class CreateRunParams extends /*#__PURE__*/S.Struct({
|
|
|
3229
4011
|
nullable: true
|
|
3230
4012
|
})
|
|
3231
4013
|
}) {}
|
|
4014
|
+
export class CreateRunRequestTruncationStrategyEnumType extends /*#__PURE__*/S.Literal("auto", "last_messages") {}
|
|
4015
|
+
export class CreateRunRequestTruncationStrategy extends /*#__PURE__*/S.Struct({
|
|
4016
|
+
"type": /*#__PURE__*/S.Literal("auto", "last_messages"),
|
|
4017
|
+
"last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
|
|
4018
|
+
nullable: true
|
|
4019
|
+
})
|
|
4020
|
+
}) {}
|
|
4021
|
+
export class CreateRunRequestToolChoiceEnumEnum extends /*#__PURE__*/S.Literal("none", "auto", "required") {}
|
|
4022
|
+
export class CreateRunRequestToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
|
|
3232
4023
|
export class CreateRunRequest extends /*#__PURE__*/S.Class("CreateRunRequest")({
|
|
3233
4024
|
"assistant_id": S.String,
|
|
3234
4025
|
"model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
|
|
@@ -3270,10 +4061,10 @@ export class CreateRunRequest extends /*#__PURE__*/S.Class("CreateRunRequest")({
|
|
|
3270
4061
|
"max_completion_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
|
|
3271
4062
|
nullable: true
|
|
3272
4063
|
}),
|
|
3273
|
-
"truncation_strategy": /*#__PURE__*/S.optionalWith(
|
|
4064
|
+
"truncation_strategy": /*#__PURE__*/S.optionalWith(CreateRunRequestTruncationStrategy, {
|
|
3274
4065
|
nullable: true
|
|
3275
4066
|
}),
|
|
3276
|
-
"tool_choice": /*#__PURE__*/S.optionalWith(
|
|
4067
|
+
"tool_choice": /*#__PURE__*/S.optionalWith(CreateRunRequestToolChoice, {
|
|
3277
4068
|
nullable: true
|
|
3278
4069
|
}),
|
|
3279
4070
|
"parallel_tool_calls": /*#__PURE__*/S.optionalWith(ParallelToolCalls, {
|
|
@@ -3345,9 +4136,8 @@ export class RunStepDetailsToolCallsCodeObject extends /*#__PURE__*/S.Struct({
|
|
|
3345
4136
|
})
|
|
3346
4137
|
}) {}
|
|
3347
4138
|
export class RunStepDetailsToolCallsFileSearchObjectType extends /*#__PURE__*/S.Literal("file_search") {}
|
|
3348
|
-
export class RunStepDetailsToolCallsFileSearchRankingOptionsObjectRanker extends /*#__PURE__*/S.Literal("default_2024_08_21") {}
|
|
3349
4139
|
export class RunStepDetailsToolCallsFileSearchRankingOptionsObject extends /*#__PURE__*/S.Struct({
|
|
3350
|
-
"ranker":
|
|
4140
|
+
"ranker": FileSearchRanker,
|
|
3351
4141
|
"score_threshold": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
|
|
3352
4142
|
}) {}
|
|
3353
4143
|
export class RunStepDetailsToolCallsFileSearchResultObject extends /*#__PURE__*/S.Struct({
|
|
@@ -3455,6 +4245,24 @@ export class CreateUploadRequest extends /*#__PURE__*/S.Class("CreateUploadReque
|
|
|
3455
4245
|
}) {}
|
|
3456
4246
|
export class UploadStatus extends /*#__PURE__*/S.Literal("pending", "completed", "cancelled", "expired") {}
|
|
3457
4247
|
export class UploadObject extends /*#__PURE__*/S.Literal("upload") {}
|
|
4248
|
+
export class UploadFileEnumObject extends /*#__PURE__*/S.Literal("file") {}
|
|
4249
|
+
export class UploadFileEnumPurpose extends /*#__PURE__*/S.Literal("assistants", "assistants_output", "batch", "batch_output", "fine-tune", "fine-tune-results", "vision") {}
|
|
4250
|
+
export class UploadFileEnumStatus extends /*#__PURE__*/S.Literal("uploaded", "processed", "error") {}
|
|
4251
|
+
export class UploadFile extends /*#__PURE__*/S.Struct({
|
|
4252
|
+
"id": S.String,
|
|
4253
|
+
"bytes": S.Int,
|
|
4254
|
+
"created_at": S.Int,
|
|
4255
|
+
"expires_at": /*#__PURE__*/S.optionalWith(S.Int, {
|
|
4256
|
+
nullable: true
|
|
4257
|
+
}),
|
|
4258
|
+
"filename": S.String,
|
|
4259
|
+
"object": /*#__PURE__*/S.Literal("file"),
|
|
4260
|
+
"purpose": /*#__PURE__*/S.Literal("assistants", "assistants_output", "batch", "batch_output", "fine-tune", "fine-tune-results", "vision"),
|
|
4261
|
+
"status": /*#__PURE__*/S.Literal("uploaded", "processed", "error"),
|
|
4262
|
+
"status_details": /*#__PURE__*/S.optionalWith(S.String, {
|
|
4263
|
+
nullable: true
|
|
4264
|
+
})
|
|
4265
|
+
}) {}
|
|
3458
4266
|
export class Upload extends /*#__PURE__*/S.Class("Upload")({
|
|
3459
4267
|
"id": S.String,
|
|
3460
4268
|
"created_at": S.Int,
|
|
@@ -3466,7 +4274,7 @@ export class Upload extends /*#__PURE__*/S.Class("Upload")({
|
|
|
3466
4274
|
"object": /*#__PURE__*/S.optionalWith(UploadObject, {
|
|
3467
4275
|
nullable: true
|
|
3468
4276
|
}),
|
|
3469
|
-
"file": /*#__PURE__*/S.optionalWith(
|
|
4277
|
+
"file": /*#__PURE__*/S.optionalWith(UploadFile, {
|
|
3470
4278
|
nullable: true
|
|
3471
4279
|
})
|
|
3472
4280
|
}) {}
|
|
@@ -3570,11 +4378,16 @@ export class CreateVectorStoreRequest extends /*#__PURE__*/S.Class("CreateVector
|
|
|
3570
4378
|
nullable: true
|
|
3571
4379
|
})
|
|
3572
4380
|
}) {}
|
|
4381
|
+
export class UpdateVectorStoreRequestExpiresAfterEnumAnchor extends /*#__PURE__*/S.Literal("last_active_at") {}
|
|
4382
|
+
export class UpdateVectorStoreRequestExpiresAfter extends /*#__PURE__*/S.Struct({
|
|
4383
|
+
"anchor": /*#__PURE__*/S.Literal("last_active_at"),
|
|
4384
|
+
"days": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
|
|
4385
|
+
}) {}
|
|
3573
4386
|
export class UpdateVectorStoreRequest extends /*#__PURE__*/S.Class("UpdateVectorStoreRequest")({
|
|
3574
4387
|
"name": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3575
4388
|
nullable: true
|
|
3576
4389
|
}),
|
|
3577
|
-
"expires_after": /*#__PURE__*/S.optionalWith(
|
|
4390
|
+
"expires_after": /*#__PURE__*/S.optionalWith(UpdateVectorStoreRequestExpiresAfter, {
|
|
3578
4391
|
nullable: true
|
|
3579
4392
|
}),
|
|
3580
4393
|
"metadata": /*#__PURE__*/S.optionalWith(Metadata, {
|
|
@@ -3595,6 +4408,9 @@ export class CreateVectorStoreFileBatchRequest extends /*#__PURE__*/S.Class("Cre
|
|
|
3595
4408
|
"file_ids": /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(500)),
|
|
3596
4409
|
"chunking_strategy": /*#__PURE__*/S.optionalWith(ChunkingStrategyRequestParam, {
|
|
3597
4410
|
nullable: true
|
|
4411
|
+
}),
|
|
4412
|
+
"attributes": /*#__PURE__*/S.optionalWith(VectorStoreFileAttributes, {
|
|
4413
|
+
nullable: true
|
|
3598
4414
|
})
|
|
3599
4415
|
}) {}
|
|
3600
4416
|
export class VectorStoreFileBatchObjectObject extends /*#__PURE__*/S.Literal("vector_store.files_batch") {}
|
|
@@ -3662,6 +4478,9 @@ export class VectorStoreFileObject extends /*#__PURE__*/S.Struct({
|
|
|
3662
4478
|
value: S.Unknown
|
|
3663
4479
|
}), {
|
|
3664
4480
|
nullable: true
|
|
4481
|
+
}),
|
|
4482
|
+
"attributes": /*#__PURE__*/S.optionalWith(VectorStoreFileAttributes, {
|
|
4483
|
+
nullable: true
|
|
3665
4484
|
})
|
|
3666
4485
|
}) {}
|
|
3667
4486
|
export class ListVectorStoreFilesResponse extends /*#__PURE__*/S.Class("ListVectorStoreFilesResponse")({
|
|
@@ -3696,14 +4515,81 @@ export class CreateVectorStoreFileRequest extends /*#__PURE__*/S.Class("CreateVe
|
|
|
3696
4515
|
"file_id": S.String,
|
|
3697
4516
|
"chunking_strategy": /*#__PURE__*/S.optionalWith(ChunkingStrategyRequestParam, {
|
|
3698
4517
|
nullable: true
|
|
4518
|
+
}),
|
|
4519
|
+
"attributes": /*#__PURE__*/S.optionalWith(VectorStoreFileAttributes, {
|
|
4520
|
+
nullable: true
|
|
3699
4521
|
})
|
|
3700
4522
|
}) {}
|
|
4523
|
+
export class UpdateVectorStoreFileAttributesRequest extends /*#__PURE__*/S.Class("UpdateVectorStoreFileAttributesRequest")({
|
|
4524
|
+
"attributes": /*#__PURE__*/S.NullOr(VectorStoreFileAttributes)
|
|
4525
|
+
}) {}
|
|
3701
4526
|
export class DeleteVectorStoreFileResponseObject extends /*#__PURE__*/S.Literal("vector_store.file.deleted") {}
|
|
3702
4527
|
export class DeleteVectorStoreFileResponse extends /*#__PURE__*/S.Class("DeleteVectorStoreFileResponse")({
|
|
3703
4528
|
"id": S.String,
|
|
3704
4529
|
"deleted": S.Boolean,
|
|
3705
4530
|
"object": DeleteVectorStoreFileResponseObject
|
|
3706
4531
|
}) {}
|
|
4532
|
+
export class VectorStoreFileContentResponseObject extends /*#__PURE__*/S.Literal("vector_store.file_content.page") {}
|
|
4533
|
+
export class VectorStoreFileContentResponse extends /*#__PURE__*/S.Class("VectorStoreFileContentResponse")({
|
|
4534
|
+
"object": VectorStoreFileContentResponseObject,
|
|
4535
|
+
"data": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
|
|
4536
|
+
"type": /*#__PURE__*/S.optionalWith(S.String, {
|
|
4537
|
+
nullable: true
|
|
4538
|
+
}),
|
|
4539
|
+
"text": /*#__PURE__*/S.optionalWith(S.String, {
|
|
4540
|
+
nullable: true
|
|
4541
|
+
})
|
|
4542
|
+
})),
|
|
4543
|
+
"has_more": S.Boolean,
|
|
4544
|
+
"next_page": /*#__PURE__*/S.NullOr(S.String)
|
|
4545
|
+
}) {}
|
|
4546
|
+
export class VectorStoreSearchRequestRankingOptionsRanker extends /*#__PURE__*/S.Literal("auto", "default-2024-11-15") {}
|
|
4547
|
+
export class VectorStoreSearchRequest extends /*#__PURE__*/S.Class("VectorStoreSearchRequest")({
|
|
4548
|
+
"query": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String)),
|
|
4549
|
+
"rewrite_query": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
4550
|
+
nullable: true,
|
|
4551
|
+
default: () => false
|
|
4552
|
+
}),
|
|
4553
|
+
"max_num_results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
|
|
4554
|
+
nullable: true,
|
|
4555
|
+
default: () => 10
|
|
4556
|
+
}),
|
|
4557
|
+
"filters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
|
|
4558
|
+
nullable: true
|
|
4559
|
+
}),
|
|
4560
|
+
"ranking_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
|
|
4561
|
+
"ranker": /*#__PURE__*/S.optionalWith(VectorStoreSearchRequestRankingOptionsRanker, {
|
|
4562
|
+
nullable: true,
|
|
4563
|
+
default: () => "auto"
|
|
4564
|
+
}),
|
|
4565
|
+
"score_threshold": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
|
|
4566
|
+
nullable: true,
|
|
4567
|
+
default: () => 0
|
|
4568
|
+
})
|
|
4569
|
+
}), {
|
|
4570
|
+
nullable: true
|
|
4571
|
+
})
|
|
4572
|
+
}) {}
|
|
4573
|
+
export class VectorStoreSearchResultsPageObject extends /*#__PURE__*/S.Literal("vector_store.search_results.page") {}
|
|
4574
|
+
export class VectorStoreSearchResultContentObjectType extends /*#__PURE__*/S.Literal("text") {}
|
|
4575
|
+
export class VectorStoreSearchResultContentObject extends /*#__PURE__*/S.Struct({
|
|
4576
|
+
"type": VectorStoreSearchResultContentObjectType,
|
|
4577
|
+
"text": S.String
|
|
4578
|
+
}) {}
|
|
4579
|
+
export class VectorStoreSearchResultItem extends /*#__PURE__*/S.Struct({
|
|
4580
|
+
"file_id": S.String,
|
|
4581
|
+
"filename": S.String,
|
|
4582
|
+
"score": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
|
|
4583
|
+
"attributes": /*#__PURE__*/S.NullOr(VectorStoreFileAttributes),
|
|
4584
|
+
"content": /*#__PURE__*/S.Array(VectorStoreSearchResultContentObject)
|
|
4585
|
+
}) {}
|
|
4586
|
+
export class VectorStoreSearchResultsPage extends /*#__PURE__*/S.Class("VectorStoreSearchResultsPage")({
|
|
4587
|
+
"object": VectorStoreSearchResultsPageObject,
|
|
4588
|
+
"search_query": /*#__PURE__*/S.Array(S.String),
|
|
4589
|
+
"data": /*#__PURE__*/S.Array(VectorStoreSearchResultItem),
|
|
4590
|
+
"has_more": S.Boolean,
|
|
4591
|
+
"next_page": /*#__PURE__*/S.NullOr(S.String)
|
|
4592
|
+
}) {}
|
|
3707
4593
|
export const make = (httpClient, options = {}) => {
|
|
3708
4594
|
const unexpectedStatus = (request, response) => Effect.flatMap(Effect.orElseSucceed(response.text, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.ResponseError({
|
|
3709
4595
|
request,
|
|
@@ -3722,65 +4608,95 @@ export const make = (httpClient, options = {}) => {
|
|
|
3722
4608
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3723
4609
|
"200": r => HttpClientResponse.schemaBodyJson(ListAssistantsResponse)(r),
|
|
3724
4610
|
orElse: response => unexpectedStatus(request, response)
|
|
3725
|
-
}))))
|
|
4611
|
+
}))))),
|
|
3726
4612
|
"createAssistant": options => HttpClientRequest.make("POST")(`/assistants`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3727
4613
|
"200": r => HttpClientResponse.schemaBodyJson(AssistantObject)(r),
|
|
3728
4614
|
orElse: response => unexpectedStatus(request, response)
|
|
3729
|
-
}))))
|
|
4615
|
+
}))))),
|
|
3730
4616
|
"getAssistant": assistantId => HttpClientRequest.make("GET")(`/assistants/${assistantId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3731
4617
|
"200": r => HttpClientResponse.schemaBodyJson(AssistantObject)(r),
|
|
3732
4618
|
orElse: response => unexpectedStatus(request, response)
|
|
3733
|
-
}))))
|
|
4619
|
+
}))))),
|
|
3734
4620
|
"modifyAssistant": (assistantId, options) => HttpClientRequest.make("POST")(`/assistants/${assistantId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3735
4621
|
"200": r => HttpClientResponse.schemaBodyJson(AssistantObject)(r),
|
|
3736
4622
|
orElse: response => unexpectedStatus(request, response)
|
|
3737
|
-
}))))
|
|
4623
|
+
}))))),
|
|
3738
4624
|
"deleteAssistant": assistantId => HttpClientRequest.make("DELETE")(`/assistants/${assistantId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3739
4625
|
"200": r => HttpClientResponse.schemaBodyJson(DeleteAssistantResponse)(r),
|
|
3740
4626
|
orElse: response => unexpectedStatus(request, response)
|
|
3741
|
-
}))))
|
|
4627
|
+
}))))),
|
|
3742
4628
|
"createSpeech": options => HttpClientRequest.make("POST")(`/audio/speech`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3743
4629
|
orElse: response => unexpectedStatus(request, response)
|
|
3744
|
-
}))))
|
|
4630
|
+
}))))),
|
|
3745
4631
|
"createTranscription": options => HttpClientRequest.make("POST")(`/audio/transcriptions`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3746
4632
|
"200": r => HttpClientResponse.schemaBodyJson(CreateTranscription200)(r),
|
|
3747
4633
|
orElse: response => unexpectedStatus(request, response)
|
|
3748
|
-
}))))
|
|
4634
|
+
}))))),
|
|
3749
4635
|
"createTranslation": options => HttpClientRequest.make("POST")(`/audio/translations`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3750
4636
|
"200": r => HttpClientResponse.schemaBodyJson(CreateTranslation200)(r),
|
|
3751
4637
|
orElse: response => unexpectedStatus(request, response)
|
|
3752
|
-
}))))
|
|
4638
|
+
}))))),
|
|
3753
4639
|
"listBatches": options => HttpClientRequest.make("GET")(`/batches`).pipe(HttpClientRequest.setUrlParams({
|
|
3754
4640
|
"after": options["after"],
|
|
3755
4641
|
"limit": options["limit"]
|
|
3756
4642
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3757
4643
|
"200": r => HttpClientResponse.schemaBodyJson(ListBatchesResponse)(r),
|
|
3758
4644
|
orElse: response => unexpectedStatus(request, response)
|
|
3759
|
-
}))))
|
|
4645
|
+
}))))),
|
|
3760
4646
|
"createBatch": options => HttpClientRequest.make("POST")(`/batches`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3761
4647
|
"200": r => HttpClientResponse.schemaBodyJson(Batch)(r),
|
|
3762
4648
|
orElse: response => unexpectedStatus(request, response)
|
|
3763
|
-
}))))
|
|
4649
|
+
}))))),
|
|
3764
4650
|
"retrieveBatch": batchId => HttpClientRequest.make("GET")(`/batches/${batchId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3765
4651
|
"200": r => HttpClientResponse.schemaBodyJson(Batch)(r),
|
|
3766
4652
|
orElse: response => unexpectedStatus(request, response)
|
|
3767
|
-
}))))
|
|
4653
|
+
}))))),
|
|
3768
4654
|
"cancelBatch": batchId => HttpClientRequest.make("POST")(`/batches/${batchId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3769
4655
|
"200": r => HttpClientResponse.schemaBodyJson(Batch)(r),
|
|
3770
4656
|
orElse: response => unexpectedStatus(request, response)
|
|
3771
|
-
}))))
|
|
4657
|
+
}))))),
|
|
4658
|
+
"listChatCompletions": options => HttpClientRequest.make("GET")(`/chat/completions`).pipe(HttpClientRequest.setUrlParams({
|
|
4659
|
+
"model": options["model"],
|
|
4660
|
+
"metadata": options["metadata"],
|
|
4661
|
+
"after": options["after"],
|
|
4662
|
+
"limit": options["limit"],
|
|
4663
|
+
"order": options["order"]
|
|
4664
|
+
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4665
|
+
"200": r => HttpClientResponse.schemaBodyJson(ChatCompletionList)(r),
|
|
4666
|
+
orElse: response => unexpectedStatus(request, response)
|
|
4667
|
+
}))))),
|
|
3772
4668
|
"createChatCompletion": options => HttpClientRequest.make("POST")(`/chat/completions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3773
4669
|
"200": r => HttpClientResponse.schemaBodyJson(CreateChatCompletionResponse)(r),
|
|
3774
4670
|
orElse: response => unexpectedStatus(request, response)
|
|
3775
|
-
}))))
|
|
4671
|
+
}))))),
|
|
4672
|
+
"getChatCompletion": completionId => HttpClientRequest.make("GET")(`/chat/completions/${completionId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4673
|
+
"200": r => HttpClientResponse.schemaBodyJson(CreateChatCompletionResponse)(r),
|
|
4674
|
+
orElse: response => unexpectedStatus(request, response)
|
|
4675
|
+
}))))),
|
|
4676
|
+
"updateChatCompletion": (completionId, options) => HttpClientRequest.make("POST")(`/chat/completions/${completionId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4677
|
+
"200": r => HttpClientResponse.schemaBodyJson(CreateChatCompletionResponse)(r),
|
|
4678
|
+
orElse: response => unexpectedStatus(request, response)
|
|
4679
|
+
}))))),
|
|
4680
|
+
"deleteChatCompletion": completionId => HttpClientRequest.make("DELETE")(`/chat/completions/${completionId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4681
|
+
"200": r => HttpClientResponse.schemaBodyJson(ChatCompletionDeleted)(r),
|
|
4682
|
+
orElse: response => unexpectedStatus(request, response)
|
|
4683
|
+
}))))),
|
|
4684
|
+
"getChatCompletionMessages": (completionId, options) => HttpClientRequest.make("GET")(`/chat/completions/${completionId}/messages`).pipe(HttpClientRequest.setUrlParams({
|
|
4685
|
+
"after": options["after"],
|
|
4686
|
+
"limit": options["limit"],
|
|
4687
|
+
"order": options["order"]
|
|
4688
|
+
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4689
|
+
"200": r => HttpClientResponse.schemaBodyJson(ChatCompletionMessageList)(r),
|
|
4690
|
+
orElse: response => unexpectedStatus(request, response)
|
|
4691
|
+
}))))),
|
|
3776
4692
|
"createCompletion": options => HttpClientRequest.make("POST")(`/completions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3777
4693
|
"200": r => HttpClientResponse.schemaBodyJson(CreateCompletionResponse)(r),
|
|
3778
4694
|
orElse: response => unexpectedStatus(request, response)
|
|
3779
|
-
}))))
|
|
4695
|
+
}))))),
|
|
3780
4696
|
"createEmbedding": options => HttpClientRequest.make("POST")(`/embeddings`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3781
4697
|
"200": r => HttpClientResponse.schemaBodyJson(CreateEmbeddingResponse)(r),
|
|
3782
4698
|
orElse: response => unexpectedStatus(request, response)
|
|
3783
|
-
}))))
|
|
4699
|
+
}))))),
|
|
3784
4700
|
"listFiles": options => HttpClientRequest.make("GET")(`/files`).pipe(HttpClientRequest.setUrlParams({
|
|
3785
4701
|
"purpose": options["purpose"],
|
|
3786
4702
|
"limit": options["limit"],
|
|
@@ -3789,84 +4705,85 @@ export const make = (httpClient, options = {}) => {
|
|
|
3789
4705
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3790
4706
|
"200": r => HttpClientResponse.schemaBodyJson(ListFilesResponse)(r),
|
|
3791
4707
|
orElse: response => unexpectedStatus(request, response)
|
|
3792
|
-
}))))
|
|
4708
|
+
}))))),
|
|
3793
4709
|
"createFile": options => HttpClientRequest.make("POST")(`/files`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3794
4710
|
"200": r => HttpClientResponse.schemaBodyJson(OpenAIFile)(r),
|
|
3795
4711
|
orElse: response => unexpectedStatus(request, response)
|
|
3796
|
-
}))))
|
|
4712
|
+
}))))),
|
|
3797
4713
|
"retrieveFile": fileId => HttpClientRequest.make("GET")(`/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3798
4714
|
"200": r => HttpClientResponse.schemaBodyJson(OpenAIFile)(r),
|
|
3799
4715
|
orElse: response => unexpectedStatus(request, response)
|
|
3800
|
-
}))))
|
|
4716
|
+
}))))),
|
|
3801
4717
|
"deleteFile": fileId => HttpClientRequest.make("DELETE")(`/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3802
4718
|
"200": r => HttpClientResponse.schemaBodyJson(DeleteFileResponse)(r),
|
|
3803
4719
|
orElse: response => unexpectedStatus(request, response)
|
|
3804
|
-
}))))
|
|
4720
|
+
}))))),
|
|
3805
4721
|
"downloadFile": fileId => HttpClientRequest.make("GET")(`/files/${fileId}/content`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3806
4722
|
"200": r => HttpClientResponse.schemaBodyJson(DownloadFile200)(r),
|
|
3807
4723
|
orElse: response => unexpectedStatus(request, response)
|
|
3808
|
-
}))))
|
|
4724
|
+
}))))),
|
|
3809
4725
|
"listPaginatedFineTuningJobs": options => HttpClientRequest.make("GET")(`/fine_tuning/jobs`).pipe(HttpClientRequest.setUrlParams({
|
|
3810
4726
|
"after": options["after"],
|
|
3811
|
-
"limit": options["limit"]
|
|
4727
|
+
"limit": options["limit"],
|
|
4728
|
+
"metadata": options["metadata"]
|
|
3812
4729
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3813
4730
|
"200": r => HttpClientResponse.schemaBodyJson(ListPaginatedFineTuningJobsResponse)(r),
|
|
3814
4731
|
orElse: response => unexpectedStatus(request, response)
|
|
3815
|
-
}))))
|
|
4732
|
+
}))))),
|
|
3816
4733
|
"createFineTuningJob": options => HttpClientRequest.make("POST")(`/fine_tuning/jobs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3817
4734
|
"200": r => HttpClientResponse.schemaBodyJson(FineTuningJob)(r),
|
|
3818
4735
|
orElse: response => unexpectedStatus(request, response)
|
|
3819
|
-
}))))
|
|
4736
|
+
}))))),
|
|
3820
4737
|
"retrieveFineTuningJob": fineTuningJobId => HttpClientRequest.make("GET")(`/fine_tuning/jobs/${fineTuningJobId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3821
4738
|
"200": r => HttpClientResponse.schemaBodyJson(FineTuningJob)(r),
|
|
3822
4739
|
orElse: response => unexpectedStatus(request, response)
|
|
3823
|
-
}))))
|
|
4740
|
+
}))))),
|
|
3824
4741
|
"cancelFineTuningJob": fineTuningJobId => HttpClientRequest.make("POST")(`/fine_tuning/jobs/${fineTuningJobId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3825
4742
|
"200": r => HttpClientResponse.schemaBodyJson(FineTuningJob)(r),
|
|
3826
4743
|
orElse: response => unexpectedStatus(request, response)
|
|
3827
|
-
}))))
|
|
4744
|
+
}))))),
|
|
3828
4745
|
"listFineTuningJobCheckpoints": (fineTuningJobId, options) => HttpClientRequest.make("GET")(`/fine_tuning/jobs/${fineTuningJobId}/checkpoints`).pipe(HttpClientRequest.setUrlParams({
|
|
3829
4746
|
"after": options["after"],
|
|
3830
4747
|
"limit": options["limit"]
|
|
3831
4748
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3832
4749
|
"200": r => HttpClientResponse.schemaBodyJson(ListFineTuningJobCheckpointsResponse)(r),
|
|
3833
4750
|
orElse: response => unexpectedStatus(request, response)
|
|
3834
|
-
}))))
|
|
4751
|
+
}))))),
|
|
3835
4752
|
"listFineTuningEvents": (fineTuningJobId, options) => HttpClientRequest.make("GET")(`/fine_tuning/jobs/${fineTuningJobId}/events`).pipe(HttpClientRequest.setUrlParams({
|
|
3836
4753
|
"after": options["after"],
|
|
3837
4754
|
"limit": options["limit"]
|
|
3838
4755
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3839
4756
|
"200": r => HttpClientResponse.schemaBodyJson(ListFineTuningJobEventsResponse)(r),
|
|
3840
4757
|
orElse: response => unexpectedStatus(request, response)
|
|
3841
|
-
}))))
|
|
4758
|
+
}))))),
|
|
3842
4759
|
"createImageEdit": options => HttpClientRequest.make("POST")(`/images/edits`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3843
4760
|
"200": r => HttpClientResponse.schemaBodyJson(ImagesResponse)(r),
|
|
3844
4761
|
orElse: response => unexpectedStatus(request, response)
|
|
3845
|
-
}))))
|
|
4762
|
+
}))))),
|
|
3846
4763
|
"createImage": options => HttpClientRequest.make("POST")(`/images/generations`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3847
4764
|
"200": r => HttpClientResponse.schemaBodyJson(ImagesResponse)(r),
|
|
3848
4765
|
orElse: response => unexpectedStatus(request, response)
|
|
3849
|
-
}))))
|
|
4766
|
+
}))))),
|
|
3850
4767
|
"createImageVariation": options => HttpClientRequest.make("POST")(`/images/variations`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3851
4768
|
"200": r => HttpClientResponse.schemaBodyJson(ImagesResponse)(r),
|
|
3852
4769
|
orElse: response => unexpectedStatus(request, response)
|
|
3853
|
-
}))))
|
|
4770
|
+
}))))),
|
|
3854
4771
|
"listModels": () => HttpClientRequest.make("GET")(`/models`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3855
4772
|
"200": r => HttpClientResponse.schemaBodyJson(ListModelsResponse)(r),
|
|
3856
4773
|
orElse: response => unexpectedStatus(request, response)
|
|
3857
|
-
}))))
|
|
4774
|
+
}))))),
|
|
3858
4775
|
"retrieveModel": model => HttpClientRequest.make("GET")(`/models/${model}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3859
4776
|
"200": r => HttpClientResponse.schemaBodyJson(Model)(r),
|
|
3860
4777
|
orElse: response => unexpectedStatus(request, response)
|
|
3861
|
-
}))))
|
|
4778
|
+
}))))),
|
|
3862
4779
|
"deleteModel": model => HttpClientRequest.make("DELETE")(`/models/${model}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3863
4780
|
"200": r => HttpClientResponse.schemaBodyJson(DeleteModelResponse)(r),
|
|
3864
4781
|
orElse: response => unexpectedStatus(request, response)
|
|
3865
|
-
}))))
|
|
4782
|
+
}))))),
|
|
3866
4783
|
"createModeration": options => HttpClientRequest.make("POST")(`/moderations`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3867
4784
|
"200": r => HttpClientResponse.schemaBodyJson(CreateModerationResponse)(r),
|
|
3868
4785
|
orElse: response => unexpectedStatus(request, response)
|
|
3869
|
-
}))))
|
|
4786
|
+
}))))),
|
|
3870
4787
|
"adminApiKeysList": options => HttpClientRequest.make("GET")(`/organization/admin_api_keys`).pipe(HttpClientRequest.setUrlParams({
|
|
3871
4788
|
"after": options["after"],
|
|
3872
4789
|
"order": options["order"],
|
|
@@ -3874,19 +4791,19 @@ export const make = (httpClient, options = {}) => {
|
|
|
3874
4791
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3875
4792
|
"200": r => HttpClientResponse.schemaBodyJson(ApiKeyList)(r),
|
|
3876
4793
|
orElse: response => unexpectedStatus(request, response)
|
|
3877
|
-
}))))
|
|
4794
|
+
}))))),
|
|
3878
4795
|
"adminApiKeysCreate": options => HttpClientRequest.make("POST")(`/organization/admin_api_keys`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3879
4796
|
"200": r => HttpClientResponse.schemaBodyJson(AdminApiKey)(r),
|
|
3880
4797
|
orElse: response => unexpectedStatus(request, response)
|
|
3881
|
-
}))))
|
|
4798
|
+
}))))),
|
|
3882
4799
|
"adminApiKeysGet": keyId => HttpClientRequest.make("GET")(`/organization/admin_api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3883
4800
|
"200": r => HttpClientResponse.schemaBodyJson(AdminApiKey)(r),
|
|
3884
4801
|
orElse: response => unexpectedStatus(request, response)
|
|
3885
|
-
}))))
|
|
4802
|
+
}))))),
|
|
3886
4803
|
"adminApiKeysDelete": keyId => HttpClientRequest.make("DELETE")(`/organization/admin_api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3887
4804
|
"200": r => HttpClientResponse.schemaBodyJson(AdminApiKeysDelete200)(r),
|
|
3888
4805
|
orElse: response => unexpectedStatus(request, response)
|
|
3889
|
-
}))))
|
|
4806
|
+
}))))),
|
|
3890
4807
|
"listAuditLogs": options => HttpClientRequest.make("GET")(`/organization/audit_logs`).pipe(HttpClientRequest.setUrlParams({
|
|
3891
4808
|
"effective_at[gt]": options["effective_at[gt]"],
|
|
3892
4809
|
"effective_at[gte]": options["effective_at[gte]"],
|
|
@@ -3903,7 +4820,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
3903
4820
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3904
4821
|
"200": r => HttpClientResponse.schemaBodyJson(ListAuditLogsResponse)(r),
|
|
3905
4822
|
orElse: response => unexpectedStatus(request, response)
|
|
3906
|
-
}))))
|
|
4823
|
+
}))))),
|
|
3907
4824
|
"usageCosts": options => HttpClientRequest.make("GET")(`/organization/costs`).pipe(HttpClientRequest.setUrlParams({
|
|
3908
4825
|
"start_time": options["start_time"],
|
|
3909
4826
|
"end_time": options["end_time"],
|
|
@@ -3915,26 +4832,26 @@ export const make = (httpClient, options = {}) => {
|
|
|
3915
4832
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3916
4833
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
3917
4834
|
orElse: response => unexpectedStatus(request, response)
|
|
3918
|
-
}))))
|
|
4835
|
+
}))))),
|
|
3919
4836
|
"listInvites": options => HttpClientRequest.make("GET")(`/organization/invites`).pipe(HttpClientRequest.setUrlParams({
|
|
3920
4837
|
"limit": options["limit"],
|
|
3921
4838
|
"after": options["after"]
|
|
3922
4839
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3923
4840
|
"200": r => HttpClientResponse.schemaBodyJson(InviteListResponse)(r),
|
|
3924
4841
|
orElse: response => unexpectedStatus(request, response)
|
|
3925
|
-
}))))
|
|
4842
|
+
}))))),
|
|
3926
4843
|
"inviteUser": options => HttpClientRequest.make("POST")(`/organization/invites`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3927
4844
|
"200": r => HttpClientResponse.schemaBodyJson(Invite)(r),
|
|
3928
4845
|
orElse: response => unexpectedStatus(request, response)
|
|
3929
|
-
}))))
|
|
4846
|
+
}))))),
|
|
3930
4847
|
"retrieveInvite": inviteId => HttpClientRequest.make("GET")(`/organization/invites/${inviteId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3931
4848
|
"200": r => HttpClientResponse.schemaBodyJson(Invite)(r),
|
|
3932
4849
|
orElse: response => unexpectedStatus(request, response)
|
|
3933
|
-
}))))
|
|
4850
|
+
}))))),
|
|
3934
4851
|
"deleteInvite": inviteId => HttpClientRequest.make("DELETE")(`/organization/invites/${inviteId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3935
4852
|
"200": r => HttpClientResponse.schemaBodyJson(InviteDeleteResponse)(r),
|
|
3936
4853
|
orElse: response => unexpectedStatus(request, response)
|
|
3937
|
-
}))))
|
|
4854
|
+
}))))),
|
|
3938
4855
|
"listProjects": options => HttpClientRequest.make("GET")(`/organization/projects`).pipe(HttpClientRequest.setUrlParams({
|
|
3939
4856
|
"limit": options["limit"],
|
|
3940
4857
|
"after": options["after"],
|
|
@@ -3942,40 +4859,40 @@ export const make = (httpClient, options = {}) => {
|
|
|
3942
4859
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3943
4860
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectListResponse)(r),
|
|
3944
4861
|
orElse: response => unexpectedStatus(request, response)
|
|
3945
|
-
}))))
|
|
4862
|
+
}))))),
|
|
3946
4863
|
"createProject": options => HttpClientRequest.make("POST")(`/organization/projects`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3947
4864
|
"200": r => HttpClientResponse.schemaBodyJson(Project)(r),
|
|
3948
4865
|
orElse: response => unexpectedStatus(request, response)
|
|
3949
|
-
}))))
|
|
4866
|
+
}))))),
|
|
3950
4867
|
"retrieveProject": projectId => HttpClientRequest.make("GET")(`/organization/projects/${projectId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3951
4868
|
"200": r => HttpClientResponse.schemaBodyJson(Project)(r),
|
|
3952
4869
|
orElse: response => unexpectedStatus(request, response)
|
|
3953
|
-
}))))
|
|
4870
|
+
}))))),
|
|
3954
4871
|
"modifyProject": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3955
4872
|
"200": r => HttpClientResponse.schemaBodyJson(Project)(r),
|
|
3956
4873
|
"400": r => decodeError(r, ErrorResponse),
|
|
3957
4874
|
orElse: response => unexpectedStatus(request, response)
|
|
3958
|
-
}))))
|
|
4875
|
+
}))))),
|
|
3959
4876
|
"listProjectApiKeys": (projectId, options) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/api_keys`).pipe(HttpClientRequest.setUrlParams({
|
|
3960
4877
|
"limit": options["limit"],
|
|
3961
4878
|
"after": options["after"]
|
|
3962
4879
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3963
4880
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectApiKeyListResponse)(r),
|
|
3964
4881
|
orElse: response => unexpectedStatus(request, response)
|
|
3965
|
-
}))))
|
|
4882
|
+
}))))),
|
|
3966
4883
|
"retrieveProjectApiKey": (projectId, keyId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3967
4884
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectApiKey)(r),
|
|
3968
4885
|
orElse: response => unexpectedStatus(request, response)
|
|
3969
|
-
}))))
|
|
4886
|
+
}))))),
|
|
3970
4887
|
"deleteProjectApiKey": (projectId, keyId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/api_keys/${keyId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3971
4888
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectApiKeyDeleteResponse)(r),
|
|
3972
4889
|
"400": r => decodeError(r, ErrorResponse),
|
|
3973
4890
|
orElse: response => unexpectedStatus(request, response)
|
|
3974
|
-
}))))
|
|
4891
|
+
}))))),
|
|
3975
4892
|
"archiveProject": projectId => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/archive`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3976
4893
|
"200": r => HttpClientResponse.schemaBodyJson(Project)(r),
|
|
3977
4894
|
orElse: response => unexpectedStatus(request, response)
|
|
3978
|
-
}))))
|
|
4895
|
+
}))))),
|
|
3979
4896
|
"listProjectRateLimits": (projectId, options) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/rate_limits`).pipe(HttpClientRequest.setUrlParams({
|
|
3980
4897
|
"limit": options["limit"],
|
|
3981
4898
|
"after": options["after"],
|
|
@@ -3983,12 +4900,12 @@ export const make = (httpClient, options = {}) => {
|
|
|
3983
4900
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3984
4901
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectRateLimitListResponse)(r),
|
|
3985
4902
|
orElse: response => unexpectedStatus(request, response)
|
|
3986
|
-
}))))
|
|
4903
|
+
}))))),
|
|
3987
4904
|
"updateProjectRateLimits": (projectId, rateLimitId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/rate_limits/${rateLimitId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
3988
4905
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectRateLimit)(r),
|
|
3989
4906
|
"400": r => decodeError(r, ErrorResponse),
|
|
3990
4907
|
orElse: response => unexpectedStatus(request, response)
|
|
3991
|
-
}))))
|
|
4908
|
+
}))))),
|
|
3992
4909
|
"listProjectServiceAccounts": (projectId, options) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/service_accounts`).pipe(HttpClientRequest.setUrlParams({
|
|
3993
4910
|
"limit": options["limit"],
|
|
3994
4911
|
"after": options["after"]
|
|
@@ -3996,20 +4913,20 @@ export const make = (httpClient, options = {}) => {
|
|
|
3996
4913
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectServiceAccountListResponse)(r),
|
|
3997
4914
|
"400": r => decodeError(r, ErrorResponse),
|
|
3998
4915
|
orElse: response => unexpectedStatus(request, response)
|
|
3999
|
-
}))))
|
|
4916
|
+
}))))),
|
|
4000
4917
|
"createProjectServiceAccount": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/service_accounts`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4001
4918
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectServiceAccountCreateResponse)(r),
|
|
4002
4919
|
"400": r => decodeError(r, ErrorResponse),
|
|
4003
4920
|
orElse: response => unexpectedStatus(request, response)
|
|
4004
|
-
}))))
|
|
4921
|
+
}))))),
|
|
4005
4922
|
"retrieveProjectServiceAccount": (projectId, serviceAccountId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4006
4923
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectServiceAccount)(r),
|
|
4007
4924
|
orElse: response => unexpectedStatus(request, response)
|
|
4008
|
-
}))))
|
|
4925
|
+
}))))),
|
|
4009
4926
|
"deleteProjectServiceAccount": (projectId, serviceAccountId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/service_accounts/${serviceAccountId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4010
4927
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectServiceAccountDeleteResponse)(r),
|
|
4011
4928
|
orElse: response => unexpectedStatus(request, response)
|
|
4012
|
-
}))))
|
|
4929
|
+
}))))),
|
|
4013
4930
|
"listProjectUsers": (projectId, options) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/users`).pipe(HttpClientRequest.setUrlParams({
|
|
4014
4931
|
"limit": options["limit"],
|
|
4015
4932
|
"after": options["after"]
|
|
@@ -4017,26 +4934,26 @@ export const make = (httpClient, options = {}) => {
|
|
|
4017
4934
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectUserListResponse)(r),
|
|
4018
4935
|
"400": r => decodeError(r, ErrorResponse),
|
|
4019
4936
|
orElse: response => unexpectedStatus(request, response)
|
|
4020
|
-
}))))
|
|
4937
|
+
}))))),
|
|
4021
4938
|
"createProjectUser": (projectId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/users`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4022
4939
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectUser)(r),
|
|
4023
4940
|
"400": r => decodeError(r, ErrorResponse),
|
|
4024
4941
|
orElse: response => unexpectedStatus(request, response)
|
|
4025
|
-
}))))
|
|
4942
|
+
}))))),
|
|
4026
4943
|
"retrieveProjectUser": (projectId, userId) => HttpClientRequest.make("GET")(`/organization/projects/${projectId}/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4027
4944
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectUser)(r),
|
|
4028
4945
|
orElse: response => unexpectedStatus(request, response)
|
|
4029
|
-
}))))
|
|
4946
|
+
}))))),
|
|
4030
4947
|
"modifyProjectUser": (projectId, userId, options) => HttpClientRequest.make("POST")(`/organization/projects/${projectId}/users/${userId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4031
4948
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectUser)(r),
|
|
4032
4949
|
"400": r => decodeError(r, ErrorResponse),
|
|
4033
4950
|
orElse: response => unexpectedStatus(request, response)
|
|
4034
|
-
}))))
|
|
4951
|
+
}))))),
|
|
4035
4952
|
"deleteProjectUser": (projectId, userId) => HttpClientRequest.make("DELETE")(`/organization/projects/${projectId}/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4036
4953
|
"200": r => HttpClientResponse.schemaBodyJson(ProjectUserDeleteResponse)(r),
|
|
4037
4954
|
"400": r => decodeError(r, ErrorResponse),
|
|
4038
4955
|
orElse: response => unexpectedStatus(request, response)
|
|
4039
|
-
}))))
|
|
4956
|
+
}))))),
|
|
4040
4957
|
"usageAudioSpeeches": options => HttpClientRequest.make("GET")(`/organization/usage/audio_speeches`).pipe(HttpClientRequest.setUrlParams({
|
|
4041
4958
|
"start_time": options["start_time"],
|
|
4042
4959
|
"end_time": options["end_time"],
|
|
@@ -4051,7 +4968,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4051
4968
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4052
4969
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
4053
4970
|
orElse: response => unexpectedStatus(request, response)
|
|
4054
|
-
}))))
|
|
4971
|
+
}))))),
|
|
4055
4972
|
"usageAudioTranscriptions": options => HttpClientRequest.make("GET")(`/organization/usage/audio_transcriptions`).pipe(HttpClientRequest.setUrlParams({
|
|
4056
4973
|
"start_time": options["start_time"],
|
|
4057
4974
|
"end_time": options["end_time"],
|
|
@@ -4066,7 +4983,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4066
4983
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4067
4984
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
4068
4985
|
orElse: response => unexpectedStatus(request, response)
|
|
4069
|
-
}))))
|
|
4986
|
+
}))))),
|
|
4070
4987
|
"usageCodeInterpreterSessions": options => HttpClientRequest.make("GET")(`/organization/usage/code_interpreter_sessions`).pipe(HttpClientRequest.setUrlParams({
|
|
4071
4988
|
"start_time": options["start_time"],
|
|
4072
4989
|
"end_time": options["end_time"],
|
|
@@ -4078,7 +4995,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4078
4995
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4079
4996
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
4080
4997
|
orElse: response => unexpectedStatus(request, response)
|
|
4081
|
-
}))))
|
|
4998
|
+
}))))),
|
|
4082
4999
|
"usageCompletions": options => HttpClientRequest.make("GET")(`/organization/usage/completions`).pipe(HttpClientRequest.setUrlParams({
|
|
4083
5000
|
"start_time": options["start_time"],
|
|
4084
5001
|
"end_time": options["end_time"],
|
|
@@ -4094,7 +5011,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4094
5011
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4095
5012
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
4096
5013
|
orElse: response => unexpectedStatus(request, response)
|
|
4097
|
-
}))))
|
|
5014
|
+
}))))),
|
|
4098
5015
|
"usageEmbeddings": options => HttpClientRequest.make("GET")(`/organization/usage/embeddings`).pipe(HttpClientRequest.setUrlParams({
|
|
4099
5016
|
"start_time": options["start_time"],
|
|
4100
5017
|
"end_time": options["end_time"],
|
|
@@ -4109,7 +5026,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4109
5026
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4110
5027
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
4111
5028
|
orElse: response => unexpectedStatus(request, response)
|
|
4112
|
-
}))))
|
|
5029
|
+
}))))),
|
|
4113
5030
|
"usageImages": options => HttpClientRequest.make("GET")(`/organization/usage/images`).pipe(HttpClientRequest.setUrlParams({
|
|
4114
5031
|
"start_time": options["start_time"],
|
|
4115
5032
|
"end_time": options["end_time"],
|
|
@@ -4126,7 +5043,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4126
5043
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4127
5044
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
4128
5045
|
orElse: response => unexpectedStatus(request, response)
|
|
4129
|
-
}))))
|
|
5046
|
+
}))))),
|
|
4130
5047
|
"usageModerations": options => HttpClientRequest.make("GET")(`/organization/usage/moderations`).pipe(HttpClientRequest.setUrlParams({
|
|
4131
5048
|
"start_time": options["start_time"],
|
|
4132
5049
|
"end_time": options["end_time"],
|
|
@@ -4141,7 +5058,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4141
5058
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4142
5059
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
4143
5060
|
orElse: response => unexpectedStatus(request, response)
|
|
4144
|
-
}))))
|
|
5061
|
+
}))))),
|
|
4145
5062
|
"usageVectorStores": options => HttpClientRequest.make("GET")(`/organization/usage/vector_stores`).pipe(HttpClientRequest.setUrlParams({
|
|
4146
5063
|
"start_time": options["start_time"],
|
|
4147
5064
|
"end_time": options["end_time"],
|
|
@@ -4153,7 +5070,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4153
5070
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4154
5071
|
"200": r => HttpClientResponse.schemaBodyJson(UsageResponse)(r),
|
|
4155
5072
|
orElse: response => unexpectedStatus(request, response)
|
|
4156
|
-
}))))
|
|
5073
|
+
}))))),
|
|
4157
5074
|
"listUsers": options => HttpClientRequest.make("GET")(`/organization/users`).pipe(HttpClientRequest.setUrlParams({
|
|
4158
5075
|
"limit": options["limit"],
|
|
4159
5076
|
"after": options["after"],
|
|
@@ -4161,43 +5078,66 @@ export const make = (httpClient, options = {}) => {
|
|
|
4161
5078
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4162
5079
|
"200": r => HttpClientResponse.schemaBodyJson(UserListResponse)(r),
|
|
4163
5080
|
orElse: response => unexpectedStatus(request, response)
|
|
4164
|
-
}))))
|
|
5081
|
+
}))))),
|
|
4165
5082
|
"retrieveUser": userId => HttpClientRequest.make("GET")(`/organization/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4166
5083
|
"200": r => HttpClientResponse.schemaBodyJson(User)(r),
|
|
4167
5084
|
orElse: response => unexpectedStatus(request, response)
|
|
4168
|
-
}))))
|
|
5085
|
+
}))))),
|
|
4169
5086
|
"modifyUser": (userId, options) => HttpClientRequest.make("POST")(`/organization/users/${userId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4170
5087
|
"200": r => HttpClientResponse.schemaBodyJson(User)(r),
|
|
4171
5088
|
orElse: response => unexpectedStatus(request, response)
|
|
4172
|
-
}))))
|
|
5089
|
+
}))))),
|
|
4173
5090
|
"deleteUser": userId => HttpClientRequest.make("DELETE")(`/organization/users/${userId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4174
5091
|
"200": r => HttpClientResponse.schemaBodyJson(UserDeleteResponse)(r),
|
|
4175
5092
|
orElse: response => unexpectedStatus(request, response)
|
|
4176
|
-
}))))
|
|
5093
|
+
}))))),
|
|
4177
5094
|
"createRealtimeSession": options => HttpClientRequest.make("POST")(`/realtime/sessions`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4178
5095
|
"200": r => HttpClientResponse.schemaBodyJson(RealtimeSessionCreateResponse)(r),
|
|
4179
5096
|
orElse: response => unexpectedStatus(request, response)
|
|
4180
|
-
}))))
|
|
5097
|
+
}))))),
|
|
5098
|
+
"createResponse": options => HttpClientRequest.make("POST")(`/responses`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
5099
|
+
"200": r => HttpClientResponse.schemaBodyJson(Response)(r),
|
|
5100
|
+
orElse: response => unexpectedStatus(request, response)
|
|
5101
|
+
}))))),
|
|
5102
|
+
"getResponse": (responseId, options) => HttpClientRequest.make("GET")(`/responses/${responseId}`).pipe(HttpClientRequest.setUrlParams({
|
|
5103
|
+
"include": options["include"]
|
|
5104
|
+
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
5105
|
+
"200": r => HttpClientResponse.schemaBodyJson(Response)(r),
|
|
5106
|
+
orElse: response => unexpectedStatus(request, response)
|
|
5107
|
+
}))))),
|
|
5108
|
+
"deleteResponse": responseId => HttpClientRequest.make("DELETE")(`/responses/${responseId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
5109
|
+
"404": r => decodeError(r, Error),
|
|
5110
|
+
orElse: response => unexpectedStatus(request, response)
|
|
5111
|
+
}))))),
|
|
5112
|
+
"listInputItems": (responseId, options) => HttpClientRequest.make("GET")(`/responses/${responseId}/input_items`).pipe(HttpClientRequest.setUrlParams({
|
|
5113
|
+
"limit": options["limit"],
|
|
5114
|
+
"order": options["order"],
|
|
5115
|
+
"after": options["after"],
|
|
5116
|
+
"before": options["before"]
|
|
5117
|
+
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
5118
|
+
"200": r => HttpClientResponse.schemaBodyJson(ResponseItemList)(r),
|
|
5119
|
+
orElse: response => unexpectedStatus(request, response)
|
|
5120
|
+
}))))),
|
|
4181
5121
|
"createThread": options => HttpClientRequest.make("POST")(`/threads`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4182
5122
|
"200": r => HttpClientResponse.schemaBodyJson(ThreadObject)(r),
|
|
4183
5123
|
orElse: response => unexpectedStatus(request, response)
|
|
4184
|
-
}))))
|
|
5124
|
+
}))))),
|
|
4185
5125
|
"createThreadAndRun": options => HttpClientRequest.make("POST")(`/threads/runs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4186
5126
|
"200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
|
|
4187
5127
|
orElse: response => unexpectedStatus(request, response)
|
|
4188
|
-
}))))
|
|
5128
|
+
}))))),
|
|
4189
5129
|
"getThread": threadId => HttpClientRequest.make("GET")(`/threads/${threadId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4190
5130
|
"200": r => HttpClientResponse.schemaBodyJson(ThreadObject)(r),
|
|
4191
5131
|
orElse: response => unexpectedStatus(request, response)
|
|
4192
|
-
}))))
|
|
5132
|
+
}))))),
|
|
4193
5133
|
"modifyThread": (threadId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4194
5134
|
"200": r => HttpClientResponse.schemaBodyJson(ThreadObject)(r),
|
|
4195
5135
|
orElse: response => unexpectedStatus(request, response)
|
|
4196
|
-
}))))
|
|
5136
|
+
}))))),
|
|
4197
5137
|
"deleteThread": threadId => HttpClientRequest.make("DELETE")(`/threads/${threadId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4198
5138
|
"200": r => HttpClientResponse.schemaBodyJson(DeleteThreadResponse)(r),
|
|
4199
5139
|
orElse: response => unexpectedStatus(request, response)
|
|
4200
|
-
}))))
|
|
5140
|
+
}))))),
|
|
4201
5141
|
"listMessages": (threadId, options) => HttpClientRequest.make("GET")(`/threads/${threadId}/messages`).pipe(HttpClientRequest.setUrlParams({
|
|
4202
5142
|
"limit": options["limit"],
|
|
4203
5143
|
"order": options["order"],
|
|
@@ -4207,23 +5147,23 @@ export const make = (httpClient, options = {}) => {
|
|
|
4207
5147
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4208
5148
|
"200": r => HttpClientResponse.schemaBodyJson(ListMessagesResponse)(r),
|
|
4209
5149
|
orElse: response => unexpectedStatus(request, response)
|
|
4210
|
-
}))))
|
|
5150
|
+
}))))),
|
|
4211
5151
|
"createMessage": (threadId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/messages`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4212
5152
|
"200": r => HttpClientResponse.schemaBodyJson(MessageObject)(r),
|
|
4213
5153
|
orElse: response => unexpectedStatus(request, response)
|
|
4214
|
-
}))))
|
|
5154
|
+
}))))),
|
|
4215
5155
|
"getMessage": (threadId, messageId) => HttpClientRequest.make("GET")(`/threads/${threadId}/messages/${messageId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4216
5156
|
"200": r => HttpClientResponse.schemaBodyJson(MessageObject)(r),
|
|
4217
5157
|
orElse: response => unexpectedStatus(request, response)
|
|
4218
|
-
}))))
|
|
5158
|
+
}))))),
|
|
4219
5159
|
"modifyMessage": (threadId, messageId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/messages/${messageId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4220
5160
|
"200": r => HttpClientResponse.schemaBodyJson(MessageObject)(r),
|
|
4221
5161
|
orElse: response => unexpectedStatus(request, response)
|
|
4222
|
-
}))))
|
|
5162
|
+
}))))),
|
|
4223
5163
|
"deleteMessage": (threadId, messageId) => HttpClientRequest.make("DELETE")(`/threads/${threadId}/messages/${messageId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4224
5164
|
"200": r => HttpClientResponse.schemaBodyJson(DeleteMessageResponse)(r),
|
|
4225
5165
|
orElse: response => unexpectedStatus(request, response)
|
|
4226
|
-
}))))
|
|
5166
|
+
}))))),
|
|
4227
5167
|
"listRuns": (threadId, options) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs`).pipe(HttpClientRequest.setUrlParams({
|
|
4228
5168
|
"limit": options["limit"],
|
|
4229
5169
|
"order": options["order"],
|
|
@@ -4232,25 +5172,25 @@ export const make = (httpClient, options = {}) => {
|
|
|
4232
5172
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4233
5173
|
"200": r => HttpClientResponse.schemaBodyJson(ListRunsResponse)(r),
|
|
4234
5174
|
orElse: response => unexpectedStatus(request, response)
|
|
4235
|
-
}))))
|
|
5175
|
+
}))))),
|
|
4236
5176
|
"createRun": (threadId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs`).pipe(HttpClientRequest.setUrlParams({
|
|
4237
5177
|
"include[]": options.params["include[]"]
|
|
4238
5178
|
}), req => Effect.orDie(HttpClientRequest.bodyJson(req, options.payload)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4239
5179
|
"200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
|
|
4240
5180
|
orElse: response => unexpectedStatus(request, response)
|
|
4241
|
-
}))))
|
|
5181
|
+
}))))),
|
|
4242
5182
|
"getRun": (threadId, runId) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs/${runId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4243
5183
|
"200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
|
|
4244
5184
|
orElse: response => unexpectedStatus(request, response)
|
|
4245
|
-
}))))
|
|
5185
|
+
}))))),
|
|
4246
5186
|
"modifyRun": (threadId, runId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4247
5187
|
"200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
|
|
4248
5188
|
orElse: response => unexpectedStatus(request, response)
|
|
4249
|
-
}))))
|
|
5189
|
+
}))))),
|
|
4250
5190
|
"cancelRun": (threadId, runId) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4251
5191
|
"200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
|
|
4252
5192
|
orElse: response => unexpectedStatus(request, response)
|
|
4253
|
-
}))))
|
|
5193
|
+
}))))),
|
|
4254
5194
|
"listRunSteps": (threadId, runId, options) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs/${runId}/steps`).pipe(HttpClientRequest.setUrlParams({
|
|
4255
5195
|
"limit": options["limit"],
|
|
4256
5196
|
"order": options["order"],
|
|
@@ -4260,33 +5200,33 @@ export const make = (httpClient, options = {}) => {
|
|
|
4260
5200
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4261
5201
|
"200": r => HttpClientResponse.schemaBodyJson(ListRunStepsResponse)(r),
|
|
4262
5202
|
orElse: response => unexpectedStatus(request, response)
|
|
4263
|
-
}))))
|
|
5203
|
+
}))))),
|
|
4264
5204
|
"getRunStep": (threadId, runId, stepId, options) => HttpClientRequest.make("GET")(`/threads/${threadId}/runs/${runId}/steps/${stepId}`).pipe(HttpClientRequest.setUrlParams({
|
|
4265
5205
|
"include[]": options["include[]"]
|
|
4266
5206
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4267
5207
|
"200": r => HttpClientResponse.schemaBodyJson(RunStepObject)(r),
|
|
4268
5208
|
orElse: response => unexpectedStatus(request, response)
|
|
4269
|
-
}))))
|
|
5209
|
+
}))))),
|
|
4270
5210
|
"submitToolOuputsToRun": (threadId, runId, options) => HttpClientRequest.make("POST")(`/threads/${threadId}/runs/${runId}/submit_tool_outputs`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4271
5211
|
"200": r => HttpClientResponse.schemaBodyJson(RunObject)(r),
|
|
4272
5212
|
orElse: response => unexpectedStatus(request, response)
|
|
4273
|
-
}))))
|
|
5213
|
+
}))))),
|
|
4274
5214
|
"createUpload": options => HttpClientRequest.make("POST")(`/uploads`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4275
5215
|
"200": r => HttpClientResponse.schemaBodyJson(Upload)(r),
|
|
4276
5216
|
orElse: response => unexpectedStatus(request, response)
|
|
4277
|
-
}))))
|
|
5217
|
+
}))))),
|
|
4278
5218
|
"cancelUpload": uploadId => HttpClientRequest.make("POST")(`/uploads/${uploadId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4279
5219
|
"200": r => HttpClientResponse.schemaBodyJson(Upload)(r),
|
|
4280
5220
|
orElse: response => unexpectedStatus(request, response)
|
|
4281
|
-
}))))
|
|
5221
|
+
}))))),
|
|
4282
5222
|
"completeUpload": (uploadId, options) => HttpClientRequest.make("POST")(`/uploads/${uploadId}/complete`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4283
5223
|
"200": r => HttpClientResponse.schemaBodyJson(Upload)(r),
|
|
4284
5224
|
orElse: response => unexpectedStatus(request, response)
|
|
4285
|
-
}))))
|
|
5225
|
+
}))))),
|
|
4286
5226
|
"addUploadPart": (uploadId, options) => HttpClientRequest.make("POST")(`/uploads/${uploadId}/parts`).pipe(HttpClientRequest.bodyFormData(options), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4287
5227
|
"200": r => HttpClientResponse.schemaBodyJson(UploadPart)(r),
|
|
4288
5228
|
orElse: response => unexpectedStatus(request, response)
|
|
4289
|
-
}))))
|
|
5229
|
+
}))))),
|
|
4290
5230
|
"listVectorStores": options => HttpClientRequest.make("GET")(`/vector_stores`).pipe(HttpClientRequest.setUrlParams({
|
|
4291
5231
|
"limit": options["limit"],
|
|
4292
5232
|
"order": options["order"],
|
|
@@ -4295,35 +5235,35 @@ export const make = (httpClient, options = {}) => {
|
|
|
4295
5235
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4296
5236
|
"200": r => HttpClientResponse.schemaBodyJson(ListVectorStoresResponse)(r),
|
|
4297
5237
|
orElse: response => unexpectedStatus(request, response)
|
|
4298
|
-
}))))
|
|
5238
|
+
}))))),
|
|
4299
5239
|
"createVectorStore": options => HttpClientRequest.make("POST")(`/vector_stores`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4300
5240
|
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreObject)(r),
|
|
4301
5241
|
orElse: response => unexpectedStatus(request, response)
|
|
4302
|
-
}))))
|
|
5242
|
+
}))))),
|
|
4303
5243
|
"getVectorStore": vectorStoreId => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4304
5244
|
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreObject)(r),
|
|
4305
5245
|
orElse: response => unexpectedStatus(request, response)
|
|
4306
|
-
}))))
|
|
5246
|
+
}))))),
|
|
4307
5247
|
"modifyVectorStore": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4308
5248
|
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreObject)(r),
|
|
4309
5249
|
orElse: response => unexpectedStatus(request, response)
|
|
4310
|
-
}))))
|
|
5250
|
+
}))))),
|
|
4311
5251
|
"deleteVectorStore": vectorStoreId => HttpClientRequest.make("DELETE")(`/vector_stores/${vectorStoreId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4312
5252
|
"200": r => HttpClientResponse.schemaBodyJson(DeleteVectorStoreResponse)(r),
|
|
4313
5253
|
orElse: response => unexpectedStatus(request, response)
|
|
4314
|
-
}))))
|
|
5254
|
+
}))))),
|
|
4315
5255
|
"createVectorStoreFileBatch": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/file_batches`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4316
5256
|
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileBatchObject)(r),
|
|
4317
5257
|
orElse: response => unexpectedStatus(request, response)
|
|
4318
|
-
}))))
|
|
5258
|
+
}))))),
|
|
4319
5259
|
"getVectorStoreFileBatch": (vectorStoreId, batchId) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/file_batches/${batchId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4320
5260
|
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileBatchObject)(r),
|
|
4321
5261
|
orElse: response => unexpectedStatus(request, response)
|
|
4322
|
-
}))))
|
|
5262
|
+
}))))),
|
|
4323
5263
|
"cancelVectorStoreFileBatch": (vectorStoreId, batchId) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/cancel`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4324
5264
|
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileBatchObject)(r),
|
|
4325
5265
|
orElse: response => unexpectedStatus(request, response)
|
|
4326
|
-
}))))
|
|
5266
|
+
}))))),
|
|
4327
5267
|
"listFilesInVectorStoreBatch": (vectorStoreId, batchId, options) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/file_batches/${batchId}/files`).pipe(HttpClientRequest.setUrlParams({
|
|
4328
5268
|
"limit": options["limit"],
|
|
4329
5269
|
"order": options["order"],
|
|
@@ -4333,7 +5273,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
4333
5273
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4334
5274
|
"200": r => HttpClientResponse.schemaBodyJson(ListVectorStoreFilesResponse)(r),
|
|
4335
5275
|
orElse: response => unexpectedStatus(request, response)
|
|
4336
|
-
}))))
|
|
5276
|
+
}))))),
|
|
4337
5277
|
"listVectorStoreFiles": (vectorStoreId, options) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/files`).pipe(HttpClientRequest.setUrlParams({
|
|
4338
5278
|
"limit": options["limit"],
|
|
4339
5279
|
"order": options["order"],
|
|
@@ -4343,19 +5283,31 @@ export const make = (httpClient, options = {}) => {
|
|
|
4343
5283
|
}), Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4344
5284
|
"200": r => HttpClientResponse.schemaBodyJson(ListVectorStoreFilesResponse)(r),
|
|
4345
5285
|
orElse: response => unexpectedStatus(request, response)
|
|
4346
|
-
}))))
|
|
5286
|
+
}))))),
|
|
4347
5287
|
"createVectorStoreFile": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/files`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4348
5288
|
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileObject)(r),
|
|
4349
5289
|
orElse: response => unexpectedStatus(request, response)
|
|
4350
|
-
}))))
|
|
5290
|
+
}))))),
|
|
4351
5291
|
"getVectorStoreFile": (vectorStoreId, fileId) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4352
5292
|
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileObject)(r),
|
|
4353
5293
|
orElse: response => unexpectedStatus(request, response)
|
|
4354
|
-
}))))
|
|
5294
|
+
}))))),
|
|
5295
|
+
"updateVectorStoreFileAttributes": (vectorStoreId, fileId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
5296
|
+
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileObject)(r),
|
|
5297
|
+
orElse: response => unexpectedStatus(request, response)
|
|
5298
|
+
}))))),
|
|
4355
5299
|
"deleteVectorStoreFile": (vectorStoreId, fileId) => HttpClientRequest.make("DELETE")(`/vector_stores/${vectorStoreId}/files/${fileId}`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
4356
5300
|
"200": r => HttpClientResponse.schemaBodyJson(DeleteVectorStoreFileResponse)(r),
|
|
4357
5301
|
orElse: response => unexpectedStatus(request, response)
|
|
4358
|
-
})))),
|
|
5302
|
+
}))))),
|
|
5303
|
+
"retrieveVectorStoreFileContent": (vectorStoreId, fileId) => HttpClientRequest.make("GET")(`/vector_stores/${vectorStoreId}/files/${fileId}/content`).pipe(Effect.succeed, Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
5304
|
+
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreFileContentResponse)(r),
|
|
5305
|
+
orElse: response => unexpectedStatus(request, response)
|
|
5306
|
+
}))))),
|
|
5307
|
+
"searchVectorStore": (vectorStoreId, options) => HttpClientRequest.make("POST")(`/vector_stores/${vectorStoreId}/search`).pipe(req => Effect.orDie(HttpClientRequest.bodyJson(req, options)), Effect.flatMap(request => Effect.flatMap(applyClientTransform(httpClient), httpClient => Effect.flatMap(httpClient.execute(request), HttpClientResponse.matchStatus({
|
|
5308
|
+
"200": r => HttpClientResponse.schemaBodyJson(VectorStoreSearchResultsPage)(r),
|
|
5309
|
+
orElse: response => unexpectedStatus(request, response)
|
|
5310
|
+
})))))
|
|
4359
5311
|
};
|
|
4360
5312
|
};
|
|
4361
5313
|
//# sourceMappingURL=Generated.js.map
|