@seamapi/types 1.261.0 → 1.262.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.
@@ -60,18 +60,18 @@ export declare const read_card_action_attempt: z.ZodDiscriminatedUnion<"status",
60
60
  }>, {
61
61
  action_type: z.ZodLiteral<"READ_CARD">;
62
62
  error: z.ZodObject<{
63
- type: z.ZodString;
63
+ type: z.ZodLiteral<"no_card_on_encoder">;
64
64
  message: z.ZodString;
65
65
  }, "strip", z.ZodTypeAny, {
66
- type: string;
66
+ type: "no_card_on_encoder";
67
67
  message: string;
68
68
  }, {
69
- type: string;
69
+ type: "no_card_on_encoder";
70
70
  message: string;
71
71
  }>;
72
72
  }>, "strip", z.ZodTypeAny, {
73
73
  error: {
74
- type: string;
74
+ type: "no_card_on_encoder";
75
75
  message: string;
76
76
  };
77
77
  status: "error";
@@ -80,7 +80,7 @@ export declare const read_card_action_attempt: z.ZodDiscriminatedUnion<"status",
80
80
  action_type: "READ_CARD";
81
81
  }, {
82
82
  error: {
83
- type: string;
83
+ type: "no_card_on_encoder";
84
84
  message: string;
85
85
  };
86
86
  status: "error";
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
3
  const action_type = z.literal('READ_CARD');
4
4
  const error = z.object({
5
- type: z.string(), // TODO This should be typed properly with the possible errors
5
+ type: z.literal('no_card_on_encoder'),
6
6
  message: z.string(),
7
7
  });
8
8
  const result = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"read-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/read-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;AAE1C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,8DAA8D;IAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,4BAA4B;IAC5B,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,0EAA0E;IAC1E,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,4DAA4D;CAC7D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,0CAA0C,CAAC;IACvD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,oDAAoD,CAAC;IACjE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA"}
1
+ {"version":3,"file":"read-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/read-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;AAE1C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,4BAA4B;IAC5B,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,0EAA0E;IAC1E,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,4DAA4D;CAC7D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,0CAA0C,CAAC;IACvD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,oDAAoD,CAAC;IACjE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA"}
@@ -260,11 +260,6 @@ declare const _default: {
260
260
  minLength: number;
261
261
  type: string;
262
262
  };
263
- encoded_at: {
264
- format: string;
265
- nullable: boolean;
266
- type: string;
267
- };
268
263
  ends_at: {
269
264
  type: string;
270
265
  };
@@ -290,7 +285,7 @@ declare const _default: {
290
285
  external_type_display_name: {
291
286
  type: string;
292
287
  };
293
- is_encoded: {
288
+ is_issued: {
294
289
  type: string;
295
290
  };
296
291
  is_latest_desired_state_synced_with_provider: {
@@ -303,6 +298,11 @@ declare const _default: {
303
298
  is_multi_phone_sync_credential: {
304
299
  type: string;
305
300
  };
301
+ issued_at: {
302
+ format: string;
303
+ nullable: boolean;
304
+ type: string;
305
+ };
306
306
  latest_desired_state_synced_with_provider_at: {
307
307
  format: string;
308
308
  type: string;
@@ -978,6 +978,7 @@ declare const _default: {
978
978
  };
979
979
  type: {
980
980
  type: string;
981
+ enum?: never;
981
982
  };
982
983
  };
983
984
  required: string[];
@@ -1036,6 +1037,46 @@ declare const _default: {
1036
1037
  };
1037
1038
  required: string[];
1038
1039
  type: string;
1040
+ } | {
1041
+ description: string;
1042
+ properties: {
1043
+ action_attempt_id: {
1044
+ description: string;
1045
+ format: string;
1046
+ type: string;
1047
+ 'x-title': string;
1048
+ };
1049
+ action_type: {
1050
+ enum: string[];
1051
+ type: string;
1052
+ };
1053
+ error: {
1054
+ properties: {
1055
+ message: {
1056
+ type: string;
1057
+ };
1058
+ type: {
1059
+ enum: string[];
1060
+ type: string;
1061
+ };
1062
+ };
1063
+ required: string[];
1064
+ type: string;
1065
+ nullable?: never;
1066
+ };
1067
+ result: {
1068
+ nullable: boolean;
1069
+ properties?: never;
1070
+ type?: never;
1071
+ required?: never;
1072
+ };
1073
+ status: {
1074
+ enum: string[];
1075
+ type: string;
1076
+ };
1077
+ };
1078
+ required: string[];
1079
+ type: string;
1039
1080
  } | {
1040
1081
  description: string;
1041
1082
  properties: {
@@ -1163,6 +1204,7 @@ declare const _default: {
1163
1204
  };
1164
1205
  type: {
1165
1206
  type: string;
1207
+ enum?: never;
1166
1208
  };
1167
1209
  };
1168
1210
  required: string[];
@@ -7382,11 +7424,6 @@ declare const _default: {
7382
7424
  minLength: number;
7383
7425
  type: string;
7384
7426
  };
7385
- encoded_at: {
7386
- format: string;
7387
- nullable: boolean;
7388
- type: string;
7389
- };
7390
7427
  ends_at: {
7391
7428
  type: string;
7392
7429
  };
@@ -7412,7 +7449,7 @@ declare const _default: {
7412
7449
  external_type_display_name: {
7413
7450
  type: string;
7414
7451
  };
7415
- is_encoded: {
7452
+ is_issued: {
7416
7453
  type: string;
7417
7454
  };
7418
7455
  is_latest_desired_state_synced_with_provider: {
@@ -7425,6 +7462,11 @@ declare const _default: {
7425
7462
  is_multi_phone_sync_credential: {
7426
7463
  type: string;
7427
7464
  };
7465
+ issued_at: {
7466
+ format: string;
7467
+ nullable: boolean;
7468
+ type: string;
7469
+ };
7428
7470
  latest_desired_state_synced_with_provider_at: {
7429
7471
  format: string;
7430
7472
  type: string;
@@ -7644,11 +7686,6 @@ declare const _default: {
7644
7686
  minLength: number;
7645
7687
  type: string;
7646
7688
  };
7647
- encoded_at: {
7648
- format: string;
7649
- nullable: boolean;
7650
- type: string;
7651
- };
7652
7689
  ends_at: {
7653
7690
  type: string;
7654
7691
  };
@@ -7674,7 +7711,7 @@ declare const _default: {
7674
7711
  external_type_display_name: {
7675
7712
  type: string;
7676
7713
  };
7677
- is_encoded: {
7714
+ is_issued: {
7678
7715
  type: string;
7679
7716
  };
7680
7717
  is_latest_desired_state_synced_with_provider: {
@@ -7687,6 +7724,11 @@ declare const _default: {
7687
7724
  is_multi_phone_sync_credential: {
7688
7725
  type: string;
7689
7726
  };
7727
+ issued_at: {
7728
+ format: string;
7729
+ nullable: boolean;
7730
+ type: string;
7731
+ };
7690
7732
  latest_desired_state_synced_with_provider_at: {
7691
7733
  format: string;
7692
7734
  type: string;
@@ -233,7 +233,6 @@ export default {
233
233
  code: { nullable: true, type: 'string' },
234
234
  created_at: { format: 'date-time', type: 'string' },
235
235
  display_name: { minLength: 1, type: 'string' },
236
- encoded_at: { format: 'date-time', nullable: true, type: 'string' },
237
236
  ends_at: { type: 'string' },
238
237
  errors: {
239
238
  items: {
@@ -257,10 +256,11 @@ export default {
257
256
  type: 'string',
258
257
  },
259
258
  external_type_display_name: { type: 'string' },
260
- is_encoded: { type: 'boolean' },
259
+ is_issued: { type: 'boolean' },
261
260
  is_latest_desired_state_synced_with_provider: { type: 'boolean' },
262
261
  is_managed: { enum: [true], type: 'boolean' },
263
262
  is_multi_phone_sync_credential: { type: 'boolean' },
263
+ issued_at: { format: 'date-time', nullable: true, type: 'string' },
264
264
  latest_desired_state_synced_with_provider_at: {
265
265
  format: 'date-time',
266
266
  type: 'string',
@@ -1206,7 +1206,7 @@ export default {
1206
1206
  error: {
1207
1207
  properties: {
1208
1208
  message: { type: 'string' },
1209
- type: { type: 'string' },
1209
+ type: { enum: ['no_card_on_encoder'], type: 'string' },
1210
1210
  },
1211
1211
  required: ['type', 'message'],
1212
1212
  type: 'object',
@@ -6925,11 +6925,6 @@ export default {
6925
6925
  code: { nullable: true, type: 'string' },
6926
6926
  created_at: { format: 'date-time', type: 'string' },
6927
6927
  display_name: { minLength: 1, type: 'string' },
6928
- encoded_at: {
6929
- format: 'date-time',
6930
- nullable: true,
6931
- type: 'string',
6932
- },
6933
6928
  ends_at: { type: 'string' },
6934
6929
  errors: {
6935
6930
  items: {
@@ -6953,12 +6948,17 @@ export default {
6953
6948
  type: 'string',
6954
6949
  },
6955
6950
  external_type_display_name: { type: 'string' },
6956
- is_encoded: { type: 'boolean' },
6951
+ is_issued: { type: 'boolean' },
6957
6952
  is_latest_desired_state_synced_with_provider: {
6958
6953
  type: 'boolean',
6959
6954
  },
6960
6955
  is_managed: { enum: [false], type: 'boolean' },
6961
6956
  is_multi_phone_sync_credential: { type: 'boolean' },
6957
+ issued_at: {
6958
+ format: 'date-time',
6959
+ nullable: true,
6960
+ type: 'string',
6961
+ },
6962
6962
  latest_desired_state_synced_with_provider_at: {
6963
6963
  format: 'date-time',
6964
6964
  type: 'string',
@@ -7110,11 +7110,6 @@ export default {
7110
7110
  code: { nullable: true, type: 'string' },
7111
7111
  created_at: { format: 'date-time', type: 'string' },
7112
7112
  display_name: { minLength: 1, type: 'string' },
7113
- encoded_at: {
7114
- format: 'date-time',
7115
- nullable: true,
7116
- type: 'string',
7117
- },
7118
7113
  ends_at: { type: 'string' },
7119
7114
  errors: {
7120
7115
  items: {
@@ -7138,12 +7133,17 @@ export default {
7138
7133
  type: 'string',
7139
7134
  },
7140
7135
  external_type_display_name: { type: 'string' },
7141
- is_encoded: { type: 'boolean' },
7136
+ is_issued: { type: 'boolean' },
7142
7137
  is_latest_desired_state_synced_with_provider: {
7143
7138
  type: 'boolean',
7144
7139
  },
7145
7140
  is_managed: { enum: [false], type: 'boolean' },
7146
7141
  is_multi_phone_sync_credential: { type: 'boolean' },
7142
+ issued_at: {
7143
+ format: 'date-time',
7144
+ nullable: true,
7145
+ type: 'string',
7146
+ },
7147
7147
  latest_desired_state_synced_with_provider_at: {
7148
7148
  format: 'date-time',
7149
7149
  type: 'string',