@oxy.so/contracts 5.7.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 (227) 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/client/consoleOnboarding.js +24 -0
  12. package/dist/cjs/client/index.js +7 -3
  13. package/dist/cjs/client/safety.js +9 -1
  14. package/dist/cjs/consoleOnboarding.js +56 -0
  15. package/dist/cjs/contentClaims.js +23 -14
  16. package/dist/cjs/deviceDirectory.js +11 -9
  17. package/dist/cjs/deviceSession.js +27 -25
  18. package/dist/cjs/email/messages.js +20 -18
  19. package/dist/cjs/emailAgentContext.js +11 -9
  20. package/dist/cjs/externalIdentity.js +15 -11
  21. package/dist/cjs/federationInstanceFetch.js +12 -7
  22. package/dist/cjs/identity.js +19 -17
  23. package/dist/cjs/identityLink.js +6 -4
  24. package/dist/cjs/identityProof.js +6 -4
  25. package/dist/cjs/inboxPush.js +5 -4
  26. package/dist/cjs/index.js +16 -6
  27. package/dist/cjs/inference/accountBilling.js +35 -33
  28. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  29. package/dist/cjs/inference/attribution.js +14 -12
  30. package/dist/cjs/inference/catalogue.js +35 -29
  31. package/dist/cjs/inference/economics.js +24 -19
  32. package/dist/cjs/inference/embeddings.js +9 -7
  33. package/dist/cjs/inference/entitlement.js +17 -15
  34. package/dist/cjs/inference/errors.js +15 -8
  35. package/dist/cjs/inference/identifiers.js +33 -21
  36. package/dist/cjs/inference/inbox.js +37 -35
  37. package/dist/cjs/inference/modelDocumentation.js +16 -14
  38. package/dist/cjs/inference/money.js +5 -4
  39. package/dist/cjs/inference/priceVersion.js +10 -5
  40. package/dist/cjs/inference/providerConnection.js +21 -14
  41. package/dist/cjs/inference/realtime.js +88 -47
  42. package/dist/cjs/inference/request.js +27 -25
  43. package/dist/cjs/inference/routingPolicy.js +12 -10
  44. package/dist/cjs/inference/streamEvents.js +22 -16
  45. package/dist/cjs/inference/usage.js +32 -15
  46. package/dist/cjs/keyRecovery.js +8 -6
  47. package/dist/cjs/keyRotation.js +5 -4
  48. package/dist/cjs/linkedAccounts.js +22 -18
  49. package/dist/cjs/moderationReputation.js +29 -27
  50. package/dist/cjs/notifications.js +25 -9
  51. package/dist/cjs/numberChecks.js +45 -0
  52. package/dist/cjs/oauth.js +14 -12
  53. package/dist/cjs/organizations.js +23 -21
  54. package/dist/cjs/products/access.js +10 -8
  55. package/dist/cjs/products/billing.js +10 -8
  56. package/dist/cjs/products/checkout.js +22 -10
  57. package/dist/cjs/products/plans.js +15 -10
  58. package/dist/cjs/protocol.js +6 -5
  59. package/dist/cjs/recommendations.js +27 -19
  60. package/dist/cjs/reputation.js +15 -13
  61. package/dist/cjs/safety.js +46 -29
  62. package/dist/cjs/serviceToken.js +81 -2
  63. package/dist/cjs/sessionRevocation.js +8 -6
  64. package/dist/cjs/signIn.js +42 -24
  65. package/dist/cjs/stickers.js +19 -15
  66. package/dist/cjs/stringChecks.js +70 -0
  67. package/dist/cjs/transparency.js +14 -12
  68. package/dist/cjs/updates.js +24 -22
  69. package/dist/cjs/userInvalidation.js +7 -5
  70. package/dist/cjs/userResponse.js +8 -7
  71. package/dist/cjs/username.js +7 -6
  72. package/dist/esm/accountAccess.js +4 -3
  73. package/dist/esm/accountEmail.js +13 -5
  74. package/dist/esm/accountGraph.js +8 -7
  75. package/dist/esm/accountName.js +3 -2
  76. package/dist/esm/agency.js +90 -33
  77. package/dist/esm/agentKeys.js +21 -17
  78. package/dist/esm/appAssertions.js +11 -10
  79. package/dist/esm/applicationRoles.js +16 -9
  80. package/dist/esm/civic.js +8 -7
  81. package/dist/esm/client/check.js +61 -53
  82. package/dist/esm/client/consoleOnboarding.js +21 -0
  83. package/dist/esm/client/index.js +2 -1
  84. package/dist/esm/client/safety.js +8 -0
  85. package/dist/esm/consoleOnboarding.js +51 -0
  86. package/dist/esm/contentClaims.js +23 -14
  87. package/dist/esm/deviceDirectory.js +11 -9
  88. package/dist/esm/deviceSession.js +27 -25
  89. package/dist/esm/email/messages.js +18 -16
  90. package/dist/esm/emailAgentContext.js +11 -9
  91. package/dist/esm/externalIdentity.js +15 -11
  92. package/dist/esm/federationInstanceFetch.js +10 -5
  93. package/dist/esm/identity.js +17 -15
  94. package/dist/esm/identityLink.js +6 -4
  95. package/dist/esm/identityProof.js +6 -4
  96. package/dist/esm/inboxPush.js +3 -2
  97. package/dist/esm/index.js +5 -2
  98. package/dist/esm/inference/accountBilling.js +33 -31
  99. package/dist/esm/inference/aliaModelRelease.js +7 -5
  100. package/dist/esm/inference/attribution.js +14 -12
  101. package/dist/esm/inference/catalogue.js +33 -27
  102. package/dist/esm/inference/economics.js +22 -17
  103. package/dist/esm/inference/embeddings.js +9 -7
  104. package/dist/esm/inference/entitlement.js +15 -13
  105. package/dist/esm/inference/errors.js +13 -6
  106. package/dist/esm/inference/identifiers.js +31 -19
  107. package/dist/esm/inference/inbox.js +37 -35
  108. package/dist/esm/inference/modelDocumentation.js +14 -12
  109. package/dist/esm/inference/money.js +3 -2
  110. package/dist/esm/inference/priceVersion.js +8 -3
  111. package/dist/esm/inference/providerConnection.js +19 -12
  112. package/dist/esm/inference/realtime.js +85 -44
  113. package/dist/esm/inference/request.js +25 -23
  114. package/dist/esm/inference/routingPolicy.js +9 -7
  115. package/dist/esm/inference/streamEvents.js +20 -14
  116. package/dist/esm/inference/usage.js +30 -13
  117. package/dist/esm/keyRecovery.js +8 -6
  118. package/dist/esm/keyRotation.js +5 -4
  119. package/dist/esm/linkedAccounts.js +20 -16
  120. package/dist/esm/moderationReputation.js +27 -25
  121. package/dist/esm/notifications.js +23 -7
  122. package/dist/esm/numberChecks.js +41 -0
  123. package/dist/esm/oauth.js +14 -12
  124. package/dist/esm/organizations.js +23 -21
  125. package/dist/esm/products/access.js +10 -8
  126. package/dist/esm/products/billing.js +10 -8
  127. package/dist/esm/products/checkout.js +22 -10
  128. package/dist/esm/products/plans.js +15 -10
  129. package/dist/esm/protocol.js +4 -3
  130. package/dist/esm/recommendations.js +25 -17
  131. package/dist/esm/reputation.js +13 -11
  132. package/dist/esm/safety.js +45 -29
  133. package/dist/esm/serviceToken.js +80 -1
  134. package/dist/esm/sessionRevocation.js +6 -4
  135. package/dist/esm/signIn.js +42 -24
  136. package/dist/esm/stickers.js +17 -13
  137. package/dist/esm/stringChecks.js +63 -0
  138. package/dist/esm/transparency.js +14 -12
  139. package/dist/esm/updates.js +22 -20
  140. package/dist/esm/userInvalidation.js +4 -2
  141. package/dist/esm/userResponse.js +4 -3
  142. package/dist/esm/username.js +3 -2
  143. package/dist/types/accountAccess.d.ts +29 -70
  144. package/dist/types/accountEmail.d.ts +2 -14
  145. package/dist/types/accountGraph.d.ts +179 -171
  146. package/dist/types/accountName.d.ts +1 -1
  147. package/dist/types/accountSubject.d.ts +20 -93
  148. package/dist/types/agency.d.ts +528 -2924
  149. package/dist/types/agentKeys.d.ts +48 -421
  150. package/dist/types/appAssertions.d.ts +56 -210
  151. package/dist/types/applicationRoles.d.ts +30 -276
  152. package/dist/types/avatarCharacter.d.ts +1 -1
  153. package/dist/types/civic.d.ts +1 -13
  154. package/dist/types/client/agentKeys.d.ts +18 -18
  155. package/dist/types/client/appAssertions.d.ts +3 -3
  156. package/dist/types/client/check.d.ts +13 -13
  157. package/dist/types/client/consoleOnboarding.d.ts +16 -0
  158. package/dist/types/client/deviceDirectory.d.ts +51 -51
  159. package/dist/types/client/deviceSession.d.ts +14 -14
  160. package/dist/types/client/index.d.ts +2 -1
  161. package/dist/types/client/organizations.d.ts +25 -25
  162. package/dist/types/client/products.d.ts +33 -33
  163. package/dist/types/client/recommendations.d.ts +2 -2
  164. package/dist/types/client/safety.d.ts +53 -45
  165. package/dist/types/client/sessionStatus.d.ts +4 -4
  166. package/dist/types/client/signIn.d.ts +1 -1
  167. package/dist/types/commonsSignIn.d.ts +4 -1
  168. package/dist/types/consoleOnboarding.d.ts +57 -0
  169. package/dist/types/contentClaims.d.ts +24 -180
  170. package/dist/types/deviceDirectory.d.ts +109 -1040
  171. package/dist/types/deviceSession.d.ts +36 -298
  172. package/dist/types/email/messages.d.ts +212 -1793
  173. package/dist/types/emailAgentContext.d.ts +10 -194
  174. package/dist/types/externalIdentity.d.ts +121 -615
  175. package/dist/types/federationInstanceFetch.d.ts +3 -32
  176. package/dist/types/identity.d.ts +15 -92
  177. package/dist/types/identityLink.d.ts +6 -84
  178. package/dist/types/identityProof.d.ts +5 -17
  179. package/dist/types/inboxPush.d.ts +1 -9
  180. package/dist/types/index.d.ts +6 -3
  181. package/dist/types/inference/accountBilling.d.ts +151 -488
  182. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  183. package/dist/types/inference/attribution.d.ts +75 -104
  184. package/dist/types/inference/catalogue.d.ts +417 -1599
  185. package/dist/types/inference/economics.d.ts +69 -276
  186. package/dist/types/inference/embeddings.d.ts +110 -406
  187. package/dist/types/inference/entitlement.d.ts +80 -335
  188. package/dist/types/inference/errors.d.ts +90 -102
  189. package/dist/types/inference/identifiers.d.ts +12 -4
  190. package/dist/types/inference/inbox.d.ts +105 -420
  191. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  192. package/dist/types/inference/money.d.ts +65 -32
  193. package/dist/types/inference/priceVersion.d.ts +53 -120
  194. package/dist/types/inference/providerConnection.d.ts +253 -710
  195. package/dist/types/inference/realtime.d.ts +954 -6825
  196. package/dist/types/inference/request.d.ts +300 -2572
  197. package/dist/types/inference/routingPolicy.d.ts +95 -503
  198. package/dist/types/inference/streamEvents.d.ts +253 -721
  199. package/dist/types/inference/usage.d.ts +317 -950
  200. package/dist/types/keyRecovery.d.ts +3 -51
  201. package/dist/types/keyRotation.d.ts +3 -38
  202. package/dist/types/linkedAccounts.d.ts +50 -236
  203. package/dist/types/moderationReputation.d.ts +81 -14
  204. package/dist/types/notifications.d.ts +19 -51
  205. package/dist/types/numberChecks.d.ts +9 -0
  206. package/dist/types/oauth.d.ts +101 -809
  207. package/dist/types/organizations.d.ts +268 -921
  208. package/dist/types/oxyRecordTypes.d.ts +11 -1
  209. package/dist/types/products/access.d.ts +125 -775
  210. package/dist/types/products/billing.d.ts +67 -503
  211. package/dist/types/products/checkout.d.ts +16 -69
  212. package/dist/types/products/plans.d.ts +33 -366
  213. package/dist/types/recommendations.d.ts +76 -389
  214. package/dist/types/reputation.d.ts +37 -5
  215. package/dist/types/safety.d.ts +410 -2050
  216. package/dist/types/serviceToken.d.ts +247 -7
  217. package/dist/types/sessionRevocation.d.ts +2 -17
  218. package/dist/types/sessionStatus.d.ts +27 -115
  219. package/dist/types/signIn.d.ts +53 -553
  220. package/dist/types/stickers.d.ts +67 -819
  221. package/dist/types/stringChecks.d.ts +16 -0
  222. package/dist/types/transparency.d.ts +14 -302
  223. package/dist/types/updates.d.ts +60 -316
  224. package/dist/types/userInvalidation.d.ts +4 -13
  225. package/dist/types/userResponse.d.ts +302 -2400
  226. package/dist/types/username.d.ts +3 -3
  227. package/package.json +3 -4
@@ -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>;