@phpsandbox/sdk 0.6.0-canary.0 → 0.6.0-canary.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/publication/types.d.ts +20 -1
- package/package.json +1 -1
|
@@ -176,6 +176,20 @@ export interface PublicationManagedAddress {
|
|
|
176
176
|
export type PublicationRouting = PublicationRoutingDraft & {
|
|
177
177
|
managedAddress: PublicationManagedAddress;
|
|
178
178
|
};
|
|
179
|
+
export interface PublicationProcessRole {
|
|
180
|
+
name: string;
|
|
181
|
+
kind: 'web' | 'worker' | 'scheduler';
|
|
182
|
+
command: string[];
|
|
183
|
+
instances: number;
|
|
184
|
+
cpu: number;
|
|
185
|
+
memoryMiB: number;
|
|
186
|
+
shutdownSeconds: number;
|
|
187
|
+
}
|
|
188
|
+
export interface PublicationReleaseCommand {
|
|
189
|
+
command: string[];
|
|
190
|
+
timeoutSeconds: number;
|
|
191
|
+
backwardCompatible: true;
|
|
192
|
+
}
|
|
179
193
|
export type PublicationContainerRuntime = {
|
|
180
194
|
mode: 'container';
|
|
181
195
|
port: number;
|
|
@@ -184,6 +198,11 @@ export type PublicationContainerRuntime = {
|
|
|
184
198
|
};
|
|
185
199
|
command?: string[];
|
|
186
200
|
};
|
|
201
|
+
export type PublicationSshRuntime = PublicationContainerRuntime & {
|
|
202
|
+
roles?: PublicationProcessRole[];
|
|
203
|
+
release?: PublicationReleaseCommand;
|
|
204
|
+
storagePath?: string;
|
|
205
|
+
};
|
|
187
206
|
export type PublicationNativeRuntime = {
|
|
188
207
|
mode: 'provider-native';
|
|
189
208
|
port?: never;
|
|
@@ -205,7 +224,7 @@ export type PublicationAppDraft = PublicationAppDraftBase & ({
|
|
|
205
224
|
serverId?: string;
|
|
206
225
|
};
|
|
207
226
|
build: PublicationContainerBuild;
|
|
208
|
-
runtime:
|
|
227
|
+
runtime: PublicationSshRuntime;
|
|
209
228
|
} | {
|
|
210
229
|
destination: {
|
|
211
230
|
provider: 'cloudflare-containers';
|