@astrale-domains/ai-gateway 0.4.0 → 0.4.2

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.2](https://github.com/astrale-os/domains/compare/ai-gateway-v0.4.1...ai-gateway-v0.4.2) (2026-09-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * consume the published compact schema SDK ([#202](https://github.com/astrale-os/domains/issues/202)) ([ec127c1](https://github.com/astrale-os/domains/commit/ec127c16077c9193e8dc305d67bacbcdbb771865))
9
+
10
+ ## [0.4.1](https://github.com/astrale-os/domains/compare/ai-gateway-v0.4.0...ai-gateway-v0.4.1) (2026-09-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **schema:** infer domain schemas with the released SDK ([#189](https://github.com/astrale-os/domains/issues/189)) ([c6198a1](https://github.com/astrale-os/domains/commit/c6198a188ed97ea747419e5a3367faf5839c3ba4))
16
+
3
17
  ## [0.4.0](https://github.com/astrale-os/domains/compare/ai-gateway-v0.3.2...ai-gateway-v0.4.0) (2026-09-07)
4
18
 
5
19
 
@@ -1,89 +1,38 @@
1
- export declare const AIModel: 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", undefined>, 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", undefined>, 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", undefined>, 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", undefined>, 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", undefined> | 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", undefined>, 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", undefined> | 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", undefined>, never, never>];
1
+ import { z } from 'zod';
2
+ export declare const AIModel: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
3
+ readonly description: "One permissioned upstream model exposed through Cloudflare AI Gateway.";
4
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
5
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">, import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
53
6
  readonly properties: {
54
- readonly modelId: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self", undefined>;
55
- readonly provider: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self", undefined>;
56
- readonly upstreamFormat: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"anthropic" | "openai", "anthropic" | "openai", true, "upstreamFormat", "self", undefined>;
57
- readonly contextWindow: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "contextWindow", "self", undefined>;
58
- readonly maxOutputTokens: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "maxOutputTokens", "self", undefined>;
59
- readonly modality: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
60
- input: string[];
61
- output: string[];
62
- }, {
63
- input: string[];
64
- output: string[];
65
- }, true, "modality", "self", undefined>;
66
- readonly capabilities: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
67
- toolUse: boolean;
68
- vision: boolean;
69
- reasoning: boolean;
70
- fileInput: boolean;
71
- structuredOutput: boolean;
72
- streaming: boolean;
73
- caching: boolean;
74
- }, {
75
- toolUse: boolean;
76
- vision: boolean;
77
- reasoning: boolean;
78
- fileInput: boolean;
79
- structuredOutput: boolean;
80
- streaming: boolean;
81
- caching: boolean;
82
- }, true, "capabilities", "self", undefined>;
83
- readonly pricing: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<Record<string, string>, Record<string, string>, true, "pricing", "self", undefined>;
7
+ modelId: z.ZodString;
8
+ provider: z.ZodEnum<{
9
+ azure: "azure";
10
+ google: "google";
11
+ "workers-ai": "workers-ai";
12
+ }>;
13
+ upstreamFormat: z.ZodEnum<{
14
+ anthropic: "anthropic";
15
+ openai: "openai";
16
+ }>;
17
+ contextWindow: z.ZodNumber;
18
+ maxOutputTokens: z.ZodNumber;
19
+ modality: z.ZodObject<{
20
+ input: z.ZodArray<z.ZodString>;
21
+ output: z.ZodArray<z.ZodString>;
22
+ }, z.core.$strict>;
23
+ capabilities: z.ZodObject<{
24
+ toolUse: z.ZodBoolean;
25
+ vision: z.ZodBoolean;
26
+ reasoning: z.ZodBoolean;
27
+ fileInput: z.ZodBoolean;
28
+ structuredOutput: z.ZodBoolean;
29
+ streaming: z.ZodBoolean;
30
+ caching: z.ZodBoolean;
31
+ }, z.core.$strict>;
32
+ pricing: z.ZodRecord<z.ZodString, z.ZodString>;
84
33
  };
85
34
  readonly methods: {
86
- readonly register: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
35
+ register: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
87
36
  name: string;
88
37
  description?: string | undefined;
89
38
  modelId: string;
@@ -132,7 +81,7 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
132
81
  description: string;
133
82
  };
134
83
  }, "authorized", true, false>>;
135
- readonly invoke: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
84
+ invoke: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
136
85
  path: string;
137
86
  body: string;
138
87
  headers?: Record<string, string> | undefined;
@@ -140,126 +89,20 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
140
89
  }, {
141
90
  readonly mode: 'binary';
142
91
  }, "authorized", false, false>>;
143
- readonly invokeOpenaiFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
92
+ invokeOpenaiFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
144
93
  body: string;
145
94
  }, {
146
95
  readonly mode: 'binary';
147
96
  }, "authorized", false, false>>;
148
- readonly invokeAnthropicFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
97
+ invokeAnthropicFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
149
98
  body: string;
150
99
  }, {
151
100
  readonly mode: 'binary';
152
101
  }, "authorized", false, false>>;
153
- readonly invokeVercelFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
102
+ invokeVercelFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
154
103
  body: string;
155
104
  }, {
156
105
  readonly mode: 'binary';
157
106
  }, "authorized", false, false>>;
158
107
  };
159
- readonly effectiveProperties: (import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
160
- toolUse: boolean;
161
- vision: boolean;
162
- reasoning: boolean;
163
- fileInput: boolean;
164
- structuredOutput: boolean;
165
- streaming: boolean;
166
- caching: boolean;
167
- }, {
168
- toolUse: boolean;
169
- vision: boolean;
170
- reasoning: boolean;
171
- fileInput: boolean;
172
- structuredOutput: boolean;
173
- streaming: boolean;
174
- caching: boolean;
175
- }, true, "capabilities", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "contextWindow", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "maxOutputTokens", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
176
- input: string[];
177
- output: string[];
178
- }, {
179
- input: string[];
180
- output: string[];
181
- }, true, "modality", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<Record<string, string>, Record<string, string>, true, "pricing", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"anthropic" | "openai", "anthropic" | "openai", true, "upstreamFormat", "self", undefined>) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false, never> & {
182
- readonly name: "description";
183
- readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
184
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
185
- readonly name: "createdAt";
186
- readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
187
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
188
- readonly name: "name";
189
- readonly key: "kernel.astrale.ai:class.Named.property.name";
190
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
191
- readonly name: "updatedAt";
192
- readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
193
- });
194
- readonly abstractInstanceMethods: never;
195
- readonly abstractStaticMethods: never;
196
- readonly effectiveInstanceMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
197
- body: string;
198
- }, {
199
- readonly mode: 'binary';
200
- }, "authorized", false, false>>, "invokeVercelFormat", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
201
- path: string;
202
- body: string;
203
- headers?: Record<string, string> | undefined;
204
- contentType?: string | undefined;
205
- }, {
206
- readonly mode: 'binary';
207
- }, "authorized", false, false>>, "invoke", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
208
- body: string;
209
- }, {
210
- readonly mode: 'binary';
211
- }, "authorized", false, false>>, "invokeOpenaiFormat", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
212
- body: string;
213
- }, {
214
- readonly mode: 'binary';
215
- }, "authorized", false, false>>, "invokeAnthropicFormat", "self">;
216
- readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
217
- name: string;
218
- description?: string | undefined;
219
- modelId: string;
220
- provider: "azure" | "google" | "workers-ai";
221
- upstreamFormat: "anthropic" | "openai";
222
- contextWindow: number;
223
- maxOutputTokens: number;
224
- modality: {
225
- input: string[];
226
- output: string[];
227
- };
228
- capabilities: {
229
- toolUse: boolean;
230
- vision: boolean;
231
- reasoning: boolean;
232
- fileInput: boolean;
233
- structuredOutput: boolean;
234
- streaming: boolean;
235
- caching: boolean;
236
- };
237
- pricing: Record<string, string>;
238
- }, {
239
- readonly mode: 'value';
240
- readonly value: {
241
- name: string;
242
- modelId: string;
243
- provider: "azure" | "google" | "workers-ai";
244
- upstreamFormat: "anthropic" | "openai";
245
- contextWindow: number;
246
- maxOutputTokens: number;
247
- modality: {
248
- input: string[];
249
- output: string[];
250
- };
251
- capabilities: {
252
- toolUse: boolean;
253
- vision: boolean;
254
- reasoning: boolean;
255
- fileInput: boolean;
256
- structuredOutput: boolean;
257
- streaming: boolean;
258
- caching: boolean;
259
- };
260
- pricing: Record<string, string>;
261
- id: string;
262
- description: string;
263
- };
264
- }, "authorized", true, false>>, "register", "self">;
265
108
  }>;
@@ -1,96 +1,41 @@
1
1
  import type { schema as language } from '@astrale-os/sdk/schema';
2
2
  import { KernelSchema } from '@astrale-os/sdk/schema';
3
- export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-gateway.astrale.ai", import("@astrale-os/sdk/schema").ResolvedDomainOfInput<"ai-gateway.astrale.ai", {
4
- readonly dependencies: {
5
- kernel: KernelSchema;
6
- };
3
+ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"ai-gateway.astrale.ai", readonly ["kernel.astrale.ai", KernelSchema] | readonly ["ai-gateway.astrale.ai", {
7
4
  readonly classes: {
8
- readonly AIModel: 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", undefined>, 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", undefined>, 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", undefined>, 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", undefined>, 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", undefined> | 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", undefined>, 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", undefined> | 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", undefined>, never, never>];
5
+ readonly AIModel: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
6
+ readonly description: "One permissioned upstream model exposed through Cloudflare AI Gateway.";
7
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
8
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">, import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
60
9
  readonly properties: {
61
- readonly modelId: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self", undefined>;
62
- readonly provider: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self", undefined>;
63
- readonly upstreamFormat: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"anthropic" | "openai", "anthropic" | "openai", true, "upstreamFormat", "self", undefined>;
64
- readonly contextWindow: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "contextWindow", "self", undefined>;
65
- readonly maxOutputTokens: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "maxOutputTokens", "self", undefined>;
66
- readonly modality: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
67
- input: string[];
68
- output: string[];
69
- }, {
70
- input: string[];
71
- output: string[];
72
- }, true, "modality", "self", undefined>;
73
- readonly capabilities: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
74
- toolUse: boolean;
75
- vision: boolean;
76
- reasoning: boolean;
77
- fileInput: boolean;
78
- structuredOutput: boolean;
79
- streaming: boolean;
80
- caching: boolean;
81
- }, {
82
- toolUse: boolean;
83
- vision: boolean;
84
- reasoning: boolean;
85
- fileInput: boolean;
86
- structuredOutput: boolean;
87
- streaming: boolean;
88
- caching: boolean;
89
- }, true, "capabilities", "self", undefined>;
90
- readonly pricing: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<Record<string, string>, Record<string, string>, true, "pricing", "self", undefined>;
10
+ modelId: import("zod").ZodString;
11
+ provider: import("zod").ZodEnum<{
12
+ azure: "azure";
13
+ google: "google";
14
+ "workers-ai": "workers-ai";
15
+ }>;
16
+ upstreamFormat: import("zod").ZodEnum<{
17
+ anthropic: "anthropic";
18
+ openai: "openai";
19
+ }>;
20
+ contextWindow: import("zod").ZodNumber;
21
+ maxOutputTokens: import("zod").ZodNumber;
22
+ modality: import("zod").ZodObject<{
23
+ input: import("zod").ZodArray<import("zod").ZodString>;
24
+ output: import("zod").ZodArray<import("zod").ZodString>;
25
+ }, import("zod/v4/core").$strict>;
26
+ capabilities: import("zod").ZodObject<{
27
+ toolUse: import("zod").ZodBoolean;
28
+ vision: import("zod").ZodBoolean;
29
+ reasoning: import("zod").ZodBoolean;
30
+ fileInput: import("zod").ZodBoolean;
31
+ structuredOutput: import("zod").ZodBoolean;
32
+ streaming: import("zod").ZodBoolean;
33
+ caching: import("zod").ZodBoolean;
34
+ }, import("zod/v4/core").$strict>;
35
+ pricing: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
91
36
  };
92
37
  readonly methods: {
93
- readonly register: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
38
+ register: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
94
39
  name: string;
95
40
  description?: string | undefined;
96
41
  modelId: string;
@@ -139,7 +84,7 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
139
84
  description: string;
140
85
  };
141
86
  }, "authorized", true, false>>;
142
- readonly invoke: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
87
+ invoke: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
143
88
  path: string;
144
89
  body: string;
145
90
  headers?: Record<string, string> | undefined;
@@ -147,128 +92,22 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
147
92
  }, {
148
93
  readonly mode: 'binary';
149
94
  }, "authorized", false, false>>;
150
- readonly invokeOpenaiFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
95
+ invokeOpenaiFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
151
96
  body: string;
152
97
  }, {
153
98
  readonly mode: 'binary';
154
99
  }, "authorized", false, false>>;
155
- readonly invokeAnthropicFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
100
+ invokeAnthropicFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
156
101
  body: string;
157
102
  }, {
158
103
  readonly mode: 'binary';
159
104
  }, "authorized", false, false>>;
160
- readonly invokeVercelFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
105
+ invokeVercelFormat: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
161
106
  body: string;
162
107
  }, {
163
108
  readonly mode: 'binary';
164
109
  }, "authorized", false, false>>;
165
110
  };
166
- readonly effectiveProperties: (import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
167
- toolUse: boolean;
168
- vision: boolean;
169
- reasoning: boolean;
170
- fileInput: boolean;
171
- structuredOutput: boolean;
172
- streaming: boolean;
173
- caching: boolean;
174
- }, {
175
- toolUse: boolean;
176
- vision: boolean;
177
- reasoning: boolean;
178
- fileInput: boolean;
179
- structuredOutput: boolean;
180
- streaming: boolean;
181
- caching: boolean;
182
- }, true, "capabilities", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "contextWindow", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "maxOutputTokens", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
183
- input: string[];
184
- output: string[];
185
- }, {
186
- input: string[];
187
- output: string[];
188
- }, true, "modality", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<Record<string, string>, Record<string, string>, true, "pricing", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"anthropic" | "openai", "anthropic" | "openai", true, "upstreamFormat", "self", undefined>) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false, never> & {
189
- readonly name: "description";
190
- readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
191
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
192
- readonly name: "createdAt";
193
- readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
194
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
195
- readonly name: "name";
196
- readonly key: "kernel.astrale.ai:class.Named.property.name";
197
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
198
- readonly name: "updatedAt";
199
- readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
200
- });
201
- readonly abstractInstanceMethods: never;
202
- readonly abstractStaticMethods: never;
203
- readonly effectiveInstanceMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
204
- body: string;
205
- }, {
206
- readonly mode: 'binary';
207
- }, "authorized", false, false>>, "invokeAnthropicFormat", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
208
- path: string;
209
- body: string;
210
- headers?: Record<string, string> | undefined;
211
- contentType?: string | undefined;
212
- }, {
213
- readonly mode: 'binary';
214
- }, "authorized", false, false>>, "invoke", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
215
- body: string;
216
- }, {
217
- readonly mode: 'binary';
218
- }, "authorized", false, false>>, "invokeOpenaiFormat", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
219
- body: string;
220
- }, {
221
- readonly mode: 'binary';
222
- }, "authorized", false, false>>, "invokeVercelFormat", "self">;
223
- readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
224
- name: string;
225
- description?: string | undefined;
226
- modelId: string;
227
- provider: "azure" | "google" | "workers-ai";
228
- upstreamFormat: "anthropic" | "openai";
229
- contextWindow: number;
230
- maxOutputTokens: number;
231
- modality: {
232
- input: string[];
233
- output: string[];
234
- };
235
- capabilities: {
236
- toolUse: boolean;
237
- vision: boolean;
238
- reasoning: boolean;
239
- fileInput: boolean;
240
- structuredOutput: boolean;
241
- streaming: boolean;
242
- caching: boolean;
243
- };
244
- pricing: Record<string, string>;
245
- }, {
246
- readonly mode: 'value';
247
- readonly value: {
248
- name: string;
249
- modelId: string;
250
- provider: "azure" | "google" | "workers-ai";
251
- upstreamFormat: "anthropic" | "openai";
252
- contextWindow: number;
253
- maxOutputTokens: number;
254
- modality: {
255
- input: string[];
256
- output: string[];
257
- };
258
- capabilities: {
259
- toolUse: boolean;
260
- vision: boolean;
261
- reasoning: boolean;
262
- fileInput: boolean;
263
- structuredOutput: boolean;
264
- streaming: boolean;
265
- caching: boolean;
266
- };
267
- pricing: Record<string, string>;
268
- id: string;
269
- description: string;
270
- };
271
- }, "authorized", true, false>>, "register", "self">;
272
111
  }>;
273
112
  };
274
113
  readonly views: {
@@ -284,6 +123,8 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
284
123
  'claude-opus-5': import("@astrale-os/sdk/schema").CoreNode;
285
124
  };
286
125
  };
287
- }>>;
126
+ }, {
127
+ readonly kernel: "kernel.astrale.ai";
128
+ }]>;
288
129
  export type AIGatewaySchema = typeof schema;
289
130
  export type AIGatewayDomain = language.DomainOf<typeof schema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-domains/ai-gateway",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/astrale-os/domains.git",
@@ -28,7 +28,7 @@
28
28
  "registry": "https://registry.npmjs.org/"
29
29
  },
30
30
  "dependencies": {
31
- "@astrale-os/sdk": "0.5.0-beta.123",
31
+ "@astrale-os/sdk": "0.5.0-beta.128",
32
32
  "zod": "4.4.3"
33
33
  },
34
34
  "devDependencies": {
@@ -36,8 +36,8 @@
36
36
  "@ai-sdk/azure": "^4.0.46",
37
37
  "@ai-sdk/openai": "^4.0.45",
38
38
  "@anthropic-ai/sdk": "0.120.0",
39
- "@astrale-os/adapter-astrale": "0.5.0-beta.119",
40
- "@astrale-os/adapter-cloudflare": "0.5.0-beta.126",
39
+ "@astrale-os/adapter-astrale": "0.5.0-beta.124",
40
+ "@astrale-os/adapter-cloudflare": "0.5.0-beta.131",
41
41
  "@astrale-os/ox": ">=0.1.4 <1.0.0",
42
42
  "@astrale-os/shell": "0.5.0-beta.16",
43
43
  "@astrale-os/shell-react": "0.4.0-beta.15",