@seamapi/types 1.590.0 → 1.591.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.
@@ -82390,6 +82390,105 @@ declare const _default: {
82390
82390
  };
82391
82391
  };
82392
82392
  '/connected_accounts/update': {
82393
+ patch: {
82394
+ description: string;
82395
+ operationId: string;
82396
+ requestBody: {
82397
+ content: {
82398
+ 'application/json': {
82399
+ schema: {
82400
+ properties: {
82401
+ accepted_capabilities: {
82402
+ description: string;
82403
+ items: {
82404
+ description: string;
82405
+ enum: string[];
82406
+ type: string;
82407
+ };
82408
+ type: string;
82409
+ };
82410
+ automatically_manage_new_devices: {
82411
+ description: string;
82412
+ type: string;
82413
+ };
82414
+ connected_account_id: {
82415
+ description: string;
82416
+ format: string;
82417
+ type: string;
82418
+ };
82419
+ custom_metadata: {
82420
+ additionalProperties: {
82421
+ nullable: boolean;
82422
+ oneOf: ({
82423
+ maxLength: number;
82424
+ type: string;
82425
+ } | {
82426
+ type: string;
82427
+ maxLength?: never;
82428
+ })[];
82429
+ };
82430
+ description: string;
82431
+ type: string;
82432
+ };
82433
+ customer_key: {
82434
+ description: string;
82435
+ minLength: number;
82436
+ type: string;
82437
+ };
82438
+ };
82439
+ required: string[];
82440
+ type: string;
82441
+ };
82442
+ };
82443
+ };
82444
+ };
82445
+ responses: {
82446
+ 200: {
82447
+ content: {
82448
+ 'application/json': {
82449
+ schema: {
82450
+ properties: {
82451
+ connected_account: {
82452
+ $ref: string;
82453
+ };
82454
+ ok: {
82455
+ type: string;
82456
+ };
82457
+ };
82458
+ required: string[];
82459
+ type: string;
82460
+ };
82461
+ };
82462
+ };
82463
+ description: string;
82464
+ };
82465
+ 400: {
82466
+ description: string;
82467
+ };
82468
+ 401: {
82469
+ description: string;
82470
+ };
82471
+ };
82472
+ security: ({
82473
+ pat_with_workspace: never[];
82474
+ console_session_with_workspace?: never;
82475
+ api_key?: never;
82476
+ } | {
82477
+ console_session_with_workspace: never[];
82478
+ pat_with_workspace?: never;
82479
+ api_key?: never;
82480
+ } | {
82481
+ api_key: never[];
82482
+ pat_with_workspace?: never;
82483
+ console_session_with_workspace?: never;
82484
+ })[];
82485
+ summary: string;
82486
+ tags: string[];
82487
+ 'x-fern-sdk-group-name': string[];
82488
+ 'x-fern-sdk-method-name': string;
82489
+ 'x-response-key': null;
82490
+ 'x-title': string;
82491
+ };
82393
82492
  post: {
82394
82493
  description: string;
82395
82494
  operationId: string;
@@ -137531,7 +137630,7 @@ type Routes = {
137531
137630
  custom_redirect_url?: string | undefined;
137532
137631
  /** Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`. */
137533
137632
  custom_redirect_failure_url?: string | undefined;
137534
- /** Optional unique string key that can be used to identify the customer. If provided, the customer will be created or retrieved based on this key. */
137633
+ /** Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error. */
137535
137634
  customer_key?: string | undefined;
137536
137635
  /** Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/latest/api/devices/list_device_providers) with no filters. */
137537
137636
  accepted_providers?: ('hotek' | 'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'salto_ks' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'tedee' | 'honeywell_resideo' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'assa_abloy_vostio_credential_service' | 'tado' | 'salto_space' | 'sensi' | 'kwikset2' | 'keynest' | 'dormakaba_ambiance' | 'yale_access' | 'hid_cm' | 'google_nest')[] | undefined;
@@ -138106,7 +138205,7 @@ type Routes = {
138106
138205
  };
138107
138206
  '/connected_accounts/update': {
138108
138207
  route: '/connected_accounts/update';
138109
- method: 'POST';
138208
+ method: 'PATCH' | 'POST';
138110
138209
  queryParams: {};
138111
138210
  jsonBody: {
138112
138211
  /** ID of the connected account that you want to update. */
@@ -138119,7 +138218,7 @@ type Routes = {
138119
138218
  } | undefined;
138120
138219
  /** List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`. */
138121
138220
  accepted_capabilities?: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[] | undefined;
138122
- /** The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. */
138221
+ /** The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer. */
138123
138222
  customer_key?: string | undefined;
138124
138223
  };
138125
138224
  commonParams: {};
package/dist/index.cjs CHANGED
@@ -41516,7 +41516,7 @@ var openapi_default = {
41516
41516
  type: "string"
41517
41517
  },
41518
41518
  customer_key: {
41519
- description: "Optional unique string key that can be used to identify the customer. If provided, the customer will be created or retrieved based on this key.",
41519
+ description: "Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error.",
41520
41520
  type: "string"
41521
41521
  },
41522
41522
  device_selection_mode: {
@@ -42421,6 +42421,93 @@ var openapi_default = {
42421
42421
  }
42422
42422
  },
42423
42423
  "/connected_accounts/update": {
42424
+ patch: {
42425
+ description: "Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
42426
+ operationId: "connectedAccountsUpdatePatch",
42427
+ requestBody: {
42428
+ content: {
42429
+ "application/json": {
42430
+ schema: {
42431
+ properties: {
42432
+ accepted_capabilities: {
42433
+ description: "List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`.",
42434
+ items: {
42435
+ 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",
42436
+ enum: [
42437
+ "lock",
42438
+ "thermostat",
42439
+ "noise_sensor",
42440
+ "access_control"
42441
+ ],
42442
+ type: "string"
42443
+ },
42444
+ type: "array"
42445
+ },
42446
+ automatically_manage_new_devices: {
42447
+ description: "Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices).",
42448
+ type: "boolean"
42449
+ },
42450
+ connected_account_id: {
42451
+ description: "ID of the connected account that you want to update.",
42452
+ format: "uuid",
42453
+ type: "string"
42454
+ },
42455
+ custom_metadata: {
42456
+ additionalProperties: {
42457
+ nullable: true,
42458
+ oneOf: [
42459
+ { maxLength: 500, type: "string" },
42460
+ { type: "boolean" }
42461
+ ]
42462
+ },
42463
+ description: "Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).",
42464
+ type: "object"
42465
+ },
42466
+ customer_key: {
42467
+ description: "The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.",
42468
+ minLength: 1,
42469
+ type: "string"
42470
+ }
42471
+ },
42472
+ required: ["connected_account_id"],
42473
+ type: "object"
42474
+ }
42475
+ }
42476
+ }
42477
+ },
42478
+ responses: {
42479
+ 200: {
42480
+ content: {
42481
+ "application/json": {
42482
+ schema: {
42483
+ properties: {
42484
+ connected_account: {
42485
+ $ref: "#/components/schemas/connected_account"
42486
+ },
42487
+ ok: { type: "boolean" }
42488
+ },
42489
+ required: ["connected_account", "ok"],
42490
+ type: "object"
42491
+ }
42492
+ }
42493
+ },
42494
+ description: "OK"
42495
+ },
42496
+ 400: { description: "Bad Request" },
42497
+ 401: { description: "Unauthorized" }
42498
+ },
42499
+ security: [
42500
+ { pat_with_workspace: [] },
42501
+ { console_session_with_workspace: [] },
42502
+ { api_key: [] }
42503
+ ],
42504
+ summary: "/connected_accounts/update",
42505
+ tags: ["/connected_accounts"],
42506
+ "x-fern-sdk-group-name": ["connected_accounts"],
42507
+ "x-fern-sdk-method-name": "update",
42508
+ "x-response-key": null,
42509
+ "x-title": "Update a Connected Account"
42510
+ },
42424
42511
  post: {
42425
42512
  description: "Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
42426
42513
  operationId: "connectedAccountsUpdatePost",
@@ -42464,7 +42551,7 @@ var openapi_default = {
42464
42551
  type: "object"
42465
42552
  },
42466
42553
  customer_key: {
42467
- description: "The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. ",
42554
+ description: "The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.",
42468
42555
  minLength: 1,
42469
42556
  type: "string"
42470
42557
  }