@sylphx/management 0.4.0 → 0.4.1
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 +7 -0
- package/dist/kv.d.ts +1 -1
- package/dist/kv.js +1 -1
- package/dist/projects.d.ts +12 -1
- package/dist/projects.d.ts.map +1 -1
- package/dist/projects.js +9 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/kv.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* KV Admin (Console-plane operator surface).
|
|
3
3
|
*
|
|
4
4
|
* Distinct from the BaaS-plane `kv` namespace in `@sylphx/sdk` — that one
|
|
5
|
-
* is customer-app runtime data-plane (`
|
|
5
|
+
* is customer-app runtime data-plane (`kv/*`); this one is operator
|
|
6
6
|
* dashboard administration (`/kv/*` on the Platform API):
|
|
7
7
|
*
|
|
8
8
|
* GET /kv/status — service health for a customer project
|
package/dist/kv.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* KV Admin (Console-plane operator surface).
|
|
3
3
|
*
|
|
4
4
|
* Distinct from the BaaS-plane `kv` namespace in `@sylphx/sdk` — that one
|
|
5
|
-
* is customer-app runtime data-plane (`
|
|
5
|
+
* is customer-app runtime data-plane (`kv/*`); this one is operator
|
|
6
6
|
* dashboard administration (`/kv/*` on the Platform API):
|
|
7
7
|
*
|
|
8
8
|
* GET /kv/status — service health for a customer project
|
package/dist/projects.d.ts
CHANGED
|
@@ -4,14 +4,25 @@
|
|
|
4
4
|
* Wire shape sourced from `@sylphx/contract` (ADR-084). Paths + methods
|
|
5
5
|
* come from `projectsEndpoints`; hand-written types are forbidden here.
|
|
6
6
|
*/
|
|
7
|
-
import type { CreateProjectInput, Project } from '@sylphx/contract';
|
|
7
|
+
import type { CreateProjectInput, Project, SylphxManifest } from '@sylphx/contract';
|
|
8
8
|
import type { Client } from './client.js';
|
|
9
9
|
export interface OrgScopedRequestOptions {
|
|
10
10
|
readonly orgId?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare const list: (client: Client, options?: OrgScopedRequestOptions) => Promise<Project[]>;
|
|
13
13
|
export type CreateInput = CreateProjectInput;
|
|
14
|
+
export interface ProjectManifestState {
|
|
15
|
+
readonly manifest: SylphxManifest | null;
|
|
16
|
+
readonly version: number | null;
|
|
17
|
+
readonly updatedAt: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface ProjectManifestPutResult {
|
|
20
|
+
readonly version: number;
|
|
21
|
+
readonly updatedAt: string;
|
|
22
|
+
}
|
|
14
23
|
export declare const create: (client: Client, input: CreateInput) => Promise<Project>;
|
|
15
24
|
declare const _delete: (client: Client, id: string) => Promise<void>;
|
|
16
25
|
export { _delete as delete };
|
|
26
|
+
export declare const getManifest: (client: Client, id: string) => Promise<ProjectManifestState>;
|
|
27
|
+
export declare const putManifest: (client: Client, id: string, manifest: SylphxManifest) => Promise<ProjectManifestPutResult>;
|
|
17
28
|
//# sourceMappingURL=projects.d.ts.map
|
package/dist/projects.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../src/projects.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../src/projects.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGzC,MAAM,WAAW,uBAAuB;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACvB;AAQD,eAAO,MAAM,IAAI,GAChB,QAAQ,MAAM,EACd,UAAS,uBAA4B,KACnC,OAAO,CAAC,OAAO,EAAE,CAMnB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAA;AAE5C,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAA;IACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC1B;AAED,eAAO,MAAM,MAAM,GAAI,QAAQ,MAAM,EAAE,OAAO,WAAW,KAAG,OAAO,CAAC,OAAO,CAG1E,CAAA;AAED,QAAA,MAAM,OAAO,GAAI,QAAQ,MAAM,EAAE,IAAI,MAAM,KAAG,OAAO,CAAC,IAAI,CAGzD,CAAA;AACD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,CAAA;AAE5B,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,IAAI,MAAM,KAAG,OAAO,CAAC,oBAAoB,CAGpF,CAAA;AAED,eAAO,MAAM,WAAW,GACvB,QAAQ,MAAM,EACd,IAAI,MAAM,EACV,UAAU,cAAc,KACtB,OAAO,CAAC,wBAAwB,CAGlC,CAAA"}
|
package/dist/projects.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Wire shape sourced from `@sylphx/contract` (ADR-084). Paths + methods
|
|
5
5
|
* come from `projectsEndpoints`; hand-written types are forbidden here.
|
|
6
6
|
*/
|
|
7
|
-
import { projectsEndpoints } from '@sylphx/contract';
|
|
7
|
+
import { projectManifestEndpoints, projectsEndpoints } from '@sylphx/contract';
|
|
8
8
|
import { interpolatePath, request } from './http.js';
|
|
9
9
|
const orgHeaders = (options = {}) => ({
|
|
10
10
|
...(options.orgId ? { 'x-preferred-org-id': options.orgId } : {}),
|
|
@@ -25,3 +25,11 @@ const _delete = (client, id) => {
|
|
|
25
25
|
return request(client, method, interpolatePath(path, { id }));
|
|
26
26
|
};
|
|
27
27
|
export { _delete as delete };
|
|
28
|
+
export const getManifest = (client, id) => {
|
|
29
|
+
const { method, path } = projectManifestEndpoints.get;
|
|
30
|
+
return request(client, method, interpolatePath(path, { id }));
|
|
31
|
+
};
|
|
32
|
+
export const putManifest = (client, id, manifest) => {
|
|
33
|
+
const { method, path } = projectManifestEndpoints.put;
|
|
34
|
+
return request(client, method, interpolatePath(path, { id }), { body: manifest });
|
|
35
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/management",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Sylphx Management SDK — pure-FP Promise client for the Sylphx Platform Management API. 55+ namespaces covering the full PaaS surface (ADR-089 Phase 4b 100% coverage), types derived from @sylphx/contract (Effect Schema SSOT).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"prepublishOnly": "bun run build"
|
|
202
202
|
},
|
|
203
203
|
"dependencies": {
|
|
204
|
-
"@sylphx/contract": "0.5.
|
|
204
|
+
"@sylphx/contract": "0.5.1"
|
|
205
205
|
},
|
|
206
206
|
"files": [
|
|
207
207
|
"dist",
|