@xemahq/llm-registry-api-client 0.17.0 → 0.18.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.
package/README.md
CHANGED
|
@@ -29,17 +29,13 @@
|
|
|
29
29
|
|
|
30
30
|
## Overview
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
package is produced by `@xemahq/api-client-generator` and regenerated whenever
|
|
36
|
-
the service's API changes — do not edit it by hand.
|
|
32
|
+
Typed TypeScript client for the **LLM Registry API**: request functions and
|
|
33
|
+
response models generated from its OpenAPI spec.
|
|
34
|
+
Generated by @xemahq/api-client-generator; regenerate it when the API changes, never edit it by hand.
|
|
37
35
|
|
|
38
36
|
## When to use it
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
- You get compile-time types for every endpoint and payload; regenerate to pick
|
|
42
|
-
up API changes rather than editing the client.
|
|
38
|
+
Use it from a TypeScript service or app that calls the LLM Registry API over HTTP.
|
|
43
39
|
|
|
44
40
|
## Installation
|
|
45
41
|
|
|
@@ -50,13 +46,10 @@ pnpm add @xemahq/llm-registry-api-client
|
|
|
50
46
|
## Usage
|
|
51
47
|
|
|
52
48
|
```ts
|
|
53
|
-
//
|
|
49
|
+
// Endpoint functions and response models are exported from the package root.
|
|
54
50
|
import * as client from '@xemahq/llm-registry-api-client';
|
|
55
51
|
```
|
|
56
52
|
|
|
57
|
-
Call the typed endpoint functions; request and response shapes are fully typed
|
|
58
|
-
from the service's OpenAPI spec.
|
|
59
|
-
|
|
60
53
|
## License
|
|
61
54
|
|
|
62
55
|
LicenseRef-Xema-BSL-1.1 — © Neuralchowder Inc.. All rights reserved.
|
|
@@ -9,6 +9,11 @@ export declare const getProjectKitsControllerListUrl: (params?: ProjectKitsContr
|
|
|
9
9
|
* @summary List Project Kits. Optionally filtered to kits compatible with a tech-stack target.
|
|
10
10
|
*/
|
|
11
11
|
export declare const projectKitsControllerList: (params?: ProjectKitsControllerListParams, options?: RequestInit) => Promise<ProjectKitDefinitionDtoPaginatedEnvelope>;
|
|
12
|
+
export declare const getProjectKitsControllerGetInternalBySlugUrl: (slug: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* @summary Internal: resolve a single Project Kit by slug under a delegation lending project-kit:project-kit.read@1. Same resolution as GET /project-kits/:slug. Unknown slugs raise 404.
|
|
15
|
+
*/
|
|
16
|
+
export declare const projectKitsControllerGetInternalBySlug: (slug: string, options?: RequestInit) => Promise<ProjectKitDefinitionDtoDataEnvelope>;
|
|
12
17
|
export declare const getProjectKitsControllerGetBySlugUrl: (slug: string) => string;
|
|
13
18
|
/**
|
|
14
19
|
* @summary Resolve a single Project Kit by slug. Unknown slugs raise 404.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.projectKitsControllerGetBySlug = exports.getProjectKitsControllerGetBySlugUrl = exports.projectKitsControllerList = exports.getProjectKitsControllerListUrl = void 0;
|
|
3
|
+
exports.projectKitsControllerGetBySlug = exports.getProjectKitsControllerGetBySlugUrl = exports.projectKitsControllerGetInternalBySlug = exports.getProjectKitsControllerGetInternalBySlugUrl = exports.projectKitsControllerList = exports.getProjectKitsControllerListUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
5
|
const getProjectKitsControllerListUrl = (params) => {
|
|
6
6
|
const normalizedParams = new URLSearchParams();
|
|
@@ -35,6 +35,20 @@ const projectKitsControllerList = async (params, options) => {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
exports.projectKitsControllerList = projectKitsControllerList;
|
|
38
|
+
const getProjectKitsControllerGetInternalBySlugUrl = (slug) => {
|
|
39
|
+
return `/project-kits/internal/${slug}`;
|
|
40
|
+
};
|
|
41
|
+
exports.getProjectKitsControllerGetInternalBySlugUrl = getProjectKitsControllerGetInternalBySlugUrl;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Internal: resolve a single Project Kit by slug under a delegation lending project-kit:project-kit.read@1. Same resolution as GET /project-kits/:slug. Unknown slugs raise 404.
|
|
44
|
+
*/
|
|
45
|
+
const projectKitsControllerGetInternalBySlug = async (slug, options) => {
|
|
46
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectKitsControllerGetInternalBySlugUrl)(slug), {
|
|
47
|
+
...options,
|
|
48
|
+
method: 'GET'
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
exports.projectKitsControllerGetInternalBySlug = projectKitsControllerGetInternalBySlug;
|
|
38
52
|
const getProjectKitsControllerGetBySlugUrl = (slug) => {
|
|
39
53
|
return `/project-kits/${slug}`;
|
|
40
54
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/llm-registry-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"service": "llm-registry-api",
|
|
20
20
|
"biome": "agent-runtime",
|
|
21
21
|
"target": "server",
|
|
22
|
-
"generator": "@xemahq/api-client-generator@2.7.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@2.7.2",
|
|
23
23
|
"source": "openapi.public.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-BSL-1.1",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"build": "tsc -p tsconfig.json"
|
|
61
61
|
},
|
|
62
62
|
"xemaRelease": {
|
|
63
|
-
"sourceDigest": "sha256:
|
|
63
|
+
"sourceDigest": "sha256:e34c0bb2c1c0c41e9b88967819c69263fa64d727fb539ecaa582564d150a540d"
|
|
64
64
|
}
|
|
65
65
|
}
|