@seamapi/types 1.42.1 → 1.44.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 (40) hide show
  1. package/dist/connect.cjs +263 -14
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +522 -18
  4. package/lib/seam/connect/openapi.d.ts +350 -0
  5. package/lib/seam/connect/openapi.js +243 -10
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +143 -15
  8. package/lib/seam/connect/stable/model-types.d.ts +1 -1
  9. package/lib/seam/connect/stable/models/connect-webview.d.ts +21 -0
  10. package/lib/seam/connect/stable/models/connect-webview.js +8 -0
  11. package/lib/seam/connect/stable/models/connect-webview.js.map +1 -1
  12. package/lib/seam/connect/stable/models/custom-metadata.d.ts +3 -0
  13. package/lib/seam/connect/stable/models/custom-metadata.js +7 -0
  14. package/lib/seam/connect/stable/models/custom-metadata.js.map +1 -0
  15. package/lib/seam/connect/stable/models/index.d.ts +1 -0
  16. package/lib/seam/connect/stable/models/index.js +1 -0
  17. package/lib/seam/connect/stable/models/index.js.map +1 -1
  18. package/lib/seam/connect/stable/schemas.d.ts +1 -1
  19. package/lib/seam/connect/stable/schemas.js +1 -1
  20. package/lib/seam/connect/stable/schemas.js.map +1 -1
  21. package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -7
  22. package/lib/seam/connect/unstable/models/acs/credential.js +5 -2
  23. package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
  24. package/lib/seam/connect/unstable/models/acs/user.d.ts +4 -4
  25. package/lib/seam/connect/unstable/models/acs/user.js +1 -1
  26. package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
  27. package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +62 -0
  28. package/lib/seam/connect/unstable/models/devices/managed-device.js +20 -2
  29. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/lib/seam/connect/openapi.ts +247 -10
  32. package/src/lib/seam/connect/route-types.ts +143 -15
  33. package/src/lib/seam/connect/stable/model-types.ts +1 -1
  34. package/src/lib/seam/connect/stable/models/connect-webview.ts +9 -0
  35. package/src/lib/seam/connect/stable/models/custom-metadata.ts +12 -0
  36. package/src/lib/seam/connect/stable/models/index.ts +1 -0
  37. package/src/lib/seam/connect/stable/schemas.ts +1 -1
  38. package/src/lib/seam/connect/unstable/models/acs/credential.ts +5 -2
  39. package/src/lib/seam/connect/unstable/models/acs/user.ts +1 -1
  40. package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +23 -2
@@ -9,12 +9,21 @@ export declare const common_device_properties: z.ZodObject<{
9
9
  model: z.ZodObject<{
10
10
  display_name: z.ZodString;
11
11
  manufacturer_display_name: z.ZodString;
12
+ offline_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
13
+ access_codes_supported: z.ZodOptional<z.ZodBoolean>;
14
+ accessory_keypad_supported: z.ZodOptional<z.ZodBoolean>;
12
15
  }, "strip", z.ZodTypeAny, {
13
16
  display_name: string;
14
17
  manufacturer_display_name: string;
18
+ offline_access_codes_supported?: boolean | undefined;
19
+ access_codes_supported?: boolean | undefined;
20
+ accessory_keypad_supported?: boolean | undefined;
15
21
  }, {
16
22
  display_name: string;
17
23
  manufacturer_display_name: string;
24
+ offline_access_codes_supported?: boolean | undefined;
25
+ access_codes_supported?: boolean | undefined;
26
+ accessory_keypad_supported?: boolean | undefined;
18
27
  }>;
19
28
  has_direct_power: z.ZodOptional<z.ZodBoolean>;
20
29
  battery_level: z.ZodOptional<z.ZodNumber>;
@@ -32,6 +41,8 @@ export declare const common_device_properties: z.ZodObject<{
32
41
  image_url: z.ZodOptional<z.ZodString>;
33
42
  image_alt_text: z.ZodOptional<z.ZodString>;
34
43
  serial_number: z.ZodOptional<z.ZodString>;
44
+ online_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
45
+ offline_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
35
46
  supports_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
36
47
  supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
37
48
  }, "strip", z.ZodTypeAny, {
@@ -40,6 +51,9 @@ export declare const common_device_properties: z.ZodObject<{
40
51
  model: {
41
52
  display_name: string;
42
53
  manufacturer_display_name: string;
54
+ offline_access_codes_supported?: boolean | undefined;
55
+ access_codes_supported?: boolean | undefined;
56
+ accessory_keypad_supported?: boolean | undefined;
43
57
  };
44
58
  has_direct_power?: boolean | undefined;
45
59
  battery_level?: number | undefined;
@@ -51,6 +65,8 @@ export declare const common_device_properties: z.ZodObject<{
51
65
  image_url?: string | undefined;
52
66
  image_alt_text?: string | undefined;
53
67
  serial_number?: string | undefined;
68
+ online_access_codes_enabled?: boolean | undefined;
69
+ offline_access_codes_enabled?: boolean | undefined;
54
70
  supports_accessory_keypad?: boolean | undefined;
55
71
  supports_offline_access_codes?: boolean | undefined;
56
72
  }, {
@@ -59,6 +75,9 @@ export declare const common_device_properties: z.ZodObject<{
59
75
  model: {
60
76
  display_name: string;
61
77
  manufacturer_display_name: string;
78
+ offline_access_codes_supported?: boolean | undefined;
79
+ access_codes_supported?: boolean | undefined;
80
+ accessory_keypad_supported?: boolean | undefined;
62
81
  };
63
82
  has_direct_power?: boolean | undefined;
64
83
  battery_level?: number | undefined;
@@ -70,6 +89,8 @@ export declare const common_device_properties: z.ZodObject<{
70
89
  image_url?: string | undefined;
71
90
  image_alt_text?: string | undefined;
72
91
  serial_number?: string | undefined;
92
+ online_access_codes_enabled?: boolean | undefined;
93
+ offline_access_codes_enabled?: boolean | undefined;
73
94
  supports_accessory_keypad?: boolean | undefined;
74
95
  supports_offline_access_codes?: boolean | undefined;
75
96
  }>;
@@ -83,12 +104,21 @@ export declare const managed_device: z.ZodObject<{
83
104
  model: z.ZodObject<{
84
105
  display_name: z.ZodString;
85
106
  manufacturer_display_name: z.ZodString;
107
+ offline_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
108
+ access_codes_supported: z.ZodOptional<z.ZodBoolean>;
109
+ accessory_keypad_supported: z.ZodOptional<z.ZodBoolean>;
86
110
  }, "strip", z.ZodTypeAny, {
87
111
  display_name: string;
88
112
  manufacturer_display_name: string;
113
+ offline_access_codes_supported?: boolean | undefined;
114
+ access_codes_supported?: boolean | undefined;
115
+ accessory_keypad_supported?: boolean | undefined;
89
116
  }, {
90
117
  display_name: string;
91
118
  manufacturer_display_name: string;
119
+ offline_access_codes_supported?: boolean | undefined;
120
+ access_codes_supported?: boolean | undefined;
121
+ accessory_keypad_supported?: boolean | undefined;
92
122
  }>;
93
123
  has_direct_power: z.ZodOptional<z.ZodBoolean>;
94
124
  battery_level: z.ZodOptional<z.ZodNumber>;
@@ -106,6 +136,8 @@ export declare const managed_device: z.ZodObject<{
106
136
  image_url: z.ZodOptional<z.ZodString>;
107
137
  image_alt_text: z.ZodOptional<z.ZodString>;
108
138
  serial_number: z.ZodOptional<z.ZodString>;
139
+ online_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
140
+ offline_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
109
141
  supports_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
110
142
  supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
111
143
  }, "strip", z.ZodTypeAny, {
@@ -114,6 +146,9 @@ export declare const managed_device: z.ZodObject<{
114
146
  model: {
115
147
  display_name: string;
116
148
  manufacturer_display_name: string;
149
+ offline_access_codes_supported?: boolean | undefined;
150
+ access_codes_supported?: boolean | undefined;
151
+ accessory_keypad_supported?: boolean | undefined;
117
152
  };
118
153
  has_direct_power?: boolean | undefined;
119
154
  battery_level?: number | undefined;
@@ -125,6 +160,8 @@ export declare const managed_device: z.ZodObject<{
125
160
  image_url?: string | undefined;
126
161
  image_alt_text?: string | undefined;
127
162
  serial_number?: string | undefined;
163
+ online_access_codes_enabled?: boolean | undefined;
164
+ offline_access_codes_enabled?: boolean | undefined;
128
165
  supports_accessory_keypad?: boolean | undefined;
129
166
  supports_offline_access_codes?: boolean | undefined;
130
167
  }, {
@@ -133,6 +170,9 @@ export declare const managed_device: z.ZodObject<{
133
170
  model: {
134
171
  display_name: string;
135
172
  manufacturer_display_name: string;
173
+ offline_access_codes_supported?: boolean | undefined;
174
+ access_codes_supported?: boolean | undefined;
175
+ accessory_keypad_supported?: boolean | undefined;
136
176
  };
137
177
  has_direct_power?: boolean | undefined;
138
178
  battery_level?: number | undefined;
@@ -144,6 +184,8 @@ export declare const managed_device: z.ZodObject<{
144
184
  image_url?: string | undefined;
145
185
  image_alt_text?: string | undefined;
146
186
  serial_number?: string | undefined;
187
+ online_access_codes_enabled?: boolean | undefined;
188
+ offline_access_codes_enabled?: boolean | undefined;
147
189
  supports_accessory_keypad?: boolean | undefined;
148
190
  supports_offline_access_codes?: boolean | undefined;
149
191
  }>, z.ZodObject<{
@@ -1792,6 +1834,9 @@ export declare const managed_device: z.ZodObject<{
1792
1834
  model: {
1793
1835
  display_name: string;
1794
1836
  manufacturer_display_name: string;
1837
+ offline_access_codes_supported?: boolean | undefined;
1838
+ access_codes_supported?: boolean | undefined;
1839
+ accessory_keypad_supported?: boolean | undefined;
1795
1840
  };
1796
1841
  has_direct_power?: boolean | undefined;
1797
1842
  battery_level?: number | undefined;
@@ -1803,6 +1848,8 @@ export declare const managed_device: z.ZodObject<{
1803
1848
  image_url?: string | undefined;
1804
1849
  image_alt_text?: string | undefined;
1805
1850
  serial_number?: string | undefined;
1851
+ online_access_codes_enabled?: boolean | undefined;
1852
+ offline_access_codes_enabled?: boolean | undefined;
1806
1853
  supports_accessory_keypad?: boolean | undefined;
1807
1854
  supports_offline_access_codes?: boolean | undefined;
1808
1855
  } & {
@@ -2158,6 +2205,9 @@ export declare const managed_device: z.ZodObject<{
2158
2205
  model: {
2159
2206
  display_name: string;
2160
2207
  manufacturer_display_name: string;
2208
+ offline_access_codes_supported?: boolean | undefined;
2209
+ access_codes_supported?: boolean | undefined;
2210
+ accessory_keypad_supported?: boolean | undefined;
2161
2211
  };
2162
2212
  has_direct_power?: boolean | undefined;
2163
2213
  battery_level?: number | undefined;
@@ -2169,6 +2219,8 @@ export declare const managed_device: z.ZodObject<{
2169
2219
  image_url?: string | undefined;
2170
2220
  image_alt_text?: string | undefined;
2171
2221
  serial_number?: string | undefined;
2222
+ online_access_codes_enabled?: boolean | undefined;
2223
+ offline_access_codes_enabled?: boolean | undefined;
2172
2224
  supports_accessory_keypad?: boolean | undefined;
2173
2225
  supports_offline_access_codes?: boolean | undefined;
2174
2226
  } & {
@@ -2545,6 +2597,9 @@ export declare const managed_device: z.ZodObject<{
2545
2597
  model: {
2546
2598
  display_name: string;
2547
2599
  manufacturer_display_name: string;
2600
+ offline_access_codes_supported?: boolean | undefined;
2601
+ access_codes_supported?: boolean | undefined;
2602
+ accessory_keypad_supported?: boolean | undefined;
2548
2603
  };
2549
2604
  has_direct_power?: boolean | undefined;
2550
2605
  battery_level?: number | undefined;
@@ -2556,6 +2611,8 @@ export declare const managed_device: z.ZodObject<{
2556
2611
  image_url?: string | undefined;
2557
2612
  image_alt_text?: string | undefined;
2558
2613
  serial_number?: string | undefined;
2614
+ online_access_codes_enabled?: boolean | undefined;
2615
+ offline_access_codes_enabled?: boolean | undefined;
2559
2616
  supports_accessory_keypad?: boolean | undefined;
2560
2617
  supports_offline_access_codes?: boolean | undefined;
2561
2618
  } & {
@@ -2911,6 +2968,9 @@ export declare const managed_device: z.ZodObject<{
2911
2968
  model: {
2912
2969
  display_name: string;
2913
2970
  manufacturer_display_name: string;
2971
+ offline_access_codes_supported?: boolean | undefined;
2972
+ access_codes_supported?: boolean | undefined;
2973
+ accessory_keypad_supported?: boolean | undefined;
2914
2974
  };
2915
2975
  has_direct_power?: boolean | undefined;
2916
2976
  battery_level?: number | undefined;
@@ -2922,6 +2982,8 @@ export declare const managed_device: z.ZodObject<{
2922
2982
  image_url?: string | undefined;
2923
2983
  image_alt_text?: string | undefined;
2924
2984
  serial_number?: string | undefined;
2985
+ online_access_codes_enabled?: boolean | undefined;
2986
+ offline_access_codes_enabled?: boolean | undefined;
2925
2987
  supports_accessory_keypad?: boolean | undefined;
2926
2988
  supports_offline_access_codes?: boolean | undefined;
2927
2989
  } & {
@@ -10,6 +10,9 @@ export const common_device_properties = z.object({
10
10
  model: z.object({
11
11
  display_name: z.string(),
12
12
  manufacturer_display_name: z.string(),
13
+ offline_access_codes_supported: z.boolean().optional(),
14
+ access_codes_supported: z.boolean().optional(),
15
+ accessory_keypad_supported: z.boolean().optional(),
13
16
  }),
14
17
  has_direct_power: z.boolean().optional(),
15
18
  battery_level: z.number().min(0).max(1).optional(),
@@ -24,8 +27,23 @@ export const common_device_properties = z.object({
24
27
  image_url: z.string().url().optional(),
25
28
  image_alt_text: z.string().optional(),
26
29
  serial_number: z.string().optional(),
27
- supports_accessory_keypad: z.boolean().optional(),
28
- supports_offline_access_codes: z.boolean().optional(),
30
+ online_access_codes_enabled: z
31
+ .boolean()
32
+ .describe('Currently possible to use online access codes')
33
+ .optional(),
34
+ offline_access_codes_enabled: z
35
+ .boolean()
36
+ .describe('Currently possible to use offline access codes')
37
+ .optional(),
38
+ // Deprecated legacy capability support props
39
+ supports_accessory_keypad: z
40
+ .boolean()
41
+ .describe('Deprecated: use model.offline_access_codes_enabled.')
42
+ .optional(),
43
+ supports_offline_access_codes: z
44
+ .boolean()
45
+ .describe('Deprecated: use model.accessory_keypad_supported.')
46
+ .optional(),
29
47
  });
30
48
  export const managed_device = z.object({
31
49
  device_id: z.string().uuid(),
@@ -1 +1 @@
1
- {"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBA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AAO,EAAE,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,WAAW,EAAE,eAAe;IAC5B,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAC7C,UAAU,EAAE,wBAAwB;SACjC,GAAG,CAAC,eAAe,CAAC;SACpB,GAAG,CAAC,qBAAqB,CAAC;IAC7B,QAAQ,EAAE,CAAC;QACT,qCAAqC;SACpC,MAAM,CAAC;QACN,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC;SACD,QAAQ,EAAE;IACb,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC,CAAA"}
1
+ {"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"m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,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.42.1",
3
+ "version": "1.44.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -139,7 +139,7 @@ export default {
139
139
  type: 'string',
140
140
  },
141
141
  email_address: { format: 'email', type: 'string' },
142
- external_type: { enum: ['pti_user'], type: 'string' },
142
+ external_type: { enum: ['pti_user', 'brivo_user'], type: 'string' },
143
143
  external_type_display_name: { type: 'string' },
144
144
  full_name: { type: 'string' },
145
145
  is_suspended: { type: 'boolean' },
@@ -286,16 +286,46 @@ export default {
286
286
  accepted_providers: { items: { type: 'string' }, type: 'array' },
287
287
  any_device_allowed: { type: 'boolean' },
288
288
  any_provider_allowed: { type: 'boolean' },
289
+ authorized_at: {
290
+ format: 'date-time',
291
+ nullable: true,
292
+ type: 'string',
293
+ },
294
+ automatically_manage_new_devices: { type: 'boolean' },
289
295
  connect_webview_id: { format: 'uuid', type: 'string' },
290
296
  connected_account_id: { format: 'uuid', type: 'string' },
291
297
  created_at: { format: 'date-time', type: 'string' },
298
+ custom_metadata: {
299
+ additionalProperties: {
300
+ nullable: true,
301
+ oneOf: [
302
+ { maxLength: 500, type: 'string' },
303
+ { type: 'number' },
304
+ { format: 'null', nullable: true, type: 'string' },
305
+ { type: 'boolean' },
306
+ ],
307
+ },
308
+ type: 'object',
309
+ },
310
+ custom_redirect_failure_url: {
311
+ format: 'uri',
312
+ nullable: true,
313
+ type: 'string',
314
+ },
315
+ custom_redirect_url: {
316
+ format: 'uri',
317
+ nullable: true,
318
+ type: 'string',
319
+ },
292
320
  device_selection_mode: {
293
321
  enum: ['none', 'single', 'multiple'],
294
322
  type: 'string',
295
323
  },
296
324
  login_successful: { type: 'boolean' },
325
+ selected_provider: { nullable: true, type: 'string' },
297
326
  status: { enum: ['pending', 'failed', 'authorized'], type: 'string' },
298
327
  url: { format: 'uri', type: 'string' },
328
+ wait_for_device_creation: { type: 'boolean' },
299
329
  workspace_id: { format: 'uuid', type: 'string' },
300
330
  },
301
331
  required: [
@@ -310,6 +340,13 @@ export default {
310
340
  'created_at',
311
341
  'login_successful',
312
342
  'status',
343
+ 'custom_redirect_url',
344
+ 'custom_redirect_failure_url',
345
+ 'custom_metadata',
346
+ 'automatically_manage_new_devices',
347
+ 'wait_for_device_creation',
348
+ 'authorized_at',
349
+ 'selected_provider',
313
350
  ],
314
351
  type: 'object',
315
352
  },
@@ -451,17 +488,38 @@ export default {
451
488
  manufacturer: { type: 'string' },
452
489
  model: {
453
490
  properties: {
491
+ access_codes_supported: { type: 'boolean' },
492
+ accessory_keypad_supported: { type: 'boolean' },
454
493
  display_name: { type: 'string' },
455
494
  manufacturer_display_name: { type: 'string' },
495
+ offline_access_codes_supported: { type: 'boolean' },
456
496
  },
457
497
  required: ['display_name', 'manufacturer_display_name'],
458
498
  type: 'object',
459
499
  },
460
500
  name: { type: 'string' },
501
+ offline_access_codes_enabled: {
502
+ description:
503
+ 'Currently possible to use offline access codes',
504
+ type: 'boolean',
505
+ },
461
506
  online: { type: 'boolean' },
507
+ online_access_codes_enabled: {
508
+ description:
509
+ 'Currently possible to use online access codes',
510
+ type: 'boolean',
511
+ },
462
512
  serial_number: { type: 'string' },
463
- supports_accessory_keypad: { type: 'boolean' },
464
- supports_offline_access_codes: { type: 'boolean' },
513
+ supports_accessory_keypad: {
514
+ description:
515
+ 'Deprecated: use model.offline_access_codes_enabled.',
516
+ type: 'boolean',
517
+ },
518
+ supports_offline_access_codes: {
519
+ description:
520
+ 'Deprecated: use model.accessory_keypad_supported.',
521
+ type: 'boolean',
522
+ },
465
523
  },
466
524
  required: ['online', 'name', 'model'],
467
525
  type: 'object',
@@ -3092,6 +3150,91 @@ export default {
3092
3150
  'x-fern-sdk-method-name': 'update',
3093
3151
  },
3094
3152
  },
3153
+ '/acs/credentials/assign': {
3154
+ patch: {
3155
+ operationId: 'acsCredentialsAssignPatch',
3156
+ requestBody: {
3157
+ content: {
3158
+ 'application/json': {
3159
+ schema: {
3160
+ properties: {
3161
+ acs_credential_id: { format: 'uuid', type: 'string' },
3162
+ acs_user_id: { format: 'uuid', type: 'string' },
3163
+ },
3164
+ required: ['acs_user_id', 'acs_credential_id'],
3165
+ type: 'object',
3166
+ },
3167
+ },
3168
+ },
3169
+ },
3170
+ responses: {
3171
+ 200: {
3172
+ content: {
3173
+ 'application/json': {
3174
+ schema: {
3175
+ properties: { ok: { type: 'boolean' } },
3176
+ required: ['ok'],
3177
+ type: 'object',
3178
+ },
3179
+ },
3180
+ },
3181
+ description: 'OK',
3182
+ },
3183
+ 400: { description: 'Bad Request' },
3184
+ 401: { description: 'Unauthorized' },
3185
+ },
3186
+ security: [
3187
+ { access_token: [], seam_workspace: [] },
3188
+ { seam_client_session_token: [] },
3189
+ { client_session_token: [] },
3190
+ ],
3191
+ summary: '/acs/credentials/assign',
3192
+ tags: [],
3193
+ 'x-fern-ignore': true,
3194
+ },
3195
+ post: {
3196
+ operationId: 'acsCredentialsAssignPost',
3197
+ requestBody: {
3198
+ content: {
3199
+ 'application/json': {
3200
+ schema: {
3201
+ properties: {
3202
+ acs_credential_id: { format: 'uuid', type: 'string' },
3203
+ acs_user_id: { format: 'uuid', type: 'string' },
3204
+ },
3205
+ required: ['acs_user_id', 'acs_credential_id'],
3206
+ type: 'object',
3207
+ },
3208
+ },
3209
+ },
3210
+ },
3211
+ responses: {
3212
+ 200: {
3213
+ content: {
3214
+ 'application/json': {
3215
+ schema: {
3216
+ properties: { ok: { type: 'boolean' } },
3217
+ required: ['ok'],
3218
+ type: 'object',
3219
+ },
3220
+ },
3221
+ },
3222
+ description: 'OK',
3223
+ },
3224
+ 400: { description: 'Bad Request' },
3225
+ 401: { description: 'Unauthorized' },
3226
+ },
3227
+ security: [
3228
+ { access_token: [], seam_workspace: [] },
3229
+ { seam_client_session_token: [] },
3230
+ { client_session_token: [] },
3231
+ ],
3232
+ summary: '/acs/credentials/assign',
3233
+ tags: [],
3234
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3235
+ 'x-fern-sdk-method-name': 'assign',
3236
+ },
3237
+ },
3095
3238
  '/acs/credentials/create': {
3096
3239
  post: {
3097
3240
  operationId: 'acsCredentialsCreatePost',
@@ -3122,13 +3265,15 @@ export default {
3122
3265
  acs_user_id: { format: 'uuid', type: 'string' },
3123
3266
  code: { nullable: true, type: 'string' },
3124
3267
  created_at: { format: 'date-time', type: 'string' },
3125
- external_type: { enum: ['pti_card'], type: 'string' },
3268
+ external_type: {
3269
+ enum: ['pti_card', 'brivo_credential'],
3270
+ type: 'string',
3271
+ },
3126
3272
  external_type_display_name: { type: 'string' },
3127
3273
  workspace_id: { format: 'uuid', type: 'string' },
3128
3274
  },
3129
3275
  required: [
3130
3276
  'acs_credential_id',
3131
- 'acs_user_id',
3132
3277
  'acs_system_id',
3133
3278
  'code',
3134
3279
  'external_type',
@@ -3233,13 +3378,15 @@ export default {
3233
3378
  acs_user_id: { format: 'uuid', type: 'string' },
3234
3379
  code: { nullable: true, type: 'string' },
3235
3380
  created_at: { format: 'date-time', type: 'string' },
3236
- external_type: { enum: ['pti_card'], type: 'string' },
3381
+ external_type: {
3382
+ enum: ['pti_card', 'brivo_credential'],
3383
+ type: 'string',
3384
+ },
3237
3385
  external_type_display_name: { type: 'string' },
3238
3386
  workspace_id: { format: 'uuid', type: 'string' },
3239
3387
  },
3240
3388
  required: [
3241
3389
  'acs_credential_id',
3242
- 'acs_user_id',
3243
3390
  'acs_system_id',
3244
3391
  'code',
3245
3392
  'external_type',
@@ -3321,13 +3468,15 @@ export default {
3321
3468
  acs_user_id: { format: 'uuid', type: 'string' },
3322
3469
  code: { nullable: true, type: 'string' },
3323
3470
  created_at: { format: 'date-time', type: 'string' },
3324
- external_type: { enum: ['pti_card'], type: 'string' },
3471
+ external_type: {
3472
+ enum: ['pti_card', 'brivo_credential'],
3473
+ type: 'string',
3474
+ },
3325
3475
  external_type_display_name: { type: 'string' },
3326
3476
  workspace_id: { format: 'uuid', type: 'string' },
3327
3477
  },
3328
3478
  required: [
3329
3479
  'acs_credential_id',
3330
- 'acs_user_id',
3331
3480
  'acs_system_id',
3332
3481
  'code',
3333
3482
  'external_type',
@@ -3362,6 +3511,91 @@ export default {
3362
3511
  'x-fern-sdk-method-name': 'list',
3363
3512
  },
3364
3513
  },
3514
+ '/acs/credentials/unassign': {
3515
+ patch: {
3516
+ operationId: 'acsCredentialsUnassignPatch',
3517
+ requestBody: {
3518
+ content: {
3519
+ 'application/json': {
3520
+ schema: {
3521
+ properties: {
3522
+ acs_credential_id: { format: 'uuid', type: 'string' },
3523
+ acs_user_id: { format: 'uuid', type: 'string' },
3524
+ },
3525
+ required: ['acs_user_id', 'acs_credential_id'],
3526
+ type: 'object',
3527
+ },
3528
+ },
3529
+ },
3530
+ },
3531
+ responses: {
3532
+ 200: {
3533
+ content: {
3534
+ 'application/json': {
3535
+ schema: {
3536
+ properties: { ok: { type: 'boolean' } },
3537
+ required: ['ok'],
3538
+ type: 'object',
3539
+ },
3540
+ },
3541
+ },
3542
+ description: 'OK',
3543
+ },
3544
+ 400: { description: 'Bad Request' },
3545
+ 401: { description: 'Unauthorized' },
3546
+ },
3547
+ security: [
3548
+ { access_token: [], seam_workspace: [] },
3549
+ { seam_client_session_token: [] },
3550
+ { client_session_token: [] },
3551
+ ],
3552
+ summary: '/acs/credentials/unassign',
3553
+ tags: [],
3554
+ 'x-fern-ignore': true,
3555
+ },
3556
+ post: {
3557
+ operationId: 'acsCredentialsUnassignPost',
3558
+ requestBody: {
3559
+ content: {
3560
+ 'application/json': {
3561
+ schema: {
3562
+ properties: {
3563
+ acs_credential_id: { format: 'uuid', type: 'string' },
3564
+ acs_user_id: { format: 'uuid', type: 'string' },
3565
+ },
3566
+ required: ['acs_user_id', 'acs_credential_id'],
3567
+ type: 'object',
3568
+ },
3569
+ },
3570
+ },
3571
+ },
3572
+ responses: {
3573
+ 200: {
3574
+ content: {
3575
+ 'application/json': {
3576
+ schema: {
3577
+ properties: { ok: { type: 'boolean' } },
3578
+ required: ['ok'],
3579
+ type: 'object',
3580
+ },
3581
+ },
3582
+ },
3583
+ description: 'OK',
3584
+ },
3585
+ 400: { description: 'Bad Request' },
3586
+ 401: { description: 'Unauthorized' },
3587
+ },
3588
+ security: [
3589
+ { access_token: [], seam_workspace: [] },
3590
+ { seam_client_session_token: [] },
3591
+ { client_session_token: [] },
3592
+ ],
3593
+ summary: '/acs/credentials/unassign',
3594
+ tags: [],
3595
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3596
+ 'x-fern-sdk-method-name': 'unassign',
3597
+ },
3598
+ },
3365
3599
  '/acs/systems/get': {
3366
3600
  post: {
3367
3601
  operationId: 'acsSystemsGetPost',
@@ -3538,6 +3772,7 @@ export default {
3538
3772
  format: 'email',
3539
3773
  type: 'string',
3540
3774
  },
3775
+ email_address: { format: 'email', type: 'string' },
3541
3776
  full_name: { type: 'string' },
3542
3777
  phone_number: { nullable: true, type: 'string' },
3543
3778
  },
@@ -3840,6 +4075,7 @@ export default {
3840
4075
  format: 'email',
3841
4076
  type: 'string',
3842
4077
  },
4078
+ email_address: { format: 'email', type: 'string' },
3843
4079
  full_name: { type: 'string' },
3844
4080
  phone_number: { nullable: true, type: 'string' },
3845
4081
  },
@@ -3887,6 +4123,7 @@ export default {
3887
4123
  format: 'email',
3888
4124
  type: 'string',
3889
4125
  },
4126
+ email_address: { format: 'email', type: 'string' },
3890
4127
  full_name: { type: 'string' },
3891
4128
  phone_number: { nullable: true, type: 'string' },
3892
4129
  },
@@ -8816,7 +9053,7 @@ export default {
8816
9053
  tags: ['/workspaces'],
8817
9054
  'x-fern-sdk-group-name': ['workspaces'],
8818
9055
  'x-fern-sdk-method-name': 'list',
8819
- 'x-fern-sdk-return-value': 'workspace',
9056
+ 'x-fern-sdk-return-value': 'workspaces',
8820
9057
  },
8821
9058
  },
8822
9059
  '/workspaces/reset_sandbox': {