@seamapi/types 1.374.0 → 1.375.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.
- package/dist/connect.cjs +154 -63
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +767 -116
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +93 -15
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +93 -15
- package/lib/seam/connect/models/acs/acs-system.d.ts +55 -0
- package/lib/seam/connect/models/acs/acs-system.js +9 -1
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +200 -48
- package/lib/seam/connect/models/connected-accounts/connected-account.js +9 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +118 -24
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +61 -15
- package/lib/seam/connect/openapi.d.ts +58 -8
- package/lib/seam/connect/openapi.js +138 -61
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +314 -33
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +10 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +10 -1
- package/src/lib/seam/connect/openapi.ts +157 -61
- package/src/lib/seam/connect/route-types.ts +345 -33
|
@@ -1430,39 +1430,65 @@ export declare const common_device_properties: z.ZodObject<{
|
|
|
1430
1430
|
export declare const device_and_connected_account_error_options: (z.ZodObject<z.objectUtil.extendShape<{
|
|
1431
1431
|
created_at: z.ZodString;
|
|
1432
1432
|
message: z.ZodString;
|
|
1433
|
-
is_connected_account_error: z.
|
|
1433
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1434
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1434
1435
|
}, {
|
|
1435
1436
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
1436
1437
|
}>, "strip", z.ZodTypeAny, {
|
|
1437
1438
|
message: string;
|
|
1438
1439
|
created_at: string;
|
|
1439
1440
|
error_code: "account_disconnected";
|
|
1440
|
-
is_connected_account_error
|
|
1441
|
+
is_connected_account_error?: boolean | undefined;
|
|
1442
|
+
is_bridge_error?: boolean | undefined;
|
|
1441
1443
|
}, {
|
|
1442
1444
|
message: string;
|
|
1443
1445
|
created_at: string;
|
|
1444
1446
|
error_code: "account_disconnected";
|
|
1445
|
-
is_connected_account_error
|
|
1447
|
+
is_connected_account_error?: boolean | undefined;
|
|
1448
|
+
is_bridge_error?: boolean | undefined;
|
|
1446
1449
|
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1447
1450
|
created_at: z.ZodString;
|
|
1448
1451
|
message: z.ZodString;
|
|
1449
|
-
is_connected_account_error: z.
|
|
1452
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1453
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1450
1454
|
}, {
|
|
1451
1455
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
1452
1456
|
}>, "strip", z.ZodTypeAny, {
|
|
1453
1457
|
message: string;
|
|
1454
1458
|
created_at: string;
|
|
1455
1459
|
error_code: "invalid_credentials";
|
|
1456
|
-
is_connected_account_error
|
|
1460
|
+
is_connected_account_error?: boolean | undefined;
|
|
1461
|
+
is_bridge_error?: boolean | undefined;
|
|
1457
1462
|
}, {
|
|
1458
1463
|
message: string;
|
|
1459
1464
|
created_at: string;
|
|
1460
1465
|
error_code: "invalid_credentials";
|
|
1461
|
-
is_connected_account_error
|
|
1466
|
+
is_connected_account_error?: boolean | undefined;
|
|
1467
|
+
is_bridge_error?: boolean | undefined;
|
|
1462
1468
|
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1463
1469
|
created_at: z.ZodString;
|
|
1464
1470
|
message: z.ZodString;
|
|
1465
|
-
is_connected_account_error: z.
|
|
1471
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1472
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1473
|
+
}, {
|
|
1474
|
+
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
1475
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1476
|
+
message: string;
|
|
1477
|
+
created_at: string;
|
|
1478
|
+
error_code: "bridge_disconnected";
|
|
1479
|
+
is_connected_account_error?: boolean | undefined;
|
|
1480
|
+
is_bridge_error?: boolean | undefined;
|
|
1481
|
+
}, {
|
|
1482
|
+
message: string;
|
|
1483
|
+
created_at: string;
|
|
1484
|
+
error_code: "bridge_disconnected";
|
|
1485
|
+
is_connected_account_error?: boolean | undefined;
|
|
1486
|
+
is_bridge_error?: boolean | undefined;
|
|
1487
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1488
|
+
created_at: z.ZodString;
|
|
1489
|
+
message: z.ZodString;
|
|
1490
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1491
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1466
1492
|
}, {
|
|
1467
1493
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
1468
1494
|
salto_ks_metadata: z.ZodObject<{
|
|
@@ -1501,7 +1527,6 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1501
1527
|
message: string;
|
|
1502
1528
|
created_at: string;
|
|
1503
1529
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1504
|
-
is_connected_account_error: true;
|
|
1505
1530
|
salto_ks_metadata: {
|
|
1506
1531
|
sites: {
|
|
1507
1532
|
site_id: string;
|
|
@@ -1510,11 +1535,12 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1510
1535
|
site_user_subscription_limit: number;
|
|
1511
1536
|
}[];
|
|
1512
1537
|
};
|
|
1538
|
+
is_connected_account_error?: boolean | undefined;
|
|
1539
|
+
is_bridge_error?: boolean | undefined;
|
|
1513
1540
|
}, {
|
|
1514
1541
|
message: string;
|
|
1515
1542
|
created_at: string;
|
|
1516
1543
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1517
|
-
is_connected_account_error: true;
|
|
1518
1544
|
salto_ks_metadata: {
|
|
1519
1545
|
sites: {
|
|
1520
1546
|
site_id: string;
|
|
@@ -1523,6 +1549,8 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1523
1549
|
site_user_subscription_limit: number;
|
|
1524
1550
|
}[];
|
|
1525
1551
|
};
|
|
1552
|
+
is_connected_account_error?: boolean | undefined;
|
|
1553
|
+
is_bridge_error?: boolean | undefined;
|
|
1526
1554
|
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1527
1555
|
message: z.ZodString;
|
|
1528
1556
|
is_device_error: z.ZodLiteral<true>;
|
|
@@ -1591,6 +1619,26 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1591
1619
|
message: z.ZodString;
|
|
1592
1620
|
is_device_error: z.ZodLiteral<true>;
|
|
1593
1621
|
created_at: z.ZodString;
|
|
1622
|
+
}, {
|
|
1623
|
+
error_code: z.ZodLiteral<"account_disconnected">;
|
|
1624
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
1625
|
+
is_device_error: z.ZodLiteral<false>;
|
|
1626
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1627
|
+
message: string;
|
|
1628
|
+
created_at: string;
|
|
1629
|
+
error_code: "account_disconnected";
|
|
1630
|
+
is_connected_account_error: true;
|
|
1631
|
+
is_device_error: false;
|
|
1632
|
+
}, {
|
|
1633
|
+
message: string;
|
|
1634
|
+
created_at: string;
|
|
1635
|
+
error_code: "account_disconnected";
|
|
1636
|
+
is_connected_account_error: true;
|
|
1637
|
+
is_device_error: false;
|
|
1638
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1639
|
+
message: z.ZodString;
|
|
1640
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1641
|
+
created_at: z.ZodString;
|
|
1594
1642
|
}, {
|
|
1595
1643
|
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
1596
1644
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -3825,39 +3873,65 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3825
3873
|
}>, ...(z.ZodObject<z.objectUtil.extendShape<{
|
|
3826
3874
|
created_at: z.ZodString;
|
|
3827
3875
|
message: z.ZodString;
|
|
3828
|
-
is_connected_account_error: z.
|
|
3876
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
3877
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
3829
3878
|
}, {
|
|
3830
3879
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
3831
3880
|
}>, "strip", z.ZodTypeAny, {
|
|
3832
3881
|
message: string;
|
|
3833
3882
|
created_at: string;
|
|
3834
3883
|
error_code: "account_disconnected";
|
|
3835
|
-
is_connected_account_error
|
|
3884
|
+
is_connected_account_error?: boolean | undefined;
|
|
3885
|
+
is_bridge_error?: boolean | undefined;
|
|
3836
3886
|
}, {
|
|
3837
3887
|
message: string;
|
|
3838
3888
|
created_at: string;
|
|
3839
3889
|
error_code: "account_disconnected";
|
|
3840
|
-
is_connected_account_error
|
|
3890
|
+
is_connected_account_error?: boolean | undefined;
|
|
3891
|
+
is_bridge_error?: boolean | undefined;
|
|
3841
3892
|
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
3842
3893
|
created_at: z.ZodString;
|
|
3843
3894
|
message: z.ZodString;
|
|
3844
|
-
is_connected_account_error: z.
|
|
3895
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
3896
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
3845
3897
|
}, {
|
|
3846
3898
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
3847
3899
|
}>, "strip", z.ZodTypeAny, {
|
|
3848
3900
|
message: string;
|
|
3849
3901
|
created_at: string;
|
|
3850
3902
|
error_code: "invalid_credentials";
|
|
3851
|
-
is_connected_account_error
|
|
3903
|
+
is_connected_account_error?: boolean | undefined;
|
|
3904
|
+
is_bridge_error?: boolean | undefined;
|
|
3852
3905
|
}, {
|
|
3853
3906
|
message: string;
|
|
3854
3907
|
created_at: string;
|
|
3855
3908
|
error_code: "invalid_credentials";
|
|
3856
|
-
is_connected_account_error
|
|
3909
|
+
is_connected_account_error?: boolean | undefined;
|
|
3910
|
+
is_bridge_error?: boolean | undefined;
|
|
3857
3911
|
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
3858
3912
|
created_at: z.ZodString;
|
|
3859
3913
|
message: z.ZodString;
|
|
3860
|
-
is_connected_account_error: z.
|
|
3914
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
3915
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
3916
|
+
}, {
|
|
3917
|
+
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
3918
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3919
|
+
message: string;
|
|
3920
|
+
created_at: string;
|
|
3921
|
+
error_code: "bridge_disconnected";
|
|
3922
|
+
is_connected_account_error?: boolean | undefined;
|
|
3923
|
+
is_bridge_error?: boolean | undefined;
|
|
3924
|
+
}, {
|
|
3925
|
+
message: string;
|
|
3926
|
+
created_at: string;
|
|
3927
|
+
error_code: "bridge_disconnected";
|
|
3928
|
+
is_connected_account_error?: boolean | undefined;
|
|
3929
|
+
is_bridge_error?: boolean | undefined;
|
|
3930
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
3931
|
+
created_at: z.ZodString;
|
|
3932
|
+
message: z.ZodString;
|
|
3933
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
3934
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
3861
3935
|
}, {
|
|
3862
3936
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
3863
3937
|
salto_ks_metadata: z.ZodObject<{
|
|
@@ -3896,7 +3970,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3896
3970
|
message: string;
|
|
3897
3971
|
created_at: string;
|
|
3898
3972
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
3899
|
-
is_connected_account_error: true;
|
|
3900
3973
|
salto_ks_metadata: {
|
|
3901
3974
|
sites: {
|
|
3902
3975
|
site_id: string;
|
|
@@ -3905,11 +3978,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3905
3978
|
site_user_subscription_limit: number;
|
|
3906
3979
|
}[];
|
|
3907
3980
|
};
|
|
3981
|
+
is_connected_account_error?: boolean | undefined;
|
|
3982
|
+
is_bridge_error?: boolean | undefined;
|
|
3908
3983
|
}, {
|
|
3909
3984
|
message: string;
|
|
3910
3985
|
created_at: string;
|
|
3911
3986
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
3912
|
-
is_connected_account_error: true;
|
|
3913
3987
|
salto_ks_metadata: {
|
|
3914
3988
|
sites: {
|
|
3915
3989
|
site_id: string;
|
|
@@ -3918,6 +3992,8 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3918
3992
|
site_user_subscription_limit: number;
|
|
3919
3993
|
}[];
|
|
3920
3994
|
};
|
|
3995
|
+
is_connected_account_error?: boolean | undefined;
|
|
3996
|
+
is_bridge_error?: boolean | undefined;
|
|
3921
3997
|
}>)[]]>, "many">;
|
|
3922
3998
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
3923
3999
|
message: z.ZodString;
|
|
@@ -4156,17 +4232,24 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4156
4232
|
message: string;
|
|
4157
4233
|
created_at: string;
|
|
4158
4234
|
error_code: "account_disconnected";
|
|
4159
|
-
is_connected_account_error
|
|
4235
|
+
is_connected_account_error?: boolean | undefined;
|
|
4236
|
+
is_bridge_error?: boolean | undefined;
|
|
4160
4237
|
} | {
|
|
4161
4238
|
message: string;
|
|
4162
4239
|
created_at: string;
|
|
4163
4240
|
error_code: "invalid_credentials";
|
|
4164
|
-
is_connected_account_error
|
|
4241
|
+
is_connected_account_error?: boolean | undefined;
|
|
4242
|
+
is_bridge_error?: boolean | undefined;
|
|
4243
|
+
} | {
|
|
4244
|
+
message: string;
|
|
4245
|
+
created_at: string;
|
|
4246
|
+
error_code: "bridge_disconnected";
|
|
4247
|
+
is_connected_account_error?: boolean | undefined;
|
|
4248
|
+
is_bridge_error?: boolean | undefined;
|
|
4165
4249
|
} | {
|
|
4166
4250
|
message: string;
|
|
4167
4251
|
created_at: string;
|
|
4168
4252
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
4169
|
-
is_connected_account_error: true;
|
|
4170
4253
|
salto_ks_metadata: {
|
|
4171
4254
|
sites: {
|
|
4172
4255
|
site_id: string;
|
|
@@ -4175,6 +4258,8 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4175
4258
|
site_user_subscription_limit: number;
|
|
4176
4259
|
}[];
|
|
4177
4260
|
};
|
|
4261
|
+
is_connected_account_error?: boolean | undefined;
|
|
4262
|
+
is_bridge_error?: boolean | undefined;
|
|
4178
4263
|
} | {
|
|
4179
4264
|
message: string;
|
|
4180
4265
|
created_at: string;
|
|
@@ -4723,17 +4808,24 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4723
4808
|
message: string;
|
|
4724
4809
|
created_at: string;
|
|
4725
4810
|
error_code: "account_disconnected";
|
|
4726
|
-
is_connected_account_error
|
|
4811
|
+
is_connected_account_error?: boolean | undefined;
|
|
4812
|
+
is_bridge_error?: boolean | undefined;
|
|
4727
4813
|
} | {
|
|
4728
4814
|
message: string;
|
|
4729
4815
|
created_at: string;
|
|
4730
4816
|
error_code: "invalid_credentials";
|
|
4731
|
-
is_connected_account_error
|
|
4817
|
+
is_connected_account_error?: boolean | undefined;
|
|
4818
|
+
is_bridge_error?: boolean | undefined;
|
|
4819
|
+
} | {
|
|
4820
|
+
message: string;
|
|
4821
|
+
created_at: string;
|
|
4822
|
+
error_code: "bridge_disconnected";
|
|
4823
|
+
is_connected_account_error?: boolean | undefined;
|
|
4824
|
+
is_bridge_error?: boolean | undefined;
|
|
4732
4825
|
} | {
|
|
4733
4826
|
message: string;
|
|
4734
4827
|
created_at: string;
|
|
4735
4828
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
4736
|
-
is_connected_account_error: true;
|
|
4737
4829
|
salto_ks_metadata: {
|
|
4738
4830
|
sites: {
|
|
4739
4831
|
site_id: string;
|
|
@@ -4742,6 +4834,8 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4742
4834
|
site_user_subscription_limit: number;
|
|
4743
4835
|
}[];
|
|
4744
4836
|
};
|
|
4837
|
+
is_connected_account_error?: boolean | undefined;
|
|
4838
|
+
is_bridge_error?: boolean | undefined;
|
|
4745
4839
|
} | {
|
|
4746
4840
|
message: string;
|
|
4747
4841
|
created_at: string;
|
|
@@ -2104,39 +2104,65 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2104
2104
|
}>, ...(z.ZodObject<z.objectUtil.extendShape<{
|
|
2105
2105
|
created_at: z.ZodString;
|
|
2106
2106
|
message: z.ZodString;
|
|
2107
|
-
is_connected_account_error: z.
|
|
2107
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
2108
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
2108
2109
|
}, {
|
|
2109
2110
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
2110
2111
|
}>, "strip", z.ZodTypeAny, {
|
|
2111
2112
|
message: string;
|
|
2112
2113
|
created_at: string;
|
|
2113
2114
|
error_code: "account_disconnected";
|
|
2114
|
-
is_connected_account_error
|
|
2115
|
+
is_connected_account_error?: boolean | undefined;
|
|
2116
|
+
is_bridge_error?: boolean | undefined;
|
|
2115
2117
|
}, {
|
|
2116
2118
|
message: string;
|
|
2117
2119
|
created_at: string;
|
|
2118
2120
|
error_code: "account_disconnected";
|
|
2119
|
-
is_connected_account_error
|
|
2121
|
+
is_connected_account_error?: boolean | undefined;
|
|
2122
|
+
is_bridge_error?: boolean | undefined;
|
|
2120
2123
|
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
2121
2124
|
created_at: z.ZodString;
|
|
2122
2125
|
message: z.ZodString;
|
|
2123
|
-
is_connected_account_error: z.
|
|
2126
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
2127
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
2124
2128
|
}, {
|
|
2125
2129
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
2126
2130
|
}>, "strip", z.ZodTypeAny, {
|
|
2127
2131
|
message: string;
|
|
2128
2132
|
created_at: string;
|
|
2129
2133
|
error_code: "invalid_credentials";
|
|
2130
|
-
is_connected_account_error
|
|
2134
|
+
is_connected_account_error?: boolean | undefined;
|
|
2135
|
+
is_bridge_error?: boolean | undefined;
|
|
2131
2136
|
}, {
|
|
2132
2137
|
message: string;
|
|
2133
2138
|
created_at: string;
|
|
2134
2139
|
error_code: "invalid_credentials";
|
|
2135
|
-
is_connected_account_error
|
|
2140
|
+
is_connected_account_error?: boolean | undefined;
|
|
2141
|
+
is_bridge_error?: boolean | undefined;
|
|
2136
2142
|
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
2137
2143
|
created_at: z.ZodString;
|
|
2138
2144
|
message: z.ZodString;
|
|
2139
|
-
is_connected_account_error: z.
|
|
2145
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
2146
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
2147
|
+
}, {
|
|
2148
|
+
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
2149
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2150
|
+
message: string;
|
|
2151
|
+
created_at: string;
|
|
2152
|
+
error_code: "bridge_disconnected";
|
|
2153
|
+
is_connected_account_error?: boolean | undefined;
|
|
2154
|
+
is_bridge_error?: boolean | undefined;
|
|
2155
|
+
}, {
|
|
2156
|
+
message: string;
|
|
2157
|
+
created_at: string;
|
|
2158
|
+
error_code: "bridge_disconnected";
|
|
2159
|
+
is_connected_account_error?: boolean | undefined;
|
|
2160
|
+
is_bridge_error?: boolean | undefined;
|
|
2161
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
2162
|
+
created_at: z.ZodString;
|
|
2163
|
+
message: z.ZodString;
|
|
2164
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
2165
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
2140
2166
|
}, {
|
|
2141
2167
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
2142
2168
|
salto_ks_metadata: z.ZodObject<{
|
|
@@ -2175,7 +2201,6 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2175
2201
|
message: string;
|
|
2176
2202
|
created_at: string;
|
|
2177
2203
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
2178
|
-
is_connected_account_error: true;
|
|
2179
2204
|
salto_ks_metadata: {
|
|
2180
2205
|
sites: {
|
|
2181
2206
|
site_id: string;
|
|
@@ -2184,11 +2209,12 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2184
2209
|
site_user_subscription_limit: number;
|
|
2185
2210
|
}[];
|
|
2186
2211
|
};
|
|
2212
|
+
is_connected_account_error?: boolean | undefined;
|
|
2213
|
+
is_bridge_error?: boolean | undefined;
|
|
2187
2214
|
}, {
|
|
2188
2215
|
message: string;
|
|
2189
2216
|
created_at: string;
|
|
2190
2217
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
2191
|
-
is_connected_account_error: true;
|
|
2192
2218
|
salto_ks_metadata: {
|
|
2193
2219
|
sites: {
|
|
2194
2220
|
site_id: string;
|
|
@@ -2197,6 +2223,8 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2197
2223
|
site_user_subscription_limit: number;
|
|
2198
2224
|
}[];
|
|
2199
2225
|
};
|
|
2226
|
+
is_connected_account_error?: boolean | undefined;
|
|
2227
|
+
is_bridge_error?: boolean | undefined;
|
|
2200
2228
|
}>)[]]>, "many">;
|
|
2201
2229
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
2202
2230
|
message: z.ZodString;
|
|
@@ -2583,17 +2611,24 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2583
2611
|
message: string;
|
|
2584
2612
|
created_at: string;
|
|
2585
2613
|
error_code: "account_disconnected";
|
|
2586
|
-
is_connected_account_error
|
|
2614
|
+
is_connected_account_error?: boolean | undefined;
|
|
2615
|
+
is_bridge_error?: boolean | undefined;
|
|
2587
2616
|
} | {
|
|
2588
2617
|
message: string;
|
|
2589
2618
|
created_at: string;
|
|
2590
2619
|
error_code: "invalid_credentials";
|
|
2591
|
-
is_connected_account_error
|
|
2620
|
+
is_connected_account_error?: boolean | undefined;
|
|
2621
|
+
is_bridge_error?: boolean | undefined;
|
|
2622
|
+
} | {
|
|
2623
|
+
message: string;
|
|
2624
|
+
created_at: string;
|
|
2625
|
+
error_code: "bridge_disconnected";
|
|
2626
|
+
is_connected_account_error?: boolean | undefined;
|
|
2627
|
+
is_bridge_error?: boolean | undefined;
|
|
2592
2628
|
} | {
|
|
2593
2629
|
message: string;
|
|
2594
2630
|
created_at: string;
|
|
2595
2631
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
2596
|
-
is_connected_account_error: true;
|
|
2597
2632
|
salto_ks_metadata: {
|
|
2598
2633
|
sites: {
|
|
2599
2634
|
site_id: string;
|
|
@@ -2602,6 +2637,8 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2602
2637
|
site_user_subscription_limit: number;
|
|
2603
2638
|
}[];
|
|
2604
2639
|
};
|
|
2640
|
+
is_connected_account_error?: boolean | undefined;
|
|
2641
|
+
is_bridge_error?: boolean | undefined;
|
|
2605
2642
|
} | {
|
|
2606
2643
|
message: string;
|
|
2607
2644
|
created_at: string;
|
|
@@ -2791,17 +2828,24 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2791
2828
|
message: string;
|
|
2792
2829
|
created_at: string;
|
|
2793
2830
|
error_code: "account_disconnected";
|
|
2794
|
-
is_connected_account_error
|
|
2831
|
+
is_connected_account_error?: boolean | undefined;
|
|
2832
|
+
is_bridge_error?: boolean | undefined;
|
|
2795
2833
|
} | {
|
|
2796
2834
|
message: string;
|
|
2797
2835
|
created_at: string;
|
|
2798
2836
|
error_code: "invalid_credentials";
|
|
2799
|
-
is_connected_account_error
|
|
2837
|
+
is_connected_account_error?: boolean | undefined;
|
|
2838
|
+
is_bridge_error?: boolean | undefined;
|
|
2839
|
+
} | {
|
|
2840
|
+
message: string;
|
|
2841
|
+
created_at: string;
|
|
2842
|
+
error_code: "bridge_disconnected";
|
|
2843
|
+
is_connected_account_error?: boolean | undefined;
|
|
2844
|
+
is_bridge_error?: boolean | undefined;
|
|
2800
2845
|
} | {
|
|
2801
2846
|
message: string;
|
|
2802
2847
|
created_at: string;
|
|
2803
2848
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
2804
|
-
is_connected_account_error: true;
|
|
2805
2849
|
salto_ks_metadata: {
|
|
2806
2850
|
sites: {
|
|
2807
2851
|
site_id: string;
|
|
@@ -2810,6 +2854,8 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
2810
2854
|
site_user_subscription_limit: number;
|
|
2811
2855
|
}[];
|
|
2812
2856
|
};
|
|
2857
|
+
is_connected_account_error?: boolean | undefined;
|
|
2858
|
+
is_bridge_error?: boolean | undefined;
|
|
2813
2859
|
} | {
|
|
2814
2860
|
message: string;
|
|
2815
2861
|
created_at: string;
|
|
@@ -62,6 +62,7 @@ declare const _default: {
|
|
|
62
62
|
};
|
|
63
63
|
is_connected_account_error?: never;
|
|
64
64
|
is_device_error?: never;
|
|
65
|
+
is_bridge_error?: never;
|
|
65
66
|
};
|
|
66
67
|
required: string[];
|
|
67
68
|
type: string;
|
|
@@ -90,6 +91,7 @@ declare const _default: {
|
|
|
90
91
|
type: string;
|
|
91
92
|
};
|
|
92
93
|
is_access_code_error?: never;
|
|
94
|
+
is_bridge_error?: never;
|
|
93
95
|
};
|
|
94
96
|
required: string[];
|
|
95
97
|
type: string;
|
|
@@ -115,6 +117,7 @@ declare const _default: {
|
|
|
115
117
|
};
|
|
116
118
|
is_access_code_error?: never;
|
|
117
119
|
is_connected_account_error?: never;
|
|
120
|
+
is_bridge_error?: never;
|
|
118
121
|
};
|
|
119
122
|
required: string[];
|
|
120
123
|
type: string;
|
|
@@ -131,9 +134,12 @@ declare const _default: {
|
|
|
131
134
|
enum: string[];
|
|
132
135
|
type: string;
|
|
133
136
|
};
|
|
137
|
+
is_bridge_error: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
134
140
|
is_connected_account_error: {
|
|
135
|
-
enum: boolean[];
|
|
136
141
|
type: string;
|
|
142
|
+
enum?: never;
|
|
137
143
|
};
|
|
138
144
|
message: {
|
|
139
145
|
type: string;
|
|
@@ -912,7 +918,7 @@ declare const _default: {
|
|
|
912
918
|
discriminator: {
|
|
913
919
|
propertyName: string;
|
|
914
920
|
};
|
|
915
|
-
oneOf: {
|
|
921
|
+
oneOf: ({
|
|
916
922
|
description: string;
|
|
917
923
|
properties: {
|
|
918
924
|
created_at: {
|
|
@@ -929,10 +935,34 @@ declare const _default: {
|
|
|
929
935
|
description: string;
|
|
930
936
|
type: string;
|
|
931
937
|
};
|
|
938
|
+
is_bridge_error?: never;
|
|
932
939
|
};
|
|
933
940
|
required: string[];
|
|
934
941
|
type: string;
|
|
935
|
-
}
|
|
942
|
+
} | {
|
|
943
|
+
description: string;
|
|
944
|
+
properties: {
|
|
945
|
+
created_at: {
|
|
946
|
+
description: string;
|
|
947
|
+
format: string;
|
|
948
|
+
type: string;
|
|
949
|
+
};
|
|
950
|
+
error_code: {
|
|
951
|
+
description: string;
|
|
952
|
+
enum: string[];
|
|
953
|
+
type: string;
|
|
954
|
+
};
|
|
955
|
+
is_bridge_error: {
|
|
956
|
+
type: string;
|
|
957
|
+
};
|
|
958
|
+
message: {
|
|
959
|
+
description: string;
|
|
960
|
+
type: string;
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
required: string[];
|
|
964
|
+
type: string;
|
|
965
|
+
})[];
|
|
936
966
|
};
|
|
937
967
|
type: string;
|
|
938
968
|
};
|
|
@@ -2831,8 +2861,10 @@ declare const _default: {
|
|
|
2831
2861
|
enum: string[];
|
|
2832
2862
|
type: string;
|
|
2833
2863
|
};
|
|
2864
|
+
is_bridge_error: {
|
|
2865
|
+
type: string;
|
|
2866
|
+
};
|
|
2834
2867
|
is_connected_account_error: {
|
|
2835
|
-
enum: boolean[];
|
|
2836
2868
|
type: string;
|
|
2837
2869
|
};
|
|
2838
2870
|
message: {
|
|
@@ -2855,8 +2887,10 @@ declare const _default: {
|
|
|
2855
2887
|
enum: string[];
|
|
2856
2888
|
type: string;
|
|
2857
2889
|
};
|
|
2890
|
+
is_bridge_error: {
|
|
2891
|
+
type: string;
|
|
2892
|
+
};
|
|
2858
2893
|
is_connected_account_error: {
|
|
2859
|
-
enum: boolean[];
|
|
2860
2894
|
type: string;
|
|
2861
2895
|
};
|
|
2862
2896
|
message: {
|
|
@@ -3113,6 +3147,7 @@ declare const _default: {
|
|
|
3113
3147
|
message: {
|
|
3114
3148
|
type: string;
|
|
3115
3149
|
};
|
|
3150
|
+
is_bridge_error?: never;
|
|
3116
3151
|
};
|
|
3117
3152
|
required: string[];
|
|
3118
3153
|
type: string;
|
|
@@ -3137,6 +3172,7 @@ declare const _default: {
|
|
|
3137
3172
|
type: string;
|
|
3138
3173
|
};
|
|
3139
3174
|
is_connected_account_error?: never;
|
|
3175
|
+
is_bridge_error?: never;
|
|
3140
3176
|
};
|
|
3141
3177
|
required: string[];
|
|
3142
3178
|
type: string;
|
|
@@ -3153,9 +3189,12 @@ declare const _default: {
|
|
|
3153
3189
|
enum: string[];
|
|
3154
3190
|
type: string;
|
|
3155
3191
|
};
|
|
3192
|
+
is_bridge_error: {
|
|
3193
|
+
type: string;
|
|
3194
|
+
};
|
|
3156
3195
|
is_connected_account_error: {
|
|
3157
|
-
enum: boolean[];
|
|
3158
3196
|
type: string;
|
|
3197
|
+
enum?: never;
|
|
3159
3198
|
};
|
|
3160
3199
|
message: {
|
|
3161
3200
|
type: string;
|
|
@@ -7889,6 +7928,7 @@ declare const _default: {
|
|
|
7889
7928
|
};
|
|
7890
7929
|
is_connected_account_error?: never;
|
|
7891
7930
|
is_device_error?: never;
|
|
7931
|
+
is_bridge_error?: never;
|
|
7892
7932
|
};
|
|
7893
7933
|
required: string[];
|
|
7894
7934
|
type: string;
|
|
@@ -7917,6 +7957,7 @@ declare const _default: {
|
|
|
7917
7957
|
type: string;
|
|
7918
7958
|
};
|
|
7919
7959
|
is_access_code_error?: never;
|
|
7960
|
+
is_bridge_error?: never;
|
|
7920
7961
|
};
|
|
7921
7962
|
required: string[];
|
|
7922
7963
|
type: string;
|
|
@@ -7942,6 +7983,7 @@ declare const _default: {
|
|
|
7942
7983
|
};
|
|
7943
7984
|
is_access_code_error?: never;
|
|
7944
7985
|
is_connected_account_error?: never;
|
|
7986
|
+
is_bridge_error?: never;
|
|
7945
7987
|
};
|
|
7946
7988
|
required: string[];
|
|
7947
7989
|
type: string;
|
|
@@ -7958,9 +8000,12 @@ declare const _default: {
|
|
|
7958
8000
|
enum: string[];
|
|
7959
8001
|
type: string;
|
|
7960
8002
|
};
|
|
8003
|
+
is_bridge_error: {
|
|
8004
|
+
type: string;
|
|
8005
|
+
};
|
|
7961
8006
|
is_connected_account_error: {
|
|
7962
|
-
enum: boolean[];
|
|
7963
8007
|
type: string;
|
|
8008
|
+
enum?: never;
|
|
7964
8009
|
};
|
|
7965
8010
|
message: {
|
|
7966
8011
|
type: string;
|
|
@@ -8856,6 +8901,7 @@ declare const _default: {
|
|
|
8856
8901
|
message: {
|
|
8857
8902
|
type: string;
|
|
8858
8903
|
};
|
|
8904
|
+
is_bridge_error?: never;
|
|
8859
8905
|
};
|
|
8860
8906
|
required: string[];
|
|
8861
8907
|
type: string;
|
|
@@ -8880,6 +8926,7 @@ declare const _default: {
|
|
|
8880
8926
|
type: string;
|
|
8881
8927
|
};
|
|
8882
8928
|
is_connected_account_error?: never;
|
|
8929
|
+
is_bridge_error?: never;
|
|
8883
8930
|
};
|
|
8884
8931
|
required: string[];
|
|
8885
8932
|
type: string;
|
|
@@ -8896,9 +8943,12 @@ declare const _default: {
|
|
|
8896
8943
|
enum: string[];
|
|
8897
8944
|
type: string;
|
|
8898
8945
|
};
|
|
8946
|
+
is_bridge_error: {
|
|
8947
|
+
type: string;
|
|
8948
|
+
};
|
|
8899
8949
|
is_connected_account_error: {
|
|
8900
|
-
enum: boolean[];
|
|
8901
8950
|
type: string;
|
|
8951
|
+
enum?: never;
|
|
8902
8952
|
};
|
|
8903
8953
|
message: {
|
|
8904
8954
|
type: string;
|