@astrale-domains/services 0.4.5 → 0.4.7
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/README.md +278 -12
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/modules/deployment/classes/cloudflare-deployment.d.ts +463 -0
- package/dist/schema/modules/deployment/classes/cloudflare-deployment.js +30 -0
- package/dist/schema/modules/deployment/classes/deployment-line.d.ts +23 -0
- package/dist/schema/modules/deployment/classes/deployment-line.js +24 -0
- package/dist/schema/modules/deployment/classes/deployment-on-line.d.ts +17 -0
- package/dist/schema/modules/deployment/classes/deployment-on-line.js +11 -0
- package/dist/schema/modules/deployment/classes/deployment.d.ts +189 -0
- package/dist/schema/modules/deployment/classes/deployment.js +56 -0
- package/dist/schema/modules/deployment/classes/index.d.ts +5 -0
- package/dist/schema/modules/deployment/classes/index.js +5 -0
- package/dist/schema/modules/deployment/classes/line-owned-by.d.ts +26 -0
- package/dist/schema/modules/deployment/classes/line-owned-by.js +19 -0
- package/dist/schema/modules/deployment/errors/deployment-hosting-unavailable.d.ts +7 -0
- package/dist/schema/modules/deployment/errors/deployment-hosting-unavailable.js +8 -0
- package/dist/schema/modules/deployment/errors/deployment-label-not-found.d.ts +12 -0
- package/dist/schema/modules/deployment/errors/deployment-label-not-found.js +11 -0
- package/dist/schema/modules/deployment/errors/deployment-not-found.d.ts +10 -0
- package/dist/schema/modules/deployment/errors/deployment-not-found.js +11 -0
- package/dist/schema/modules/deployment/errors/deployment-registry-only.d.ts +11 -0
- package/dist/schema/modules/deployment/errors/deployment-registry-only.js +12 -0
- package/dist/schema/modules/deployment/errors/index.d.ts +4 -0
- package/dist/schema/modules/deployment/errors/index.js +4 -0
- package/dist/schema/modules/deployment/functions/deploy-cloudflare-deployment.d.ts +170 -0
- package/dist/schema/modules/deployment/functions/deploy-cloudflare-deployment.js +14 -0
- package/dist/schema/modules/deployment/functions/describe-deployment-hosting.d.ts +8 -0
- package/dist/schema/modules/deployment/functions/describe-deployment-hosting.js +11 -0
- package/dist/schema/modules/deployment/functions/expire-deployment-previews.d.ts +16 -0
- package/dist/schema/modules/deployment/functions/expire-deployment-previews.js +14 -0
- package/dist/schema/modules/deployment/functions/index.d.ts +11 -0
- package/dist/schema/modules/deployment/functions/index.js +11 -0
- package/dist/schema/modules/deployment/functions/list-cloudflare-deployment-secret-names.d.ts +5 -0
- package/dist/schema/modules/deployment/functions/list-cloudflare-deployment-secret-names.js +4 -0
- package/dist/schema/modules/deployment/functions/list-cloudflare-deployments.d.ts +58 -0
- package/dist/schema/modules/deployment/functions/list-cloudflare-deployments.js +10 -0
- package/dist/schema/modules/deployment/functions/list-deployment-secret-names.d.ts +4 -0
- package/dist/schema/modules/deployment/functions/list-deployment-secret-names.js +6 -0
- package/dist/schema/modules/deployment/functions/read-deployment-last-calls.d.ts +10 -0
- package/dist/schema/modules/deployment/functions/read-deployment-last-calls.js +13 -0
- package/dist/schema/modules/deployment/functions/retain-deployment.d.ts +12 -0
- package/dist/schema/modules/deployment/functions/retain-deployment.js +13 -0
- package/dist/schema/modules/deployment/functions/retire-deployment.d.ts +23 -0
- package/dist/schema/modules/deployment/functions/retire-deployment.js +17 -0
- package/dist/schema/modules/deployment/functions/set-cloudflare-deployment-secret.d.ts +18 -0
- package/dist/schema/modules/deployment/functions/set-cloudflare-deployment-secret.js +7 -0
- package/dist/schema/modules/deployment/functions/set-deployment-secret.d.ts +14 -0
- package/dist/schema/modules/deployment/functions/set-deployment-secret.js +3 -0
- package/dist/schema/modules/deployment/index.d.ts +8 -0
- package/dist/schema/modules/deployment/index.js +6 -0
- package/dist/schema/modules/deployment/policies/act-for-organization.d.ts +6 -0
- package/dist/schema/modules/deployment/policies/act-for-organization.js +10 -0
- package/dist/schema/modules/deployment/policies/index.d.ts +5 -0
- package/dist/schema/modules/deployment/policies/index.js +5 -0
- package/dist/schema/modules/deployment/policies/own-deployment.d.ts +2 -0
- package/dist/schema/modules/deployment/policies/own-deployment.js +12 -0
- package/dist/schema/modules/deployment/policies/own-line.d.ts +5 -0
- package/dist/schema/modules/deployment/policies/own-line.js +10 -0
- package/dist/schema/modules/deployment/policies/traverse-owned-line-deployment.d.ts +2 -0
- package/dist/schema/modules/deployment/policies/traverse-owned-line-deployment.js +7 -0
- package/dist/schema/modules/deployment/policies/traverse-owned-line.d.ts +2 -0
- package/dist/schema/modules/deployment/policies/traverse-owned-line.js +7 -0
- package/dist/schema/modules/deployment/states/deployment-lifecycle.d.ts +30 -0
- package/dist/schema/modules/deployment/states/deployment-lifecycle.js +19 -0
- package/dist/schema/modules/deployment/states/index.d.ts +2 -0
- package/dist/schema/modules/deployment/states/index.js +1 -0
- package/dist/schema/modules/deployment/types/deployment-hosting.d.ts +94 -0
- package/dist/schema/modules/deployment/types/deployment-hosting.js +19 -0
- package/dist/schema/modules/deployment/types/deployment-record.d.ts +35 -0
- package/dist/schema/modules/deployment/types/deployment-record.js +31 -0
- package/dist/schema/modules/deployment/types/deployment-request.d.ts +161 -0
- package/dist/schema/modules/deployment/types/deployment-request.js +40 -0
- package/dist/schema/modules/deployment/types/deployment-response.d.ts +109 -0
- package/dist/schema/modules/deployment/types/deployment-response.js +36 -0
- package/dist/schema/modules/deployment/types/deployment-retention.d.ts +49 -0
- package/dist/schema/modules/deployment/types/deployment-retention.js +45 -0
- package/dist/schema/modules/deployment/types/deployment-retire.d.ts +30 -0
- package/dist/schema/modules/deployment/types/deployment-retire.js +18 -0
- package/dist/schema/modules/deployment/types/deployment-secret-digest.d.ts +17 -0
- package/dist/schema/modules/deployment/types/deployment-secret-digest.js +14 -0
- package/dist/schema/modules/deployment/types/deployment-secret.d.ts +59 -0
- package/dist/schema/modules/deployment/types/deployment-secret.js +52 -0
- package/dist/schema/modules/deployment/types/deployment-summary.d.ts +165 -0
- package/dist/schema/modules/deployment/types/deployment-summary.js +38 -0
- package/dist/schema/modules/deployment/types/frozen-configuration.d.ts +52 -0
- package/dist/schema/modules/deployment/types/frozen-configuration.js +55 -0
- package/dist/schema/modules/deployment/types/index.d.ts +20 -0
- package/dist/schema/modules/deployment/types/index.js +10 -0
- package/dist/schema/modules/service/classes/cloudflare-worker.d.ts +60 -24
- package/dist/schema/modules/service/classes/service.d.ts +7 -7
- package/dist/schema/modules/service/functions/delete-service-secret.d.ts +1 -1
- package/dist/schema/modules/service/functions/delete-service.d.ts +1 -1
- package/dist/schema/modules/service/functions/delete-worker-secret.d.ts +1 -1
- package/dist/schema/modules/service/functions/delete-worker.d.ts +1 -1
- package/dist/schema/modules/service/functions/deploy-cloudflare-worker.d.ts +37 -1
- package/dist/schema/modules/service/functions/list-service-logs.d.ts +1 -1
- package/dist/schema/modules/service/functions/list-service-schedules.d.ts +1 -1
- package/dist/schema/modules/service/functions/list-service-secret-names.d.ts +1 -1
- package/dist/schema/modules/service/functions/list-worker-logs.d.ts +1 -1
- package/dist/schema/modules/service/functions/list-worker-schedules.d.ts +1 -1
- package/dist/schema/modules/service/functions/list-worker-secret-names.d.ts +1 -1
- package/dist/schema/modules/service/functions/migrate-worker-ingress.d.ts +1 -1
- package/dist/schema/modules/service/functions/replace-service-schedules.d.ts +1 -1
- package/dist/schema/modules/service/functions/replace-worker-schedules.d.ts +1 -1
- package/dist/schema/modules/service/functions/set-service-secret.d.ts +1 -1
- package/dist/schema/modules/service/functions/set-worker-secret.d.ts +3 -3
- package/dist/schema/modules/service/index.d.ts +2 -2
- package/dist/schema/modules/service/index.js +1 -1
- package/dist/schema/modules/service/types/content/index.d.ts +1 -0
- package/dist/schema/modules/service/types/content/index.js +1 -0
- package/dist/schema/modules/service/types/content/limits.d.ts +7 -0
- package/dist/schema/modules/service/types/content/limits.js +7 -0
- package/dist/schema/modules/service/types/deploy-cloudflare-worker.d.ts +110 -0
- package/dist/schema/modules/service/types/index.d.ts +2 -1
- package/dist/schema/modules/service/types/index.js +1 -1
- package/dist/schema/modules/service/types/legacy/service-deployment-content.js +22 -0
- package/dist/schema/modules/service/types/service-deployment-artifact-module.d.ts +23 -0
- package/dist/schema/modules/service/types/service-deployment-artifact-module.js +5 -3
- package/dist/schema/modules/service/types/service-deployment-assets.d.ts +36 -0
- package/dist/schema/modules/service/types/service-deployment-assets.js +5 -3
- package/dist/schema/modules/service/types/service-deployment-content.d.ts +18 -11
- package/dist/schema/modules/service/types/service-deployment-content.js +17 -8
- package/dist/schema/schema.d.ts +740 -23
- package/dist/schema/schema.js +11 -0
- package/package.json +15 -11
package/dist/schema/schema.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
66
66
|
} | {
|
|
67
67
|
name: string;
|
|
68
68
|
};
|
|
69
|
-
}, "authorized", false, true>>;
|
|
69
|
+
}, "authorized", false, true, undefined>>;
|
|
70
70
|
deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
71
71
|
name: string;
|
|
72
72
|
}, {
|
|
@@ -77,11 +77,11 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
77
77
|
kind: "rejected";
|
|
78
78
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
79
79
|
};
|
|
80
|
-
}, "authorized", false, true>>;
|
|
80
|
+
}, "authorized", false, true, undefined>>;
|
|
81
81
|
secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
82
82
|
readonly mode: 'value';
|
|
83
83
|
readonly value: string[];
|
|
84
|
-
}, "authorized", false, true>>;
|
|
84
|
+
}, "authorized", false, true, undefined>>;
|
|
85
85
|
setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
86
86
|
crons: string[];
|
|
87
87
|
}, {
|
|
@@ -92,11 +92,11 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
92
92
|
kind: "rejected";
|
|
93
93
|
reason: "invalid-schedule" | "service-unavailable";
|
|
94
94
|
};
|
|
95
|
-
}, "authorized", false, true>>;
|
|
95
|
+
}, "authorized", false, true, undefined>>;
|
|
96
96
|
schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
97
97
|
readonly mode: 'value';
|
|
98
98
|
readonly value: string[];
|
|
99
|
-
}, "authorized", false, true>>;
|
|
99
|
+
}, "authorized", false, true, undefined>>;
|
|
100
100
|
logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
101
101
|
tail?: number | undefined;
|
|
102
102
|
since?: number | undefined;
|
|
@@ -108,7 +108,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
108
108
|
level: string;
|
|
109
109
|
line: string;
|
|
110
110
|
}[];
|
|
111
|
-
}, "authorized", false, true>>;
|
|
111
|
+
}, "authorized", false, true, undefined>>;
|
|
112
112
|
delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
113
113
|
readonly mode: 'value';
|
|
114
114
|
readonly value: {
|
|
@@ -117,7 +117,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
117
117
|
kind: "deleting";
|
|
118
118
|
retryAfterMs: number;
|
|
119
119
|
};
|
|
120
|
-
}, "authorized", false, true>>;
|
|
120
|
+
}, "authorized", false, true, undefined>>;
|
|
121
121
|
};
|
|
122
122
|
}>;
|
|
123
123
|
readonly CloudflareWorker: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
@@ -187,7 +187,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
187
187
|
} | {
|
|
188
188
|
name: string;
|
|
189
189
|
};
|
|
190
|
-
}, "authorized", false, true>>;
|
|
190
|
+
}, "authorized", false, true, undefined>>;
|
|
191
191
|
deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
192
192
|
name: string;
|
|
193
193
|
}, {
|
|
@@ -198,11 +198,11 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
198
198
|
kind: "rejected";
|
|
199
199
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
200
200
|
};
|
|
201
|
-
}, "authorized", false, true>>;
|
|
201
|
+
}, "authorized", false, true, undefined>>;
|
|
202
202
|
secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
203
203
|
readonly mode: 'value';
|
|
204
204
|
readonly value: string[];
|
|
205
|
-
}, "authorized", false, true>>;
|
|
205
|
+
}, "authorized", false, true, undefined>>;
|
|
206
206
|
setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
207
207
|
crons: string[];
|
|
208
208
|
}, {
|
|
@@ -213,11 +213,11 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
213
213
|
kind: "rejected";
|
|
214
214
|
reason: "invalid-schedule" | "service-unavailable";
|
|
215
215
|
};
|
|
216
|
-
}, "authorized", false, true>>;
|
|
216
|
+
}, "authorized", false, true, undefined>>;
|
|
217
217
|
schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
218
218
|
readonly mode: 'value';
|
|
219
219
|
readonly value: string[];
|
|
220
|
-
}, "authorized", false, true>>;
|
|
220
|
+
}, "authorized", false, true, undefined>>;
|
|
221
221
|
logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
222
222
|
tail?: number | undefined;
|
|
223
223
|
since?: number | undefined;
|
|
@@ -229,7 +229,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
229
229
|
level: string;
|
|
230
230
|
line: string;
|
|
231
231
|
}[];
|
|
232
|
-
}, "authorized", false, true>>;
|
|
232
|
+
}, "authorized", false, true, undefined>>;
|
|
233
233
|
delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
234
234
|
readonly mode: 'value';
|
|
235
235
|
readonly value: {
|
|
@@ -238,7 +238,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
238
238
|
kind: "deleting";
|
|
239
239
|
retryAfterMs: number;
|
|
240
240
|
};
|
|
241
|
-
}, "authorized", false, true>>;
|
|
241
|
+
}, "authorized", false, true, undefined>>;
|
|
242
242
|
};
|
|
243
243
|
}>];
|
|
244
244
|
readonly properties: {
|
|
@@ -274,6 +274,18 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
274
274
|
name?: string | undefined;
|
|
275
275
|
entry?: string | undefined;
|
|
276
276
|
modules?: ({
|
|
277
|
+
name: string;
|
|
278
|
+
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
279
|
+
content: {
|
|
280
|
+
encoding: "gzip" | "identity";
|
|
281
|
+
decodedSize: number;
|
|
282
|
+
contentBase64: string;
|
|
283
|
+
} | {
|
|
284
|
+
encoding: "gzip" | "identity";
|
|
285
|
+
decodedSize: number;
|
|
286
|
+
contentBase64Chunks: string[];
|
|
287
|
+
};
|
|
288
|
+
} | {
|
|
277
289
|
contentBase64: string;
|
|
278
290
|
name: string;
|
|
279
291
|
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
@@ -287,6 +299,18 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
287
299
|
release: {
|
|
288
300
|
entry: string;
|
|
289
301
|
modules: ({
|
|
302
|
+
name: string;
|
|
303
|
+
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
304
|
+
content: {
|
|
305
|
+
encoding: "gzip" | "identity";
|
|
306
|
+
decodedSize: number;
|
|
307
|
+
contentBase64: string;
|
|
308
|
+
} | {
|
|
309
|
+
encoding: "gzip" | "identity";
|
|
310
|
+
decodedSize: number;
|
|
311
|
+
contentBase64Chunks: string[];
|
|
312
|
+
};
|
|
313
|
+
} | {
|
|
290
314
|
contentBase64: string;
|
|
291
315
|
name: string;
|
|
292
316
|
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
@@ -311,6 +335,18 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
311
335
|
secrets?: Record<string, string> | undefined;
|
|
312
336
|
assets?: {
|
|
313
337
|
files: ({
|
|
338
|
+
path: string;
|
|
339
|
+
contentType?: string | undefined;
|
|
340
|
+
content: {
|
|
341
|
+
encoding: "gzip" | "identity";
|
|
342
|
+
decodedSize: number;
|
|
343
|
+
contentBase64: string;
|
|
344
|
+
} | {
|
|
345
|
+
encoding: "gzip" | "identity";
|
|
346
|
+
decodedSize: number;
|
|
347
|
+
contentBase64Chunks: string[];
|
|
348
|
+
};
|
|
349
|
+
} | {
|
|
314
350
|
contentBase64: string;
|
|
315
351
|
path: string;
|
|
316
352
|
contentType?: string | undefined;
|
|
@@ -342,7 +378,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
342
378
|
reason: "artifact-mode-conflict" | "invalid-deployment" | "service-unavailable";
|
|
343
379
|
message: string;
|
|
344
380
|
};
|
|
345
|
-
}, "authenticated", true, false>>;
|
|
381
|
+
}, "authenticated", true, false, undefined>>;
|
|
346
382
|
migrateIngress: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
347
383
|
action: "complete" | "detach" | "restore";
|
|
348
384
|
probe: {
|
|
@@ -366,7 +402,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
366
402
|
kind: "rejected";
|
|
367
403
|
reason: "missing-location" | "not-detached" | "service-unavailable";
|
|
368
404
|
};
|
|
369
|
-
}, "authorized", false, false>>;
|
|
405
|
+
}, "authorized", false, false, undefined>>;
|
|
370
406
|
setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
371
407
|
name: string;
|
|
372
408
|
value: string;
|
|
@@ -378,7 +414,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
378
414
|
} | {
|
|
379
415
|
name: string;
|
|
380
416
|
};
|
|
381
|
-
}, "authorized", false, false>>;
|
|
417
|
+
}, "authorized", false, false, undefined>>;
|
|
382
418
|
deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
383
419
|
name: string;
|
|
384
420
|
}, {
|
|
@@ -389,11 +425,11 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
389
425
|
kind: "rejected";
|
|
390
426
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
391
427
|
};
|
|
392
|
-
}, "authorized", false, false>>;
|
|
428
|
+
}, "authorized", false, false, undefined>>;
|
|
393
429
|
secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
394
430
|
readonly mode: 'value';
|
|
395
431
|
readonly value: string[];
|
|
396
|
-
}, "authorized", false, false>>;
|
|
432
|
+
}, "authorized", false, false, undefined>>;
|
|
397
433
|
setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
398
434
|
crons: string[];
|
|
399
435
|
}, {
|
|
@@ -404,11 +440,11 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
404
440
|
kind: "rejected";
|
|
405
441
|
reason: "invalid-schedule" | "service-unavailable";
|
|
406
442
|
};
|
|
407
|
-
}, "authorized", false, false>>;
|
|
443
|
+
}, "authorized", false, false, undefined>>;
|
|
408
444
|
schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
409
445
|
readonly mode: 'value';
|
|
410
446
|
readonly value: string[];
|
|
411
|
-
}, "authorized", false, false>>;
|
|
447
|
+
}, "authorized", false, false, undefined>>;
|
|
412
448
|
logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
413
449
|
tail?: number | undefined;
|
|
414
450
|
since?: number | undefined;
|
|
@@ -420,7 +456,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
420
456
|
level: string;
|
|
421
457
|
line: string;
|
|
422
458
|
}[];
|
|
423
|
-
}, "authorized", false, false>>;
|
|
459
|
+
}, "authorized", false, false, undefined>>;
|
|
424
460
|
delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
425
461
|
readonly mode: 'value';
|
|
426
462
|
readonly value: {
|
|
@@ -429,7 +465,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
429
465
|
kind: "deleting";
|
|
430
466
|
retryAfterMs: number;
|
|
431
467
|
};
|
|
432
|
-
}, "authorized", false, false>>;
|
|
468
|
+
}, "authorized", false, false, undefined>>;
|
|
433
469
|
};
|
|
434
470
|
readonly policies: {
|
|
435
471
|
read: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -451,10 +487,691 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
451
487
|
readonly constraints: Record<never, never>;
|
|
452
488
|
readonly effectiveProperties: never;
|
|
453
489
|
}>;
|
|
490
|
+
readonly DeploymentLine: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
491
|
+
readonly description: "The deployment line of one origin in one environment, held by one organisation.";
|
|
492
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
493
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
|
|
494
|
+
readonly properties: {
|
|
495
|
+
origin: import("zod").ZodString;
|
|
496
|
+
environment: import("zod").ZodString;
|
|
497
|
+
fingerprint: import("zod").ZodString;
|
|
498
|
+
line: import("zod").ZodString;
|
|
499
|
+
};
|
|
500
|
+
readonly policies: {
|
|
501
|
+
read: () => import("@astrale-os/sdk/schema").Policy;
|
|
502
|
+
};
|
|
503
|
+
}>;
|
|
504
|
+
readonly Deployment: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
505
|
+
readonly abstract: true;
|
|
506
|
+
readonly description: "One immutable deployment of a release on a publisher line.";
|
|
507
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
508
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
|
|
509
|
+
readonly properties: {
|
|
510
|
+
label: import("zod").ZodString;
|
|
511
|
+
url: import("zod").ZodString;
|
|
512
|
+
state: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
|
|
513
|
+
readonly deploying: {
|
|
514
|
+
readonly activate: "active";
|
|
515
|
+
readonly fail: "failed";
|
|
516
|
+
};
|
|
517
|
+
readonly active: {
|
|
518
|
+
readonly retire: "retiring";
|
|
519
|
+
};
|
|
520
|
+
readonly retiring: {
|
|
521
|
+
readonly completeRetirement: "retired";
|
|
522
|
+
};
|
|
523
|
+
readonly retired: {
|
|
524
|
+
readonly revive: "deploying";
|
|
525
|
+
};
|
|
526
|
+
readonly failed: {
|
|
527
|
+
readonly retry: "deploying";
|
|
528
|
+
readonly retire: "retiring";
|
|
529
|
+
};
|
|
530
|
+
}, "deploying">, {
|
|
531
|
+
required?: boolean;
|
|
532
|
+
description?: string;
|
|
533
|
+
}>;
|
|
534
|
+
retention: import("zod").ZodEnum<{
|
|
535
|
+
preview: "preview";
|
|
536
|
+
published: "published";
|
|
537
|
+
}>;
|
|
538
|
+
record: import("zod").ZodObject<{
|
|
539
|
+
format: import("zod").ZodLiteral<"astrale.deployment-record">;
|
|
540
|
+
version: import("zod").ZodLiteral<1>;
|
|
541
|
+
origin: import("zod").ZodString;
|
|
542
|
+
environment: import("zod").ZodString;
|
|
543
|
+
releaseDigest: import("zod").ZodString;
|
|
544
|
+
buildDigest: import("zod").ZodString;
|
|
545
|
+
schemaRevision: import("zod").ZodString;
|
|
546
|
+
configuration: import("zod").ZodString;
|
|
547
|
+
providerScript: import("zod").ZodString;
|
|
548
|
+
commit: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
549
|
+
sha: import("zod").ZodString;
|
|
550
|
+
dirty: import("zod").ZodBoolean;
|
|
551
|
+
base: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
552
|
+
version: import("zod").ZodString;
|
|
553
|
+
distance: import("zod").ZodNumber;
|
|
554
|
+
}, import("zod/v4/core").$strict>>;
|
|
555
|
+
}, import("zod/v4/core").$strict>>;
|
|
556
|
+
}, import("zod/v4/core").$strict>;
|
|
557
|
+
configuration: import("zod").ZodObject<{
|
|
558
|
+
format: import("zod").ZodLiteral<"astrale.deployment.configuration">;
|
|
559
|
+
version: import("zod").ZodLiteral<1>;
|
|
560
|
+
vars: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
561
|
+
settings: import("zod").ZodObject<{
|
|
562
|
+
maximumRequestBytes: import("zod").ZodNumber;
|
|
563
|
+
invocationTimeoutMs: import("zod").ZodNumber;
|
|
564
|
+
tokenExchange: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<false>, import("zod").ZodObject<{
|
|
565
|
+
maximumLifetimeSeconds: import("zod").ZodNumber;
|
|
566
|
+
}, import("zod/v4/core").$strict>]>;
|
|
567
|
+
durableOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
568
|
+
retentionMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
569
|
+
retry: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
570
|
+
initialIntervalMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
571
|
+
maxAttempts: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
572
|
+
maxIntervalMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
573
|
+
}, import("zod/v4/core").$strict>>;
|
|
574
|
+
stepTimeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
575
|
+
}, import("zod/v4/core").$strict>>;
|
|
576
|
+
}, import("zod/v4/core").$strict>;
|
|
577
|
+
runtime: import("zod").ZodObject<{
|
|
578
|
+
compatibilityDate: import("zod").ZodString;
|
|
579
|
+
compatibilityFlags: import("zod").ZodArray<import("zod").ZodString>;
|
|
580
|
+
}, import("zod/v4/core").$strict>;
|
|
581
|
+
bindings: import("zod").ZodObject<{
|
|
582
|
+
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
583
|
+
name: import("zod").ZodString;
|
|
584
|
+
service: import("zod").ZodString;
|
|
585
|
+
}, import("zod/v4/core").$strict>>;
|
|
586
|
+
dispatchNamespaces: import("zod").ZodArray<import("zod").ZodObject<{
|
|
587
|
+
name: import("zod").ZodString;
|
|
588
|
+
namespace: import("zod").ZodString;
|
|
589
|
+
}, import("zod/v4/core").$strict>>;
|
|
590
|
+
secrets: import("zod").ZodArray<import("zod").ZodString>;
|
|
591
|
+
}, import("zod/v4/core").$strict>;
|
|
592
|
+
router: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<false>, import("zod").ZodObject<{
|
|
593
|
+
service: import("zod").ZodString;
|
|
594
|
+
hostSuffix: import("zod").ZodString;
|
|
595
|
+
minLabels: import("zod").ZodNumber;
|
|
596
|
+
}, import("zod/v4/core").$strict>]>;
|
|
597
|
+
}, import("zod/v4/core").$strict>;
|
|
598
|
+
secretDigests: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodArray<import("zod").ZodObject<{
|
|
599
|
+
name: import("zod").ZodString;
|
|
600
|
+
digest: import("zod").ZodString;
|
|
601
|
+
}, import("zod/v4/core").$strict>>, {
|
|
602
|
+
readonly required: false;
|
|
603
|
+
}>;
|
|
604
|
+
scriptEtag: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
605
|
+
readonly required: false;
|
|
606
|
+
}>;
|
|
607
|
+
signingKeyId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
608
|
+
readonly required: false;
|
|
609
|
+
}>;
|
|
610
|
+
activatedAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
611
|
+
readonly type: 'string';
|
|
612
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
613
|
+
}>, {
|
|
614
|
+
readonly required: false;
|
|
615
|
+
}>;
|
|
616
|
+
lastCallAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
617
|
+
readonly type: 'string';
|
|
618
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
619
|
+
}>, {
|
|
620
|
+
readonly required: false;
|
|
621
|
+
}>;
|
|
622
|
+
expiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
623
|
+
readonly type: 'string';
|
|
624
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
625
|
+
}>, {
|
|
626
|
+
readonly required: false;
|
|
627
|
+
}>;
|
|
628
|
+
retiredAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
629
|
+
readonly type: 'string';
|
|
630
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
631
|
+
}>, {
|
|
632
|
+
readonly required: false;
|
|
633
|
+
}>;
|
|
634
|
+
retirement: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodEnum<{
|
|
635
|
+
expired: "expired";
|
|
636
|
+
withdrawn: "withdrawn";
|
|
637
|
+
}>, {
|
|
638
|
+
readonly required: false;
|
|
639
|
+
}>;
|
|
640
|
+
operationReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
641
|
+
readonly required: false;
|
|
642
|
+
}>;
|
|
643
|
+
operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
644
|
+
readonly type: 'string';
|
|
645
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
646
|
+
}>, {
|
|
647
|
+
readonly required: false;
|
|
648
|
+
}>;
|
|
649
|
+
};
|
|
650
|
+
readonly methods: {
|
|
651
|
+
setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
652
|
+
name: string;
|
|
653
|
+
value: string;
|
|
654
|
+
}, {
|
|
655
|
+
readonly mode: 'value';
|
|
656
|
+
readonly value: {
|
|
657
|
+
name: string;
|
|
658
|
+
} | {
|
|
659
|
+
kind: "rejected";
|
|
660
|
+
reason: "secret-undeclared" | "service-unavailable";
|
|
661
|
+
message: string;
|
|
662
|
+
retryAfter?: string | undefined;
|
|
663
|
+
};
|
|
664
|
+
}, "authenticated", false, true, undefined>>;
|
|
665
|
+
secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
666
|
+
readonly mode: 'value';
|
|
667
|
+
readonly value: string[];
|
|
668
|
+
}, "authenticated", false, true, undefined>>;
|
|
669
|
+
};
|
|
670
|
+
}>;
|
|
671
|
+
readonly CloudflareDeployment: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
672
|
+
readonly description: "One Deployment uploaded as the Workers for Platforms script its label names.";
|
|
673
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
674
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
675
|
+
readonly abstract: true;
|
|
676
|
+
readonly description: "One immutable deployment of a release on a publisher line.";
|
|
677
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
678
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
|
|
679
|
+
readonly properties: {
|
|
680
|
+
label: import("zod").ZodString;
|
|
681
|
+
url: import("zod").ZodString;
|
|
682
|
+
state: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
|
|
683
|
+
readonly deploying: {
|
|
684
|
+
readonly activate: "active";
|
|
685
|
+
readonly fail: "failed";
|
|
686
|
+
};
|
|
687
|
+
readonly active: {
|
|
688
|
+
readonly retire: "retiring";
|
|
689
|
+
};
|
|
690
|
+
readonly retiring: {
|
|
691
|
+
readonly completeRetirement: "retired";
|
|
692
|
+
};
|
|
693
|
+
readonly retired: {
|
|
694
|
+
readonly revive: "deploying";
|
|
695
|
+
};
|
|
696
|
+
readonly failed: {
|
|
697
|
+
readonly retry: "deploying";
|
|
698
|
+
readonly retire: "retiring";
|
|
699
|
+
};
|
|
700
|
+
}, "deploying">, {
|
|
701
|
+
required?: boolean;
|
|
702
|
+
description?: string;
|
|
703
|
+
}>;
|
|
704
|
+
retention: import("zod").ZodEnum<{
|
|
705
|
+
preview: "preview";
|
|
706
|
+
published: "published";
|
|
707
|
+
}>;
|
|
708
|
+
record: import("zod").ZodObject<{
|
|
709
|
+
format: import("zod").ZodLiteral<"astrale.deployment-record">;
|
|
710
|
+
version: import("zod").ZodLiteral<1>;
|
|
711
|
+
origin: import("zod").ZodString;
|
|
712
|
+
environment: import("zod").ZodString;
|
|
713
|
+
releaseDigest: import("zod").ZodString;
|
|
714
|
+
buildDigest: import("zod").ZodString;
|
|
715
|
+
schemaRevision: import("zod").ZodString;
|
|
716
|
+
configuration: import("zod").ZodString;
|
|
717
|
+
providerScript: import("zod").ZodString;
|
|
718
|
+
commit: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
719
|
+
sha: import("zod").ZodString;
|
|
720
|
+
dirty: import("zod").ZodBoolean;
|
|
721
|
+
base: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
722
|
+
version: import("zod").ZodString;
|
|
723
|
+
distance: import("zod").ZodNumber;
|
|
724
|
+
}, import("zod/v4/core").$strict>>;
|
|
725
|
+
}, import("zod/v4/core").$strict>>;
|
|
726
|
+
}, import("zod/v4/core").$strict>;
|
|
727
|
+
configuration: import("zod").ZodObject<{
|
|
728
|
+
format: import("zod").ZodLiteral<"astrale.deployment.configuration">;
|
|
729
|
+
version: import("zod").ZodLiteral<1>;
|
|
730
|
+
vars: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
731
|
+
settings: import("zod").ZodObject<{
|
|
732
|
+
maximumRequestBytes: import("zod").ZodNumber;
|
|
733
|
+
invocationTimeoutMs: import("zod").ZodNumber;
|
|
734
|
+
tokenExchange: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<false>, import("zod").ZodObject<{
|
|
735
|
+
maximumLifetimeSeconds: import("zod").ZodNumber;
|
|
736
|
+
}, import("zod/v4/core").$strict>]>;
|
|
737
|
+
durableOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
738
|
+
retentionMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
739
|
+
retry: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
740
|
+
initialIntervalMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
741
|
+
maxAttempts: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
742
|
+
maxIntervalMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
743
|
+
}, import("zod/v4/core").$strict>>;
|
|
744
|
+
stepTimeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
745
|
+
}, import("zod/v4/core").$strict>>;
|
|
746
|
+
}, import("zod/v4/core").$strict>;
|
|
747
|
+
runtime: import("zod").ZodObject<{
|
|
748
|
+
compatibilityDate: import("zod").ZodString;
|
|
749
|
+
compatibilityFlags: import("zod").ZodArray<import("zod").ZodString>;
|
|
750
|
+
}, import("zod/v4/core").$strict>;
|
|
751
|
+
bindings: import("zod").ZodObject<{
|
|
752
|
+
services: import("zod").ZodArray<import("zod").ZodObject<{
|
|
753
|
+
name: import("zod").ZodString;
|
|
754
|
+
service: import("zod").ZodString;
|
|
755
|
+
}, import("zod/v4/core").$strict>>;
|
|
756
|
+
dispatchNamespaces: import("zod").ZodArray<import("zod").ZodObject<{
|
|
757
|
+
name: import("zod").ZodString;
|
|
758
|
+
namespace: import("zod").ZodString;
|
|
759
|
+
}, import("zod/v4/core").$strict>>;
|
|
760
|
+
secrets: import("zod").ZodArray<import("zod").ZodString>;
|
|
761
|
+
}, import("zod/v4/core").$strict>;
|
|
762
|
+
router: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<false>, import("zod").ZodObject<{
|
|
763
|
+
service: import("zod").ZodString;
|
|
764
|
+
hostSuffix: import("zod").ZodString;
|
|
765
|
+
minLabels: import("zod").ZodNumber;
|
|
766
|
+
}, import("zod/v4/core").$strict>]>;
|
|
767
|
+
}, import("zod/v4/core").$strict>;
|
|
768
|
+
secretDigests: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodArray<import("zod").ZodObject<{
|
|
769
|
+
name: import("zod").ZodString;
|
|
770
|
+
digest: import("zod").ZodString;
|
|
771
|
+
}, import("zod/v4/core").$strict>>, {
|
|
772
|
+
readonly required: false;
|
|
773
|
+
}>;
|
|
774
|
+
scriptEtag: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
775
|
+
readonly required: false;
|
|
776
|
+
}>;
|
|
777
|
+
signingKeyId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
778
|
+
readonly required: false;
|
|
779
|
+
}>;
|
|
780
|
+
activatedAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
781
|
+
readonly type: 'string';
|
|
782
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
783
|
+
}>, {
|
|
784
|
+
readonly required: false;
|
|
785
|
+
}>;
|
|
786
|
+
lastCallAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
787
|
+
readonly type: 'string';
|
|
788
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
789
|
+
}>, {
|
|
790
|
+
readonly required: false;
|
|
791
|
+
}>;
|
|
792
|
+
expiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
793
|
+
readonly type: 'string';
|
|
794
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
795
|
+
}>, {
|
|
796
|
+
readonly required: false;
|
|
797
|
+
}>;
|
|
798
|
+
retiredAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
799
|
+
readonly type: 'string';
|
|
800
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
801
|
+
}>, {
|
|
802
|
+
readonly required: false;
|
|
803
|
+
}>;
|
|
804
|
+
retirement: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodEnum<{
|
|
805
|
+
expired: "expired";
|
|
806
|
+
withdrawn: "withdrawn";
|
|
807
|
+
}>, {
|
|
808
|
+
readonly required: false;
|
|
809
|
+
}>;
|
|
810
|
+
operationReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
811
|
+
readonly required: false;
|
|
812
|
+
}>;
|
|
813
|
+
operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
814
|
+
readonly type: 'string';
|
|
815
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
816
|
+
}>, {
|
|
817
|
+
readonly required: false;
|
|
818
|
+
}>;
|
|
819
|
+
};
|
|
820
|
+
readonly methods: {
|
|
821
|
+
setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
822
|
+
name: string;
|
|
823
|
+
value: string;
|
|
824
|
+
}, {
|
|
825
|
+
readonly mode: 'value';
|
|
826
|
+
readonly value: {
|
|
827
|
+
name: string;
|
|
828
|
+
} | {
|
|
829
|
+
kind: "rejected";
|
|
830
|
+
reason: "secret-undeclared" | "service-unavailable";
|
|
831
|
+
message: string;
|
|
832
|
+
retryAfter?: string | undefined;
|
|
833
|
+
};
|
|
834
|
+
}, "authenticated", false, true, undefined>>;
|
|
835
|
+
secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
836
|
+
readonly mode: 'value';
|
|
837
|
+
readonly value: string[];
|
|
838
|
+
}, "authenticated", false, true, undefined>>;
|
|
839
|
+
};
|
|
840
|
+
}>];
|
|
841
|
+
readonly methods: {
|
|
842
|
+
deploy: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
843
|
+
format: "astrale.services.deployment-request";
|
|
844
|
+
version: 1;
|
|
845
|
+
organization?: string | undefined;
|
|
846
|
+
origin: string;
|
|
847
|
+
environment: string;
|
|
848
|
+
addressing: "opaque" | "readable";
|
|
849
|
+
label: string;
|
|
850
|
+
buildDigest: string;
|
|
851
|
+
configuration: {
|
|
852
|
+
format: "astrale.deployment.configuration";
|
|
853
|
+
version: 1;
|
|
854
|
+
vars: Record<string, string>;
|
|
855
|
+
settings: {
|
|
856
|
+
maximumRequestBytes: number;
|
|
857
|
+
invocationTimeoutMs: number;
|
|
858
|
+
tokenExchange: false | {
|
|
859
|
+
maximumLifetimeSeconds: number;
|
|
860
|
+
};
|
|
861
|
+
durableOptions?: {
|
|
862
|
+
retentionMs?: number | undefined;
|
|
863
|
+
retry?: {
|
|
864
|
+
initialIntervalMs?: number | undefined;
|
|
865
|
+
maxAttempts?: number | undefined;
|
|
866
|
+
maxIntervalMs?: number | undefined;
|
|
867
|
+
} | undefined;
|
|
868
|
+
stepTimeoutMs?: number | undefined;
|
|
869
|
+
} | undefined;
|
|
870
|
+
};
|
|
871
|
+
runtime: {
|
|
872
|
+
compatibilityDate: string;
|
|
873
|
+
compatibilityFlags: string[];
|
|
874
|
+
};
|
|
875
|
+
bindings: {
|
|
876
|
+
services: {
|
|
877
|
+
name: string;
|
|
878
|
+
service: string;
|
|
879
|
+
}[];
|
|
880
|
+
dispatchNamespaces: {
|
|
881
|
+
name: string;
|
|
882
|
+
namespace: string;
|
|
883
|
+
}[];
|
|
884
|
+
secrets: string[];
|
|
885
|
+
};
|
|
886
|
+
router: false | {
|
|
887
|
+
service: string;
|
|
888
|
+
hostSuffix: string;
|
|
889
|
+
minLabels: number;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
record: {
|
|
893
|
+
releaseDigest: string;
|
|
894
|
+
schemaRevision: string;
|
|
895
|
+
schemaBundle: string;
|
|
896
|
+
commit: {
|
|
897
|
+
sha: string;
|
|
898
|
+
dirty: boolean;
|
|
899
|
+
base?: {
|
|
900
|
+
version: string;
|
|
901
|
+
distance: number;
|
|
902
|
+
} | undefined;
|
|
903
|
+
} | null;
|
|
904
|
+
};
|
|
905
|
+
bundle: {
|
|
906
|
+
entrypoint: string;
|
|
907
|
+
modules: ({
|
|
908
|
+
name: string;
|
|
909
|
+
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
910
|
+
content: {
|
|
911
|
+
encoding: "gzip" | "identity";
|
|
912
|
+
decodedSize: number;
|
|
913
|
+
contentBase64: string;
|
|
914
|
+
} | {
|
|
915
|
+
encoding: "gzip" | "identity";
|
|
916
|
+
decodedSize: number;
|
|
917
|
+
contentBase64Chunks: string[];
|
|
918
|
+
};
|
|
919
|
+
} | {
|
|
920
|
+
contentBase64: string;
|
|
921
|
+
name: string;
|
|
922
|
+
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
923
|
+
} | {
|
|
924
|
+
contentBase64Chunks: string[];
|
|
925
|
+
name: string;
|
|
926
|
+
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
927
|
+
})[];
|
|
928
|
+
assets?: {
|
|
929
|
+
files: ({
|
|
930
|
+
path: string;
|
|
931
|
+
contentType?: string | undefined;
|
|
932
|
+
content: {
|
|
933
|
+
encoding: "gzip" | "identity";
|
|
934
|
+
decodedSize: number;
|
|
935
|
+
contentBase64: string;
|
|
936
|
+
} | {
|
|
937
|
+
encoding: "gzip" | "identity";
|
|
938
|
+
decodedSize: number;
|
|
939
|
+
contentBase64Chunks: string[];
|
|
940
|
+
};
|
|
941
|
+
} | {
|
|
942
|
+
contentBase64: string;
|
|
943
|
+
path: string;
|
|
944
|
+
contentType?: string | undefined;
|
|
945
|
+
} | {
|
|
946
|
+
contentBase64Chunks: string[];
|
|
947
|
+
path: string;
|
|
948
|
+
contentType?: string | undefined;
|
|
949
|
+
})[];
|
|
950
|
+
notFound?: "404-page" | "none" | "single-page-application" | undefined;
|
|
951
|
+
runWorkerFirst?: boolean | undefined;
|
|
952
|
+
htmlHandling?: "none" | undefined;
|
|
953
|
+
} | undefined;
|
|
954
|
+
};
|
|
955
|
+
secrets: Record<string, string>;
|
|
956
|
+
readiness?: {
|
|
957
|
+
paths: string[];
|
|
958
|
+
} | undefined;
|
|
959
|
+
}, {
|
|
960
|
+
readonly mode: 'value';
|
|
961
|
+
readonly value: {
|
|
962
|
+
kind: "rejected";
|
|
963
|
+
reason: "address-mismatch" | "build-mismatch" | "deployment-conflict" | "deployment-retired" | "hosting-unavailable" | "invalid-deployment" | "line-owned-elsewhere" | "service-unavailable";
|
|
964
|
+
message: string;
|
|
965
|
+
retryAfter?: string | undefined;
|
|
966
|
+
} | {
|
|
967
|
+
kind: "deployed";
|
|
968
|
+
state: "created" | "reused";
|
|
969
|
+
secrets: {
|
|
970
|
+
state: "bound" | "unchanged" | "updated";
|
|
971
|
+
};
|
|
972
|
+
deployment: {
|
|
973
|
+
id: string;
|
|
974
|
+
url: string;
|
|
975
|
+
label: string;
|
|
976
|
+
line: string;
|
|
977
|
+
owner: string;
|
|
978
|
+
state: "active" | "deploying" | "failed" | "retired" | "retiring";
|
|
979
|
+
retention: "preview" | "published";
|
|
980
|
+
createdAt: string;
|
|
981
|
+
lastCallAt?: string | undefined;
|
|
982
|
+
expiresAt?: string | undefined;
|
|
983
|
+
retiredAt?: string | undefined;
|
|
984
|
+
retirement?: "expired" | "withdrawn" | undefined;
|
|
985
|
+
signingKeyId: string;
|
|
986
|
+
record: {
|
|
987
|
+
format: "astrale.deployment-record";
|
|
988
|
+
version: 1;
|
|
989
|
+
origin: string;
|
|
990
|
+
environment: string;
|
|
991
|
+
releaseDigest: string;
|
|
992
|
+
buildDigest: string;
|
|
993
|
+
schemaRevision: string;
|
|
994
|
+
configuration: string;
|
|
995
|
+
providerScript: string;
|
|
996
|
+
commit: {
|
|
997
|
+
sha: string;
|
|
998
|
+
dirty: boolean;
|
|
999
|
+
base?: {
|
|
1000
|
+
version: string;
|
|
1001
|
+
distance: number;
|
|
1002
|
+
} | undefined;
|
|
1003
|
+
} | null;
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
}, "authenticated", true, false, undefined>>;
|
|
1008
|
+
hosting: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
1009
|
+
readonly mode: 'value';
|
|
1010
|
+
readonly value: {
|
|
1011
|
+
routingDomain: string;
|
|
1012
|
+
addressing: "opaque" | "readable";
|
|
1013
|
+
};
|
|
1014
|
+
}, "authenticated", true, false, undefined>>;
|
|
1015
|
+
list: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
1016
|
+
origin?: string | undefined;
|
|
1017
|
+
environment?: string | undefined;
|
|
1018
|
+
}, {
|
|
1019
|
+
readonly mode: 'value';
|
|
1020
|
+
readonly value: {
|
|
1021
|
+
deployments: ({
|
|
1022
|
+
id: string;
|
|
1023
|
+
url: string;
|
|
1024
|
+
label: string;
|
|
1025
|
+
line: string;
|
|
1026
|
+
owner: string;
|
|
1027
|
+
state: "active" | "deploying" | "failed" | "retired" | "retiring";
|
|
1028
|
+
retention: "preview" | "published";
|
|
1029
|
+
createdAt: string;
|
|
1030
|
+
lastCallAt?: string | undefined;
|
|
1031
|
+
expiresAt?: string | undefined;
|
|
1032
|
+
retiredAt?: string | undefined;
|
|
1033
|
+
retirement?: "expired" | "withdrawn" | undefined;
|
|
1034
|
+
signingKeyId: string;
|
|
1035
|
+
record: {
|
|
1036
|
+
format: "astrale.deployment-record";
|
|
1037
|
+
version: 1;
|
|
1038
|
+
origin: string;
|
|
1039
|
+
environment: string;
|
|
1040
|
+
releaseDigest: string;
|
|
1041
|
+
buildDigest: string;
|
|
1042
|
+
schemaRevision: string;
|
|
1043
|
+
configuration: string;
|
|
1044
|
+
providerScript: string;
|
|
1045
|
+
commit: {
|
|
1046
|
+
sha: string;
|
|
1047
|
+
dirty: boolean;
|
|
1048
|
+
base?: {
|
|
1049
|
+
version: string;
|
|
1050
|
+
distance: number;
|
|
1051
|
+
} | undefined;
|
|
1052
|
+
} | null;
|
|
1053
|
+
};
|
|
1054
|
+
} | {
|
|
1055
|
+
id: string;
|
|
1056
|
+
url: string;
|
|
1057
|
+
label: string;
|
|
1058
|
+
line: string;
|
|
1059
|
+
owner: string;
|
|
1060
|
+
state: "active" | "deploying" | "failed" | "retired" | "retiring";
|
|
1061
|
+
retention: "preview" | "published";
|
|
1062
|
+
createdAt: string;
|
|
1063
|
+
lastCallAt?: string | undefined;
|
|
1064
|
+
expiresAt?: string | undefined;
|
|
1065
|
+
retiredAt?: string | undefined;
|
|
1066
|
+
retirement?: "expired" | "withdrawn" | undefined;
|
|
1067
|
+
signingKeyId: string;
|
|
1068
|
+
record: unknown;
|
|
1069
|
+
})[];
|
|
1070
|
+
};
|
|
1071
|
+
}, "authenticated", true, false, undefined>>;
|
|
1072
|
+
setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
1073
|
+
name: string;
|
|
1074
|
+
value: string;
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly mode: 'value';
|
|
1077
|
+
readonly value: {
|
|
1078
|
+
name: string;
|
|
1079
|
+
} | {
|
|
1080
|
+
kind: "rejected";
|
|
1081
|
+
reason: "secret-undeclared" | "service-unavailable";
|
|
1082
|
+
message: string;
|
|
1083
|
+
retryAfter?: string | undefined;
|
|
1084
|
+
};
|
|
1085
|
+
}, "authenticated", false, false, undefined>>;
|
|
1086
|
+
secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
1087
|
+
readonly mode: 'value';
|
|
1088
|
+
readonly value: string[];
|
|
1089
|
+
}, "authenticated", false, false, undefined>>;
|
|
1090
|
+
lastCalls: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
1091
|
+
labels: string[];
|
|
1092
|
+
}, {
|
|
1093
|
+
readonly mode: 'value';
|
|
1094
|
+
readonly value: Record<string, string | null>;
|
|
1095
|
+
}, "authenticated", true, false, undefined>>;
|
|
1096
|
+
expirePreviews: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
1097
|
+
limit?: number | undefined;
|
|
1098
|
+
apply?: boolean | undefined;
|
|
1099
|
+
}, {
|
|
1100
|
+
readonly mode: 'value';
|
|
1101
|
+
readonly value: {
|
|
1102
|
+
planned: string[];
|
|
1103
|
+
retired: string[];
|
|
1104
|
+
pending: string[];
|
|
1105
|
+
};
|
|
1106
|
+
}, "authenticated", true, false, undefined>>;
|
|
1107
|
+
retain: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
1108
|
+
label: string;
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly mode: 'value';
|
|
1111
|
+
readonly value: {
|
|
1112
|
+
retention: "published";
|
|
1113
|
+
};
|
|
1114
|
+
}, "authenticated", true, false, undefined>>;
|
|
1115
|
+
retire: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
1116
|
+
readonly mode: 'value';
|
|
1117
|
+
readonly value: {
|
|
1118
|
+
kind: "retired";
|
|
1119
|
+
} | {
|
|
1120
|
+
kind: "retiring";
|
|
1121
|
+
retryAfterMs: number;
|
|
1122
|
+
} | {
|
|
1123
|
+
kind: "rejected";
|
|
1124
|
+
reason: "address-mismatch" | "build-mismatch" | "deployment-conflict" | "deployment-retired" | "hosting-unavailable" | "invalid-deployment" | "line-owned-elsewhere" | "service-unavailable";
|
|
1125
|
+
message: string;
|
|
1126
|
+
retryAfter?: string | undefined;
|
|
1127
|
+
};
|
|
1128
|
+
}, "authenticated", false, false, undefined>>;
|
|
1129
|
+
};
|
|
1130
|
+
readonly policies: {
|
|
1131
|
+
read: () => import("@astrale-os/sdk/schema").Policy;
|
|
1132
|
+
};
|
|
1133
|
+
}>;
|
|
1134
|
+
readonly line_owned_by: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
1135
|
+
readonly depth: 0;
|
|
1136
|
+
readonly abstract: false;
|
|
1137
|
+
readonly extends: readonly [];
|
|
1138
|
+
readonly properties: never;
|
|
1139
|
+
readonly source: {
|
|
1140
|
+
readonly as: "line";
|
|
1141
|
+
readonly outgoing: "0..1";
|
|
1142
|
+
};
|
|
1143
|
+
readonly target: {
|
|
1144
|
+
readonly as: "owner";
|
|
1145
|
+
readonly incoming: "0..*";
|
|
1146
|
+
};
|
|
1147
|
+
readonly constraints: Record<never, never>;
|
|
1148
|
+
readonly effectiveProperties: never;
|
|
1149
|
+
}>;
|
|
1150
|
+
readonly deployment_on_line: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
1151
|
+
readonly depth: 0;
|
|
1152
|
+
readonly abstract: false;
|
|
1153
|
+
readonly extends: readonly [];
|
|
1154
|
+
readonly properties: never;
|
|
1155
|
+
readonly source: {
|
|
1156
|
+
readonly as: "deployment";
|
|
1157
|
+
readonly outgoing: "1";
|
|
1158
|
+
};
|
|
1159
|
+
readonly target: {
|
|
1160
|
+
readonly as: "line";
|
|
1161
|
+
readonly incoming: "0..*";
|
|
1162
|
+
};
|
|
1163
|
+
readonly constraints: Record<never, never>;
|
|
1164
|
+
readonly effectiveProperties: never;
|
|
1165
|
+
}>;
|
|
454
1166
|
};
|
|
455
1167
|
readonly policies: {
|
|
456
1168
|
readonly OwnService: import("@astrale-os/sdk/schema").Policy;
|
|
457
1169
|
readonly TraverseOwnedService: import("@astrale-os/sdk/schema").Policy;
|
|
1170
|
+
readonly OwnLine: import("@astrale-os/sdk/schema").Policy;
|
|
1171
|
+
readonly OwnDeployment: import("@astrale-os/sdk/schema").Policy;
|
|
1172
|
+
readonly ActForOrganization: import("@astrale-os/sdk/schema").Policy;
|
|
1173
|
+
readonly TraverseOwnedLine: import("@astrale-os/sdk/schema").Policy;
|
|
1174
|
+
readonly TraverseOwnedLineDeployment: import("@astrale-os/sdk/schema").Policy;
|
|
458
1175
|
};
|
|
459
1176
|
readonly views: {
|
|
460
1177
|
readonly application: import("@astrale-os/sdk/schema").View;
|