@seamapi/types 1.530.0 → 1.532.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 (34) hide show
  1. package/dist/connect.cjs +67 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +173 -5
  4. package/dist/index.cjs +67 -4
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-entrance.d.ts +13 -0
  7. package/lib/seam/connect/models/acs/acs-entrance.js +4 -1
  8. package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
  9. package/lib/seam/connect/models/acs/metadata/hotek.d.ts +9 -0
  10. package/lib/seam/connect/models/acs/metadata/hotek.js +7 -0
  11. package/lib/seam/connect/models/acs/metadata/hotek.js.map +1 -0
  12. package/lib/seam/connect/models/acs/metadata/index.d.ts +1 -0
  13. package/lib/seam/connect/models/acs/metadata/index.js +1 -0
  14. package/lib/seam/connect/models/acs/metadata/index.js.map +1 -1
  15. package/lib/seam/connect/models/batch.d.ts +105 -2
  16. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
  17. package/lib/seam/connect/models/devices/device-provider.js +2 -0
  18. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  19. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +3 -1
  20. package/lib/seam/connect/models/devices/unmanaged-device.js +1 -0
  21. package/lib/seam/connect/models/devices/unmanaged-device.js.map +1 -1
  22. package/lib/seam/connect/models/phones/phone-session.d.ts +56 -0
  23. package/lib/seam/connect/openapi.d.ts +59 -0
  24. package/lib/seam/connect/openapi.js +56 -2
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +73 -3
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/acs/acs-entrance.ts +6 -0
  29. package/src/lib/seam/connect/models/acs/metadata/hotek.ts +11 -0
  30. package/src/lib/seam/connect/models/acs/metadata/index.ts +1 -0
  31. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -0
  32. package/src/lib/seam/connect/models/devices/unmanaged-device.ts +1 -0
  33. package/src/lib/seam/connect/openapi.ts +61 -2
  34. package/src/lib/seam/connect/route-types.ts +95 -1
package/dist/connect.cjs CHANGED
@@ -1711,6 +1711,7 @@ var device = zod.z.object({
1711
1711
  Represents a [device](https://docs.seam.co/latest/core-concepts/devices) that has been connected to Seam.
1712
1712
  `);
1713
1713
  var DEVICE_PROVIDERS = {
1714
+ HOTEK: "hotek",
1714
1715
  DORMAKABA_COMMUNITY: "dormakaba_community",
1715
1716
  LEGIC_CONNECT: "legic_connect",
1716
1717
  AKUVOX: "akuvox",
@@ -1816,7 +1817,8 @@ var PROVIDER_CATEGORY_MAP = {
1816
1817
  "salto_space",
1817
1818
  "dormakaba_ambiance",
1818
1819
  "dormakaba_community",
1819
- "legic_connect"
1820
+ "legic_connect",
1821
+ "hotek"
1820
1822
  ],
1821
1823
  internal_beta: ALL_DEVICE_PROVIDERS
1822
1824
  };
@@ -1841,7 +1843,8 @@ var unmanaged_device = device.pick({
1841
1843
  workspace_id: true,
1842
1844
  errors: true,
1843
1845
  warnings: true,
1844
- created_at: true
1846
+ created_at: true,
1847
+ custom_metadata: true
1845
1848
  }).extend({
1846
1849
  is_managed: zod.z.literal(false),
1847
1850
  properties: common_device_properties.pick({
@@ -2461,6 +2464,9 @@ var acs_entrance_dormakaba_community_metadata = zod.z.object({
2461
2464
  }).describe(
2462
2465
  "dormakaba Community-specific metadata associated with the entrance."
2463
2466
  );
2467
+ var acs_entrance_hotek_metadata = zod.z.object({
2468
+ room_number: zod.z.string().describe("Room number of the entrance.")
2469
+ }).describe("Hotek-specific metadata associated with the entrance.");
2464
2470
  var acs_entrance_latch_metadata = zod.z.object({
2465
2471
  accessibility_type: zod.z.string().describe("Accessibility type in the Latch access system."),
2466
2472
  door_name: zod.z.string().describe("Name of the door in the Latch access system."),
@@ -2855,6 +2861,9 @@ var acs_entrance = zod.z.object({
2855
2861
  latch_metadata: acs_entrance_latch_metadata.optional().describe(
2856
2862
  "Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details)."
2857
2863
  ),
2864
+ hotek_metadata: acs_entrance_hotek_metadata.optional().describe(
2865
+ "Hotek-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details)."
2866
+ ),
2858
2867
  visionline_metadata: acs_entrance_visionline_metadata.optional().describe(
2859
2868
  "Visionline-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details)."
2860
2869
  ),
@@ -8040,6 +8049,17 @@ var openapi_default = {
8040
8049
  },
8041
8050
  type: "array"
8042
8051
  },
8052
+ hotek_metadata: {
8053
+ description: "Hotek-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).",
8054
+ properties: {
8055
+ room_number: {
8056
+ description: "Room number of the entrance.",
8057
+ type: "string"
8058
+ }
8059
+ },
8060
+ required: ["room_number"],
8061
+ type: "object"
8062
+ },
8043
8063
  latch_metadata: {
8044
8064
  description: "Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).",
8045
8065
  properties: {
@@ -17008,6 +17028,7 @@ var openapi_default = {
17008
17028
  can_unlock_with_code: { type: "boolean" },
17009
17029
  device_provider_name: {
17010
17030
  enum: [
17031
+ "hotek",
17011
17032
  "dormakaba_community",
17012
17033
  "legic_connect",
17013
17034
  "akuvox",
@@ -23178,6 +23199,17 @@ var openapi_default = {
23178
23199
  },
23179
23200
  type: "array"
23180
23201
  },
23202
+ hotek_metadata: {
23203
+ description: "Hotek-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).",
23204
+ properties: {
23205
+ room_number: {
23206
+ description: "Room number of the entrance.",
23207
+ type: "string"
23208
+ }
23209
+ },
23210
+ required: ["room_number"],
23211
+ type: "object"
23212
+ },
23181
23213
  latch_metadata: {
23182
23214
  description: "Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).",
23183
23215
  properties: {
@@ -26787,6 +26819,13 @@ var openapi_default = {
26787
26819
  format: "date-time",
26788
26820
  type: "string"
26789
26821
  },
26822
+ custom_metadata: {
26823
+ additionalProperties: {
26824
+ oneOf: [{ type: "string" }, { type: "boolean" }]
26825
+ },
26826
+ description: "Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.",
26827
+ type: "object"
26828
+ },
26790
26829
  device_id: {
26791
26830
  description: "ID of the device.",
26792
26831
  format: "uuid",
@@ -27942,6 +27981,7 @@ var openapi_default = {
27942
27981
  "errors",
27943
27982
  "warnings",
27944
27983
  "created_at",
27984
+ "custom_metadata",
27945
27985
  "is_managed",
27946
27986
  "properties"
27947
27987
  ],
@@ -39452,6 +39492,7 @@ var openapi_default = {
39452
39492
  description: "Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/latest/api/devices/list_device_providers) with no filters.",
39453
39493
  items: {
39454
39494
  enum: [
39495
+ "hotek",
39455
39496
  "dormakaba_community",
39456
39497
  "legic_connect",
39457
39498
  "akuvox",
@@ -44432,6 +44473,17 @@ var openapi_default = {
44432
44473
  "application/json": {
44433
44474
  schema: {
44434
44475
  properties: {
44476
+ custom_metadata: {
44477
+ additionalProperties: {
44478
+ nullable: true,
44479
+ oneOf: [
44480
+ { maxLength: 500, type: "string" },
44481
+ { type: "boolean" }
44482
+ ]
44483
+ },
44484
+ description: "Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs.",
44485
+ type: "object"
44486
+ },
44435
44487
  device_id: {
44436
44488
  description: "ID of the unmanaged device that you want to update.",
44437
44489
  format: "uuid",
@@ -44443,7 +44495,7 @@ var openapi_default = {
44443
44495
  type: "boolean"
44444
44496
  }
44445
44497
  },
44446
- required: ["device_id", "is_managed"],
44498
+ required: ["device_id"],
44447
44499
  type: "object"
44448
44500
  }
44449
44501
  }
@@ -44485,6 +44537,17 @@ var openapi_default = {
44485
44537
  "application/json": {
44486
44538
  schema: {
44487
44539
  properties: {
44540
+ custom_metadata: {
44541
+ additionalProperties: {
44542
+ nullable: true,
44543
+ oneOf: [
44544
+ { maxLength: 500, type: "string" },
44545
+ { type: "boolean" }
44546
+ ]
44547
+ },
44548
+ description: "Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs.",
44549
+ type: "object"
44550
+ },
44488
44551
  device_id: {
44489
44552
  description: "ID of the unmanaged device that you want to update.",
44490
44553
  format: "uuid",
@@ -44496,7 +44559,7 @@ var openapi_default = {
44496
44559
  type: "boolean"
44497
44560
  }
44498
44561
  },
44499
- required: ["device_id", "is_managed"],
44562
+ required: ["device_id"],
44500
44563
  type: "object"
44501
44564
  }
44502
44565
  }