@seamapi/types 1.714.0 → 1.715.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.
@@ -69914,20 +69914,6 @@ declare const _default: {
69914
69914
  description: string;
69915
69915
  type: string;
69916
69916
  };
69917
- is_offline_access_code: {
69918
- description: string;
69919
- type: string;
69920
- };
69921
- is_one_time_use: {
69922
- description: string;
69923
- type: string;
69924
- };
69925
- max_time_rounding: {
69926
- default: string;
69927
- description: string;
69928
- enum: string[];
69929
- type: string;
69930
- };
69931
69917
  name: {
69932
69918
  description: string;
69933
69919
  type: string;
@@ -69945,15 +69931,6 @@ declare const _default: {
69945
69931
  description: string;
69946
69932
  type: string;
69947
69933
  };
69948
- use_backup_access_code_pool: {
69949
- description: string;
69950
- type: string;
69951
- };
69952
- use_offline_access_code: {
69953
- deprecated: boolean;
69954
- type: string;
69955
- 'x-deprecated': string;
69956
- };
69957
69934
  };
69958
69935
  required: string[];
69959
69936
  type: string;
@@ -70075,20 +70052,6 @@ declare const _default: {
70075
70052
  description: string;
70076
70053
  type: string;
70077
70054
  };
70078
- is_offline_access_code: {
70079
- description: string;
70080
- type: string;
70081
- };
70082
- is_one_time_use: {
70083
- description: string;
70084
- type: string;
70085
- };
70086
- max_time_rounding: {
70087
- default: string;
70088
- description: string;
70089
- enum: string[];
70090
- type: string;
70091
- };
70092
70055
  name: {
70093
70056
  description: string;
70094
70057
  type: string;
@@ -70106,15 +70069,6 @@ declare const _default: {
70106
70069
  description: string;
70107
70070
  type: string;
70108
70071
  };
70109
- use_backup_access_code_pool: {
70110
- description: string;
70111
- type: string;
70112
- };
70113
- use_offline_access_code: {
70114
- deprecated: boolean;
70115
- type: string;
70116
- 'x-deprecated': string;
70117
- };
70118
70072
  };
70119
70073
  required: string[];
70120
70074
  type: string;
@@ -118772,7 +118726,7 @@ type Routes = {
118772
118726
  device_ids: string[];
118773
118727
  /** Desired behavior if any device cannot share a code. If `throw` (default), no access codes will be created if any device cannot share a code. If `create_random_code`, a random code will be created on devices that cannot share a code. */
118774
118728
  behavior_when_code_cannot_be_shared?: 'throw' | 'create_random_code';
118775
- /** Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length. */
118729
+ /** Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length. */
118776
118730
  preferred_code_length?: number | undefined;
118777
118731
  /** Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.
118778
118732
 
@@ -118791,21 +118745,10 @@ type Routes = {
118791
118745
  attempt_for_offline_device?: boolean;
118792
118746
  /** Indicates whether [native scheduling](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`. */
118793
118747
  prefer_native_scheduling?: boolean | undefined;
118794
- /** Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api/access_codes/pull_backup_access_code). */
118795
- use_backup_access_code_pool?: boolean | undefined;
118796
118748
  /** Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`. */
118797
118749
  allow_external_modification?: boolean | undefined;
118798
118750
  /** Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`. */
118799
118751
  is_external_modification_allowed?: boolean | undefined;
118800
- /**
118801
- * @deprecated Use `is_offline_access_code` instead.*/
118802
- use_offline_access_code?: boolean | undefined;
118803
- /** Indicates whether the access code is an [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes). */
118804
- is_offline_access_code?: boolean | undefined;
118805
- /** Indicates whether the [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) is a single-use access code. */
118806
- is_one_time_use?: boolean | undefined;
118807
- /** Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`. */
118808
- max_time_rounding?: '1hour' | '1day' | '1h' | '1d';
118809
118752
  };
118810
118753
  commonParams: {};
118811
118754
  formData: {};
package/dist/index.cjs CHANGED
@@ -30207,20 +30207,6 @@ var openapi_default = {
30207
30207
  description: "Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.",
30208
30208
  type: "boolean"
30209
30209
  },
30210
- is_offline_access_code: {
30211
- description: "Indicates whether the access code is an [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes).",
30212
- type: "boolean"
30213
- },
30214
- is_one_time_use: {
30215
- description: "Indicates whether the [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) is a single-use access code.",
30216
- type: "boolean"
30217
- },
30218
- max_time_rounding: {
30219
- default: "1hour",
30220
- description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
30221
- enum: ["1hour", "1day", "1h", "1d"],
30222
- type: "string"
30223
- },
30224
30210
  name: {
30225
30211
  description: "Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.\n\n Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.\n\n To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.\n\n To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).",
30226
30212
  type: "string"
@@ -30230,22 +30216,13 @@ var openapi_default = {
30230
30216
  type: "boolean"
30231
30217
  },
30232
30218
  preferred_code_length: {
30233
- description: "Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.",
30219
+ description: "Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length.",
30234
30220
  format: "float",
30235
30221
  type: "number"
30236
30222
  },
30237
30223
  starts_at: {
30238
30224
  description: "Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
30239
30225
  type: "string"
30240
- },
30241
- use_backup_access_code_pool: {
30242
- description: "Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api/access_codes/pull_backup_access_code).",
30243
- type: "boolean"
30244
- },
30245
- use_offline_access_code: {
30246
- deprecated: true,
30247
- type: "boolean",
30248
- "x-deprecated": "Use `is_offline_access_code` instead."
30249
30226
  }
30250
30227
  },
30251
30228
  required: ["device_ids"],
@@ -30333,20 +30310,6 @@ var openapi_default = {
30333
30310
  description: "Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.",
30334
30311
  type: "boolean"
30335
30312
  },
30336
- is_offline_access_code: {
30337
- description: "Indicates whether the access code is an [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes).",
30338
- type: "boolean"
30339
- },
30340
- is_one_time_use: {
30341
- description: "Indicates whether the [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) is a single-use access code.",
30342
- type: "boolean"
30343
- },
30344
- max_time_rounding: {
30345
- default: "1hour",
30346
- description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
30347
- enum: ["1hour", "1day", "1h", "1d"],
30348
- type: "string"
30349
- },
30350
30313
  name: {
30351
30314
  description: "Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.\n\n Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.\n\n To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.\n\n To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).",
30352
30315
  type: "string"
@@ -30356,22 +30319,13 @@ var openapi_default = {
30356
30319
  type: "boolean"
30357
30320
  },
30358
30321
  preferred_code_length: {
30359
- description: "Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.",
30322
+ description: "Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length.",
30360
30323
  format: "float",
30361
30324
  type: "number"
30362
30325
  },
30363
30326
  starts_at: {
30364
30327
  description: "Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
30365
30328
  type: "string"
30366
- },
30367
- use_backup_access_code_pool: {
30368
- description: "Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api/access_codes/pull_backup_access_code).",
30369
- type: "boolean"
30370
- },
30371
- use_offline_access_code: {
30372
- deprecated: true,
30373
- type: "boolean",
30374
- "x-deprecated": "Use `is_offline_access_code` instead."
30375
30329
  }
30376
30330
  },
30377
30331
  required: ["device_ids"],