@astrale-domains/services 0.4.4 → 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 +199 -7
- package/dist/scaffold/create-service.mjs +77 -0
- package/dist/scaffold/template/.env.example +2 -0
- package/dist/scaffold/template/README.md +37 -0
- package/dist/scaffold/template/gitignore +6 -0
- package/dist/scaffold/template/scripts/build.mjs +10 -0
- package/dist/scaffold/template/scripts/deploy.mjs +50 -0
- package/dist/scaffold/template/src/account.js +26 -0
- package/dist/scaffold/template/src/index.js +32 -0
- package/dist/scaffold/template/src/job.js +19 -0
- 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 +103 -37
- package/dist/schema/modules/service/classes/cloudflare-worker.js +4 -1
- package/dist/schema/modules/service/classes/service.d.ts +19 -19
- 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/index.d.ts +1 -0
- package/dist/schema/modules/service/functions/index.js +1 -0
- 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 +24 -0
- package/dist/schema/modules/service/functions/migrate-worker-ingress.js +26 -0
- 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 +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 +365 -62
- package/dist/schema/schema.js +10 -0
- package/package.json +14 -12
package/dist/schema/schema.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
10
10
|
readonly properties: {
|
|
11
11
|
providerName: import("zod").ZodString;
|
|
12
12
|
serviceKey: import("zod").ZodString;
|
|
13
|
-
url: import("@astrale-os/sdk/schema").
|
|
13
|
+
url: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
14
14
|
readonly required: false;
|
|
15
|
-
}
|
|
15
|
+
}>;
|
|
16
16
|
state: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
|
|
17
17
|
readonly deploying: {
|
|
18
18
|
readonly recordProviderDeployment: "reconciling";
|
|
@@ -38,21 +38,21 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
38
38
|
required?: boolean;
|
|
39
39
|
description?: string;
|
|
40
40
|
}>;
|
|
41
|
-
digest: import("@astrale-os/sdk/schema").
|
|
41
|
+
digest: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
42
42
|
readonly required: false;
|
|
43
|
-
}
|
|
44
|
-
deploymentReceipt: import("@astrale-os/sdk/schema").
|
|
43
|
+
}>;
|
|
44
|
+
deploymentReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
45
45
|
readonly required: false;
|
|
46
|
-
}
|
|
47
|
-
operationExpiresAt: import("@astrale-os/sdk/schema").
|
|
46
|
+
}>;
|
|
47
|
+
operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
48
48
|
readonly type: 'string';
|
|
49
49
|
readonly 'x-astrale-value-kind': 'instant';
|
|
50
50
|
}>, {
|
|
51
51
|
readonly required: false;
|
|
52
|
-
}
|
|
53
|
-
error: import("@astrale-os/sdk/schema").
|
|
52
|
+
}>;
|
|
53
|
+
error: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
54
54
|
readonly required: false;
|
|
55
|
-
}
|
|
55
|
+
}>;
|
|
56
56
|
};
|
|
57
57
|
readonly methods: {
|
|
58
58
|
setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
@@ -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<{
|
|
@@ -131,9 +131,9 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
131
131
|
readonly properties: {
|
|
132
132
|
providerName: import("zod").ZodString;
|
|
133
133
|
serviceKey: import("zod").ZodString;
|
|
134
|
-
url: import("@astrale-os/sdk/schema").
|
|
134
|
+
url: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
135
135
|
readonly required: false;
|
|
136
|
-
}
|
|
136
|
+
}>;
|
|
137
137
|
state: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
|
|
138
138
|
readonly deploying: {
|
|
139
139
|
readonly recordProviderDeployment: "reconciling";
|
|
@@ -159,21 +159,21 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
159
159
|
required?: boolean;
|
|
160
160
|
description?: string;
|
|
161
161
|
}>;
|
|
162
|
-
digest: import("@astrale-os/sdk/schema").
|
|
162
|
+
digest: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
163
163
|
readonly required: false;
|
|
164
|
-
}
|
|
165
|
-
deploymentReceipt: import("@astrale-os/sdk/schema").
|
|
164
|
+
}>;
|
|
165
|
+
deploymentReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
166
166
|
readonly required: false;
|
|
167
|
-
}
|
|
168
|
-
operationExpiresAt: import("@astrale-os/sdk/schema").
|
|
167
|
+
}>;
|
|
168
|
+
operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
169
169
|
readonly type: 'string';
|
|
170
170
|
readonly 'x-astrale-value-kind': 'instant';
|
|
171
171
|
}>, {
|
|
172
172
|
readonly required: false;
|
|
173
|
-
}
|
|
174
|
-
error: import("@astrale-os/sdk/schema").
|
|
173
|
+
}>;
|
|
174
|
+
error: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
175
175
|
readonly required: false;
|
|
176
|
-
}
|
|
176
|
+
}>;
|
|
177
177
|
};
|
|
178
178
|
readonly methods: {
|
|
179
179
|
setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
@@ -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: {
|
|
@@ -246,28 +246,46 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
246
246
|
plain: "plain";
|
|
247
247
|
revisioned: "revisioned";
|
|
248
248
|
}>;
|
|
249
|
-
|
|
249
|
+
tenantDomainDetachedAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
|
|
250
|
+
readonly type: 'string';
|
|
251
|
+
readonly 'x-astrale-value-kind': 'instant';
|
|
252
|
+
}>, {
|
|
253
|
+
readonly required: false;
|
|
254
|
+
}>;
|
|
255
|
+
tenantDomainState: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodEnum<{
|
|
250
256
|
absent: "absent";
|
|
251
257
|
attached: "attached";
|
|
252
258
|
unresolved: "unresolved";
|
|
253
259
|
}>, {
|
|
254
260
|
readonly required: false;
|
|
255
|
-
}
|
|
256
|
-
tenantDomainId: import("@astrale-os/sdk/schema").
|
|
261
|
+
}>;
|
|
262
|
+
tenantDomainId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
257
263
|
readonly required: false;
|
|
258
|
-
}
|
|
259
|
-
tenantCertificatePackId: import("@astrale-os/sdk/schema").
|
|
264
|
+
}>;
|
|
265
|
+
tenantCertificatePackId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
260
266
|
readonly required: false;
|
|
261
|
-
}
|
|
262
|
-
tenantZoneId: import("@astrale-os/sdk/schema").
|
|
267
|
+
}>;
|
|
268
|
+
tenantZoneId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
|
|
263
269
|
readonly required: false;
|
|
264
|
-
}
|
|
270
|
+
}>;
|
|
265
271
|
};
|
|
266
272
|
readonly methods: {
|
|
267
273
|
deploy: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
268
274
|
name?: string | undefined;
|
|
269
275
|
entry?: string | undefined;
|
|
270
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
|
+
} | {
|
|
271
289
|
contentBase64: string;
|
|
272
290
|
name: string;
|
|
273
291
|
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
@@ -281,6 +299,18 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
281
299
|
release: {
|
|
282
300
|
entry: string;
|
|
283
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
|
+
} | {
|
|
284
314
|
contentBase64: string;
|
|
285
315
|
name: string;
|
|
286
316
|
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
@@ -305,6 +335,18 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
305
335
|
secrets?: Record<string, string> | undefined;
|
|
306
336
|
assets?: {
|
|
307
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
|
+
} | {
|
|
308
350
|
contentBase64: string;
|
|
309
351
|
path: string;
|
|
310
352
|
contentType?: string | undefined;
|
|
@@ -336,34 +378,58 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
336
378
|
reason: "artifact-mode-conflict" | "invalid-deployment" | "service-unavailable";
|
|
337
379
|
message: string;
|
|
338
380
|
};
|
|
339
|
-
}, "authenticated", true, false>>;
|
|
381
|
+
}, "authenticated", true, false, undefined>>;
|
|
382
|
+
migrateIngress: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
383
|
+
action: "complete" | "detach" | "restore";
|
|
384
|
+
probe: {
|
|
385
|
+
path: string;
|
|
386
|
+
status: number;
|
|
387
|
+
bodySha256: string;
|
|
388
|
+
};
|
|
389
|
+
}, {
|
|
390
|
+
readonly mode: 'value';
|
|
391
|
+
readonly value: {
|
|
392
|
+
kind: "detached";
|
|
393
|
+
detachedAt: string;
|
|
394
|
+
} | {
|
|
395
|
+
kind: "migrated";
|
|
396
|
+
} | {
|
|
397
|
+
kind: "restored";
|
|
398
|
+
} | {
|
|
399
|
+
kind: "pending";
|
|
400
|
+
retryAfterMs: number;
|
|
401
|
+
} | {
|
|
402
|
+
kind: "rejected";
|
|
403
|
+
reason: "missing-location" | "not-detached" | "service-unavailable";
|
|
404
|
+
};
|
|
405
|
+
}, "authorized", false, false, undefined>>;
|
|
340
406
|
setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
341
407
|
name: string;
|
|
342
408
|
value: string;
|
|
343
409
|
}, {
|
|
344
410
|
readonly mode: 'value';
|
|
345
411
|
readonly value: {
|
|
412
|
+
name: string;
|
|
413
|
+
} | {
|
|
346
414
|
kind: "rejected";
|
|
347
415
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
348
|
-
} | {
|
|
349
|
-
name: string;
|
|
350
416
|
};
|
|
351
|
-
}, "authorized", false, false>>;
|
|
417
|
+
}, "authorized", false, false, undefined>>;
|
|
352
418
|
deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
353
419
|
name: string;
|
|
354
420
|
}, {
|
|
355
421
|
readonly mode: 'value';
|
|
356
422
|
readonly value: {
|
|
357
|
-
ok: true;
|
|
358
|
-
} | {
|
|
359
423
|
kind: "rejected";
|
|
360
424
|
reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
|
|
425
|
+
} | {
|
|
426
|
+
ok: true;
|
|
361
427
|
};
|
|
362
|
-
}, "authorized", false, false>>;
|
|
428
|
+
}, "authorized", false, false, undefined>>;
|
|
363
429
|
secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
364
430
|
readonly mode: 'value';
|
|
365
431
|
readonly value: string[];
|
|
366
|
-
}, "authorized", false, false>>;
|
|
432
|
+
}, "authorized", false, false, undefined>>;
|
|
367
433
|
setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
368
434
|
crons: string[];
|
|
369
435
|
}, {
|
|
@@ -374,11 +440,11 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
374
440
|
kind: "rejected";
|
|
375
441
|
reason: "invalid-schedule" | "service-unavailable";
|
|
376
442
|
};
|
|
377
|
-
}, "authorized", false, false>>;
|
|
443
|
+
}, "authorized", false, false, undefined>>;
|
|
378
444
|
schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
379
445
|
readonly mode: 'value';
|
|
380
446
|
readonly value: string[];
|
|
381
|
-
}, "authorized", false, false>>;
|
|
447
|
+
}, "authorized", false, false, undefined>>;
|
|
382
448
|
logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
383
449
|
tail?: number | undefined;
|
|
384
450
|
since?: number | undefined;
|
|
@@ -390,7 +456,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
390
456
|
level: string;
|
|
391
457
|
line: string;
|
|
392
458
|
}[];
|
|
393
|
-
}, "authorized", false, false>>;
|
|
459
|
+
}, "authorized", false, false, undefined>>;
|
|
394
460
|
delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
395
461
|
readonly mode: 'value';
|
|
396
462
|
readonly value: {
|
|
@@ -399,7 +465,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
399
465
|
kind: "deleting";
|
|
400
466
|
retryAfterMs: number;
|
|
401
467
|
};
|
|
402
|
-
}, "authorized", false, false>>;
|
|
468
|
+
}, "authorized", false, false, undefined>>;
|
|
403
469
|
};
|
|
404
470
|
readonly policies: {
|
|
405
471
|
read: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -421,10 +487,247 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
|
|
|
421
487
|
readonly constraints: Record<never, never>;
|
|
422
488
|
readonly effectiveProperties: never;
|
|
423
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
|
+
}>;
|
|
424
723
|
};
|
|
425
724
|
readonly policies: {
|
|
426
725
|
readonly OwnService: import("@astrale-os/sdk/schema").Policy;
|
|
427
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;
|
|
428
731
|
};
|
|
429
732
|
readonly views: {
|
|
430
733
|
readonly application: import("@astrale-os/sdk/schema").View;
|