@seamapi/types 1.449.0 → 1.450.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 +32 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +84 -0
- package/dist/index.cjs +32 -4
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +4 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +66 -0
- package/lib/seam/connect/openapi.js +28 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +15 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +31 -0
- package/src/lib/seam/connect/route-types.ts +15 -0
|
@@ -23,6 +23,7 @@ export declare const access_grant: z.ZodObject<{
|
|
|
23
23
|
created_access_method_ids: string[];
|
|
24
24
|
}>, "many">;
|
|
25
25
|
access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
26
|
+
client_session_token: z.ZodOptional<z.ZodString>;
|
|
26
27
|
display_name: z.ZodString;
|
|
27
28
|
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
28
29
|
created_at: z.ZodString;
|
|
@@ -46,6 +47,7 @@ export declare const access_grant: z.ZodObject<{
|
|
|
46
47
|
starts_at?: string | undefined;
|
|
47
48
|
ends_at?: string | undefined;
|
|
48
49
|
access_grant_key?: string | undefined;
|
|
50
|
+
client_session_token?: string | undefined;
|
|
49
51
|
instant_key_url?: string | undefined;
|
|
50
52
|
}, {
|
|
51
53
|
display_name: string;
|
|
@@ -65,6 +67,7 @@ export declare const access_grant: z.ZodObject<{
|
|
|
65
67
|
starts_at?: string | undefined;
|
|
66
68
|
ends_at?: string | undefined;
|
|
67
69
|
access_grant_key?: string | undefined;
|
|
70
|
+
client_session_token?: string | undefined;
|
|
68
71
|
instant_key_url?: string | undefined;
|
|
69
72
|
}>;
|
|
70
73
|
export type AccessGrant = z.infer<typeof access_grant>;
|
|
@@ -28,6 +28,10 @@ export const access_grant = z.object({
|
|
|
28
28
|
access_method_ids: z
|
|
29
29
|
.array(z.string().uuid())
|
|
30
30
|
.describe('IDs of the access methods created for the Access Grant.'),
|
|
31
|
+
client_session_token: z
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('Client Session Token. Only returned if the Access Grant has a mobile_key access method.'),
|
|
31
35
|
display_name: z.string().describe('Display name of the Access Grant.'),
|
|
32
36
|
instant_key_url: z
|
|
33
37
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,4DAA4D,CAAC;IACzE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACtE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC;;;;GAIjD,CAAC;IACF,SAAS,EAAE,CAAC;SACT,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,2DAA2D,CAAC;IACxE,wBAAwB,EAAE,CAAC;SACxB,KAAK,CAAC,uBAAuB,CAAC;SAC9B,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,yDAAyD,CAAC;IACtE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACtE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,4FAA4F,CAC7F;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;IACnE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,+CAA+C,CAAC;CAC7D,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,4DAA4D,CAA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;IAC9D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,+CAA+C,CAAC;CAC7D,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
|
|
@@ -392,6 +392,10 @@ declare const _default: {
|
|
|
392
392
|
};
|
|
393
393
|
type: string;
|
|
394
394
|
};
|
|
395
|
+
client_session_token: {
|
|
396
|
+
description: string;
|
|
397
|
+
type: string;
|
|
398
|
+
};
|
|
395
399
|
created_at: {
|
|
396
400
|
description: string;
|
|
397
401
|
format: string;
|
|
@@ -37060,6 +37064,9 @@ declare const _default: {
|
|
|
37060
37064
|
};
|
|
37061
37065
|
type: string;
|
|
37062
37066
|
};
|
|
37067
|
+
is_draft: {
|
|
37068
|
+
type: string;
|
|
37069
|
+
};
|
|
37063
37070
|
name: {
|
|
37064
37071
|
type: string;
|
|
37065
37072
|
};
|
|
@@ -37166,6 +37173,9 @@ declare const _default: {
|
|
|
37166
37173
|
};
|
|
37167
37174
|
type: string;
|
|
37168
37175
|
};
|
|
37176
|
+
is_draft: {
|
|
37177
|
+
type: string;
|
|
37178
|
+
};
|
|
37169
37179
|
name: {
|
|
37170
37180
|
type: string;
|
|
37171
37181
|
};
|
|
@@ -37267,14 +37277,22 @@ declare const _default: {
|
|
|
37267
37277
|
pat_with_workspace: never[];
|
|
37268
37278
|
console_session_with_workspace?: never;
|
|
37269
37279
|
api_key?: never;
|
|
37280
|
+
client_session_with_customer?: never;
|
|
37270
37281
|
} | {
|
|
37271
37282
|
console_session_with_workspace: never[];
|
|
37272
37283
|
pat_with_workspace?: never;
|
|
37273
37284
|
api_key?: never;
|
|
37285
|
+
client_session_with_customer?: never;
|
|
37274
37286
|
} | {
|
|
37275
37287
|
api_key: never[];
|
|
37276
37288
|
pat_with_workspace?: never;
|
|
37277
37289
|
console_session_with_workspace?: never;
|
|
37290
|
+
client_session_with_customer?: never;
|
|
37291
|
+
} | {
|
|
37292
|
+
client_session_with_customer: never[];
|
|
37293
|
+
pat_with_workspace?: never;
|
|
37294
|
+
console_session_with_workspace?: never;
|
|
37295
|
+
api_key?: never;
|
|
37278
37296
|
})[];
|
|
37279
37297
|
summary: string;
|
|
37280
37298
|
tags: never[];
|
|
@@ -37341,14 +37359,22 @@ declare const _default: {
|
|
|
37341
37359
|
pat_with_workspace: never[];
|
|
37342
37360
|
console_session_with_workspace?: never;
|
|
37343
37361
|
api_key?: never;
|
|
37362
|
+
client_session_with_customer?: never;
|
|
37344
37363
|
} | {
|
|
37345
37364
|
console_session_with_workspace: never[];
|
|
37346
37365
|
pat_with_workspace?: never;
|
|
37347
37366
|
api_key?: never;
|
|
37367
|
+
client_session_with_customer?: never;
|
|
37348
37368
|
} | {
|
|
37349
37369
|
api_key: never[];
|
|
37350
37370
|
pat_with_workspace?: never;
|
|
37351
37371
|
console_session_with_workspace?: never;
|
|
37372
|
+
client_session_with_customer?: never;
|
|
37373
|
+
} | {
|
|
37374
|
+
client_session_with_customer: never[];
|
|
37375
|
+
pat_with_workspace?: never;
|
|
37376
|
+
console_session_with_workspace?: never;
|
|
37377
|
+
api_key?: never;
|
|
37352
37378
|
})[];
|
|
37353
37379
|
summary: string;
|
|
37354
37380
|
tags: never[];
|
|
@@ -37417,14 +37443,22 @@ declare const _default: {
|
|
|
37417
37443
|
pat_with_workspace: never[];
|
|
37418
37444
|
console_session_with_workspace?: never;
|
|
37419
37445
|
api_key?: never;
|
|
37446
|
+
client_session_with_customer?: never;
|
|
37420
37447
|
} | {
|
|
37421
37448
|
console_session_with_workspace: never[];
|
|
37422
37449
|
pat_with_workspace?: never;
|
|
37423
37450
|
api_key?: never;
|
|
37451
|
+
client_session_with_customer?: never;
|
|
37424
37452
|
} | {
|
|
37425
37453
|
api_key: never[];
|
|
37426
37454
|
pat_with_workspace?: never;
|
|
37427
37455
|
console_session_with_workspace?: never;
|
|
37456
|
+
client_session_with_customer?: never;
|
|
37457
|
+
} | {
|
|
37458
|
+
client_session_with_customer: never[];
|
|
37459
|
+
pat_with_workspace?: never;
|
|
37460
|
+
console_session_with_workspace?: never;
|
|
37461
|
+
api_key?: never;
|
|
37428
37462
|
})[];
|
|
37429
37463
|
summary: string;
|
|
37430
37464
|
tags: never[];
|
|
@@ -37491,14 +37525,22 @@ declare const _default: {
|
|
|
37491
37525
|
pat_with_workspace: never[];
|
|
37492
37526
|
console_session_with_workspace?: never;
|
|
37493
37527
|
api_key?: never;
|
|
37528
|
+
client_session_with_customer?: never;
|
|
37494
37529
|
} | {
|
|
37495
37530
|
console_session_with_workspace: never[];
|
|
37496
37531
|
pat_with_workspace?: never;
|
|
37497
37532
|
api_key?: never;
|
|
37533
|
+
client_session_with_customer?: never;
|
|
37498
37534
|
} | {
|
|
37499
37535
|
api_key: never[];
|
|
37500
37536
|
pat_with_workspace?: never;
|
|
37501
37537
|
console_session_with_workspace?: never;
|
|
37538
|
+
client_session_with_customer?: never;
|
|
37539
|
+
} | {
|
|
37540
|
+
client_session_with_customer: never[];
|
|
37541
|
+
pat_with_workspace?: never;
|
|
37542
|
+
console_session_with_workspace?: never;
|
|
37543
|
+
api_key?: never;
|
|
37502
37544
|
})[];
|
|
37503
37545
|
summary: string;
|
|
37504
37546
|
tags: never[];
|
|
@@ -38109,6 +38151,20 @@ declare const _default: {
|
|
|
38109
38151
|
description: string;
|
|
38110
38152
|
minLength: number;
|
|
38111
38153
|
type: string;
|
|
38154
|
+
format?: never;
|
|
38155
|
+
'x-draft'?: never;
|
|
38156
|
+
'x-undocumented'?: never;
|
|
38157
|
+
};
|
|
38158
|
+
} | {
|
|
38159
|
+
in: string;
|
|
38160
|
+
name: string;
|
|
38161
|
+
schema: {
|
|
38162
|
+
description: string;
|
|
38163
|
+
format: string;
|
|
38164
|
+
type: string;
|
|
38165
|
+
'x-draft': string;
|
|
38166
|
+
'x-undocumented': string;
|
|
38167
|
+
minLength?: never;
|
|
38112
38168
|
};
|
|
38113
38169
|
} | {
|
|
38114
38170
|
in: string;
|
|
@@ -38117,6 +38173,9 @@ declare const _default: {
|
|
|
38117
38173
|
description: string;
|
|
38118
38174
|
type: string;
|
|
38119
38175
|
minLength?: never;
|
|
38176
|
+
format?: never;
|
|
38177
|
+
'x-draft'?: never;
|
|
38178
|
+
'x-undocumented'?: never;
|
|
38120
38179
|
};
|
|
38121
38180
|
})[];
|
|
38122
38181
|
responses: {
|
|
@@ -38187,6 +38246,13 @@ declare const _default: {
|
|
|
38187
38246
|
'application/json': {
|
|
38188
38247
|
schema: {
|
|
38189
38248
|
properties: {
|
|
38249
|
+
connected_account_id: {
|
|
38250
|
+
description: string;
|
|
38251
|
+
format: string;
|
|
38252
|
+
type: string;
|
|
38253
|
+
'x-draft': string;
|
|
38254
|
+
'x-undocumented': string;
|
|
38255
|
+
};
|
|
38190
38256
|
search: {
|
|
38191
38257
|
description: string;
|
|
38192
38258
|
minLength: number;
|
|
@@ -1585,6 +1585,10 @@ export default {
|
|
|
1585
1585
|
items: { format: 'uuid', type: 'string' },
|
|
1586
1586
|
type: 'array',
|
|
1587
1587
|
},
|
|
1588
|
+
client_session_token: {
|
|
1589
|
+
description: 'Client Session Token. Only returned if the Access Grant has a mobile_key access method.',
|
|
1590
|
+
type: 'string',
|
|
1591
|
+
},
|
|
1588
1592
|
created_at: {
|
|
1589
1593
|
description: 'Date and time at which the Access Grant was created.',
|
|
1590
1594
|
format: 'date-time',
|
|
@@ -42854,6 +42858,7 @@ export default {
|
|
|
42854
42858
|
},
|
|
42855
42859
|
type: 'array',
|
|
42856
42860
|
},
|
|
42861
|
+
is_draft: { type: 'boolean' },
|
|
42857
42862
|
name: { type: 'string' },
|
|
42858
42863
|
needs_review: { type: 'boolean' },
|
|
42859
42864
|
partner_resource_key: { type: 'string' },
|
|
@@ -42949,6 +42954,7 @@ export default {
|
|
|
42949
42954
|
},
|
|
42950
42955
|
type: 'array',
|
|
42951
42956
|
},
|
|
42957
|
+
is_draft: { type: 'boolean' },
|
|
42952
42958
|
name: { type: 'string' },
|
|
42953
42959
|
needs_review: { type: 'boolean' },
|
|
42954
42960
|
partner_resource_key: { type: 'string' },
|
|
@@ -43038,6 +43044,7 @@ export default {
|
|
|
43038
43044
|
{ pat_with_workspace: [] },
|
|
43039
43045
|
{ console_session_with_workspace: [] },
|
|
43040
43046
|
{ api_key: [] },
|
|
43047
|
+
{ client_session_with_customer: [] },
|
|
43041
43048
|
],
|
|
43042
43049
|
summary: '/spaces/add_acs_entrances',
|
|
43043
43050
|
tags: [],
|
|
@@ -43093,6 +43100,7 @@ export default {
|
|
|
43093
43100
|
{ pat_with_workspace: [] },
|
|
43094
43101
|
{ console_session_with_workspace: [] },
|
|
43095
43102
|
{ api_key: [] },
|
|
43103
|
+
{ client_session_with_customer: [] },
|
|
43096
43104
|
],
|
|
43097
43105
|
summary: '/spaces/add_acs_entrances',
|
|
43098
43106
|
tags: [],
|
|
@@ -43150,6 +43158,7 @@ export default {
|
|
|
43150
43158
|
{ pat_with_workspace: [] },
|
|
43151
43159
|
{ console_session_with_workspace: [] },
|
|
43152
43160
|
{ api_key: [] },
|
|
43161
|
+
{ client_session_with_customer: [] },
|
|
43153
43162
|
],
|
|
43154
43163
|
summary: '/spaces/add_devices',
|
|
43155
43164
|
tags: [],
|
|
@@ -43205,6 +43214,7 @@ export default {
|
|
|
43205
43214
|
{ pat_with_workspace: [] },
|
|
43206
43215
|
{ console_session_with_workspace: [] },
|
|
43207
43216
|
{ api_key: [] },
|
|
43217
|
+
{ client_session_with_customer: [] },
|
|
43208
43218
|
],
|
|
43209
43219
|
summary: '/spaces/add_devices',
|
|
43210
43220
|
tags: [],
|
|
@@ -43686,6 +43696,17 @@ export default {
|
|
|
43686
43696
|
type: 'string',
|
|
43687
43697
|
},
|
|
43688
43698
|
},
|
|
43699
|
+
{
|
|
43700
|
+
in: 'query',
|
|
43701
|
+
name: 'connected_account_id',
|
|
43702
|
+
schema: {
|
|
43703
|
+
description: 'Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.',
|
|
43704
|
+
format: 'uuid',
|
|
43705
|
+
type: 'string',
|
|
43706
|
+
'x-draft': 'Needs review.',
|
|
43707
|
+
'x-undocumented': 'Only used internally.',
|
|
43708
|
+
},
|
|
43709
|
+
},
|
|
43689
43710
|
{
|
|
43690
43711
|
in: 'query',
|
|
43691
43712
|
name: 'space_key',
|
|
@@ -43740,6 +43761,13 @@ export default {
|
|
|
43740
43761
|
'application/json': {
|
|
43741
43762
|
schema: {
|
|
43742
43763
|
properties: {
|
|
43764
|
+
connected_account_id: {
|
|
43765
|
+
description: 'Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.',
|
|
43766
|
+
format: 'uuid',
|
|
43767
|
+
type: 'string',
|
|
43768
|
+
'x-draft': 'Needs review.',
|
|
43769
|
+
'x-undocumented': 'Only used internally.',
|
|
43770
|
+
},
|
|
43743
43771
|
search: {
|
|
43744
43772
|
description: 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.',
|
|
43745
43773
|
minLength: 1,
|