@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.
Files changed (111) 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 +12 -8
  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/identifiers.js +14 -1
  21. package/dist/cjs/inference/inbox.js +33 -2
  22. package/dist/cjs/inference/providerConnection.js +21 -6
  23. package/dist/cjs/inference/realtime.js +114 -107
  24. package/dist/cjs/inference/routingPolicy.js +17 -0
  25. package/dist/cjs/inference/scopedExecution.js +12 -12
  26. package/dist/cjs/inference/usage.js +10 -9
  27. package/dist/cjs/inference/version.js +1 -1
  28. package/dist/cjs/notifications.js +25 -5
  29. package/dist/cjs/oauth.js +30 -14
  30. package/dist/cjs/oxyRecordTypes.js +2 -2
  31. package/dist/cjs/products/access.js +146 -57
  32. package/dist/cjs/products/billing.js +71 -17
  33. package/dist/cjs/products/checkout.js +24 -6
  34. package/dist/cjs/products/plans.js +22 -7
  35. package/dist/cjs/recommendations.js +4 -6
  36. package/dist/cjs/reputation.js +3 -6
  37. package/dist/cjs/sessionStatus.js +1 -6
  38. package/dist/cjs/signIn.js +17 -4
  39. package/dist/cjs/transparency.js +3 -1
  40. package/dist/cjs/updates.js +2 -4
  41. package/dist/cjs/userResponse.js +27 -7
  42. package/dist/cjs/username.js +3 -1
  43. package/dist/esm/.tsbuildinfo +1 -1
  44. package/dist/esm/accountGraph.js +5 -3
  45. package/dist/esm/agency.js +178 -96
  46. package/dist/esm/agentKeys.js +80 -26
  47. package/dist/esm/capabilityBindings.js +2 -2
  48. package/dist/esm/capabilityInvocation.js +3 -1
  49. package/dist/esm/commonsSignIn.js +2 -2
  50. package/dist/esm/deviceSession.js +5 -1
  51. package/dist/esm/email/messages.js +69 -3
  52. package/dist/esm/emailAgentContext.js +16 -8
  53. package/dist/esm/externalIdentity.js +30 -12
  54. package/dist/esm/identity.js +14 -6
  55. package/dist/esm/identityLink.js +7 -2
  56. package/dist/esm/identityProof.js +2 -1
  57. package/dist/esm/index.js +10 -8
  58. package/dist/esm/inference/aliaModelRelease.js +1 -1
  59. package/dist/esm/inference/catalogue.js +3 -13
  60. package/dist/esm/inference/decisions.js +108 -89
  61. package/dist/esm/inference/economics.js +16 -6
  62. package/dist/esm/inference/embeddings.js +44 -6
  63. package/dist/esm/inference/identifiers.js +13 -0
  64. package/dist/esm/inference/inbox.js +32 -1
  65. package/dist/esm/inference/providerConnection.js +21 -6
  66. package/dist/esm/inference/realtime.js +123 -116
  67. package/dist/esm/inference/routingPolicy.js +18 -1
  68. package/dist/esm/inference/scopedExecution.js +15 -15
  69. package/dist/esm/inference/usage.js +11 -10
  70. package/dist/esm/inference/version.js +1 -1
  71. package/dist/esm/notifications.js +25 -5
  72. package/dist/esm/oauth.js +30 -14
  73. package/dist/esm/oxyRecordTypes.js +2 -2
  74. package/dist/esm/products/access.js +146 -57
  75. package/dist/esm/products/billing.js +71 -17
  76. package/dist/esm/products/checkout.js +24 -6
  77. package/dist/esm/products/plans.js +22 -7
  78. package/dist/esm/recommendations.js +4 -6
  79. package/dist/esm/reputation.js +3 -6
  80. package/dist/esm/sessionStatus.js +1 -6
  81. package/dist/esm/signIn.js +17 -4
  82. package/dist/esm/transparency.js +3 -1
  83. package/dist/esm/updates.js +2 -4
  84. package/dist/esm/userResponse.js +27 -7
  85. package/dist/esm/username.js +3 -1
  86. package/dist/types/.tsbuildinfo +1 -1
  87. package/dist/types/accountGraph.d.ts +1 -1
  88. package/dist/types/accountSubject.d.ts +4 -4
  89. package/dist/types/commonsSignIn.d.ts +2 -2
  90. package/dist/types/email/messages.d.ts +208 -2
  91. package/dist/types/identity.d.ts +1 -1
  92. package/dist/types/index.d.ts +10 -10
  93. package/dist/types/inference/accountBilling.d.ts +2 -2
  94. package/dist/types/inference/decisions.d.ts +21 -1
  95. package/dist/types/inference/identifiers.d.ts +14 -0
  96. package/dist/types/inference/inbox.d.ts +129 -5
  97. package/dist/types/inference/realtime.d.ts +19 -1
  98. package/dist/types/inference/request.d.ts +54 -0
  99. package/dist/types/inference/routingPolicy.d.ts +10 -0
  100. package/dist/types/inference/scopedExecution.d.ts +1 -1
  101. package/dist/types/inference/usage.d.ts +12 -0
  102. package/dist/types/inference/version.d.ts +1 -1
  103. package/dist/types/moderationReputation.d.ts +1 -1
  104. package/dist/types/oxyRecordTypes.d.ts +2 -2
  105. package/dist/types/products/access.d.ts +102 -102
  106. package/dist/types/products/checkout.d.ts +3 -3
  107. package/dist/types/products/plans.d.ts +40 -40
  108. package/dist/types/reputation.d.ts +4 -4
  109. package/dist/types/updates.d.ts +1 -1
  110. package/dist/types/userResponse.d.ts +22 -23
  111. package/package.json +1 -2
@@ -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
@@ -970,6 +970,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
970
970
  modelReference: z.ZodString;
971
971
  provider: z.ZodString;
972
972
  regions: z.ZodArray<z.ZodString, "many">;
973
+ maxFundingTier: z.ZodOptional<z.ZodEnum<["free", "credit", "paid"]>>;
973
974
  customerProviderCredential: z.ZodOptional<z.ZodObject<{
974
975
  credentialHandle: z.ZodString;
975
976
  credentialRevision: z.ZodNumber;
@@ -996,6 +997,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
996
997
  deploymentId: string;
997
998
  regions: string[];
998
999
  substitution: "same_model";
1000
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
999
1001
  customerProviderCredential?: {
1000
1002
  environment: "development" | "staging" | "production";
1001
1003
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
@@ -1009,6 +1011,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1009
1011
  deploymentId: string;
1010
1012
  regions: string[];
1011
1013
  substitution: "same_model";
1014
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1012
1015
  customerProviderCredential?: {
1013
1016
  environment: "development" | "staging" | "production";
1014
1017
  ownerAccountId: string;
@@ -1022,6 +1025,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1022
1025
  modelReference: z.ZodString;
1023
1026
  provider: z.ZodString;
1024
1027
  regions: z.ZodArray<z.ZodString, "many">;
1028
+ maxFundingTier: z.ZodOptional<z.ZodEnum<["free", "credit", "paid"]>>;
1025
1029
  customerProviderCredential: z.ZodOptional<z.ZodObject<{
1026
1030
  credentialHandle: z.ZodString;
1027
1031
  credentialRevision: z.ZodNumber;
@@ -1049,6 +1053,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1049
1053
  regions: string[];
1050
1054
  substitution: "cross_model";
1051
1055
  authorizedByPolicy: true;
1056
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1052
1057
  customerProviderCredential?: {
1053
1058
  environment: "development" | "staging" | "production";
1054
1059
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
@@ -1063,6 +1068,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1063
1068
  regions: string[];
1064
1069
  substitution: "cross_model";
1065
1070
  authorizedByPolicy: true;
1071
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1066
1072
  customerProviderCredential?: {
1067
1073
  environment: "development" | "staging" | "production";
1068
1074
  ownerAccountId: string;
@@ -1076,6 +1082,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1076
1082
  deploymentId: string;
1077
1083
  regions: string[];
1078
1084
  substitution: "same_model";
1085
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1079
1086
  customerProviderCredential?: {
1080
1087
  environment: "development" | "staging" | "production";
1081
1088
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
@@ -1090,6 +1097,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1090
1097
  regions: string[];
1091
1098
  substitution: "cross_model";
1092
1099
  authorizedByPolicy: true;
1100
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1093
1101
  customerProviderCredential?: {
1094
1102
  environment: "development" | "staging" | "production";
1095
1103
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
@@ -1103,6 +1111,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1103
1111
  deploymentId: string;
1104
1112
  regions: string[];
1105
1113
  substitution: "same_model";
1114
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1106
1115
  customerProviderCredential?: {
1107
1116
  environment: "development" | "staging" | "production";
1108
1117
  ownerAccountId: string;
@@ -1117,6 +1126,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1117
1126
  regions: string[];
1118
1127
  substitution: "cross_model";
1119
1128
  authorizedByPolicy: true;
1129
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1120
1130
  customerProviderCredential?: {
1121
1131
  environment: "development" | "staging" | "production";
1122
1132
  ownerAccountId: string;
@@ -1166,6 +1176,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1166
1176
  deploymentId: string;
1167
1177
  regions: string[];
1168
1178
  substitution: "same_model";
1179
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1169
1180
  customerProviderCredential?: {
1170
1181
  environment: "development" | "staging" | "production";
1171
1182
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
@@ -1180,6 +1191,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1180
1191
  regions: string[];
1181
1192
  substitution: "cross_model";
1182
1193
  authorizedByPolicy: true;
1194
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1183
1195
  customerProviderCredential?: {
1184
1196
  environment: "development" | "staging" | "production";
1185
1197
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
@@ -1272,6 +1284,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1272
1284
  deploymentId: string;
1273
1285
  regions: string[];
1274
1286
  substitution: "same_model";
1287
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1275
1288
  customerProviderCredential?: {
1276
1289
  environment: "development" | "staging" | "production";
1277
1290
  ownerAccountId: string;
@@ -1286,6 +1299,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1286
1299
  regions: string[];
1287
1300
  substitution: "cross_model";
1288
1301
  authorizedByPolicy: true;
1302
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1289
1303
  customerProviderCredential?: {
1290
1304
  environment: "development" | "staging" | "production";
1291
1305
  ownerAccountId: string;
@@ -1378,6 +1392,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1378
1392
  deploymentId: string;
1379
1393
  regions: string[];
1380
1394
  substitution: "same_model";
1395
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1381
1396
  customerProviderCredential?: {
1382
1397
  environment: "development" | "staging" | "production";
1383
1398
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
@@ -1392,6 +1407,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1392
1407
  regions: string[];
1393
1408
  substitution: "cross_model";
1394
1409
  authorizedByPolicy: true;
1410
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1395
1411
  customerProviderCredential?: {
1396
1412
  environment: "development" | "staging" | "production";
1397
1413
  ownerAccountId: string & z.BRAND<"OxyAccountId">;
@@ -1484,6 +1500,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1484
1500
  deploymentId: string;
1485
1501
  regions: string[];
1486
1502
  substitution: "same_model";
1503
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1487
1504
  customerProviderCredential?: {
1488
1505
  environment: "development" | "staging" | "production";
1489
1506
  ownerAccountId: string;
@@ -1498,6 +1515,7 @@ export declare const realtimeSessionRequestSchema: z.ZodEffects<z.ZodObject<{
1498
1515
  regions: string[];
1499
1516
  substitution: "cross_model";
1500
1517
  authorizedByPolicy: true;
1518
+ maxFundingTier?: "free" | "credit" | "paid" | undefined;
1501
1519
  customerProviderCredential?: {
1502
1520
  environment: "development" | "staging" | "production";
1503
1521
  ownerAccountId: string;