@cloud-os/sandbox-app-standard-bridge 20251223.0.2 → 20251226.0.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/Bridge/Authorization/Payload/AuthorizatioBridgePayload.d.ts +2 -2
- package/dist/Bridge/Authorization/index.d.ts +2 -2
- package/dist/Bridge/Authorization/index.js +2 -2
- package/dist/Event/Authorization/AuthorizationEvent.d.ts +2 -2
- package/dist/Event/Authorization/Payload/CreateChallengePayload.d.ts +5 -0
- package/dist/Event/Authorization/Payload/CreateChallengePayload.js +1 -0
- package/dist/Hooks/Authorization/AuthorizationProviderHook.d.ts +3 -2
- package/dist/Interface/Authorization/Credential.d.ts +10 -0
- package/dist/Interface/Authorization/Credential.js +1 -0
- package/dist/Interface/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateChallengePayload } from "../../../Event/Authorization/Payload/CreateChallengePayload";
|
|
2
2
|
export interface AuthorizatioBridgePayload {
|
|
3
|
-
|
|
3
|
+
createChallengeAsync: (payload: CreateChallengePayload) => Promise<void>;
|
|
4
4
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateChallengePayload } from "../../Event/Authorization/Payload/CreateChallengePayload";
|
|
2
2
|
import { AuthorizationEvent } from "../../index";
|
|
3
3
|
import { AuthorizatioBridgePayload } from "./Payload/AuthorizatioBridgePayload";
|
|
4
4
|
export default class AuthorizationBridge implements AuthorizationEvent {
|
|
5
5
|
private readonly payload;
|
|
6
6
|
constructor(payload: AuthorizatioBridgePayload);
|
|
7
|
-
|
|
7
|
+
createChallengeAsync(payload: CreateChallengePayload): Promise<void>;
|
|
8
8
|
}
|
|
@@ -3,7 +3,7 @@ export default class AuthorizationBridge {
|
|
|
3
3
|
constructor(payload) {
|
|
4
4
|
this.payload = payload;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
return this.payload.
|
|
6
|
+
async createChallengeAsync(payload) {
|
|
7
|
+
return this.payload.createChallengeAsync(payload);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateChallengePayload } from "./Payload/CreateChallengePayload";
|
|
2
2
|
export interface AuthorizationEvent {
|
|
3
|
-
|
|
3
|
+
createChallengeAsync(payload: CreateChallengePayload): Promise<void>;
|
|
4
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Credential } from "../../index";
|
|
1
2
|
export declare abstract class AuthorizationProviderHook {
|
|
2
|
-
abstract completeChallenge(username: string, passwords: string): Promise<
|
|
3
|
-
abstract refreshChallenge(refreshToken: string): Promise<
|
|
3
|
+
abstract completeChallenge(username: string, passwords: string): Promise<Credential>;
|
|
4
|
+
abstract refreshChallenge(refreshToken: string): Promise<Credential>;
|
|
4
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,3 +11,4 @@ export { FileType } from "./Io/FileType";
|
|
|
11
11
|
export { DiskInfo } from "./Io/DiskInfo";
|
|
12
12
|
export { SubscriptionPlan } from "./Subscription/SubscriptionPlan";
|
|
13
13
|
export { SubscriptionInfo } from "./Subscription/SubscriptionInfo";
|
|
14
|
+
export { Credential } from "./Authorization/Credential";
|