@shipfox/api-auth-dto 12.0.0 → 17.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/events.d.ts +2 -2
- package/dist/inter-module.d.ts +15 -15
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/schemas/admin.d.ts +10 -6
- package/dist/schemas/admin.d.ts.map +1 -1
- package/dist/schemas/admin.js +3 -0
- package/dist/schemas/admin.js.map +1 -1
- package/dist/schemas/auth.d.ts +64 -6
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +24 -1
- package/dist/schemas/auth.js.map +1 -1
- package/dist/schemas/e2e.d.ts +2 -2
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/user.d.ts +2 -2
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/schemas/admin.ts +6 -0
- package/src/schemas/auth.ts +31 -0
- package/src/schemas/index.ts +6 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled: 10 files with swc (
|
|
2
|
+
Successfully compiled: 10 files with swc (173.6ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @shipfox/api-auth-dto
|
|
2
2
|
|
|
3
|
+
## 17.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5ae8b3d: Adds `sessionResponseSchema` and `SessionResponseDto`, the adopted-session mint and renewal response contract carrying the optional `impersonator_id`.
|
|
8
|
+
- 918d84a: Adds the impersonation mint command and admin route: `POST /admin/auth/users/:user_id/impersonate` mints a short-lived, marked, audited impersonated session for an active, verified, non-administrator user, gated behind the opt-in `AUTH_IMPERSONATION_ENABLED` flag (defaults to `false`). The response DTO `impersonateResponseSchema` carries `token`, `expires_at`, `server_time`, `impersonator_id`, and the target user.
|
|
9
|
+
|
|
10
|
+
## 15.0.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- @shipfox/api-common-dto@15.0.0
|
|
15
|
+
|
|
3
16
|
## 12.0.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/events.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const AUTH_PASSWORD_RESET_SEND_REQUESTED:
|
|
3
|
-
export declare const AUTH_USER_SIGNED_UP:
|
|
2
|
+
export declare const AUTH_PASSWORD_RESET_SEND_REQUESTED: 'auth.password_reset.send_requested';
|
|
3
|
+
export declare const AUTH_USER_SIGNED_UP: 'auth.user.signed_up';
|
|
4
4
|
export declare const authPasswordResetSendRequestedSchema: z.ZodObject<{
|
|
5
5
|
email: z.ZodString;
|
|
6
6
|
resetLink: z.ZodString;
|
package/dist/inter-module.d.ts
CHANGED
|
@@ -3,20 +3,20 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const authInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
|
|
4
4
|
readonly module: "auth";
|
|
5
5
|
readonly methods: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
workspaceId: z.ZodString;
|
|
6
|
+
mintRunnerSessionToken: {
|
|
7
|
+
input: z.ZodObject<{
|
|
9
8
|
runnerSessionId: z.ZodString;
|
|
9
|
+
workspaceId: z.ZodString;
|
|
10
10
|
scope: z.ZodLiteral<"workspace">;
|
|
11
11
|
labels: z.ZodArray<z.ZodString>;
|
|
12
12
|
maxClaims: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
|
|
14
|
+
output: z.ZodObject<{
|
|
15
15
|
token: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
mintJobLeaseToken: {
|
|
19
|
+
input: z.ZodObject<{
|
|
20
20
|
workflowRunId: z.ZodString;
|
|
21
21
|
workflowRunAttempt: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
workflowRunAttemptId: z.ZodString;
|
|
@@ -28,15 +28,15 @@ export declare const authInterModuleContract: import("@shipfox/inter-module").In
|
|
|
28
28
|
currentStepId: z.ZodOptional<z.ZodString>;
|
|
29
29
|
currentStepAttempt: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
|
-
|
|
31
|
+
output: z.ZodObject<{
|
|
32
32
|
token: z.ZodString;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
getCurrentAdminRole: {
|
|
36
|
+
input: z.ZodObject<{
|
|
37
37
|
userId: z.ZodString;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
|
-
|
|
39
|
+
output: z.ZodObject<{
|
|
40
40
|
role: z.ZodNullable<z.ZodEnum<{
|
|
41
41
|
"admin-observer": "admin-observer";
|
|
42
42
|
"admin-operator": "admin-operator";
|
|
@@ -44,8 +44,8 @@ export declare const authInterModuleContract: import("@shipfox/inter-module").In
|
|
|
44
44
|
}>>;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
};
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
requireAdminRole: {
|
|
48
|
+
input: z.ZodObject<{
|
|
49
49
|
userId: z.ZodString;
|
|
50
50
|
minimumRole: z.ZodEnum<{
|
|
51
51
|
"admin-observer": "admin-observer";
|
|
@@ -53,15 +53,15 @@ export declare const authInterModuleContract: import("@shipfox/inter-module").In
|
|
|
53
53
|
"admin-owner": "admin-owner";
|
|
54
54
|
}>;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
|
-
|
|
56
|
+
output: z.ZodObject<{
|
|
57
57
|
role: z.ZodEnum<{
|
|
58
58
|
"admin-observer": "admin-observer";
|
|
59
59
|
"admin-operator": "admin-operator";
|
|
60
60
|
"admin-owner": "admin-owner";
|
|
61
61
|
}>;
|
|
62
62
|
}, z.core.$strip>;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
errors: {
|
|
64
|
+
'admin-role-required': z.ZodObject<{
|
|
65
65
|
requiredRole: z.ZodEnum<{
|
|
66
66
|
"admin-observer": "admin-observer";
|
|
67
67
|
"admin-operator": "admin-operator";
|
|
@@ -1 +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;AAYtB,eAAO,MAAM,uBAAuB
|
|
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;AAYtB,eAAO,MAAM,uBAAuB;;;QAGhC,sBAAsB;YACpB,KAAK;;;;;;;YACL,MAAM;;;;QAER,iBAAiB;YACf,KAAK;;;;;;;;;;;;YACL,MAAM;;;;QAER,mBAAmB;YACjB,KAAK;;;YACL,MAAM;;;;;;;;QAER,gBAAgB;YACd,KAAK;;;;;;;;YAIL,MAAM;;;;;;;YACN,MAAM;gBACJ,qBAAqB;;;;;;;;;;EAI3B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/dist/schemas/admin.d.ts
CHANGED
|
@@ -89,8 +89,8 @@ export declare const administratorUserIdentitySchema: z.ZodObject<{
|
|
|
89
89
|
name: z.ZodNullable<z.ZodString>;
|
|
90
90
|
status: z.ZodEnum<{
|
|
91
91
|
active: "active";
|
|
92
|
-
suspended: "suspended";
|
|
93
92
|
deleted: "deleted";
|
|
93
|
+
suspended: "suspended";
|
|
94
94
|
}>;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
96
|
export type AdministratorUserIdentityDto = z.infer<typeof administratorUserIdentitySchema>;
|
|
@@ -100,8 +100,8 @@ export declare const administratorUserSummarySchema: z.ZodObject<{
|
|
|
100
100
|
name: z.ZodNullable<z.ZodString>;
|
|
101
101
|
status: z.ZodEnum<{
|
|
102
102
|
active: "active";
|
|
103
|
-
suspended: "suspended";
|
|
104
103
|
deleted: "deleted";
|
|
104
|
+
suspended: "suspended";
|
|
105
105
|
}>;
|
|
106
106
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
107
107
|
created_at: z.ZodString;
|
|
@@ -116,6 +116,10 @@ export declare const suspendAdministratorUserBodySchema: z.ZodObject<{
|
|
|
116
116
|
reason: z.ZodString;
|
|
117
117
|
}, z.core.$strip>;
|
|
118
118
|
export type SuspendAdministratorUserBodyDto = z.infer<typeof suspendAdministratorUserBodySchema>;
|
|
119
|
+
export declare const impersonateUserBodySchema: z.ZodObject<{
|
|
120
|
+
reason: z.ZodString;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export type ImpersonateUserBodyDto = z.infer<typeof impersonateUserBodySchema>;
|
|
119
123
|
export declare const reactivateAdministratorUserBodySchema: z.ZodDefault<z.ZodObject<{
|
|
120
124
|
reason: z.ZodOptional<z.ZodString>;
|
|
121
125
|
}, z.core.$strip>>;
|
|
@@ -130,8 +134,8 @@ export declare const administratorUserMutationResponseSchema: z.ZodObject<{
|
|
|
130
134
|
name: z.ZodNullable<z.ZodString>;
|
|
131
135
|
status: z.ZodEnum<{
|
|
132
136
|
active: "active";
|
|
133
|
-
suspended: "suspended";
|
|
134
137
|
deleted: "deleted";
|
|
138
|
+
suspended: "suspended";
|
|
135
139
|
}>;
|
|
136
140
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
137
141
|
created_at: z.ZodString;
|
|
@@ -149,8 +153,8 @@ export declare const revokeAdministratorUserSessionsResponseSchema: z.ZodObject<
|
|
|
149
153
|
name: z.ZodNullable<z.ZodString>;
|
|
150
154
|
status: z.ZodEnum<{
|
|
151
155
|
active: "active";
|
|
152
|
-
suspended: "suspended";
|
|
153
156
|
deleted: "deleted";
|
|
157
|
+
suspended: "suspended";
|
|
154
158
|
}>;
|
|
155
159
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
156
160
|
created_at: z.ZodString;
|
|
@@ -184,8 +188,8 @@ export declare const administratorGrantSummarySchema: z.ZodObject<{
|
|
|
184
188
|
name: z.ZodNullable<z.ZodString>;
|
|
185
189
|
status: z.ZodEnum<{
|
|
186
190
|
active: "active";
|
|
187
|
-
suspended: "suspended";
|
|
188
191
|
deleted: "deleted";
|
|
192
|
+
suspended: "suspended";
|
|
189
193
|
}>;
|
|
190
194
|
}, z.core.$strip>;
|
|
191
195
|
}, z.core.$strip>;
|
|
@@ -211,8 +215,8 @@ export declare const listAdminGrantsResponseSchema: z.ZodObject<{
|
|
|
211
215
|
name: z.ZodNullable<z.ZodString>;
|
|
212
216
|
status: z.ZodEnum<{
|
|
213
217
|
active: "active";
|
|
214
|
-
suspended: "suspended";
|
|
215
218
|
deleted: "deleted";
|
|
219
|
+
suspended: "suspended";
|
|
216
220
|
}>;
|
|
217
221
|
}, z.core.$strip>;
|
|
218
222
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,eAAe;;;;EAA8D,CAAC;AAE3F,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,wBAAgB,WA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;AAEF,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;iBAGtD,CAAC;AAEL,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC9D,OAAO,6CAA6C,CACrD,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;iBAiB3C,CAAC;AAEL,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAEjG,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;iBAM1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAE3F,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;iBAGxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
package/dist/schemas/admin.js
CHANGED
|
@@ -58,6 +58,9 @@ const correlationIdSchema = z.string().min(1).max(255);
|
|
|
58
58
|
export const suspendAdministratorUserBodySchema = z.object({
|
|
59
59
|
reason: reasonSchema
|
|
60
60
|
});
|
|
61
|
+
export const impersonateUserBodySchema = z.object({
|
|
62
|
+
reason: reasonSchema
|
|
63
|
+
});
|
|
61
64
|
export const reactivateAdministratorUserBodySchema = z.object({
|
|
62
65
|
reason: reasonSchema.optional()
|
|
63
66
|
}).default({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/admin.ts"],"sourcesContent":["import {emailSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\nimport {userStatusSchema} from './user.js';\n\nexport const adminRoleSchema = z.enum(['admin-observer', 'admin-operator', 'admin-owner']);\n\nexport type AdminRole = z.infer<typeof adminRoleSchema>;\n\nexport function isAdminRole(value: unknown): value is AdminRole {\n return adminRoleSchema.safeParse(value).success;\n}\n\nconst timestampSchema = z.string().datetime();\nconst identifierEmailSchema = z.string().email();\nconst CONTROL_OR_FORMAT_CHARACTER_RE = /[\\p{Cc}\\p{Cf}]/u;\nconst reasonSchema = z\n .string()\n .min(1)\n .max(512)\n .refine((value) => !CONTROL_OR_FORMAT_CHARACTER_RE.test(value), {\n message: 'must not contain control or format characters',\n });\n\nexport const adminGrantDtoSchema = z.object({\n id: z.string().uuid(),\n user_id: z.string().uuid(),\n role: adminRoleSchema,\n revoked_at: timestampSchema.nullable(),\n created_at: timestampSchema,\n updated_at: timestampSchema,\n});\n\nexport type AdminGrantDto = z.infer<typeof adminGrantDtoSchema>;\n\nexport const bootstrapAdminOwnerBodySchema = z.object({\n bootstrap_token: z.string().min(1).max(512),\n});\n\nexport type BootstrapAdminOwnerBodyDto = z.infer<typeof bootstrapAdminOwnerBodySchema>;\n\nexport const bootstrapAdminOwnerResponseSchema = adminGrantDtoSchema;\n\nexport type BootstrapAdminOwnerResponseDto = z.infer<typeof bootstrapAdminOwnerResponseSchema>;\n\nexport const adminBootstrapStateSchema = z.object({\n state: z.enum(['available', 'closed']),\n});\n\nexport type AdminBootstrapStateDto = z.infer<typeof adminBootstrapStateSchema>;\n\nexport const grantAdminRoleBodySchema = z.object({\n user_id: z.string().uuid(),\n role: adminRoleSchema,\n reason: reasonSchema,\n});\n\nexport type GrantAdminRoleBodyDto = z.infer<typeof grantAdminRoleBodySchema>;\n\nexport const grantAdminRoleResponseSchema = adminGrantDtoSchema;\n\nexport type GrantAdminRoleResponseDto = z.infer<typeof grantAdminRoleResponseSchema>;\n\nexport const revokeAdminGrantBodySchema = z.object({\n reason: reasonSchema,\n});\n\nexport type RevokeAdminGrantBodyDto = z.infer<typeof revokeAdminGrantBodySchema>;\n\nexport const revokeAdminGrantResponseSchema = adminGrantDtoSchema;\n\nexport type RevokeAdminGrantResponseDto = z.infer<typeof revokeAdminGrantResponseSchema>;\n\nexport const administratorUserIdentitySchema = z.object({\n id: z.string().uuid(),\n email: identifierEmailSchema,\n name: z.string().nullable(),\n status: userStatusSchema,\n});\n\nexport type AdministratorUserIdentityDto = z.infer<typeof administratorUserIdentitySchema>;\n\nexport const administratorUserSummarySchema = administratorUserIdentitySchema.extend({\n email_verified_at: timestampSchema.nullable(),\n created_at: timestampSchema,\n admin_role: adminRoleSchema.nullable(),\n});\n\nexport type AdministratorUserSummaryDto = z.infer<typeof administratorUserSummarySchema>;\n\nconst correlationIdSchema = z.string().min(1).max(255);\n\nexport const suspendAdministratorUserBodySchema = z.object({\n reason: reasonSchema,\n});\n\nexport type SuspendAdministratorUserBodyDto = z.infer<typeof suspendAdministratorUserBodySchema>;\n\nexport const reactivateAdministratorUserBodySchema = z\n .object({\n reason: reasonSchema.optional(),\n })\n .default({});\n\nexport type ReactivateAdministratorUserBodyDto = z.infer<\n typeof reactivateAdministratorUserBodySchema\n>;\n\nexport const revokeAdministratorUserSessionsBodySchema = z\n .object({\n reason: reasonSchema.optional(),\n })\n .default({});\n\nexport type RevokeAdministratorUserSessionsBodyDto = z.infer<\n typeof revokeAdministratorUserSessionsBodySchema\n>;\n\nexport const administratorUserMutationResponseSchema = administratorUserSummarySchema.extend({\n correlation_id: correlationIdSchema,\n});\n\nexport type AdministratorUserMutationResponseDto = z.infer<\n typeof administratorUserMutationResponseSchema\n>;\n\nexport const revokeAdministratorUserSessionsResponseSchema =\n administratorUserMutationResponseSchema.extend({\n sessions_revoked: z.number().int().nonnegative(),\n });\n\nexport type RevokeAdministratorUserSessionsResponseDto = z.infer<\n typeof revokeAdministratorUserSessionsResponseSchema\n>;\n\nexport const administratorUserLookupQuerySchema = z\n .object({\n id: z.string().uuid().optional(),\n user_id: z.string().uuid().optional(),\n email: emailSchema.optional(),\n })\n .superRefine((value, context) => {\n const identifiers = [value.id, value.user_id, value.email].filter(\n (identifier) => identifier !== undefined,\n );\n if (identifiers.length !== 1) {\n context.addIssue({\n code: 'custom',\n message: 'provide exactly one of id, user_id, or email',\n path: [],\n });\n }\n });\n\nexport type AdministratorUserLookupQueryDto = z.infer<typeof administratorUserLookupQuerySchema>;\n\nexport const administratorGrantSummarySchema = z.object({\n grant_id: z.string().uuid(),\n role: adminRoleSchema,\n created_at: timestampSchema,\n revoked_at: timestampSchema.nullable(),\n user: administratorUserIdentitySchema,\n});\n\nexport type AdministratorGrantSummaryDto = z.infer<typeof administratorGrantSummarySchema>;\n\nexport const listAdminGrantsQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(100).default(50),\n cursor: z.string().optional(),\n});\n\nexport type ListAdminGrantsQueryDto = z.infer<typeof listAdminGrantsQuerySchema>;\n\nexport const listAdminGrantsResponseSchema = z.object({\n grants: z.array(administratorGrantSummarySchema),\n next_cursor: z.string().nullable(),\n});\n\nexport type ListAdminGrantsResponseDto = z.infer<typeof listAdminGrantsResponseSchema>;\n"],"names":["emailSchema","z","userStatusSchema","adminRoleSchema","enum","isAdminRole","value","safeParse","success","timestampSchema","string","datetime","identifierEmailSchema","email","CONTROL_OR_FORMAT_CHARACTER_RE","reasonSchema","min","max","refine","test","message","adminGrantDtoSchema","object","id","uuid","user_id","role","revoked_at","nullable","created_at","updated_at","bootstrapAdminOwnerBodySchema","bootstrap_token","bootstrapAdminOwnerResponseSchema","adminBootstrapStateSchema","state","grantAdminRoleBodySchema","reason","grantAdminRoleResponseSchema","revokeAdminGrantBodySchema","revokeAdminGrantResponseSchema","administratorUserIdentitySchema","name","status","administratorUserSummarySchema","extend","email_verified_at","admin_role","correlationIdSchema","suspendAdministratorUserBodySchema","reactivateAdministratorUserBodySchema","optional","default","revokeAdministratorUserSessionsBodySchema","administratorUserMutationResponseSchema","correlation_id","revokeAdministratorUserSessionsResponseSchema","sessions_revoked","number","int","nonnegative","administratorUserLookupQuerySchema","superRefine","context","identifiers","filter","identifier","undefined","length","addIssue","code","path","administratorGrantSummarySchema","grant_id","user","listAdminGrant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AAGc,IAAI,GAAG2B,QAAQ;IACnCtC,OAAOb,YAAYmD,QAAQ;AAC7B,GACCW,WAAW,CAAC,CAACxD,OAAOyD;IACnB,MAAMC,cAAc;QAAC1D,MAAMiB,EAAE;QAAEjB,MAAMmB,OAAO;QAAEnB,MAAMO,KAAK;KAAC,CAACoD,MAAM,CAC/D,CAACC,aAAeA,eAAeC;IAEjC,IAAIH,YAAYI,MAAM,KAAK,GAAG;QAC5BL,QAAQM,QAAQ,CAAC;YACfC,MAAM;YACNlD,SAAS;YACTmD,MAAM,EAAE;QACV;IACF;AACF,GAAG;AAIL,OAAO,MAAMC,kCAAkCvE,EAAEqB,MAAM,CAAC;IACtDmD,UAAUxE,EAAES,MAAM,GAAGc,IAAI;IACzBE,MAAMvB;IACN0B,YAAYpB;IACZkB,YAAYlB,gBAAgBmB,QAAQ;IACpC8C,MAAMjC;AACR,GAAG;AAIH,OAAO,MAAMkC,6BAA6B1E,EAAEqB,MAAM,CAAC;IACjDsD,OAAO3E,EAAE4E,MAAM,CAACnB,MAAM,GAAGC,GAAG,GAAG3C,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKmC,OAAO,CAAC;IACvD0B,QAAQ7E,EAAES,MAAM,GAAGyC,QAAQ;AAC7B,GAAG;AAIH,OAAO,MAAM4B,gCAAgC9E,EAAEqB,MAAM,CAAC;IACpD0D,QAAQ/E,EAAEgF,KAAK,CAACT;IAChBU,aAAajF,EAAES,MAAM,GAAGkB,QAAQ;AAClC,GAAG"}
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/admin.ts"],"sourcesContent":["import {emailSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\nimport {userStatusSchema} from './user.js';\n\nexport const adminRoleSchema = z.enum(['admin-observer', 'admin-operator', 'admin-owner']);\n\nexport type AdminRole = z.infer<typeof adminRoleSchema>;\n\nexport function isAdminRole(value: unknown): value is AdminRole {\n return adminRoleSchema.safeParse(value).success;\n}\n\nconst timestampSchema = z.string().datetime();\nconst identifierEmailSchema = z.string().email();\nconst CONTROL_OR_FORMAT_CHARACTER_RE = /[\\p{Cc}\\p{Cf}]/u;\nconst reasonSchema = z\n .string()\n .min(1)\n .max(512)\n .refine((value) => !CONTROL_OR_FORMAT_CHARACTER_RE.test(value), {\n message: 'must not contain control or format characters',\n });\n\nexport const adminGrantDtoSchema = z.object({\n id: z.string().uuid(),\n user_id: z.string().uuid(),\n role: adminRoleSchema,\n revoked_at: timestampSchema.nullable(),\n created_at: timestampSchema,\n updated_at: timestampSchema,\n});\n\nexport type AdminGrantDto = z.infer<typeof adminGrantDtoSchema>;\n\nexport const bootstrapAdminOwnerBodySchema = z.object({\n bootstrap_token: z.string().min(1).max(512),\n});\n\nexport type BootstrapAdminOwnerBodyDto = z.infer<typeof bootstrapAdminOwnerBodySchema>;\n\nexport const bootstrapAdminOwnerResponseSchema = adminGrantDtoSchema;\n\nexport type BootstrapAdminOwnerResponseDto = z.infer<typeof bootstrapAdminOwnerResponseSchema>;\n\nexport const adminBootstrapStateSchema = z.object({\n state: z.enum(['available', 'closed']),\n});\n\nexport type AdminBootstrapStateDto = z.infer<typeof adminBootstrapStateSchema>;\n\nexport const grantAdminRoleBodySchema = z.object({\n user_id: z.string().uuid(),\n role: adminRoleSchema,\n reason: reasonSchema,\n});\n\nexport type GrantAdminRoleBodyDto = z.infer<typeof grantAdminRoleBodySchema>;\n\nexport const grantAdminRoleResponseSchema = adminGrantDtoSchema;\n\nexport type GrantAdminRoleResponseDto = z.infer<typeof grantAdminRoleResponseSchema>;\n\nexport const revokeAdminGrantBodySchema = z.object({\n reason: reasonSchema,\n});\n\nexport type RevokeAdminGrantBodyDto = z.infer<typeof revokeAdminGrantBodySchema>;\n\nexport const revokeAdminGrantResponseSchema = adminGrantDtoSchema;\n\nexport type RevokeAdminGrantResponseDto = z.infer<typeof revokeAdminGrantResponseSchema>;\n\nexport const administratorUserIdentitySchema = z.object({\n id: z.string().uuid(),\n email: identifierEmailSchema,\n name: z.string().nullable(),\n status: userStatusSchema,\n});\n\nexport type AdministratorUserIdentityDto = z.infer<typeof administratorUserIdentitySchema>;\n\nexport const administratorUserSummarySchema = administratorUserIdentitySchema.extend({\n email_verified_at: timestampSchema.nullable(),\n created_at: timestampSchema,\n admin_role: adminRoleSchema.nullable(),\n});\n\nexport type AdministratorUserSummaryDto = z.infer<typeof administratorUserSummarySchema>;\n\nconst correlationIdSchema = z.string().min(1).max(255);\n\nexport const suspendAdministratorUserBodySchema = z.object({\n reason: reasonSchema,\n});\n\nexport type SuspendAdministratorUserBodyDto = z.infer<typeof suspendAdministratorUserBodySchema>;\n\nexport const impersonateUserBodySchema = z.object({\n reason: reasonSchema,\n});\n\nexport type ImpersonateUserBodyDto = z.infer<typeof impersonateUserBodySchema>;\n\nexport const reactivateAdministratorUserBodySchema = z\n .object({\n reason: reasonSchema.optional(),\n })\n .default({});\n\nexport type ReactivateAdministratorUserBodyDto = z.infer<\n typeof reactivateAdministratorUserBodySchema\n>;\n\nexport const revokeAdministratorUserSessionsBodySchema = z\n .object({\n reason: reasonSchema.optional(),\n })\n .default({});\n\nexport type RevokeAdministratorUserSessionsBodyDto = z.infer<\n typeof revokeAdministratorUserSessionsBodySchema\n>;\n\nexport const administratorUserMutationResponseSchema = administratorUserSummarySchema.extend({\n correlation_id: correlationIdSchema,\n});\n\nexport type AdministratorUserMutationResponseDto = z.infer<\n typeof administratorUserMutationResponseSchema\n>;\n\nexport const revokeAdministratorUserSessionsResponseSchema =\n administratorUserMutationResponseSchema.extend({\n sessions_revoked: z.number().int().nonnegative(),\n });\n\nexport type RevokeAdministratorUserSessionsResponseDto = z.infer<\n typeof revokeAdministratorUserSessionsResponseSchema\n>;\n\nexport const administratorUserLookupQuerySchema = z\n .object({\n id: z.string().uuid().optional(),\n user_id: z.string().uuid().optional(),\n email: emailSchema.optional(),\n })\n .superRefine((value, context) => {\n const identifiers = [value.id, value.user_id, value.email].filter(\n (identifier) => identifier !== undefined,\n );\n if (identifiers.length !== 1) {\n context.addIssue({\n code: 'custom',\n message: 'provide exactly one of id, user_id, or email',\n path: [],\n });\n }\n });\n\nexport type AdministratorUserLookupQueryDto = z.infer<typeof administratorUserLookupQuerySchema>;\n\nexport const administratorGrantSummarySchema = z.object({\n grant_id: z.string().uuid(),\n role: adminRoleSchema,\n created_at: timestampSchema,\n revoked_at: timestampSchema.nullable(),\n user: administratorUserIdentitySchema,\n});\n\nexport type AdministratorGrantSummaryDto = z.infer<typeof administratorGrantSummarySchema>;\n\nexport const listAdminGrantsQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(100).default(50),\n cursor: z.string().optional(),\n});\n\nexport type ListAdminGrantsQueryDto = z.infer<typeof listAdminGrantsQuerySchema>;\n\nexport const listAdminGrantsResponseSchema = z.object({\n grants: z.array(administratorGrantSummarySchema),\n next_cursor: z.string().nullable(),\n});\n\nexport type ListAdminGrantsResponseDto = z.infer<typeof listAdminGrantsResponseSchema>;\n"],"names":["emailSchema","z","userStatusSchema","adminRoleSchema","enum","isAdminRole","value","safeParse","success","timestampSchema","string","datetime","identifierEmailSchema","email","CONTROL_OR_FORMAT_CHARACTER_RE","reasonSchema","min","max","refine","test","message","adminGrantDtoSchema","object","id","uuid","user_id","role","revoked_at","nullable","created_at","updated_at","bootstrapAdminOwnerBodySchema","bootstrap_token","bootstrapAdminOwnerResponseSchema","adminBootstrapStateSchema","state","grantAdminRoleBodySchema","reason","grantAdminRoleResponseSchema","revokeAdminGrantBodySchema","revokeAdminGrantResponseSchema","administratorUserIdentitySchema","name","status","administratorUserSummarySchema","extend","email_verified_at","admin_role","correlationIdSchema","suspendAdministratorUserBodySchema","impersonateUserBodySchema","reactivateAdministratorUserBodySchema","optional","default","revokeAdministratorUserSessionsBodySchema","administratorUserMutationResponseSchema","correlation_id","revokeAdministratorUserSessionsResponseSchema","sessions_revoked","number","int","nonnegative","administratorUserLookupQuerySchema","superRefine","context","identifiers","filter","identifier","undefined","length","addIssue","code","path","administratorGrantSummarySchema","grant_id","user","listAdminGrantsQuer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,EAAES,MAAM,GAAGc,IAAI,GAAG4B,QAAQ;IAC9B3B,SAASxB,EAAES,MAAM,GAAGc,IAAI,GAAG4B,QAAQ;IACnCvC,OAAOb,YAAYoD,QAAQ;AAC7B,GACCW,WAAW,CAAC,CAACzD,OAAO0D;IACnB,MAAMC,cAAc;QAAC3D,MAAMiB,EAAE;QAAEjB,MAAMmB,OAAO;QAAEnB,MAAMO,KAAK;KAAC,CAACqD,MAAM,CAC/D,CAACC,aAAeA,eAAeC;IAEjC,IAAIH,YAAYI,MAAM,KAAK,GAAG;QAC5BL,QAAQM,QAAQ,CAAC;YACfC,MAAM;YACNnD,SAAS;YACToD,MAAM,EAAE;QACV;IACF;AACF,GAAG;AAIL,OAAO,MAAMC,kCAAkCxE,EAAEqB,MAAM,CAAC;IACtDoD,UAAUzE,EAAES,MAAM,GAAGc,IAAI;IACzBE,MAAMvB;IACN0B,YAAYpB;IACZkB,YAAYlB,gBAAgBmB,QAAQ;IACpC+C,MAAMlC;AACR,GAAG;AAIH,OAAO,MAAMmC,6BAA6B3E,EAAEqB,MAAM,CAAC;IACjDuD,OAAO5E,EAAE6E,MAAM,CAACnB,MAAM,GAAGC,GAAG,GAAG5C,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKoC,OAAO,CAAC;IACvD0B,QAAQ9E,EAAES,MAAM,GAAG0C,QAAQ;AAC7B,GAAG;AAIH,OAAO,MAAM4B,gCAAgC/E,EAAEqB,MAAM,CAAC;IACpD2D,QAAQhF,EAAEiF,KAAK,CAACT;IAChBU,aAAalF,EAAES,MAAM,GAAGkB,QAAQ;AAClC,GAAG"}
|
package/dist/schemas/auth.d.ts
CHANGED
|
@@ -38,8 +38,8 @@ export declare const signupResponseSchema: z.ZodObject<{
|
|
|
38
38
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
39
39
|
status: z.ZodEnum<{
|
|
40
40
|
active: "active";
|
|
41
|
-
suspended: "suspended";
|
|
42
41
|
deleted: "deleted";
|
|
42
|
+
suspended: "suspended";
|
|
43
43
|
}>;
|
|
44
44
|
created_at: z.ZodString;
|
|
45
45
|
updated_at: z.ZodString;
|
|
@@ -74,8 +74,8 @@ export declare const loginResponseSchema: z.ZodObject<{
|
|
|
74
74
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
75
75
|
status: z.ZodEnum<{
|
|
76
76
|
active: "active";
|
|
77
|
-
suspended: "suspended";
|
|
78
77
|
deleted: "deleted";
|
|
78
|
+
suspended: "suspended";
|
|
79
79
|
}>;
|
|
80
80
|
created_at: z.ZodString;
|
|
81
81
|
updated_at: z.ZodString;
|
|
@@ -87,7 +87,13 @@ export declare const loginResponseSchema: z.ZodObject<{
|
|
|
87
87
|
}>>>;
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
export type LoginResponseDto = z.infer<typeof loginResponseSchema>;
|
|
90
|
-
|
|
90
|
+
/**
|
|
91
|
+
* A session response for an externally minted (adopted) session, which may
|
|
92
|
+
* carry the optional impersonation mark. The cookie-based login and refresh
|
|
93
|
+
* responses never set it. The impersonation mint route emits its own
|
|
94
|
+
* `impersonateResponseSchema`; client shells map that shape into this one.
|
|
95
|
+
*/
|
|
96
|
+
export declare const sessionResponseSchema: z.ZodObject<{
|
|
91
97
|
token: z.ZodString;
|
|
92
98
|
user: z.ZodObject<{
|
|
93
99
|
id: z.ZodString;
|
|
@@ -96,8 +102,59 @@ export declare const refreshResponseSchema: z.ZodObject<{
|
|
|
96
102
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
97
103
|
status: z.ZodEnum<{
|
|
98
104
|
active: "active";
|
|
105
|
+
deleted: "deleted";
|
|
99
106
|
suspended: "suspended";
|
|
107
|
+
}>;
|
|
108
|
+
created_at: z.ZodString;
|
|
109
|
+
updated_at: z.ZodString;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
admin_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
112
|
+
"admin-observer": "admin-observer";
|
|
113
|
+
"admin-operator": "admin-operator";
|
|
114
|
+
"admin-owner": "admin-owner";
|
|
115
|
+
}>>>;
|
|
116
|
+
impersonator_id: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export type SessionResponseDto = z.infer<typeof sessionResponseSchema>;
|
|
119
|
+
/**
|
|
120
|
+
* The impersonation mint, replay, and renewal response. Mirrors
|
|
121
|
+
* `loginResponseSchema` with deliberate deviations: no refresh cookie is set,
|
|
122
|
+
* no `admin_role` exists (the target can hold none), and `expires_at`,
|
|
123
|
+
* `server_time`, and `impersonator_id` are explicit so the client never
|
|
124
|
+
* decodes the JWT. `server_time` is the issuer's clock at response time; the
|
|
125
|
+
* client anchors countdown and Extend availability on it.
|
|
126
|
+
*/
|
|
127
|
+
export declare const impersonateResponseSchema: z.ZodObject<{
|
|
128
|
+
token: z.ZodString;
|
|
129
|
+
expires_at: z.ZodString;
|
|
130
|
+
server_time: z.ZodString;
|
|
131
|
+
impersonator_id: z.ZodString;
|
|
132
|
+
user: z.ZodObject<{
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
email: z.ZodString;
|
|
135
|
+
name: z.ZodNullable<z.ZodString>;
|
|
136
|
+
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
137
|
+
status: z.ZodEnum<{
|
|
138
|
+
active: "active";
|
|
100
139
|
deleted: "deleted";
|
|
140
|
+
suspended: "suspended";
|
|
141
|
+
}>;
|
|
142
|
+
created_at: z.ZodString;
|
|
143
|
+
updated_at: z.ZodString;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export type ImpersonateResponseDto = z.infer<typeof impersonateResponseSchema>;
|
|
147
|
+
export declare const refreshResponseSchema: z.ZodObject<{
|
|
148
|
+
token: z.ZodString;
|
|
149
|
+
user: z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
email: z.ZodString;
|
|
152
|
+
name: z.ZodNullable<z.ZodString>;
|
|
153
|
+
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
154
|
+
status: z.ZodEnum<{
|
|
155
|
+
active: "active";
|
|
156
|
+
deleted: "deleted";
|
|
157
|
+
suspended: "suspended";
|
|
101
158
|
}>;
|
|
102
159
|
created_at: z.ZodString;
|
|
103
160
|
updated_at: z.ZodString;
|
|
@@ -117,8 +174,8 @@ export declare const meResponseSchema: z.ZodObject<{
|
|
|
117
174
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
118
175
|
status: z.ZodEnum<{
|
|
119
176
|
active: "active";
|
|
120
|
-
suspended: "suspended";
|
|
121
177
|
deleted: "deleted";
|
|
178
|
+
suspended: "suspended";
|
|
122
179
|
}>;
|
|
123
180
|
created_at: z.ZodString;
|
|
124
181
|
updated_at: z.ZodString;
|
|
@@ -128,6 +185,7 @@ export declare const meResponseSchema: z.ZodObject<{
|
|
|
128
185
|
"admin-operator": "admin-operator";
|
|
129
186
|
"admin-owner": "admin-owner";
|
|
130
187
|
}>>>;
|
|
188
|
+
impersonator_id: z.ZodOptional<z.ZodString>;
|
|
131
189
|
}, z.core.$strip>;
|
|
132
190
|
export type MeResponseDto = z.infer<typeof meResponseSchema>;
|
|
133
191
|
export declare const logoutBodySchema: z.ZodObject<{}, z.core.$strip>;
|
|
@@ -155,8 +213,8 @@ export declare const passwordResetConfirmResponseSchema: z.ZodObject<{
|
|
|
155
213
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
156
214
|
status: z.ZodEnum<{
|
|
157
215
|
active: "active";
|
|
158
|
-
suspended: "suspended";
|
|
159
216
|
deleted: "deleted";
|
|
217
|
+
suspended: "suspended";
|
|
160
218
|
}>;
|
|
161
219
|
created_at: z.ZodString;
|
|
162
220
|
updated_at: z.ZodString;
|
|
@@ -183,8 +241,8 @@ export declare const verifyEmailConfirmResponseSchema: z.ZodObject<{
|
|
|
183
241
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
184
242
|
status: z.ZodEnum<{
|
|
185
243
|
active: "active";
|
|
186
|
-
suspended: "suspended";
|
|
187
244
|
deleted: "deleted";
|
|
245
|
+
suspended: "suspended";
|
|
188
246
|
}>;
|
|
189
247
|
created_at: z.ZodString;
|
|
190
248
|
updated_at: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/schemas/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,cAAc,aAA8B,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAC,CAAC;AAErB,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,0BAA0B;;;;iBAErC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,eAAe;;;iBAG1B,C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
|
48
|
+
* A session response for an externally minted (adopted) session, which may
|
|
49
|
+
* carry the optional impersonation mark. The cookie-based login and refresh
|
|
50
|
+
* responses never set it. The impersonation mint route emits its own
|
|
51
|
+
* `impersonateResponseSchema`; client shells map that shape into this one.
|
|
52
|
+
*/ export const sessionResponseSchema = loginResponseSchema.extend({
|
|
53
|
+
impersonator_id: z.string().uuid().optional()
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* The impersonation mint, replay, and renewal response. Mirrors
|
|
57
|
+
* `loginResponseSchema` with deliberate deviations: no refresh cookie is set,
|
|
58
|
+
* no `admin_role` exists (the target can hold none), and `expires_at`,
|
|
59
|
+
* `server_time`, and `impersonator_id` are explicit so the client never
|
|
60
|
+
* decodes the JWT. `server_time` is the issuer's clock at response time; the
|
|
61
|
+
* client anchors countdown and Extend availability on it.
|
|
62
|
+
*/ export const impersonateResponseSchema = z.object({
|
|
63
|
+
token: z.string(),
|
|
64
|
+
expires_at: z.string().datetime(),
|
|
65
|
+
server_time: z.string().datetime(),
|
|
66
|
+
impersonator_id: z.string().uuid(),
|
|
67
|
+
user: userDtoSchema
|
|
68
|
+
});
|
|
47
69
|
export const refreshResponseSchema = loginResponseSchema;
|
|
48
70
|
export const meResponseSchema = z.object({
|
|
49
71
|
user: userDtoSchema,
|
|
50
|
-
admin_role: adminRoleSchema.nullable().optional()
|
|
72
|
+
admin_role: adminRoleSchema.nullable().optional(),
|
|
73
|
+
impersonator_id: z.string().uuid().optional()
|
|
51
74
|
});
|
|
52
75
|
export const logoutBodySchema = z.object({});
|
|
53
76
|
export const changePasswordBodySchema = z.object({
|
package/dist/schemas/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/auth.ts"],"sourcesContent":["import {displayNameSchema, emailSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\nimport {adminRoleSchema} from './admin.js';\nimport {userDtoSchema} from './user.js';\n\nexport const passwordSchema = z.string().min(12).max(128);\nexport {emailSchema};\n\nexport const loginMethodSchema = z.object({\n id: z.string().min(1).max(128),\n});\n\nexport type LoginMethodDto = z.infer<typeof loginMethodSchema>;\n\nexport const loginMethodsResponseSchema = z.object({\n login_methods: z.array(loginMethodSchema),\n});\n\nexport type LoginMethodsResponseDto = z.infer<typeof loginMethodsResponseSchema>;\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 admin_role: adminRoleSchema.nullable().optional(),\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 admin_role: adminRoleSchema.nullable().optional(),\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","adminRoleSchema","userDtoSchema","passwordSchema","string","min","max","loginMethodSchema","object","id","loginMethodsResponseSchema","login_methods","array","signupBodySchema","email","password","name","invitation_token","optional","signupAcceptErrorSchema","code","message","signupMembershipSchema","uuid","user_id","workspace_id","signupResponseSchema","user","email_challenge","next_resend_available_at","datetime","token","membership","nullable","accept_error","loginBodySchema","loginResponseSchema","admin_role","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,eAAe,QAAO,aAAa;AAC3C,SAAQC,aAAa,QAAO,YAAY;AAExC,OAAO,MAAMC,iBAAiBH,EAAEI,MAAM,GAAGC,GAAG,CAAC,IAAIC,GAAG,CAAC,KAAK;AAC1D,SAAQP,WAAW,GAAE;AAErB,OAAO,MAAMQ,oBAAoBP,EAAEQ,MAAM,CAAC;IACxCC,IAAIT,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC;AAC5B,GAAG;AAIH,OAAO,MAAMI,6BAA6BV,EAAEQ,MAAM,CAAC;IACjDG,eAAeX,EAAEY,KAAK,CAACL;AACzB,GAAG;AAIH,OAAO,MAAMM,mBAAmBb,EAAEQ,MAAM,CAAC;IACvCM,OAAOf;IACPgB,UAAUZ;IACVa,MAAMlB;IACNmB,kBAAkBjB,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKY,QAAQ;AACvD,GAAG;AAIH,OAAO,MAAMC,0BAA0BnB,EAAEQ,MAAM,CAAC;IAC9CY,MAAMpB,EAAEI,MAAM;IACdiB,SAASrB,EAAEI,MAAM;AACnB,GAAG;AAIH,OAAO,MAAMkB,yBAAyBtB,EAAEQ,MAAM,CAAC;IAC7CC,IAAIT,EAAEI,MAAM,GAAGmB,IAAI;IACnBC,SAASxB,EAAEI,MAAM,GAAGmB,IAAI;IACxBE,cAAczB,EAAEI,MAAM,GAAGmB,IAAI;AAC/B,GAAG;AAIH,OAAO,MAAMG,uBAAuB1B,EAAEQ,MAAM,CAAC;IAC3CmB,MAAMzB;IACN0B,iBAAiB5B,EACdQ,MAAM,CAAC;QACNC,IAAIT,EAAEI,MAAM,GAAGmB,IAAI;QACnBM,0BAA0B7B,EAAEI,MAAM,GAAG0B,QAAQ;IAC/C,GACCZ,QAAQ;IACXa,OAAO/B,EAAEI,MAAM,GAAGc,QAAQ;IAC1Bc,YAAYV,uBAAuBW,QAAQ,GAAGf,QAAQ;IACtDgB,cAAcf,wBAAwBD,QAAQ;AAChD,GAAG;AAIH,OAAO,MAAMiB,kBAAkBnC,EAAEQ,MAAM,CAAC;IACtCM,OAAOf;IACPgB,UAAUf,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC;AAClC,GAAG;AAIH,OAAO,MAAM8B,sBAAsBpC,EAAEQ,MAAM,CAAC;IAC1CuB,OAAO/B,EAAEI,MAAM;IACfuB,MAAMzB;IACNmC,YAAYpC,gBAAgBgC,QAAQ,GAAGf,QAAQ;AACjD,GAAG;AAIH,OAAO,MAAMoB,wBAAwBF,oBAAoB;AAIzD,OAAO,
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/auth.ts"],"sourcesContent":["import {displayNameSchema, emailSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\nimport {adminRoleSchema} from './admin.js';\nimport {userDtoSchema} from './user.js';\n\nexport const passwordSchema = z.string().min(12).max(128);\nexport {emailSchema};\n\nexport const loginMethodSchema = z.object({\n id: z.string().min(1).max(128),\n});\n\nexport type LoginMethodDto = z.infer<typeof loginMethodSchema>;\n\nexport const loginMethodsResponseSchema = z.object({\n login_methods: z.array(loginMethodSchema),\n});\n\nexport type LoginMethodsResponseDto = z.infer<typeof loginMethodsResponseSchema>;\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 admin_role: adminRoleSchema.nullable().optional(),\n});\n\nexport type LoginResponseDto = z.infer<typeof loginResponseSchema>;\n\n/**\n * A session response for an externally minted (adopted) session, which may\n * carry the optional impersonation mark. The cookie-based login and refresh\n * responses never set it. The impersonation mint route emits its own\n * `impersonateResponseSchema`; client shells map that shape into this one.\n */\nexport const sessionResponseSchema = loginResponseSchema.extend({\n impersonator_id: z.string().uuid().optional(),\n});\n\nexport type SessionResponseDto = z.infer<typeof sessionResponseSchema>;\n\n/**\n * The impersonation mint, replay, and renewal response. Mirrors\n * `loginResponseSchema` with deliberate deviations: no refresh cookie is set,\n * no `admin_role` exists (the target can hold none), and `expires_at`,\n * `server_time`, and `impersonator_id` are explicit so the client never\n * decodes the JWT. `server_time` is the issuer's clock at response time; the\n * client anchors countdown and Extend availability on it.\n */\nexport const impersonateResponseSchema = z.object({\n token: z.string(),\n expires_at: z.string().datetime(),\n server_time: z.string().datetime(),\n impersonator_id: z.string().uuid(),\n user: userDtoSchema,\n});\n\nexport type ImpersonateResponseDto = z.infer<typeof impersonateResponseSchema>;\n\nexport const refreshResponseSchema = loginResponseSchema;\n\nexport type RefreshResponseDto = z.infer<typeof refreshResponseSchema>;\n\nexport const meResponseSchema = z.object({\n user: userDtoSchema,\n admin_role: adminRoleSchema.nullable().optional(),\n impersonator_id: z.string().uuid().optional(),\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","adminRoleSchema","userDtoSchema","passwordSchema","string","min","max","loginMethodSchema","object","id","loginMethodsResponseSchema","login_methods","array","signupBodySchema","email","password","name","invitation_token","optional","signupAcceptErrorSchema","code","message","signupMembershipSchema","uuid","user_id","workspace_id","signupResponseSchema","user","email_challenge","next_resend_available_at","datetime","token","membership","nullable","accept_error","loginBodySchema","loginResponseSchema","admin_role","sessionResponseSchema","extend","impersonator_id","impersonateResponseSchema","expires_at","server_time","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,eAAe,QAAO,aAAa;AAC3C,SAAQC,aAAa,QAAO,YAAY;AAExC,OAAO,MAAMC,iBAAiBH,EAAEI,MAAM,GAAGC,GAAG,CAAC,IAAIC,GAAG,CAAC,KAAK;AAC1D,SAAQP,WAAW,GAAE;AAErB,OAAO,MAAMQ,oBAAoBP,EAAEQ,MAAM,CAAC;IACxCC,IAAIT,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC;AAC5B,GAAG;AAIH,OAAO,MAAMI,6BAA6BV,EAAEQ,MAAM,CAAC;IACjDG,eAAeX,EAAEY,KAAK,CAACL;AACzB,GAAG;AAIH,OAAO,MAAMM,mBAAmBb,EAAEQ,MAAM,CAAC;IACvCM,OAAOf;IACPgB,UAAUZ;IACVa,MAAMlB;IACNmB,kBAAkBjB,EAAEI,MAAM,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKY,QAAQ;AACvD,GAAG;AAIH,OAAO,MAAMC,0BAA0BnB,EAAEQ,MAAM,CAAC;IAC9CY,MAAMpB,EAAEI,MAAM;IACdiB,SAASrB,EAAE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declare const e2eCreateUserResponseSchema: z.ZodObject<{
|
|
|
14
14
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
15
15
|
status: z.ZodEnum<{
|
|
16
16
|
active: "active";
|
|
17
|
-
suspended: "suspended";
|
|
18
17
|
deleted: "deleted";
|
|
18
|
+
suspended: "suspended";
|
|
19
19
|
}>;
|
|
20
20
|
created_at: z.ZodString;
|
|
21
21
|
updated_at: z.ZodString;
|
|
@@ -38,8 +38,8 @@ export declare const e2eCreateSessionResponseSchema: z.ZodObject<{
|
|
|
38
38
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
39
39
|
status: z.ZodEnum<{
|
|
40
40
|
active: "active";
|
|
41
|
-
suspended: "suspended";
|
|
42
41
|
deleted: "deleted";
|
|
42
|
+
suspended: "suspended";
|
|
43
43
|
}>;
|
|
44
44
|
created_at: z.ZodString;
|
|
45
45
|
updated_at: z.ZodString;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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 AdminBootstrapStateDto, type AdminGrantDto, type AdministratorGrantSummaryDto, type AdministratorUserIdentityDto, type AdministratorUserLookupQueryDto, type AdministratorUserMutationResponseDto, type AdministratorUserSummaryDto, type AdminRole, adminBootstrapStateSchema, adminGrantDtoSchema, administratorGrantSummarySchema, administratorUserIdentitySchema, administratorUserLookupQuerySchema, administratorUserMutationResponseSchema, administratorUserSummarySchema, adminRoleSchema, type BootstrapAdminOwnerBodyDto, type BootstrapAdminOwnerResponseDto, bootstrapAdminOwnerBodySchema, bootstrapAdminOwnerResponseSchema, type GrantAdminRoleBodyDto, type GrantAdminRoleResponseDto, grantAdminRoleBodySchema, grantAdminRoleResponseSchema, isAdminRole, type ListAdminGrantsQueryDto, type ListAdminGrantsResponseDto, listAdminGrantsQuerySchema, listAdminGrantsResponseSchema, type ReactivateAdministratorUserBodyDto, type RevokeAdminGrantBodyDto, type RevokeAdminGrantResponseDto, type RevokeAdministratorUserSessionsBodyDto, type RevokeAdministratorUserSessionsResponseDto, reactivateAdministratorUserBodySchema, revokeAdminGrantBodySchema, revokeAdminGrantResponseSchema, revokeAdministratorUserSessionsBodySchema, revokeAdministratorUserSessionsResponseSchema, type SuspendAdministratorUserBodyDto, suspendAdministratorUserBodySchema, } from './admin.js';
|
|
3
|
-
export { type ChangePasswordBodyDto, changePasswordBodySchema, emailSchema, type LoginBodyDto, type LoginMethodDto, type LoginMethodsResponseDto, type LoginResponseDto, type LogoutBodyDto, loginBodySchema, loginMethodSchema, loginMethodsResponseSchema, 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';
|
|
2
|
+
export { type AdminBootstrapStateDto, type AdminGrantDto, type AdministratorGrantSummaryDto, type AdministratorUserIdentityDto, type AdministratorUserLookupQueryDto, type AdministratorUserMutationResponseDto, type AdministratorUserSummaryDto, type AdminRole, adminBootstrapStateSchema, adminGrantDtoSchema, administratorGrantSummarySchema, administratorUserIdentitySchema, administratorUserLookupQuerySchema, administratorUserMutationResponseSchema, administratorUserSummarySchema, adminRoleSchema, type BootstrapAdminOwnerBodyDto, type BootstrapAdminOwnerResponseDto, bootstrapAdminOwnerBodySchema, bootstrapAdminOwnerResponseSchema, type GrantAdminRoleBodyDto, type GrantAdminRoleResponseDto, grantAdminRoleBodySchema, grantAdminRoleResponseSchema, type ImpersonateUserBodyDto, impersonateUserBodySchema, isAdminRole, type ListAdminGrantsQueryDto, type ListAdminGrantsResponseDto, listAdminGrantsQuerySchema, listAdminGrantsResponseSchema, type ReactivateAdministratorUserBodyDto, type RevokeAdminGrantBodyDto, type RevokeAdminGrantResponseDto, type RevokeAdministratorUserSessionsBodyDto, type RevokeAdministratorUserSessionsResponseDto, reactivateAdministratorUserBodySchema, revokeAdminGrantBodySchema, revokeAdminGrantResponseSchema, revokeAdministratorUserSessionsBodySchema, revokeAdministratorUserSessionsResponseSchema, type SuspendAdministratorUserBodyDto, suspendAdministratorUserBodySchema, } from './admin.js';
|
|
3
|
+
export { type ChangePasswordBodyDto, changePasswordBodySchema, emailSchema, type ImpersonateResponseDto, impersonateResponseSchema, type LoginBodyDto, type LoginMethodDto, type LoginMethodsResponseDto, type LoginResponseDto, type LogoutBodyDto, loginBodySchema, loginMethodSchema, loginMethodsResponseSchema, loginResponseSchema, logoutBodySchema, type MeResponseDto, meResponseSchema, type PasswordResetConfirmBodyDto, type PasswordResetConfirmResponseDto, type PasswordResetRequestBodyDto, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, type RefreshResponseDto, refreshResponseSchema, type SessionResponseDto, type SignupAcceptErrorDto, type SignupBodyDto, type SignupMembershipDto, type SignupResponseDto, sessionResponseSchema, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, type VerifyEmailConfirmBodyDto, type VerifyEmailConfirmResponseDto, type VerifyEmailResendBodyDto, type VerifyEmailResendResponseDto, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema, } from './auth.js';
|
|
4
4
|
export { type E2eCreateSessionBodyDto, type E2eCreateSessionResponseDto, type E2eCreateUserBodyDto, type E2eCreateUserResponseDto, type E2eSessionDto, e2eCreateSessionBodySchema, e2eCreateSessionResponseSchema, e2eCreateUserBodySchema, e2eCreateUserResponseSchema, } from './e2e.js';
|
|
5
5
|
export { JOB_LEASE_TOKEN_AUDIENCE, type JobLeaseTokenClaims, jobLeaseTokenClaimsSchema, } from './job-lease-token.js';
|
|
6
6
|
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,kCAAkC,EAClC,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,mCAAmC,EACxC,KAAK,qBAAqB,EAC1B,gBAAgB,EAChB,oCAAoC,EACpC,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,yBAAyB,EACzB,mBAAmB,EACnB,+BAA+B,EAC/B,+BAA+B,EAC/B,kCAAkC,EAClC,uCAAuC,EACvC,8BAA8B,EAC9B,eAAe,EACf,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,6BAA6B,EAC7B,iCAAiC,EACjC,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,wBAAwB,EACxB,4BAA4B,EAC5B,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,s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ASSWORD_RESET_SEND_REQUESTED, AUTH_USER_SIGNED_UP, authEventSchemas, authPasswordResetSendRequestedSchema, authUserSignedUpSchema } from '../events.js';
|
|
2
|
-
export { adminBootstrapStateSchema, adminGrantDtoSchema, administratorGrantSummarySchema, administratorUserIdentitySchema, administratorUserLookupQuerySchema, administratorUserMutationResponseSchema, administratorUserSummarySchema, adminRoleSchema, bootstrapAdminOwnerBodySchema, bootstrapAdminOwnerResponseSchema, grantAdminRoleBodySchema, grantAdminRoleResponseSchema, isAdminRole, listAdminGrantsQuerySchema, listAdminGrantsResponseSchema, reactivateAdministratorUserBodySchema, revokeAdminGrantBodySchema, revokeAdminGrantResponseSchema, revokeAdministratorUserSessionsBodySchema, revokeAdministratorUserSessionsResponseSchema, suspendAdministratorUserBodySchema } from './admin.js';
|
|
3
|
-
export { changePasswordBodySchema, emailSchema, loginBodySchema, loginMethodSchema, loginMethodsResponseSchema, loginResponseSchema, logoutBodySchema, meResponseSchema, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, refreshResponseSchema, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema } from './auth.js';
|
|
2
|
+
export { adminBootstrapStateSchema, adminGrantDtoSchema, administratorGrantSummarySchema, administratorUserIdentitySchema, administratorUserLookupQuerySchema, administratorUserMutationResponseSchema, administratorUserSummarySchema, adminRoleSchema, bootstrapAdminOwnerBodySchema, bootstrapAdminOwnerResponseSchema, grantAdminRoleBodySchema, grantAdminRoleResponseSchema, impersonateUserBodySchema, isAdminRole, listAdminGrantsQuerySchema, listAdminGrantsResponseSchema, reactivateAdministratorUserBodySchema, revokeAdminGrantBodySchema, revokeAdminGrantResponseSchema, revokeAdministratorUserSessionsBodySchema, revokeAdministratorUserSessionsResponseSchema, suspendAdministratorUserBodySchema } from './admin.js';
|
|
3
|
+
export { changePasswordBodySchema, emailSchema, impersonateResponseSchema, loginBodySchema, loginMethodSchema, loginMethodsResponseSchema, loginResponseSchema, logoutBodySchema, meResponseSchema, passwordResetConfirmBodySchema, passwordResetConfirmResponseSchema, passwordResetRequestBodySchema, passwordSchema, refreshResponseSchema, sessionResponseSchema, signupAcceptErrorSchema, signupBodySchema, signupMembershipSchema, signupResponseSchema, verifyEmailConfirmBodySchema, verifyEmailConfirmResponseSchema, verifyEmailResendBodySchema, verifyEmailResendResponseSchema } from './auth.js';
|
|
4
4
|
export { e2eCreateSessionBodySchema, e2eCreateSessionResponseSchema, e2eCreateUserBodySchema, e2eCreateUserResponseSchema } from './e2e.js';
|
|
5
5
|
export { JOB_LEASE_TOKEN_AUDIENCE, jobLeaseTokenClaimsSchema } from './job-lease-token.js';
|
|
6
6
|
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_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 AdminBootstrapStateDto,\n type AdminGrantDto,\n type AdministratorGrantSummaryDto,\n type AdministratorUserIdentityDto,\n type AdministratorUserLookupQueryDto,\n type AdministratorUserMutationResponseDto,\n type AdministratorUserSummaryDto,\n type AdminRole,\n adminBootstrapStateSchema,\n adminGrantDtoSchema,\n administratorGrantSummarySchema,\n administratorUserIdentitySchema,\n administratorUserLookupQuerySchema,\n administratorUserMutationResponseSchema,\n administratorUserSummarySchema,\n adminRoleSchema,\n type BootstrapAdminOwnerBodyDto,\n type BootstrapAdminOwnerResponseDto,\n bootstrapAdminOwnerBodySchema,\n bootstrapAdminOwnerResponseSchema,\n type GrantAdminRoleBodyDto,\n type GrantAdminRoleResponseDto,\n grantAdminRoleBodySchema,\n grantAdminRoleResponseSchema,\n isAdminRole,\n type ListAdminGrantsQueryDto,\n type ListAdminGrantsResponseDto,\n listAdminGrantsQuerySchema,\n listAdminGrantsResponseSchema,\n type ReactivateAdministratorUserBodyDto,\n type RevokeAdminGrantBodyDto,\n type RevokeAdminGrantResponseDto,\n type RevokeAdministratorUserSessionsBodyDto,\n type RevokeAdministratorUserSessionsResponseDto,\n reactivateAdministratorUserBodySchema,\n revokeAdminGrantBodySchema,\n revokeAdminGrantResponseSchema,\n revokeAdministratorUserSessionsBodySchema,\n revokeAdministratorUserSessionsResponseSchema,\n type SuspendAdministratorUserBodyDto,\n suspendAdministratorUserBodySchema,\n} from './admin.js';\nexport {\n type ChangePasswordBodyDto,\n changePasswordBodySchema,\n emailSchema,\n type LoginBodyDto,\n type LoginMethodDto,\n type LoginMethodsResponseDto,\n type LoginResponseDto,\n type LogoutBodyDto,\n loginBodySchema,\n loginMethodSchema,\n loginMethodsResponseSchema,\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","adminBootstrapStateSchema","adminGrantDtoSchema","administratorGrantSummarySchema","administratorUserIdentitySchema","administratorUserLookupQuerySchema","administratorUserMutationResponseSchema","administratorUserSummarySchema","adminRoleSchema","bootstrapAdminOwnerBodySchema","bootstrapAdminOwnerResponseSchema","grantAdminRoleBodySchema","grantAdminRoleResponseSchema","isAdminRole","listAdminGrantsQuerySchema","listAdminGrantsResponseSchema","reactivateAdministratorUserBodySchema","revokeAdminGrantBodySchema","revokeAdminGrantResponseSchema","revokeAdministratorUserSessionsBodySchema","revokeAdministratorUserSessionsResponseSchema","suspendAdministratorUserBodySchema","changePasswordBodySchema","emailSchema","loginBodySchema","loginMethodSchema","loginMethodsResponseSchema","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,SASEC,yBAAyB,EACzBC,mBAAmB,EACnBC,+BAA+B,EAC/BC,+BAA+B,EAC/BC,kCAAkC,EAClCC,uCAAuC,EACvCC,8BAA8B,EAC9BC,eAAe,EAGfC,6BAA6B,EAC7BC,iCAAiC,EAGjCC,wBAAwB,EACxBC,4BAA4B,
|
|
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 AdminBootstrapStateDto,\n type AdminGrantDto,\n type AdministratorGrantSummaryDto,\n type AdministratorUserIdentityDto,\n type AdministratorUserLookupQueryDto,\n type AdministratorUserMutationResponseDto,\n type AdministratorUserSummaryDto,\n type AdminRole,\n adminBootstrapStateSchema,\n adminGrantDtoSchema,\n administratorGrantSummarySchema,\n administratorUserIdentitySchema,\n administratorUserLookupQuerySchema,\n administratorUserMutationResponseSchema,\n administratorUserSummarySchema,\n adminRoleSchema,\n type BootstrapAdminOwnerBodyDto,\n type BootstrapAdminOwnerResponseDto,\n bootstrapAdminOwnerBodySchema,\n bootstrapAdminOwnerResponseSchema,\n type GrantAdminRoleBodyDto,\n type GrantAdminRoleResponseDto,\n grantAdminRoleBodySchema,\n grantAdminRoleResponseSchema,\n type ImpersonateUserBodyDto,\n impersonateUserBodySchema,\n isAdminRole,\n type ListAdminGrantsQueryDto,\n type ListAdminGrantsResponseDto,\n listAdminGrantsQuerySchema,\n listAdminGrantsResponseSchema,\n type ReactivateAdministratorUserBodyDto,\n type RevokeAdminGrantBodyDto,\n type RevokeAdminGrantResponseDto,\n type RevokeAdministratorUserSessionsBodyDto,\n type RevokeAdministratorUserSessionsResponseDto,\n reactivateAdministratorUserBodySchema,\n revokeAdminGrantBodySchema,\n revokeAdminGrantResponseSchema,\n revokeAdministratorUserSessionsBodySchema,\n revokeAdministratorUserSessionsResponseSchema,\n type SuspendAdministratorUserBodyDto,\n suspendAdministratorUserBodySchema,\n} from './admin.js';\nexport {\n type ChangePasswordBodyDto,\n changePasswordBodySchema,\n emailSchema,\n type ImpersonateResponseDto,\n impersonateResponseSchema,\n type LoginBodyDto,\n type LoginMethodDto,\n type LoginMethodsResponseDto,\n type LoginResponseDto,\n type LogoutBodyDto,\n loginBodySchema,\n loginMethodSchema,\n loginMethodsResponseSchema,\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 SessionResponseDto,\n type SignupAcceptErrorDto,\n type SignupBodyDto,\n type SignupMembershipDto,\n type SignupResponseDto,\n sessionResponseSchema,\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","adminBootstrapStateSchema","adminGrantDtoSchema","administratorGrantSummarySchema","administratorUserIdentitySchema","administratorUserLookupQuerySchema","administratorUserMutationResponseSchema","administratorUserSummarySchema","adminRoleSchema","bootstrapAdminOwnerBodySchema","bootstrapAdminOwnerResponseSchema","grantAdminRoleBodySchema","grantAdminRoleResponseSchema","impersonateUserBodySchema","isAdminRole","listAdminGrantsQuerySchema","listAdminGrantsResponseSchema","reactivateAdministratorUserBodySchema","revokeAdminGrantBodySchema","revokeAdminGrantResponseSchema","revokeAdministratorUserSessionsBodySchema","revokeAdministratorUserSessionsResponseSchema","suspendAdministratorUserBodySchema","changePasswordBodySchema","emailSchema","impersonateResponseSchema","loginBodySchema","loginMethodSchema","loginMethodsResponseSchema","loginResponseSchema","logoutBodySchema","meResponseSchema","passwordResetConfirmBodySchema","passwordResetConfirmResponseSchema","passwordResetRequestBodySchema","passwordSchema","refreshResponseSchema","sessionResponseSchema","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,SASEC,yBAAyB,EACzBC,mBAAmB,EACnBC,+BAA+B,EAC/BC,+BAA+B,EAC/BC,kCAAkC,EAClCC,uCAAuC,EACvCC,8BAA8B,EAC9BC,eAAe,EAGfC,6BAA6B,EAC7BC,iCAAiC,EAGjCC,wBAAwB,EACxBC,4BAA4B,EAE5BC,yBAAyB,EACzBC,WAAW,EAGXC,0BAA0B,EAC1BC,6BAA6B,EAM7BC,qCAAqC,EACrCC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,yCAAyC,EACzCC,6CAA6C,EAE7CC,kCAAkC,QAC7B,aAAa;AACpB,SAEEC,wBAAwB,EACxBC,WAAW,EAEXC,yBAAyB,EAMzBC,eAAe,EACfC,iBAAiB,EACjBC,0BAA0B,EAC1BC,mBAAmB,EACnBC,gBAAgB,EAEhBC,gBAAgB,EAIhBC,8BAA8B,EAC9BC,kCAAkC,EAClCC,8BAA8B,EAC9BC,cAAc,EAEdC,qBAAqB,EAMrBC,qBAAqB,EACrBC,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"}
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const userStatusSchema: z.ZodEnum<{
|
|
3
3
|
active: "active";
|
|
4
|
-
suspended: "suspended";
|
|
5
4
|
deleted: "deleted";
|
|
5
|
+
suspended: "suspended";
|
|
6
6
|
}>;
|
|
7
7
|
export declare const userDtoSchema: z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
@@ -11,8 +11,8 @@ export declare const userDtoSchema: z.ZodObject<{
|
|
|
11
11
|
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
12
12
|
status: z.ZodEnum<{
|
|
13
13
|
active: "active";
|
|
14
|
-
suspended: "suspended";
|
|
15
14
|
deleted: "deleted";
|
|
15
|
+
suspended: "suspended";
|
|
16
16
|
}>;
|
|
17
17
|
created_at: z.ZodString;
|
|
18
18
|
updated_at: z.ZodString;
|