@seamapi/types 1.590.0 → 1.592.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 +94 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +111 -3
- package/dist/index.cjs +94 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer-portal.d.ts +7 -0
- package/lib/seam/connect/models/customer/customer-portal.js +4 -0
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +106 -0
- package/lib/seam/connect/openapi.js +94 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +5 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/customer-portal.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +102 -2
- package/src/lib/seam/connect/route-types.ts +5 -3
|
@@ -30612,7 +30612,7 @@ export type Routes = {
|
|
|
30612
30612
|
custom_redirect_url?: string | undefined;
|
|
30613
30613
|
/** 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`. */
|
|
30614
30614
|
custom_redirect_failure_url?: string | undefined;
|
|
30615
|
-
/**
|
|
30615
|
+
/** 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. */
|
|
30616
30616
|
customer_key?: string | undefined;
|
|
30617
30617
|
/** 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. */
|
|
30618
30618
|
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;
|
|
@@ -31187,7 +31187,7 @@ export type Routes = {
|
|
|
31187
31187
|
};
|
|
31188
31188
|
'/connected_accounts/update': {
|
|
31189
31189
|
route: '/connected_accounts/update';
|
|
31190
|
-
method: 'POST';
|
|
31190
|
+
method: 'PATCH' | 'POST';
|
|
31191
31191
|
queryParams: {};
|
|
31192
31192
|
jsonBody: {
|
|
31193
31193
|
/** ID of the connected account that you want to update. */
|
|
@@ -31200,7 +31200,7 @@ export type Routes = {
|
|
|
31200
31200
|
} | undefined;
|
|
31201
31201
|
/** 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`. */
|
|
31202
31202
|
accepted_capabilities?: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[] | undefined;
|
|
31203
|
-
/** 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.
|
|
31203
|
+
/** 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. */
|
|
31204
31204
|
customer_key?: string | undefined;
|
|
31205
31205
|
};
|
|
31206
31206
|
commonParams: {};
|
|
@@ -31346,6 +31346,8 @@ export type Routes = {
|
|
|
31346
31346
|
connect?: {
|
|
31347
31347
|
/** Whether to exclude this feature from the portal. */
|
|
31348
31348
|
exclude?: boolean;
|
|
31349
|
+
/** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */
|
|
31350
|
+
accepted_providers?: string[] | undefined;
|
|
31349
31351
|
/** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */
|
|
31350
31352
|
excluded_providers?: string[] | undefined;
|
|
31351
31353
|
};
|
package/package.json
CHANGED
|
@@ -11,6 +11,12 @@ const base_feature = z.object({
|
|
|
11
11
|
})
|
|
12
12
|
|
|
13
13
|
const base_connect_feature = base_feature.extend({
|
|
14
|
+
accepted_providers: z
|
|
15
|
+
.array(z.string())
|
|
16
|
+
.optional()
|
|
17
|
+
.describe(
|
|
18
|
+
'List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.',
|
|
19
|
+
),
|
|
14
20
|
excluded_providers: z
|
|
15
21
|
.array(z.string())
|
|
16
22
|
.optional()
|
|
@@ -39282,7 +39282,7 @@ export default {
|
|
|
39282
39282
|
},
|
|
39283
39283
|
customer_key: {
|
|
39284
39284
|
description:
|
|
39285
|
-
'
|
|
39285
|
+
'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.',
|
|
39286
39286
|
type: 'string',
|
|
39287
39287
|
},
|
|
39288
39288
|
device_selection_mode: {
|
|
@@ -40231,6 +40231,100 @@ export default {
|
|
|
40231
40231
|
},
|
|
40232
40232
|
},
|
|
40233
40233
|
'/connected_accounts/update': {
|
|
40234
|
+
patch: {
|
|
40235
|
+
description:
|
|
40236
|
+
'Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
40237
|
+
operationId: 'connectedAccountsUpdatePatch',
|
|
40238
|
+
requestBody: {
|
|
40239
|
+
content: {
|
|
40240
|
+
'application/json': {
|
|
40241
|
+
schema: {
|
|
40242
|
+
properties: {
|
|
40243
|
+
accepted_capabilities: {
|
|
40244
|
+
description:
|
|
40245
|
+
'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`.',
|
|
40246
|
+
items: {
|
|
40247
|
+
description:
|
|
40248
|
+
'\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',
|
|
40249
|
+
enum: [
|
|
40250
|
+
'lock',
|
|
40251
|
+
'thermostat',
|
|
40252
|
+
'noise_sensor',
|
|
40253
|
+
'access_control',
|
|
40254
|
+
],
|
|
40255
|
+
type: 'string',
|
|
40256
|
+
},
|
|
40257
|
+
type: 'array',
|
|
40258
|
+
},
|
|
40259
|
+
automatically_manage_new_devices: {
|
|
40260
|
+
description:
|
|
40261
|
+
'Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices).',
|
|
40262
|
+
type: 'boolean',
|
|
40263
|
+
},
|
|
40264
|
+
connected_account_id: {
|
|
40265
|
+
description:
|
|
40266
|
+
'ID of the connected account that you want to update.',
|
|
40267
|
+
format: 'uuid',
|
|
40268
|
+
type: 'string',
|
|
40269
|
+
},
|
|
40270
|
+
custom_metadata: {
|
|
40271
|
+
additionalProperties: {
|
|
40272
|
+
nullable: true,
|
|
40273
|
+
oneOf: [
|
|
40274
|
+
{ maxLength: 500, type: 'string' },
|
|
40275
|
+
{ type: 'boolean' },
|
|
40276
|
+
],
|
|
40277
|
+
},
|
|
40278
|
+
description:
|
|
40279
|
+
'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).',
|
|
40280
|
+
type: 'object',
|
|
40281
|
+
},
|
|
40282
|
+
customer_key: {
|
|
40283
|
+
description:
|
|
40284
|
+
'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.',
|
|
40285
|
+
minLength: 1,
|
|
40286
|
+
type: 'string',
|
|
40287
|
+
},
|
|
40288
|
+
},
|
|
40289
|
+
required: ['connected_account_id'],
|
|
40290
|
+
type: 'object',
|
|
40291
|
+
},
|
|
40292
|
+
},
|
|
40293
|
+
},
|
|
40294
|
+
},
|
|
40295
|
+
responses: {
|
|
40296
|
+
200: {
|
|
40297
|
+
content: {
|
|
40298
|
+
'application/json': {
|
|
40299
|
+
schema: {
|
|
40300
|
+
properties: {
|
|
40301
|
+
connected_account: {
|
|
40302
|
+
$ref: '#/components/schemas/connected_account',
|
|
40303
|
+
},
|
|
40304
|
+
ok: { type: 'boolean' },
|
|
40305
|
+
},
|
|
40306
|
+
required: ['connected_account', 'ok'],
|
|
40307
|
+
type: 'object',
|
|
40308
|
+
},
|
|
40309
|
+
},
|
|
40310
|
+
},
|
|
40311
|
+
description: 'OK',
|
|
40312
|
+
},
|
|
40313
|
+
400: { description: 'Bad Request' },
|
|
40314
|
+
401: { description: 'Unauthorized' },
|
|
40315
|
+
},
|
|
40316
|
+
security: [
|
|
40317
|
+
{ pat_with_workspace: [] },
|
|
40318
|
+
{ console_session_with_workspace: [] },
|
|
40319
|
+
{ api_key: [] },
|
|
40320
|
+
],
|
|
40321
|
+
summary: '/connected_accounts/update',
|
|
40322
|
+
tags: ['/connected_accounts'],
|
|
40323
|
+
'x-fern-sdk-group-name': ['connected_accounts'],
|
|
40324
|
+
'x-fern-sdk-method-name': 'update',
|
|
40325
|
+
'x-response-key': null,
|
|
40326
|
+
'x-title': 'Update a Connected Account',
|
|
40327
|
+
},
|
|
40234
40328
|
post: {
|
|
40235
40329
|
description:
|
|
40236
40330
|
'Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
@@ -40281,7 +40375,7 @@ export default {
|
|
|
40281
40375
|
},
|
|
40282
40376
|
customer_key: {
|
|
40283
40377
|
description:
|
|
40284
|
-
'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. ',
|
|
40378
|
+
'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.',
|
|
40285
40379
|
minLength: 1,
|
|
40286
40380
|
type: 'string',
|
|
40287
40381
|
},
|
|
@@ -40386,6 +40480,12 @@ export default {
|
|
|
40386
40480
|
description:
|
|
40387
40481
|
'Configuration for the connect accounts feature.',
|
|
40388
40482
|
properties: {
|
|
40483
|
+
accepted_providers: {
|
|
40484
|
+
description:
|
|
40485
|
+
'List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.',
|
|
40486
|
+
items: { type: 'string' },
|
|
40487
|
+
type: 'array',
|
|
40488
|
+
},
|
|
40389
40489
|
exclude: {
|
|
40390
40490
|
default: false,
|
|
40391
40491
|
description:
|
|
@@ -35548,7 +35548,7 @@ export type Routes = {
|
|
|
35548
35548
|
custom_redirect_url?: string | undefined
|
|
35549
35549
|
/** 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`. */
|
|
35550
35550
|
custom_redirect_failure_url?: string | undefined
|
|
35551
|
-
/**
|
|
35551
|
+
/** 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. */
|
|
35552
35552
|
customer_key?: string | undefined
|
|
35553
35553
|
/** 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. */
|
|
35554
35554
|
accepted_providers?:
|
|
@@ -36244,7 +36244,7 @@ export type Routes = {
|
|
|
36244
36244
|
}
|
|
36245
36245
|
'/connected_accounts/update': {
|
|
36246
36246
|
route: '/connected_accounts/update'
|
|
36247
|
-
method: 'POST'
|
|
36247
|
+
method: 'PATCH' | 'POST'
|
|
36248
36248
|
queryParams: {}
|
|
36249
36249
|
jsonBody: {
|
|
36250
36250
|
/** ID of the connected account that you want to update. */
|
|
@@ -36261,7 +36261,7 @@ export type Routes = {
|
|
|
36261
36261
|
accepted_capabilities?:
|
|
36262
36262
|
| ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[]
|
|
36263
36263
|
| undefined
|
|
36264
|
-
/** 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.
|
|
36264
|
+
/** 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. */
|
|
36265
36265
|
customer_key?: string | undefined
|
|
36266
36266
|
}
|
|
36267
36267
|
commonParams: {}
|
|
@@ -36423,6 +36423,8 @@ export type Routes = {
|
|
|
36423
36423
|
connect?: {
|
|
36424
36424
|
/** Whether to exclude this feature from the portal. */
|
|
36425
36425
|
exclude?: boolean
|
|
36426
|
+
/** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */
|
|
36427
|
+
accepted_providers?: string[] | undefined
|
|
36426
36428
|
/** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */
|
|
36427
36429
|
excluded_providers?: string[] | undefined
|
|
36428
36430
|
}
|