@seamapi/types 1.551.0 → 1.553.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 +169 -1
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1365 -125
  4. package/dist/index.cjs +169 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-credential.d.ts +8 -8
  7. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +2 -2
  8. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +28 -28
  9. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +12 -12
  10. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +16 -16
  11. package/lib/seam/connect/models/batch.d.ts +1176 -131
  12. package/lib/seam/connect/models/devices/device-metadata.d.ts +95 -0
  13. package/lib/seam/connect/models/devices/device-metadata.js +62 -0
  14. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  15. package/lib/seam/connect/models/devices/device-type.d.ts +8 -1
  16. package/lib/seam/connect/models/devices/device-type.js +8 -0
  17. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  18. package/lib/seam/connect/models/devices/device.d.ts +136 -3
  19. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +98 -3
  20. package/lib/seam/connect/models/phones/phone-session.d.ts +14 -14
  21. package/lib/seam/connect/openapi.d.ts +100 -0
  22. package/lib/seam/connect/openapi.js +141 -0
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +671 -25
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/models/devices/device-metadata.ts +62 -0
  27. package/src/lib/seam/connect/models/devices/device-type.ts +18 -0
  28. package/src/lib/seam/connect/openapi.ts +153 -0
  29. package/src/lib/seam/connect/route-types.ts +671 -0
package/dist/connect.cjs CHANGED
@@ -1031,7 +1031,26 @@ var device_metadata = zod.z.object({
1031
1031
  product_type: zod.z.string().describe(`Product type for a Sensi device.`)
1032
1032
  }).describe(`Metadata for a Sensi device.`),
1033
1033
  keynest_metadata: zod.z.object({
1034
- device_name: zod.z.string().describe(`Device name for a KeyNest device.`)
1034
+ key_id: zod.z.string().describe(`Key ID for a KeyNest device.`),
1035
+ device_name: zod.z.string().describe(`Device name for a KeyNest device.`),
1036
+ property_id: zod.z.string().nullable().describe(`Property ID for a KeyNest device.`),
1037
+ property_postcode: zod.z.string().nullable().describe(`Property postcode for a KeyNest device.`),
1038
+ key_notes: zod.z.string().nullable().describe(`Key notes for a KeyNest device.`),
1039
+ subscription_plan: zod.z.string().describe(`Subscription plan for a KeyNest device.`),
1040
+ status_type: zod.z.string().describe(`Status type for a KeyNest device.`),
1041
+ current_or_last_store_id: zod.z.number().describe(`Current or last store ID for a KeyNest device.`),
1042
+ last_movement: zod.z.string().describe(`Last movement timestamp for a KeyNest device.`),
1043
+ address: zod.z.string().nullable().describe(`Address for a KeyNest device.`),
1044
+ current_status: zod.z.string().nullable().describe(`Current status for a KeyNest device.`),
1045
+ current_user_name: zod.z.string().nullable().describe(`Current user name for a KeyNest device.`),
1046
+ current_user_email: zod.z.string().nullable().describe(`Current user email for a KeyNest device.`),
1047
+ current_user_phone_number: zod.z.string().nullable().describe(`Current user phone number for a KeyNest device.`),
1048
+ current_user_company: zod.z.string().nullable().describe(`Current user company for a KeyNest device.`),
1049
+ handover_method: zod.z.string().nullable().describe(`Handover method for a KeyNest device.`),
1050
+ keynest_app_user: zod.z.string().nullable().describe(`KeyNest app user for a KeyNest device.`),
1051
+ default_office_id: zod.z.number().describe(`Default office ID for a KeyNest device.`),
1052
+ fob_id: zod.z.number().describe(`Fob ID for a KeyNest device.`),
1053
+ has_photo: zod.z.boolean().describe(`Whether the KeyNest device has a photo.`)
1035
1054
  }).partial().describe(`Metadata for a KeyNest device.`)
1036
1055
  }).partial().describe(`
1037
1056
  ---
@@ -1072,6 +1091,13 @@ var lock_device_type = zod.z.enum(
1072
1091
  Object.values(LOCK_DEVICE_TYPE)
1073
1092
  ).describe(`Device type for smartlocks.
1074
1093
  `);
1094
+ var KEY_DEVICE_TYPE = {
1095
+ KEYNEST_KEY: "keynest_key"
1096
+ };
1097
+ var key_device_type = zod.z.enum(
1098
+ Object.values(KEY_DEVICE_TYPE)
1099
+ ).describe(`Device type for keys.
1100
+ `);
1075
1101
  var NOISE_SENSOR_DEVICE_TYPE = {
1076
1102
  NOISEAWARE_ACTIVITY_ZONE: "noiseaware_activity_zone",
1077
1103
  MINUT_SENSOR: "minut_sensor"
@@ -1105,6 +1131,7 @@ var phone_device_type = zod.z.enum(
1105
1131
  `);
1106
1132
  var any_device_type = zod.z.union([
1107
1133
  lock_device_type,
1134
+ key_device_type,
1108
1135
  noise_sensor_device_type,
1109
1136
  thermostat_device_type,
1110
1137
  phone_device_type
@@ -13887,6 +13914,11 @@ var openapi_default = {
13887
13914
  ],
13888
13915
  type: "string"
13889
13916
  },
13917
+ {
13918
+ description: "Device type for keys.\n ",
13919
+ enum: ["keynest_key"],
13920
+ type: "string"
13921
+ },
13890
13922
  {
13891
13923
  description: "Device type for noise sensors.\n ",
13892
13924
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -15122,9 +15154,99 @@ var openapi_default = {
15122
15154
  keynest_metadata: {
15123
15155
  description: "Metadata for a KeyNest device.",
15124
15156
  properties: {
15157
+ address: {
15158
+ description: "Address for a KeyNest device.",
15159
+ nullable: true,
15160
+ type: "string"
15161
+ },
15162
+ current_or_last_store_id: {
15163
+ description: "Current or last store ID for a KeyNest device.",
15164
+ format: "float",
15165
+ type: "number"
15166
+ },
15167
+ current_status: {
15168
+ description: "Current status for a KeyNest device.",
15169
+ nullable: true,
15170
+ type: "string"
15171
+ },
15172
+ current_user_company: {
15173
+ description: "Current user company for a KeyNest device.",
15174
+ nullable: true,
15175
+ type: "string"
15176
+ },
15177
+ current_user_email: {
15178
+ description: "Current user email for a KeyNest device.",
15179
+ nullable: true,
15180
+ type: "string"
15181
+ },
15182
+ current_user_name: {
15183
+ description: "Current user name for a KeyNest device.",
15184
+ nullable: true,
15185
+ type: "string"
15186
+ },
15187
+ current_user_phone_number: {
15188
+ description: "Current user phone number for a KeyNest device.",
15189
+ nullable: true,
15190
+ type: "string"
15191
+ },
15192
+ default_office_id: {
15193
+ description: "Default office ID for a KeyNest device.",
15194
+ format: "float",
15195
+ type: "number"
15196
+ },
15125
15197
  device_name: {
15126
15198
  description: "Device name for a KeyNest device.",
15127
15199
  type: "string"
15200
+ },
15201
+ fob_id: {
15202
+ description: "Fob ID for a KeyNest device.",
15203
+ format: "float",
15204
+ type: "number"
15205
+ },
15206
+ handover_method: {
15207
+ description: "Handover method for a KeyNest device.",
15208
+ nullable: true,
15209
+ type: "string"
15210
+ },
15211
+ has_photo: {
15212
+ description: "Whether the KeyNest device has a photo.",
15213
+ type: "boolean"
15214
+ },
15215
+ key_id: {
15216
+ description: "Key ID for a KeyNest device.",
15217
+ type: "string"
15218
+ },
15219
+ key_notes: {
15220
+ description: "Key notes for a KeyNest device.",
15221
+ nullable: true,
15222
+ type: "string"
15223
+ },
15224
+ keynest_app_user: {
15225
+ description: "KeyNest app user for a KeyNest device.",
15226
+ nullable: true,
15227
+ type: "string"
15228
+ },
15229
+ last_movement: {
15230
+ description: "Last movement timestamp for a KeyNest device.",
15231
+ type: "string"
15232
+ },
15233
+ property_id: {
15234
+ description: "Property ID for a KeyNest device.",
15235
+ nullable: true,
15236
+ type: "string"
15237
+ },
15238
+ property_postcode: {
15239
+ description: "Property postcode for a KeyNest device.",
15240
+ nullable: true,
15241
+ type: "string"
15242
+ },
15243
+ status_type: {
15244
+ description: "Status type for a KeyNest device.",
15245
+ type: "string"
15246
+ },
15247
+ subscription_plan: {
15248
+ description: "Subscription plan for a KeyNest device.",
15249
+ type: "string"
15128
15250
  }
15129
15251
  },
15130
15252
  type: "object"
@@ -26951,6 +27073,11 @@ var openapi_default = {
26951
27073
  ],
26952
27074
  type: "string"
26953
27075
  },
27076
+ {
27077
+ description: "Device type for keys.\n ",
27078
+ enum: ["keynest_key"],
27079
+ type: "string"
27080
+ },
26954
27081
  {
26955
27082
  description: "Device type for noise sensors.\n ",
26956
27083
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -29385,6 +29512,7 @@ var openapi_default = {
29385
29512
  },
29386
29513
  security: [
29387
29514
  { client_session: [] },
29515
+ { client_session_with_customer: [] },
29388
29516
  { pat_with_workspace: [] },
29389
29517
  { console_session_with_workspace: [] },
29390
29518
  { api_key: [] }
@@ -42661,6 +42789,11 @@ var openapi_default = {
42661
42789
  ],
42662
42790
  type: "string"
42663
42791
  },
42792
+ {
42793
+ description: "Device type for keys.\n ",
42794
+ enum: ["keynest_key"],
42795
+ type: "string"
42796
+ },
42664
42797
  {
42665
42798
  description: "Device type for noise sensors.\n ",
42666
42799
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -42726,6 +42859,11 @@ var openapi_default = {
42726
42859
  ],
42727
42860
  type: "string"
42728
42861
  },
42862
+ {
42863
+ description: "Device type for keys.\n ",
42864
+ enum: ["keynest_key"],
42865
+ type: "string"
42866
+ },
42729
42867
  {
42730
42868
  description: "Device type for noise sensors.\n ",
42731
42869
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -43065,6 +43203,11 @@ var openapi_default = {
43065
43203
  ],
43066
43204
  type: "string"
43067
43205
  },
43206
+ {
43207
+ description: "Device type for keys.\n ",
43208
+ enum: ["keynest_key"],
43209
+ type: "string"
43210
+ },
43068
43211
  {
43069
43212
  description: "Device type for noise sensors.\n ",
43070
43213
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -43126,6 +43269,11 @@ var openapi_default = {
43126
43269
  ],
43127
43270
  type: "string"
43128
43271
  },
43272
+ {
43273
+ description: "Device type for keys.\n ",
43274
+ enum: ["keynest_key"],
43275
+ type: "string"
43276
+ },
43129
43277
  {
43130
43278
  description: "Device type for noise sensors.\n ",
43131
43279
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -43939,6 +44087,11 @@ var openapi_default = {
43939
44087
  ],
43940
44088
  type: "string"
43941
44089
  },
44090
+ {
44091
+ description: "Device type for keys.\n ",
44092
+ enum: ["keynest_key"],
44093
+ type: "string"
44094
+ },
43942
44095
  {
43943
44096
  description: "Device type for noise sensors.\n ",
43944
44097
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -44004,6 +44157,11 @@ var openapi_default = {
44004
44157
  ],
44005
44158
  type: "string"
44006
44159
  },
44160
+ {
44161
+ description: "Device type for keys.\n ",
44162
+ enum: ["keynest_key"],
44163
+ type: "string"
44164
+ },
44007
44165
  {
44008
44166
  description: "Device type for noise sensors.\n ",
44009
44167
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -44340,6 +44498,11 @@ var openapi_default = {
44340
44498
  ],
44341
44499
  type: "string"
44342
44500
  },
44501
+ {
44502
+ description: "Device type for keys.\n ",
44503
+ enum: ["keynest_key"],
44504
+ type: "string"
44505
+ },
44343
44506
  {
44344
44507
  description: "Device type for noise sensors.\n ",
44345
44508
  enum: ["noiseaware_activity_zone", "minut_sensor"],
@@ -44401,6 +44564,11 @@ var openapi_default = {
44401
44564
  ],
44402
44565
  type: "string"
44403
44566
  },
44567
+ {
44568
+ description: "Device type for keys.\n ",
44569
+ enum: ["keynest_key"],
44570
+ type: "string"
44571
+ },
44404
44572
  {
44405
44573
  description: "Device type for noise sensors.\n ",
44406
44574
  enum: ["noiseaware_activity_zone", "minut_sensor"],