@oxy.so/contracts 1.0.0 → 1.0.1
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/.tsbuildinfo +1 -1
- package/dist/cjs/index.js +10 -4
- package/dist/cjs/inference/embeddings.js +19 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/inference/embeddings.js +16 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/inference/catalogue.d.ts +24 -24
- package/dist/types/inference/embeddings.d.ts +455 -0
- package/dist/types/inference/modelDocumentation.d.ts +20 -20
- package/dist/types/inference/request.d.ts +4 -4
- package/dist/types/inference/streamEvents.d.ts +4 -4
- package/package.json +1 -1
|
@@ -340,8 +340,8 @@ export declare const modelLineDeclarationSchema: z.ZodObject<{
|
|
|
340
340
|
maxOutputTokens: z.ZodNumber;
|
|
341
341
|
}, "strict", z.ZodTypeAny, {
|
|
342
342
|
tools: boolean;
|
|
343
|
-
inputModalities: ("image" | "
|
|
344
|
-
outputModalities: ("image" | "
|
|
343
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
344
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
345
345
|
parallelToolCalls: boolean;
|
|
346
346
|
structuredOutput: boolean;
|
|
347
347
|
jsonMode: boolean;
|
|
@@ -352,8 +352,8 @@ export declare const modelLineDeclarationSchema: z.ZodObject<{
|
|
|
352
352
|
maxOutputTokens: number;
|
|
353
353
|
}, {
|
|
354
354
|
tools: boolean;
|
|
355
|
-
inputModalities: ("image" | "
|
|
356
|
-
outputModalities: ("image" | "
|
|
355
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
356
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
357
357
|
parallelToolCalls: boolean;
|
|
358
358
|
structuredOutput: boolean;
|
|
359
359
|
jsonMode: boolean;
|
|
@@ -369,8 +369,8 @@ export declare const modelLineDeclarationSchema: z.ZodObject<{
|
|
|
369
369
|
displayName: string;
|
|
370
370
|
capabilities: {
|
|
371
371
|
tools: boolean;
|
|
372
|
-
inputModalities: ("image" | "
|
|
373
|
-
outputModalities: ("image" | "
|
|
372
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
373
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
374
374
|
parallelToolCalls: boolean;
|
|
375
375
|
structuredOutput: boolean;
|
|
376
376
|
jsonMode: boolean;
|
|
@@ -387,8 +387,8 @@ export declare const modelLineDeclarationSchema: z.ZodObject<{
|
|
|
387
387
|
displayName: string;
|
|
388
388
|
capabilities: {
|
|
389
389
|
tools: boolean;
|
|
390
|
-
inputModalities: ("image" | "
|
|
391
|
-
outputModalities: ("image" | "
|
|
390
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
391
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
392
392
|
parallelToolCalls: boolean;
|
|
393
393
|
structuredOutput: boolean;
|
|
394
394
|
jsonMode: boolean;
|
|
@@ -963,8 +963,8 @@ export declare const modelReleaseIngestionRequestSchema: z.ZodObject<{
|
|
|
963
963
|
maxOutputTokens: z.ZodNumber;
|
|
964
964
|
}, "strict", z.ZodTypeAny, {
|
|
965
965
|
tools: boolean;
|
|
966
|
-
inputModalities: ("image" | "
|
|
967
|
-
outputModalities: ("image" | "
|
|
966
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
967
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
968
968
|
parallelToolCalls: boolean;
|
|
969
969
|
structuredOutput: boolean;
|
|
970
970
|
jsonMode: boolean;
|
|
@@ -975,8 +975,8 @@ export declare const modelReleaseIngestionRequestSchema: z.ZodObject<{
|
|
|
975
975
|
maxOutputTokens: number;
|
|
976
976
|
}, {
|
|
977
977
|
tools: boolean;
|
|
978
|
-
inputModalities: ("image" | "
|
|
979
|
-
outputModalities: ("image" | "
|
|
978
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
979
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
980
980
|
parallelToolCalls: boolean;
|
|
981
981
|
structuredOutput: boolean;
|
|
982
982
|
jsonMode: boolean;
|
|
@@ -992,8 +992,8 @@ export declare const modelReleaseIngestionRequestSchema: z.ZodObject<{
|
|
|
992
992
|
displayName: string;
|
|
993
993
|
capabilities: {
|
|
994
994
|
tools: boolean;
|
|
995
|
-
inputModalities: ("image" | "
|
|
996
|
-
outputModalities: ("image" | "
|
|
995
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
996
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
997
997
|
parallelToolCalls: boolean;
|
|
998
998
|
structuredOutput: boolean;
|
|
999
999
|
jsonMode: boolean;
|
|
@@ -1010,8 +1010,8 @@ export declare const modelReleaseIngestionRequestSchema: z.ZodObject<{
|
|
|
1010
1010
|
displayName: string;
|
|
1011
1011
|
capabilities: {
|
|
1012
1012
|
tools: boolean;
|
|
1013
|
-
inputModalities: ("image" | "
|
|
1014
|
-
outputModalities: ("image" | "
|
|
1013
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1014
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1015
1015
|
parallelToolCalls: boolean;
|
|
1016
1016
|
structuredOutput: boolean;
|
|
1017
1017
|
jsonMode: boolean;
|
|
@@ -1031,8 +1031,8 @@ export declare const modelReleaseIngestionRequestSchema: z.ZodObject<{
|
|
|
1031
1031
|
displayName: string;
|
|
1032
1032
|
capabilities: {
|
|
1033
1033
|
tools: boolean;
|
|
1034
|
-
inputModalities: ("image" | "
|
|
1035
|
-
outputModalities: ("image" | "
|
|
1034
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1035
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1036
1036
|
parallelToolCalls: boolean;
|
|
1037
1037
|
structuredOutput: boolean;
|
|
1038
1038
|
jsonMode: boolean;
|
|
@@ -1121,8 +1121,8 @@ export declare const modelReleaseIngestionRequestSchema: z.ZodObject<{
|
|
|
1121
1121
|
displayName: string;
|
|
1122
1122
|
capabilities: {
|
|
1123
1123
|
tools: boolean;
|
|
1124
|
-
inputModalities: ("image" | "
|
|
1125
|
-
outputModalities: ("image" | "
|
|
1124
|
+
inputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1125
|
+
outputModalities: ("image" | "embedding" | "text" | "audio" | "video")[];
|
|
1126
1126
|
parallelToolCalls: boolean;
|
|
1127
1127
|
structuredOutput: boolean;
|
|
1128
1128
|
jsonMode: boolean;
|
|
@@ -2199,7 +2199,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2199
2199
|
kind: "routing_profile_id";
|
|
2200
2200
|
routingProfileId: string;
|
|
2201
2201
|
};
|
|
2202
|
-
modality: "image" | "
|
|
2202
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2203
2203
|
input: {
|
|
2204
2204
|
format: "messages";
|
|
2205
2205
|
messages: {
|
|
@@ -2346,7 +2346,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2346
2346
|
kind: "routing_profile_id";
|
|
2347
2347
|
routingProfileId: string;
|
|
2348
2348
|
};
|
|
2349
|
-
modality: "image" | "
|
|
2349
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2350
2350
|
input: {
|
|
2351
2351
|
format: "messages";
|
|
2352
2352
|
messages: {
|
|
@@ -2507,7 +2507,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2507
2507
|
kind: "routing_profile_id";
|
|
2508
2508
|
routingProfileId: string;
|
|
2509
2509
|
};
|
|
2510
|
-
modality: "image" | "
|
|
2510
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2511
2511
|
input: {
|
|
2512
2512
|
format: "messages";
|
|
2513
2513
|
messages: {
|
|
@@ -2654,7 +2654,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2654
2654
|
kind: "routing_profile_id";
|
|
2655
2655
|
routingProfileId: string;
|
|
2656
2656
|
};
|
|
2657
|
-
modality: "image" | "
|
|
2657
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2658
2658
|
input: {
|
|
2659
2659
|
format: "messages";
|
|
2660
2660
|
messages: {
|
|
@@ -464,7 +464,6 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
464
464
|
type: "error";
|
|
465
465
|
schemaVersion: 1;
|
|
466
466
|
requestId: string;
|
|
467
|
-
sequence: number;
|
|
468
467
|
error: {
|
|
469
468
|
code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
470
469
|
message: string;
|
|
@@ -481,11 +480,11 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
481
480
|
status?: number | undefined;
|
|
482
481
|
} | undefined;
|
|
483
482
|
};
|
|
483
|
+
sequence: number;
|
|
484
484
|
}, {
|
|
485
485
|
type: "error";
|
|
486
486
|
schemaVersion: 1;
|
|
487
487
|
requestId: string;
|
|
488
|
-
sequence: number;
|
|
489
488
|
error: {
|
|
490
489
|
code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
491
490
|
message: string;
|
|
@@ -502,6 +501,7 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
|
|
|
502
501
|
status?: number | undefined;
|
|
503
502
|
} | undefined;
|
|
504
503
|
};
|
|
504
|
+
sequence: number;
|
|
505
505
|
}>;
|
|
506
506
|
/**
|
|
507
507
|
* Why generation stopped.
|
|
@@ -870,7 +870,6 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
870
870
|
type: "error";
|
|
871
871
|
schemaVersion: 1;
|
|
872
872
|
requestId: string;
|
|
873
|
-
sequence: number;
|
|
874
873
|
error: {
|
|
875
874
|
code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
876
875
|
message: string;
|
|
@@ -887,11 +886,11 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
887
886
|
status?: number | undefined;
|
|
888
887
|
} | undefined;
|
|
889
888
|
};
|
|
889
|
+
sequence: number;
|
|
890
890
|
}, {
|
|
891
891
|
type: "error";
|
|
892
892
|
schemaVersion: 1;
|
|
893
893
|
requestId: string;
|
|
894
|
-
sequence: number;
|
|
895
894
|
error: {
|
|
896
895
|
code: "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "cancelled" | "rate_limited" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused" | "service_unavailable" | "internal_error";
|
|
897
896
|
message: string;
|
|
@@ -908,6 +907,7 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
908
907
|
status?: number | undefined;
|
|
909
908
|
} | undefined;
|
|
910
909
|
};
|
|
910
|
+
sequence: number;
|
|
911
911
|
}>, z.ZodObject<{
|
|
912
912
|
/** See `version.ts`: each stream event is a whole message on the wire. */
|
|
913
913
|
schemaVersion: z.ZodLiteral<1>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "OxyHQ API contracts — single source of truth for request/response Zod schemas and inferred types, shared by the backend and the client SDKs",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|