@astrale-domains/services 0.2.0

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.
@@ -0,0 +1,172 @@
1
+ import { z } from 'zod';
2
+ export declare const artifact: z.ZodObject<{
3
+ entry: z.ZodString;
4
+ modules: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5
+ contentBase64: z.ZodString;
6
+ name: z.ZodString;
7
+ kind: z.ZodOptional<z.ZodEnum<{
8
+ data: "data";
9
+ esm: "esm";
10
+ text: "text";
11
+ wasm: "wasm";
12
+ }>>;
13
+ }, z.core.$strict>, z.ZodObject<{
14
+ contentBase64Chunks: z.ZodArray<z.ZodString>;
15
+ name: z.ZodString;
16
+ kind: z.ZodOptional<z.ZodEnum<{
17
+ data: "data";
18
+ esm: "esm";
19
+ text: "text";
20
+ wasm: "wasm";
21
+ }>>;
22
+ }, z.core.$strict>]>>;
23
+ }, z.core.$strict>;
24
+ export declare const revisionedDeployment: z.ZodObject<{
25
+ revision: z.ZodString;
26
+ release: z.ZodObject<{
27
+ entry: z.ZodString;
28
+ modules: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
29
+ contentBase64: z.ZodString;
30
+ name: z.ZodString;
31
+ kind: z.ZodOptional<z.ZodEnum<{
32
+ data: "data";
33
+ esm: "esm";
34
+ text: "text";
35
+ wasm: "wasm";
36
+ }>>;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ contentBase64Chunks: z.ZodArray<z.ZodString>;
39
+ name: z.ZodString;
40
+ kind: z.ZodOptional<z.ZodEnum<{
41
+ data: "data";
42
+ esm: "esm";
43
+ text: "text";
44
+ wasm: "wasm";
45
+ }>>;
46
+ }, z.core.$strict>]>>;
47
+ }, z.core.$strict>;
48
+ gateway: z.ZodObject<{
49
+ entry: z.ZodString;
50
+ modules: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
51
+ contentBase64: z.ZodString;
52
+ name: z.ZodString;
53
+ kind: z.ZodOptional<z.ZodEnum<{
54
+ data: "data";
55
+ esm: "esm";
56
+ text: "text";
57
+ wasm: "wasm";
58
+ }>>;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ contentBase64Chunks: z.ZodArray<z.ZodString>;
61
+ name: z.ZodString;
62
+ kind: z.ZodOptional<z.ZodEnum<{
63
+ data: "data";
64
+ esm: "esm";
65
+ text: "text";
66
+ wasm: "wasm";
67
+ }>>;
68
+ }, z.core.$strict>]>>;
69
+ }, z.core.$strict>;
70
+ }, z.core.$strict>;
71
+ export declare const deployServiceInput: z.ZodObject<{
72
+ path: z.ZodString;
73
+ name: z.ZodOptional<z.ZodString>;
74
+ entry: z.ZodOptional<z.ZodString>;
75
+ modules: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
76
+ contentBase64: z.ZodString;
77
+ name: z.ZodString;
78
+ kind: z.ZodOptional<z.ZodEnum<{
79
+ data: "data";
80
+ esm: "esm";
81
+ text: "text";
82
+ wasm: "wasm";
83
+ }>>;
84
+ }, z.core.$strict>, z.ZodObject<{
85
+ contentBase64Chunks: z.ZodArray<z.ZodString>;
86
+ name: z.ZodString;
87
+ kind: z.ZodOptional<z.ZodEnum<{
88
+ data: "data";
89
+ esm: "esm";
90
+ text: "text";
91
+ wasm: "wasm";
92
+ }>>;
93
+ }, z.core.$strict>]>>>;
94
+ revisioned: z.ZodOptional<z.ZodObject<{
95
+ revision: z.ZodString;
96
+ release: z.ZodObject<{
97
+ entry: z.ZodString;
98
+ modules: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
99
+ contentBase64: z.ZodString;
100
+ name: z.ZodString;
101
+ kind: z.ZodOptional<z.ZodEnum<{
102
+ data: "data";
103
+ esm: "esm";
104
+ text: "text";
105
+ wasm: "wasm";
106
+ }>>;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ contentBase64Chunks: z.ZodArray<z.ZodString>;
109
+ name: z.ZodString;
110
+ kind: z.ZodOptional<z.ZodEnum<{
111
+ data: "data";
112
+ esm: "esm";
113
+ text: "text";
114
+ wasm: "wasm";
115
+ }>>;
116
+ }, z.core.$strict>]>>;
117
+ }, z.core.$strict>;
118
+ gateway: z.ZodObject<{
119
+ entry: z.ZodString;
120
+ modules: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
121
+ contentBase64: z.ZodString;
122
+ name: z.ZodString;
123
+ kind: z.ZodOptional<z.ZodEnum<{
124
+ data: "data";
125
+ esm: "esm";
126
+ text: "text";
127
+ wasm: "wasm";
128
+ }>>;
129
+ }, z.core.$strict>, z.ZodObject<{
130
+ contentBase64Chunks: z.ZodArray<z.ZodString>;
131
+ name: z.ZodString;
132
+ kind: z.ZodOptional<z.ZodEnum<{
133
+ data: "data";
134
+ esm: "esm";
135
+ text: "text";
136
+ wasm: "wasm";
137
+ }>>;
138
+ }, z.core.$strict>]>>;
139
+ }, z.core.$strict>;
140
+ }, z.core.$strict>>;
141
+ compatibilityDate: z.ZodOptional<z.ZodString>;
142
+ compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ serviceBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
+ name: z.ZodString;
145
+ service: z.ZodString;
146
+ }, z.core.$strict>>>;
147
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
148
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
149
+ assets: z.ZodOptional<z.ZodObject<{
150
+ files: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
151
+ contentBase64: z.ZodString;
152
+ path: z.ZodString;
153
+ contentType: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strict>, z.ZodObject<{
155
+ contentBase64Chunks: z.ZodArray<z.ZodString>;
156
+ path: z.ZodString;
157
+ contentType: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strict>]>>;
159
+ notFound: z.ZodOptional<z.ZodEnum<{
160
+ "404-page": "404-page";
161
+ none: "none";
162
+ "single-page-application": "single-page-application";
163
+ }>>;
164
+ runWorkerFirst: z.ZodOptional<z.ZodBoolean>;
165
+ htmlHandling: z.ZodOptional<z.ZodLiteral<"none">>;
166
+ }, z.core.$strict>>;
167
+ limits: z.ZodOptional<z.ZodObject<{
168
+ cpuMs: z.ZodOptional<z.ZodNumber>;
169
+ subrequests: z.ZodOptional<z.ZodNumber>;
170
+ }, z.core.$strict>>;
171
+ }, z.core.$strict>;
172
+ export type DeployServiceInput = z.infer<typeof deployServiceInput>;
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ import { assetBundle } from './asset.js';
3
+ import { resourceLimits } from './limits.js';
4
+ import { artifactModule } from './module.js';
5
+ export const artifact = z.strictObject({
6
+ entry: z.string().min(1).max(256),
7
+ modules: z.array(artifactModule).min(1).max(40),
8
+ });
9
+ export const revisionedDeployment = z.strictObject({
10
+ revision: z.string().min(1).max(80),
11
+ release: artifact,
12
+ gateway: artifact,
13
+ });
14
+ export const deployServiceInput = z.strictObject({
15
+ path: z.string().min(1).max(2_048),
16
+ name: z.string().min(1).max(256).optional(),
17
+ entry: z.string().min(1).max(256).optional(),
18
+ modules: z.array(artifactModule).min(1).max(40).optional(),
19
+ revisioned: revisionedDeployment.optional(),
20
+ compatibilityDate: z.string().min(1).max(32).optional(),
21
+ compatibilityFlags: z.array(z.string().min(1).max(128)).max(64).optional(),
22
+ serviceBindings: z
23
+ .array(z.strictObject({
24
+ name: z.string().min(1).max(64),
25
+ service: z.string().min(1).max(128),
26
+ }))
27
+ .max(32)
28
+ .optional(),
29
+ vars: z.record(z.string().max(256), z.string().max(64 * 1024)).optional(),
30
+ secrets: z.record(z.string().max(256), z.string().max(64 * 1024)).optional(),
31
+ assets: assetBundle.optional(),
32
+ limits: resourceLimits,
33
+ });
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const deployedFunction: z.ZodObject<{
3
+ id: z.ZodString;
4
+ path: z.ZodString;
5
+ ref: z.ZodString;
6
+ }, z.core.$strict>;
7
+ export declare const deployServiceOutput: z.ZodObject<{
8
+ path: z.ZodString;
9
+ url: z.ZodString;
10
+ digest: z.ZodString;
11
+ revision: z.ZodOptional<z.ZodString>;
12
+ state: z.ZodEnum<{
13
+ deploying: "deploying";
14
+ failed: "failed";
15
+ ready: "ready";
16
+ }>;
17
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ functions: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodString;
20
+ path: z.ZodString;
21
+ ref: z.ZodString;
22
+ }, z.core.$strict>>;
23
+ }, z.core.$strict>;
24
+ export type DeployServiceOutput = z.infer<typeof deployServiceOutput>;
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export const deployedFunction = z.strictObject({
3
+ id: z.string(),
4
+ path: z.string(),
5
+ ref: z.string(),
6
+ });
7
+ export const deployServiceOutput = z.strictObject({
8
+ path: z.string(),
9
+ url: z.string(),
10
+ digest: z.string(),
11
+ revision: z.string().min(1).max(80).optional(),
12
+ state: z.enum(['deploying', 'ready', 'failed']),
13
+ error: z.string().nullable().optional(),
14
+ functions: z.array(deployedFunction),
15
+ });
@@ -0,0 +1,5 @@
1
+ export { schema } from './application/index.js';
2
+ export type { ServicesDomain, ServicesSchema } from './application/index.js';
3
+ export { artifact, artifactModule, assetBundle, assetFile, deployedFunction, deployServiceInput, deployServiceOutput, resourceLimits, revisionedDeployment, } from './deployment/index.js';
4
+ export type { ArtifactModule, AssetBundle, DeployServiceInput, DeployServiceOutput, ResourceLimits, } from './deployment/index.js';
5
+ export { CloudflareWorker, service_owned_by } from './service/index.js';
@@ -0,0 +1,3 @@
1
+ export { schema } from './application/index.js';
2
+ export { artifact, artifactModule, assetBundle, assetFile, deployedFunction, deployServiceInput, deployServiceOutput, resourceLimits, revisionedDeployment, } from './deployment/index.js';
3
+ export { CloudflareWorker, service_owned_by } from './service/index.js';
@@ -0,0 +1,340 @@
1
+ export declare const CloudflareWorker: import("@astrale-os/sdk/schema").NodeClass<{
2
+ readonly depth: 1;
3
+ readonly abstract: false;
4
+ readonly extends: readonly [import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
5
+ readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Named"> & {
6
+ readonly origin: "kernel.astrale.ai";
7
+ };
8
+ readonly kind: 'node';
9
+ readonly abstract: true;
10
+ }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Named"> & {
11
+ readonly origin: "kernel.astrale.ai";
12
+ }, "kernel.astrale.ai:class.Named", readonly [import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
13
+ readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
14
+ readonly origin: "kernel.astrale.ai";
15
+ };
16
+ readonly kind: 'node';
17
+ readonly abstract: true;
18
+ }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
19
+ readonly origin: "kernel.astrale.ai";
20
+ }, "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 & {
21
+ readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Descriptable"> & {
22
+ readonly origin: "kernel.astrale.ai";
23
+ };
24
+ readonly kind: 'node';
25
+ readonly abstract: true;
26
+ }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Descriptable"> & {
27
+ readonly origin: "kernel.astrale.ai";
28
+ }, "kernel.astrale.ai:class.Descriptable", readonly [import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
29
+ readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
30
+ readonly origin: "kernel.astrale.ai";
31
+ };
32
+ readonly kind: 'node';
33
+ readonly abstract: true;
34
+ }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
35
+ readonly origin: "kernel.astrale.ai";
36
+ }, "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 & {
37
+ readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Timestamped"> & {
38
+ readonly origin: "kernel.astrale.ai";
39
+ };
40
+ readonly kind: 'node';
41
+ readonly abstract: true;
42
+ }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Timestamped"> & {
43
+ readonly origin: "kernel.astrale.ai";
44
+ }, "kernel.astrale.ai:class.Timestamped", readonly [import("@astrale-os/sdk/schema").ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
45
+ readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
46
+ readonly origin: "kernel.astrale.ai";
47
+ };
48
+ readonly kind: 'node';
49
+ readonly abstract: true;
50
+ }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
51
+ readonly origin: "kernel.astrale.ai";
52
+ }, "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>];
53
+ readonly properties: {
54
+ readonly providerKey: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerKey", "self">;
55
+ readonly providerName: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerName", "self">;
56
+ readonly deploymentMode: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"plain" | "revisioned", "plain" | "revisioned", true, "deploymentMode", "self">;
57
+ readonly url: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "url", "self">;
58
+ readonly state: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"deploying" | "failed" | "ready", "deploying" | "failed" | "ready", true, "state", "self">;
59
+ readonly digest: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "digest", "self">;
60
+ readonly revision: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "revision", "self">;
61
+ readonly coordinate: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "coordinate", "self">;
62
+ readonly deploymentReceipt: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "deploymentReceipt", "self">;
63
+ readonly error: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "error", "self">;
64
+ };
65
+ readonly methods: {
66
+ readonly deploy: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
67
+ path: string;
68
+ name?: string | undefined;
69
+ entry?: string | undefined;
70
+ modules?: ({
71
+ contentBase64: string;
72
+ name: string;
73
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
74
+ } | {
75
+ contentBase64Chunks: string[];
76
+ name: string;
77
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
78
+ })[] | undefined;
79
+ revisioned?: {
80
+ revision: string;
81
+ release: {
82
+ entry: string;
83
+ modules: ({
84
+ contentBase64: string;
85
+ name: string;
86
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
87
+ } | {
88
+ contentBase64Chunks: string[];
89
+ name: string;
90
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
91
+ })[];
92
+ };
93
+ gateway: {
94
+ entry: string;
95
+ modules: ({
96
+ contentBase64: string;
97
+ name: string;
98
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
99
+ } | {
100
+ contentBase64Chunks: string[];
101
+ name: string;
102
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
103
+ })[];
104
+ };
105
+ } | undefined;
106
+ compatibilityDate?: string | undefined;
107
+ compatibilityFlags?: string[] | undefined;
108
+ serviceBindings?: {
109
+ name: string;
110
+ service: string;
111
+ }[] | undefined;
112
+ vars?: Record<string, string> | undefined;
113
+ secrets?: Record<string, string> | undefined;
114
+ assets?: {
115
+ files: ({
116
+ contentBase64: string;
117
+ path: string;
118
+ contentType?: string | undefined;
119
+ } | {
120
+ contentBase64Chunks: string[];
121
+ path: string;
122
+ contentType?: string | undefined;
123
+ })[];
124
+ notFound?: "404-page" | "none" | "single-page-application" | undefined;
125
+ runWorkerFirst?: boolean | undefined;
126
+ htmlHandling?: "none" | undefined;
127
+ } | undefined;
128
+ limits?: {
129
+ cpuMs?: number | undefined;
130
+ subrequests?: number | undefined;
131
+ } | undefined;
132
+ }, {
133
+ readonly mode: 'value';
134
+ readonly value: {
135
+ path: string;
136
+ url: string;
137
+ digest: string;
138
+ revision?: string | undefined;
139
+ state: "deploying" | "failed" | "ready";
140
+ error?: string | null | undefined;
141
+ functions: {
142
+ id: string;
143
+ path: string;
144
+ ref: string;
145
+ }[];
146
+ };
147
+ }, "authenticated", true, "default">>;
148
+ readonly setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
149
+ name: string;
150
+ value: string;
151
+ }, {
152
+ readonly mode: 'value';
153
+ readonly value: {
154
+ name: string;
155
+ };
156
+ }, "authenticated", false, "default">>;
157
+ readonly deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
158
+ name: string;
159
+ }, {
160
+ readonly mode: 'value';
161
+ readonly value: {
162
+ ok: true;
163
+ };
164
+ }, "authenticated", false, "default">>;
165
+ readonly secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
166
+ readonly mode: 'value';
167
+ readonly value: string[];
168
+ }, "authenticated", false, "default">>;
169
+ readonly setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
170
+ crons: string[];
171
+ }, {
172
+ readonly mode: 'value';
173
+ readonly value: {
174
+ crons: string[];
175
+ };
176
+ }, "authenticated", false, "default">>;
177
+ readonly schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
178
+ readonly mode: 'value';
179
+ readonly value: string[];
180
+ }, "authenticated", false, "default">>;
181
+ readonly logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
182
+ tail?: number | undefined;
183
+ since?: number | undefined;
184
+ }, {
185
+ readonly mode: 'value';
186
+ readonly value: {
187
+ id: string;
188
+ ts: number;
189
+ level: string;
190
+ line: string;
191
+ }[];
192
+ }, "authenticated", false, "default">>;
193
+ readonly delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
194
+ readonly mode: 'value';
195
+ readonly value: {
196
+ ok: true;
197
+ };
198
+ }, "authenticated", false, "default">>;
199
+ };
200
+ 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> & {
201
+ readonly name: "description";
202
+ readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
203
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
204
+ readonly name: "createdAt";
205
+ readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
206
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
207
+ readonly name: "name";
208
+ readonly key: "kernel.astrale.ai:class.Named.property.name";
209
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
210
+ readonly name: "updatedAt";
211
+ readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
212
+ });
213
+ readonly effectiveInstanceMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
214
+ readonly mode: 'value';
215
+ readonly value: string[];
216
+ }, "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>, {
217
+ readonly mode: 'value';
218
+ readonly value: string[];
219
+ }, "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>, {
220
+ readonly mode: 'value';
221
+ readonly value: {
222
+ ok: true;
223
+ };
224
+ }, "authenticated", false, "default">>, "delete", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
225
+ name: string;
226
+ value: string;
227
+ }, {
228
+ readonly mode: 'value';
229
+ readonly value: {
230
+ name: string;
231
+ };
232
+ }, "authenticated", false, "default">>, "setSecret", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
233
+ name: string;
234
+ }, {
235
+ readonly mode: 'value';
236
+ readonly value: {
237
+ ok: true;
238
+ };
239
+ }, "authenticated", false, "default">>, "deleteSecret", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
240
+ crons: string[];
241
+ }, {
242
+ readonly mode: 'value';
243
+ readonly value: {
244
+ crons: string[];
245
+ };
246
+ }, "authenticated", false, "default">>, "setSchedule", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
247
+ tail?: number | undefined;
248
+ since?: number | undefined;
249
+ }, {
250
+ readonly mode: 'value';
251
+ readonly value: {
252
+ id: string;
253
+ ts: number;
254
+ level: string;
255
+ line: string;
256
+ }[];
257
+ }, "authenticated", false, "default">>, "logs", "self">;
258
+ readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
259
+ path: string;
260
+ name?: string | undefined;
261
+ entry?: string | undefined;
262
+ modules?: ({
263
+ contentBase64: string;
264
+ name: string;
265
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
266
+ } | {
267
+ contentBase64Chunks: string[];
268
+ name: string;
269
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
270
+ })[] | undefined;
271
+ revisioned?: {
272
+ revision: string;
273
+ release: {
274
+ entry: string;
275
+ modules: ({
276
+ contentBase64: string;
277
+ name: string;
278
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
279
+ } | {
280
+ contentBase64Chunks: string[];
281
+ name: string;
282
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
283
+ })[];
284
+ };
285
+ gateway: {
286
+ entry: string;
287
+ modules: ({
288
+ contentBase64: string;
289
+ name: string;
290
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
291
+ } | {
292
+ contentBase64Chunks: string[];
293
+ name: string;
294
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
295
+ })[];
296
+ };
297
+ } | undefined;
298
+ compatibilityDate?: string | undefined;
299
+ compatibilityFlags?: string[] | undefined;
300
+ serviceBindings?: {
301
+ name: string;
302
+ service: string;
303
+ }[] | undefined;
304
+ vars?: Record<string, string> | undefined;
305
+ secrets?: Record<string, string> | undefined;
306
+ assets?: {
307
+ files: ({
308
+ contentBase64: string;
309
+ path: string;
310
+ contentType?: string | undefined;
311
+ } | {
312
+ contentBase64Chunks: string[];
313
+ path: string;
314
+ contentType?: string | undefined;
315
+ })[];
316
+ notFound?: "404-page" | "none" | "single-page-application" | undefined;
317
+ runWorkerFirst?: boolean | undefined;
318
+ htmlHandling?: "none" | undefined;
319
+ } | undefined;
320
+ limits?: {
321
+ cpuMs?: number | undefined;
322
+ subrequests?: number | undefined;
323
+ } | undefined;
324
+ }, {
325
+ readonly mode: 'value';
326
+ readonly value: {
327
+ path: string;
328
+ url: string;
329
+ digest: string;
330
+ revision?: string | undefined;
331
+ state: "deploying" | "failed" | "ready";
332
+ error?: string | null | undefined;
333
+ functions: {
334
+ id: string;
335
+ path: string;
336
+ ref: string;
337
+ }[];
338
+ };
339
+ }, "authenticated", true, "default">>, "deploy", "self">;
340
+ }>;
@@ -0,0 +1,22 @@
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
+ });
@@ -0,0 +1,4 @@
1
+ export { CloudflareWorker } from './class.js';
2
+ export { serviceMethods } from './methods.js';
3
+ export { ObserveService, TraverseOwnedService } from './policies.js';
4
+ export { service_owned_by } from './relationships.js';
@@ -0,0 +1,4 @@
1
+ export { CloudflareWorker } from './class.js';
2
+ export { serviceMethods } from './methods.js';
3
+ export { ObserveService, TraverseOwnedService } from './policies.js';
4
+ export { service_owned_by } from './relationships.js';