@seamapi/types 1.234.0 → 1.235.1

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.
@@ -2139,6 +2139,7 @@ export interface Routes {
2139
2139
  external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
2140
2140
  external_type_display_name: string;
2141
2141
  created_at: string;
2142
+ is_managed: true;
2142
2143
  };
2143
2144
  };
2144
2145
  };
@@ -2168,6 +2169,7 @@ export interface Routes {
2168
2169
  external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
2169
2170
  external_type_display_name: string;
2170
2171
  created_at: string;
2172
+ is_managed: true;
2171
2173
  }>;
2172
2174
  };
2173
2175
  };
@@ -2264,6 +2266,65 @@ export interface Routes {
2264
2266
  formData: {};
2265
2267
  jsonResponse: {};
2266
2268
  };
2269
+ '/acs/access_groups/unmanaged/get': {
2270
+ route: '/acs/access_groups/unmanaged/get';
2271
+ method: 'GET' | 'POST';
2272
+ queryParams: {};
2273
+ jsonBody: {};
2274
+ commonParams: {
2275
+ acs_access_group_id: string;
2276
+ };
2277
+ formData: {};
2278
+ jsonResponse: {
2279
+ acs_access_group: {
2280
+ acs_access_group_id: string;
2281
+ acs_system_id: string;
2282
+ workspace_id: string;
2283
+ name: string;
2284
+ /**
2285
+ * @deprecated use external_type */
2286
+ access_group_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
2287
+ /**
2288
+ * @deprecated use external_type_display_name */
2289
+ access_group_type_display_name: string;
2290
+ display_name: string;
2291
+ external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
2292
+ external_type_display_name: string;
2293
+ created_at: string;
2294
+ is_managed: false;
2295
+ };
2296
+ };
2297
+ };
2298
+ '/acs/access_groups/unmanaged/list': {
2299
+ route: '/acs/access_groups/unmanaged/list';
2300
+ method: 'GET' | 'POST';
2301
+ queryParams: {};
2302
+ jsonBody: {};
2303
+ commonParams: {
2304
+ acs_system_id?: string | undefined;
2305
+ acs_user_id?: string | undefined;
2306
+ };
2307
+ formData: {};
2308
+ jsonResponse: {
2309
+ acs_access_groups: Array<{
2310
+ acs_access_group_id: string;
2311
+ acs_system_id: string;
2312
+ workspace_id: string;
2313
+ name: string;
2314
+ /**
2315
+ * @deprecated use external_type */
2316
+ access_group_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
2317
+ /**
2318
+ * @deprecated use external_type_display_name */
2319
+ access_group_type_display_name: string;
2320
+ display_name: string;
2321
+ external_type: 'pti_unit' | 'pti_access_level' | 'salto_access_group' | 'brivo_group';
2322
+ external_type_display_name: string;
2323
+ created_at: string;
2324
+ is_managed: false;
2325
+ }>;
2326
+ };
2327
+ };
2267
2328
  '/acs/credential_pools/list': {
2268
2329
  route: '/acs/credential_pools/list';
2269
2330
  method: 'GET' | 'POST';
@@ -3460,7 +3521,7 @@ export interface Routes {
3460
3521
  email?: string | undefined;
3461
3522
  email_address?: string | undefined;
3462
3523
  phone_number?: string | undefined;
3463
- is_managed: true;
3524
+ is_managed: false;
3464
3525
  };
3465
3526
  };
3466
3527
  };
@@ -1 +1 @@
1
- export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_unmanaged_user, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_acs_credential, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
@@ -1,2 +1,2 @@
1
- export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_unmanaged_user, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_acs_credential, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
2
2
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.234.0",
3
+ "version": "1.235.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -12,7 +12,7 @@ export type AcsAccessGroupExternalType = z.infer<
12
12
  typeof acs_access_group_external_type
13
13
  >
14
14
 
15
- export const acs_access_group = z.object({
15
+ const common_acs_access_group = z.object({
16
16
  acs_access_group_id: z.string().uuid(),
17
17
  acs_system_id: z.string().uuid(),
18
18
  workspace_id: z.string().uuid(),
@@ -33,4 +33,14 @@ export const acs_access_group = z.object({
33
33
  created_at: z.string().datetime(),
34
34
  })
35
35
 
36
+ export const acs_access_group = common_acs_access_group.extend({
37
+ is_managed: z.literal(true),
38
+ })
39
+ export const unmanaged_acs_access_group = common_acs_access_group.extend({
40
+ is_managed: z.literal(false),
41
+ })
42
+
36
43
  export type AcsAccessGroup = z.output<typeof acs_access_group>
44
+ export type UnmanagedAcsAccessGroup = z.output<
45
+ typeof unmanaged_acs_access_group
46
+ >
@@ -76,11 +76,11 @@ export const acs_user = common_acs_user.merge(
76
76
  }),
77
77
  )
78
78
 
79
- export const acs_unmanaged_user = common_acs_user.merge(
79
+ export const unmanaged_acs_user = common_acs_user.merge(
80
80
  z.object({
81
81
  is_managed: z.literal(false),
82
82
  }),
83
83
  )
84
84
 
85
85
  export type AcsUser = z.output<typeof acs_user>
86
- export type AcsUnmanagedUser = z.output<typeof acs_unmanaged_user>
86
+ export type AcsUnmanagedUser = z.output<typeof unmanaged_acs_user>
@@ -217,6 +217,7 @@ export default {
217
217
  type: 'string',
218
218
  },
219
219
  external_type_display_name: { type: 'string' },
220
+ is_managed: { enum: [true], type: 'boolean' },
220
221
  name: { type: 'string' },
221
222
  workspace_id: { format: 'uuid', type: 'string' },
222
223
  },
@@ -231,6 +232,7 @@ export default {
231
232
  'external_type',
232
233
  'external_type_display_name',
233
234
  'created_at',
235
+ 'is_managed',
234
236
  ],
235
237
  type: 'object',
236
238
  },
@@ -5479,6 +5481,206 @@ export default {
5479
5481
  'x-fern-sdk-method-name': 'remove_user',
5480
5482
  },
5481
5483
  },
5484
+ '/acs/access_groups/unmanaged/get': {
5485
+ post: {
5486
+ operationId: 'acsAccessGroupsUnmanagedGetPost',
5487
+ requestBody: {
5488
+ content: {
5489
+ 'application/json': {
5490
+ schema: {
5491
+ properties: {
5492
+ acs_access_group_id: { format: 'uuid', type: 'string' },
5493
+ },
5494
+ required: ['acs_access_group_id'],
5495
+ type: 'object',
5496
+ },
5497
+ },
5498
+ },
5499
+ },
5500
+ responses: {
5501
+ 200: {
5502
+ content: {
5503
+ 'application/json': {
5504
+ schema: {
5505
+ properties: {
5506
+ acs_access_group: {
5507
+ properties: {
5508
+ access_group_type: {
5509
+ deprecated: true,
5510
+ enum: [
5511
+ 'pti_unit',
5512
+ 'pti_access_level',
5513
+ 'salto_access_group',
5514
+ 'brivo_group',
5515
+ ],
5516
+ type: 'string',
5517
+ 'x-deprecated': 'use external_type',
5518
+ },
5519
+ access_group_type_display_name: {
5520
+ deprecated: true,
5521
+ type: 'string',
5522
+ 'x-deprecated': 'use external_type_display_name',
5523
+ },
5524
+ acs_access_group_id: { format: 'uuid', type: 'string' },
5525
+ acs_system_id: { format: 'uuid', type: 'string' },
5526
+ created_at: { format: 'date-time', type: 'string' },
5527
+ display_name: { type: 'string' },
5528
+ external_type: {
5529
+ enum: [
5530
+ 'pti_unit',
5531
+ 'pti_access_level',
5532
+ 'salto_access_group',
5533
+ 'brivo_group',
5534
+ ],
5535
+ type: 'string',
5536
+ },
5537
+ external_type_display_name: { type: 'string' },
5538
+ is_managed: { enum: [false], type: 'boolean' },
5539
+ name: { type: 'string' },
5540
+ workspace_id: { format: 'uuid', type: 'string' },
5541
+ },
5542
+ required: [
5543
+ 'acs_access_group_id',
5544
+ 'acs_system_id',
5545
+ 'workspace_id',
5546
+ 'name',
5547
+ 'access_group_type',
5548
+ 'access_group_type_display_name',
5549
+ 'display_name',
5550
+ 'external_type',
5551
+ 'external_type_display_name',
5552
+ 'created_at',
5553
+ 'is_managed',
5554
+ ],
5555
+ type: 'object',
5556
+ },
5557
+ ok: { type: 'boolean' },
5558
+ },
5559
+ required: ['acs_access_group', 'ok'],
5560
+ type: 'object',
5561
+ },
5562
+ },
5563
+ },
5564
+ description: 'OK',
5565
+ },
5566
+ 400: { description: 'Bad Request' },
5567
+ 401: { description: 'Unauthorized' },
5568
+ },
5569
+ security: [
5570
+ { pat_with_workspace: [] },
5571
+ { console_session: [] },
5572
+ { api_key: [] },
5573
+ ],
5574
+ summary: '/acs/access_groups/unmanaged/get',
5575
+ tags: ['/acs'],
5576
+ 'x-fern-sdk-group-name': ['acs', 'access_groups', 'unmanaged'],
5577
+ 'x-fern-sdk-method-name': 'get',
5578
+ 'x-fern-sdk-return-value': 'acs_access_group',
5579
+ },
5580
+ },
5581
+ '/acs/access_groups/unmanaged/list': {
5582
+ post: {
5583
+ operationId: 'acsAccessGroupsUnmanagedListPost',
5584
+ requestBody: {
5585
+ content: {
5586
+ 'application/json': {
5587
+ schema: {
5588
+ properties: {
5589
+ acs_system_id: { format: 'uuid', type: 'string' },
5590
+ acs_user_id: { format: 'uuid', type: 'string' },
5591
+ },
5592
+ type: 'object',
5593
+ },
5594
+ },
5595
+ },
5596
+ },
5597
+ responses: {
5598
+ 200: {
5599
+ content: {
5600
+ 'application/json': {
5601
+ schema: {
5602
+ properties: {
5603
+ acs_access_groups: {
5604
+ items: {
5605
+ properties: {
5606
+ access_group_type: {
5607
+ deprecated: true,
5608
+ enum: [
5609
+ 'pti_unit',
5610
+ 'pti_access_level',
5611
+ 'salto_access_group',
5612
+ 'brivo_group',
5613
+ ],
5614
+ type: 'string',
5615
+ 'x-deprecated': 'use external_type',
5616
+ },
5617
+ access_group_type_display_name: {
5618
+ deprecated: true,
5619
+ type: 'string',
5620
+ 'x-deprecated': 'use external_type_display_name',
5621
+ },
5622
+ acs_access_group_id: {
5623
+ format: 'uuid',
5624
+ type: 'string',
5625
+ },
5626
+ acs_system_id: { format: 'uuid', type: 'string' },
5627
+ created_at: { format: 'date-time', type: 'string' },
5628
+ display_name: { type: 'string' },
5629
+ external_type: {
5630
+ enum: [
5631
+ 'pti_unit',
5632
+ 'pti_access_level',
5633
+ 'salto_access_group',
5634
+ 'brivo_group',
5635
+ ],
5636
+ type: 'string',
5637
+ },
5638
+ external_type_display_name: { type: 'string' },
5639
+ is_managed: { enum: [false], type: 'boolean' },
5640
+ name: { type: 'string' },
5641
+ workspace_id: { format: 'uuid', type: 'string' },
5642
+ },
5643
+ required: [
5644
+ 'acs_access_group_id',
5645
+ 'acs_system_id',
5646
+ 'workspace_id',
5647
+ 'name',
5648
+ 'access_group_type',
5649
+ 'access_group_type_display_name',
5650
+ 'display_name',
5651
+ 'external_type',
5652
+ 'external_type_display_name',
5653
+ 'created_at',
5654
+ 'is_managed',
5655
+ ],
5656
+ type: 'object',
5657
+ },
5658
+ type: 'array',
5659
+ },
5660
+ ok: { type: 'boolean' },
5661
+ },
5662
+ required: ['acs_access_groups', 'ok'],
5663
+ type: 'object',
5664
+ },
5665
+ },
5666
+ },
5667
+ description: 'OK',
5668
+ },
5669
+ 400: { description: 'Bad Request' },
5670
+ 401: { description: 'Unauthorized' },
5671
+ },
5672
+ security: [
5673
+ { pat_with_workspace: [] },
5674
+ { console_session: [] },
5675
+ { api_key: [] },
5676
+ ],
5677
+ summary: '/acs/access_groups/unmanaged/list',
5678
+ tags: ['/acs'],
5679
+ 'x-fern-sdk-group-name': ['acs', 'access_groups', 'unmanaged'],
5680
+ 'x-fern-sdk-method-name': 'list',
5681
+ 'x-fern-sdk-return-value': 'acs_access_groups',
5682
+ },
5683
+ },
5482
5684
  '/acs/credential_pools/list': {
5483
5685
  post: {
5484
5686
  operationId: 'acsCredentialPoolsListPost',
@@ -7403,7 +7605,95 @@ export default {
7403
7605
  'application/json': {
7404
7606
  schema: {
7405
7607
  properties: {
7406
- acs_user: { $ref: '#/components/schemas/acs_user' },
7608
+ acs_user: {
7609
+ properties: {
7610
+ access_schedule: {
7611
+ properties: {
7612
+ ends_at: { format: 'date-time', type: 'string' },
7613
+ starts_at: { format: 'date-time', type: 'string' },
7614
+ },
7615
+ required: ['starts_at', 'ends_at'],
7616
+ type: 'object',
7617
+ },
7618
+ acs_system_id: { format: 'uuid', type: 'string' },
7619
+ acs_user_id: { format: 'uuid', type: 'string' },
7620
+ created_at: { format: 'date-time', type: 'string' },
7621
+ display_name: { type: 'string' },
7622
+ email: {
7623
+ deprecated: true,
7624
+ format: 'email',
7625
+ type: 'string',
7626
+ 'x-deprecated': 'use email_address.',
7627
+ },
7628
+ email_address: { format: 'email', type: 'string' },
7629
+ external_type: {
7630
+ enum: [
7631
+ 'pti_user',
7632
+ 'brivo_user',
7633
+ 'hid_credential_manager_user',
7634
+ 'salto_site_user',
7635
+ 'latch_user',
7636
+ ],
7637
+ type: 'string',
7638
+ },
7639
+ external_type_display_name: { type: 'string' },
7640
+ full_name: { type: 'string' },
7641
+ hid_acs_system_id: { format: 'uuid', type: 'string' },
7642
+ is_latest_desired_state_synced_with_provider: {
7643
+ type: 'boolean',
7644
+ },
7645
+ is_managed: { enum: [false], type: 'boolean' },
7646
+ is_suspended: { type: 'boolean' },
7647
+ latest_desired_state_synced_with_provider_at: {
7648
+ format: 'date-time',
7649
+ type: 'string',
7650
+ },
7651
+ phone_number: { type: 'string' },
7652
+ user_identity_email_address: {
7653
+ nullable: true,
7654
+ type: 'string',
7655
+ },
7656
+ user_identity_full_name: {
7657
+ nullable: true,
7658
+ type: 'string',
7659
+ },
7660
+ user_identity_id: { type: 'string' },
7661
+ user_identity_phone_number: {
7662
+ nullable: true,
7663
+ type: 'string',
7664
+ },
7665
+ warnings: {
7666
+ items: {
7667
+ properties: {
7668
+ created_at: {
7669
+ format: 'date-time',
7670
+ type: 'string',
7671
+ },
7672
+ message: { type: 'string' },
7673
+ warning_code: {
7674
+ enum: ['being_deleted'],
7675
+ type: 'string',
7676
+ },
7677
+ },
7678
+ required: ['created_at', 'message', 'warning_code'],
7679
+ type: 'object',
7680
+ },
7681
+ type: 'array',
7682
+ },
7683
+ workspace_id: { format: 'uuid', type: 'string' },
7684
+ },
7685
+ required: [
7686
+ 'acs_user_id',
7687
+ 'acs_system_id',
7688
+ 'workspace_id',
7689
+ 'created_at',
7690
+ 'display_name',
7691
+ 'is_suspended',
7692
+ 'warnings',
7693
+ 'is_managed',
7694
+ ],
7695
+ type: 'object',
7696
+ },
7407
7697
  ok: { type: 'boolean' },
7408
7698
  },
7409
7699
  required: ['acs_user', 'ok'],
@@ -2359,6 +2359,7 @@ export interface Routes {
2359
2359
  | 'brivo_group'
2360
2360
  external_type_display_name: string
2361
2361
  created_at: string
2362
+ is_managed: true
2362
2363
  }
2363
2364
  }
2364
2365
  }
@@ -2396,6 +2397,7 @@ export interface Routes {
2396
2397
  | 'brivo_group'
2397
2398
  external_type_display_name: string
2398
2399
  created_at: string
2400
+ is_managed: true
2399
2401
  }>
2400
2402
  }
2401
2403
  }
@@ -2513,6 +2515,81 @@ export interface Routes {
2513
2515
  formData: {}
2514
2516
  jsonResponse: {}
2515
2517
  }
2518
+ '/acs/access_groups/unmanaged/get': {
2519
+ route: '/acs/access_groups/unmanaged/get'
2520
+ method: 'GET' | 'POST'
2521
+ queryParams: {}
2522
+ jsonBody: {}
2523
+ commonParams: {
2524
+ acs_access_group_id: string
2525
+ }
2526
+ formData: {}
2527
+ jsonResponse: {
2528
+ acs_access_group: {
2529
+ acs_access_group_id: string
2530
+ acs_system_id: string
2531
+ workspace_id: string
2532
+ name: string
2533
+ /**
2534
+ * @deprecated use external_type */
2535
+ access_group_type:
2536
+ | 'pti_unit'
2537
+ | 'pti_access_level'
2538
+ | 'salto_access_group'
2539
+ | 'brivo_group'
2540
+ /**
2541
+ * @deprecated use external_type_display_name */
2542
+ access_group_type_display_name: string
2543
+ display_name: string
2544
+ external_type:
2545
+ | 'pti_unit'
2546
+ | 'pti_access_level'
2547
+ | 'salto_access_group'
2548
+ | 'brivo_group'
2549
+ external_type_display_name: string
2550
+ created_at: string
2551
+ is_managed: false
2552
+ }
2553
+ }
2554
+ }
2555
+ '/acs/access_groups/unmanaged/list': {
2556
+ route: '/acs/access_groups/unmanaged/list'
2557
+ method: 'GET' | 'POST'
2558
+ queryParams: {}
2559
+ jsonBody: {}
2560
+ commonParams: {
2561
+ acs_system_id?: string | undefined
2562
+ acs_user_id?: string | undefined
2563
+ }
2564
+ formData: {}
2565
+ jsonResponse: {
2566
+ acs_access_groups: Array<{
2567
+ acs_access_group_id: string
2568
+ acs_system_id: string
2569
+ workspace_id: string
2570
+ name: string
2571
+ /**
2572
+ * @deprecated use external_type */
2573
+ access_group_type:
2574
+ | 'pti_unit'
2575
+ | 'pti_access_level'
2576
+ | 'salto_access_group'
2577
+ | 'brivo_group'
2578
+ /**
2579
+ * @deprecated use external_type_display_name */
2580
+ access_group_type_display_name: string
2581
+ display_name: string
2582
+ external_type:
2583
+ | 'pti_unit'
2584
+ | 'pti_access_level'
2585
+ | 'salto_access_group'
2586
+ | 'brivo_group'
2587
+ external_type_display_name: string
2588
+ created_at: string
2589
+ is_managed: false
2590
+ }>
2591
+ }
2592
+ }
2516
2593
  '/acs/credential_pools/list': {
2517
2594
  route: '/acs/credential_pools/list'
2518
2595
  method: 'GET' | 'POST'
@@ -3982,7 +4059,7 @@ export interface Routes {
3982
4059
  email?: string | undefined
3983
4060
  email_address?: string | undefined
3984
4061
  phone_number?: string | undefined
3985
- is_managed: true
4062
+ is_managed: false
3986
4063
  }
3987
4064
  }
3988
4065
  }
@@ -4,7 +4,6 @@ export {
4
4
  acs_credential,
5
5
  acs_entrance,
6
6
  acs_system,
7
- acs_unmanaged_user,
8
7
  acs_user,
9
8
  action_attempt,
10
9
  client_session,
@@ -17,7 +16,9 @@ export {
17
16
  noise_threshold,
18
17
  seam_event,
19
18
  unmanaged_access_code,
19
+ unmanaged_acs_access_group,
20
20
  unmanaged_acs_credential,
21
+ unmanaged_acs_user,
21
22
  unmanaged_device,
22
23
  user_identity,
23
24
  webhook,