@seamapi/types 1.408.0 → 1.409.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.
- package/dist/connect.cjs +185 -287
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +294 -218
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.js +2 -1
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.js +2 -1
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.js +1 -5
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/events/access-grants.js +5 -5
- package/lib/seam/connect/models/events/access-methods.js +4 -4
- package/lib/seam/connect/models/pagination.d.ts +1 -0
- package/lib/seam/connect/models/partner/resources.d.ts +1 -0
- package/lib/seam/connect/models/spaces/space.js +6 -1
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +142 -213
- package/lib/seam/connect/openapi.js +140 -263
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +12 -3
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/model-types.ts +6 -0
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +2 -1
- package/src/lib/seam/connect/models/access-grants/access-method.ts +2 -1
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +1 -5
- package/src/lib/seam/connect/models/events/access-grants.ts +5 -5
- package/src/lib/seam/connect/models/events/access-methods.ts +4 -4
- package/src/lib/seam/connect/models/pagination.ts +2 -0
- package/src/lib/seam/connect/models/partner/resources.ts +2 -0
- package/src/lib/seam/connect/models/spaces/space.ts +6 -1
- package/src/lib/seam/connect/openapi.ts +142 -275
- package/src/lib/seam/connect/route-types.ts +20 -7
- package/src/lib/seam/connect/schemas.ts +2 -0
|
@@ -41992,6 +41992,7 @@ export interface Routes {
|
|
|
41992
41992
|
commonParams: {};
|
|
41993
41993
|
formData: {};
|
|
41994
41994
|
jsonResponse: {
|
|
41995
|
+
/** */
|
|
41995
41996
|
space: {
|
|
41996
41997
|
/** Unique identifier for the space. */
|
|
41997
41998
|
space_id: string;
|
|
@@ -42027,6 +42028,7 @@ export interface Routes {
|
|
|
42027
42028
|
};
|
|
42028
42029
|
formData: {};
|
|
42029
42030
|
jsonResponse: {
|
|
42031
|
+
/** */
|
|
42030
42032
|
space: {
|
|
42031
42033
|
/** Unique identifier for the space. */
|
|
42032
42034
|
space_id: string;
|
|
@@ -42098,6 +42100,7 @@ export interface Routes {
|
|
|
42098
42100
|
commonParams: {};
|
|
42099
42101
|
formData: {};
|
|
42100
42102
|
jsonResponse: {
|
|
42103
|
+
/** */
|
|
42101
42104
|
space: {
|
|
42102
42105
|
/** Unique identifier for the space. */
|
|
42103
42106
|
space_id: string;
|
|
@@ -56808,7 +56811,13 @@ export interface Routes {
|
|
|
56808
56811
|
} | {
|
|
56809
56812
|
building_block_type: 'organize_spaces';
|
|
56810
56813
|
customer_key: string;
|
|
56811
|
-
|
|
56814
|
+
/** Optional list of partner resources to include in the magic link. */
|
|
56815
|
+
partner_resources?: Array<{
|
|
56816
|
+
partner_resource_key: string;
|
|
56817
|
+
name: string;
|
|
56818
|
+
description?: string | undefined;
|
|
56819
|
+
custom_metadata?: Record<string, string> | undefined;
|
|
56820
|
+
}> | undefined;
|
|
56812
56821
|
};
|
|
56813
56822
|
formData: {};
|
|
56814
56823
|
jsonResponse: {
|
|
@@ -56851,12 +56860,12 @@ export interface Routes {
|
|
|
56851
56860
|
jsonBody: {};
|
|
56852
56861
|
commonParams: {
|
|
56853
56862
|
customer_key: string;
|
|
56854
|
-
partner_resources
|
|
56863
|
+
partner_resources?: Array<{
|
|
56855
56864
|
partner_resource_key: string;
|
|
56856
56865
|
name: string;
|
|
56857
56866
|
description?: string | undefined;
|
|
56858
56867
|
custom_metadata?: Record<string, string> | undefined;
|
|
56859
|
-
}
|
|
56868
|
+
}> | undefined;
|
|
56860
56869
|
};
|
|
56861
56870
|
formData: {};
|
|
56862
56871
|
jsonResponse: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, building_block_type, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, magic_link, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, 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_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, building_block_type, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, magic_link, noise_threshold, pagination, seam_event, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, 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,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,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,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,WAAW,EACX,UAAU,EACV,eAAe,EACf,UAAU,EACV,UAAU,EACV,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,8 @@ export type {
|
|
|
2
2
|
AccessCode,
|
|
3
3
|
AccessCodeError,
|
|
4
4
|
AccessCodeWarning,
|
|
5
|
+
AccessGrant,
|
|
6
|
+
AccessMethod,
|
|
5
7
|
AcsAccessGroup,
|
|
6
8
|
AcsCredential,
|
|
7
9
|
AcsEncoder,
|
|
@@ -10,6 +12,7 @@ export type {
|
|
|
10
12
|
AcsUser,
|
|
11
13
|
ActionAttempt,
|
|
12
14
|
Bridge,
|
|
15
|
+
BuildingBlockType,
|
|
13
16
|
ClientSession,
|
|
14
17
|
ConnectedAccount,
|
|
15
18
|
ConnectedAccountError,
|
|
@@ -21,9 +24,12 @@ export type {
|
|
|
21
24
|
DeviceProvider,
|
|
22
25
|
DeviceWarning,
|
|
23
26
|
InstantKey,
|
|
27
|
+
MagicLink,
|
|
24
28
|
NoiseThreshold,
|
|
29
|
+
Pagination,
|
|
25
30
|
SeamEvent,
|
|
26
31
|
SeamEventType,
|
|
32
|
+
Space,
|
|
27
33
|
ThermostatSchedule,
|
|
28
34
|
UnmanagedAccessCode,
|
|
29
35
|
UnmanagedDevice,
|
|
@@ -18,10 +18,6 @@ export const requested_access_method = z.object({
|
|
|
18
18
|
.describe(
|
|
19
19
|
'IDs of the access methods that were created for this requested access method.',
|
|
20
20
|
),
|
|
21
|
-
})
|
|
22
|
-
---
|
|
23
|
-
undocumented: Unreleased.
|
|
24
|
-
---
|
|
25
|
-
`)
|
|
21
|
+
})
|
|
26
22
|
|
|
27
23
|
export type RequestedAccessMethod = z.infer<typeof requested_access_method>
|
|
@@ -13,7 +13,7 @@ export const access_grant_created_event = access_grant_event.extend({
|
|
|
13
13
|
event_type: z.literal('access_grant.created'),
|
|
14
14
|
}).describe(`
|
|
15
15
|
---
|
|
16
|
-
route_path: /
|
|
16
|
+
route_path: /access_grants
|
|
17
17
|
---
|
|
18
18
|
An access grant was created.
|
|
19
19
|
`)
|
|
@@ -24,7 +24,7 @@ export const access_grant_deleted_event = access_grant_event.extend({
|
|
|
24
24
|
event_type: z.literal('access_grant.deleted'),
|
|
25
25
|
}).describe(`
|
|
26
26
|
---
|
|
27
|
-
route_path: /
|
|
27
|
+
route_path: /access_grants
|
|
28
28
|
---
|
|
29
29
|
An access grant was deleted.
|
|
30
30
|
`)
|
|
@@ -38,7 +38,7 @@ export const access_grant_access_granted_to_all_doors_event =
|
|
|
38
38
|
event_type: z.literal('access_grant.access_granted_to_all_doors'),
|
|
39
39
|
}).describe(`
|
|
40
40
|
---
|
|
41
|
-
route_path: /
|
|
41
|
+
route_path: /access_grants
|
|
42
42
|
---
|
|
43
43
|
All access requested for an access grant was successfully granted.
|
|
44
44
|
`)
|
|
@@ -60,7 +60,7 @@ export const access_grant_access_granted_to_door_event =
|
|
|
60
60
|
acs_entrance_id,
|
|
61
61
|
}).describe(`
|
|
62
62
|
---
|
|
63
|
-
route_path: /
|
|
63
|
+
route_path: /access_grants
|
|
64
64
|
---
|
|
65
65
|
Access requested as part of an access grant to a particular door was successfully granted.
|
|
66
66
|
`)
|
|
@@ -76,7 +76,7 @@ export const access_grant_access_to_door_lost_event = access_grant_event.extend(
|
|
|
76
76
|
},
|
|
77
77
|
).describe(`
|
|
78
78
|
---
|
|
79
|
-
route_path: /
|
|
79
|
+
route_path: /access_grants
|
|
80
80
|
---
|
|
81
81
|
Access to a particular door that was requested as part of an access grant was lost.
|
|
82
82
|
`)
|
|
@@ -13,7 +13,7 @@ export const access_method_issued_event = access_method_event.extend({
|
|
|
13
13
|
event_type: z.literal('access_method.issued'),
|
|
14
14
|
}).describe(`
|
|
15
15
|
---
|
|
16
|
-
route_path: /
|
|
16
|
+
route_path: /access_methods
|
|
17
17
|
---
|
|
18
18
|
An access method was issued.
|
|
19
19
|
`)
|
|
@@ -25,7 +25,7 @@ export const access_method_card_encoding_required_event =
|
|
|
25
25
|
event_type: z.literal('access_method.card_encoding_required'),
|
|
26
26
|
}).describe(`
|
|
27
27
|
---
|
|
28
|
-
route_path: /
|
|
28
|
+
route_path: /access_methods
|
|
29
29
|
---
|
|
30
30
|
An access method representing a physical card requires encoding.
|
|
31
31
|
`)
|
|
@@ -38,7 +38,7 @@ export const access_method_revoked_event = access_method_event.extend({
|
|
|
38
38
|
event_type: z.literal('access_method.revoked'),
|
|
39
39
|
}).describe(`
|
|
40
40
|
---
|
|
41
|
-
route_path: /
|
|
41
|
+
route_path: /access_methods
|
|
42
42
|
---
|
|
43
43
|
An access method was revoked.
|
|
44
44
|
`)
|
|
@@ -47,7 +47,7 @@ export const access_method_deleted_event = access_method_event.extend({
|
|
|
47
47
|
event_type: z.literal('access_method.deleted'),
|
|
48
48
|
}).describe(`
|
|
49
49
|
---
|
|
50
|
-
route_path: /
|
|
50
|
+
route_path: /access_methods
|
|
51
51
|
---
|
|
52
52
|
An access method was deleted.
|
|
53
53
|
`)
|
|
@@ -14,6 +14,11 @@ export const space = z.object({
|
|
|
14
14
|
.string()
|
|
15
15
|
.datetime()
|
|
16
16
|
.describe('Date and time at which the space object was created.'),
|
|
17
|
-
})
|
|
17
|
+
}).describe(`
|
|
18
|
+
---
|
|
19
|
+
draft: Early access.
|
|
20
|
+
route_path: /spaces
|
|
21
|
+
---
|
|
22
|
+
`)
|
|
18
23
|
|
|
19
24
|
export type Space = z.infer<typeof space>
|