@seamapi/types 1.976.0 → 1.978.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 (29) hide show
  1. package/dist/connect.cjs +270 -59
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +504 -46
  4. package/dist/index.cjs +270 -59
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/customer/customer-portal.d.ts +74 -14
  7. package/lib/seam/connect/models/customer/customer-portal.js +18 -4
  8. package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
  9. package/lib/seam/connect/models/devices/device-metadata.d.ts +48 -0
  10. package/lib/seam/connect/models/devices/device-metadata.js +40 -0
  11. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  12. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
  13. package/lib/seam/connect/models/devices/device-provider.js +2 -1
  14. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  15. package/lib/seam/connect/models/devices/device-type.d.ts +1 -0
  16. package/lib/seam/connect/models/devices/device-type.js +1 -0
  17. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  18. package/lib/seam/connect/models/devices/device.d.ts +71 -3
  19. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +51 -3
  20. package/lib/seam/connect/openapi.js +239 -40
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +381 -40
  23. package/package.json +2 -2
  24. package/src/lib/seam/connect/models/customer/customer-portal.ts +18 -4
  25. package/src/lib/seam/connect/models/devices/device-metadata.ts +41 -0
  26. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
  27. package/src/lib/seam/connect/models/devices/device-type.ts +1 -0
  28. package/src/lib/seam/connect/openapi.ts +244 -40
  29. package/src/lib/seam/connect/route-types.ts +438 -12
package/dist/index.cjs CHANGED
@@ -1259,7 +1259,17 @@ var device_metadata = zod.z.object({
1259
1259
  lock_name: zod.z.string().optional().describe(`Lock name for a Kisi device.`),
1260
1260
  place_name: zod.z.string().nullable().optional().describe(`Place name for a Kisi device.`),
1261
1261
  description: zod.z.string().nullable().optional().describe(`Description for a Kisi device.`)
1262
- }).partial().describe(`Metadata for a Kisi device.`)
1262
+ }).partial().describe(`Metadata for a Kisi device.`),
1263
+ aqara_metadata: zod.z.object({
1264
+ did: zod.z.string().optional().describe(`Device ID (did) for an Aqara device.`),
1265
+ parent_did: zod.z.string().optional().describe(`Parent gateway device ID for an Aqara device.`),
1266
+ device_name: zod.z.string().optional().describe(`Device name for an Aqara device.`),
1267
+ model: zod.z.string().optional().describe(`Model identifier for an Aqara device.`),
1268
+ model_type: zod.z.number().optional().describe(`Model type for an Aqara device.`),
1269
+ time_zone: zod.z.string().nullable().optional().describe(`Time zone reported for an Aqara device (e.g. GMT-07:00).`),
1270
+ position_id: zod.z.string().nullable().optional().describe(`Position (room) ID for an Aqara device.`),
1271
+ firmware_version: zod.z.string().nullable().optional().describe(`Firmware version for an Aqara device.`)
1272
+ }).partial().describe(`Metadata for an Aqara device.`)
1263
1273
  }).partial().describe(`
1264
1274
  ---
1265
1275
  property_group_key: provider_metadata
@@ -1295,7 +1305,8 @@ var LOCK_DEVICE_TYPE = {
1295
1305
  ULTRALOQ_LOCK: "ultraloq_lock",
1296
1306
  KEYINCODE_LOCK: "keyincode_lock",
1297
1307
  OMNITEC_LOCK: "omnitec_lock",
1298
- KISI_LOCK: "kisi_lock"
1308
+ KISI_LOCK: "kisi_lock",
1309
+ AQARA_LOCK: "aqara_lock"
1299
1310
  };
1300
1311
  var lock_device_type = zod.z.enum(
1301
1312
  Object.values(LOCK_DEVICE_TYPE)
@@ -2255,7 +2266,8 @@ var DEVICE_PROVIDERS = {
2255
2266
  GUESTY: "guesty",
2256
2267
  ACUITY_SCHEDULING: "acuity_scheduling",
2257
2268
  OMNITEC: "omnitec",
2258
- KISI: "kisi"
2269
+ KISI: "kisi",
2270
+ AQARA: "aqara"
2259
2271
  };
2260
2272
  var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
2261
2273
  var PROVIDER_CATEGORY_MAP = {
@@ -2323,7 +2335,7 @@ var PROVIDER_CATEGORY_MAP = {
2323
2335
  "sifely",
2324
2336
  "thirty_three_lock"
2325
2337
  ],
2326
- beta: ["salto_ks_accept"],
2338
+ beta: ["salto_ks_accept", "aqara"],
2327
2339
  thermostats: ["ecobee", "nest", "sensi", "honeywell_resideo", "first_alert"],
2328
2340
  noise_sensors: ["minut", "noiseaware"],
2329
2341
  access_control_systems: [
@@ -19135,7 +19147,8 @@ var openapi = {
19135
19147
  "ultraloq_lock",
19136
19148
  "keyincode_lock",
19137
19149
  "omnitec_lock",
19138
- "kisi_lock"
19150
+ "kisi_lock",
19151
+ "aqara_lock"
19139
19152
  ],
19140
19153
  type: "string"
19141
19154
  },
@@ -19926,6 +19939,48 @@ var openapi = {
19926
19939
  },
19927
19940
  type: "object"
19928
19941
  },
19942
+ aqara_metadata: {
19943
+ description: "Metadata for an Aqara device.",
19944
+ properties: {
19945
+ device_name: {
19946
+ description: "Device name for an Aqara device.",
19947
+ type: "string"
19948
+ },
19949
+ did: {
19950
+ description: "Device ID (did) for an Aqara device.",
19951
+ type: "string"
19952
+ },
19953
+ firmware_version: {
19954
+ description: "Firmware version for an Aqara device.",
19955
+ nullable: true,
19956
+ type: "string"
19957
+ },
19958
+ model: {
19959
+ description: "Model identifier for an Aqara device.",
19960
+ type: "string"
19961
+ },
19962
+ model_type: {
19963
+ description: "Model type for an Aqara device.",
19964
+ format: "float",
19965
+ type: "number"
19966
+ },
19967
+ parent_did: {
19968
+ description: "Parent gateway device ID for an Aqara device.",
19969
+ type: "string"
19970
+ },
19971
+ position_id: {
19972
+ description: "Position (room) ID for an Aqara device.",
19973
+ nullable: true,
19974
+ type: "string"
19975
+ },
19976
+ time_zone: {
19977
+ description: "Time zone reported for an Aqara device (e.g. GMT-07:00).",
19978
+ nullable: true,
19979
+ type: "string"
19980
+ }
19981
+ },
19982
+ type: "object"
19983
+ },
19929
19984
  assa_abloy_vostio_metadata: {
19930
19985
  description: "Metadata for an ASSA ABLOY Vostio system.",
19931
19986
  properties: {
@@ -22929,7 +22984,8 @@ var openapi = {
22929
22984
  "guesty",
22930
22985
  "acuity_scheduling",
22931
22986
  "omnitec",
22932
- "kisi"
22987
+ "kisi",
22988
+ "aqara"
22933
22989
  ],
22934
22990
  type: "string"
22935
22991
  },
@@ -36966,7 +37022,8 @@ var openapi = {
36966
37022
  "ultraloq_lock",
36967
37023
  "keyincode_lock",
36968
37024
  "omnitec_lock",
36969
- "kisi_lock"
37025
+ "kisi_lock",
37026
+ "aqara_lock"
36970
37027
  ],
36971
37028
  type: "string"
36972
37029
  },
@@ -55810,6 +55867,7 @@ var openapi = {
55810
55867
  "acuity_scheduling",
55811
55868
  "omnitec",
55812
55869
  "kisi",
55870
+ "aqara",
55813
55871
  "yale_access",
55814
55872
  "hid_cm",
55815
55873
  "google_nest",
@@ -57107,15 +57165,42 @@ var openapi = {
57107
57165
  },
57108
57166
  deep_link: {
57109
57167
  description: "Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.",
57110
- properties: {
57111
- resource_key: { type: "string" },
57112
- resource_type: {
57113
- enum: ["reservation", "space"],
57114
- type: "string"
57168
+ discriminator: { propertyName: "resource_type" },
57169
+ oneOf: [
57170
+ {
57171
+ properties: {
57172
+ resource_key: { type: "string" },
57173
+ resource_type: {
57174
+ enum: ["reservation"],
57175
+ type: "string"
57176
+ }
57177
+ },
57178
+ required: ["resource_type", "resource_key"],
57179
+ type: "object"
57180
+ },
57181
+ {
57182
+ properties: {
57183
+ resource_key: { type: "string" },
57184
+ resource_type: {
57185
+ enum: ["space"],
57186
+ type: "string"
57187
+ }
57188
+ },
57189
+ required: ["resource_type", "resource_key"],
57190
+ type: "object"
57191
+ },
57192
+ {
57193
+ properties: {
57194
+ resource_id: { type: "string" },
57195
+ resource_type: {
57196
+ enum: ["device"],
57197
+ type: "string"
57198
+ }
57199
+ },
57200
+ required: ["resource_type", "resource_id"],
57201
+ type: "object"
57115
57202
  }
57116
- },
57117
- required: ["resource_type", "resource_key"],
57118
- type: "object",
57203
+ ],
57119
57204
  "x-undocumented": "Internal endpoint for customer portals."
57120
57205
  },
57121
57206
  exclude_locale_picker: {
@@ -59784,7 +59869,8 @@ var openapi = {
59784
59869
  "ultraloq_lock",
59785
59870
  "keyincode_lock",
59786
59871
  "omnitec_lock",
59787
- "kisi_lock"
59872
+ "kisi_lock",
59873
+ "aqara_lock"
59788
59874
  ],
59789
59875
  type: "string"
59790
59876
  },
@@ -59861,7 +59947,8 @@ var openapi = {
59861
59947
  "ultraloq_lock",
59862
59948
  "keyincode_lock",
59863
59949
  "omnitec_lock",
59864
- "kisi_lock"
59950
+ "kisi_lock",
59951
+ "aqara_lock"
59865
59952
  ],
59866
59953
  type: "string"
59867
59954
  },
@@ -59938,6 +60025,7 @@ var openapi = {
59938
60025
  "tedee",
59939
60026
  "keyincode",
59940
60027
  "akiles",
60028
+ "aqara",
59941
60029
  "ecobee",
59942
60030
  "honeywell_resideo",
59943
60031
  "keynest",
@@ -60232,7 +60320,8 @@ var openapi = {
60232
60320
  "ultraloq_lock",
60233
60321
  "keyincode_lock",
60234
60322
  "omnitec_lock",
60235
- "kisi_lock"
60323
+ "kisi_lock",
60324
+ "aqara_lock"
60236
60325
  ],
60237
60326
  type: "string"
60238
60327
  },
@@ -60305,7 +60394,8 @@ var openapi = {
60305
60394
  "ultraloq_lock",
60306
60395
  "keyincode_lock",
60307
60396
  "omnitec_lock",
60308
- "kisi_lock"
60397
+ "kisi_lock",
60398
+ "aqara_lock"
60309
60399
  ],
60310
60400
  type: "string"
60311
60401
  },
@@ -60442,6 +60532,7 @@ var openapi = {
60442
60532
  "tedee",
60443
60533
  "keyincode",
60444
60534
  "akiles",
60535
+ "aqara",
60445
60536
  "ecobee",
60446
60537
  "honeywell_resideo",
60447
60538
  "keynest",
@@ -62547,7 +62638,8 @@ var openapi = {
62547
62638
  "ultraloq_lock",
62548
62639
  "keyincode_lock",
62549
62640
  "omnitec_lock",
62550
- "kisi_lock"
62641
+ "kisi_lock",
62642
+ "aqara_lock"
62551
62643
  ],
62552
62644
  type: "string"
62553
62645
  },
@@ -62624,7 +62716,8 @@ var openapi = {
62624
62716
  "ultraloq_lock",
62625
62717
  "keyincode_lock",
62626
62718
  "omnitec_lock",
62627
- "kisi_lock"
62719
+ "kisi_lock",
62720
+ "aqara_lock"
62628
62721
  ],
62629
62722
  type: "string"
62630
62723
  },
@@ -62701,6 +62794,7 @@ var openapi = {
62701
62794
  "tedee",
62702
62795
  "keyincode",
62703
62796
  "akiles",
62797
+ "aqara",
62704
62798
  "ecobee",
62705
62799
  "honeywell_resideo",
62706
62800
  "keynest",
@@ -62994,7 +63088,8 @@ var openapi = {
62994
63088
  "ultraloq_lock",
62995
63089
  "keyincode_lock",
62996
63090
  "omnitec_lock",
62997
- "kisi_lock"
63091
+ "kisi_lock",
63092
+ "aqara_lock"
62998
63093
  ],
62999
63094
  type: "string"
63000
63095
  },
@@ -63067,7 +63162,8 @@ var openapi = {
63067
63162
  "ultraloq_lock",
63068
63163
  "keyincode_lock",
63069
63164
  "omnitec_lock",
63070
- "kisi_lock"
63165
+ "kisi_lock",
63166
+ "aqara_lock"
63071
63167
  ],
63072
63168
  type: "string"
63073
63169
  },
@@ -63204,6 +63300,7 @@ var openapi = {
63204
63300
  "tedee",
63205
63301
  "keyincode",
63206
63302
  "akiles",
63303
+ "aqara",
63207
63304
  "ecobee",
63208
63305
  "honeywell_resideo",
63209
63306
  "keynest",
@@ -65268,7 +65365,8 @@ var openapi = {
65268
65365
  "ultraloq_lock",
65269
65366
  "keyincode_lock",
65270
65367
  "omnitec_lock",
65271
- "kisi_lock"
65368
+ "kisi_lock",
65369
+ "aqara_lock"
65272
65370
  ],
65273
65371
  type: "string"
65274
65372
  }
@@ -65309,7 +65407,8 @@ var openapi = {
65309
65407
  "ultraloq_lock",
65310
65408
  "keyincode_lock",
65311
65409
  "omnitec_lock",
65312
- "kisi_lock"
65410
+ "kisi_lock",
65411
+ "aqara_lock"
65313
65412
  ],
65314
65413
  type: "string"
65315
65414
  },
@@ -65348,6 +65447,7 @@ var openapi = {
65348
65447
  "tedee",
65349
65448
  "keyincode",
65350
65449
  "akiles",
65450
+ "aqara",
65351
65451
  "korelock",
65352
65452
  "smartthings",
65353
65453
  "ultraloq",
@@ -65625,7 +65725,8 @@ var openapi = {
65625
65725
  "ultraloq_lock",
65626
65726
  "keyincode_lock",
65627
65727
  "omnitec_lock",
65628
- "kisi_lock"
65728
+ "kisi_lock",
65729
+ "aqara_lock"
65629
65730
  ],
65630
65731
  type: "string"
65631
65732
  },
@@ -65662,7 +65763,8 @@ var openapi = {
65662
65763
  "ultraloq_lock",
65663
65764
  "keyincode_lock",
65664
65765
  "omnitec_lock",
65665
- "kisi_lock"
65766
+ "kisi_lock",
65767
+ "aqara_lock"
65666
65768
  ],
65667
65769
  type: "string"
65668
65770
  },
@@ -65761,6 +65863,7 @@ var openapi = {
65761
65863
  "tedee",
65762
65864
  "keyincode",
65763
65865
  "akiles",
65866
+ "aqara",
65764
65867
  "korelock",
65765
65868
  "smartthings",
65766
65869
  "ultraloq",
@@ -77668,15 +77771,42 @@ var openapi = {
77668
77771
  },
77669
77772
  deep_link: {
77670
77773
  description: "Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.",
77671
- properties: {
77672
- resource_key: { type: "string" },
77673
- resource_type: {
77674
- enum: ["reservation", "space"],
77675
- type: "string"
77774
+ discriminator: { propertyName: "resource_type" },
77775
+ oneOf: [
77776
+ {
77777
+ properties: {
77778
+ resource_key: { type: "string" },
77779
+ resource_type: {
77780
+ enum: ["reservation"],
77781
+ type: "string"
77782
+ }
77783
+ },
77784
+ required: ["resource_type", "resource_key"],
77785
+ type: "object"
77786
+ },
77787
+ {
77788
+ properties: {
77789
+ resource_key: { type: "string" },
77790
+ resource_type: {
77791
+ enum: ["space"],
77792
+ type: "string"
77793
+ }
77794
+ },
77795
+ required: ["resource_type", "resource_key"],
77796
+ type: "object"
77797
+ },
77798
+ {
77799
+ properties: {
77800
+ resource_id: { type: "string" },
77801
+ resource_type: {
77802
+ enum: ["device"],
77803
+ type: "string"
77804
+ }
77805
+ },
77806
+ required: ["resource_type", "resource_id"],
77807
+ type: "object"
77676
77808
  }
77677
- },
77678
- required: ["resource_type", "resource_key"],
77679
- type: "object",
77809
+ ],
77680
77810
  "x-undocumented": "Internal endpoint for customer portals."
77681
77811
  },
77682
77812
  exclude_locale_picker: {
@@ -78095,15 +78225,42 @@ var openapi = {
78095
78225
  },
78096
78226
  deep_link: {
78097
78227
  description: "Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.",
78098
- properties: {
78099
- resource_key: { type: "string" },
78100
- resource_type: {
78101
- enum: ["reservation", "space"],
78102
- type: "string"
78228
+ discriminator: { propertyName: "resource_type" },
78229
+ oneOf: [
78230
+ {
78231
+ properties: {
78232
+ resource_key: { type: "string" },
78233
+ resource_type: {
78234
+ enum: ["reservation"],
78235
+ type: "string"
78236
+ }
78237
+ },
78238
+ required: ["resource_type", "resource_key"],
78239
+ type: "object"
78240
+ },
78241
+ {
78242
+ properties: {
78243
+ resource_key: { type: "string" },
78244
+ resource_type: {
78245
+ enum: ["space"],
78246
+ type: "string"
78247
+ }
78248
+ },
78249
+ required: ["resource_type", "resource_key"],
78250
+ type: "object"
78251
+ },
78252
+ {
78253
+ properties: {
78254
+ resource_id: { type: "string" },
78255
+ resource_type: {
78256
+ enum: ["device"],
78257
+ type: "string"
78258
+ }
78259
+ },
78260
+ required: ["resource_type", "resource_id"],
78261
+ type: "object"
78103
78262
  }
78104
- },
78105
- required: ["resource_type", "resource_key"],
78106
- type: "object",
78263
+ ],
78107
78264
  "x-undocumented": "Internal endpoint for customer portals."
78108
78265
  },
78109
78266
  exclude_locale_picker: {
@@ -78497,15 +78654,42 @@ var openapi = {
78497
78654
  },
78498
78655
  deep_link: {
78499
78656
  description: "Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.",
78500
- properties: {
78501
- resource_key: { type: "string" },
78502
- resource_type: {
78503
- enum: ["reservation", "space"],
78504
- type: "string"
78657
+ discriminator: { propertyName: "resource_type" },
78658
+ oneOf: [
78659
+ {
78660
+ properties: {
78661
+ resource_key: { type: "string" },
78662
+ resource_type: {
78663
+ enum: ["reservation"],
78664
+ type: "string"
78665
+ }
78666
+ },
78667
+ required: ["resource_type", "resource_key"],
78668
+ type: "object"
78669
+ },
78670
+ {
78671
+ properties: {
78672
+ resource_key: { type: "string" },
78673
+ resource_type: {
78674
+ enum: ["space"],
78675
+ type: "string"
78676
+ }
78677
+ },
78678
+ required: ["resource_type", "resource_key"],
78679
+ type: "object"
78680
+ },
78681
+ {
78682
+ properties: {
78683
+ resource_id: { type: "string" },
78684
+ resource_type: {
78685
+ enum: ["device"],
78686
+ type: "string"
78687
+ }
78688
+ },
78689
+ required: ["resource_type", "resource_id"],
78690
+ type: "object"
78505
78691
  }
78506
- },
78507
- required: ["resource_type", "resource_key"],
78508
- type: "object",
78692
+ ],
78509
78693
  "x-undocumented": "Internal endpoint for customer portals."
78510
78694
  },
78511
78695
  exclude_locale_picker: {
@@ -78880,15 +79064,42 @@ var openapi = {
78880
79064
  },
78881
79065
  deep_link: {
78882
79066
  description: "Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.",
78883
- properties: {
78884
- resource_key: { type: "string" },
78885
- resource_type: {
78886
- enum: ["reservation", "space"],
78887
- type: "string"
79067
+ discriminator: { propertyName: "resource_type" },
79068
+ oneOf: [
79069
+ {
79070
+ properties: {
79071
+ resource_key: { type: "string" },
79072
+ resource_type: {
79073
+ enum: ["reservation"],
79074
+ type: "string"
79075
+ }
79076
+ },
79077
+ required: ["resource_type", "resource_key"],
79078
+ type: "object"
79079
+ },
79080
+ {
79081
+ properties: {
79082
+ resource_key: { type: "string" },
79083
+ resource_type: {
79084
+ enum: ["space"],
79085
+ type: "string"
79086
+ }
79087
+ },
79088
+ required: ["resource_type", "resource_key"],
79089
+ type: "object"
79090
+ },
79091
+ {
79092
+ properties: {
79093
+ resource_id: { type: "string" },
79094
+ resource_type: {
79095
+ enum: ["device"],
79096
+ type: "string"
79097
+ }
79098
+ },
79099
+ required: ["resource_type", "resource_id"],
79100
+ type: "object"
78888
79101
  }
78889
- },
78890
- required: ["resource_type", "resource_key"],
78891
- type: "object",
79102
+ ],
78892
79103
  "x-undocumented": "Internal endpoint for customer portals."
78893
79104
  },
78894
79105
  exclude_locale_picker: {