@seamapi/types 1.928.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.
Files changed (33) hide show
  1. package/dist/connect.cjs +194 -9
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1348 -104
  4. package/dist/index.cjs +194 -9
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +16 -16
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +5 -5
  8. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +5 -5
  10. package/lib/seam/connect/models/access-grants/access-grant.d.ts +4 -4
  11. package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
  12. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +2 -2
  13. package/lib/seam/connect/models/customer/customer-data.d.ts +12 -12
  14. package/lib/seam/connect/models/customer/location-resources.d.ts +8 -8
  15. package/lib/seam/connect/models/devices/capability-properties/access-code.d.ts +201 -0
  16. package/lib/seam/connect/models/devices/capability-properties/access-code.js +58 -0
  17. package/lib/seam/connect/models/devices/capability-properties/access-code.js.map +1 -1
  18. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +165 -13
  19. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +12 -12
  20. package/lib/seam/connect/models/devices/device-metadata.d.ts +20 -20
  21. package/lib/seam/connect/models/devices/device.d.ts +248 -40
  22. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +180 -28
  23. package/lib/seam/connect/models/spaces/space.d.ts +4 -4
  24. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +4 -4
  25. package/lib/seam/connect/openapi.js +140 -4
  26. package/lib/seam/connect/openapi.js.map +1 -1
  27. package/lib/seam/connect/route-types.d.ts +895 -11
  28. package/package.json +1 -1
  29. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +5 -5
  30. package/src/lib/seam/connect/models/devices/capability-properties/access-code.ts +86 -0
  31. package/src/lib/seam/connect/models/devices/capability-properties/index.ts +1 -1
  32. package/src/lib/seam/connect/openapi.ts +168 -4
  33. package/src/lib/seam/connect/route-types.ts +1133 -11
package/dist/index.cjs CHANGED
@@ -96,6 +96,45 @@ var access_code_name_constraint = zod.z.object({
96
96
  max_length: zod.z.number().optional().describe(`Maximum name length constraint for access codes.`)
97
97
  }).describe(`Name constraint for access codes.`);
98
98
  var access_code_constraint = zod.z.union([access_code_code_constraint, access_code_name_constraint]).describe(`Access code constraint.`);
99
+ var time_frame_option_time_pair = zod.z.object({
100
+ display_name: zod.z.string().describe("Label for the check-in/check-out time pairing."),
101
+ check_in_time: zod.z.string().describe(
102
+ "Check-in time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`."
103
+ ),
104
+ check_out_time: zod.z.string().describe(
105
+ "Check-out time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. A `check_out_time` earlier on the clock than `check_in_time` means check-out falls on a later date."
106
+ )
107
+ }).describe(
108
+ "Fixed check-in/check-out time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs."
109
+ );
110
+ var time_frame_option = zod.z.object({
111
+ display_name: zod.z.string().describe(
112
+ "Label for this option. For a single-option device, the product name (for example, `algoPIN` or `SmartPIN`); for a multi-option device, a label that distinguishes it (for example, `Hourly` or `Fixed check-in times`)."
113
+ ),
114
+ min_duration: zod.z.string().optional().describe(
115
+ "Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum."
116
+ ),
117
+ max_duration: zod.z.string().optional().describe(
118
+ "Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum."
119
+ ),
120
+ matching_start_end_time: zod.z.literal(true).optional().describe(
121
+ "When `true`, the check-in and check-out must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`."
122
+ ),
123
+ time_pairs: zod.z.array(time_frame_option_time_pair).optional().describe(
124
+ "Fixed check-in/check-out time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`."
125
+ ),
126
+ start_date_recurrence_rule: zod.z.string().optional().describe(
127
+ "iCalendar recurrence rule (RRULE) that the check-in date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules."
128
+ ),
129
+ end_date_recurrence_rule: zod.z.string().optional().describe(
130
+ "iCalendar recurrence rule (RRULE) that the check-out date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules."
131
+ ),
132
+ time_zone: zod.z.string().optional().describe(
133
+ "IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates."
134
+ )
135
+ }).describe(
136
+ "One way to make a code: a duration band plus the time-of-day and date rules that apply within it. Absence of a rule means unrestricted on that axis."
137
+ );
99
138
  var access_code_capability_properties = zod.z.object({
100
139
  _experimental_supported_code_from_access_codes_lengths: zod.z.array(zod.z.number()).optional().describe(`
101
140
  ---
@@ -112,6 +151,16 @@ var access_code_capability_properties = zod.z.object({
112
151
  property_group_key: access_codes
113
152
  ---
114
153
  Supported code lengths for access codes.`),
154
+ offline_time_frame_options: zod.z.array(time_frame_option).optional().describe(`
155
+ ---
156
+ property_group_key: access_codes
157
+ ---
158
+ Time frames that may be requested when creating an offline access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by \`display_name\` when they do) and satisfies that one option's rules. When \`undefined\`, any time frame works.`),
159
+ online_time_frame_options: zod.z.array(time_frame_option).optional().describe(`
160
+ ---
161
+ property_group_key: access_codes
162
+ ---
163
+ Time frames that may be requested when creating an online access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by \`display_name\` when they do) and satisfies that one option's rules. When \`undefined\`, any time frame works.`),
115
164
  max_active_codes_supported: zod.z.number().optional().describe(`
116
165
  ---
117
166
  property_group_key: access_codes
@@ -2625,10 +2674,10 @@ var code_modified_external_to_seam_warning = common_access_code_warning.extend({
2625
2674
  }).describe(
2626
2675
  "Code was modified or removed externally after Seam successfully set it on the device."
2627
2676
  );
2628
- var provider_issue_warning = common_access_code_warning.extend({
2629
- 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)
2630
2679
  }).describe(
2631
- "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."
2632
2681
  );
2633
2682
  var schlage_access_code_ambiguous_timezone_dst_risk = common_access_code_warning.extend({
2634
2683
  warning_code: zod.z.literal("schlage_access_code_ambiguous_timezone_dst_risk").describe(warning_code_description3)
@@ -2661,7 +2710,7 @@ var being_deleted2 = common_access_code_warning.extend({
2661
2710
  warning_code: zod.z.literal("being_deleted").describe(warning_code_description3)
2662
2711
  }).describe("Access code is being deleted.");
2663
2712
  var access_code_warning = zod.z.discriminatedUnion("warning_code", [
2664
- provider_issue_warning,
2713
+ code_rotates_periodically,
2665
2714
  schlage_access_code_ambiguous_timezone_dst_risk,
2666
2715
  code_modified_external_to_seam_warning,
2667
2716
  delay_in_setting_on_device,
@@ -2675,7 +2724,7 @@ var access_code_warning = zod.z.discriminatedUnion("warning_code", [
2675
2724
  "Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes)."
2676
2725
  );
2677
2726
  zod.z.object({
2678
- provider_issue: provider_issue_warning.optional().nullable(),
2727
+ code_rotates_periodically: code_rotates_periodically.optional().nullable(),
2679
2728
  schlage_access_code_ambiguous_timezone_dst_risk: schlage_access_code_ambiguous_timezone_dst_risk.optional().nullable(),
2680
2729
  code_modified_external_to_seam_warning: code_modified_external_to_seam_warning.optional().nullable(),
2681
2730
  delay_in_setting_on_device: delay_in_setting_on_device.optional().nullable(),
@@ -8779,7 +8828,7 @@ var openapi = {
8779
8828
  discriminator: { propertyName: "warning_code" },
8780
8829
  oneOf: [
8781
8830
  {
8782
- 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.",
8783
8832
  properties: {
8784
8833
  created_at: {
8785
8834
  description: "Date and time at which Seam created the warning.",
@@ -8792,7 +8841,7 @@ var openapi = {
8792
8841
  },
8793
8842
  warning_code: {
8794
8843
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
8795
- enum: ["provider_issue"],
8844
+ enum: ["code_rotates_periodically"],
8796
8845
  type: "string"
8797
8846
  }
8798
8847
  },
@@ -21265,6 +21314,142 @@ var openapi = {
21265
21314
  type: "number",
21266
21315
  "x-property-group-key": "access_codes"
21267
21316
  },
21317
+ offline_time_frame_options: {
21318
+ description: "Time frames that may be requested when creating an offline access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by `display_name` when they do) and satisfies that one option's rules. When `undefined`, any time frame works.",
21319
+ items: {
21320
+ description: "One way to make a code: a duration band plus the time-of-day and date rules that apply within it. Absence of a rule means unrestricted on that axis.",
21321
+ properties: {
21322
+ display_name: {
21323
+ description: "Label for this option. For a single-option device, the product name (for example, `algoPIN` or `SmartPIN`); for a multi-option device, a label that distinguishes it (for example, `Hourly` or `Fixed check-in times`).",
21324
+ type: "string"
21325
+ },
21326
+ end_date_recurrence_rule: {
21327
+ description: "iCalendar recurrence rule (RRULE) that the check-out date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.",
21328
+ type: "string"
21329
+ },
21330
+ matching_start_end_time: {
21331
+ description: "When `true`, the check-in and check-out must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.",
21332
+ enum: [true],
21333
+ type: "boolean"
21334
+ },
21335
+ max_duration: {
21336
+ description: "Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.",
21337
+ type: "string"
21338
+ },
21339
+ min_duration: {
21340
+ description: "Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum.",
21341
+ type: "string"
21342
+ },
21343
+ start_date_recurrence_rule: {
21344
+ description: "iCalendar recurrence rule (RRULE) that the check-in date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.",
21345
+ type: "string"
21346
+ },
21347
+ time_pairs: {
21348
+ description: "Fixed check-in/check-out time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.",
21349
+ items: {
21350
+ description: "Fixed check-in/check-out time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.",
21351
+ properties: {
21352
+ check_in_time: {
21353
+ description: "Check-in time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
21354
+ type: "string"
21355
+ },
21356
+ check_out_time: {
21357
+ description: "Check-out time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. A `check_out_time` earlier on the clock than `check_in_time` means check-out falls on a later date.",
21358
+ type: "string"
21359
+ },
21360
+ display_name: {
21361
+ description: "Label for the check-in/check-out time pairing.",
21362
+ type: "string"
21363
+ }
21364
+ },
21365
+ required: [
21366
+ "display_name",
21367
+ "check_in_time",
21368
+ "check_out_time"
21369
+ ],
21370
+ type: "object"
21371
+ },
21372
+ type: "array"
21373
+ },
21374
+ time_zone: {
21375
+ description: "IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates.",
21376
+ type: "string"
21377
+ }
21378
+ },
21379
+ required: ["display_name"],
21380
+ type: "object"
21381
+ },
21382
+ type: "array",
21383
+ "x-property-group-key": "access_codes"
21384
+ },
21385
+ online_time_frame_options: {
21386
+ description: "Time frames that may be requested when creating an online access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by `display_name` when they do) and satisfies that one option's rules. When `undefined`, any time frame works.",
21387
+ items: {
21388
+ description: "One way to make a code: a duration band plus the time-of-day and date rules that apply within it. Absence of a rule means unrestricted on that axis.",
21389
+ properties: {
21390
+ display_name: {
21391
+ description: "Label for this option. For a single-option device, the product name (for example, `algoPIN` or `SmartPIN`); for a multi-option device, a label that distinguishes it (for example, `Hourly` or `Fixed check-in times`).",
21392
+ type: "string"
21393
+ },
21394
+ end_date_recurrence_rule: {
21395
+ description: "iCalendar recurrence rule (RRULE) that the check-out date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.",
21396
+ type: "string"
21397
+ },
21398
+ matching_start_end_time: {
21399
+ description: "When `true`, the check-in and check-out must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.",
21400
+ enum: [true],
21401
+ type: "boolean"
21402
+ },
21403
+ max_duration: {
21404
+ description: "Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.",
21405
+ type: "string"
21406
+ },
21407
+ min_duration: {
21408
+ description: "Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum.",
21409
+ type: "string"
21410
+ },
21411
+ start_date_recurrence_rule: {
21412
+ description: "iCalendar recurrence rule (RRULE) that the check-in date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.",
21413
+ type: "string"
21414
+ },
21415
+ time_pairs: {
21416
+ description: "Fixed check-in/check-out time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.",
21417
+ items: {
21418
+ description: "Fixed check-in/check-out time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.",
21419
+ properties: {
21420
+ check_in_time: {
21421
+ description: "Check-in time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
21422
+ type: "string"
21423
+ },
21424
+ check_out_time: {
21425
+ description: "Check-out time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. A `check_out_time` earlier on the clock than `check_in_time` means check-out falls on a later date.",
21426
+ type: "string"
21427
+ },
21428
+ display_name: {
21429
+ description: "Label for the check-in/check-out time pairing.",
21430
+ type: "string"
21431
+ }
21432
+ },
21433
+ required: [
21434
+ "display_name",
21435
+ "check_in_time",
21436
+ "check_out_time"
21437
+ ],
21438
+ type: "object"
21439
+ },
21440
+ type: "array"
21441
+ },
21442
+ time_zone: {
21443
+ description: "IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates.",
21444
+ type: "string"
21445
+ }
21446
+ },
21447
+ required: ["display_name"],
21448
+ type: "object"
21449
+ },
21450
+ type: "array",
21451
+ "x-property-group-key": "access_codes"
21452
+ },
21268
21453
  supported_code_lengths: {
21269
21454
  description: "Supported code lengths for access codes.",
21270
21455
  items: { format: "float", type: "number" },
@@ -34284,7 +34469,7 @@ var openapi = {
34284
34469
  discriminator: { propertyName: "warning_code" },
34285
34470
  oneOf: [
34286
34471
  {
34287
- 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.",
34288
34473
  properties: {
34289
34474
  created_at: {
34290
34475
  description: "Date and time at which Seam created the warning.",
@@ -34297,7 +34482,7 @@ var openapi = {
34297
34482
  },
34298
34483
  warning_code: {
34299
34484
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
34300
- enum: ["provider_issue"],
34485
+ enum: ["code_rotates_periodically"],
34301
34486
  type: "string"
34302
34487
  }
34303
34488
  },