@astrale-domains/services 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,10 @@
1
- import { K, edgeClass } from '@astrale-os/sdk/schema';
1
+ import { edgeClass } from '@astrale-os/sdk/schema';
2
+ import { ServicesShell } from '../dependencies/index.js';
2
3
  import { TraverseOwnedService } from '../policies/index.js';
3
4
  import { Service } from './service.js';
4
5
  export const service_owned_by = edgeClass.directed({
5
- description: 'The Identity that owns and may manage one Service.',
6
+ description: 'The Shell user that owns and may manage one Service.',
6
7
  source: { as: 'service', accepts: [() => Service], outgoing: '1' },
7
- target: { as: 'owner', accepts: [K.classes.Identity], incoming: '0..*' },
8
+ target: { as: 'owner', accepts: [ServicesShell.classes.User], incoming: '0..*' },
8
9
  policies: { traverse: () => TraverseOwnedService },
9
10
  });
@@ -55,7 +55,7 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
55
55
  readonly providerName: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "providerName", "self", undefined>;
56
56
  readonly serviceKey: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "serviceKey", "self", undefined>;
57
57
  readonly url: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "url", "self", never>;
58
- readonly state: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<unknown, "deleting" | "deploying" | "failed" | "ready" | "reconciling", true, "state", "self", import("@astrale-os/sdk/state").StateTopology<{
58
+ readonly state: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"deleting" | "deploying" | "failed" | "ready" | "reconciling", "deleting" | "deploying" | "failed" | "ready" | "reconciling", true, "state", "self", import("@astrale-os/sdk/state").StateTopology<{
59
59
  readonly deploying: {
60
60
  readonly recordProviderDeployment: "reconciling";
61
61
  readonly failDeployment: "failed";
@@ -146,7 +146,7 @@ export declare const Service: import("@astrale-os/sdk/schema").NodeClass<{
146
146
  };
147
147
  }, "authorized", false, "default">>;
148
148
  };
149
- 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<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, "providerName", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "serviceKey", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<unknown, "deleting" | "deploying" | "failed" | "ready" | "reconciling", true, "state", "self", import("@astrale-os/sdk/state").StateTopology<{
149
+ 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<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, "providerName", "self", undefined> | 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", import("@astrale-os/sdk/state").StateTopology<{
150
150
  readonly deploying: {
151
151
  readonly recordProviderDeployment: "reconciling";
152
152
  readonly failDeployment: "failed";
@@ -0,0 +1 @@
1
+ export { ServicesShell } from './shell.js';
@@ -0,0 +1 @@
1
+ export { ServicesShell } from './shell.js';
@@ -0,0 +1,4 @@
1
+ import { ShellSchema } from '@astrale-domains/shell';
2
+ import { schema as language } from '@astrale-os/sdk/schema';
3
+ /** The exact Shell vocabulary Services uses for human ownership. */
4
+ export declare const ServicesShell: language.ResolvedDomainOf<typeof ShellSchema>;
@@ -0,0 +1,4 @@
1
+ import { ShellSchema } from '@astrale-domains/shell';
2
+ import { schema as language } from '@astrale-os/sdk/schema';
3
+ /** The exact Shell vocabulary Services uses for human ownership. */
4
+ export const ServicesShell = language.resolve(ShellSchema);
@@ -1,4 +1,5 @@
1
1
  export { CloudflareWorker, Service, service_owned_by } from './classes/index.js';
2
+ export { ServicesShell } from './dependencies/index.js';
2
3
  export { artifact, deleteService, deleteServiceSecret, deployedService, deploymentRejection, deployCloudflareWorker, deployServiceInput, deployServiceOutput, listServiceLogs, listServiceSchedules, listServiceSecretNames, replaceServiceSchedules, revisionedDeployment, setServiceSecret, } from './functions/index.js';
3
4
  export type { DeployServiceInput, DeployServiceOutput } from './functions/index.js';
4
5
  export { OwnService, TraverseOwnedService } from './policies/index.js';
@@ -1,4 +1,5 @@
1
1
  export { CloudflareWorker, Service, service_owned_by } from './classes/index.js';
2
+ export { ServicesShell } from './dependencies/index.js';
2
3
  export { artifact, deleteService, deleteServiceSecret, deployedService, deploymentRejection, deployCloudflareWorker, deployServiceInput, deployServiceOutput, listServiceLogs, listServiceSchedules, listServiceSecretNames, replaceServiceSchedules, revisionedDeployment, setServiceSecret, } from './functions/index.js';
3
4
  export { OwnService, TraverseOwnedService } from './policies/index.js';
4
5
  export { serviceLifecycle } from './states/index.js';
@@ -3,5 +3,5 @@ import { service_owned_by } from '../classes/service-owned-by.js';
3
3
  /** Ownership edges disclose only the subject's own Service relationship. */
4
4
  export const TraverseOwnedService = policy({
5
5
  description: 'The subject owns the Service at the source of this relationship.',
6
- match: ({ allOf, edge, source, subject, target }) => allOf(edge({ source, class: () => service_owned_by, target: subject }), edge({ source, class: () => service_owned_by, target })),
6
+ match: ({ edge, source, subject }) => edge({ source, class: () => service_owned_by, target: subject }),
7
7
  });