@oxy.so/contracts 4.14.0 → 4.16.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/index.js +15 -9
- package/dist/cjs/inference/money.js +10 -0
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/signIn.js +40 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/inference/money.js +10 -0
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/signIn.js +38 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +22 -22
- package/dist/types/accountSubject.d.ts +4 -4
- package/dist/types/agency.d.ts +86 -86
- package/dist/types/deviceDirectory.d.ts +180 -180
- package/dist/types/email/messages.d.ts +78 -78
- package/dist/types/externalIdentity.d.ts +59 -59
- package/dist/types/index.d.ts +2 -2
- package/dist/types/inference/accountBilling.d.ts +36 -36
- package/dist/types/inference/catalogue.d.ts +19 -19
- package/dist/types/inference/decisions.d.ts +47 -47
- package/dist/types/inference/economics.d.ts +11 -11
- package/dist/types/inference/embeddings.d.ts +18 -18
- package/dist/types/inference/entitlement.d.ts +12 -12
- package/dist/types/inference/errors.d.ts +4 -4
- package/dist/types/inference/inbox.d.ts +17 -17
- package/dist/types/inference/money.d.ts +17 -8
- package/dist/types/inference/priceVersion.d.ts +20 -20
- package/dist/types/inference/privateAutoExecution.d.ts +12 -12
- package/dist/types/inference/providerConnection.d.ts +24 -24
- package/dist/types/inference/realtime.d.ts +50 -50
- package/dist/types/inference/request.d.ts +26 -26
- package/dist/types/inference/routingPolicy.d.ts +11 -11
- package/dist/types/inference/scopedExecution.d.ts +8 -8
- package/dist/types/inference/streamEvents.d.ts +30 -30
- package/dist/types/inference/usage.d.ts +36 -36
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/keyRecovery.d.ts +4 -4
- package/dist/types/linkedAccounts.d.ts +16 -16
- package/dist/types/notifications.d.ts +4 -4
- package/dist/types/oauth.d.ts +40 -40
- package/dist/types/products/access.d.ts +18 -18
- package/dist/types/products/billing.d.ts +24 -24
- package/dist/types/products/plans.d.ts +6 -6
- package/dist/types/recommendations.d.ts +30 -30
- package/dist/types/safety.d.ts +2 -2
- package/dist/types/sessionStatus.d.ts +6 -6
- package/dist/types/signIn.d.ts +82 -1
- package/dist/types/stickers.d.ts +32 -32
- package/dist/types/userResponse.d.ts +108 -108
- package/package.json +1 -1
|
@@ -138,7 +138,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
138
138
|
message?: string | undefined;
|
|
139
139
|
}>>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
code: "cancelled" | "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" | "
|
|
141
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
142
142
|
message: string;
|
|
143
143
|
schemaVersion: 1;
|
|
144
144
|
requestId: string;
|
|
@@ -153,7 +153,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
153
153
|
message?: string | undefined;
|
|
154
154
|
} | undefined;
|
|
155
155
|
}, {
|
|
156
|
-
code: "cancelled" | "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" | "
|
|
156
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
157
157
|
message: string;
|
|
158
158
|
schemaVersion: 1;
|
|
159
159
|
requestId: string;
|
|
@@ -168,7 +168,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
168
168
|
message?: string | undefined;
|
|
169
169
|
} | undefined;
|
|
170
170
|
}>, {
|
|
171
|
-
code: "cancelled" | "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" | "
|
|
171
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
172
172
|
message: string;
|
|
173
173
|
schemaVersion: 1;
|
|
174
174
|
requestId: string;
|
|
@@ -183,7 +183,7 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
183
183
|
message?: string | undefined;
|
|
184
184
|
} | undefined;
|
|
185
185
|
}, {
|
|
186
|
-
code: "cancelled" | "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" | "
|
|
186
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
187
187
|
message: string;
|
|
188
188
|
schemaVersion: 1;
|
|
189
189
|
requestId: string;
|
|
@@ -199,10 +199,8 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
199
199
|
} | undefined;
|
|
200
200
|
}>;
|
|
201
201
|
}, "strict", z.ZodTypeAny, {
|
|
202
|
-
schemaVersion: 1;
|
|
203
|
-
requestId: string;
|
|
204
202
|
error: {
|
|
205
|
-
code: "cancelled" | "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" | "
|
|
203
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
206
204
|
message: string;
|
|
207
205
|
schemaVersion: 1;
|
|
208
206
|
requestId: string;
|
|
@@ -217,11 +215,11 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
217
215
|
message?: string | undefined;
|
|
218
216
|
} | undefined;
|
|
219
217
|
};
|
|
220
|
-
}, {
|
|
221
218
|
schemaVersion: 1;
|
|
222
219
|
requestId: string;
|
|
220
|
+
}, {
|
|
223
221
|
error: {
|
|
224
|
-
code: "cancelled" | "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" | "
|
|
222
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
225
223
|
message: string;
|
|
226
224
|
schemaVersion: 1;
|
|
227
225
|
requestId: string;
|
|
@@ -236,6 +234,8 @@ export declare const embeddingFailureSchema: z.ZodObject<{
|
|
|
236
234
|
message?: string | undefined;
|
|
237
235
|
} | undefined;
|
|
238
236
|
};
|
|
237
|
+
schemaVersion: 1;
|
|
238
|
+
requestId: string;
|
|
239
239
|
}>;
|
|
240
240
|
export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
241
241
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -349,7 +349,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
349
349
|
message?: string | undefined;
|
|
350
350
|
}>>;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
code: "cancelled" | "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" | "
|
|
352
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
353
353
|
message: string;
|
|
354
354
|
schemaVersion: 1;
|
|
355
355
|
requestId: string;
|
|
@@ -364,7 +364,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
364
364
|
message?: string | undefined;
|
|
365
365
|
} | undefined;
|
|
366
366
|
}, {
|
|
367
|
-
code: "cancelled" | "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" | "
|
|
367
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
368
368
|
message: string;
|
|
369
369
|
schemaVersion: 1;
|
|
370
370
|
requestId: string;
|
|
@@ -379,7 +379,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
379
379
|
message?: string | undefined;
|
|
380
380
|
} | undefined;
|
|
381
381
|
}>, {
|
|
382
|
-
code: "cancelled" | "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" | "
|
|
382
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
383
383
|
message: string;
|
|
384
384
|
schemaVersion: 1;
|
|
385
385
|
requestId: string;
|
|
@@ -394,7 +394,7 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
394
394
|
message?: string | undefined;
|
|
395
395
|
} | undefined;
|
|
396
396
|
}, {
|
|
397
|
-
code: "cancelled" | "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" | "
|
|
397
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
398
398
|
message: string;
|
|
399
399
|
schemaVersion: 1;
|
|
400
400
|
requestId: string;
|
|
@@ -410,10 +410,8 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
410
410
|
} | undefined;
|
|
411
411
|
}>;
|
|
412
412
|
}, "strict", z.ZodTypeAny, {
|
|
413
|
-
schemaVersion: 1;
|
|
414
|
-
requestId: string;
|
|
415
413
|
error: {
|
|
416
|
-
code: "cancelled" | "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" | "
|
|
414
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
417
415
|
message: string;
|
|
418
416
|
schemaVersion: 1;
|
|
419
417
|
requestId: string;
|
|
@@ -428,11 +426,11 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
428
426
|
message?: string | undefined;
|
|
429
427
|
} | undefined;
|
|
430
428
|
};
|
|
431
|
-
}, {
|
|
432
429
|
schemaVersion: 1;
|
|
433
430
|
requestId: string;
|
|
431
|
+
}, {
|
|
434
432
|
error: {
|
|
435
|
-
code: "cancelled" | "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" | "
|
|
433
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
436
434
|
message: string;
|
|
437
435
|
schemaVersion: 1;
|
|
438
436
|
requestId: string;
|
|
@@ -447,6 +445,8 @@ export declare const embeddingResponseSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
447
445
|
message?: string | undefined;
|
|
448
446
|
} | undefined;
|
|
449
447
|
};
|
|
448
|
+
schemaVersion: 1;
|
|
449
|
+
requestId: string;
|
|
450
450
|
}>]>;
|
|
451
451
|
export type EmbeddingVector = z.infer<typeof embeddingVectorSchema>;
|
|
452
452
|
export type EmbeddingUsage = z.infer<typeof embeddingUsageSchema>;
|
|
@@ -198,18 +198,18 @@ export declare const costCenterSchema: z.ZodObject<{
|
|
|
198
198
|
updatedAt: z.ZodString;
|
|
199
199
|
}, "strict", z.ZodTypeAny, {
|
|
200
200
|
status: "active" | "retired";
|
|
201
|
-
schemaVersion: 1;
|
|
202
201
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
203
202
|
createdAt: string;
|
|
204
203
|
updatedAt: string;
|
|
204
|
+
schemaVersion: 1;
|
|
205
205
|
label: string;
|
|
206
206
|
slug: string;
|
|
207
207
|
}, {
|
|
208
208
|
status: "active" | "retired";
|
|
209
|
-
schemaVersion: 1;
|
|
210
209
|
accountId: string;
|
|
211
210
|
createdAt: string;
|
|
212
211
|
updatedAt: string;
|
|
212
|
+
schemaVersion: 1;
|
|
213
213
|
label: string;
|
|
214
214
|
slug: string;
|
|
215
215
|
}>;
|
|
@@ -234,18 +234,18 @@ export declare const costCenterSpendSchema: z.ZodObject<{
|
|
|
234
234
|
updatedAt: z.ZodString;
|
|
235
235
|
}, "strict", z.ZodTypeAny, {
|
|
236
236
|
status: "active" | "retired";
|
|
237
|
-
schemaVersion: 1;
|
|
238
237
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
239
238
|
createdAt: string;
|
|
240
239
|
updatedAt: string;
|
|
240
|
+
schemaVersion: 1;
|
|
241
241
|
label: string;
|
|
242
242
|
slug: string;
|
|
243
243
|
}, {
|
|
244
244
|
status: "active" | "retired";
|
|
245
|
-
schemaVersion: 1;
|
|
246
245
|
accountId: string;
|
|
247
246
|
createdAt: string;
|
|
248
247
|
updatedAt: string;
|
|
248
|
+
schemaVersion: 1;
|
|
249
249
|
label: string;
|
|
250
250
|
slug: string;
|
|
251
251
|
}>;
|
|
@@ -262,10 +262,10 @@ export declare const costCenterSpendSchema: z.ZodObject<{
|
|
|
262
262
|
periodStart: string;
|
|
263
263
|
costCenter: {
|
|
264
264
|
status: "active" | "retired";
|
|
265
|
-
schemaVersion: 1;
|
|
266
265
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
267
266
|
createdAt: string;
|
|
268
267
|
updatedAt: string;
|
|
268
|
+
schemaVersion: 1;
|
|
269
269
|
label: string;
|
|
270
270
|
slug: string;
|
|
271
271
|
};
|
|
@@ -278,10 +278,10 @@ export declare const costCenterSpendSchema: z.ZodObject<{
|
|
|
278
278
|
periodStart: string;
|
|
279
279
|
costCenter: {
|
|
280
280
|
status: "active" | "retired";
|
|
281
|
-
schemaVersion: 1;
|
|
282
281
|
accountId: string;
|
|
283
282
|
createdAt: string;
|
|
284
283
|
updatedAt: string;
|
|
284
|
+
schemaVersion: 1;
|
|
285
285
|
label: string;
|
|
286
286
|
slug: string;
|
|
287
287
|
};
|
|
@@ -409,24 +409,25 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
409
409
|
updatedAt: z.ZodString;
|
|
410
410
|
}, "strict", z.ZodTypeAny, {
|
|
411
411
|
status: "active" | "retired";
|
|
412
|
-
schemaVersion: 1;
|
|
413
412
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
414
413
|
createdAt: string;
|
|
415
414
|
updatedAt: string;
|
|
415
|
+
schemaVersion: 1;
|
|
416
416
|
label: string;
|
|
417
417
|
slug: string;
|
|
418
418
|
}, {
|
|
419
419
|
status: "active" | "retired";
|
|
420
|
-
schemaVersion: 1;
|
|
421
420
|
accountId: string;
|
|
422
421
|
createdAt: string;
|
|
423
422
|
updatedAt: string;
|
|
423
|
+
schemaVersion: 1;
|
|
424
424
|
label: string;
|
|
425
425
|
slug: string;
|
|
426
426
|
}>>;
|
|
427
427
|
/** When this view was computed. Entitlements are eventually consistent. */
|
|
428
428
|
resolvedAt: z.ZodString;
|
|
429
429
|
}, "strict", z.ZodTypeAny, {
|
|
430
|
+
accountId: string & z.BRAND<"OxyAccountId">;
|
|
430
431
|
plan: {
|
|
431
432
|
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
432
433
|
name: string;
|
|
@@ -442,7 +443,6 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
442
443
|
}[];
|
|
443
444
|
} | null;
|
|
444
445
|
schemaVersion: 1;
|
|
445
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
446
446
|
allowances: {
|
|
447
447
|
key: string;
|
|
448
448
|
included: number;
|
|
@@ -450,10 +450,10 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
450
450
|
}[];
|
|
451
451
|
costCenter: {
|
|
452
452
|
status: "active" | "retired";
|
|
453
|
-
schemaVersion: 1;
|
|
454
453
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
455
454
|
createdAt: string;
|
|
456
455
|
updatedAt: string;
|
|
456
|
+
schemaVersion: 1;
|
|
457
457
|
label: string;
|
|
458
458
|
slug: string;
|
|
459
459
|
} | null;
|
|
@@ -468,6 +468,7 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
468
468
|
} | null;
|
|
469
469
|
resolvedAt: string;
|
|
470
470
|
}, {
|
|
471
|
+
accountId: string;
|
|
471
472
|
plan: {
|
|
472
473
|
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
473
474
|
name: string;
|
|
@@ -483,7 +484,6 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
483
484
|
}[];
|
|
484
485
|
} | null;
|
|
485
486
|
schemaVersion: 1;
|
|
486
|
-
accountId: string;
|
|
487
487
|
allowances: {
|
|
488
488
|
key: string;
|
|
489
489
|
included: number;
|
|
@@ -491,10 +491,10 @@ export declare const productEntitlementSchema: z.ZodObject<{
|
|
|
491
491
|
}[];
|
|
492
492
|
costCenter: {
|
|
493
493
|
status: "active" | "retired";
|
|
494
|
-
schemaVersion: 1;
|
|
495
494
|
accountId: string;
|
|
496
495
|
createdAt: string;
|
|
497
496
|
updatedAt: string;
|
|
497
|
+
schemaVersion: 1;
|
|
498
498
|
label: string;
|
|
499
499
|
slug: string;
|
|
500
500
|
} | null;
|
|
@@ -176,7 +176,7 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
176
176
|
message?: string | undefined;
|
|
177
177
|
}>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
code: "cancelled" | "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" | "
|
|
179
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
180
180
|
message: string;
|
|
181
181
|
schemaVersion: 1;
|
|
182
182
|
requestId: string;
|
|
@@ -191,7 +191,7 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
191
191
|
message?: string | undefined;
|
|
192
192
|
} | undefined;
|
|
193
193
|
}, {
|
|
194
|
-
code: "cancelled" | "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" | "
|
|
194
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
195
195
|
message: string;
|
|
196
196
|
schemaVersion: 1;
|
|
197
197
|
requestId: string;
|
|
@@ -206,7 +206,7 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
206
206
|
message?: string | undefined;
|
|
207
207
|
} | undefined;
|
|
208
208
|
}>, {
|
|
209
|
-
code: "cancelled" | "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" | "
|
|
209
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
210
210
|
message: string;
|
|
211
211
|
schemaVersion: 1;
|
|
212
212
|
requestId: string;
|
|
@@ -221,7 +221,7 @@ export declare const inferenceErrorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
221
221
|
message?: string | undefined;
|
|
222
222
|
} | undefined;
|
|
223
223
|
}, {
|
|
224
|
-
code: "cancelled" | "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" | "
|
|
224
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
225
225
|
message: string;
|
|
226
226
|
schemaVersion: 1;
|
|
227
227
|
requestId: string;
|
|
@@ -253,15 +253,6 @@ export declare const inboxDailyBriefResponseSchema: z.ZodObject<{
|
|
|
253
253
|
hasAttachments: boolean;
|
|
254
254
|
}>, "many">;
|
|
255
255
|
}, "strict", z.ZodTypeAny, {
|
|
256
|
-
schemaVersion: 1;
|
|
257
|
-
requestId: string;
|
|
258
|
-
summary: string;
|
|
259
|
-
counts: {
|
|
260
|
-
received: number;
|
|
261
|
-
starred: number;
|
|
262
|
-
unread: number;
|
|
263
|
-
earlierUnread: number;
|
|
264
|
-
};
|
|
265
256
|
items: {
|
|
266
257
|
subject: string;
|
|
267
258
|
messageId: string;
|
|
@@ -275,8 +266,6 @@ export declare const inboxDailyBriefResponseSchema: z.ZodObject<{
|
|
|
275
266
|
note: string;
|
|
276
267
|
hasAttachments: boolean;
|
|
277
268
|
}[];
|
|
278
|
-
generationId?: string | undefined;
|
|
279
|
-
}, {
|
|
280
269
|
schemaVersion: 1;
|
|
281
270
|
requestId: string;
|
|
282
271
|
summary: string;
|
|
@@ -286,6 +275,8 @@ export declare const inboxDailyBriefResponseSchema: z.ZodObject<{
|
|
|
286
275
|
unread: number;
|
|
287
276
|
earlierUnread: number;
|
|
288
277
|
};
|
|
278
|
+
generationId?: string | undefined;
|
|
279
|
+
}, {
|
|
289
280
|
items: {
|
|
290
281
|
subject: string;
|
|
291
282
|
messageId: string;
|
|
@@ -299,6 +290,15 @@ export declare const inboxDailyBriefResponseSchema: z.ZodObject<{
|
|
|
299
290
|
note: string;
|
|
300
291
|
hasAttachments: boolean;
|
|
301
292
|
}[];
|
|
293
|
+
schemaVersion: 1;
|
|
294
|
+
requestId: string;
|
|
295
|
+
summary: string;
|
|
296
|
+
counts: {
|
|
297
|
+
received: number;
|
|
298
|
+
starred: number;
|
|
299
|
+
unread: number;
|
|
300
|
+
earlierUnread: number;
|
|
301
|
+
};
|
|
302
302
|
generationId?: string | undefined;
|
|
303
303
|
}>;
|
|
304
304
|
export declare const inboxSmartRepliesResponseSchema: z.ZodObject<{
|
|
@@ -390,7 +390,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
390
390
|
message?: string | undefined;
|
|
391
391
|
}>>;
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
393
|
-
code: "cancelled" | "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" | "
|
|
393
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
394
394
|
message: string;
|
|
395
395
|
schemaVersion: 1;
|
|
396
396
|
requestId: string;
|
|
@@ -405,7 +405,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
405
405
|
message?: string | undefined;
|
|
406
406
|
} | undefined;
|
|
407
407
|
}, {
|
|
408
|
-
code: "cancelled" | "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" | "
|
|
408
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
409
409
|
message: string;
|
|
410
410
|
schemaVersion: 1;
|
|
411
411
|
requestId: string;
|
|
@@ -420,7 +420,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
420
420
|
message?: string | undefined;
|
|
421
421
|
} | undefined;
|
|
422
422
|
}>, {
|
|
423
|
-
code: "cancelled" | "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" | "
|
|
423
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
424
424
|
message: string;
|
|
425
425
|
schemaVersion: 1;
|
|
426
426
|
requestId: string;
|
|
@@ -435,7 +435,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
435
435
|
message?: string | undefined;
|
|
436
436
|
} | undefined;
|
|
437
437
|
}, {
|
|
438
|
-
code: "cancelled" | "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" | "
|
|
438
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
439
439
|
message: string;
|
|
440
440
|
schemaVersion: 1;
|
|
441
441
|
requestId: string;
|
|
@@ -453,7 +453,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
453
453
|
}, "strict", z.ZodTypeAny, {
|
|
454
454
|
type: "error";
|
|
455
455
|
error: {
|
|
456
|
-
code: "cancelled" | "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" | "
|
|
456
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
457
457
|
message: string;
|
|
458
458
|
schemaVersion: 1;
|
|
459
459
|
requestId: string;
|
|
@@ -471,7 +471,7 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
|
|
|
471
471
|
}, {
|
|
472
472
|
type: "error";
|
|
473
473
|
error: {
|
|
474
|
-
code: "cancelled" | "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" | "
|
|
474
|
+
code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "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" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
|
|
475
475
|
message: string;
|
|
476
476
|
schemaVersion: 1;
|
|
477
477
|
requestId: string;
|
|
@@ -137,6 +137,15 @@ export declare const moneySchema: z.ZodObject<{
|
|
|
137
137
|
* estimated from the audio, and a provider billed by the audio it carries (or
|
|
138
138
|
* by tokens) never reports it.
|
|
139
139
|
*
|
|
140
|
+
* **`input_transcription_milliseconds` is a second model's reading** (added in
|
|
141
|
+
* contract set 3.9.0, mirroring `@kaana.ai/contracts` 4.1.0): milliseconds of a
|
|
142
|
+
* realtime session's input audio that the deployment's own TRANSCRIPTION model
|
|
143
|
+
* transcribed, when the provider bills that model apart from the session model
|
|
144
|
+
* (OpenAI bills input transcription at the ASR model's price). The session
|
|
145
|
+
* model's `audio_input_tokens` and this unit are two charges for two models,
|
|
146
|
+
* each read once, so the partition rule holds. A provider whose session price
|
|
147
|
+
* already includes the transcription (xAI's Voice Agent) never reports it.
|
|
148
|
+
*
|
|
140
149
|
* No refinement in this package can enforce it, and saying so is part of the
|
|
141
150
|
* rule: a nested report and a disjoint one are the same four non-negative
|
|
142
151
|
* integers, so no predicate over a single report can tell them apart. The two
|
|
@@ -158,20 +167,20 @@ export declare const moneySchema: z.ZodObject<{
|
|
|
158
167
|
* and the "units are integers" rule holds for every modality instead of holding
|
|
159
168
|
* for tokens and being quietly broken by audio.
|
|
160
169
|
*/
|
|
161
|
-
export declare const USAGE_UNITS: readonly ["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds"];
|
|
162
|
-
export declare const usageUnitSchema: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds"]>;
|
|
170
|
+
export declare const USAGE_UNITS: readonly ["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds", "input_transcription_milliseconds"];
|
|
171
|
+
export declare const usageUnitSchema: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds", "input_transcription_milliseconds"]>;
|
|
163
172
|
/**
|
|
164
173
|
* A metered quantity of ONE unit. Never money — a quantity carries no price and
|
|
165
174
|
* no currency, so a consumer cannot mistake a token count for an amount owed.
|
|
166
175
|
*/
|
|
167
176
|
export declare const usageQuantitySchema: z.ZodObject<{
|
|
168
|
-
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds"]>;
|
|
177
|
+
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds", "input_transcription_milliseconds"]>;
|
|
169
178
|
quantity: z.ZodNumber;
|
|
170
179
|
}, "strict", z.ZodTypeAny, {
|
|
171
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
180
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
172
181
|
quantity: number;
|
|
173
182
|
}, {
|
|
174
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
183
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
175
184
|
quantity: number;
|
|
176
185
|
}>;
|
|
177
186
|
/**
|
|
@@ -193,19 +202,19 @@ export declare const usageSourceSchema: z.ZodEnum<["provider_reported", "oxy_mea
|
|
|
193
202
|
* every customer reads it).
|
|
194
203
|
*/
|
|
195
204
|
export declare const unitPriceSchema: z.ZodObject<{
|
|
196
|
-
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds"]>;
|
|
205
|
+
unit: z.ZodEnum<["input_tokens", "cached_input_tokens", "output_tokens", "reasoning_tokens", "requests", "images", "audio_input_milliseconds", "audio_output_milliseconds", "video_milliseconds", "characters", "embeddings", "audio_input_tokens", "cached_audio_input_tokens", "audio_output_tokens", "session_milliseconds", "input_transcription_milliseconds"]>;
|
|
197
206
|
amount: z.ZodBranded<z.ZodString, "ExactDecimal">;
|
|
198
207
|
per: z.ZodNumber;
|
|
199
208
|
currency: z.ZodString;
|
|
200
209
|
}, "strict", z.ZodTypeAny, {
|
|
201
210
|
currency: string;
|
|
202
211
|
amount: string & z.BRAND<"ExactDecimal">;
|
|
203
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
212
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
204
213
|
per: number;
|
|
205
214
|
}, {
|
|
206
215
|
currency: string;
|
|
207
216
|
amount: string;
|
|
208
|
-
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds";
|
|
217
|
+
unit: "input_tokens" | "cached_input_tokens" | "output_tokens" | "reasoning_tokens" | "requests" | "images" | "audio_input_milliseconds" | "audio_output_milliseconds" | "video_milliseconds" | "characters" | "embeddings" | "audio_input_tokens" | "cached_audio_input_tokens" | "audio_output_tokens" | "session_milliseconds" | "input_transcription_milliseconds";
|
|
209
218
|
per: number;
|
|
210
219
|
}>;
|
|
211
220
|
export type CurrencyCode = z.infer<typeof currencyCodeSchema>;
|