@seamapi/types 1.81.0 → 1.83.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.
Files changed (35) hide show
  1. package/dist/connect.cjs +84 -23
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +183 -37
  4. package/lib/seam/connect/openapi.d.ts +133 -26
  5. package/lib/seam/connect/openapi.js +82 -18
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +46 -7
  8. package/lib/seam/connect/stable/models/connect-webview.d.ts +3 -3
  9. package/lib/seam/connect/stable/models/custom-metadata.d.ts +1 -1
  10. package/lib/seam/connect/stable/models/custom-metadata.js +1 -1
  11. package/lib/seam/connect/stable/models/custom-metadata.js.map +1 -1
  12. package/lib/seam/connect/unstable/models/acs/user.d.ts +9 -0
  13. package/lib/seam/connect/unstable/models/acs/user.js +4 -9
  14. package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
  15. package/lib/seam/connect/unstable/models/index.d.ts +1 -0
  16. package/lib/seam/connect/unstable/models/index.js +1 -0
  17. package/lib/seam/connect/unstable/models/index.js.map +1 -1
  18. package/lib/seam/connect/unstable/models/phone-number.d.ts +2 -0
  19. package/lib/seam/connect/unstable/models/phone-number.js +11 -0
  20. package/lib/seam/connect/unstable/models/phone-number.js.map +1 -0
  21. package/lib/seam/connect/unstable/models/user-identity.d.ts +3 -0
  22. package/lib/seam/connect/unstable/models/user-identity.js +2 -0
  23. package/lib/seam/connect/unstable/models/user-identity.js.map +1 -1
  24. package/lib/seam/connect/unstable/schemas.d.ts +1 -1
  25. package/lib/seam/connect/unstable/schemas.js +1 -1
  26. package/lib/seam/connect/unstable/schemas.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/openapi.ts +82 -18
  29. package/src/lib/seam/connect/route-types.ts +46 -15
  30. package/src/lib/seam/connect/stable/models/custom-metadata.ts +1 -4
  31. package/src/lib/seam/connect/unstable/models/acs/user.ts +4 -13
  32. package/src/lib/seam/connect/unstable/models/index.ts +1 -0
  33. package/src/lib/seam/connect/unstable/models/phone-number.ts +14 -0
  34. package/src/lib/seam/connect/unstable/models/user-identity.ts +3 -0
  35. package/src/lib/seam/connect/unstable/schemas.ts +1 -0
@@ -15,7 +15,7 @@ declare const connect_webview: z.ZodObject<{
15
15
  status: z.ZodEnum<["pending", "failed", "authorized"]>;
16
16
  custom_redirect_url: z.ZodNullable<z.ZodString>;
17
17
  custom_redirect_failure_url: z.ZodNullable<z.ZodString>;
18
- custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull, z.ZodBoolean]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
18
+ custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>, Record<string, string | boolean>, Record<string, string | boolean>>;
19
19
  automatically_manage_new_devices: z.ZodBoolean;
20
20
  wait_for_device_creation: z.ZodBoolean;
21
21
  authorized_at: z.ZodNullable<z.ZodString>;
@@ -34,7 +34,7 @@ declare const connect_webview: z.ZodObject<{
34
34
  login_successful: boolean;
35
35
  custom_redirect_url: string | null;
36
36
  custom_redirect_failure_url: string | null;
37
- custom_metadata: Record<string, string | number | boolean | null>;
37
+ custom_metadata: Record<string, string | boolean>;
38
38
  automatically_manage_new_devices: boolean;
39
39
  wait_for_device_creation: boolean;
40
40
  authorized_at: string | null;
@@ -54,7 +54,7 @@ declare const connect_webview: z.ZodObject<{
54
54
  login_successful: boolean;
55
55
  custom_redirect_url: string | null;
56
56
  custom_redirect_failure_url: string | null;
57
- custom_metadata: Record<string, string | number | boolean | null>;
57
+ custom_metadata: Record<string, string | boolean>;
58
58
  automatically_manage_new_devices: boolean;
59
59
  wait_for_device_creation: boolean;
60
60
  authorized_at: string | null;
@@ -63,7 +63,7 @@ declare const connect_webview: z.ZodObject<{
63
63
  }>;
64
64
  type ConnectWebview = z.infer<typeof connect_webview>;
65
65
 
66
- declare const custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull, z.ZodBoolean]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
66
+ declare const custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>, Record<string, string | boolean>, Record<string, string | boolean>>;
67
67
  type CustomMetadata = z.infer<typeof custom_metadata>;
68
68
 
69
69
  declare const schemas_connect_webview: typeof connect_webview;
@@ -325,6 +325,15 @@ declare const _default: {
325
325
  nullable: boolean;
326
326
  type: string;
327
327
  };
328
+ user_identity_email_address: {
329
+ type: string;
330
+ };
331
+ user_identity_id: {
332
+ type: string;
333
+ };
334
+ user_identity_phone_number: {
335
+ type: string;
336
+ };
328
337
  workspace_id: {
329
338
  format: string;
330
339
  type: string;
@@ -580,20 +589,10 @@ declare const _default: {
580
589
  };
581
590
  custom_metadata: {
582
591
  additionalProperties: {
583
- nullable: boolean;
584
592
  oneOf: ({
585
593
  maxLength: number;
586
594
  type: string;
587
- format?: never;
588
- nullable?: never;
589
- } | {
590
- type: string;
591
- maxLength?: never;
592
- format?: never;
593
- nullable?: never;
594
595
  } | {
595
- format: string;
596
- nullable: boolean;
597
596
  type: string;
598
597
  maxLength?: never;
599
598
  })[];
@@ -661,15 +660,12 @@ declare const _default: {
661
660
  };
662
661
  custom_metadata: {
663
662
  additionalProperties: {
664
- nullable: boolean;
665
663
  oneOf: ({
664
+ maxLength: number;
666
665
  type: string;
667
- format?: never;
668
- nullable?: never;
669
666
  } | {
670
- format: string;
671
- nullable: boolean;
672
667
  type: string;
668
+ maxLength?: never;
673
669
  })[];
674
670
  };
675
671
  type: string;
@@ -8490,10 +8486,17 @@ declare const _default: {
8490
8486
  format: string;
8491
8487
  type: string;
8492
8488
  };
8489
+ user_identity_email_address: {
8490
+ type: string;
8491
+ };
8493
8492
  user_identity_id: {
8494
8493
  format: string;
8495
8494
  type: string;
8496
8495
  };
8496
+ user_identity_phone_number: {
8497
+ nullable: boolean;
8498
+ type: string;
8499
+ };
8497
8500
  };
8498
8501
  type: string;
8499
8502
  };
@@ -8557,6 +8560,100 @@ declare const _default: {
8557
8560
  'x-fern-sdk-method-name': string;
8558
8561
  };
8559
8562
  };
8563
+ '/acs/users/list_accessible_entrances': {
8564
+ post: {
8565
+ operationId: string;
8566
+ requestBody: {
8567
+ content: {
8568
+ 'application/json': {
8569
+ schema: {
8570
+ properties: {
8571
+ acs_user_id: {
8572
+ format: string;
8573
+ type: string;
8574
+ };
8575
+ };
8576
+ required: string[];
8577
+ type: string;
8578
+ };
8579
+ };
8580
+ };
8581
+ };
8582
+ responses: {
8583
+ 200: {
8584
+ content: {
8585
+ 'application/json': {
8586
+ schema: {
8587
+ properties: {
8588
+ acs_entrances: {
8589
+ items: {
8590
+ properties: {
8591
+ acs_entrance_id: {
8592
+ format: string;
8593
+ type: string;
8594
+ };
8595
+ acs_system_id: {
8596
+ format: string;
8597
+ type: string;
8598
+ };
8599
+ created_at: {
8600
+ format: string;
8601
+ type: string;
8602
+ };
8603
+ display_name: {
8604
+ type: string;
8605
+ };
8606
+ };
8607
+ required: string[];
8608
+ type: string;
8609
+ };
8610
+ type: string;
8611
+ };
8612
+ ok: {
8613
+ type: string;
8614
+ };
8615
+ };
8616
+ required: string[];
8617
+ type: string;
8618
+ };
8619
+ };
8620
+ };
8621
+ description: string;
8622
+ };
8623
+ 400: {
8624
+ description: string;
8625
+ };
8626
+ 401: {
8627
+ description: string;
8628
+ };
8629
+ };
8630
+ security: ({
8631
+ client_session: never[];
8632
+ pat_with_workspace?: never;
8633
+ console_session?: never;
8634
+ api_key?: never;
8635
+ } | {
8636
+ pat_with_workspace: never[];
8637
+ client_session?: never;
8638
+ console_session?: never;
8639
+ api_key?: never;
8640
+ } | {
8641
+ console_session: never[];
8642
+ client_session?: never;
8643
+ pat_with_workspace?: never;
8644
+ api_key?: never;
8645
+ } | {
8646
+ api_key: never[];
8647
+ client_session?: never;
8648
+ pat_with_workspace?: never;
8649
+ console_session?: never;
8650
+ })[];
8651
+ summary: string;
8652
+ tags: string[];
8653
+ 'x-fern-sdk-group-name': string[];
8654
+ 'x-fern-sdk-method-name': string;
8655
+ };
8656
+ };
8560
8657
  '/acs/users/remove_from_access_group': {
8561
8658
  post: {
8562
8659
  operationId: string;
@@ -9843,22 +9940,12 @@ declare const _default: {
9843
9940
  };
9844
9941
  custom_metadata: {
9845
9942
  additionalProperties: {
9846
- nullable: boolean;
9847
9943
  oneOf: ({
9848
9944
  maxLength: number;
9849
9945
  type: string;
9850
- format?: never;
9851
- nullable?: never;
9852
9946
  } | {
9853
9947
  type: string;
9854
9948
  maxLength?: never;
9855
- format?: never;
9856
- nullable?: never;
9857
- } | {
9858
- format: string;
9859
- nullable: boolean;
9860
- type: string;
9861
- maxLength?: never;
9862
9949
  })[];
9863
9950
  };
9864
9951
  type: string;
@@ -14684,6 +14771,10 @@ declare const _default: {
14684
14771
  nullable: boolean;
14685
14772
  type: string;
14686
14773
  };
14774
+ phone_number: {
14775
+ nullable: boolean;
14776
+ type: string;
14777
+ };
14687
14778
  user_identity_key: {
14688
14779
  minLength: number;
14689
14780
  nullable: boolean;
@@ -14724,6 +14815,10 @@ declare const _default: {
14724
14815
  nullable: boolean;
14725
14816
  type: string;
14726
14817
  };
14818
+ phone_number: {
14819
+ nullable: boolean;
14820
+ type: string;
14821
+ };
14727
14822
  user_identity_id: {
14728
14823
  format: string;
14729
14824
  type: string;
@@ -15094,6 +15189,10 @@ declare const _default: {
15094
15189
  nullable: boolean;
15095
15190
  type: string;
15096
15191
  };
15192
+ phone_number: {
15193
+ nullable: boolean;
15194
+ type: string;
15195
+ };
15097
15196
  user_identity_id: {
15098
15197
  format: string;
15099
15198
  type: string;
@@ -15316,6 +15415,10 @@ declare const _default: {
15316
15415
  nullable: boolean;
15317
15416
  type: string;
15318
15417
  };
15418
+ phone_number: {
15419
+ nullable: boolean;
15420
+ type: string;
15421
+ };
15319
15422
  user_identity_id: {
15320
15423
  format: string;
15321
15424
  type: string;
@@ -15407,6 +15510,10 @@ declare const _default: {
15407
15510
  nullable: boolean;
15408
15511
  type: string;
15409
15512
  };
15513
+ phone_number: {
15514
+ nullable: boolean;
15515
+ type: string;
15516
+ };
15410
15517
  user_identity_id: {
15411
15518
  format: string;
15412
15519
  type: string;
@@ -15611,7 +15718,7 @@ declare const _default: {
15611
15718
  console_session?: never;
15612
15719
  })[];
15613
15720
  summary: string;
15614
- tags: never[];
15721
+ tags: string[];
15615
15722
  'x-fern-sdk-group-name': string[];
15616
15723
  'x-fern-sdk-method-name': string;
15617
15724
  };
@@ -17261,6 +17368,9 @@ interface Routes {
17261
17368
  starts_at: string;
17262
17369
  ends_at: string;
17263
17370
  } | undefined;
17371
+ user_identity_id?: string | undefined;
17372
+ user_identity_email_address?: string | undefined;
17373
+ user_identity_phone_number?: string | undefined;
17264
17374
  full_name?: string | undefined;
17265
17375
  /** Deprecated: use email_address. */
17266
17376
  email?: string | undefined;
@@ -17663,6 +17773,9 @@ interface Routes {
17663
17773
  starts_at: string;
17664
17774
  ends_at: string;
17665
17775
  } | undefined;
17776
+ user_identity_id?: string | undefined;
17777
+ user_identity_email_address?: string | undefined;
17778
+ user_identity_phone_number?: string | undefined;
17666
17779
  full_name?: string | undefined;
17667
17780
  /** Deprecated: use email_address. */
17668
17781
  email?: string | undefined;
@@ -17706,6 +17819,9 @@ interface Routes {
17706
17819
  starts_at: string;
17707
17820
  ends_at: string;
17708
17821
  } | undefined;
17822
+ user_identity_id?: string | undefined;
17823
+ user_identity_email_address?: string | undefined;
17824
+ user_identity_phone_number?: string | undefined;
17709
17825
  full_name?: string | undefined;
17710
17826
  /** Deprecated: use email_address. */
17711
17827
  email?: string | undefined;
@@ -17721,6 +17837,8 @@ interface Routes {
17721
17837
  jsonBody: {};
17722
17838
  commonParams: {
17723
17839
  user_identity_id?: string | undefined;
17840
+ user_identity_phone_number?: string | undefined;
17841
+ user_identity_email_address?: string | undefined;
17724
17842
  acs_system_id?: string | undefined;
17725
17843
  };
17726
17844
  formData: {};
@@ -17739,6 +17857,9 @@ interface Routes {
17739
17857
  starts_at: string;
17740
17858
  ends_at: string;
17741
17859
  } | undefined;
17860
+ user_identity_id?: string | undefined;
17861
+ user_identity_email_address?: string | undefined;
17862
+ user_identity_phone_number?: string | undefined;
17742
17863
  full_name?: string | undefined;
17743
17864
  /** Deprecated: use email_address. */
17744
17865
  email?: string | undefined;
@@ -17747,6 +17868,24 @@ interface Routes {
17747
17868
  }>;
17748
17869
  };
17749
17870
  };
17871
+ '/acs/users/list_accessible_entrances': {
17872
+ route: '/acs/users/list_accessible_entrances';
17873
+ method: 'GET' | 'POST';
17874
+ queryParams: {};
17875
+ jsonBody: {};
17876
+ commonParams: {
17877
+ acs_user_id: string;
17878
+ };
17879
+ formData: {};
17880
+ jsonResponse: {
17881
+ acs_entrances: Array<{
17882
+ acs_entrance_id: string;
17883
+ display_name: string;
17884
+ acs_system_id: string;
17885
+ created_at: string;
17886
+ }>;
17887
+ };
17888
+ };
17750
17889
  '/acs/users/remove_from_access_group': {
17751
17890
  route: '/acs/users/remove_from_access_group';
17752
17891
  method: 'DELETE' | 'POST';
@@ -18024,7 +18163,7 @@ interface Routes {
18024
18163
  custom_redirect_failure_url?: string | undefined;
18025
18164
  accepted_providers?: Array<'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'seam_bridge' | 'yale_access' | 'hid_cm'> | undefined;
18026
18165
  provider_category?: ('stable' | 'consumer_smartlocks' | 'internal_beta') | undefined;
18027
- custom_metadata?: Record<string, string | number | null | boolean> | undefined;
18166
+ custom_metadata?: Record<string, string | boolean> | undefined;
18028
18167
  automatically_manage_new_devices?: boolean | undefined;
18029
18168
  wait_for_device_creation?: boolean | undefined;
18030
18169
  };
@@ -18046,7 +18185,7 @@ interface Routes {
18046
18185
  status: 'pending' | 'failed' | 'authorized';
18047
18186
  custom_redirect_url: string | null;
18048
18187
  custom_redirect_failure_url: string | null;
18049
- custom_metadata: Record<string, string | number | null | boolean>;
18188
+ custom_metadata: Record<string, string | boolean>;
18050
18189
  automatically_manage_new_devices: boolean;
18051
18190
  wait_for_device_creation: boolean;
18052
18191
  authorized_at: string | null;
@@ -18090,7 +18229,7 @@ interface Routes {
18090
18229
  status: 'pending' | 'failed' | 'authorized';
18091
18230
  custom_redirect_url: string | null;
18092
18231
  custom_redirect_failure_url: string | null;
18093
- custom_metadata: Record<string, string | number | null | boolean>;
18232
+ custom_metadata: Record<string, string | boolean>;
18094
18233
  automatically_manage_new_devices: boolean;
18095
18234
  wait_for_device_creation: boolean;
18096
18235
  authorized_at: string | null;
@@ -18123,7 +18262,7 @@ interface Routes {
18123
18262
  status: 'pending' | 'failed' | 'authorized';
18124
18263
  custom_redirect_url: string | null;
18125
18264
  custom_redirect_failure_url: string | null;
18126
- custom_metadata: Record<string, string | number | null | boolean>;
18265
+ custom_metadata: Record<string, string | boolean>;
18127
18266
  automatically_manage_new_devices: boolean;
18128
18267
  wait_for_device_creation: boolean;
18129
18268
  authorized_at: string | null;
@@ -18181,7 +18320,7 @@ interface Routes {
18181
18320
  account_type_display_name: string;
18182
18321
  errors?: any;
18183
18322
  warnings?: any;
18184
- custom_metadata?: Record<string, string | number | boolean | null> | undefined;
18323
+ custom_metadata?: Record<string, string | boolean> | undefined;
18185
18324
  automatically_manage_new_devices: boolean;
18186
18325
  };
18187
18326
  };
@@ -18208,7 +18347,7 @@ interface Routes {
18208
18347
  account_type_display_name: string;
18209
18348
  errors?: any;
18210
18349
  warnings?: any;
18211
- custom_metadata?: Record<string, string | number | boolean | null> | undefined;
18350
+ custom_metadata?: Record<string, string | boolean> | undefined;
18212
18351
  automatically_manage_new_devices: boolean;
18213
18352
  }>;
18214
18353
  };
@@ -18238,7 +18377,7 @@ interface Routes {
18238
18377
  account_type_display_name: string;
18239
18378
  errors?: any;
18240
18379
  warnings?: any;
18241
- custom_metadata?: Record<string, string | number | boolean | null> | undefined;
18380
+ custom_metadata?: Record<string, string | boolean> | undefined;
18242
18381
  automatically_manage_new_devices: boolean;
18243
18382
  };
18244
18383
  };
@@ -23800,6 +23939,7 @@ interface Routes {
23800
23939
  commonParams: {
23801
23940
  user_identity_key?: (string | null) | undefined;
23802
23941
  email_address?: (string | null) | undefined;
23942
+ phone_number?: (string | null) | undefined;
23803
23943
  full_name?: (string | null) | undefined;
23804
23944
  };
23805
23945
  formData: {};
@@ -23808,6 +23948,7 @@ interface Routes {
23808
23948
  user_identity_id: string;
23809
23949
  user_identity_key: string | null;
23810
23950
  email_address: string | null;
23951
+ phone_number: string | null;
23811
23952
  display_name: string;
23812
23953
  full_name: string | null;
23813
23954
  created_at: string;
@@ -23893,6 +24034,7 @@ interface Routes {
23893
24034
  user_identity_id: string;
23894
24035
  user_identity_key: string | null;
23895
24036
  email_address: string | null;
24037
+ phone_number: string | null;
23896
24038
  display_name: string;
23897
24039
  full_name: string | null;
23898
24040
  created_at: string;
@@ -23924,6 +24066,7 @@ interface Routes {
23924
24066
  user_identity_id: string;
23925
24067
  user_identity_key: string | null;
23926
24068
  email_address: string | null;
24069
+ phone_number: string | null;
23927
24070
  display_name: string;
23928
24071
  full_name: string | null;
23929
24072
  created_at: string;
@@ -24443,6 +24586,9 @@ interface Routes {
24443
24586
  starts_at: string;
24444
24587
  ends_at: string;
24445
24588
  } | undefined;
24589
+ user_identity_id?: string | undefined;
24590
+ user_identity_email_address?: string | undefined;
24591
+ user_identity_phone_number?: string | undefined;
24446
24592
  full_name?: string | undefined;
24447
24593
  /** Deprecated: use email_address. */
24448
24594
  email?: string | undefined;