@oxy.so/contracts 5.8.0 → 6.0.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 (219) hide show
  1. package/dist/cjs/accountAccess.js +6 -5
  2. package/dist/cjs/accountEmail.js +13 -5
  3. package/dist/cjs/accountGraph.js +10 -9
  4. package/dist/cjs/accountName.js +3 -2
  5. package/dist/cjs/agency.js +91 -34
  6. package/dist/cjs/agentKeys.js +21 -17
  7. package/dist/cjs/appAssertions.js +14 -13
  8. package/dist/cjs/applicationRoles.js +19 -12
  9. package/dist/cjs/civic.js +10 -9
  10. package/dist/cjs/client/check.js +61 -53
  11. package/dist/cjs/consoleOnboarding.js +9 -4
  12. package/dist/cjs/contentClaims.js +23 -14
  13. package/dist/cjs/deviceDirectory.js +11 -9
  14. package/dist/cjs/deviceSession.js +27 -25
  15. package/dist/cjs/email/messages.js +20 -18
  16. package/dist/cjs/emailAgentContext.js +11 -9
  17. package/dist/cjs/externalIdentity.js +15 -11
  18. package/dist/cjs/federationInstanceFetch.js +12 -7
  19. package/dist/cjs/identity.js +19 -17
  20. package/dist/cjs/identityLink.js +6 -4
  21. package/dist/cjs/identityProof.js +6 -4
  22. package/dist/cjs/inboxPush.js +5 -4
  23. package/dist/cjs/index.js +15 -6
  24. package/dist/cjs/inference/accountBilling.js +35 -33
  25. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  26. package/dist/cjs/inference/attribution.js +14 -12
  27. package/dist/cjs/inference/catalogue.js +35 -29
  28. package/dist/cjs/inference/economics.js +24 -19
  29. package/dist/cjs/inference/embeddings.js +9 -7
  30. package/dist/cjs/inference/entitlement.js +17 -15
  31. package/dist/cjs/inference/errors.js +15 -8
  32. package/dist/cjs/inference/identifiers.js +33 -21
  33. package/dist/cjs/inference/inbox.js +37 -35
  34. package/dist/cjs/inference/modelDocumentation.js +16 -14
  35. package/dist/cjs/inference/money.js +5 -4
  36. package/dist/cjs/inference/priceVersion.js +10 -5
  37. package/dist/cjs/inference/providerConnection.js +21 -14
  38. package/dist/cjs/inference/realtime.js +88 -47
  39. package/dist/cjs/inference/request.js +27 -25
  40. package/dist/cjs/inference/routingPolicy.js +12 -10
  41. package/dist/cjs/inference/streamEvents.js +22 -16
  42. package/dist/cjs/inference/usage.js +32 -15
  43. package/dist/cjs/keyRecovery.js +8 -6
  44. package/dist/cjs/keyRotation.js +5 -4
  45. package/dist/cjs/linkedAccounts.js +22 -18
  46. package/dist/cjs/moderationReputation.js +29 -27
  47. package/dist/cjs/notifications.js +25 -9
  48. package/dist/cjs/numberChecks.js +45 -0
  49. package/dist/cjs/oauth.js +14 -12
  50. package/dist/cjs/organizations.js +23 -21
  51. package/dist/cjs/products/access.js +10 -8
  52. package/dist/cjs/products/billing.js +10 -8
  53. package/dist/cjs/products/checkout.js +22 -10
  54. package/dist/cjs/products/plans.js +15 -10
  55. package/dist/cjs/protocol.js +6 -5
  56. package/dist/cjs/recommendations.js +27 -19
  57. package/dist/cjs/reputation.js +15 -13
  58. package/dist/cjs/safety.js +43 -27
  59. package/dist/cjs/serviceToken.js +81 -2
  60. package/dist/cjs/sessionRevocation.js +8 -6
  61. package/dist/cjs/signIn.js +42 -24
  62. package/dist/cjs/stickers.js +19 -15
  63. package/dist/cjs/stringChecks.js +70 -0
  64. package/dist/cjs/transparency.js +14 -12
  65. package/dist/cjs/updates.js +24 -22
  66. package/dist/cjs/userInvalidation.js +7 -5
  67. package/dist/cjs/userResponse.js +8 -7
  68. package/dist/cjs/username.js +7 -6
  69. package/dist/esm/accountAccess.js +4 -3
  70. package/dist/esm/accountEmail.js +13 -5
  71. package/dist/esm/accountGraph.js +8 -7
  72. package/dist/esm/accountName.js +3 -2
  73. package/dist/esm/agency.js +90 -33
  74. package/dist/esm/agentKeys.js +21 -17
  75. package/dist/esm/appAssertions.js +11 -10
  76. package/dist/esm/applicationRoles.js +16 -9
  77. package/dist/esm/civic.js +8 -7
  78. package/dist/esm/client/check.js +61 -53
  79. package/dist/esm/consoleOnboarding.js +7 -2
  80. package/dist/esm/contentClaims.js +23 -14
  81. package/dist/esm/deviceDirectory.js +11 -9
  82. package/dist/esm/deviceSession.js +27 -25
  83. package/dist/esm/email/messages.js +18 -16
  84. package/dist/esm/emailAgentContext.js +11 -9
  85. package/dist/esm/externalIdentity.js +15 -11
  86. package/dist/esm/federationInstanceFetch.js +10 -5
  87. package/dist/esm/identity.js +17 -15
  88. package/dist/esm/identityLink.js +6 -4
  89. package/dist/esm/identityProof.js +6 -4
  90. package/dist/esm/inboxPush.js +3 -2
  91. package/dist/esm/index.js +4 -2
  92. package/dist/esm/inference/accountBilling.js +33 -31
  93. package/dist/esm/inference/aliaModelRelease.js +7 -5
  94. package/dist/esm/inference/attribution.js +14 -12
  95. package/dist/esm/inference/catalogue.js +33 -27
  96. package/dist/esm/inference/economics.js +22 -17
  97. package/dist/esm/inference/embeddings.js +9 -7
  98. package/dist/esm/inference/entitlement.js +15 -13
  99. package/dist/esm/inference/errors.js +13 -6
  100. package/dist/esm/inference/identifiers.js +31 -19
  101. package/dist/esm/inference/inbox.js +37 -35
  102. package/dist/esm/inference/modelDocumentation.js +14 -12
  103. package/dist/esm/inference/money.js +3 -2
  104. package/dist/esm/inference/priceVersion.js +8 -3
  105. package/dist/esm/inference/providerConnection.js +19 -12
  106. package/dist/esm/inference/realtime.js +85 -44
  107. package/dist/esm/inference/request.js +25 -23
  108. package/dist/esm/inference/routingPolicy.js +9 -7
  109. package/dist/esm/inference/streamEvents.js +20 -14
  110. package/dist/esm/inference/usage.js +30 -13
  111. package/dist/esm/keyRecovery.js +8 -6
  112. package/dist/esm/keyRotation.js +5 -4
  113. package/dist/esm/linkedAccounts.js +20 -16
  114. package/dist/esm/moderationReputation.js +27 -25
  115. package/dist/esm/notifications.js +23 -7
  116. package/dist/esm/numberChecks.js +41 -0
  117. package/dist/esm/oauth.js +14 -12
  118. package/dist/esm/organizations.js +23 -21
  119. package/dist/esm/products/access.js +10 -8
  120. package/dist/esm/products/billing.js +10 -8
  121. package/dist/esm/products/checkout.js +22 -10
  122. package/dist/esm/products/plans.js +15 -10
  123. package/dist/esm/protocol.js +4 -3
  124. package/dist/esm/recommendations.js +25 -17
  125. package/dist/esm/reputation.js +13 -11
  126. package/dist/esm/safety.js +43 -27
  127. package/dist/esm/serviceToken.js +80 -1
  128. package/dist/esm/sessionRevocation.js +6 -4
  129. package/dist/esm/signIn.js +42 -24
  130. package/dist/esm/stickers.js +17 -13
  131. package/dist/esm/stringChecks.js +63 -0
  132. package/dist/esm/transparency.js +14 -12
  133. package/dist/esm/updates.js +22 -20
  134. package/dist/esm/userInvalidation.js +4 -2
  135. package/dist/esm/userResponse.js +4 -3
  136. package/dist/esm/username.js +3 -2
  137. package/dist/types/accountAccess.d.ts +29 -70
  138. package/dist/types/accountEmail.d.ts +2 -14
  139. package/dist/types/accountGraph.d.ts +179 -171
  140. package/dist/types/accountName.d.ts +1 -1
  141. package/dist/types/accountSubject.d.ts +20 -93
  142. package/dist/types/agency.d.ts +528 -2924
  143. package/dist/types/agentKeys.d.ts +48 -421
  144. package/dist/types/appAssertions.d.ts +56 -210
  145. package/dist/types/applicationRoles.d.ts +30 -276
  146. package/dist/types/avatarCharacter.d.ts +1 -1
  147. package/dist/types/civic.d.ts +1 -13
  148. package/dist/types/client/agentKeys.d.ts +18 -18
  149. package/dist/types/client/appAssertions.d.ts +3 -3
  150. package/dist/types/client/check.d.ts +13 -13
  151. package/dist/types/client/deviceDirectory.d.ts +51 -51
  152. package/dist/types/client/deviceSession.d.ts +14 -14
  153. package/dist/types/client/organizations.d.ts +25 -25
  154. package/dist/types/client/products.d.ts +33 -33
  155. package/dist/types/client/recommendations.d.ts +2 -2
  156. package/dist/types/client/safety.d.ts +45 -45
  157. package/dist/types/client/sessionStatus.d.ts +4 -4
  158. package/dist/types/client/signIn.d.ts +1 -1
  159. package/dist/types/commonsSignIn.d.ts +4 -1
  160. package/dist/types/consoleOnboarding.d.ts +24 -44
  161. package/dist/types/contentClaims.d.ts +24 -180
  162. package/dist/types/deviceDirectory.d.ts +109 -1040
  163. package/dist/types/deviceSession.d.ts +36 -298
  164. package/dist/types/email/messages.d.ts +212 -1793
  165. package/dist/types/emailAgentContext.d.ts +10 -194
  166. package/dist/types/externalIdentity.d.ts +121 -615
  167. package/dist/types/federationInstanceFetch.d.ts +3 -32
  168. package/dist/types/identity.d.ts +15 -92
  169. package/dist/types/identityLink.d.ts +6 -84
  170. package/dist/types/identityProof.d.ts +5 -17
  171. package/dist/types/inboxPush.d.ts +1 -9
  172. package/dist/types/index.d.ts +5 -3
  173. package/dist/types/inference/accountBilling.d.ts +151 -488
  174. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  175. package/dist/types/inference/attribution.d.ts +75 -104
  176. package/dist/types/inference/catalogue.d.ts +417 -1599
  177. package/dist/types/inference/economics.d.ts +69 -276
  178. package/dist/types/inference/embeddings.d.ts +110 -406
  179. package/dist/types/inference/entitlement.d.ts +80 -335
  180. package/dist/types/inference/errors.d.ts +90 -102
  181. package/dist/types/inference/identifiers.d.ts +12 -4
  182. package/dist/types/inference/inbox.d.ts +105 -420
  183. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  184. package/dist/types/inference/money.d.ts +65 -32
  185. package/dist/types/inference/priceVersion.d.ts +53 -120
  186. package/dist/types/inference/providerConnection.d.ts +253 -710
  187. package/dist/types/inference/realtime.d.ts +954 -6825
  188. package/dist/types/inference/request.d.ts +300 -2572
  189. package/dist/types/inference/routingPolicy.d.ts +95 -503
  190. package/dist/types/inference/streamEvents.d.ts +253 -721
  191. package/dist/types/inference/usage.d.ts +317 -950
  192. package/dist/types/keyRecovery.d.ts +3 -51
  193. package/dist/types/keyRotation.d.ts +3 -38
  194. package/dist/types/linkedAccounts.d.ts +50 -236
  195. package/dist/types/moderationReputation.d.ts +81 -14
  196. package/dist/types/notifications.d.ts +19 -51
  197. package/dist/types/numberChecks.d.ts +9 -0
  198. package/dist/types/oauth.d.ts +101 -809
  199. package/dist/types/organizations.d.ts +268 -921
  200. package/dist/types/oxyRecordTypes.d.ts +11 -1
  201. package/dist/types/products/access.d.ts +125 -775
  202. package/dist/types/products/billing.d.ts +67 -503
  203. package/dist/types/products/checkout.d.ts +16 -69
  204. package/dist/types/products/plans.d.ts +33 -366
  205. package/dist/types/recommendations.d.ts +76 -389
  206. package/dist/types/reputation.d.ts +37 -5
  207. package/dist/types/safety.d.ts +408 -2048
  208. package/dist/types/serviceToken.d.ts +247 -7
  209. package/dist/types/sessionRevocation.d.ts +2 -17
  210. package/dist/types/sessionStatus.d.ts +27 -115
  211. package/dist/types/signIn.d.ts +53 -553
  212. package/dist/types/stickers.d.ts +67 -819
  213. package/dist/types/stringChecks.d.ts +16 -0
  214. package/dist/types/transparency.d.ts +14 -302
  215. package/dist/types/updates.d.ts +60 -316
  216. package/dist/types/userInvalidation.d.ts +4 -13
  217. package/dist/types/userResponse.d.ts +302 -2400
  218. package/dist/types/username.d.ts +3 -3
  219. package/package.json +2 -2
@@ -5,7 +5,13 @@ export type { AgentProofAction, AccountAuthMethod } from './client/agentKeys';
5
5
  export declare const agentProofClaimsSchema: z.ZodObject<{
6
6
  version: z.ZodLiteral<1>;
7
7
  audience: z.ZodLiteral<"oxy-api/agent">;
8
- action: z.ZodEnum<["agent_signin", "agent_enroll", "agent_rotate", "agent_recover", "agent_governance"]>;
8
+ action: z.ZodEnum<{
9
+ agent_signin: "agent_signin";
10
+ agent_enroll: "agent_enroll";
11
+ agent_rotate: "agent_rotate";
12
+ agent_recover: "agent_recover";
13
+ agent_governance: "agent_governance";
14
+ }>;
9
15
  accountId: z.ZodString;
10
16
  actorId: z.ZodString;
11
17
  authMethodId: z.ZodNullable<z.ZodString>;
@@ -13,29 +19,7 @@ export declare const agentProofClaimsSchema: z.ZodObject<{
13
19
  payloadDigest: z.ZodString;
14
20
  challenge: z.ZodString;
15
21
  expiresAt: z.ZodNumber;
16
- }, "strict", z.ZodTypeAny, {
17
- accountId: string;
18
- expiresAt: number;
19
- version: 1;
20
- audience: "oxy-api/agent";
21
- action: "agent_signin" | "agent_enroll" | "agent_rotate" | "agent_recover" | "agent_governance";
22
- challenge: string;
23
- actorId: string;
24
- authMethodId: string | null;
25
- publicKey: string;
26
- payloadDigest: string;
27
- }, {
28
- accountId: string;
29
- expiresAt: number;
30
- version: 1;
31
- audience: "oxy-api/agent";
32
- action: "agent_signin" | "agent_enroll" | "agent_rotate" | "agent_recover" | "agent_governance";
33
- challenge: string;
34
- actorId: string;
35
- authMethodId: string | null;
36
- publicKey: string;
37
- payloadDigest: string;
38
- }>;
22
+ }, z.core.$strict>;
39
23
  export type AgentProofClaims = z.infer<typeof agentProofClaimsSchema>;
40
24
  /** Different proof roles cannot substitute for one another on the same operation. */
41
25
  export declare function buildAgentProofMessage(claims: AgentProofClaims, timestamp: number, role?: 'credential' | 'governor'): string;
@@ -43,362 +27,97 @@ export declare const agentSignatureSchema: z.ZodObject<{
43
27
  challenge: z.ZodString;
44
28
  signature: z.ZodString;
45
29
  timestamp: z.ZodNumber;
46
- }, "strict", z.ZodTypeAny, {
47
- signature: string;
48
- challenge: string;
49
- timestamp: number;
50
- }, {
51
- signature: string;
52
- challenge: string;
53
- timestamp: number;
54
- }>;
30
+ }, z.core.$strict>;
55
31
  export type AgentSignature = z.infer<typeof agentSignatureSchema>;
56
32
  export declare const agentChallengeRequestSchema: z.ZodObject<{
57
33
  publicKey: z.ZodString;
58
- }, "strict", z.ZodTypeAny, {
59
- publicKey: string;
60
- }, {
61
- publicKey: string;
62
- }>;
34
+ }, z.core.$strict>;
63
35
  export type AgentChallengeRequest = z.infer<typeof agentChallengeRequestSchema>;
64
36
  export declare const agentVerifyRequestSchema: z.ZodObject<{
65
37
  challenge: z.ZodString;
66
38
  signature: z.ZodString;
67
39
  timestamp: z.ZodNumber;
68
- } & {
69
40
  publicKey: z.ZodString;
70
- }, "strict", z.ZodTypeAny, {
71
- signature: string;
72
- challenge: string;
73
- publicKey: string;
74
- timestamp: number;
75
- }, {
76
- signature: string;
77
- challenge: string;
78
- publicKey: string;
79
- timestamp: number;
80
- }>;
41
+ }, z.core.$strict>;
81
42
  export type AgentVerifyRequest = z.infer<typeof agentVerifyRequestSchema>;
82
- export declare const agentKeyOperationSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
43
+ export declare const agentKeyOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
83
44
  publicKey: z.ZodString;
84
45
  label: z.ZodString;
85
46
  operation: z.ZodLiteral<"enroll">;
86
- }, "strict", z.ZodTypeAny, {
87
- publicKey: string;
88
- operation: "enroll";
89
- label: string;
90
- }, {
91
- publicKey: string;
92
- operation: "enroll";
93
- label: string;
94
- }>, z.ZodObject<{
47
+ }, z.core.$strict>, z.ZodObject<{
95
48
  publicKey: z.ZodString;
96
49
  label: z.ZodString;
97
50
  operation: z.ZodLiteral<"recover">;
98
- }, "strict", z.ZodTypeAny, {
99
- publicKey: string;
100
- operation: "recover";
101
- label: string;
102
- }, {
103
- publicKey: string;
104
- operation: "recover";
105
- label: string;
106
- }>, z.ZodObject<{
51
+ }, z.core.$strict>, z.ZodObject<{
107
52
  retireCurrent: z.ZodOptional<z.ZodBoolean>;
108
53
  publicKey: z.ZodString;
109
54
  label: z.ZodString;
110
55
  operation: z.ZodLiteral<"rotate">;
111
- }, "strict", z.ZodTypeAny, {
112
- publicKey: string;
113
- operation: "rotate";
114
- label: string;
115
- retireCurrent?: boolean | undefined;
116
- }, {
117
- publicKey: string;
118
- operation: "rotate";
119
- label: string;
120
- retireCurrent?: boolean | undefined;
121
- }>, z.ZodObject<{
56
+ }, z.core.$strict>, z.ZodObject<{
122
57
  operation: z.ZodLiteral<"revoke">;
123
58
  methodId: z.ZodString;
124
- }, "strict", z.ZodTypeAny, {
125
- operation: "revoke";
126
- methodId: string;
127
- }, {
128
- operation: "revoke";
129
- methodId: string;
130
- }>]>;
59
+ }, z.core.$strict>], "operation">;
131
60
  export type AgentKeyOperation = z.infer<typeof agentKeyOperationSchema>;
132
61
  export declare const agentKeyOperationProofSchema: z.ZodObject<{
133
62
  challenge: z.ZodString;
134
63
  timestamp: z.ZodNumber;
135
64
  keySignature: z.ZodOptional<z.ZodString>;
136
65
  governorSignature: z.ZodOptional<z.ZodString>;
137
- reauth: z.ZodOptional<z.ZodEffects<z.ZodObject<{
66
+ reauth: z.ZodOptional<z.ZodObject<{
138
67
  password: z.ZodOptional<z.ZodString>;
139
68
  emailCode: z.ZodOptional<z.ZodObject<{
140
69
  verificationId: z.ZodString;
141
70
  code: z.ZodString;
142
- }, "strict", z.ZodTypeAny, {
143
- code: string;
144
- verificationId: string;
145
- }, {
146
- code: string;
147
- verificationId: string;
148
- }>>;
71
+ }, z.core.$strict>>;
149
72
  totpCode: z.ZodOptional<z.ZodString>;
150
- }, "strict", z.ZodTypeAny, {
151
- password?: string | undefined;
152
- emailCode?: {
153
- code: string;
154
- verificationId: string;
155
- } | undefined;
156
- totpCode?: string | undefined;
157
- }, {
158
- password?: string | undefined;
159
- emailCode?: {
160
- code: string;
161
- verificationId: string;
162
- } | undefined;
163
- totpCode?: string | undefined;
164
- }>, {
165
- password?: string | undefined;
166
- emailCode?: {
167
- code: string;
168
- verificationId: string;
169
- } | undefined;
170
- totpCode?: string | undefined;
171
- }, {
172
- password?: string | undefined;
173
- emailCode?: {
174
- code: string;
175
- verificationId: string;
176
- } | undefined;
177
- totpCode?: string | undefined;
178
- }>>;
179
- }, "strict", z.ZodTypeAny, {
180
- challenge: string;
181
- timestamp: number;
182
- reauth?: {
183
- password?: string | undefined;
184
- emailCode?: {
185
- code: string;
186
- verificationId: string;
187
- } | undefined;
188
- totpCode?: string | undefined;
189
- } | undefined;
190
- keySignature?: string | undefined;
191
- governorSignature?: string | undefined;
192
- }, {
193
- challenge: string;
194
- timestamp: number;
195
- reauth?: {
196
- password?: string | undefined;
197
- emailCode?: {
198
- code: string;
199
- verificationId: string;
200
- } | undefined;
201
- totpCode?: string | undefined;
202
- } | undefined;
203
- keySignature?: string | undefined;
204
- governorSignature?: string | undefined;
205
- }>;
73
+ }, z.core.$strict>>;
74
+ }, z.core.$strict>;
206
75
  export type AgentKeyOperationProof = z.infer<typeof agentKeyOperationProofSchema>;
207
76
  export declare const executeAgentKeyOperationSchema: z.ZodObject<{
208
- operation: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
77
+ operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
209
78
  publicKey: z.ZodString;
210
79
  label: z.ZodString;
211
80
  operation: z.ZodLiteral<"enroll">;
212
- }, "strict", z.ZodTypeAny, {
213
- publicKey: string;
214
- operation: "enroll";
215
- label: string;
216
- }, {
217
- publicKey: string;
218
- operation: "enroll";
219
- label: string;
220
- }>, z.ZodObject<{
81
+ }, z.core.$strict>, z.ZodObject<{
221
82
  publicKey: z.ZodString;
222
83
  label: z.ZodString;
223
84
  operation: z.ZodLiteral<"recover">;
224
- }, "strict", z.ZodTypeAny, {
225
- publicKey: string;
226
- operation: "recover";
227
- label: string;
228
- }, {
229
- publicKey: string;
230
- operation: "recover";
231
- label: string;
232
- }>, z.ZodObject<{
85
+ }, z.core.$strict>, z.ZodObject<{
233
86
  retireCurrent: z.ZodOptional<z.ZodBoolean>;
234
87
  publicKey: z.ZodString;
235
88
  label: z.ZodString;
236
89
  operation: z.ZodLiteral<"rotate">;
237
- }, "strict", z.ZodTypeAny, {
238
- publicKey: string;
239
- operation: "rotate";
240
- label: string;
241
- retireCurrent?: boolean | undefined;
242
- }, {
243
- publicKey: string;
244
- operation: "rotate";
245
- label: string;
246
- retireCurrent?: boolean | undefined;
247
- }>, z.ZodObject<{
90
+ }, z.core.$strict>, z.ZodObject<{
248
91
  operation: z.ZodLiteral<"revoke">;
249
92
  methodId: z.ZodString;
250
- }, "strict", z.ZodTypeAny, {
251
- operation: "revoke";
252
- methodId: string;
253
- }, {
254
- operation: "revoke";
255
- methodId: string;
256
- }>]>;
93
+ }, z.core.$strict>], "operation">;
257
94
  proof: z.ZodObject<{
258
95
  challenge: z.ZodString;
259
96
  timestamp: z.ZodNumber;
260
97
  keySignature: z.ZodOptional<z.ZodString>;
261
98
  governorSignature: z.ZodOptional<z.ZodString>;
262
- reauth: z.ZodOptional<z.ZodEffects<z.ZodObject<{
99
+ reauth: z.ZodOptional<z.ZodObject<{
263
100
  password: z.ZodOptional<z.ZodString>;
264
101
  emailCode: z.ZodOptional<z.ZodObject<{
265
102
  verificationId: z.ZodString;
266
103
  code: z.ZodString;
267
- }, "strict", z.ZodTypeAny, {
268
- code: string;
269
- verificationId: string;
270
- }, {
271
- code: string;
272
- verificationId: string;
273
- }>>;
104
+ }, z.core.$strict>>;
274
105
  totpCode: z.ZodOptional<z.ZodString>;
275
- }, "strict", z.ZodTypeAny, {
276
- password?: string | undefined;
277
- emailCode?: {
278
- code: string;
279
- verificationId: string;
280
- } | undefined;
281
- totpCode?: string | undefined;
282
- }, {
283
- password?: string | undefined;
284
- emailCode?: {
285
- code: string;
286
- verificationId: string;
287
- } | undefined;
288
- totpCode?: string | undefined;
289
- }>, {
290
- password?: string | undefined;
291
- emailCode?: {
292
- code: string;
293
- verificationId: string;
294
- } | undefined;
295
- totpCode?: string | undefined;
296
- }, {
297
- password?: string | undefined;
298
- emailCode?: {
299
- code: string;
300
- verificationId: string;
301
- } | undefined;
302
- totpCode?: string | undefined;
303
- }>>;
304
- }, "strict", z.ZodTypeAny, {
305
- challenge: string;
306
- timestamp: number;
307
- reauth?: {
308
- password?: string | undefined;
309
- emailCode?: {
310
- code: string;
311
- verificationId: string;
312
- } | undefined;
313
- totpCode?: string | undefined;
314
- } | undefined;
315
- keySignature?: string | undefined;
316
- governorSignature?: string | undefined;
317
- }, {
318
- challenge: string;
319
- timestamp: number;
320
- reauth?: {
321
- password?: string | undefined;
322
- emailCode?: {
323
- code: string;
324
- verificationId: string;
325
- } | undefined;
326
- totpCode?: string | undefined;
327
- } | undefined;
328
- keySignature?: string | undefined;
329
- governorSignature?: string | undefined;
330
- }>;
331
- }, "strict", z.ZodTypeAny, {
332
- operation: {
333
- publicKey: string;
334
- operation: "enroll";
335
- label: string;
336
- } | {
337
- publicKey: string;
338
- operation: "recover";
339
- label: string;
340
- } | {
341
- publicKey: string;
342
- operation: "rotate";
343
- label: string;
344
- retireCurrent?: boolean | undefined;
345
- } | {
346
- operation: "revoke";
347
- methodId: string;
348
- };
349
- proof: {
350
- challenge: string;
351
- timestamp: number;
352
- reauth?: {
353
- password?: string | undefined;
354
- emailCode?: {
355
- code: string;
356
- verificationId: string;
357
- } | undefined;
358
- totpCode?: string | undefined;
359
- } | undefined;
360
- keySignature?: string | undefined;
361
- governorSignature?: string | undefined;
362
- };
363
- }, {
364
- operation: {
365
- publicKey: string;
366
- operation: "enroll";
367
- label: string;
368
- } | {
369
- publicKey: string;
370
- operation: "recover";
371
- label: string;
372
- } | {
373
- publicKey: string;
374
- operation: "rotate";
375
- label: string;
376
- retireCurrent?: boolean | undefined;
377
- } | {
378
- operation: "revoke";
379
- methodId: string;
380
- };
381
- proof: {
382
- challenge: string;
383
- timestamp: number;
384
- reauth?: {
385
- password?: string | undefined;
386
- emailCode?: {
387
- code: string;
388
- verificationId: string;
389
- } | undefined;
390
- totpCode?: string | undefined;
391
- } | undefined;
392
- keySignature?: string | undefined;
393
- governorSignature?: string | undefined;
394
- };
395
- }>;
106
+ }, z.core.$strict>>;
107
+ }, z.core.$strict>;
108
+ }, z.core.$strict>;
396
109
  export type ExecuteAgentKeyOperation = z.infer<typeof executeAgentKeyOperationSchema>;
397
110
  export declare const agentKeyOperationChallengeSchema: z.ZodObject<{
398
111
  claims: z.ZodObject<{
399
112
  version: z.ZodLiteral<1>;
400
113
  audience: z.ZodLiteral<"oxy-api/agent">;
401
- action: z.ZodEnum<["agent_signin", "agent_enroll", "agent_rotate", "agent_recover", "agent_governance"]>;
114
+ action: z.ZodEnum<{
115
+ agent_signin: "agent_signin";
116
+ agent_enroll: "agent_enroll";
117
+ agent_rotate: "agent_rotate";
118
+ agent_recover: "agent_recover";
119
+ agent_governance: "agent_governance";
120
+ }>;
402
121
  accountId: z.ZodString;
403
122
  actorId: z.ZodString;
404
123
  authMethodId: z.ZodNullable<z.ZodString>;
@@ -406,70 +125,14 @@ export declare const agentKeyOperationChallengeSchema: z.ZodObject<{
406
125
  payloadDigest: z.ZodString;
407
126
  challenge: z.ZodString;
408
127
  expiresAt: z.ZodNumber;
409
- }, "strict", z.ZodTypeAny, {
410
- accountId: string;
411
- expiresAt: number;
412
- version: 1;
413
- audience: "oxy-api/agent";
414
- action: "agent_signin" | "agent_enroll" | "agent_rotate" | "agent_recover" | "agent_governance";
415
- challenge: string;
416
- actorId: string;
417
- authMethodId: string | null;
418
- publicKey: string;
419
- payloadDigest: string;
420
- }, {
421
- accountId: string;
422
- expiresAt: number;
423
- version: 1;
424
- audience: "oxy-api/agent";
425
- action: "agent_signin" | "agent_enroll" | "agent_rotate" | "agent_recover" | "agent_governance";
426
- challenge: string;
427
- actorId: string;
428
- authMethodId: string | null;
429
- publicKey: string;
430
- payloadDigest: string;
431
- }>;
128
+ }, z.core.$strict>;
432
129
  governorPublicKey: z.ZodNullable<z.ZodString>;
433
- }, "strict", z.ZodTypeAny, {
434
- claims: {
435
- accountId: string;
436
- expiresAt: number;
437
- version: 1;
438
- audience: "oxy-api/agent";
439
- action: "agent_signin" | "agent_enroll" | "agent_rotate" | "agent_recover" | "agent_governance";
440
- challenge: string;
441
- actorId: string;
442
- authMethodId: string | null;
443
- publicKey: string;
444
- payloadDigest: string;
445
- };
446
- governorPublicKey: string | null;
447
- }, {
448
- claims: {
449
- accountId: string;
450
- expiresAt: number;
451
- version: 1;
452
- audience: "oxy-api/agent";
453
- action: "agent_signin" | "agent_enroll" | "agent_rotate" | "agent_recover" | "agent_governance";
454
- challenge: string;
455
- actorId: string;
456
- authMethodId: string | null;
457
- publicKey: string;
458
- payloadDigest: string;
459
- };
460
- governorPublicKey: string | null;
461
- }>;
130
+ }, z.core.$strict>;
462
131
  export type AgentKeyOperationChallenge = z.infer<typeof agentKeyOperationChallengeSchema>;
463
132
  export declare const agentKeyOperationResultSchema: z.ZodObject<{
464
133
  methodId: z.ZodNullable<z.ZodString>;
465
- revokedMethodIds: z.ZodArray<z.ZodString, "many">;
466
- }, "strict", z.ZodTypeAny, {
467
- methodId: string | null;
468
- revokedMethodIds: string[];
469
- }, {
470
- methodId: string | null;
471
- revokedMethodIds: string[];
472
- }>;
134
+ revokedMethodIds: z.ZodArray<z.ZodString>;
135
+ }, z.core.$strict>;
473
136
  export type AgentKeyOperationResult = z.infer<typeof agentKeyOperationResultSchema>;
474
137
  /** Public credential inventory. Never includes a proof, bearer or private key. */
475
138
  export declare const agentKeyListResponseSchema: z.ZodObject<{
@@ -478,50 +141,14 @@ export declare const agentKeyListResponseSchema: z.ZodObject<{
478
141
  publicKey: z.ZodString;
479
142
  label: z.ZodString;
480
143
  enrolledByUserId: z.ZodNullable<z.ZodString>;
481
- enrollmentMethod: z.ZodEnum<["governor", "rotation", "recovery"]>;
144
+ enrollmentMethod: z.ZodEnum<{
145
+ governor: "governor";
146
+ rotation: "rotation";
147
+ recovery: "recovery";
148
+ }>;
482
149
  linkedAt: z.ZodString;
483
150
  lastUsedAt: z.ZodNullable<z.ZodString>;
484
151
  revokedAt: z.ZodNullable<z.ZodString>;
485
- }, "strict", z.ZodTypeAny, {
486
- id: string;
487
- revokedAt: string | null;
488
- publicKey: string;
489
- label: string;
490
- enrolledByUserId: string | null;
491
- enrollmentMethod: "governor" | "rotation" | "recovery";
492
- linkedAt: string;
493
- lastUsedAt: string | null;
494
- }, {
495
- id: string;
496
- revokedAt: string | null;
497
- publicKey: string;
498
- label: string;
499
- enrolledByUserId: string | null;
500
- enrollmentMethod: "governor" | "rotation" | "recovery";
501
- linkedAt: string;
502
- lastUsedAt: string | null;
503
- }>, "many">;
504
- }, "strict", z.ZodTypeAny, {
505
- keys: {
506
- id: string;
507
- revokedAt: string | null;
508
- publicKey: string;
509
- label: string;
510
- enrolledByUserId: string | null;
511
- enrollmentMethod: "governor" | "rotation" | "recovery";
512
- linkedAt: string;
513
- lastUsedAt: string | null;
514
- }[];
515
- }, {
516
- keys: {
517
- id: string;
518
- revokedAt: string | null;
519
- publicKey: string;
520
- label: string;
521
- enrolledByUserId: string | null;
522
- enrollmentMethod: "governor" | "rotation" | "recovery";
523
- linkedAt: string;
524
- lastUsedAt: string | null;
525
- }[];
526
- }>;
152
+ }, z.core.$strict>>;
153
+ }, z.core.$strict>;
527
154
  export type AgentKeyListResponse = z.infer<typeof agentKeyListResponseSchema>;