@kaana.ai/contracts 6.1.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/internal/catalogue.d.ts +0 -29
- package/dist/internal/catalogue.js +0 -3
- package/dist/internal/grant.d.ts +4 -36
- package/dist/internal/grant.js +7 -56
- package/dist/internal/request.d.ts +1 -667
- package/dist/internal/request.js +17 -104
- package/dist/internal.d.ts +4 -7
- package/dist/internal.js +4 -7
- package/dist/public/decisions.d.ts +7 -1
- package/dist/public/decisions.js +9 -1
- package/dist/public/version.d.ts +12 -1
- package/dist/public/version.js +12 -1
- package/openapi.json +1 -2
- package/package.json +1 -1
- package/dist/internal/canonical.d.ts +0 -31
- package/dist/internal/canonical.js +0 -57
- package/dist/internal/privateAutoExecution.d.ts +0 -158
- package/dist/internal/privateAutoExecution.js +0 -188
- package/dist/internal/scopedExecution.d.ts +0 -74
- package/dist/internal/scopedExecution.js +0 -61
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The signed Oxy→Kaana request envelope (versions 1–
|
|
2
|
+
* The signed Oxy→Kaana request envelope (versions 1–2).
|
|
3
3
|
*
|
|
4
4
|
* Moved from `@oxy.so/contracts` 4.12.0 (`src/inference/request.ts`) by Kaana ADR 0002.
|
|
5
5
|
*/
|
|
@@ -143,38 +143,6 @@ export declare const clientRequestMetadataSchema: z.ZodObject<{
|
|
|
143
143
|
}, z.core.$strict>;
|
|
144
144
|
export declare const inferenceRequestSchema: z.ZodObject<{
|
|
145
145
|
schemaVersion: z.ZodLiteral<2>;
|
|
146
|
-
scopedExecution: z.ZodOptional<z.ZodObject<{
|
|
147
|
-
permitId: z.ZodString;
|
|
148
|
-
idempotencyKey: z.ZodString;
|
|
149
|
-
fixtureSha256: z.ZodString;
|
|
150
|
-
expiresAt: z.ZodString;
|
|
151
|
-
principal: z.ZodObject<{
|
|
152
|
-
accountId: z.ZodString;
|
|
153
|
-
applicationId: z.ZodString;
|
|
154
|
-
credentialId: z.ZodString;
|
|
155
|
-
environment: z.ZodEnum<{
|
|
156
|
-
development: "development";
|
|
157
|
-
staging: "staging";
|
|
158
|
-
production: "production";
|
|
159
|
-
}>;
|
|
160
|
-
}, z.core.$strict>;
|
|
161
|
-
policy: z.ZodObject<{
|
|
162
|
-
routingPolicyId: z.ZodString;
|
|
163
|
-
policyVersion: z.ZodNumber;
|
|
164
|
-
}, z.core.$strict>;
|
|
165
|
-
deploymentId: z.ZodString;
|
|
166
|
-
provider: z.ZodString;
|
|
167
|
-
keyId: z.ZodString;
|
|
168
|
-
modelReference: z.ZodString;
|
|
169
|
-
upstreamModelId: z.ZodString;
|
|
170
|
-
priceVersionId: z.ZodString;
|
|
171
|
-
providerRateCardVersionId: z.ZodString;
|
|
172
|
-
providerSourceVersion: z.ZodString;
|
|
173
|
-
maxCostUsd: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
174
|
-
requestId: z.ZodString;
|
|
175
|
-
snapshotId: z.ZodString;
|
|
176
|
-
catalogueEvidenceHash: z.ZodString;
|
|
177
|
-
}, z.core.$strict>>;
|
|
178
146
|
attribution: z.ZodObject<{
|
|
179
147
|
principal: z.ZodObject<{
|
|
180
148
|
billing: z.ZodObject<{
|
|
@@ -452,640 +420,6 @@ export declare const inferenceRequestSchema: z.ZodObject<{
|
|
|
452
420
|
substitution: z.ZodLiteral<"cross_model">;
|
|
453
421
|
}, z.core.$strict>], "substitution">>>;
|
|
454
422
|
}, z.core.$strip>;
|
|
455
|
-
/** Explicit restrictive generation: old v2 receivers reject this version whole. */
|
|
456
|
-
export declare const scopedInferenceRequestSchema: z.ZodObject<{
|
|
457
|
-
attribution: z.ZodObject<{
|
|
458
|
-
principal: z.ZodObject<{
|
|
459
|
-
billing: z.ZodObject<{
|
|
460
|
-
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
461
|
-
}, z.core.$strict>;
|
|
462
|
-
applicationId: z.ZodString;
|
|
463
|
-
credentialId: z.ZodString;
|
|
464
|
-
environment: z.ZodEnum<{
|
|
465
|
-
development: "development";
|
|
466
|
-
staging: "staging";
|
|
467
|
-
production: "production";
|
|
468
|
-
}>;
|
|
469
|
-
inferenceScopes: z.ZodArray<z.ZodEnum<{
|
|
470
|
-
"inference:invoke": "inference:invoke";
|
|
471
|
-
"inference:models:read": "inference:models:read";
|
|
472
|
-
"inference:usage:read": "inference:usage:read";
|
|
473
|
-
"inference:routing:read": "inference:routing:read";
|
|
474
|
-
"inference:routing:write": "inference:routing:write";
|
|
475
|
-
"inference:providers:read": "inference:providers:read";
|
|
476
|
-
"inference:providers:write": "inference:providers:write";
|
|
477
|
-
}>>;
|
|
478
|
-
}, z.core.$strip>;
|
|
479
|
-
userId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "DelegatedUserId", "out">>;
|
|
480
|
-
requestId: z.ZodString;
|
|
481
|
-
generationId: z.ZodOptional<z.ZodString>;
|
|
482
|
-
}, z.core.$strip>;
|
|
483
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
484
|
-
kind: z.ZodLiteral<"model">;
|
|
485
|
-
modelReference: z.ZodString;
|
|
486
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
487
|
-
kind: z.ZodLiteral<"routing_profile_id">;
|
|
488
|
-
routingProfileId: z.ZodString;
|
|
489
|
-
}, z.core.$strict>], "kind">;
|
|
490
|
-
modality: z.ZodEnum<{
|
|
491
|
-
text: "text";
|
|
492
|
-
audio: "audio";
|
|
493
|
-
image: "image";
|
|
494
|
-
video: "video";
|
|
495
|
-
embedding: "embedding";
|
|
496
|
-
}>;
|
|
497
|
-
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
498
|
-
format: z.ZodLiteral<"decisions">;
|
|
499
|
-
decisions: z.ZodObject<{
|
|
500
|
-
state: z.ZodString;
|
|
501
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
502
|
-
questions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
503
|
-
kind: z.ZodLiteral<"choice">;
|
|
504
|
-
options: z.ZodArray<z.ZodString>;
|
|
505
|
-
id: z.ZodString;
|
|
506
|
-
question: z.ZodString;
|
|
507
|
-
criteria: z.ZodOptional<z.ZodString>;
|
|
508
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
509
|
-
kind: z.ZodLiteral<"score">;
|
|
510
|
-
levels: z.ZodArray<z.ZodString>;
|
|
511
|
-
id: z.ZodString;
|
|
512
|
-
question: z.ZodString;
|
|
513
|
-
criteria: z.ZodOptional<z.ZodString>;
|
|
514
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
515
|
-
kind: z.ZodLiteral<"noul">;
|
|
516
|
-
id: z.ZodString;
|
|
517
|
-
question: z.ZodString;
|
|
518
|
-
criteria: z.ZodOptional<z.ZodString>;
|
|
519
|
-
}, z.core.$strict>], "kind">>;
|
|
520
|
-
effort: z.ZodOptional<z.ZodEnum<{
|
|
521
|
-
low: "low";
|
|
522
|
-
medium: "medium";
|
|
523
|
-
high: "high";
|
|
524
|
-
instant: "instant";
|
|
525
|
-
xhigh: "xhigh";
|
|
526
|
-
}>>;
|
|
527
|
-
}, z.core.$strict>;
|
|
528
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
529
|
-
format: z.ZodLiteral<"messages">;
|
|
530
|
-
messages: z.ZodArray<z.ZodObject<{
|
|
531
|
-
role: z.ZodEnum<{
|
|
532
|
-
user: "user";
|
|
533
|
-
system: "system";
|
|
534
|
-
developer: "developer";
|
|
535
|
-
assistant: "assistant";
|
|
536
|
-
tool: "tool";
|
|
537
|
-
}>;
|
|
538
|
-
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
539
|
-
type: z.ZodLiteral<"text">;
|
|
540
|
-
text: z.ZodString;
|
|
541
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
542
|
-
type: z.ZodLiteral<"image">;
|
|
543
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
544
|
-
kind: z.ZodLiteral<"url">;
|
|
545
|
-
url: z.ZodString;
|
|
546
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
547
|
-
kind: z.ZodLiteral<"inline">;
|
|
548
|
-
mediaType: z.ZodString;
|
|
549
|
-
data: z.ZodString;
|
|
550
|
-
}, z.core.$strict>], "kind">;
|
|
551
|
-
detail: z.ZodOptional<z.ZodEnum<{
|
|
552
|
-
low: "low";
|
|
553
|
-
high: "high";
|
|
554
|
-
auto: "auto";
|
|
555
|
-
}>>;
|
|
556
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
557
|
-
type: z.ZodLiteral<"audio">;
|
|
558
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
559
|
-
kind: z.ZodLiteral<"url">;
|
|
560
|
-
url: z.ZodString;
|
|
561
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
562
|
-
kind: z.ZodLiteral<"inline">;
|
|
563
|
-
mediaType: z.ZodString;
|
|
564
|
-
data: z.ZodString;
|
|
565
|
-
}, z.core.$strict>], "kind">;
|
|
566
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
567
|
-
type: z.ZodLiteral<"file">;
|
|
568
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
569
|
-
kind: z.ZodLiteral<"url">;
|
|
570
|
-
url: z.ZodString;
|
|
571
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
572
|
-
kind: z.ZodLiteral<"inline">;
|
|
573
|
-
mediaType: z.ZodString;
|
|
574
|
-
data: z.ZodString;
|
|
575
|
-
}, z.core.$strict>], "kind">;
|
|
576
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
577
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
578
|
-
type: z.ZodLiteral<"refusal">;
|
|
579
|
-
text: z.ZodString;
|
|
580
|
-
}, z.core.$strict>], "type">>;
|
|
581
|
-
name: z.ZodOptional<z.ZodString>;
|
|
582
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
583
|
-
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
584
|
-
id: z.ZodString;
|
|
585
|
-
name: z.ZodString;
|
|
586
|
-
arguments: z.ZodString;
|
|
587
|
-
}, z.core.$strict>>>;
|
|
588
|
-
}, z.core.$strict>>;
|
|
589
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
590
|
-
format: z.ZodLiteral<"text">;
|
|
591
|
-
text: z.ZodString;
|
|
592
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
593
|
-
format: z.ZodLiteral<"text_batch">;
|
|
594
|
-
texts: z.ZodArray<z.ZodString>;
|
|
595
|
-
}, z.core.$strict>], "format">;
|
|
596
|
-
stream: z.ZodBoolean;
|
|
597
|
-
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
598
|
-
sampling: z.ZodObject<{
|
|
599
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
600
|
-
topP: z.ZodOptional<z.ZodNumber>;
|
|
601
|
-
topK: z.ZodOptional<z.ZodNumber>;
|
|
602
|
-
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
603
|
-
presencePenalty: z.ZodOptional<z.ZodNumber>;
|
|
604
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
605
|
-
stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
606
|
-
}, z.core.$strict>;
|
|
607
|
-
reasoning: z.ZodOptional<z.ZodObject<{
|
|
608
|
-
effort: z.ZodEnum<{
|
|
609
|
-
low: "low";
|
|
610
|
-
medium: "medium";
|
|
611
|
-
high: "high";
|
|
612
|
-
}>;
|
|
613
|
-
}, z.core.$strict>>;
|
|
614
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
615
|
-
voice: z.ZodString;
|
|
616
|
-
responseFormat: z.ZodEnum<{
|
|
617
|
-
mp3: "mp3";
|
|
618
|
-
opus: "opus";
|
|
619
|
-
aac: "aac";
|
|
620
|
-
flac: "flac";
|
|
621
|
-
wav: "wav";
|
|
622
|
-
pcm: "pcm";
|
|
623
|
-
}>;
|
|
624
|
-
speed: z.ZodOptional<z.ZodNumber>;
|
|
625
|
-
}, z.core.$strict>>;
|
|
626
|
-
transcription: z.ZodOptional<z.ZodObject<{
|
|
627
|
-
language: z.ZodOptional<z.ZodString>;
|
|
628
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
629
|
-
}, z.core.$strict>>;
|
|
630
|
-
audioOutput: z.ZodOptional<z.ZodObject<{
|
|
631
|
-
voice: z.ZodString;
|
|
632
|
-
format: z.ZodEnum<{
|
|
633
|
-
mp3: "mp3";
|
|
634
|
-
opus: "opus";
|
|
635
|
-
flac: "flac";
|
|
636
|
-
wav: "wav";
|
|
637
|
-
pcm: "pcm";
|
|
638
|
-
}>;
|
|
639
|
-
}, z.core.$strict>>;
|
|
640
|
-
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
641
|
-
type: z.ZodLiteral<"function">;
|
|
642
|
-
name: z.ZodString;
|
|
643
|
-
description: z.ZodOptional<z.ZodString>;
|
|
644
|
-
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
645
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
646
|
-
}, z.core.$strict>>>;
|
|
647
|
-
toolChoice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
648
|
-
auto: "auto";
|
|
649
|
-
none: "none";
|
|
650
|
-
required: "required";
|
|
651
|
-
}>, z.ZodObject<{
|
|
652
|
-
type: z.ZodLiteral<"function">;
|
|
653
|
-
name: z.ZodString;
|
|
654
|
-
}, z.core.$strict>]>>;
|
|
655
|
-
responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
656
|
-
type: z.ZodLiteral<"text">;
|
|
657
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
658
|
-
type: z.ZodLiteral<"json_object">;
|
|
659
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
660
|
-
type: z.ZodLiteral<"json_schema">;
|
|
661
|
-
name: z.ZodString;
|
|
662
|
-
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
663
|
-
strict: z.ZodBoolean;
|
|
664
|
-
}, z.core.$strict>], "type">>;
|
|
665
|
-
client: z.ZodObject<{
|
|
666
|
-
apiFormat: z.ZodEnum<{
|
|
667
|
-
embeddings: "embeddings";
|
|
668
|
-
decisions: "decisions";
|
|
669
|
-
responses: "responses";
|
|
670
|
-
chat_completions: "chat_completions";
|
|
671
|
-
images_generations: "images_generations";
|
|
672
|
-
audio_transcriptions: "audio_transcriptions";
|
|
673
|
-
audio_speech: "audio_speech";
|
|
674
|
-
rerank: "rerank";
|
|
675
|
-
batches: "batches";
|
|
676
|
-
}>;
|
|
677
|
-
endpoint: z.ZodString;
|
|
678
|
-
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
679
|
-
receivedAt: z.ZodString;
|
|
680
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
681
|
-
}, z.core.$strict>;
|
|
682
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
683
|
-
routingPolicy: z.ZodObject<{
|
|
684
|
-
routingPolicyId: z.ZodString;
|
|
685
|
-
policyVersion: z.ZodNumber;
|
|
686
|
-
}, z.core.$strict>;
|
|
687
|
-
authorizedRoutes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
688
|
-
deploymentId: z.ZodString;
|
|
689
|
-
modelReference: z.ZodString;
|
|
690
|
-
provider: z.ZodString;
|
|
691
|
-
regions: z.ZodArray<z.ZodString>;
|
|
692
|
-
maxFundingTier: z.ZodOptional<z.ZodEnum<{
|
|
693
|
-
free: "free";
|
|
694
|
-
credit: "credit";
|
|
695
|
-
paid: "paid";
|
|
696
|
-
}>>;
|
|
697
|
-
customerProviderCredential: z.ZodOptional<z.ZodObject<{
|
|
698
|
-
credentialHandle: z.ZodString;
|
|
699
|
-
credentialRevision: z.ZodNumber;
|
|
700
|
-
ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
701
|
-
connectionId: z.ZodString;
|
|
702
|
-
environment: z.ZodEnum<{
|
|
703
|
-
development: "development";
|
|
704
|
-
staging: "staging";
|
|
705
|
-
production: "production";
|
|
706
|
-
}>;
|
|
707
|
-
}, z.core.$strict>>;
|
|
708
|
-
substitution: z.ZodLiteral<"same_model">;
|
|
709
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
710
|
-
authorizedByPolicy: z.ZodLiteral<true>;
|
|
711
|
-
deploymentId: z.ZodString;
|
|
712
|
-
modelReference: z.ZodString;
|
|
713
|
-
provider: z.ZodString;
|
|
714
|
-
regions: z.ZodArray<z.ZodString>;
|
|
715
|
-
maxFundingTier: z.ZodOptional<z.ZodEnum<{
|
|
716
|
-
free: "free";
|
|
717
|
-
credit: "credit";
|
|
718
|
-
paid: "paid";
|
|
719
|
-
}>>;
|
|
720
|
-
customerProviderCredential: z.ZodOptional<z.ZodObject<{
|
|
721
|
-
credentialHandle: z.ZodString;
|
|
722
|
-
credentialRevision: z.ZodNumber;
|
|
723
|
-
ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
724
|
-
connectionId: z.ZodString;
|
|
725
|
-
environment: z.ZodEnum<{
|
|
726
|
-
development: "development";
|
|
727
|
-
staging: "staging";
|
|
728
|
-
production: "production";
|
|
729
|
-
}>;
|
|
730
|
-
}, z.core.$strict>>;
|
|
731
|
-
substitution: z.ZodLiteral<"cross_model">;
|
|
732
|
-
}, z.core.$strict>], "substitution">>>;
|
|
733
|
-
schemaVersion: z.ZodLiteral<3>;
|
|
734
|
-
scopedExecution: z.ZodObject<{
|
|
735
|
-
permitId: z.ZodString;
|
|
736
|
-
idempotencyKey: z.ZodString;
|
|
737
|
-
fixtureSha256: z.ZodString;
|
|
738
|
-
expiresAt: z.ZodString;
|
|
739
|
-
principal: z.ZodObject<{
|
|
740
|
-
accountId: z.ZodString;
|
|
741
|
-
applicationId: z.ZodString;
|
|
742
|
-
credentialId: z.ZodString;
|
|
743
|
-
environment: z.ZodEnum<{
|
|
744
|
-
development: "development";
|
|
745
|
-
staging: "staging";
|
|
746
|
-
production: "production";
|
|
747
|
-
}>;
|
|
748
|
-
}, z.core.$strict>;
|
|
749
|
-
policy: z.ZodObject<{
|
|
750
|
-
routingPolicyId: z.ZodString;
|
|
751
|
-
policyVersion: z.ZodNumber;
|
|
752
|
-
}, z.core.$strict>;
|
|
753
|
-
deploymentId: z.ZodString;
|
|
754
|
-
provider: z.ZodString;
|
|
755
|
-
keyId: z.ZodString;
|
|
756
|
-
modelReference: z.ZodString;
|
|
757
|
-
upstreamModelId: z.ZodString;
|
|
758
|
-
priceVersionId: z.ZodString;
|
|
759
|
-
providerRateCardVersionId: z.ZodString;
|
|
760
|
-
providerSourceVersion: z.ZodString;
|
|
761
|
-
maxCostUsd: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
762
|
-
requestId: z.ZodString;
|
|
763
|
-
snapshotId: z.ZodString;
|
|
764
|
-
catalogueEvidenceHash: z.ZodString;
|
|
765
|
-
}, z.core.$strict>;
|
|
766
|
-
}, z.core.$strip>;
|
|
767
|
-
/** Private repeated Auto is independently negotiated, never a v3 fixture renewal. */
|
|
768
|
-
export declare const privateAutoInferenceRequestSchema: z.ZodObject<{
|
|
769
|
-
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
770
|
-
format: z.ZodLiteral<"decisions">;
|
|
771
|
-
decisions: z.ZodObject<{
|
|
772
|
-
state: z.ZodString;
|
|
773
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
774
|
-
questions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
775
|
-
kind: z.ZodLiteral<"choice">;
|
|
776
|
-
options: z.ZodArray<z.ZodString>;
|
|
777
|
-
id: z.ZodString;
|
|
778
|
-
question: z.ZodString;
|
|
779
|
-
criteria: z.ZodOptional<z.ZodString>;
|
|
780
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
781
|
-
kind: z.ZodLiteral<"score">;
|
|
782
|
-
levels: z.ZodArray<z.ZodString>;
|
|
783
|
-
id: z.ZodString;
|
|
784
|
-
question: z.ZodString;
|
|
785
|
-
criteria: z.ZodOptional<z.ZodString>;
|
|
786
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
787
|
-
kind: z.ZodLiteral<"noul">;
|
|
788
|
-
id: z.ZodString;
|
|
789
|
-
question: z.ZodString;
|
|
790
|
-
criteria: z.ZodOptional<z.ZodString>;
|
|
791
|
-
}, z.core.$strict>], "kind">>;
|
|
792
|
-
effort: z.ZodOptional<z.ZodEnum<{
|
|
793
|
-
low: "low";
|
|
794
|
-
medium: "medium";
|
|
795
|
-
high: "high";
|
|
796
|
-
instant: "instant";
|
|
797
|
-
xhigh: "xhigh";
|
|
798
|
-
}>>;
|
|
799
|
-
}, z.core.$strict>;
|
|
800
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
801
|
-
format: z.ZodLiteral<"messages">;
|
|
802
|
-
messages: z.ZodArray<z.ZodObject<{
|
|
803
|
-
role: z.ZodEnum<{
|
|
804
|
-
user: "user";
|
|
805
|
-
system: "system";
|
|
806
|
-
developer: "developer";
|
|
807
|
-
assistant: "assistant";
|
|
808
|
-
tool: "tool";
|
|
809
|
-
}>;
|
|
810
|
-
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
811
|
-
type: z.ZodLiteral<"text">;
|
|
812
|
-
text: z.ZodString;
|
|
813
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
814
|
-
type: z.ZodLiteral<"image">;
|
|
815
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
816
|
-
kind: z.ZodLiteral<"url">;
|
|
817
|
-
url: z.ZodString;
|
|
818
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
819
|
-
kind: z.ZodLiteral<"inline">;
|
|
820
|
-
mediaType: z.ZodString;
|
|
821
|
-
data: z.ZodString;
|
|
822
|
-
}, z.core.$strict>], "kind">;
|
|
823
|
-
detail: z.ZodOptional<z.ZodEnum<{
|
|
824
|
-
low: "low";
|
|
825
|
-
high: "high";
|
|
826
|
-
auto: "auto";
|
|
827
|
-
}>>;
|
|
828
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
829
|
-
type: z.ZodLiteral<"audio">;
|
|
830
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
831
|
-
kind: z.ZodLiteral<"url">;
|
|
832
|
-
url: z.ZodString;
|
|
833
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
834
|
-
kind: z.ZodLiteral<"inline">;
|
|
835
|
-
mediaType: z.ZodString;
|
|
836
|
-
data: z.ZodString;
|
|
837
|
-
}, z.core.$strict>], "kind">;
|
|
838
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
839
|
-
type: z.ZodLiteral<"file">;
|
|
840
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
841
|
-
kind: z.ZodLiteral<"url">;
|
|
842
|
-
url: z.ZodString;
|
|
843
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
844
|
-
kind: z.ZodLiteral<"inline">;
|
|
845
|
-
mediaType: z.ZodString;
|
|
846
|
-
data: z.ZodString;
|
|
847
|
-
}, z.core.$strict>], "kind">;
|
|
848
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
849
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
850
|
-
type: z.ZodLiteral<"refusal">;
|
|
851
|
-
text: z.ZodString;
|
|
852
|
-
}, z.core.$strict>], "type">>;
|
|
853
|
-
name: z.ZodOptional<z.ZodString>;
|
|
854
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
855
|
-
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
856
|
-
id: z.ZodString;
|
|
857
|
-
name: z.ZodString;
|
|
858
|
-
arguments: z.ZodString;
|
|
859
|
-
}, z.core.$strict>>>;
|
|
860
|
-
}, z.core.$strict>>;
|
|
861
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
862
|
-
format: z.ZodLiteral<"text">;
|
|
863
|
-
text: z.ZodString;
|
|
864
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
865
|
-
format: z.ZodLiteral<"text_batch">;
|
|
866
|
-
texts: z.ZodArray<z.ZodString>;
|
|
867
|
-
}, z.core.$strict>], "format">;
|
|
868
|
-
reasoning: z.ZodOptional<z.ZodObject<{
|
|
869
|
-
effort: z.ZodEnum<{
|
|
870
|
-
low: "low";
|
|
871
|
-
medium: "medium";
|
|
872
|
-
high: "high";
|
|
873
|
-
}>;
|
|
874
|
-
}, z.core.$strict>>;
|
|
875
|
-
transcription: z.ZodOptional<z.ZodObject<{
|
|
876
|
-
language: z.ZodOptional<z.ZodString>;
|
|
877
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
878
|
-
}, z.core.$strict>>;
|
|
879
|
-
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
880
|
-
type: z.ZodLiteral<"function">;
|
|
881
|
-
name: z.ZodString;
|
|
882
|
-
description: z.ZodOptional<z.ZodString>;
|
|
883
|
-
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
884
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
885
|
-
}, z.core.$strict>>>;
|
|
886
|
-
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
887
|
-
stream: z.ZodBoolean;
|
|
888
|
-
responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
889
|
-
type: z.ZodLiteral<"text">;
|
|
890
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
891
|
-
type: z.ZodLiteral<"json_object">;
|
|
892
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
893
|
-
type: z.ZodLiteral<"json_schema">;
|
|
894
|
-
name: z.ZodString;
|
|
895
|
-
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
896
|
-
strict: z.ZodBoolean;
|
|
897
|
-
}, z.core.$strict>], "type">>;
|
|
898
|
-
toolChoice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
899
|
-
auto: "auto";
|
|
900
|
-
none: "none";
|
|
901
|
-
required: "required";
|
|
902
|
-
}>, z.ZodObject<{
|
|
903
|
-
type: z.ZodLiteral<"function">;
|
|
904
|
-
name: z.ZodString;
|
|
905
|
-
}, z.core.$strict>]>>;
|
|
906
|
-
routingPolicy: z.ZodObject<{
|
|
907
|
-
routingPolicyId: z.ZodString;
|
|
908
|
-
policyVersion: z.ZodNumber;
|
|
909
|
-
}, z.core.$strict>;
|
|
910
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
911
|
-
attribution: z.ZodObject<{
|
|
912
|
-
principal: z.ZodObject<{
|
|
913
|
-
billing: z.ZodObject<{
|
|
914
|
-
accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
915
|
-
}, z.core.$strict>;
|
|
916
|
-
applicationId: z.ZodString;
|
|
917
|
-
credentialId: z.ZodString;
|
|
918
|
-
environment: z.ZodEnum<{
|
|
919
|
-
development: "development";
|
|
920
|
-
staging: "staging";
|
|
921
|
-
production: "production";
|
|
922
|
-
}>;
|
|
923
|
-
inferenceScopes: z.ZodArray<z.ZodEnum<{
|
|
924
|
-
"inference:invoke": "inference:invoke";
|
|
925
|
-
"inference:models:read": "inference:models:read";
|
|
926
|
-
"inference:usage:read": "inference:usage:read";
|
|
927
|
-
"inference:routing:read": "inference:routing:read";
|
|
928
|
-
"inference:routing:write": "inference:routing:write";
|
|
929
|
-
"inference:providers:read": "inference:providers:read";
|
|
930
|
-
"inference:providers:write": "inference:providers:write";
|
|
931
|
-
}>>;
|
|
932
|
-
}, z.core.$strip>;
|
|
933
|
-
userId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "DelegatedUserId", "out">>;
|
|
934
|
-
requestId: z.ZodString;
|
|
935
|
-
generationId: z.ZodOptional<z.ZodString>;
|
|
936
|
-
}, z.core.$strip>;
|
|
937
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
938
|
-
kind: z.ZodLiteral<"model">;
|
|
939
|
-
modelReference: z.ZodString;
|
|
940
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
941
|
-
kind: z.ZodLiteral<"routing_profile_id">;
|
|
942
|
-
routingProfileId: z.ZodString;
|
|
943
|
-
}, z.core.$strict>], "kind">;
|
|
944
|
-
client: z.ZodObject<{
|
|
945
|
-
apiFormat: z.ZodEnum<{
|
|
946
|
-
embeddings: "embeddings";
|
|
947
|
-
decisions: "decisions";
|
|
948
|
-
responses: "responses";
|
|
949
|
-
chat_completions: "chat_completions";
|
|
950
|
-
images_generations: "images_generations";
|
|
951
|
-
audio_transcriptions: "audio_transcriptions";
|
|
952
|
-
audio_speech: "audio_speech";
|
|
953
|
-
rerank: "rerank";
|
|
954
|
-
batches: "batches";
|
|
955
|
-
}>;
|
|
956
|
-
endpoint: z.ZodString;
|
|
957
|
-
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
958
|
-
receivedAt: z.ZodString;
|
|
959
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
960
|
-
}, z.core.$strict>;
|
|
961
|
-
authorizedRoutes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
962
|
-
deploymentId: z.ZodString;
|
|
963
|
-
modelReference: z.ZodString;
|
|
964
|
-
provider: z.ZodString;
|
|
965
|
-
regions: z.ZodArray<z.ZodString>;
|
|
966
|
-
maxFundingTier: z.ZodOptional<z.ZodEnum<{
|
|
967
|
-
free: "free";
|
|
968
|
-
credit: "credit";
|
|
969
|
-
paid: "paid";
|
|
970
|
-
}>>;
|
|
971
|
-
customerProviderCredential: z.ZodOptional<z.ZodObject<{
|
|
972
|
-
credentialHandle: z.ZodString;
|
|
973
|
-
credentialRevision: z.ZodNumber;
|
|
974
|
-
ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
975
|
-
connectionId: z.ZodString;
|
|
976
|
-
environment: z.ZodEnum<{
|
|
977
|
-
development: "development";
|
|
978
|
-
staging: "staging";
|
|
979
|
-
production: "production";
|
|
980
|
-
}>;
|
|
981
|
-
}, z.core.$strict>>;
|
|
982
|
-
substitution: z.ZodLiteral<"same_model">;
|
|
983
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
984
|
-
authorizedByPolicy: z.ZodLiteral<true>;
|
|
985
|
-
deploymentId: z.ZodString;
|
|
986
|
-
modelReference: z.ZodString;
|
|
987
|
-
provider: z.ZodString;
|
|
988
|
-
regions: z.ZodArray<z.ZodString>;
|
|
989
|
-
maxFundingTier: z.ZodOptional<z.ZodEnum<{
|
|
990
|
-
free: "free";
|
|
991
|
-
credit: "credit";
|
|
992
|
-
paid: "paid";
|
|
993
|
-
}>>;
|
|
994
|
-
customerProviderCredential: z.ZodOptional<z.ZodObject<{
|
|
995
|
-
credentialHandle: z.ZodString;
|
|
996
|
-
credentialRevision: z.ZodNumber;
|
|
997
|
-
ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
|
|
998
|
-
connectionId: z.ZodString;
|
|
999
|
-
environment: z.ZodEnum<{
|
|
1000
|
-
development: "development";
|
|
1001
|
-
staging: "staging";
|
|
1002
|
-
production: "production";
|
|
1003
|
-
}>;
|
|
1004
|
-
}, z.core.$strict>>;
|
|
1005
|
-
substitution: z.ZodLiteral<"cross_model">;
|
|
1006
|
-
}, z.core.$strict>], "substitution">>>;
|
|
1007
|
-
modality: z.ZodEnum<{
|
|
1008
|
-
text: "text";
|
|
1009
|
-
audio: "audio";
|
|
1010
|
-
image: "image";
|
|
1011
|
-
video: "video";
|
|
1012
|
-
embedding: "embedding";
|
|
1013
|
-
}>;
|
|
1014
|
-
sampling: z.ZodObject<{
|
|
1015
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1016
|
-
topP: z.ZodOptional<z.ZodNumber>;
|
|
1017
|
-
topK: z.ZodOptional<z.ZodNumber>;
|
|
1018
|
-
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
1019
|
-
presencePenalty: z.ZodOptional<z.ZodNumber>;
|
|
1020
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1021
|
-
stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1022
|
-
}, z.core.$strict>;
|
|
1023
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
1024
|
-
voice: z.ZodString;
|
|
1025
|
-
responseFormat: z.ZodEnum<{
|
|
1026
|
-
mp3: "mp3";
|
|
1027
|
-
opus: "opus";
|
|
1028
|
-
aac: "aac";
|
|
1029
|
-
flac: "flac";
|
|
1030
|
-
wav: "wav";
|
|
1031
|
-
pcm: "pcm";
|
|
1032
|
-
}>;
|
|
1033
|
-
speed: z.ZodOptional<z.ZodNumber>;
|
|
1034
|
-
}, z.core.$strict>>;
|
|
1035
|
-
audioOutput: z.ZodOptional<z.ZodObject<{
|
|
1036
|
-
voice: z.ZodString;
|
|
1037
|
-
format: z.ZodEnum<{
|
|
1038
|
-
mp3: "mp3";
|
|
1039
|
-
opus: "opus";
|
|
1040
|
-
flac: "flac";
|
|
1041
|
-
wav: "wav";
|
|
1042
|
-
pcm: "pcm";
|
|
1043
|
-
}>;
|
|
1044
|
-
}, z.core.$strict>>;
|
|
1045
|
-
schemaVersion: z.ZodLiteral<4>;
|
|
1046
|
-
privateAutoExecution: z.ZodObject<{
|
|
1047
|
-
contractVersion: z.ZodLiteral<"3.7.0">;
|
|
1048
|
-
purpose: z.ZodLiteral<"private_auto_classifier">;
|
|
1049
|
-
classifierVersion: z.ZodLiteral<"jev-auto-v1">;
|
|
1050
|
-
approvalId: z.ZodString;
|
|
1051
|
-
approvalVersion: z.ZodNumber;
|
|
1052
|
-
approvalSha256: z.ZodString;
|
|
1053
|
-
parentMeteredUsageId: z.ZodGUID;
|
|
1054
|
-
parentRequestId: z.ZodString;
|
|
1055
|
-
operationId: z.ZodString;
|
|
1056
|
-
requestId: z.ZodString;
|
|
1057
|
-
inputSha256: z.ZodString;
|
|
1058
|
-
expiresAt: z.ZodString;
|
|
1059
|
-
runtimeExpiresAt: z.ZodString;
|
|
1060
|
-
principal: z.ZodObject<{
|
|
1061
|
-
accountId: z.ZodString;
|
|
1062
|
-
applicationId: z.ZodString;
|
|
1063
|
-
credentialId: z.ZodString;
|
|
1064
|
-
environment: z.ZodLiteral<"production">;
|
|
1065
|
-
lane: z.ZodLiteral<"service_token">;
|
|
1066
|
-
}, z.core.$strict>;
|
|
1067
|
-
policy: z.ZodObject<{
|
|
1068
|
-
routingPolicyId: z.ZodString;
|
|
1069
|
-
policyVersion: z.ZodNumber;
|
|
1070
|
-
}, z.core.$strict>;
|
|
1071
|
-
economicPolicyVersion: z.ZodString;
|
|
1072
|
-
economicRelationshipId: z.ZodString;
|
|
1073
|
-
deploymentId: z.ZodString;
|
|
1074
|
-
provider: z.ZodString;
|
|
1075
|
-
keyId: z.ZodString;
|
|
1076
|
-
modelReference: z.ZodString;
|
|
1077
|
-
upstreamModelId: z.ZodString;
|
|
1078
|
-
regions: z.ZodArray<z.ZodString>;
|
|
1079
|
-
priceVersionId: z.ZodString;
|
|
1080
|
-
providerRateCardVersionId: z.ZodString;
|
|
1081
|
-
providerSourceVersion: z.ZodString;
|
|
1082
|
-
maxCostUsd: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
|
|
1083
|
-
snapshotId: z.ZodString;
|
|
1084
|
-
catalogueEvidenceHash: z.ZodString;
|
|
1085
|
-
}, z.core.$strict>;
|
|
1086
|
-
}, z.core.$strict>;
|
|
1087
|
-
export type ScopedInferenceRequest = z.infer<typeof scopedInferenceRequestSchema>;
|
|
1088
|
-
export type PrivateAutoInferenceRequest = z.infer<typeof privateAutoInferenceRequestSchema>;
|
|
1089
423
|
export type InferenceInput = z.infer<typeof inferenceInputSchema>;
|
|
1090
424
|
export type ClientRequestMetadata = z.infer<typeof clientRequestMetadataSchema>;
|
|
1091
425
|
export type InferenceRequest = z.infer<typeof inferenceRequestSchema>;
|