@seamapi/types 1.959.0 → 1.960.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.
@@ -318,6 +318,19 @@ declare const access_code_warning: z.ZodDiscriminatedUnion<"warning_code", [z.Zo
318
318
  message: string;
319
319
  warning_code: "being_deleted";
320
320
  created_at?: string | undefined;
321
+ }>, z.ZodObject<{
322
+ message: z.ZodString;
323
+ created_at: z.ZodOptional<z.ZodString>;
324
+ } & {
325
+ warning_code: z.ZodLiteral<"unknown_issue_with_access_code">;
326
+ }, "strip", z.ZodTypeAny, {
327
+ message: string;
328
+ warning_code: "unknown_issue_with_access_code";
329
+ created_at?: string | undefined;
330
+ }, {
331
+ message: string;
332
+ warning_code: "unknown_issue_with_access_code";
333
+ created_at?: string | undefined;
321
334
  }>]>;
322
335
  type AccessCodeWarning = z.infer<typeof access_code_warning>;
323
336
  declare const access_code: z.ZodObject<{
@@ -1021,6 +1034,19 @@ declare const access_code: z.ZodObject<{
1021
1034
  message: string;
1022
1035
  warning_code: "being_deleted";
1023
1036
  created_at?: string | undefined;
1037
+ }>, z.ZodObject<{
1038
+ message: z.ZodString;
1039
+ created_at: z.ZodOptional<z.ZodString>;
1040
+ } & {
1041
+ warning_code: z.ZodLiteral<"unknown_issue_with_access_code">;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ message: string;
1044
+ warning_code: "unknown_issue_with_access_code";
1045
+ created_at?: string | undefined;
1046
+ }, {
1047
+ message: string;
1048
+ warning_code: "unknown_issue_with_access_code";
1049
+ created_at?: string | undefined;
1024
1050
  }>]>, "many">;
1025
1051
  is_managed: z.ZodLiteral<true>;
1026
1052
  starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1443,6 +1469,10 @@ declare const access_code: z.ZodObject<{
1443
1469
  message: string;
1444
1470
  warning_code: "being_deleted";
1445
1471
  created_at?: string | undefined;
1472
+ } | {
1473
+ message: string;
1474
+ warning_code: "unknown_issue_with_access_code";
1475
+ created_at?: string | undefined;
1446
1476
  })[];
1447
1477
  is_managed: true;
1448
1478
  common_code_key: string | null;
@@ -1726,6 +1756,10 @@ declare const access_code: z.ZodObject<{
1726
1756
  message: string;
1727
1757
  warning_code: "being_deleted";
1728
1758
  created_at?: string | undefined;
1759
+ } | {
1760
+ message: string;
1761
+ warning_code: "unknown_issue_with_access_code";
1762
+ created_at?: string | undefined;
1729
1763
  })[];
1730
1764
  is_managed: true;
1731
1765
  common_code_key: string | null;
@@ -2498,6 +2532,19 @@ declare const unmanaged_access_code: z.ZodObject<{
2498
2532
  message: string;
2499
2533
  warning_code: "being_deleted";
2500
2534
  created_at?: string | undefined;
2535
+ }>, z.ZodObject<{
2536
+ message: z.ZodString;
2537
+ created_at: z.ZodOptional<z.ZodString>;
2538
+ } & {
2539
+ warning_code: z.ZodLiteral<"unknown_issue_with_access_code">;
2540
+ }, "strip", z.ZodTypeAny, {
2541
+ message: string;
2542
+ warning_code: "unknown_issue_with_access_code";
2543
+ created_at?: string | undefined;
2544
+ }, {
2545
+ message: string;
2546
+ warning_code: "unknown_issue_with_access_code";
2547
+ created_at?: string | undefined;
2501
2548
  }>]>, "many">;
2502
2549
  access_code_id: z.ZodString;
2503
2550
  } & {
@@ -2746,6 +2793,10 @@ declare const unmanaged_access_code: z.ZodObject<{
2746
2793
  message: string;
2747
2794
  warning_code: "being_deleted";
2748
2795
  created_at?: string | undefined;
2796
+ } | {
2797
+ message: string;
2798
+ warning_code: "unknown_issue_with_access_code";
2799
+ created_at?: string | undefined;
2749
2800
  })[];
2750
2801
  is_managed: false;
2751
2802
  access_code_id: string;
@@ -2976,6 +3027,10 @@ declare const unmanaged_access_code: z.ZodObject<{
2976
3027
  message: string;
2977
3028
  warning_code: "being_deleted";
2978
3029
  created_at?: string | undefined;
3030
+ } | {
3031
+ message: string;
3032
+ warning_code: "unknown_issue_with_access_code";
3033
+ created_at?: string | undefined;
2979
3034
  })[];
2980
3035
  is_managed: false;
2981
3036
  access_code_id: string;
@@ -32298,6 +32353,13 @@ type Routes = {
32298
32353
  created_at?: string | undefined;
32299
32354
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32300
32355
  warning_code: 'being_deleted';
32356
+ } | {
32357
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
32358
+ message: string;
32359
+ /** Date and time at which Seam created the warning. */
32360
+ created_at?: string | undefined;
32361
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32362
+ warning_code: 'unknown_issue_with_access_code';
32301
32363
  })[];
32302
32364
  /** Indicates whether Seam manages the access code. */
32303
32365
  is_managed: true;
@@ -32804,6 +32866,13 @@ type Routes = {
32804
32866
  created_at?: string | undefined;
32805
32867
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32806
32868
  warning_code: 'being_deleted';
32869
+ } | {
32870
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
32871
+ message: string;
32872
+ /** Date and time at which Seam created the warning. */
32873
+ created_at?: string | undefined;
32874
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32875
+ warning_code: 'unknown_issue_with_access_code';
32807
32876
  })[];
32808
32877
  /** Indicates whether Seam manages the access code. */
32809
32878
  is_managed: true;
@@ -34998,6 +35067,13 @@ type Routes = {
34998
35067
  created_at?: string | undefined;
34999
35068
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
35000
35069
  warning_code: 'being_deleted';
35070
+ } | {
35071
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
35072
+ message: string;
35073
+ /** Date and time at which Seam created the warning. */
35074
+ created_at?: string | undefined;
35075
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
35076
+ warning_code: 'unknown_issue_with_access_code';
35001
35077
  })[];
35002
35078
  /** Indicates whether Seam manages the access code. */
35003
35079
  is_managed: true;
@@ -35552,6 +35628,13 @@ type Routes = {
35552
35628
  created_at?: string | undefined;
35553
35629
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
35554
35630
  warning_code: 'being_deleted';
35631
+ } | {
35632
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
35633
+ message: string;
35634
+ /** Date and time at which Seam created the warning. */
35635
+ created_at?: string | undefined;
35636
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
35637
+ warning_code: 'unknown_issue_with_access_code';
35555
35638
  })[];
35556
35639
  /** Indicates whether Seam manages the access code. */
35557
35640
  is_managed: true;
@@ -36049,6 +36132,13 @@ type Routes = {
36049
36132
  created_at?: string | undefined;
36050
36133
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36051
36134
  warning_code: 'being_deleted';
36135
+ } | {
36136
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
36137
+ message: string;
36138
+ /** Date and time at which Seam created the warning. */
36139
+ created_at?: string | undefined;
36140
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36141
+ warning_code: 'unknown_issue_with_access_code';
36052
36142
  })[];
36053
36143
  /** Indicates whether Seam manages the access code. */
36054
36144
  is_managed: true;
@@ -36523,6 +36613,13 @@ type Routes = {
36523
36613
  created_at?: string | undefined;
36524
36614
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36525
36615
  warning_code: 'being_deleted';
36616
+ } | {
36617
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
36618
+ message: string;
36619
+ /** Date and time at which Seam created the warning. */
36620
+ created_at?: string | undefined;
36621
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36622
+ warning_code: 'unknown_issue_with_access_code';
36526
36623
  })[];
36527
36624
  /** Indicates whether Seam manages the access code. */
36528
36625
  is_managed: true;
@@ -37030,6 +37127,13 @@ type Routes = {
37030
37127
  created_at?: string | undefined;
37031
37128
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
37032
37129
  warning_code: 'being_deleted';
37130
+ } | {
37131
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
37132
+ message: string;
37133
+ /** Date and time at which Seam created the warning. */
37134
+ created_at?: string | undefined;
37135
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
37136
+ warning_code: 'unknown_issue_with_access_code';
37033
37137
  })[];
37034
37138
  /** Indicates that Seam does not manage the access code. */
37035
37139
  is_managed: false;
@@ -39133,6 +39237,13 @@ type Routes = {
39133
39237
  created_at?: string | undefined;
39134
39238
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
39135
39239
  warning_code: 'being_deleted';
39240
+ } | {
39241
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
39242
+ message: string;
39243
+ /** Date and time at which Seam created the warning. */
39244
+ created_at?: string | undefined;
39245
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
39246
+ warning_code: 'unknown_issue_with_access_code';
39136
39247
  })[];
39137
39248
  /** Indicates that Seam does not manage the access code. */
39138
39249
  is_managed: false;
@@ -39526,6 +39637,13 @@ type Routes = {
39526
39637
  created_at?: string | undefined;
39527
39638
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
39528
39639
  warning_code: 'being_deleted';
39640
+ } | {
39641
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
39642
+ message: string;
39643
+ /** Date and time at which Seam created the warning. */
39644
+ created_at?: string | undefined;
39645
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
39646
+ warning_code: 'unknown_issue_with_access_code';
39529
39647
  })[];
39530
39648
  /** Indicates that Seam does not manage the access code. */
39531
39649
  is_managed: false;
@@ -150946,6 +151064,13 @@ type Routes = {
150946
151064
  created_at?: string | undefined;
150947
151065
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
150948
151066
  warning_code: 'being_deleted';
151067
+ } | {
151068
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
151069
+ message: string;
151070
+ /** Date and time at which Seam created the warning. */
151071
+ created_at?: string | undefined;
151072
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151073
+ warning_code: 'unknown_issue_with_access_code';
150949
151074
  })[];
150950
151075
  /** Indicates that Seam does not manage the access code. */
150951
151076
  is_managed: false;
@@ -151323,6 +151448,13 @@ type Routes = {
151323
151448
  created_at?: string | undefined;
151324
151449
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151325
151450
  warning_code: 'being_deleted';
151451
+ } | {
151452
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
151453
+ message: string;
151454
+ /** Date and time at which Seam created the warning. */
151455
+ created_at?: string | undefined;
151456
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
151457
+ warning_code: 'unknown_issue_with_access_code';
151326
151458
  })[];
151327
151459
  /** Indicates whether Seam manages the access code. */
151328
151460
  is_managed: true;
package/dist/index.cjs CHANGED
@@ -2728,6 +2728,9 @@ var using_backup_access_code = common_access_code_warning.extend({
2728
2728
  var being_deleted2 = common_access_code_warning.extend({
2729
2729
  warning_code: zod.z.literal("being_deleted").describe(warning_code_description3)
2730
2730
  }).describe("Access code is being deleted.");
2731
+ var unknown_issue_with_access_code = common_access_code_warning.extend({
2732
+ warning_code: zod.z.literal("unknown_issue_with_access_code").describe(warning_code_description3)
2733
+ }).describe("An unknown issue occurred with the access code.");
2731
2734
  var access_code_warning = zod.z.discriminatedUnion("warning_code", [
2732
2735
  code_rotates_periodically,
2733
2736
  time_frame_adjusted_for_unknown_time_zone,
@@ -2738,7 +2741,8 @@ var access_code_warning = zod.z.discriminatedUnion("warning_code", [
2738
2741
  igloo_algopin_must_be_used_within_24_hours,
2739
2742
  management_transferred,
2740
2743
  using_backup_access_code,
2741
- being_deleted2
2744
+ being_deleted2,
2745
+ unknown_issue_with_access_code
2742
2746
  ]).describe(
2743
2747
  "Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes)."
2744
2748
  );
@@ -2752,7 +2756,8 @@ zod.z.object({
2752
2756
  igloo_algopin_must_be_used_within_24_hours: igloo_algopin_must_be_used_within_24_hours.optional().nullable(),
2753
2757
  management_transferred: management_transferred.optional().nullable(),
2754
2758
  using_backup_access_code: using_backup_access_code.optional().nullable(),
2755
- being_deleted: being_deleted2.optional().nullable()
2759
+ being_deleted: being_deleted2.optional().nullable(),
2760
+ unknown_issue_with_access_code: unknown_issue_with_access_code.optional().nullable()
2756
2761
  });
2757
2762
  var dormakaba_oracode_access_code_metadata = zod.z.object({
2758
2763
  stay_id: zod.z.number().optional().describe("Dormakaba Oracode stay ID associated with this access code."),
@@ -9036,6 +9041,27 @@ var openapi = {
9036
9041
  },
9037
9042
  required: ["message", "warning_code"],
9038
9043
  type: "object"
9044
+ },
9045
+ {
9046
+ description: "An unknown issue occurred with the access code.",
9047
+ properties: {
9048
+ created_at: {
9049
+ description: "Date and time at which Seam created the warning.",
9050
+ format: "date-time",
9051
+ type: "string"
9052
+ },
9053
+ message: {
9054
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
9055
+ type: "string"
9056
+ },
9057
+ warning_code: {
9058
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9059
+ enum: ["unknown_issue_with_access_code"],
9060
+ type: "string"
9061
+ }
9062
+ },
9063
+ required: ["message", "warning_code"],
9064
+ type: "object"
9039
9065
  }
9040
9066
  ]
9041
9067
  },
@@ -34959,6 +34985,27 @@ var openapi = {
34959
34985
  },
34960
34986
  required: ["message", "warning_code"],
34961
34987
  type: "object"
34988
+ },
34989
+ {
34990
+ description: "An unknown issue occurred with the access code.",
34991
+ properties: {
34992
+ created_at: {
34993
+ description: "Date and time at which Seam created the warning.",
34994
+ format: "date-time",
34995
+ type: "string"
34996
+ },
34997
+ message: {
34998
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
34999
+ type: "string"
35000
+ },
35001
+ warning_code: {
35002
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
35003
+ enum: ["unknown_issue_with_access_code"],
35004
+ type: "string"
35005
+ }
35006
+ },
35007
+ required: ["message", "warning_code"],
35008
+ type: "object"
34962
35009
  }
34963
35010
  ]
34964
35011
  },