@reactionary/core 0.12.3 → 0.12.5

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.
@@ -9,6 +9,23 @@ export declare const IdentityMutationRegisterSchema: z.ZodObject<{
9
9
  username: z.ZodString;
10
10
  password: z.ZodString;
11
11
  }, z.core.$loose>;
12
+ export declare const IdentityMutationStartExternalLoginSchema: z.ZodObject<{
13
+ provider: z.ZodObject<{
14
+ key: z.ZodString;
15
+ }, z.core.$loose>;
16
+ callbackUrl: z.ZodURL;
17
+ }, z.core.$loose>;
18
+ export declare const IdentityMutationCompleteExternalLoginSchema: z.ZodObject<{
19
+ provider: z.ZodObject<{
20
+ key: z.ZodString;
21
+ }, z.core.$loose>;
22
+ callbackUrl: z.ZodURL;
23
+ callbackParameters: z.ZodRecord<z.ZodString, z.ZodString>;
24
+ }, z.core.$loose>;
12
25
  export type IdentityMutationLogin = InferType<typeof IdentityMutationLoginSchema>;
13
26
  export type IdentityMutationLogout = InferType<typeof IdentityMutationLogoutSchema>;
14
27
  export type IdentityMutationRegister = InferType<typeof IdentityMutationRegisterSchema>;
28
+ export type IdentityMutationStartExternalLogin = InferType<typeof IdentityMutationStartExternalLoginSchema>;
29
+ export type IdentityMutationCompleteExternalLogin = Omit<InferType<typeof IdentityMutationCompleteExternalLoginSchema>, 'callbackParameters'> & {
30
+ callbackParameters: Record<string, string>;
31
+ };
@@ -1,4 +1,6 @@
1
1
  import type * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const IdentityQuerySelfSchema: z.ZodObject<{}, z.core.$loose>;
4
+ export declare const IdentityQueryProvidersSchema: z.ZodObject<{}, z.core.$loose>;
5
+ export type IdentityQueryProviders = InferType<typeof IdentityQueryProvidersSchema>;
4
6
  export type IdentityQuerySelf = InferType<typeof IdentityQuerySelfSchema>;
@@ -203,6 +203,11 @@ export declare const IdentityContextSchema: z.ZodObject<{
203
203
  type: z.ZodLiteral<"Registered">;
204
204
  }, z.core.$loose>], "type">;
205
205
  lastUpdated: z.ZodCoercedDate<unknown>;
206
+ pendingExternalLogin: z.ZodOptional<z.ZodObject<{
207
+ provider: z.ZodString;
208
+ state: z.ZodString;
209
+ createdAt: z.ZodCoercedDate<unknown>;
210
+ }, z.core.$loose>>;
206
211
  }, z.core.$loose>;
207
212
  export declare const SessionSchema: z.ZodObject<{
208
213
  id: z.ZodOptional<z.ZodString>;
@@ -221,6 +226,11 @@ export declare const SessionSchema: z.ZodObject<{
221
226
  type: z.ZodLiteral<"Registered">;
222
227
  }, z.core.$loose>], "type">;
223
228
  lastUpdated: z.ZodCoercedDate<unknown>;
229
+ pendingExternalLogin: z.ZodOptional<z.ZodObject<{
230
+ provider: z.ZodString;
231
+ state: z.ZodString;
232
+ createdAt: z.ZodCoercedDate<unknown>;
233
+ }, z.core.$loose>>;
224
234
  }, z.core.$loose>;
225
235
  marketingContext: z.ZodDefault<z.ZodObject<{
226
236
  identifier: z.ZodObject<{
@@ -258,6 +268,11 @@ export declare const RequestContextSchema: z.ZodObject<{
258
268
  type: z.ZodLiteral<"Registered">;
259
269
  }, z.core.$loose>], "type">;
260
270
  lastUpdated: z.ZodCoercedDate<unknown>;
271
+ pendingExternalLogin: z.ZodOptional<z.ZodObject<{
272
+ provider: z.ZodString;
273
+ state: z.ZodString;
274
+ createdAt: z.ZodCoercedDate<unknown>;
275
+ }, z.core.$loose>>;
261
276
  }, z.core.$loose>;
262
277
  marketingContext: z.ZodDefault<z.ZodObject<{
263
278
  identifier: z.ZodObject<{