@oxy.so/contracts 1.0.0 → 1.1.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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/agency.js +7 -1
- package/dist/cjs/externalIdentity.js +52 -0
- package/dist/cjs/identity.js +20 -1
- package/dist/cjs/index.js +38 -15
- package/dist/cjs/inference/embeddings.js +19 -0
- package/dist/cjs/oauth.js +50 -1
- package/dist/cjs/webauthn.js +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/agency.js +6 -0
- package/dist/esm/externalIdentity.js +49 -0
- package/dist/esm/identity.js +19 -0
- package/dist/esm/index.js +5 -6
- package/dist/esm/inference/embeddings.js +16 -0
- package/dist/esm/oauth.js +49 -0
- package/dist/esm/webauthn.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/agency.d.ts +61 -24
- package/dist/types/externalIdentity.d.ts +536 -0
- package/dist/types/identity.d.ts +38 -0
- package/dist/types/index.d.ts +9 -8
- 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 +32 -32
- package/dist/types/inference/streamEvents.d.ts +4 -4
- package/dist/types/keyRecovery.d.ts +4 -4
- package/dist/types/oauth.d.ts +891 -0
- package/dist/types/userResponse.d.ts +2 -2
- package/dist/types/webauthn.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/links.js +0 -68
- package/dist/esm/links.js +0 -65
- package/dist/types/links.d.ts +0 -96
|
@@ -2192,6 +2192,13 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2192
2192
|
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
2193
2193
|
generationId?: string | undefined;
|
|
2194
2194
|
};
|
|
2195
|
+
client: {
|
|
2196
|
+
receivedAt: string;
|
|
2197
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2198
|
+
endpoint: string;
|
|
2199
|
+
clientRequestId?: string | undefined;
|
|
2200
|
+
labels?: Record<string, string> | undefined;
|
|
2201
|
+
};
|
|
2195
2202
|
target: {
|
|
2196
2203
|
kind: "model";
|
|
2197
2204
|
modelReference: string;
|
|
@@ -2199,7 +2206,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2199
2206
|
kind: "routing_profile_id";
|
|
2200
2207
|
routingProfileId: string;
|
|
2201
2208
|
};
|
|
2202
|
-
modality: "image" | "
|
|
2209
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2203
2210
|
input: {
|
|
2204
2211
|
format: "messages";
|
|
2205
2212
|
messages: {
|
|
@@ -2268,13 +2275,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2268
2275
|
presencePenalty?: number | undefined;
|
|
2269
2276
|
stopSequences?: string[] | undefined;
|
|
2270
2277
|
};
|
|
2271
|
-
client: {
|
|
2272
|
-
receivedAt: string;
|
|
2273
|
-
apiFormat: "embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2274
|
-
endpoint: string;
|
|
2275
|
-
clientRequestId?: string | undefined;
|
|
2276
|
-
labels?: Record<string, string> | undefined;
|
|
2277
|
-
};
|
|
2278
2278
|
routingPolicy: {
|
|
2279
2279
|
routingPolicyId: string;
|
|
2280
2280
|
policyVersion: number;
|
|
@@ -2339,6 +2339,13 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2339
2339
|
userId?: string | undefined;
|
|
2340
2340
|
generationId?: string | undefined;
|
|
2341
2341
|
};
|
|
2342
|
+
client: {
|
|
2343
|
+
receivedAt: string;
|
|
2344
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2345
|
+
endpoint: string;
|
|
2346
|
+
clientRequestId?: string | undefined;
|
|
2347
|
+
labels?: Record<string, string> | undefined;
|
|
2348
|
+
};
|
|
2342
2349
|
target: {
|
|
2343
2350
|
kind: "model";
|
|
2344
2351
|
modelReference: string;
|
|
@@ -2346,7 +2353,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2346
2353
|
kind: "routing_profile_id";
|
|
2347
2354
|
routingProfileId: string;
|
|
2348
2355
|
};
|
|
2349
|
-
modality: "image" | "
|
|
2356
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2350
2357
|
input: {
|
|
2351
2358
|
format: "messages";
|
|
2352
2359
|
messages: {
|
|
@@ -2415,13 +2422,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2415
2422
|
presencePenalty?: number | undefined;
|
|
2416
2423
|
stopSequences?: string[] | undefined;
|
|
2417
2424
|
};
|
|
2418
|
-
client: {
|
|
2419
|
-
receivedAt: string;
|
|
2420
|
-
apiFormat: "embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2421
|
-
endpoint: string;
|
|
2422
|
-
clientRequestId?: string | undefined;
|
|
2423
|
-
labels?: Record<string, string> | undefined;
|
|
2424
|
-
};
|
|
2425
2425
|
routingPolicy: {
|
|
2426
2426
|
routingPolicyId: string;
|
|
2427
2427
|
policyVersion: number;
|
|
@@ -2500,6 +2500,13 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2500
2500
|
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
2501
2501
|
generationId?: string | undefined;
|
|
2502
2502
|
};
|
|
2503
|
+
client: {
|
|
2504
|
+
receivedAt: string;
|
|
2505
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2506
|
+
endpoint: string;
|
|
2507
|
+
clientRequestId?: string | undefined;
|
|
2508
|
+
labels?: Record<string, string> | undefined;
|
|
2509
|
+
};
|
|
2503
2510
|
target: {
|
|
2504
2511
|
kind: "model";
|
|
2505
2512
|
modelReference: string;
|
|
@@ -2507,7 +2514,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2507
2514
|
kind: "routing_profile_id";
|
|
2508
2515
|
routingProfileId: string;
|
|
2509
2516
|
};
|
|
2510
|
-
modality: "image" | "
|
|
2517
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2511
2518
|
input: {
|
|
2512
2519
|
format: "messages";
|
|
2513
2520
|
messages: {
|
|
@@ -2576,13 +2583,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2576
2583
|
presencePenalty?: number | undefined;
|
|
2577
2584
|
stopSequences?: string[] | undefined;
|
|
2578
2585
|
};
|
|
2579
|
-
client: {
|
|
2580
|
-
receivedAt: string;
|
|
2581
|
-
apiFormat: "embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2582
|
-
endpoint: string;
|
|
2583
|
-
clientRequestId?: string | undefined;
|
|
2584
|
-
labels?: Record<string, string> | undefined;
|
|
2585
|
-
};
|
|
2586
2586
|
routingPolicy: {
|
|
2587
2587
|
routingPolicyId: string;
|
|
2588
2588
|
policyVersion: number;
|
|
@@ -2647,6 +2647,13 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2647
2647
|
userId?: string | undefined;
|
|
2648
2648
|
generationId?: string | undefined;
|
|
2649
2649
|
};
|
|
2650
|
+
client: {
|
|
2651
|
+
receivedAt: string;
|
|
2652
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2653
|
+
endpoint: string;
|
|
2654
|
+
clientRequestId?: string | undefined;
|
|
2655
|
+
labels?: Record<string, string> | undefined;
|
|
2656
|
+
};
|
|
2650
2657
|
target: {
|
|
2651
2658
|
kind: "model";
|
|
2652
2659
|
modelReference: string;
|
|
@@ -2654,7 +2661,7 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2654
2661
|
kind: "routing_profile_id";
|
|
2655
2662
|
routingProfileId: string;
|
|
2656
2663
|
};
|
|
2657
|
-
modality: "image" | "
|
|
2664
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2658
2665
|
input: {
|
|
2659
2666
|
format: "messages";
|
|
2660
2667
|
messages: {
|
|
@@ -2723,13 +2730,6 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2723
2730
|
presencePenalty?: number | undefined;
|
|
2724
2731
|
stopSequences?: string[] | undefined;
|
|
2725
2732
|
};
|
|
2726
|
-
client: {
|
|
2727
|
-
receivedAt: string;
|
|
2728
|
-
apiFormat: "embeddings" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2729
|
-
endpoint: string;
|
|
2730
|
-
clientRequestId?: string | undefined;
|
|
2731
|
-
labels?: Record<string, string> | undefined;
|
|
2732
|
-
};
|
|
2733
2733
|
routingPolicy: {
|
|
2734
2734
|
routingPolicyId: string;
|
|
2735
2735
|
policyVersion: number;
|
|
@@ -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>;
|
|
@@ -59,16 +59,16 @@ export declare const encryptedBackupEnvelopeSchema: z.ZodObject<{
|
|
|
59
59
|
publicKeyHint: z.ZodString;
|
|
60
60
|
createdAt: z.ZodString;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
createdAt: string;
|
|
63
62
|
version: number;
|
|
63
|
+
createdAt: string;
|
|
64
64
|
nonce: string;
|
|
65
65
|
ciphertext: string;
|
|
66
66
|
algorithm: "xchacha20poly1305";
|
|
67
67
|
kdfInfo: string;
|
|
68
68
|
publicKeyHint: string;
|
|
69
69
|
}, {
|
|
70
|
-
createdAt: string;
|
|
71
70
|
version: number;
|
|
71
|
+
createdAt: string;
|
|
72
72
|
nonce: string;
|
|
73
73
|
ciphertext: string;
|
|
74
74
|
algorithm: "xchacha20poly1305";
|
|
@@ -98,8 +98,8 @@ export declare const backupUploadRequestSchema: z.ZodObject<{
|
|
|
98
98
|
*/
|
|
99
99
|
lookupId: z.ZodString;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
createdAt: string;
|
|
102
101
|
version: number;
|
|
102
|
+
createdAt: string;
|
|
103
103
|
nonce: string;
|
|
104
104
|
ciphertext: string;
|
|
105
105
|
algorithm: "xchacha20poly1305";
|
|
@@ -107,8 +107,8 @@ export declare const backupUploadRequestSchema: z.ZodObject<{
|
|
|
107
107
|
publicKeyHint: string;
|
|
108
108
|
lookupId: string;
|
|
109
109
|
}, {
|
|
110
|
-
createdAt: string;
|
|
111
110
|
version: number;
|
|
111
|
+
createdAt: string;
|
|
112
112
|
nonce: string;
|
|
113
113
|
ciphertext: string;
|
|
114
114
|
algorithm: "xchacha20poly1305";
|