@seamapi/types 1.462.0 → 1.463.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
@@ -1762,7 +1762,8 @@ var DEVICE_PROVIDERS = {
1762
1762
  SALTO_SPACE: "salto_space",
1763
1763
  SENSI: "sensi",
1764
1764
  KWIKSET2: "kwikset2",
1765
- KEYNEST: "keynest"
1765
+ KEYNEST: "keynest",
1766
+ DORMAKABA_AMBIANCE: "dormakaba_ambiance"
1766
1767
  };
1767
1768
  var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
1768
1769
  var PROVIDER_CATEGORY_MAP = {
@@ -1817,7 +1818,8 @@ var PROVIDER_CATEGORY_MAP = {
1817
1818
  "latch",
1818
1819
  "salto_ks",
1819
1820
  "assa_abloy_vostio",
1820
- "salto_space"
1821
+ "salto_space",
1822
+ "dormakaba_ambiance"
1821
1823
  ],
1822
1824
  internal_beta: ALL_DEVICE_PROVIDERS
1823
1825
  };
@@ -2807,6 +2809,7 @@ var acs_system_external_type = zod.z.enum([
2807
2809
  "assa_abloy_credential_service",
2808
2810
  "latch_building",
2809
2811
  "dormakaba_community_site",
2812
+ "dormakaba_ambiance_site",
2810
2813
  "legic_connect_credential_service",
2811
2814
  "assa_abloy_vostio",
2812
2815
  "assa_abloy_vostio_credential_service"
@@ -3844,6 +3847,90 @@ var client_session = zod.z.object({
3844
3847
 
3845
3848
  See also [Get Started with React](https://docs.seam.co/latest/ui-components/overview/getting-started-with-seam-components/get-started-with-react-components-and-client-session-tokens).
3846
3849
  `);
3850
+ var connect_webview_device_selection_mode = zod.z.enum([
3851
+ "none",
3852
+ "single",
3853
+ "multiple"
3854
+ ]);
3855
+ var connect_webview = zod.z.object({
3856
+ connect_webview_id: zod.z.string().uuid().describe("ID of the Connect Webview."),
3857
+ workspace_id: zod.z.string().uuid().describe(
3858
+ "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview."
3859
+ ),
3860
+ created_at: zod.z.string().datetime().describe("Date and time at which the Connect Webview was created."),
3861
+ connected_account_id: zod.z.string().uuid().nullable().describe(
3862
+ "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview."
3863
+ ),
3864
+ url: zod.z.string().url().describe(
3865
+ "URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user."
3866
+ ),
3867
+ device_selection_mode: connect_webview_device_selection_mode,
3868
+ // TODO: Use enum value.
3869
+ accepted_providers: zod.z.array(zod.z.string()).describe(
3870
+ "List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
3871
+ ),
3872
+ accepted_capabilities: zod.z.array(provider_capability).describe(
3873
+ "High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`."
3874
+ ),
3875
+ accepted_devices: zod.z.array(zod.z.string()).describe(
3876
+ `
3877
+ ---
3878
+ undocumented: Unused. Will be removed.
3879
+ deprecated: Unused. Will be removed.
3880
+ ---
3881
+ `
3882
+ ),
3883
+ any_device_allowed: zod.z.boolean().describe(
3884
+ `
3885
+ ---
3886
+ undocumented: Unused. Will be removed.
3887
+ deprecated: Unused. Will be removed.
3888
+ ---
3889
+ `
3890
+ ),
3891
+ any_provider_allowed: zod.z.boolean().describe("Indicates whether any provider is allowed."),
3892
+ login_successful: zod.z.boolean().describe(
3893
+ "Indicates whether the user logged in successfully using the Connect Webview."
3894
+ ),
3895
+ status: zod.z.enum(["pending", "failed", "authorized"]).describe(
3896
+ "Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview."
3897
+ ),
3898
+ custom_redirect_url: zod.z.string().url().nullable().describe(
3899
+ "URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs."
3900
+ ),
3901
+ custom_redirect_failure_url: zod.z.string().url().nullable().describe(
3902
+ "URL to which the Connect Webview should redirect when an unexpected error occurs."
3903
+ ),
3904
+ custom_metadata,
3905
+ automatically_manage_new_devices: zod.z.boolean().describe(
3906
+ "Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API."
3907
+ ),
3908
+ wait_for_device_creation: zod.z.boolean().describe(
3909
+ "Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview."
3910
+ ),
3911
+ authorized_at: zod.z.string().datetime().nullable().describe(
3912
+ "Date and time at which the user authorized (through the Connect Webview) the management of their devices."
3913
+ ),
3914
+ selected_provider: zod.z.string().nullable().describe(
3915
+ "Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
3916
+ ),
3917
+ customer_key: zod.z.string().optional().describe("The customer key associated with this webview, if any.")
3918
+ }).describe(`
3919
+ ---
3920
+ route_path: /connect_webviews
3921
+ ---
3922
+ Represents a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews).
3923
+
3924
+ Connect Webviews are fully-embedded client-side components that you add to your app. Your users interact with your embedded Connect Webviews to link their IoT device or system accounts to Seam. That is, Connect Webviews walk your users through the process of logging in to their device or system accounts. Seam handles all the authentication steps, and\u2014once your user has completed the authorization through your app\u2014you can access and control their devices or systems using the Seam API.
3925
+
3926
+ Connect Webviews perform credential validation, multifactor authentication (when applicable), and error handling for each brand that Seam supports. Further, Connect Webviews work across all modern browsers and platforms, including Chrome, Safari, and Firefox.
3927
+
3928
+ To enable a user to connect their device or system account to Seam through your app, first create a \`connect_webview\`. Once created, this \`connect_webview\` includes a URL that you can use to open an [iframe](https://www.w3schools.com/html/html_iframe.asp) or new window containing the Connect Webview for your user.
3929
+
3930
+ When you create a Connect Webview, specify the desired provider category key in the \`provider_category\` parameter. Alternately, to specify a list of providers explicitly, use the \`accepted_providers\` parameter with a list of device provider keys.
3931
+
3932
+ To list all providers within a category, use \`/devices/list_device_providers\` with the desired \`provider_category\` filter. To list all provider keys, use \`/devices/list_device_providers\` with no filters.
3933
+ `);
3847
3934
  var space = zod.z.object({
3848
3935
  space_id: zod.z.string().uuid().describe("ID of the space."),
3849
3936
  workspace_id: zod.z.string().uuid().describe(
@@ -4033,7 +4120,8 @@ zod.z.object({
4033
4120
  client_sessions: client_session.array().optional(),
4034
4121
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4035
4122
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4036
- unmanaged_devices: unmanaged_device.array().optional()
4123
+ unmanaged_devices: unmanaged_device.array().optional(),
4124
+ connect_webviews: connect_webview.array().optional()
4037
4125
  }).describe("A batch of workspace resources.");
4038
4126
  var batch = zod.z.object({
4039
4127
  batch_type: zod.z.enum([
@@ -4055,7 +4143,8 @@ var batch = zod.z.object({
4055
4143
  client_sessions: client_session.array().optional(),
4056
4144
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4057
4145
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4058
- unmanaged_devices: unmanaged_device.array().optional()
4146
+ unmanaged_devices: unmanaged_device.array().optional(),
4147
+ connect_webviews: connect_webview.array().optional()
4059
4148
  }).describe("A batch of workspace resources.");
4060
4149
  var bridge = zod.z.object({
4061
4150
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
@@ -4134,90 +4223,6 @@ var bridge_client_session = zod.z.object({
4134
4223
  ---
4135
4224
  Represents a [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) client session.
4136
4225
  `);
4137
- var connect_webview_device_selection_mode = zod.z.enum([
4138
- "none",
4139
- "single",
4140
- "multiple"
4141
- ]);
4142
- var connect_webview = zod.z.object({
4143
- connect_webview_id: zod.z.string().uuid().describe("ID of the Connect Webview."),
4144
- workspace_id: zod.z.string().uuid().describe(
4145
- "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview."
4146
- ),
4147
- created_at: zod.z.string().datetime().describe("Date and time at which the Connect Webview was created."),
4148
- connected_account_id: zod.z.string().uuid().nullable().describe(
4149
- "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview."
4150
- ),
4151
- url: zod.z.string().url().describe(
4152
- "URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user."
4153
- ),
4154
- device_selection_mode: connect_webview_device_selection_mode,
4155
- // TODO: Use enum value.
4156
- accepted_providers: zod.z.array(zod.z.string()).describe(
4157
- "List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
4158
- ),
4159
- accepted_capabilities: zod.z.array(provider_capability).describe(
4160
- "High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`."
4161
- ),
4162
- accepted_devices: zod.z.array(zod.z.string()).describe(
4163
- `
4164
- ---
4165
- undocumented: Unused. Will be removed.
4166
- deprecated: Unused. Will be removed.
4167
- ---
4168
- `
4169
- ),
4170
- any_device_allowed: zod.z.boolean().describe(
4171
- `
4172
- ---
4173
- undocumented: Unused. Will be removed.
4174
- deprecated: Unused. Will be removed.
4175
- ---
4176
- `
4177
- ),
4178
- any_provider_allowed: zod.z.boolean().describe("Indicates whether any provider is allowed."),
4179
- login_successful: zod.z.boolean().describe(
4180
- "Indicates whether the user logged in successfully using the Connect Webview."
4181
- ),
4182
- status: zod.z.enum(["pending", "failed", "authorized"]).describe(
4183
- "Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview."
4184
- ),
4185
- custom_redirect_url: zod.z.string().url().nullable().describe(
4186
- "URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs."
4187
- ),
4188
- custom_redirect_failure_url: zod.z.string().url().nullable().describe(
4189
- "URL to which the Connect Webview should redirect when an unexpected error occurs."
4190
- ),
4191
- custom_metadata,
4192
- automatically_manage_new_devices: zod.z.boolean().describe(
4193
- "Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API."
4194
- ),
4195
- wait_for_device_creation: zod.z.boolean().describe(
4196
- "Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview."
4197
- ),
4198
- authorized_at: zod.z.string().datetime().nullable().describe(
4199
- "Date and time at which the user authorized (through the Connect Webview) the management of their devices."
4200
- ),
4201
- selected_provider: zod.z.string().nullable().describe(
4202
- "Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
4203
- ),
4204
- customer_key: zod.z.string().optional().describe("The customer key associated with this webview, if any.")
4205
- }).describe(`
4206
- ---
4207
- route_path: /connect_webviews
4208
- ---
4209
- Represents a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews).
4210
-
4211
- Connect Webviews are fully-embedded client-side components that you add to your app. Your users interact with your embedded Connect Webviews to link their IoT device or system accounts to Seam. That is, Connect Webviews walk your users through the process of logging in to their device or system accounts. Seam handles all the authentication steps, and\u2014once your user has completed the authorization through your app\u2014you can access and control their devices or systems using the Seam API.
4212
-
4213
- Connect Webviews perform credential validation, multifactor authentication (when applicable), and error handling for each brand that Seam supports. Further, Connect Webviews work across all modern browsers and platforms, including Chrome, Safari, and Firefox.
4214
-
4215
- To enable a user to connect their device or system account to Seam through your app, first create a \`connect_webview\`. Once created, this \`connect_webview\` includes a URL that you can use to open an [iframe](https://www.w3schools.com/html/html_iframe.asp) or new window containing the Connect Webview for your user.
4216
-
4217
- When you create a Connect Webview, specify the desired provider category key in the \`provider_category\` parameter. Alternately, to specify a list of providers explicitly, use the \`accepted_providers\` parameter with a list of device provider keys.
4218
-
4219
- To list all providers within a category, use \`/devices/list_device_providers\` with the desired \`provider_category\` filter. To list all provider keys, use \`/devices/list_device_providers\` with no filters.
4220
- `);
4221
4226
  var common_event = zod.z.object({
4222
4227
  event_id: zod.z.string().uuid().describe("ID of the event."),
4223
4228
  workspace_id: zod.z.string().uuid().describe(
@@ -8208,6 +8213,7 @@ var openapi_default = {
8208
8213
  "assa_abloy_credential_service",
8209
8214
  "latch_building",
8210
8215
  "dormakaba_community_site",
8216
+ "dormakaba_ambiance_site",
8211
8217
  "legic_connect_credential_service",
8212
8218
  "assa_abloy_vostio",
8213
8219
  "assa_abloy_vostio_credential_service"
@@ -8258,6 +8264,7 @@ var openapi_default = {
8258
8264
  "assa_abloy_credential_service",
8259
8265
  "latch_building",
8260
8266
  "dormakaba_community_site",
8267
+ "dormakaba_ambiance_site",
8261
8268
  "legic_connect_credential_service",
8262
8269
  "assa_abloy_vostio",
8263
8270
  "assa_abloy_vostio_credential_service"
@@ -16936,7 +16943,8 @@ var openapi_default = {
16936
16943
  "salto_space",
16937
16944
  "sensi",
16938
16945
  "kwikset2",
16939
- "keynest"
16946
+ "keynest",
16947
+ "dormakaba_ambiance"
16940
16948
  ],
16941
16949
  type: "string"
16942
16950
  },
@@ -31297,7 +31305,6 @@ var openapi_default = {
31297
31305
  starts_at: {
31298
31306
  description: "Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
31299
31307
  format: "date-time",
31300
- nullable: true,
31301
31308
  type: "string"
31302
31309
  }
31303
31310
  },
@@ -31364,7 +31371,6 @@ var openapi_default = {
31364
31371
  starts_at: {
31365
31372
  description: "Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
31366
31373
  format: "date-time",
31367
- nullable: true,
31368
31374
  type: "string"
31369
31375
  }
31370
31376
  },
@@ -31761,6 +31767,12 @@ var openapi_default = {
31761
31767
  },
31762
31768
  type: "array"
31763
31769
  },
31770
+ connect_webviews: {
31771
+ items: {
31772
+ $ref: "#/components/schemas/connect_webview"
31773
+ },
31774
+ type: "array"
31775
+ },
31764
31776
  devices: {
31765
31777
  items: { $ref: "#/components/schemas/device" },
31766
31778
  type: "array"
@@ -31912,6 +31924,12 @@ var openapi_default = {
31912
31924
  },
31913
31925
  type: "array"
31914
31926
  },
31927
+ connect_webviews: {
31928
+ items: {
31929
+ $ref: "#/components/schemas/connect_webview"
31930
+ },
31931
+ type: "array"
31932
+ },
31915
31933
  devices: {
31916
31934
  items: { $ref: "#/components/schemas/device" },
31917
31935
  type: "array"
@@ -39080,6 +39098,7 @@ var openapi_default = {
39080
39098
  "sensi",
39081
39099
  "kwikset2",
39082
39100
  "keynest",
39101
+ "dormakaba_ambiance",
39083
39102
  "yale_access",
39084
39103
  "hid_cm",
39085
39104
  "google_nest"
@@ -58264,6 +58283,12 @@ var openapi_default = {
58264
58283
  },
58265
58284
  type: "array"
58266
58285
  },
58286
+ connect_webviews: {
58287
+ items: {
58288
+ $ref: "#/components/schemas/connect_webview"
58289
+ },
58290
+ type: "array"
58291
+ },
58267
58292
  devices: {
58268
58293
  items: { $ref: "#/components/schemas/device" },
58269
58294
  type: "array"
@@ -58392,6 +58417,12 @@ var openapi_default = {
58392
58417
  },
58393
58418
  type: "array"
58394
58419
  },
58420
+ connect_webviews: {
58421
+ items: {
58422
+ $ref: "#/components/schemas/connect_webview"
58423
+ },
58424
+ type: "array"
58425
+ },
58395
58426
  devices: {
58396
58427
  items: { $ref: "#/components/schemas/device" },
58397
58428
  type: "array"