@seamapi/types 1.529.0 → 1.531.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 +82 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +154 -3
- package/dist/index.cjs +82 -3
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +10 -2
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +3 -1
- package/lib/seam/connect/models/devices/unmanaged-device.js +1 -0
- package/lib/seam/connect/models/devices/unmanaged-device.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +113 -0
- package/lib/seam/connect/openapi.js +80 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +33 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/unmanaged-device.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +84 -2
- package/src/lib/seam/connect/route-types.ts +35 -1
package/dist/connect.d.cts
CHANGED
|
@@ -23592,7 +23592,7 @@ declare const batch: z.ZodObject<{
|
|
|
23592
23592
|
can_simulate_hub_connection: z.ZodOptional<z.ZodBoolean>;
|
|
23593
23593
|
can_simulate_hub_disconnection: z.ZodOptional<z.ZodBoolean>;
|
|
23594
23594
|
can_simulate_paid_subscription: z.ZodOptional<z.ZodBoolean>;
|
|
23595
|
-
}, "device_id" | "workspace_id" | "created_at" | "errors" | "connected_account_id" | "warnings" | "device_type" | "capabilities_supported" | "location"> & {
|
|
23595
|
+
}, "device_id" | "workspace_id" | "created_at" | "errors" | "connected_account_id" | "warnings" | "custom_metadata" | "device_type" | "capabilities_supported" | "location"> & {
|
|
23596
23596
|
is_managed: z.ZodLiteral<false>;
|
|
23597
23597
|
properties: z.ZodObject<Pick<{
|
|
23598
23598
|
online: z.ZodBoolean;
|
|
@@ -23924,6 +23924,7 @@ declare const batch: z.ZodObject<{
|
|
|
23924
23924
|
created_at: string;
|
|
23925
23925
|
warning_code: "unknown_issue_with_phone";
|
|
23926
23926
|
})[];
|
|
23927
|
+
custom_metadata: Record<string, string | boolean>;
|
|
23927
23928
|
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
23928
23929
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
23929
23930
|
properties: {
|
|
@@ -24155,6 +24156,7 @@ declare const batch: z.ZodObject<{
|
|
|
24155
24156
|
created_at: string;
|
|
24156
24157
|
warning_code: "unknown_issue_with_phone";
|
|
24157
24158
|
})[];
|
|
24159
|
+
custom_metadata: Record<string, string | boolean>;
|
|
24158
24160
|
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
24159
24161
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
24160
24162
|
properties: {
|
|
@@ -32790,6 +32792,7 @@ declare const batch: z.ZodObject<{
|
|
|
32790
32792
|
created_at: string;
|
|
32791
32793
|
warning_code: "unknown_issue_with_phone";
|
|
32792
32794
|
})[];
|
|
32795
|
+
custom_metadata: Record<string, string | boolean>;
|
|
32793
32796
|
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
32794
32797
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
32795
32798
|
properties: {
|
|
@@ -36642,6 +36645,7 @@ declare const batch: z.ZodObject<{
|
|
|
36642
36645
|
created_at: string;
|
|
36643
36646
|
warning_code: "unknown_issue_with_phone";
|
|
36644
36647
|
})[];
|
|
36648
|
+
custom_metadata: Record<string, string | boolean>;
|
|
36645
36649
|
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
36646
36650
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
36647
36651
|
properties: {
|
|
@@ -46506,7 +46510,7 @@ declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
46506
46510
|
can_simulate_hub_connection: z.ZodOptional<z.ZodBoolean>;
|
|
46507
46511
|
can_simulate_hub_disconnection: z.ZodOptional<z.ZodBoolean>;
|
|
46508
46512
|
can_simulate_paid_subscription: z.ZodOptional<z.ZodBoolean>;
|
|
46509
|
-
}, "device_id" | "workspace_id" | "created_at" | "errors" | "connected_account_id" | "warnings" | "device_type" | "capabilities_supported" | "location"> & {
|
|
46513
|
+
}, "device_id" | "workspace_id" | "created_at" | "errors" | "connected_account_id" | "warnings" | "custom_metadata" | "device_type" | "capabilities_supported" | "location"> & {
|
|
46510
46514
|
is_managed: z.ZodLiteral<false>;
|
|
46511
46515
|
properties: z.ZodObject<Pick<{
|
|
46512
46516
|
online: z.ZodBoolean;
|
|
@@ -46838,6 +46842,7 @@ declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
46838
46842
|
created_at: string;
|
|
46839
46843
|
warning_code: "unknown_issue_with_phone";
|
|
46840
46844
|
})[];
|
|
46845
|
+
custom_metadata: Record<string, string | boolean>;
|
|
46841
46846
|
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
46842
46847
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
46843
46848
|
properties: {
|
|
@@ -47069,6 +47074,7 @@ declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
47069
47074
|
created_at: string;
|
|
47070
47075
|
warning_code: "unknown_issue_with_phone";
|
|
47071
47076
|
})[];
|
|
47077
|
+
custom_metadata: Record<string, string | boolean>;
|
|
47072
47078
|
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
47073
47079
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
47074
47080
|
properties: {
|
|
@@ -63549,6 +63555,15 @@ declare const _default: {
|
|
|
63549
63555
|
format: string;
|
|
63550
63556
|
type: string;
|
|
63551
63557
|
};
|
|
63558
|
+
custom_metadata: {
|
|
63559
|
+
additionalProperties: {
|
|
63560
|
+
oneOf: {
|
|
63561
|
+
type: string;
|
|
63562
|
+
}[];
|
|
63563
|
+
};
|
|
63564
|
+
description: string;
|
|
63565
|
+
type: string;
|
|
63566
|
+
};
|
|
63552
63567
|
device_id: {
|
|
63553
63568
|
description: string;
|
|
63554
63569
|
format: string;
|
|
@@ -82601,6 +82616,82 @@ declare const _default: {
|
|
|
82601
82616
|
'x-title': string;
|
|
82602
82617
|
};
|
|
82603
82618
|
};
|
|
82619
|
+
'/devices/simulate/paid_subscription': {
|
|
82620
|
+
post: {
|
|
82621
|
+
description: string;
|
|
82622
|
+
operationId: string;
|
|
82623
|
+
requestBody: {
|
|
82624
|
+
content: {
|
|
82625
|
+
'application/json': {
|
|
82626
|
+
schema: {
|
|
82627
|
+
properties: {
|
|
82628
|
+
device_id: {
|
|
82629
|
+
format: string;
|
|
82630
|
+
type: string;
|
|
82631
|
+
};
|
|
82632
|
+
is_expired: {
|
|
82633
|
+
type: string;
|
|
82634
|
+
};
|
|
82635
|
+
};
|
|
82636
|
+
required: string[];
|
|
82637
|
+
type: string;
|
|
82638
|
+
};
|
|
82639
|
+
};
|
|
82640
|
+
};
|
|
82641
|
+
};
|
|
82642
|
+
responses: {
|
|
82643
|
+
200: {
|
|
82644
|
+
content: {
|
|
82645
|
+
'application/json': {
|
|
82646
|
+
schema: {
|
|
82647
|
+
properties: {
|
|
82648
|
+
ok: {
|
|
82649
|
+
type: string;
|
|
82650
|
+
};
|
|
82651
|
+
};
|
|
82652
|
+
required: string[];
|
|
82653
|
+
type: string;
|
|
82654
|
+
};
|
|
82655
|
+
};
|
|
82656
|
+
};
|
|
82657
|
+
description: string;
|
|
82658
|
+
};
|
|
82659
|
+
400: {
|
|
82660
|
+
description: string;
|
|
82661
|
+
};
|
|
82662
|
+
401: {
|
|
82663
|
+
description: string;
|
|
82664
|
+
};
|
|
82665
|
+
};
|
|
82666
|
+
security: ({
|
|
82667
|
+
api_key: never[];
|
|
82668
|
+
pat_with_workspace?: never;
|
|
82669
|
+
console_session_with_workspace?: never;
|
|
82670
|
+
client_session_with_customer?: never;
|
|
82671
|
+
} | {
|
|
82672
|
+
pat_with_workspace: never[];
|
|
82673
|
+
api_key?: never;
|
|
82674
|
+
console_session_with_workspace?: never;
|
|
82675
|
+
client_session_with_customer?: never;
|
|
82676
|
+
} | {
|
|
82677
|
+
console_session_with_workspace: never[];
|
|
82678
|
+
api_key?: never;
|
|
82679
|
+
pat_with_workspace?: never;
|
|
82680
|
+
client_session_with_customer?: never;
|
|
82681
|
+
} | {
|
|
82682
|
+
client_session_with_customer: never[];
|
|
82683
|
+
api_key?: never;
|
|
82684
|
+
pat_with_workspace?: never;
|
|
82685
|
+
console_session_with_workspace?: never;
|
|
82686
|
+
})[];
|
|
82687
|
+
summary: string;
|
|
82688
|
+
tags: string[];
|
|
82689
|
+
'x-fern-sdk-group-name': string[];
|
|
82690
|
+
'x-fern-sdk-method-name': string;
|
|
82691
|
+
'x-response-key': null;
|
|
82692
|
+
'x-title': string;
|
|
82693
|
+
};
|
|
82694
|
+
};
|
|
82604
82695
|
'/devices/simulate/remove': {
|
|
82605
82696
|
post: {
|
|
82606
82697
|
description: string;
|
|
@@ -83327,6 +83418,20 @@ declare const _default: {
|
|
|
83327
83418
|
'application/json': {
|
|
83328
83419
|
schema: {
|
|
83329
83420
|
properties: {
|
|
83421
|
+
custom_metadata: {
|
|
83422
|
+
additionalProperties: {
|
|
83423
|
+
nullable: boolean;
|
|
83424
|
+
oneOf: ({
|
|
83425
|
+
maxLength: number;
|
|
83426
|
+
type: string;
|
|
83427
|
+
} | {
|
|
83428
|
+
type: string;
|
|
83429
|
+
maxLength?: never;
|
|
83430
|
+
})[];
|
|
83431
|
+
};
|
|
83432
|
+
description: string;
|
|
83433
|
+
type: string;
|
|
83434
|
+
};
|
|
83330
83435
|
device_id: {
|
|
83331
83436
|
description: string;
|
|
83332
83437
|
format: string;
|
|
@@ -83396,6 +83501,20 @@ declare const _default: {
|
|
|
83396
83501
|
'application/json': {
|
|
83397
83502
|
schema: {
|
|
83398
83503
|
properties: {
|
|
83504
|
+
custom_metadata: {
|
|
83505
|
+
additionalProperties: {
|
|
83506
|
+
nullable: boolean;
|
|
83507
|
+
oneOf: ({
|
|
83508
|
+
maxLength: number;
|
|
83509
|
+
type: string;
|
|
83510
|
+
} | {
|
|
83511
|
+
type: string;
|
|
83512
|
+
maxLength?: never;
|
|
83513
|
+
})[];
|
|
83514
|
+
};
|
|
83515
|
+
description: string;
|
|
83516
|
+
type: string;
|
|
83517
|
+
};
|
|
83399
83518
|
device_id: {
|
|
83400
83519
|
description: string;
|
|
83401
83520
|
format: string;
|
|
@@ -118267,6 +118386,10 @@ type Routes = {
|
|
|
118267
118386
|
})[];
|
|
118268
118387
|
/** Date and time at which the device object was created. */
|
|
118269
118388
|
created_at: string;
|
|
118389
|
+
/** 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. */
|
|
118390
|
+
custom_metadata: {
|
|
118391
|
+
[x: string]: string | boolean;
|
|
118392
|
+
};
|
|
118270
118393
|
is_managed: false;
|
|
118271
118394
|
/** properties of the device. */
|
|
118272
118395
|
properties: {
|
|
@@ -135340,6 +135463,18 @@ type Routes = {
|
|
|
135340
135463
|
formData: {};
|
|
135341
135464
|
jsonResponse: {};
|
|
135342
135465
|
};
|
|
135466
|
+
'/devices/simulate/paid_subscription': {
|
|
135467
|
+
route: '/devices/simulate/paid_subscription';
|
|
135468
|
+
method: 'POST';
|
|
135469
|
+
queryParams: {};
|
|
135470
|
+
jsonBody: {
|
|
135471
|
+
device_id: string;
|
|
135472
|
+
is_expired: boolean;
|
|
135473
|
+
};
|
|
135474
|
+
commonParams: {};
|
|
135475
|
+
formData: {};
|
|
135476
|
+
jsonResponse: {};
|
|
135477
|
+
};
|
|
135343
135478
|
'/devices/simulate/remove': {
|
|
135344
135479
|
route: '/devices/simulate/remove';
|
|
135345
135480
|
method: 'POST';
|
|
@@ -135665,6 +135800,10 @@ type Routes = {
|
|
|
135665
135800
|
})[];
|
|
135666
135801
|
/** Date and time at which the device object was created. */
|
|
135667
135802
|
created_at: string;
|
|
135803
|
+
/** 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. */
|
|
135804
|
+
custom_metadata: {
|
|
135805
|
+
[x: string]: string | boolean;
|
|
135806
|
+
};
|
|
135668
135807
|
is_managed: false;
|
|
135669
135808
|
/** properties of the device. */
|
|
135670
135809
|
properties: {
|
|
@@ -136104,6 +136243,10 @@ type Routes = {
|
|
|
136104
136243
|
})[];
|
|
136105
136244
|
/** Date and time at which the device object was created. */
|
|
136106
136245
|
created_at: string;
|
|
136246
|
+
/** 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. */
|
|
136247
|
+
custom_metadata: {
|
|
136248
|
+
[x: string]: string | boolean;
|
|
136249
|
+
};
|
|
136107
136250
|
is_managed: false;
|
|
136108
136251
|
/** properties of the device. */
|
|
136109
136252
|
properties: {
|
|
@@ -136203,7 +136346,11 @@ type Routes = {
|
|
|
136203
136346
|
/** ID of the unmanaged device that you want to update. */
|
|
136204
136347
|
device_id: string;
|
|
136205
136348
|
/** Indicates whether the device is managed. Set this parameter to `true` to convert an unmanaged device to managed. */
|
|
136206
|
-
is_managed
|
|
136349
|
+
is_managed?: true | undefined;
|
|
136350
|
+
/** Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs. */
|
|
136351
|
+
custom_metadata?: {
|
|
136352
|
+
[x: string]: string | boolean | null;
|
|
136353
|
+
} | undefined;
|
|
136207
136354
|
};
|
|
136208
136355
|
formData: {};
|
|
136209
136356
|
jsonResponse: {};
|
|
@@ -184021,6 +184168,10 @@ type Routes = {
|
|
|
184021
184168
|
})[];
|
|
184022
184169
|
/** Date and time at which the device object was created. */
|
|
184023
184170
|
created_at: string;
|
|
184171
|
+
/** 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. */
|
|
184172
|
+
custom_metadata: {
|
|
184173
|
+
[x: string]: string | boolean;
|
|
184174
|
+
};
|
|
184024
184175
|
is_managed: false;
|
|
184025
184176
|
/** properties of the device. */
|
|
184026
184177
|
properties: {
|
package/dist/index.cjs
CHANGED
|
@@ -1841,7 +1841,8 @@ var unmanaged_device = device.pick({
|
|
|
1841
1841
|
workspace_id: true,
|
|
1842
1842
|
errors: true,
|
|
1843
1843
|
warnings: true,
|
|
1844
|
-
created_at: true
|
|
1844
|
+
created_at: true,
|
|
1845
|
+
custom_metadata: true
|
|
1845
1846
|
}).extend({
|
|
1846
1847
|
is_managed: zod.z.literal(false),
|
|
1847
1848
|
properties: common_device_properties.pick({
|
|
@@ -26787,6 +26788,13 @@ var openapi_default = {
|
|
|
26787
26788
|
format: "date-time",
|
|
26788
26789
|
type: "string"
|
|
26789
26790
|
},
|
|
26791
|
+
custom_metadata: {
|
|
26792
|
+
additionalProperties: {
|
|
26793
|
+
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
26794
|
+
},
|
|
26795
|
+
description: "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.",
|
|
26796
|
+
type: "object"
|
|
26797
|
+
},
|
|
26790
26798
|
device_id: {
|
|
26791
26799
|
description: "ID of the device.",
|
|
26792
26800
|
format: "uuid",
|
|
@@ -27942,6 +27950,7 @@ var openapi_default = {
|
|
|
27942
27950
|
"errors",
|
|
27943
27951
|
"warnings",
|
|
27944
27952
|
"created_at",
|
|
27953
|
+
"custom_metadata",
|
|
27945
27954
|
"is_managed",
|
|
27946
27955
|
"properties"
|
|
27947
27956
|
],
|
|
@@ -43460,6 +43469,54 @@ var openapi_default = {
|
|
|
43460
43469
|
"x-title": "Simulate Hub Disconnection"
|
|
43461
43470
|
}
|
|
43462
43471
|
},
|
|
43472
|
+
"/devices/simulate/paid_subscription": {
|
|
43473
|
+
post: {
|
|
43474
|
+
description: "Toggle the simulated Nuki Smart Hosting subscription for a device (sandbox only).\nSend `is_expired: true` to simulate an expired subscription, or `false` to simulate an active subscription.\nThe actual device error is created/cleared by the poller after this state change.",
|
|
43475
|
+
operationId: "devicesSimulatePaidSubscriptionPost",
|
|
43476
|
+
requestBody: {
|
|
43477
|
+
content: {
|
|
43478
|
+
"application/json": {
|
|
43479
|
+
schema: {
|
|
43480
|
+
properties: {
|
|
43481
|
+
device_id: { format: "uuid", type: "string" },
|
|
43482
|
+
is_expired: { type: "boolean" }
|
|
43483
|
+
},
|
|
43484
|
+
required: ["device_id", "is_expired"],
|
|
43485
|
+
type: "object"
|
|
43486
|
+
}
|
|
43487
|
+
}
|
|
43488
|
+
}
|
|
43489
|
+
},
|
|
43490
|
+
responses: {
|
|
43491
|
+
200: {
|
|
43492
|
+
content: {
|
|
43493
|
+
"application/json": {
|
|
43494
|
+
schema: {
|
|
43495
|
+
properties: { ok: { type: "boolean" } },
|
|
43496
|
+
required: ["ok"],
|
|
43497
|
+
type: "object"
|
|
43498
|
+
}
|
|
43499
|
+
}
|
|
43500
|
+
},
|
|
43501
|
+
description: "OK"
|
|
43502
|
+
},
|
|
43503
|
+
400: { description: "Bad Request" },
|
|
43504
|
+
401: { description: "Unauthorized" }
|
|
43505
|
+
},
|
|
43506
|
+
security: [
|
|
43507
|
+
{ api_key: [] },
|
|
43508
|
+
{ pat_with_workspace: [] },
|
|
43509
|
+
{ console_session_with_workspace: [] },
|
|
43510
|
+
{ client_session_with_customer: [] }
|
|
43511
|
+
],
|
|
43512
|
+
summary: "/devices/simulate/paid_subscription",
|
|
43513
|
+
tags: ["/devices"],
|
|
43514
|
+
"x-fern-sdk-group-name": ["devices", "simulate"],
|
|
43515
|
+
"x-fern-sdk-method-name": "paid_subscription",
|
|
43516
|
+
"x-response-key": null,
|
|
43517
|
+
"x-title": "Simulate Paid Subscription"
|
|
43518
|
+
}
|
|
43519
|
+
},
|
|
43463
43520
|
"/devices/simulate/remove": {
|
|
43464
43521
|
post: {
|
|
43465
43522
|
description: "Simulates removing a device from Seam. Only applicable for [sandbox devices](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://docs.seam.co/latest/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).",
|
|
@@ -44384,6 +44441,17 @@ var openapi_default = {
|
|
|
44384
44441
|
"application/json": {
|
|
44385
44442
|
schema: {
|
|
44386
44443
|
properties: {
|
|
44444
|
+
custom_metadata: {
|
|
44445
|
+
additionalProperties: {
|
|
44446
|
+
nullable: true,
|
|
44447
|
+
oneOf: [
|
|
44448
|
+
{ maxLength: 500, type: "string" },
|
|
44449
|
+
{ type: "boolean" }
|
|
44450
|
+
]
|
|
44451
|
+
},
|
|
44452
|
+
description: "Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs.",
|
|
44453
|
+
type: "object"
|
|
44454
|
+
},
|
|
44387
44455
|
device_id: {
|
|
44388
44456
|
description: "ID of the unmanaged device that you want to update.",
|
|
44389
44457
|
format: "uuid",
|
|
@@ -44395,7 +44463,7 @@ var openapi_default = {
|
|
|
44395
44463
|
type: "boolean"
|
|
44396
44464
|
}
|
|
44397
44465
|
},
|
|
44398
|
-
required: ["device_id"
|
|
44466
|
+
required: ["device_id"],
|
|
44399
44467
|
type: "object"
|
|
44400
44468
|
}
|
|
44401
44469
|
}
|
|
@@ -44437,6 +44505,17 @@ var openapi_default = {
|
|
|
44437
44505
|
"application/json": {
|
|
44438
44506
|
schema: {
|
|
44439
44507
|
properties: {
|
|
44508
|
+
custom_metadata: {
|
|
44509
|
+
additionalProperties: {
|
|
44510
|
+
nullable: true,
|
|
44511
|
+
oneOf: [
|
|
44512
|
+
{ maxLength: 500, type: "string" },
|
|
44513
|
+
{ type: "boolean" }
|
|
44514
|
+
]
|
|
44515
|
+
},
|
|
44516
|
+
description: "Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs.",
|
|
44517
|
+
type: "object"
|
|
44518
|
+
},
|
|
44440
44519
|
device_id: {
|
|
44441
44520
|
description: "ID of the unmanaged device that you want to update.",
|
|
44442
44521
|
format: "uuid",
|
|
@@ -44448,7 +44527,7 @@ var openapi_default = {
|
|
|
44448
44527
|
type: "boolean"
|
|
44449
44528
|
}
|
|
44450
44529
|
},
|
|
44451
|
-
required: ["device_id"
|
|
44530
|
+
required: ["device_id"],
|
|
44452
44531
|
type: "object"
|
|
44453
44532
|
}
|
|
44454
44533
|
}
|