@seamapi/types 1.140.0 → 1.142.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 (52) hide show
  1. package/dist/connect.cjs +113 -11
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +137 -36
  4. package/dist/devicedb.d.cts +16 -16
  5. package/lib/seam/connect/index.d.ts +2 -2
  6. package/lib/seam/connect/index.js +2 -2
  7. package/lib/seam/connect/index.js.map +1 -1
  8. package/lib/seam/connect/model-types.js.map +1 -0
  9. package/lib/seam/connect/models/connect-webview.js.map +1 -0
  10. package/lib/seam/connect/models/custom-metadata.js.map +1 -0
  11. package/lib/seam/connect/models/index.js.map +1 -0
  12. package/lib/seam/connect/openapi.d.ts +116 -36
  13. package/lib/seam/connect/openapi.js +111 -9
  14. package/lib/seam/connect/openapi.js.map +1 -1
  15. package/lib/seam/connect/route-types.d.ts +21 -0
  16. package/lib/seam/connect/schemas.js.map +1 -0
  17. package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +25 -3
  18. package/lib/seam/connect/unstable/models/devices/managed-device.js +5 -2
  19. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
  20. package/lib/seam/connect/unstable/models/devices/phone.d.ts +6 -3
  21. package/lib/seam/connect/unstable/models/devices/unmanaged-device.d.ts +6 -3
  22. package/lib/seam/connect/unstable/models/devices/unmanaged-device.js +2 -3
  23. package/lib/seam/connect/unstable/models/devices/unmanaged-device.js.map +1 -1
  24. package/lib/seam/devicedb/models/device-capability.d.ts +3 -3
  25. package/lib/seam/devicedb/models/device-model.d.ts +6 -6
  26. package/lib/seam/devicedb/route-specs.d.ts +10 -10
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/index.ts +2 -2
  29. package/src/lib/seam/connect/openapi.ts +111 -9
  30. package/src/lib/seam/connect/route-types.ts +77 -0
  31. package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +7 -2
  32. package/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts +6 -4
  33. package/lib/seam/connect/stable/model-types.js.map +0 -1
  34. package/lib/seam/connect/stable/models/connect-webview.js.map +0 -1
  35. package/lib/seam/connect/stable/models/custom-metadata.js.map +0 -1
  36. package/lib/seam/connect/stable/models/index.js.map +0 -1
  37. package/lib/seam/connect/stable/schemas.js.map +0 -1
  38. /package/lib/seam/connect/{stable/model-types.d.ts → model-types.d.ts} +0 -0
  39. /package/lib/seam/connect/{stable/model-types.js → model-types.js} +0 -0
  40. /package/lib/seam/connect/{stable/models → models}/connect-webview.d.ts +0 -0
  41. /package/lib/seam/connect/{stable/models → models}/connect-webview.js +0 -0
  42. /package/lib/seam/connect/{stable/models → models}/custom-metadata.d.ts +0 -0
  43. /package/lib/seam/connect/{stable/models → models}/custom-metadata.js +0 -0
  44. /package/lib/seam/connect/{stable/models → models}/index.d.ts +0 -0
  45. /package/lib/seam/connect/{stable/models → models}/index.js +0 -0
  46. /package/lib/seam/connect/{stable/schemas.d.ts → schemas.d.ts} +0 -0
  47. /package/lib/seam/connect/{stable/schemas.js → schemas.js} +0 -0
  48. /package/src/lib/seam/connect/{stable/model-types.ts → model-types.ts} +0 -0
  49. /package/src/lib/seam/connect/{stable/models → models}/connect-webview.ts +0 -0
  50. /package/src/lib/seam/connect/{stable/models → models}/custom-metadata.ts +0 -0
  51. /package/src/lib/seam/connect/{stable/models → models}/index.ts +0 -0
  52. /package/src/lib/seam/connect/{stable/schemas.ts → schemas.ts} +0 -0
package/dist/connect.cjs CHANGED
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
 
11
- // src/lib/seam/connect/stable/schemas.ts
11
+ // src/lib/seam/connect/schemas.ts
12
12
  var schemas_exports = {};
13
13
  __export(schemas_exports, {
14
14
  connect_webview: () => connect_webview,
@@ -21,7 +21,7 @@ var custom_metadata = zod.z.record(
21
21
  message: "Custom metadata is limited to a maximum of 50 keys"
22
22
  });
23
23
 
24
- // src/lib/seam/connect/stable/models/connect-webview.ts
24
+ // src/lib/seam/connect/models/connect-webview.ts
25
25
  var connect_webview = zod.z.object({
26
26
  connect_webview_id: zod.z.string().uuid(),
27
27
  connected_account_id: zod.z.string().uuid().optional(),
@@ -554,6 +554,7 @@ var openapi_default = {
554
554
  can_program_online_access_codes: { type: "boolean" },
555
555
  can_remotely_lock: { type: "boolean" },
556
556
  can_remotely_unlock: { type: "boolean" },
557
+ can_simulate_removal: { type: "boolean" },
557
558
  capabilities_supported: {
558
559
  description: 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
559
560
  items: {
@@ -1899,6 +1900,7 @@ var openapi_default = {
1899
1900
  can_program_online_access_codes: { type: "boolean" },
1900
1901
  can_remotely_lock: { type: "boolean" },
1901
1902
  can_remotely_unlock: { type: "boolean" },
1903
+ can_simulate_removal: { type: "boolean" },
1902
1904
  capabilities_supported: {
1903
1905
  description: 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
1904
1906
  items: {
@@ -2113,6 +2115,7 @@ var openapi_default = {
2113
2115
  can_program_online_access_codes: { type: "boolean" },
2114
2116
  can_remotely_lock: { type: "boolean" },
2115
2117
  can_remotely_unlock: { type: "boolean" },
2118
+ can_simulate_removal: { type: "boolean" },
2116
2119
  capabilities_supported: {
2117
2120
  description: 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
2118
2121
  items: {
@@ -6501,9 +6504,10 @@ var openapi_default = {
6501
6504
  401: { description: "Unauthorized" }
6502
6505
  },
6503
6506
  security: [
6504
- { access_token: [], seam_workspace: [] },
6505
- { seam_client_session_token: [] },
6506
- { client_session_token: [] }
6507
+ { client_session: [] },
6508
+ { pat_with_workspace: [] },
6509
+ { console_session: [] },
6510
+ { api_key: [] }
6507
6511
  ],
6508
6512
  summary: "/action_attempts/get",
6509
6513
  tags: ["/action_attempts"],
@@ -7709,9 +7713,10 @@ var openapi_default = {
7709
7713
  401: { description: "Unauthorized" }
7710
7714
  },
7711
7715
  security: [
7712
- { access_token: [], seam_workspace: [] },
7713
- { seam_client_session_token: [] },
7714
- { client_session_token: [] }
7716
+ { client_session: [] },
7717
+ { pat_with_workspace: [] },
7718
+ { console_session: [] },
7719
+ { api_key: [] }
7715
7720
  ],
7716
7721
  summary: "/devices/get",
7717
7722
  tags: ["/devices"],
@@ -7860,6 +7865,30 @@ var openapi_default = {
7860
7865
  },
7861
7866
  type: "array"
7862
7867
  },
7868
+ exclude_if: {
7869
+ items: {
7870
+ enum: [
7871
+ "can_remotely_unlock",
7872
+ "can_remotely_lock",
7873
+ "can_program_online_access_codes",
7874
+ "can_simulate_removal"
7875
+ ],
7876
+ type: "string"
7877
+ },
7878
+ type: "array"
7879
+ },
7880
+ include_if: {
7881
+ items: {
7882
+ enum: [
7883
+ "can_remotely_unlock",
7884
+ "can_remotely_lock",
7885
+ "can_program_online_access_codes",
7886
+ "can_simulate_removal"
7887
+ ],
7888
+ type: "string"
7889
+ },
7890
+ type: "array"
7891
+ },
7863
7892
  limit: { default: 500, nullable: true, type: "number" },
7864
7893
  manufacturer: {
7865
7894
  enum: [
@@ -8227,6 +8256,30 @@ var openapi_default = {
8227
8256
  },
8228
8257
  type: "array"
8229
8258
  },
8259
+ exclude_if: {
8260
+ items: {
8261
+ enum: [
8262
+ "can_remotely_unlock",
8263
+ "can_remotely_lock",
8264
+ "can_program_online_access_codes",
8265
+ "can_simulate_removal"
8266
+ ],
8267
+ type: "string"
8268
+ },
8269
+ type: "array"
8270
+ },
8271
+ include_if: {
8272
+ items: {
8273
+ enum: [
8274
+ "can_remotely_unlock",
8275
+ "can_remotely_lock",
8276
+ "can_program_online_access_codes",
8277
+ "can_simulate_removal"
8278
+ ],
8279
+ type: "string"
8280
+ },
8281
+ type: "array"
8282
+ },
8230
8283
  limit: { default: 500, nullable: true, type: "number" },
8231
8284
  manufacturer: {
8232
8285
  enum: [
@@ -9012,9 +9065,10 @@ var openapi_default = {
9012
9065
  401: { description: "Unauthorized" }
9013
9066
  },
9014
9067
  security: [
9015
- { access_token: [], seam_workspace: [] },
9016
- { seam_client_session_token: [] },
9017
- { client_session_token: [] }
9068
+ { client_session: [] },
9069
+ { pat_with_workspace: [] },
9070
+ { console_session: [] },
9071
+ { api_key: [] }
9018
9072
  ],
9019
9073
  summary: "/locks/get",
9020
9074
  tags: ["/locks"],
@@ -9163,6 +9217,30 @@ var openapi_default = {
9163
9217
  },
9164
9218
  type: "array"
9165
9219
  },
9220
+ exclude_if: {
9221
+ items: {
9222
+ enum: [
9223
+ "can_remotely_unlock",
9224
+ "can_remotely_lock",
9225
+ "can_program_online_access_codes",
9226
+ "can_simulate_removal"
9227
+ ],
9228
+ type: "string"
9229
+ },
9230
+ type: "array"
9231
+ },
9232
+ include_if: {
9233
+ items: {
9234
+ enum: [
9235
+ "can_remotely_unlock",
9236
+ "can_remotely_lock",
9237
+ "can_program_online_access_codes",
9238
+ "can_simulate_removal"
9239
+ ],
9240
+ type: "string"
9241
+ },
9242
+ type: "array"
9243
+ },
9166
9244
  limit: { default: 500, nullable: true, type: "number" },
9167
9245
  manufacturer: {
9168
9246
  enum: [
@@ -10873,6 +10951,30 @@ var openapi_default = {
10873
10951
  },
10874
10952
  type: "array"
10875
10953
  },
10954
+ exclude_if: {
10955
+ items: {
10956
+ enum: [
10957
+ "can_remotely_unlock",
10958
+ "can_remotely_lock",
10959
+ "can_program_online_access_codes",
10960
+ "can_simulate_removal"
10961
+ ],
10962
+ type: "string"
10963
+ },
10964
+ type: "array"
10965
+ },
10966
+ include_if: {
10967
+ items: {
10968
+ enum: [
10969
+ "can_remotely_unlock",
10970
+ "can_remotely_lock",
10971
+ "can_program_online_access_codes",
10972
+ "can_simulate_removal"
10973
+ ],
10974
+ type: "string"
10975
+ },
10976
+ type: "array"
10977
+ },
10876
10978
  limit: { default: 500, nullable: true, type: "number" },
10877
10979
  manufacturer: {
10878
10980
  enum: [