@seamapi/types 1.948.0 → 1.949.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.
@@ -74,22 +74,6 @@ declare const access_code_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObj
74
74
  message: z.ZodString;
75
75
  is_access_code_error: z.ZodLiteral<true>;
76
76
  created_at: z.ZodOptional<z.ZodString>;
77
- } & {
78
- error_code: z.ZodLiteral<"duplicate_code_attempt_prevented">;
79
- }, "strip", z.ZodTypeAny, {
80
- message: string;
81
- error_code: "duplicate_code_attempt_prevented";
82
- is_access_code_error: true;
83
- created_at?: string | undefined;
84
- }, {
85
- message: string;
86
- error_code: "duplicate_code_attempt_prevented";
87
- is_access_code_error: true;
88
- created_at?: string | undefined;
89
- }>, z.ZodObject<{
90
- message: z.ZodString;
91
- is_access_code_error: z.ZodLiteral<true>;
92
- created_at: z.ZodOptional<z.ZodString>;
93
77
  } & {
94
78
  error_code: z.ZodLiteral<"no_space_for_access_code_on_device">;
95
79
  }, "strip", z.ZodTypeAny, {
@@ -421,22 +405,6 @@ declare const access_code: z.ZodObject<{
421
405
  message: z.ZodString;
422
406
  is_access_code_error: z.ZodLiteral<true>;
423
407
  created_at: z.ZodOptional<z.ZodString>;
424
- } & {
425
- error_code: z.ZodLiteral<"duplicate_code_attempt_prevented">;
426
- }, "strip", z.ZodTypeAny, {
427
- message: string;
428
- error_code: "duplicate_code_attempt_prevented";
429
- is_access_code_error: true;
430
- created_at?: string | undefined;
431
- }, {
432
- message: string;
433
- error_code: "duplicate_code_attempt_prevented";
434
- is_access_code_error: true;
435
- created_at?: string | undefined;
436
- }>, z.ZodObject<{
437
- message: z.ZodString;
438
- is_access_code_error: z.ZodLiteral<true>;
439
- created_at: z.ZodOptional<z.ZodString>;
440
408
  } & {
441
409
  error_code: z.ZodLiteral<"no_space_for_access_code_on_device">;
442
410
  }, "strip", z.ZodTypeAny, {
@@ -1413,11 +1381,6 @@ declare const access_code: z.ZodObject<{
1413
1381
  created_at?: string | undefined;
1414
1382
  unmanaged_access_code_id?: string | undefined;
1415
1383
  managed_access_code_id?: string | undefined;
1416
- } | {
1417
- message: string;
1418
- error_code: "duplicate_code_attempt_prevented";
1419
- is_access_code_error: true;
1420
- created_at?: string | undefined;
1421
1384
  } | {
1422
1385
  message: string;
1423
1386
  error_code: "no_space_for_access_code_on_device";
@@ -1701,11 +1664,6 @@ declare const access_code: z.ZodObject<{
1701
1664
  created_at?: string | undefined;
1702
1665
  unmanaged_access_code_id?: string | undefined;
1703
1666
  managed_access_code_id?: string | undefined;
1704
- } | {
1705
- message: string;
1706
- error_code: "duplicate_code_attempt_prevented";
1707
- is_access_code_error: true;
1708
- created_at?: string | undefined;
1709
1667
  } | {
1710
1668
  message: string;
1711
1669
  error_code: "no_space_for_access_code_on_device";
@@ -1924,22 +1882,6 @@ declare const unmanaged_access_code: z.ZodObject<{
1924
1882
  message: z.ZodString;
1925
1883
  is_access_code_error: z.ZodLiteral<true>;
1926
1884
  created_at: z.ZodOptional<z.ZodString>;
1927
- } & {
1928
- error_code: z.ZodLiteral<"duplicate_code_attempt_prevented">;
1929
- }, "strip", z.ZodTypeAny, {
1930
- message: string;
1931
- error_code: "duplicate_code_attempt_prevented";
1932
- is_access_code_error: true;
1933
- created_at?: string | undefined;
1934
- }, {
1935
- message: string;
1936
- error_code: "duplicate_code_attempt_prevented";
1937
- is_access_code_error: true;
1938
- created_at?: string | undefined;
1939
- }>, z.ZodObject<{
1940
- message: z.ZodString;
1941
- is_access_code_error: z.ZodLiteral<true>;
1942
- created_at: z.ZodOptional<z.ZodString>;
1943
1885
  } & {
1944
1886
  error_code: z.ZodLiteral<"no_space_for_access_code_on_device">;
1945
1887
  }, "strip", z.ZodTypeAny, {
@@ -2742,11 +2684,6 @@ declare const unmanaged_access_code: z.ZodObject<{
2742
2684
  created_at?: string | undefined;
2743
2685
  unmanaged_access_code_id?: string | undefined;
2744
2686
  managed_access_code_id?: string | undefined;
2745
- } | {
2746
- message: string;
2747
- error_code: "duplicate_code_attempt_prevented";
2748
- is_access_code_error: true;
2749
- created_at?: string | undefined;
2750
2687
  } | {
2751
2688
  message: string;
2752
2689
  error_code: "no_space_for_access_code_on_device";
@@ -2977,11 +2914,6 @@ declare const unmanaged_access_code: z.ZodObject<{
2977
2914
  created_at?: string | undefined;
2978
2915
  unmanaged_access_code_id?: string | undefined;
2979
2916
  managed_access_code_id?: string | undefined;
2980
- } | {
2981
- message: string;
2982
- error_code: "duplicate_code_attempt_prevented";
2983
- is_access_code_error: true;
2984
- created_at?: string | undefined;
2985
2917
  } | {
2986
2918
  message: string;
2987
2919
  error_code: "no_space_for_access_code_on_device";
@@ -31990,15 +31922,6 @@ type Routes = {
31990
31922
  unmanaged_access_code_id?: string | undefined;
31991
31923
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
31992
31924
  managed_access_code_id?: string | undefined;
31993
- } | {
31994
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
31995
- message: string;
31996
- /** Indicates that this is an access code error. */
31997
- is_access_code_error: true;
31998
- /** Date and time at which Seam created the error. */
31999
- created_at?: string | undefined;
32000
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32001
- error_code: 'duplicate_code_attempt_prevented';
32002
31925
  } | {
32003
31926
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
32004
31927
  message: string;
@@ -32505,15 +32428,6 @@ type Routes = {
32505
32428
  unmanaged_access_code_id?: string | undefined;
32506
32429
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
32507
32430
  managed_access_code_id?: string | undefined;
32508
- } | {
32509
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
32510
- message: string;
32511
- /** Indicates that this is an access code error. */
32512
- is_access_code_error: true;
32513
- /** Date and time at which Seam created the error. */
32514
- created_at?: string | undefined;
32515
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32516
- error_code: 'duplicate_code_attempt_prevented';
32517
32431
  } | {
32518
32432
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
32519
32433
  message: string;
@@ -34708,15 +34622,6 @@ type Routes = {
34708
34622
  unmanaged_access_code_id?: string | undefined;
34709
34623
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
34710
34624
  managed_access_code_id?: string | undefined;
34711
- } | {
34712
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
34713
- message: string;
34714
- /** Indicates that this is an access code error. */
34715
- is_access_code_error: true;
34716
- /** Date and time at which Seam created the error. */
34717
- created_at?: string | undefined;
34718
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
34719
- error_code: 'duplicate_code_attempt_prevented';
34720
34625
  } | {
34721
34626
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
34722
34627
  message: string;
@@ -35269,15 +35174,6 @@ type Routes = {
35269
35174
  unmanaged_access_code_id?: string | undefined;
35270
35175
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
35271
35176
  managed_access_code_id?: string | undefined;
35272
- } | {
35273
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
35274
- message: string;
35275
- /** Indicates that this is an access code error. */
35276
- is_access_code_error: true;
35277
- /** Date and time at which Seam created the error. */
35278
- created_at?: string | undefined;
35279
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
35280
- error_code: 'duplicate_code_attempt_prevented';
35281
35177
  } | {
35282
35178
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
35283
35179
  message: string;
@@ -35775,15 +35671,6 @@ type Routes = {
35775
35671
  unmanaged_access_code_id?: string | undefined;
35776
35672
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
35777
35673
  managed_access_code_id?: string | undefined;
35778
- } | {
35779
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
35780
- message: string;
35781
- /** Indicates that this is an access code error. */
35782
- is_access_code_error: true;
35783
- /** Date and time at which Seam created the error. */
35784
- created_at?: string | undefined;
35785
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
35786
- error_code: 'duplicate_code_attempt_prevented';
35787
35674
  } | {
35788
35675
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
35789
35676
  message: string;
@@ -36258,15 +36145,6 @@ type Routes = {
36258
36145
  unmanaged_access_code_id?: string | undefined;
36259
36146
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
36260
36147
  managed_access_code_id?: string | undefined;
36261
- } | {
36262
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
36263
- message: string;
36264
- /** Indicates that this is an access code error. */
36265
- is_access_code_error: true;
36266
- /** Date and time at which Seam created the error. */
36267
- created_at?: string | undefined;
36268
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
36269
- error_code: 'duplicate_code_attempt_prevented';
36270
36148
  } | {
36271
36149
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
36272
36150
  message: string;
@@ -36774,15 +36652,6 @@ type Routes = {
36774
36652
  unmanaged_access_code_id?: string | undefined;
36775
36653
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
36776
36654
  managed_access_code_id?: string | undefined;
36777
- } | {
36778
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
36779
- message: string;
36780
- /** Indicates that this is an access code error. */
36781
- is_access_code_error: true;
36782
- /** Date and time at which Seam created the error. */
36783
- created_at?: string | undefined;
36784
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
36785
- error_code: 'duplicate_code_attempt_prevented';
36786
36655
  } | {
36787
36656
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
36788
36657
  message: string;
@@ -38886,15 +38755,6 @@ type Routes = {
38886
38755
  unmanaged_access_code_id?: string | undefined;
38887
38756
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
38888
38757
  managed_access_code_id?: string | undefined;
38889
- } | {
38890
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38891
- message: string;
38892
- /** Indicates that this is an access code error. */
38893
- is_access_code_error: true;
38894
- /** Date and time at which Seam created the error. */
38895
- created_at?: string | undefined;
38896
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
38897
- error_code: 'duplicate_code_attempt_prevented';
38898
38758
  } | {
38899
38759
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
38900
38760
  message: string;
@@ -39288,15 +39148,6 @@ type Routes = {
39288
39148
  unmanaged_access_code_id?: string | undefined;
39289
39149
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
39290
39150
  managed_access_code_id?: string | undefined;
39291
- } | {
39292
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
39293
- message: string;
39294
- /** Indicates that this is an access code error. */
39295
- is_access_code_error: true;
39296
- /** Date and time at which Seam created the error. */
39297
- created_at?: string | undefined;
39298
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
39299
- error_code: 'duplicate_code_attempt_prevented';
39300
39151
  } | {
39301
39152
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
39302
39153
  message: string;
@@ -149999,15 +149850,6 @@ type Routes = {
149999
149850
  unmanaged_access_code_id?: string | undefined;
150000
149851
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
150001
149852
  managed_access_code_id?: string | undefined;
150002
- } | {
150003
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
150004
- message: string;
150005
- /** Indicates that this is an access code error. */
150006
- is_access_code_error: true;
150007
- /** Date and time at which Seam created the error. */
150008
- created_at?: string | undefined;
150009
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
150010
- error_code: 'duplicate_code_attempt_prevented';
150011
149853
  } | {
150012
149854
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
150013
149855
  message: string;
@@ -150385,15 +150227,6 @@ type Routes = {
150385
150227
  unmanaged_access_code_id?: string | undefined;
150386
150228
  /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
150387
150229
  managed_access_code_id?: string | undefined;
150388
- } | {
150389
- /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
150390
- message: string;
150391
- /** Indicates that this is an access code error. */
150392
- is_access_code_error: true;
150393
- /** Date and time at which Seam created the error. */
150394
- created_at?: string | undefined;
150395
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
150396
- error_code: 'duplicate_code_attempt_prevented';
150397
150230
  } | {
150398
150231
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
150399
150232
  message: string;
package/dist/index.cjs CHANGED
@@ -2614,14 +2614,6 @@ var duplicate_code_on_device = common_access_code_error.extend({
2614
2614
  ---
2615
2615
  Duplicate access code detected on device.
2616
2616
  `);
2617
- var duplicate_code_attempt_prevented = common_access_code_error.extend({
2618
- error_code: zod.z.literal("duplicate_code_attempt_prevented").describe(error_code_description3)
2619
- }).describe(`
2620
- ---
2621
- resource_type: access_code
2622
- ---
2623
- An attempt to modify this access code was prevented.
2624
- `);
2625
2617
  var no_space_for_access_code_on_device = common_access_code_error.extend({
2626
2618
  error_code: zod.z.literal("no_space_for_access_code_on_device").describe(error_code_description3)
2627
2619
  }).describe(`
@@ -2651,7 +2643,6 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
2651
2643
  failed_to_set_on_device,
2652
2644
  failed_to_remove_from_device,
2653
2645
  duplicate_code_on_device,
2654
- duplicate_code_attempt_prevented,
2655
2646
  no_space_for_access_code_on_device,
2656
2647
  code_modified_external_to_seam_error,
2657
2648
  access_code_inactive_error,
@@ -2665,7 +2656,6 @@ zod.z.object({
2665
2656
  failed_to_remove_from_device: failed_to_remove_from_device.optional().nullable(),
2666
2657
  no_space_for_access_code_on_device: no_space_for_access_code_on_device.optional().nullable(),
2667
2658
  duplicate_code_on_device: duplicate_code_on_device.optional().nullable(),
2668
- duplicate_code_attempt_prevented: duplicate_code_attempt_prevented.optional().nullable(),
2669
2659
  insufficient_permissions: insufficient_permissions2.optional().nullable(),
2670
2660
  code_modified_external_to_seam_error: code_modified_external_to_seam_error.optional().nullable(),
2671
2661
  access_code_inactive: access_code_inactive_error.optional().nullable()
@@ -7761,33 +7751,6 @@ var openapi = {
7761
7751
  type: "object",
7762
7752
  "x-resource-type": "access_code"
7763
7753
  },
7764
- {
7765
- description: "An attempt to modify this access code was prevented.",
7766
- properties: {
7767
- created_at: {
7768
- description: "Date and time at which Seam created the error.",
7769
- format: "date-time",
7770
- type: "string"
7771
- },
7772
- error_code: {
7773
- description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
7774
- enum: ["duplicate_code_attempt_prevented"],
7775
- type: "string"
7776
- },
7777
- is_access_code_error: {
7778
- description: "Indicates that this is an access code error.",
7779
- enum: [true],
7780
- type: "boolean"
7781
- },
7782
- message: {
7783
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
7784
- type: "string"
7785
- }
7786
- },
7787
- required: ["message", "is_access_code_error", "error_code"],
7788
- type: "object",
7789
- "x-resource-type": "access_code"
7790
- },
7791
7754
  {
7792
7755
  description: "No space for access code on device.",
7793
7756
  properties: {
@@ -34166,33 +34129,6 @@ var openapi = {
34166
34129
  type: "object",
34167
34130
  "x-resource-type": "access_code"
34168
34131
  },
34169
- {
34170
- description: "An attempt to modify this access code was prevented.",
34171
- properties: {
34172
- created_at: {
34173
- description: "Date and time at which Seam created the error.",
34174
- format: "date-time",
34175
- type: "string"
34176
- },
34177
- error_code: {
34178
- description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
34179
- enum: ["duplicate_code_attempt_prevented"],
34180
- type: "string"
34181
- },
34182
- is_access_code_error: {
34183
- description: "Indicates that this is an access code error.",
34184
- enum: [true],
34185
- type: "boolean"
34186
- },
34187
- message: {
34188
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
34189
- type: "string"
34190
- }
34191
- },
34192
- required: ["message", "is_access_code_error", "error_code"],
34193
- type: "object",
34194
- "x-resource-type": "access_code"
34195
- },
34196
34132
  {
34197
34133
  description: "No space for access code on device.",
34198
34134
  properties: {