@oxy.so/contracts 5.8.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/accountAccess.js +6 -5
- package/dist/cjs/accountEmail.js +13 -5
- package/dist/cjs/accountGraph.js +10 -9
- package/dist/cjs/accountName.js +3 -2
- package/dist/cjs/agency.js +91 -34
- package/dist/cjs/agentKeys.js +21 -17
- package/dist/cjs/appAssertions.js +14 -13
- package/dist/cjs/applicationRoles.js +19 -12
- package/dist/cjs/campaignAttribution.js +28 -0
- package/dist/cjs/civic.js +10 -9
- package/dist/cjs/client/campaignAttribution.js +14 -0
- package/dist/cjs/client/check.js +61 -53
- package/dist/cjs/client/index.js +7 -1
- package/dist/cjs/client/language.js +7 -0
- package/dist/cjs/consoleOnboarding.js +9 -4
- package/dist/cjs/contentClaims.js +23 -14
- package/dist/cjs/deviceDirectory.js +11 -9
- package/dist/cjs/deviceSession.js +27 -25
- package/dist/cjs/email/messages.js +20 -18
- package/dist/cjs/emailAgentContext.js +11 -9
- package/dist/cjs/externalIdentity.js +15 -11
- package/dist/cjs/federationInstanceFetch.js +12 -7
- package/dist/cjs/identity.js +19 -17
- package/dist/cjs/identityLink.js +6 -4
- package/dist/cjs/identityProof.js +6 -4
- package/dist/cjs/inboxPush.js +5 -4
- package/dist/cjs/index.js +17 -6
- package/dist/cjs/inference/accountBilling.js +35 -33
- package/dist/cjs/inference/aliaModelRelease.js +9 -7
- package/dist/cjs/inference/attribution.js +14 -12
- package/dist/cjs/inference/catalogue.js +35 -29
- package/dist/cjs/inference/economics.js +24 -19
- package/dist/cjs/inference/embeddings.js +9 -7
- package/dist/cjs/inference/entitlement.js +17 -15
- package/dist/cjs/inference/errors.js +15 -8
- package/dist/cjs/inference/identifiers.js +33 -21
- package/dist/cjs/inference/inbox.js +37 -35
- package/dist/cjs/inference/modelDocumentation.js +16 -14
- package/dist/cjs/inference/money.js +5 -4
- package/dist/cjs/inference/priceVersion.js +10 -5
- package/dist/cjs/inference/providerConnection.js +21 -14
- package/dist/cjs/inference/realtime.js +88 -47
- package/dist/cjs/inference/request.js +27 -25
- package/dist/cjs/inference/routingPolicy.js +12 -10
- package/dist/cjs/inference/streamEvents.js +22 -16
- package/dist/cjs/inference/usage.js +32 -15
- package/dist/cjs/keyRecovery.js +8 -6
- package/dist/cjs/keyRotation.js +5 -4
- package/dist/cjs/linkedAccounts.js +22 -18
- package/dist/cjs/moderationReputation.js +29 -27
- package/dist/cjs/notifications.js +25 -9
- package/dist/cjs/numberChecks.js +45 -0
- package/dist/cjs/oauth.js +14 -12
- package/dist/cjs/organizations.js +23 -21
- package/dist/cjs/products/access.js +10 -8
- package/dist/cjs/products/billing.js +10 -8
- package/dist/cjs/products/checkout.js +22 -10
- package/dist/cjs/products/plans.js +15 -10
- package/dist/cjs/protocol.js +6 -5
- package/dist/cjs/recommendations.js +27 -19
- package/dist/cjs/reputation.js +15 -13
- package/dist/cjs/safety.js +43 -27
- package/dist/cjs/serviceToken.js +81 -2
- package/dist/cjs/sessionRevocation.js +8 -6
- package/dist/cjs/signIn.js +50 -24
- package/dist/cjs/stickers.js +19 -15
- package/dist/cjs/stringChecks.js +70 -0
- package/dist/cjs/transparency.js +14 -12
- package/dist/cjs/updates.js +24 -22
- package/dist/cjs/userInvalidation.js +7 -5
- package/dist/cjs/userResponse.js +8 -7
- package/dist/cjs/username.js +7 -6
- package/dist/esm/accountAccess.js +4 -3
- package/dist/esm/accountEmail.js +13 -5
- package/dist/esm/accountGraph.js +8 -7
- package/dist/esm/accountName.js +3 -2
- package/dist/esm/agency.js +90 -33
- package/dist/esm/agentKeys.js +21 -17
- package/dist/esm/appAssertions.js +11 -10
- package/dist/esm/applicationRoles.js +16 -9
- package/dist/esm/campaignAttribution.js +25 -0
- package/dist/esm/civic.js +8 -7
- package/dist/esm/client/campaignAttribution.js +10 -0
- package/dist/esm/client/check.js +61 -53
- package/dist/esm/client/index.js +2 -0
- package/dist/esm/client/language.js +4 -0
- package/dist/esm/consoleOnboarding.js +7 -2
- package/dist/esm/contentClaims.js +23 -14
- package/dist/esm/deviceDirectory.js +11 -9
- package/dist/esm/deviceSession.js +27 -25
- package/dist/esm/email/messages.js +18 -16
- package/dist/esm/emailAgentContext.js +11 -9
- package/dist/esm/externalIdentity.js +15 -11
- package/dist/esm/federationInstanceFetch.js +10 -5
- package/dist/esm/identity.js +17 -15
- package/dist/esm/identityLink.js +6 -4
- package/dist/esm/identityProof.js +6 -4
- package/dist/esm/inboxPush.js +3 -2
- package/dist/esm/index.js +5 -2
- package/dist/esm/inference/accountBilling.js +33 -31
- package/dist/esm/inference/aliaModelRelease.js +7 -5
- package/dist/esm/inference/attribution.js +14 -12
- package/dist/esm/inference/catalogue.js +33 -27
- package/dist/esm/inference/economics.js +22 -17
- package/dist/esm/inference/embeddings.js +9 -7
- package/dist/esm/inference/entitlement.js +15 -13
- package/dist/esm/inference/errors.js +13 -6
- package/dist/esm/inference/identifiers.js +31 -19
- package/dist/esm/inference/inbox.js +37 -35
- package/dist/esm/inference/modelDocumentation.js +14 -12
- package/dist/esm/inference/money.js +3 -2
- package/dist/esm/inference/priceVersion.js +8 -3
- package/dist/esm/inference/providerConnection.js +19 -12
- package/dist/esm/inference/realtime.js +85 -44
- package/dist/esm/inference/request.js +25 -23
- package/dist/esm/inference/routingPolicy.js +9 -7
- package/dist/esm/inference/streamEvents.js +20 -14
- package/dist/esm/inference/usage.js +30 -13
- package/dist/esm/keyRecovery.js +8 -6
- package/dist/esm/keyRotation.js +5 -4
- package/dist/esm/linkedAccounts.js +20 -16
- package/dist/esm/moderationReputation.js +27 -25
- package/dist/esm/notifications.js +23 -7
- package/dist/esm/numberChecks.js +41 -0
- package/dist/esm/oauth.js +14 -12
- package/dist/esm/organizations.js +23 -21
- package/dist/esm/products/access.js +10 -8
- package/dist/esm/products/billing.js +10 -8
- package/dist/esm/products/checkout.js +22 -10
- package/dist/esm/products/plans.js +15 -10
- package/dist/esm/protocol.js +4 -3
- package/dist/esm/recommendations.js +25 -17
- package/dist/esm/reputation.js +13 -11
- package/dist/esm/safety.js +43 -27
- package/dist/esm/serviceToken.js +80 -1
- package/dist/esm/sessionRevocation.js +6 -4
- package/dist/esm/signIn.js +50 -24
- package/dist/esm/stickers.js +17 -13
- package/dist/esm/stringChecks.js +63 -0
- package/dist/esm/transparency.js +14 -12
- package/dist/esm/updates.js +22 -20
- package/dist/esm/userInvalidation.js +4 -2
- package/dist/esm/userResponse.js +4 -3
- package/dist/esm/username.js +3 -2
- package/dist/types/accountAccess.d.ts +29 -70
- package/dist/types/accountEmail.d.ts +2 -14
- package/dist/types/accountGraph.d.ts +179 -171
- package/dist/types/accountName.d.ts +1 -1
- package/dist/types/accountSubject.d.ts +20 -93
- package/dist/types/agency.d.ts +528 -2924
- package/dist/types/agentKeys.d.ts +48 -421
- package/dist/types/appAssertions.d.ts +56 -210
- package/dist/types/applicationRoles.d.ts +30 -276
- package/dist/types/avatarCharacter.d.ts +1 -1
- package/dist/types/campaignAttribution.d.ts +10 -0
- package/dist/types/civic.d.ts +1 -13
- package/dist/types/client/agentKeys.d.ts +18 -18
- package/dist/types/client/appAssertions.d.ts +3 -3
- package/dist/types/client/campaignAttribution.d.ts +12 -0
- package/dist/types/client/check.d.ts +13 -13
- package/dist/types/client/deviceDirectory.d.ts +51 -51
- package/dist/types/client/deviceSession.d.ts +14 -14
- package/dist/types/client/index.d.ts +3 -0
- package/dist/types/client/language.d.ts +2 -0
- package/dist/types/client/organizations.d.ts +25 -25
- package/dist/types/client/products.d.ts +33 -33
- package/dist/types/client/recommendations.d.ts +2 -2
- package/dist/types/client/safety.d.ts +45 -45
- package/dist/types/client/sessionStatus.d.ts +4 -4
- package/dist/types/client/signIn.d.ts +1 -1
- package/dist/types/commonsSignIn.d.ts +4 -1
- package/dist/types/consoleOnboarding.d.ts +24 -44
- package/dist/types/contentClaims.d.ts +24 -180
- package/dist/types/deviceDirectory.d.ts +109 -1040
- package/dist/types/deviceSession.d.ts +36 -298
- package/dist/types/email/messages.d.ts +212 -1793
- package/dist/types/emailAgentContext.d.ts +10 -194
- package/dist/types/externalIdentity.d.ts +121 -615
- package/dist/types/federationInstanceFetch.d.ts +3 -32
- package/dist/types/identity.d.ts +15 -92
- package/dist/types/identityLink.d.ts +6 -84
- package/dist/types/identityProof.d.ts +5 -17
- package/dist/types/inboxPush.d.ts +1 -9
- package/dist/types/index.d.ts +7 -3
- package/dist/types/inference/accountBilling.d.ts +151 -488
- package/dist/types/inference/aliaModelRelease.d.ts +42 -439
- package/dist/types/inference/attribution.d.ts +75 -104
- package/dist/types/inference/catalogue.d.ts +417 -1599
- package/dist/types/inference/economics.d.ts +69 -276
- package/dist/types/inference/embeddings.d.ts +110 -406
- package/dist/types/inference/entitlement.d.ts +80 -335
- package/dist/types/inference/errors.d.ts +90 -102
- package/dist/types/inference/identifiers.d.ts +12 -4
- package/dist/types/inference/inbox.d.ts +105 -420
- package/dist/types/inference/modelDocumentation.d.ts +201 -1390
- package/dist/types/inference/money.d.ts +65 -32
- package/dist/types/inference/priceVersion.d.ts +53 -120
- package/dist/types/inference/providerConnection.d.ts +253 -710
- package/dist/types/inference/realtime.d.ts +954 -6825
- package/dist/types/inference/request.d.ts +300 -2572
- package/dist/types/inference/routingPolicy.d.ts +95 -503
- package/dist/types/inference/streamEvents.d.ts +253 -721
- package/dist/types/inference/usage.d.ts +317 -950
- package/dist/types/keyRecovery.d.ts +3 -51
- package/dist/types/keyRotation.d.ts +3 -38
- package/dist/types/linkedAccounts.d.ts +50 -236
- package/dist/types/moderationReputation.d.ts +81 -14
- package/dist/types/notifications.d.ts +19 -51
- package/dist/types/numberChecks.d.ts +9 -0
- package/dist/types/oauth.d.ts +101 -809
- package/dist/types/organizations.d.ts +268 -921
- package/dist/types/oxyRecordTypes.d.ts +11 -1
- package/dist/types/products/access.d.ts +125 -775
- package/dist/types/products/billing.d.ts +67 -503
- package/dist/types/products/checkout.d.ts +16 -69
- package/dist/types/products/plans.d.ts +33 -366
- package/dist/types/recommendations.d.ts +76 -389
- package/dist/types/reputation.d.ts +37 -5
- package/dist/types/safety.d.ts +408 -2048
- package/dist/types/serviceToken.d.ts +247 -7
- package/dist/types/sessionRevocation.d.ts +2 -17
- package/dist/types/sessionStatus.d.ts +27 -115
- package/dist/types/signIn.d.ts +62 -553
- package/dist/types/stickers.d.ts +67 -819
- package/dist/types/stringChecks.d.ts +16 -0
- package/dist/types/transparency.d.ts +14 -302
- package/dist/types/updates.d.ts +60 -316
- package/dist/types/userInvalidation.d.ts +4 -13
- package/dist/types/userResponse.d.ts +302 -2400
- package/dist/types/username.d.ts +3 -3
- package/package.json +6 -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<
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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<
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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.
|
|
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
|
-
},
|
|
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
|
-
},
|
|
151
|
-
|
|
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<
|
|
77
|
+
operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
209
78
|
publicKey: z.ZodString;
|
|
210
79
|
label: z.ZodString;
|
|
211
80
|
operation: z.ZodLiteral<"enroll">;
|
|
212
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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.
|
|
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
|
-
},
|
|
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
|
-
},
|
|
276
|
-
|
|
277
|
-
|
|
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<
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
466
|
-
},
|
|
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<
|
|
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
|
-
},
|
|
486
|
-
|
|
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>;
|