@seamapi/types 1.206.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;
@@ -15303,6 +15346,7 @@ declare const _default: {
15303
15346
  };
15304
15347
  '/acs/systems/list': {
15305
15348
  post: {
15349
+ description: string;
15306
15350
  operationId: string;
15307
15351
  requestBody: {
15308
15352
  content: {
@@ -15310,6 +15354,7 @@ declare const _default: {
15310
15354
  schema: {
15311
15355
  properties: {
15312
15356
  connected_account_id: {
15357
+ description: string;
15313
15358
  format: string;
15314
15359
  type: string;
15315
15360
  };
@@ -15375,6 +15420,7 @@ declare const _default: {
15375
15420
  'x-fern-sdk-group-name': string[];
15376
15421
  'x-fern-sdk-method-name': string;
15377
15422
  'x-fern-sdk-return-value': string;
15423
+ 'x-title': string;
15378
15424
  };
15379
15425
  };
15380
15426
  '/acs/systems/list_compatible_credential_manager_acs_systems': {
@@ -26695,6 +26741,11 @@ interface Routes {
26695
26741
  user_identity_phone_number?: (string | null) | undefined;
26696
26742
  latest_desired_state_synced_with_provider_at?: string | undefined;
26697
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
+ }>;
26698
26749
  full_name?: string | undefined;
26699
26750
  /**
26700
26751
  * @deprecated use email_address. */
@@ -27311,6 +27362,7 @@ interface Routes {
27311
27362
  queryParams: {};
27312
27363
  jsonBody: {};
27313
27364
  commonParams: {
27365
+ /** ID of the connected account by which to filter the list of returned access control systems. */
27314
27366
  connected_account_id?: string | undefined;
27315
27367
  };
27316
27368
  formData: {};
@@ -27487,6 +27539,11 @@ interface Routes {
27487
27539
  user_identity_phone_number?: (string | null) | undefined;
27488
27540
  latest_desired_state_synced_with_provider_at?: string | undefined;
27489
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
+ }>;
27490
27547
  full_name?: string | undefined;
27491
27548
  /**
27492
27549
  * @deprecated use email_address. */
@@ -27537,6 +27594,11 @@ interface Routes {
27537
27594
  user_identity_phone_number?: (string | null) | undefined;
27538
27595
  latest_desired_state_synced_with_provider_at?: string | undefined;
27539
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
+ }>;
27540
27602
  full_name?: string | undefined;
27541
27603
  /**
27542
27604
  * @deprecated use email_address. */
@@ -27581,6 +27643,11 @@ interface Routes {
27581
27643
  user_identity_phone_number?: (string | null) | undefined;
27582
27644
  latest_desired_state_synced_with_provider_at?: string | undefined;
27583
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
+ }>;
27584
27651
  full_name?: string | undefined;
27585
27652
  /**
27586
27653
  * @deprecated use email_address. */
@@ -38995,6 +39062,11 @@ interface Routes {
38995
39062
  user_identity_phone_number?: (string | null) | undefined;
38996
39063
  latest_desired_state_synced_with_provider_at?: string | undefined;
38997
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
+ }>;
38998
39070
  full_name?: string | undefined;
38999
39071
  /**
39000
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,GA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AQ,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;
@@ -7435,6 +7455,7 @@ declare const _default: {
7435
7455
  };
7436
7456
  '/acs/systems/list': {
7437
7457
  post: {
7458
+ description: string;
7438
7459
  operationId: string;
7439
7460
  requestBody: {
7440
7461
  content: {
@@ -7442,6 +7463,7 @@ declare const _default: {
7442
7463
  schema: {
7443
7464
  properties: {
7444
7465
  connected_account_id: {
7466
+ description: string;
7445
7467
  format: string;
7446
7468
  type: string;
7447
7469
  };
@@ -7507,6 +7529,7 @@ declare const _default: {
7507
7529
  'x-fern-sdk-group-name': string[];
7508
7530
  'x-fern-sdk-method-name': string;
7509
7531
  'x-fern-sdk-return-value': string;
7532
+ 'x-title': string;
7510
7533
  };
7511
7534
  };
7512
7535
  '/acs/systems/list_compatible_credential_manager_acs_systems': {
@@ -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
  },
@@ -6621,13 +6634,18 @@ export default {
6621
6634
  },
6622
6635
  '/acs/systems/list': {
6623
6636
  post: {
6637
+ description: 'Returns a list of all [access control systems](https://docs.seam.co/latest/capability-guides/access-systems).\n\nTo filter the list of returned access control systems by a specific connected account ID, include the \n`connected_account_id` in the request body. If you omit the `connected_account_id` parameter, the \nresponse includes all access control systems connected to your workspace.',
6624
6638
  operationId: 'acsSystemsListPost',
6625
6639
  requestBody: {
6626
6640
  content: {
6627
6641
  'application/json': {
6628
6642
  schema: {
6629
6643
  properties: {
6630
- connected_account_id: { format: 'uuid', type: 'string' },
6644
+ connected_account_id: {
6645
+ description: 'ID of the connected account by which to filter the list of returned access control systems.',
6646
+ format: 'uuid',
6647
+ type: 'string',
6648
+ },
6631
6649
  },
6632
6650
  type: 'object',
6633
6651
  },
@@ -6667,6 +6685,7 @@ export default {
6667
6685
  'x-fern-sdk-group-name': ['acs', 'systems'],
6668
6686
  'x-fern-sdk-method-name': 'list',
6669
6687
  'x-fern-sdk-return-value': 'acs_systems',
6688
+ 'x-title': 'List ACS Systems',
6670
6689
  },
6671
6690
  },
6672
6691
  '/acs/systems/list_compatible_credential_manager_acs_systems': {