@seamapi/types 1.84.0 → 1.85.1

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.
@@ -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.ZodBoolean]>>, Record<string, string | boolean>, Record<string, string | boolean>>;
18
+ custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>;
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 | boolean>;
37
+ custom_metadata: Record<string, string | boolean | null>;
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 | boolean>;
57
+ custom_metadata: Record<string, string | boolean | null>;
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.ZodBoolean]>>, Record<string, string | boolean>, Record<string, string | boolean>>;
66
+ declare const custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>;
67
67
  type CustomMetadata = z.infer<typeof custom_metadata>;
68
68
 
69
69
  declare const schemas_connect_webview: typeof connect_webview;
@@ -589,10 +589,20 @@ declare const _default: {
589
589
  };
590
590
  custom_metadata: {
591
591
  additionalProperties: {
592
+ nullable: boolean;
592
593
  oneOf: ({
593
594
  maxLength: number;
594
595
  type: string;
596
+ format?: never;
597
+ nullable?: never;
598
+ } | {
599
+ type: string;
600
+ maxLength?: never;
601
+ format?: never;
602
+ nullable?: never;
595
603
  } | {
604
+ format: string;
605
+ nullable: boolean;
596
606
  type: string;
597
607
  maxLength?: never;
598
608
  })[];
@@ -660,10 +670,20 @@ declare const _default: {
660
670
  };
661
671
  custom_metadata: {
662
672
  additionalProperties: {
673
+ nullable: boolean;
663
674
  oneOf: ({
664
675
  maxLength: number;
665
676
  type: string;
677
+ format?: never;
678
+ nullable?: never;
679
+ } | {
680
+ type: string;
681
+ maxLength?: never;
682
+ format?: never;
683
+ nullable?: never;
666
684
  } | {
685
+ format: string;
686
+ nullable: boolean;
667
687
  type: string;
668
688
  maxLength?: never;
669
689
  })[];
@@ -9940,10 +9960,20 @@ declare const _default: {
9940
9960
  };
9941
9961
  custom_metadata: {
9942
9962
  additionalProperties: {
9963
+ nullable: boolean;
9943
9964
  oneOf: ({
9944
9965
  maxLength: number;
9945
9966
  type: string;
9967
+ format?: never;
9968
+ nullable?: never;
9969
+ } | {
9970
+ type: string;
9971
+ maxLength?: never;
9972
+ format?: never;
9973
+ nullable?: never;
9946
9974
  } | {
9975
+ format: string;
9976
+ nullable: boolean;
9947
9977
  type: string;
9948
9978
  maxLength?: never;
9949
9979
  })[];
@@ -10165,6 +10195,29 @@ declare const _default: {
10165
10195
  'application/json': {
10166
10196
  schema: {
10167
10197
  properties: {
10198
+ custom_metadata_has: {
10199
+ additionalProperties: {
10200
+ nullable: boolean;
10201
+ oneOf: ({
10202
+ maxLength: number;
10203
+ type: string;
10204
+ format?: never;
10205
+ nullable?: never;
10206
+ } | {
10207
+ type: string;
10208
+ maxLength?: never;
10209
+ format?: never;
10210
+ nullable?: never;
10211
+ } | {
10212
+ format: string;
10213
+ nullable: boolean;
10214
+ type: string;
10215
+ maxLength?: never;
10216
+ })[];
10217
+ };
10218
+ description: string;
10219
+ type: string;
10220
+ };
10168
10221
  user_identifier_key: {
10169
10222
  type: string;
10170
10223
  };
@@ -10416,60 +10469,42 @@ declare const _default: {
10416
10469
  };
10417
10470
  };
10418
10471
  '/connected_accounts/list': {
10419
- get: {
10472
+ post: {
10420
10473
  operationId: string;
10421
- responses: {
10422
- 200: {
10423
- content: {
10424
- 'application/json': {
10425
- schema: {
10426
- properties: {
10427
- connected_accounts: {
10428
- items: {
10429
- $ref: string;
10430
- };
10431
- type: string;
10432
- };
10433
- ok: {
10434
- type: string;
10474
+ requestBody: {
10475
+ content: {
10476
+ 'application/json': {
10477
+ schema: {
10478
+ properties: {
10479
+ custom_metadata_has: {
10480
+ additionalProperties: {
10481
+ nullable: boolean;
10482
+ oneOf: ({
10483
+ maxLength: number;
10484
+ type: string;
10485
+ format?: never;
10486
+ nullable?: never;
10487
+ } | {
10488
+ type: string;
10489
+ maxLength?: never;
10490
+ format?: never;
10491
+ nullable?: never;
10492
+ } | {
10493
+ format: string;
10494
+ nullable: boolean;
10495
+ type: string;
10496
+ maxLength?: never;
10497
+ })[];
10435
10498
  };
10499
+ description: string;
10500
+ type: string;
10436
10501
  };
10437
- required: string[];
10438
- type: string;
10439
10502
  };
10503
+ type: string;
10440
10504
  };
10441
10505
  };
10442
- description: string;
10443
- };
10444
- 400: {
10445
- description: string;
10446
- };
10447
- 401: {
10448
- description: string;
10449
10506
  };
10450
10507
  };
10451
- security: ({
10452
- access_token: never[];
10453
- seam_workspace: never[];
10454
- seam_client_session_token?: never;
10455
- client_session_token?: never;
10456
- } | {
10457
- seam_client_session_token: never[];
10458
- access_token?: never;
10459
- seam_workspace?: never;
10460
- client_session_token?: never;
10461
- } | {
10462
- client_session_token: never[];
10463
- access_token?: never;
10464
- seam_workspace?: never;
10465
- seam_client_session_token?: never;
10466
- })[];
10467
- summary: string;
10468
- tags: string[];
10469
- 'x-fern-ignore': boolean;
10470
- };
10471
- post: {
10472
- operationId: string;
10473
10508
  responses: {
10474
10509
  200: {
10475
10510
  content: {
@@ -10538,6 +10573,28 @@ declare const _default: {
10538
10573
  format: string;
10539
10574
  type: string;
10540
10575
  };
10576
+ custom_metadata: {
10577
+ additionalProperties: {
10578
+ nullable: boolean;
10579
+ oneOf: ({
10580
+ maxLength: number;
10581
+ type: string;
10582
+ format?: never;
10583
+ nullable?: never;
10584
+ } | {
10585
+ type: string;
10586
+ maxLength?: never;
10587
+ format?: never;
10588
+ nullable?: never;
10589
+ } | {
10590
+ format: string;
10591
+ nullable: boolean;
10592
+ type: string;
10593
+ maxLength?: never;
10594
+ })[];
10595
+ };
10596
+ type: string;
10597
+ };
10541
10598
  };
10542
10599
  required: string[];
10543
10600
  type: string;
@@ -18163,7 +18220,7 @@ interface Routes {
18163
18220
  custom_redirect_failure_url?: string | undefined;
18164
18221
  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' | 'google_nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'seam_bridge' | 'yale_access' | 'hid_cm'> | undefined;
18165
18222
  provider_category?: ('stable' | 'consumer_smartlocks' | 'internal_beta') | undefined;
18166
- custom_metadata?: Record<string, string | boolean> | undefined;
18223
+ custom_metadata?: Record<string, string | boolean | null> | undefined;
18167
18224
  automatically_manage_new_devices?: boolean | undefined;
18168
18225
  wait_for_device_creation?: boolean | undefined;
18169
18226
  };
@@ -18185,7 +18242,7 @@ interface Routes {
18185
18242
  status: 'pending' | 'failed' | 'authorized';
18186
18243
  custom_redirect_url: string | null;
18187
18244
  custom_redirect_failure_url: string | null;
18188
- custom_metadata: Record<string, string | boolean>;
18245
+ custom_metadata: Record<string, string | boolean | null>;
18189
18246
  automatically_manage_new_devices: boolean;
18190
18247
  wait_for_device_creation: boolean;
18191
18248
  authorized_at: string | null;
@@ -18229,7 +18286,7 @@ interface Routes {
18229
18286
  status: 'pending' | 'failed' | 'authorized';
18230
18287
  custom_redirect_url: string | null;
18231
18288
  custom_redirect_failure_url: string | null;
18232
- custom_metadata: Record<string, string | boolean>;
18289
+ custom_metadata: Record<string, string | boolean | null>;
18233
18290
  automatically_manage_new_devices: boolean;
18234
18291
  wait_for_device_creation: boolean;
18235
18292
  authorized_at: string | null;
@@ -18244,6 +18301,8 @@ interface Routes {
18244
18301
  jsonBody: {};
18245
18302
  commonParams: {
18246
18303
  user_identifier_key?: string | undefined;
18304
+ /** Returns devices where the webview's custom_metadata contains all of the provided key/value pairs. */
18305
+ custom_metadata_has?: Record<string, string | boolean | null> | undefined;
18247
18306
  };
18248
18307
  formData: {};
18249
18308
  jsonResponse: {
@@ -18262,7 +18321,7 @@ interface Routes {
18262
18321
  status: 'pending' | 'failed' | 'authorized';
18263
18322
  custom_redirect_url: string | null;
18264
18323
  custom_redirect_failure_url: string | null;
18265
- custom_metadata: Record<string, string | boolean>;
18324
+ custom_metadata: Record<string, string | boolean | null>;
18266
18325
  automatically_manage_new_devices: boolean;
18267
18326
  wait_for_device_creation: boolean;
18268
18327
  authorized_at: string | null;
@@ -18320,7 +18379,7 @@ interface Routes {
18320
18379
  account_type_display_name: string;
18321
18380
  errors?: any;
18322
18381
  warnings?: any;
18323
- custom_metadata?: Record<string, string | boolean> | undefined;
18382
+ custom_metadata?: Record<string, string | boolean | null> | undefined;
18324
18383
  automatically_manage_new_devices: boolean;
18325
18384
  };
18326
18385
  };
@@ -18330,7 +18389,10 @@ interface Routes {
18330
18389
  method: 'GET' | 'POST';
18331
18390
  queryParams: {};
18332
18391
  jsonBody: {};
18333
- commonParams: {};
18392
+ commonParams: {
18393
+ /** Returns devices where the account's custom_metadata contains all of the provided key/value pairs. */
18394
+ custom_metadata_has?: Record<string, string | boolean | null> | undefined;
18395
+ };
18334
18396
  formData: {};
18335
18397
  jsonResponse: {
18336
18398
  connected_accounts: Array<{
@@ -18347,7 +18409,7 @@ interface Routes {
18347
18409
  account_type_display_name: string;
18348
18410
  errors?: any;
18349
18411
  warnings?: any;
18350
- custom_metadata?: Record<string, string | boolean> | undefined;
18412
+ custom_metadata?: Record<string, string | boolean | null> | undefined;
18351
18413
  automatically_manage_new_devices: boolean;
18352
18414
  }>;
18353
18415
  };
@@ -18359,6 +18421,7 @@ interface Routes {
18359
18421
  jsonBody: {
18360
18422
  connected_account_id: string;
18361
18423
  automatically_manage_new_devices?: boolean | undefined;
18424
+ custom_metadata?: Record<string, string | boolean | null> | undefined;
18362
18425
  };
18363
18426
  commonParams: {};
18364
18427
  formData: {};
@@ -18377,7 +18440,7 @@ interface Routes {
18377
18440
  account_type_display_name: string;
18378
18441
  errors?: any;
18379
18442
  warnings?: any;
18380
- custom_metadata?: Record<string, string | boolean> | undefined;
18443
+ custom_metadata?: Record<string, string | boolean | null> | undefined;
18381
18444
  automatically_manage_new_devices: boolean;
18382
18445
  };
18383
18446
  };
@@ -515,10 +515,20 @@ declare const _default: {
515
515
  };
516
516
  custom_metadata: {
517
517
  additionalProperties: {
518
+ nullable: boolean;
518
519
  oneOf: ({
519
520
  maxLength: number;
520
521
  type: string;
522
+ format?: never;
523
+ nullable?: never;
524
+ } | {
525
+ type: string;
526
+ maxLength?: never;
527
+ format?: never;
528
+ nullable?: never;
521
529
  } | {
530
+ format: string;
531
+ nullable: boolean;
522
532
  type: string;
523
533
  maxLength?: never;
524
534
  })[];
@@ -586,10 +596,20 @@ declare const _default: {
586
596
  };
587
597
  custom_metadata: {
588
598
  additionalProperties: {
599
+ nullable: boolean;
589
600
  oneOf: ({
590
601
  maxLength: number;
591
602
  type: string;
603
+ format?: never;
604
+ nullable?: never;
605
+ } | {
606
+ type: string;
607
+ maxLength?: never;
608
+ format?: never;
609
+ nullable?: never;
592
610
  } | {
611
+ format: string;
612
+ nullable: boolean;
593
613
  type: string;
594
614
  maxLength?: never;
595
615
  })[];
@@ -9866,10 +9886,20 @@ declare const _default: {
9866
9886
  };
9867
9887
  custom_metadata: {
9868
9888
  additionalProperties: {
9889
+ nullable: boolean;
9869
9890
  oneOf: ({
9870
9891
  maxLength: number;
9871
9892
  type: string;
9893
+ format?: never;
9894
+ nullable?: never;
9895
+ } | {
9896
+ type: string;
9897
+ maxLength?: never;
9898
+ format?: never;
9899
+ nullable?: never;
9872
9900
  } | {
9901
+ format: string;
9902
+ nullable: boolean;
9873
9903
  type: string;
9874
9904
  maxLength?: never;
9875
9905
  })[];
@@ -10091,6 +10121,29 @@ declare const _default: {
10091
10121
  'application/json': {
10092
10122
  schema: {
10093
10123
  properties: {
10124
+ custom_metadata_has: {
10125
+ additionalProperties: {
10126
+ nullable: boolean;
10127
+ oneOf: ({
10128
+ maxLength: number;
10129
+ type: string;
10130
+ format?: never;
10131
+ nullable?: never;
10132
+ } | {
10133
+ type: string;
10134
+ maxLength?: never;
10135
+ format?: never;
10136
+ nullable?: never;
10137
+ } | {
10138
+ format: string;
10139
+ nullable: boolean;
10140
+ type: string;
10141
+ maxLength?: never;
10142
+ })[];
10143
+ };
10144
+ description: string;
10145
+ type: string;
10146
+ };
10094
10147
  user_identifier_key: {
10095
10148
  type: string;
10096
10149
  };
@@ -10342,60 +10395,42 @@ declare const _default: {
10342
10395
  };
10343
10396
  };
10344
10397
  '/connected_accounts/list': {
10345
- get: {
10398
+ post: {
10346
10399
  operationId: string;
10347
- responses: {
10348
- 200: {
10349
- content: {
10350
- 'application/json': {
10351
- schema: {
10352
- properties: {
10353
- connected_accounts: {
10354
- items: {
10355
- $ref: string;
10356
- };
10357
- type: string;
10358
- };
10359
- ok: {
10360
- type: string;
10400
+ requestBody: {
10401
+ content: {
10402
+ 'application/json': {
10403
+ schema: {
10404
+ properties: {
10405
+ custom_metadata_has: {
10406
+ additionalProperties: {
10407
+ nullable: boolean;
10408
+ oneOf: ({
10409
+ maxLength: number;
10410
+ type: string;
10411
+ format?: never;
10412
+ nullable?: never;
10413
+ } | {
10414
+ type: string;
10415
+ maxLength?: never;
10416
+ format?: never;
10417
+ nullable?: never;
10418
+ } | {
10419
+ format: string;
10420
+ nullable: boolean;
10421
+ type: string;
10422
+ maxLength?: never;
10423
+ })[];
10361
10424
  };
10425
+ description: string;
10426
+ type: string;
10362
10427
  };
10363
- required: string[];
10364
- type: string;
10365
10428
  };
10429
+ type: string;
10366
10430
  };
10367
10431
  };
10368
- description: string;
10369
- };
10370
- 400: {
10371
- description: string;
10372
- };
10373
- 401: {
10374
- description: string;
10375
10432
  };
10376
10433
  };
10377
- security: ({
10378
- access_token: never[];
10379
- seam_workspace: never[];
10380
- seam_client_session_token?: never;
10381
- client_session_token?: never;
10382
- } | {
10383
- seam_client_session_token: never[];
10384
- access_token?: never;
10385
- seam_workspace?: never;
10386
- client_session_token?: never;
10387
- } | {
10388
- client_session_token: never[];
10389
- access_token?: never;
10390
- seam_workspace?: never;
10391
- seam_client_session_token?: never;
10392
- })[];
10393
- summary: string;
10394
- tags: string[];
10395
- 'x-fern-ignore': boolean;
10396
- };
10397
- post: {
10398
- operationId: string;
10399
10434
  responses: {
10400
10435
  200: {
10401
10436
  content: {
@@ -10464,6 +10499,28 @@ declare const _default: {
10464
10499
  format: string;
10465
10500
  type: string;
10466
10501
  };
10502
+ custom_metadata: {
10503
+ additionalProperties: {
10504
+ nullable: boolean;
10505
+ oneOf: ({
10506
+ maxLength: number;
10507
+ type: string;
10508
+ format?: never;
10509
+ nullable?: never;
10510
+ } | {
10511
+ type: string;
10512
+ maxLength?: never;
10513
+ format?: never;
10514
+ nullable?: never;
10515
+ } | {
10516
+ format: string;
10517
+ nullable: boolean;
10518
+ type: string;
10519
+ maxLength?: never;
10520
+ })[];
10521
+ };
10522
+ type: string;
10523
+ };
10467
10524
  };
10468
10525
  required: string[];
10469
10526
  type: string;