@astrale-domains/services 0.2.2 → 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 (72) hide show
  1. package/CHANGELOG.md +26 -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} +2491 -1045
  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} +36 -30
  10. package/dist/schema/{service/service-class.js → modules/service/classes/service.js} +9 -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.d.ts +5 -6
  14. package/dist/schema/{service/methods → modules/service/functions}/deploy-cloudflare-worker.js +2 -2
  15. package/dist/schema/{service/methods → modules/service/functions}/index.d.ts +1 -1
  16. package/dist/schema/{service/methods → modules/service/functions}/index.js +1 -1
  17. package/dist/schema/{service/methods → modules/service/functions}/list-service-secret-names.js +1 -1
  18. package/dist/schema/{service/methods → modules/service/functions}/set-service-secret.js +1 -2
  19. package/dist/schema/modules/service/index.d.ts +5 -0
  20. package/dist/schema/modules/service/index.js +4 -0
  21. package/dist/schema/modules/service/policies/index.d.ts +2 -0
  22. package/dist/schema/modules/service/policies/index.js +2 -0
  23. package/dist/schema/modules/service/policies/observe-service.d.ts +2 -0
  24. package/dist/schema/modules/service/policies/observe-service.js +7 -0
  25. package/dist/schema/modules/service/policies/traverse-owned-service.d.ts +2 -0
  26. package/dist/schema/modules/service/policies/traverse-owned-service.js +7 -0
  27. package/dist/schema/{deployment/request.js → modules/service/types/deploy-service-input.js} +3 -3
  28. package/dist/schema/{deployment/result.d.ts → modules/service/types/deploy-service-output.d.ts} +15 -14
  29. package/dist/schema/{deployment/result.js → modules/service/types/deploy-service-output.js} +4 -5
  30. package/dist/schema/modules/service/types/index.d.ts +16 -0
  31. package/dist/schema/modules/service/types/index.js +10 -0
  32. package/dist/schema/{deployment/module.js → modules/service/types/service-deployment-artifact-module.js} +1 -1
  33. package/dist/schema/{deployment/asset.js → modules/service/types/service-deployment-assets.js} +1 -1
  34. package/dist/schema/modules/service/types/service-lifecycle.d.ts +8 -0
  35. package/dist/schema/modules/service/types/service-lifecycle.js +2 -0
  36. package/dist/schema/modules/service/types/service-secret-name.d.ts +2 -0
  37. package/dist/schema/modules/service/types/service-secret-operation-rejection.d.ts +9 -0
  38. package/dist/schema/schema.d.ts +2563 -1140
  39. package/dist/schema/schema.js +1 -5
  40. package/package.json +26 -22
  41. package/dist/schema/deployment/index.d.ts +0 -13
  42. package/dist/schema/deployment/index.js +0 -7
  43. package/dist/schema/service/hosted-by-service-edge-class.d.ts +0 -19
  44. package/dist/schema/service/hosted-by-service-edge-class.js +0 -14
  45. package/dist/schema/service/index.d.ts +0 -7
  46. package/dist/schema/service/index.js +0 -7
  47. package/dist/schema/service/policies.d.ts +0 -7
  48. package/dist/schema/service/policies.js +0 -23
  49. package/dist/schema/service/service-hosts-domain-edge-class.d.ts +0 -16
  50. package/dist/schema/service/service-hosts-domain-edge-class.js +0 -9
  51. package/dist/schema/{service/service-owned-by-edge-class.d.ts → modules/service/classes/service-owned-by.d.ts} +0 -0
  52. package/dist/schema/{service/methods/delete-secret.d.ts → modules/service/functions/delete-service-secret.d.ts} +0 -0
  53. package/dist/schema/{service/methods → modules/service/functions}/delete-service.d.ts +0 -0
  54. package/dist/schema/{service/methods → modules/service/functions}/list-service-logs.d.ts +0 -0
  55. package/dist/schema/{service/methods → modules/service/functions}/list-service-logs.js +0 -0
  56. package/dist/schema/{service/methods → modules/service/functions}/list-service-schedules.d.ts +0 -0
  57. package/dist/schema/{service/methods → modules/service/functions}/list-service-schedules.js +0 -0
  58. package/dist/schema/{service/methods → modules/service/functions}/list-service-secret-names.d.ts +0 -0
  59. package/dist/schema/{service/methods → modules/service/functions}/replace-service-schedules.d.ts +0 -0
  60. package/dist/schema/{service/methods → modules/service/functions}/replace-service-schedules.js +0 -0
  61. package/dist/schema/{service/methods → modules/service/functions}/set-service-secret.d.ts +2 -2
  62. /package/dist/schema/{deployment/request.d.ts → modules/service/types/deploy-service-input.d.ts} +0 -0
  63. /package/dist/schema/{deployment/module.d.ts → modules/service/types/service-deployment-artifact-module.d.ts} +0 -0
  64. /package/dist/schema/{deployment/asset.d.ts → modules/service/types/service-deployment-assets.d.ts} +0 -0
  65. /package/dist/schema/{deployment/content.d.ts → modules/service/types/service-deployment-content.d.ts} +0 -0
  66. /package/dist/schema/{deployment/content.js → modules/service/types/service-deployment-content.js} +0 -0
  67. /package/dist/schema/{deployment/deployment-rejection.d.ts → modules/service/types/service-deployment-rejection.d.ts} +0 -0
  68. /package/dist/schema/{deployment/deployment-rejection.js → modules/service/types/service-deployment-rejection.js} +0 -0
  69. /package/dist/schema/{deployment/limits.d.ts → modules/service/types/service-deployment-resource-limits.d.ts} +0 -0
  70. /package/dist/schema/{deployment/limits.js → modules/service/types/service-deployment-resource-limits.js} +0 -0
  71. /package/dist/schema/{service/methods/secret-name.js → modules/service/types/service-secret-name.js} +0 -0
  72. /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,21 +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 hostedOrigin: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedOrigin", "self">;
73
- readonly hostedRevision: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedRevision", "self">;
74
- readonly hostedPublicationEtag: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "hostedPublicationEtag", "self">;
75
- readonly error: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "error", "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>;
68
+ readonly hostedFunctions: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
69
+ ref: string;
70
+ path: string;
71
+ }[], {
72
+ ref: string;
73
+ path: string;
74
+ }[], false, "hostedFunctions", "self", never>;
75
+ readonly error: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "error", "self", never>;
76
76
  };
77
77
  readonly methods: {
78
78
  readonly setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
@@ -139,16 +139,22 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
139
139
  };
140
140
  }, "authenticated", false, "default">>;
141
141
  };
142
- 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<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> & {
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<{
143
+ ref: string;
144
+ path: string;
145
+ }[], {
146
+ ref: string;
147
+ path: string;
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> & {
143
149
  readonly name: "description";
144
150
  readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
145
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
146
- readonly name: "name";
147
- readonly key: "kernel.astrale.ai:class.Named.property.name";
148
- }) | (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> & {
149
152
  readonly name: "createdAt";
150
153
  readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
151
- }) | (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> & {
155
+ readonly name: "name";
156
+ readonly key: "kernel.astrale.ai:class.Named.property.name";
157
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
152
158
  readonly name: "updatedAt";
153
159
  readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
154
160
  });
@@ -1,12 +1,16 @@
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)
9
9
  .regex(/sha256:[0-9a-f]{64}/);
10
+ const publishedFunction = z.strictObject({
11
+ ref: z.string().min(1).max(512),
12
+ path: z.string().min(1).max(2_048),
13
+ });
10
14
  /** Provider-neutral deployed resource. Provider implementation versions are deliberately external. */
11
15
  export const Service = nodeClass({
12
16
  abstract: true,
@@ -22,9 +26,11 @@ export const Service = nodeClass({
22
26
  revision: property(digest, { required: false }),
23
27
  deploymentReceipt: property(z.string().min(1).max(128), { required: false }),
24
28
  operationExpiresAt: property(valueSchema.values.instant, { required: false }),
29
+ hostedIssuer: property(z.string().min(1).max(2_048), { required: false }),
25
30
  hostedOrigin: property(z.string().min(1).max(512), { required: false }),
26
31
  hostedRevision: property(digest, { required: false }),
27
32
  hostedPublicationEtag: property(digest, { required: false }),
33
+ hostedFunctions: property(z.array(publishedFunction).max(1_024), { required: false }),
28
34
  error: property(z.string().max(5_000), { required: false }),
29
35
  },
30
36
  methods: {
@@ -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 the hosted Domain, provider placement, and Service record.',
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', [
@@ -63,17 +63,16 @@ export declare const deployCloudflareWorker: import("@astrale-os/sdk/schema").Me
63
63
  revision?: string | undefined;
64
64
  state: "deleting" | "deploying" | "failed" | "ready" | "reconciling";
65
65
  error?: string | null | undefined;
66
- domain?: {
66
+ application?: {
67
67
  issuer: string;
68
68
  origin: string;
69
69
  revision: string;
70
70
  publicationEtag: string;
71
+ functions: {
72
+ path: string;
73
+ ref: string;
74
+ }[];
71
75
  } | undefined;
72
- functions: {
73
- id: string;
74
- path: string;
75
- ref: string;
76
- }[];
77
76
  } | {
78
77
  kind: "rejected";
79
78
  reason: "artifact-mode-conflict" | "invalid-deployment" | "service-unavailable";
@@ -1,7 +1,7 @@
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
- description: 'Create or converge one Cloudflare Worker Service and its hosted Domain.',
4
+ description: 'Create or converge one Cloudflare Worker Service and admit its optional Publication.',
5
5
  auth: 'authenticated',
6
6
  static: true,
7
7
  input: deployServiceInput,
@@ -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
+ });
@@ -0,0 +1,2 @@
1
+ /** Ownership edges disclose only the subject's own Service relationship. */
2
+ export declare const TraverseOwnedService: 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
+ /** Ownership edges disclose only the subject's own Service relationship. */
4
+ export const TraverseOwnedService = policy({
5
+ description: 'The subject owns the Service at the target of this relationship.',
6
+ match: ({ allOf, edge, source, subject, target }) => allOf(edge({ source: subject, class: () => service_owned_by, target }), edge({ source, class: () => service_owned_by, target })),
7
+ });
@@ -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,14 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  export declare const deployedFunction: z.ZodObject<{
3
- id: z.ZodString;
4
3
  path: z.ZodString;
5
4
  ref: z.ZodString;
6
5
  }, z.core.$strict>;
7
- export declare const hostedDomain: z.ZodObject<{
6
+ export declare const publishedApplication: z.ZodObject<{
8
7
  issuer: z.ZodString;
9
8
  origin: z.ZodString;
10
9
  revision: z.ZodString;
11
10
  publicationEtag: z.ZodString;
11
+ functions: z.ZodArray<z.ZodObject<{
12
+ path: z.ZodString;
13
+ ref: z.ZodString;
14
+ }, z.core.$strict>>;
12
15
  }, z.core.$strict>;
13
16
  export declare const deployedService: z.ZodObject<{
14
17
  id: z.ZodString;
@@ -24,16 +27,15 @@ export declare const deployedService: z.ZodObject<{
24
27
  reconciling: "reconciling";
25
28
  }>;
26
29
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- domain: z.ZodOptional<z.ZodObject<{
30
+ application: z.ZodOptional<z.ZodObject<{
28
31
  issuer: z.ZodString;
29
32
  origin: z.ZodString;
30
33
  revision: z.ZodString;
31
34
  publicationEtag: z.ZodString;
32
- }, z.core.$strict>>;
33
- functions: z.ZodArray<z.ZodObject<{
34
- id: z.ZodString;
35
- path: z.ZodString;
36
- ref: z.ZodString;
35
+ functions: z.ZodArray<z.ZodObject<{
36
+ path: z.ZodString;
37
+ ref: z.ZodString;
38
+ }, z.core.$strict>>;
37
39
  }, z.core.$strict>>;
38
40
  }, z.core.$strict>;
39
41
  export declare const deployServiceOutput: z.ZodUnion<readonly [z.ZodObject<{
@@ -50,16 +52,15 @@ export declare const deployServiceOutput: z.ZodUnion<readonly [z.ZodObject<{
50
52
  reconciling: "reconciling";
51
53
  }>;
52
54
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
- domain: z.ZodOptional<z.ZodObject<{
55
+ application: z.ZodOptional<z.ZodObject<{
54
56
  issuer: z.ZodString;
55
57
  origin: z.ZodString;
56
58
  revision: z.ZodString;
57
59
  publicationEtag: z.ZodString;
58
- }, z.core.$strict>>;
59
- functions: z.ZodArray<z.ZodObject<{
60
- id: z.ZodString;
61
- path: z.ZodString;
62
- ref: z.ZodString;
60
+ functions: z.ZodArray<z.ZodObject<{
61
+ path: z.ZodString;
62
+ ref: z.ZodString;
63
+ }, z.core.$strict>>;
63
64
  }, z.core.$strict>>;
64
65
  }, z.core.$strict>, z.ZodObject<{
65
66
  kind: z.ZodLiteral<"rejected">;
@@ -1,15 +1,15 @@
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
- id: z.string(),
5
4
  path: z.string(),
6
5
  ref: z.string(),
7
6
  });
8
- export const hostedDomain = z.strictObject({
7
+ export const publishedApplication = z.strictObject({
9
8
  issuer: z.string().min(1),
10
9
  origin: z.string().min(1),
11
10
  revision: z.string().min(1),
12
11
  publicationEtag: z.string().min(1),
12
+ functions: z.array(deployedFunction),
13
13
  });
14
14
  export const deployedService = z.strictObject({
15
15
  id: z.string().min(1),
@@ -19,7 +19,6 @@ export const deployedService = z.strictObject({
19
19
  revision: z.string().min(1).max(80).optional(),
20
20
  state: z.enum(['deploying', 'reconciling', 'ready', 'failed', 'deleting']),
21
21
  error: z.string().nullable().optional(),
22
- domain: hostedDomain.optional(),
23
- functions: z.array(deployedFunction),
22
+ application: publishedApplication.optional(),
24
23
  });
25
24
  export const deployServiceOutput = z.union([deployedService, deploymentRejection]);
@@ -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>;