@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.
@@ -6589,6 +6589,15 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
6589
6589
  }, {
6590
6590
  message: string;
6591
6591
  type: "incompatible_card_format";
6592
+ }>, z.ZodObject<{
6593
+ type: z.ZodLiteral<"credential_cannot_be_reissued">;
6594
+ message: z.ZodString;
6595
+ }, "strip", z.ZodTypeAny, {
6596
+ message: string;
6597
+ type: "credential_cannot_be_reissued";
6598
+ }, {
6599
+ message: string;
6600
+ type: "credential_cannot_be_reissued";
6592
6601
  }>]>;
6593
6602
  }>, "strip", z.ZodTypeAny, {
6594
6603
  status: "error";
@@ -6605,6 +6614,9 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
6605
6614
  } | {
6606
6615
  message: string;
6607
6616
  type: "incompatible_card_format";
6617
+ } | {
6618
+ message: string;
6619
+ type: "credential_cannot_be_reissued";
6608
6620
  };
6609
6621
  result: null;
6610
6622
  action_type: "ENCODE_CREDENTIAL";
@@ -6623,6 +6635,9 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
6623
6635
  } | {
6624
6636
  message: string;
6625
6637
  type: "incompatible_card_format";
6638
+ } | {
6639
+ message: string;
6640
+ type: "credential_cannot_be_reissued";
6626
6641
  };
6627
6642
  result: null;
6628
6643
  action_type: "ENCODE_CREDENTIAL";
@@ -8186,6 +8201,16 @@ declare const device_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
8186
8201
  }, {
8187
8202
  message: string;
8188
8203
  warning_code: "salto_privacy_mode";
8204
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8205
+ message: z.ZodString;
8206
+ }, {
8207
+ warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
8208
+ }>, "strip", z.ZodTypeAny, {
8209
+ message: string;
8210
+ warning_code: "unknown_issue_with_phone";
8211
+ }, {
8212
+ message: string;
8213
+ warning_code: "unknown_issue_with_phone";
8189
8214
  }>]>;
8190
8215
  type DeviceWarning = z.infer<typeof device_warning>;
8191
8216
  declare const device: z.ZodObject<z.objectUtil.extendShape<{
@@ -10377,6 +10402,16 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
10377
10402
  }, {
10378
10403
  message: string;
10379
10404
  warning_code: "salto_privacy_mode";
10405
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10406
+ message: z.ZodString;
10407
+ }, {
10408
+ warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
10409
+ }>, "strip", z.ZodTypeAny, {
10410
+ message: string;
10411
+ warning_code: "unknown_issue_with_phone";
10412
+ }, {
10413
+ message: string;
10414
+ warning_code: "unknown_issue_with_phone";
10380
10415
  }>]>, "many">;
10381
10416
  created_at: z.ZodString;
10382
10417
  is_managed: z.ZodLiteral<true>;
@@ -10503,6 +10538,9 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
10503
10538
  } | {
10504
10539
  message: string;
10505
10540
  warning_code: "device_has_flaky_connection";
10541
+ } | {
10542
+ message: string;
10543
+ warning_code: "unknown_issue_with_phone";
10506
10544
  })[];
10507
10545
  custom_metadata: Record<string, string | boolean>;
10508
10546
  display_name: string;
@@ -11012,6 +11050,9 @@ declare const device: z.ZodObject<z.objectUtil.extendShape<{
11012
11050
  } | {
11013
11051
  message: string;
11014
11052
  warning_code: "device_has_flaky_connection";
11053
+ } | {
11054
+ message: string;
11055
+ warning_code: "unknown_issue_with_phone";
11015
11056
  })[];
11016
11057
  custom_metadata: Record<string, string | boolean>;
11017
11058
  display_name: string;
@@ -13705,6 +13746,16 @@ declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.objectUti
13705
13746
  }, {
13706
13747
  message: string;
13707
13748
  warning_code: "salto_privacy_mode";
13749
+ }>, z.ZodObject<z.objectUtil.extendShape<{
13750
+ message: z.ZodString;
13751
+ }, {
13752
+ warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
13753
+ }>, "strip", z.ZodTypeAny, {
13754
+ message: string;
13755
+ warning_code: "unknown_issue_with_phone";
13756
+ }, {
13757
+ message: string;
13758
+ warning_code: "unknown_issue_with_phone";
13708
13759
  }>]>, "many">;
13709
13760
  created_at: z.ZodString;
13710
13761
  is_managed: z.ZodLiteral<true>;
@@ -13980,6 +14031,9 @@ declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.objectUti
13980
14031
  } | {
13981
14032
  message: string;
13982
14033
  warning_code: "device_has_flaky_connection";
14034
+ } | {
14035
+ message: string;
14036
+ warning_code: "unknown_issue_with_phone";
13983
14037
  })[];
13984
14038
  device_id: string;
13985
14039
  device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat") | ("ios_phone" | "android_phone");
@@ -14139,6 +14193,9 @@ declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.objectUti
14139
14193
  } | {
14140
14194
  message: string;
14141
14195
  warning_code: "device_has_flaky_connection";
14196
+ } | {
14197
+ message: string;
14198
+ warning_code: "unknown_issue_with_phone";
14142
14199
  })[];
14143
14200
  device_id: string;
14144
14201
  device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat") | ("ios_phone" | "android_phone");
@@ -41124,6 +41181,9 @@ interface Routes {
41124
41181
  } | {
41125
41182
  type: 'incompatible_card_format';
41126
41183
  message: string;
41184
+ } | {
41185
+ type: 'credential_cannot_be_reissued';
41186
+ message: string;
41127
41187
  };
41128
41188
  } | {
41129
41189
  /** The ID of the action attempt. */
@@ -42531,6 +42591,9 @@ interface Routes {
42531
42591
  } | {
42532
42592
  type: 'incompatible_card_format';
42533
42593
  message: string;
42594
+ } | {
42595
+ type: 'credential_cannot_be_reissued';
42596
+ message: string;
42534
42597
  };
42535
42598
  } | {
42536
42599
  /** The ID of the action attempt. */
@@ -44744,6 +44807,9 @@ interface Routes {
44744
44807
  } | {
44745
44808
  type: 'incompatible_card_format';
44746
44809
  message: string;
44810
+ } | {
44811
+ type: 'credential_cannot_be_reissued';
44812
+ message: string;
44747
44813
  };
44748
44814
  } | {
44749
44815
  /** The ID of the action attempt. */
@@ -46138,6 +46204,9 @@ interface Routes {
46138
46204
  } | {
46139
46205
  type: 'incompatible_card_format';
46140
46206
  message: string;
46207
+ } | {
46208
+ type: 'credential_cannot_be_reissued';
46209
+ message: string;
46141
46210
  };
46142
46211
  } | {
46143
46212
  /** The ID of the action attempt. */
@@ -48730,6 +48799,9 @@ interface Routes {
48730
48799
  } | {
48731
48800
  type: 'incompatible_card_format';
48732
48801
  message: string;
48802
+ } | {
48803
+ type: 'credential_cannot_be_reissued';
48804
+ message: string;
48733
48805
  };
48734
48806
  } | {
48735
48807
  /** The ID of the action attempt. */
@@ -49642,6 +49714,9 @@ interface Routes {
49642
49714
  } | {
49643
49715
  type: 'incompatible_card_format';
49644
49716
  message: string;
49717
+ } | {
49718
+ type: 'credential_cannot_be_reissued';
49719
+ message: string;
49645
49720
  };
49646
49721
  } | {
49647
49722
  /** The ID of the action attempt. */
@@ -51969,6 +52044,9 @@ interface Routes {
51969
52044
  } | {
51970
52045
  type: 'incompatible_card_format';
51971
52046
  message: string;
52047
+ } | {
52048
+ type: 'credential_cannot_be_reissued';
52049
+ message: string;
51972
52050
  };
51973
52051
  } | {
51974
52052
  /** The ID of the action attempt. */
@@ -52833,6 +52911,9 @@ interface Routes {
52833
52911
  } | {
52834
52912
  type: 'incompatible_card_format';
52835
52913
  message: string;
52914
+ } | {
52915
+ type: 'credential_cannot_be_reissued';
52916
+ message: string;
52836
52917
  };
52837
52918
  } | {
52838
52919
  /** The ID of the action attempt. */
@@ -54218,6 +54299,10 @@ interface Routes {
54218
54299
  message: string;
54219
54300
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
54220
54301
  warning_code: 'salto_privacy_mode';
54302
+ } | {
54303
+ message: string;
54304
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
54305
+ warning_code: 'unknown_issue_with_phone';
54221
54306
  }>;
54222
54307
  /** Date and time at which the device object was created. */
54223
54308
  created_at: string;
@@ -54899,6 +54984,10 @@ interface Routes {
54899
54984
  message: string;
54900
54985
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
54901
54986
  warning_code: 'salto_privacy_mode';
54987
+ } | {
54988
+ message: string;
54989
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
54990
+ warning_code: 'unknown_issue_with_phone';
54902
54991
  }>;
54903
54992
  /** Date and time at which the device object was created. */
54904
54993
  created_at: string;
@@ -55149,6 +55238,10 @@ interface Routes {
55149
55238
  message: string;
55150
55239
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
55151
55240
  warning_code: 'salto_privacy_mode';
55241
+ } | {
55242
+ message: string;
55243
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
55244
+ warning_code: 'unknown_issue_with_phone';
55152
55245
  }>;
55153
55246
  /** Date and time at which the device object was created. */
55154
55247
  created_at: string;
@@ -55408,6 +55501,10 @@ interface Routes {
55408
55501
  message: string;
55409
55502
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
55410
55503
  warning_code: 'salto_privacy_mode';
55504
+ } | {
55505
+ message: string;
55506
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
55507
+ warning_code: 'unknown_issue_with_phone';
55411
55508
  }>;
55412
55509
  /** Date and time at which the device object was created. */
55413
55510
  created_at: string;
@@ -58518,6 +58615,10 @@ interface Routes {
58518
58615
  message: string;
58519
58616
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
58520
58617
  warning_code: 'salto_privacy_mode';
58618
+ } | {
58619
+ message: string;
58620
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
58621
+ warning_code: 'unknown_issue_with_phone';
58521
58622
  }>;
58522
58623
  /** Date and time at which the device object was created. */
58523
58624
  created_at: string;
@@ -59163,6 +59264,10 @@ interface Routes {
59163
59264
  message: string;
59164
59265
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
59165
59266
  warning_code: 'salto_privacy_mode';
59267
+ } | {
59268
+ message: string;
59269
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
59270
+ warning_code: 'unknown_issue_with_phone';
59166
59271
  }>;
59167
59272
  /** Date and time at which the device object was created. */
59168
59273
  created_at: string;
@@ -59844,6 +59949,10 @@ interface Routes {
59844
59949
  message: string;
59845
59950
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
59846
59951
  warning_code: 'salto_privacy_mode';
59952
+ } | {
59953
+ message: string;
59954
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
59955
+ warning_code: 'unknown_issue_with_phone';
59847
59956
  }>;
59848
59957
  /** Date and time at which the device object was created. */
59849
59958
  created_at: string;
@@ -60488,6 +60597,10 @@ interface Routes {
60488
60597
  message: string;
60489
60598
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
60490
60599
  warning_code: 'salto_privacy_mode';
60600
+ } | {
60601
+ message: string;
60602
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
60603
+ warning_code: 'unknown_issue_with_phone';
60491
60604
  }>;
60492
60605
  /** Date and time at which the device object was created. */
60493
60606
  created_at: string;
@@ -61098,6 +61211,9 @@ interface Routes {
61098
61211
  } | {
61099
61212
  type: 'incompatible_card_format';
61100
61213
  message: string;
61214
+ } | {
61215
+ type: 'credential_cannot_be_reissued';
61216
+ message: string;
61101
61217
  };
61102
61218
  } | {
61103
61219
  /** The ID of the action attempt. */
@@ -61964,6 +62080,9 @@ interface Routes {
61964
62080
  } | {
61965
62081
  type: 'incompatible_card_format';
61966
62082
  message: string;
62083
+ } | {
62084
+ type: 'credential_cannot_be_reissued';
62085
+ message: string;
61967
62086
  };
61968
62087
  } | {
61969
62088
  /** The ID of the action attempt. */
@@ -62936,6 +63055,10 @@ interface Routes {
62936
63055
  message: string;
62937
63056
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
62938
63057
  warning_code: 'salto_privacy_mode';
63058
+ } | {
63059
+ message: string;
63060
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
63061
+ warning_code: 'unknown_issue_with_phone';
62939
63062
  }>;
62940
63063
  /** Date and time at which the device object was created. */
62941
63064
  created_at: string;
@@ -63580,6 +63703,10 @@ interface Routes {
63580
63703
  message: string;
63581
63704
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
63582
63705
  warning_code: 'salto_privacy_mode';
63706
+ } | {
63707
+ message: string;
63708
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
63709
+ warning_code: 'unknown_issue_with_phone';
63583
63710
  }>;
63584
63711
  /** Date and time at which the device object was created. */
63585
63712
  created_at: string;
@@ -64195,6 +64322,9 @@ interface Routes {
64195
64322
  } | {
64196
64323
  type: 'incompatible_card_format';
64197
64324
  message: string;
64325
+ } | {
64326
+ type: 'credential_cannot_be_reissued';
64327
+ message: string;
64198
64328
  };
64199
64329
  } | {
64200
64330
  /** The ID of the action attempt. */
@@ -65072,6 +65202,9 @@ interface Routes {
65072
65202
  } | {
65073
65203
  type: 'incompatible_card_format';
65074
65204
  message: string;
65205
+ } | {
65206
+ type: 'credential_cannot_be_reissued';
65207
+ message: string;
65075
65208
  };
65076
65209
  } | {
65077
65210
  /** The ID of the action attempt. */
@@ -65988,6 +66121,9 @@ interface Routes {
65988
66121
  } | {
65989
66122
  type: 'incompatible_card_format';
65990
66123
  message: string;
66124
+ } | {
66125
+ type: 'credential_cannot_be_reissued';
66126
+ message: string;
65991
66127
  };
65992
66128
  } | {
65993
66129
  /** The ID of the action attempt. */
@@ -66463,6 +66599,10 @@ interface Routes {
66463
66599
  message: string;
66464
66600
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
66465
66601
  warning_code: 'salto_privacy_mode';
66602
+ } | {
66603
+ message: string;
66604
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
66605
+ warning_code: 'unknown_issue_with_phone';
66466
66606
  }>;
66467
66607
  /** Date and time at which the device object was created. */
66468
66608
  created_at: string;
@@ -66675,6 +66815,10 @@ interface Routes {
66675
66815
  message: string;
66676
66816
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
66677
66817
  warning_code: 'salto_privacy_mode';
66818
+ } | {
66819
+ message: string;
66820
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
66821
+ warning_code: 'unknown_issue_with_phone';
66678
66822
  }>;
66679
66823
  /** Date and time at which the device object was created. */
66680
66824
  created_at: string;
@@ -67287,6 +67431,9 @@ interface Routes {
67287
67431
  } | {
67288
67432
  type: 'incompatible_card_format';
67289
67433
  message: string;
67434
+ } | {
67435
+ type: 'credential_cannot_be_reissued';
67436
+ message: string;
67290
67437
  };
67291
67438
  } | {
67292
67439
  /** The ID of the action attempt. */
@@ -68159,6 +68306,9 @@ interface Routes {
68159
68306
  } | {
68160
68307
  type: 'incompatible_card_format';
68161
68308
  message: string;
68309
+ } | {
68310
+ type: 'credential_cannot_be_reissued';
68311
+ message: string;
68162
68312
  };
68163
68313
  } | {
68164
68314
  /** The ID of the action attempt. */
@@ -69120,6 +69270,10 @@ interface Routes {
69120
69270
  message: string;
69121
69271
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
69122
69272
  warning_code: 'salto_privacy_mode';
69273
+ } | {
69274
+ message: string;
69275
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
69276
+ warning_code: 'unknown_issue_with_phone';
69123
69277
  }>;
69124
69278
  /** Date and time at which the device object was created. */
69125
69279
  created_at: string;
@@ -69736,6 +69890,9 @@ interface Routes {
69736
69890
  } | {
69737
69891
  type: 'incompatible_card_format';
69738
69892
  message: string;
69893
+ } | {
69894
+ type: 'credential_cannot_be_reissued';
69895
+ message: string;
69739
69896
  };
69740
69897
  } | {
69741
69898
  /** The ID of the action attempt. */
@@ -70612,6 +70769,9 @@ interface Routes {
70612
70769
  } | {
70613
70770
  type: 'incompatible_card_format';
70614
70771
  message: string;
70772
+ } | {
70773
+ type: 'credential_cannot_be_reissued';
70774
+ message: string;
70615
70775
  };
70616
70776
  } | {
70617
70777
  /** The ID of the action attempt. */
@@ -71549,6 +71709,10 @@ interface Routes {
71549
71709
  message: string;
71550
71710
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
71551
71711
  warning_code: 'salto_privacy_mode';
71712
+ } | {
71713
+ message: string;
71714
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
71715
+ warning_code: 'unknown_issue_with_phone';
71552
71716
  }>;
71553
71717
  /** Date and time at which the device object was created. */
71554
71718
  created_at: string;
@@ -72193,6 +72357,10 @@ interface Routes {
72193
72357
  message: string;
72194
72358
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
72195
72359
  warning_code: 'salto_privacy_mode';
72360
+ } | {
72361
+ message: string;
72362
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
72363
+ warning_code: 'unknown_issue_with_phone';
72196
72364
  }>;
72197
72365
  /** Date and time at which the device object was created. */
72198
72366
  created_at: string;
@@ -72805,6 +72973,9 @@ interface Routes {
72805
72973
  } | {
72806
72974
  type: 'incompatible_card_format';
72807
72975
  message: string;
72976
+ } | {
72977
+ type: 'credential_cannot_be_reissued';
72978
+ message: string;
72808
72979
  };
72809
72980
  } | {
72810
72981
  /** The ID of the action attempt. */
@@ -73857,6 +74028,9 @@ interface Routes {
73857
74028
  } | {
73858
74029
  type: 'incompatible_card_format';
73859
74030
  message: string;
74031
+ } | {
74032
+ type: 'credential_cannot_be_reissued';
74033
+ message: string;
73860
74034
  };
73861
74035
  } | {
73862
74036
  /** The ID of the action attempt. */
@@ -74752,6 +74926,9 @@ interface Routes {
74752
74926
  } | {
74753
74927
  type: 'incompatible_card_format';
74754
74928
  message: string;
74929
+ } | {
74930
+ type: 'credential_cannot_be_reissued';
74931
+ message: string;
74755
74932
  };
74756
74933
  } | {
74757
74934
  /** The ID of the action attempt. */
@@ -75944,6 +76121,10 @@ interface Routes {
75944
76121
  message: string;
75945
76122
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
75946
76123
  warning_code: 'salto_privacy_mode';
76124
+ } | {
76125
+ message: string;
76126
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
76127
+ warning_code: 'unknown_issue_with_phone';
75947
76128
  }>;
75948
76129
  /** Date and time at which the device object was created. */
75949
76130
  created_at: string;
@@ -76590,6 +76771,10 @@ interface Routes {
76590
76771
  message: string;
76591
76772
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
76592
76773
  warning_code: 'salto_privacy_mode';
76774
+ } | {
76775
+ message: string;
76776
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
76777
+ warning_code: 'unknown_issue_with_phone';
76593
76778
  }>;
76594
76779
  /** Date and time at which the device object was created. */
76595
76780
  created_at: string;
@@ -77625,6 +77810,9 @@ interface Routes {
77625
77810
  } | {
77626
77811
  type: 'incompatible_card_format';
77627
77812
  message: string;
77813
+ } | {
77814
+ type: 'credential_cannot_be_reissued';
77815
+ message: string;
77628
77816
  };
77629
77817
  } | {
77630
77818
  /** The ID of the action attempt. */
@@ -2576,6 +2576,15 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
2576
2576
  }, {
2577
2577
  type: "incompatible_card_format";
2578
2578
  message: string;
2579
+ }>, z.ZodObject<{
2580
+ type: z.ZodLiteral<"credential_cannot_be_reissued">;
2581
+ message: z.ZodString;
2582
+ }, "strip", z.ZodTypeAny, {
2583
+ type: "credential_cannot_be_reissued";
2584
+ message: string;
2585
+ }, {
2586
+ type: "credential_cannot_be_reissued";
2587
+ message: string;
2579
2588
  }>]>;
2580
2589
  }>, "strip", z.ZodTypeAny, {
2581
2590
  error: {
@@ -2590,6 +2599,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
2590
2599
  } | {
2591
2600
  type: "incompatible_card_format";
2592
2601
  message: string;
2602
+ } | {
2603
+ type: "credential_cannot_be_reissued";
2604
+ message: string;
2593
2605
  };
2594
2606
  status: "error";
2595
2607
  action_attempt_id: string;
@@ -2608,6 +2620,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
2608
2620
  } | {
2609
2621
  type: "incompatible_card_format";
2610
2622
  message: string;
2623
+ } | {
2624
+ type: "credential_cannot_be_reissued";
2625
+ message: string;
2611
2626
  };
2612
2627
  status: "error";
2613
2628
  action_attempt_id: string;
@@ -957,6 +957,15 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
957
957
  }, {
958
958
  type: "incompatible_card_format";
959
959
  message: string;
960
+ }>, z.ZodObject<{
961
+ type: z.ZodLiteral<"credential_cannot_be_reissued">;
962
+ message: z.ZodString;
963
+ }, "strip", z.ZodTypeAny, {
964
+ type: "credential_cannot_be_reissued";
965
+ message: string;
966
+ }, {
967
+ type: "credential_cannot_be_reissued";
968
+ message: string;
960
969
  }>]>;
961
970
  }>, "strip", z.ZodTypeAny, {
962
971
  error: {
@@ -971,6 +980,9 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
971
980
  } | {
972
981
  type: "incompatible_card_format";
973
982
  message: string;
983
+ } | {
984
+ type: "credential_cannot_be_reissued";
985
+ message: string;
974
986
  };
975
987
  status: "error";
976
988
  action_attempt_id: string;
@@ -989,6 +1001,9 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
989
1001
  } | {
990
1002
  type: "incompatible_card_format";
991
1003
  message: string;
1004
+ } | {
1005
+ type: "credential_cannot_be_reissued";
1006
+ message: string;
992
1007
  };
993
1008
  status: "error";
994
1009
  action_attempt_id: string;
@@ -10,10 +10,15 @@ const incompatible_card_format_error = z.object({
10
10
  type: z.literal('incompatible_card_format'),
11
11
  message: z.string(),
12
12
  });
13
+ const credential_cannot_be_reissued = z.object({
14
+ type: z.literal('credential_cannot_be_reissued'),
15
+ message: z.string(),
16
+ });
13
17
  const error = z.union([
14
18
  ...common_action_attempt_errors,
15
19
  no_credential_on_encoder_error,
16
20
  incompatible_card_format_error,
21
+ credential_cannot_be_reissued,
17
22
  ]);
18
23
  const result = acs_credential.or(unmanaged_acs_credential);
19
24
  export const encode_credential_action_attempt = z.discriminatedUnion('status', [
@@ -1 +1 @@
1
- {"version":3,"file":"encode-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAElD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;CAC/B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2DAA2D,CAAC;IACxE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wDAAwD,CAAC;CACtE,CAAC,CAAA"}
1
+ {"version":3,"file":"encode-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAElD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;CAC9B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2DAA2D,CAAC;IACxE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wDAAwD,CAAC;CACtE,CAAC,CAAA"}
@@ -210,6 +210,17 @@ export declare const device_error: z.ZodUnion<[z.ZodObject<z.objectUtil.extendSh
210
210
  is_device_error: true;
211
211
  }>]>;
212
212
  export type DeviceError = z.infer<typeof device_error>;
213
+ export declare const unknown_issue_with_phone: z.ZodObject<z.objectUtil.extendShape<{
214
+ message: z.ZodString;
215
+ }, {
216
+ warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
217
+ }>, "strip", z.ZodTypeAny, {
218
+ message: string;
219
+ warning_code: "unknown_issue_with_phone";
220
+ }, {
221
+ message: string;
222
+ warning_code: "unknown_issue_with_phone";
223
+ }>;
213
224
  declare const device_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
214
225
  message: z.ZodString;
215
226
  }, {
@@ -360,6 +371,16 @@ declare const device_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
360
371
  }, {
361
372
  message: string;
362
373
  warning_code: "salto_privacy_mode";
374
+ }>, z.ZodObject<z.objectUtil.extendShape<{
375
+ message: z.ZodString;
376
+ }, {
377
+ warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
378
+ }>, "strip", z.ZodTypeAny, {
379
+ message: string;
380
+ warning_code: "unknown_issue_with_phone";
381
+ }, {
382
+ message: string;
383
+ warning_code: "unknown_issue_with_phone";
363
384
  }>]>;
364
385
  export type DeviceWarning = z.infer<typeof device_warning>;
365
386
  export declare const common_device_properties: z.ZodObject<{
@@ -2703,6 +2724,16 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2703
2724
  }, {
2704
2725
  message: string;
2705
2726
  warning_code: "salto_privacy_mode";
2727
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2728
+ message: z.ZodString;
2729
+ }, {
2730
+ warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
2731
+ }>, "strip", z.ZodTypeAny, {
2732
+ message: string;
2733
+ warning_code: "unknown_issue_with_phone";
2734
+ }, {
2735
+ message: string;
2736
+ warning_code: "unknown_issue_with_phone";
2706
2737
  }>]>, "many">;
2707
2738
  created_at: z.ZodString;
2708
2739
  is_managed: z.ZodLiteral<true>;
@@ -2833,6 +2864,9 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2833
2864
  } | {
2834
2865
  message: string;
2835
2866
  warning_code: "device_has_flaky_connection";
2867
+ } | {
2868
+ message: string;
2869
+ warning_code: "unknown_issue_with_phone";
2836
2870
  })[];
2837
2871
  custom_metadata: Record<string, string | boolean>;
2838
2872
  display_name: string;
@@ -3342,6 +3376,9 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3342
3376
  } | {
3343
3377
  message: string;
3344
3378
  warning_code: "device_has_flaky_connection";
3379
+ } | {
3380
+ message: string;
3381
+ warning_code: "unknown_issue_with_phone";
3345
3382
  })[];
3346
3383
  custom_metadata: Record<string, string | boolean>;
3347
3384
  display_name: string;