@seamapi/types 1.812.0 → 1.814.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
@@ -5835,8 +5835,8 @@ var device_event_issue_properties = {
5835
5835
  device_errors: zod.z.array(common_event_error).describe("Errors associated with the device."),
5836
5836
  device_warnings: zod.z.array(common_event_warning).describe("Warnings associated with the device.")
5837
5837
  };
5838
- var lock_method = zod.z.enum(["keycode", "manual", "automatic", "unknown", "seamapi"]).describe(
5839
- "Method by which the affected lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device."
5838
+ var lock_method = zod.z.enum(["keycode", "manual", "automatic", "unknown", "remote"]).describe(
5839
+ "Method by which the affected lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. The `remote` method indicates any remote (un)lock action, including Bluetooth, mobile app, or Seam API. For Seam-initiated remote (un)locks, look up the `action_attempt_id`."
5840
5840
  );
5841
5841
  var device_connected_event = device_event.extend({
5842
5842
  event_type: zod.z.literal("device.connected")
@@ -6045,7 +6045,10 @@ var lock_locked_event = device_event.extend({
6045
6045
  action_attempt_id: zod.z.string().uuid().optional().describe("ID of the action attempt associated with the lock action."),
6046
6046
  method: lock_method.describe(
6047
6047
  "Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device."
6048
- )
6048
+ ),
6049
+ is_bluetooth_action: zod.z.boolean().optional().describe(`
6050
+ Whether the lock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.
6051
+ `)
6049
6052
  }).describe(`
6050
6053
  ---
6051
6054
  route_path: /locks
@@ -6084,7 +6087,10 @@ var lock_unlocked_event = device_event.extend({
6084
6087
  ---
6085
6088
  ID of the ACS entrance associated with the unlock event.
6086
6089
  `),
6087
- device_id: zod.z.string().uuid().optional().describe("ID of the affected device.")
6090
+ device_id: zod.z.string().uuid().optional().describe("ID of the affected device."),
6091
+ is_bluetooth_action: zod.z.boolean().optional().describe(`
6092
+ Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.
6093
+ `)
6088
6094
  }).describe(`
6089
6095
  ---
6090
6096
  route_path: /locks
@@ -27518,9 +27524,13 @@ var openapi_default = {
27518
27524
  type: "string"
27519
27525
  },
27520
27526
  event_type: { enum: ["lock.locked"], type: "string" },
27527
+ is_bluetooth_action: {
27528
+ description: "\n Whether the lock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.\n ",
27529
+ type: "boolean"
27530
+ },
27521
27531
  method: {
27522
27532
  description: "Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device.",
27523
- enum: ["keycode", "manual", "automatic", "unknown", "seamapi"],
27533
+ enum: ["keycode", "manual", "automatic", "unknown", "remote"],
27524
27534
  type: "string"
27525
27535
  },
27526
27536
  occurred_at: {
@@ -27618,9 +27628,13 @@ var openapi_default = {
27618
27628
  type: "string"
27619
27629
  },
27620
27630
  event_type: { enum: ["lock.unlocked"], type: "string" },
27631
+ is_bluetooth_action: {
27632
+ description: "\n Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.\n ",
27633
+ type: "boolean"
27634
+ },
27621
27635
  method: {
27622
27636
  description: "Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device.",
27623
- enum: ["keycode", "manual", "automatic", "unknown", "seamapi"],
27637
+ enum: ["keycode", "manual", "automatic", "unknown", "remote"],
27624
27638
  type: "string"
27625
27639
  },
27626
27640
  occurred_at: {
@@ -74960,6 +74974,116 @@ var openapi_default = {
74960
74974
  "x-title": "Add Entrances to a Space"
74961
74975
  }
74962
74976
  },
74977
+ "/spaces/add_connected_account": {
74978
+ post: {
74979
+ description: "Adds a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) to a specific space.",
74980
+ operationId: "spacesAddConnectedAccountPost",
74981
+ requestBody: {
74982
+ content: {
74983
+ "application/json": {
74984
+ schema: {
74985
+ properties: {
74986
+ connected_account_id: {
74987
+ description: "ID of the connected account that you want to add to the space.",
74988
+ format: "uuid",
74989
+ type: "string"
74990
+ },
74991
+ space_id: {
74992
+ description: "ID of the space to which you want to add the connected account.",
74993
+ format: "uuid",
74994
+ type: "string"
74995
+ }
74996
+ },
74997
+ required: ["space_id", "connected_account_id"],
74998
+ type: "object"
74999
+ }
75000
+ }
75001
+ }
75002
+ },
75003
+ responses: {
75004
+ 200: {
75005
+ content: {
75006
+ "application/json": {
75007
+ schema: {
75008
+ properties: { ok: { type: "boolean" } },
75009
+ required: ["ok"],
75010
+ type: "object"
75011
+ }
75012
+ }
75013
+ },
75014
+ description: "OK"
75015
+ },
75016
+ 400: { description: "Bad Request" },
75017
+ 401: { description: "Unauthorized" }
75018
+ },
75019
+ security: [
75020
+ { pat_with_workspace: [] },
75021
+ { console_session_with_workspace: [] },
75022
+ { api_key: [] },
75023
+ { client_session_with_customer: [] }
75024
+ ],
75025
+ summary: "/spaces/add_connected_account",
75026
+ tags: [],
75027
+ "x-fern-sdk-group-name": ["spaces"],
75028
+ "x-fern-sdk-method-name": "add_connected_account",
75029
+ "x-response-key": null,
75030
+ "x-title": "Add a Connected Account to a Space"
75031
+ },
75032
+ put: {
75033
+ description: "Adds a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) to a specific space.",
75034
+ operationId: "spacesAddConnectedAccountPut",
75035
+ requestBody: {
75036
+ content: {
75037
+ "application/json": {
75038
+ schema: {
75039
+ properties: {
75040
+ connected_account_id: {
75041
+ description: "ID of the connected account that you want to add to the space.",
75042
+ format: "uuid",
75043
+ type: "string"
75044
+ },
75045
+ space_id: {
75046
+ description: "ID of the space to which you want to add the connected account.",
75047
+ format: "uuid",
75048
+ type: "string"
75049
+ }
75050
+ },
75051
+ required: ["space_id", "connected_account_id"],
75052
+ type: "object"
75053
+ }
75054
+ }
75055
+ }
75056
+ },
75057
+ responses: {
75058
+ 200: {
75059
+ content: {
75060
+ "application/json": {
75061
+ schema: {
75062
+ properties: { ok: { type: "boolean" } },
75063
+ required: ["ok"],
75064
+ type: "object"
75065
+ }
75066
+ }
75067
+ },
75068
+ description: "OK"
75069
+ },
75070
+ 400: { description: "Bad Request" },
75071
+ 401: { description: "Unauthorized" }
75072
+ },
75073
+ security: [
75074
+ { pat_with_workspace: [] },
75075
+ { console_session_with_workspace: [] },
75076
+ { api_key: [] },
75077
+ { client_session_with_customer: [] }
75078
+ ],
75079
+ summary: "/spaces/add_connected_account",
75080
+ tags: [],
75081
+ "x-fern-sdk-group-name": ["spaces"],
75082
+ "x-fern-sdk-method-name": "add_connected_account",
75083
+ "x-response-key": null,
75084
+ "x-title": "Add a Connected Account to a Space"
75085
+ }
75086
+ },
74963
75087
  "/spaces/add_devices": {
74964
75088
  post: {
74965
75089
  description: "Adds devices to a specific space.",
@@ -75923,6 +76047,116 @@ var openapi_default = {
75923
76047
  "x-title": "Remove Entrances from a Space"
75924
76048
  }
75925
76049
  },
76050
+ "/spaces/remove_connected_account": {
76051
+ delete: {
76052
+ description: "Removes a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) from a specific space.",
76053
+ operationId: "spacesRemoveConnectedAccountDelete",
76054
+ parameters: [
76055
+ {
76056
+ in: "query",
76057
+ name: "space_id",
76058
+ required: true,
76059
+ schema: {
76060
+ description: "ID of the space from which you want to remove the connected account.",
76061
+ format: "uuid",
76062
+ type: "string"
76063
+ }
76064
+ },
76065
+ {
76066
+ in: "query",
76067
+ name: "connected_account_id",
76068
+ required: true,
76069
+ schema: {
76070
+ description: "ID of the connected account that you want to remove from the space.",
76071
+ format: "uuid",
76072
+ type: "string"
76073
+ }
76074
+ }
76075
+ ],
76076
+ responses: {
76077
+ 200: {
76078
+ content: {
76079
+ "application/json": {
76080
+ schema: {
76081
+ properties: { ok: { type: "boolean" } },
76082
+ required: ["ok"],
76083
+ type: "object"
76084
+ }
76085
+ }
76086
+ },
76087
+ description: "OK"
76088
+ },
76089
+ 400: { description: "Bad Request" },
76090
+ 401: { description: "Unauthorized" }
76091
+ },
76092
+ security: [
76093
+ { pat_with_workspace: [] },
76094
+ { console_session_with_workspace: [] },
76095
+ { api_key: [] },
76096
+ { client_session_with_customer: [] }
76097
+ ],
76098
+ summary: "/spaces/remove_connected_account",
76099
+ tags: [],
76100
+ "x-fern-sdk-group-name": ["spaces"],
76101
+ "x-fern-sdk-method-name": "remove_connected_account",
76102
+ "x-response-key": null,
76103
+ "x-title": "Remove a Connected Account from a Space"
76104
+ },
76105
+ post: {
76106
+ description: "Removes a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) from a specific space.",
76107
+ operationId: "spacesRemoveConnectedAccountPost",
76108
+ requestBody: {
76109
+ content: {
76110
+ "application/json": {
76111
+ schema: {
76112
+ properties: {
76113
+ connected_account_id: {
76114
+ description: "ID of the connected account that you want to remove from the space.",
76115
+ format: "uuid",
76116
+ type: "string"
76117
+ },
76118
+ space_id: {
76119
+ description: "ID of the space from which you want to remove the connected account.",
76120
+ format: "uuid",
76121
+ type: "string"
76122
+ }
76123
+ },
76124
+ required: ["space_id", "connected_account_id"],
76125
+ type: "object"
76126
+ }
76127
+ }
76128
+ }
76129
+ },
76130
+ responses: {
76131
+ 200: {
76132
+ content: {
76133
+ "application/json": {
76134
+ schema: {
76135
+ properties: { ok: { type: "boolean" } },
76136
+ required: ["ok"],
76137
+ type: "object"
76138
+ }
76139
+ }
76140
+ },
76141
+ description: "OK"
76142
+ },
76143
+ 400: { description: "Bad Request" },
76144
+ 401: { description: "Unauthorized" }
76145
+ },
76146
+ security: [
76147
+ { pat_with_workspace: [] },
76148
+ { console_session_with_workspace: [] },
76149
+ { api_key: [] },
76150
+ { client_session_with_customer: [] }
76151
+ ],
76152
+ summary: "/spaces/remove_connected_account",
76153
+ tags: [],
76154
+ "x-fern-sdk-group-name": ["spaces"],
76155
+ "x-fern-sdk-method-name": "remove_connected_account",
76156
+ "x-response-key": null,
76157
+ "x-title": "Remove a Connected Account from a Space"
76158
+ }
76159
+ },
75926
76160
  "/spaces/remove_devices": {
75927
76161
  delete: {
75928
76162
  description: "Removes devices from a specific space.",