@astrale-domains/services 0.2.3 → 0.2.4

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/schema/index.d.ts +3 -3
  3. package/dist/schema/index.js +2 -2
  4. package/dist/schema/{service/cloudflare-worker-class.d.ts → modules/service/classes/cloudflare-worker.d.ts} +1706 -1530
  5. package/dist/schema/{service/cloudflare-worker-class.js → modules/service/classes/cloudflare-worker.js} +2 -2
  6. package/dist/schema/modules/service/classes/index.d.ts +3 -0
  7. package/dist/schema/modules/service/classes/index.js +3 -0
  8. package/dist/schema/{service/service-owned-by-edge-class.js → modules/service/classes/service-owned-by.js} +2 -2
  9. package/dist/schema/{service/service-class.d.ts → modules/service/classes/service.d.ts} +40 -48
  10. package/dist/schema/{service/service-class.js → modules/service/classes/service.js} +3 -3
  11. package/dist/schema/{service/methods/delete-secret.js → modules/service/functions/delete-service-secret.js} +1 -2
  12. package/dist/schema/{service/methods → modules/service/functions}/delete-service.js +1 -1
  13. package/dist/schema/{service/methods → modules/service/functions}/deploy-cloudflare-worker.js +1 -1
  14. package/dist/schema/{service/methods → modules/service/functions}/index.d.ts +1 -1
  15. package/dist/schema/{service/methods → modules/service/functions}/index.js +1 -1
  16. package/dist/schema/{service/methods → modules/service/functions}/list-service-secret-names.js +1 -1
  17. package/dist/schema/{service/methods → modules/service/functions}/set-service-secret.js +1 -2
  18. package/dist/schema/modules/service/index.d.ts +5 -0
  19. package/dist/schema/modules/service/index.js +4 -0
  20. package/dist/schema/modules/service/policies/index.d.ts +2 -0
  21. package/dist/schema/modules/service/policies/index.js +2 -0
  22. package/dist/schema/modules/service/policies/observe-service.d.ts +2 -0
  23. package/dist/schema/modules/service/policies/observe-service.js +7 -0
  24. package/dist/schema/{service/policies.d.ts → modules/service/policies/traverse-owned-service.d.ts} +0 -2
  25. package/dist/schema/{service/policies.js → modules/service/policies/traverse-owned-service.js} +1 -6
  26. package/dist/schema/{deployment/request.js → modules/service/types/deploy-service-input.js} +3 -3
  27. package/dist/schema/{deployment/result.js → modules/service/types/deploy-service-output.js} +1 -1
  28. package/dist/schema/modules/service/types/index.d.ts +16 -0
  29. package/dist/schema/modules/service/types/index.js +10 -0
  30. package/dist/schema/{deployment/module.js → modules/service/types/service-deployment-artifact-module.js} +1 -1
  31. package/dist/schema/{deployment/asset.js → modules/service/types/service-deployment-assets.js} +1 -1
  32. package/dist/schema/modules/service/types/service-lifecycle.d.ts +8 -0
  33. package/dist/schema/modules/service/types/service-lifecycle.js +2 -0
  34. package/dist/schema/modules/service/types/service-secret-name.d.ts +2 -0
  35. package/dist/schema/modules/service/types/service-secret-operation-rejection.d.ts +9 -0
  36. package/dist/schema/schema.d.ts +1489 -1319
  37. package/dist/schema/schema.js +1 -1
  38. package/package.json +6 -3
  39. package/dist/schema/deployment/index.d.ts +0 -13
  40. package/dist/schema/deployment/index.js +0 -7
  41. package/dist/schema/service/index.d.ts +0 -5
  42. package/dist/schema/service/index.js +0 -5
  43. package/dist/schema/{service/service-owned-by-edge-class.d.ts → modules/service/classes/service-owned-by.d.ts} +0 -0
  44. package/dist/schema/{service/methods/delete-secret.d.ts → modules/service/functions/delete-service-secret.d.ts} +0 -0
  45. package/dist/schema/{service/methods → modules/service/functions}/delete-service.d.ts +0 -0
  46. package/dist/schema/{service/methods → modules/service/functions}/deploy-cloudflare-worker.d.ts +0 -0
  47. package/dist/schema/{service/methods → modules/service/functions}/list-service-logs.d.ts +0 -0
  48. package/dist/schema/{service/methods → modules/service/functions}/list-service-logs.js +0 -0
  49. package/dist/schema/{service/methods → modules/service/functions}/list-service-schedules.d.ts +0 -0
  50. package/dist/schema/{service/methods → modules/service/functions}/list-service-schedules.js +0 -0
  51. package/dist/schema/{service/methods → modules/service/functions}/list-service-secret-names.d.ts +0 -0
  52. package/dist/schema/{service/methods → modules/service/functions}/replace-service-schedules.d.ts +0 -0
  53. package/dist/schema/{service/methods → modules/service/functions}/replace-service-schedules.js +0 -0
  54. package/dist/schema/{service/methods → modules/service/functions}/set-service-secret.d.ts +2 -2
  55. /package/dist/schema/{deployment/request.d.ts → modules/service/types/deploy-service-input.d.ts} +0 -0
  56. /package/dist/schema/{deployment/result.d.ts → modules/service/types/deploy-service-output.d.ts} +0 -0
  57. /package/dist/schema/{deployment/module.d.ts → modules/service/types/service-deployment-artifact-module.d.ts} +0 -0
  58. /package/dist/schema/{deployment/asset.d.ts → modules/service/types/service-deployment-assets.d.ts} +0 -0
  59. /package/dist/schema/{deployment/content.d.ts → modules/service/types/service-deployment-content.d.ts} +0 -0
  60. /package/dist/schema/{deployment/content.js → modules/service/types/service-deployment-content.js} +0 -0
  61. /package/dist/schema/{deployment/deployment-rejection.d.ts → modules/service/types/service-deployment-rejection.d.ts} +0 -0
  62. /package/dist/schema/{deployment/deployment-rejection.js → modules/service/types/service-deployment-rejection.js} +0 -0
  63. /package/dist/schema/{deployment/limits.d.ts → modules/service/types/service-deployment-resource-limits.d.ts} +0 -0
  64. /package/dist/schema/{deployment/limits.js → modules/service/types/service-deployment-resource-limits.js} +0 -0
  65. /package/dist/schema/{service/methods/secret-name.js → modules/service/types/service-secret-name.js} +0 -0
  66. /package/dist/schema/{service/methods/secret-operation-rejection.js → modules/service/types/service-secret-operation-rejection.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { nodeClass, property } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
- import { deployCloudflareWorker } from './methods/index.js';
4
- import { Service } from './service-class.js';
3
+ import { deployCloudflareWorker } from '../functions/index.js';
4
+ import { Service } from './service.js';
5
5
  export const CloudflareWorker = nodeClass({
6
6
  description: 'One Service placed in a Cloudflare Workers dispatch namespace.',
7
7
  extends: [Service],
@@ -0,0 +1,3 @@
1
+ export { CloudflareWorker } from './cloudflare-worker.js';
2
+ export { Service } from './service.js';
3
+ export { service_owned_by } from './service-owned-by.js';
@@ -0,0 +1,3 @@
1
+ export { CloudflareWorker } from './cloudflare-worker.js';
2
+ export { Service } from './service.js';
3
+ export { service_owned_by } from './service-owned-by.js';
@@ -1,6 +1,6 @@
1
1
  import { K, edgeClass } from '@astrale-os/sdk/schema';
2
- import { TraverseOwnedService } from './policies.js';
3
- import { Service } from './service-class.js';
2
+ import { TraverseOwnedService } from '../policies/index.js';
3
+ import { Service } from './service.js';
4
4
  export const service_owned_by = edgeClass.directed({
5
5
  description: 'The Identity that owns and may manage one Service.',
6
6
  source: { as: 'owner', accepts: [K.classes.Identity], outgoing: '0..*' },
@@ -1,11 +1,3 @@
1
- import { z } from 'zod';
2
- export declare const serviceLifecycle: z.ZodEnum<{
3
- deleting: "deleting";
4
- deploying: "deploying";
5
- failed: "failed";
6
- ready: "ready";
7
- reconciling: "reconciling";
8
- }>;
9
1
  /** Provider-neutral deployed resource. Provider implementation versions are deliberately external. */
10
2
  export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
11
3
  readonly depth: 1;
@@ -26,7 +18,7 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
26
18
  readonly abstract: true;
27
19
  }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
28
20
  readonly origin: "kernel.astrale.ai";
29
- }, "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
+ }, "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 & {
30
22
  readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Descriptable"> & {
31
23
  readonly origin: "kernel.astrale.ai";
32
24
  };
@@ -42,7 +34,7 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
42
34
  readonly abstract: true;
43
35
  }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
44
36
  readonly origin: "kernel.astrale.ai";
45
- }, "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
+ }, "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 & {
46
38
  readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Timestamped"> & {
47
39
  readonly origin: "kernel.astrale.ai";
48
40
  };
@@ -58,29 +50,29 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
58
50
  readonly abstract: true;
59
51
  }, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
60
52
  readonly origin: "kernel.astrale.ai";
61
- }, "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
+ }, "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>];
62
54
  readonly properties: {
63
- readonly providerKey: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerKey", "self">;
64
- readonly providerName: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerName", "self">;
65
- readonly serviceKey: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "serviceKey", "self">;
66
- readonly url: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "url", "self">;
67
- readonly state: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"deleting" | "deploying" | "failed" | "ready" | "reconciling", "deleting" | "deploying" | "failed" | "ready" | "reconciling", true, "state", "self">;
68
- readonly digest: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "digest", "self">;
69
- readonly revision: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "revision", "self">;
70
- readonly deploymentReceipt: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "deploymentReceipt", "self">;
71
- readonly operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<import("@astrale-os/sdk/schema").Value, import("@astrale-os/sdk/schema").Value, false, "operationExpiresAt", "self">;
72
- readonly hostedIssuer: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedIssuer", "self">;
73
- readonly hostedOrigin: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedOrigin", "self">;
74
- readonly hostedRevision: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedRevision", "self">;
75
- readonly hostedPublicationEtag: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedPublicationEtag", "self">;
55
+ readonly providerKey: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerKey", "self", undefined>;
56
+ readonly providerName: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerName", "self", undefined>;
57
+ readonly serviceKey: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "serviceKey", "self", undefined>;
58
+ readonly url: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "url", "self", never>;
59
+ readonly state: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"deleting" | "deploying" | "failed" | "ready" | "reconciling", "deleting" | "deploying" | "failed" | "ready" | "reconciling", true, "state", "self", undefined>;
60
+ readonly digest: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "digest", "self", never>;
61
+ readonly revision: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "revision", "self", never>;
62
+ readonly deploymentReceipt: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "deploymentReceipt", "self", never>;
63
+ readonly operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<import("@astrale-os/sdk/schema").Value, import("@astrale-os/sdk/schema").Value, false, "operationExpiresAt", "self", never>;
64
+ readonly hostedIssuer: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedIssuer", "self", never>;
65
+ readonly hostedOrigin: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedOrigin", "self", never>;
66
+ readonly hostedRevision: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedRevision", "self", never>;
67
+ readonly hostedPublicationEtag: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedPublicationEtag", "self", never>;
76
68
  readonly hostedFunctions: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
77
69
  ref: string;
78
70
  path: string;
79
71
  }[], {
80
72
  ref: string;
81
73
  path: string;
82
- }[], false, "hostedFunctions", "self">;
83
- readonly error: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "error", "self">;
74
+ }[], false, "hostedFunctions", "self", never>;
75
+ readonly error: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "error", "self", never>;
84
76
  };
85
77
  readonly methods: {
86
78
  readonly setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
@@ -89,10 +81,10 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
89
81
  }, {
90
82
  readonly mode: 'value';
91
83
  readonly value: {
84
+ name: string;
85
+ } | {
92
86
  kind: "rejected";
93
87
  reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
94
- } | {
95
- name: string;
96
88
  };
97
89
  }, "authenticated", false, "default">>;
98
90
  readonly deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
@@ -147,22 +139,22 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
147
139
  };
148
140
  }, "authenticated", false, "default">>;
149
141
  };
150
- readonly effectiveProperties: (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<{
142
+ readonly effectiveProperties: (import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "deploymentReceipt", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "digest", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "error", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
151
143
  ref: string;
152
144
  path: string;
153
145
  }[], {
154
146
  ref: string;
155
147
  path: string;
156
- }[], false, "hostedFunctions", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedIssuer", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedOrigin", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedPublicationEtag", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedRevision", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<import("@astrale-os/sdk/schema").Value, import("@astrale-os/sdk/schema").Value, false, "operationExpiresAt", "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<string, string, true, "serviceKey", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"deleting" | "deploying" | "failed" | "ready" | "reconciling", "deleting" | "deploying" | "failed" | "ready" | "reconciling", 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> & {
148
+ }[], false, "hostedFunctions", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedIssuer", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedOrigin", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedPublicationEtag", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedRevision", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<import("@astrale-os/sdk/schema").Value, import("@astrale-os/sdk/schema").Value, false, "operationExpiresAt", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerKey", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerName", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "revision", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "serviceKey", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"deleting" | "deploying" | "failed" | "ready" | "reconciling", "deleting" | "deploying" | "failed" | "ready" | "reconciling", true, "state", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "url", "self", never>) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false, never> & {
157
149
  readonly name: "description";
158
150
  readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
159
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
151
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
160
152
  readonly name: "createdAt";
161
153
  readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
162
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
154
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
163
155
  readonly name: "name";
164
156
  readonly key: "kernel.astrale.ai:class.Named.property.name";
165
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
157
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
166
158
  readonly name: "updatedAt";
167
159
  readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
168
160
  });
@@ -181,26 +173,15 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
181
173
  retryAfterMs: number;
182
174
  };
183
175
  }, "authenticated", false, "default">>, "delete", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
184
- tail?: number | undefined;
185
- since?: number | undefined;
186
- }, {
187
- readonly mode: 'value';
188
- readonly value: {
189
- id: string;
190
- ts: number;
191
- level: string;
192
- line: string;
193
- }[];
194
- }, "authenticated", false, "default">>, "logs", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
195
176
  name: string;
196
177
  value: string;
197
178
  }, {
198
179
  readonly mode: 'value';
199
180
  readonly value: {
181
+ name: string;
182
+ } | {
200
183
  kind: "rejected";
201
184
  reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
202
- } | {
203
- name: string;
204
185
  };
205
186
  }, "authenticated", false, "default">>, "setSecret", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
206
187
  name: string;
@@ -222,6 +203,17 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
222
203
  kind: "rejected";
223
204
  reason: "invalid-schedule" | "service-unavailable";
224
205
  };
225
- }, "authenticated", false, "default">>, "setSchedule", "self">;
206
+ }, "authenticated", false, "default">>, "setSchedule", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
207
+ tail?: number | undefined;
208
+ since?: number | undefined;
209
+ }, {
210
+ readonly mode: 'value';
211
+ readonly value: {
212
+ id: string;
213
+ ts: number;
214
+ level: string;
215
+ line: string;
216
+ }[];
217
+ }, "authenticated", false, "default">>, "logs", "self">;
226
218
  readonly effectiveStaticMethods: never;
227
- }> & import("@astrale-os/sdk/schema").StateClass<Readonly<Omit<Readonly<Record<never, never>>, never> & {}>>;
219
+ }>;
@@ -1,8 +1,8 @@
1
1
  import { K, nodeClass, property, schema as valueSchema } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
- import { deleteService, deleteServiceSecret, listServiceLogs, listServiceSchedules, listServiceSecretNames, replaceServiceSchedules, setServiceSecret, } from './methods/index.js';
4
- import { ObserveService } from './policies.js';
5
- export const serviceLifecycle = z.enum(['deploying', 'reconciling', 'ready', 'failed', 'deleting']);
3
+ import { deleteService, deleteServiceSecret, listServiceLogs, listServiceSchedules, listServiceSecretNames, replaceServiceSchedules, setServiceSecret, } from '../functions/index.js';
4
+ import { ObserveService } from '../policies/index.js';
5
+ import { serviceLifecycle } from '../types/index.js';
6
6
  const digest = z
7
7
  .string()
8
8
  .length(71)
@@ -1,7 +1,6 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
- import { secretName } from './secret-name.js';
4
- import { secretOperationRejection } from './secret-operation-rejection.js';
3
+ import { secretName, secretOperationRejection } from '../types/index.js';
5
4
  export const deleteServiceSecret = method({
6
5
  description: 'Delete one write-only Service secret.',
7
6
  auth: 'authenticated',
@@ -1,7 +1,7 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
3
  export const deleteService = method({
4
- description: 'Convergently delete provider resources and the Service record without uninstalling consumers.',
4
+ description: 'Convergently delete provider resources and the owned Service without uninstalling consumers.',
5
5
  auth: 'authenticated',
6
6
  input: z.strictObject({}),
7
7
  output: z.discriminatedUnion('kind', [
@@ -1,5 +1,5 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
- import { deployServiceInput, deployServiceOutput } from '../../deployment/index.js';
2
+ import { deployServiceInput, deployServiceOutput } from '../types/index.js';
3
3
  export const deployCloudflareWorker = method({
4
4
  description: 'Create or converge one Cloudflare Worker Service and admit its optional Publication.',
5
5
  auth: 'authenticated',
@@ -1,4 +1,4 @@
1
- export { deleteServiceSecret } from './delete-secret.js';
1
+ export { deleteServiceSecret } from './delete-service-secret.js';
2
2
  export { deleteService } from './delete-service.js';
3
3
  export { deployCloudflareWorker } from './deploy-cloudflare-worker.js';
4
4
  export { listServiceLogs } from './list-service-logs.js';
@@ -1,4 +1,4 @@
1
- export { deleteServiceSecret } from './delete-secret.js';
1
+ export { deleteServiceSecret } from './delete-service-secret.js';
2
2
  export { deleteService } from './delete-service.js';
3
3
  export { deployCloudflareWorker } from './deploy-cloudflare-worker.js';
4
4
  export { listServiceLogs } from './list-service-logs.js';
@@ -1,6 +1,6 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
- import { secretName } from './secret-name.js';
3
+ import { secretName } from '../types/index.js';
4
4
  export const listServiceSecretNames = method({
5
5
  description: 'List write-only Service secret names without exposing values.',
6
6
  auth: 'authenticated',
@@ -1,7 +1,6 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
- import { secretName } from './secret-name.js';
4
- import { secretOperationRejection } from './secret-operation-rejection.js';
3
+ import { secretName, secretOperationRejection } from '../types/index.js';
5
4
  export const setServiceSecret = method({
6
5
  description: 'Set one write-only Service secret.',
7
6
  auth: 'authenticated',
@@ -0,0 +1,5 @@
1
+ export { CloudflareWorker, Service, service_owned_by } from './classes/index.js';
2
+ export { deleteService, deleteServiceSecret, deployCloudflareWorker, listServiceLogs, listServiceSchedules, listServiceSecretNames, replaceServiceSchedules, setServiceSecret, } from './functions/index.js';
3
+ export { ObserveService, TraverseOwnedService } from './policies/index.js';
4
+ export { artifact, artifactModule, assetBundle, assetFile, deployedFunction, deployServiceInput, deployServiceOutput, publishedApplication, resourceLimits, revisionedDeployment, serviceLifecycle, PORTABLE_BASE64_CHUNK_SIZE, } from './types/index.js';
5
+ export type { ArtifactModule, AssetBundle, DeployServiceInput, DeployServiceOutput, ResourceLimits, } from './types/index.js';
@@ -0,0 +1,4 @@
1
+ export { CloudflareWorker, Service, service_owned_by } from './classes/index.js';
2
+ export { deleteService, deleteServiceSecret, deployCloudflareWorker, listServiceLogs, listServiceSchedules, listServiceSecretNames, replaceServiceSchedules, setServiceSecret, } from './functions/index.js';
3
+ export { ObserveService, TraverseOwnedService } from './policies/index.js';
4
+ export { artifact, artifactModule, assetBundle, assetFile, deployedFunction, deployServiceInput, deployServiceOutput, publishedApplication, resourceLimits, revisionedDeployment, serviceLifecycle, PORTABLE_BASE64_CHUNK_SIZE, } from './types/index.js';
@@ -0,0 +1,2 @@
1
+ export { ObserveService } from './observe-service.js';
2
+ export { TraverseOwnedService } from './traverse-owned-service.js';
@@ -0,0 +1,2 @@
1
+ export { ObserveService } from './observe-service.js';
2
+ export { TraverseOwnedService } from './traverse-owned-service.js';
@@ -0,0 +1,2 @@
1
+ /** A Service is visible only to the Identity that owns its provider effects. */
2
+ export declare const ObserveService: import("@astrale-os/sdk/schema").Policy;
@@ -0,0 +1,7 @@
1
+ import { policy } from '@astrale-os/sdk/schema';
2
+ import { service_owned_by } from '../classes/service-owned-by.js';
3
+ /** A Service is visible only to the Identity that owns its provider effects. */
4
+ export const ObserveService = policy({
5
+ description: 'The subject owns this Service.',
6
+ match: ({ edge, object, subject }) => edge({ source: subject, class: () => service_owned_by, target: object }),
7
+ });
@@ -1,4 +1,2 @@
1
- /** A Service is visible only to the Identity that owns its provider effects. */
2
- export declare const ObserveService: import("@astrale-os/sdk/schema").Policy;
3
1
  /** Ownership edges disclose only the subject's own Service relationship. */
4
2
  export declare const TraverseOwnedService: import("@astrale-os/sdk/schema").Policy;
@@ -1,10 +1,5 @@
1
1
  import { policy } from '@astrale-os/sdk/schema';
2
- import { service_owned_by } from './service-owned-by-edge-class.js';
3
- /** A Service is visible only to the Identity that owns its provider effects. */
4
- export const ObserveService = policy({
5
- description: 'The subject owns this Service.',
6
- match: ({ edge, object, subject }) => edge({ source: subject, class: () => service_owned_by, target: object }),
7
- });
2
+ import { service_owned_by } from '../classes/service-owned-by.js';
8
3
  /** Ownership edges disclose only the subject's own Service relationship. */
9
4
  export const TraverseOwnedService = policy({
10
5
  description: 'The subject owns the Service at the target of this relationship.',
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { assetBundle } from './asset.js';
3
- import { resourceLimits } from './limits.js';
4
- import { artifactModule } from './module.js';
2
+ import { artifactModule } from './service-deployment-artifact-module.js';
3
+ import { assetBundle } from './service-deployment-assets.js';
4
+ import { resourceLimits } from './service-deployment-resource-limits.js';
5
5
  export const artifact = z.strictObject({
6
6
  entry: z.string().min(1).max(256),
7
7
  modules: z.array(artifactModule).min(1).max(40),
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { deploymentRejection } from './deployment-rejection.js';
2
+ import { deploymentRejection } from './service-deployment-rejection.js';
3
3
  export const deployedFunction = z.strictObject({
4
4
  path: z.string(),
5
5
  ref: z.string(),
@@ -0,0 +1,16 @@
1
+ export { artifactModule } from './service-deployment-artifact-module.js';
2
+ export type { ArtifactModule } from './service-deployment-artifact-module.js';
3
+ export { assetBundle, assetFile } from './service-deployment-assets.js';
4
+ export type { AssetBundle } from './service-deployment-assets.js';
5
+ export { MAX_ASSET_BASE64_SIZE, MAX_MODULE_BASE64_SIZE, PORTABLE_BASE64_CHUNK_SIZE, } from './service-deployment-content.js';
6
+ export { deploymentRejection } from './service-deployment-rejection.js';
7
+ export type { DeploymentRejection } from './service-deployment-rejection.js';
8
+ export { resourceLimits } from './service-deployment-resource-limits.js';
9
+ export type { ResourceLimits } from './service-deployment-resource-limits.js';
10
+ export { artifact, deployServiceInput, revisionedDeployment } from './deploy-service-input.js';
11
+ export type { DeployServiceInput } from './deploy-service-input.js';
12
+ export { deployedFunction, deployedService, deployServiceOutput, publishedApplication, } from './deploy-service-output.js';
13
+ export type { DeployServiceOutput } from './deploy-service-output.js';
14
+ export { serviceLifecycle } from './service-lifecycle.js';
15
+ export { secretName } from './service-secret-name.js';
16
+ export { secretOperationRejection } from './service-secret-operation-rejection.js';
@@ -0,0 +1,10 @@
1
+ export { artifactModule } from './service-deployment-artifact-module.js';
2
+ export { assetBundle, assetFile } from './service-deployment-assets.js';
3
+ export { MAX_ASSET_BASE64_SIZE, MAX_MODULE_BASE64_SIZE, PORTABLE_BASE64_CHUNK_SIZE, } from './service-deployment-content.js';
4
+ export { deploymentRejection } from './service-deployment-rejection.js';
5
+ export { resourceLimits } from './service-deployment-resource-limits.js';
6
+ export { artifact, deployServiceInput, revisionedDeployment } from './deploy-service-input.js';
7
+ export { deployedFunction, deployedService, deployServiceOutput, publishedApplication, } from './deploy-service-output.js';
8
+ export { serviceLifecycle } from './service-lifecycle.js';
9
+ export { secretName } from './service-secret-name.js';
10
+ export { secretOperationRejection } from './service-secret-operation-rejection.js';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { encodedContent, MAX_MODULE_BASE64_SIZE } from './content.js';
2
+ import { encodedContent, MAX_MODULE_BASE64_SIZE } from './service-deployment-content.js';
3
3
  const fields = {
4
4
  name: z.string().min(1).max(256),
5
5
  kind: z.enum(['esm', 'wasm', 'text', 'data']).optional(),
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { encodedContent, MAX_ASSET_BASE64_SIZE } from './content.js';
2
+ import { encodedContent, MAX_ASSET_BASE64_SIZE } from './service-deployment-content.js';
3
3
  const fields = {
4
4
  path: z.string().min(1).max(2_048),
5
5
  contentType: z.string().min(1).max(256).optional(),
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ export declare const serviceLifecycle: z.ZodEnum<{
3
+ deleting: "deleting";
4
+ deploying: "deploying";
5
+ failed: "failed";
6
+ ready: "ready";
7
+ reconciling: "reconciling";
8
+ }>;
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export const serviceLifecycle = z.enum(['deploying', 'reconciling', 'ready', 'failed', 'deleting']);
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const secretName: z.ZodString;
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const secretOperationRejection: z.ZodObject<{
3
+ kind: z.ZodLiteral<"rejected">;
4
+ reason: z.ZodEnum<{
5
+ "binding-unavailable": "binding-unavailable";
6
+ "invalid-secret-name": "invalid-secret-name";
7
+ "service-unavailable": "service-unavailable";
8
+ }>;
9
+ }, z.core.$strict>;