@seamapi/types 1.302.1 → 1.302.2

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.
@@ -17955,6 +17955,7 @@ declare const _default: {
17955
17955
  };
17956
17956
  '/access_codes/pull_backup_access_code': {
17957
17957
  post: {
17958
+ description: string;
17958
17959
  operationId: string;
17959
17960
  requestBody: {
17960
17961
  content: {
@@ -17978,6 +17979,9 @@ declare const _default: {
17978
17979
  'application/json': {
17979
17980
  schema: {
17980
17981
  properties: {
17982
+ access_code: {
17983
+ $ref: string;
17984
+ };
17981
17985
  backup_access_code: {
17982
17986
  $ref: string;
17983
17987
  };
@@ -35264,6 +35268,67 @@ interface Routes {
35264
35268
  /** Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection. */
35265
35269
  is_offline_access_code: boolean;
35266
35270
  };
35271
+ access_code: {
35272
+ /** Unique identifier for a group of access codes that share the same code. */
35273
+ common_code_key: string | null;
35274
+ /** Indicates whether the code is set on the device according to a preconfigured schedule. */
35275
+ is_scheduled_on_device?: boolean | undefined;
35276
+ /** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
35277
+ type: 'time_bound' | 'ongoing';
35278
+ /** Indicates whether the access code is waiting for a code assignment. */
35279
+ is_waiting_for_code_assignment?: boolean | undefined;
35280
+ /** Unique identifier for the access code. */
35281
+ access_code_id: string;
35282
+ /** Unique identifier for the device associated with the access code. */
35283
+ device_id: string;
35284
+ /** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
35285
+ name: string | null;
35286
+ /** Code used for access. Typically, a numeric or alphanumeric string. */
35287
+ code: string | null;
35288
+ /** Date and time at which the access code was created. */
35289
+ created_at: string;
35290
+ /** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
35291
+ errors: Array<{
35292
+ message: string;
35293
+ is_access_code_error: true;
35294
+ error_code: string;
35295
+ } | {
35296
+ message: string;
35297
+ is_device_error: true;
35298
+ error_code: string;
35299
+ } | {
35300
+ message: string;
35301
+ is_connected_account_error: true;
35302
+ error_code: string;
35303
+ }>;
35304
+ /** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
35305
+ warnings: Array<{
35306
+ message: string;
35307
+ warning_code: string;
35308
+ }>;
35309
+ /** Indicates whether Seam manages the access code. */
35310
+ is_managed: true;
35311
+ /** Date and time at which the time-bound access code becomes active. */
35312
+ starts_at?: (string | null) | undefined;
35313
+ /** Date and time after which the time-bound access code becomes inactive. */
35314
+ ends_at?: (string | null) | undefined;
35315
+ /**
35316
+ Current status of the access code within the operational lifecycle. Values are "setting," a transitional phase that indicates that the code is being configured or activated; "set", which indicates that the code is active and operational; "unset," which indicates a deactivated or unused state, either before activation or after deliberate deactivation; "removing," which indicates a transitional period in which the code is being deleted or made inactive; and "unknown," which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting.
35317
+ */
35318
+ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
35319
+ /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
35320
+ is_backup_access_code_available: boolean;
35321
+ /** Indicates whether the access code is a backup code. */
35322
+ is_backup?: boolean | undefined;
35323
+ /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */
35324
+ pulled_backup_access_code_id?: (string | null) | undefined;
35325
+ /** Indicates whether changes to the access code from external sources are permitted. */
35326
+ is_external_modification_allowed: boolean;
35327
+ /** Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use. */
35328
+ is_one_time_use: boolean;
35329
+ /** Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection. */
35330
+ is_offline_access_code: boolean;
35331
+ };
35267
35332
  };
35268
35333
  };
35269
35334
  '/access_codes/simulate/create_unmanaged_access_code': {
@@ -5499,6 +5499,7 @@ declare const _default: {
5499
5499
  };
5500
5500
  '/access_codes/pull_backup_access_code': {
5501
5501
  post: {
5502
+ description: string;
5502
5503
  operationId: string;
5503
5504
  requestBody: {
5504
5505
  content: {
@@ -5522,6 +5523,9 @@ declare const _default: {
5522
5523
  'application/json': {
5523
5524
  schema: {
5524
5525
  properties: {
5526
+ access_code: {
5527
+ $ref: string;
5528
+ };
5525
5529
  backup_access_code: {
5526
5530
  $ref: string;
5527
5531
  };
@@ -6755,6 +6755,7 @@ export default {
6755
6755
  },
6756
6756
  '/access_codes/pull_backup_access_code': {
6757
6757
  post: {
6758
+ description: 'Retrieves a backup access code for an access code. See also [Managing Backup Access Codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/backup-access-codes).',
6758
6759
  operationId: 'accessCodesPullBackupAccessCodePost',
6759
6760
  requestBody: {
6760
6761
  content: {
@@ -6775,12 +6776,13 @@ export default {
6775
6776
  'application/json': {
6776
6777
  schema: {
6777
6778
  properties: {
6779
+ access_code: { $ref: '#/components/schemas/access_code' },
6778
6780
  backup_access_code: {
6779
6781
  $ref: '#/components/schemas/access_code',
6780
6782
  },
6781
6783
  ok: { type: 'boolean' },
6782
6784
  },
6783
- required: ['backup_access_code', 'ok'],
6785
+ required: ['backup_access_code', 'access_code', 'ok'],
6784
6786
  type: 'object',
6785
6787
  },
6786
6788
  },
@@ -6800,8 +6802,8 @@ export default {
6800
6802
  tags: ['/access_codes'],
6801
6803
  'x-fern-sdk-group-name': ['access_codes'],
6802
6804
  'x-fern-sdk-method-name': 'pull_backup_access_code',
6803
- 'x-fern-sdk-return-value': 'backup_access_code',
6804
- 'x-response-key': 'backup_access_code',
6805
+ 'x-fern-sdk-return-value': 'access_code',
6806
+ 'x-response-key': 'access_code',
6805
6807
  },
6806
6808
  },
6807
6809
  '/access_codes/simulate/create_unmanaged_access_code': {