@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
package/dist/types/signIn.d.ts
CHANGED
|
@@ -47,30 +47,11 @@ export declare const secondFactorCodeSchema: z.ZodString;
|
|
|
47
47
|
/** `POST /auth/signin/email/start` */
|
|
48
48
|
export declare const emailSignInStartRequestSchema: z.ZodObject<{
|
|
49
49
|
identifier: z.ZodString;
|
|
50
|
-
/** The requester's device: the email's link approves only in this browser. */
|
|
51
50
|
device: z.ZodOptional<z.ZodObject<{
|
|
52
51
|
deviceId: z.ZodString;
|
|
53
52
|
deviceSecret: z.ZodString;
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
deviceSecret: string;
|
|
57
|
-
}, {
|
|
58
|
-
deviceId: string;
|
|
59
|
-
deviceSecret: string;
|
|
60
|
-
}>>;
|
|
61
|
-
}, "strict", z.ZodTypeAny, {
|
|
62
|
-
identifier: string;
|
|
63
|
-
device?: {
|
|
64
|
-
deviceId: string;
|
|
65
|
-
deviceSecret: string;
|
|
66
|
-
} | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
identifier: string;
|
|
69
|
-
device?: {
|
|
70
|
-
deviceId: string;
|
|
71
|
-
deviceSecret: string;
|
|
72
|
-
} | undefined;
|
|
73
|
-
}>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strict>;
|
|
74
55
|
export type EmailSignInStartRequest = z.infer<typeof emailSignInStartRequestSchema>;
|
|
75
56
|
export interface EmailSignInStartResponse {
|
|
76
57
|
/** Names the request. Returned whether or not an email was sent. */
|
|
@@ -94,7 +75,7 @@ export declare const emailSignInStartResponseSchema: z.ZodType<EmailSignInStartR
|
|
|
94
75
|
* UI must accept BOTH in one field: the email says which was sent, and the
|
|
95
76
|
* start response is the same either way (it says nothing about the account).
|
|
96
77
|
*/
|
|
97
|
-
export declare const emailSignInCodeSchema: z.
|
|
78
|
+
export declare const emailSignInCodeSchema: z.ZodString;
|
|
98
79
|
/** `POST /auth/signin/email/confirm` — the code from the email. */
|
|
99
80
|
export declare const emailSignInConfirmRequestSchema: z.ZodObject<{
|
|
100
81
|
deviceName: z.ZodOptional<z.ZodString>;
|
|
@@ -102,37 +83,11 @@ export declare const emailSignInConfirmRequestSchema: z.ZodObject<{
|
|
|
102
83
|
device: z.ZodOptional<z.ZodObject<{
|
|
103
84
|
deviceId: z.ZodString;
|
|
104
85
|
deviceSecret: z.ZodString;
|
|
105
|
-
},
|
|
106
|
-
deviceId: string;
|
|
107
|
-
deviceSecret: string;
|
|
108
|
-
}, {
|
|
109
|
-
deviceId: string;
|
|
110
|
-
deviceSecret: string;
|
|
111
|
-
}>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
112
87
|
requestId: z.ZodString;
|
|
113
88
|
requestSecret: z.ZodString;
|
|
114
|
-
code: z.
|
|
115
|
-
},
|
|
116
|
-
code: string;
|
|
117
|
-
requestId: string;
|
|
118
|
-
requestSecret: string;
|
|
119
|
-
device?: {
|
|
120
|
-
deviceId: string;
|
|
121
|
-
deviceSecret: string;
|
|
122
|
-
} | undefined;
|
|
123
|
-
deviceName?: string | undefined;
|
|
124
|
-
deviceFingerprint?: string | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
code: string;
|
|
127
|
-
requestId: string;
|
|
128
|
-
requestSecret: string;
|
|
129
|
-
device?: {
|
|
130
|
-
deviceId: string;
|
|
131
|
-
deviceSecret: string;
|
|
132
|
-
} | undefined;
|
|
133
|
-
deviceName?: string | undefined;
|
|
134
|
-
deviceFingerprint?: string | undefined;
|
|
135
|
-
}>;
|
|
89
|
+
code: z.ZodString;
|
|
90
|
+
}, z.core.$strict>;
|
|
136
91
|
export type EmailSignInConfirmRequest = z.infer<typeof emailSignInConfirmRequestSchema>;
|
|
137
92
|
/** `POST /auth/signin/email/collect` — the dialog asks whether its link was opened. */
|
|
138
93
|
export declare const emailSignInCollectRequestSchema: z.ZodObject<{
|
|
@@ -141,34 +96,10 @@ export declare const emailSignInCollectRequestSchema: z.ZodObject<{
|
|
|
141
96
|
device: z.ZodOptional<z.ZodObject<{
|
|
142
97
|
deviceId: z.ZodString;
|
|
143
98
|
deviceSecret: z.ZodString;
|
|
144
|
-
},
|
|
145
|
-
deviceId: string;
|
|
146
|
-
deviceSecret: string;
|
|
147
|
-
}, {
|
|
148
|
-
deviceId: string;
|
|
149
|
-
deviceSecret: string;
|
|
150
|
-
}>>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
151
100
|
requestId: z.ZodString;
|
|
152
101
|
requestSecret: z.ZodString;
|
|
153
|
-
},
|
|
154
|
-
requestId: string;
|
|
155
|
-
requestSecret: string;
|
|
156
|
-
device?: {
|
|
157
|
-
deviceId: string;
|
|
158
|
-
deviceSecret: string;
|
|
159
|
-
} | undefined;
|
|
160
|
-
deviceName?: string | undefined;
|
|
161
|
-
deviceFingerprint?: string | undefined;
|
|
162
|
-
}, {
|
|
163
|
-
requestId: string;
|
|
164
|
-
requestSecret: string;
|
|
165
|
-
device?: {
|
|
166
|
-
deviceId: string;
|
|
167
|
-
deviceSecret: string;
|
|
168
|
-
} | undefined;
|
|
169
|
-
deviceName?: string | undefined;
|
|
170
|
-
deviceFingerprint?: string | undefined;
|
|
171
|
-
}>;
|
|
102
|
+
}, z.core.$strict>;
|
|
172
103
|
export type EmailSignInCollectRequest = z.infer<typeof emailSignInCollectRequestSchema>;
|
|
173
104
|
/**
|
|
174
105
|
* `POST /auth/signin/email/link` — auth.oxy.so, where the email's link lands.
|
|
@@ -180,26 +111,8 @@ export declare const emailSignInLinkRequestSchema: z.ZodObject<{
|
|
|
180
111
|
device: z.ZodObject<{
|
|
181
112
|
deviceId: z.ZodString;
|
|
182
113
|
deviceSecret: z.ZodString;
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
deviceSecret: string;
|
|
186
|
-
}, {
|
|
187
|
-
deviceId: string;
|
|
188
|
-
deviceSecret: string;
|
|
189
|
-
}>;
|
|
190
|
-
}, "strict", z.ZodTypeAny, {
|
|
191
|
-
device: {
|
|
192
|
-
deviceId: string;
|
|
193
|
-
deviceSecret: string;
|
|
194
|
-
};
|
|
195
|
-
token: string;
|
|
196
|
-
}, {
|
|
197
|
-
device: {
|
|
198
|
-
deviceId: string;
|
|
199
|
-
deviceSecret: string;
|
|
200
|
-
};
|
|
201
|
-
token: string;
|
|
202
|
-
}>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
}, z.core.$strict>;
|
|
203
116
|
export type EmailSignInLinkRequest = z.infer<typeof emailSignInLinkRequestSchema>;
|
|
204
117
|
export interface EmailSignInLinkResponse {
|
|
205
118
|
/** The dialog that asked collects the session; the link page never receives one. */
|
|
@@ -213,34 +126,10 @@ export declare const passwordSignInRequestSchema: z.ZodObject<{
|
|
|
213
126
|
device: z.ZodOptional<z.ZodObject<{
|
|
214
127
|
deviceId: z.ZodString;
|
|
215
128
|
deviceSecret: z.ZodString;
|
|
216
|
-
},
|
|
217
|
-
deviceId: string;
|
|
218
|
-
deviceSecret: string;
|
|
219
|
-
}, {
|
|
220
|
-
deviceId: string;
|
|
221
|
-
deviceSecret: string;
|
|
222
|
-
}>>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
223
130
|
identifier: z.ZodString;
|
|
224
131
|
password: z.ZodString;
|
|
225
|
-
},
|
|
226
|
-
password: string;
|
|
227
|
-
identifier: string;
|
|
228
|
-
device?: {
|
|
229
|
-
deviceId: string;
|
|
230
|
-
deviceSecret: string;
|
|
231
|
-
} | undefined;
|
|
232
|
-
deviceName?: string | undefined;
|
|
233
|
-
deviceFingerprint?: string | undefined;
|
|
234
|
-
}, {
|
|
235
|
-
password: string;
|
|
236
|
-
identifier: string;
|
|
237
|
-
device?: {
|
|
238
|
-
deviceId: string;
|
|
239
|
-
deviceSecret: string;
|
|
240
|
-
} | undefined;
|
|
241
|
-
deviceName?: string | undefined;
|
|
242
|
-
deviceFingerprint?: string | undefined;
|
|
243
|
-
}>;
|
|
132
|
+
}, z.core.$strict>;
|
|
244
133
|
export type PasswordSignInRequest = z.infer<typeof passwordSignInRequestSchema>;
|
|
245
134
|
/** `POST /auth/signin/second-factor` */
|
|
246
135
|
export declare const secondFactorSignInRequestSchema: z.ZodObject<{
|
|
@@ -249,34 +138,10 @@ export declare const secondFactorSignInRequestSchema: z.ZodObject<{
|
|
|
249
138
|
device: z.ZodOptional<z.ZodObject<{
|
|
250
139
|
deviceId: z.ZodString;
|
|
251
140
|
deviceSecret: z.ZodString;
|
|
252
|
-
},
|
|
253
|
-
deviceId: string;
|
|
254
|
-
deviceSecret: string;
|
|
255
|
-
}, {
|
|
256
|
-
deviceId: string;
|
|
257
|
-
deviceSecret: string;
|
|
258
|
-
}>>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
259
142
|
challengeId: z.ZodString;
|
|
260
143
|
code: z.ZodString;
|
|
261
|
-
},
|
|
262
|
-
code: string;
|
|
263
|
-
challengeId: string;
|
|
264
|
-
device?: {
|
|
265
|
-
deviceId: string;
|
|
266
|
-
deviceSecret: string;
|
|
267
|
-
} | undefined;
|
|
268
|
-
deviceName?: string | undefined;
|
|
269
|
-
deviceFingerprint?: string | undefined;
|
|
270
|
-
}, {
|
|
271
|
-
code: string;
|
|
272
|
-
challengeId: string;
|
|
273
|
-
device?: {
|
|
274
|
-
deviceId: string;
|
|
275
|
-
deviceSecret: string;
|
|
276
|
-
} | undefined;
|
|
277
|
-
deviceName?: string | undefined;
|
|
278
|
-
deviceFingerprint?: string | undefined;
|
|
279
|
-
}>;
|
|
144
|
+
}, z.core.$strict>;
|
|
280
145
|
export type SecondFactorSignInRequest = z.infer<typeof secondFactorSignInRequestSchema>;
|
|
281
146
|
/** `POST /auth/signup` — the account, from a username and a confirmed email. */
|
|
282
147
|
export declare const signUpRequestSchema: z.ZodObject<{
|
|
@@ -285,38 +150,20 @@ export declare const signUpRequestSchema: z.ZodObject<{
|
|
|
285
150
|
device: z.ZodOptional<z.ZodObject<{
|
|
286
151
|
deviceId: z.ZodString;
|
|
287
152
|
deviceSecret: z.ZodString;
|
|
288
|
-
},
|
|
289
|
-
deviceId: string;
|
|
290
|
-
deviceSecret: string;
|
|
291
|
-
}, {
|
|
292
|
-
deviceId: string;
|
|
293
|
-
deviceSecret: string;
|
|
294
|
-
}>>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
295
154
|
username: z.ZodString;
|
|
296
155
|
email: z.ZodString;
|
|
297
|
-
/** The ticket `POST /auth/email/verify/confirm` (purpose `signup`) returned. */
|
|
298
156
|
emailTicket: z.ZodString;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}, {
|
|
310
|
-
username: string;
|
|
311
|
-
email: string;
|
|
312
|
-
emailTicket: string;
|
|
313
|
-
device?: {
|
|
314
|
-
deviceId: string;
|
|
315
|
-
deviceSecret: string;
|
|
316
|
-
} | undefined;
|
|
317
|
-
deviceName?: string | undefined;
|
|
318
|
-
deviceFingerprint?: string | undefined;
|
|
319
|
-
}>;
|
|
157
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
|
+
campaignAttribution: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
utmSource: z.ZodOptional<z.ZodString>;
|
|
160
|
+
utmMedium: z.ZodOptional<z.ZodString>;
|
|
161
|
+
utmCampaign: z.ZodOptional<z.ZodString>;
|
|
162
|
+
utmContent: z.ZodOptional<z.ZodString>;
|
|
163
|
+
utmTerm: z.ZodOptional<z.ZodString>;
|
|
164
|
+
fbclid: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strict>>;
|
|
166
|
+
}, z.core.$strict>;
|
|
320
167
|
export type SignUpRequest = z.infer<typeof signUpRequestSchema>;
|
|
321
168
|
/** A first factor passed and the account has an authenticator: no session yet. */
|
|
322
169
|
export interface SecondFactorRequired {
|
|
@@ -368,46 +215,25 @@ export declare const emailSignInChooseRequestSchema: z.ZodObject<{
|
|
|
368
215
|
device: z.ZodOptional<z.ZodObject<{
|
|
369
216
|
deviceId: z.ZodString;
|
|
370
217
|
deviceSecret: z.ZodString;
|
|
371
|
-
},
|
|
372
|
-
deviceId: string;
|
|
373
|
-
deviceSecret: string;
|
|
374
|
-
}, {
|
|
375
|
-
deviceId: string;
|
|
376
|
-
deviceSecret: string;
|
|
377
|
-
}>>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
378
219
|
requestId: z.ZodString;
|
|
379
220
|
requestSecret: z.ZodString;
|
|
380
221
|
userId: z.ZodString;
|
|
381
|
-
},
|
|
382
|
-
userId: string;
|
|
383
|
-
requestId: string;
|
|
384
|
-
requestSecret: string;
|
|
385
|
-
device?: {
|
|
386
|
-
deviceId: string;
|
|
387
|
-
deviceSecret: string;
|
|
388
|
-
} | undefined;
|
|
389
|
-
deviceName?: string | undefined;
|
|
390
|
-
deviceFingerprint?: string | undefined;
|
|
391
|
-
}, {
|
|
392
|
-
userId: string;
|
|
393
|
-
requestId: string;
|
|
394
|
-
requestSecret: string;
|
|
395
|
-
device?: {
|
|
396
|
-
deviceId: string;
|
|
397
|
-
deviceSecret: string;
|
|
398
|
-
} | undefined;
|
|
399
|
-
deviceName?: string | undefined;
|
|
400
|
-
deviceFingerprint?: string | undefined;
|
|
401
|
-
}>;
|
|
222
|
+
}, z.core.$strict>;
|
|
402
223
|
export type EmailSignInChooseRequest = z.infer<typeof emailSignInChooseRequestSchema>;
|
|
403
224
|
/** `POST /users/me/reauth/email` */
|
|
404
225
|
export declare const reauthEmailStartRequestSchema: z.ZodObject<{
|
|
405
|
-
action: z.ZodEnum<
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
226
|
+
action: z.ZodEnum<{
|
|
227
|
+
change_password: "change_password";
|
|
228
|
+
change_email: "change_email";
|
|
229
|
+
totp: "totp";
|
|
230
|
+
link_commons: "link_commons";
|
|
231
|
+
delete_account: "delete_account";
|
|
232
|
+
credentials_manage: "credentials_manage";
|
|
233
|
+
supervision: "supervision";
|
|
234
|
+
supervision_purchase: "supervision_purchase";
|
|
235
|
+
}>;
|
|
236
|
+
}, z.core.$strict>;
|
|
411
237
|
export type ReauthEmailStartRequest = z.infer<typeof reauthEmailStartRequestSchema>;
|
|
412
238
|
/**
|
|
413
239
|
* A fresh proof that the person, not only their session, is asking: the
|
|
@@ -415,121 +241,28 @@ export type ReauthEmailStartRequest = z.infer<typeof reauthEmailStartRequestSche
|
|
|
415
241
|
* (`POST /users/me/reauth/email`) — plus the authenticator code when the
|
|
416
242
|
* account has one. Carried inside the request it authorises.
|
|
417
243
|
*/
|
|
418
|
-
export declare const reauthProofSchema: z.
|
|
244
|
+
export declare const reauthProofSchema: z.ZodObject<{
|
|
419
245
|
password: z.ZodOptional<z.ZodString>;
|
|
420
246
|
emailCode: z.ZodOptional<z.ZodObject<{
|
|
421
247
|
verificationId: z.ZodString;
|
|
422
248
|
code: z.ZodString;
|
|
423
|
-
},
|
|
424
|
-
code: string;
|
|
425
|
-
verificationId: string;
|
|
426
|
-
}, {
|
|
427
|
-
code: string;
|
|
428
|
-
verificationId: string;
|
|
429
|
-
}>>;
|
|
430
|
-
/** Required when the account has an authenticator: its code or a backup code. */
|
|
249
|
+
}, z.core.$strict>>;
|
|
431
250
|
totpCode: z.ZodOptional<z.ZodString>;
|
|
432
|
-
},
|
|
433
|
-
password?: string | undefined;
|
|
434
|
-
emailCode?: {
|
|
435
|
-
code: string;
|
|
436
|
-
verificationId: string;
|
|
437
|
-
} | undefined;
|
|
438
|
-
totpCode?: string | undefined;
|
|
439
|
-
}, {
|
|
440
|
-
password?: string | undefined;
|
|
441
|
-
emailCode?: {
|
|
442
|
-
code: string;
|
|
443
|
-
verificationId: string;
|
|
444
|
-
} | undefined;
|
|
445
|
-
totpCode?: string | undefined;
|
|
446
|
-
}>, {
|
|
447
|
-
password?: string | undefined;
|
|
448
|
-
emailCode?: {
|
|
449
|
-
code: string;
|
|
450
|
-
verificationId: string;
|
|
451
|
-
} | undefined;
|
|
452
|
-
totpCode?: string | undefined;
|
|
453
|
-
}, {
|
|
454
|
-
password?: string | undefined;
|
|
455
|
-
emailCode?: {
|
|
456
|
-
code: string;
|
|
457
|
-
verificationId: string;
|
|
458
|
-
} | undefined;
|
|
459
|
-
totpCode?: string | undefined;
|
|
460
|
-
}>;
|
|
251
|
+
}, z.core.$strict>;
|
|
461
252
|
export type ReauthProof = z.infer<typeof reauthProofSchema>;
|
|
462
253
|
/** `PUT /users/me/password` — set or change the password. */
|
|
463
254
|
export declare const passwordSetRequestSchema: z.ZodObject<{
|
|
464
255
|
newPassword: z.ZodString;
|
|
465
|
-
reauth: z.
|
|
256
|
+
reauth: z.ZodObject<{
|
|
466
257
|
password: z.ZodOptional<z.ZodString>;
|
|
467
258
|
emailCode: z.ZodOptional<z.ZodObject<{
|
|
468
259
|
verificationId: z.ZodString;
|
|
469
260
|
code: z.ZodString;
|
|
470
|
-
},
|
|
471
|
-
code: string;
|
|
472
|
-
verificationId: string;
|
|
473
|
-
}, {
|
|
474
|
-
code: string;
|
|
475
|
-
verificationId: string;
|
|
476
|
-
}>>;
|
|
477
|
-
/** Required when the account has an authenticator: its code or a backup code. */
|
|
261
|
+
}, z.core.$strict>>;
|
|
478
262
|
totpCode: z.ZodOptional<z.ZodString>;
|
|
479
|
-
},
|
|
480
|
-
password?: string | undefined;
|
|
481
|
-
emailCode?: {
|
|
482
|
-
code: string;
|
|
483
|
-
verificationId: string;
|
|
484
|
-
} | undefined;
|
|
485
|
-
totpCode?: string | undefined;
|
|
486
|
-
}, {
|
|
487
|
-
password?: string | undefined;
|
|
488
|
-
emailCode?: {
|
|
489
|
-
code: string;
|
|
490
|
-
verificationId: string;
|
|
491
|
-
} | undefined;
|
|
492
|
-
totpCode?: string | undefined;
|
|
493
|
-
}>, {
|
|
494
|
-
password?: string | undefined;
|
|
495
|
-
emailCode?: {
|
|
496
|
-
code: string;
|
|
497
|
-
verificationId: string;
|
|
498
|
-
} | undefined;
|
|
499
|
-
totpCode?: string | undefined;
|
|
500
|
-
}, {
|
|
501
|
-
password?: string | undefined;
|
|
502
|
-
emailCode?: {
|
|
503
|
-
code: string;
|
|
504
|
-
verificationId: string;
|
|
505
|
-
} | undefined;
|
|
506
|
-
totpCode?: string | undefined;
|
|
507
|
-
}>;
|
|
508
|
-
/** Sign every other session of the account out. */
|
|
263
|
+
}, z.core.$strict>;
|
|
509
264
|
revokeOtherSessions: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
-
},
|
|
511
|
-
reauth: {
|
|
512
|
-
password?: string | undefined;
|
|
513
|
-
emailCode?: {
|
|
514
|
-
code: string;
|
|
515
|
-
verificationId: string;
|
|
516
|
-
} | undefined;
|
|
517
|
-
totpCode?: string | undefined;
|
|
518
|
-
};
|
|
519
|
-
newPassword: string;
|
|
520
|
-
revokeOtherSessions?: boolean | undefined;
|
|
521
|
-
}, {
|
|
522
|
-
reauth: {
|
|
523
|
-
password?: string | undefined;
|
|
524
|
-
emailCode?: {
|
|
525
|
-
code: string;
|
|
526
|
-
verificationId: string;
|
|
527
|
-
} | undefined;
|
|
528
|
-
totpCode?: string | undefined;
|
|
529
|
-
};
|
|
530
|
-
newPassword: string;
|
|
531
|
-
revokeOtherSessions?: boolean | undefined;
|
|
532
|
-
}>;
|
|
265
|
+
}, z.core.$strict>;
|
|
533
266
|
export type PasswordSetRequest = z.infer<typeof passwordSetRequestSchema>;
|
|
534
267
|
/**
|
|
535
268
|
* `DELETE /users/me/password` — only while the account has an email to sign
|
|
@@ -537,77 +270,20 @@ export type PasswordSetRequest = z.infer<typeof passwordSetRequestSchema>;
|
|
|
537
270
|
* confirmed with that password.
|
|
538
271
|
*/
|
|
539
272
|
export declare const signInMethodRemoveRequestSchema: z.ZodObject<{
|
|
540
|
-
reauth: z.
|
|
273
|
+
reauth: z.ZodObject<{
|
|
541
274
|
password: z.ZodOptional<z.ZodString>;
|
|
542
275
|
emailCode: z.ZodOptional<z.ZodObject<{
|
|
543
276
|
verificationId: z.ZodString;
|
|
544
277
|
code: z.ZodString;
|
|
545
|
-
},
|
|
546
|
-
code: string;
|
|
547
|
-
verificationId: string;
|
|
548
|
-
}, {
|
|
549
|
-
code: string;
|
|
550
|
-
verificationId: string;
|
|
551
|
-
}>>;
|
|
552
|
-
/** Required when the account has an authenticator: its code or a backup code. */
|
|
278
|
+
}, z.core.$strict>>;
|
|
553
279
|
totpCode: z.ZodOptional<z.ZodString>;
|
|
554
|
-
},
|
|
555
|
-
|
|
556
|
-
emailCode?: {
|
|
557
|
-
code: string;
|
|
558
|
-
verificationId: string;
|
|
559
|
-
} | undefined;
|
|
560
|
-
totpCode?: string | undefined;
|
|
561
|
-
}, {
|
|
562
|
-
password?: string | undefined;
|
|
563
|
-
emailCode?: {
|
|
564
|
-
code: string;
|
|
565
|
-
verificationId: string;
|
|
566
|
-
} | undefined;
|
|
567
|
-
totpCode?: string | undefined;
|
|
568
|
-
}>, {
|
|
569
|
-
password?: string | undefined;
|
|
570
|
-
emailCode?: {
|
|
571
|
-
code: string;
|
|
572
|
-
verificationId: string;
|
|
573
|
-
} | undefined;
|
|
574
|
-
totpCode?: string | undefined;
|
|
575
|
-
}, {
|
|
576
|
-
password?: string | undefined;
|
|
577
|
-
emailCode?: {
|
|
578
|
-
code: string;
|
|
579
|
-
verificationId: string;
|
|
580
|
-
} | undefined;
|
|
581
|
-
totpCode?: string | undefined;
|
|
582
|
-
}>;
|
|
583
|
-
}, "strict", z.ZodTypeAny, {
|
|
584
|
-
reauth: {
|
|
585
|
-
password?: string | undefined;
|
|
586
|
-
emailCode?: {
|
|
587
|
-
code: string;
|
|
588
|
-
verificationId: string;
|
|
589
|
-
} | undefined;
|
|
590
|
-
totpCode?: string | undefined;
|
|
591
|
-
};
|
|
592
|
-
}, {
|
|
593
|
-
reauth: {
|
|
594
|
-
password?: string | undefined;
|
|
595
|
-
emailCode?: {
|
|
596
|
-
code: string;
|
|
597
|
-
verificationId: string;
|
|
598
|
-
} | undefined;
|
|
599
|
-
totpCode?: string | undefined;
|
|
600
|
-
};
|
|
601
|
-
}>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
}, z.core.$strict>;
|
|
602
282
|
export type SignInMethodRemoveRequest = z.infer<typeof signInMethodRemoveRequestSchema>;
|
|
603
283
|
/** `POST /users/me/email/verify/start` — a code to the address the account moves to. */
|
|
604
284
|
export declare const emailChangeStartRequestSchema: z.ZodObject<{
|
|
605
285
|
email: z.ZodString;
|
|
606
|
-
},
|
|
607
|
-
email: string;
|
|
608
|
-
}, {
|
|
609
|
-
email: string;
|
|
610
|
-
}>;
|
|
286
|
+
}, z.core.$strict>;
|
|
611
287
|
export type EmailChangeStartRequest = z.infer<typeof emailChangeStartRequestSchema>;
|
|
612
288
|
/**
|
|
613
289
|
* `PUT /users/me/email` — add or change the email: the NEW address and the
|
|
@@ -618,74 +294,15 @@ export declare const emailSetRequestSchema: z.ZodObject<{
|
|
|
618
294
|
email: z.ZodString;
|
|
619
295
|
verificationId: z.ZodString;
|
|
620
296
|
code: z.ZodString;
|
|
621
|
-
reauth: z.
|
|
297
|
+
reauth: z.ZodObject<{
|
|
622
298
|
password: z.ZodOptional<z.ZodString>;
|
|
623
299
|
emailCode: z.ZodOptional<z.ZodObject<{
|
|
624
300
|
verificationId: z.ZodString;
|
|
625
301
|
code: z.ZodString;
|
|
626
|
-
},
|
|
627
|
-
code: string;
|
|
628
|
-
verificationId: string;
|
|
629
|
-
}, {
|
|
630
|
-
code: string;
|
|
631
|
-
verificationId: string;
|
|
632
|
-
}>>;
|
|
633
|
-
/** Required when the account has an authenticator: its code or a backup code. */
|
|
302
|
+
}, z.core.$strict>>;
|
|
634
303
|
totpCode: z.ZodOptional<z.ZodString>;
|
|
635
|
-
},
|
|
636
|
-
|
|
637
|
-
emailCode?: {
|
|
638
|
-
code: string;
|
|
639
|
-
verificationId: string;
|
|
640
|
-
} | undefined;
|
|
641
|
-
totpCode?: string | undefined;
|
|
642
|
-
}, {
|
|
643
|
-
password?: string | undefined;
|
|
644
|
-
emailCode?: {
|
|
645
|
-
code: string;
|
|
646
|
-
verificationId: string;
|
|
647
|
-
} | undefined;
|
|
648
|
-
totpCode?: string | undefined;
|
|
649
|
-
}>, {
|
|
650
|
-
password?: string | undefined;
|
|
651
|
-
emailCode?: {
|
|
652
|
-
code: string;
|
|
653
|
-
verificationId: string;
|
|
654
|
-
} | undefined;
|
|
655
|
-
totpCode?: string | undefined;
|
|
656
|
-
}, {
|
|
657
|
-
password?: string | undefined;
|
|
658
|
-
emailCode?: {
|
|
659
|
-
code: string;
|
|
660
|
-
verificationId: string;
|
|
661
|
-
} | undefined;
|
|
662
|
-
totpCode?: string | undefined;
|
|
663
|
-
}>;
|
|
664
|
-
}, "strict", z.ZodTypeAny, {
|
|
665
|
-
code: string;
|
|
666
|
-
email: string;
|
|
667
|
-
reauth: {
|
|
668
|
-
password?: string | undefined;
|
|
669
|
-
emailCode?: {
|
|
670
|
-
code: string;
|
|
671
|
-
verificationId: string;
|
|
672
|
-
} | undefined;
|
|
673
|
-
totpCode?: string | undefined;
|
|
674
|
-
};
|
|
675
|
-
verificationId: string;
|
|
676
|
-
}, {
|
|
677
|
-
code: string;
|
|
678
|
-
email: string;
|
|
679
|
-
reauth: {
|
|
680
|
-
password?: string | undefined;
|
|
681
|
-
emailCode?: {
|
|
682
|
-
code: string;
|
|
683
|
-
verificationId: string;
|
|
684
|
-
} | undefined;
|
|
685
|
-
totpCode?: string | undefined;
|
|
686
|
-
};
|
|
687
|
-
verificationId: string;
|
|
688
|
-
}>;
|
|
304
|
+
}, z.core.$strict>;
|
|
305
|
+
}, z.core.$strict>;
|
|
689
306
|
export type EmailSetRequest = z.infer<typeof emailSetRequestSchema>;
|
|
690
307
|
/** `GET /users/me/sign-in-methods` */
|
|
691
308
|
export interface SignInMethods {
|
|
@@ -707,135 +324,27 @@ export declare const totpEnrollResponseSchema: z.ZodType<TotpEnrollResponse>;
|
|
|
707
324
|
/** `POST /users/me/totp/confirm` — the first code from the authenticator turns it on. */
|
|
708
325
|
export declare const totpConfirmRequestSchema: z.ZodObject<{
|
|
709
326
|
code: z.ZodString;
|
|
710
|
-
reauth: z.
|
|
327
|
+
reauth: z.ZodObject<{
|
|
711
328
|
password: z.ZodOptional<z.ZodString>;
|
|
712
329
|
emailCode: z.ZodOptional<z.ZodObject<{
|
|
713
330
|
verificationId: z.ZodString;
|
|
714
331
|
code: z.ZodString;
|
|
715
|
-
},
|
|
716
|
-
code: string;
|
|
717
|
-
verificationId: string;
|
|
718
|
-
}, {
|
|
719
|
-
code: string;
|
|
720
|
-
verificationId: string;
|
|
721
|
-
}>>;
|
|
722
|
-
/** Required when the account has an authenticator: its code or a backup code. */
|
|
332
|
+
}, z.core.$strict>>;
|
|
723
333
|
totpCode: z.ZodOptional<z.ZodString>;
|
|
724
|
-
},
|
|
725
|
-
|
|
726
|
-
emailCode?: {
|
|
727
|
-
code: string;
|
|
728
|
-
verificationId: string;
|
|
729
|
-
} | undefined;
|
|
730
|
-
totpCode?: string | undefined;
|
|
731
|
-
}, {
|
|
732
|
-
password?: string | undefined;
|
|
733
|
-
emailCode?: {
|
|
734
|
-
code: string;
|
|
735
|
-
verificationId: string;
|
|
736
|
-
} | undefined;
|
|
737
|
-
totpCode?: string | undefined;
|
|
738
|
-
}>, {
|
|
739
|
-
password?: string | undefined;
|
|
740
|
-
emailCode?: {
|
|
741
|
-
code: string;
|
|
742
|
-
verificationId: string;
|
|
743
|
-
} | undefined;
|
|
744
|
-
totpCode?: string | undefined;
|
|
745
|
-
}, {
|
|
746
|
-
password?: string | undefined;
|
|
747
|
-
emailCode?: {
|
|
748
|
-
code: string;
|
|
749
|
-
verificationId: string;
|
|
750
|
-
} | undefined;
|
|
751
|
-
totpCode?: string | undefined;
|
|
752
|
-
}>;
|
|
753
|
-
}, "strict", z.ZodTypeAny, {
|
|
754
|
-
code: string;
|
|
755
|
-
reauth: {
|
|
756
|
-
password?: string | undefined;
|
|
757
|
-
emailCode?: {
|
|
758
|
-
code: string;
|
|
759
|
-
verificationId: string;
|
|
760
|
-
} | undefined;
|
|
761
|
-
totpCode?: string | undefined;
|
|
762
|
-
};
|
|
763
|
-
}, {
|
|
764
|
-
code: string;
|
|
765
|
-
reauth: {
|
|
766
|
-
password?: string | undefined;
|
|
767
|
-
emailCode?: {
|
|
768
|
-
code: string;
|
|
769
|
-
verificationId: string;
|
|
770
|
-
} | undefined;
|
|
771
|
-
totpCode?: string | undefined;
|
|
772
|
-
};
|
|
773
|
-
}>;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
}, z.core.$strict>;
|
|
774
336
|
export type TotpConfirmRequest = z.infer<typeof totpConfirmRequestSchema>;
|
|
775
337
|
/** `POST /users/me/totp/disable` and `POST /users/me/totp/backup-codes` */
|
|
776
338
|
export declare const totpReauthRequestSchema: z.ZodObject<{
|
|
777
|
-
reauth: z.
|
|
339
|
+
reauth: z.ZodObject<{
|
|
778
340
|
password: z.ZodOptional<z.ZodString>;
|
|
779
341
|
emailCode: z.ZodOptional<z.ZodObject<{
|
|
780
342
|
verificationId: z.ZodString;
|
|
781
343
|
code: z.ZodString;
|
|
782
|
-
},
|
|
783
|
-
code: string;
|
|
784
|
-
verificationId: string;
|
|
785
|
-
}, {
|
|
786
|
-
code: string;
|
|
787
|
-
verificationId: string;
|
|
788
|
-
}>>;
|
|
789
|
-
/** Required when the account has an authenticator: its code or a backup code. */
|
|
344
|
+
}, z.core.$strict>>;
|
|
790
345
|
totpCode: z.ZodOptional<z.ZodString>;
|
|
791
|
-
},
|
|
792
|
-
|
|
793
|
-
emailCode?: {
|
|
794
|
-
code: string;
|
|
795
|
-
verificationId: string;
|
|
796
|
-
} | undefined;
|
|
797
|
-
totpCode?: string | undefined;
|
|
798
|
-
}, {
|
|
799
|
-
password?: string | undefined;
|
|
800
|
-
emailCode?: {
|
|
801
|
-
code: string;
|
|
802
|
-
verificationId: string;
|
|
803
|
-
} | undefined;
|
|
804
|
-
totpCode?: string | undefined;
|
|
805
|
-
}>, {
|
|
806
|
-
password?: string | undefined;
|
|
807
|
-
emailCode?: {
|
|
808
|
-
code: string;
|
|
809
|
-
verificationId: string;
|
|
810
|
-
} | undefined;
|
|
811
|
-
totpCode?: string | undefined;
|
|
812
|
-
}, {
|
|
813
|
-
password?: string | undefined;
|
|
814
|
-
emailCode?: {
|
|
815
|
-
code: string;
|
|
816
|
-
verificationId: string;
|
|
817
|
-
} | undefined;
|
|
818
|
-
totpCode?: string | undefined;
|
|
819
|
-
}>;
|
|
820
|
-
}, "strict", z.ZodTypeAny, {
|
|
821
|
-
reauth: {
|
|
822
|
-
password?: string | undefined;
|
|
823
|
-
emailCode?: {
|
|
824
|
-
code: string;
|
|
825
|
-
verificationId: string;
|
|
826
|
-
} | undefined;
|
|
827
|
-
totpCode?: string | undefined;
|
|
828
|
-
};
|
|
829
|
-
}, {
|
|
830
|
-
reauth: {
|
|
831
|
-
password?: string | undefined;
|
|
832
|
-
emailCode?: {
|
|
833
|
-
code: string;
|
|
834
|
-
verificationId: string;
|
|
835
|
-
} | undefined;
|
|
836
|
-
totpCode?: string | undefined;
|
|
837
|
-
};
|
|
838
|
-
}>;
|
|
346
|
+
}, z.core.$strict>;
|
|
347
|
+
}, z.core.$strict>;
|
|
839
348
|
export type TotpReauthRequest = z.infer<typeof totpReauthRequestSchema>;
|
|
840
349
|
/** Shown once; each works one time. */
|
|
841
350
|
export interface TotpBackupCodesResponse {
|