@seamapi/types 1.336.1 → 1.338.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 +63 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +188 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +15 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +15 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js +5 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +37 -0
- package/lib/seam/connect/models/devices/device.js +9 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +16 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +16 -0
- package/lib/seam/connect/openapi.js +50 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +131 -0
- package/package.json +2 -2
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +6 -0
- package/src/lib/seam/connect/models/devices/device.ts +12 -0
- package/src/lib/seam/connect/openapi.ts +56 -0
- package/src/lib/seam/connect/route-types.ts +169 -0
|
@@ -604,6 +604,9 @@ export interface Routes {
|
|
|
604
604
|
} | {
|
|
605
605
|
type: 'incompatible_card_format';
|
|
606
606
|
message: string;
|
|
607
|
+
} | {
|
|
608
|
+
type: 'credential_cannot_be_reissued';
|
|
609
|
+
message: string;
|
|
607
610
|
};
|
|
608
611
|
} | {
|
|
609
612
|
/** The ID of the action attempt. */
|
|
@@ -2011,6 +2014,9 @@ export interface Routes {
|
|
|
2011
2014
|
} | {
|
|
2012
2015
|
type: 'incompatible_card_format';
|
|
2013
2016
|
message: string;
|
|
2017
|
+
} | {
|
|
2018
|
+
type: 'credential_cannot_be_reissued';
|
|
2019
|
+
message: string;
|
|
2014
2020
|
};
|
|
2015
2021
|
} | {
|
|
2016
2022
|
/** The ID of the action attempt. */
|
|
@@ -4224,6 +4230,9 @@ export interface Routes {
|
|
|
4224
4230
|
} | {
|
|
4225
4231
|
type: 'incompatible_card_format';
|
|
4226
4232
|
message: string;
|
|
4233
|
+
} | {
|
|
4234
|
+
type: 'credential_cannot_be_reissued';
|
|
4235
|
+
message: string;
|
|
4227
4236
|
};
|
|
4228
4237
|
} | {
|
|
4229
4238
|
/** The ID of the action attempt. */
|
|
@@ -5618,6 +5627,9 @@ export interface Routes {
|
|
|
5618
5627
|
} | {
|
|
5619
5628
|
type: 'incompatible_card_format';
|
|
5620
5629
|
message: string;
|
|
5630
|
+
} | {
|
|
5631
|
+
type: 'credential_cannot_be_reissued';
|
|
5632
|
+
message: string;
|
|
5621
5633
|
};
|
|
5622
5634
|
} | {
|
|
5623
5635
|
/** The ID of the action attempt. */
|
|
@@ -8210,6 +8222,9 @@ export interface Routes {
|
|
|
8210
8222
|
} | {
|
|
8211
8223
|
type: 'incompatible_card_format';
|
|
8212
8224
|
message: string;
|
|
8225
|
+
} | {
|
|
8226
|
+
type: 'credential_cannot_be_reissued';
|
|
8227
|
+
message: string;
|
|
8213
8228
|
};
|
|
8214
8229
|
} | {
|
|
8215
8230
|
/** The ID of the action attempt. */
|
|
@@ -9122,6 +9137,9 @@ export interface Routes {
|
|
|
9122
9137
|
} | {
|
|
9123
9138
|
type: 'incompatible_card_format';
|
|
9124
9139
|
message: string;
|
|
9140
|
+
} | {
|
|
9141
|
+
type: 'credential_cannot_be_reissued';
|
|
9142
|
+
message: string;
|
|
9125
9143
|
};
|
|
9126
9144
|
} | {
|
|
9127
9145
|
/** The ID of the action attempt. */
|
|
@@ -11449,6 +11467,9 @@ export interface Routes {
|
|
|
11449
11467
|
} | {
|
|
11450
11468
|
type: 'incompatible_card_format';
|
|
11451
11469
|
message: string;
|
|
11470
|
+
} | {
|
|
11471
|
+
type: 'credential_cannot_be_reissued';
|
|
11472
|
+
message: string;
|
|
11452
11473
|
};
|
|
11453
11474
|
} | {
|
|
11454
11475
|
/** The ID of the action attempt. */
|
|
@@ -12313,6 +12334,9 @@ export interface Routes {
|
|
|
12313
12334
|
} | {
|
|
12314
12335
|
type: 'incompatible_card_format';
|
|
12315
12336
|
message: string;
|
|
12337
|
+
} | {
|
|
12338
|
+
type: 'credential_cannot_be_reissued';
|
|
12339
|
+
message: string;
|
|
12316
12340
|
};
|
|
12317
12341
|
} | {
|
|
12318
12342
|
/** The ID of the action attempt. */
|
|
@@ -13698,6 +13722,10 @@ export interface Routes {
|
|
|
13698
13722
|
message: string;
|
|
13699
13723
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
13700
13724
|
warning_code: 'salto_privacy_mode';
|
|
13725
|
+
} | {
|
|
13726
|
+
message: string;
|
|
13727
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
13728
|
+
warning_code: 'unknown_issue_with_phone';
|
|
13701
13729
|
}>;
|
|
13702
13730
|
/** Date and time at which the device object was created. */
|
|
13703
13731
|
created_at: string;
|
|
@@ -14379,6 +14407,10 @@ export interface Routes {
|
|
|
14379
14407
|
message: string;
|
|
14380
14408
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
14381
14409
|
warning_code: 'salto_privacy_mode';
|
|
14410
|
+
} | {
|
|
14411
|
+
message: string;
|
|
14412
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
14413
|
+
warning_code: 'unknown_issue_with_phone';
|
|
14382
14414
|
}>;
|
|
14383
14415
|
/** Date and time at which the device object was created. */
|
|
14384
14416
|
created_at: string;
|
|
@@ -14629,6 +14661,10 @@ export interface Routes {
|
|
|
14629
14661
|
message: string;
|
|
14630
14662
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
14631
14663
|
warning_code: 'salto_privacy_mode';
|
|
14664
|
+
} | {
|
|
14665
|
+
message: string;
|
|
14666
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
14667
|
+
warning_code: 'unknown_issue_with_phone';
|
|
14632
14668
|
}>;
|
|
14633
14669
|
/** Date and time at which the device object was created. */
|
|
14634
14670
|
created_at: string;
|
|
@@ -14888,6 +14924,10 @@ export interface Routes {
|
|
|
14888
14924
|
message: string;
|
|
14889
14925
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
14890
14926
|
warning_code: 'salto_privacy_mode';
|
|
14927
|
+
} | {
|
|
14928
|
+
message: string;
|
|
14929
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
14930
|
+
warning_code: 'unknown_issue_with_phone';
|
|
14891
14931
|
}>;
|
|
14892
14932
|
/** Date and time at which the device object was created. */
|
|
14893
14933
|
created_at: string;
|
|
@@ -17998,6 +18038,10 @@ export interface Routes {
|
|
|
17998
18038
|
message: string;
|
|
17999
18039
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
18000
18040
|
warning_code: 'salto_privacy_mode';
|
|
18041
|
+
} | {
|
|
18042
|
+
message: string;
|
|
18043
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
18044
|
+
warning_code: 'unknown_issue_with_phone';
|
|
18001
18045
|
}>;
|
|
18002
18046
|
/** Date and time at which the device object was created. */
|
|
18003
18047
|
created_at: string;
|
|
@@ -18643,6 +18687,10 @@ export interface Routes {
|
|
|
18643
18687
|
message: string;
|
|
18644
18688
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
18645
18689
|
warning_code: 'salto_privacy_mode';
|
|
18690
|
+
} | {
|
|
18691
|
+
message: string;
|
|
18692
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
18693
|
+
warning_code: 'unknown_issue_with_phone';
|
|
18646
18694
|
}>;
|
|
18647
18695
|
/** Date and time at which the device object was created. */
|
|
18648
18696
|
created_at: string;
|
|
@@ -19324,6 +19372,10 @@ export interface Routes {
|
|
|
19324
19372
|
message: string;
|
|
19325
19373
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
19326
19374
|
warning_code: 'salto_privacy_mode';
|
|
19375
|
+
} | {
|
|
19376
|
+
message: string;
|
|
19377
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
19378
|
+
warning_code: 'unknown_issue_with_phone';
|
|
19327
19379
|
}>;
|
|
19328
19380
|
/** Date and time at which the device object was created. */
|
|
19329
19381
|
created_at: string;
|
|
@@ -19968,6 +20020,10 @@ export interface Routes {
|
|
|
19968
20020
|
message: string;
|
|
19969
20021
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
19970
20022
|
warning_code: 'salto_privacy_mode';
|
|
20023
|
+
} | {
|
|
20024
|
+
message: string;
|
|
20025
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
20026
|
+
warning_code: 'unknown_issue_with_phone';
|
|
19971
20027
|
}>;
|
|
19972
20028
|
/** Date and time at which the device object was created. */
|
|
19973
20029
|
created_at: string;
|
|
@@ -20578,6 +20634,9 @@ export interface Routes {
|
|
|
20578
20634
|
} | {
|
|
20579
20635
|
type: 'incompatible_card_format';
|
|
20580
20636
|
message: string;
|
|
20637
|
+
} | {
|
|
20638
|
+
type: 'credential_cannot_be_reissued';
|
|
20639
|
+
message: string;
|
|
20581
20640
|
};
|
|
20582
20641
|
} | {
|
|
20583
20642
|
/** The ID of the action attempt. */
|
|
@@ -21444,6 +21503,9 @@ export interface Routes {
|
|
|
21444
21503
|
} | {
|
|
21445
21504
|
type: 'incompatible_card_format';
|
|
21446
21505
|
message: string;
|
|
21506
|
+
} | {
|
|
21507
|
+
type: 'credential_cannot_be_reissued';
|
|
21508
|
+
message: string;
|
|
21447
21509
|
};
|
|
21448
21510
|
} | {
|
|
21449
21511
|
/** The ID of the action attempt. */
|
|
@@ -22416,6 +22478,10 @@ export interface Routes {
|
|
|
22416
22478
|
message: string;
|
|
22417
22479
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
22418
22480
|
warning_code: 'salto_privacy_mode';
|
|
22481
|
+
} | {
|
|
22482
|
+
message: string;
|
|
22483
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
22484
|
+
warning_code: 'unknown_issue_with_phone';
|
|
22419
22485
|
}>;
|
|
22420
22486
|
/** Date and time at which the device object was created. */
|
|
22421
22487
|
created_at: string;
|
|
@@ -23060,6 +23126,10 @@ export interface Routes {
|
|
|
23060
23126
|
message: string;
|
|
23061
23127
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
23062
23128
|
warning_code: 'salto_privacy_mode';
|
|
23129
|
+
} | {
|
|
23130
|
+
message: string;
|
|
23131
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
23132
|
+
warning_code: 'unknown_issue_with_phone';
|
|
23063
23133
|
}>;
|
|
23064
23134
|
/** Date and time at which the device object was created. */
|
|
23065
23135
|
created_at: string;
|
|
@@ -23675,6 +23745,9 @@ export interface Routes {
|
|
|
23675
23745
|
} | {
|
|
23676
23746
|
type: 'incompatible_card_format';
|
|
23677
23747
|
message: string;
|
|
23748
|
+
} | {
|
|
23749
|
+
type: 'credential_cannot_be_reissued';
|
|
23750
|
+
message: string;
|
|
23678
23751
|
};
|
|
23679
23752
|
} | {
|
|
23680
23753
|
/** The ID of the action attempt. */
|
|
@@ -24552,6 +24625,9 @@ export interface Routes {
|
|
|
24552
24625
|
} | {
|
|
24553
24626
|
type: 'incompatible_card_format';
|
|
24554
24627
|
message: string;
|
|
24628
|
+
} | {
|
|
24629
|
+
type: 'credential_cannot_be_reissued';
|
|
24630
|
+
message: string;
|
|
24555
24631
|
};
|
|
24556
24632
|
} | {
|
|
24557
24633
|
/** The ID of the action attempt. */
|
|
@@ -25468,6 +25544,9 @@ export interface Routes {
|
|
|
25468
25544
|
} | {
|
|
25469
25545
|
type: 'incompatible_card_format';
|
|
25470
25546
|
message: string;
|
|
25547
|
+
} | {
|
|
25548
|
+
type: 'credential_cannot_be_reissued';
|
|
25549
|
+
message: string;
|
|
25471
25550
|
};
|
|
25472
25551
|
} | {
|
|
25473
25552
|
/** The ID of the action attempt. */
|
|
@@ -25943,6 +26022,10 @@ export interface Routes {
|
|
|
25943
26022
|
message: string;
|
|
25944
26023
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
25945
26024
|
warning_code: 'salto_privacy_mode';
|
|
26025
|
+
} | {
|
|
26026
|
+
message: string;
|
|
26027
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
26028
|
+
warning_code: 'unknown_issue_with_phone';
|
|
25946
26029
|
}>;
|
|
25947
26030
|
/** Date and time at which the device object was created. */
|
|
25948
26031
|
created_at: string;
|
|
@@ -26155,6 +26238,10 @@ export interface Routes {
|
|
|
26155
26238
|
message: string;
|
|
26156
26239
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
26157
26240
|
warning_code: 'salto_privacy_mode';
|
|
26241
|
+
} | {
|
|
26242
|
+
message: string;
|
|
26243
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
26244
|
+
warning_code: 'unknown_issue_with_phone';
|
|
26158
26245
|
}>;
|
|
26159
26246
|
/** Date and time at which the device object was created. */
|
|
26160
26247
|
created_at: string;
|
|
@@ -26767,6 +26854,9 @@ export interface Routes {
|
|
|
26767
26854
|
} | {
|
|
26768
26855
|
type: 'incompatible_card_format';
|
|
26769
26856
|
message: string;
|
|
26857
|
+
} | {
|
|
26858
|
+
type: 'credential_cannot_be_reissued';
|
|
26859
|
+
message: string;
|
|
26770
26860
|
};
|
|
26771
26861
|
} | {
|
|
26772
26862
|
/** The ID of the action attempt. */
|
|
@@ -27639,6 +27729,9 @@ export interface Routes {
|
|
|
27639
27729
|
} | {
|
|
27640
27730
|
type: 'incompatible_card_format';
|
|
27641
27731
|
message: string;
|
|
27732
|
+
} | {
|
|
27733
|
+
type: 'credential_cannot_be_reissued';
|
|
27734
|
+
message: string;
|
|
27642
27735
|
};
|
|
27643
27736
|
} | {
|
|
27644
27737
|
/** The ID of the action attempt. */
|
|
@@ -28600,6 +28693,10 @@ export interface Routes {
|
|
|
28600
28693
|
message: string;
|
|
28601
28694
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
28602
28695
|
warning_code: 'salto_privacy_mode';
|
|
28696
|
+
} | {
|
|
28697
|
+
message: string;
|
|
28698
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
28699
|
+
warning_code: 'unknown_issue_with_phone';
|
|
28603
28700
|
}>;
|
|
28604
28701
|
/** Date and time at which the device object was created. */
|
|
28605
28702
|
created_at: string;
|
|
@@ -29216,6 +29313,9 @@ export interface Routes {
|
|
|
29216
29313
|
} | {
|
|
29217
29314
|
type: 'incompatible_card_format';
|
|
29218
29315
|
message: string;
|
|
29316
|
+
} | {
|
|
29317
|
+
type: 'credential_cannot_be_reissued';
|
|
29318
|
+
message: string;
|
|
29219
29319
|
};
|
|
29220
29320
|
} | {
|
|
29221
29321
|
/** The ID of the action attempt. */
|
|
@@ -30092,6 +30192,9 @@ export interface Routes {
|
|
|
30092
30192
|
} | {
|
|
30093
30193
|
type: 'incompatible_card_format';
|
|
30094
30194
|
message: string;
|
|
30195
|
+
} | {
|
|
30196
|
+
type: 'credential_cannot_be_reissued';
|
|
30197
|
+
message: string;
|
|
30095
30198
|
};
|
|
30096
30199
|
} | {
|
|
30097
30200
|
/** The ID of the action attempt. */
|
|
@@ -31029,6 +31132,10 @@ export interface Routes {
|
|
|
31029
31132
|
message: string;
|
|
31030
31133
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
31031
31134
|
warning_code: 'salto_privacy_mode';
|
|
31135
|
+
} | {
|
|
31136
|
+
message: string;
|
|
31137
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
31138
|
+
warning_code: 'unknown_issue_with_phone';
|
|
31032
31139
|
}>;
|
|
31033
31140
|
/** Date and time at which the device object was created. */
|
|
31034
31141
|
created_at: string;
|
|
@@ -31673,6 +31780,10 @@ export interface Routes {
|
|
|
31673
31780
|
message: string;
|
|
31674
31781
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
31675
31782
|
warning_code: 'salto_privacy_mode';
|
|
31783
|
+
} | {
|
|
31784
|
+
message: string;
|
|
31785
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
31786
|
+
warning_code: 'unknown_issue_with_phone';
|
|
31676
31787
|
}>;
|
|
31677
31788
|
/** Date and time at which the device object was created. */
|
|
31678
31789
|
created_at: string;
|
|
@@ -32285,6 +32396,9 @@ export interface Routes {
|
|
|
32285
32396
|
} | {
|
|
32286
32397
|
type: 'incompatible_card_format';
|
|
32287
32398
|
message: string;
|
|
32399
|
+
} | {
|
|
32400
|
+
type: 'credential_cannot_be_reissued';
|
|
32401
|
+
message: string;
|
|
32288
32402
|
};
|
|
32289
32403
|
} | {
|
|
32290
32404
|
/** The ID of the action attempt. */
|
|
@@ -33337,6 +33451,9 @@ export interface Routes {
|
|
|
33337
33451
|
} | {
|
|
33338
33452
|
type: 'incompatible_card_format';
|
|
33339
33453
|
message: string;
|
|
33454
|
+
} | {
|
|
33455
|
+
type: 'credential_cannot_be_reissued';
|
|
33456
|
+
message: string;
|
|
33340
33457
|
};
|
|
33341
33458
|
} | {
|
|
33342
33459
|
/** The ID of the action attempt. */
|
|
@@ -34232,6 +34349,9 @@ export interface Routes {
|
|
|
34232
34349
|
} | {
|
|
34233
34350
|
type: 'incompatible_card_format';
|
|
34234
34351
|
message: string;
|
|
34352
|
+
} | {
|
|
34353
|
+
type: 'credential_cannot_be_reissued';
|
|
34354
|
+
message: string;
|
|
34235
34355
|
};
|
|
34236
34356
|
} | {
|
|
34237
34357
|
/** The ID of the action attempt. */
|
|
@@ -35424,6 +35544,10 @@ export interface Routes {
|
|
|
35424
35544
|
message: string;
|
|
35425
35545
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
35426
35546
|
warning_code: 'salto_privacy_mode';
|
|
35547
|
+
} | {
|
|
35548
|
+
message: string;
|
|
35549
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
35550
|
+
warning_code: 'unknown_issue_with_phone';
|
|
35427
35551
|
}>;
|
|
35428
35552
|
/** Date and time at which the device object was created. */
|
|
35429
35553
|
created_at: string;
|
|
@@ -36070,6 +36194,10 @@ export interface Routes {
|
|
|
36070
36194
|
message: string;
|
|
36071
36195
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
36072
36196
|
warning_code: 'salto_privacy_mode';
|
|
36197
|
+
} | {
|
|
36198
|
+
message: string;
|
|
36199
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
36200
|
+
warning_code: 'unknown_issue_with_phone';
|
|
36073
36201
|
}>;
|
|
36074
36202
|
/** Date and time at which the device object was created. */
|
|
36075
36203
|
created_at: string;
|
|
@@ -37105,6 +37233,9 @@ export interface Routes {
|
|
|
37105
37233
|
} | {
|
|
37106
37234
|
type: 'incompatible_card_format';
|
|
37107
37235
|
message: string;
|
|
37236
|
+
} | {
|
|
37237
|
+
type: 'credential_cannot_be_reissued';
|
|
37238
|
+
message: string;
|
|
37108
37239
|
};
|
|
37109
37240
|
} | {
|
|
37110
37241
|
/** The ID of the action attempt. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.338.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zod": "^3.21.4"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@seamapi/blueprint": "^0.
|
|
95
|
+
"@seamapi/blueprint": "^0.34.0",
|
|
96
96
|
"@types/node": "^20.8.10",
|
|
97
97
|
"concurrently": "^8.2.0",
|
|
98
98
|
"del-cli": "^5.0.0",
|
|
@@ -23,10 +23,16 @@ const incompatible_card_format_error = z.object({
|
|
|
23
23
|
message: z.string(),
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
+
const credential_cannot_be_reissued = z.object({
|
|
27
|
+
type: z.literal('credential_cannot_be_reissued'),
|
|
28
|
+
message: z.string(),
|
|
29
|
+
})
|
|
30
|
+
|
|
26
31
|
const error = z.union([
|
|
27
32
|
...common_action_attempt_errors,
|
|
28
33
|
no_credential_on_encoder_error,
|
|
29
34
|
incompatible_card_format_error,
|
|
35
|
+
credential_cannot_be_reissued,
|
|
30
36
|
])
|
|
31
37
|
|
|
32
38
|
const result = acs_credential.or(unmanaged_acs_credential)
|
|
@@ -274,6 +274,17 @@ const device_has_flaky_connection = common_device_warning
|
|
|
274
274
|
})
|
|
275
275
|
.describe('Device has flaky connection.')
|
|
276
276
|
|
|
277
|
+
export const unknown_issue_with_phone = common_device_warning
|
|
278
|
+
.extend({
|
|
279
|
+
warning_code: z
|
|
280
|
+
.literal('unknown_issue_with_phone')
|
|
281
|
+
.describe(warning_code_description),
|
|
282
|
+
})
|
|
283
|
+
.describe(
|
|
284
|
+
'An unknown issue occurred while syncing the state of this phone with the provider. ' +
|
|
285
|
+
'This issue may affect the proper functioning of this phone.',
|
|
286
|
+
)
|
|
287
|
+
|
|
277
288
|
const device_warning = z.union([
|
|
278
289
|
partial_backup_access_code_pool,
|
|
279
290
|
many_active_backup_codes,
|
|
@@ -290,6 +301,7 @@ const device_warning = z.union([
|
|
|
290
301
|
device_has_flaky_connection,
|
|
291
302
|
salto_office_mode,
|
|
292
303
|
salto_privacy_mode,
|
|
304
|
+
unknown_issue_with_phone,
|
|
293
305
|
])
|
|
294
306
|
|
|
295
307
|
export type DeviceWarning = z.infer<typeof device_warning>
|
|
@@ -4251,6 +4251,17 @@ export default {
|
|
|
4251
4251
|
required: ['type', 'message'],
|
|
4252
4252
|
type: 'object',
|
|
4253
4253
|
},
|
|
4254
|
+
{
|
|
4255
|
+
properties: {
|
|
4256
|
+
message: { type: 'string' },
|
|
4257
|
+
type: {
|
|
4258
|
+
enum: ['credential_cannot_be_reissued'],
|
|
4259
|
+
type: 'string',
|
|
4260
|
+
},
|
|
4261
|
+
},
|
|
4262
|
+
required: ['type', 'message'],
|
|
4263
|
+
type: 'object',
|
|
4264
|
+
},
|
|
4254
4265
|
],
|
|
4255
4266
|
},
|
|
4256
4267
|
result: { nullable: true },
|
|
@@ -7212,6 +7223,21 @@ export default {
|
|
|
7212
7223
|
required: ['message', 'warning_code'],
|
|
7213
7224
|
type: 'object',
|
|
7214
7225
|
},
|
|
7226
|
+
{
|
|
7227
|
+
description:
|
|
7228
|
+
'An unknown issue occurred while syncing the state of this phone with the provider. This issue may affect the proper functioning of this phone.',
|
|
7229
|
+
properties: {
|
|
7230
|
+
message: { type: 'string' },
|
|
7231
|
+
warning_code: {
|
|
7232
|
+
description:
|
|
7233
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
7234
|
+
enum: ['unknown_issue_with_phone'],
|
|
7235
|
+
type: 'string',
|
|
7236
|
+
},
|
|
7237
|
+
},
|
|
7238
|
+
required: ['message', 'warning_code'],
|
|
7239
|
+
type: 'object',
|
|
7240
|
+
},
|
|
7215
7241
|
],
|
|
7216
7242
|
},
|
|
7217
7243
|
type: 'array',
|
|
@@ -12272,6 +12298,21 @@ export default {
|
|
|
12272
12298
|
required: ['message', 'warning_code'],
|
|
12273
12299
|
type: 'object',
|
|
12274
12300
|
},
|
|
12301
|
+
{
|
|
12302
|
+
description:
|
|
12303
|
+
'An unknown issue occurred while syncing the state of this phone with the provider. This issue may affect the proper functioning of this phone.',
|
|
12304
|
+
properties: {
|
|
12305
|
+
message: { type: 'string' },
|
|
12306
|
+
warning_code: {
|
|
12307
|
+
description:
|
|
12308
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
12309
|
+
enum: ['unknown_issue_with_phone'],
|
|
12310
|
+
type: 'string',
|
|
12311
|
+
},
|
|
12312
|
+
},
|
|
12313
|
+
required: ['message', 'warning_code'],
|
|
12314
|
+
type: 'object',
|
|
12315
|
+
},
|
|
12275
12316
|
],
|
|
12276
12317
|
},
|
|
12277
12318
|
type: 'array',
|
|
@@ -13969,6 +14010,21 @@ export default {
|
|
|
13969
14010
|
required: ['message', 'warning_code'],
|
|
13970
14011
|
type: 'object',
|
|
13971
14012
|
},
|
|
14013
|
+
{
|
|
14014
|
+
description:
|
|
14015
|
+
'An unknown issue occurred while syncing the state of this phone with the provider. This issue may affect the proper functioning of this phone.',
|
|
14016
|
+
properties: {
|
|
14017
|
+
message: { type: 'string' },
|
|
14018
|
+
warning_code: {
|
|
14019
|
+
description:
|
|
14020
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
14021
|
+
enum: ['unknown_issue_with_phone'],
|
|
14022
|
+
type: 'string',
|
|
14023
|
+
},
|
|
14024
|
+
},
|
|
14025
|
+
required: ['message', 'warning_code'],
|
|
14026
|
+
type: 'object',
|
|
14027
|
+
},
|
|
13972
14028
|
],
|
|
13973
14029
|
},
|
|
13974
14030
|
type: 'array',
|