@seamapi/types 1.395.2 → 1.395.3

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.
@@ -10393,6 +10393,221 @@ declare const connect_webview: z.ZodObject<{
10393
10393
  }>;
10394
10394
  type ConnectWebview = z.infer<typeof connect_webview>;
10395
10395
 
10396
+ declare const connected_account_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
10397
+ created_at: z.ZodString;
10398
+ message: z.ZodString;
10399
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
10400
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
10401
+ }, {
10402
+ error_code: z.ZodLiteral<"account_disconnected">;
10403
+ }>, "strip", z.ZodTypeAny, {
10404
+ message: string;
10405
+ created_at: string;
10406
+ error_code: "account_disconnected";
10407
+ is_connected_account_error?: boolean | undefined;
10408
+ is_bridge_error?: boolean | undefined;
10409
+ }, {
10410
+ message: string;
10411
+ created_at: string;
10412
+ error_code: "account_disconnected";
10413
+ is_connected_account_error?: boolean | undefined;
10414
+ is_bridge_error?: boolean | undefined;
10415
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10416
+ created_at: z.ZodString;
10417
+ message: z.ZodString;
10418
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
10419
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
10420
+ }, {
10421
+ error_code: z.ZodLiteral<"invalid_credentials">;
10422
+ }>, "strip", z.ZodTypeAny, {
10423
+ message: string;
10424
+ created_at: string;
10425
+ error_code: "invalid_credentials";
10426
+ is_connected_account_error?: boolean | undefined;
10427
+ is_bridge_error?: boolean | undefined;
10428
+ }, {
10429
+ message: string;
10430
+ created_at: string;
10431
+ error_code: "invalid_credentials";
10432
+ is_connected_account_error?: boolean | undefined;
10433
+ is_bridge_error?: boolean | undefined;
10434
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10435
+ created_at: z.ZodString;
10436
+ message: z.ZodString;
10437
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
10438
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
10439
+ }, {
10440
+ error_code: z.ZodLiteral<"bridge_disconnected">;
10441
+ }>, "strip", z.ZodTypeAny, {
10442
+ message: string;
10443
+ created_at: string;
10444
+ error_code: "bridge_disconnected";
10445
+ is_connected_account_error?: boolean | undefined;
10446
+ is_bridge_error?: boolean | undefined;
10447
+ }, {
10448
+ message: string;
10449
+ created_at: string;
10450
+ error_code: "bridge_disconnected";
10451
+ is_connected_account_error?: boolean | undefined;
10452
+ is_bridge_error?: boolean | undefined;
10453
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10454
+ created_at: z.ZodString;
10455
+ message: z.ZodString;
10456
+ is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
10457
+ is_bridge_error: z.ZodOptional<z.ZodBoolean>;
10458
+ }, {
10459
+ error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
10460
+ salto_ks_metadata: z.ZodObject<{
10461
+ sites: z.ZodArray<z.ZodObject<{
10462
+ site_id: z.ZodString;
10463
+ site_name: z.ZodString;
10464
+ subscribed_site_user_count: z.ZodNumber;
10465
+ site_user_subscription_limit: z.ZodNumber;
10466
+ }, "strip", z.ZodTypeAny, {
10467
+ site_id: string;
10468
+ site_name: string;
10469
+ subscribed_site_user_count: number;
10470
+ site_user_subscription_limit: number;
10471
+ }, {
10472
+ site_id: string;
10473
+ site_name: string;
10474
+ subscribed_site_user_count: number;
10475
+ site_user_subscription_limit: number;
10476
+ }>, "many">;
10477
+ }, "strip", z.ZodTypeAny, {
10478
+ sites: {
10479
+ site_id: string;
10480
+ site_name: string;
10481
+ subscribed_site_user_count: number;
10482
+ site_user_subscription_limit: number;
10483
+ }[];
10484
+ }, {
10485
+ sites: {
10486
+ site_id: string;
10487
+ site_name: string;
10488
+ subscribed_site_user_count: number;
10489
+ site_user_subscription_limit: number;
10490
+ }[];
10491
+ }>;
10492
+ }>, "strip", z.ZodTypeAny, {
10493
+ message: string;
10494
+ created_at: string;
10495
+ error_code: "salto_ks_subscription_limit_exceeded";
10496
+ salto_ks_metadata: {
10497
+ sites: {
10498
+ site_id: string;
10499
+ site_name: string;
10500
+ subscribed_site_user_count: number;
10501
+ site_user_subscription_limit: number;
10502
+ }[];
10503
+ };
10504
+ is_connected_account_error?: boolean | undefined;
10505
+ is_bridge_error?: boolean | undefined;
10506
+ }, {
10507
+ message: string;
10508
+ created_at: string;
10509
+ error_code: "salto_ks_subscription_limit_exceeded";
10510
+ salto_ks_metadata: {
10511
+ sites: {
10512
+ site_id: string;
10513
+ site_name: string;
10514
+ subscribed_site_user_count: number;
10515
+ site_user_subscription_limit: number;
10516
+ }[];
10517
+ };
10518
+ is_connected_account_error?: boolean | undefined;
10519
+ is_bridge_error?: boolean | undefined;
10520
+ }>]>;
10521
+ type ConnectedAccountError = z.infer<typeof connected_account_error>;
10522
+ type ConnectedAccountWarning = z.infer<typeof connected_account_warning>;
10523
+ declare const connected_account_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
10524
+ created_at: z.ZodString;
10525
+ message: z.ZodString;
10526
+ }, {
10527
+ warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
10528
+ }>, "strip", z.ZodTypeAny, {
10529
+ message: string;
10530
+ created_at: string;
10531
+ warning_code: "scheduled_maintenance_window";
10532
+ }, {
10533
+ message: string;
10534
+ created_at: string;
10535
+ warning_code: "scheduled_maintenance_window";
10536
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10537
+ created_at: z.ZodString;
10538
+ message: z.ZodString;
10539
+ }, {
10540
+ warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
10541
+ }>, "strip", z.ZodTypeAny, {
10542
+ message: string;
10543
+ created_at: string;
10544
+ warning_code: "unknown_issue_with_connected_account";
10545
+ }, {
10546
+ message: string;
10547
+ created_at: string;
10548
+ warning_code: "unknown_issue_with_connected_account";
10549
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10550
+ created_at: z.ZodString;
10551
+ message: z.ZodString;
10552
+ }, {
10553
+ warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
10554
+ salto_ks_metadata: z.ZodObject<{
10555
+ sites: z.ZodArray<z.ZodObject<{
10556
+ site_id: z.ZodString;
10557
+ site_name: z.ZodString;
10558
+ site_user_subscription_limit: z.ZodNumber;
10559
+ subscribed_site_user_count: z.ZodNumber;
10560
+ }, "strip", z.ZodTypeAny, {
10561
+ site_id: string;
10562
+ site_name: string;
10563
+ subscribed_site_user_count: number;
10564
+ site_user_subscription_limit: number;
10565
+ }, {
10566
+ site_id: string;
10567
+ site_name: string;
10568
+ subscribed_site_user_count: number;
10569
+ site_user_subscription_limit: number;
10570
+ }>, "many">;
10571
+ }, "strip", z.ZodTypeAny, {
10572
+ sites: {
10573
+ site_id: string;
10574
+ site_name: string;
10575
+ subscribed_site_user_count: number;
10576
+ site_user_subscription_limit: number;
10577
+ }[];
10578
+ }, {
10579
+ sites: {
10580
+ site_id: string;
10581
+ site_name: string;
10582
+ subscribed_site_user_count: number;
10583
+ site_user_subscription_limit: number;
10584
+ }[];
10585
+ }>;
10586
+ }>, "strip", z.ZodTypeAny, {
10587
+ message: string;
10588
+ created_at: string;
10589
+ salto_ks_metadata: {
10590
+ sites: {
10591
+ site_id: string;
10592
+ site_name: string;
10593
+ subscribed_site_user_count: number;
10594
+ site_user_subscription_limit: number;
10595
+ }[];
10596
+ };
10597
+ warning_code: "salto_ks_subscription_limit_almost_reached";
10598
+ }, {
10599
+ message: string;
10600
+ created_at: string;
10601
+ salto_ks_metadata: {
10602
+ sites: {
10603
+ site_id: string;
10604
+ site_name: string;
10605
+ subscribed_site_user_count: number;
10606
+ site_user_subscription_limit: number;
10607
+ }[];
10608
+ };
10609
+ warning_code: "salto_ks_subscription_limit_almost_reached";
10610
+ }>]>;
10396
10611
  declare const connected_account: z.ZodObject<{
10397
10612
  connected_account_id: z.ZodOptional<z.ZodString>;
10398
10613
  created_at: z.ZodOptional<z.ZodString>;
@@ -10670,11 +10885,11 @@ declare const connected_account: z.ZodObject<{
10670
10885
  warnings: ({
10671
10886
  message: string;
10672
10887
  created_at: string;
10673
- warning_code: "unknown_issue_with_connected_account";
10888
+ warning_code: "scheduled_maintenance_window";
10674
10889
  } | {
10675
10890
  message: string;
10676
10891
  created_at: string;
10677
- warning_code: "scheduled_maintenance_window";
10892
+ warning_code: "unknown_issue_with_connected_account";
10678
10893
  } | {
10679
10894
  message: string;
10680
10895
  created_at: string;
@@ -10738,11 +10953,11 @@ declare const connected_account: z.ZodObject<{
10738
10953
  warnings: ({
10739
10954
  message: string;
10740
10955
  created_at: string;
10741
- warning_code: "unknown_issue_with_connected_account";
10956
+ warning_code: "scheduled_maintenance_window";
10742
10957
  } | {
10743
10958
  message: string;
10744
10959
  created_at: string;
10745
- warning_code: "scheduled_maintenance_window";
10960
+ warning_code: "unknown_issue_with_connected_account";
10746
10961
  } | {
10747
10962
  message: string;
10748
10963
  created_at: string;
@@ -107120,4 +107335,4 @@ type RouteRequestParams<Path extends keyof Routes> = Routes[Path]['queryParams']
107120
107335
 
107121
107336
  declare const routes: {};
107122
107337
 
107123
- export { type AccessCode, type AccessCodeError, type AccessCodeWarning, type AcsAccessGroup, type AcsCredential, type AcsEncoder, type AcsEntrance, type AcsSystem, type AcsUser, type ActionAttempt, type Bridge, type ClientSession, type ConnectWebview, type ConnectedAccount, type CustomMetadata, type Device, type DeviceError, type DeviceProvider, type DeviceWarning, type InstantKey, type NoiseThreshold, type RouteRequestBody, type RouteRequestParams, type RouteResponse, type Routes, type SeamEvent, type SeamEventType, type ThermostatSchedule, type UnmanagedAccessCode, type UnmanagedDevice, type UserIdentity, type Webhook, type Workspace, _default as openapi, routes, schemas };
107338
+ export { type AccessCode, type AccessCodeError, type AccessCodeWarning, type AcsAccessGroup, type AcsCredential, type AcsEncoder, type AcsEntrance, type AcsSystem, type AcsUser, type ActionAttempt, type Bridge, type ClientSession, type ConnectWebview, type ConnectedAccount, type ConnectedAccountError, type ConnectedAccountWarning, type CustomMetadata, type Device, type DeviceError, type DeviceProvider, type DeviceWarning, type InstantKey, type NoiseThreshold, type RouteRequestBody, type RouteRequestParams, type RouteResponse, type Routes, type SeamEvent, type SeamEventType, type ThermostatSchedule, type UnmanagedAccessCode, type UnmanagedDevice, type UserIdentity, type Webhook, type Workspace, _default as openapi, routes, schemas };
@@ -1 +1 @@
1
- export type { AccessCode, AccessCodeError, AccessCodeWarning, AcsAccessGroup, AcsCredential, AcsEncoder, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, Bridge, ClientSession, ConnectedAccount, ConnectWebview, CustomMetadata, Device, DeviceError, DeviceProvider, DeviceWarning, InstantKey, NoiseThreshold, SeamEvent, SeamEventType, ThermostatSchedule, UnmanagedAccessCode, UnmanagedDevice, UserIdentity, Webhook, Workspace, } from './models/index.js';
1
+ export type { AccessCode, AccessCodeError, AccessCodeWarning, AcsAccessGroup, AcsCredential, AcsEncoder, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, Bridge, ClientSession, ConnectedAccount, ConnectedAccountError, ConnectedAccountWarning, ConnectWebview, CustomMetadata, Device, DeviceError, DeviceProvider, DeviceWarning, InstantKey, NoiseThreshold, SeamEvent, SeamEventType, ThermostatSchedule, UnmanagedAccessCode, UnmanagedDevice, UserIdentity, Webhook, Workspace, } from './models/index.js';
@@ -252,6 +252,8 @@ export declare const connected_account_error: z.ZodDiscriminatedUnion<"error_cod
252
252
  is_connected_account_error?: boolean | undefined;
253
253
  is_bridge_error?: boolean | undefined;
254
254
  }>]>;
255
+ export type ConnectedAccountError = z.infer<typeof connected_account_error>;
256
+ export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>;
255
257
  declare const connected_account_error_map: z.ZodObject<{
256
258
  account_disconnected: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
257
259
  created_at: z.ZodString;
@@ -471,6 +473,94 @@ export declare const unknown_issue_with_connected_account: z.ZodObject<z.objectU
471
473
  created_at: string;
472
474
  warning_code: "unknown_issue_with_connected_account";
473
475
  }>;
476
+ declare const connected_account_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
477
+ created_at: z.ZodString;
478
+ message: z.ZodString;
479
+ }, {
480
+ warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
481
+ }>, "strip", z.ZodTypeAny, {
482
+ message: string;
483
+ created_at: string;
484
+ warning_code: "scheduled_maintenance_window";
485
+ }, {
486
+ message: string;
487
+ created_at: string;
488
+ warning_code: "scheduled_maintenance_window";
489
+ }>, z.ZodObject<z.objectUtil.extendShape<{
490
+ created_at: z.ZodString;
491
+ message: z.ZodString;
492
+ }, {
493
+ warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
494
+ }>, "strip", z.ZodTypeAny, {
495
+ message: string;
496
+ created_at: string;
497
+ warning_code: "unknown_issue_with_connected_account";
498
+ }, {
499
+ message: string;
500
+ created_at: string;
501
+ warning_code: "unknown_issue_with_connected_account";
502
+ }>, z.ZodObject<z.objectUtil.extendShape<{
503
+ created_at: z.ZodString;
504
+ message: z.ZodString;
505
+ }, {
506
+ warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
507
+ salto_ks_metadata: z.ZodObject<{
508
+ sites: z.ZodArray<z.ZodObject<{
509
+ site_id: z.ZodString;
510
+ site_name: z.ZodString;
511
+ site_user_subscription_limit: z.ZodNumber;
512
+ subscribed_site_user_count: z.ZodNumber;
513
+ }, "strip", z.ZodTypeAny, {
514
+ site_id: string;
515
+ site_name: string;
516
+ subscribed_site_user_count: number;
517
+ site_user_subscription_limit: number;
518
+ }, {
519
+ site_id: string;
520
+ site_name: string;
521
+ subscribed_site_user_count: number;
522
+ site_user_subscription_limit: number;
523
+ }>, "many">;
524
+ }, "strip", z.ZodTypeAny, {
525
+ sites: {
526
+ site_id: string;
527
+ site_name: string;
528
+ subscribed_site_user_count: number;
529
+ site_user_subscription_limit: number;
530
+ }[];
531
+ }, {
532
+ sites: {
533
+ site_id: string;
534
+ site_name: string;
535
+ subscribed_site_user_count: number;
536
+ site_user_subscription_limit: number;
537
+ }[];
538
+ }>;
539
+ }>, "strip", z.ZodTypeAny, {
540
+ message: string;
541
+ created_at: string;
542
+ salto_ks_metadata: {
543
+ sites: {
544
+ site_id: string;
545
+ site_name: string;
546
+ subscribed_site_user_count: number;
547
+ site_user_subscription_limit: number;
548
+ }[];
549
+ };
550
+ warning_code: "salto_ks_subscription_limit_almost_reached";
551
+ }, {
552
+ message: string;
553
+ created_at: string;
554
+ salto_ks_metadata: {
555
+ sites: {
556
+ site_id: string;
557
+ site_name: string;
558
+ subscribed_site_user_count: number;
559
+ site_user_subscription_limit: number;
560
+ }[];
561
+ };
562
+ warning_code: "salto_ks_subscription_limit_almost_reached";
563
+ }>]>;
474
564
  declare const connected_account_warning_map: z.ZodObject<{
475
565
  scheduled_maintenance_window: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
476
566
  created_at: z.ZodString;
@@ -563,15 +653,15 @@ declare const connected_account_warning_map: z.ZodObject<{
563
653
  warning_code: "salto_ks_subscription_limit_almost_reached";
564
654
  }>>>;
565
655
  }, "strip", z.ZodTypeAny, {
566
- unknown_issue_with_connected_account?: {
656
+ scheduled_maintenance_window?: {
567
657
  message: string;
568
658
  created_at: string;
569
- warning_code: "unknown_issue_with_connected_account";
659
+ warning_code: "scheduled_maintenance_window";
570
660
  } | null | undefined;
571
- scheduled_maintenance_window?: {
661
+ unknown_issue_with_connected_account?: {
572
662
  message: string;
573
663
  created_at: string;
574
- warning_code: "scheduled_maintenance_window";
664
+ warning_code: "unknown_issue_with_connected_account";
575
665
  } | null | undefined;
576
666
  salto_ks_subscription_limit_almost_reached?: {
577
667
  message: string;
@@ -587,15 +677,15 @@ declare const connected_account_warning_map: z.ZodObject<{
587
677
  warning_code: "salto_ks_subscription_limit_almost_reached";
588
678
  } | null | undefined;
589
679
  }, {
590
- unknown_issue_with_connected_account?: {
680
+ scheduled_maintenance_window?: {
591
681
  message: string;
592
682
  created_at: string;
593
- warning_code: "unknown_issue_with_connected_account";
683
+ warning_code: "scheduled_maintenance_window";
594
684
  } | null | undefined;
595
- scheduled_maintenance_window?: {
685
+ unknown_issue_with_connected_account?: {
596
686
  message: string;
597
687
  created_at: string;
598
- warning_code: "scheduled_maintenance_window";
688
+ warning_code: "unknown_issue_with_connected_account";
599
689
  } | null | undefined;
600
690
  salto_ks_subscription_limit_almost_reached?: {
601
691
  message: string;
@@ -889,11 +979,11 @@ export declare const connected_account: z.ZodObject<{
889
979
  warnings: ({
890
980
  message: string;
891
981
  created_at: string;
892
- warning_code: "unknown_issue_with_connected_account";
982
+ warning_code: "scheduled_maintenance_window";
893
983
  } | {
894
984
  message: string;
895
985
  created_at: string;
896
- warning_code: "scheduled_maintenance_window";
986
+ warning_code: "unknown_issue_with_connected_account";
897
987
  } | {
898
988
  message: string;
899
989
  created_at: string;
@@ -957,11 +1047,11 @@ export declare const connected_account: z.ZodObject<{
957
1047
  warnings: ({
958
1048
  message: string;
959
1049
  created_at: string;
960
- warning_code: "unknown_issue_with_connected_account";
1050
+ warning_code: "scheduled_maintenance_window";
961
1051
  } | {
962
1052
  message: string;
963
1053
  created_at: string;
964
- warning_code: "scheduled_maintenance_window";
1054
+ warning_code: "unknown_issue_with_connected_account";
965
1055
  } | {
966
1056
  message: string;
967
1057
  created_at: string;
@@ -1 +1 @@
1
- {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,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C,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,CAAC;SACf,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,QAAQ,EAAE;IACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAC5C,eAAe;IACf,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
1
+ {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,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CAAC;IACxC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,CAAC;SACf,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,QAAQ,EAAE;IACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAC5C,eAAe;IACf,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.395.2",
3
+ "version": "1.395.3",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -12,6 +12,8 @@ export type {
12
12
  Bridge,
13
13
  ClientSession,
14
14
  ConnectedAccount,
15
+ ConnectedAccountError,
16
+ ConnectedAccountWarning,
15
17
  ConnectWebview,
16
18
  CustomMetadata,
17
19
  Device,
@@ -76,6 +76,10 @@ export const connected_account_error = z.discriminatedUnion('error_code', [
76
76
  salto_ks_subscription_limit_exceeded,
77
77
  ])
78
78
 
79
+ export type ConnectedAccountError = z.infer<typeof connected_account_error>
80
+
81
+ export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>
82
+
79
83
  const connected_account_error_map = z.object({
80
84
  account_disconnected: account_disconnected.nullable().optional(),
81
85
  invalid_credentials: invalid_credentials.nullable().optional(),