@seamapi/types 1.207.0 → 1.208.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.
@@ -650,6 +650,19 @@ type AcsSystem = z.output<typeof acs_system>;
650
650
 
651
651
  declare const acs_user: z.ZodObject<{
652
652
  created_at: z.ZodString;
653
+ warnings: z.ZodArray<z.ZodObject<{
654
+ message: z.ZodString;
655
+ created_at: z.ZodString;
656
+ warning_code: z.ZodLiteral<"being_deleted">;
657
+ }, "strip", z.ZodTypeAny, {
658
+ message: string;
659
+ warning_code: "being_deleted";
660
+ created_at: string;
661
+ }, {
662
+ message: string;
663
+ warning_code: "being_deleted";
664
+ created_at: string;
665
+ }>, "many">;
653
666
  display_name: z.ZodString;
654
667
  workspace_id: z.ZodString;
655
668
  acs_system_id: z.ZodString;
@@ -680,6 +693,11 @@ declare const acs_user: z.ZodObject<{
680
693
  phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
681
694
  }, "strip", z.ZodTypeAny, {
682
695
  created_at: string;
696
+ warnings: {
697
+ message: string;
698
+ warning_code: "being_deleted";
699
+ created_at: string;
700
+ }[];
683
701
  display_name: string;
684
702
  workspace_id: string;
685
703
  acs_system_id: string;
@@ -704,6 +722,11 @@ declare const acs_user: z.ZodObject<{
704
722
  phone_number?: string | undefined;
705
723
  }, {
706
724
  created_at: string;
725
+ warnings: {
726
+ message: string;
727
+ warning_code: "being_deleted";
728
+ created_at: string;
729
+ }[];
707
730
  display_name: string;
708
731
  workspace_id: string;
709
732
  acs_system_id: string;
@@ -8555,6 +8578,26 @@ declare const _default: {
8555
8578
  nullable: boolean;
8556
8579
  type: string;
8557
8580
  };
8581
+ warnings: {
8582
+ items: {
8583
+ properties: {
8584
+ created_at: {
8585
+ format: string;
8586
+ type: string;
8587
+ };
8588
+ message: {
8589
+ type: string;
8590
+ };
8591
+ warning_code: {
8592
+ enum: string[];
8593
+ type: string;
8594
+ };
8595
+ };
8596
+ required: string[];
8597
+ type: string;
8598
+ };
8599
+ type: string;
8600
+ };
8558
8601
  workspace_id: {
8559
8602
  format: string;
8560
8603
  type: string;
@@ -26698,6 +26741,11 @@ interface Routes {
26698
26741
  user_identity_phone_number?: (string | null) | undefined;
26699
26742
  latest_desired_state_synced_with_provider_at?: string | undefined;
26700
26743
  is_latest_desired_state_synced_with_provider?: boolean | undefined;
26744
+ warnings: Array<{
26745
+ created_at: string;
26746
+ message: string;
26747
+ warning_code: 'being_deleted';
26748
+ }>;
26701
26749
  full_name?: string | undefined;
26702
26750
  /**
26703
26751
  * @deprecated use email_address. */
@@ -27491,6 +27539,11 @@ interface Routes {
27491
27539
  user_identity_phone_number?: (string | null) | undefined;
27492
27540
  latest_desired_state_synced_with_provider_at?: string | undefined;
27493
27541
  is_latest_desired_state_synced_with_provider?: boolean | undefined;
27542
+ warnings: Array<{
27543
+ created_at: string;
27544
+ message: string;
27545
+ warning_code: 'being_deleted';
27546
+ }>;
27494
27547
  full_name?: string | undefined;
27495
27548
  /**
27496
27549
  * @deprecated use email_address. */
@@ -27541,6 +27594,11 @@ interface Routes {
27541
27594
  user_identity_phone_number?: (string | null) | undefined;
27542
27595
  latest_desired_state_synced_with_provider_at?: string | undefined;
27543
27596
  is_latest_desired_state_synced_with_provider?: boolean | undefined;
27597
+ warnings: Array<{
27598
+ created_at: string;
27599
+ message: string;
27600
+ warning_code: 'being_deleted';
27601
+ }>;
27544
27602
  full_name?: string | undefined;
27545
27603
  /**
27546
27604
  * @deprecated use email_address. */
@@ -27585,6 +27643,11 @@ interface Routes {
27585
27643
  user_identity_phone_number?: (string | null) | undefined;
27586
27644
  latest_desired_state_synced_with_provider_at?: string | undefined;
27587
27645
  is_latest_desired_state_synced_with_provider?: boolean | undefined;
27646
+ warnings: Array<{
27647
+ created_at: string;
27648
+ message: string;
27649
+ warning_code: 'being_deleted';
27650
+ }>;
27588
27651
  full_name?: string | undefined;
27589
27652
  /**
27590
27653
  * @deprecated use email_address. */
@@ -38999,6 +39062,11 @@ interface Routes {
38999
39062
  user_identity_phone_number?: (string | null) | undefined;
39000
39063
  latest_desired_state_synced_with_provider_at?: string | undefined;
39001
39064
  is_latest_desired_state_synced_with_provider?: boolean | undefined;
39065
+ warnings: Array<{
39066
+ created_at: string;
39067
+ message: string;
39068
+ warning_code: 'being_deleted';
39069
+ }>;
39002
39070
  full_name?: string | undefined;
39003
39071
  /**
39004
39072
  * @deprecated use email_address. */
@@ -1,8 +1,62 @@
1
1
  import { z } from 'zod';
2
2
  export declare const acs_user_external_type: z.ZodEnum<["pti_user", "brivo_user", "hid_credential_manager_user", "salto_site_user", "latch_user"]>;
3
3
  export type AcsUserExternalType = z.infer<typeof acs_user_external_type>;
4
+ export declare const acs_users_warning_map: z.ZodObject<{
5
+ being_deleted: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6
+ message: z.ZodString;
7
+ created_at: z.ZodString;
8
+ warning_code: z.ZodLiteral<"being_deleted">;
9
+ }, "strip", z.ZodTypeAny, {
10
+ message: string;
11
+ warning_code: "being_deleted";
12
+ created_at: string;
13
+ }, {
14
+ message: string;
15
+ warning_code: "being_deleted";
16
+ created_at: string;
17
+ }>>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ being_deleted?: {
20
+ message: string;
21
+ warning_code: "being_deleted";
22
+ created_at: string;
23
+ } | null | undefined;
24
+ }, {
25
+ being_deleted?: {
26
+ message: string;
27
+ warning_code: "being_deleted";
28
+ created_at: string;
29
+ } | null | undefined;
30
+ }>;
31
+ export declare const acs_users_warning: z.ZodObject<{
32
+ message: z.ZodString;
33
+ created_at: z.ZodString;
34
+ warning_code: z.ZodLiteral<"being_deleted">;
35
+ }, "strip", z.ZodTypeAny, {
36
+ message: string;
37
+ warning_code: "being_deleted";
38
+ created_at: string;
39
+ }, {
40
+ message: string;
41
+ warning_code: "being_deleted";
42
+ created_at: string;
43
+ }>;
44
+ export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>;
4
45
  export declare const acs_user: z.ZodObject<{
5
46
  created_at: z.ZodString;
47
+ warnings: z.ZodArray<z.ZodObject<{
48
+ message: z.ZodString;
49
+ created_at: z.ZodString;
50
+ warning_code: z.ZodLiteral<"being_deleted">;
51
+ }, "strip", z.ZodTypeAny, {
52
+ message: string;
53
+ warning_code: "being_deleted";
54
+ created_at: string;
55
+ }, {
56
+ message: string;
57
+ warning_code: "being_deleted";
58
+ created_at: string;
59
+ }>, "many">;
6
60
  display_name: z.ZodString;
7
61
  workspace_id: z.ZodString;
8
62
  acs_system_id: z.ZodString;
@@ -33,6 +87,11 @@ export declare const acs_user: z.ZodObject<{
33
87
  phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
34
88
  }, "strip", z.ZodTypeAny, {
35
89
  created_at: string;
90
+ warnings: {
91
+ message: string;
92
+ warning_code: "being_deleted";
93
+ created_at: string;
94
+ }[];
36
95
  display_name: string;
37
96
  workspace_id: string;
38
97
  acs_system_id: string;
@@ -57,6 +116,11 @@ export declare const acs_user: z.ZodObject<{
57
116
  phone_number?: string | undefined;
58
117
  }, {
59
118
  created_at: string;
119
+ warnings: {
120
+ message: string;
121
+ warning_code: "being_deleted";
122
+ created_at: string;
123
+ }[];
60
124
  display_name: string;
61
125
  workspace_id: string;
62
126
  acs_system_id: string;
@@ -8,6 +8,20 @@ export const acs_user_external_type = z.enum([
8
8
  'salto_site_user',
9
9
  'latch_user',
10
10
  ]);
11
+ const common_acs_users_warning = z.object({
12
+ created_at: z.string().datetime(),
13
+ message: z.string(),
14
+ });
15
+ const acs_users_being_deleted = common_acs_users_warning.extend({
16
+ warning_code: z.literal('being_deleted'),
17
+ });
18
+ export const acs_users_warning_map = z.object({
19
+ being_deleted: acs_users_being_deleted.optional().nullable(),
20
+ });
21
+ export const acs_users_warning =
22
+ // TODO: once we have more than one warning we should use z.union
23
+ // z.union([
24
+ acs_users_being_deleted;
11
25
  const user_fields = z.object({
12
26
  full_name: z.string().optional(),
13
27
  email: z.string().email().optional().describe(`
@@ -39,6 +53,7 @@ export const acs_user = z
39
53
  .datetime()
40
54
  .optional(),
41
55
  is_latest_desired_state_synced_with_provider: z.boolean().optional(),
56
+ warnings: z.array(acs_users_warning),
42
57
  })
43
58
  .merge(user_fields);
44
59
  //# sourceMappingURL=acs-user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"acs-user.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU;IACV,YAAY;IACZ,6BAA6B;IAC7B,iBAAiB;IACjB,YAAY;CACb,CAAC,CAAA;AAIF,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;KAI3C,CAAC;IACJ,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC/C,YAAY,EAAE,CAAC,CAAC,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AAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAChD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,eAAe,EAAE,QAAQ,CAAC,QAAQ,EAAE;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzD,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7D,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5D,4CAA4C,EAAE,CAAC;SAC5C,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,4CAA4C,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;CACrC,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA"}
@@ -687,6 +687,26 @@ declare const _default: {
687
687
  nullable: boolean;
688
688
  type: string;
689
689
  };
690
+ warnings: {
691
+ items: {
692
+ properties: {
693
+ created_at: {
694
+ format: string;
695
+ type: string;
696
+ };
697
+ message: {
698
+ type: string;
699
+ };
700
+ warning_code: {
701
+ enum: string[];
702
+ type: string;
703
+ };
704
+ };
705
+ required: string[];
706
+ type: string;
707
+ };
708
+ type: string;
709
+ };
690
710
  workspace_id: {
691
711
  format: string;
692
712
  type: string;
@@ -622,6 +622,18 @@ export default {
622
622
  user_identity_full_name: { nullable: true, type: 'string' },
623
623
  user_identity_id: { type: 'string' },
624
624
  user_identity_phone_number: { nullable: true, type: 'string' },
625
+ warnings: {
626
+ items: {
627
+ properties: {
628
+ created_at: { format: 'date-time', type: 'string' },
629
+ message: { type: 'string' },
630
+ warning_code: { enum: ['being_deleted'], type: 'string' },
631
+ },
632
+ required: ['created_at', 'message', 'warning_code'],
633
+ type: 'object',
634
+ },
635
+ type: 'array',
636
+ },
625
637
  workspace_id: { format: 'uuid', type: 'string' },
626
638
  },
627
639
  required: [
@@ -631,6 +643,7 @@ export default {
631
643
  'created_at',
632
644
  'display_name',
633
645
  'is_suspended',
646
+ 'warnings',
634
647
  ],
635
648
  type: 'object',
636
649
  },