@seamapi/types 1.516.0 → 1.518.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 +77 -13
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +98 -26
- package/dist/index.cjs +77 -13
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +5 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.js +7 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +14 -0
- package/lib/seam/connect/openapi.d.ts +64 -23
- package/lib/seam/connect/openapi.js +74 -13
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +22 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +9 -0
- package/src/lib/seam/connect/openapi.ts +81 -14
- package/src/lib/seam/connect/route-types.ts +22 -3
|
@@ -9995,6 +9995,8 @@ export type Routes = {
|
|
|
9995
9995
|
requested_access_methods: {
|
|
9996
9996
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
9997
9997
|
mode: 'code' | 'card' | 'mobile_key';
|
|
9998
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
9999
|
+
code?: string | undefined;
|
|
9998
10000
|
}[];
|
|
9999
10001
|
/** Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
10000
10002
|
starts_at?: string | undefined;
|
|
@@ -10026,6 +10028,8 @@ export type Routes = {
|
|
|
10026
10028
|
display_name: string;
|
|
10027
10029
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
10028
10030
|
mode: 'code' | 'card' | 'mobile_key';
|
|
10031
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
10032
|
+
code?: string | undefined;
|
|
10029
10033
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
10030
10034
|
created_at: string;
|
|
10031
10035
|
/** IDs of the access methods created for the requested access method. */
|
|
@@ -10099,6 +10103,8 @@ export type Routes = {
|
|
|
10099
10103
|
display_name: string;
|
|
10100
10104
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
10101
10105
|
mode: 'code' | 'card' | 'mobile_key';
|
|
10106
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
10107
|
+
code?: string | undefined;
|
|
10102
10108
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
10103
10109
|
created_at: string;
|
|
10104
10110
|
/** IDs of the access methods created for the requested access method. */
|
|
@@ -11774,6 +11780,8 @@ export type Routes = {
|
|
|
11774
11780
|
queryParams: {};
|
|
11775
11781
|
jsonBody: {};
|
|
11776
11782
|
commonParams: {
|
|
11783
|
+
/** Customer key for which you want to list access grants. */
|
|
11784
|
+
customer_key?: string | undefined;
|
|
11777
11785
|
/** ID of user identity by which you want to filter the list of Access Grants. */
|
|
11778
11786
|
user_identity_id?: string | undefined;
|
|
11779
11787
|
/** ID of the access system by which you want to filter the list of Access Grants. */
|
|
@@ -11810,6 +11818,8 @@ export type Routes = {
|
|
|
11810
11818
|
display_name: string;
|
|
11811
11819
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
11812
11820
|
mode: 'code' | 'card' | 'mobile_key';
|
|
11821
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
11822
|
+
code?: string | undefined;
|
|
11813
11823
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
11814
11824
|
created_at: string;
|
|
11815
11825
|
/** IDs of the access methods created for the requested access method. */
|
|
@@ -17186,6 +17196,8 @@ export type Routes = {
|
|
|
17186
17196
|
display_name: string;
|
|
17187
17197
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
17188
17198
|
mode: 'code' | 'card' | 'mobile_key';
|
|
17199
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
17200
|
+
code?: string | undefined;
|
|
17189
17201
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
17190
17202
|
created_at: string;
|
|
17191
17203
|
/** IDs of the access methods created for the requested access method. */
|
|
@@ -36770,6 +36782,8 @@ export type Routes = {
|
|
|
36770
36782
|
queryParams: {};
|
|
36771
36783
|
jsonBody: {};
|
|
36772
36784
|
commonParams: {
|
|
36785
|
+
/** Customer key for which you want to list events. */
|
|
36786
|
+
customer_key?: string | undefined;
|
|
36773
36787
|
/** Offset for the events that you want to list. */
|
|
36774
36788
|
unstable_offset?: number | undefined;
|
|
36775
36789
|
/** Timestamp to indicate the beginning generation time for the events that you want to list. You must include `since` or `between`. */
|
|
@@ -36800,8 +36814,6 @@ export type Routes = {
|
|
|
36800
36814
|
limit?: number;
|
|
36801
36815
|
/** IDs of the events that you want to list. */
|
|
36802
36816
|
event_ids?: string[] | undefined;
|
|
36803
|
-
/** IDs of the customers for which you want to list events. */
|
|
36804
|
-
customer_ids?: string[] | undefined;
|
|
36805
36817
|
};
|
|
36806
36818
|
formData: {};
|
|
36807
36819
|
jsonResponse: {
|
|
@@ -59711,6 +59723,8 @@ export type Routes = {
|
|
|
59711
59723
|
queryParams: {};
|
|
59712
59724
|
jsonBody: {};
|
|
59713
59725
|
commonParams: {
|
|
59726
|
+
/** Customer key for which you want to list spaces. */
|
|
59727
|
+
customer_key?: string | undefined;
|
|
59714
59728
|
/** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */
|
|
59715
59729
|
search?: string | undefined;
|
|
59716
59730
|
/** Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account. */
|
|
@@ -78718,7 +78732,10 @@ export type Routes = {
|
|
|
78718
78732
|
method: 'POST' | 'GET';
|
|
78719
78733
|
queryParams: {};
|
|
78720
78734
|
jsonBody: {};
|
|
78721
|
-
commonParams: {
|
|
78735
|
+
commonParams: {
|
|
78736
|
+
/** Customer key for which you want to list customization profiles. */
|
|
78737
|
+
customer_key?: string | undefined;
|
|
78738
|
+
};
|
|
78722
78739
|
formData: {};
|
|
78723
78740
|
jsonResponse: {
|
|
78724
78741
|
customization_profiles: {
|
|
@@ -82772,6 +82789,8 @@ export type Routes = {
|
|
|
82772
82789
|
display_name: string;
|
|
82773
82790
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
82774
82791
|
mode: 'code' | 'card' | 'mobile_key';
|
|
82792
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
82793
|
+
code?: string | undefined;
|
|
82775
82794
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
82776
82795
|
created_at: string;
|
|
82777
82796
|
/** IDs of the access methods created for the requested access method. */
|
package/package.json
CHANGED
|
@@ -7,6 +7,15 @@ export const requested_access_method = z.object({
|
|
|
7
7
|
.describe(
|
|
8
8
|
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
|
|
9
9
|
),
|
|
10
|
+
code: z
|
|
11
|
+
.string()
|
|
12
|
+
.min(4)
|
|
13
|
+
.max(9)
|
|
14
|
+
.regex(/^\d+$/, 'Must only contain digits')
|
|
15
|
+
.optional()
|
|
16
|
+
.describe(
|
|
17
|
+
"Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
|
|
18
|
+
),
|
|
10
19
|
created_at: z
|
|
11
20
|
.string()
|
|
12
21
|
.datetime()
|
|
@@ -1889,6 +1889,14 @@ export default {
|
|
|
1889
1889
|
'Access methods that the user requested for the Access Grant.',
|
|
1890
1890
|
items: {
|
|
1891
1891
|
properties: {
|
|
1892
|
+
code: {
|
|
1893
|
+
description:
|
|
1894
|
+
"Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
|
|
1895
|
+
maxLength: 9,
|
|
1896
|
+
minLength: 4,
|
|
1897
|
+
pattern: '^\\d+$',
|
|
1898
|
+
type: 'string',
|
|
1899
|
+
},
|
|
1892
1900
|
created_access_method_ids: {
|
|
1893
1901
|
description:
|
|
1894
1902
|
'IDs of the access methods created for the requested access method.',
|
|
@@ -27974,6 +27982,14 @@ export default {
|
|
|
27974
27982
|
requested_access_methods: {
|
|
27975
27983
|
items: {
|
|
27976
27984
|
properties: {
|
|
27985
|
+
code: {
|
|
27986
|
+
description:
|
|
27987
|
+
"Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
|
|
27988
|
+
maxLength: 9,
|
|
27989
|
+
minLength: 4,
|
|
27990
|
+
pattern: '^\\d+$',
|
|
27991
|
+
type: 'string',
|
|
27992
|
+
},
|
|
27977
27993
|
mode: {
|
|
27978
27994
|
description:
|
|
27979
27995
|
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
|
|
@@ -28511,6 +28527,15 @@ export default {
|
|
|
28511
28527
|
description: 'Gets an Access Grant.',
|
|
28512
28528
|
operationId: 'accessGrantsListGet',
|
|
28513
28529
|
parameters: [
|
|
28530
|
+
{
|
|
28531
|
+
in: 'query',
|
|
28532
|
+
name: 'customer_key',
|
|
28533
|
+
schema: {
|
|
28534
|
+
description:
|
|
28535
|
+
'Customer key for which you want to list access grants.',
|
|
28536
|
+
type: 'string',
|
|
28537
|
+
},
|
|
28538
|
+
},
|
|
28514
28539
|
{
|
|
28515
28540
|
in: 'query',
|
|
28516
28541
|
name: 'user_identity_id',
|
|
@@ -28631,6 +28656,11 @@ export default {
|
|
|
28631
28656
|
format: 'uuid',
|
|
28632
28657
|
type: 'string',
|
|
28633
28658
|
},
|
|
28659
|
+
customer_key: {
|
|
28660
|
+
description:
|
|
28661
|
+
'Customer key for which you want to list access grants.',
|
|
28662
|
+
type: 'string',
|
|
28663
|
+
},
|
|
28634
28664
|
location_id: {
|
|
28635
28665
|
deprecated: true,
|
|
28636
28666
|
format: 'uuid',
|
|
@@ -42742,6 +42772,14 @@ export default {
|
|
|
42742
42772
|
'Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://docs.seam.co/latest/developer-tools/webhooks), but it enables you to filter or see events that already took place.',
|
|
42743
42773
|
operationId: 'eventsListGet',
|
|
42744
42774
|
parameters: [
|
|
42775
|
+
{
|
|
42776
|
+
in: 'query',
|
|
42777
|
+
name: 'customer_key',
|
|
42778
|
+
schema: {
|
|
42779
|
+
description: 'Customer key for which you want to list events.',
|
|
42780
|
+
type: 'string',
|
|
42781
|
+
},
|
|
42782
|
+
},
|
|
42745
42783
|
{
|
|
42746
42784
|
in: 'query',
|
|
42747
42785
|
name: 'unstable_offset',
|
|
@@ -43079,16 +43117,6 @@ export default {
|
|
|
43079
43117
|
type: 'array',
|
|
43080
43118
|
},
|
|
43081
43119
|
},
|
|
43082
|
-
{
|
|
43083
|
-
in: 'query',
|
|
43084
|
-
name: 'customer_ids',
|
|
43085
|
-
schema: {
|
|
43086
|
-
description:
|
|
43087
|
-
'IDs of the customers for which you want to list events.',
|
|
43088
|
-
items: { format: 'uuid', type: 'string' },
|
|
43089
|
-
type: 'array',
|
|
43090
|
-
},
|
|
43091
|
-
},
|
|
43092
43120
|
],
|
|
43093
43121
|
responses: {
|
|
43094
43122
|
200: {
|
|
@@ -43185,11 +43213,10 @@ export default {
|
|
|
43185
43213
|
format: 'uuid',
|
|
43186
43214
|
type: 'string',
|
|
43187
43215
|
},
|
|
43188
|
-
|
|
43216
|
+
customer_key: {
|
|
43189
43217
|
description:
|
|
43190
|
-
'
|
|
43191
|
-
|
|
43192
|
-
type: 'array',
|
|
43218
|
+
'Customer key for which you want to list events.',
|
|
43219
|
+
type: 'string',
|
|
43193
43220
|
},
|
|
43194
43221
|
device_id: {
|
|
43195
43222
|
description:
|
|
@@ -50514,6 +50541,14 @@ export default {
|
|
|
50514
50541
|
description: 'Returns a list of all spaces.',
|
|
50515
50542
|
operationId: 'spacesListGet',
|
|
50516
50543
|
parameters: [
|
|
50544
|
+
{
|
|
50545
|
+
in: 'query',
|
|
50546
|
+
name: 'customer_key',
|
|
50547
|
+
schema: {
|
|
50548
|
+
description: 'Customer key for which you want to list spaces.',
|
|
50549
|
+
type: 'string',
|
|
50550
|
+
},
|
|
50551
|
+
},
|
|
50517
50552
|
{
|
|
50518
50553
|
in: 'query',
|
|
50519
50554
|
name: 'search',
|
|
@@ -50598,6 +50633,11 @@ export default {
|
|
|
50598
50633
|
'x-draft': 'Needs review.',
|
|
50599
50634
|
'x-undocumented': 'Only used internally.',
|
|
50600
50635
|
},
|
|
50636
|
+
customer_key: {
|
|
50637
|
+
description:
|
|
50638
|
+
'Customer key for which you want to list spaces.',
|
|
50639
|
+
type: 'string',
|
|
50640
|
+
},
|
|
50601
50641
|
search: {
|
|
50602
50642
|
description:
|
|
50603
50643
|
'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.',
|
|
@@ -57314,6 +57354,17 @@ export default {
|
|
|
57314
57354
|
get: {
|
|
57315
57355
|
description: 'Retrieves the customization profile for the workspace.',
|
|
57316
57356
|
operationId: 'workspacesCustomizationProfilesListGet',
|
|
57357
|
+
parameters: [
|
|
57358
|
+
{
|
|
57359
|
+
in: 'query',
|
|
57360
|
+
name: 'customer_key',
|
|
57361
|
+
schema: {
|
|
57362
|
+
description:
|
|
57363
|
+
'Customer key for which you want to list customization profiles.',
|
|
57364
|
+
type: 'string',
|
|
57365
|
+
},
|
|
57366
|
+
},
|
|
57367
|
+
],
|
|
57317
57368
|
responses: {
|
|
57318
57369
|
200: {
|
|
57319
57370
|
content: {
|
|
@@ -57356,6 +57407,22 @@ export default {
|
|
|
57356
57407
|
post: {
|
|
57357
57408
|
description: 'Retrieves the customization profile for the workspace.',
|
|
57358
57409
|
operationId: 'workspacesCustomizationProfilesListPost',
|
|
57410
|
+
requestBody: {
|
|
57411
|
+
content: {
|
|
57412
|
+
'application/json': {
|
|
57413
|
+
schema: {
|
|
57414
|
+
properties: {
|
|
57415
|
+
customer_key: {
|
|
57416
|
+
description:
|
|
57417
|
+
'Customer key for which you want to list customization profiles.',
|
|
57418
|
+
type: 'string',
|
|
57419
|
+
},
|
|
57420
|
+
},
|
|
57421
|
+
type: 'object',
|
|
57422
|
+
},
|
|
57423
|
+
},
|
|
57424
|
+
},
|
|
57425
|
+
},
|
|
57359
57426
|
responses: {
|
|
57360
57427
|
200: {
|
|
57361
57428
|
content: {
|
|
@@ -11235,6 +11235,8 @@ export type Routes = {
|
|
|
11235
11235
|
requested_access_methods: {
|
|
11236
11236
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
11237
11237
|
mode: 'code' | 'card' | 'mobile_key'
|
|
11238
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
11239
|
+
code?: string | undefined
|
|
11238
11240
|
}[]
|
|
11239
11241
|
/** Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11240
11242
|
starts_at?: string | undefined
|
|
@@ -11266,6 +11268,8 @@ export type Routes = {
|
|
|
11266
11268
|
display_name: string
|
|
11267
11269
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
11268
11270
|
mode: 'code' | 'card' | 'mobile_key'
|
|
11271
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
11272
|
+
code?: string | undefined
|
|
11269
11273
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
11270
11274
|
created_at: string
|
|
11271
11275
|
/** IDs of the access methods created for the requested access method. */
|
|
@@ -11341,6 +11345,8 @@ export type Routes = {
|
|
|
11341
11345
|
display_name: string
|
|
11342
11346
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
11343
11347
|
mode: 'code' | 'card' | 'mobile_key'
|
|
11348
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
11349
|
+
code?: string | undefined
|
|
11344
11350
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
11345
11351
|
created_at: string
|
|
11346
11352
|
/** IDs of the access methods created for the requested access method. */
|
|
@@ -13479,6 +13485,8 @@ export type Routes = {
|
|
|
13479
13485
|
queryParams: {}
|
|
13480
13486
|
jsonBody: {}
|
|
13481
13487
|
commonParams: {
|
|
13488
|
+
/** Customer key for which you want to list access grants. */
|
|
13489
|
+
customer_key?: string | undefined
|
|
13482
13490
|
/** ID of user identity by which you want to filter the list of Access Grants. */
|
|
13483
13491
|
user_identity_id?: string | undefined
|
|
13484
13492
|
/** ID of the access system by which you want to filter the list of Access Grants. */
|
|
@@ -13515,6 +13523,8 @@ export type Routes = {
|
|
|
13515
13523
|
display_name: string
|
|
13516
13524
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
13517
13525
|
mode: 'code' | 'card' | 'mobile_key'
|
|
13526
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
13527
|
+
code?: string | undefined
|
|
13518
13528
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
13519
13529
|
created_at: string
|
|
13520
13530
|
/** IDs of the access methods created for the requested access method. */
|
|
@@ -19966,6 +19976,8 @@ export type Routes = {
|
|
|
19966
19976
|
display_name: string
|
|
19967
19977
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
19968
19978
|
mode: 'code' | 'card' | 'mobile_key'
|
|
19979
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
19980
|
+
code?: string | undefined
|
|
19969
19981
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
19970
19982
|
created_at: string
|
|
19971
19983
|
/** IDs of the access methods created for the requested access method. */
|
|
@@ -43308,6 +43320,8 @@ export type Routes = {
|
|
|
43308
43320
|
queryParams: {}
|
|
43309
43321
|
jsonBody: {}
|
|
43310
43322
|
commonParams: {
|
|
43323
|
+
/** Customer key for which you want to list events. */
|
|
43324
|
+
customer_key?: string | undefined
|
|
43311
43325
|
/** Offset for the events that you want to list. */
|
|
43312
43326
|
unstable_offset?: number | undefined
|
|
43313
43327
|
/** Timestamp to indicate the beginning generation time for the events that you want to list. You must include `since` or `between`. */
|
|
@@ -43524,8 +43538,6 @@ export type Routes = {
|
|
|
43524
43538
|
limit?: number
|
|
43525
43539
|
/** IDs of the events that you want to list. */
|
|
43526
43540
|
event_ids?: string[] | undefined
|
|
43527
|
-
/** IDs of the customers for which you want to list events. */
|
|
43528
|
-
customer_ids?: string[] | undefined
|
|
43529
43541
|
}
|
|
43530
43542
|
formData: {}
|
|
43531
43543
|
jsonResponse: {
|
|
@@ -71182,6 +71194,8 @@ export type Routes = {
|
|
|
71182
71194
|
queryParams: {}
|
|
71183
71195
|
jsonBody: {}
|
|
71184
71196
|
commonParams: {
|
|
71197
|
+
/** Customer key for which you want to list spaces. */
|
|
71198
|
+
customer_key?: string | undefined
|
|
71185
71199
|
/** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */
|
|
71186
71200
|
search?: string | undefined
|
|
71187
71201
|
/** Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account. */
|
|
@@ -93574,7 +93588,10 @@ export type Routes = {
|
|
|
93574
93588
|
method: 'POST' | 'GET'
|
|
93575
93589
|
queryParams: {}
|
|
93576
93590
|
jsonBody: {}
|
|
93577
|
-
commonParams: {
|
|
93591
|
+
commonParams: {
|
|
93592
|
+
/** Customer key for which you want to list customization profiles. */
|
|
93593
|
+
customer_key?: string | undefined
|
|
93594
|
+
}
|
|
93578
93595
|
formData: {}
|
|
93579
93596
|
jsonResponse: {
|
|
93580
93597
|
customization_profiles: {
|
|
@@ -98518,6 +98535,8 @@ export type Routes = {
|
|
|
98518
98535
|
display_name: string
|
|
98519
98536
|
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
98520
98537
|
mode: 'code' | 'card' | 'mobile_key'
|
|
98538
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
98539
|
+
code?: string | undefined
|
|
98521
98540
|
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
98522
98541
|
created_at: string
|
|
98523
98542
|
/** IDs of the access methods created for the requested access method. */
|