@seamapi/types 1.477.0 → 1.478.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.
- package/dist/connect.cjs +67 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +226 -0
- package/dist/index.cjs +67 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +236 -0
- package/lib/seam/connect/models/batch.js +3 -0
- package/lib/seam/connect/models/batch.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +24 -0
- package/lib/seam/connect/openapi.js +16 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +84 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/batch.ts +3 -0
- package/src/lib/seam/connect/openapi.ts +16 -0
- package/src/lib/seam/connect/route-types.ts +88 -0
|
@@ -16903,6 +16903,48 @@ export type Routes = {
|
|
|
16903
16903
|
/** The actual PIN code for code access methods. */
|
|
16904
16904
|
code?: string | undefined;
|
|
16905
16905
|
}[] | undefined;
|
|
16906
|
+
access_grants?: {
|
|
16907
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
16908
|
+
workspace_id: string;
|
|
16909
|
+
/** ID of the Access Grant. */
|
|
16910
|
+
access_grant_id: string;
|
|
16911
|
+
/** Unique key for the access grant within the workspace. */
|
|
16912
|
+
access_grant_key?: string | undefined;
|
|
16913
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
16914
|
+
user_identity_id: string;
|
|
16915
|
+
/**
|
|
16916
|
+
* @deprecated Use `space_ids`.*/
|
|
16917
|
+
location_ids: string[];
|
|
16918
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
16919
|
+
space_ids: string[];
|
|
16920
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
16921
|
+
requested_access_methods: {
|
|
16922
|
+
/** Display name of the access method. */
|
|
16923
|
+
display_name: string;
|
|
16924
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
16925
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
16926
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
16927
|
+
created_at: string;
|
|
16928
|
+
/** IDs of the access methods created for the requested access method. */
|
|
16929
|
+
created_access_method_ids: string[];
|
|
16930
|
+
}[];
|
|
16931
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
16932
|
+
access_method_ids: string[];
|
|
16933
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
16934
|
+
client_session_token?: string | undefined;
|
|
16935
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
16936
|
+
name: string | null;
|
|
16937
|
+
/** Display name of the Access Grant. */
|
|
16938
|
+
display_name: string;
|
|
16939
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
16940
|
+
instant_key_url?: string | undefined;
|
|
16941
|
+
/** Date and time at which the Access Grant was created. */
|
|
16942
|
+
created_at: string;
|
|
16943
|
+
/** Date and time at which the Access Grant starts. */
|
|
16944
|
+
starts_at: string;
|
|
16945
|
+
/** Date and time at which the Access Grant ends. */
|
|
16946
|
+
ends_at: string | null;
|
|
16947
|
+
}[] | undefined;
|
|
16906
16948
|
};
|
|
16907
16949
|
};
|
|
16908
16950
|
};
|
|
@@ -79551,6 +79593,48 @@ export type Routes = {
|
|
|
79551
79593
|
/** The actual PIN code for code access methods. */
|
|
79552
79594
|
code?: string | undefined;
|
|
79553
79595
|
}[] | undefined;
|
|
79596
|
+
access_grants?: {
|
|
79597
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
79598
|
+
workspace_id: string;
|
|
79599
|
+
/** ID of the Access Grant. */
|
|
79600
|
+
access_grant_id: string;
|
|
79601
|
+
/** Unique key for the access grant within the workspace. */
|
|
79602
|
+
access_grant_key?: string | undefined;
|
|
79603
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
79604
|
+
user_identity_id: string;
|
|
79605
|
+
/**
|
|
79606
|
+
* @deprecated Use `space_ids`.*/
|
|
79607
|
+
location_ids: string[];
|
|
79608
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
79609
|
+
space_ids: string[];
|
|
79610
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
79611
|
+
requested_access_methods: {
|
|
79612
|
+
/** Display name of the access method. */
|
|
79613
|
+
display_name: string;
|
|
79614
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
79615
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
79616
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
79617
|
+
created_at: string;
|
|
79618
|
+
/** IDs of the access methods created for the requested access method. */
|
|
79619
|
+
created_access_method_ids: string[];
|
|
79620
|
+
}[];
|
|
79621
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
79622
|
+
access_method_ids: string[];
|
|
79623
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
79624
|
+
client_session_token?: string | undefined;
|
|
79625
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
79626
|
+
name: string | null;
|
|
79627
|
+
/** Display name of the Access Grant. */
|
|
79628
|
+
display_name: string;
|
|
79629
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
79630
|
+
instant_key_url?: string | undefined;
|
|
79631
|
+
/** Date and time at which the Access Grant was created. */
|
|
79632
|
+
created_at: string;
|
|
79633
|
+
/** Date and time at which the Access Grant starts. */
|
|
79634
|
+
starts_at: string;
|
|
79635
|
+
/** Date and time at which the Access Grant ends. */
|
|
79636
|
+
ends_at: string | null;
|
|
79637
|
+
}[] | undefined;
|
|
79554
79638
|
};
|
|
79555
79639
|
};
|
|
79556
79640
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { access_grant } from './access-grants/access-grant.js'
|
|
3
4
|
import { access_method } from './access-grants/access-method.js'
|
|
4
5
|
import {
|
|
5
6
|
acs_access_group,
|
|
@@ -65,6 +66,7 @@ export const workspaces_batch = z
|
|
|
65
66
|
unmanaged_devices: unmanaged_device.array().optional(),
|
|
66
67
|
connect_webviews: connect_webview.array().optional(),
|
|
67
68
|
access_methods: access_method.array().optional(),
|
|
69
|
+
access_grants: access_grant.array().optional(),
|
|
68
70
|
})
|
|
69
71
|
.describe('A batch of workspace resources.')
|
|
70
72
|
|
|
@@ -92,6 +94,7 @@ export const batch = z
|
|
|
92
94
|
unmanaged_devices: unmanaged_device.array().optional(),
|
|
93
95
|
connect_webviews: connect_webview.array().optional(),
|
|
94
96
|
access_methods: access_method.array().optional(),
|
|
97
|
+
access_grants: access_grant.array().optional(),
|
|
95
98
|
})
|
|
96
99
|
.describe('A batch of workspace resources.')
|
|
97
100
|
|
|
@@ -29150,6 +29150,10 @@ export default {
|
|
|
29150
29150
|
batch: {
|
|
29151
29151
|
description: 'A batch of workspace resources.',
|
|
29152
29152
|
properties: {
|
|
29153
|
+
access_grants: {
|
|
29154
|
+
items: { $ref: '#/components/schemas/access_grant' },
|
|
29155
|
+
type: 'array',
|
|
29156
|
+
},
|
|
29153
29157
|
access_methods: {
|
|
29154
29158
|
items: { $ref: '#/components/schemas/access_method' },
|
|
29155
29159
|
type: 'array',
|
|
@@ -29313,6 +29317,10 @@ export default {
|
|
|
29313
29317
|
batch: {
|
|
29314
29318
|
description: 'A batch of workspace resources.',
|
|
29315
29319
|
properties: {
|
|
29320
|
+
access_grants: {
|
|
29321
|
+
items: { $ref: '#/components/schemas/access_grant' },
|
|
29322
|
+
type: 'array',
|
|
29323
|
+
},
|
|
29316
29324
|
access_methods: {
|
|
29317
29325
|
items: { $ref: '#/components/schemas/access_method' },
|
|
29318
29326
|
type: 'array',
|
|
@@ -56514,6 +56522,10 @@ export default {
|
|
|
56514
56522
|
batch: {
|
|
56515
56523
|
description: 'A batch of workspace resources.',
|
|
56516
56524
|
properties: {
|
|
56525
|
+
access_grants: {
|
|
56526
|
+
items: { $ref: '#/components/schemas/access_grant' },
|
|
56527
|
+
type: 'array',
|
|
56528
|
+
},
|
|
56517
56529
|
access_methods: {
|
|
56518
56530
|
items: { $ref: '#/components/schemas/access_method' },
|
|
56519
56531
|
type: 'array',
|
|
@@ -56652,6 +56664,10 @@ export default {
|
|
|
56652
56664
|
batch: {
|
|
56653
56665
|
description: 'A batch of workspace resources.',
|
|
56654
56666
|
properties: {
|
|
56667
|
+
access_grants: {
|
|
56668
|
+
items: { $ref: '#/components/schemas/access_grant' },
|
|
56669
|
+
type: 'array',
|
|
56670
|
+
},
|
|
56655
56671
|
access_methods: {
|
|
56656
56672
|
items: { $ref: '#/components/schemas/access_method' },
|
|
56657
56673
|
type: 'array',
|
|
@@ -19578,6 +19578,50 @@ export type Routes = {
|
|
|
19578
19578
|
code?: string | undefined
|
|
19579
19579
|
}[]
|
|
19580
19580
|
| undefined
|
|
19581
|
+
access_grants?:
|
|
19582
|
+
| {
|
|
19583
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
19584
|
+
workspace_id: string
|
|
19585
|
+
/** ID of the Access Grant. */
|
|
19586
|
+
access_grant_id: string
|
|
19587
|
+
/** Unique key for the access grant within the workspace. */
|
|
19588
|
+
access_grant_key?: string | undefined
|
|
19589
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
19590
|
+
user_identity_id: string
|
|
19591
|
+
/**
|
|
19592
|
+
* @deprecated Use `space_ids`.*/
|
|
19593
|
+
location_ids: string[]
|
|
19594
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
19595
|
+
space_ids: string[]
|
|
19596
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
19597
|
+
requested_access_methods: {
|
|
19598
|
+
/** Display name of the access method. */
|
|
19599
|
+
display_name: string
|
|
19600
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
19601
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
19602
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
19603
|
+
created_at: string
|
|
19604
|
+
/** IDs of the access methods created for the requested access method. */
|
|
19605
|
+
created_access_method_ids: string[]
|
|
19606
|
+
}[]
|
|
19607
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
19608
|
+
access_method_ids: string[]
|
|
19609
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
19610
|
+
client_session_token?: string | undefined
|
|
19611
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
19612
|
+
name: string | null
|
|
19613
|
+
/** Display name of the Access Grant. */
|
|
19614
|
+
display_name: string
|
|
19615
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
19616
|
+
instant_key_url?: string | undefined
|
|
19617
|
+
/** Date and time at which the Access Grant was created. */
|
|
19618
|
+
created_at: string
|
|
19619
|
+
/** Date and time at which the Access Grant starts. */
|
|
19620
|
+
starts_at: string
|
|
19621
|
+
/** Date and time at which the Access Grant ends. */
|
|
19622
|
+
ends_at: string | null
|
|
19623
|
+
}[]
|
|
19624
|
+
| undefined
|
|
19581
19625
|
}
|
|
19582
19626
|
}
|
|
19583
19627
|
}
|
|
@@ -94519,6 +94563,50 @@ export type Routes = {
|
|
|
94519
94563
|
code?: string | undefined
|
|
94520
94564
|
}[]
|
|
94521
94565
|
| undefined
|
|
94566
|
+
access_grants?:
|
|
94567
|
+
| {
|
|
94568
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
94569
|
+
workspace_id: string
|
|
94570
|
+
/** ID of the Access Grant. */
|
|
94571
|
+
access_grant_id: string
|
|
94572
|
+
/** Unique key for the access grant within the workspace. */
|
|
94573
|
+
access_grant_key?: string | undefined
|
|
94574
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
94575
|
+
user_identity_id: string
|
|
94576
|
+
/**
|
|
94577
|
+
* @deprecated Use `space_ids`.*/
|
|
94578
|
+
location_ids: string[]
|
|
94579
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
94580
|
+
space_ids: string[]
|
|
94581
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
94582
|
+
requested_access_methods: {
|
|
94583
|
+
/** Display name of the access method. */
|
|
94584
|
+
display_name: string
|
|
94585
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
94586
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
94587
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
94588
|
+
created_at: string
|
|
94589
|
+
/** IDs of the access methods created for the requested access method. */
|
|
94590
|
+
created_access_method_ids: string[]
|
|
94591
|
+
}[]
|
|
94592
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
94593
|
+
access_method_ids: string[]
|
|
94594
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
94595
|
+
client_session_token?: string | undefined
|
|
94596
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
94597
|
+
name: string | null
|
|
94598
|
+
/** Display name of the Access Grant. */
|
|
94599
|
+
display_name: string
|
|
94600
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
94601
|
+
instant_key_url?: string | undefined
|
|
94602
|
+
/** Date and time at which the Access Grant was created. */
|
|
94603
|
+
created_at: string
|
|
94604
|
+
/** Date and time at which the Access Grant starts. */
|
|
94605
|
+
starts_at: string
|
|
94606
|
+
/** Date and time at which the Access Grant ends. */
|
|
94607
|
+
ends_at: string | null
|
|
94608
|
+
}[]
|
|
94609
|
+
| undefined
|
|
94522
94610
|
}
|
|
94523
94611
|
}
|
|
94524
94612
|
}
|