@dakkitor/api-contracts 1.1.64 → 1.1.65

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.
@@ -90,15 +90,15 @@ export declare const authContract: {
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  email: string;
92
92
  id: string;
93
- lastName?: string | undefined;
94
93
  firstName?: string | undefined;
94
+ lastName?: string | undefined;
95
95
  phone?: string | undefined;
96
96
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
97
97
  }, {
98
98
  email: string;
99
99
  id: string;
100
- lastName?: string | undefined;
101
100
  firstName?: string | undefined;
101
+ lastName?: string | undefined;
102
102
  phone?: string | undefined;
103
103
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
104
104
  }>;
@@ -226,7 +226,7 @@ export declare const authContract: {
226
226
  metadata: {
227
227
  tags: string[];
228
228
  };
229
- summary: "Log out a user";
229
+ summary: "Log out a user from current session";
230
230
  method: "POST";
231
231
  body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
232
232
  path: "/v2/auth/logout";
@@ -315,5 +315,98 @@ export declare const authContract: {
315
315
  }>;
316
316
  };
317
317
  };
318
+ logoutAll: {
319
+ metadata: {
320
+ tags: string[];
321
+ };
322
+ summary: "Log out a user from all sessions (all devices)";
323
+ method: "POST";
324
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
325
+ path: "/v2/auth/logout-all";
326
+ responses: {
327
+ 400: z.ZodObject<{
328
+ statusCode: z.ZodNumber;
329
+ message: z.ZodString;
330
+ code: z.ZodString;
331
+ details: z.ZodOptional<z.ZodUnknown>;
332
+ timestamp: z.ZodString;
333
+ path: z.ZodString;
334
+ correlationId: z.ZodOptional<z.ZodString>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ code: string;
337
+ path: string;
338
+ message: string;
339
+ statusCode: number;
340
+ timestamp: string;
341
+ details?: unknown;
342
+ correlationId?: string | undefined;
343
+ }, {
344
+ code: string;
345
+ path: string;
346
+ message: string;
347
+ statusCode: number;
348
+ timestamp: string;
349
+ details?: unknown;
350
+ correlationId?: string | undefined;
351
+ }>;
352
+ 500: z.ZodObject<{
353
+ statusCode: z.ZodNumber;
354
+ message: z.ZodString;
355
+ code: z.ZodString;
356
+ details: z.ZodOptional<z.ZodUnknown>;
357
+ timestamp: z.ZodString;
358
+ path: z.ZodString;
359
+ correlationId: z.ZodOptional<z.ZodString>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ code: string;
362
+ path: string;
363
+ message: string;
364
+ statusCode: number;
365
+ timestamp: string;
366
+ details?: unknown;
367
+ correlationId?: string | undefined;
368
+ }, {
369
+ code: string;
370
+ path: string;
371
+ message: string;
372
+ statusCode: number;
373
+ timestamp: string;
374
+ details?: unknown;
375
+ correlationId?: string | undefined;
376
+ }>;
377
+ 200: z.ZodObject<{
378
+ message: z.ZodString;
379
+ }, "strip", z.ZodTypeAny, {
380
+ message: string;
381
+ }, {
382
+ message: string;
383
+ }>;
384
+ 401: z.ZodObject<{
385
+ statusCode: z.ZodNumber;
386
+ message: z.ZodString;
387
+ code: z.ZodString;
388
+ details: z.ZodOptional<z.ZodUnknown>;
389
+ timestamp: z.ZodString;
390
+ path: z.ZodString;
391
+ correlationId: z.ZodOptional<z.ZodString>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ code: string;
394
+ path: string;
395
+ message: string;
396
+ statusCode: number;
397
+ timestamp: string;
398
+ details?: unknown;
399
+ correlationId?: string | undefined;
400
+ }, {
401
+ code: string;
402
+ path: string;
403
+ message: string;
404
+ statusCode: number;
405
+ timestamp: string;
406
+ details?: unknown;
407
+ correlationId?: string | undefined;
408
+ }>;
409
+ };
410
+ };
318
411
  };
319
412
  //# sourceMappingURL=auth.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.contract.d.ts","sourceRoot":"","sources":["../../contracts/auth/auth.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;EAKM,CAAC;AAE/B,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDxB,CAAC"}
1
+ {"version":3,"file":"auth.contract.d.ts","sourceRoot":"","sources":["../../contracts/auth/auth.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;EAKM,CAAC;AAE/B,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DxB,CAAC"}
@@ -49,7 +49,20 @@ exports.authContract = c.router({
49
49
  200: common_schemas_1.MessageResponseSchema,
50
50
  401: error_schemas_1.ErrorResponseSchema,
51
51
  },
52
- summary: 'Log out a user',
52
+ summary: 'Log out a user from current session',
53
+ metadata: {
54
+ tags: ['Authentication'],
55
+ },
56
+ },
57
+ logoutAll: {
58
+ method: 'POST',
59
+ path: '/auth/logout-all',
60
+ body: zod_1.z.object({}),
61
+ responses: {
62
+ 200: common_schemas_1.MessageResponseSchema,
63
+ 401: error_schemas_1.ErrorResponseSchema,
64
+ },
65
+ summary: 'Log out a user from all sessions (all devices)',
53
66
  metadata: {
54
67
  tags: ['Authentication'],
55
68
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.64",
3
+ "version": "1.1.65",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",