@seamapi/types 1.592.0 → 1.594.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 +208 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +370 -0
- package/dist/index.cjs +208 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +255 -0
- package/lib/seam/connect/openapi.js +208 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +115 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +217 -0
- package/src/lib/seam/connect/route-types.ts +115 -0
|
@@ -18487,6 +18487,108 @@ declare const _default: {
|
|
|
18487
18487
|
'x-title': string;
|
|
18488
18488
|
};
|
|
18489
18489
|
};
|
|
18490
|
+
'/access_grants/request_access_methods': {
|
|
18491
|
+
post: {
|
|
18492
|
+
description: string;
|
|
18493
|
+
operationId: string;
|
|
18494
|
+
requestBody: {
|
|
18495
|
+
content: {
|
|
18496
|
+
'application/json': {
|
|
18497
|
+
schema: {
|
|
18498
|
+
properties: {
|
|
18499
|
+
access_grant_id: {
|
|
18500
|
+
description: string;
|
|
18501
|
+
format: string;
|
|
18502
|
+
type: string;
|
|
18503
|
+
};
|
|
18504
|
+
requested_access_methods: {
|
|
18505
|
+
description: string;
|
|
18506
|
+
items: {
|
|
18507
|
+
properties: {
|
|
18508
|
+
code: {
|
|
18509
|
+
description: string;
|
|
18510
|
+
maxLength: number;
|
|
18511
|
+
minLength: number;
|
|
18512
|
+
pattern: string;
|
|
18513
|
+
type: string;
|
|
18514
|
+
};
|
|
18515
|
+
mode: {
|
|
18516
|
+
description: string;
|
|
18517
|
+
enum: string[];
|
|
18518
|
+
type: string;
|
|
18519
|
+
};
|
|
18520
|
+
};
|
|
18521
|
+
required: string[];
|
|
18522
|
+
type: string;
|
|
18523
|
+
};
|
|
18524
|
+
minItems: number;
|
|
18525
|
+
type: string;
|
|
18526
|
+
};
|
|
18527
|
+
};
|
|
18528
|
+
required: string[];
|
|
18529
|
+
type: string;
|
|
18530
|
+
};
|
|
18531
|
+
};
|
|
18532
|
+
};
|
|
18533
|
+
};
|
|
18534
|
+
responses: {
|
|
18535
|
+
200: {
|
|
18536
|
+
content: {
|
|
18537
|
+
'application/json': {
|
|
18538
|
+
schema: {
|
|
18539
|
+
properties: {
|
|
18540
|
+
access_grant: {
|
|
18541
|
+
$ref: string;
|
|
18542
|
+
};
|
|
18543
|
+
ok: {
|
|
18544
|
+
type: string;
|
|
18545
|
+
};
|
|
18546
|
+
};
|
|
18547
|
+
required: string[];
|
|
18548
|
+
type: string;
|
|
18549
|
+
};
|
|
18550
|
+
};
|
|
18551
|
+
};
|
|
18552
|
+
description: string;
|
|
18553
|
+
};
|
|
18554
|
+
400: {
|
|
18555
|
+
description: string;
|
|
18556
|
+
};
|
|
18557
|
+
401: {
|
|
18558
|
+
description: string;
|
|
18559
|
+
};
|
|
18560
|
+
};
|
|
18561
|
+
security: ({
|
|
18562
|
+
pat_with_workspace: never[];
|
|
18563
|
+
console_session_with_workspace?: never;
|
|
18564
|
+
api_key?: never;
|
|
18565
|
+
client_session_with_customer?: never;
|
|
18566
|
+
} | {
|
|
18567
|
+
console_session_with_workspace: never[];
|
|
18568
|
+
pat_with_workspace?: never;
|
|
18569
|
+
api_key?: never;
|
|
18570
|
+
client_session_with_customer?: never;
|
|
18571
|
+
} | {
|
|
18572
|
+
api_key: never[];
|
|
18573
|
+
pat_with_workspace?: never;
|
|
18574
|
+
console_session_with_workspace?: never;
|
|
18575
|
+
client_session_with_customer?: never;
|
|
18576
|
+
} | {
|
|
18577
|
+
client_session_with_customer: never[];
|
|
18578
|
+
pat_with_workspace?: never;
|
|
18579
|
+
console_session_with_workspace?: never;
|
|
18580
|
+
api_key?: never;
|
|
18581
|
+
})[];
|
|
18582
|
+
summary: string;
|
|
18583
|
+
tags: never[];
|
|
18584
|
+
'x-draft': string;
|
|
18585
|
+
'x-fern-sdk-group-name': string[];
|
|
18586
|
+
'x-fern-sdk-method-name': string;
|
|
18587
|
+
'x-fern-sdk-return-value': string;
|
|
18588
|
+
'x-response-key': string;
|
|
18589
|
+
'x-title': string;
|
|
18590
|
+
};
|
|
18591
|
+
};
|
|
18490
18592
|
'/access_grants/unmanaged/get': {
|
|
18491
18593
|
get: {
|
|
18492
18594
|
description: string;
|
|
@@ -43587,6 +43689,159 @@ declare const _default: {
|
|
|
43587
43689
|
'x-title': string;
|
|
43588
43690
|
};
|
|
43589
43691
|
};
|
|
43692
|
+
'/seam/customer/v1/spaces/list': {
|
|
43693
|
+
get: {
|
|
43694
|
+
description: string;
|
|
43695
|
+
operationId: string;
|
|
43696
|
+
parameters: ({
|
|
43697
|
+
in: string;
|
|
43698
|
+
name: string;
|
|
43699
|
+
schema: {
|
|
43700
|
+
description: string;
|
|
43701
|
+
minLength: number;
|
|
43702
|
+
type: string;
|
|
43703
|
+
format?: never;
|
|
43704
|
+
'x-draft'?: never;
|
|
43705
|
+
'x-undocumented'?: never;
|
|
43706
|
+
};
|
|
43707
|
+
} | {
|
|
43708
|
+
in: string;
|
|
43709
|
+
name: string;
|
|
43710
|
+
schema: {
|
|
43711
|
+
description: string;
|
|
43712
|
+
format: string;
|
|
43713
|
+
type: string;
|
|
43714
|
+
'x-draft': string;
|
|
43715
|
+
'x-undocumented': string;
|
|
43716
|
+
minLength?: never;
|
|
43717
|
+
};
|
|
43718
|
+
} | {
|
|
43719
|
+
in: string;
|
|
43720
|
+
name: string;
|
|
43721
|
+
schema: {
|
|
43722
|
+
description: string;
|
|
43723
|
+
type: string;
|
|
43724
|
+
minLength?: never;
|
|
43725
|
+
format?: never;
|
|
43726
|
+
'x-draft'?: never;
|
|
43727
|
+
'x-undocumented'?: never;
|
|
43728
|
+
};
|
|
43729
|
+
})[];
|
|
43730
|
+
responses: {
|
|
43731
|
+
200: {
|
|
43732
|
+
content: {
|
|
43733
|
+
'application/json': {
|
|
43734
|
+
schema: {
|
|
43735
|
+
properties: {
|
|
43736
|
+
ok: {
|
|
43737
|
+
type: string;
|
|
43738
|
+
};
|
|
43739
|
+
spaces: {
|
|
43740
|
+
items: {
|
|
43741
|
+
$ref: string;
|
|
43742
|
+
};
|
|
43743
|
+
type: string;
|
|
43744
|
+
};
|
|
43745
|
+
};
|
|
43746
|
+
required: string[];
|
|
43747
|
+
type: string;
|
|
43748
|
+
};
|
|
43749
|
+
};
|
|
43750
|
+
};
|
|
43751
|
+
description: string;
|
|
43752
|
+
};
|
|
43753
|
+
400: {
|
|
43754
|
+
description: string;
|
|
43755
|
+
};
|
|
43756
|
+
401: {
|
|
43757
|
+
description: string;
|
|
43758
|
+
};
|
|
43759
|
+
};
|
|
43760
|
+
security: {
|
|
43761
|
+
client_session_with_customer: never[];
|
|
43762
|
+
}[];
|
|
43763
|
+
summary: string;
|
|
43764
|
+
tags: never[];
|
|
43765
|
+
'x-draft': string;
|
|
43766
|
+
'x-fern-sdk-group-name': string[];
|
|
43767
|
+
'x-fern-sdk-method-name': string;
|
|
43768
|
+
'x-fern-sdk-return-value': string;
|
|
43769
|
+
'x-response-key': string;
|
|
43770
|
+
'x-title': string;
|
|
43771
|
+
};
|
|
43772
|
+
post: {
|
|
43773
|
+
description: string;
|
|
43774
|
+
operationId: string;
|
|
43775
|
+
requestBody: {
|
|
43776
|
+
content: {
|
|
43777
|
+
'application/json': {
|
|
43778
|
+
schema: {
|
|
43779
|
+
properties: {
|
|
43780
|
+
connected_account_id: {
|
|
43781
|
+
description: string;
|
|
43782
|
+
format: string;
|
|
43783
|
+
type: string;
|
|
43784
|
+
'x-draft': string;
|
|
43785
|
+
'x-undocumented': string;
|
|
43786
|
+
};
|
|
43787
|
+
search: {
|
|
43788
|
+
description: string;
|
|
43789
|
+
minLength: number;
|
|
43790
|
+
type: string;
|
|
43791
|
+
};
|
|
43792
|
+
space_key: {
|
|
43793
|
+
description: string;
|
|
43794
|
+
type: string;
|
|
43795
|
+
};
|
|
43796
|
+
};
|
|
43797
|
+
type: string;
|
|
43798
|
+
};
|
|
43799
|
+
};
|
|
43800
|
+
};
|
|
43801
|
+
};
|
|
43802
|
+
responses: {
|
|
43803
|
+
200: {
|
|
43804
|
+
content: {
|
|
43805
|
+
'application/json': {
|
|
43806
|
+
schema: {
|
|
43807
|
+
properties: {
|
|
43808
|
+
ok: {
|
|
43809
|
+
type: string;
|
|
43810
|
+
};
|
|
43811
|
+
spaces: {
|
|
43812
|
+
items: {
|
|
43813
|
+
$ref: string;
|
|
43814
|
+
};
|
|
43815
|
+
type: string;
|
|
43816
|
+
};
|
|
43817
|
+
};
|
|
43818
|
+
required: string[];
|
|
43819
|
+
type: string;
|
|
43820
|
+
};
|
|
43821
|
+
};
|
|
43822
|
+
};
|
|
43823
|
+
description: string;
|
|
43824
|
+
};
|
|
43825
|
+
400: {
|
|
43826
|
+
description: string;
|
|
43827
|
+
};
|
|
43828
|
+
401: {
|
|
43829
|
+
description: string;
|
|
43830
|
+
};
|
|
43831
|
+
};
|
|
43832
|
+
security: {
|
|
43833
|
+
client_session_with_customer: never[];
|
|
43834
|
+
}[];
|
|
43835
|
+
summary: string;
|
|
43836
|
+
tags: never[];
|
|
43837
|
+
'x-draft': string;
|
|
43838
|
+
'x-fern-sdk-group-name': string[];
|
|
43839
|
+
'x-fern-sdk-method-name': string;
|
|
43840
|
+
'x-fern-sdk-return-value': string;
|
|
43841
|
+
'x-response-key': string;
|
|
43842
|
+
'x-title': string;
|
|
43843
|
+
};
|
|
43844
|
+
};
|
|
43590
43845
|
'/seam/instant_key/v1/client_sessions/exchange_short_code': {
|
|
43591
43846
|
post: {
|
|
43592
43847
|
description: string;
|
|
@@ -26209,6 +26209,85 @@ export default {
|
|
|
26209
26209
|
'x-title': 'List Access Grants',
|
|
26210
26210
|
},
|
|
26211
26211
|
},
|
|
26212
|
+
'/access_grants/request_access_methods': {
|
|
26213
|
+
post: {
|
|
26214
|
+
description: 'Adds additional requested access methods to an existing Access Grant.',
|
|
26215
|
+
operationId: 'accessGrantsRequestAccessMethodsPost',
|
|
26216
|
+
requestBody: {
|
|
26217
|
+
content: {
|
|
26218
|
+
'application/json': {
|
|
26219
|
+
schema: {
|
|
26220
|
+
properties: {
|
|
26221
|
+
access_grant_id: {
|
|
26222
|
+
description: 'ID of the Access Grant to add access methods to.',
|
|
26223
|
+
format: 'uuid',
|
|
26224
|
+
type: 'string',
|
|
26225
|
+
},
|
|
26226
|
+
requested_access_methods: {
|
|
26227
|
+
description: 'Array of requested access methods to add to the access grant.',
|
|
26228
|
+
items: {
|
|
26229
|
+
properties: {
|
|
26230
|
+
code: {
|
|
26231
|
+
description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
|
|
26232
|
+
maxLength: 9,
|
|
26233
|
+
minLength: 4,
|
|
26234
|
+
pattern: '^\\d+$',
|
|
26235
|
+
type: 'string',
|
|
26236
|
+
},
|
|
26237
|
+
mode: {
|
|
26238
|
+
description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
|
|
26239
|
+
enum: ['code', 'card', 'mobile_key'],
|
|
26240
|
+
type: 'string',
|
|
26241
|
+
},
|
|
26242
|
+
},
|
|
26243
|
+
required: ['mode'],
|
|
26244
|
+
type: 'object',
|
|
26245
|
+
},
|
|
26246
|
+
minItems: 1,
|
|
26247
|
+
type: 'array',
|
|
26248
|
+
},
|
|
26249
|
+
},
|
|
26250
|
+
required: ['access_grant_id', 'requested_access_methods'],
|
|
26251
|
+
type: 'object',
|
|
26252
|
+
},
|
|
26253
|
+
},
|
|
26254
|
+
},
|
|
26255
|
+
},
|
|
26256
|
+
responses: {
|
|
26257
|
+
200: {
|
|
26258
|
+
content: {
|
|
26259
|
+
'application/json': {
|
|
26260
|
+
schema: {
|
|
26261
|
+
properties: {
|
|
26262
|
+
access_grant: { $ref: '#/components/schemas/access_grant' },
|
|
26263
|
+
ok: { type: 'boolean' },
|
|
26264
|
+
},
|
|
26265
|
+
required: ['access_grant', 'ok'],
|
|
26266
|
+
type: 'object',
|
|
26267
|
+
},
|
|
26268
|
+
},
|
|
26269
|
+
},
|
|
26270
|
+
description: 'OK',
|
|
26271
|
+
},
|
|
26272
|
+
400: { description: 'Bad Request' },
|
|
26273
|
+
401: { description: 'Unauthorized' },
|
|
26274
|
+
},
|
|
26275
|
+
security: [
|
|
26276
|
+
{ pat_with_workspace: [] },
|
|
26277
|
+
{ console_session_with_workspace: [] },
|
|
26278
|
+
{ api_key: [] },
|
|
26279
|
+
{ client_session_with_customer: [] },
|
|
26280
|
+
],
|
|
26281
|
+
summary: '/access_grants/request_access_methods',
|
|
26282
|
+
tags: [],
|
|
26283
|
+
'x-draft': 'Early access.',
|
|
26284
|
+
'x-fern-sdk-group-name': ['access_grants'],
|
|
26285
|
+
'x-fern-sdk-method-name': 'request_access_methods',
|
|
26286
|
+
'x-fern-sdk-return-value': 'access_grant',
|
|
26287
|
+
'x-response-key': 'access_grant',
|
|
26288
|
+
'x-title': 'Add Requested Access Methods to Access Grant',
|
|
26289
|
+
},
|
|
26290
|
+
},
|
|
26212
26291
|
'/access_grants/unmanaged/get': {
|
|
26213
26292
|
get: {
|
|
26214
26293
|
description: 'Get an unmanaged Access Grant (where is_managed = false).',
|
|
@@ -48739,6 +48818,135 @@ export default {
|
|
|
48739
48818
|
'x-title': 'Create a Space',
|
|
48740
48819
|
},
|
|
48741
48820
|
},
|
|
48821
|
+
'/seam/customer/v1/spaces/list': {
|
|
48822
|
+
get: {
|
|
48823
|
+
description: 'Returns a list of all spaces.',
|
|
48824
|
+
operationId: 'seamCustomerV1SpacesListGet',
|
|
48825
|
+
parameters: [
|
|
48826
|
+
{
|
|
48827
|
+
in: 'query',
|
|
48828
|
+
name: 'search',
|
|
48829
|
+
schema: {
|
|
48830
|
+
description: 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.',
|
|
48831
|
+
minLength: 1,
|
|
48832
|
+
type: 'string',
|
|
48833
|
+
},
|
|
48834
|
+
},
|
|
48835
|
+
{
|
|
48836
|
+
in: 'query',
|
|
48837
|
+
name: 'connected_account_id',
|
|
48838
|
+
schema: {
|
|
48839
|
+
description: 'Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.',
|
|
48840
|
+
format: 'uuid',
|
|
48841
|
+
type: 'string',
|
|
48842
|
+
'x-draft': 'Needs review.',
|
|
48843
|
+
'x-undocumented': 'Only used internally.',
|
|
48844
|
+
},
|
|
48845
|
+
},
|
|
48846
|
+
{
|
|
48847
|
+
in: 'query',
|
|
48848
|
+
name: 'space_key',
|
|
48849
|
+
schema: {
|
|
48850
|
+
description: 'Filter spaces by space_key.',
|
|
48851
|
+
type: 'string',
|
|
48852
|
+
},
|
|
48853
|
+
},
|
|
48854
|
+
],
|
|
48855
|
+
responses: {
|
|
48856
|
+
200: {
|
|
48857
|
+
content: {
|
|
48858
|
+
'application/json': {
|
|
48859
|
+
schema: {
|
|
48860
|
+
properties: {
|
|
48861
|
+
ok: { type: 'boolean' },
|
|
48862
|
+
spaces: {
|
|
48863
|
+
items: { $ref: '#/components/schemas/space' },
|
|
48864
|
+
type: 'array',
|
|
48865
|
+
},
|
|
48866
|
+
},
|
|
48867
|
+
required: ['spaces', 'ok'],
|
|
48868
|
+
type: 'object',
|
|
48869
|
+
},
|
|
48870
|
+
},
|
|
48871
|
+
},
|
|
48872
|
+
description: 'OK',
|
|
48873
|
+
},
|
|
48874
|
+
400: { description: 'Bad Request' },
|
|
48875
|
+
401: { description: 'Unauthorized' },
|
|
48876
|
+
},
|
|
48877
|
+
security: [{ client_session_with_customer: [] }],
|
|
48878
|
+
summary: '/seam/customer/v1/spaces/list',
|
|
48879
|
+
tags: [],
|
|
48880
|
+
'x-draft': 'Early access.',
|
|
48881
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
|
|
48882
|
+
'x-fern-sdk-method-name': 'list',
|
|
48883
|
+
'x-fern-sdk-return-value': 'spaces',
|
|
48884
|
+
'x-response-key': 'spaces',
|
|
48885
|
+
'x-title': 'List Spaces',
|
|
48886
|
+
},
|
|
48887
|
+
post: {
|
|
48888
|
+
description: 'Returns a list of all spaces.',
|
|
48889
|
+
operationId: 'seamCustomerV1SpacesListPost',
|
|
48890
|
+
requestBody: {
|
|
48891
|
+
content: {
|
|
48892
|
+
'application/json': {
|
|
48893
|
+
schema: {
|
|
48894
|
+
properties: {
|
|
48895
|
+
connected_account_id: {
|
|
48896
|
+
description: 'Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.',
|
|
48897
|
+
format: 'uuid',
|
|
48898
|
+
type: 'string',
|
|
48899
|
+
'x-draft': 'Needs review.',
|
|
48900
|
+
'x-undocumented': 'Only used internally.',
|
|
48901
|
+
},
|
|
48902
|
+
search: {
|
|
48903
|
+
description: 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.',
|
|
48904
|
+
minLength: 1,
|
|
48905
|
+
type: 'string',
|
|
48906
|
+
},
|
|
48907
|
+
space_key: {
|
|
48908
|
+
description: 'Filter spaces by space_key.',
|
|
48909
|
+
type: 'string',
|
|
48910
|
+
},
|
|
48911
|
+
},
|
|
48912
|
+
type: 'object',
|
|
48913
|
+
},
|
|
48914
|
+
},
|
|
48915
|
+
},
|
|
48916
|
+
},
|
|
48917
|
+
responses: {
|
|
48918
|
+
200: {
|
|
48919
|
+
content: {
|
|
48920
|
+
'application/json': {
|
|
48921
|
+
schema: {
|
|
48922
|
+
properties: {
|
|
48923
|
+
ok: { type: 'boolean' },
|
|
48924
|
+
spaces: {
|
|
48925
|
+
items: { $ref: '#/components/schemas/space' },
|
|
48926
|
+
type: 'array',
|
|
48927
|
+
},
|
|
48928
|
+
},
|
|
48929
|
+
required: ['spaces', 'ok'],
|
|
48930
|
+
type: 'object',
|
|
48931
|
+
},
|
|
48932
|
+
},
|
|
48933
|
+
},
|
|
48934
|
+
description: 'OK',
|
|
48935
|
+
},
|
|
48936
|
+
400: { description: 'Bad Request' },
|
|
48937
|
+
401: { description: 'Unauthorized' },
|
|
48938
|
+
},
|
|
48939
|
+
security: [{ client_session_with_customer: [] }],
|
|
48940
|
+
summary: '/seam/customer/v1/spaces/list',
|
|
48941
|
+
tags: [],
|
|
48942
|
+
'x-draft': 'Early access.',
|
|
48943
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
|
|
48944
|
+
'x-fern-sdk-method-name': 'list',
|
|
48945
|
+
'x-fern-sdk-return-value': 'spaces',
|
|
48946
|
+
'x-response-key': 'spaces',
|
|
48947
|
+
'x-title': 'List Spaces',
|
|
48948
|
+
},
|
|
48949
|
+
},
|
|
48742
48950
|
'/seam/instant_key/v1/client_sessions/exchange_short_code': {
|
|
48743
48951
|
post: {
|
|
48744
48952
|
description: 'Exchanges a short code for a client session token. Mobile apps use this endpoint to retrieve a client session token securely using a short code obtained from an Instant Key URL.',
|