@seamapi/types 1.965.0 → 1.967.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.
Files changed (36) hide show
  1. package/dist/connect.cjs +187 -18
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +537 -0
  4. package/dist/index.cjs +187 -18
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-credential.d.ts +10 -0
  7. package/lib/seam/connect/models/acs/acs-credential.js +4 -0
  8. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  9. package/lib/seam/connect/models/acs/acs-entrance.d.ts +5 -0
  10. package/lib/seam/connect/models/acs/acs-entrance.js +4 -0
  11. package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
  12. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +39 -0
  13. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +14 -0
  14. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +18 -0
  15. package/lib/seam/connect/models/action-attempts/scan-to-assign-credential.d.ts +7 -0
  16. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +7 -0
  17. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +7 -0
  18. package/lib/seam/connect/models/devices/device.d.ts +9 -0
  19. package/lib/seam/connect/models/devices/phone.d.ts +10 -0
  20. package/lib/seam/connect/models/devices/phone.js +8 -0
  21. package/lib/seam/connect/models/devices/phone.js.map +1 -1
  22. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +7 -0
  23. package/lib/seam/connect/models/phones/phone-session.d.ts +36 -0
  24. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +5 -0
  25. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +4 -0
  26. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  27. package/lib/seam/connect/openapi.js +180 -14
  28. package/lib/seam/connect/openapi.js.map +1 -1
  29. package/lib/seam/connect/route-types.d.ts +462 -0
  30. package/package.json +1 -1
  31. package/src/lib/seam/connect/models/acs/acs-credential.ts +4 -0
  32. package/src/lib/seam/connect/models/acs/acs-entrance.ts +4 -0
  33. package/src/lib/seam/connect/models/devices/phone.ts +8 -0
  34. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +4 -0
  35. package/src/lib/seam/connect/openapi.ts +196 -14
  36. package/src/lib/seam/connect/route-types.ts +462 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.965.0",
3
+ "version": "1.967.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -264,6 +264,10 @@ const common_acs_credential = z.object({
264
264
  z.object({
265
265
  error_code: z.string(),
266
266
  message: z.string(),
267
+ created_at: z
268
+ .string()
269
+ .datetime()
270
+ .describe('Date and time at which Seam created the error.'),
267
271
  }),
268
272
  )
269
273
  .describe(
@@ -180,6 +180,10 @@ export const acs_entrance = z
180
180
  .describe(
181
181
  'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
182
182
  ),
183
+ created_at: z
184
+ .string()
185
+ .datetime()
186
+ .describe('Date and time at which Seam created the error.'),
183
187
  }),
184
188
  )
185
189
  .describe(
@@ -41,6 +41,10 @@ export const phone = z.object({
41
41
  .string()
42
42
  .describe('Unique identifier of the type of error.'),
43
43
  message: z.string().describe('Detailed description of the error.'),
44
+ created_at: z
45
+ .string()
46
+ .datetime()
47
+ .describe('Date and time at which Seam created the error.'),
44
48
  }),
45
49
  )
46
50
  .describe('Errors associated with the phone.'),
@@ -51,6 +55,10 @@ export const phone = z.object({
51
55
  .string()
52
56
  .describe('Unique identifier of the type of warning.'),
53
57
  message: z.string().describe('Detailed description of the warning.'),
58
+ created_at: z
59
+ .string()
60
+ .datetime()
61
+ .describe('Date and time at which Seam created the warning.'),
54
62
  }),
55
63
  )
56
64
  .describe('Warnings associated with the phone.'),
@@ -74,6 +74,10 @@ export const thermostat_schedule = z.object({
74
74
  .describe(
75
75
  'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
76
76
  ),
77
+ created_at: z
78
+ .string()
79
+ .datetime()
80
+ .describe('Date and time at which Seam created the error.'),
77
81
  }),
78
82
  )
79
83
  .describe(
@@ -3373,10 +3373,15 @@ const openapi: OpenAPISpec = {
3373
3373
  'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
3374
3374
  items: {
3375
3375
  properties: {
3376
+ created_at: {
3377
+ description: 'Date and time at which Seam created the error.',
3378
+ format: 'date-time',
3379
+ type: 'string',
3380
+ },
3376
3381
  error_code: { type: 'string' },
3377
3382
  message: { type: 'string' },
3378
3383
  },
3379
- required: ['error_code', 'message'],
3384
+ required: ['error_code', 'message', 'created_at'],
3380
3385
  type: 'object',
3381
3386
  },
3382
3387
  type: 'array',
@@ -4005,6 +4010,11 @@ const openapi: OpenAPISpec = {
4005
4010
  'Errors associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).',
4006
4011
  items: {
4007
4012
  properties: {
4013
+ created_at: {
4014
+ description: 'Date and time at which Seam created the error.',
4015
+ format: 'date-time',
4016
+ type: 'string',
4017
+ },
4008
4018
  error_code: {
4009
4019
  description:
4010
4020
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -4016,7 +4026,7 @@ const openapi: OpenAPISpec = {
4016
4026
  type: 'string',
4017
4027
  },
4018
4028
  },
4019
- required: ['error_code', 'message'],
4029
+ required: ['error_code', 'message', 'created_at'],
4020
4030
  type: 'object',
4021
4031
  },
4022
4032
  type: 'array',
@@ -6260,10 +6270,16 @@ const openapi: OpenAPISpec = {
6260
6270
  'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
6261
6271
  items: {
6262
6272
  properties: {
6273
+ created_at: {
6274
+ description:
6275
+ 'Date and time at which Seam created the error.',
6276
+ format: 'date-time',
6277
+ type: 'string',
6278
+ },
6263
6279
  error_code: { type: 'string' },
6264
6280
  message: { type: 'string' },
6265
6281
  },
6266
- required: ['error_code', 'message'],
6282
+ required: ['error_code', 'message', 'created_at'],
6267
6283
  type: 'object',
6268
6284
  },
6269
6285
  type: 'array',
@@ -6725,10 +6741,16 @@ const openapi: OpenAPISpec = {
6725
6741
  'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
6726
6742
  items: {
6727
6743
  properties: {
6744
+ created_at: {
6745
+ description:
6746
+ 'Date and time at which Seam created the error.',
6747
+ format: 'date-time',
6748
+ type: 'string',
6749
+ },
6728
6750
  error_code: { type: 'string' },
6729
6751
  message: { type: 'string' },
6730
6752
  },
6731
- required: ['error_code', 'message'],
6753
+ required: ['error_code', 'message', 'created_at'],
6732
6754
  type: 'object',
6733
6755
  },
6734
6756
  type: 'array',
@@ -7441,10 +7463,16 @@ const openapi: OpenAPISpec = {
7441
7463
  'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
7442
7464
  items: {
7443
7465
  properties: {
7466
+ created_at: {
7467
+ description:
7468
+ 'Date and time at which Seam created the error.',
7469
+ format: 'date-time',
7470
+ type: 'string',
7471
+ },
7444
7472
  error_code: { type: 'string' },
7445
7473
  message: { type: 'string' },
7446
7474
  },
7447
- required: ['error_code', 'message'],
7475
+ required: ['error_code', 'message', 'created_at'],
7448
7476
  type: 'object',
7449
7477
  },
7450
7478
  type: 'array',
@@ -7903,10 +7931,16 @@ const openapi: OpenAPISpec = {
7903
7931
  'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
7904
7932
  items: {
7905
7933
  properties: {
7934
+ created_at: {
7935
+ description:
7936
+ 'Date and time at which Seam created the error.',
7937
+ format: 'date-time',
7938
+ type: 'string',
7939
+ },
7906
7940
  error_code: { type: 'string' },
7907
7941
  message: { type: 'string' },
7908
7942
  },
7909
- required: ['error_code', 'message'],
7943
+ required: ['error_code', 'message', 'created_at'],
7910
7944
  type: 'object',
7911
7945
  },
7912
7946
  type: 'array',
@@ -8653,10 +8687,16 @@ const openapi: OpenAPISpec = {
8653
8687
  'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
8654
8688
  items: {
8655
8689
  properties: {
8690
+ created_at: {
8691
+ description:
8692
+ 'Date and time at which Seam created the error.',
8693
+ format: 'date-time',
8694
+ type: 'string',
8695
+ },
8656
8696
  error_code: { type: 'string' },
8657
8697
  message: { type: 'string' },
8658
8698
  },
8659
- required: ['error_code', 'message'],
8699
+ required: ['error_code', 'message', 'created_at'],
8660
8700
  type: 'object',
8661
8701
  },
8662
8702
  type: 'array',
@@ -15401,6 +15441,12 @@ const openapi: OpenAPISpec = {
15401
15441
  'Errors associated with the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
15402
15442
  items: {
15403
15443
  properties: {
15444
+ created_at: {
15445
+ description:
15446
+ 'Date and time at which Seam created the error.',
15447
+ format: 'date-time',
15448
+ type: 'string',
15449
+ },
15404
15450
  error_code: {
15405
15451
  description:
15406
15452
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -15412,7 +15458,7 @@ const openapi: OpenAPISpec = {
15412
15458
  type: 'string',
15413
15459
  },
15414
15460
  },
15415
- required: ['error_code', 'message'],
15461
+ required: ['error_code', 'message', 'created_at'],
15416
15462
  type: 'object',
15417
15463
  },
15418
15464
  type: 'array',
@@ -27462,6 +27508,11 @@ const openapi: OpenAPISpec = {
27462
27508
  description: 'Errors associated with the phone.',
27463
27509
  items: {
27464
27510
  properties: {
27511
+ created_at: {
27512
+ description: 'Date and time at which Seam created the error.',
27513
+ format: 'date-time',
27514
+ type: 'string',
27515
+ },
27465
27516
  error_code: {
27466
27517
  description: 'Unique identifier of the type of error.',
27467
27518
  type: 'string',
@@ -27471,7 +27522,7 @@ const openapi: OpenAPISpec = {
27471
27522
  type: 'string',
27472
27523
  },
27473
27524
  },
27474
- required: ['error_code', 'message'],
27525
+ required: ['error_code', 'message', 'created_at'],
27475
27526
  type: 'object',
27476
27527
  },
27477
27528
  type: 'array',
@@ -27533,6 +27584,12 @@ const openapi: OpenAPISpec = {
27533
27584
  description: 'Warnings associated with the phone.',
27534
27585
  items: {
27535
27586
  properties: {
27587
+ created_at: {
27588
+ description:
27589
+ 'Date and time at which Seam created the warning.',
27590
+ format: 'date-time',
27591
+ type: 'string',
27592
+ },
27536
27593
  message: {
27537
27594
  description: 'Detailed description of the warning.',
27538
27595
  type: 'string',
@@ -27542,7 +27599,7 @@ const openapi: OpenAPISpec = {
27542
27599
  type: 'string',
27543
27600
  },
27544
27601
  },
27545
- required: ['warning_code', 'message'],
27602
+ required: ['warning_code', 'message', 'created_at'],
27546
27603
  type: 'object',
27547
27604
  },
27548
27605
  type: 'array',
@@ -27822,6 +27879,12 @@ const openapi: OpenAPISpec = {
27822
27879
  'Errors associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).',
27823
27880
  items: {
27824
27881
  properties: {
27882
+ created_at: {
27883
+ description:
27884
+ 'Date and time at which Seam created the error.',
27885
+ format: 'date-time',
27886
+ type: 'string',
27887
+ },
27825
27888
  error_code: {
27826
27889
  description:
27827
27890
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -27833,7 +27896,11 @@ const openapi: OpenAPISpec = {
27833
27896
  type: 'string',
27834
27897
  },
27835
27898
  },
27836
- required: ['error_code', 'message'],
27899
+ required: [
27900
+ 'error_code',
27901
+ 'message',
27902
+ 'created_at',
27903
+ ],
27837
27904
  type: 'object',
27838
27905
  },
27839
27906
  type: 'array',
@@ -28289,10 +28356,16 @@ const openapi: OpenAPISpec = {
28289
28356
  'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
28290
28357
  items: {
28291
28358
  properties: {
28359
+ created_at: {
28360
+ description:
28361
+ 'Date and time at which Seam created the error.',
28362
+ format: 'date-time',
28363
+ type: 'string',
28364
+ },
28292
28365
  error_code: { type: 'string' },
28293
28366
  message: { type: 'string' },
28294
28367
  },
28295
- required: ['error_code', 'message'],
28368
+ required: ['error_code', 'message', 'created_at'],
28296
28369
  type: 'object',
28297
28370
  },
28298
28371
  type: 'array',
@@ -29182,6 +29255,11 @@ const openapi: OpenAPISpec = {
29182
29255
  'Errors associated with the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
29183
29256
  items: {
29184
29257
  properties: {
29258
+ created_at: {
29259
+ description: 'Date and time at which Seam created the error.',
29260
+ format: 'date-time',
29261
+ type: 'string',
29262
+ },
29185
29263
  error_code: {
29186
29264
  description:
29187
29265
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -29193,7 +29271,7 @@ const openapi: OpenAPISpec = {
29193
29271
  type: 'string',
29194
29272
  },
29195
29273
  },
29196
- required: ['error_code', 'message'],
29274
+ required: ['error_code', 'message', 'created_at'],
29197
29275
  type: 'object',
29198
29276
  },
29199
29277
  type: 'array',
@@ -31220,10 +31298,15 @@ const openapi: OpenAPISpec = {
31220
31298
  'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
31221
31299
  items: {
31222
31300
  properties: {
31301
+ created_at: {
31302
+ description: 'Date and time at which Seam created the error.',
31303
+ format: 'date-time',
31304
+ type: 'string',
31305
+ },
31223
31306
  error_code: { type: 'string' },
31224
31307
  message: { type: 'string' },
31225
31308
  },
31226
- required: ['error_code', 'message'],
31309
+ required: ['error_code', 'message', 'created_at'],
31227
31310
  type: 'object',
31228
31311
  },
31229
31312
  type: 'array',
@@ -34473,6 +34556,11 @@ const openapi: OpenAPISpec = {
34473
34556
  scheme: 'bearer',
34474
34557
  type: 'http',
34475
34558
  },
34559
+ internal_service_agent: {
34560
+ bearerFormat: 'Internal Service Agent Key',
34561
+ scheme: 'bearer',
34562
+ type: 'http',
34563
+ },
34476
34564
  pat_with_workspace: {
34477
34565
  bearerFormat: 'API Token',
34478
34566
  scheme: 'bearer',
@@ -34494,6 +34582,11 @@ const openapi: OpenAPISpec = {
34494
34582
  type: 'apiKey',
34495
34583
  },
34496
34584
  seam_workspace: { in: 'header', name: 'seam-workspace', type: 'apiKey' },
34585
+ support_read_only_token: {
34586
+ bearerFormat: 'Support Read-Only Token',
34587
+ scheme: 'bearer',
34588
+ type: 'http',
34589
+ },
34497
34590
  },
34498
34591
  },
34499
34592
  info: { title: 'Seam Connect', version: '1.0.0' },
@@ -80554,6 +80647,95 @@ const openapi: OpenAPISpec = {
80554
80647
  'x-undocumented': 'Seam Instant Key only.',
80555
80648
  },
80556
80649
  },
80650
+ '/seam/mcp/v1/create_ro_token': {
80651
+ post: {
80652
+ description:
80653
+ 'Mints a short-lived, read-only token bound to a single workspace. Used by the Seam support agent to inspect a customer workspace via read-only public API endpoints.',
80654
+ operationId: 'seamMcpV1CreateRoTokenPost',
80655
+ requestBody: {
80656
+ content: {
80657
+ 'application/json': {
80658
+ schema: {
80659
+ properties: {
80660
+ created_by: {
80661
+ description:
80662
+ 'Identity of the automation minting the token (e.g. an agent session ID), recorded for auditing.',
80663
+ type: 'string',
80664
+ },
80665
+ workspace_id: {
80666
+ description:
80667
+ 'ID of the workspace the token will be bound to.',
80668
+ format: 'uuid',
80669
+ type: 'string',
80670
+ },
80671
+ },
80672
+ required: ['workspace_id'],
80673
+ type: 'object',
80674
+ },
80675
+ },
80676
+ },
80677
+ },
80678
+ responses: {
80679
+ 200: {
80680
+ content: {
80681
+ 'application/json': {
80682
+ schema: {
80683
+ properties: {
80684
+ ok: { type: 'boolean' },
80685
+ support_read_only_token: {
80686
+ properties: {
80687
+ created_at: {
80688
+ description:
80689
+ 'Date and time at which the token was created.',
80690
+ type: 'string',
80691
+ },
80692
+ expires_at: {
80693
+ description:
80694
+ 'Date and time at which the token expires. Tokens live for one hour.',
80695
+ type: 'string',
80696
+ },
80697
+ token: {
80698
+ description:
80699
+ 'Support read-only token to use as a Bearer token.',
80700
+ type: 'string',
80701
+ },
80702
+ workspace_id: {
80703
+ description:
80704
+ 'ID of the workspace the token is bound to.',
80705
+ format: 'uuid',
80706
+ type: 'string',
80707
+ },
80708
+ },
80709
+ required: [
80710
+ 'token',
80711
+ 'workspace_id',
80712
+ 'created_at',
80713
+ 'expires_at',
80714
+ ],
80715
+ type: 'object',
80716
+ },
80717
+ },
80718
+ required: ['support_read_only_token', 'ok'],
80719
+ type: 'object',
80720
+ },
80721
+ },
80722
+ },
80723
+ description: 'OK',
80724
+ },
80725
+ 400: { description: 'Bad Request' },
80726
+ 401: { description: 'Unauthorized' },
80727
+ },
80728
+ security: [{ internal_service_agent: [] }],
80729
+ summary: '/seam/mcp/v1/create_ro_token',
80730
+ tags: [],
80731
+ 'x-fern-sdk-group-name': ['seam', 'mcp', 'v1'],
80732
+ 'x-fern-sdk-method-name': 'create_ro_token',
80733
+ 'x-fern-sdk-return-value': 'support_read_only_token',
80734
+ 'x-response-key': 'support_read_only_token',
80735
+ 'x-title': 'Create Support Read-Only Token',
80736
+ 'x-undocumented': 'Seam support agent only.',
80737
+ },
80738
+ },
80557
80739
  '/seam/mobile_sdk/v1/acs/credentials/list': {
80558
80740
  get: {
80559
80741
  description: