@seamapi/types 1.35.0 → 1.36.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 (69) hide show
  1. package/dist/connect.cjs +38 -151
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +85 -240
  4. package/lib/seam/connect/openapi.d.ts +59 -199
  5. package/lib/seam/connect/openapi.js +37 -150
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +26 -41
  8. package/lib/seam/connect/unstable/model-types.d.ts +1 -1
  9. package/lib/seam/connect/unstable/models/access-codes/index.d.ts +2 -0
  10. package/lib/seam/connect/unstable/models/access-codes/index.js +3 -0
  11. package/lib/seam/connect/unstable/models/access-codes/index.js.map +1 -0
  12. package/lib/seam/connect/unstable/models/access-codes/managed-access-code.d.ts +63 -0
  13. package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js +23 -0
  14. package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js.map +1 -0
  15. package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.d.ts +42 -0
  16. package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.js +21 -0
  17. package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.js.map +1 -0
  18. package/lib/seam/connect/unstable/models/acs/system.d.ts +7 -7
  19. package/lib/seam/connect/unstable/models/acs/system.js +5 -1
  20. package/lib/seam/connect/unstable/models/acs/system.js.map +1 -1
  21. package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +2 -2
  22. package/lib/seam/connect/unstable/models/capability-properties/index.js +2 -2
  23. package/lib/seam/connect/unstable/models/capability-properties/index.js.map +1 -1
  24. package/lib/seam/connect/unstable/models/devices/capabilities-supported.js.map +1 -0
  25. package/lib/seam/connect/unstable/models/{device-metadata.d.ts → devices/device-metadata.d.ts} +1 -0
  26. package/lib/seam/connect/unstable/models/devices/device-metadata.js.map +1 -0
  27. package/lib/seam/connect/unstable/models/devices/device-type.js.map +1 -0
  28. package/lib/seam/connect/unstable/models/devices/index.d.ts +5 -0
  29. package/lib/seam/connect/unstable/models/devices/index.js +6 -0
  30. package/lib/seam/connect/unstable/models/devices/index.js.map +1 -0
  31. package/lib/seam/connect/unstable/models/{managed-device.js → devices/managed-device.js} +1 -1
  32. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -0
  33. package/lib/seam/connect/unstable/models/devices/unmanaged-device.js.map +1 -0
  34. package/lib/seam/connect/unstable/models/index.d.ts +2 -4
  35. package/lib/seam/connect/unstable/models/index.js +2 -4
  36. package/lib/seam/connect/unstable/models/index.js.map +1 -1
  37. package/lib/seam/connect/unstable/schemas.d.ts +1 -1
  38. package/lib/seam/connect/unstable/schemas.js +1 -1
  39. package/lib/seam/connect/unstable/schemas.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/lib/seam/connect/openapi.ts +37 -150
  42. package/src/lib/seam/connect/route-types.ts +32 -49
  43. package/src/lib/seam/connect/unstable/model-types.ts +3 -0
  44. package/src/lib/seam/connect/unstable/models/access-codes/index.ts +2 -0
  45. package/src/lib/seam/connect/unstable/models/access-codes/managed-access-code.ts +25 -0
  46. package/src/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.ts +24 -0
  47. package/src/lib/seam/connect/unstable/models/acs/system.ts +5 -1
  48. package/src/lib/seam/connect/unstable/models/capability-properties/index.ts +2 -0
  49. package/src/lib/seam/connect/unstable/models/{device-metadata.ts → devices/device-metadata.ts} +2 -0
  50. package/src/lib/seam/connect/unstable/models/devices/index.ts +5 -0
  51. package/src/lib/seam/connect/unstable/models/{managed-device.ts → devices/managed-device.ts} +1 -1
  52. package/src/lib/seam/connect/unstable/models/index.ts +2 -4
  53. package/src/lib/seam/connect/unstable/schemas.ts +4 -0
  54. package/lib/seam/connect/unstable/models/capabilities-supported.js.map +0 -1
  55. package/lib/seam/connect/unstable/models/device-metadata.js.map +0 -1
  56. package/lib/seam/connect/unstable/models/device-type.js.map +0 -1
  57. package/lib/seam/connect/unstable/models/managed-device.js.map +0 -1
  58. package/lib/seam/connect/unstable/models/unmanaged-device.js.map +0 -1
  59. /package/lib/seam/connect/unstable/models/{capabilities-supported.d.ts → devices/capabilities-supported.d.ts} +0 -0
  60. /package/lib/seam/connect/unstable/models/{capabilities-supported.js → devices/capabilities-supported.js} +0 -0
  61. /package/lib/seam/connect/unstable/models/{device-metadata.js → devices/device-metadata.js} +0 -0
  62. /package/lib/seam/connect/unstable/models/{device-type.d.ts → devices/device-type.d.ts} +0 -0
  63. /package/lib/seam/connect/unstable/models/{device-type.js → devices/device-type.js} +0 -0
  64. /package/lib/seam/connect/unstable/models/{managed-device.d.ts → devices/managed-device.d.ts} +0 -0
  65. /package/lib/seam/connect/unstable/models/{unmanaged-device.d.ts → devices/unmanaged-device.d.ts} +0 -0
  66. /package/lib/seam/connect/unstable/models/{unmanaged-device.js → devices/unmanaged-device.js} +0 -0
  67. /package/src/lib/seam/connect/unstable/models/{capabilities-supported.ts → devices/capabilities-supported.ts} +0 -0
  68. /package/src/lib/seam/connect/unstable/models/{device-type.ts → devices/device-type.ts} +0 -0
  69. /package/src/lib/seam/connect/unstable/models/{unmanaged-device.ts → devices/unmanaged-device.ts} +0 -0
@@ -25,6 +25,7 @@ declare const _default: {
25
25
  };
26
26
  ends_at: {
27
27
  format: string;
28
+ nullable: boolean;
28
29
  type: string;
29
30
  };
30
31
  errors: {
@@ -43,12 +44,6 @@ declare const _default: {
43
44
  enum: boolean[];
44
45
  type: string;
45
46
  };
46
- is_offline_access_code: {
47
- type: string;
48
- };
49
- is_one_time_use: {
50
- type: string;
51
- };
52
47
  is_scheduled_on_device: {
53
48
  type: string;
54
49
  };
@@ -66,6 +61,7 @@ declare const _default: {
66
61
  };
67
62
  starts_at: {
68
63
  format: string;
64
+ nullable: boolean;
69
65
  type: string;
70
66
  };
71
67
  status: {
@@ -1908,6 +1904,60 @@ declare const _default: {
1908
1904
  required: string[];
1909
1905
  type: string;
1910
1906
  };
1907
+ unmanaged_access_code: {
1908
+ properties: {
1909
+ access_code_id: {
1910
+ format: string;
1911
+ type: string;
1912
+ };
1913
+ code: {
1914
+ nullable: boolean;
1915
+ type: string;
1916
+ };
1917
+ created_at: {
1918
+ format: string;
1919
+ type: string;
1920
+ };
1921
+ device_id: {
1922
+ format: string;
1923
+ type: string;
1924
+ };
1925
+ ends_at: {
1926
+ format: string;
1927
+ nullable: boolean;
1928
+ type: string;
1929
+ };
1930
+ errors: {
1931
+ nullable: boolean;
1932
+ };
1933
+ is_managed: {
1934
+ enum: boolean[];
1935
+ type: string;
1936
+ };
1937
+ name: {
1938
+ nullable: boolean;
1939
+ type: string;
1940
+ };
1941
+ starts_at: {
1942
+ format: string;
1943
+ nullable: boolean;
1944
+ type: string;
1945
+ };
1946
+ status: {
1947
+ enum: string[];
1948
+ type: string;
1949
+ };
1950
+ type: {
1951
+ enum: string[];
1952
+ type: string;
1953
+ };
1954
+ warnings: {
1955
+ nullable: boolean;
1956
+ };
1957
+ };
1958
+ required: string[];
1959
+ type: string;
1960
+ };
1911
1961
  unmanaged_device: {
1912
1962
  properties: {
1913
1963
  capabilities_supported: {
@@ -2815,95 +2865,7 @@ declare const _default: {
2815
2865
  schema: {
2816
2866
  properties: {
2817
2867
  access_code: {
2818
- oneOf: ({
2819
- properties: {
2820
- access_code_id: {
2821
- format: string;
2822
- type: string;
2823
- };
2824
- code: {
2825
- nullable: boolean;
2826
- type: string;
2827
- };
2828
- created_at: {
2829
- oneOf: ({
2830
- type: string;
2831
- format?: never;
2832
- } | {
2833
- format: string;
2834
- type: string;
2835
- })[];
2836
- };
2837
- ends_at: {
2838
- format: string;
2839
- nullable: boolean;
2840
- type: string;
2841
- };
2842
- is_managed: {
2843
- enum: boolean[];
2844
- type: string;
2845
- };
2846
- starts_at: {
2847
- format: string;
2848
- nullable: boolean;
2849
- type: string;
2850
- };
2851
- status: {
2852
- enum: string[];
2853
- type: string;
2854
- };
2855
- type: {
2856
- enum: string[];
2857
- type: string;
2858
- };
2859
- };
2860
- required: string[];
2861
- type: string;
2862
- } | {
2863
- properties: {
2864
- access_code_id: {
2865
- format: string;
2866
- type: string;
2867
- };
2868
- code: {
2869
- nullable: boolean;
2870
- type: string;
2871
- };
2872
- created_at: {
2873
- oneOf: ({
2874
- type: string;
2875
- format?: never;
2876
- } | {
2877
- format: string;
2878
- type: string;
2879
- })[];
2880
- };
2881
- ends_at: {
2882
- nullable: boolean;
2883
- type: string;
2884
- format?: never;
2885
- };
2886
- is_managed: {
2887
- enum: boolean[];
2888
- type: string;
2889
- };
2890
- starts_at: {
2891
- nullable: boolean;
2892
- type: string;
2893
- format?: never;
2894
- };
2895
- status: {
2896
- enum: string[];
2897
- type: string;
2898
- };
2899
- type: {
2900
- enum: string[];
2901
- type: string;
2902
- };
2903
- };
2904
- required: string[];
2905
- type: string;
2906
- })[];
2868
+ $ref: string;
2907
2869
  };
2908
2870
  ok: {
2909
2871
  type: string;
@@ -3204,58 +3166,7 @@ declare const _default: {
3204
3166
  schema: {
3205
3167
  properties: {
3206
3168
  access_code: {
3207
- properties: {
3208
- access_code_id: {
3209
- format: string;
3210
- type: string;
3211
- };
3212
- code: {
3213
- nullable: boolean;
3214
- type: string;
3215
- };
3216
- created_at: {
3217
- format: string;
3218
- type: string;
3219
- };
3220
- device_id: {
3221
- format: string;
3222
- type: string;
3223
- };
3224
- ends_at: {
3225
- format: string;
3226
- nullable: boolean;
3227
- type: string;
3228
- };
3229
- errors: {
3230
- nullable: boolean;
3231
- };
3232
- is_managed: {
3233
- enum: boolean[];
3234
- type: string;
3235
- };
3236
- name: {
3237
- nullable: boolean;
3238
- type: string;
3239
- };
3240
- starts_at: {
3241
- format: string;
3242
- nullable: boolean;
3243
- type: string;
3244
- };
3245
- status: {
3246
- enum: string[];
3247
- type: string;
3248
- };
3249
- type: {
3250
- enum: string[];
3251
- type: string;
3252
- };
3253
- warnings: {
3254
- nullable: boolean;
3255
- };
3256
- };
3257
- required: string[];
3258
- type: string;
3169
+ $ref: string;
3259
3170
  };
3260
3171
  ok: {
3261
3172
  type: string;
@@ -3328,58 +3239,7 @@ declare const _default: {
3328
3239
  properties: {
3329
3240
  access_codes: {
3330
3241
  items: {
3331
- properties: {
3332
- access_code_id: {
3333
- format: string;
3334
- type: string;
3335
- };
3336
- code: {
3337
- nullable: boolean;
3338
- type: string;
3339
- };
3340
- created_at: {
3341
- format: string;
3342
- type: string;
3343
- };
3344
- device_id: {
3345
- format: string;
3346
- type: string;
3347
- };
3348
- ends_at: {
3349
- format: string;
3350
- nullable: boolean;
3351
- type: string;
3352
- };
3353
- errors: {
3354
- nullable: boolean;
3355
- };
3356
- is_managed: {
3357
- enum: boolean[];
3358
- type: string;
3359
- };
3360
- name: {
3361
- nullable: boolean;
3362
- type: string;
3363
- };
3364
- starts_at: {
3365
- format: string;
3366
- nullable: boolean;
3367
- type: string;
3368
- };
3369
- status: {
3370
- enum: string[];
3371
- type: string;
3372
- };
3373
- type: {
3374
- enum: string[];
3375
- type: string;
3376
- };
3377
- warnings: {
3378
- nullable: boolean;
3379
- };
3380
- };
3381
- required: string[];
3382
- type: string;
3242
+ $ref: string;
3383
3243
  };
3384
3244
  type: string;
3385
3245
  };
@@ -8,14 +8,12 @@ export default {
8
8
  common_code_key: { nullable: true, type: 'string' },
9
9
  created_at: { format: 'date-time', type: 'string' },
10
10
  device_id: { format: 'uuid', type: 'string' },
11
- ends_at: { format: 'date-time', type: 'string' },
11
+ ends_at: { format: 'date-time', nullable: true, type: 'string' },
12
12
  errors: { nullable: true },
13
13
  is_backup: { type: 'boolean' },
14
14
  is_backup_access_code_available: { type: 'boolean' },
15
15
  is_external_modification_allowed: { type: 'boolean' },
16
16
  is_managed: { enum: [true], type: 'boolean' },
17
- is_offline_access_code: { type: 'boolean' },
18
- is_one_time_use: { type: 'boolean' },
19
17
  is_scheduled_on_device: { type: 'boolean' },
20
18
  is_waiting_for_code_assignment: { type: 'boolean' },
21
19
  name: { nullable: true, type: 'string' },
@@ -24,7 +22,7 @@ export default {
24
22
  nullable: true,
25
23
  type: 'string',
26
24
  },
27
- starts_at: { format: 'date-time', type: 'string' },
25
+ starts_at: { format: 'date-time', nullable: true, type: 'string' },
28
26
  status: {
29
27
  enum: ['setting', 'set', 'unset', 'removing', 'unknown'],
30
28
  type: 'string',
@@ -44,8 +42,6 @@ export default {
44
42
  'status',
45
43
  'is_backup_access_code_available',
46
44
  'is_external_modification_allowed',
47
- 'is_one_time_use',
48
- 'is_offline_access_code',
49
45
  ],
50
46
  type: 'object',
51
47
  },
@@ -99,12 +95,15 @@ export default {
99
95
  acs_system_id: { format: 'uuid', type: 'string' },
100
96
  connected_account_ids: { items: { type: 'string' }, type: 'array' },
101
97
  created_at: { format: 'date-time', type: 'string' },
102
- external_type: { enum: ['pti_site', 'alta_org'], type: 'string' },
98
+ external_type: {
99
+ enum: ['pti_site', 'alta_org', 'brivo_system'],
100
+ type: 'string',
101
+ },
103
102
  external_type_display_name: { type: 'string' },
104
103
  name: { type: 'string' },
105
104
  system_type: {
106
105
  description: 'deprecated: use external_type',
107
- enum: ['pti_site', 'alta_org'],
106
+ enum: ['pti_site', 'alta_org', 'brivo_system'],
108
107
  type: 'string',
109
108
  },
110
109
  system_type_display_name: {
@@ -1340,6 +1339,33 @@ export default {
1340
1339
  required: ['service', 'status', 'description'],
1341
1340
  type: 'object',
1342
1341
  },
1342
+ unmanaged_access_code: {
1343
+ properties: {
1344
+ access_code_id: { format: 'uuid', type: 'string' },
1345
+ code: { nullable: true, type: 'string' },
1346
+ created_at: { format: 'date-time', type: 'string' },
1347
+ device_id: { format: 'uuid', type: 'string' },
1348
+ ends_at: { format: 'date-time', nullable: true, type: 'string' },
1349
+ errors: { nullable: true },
1350
+ is_managed: { enum: [false], type: 'boolean' },
1351
+ name: { nullable: true, type: 'string' },
1352
+ starts_at: { format: 'date-time', nullable: true, type: 'string' },
1353
+ status: { enum: ['set'], type: 'string' },
1354
+ type: { enum: ['time_bound', 'ongoing'], type: 'string' },
1355
+ warnings: { nullable: true },
1356
+ },
1357
+ required: [
1358
+ 'type',
1359
+ 'access_code_id',
1360
+ 'device_id',
1361
+ 'name',
1362
+ 'code',
1363
+ 'created_at',
1364
+ 'is_managed',
1365
+ 'status',
1366
+ ],
1367
+ type: 'object',
1368
+ },
1343
1369
  unmanaged_device: {
1344
1370
  properties: {
1345
1371
  capabilities_supported: {
@@ -2000,72 +2026,7 @@ export default {
2000
2026
  schema: {
2001
2027
  properties: {
2002
2028
  access_code: {
2003
- oneOf: [
2004
- {
2005
- properties: {
2006
- access_code_id: { format: 'uuid', type: 'string' },
2007
- code: { nullable: true, type: 'string' },
2008
- created_at: {
2009
- oneOf: [
2010
- { type: 'string' },
2011
- { format: 'date-time', type: 'string' },
2012
- ],
2013
- },
2014
- ends_at: {
2015
- format: 'null',
2016
- nullable: true,
2017
- type: 'string',
2018
- },
2019
- is_managed: { enum: [false], type: 'boolean' },
2020
- starts_at: {
2021
- format: 'null',
2022
- nullable: true,
2023
- type: 'string',
2024
- },
2025
- status: { enum: ['set'], type: 'string' },
2026
- type: { enum: ['ongoing'], type: 'string' },
2027
- },
2028
- required: [
2029
- 'access_code_id',
2030
- 'code',
2031
- 'status',
2032
- 'created_at',
2033
- 'is_managed',
2034
- 'type',
2035
- 'starts_at',
2036
- 'ends_at',
2037
- ],
2038
- type: 'object',
2039
- },
2040
- {
2041
- properties: {
2042
- access_code_id: { format: 'uuid', type: 'string' },
2043
- code: { nullable: true, type: 'string' },
2044
- created_at: {
2045
- oneOf: [
2046
- { type: 'string' },
2047
- { format: 'date-time', type: 'string' },
2048
- ],
2049
- },
2050
- ends_at: { nullable: true, type: 'string' },
2051
- is_managed: { enum: [false], type: 'boolean' },
2052
- starts_at: { nullable: true, type: 'string' },
2053
- status: { enum: ['set'], type: 'string' },
2054
- type: { enum: ['time_bound'], type: 'string' },
2055
- },
2056
- required: [
2057
- 'access_code_id',
2058
- 'code',
2059
- 'status',
2060
- 'created_at',
2061
- 'is_managed',
2062
- 'type',
2063
- 'starts_at',
2064
- 'ends_at',
2065
- ],
2066
- type: 'object',
2067
- },
2068
- ],
2029
+ $ref: '#/components/schemas/unmanaged_access_code',
2069
2030
  },
2070
2031
  ok: { type: 'boolean' },
2071
2032
  },
@@ -2256,44 +2217,7 @@ export default {
2256
2217
  schema: {
2257
2218
  properties: {
2258
2219
  access_code: {
2259
- properties: {
2260
- access_code_id: { format: 'uuid', type: 'string' },
2261
- code: { nullable: true, type: 'string' },
2262
- created_at: { format: 'date-time', type: 'string' },
2263
- device_id: { format: 'uuid', type: 'string' },
2264
- ends_at: {
2265
- format: 'date-time',
2266
- nullable: true,
2267
- type: 'string',
2268
- },
2269
- errors: { nullable: true },
2270
- is_managed: { enum: [false], type: 'boolean' },
2271
- name: { nullable: true, type: 'string' },
2272
- starts_at: {
2273
- format: 'date-time',
2274
- nullable: true,
2275
- type: 'string',
2276
- },
2277
- status: { enum: ['set'], type: 'string' },
2278
- type: {
2279
- enum: ['time_bound', 'ongoing'],
2280
- type: 'string',
2281
- },
2282
- warnings: { nullable: true },
2283
- },
2284
- required: [
2285
- 'type',
2286
- 'access_code_id',
2287
- 'device_id',
2288
- 'name',
2289
- 'code',
2290
- 'created_at',
2291
- 'is_managed',
2292
- 'starts_at',
2293
- 'ends_at',
2294
- 'status',
2295
- ],
2296
- type: 'object',
2220
+ $ref: '#/components/schemas/unmanaged_access_code',
2297
2221
  },
2298
2222
  ok: { type: 'boolean' },
2299
2223
  },
@@ -2344,44 +2268,7 @@ export default {
2344
2268
  properties: {
2345
2269
  access_codes: {
2346
2270
  items: {
2347
- properties: {
2348
- access_code_id: { format: 'uuid', type: 'string' },
2349
- code: { nullable: true, type: 'string' },
2350
- created_at: { format: 'date-time', type: 'string' },
2351
- device_id: { format: 'uuid', type: 'string' },
2352
- ends_at: {
2353
- format: 'date-time',
2354
- nullable: true,
2355
- type: 'string',
2356
- },
2357
- errors: { nullable: true },
2358
- is_managed: { enum: [false], type: 'boolean' },
2359
- name: { nullable: true, type: 'string' },
2360
- starts_at: {
2361
- format: 'date-time',
2362
- nullable: true,
2363
- type: 'string',
2364
- },
2365
- status: { enum: ['set'], type: 'string' },
2366
- type: {
2367
- enum: ['time_bound', 'ongoing'],
2368
- type: 'string',
2369
- },
2370
- warnings: { nullable: true },
2371
- },
2372
- required: [
2373
- 'type',
2374
- 'access_code_id',
2375
- 'device_id',
2376
- 'name',
2377
- 'code',
2378
- 'created_at',
2379
- 'is_managed',
2380
- 'starts_at',
2381
- 'ends_at',
2382
- 'status',
2383
- ],
2384
- type: 'object',
2271
+ $ref: '#/components/schemas/unmanaged_access_code',
2385
2272
  },
2386
2273
  type: 'array',
2387
2274
  },