@shipfox/api-auth-dto 18.0.0 → 19.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 +11 -0
- package/dist/schemas/admin.d.ts +33 -0
- package/dist/schemas/admin.d.ts.map +1 -1
- package/dist/schemas/admin.js +47 -0
- package/dist/schemas/admin.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/schemas/admin.ts +92 -0
- package/src/schemas/administrator-user-directory.test.ts +148 -0
- package/src/schemas/index.ts +4 -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 (343.44ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @shipfox/api-auth-dto
|
|
2
2
|
|
|
3
|
+
## 19.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 621108c: Add administrator user directory query and response schemas.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- @shipfox/api-common-dto@15.0.0
|
|
12
|
+
- @shipfox/inter-module@0.2.3
|
|
13
|
+
|
|
3
14
|
## 18.0.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/schemas/admin.d.ts
CHANGED
|
@@ -112,6 +112,39 @@ export declare const administratorUserSummarySchema: z.ZodObject<{
|
|
|
112
112
|
}>>;
|
|
113
113
|
}, z.core.$strip>;
|
|
114
114
|
export type AdministratorUserSummaryDto = z.infer<typeof administratorUserSummarySchema>;
|
|
115
|
+
export declare const administratorUserDirectoryQuerySchema: z.ZodObject<{
|
|
116
|
+
search: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>, z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
|
|
117
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
active: "active";
|
|
119
|
+
deleted: "deleted";
|
|
120
|
+
suspended: "suspended";
|
|
121
|
+
}>>;
|
|
122
|
+
impersonation_eligible: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
123
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
124
|
+
limit: z.ZodDefault<z.ZodPreprocess<z.ZodNumber>>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
export type AdministratorUserDirectoryQueryDto = z.infer<typeof administratorUserDirectoryQuerySchema>;
|
|
127
|
+
export declare const administratorUserDirectoryResponseSchema: z.ZodObject<{
|
|
128
|
+
users: z.ZodArray<z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
email: z.ZodString;
|
|
131
|
+
name: z.ZodNullable<z.ZodString>;
|
|
132
|
+
status: z.ZodEnum<{
|
|
133
|
+
active: "active";
|
|
134
|
+
deleted: "deleted";
|
|
135
|
+
suspended: "suspended";
|
|
136
|
+
}>;
|
|
137
|
+
email_verified_at: z.ZodNullable<z.ZodString>;
|
|
138
|
+
created_at: z.ZodString;
|
|
139
|
+
admin_role: z.ZodNullable<z.ZodEnum<{
|
|
140
|
+
"admin-observer": "admin-observer";
|
|
141
|
+
"admin-operator": "admin-operator";
|
|
142
|
+
"admin-owner": "admin-owner";
|
|
143
|
+
}>>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export type AdministratorUserDirectoryResponseDto = z.infer<typeof administratorUserDirectoryResponseSchema>;
|
|
115
148
|
export declare const suspendAdministratorUserBodySchema: z.ZodObject<{
|
|
116
149
|
reason: z.ZodString;
|
|
117
150
|
}, 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,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D;
|
|
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,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D;AA6BD,eAAO,MAAM,mBAAmB;;;;;;;;;;;iBAO9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,iCAAiC;;;;;;;;;;;iBAAsB,CAAC;AAErE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE/F,eAAO,MAAM,yBAAyB;;;;;iBA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,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
package/dist/schemas/admin.js
CHANGED
|
@@ -12,6 +12,19 @@ export function isAdminRole(value) {
|
|
|
12
12
|
const timestampSchema = z.string().datetime();
|
|
13
13
|
const identifierEmailSchema = z.string().email();
|
|
14
14
|
const CONTROL_OR_FORMAT_CHARACTER_RE = /[\p{Cc}\p{Cf}]/u;
|
|
15
|
+
const DIRECTORY_CURSOR_MAX_LENGTH = 512;
|
|
16
|
+
const DIRECTORY_SEARCH_MAX_LENGTH = 128;
|
|
17
|
+
const DIRECTORY_SEARCH_MAX_UTF16_LENGTH = DIRECTORY_SEARCH_MAX_LENGTH * 2;
|
|
18
|
+
const DIRECTORY_PAGE_SIZE_MAX = 100;
|
|
19
|
+
const DIRECTORY_LIMIT_PATTERN = /^\d+$/u;
|
|
20
|
+
function hasAtMostCodePoints(value, maxLength) {
|
|
21
|
+
let length = 0;
|
|
22
|
+
for (const _codePoint of value){
|
|
23
|
+
length += 1;
|
|
24
|
+
if (length > maxLength) return false;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
15
28
|
const reasonSchema = z.string().min(1).max(512).refine((value)=>!CONTROL_OR_FORMAT_CHARACTER_RE.test(value), {
|
|
16
29
|
message: 'must not contain control or format characters'
|
|
17
30
|
});
|
|
@@ -54,6 +67,40 @@ export const administratorUserSummarySchema = administratorUserIdentitySchema.ex
|
|
|
54
67
|
created_at: timestampSchema,
|
|
55
68
|
admin_role: adminRoleSchema.nullable()
|
|
56
69
|
});
|
|
70
|
+
const directoryCursorSchema = z.string().min(1).max(DIRECTORY_CURSOR_MAX_LENGTH).refine((value)=>!CONTROL_OR_FORMAT_CHARACTER_RE.test(value), {
|
|
71
|
+
message: 'must not contain control or format characters'
|
|
72
|
+
});
|
|
73
|
+
const directorySearchSchema = z.string().max(DIRECTORY_SEARCH_MAX_UTF16_LENGTH).optional().transform((value)=>{
|
|
74
|
+
if (typeof value === 'string' && !CONTROL_OR_FORMAT_CHARACTER_RE.test(value) && value.trim().length === 0) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
return value;
|
|
78
|
+
}).pipe(z.string().refine((value)=>!CONTROL_OR_FORMAT_CHARACTER_RE.test(value), {
|
|
79
|
+
message: 'must not contain control or format characters'
|
|
80
|
+
}).transform((value)=>value.trim()).pipe(z.string().min(1).refine((value)=>hasAtMostCodePoints(value, DIRECTORY_SEARCH_MAX_LENGTH), {
|
|
81
|
+
message: `String must contain at most ${DIRECTORY_SEARCH_MAX_LENGTH} character(s)`
|
|
82
|
+
})).optional());
|
|
83
|
+
const checkedBooleanSchema = z.preprocess((value)=>{
|
|
84
|
+
if (value === 'true') return true;
|
|
85
|
+
if (value === 'false') return false;
|
|
86
|
+
return value;
|
|
87
|
+
}, z.boolean());
|
|
88
|
+
const checkedDirectoryLimitSchema = z.preprocess((value)=>{
|
|
89
|
+
if (typeof value === 'number' && Number.isInteger(value)) return value;
|
|
90
|
+
if (typeof value === 'string' && DIRECTORY_LIMIT_PATTERN.test(value)) return Number(value);
|
|
91
|
+
return value;
|
|
92
|
+
}, z.number().int().min(1).max(DIRECTORY_PAGE_SIZE_MAX));
|
|
93
|
+
export const administratorUserDirectoryQuerySchema = z.object({
|
|
94
|
+
search: directorySearchSchema,
|
|
95
|
+
status: userStatusSchema.optional(),
|
|
96
|
+
impersonation_eligible: checkedBooleanSchema.optional(),
|
|
97
|
+
cursor: directoryCursorSchema.optional(),
|
|
98
|
+
limit: checkedDirectoryLimitSchema.default(50)
|
|
99
|
+
}).strict();
|
|
100
|
+
export const administratorUserDirectoryResponseSchema = z.object({
|
|
101
|
+
users: z.array(administratorUserSummarySchema).max(DIRECTORY_PAGE_SIZE_MAX),
|
|
102
|
+
next_cursor: directoryCursorSchema.nullable()
|
|
103
|
+
});
|
|
57
104
|
const correlationIdSchema = z.string().min(1).max(255);
|
|
58
105
|
export const suspendAdministratorUserBodySchema = z.object({
|
|
59
106
|
reason: reasonSchema
|
|
@@ -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 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","listAdminGrantsQuerySchema","limit","coerce","cursor","listAdminGrantsResponseSchema","grants","array","next_cursor"],"mappings":"AAAA,SAAQA,WAAW,QAAO,0BAA0B;AACpD,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,gBAAgB,QAAO,YAAY;AAE3C,OAAO,MAAMC,kBAAkBF,EAAEG,IAAI,CAAC;IAAC;IAAkB;IAAkB;CAAc,EAAE;AAI3F,OAAO,SAASC,YAAYC,KAAc;IACxC,OAAOH,gBAAgBI,SAAS,CAACD,OAAOE,OAAO;AACjD;AAEA,MAAMC,kBAAkBR,EAAES,MAAM,GAAGC,QAAQ;AAC3C,MAAMC,wBAAwBX,EAAES,MAAM,GAAGG,KAAK;AAC9C,MAAMC,iCAAiC;AACvC,MAAMC,eAAed,EAClBS,MAAM,GACNM,GAAG,CAAC,GACJC,GAAG,CAAC,KACJC,MAAM,CAAC,CAACZ,QAAU,CAACQ,+BAA+BK,IAAI,CAACb,QAAQ;IAC9Dc,SAAS;AACX;AAEF,OAAO,MAAMC,sBAAsBpB,EAAEqB,MAAM,CAAC;IAC1CC,IAAItB,EAAES,MAAM,GAAGc,IAAI;IACnBC,SAASxB,EAAES,MAAM,GAAGc,IAAI;IACxBE,MAAMvB;IACNwB,YAAYlB,gBAAgBmB,QAAQ;IACpCC,YAAYpB;IACZqB,YAAYrB;AACd,GAAG;AAIH,OAAO,MAAMsB,gCAAgC9B,EAAEqB,MAAM,CA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CAAgC/E,EAAEqB,MAAM,CAAC;IACpD2D,QAAQhF,EAAEiF,KAAK,CAACT;IAChBU,aAAalF,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 DIRECTORY_CURSOR_MAX_LENGTH = 512;\nconst DIRECTORY_SEARCH_MAX_LENGTH = 128;\nconst DIRECTORY_SEARCH_MAX_UTF16_LENGTH = DIRECTORY_SEARCH_MAX_LENGTH * 2;\nconst DIRECTORY_PAGE_SIZE_MAX = 100;\nconst DIRECTORY_LIMIT_PATTERN = /^\\d+$/u;\n\nfunction hasAtMostCodePoints(value: string, maxLength: number): boolean {\n let length = 0;\n for (const _codePoint of value) {\n length += 1;\n if (length > maxLength) return false;\n }\n\n return true;\n}\n\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 directoryCursorSchema = z\n .string()\n .min(1)\n .max(DIRECTORY_CURSOR_MAX_LENGTH)\n .refine((value) => !CONTROL_OR_FORMAT_CHARACTER_RE.test(value), {\n message: 'must not contain control or format characters',\n });\n\nconst directorySearchSchema = z\n .string()\n .max(DIRECTORY_SEARCH_MAX_UTF16_LENGTH)\n .optional()\n .transform((value) => {\n if (\n typeof value === 'string' &&\n !CONTROL_OR_FORMAT_CHARACTER_RE.test(value) &&\n value.trim().length === 0\n ) {\n return undefined;\n }\n\n return value;\n })\n .pipe(\n z\n .string()\n .refine((value) => !CONTROL_OR_FORMAT_CHARACTER_RE.test(value), {\n message: 'must not contain control or format characters',\n })\n .transform((value) => value.trim())\n .pipe(\n z\n .string()\n .min(1)\n .refine((value) => hasAtMostCodePoints(value, DIRECTORY_SEARCH_MAX_LENGTH), {\n message: `String must contain at most ${DIRECTORY_SEARCH_MAX_LENGTH} character(s)`,\n }),\n )\n .optional(),\n );\n\nconst checkedBooleanSchema = z.preprocess((value) => {\n if (value === 'true') return true;\n if (value === 'false') return false;\n return value;\n}, z.boolean());\n\nconst checkedDirectoryLimitSchema = z.preprocess((value) => {\n if (typeof value === 'number' && Number.isInteger(value)) return value;\n if (typeof value === 'string' && DIRECTORY_LIMIT_PATTERN.test(value)) return Number(value);\n return value;\n}, z.number().int().min(1).max(DIRECTORY_PAGE_SIZE_MAX));\n\nexport const administratorUserDirectoryQuerySchema = z\n .object({\n search: directorySearchSchema,\n status: userStatusSchema.optional(),\n impersonation_eligible: checkedBooleanSchema.optional(),\n cursor: directoryCursorSchema.optional(),\n limit: checkedDirectoryLimitSchema.default(50),\n })\n .strict();\n\nexport type AdministratorUserDirectoryQueryDto = z.infer<\n typeof administratorUserDirectoryQuerySchema\n>;\n\nexport const administratorUserDirectoryResponseSchema = z.object({\n users: z.array(administratorUserSummarySchema).max(DIRECTORY_PAGE_SIZE_MAX),\n next_cursor: directoryCursorSchema.nullable(),\n});\n\nexport type AdministratorUserDirectoryResponseDto = z.infer<\n typeof administratorUserDirectoryResponseSchema\n>;\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","DIRECTORY_CURSOR_MAX_LENGTH","DIRECTORY_SEARCH_MAX_LENGTH","DIRECTORY_SEARCH_MAX_UTF16_LENGTH","DIRECTORY_PAGE_SIZE_MAX","DIRECTORY_LIMIT_PATTERN","hasAtMostCodePoints","maxLength","length","_codePoint","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","directoryCursorSchema","directorySearchSchema","optional","transform","trim","undefined","pipe","checkedBooleanSchema","preprocess","boolean","checkedDirectoryLimitSchema","Number","isInteger","number","int","administratorUserDirectoryQuerySchema","search","impersonation_eligible","cursor","limit","default","strict","administratorUserDirectoryResponseSchema","users","array","next_cursor","correlationIdSchema","suspendAdministratorUserBodySchema","impersonateUserBodySchema","reactivateAdministratorUserBodySchema","revokeAdministratorUserSessionsBodySchema","administratorUserMutationResponseSchema","correlation_id","revokeAdministratorUserSessionsResponseSchema","sessions_revoked","nonnegative","administratorUserLookupQuerySchema","superRefine","context","identifiers","filter","identifier","addIssue","code","path","administratorGrantSummarySchema","grant_id","user","listAdminGrantsQuerySchema","coerce","listAdminGrantsResponseSchema","grants"],"mappings":"AAAA,SAAQA,WAAW,QAAO,0BAA0B;AACpD,SAAQC,CAAC,QAA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D,6BAA6BxG,EAAE8B,MAAM,CAAC;IACjD6C,OAAO3E,EAAEyG,MAAM,CAACpC,MAAM,GAAGC,GAAG,GAAG9C,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKmD,OAAO,CAAC;IACvDF,QAAQ1E,EAAES,MAAM,GAAGiD,QAAQ;AAC7B,GAAG;AAIH,OAAO,MAAMgD,gCAAgC1G,EAAE8B,MAAM,CAAC;IACpD6E,QAAQ3G,EAAEgF,KAAK,CAACqB;IAChBpB,aAAajF,EAAES,MAAM,GAAG2B,QAAQ;AAClC,GAAG"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, 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';
|
|
2
|
+
export { type AdminBootstrapStateDto, type AdminGrantDto, type AdministratorGrantSummaryDto, type AdministratorUserDirectoryQueryDto, type AdministratorUserDirectoryResponseDto, type AdministratorUserIdentityDto, type AdministratorUserLookupQueryDto, type AdministratorUserMutationResponseDto, type AdministratorUserSummaryDto, type AdminRole, adminBootstrapStateSchema, adminGrantDtoSchema, administratorGrantSummarySchema, administratorUserDirectoryQuerySchema, administratorUserDirectoryResponseSchema, 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
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';
|
|
@@ -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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C,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"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AUTH_PASSWORD_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, impersonateUserBodySchema, isAdminRole, listAdminGrantsQuerySchema, listAdminGrantsResponseSchema, reactivateAdministratorUserBodySchema, revokeAdminGrantBodySchema, revokeAdminGrantResponseSchema, revokeAdministratorUserSessionsBodySchema, revokeAdministratorUserSessionsResponseSchema, suspendAdministratorUserBodySchema } from './admin.js';
|
|
2
|
+
export { adminBootstrapStateSchema, adminGrantDtoSchema, administratorGrantSummarySchema, administratorUserDirectoryQuerySchema, administratorUserDirectoryResponseSchema, administratorUserIdentitySchema, administratorUserLookupQuerySchema, administratorUserMutationResponseSchema, administratorUserSummarySchema, adminRoleSchema, bootstrapAdminOwnerBodySchema, bootstrapAdminOwnerResponseSchema, grantAdminRoleBodySchema, grantAdminRoleResponseSchema, impersonateUserBodySchema, isAdminRole, listAdminGrantsQuerySchema, listAdminGrantsResponseSchema, reactivateAdministratorUserBodySchema, revokeAdminGrantBodySchema, revokeAdminGrantResponseSchema, revokeAdministratorUserSessionsBodySchema, revokeAdministratorUserSessionsResponseSchema, suspendAdministratorUserBodySchema } from './admin.js';
|
|
3
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';
|
|
@@ -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 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,
|
|
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 AdministratorUserDirectoryQueryDto,\n type AdministratorUserDirectoryResponseDto,\n type AdministratorUserIdentityDto,\n type AdministratorUserLookupQueryDto,\n type AdministratorUserMutationResponseDto,\n type AdministratorUserSummaryDto,\n type AdminRole,\n adminBootstrapStateSchema,\n adminGrantDtoSchema,\n administratorGrantSummarySchema,\n administratorUserDirectoryQuerySchema,\n administratorUserDirectoryResponseSchema,\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","administratorUserDirectoryQuerySchema","administratorUserDirectoryResponseSchema","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,SAWEC,yBAAyB,EACzBC,mBAAmB,EACnBC,+BAA+B,EAC/BC,qCAAqC,EACrCC,wCAAwC,EACxCC,+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,EACt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