@seamapi/types 1.423.4 → 1.424.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 (32) hide show
  1. package/dist/connect.cjs +28 -14
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +20 -6
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -4
  8. package/lib/seam/connect/models/connect-webviews/connect-webview.js +3 -9
  9. package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
  10. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +3 -0
  11. package/lib/seam/connect/models/connected-accounts/connected-account.js +4 -0
  12. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  13. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
  14. package/lib/seam/connect/models/index.d.ts +1 -0
  15. package/lib/seam/connect/models/index.js +1 -0
  16. package/lib/seam/connect/models/index.js.map +1 -1
  17. package/lib/seam/connect/models/provider-capability.d.ts +3 -0
  18. package/lib/seam/connect/models/provider-capability.js +11 -0
  19. package/lib/seam/connect/models/provider-capability.js.map +1 -0
  20. package/lib/seam/connect/openapi.d.ts +9 -1
  21. package/lib/seam/connect/openapi.js +12 -3
  22. package/lib/seam/connect/openapi.js.map +1 -1
  23. package/lib/seam/connect/route-types.d.ts +6 -3
  24. package/package.json +1 -1
  25. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  26. package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +3 -16
  27. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +6 -0
  28. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -2
  29. package/src/lib/seam/connect/models/index.ts +1 -0
  30. package/src/lib/seam/connect/models/provider-capability.ts +13 -0
  31. package/src/lib/seam/connect/openapi.ts +14 -3
  32. package/src/lib/seam/connect/route-types.ts +12 -3
package/dist/connect.cjs CHANGED
@@ -711,6 +711,15 @@ zod.z.record(
711
711
  var custom_metadata = zod.z.record(zod.z.string(), zod.z.union([zod.z.string(), zod.z.boolean()])).describe(
712
712
  "Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application."
713
713
  );
714
+ var provider_capability = zod.z.enum([
715
+ "lock",
716
+ "thermostat",
717
+ "noise_sensor",
718
+ "access_control"
719
+ ]).describe(`
720
+ High-level device capabilities that can be restricted in connect webviews.
721
+ These represent the main device categories that customers can opt into.
722
+ `);
714
723
 
715
724
  // src/lib/seam/connect/models/connected-accounts/connected-account.ts
716
725
  var common_connected_account_error = zod.z.object({
@@ -864,6 +873,9 @@ var connected_account = zod.z.object({
864
873
  ),
865
874
  customer_key: zod.z.string().optional().describe(
866
875
  "Your unique key for the customer associated with this connected account."
876
+ ),
877
+ accepted_capabilities: zod.z.array(provider_capability).describe(
878
+ "List of capabilities that were accepted during the account connection process."
867
879
  )
868
880
  }).describe(`
869
881
  ---
@@ -4105,14 +4117,7 @@ var connect_webview_device_selection_mode = zod.z.enum([
4105
4117
  "none",
4106
4118
  "single",
4107
4119
  "multiple"
4108
- ]).describe(`
4109
- ---
4110
- undocumented: Not implemented.
4111
- ---
4112
- `);
4113
- var connect_webview_accepted_capabilities = zod.z.enum(["lock", "thermostat", "noise_sensor", "access_control"]).describe(
4114
- "High-level device capabilities that the Connect Webview can accept."
4115
- );
4120
+ ]);
4116
4121
  var connect_webview = zod.z.object({
4117
4122
  connect_webview_id: zod.z.string().uuid().describe("ID of the Connect Webview."),
4118
4123
  workspace_id: zod.z.string().uuid().describe(
@@ -4130,7 +4135,7 @@ var connect_webview = zod.z.object({
4130
4135
  accepted_providers: zod.z.array(zod.z.string()).describe(
4131
4136
  "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)."
4132
4137
  ),
4133
- accepted_capabilities: zod.z.array(connect_webview_accepted_capabilities).describe(
4138
+ accepted_capabilities: zod.z.array(provider_capability).describe(
4134
4139
  "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`."
4135
4140
  ),
4136
4141
  accepted_devices: zod.z.array(zod.z.string()).describe(
@@ -13160,7 +13165,7 @@ var openapi_default = {
13160
13165
  accepted_capabilities: {
13161
13166
  description: "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`.",
13162
13167
  items: {
13163
- description: "High-level device capabilities that the Connect Webview can accept.",
13168
+ description: "\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n",
13164
13169
  enum: ["lock", "thermostat", "noise_sensor", "access_control"],
13165
13170
  type: "string"
13166
13171
  },
@@ -13235,8 +13240,7 @@ var openapi_default = {
13235
13240
  },
13236
13241
  device_selection_mode: {
13237
13242
  enum: ["none", "single", "multiple"],
13238
- type: "string",
13239
- "x-undocumented": "Not implemented."
13243
+ type: "string"
13240
13244
  },
13241
13245
  login_successful: {
13242
13246
  description: "Indicates whether the user logged in successfully using the Connect Webview.",
@@ -13295,6 +13299,15 @@ var openapi_default = {
13295
13299
  connected_account: {
13296
13300
  description: "Represents a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). A connected account is an external third-party account to which your user has authorized Seam to get access, for example, an August account with a list of door locks.",
13297
13301
  properties: {
13302
+ accepted_capabilities: {
13303
+ description: "List of capabilities that were accepted during the account connection process.",
13304
+ items: {
13305
+ description: "\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n",
13306
+ enum: ["lock", "thermostat", "noise_sensor", "access_control"],
13307
+ type: "string"
13308
+ },
13309
+ type: "array"
13310
+ },
13298
13311
  account_type: {
13299
13312
  description: "Type of connected account.",
13300
13313
  type: "string"
@@ -13650,7 +13663,8 @@ var openapi_default = {
13650
13663
  "errors",
13651
13664
  "warnings",
13652
13665
  "custom_metadata",
13653
- "automatically_manage_new_devices"
13666
+ "automatically_manage_new_devices",
13667
+ "accepted_capabilities"
13654
13668
  ],
13655
13669
  type: "object",
13656
13670
  "x-route-path": "/connected_accounts"
@@ -37137,7 +37151,7 @@ var openapi_default = {
37137
37151
  accepted_capabilities: {
37138
37152
  description: "List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers.",
37139
37153
  items: {
37140
- description: "High-level device capabilities that the Connect Webview can accept.",
37154
+ description: "\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n",
37141
37155
  enum: [
37142
37156
  "lock",
37143
37157
  "thermostat",