@seamapi/types 1.938.0 → 1.940.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.
package/dist/connect.cjs CHANGED
@@ -171,6 +171,11 @@ var access_code_capability_properties = zod.z.object({
171
171
  property_group_key: access_codes
172
172
  ---
173
173
  Indicates whether the device supports a [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes).`),
174
+ backup_access_code_pool_enabled: zod.z.boolean().optional().describe(`
175
+ ---
176
+ property_group_key: access_codes
177
+ ---
178
+ Indicates whether the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is currently enabled for the device. To disable it, set this to \`false\` using [/devices/update](https://docs.seam.co/api/devices/update).`),
174
179
  has_native_entry_events: zod.z.boolean().optional().describe(`
175
180
  ---
176
181
  property_group_key: access_codes
@@ -21287,6 +21292,11 @@ var openapi = {
21287
21292
  type: "boolean",
21288
21293
  "x-property-group-key": "locks"
21289
21294
  },
21295
+ backup_access_code_pool_enabled: {
21296
+ description: "Indicates whether the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is currently enabled for the device. To disable it, set this to `false` using [/devices/update](https://docs.seam.co/api/devices/update).",
21297
+ type: "boolean",
21298
+ "x-property-group-key": "access_codes"
21299
+ },
21290
21300
  code_constraints: {
21291
21301
  description: "Constraints on access codes for the device. Seam represents each constraint as an object with a `constraint_type` property. Depending on the constraint type, there may also be additional properties. Note that some constraints are manufacturer- or device-specific.",
21292
21302
  items: {
@@ -62755,6 +62765,10 @@ var openapi = {
62755
62765
  "application/json": {
62756
62766
  schema: {
62757
62767
  properties: {
62768
+ backup_access_code_pool_enabled: {
62769
+ description: "Indicates whether the device's [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is enabled. Set to `false` to disable the pool: Seam stops refilling it and removes any backup codes that have not yet been pulled into active use.",
62770
+ type: "boolean"
62771
+ },
62758
62772
  custom_metadata: {
62759
62773
  additionalProperties: {
62760
62774
  nullable: true,
@@ -62836,6 +62850,10 @@ var openapi = {
62836
62850
  "application/json": {
62837
62851
  schema: {
62838
62852
  properties: {
62853
+ backup_access_code_pool_enabled: {
62854
+ description: "Indicates whether the device's [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is enabled. Set to `false` to disable the pool: Seam stops refilling it and removes any backup codes that have not yet been pulled into active use.",
62855
+ type: "boolean"
62856
+ },
62839
62857
  custom_metadata: {
62840
62858
  additionalProperties: {
62841
62859
  nullable: true,
@@ -67736,6 +67754,577 @@ var openapi = {
67736
67754
  "x-undocumented": "Internal endpoint for Console"
67737
67755
  }
67738
67756
  },
67757
+ "/seam/console/v1/lynx_migration/get_property_migration_status": {
67758
+ get: {
67759
+ description: "Returns the most recent Lynx cutover run for a property (space), including a\nrollup of its per-reservation child runs by status. Returns a null run when the\nproperty has never been migrated.",
67760
+ operationId: "seamConsoleV1LynxMigrationGetPropertyMigrationStatusGet",
67761
+ parameters: [
67762
+ {
67763
+ in: "query",
67764
+ name: "space_id",
67765
+ required: true,
67766
+ schema: {
67767
+ description: "ID of the space (property) to get the migration status for.",
67768
+ format: "uuid",
67769
+ type: "string"
67770
+ }
67771
+ }
67772
+ ],
67773
+ responses: {
67774
+ 200: {
67775
+ content: {
67776
+ "application/json": {
67777
+ schema: {
67778
+ properties: {
67779
+ lynx_migration_property_run: {
67780
+ nullable: true,
67781
+ properties: {
67782
+ child_status_counts: {
67783
+ additionalProperties: {
67784
+ format: "float",
67785
+ type: "number"
67786
+ },
67787
+ type: "object"
67788
+ },
67789
+ created_at: { type: "string" },
67790
+ lynx_migration_property_run_id: {
67791
+ format: "uuid",
67792
+ type: "string"
67793
+ },
67794
+ space_id: { format: "uuid", type: "string" },
67795
+ status: { type: "string" },
67796
+ updated_at: { type: "string" }
67797
+ },
67798
+ required: [
67799
+ "lynx_migration_property_run_id",
67800
+ "space_id",
67801
+ "status",
67802
+ "created_at",
67803
+ "updated_at",
67804
+ "child_status_counts"
67805
+ ],
67806
+ type: "object"
67807
+ },
67808
+ ok: { type: "boolean" }
67809
+ },
67810
+ required: ["lynx_migration_property_run", "ok"],
67811
+ type: "object"
67812
+ }
67813
+ }
67814
+ },
67815
+ description: "OK"
67816
+ },
67817
+ 400: { description: "Bad Request" },
67818
+ 401: { description: "Unauthorized" }
67819
+ },
67820
+ security: [
67821
+ { pat_with_workspace: [] },
67822
+ { console_session_with_workspace: [] },
67823
+ { api_key: [] }
67824
+ ],
67825
+ summary: "/seam/console/v1/lynx_migration/get_property_migration_status",
67826
+ tags: [],
67827
+ "x-fern-sdk-group-name": ["seam", "console", "v1", "lynx_migration"],
67828
+ "x-fern-sdk-method-name": "get_property_migration_status",
67829
+ "x-fern-sdk-return-value": "lynx_migration_property_run",
67830
+ "x-response-key": "lynx_migration_property_run",
67831
+ "x-title": "Get Lynx Migration Property Status",
67832
+ "x-undocumented": "Internal endpoint for Console"
67833
+ },
67834
+ post: {
67835
+ description: "Returns the most recent Lynx cutover run for a property (space), including a\nrollup of its per-reservation child runs by status. Returns a null run when the\nproperty has never been migrated.",
67836
+ operationId: "seamConsoleV1LynxMigrationGetPropertyMigrationStatusPost",
67837
+ requestBody: {
67838
+ content: {
67839
+ "application/json": {
67840
+ schema: {
67841
+ properties: {
67842
+ space_id: {
67843
+ description: "ID of the space (property) to get the migration status for.",
67844
+ format: "uuid",
67845
+ type: "string"
67846
+ }
67847
+ },
67848
+ required: ["space_id"],
67849
+ type: "object"
67850
+ }
67851
+ }
67852
+ }
67853
+ },
67854
+ responses: {
67855
+ 200: {
67856
+ content: {
67857
+ "application/json": {
67858
+ schema: {
67859
+ properties: {
67860
+ lynx_migration_property_run: {
67861
+ nullable: true,
67862
+ properties: {
67863
+ child_status_counts: {
67864
+ additionalProperties: {
67865
+ format: "float",
67866
+ type: "number"
67867
+ },
67868
+ type: "object"
67869
+ },
67870
+ created_at: { type: "string" },
67871
+ lynx_migration_property_run_id: {
67872
+ format: "uuid",
67873
+ type: "string"
67874
+ },
67875
+ space_id: { format: "uuid", type: "string" },
67876
+ status: { type: "string" },
67877
+ updated_at: { type: "string" }
67878
+ },
67879
+ required: [
67880
+ "lynx_migration_property_run_id",
67881
+ "space_id",
67882
+ "status",
67883
+ "created_at",
67884
+ "updated_at",
67885
+ "child_status_counts"
67886
+ ],
67887
+ type: "object"
67888
+ },
67889
+ ok: { type: "boolean" }
67890
+ },
67891
+ required: ["lynx_migration_property_run", "ok"],
67892
+ type: "object"
67893
+ }
67894
+ }
67895
+ },
67896
+ description: "OK"
67897
+ },
67898
+ 400: { description: "Bad Request" },
67899
+ 401: { description: "Unauthorized" }
67900
+ },
67901
+ security: [
67902
+ { pat_with_workspace: [] },
67903
+ { console_session_with_workspace: [] },
67904
+ { api_key: [] }
67905
+ ],
67906
+ summary: "/seam/console/v1/lynx_migration/get_property_migration_status",
67907
+ tags: [],
67908
+ "x-fern-sdk-group-name": ["seam", "console", "v1", "lynx_migration"],
67909
+ "x-fern-sdk-method-name": "get_property_migration_status",
67910
+ "x-fern-sdk-return-value": "lynx_migration_property_run",
67911
+ "x-response-key": "lynx_migration_property_run",
67912
+ "x-title": "Get Lynx Migration Property Status",
67913
+ "x-undocumented": "Internal endpoint for Console"
67914
+ }
67915
+ },
67916
+ "/seam/console/v1/lynx_migration/get_reservation_migration_status": {
67917
+ get: {
67918
+ description: "Returns the most recent per-reservation Lynx cutover run for an access grant.\nReturns a null run when the reservation has never been migrated. Keyed by\naccess_grant_id \u2014 a successful cutover deletes the access grant, but the run\nrecord outlives it, so status remains available after the migration completes.",
67919
+ operationId: "seamConsoleV1LynxMigrationGetReservationMigrationStatusGet",
67920
+ parameters: [
67921
+ {
67922
+ in: "query",
67923
+ name: "access_grant_id",
67924
+ required: true,
67925
+ schema: {
67926
+ description: "ID of the access grant (reservation) to get the migration status for.",
67927
+ format: "uuid",
67928
+ type: "string"
67929
+ }
67930
+ }
67931
+ ],
67932
+ responses: {
67933
+ 200: {
67934
+ content: {
67935
+ "application/json": {
67936
+ schema: {
67937
+ properties: {
67938
+ lynx_migration_reservation_run: {
67939
+ nullable: true,
67940
+ properties: {
67941
+ access_grant_id: { format: "uuid", type: "string" },
67942
+ created_at: { type: "string" },
67943
+ lynx_migration_run_id: {
67944
+ format: "uuid",
67945
+ type: "string"
67946
+ },
67947
+ status: { type: "string" },
67948
+ updated_at: { type: "string" }
67949
+ },
67950
+ required: [
67951
+ "lynx_migration_run_id",
67952
+ "access_grant_id",
67953
+ "status",
67954
+ "created_at",
67955
+ "updated_at"
67956
+ ],
67957
+ type: "object"
67958
+ },
67959
+ ok: { type: "boolean" }
67960
+ },
67961
+ required: ["lynx_migration_reservation_run", "ok"],
67962
+ type: "object"
67963
+ }
67964
+ }
67965
+ },
67966
+ description: "OK"
67967
+ },
67968
+ 400: { description: "Bad Request" },
67969
+ 401: { description: "Unauthorized" }
67970
+ },
67971
+ security: [
67972
+ { pat_with_workspace: [] },
67973
+ { console_session_with_workspace: [] },
67974
+ { api_key: [] }
67975
+ ],
67976
+ summary: "/seam/console/v1/lynx_migration/get_reservation_migration_status",
67977
+ tags: [],
67978
+ "x-fern-sdk-group-name": ["seam", "console", "v1", "lynx_migration"],
67979
+ "x-fern-sdk-method-name": "get_reservation_migration_status",
67980
+ "x-fern-sdk-return-value": "lynx_migration_reservation_run",
67981
+ "x-response-key": "lynx_migration_reservation_run",
67982
+ "x-title": "Get Lynx Migration Reservation Status",
67983
+ "x-undocumented": "Internal endpoint for Console"
67984
+ },
67985
+ post: {
67986
+ description: "Returns the most recent per-reservation Lynx cutover run for an access grant.\nReturns a null run when the reservation has never been migrated. Keyed by\naccess_grant_id \u2014 a successful cutover deletes the access grant, but the run\nrecord outlives it, so status remains available after the migration completes.",
67987
+ operationId: "seamConsoleV1LynxMigrationGetReservationMigrationStatusPost",
67988
+ requestBody: {
67989
+ content: {
67990
+ "application/json": {
67991
+ schema: {
67992
+ properties: {
67993
+ access_grant_id: {
67994
+ description: "ID of the access grant (reservation) to get the migration status for.",
67995
+ format: "uuid",
67996
+ type: "string"
67997
+ }
67998
+ },
67999
+ required: ["access_grant_id"],
68000
+ type: "object"
68001
+ }
68002
+ }
68003
+ }
68004
+ },
68005
+ responses: {
68006
+ 200: {
68007
+ content: {
68008
+ "application/json": {
68009
+ schema: {
68010
+ properties: {
68011
+ lynx_migration_reservation_run: {
68012
+ nullable: true,
68013
+ properties: {
68014
+ access_grant_id: { format: "uuid", type: "string" },
68015
+ created_at: { type: "string" },
68016
+ lynx_migration_run_id: {
68017
+ format: "uuid",
68018
+ type: "string"
68019
+ },
68020
+ status: { type: "string" },
68021
+ updated_at: { type: "string" }
68022
+ },
68023
+ required: [
68024
+ "lynx_migration_run_id",
68025
+ "access_grant_id",
68026
+ "status",
68027
+ "created_at",
68028
+ "updated_at"
68029
+ ],
68030
+ type: "object"
68031
+ },
68032
+ ok: { type: "boolean" }
68033
+ },
68034
+ required: ["lynx_migration_reservation_run", "ok"],
68035
+ type: "object"
68036
+ }
68037
+ }
68038
+ },
68039
+ description: "OK"
68040
+ },
68041
+ 400: { description: "Bad Request" },
68042
+ 401: { description: "Unauthorized" }
68043
+ },
68044
+ security: [
68045
+ { pat_with_workspace: [] },
68046
+ { console_session_with_workspace: [] },
68047
+ { api_key: [] }
68048
+ ],
68049
+ summary: "/seam/console/v1/lynx_migration/get_reservation_migration_status",
68050
+ tags: [],
68051
+ "x-fern-sdk-group-name": ["seam", "console", "v1", "lynx_migration"],
68052
+ "x-fern-sdk-method-name": "get_reservation_migration_status",
68053
+ "x-fern-sdk-return-value": "lynx_migration_reservation_run",
68054
+ "x-response-key": "lynx_migration_reservation_run",
68055
+ "x-title": "Get Lynx Migration Reservation Status",
68056
+ "x-undocumented": "Internal endpoint for Console"
68057
+ }
68058
+ },
68059
+ "/seam/console/v1/lynx_migration/list_property_reservations": {
68060
+ get: {
68061
+ description: "Lists the reservations in a property (space) and classifies each for a Lynx\ncutover: which are eligible to migrate to Seam-managed access, and which are\nskipped (with a reason). Read-only \u2014 does not start a migration.",
68062
+ operationId: "seamConsoleV1LynxMigrationListPropertyReservationsGet",
68063
+ parameters: [
68064
+ {
68065
+ in: "query",
68066
+ name: "space_id",
68067
+ required: true,
68068
+ schema: {
68069
+ description: "ID of the space (property) to plan a Lynx migration for.",
68070
+ format: "uuid",
68071
+ type: "string"
68072
+ }
68073
+ }
68074
+ ],
68075
+ responses: {
68076
+ 200: {
68077
+ content: {
68078
+ "application/json": {
68079
+ schema: {
68080
+ properties: {
68081
+ lynx_migration_property_plan: {
68082
+ properties: {
68083
+ eligible: {
68084
+ items: {
68085
+ properties: {
68086
+ access_grant_id: {
68087
+ format: "uuid",
68088
+ type: "string"
68089
+ },
68090
+ guest_name: { nullable: true, type: "string" }
68091
+ },
68092
+ required: ["access_grant_id", "guest_name"],
68093
+ type: "object"
68094
+ },
68095
+ type: "array"
68096
+ },
68097
+ eligible_count: { format: "float", type: "number" },
68098
+ skipped: {
68099
+ items: {
68100
+ properties: {
68101
+ access_grant_id: {
68102
+ format: "uuid",
68103
+ type: "string"
68104
+ },
68105
+ guest_name: { nullable: true, type: "string" },
68106
+ reason: { nullable: true, type: "string" }
68107
+ },
68108
+ required: [
68109
+ "access_grant_id",
68110
+ "guest_name",
68111
+ "reason"
68112
+ ],
68113
+ type: "object"
68114
+ },
68115
+ type: "array"
68116
+ },
68117
+ space_id: { format: "uuid", type: "string" },
68118
+ total: { format: "float", type: "number" }
68119
+ },
68120
+ required: [
68121
+ "space_id",
68122
+ "total",
68123
+ "eligible_count",
68124
+ "eligible",
68125
+ "skipped"
68126
+ ],
68127
+ type: "object"
68128
+ },
68129
+ ok: { type: "boolean" }
68130
+ },
68131
+ required: ["lynx_migration_property_plan", "ok"],
68132
+ type: "object"
68133
+ }
68134
+ }
68135
+ },
68136
+ description: "OK"
68137
+ },
68138
+ 400: { description: "Bad Request" },
68139
+ 401: { description: "Unauthorized" }
68140
+ },
68141
+ security: [
68142
+ { pat_with_workspace: [] },
68143
+ { console_session_with_workspace: [] },
68144
+ { api_key: [] }
68145
+ ],
68146
+ summary: "/seam/console/v1/lynx_migration/list_property_reservations",
68147
+ tags: [],
68148
+ "x-fern-sdk-group-name": ["seam", "console", "v1", "lynx_migration"],
68149
+ "x-fern-sdk-method-name": "list_property_reservations",
68150
+ "x-fern-sdk-return-value": "lynx_migration_property_plan",
68151
+ "x-response-key": "lynx_migration_property_plan",
68152
+ "x-title": "List Lynx Migration Property Reservations",
68153
+ "x-undocumented": "Internal endpoint for Console"
68154
+ },
68155
+ post: {
68156
+ description: "Lists the reservations in a property (space) and classifies each for a Lynx\ncutover: which are eligible to migrate to Seam-managed access, and which are\nskipped (with a reason). Read-only \u2014 does not start a migration.",
68157
+ operationId: "seamConsoleV1LynxMigrationListPropertyReservationsPost",
68158
+ requestBody: {
68159
+ content: {
68160
+ "application/json": {
68161
+ schema: {
68162
+ properties: {
68163
+ space_id: {
68164
+ description: "ID of the space (property) to plan a Lynx migration for.",
68165
+ format: "uuid",
68166
+ type: "string"
68167
+ }
68168
+ },
68169
+ required: ["space_id"],
68170
+ type: "object"
68171
+ }
68172
+ }
68173
+ }
68174
+ },
68175
+ responses: {
68176
+ 200: {
68177
+ content: {
68178
+ "application/json": {
68179
+ schema: {
68180
+ properties: {
68181
+ lynx_migration_property_plan: {
68182
+ properties: {
68183
+ eligible: {
68184
+ items: {
68185
+ properties: {
68186
+ access_grant_id: {
68187
+ format: "uuid",
68188
+ type: "string"
68189
+ },
68190
+ guest_name: { nullable: true, type: "string" }
68191
+ },
68192
+ required: ["access_grant_id", "guest_name"],
68193
+ type: "object"
68194
+ },
68195
+ type: "array"
68196
+ },
68197
+ eligible_count: { format: "float", type: "number" },
68198
+ skipped: {
68199
+ items: {
68200
+ properties: {
68201
+ access_grant_id: {
68202
+ format: "uuid",
68203
+ type: "string"
68204
+ },
68205
+ guest_name: { nullable: true, type: "string" },
68206
+ reason: { nullable: true, type: "string" }
68207
+ },
68208
+ required: [
68209
+ "access_grant_id",
68210
+ "guest_name",
68211
+ "reason"
68212
+ ],
68213
+ type: "object"
68214
+ },
68215
+ type: "array"
68216
+ },
68217
+ space_id: { format: "uuid", type: "string" },
68218
+ total: { format: "float", type: "number" }
68219
+ },
68220
+ required: [
68221
+ "space_id",
68222
+ "total",
68223
+ "eligible_count",
68224
+ "eligible",
68225
+ "skipped"
68226
+ ],
68227
+ type: "object"
68228
+ },
68229
+ ok: { type: "boolean" }
68230
+ },
68231
+ required: ["lynx_migration_property_plan", "ok"],
68232
+ type: "object"
68233
+ }
68234
+ }
68235
+ },
68236
+ description: "OK"
68237
+ },
68238
+ 400: { description: "Bad Request" },
68239
+ 401: { description: "Unauthorized" }
68240
+ },
68241
+ security: [
68242
+ { pat_with_workspace: [] },
68243
+ { console_session_with_workspace: [] },
68244
+ { api_key: [] }
68245
+ ],
68246
+ summary: "/seam/console/v1/lynx_migration/list_property_reservations",
68247
+ tags: [],
68248
+ "x-fern-sdk-group-name": ["seam", "console", "v1", "lynx_migration"],
68249
+ "x-fern-sdk-method-name": "list_property_reservations",
68250
+ "x-fern-sdk-return-value": "lynx_migration_property_plan",
68251
+ "x-response-key": "lynx_migration_property_plan",
68252
+ "x-title": "List Lynx Migration Property Reservations",
68253
+ "x-undocumented": "Internal endpoint for Console"
68254
+ }
68255
+ },
68256
+ "/seam/console/v1/lynx_migration/migrate_property": {
68257
+ post: {
68258
+ description: "Starts a Lynx cutover for a property (space): schedules a background task that\nplans the eligible reservations and migrates them to Seam-managed access a\nbounded number at a time. Idempotent \u2014 if a migration is already running for\nthe property, returns that run with `already_running: true`. Poll\n`/seam/console/v1/lynx_migration/get_property_migration_status` for progress.",
68259
+ operationId: "seamConsoleV1LynxMigrationMigratePropertyPost",
68260
+ requestBody: {
68261
+ content: {
68262
+ "application/json": {
68263
+ schema: {
68264
+ properties: {
68265
+ space_id: {
68266
+ description: "ID of the space (property) to migrate.",
68267
+ format: "uuid",
68268
+ type: "string"
68269
+ }
68270
+ },
68271
+ required: ["space_id"],
68272
+ type: "object"
68273
+ }
68274
+ }
68275
+ }
68276
+ },
68277
+ responses: {
68278
+ 200: {
68279
+ content: {
68280
+ "application/json": {
68281
+ schema: {
68282
+ properties: {
68283
+ lynx_migration_property_run: {
68284
+ properties: {
68285
+ already_running: { type: "boolean" },
68286
+ lynx_migration_property_run_id: {
68287
+ format: "uuid",
68288
+ type: "string"
68289
+ },
68290
+ space_id: { format: "uuid", type: "string" },
68291
+ status: { type: "string" }
68292
+ },
68293
+ required: [
68294
+ "lynx_migration_property_run_id",
68295
+ "space_id",
68296
+ "status",
68297
+ "already_running"
68298
+ ],
68299
+ type: "object"
68300
+ },
68301
+ ok: { type: "boolean" }
68302
+ },
68303
+ required: ["lynx_migration_property_run", "ok"],
68304
+ type: "object"
68305
+ }
68306
+ }
68307
+ },
68308
+ description: "OK"
68309
+ },
68310
+ 400: { description: "Bad Request" },
68311
+ 401: { description: "Unauthorized" }
68312
+ },
68313
+ security: [
68314
+ { pat_with_workspace: [] },
68315
+ { console_session_with_workspace: [] },
68316
+ { api_key: [] }
68317
+ ],
68318
+ summary: "/seam/console/v1/lynx_migration/migrate_property",
68319
+ tags: [],
68320
+ "x-fern-sdk-group-name": ["seam", "console", "v1", "lynx_migration"],
68321
+ "x-fern-sdk-method-name": "migrate_property",
68322
+ "x-fern-sdk-return-value": "lynx_migration_property_run",
68323
+ "x-response-key": "lynx_migration_property_run",
68324
+ "x-title": "Migrate a Property to Seam-Managed Access",
68325
+ "x-undocumented": "Internal endpoint for Console"
68326
+ }
68327
+ },
67739
68328
  "/seam/console/v1/sites/create": {
67740
68329
  post: {
67741
68330
  description: "Creates a new site, a top-level space in the property hierarchy.",