@axium/core 0.20.2 → 0.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -59,6 +59,7 @@ declare const _API: {
59
59
  }, z.core.$strip>;
60
60
  id: z.ZodUUID;
61
61
  userId: z.ZodUUID;
62
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
63
  expires: z.ZodCoercedDate<unknown>;
63
64
  created: z.ZodCoercedDate<unknown>;
64
65
  elevated: z.ZodBoolean;
@@ -66,6 +67,7 @@ declare const _API: {
66
67
  readonly DELETE: z.ZodObject<{
67
68
  id: z.ZodUUID;
68
69
  userId: z.ZodUUID;
70
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
71
  expires: z.ZodCoercedDate<unknown>;
70
72
  created: z.ZodCoercedDate<unknown>;
71
73
  elevated: z.ZodBoolean;
@@ -207,6 +209,7 @@ declare const _API: {
207
209
  sessions: z.ZodArray<z.ZodObject<{
208
210
  id: z.ZodUUID;
209
211
  userId: z.ZodUUID;
212
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
213
  expires: z.ZodCoercedDate<unknown>;
211
214
  created: z.ZodCoercedDate<unknown>;
212
215
  elevated: z.ZodBoolean;
@@ -229,6 +232,7 @@ declare const _API: {
229
232
  readonly 'users/:id/auth': {
230
233
  readonly OPTIONS: [z.ZodObject<{
231
234
  type: z.ZodLiteral<"login" | "action" | "client_login">;
235
+ client: z.ZodOptional<z.ZodString>;
232
236
  }, z.core.$strip>, z.ZodObject<{
233
237
  challenge: z.ZodBase64URL;
234
238
  timeout: z.ZodOptional<z.ZodNumber>;
@@ -267,6 +271,7 @@ declare const _API: {
267
271
  readonly GET: z.ZodArray<z.ZodObject<{
268
272
  id: z.ZodUUID;
269
273
  userId: z.ZodUUID;
274
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
275
  expires: z.ZodCoercedDate<unknown>;
271
276
  created: z.ZodCoercedDate<unknown>;
272
277
  elevated: z.ZodBoolean;
@@ -277,6 +282,7 @@ declare const _API: {
277
282
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
278
283
  id: z.ZodUUID;
279
284
  userId: z.ZodUUID;
285
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
286
  expires: z.ZodCoercedDate<unknown>;
281
287
  created: z.ZodCoercedDate<unknown>;
282
288
  elevated: z.ZodBoolean;
@@ -593,6 +599,11 @@ declare const _API: {
593
599
  name: z.ZodString;
594
600
  version: z.ZodString;
595
601
  latest: z.ZodNullable<z.ZodString>;
602
+ client: z.ZodOptional<z.ZodObject<{
603
+ cli: z.ZodOptional<z.ZodString>;
604
+ hooks: z.ZodOptional<z.ZodString>;
605
+ integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
606
+ }, z.core.$strip>>;
596
607
  cli: z.ZodOptional<z.ZodString>;
597
608
  description: z.ZodOptional<z.ZodString>;
598
609
  apps: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -601,11 +612,6 @@ declare const _API: {
601
612
  image: z.ZodOptional<z.ZodString>;
602
613
  icon: z.ZodOptional<z.ZodString>;
603
614
  }, z.core.$strip>>>;
604
- client: z.ZodOptional<z.ZodObject<{
605
- cli: z.ZodOptional<z.ZodString>;
606
- hooks: z.ZodOptional<z.ZodString>;
607
- integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
608
- }, z.core.$strip>>;
609
615
  server: z.ZodOptional<z.ZodObject<{
610
616
  cli: z.ZodOptional<z.ZodString>;
611
617
  hooks: z.ZodOptional<z.ZodString>;
package/dist/auth.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as z from 'zod';
2
2
  export declare const Session: z.ZodObject<{
3
3
  id: z.ZodUUID;
4
4
  userId: z.ZodUUID;
5
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
6
  expires: z.ZodCoercedDate<unknown>;
6
7
  created: z.ZodCoercedDate<unknown>;
7
8
  elevated: z.ZodBoolean;
package/dist/auth.js CHANGED
@@ -2,6 +2,7 @@ import * as z from 'zod';
2
2
  export const Session = z.object({
3
3
  id: z.uuid(),
4
4
  userId: z.uuid(),
5
+ name: z.string().nullish(),
5
6
  expires: z.coerce.date(),
6
7
  created: z.coerce.date(),
7
8
  elevated: z.boolean(),
package/dist/user.d.ts CHANGED
@@ -92,6 +92,7 @@ export declare const UserRegistration: z.ZodObject<{
92
92
  }, z.core.$strip>;
93
93
  export declare const UserAuthOptions: z.ZodObject<{
94
94
  type: z.ZodLiteral<"login" | "action" | "client_login">;
95
+ client: z.ZodOptional<z.ZodString>;
95
96
  }, z.core.$strip>;
96
97
  export type UserAuthOptions = z.infer<typeof UserAuthOptions>;
97
98
  export declare const LogoutSessions: z.ZodObject<{
package/dist/user.js CHANGED
@@ -60,7 +60,10 @@ export const UserRegistration = z.object({
60
60
  userId: z.uuid(),
61
61
  response: PasskeyRegistration,
62
62
  });
63
- export const UserAuthOptions = z.object({ type: z.literal(['login', 'action', 'client_login']) });
63
+ export const UserAuthOptions = z.object({
64
+ type: z.literal(['login', 'action', 'client_login']),
65
+ client: z.string().max(200).optional(),
66
+ });
64
67
  export const LogoutSessions = z.object({
65
68
  id: z.array(z.uuid()).optional(),
66
69
  confirm_all: z.boolean().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/core",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",