@kl1/contracts 1.0.62 → 1.0.63

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/index.js CHANGED
@@ -3457,6 +3457,8 @@ var extensionContract = (0, import_core14.initContract)().router(
3457
3457
  message: import_zod50.default.string()
3458
3458
  }),
3459
3459
  401: DefaultUnauthorizedSchema,
3460
+ 404: DefaultNotFoundSchema,
3461
+ 422: DefaultUnprocessibleSchema,
3460
3462
  500: DefaultErrorResponseSchema
3461
3463
  },
3462
3464
  summary: "Create a extension."
@@ -3493,6 +3495,8 @@ var extensionContract = (0, import_core14.initContract)().router(
3493
3495
  message: import_zod50.default.string()
3494
3496
  }),
3495
3497
  401: DefaultUnauthorizedSchema,
3498
+ 404: DefaultNotFoundSchema,
3499
+ 422: DefaultUnprocessibleSchema,
3496
3500
  500: DefaultErrorResponseSchema
3497
3501
  },
3498
3502
  summary: "Get all extensions"
@@ -3508,6 +3512,8 @@ var extensionContract = (0, import_core14.initContract)().router(
3508
3512
  message: import_zod50.default.string()
3509
3513
  }),
3510
3514
  401: DefaultUnauthorizedSchema,
3515
+ 404: DefaultNotFoundSchema,
3516
+ 422: DefaultUnprocessibleSchema,
3511
3517
  500: DefaultErrorResponseSchema
3512
3518
  },
3513
3519
  summary: "Get extension by user id"
@@ -3523,11 +3529,13 @@ var extensionContract = (0, import_core14.initContract)().router(
3523
3529
  headers: DefaultHeaderSchema,
3524
3530
  responses: {
3525
3531
  200: WithPagination(ExtensionSchema),
3526
- 500: DefaultErrorResponseSchema,
3527
3532
  400: import_zod50.default.object({
3528
3533
  message: import_zod50.default.string()
3529
3534
  }),
3530
- 401: DefaultUnauthorizedSchema
3535
+ 401: DefaultUnauthorizedSchema,
3536
+ 404: DefaultNotFoundSchema,
3537
+ 422: DefaultUnprocessibleSchema,
3538
+ 500: DefaultErrorResponseSchema
3531
3539
  },
3532
3540
  summary: "Get by dialpad"
3533
3541
  },
@@ -3541,6 +3549,12 @@ var extensionContract = (0, import_core14.initContract)().router(
3541
3549
  200: DefaultSuccessResponseSchema.extend({
3542
3550
  extension: ExtensionSchema
3543
3551
  }),
3552
+ 400: import_zod50.default.object({
3553
+ message: import_zod50.default.string()
3554
+ }),
3555
+ 401: DefaultUnauthorizedSchema,
3556
+ 404: DefaultNotFoundSchema,
3557
+ 422: DefaultUnprocessibleSchema,
3544
3558
  500: DefaultErrorResponseSchema
3545
3559
  },
3546
3560
  summary: "Update a extension."
@@ -3553,6 +3567,12 @@ var extensionContract = (0, import_core14.initContract)().router(
3553
3567
  body: null,
3554
3568
  responses: {
3555
3569
  200: DefaultSuccessResponseSchema.extend({ message: import_zod50.default.string() }),
3570
+ 400: import_zod50.default.object({
3571
+ message: import_zod50.default.string()
3572
+ }),
3573
+ 401: DefaultUnauthorizedSchema,
3574
+ 404: DefaultNotFoundSchema,
3575
+ 422: DefaultUnprocessibleSchema,
3556
3576
  500: DefaultErrorResponseSchema
3557
3577
  },
3558
3578
  summary: "Delete a extension."