@seamapi/types 1.302.0 → 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.
@@ -2083,6 +2083,67 @@ export interface Routes {
2083
2083
  /** 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. */
2084
2084
  is_offline_access_code: boolean;
2085
2085
  };
2086
+ access_code: {
2087
+ /** Unique identifier for a group of access codes that share the same code. */
2088
+ common_code_key: string | null;
2089
+ /** Indicates whether the code is set on the device according to a preconfigured schedule. */
2090
+ is_scheduled_on_device?: boolean | undefined;
2091
+ /** 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. */
2092
+ type: 'time_bound' | 'ongoing';
2093
+ /** Indicates whether the access code is waiting for a code assignment. */
2094
+ is_waiting_for_code_assignment?: boolean | undefined;
2095
+ /** Unique identifier for the access code. */
2096
+ access_code_id: string;
2097
+ /** Unique identifier for the device associated with the access code. */
2098
+ device_id: string;
2099
+ /** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
2100
+ name: string | null;
2101
+ /** Code used for access. Typically, a numeric or alphanumeric string. */
2102
+ code: string | null;
2103
+ /** Date and time at which the access code was created. */
2104
+ created_at: string;
2105
+ /** 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. */
2106
+ errors: Array<{
2107
+ message: string;
2108
+ is_access_code_error: true;
2109
+ error_code: string;
2110
+ } | {
2111
+ message: string;
2112
+ is_device_error: true;
2113
+ error_code: string;
2114
+ } | {
2115
+ message: string;
2116
+ is_connected_account_error: true;
2117
+ error_code: string;
2118
+ }>;
2119
+ /** 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. */
2120
+ warnings: Array<{
2121
+ message: string;
2122
+ warning_code: string;
2123
+ }>;
2124
+ /** Indicates whether Seam manages the access code. */
2125
+ is_managed: true;
2126
+ /** Date and time at which the time-bound access code becomes active. */
2127
+ starts_at?: (string | null) | undefined;
2128
+ /** Date and time after which the time-bound access code becomes inactive. */
2129
+ ends_at?: (string | null) | undefined;
2130
+ /**
2131
+ 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.
2132
+ */
2133
+ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
2134
+ /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
2135
+ is_backup_access_code_available: boolean;
2136
+ /** Indicates whether the access code is a backup code. */
2137
+ is_backup?: boolean | undefined;
2138
+ /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */
2139
+ pulled_backup_access_code_id?: (string | null) | undefined;
2140
+ /** Indicates whether changes to the access code from external sources are permitted. */
2141
+ is_external_modification_allowed: boolean;
2142
+ /** Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use. */
2143
+ is_one_time_use: boolean;
2144
+ /** 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. */
2145
+ is_offline_access_code: boolean;
2146
+ };
2086
2147
  };
2087
2148
  };
2088
2149
  '/access_codes/simulate/create_unmanaged_access_code': {
@@ -4498,12 +4559,13 @@ export interface Routes {
4498
4559
  allowed_acs_entrance_ids?: string[];
4499
4560
  /** Visionline-specific metadata for the new credential. */
4500
4561
  visionline_metadata?: {
4501
- /** DEPRECATED: DO NOT USE */
4562
+ /**
4563
+ * @deprecated Read-only endpoint references moved to `endpoint`. */
4502
4564
  assa_abloy_credential_service_mobile_endpoint_id?: string | undefined;
4503
4565
  card_format?: ('TLCode' | 'rfid48') | undefined;
4504
4566
  card_function_type?: 'guest' | 'staff';
4505
4567
  /**
4506
- * @deprecated use override. */
4568
+ * @deprecated Use `override` instead. */
4507
4569
  is_override_key?: boolean | undefined;
4508
4570
  override?: boolean | undefined;
4509
4571
  auto_join?: boolean | undefined;
@@ -10801,7 +10863,7 @@ export interface Routes {
10801
10863
  nest_metadata?: {
10802
10864
  nest_device_id: string;
10803
10865
  device_name: string;
10804
- custom_name: string;
10866
+ device_custom_name: string;
10805
10867
  display_name?: string | undefined;
10806
10868
  } | undefined;
10807
10869
  ecobee_metadata?: {
@@ -11351,7 +11413,7 @@ export interface Routes {
11351
11413
  nest_metadata?: {
11352
11414
  nest_device_id: string;
11353
11415
  device_name: string;
11354
- custom_name: string;
11416
+ device_custom_name: string;
11355
11417
  display_name?: string | undefined;
11356
11418
  } | undefined;
11357
11419
  ecobee_metadata?: {
@@ -12304,7 +12366,7 @@ export interface Routes {
12304
12366
  nest_metadata?: {
12305
12367
  nest_device_id: string;
12306
12368
  device_name: string;
12307
- custom_name: string;
12369
+ device_custom_name: string;
12308
12370
  display_name?: string | undefined;
12309
12371
  } | undefined;
12310
12372
  ecobee_metadata?: {
@@ -12817,7 +12879,7 @@ export interface Routes {
12817
12879
  nest_metadata?: {
12818
12880
  nest_device_id: string;
12819
12881
  device_name: string;
12820
- custom_name: string;
12882
+ device_custom_name: string;
12821
12883
  display_name?: string | undefined;
12822
12884
  } | undefined;
12823
12885
  ecobee_metadata?: {
@@ -13367,7 +13429,7 @@ export interface Routes {
13367
13429
  nest_metadata?: {
13368
13430
  nest_device_id: string;
13369
13431
  device_name: string;
13370
- custom_name: string;
13432
+ device_custom_name: string;
13371
13433
  display_name?: string | undefined;
13372
13434
  } | undefined;
13373
13435
  ecobee_metadata?: {
@@ -13880,7 +13942,7 @@ export interface Routes {
13880
13942
  nest_metadata?: {
13881
13943
  nest_device_id: string;
13882
13944
  device_name: string;
13883
- custom_name: string;
13945
+ device_custom_name: string;
13884
13946
  display_name?: string | undefined;
13885
13947
  } | undefined;
13886
13948
  ecobee_metadata?: {
@@ -16146,7 +16208,7 @@ export interface Routes {
16146
16208
  nest_metadata?: {
16147
16209
  nest_device_id: string;
16148
16210
  device_name: string;
16149
- custom_name: string;
16211
+ device_custom_name: string;
16150
16212
  display_name?: string | undefined;
16151
16213
  } | undefined;
16152
16214
  ecobee_metadata?: {
@@ -16659,7 +16721,7 @@ export interface Routes {
16659
16721
  nest_metadata?: {
16660
16722
  nest_device_id: string;
16661
16723
  device_name: string;
16662
- custom_name: string;
16724
+ device_custom_name: string;
16663
16725
  display_name?: string | undefined;
16664
16726
  } | undefined;
16665
16727
  ecobee_metadata?: {
@@ -21689,7 +21751,7 @@ export interface Routes {
21689
21751
  nest_metadata?: {
21690
21752
  nest_device_id: string;
21691
21753
  device_name: string;
21692
- custom_name: string;
21754
+ device_custom_name: string;
21693
21755
  display_name?: string | undefined;
21694
21756
  } | undefined;
21695
21757
  ecobee_metadata?: {
@@ -23937,7 +23999,7 @@ export interface Routes {
23937
23999
  nest_metadata?: {
23938
24000
  nest_device_id: string;
23939
24001
  device_name: string;
23940
- custom_name: string;
24002
+ device_custom_name: string;
23941
24003
  display_name?: string | undefined;
23942
24004
  } | undefined;
23943
24005
  ecobee_metadata?: {
@@ -24450,7 +24512,7 @@ export interface Routes {
24450
24512
  nest_metadata?: {
24451
24513
  nest_device_id: string;
24452
24514
  device_name: string;
24453
- custom_name: string;
24515
+ device_custom_name: string;
24454
24516
  display_name?: string | undefined;
24455
24517
  } | undefined;
24456
24518
  ecobee_metadata?: {
@@ -27984,7 +28046,7 @@ export interface Routes {
27984
28046
  nest_metadata?: {
27985
28047
  nest_device_id: string;
27986
28048
  device_name: string;
27987
- custom_name: string;
28049
+ device_custom_name: string;
27988
28050
  display_name?: string | undefined;
27989
28051
  } | undefined;
27990
28052
  ecobee_metadata?: {
@@ -28499,7 +28561,7 @@ export interface Routes {
28499
28561
  nest_metadata?: {
28500
28562
  nest_device_id: string;
28501
28563
  device_name: string;
28502
- custom_name: string;
28564
+ device_custom_name: string;
28503
28565
  display_name?: string | undefined;
28504
28566
  } | undefined;
28505
28567
  ecobee_metadata?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.302.0",
3
+ "version": "1.302.2",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -197,7 +197,7 @@ export const device_metadata = z
197
197
  nest_metadata: z.object({
198
198
  nest_device_id: z.string(),
199
199
  device_name: z.string(), // set by Google
200
- custom_name: z.string(), // set by device owner
200
+ device_custom_name: z.string(), // set by device owner
201
201
  display_name: z.string().optional(),
202
202
  }),
203
203
 
@@ -86,7 +86,6 @@ export const PROVIDER_CATEGORY_MAP = {
86
86
  'visionline',
87
87
  'assa_abloy_credential_service',
88
88
  'latch',
89
- 'akiles',
90
89
  ],
91
90
 
92
91
  consumer_smartlocks: [
@@ -4898,7 +4898,7 @@ export default {
4898
4898
  },
4899
4899
  nest_metadata: {
4900
4900
  properties: {
4901
- custom_name: { type: 'string' },
4901
+ device_custom_name: { type: 'string' },
4902
4902
  device_name: { type: 'string' },
4903
4903
  display_name: { type: 'string' },
4904
4904
  nest_device_id: { type: 'string' },
@@ -4906,7 +4906,7 @@ export default {
4906
4906
  required: [
4907
4907
  'nest_device_id',
4908
4908
  'device_name',
4909
- 'custom_name',
4909
+ 'device_custom_name',
4910
4910
  ],
4911
4911
  type: 'object',
4912
4912
  },
@@ -7153,6 +7153,8 @@ export default {
7153
7153
  },
7154
7154
  '/access_codes/pull_backup_access_code': {
7155
7155
  post: {
7156
+ description:
7157
+ '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).',
7156
7158
  operationId: 'accessCodesPullBackupAccessCodePost',
7157
7159
  requestBody: {
7158
7160
  content: {
@@ -7173,12 +7175,13 @@ export default {
7173
7175
  'application/json': {
7174
7176
  schema: {
7175
7177
  properties: {
7178
+ access_code: { $ref: '#/components/schemas/access_code' },
7176
7179
  backup_access_code: {
7177
7180
  $ref: '#/components/schemas/access_code',
7178
7181
  },
7179
7182
  ok: { type: 'boolean' },
7180
7183
  },
7181
- required: ['backup_access_code', 'ok'],
7184
+ required: ['backup_access_code', 'access_code', 'ok'],
7182
7185
  type: 'object',
7183
7186
  },
7184
7187
  },
@@ -7198,8 +7201,8 @@ export default {
7198
7201
  tags: ['/access_codes'],
7199
7202
  'x-fern-sdk-group-name': ['access_codes'],
7200
7203
  'x-fern-sdk-method-name': 'pull_backup_access_code',
7201
- 'x-fern-sdk-return-value': 'backup_access_code',
7202
- 'x-response-key': 'backup_access_code',
7204
+ 'x-fern-sdk-return-value': 'access_code',
7205
+ 'x-response-key': 'access_code',
7203
7206
  },
7204
7207
  },
7205
7208
  '/access_codes/simulate/create_unmanaged_access_code': {
@@ -8934,9 +8937,13 @@ export default {
8934
8937
  'Visionline-specific metadata for the new credential.',
8935
8938
  properties: {
8936
8939
  assa_abloy_credential_service_mobile_endpoint_id: {
8937
- description: 'DEPRECATED: DO NOT USE',
8940
+ deprecated: true,
8938
8941
  format: 'uuid',
8939
8942
  type: 'string',
8943
+ 'x-deprecated':
8944
+ 'Read-only endpoint references moved to `endpoint`.',
8945
+ 'x-undocumented':
8946
+ 'Deprecated. Read-only endpoint references moved to `endpoint`.',
8940
8947
  },
8941
8948
  auto_join: { type: 'boolean' },
8942
8949
  card_format: {
@@ -8951,7 +8958,8 @@ export default {
8951
8958
  is_override_key: {
8952
8959
  deprecated: true,
8953
8960
  type: 'boolean',
8954
- 'x-deprecated': 'use override.',
8961
+ 'x-deprecated': 'Use `override` instead.',
8962
+ 'x-undocumented': 'Use `override` instead.',
8955
8963
  },
8956
8964
  joiner_acs_credential_ids: {
8957
8965
  items: { format: 'uuid', type: 'string' },
@@ -2395,6 +2395,71 @@ export interface Routes {
2395
2395
  /** 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. */
2396
2396
  is_offline_access_code: boolean
2397
2397
  }
2398
+ access_code: {
2399
+ /** Unique identifier for a group of access codes that share the same code. */
2400
+ common_code_key: string | null
2401
+ /** Indicates whether the code is set on the device according to a preconfigured schedule. */
2402
+ is_scheduled_on_device?: boolean | undefined
2403
+ /** 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. */
2404
+ type: 'time_bound' | 'ongoing'
2405
+ /** Indicates whether the access code is waiting for a code assignment. */
2406
+ is_waiting_for_code_assignment?: boolean | undefined
2407
+ /** Unique identifier for the access code. */
2408
+ access_code_id: string
2409
+ /** Unique identifier for the device associated with the access code. */
2410
+ device_id: string
2411
+ /** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
2412
+ name: string | null
2413
+ /** Code used for access. Typically, a numeric or alphanumeric string. */
2414
+ code: string | null
2415
+ /** Date and time at which the access code was created. */
2416
+ created_at: string
2417
+ /** 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. */
2418
+ errors: Array<
2419
+ | {
2420
+ message: string
2421
+ is_access_code_error: true
2422
+ error_code: string
2423
+ }
2424
+ | {
2425
+ message: string
2426
+ is_device_error: true
2427
+ error_code: string
2428
+ }
2429
+ | {
2430
+ message: string
2431
+ is_connected_account_error: true
2432
+ error_code: string
2433
+ }
2434
+ >
2435
+ /** 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. */
2436
+ warnings: Array<{
2437
+ message: string
2438
+ warning_code: string
2439
+ }>
2440
+ /** Indicates whether Seam manages the access code. */
2441
+ is_managed: true
2442
+ /** Date and time at which the time-bound access code becomes active. */
2443
+ starts_at?: (string | null) | undefined
2444
+ /** Date and time after which the time-bound access code becomes inactive. */
2445
+ ends_at?: (string | null) | undefined
2446
+ /**
2447
+ 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.
2448
+ */
2449
+ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'
2450
+ /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
2451
+ is_backup_access_code_available: boolean
2452
+ /** Indicates whether the access code is a backup code. */
2453
+ is_backup?: boolean | undefined
2454
+ /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */
2455
+ pulled_backup_access_code_id?: (string | null) | undefined
2456
+ /** Indicates whether changes to the access code from external sources are permitted. */
2457
+ is_external_modification_allowed: boolean
2458
+ /** Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use. */
2459
+ is_one_time_use: boolean
2460
+ /** 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. */
2461
+ is_offline_access_code: boolean
2462
+ }
2398
2463
  }
2399
2464
  }
2400
2465
  '/access_codes/simulate/create_unmanaged_access_code': {
@@ -5203,14 +5268,15 @@ export interface Routes {
5203
5268
  /** Visionline-specific metadata for the new credential. */
5204
5269
  visionline_metadata?:
5205
5270
  | {
5206
- /** DEPRECATED: DO NOT USE */
5271
+ /**
5272
+ * @deprecated Read-only endpoint references moved to `endpoint`. */
5207
5273
  assa_abloy_credential_service_mobile_endpoint_id?:
5208
5274
  | string
5209
5275
  | undefined
5210
5276
  card_format?: ('TLCode' | 'rfid48') | undefined
5211
5277
  card_function_type?: 'guest' | 'staff'
5212
5278
  /**
5213
- * @deprecated use override. */
5279
+ * @deprecated Use `override` instead. */
5214
5280
  is_override_key?: boolean | undefined
5215
5281
  override?: boolean | undefined
5216
5282
  auto_join?: boolean | undefined
@@ -12711,7 +12777,7 @@ export interface Routes {
12711
12777
  | {
12712
12778
  nest_device_id: string
12713
12779
  device_name: string
12714
- custom_name: string
12780
+ device_custom_name: string
12715
12781
  display_name?: string | undefined
12716
12782
  }
12717
12783
  | undefined
@@ -13587,7 +13653,7 @@ export interface Routes {
13587
13653
  | {
13588
13654
  nest_device_id: string
13589
13655
  device_name: string
13590
- custom_name: string
13656
+ device_custom_name: string
13591
13657
  display_name?: string | undefined
13592
13658
  }
13593
13659
  | undefined
@@ -15177,7 +15243,7 @@ export interface Routes {
15177
15243
  | {
15178
15244
  nest_device_id: string
15179
15245
  device_name: string
15180
- custom_name: string
15246
+ device_custom_name: string
15181
15247
  display_name?: string | undefined
15182
15248
  }
15183
15249
  | undefined
@@ -15872,7 +15938,7 @@ export interface Routes {
15872
15938
  | {
15873
15939
  nest_device_id: string
15874
15940
  device_name: string
15875
- custom_name: string
15941
+ device_custom_name: string
15876
15942
  display_name?: string | undefined
15877
15943
  }
15878
15944
  | undefined
@@ -16748,7 +16814,7 @@ export interface Routes {
16748
16814
  | {
16749
16815
  nest_device_id: string
16750
16816
  device_name: string
16751
- custom_name: string
16817
+ device_custom_name: string
16752
16818
  display_name?: string | undefined
16753
16819
  }
16754
16820
  | undefined
@@ -17443,7 +17509,7 @@ export interface Routes {
17443
17509
  | {
17444
17510
  nest_device_id: string
17445
17511
  device_name: string
17446
- custom_name: string
17512
+ device_custom_name: string
17447
17513
  display_name?: string | undefined
17448
17514
  }
17449
17515
  | undefined
@@ -20327,7 +20393,7 @@ export interface Routes {
20327
20393
  | {
20328
20394
  nest_device_id: string
20329
20395
  device_name: string
20330
- custom_name: string
20396
+ device_custom_name: string
20331
20397
  display_name?: string | undefined
20332
20398
  }
20333
20399
  | undefined
@@ -21022,7 +21088,7 @@ export interface Routes {
21022
21088
  | {
21023
21089
  nest_device_id: string
21024
21090
  device_name: string
21025
- custom_name: string
21091
+ device_custom_name: string
21026
21092
  display_name?: string | undefined
21027
21093
  }
21028
21094
  | undefined
@@ -26988,7 +27054,7 @@ export interface Routes {
26988
27054
  | {
26989
27055
  nest_device_id: string
26990
27056
  device_name: string
26991
- custom_name: string
27057
+ device_custom_name: string
26992
27058
  display_name?: string | undefined
26993
27059
  }
26994
27060
  | undefined
@@ -29854,7 +29920,7 @@ export interface Routes {
29854
29920
  | {
29855
29921
  nest_device_id: string
29856
29922
  device_name: string
29857
- custom_name: string
29923
+ device_custom_name: string
29858
29924
  display_name?: string | undefined
29859
29925
  }
29860
29926
  | undefined
@@ -30549,7 +30615,7 @@ export interface Routes {
30549
30615
  | {
30550
30616
  nest_device_id: string
30551
30617
  device_name: string
30552
- custom_name: string
30618
+ device_custom_name: string
30553
30619
  display_name?: string | undefined
30554
30620
  }
30555
30621
  | undefined
@@ -34709,7 +34775,7 @@ export interface Routes {
34709
34775
  | {
34710
34776
  nest_device_id: string
34711
34777
  device_name: string
34712
- custom_name: string
34778
+ device_custom_name: string
34713
34779
  display_name?: string | undefined
34714
34780
  }
34715
34781
  | undefined
@@ -35406,7 +35472,7 @@ export interface Routes {
35406
35472
  | {
35407
35473
  nest_device_id: string
35408
35474
  device_name: string
35409
- custom_name: string
35475
+ device_custom_name: string
35410
35476
  display_name?: string | undefined
35411
35477
  }
35412
35478
  | undefined