@astrale-domains/services 0.2.1 → 0.2.3
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/CHANGELOG.md +101 -0
- package/README.md +12 -7
- package/dist/schema/deployment/deployment-rejection.d.ts +11 -0
- package/dist/schema/deployment/deployment-rejection.js +6 -0
- package/dist/schema/deployment/index.d.ts +3 -1
- package/dist/schema/deployment/index.js +2 -1
- package/dist/schema/deployment/request.d.ts +3 -45
- package/dist/schema/deployment/request.js +11 -4
- package/dist/schema/deployment/result.d.ts +57 -7
- package/dist/schema/deployment/result.js +14 -5
- package/dist/schema/index.d.ts +4 -4
- package/dist/schema/index.js +3 -3
- package/dist/schema/schema.d.ts +8288 -0
- package/dist/schema/schema.js +15 -0
- package/dist/schema/service/cloudflare-worker-class.d.ts +8029 -0
- package/dist/schema/service/cloudflare-worker-class.js +18 -0
- package/dist/schema/service/index.d.ts +4 -3
- package/dist/schema/service/index.js +4 -3
- package/dist/schema/service/methods/delete-secret.d.ts +11 -0
- package/dist/schema/service/methods/delete-secret.js +10 -0
- package/dist/schema/service/methods/delete-service.d.ts +9 -0
- package/dist/schema/service/methods/delete-service.js +14 -0
- package/dist/schema/service/methods/deploy-cloudflare-worker.d.ts +81 -0
- package/dist/schema/service/methods/deploy-cloudflare-worker.js +9 -0
- package/dist/schema/service/methods/index.d.ts +8 -0
- package/dist/schema/service/methods/index.js +8 -0
- package/dist/schema/service/methods/list-service-logs.d.ts +12 -0
- package/dist/schema/service/methods/list-service-logs.js +11 -0
- package/dist/schema/service/methods/list-service-schedules.d.ts +4 -0
- package/dist/schema/service/methods/list-service-schedules.js +8 -0
- package/dist/schema/service/methods/list-service-secret-names.d.ts +4 -0
- package/dist/schema/service/methods/list-service-secret-names.js +9 -0
- package/dist/schema/service/methods/replace-service-schedules.d.ts +11 -0
- package/dist/schema/service/methods/replace-service-schedules.js +14 -0
- package/dist/schema/service/methods/secret-name.js +2 -0
- package/dist/schema/service/methods/secret-operation-rejection.js +5 -0
- package/dist/schema/service/methods/set-service-secret.d.ts +12 -0
- package/dist/schema/service/methods/set-service-secret.js +16 -0
- package/dist/schema/service/policies.js +1 -1
- package/dist/schema/service/{class.d.ts → service-class.d.ts} +71 -184
- package/dist/schema/service/service-class.js +46 -0
- package/dist/schema/service/{relationships.js → service-owned-by-edge-class.js} +2 -2
- package/package.json +29 -23
- package/dist/schema/application/functions.js +0 -20
- package/dist/schema/application/index.d.ts +0 -391
- package/dist/schema/application/index.js +0 -10
- package/dist/schema/service/class.js +0 -22
- package/dist/schema/service/methods.d.ts +0 -135
- package/dist/schema/service/methods.js +0 -64
- /package/dist/schema/service/{relationships.d.ts → service-owned-by-edge-class.d.ts} +0 -0
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
import type { schema as language } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { KernelSchema } from '@astrale-os/sdk/schema';
|
|
3
|
-
export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"services.astrale.ai", import("@astrale-os/sdk/schema").ResolvedDomainOfInput<"services.astrale.ai", {
|
|
4
|
-
readonly dependencies: {
|
|
5
|
-
kernel: KernelSchema;
|
|
6
|
-
};
|
|
7
|
-
readonly classes: {
|
|
8
|
-
readonly CloudflareWorker: import("@astrale-os/sdk/schema").NodeClass<{
|
|
9
|
-
readonly depth: 1;
|
|
10
|
-
readonly abstract: false;
|
|
11
|
-
readonly extends: readonly [import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
|
|
12
|
-
readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Named"> & {
|
|
13
|
-
readonly origin: "kernel.astrale.ai";
|
|
14
|
-
};
|
|
15
|
-
readonly kind: 'node';
|
|
16
|
-
readonly abstract: true;
|
|
17
|
-
}, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Named"> & {
|
|
18
|
-
readonly origin: "kernel.astrale.ai";
|
|
19
|
-
}, "kernel.astrale.ai:class.Named", readonly [import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
|
|
20
|
-
readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
|
|
21
|
-
readonly origin: "kernel.astrale.ai";
|
|
22
|
-
};
|
|
23
|
-
readonly kind: 'node';
|
|
24
|
-
readonly abstract: true;
|
|
25
|
-
}, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
|
|
26
|
-
readonly origin: "kernel.astrale.ai";
|
|
27
|
-
}, "kernel.astrale.ai:class.Node", readonly import("@astrale-os/sdk/schema").AnyResolvedClass[], never, never, never, never, never, never>, ...never[]], import("@astrale-os/sdk/schema").PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, true, "name", "kernel.astrale.ai:class.Named.property.name">, never, never, import("@astrale-os/sdk/schema").PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, true, "name", "kernel.astrale.ai:class.Named.property.name">, never, never>, import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
|
|
28
|
-
readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Descriptable"> & {
|
|
29
|
-
readonly origin: "kernel.astrale.ai";
|
|
30
|
-
};
|
|
31
|
-
readonly kind: 'node';
|
|
32
|
-
readonly abstract: true;
|
|
33
|
-
}, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Descriptable"> & {
|
|
34
|
-
readonly origin: "kernel.astrale.ai";
|
|
35
|
-
}, "kernel.astrale.ai:class.Descriptable", readonly [import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
|
|
36
|
-
readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
|
|
37
|
-
readonly origin: "kernel.astrale.ai";
|
|
38
|
-
};
|
|
39
|
-
readonly kind: 'node';
|
|
40
|
-
readonly abstract: true;
|
|
41
|
-
}, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
|
|
42
|
-
readonly origin: "kernel.astrale.ai";
|
|
43
|
-
}, "kernel.astrale.ai:class.Node", readonly import("@astrale-os/sdk/schema").AnyResolvedClass[], never, never, never, never, never, never>, ...never[]], import("@astrale-os/sdk/schema").PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, false, "description", "kernel.astrale.ai:class.Descriptable.property.description">, never, never, import("@astrale-os/sdk/schema").PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, false, "description", "kernel.astrale.ai:class.Descriptable.property.description">, never, never>, import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
|
|
44
|
-
readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Timestamped"> & {
|
|
45
|
-
readonly origin: "kernel.astrale.ai";
|
|
46
|
-
};
|
|
47
|
-
readonly kind: 'node';
|
|
48
|
-
readonly abstract: true;
|
|
49
|
-
}, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Timestamped"> & {
|
|
50
|
-
readonly origin: "kernel.astrale.ai";
|
|
51
|
-
}, "kernel.astrale.ai:class.Timestamped", readonly [import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
|
|
52
|
-
readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
|
|
53
|
-
readonly origin: "kernel.astrale.ai";
|
|
54
|
-
};
|
|
55
|
-
readonly kind: 'node';
|
|
56
|
-
readonly abstract: true;
|
|
57
|
-
}, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
|
|
58
|
-
readonly origin: "kernel.astrale.ai";
|
|
59
|
-
}, "kernel.astrale.ai:class.Node", readonly import("@astrale-os/sdk/schema").AnyResolvedClass[], never, never, never, never, never, never>, ...never[]], import("@astrale-os/sdk/schema").PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, true, "createdAt", "kernel.astrale.ai:class.Timestamped.property.createdAt"> | import("@astrale-os/sdk/schema").PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, true, "updatedAt", "kernel.astrale.ai:class.Timestamped.property.updatedAt">, never, never, import("@astrale-os/sdk/schema").PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, true, "createdAt", "kernel.astrale.ai:class.Timestamped.property.createdAt"> | import("@astrale-os/sdk/schema").PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, true, "updatedAt", "kernel.astrale.ai:class.Timestamped.property.updatedAt">, never, never>];
|
|
60
|
-
readonly properties: {
|
|
61
|
-
readonly providerKey: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerKey", "self">;
|
|
62
|
-
readonly providerName: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerName", "self">;
|
|
63
|
-
readonly deploymentMode: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"plain" | "revisioned", "plain" | "revisioned", true, "deploymentMode", "self">;
|
|
64
|
-
readonly url: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "url", "self">;
|
|
65
|
-
readonly state: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"deploying" | "failed" | "ready", "deploying" | "failed" | "ready", true, "state", "self">;
|
|
66
|
-
readonly digest: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "digest", "self">;
|
|
67
|
-
readonly revision: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "revision", "self">;
|
|
68
|
-
readonly coordinate: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "coordinate", "self">;
|
|
69
|
-
readonly deploymentReceipt: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "deploymentReceipt", "self">;
|
|
70
|
-
readonly error: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "error", "self">;
|
|
71
|
-
};
|
|
72
|
-
readonly methods: {
|
|
73
|
-
readonly deploy: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
74
|
-
path: string;
|
|
75
|
-
name?: string | undefined;
|
|
76
|
-
entry?: string | undefined;
|
|
77
|
-
modules?: ({
|
|
78
|
-
contentBase64: string;
|
|
79
|
-
name: string;
|
|
80
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
81
|
-
} | {
|
|
82
|
-
contentBase64Chunks: string[];
|
|
83
|
-
name: string;
|
|
84
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
85
|
-
})[] | undefined;
|
|
86
|
-
revisioned?: {
|
|
87
|
-
revision: string;
|
|
88
|
-
release: {
|
|
89
|
-
entry: string;
|
|
90
|
-
modules: ({
|
|
91
|
-
contentBase64: string;
|
|
92
|
-
name: string;
|
|
93
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
94
|
-
} | {
|
|
95
|
-
contentBase64Chunks: string[];
|
|
96
|
-
name: string;
|
|
97
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
98
|
-
})[];
|
|
99
|
-
};
|
|
100
|
-
gateway: {
|
|
101
|
-
entry: string;
|
|
102
|
-
modules: ({
|
|
103
|
-
contentBase64: string;
|
|
104
|
-
name: string;
|
|
105
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
106
|
-
} | {
|
|
107
|
-
contentBase64Chunks: string[];
|
|
108
|
-
name: string;
|
|
109
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
110
|
-
})[];
|
|
111
|
-
};
|
|
112
|
-
} | undefined;
|
|
113
|
-
compatibilityDate?: string | undefined;
|
|
114
|
-
compatibilityFlags?: string[] | undefined;
|
|
115
|
-
serviceBindings?: {
|
|
116
|
-
name: string;
|
|
117
|
-
service: string;
|
|
118
|
-
}[] | undefined;
|
|
119
|
-
vars?: Record<string, string> | undefined;
|
|
120
|
-
secrets?: Record<string, string> | undefined;
|
|
121
|
-
assets?: {
|
|
122
|
-
files: ({
|
|
123
|
-
contentBase64: string;
|
|
124
|
-
path: string;
|
|
125
|
-
contentType?: string | undefined;
|
|
126
|
-
} | {
|
|
127
|
-
contentBase64Chunks: string[];
|
|
128
|
-
path: string;
|
|
129
|
-
contentType?: string | undefined;
|
|
130
|
-
})[];
|
|
131
|
-
notFound?: "404-page" | "none" | "single-page-application" | undefined;
|
|
132
|
-
runWorkerFirst?: boolean | undefined;
|
|
133
|
-
htmlHandling?: "none" | undefined;
|
|
134
|
-
} | undefined;
|
|
135
|
-
limits?: {
|
|
136
|
-
cpuMs?: number | undefined;
|
|
137
|
-
subrequests?: number | undefined;
|
|
138
|
-
} | undefined;
|
|
139
|
-
}, {
|
|
140
|
-
readonly mode: 'value';
|
|
141
|
-
readonly value: {
|
|
142
|
-
path: string;
|
|
143
|
-
url: string;
|
|
144
|
-
digest: string;
|
|
145
|
-
revision?: string | undefined;
|
|
146
|
-
state: "deploying" | "failed" | "ready";
|
|
147
|
-
error?: string | null | undefined;
|
|
148
|
-
functions: {
|
|
149
|
-
id: string;
|
|
150
|
-
path: string;
|
|
151
|
-
ref: string;
|
|
152
|
-
}[];
|
|
153
|
-
};
|
|
154
|
-
}, "authenticated", true, "default">>;
|
|
155
|
-
readonly setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
156
|
-
name: string;
|
|
157
|
-
value: string;
|
|
158
|
-
}, {
|
|
159
|
-
readonly mode: 'value';
|
|
160
|
-
readonly value: {
|
|
161
|
-
name: string;
|
|
162
|
-
};
|
|
163
|
-
}, "authenticated", false, "default">>;
|
|
164
|
-
readonly deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
165
|
-
name: string;
|
|
166
|
-
}, {
|
|
167
|
-
readonly mode: 'value';
|
|
168
|
-
readonly value: {
|
|
169
|
-
ok: true;
|
|
170
|
-
};
|
|
171
|
-
}, "authenticated", false, "default">>;
|
|
172
|
-
readonly secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
173
|
-
readonly mode: 'value';
|
|
174
|
-
readonly value: string[];
|
|
175
|
-
}, "authenticated", false, "default">>;
|
|
176
|
-
readonly setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
177
|
-
crons: string[];
|
|
178
|
-
}, {
|
|
179
|
-
readonly mode: 'value';
|
|
180
|
-
readonly value: {
|
|
181
|
-
crons: string[];
|
|
182
|
-
};
|
|
183
|
-
}, "authenticated", false, "default">>;
|
|
184
|
-
readonly schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
185
|
-
readonly mode: 'value';
|
|
186
|
-
readonly value: string[];
|
|
187
|
-
}, "authenticated", false, "default">>;
|
|
188
|
-
readonly logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
189
|
-
tail?: number | undefined;
|
|
190
|
-
since?: number | undefined;
|
|
191
|
-
}, {
|
|
192
|
-
readonly mode: 'value';
|
|
193
|
-
readonly value: {
|
|
194
|
-
id: string;
|
|
195
|
-
ts: number;
|
|
196
|
-
level: string;
|
|
197
|
-
line: string;
|
|
198
|
-
}[];
|
|
199
|
-
}, "authenticated", false, "default">>;
|
|
200
|
-
readonly delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
201
|
-
readonly mode: 'value';
|
|
202
|
-
readonly value: {
|
|
203
|
-
ok: true;
|
|
204
|
-
};
|
|
205
|
-
}, "authenticated", false, "default">>;
|
|
206
|
-
};
|
|
207
|
-
readonly effectiveProperties: (import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "coordinate", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"plain" | "revisioned", "plain" | "revisioned", true, "deploymentMode", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "deploymentReceipt", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "digest", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "error", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerKey", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerName", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "revision", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"deploying" | "failed" | "ready", "deploying" | "failed" | "ready", true, "state", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "url", "self">) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
|
|
208
|
-
readonly name: "description";
|
|
209
|
-
readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
|
|
210
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
211
|
-
readonly name: "createdAt";
|
|
212
|
-
readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
|
|
213
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
214
|
-
readonly name: "name";
|
|
215
|
-
readonly key: "kernel.astrale.ai:class.Named.property.name";
|
|
216
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
217
|
-
readonly name: "updatedAt";
|
|
218
|
-
readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
|
|
219
|
-
});
|
|
220
|
-
readonly effectiveInstanceMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
221
|
-
readonly mode: 'value';
|
|
222
|
-
readonly value: string[];
|
|
223
|
-
}, "authenticated", false, "default">>, "schedules", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
224
|
-
readonly mode: 'value';
|
|
225
|
-
readonly value: string[];
|
|
226
|
-
}, "authenticated", false, "default">>, "secrets", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
227
|
-
readonly mode: 'value';
|
|
228
|
-
readonly value: {
|
|
229
|
-
ok: true;
|
|
230
|
-
};
|
|
231
|
-
}, "authenticated", false, "default">>, "delete", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
232
|
-
name: string;
|
|
233
|
-
value: string;
|
|
234
|
-
}, {
|
|
235
|
-
readonly mode: 'value';
|
|
236
|
-
readonly value: {
|
|
237
|
-
name: string;
|
|
238
|
-
};
|
|
239
|
-
}, "authenticated", false, "default">>, "setSecret", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
240
|
-
name: string;
|
|
241
|
-
}, {
|
|
242
|
-
readonly mode: 'value';
|
|
243
|
-
readonly value: {
|
|
244
|
-
ok: true;
|
|
245
|
-
};
|
|
246
|
-
}, "authenticated", false, "default">>, "deleteSecret", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
247
|
-
crons: string[];
|
|
248
|
-
}, {
|
|
249
|
-
readonly mode: 'value';
|
|
250
|
-
readonly value: {
|
|
251
|
-
crons: string[];
|
|
252
|
-
};
|
|
253
|
-
}, "authenticated", false, "default">>, "setSchedule", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
254
|
-
tail?: number | undefined;
|
|
255
|
-
since?: number | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
readonly mode: 'value';
|
|
258
|
-
readonly value: {
|
|
259
|
-
id: string;
|
|
260
|
-
ts: number;
|
|
261
|
-
level: string;
|
|
262
|
-
line: string;
|
|
263
|
-
}[];
|
|
264
|
-
}, "authenticated", false, "default">>, "logs", "self">;
|
|
265
|
-
readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
266
|
-
path: string;
|
|
267
|
-
name?: string | undefined;
|
|
268
|
-
entry?: string | undefined;
|
|
269
|
-
modules?: ({
|
|
270
|
-
contentBase64: string;
|
|
271
|
-
name: string;
|
|
272
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
273
|
-
} | {
|
|
274
|
-
contentBase64Chunks: string[];
|
|
275
|
-
name: string;
|
|
276
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
277
|
-
})[] | undefined;
|
|
278
|
-
revisioned?: {
|
|
279
|
-
revision: string;
|
|
280
|
-
release: {
|
|
281
|
-
entry: string;
|
|
282
|
-
modules: ({
|
|
283
|
-
contentBase64: string;
|
|
284
|
-
name: string;
|
|
285
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
286
|
-
} | {
|
|
287
|
-
contentBase64Chunks: string[];
|
|
288
|
-
name: string;
|
|
289
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
290
|
-
})[];
|
|
291
|
-
};
|
|
292
|
-
gateway: {
|
|
293
|
-
entry: string;
|
|
294
|
-
modules: ({
|
|
295
|
-
contentBase64: string;
|
|
296
|
-
name: string;
|
|
297
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
298
|
-
} | {
|
|
299
|
-
contentBase64Chunks: string[];
|
|
300
|
-
name: string;
|
|
301
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
302
|
-
})[];
|
|
303
|
-
};
|
|
304
|
-
} | undefined;
|
|
305
|
-
compatibilityDate?: string | undefined;
|
|
306
|
-
compatibilityFlags?: string[] | undefined;
|
|
307
|
-
serviceBindings?: {
|
|
308
|
-
name: string;
|
|
309
|
-
service: string;
|
|
310
|
-
}[] | undefined;
|
|
311
|
-
vars?: Record<string, string> | undefined;
|
|
312
|
-
secrets?: Record<string, string> | undefined;
|
|
313
|
-
assets?: {
|
|
314
|
-
files: ({
|
|
315
|
-
contentBase64: string;
|
|
316
|
-
path: string;
|
|
317
|
-
contentType?: string | undefined;
|
|
318
|
-
} | {
|
|
319
|
-
contentBase64Chunks: string[];
|
|
320
|
-
path: string;
|
|
321
|
-
contentType?: string | undefined;
|
|
322
|
-
})[];
|
|
323
|
-
notFound?: "404-page" | "none" | "single-page-application" | undefined;
|
|
324
|
-
runWorkerFirst?: boolean | undefined;
|
|
325
|
-
htmlHandling?: "none" | undefined;
|
|
326
|
-
} | undefined;
|
|
327
|
-
limits?: {
|
|
328
|
-
cpuMs?: number | undefined;
|
|
329
|
-
subrequests?: number | undefined;
|
|
330
|
-
} | undefined;
|
|
331
|
-
}, {
|
|
332
|
-
readonly mode: 'value';
|
|
333
|
-
readonly value: {
|
|
334
|
-
path: string;
|
|
335
|
-
url: string;
|
|
336
|
-
digest: string;
|
|
337
|
-
revision?: string | undefined;
|
|
338
|
-
state: "deploying" | "failed" | "ready";
|
|
339
|
-
error?: string | null | undefined;
|
|
340
|
-
functions: {
|
|
341
|
-
id: string;
|
|
342
|
-
path: string;
|
|
343
|
-
ref: string;
|
|
344
|
-
}[];
|
|
345
|
-
};
|
|
346
|
-
}, "authenticated", true, "default">>, "deploy", "self">;
|
|
347
|
-
}>;
|
|
348
|
-
readonly service_owned_by: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
349
|
-
readonly depth: 0;
|
|
350
|
-
readonly abstract: false;
|
|
351
|
-
readonly extends: readonly [];
|
|
352
|
-
readonly properties: never;
|
|
353
|
-
readonly source: {
|
|
354
|
-
readonly as: "owner";
|
|
355
|
-
readonly outgoing: "0..*";
|
|
356
|
-
};
|
|
357
|
-
readonly target: {
|
|
358
|
-
readonly as: "service";
|
|
359
|
-
readonly incoming: "1";
|
|
360
|
-
};
|
|
361
|
-
readonly constraints: Record<never, never>;
|
|
362
|
-
readonly effectiveProperties: never;
|
|
363
|
-
}>;
|
|
364
|
-
};
|
|
365
|
-
readonly policies: {
|
|
366
|
-
readonly ObserveService: import("@astrale-os/sdk/schema").Policy;
|
|
367
|
-
readonly TraverseOwnedService: import("@astrale-os/sdk/schema").Policy;
|
|
368
|
-
};
|
|
369
|
-
readonly functions: {
|
|
370
|
-
readonly listServices: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
371
|
-
readonly mode: 'value';
|
|
372
|
-
readonly value: {
|
|
373
|
-
id: string;
|
|
374
|
-
name: string;
|
|
375
|
-
description: string;
|
|
376
|
-
providerName: string;
|
|
377
|
-
coordinate: string;
|
|
378
|
-
url?: string | undefined;
|
|
379
|
-
state: "deploying" | "failed" | "ready";
|
|
380
|
-
digest?: string | undefined;
|
|
381
|
-
revision?: string | undefined;
|
|
382
|
-
error?: string | undefined;
|
|
383
|
-
}[];
|
|
384
|
-
}, "authenticated", false, "default">>;
|
|
385
|
-
};
|
|
386
|
-
readonly views: {
|
|
387
|
-
application: import("@astrale-os/sdk/schema").View;
|
|
388
|
-
};
|
|
389
|
-
}>>;
|
|
390
|
-
export type ServicesSchema = typeof schema;
|
|
391
|
-
export type ServicesDomain = language.DomainOf<typeof schema>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { KernelSchema, defineSchema, view } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { CloudflareWorker, ObserveService, TraverseOwnedService, service_owned_by, } from '#schema/service';
|
|
3
|
-
import { listServices } from './functions.js';
|
|
4
|
-
export const schema = defineSchema('services.astrale.ai', {
|
|
5
|
-
dependencies: { kernel: KernelSchema },
|
|
6
|
-
classes: { CloudflareWorker, service_owned_by },
|
|
7
|
-
policies: { ObserveService, TraverseOwnedService },
|
|
8
|
-
functions: { listServices },
|
|
9
|
-
views: { application: view({}) },
|
|
10
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { K, nodeClass, property } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { serviceMethods } from './methods.js';
|
|
4
|
-
import { ObserveService } from './policies.js';
|
|
5
|
-
export const CloudflareWorker = nodeClass({
|
|
6
|
-
description: 'One caller-owned Cloudflare Worker Service.',
|
|
7
|
-
extends: [K.classes.Named, K.classes.Descriptable, K.classes.Timestamped],
|
|
8
|
-
properties: {
|
|
9
|
-
providerKey: z.string().min(1).max(80),
|
|
10
|
-
providerName: z.string().min(1).max(120),
|
|
11
|
-
deploymentMode: z.enum(['plain', 'revisioned']),
|
|
12
|
-
url: property(z.string().min(1).max(2_048), { required: false }),
|
|
13
|
-
state: z.enum(['deploying', 'ready', 'failed']),
|
|
14
|
-
digest: property(z.string().min(1).max(256), { required: false }),
|
|
15
|
-
revision: property(z.string().min(1).max(80), { required: false }),
|
|
16
|
-
coordinate: z.string().min(1).max(2_048),
|
|
17
|
-
deploymentReceipt: property(z.string().min(1).max(128), { required: false }),
|
|
18
|
-
error: property(z.string().max(5_000), { required: false }),
|
|
19
|
-
},
|
|
20
|
-
methods: serviceMethods,
|
|
21
|
-
policies: { read: () => ObserveService },
|
|
22
|
-
});
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
export declare const serviceMethods: {
|
|
2
|
-
readonly deploy: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
3
|
-
path: string;
|
|
4
|
-
name?: string | undefined;
|
|
5
|
-
entry?: string | undefined;
|
|
6
|
-
modules?: ({
|
|
7
|
-
contentBase64: string;
|
|
8
|
-
name: string;
|
|
9
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
10
|
-
} | {
|
|
11
|
-
contentBase64Chunks: string[];
|
|
12
|
-
name: string;
|
|
13
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
14
|
-
})[] | undefined;
|
|
15
|
-
revisioned?: {
|
|
16
|
-
revision: string;
|
|
17
|
-
release: {
|
|
18
|
-
entry: string;
|
|
19
|
-
modules: ({
|
|
20
|
-
contentBase64: string;
|
|
21
|
-
name: string;
|
|
22
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
contentBase64Chunks: string[];
|
|
25
|
-
name: string;
|
|
26
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
27
|
-
})[];
|
|
28
|
-
};
|
|
29
|
-
gateway: {
|
|
30
|
-
entry: string;
|
|
31
|
-
modules: ({
|
|
32
|
-
contentBase64: string;
|
|
33
|
-
name: string;
|
|
34
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
35
|
-
} | {
|
|
36
|
-
contentBase64Chunks: string[];
|
|
37
|
-
name: string;
|
|
38
|
-
kind?: "data" | "esm" | "text" | "wasm" | undefined;
|
|
39
|
-
})[];
|
|
40
|
-
};
|
|
41
|
-
} | undefined;
|
|
42
|
-
compatibilityDate?: string | undefined;
|
|
43
|
-
compatibilityFlags?: string[] | undefined;
|
|
44
|
-
serviceBindings?: {
|
|
45
|
-
name: string;
|
|
46
|
-
service: string;
|
|
47
|
-
}[] | undefined;
|
|
48
|
-
vars?: Record<string, string> | undefined;
|
|
49
|
-
secrets?: Record<string, string> | undefined;
|
|
50
|
-
assets?: {
|
|
51
|
-
files: ({
|
|
52
|
-
contentBase64: string;
|
|
53
|
-
path: string;
|
|
54
|
-
contentType?: string | undefined;
|
|
55
|
-
} | {
|
|
56
|
-
contentBase64Chunks: string[];
|
|
57
|
-
path: string;
|
|
58
|
-
contentType?: string | undefined;
|
|
59
|
-
})[];
|
|
60
|
-
notFound?: "404-page" | "none" | "single-page-application" | undefined;
|
|
61
|
-
runWorkerFirst?: boolean | undefined;
|
|
62
|
-
htmlHandling?: "none" | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
limits?: {
|
|
65
|
-
cpuMs?: number | undefined;
|
|
66
|
-
subrequests?: number | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
}, {
|
|
69
|
-
readonly mode: 'value';
|
|
70
|
-
readonly value: {
|
|
71
|
-
path: string;
|
|
72
|
-
url: string;
|
|
73
|
-
digest: string;
|
|
74
|
-
revision?: string | undefined;
|
|
75
|
-
state: "deploying" | "failed" | "ready";
|
|
76
|
-
error?: string | null | undefined;
|
|
77
|
-
functions: {
|
|
78
|
-
id: string;
|
|
79
|
-
path: string;
|
|
80
|
-
ref: string;
|
|
81
|
-
}[];
|
|
82
|
-
};
|
|
83
|
-
}, "authenticated", true, "default">>;
|
|
84
|
-
readonly setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
85
|
-
name: string;
|
|
86
|
-
value: string;
|
|
87
|
-
}, {
|
|
88
|
-
readonly mode: 'value';
|
|
89
|
-
readonly value: {
|
|
90
|
-
name: string;
|
|
91
|
-
};
|
|
92
|
-
}, "authenticated", false, "default">>;
|
|
93
|
-
readonly deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
94
|
-
name: string;
|
|
95
|
-
}, {
|
|
96
|
-
readonly mode: 'value';
|
|
97
|
-
readonly value: {
|
|
98
|
-
ok: true;
|
|
99
|
-
};
|
|
100
|
-
}, "authenticated", false, "default">>;
|
|
101
|
-
readonly secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
102
|
-
readonly mode: 'value';
|
|
103
|
-
readonly value: string[];
|
|
104
|
-
}, "authenticated", false, "default">>;
|
|
105
|
-
readonly setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
106
|
-
crons: string[];
|
|
107
|
-
}, {
|
|
108
|
-
readonly mode: 'value';
|
|
109
|
-
readonly value: {
|
|
110
|
-
crons: string[];
|
|
111
|
-
};
|
|
112
|
-
}, "authenticated", false, "default">>;
|
|
113
|
-
readonly schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
114
|
-
readonly mode: 'value';
|
|
115
|
-
readonly value: string[];
|
|
116
|
-
}, "authenticated", false, "default">>;
|
|
117
|
-
readonly logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
118
|
-
tail?: number | undefined;
|
|
119
|
-
since?: number | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
readonly mode: 'value';
|
|
122
|
-
readonly value: {
|
|
123
|
-
id: string;
|
|
124
|
-
ts: number;
|
|
125
|
-
level: string;
|
|
126
|
-
line: string;
|
|
127
|
-
}[];
|
|
128
|
-
}, "authenticated", false, "default">>;
|
|
129
|
-
readonly delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
130
|
-
readonly mode: 'value';
|
|
131
|
-
readonly value: {
|
|
132
|
-
ok: true;
|
|
133
|
-
};
|
|
134
|
-
}, "authenticated", false, "default">>;
|
|
135
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { method } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { deployServiceInput, deployServiceOutput } from '#schema/deployment';
|
|
4
|
-
const secretName = z.string().min(1).max(256);
|
|
5
|
-
export const serviceMethods = {
|
|
6
|
-
deploy: method({
|
|
7
|
-
description: 'Create or replace one Cloudflare Worker placement.',
|
|
8
|
-
auth: 'authenticated',
|
|
9
|
-
static: true,
|
|
10
|
-
input: deployServiceInput,
|
|
11
|
-
output: deployServiceOutput,
|
|
12
|
-
}),
|
|
13
|
-
setSecret: method({
|
|
14
|
-
description: 'Set one write-only Service secret.',
|
|
15
|
-
auth: 'authenticated',
|
|
16
|
-
input: z.strictObject({
|
|
17
|
-
name: secretName,
|
|
18
|
-
value: z
|
|
19
|
-
.string()
|
|
20
|
-
.min(1)
|
|
21
|
-
.max(64 * 1024),
|
|
22
|
-
}),
|
|
23
|
-
output: z.strictObject({ name: secretName }),
|
|
24
|
-
}),
|
|
25
|
-
deleteSecret: method({
|
|
26
|
-
description: 'Delete one write-only Service secret.',
|
|
27
|
-
auth: 'authenticated',
|
|
28
|
-
input: z.strictObject({ name: secretName }),
|
|
29
|
-
output: z.strictObject({ ok: z.literal(true) }),
|
|
30
|
-
}),
|
|
31
|
-
secrets: method({
|
|
32
|
-
description: 'List write-only secret names.',
|
|
33
|
-
auth: 'authenticated',
|
|
34
|
-
input: z.strictObject({}),
|
|
35
|
-
output: z.array(secretName),
|
|
36
|
-
}),
|
|
37
|
-
setSchedule: method({
|
|
38
|
-
description: 'Replace the complete Service cron set.',
|
|
39
|
-
auth: 'authenticated',
|
|
40
|
-
input: z.strictObject({ crons: z.array(z.string()).max(24) }),
|
|
41
|
-
output: z.strictObject({ crons: z.array(z.string()) }),
|
|
42
|
-
}),
|
|
43
|
-
schedules: method({
|
|
44
|
-
description: 'List active Service cron expressions.',
|
|
45
|
-
auth: 'authenticated',
|
|
46
|
-
input: z.strictObject({}),
|
|
47
|
-
output: z.array(z.string()),
|
|
48
|
-
}),
|
|
49
|
-
logs: method({
|
|
50
|
-
description: 'Read recent Service runtime logs.',
|
|
51
|
-
auth: 'authenticated',
|
|
52
|
-
input: z.strictObject({
|
|
53
|
-
tail: z.number().int().min(1).max(1_000).optional(),
|
|
54
|
-
since: z.number().int().min(0).optional(),
|
|
55
|
-
}),
|
|
56
|
-
output: z.array(z.strictObject({ id: z.string(), ts: z.number(), level: z.string(), line: z.string() })),
|
|
57
|
-
}),
|
|
58
|
-
delete: method({
|
|
59
|
-
description: 'Delete the provider placement and Service record.',
|
|
60
|
-
auth: 'authenticated',
|
|
61
|
-
input: z.strictObject({}),
|
|
62
|
-
output: z.strictObject({ ok: z.literal(true) }),
|
|
63
|
-
}),
|
|
64
|
-
};
|
|
File without changes
|