@seamapi/types 1.941.0 → 1.943.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.
package/dist/connect.cjs CHANGED
@@ -1185,6 +1185,9 @@ var device_metadata = zod.z.object({
1185
1185
  ),
1186
1186
  timezone_raw_offset_ms: zod.z.number().describe(
1187
1187
  `Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST.`
1188
+ ),
1189
+ time_zone: zod.z.string().nullable().optional().describe(
1190
+ `IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST).`
1188
1191
  )
1189
1192
  }).describe(`Metadata for an Omnitec device.`),
1190
1193
  tado_metadata: zod.z.object({
@@ -1735,6 +1738,22 @@ var ultraloq_time_zone_unknown = common_device_warning.extend({
1735
1738
  ---
1736
1739
  Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.
1737
1740
  `);
1741
+ var time_zone_unknown = common_device_warning.extend({
1742
+ warning_code: zod.z.literal("time_zone_unknown").describe(warning_code_description2)
1743
+ }).describe(`
1744
+ ---
1745
+ variant_group_key: locks
1746
+ ---
1747
+ Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.
1748
+ `);
1749
+ var time_zone_mismatch = common_device_warning.extend({
1750
+ warning_code: zod.z.literal("time_zone_mismatch").describe(warning_code_description2)
1751
+ }).describe(`
1752
+ ---
1753
+ variant_group_key: locks
1754
+ ---
1755
+ Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.
1756
+ `);
1738
1757
  var two_n_device_missing_timezone = common_device_warning.extend({
1739
1758
  warning_code: zod.z.literal("two_n_device_missing_timezone").describe(warning_code_description2)
1740
1759
  }).describe(`
@@ -1830,6 +1849,8 @@ var device_warning = zod.z.discriminatedUnion("warning_code", [
1830
1849
  unknown_issue_with_phone,
1831
1850
  lockly_time_zone_not_configured,
1832
1851
  ultraloq_time_zone_unknown,
1852
+ time_zone_unknown,
1853
+ time_zone_mismatch,
1833
1854
  two_n_device_missing_timezone,
1834
1855
  hub_required_for_additional_capabilities,
1835
1856
  provider_issue,
@@ -1861,6 +1882,8 @@ zod.z.object({
1861
1882
  unknown_issue_with_phone: unknown_issue_with_phone.optional().nullable(),
1862
1883
  lockly_time_zone_not_configured: lockly_time_zone_not_configured.optional().nullable(),
1863
1884
  ultraloq_time_zone_unknown: ultraloq_time_zone_unknown.optional().nullable(),
1885
+ time_zone_unknown: time_zone_unknown.optional().nullable(),
1886
+ time_zone_mismatch: time_zone_mismatch.optional().nullable(),
1864
1887
  two_n_device_missing_timezone: two_n_device_missing_timezone.optional().nullable(),
1865
1888
  hub_required_for_additional_capabilities: hub_required_for_additional_capabilities.optional().nullable(),
1866
1889
  provider_issue: provider_issue.optional().nullable(),
@@ -2607,14 +2630,6 @@ var no_space_for_access_code_on_device = common_access_code_error.extend({
2607
2630
  ---
2608
2631
  No space for access code on device.
2609
2632
  `);
2610
- var access_code_state_unconfirmed = common_access_code_error.extend({
2611
- error_code: zod.z.literal("access_code_state_unconfirmed").describe(error_code_description3)
2612
- }).describe(`
2613
- ---
2614
- resource_type: access_code
2615
- ---
2616
- Indicates that the provider cannot confirm whether the access code was set or removed on the device.
2617
- `);
2618
2633
  var insufficient_permissions2 = common_access_code_error.extend({
2619
2634
  error_code: zod.z.literal("insufficient_permissions").describe(error_code_description3)
2620
2635
  }).describe(`
@@ -2649,7 +2664,6 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
2649
2664
  duplicate_code_on_device,
2650
2665
  duplicate_code_attempt_prevented,
2651
2666
  no_space_for_access_code_on_device,
2652
- access_code_state_unconfirmed,
2653
2667
  code_modified_external_to_seam_error,
2654
2668
  access_code_inactive_error,
2655
2669
  salto_ks_user_not_subscribed,
@@ -2664,7 +2678,6 @@ zod.z.object({
2664
2678
  no_space_for_access_code_on_device: no_space_for_access_code_on_device.optional().nullable(),
2665
2679
  duplicate_code_on_device: duplicate_code_on_device.optional().nullable(),
2666
2680
  duplicate_code_attempt_prevented: duplicate_code_attempt_prevented.optional().nullable(),
2667
- access_code_state_unconfirmed: access_code_state_unconfirmed.optional().nullable(),
2668
2681
  insufficient_permissions: insufficient_permissions2.optional().nullable(),
2669
2682
  code_modified_external_to_seam_error: code_modified_external_to_seam_error.optional().nullable(),
2670
2683
  access_code_inactive: access_code_inactive_error.optional().nullable(),
@@ -7812,33 +7825,6 @@ var openapi = {
7812
7825
  type: "object",
7813
7826
  "x-resource-type": "access_code"
7814
7827
  },
7815
- {
7816
- description: "Indicates that the provider cannot confirm whether the access code was set or removed on the device.",
7817
- properties: {
7818
- created_at: {
7819
- description: "Date and time at which Seam created the error.",
7820
- format: "date-time",
7821
- type: "string"
7822
- },
7823
- error_code: {
7824
- description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
7825
- enum: ["access_code_state_unconfirmed"],
7826
- type: "string"
7827
- },
7828
- is_access_code_error: {
7829
- description: "Indicates that this is an access code error.",
7830
- enum: [true],
7831
- type: "boolean"
7832
- },
7833
- message: {
7834
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
7835
- type: "string"
7836
- }
7837
- },
7838
- required: ["message", "is_access_code_error", "error_code"],
7839
- type: "object",
7840
- "x-resource-type": "access_code"
7841
- },
7842
7828
  {
7843
7829
  description: "Code was modified or removed externally after Seam successfully set it on the device.",
7844
7830
  properties: {
@@ -20788,6 +20774,11 @@ var openapi = {
20788
20774
  description: "Lock name for an Omnitec device.",
20789
20775
  type: "string"
20790
20776
  },
20777
+ time_zone: {
20778
+ description: "IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST).",
20779
+ nullable: true,
20780
+ type: "string"
20781
+ },
20791
20782
  timezone_raw_offset_ms: {
20792
20783
  description: "Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST.",
20793
20784
  format: "float",
@@ -22716,6 +22707,50 @@ var openapi = {
22716
22707
  type: "object",
22717
22708
  "x-variant-group-key": "locks"
22718
22709
  },
22710
+ {
22711
+ description: "Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.",
22712
+ properties: {
22713
+ created_at: {
22714
+ description: "Date and time at which Seam created the warning.",
22715
+ format: "date-time",
22716
+ type: "string"
22717
+ },
22718
+ message: {
22719
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
22720
+ type: "string"
22721
+ },
22722
+ warning_code: {
22723
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
22724
+ enum: ["time_zone_unknown"],
22725
+ type: "string"
22726
+ }
22727
+ },
22728
+ required: ["message", "created_at", "warning_code"],
22729
+ type: "object",
22730
+ "x-variant-group-key": "locks"
22731
+ },
22732
+ {
22733
+ description: "Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.",
22734
+ properties: {
22735
+ created_at: {
22736
+ description: "Date and time at which Seam created the warning.",
22737
+ format: "date-time",
22738
+ type: "string"
22739
+ },
22740
+ message: {
22741
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
22742
+ type: "string"
22743
+ },
22744
+ warning_code: {
22745
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
22746
+ enum: ["time_zone_mismatch"],
22747
+ type: "string"
22748
+ }
22749
+ },
22750
+ required: ["message", "created_at", "warning_code"],
22751
+ type: "object",
22752
+ "x-variant-group-key": "locks"
22753
+ },
22719
22754
  {
22720
22755
  description: "Indicates that the 2N device does not have a time zone configured. Configure a time zone on the device to enable access codes.",
22721
22756
  properties: {
@@ -33796,33 +33831,6 @@ var openapi = {
33796
33831
  type: "object",
33797
33832
  "x-resource-type": "access_code"
33798
33833
  },
33799
- {
33800
- description: "Indicates that the provider cannot confirm whether the access code was set or removed on the device.",
33801
- properties: {
33802
- created_at: {
33803
- description: "Date and time at which Seam created the error.",
33804
- format: "date-time",
33805
- type: "string"
33806
- },
33807
- error_code: {
33808
- description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
33809
- enum: ["access_code_state_unconfirmed"],
33810
- type: "string"
33811
- },
33812
- is_access_code_error: {
33813
- description: "Indicates that this is an access code error.",
33814
- enum: [true],
33815
- type: "boolean"
33816
- },
33817
- message: {
33818
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
33819
- type: "string"
33820
- }
33821
- },
33822
- required: ["message", "is_access_code_error", "error_code"],
33823
- type: "object",
33824
- "x-resource-type": "access_code"
33825
- },
33826
33834
  {
33827
33835
  description: "Code was modified or removed externally after Seam successfully set it on the device.",
33828
33836
  properties: {
@@ -37818,6 +37826,50 @@ var openapi = {
37818
37826
  type: "object",
37819
37827
  "x-variant-group-key": "locks"
37820
37828
  },
37829
+ {
37830
+ description: "Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.",
37831
+ properties: {
37832
+ created_at: {
37833
+ description: "Date and time at which Seam created the warning.",
37834
+ format: "date-time",
37835
+ type: "string"
37836
+ },
37837
+ message: {
37838
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
37839
+ type: "string"
37840
+ },
37841
+ warning_code: {
37842
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
37843
+ enum: ["time_zone_unknown"],
37844
+ type: "string"
37845
+ }
37846
+ },
37847
+ required: ["message", "created_at", "warning_code"],
37848
+ type: "object",
37849
+ "x-variant-group-key": "locks"
37850
+ },
37851
+ {
37852
+ description: "Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.",
37853
+ properties: {
37854
+ created_at: {
37855
+ description: "Date and time at which Seam created the warning.",
37856
+ format: "date-time",
37857
+ type: "string"
37858
+ },
37859
+ message: {
37860
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
37861
+ type: "string"
37862
+ },
37863
+ warning_code: {
37864
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
37865
+ enum: ["time_zone_mismatch"],
37866
+ type: "string"
37867
+ }
37868
+ },
37869
+ required: ["message", "created_at", "warning_code"],
37870
+ type: "object",
37871
+ "x-variant-group-key": "locks"
37872
+ },
37821
37873
  {
37822
37874
  description: "Indicates that the 2N device does not have a time zone configured. Configure a time zone on the device to enable access codes.",
37823
37875
  properties: {