@seamapi/types 1.693.0 → 1.695.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.
@@ -32661,6 +32661,8 @@ export type Routes = {
32661
32661
  event_type: 'lock.locked';
32662
32662
  /** ID of the access code that was used to lock the device. */
32663
32663
  access_code_id?: string | undefined;
32664
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
32665
+ access_code_is_managed?: boolean | undefined;
32664
32666
  /** ID of the action attempt associated with the lock action. */
32665
32667
  action_attempt_id?: string | undefined;
32666
32668
  /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -32689,6 +32691,8 @@ export type Routes = {
32689
32691
  event_type: 'lock.unlocked';
32690
32692
  /** ID of the access code that was used to unlock the affected device. */
32691
32693
  access_code_id?: string | undefined;
32694
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
32695
+ access_code_is_managed?: boolean | undefined;
32692
32696
  /** ID of the action attempt associated with the unlock action. */
32693
32697
  action_attempt_id?: string | undefined;
32694
32698
  /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -34655,6 +34659,8 @@ export type Routes = {
34655
34659
  event_type: 'lock.locked';
34656
34660
  /** ID of the access code that was used to lock the device. */
34657
34661
  access_code_id?: string | undefined;
34662
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
34663
+ access_code_is_managed?: boolean | undefined;
34658
34664
  /** ID of the action attempt associated with the lock action. */
34659
34665
  action_attempt_id?: string | undefined;
34660
34666
  /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -34683,6 +34689,8 @@ export type Routes = {
34683
34689
  event_type: 'lock.unlocked';
34684
34690
  /** ID of the access code that was used to unlock the affected device. */
34685
34691
  access_code_id?: string | undefined;
34692
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
34693
+ access_code_is_managed?: boolean | undefined;
34686
34694
  /** ID of the action attempt associated with the unlock action. */
34687
34695
  action_attempt_id?: string | undefined;
34688
34696
  /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -52884,6 +52892,37 @@ export type Routes = {
52884
52892
  };
52885
52893
  maxDuration: undefined;
52886
52894
  };
52895
+ '/seam/customer/v1/customers/open_portal': {
52896
+ route: '/seam/customer/v1/customers/open_portal';
52897
+ method: 'POST';
52898
+ queryParams: {};
52899
+ jsonBody: {};
52900
+ commonParams: {
52901
+ /** The customer key to open a portal for. */
52902
+ customer_key: string;
52903
+ };
52904
+ formData: {};
52905
+ jsonResponse: {
52906
+ /** Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.
52907
+
52908
+ With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
52909
+
52910
+ Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
52911
+ magic_link: {
52912
+ /** URL for the magic link. */
52913
+ url: string;
52914
+ /** Customer key for the magic link. */
52915
+ customer_key: string;
52916
+ /** Date and time at which the magic link expires. */
52917
+ expires_at: string;
52918
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the magic link. */
52919
+ workspace_id: string;
52920
+ /** Date and time at which the magic link was created. */
52921
+ created_at: string;
52922
+ };
52923
+ };
52924
+ maxDuration: undefined;
52925
+ };
52887
52926
  '/seam/customer/v1/events/list': {
52888
52927
  route: '/seam/customer/v1/events/list';
52889
52928
  method: 'GET' | 'POST';
@@ -54508,6 +54547,8 @@ export type Routes = {
54508
54547
  event_type: 'lock.locked';
54509
54548
  /** ID of the access code that was used to lock the device. */
54510
54549
  access_code_id?: string | undefined;
54550
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
54551
+ access_code_is_managed?: boolean | undefined;
54511
54552
  /** ID of the action attempt associated with the lock action. */
54512
54553
  action_attempt_id?: string | undefined;
54513
54554
  /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -54536,6 +54577,8 @@ export type Routes = {
54536
54577
  event_type: 'lock.unlocked';
54537
54578
  /** ID of the access code that was used to unlock the affected device. */
54538
54579
  access_code_id?: string | undefined;
54580
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
54581
+ access_code_is_managed?: boolean | undefined;
54539
54582
  /** ID of the action attempt associated with the unlock action. */
54540
54583
  action_attempt_id?: string | undefined;
54541
54584
  /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -83231,6 +83274,8 @@ export type Routes = {
83231
83274
  event_type: 'lock.locked';
83232
83275
  /** ID of the access code that was used to lock the device. */
83233
83276
  access_code_id?: string | undefined;
83277
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
83278
+ access_code_is_managed?: boolean | undefined;
83234
83279
  /** ID of the action attempt associated with the lock action. */
83235
83280
  action_attempt_id?: string | undefined;
83236
83281
  /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -83259,6 +83304,8 @@ export type Routes = {
83259
83304
  event_type: 'lock.unlocked';
83260
83305
  /** ID of the access code that was used to unlock the affected device. */
83261
83306
  access_code_id?: string | undefined;
83307
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
83308
+ access_code_is_managed?: boolean | undefined;
83262
83309
  /** ID of the action attempt associated with the unlock action. */
83263
83310
  action_attempt_id?: string | undefined;
83264
83311
  /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.693.0",
3
+ "version": "1.695.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -377,6 +377,12 @@ export const lock_locked_event = device_event.extend({
377
377
  .uuid()
378
378
  .optional()
379
379
  .describe('ID of the access code that was used to lock the device.'),
380
+ access_code_is_managed: z
381
+ .boolean()
382
+ .optional()
383
+ .describe(
384
+ 'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
385
+ ),
380
386
  action_attempt_id: z
381
387
  .string()
382
388
  .uuid()
@@ -403,6 +409,12 @@ export const lock_unlocked_event = device_event.extend({
403
409
  .describe(
404
410
  'ID of the access code that was used to unlock the affected device.',
405
411
  ),
412
+ access_code_is_managed: z
413
+ .boolean()
414
+ .optional()
415
+ .describe(
416
+ 'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
417
+ ),
406
418
  action_attempt_id: z
407
419
  .string()
408
420
  .uuid()
@@ -18809,6 +18809,11 @@ export default {
18809
18809
  format: 'uuid',
18810
18810
  type: 'string',
18811
18811
  },
18812
+ access_code_is_managed: {
18813
+ description:
18814
+ 'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
18815
+ type: 'boolean',
18816
+ },
18812
18817
  action_attempt_id: {
18813
18818
  description:
18814
18819
  'ID of the action attempt associated with the lock action.',
@@ -18894,6 +18899,11 @@ export default {
18894
18899
  format: 'uuid',
18895
18900
  type: 'string',
18896
18901
  },
18902
+ access_code_is_managed: {
18903
+ description:
18904
+ 'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.',
18905
+ type: 'boolean',
18906
+ },
18897
18907
  acs_entrance_id: {
18898
18908
  description:
18899
18909
  '\n undocumented: Unreleased.\n ---\n ID of the ACS entrance associated with the unlock event.\n ',
@@ -54927,6 +54937,61 @@ export default {
54927
54937
  'x-undocumented': 'Internal endpoint for Console.',
54928
54938
  },
54929
54939
  },
54940
+ '/seam/customer/v1/customers/open_portal': {
54941
+ post: {
54942
+ description:
54943
+ 'Opens an existing customer portal or creates a new one if the previous portal has expired.\nReturns an error if no portal was ever created for this customer.',
54944
+ operationId: 'seamCustomerV1CustomersOpenPortalPost',
54945
+ requestBody: {
54946
+ content: {
54947
+ 'application/json': {
54948
+ schema: {
54949
+ properties: {
54950
+ customer_key: {
54951
+ description: 'The customer key to open a portal for.',
54952
+ type: 'string',
54953
+ },
54954
+ },
54955
+ required: ['customer_key'],
54956
+ type: 'object',
54957
+ },
54958
+ },
54959
+ },
54960
+ },
54961
+ responses: {
54962
+ 200: {
54963
+ content: {
54964
+ 'application/json': {
54965
+ schema: {
54966
+ properties: {
54967
+ magic_link: { $ref: '#/components/schemas/magic_link' },
54968
+ ok: { type: 'boolean' },
54969
+ },
54970
+ required: ['magic_link', 'ok'],
54971
+ type: 'object',
54972
+ },
54973
+ },
54974
+ },
54975
+ description: 'OK',
54976
+ },
54977
+ 400: { description: 'Bad Request' },
54978
+ 401: { description: 'Unauthorized' },
54979
+ },
54980
+ security: [
54981
+ { pat_with_workspace: [] },
54982
+ { console_session_with_workspace: [] },
54983
+ { api_key: [] },
54984
+ ],
54985
+ summary: '/seam/customer/v1/customers/open_portal',
54986
+ tags: [],
54987
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'],
54988
+ 'x-fern-sdk-method-name': 'open_portal',
54989
+ 'x-fern-sdk-return-value': 'magic_link',
54990
+ 'x-response-key': 'magic_link',
54991
+ 'x-title': 'Open Customer Portal',
54992
+ 'x-undocumented': 'Internal endpoint for Console.',
54993
+ },
54994
+ },
54930
54995
  '/seam/customer/v1/events/list': {
54931
54996
  get: {
54932
54997
  description:
@@ -38895,6 +38895,8 @@ export type Routes = {
38895
38895
  event_type: 'lock.locked'
38896
38896
  /** ID of the access code that was used to lock the device. */
38897
38897
  access_code_id?: string | undefined
38898
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
38899
+ access_code_is_managed?: boolean | undefined
38898
38900
  /** ID of the action attempt associated with the lock action. */
38899
38901
  action_attempt_id?: string | undefined
38900
38902
  /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -38933,6 +38935,8 @@ export type Routes = {
38933
38935
  event_type: 'lock.unlocked'
38934
38936
  /** ID of the access code that was used to unlock the affected device. */
38935
38937
  access_code_id?: string | undefined
38938
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
38939
+ access_code_is_managed?: boolean | undefined
38936
38940
  /** ID of the action attempt associated with the unlock action. */
38937
38941
  action_attempt_id?: string | undefined
38938
38942
  /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -41423,6 +41427,8 @@ export type Routes = {
41423
41427
  event_type: 'lock.locked'
41424
41428
  /** ID of the access code that was used to lock the device. */
41425
41429
  access_code_id?: string | undefined
41430
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
41431
+ access_code_is_managed?: boolean | undefined
41426
41432
  /** ID of the action attempt associated with the lock action. */
41427
41433
  action_attempt_id?: string | undefined
41428
41434
  /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -41456,6 +41462,8 @@ export type Routes = {
41456
41462
  event_type: 'lock.unlocked'
41457
41463
  /** ID of the access code that was used to unlock the affected device. */
41458
41464
  access_code_id?: string | undefined
41465
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
41466
+ access_code_is_managed?: boolean | undefined
41459
41467
  /** ID of the action attempt associated with the unlock action. */
41460
41468
  action_attempt_id?: string | undefined
41461
41469
  /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -63230,6 +63238,37 @@ export type Routes = {
63230
63238
  }
63231
63239
  maxDuration: undefined
63232
63240
  }
63241
+ '/seam/customer/v1/customers/open_portal': {
63242
+ route: '/seam/customer/v1/customers/open_portal'
63243
+ method: 'POST'
63244
+ queryParams: {}
63245
+ jsonBody: {}
63246
+ commonParams: {
63247
+ /** The customer key to open a portal for. */
63248
+ customer_key: string
63249
+ }
63250
+ formData: {}
63251
+ jsonResponse: {
63252
+ /** Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.
63253
+
63254
+ With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
63255
+
63256
+ Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
63257
+ magic_link: {
63258
+ /** URL for the magic link. */
63259
+ url: string
63260
+ /** Customer key for the magic link. */
63261
+ customer_key: string
63262
+ /** Date and time at which the magic link expires. */
63263
+ expires_at: string
63264
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the magic link. */
63265
+ workspace_id: string
63266
+ /** Date and time at which the magic link was created. */
63267
+ created_at: string
63268
+ }
63269
+ }
63270
+ maxDuration: undefined
63271
+ }
63233
63272
  '/seam/customer/v1/events/list': {
63234
63273
  route: '/seam/customer/v1/events/list'
63235
63274
  method: 'GET' | 'POST'
@@ -65319,6 +65358,8 @@ export type Routes = {
65319
65358
  event_type: 'lock.locked'
65320
65359
  /** ID of the access code that was used to lock the device. */
65321
65360
  access_code_id?: string | undefined
65361
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
65362
+ access_code_is_managed?: boolean | undefined
65322
65363
  /** ID of the action attempt associated with the lock action. */
65323
65364
  action_attempt_id?: string | undefined
65324
65365
  /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -65352,6 +65393,8 @@ export type Routes = {
65352
65393
  event_type: 'lock.unlocked'
65353
65394
  /** ID of the access code that was used to unlock the affected device. */
65354
65395
  access_code_id?: string | undefined
65396
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
65397
+ access_code_is_managed?: boolean | undefined
65355
65398
  /** ID of the action attempt associated with the unlock action. */
65356
65399
  action_attempt_id?: string | undefined
65357
65400
  /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
@@ -99378,6 +99421,8 @@ export type Routes = {
99378
99421
  event_type: 'lock.locked'
99379
99422
  /** ID of the access code that was used to lock the device. */
99380
99423
  access_code_id?: string | undefined
99424
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
99425
+ access_code_is_managed?: boolean | undefined
99381
99426
  /** ID of the action attempt associated with the lock action. */
99382
99427
  action_attempt_id?: string | undefined
99383
99428
  /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
@@ -99416,6 +99461,8 @@ export type Routes = {
99416
99461
  event_type: 'lock.unlocked'
99417
99462
  /** ID of the access code that was used to unlock the affected device. */
99418
99463
  access_code_id?: string | undefined
99464
+ /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
99465
+ access_code_is_managed?: boolean | undefined
99419
99466
  /** ID of the action attempt associated with the unlock action. */
99420
99467
  action_attempt_id?: string | undefined
99421
99468
  /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */