@seamapi/types 1.929.0 → 1.930.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.
@@ -214,14 +214,14 @@ declare const access_code_warning: z.ZodDiscriminatedUnion<"warning_code", [z.Zo
214
214
  message: z.ZodString;
215
215
  created_at: z.ZodOptional<z.ZodString>;
216
216
  } & {
217
- warning_code: z.ZodLiteral<"provider_issue">;
217
+ warning_code: z.ZodLiteral<"code_rotates_periodically">;
218
218
  }, "strip", z.ZodTypeAny, {
219
219
  message: string;
220
- warning_code: "provider_issue";
220
+ warning_code: "code_rotates_periodically";
221
221
  created_at?: string | undefined;
222
222
  }, {
223
223
  message: string;
224
- warning_code: "provider_issue";
224
+ warning_code: "code_rotates_periodically";
225
225
  created_at?: string | undefined;
226
226
  }>, z.ZodObject<{
227
227
  message: z.ZodString;
@@ -965,14 +965,14 @@ declare const access_code: z.ZodObject<{
965
965
  message: z.ZodString;
966
966
  created_at: z.ZodOptional<z.ZodString>;
967
967
  } & {
968
- warning_code: z.ZodLiteral<"provider_issue">;
968
+ warning_code: z.ZodLiteral<"code_rotates_periodically">;
969
969
  }, "strip", z.ZodTypeAny, {
970
970
  message: string;
971
- warning_code: "provider_issue";
971
+ warning_code: "code_rotates_periodically";
972
972
  created_at?: string | undefined;
973
973
  }, {
974
974
  message: string;
975
- warning_code: "provider_issue";
975
+ warning_code: "code_rotates_periodically";
976
976
  created_at?: string | undefined;
977
977
  }>, z.ZodObject<{
978
978
  message: z.ZodString;
@@ -1520,7 +1520,7 @@ declare const access_code: z.ZodObject<{
1520
1520
  }[] | undefined;
1521
1521
  } | {
1522
1522
  message: string;
1523
- warning_code: "provider_issue";
1523
+ warning_code: "code_rotates_periodically";
1524
1524
  created_at?: string | undefined;
1525
1525
  } | {
1526
1526
  message: string;
@@ -1818,7 +1818,7 @@ declare const access_code: z.ZodObject<{
1818
1818
  }[] | undefined;
1819
1819
  } | {
1820
1820
  message: string;
1821
- warning_code: "provider_issue";
1821
+ warning_code: "code_rotates_periodically";
1822
1822
  created_at?: string | undefined;
1823
1823
  } | {
1824
1824
  message: string;
@@ -2520,14 +2520,14 @@ declare const unmanaged_access_code: z.ZodObject<{
2520
2520
  message: z.ZodString;
2521
2521
  created_at: z.ZodOptional<z.ZodString>;
2522
2522
  } & {
2523
- warning_code: z.ZodLiteral<"provider_issue">;
2523
+ warning_code: z.ZodLiteral<"code_rotates_periodically">;
2524
2524
  }, "strip", z.ZodTypeAny, {
2525
2525
  message: string;
2526
- warning_code: "provider_issue";
2526
+ warning_code: "code_rotates_periodically";
2527
2527
  created_at?: string | undefined;
2528
2528
  }, {
2529
2529
  message: string;
2530
- warning_code: "provider_issue";
2530
+ warning_code: "code_rotates_periodically";
2531
2531
  created_at?: string | undefined;
2532
2532
  }>, z.ZodObject<{
2533
2533
  message: z.ZodString;
@@ -2901,7 +2901,7 @@ declare const unmanaged_access_code: z.ZodObject<{
2901
2901
  }[] | undefined;
2902
2902
  } | {
2903
2903
  message: string;
2904
- warning_code: "provider_issue";
2904
+ warning_code: "code_rotates_periodically";
2905
2905
  created_at?: string | undefined;
2906
2906
  } | {
2907
2907
  message: string;
@@ -3146,7 +3146,7 @@ declare const unmanaged_access_code: z.ZodObject<{
3146
3146
  }[] | undefined;
3147
3147
  } | {
3148
3148
  message: string;
3149
- warning_code: "provider_issue";
3149
+ warning_code: "code_rotates_periodically";
3150
3150
  created_at?: string | undefined;
3151
3151
  } | {
3152
3152
  message: string;
@@ -31822,7 +31822,7 @@ type Routes = {
31822
31822
  /** Date and time at which Seam created the warning. */
31823
31823
  created_at?: string | undefined;
31824
31824
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
31825
- warning_code: 'provider_issue';
31825
+ warning_code: 'code_rotates_periodically';
31826
31826
  } | {
31827
31827
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
31828
31828
  message: string;
@@ -32355,7 +32355,7 @@ type Routes = {
32355
32355
  /** Date and time at which Seam created the warning. */
32356
32356
  created_at?: string | undefined;
32357
32357
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32358
- warning_code: 'provider_issue';
32358
+ warning_code: 'code_rotates_periodically';
32359
32359
  } | {
32360
32360
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
32361
32361
  message: string;
@@ -34576,7 +34576,7 @@ type Routes = {
34576
34576
  /** Date and time at which Seam created the warning. */
34577
34577
  created_at?: string | undefined;
34578
34578
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
34579
- warning_code: 'provider_issue';
34579
+ warning_code: 'code_rotates_periodically';
34580
34580
  } | {
34581
34581
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
34582
34582
  message: string;
@@ -35155,7 +35155,7 @@ type Routes = {
35155
35155
  /** Date and time at which Seam created the warning. */
35156
35156
  created_at?: string | undefined;
35157
35157
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
35158
- warning_code: 'provider_issue';
35158
+ warning_code: 'code_rotates_periodically';
35159
35159
  } | {
35160
35160
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
35161
35161
  message: string;
@@ -35679,7 +35679,7 @@ type Routes = {
35679
35679
  /** Date and time at which Seam created the warning. */
35680
35680
  created_at?: string | undefined;
35681
35681
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
35682
- warning_code: 'provider_issue';
35682
+ warning_code: 'code_rotates_periodically';
35683
35683
  } | {
35684
35684
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
35685
35685
  message: string;
@@ -36180,7 +36180,7 @@ type Routes = {
36180
36180
  /** Date and time at which Seam created the warning. */
36181
36181
  created_at?: string | undefined;
36182
36182
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36183
- warning_code: 'provider_issue';
36183
+ warning_code: 'code_rotates_periodically';
36184
36184
  } | {
36185
36185
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
36186
36186
  message: string;
@@ -36714,7 +36714,7 @@ type Routes = {
36714
36714
  /** Date and time at which Seam created the warning. */
36715
36715
  created_at?: string | undefined;
36716
36716
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
36717
- warning_code: 'provider_issue';
36717
+ warning_code: 'code_rotates_periodically';
36718
36718
  } | {
36719
36719
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
36720
36720
  message: string;
@@ -38844,7 +38844,7 @@ type Routes = {
38844
38844
  /** Date and time at which Seam created the warning. */
38845
38845
  created_at?: string | undefined;
38846
38846
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
38847
- warning_code: 'provider_issue';
38847
+ warning_code: 'code_rotates_periodically';
38848
38848
  } | {
38849
38849
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
38850
38850
  message: string;
@@ -39264,7 +39264,7 @@ type Routes = {
39264
39264
  /** Date and time at which Seam created the warning. */
39265
39265
  created_at?: string | undefined;
39266
39266
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
39267
- warning_code: 'provider_issue';
39267
+ warning_code: 'code_rotates_periodically';
39268
39268
  } | {
39269
39269
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
39270
39270
  message: string;
@@ -148405,7 +148405,7 @@ type Routes = {
148405
148405
  /** Date and time at which Seam created the warning. */
148406
148406
  created_at?: string | undefined;
148407
148407
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
148408
- warning_code: 'provider_issue';
148408
+ warning_code: 'code_rotates_periodically';
148409
148409
  } | {
148410
148410
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
148411
148411
  message: string;
@@ -148809,7 +148809,7 @@ type Routes = {
148809
148809
  /** Date and time at which Seam created the warning. */
148810
148810
  created_at?: string | undefined;
148811
148811
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
148812
- warning_code: 'provider_issue';
148812
+ warning_code: 'code_rotates_periodically';
148813
148813
  } | {
148814
148814
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
148815
148815
  message: string;
package/dist/index.cjs CHANGED
@@ -2674,10 +2674,10 @@ var code_modified_external_to_seam_warning = common_access_code_warning.extend({
2674
2674
  }).describe(
2675
2675
  "Code was modified or removed externally after Seam successfully set it on the device."
2676
2676
  );
2677
- var provider_issue_warning = common_access_code_warning.extend({
2678
- warning_code: zod.z.literal("provider_issue").describe(warning_code_description3)
2677
+ var code_rotates_periodically = common_access_code_warning.extend({
2678
+ warning_code: zod.z.literal("code_rotates_periodically").describe(warning_code_description3)
2679
2679
  }).describe(
2680
- "Indicates a provider-specific issue that may affect the access code. Check the warning message for details."
2680
+ "The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use."
2681
2681
  );
2682
2682
  var schlage_access_code_ambiguous_timezone_dst_risk = common_access_code_warning.extend({
2683
2683
  warning_code: zod.z.literal("schlage_access_code_ambiguous_timezone_dst_risk").describe(warning_code_description3)
@@ -2710,7 +2710,7 @@ var being_deleted2 = common_access_code_warning.extend({
2710
2710
  warning_code: zod.z.literal("being_deleted").describe(warning_code_description3)
2711
2711
  }).describe("Access code is being deleted.");
2712
2712
  var access_code_warning = zod.z.discriminatedUnion("warning_code", [
2713
- provider_issue_warning,
2713
+ code_rotates_periodically,
2714
2714
  schlage_access_code_ambiguous_timezone_dst_risk,
2715
2715
  code_modified_external_to_seam_warning,
2716
2716
  delay_in_setting_on_device,
@@ -2724,7 +2724,7 @@ var access_code_warning = zod.z.discriminatedUnion("warning_code", [
2724
2724
  "Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes)."
2725
2725
  );
2726
2726
  zod.z.object({
2727
- provider_issue: provider_issue_warning.optional().nullable(),
2727
+ code_rotates_periodically: code_rotates_periodically.optional().nullable(),
2728
2728
  schlage_access_code_ambiguous_timezone_dst_risk: schlage_access_code_ambiguous_timezone_dst_risk.optional().nullable(),
2729
2729
  code_modified_external_to_seam_warning: code_modified_external_to_seam_warning.optional().nullable(),
2730
2730
  delay_in_setting_on_device: delay_in_setting_on_device.optional().nullable(),
@@ -8828,7 +8828,7 @@ var openapi = {
8828
8828
  discriminator: { propertyName: "warning_code" },
8829
8829
  oneOf: [
8830
8830
  {
8831
- description: "Indicates a provider-specific issue that may affect the access code. Check the warning message for details.",
8831
+ description: "The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.",
8832
8832
  properties: {
8833
8833
  created_at: {
8834
8834
  description: "Date and time at which Seam created the warning.",
@@ -8841,7 +8841,7 @@ var openapi = {
8841
8841
  },
8842
8842
  warning_code: {
8843
8843
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
8844
- enum: ["provider_issue"],
8844
+ enum: ["code_rotates_periodically"],
8845
8845
  type: "string"
8846
8846
  }
8847
8847
  },
@@ -34469,7 +34469,7 @@ var openapi = {
34469
34469
  discriminator: { propertyName: "warning_code" },
34470
34470
  oneOf: [
34471
34471
  {
34472
- description: "Indicates a provider-specific issue that may affect the access code. Check the warning message for details.",
34472
+ description: "The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.",
34473
34473
  properties: {
34474
34474
  created_at: {
34475
34475
  description: "Date and time at which Seam created the warning.",
@@ -34482,7 +34482,7 @@ var openapi = {
34482
34482
  },
34483
34483
  warning_code: {
34484
34484
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
34485
- enum: ["provider_issue"],
34485
+ enum: ["code_rotates_periodically"],
34486
34486
  type: "string"
34487
34487
  }
34488
34488
  },