@seamapi/types 1.1075.0 → 1.1077.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1075.0",
3
+ "version": "1.1077.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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
 
@@ -127,6 +127,7 @@ export type PhoneDeviceType = z.infer<typeof phone_device_type>
127
127
 
128
128
  export const CAMERA_DEVICE_TYPE = {
129
129
  RING_CAMERA: 'ring_camera',
130
+ TAPO_CAMERA: 'tapo_camera',
130
131
  } as const
131
132
 
132
133
  type CameraDeviceTypeFromMapping =
@@ -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
  ],
@@ -46303,6 +46324,191 @@ const openapi: OpenAPISpec = {
46303
46324
  'x-undocumented': 'Not yet for customer use.',
46304
46325
  },
46305
46326
  },
46327
+ '/cameras/live_views/create': {
46328
+ post: {
46329
+ description: 'Creates a short-lived, single-camera live view session.',
46330
+ operationId: 'camerasLiveViewsCreatePost',
46331
+ requestBody: {
46332
+ content: {
46333
+ 'application/json': {
46334
+ schema: {
46335
+ additionalProperties: false,
46336
+ properties: {
46337
+ device_id: { format: 'uuid', type: 'string' },
46338
+ duration_seconds: {
46339
+ default: 600,
46340
+ maximum: 600,
46341
+ minimum: 1,
46342
+ type: 'integer',
46343
+ },
46344
+ include_audio: { default: false, type: 'boolean' },
46345
+ },
46346
+ required: ['device_id'],
46347
+ type: 'object',
46348
+ },
46349
+ },
46350
+ },
46351
+ },
46352
+ responses: {
46353
+ '200': {
46354
+ content: {
46355
+ 'application/json': {
46356
+ schema: {
46357
+ properties: {
46358
+ camera_live_view_session: {
46359
+ properties: {
46360
+ camera_live_view_session_id: {
46361
+ format: 'uuid',
46362
+ type: 'string',
46363
+ },
46364
+ device_id: { format: 'uuid', type: 'string' },
46365
+ expires_at: { format: 'date-time', type: 'string' },
46366
+ token: { maxLength: 512, minLength: 1, type: 'string' },
46367
+ },
46368
+ required: [
46369
+ 'camera_live_view_session_id',
46370
+ 'device_id',
46371
+ 'expires_at',
46372
+ 'token',
46373
+ ],
46374
+ type: 'object',
46375
+ },
46376
+ ok: { type: 'boolean' },
46377
+ },
46378
+ required: ['camera_live_view_session', 'ok'],
46379
+ type: 'object',
46380
+ },
46381
+ },
46382
+ },
46383
+ description: 'OK',
46384
+ },
46385
+ '400': { description: 'Bad Request' },
46386
+ '401': { description: 'Unauthorized' },
46387
+ },
46388
+ security: [{ client_session: [] }],
46389
+ summary: '/cameras/live_views/create',
46390
+ tags: [],
46391
+ 'x-fern-sdk-group-name': ['cameras', 'live_views'],
46392
+ 'x-fern-sdk-method-name': 'create',
46393
+ 'x-fern-sdk-return-value': 'camera_live_view_session',
46394
+ 'x-response-key': 'camera_live_view_session',
46395
+ 'x-title': 'Create a Camera Live View Session',
46396
+ 'x-undocumented': 'Camera pilot; not yet for customer use.',
46397
+ },
46398
+ },
46399
+ '/cameras/live_views/offer': {
46400
+ post: {
46401
+ description:
46402
+ 'Exchanges one WebRTC offer for an authorized camera live view session.',
46403
+ operationId: 'camerasLiveViewsOfferPost',
46404
+ requestBody: {
46405
+ content: {
46406
+ 'application/json': {
46407
+ schema: {
46408
+ additionalProperties: false,
46409
+ properties: {
46410
+ camera_live_view_session_id: {
46411
+ format: 'uuid',
46412
+ type: 'string',
46413
+ },
46414
+ sdp_offer: {
46415
+ description: 'WebRTC SDP, limited to 64 KiB of UTF-8 data.',
46416
+ maxLength: 65_536,
46417
+ minLength: 1,
46418
+ type: 'string',
46419
+ },
46420
+ token: { maxLength: 512, minLength: 1, type: 'string' },
46421
+ },
46422
+ required: ['camera_live_view_session_id', 'token', 'sdp_offer'],
46423
+ type: 'object',
46424
+ },
46425
+ },
46426
+ },
46427
+ },
46428
+ responses: {
46429
+ '200': {
46430
+ content: {
46431
+ 'application/json': {
46432
+ schema: {
46433
+ properties: {
46434
+ ok: { type: 'boolean' },
46435
+ sdp_answer: {
46436
+ description:
46437
+ 'WebRTC SDP, limited to 64 KiB of UTF-8 data.',
46438
+ maxLength: 65_536,
46439
+ minLength: 1,
46440
+ type: 'string',
46441
+ },
46442
+ },
46443
+ required: ['sdp_answer', 'ok'],
46444
+ type: 'object',
46445
+ },
46446
+ },
46447
+ },
46448
+ description: 'OK',
46449
+ },
46450
+ '400': { description: 'Bad Request' },
46451
+ '401': { description: 'Unauthorized' },
46452
+ },
46453
+ security: [{ client_session: [] }],
46454
+ summary: '/cameras/live_views/offer',
46455
+ tags: [],
46456
+ 'x-fern-sdk-group-name': ['cameras', 'live_views'],
46457
+ 'x-fern-sdk-method-name': 'offer',
46458
+ 'x-response-key': null,
46459
+ 'x-title': 'Negotiate a Camera Live View',
46460
+ 'x-undocumented': 'Camera pilot; not yet for customer use.',
46461
+ },
46462
+ },
46463
+ '/cameras/live_views/stop': {
46464
+ post: {
46465
+ description:
46466
+ 'Stops a camera live view session owned by the current client session.',
46467
+ operationId: 'camerasLiveViewsStopPost',
46468
+ requestBody: {
46469
+ content: {
46470
+ 'application/json': {
46471
+ schema: {
46472
+ additionalProperties: false,
46473
+ properties: {
46474
+ camera_live_view_session_id: {
46475
+ format: 'uuid',
46476
+ type: 'string',
46477
+ },
46478
+ token: { maxLength: 512, minLength: 1, type: 'string' },
46479
+ },
46480
+ required: ['camera_live_view_session_id', 'token'],
46481
+ type: 'object',
46482
+ },
46483
+ },
46484
+ },
46485
+ },
46486
+ responses: {
46487
+ '200': {
46488
+ content: {
46489
+ 'application/json': {
46490
+ schema: {
46491
+ properties: { ok: { type: 'boolean' } },
46492
+ required: ['ok'],
46493
+ type: 'object',
46494
+ },
46495
+ },
46496
+ },
46497
+ description: 'OK',
46498
+ },
46499
+ '400': { description: 'Bad Request' },
46500
+ '401': { description: 'Unauthorized' },
46501
+ },
46502
+ security: [{ client_session: [] }],
46503
+ summary: '/cameras/live_views/stop',
46504
+ tags: [],
46505
+ 'x-fern-sdk-group-name': ['cameras', 'live_views'],
46506
+ 'x-fern-sdk-method-name': 'stop',
46507
+ 'x-response-key': null,
46508
+ 'x-title': 'Stop a Camera Live View Session',
46509
+ 'x-undocumented': 'Camera pilot; not yet for customer use.',
46510
+ },
46511
+ },
46306
46512
  '/client_sessions/create': {
46307
46513
  put: {
46308
46514
  description:
@@ -46928,6 +47134,7 @@ const openapi: OpenAPISpec = {
46928
47134
  'sifely',
46929
47135
  'thirty_three_lock',
46930
47136
  'ring',
47137
+ 'tapo',
46931
47138
  'ical',
46932
47139
  'lodgify',
46933
47140
  'hostaway',
@@ -50599,7 +50806,7 @@ const openapi: OpenAPISpec = {
50599
50806
  },
50600
50807
  {
50601
50808
  description: 'Device type for cameras.',
50602
- enum: ['ring_camera'],
50809
+ enum: ['ring_camera', 'tapo_camera'],
50603
50810
  type: 'string',
50604
50811
  },
50605
50812
  ],
@@ -50679,7 +50886,7 @@ const openapi: OpenAPISpec = {
50679
50886
  },
50680
50887
  {
50681
50888
  description: 'Device type for cameras.',
50682
- enum: ['ring_camera'],
50889
+ enum: ['ring_camera', 'tapo_camera'],
50683
50890
  type: 'string',
50684
50891
  },
50685
50892
  ],
@@ -50737,6 +50944,7 @@ const openapi: OpenAPISpec = {
50737
50944
  'tado',
50738
50945
  'ultraloq',
50739
50946
  'ring',
50947
+ 'tapo',
50740
50948
  'ical',
50741
50949
  'lodgify',
50742
50950
  'hostaway',
@@ -52899,7 +53107,7 @@ const openapi: OpenAPISpec = {
52899
53107
  },
52900
53108
  {
52901
53109
  description: 'Device type for cameras.',
52902
- enum: ['ring_camera'],
53110
+ enum: ['ring_camera', 'tapo_camera'],
52903
53111
  type: 'string',
52904
53112
  },
52905
53113
  ],
@@ -52979,7 +53187,7 @@ const openapi: OpenAPISpec = {
52979
53187
  },
52980
53188
  {
52981
53189
  description: 'Device type for cameras.',
52982
- enum: ['ring_camera'],
53190
+ enum: ['ring_camera', 'tapo_camera'],
52983
53191
  type: 'string',
52984
53192
  },
52985
53193
  ],
@@ -53037,6 +53245,7 @@ const openapi: OpenAPISpec = {
53037
53245
  'tado',
53038
53246
  'ultraloq',
53039
53247
  'ring',
53248
+ 'tapo',
53040
53249
  'ical',
53041
53250
  'lodgify',
53042
53251
  'hostaway',