@hosty-sdk/app 0.17.0 → 0.18.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/install.d.ts +4 -2
- package/dist/install.js +1 -1
- package/dist/providers.d.ts +1 -0
- package/package.json +1 -1
package/dist/install.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface InstallationSource {
|
|
|
45
45
|
selectedRuntime?: string;
|
|
46
46
|
updateAppId?: string;
|
|
47
47
|
planDigest?: string;
|
|
48
|
-
/** Review optional grants for this installed app, without reinstalling it. */
|
|
48
|
+
/** Review permission declarations and optional grants for this installed app, without reinstalling it. */
|
|
49
49
|
permissionsAppId?: string;
|
|
50
50
|
}
|
|
51
51
|
export interface InstallationRequest {
|
|
@@ -58,6 +58,8 @@ export interface InstallationRequest {
|
|
|
58
58
|
required: string[];
|
|
59
59
|
optional: string[];
|
|
60
60
|
granted: string[];
|
|
61
|
+
acceptedRequired?: string[];
|
|
62
|
+
acceptedOptional?: string[];
|
|
61
63
|
} | null;
|
|
62
64
|
approvalUrl: string;
|
|
63
65
|
expiresAt: string;
|
|
@@ -65,7 +67,7 @@ export interface InstallationRequest {
|
|
|
65
67
|
}
|
|
66
68
|
export interface InstallationClient {
|
|
67
69
|
prepare(source: InstallationSource): Promise<InstallationRequest>;
|
|
68
|
-
submit(id: string, settings: Record<string, string | null>, autostart: boolean): Promise<InstallationRequest>;
|
|
70
|
+
submit(id: string, settings: Record<string, string | null>, autostart: boolean, optionalPermissions?: string[]): Promise<InstallationRequest>;
|
|
69
71
|
status(id: string): Promise<InstallationRequest>;
|
|
70
72
|
}
|
|
71
73
|
export declare class InstallationError extends Error {
|
package/dist/install.js
CHANGED
|
@@ -25,7 +25,7 @@ export function createInstallationClient(options = {}) {
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
prepare: source => call("", source),
|
|
28
|
-
submit: (id, settings, autostart) => call(`/${encodeURIComponent(id)}/submit`, { settings, autostart }),
|
|
28
|
+
submit: (id, settings, autostart, optionalPermissions) => call(`/${encodeURIComponent(id)}/submit`, { settings, autostart, ...(optionalPermissions === undefined ? {} : { optionalPermissions }) }),
|
|
29
29
|
status: id => call(`/${encodeURIComponent(id)}`, undefined, "GET"),
|
|
30
30
|
};
|
|
31
31
|
}
|
package/dist/providers.d.ts
CHANGED
package/package.json
CHANGED