@seamapi/types 1.963.0 → 1.965.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 +52 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +17 -2
- package/dist/index.cjs +52 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.js +52 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +17 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +53 -2
- package/src/lib/seam/connect/route-types.ts +212 -193
|
@@ -82911,7 +82911,7 @@ export type Routes = {
|
|
|
82911
82911
|
formData: {};
|
|
82912
82912
|
jsonResponse: {
|
|
82913
82913
|
/** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
|
|
82914
|
-
access_grant
|
|
82914
|
+
access_grant?: {
|
|
82915
82915
|
/** ID of the Seam workspace associated with the Access Grant. */
|
|
82916
82916
|
workspace_id: string;
|
|
82917
82917
|
/** ID of the Access Grant. */
|
|
@@ -83089,7 +83089,7 @@ export type Routes = {
|
|
|
83089
83089
|
ends_at: string | null;
|
|
83090
83090
|
};
|
|
83091
83091
|
})[];
|
|
83092
|
-
};
|
|
83092
|
+
} | undefined;
|
|
83093
83093
|
spaces: {
|
|
83094
83094
|
space_key: string;
|
|
83095
83095
|
child_space_keys?: string[] | undefined;
|
|
@@ -83142,6 +83142,11 @@ export type Routes = {
|
|
|
83142
83142
|
/** List of unique identifiers for the spaces the staff member is associated with. */
|
|
83143
83143
|
space_keys?: string[] | undefined;
|
|
83144
83144
|
user_identity_id?: string | undefined;
|
|
83145
|
+
access_grant?: {
|
|
83146
|
+
starts_at: string;
|
|
83147
|
+
ends_at: string | null;
|
|
83148
|
+
created_at: string;
|
|
83149
|
+
} | undefined;
|
|
83145
83150
|
}[];
|
|
83146
83151
|
/** Information about the current page of results. */
|
|
83147
83152
|
pagination: {
|
|
@@ -83867,6 +83872,16 @@ export type Routes = {
|
|
|
83867
83872
|
};
|
|
83868
83873
|
maxDuration: undefined;
|
|
83869
83874
|
};
|
|
83875
|
+
'/seam/webhooks/[provider]/[subscription_id]': {
|
|
83876
|
+
route: '/seam/webhooks/[provider]/[subscription_id]';
|
|
83877
|
+
method: 'POST';
|
|
83878
|
+
queryParams: {};
|
|
83879
|
+
jsonBody: any;
|
|
83880
|
+
commonParams: {};
|
|
83881
|
+
formData: {};
|
|
83882
|
+
jsonResponse: {};
|
|
83883
|
+
maxDuration: undefined;
|
|
83884
|
+
};
|
|
83870
83885
|
'/spaces/add_acs_entrances': {
|
|
83871
83886
|
route: '/spaces/add_acs_entrances';
|
|
83872
83887
|
method: 'POST' | 'PUT';
|
package/package.json
CHANGED
|
@@ -79851,7 +79851,7 @@ const openapi: OpenAPISpec = {
|
|
|
79851
79851
|
'Internal resource for customer portals.',
|
|
79852
79852
|
},
|
|
79853
79853
|
},
|
|
79854
|
-
required: ['
|
|
79854
|
+
required: ['spaces', 'staff_member', 'ok'],
|
|
79855
79855
|
type: 'object',
|
|
79856
79856
|
},
|
|
79857
79857
|
},
|
|
@@ -79950,7 +79950,7 @@ const openapi: OpenAPISpec = {
|
|
|
79950
79950
|
'Internal resource for customer portals.',
|
|
79951
79951
|
},
|
|
79952
79952
|
},
|
|
79953
|
-
required: ['
|
|
79953
|
+
required: ['spaces', 'staff_member', 'ok'],
|
|
79954
79954
|
type: 'object',
|
|
79955
79955
|
},
|
|
79956
79956
|
},
|
|
@@ -80039,6 +80039,9 @@ const openapi: OpenAPISpec = {
|
|
|
80039
80039
|
description:
|
|
80040
80040
|
'Represents a staff member for a specific customer.',
|
|
80041
80041
|
properties: {
|
|
80042
|
+
access_grant: {
|
|
80043
|
+
$ref: '#/components/schemas/access_grant',
|
|
80044
|
+
},
|
|
80042
80045
|
email_address: {
|
|
80043
80046
|
description:
|
|
80044
80047
|
'Email address associated with the user identity.',
|
|
@@ -80153,6 +80156,9 @@ const openapi: OpenAPISpec = {
|
|
|
80153
80156
|
description:
|
|
80154
80157
|
'Represents a staff member for a specific customer.',
|
|
80155
80158
|
properties: {
|
|
80159
|
+
access_grant: {
|
|
80160
|
+
$ref: '#/components/schemas/access_grant',
|
|
80161
|
+
},
|
|
80156
80162
|
email_address: {
|
|
80157
80163
|
description:
|
|
80158
80164
|
'Email address associated with the user identity.',
|
|
@@ -81034,6 +81040,51 @@ const openapi: OpenAPISpec = {
|
|
|
81034
81040
|
'x-undocumented': 'Partner building blocks/UI only.',
|
|
81035
81041
|
},
|
|
81036
81042
|
},
|
|
81043
|
+
'/seam/webhooks/[provider]/[subscription_id]': {
|
|
81044
|
+
post: {
|
|
81045
|
+
description:
|
|
81046
|
+
'Receives an inbound webhook delivery for a provider subscription.',
|
|
81047
|
+
operationId: 'seamWebhooksByProviderBySubscriptionIdPost',
|
|
81048
|
+
parameters: [
|
|
81049
|
+
{
|
|
81050
|
+
in: 'query',
|
|
81051
|
+
name: 'provider',
|
|
81052
|
+
required: true,
|
|
81053
|
+
schema: { type: 'string' },
|
|
81054
|
+
},
|
|
81055
|
+
{
|
|
81056
|
+
in: 'query',
|
|
81057
|
+
name: 'subscription_id',
|
|
81058
|
+
required: true,
|
|
81059
|
+
schema: { type: 'string' },
|
|
81060
|
+
},
|
|
81061
|
+
],
|
|
81062
|
+
requestBody: { content: { 'application/json': { schema: {} } } },
|
|
81063
|
+
responses: {
|
|
81064
|
+
200: {
|
|
81065
|
+
content: {
|
|
81066
|
+
'application/json': {
|
|
81067
|
+
schema: {
|
|
81068
|
+
properties: { ok: { type: 'boolean' } },
|
|
81069
|
+
required: ['ok'],
|
|
81070
|
+
type: 'object',
|
|
81071
|
+
},
|
|
81072
|
+
},
|
|
81073
|
+
},
|
|
81074
|
+
description: 'OK',
|
|
81075
|
+
},
|
|
81076
|
+
400: { description: 'Bad Request' },
|
|
81077
|
+
401: { description: 'Unauthorized' },
|
|
81078
|
+
},
|
|
81079
|
+
summary: '/seam/webhooks/[provider]/[subscription_id]',
|
|
81080
|
+
tags: ['/webhooks'],
|
|
81081
|
+
'x-fern-sdk-group-name': ['seam', 'webhooks', '[provider]'],
|
|
81082
|
+
'x-fern-sdk-method-name': 'by_subscription_id',
|
|
81083
|
+
'x-response-key': null,
|
|
81084
|
+
'x-title': 'Receive a Provider Webhook',
|
|
81085
|
+
'x-undocumented': 'Internal endpoint for inbound provider webhooks',
|
|
81086
|
+
},
|
|
81087
|
+
},
|
|
81037
81088
|
'/spaces/add_acs_entrances': {
|
|
81038
81089
|
post: {
|
|
81039
81090
|
description:
|
|
@@ -101051,201 +101051,203 @@ export type Routes = {
|
|
|
101051
101051
|
formData: {}
|
|
101052
101052
|
jsonResponse: {
|
|
101053
101053
|
/** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
|
|
101054
|
-
access_grant
|
|
101055
|
-
|
|
101056
|
-
|
|
101057
|
-
|
|
101058
|
-
|
|
101059
|
-
|
|
101060
|
-
|
|
101061
|
-
|
|
101062
|
-
|
|
101063
|
-
|
|
101064
|
-
|
|
101065
|
-
|
|
101066
|
-
|
|
101067
|
-
|
|
101068
|
-
|
|
101069
|
-
|
|
101070
|
-
|
|
101071
|
-
|
|
101072
|
-
|
|
101073
|
-
|
|
101074
|
-
|
|
101075
|
-
|
|
101076
|
-
|
|
101077
|
-
|
|
101078
|
-
|
|
101079
|
-
|
|
101080
|
-
|
|
101081
|
-
|
|
101082
|
-
|
|
101083
|
-
|
|
101084
|
-
|
|
101085
|
-
|
|
101086
|
-
|
|
101087
|
-
|
|
101088
|
-
|
|
101089
|
-
|
|
101090
|
-
|
|
101091
|
-
|
|
101092
|
-
|
|
101093
|
-
|
|
101094
|
-
|
|
101095
|
-
|
|
101096
|
-
|
|
101097
|
-
|
|
101098
|
-
|
|
101099
|
-
|
|
101100
|
-
|
|
101101
|
-
|
|
101102
|
-
|
|
101103
|
-
|
|
101104
|
-
|
|
101105
|
-
|
|
101106
|
-
|
|
101107
|
-
|
|
101108
|
-
|
|
101109
|
-
|
|
101110
|
-
|
|
101111
|
-
|
|
101112
|
-
|
|
101113
|
-
|
|
101114
|
-
|
|
101115
|
-
|
|
101116
|
-
|
|
101117
|
-
|
|
101118
|
-
|
|
101119
|
-
|
|
101120
|
-
|
|
101121
|
-
|
|
101122
|
-
|
|
101123
|
-
|
|
101124
|
-
|
|
101125
|
-
|
|
101126
|
-
|
|
101127
|
-
|
|
101128
|
-
|
|
101129
|
-
|
|
101130
|
-
|
|
101131
|
-
|
|
101132
|
-
|
|
101133
|
-
|
|
101134
|
-
|
|
101135
|
-
|
|
101136
|
-
|
|
101137
|
-
|
|
101138
|
-
|
|
101139
|
-
|
|
101140
|
-
|
|
101141
|
-
|
|
101142
|
-
|
|
101143
|
-
|
|
101144
|
-
|
|
101145
|
-
|
|
101146
|
-
|
|
101147
|
-
|
|
101148
|
-
|
|
101149
|
-
|
|
101150
|
-
|
|
101151
|
-
|
|
101152
|
-
|
|
101153
|
-
|
|
101154
|
-
|
|
101155
|
-
|
|
101156
|
-
|
|
101157
|
-
|
|
101158
|
-
|
|
101159
|
-
|
|
101160
|
-
|
|
101161
|
-
|
|
101162
|
-
|
|
101163
|
-
|
|
101164
|
-
|
|
101165
|
-
|
|
101166
|
-
|
|
101167
|
-
|
|
101168
|
-
|
|
101169
|
-
|
|
101170
|
-
|
|
101171
|
-
|
|
101172
|
-
|
|
101173
|
-
|
|
101174
|
-
|
|
101175
|
-
|
|
101176
|
-
|
|
101177
|
-
|
|
101178
|
-
|
|
101179
|
-
|
|
101180
|
-
|
|
101181
|
-
|
|
101182
|
-
|
|
101183
|
-
|
|
101184
|
-
|
|
101185
|
-
|
|
101186
|
-
|
|
101187
|
-
|
|
101188
|
-
|
|
101189
|
-
|
|
101190
|
-
|
|
101191
|
-
|
|
101192
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
101193
|
-
message: string
|
|
101194
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
101195
|
-
error_code: 'cannot_create_requested_access_methods'
|
|
101196
|
-
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
|
|
101197
|
-
missing_device_ids?: string[] | undefined
|
|
101198
|
-
}[]
|
|
101199
|
-
/** ID of the customization profile associated with the Access Grant. */
|
|
101200
|
-
customization_profile_id?: string | undefined
|
|
101201
|
-
/** List of pending mutations for the access grant. This shows updates that are in progress. */
|
|
101202
|
-
pending_mutations: (
|
|
101203
|
-
| {
|
|
101204
|
-
/** Date and time at which the mutation was created. */
|
|
101205
|
-
created_at: string
|
|
101206
|
-
/** Detailed description of the mutation. */
|
|
101207
|
-
message: string
|
|
101208
|
-
/** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */
|
|
101209
|
-
mutation_code: 'updating_spaces'
|
|
101210
|
-
/** Previous location configuration. */
|
|
101211
|
-
from: {
|
|
101212
|
-
/** Previous device IDs where access codes existed. */
|
|
101213
|
-
device_ids: string[]
|
|
101214
|
-
}
|
|
101215
|
-
/** New location configuration. */
|
|
101216
|
-
to: {
|
|
101217
|
-
/** New device IDs where access codes should be created. */
|
|
101218
|
-
device_ids: string[]
|
|
101219
|
-
/** Common code key to ensure PIN code reuse across devices. */
|
|
101220
|
-
common_code_key?: (string | null) | undefined
|
|
101221
|
-
}
|
|
101222
|
-
}
|
|
101223
|
-
| {
|
|
101224
|
-
/** Date and time at which the mutation was created. */
|
|
101054
|
+
access_grant?:
|
|
101055
|
+
| {
|
|
101056
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
101057
|
+
workspace_id: string
|
|
101058
|
+
/** ID of the Access Grant. */
|
|
101059
|
+
access_grant_id: string
|
|
101060
|
+
/** Unique key for the access grant within the workspace. */
|
|
101061
|
+
access_grant_key?: string | undefined
|
|
101062
|
+
/** Reservation key for the access grant. */
|
|
101063
|
+
reservation_key?: string | undefined
|
|
101064
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
101065
|
+
user_identity_id: string
|
|
101066
|
+
/**
|
|
101067
|
+
* @deprecated Use `space_ids`.*/
|
|
101068
|
+
location_ids: string[]
|
|
101069
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
101070
|
+
space_ids: string[]
|
|
101071
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
101072
|
+
requested_access_methods: {
|
|
101073
|
+
/** Display name of the access method. */
|
|
101074
|
+
display_name: string
|
|
101075
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
|
|
101076
|
+
mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'
|
|
101077
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
101078
|
+
code?: string | undefined
|
|
101079
|
+
/** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
|
|
101080
|
+
instant_key_max_use_count?: number | undefined
|
|
101081
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
101082
|
+
created_at: string
|
|
101083
|
+
/** IDs of the access methods created for the requested access method. */
|
|
101084
|
+
created_access_method_ids: string[]
|
|
101085
|
+
}[]
|
|
101086
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
101087
|
+
access_method_ids: string[]
|
|
101088
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
101089
|
+
client_session_token?: string | undefined
|
|
101090
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
101091
|
+
name: string | null
|
|
101092
|
+
/** Display name of the Access Grant. */
|
|
101093
|
+
display_name: string
|
|
101094
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
101095
|
+
instant_key_url?: string | undefined
|
|
101096
|
+
/** Date and time at which the Access Grant was created. */
|
|
101097
|
+
created_at: string
|
|
101098
|
+
/** Date and time at which the Access Grant starts. */
|
|
101099
|
+
starts_at: string
|
|
101100
|
+
/** Date and time at which the Access Grant ends. */
|
|
101101
|
+
ends_at: string | null
|
|
101102
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/use-cases/granting-access). */
|
|
101103
|
+
warnings: (
|
|
101104
|
+
| {
|
|
101105
|
+
/** Date and time at which Seam created the warning. */
|
|
101106
|
+
created_at: string
|
|
101107
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
101108
|
+
message: string
|
|
101109
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
101110
|
+
warning_code: 'being_deleted'
|
|
101111
|
+
}
|
|
101112
|
+
| {
|
|
101113
|
+
/** Date and time at which Seam created the warning. */
|
|
101114
|
+
created_at: string
|
|
101115
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
101116
|
+
message: string
|
|
101117
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
101118
|
+
warning_code: 'underprovisioned_access'
|
|
101119
|
+
}
|
|
101120
|
+
| {
|
|
101121
|
+
/** Date and time at which Seam created the warning. */
|
|
101122
|
+
created_at: string
|
|
101123
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
101124
|
+
message: string
|
|
101125
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
101126
|
+
warning_code: 'overprovisioned_access'
|
|
101127
|
+
/** Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget). */
|
|
101128
|
+
failed_devices?:
|
|
101129
|
+
| {
|
|
101130
|
+
/** Device whose access code could not be revoked. */
|
|
101131
|
+
device_id: string
|
|
101132
|
+
/** Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`). */
|
|
101133
|
+
error_code: string
|
|
101134
|
+
/** Human-readable description of why revocation failed. */
|
|
101135
|
+
message: string
|
|
101136
|
+
}[]
|
|
101137
|
+
| undefined
|
|
101138
|
+
}
|
|
101139
|
+
| {
|
|
101140
|
+
/** Date and time at which Seam created the warning. */
|
|
101141
|
+
created_at: string
|
|
101142
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
101143
|
+
message: string
|
|
101144
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
101145
|
+
warning_code: 'updating_access_times'
|
|
101146
|
+
/** IDs of the access methods being updated. */
|
|
101147
|
+
access_method_ids: string[]
|
|
101148
|
+
}
|
|
101149
|
+
| {
|
|
101150
|
+
/** Date and time at which Seam created the warning. */
|
|
101151
|
+
created_at: string
|
|
101152
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
101153
|
+
message: string
|
|
101154
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
101155
|
+
warning_code: 'requested_code_unavailable'
|
|
101156
|
+
/** ID of the device where the requested code was unavailable. */
|
|
101157
|
+
device_id: string
|
|
101158
|
+
/** The originally requested PIN code that was unavailable. */
|
|
101159
|
+
original_code: string
|
|
101160
|
+
/** The new PIN code that was assigned instead. */
|
|
101161
|
+
new_code: string
|
|
101162
|
+
}
|
|
101163
|
+
| {
|
|
101164
|
+
/** Date and time at which Seam created the warning. */
|
|
101165
|
+
created_at: string
|
|
101166
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
101167
|
+
message: string
|
|
101168
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
101169
|
+
warning_code: 'device_does_not_support_access_codes'
|
|
101170
|
+
/** ID of the device that does not support access codes. */
|
|
101171
|
+
device_id: string
|
|
101172
|
+
}
|
|
101173
|
+
| {
|
|
101174
|
+
/** Date and time at which Seam created the warning. */
|
|
101175
|
+
created_at: string
|
|
101176
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
101177
|
+
message: string
|
|
101178
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
101179
|
+
warning_code: 'device_time_constraints_violated'
|
|
101180
|
+
/** ID of the device whose time constraints the access grant violates. */
|
|
101181
|
+
device_id: string
|
|
101182
|
+
/** Specific reason why the grant's times are not programmable on the device. */
|
|
101183
|
+
reason:
|
|
101184
|
+
| 'duration_exceeds_max'
|
|
101185
|
+
| 'times_do_not_match_slots'
|
|
101186
|
+
| 'ongoing_not_supported'
|
|
101187
|
+
}
|
|
101188
|
+
)[]
|
|
101189
|
+
/** Errors associated with the [access grant](https://docs.seam.co/use-cases/granting-access). */
|
|
101190
|
+
errors: {
|
|
101191
|
+
/** Date and time at which Seam created the error. */
|
|
101225
101192
|
created_at: string
|
|
101226
|
-
/** Detailed description of the
|
|
101193
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
101227
101194
|
message: string
|
|
101228
|
-
/**
|
|
101229
|
-
|
|
101230
|
-
/** IDs of the access
|
|
101231
|
-
|
|
101232
|
-
|
|
101233
|
-
|
|
101234
|
-
|
|
101235
|
-
|
|
101236
|
-
|
|
101237
|
-
|
|
101238
|
-
|
|
101239
|
-
|
|
101240
|
-
|
|
101241
|
-
|
|
101242
|
-
|
|
101243
|
-
|
|
101244
|
-
|
|
101245
|
-
|
|
101246
|
-
|
|
101247
|
-
|
|
101248
|
-
|
|
101195
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
101196
|
+
error_code: 'cannot_create_requested_access_methods'
|
|
101197
|
+
/** IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure. */
|
|
101198
|
+
missing_device_ids?: string[] | undefined
|
|
101199
|
+
}[]
|
|
101200
|
+
/** ID of the customization profile associated with the Access Grant. */
|
|
101201
|
+
customization_profile_id?: string | undefined
|
|
101202
|
+
/** List of pending mutations for the access grant. This shows updates that are in progress. */
|
|
101203
|
+
pending_mutations: (
|
|
101204
|
+
| {
|
|
101205
|
+
/** Date and time at which the mutation was created. */
|
|
101206
|
+
created_at: string
|
|
101207
|
+
/** Detailed description of the mutation. */
|
|
101208
|
+
message: string
|
|
101209
|
+
/** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */
|
|
101210
|
+
mutation_code: 'updating_spaces'
|
|
101211
|
+
/** Previous location configuration. */
|
|
101212
|
+
from: {
|
|
101213
|
+
/** Previous device IDs where access codes existed. */
|
|
101214
|
+
device_ids: string[]
|
|
101215
|
+
}
|
|
101216
|
+
/** New location configuration. */
|
|
101217
|
+
to: {
|
|
101218
|
+
/** New device IDs where access codes should be created. */
|
|
101219
|
+
device_ids: string[]
|
|
101220
|
+
/** Common code key to ensure PIN code reuse across devices. */
|
|
101221
|
+
common_code_key?: (string | null) | undefined
|
|
101222
|
+
}
|
|
101223
|
+
}
|
|
101224
|
+
| {
|
|
101225
|
+
/** Date and time at which the mutation was created. */
|
|
101226
|
+
created_at: string
|
|
101227
|
+
/** Detailed description of the mutation. */
|
|
101228
|
+
message: string
|
|
101229
|
+
/** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */
|
|
101230
|
+
mutation_code: 'updating_access_times'
|
|
101231
|
+
/** IDs of the access methods being updated. */
|
|
101232
|
+
access_method_ids: string[]
|
|
101233
|
+
/** Previous access time configuration. */
|
|
101234
|
+
from: {
|
|
101235
|
+
/** Previous start time for access. */
|
|
101236
|
+
starts_at: string | null
|
|
101237
|
+
/** Previous end time for access. */
|
|
101238
|
+
ends_at: string | null
|
|
101239
|
+
}
|
|
101240
|
+
/** New access time configuration. */
|
|
101241
|
+
to: {
|
|
101242
|
+
/** New start time for access. */
|
|
101243
|
+
starts_at: string | null
|
|
101244
|
+
/** New end time for access. */
|
|
101245
|
+
ends_at: string | null
|
|
101246
|
+
}
|
|
101247
|
+
}
|
|
101248
|
+
)[]
|
|
101249
|
+
}
|
|
101250
|
+
| undefined
|
|
101249
101251
|
spaces: {
|
|
101250
101252
|
space_key: string
|
|
101251
101253
|
child_space_keys?: string[] | undefined
|
|
@@ -101298,6 +101300,13 @@ export type Routes = {
|
|
|
101298
101300
|
/** List of unique identifiers for the spaces the staff member is associated with. */
|
|
101299
101301
|
space_keys?: string[] | undefined
|
|
101300
101302
|
user_identity_id?: string | undefined
|
|
101303
|
+
access_grant?:
|
|
101304
|
+
| {
|
|
101305
|
+
starts_at: string
|
|
101306
|
+
ends_at: string | null
|
|
101307
|
+
created_at: string
|
|
101308
|
+
}
|
|
101309
|
+
| undefined
|
|
101301
101310
|
}[]
|
|
101302
101311
|
/** Information about the current page of results. */
|
|
101303
101312
|
pagination: {
|
|
@@ -102152,6 +102161,16 @@ export type Routes = {
|
|
|
102152
102161
|
}
|
|
102153
102162
|
maxDuration: undefined
|
|
102154
102163
|
}
|
|
102164
|
+
'/seam/webhooks/[provider]/[subscription_id]': {
|
|
102165
|
+
route: '/seam/webhooks/[provider]/[subscription_id]'
|
|
102166
|
+
method: 'POST'
|
|
102167
|
+
queryParams: {}
|
|
102168
|
+
jsonBody: any
|
|
102169
|
+
commonParams: {}
|
|
102170
|
+
formData: {}
|
|
102171
|
+
jsonResponse: {}
|
|
102172
|
+
maxDuration: undefined
|
|
102173
|
+
}
|
|
102155
102174
|
'/spaces/add_acs_entrances': {
|
|
102156
102175
|
route: '/spaces/add_acs_entrances'
|
|
102157
102176
|
method: 'POST' | 'PUT'
|