@astrale-domains/services 0.4.5 → 0.4.6
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 +121 -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 +97 -0
- package/dist/schema/modules/deployment/classes/cloudflare-deployment.js +10 -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 +98 -0
- package/dist/schema/modules/deployment/classes/deployment.js +32 -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/index.d.ts +6 -0
- package/dist/schema/modules/deployment/index.js +4 -0
- package/dist/schema/modules/deployment/policies/index.d.ts +4 -0
- package/dist/schema/modules/deployment/policies/index.js +4 -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 +27 -0
- package/dist/schema/modules/deployment/states/deployment-lifecycle.js +17 -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-record.d.ts +35 -0
- package/dist/schema/modules/deployment/types/deployment-record.js +31 -0
- package/dist/schema/modules/deployment/types/deployment-retention.d.ts +13 -0
- package/dist/schema/modules/deployment/types/deployment-retention.js +5 -0
- package/dist/schema/modules/deployment/types/index.d.ts +4 -0
- package/dist/schema/modules/deployment/types/index.js +2 -0
- package/dist/schema/modules/service/classes/cloudflare-worker.d.ts +56 -20
- package/dist/schema/modules/service/classes/service.d.ts +9 -9
- 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 +1 -1
- 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 +15 -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 +308 -35
- package/dist/schema/schema.js +10 -0
- package/package.json +10 -11
package/dist/schema/schema.d.ts
CHANGED
|
@@ -61,27 +61,27 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
61
61
|
}, {
|
|
62
62
|
readonly mode: 'value';
|
|
63
63
|
readonly value: {
|
|
64
|
+
name: string;
|
|
65
|
+
} | {
|
|
64
66
|
kind: "rejected";
|
|
65
67
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
66
|
-
} | {
|
|
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
|
}, {
|
|
73
73
|
readonly mode: 'value';
|
|
74
74
|
readonly value: {
|
|
75
|
-
ok: true;
|
|
76
|
-
} | {
|
|
77
75
|
kind: "rejected";
|
|
78
76
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
77
|
+
} | {
|
|
78
|
+
ok: true;
|
|
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<{
|
|
@@ -182,27 +182,27 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
182
182
|
}, {
|
|
183
183
|
readonly mode: 'value';
|
|
184
184
|
readonly value: {
|
|
185
|
+
name: string;
|
|
186
|
+
} | {
|
|
185
187
|
kind: "rejected";
|
|
186
188
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
187
|
-
} | {
|
|
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
|
}, {
|
|
194
194
|
readonly mode: 'value';
|
|
195
195
|
readonly value: {
|
|
196
|
-
ok: true;
|
|
197
|
-
} | {
|
|
198
196
|
kind: "rejected";
|
|
199
197
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
198
|
+
} | {
|
|
199
|
+
ok: true;
|
|
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,34 +402,34 @@ 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;
|
|
373
409
|
}, {
|
|
374
410
|
readonly mode: 'value';
|
|
375
411
|
readonly value: {
|
|
412
|
+
name: string;
|
|
413
|
+
} | {
|
|
376
414
|
kind: "rejected";
|
|
377
415
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
378
|
-
} | {
|
|
379
|
-
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
|
}, {
|
|
385
421
|
readonly mode: 'value';
|
|
386
422
|
readonly value: {
|
|
387
|
-
ok: true;
|
|
388
|
-
} | {
|
|
389
423
|
kind: "rejected";
|
|
390
424
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
425
|
+
} | {
|
|
426
|
+
ok: true;
|
|
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,247 @@ 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
|
+
};
|
|
529
|
+
}, "deploying">, {
|
|
530
|
+
required?: boolean;
|
|
531
|
+
description?: string;
|
|
532
|
+
}>;
|
|
533
|
+
retention: import("zod").ZodEnum<{
|
|
534
|
+
preview: "preview";
|
|
535
|
+
published: "published";
|
|
536
|
+
}>;
|
|
537
|
+
record: import("zod").ZodObject<{
|
|
538
|
+
format: import("zod").ZodLiteral<"astrale.deployment-record">;
|
|
539
|
+
version: import("zod").ZodLiteral<1>;
|
|
540
|
+
origin: import("zod").ZodString;
|
|
541
|
+
environment: import("zod").ZodString;
|
|
542
|
+
releaseDigest: import("zod").ZodString;
|
|
543
|
+
buildDigest: import("zod").ZodString;
|
|
544
|
+
schemaRevision: import("zod").ZodString;
|
|
545
|
+
configuration: import("zod").ZodString;
|
|
546
|
+
providerScript: import("zod").ZodString;
|
|
547
|
+
commit: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
548
|
+
sha: import("zod").ZodString;
|
|
549
|
+
dirty: import("zod").ZodBoolean;
|
|
550
|
+
base: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
551
|
+
version: import("zod").ZodString;
|
|
552
|
+
distance: import("zod").ZodNumber;
|
|
553
|
+
}, import("zod/v4/core").$strict>>;
|
|
554
|
+
}, import("zod/v4/core").$strict>>;
|
|
555
|
+
}, import("zod/v4/core").$strict>;
|
|
556
|
+
signingKeyId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
557
|
+
readonly required: false;
|
|
558
|
+
}>;
|
|
559
|
+
lastCallAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
560
|
+
readonly type: 'string';
|
|
561
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
562
|
+
}>, {
|
|
563
|
+
readonly required: false;
|
|
564
|
+
}>;
|
|
565
|
+
expiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
566
|
+
readonly type: 'string';
|
|
567
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
568
|
+
}>, {
|
|
569
|
+
readonly required: false;
|
|
570
|
+
}>;
|
|
571
|
+
retiredAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
572
|
+
readonly type: 'string';
|
|
573
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
574
|
+
}>, {
|
|
575
|
+
readonly required: false;
|
|
576
|
+
}>;
|
|
577
|
+
retirement: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodEnum<{
|
|
578
|
+
expired: "expired";
|
|
579
|
+
withdrawn: "withdrawn";
|
|
580
|
+
}>, {
|
|
581
|
+
readonly required: false;
|
|
582
|
+
}>;
|
|
583
|
+
operationReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
584
|
+
readonly required: false;
|
|
585
|
+
}>;
|
|
586
|
+
operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
587
|
+
readonly type: 'string';
|
|
588
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
589
|
+
}>, {
|
|
590
|
+
readonly required: false;
|
|
591
|
+
}>;
|
|
592
|
+
};
|
|
593
|
+
}>;
|
|
594
|
+
readonly CloudflareDeployment: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
595
|
+
readonly description: "One Deployment uploaded as the Workers for Platforms script its label names.";
|
|
596
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
597
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
598
|
+
readonly abstract: true;
|
|
599
|
+
readonly description: "One immutable deployment of a release on a publisher line.";
|
|
600
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
601
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
|
|
602
|
+
readonly properties: {
|
|
603
|
+
label: import("zod").ZodString;
|
|
604
|
+
url: import("zod").ZodString;
|
|
605
|
+
state: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
|
|
606
|
+
readonly deploying: {
|
|
607
|
+
readonly activate: "active";
|
|
608
|
+
readonly fail: "failed";
|
|
609
|
+
};
|
|
610
|
+
readonly active: {
|
|
611
|
+
readonly retire: "retiring";
|
|
612
|
+
};
|
|
613
|
+
readonly retiring: {
|
|
614
|
+
readonly completeRetirement: "retired";
|
|
615
|
+
};
|
|
616
|
+
readonly retired: {
|
|
617
|
+
readonly revive: "deploying";
|
|
618
|
+
};
|
|
619
|
+
readonly failed: {
|
|
620
|
+
readonly retry: "deploying";
|
|
621
|
+
};
|
|
622
|
+
}, "deploying">, {
|
|
623
|
+
required?: boolean;
|
|
624
|
+
description?: string;
|
|
625
|
+
}>;
|
|
626
|
+
retention: import("zod").ZodEnum<{
|
|
627
|
+
preview: "preview";
|
|
628
|
+
published: "published";
|
|
629
|
+
}>;
|
|
630
|
+
record: import("zod").ZodObject<{
|
|
631
|
+
format: import("zod").ZodLiteral<"astrale.deployment-record">;
|
|
632
|
+
version: import("zod").ZodLiteral<1>;
|
|
633
|
+
origin: import("zod").ZodString;
|
|
634
|
+
environment: import("zod").ZodString;
|
|
635
|
+
releaseDigest: import("zod").ZodString;
|
|
636
|
+
buildDigest: import("zod").ZodString;
|
|
637
|
+
schemaRevision: import("zod").ZodString;
|
|
638
|
+
configuration: import("zod").ZodString;
|
|
639
|
+
providerScript: import("zod").ZodString;
|
|
640
|
+
commit: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
641
|
+
sha: import("zod").ZodString;
|
|
642
|
+
dirty: import("zod").ZodBoolean;
|
|
643
|
+
base: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
644
|
+
version: import("zod").ZodString;
|
|
645
|
+
distance: import("zod").ZodNumber;
|
|
646
|
+
}, import("zod/v4/core").$strict>>;
|
|
647
|
+
}, import("zod/v4/core").$strict>>;
|
|
648
|
+
}, import("zod/v4/core").$strict>;
|
|
649
|
+
signingKeyId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
650
|
+
readonly required: false;
|
|
651
|
+
}>;
|
|
652
|
+
lastCallAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
653
|
+
readonly type: 'string';
|
|
654
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
655
|
+
}>, {
|
|
656
|
+
readonly required: false;
|
|
657
|
+
}>;
|
|
658
|
+
expiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
659
|
+
readonly type: 'string';
|
|
660
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
661
|
+
}>, {
|
|
662
|
+
readonly required: false;
|
|
663
|
+
}>;
|
|
664
|
+
retiredAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
665
|
+
readonly type: 'string';
|
|
666
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
667
|
+
}>, {
|
|
668
|
+
readonly required: false;
|
|
669
|
+
}>;
|
|
670
|
+
retirement: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodEnum<{
|
|
671
|
+
expired: "expired";
|
|
672
|
+
withdrawn: "withdrawn";
|
|
673
|
+
}>, {
|
|
674
|
+
readonly required: false;
|
|
675
|
+
}>;
|
|
676
|
+
operationReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
677
|
+
readonly required: false;
|
|
678
|
+
}>;
|
|
679
|
+
operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
680
|
+
readonly type: 'string';
|
|
681
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
682
|
+
}>, {
|
|
683
|
+
readonly required: false;
|
|
684
|
+
}>;
|
|
685
|
+
};
|
|
686
|
+
}>];
|
|
687
|
+
readonly policies: {
|
|
688
|
+
read: () => import("@astrale-os/sdk/schema").Policy;
|
|
689
|
+
};
|
|
690
|
+
}>;
|
|
691
|
+
readonly line_owned_by: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
692
|
+
readonly depth: 0;
|
|
693
|
+
readonly abstract: false;
|
|
694
|
+
readonly extends: readonly [];
|
|
695
|
+
readonly properties: never;
|
|
696
|
+
readonly source: {
|
|
697
|
+
readonly as: "line";
|
|
698
|
+
readonly outgoing: "0..1";
|
|
699
|
+
};
|
|
700
|
+
readonly target: {
|
|
701
|
+
readonly as: "owner";
|
|
702
|
+
readonly incoming: "0..*";
|
|
703
|
+
};
|
|
704
|
+
readonly constraints: Record<never, never>;
|
|
705
|
+
readonly effectiveProperties: never;
|
|
706
|
+
}>;
|
|
707
|
+
readonly deployment_on_line: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
708
|
+
readonly depth: 0;
|
|
709
|
+
readonly abstract: false;
|
|
710
|
+
readonly extends: readonly [];
|
|
711
|
+
readonly properties: never;
|
|
712
|
+
readonly source: {
|
|
713
|
+
readonly as: "deployment";
|
|
714
|
+
readonly outgoing: "1";
|
|
715
|
+
};
|
|
716
|
+
readonly target: {
|
|
717
|
+
readonly as: "line";
|
|
718
|
+
readonly incoming: "0..*";
|
|
719
|
+
};
|
|
720
|
+
readonly constraints: Record<never, never>;
|
|
721
|
+
readonly effectiveProperties: never;
|
|
722
|
+
}>;
|
|
454
723
|
};
|
|
455
724
|
readonly policies: {
|
|
456
725
|
readonly OwnService: import("@astrale-os/sdk/schema").Policy;
|
|
457
726
|
readonly TraverseOwnedService: import("@astrale-os/sdk/schema").Policy;
|
|
727
|
+
readonly OwnLine: import("@astrale-os/sdk/schema").Policy;
|
|
728
|
+
readonly OwnDeployment: import("@astrale-os/sdk/schema").Policy;
|
|
729
|
+
readonly TraverseOwnedLine: import("@astrale-os/sdk/schema").Policy;
|
|
730
|
+
readonly TraverseOwnedLineDeployment: import("@astrale-os/sdk/schema").Policy;
|
|
458
731
|
};
|
|
459
732
|
readonly views: {
|
|
460
733
|
readonly application: import("@astrale-os/sdk/schema").View;
|
package/dist/schema/schema.js
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import { KernelSchema, defineSchema, view } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { CloudflareDeployment, Deployment, DeploymentLine, OwnDeployment, OwnLine, TraverseOwnedLine, TraverseOwnedLineDeployment, deployment_on_line, line_owned_by, } from './modules/deployment/index.js';
|
|
2
3
|
import { CloudflareWorker, OwnService, Service, TraverseOwnedService, service_owned_by, } from './modules/service/index.js';
|
|
3
4
|
const origin = 'services.astrale.ai';
|
|
4
5
|
const classes = {
|
|
5
6
|
Service,
|
|
6
7
|
CloudflareWorker,
|
|
7
8
|
service_owned_by,
|
|
9
|
+
DeploymentLine,
|
|
10
|
+
Deployment,
|
|
11
|
+
CloudflareDeployment,
|
|
12
|
+
line_owned_by,
|
|
13
|
+
deployment_on_line,
|
|
8
14
|
};
|
|
9
15
|
const policies = {
|
|
10
16
|
OwnService,
|
|
11
17
|
TraverseOwnedService,
|
|
18
|
+
OwnLine,
|
|
19
|
+
OwnDeployment,
|
|
20
|
+
TraverseOwnedLine,
|
|
21
|
+
TraverseOwnedLineDeployment,
|
|
12
22
|
};
|
|
13
23
|
const views = {
|
|
14
24
|
application: view({}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/services",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/astrale-os/domains.git",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"registry": "https://registry.npmjs.org/"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@astrale-os/sdk": "0.
|
|
34
|
+
"@astrale-os/sdk": "0.6.0-beta.11",
|
|
35
35
|
"zod": "4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@astrale-os/adapter-cloudflare": "0.5.0-beta.
|
|
38
|
+
"@astrale-os/adapter-cloudflare": "0.5.0-beta.166",
|
|
39
39
|
"@astrale-os/ox": ">=0.1.4 <1.0.0",
|
|
40
|
-
"@astrale-os/shell": "0.
|
|
41
|
-
"@astrale-os/shell-react": "0.
|
|
42
|
-
"@astrale-os/ui": "0.3.0-beta.
|
|
40
|
+
"@astrale-os/shell": "0.6.0-beta.7",
|
|
41
|
+
"@astrale-os/shell-react": "0.5.0-beta.7",
|
|
42
|
+
"@astrale-os/ui": "0.3.0-beta.32",
|
|
43
43
|
"@cloudflare/workers-types": "5.20260821.1",
|
|
44
44
|
"@tailwindcss/vite": "^4.3.3",
|
|
45
45
|
"@tanstack/react-router": "1.170.18",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/react": "^19.2.18",
|
|
52
52
|
"@types/react-dom": "^19.2.4",
|
|
53
53
|
"@vitejs/plugin-react": "^6.1.0",
|
|
54
|
-
"bun": "1.4.
|
|
54
|
+
"bun": "1.4.2",
|
|
55
55
|
"jsdom": "30.0.1",
|
|
56
56
|
"oxlint": ">=1.79.0 <2.0.0",
|
|
57
57
|
"react": "^19.2.8",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"tailwindcss": "^4.3.3",
|
|
60
60
|
"typescript": "7.0.2",
|
|
61
61
|
"vite": "^8.2.2",
|
|
62
|
-
"vitest": "^
|
|
62
|
+
"vitest": "^5.0.1"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=22.13"
|
|
@@ -72,8 +72,6 @@
|
|
|
72
72
|
],
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "astrale-domain dev",
|
|
75
|
-
"prod": "astrale-domain deploy prod",
|
|
76
|
-
"beta": "astrale-domain deploy beta",
|
|
77
75
|
"deploy": "astrale-domain deploy",
|
|
78
76
|
"build": "astrale-domain build",
|
|
79
77
|
"lint": "astrale-domain lint",
|
|
@@ -89,6 +87,7 @@
|
|
|
89
87
|
"test": "vitest run --config vitest.config.ts && pnpm run accessibility:check",
|
|
90
88
|
"accessibility:check": "oxlint ui views frontend/src --jsx-a11y-plugin --react-plugin --deny-warnings",
|
|
91
89
|
"frontend:build": "vite build",
|
|
92
|
-
"test:remote": "node --test tests/remote/*.test.mjs"
|
|
90
|
+
"test:remote": "node --test tests/remote/*.test.mjs",
|
|
91
|
+
"test:kernel": "vitest run --config vitest.config.ts tests/kernel"
|
|
93
92
|
}
|
|
94
93
|
}
|