@shipfox/api-auth-dto 2.0.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.
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 8 files with swc (30.24ms)
2
+ Successfully compiled: 9 files with swc (278.42ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @shipfox/api-auth-dto
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - ba2e3dc: Migrates password email verification from magic links to shared eight-digit email challenges.
8
+
9
+ ### Minor Changes
10
+
11
+ - e6eba5b: Adds the auth user signed-up event contract for durable signup lifecycle integrations.
12
+ - 112c0fa: Adds the Auth inter-module token-minting contract and removes Auth implementation and configuration coupling from its consumers.
13
+
14
+ ### Patch Changes
15
+
16
+ - 4a91956: Publishes a shared provider-neutral `emailSchema` in `@shipfox/api-common-dto` and adopts it across auth and workspace invitation inputs. Adds a read-only `findUserByEmail`/`EmailOwner` seam to `@shipfox/api-auth` for looking up the current owner of a normalized email without creating a session or mutating that user. Extends the packed external consumer gate to exercise both seams against PostgreSQL through installed tarballs.
17
+ - Updated dependencies [4a91956]
18
+ - Updated dependencies [81f9544]
19
+ - @shipfox/api-common-dto@6.0.0
20
+ - @shipfox/inter-module@0.2.0
21
+
22
+ ## 5.0.0
23
+
24
+ ### Patch Changes
25
+
26
+ - bb037af: Resolves workspace packages from source during development while published consumers continue to use compiled output.
27
+ - Updated dependencies [bb037af]
28
+ - @shipfox/api-common-dto@5.0.0
29
+
3
30
  ## 2.0.0
4
31
 
5
32
  ### Minor Changes
package/dist/events.d.ts CHANGED
@@ -1,30 +1,34 @@
1
1
  import { z } from 'zod';
2
- export declare const AUTH_EMAIL_VERIFICATION_SEND_REQUESTED: "auth.email_verification.send_requested";
3
2
  export declare const AUTH_PASSWORD_RESET_SEND_REQUESTED: "auth.password_reset.send_requested";
4
- export declare const authEmailVerificationSendRequestedSchema: z.ZodObject<{
5
- email: z.ZodString;
6
- verifyLink: z.ZodString;
7
- }, z.core.$strip>;
8
- export type AuthEmailVerificationSendRequestedEvent = z.infer<typeof authEmailVerificationSendRequestedSchema>;
3
+ export declare const AUTH_USER_SIGNED_UP: "auth.user.signed_up";
9
4
  export declare const authPasswordResetSendRequestedSchema: z.ZodObject<{
10
5
  email: z.ZodString;
11
6
  resetLink: z.ZodString;
12
7
  expiresInHours: z.ZodNumber;
13
8
  }, z.core.$strip>;
14
9
  export type AuthPasswordResetSendRequestedEvent = z.infer<typeof authPasswordResetSendRequestedSchema>;
10
+ export declare const authUserSignedUpSchema: z.ZodObject<{
11
+ userId: z.ZodString;
12
+ email: z.ZodString;
13
+ name: z.ZodOptional<z.ZodString>;
14
+ viaInvitation: z.ZodBoolean;
15
+ }, z.core.$strip>;
16
+ export type AuthUserSignedUpEvent = z.infer<typeof authUserSignedUpSchema>;
15
17
  export interface AuthEventMap {
16
- [AUTH_EMAIL_VERIFICATION_SEND_REQUESTED]: AuthEmailVerificationSendRequestedEvent;
17
18
  [AUTH_PASSWORD_RESET_SEND_REQUESTED]: AuthPasswordResetSendRequestedEvent;
19
+ [AUTH_USER_SIGNED_UP]: AuthUserSignedUpEvent;
18
20
  }
19
21
  export declare const authEventSchemas: {
20
- "auth.email_verification.send_requested": z.ZodObject<{
21
- email: z.ZodString;
22
- verifyLink: z.ZodString;
23
- }, z.core.$strip>;
24
22
  "auth.password_reset.send_requested": z.ZodObject<{
25
23
  email: z.ZodString;
26
24
  resetLink: z.ZodString;
27
25
  expiresInHours: z.ZodNumber;
28
26
  }, z.core.$strip>;
27
+ "auth.user.signed_up": z.ZodObject<{
28
+ userId: z.ZodString;
29
+ email: z.ZodString;
30
+ name: z.ZodOptional<z.ZodString>;
31
+ viaInvitation: z.ZodBoolean;
32
+ }, z.core.$strip>;
29
33
  };
30
34
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,sCAAsC,EACjD,wCAAiD,CAAC;AACpD,eAAO,MAAM,kCAAkC,EAAG,oCAA6C,CAAC;AAEhG,eAAO,MAAM,wCAAwC;;;iBAGnD,CAAC;AACH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;iBAI/C,CAAC;AACH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,CAAC,sCAAsC,CAAC,EAAE,uCAAuC,CAAC;IAClF,CAAC,kCAAkC,CAAC,EAAE,mCAAmC,CAAC;CAC3E;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;CAGoB,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,kCAAkC,EAAG,oCAA6C,CAAC;AAChG,eAAO,MAAM,mBAAmB,EAAG,qBAA8B,CAAC;AAElE,eAAO,MAAM,oCAAoC;;;;iBAI/C,CAAC;AACH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,oCAAoC,CAC5C,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE3E,MAAM,WAAW,YAAY;IAC3B,CAAC,kCAAkC,CAAC,EAAE,mCAAmC,CAAC;IAC1E,CAAC,mBAAmB,CAAC,EAAE,qBAAqB,CAAC;CAC9C;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;CAGoB,CAAC"}
package/dist/events.js CHANGED
@@ -1,19 +1,21 @@
1
1
  import { z } from 'zod';
2
2
  const emailLinkSchema = z.string().url();
3
- export const AUTH_EMAIL_VERIFICATION_SEND_REQUESTED = 'auth.email_verification.send_requested';
4
3
  export const AUTH_PASSWORD_RESET_SEND_REQUESTED = 'auth.password_reset.send_requested';
5
- export const authEmailVerificationSendRequestedSchema = z.object({
6
- email: z.string().email(),
7
- verifyLink: emailLinkSchema
8
- });
4
+ export const AUTH_USER_SIGNED_UP = 'auth.user.signed_up';
9
5
  export const authPasswordResetSendRequestedSchema = z.object({
10
6
  email: z.string().email(),
11
7
  resetLink: emailLinkSchema,
12
8
  expiresInHours: z.number().int().positive()
13
9
  });
10
+ export const authUserSignedUpSchema = z.object({
11
+ userId: z.string(),
12
+ email: z.string().email(),
13
+ name: z.string().optional(),
14
+ viaInvitation: z.boolean()
15
+ });
14
16
  export const authEventSchemas = {
15
- [AUTH_EMAIL_VERIFICATION_SEND_REQUESTED]: authEmailVerificationSendRequestedSchema,
16
- [AUTH_PASSWORD_RESET_SEND_REQUESTED]: authPasswordResetSendRequestedSchema
17
+ [AUTH_PASSWORD_RESET_SEND_REQUESTED]: authPasswordResetSendRequestedSchema,
18
+ [AUTH_USER_SIGNED_UP]: authUserSignedUpSchema
17
19
  };
18
20
 
19
21
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst emailLinkSchema = z.string().url();\n\nexport const AUTH_EMAIL_VERIFICATION_SEND_REQUESTED =\n 'auth.email_verification.send_requested' as const;\nexport const AUTH_PASSWORD_RESET_SEND_REQUESTED = 'auth.password_reset.send_requested' as const;\n\nexport const authEmailVerificationSendRequestedSchema = z.object({\n email: z.string().email(),\n verifyLink: emailLinkSchema,\n});\nexport type AuthEmailVerificationSendRequestedEvent = z.infer<\n typeof authEmailVerificationSendRequestedSchema\n>;\n\nexport const authPasswordResetSendRequestedSchema = z.object({\n email: z.string().email(),\n resetLink: emailLinkSchema,\n expiresInHours: z.number().int().positive(),\n});\nexport type AuthPasswordResetSendRequestedEvent = z.infer<\n typeof authPasswordResetSendRequestedSchema\n>;\n\nexport interface AuthEventMap {\n [AUTH_EMAIL_VERIFICATION_SEND_REQUESTED]: AuthEmailVerificationSendRequestedEvent;\n [AUTH_PASSWORD_RESET_SEND_REQUESTED]: AuthPasswordResetSendRequestedEvent;\n}\n\nexport const authEventSchemas = {\n [AUTH_EMAIL_VERIFICATION_SEND_REQUESTED]: authEmailVerificationSendRequestedSchema,\n [AUTH_PASSWORD_RESET_SEND_REQUESTED]: authPasswordResetSendRequestedSchema,\n} satisfies Record<keyof AuthEventMap, z.ZodType>;\n"],"names":["z","emailLinkSchema","string","url","AUTH_EMAIL_VERIFICATION_SEND_REQUESTED","AUTH_PASSWORD_RESET_SEND_REQUESTED","authEmailVerificationSendRequestedSchema","object","email","verifyLink","authPasswordResetSendRequestedSchema","resetLink","expiresInHours","number","int","positive","authEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,kBAAkBD,EAAEE,MAAM,GAAGC,GAAG;AAEtC,OAAO,MAAMC,yCACX,yCAAkD;AACpD,OAAO,MAAMC,qCAAqC,qCAA8C;AAEhG,OAAO,MAAMC,2CAA2CN,EAAEO,MAAM,CAAC;IAC/DC,OAAOR,EAAEE,MAAM,GAAGM,KAAK;IACvBC,YAAYR;AACd,GAAG;AAKH,OAAO,MAAMS,uCAAuCV,EAAEO,MAAM,CAAC;IAC3DC,OAAOR,EAAEE,MAAM,GAAGM,KAAK;IACvBG,WAAWV;IACXW,gBAAgBZ,EAAEa,MAAM,GAAGC,GAAG,GAAGC,QAAQ;AAC3C,GAAG;AAUH,OAAO,MAAMC,mBAAmB;IAC9B,CAACZ,uCAAuC,EAAEE;IAC1C,CAACD,mCAAmC,EAAEK;AACxC,EAAkD"}
1
+ {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst emailLinkSchema = z.string().url();\n\nexport const AUTH_PASSWORD_RESET_SEND_REQUESTED = 'auth.password_reset.send_requested' as const;\nexport const AUTH_USER_SIGNED_UP = 'auth.user.signed_up' as const;\n\nexport const authPasswordResetSendRequestedSchema = z.object({\n email: z.string().email(),\n resetLink: emailLinkSchema,\n expiresInHours: z.number().int().positive(),\n});\nexport type AuthPasswordResetSendRequestedEvent = z.infer<\n typeof authPasswordResetSendRequestedSchema\n>;\n\nexport const authUserSignedUpSchema = z.object({\n userId: z.string(),\n email: z.string().email(),\n name: z.string().optional(),\n viaInvitation: z.boolean(),\n});\nexport type AuthUserSignedUpEvent = z.infer<typeof authUserSignedUpSchema>;\n\nexport interface AuthEventMap {\n [AUTH_PASSWORD_RESET_SEND_REQUESTED]: AuthPasswordResetSendRequestedEvent;\n [AUTH_USER_SIGNED_UP]: AuthUserSignedUpEvent;\n}\n\nexport const authEventSchemas = {\n [AUTH_PASSWORD_RESET_SEND_REQUESTED]: authPasswordResetSendRequestedSchema,\n [AUTH_USER_SIGNED_UP]: authUserSignedUpSchema,\n} satisfies Record<keyof AuthEventMap, z.ZodType>;\n"],"names":["z","emailLinkSchema","string","url","AUTH_PASSWORD_RESET_SEND_REQUESTED","AUTH_USER_SIGNED_UP","authPasswordResetSendRequestedSchema","object","email","resetLink","expiresInHours","number","int","positive","authUserSignedUpSchema","userId","name","optional","viaInvitation","boolean","authEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,kBAAkBD,EAAEE,MAAM,GAAGC,GAAG;AAEtC,OAAO,MAAMC,qCAAqC,qCAA8C;AAChG,OAAO,MAAMC,sBAAsB,sBAA+B;AAElE,OAAO,MAAMC,uCAAuCN,EAAEO,MAAM,CAAC;IAC3DC,OAAOR,EAAEE,MAAM,GAAGM,KAAK;IACvBC,WAAWR;IACXS,gBAAgBV,EAAEW,MAAM,GAAGC,GAAG,GAAGC,QAAQ;AAC3C,GAAG;AAKH,OAAO,MAAMC,yBAAyBd,EAAEO,MAAM,CAAC;IAC7CQ,QAAQf,EAAEE,MAAM;IAChBM,OAAOR,EAAEE,MAAM,GAAGM,KAAK;IACvBQ,MAAMhB,EAAEE,MAAM,GAAGe,QAAQ;IACzBC,eAAelB,EAAEmB,OAAO;AAC1B,GAAG;AAQH,OAAO,MAAMC,mBAAmB;IAC9B,CAAChB,mCAAmC,EAAEE;IACtC,CAACD,oBAAoB,EAAES;AACzB,EAAkD"}
@@ -0,0 +1,38 @@
1
+ import { type InterModuleClient } from '@shipfox/inter-module';
2
+ import { z } from 'zod';
3
+ export declare const authInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
4
+ readonly module: "auth";
5
+ readonly methods: {
6
+ readonly mintRunnerSessionToken: {
7
+ readonly input: z.ZodObject<{
8
+ workspaceId: z.ZodString;
9
+ runnerSessionId: z.ZodString;
10
+ scope: z.ZodLiteral<"workspace">;
11
+ labels: z.ZodArray<z.ZodString>;
12
+ maxClaims: z.ZodNullable<z.ZodNumber>;
13
+ }, z.core.$strip>;
14
+ readonly output: z.ZodObject<{
15
+ token: z.ZodString;
16
+ }, z.core.$strip>;
17
+ };
18
+ readonly mintJobLeaseToken: {
19
+ readonly input: z.ZodObject<{
20
+ workflowRunId: z.ZodString;
21
+ workflowRunAttempt: z.ZodOptional<z.ZodNumber>;
22
+ workflowRunAttemptId: z.ZodString;
23
+ jobId: z.ZodString;
24
+ jobExecutionId: z.ZodString;
25
+ projectId: z.ZodString;
26
+ workspaceId: z.ZodString;
27
+ runnerSessionId: z.ZodString;
28
+ currentStepId: z.ZodOptional<z.ZodString>;
29
+ currentStepAttempt: z.ZodOptional<z.ZodNumber>;
30
+ }, z.core.$strip>;
31
+ readonly output: z.ZodObject<{
32
+ token: z.ZodString;
33
+ }, z.core.$strip>;
34
+ };
35
+ };
36
+ }>;
37
+ export type AuthInterModuleClient = InterModuleClient<typeof authInterModuleContract>;
38
+ //# sourceMappingURL=inter-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAWtB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { defineInterModuleContract } from '@shipfox/inter-module';
2
+ import { z } from 'zod';
3
+ import { jobLeaseTokenClaimsSchema } from './schemas/job-lease-token.js';
4
+ import { runnerSessionTokenClaimsSchema } from './schemas/runner-session-token.js';
5
+ const runnerSessionClaimsSchema = runnerSessionTokenClaimsSchema.omit({
6
+ aud: true,
7
+ iat: true,
8
+ exp: true
9
+ });
10
+ const jobLeaseClaimsSchema = jobLeaseTokenClaimsSchema.omit({
11
+ aud: true,
12
+ iat: true,
13
+ exp: true
14
+ });
15
+ export const authInterModuleContract = defineInterModuleContract({
16
+ module: 'auth',
17
+ methods: {
18
+ mintRunnerSessionToken: {
19
+ input: runnerSessionClaimsSchema,
20
+ output: z.object({
21
+ token: z.string().min(1)
22
+ })
23
+ },
24
+ mintJobLeaseToken: {
25
+ input: jobLeaseClaimsSchema,
26
+ output: z.object({
27
+ token: z.string().min(1)
28
+ })
29
+ }
30
+ }
31
+ });
32
+
33
+ //# sourceMappingURL=inter-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\nimport {jobLeaseTokenClaimsSchema} from './schemas/job-lease-token.js';\nimport {runnerSessionTokenClaimsSchema} from './schemas/runner-session-token.js';\n\nconst runnerSessionClaimsSchema = runnerSessionTokenClaimsSchema.omit({\n aud: true,\n iat: true,\n exp: true,\n});\nconst jobLeaseClaimsSchema = jobLeaseTokenClaimsSchema.omit({aud: true, iat: true, exp: true});\n\nexport const authInterModuleContract = defineInterModuleContract({\n module: 'auth',\n methods: {\n mintRunnerSessionToken: {\n input: runnerSessionClaimsSchema,\n output: z.object({token: z.string().min(1)}),\n },\n mintJobLeaseToken: {\n input: jobLeaseClaimsSchema,\n output: z.object({token: z.string().min(1)}),\n },\n },\n});\n\nexport type AuthInterModuleClient = InterModuleClient<typeof authInterModuleContract>;\n"],"names":["defineInterModuleContract","z","jobLeaseTokenClaimsSchema","runnerSessionTokenClaimsSchema","runnerSessionClaimsSchema","omit","aud","iat","exp","jobLeaseClaimsSchema","authInterModuleContract","module","methods","mintRunnerSessionToken","input","output","object","token","string","min","mintJobLeaseToken"],"mappings":"AAAA,SAAQA,yBAAyB,QAA+B,wBAAwB;AACxF,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,yBAAyB,QAAO,+BAA+B;AACvE,SAAQC,8BAA8B,QAAO,oCAAoC;AAEjF,MAAMC,4BAA4BD,+BAA+BE,IAAI,CAAC;IACpEC,KAAK;IACLC,KAAK;IACLC,KAAK;AACP;AACA,MAAMC,uBAAuBP,0BAA0BG,IAAI,CAAC;IAACC,KAAK;IAAMC,KAAK;IAAMC,KAAK;AAAI;AAE5F,OAAO,MAAME,0BAA0BV,0BAA0B;IAC/DW,QAAQ;IACRC,SAAS;QACPC,wBAAwB;YACtBC,OAAOV;YACPW,QAAQd,EAAEe,MAAM,CAAC;gBAACC,OAAOhB,EAAEiB,MAAM,GAAGC,GAAG,CAAC;YAAE;QAC5C;QACAC,mBAAmB;YACjBN,OAAOL;YACPM,QAAQd,EAAEe,MAAM,CAAC;gBAACC,OAAOhB,EAAEiB,MAAM,GAAGC,GAAG,CAAC;YAAE;QAC5C;IACF;AACF,GAAG"}
@@ -1,9 +1,9 @@
1
+ import { emailSchema } from '@shipfox/api-common-dto';
1
2
  import { z } from 'zod';
2
- export declare const EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS = 60;
3
3
  export declare const passwordSchema: z.ZodString;
4
- export declare const emailSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4
+ export { emailSchema };
5
5
  export declare const signupBodySchema: z.ZodObject<{
6
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
6
+ email: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
7
7
  password: z.ZodString;
8
8
  name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
9
9
  invitation_token: z.ZodOptional<z.ZodString>;
@@ -34,6 +34,10 @@ export declare const signupResponseSchema: z.ZodObject<{
34
34
  created_at: z.ZodString;
35
35
  updated_at: z.ZodString;
36
36
  }, z.core.$strip>;
37
+ email_challenge: z.ZodOptional<z.ZodObject<{
38
+ id: z.ZodString;
39
+ next_resend_available_at: z.ZodString;
40
+ }, z.core.$strip>>;
37
41
  token: z.ZodOptional<z.ZodString>;
38
42
  membership: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
43
  id: z.ZodString;
@@ -47,7 +51,7 @@ export declare const signupResponseSchema: z.ZodObject<{
47
51
  }, z.core.$strip>;
48
52
  export type SignupResponseDto = z.infer<typeof signupResponseSchema>;
49
53
  export declare const loginBodySchema: z.ZodObject<{
50
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
54
+ email: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
51
55
  password: z.ZodString;
52
56
  }, z.core.$strip>;
53
57
  export type LoginBodyDto = z.infer<typeof loginBodySchema>;
@@ -109,7 +113,7 @@ export declare const changePasswordBodySchema: z.ZodObject<{
109
113
  }, z.core.$strip>;
110
114
  export type ChangePasswordBodyDto = z.infer<typeof changePasswordBodySchema>;
111
115
  export declare const passwordResetRequestBodySchema: z.ZodObject<{
112
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
116
+ email: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
113
117
  }, z.core.$strip>;
114
118
  export type PasswordResetRequestBodyDto = z.infer<typeof passwordResetRequestBodySchema>;
115
119
  export declare const passwordResetConfirmBodySchema: z.ZodObject<{
@@ -135,7 +139,9 @@ export declare const passwordResetConfirmResponseSchema: z.ZodObject<{
135
139
  }, z.core.$strip>;
136
140
  export type PasswordResetConfirmResponseDto = z.infer<typeof passwordResetConfirmResponseSchema>;
137
141
  export declare const verifyEmailConfirmBodySchema: z.ZodObject<{
138
- token: z.ZodString;
142
+ email: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
143
+ challenge_id: z.ZodString;
144
+ code: z.ZodString;
139
145
  }, z.core.$strip>;
140
146
  export type VerifyEmailConfirmBodyDto = z.infer<typeof verifyEmailConfirmBodySchema>;
141
147
  export declare const verifyEmailConfirmResponseSchema: z.ZodObject<{
@@ -156,7 +162,8 @@ export declare const verifyEmailConfirmResponseSchema: z.ZodObject<{
156
162
  }, z.core.$strip>;
157
163
  export type VerifyEmailConfirmResponseDto = z.infer<typeof verifyEmailConfirmResponseSchema>;
158
164
  export declare const verifyEmailResendBodySchema: z.ZodObject<{
159
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
165
+ email: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
166
+ challenge_id: z.ZodString;
160
167
  }, z.core.$strip>;
161
168
  export type VerifyEmailResendBodyDto = z.infer<typeof verifyEmailResendBodySchema>;
162
169
  export declare const verifyEmailResendResponseSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/schemas/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,0CAA0C,KAAK,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api-common-dto';
2
2
  import { z } from 'zod';
3
3
  import { userDtoSchema } from './user.js';
4
- export const EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS = 60;
5
4
  export const passwordSchema = z.string().min(12).max(128);
6
- export const emailSchema = z.string().email().max(254).transform((value)=>value.toLowerCase());
5
+ export { emailSchema };
7
6
  export const signupBodySchema = z.object({
8
7
  email: emailSchema,
9
8
  password: passwordSchema,
@@ -21,6 +20,10 @@ export const signupMembershipSchema = z.object({
21
20
  });
22
21
  export const signupResponseSchema = z.object({
23
22
  user: userDtoSchema,
23
+ email_challenge: z.object({
24
+ id: z.string().uuid(),
25
+ next_resend_available_at: z.string().datetime()
26
+ }).optional(),
24
27
  token: z.string().optional(),
25
28
  membership: signupMembershipSchema.nullable().optional(),
26
29
  accept_error: signupAcceptErrorSchema.optional()
@@ -51,11 +54,14 @@ export const passwordResetConfirmBodySchema = z.object({
51
54
  });
52
55
  export const passwordResetConfirmResponseSchema = loginResponseSchema;
53
56
  export const verifyEmailConfirmBodySchema = z.object({
54
- token: z.string().min(1)
57
+ email: emailSchema,
58
+ challenge_id: z.string().uuid(),
59
+ code: z.string().regex(/^\d{8}$/u)
55
60
  });
56
61
  export const verifyEmailConfirmResponseSchema = loginResponseSchema;
57
62
  export const verifyEmailResendBodySchema = z.object({
58
- email: emailSchema
63
+ email: emailSchema,
64
+ challenge_id: z.string().uuid()
59
65
  });
60
66
  export const verifyEmailResendResponseSchema = z.object({
61
67
  next_resend_available_at: z.string().datetime()
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/auth.ts"],"sourcesContent":["import {displayNameSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\nimport {userDtoSchema} from './user.js';\n\nexport const EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS = 60;\n\nexport const passwordSchema = z.string().min(12).max(128);\nexport const emailSchema = z\n .string()\n .email()\n .max(254)\n .transform((value) => value.toLowerCase());\n\nexport const signupBodySchema = z.object({\n email: emailSchema,\n password: passwordSchema,\n name: displayNameSchema,\n invitation_token: z.string().min(1).max(256).optional(),\n});\n\nexport type SignupBodyDto = z.infer<typeof signupBodySchema>;\n\nexport const signupAcceptErrorSchema = z.object({\n code: z.string(),\n message: z.string(),\n});\n\nexport type SignupAcceptErrorDto = z.infer<typeof signupAcceptErrorSchema>;\n\nexport const signupMembershipSchema = z.object({\n id: z.string().uuid(),\n user_id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n});\n\nexport type SignupMembershipDto = z.infer<typeof signupMembershipSchema>;\n\nexport const signupResponseSchema = z.object({\n user: userDtoSchema,\n token: z.string().optional(),\n membership: signupMembershipSchema.nullable().optional(),\n accept_error: signupAcceptErrorSchema.optional(),\n});\n\nexport type SignupResponseDto = z.infer<typeof signupResponseSchema>;\n\nexport const loginBodySchema = z.object({\n email: emailSchema,\n password: z.string().min(1).max(128),\n});\n\nexport type LoginBodyDto = z.infer<typeof loginBodySchema>;\n\nexport const loginResponseSchema = z.object({\n token: z.string(),\n user: userDtoSchema,\n});\n\nexport type LoginResponseDto = z.infer<typeof loginResponseSchema>;\n\nexport const refreshResponseSchema = loginResponseSchema;\n\nexport type RefreshResponseDto = z.infer<typeof refreshResponseSchema>;\n\nexport const meResponseSchema = z.object({\n user: userDtoSchema,\n});\n\nexport type MeResponseDto = z.infer<typeof meResponseSchema>;\n\nexport const logoutBodySchema = z.object({});\n\nexport type LogoutBodyDto = z.infer<typeof logoutBodySchema>;\n\nexport const changePasswordBodySchema = z.object({\n current_password: z.string().min(1).max(128),\n new_password: passwordSchema,\n});\n\nexport type ChangePasswordBodyDto = z.infer<typeof changePasswordBodySchema>;\n\nexport const passwordResetRequestBodySchema = z.object({\n email: emailSchema,\n});\n\nexport type PasswordResetRequestBodyDto = z.infer<typeof passwordResetRequestBodySchema>;\n\nexport const passwordResetConfirmBodySchema = z.object({\n token: z.string().min(1),\n new_password: passwordSchema,\n});\n\nexport type PasswordResetConfirmBodyDto = z.infer<typeof passwordResetConfirmBodySchema>;\n\nexport const passwordResetConfirmResponseSchema = loginResponseSchema;\n\nexport type PasswordResetConfirmResponseDto = z.infer<typeof passwordResetConfirmResponseSchema>;\n\nexport const verifyEmailConfirmBodySchema = z.object({\n token: z.string().min(1),\n});\n\nexport type VerifyEmailConfirmBodyDto = z.infer<typeof verifyEmailConfirmBodySchema>;\n\nexport const verifyEmailConfirmResponseSchema = loginResponseSchema;\n\nexport type VerifyEmailConfirmResponseDto = z.infer<typeof verifyEmailConfirmResponseSchema>;\n\nexport const verifyEmailResendBodySchema = z.object({\n email: emailSchema,\n});\n\nexport type VerifyEmailResendBodyDto = z.infer<typeof verifyEmailResendBodySchema>;\n\nexport const verifyEmailResendResponseSchema = z.object({\n next_resend_available_at: z.string().datetime(),\n});\n\nexport type VerifyEmailResendResponseDto = z.infer<typeof verifyEmailResendResponseSchema>;\n"],"names":["displayNameSchema","z","userDtoSchema","EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS","passwordSchema","string","min","max","emailSchema","email","transform","value","toLowerCase","signupBodySchema","object","password","name","invitation_token","optional","signupAcceptErrorSchema","code","message","signupMembershipSchema","id","uuid","user_id","workspace_id","signupResponseSchema","user","token","membership","nullable","accept_error","loginBodySchema","loginResponseSchema","refreshResponseSchema","meResponseSchema","logoutBodySchema","changePasswordBodySchema","current_password","new_password","passwordResetRequestBodySchema","passwordResetConfirmBodySchema","passwordResetConfirmResponseSchema","verifyEmailConfirmBodySchema","verifyEmailConfirmResponseSchema","verifyEmailResendBodySchema","verifyEmailResendResponseSchema","next_resend_available_at","datetime"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,0BAA0B;AAC1D,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,aAAa,QAAO,YAAY;AAExC,OAAO,MAAMC,6CAA6C,GAAG;AAE7D,OAAO,MAAMC,iBAAiBH,EAAEI,MAAM,GAAGC,GAAG,CAAC,IAAIC,GAAG,CAAC,KAAK;AAC1D,OAAO,MAAMC,cAAcP,EACxBI,MAAM,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A2BrC,EAAEa,MAAM,CAAC;IAC/CyB,kBAAkBtC,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC;IACxCiC,cAAcpC;AAChB,GAAG;AAIH,OAAO,MAAMqC,iCAAiCxC,EAAEa,MAAM,CAAC;IACrDL,OAAOD;AACT,GAAG;AAIH,OAAO,MAAMkC,iCAAiCzC,EAAEa,MAAM,CAAC;IACrDe,OAAO5B,EAAEI,MAAM,GAAGC,GAAG,CAAC;IACtBkC,cAAcpC;AAChB,GAAG;AAIH,OAAO,MAAMuC,qCAAqCT,oBAAoB;AAItE,OAAO,MAAMU,+BAA+B3C,EAAEa,MAAM,CAAC;IACnDe,OAAO5B,EAAEI,MAAM,GAAGC,GAAG,CAAC;AACxB,GAAG;AAIH,OAAO,MAAMuC,mCAAmCX,oBAAoB;AAIpE,OAAO,MAAMY,8BAA8B7C,EAAEa,MAAM,CAAC;IAClDL,OAAOD;AACT,GAAG;AAIH,OAAO,MAAMuC,kCAAkC9C,EAAEa,MAAM,CAAC;IACtDkC,0BAA0B/C,EAAEI,MAAM,GAAG4C,QAAQ;AAC/C,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/auth.ts"],"sourcesContent":["import {displayNameSchema, emailSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\nimport {userDtoSchema} from './user.js';\n\nexport const passwordSchema = z.string().min(12).max(128);\nexport {emailSchema};\n\nexport const signupBodySchema = z.object({\n email: emailSchema,\n password: passwordSchema,\n name: displayNameSchema,\n invitation_token: z.string().min(1).max(256).optional(),\n});\n\nexport type SignupBodyDto = z.infer<typeof signupBodySchema>;\n\nexport const signupAcceptErrorSchema = z.object({\n code: z.string(),\n message: z.string(),\n});\n\nexport type SignupAcceptErrorDto = z.infer<typeof signupAcceptErrorSchema>;\n\nexport const signupMembershipSchema = z.object({\n id: z.string().uuid(),\n user_id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n});\n\nexport type SignupMembershipDto = z.infer<typeof signupMembershipSchema>;\n\nexport const signupResponseSchema = z.object({\n user: userDtoSchema,\n email_challenge: z\n .object({\n id: z.string().uuid(),\n next_resend_available_at: z.string().datetime(),\n })\n .optional(),\n token: z.string().optional(),\n membership: signupMembershipSchema.nullable().optional(),\n accept_error: signupAcceptErrorSchema.optional(),\n});\n\nexport type SignupResponseDto = z.infer<typeof signupResponseSchema>;\n\nexport const loginBodySchema = z.object({\n email: emailSchema,\n password: z.string().min(1).max(128),\n});\n\nexport type LoginBodyDto = z.infer<typeof loginBodySchema>;\n\nexport const loginResponseSchema = z.object({\n token: z.string(),\n user: userDtoSchema,\n});\n\nexport type LoginResponseDto = z.infer<typeof loginResponseSchema>;\n\nexport const refreshResponseSchema = loginResponseSchema;\n\nexport type RefreshResponseDto = z.infer<typeof refreshResponseSchema>;\n\nexport const meResponseSchema = z.object({\n user: userDtoSchema,\n});\n\nexport type MeResponseDto = z.infer<typeof meResponseSchema>;\n\nexport const logoutBodySchema = z.object({});\n\nexport type LogoutBodyDto = z.infer<typeof logoutBodySchema>;\n\nexport const changePasswordBodySchema = z.object({\n current_password: z.string().min(1).max(128),\n new_password: passwordSchema,\n});\n\nexport type ChangePasswordBodyDto = z.infer<typeof changePasswordBodySchema>;\n\nexport const passwordResetRequestBodySchema = z.object({\n email: emailSchema,\n});\n\nexport type PasswordResetRequestBodyDto = z.infer<typeof passwordResetRequestBodySchema>;\n\nexport const passwordResetConfirmBodySchema = z.object({\n token: z.string().min(1),\n new_password: passwordSchema,\n});\n\nexport type PasswordResetConfirmBodyDto = z.infer<typeof passwordResetConfirmBodySchema>;\n\nexport const passwordResetConfirmResponseSchema = loginResponseSchema;\n\nexport type PasswordResetConfirmResponseDto = z.infer<typeof passwordResetConfirmResponseSchema>;\n\nexport const verifyEmailConfirmBodySchema = z.object({\n email: emailSchema,\n challenge_id: z.string().uuid(),\n code: z.string().regex(/^\\d{8}$/u),\n});\n\nexport type VerifyEmailConfirmBodyDto = z.infer<typeof verifyEmailConfirmBodySchema>;\n\nexport const verifyEmailConfirmResponseSchema = loginResponseSchema;\n\nexport type VerifyEmailConfirmResponseDto = z.infer<typeof verifyEmailConfirmResponseSchema>;\n\nexport const verifyEmailResendBodySchema = z.object({\n email: emailSchema,\n challenge_id: z.string().uuid(),\n});\n\nexport type VerifyEmailResendBodyDto = z.infer<typeof verifyEmailResendBodySchema>;\n\nexport const verifyEmailResendResponseSchema = z.object({\n next_resend_available_at: z.string().datetime(),\n});\n\nexport type VerifyEmailResendResponseDto = z.infer<typeof verifyEmailResendResponseSchema>;\n"],"names":["displayNameSchema","emailSchema","z","userDtoSchema","passwordSchema","string","min","max","signupBodySchema","object","email","password","name","invitation_token","optional","signupAcceptErrorSchema","code","message","signupMembershipSchema","id","uuid","user_id","workspace_id","signupResponseSchema","user","email_challenge","next_resend_available_at","datetime","token","membership","nullable","accept_error","loginBodySchema","loginResponseSchema","refreshResponseSchema","meResponseSchema","logoutBodySchema","changePasswordBodySchema","current_password","new_password","passwordResetRequestBodySchema","passwordResetConfirmBodySchema","passwordResetConfirmResponseSchema","verifyEmailConfirmBodySchema","challenge_id","regex","verifyEmailConfirmResponseSchema","verifyEmailResendBodySchema","verifyEmailResendResponseSchema"],"mappings":"AAAA,SAAQA,iBAAiB,EAAEC,WAAW,QAAO,0BAA0B;AACvE,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,aAAa,QAAO,YAAY;AAExC,OAAO,MAAMC,iBAAiBF,EAAEG,MAAM,GAAGC,GAAG,CAAC,IAAIC,GAAG,CAAC,KAAK;AAC1D,SAAQN,WAAW,GAAE;AAErB,OAAO,MAAMO,mBAAmBN,EAAEO,MAAM,CAAC;IACvCC,OAAOT;IACPU,UAAUP;IACVQ,MAAMZ;IACNa,kBAAkBX,EAAEG,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKO,QAAQ;AACvD,GAAG;AAIH,OAAO,MAAMC,0BAA0Bb,EAAEO,MAAM,CAAC;IAC9CO,MAAMd,EAAEG,MA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AAIH,OAAO,MAAMwC,iCAAiCvC,EAAEO,MAAM,CAAC;IACrDmB,OAAO1B,EAAEG,MAAM,GAAGC,GAAG,CAAC;IACtBiC,cAAcnC;AAChB,GAAG;AAIH,OAAO,MAAMsC,qCAAqCT,oBAAoB;AAItE,OAAO,MAAMU,+BAA+BzC,EAAEO,MAAM,CAAC;IACnDC,OAAOT;IACP2C,cAAc1C,EAAEG,MAAM,GAAGe,IAAI;IAC7BJ,MAAMd,EAAEG,MAAM,GAAGwC,KAAK,CAAC;AACzB,GAAG;AAIH,OAAO,MAAMC,mCAAmCb,oBAAoB;AAIpE,OAAO,MAAMc,8BAA8B7C,EAAEO,MAAM,CAAC;IAClDC,OAAOT;IACP2C,cAAc1C,EAAEG,MAAM,GAAGe,IAAI;AAC/B,GAAG;AAIH,OAAO,MAAM4B,kCAAkC9C,EAAEO,MAAM,CAAC;IACtDiB,0BAA0BxB,EAAEG,MAAM,GAAGsB,QAAQ;AAC/C,GAAG"}
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const e2eCreateUserBodySchema: z.ZodObject<{
3
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3
+ email: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
4
4
  password: z.ZodString;
5
5
  verified: z.ZodBoolean;
6
6
  name: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
@@ -26,7 +26,7 @@ export declare const e2eCreateUserResponseSchema: z.ZodObject<{
26
26
  export type E2eCreateUserResponseDto = z.infer<typeof e2eCreateUserResponseSchema>;
27
27
  export declare const e2eCreateSessionBodySchema: z.ZodObject<{
28
28
  user_id: z.ZodOptional<z.ZodString>;
29
- email: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
29
+ email: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
30
30
  }, z.core.$strip>;
31
31
  export type E2eCreateSessionBodyDto = z.infer<typeof e2eCreateSessionBodySchema>;
32
32
  export declare const e2eCreateSessionResponseSchema: z.ZodObject<{
@@ -1,5 +1,5 @@
1
- export { AUTH_EMAIL_VERIFICATION_SEND_REQUESTED, AUTH_PASSWORD_RESET_SEND_REQUESTED, type AuthEmailVerificationSendRequestedEvent, type AuthEventMap, type AuthPasswordResetSendRequestedEvent, authEmailVerificationSendRequestedSchema, authEventSchemas, authPasswordResetSendRequestedSchema, } from '../events.js';
2
- export { type ChangePasswordBodyDto, changePasswordBodySchema, EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS, emailSchema, type LoginBodyDto, type LoginResponseDto, type LogoutBodyDto, loginBodySchema, loginResponseSchema, logoutBodySchema, type MeResponseDto, meResponseSchema, type PasswordResetConfirmBodyDto, type PasswordResetConfirmResponseDto, type PasswordResetRequestBodyDto, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, type RefreshResponseDto, refreshResponseSchema, type SignupAcceptErrorDto, type SignupBodyDto, type SignupMembershipDto, type SignupResponseDto, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, type VerifyEmailConfirmBodyDto, type VerifyEmailConfirmResponseDto, type VerifyEmailResendBodyDto, type VerifyEmailResendResponseDto, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema, } from './auth.js';
1
+ export { AUTH_PASSWORD_RESET_SEND_REQUESTED, AUTH_USER_SIGNED_UP, type AuthEventMap, type AuthPasswordResetSendRequestedEvent, type AuthUserSignedUpEvent, authEventSchemas, authPasswordResetSendRequestedSchema, authUserSignedUpSchema, } from '../events.js';
2
+ export { type ChangePasswordBodyDto, changePasswordBodySchema, emailSchema, type LoginBodyDto, type LoginResponseDto, type LogoutBodyDto, loginBodySchema, loginResponseSchema, logoutBodySchema, type MeResponseDto, meResponseSchema, type PasswordResetConfirmBodyDto, type PasswordResetConfirmResponseDto, type PasswordResetRequestBodyDto, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, type RefreshResponseDto, refreshResponseSchema, type SignupAcceptErrorDto, type SignupBodyDto, type SignupMembershipDto, type SignupResponseDto, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, type VerifyEmailConfirmBodyDto, type VerifyEmailConfirmResponseDto, type VerifyEmailResendBodyDto, type VerifyEmailResendResponseDto, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema, } from './auth.js';
3
3
  export { type E2eCreateSessionBodyDto, type E2eCreateSessionResponseDto, type E2eCreateUserBodyDto, type E2eCreateUserResponseDto, type E2eSessionDto, e2eCreateSessionBodySchema, e2eCreateSessionResponseSchema, e2eCreateUserBodySchema, e2eCreateUserResponseSchema, } from './e2e.js';
4
4
  export { JOB_LEASE_TOKEN_AUDIENCE, type JobLeaseTokenClaims, jobLeaseTokenClaimsSchema, } from './job-lease-token.js';
5
5
  export { RUNNER_SESSION_TOKEN_AUDIENCE, type RunnerSessionTokenClaims, runnerSessionTokenClaimsSchema, } from './runner-session-token.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,kCAAkC,EAClC,KAAK,uCAAuC,EAC5C,KAAK,YAAY,EACjB,KAAK,mCAAmC,EACxC,wCAAwC,EACxC,gBAAgB,EAChB,oCAAoC,GACrC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,0CAA0C,EAC1C,WAAW,EACX,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,KAAK,aAAa,EAClB,gBAAgB,EA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ACjB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,KAAK,aAAa,EAClB,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,8BAA8B,EAC9B,kCAAkC,EAClC,8BAA8B,EAC9B,cAAc,EACd,KAAK,kBAAkB,EACvB,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,4BAA4B,EAC5B,gCAAgC,EAChC,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,0BAA0B,EAC1B,8BAA8B,EAC9B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,wBAAwB,EACxB,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAC,KAAK,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAC,MAAM,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
- export { AUTH_EMAIL_VERIFICATION_SEND_REQUESTED, AUTH_PASSWORD_RESET_SEND_REQUESTED, authEmailVerificationSendRequestedSchema, authEventSchemas, authPasswordResetSendRequestedSchema } from '../events.js';
2
- export { changePasswordBodySchema, EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS, emailSchema, loginBodySchema, loginResponseSchema, logoutBodySchema, meResponseSchema, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, refreshResponseSchema, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema } from './auth.js';
1
+ export { AUTH_PASSWORD_RESET_SEND_REQUESTED, AUTH_USER_SIGNED_UP, authEventSchemas, authPasswordResetSendRequestedSchema, authUserSignedUpSchema } from '../events.js';
2
+ export { changePasswordBodySchema, emailSchema, loginBodySchema, loginResponseSchema, logoutBodySchema, meResponseSchema, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, refreshResponseSchema, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema } from './auth.js';
3
3
  export { e2eCreateSessionBodySchema, e2eCreateSessionResponseSchema, e2eCreateUserBodySchema, e2eCreateUserResponseSchema } from './e2e.js';
4
4
  export { JOB_LEASE_TOKEN_AUDIENCE, jobLeaseTokenClaimsSchema } from './job-lease-token.js';
5
5
  export { RUNNER_SESSION_TOKEN_AUDIENCE, runnerSessionTokenClaimsSchema } from './runner-session-token.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n AUTH_EMAIL_VERIFICATION_SEND_REQUESTED,\n AUTH_PASSWORD_RESET_SEND_REQUESTED,\n type AuthEmailVerificationSendRequestedEvent,\n type AuthEventMap,\n type AuthPasswordResetSendRequestedEvent,\n authEmailVerificationSendRequestedSchema,\n authEventSchemas,\n authPasswordResetSendRequestedSchema,\n} from '../events.js';\nexport {\n type ChangePasswordBodyDto,\n changePasswordBodySchema,\n EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS,\n emailSchema,\n type LoginBodyDto,\n type LoginResponseDto,\n type LogoutBodyDto,\n loginBodySchema,\n loginResponseSchema,\n logoutBodySchema,\n type MeResponseDto,\n meResponseSchema,\n type PasswordResetConfirmBodyDto,\n type PasswordResetConfirmResponseDto,\n type PasswordResetRequestBodyDto,\n passwordResetConfirmBodySchema,\n passwordResetConfirmResponseSchema,\n passwordResetRequestBodySchema,\n passwordSchema,\n type RefreshResponseDto,\n refreshResponseSchema,\n type SignupAcceptErrorDto,\n type SignupBodyDto,\n type SignupMembershipDto,\n type SignupResponseDto,\n signupAcceptErrorSchema,\n signupBodySchema,\n signupMembershipSchema,\n signupResponseSchema,\n type VerifyEmailConfirmBodyDto,\n type VerifyEmailConfirmResponseDto,\n type VerifyEmailResendBodyDto,\n type VerifyEmailResendResponseDto,\n verifyEmailConfirmBodySchema,\n verifyEmailConfirmResponseSchema,\n verifyEmailResendBodySchema,\n verifyEmailResendResponseSchema,\n} from './auth.js';\nexport {\n type E2eCreateSessionBodyDto,\n type E2eCreateSessionResponseDto,\n type E2eCreateUserBodyDto,\n type E2eCreateUserResponseDto,\n type E2eSessionDto,\n e2eCreateSessionBodySchema,\n e2eCreateSessionResponseSchema,\n e2eCreateUserBodySchema,\n e2eCreateUserResponseSchema,\n} from './e2e.js';\nexport {\n JOB_LEASE_TOKEN_AUDIENCE,\n type JobLeaseTokenClaims,\n jobLeaseTokenClaimsSchema,\n} from './job-lease-token.js';\nexport {\n RUNNER_SESSION_TOKEN_AUDIENCE,\n type RunnerSessionTokenClaims,\n runnerSessionTokenClaimsSchema,\n} from './runner-session-token.js';\nexport {type UserDto, userDtoSchema, userStatusSchema} from './user.js';\n"],"names":["AUTH_EMAIL_VERIFICATION_SEND_REQUESTED","AUTH_PASSWORD_RESET_SEND_REQUESTED","authEmailVerificationSendRequestedSchema","authEventSchemas","authPasswordResetSendRequestedSchema","changePasswordBodySchema","EMAIL_VERIFICATION_RESEND_COOLDOWN_SECONDS","emailSchema","loginBodySchema","loginResponseSchema","logoutBodySchema","meResponseSchema","passwordResetConfirmBodySchema","passwordResetConfirmResponseSchema","passwordResetRequestBodySchema","passwordSchema","refreshResponseSchema","signupAcceptErrorSchema","signupBodySchema","signupMembershipSchema","signupResponseSchema","verifyEmailConfirmBodySchema","verifyEmailConfirmResponseSchema","verifyEmailResendBodySchema","verifyEmailResendResponseSchema","e2eCreateSessionBodySchema","e2eCreateSessionResponseSchema","e2eCreateUserBodySchema","e2eCreateUserResponseSchema","JOB_LEASE_TOKEN_AUDIENCE","jobLeaseTokenClaimsSchema","RUNNER_SESSION_TOKEN_AUDIENCE","runnerSessionTokenClaimsSchema","userDtoSchema","userStatusSchema"],"mappings":"AAAA,SACEA,sCAAsC,EACtCC,kCAAkC,EAIlCC,wCAAwC,EACxCC,gBAAgB,EAChBC,oCAAoC,QAC/B,eAAe;AACtB,SAEEC,wBAAwB,EACxBC,0CAA0C,EAC1CC,WAAW,EAIXC,eAAe,EACfC,mBAAmB,EACnBC,gBAAgB,EAEhBC,gBAAgB,EAIhBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,8BAA8B,EAC9BC,cAAc,EAEdC,qBAAqB,EAKrBC,uBAAuB,EACvBC,gBAAgB,EAChBC,sBAAsB,EACtBC,oBAAoB,EAKpBC,4BAA4B,EAC5BC,gCAAgC,EAChCC,2BAA2B,EAC3BC,+BAA+B,QAC1B,YAAY;AACnB,SAMEC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,uBAAuB,EACvBC,2BAA2B,QACtB,WAAW;AAClB,SACEC,wBAAwB,EAExBC,yBAAyB,QACpB,uBAAuB;AAC9B,SACEC,6BAA6B,EAE7BC,8BAA8B,QACzB,4BAA4B;AACnC,SAAsBC,aAAa,EAAEC,gBAAgB,QAAO,YAAY"}
1
+ {"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n AUTH_PASSWORD_RESET_SEND_REQUESTED,\n AUTH_USER_SIGNED_UP,\n type AuthEventMap,\n type AuthPasswordResetSendRequestedEvent,\n type AuthUserSignedUpEvent,\n authEventSchemas,\n authPasswordResetSendRequestedSchema,\n authUserSignedUpSchema,\n} from '../events.js';\nexport {\n type ChangePasswordBodyDto,\n changePasswordBodySchema,\n emailSchema,\n type LoginBodyDto,\n type LoginResponseDto,\n type LogoutBodyDto,\n loginBodySchema,\n loginResponseSchema,\n logoutBodySchema,\n type MeResponseDto,\n meResponseSchema,\n type PasswordResetConfirmBodyDto,\n type PasswordResetConfirmResponseDto,\n type PasswordResetRequestBodyDto,\n passwordResetConfirmBodySchema,\n passwordResetConfirmResponseSchema,\n passwordResetRequestBodySchema,\n passwordSchema,\n type RefreshResponseDto,\n refreshResponseSchema,\n type SignupAcceptErrorDto,\n type SignupBodyDto,\n type SignupMembershipDto,\n type SignupResponseDto,\n signupAcceptErrorSchema,\n signupBodySchema,\n signupMembershipSchema,\n signupResponseSchema,\n type VerifyEmailConfirmBodyDto,\n type VerifyEmailConfirmResponseDto,\n type VerifyEmailResendBodyDto,\n type VerifyEmailResendResponseDto,\n verifyEmailConfirmBodySchema,\n verifyEmailConfirmResponseSchema,\n verifyEmailResendBodySchema,\n verifyEmailResendResponseSchema,\n} from './auth.js';\nexport {\n type E2eCreateSessionBodyDto,\n type E2eCreateSessionResponseDto,\n type E2eCreateUserBodyDto,\n type E2eCreateUserResponseDto,\n type E2eSessionDto,\n e2eCreateSessionBodySchema,\n e2eCreateSessionResponseSchema,\n e2eCreateUserBodySchema,\n e2eCreateUserResponseSchema,\n} from './e2e.js';\nexport {\n JOB_LEASE_TOKEN_AUDIENCE,\n type JobLeaseTokenClaims,\n jobLeaseTokenClaimsSchema,\n} from './job-lease-token.js';\nexport {\n RUNNER_SESSION_TOKEN_AUDIENCE,\n type RunnerSessionTokenClaims,\n runnerSessionTokenClaimsSchema,\n} from './runner-session-token.js';\nexport {type UserDto, userDtoSchema, userStatusSchema} from './user.js';\n"],"names":["AUTH_PASSWORD_RESET_SEND_REQUESTED","AUTH_USER_SIGNED_UP","authEventSchemas","authPasswordResetSendRequestedSchema","authUserSignedUpSchema","changePasswordBodySchema","emailSchema","loginBodySchema","loginResponseSchema","logoutBodySchema","meResponseSchema","passwordResetConfirmBodySchema","passwordResetConfirmResponseSchema","passwordResetRequestBodySchema","passwordSchema","refreshResponseSchema","signupAcceptErrorSchema","signupBodySchema","signupMembershipSchema","signupResponseSchema","verifyEmailConfirmBodySchema","verifyEmailConfirmResponseSchema","verifyEmailResendBodySchema","verifyEmailResendResponseSchema","e2eCreateSessionBodySchema","e2eCreateSessionResponseSchema","e2eCreateUserBodySchema","e2eCreateUserResponseSchema","JOB_LEASE_TOKEN_AUDIENCE","jobLeaseTokenClaimsSchema","RUNNER_SESSION_TOKEN_AUDIENCE","runnerSessionTokenClaimsSchema","userDtoSchema","userStatusSchema"],"mappings":"AAAA,SACEA,kCAAkC,EAClCC,mBAAmB,EAInBC,gBAAgB,EAChBC,oCAAoC,EACpCC,sBAAsB,QACjB,eAAe;AACtB,SAEEC,wBAAwB,EACxBC,WAAW,EAIXC,eAAe,EACfC,mBAAmB,EACnBC,gBAAgB,EAEhBC,gBAAgB,EAIhBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,8BAA8B,EAC9BC,cAAc,EAEdC,qBAAqB,EAKrBC,uBAAuB,EACvBC,gBAAgB,EAChBC,sBAAsB,EACtBC,oBAAoB,EAKpBC,4BAA4B,EAC5BC,gCAAgC,EAChCC,2BAA2B,EAC3BC,+BAA+B,QAC1B,YAAY;AACnB,SAMEC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,uBAAuB,EACvBC,2BAA2B,QACtB,WAAW;AAClB,SACEC,wBAAwB,EAExBC,yBAAyB,QACpB,uBAAuB;AAC9B,SACEC,6BAA6B,EAE7BC,8BAA8B,QACzB,4BAA4B;AACnC,SAAsBC,aAAa,EAAEC,gBAAgB,QAAO,YAAY"}