@astrale-domains/services 0.2.5 → 0.2.6
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 +9 -0
- package/README.md +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/modules/service/classes/cloudflare-worker.d.ts +312 -312
- package/dist/schema/modules/service/classes/service-owned-by.js +4 -3
- package/dist/schema/modules/service/dependencies/index.d.ts +1 -0
- package/dist/schema/modules/service/dependencies/index.js +1 -0
- package/dist/schema/modules/service/dependencies/shell.d.ts +4 -0
- package/dist/schema/modules/service/dependencies/shell.js +4 -0
- package/dist/schema/modules/service/index.d.ts +1 -0
- package/dist/schema/modules/service/index.js +1 -0
- package/dist/schema/modules/service/policies/traverse-owned-service.js +1 -1
- package/dist/schema/schema.d.ts +6410 -6402
- package/dist/schema/schema.js +20 -12
- package/package.json +5 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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: [
|
|
8
|
+
target: { as: 'owner', accepts: [ServicesShell.classes.User], incoming: '0..*' },
|
|
8
9
|
policies: { traverse: () => TraverseOwnedService },
|
|
9
10
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ServicesShell } from './shell.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ServicesShell } from './shell.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 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: ({
|
|
6
|
+
match: ({ edge, source, subject }) => edge({ source, class: () => service_owned_by, target: subject }),
|
|
7
7
|
});
|