@seamapi/http 2.1.0 → 2.2.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/lib/seam/connect/resources/access-code.d.ts +743 -56
- package/lib/seam/connect/resources/access-grant.d.ts +279 -10
- package/lib/seam/connect/resources/access-method.d.ts +204 -8
- package/lib/seam/connect/resources/acs-access-group.d.ts +242 -9
- package/lib/seam/connect/resources/acs-credential.d.ts +212 -6
- package/lib/seam/connect/resources/acs-encoder.d.ts +46 -0
- package/lib/seam/connect/resources/acs-entrance.d.ts +298 -5
- package/lib/seam/connect/resources/acs-system.d.ts +227 -11
- package/lib/seam/connect/resources/acs-user.d.ts +388 -19
- package/lib/seam/connect/resources/action-attempt.d.ts +954 -0
- package/lib/seam/connect/resources/batch.d.ts +3 -0
- package/lib/seam/connect/resources/client-session.d.ts +48 -0
- package/lib/seam/connect/resources/connect-webview.d.ts +70 -0
- package/lib/seam/connect/resources/connected-account.d.ts +281 -12
- package/lib/seam/connect/resources/customer-portal.d.ts +22 -0
- package/lib/seam/connect/resources/device-provider.d.ts +72 -0
- package/lib/seam/connect/resources/device.d.ts +2063 -41
- package/lib/seam/connect/resources/event.d.ts +4014 -0
- package/lib/seam/connect/resources/instant-key.d.ts +41 -0
- package/lib/seam/connect/resources/noise-threshold.d.ts +24 -0
- package/lib/seam/connect/resources/phone.d.ts +72 -0
- package/lib/seam/connect/resources/space.d.ts +54 -0
- package/lib/seam/connect/resources/thermostat-daily-program.d.ts +27 -0
- package/lib/seam/connect/resources/thermostat-schedule.d.ts +45 -0
- package/lib/seam/connect/resources/unmanaged-access-code.d.ts +602 -50
- package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +267 -10
- package/lib/seam/connect/resources/unmanaged-access-method.d.ts +195 -8
- package/lib/seam/connect/resources/unmanaged-device.d.ts +810 -120
- package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +79 -3
- package/lib/seam/connect/resources/user-identity.d.ts +82 -3
- package/lib/seam/connect/resources/webhook.d.ts +15 -0
- package/lib/seam/connect/resources/workspace.d.ts +45 -0
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +288 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js +60 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +12 -0
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +72 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +21 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/access-grants.d.ts +177 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js +21 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +43 -0
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +13 -0
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +78 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +21 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +21 -0
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +6 -0
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +63 -0
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js +21 -0
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +126 -0
- package/lib/seam/connect/routes/acs/credentials/credentials.js +24 -0
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +66 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js +15 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +39 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +12 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +72 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js +15 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
- package/lib/seam/connect/routes/acs/systems/systems.d.ts +64 -0
- package/lib/seam/connect/routes/acs/systems/systems.js +16 -0
- package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
- package/lib/seam/connect/routes/acs/users/users.d.ts +189 -0
- package/lib/seam/connect/routes/acs/users/users.js +33 -0
- package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +21 -0
- package/lib/seam/connect/routes/action-attempts/action-attempts.js +6 -0
- package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +113 -0
- package/lib/seam/connect/routes/client-sessions/client-sessions.js +23 -0
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +76 -0
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +22 -0
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +70 -0
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +19 -0
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +6 -0
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +1042 -0
- package/lib/seam/connect/routes/customers/customers.js +10 -0
- package/lib/seam/connect/routes/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/devices/devices.d.ts +122 -0
- package/lib/seam/connect/routes/devices/devices.js +23 -0
- package/lib/seam/connect/routes/devices/devices.js.map +1 -1
- package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +42 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js +27 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +80 -0
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +17 -0
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/events/events.d.ts +99 -0
- package/lib/seam/connect/routes/events/events.js +6 -0
- package/lib/seam/connect/routes/events/events.js.map +1 -1
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +21 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +9 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
- package/lib/seam/connect/routes/locks/locks.d.ts +85 -0
- package/lib/seam/connect/routes/locks/locks.js +16 -0
- package/lib/seam/connect/routes/locks/locks.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +15 -0
- package/lib/seam/connect/routes/locks/simulate/simulate.js +6 -0
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +51 -0
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +3 -0
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +66 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +15 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +6 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones/phones.d.ts +21 -0
- package/lib/seam/connect/routes/phones/phones.js +9 -0
- package/lib/seam/connect/routes/phones/phones.js.map +1 -1
- package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +45 -0
- package/lib/seam/connect/routes/phones/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +6 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +6 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +696 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js +696 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/spaces/spaces.d.ts +165 -0
- package/lib/seam/connect/routes/spaces/spaces.js +36 -0
- package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +42 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +9 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +69 -0
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js +15 -0
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +33 -0
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js +6 -0
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.d.ts +300 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js +42 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +35 -0
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +11 -0
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/user-identities.d.ts +145 -0
- package/lib/seam/connect/routes/user-identities/user-identities.js +46 -0
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks/webhooks.d.ts +33 -0
- package/lib/seam/connect/routes/webhooks/webhooks.js +15 -0
- package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +88 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js +15 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/resources/access-code.ts +719 -35
- package/src/lib/seam/connect/resources/access-grant.ts +284 -16
- package/src/lib/seam/connect/resources/access-method.ts +205 -10
- package/src/lib/seam/connect/resources/acs-access-group.ts +247 -14
- package/src/lib/seam/connect/resources/acs-credential.ts +210 -5
- package/src/lib/seam/connect/resources/acs-encoder.ts +46 -0
- package/src/lib/seam/connect/resources/acs-entrance.ts +296 -4
- package/src/lib/seam/connect/resources/acs-system.ts +223 -9
- package/src/lib/seam/connect/resources/acs-user.ts +382 -16
- package/src/lib/seam/connect/resources/action-attempt.ts +956 -0
- package/src/lib/seam/connect/resources/batch.ts +3 -0
- package/src/lib/seam/connect/resources/client-session.ts +48 -0
- package/src/lib/seam/connect/resources/connect-webview.ts +70 -0
- package/src/lib/seam/connect/resources/connected-account.ts +277 -10
- package/src/lib/seam/connect/resources/customer-portal.ts +22 -0
- package/src/lib/seam/connect/resources/device-provider.ts +72 -0
- package/src/lib/seam/connect/resources/device.ts +2059 -39
- package/src/lib/seam/connect/resources/event.ts +4015 -0
- package/src/lib/seam/connect/resources/instant-key.ts +41 -0
- package/src/lib/seam/connect/resources/noise-threshold.ts +24 -0
- package/src/lib/seam/connect/resources/phone.ts +72 -0
- package/src/lib/seam/connect/resources/space.ts +54 -0
- package/src/lib/seam/connect/resources/thermostat-daily-program.ts +27 -0
- package/src/lib/seam/connect/resources/thermostat-schedule.ts +45 -0
- package/src/lib/seam/connect/resources/unmanaged-access-code.ts +580 -30
- package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +272 -16
- package/src/lib/seam/connect/resources/unmanaged-access-method.ts +196 -10
- package/src/lib/seam/connect/resources/unmanaged-device.ts +727 -39
- package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +84 -8
- package/src/lib/seam/connect/resources/user-identity.ts +87 -8
- package/src/lib/seam/connect/resources/webhook.ts +15 -0
- package/src/lib/seam/connect/resources/workspace.ts +46 -0
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +291 -0
- package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +12 -0
- package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +73 -0
- package/src/lib/seam/connect/routes/access-grants/access-grants.ts +180 -0
- package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +43 -0
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +79 -0
- package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +21 -0
- package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +63 -0
- package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +133 -0
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +66 -0
- package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +40 -0
- package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +72 -0
- package/src/lib/seam/connect/routes/acs/systems/systems.ts +64 -0
- package/src/lib/seam/connect/routes/acs/users/users.ts +189 -0
- package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +21 -0
- package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +113 -0
- package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +76 -0
- package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +70 -0
- package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +6 -0
- package/src/lib/seam/connect/routes/customers/customers.ts +1058 -0
- package/src/lib/seam/connect/routes/devices/devices.ts +123 -0
- package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +42 -0
- package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +80 -0
- package/src/lib/seam/connect/routes/events/events.ts +99 -0
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +21 -0
- package/src/lib/seam/connect/routes/locks/locks.ts +85 -0
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +15 -0
- package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +51 -0
- package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +66 -0
- package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +6 -0
- package/src/lib/seam/connect/routes/phones/phones.ts +21 -0
- package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +45 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +6 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +696 -0
- package/src/lib/seam/connect/routes/spaces/spaces.ts +166 -0
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +42 -0
- package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +69 -0
- package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +33 -0
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +300 -0
- package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +35 -0
- package/src/lib/seam/connect/routes/user-identities/user-identities.ts +146 -0
- package/src/lib/seam/connect/routes/webhooks/webhooks.ts +33 -0
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +88 -0
- package/src/lib/version.ts +1 -1
|
@@ -17,22 +17,70 @@ export declare class SeamHttpClientSessions {
|
|
|
17
17
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpClientSessions;
|
|
18
18
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
19
19
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
22
|
+
*/
|
|
20
23
|
create(parameters?: ClientSessionsCreateParameters, options?: ClientSessionsCreateOptions): ClientSessionsCreateRequest;
|
|
24
|
+
/**
|
|
25
|
+
* Deletes a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
26
|
+
*/
|
|
21
27
|
delete(parameters: ClientSessionsDeleteParameters, options?: ClientSessionsDeleteOptions): ClientSessionsDeleteRequest;
|
|
28
|
+
/**
|
|
29
|
+
* Returns a specified [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
30
|
+
*/
|
|
22
31
|
get(parameters?: ClientSessionsGetParameters, options?: ClientSessionsGetOptions): ClientSessionsGetRequest;
|
|
32
|
+
/**
|
|
33
|
+
* Returns a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) with specific characteristics or creates a new client session with these characteristics if it does not yet exist.
|
|
34
|
+
*/
|
|
23
35
|
getOrCreate(parameters?: ClientSessionsGetOrCreateParameters, options?: ClientSessionsGetOrCreateOptions): ClientSessionsGetOrCreateRequest;
|
|
36
|
+
/**
|
|
37
|
+
* Grants a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) access to one or more resources, such as [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews), [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity), and so on.
|
|
38
|
+
*/
|
|
24
39
|
grantAccess(parameters?: ClientSessionsGrantAccessParameters, options?: ClientSessionsGrantAccessOptions): ClientSessionsGrantAccessRequest;
|
|
40
|
+
/**
|
|
41
|
+
* Returns a list of all [client sessions](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
42
|
+
*/
|
|
25
43
|
list(parameters?: ClientSessionsListParameters, options?: ClientSessionsListOptions): ClientSessionsListRequest;
|
|
44
|
+
/**
|
|
45
|
+
* Revokes a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
46
|
+
*
|
|
47
|
+
* Note that [deleting a client session](https://docs.seam.co/api/client_sessions/delete) is a separate action.
|
|
48
|
+
*/
|
|
26
49
|
revoke(parameters: ClientSessionsRevokeParameters, options?: ClientSessionsRevokeOptions): ClientSessionsRevokeRequest;
|
|
27
50
|
}
|
|
28
51
|
export type ClientSessionsCreateParameters = {
|
|
52
|
+
/**
|
|
53
|
+
* IDs of the [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) for which you want to create a client session.
|
|
54
|
+
*/
|
|
29
55
|
connect_webview_ids?: Array<string> | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* IDs of the [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) for which you want to create a client session.
|
|
58
|
+
*/
|
|
30
59
|
connected_account_ids?: Array<string> | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Customer ID that you want to associate with the new client session.
|
|
62
|
+
*/
|
|
31
63
|
customer_id?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Customer key that you want to associate with the new client session.
|
|
66
|
+
*/
|
|
32
67
|
customer_key?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Date and time at which the client session should expire, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
70
|
+
*/
|
|
33
71
|
expires_at?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Your user ID for the user for whom you want to create a client session.
|
|
74
|
+
*/
|
|
34
75
|
user_identifier_key?: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.
|
|
78
|
+
*/
|
|
35
79
|
user_identity_id?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* IDs of the [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.
|
|
82
|
+
* @deprecated Use `user_identity_id` instead.
|
|
83
|
+
*/
|
|
36
84
|
user_identity_ids?: Array<string> | undefined;
|
|
37
85
|
};
|
|
38
86
|
/**
|
|
@@ -45,6 +93,9 @@ export type ClientSessionsCreateRequest = SeamHttpRequest<ClientSessionsCreateRe
|
|
|
45
93
|
export interface ClientSessionsCreateOptions {
|
|
46
94
|
}
|
|
47
95
|
export type ClientSessionsDeleteParameters = {
|
|
96
|
+
/**
|
|
97
|
+
* ID of the client session that you want to delete.
|
|
98
|
+
*/
|
|
48
99
|
client_session_id: string;
|
|
49
100
|
};
|
|
50
101
|
/**
|
|
@@ -55,7 +106,13 @@ export type ClientSessionsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
|
55
106
|
export interface ClientSessionsDeleteOptions {
|
|
56
107
|
}
|
|
57
108
|
export type ClientSessionsGetParameters = {
|
|
109
|
+
/**
|
|
110
|
+
* ID of the client session that you want to get.
|
|
111
|
+
*/
|
|
58
112
|
client_session_id?: string | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* User identifier key associated with the client session that you want to get.
|
|
115
|
+
*/
|
|
59
116
|
user_identifier_key?: string | undefined;
|
|
60
117
|
};
|
|
61
118
|
/**
|
|
@@ -68,11 +125,30 @@ export type ClientSessionsGetRequest = SeamHttpRequest<ClientSessionsGetResponse
|
|
|
68
125
|
export interface ClientSessionsGetOptions {
|
|
69
126
|
}
|
|
70
127
|
export type ClientSessionsGetOrCreateParameters = {
|
|
128
|
+
/**
|
|
129
|
+
* IDs of the [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) that you want to associate with the client session (or that are already associated with the existing client session).
|
|
130
|
+
*/
|
|
71
131
|
connect_webview_ids?: Array<string> | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* IDs of the [connected accounts](https://docs.seam.co/api/connected_accounts) that you want to associate with the client session (or that are already associated with the existing client session).
|
|
134
|
+
*/
|
|
72
135
|
connected_account_ids?: Array<string> | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Date and time at which the client session should expire in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. If the client session already exists, this will update the expiration before returning it.
|
|
138
|
+
*/
|
|
73
139
|
expires_at?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session).
|
|
142
|
+
*/
|
|
74
143
|
user_identifier_key?: string | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session (or that are already associated with the existing client session).
|
|
146
|
+
*/
|
|
75
147
|
user_identity_id?: string | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* IDs of the [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.
|
|
150
|
+
* @deprecated Use `user_identity_id`.
|
|
151
|
+
*/
|
|
76
152
|
user_identity_ids?: Array<string> | undefined;
|
|
77
153
|
};
|
|
78
154
|
/**
|
|
@@ -85,11 +161,30 @@ export type ClientSessionsGetOrCreateRequest = SeamHttpRequest<ClientSessionsGet
|
|
|
85
161
|
export interface ClientSessionsGetOrCreateOptions {
|
|
86
162
|
}
|
|
87
163
|
export type ClientSessionsGrantAccessParameters = {
|
|
164
|
+
/**
|
|
165
|
+
* ID of the client session to which you want to grant access to resources.
|
|
166
|
+
*/
|
|
88
167
|
client_session_id?: string | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* IDs of the [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) that you want to associate with the client session.
|
|
170
|
+
*/
|
|
89
171
|
connect_webview_ids?: Array<string> | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* IDs of the [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) that you want to associate with the client session.
|
|
174
|
+
*/
|
|
90
175
|
connected_account_ids?: Array<string> | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* Your user ID for the user that you want to associate with the client session.
|
|
178
|
+
*/
|
|
91
179
|
user_identifier_key?: string | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.
|
|
182
|
+
*/
|
|
92
183
|
user_identity_id?: string | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* IDs of the [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.
|
|
186
|
+
* @deprecated Use `user_identity_id`.
|
|
187
|
+
*/
|
|
93
188
|
user_identity_ids?: Array<string> | undefined;
|
|
94
189
|
};
|
|
95
190
|
/**
|
|
@@ -100,10 +195,25 @@ export type ClientSessionsGrantAccessRequest = SeamHttpRequest<void, undefined>;
|
|
|
100
195
|
export interface ClientSessionsGrantAccessOptions {
|
|
101
196
|
}
|
|
102
197
|
export type ClientSessionsListParameters = {
|
|
198
|
+
/**
|
|
199
|
+
* ID of the client session that you want to retrieve.
|
|
200
|
+
*/
|
|
103
201
|
client_session_id?: string | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* ID of the [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) for which you want to retrieve client sessions.
|
|
204
|
+
*/
|
|
104
205
|
connect_webview_id?: string | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* Your user ID for the user by which you want to filter client sessions.
|
|
208
|
+
*/
|
|
105
209
|
user_identifier_key?: string | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to retrieve client sessions.
|
|
212
|
+
*/
|
|
106
213
|
user_identity_id?: string | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Indicates whether to retrieve only client sessions without associated user identifier keys.
|
|
216
|
+
*/
|
|
107
217
|
without_user_identifier_key?: boolean | undefined;
|
|
108
218
|
};
|
|
109
219
|
/**
|
|
@@ -116,6 +226,9 @@ export type ClientSessionsListRequest = SeamHttpRequest<ClientSessionsListRespon
|
|
|
116
226
|
export interface ClientSessionsListOptions {
|
|
117
227
|
}
|
|
118
228
|
export type ClientSessionsRevokeParameters = {
|
|
229
|
+
/**
|
|
230
|
+
* ID of the client session that you want to revoke.
|
|
231
|
+
*/
|
|
119
232
|
client_session_id: string;
|
|
120
233
|
};
|
|
121
234
|
/**
|
|
@@ -84,6 +84,9 @@ export class SeamHttpClientSessions {
|
|
|
84
84
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
85
85
|
await clientSessions.get();
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Creates a new [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
89
|
+
*/
|
|
87
90
|
create(parameters, options = {}) {
|
|
88
91
|
return new SeamHttpRequest(this, {
|
|
89
92
|
pathname: '/client_sessions/create',
|
|
@@ -93,6 +96,9 @@ export class SeamHttpClientSessions {
|
|
|
93
96
|
options,
|
|
94
97
|
});
|
|
95
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Deletes a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
101
|
+
*/
|
|
96
102
|
delete(parameters, options = {}) {
|
|
97
103
|
return new SeamHttpRequest(this, {
|
|
98
104
|
pathname: '/client_sessions/delete',
|
|
@@ -102,6 +108,9 @@ export class SeamHttpClientSessions {
|
|
|
102
108
|
options,
|
|
103
109
|
});
|
|
104
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Returns a specified [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
113
|
+
*/
|
|
105
114
|
get(parameters, options = {}) {
|
|
106
115
|
return new SeamHttpRequest(this, {
|
|
107
116
|
pathname: '/client_sessions/get',
|
|
@@ -111,6 +120,9 @@ export class SeamHttpClientSessions {
|
|
|
111
120
|
options,
|
|
112
121
|
});
|
|
113
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Returns a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) with specific characteristics or creates a new client session with these characteristics if it does not yet exist.
|
|
125
|
+
*/
|
|
114
126
|
getOrCreate(parameters, options = {}) {
|
|
115
127
|
return new SeamHttpRequest(this, {
|
|
116
128
|
pathname: '/client_sessions/get_or_create',
|
|
@@ -120,6 +132,9 @@ export class SeamHttpClientSessions {
|
|
|
120
132
|
options,
|
|
121
133
|
});
|
|
122
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Grants a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) access to one or more resources, such as [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews), [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity), and so on.
|
|
137
|
+
*/
|
|
123
138
|
grantAccess(parameters, options = {}) {
|
|
124
139
|
return new SeamHttpRequest(this, {
|
|
125
140
|
pathname: '/client_sessions/grant_access',
|
|
@@ -129,6 +144,9 @@ export class SeamHttpClientSessions {
|
|
|
129
144
|
options,
|
|
130
145
|
});
|
|
131
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Returns a list of all [client sessions](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
149
|
+
*/
|
|
132
150
|
list(parameters, options = {}) {
|
|
133
151
|
return new SeamHttpRequest(this, {
|
|
134
152
|
pathname: '/client_sessions/list',
|
|
@@ -138,6 +156,11 @@ export class SeamHttpClientSessions {
|
|
|
138
156
|
options,
|
|
139
157
|
});
|
|
140
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Revokes a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
161
|
+
*
|
|
162
|
+
* Note that [deleting a client session](https://docs.seam.co/api/client_sessions/delete) is a separate action.
|
|
163
|
+
*/
|
|
141
164
|
revoke(parameters, options = {}) {
|
|
142
165
|
return new SeamHttpRequest(this, {
|
|
143
166
|
pathname: '/client_sessions/revoke',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-sessions.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/client-sessions/client-sessions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAElE,MAAM,OAAO,sBAAs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M,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"client-sessions.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/client-sessions/client-sessions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAElE,MAAM,OAAO,sBAAsB;IACjC,MAAM,CAAQ;IACL,QAAQ,CAAkC;IAC1C,UAAU,GAAG,iBAAiB,CAAA;IACvC,MAAM,CAAC,UAAU,GAAG,iBAAiB,CAAA;IAErC,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,EAAE;QAEvD,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,M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O,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,gCAAgC;YAC1C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,WAAW,CACT,UAAgD,EAChD,UAA4C,EAAE;QAE9C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,+BAA+B;YACzC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,CACF,UAAyC,EACzC,UAAqC,EAAE;QAEvC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,uBAAuB;YACjC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iBAAiB;YAC9B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,UAA0C,EAC1C,UAAuC,EAAE;QAEzC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yBAAyB;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -17,21 +17,73 @@ export declare class SeamHttpConnectWebviews {
|
|
|
17
17
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpConnectWebviews;
|
|
18
18
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
19
19
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
22
|
+
*
|
|
23
|
+
* To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a `connect_webview`. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.
|
|
24
|
+
*
|
|
25
|
+
* You should make a new `connect_webview` for each unique login request. Each `connect_webview` tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.
|
|
26
|
+
*
|
|
27
|
+
* See also: [Connect Webview Process](https://docs.seam.co/core-concepts/connect-webviews/connect-webview-process).
|
|
28
|
+
*/
|
|
20
29
|
create(parameters?: ConnectWebviewsCreateParameters, options?: ConnectWebviewsCreateOptions): ConnectWebviewsCreateRequest;
|
|
30
|
+
/**
|
|
31
|
+
* Deletes a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
32
|
+
*
|
|
33
|
+
* You do not need to delete a Connect Webview once a user completes it. Instead, you can simply ignore completed Connect Webviews.
|
|
34
|
+
*/
|
|
21
35
|
delete(parameters: ConnectWebviewsDeleteParameters, options?: ConnectWebviewsDeleteOptions): ConnectWebviewsDeleteRequest;
|
|
36
|
+
/**
|
|
37
|
+
* Returns a specified [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
38
|
+
*
|
|
39
|
+
* Unless you're using a `custom_redirect_url`, you should poll a newly-created `connect_webview` to find out if the user has signed in or to get details about what devices they've connected.
|
|
40
|
+
*/
|
|
22
41
|
get(parameters: ConnectWebviewsGetParameters, options?: ConnectWebviewsGetOptions): ConnectWebviewsGetRequest;
|
|
42
|
+
/**
|
|
43
|
+
* Returns a list of all [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews).
|
|
44
|
+
*/
|
|
23
45
|
list(parameters?: ConnectWebviewsListParameters, options?: ConnectWebviewsListOptions): ConnectWebviewsListRequest;
|
|
24
46
|
}
|
|
25
47
|
export type ConnectWebviewsCreateParameters = {
|
|
48
|
+
/**
|
|
49
|
+
* List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers.
|
|
50
|
+
*/
|
|
26
51
|
accepted_capabilities?: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/api/devices/list_device_providers) with no filters.
|
|
54
|
+
*/
|
|
27
55
|
accepted_providers?: Array<'hotek' | 'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'salto_ks' | 'salto_ks_accept' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'tedee' | 'honeywell_resideo' | 'first_alert' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'assa_abloy_vostio_credential_service' | 'tado' | 'salto_space' | 'sensi' | 'keynest' | 'korelock' | 'keyincode' | 'dormakaba_ambiance' | 'ultraloq' | 'dusaw' | 'sifely' | 'thirty_three_lock' | 'ring' | 'ical' | 'lodgify' | 'hostaway' | 'guesty' | 'acuity_scheduling' | 'omnitec' | 'kisi' | 'aqara' | 'yale_access' | 'hid_cm' | 'google_nest' | 'slack'> | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices). See also: [Customize the Behavior Settings of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).
|
|
58
|
+
*/
|
|
28
59
|
automatically_manage_new_devices?: boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Custom metadata that you want to associate with the Connect Webview. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview) enables you to store custom information, like customer details or internal IDs from your application. The custom metadata is then transferred to any [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) that were connected using the Connect Webview, making it easy to find and filter these resources in your [workspace](https://docs.seam.co/core-concepts/workspaces). You can also [filter Connect Webviews by custom metadata](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata).
|
|
62
|
+
*/
|
|
29
63
|
custom_metadata?: Record<string, unknown> | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`.
|
|
66
|
+
*/
|
|
30
67
|
custom_redirect_failure_url?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* URL that you want to redirect the user to after the provider login is complete.
|
|
70
|
+
*/
|
|
31
71
|
custom_redirect_url?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error.
|
|
74
|
+
*/
|
|
32
75
|
customer_key?: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* List of provider keys to exclude from the Connect Webview. These providers will not be shown when the user tries to connect an account.
|
|
78
|
+
*/
|
|
33
79
|
excluded_providers?: Array<string> | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Specifies the category of providers that you want to include. To list all providers within a category, use [`/devices/list_device_providers`](https://docs.seam.co/api/devices/list_device_providers) with the desired `provider_category` filter.
|
|
82
|
+
*/
|
|
34
83
|
provider_category?: 'stable' | 'consumer_smartlocks' | 'beta' | 'thermostats' | 'noise_sensors' | 'access_control_systems' | 'cameras' | 'connectors' | 'internal_beta' | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Indicates whether Seam should finish syncing all devices in a newly-connected account before completing the associated Connect Webview. See also: [Customize the Behavior Settings of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).
|
|
86
|
+
*/
|
|
35
87
|
wait_for_device_creation?: boolean | undefined;
|
|
36
88
|
};
|
|
37
89
|
/**
|
|
@@ -44,6 +96,9 @@ export type ConnectWebviewsCreateRequest = SeamHttpRequest<ConnectWebviewsCreate
|
|
|
44
96
|
export interface ConnectWebviewsCreateOptions {
|
|
45
97
|
}
|
|
46
98
|
export type ConnectWebviewsDeleteParameters = {
|
|
99
|
+
/**
|
|
100
|
+
* ID of the Connect Webview that you want to delete.
|
|
101
|
+
*/
|
|
47
102
|
connect_webview_id: string;
|
|
48
103
|
};
|
|
49
104
|
/**
|
|
@@ -54,6 +109,9 @@ export type ConnectWebviewsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
|
54
109
|
export interface ConnectWebviewsDeleteOptions {
|
|
55
110
|
}
|
|
56
111
|
export type ConnectWebviewsGetParameters = {
|
|
112
|
+
/**
|
|
113
|
+
* ID of the Connect Webview that you want to get.
|
|
114
|
+
*/
|
|
57
115
|
connect_webview_id: string;
|
|
58
116
|
};
|
|
59
117
|
/**
|
|
@@ -66,11 +124,29 @@ export type ConnectWebviewsGetRequest = SeamHttpRequest<ConnectWebviewsGetRespon
|
|
|
66
124
|
export interface ConnectWebviewsGetOptions {
|
|
67
125
|
}
|
|
68
126
|
export type ConnectWebviewsListParameters = {
|
|
127
|
+
/**
|
|
128
|
+
* Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs.
|
|
129
|
+
*/
|
|
69
130
|
custom_metadata_has?: Record<string, unknown> | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* Customer key for which you want to list connect webviews.
|
|
133
|
+
*/
|
|
70
134
|
customer_key?: string | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* Maximum number of records to return per page.
|
|
137
|
+
*/
|
|
71
138
|
limit?: number | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
141
|
+
*/
|
|
72
142
|
page_cursor?: string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* String for which to search. Filters returned Connect Webviews to include all records that satisfy a partial match using `connect_webview_id`, `accepted_providers`, `custom_metadata`, or `customer_key`.
|
|
145
|
+
*/
|
|
73
146
|
search?: string | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* Your user ID for the user by which you want to filter Connect Webviews.
|
|
149
|
+
*/
|
|
74
150
|
user_identifier_key?: string | undefined;
|
|
75
151
|
};
|
|
76
152
|
/**
|
|
@@ -85,6 +85,15 @@ export class SeamHttpConnectWebviews {
|
|
|
85
85
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
86
86
|
await clientSessions.get();
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Creates a new [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
90
|
+
*
|
|
91
|
+
* To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a `connect_webview`. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.
|
|
92
|
+
*
|
|
93
|
+
* You should make a new `connect_webview` for each unique login request. Each `connect_webview` tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.
|
|
94
|
+
*
|
|
95
|
+
* See also: [Connect Webview Process](https://docs.seam.co/core-concepts/connect-webviews/connect-webview-process).
|
|
96
|
+
*/
|
|
88
97
|
create(parameters, options = {}) {
|
|
89
98
|
return new SeamHttpRequest(this, {
|
|
90
99
|
pathname: '/connect_webviews/create',
|
|
@@ -94,6 +103,11 @@ export class SeamHttpConnectWebviews {
|
|
|
94
103
|
options,
|
|
95
104
|
});
|
|
96
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Deletes a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
108
|
+
*
|
|
109
|
+
* You do not need to delete a Connect Webview once a user completes it. Instead, you can simply ignore completed Connect Webviews.
|
|
110
|
+
*/
|
|
97
111
|
delete(parameters, options = {}) {
|
|
98
112
|
return new SeamHttpRequest(this, {
|
|
99
113
|
pathname: '/connect_webviews/delete',
|
|
@@ -103,6 +117,11 @@ export class SeamHttpConnectWebviews {
|
|
|
103
117
|
options,
|
|
104
118
|
});
|
|
105
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Returns a specified [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
122
|
+
*
|
|
123
|
+
* Unless you're using a `custom_redirect_url`, you should poll a newly-created `connect_webview` to find out if the user has signed in or to get details about what devices they've connected.
|
|
124
|
+
*/
|
|
106
125
|
get(parameters, options = {}) {
|
|
107
126
|
return new SeamHttpRequest(this, {
|
|
108
127
|
pathname: '/connect_webviews/get',
|
|
@@ -112,6 +131,9 @@ export class SeamHttpConnectWebviews {
|
|
|
112
131
|
options,
|
|
113
132
|
});
|
|
114
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Returns a list of all [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews).
|
|
136
|
+
*/
|
|
115
137
|
list(parameters, options = {}) {
|
|
116
138
|
return new SeamHttpRequest(this, {
|
|
117
139
|
pathname: '/connect_webviews/list',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-webviews.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAElE,MAAM,OAAO,uBAAuB;IAClC,MAAM,CAAQ;IACL,QAAQ,CAAkC;IAC1C,UAAU,GAAG,iBAAiB,CAAA;IACvC,MAAM,CAAC,UAAU,GAAG,iBAAiB,CAAA;IAErC,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,EAAE;QAEvD,MAAM,kBAAkB,GAAG,EA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,EAAE;YAC/B,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kBAAkB;YAC/B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"connect-webviews.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAElE,MAAM,OAAO,uBAAuB;IAClC,MAAM,CAAQ;IACL,QAAQ,CAAkC;IAC1C,UAAU,GAAG,iBAAiB,CAAA;IACvC,MAAM,CAAC,UAAU,GAAG,iBAAiB,CAAA;IAErC,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IA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E,iBAAiB;YAC9B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,CACF,UAA0C,EAC1C,UAAsC,EAAE;QAExC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kBAAkB;YAC/B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -19,13 +19,35 @@ export declare class SeamHttpConnectedAccounts {
|
|
|
19
19
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
20
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
21
|
get simulate(): SeamHttpConnectedAccountsSimulate;
|
|
22
|
+
/**
|
|
23
|
+
* Deletes a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
24
|
+
*
|
|
25
|
+
* Deleting a connected account triggers a `connected_account.deleted` event and removes the connected account and all data associated with the connected account from Seam, including devices, events, access codes, and so on. For every deleted resource, Seam sends a corresponding deleted event, but the resource is not deleted from the provider.
|
|
26
|
+
*
|
|
27
|
+
* For example, if you delete a connected account with a device that has an access code, Seam sends a `connected_account.deleted` event, a `device.deleted` event, and an `access_code.deleted` event, but Seam does not remove the access code from the device.
|
|
28
|
+
*/
|
|
22
29
|
delete(parameters: ConnectedAccountsDeleteParameters, options?: ConnectedAccountsDeleteOptions): ConnectedAccountsDeleteRequest;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
32
|
+
*/
|
|
23
33
|
get(parameters?: ConnectedAccountsGetParameters, options?: ConnectedAccountsGetOptions): ConnectedAccountsGetRequest;
|
|
34
|
+
/**
|
|
35
|
+
* Returns a list of all [connected accounts](https://docs.seam.co/core-concepts/connected-accounts).
|
|
36
|
+
*/
|
|
24
37
|
list(parameters?: ConnectedAccountsListParameters, options?: ConnectedAccountsListOptions): ConnectedAccountsListRequest;
|
|
38
|
+
/**
|
|
39
|
+
* Request a [connected account](https://docs.seam.co/core-concepts/connected-accounts) sync attempt for the specified `connected_account_id`.
|
|
40
|
+
*/
|
|
25
41
|
sync(parameters: ConnectedAccountsSyncParameters, options?: ConnectedAccountsSyncOptions): ConnectedAccountsSyncRequest;
|
|
42
|
+
/**
|
|
43
|
+
* Updates a [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
44
|
+
*/
|
|
26
45
|
update(parameters: ConnectedAccountsUpdateParameters, options?: ConnectedAccountsUpdateOptions): ConnectedAccountsUpdateRequest;
|
|
27
46
|
}
|
|
28
47
|
export type ConnectedAccountsDeleteParameters = {
|
|
48
|
+
/**
|
|
49
|
+
* ID of the connected account that you want to delete.
|
|
50
|
+
*/
|
|
29
51
|
connected_account_id: string;
|
|
30
52
|
};
|
|
31
53
|
/**
|
|
@@ -36,7 +58,13 @@ export type ConnectedAccountsDeleteRequest = SeamHttpRequest<void, undefined>;
|
|
|
36
58
|
export interface ConnectedAccountsDeleteOptions {
|
|
37
59
|
}
|
|
38
60
|
export type ConnectedAccountsGetParameters = {
|
|
61
|
+
/**
|
|
62
|
+
* ID of the connected account that you want to get.
|
|
63
|
+
*/
|
|
39
64
|
connected_account_id?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Email address associated with the connected account that you want to get.
|
|
67
|
+
*/
|
|
40
68
|
email?: string | undefined;
|
|
41
69
|
};
|
|
42
70
|
/**
|
|
@@ -49,12 +77,33 @@ export type ConnectedAccountsGetRequest = SeamHttpRequest<ConnectedAccountsGetRe
|
|
|
49
77
|
export interface ConnectedAccountsGetOptions {
|
|
50
78
|
}
|
|
51
79
|
export type ConnectedAccountsListParameters = {
|
|
80
|
+
/**
|
|
81
|
+
* Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs.
|
|
82
|
+
*/
|
|
52
83
|
custom_metadata_has?: Record<string, unknown> | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Customer key by which you want to filter connected accounts.
|
|
86
|
+
*/
|
|
53
87
|
customer_key?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Maximum number of records to return per page.
|
|
90
|
+
*/
|
|
54
91
|
limit?: number | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
94
|
+
*/
|
|
55
95
|
page_cursor?: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* String for which to search. Filters returned connected accounts to include all records that satisfy a partial match using `connected_account_id`, `account_type`, `customer_key`, `custom_metadata`, `user_identifier.username`, `user_identifier.email` or `user_identifier.phone`.
|
|
98
|
+
*/
|
|
56
99
|
search?: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* ID of the space by which you want to filter connected accounts.
|
|
102
|
+
*/
|
|
57
103
|
space_id?: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Your user ID for the user by which you want to filter connected accounts.
|
|
106
|
+
*/
|
|
58
107
|
user_identifier_key?: string | undefined;
|
|
59
108
|
};
|
|
60
109
|
/**
|
|
@@ -67,6 +116,9 @@ export type ConnectedAccountsListRequest = SeamHttpRequest<ConnectedAccountsList
|
|
|
67
116
|
export interface ConnectedAccountsListOptions {
|
|
68
117
|
}
|
|
69
118
|
export type ConnectedAccountsSyncParameters = {
|
|
119
|
+
/**
|
|
120
|
+
* ID of the connected account that you want to sync.
|
|
121
|
+
*/
|
|
70
122
|
connected_account_id: string;
|
|
71
123
|
};
|
|
72
124
|
/**
|
|
@@ -77,11 +129,29 @@ export type ConnectedAccountsSyncRequest = SeamHttpRequest<void, undefined>;
|
|
|
77
129
|
export interface ConnectedAccountsSyncOptions {
|
|
78
130
|
}
|
|
79
131
|
export type ConnectedAccountsUpdateParameters = {
|
|
132
|
+
/**
|
|
133
|
+
* List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`.
|
|
134
|
+
*/
|
|
80
135
|
accepted_capabilities?: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'> | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
|
|
138
|
+
*/
|
|
81
139
|
automatically_manage_new_devices?: boolean | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* ID of the connected account that you want to update.
|
|
142
|
+
*/
|
|
82
143
|
connected_account_id: string;
|
|
144
|
+
/**
|
|
145
|
+
* Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).
|
|
146
|
+
*/
|
|
83
147
|
custom_metadata?: Record<string, unknown> | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.
|
|
150
|
+
*/
|
|
84
151
|
customer_key?: string | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Human-readable name for the connected account, shown in the dashboard. For example, `Booking from Airbnb House 1`.
|
|
154
|
+
*/
|
|
85
155
|
display_name?: string | undefined;
|
|
86
156
|
};
|
|
87
157
|
/**
|