@oxy.so/contracts 4.11.0-oxy-one.0 → 4.11.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.
Files changed (98) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountGraph.js +5 -3
  3. package/dist/cjs/agency.js +178 -96
  4. package/dist/cjs/agentKeys.js +80 -26
  5. package/dist/cjs/capabilityBindings.js +2 -2
  6. package/dist/cjs/capabilityInvocation.js +3 -1
  7. package/dist/cjs/commonsSignIn.js +2 -2
  8. package/dist/cjs/deviceSession.js +5 -1
  9. package/dist/cjs/email/messages.js +70 -4
  10. package/dist/cjs/emailAgentContext.js +16 -8
  11. package/dist/cjs/externalIdentity.js +30 -12
  12. package/dist/cjs/identity.js +14 -6
  13. package/dist/cjs/identityLink.js +7 -2
  14. package/dist/cjs/identityProof.js +2 -1
  15. package/dist/cjs/index.js +5 -3
  16. package/dist/cjs/inference/catalogue.js +2 -12
  17. package/dist/cjs/inference/decisions.js +102 -83
  18. package/dist/cjs/inference/economics.js +15 -5
  19. package/dist/cjs/inference/embeddings.js +44 -6
  20. package/dist/cjs/inference/inbox.js +33 -2
  21. package/dist/cjs/inference/providerConnection.js +21 -6
  22. package/dist/cjs/inference/realtime.js +114 -107
  23. package/dist/cjs/inference/scopedExecution.js +12 -12
  24. package/dist/cjs/inference/usage.js +2 -9
  25. package/dist/cjs/notifications.js +25 -5
  26. package/dist/cjs/oauth.js +30 -14
  27. package/dist/cjs/oxyRecordTypes.js +2 -2
  28. package/dist/cjs/products/access.js +146 -57
  29. package/dist/cjs/products/billing.js +71 -17
  30. package/dist/cjs/products/checkout.js +24 -6
  31. package/dist/cjs/products/plans.js +22 -7
  32. package/dist/cjs/recommendations.js +4 -6
  33. package/dist/cjs/reputation.js +3 -6
  34. package/dist/cjs/sessionStatus.js +1 -6
  35. package/dist/cjs/signIn.js +17 -4
  36. package/dist/cjs/transparency.js +3 -1
  37. package/dist/cjs/updates.js +2 -4
  38. package/dist/cjs/userResponse.js +27 -7
  39. package/dist/cjs/username.js +3 -1
  40. package/dist/esm/.tsbuildinfo +1 -1
  41. package/dist/esm/accountGraph.js +5 -3
  42. package/dist/esm/agency.js +178 -96
  43. package/dist/esm/agentKeys.js +80 -26
  44. package/dist/esm/capabilityBindings.js +2 -2
  45. package/dist/esm/capabilityInvocation.js +3 -1
  46. package/dist/esm/commonsSignIn.js +2 -2
  47. package/dist/esm/deviceSession.js +5 -1
  48. package/dist/esm/email/messages.js +69 -3
  49. package/dist/esm/emailAgentContext.js +16 -8
  50. package/dist/esm/externalIdentity.js +30 -12
  51. package/dist/esm/identity.js +14 -6
  52. package/dist/esm/identityLink.js +7 -2
  53. package/dist/esm/identityProof.js +2 -1
  54. package/dist/esm/index.js +7 -7
  55. package/dist/esm/inference/aliaModelRelease.js +1 -1
  56. package/dist/esm/inference/catalogue.js +3 -13
  57. package/dist/esm/inference/decisions.js +108 -89
  58. package/dist/esm/inference/economics.js +16 -6
  59. package/dist/esm/inference/embeddings.js +44 -6
  60. package/dist/esm/inference/inbox.js +32 -1
  61. package/dist/esm/inference/providerConnection.js +21 -6
  62. package/dist/esm/inference/realtime.js +123 -116
  63. package/dist/esm/inference/scopedExecution.js +15 -15
  64. package/dist/esm/inference/usage.js +2 -9
  65. package/dist/esm/notifications.js +25 -5
  66. package/dist/esm/oauth.js +30 -14
  67. package/dist/esm/oxyRecordTypes.js +2 -2
  68. package/dist/esm/products/access.js +146 -57
  69. package/dist/esm/products/billing.js +71 -17
  70. package/dist/esm/products/checkout.js +24 -6
  71. package/dist/esm/products/plans.js +22 -7
  72. package/dist/esm/recommendations.js +4 -6
  73. package/dist/esm/reputation.js +3 -6
  74. package/dist/esm/sessionStatus.js +1 -6
  75. package/dist/esm/signIn.js +17 -4
  76. package/dist/esm/transparency.js +3 -1
  77. package/dist/esm/updates.js +2 -4
  78. package/dist/esm/userResponse.js +27 -7
  79. package/dist/esm/username.js +3 -1
  80. package/dist/types/.tsbuildinfo +1 -1
  81. package/dist/types/accountGraph.d.ts +1 -1
  82. package/dist/types/commonsSignIn.d.ts +2 -2
  83. package/dist/types/email/messages.d.ts +208 -2
  84. package/dist/types/identity.d.ts +1 -1
  85. package/dist/types/index.d.ts +8 -8
  86. package/dist/types/inference/decisions.d.ts +1 -1
  87. package/dist/types/inference/inbox.d.ts +129 -5
  88. package/dist/types/inference/realtime.d.ts +1 -1
  89. package/dist/types/inference/scopedExecution.d.ts +1 -1
  90. package/dist/types/moderationReputation.d.ts +1 -1
  91. package/dist/types/oxyRecordTypes.d.ts +2 -2
  92. package/dist/types/products/access.d.ts +102 -102
  93. package/dist/types/products/checkout.d.ts +3 -3
  94. package/dist/types/products/plans.d.ts +40 -40
  95. package/dist/types/reputation.d.ts +4 -4
  96. package/dist/types/updates.d.ts +1 -1
  97. package/dist/types/userResponse.d.ts +22 -23
  98. 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 Mongo document, an already-formatted object), so each one
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;
@@ -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 Mongoose `enum` of `AuthSession.deniedReason`, which is
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
  }>;
@@ -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
- '$schema': string;
420
+ $schema: string;
421
421
  exportedAt: string;
422
422
  did: string;
423
423
  didDocument: DidDocument;
@@ -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 "./inference/economics";
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';
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
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">;
@@ -66,23 +66,24 @@ export declare const inboxComposeRequestSchema: z.ZodDiscriminatedUnion<"operati
66
66
  export declare const inboxDailyBriefRequestSchema: z.ZodEffects<z.ZodObject<{
67
67
  startAt: z.ZodEffects<z.ZodString, string, string>;
68
68
  endAt: z.ZodEffects<z.ZodString, string, string>;
69
- stream: z.ZodOptional<z.ZodBoolean>;
69
+ /** BCP 47 tag of the language the brief is written in; English when absent. */
70
+ locale: z.ZodOptional<z.ZodString>;
70
71
  }, "strict", z.ZodTypeAny, {
71
72
  startAt: string;
72
73
  endAt: string;
73
- stream?: boolean | undefined;
74
+ locale?: string | undefined;
74
75
  }, {
75
76
  startAt: string;
76
77
  endAt: string;
77
- stream?: boolean | undefined;
78
+ locale?: string | undefined;
78
79
  }>, {
79
80
  startAt: string;
80
81
  endAt: string;
81
- stream?: boolean | undefined;
82
+ locale?: string | undefined;
82
83
  }, {
83
84
  startAt: string;
84
85
  endAt: string;
85
- stream?: boolean | undefined;
86
+ locale?: string | undefined;
86
87
  }>;
87
88
  export declare const inboxNaturalSearchRequestSchema: z.ZodObject<{
88
89
  query: z.ZodString;
@@ -179,6 +180,127 @@ export declare const inboxNaturalSearchResponseSchema: z.ZodObject<{
179
180
  };
180
181
  interpretation: string;
181
182
  }>;
183
+ /** Where the brief puts a message: it asks something of the owner, it is today's news, or it is still unread from before. */
184
+ export declare const INBOX_DAILY_BRIEF_SECTIONS: readonly ["needs_you", "today", "earlier"];
185
+ /**
186
+ * The Daily Brief as data, so a client draws it rather than printing a wall of
187
+ * text: a short summary, then the messages it mentions — each with the
188
+ * server's own copy of its sender, subject, time and unread state, so a client
189
+ * can show and open it, and a one-line note of why it matters.
190
+ */
191
+ export declare const inboxDailyBriefResponseSchema: z.ZodObject<{
192
+ schemaVersion: z.ZodLiteral<1>;
193
+ requestId: z.ZodString;
194
+ generationId: z.ZodOptional<z.ZodString>;
195
+ summary: z.ZodString;
196
+ counts: z.ZodObject<{
197
+ received: z.ZodNumber;
198
+ unread: z.ZodNumber;
199
+ starred: z.ZodNumber;
200
+ earlierUnread: z.ZodNumber;
201
+ }, "strict", z.ZodTypeAny, {
202
+ received: number;
203
+ starred: number;
204
+ unread: number;
205
+ earlierUnread: number;
206
+ }, {
207
+ received: number;
208
+ starred: number;
209
+ unread: number;
210
+ earlierUnread: number;
211
+ }>;
212
+ items: z.ZodArray<z.ZodObject<{
213
+ messageId: z.ZodString;
214
+ section: z.ZodEnum<["needs_you", "today", "earlier"]>;
215
+ note: z.ZodString;
216
+ from: z.ZodObject<{
217
+ name: z.ZodNullable<z.ZodString>;
218
+ address: z.ZodString;
219
+ }, "strict", z.ZodTypeAny, {
220
+ name: string | null;
221
+ address: string;
222
+ }, {
223
+ name: string | null;
224
+ address: string;
225
+ }>;
226
+ subject: z.ZodString;
227
+ receivedAt: z.ZodString;
228
+ unread: z.ZodBoolean;
229
+ hasAttachments: z.ZodBoolean;
230
+ }, "strict", z.ZodTypeAny, {
231
+ subject: string;
232
+ messageId: string;
233
+ from: {
234
+ name: string | null;
235
+ address: string;
236
+ };
237
+ receivedAt: string;
238
+ unread: boolean;
239
+ section: "needs_you" | "today" | "earlier";
240
+ note: string;
241
+ hasAttachments: boolean;
242
+ }, {
243
+ subject: string;
244
+ messageId: string;
245
+ from: {
246
+ name: string | null;
247
+ address: string;
248
+ };
249
+ receivedAt: string;
250
+ unread: boolean;
251
+ section: "needs_you" | "today" | "earlier";
252
+ note: string;
253
+ hasAttachments: boolean;
254
+ }>, "many">;
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
+ items: {
266
+ subject: string;
267
+ messageId: string;
268
+ from: {
269
+ name: string | null;
270
+ address: string;
271
+ };
272
+ receivedAt: string;
273
+ unread: boolean;
274
+ section: "needs_you" | "today" | "earlier";
275
+ note: string;
276
+ hasAttachments: boolean;
277
+ }[];
278
+ generationId?: string | undefined;
279
+ }, {
280
+ schemaVersion: 1;
281
+ requestId: string;
282
+ summary: string;
283
+ counts: {
284
+ received: number;
285
+ starred: number;
286
+ unread: number;
287
+ earlierUnread: number;
288
+ };
289
+ items: {
290
+ subject: string;
291
+ messageId: string;
292
+ from: {
293
+ name: string | null;
294
+ address: string;
295
+ };
296
+ receivedAt: string;
297
+ unread: boolean;
298
+ section: "needs_you" | "today" | "earlier";
299
+ note: string;
300
+ hasAttachments: boolean;
301
+ }[];
302
+ generationId?: string | undefined;
303
+ }>;
182
304
  export declare const inboxSmartRepliesResponseSchema: z.ZodObject<{
183
305
  replies: z.ZodArray<z.ZodString, "many">;
184
306
  }, "strict", z.ZodTypeAny, {
@@ -367,6 +489,8 @@ export declare const inboxInferenceStreamEventSchema: z.ZodDiscriminatedUnion<"t
367
489
  }>]>;
368
490
  export type InboxComposeRequest = z.infer<typeof inboxComposeRequestSchema>;
369
491
  export type InboxDailyBriefRequest = z.infer<typeof inboxDailyBriefRequestSchema>;
492
+ export type InboxDailyBriefResponse = z.infer<typeof inboxDailyBriefResponseSchema>;
493
+ export type InboxDailyBriefSection = (typeof INBOX_DAILY_BRIEF_SECTIONS)[number];
370
494
  export type InboxInferenceTextResponse = z.infer<typeof inboxInferenceTextResponseSchema>;
371
495
  export type InboxNaturalSearchResponse = z.infer<typeof inboxNaturalSearchResponseSchema>;
372
496
  export type InboxSmartRepliesResponse = z.infer<typeof inboxSmartRepliesResponseSchema>;
@@ -83,7 +83,7 @@
83
83
  *
84
84
  * Decided in: OxyHQ/Kaana#90.
85
85
  */
86
- import { z } from "zod";
86
+ import { z } from 'zod';
87
87
  /**
88
88
  * The most base64 characters one audio frame may carry: 49 152 bytes of audio,
89
89
  * about one second of 24 kHz mono PCM16. Bounded so no frame is large enough to
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
2
  /** Explicit extension negotiation; never replaces the legacy 3.5 handshake. */
3
3
  export declare const SCOPED_EXECUTION_CONTRACT_VERSION: "3.6.0";
4
4
  /** Scoped only; normal envelope v2 and metadata 3.5 remain unchanged. */
@@ -273,7 +273,7 @@ export declare const reverseModerationEffectSchema: z.ZodType<ReverseModerationE
273
273
  * are reported so the figure is explainable without re-running the engine.
274
274
  */
275
275
  export interface ModerationEffect {
276
- /** The effect's own id (its Mongo `_id` as a string). */
276
+ /** The effect's own id, as a string. */
277
277
  id: string;
278
278
  incidentId: string;
279
279
  caseId: string;
@@ -7,8 +7,8 @@
7
7
  * is rejected as `invalid_envelope`.
8
8
  *
9
9
  * `oxySignedRecordTypeSchema` is that runtime gate (the API's `verifyEnvelope`
10
- * re-narrows with it; the Mongoose `SignedRecord.type` enum and the Postgres
11
- * CHECK on `signed_records.type` are both derived from `.options`);
10
+ * re-narrows with it; the Postgres CHECK on `signed_records.type` is derived
11
+ * from `.options`);
12
12
  * `OxySignedRecordType` is the matching compile-time union the SDK
13
13
  * identity/civic mixins type against.
14
14
  *