@kl1/contracts 1.0.96 → 1.0.98

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.
@@ -25442,6 +25442,36 @@ export declare const apiContract: {
25442
25442
  message: string;
25443
25443
  error?: any;
25444
25444
  }>;
25445
+ 404: import("zod").ZodObject<{
25446
+ message: import("zod").ZodString;
25447
+ error: import("zod").ZodAny;
25448
+ }, "strip", import("zod").ZodTypeAny, {
25449
+ message: string;
25450
+ error?: any;
25451
+ }, {
25452
+ message: string;
25453
+ error?: any;
25454
+ }>;
25455
+ 422: import("zod").ZodObject<{
25456
+ message: import("zod").ZodString;
25457
+ error: import("zod").ZodAny;
25458
+ }, "strip", import("zod").ZodTypeAny, {
25459
+ message: string;
25460
+ error?: any;
25461
+ }, {
25462
+ message: string;
25463
+ error?: any;
25464
+ }>;
25465
+ 500: import("zod").ZodObject<{
25466
+ message: import("zod").ZodString;
25467
+ error: import("zod").ZodAny;
25468
+ }, "strip", import("zod").ZodTypeAny, {
25469
+ message: string;
25470
+ error?: any;
25471
+ }, {
25472
+ message: string;
25473
+ error?: any;
25474
+ }>;
25445
25475
  };
25446
25476
  path: "user";
25447
25477
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
@@ -26007,7 +26037,7 @@ export declare const apiContract: {
26007
26037
  responses: {
26008
26038
  201: import("zod").ZodObject<{
26009
26039
  requestId: import("zod").ZodString;
26010
- role: import("zod").ZodObject<{
26040
+ user: import("zod").ZodObject<{
26011
26041
  id: import("zod").ZodString;
26012
26042
  createdAt: import("zod").ZodDate;
26013
26043
  updatedAt: import("zod").ZodDate;
@@ -26212,7 +26242,7 @@ export declare const apiContract: {
26212
26242
  };
26213
26243
  }>;
26214
26244
  }, "strip", import("zod").ZodTypeAny, {
26215
- role: {
26245
+ user: {
26216
26246
  id: string;
26217
26247
  address: string | null;
26218
26248
  name: string;
@@ -26258,7 +26288,7 @@ export declare const apiContract: {
26258
26288
  };
26259
26289
  requestId: string;
26260
26290
  }, {
26261
- role: {
26291
+ user: {
26262
26292
  id: string;
26263
26293
  address: string | null;
26264
26294
  name: string;
@@ -26321,6 +26351,36 @@ export declare const apiContract: {
26321
26351
  message: string;
26322
26352
  error?: any;
26323
26353
  }>;
26354
+ 404: import("zod").ZodObject<{
26355
+ message: import("zod").ZodString;
26356
+ error: import("zod").ZodAny;
26357
+ }, "strip", import("zod").ZodTypeAny, {
26358
+ message: string;
26359
+ error?: any;
26360
+ }, {
26361
+ message: string;
26362
+ error?: any;
26363
+ }>;
26364
+ 422: import("zod").ZodObject<{
26365
+ message: import("zod").ZodString;
26366
+ error: import("zod").ZodAny;
26367
+ }, "strip", import("zod").ZodTypeAny, {
26368
+ message: string;
26369
+ error?: any;
26370
+ }, {
26371
+ message: string;
26372
+ error?: any;
26373
+ }>;
26374
+ 500: import("zod").ZodObject<{
26375
+ message: import("zod").ZodString;
26376
+ error: import("zod").ZodAny;
26377
+ }, "strip", import("zod").ZodTypeAny, {
26378
+ message: string;
26379
+ error?: any;
26380
+ }, {
26381
+ message: string;
26382
+ error?: any;
26383
+ }>;
26324
26384
  };
26325
26385
  path: "user/:id";
26326
26386
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
@@ -26340,6 +26400,389 @@ export declare const apiContract: {
26340
26400
  'x-client-timezone'?: string | undefined;
26341
26401
  }>>>;
26342
26402
  };
26403
+ updateUserProfile: {
26404
+ body: import("zod").ZodObject<{
26405
+ password: import("zod").ZodString;
26406
+ }, "strip", import("zod").ZodTypeAny, {
26407
+ password: string;
26408
+ }, {
26409
+ password: string;
26410
+ }>;
26411
+ summary: "Update a user profile.";
26412
+ method: "PATCH";
26413
+ pathParams: import("zod").ZodObject<{
26414
+ id: import("zod").ZodString;
26415
+ }, "strip", import("zod").ZodTypeAny, {
26416
+ id: string;
26417
+ }, {
26418
+ id: string;
26419
+ }>;
26420
+ responses: {
26421
+ 201: import("zod").ZodObject<{
26422
+ requestId: import("zod").ZodString;
26423
+ user: import("zod").ZodObject<{
26424
+ id: import("zod").ZodString;
26425
+ createdAt: import("zod").ZodDate;
26426
+ updatedAt: import("zod").ZodDate;
26427
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
26428
+ name: import("zod").ZodString;
26429
+ email: import("zod").ZodString;
26430
+ emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
26431
+ password: import("zod").ZodString;
26432
+ address: import("zod").ZodNullable<import("zod").ZodString>;
26433
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
26434
+ notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
26435
+ roles: import("zod").ZodArray<import("zod").ZodObject<{
26436
+ id: import("zod").ZodString;
26437
+ createdAt: import("zod").ZodDate;
26438
+ updatedAt: import("zod").ZodDate;
26439
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
26440
+ systemName: import("zod").ZodString;
26441
+ displayName: import("zod").ZodString;
26442
+ description: import("zod").ZodNullable<import("zod").ZodString>;
26443
+ permissions: import("zod").ZodArray<import("zod").ZodObject<{
26444
+ id: import("zod").ZodString;
26445
+ createdAt: import("zod").ZodDate;
26446
+ updatedAt: import("zod").ZodDate;
26447
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
26448
+ systemName: import("zod").ZodString;
26449
+ displayName: import("zod").ZodString;
26450
+ description: import("zod").ZodNullable<import("zod").ZodString>;
26451
+ }, "strip", import("zod").ZodTypeAny, {
26452
+ id: string;
26453
+ description: string | null;
26454
+ createdAt: Date;
26455
+ updatedAt: Date;
26456
+ deletedAt: Date | null;
26457
+ systemName: string;
26458
+ displayName: string;
26459
+ }, {
26460
+ id: string;
26461
+ description: string | null;
26462
+ createdAt: Date;
26463
+ updatedAt: Date;
26464
+ deletedAt: Date | null;
26465
+ systemName: string;
26466
+ displayName: string;
26467
+ }>, "many">;
26468
+ }, "strip", import("zod").ZodTypeAny, {
26469
+ id: string;
26470
+ description: string | null;
26471
+ createdAt: Date;
26472
+ updatedAt: Date;
26473
+ deletedAt: Date | null;
26474
+ systemName: string;
26475
+ displayName: string;
26476
+ permissions: {
26477
+ id: string;
26478
+ description: string | null;
26479
+ createdAt: Date;
26480
+ updatedAt: Date;
26481
+ deletedAt: Date | null;
26482
+ systemName: string;
26483
+ displayName: string;
26484
+ }[];
26485
+ }, {
26486
+ id: string;
26487
+ description: string | null;
26488
+ createdAt: Date;
26489
+ updatedAt: Date;
26490
+ deletedAt: Date | null;
26491
+ systemName: string;
26492
+ displayName: string;
26493
+ permissions: {
26494
+ id: string;
26495
+ description: string | null;
26496
+ createdAt: Date;
26497
+ updatedAt: Date;
26498
+ deletedAt: Date | null;
26499
+ systemName: string;
26500
+ displayName: string;
26501
+ }[];
26502
+ }>, "many">;
26503
+ extension: import("zod").ZodObject<{
26504
+ id: import("zod").ZodString;
26505
+ createdAt: import("zod").ZodDate;
26506
+ updatedAt: import("zod").ZodDate;
26507
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
26508
+ userId: import("zod").ZodNullable<import("zod").ZodString>;
26509
+ sipServerUrl: import("zod").ZodString;
26510
+ sipUserName: import("zod").ZodString;
26511
+ webphoneLoginUser: import("zod").ZodString;
26512
+ extensionId: import("zod").ZodNullable<import("zod").ZodString>;
26513
+ extensionName: import("zod").ZodString;
26514
+ telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
26515
+ }, "strip", import("zod").ZodTypeAny, {
26516
+ id: string;
26517
+ createdAt: Date;
26518
+ updatedAt: Date;
26519
+ deletedAt: Date | null;
26520
+ userId: string | null;
26521
+ sipServerUrl: string;
26522
+ sipUserName: string;
26523
+ webphoneLoginUser: string;
26524
+ extensionId: string | null;
26525
+ extensionName: string;
26526
+ telephonySignature: string | null;
26527
+ }, {
26528
+ id: string;
26529
+ createdAt: Date;
26530
+ updatedAt: Date;
26531
+ deletedAt: Date | null;
26532
+ userId: string | null;
26533
+ sipServerUrl: string;
26534
+ sipUserName: string;
26535
+ webphoneLoginUser: string;
26536
+ extensionId: string | null;
26537
+ extensionName: string;
26538
+ telephonySignature: string | null;
26539
+ }>;
26540
+ }, "strip", import("zod").ZodTypeAny, {
26541
+ id: string;
26542
+ address: string | null;
26543
+ name: string;
26544
+ email: string;
26545
+ createdAt: Date;
26546
+ updatedAt: Date;
26547
+ deletedAt: Date | null;
26548
+ emailVerifiedAt: Date | null;
26549
+ password: string;
26550
+ phone: string | null;
26551
+ notificationCount: number | null;
26552
+ roles: {
26553
+ id: string;
26554
+ description: string | null;
26555
+ createdAt: Date;
26556
+ updatedAt: Date;
26557
+ deletedAt: Date | null;
26558
+ systemName: string;
26559
+ displayName: string;
26560
+ permissions: {
26561
+ id: string;
26562
+ description: string | null;
26563
+ createdAt: Date;
26564
+ updatedAt: Date;
26565
+ deletedAt: Date | null;
26566
+ systemName: string;
26567
+ displayName: string;
26568
+ }[];
26569
+ }[];
26570
+ extension: {
26571
+ id: string;
26572
+ createdAt: Date;
26573
+ updatedAt: Date;
26574
+ deletedAt: Date | null;
26575
+ userId: string | null;
26576
+ sipServerUrl: string;
26577
+ sipUserName: string;
26578
+ webphoneLoginUser: string;
26579
+ extensionId: string | null;
26580
+ extensionName: string;
26581
+ telephonySignature: string | null;
26582
+ };
26583
+ }, {
26584
+ id: string;
26585
+ address: string | null;
26586
+ name: string;
26587
+ email: string;
26588
+ createdAt: Date;
26589
+ updatedAt: Date;
26590
+ deletedAt: Date | null;
26591
+ emailVerifiedAt: Date | null;
26592
+ password: string;
26593
+ phone: string | null;
26594
+ notificationCount: number | null;
26595
+ roles: {
26596
+ id: string;
26597
+ description: string | null;
26598
+ createdAt: Date;
26599
+ updatedAt: Date;
26600
+ deletedAt: Date | null;
26601
+ systemName: string;
26602
+ displayName: string;
26603
+ permissions: {
26604
+ id: string;
26605
+ description: string | null;
26606
+ createdAt: Date;
26607
+ updatedAt: Date;
26608
+ deletedAt: Date | null;
26609
+ systemName: string;
26610
+ displayName: string;
26611
+ }[];
26612
+ }[];
26613
+ extension: {
26614
+ id: string;
26615
+ createdAt: Date;
26616
+ updatedAt: Date;
26617
+ deletedAt: Date | null;
26618
+ userId: string | null;
26619
+ sipServerUrl: string;
26620
+ sipUserName: string;
26621
+ webphoneLoginUser: string;
26622
+ extensionId: string | null;
26623
+ extensionName: string;
26624
+ telephonySignature: string | null;
26625
+ };
26626
+ }>;
26627
+ }, "strip", import("zod").ZodTypeAny, {
26628
+ user: {
26629
+ id: string;
26630
+ address: string | null;
26631
+ name: string;
26632
+ email: string;
26633
+ createdAt: Date;
26634
+ updatedAt: Date;
26635
+ deletedAt: Date | null;
26636
+ emailVerifiedAt: Date | null;
26637
+ password: string;
26638
+ phone: string | null;
26639
+ notificationCount: number | null;
26640
+ roles: {
26641
+ id: string;
26642
+ description: string | null;
26643
+ createdAt: Date;
26644
+ updatedAt: Date;
26645
+ deletedAt: Date | null;
26646
+ systemName: string;
26647
+ displayName: string;
26648
+ permissions: {
26649
+ id: string;
26650
+ description: string | null;
26651
+ createdAt: Date;
26652
+ updatedAt: Date;
26653
+ deletedAt: Date | null;
26654
+ systemName: string;
26655
+ displayName: string;
26656
+ }[];
26657
+ }[];
26658
+ extension: {
26659
+ id: string;
26660
+ createdAt: Date;
26661
+ updatedAt: Date;
26662
+ deletedAt: Date | null;
26663
+ userId: string | null;
26664
+ sipServerUrl: string;
26665
+ sipUserName: string;
26666
+ webphoneLoginUser: string;
26667
+ extensionId: string | null;
26668
+ extensionName: string;
26669
+ telephonySignature: string | null;
26670
+ };
26671
+ };
26672
+ requestId: string;
26673
+ }, {
26674
+ user: {
26675
+ id: string;
26676
+ address: string | null;
26677
+ name: string;
26678
+ email: string;
26679
+ createdAt: Date;
26680
+ updatedAt: Date;
26681
+ deletedAt: Date | null;
26682
+ emailVerifiedAt: Date | null;
26683
+ password: string;
26684
+ phone: string | null;
26685
+ notificationCount: number | null;
26686
+ roles: {
26687
+ id: string;
26688
+ description: string | null;
26689
+ createdAt: Date;
26690
+ updatedAt: Date;
26691
+ deletedAt: Date | null;
26692
+ systemName: string;
26693
+ displayName: string;
26694
+ permissions: {
26695
+ id: string;
26696
+ description: string | null;
26697
+ createdAt: Date;
26698
+ updatedAt: Date;
26699
+ deletedAt: Date | null;
26700
+ systemName: string;
26701
+ displayName: string;
26702
+ }[];
26703
+ }[];
26704
+ extension: {
26705
+ id: string;
26706
+ createdAt: Date;
26707
+ updatedAt: Date;
26708
+ deletedAt: Date | null;
26709
+ userId: string | null;
26710
+ sipServerUrl: string;
26711
+ sipUserName: string;
26712
+ webphoneLoginUser: string;
26713
+ extensionId: string | null;
26714
+ extensionName: string;
26715
+ telephonySignature: string | null;
26716
+ };
26717
+ };
26718
+ requestId: string;
26719
+ }>;
26720
+ 400: import("zod").ZodObject<{
26721
+ message: import("zod").ZodString;
26722
+ }, "strip", import("zod").ZodTypeAny, {
26723
+ message: string;
26724
+ }, {
26725
+ message: string;
26726
+ }>;
26727
+ 401: import("zod").ZodObject<{
26728
+ message: import("zod").ZodString;
26729
+ error: import("zod").ZodAny;
26730
+ }, "strip", import("zod").ZodTypeAny, {
26731
+ message: string;
26732
+ error?: any;
26733
+ }, {
26734
+ message: string;
26735
+ error?: any;
26736
+ }>;
26737
+ 404: import("zod").ZodObject<{
26738
+ message: import("zod").ZodString;
26739
+ error: import("zod").ZodAny;
26740
+ }, "strip", import("zod").ZodTypeAny, {
26741
+ message: string;
26742
+ error?: any;
26743
+ }, {
26744
+ message: string;
26745
+ error?: any;
26746
+ }>;
26747
+ 422: import("zod").ZodObject<{
26748
+ message: import("zod").ZodString;
26749
+ error: import("zod").ZodAny;
26750
+ }, "strip", import("zod").ZodTypeAny, {
26751
+ message: string;
26752
+ error?: any;
26753
+ }, {
26754
+ message: string;
26755
+ error?: any;
26756
+ }>;
26757
+ 500: import("zod").ZodObject<{
26758
+ message: import("zod").ZodString;
26759
+ error: import("zod").ZodAny;
26760
+ }, "strip", import("zod").ZodTypeAny, {
26761
+ message: string;
26762
+ error?: any;
26763
+ }, {
26764
+ message: string;
26765
+ error?: any;
26766
+ }>;
26767
+ };
26768
+ path: "user/profile/:id";
26769
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
26770
+ 'x-tenant': import("zod").ZodString;
26771
+ authorization: import("zod").ZodString;
26772
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
26773
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
26774
+ }, "strip", import("zod").ZodTypeAny, {
26775
+ 'x-tenant': string;
26776
+ authorization: string;
26777
+ 'x-client-timezone': string;
26778
+ 'x-code'?: string | undefined;
26779
+ }, {
26780
+ 'x-tenant': string;
26781
+ authorization: string;
26782
+ 'x-code'?: string | undefined;
26783
+ 'x-client-timezone'?: string | undefined;
26784
+ }>>>;
26785
+ };
26343
26786
  deleteUser: {
26344
26787
  body: null;
26345
26788
  summary: "Delete a user.";
@@ -26362,6 +26805,26 @@ export declare const apiContract: {
26362
26805
  message: string;
26363
26806
  requestId: string;
26364
26807
  }>;
26808
+ 404: import("zod").ZodObject<{
26809
+ message: import("zod").ZodString;
26810
+ error: import("zod").ZodAny;
26811
+ }, "strip", import("zod").ZodTypeAny, {
26812
+ message: string;
26813
+ error?: any;
26814
+ }, {
26815
+ message: string;
26816
+ error?: any;
26817
+ }>;
26818
+ 422: import("zod").ZodObject<{
26819
+ message: import("zod").ZodString;
26820
+ error: import("zod").ZodAny;
26821
+ }, "strip", import("zod").ZodTypeAny, {
26822
+ message: string;
26823
+ error?: any;
26824
+ }, {
26825
+ message: string;
26826
+ error?: any;
26827
+ }>;
26365
26828
  500: import("zod").ZodObject<{
26366
26829
  message: import("zod").ZodString;
26367
26830
  error: import("zod").ZodAny;