@enyo-energy/energy-app-sdk 0.0.36 → 0.0.37
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/cjs/packages/energy-app-authentication.d.cts +2 -2
- package/dist/cjs/types/enyo-authentication.d.cts +1 -2
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/packages/energy-app-authentication.d.ts +2 -2
- package/dist/types/enyo-authentication.d.ts +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnyoAuthenticateState, EnyoAuthentication, EnyoAuthenticationResponse,
|
|
1
|
+
import { EnyoAuthenticateState, EnyoAuthentication, EnyoAuthenticationResponse, EnyoOauthAuthenticationStart, EnyoOauthAuthenticationRedirectUrlResponse } from "../types/enyo-authentication.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* Interface for requesting user authentication for appliances or the entire package.
|
|
4
4
|
* Provides methods to handle authentication requests, listen for responses, and manage authentication state.
|
|
@@ -15,7 +15,7 @@ export interface EnergyAppAuthentication {
|
|
|
15
15
|
/**
|
|
16
16
|
* If you use oauth with clientIdName and clientSecretName, you need to listen to this and respond with the redirect url
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
listenForOauthStart(listener: (response: EnyoOauthAuthenticationStart) => Promise<EnyoOauthAuthenticationRedirectUrlResponse>): string;
|
|
19
19
|
/**
|
|
20
20
|
* Adds a listener for authentication responses.
|
|
21
21
|
* The listener will be called when the user completes the authentication process.
|
|
@@ -18,9 +18,8 @@ export interface EnyoOauthAuthentication {
|
|
|
18
18
|
/** If the client id and client secret need to be provided by the user*/
|
|
19
19
|
clientIdName?: EnyoPackageConfigurationTranslatedValue[];
|
|
20
20
|
clientSecretName?: EnyoPackageConfigurationTranslatedValue[];
|
|
21
|
-
redirectUrl?: string;
|
|
22
21
|
}
|
|
23
|
-
export interface
|
|
22
|
+
export interface EnyoOauthAuthenticationStart {
|
|
24
23
|
clientId?: string;
|
|
25
24
|
clientSecret?: string;
|
|
26
25
|
}
|
package/dist/cjs/version.cjs
CHANGED
|
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
|
|
|
9
9
|
/**
|
|
10
10
|
* Current version of the enyo Energy App SDK.
|
|
11
11
|
*/
|
|
12
|
-
exports.SDK_VERSION = '0.0.
|
|
12
|
+
exports.SDK_VERSION = '0.0.37';
|
|
13
13
|
/**
|
|
14
14
|
* Gets the current SDK version.
|
|
15
15
|
* @returns The semantic version string of the SDK
|
package/dist/cjs/version.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnyoAuthenticateState, EnyoAuthentication, EnyoAuthenticationResponse,
|
|
1
|
+
import { EnyoAuthenticateState, EnyoAuthentication, EnyoAuthenticationResponse, EnyoOauthAuthenticationStart, EnyoOauthAuthenticationRedirectUrlResponse } from "../types/enyo-authentication.js";
|
|
2
2
|
/**
|
|
3
3
|
* Interface for requesting user authentication for appliances or the entire package.
|
|
4
4
|
* Provides methods to handle authentication requests, listen for responses, and manage authentication state.
|
|
@@ -15,7 +15,7 @@ export interface EnergyAppAuthentication {
|
|
|
15
15
|
/**
|
|
16
16
|
* If you use oauth with clientIdName and clientSecretName, you need to listen to this and respond with the redirect url
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
listenForOauthStart(listener: (response: EnyoOauthAuthenticationStart) => Promise<EnyoOauthAuthenticationRedirectUrlResponse>): string;
|
|
19
19
|
/**
|
|
20
20
|
* Adds a listener for authentication responses.
|
|
21
21
|
* The listener will be called when the user completes the authentication process.
|
|
@@ -18,9 +18,8 @@ export interface EnyoOauthAuthentication {
|
|
|
18
18
|
/** If the client id and client secret need to be provided by the user*/
|
|
19
19
|
clientIdName?: EnyoPackageConfigurationTranslatedValue[];
|
|
20
20
|
clientSecretName?: EnyoPackageConfigurationTranslatedValue[];
|
|
21
|
-
redirectUrl?: string;
|
|
22
21
|
}
|
|
23
|
-
export interface
|
|
22
|
+
export interface EnyoOauthAuthenticationStart {
|
|
24
23
|
clientId?: string;
|
|
25
24
|
clientSecret?: string;
|
|
26
25
|
}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED