@seamapi/types 1.1074.0 → 1.1076.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/lib/seam/connect/models/devices/device-metadata.d.ts +27 -4
- package/lib/seam/connect/models/devices/device-metadata.js +18 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
- package/lib/seam/connect/models/devices/device-provider.js +2 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +5 -3
- package/lib/seam/connect/models/devices/device-type.js +1 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +42 -9
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +30 -7
- package/lib/seam/connect/openapi.js +231 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +209 -28
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-metadata.ts +19 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
- package/src/lib/seam/connect/models/devices/device-type.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +240 -6
- package/src/lib/seam/connect/route-types.ts +408 -24
package/package.json
CHANGED
|
@@ -1149,6 +1149,25 @@ export const device_metadata = z
|
|
|
1149
1149
|
.partial()
|
|
1150
1150
|
.describe(`Metadata for a Yacan device.`),
|
|
1151
1151
|
|
|
1152
|
+
tapo_metadata: z
|
|
1153
|
+
.object({
|
|
1154
|
+
model: z
|
|
1155
|
+
.string()
|
|
1156
|
+
.optional()
|
|
1157
|
+
.describe('Model reported by the Tapo camera.'),
|
|
1158
|
+
firmware_version: z
|
|
1159
|
+
.string()
|
|
1160
|
+
.optional()
|
|
1161
|
+
.describe('Firmware version reported by the camera.'),
|
|
1162
|
+
hardware_version: z
|
|
1163
|
+
.string()
|
|
1164
|
+
.optional()
|
|
1165
|
+
.describe('Hardware version reported by the camera.'),
|
|
1166
|
+
})
|
|
1167
|
+
.partial()
|
|
1168
|
+
.optional()
|
|
1169
|
+
.describe('Metadata for a Tapo camera.'),
|
|
1170
|
+
|
|
1152
1171
|
ring_metadata: z
|
|
1153
1172
|
.object({
|
|
1154
1173
|
device_id: z
|
|
@@ -61,6 +61,7 @@ export const DEVICE_PROVIDERS = {
|
|
|
61
61
|
SIFELY: 'sifely',
|
|
62
62
|
THIRTY_THREE_LOCK: 'thirty_three_lock',
|
|
63
63
|
RING: 'ring',
|
|
64
|
+
TAPO: 'tapo',
|
|
64
65
|
ICAL: 'ical',
|
|
65
66
|
LODGIFY: 'lodgify',
|
|
66
67
|
HOSTAWAY: 'hostaway',
|
|
@@ -168,7 +169,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
168
169
|
'hotek',
|
|
169
170
|
],
|
|
170
171
|
|
|
171
|
-
cameras: ['ring'],
|
|
172
|
+
cameras: ['ring', 'tapo'],
|
|
172
173
|
|
|
173
174
|
connectors: ['ical', 'lodgify', 'hostaway', 'guesty', 'acuity_scheduling'],
|
|
174
175
|
|
|
@@ -13758,7 +13758,7 @@ const openapi: OpenAPISpec = {
|
|
|
13758
13758
|
},
|
|
13759
13759
|
{
|
|
13760
13760
|
description: 'Device type for cameras.',
|
|
13761
|
-
enum: ['ring_camera'],
|
|
13761
|
+
enum: ['ring_camera', 'tapo_camera'],
|
|
13762
13762
|
type: 'string',
|
|
13763
13763
|
},
|
|
13764
13764
|
],
|
|
@@ -15769,6 +15769,26 @@ const openapi: OpenAPISpec = {
|
|
|
15769
15769
|
},
|
|
15770
15770
|
type: 'object',
|
|
15771
15771
|
},
|
|
15772
|
+
tapo_metadata: {
|
|
15773
|
+
description: 'Metadata for a Tapo camera.',
|
|
15774
|
+
properties: {
|
|
15775
|
+
firmware_version: {
|
|
15776
|
+
description:
|
|
15777
|
+
'Firmware version reported by the camera.',
|
|
15778
|
+
type: 'string',
|
|
15779
|
+
},
|
|
15780
|
+
hardware_version: {
|
|
15781
|
+
description:
|
|
15782
|
+
'Hardware version reported by the camera.',
|
|
15783
|
+
type: 'string',
|
|
15784
|
+
},
|
|
15785
|
+
model: {
|
|
15786
|
+
description: 'Model reported by the Tapo camera.',
|
|
15787
|
+
type: 'string',
|
|
15788
|
+
},
|
|
15789
|
+
},
|
|
15790
|
+
type: 'object',
|
|
15791
|
+
},
|
|
15772
15792
|
tedee_metadata: {
|
|
15773
15793
|
description: 'Metadata for a Tedee device.',
|
|
15774
15794
|
properties: {
|
|
@@ -18178,6 +18198,7 @@ const openapi: OpenAPISpec = {
|
|
|
18178
18198
|
'sifely',
|
|
18179
18199
|
'thirty_three_lock',
|
|
18180
18200
|
'ring',
|
|
18201
|
+
'tapo',
|
|
18181
18202
|
'ical',
|
|
18182
18203
|
'lodgify',
|
|
18183
18204
|
'hostaway',
|
|
@@ -36282,7 +36303,7 @@ const openapi: OpenAPISpec = {
|
|
|
36282
36303
|
},
|
|
36283
36304
|
{
|
|
36284
36305
|
description: 'Device type for cameras.',
|
|
36285
|
-
enum: ['ring_camera'],
|
|
36306
|
+
enum: ['ring_camera', 'tapo_camera'],
|
|
36286
36307
|
type: 'string',
|
|
36287
36308
|
},
|
|
36288
36309
|
],
|
|
@@ -46928,6 +46949,7 @@ const openapi: OpenAPISpec = {
|
|
|
46928
46949
|
'sifely',
|
|
46929
46950
|
'thirty_three_lock',
|
|
46930
46951
|
'ring',
|
|
46952
|
+
'tapo',
|
|
46931
46953
|
'ical',
|
|
46932
46954
|
'lodgify',
|
|
46933
46955
|
'hostaway',
|
|
@@ -50599,7 +50621,7 @@ const openapi: OpenAPISpec = {
|
|
|
50599
50621
|
},
|
|
50600
50622
|
{
|
|
50601
50623
|
description: 'Device type for cameras.',
|
|
50602
|
-
enum: ['ring_camera'],
|
|
50624
|
+
enum: ['ring_camera', 'tapo_camera'],
|
|
50603
50625
|
type: 'string',
|
|
50604
50626
|
},
|
|
50605
50627
|
],
|
|
@@ -50679,7 +50701,7 @@ const openapi: OpenAPISpec = {
|
|
|
50679
50701
|
},
|
|
50680
50702
|
{
|
|
50681
50703
|
description: 'Device type for cameras.',
|
|
50682
|
-
enum: ['ring_camera'],
|
|
50704
|
+
enum: ['ring_camera', 'tapo_camera'],
|
|
50683
50705
|
type: 'string',
|
|
50684
50706
|
},
|
|
50685
50707
|
],
|
|
@@ -50737,6 +50759,7 @@ const openapi: OpenAPISpec = {
|
|
|
50737
50759
|
'tado',
|
|
50738
50760
|
'ultraloq',
|
|
50739
50761
|
'ring',
|
|
50762
|
+
'tapo',
|
|
50740
50763
|
'ical',
|
|
50741
50764
|
'lodgify',
|
|
50742
50765
|
'hostaway',
|
|
@@ -52899,7 +52922,7 @@ const openapi: OpenAPISpec = {
|
|
|
52899
52922
|
},
|
|
52900
52923
|
{
|
|
52901
52924
|
description: 'Device type for cameras.',
|
|
52902
|
-
enum: ['ring_camera'],
|
|
52925
|
+
enum: ['ring_camera', 'tapo_camera'],
|
|
52903
52926
|
type: 'string',
|
|
52904
52927
|
},
|
|
52905
52928
|
],
|
|
@@ -52979,7 +53002,7 @@ const openapi: OpenAPISpec = {
|
|
|
52979
53002
|
},
|
|
52980
53003
|
{
|
|
52981
53004
|
description: 'Device type for cameras.',
|
|
52982
|
-
enum: ['ring_camera'],
|
|
53005
|
+
enum: ['ring_camera', 'tapo_camera'],
|
|
52983
53006
|
type: 'string',
|
|
52984
53007
|
},
|
|
52985
53008
|
],
|
|
@@ -53037,6 +53060,7 @@ const openapi: OpenAPISpec = {
|
|
|
53037
53060
|
'tado',
|
|
53038
53061
|
'ultraloq',
|
|
53039
53062
|
'ring',
|
|
53063
|
+
'tapo',
|
|
53040
53064
|
'ical',
|
|
53041
53065
|
'lodgify',
|
|
53042
53066
|
'hostaway',
|
|
@@ -65043,6 +65067,216 @@ const openapi: OpenAPISpec = {
|
|
|
65043
65067
|
'x-undocumented': 'Internal endpoint for inbound provider webhooks',
|
|
65044
65068
|
},
|
|
65045
65069
|
},
|
|
65070
|
+
'/seam/webhooks/v1/preview_event': {
|
|
65071
|
+
post: {
|
|
65072
|
+
description:
|
|
65073
|
+
'Returns the event payload that `/seam/webhooks/v1/simulate_event` would send for a specified event type, without creating an event or delivering a [webhook](https://docs.seam.co/developer-tools/webhooks). Only applicable within [sandbox workspaces](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).\n\nSeam fills in the payload the same way that `simulate_event` does, using real resources from the workspace where it can and placeholder values otherwise, and reports which fields it filled in each way. Provide `payload` to set any field explicitly.',
|
|
65074
|
+
operationId: 'seamWebhooksV1PreviewEventPost',
|
|
65075
|
+
requestBody: {
|
|
65076
|
+
content: {
|
|
65077
|
+
'application/json': {
|
|
65078
|
+
schema: {
|
|
65079
|
+
properties: {
|
|
65080
|
+
event_type: {
|
|
65081
|
+
description: 'Type of the event that you want to preview.',
|
|
65082
|
+
enum: [
|
|
65083
|
+
'access_code.created',
|
|
65084
|
+
'access_code.changed',
|
|
65085
|
+
'access_code.name_changed',
|
|
65086
|
+
'access_code.code_changed',
|
|
65087
|
+
'access_code.time_frame_changed',
|
|
65088
|
+
'access_code.mutations_requested',
|
|
65089
|
+
'access_code.scheduled_on_device',
|
|
65090
|
+
'access_code.set_on_device',
|
|
65091
|
+
'access_code.removed_from_device',
|
|
65092
|
+
'access_code.delay_in_setting_on_device',
|
|
65093
|
+
'access_code.failed_to_set_on_device',
|
|
65094
|
+
'access_code.issued',
|
|
65095
|
+
'access_code.delay_in_issuing',
|
|
65096
|
+
'access_code.failed_to_issue',
|
|
65097
|
+
'access_code.failed_to_update',
|
|
65098
|
+
'access_code.failed_to_expire',
|
|
65099
|
+
'access_code.deleted',
|
|
65100
|
+
'access_code.delay_in_removing_from_device',
|
|
65101
|
+
'access_code.failed_to_remove_from_device',
|
|
65102
|
+
'access_code.modified_external_to_seam',
|
|
65103
|
+
'access_code.deleted_external_to_seam',
|
|
65104
|
+
'access_code.backup_access_code_pulled',
|
|
65105
|
+
'access_code.unmanaged.converted_to_managed',
|
|
65106
|
+
'access_code.unmanaged.failed_to_convert_to_managed',
|
|
65107
|
+
'access_code.unmanaged.created',
|
|
65108
|
+
'access_code.unmanaged.removed',
|
|
65109
|
+
'access_grant.created',
|
|
65110
|
+
'access_grant.deleted',
|
|
65111
|
+
'access_grant.access_granted_to_all_doors',
|
|
65112
|
+
'access_grant.access_granted_to_door',
|
|
65113
|
+
'access_grant.access_to_door_lost',
|
|
65114
|
+
'access_grant.access_times_changed',
|
|
65115
|
+
'access_grant.could_not_create_requested_access_methods',
|
|
65116
|
+
'access_method.issued',
|
|
65117
|
+
'access_method.revoked',
|
|
65118
|
+
'access_method.card_encoding_required',
|
|
65119
|
+
'access_method.deleted',
|
|
65120
|
+
'access_method.reissued',
|
|
65121
|
+
'access_method.created',
|
|
65122
|
+
'access_method.delay_in_issuing',
|
|
65123
|
+
'access_method.failed_to_issue',
|
|
65124
|
+
'acs_system.connected',
|
|
65125
|
+
'acs_system.added',
|
|
65126
|
+
'acs_system.disconnected',
|
|
65127
|
+
'acs_credential.deleted',
|
|
65128
|
+
'acs_credential.issued',
|
|
65129
|
+
'acs_credential.reissued',
|
|
65130
|
+
'acs_credential.invalidated',
|
|
65131
|
+
'acs_user.created',
|
|
65132
|
+
'acs_user.deleted',
|
|
65133
|
+
'acs_encoder.added',
|
|
65134
|
+
'acs_encoder.removed',
|
|
65135
|
+
'acs_access_group.deleted',
|
|
65136
|
+
'acs_entrance.added',
|
|
65137
|
+
'acs_entrance.removed',
|
|
65138
|
+
'client_session.deleted',
|
|
65139
|
+
'connected_account.connected',
|
|
65140
|
+
'connected_account.created',
|
|
65141
|
+
'connected_account.successful_login',
|
|
65142
|
+
'connected_account.disconnected',
|
|
65143
|
+
'connected_account.completed_first_sync',
|
|
65144
|
+
'connected_account.deleted',
|
|
65145
|
+
'connected_account.completed_first_sync_after_reconnection',
|
|
65146
|
+
'connected_account.reauthorization_requested',
|
|
65147
|
+
'action_attempt.lock_door.succeeded',
|
|
65148
|
+
'action_attempt.lock_door.failed',
|
|
65149
|
+
'action_attempt.unlock_door.succeeded',
|
|
65150
|
+
'action_attempt.unlock_door.failed',
|
|
65151
|
+
'action_attempt.simulate_keypad_code_entry.succeeded',
|
|
65152
|
+
'action_attempt.simulate_keypad_code_entry.failed',
|
|
65153
|
+
'action_attempt.simulate_manual_lock_via_keypad.succeeded',
|
|
65154
|
+
'action_attempt.simulate_manual_lock_via_keypad.failed',
|
|
65155
|
+
'connect_webview.login_succeeded',
|
|
65156
|
+
'connect_webview.login_failed',
|
|
65157
|
+
'device.connected',
|
|
65158
|
+
'device.added',
|
|
65159
|
+
'device.converted_to_unmanaged',
|
|
65160
|
+
'device.unmanaged.converted_to_managed',
|
|
65161
|
+
'device.unmanaged.connected',
|
|
65162
|
+
'device.disconnected',
|
|
65163
|
+
'device.unmanaged.disconnected',
|
|
65164
|
+
'device.tampered',
|
|
65165
|
+
'device.low_battery',
|
|
65166
|
+
'device.battery_status_changed',
|
|
65167
|
+
'device.removed',
|
|
65168
|
+
'device.deleted',
|
|
65169
|
+
'device.third_party_integration_detected',
|
|
65170
|
+
'device.third_party_integration_no_longer_detected',
|
|
65171
|
+
'device.salto.privacy_mode_activated',
|
|
65172
|
+
'device.salto.privacy_mode_deactivated',
|
|
65173
|
+
'device.connection_became_flaky',
|
|
65174
|
+
'device.connection_stabilized',
|
|
65175
|
+
'device.error.subscription_required',
|
|
65176
|
+
'device.error.subscription_required.resolved',
|
|
65177
|
+
'device.accessory_keypad_connected',
|
|
65178
|
+
'device.accessory_keypad_disconnected',
|
|
65179
|
+
'noise_sensor.noise_threshold_triggered',
|
|
65180
|
+
'lock.locked',
|
|
65181
|
+
'lock.unlocked',
|
|
65182
|
+
'lock.access_denied',
|
|
65183
|
+
'thermostat.climate_preset_activated',
|
|
65184
|
+
'thermostat.manually_adjusted',
|
|
65185
|
+
'thermostat.temperature_threshold_exceeded',
|
|
65186
|
+
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
65187
|
+
'thermostat.temperature_reached_set_point',
|
|
65188
|
+
'thermostat.temperature_changed',
|
|
65189
|
+
'device.name_changed',
|
|
65190
|
+
'camera.activated',
|
|
65191
|
+
'device.doorbell_rang',
|
|
65192
|
+
'enrollment_automation.deleted',
|
|
65193
|
+
'phone.deactivated',
|
|
65194
|
+
'space.device_membership_changed',
|
|
65195
|
+
'space.created',
|
|
65196
|
+
'space.deleted',
|
|
65197
|
+
],
|
|
65198
|
+
type: 'string',
|
|
65199
|
+
},
|
|
65200
|
+
payload: {
|
|
65201
|
+
additionalProperties: {},
|
|
65202
|
+
default: {},
|
|
65203
|
+
description:
|
|
65204
|
+
'Event payload fields that you want to set explicitly. Each field that you provide overrides the value that Seam would otherwise fill in.',
|
|
65205
|
+
type: 'object',
|
|
65206
|
+
},
|
|
65207
|
+
},
|
|
65208
|
+
required: ['event_type'],
|
|
65209
|
+
type: 'object',
|
|
65210
|
+
},
|
|
65211
|
+
},
|
|
65212
|
+
},
|
|
65213
|
+
},
|
|
65214
|
+
responses: {
|
|
65215
|
+
'200': {
|
|
65216
|
+
content: {
|
|
65217
|
+
'application/json': {
|
|
65218
|
+
schema: {
|
|
65219
|
+
properties: {
|
|
65220
|
+
ok: { type: 'boolean' },
|
|
65221
|
+
payload: {
|
|
65222
|
+
additionalProperties: {
|
|
65223
|
+
$ref: '#/components/schemas/access_code',
|
|
65224
|
+
},
|
|
65225
|
+
description:
|
|
65226
|
+
'Event payload that `simulate_event` would send for this event type.',
|
|
65227
|
+
type: 'object',
|
|
65228
|
+
},
|
|
65229
|
+
resolved_fields: {
|
|
65230
|
+
description:
|
|
65231
|
+
'Payload fields that Seam set to a real resource in your workspace.',
|
|
65232
|
+
items: { type: 'string' },
|
|
65233
|
+
type: 'array',
|
|
65234
|
+
},
|
|
65235
|
+
subscribed_webhook_count: {
|
|
65236
|
+
description:
|
|
65237
|
+
'Number of webhooks in your workspace that are subscribed to this event type and would therefore receive this event. If this is `0`, no webhook receives the event. `null` if Seam could not determine the count.',
|
|
65238
|
+
format: 'float',
|
|
65239
|
+
nullable: true,
|
|
65240
|
+
type: 'number',
|
|
65241
|
+
},
|
|
65242
|
+
synthesized_fields: {
|
|
65243
|
+
description:
|
|
65244
|
+
'Payload fields that Seam set to a placeholder value because your workspace has no matching resource and you did not provide one.',
|
|
65245
|
+
items: { type: 'string' },
|
|
65246
|
+
type: 'array',
|
|
65247
|
+
},
|
|
65248
|
+
},
|
|
65249
|
+
required: [
|
|
65250
|
+
'payload',
|
|
65251
|
+
'resolved_fields',
|
|
65252
|
+
'subscribed_webhook_count',
|
|
65253
|
+
'synthesized_fields',
|
|
65254
|
+
'ok',
|
|
65255
|
+
],
|
|
65256
|
+
type: 'object',
|
|
65257
|
+
},
|
|
65258
|
+
},
|
|
65259
|
+
},
|
|
65260
|
+
description: 'OK',
|
|
65261
|
+
},
|
|
65262
|
+
'400': { description: 'Bad Request' },
|
|
65263
|
+
'401': { description: 'Unauthorized' },
|
|
65264
|
+
},
|
|
65265
|
+
security: [
|
|
65266
|
+
{ api_key: [] },
|
|
65267
|
+
{ pat_with_workspace: [] },
|
|
65268
|
+
{ console_session_with_workspace: [] },
|
|
65269
|
+
],
|
|
65270
|
+
summary: '/seam/webhooks/v1/preview_event',
|
|
65271
|
+
tags: ['/webhooks'],
|
|
65272
|
+
'x-fern-sdk-group-name': ['seam', 'webhooks', 'v1'],
|
|
65273
|
+
'x-fern-sdk-method-name': 'preview_event',
|
|
65274
|
+
'x-response-key': null,
|
|
65275
|
+
'x-title': 'Preview a Simulated Event',
|
|
65276
|
+
'x-undocumented':
|
|
65277
|
+
'Unreleased. Seam Wizard and internal webhook testing only.',
|
|
65278
|
+
},
|
|
65279
|
+
},
|
|
65046
65280
|
'/seam/webhooks/v1/simulate_event': {
|
|
65047
65281
|
post: {
|
|
65048
65282
|
description:
|