@oxy.so/contracts 4.11.0-oxy-one.0 → 4.12.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/accountGraph.js +5 -3
- package/dist/cjs/agency.js +178 -96
- package/dist/cjs/agentKeys.js +80 -26
- package/dist/cjs/capabilityBindings.js +2 -2
- package/dist/cjs/capabilityInvocation.js +3 -1
- package/dist/cjs/commonsSignIn.js +2 -2
- package/dist/cjs/deviceSession.js +5 -1
- package/dist/cjs/email/messages.js +70 -4
- package/dist/cjs/emailAgentContext.js +16 -8
- package/dist/cjs/externalIdentity.js +30 -12
- package/dist/cjs/identity.js +14 -6
- package/dist/cjs/identityLink.js +7 -2
- package/dist/cjs/identityProof.js +2 -1
- package/dist/cjs/index.js +12 -8
- package/dist/cjs/inference/catalogue.js +2 -12
- package/dist/cjs/inference/decisions.js +102 -83
- package/dist/cjs/inference/economics.js +15 -5
- package/dist/cjs/inference/embeddings.js +44 -6
- package/dist/cjs/inference/identifiers.js +14 -1
- package/dist/cjs/inference/inbox.js +33 -2
- package/dist/cjs/inference/providerConnection.js +21 -6
- package/dist/cjs/inference/realtime.js +114 -107
- package/dist/cjs/inference/routingPolicy.js +17 -0
- package/dist/cjs/inference/scopedExecution.js +12 -12
- package/dist/cjs/inference/usage.js +10 -9
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/notifications.js +25 -5
- package/dist/cjs/oauth.js +30 -14
- package/dist/cjs/oxyRecordTypes.js +2 -2
- package/dist/cjs/products/access.js +146 -57
- package/dist/cjs/products/billing.js +71 -17
- package/dist/cjs/products/checkout.js +24 -6
- package/dist/cjs/products/plans.js +22 -7
- package/dist/cjs/recommendations.js +4 -6
- package/dist/cjs/reputation.js +3 -6
- package/dist/cjs/sessionStatus.js +1 -6
- package/dist/cjs/signIn.js +17 -4
- package/dist/cjs/transparency.js +3 -1
- package/dist/cjs/updates.js +2 -4
- package/dist/cjs/userResponse.js +27 -7
- package/dist/cjs/username.js +3 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +5 -3
- package/dist/esm/agency.js +178 -96
- package/dist/esm/agentKeys.js +80 -26
- package/dist/esm/capabilityBindings.js +2 -2
- package/dist/esm/capabilityInvocation.js +3 -1
- package/dist/esm/commonsSignIn.js +2 -2
- package/dist/esm/deviceSession.js +5 -1
- package/dist/esm/email/messages.js +69 -3
- package/dist/esm/emailAgentContext.js +16 -8
- package/dist/esm/externalIdentity.js +30 -12
- package/dist/esm/identity.js +14 -6
- package/dist/esm/identityLink.js +7 -2
- package/dist/esm/identityProof.js +2 -1
- package/dist/esm/index.js +10 -8
- package/dist/esm/inference/aliaModelRelease.js +1 -1
- package/dist/esm/inference/catalogue.js +3 -13
- package/dist/esm/inference/decisions.js +108 -89
- package/dist/esm/inference/economics.js +16 -6
- package/dist/esm/inference/embeddings.js +44 -6
- package/dist/esm/inference/identifiers.js +13 -0
- package/dist/esm/inference/inbox.js +32 -1
- package/dist/esm/inference/providerConnection.js +21 -6
- package/dist/esm/inference/realtime.js +123 -116
- package/dist/esm/inference/routingPolicy.js +18 -1
- package/dist/esm/inference/scopedExecution.js +15 -15
- package/dist/esm/inference/usage.js +11 -10
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/notifications.js +25 -5
- package/dist/esm/oauth.js +30 -14
- package/dist/esm/oxyRecordTypes.js +2 -2
- package/dist/esm/products/access.js +146 -57
- package/dist/esm/products/billing.js +71 -17
- package/dist/esm/products/checkout.js +24 -6
- package/dist/esm/products/plans.js +22 -7
- package/dist/esm/recommendations.js +4 -6
- package/dist/esm/reputation.js +3 -6
- package/dist/esm/sessionStatus.js +1 -6
- package/dist/esm/signIn.js +17 -4
- package/dist/esm/transparency.js +3 -1
- package/dist/esm/updates.js +2 -4
- package/dist/esm/userResponse.js +27 -7
- package/dist/esm/username.js +3 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +1 -1
- package/dist/types/accountSubject.d.ts +4 -4
- package/dist/types/commonsSignIn.d.ts +2 -2
- package/dist/types/email/messages.d.ts +208 -2
- package/dist/types/identity.d.ts +1 -1
- package/dist/types/index.d.ts +10 -10
- package/dist/types/inference/accountBilling.d.ts +2 -2
- package/dist/types/inference/decisions.d.ts +21 -1
- package/dist/types/inference/identifiers.d.ts +14 -0
- package/dist/types/inference/inbox.d.ts +129 -5
- package/dist/types/inference/realtime.d.ts +19 -1
- package/dist/types/inference/request.d.ts +54 -0
- package/dist/types/inference/routingPolicy.d.ts +10 -0
- package/dist/types/inference/scopedExecution.d.ts +1 -1
- package/dist/types/inference/usage.d.ts +12 -0
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/moderationReputation.d.ts +1 -1
- package/dist/types/oxyRecordTypes.d.ts +2 -2
- package/dist/types/products/access.d.ts +102 -102
- package/dist/types/products/checkout.d.ts +3 -3
- package/dist/types/products/plans.d.ts +40 -40
- package/dist/types/reputation.d.ts +4 -4
- package/dist/types/updates.d.ts +1 -1
- package/dist/types/userResponse.d.ts +22 -23
- package/package.json +1 -2
|
@@ -118,7 +118,7 @@ export declare function isOperatorSwitchTargetKind(kind: AccountKind | null | un
|
|
|
118
118
|
* Narrow an unknown value to an {@link AccountKind}.
|
|
119
119
|
*
|
|
120
120
|
* The user-DTO serializers read from structurally-permissive `unknown` sources
|
|
121
|
-
* (a Drizzle row, a
|
|
121
|
+
* (a Drizzle row, a raw document, an already-formatted object), so each one
|
|
122
122
|
* would otherwise hand-roll this check and they would drift on what counts.
|
|
123
123
|
*/
|
|
124
124
|
export declare function isAccountKind(value: unknown): value is AccountKind;
|
|
@@ -166,7 +166,7 @@ export declare const financialEffectAttributionSchema: z.ZodEffects<z.ZodObject<
|
|
|
166
166
|
}>;
|
|
167
167
|
}, "strict", z.ZodTypeAny, {
|
|
168
168
|
schemaVersion: 1;
|
|
169
|
-
direction: "
|
|
169
|
+
direction: "credit" | "debit";
|
|
170
170
|
subjectAccountId: string & z.BRAND<"OxyAccountId">;
|
|
171
171
|
actor: {
|
|
172
172
|
schemaVersion: 1;
|
|
@@ -176,7 +176,7 @@ export declare const financialEffectAttributionSchema: z.ZodEffects<z.ZodObject<
|
|
|
176
176
|
};
|
|
177
177
|
}, {
|
|
178
178
|
schemaVersion: 1;
|
|
179
|
-
direction: "
|
|
179
|
+
direction: "credit" | "debit";
|
|
180
180
|
subjectAccountId: string;
|
|
181
181
|
actor: {
|
|
182
182
|
schemaVersion: 1;
|
|
@@ -186,7 +186,7 @@ export declare const financialEffectAttributionSchema: z.ZodEffects<z.ZodObject<
|
|
|
186
186
|
};
|
|
187
187
|
}>, {
|
|
188
188
|
schemaVersion: 1;
|
|
189
|
-
direction: "
|
|
189
|
+
direction: "credit" | "debit";
|
|
190
190
|
subjectAccountId: string & z.BRAND<"OxyAccountId">;
|
|
191
191
|
actor: {
|
|
192
192
|
schemaVersion: 1;
|
|
@@ -196,7 +196,7 @@ export declare const financialEffectAttributionSchema: z.ZodEffects<z.ZodObject<
|
|
|
196
196
|
};
|
|
197
197
|
}, {
|
|
198
198
|
schemaVersion: 1;
|
|
199
|
-
direction: "
|
|
199
|
+
direction: "credit" | "debit";
|
|
200
200
|
subjectAccountId: string;
|
|
201
201
|
actor: {
|
|
202
202
|
schemaVersion: 1;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
import { z } from 'zod';
|
|
31
31
|
/**
|
|
32
32
|
* The closed set, as a value — consumed directly where a runtime list is
|
|
33
|
-
* required (e.g. the
|
|
34
|
-
* the storage-level guarantee that an unauthenticated caller can never write
|
|
33
|
+
* required (e.g. the `enum` of the `auth_sessions.denied_reason` column, which
|
|
34
|
+
* is the storage-level guarantee that an unauthenticated caller can never write
|
|
35
35
|
* free-form text into the field).
|
|
36
36
|
*/
|
|
37
37
|
export declare const COMMONS_DENY_REASONS: readonly ["declined", "not_me"];
|
|
@@ -35,6 +35,29 @@ export type EmailFilterActionType = (typeof EMAIL_FILTER_ACTION_TYPES)[number];
|
|
|
35
35
|
/** Lifecycle of a durable outbound delivery. */
|
|
36
36
|
export declare const EMAIL_OUTBOX_STATUSES: readonly ["pending", "processing", "sent", "failed", "cancelled"];
|
|
37
37
|
export type EmailOutboxStatus = (typeof EMAIL_OUTBOX_STATUSES)[number];
|
|
38
|
+
/**
|
|
39
|
+
* Where a message the user sent stands, as its Sent copy reports it.
|
|
40
|
+
*
|
|
41
|
+
* A send is filed in Sent the moment the API accepts it and handed to the relay
|
|
42
|
+
* afterwards, so being in Sent no longer means having left. `sent` means the
|
|
43
|
+
* relay took it; `retrying` means an attempt failed and another is scheduled;
|
|
44
|
+
* `failed` means nothing more will happen on its own.
|
|
45
|
+
*/
|
|
46
|
+
export declare const EMAIL_DELIVERY_STATES: readonly ["sending", "retrying", "sent", "failed"];
|
|
47
|
+
export type EmailDeliveryState = (typeof EMAIL_DELIVERY_STATES)[number];
|
|
48
|
+
/**
|
|
49
|
+
* Why a delivery is retrying or failed, in words a client can translate.
|
|
50
|
+
*
|
|
51
|
+
* - `relay_unavailable`: the relay did not answer or answered 4xx (transient).
|
|
52
|
+
* - `relay_unconfigured`: this server has no relay; an operator must fix it.
|
|
53
|
+
* - `relay_auth`: the relay rejected Oxy's credential; an operator must fix it.
|
|
54
|
+
* - `rejected`: the relay refused this message with a 5xx.
|
|
55
|
+
* - `retries_exhausted`: it stayed `relay_unavailable` for the whole budget.
|
|
56
|
+
* - `bounced`: the relay took it, then a recipient's server refused it.
|
|
57
|
+
* - `cancelled`: the sender stopped it.
|
|
58
|
+
*/
|
|
59
|
+
export declare const EMAIL_DELIVERY_ERROR_CODES: readonly ["relay_unavailable", "relay_unconfigured", "relay_auth", "rejected", "retries_exhausted", "bounced", "cancelled"];
|
|
60
|
+
export type EmailDeliveryErrorCode = (typeof EMAIL_DELIVERY_ERROR_CODES)[number];
|
|
38
61
|
/** One addressee. A header without a display name carries `name: ''`. */
|
|
39
62
|
export declare const emailMessageAddressSchema: z.ZodObject<{
|
|
40
63
|
name: z.ZodString;
|
|
@@ -130,6 +153,39 @@ export declare const emailMessageHighlightSchema: z.ZodObject<{
|
|
|
130
153
|
label: string;
|
|
131
154
|
}>;
|
|
132
155
|
export type EmailMessageHighlightWire = z.infer<typeof emailMessageHighlightSchema>;
|
|
156
|
+
/**
|
|
157
|
+
* The delivery of a message the user sent. `error` is the relay's own words;
|
|
158
|
+
* `errorCode` is the same failure in the vocabulary above, and is `null` when
|
|
159
|
+
* there is nothing to explain — or when a newer server names a reason this
|
|
160
|
+
* client does not know yet, which then still reads as a delivery.
|
|
161
|
+
* `nextAttemptAt` is set only while `retrying`.
|
|
162
|
+
*/
|
|
163
|
+
export declare const emailMessageDeliverySchema: z.ZodObject<{
|
|
164
|
+
state: z.ZodEnum<["sending", "retrying", "sent", "failed"]>;
|
|
165
|
+
attempts: z.ZodNumber;
|
|
166
|
+
maxAttempts: z.ZodNumber;
|
|
167
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
168
|
+
error: z.ZodNullable<z.ZodString>;
|
|
169
|
+
errorCode: z.ZodCatch<z.ZodNullable<z.ZodEnum<["relay_unavailable", "relay_unconfigured", "relay_auth", "rejected", "retries_exhausted", "bounced", "cancelled"]>>>;
|
|
170
|
+
updatedAt: z.ZodString;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
updatedAt: string;
|
|
173
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
174
|
+
error: string | null;
|
|
175
|
+
attempts: number;
|
|
176
|
+
maxAttempts: number;
|
|
177
|
+
nextAttemptAt: string | null;
|
|
178
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
179
|
+
}, {
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
182
|
+
error: string | null;
|
|
183
|
+
attempts: number;
|
|
184
|
+
maxAttempts: number;
|
|
185
|
+
nextAttemptAt: string | null;
|
|
186
|
+
errorCode?: unknown;
|
|
187
|
+
}>;
|
|
188
|
+
export type EmailMessageDeliveryWire = z.infer<typeof emailMessageDeliverySchema>;
|
|
133
189
|
/**
|
|
134
190
|
* A stored message as every `/email` read returns it.
|
|
135
191
|
*
|
|
@@ -294,6 +350,36 @@ export declare const emailMessageSchema: z.ZodObject<{
|
|
|
294
350
|
/** Present only on list reads that walked the thread. */
|
|
295
351
|
threadCount: z.ZodOptional<z.ZodNumber>;
|
|
296
352
|
threadParticipants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
353
|
+
/**
|
|
354
|
+
* Present only on a message the user sent through Oxy since delivery was
|
|
355
|
+
* tracked; absent on received mail. A delivery this client cannot read is
|
|
356
|
+
* dropped rather than allowed to drop the message with it.
|
|
357
|
+
*/
|
|
358
|
+
delivery: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
359
|
+
state: z.ZodEnum<["sending", "retrying", "sent", "failed"]>;
|
|
360
|
+
attempts: z.ZodNumber;
|
|
361
|
+
maxAttempts: z.ZodNumber;
|
|
362
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
363
|
+
error: z.ZodNullable<z.ZodString>;
|
|
364
|
+
errorCode: z.ZodCatch<z.ZodNullable<z.ZodEnum<["relay_unavailable", "relay_unconfigured", "relay_auth", "rejected", "retries_exhausted", "bounced", "cancelled"]>>>;
|
|
365
|
+
updatedAt: z.ZodString;
|
|
366
|
+
}, "strip", z.ZodTypeAny, {
|
|
367
|
+
updatedAt: string;
|
|
368
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
369
|
+
error: string | null;
|
|
370
|
+
attempts: number;
|
|
371
|
+
maxAttempts: number;
|
|
372
|
+
nextAttemptAt: string | null;
|
|
373
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
374
|
+
}, {
|
|
375
|
+
updatedAt: string;
|
|
376
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
377
|
+
error: string | null;
|
|
378
|
+
attempts: number;
|
|
379
|
+
maxAttempts: number;
|
|
380
|
+
nextAttemptAt: string | null;
|
|
381
|
+
errorCode?: unknown;
|
|
382
|
+
}>>>;
|
|
297
383
|
}, "strip", z.ZodTypeAny, {
|
|
298
384
|
date: string;
|
|
299
385
|
id: string;
|
|
@@ -373,6 +459,15 @@ export declare const emailMessageSchema: z.ZodObject<{
|
|
|
373
459
|
senderAvatarPath?: string | null | undefined;
|
|
374
460
|
threadCount?: number | undefined;
|
|
375
461
|
threadParticipants?: string[] | undefined;
|
|
462
|
+
delivery?: {
|
|
463
|
+
updatedAt: string;
|
|
464
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
465
|
+
error: string | null;
|
|
466
|
+
attempts: number;
|
|
467
|
+
maxAttempts: number;
|
|
468
|
+
nextAttemptAt: string | null;
|
|
469
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
470
|
+
} | undefined;
|
|
376
471
|
}, {
|
|
377
472
|
date: string;
|
|
378
473
|
id: string;
|
|
@@ -452,6 +547,7 @@ export declare const emailMessageSchema: z.ZodObject<{
|
|
|
452
547
|
senderAvatarPath?: string | null | undefined;
|
|
453
548
|
threadCount?: number | undefined;
|
|
454
549
|
threadParticipants?: string[] | undefined;
|
|
550
|
+
delivery?: unknown;
|
|
455
551
|
}>;
|
|
456
552
|
export type EmailMessageWire = z.infer<typeof emailMessageSchema>;
|
|
457
553
|
export declare const emailMailboxSchema: z.ZodObject<{
|
|
@@ -898,6 +994,36 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
898
994
|
/** Present only on list reads that walked the thread. */
|
|
899
995
|
threadCount: z.ZodOptional<z.ZodNumber>;
|
|
900
996
|
threadParticipants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
997
|
+
/**
|
|
998
|
+
* Present only on a message the user sent through Oxy since delivery was
|
|
999
|
+
* tracked; absent on received mail. A delivery this client cannot read is
|
|
1000
|
+
* dropped rather than allowed to drop the message with it.
|
|
1001
|
+
*/
|
|
1002
|
+
delivery: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
1003
|
+
state: z.ZodEnum<["sending", "retrying", "sent", "failed"]>;
|
|
1004
|
+
attempts: z.ZodNumber;
|
|
1005
|
+
maxAttempts: z.ZodNumber;
|
|
1006
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
1007
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1008
|
+
errorCode: z.ZodCatch<z.ZodNullable<z.ZodEnum<["relay_unavailable", "relay_unconfigured", "relay_auth", "rejected", "retries_exhausted", "bounced", "cancelled"]>>>;
|
|
1009
|
+
updatedAt: z.ZodString;
|
|
1010
|
+
}, "strip", z.ZodTypeAny, {
|
|
1011
|
+
updatedAt: string;
|
|
1012
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1013
|
+
error: string | null;
|
|
1014
|
+
attempts: number;
|
|
1015
|
+
maxAttempts: number;
|
|
1016
|
+
nextAttemptAt: string | null;
|
|
1017
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
1018
|
+
}, {
|
|
1019
|
+
updatedAt: string;
|
|
1020
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1021
|
+
error: string | null;
|
|
1022
|
+
attempts: number;
|
|
1023
|
+
maxAttempts: number;
|
|
1024
|
+
nextAttemptAt: string | null;
|
|
1025
|
+
errorCode?: unknown;
|
|
1026
|
+
}>>>;
|
|
901
1027
|
}, "strip", z.ZodTypeAny, {
|
|
902
1028
|
date: string;
|
|
903
1029
|
id: string;
|
|
@@ -977,6 +1103,15 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
977
1103
|
senderAvatarPath?: string | null | undefined;
|
|
978
1104
|
threadCount?: number | undefined;
|
|
979
1105
|
threadParticipants?: string[] | undefined;
|
|
1106
|
+
delivery?: {
|
|
1107
|
+
updatedAt: string;
|
|
1108
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1109
|
+
error: string | null;
|
|
1110
|
+
attempts: number;
|
|
1111
|
+
maxAttempts: number;
|
|
1112
|
+
nextAttemptAt: string | null;
|
|
1113
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
1114
|
+
} | undefined;
|
|
980
1115
|
}, {
|
|
981
1116
|
date: string;
|
|
982
1117
|
id: string;
|
|
@@ -1056,6 +1191,7 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1056
1191
|
senderAvatarPath?: string | null | undefined;
|
|
1057
1192
|
threadCount?: number | undefined;
|
|
1058
1193
|
threadParticipants?: string[] | undefined;
|
|
1194
|
+
delivery?: unknown;
|
|
1059
1195
|
}>, "many">;
|
|
1060
1196
|
bundles: z.ZodArray<z.ZodObject<{
|
|
1061
1197
|
bundle: z.ZodObject<{
|
|
@@ -1255,6 +1391,36 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1255
1391
|
/** Present only on list reads that walked the thread. */
|
|
1256
1392
|
threadCount: z.ZodOptional<z.ZodNumber>;
|
|
1257
1393
|
threadParticipants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1394
|
+
/**
|
|
1395
|
+
* Present only on a message the user sent through Oxy since delivery was
|
|
1396
|
+
* tracked; absent on received mail. A delivery this client cannot read is
|
|
1397
|
+
* dropped rather than allowed to drop the message with it.
|
|
1398
|
+
*/
|
|
1399
|
+
delivery: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
1400
|
+
state: z.ZodEnum<["sending", "retrying", "sent", "failed"]>;
|
|
1401
|
+
attempts: z.ZodNumber;
|
|
1402
|
+
maxAttempts: z.ZodNumber;
|
|
1403
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
1404
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1405
|
+
errorCode: z.ZodCatch<z.ZodNullable<z.ZodEnum<["relay_unavailable", "relay_unconfigured", "relay_auth", "rejected", "retries_exhausted", "bounced", "cancelled"]>>>;
|
|
1406
|
+
updatedAt: z.ZodString;
|
|
1407
|
+
}, "strip", z.ZodTypeAny, {
|
|
1408
|
+
updatedAt: string;
|
|
1409
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1410
|
+
error: string | null;
|
|
1411
|
+
attempts: number;
|
|
1412
|
+
maxAttempts: number;
|
|
1413
|
+
nextAttemptAt: string | null;
|
|
1414
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
1415
|
+
}, {
|
|
1416
|
+
updatedAt: string;
|
|
1417
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1418
|
+
error: string | null;
|
|
1419
|
+
attempts: number;
|
|
1420
|
+
maxAttempts: number;
|
|
1421
|
+
nextAttemptAt: string | null;
|
|
1422
|
+
errorCode?: unknown;
|
|
1423
|
+
}>>>;
|
|
1258
1424
|
}, "strip", z.ZodTypeAny, {
|
|
1259
1425
|
date: string;
|
|
1260
1426
|
id: string;
|
|
@@ -1334,6 +1500,15 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1334
1500
|
senderAvatarPath?: string | null | undefined;
|
|
1335
1501
|
threadCount?: number | undefined;
|
|
1336
1502
|
threadParticipants?: string[] | undefined;
|
|
1503
|
+
delivery?: {
|
|
1504
|
+
updatedAt: string;
|
|
1505
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1506
|
+
error: string | null;
|
|
1507
|
+
attempts: number;
|
|
1508
|
+
maxAttempts: number;
|
|
1509
|
+
nextAttemptAt: string | null;
|
|
1510
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
1511
|
+
} | undefined;
|
|
1337
1512
|
}, {
|
|
1338
1513
|
date: string;
|
|
1339
1514
|
id: string;
|
|
@@ -1413,6 +1588,7 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1413
1588
|
senderAvatarPath?: string | null | undefined;
|
|
1414
1589
|
threadCount?: number | undefined;
|
|
1415
1590
|
threadParticipants?: string[] | undefined;
|
|
1591
|
+
delivery?: unknown;
|
|
1416
1592
|
}>, "many">;
|
|
1417
1593
|
unreadCount: z.ZodNumber;
|
|
1418
1594
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1495,6 +1671,15 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1495
1671
|
senderAvatarPath?: string | null | undefined;
|
|
1496
1672
|
threadCount?: number | undefined;
|
|
1497
1673
|
threadParticipants?: string[] | undefined;
|
|
1674
|
+
delivery?: {
|
|
1675
|
+
updatedAt: string;
|
|
1676
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1677
|
+
error: string | null;
|
|
1678
|
+
attempts: number;
|
|
1679
|
+
maxAttempts: number;
|
|
1680
|
+
nextAttemptAt: string | null;
|
|
1681
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
1682
|
+
} | undefined;
|
|
1498
1683
|
}[];
|
|
1499
1684
|
bundle: {
|
|
1500
1685
|
name: string;
|
|
@@ -1591,6 +1776,7 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1591
1776
|
senderAvatarPath?: string | null | undefined;
|
|
1592
1777
|
threadCount?: number | undefined;
|
|
1593
1778
|
threadParticipants?: string[] | undefined;
|
|
1779
|
+
delivery?: unknown;
|
|
1594
1780
|
}[];
|
|
1595
1781
|
bundle: {
|
|
1596
1782
|
name: string;
|
|
@@ -1690,6 +1876,15 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1690
1876
|
senderAvatarPath?: string | null | undefined;
|
|
1691
1877
|
threadCount?: number | undefined;
|
|
1692
1878
|
threadParticipants?: string[] | undefined;
|
|
1879
|
+
delivery?: {
|
|
1880
|
+
updatedAt: string;
|
|
1881
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1882
|
+
error: string | null;
|
|
1883
|
+
attempts: number;
|
|
1884
|
+
maxAttempts: number;
|
|
1885
|
+
nextAttemptAt: string | null;
|
|
1886
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
1887
|
+
} | undefined;
|
|
1693
1888
|
}[];
|
|
1694
1889
|
bundles: {
|
|
1695
1890
|
messages: {
|
|
@@ -1771,6 +1966,15 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1771
1966
|
senderAvatarPath?: string | null | undefined;
|
|
1772
1967
|
threadCount?: number | undefined;
|
|
1773
1968
|
threadParticipants?: string[] | undefined;
|
|
1969
|
+
delivery?: {
|
|
1970
|
+
updatedAt: string;
|
|
1971
|
+
state: "failed" | "sent" | "sending" | "retrying";
|
|
1972
|
+
error: string | null;
|
|
1973
|
+
attempts: number;
|
|
1974
|
+
maxAttempts: number;
|
|
1975
|
+
nextAttemptAt: string | null;
|
|
1976
|
+
errorCode: "rejected" | "cancelled" | "relay_unavailable" | "relay_unconfigured" | "relay_auth" | "retries_exhausted" | "bounced" | null;
|
|
1977
|
+
} | undefined;
|
|
1774
1978
|
}[];
|
|
1775
1979
|
bundle: {
|
|
1776
1980
|
name: string;
|
|
@@ -1869,6 +2073,7 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1869
2073
|
senderAvatarPath?: string | null | undefined;
|
|
1870
2074
|
threadCount?: number | undefined;
|
|
1871
2075
|
threadParticipants?: string[] | undefined;
|
|
2076
|
+
delivery?: unknown;
|
|
1872
2077
|
}[];
|
|
1873
2078
|
bundles: {
|
|
1874
2079
|
messages: {
|
|
@@ -1950,6 +2155,7 @@ export declare const emailBundledInboxSchema: z.ZodObject<{
|
|
|
1950
2155
|
senderAvatarPath?: string | null | undefined;
|
|
1951
2156
|
threadCount?: number | undefined;
|
|
1952
2157
|
threadParticipants?: string[] | undefined;
|
|
2158
|
+
delivery?: unknown;
|
|
1953
2159
|
}[];
|
|
1954
2160
|
bundle: {
|
|
1955
2161
|
name: string;
|
|
@@ -2035,8 +2241,8 @@ export declare const emailOutboxSchema: z.ZodObject<{
|
|
|
2035
2241
|
messageId: string;
|
|
2036
2242
|
attempts: number;
|
|
2037
2243
|
maxAttempts: number;
|
|
2038
|
-
terminal: boolean;
|
|
2039
2244
|
nextAttemptAt: string;
|
|
2245
|
+
terminal: boolean;
|
|
2040
2246
|
lastError: string | null;
|
|
2041
2247
|
sentAt: string | null;
|
|
2042
2248
|
}, {
|
|
@@ -2047,8 +2253,8 @@ export declare const emailOutboxSchema: z.ZodObject<{
|
|
|
2047
2253
|
messageId: string;
|
|
2048
2254
|
attempts: number;
|
|
2049
2255
|
maxAttempts: number;
|
|
2050
|
-
terminal: boolean;
|
|
2051
2256
|
nextAttemptAt: string;
|
|
2257
|
+
terminal: boolean;
|
|
2052
2258
|
lastError: string | null;
|
|
2053
2259
|
sentAt: string | null;
|
|
2054
2260
|
}>;
|
package/dist/types/identity.d.ts
CHANGED
|
@@ -417,7 +417,7 @@ export declare const exportFinancialSectionSchema: z.ZodType<ExportFinancialSect
|
|
|
417
417
|
* `proof` when the user signed the bundle with their own key.
|
|
418
418
|
*/
|
|
419
419
|
export interface ExportBundle {
|
|
420
|
-
|
|
420
|
+
$schema: string;
|
|
421
421
|
exportedAt: string;
|
|
422
422
|
did: string;
|
|
423
423
|
didDocument: DidDocument;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -64,8 +64,8 @@ export type { EmailVerificationPurpose, EmailVerificationStartRequest, EmailVeri
|
|
|
64
64
|
export { transparencyCheckpointSignatureSchema, transparencyAnchorSchema, transparencyCheckpointSchema, transparencyInclusionProofSchema, transparencyCheckpointListSchema, } from './transparency';
|
|
65
65
|
export type { TransparencyCheckpointSignature, TransparencyAnchor, TransparencyCheckpoint, TransparencyInclusionProof, TransparencyCheckpointList, } from './transparency';
|
|
66
66
|
export { INFERENCE_CONTRACT_VERSION, } from './inference/version';
|
|
67
|
-
export { oxyAccountIdSchema, delegatedUserIdSchema, oxyApplicationIdSchema, oxyCredentialIdSchema, requestIdSchema, generationIdSchema, idempotencyKeySchema, inferenceEnvironmentSchema, inferenceTimestampSchema, inferenceDateSchema, inferenceHttpsUrlSchema, sha256DigestSchema, publisherSlugSchema, modelSlugSchema, modelIdSchema, modelRevisionLabelSchema, modelReferenceSchema, routingProfileIdSchema, routingProfileSlugSchema, inferenceProviderSlugSchema, deploymentIdSchema, inferenceRegionSchema, RESERVED_ALIA_PUBLISHER, } from './inference/identifiers';
|
|
68
|
-
export type { OxyAccountId, DelegatedUserId, InferenceEnvironment, ModelReference, ModelId, } from './inference/identifiers';
|
|
67
|
+
export { oxyAccountIdSchema, delegatedUserIdSchema, oxyApplicationIdSchema, oxyCredentialIdSchema, requestIdSchema, generationIdSchema, idempotencyKeySchema, inferenceEnvironmentSchema, inferenceTimestampSchema, inferenceDateSchema, inferenceHttpsUrlSchema, sha256DigestSchema, publisherSlugSchema, modelSlugSchema, modelIdSchema, modelRevisionLabelSchema, modelReferenceSchema, routingProfileIdSchema, routingProfileSlugSchema, inferenceProviderSlugSchema, deploymentIdSchema, inferenceRegionSchema, inferenceFundingTierSchema, RESERVED_ALIA_PUBLISHER, } from './inference/identifiers';
|
|
68
|
+
export type { OxyAccountId, DelegatedUserId, InferenceEnvironment, InferenceFundingTier, ModelReference, ModelId, } from './inference/identifiers';
|
|
69
69
|
export { currencyCodeSchema, INFERENCE_MONEY_SCALE, exactDecimalSchema, moneySchema, USAGE_UNITS, usageUnitSchema, USAGE_SOURCES, usageSourceSchema, usageQuantitySchema, unitPriceSchema, } from './inference/money';
|
|
70
70
|
export type { CurrencyCode, ExactDecimal, Money, UsageUnit, UsageSource, UsageQuantity, UnitPrice, } from './inference/money';
|
|
71
71
|
export { INFERENCE_SCOPES, inferenceScopeSchema, billingPrincipalSchema, authenticatedPrincipalSchema, inferenceAttributionSchema, } from './inference/attribution';
|
|
@@ -106,8 +106,8 @@ export { catalogInvocationPathParameters, catalogInvocationsOverlap, catalogInvo
|
|
|
106
106
|
export type { CatalogInvocationMatch, CatalogInvocationTemplate, ResolvedCatalogInvocation, } from './capabilityInvocation';
|
|
107
107
|
export { emailContextAddressSchema, emailContextMailboxSchema, emailContextMessageSchema, emailAgentContextSchema, } from './emailAgentContext';
|
|
108
108
|
export type { EmailContextAddress, EmailContextMailbox, EmailContextMessage, EmailAgentContext, } from './emailAgentContext';
|
|
109
|
-
export { inboxComposeRequestSchema, inboxDailyBriefRequestSchema, inboxNaturalSearchRequestSchema, inboxMessageInferenceParamsSchema, inboxInferenceTextResponseSchema, inboxNaturalSearchResponseSchema, inboxSmartRepliesResponseSchema, inboxThreadSummaryResponseSchema, inboxInferenceStreamEventSchema, } from './inference/inbox';
|
|
110
|
-
export type { InboxComposeRequest, InboxDailyBriefRequest, InboxInferenceTextResponse, InboxNaturalSearchResponse, InboxSmartRepliesResponse, InboxThreadSummaryResponse, InboxInferenceStreamEvent, } from './inference/inbox';
|
|
109
|
+
export { inboxComposeRequestSchema, inboxDailyBriefRequestSchema, inboxDailyBriefResponseSchema, INBOX_DAILY_BRIEF_SECTIONS, inboxNaturalSearchRequestSchema, inboxMessageInferenceParamsSchema, inboxInferenceTextResponseSchema, inboxNaturalSearchResponseSchema, inboxSmartRepliesResponseSchema, inboxThreadSummaryResponseSchema, inboxInferenceStreamEventSchema, } from './inference/inbox';
|
|
110
|
+
export type { InboxComposeRequest, InboxDailyBriefRequest, InboxDailyBriefResponse, InboxDailyBriefSection, InboxInferenceTextResponse, InboxNaturalSearchResponse, InboxSmartRepliesResponse, InboxThreadSummaryResponse, InboxInferenceStreamEvent, } from './inference/inbox';
|
|
111
111
|
export * from './externalIdentity';
|
|
112
112
|
export * from './linkedAccounts';
|
|
113
113
|
export * from './federationInstanceFetch';
|
|
@@ -116,19 +116,19 @@ export * from './email/messages';
|
|
|
116
116
|
export * from './stickers';
|
|
117
117
|
export { decisionEffortSchema, decisionQuestionSchema, decisionInputSchema, decisionRequestSchema, decisionAnswerSchema, decisionResultSchema, decisionSuccessSchema, decisionFailureSchema, decisionInputBudget, decisionFitsGateway, decisionAnswersMatch, } from './inference/decisions';
|
|
118
118
|
export type { DecisionQuestion, DecisionInput, DecisionRequest, DecisionAnswer, DecisionFailure, DecisionResult, DecisionSuccess, } from './inference/decisions';
|
|
119
|
-
export { SCOPED_EXECUTION_CONTRACT_VERSION, SCOPED_REQUEST_ENVELOPE_VERSION, scopedExecutionAudienceSchema, scopedExecutionSchema, canonicalScopedExecutionJson } from './inference/scopedExecution';
|
|
119
|
+
export { SCOPED_EXECUTION_CONTRACT_VERSION, SCOPED_REQUEST_ENVELOPE_VERSION, scopedExecutionAudienceSchema, scopedExecutionSchema, canonicalScopedExecutionJson, } from './inference/scopedExecution';
|
|
120
120
|
export type { ScopedExecutionAudience, ScopedExecution } from './inference/scopedExecution';
|
|
121
121
|
export { scopedInferenceRequestSchema } from './inference/request';
|
|
122
122
|
export type { ScopedInferenceRequest } from './inference/request';
|
|
123
123
|
export { PRIVATE_AUTO_EXECUTION_CONTRACT_VERSION, PRIVATE_AUTO_REQUEST_ENVELOPE_VERSION, PRIVATE_AUTO_LIMITS, PRIVATE_AUTO_INSTRUCTIONS, PRIVATE_AUTO_QUESTION, privateAutoPrincipalSchema, privateAutoSourceApprovalSchema, privateAutoExecutionSchema, privateAutoInputSchema, privateAutoOperationId, } from './inference/privateAutoExecution';
|
|
124
|
-
export type { PrivateAutoPrincipal, PrivateAutoSourceApproval, PrivateAutoExecution } from './inference/privateAutoExecution';
|
|
124
|
+
export type { PrivateAutoPrincipal, PrivateAutoSourceApproval, PrivateAutoExecution, } from './inference/privateAutoExecution';
|
|
125
125
|
export { privateAutoInferenceRequestSchema } from './inference/request';
|
|
126
126
|
export type { PrivateAutoInferenceRequest } from './inference/request';
|
|
127
127
|
export { productDefinitionSchema, subjectProductAccessQuerySchema, productBenefitSchema, productOfferSchema, productSubscriptionSourceSchema, productAccessGrantSchema, subjectProductGrantSnapshotSchema, productOfferSegmentSchema, subjectProductAccessSchema, } from './products/access';
|
|
128
128
|
export type { ProductDefinition, SubjectProductAccessQuery, SubjectProductGrantSnapshot, ProductBenefit, ProductOffer, ProductSubscriptionSource, ProductAccessGrant, ProductOfferSegment, SubjectProductAccess, } from './products/access';
|
|
129
|
-
export { meteredGenerationSchema, type MeteredGeneration } from
|
|
130
|
-
export { canonicalCapabilityJson, inputSatisfiesCapabilityLimits, isLoopbackOrigin } from './capabilityBindings';
|
|
129
|
+
export { meteredGenerationSchema, type MeteredGeneration } from './inference/economics';
|
|
130
|
+
export { canonicalCapabilityJson, inputSatisfiesCapabilityLimits, isLoopbackOrigin, } from './capabilityBindings';
|
|
131
131
|
export * from './agentKeys';
|
|
132
|
-
export { productSubscriptionSummarySchema, productSubscriptionsResponseSchema, subscriptionCreditGrantSchema, subscriptionCreditGrantsResponseSchema, cancelProductSubscriptionSchema, productSubscriptionCancellationResultSchema, type ProductSubscriptionSummary, type SubscriptionCreditGrant, type ProductSubscriptionCancellationResult } from './products/billing';
|
|
133
|
-
export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema, type PersonalPlanCatalogue } from './products/plans';
|
|
132
|
+
export { productSubscriptionSummarySchema, productSubscriptionsResponseSchema, subscriptionCreditGrantSchema, subscriptionCreditGrantsResponseSchema, cancelProductSubscriptionSchema, productSubscriptionCancellationResultSchema, type ProductSubscriptionSummary, type SubscriptionCreditGrant, type ProductSubscriptionCancellationResult, } from './products/billing';
|
|
133
|
+
export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema, type PersonalPlanCatalogue, } from './products/plans';
|
|
134
134
|
export * from './products/checkout';
|
|
@@ -322,7 +322,7 @@ export declare const billingInvoiceSchema: z.ZodObject<{
|
|
|
322
322
|
paidAt: z.ZodOptional<z.ZodString>;
|
|
323
323
|
receiptCount: z.ZodNumber;
|
|
324
324
|
}, "strict", z.ZodTypeAny, {
|
|
325
|
-
status: "void" | "
|
|
325
|
+
status: "void" | "paid" | "draft" | "open";
|
|
326
326
|
schemaVersion: 1;
|
|
327
327
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
328
328
|
id: string;
|
|
@@ -337,7 +337,7 @@ export declare const billingInvoiceSchema: z.ZodObject<{
|
|
|
337
337
|
externalInvoiceRef?: string | undefined;
|
|
338
338
|
paidAt?: string | undefined;
|
|
339
339
|
}, {
|
|
340
|
-
status: "void" | "
|
|
340
|
+
status: "void" | "paid" | "draft" | "open";
|
|
341
341
|
schemaVersion: 1;
|
|
342
342
|
accountId: string;
|
|
343
343
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const decisionEffortSchema: z.ZodEnum<["instant", "low", "medium", "high", "xhigh"]>;
|
|
3
3
|
export declare const decisionQuestionSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
4
4
|
kind: z.ZodLiteral<"choice">;
|
|
@@ -531,6 +531,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
531
531
|
servingProvider: z.ZodString;
|
|
532
532
|
deploymentId: z.ZodString;
|
|
533
533
|
routeSwitches: z.ZodNumber;
|
|
534
|
+
fundingTier: z.ZodOptional<z.ZodEnum<["free", "credit", "paid"]>>;
|
|
534
535
|
startedAt: z.ZodString;
|
|
535
536
|
completedAt: z.ZodString;
|
|
536
537
|
timeToFirstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -564,6 +565,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
564
565
|
routeSwitches: number;
|
|
565
566
|
startedAt: string;
|
|
566
567
|
generationId?: string | undefined;
|
|
568
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
567
569
|
timeToFirstTokenMs?: number | undefined;
|
|
568
570
|
}, {
|
|
569
571
|
schemaVersion: 2;
|
|
@@ -595,6 +597,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
595
597
|
routeSwitches: number;
|
|
596
598
|
startedAt: string;
|
|
597
599
|
generationId?: string | undefined;
|
|
600
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
598
601
|
timeToFirstTokenMs?: number | undefined;
|
|
599
602
|
}>, {
|
|
600
603
|
schemaVersion: 2;
|
|
@@ -626,6 +629,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
626
629
|
routeSwitches: number;
|
|
627
630
|
startedAt: string;
|
|
628
631
|
generationId?: string | undefined;
|
|
632
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
629
633
|
timeToFirstTokenMs?: number | undefined;
|
|
630
634
|
}, {
|
|
631
635
|
schemaVersion: 2;
|
|
@@ -657,6 +661,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
657
661
|
routeSwitches: number;
|
|
658
662
|
startedAt: string;
|
|
659
663
|
generationId?: string | undefined;
|
|
664
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
660
665
|
timeToFirstTokenMs?: number | undefined;
|
|
661
666
|
}>;
|
|
662
667
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -803,6 +808,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
803
808
|
routeSwitches: number;
|
|
804
809
|
startedAt: string;
|
|
805
810
|
generationId?: string | undefined;
|
|
811
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
806
812
|
timeToFirstTokenMs?: number | undefined;
|
|
807
813
|
};
|
|
808
814
|
}, {
|
|
@@ -857,6 +863,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
857
863
|
routeSwitches: number;
|
|
858
864
|
startedAt: string;
|
|
859
865
|
generationId?: string | undefined;
|
|
866
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
860
867
|
timeToFirstTokenMs?: number | undefined;
|
|
861
868
|
};
|
|
862
869
|
}>, {
|
|
@@ -911,6 +918,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
911
918
|
routeSwitches: number;
|
|
912
919
|
startedAt: string;
|
|
913
920
|
generationId?: string | undefined;
|
|
921
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
914
922
|
timeToFirstTokenMs?: number | undefined;
|
|
915
923
|
};
|
|
916
924
|
}, {
|
|
@@ -965,6 +973,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
965
973
|
routeSwitches: number;
|
|
966
974
|
startedAt: string;
|
|
967
975
|
generationId?: string | undefined;
|
|
976
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
968
977
|
timeToFirstTokenMs?: number | undefined;
|
|
969
978
|
};
|
|
970
979
|
}>, {
|
|
@@ -1019,6 +1028,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
1019
1028
|
routeSwitches: number;
|
|
1020
1029
|
startedAt: string;
|
|
1021
1030
|
generationId?: string | undefined;
|
|
1031
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1022
1032
|
timeToFirstTokenMs?: number | undefined;
|
|
1023
1033
|
};
|
|
1024
1034
|
}, {
|
|
@@ -1073,6 +1083,7 @@ export declare const decisionResultSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
1073
1083
|
routeSwitches: number;
|
|
1074
1084
|
startedAt: string;
|
|
1075
1085
|
generationId?: string | undefined;
|
|
1086
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1076
1087
|
timeToFirstTokenMs?: number | undefined;
|
|
1077
1088
|
};
|
|
1078
1089
|
}>;
|
|
@@ -1250,6 +1261,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1250
1261
|
servingProvider: z.ZodString;
|
|
1251
1262
|
deploymentId: z.ZodString;
|
|
1252
1263
|
routeSwitches: z.ZodNumber;
|
|
1264
|
+
fundingTier: z.ZodOptional<z.ZodEnum<["free", "credit", "paid"]>>;
|
|
1253
1265
|
startedAt: z.ZodString;
|
|
1254
1266
|
completedAt: z.ZodString;
|
|
1255
1267
|
timeToFirstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1283,6 +1295,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1283
1295
|
routeSwitches: number;
|
|
1284
1296
|
startedAt: string;
|
|
1285
1297
|
generationId?: string | undefined;
|
|
1298
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1286
1299
|
timeToFirstTokenMs?: number | undefined;
|
|
1287
1300
|
}, {
|
|
1288
1301
|
schemaVersion: 2;
|
|
@@ -1314,6 +1327,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1314
1327
|
routeSwitches: number;
|
|
1315
1328
|
startedAt: string;
|
|
1316
1329
|
generationId?: string | undefined;
|
|
1330
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1317
1331
|
timeToFirstTokenMs?: number | undefined;
|
|
1318
1332
|
}>, {
|
|
1319
1333
|
schemaVersion: 2;
|
|
@@ -1345,6 +1359,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1345
1359
|
routeSwitches: number;
|
|
1346
1360
|
startedAt: string;
|
|
1347
1361
|
generationId?: string | undefined;
|
|
1362
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1348
1363
|
timeToFirstTokenMs?: number | undefined;
|
|
1349
1364
|
}, {
|
|
1350
1365
|
schemaVersion: 2;
|
|
@@ -1376,6 +1391,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1376
1391
|
routeSwitches: number;
|
|
1377
1392
|
startedAt: string;
|
|
1378
1393
|
generationId?: string | undefined;
|
|
1394
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1379
1395
|
timeToFirstTokenMs?: number | undefined;
|
|
1380
1396
|
}>>;
|
|
1381
1397
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1427,6 +1443,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1427
1443
|
routeSwitches: number;
|
|
1428
1444
|
startedAt: string;
|
|
1429
1445
|
generationId?: string | undefined;
|
|
1446
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1430
1447
|
timeToFirstTokenMs?: number | undefined;
|
|
1431
1448
|
} | undefined;
|
|
1432
1449
|
}, {
|
|
@@ -1478,6 +1495,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1478
1495
|
routeSwitches: number;
|
|
1479
1496
|
startedAt: string;
|
|
1480
1497
|
generationId?: string | undefined;
|
|
1498
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1481
1499
|
timeToFirstTokenMs?: number | undefined;
|
|
1482
1500
|
} | undefined;
|
|
1483
1501
|
}>, {
|
|
@@ -1529,6 +1547,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1529
1547
|
routeSwitches: number;
|
|
1530
1548
|
startedAt: string;
|
|
1531
1549
|
generationId?: string | undefined;
|
|
1550
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1532
1551
|
timeToFirstTokenMs?: number | undefined;
|
|
1533
1552
|
} | undefined;
|
|
1534
1553
|
}, {
|
|
@@ -1580,6 +1599,7 @@ export declare const decisionFailureSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1580
1599
|
routeSwitches: number;
|
|
1581
1600
|
startedAt: string;
|
|
1582
1601
|
generationId?: string | undefined;
|
|
1602
|
+
fundingTier?: "free" | "credit" | "paid" | undefined;
|
|
1583
1603
|
timeToFirstTokenMs?: number | undefined;
|
|
1584
1604
|
} | undefined;
|
|
1585
1605
|
}>;
|
|
@@ -182,3 +182,17 @@ export type DelegatedUserId = z.infer<typeof delegatedUserIdSchema>;
|
|
|
182
182
|
export type InferenceEnvironment = z.infer<typeof inferenceEnvironmentSchema>;
|
|
183
183
|
export type ModelReference = z.infer<typeof modelReferenceSchema>;
|
|
184
184
|
export type ModelId = z.infer<typeof modelIdSchema>;
|
|
185
|
+
/**
|
|
186
|
+
* The economic tier of the provider capacity that funds a request, in the
|
|
187
|
+
* order Kaana spends it: `free` (costs nothing), `credit` (a promotional or
|
|
188
|
+
* trial grant, or a prepaid balance), `paid` (ordinary metered spend).
|
|
189
|
+
*
|
|
190
|
+
* Kaana owns provider keys, their economics and which key serves (Oxy ADR
|
|
191
|
+
* 0038, Kaana ADR 0001); Oxy owns what a customer may spend. The tier is the
|
|
192
|
+
* one economic fact the two exchange: Oxy BOUNDS a route by it
|
|
193
|
+
* (`maxFundingTier`), and Kaana REPORTS the tier that served
|
|
194
|
+
* (`normalizedUsageReportSchema.fundingTier`). No key id, label or price
|
|
195
|
+
* travels with it.
|
|
196
|
+
*/
|
|
197
|
+
export declare const inferenceFundingTierSchema: z.ZodEnum<["free", "credit", "paid"]>;
|
|
198
|
+
export type InferenceFundingTier = z.infer<typeof inferenceFundingTierSchema>;
|