@xemahq/llm-registry-internal-api-client 0.2.0 → 0.5.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.
Files changed (86) hide show
  1. package/LICENSE +0 -1
  2. package/dist/endpoints/contribution-sync/contribution-sync.d.ts +2 -0
  3. package/dist/endpoints/contribution-sync/contribution-sync.js +22 -0
  4. package/dist/endpoints/describe-objects/describe-objects.d.ts +3 -3
  5. package/dist/endpoints/internal-agent-invocation/internal-agent-invocation.d.ts +3 -3
  6. package/dist/endpoints/internal-agent-invocation/internal-agent-invocation.js +2 -2
  7. package/dist/endpoints/internal-managed-model-resolution-rules/internal-managed-model-resolution-rules.d.ts +32 -0
  8. package/dist/endpoints/internal-managed-model-resolution-rules/internal-managed-model-resolution-rules.js +68 -0
  9. package/dist/index.d.ts +2 -0
  10. package/dist/index.js +2 -0
  11. package/dist/models/{compositionInvokeRequestDto.d.ts → agentInvokeRequestDto.d.ts} +4 -4
  12. package/dist/models/{compositionInvokeRequestDtoInput.d.ts → agentInvokeRequestDtoInput.d.ts} +2 -2
  13. package/dist/models/{compositionInvokeRequestDtoInput.js → agentInvokeRequestDtoInput.js} +1 -1
  14. package/dist/models/defaultTargetRefDto.d.ts +13 -0
  15. package/dist/models/defaultTargetRefDto.js +9 -0
  16. package/dist/models/describeObjectsResponseDto.d.ts +1 -1
  17. package/dist/models/describeObjectsResponseDtoDataEnvelope.d.ts +11 -0
  18. package/dist/models/describeObjectsResponseDtoDataEnvelope.js +2 -0
  19. package/dist/models/errorDetailsDto.d.ts +1 -1
  20. package/dist/models/errorDetailsDtoDetails.d.ts +1 -1
  21. package/dist/models/errorDetailsDtoDetails.js +1 -1
  22. package/dist/models/errorPayloadDto.d.ts +1 -1
  23. package/dist/models/errorResponseDto.d.ts +1 -1
  24. package/dist/models/executionRequirementsDto.d.ts +3 -3
  25. package/dist/models/executionRequirementsDtoMode.d.ts +1 -1
  26. package/dist/models/executionRequirementsDtoMode.js +1 -1
  27. package/dist/models/executionRequirementsDtoPriority.d.ts +1 -1
  28. package/dist/models/executionRequirementsDtoPriority.js +1 -1
  29. package/dist/models/index.d.ts +23 -3
  30. package/dist/models/index.js +23 -3
  31. package/dist/models/invocationLimitsDto.d.ts +1 -1
  32. package/dist/models/invocationLimitsDto.js +1 -1
  33. package/dist/models/{executionRequirementsDtoIsolation.d.ts → isolationLevel.d.ts} +3 -3
  34. package/dist/models/{executionRequirementsDtoIsolation.js → isolationLevel.js} +3 -3
  35. package/dist/models/modelResolutionRuleResponseDto.d.ts +76 -0
  36. package/dist/models/modelResolutionRuleResponseDto.js +2 -0
  37. package/dist/models/modelResolutionRuleResponseDtoDataEnvelope.d.ts +11 -0
  38. package/dist/models/modelResolutionRuleResponseDtoDataEnvelope.js +2 -0
  39. package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass.d.ts +19 -0
  40. package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass.js +17 -0
  41. package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind.d.ts +16 -0
  42. package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind.js +14 -0
  43. package/dist/models/modelResolutionRuleResponseDtoTargetKind.d.ts +12 -0
  44. package/dist/models/modelResolutionRuleResponseDtoTargetKind.js +14 -0
  45. package/dist/models/modelResolutionRuleResponseDtoTargetModelClass.d.ts +18 -0
  46. package/dist/models/modelResolutionRuleResponseDtoTargetModelClass.js +17 -0
  47. package/dist/models/modelResolutionSelectorDto.d.ts +28 -0
  48. package/dist/models/modelResolutionSelectorDto.js +2 -0
  49. package/dist/models/modelResolutionSelectorDtoExtra.d.ts +13 -0
  50. package/dist/models/modelResolutionSelectorDtoExtra.js +9 -0
  51. package/dist/models/modelResolutionSelectorDtoModelCapability.d.ts +19 -0
  52. package/dist/models/modelResolutionSelectorDtoModelCapability.js +18 -0
  53. package/dist/models/modelResolutionSelectorDtoModelClass.d.ts +18 -0
  54. package/dist/models/modelResolutionSelectorDtoModelClass.js +17 -0
  55. package/dist/models/modelResolutionSelectorResponseDto.d.ts +28 -0
  56. package/dist/models/modelResolutionSelectorResponseDto.js +2 -0
  57. package/dist/models/modelResolutionSelectorResponseDtoExtra.d.ts +13 -0
  58. package/dist/models/modelResolutionSelectorResponseDtoExtra.js +9 -0
  59. package/dist/models/modelResolutionSelectorResponseDtoModelCapability.d.ts +19 -0
  60. package/dist/models/modelResolutionSelectorResponseDtoModelCapability.js +18 -0
  61. package/dist/models/modelResolutionSelectorResponseDtoModelClass.d.ts +18 -0
  62. package/dist/models/modelResolutionSelectorResponseDtoModelClass.js +17 -0
  63. package/dist/models/objectLifecycle.d.ts +1 -1
  64. package/dist/models/objectLifecycle.js +1 -1
  65. package/dist/models/repointDefaultTargetDto.d.ts +12 -0
  66. package/dist/models/repointDefaultTargetDto.js +2 -0
  67. package/dist/models/spaceKind.d.ts +1 -1
  68. package/dist/models/spaceKind.js +1 -1
  69. package/dist/models/upsertManagedModelResolutionRuleDto.d.ts +28 -0
  70. package/dist/models/upsertManagedModelResolutionRuleDto.js +2 -0
  71. package/dist/models/upsertManagedModelResolutionRuleDtoTargetKind.d.ts +15 -0
  72. package/dist/models/upsertManagedModelResolutionRuleDtoTargetKind.js +14 -0
  73. package/dist/models/upsertManagedModelResolutionRuleDtoTargetModelClass.d.ts +18 -0
  74. package/dist/models/upsertManagedModelResolutionRuleDtoTargetModelClass.js +17 -0
  75. package/dist/models/xemaObjectKind.d.ts +1 -2
  76. package/dist/models/xemaObjectKind.js +1 -2
  77. package/dist/models/xemaObjectResponseDto.d.ts +2 -2
  78. package/dist/models/xemaObjectResponseDtoPayload.d.ts +2 -2
  79. package/dist/models/xemaObjectResponseDtoPayload.js +1 -1
  80. package/dist/models/xemaSpaceRefDto.d.ts +1 -1
  81. package/dist/models/xemaSubjectRefDto.d.ts +1 -1
  82. package/dist/models/xemaSubjectRefDto.js +1 -1
  83. package/package.json +14 -4
  84. package/dist/endpoints/internal-composition-invocation/internal-composition-invocation.d.ts +0 -14
  85. package/dist/endpoints/internal-composition-invocation/internal-composition-invocation.js +0 -21
  86. /package/dist/models/{compositionInvokeRequestDto.js → agentInvokeRequestDto.js} +0 -0
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval v8.16.0 🍺
3
+ * Do not edit manually.
4
+ * LLM Registry API
5
+ * Central registry for LLM providers, models, and per-project model configuration
6
+ * OpenAPI spec version: 0.1.2
7
+ */
8
+ /**
9
+ * Strategy routing class. Required when targetKind=strategy.
10
+ */
11
+ export type UpsertManagedModelResolutionRuleDtoTargetModelClass = typeof UpsertManagedModelResolutionRuleDtoTargetModelClass[keyof typeof UpsertManagedModelResolutionRuleDtoTargetModelClass];
12
+ export declare const UpsertManagedModelResolutionRuleDtoTargetModelClass: {
13
+ readonly coding: "coding";
14
+ readonly review: "review";
15
+ readonly creative: "creative";
16
+ readonly planning: "planning";
17
+ readonly utility: "utility";
18
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.16.0 🍺
4
+ * Do not edit manually.
5
+ * LLM Registry API
6
+ * Central registry for LLM providers, models, and per-project model configuration
7
+ * OpenAPI spec version: 0.1.2
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.UpsertManagedModelResolutionRuleDtoTargetModelClass = void 0;
11
+ exports.UpsertManagedModelResolutionRuleDtoTargetModelClass = {
12
+ coding: 'coding',
13
+ review: 'review',
14
+ creative: 'creative',
15
+ planning: 'planning',
16
+ utility: 'utility',
17
+ };
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * LLM Registry API
5
5
  * Central registry for LLM providers, models, and per-project model configuration
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  /**
9
9
  * One of: agent | agent-composition | model | model-resolution-rule from this producer.
@@ -16,7 +16,6 @@ export declare const XemaObjectKind: {
16
16
  readonly 'audience-policy': "audience-policy";
17
17
  readonly 'external-subject': "external-subject";
18
18
  readonly 'delegated-session': "delegated-session";
19
- readonly 'agent-kernel': "agent-kernel";
20
19
  readonly agent: "agent";
21
20
  readonly skill: "skill";
22
21
  readonly tool: "tool";
@@ -4,7 +4,7 @@
4
4
  * Do not edit manually.
5
5
  * LLM Registry API
6
6
  * Central registry for LLM providers, models, and per-project model configuration
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.XemaObjectKind = void 0;
@@ -15,7 +15,6 @@ exports.XemaObjectKind = {
15
15
  'audience-policy': 'audience-policy',
16
16
  'external-subject': 'external-subject',
17
17
  'delegated-session': 'delegated-session',
18
- 'agent-kernel': 'agent-kernel',
19
18
  agent: 'agent',
20
19
  skill: 'skill',
21
20
  tool: 'tool',
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * LLM Registry API
5
5
  * Central registry for LLM providers, models, and per-project model configuration
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { ObjectLifecycle } from './objectLifecycle.js';
9
9
  import type { XemaObjectKind } from './xemaObjectKind.js';
@@ -21,6 +21,6 @@ export interface XemaObjectResponseDto {
21
21
  version: string;
22
22
  /** Always `published` — the projection only carries resolvable rows. */
23
23
  lifecycle: ObjectLifecycle;
24
- /** Kind-specific payload. Narrows to AgentPayloadDto | CompositionPayloadDto | ModelPayloadDto | ModelResolutionRulePayloadDto based on `kind`. */
24
+ /** Kind-specific payload. Narrows to AgentKernelPayloadDto | AgentPayloadDto | ModelPayloadDto | ModelResolutionRulePayloadDto based on `kind`. */
25
25
  payload: XemaObjectResponseDtoPayload;
26
26
  }
@@ -3,10 +3,10 @@
3
3
  * Do not edit manually.
4
4
  * LLM Registry API
5
5
  * Central registry for LLM providers, models, and per-project model configuration
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  /**
9
- * Kind-specific payload. Narrows to AgentPayloadDto | CompositionPayloadDto | ModelPayloadDto | ModelResolutionRulePayloadDto based on `kind`.
9
+ * Kind-specific payload. Narrows to AgentKernelPayloadDto | AgentPayloadDto | ModelPayloadDto | ModelResolutionRulePayloadDto based on `kind`.
10
10
  */
11
11
  export type XemaObjectResponseDtoPayload = {
12
12
  [key: string]: unknown;
@@ -4,6 +4,6 @@
4
4
  * Do not edit manually.
5
5
  * LLM Registry API
6
6
  * Central registry for LLM providers, models, and per-project model configuration
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * LLM Registry API
5
5
  * Central registry for LLM providers, models, and per-project model configuration
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  import type { SpaceKind } from './spaceKind.js';
9
9
  export interface XemaSpaceRefDto {
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * LLM Registry API
5
5
  * Central registry for LLM providers, models, and per-project model configuration
6
- * OpenAPI spec version: 0.1.0
6
+ * OpenAPI spec version: 0.1.2
7
7
  */
8
8
  export interface XemaSubjectRefDto {
9
9
  kind: string;
@@ -4,6 +4,6 @@
4
4
  * Do not edit manually.
5
5
  * LLM Registry API
6
6
  * Central registry for LLM providers, models, and per-project model configuration
7
- * OpenAPI spec version: 0.1.0
7
+ * OpenAPI spec version: 0.1.2
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@xemahq/llm-registry-internal-api-client",
3
- "version": "0.2.0",
3
+ "version": "0.5.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "publishConfig": {
10
- "registry": "https://registry.npmjs.org/",
11
- "access": "public"
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
12
12
  },
13
13
  "devDependencies": {
14
14
  "typescript": "5.9.3"
@@ -19,9 +19,19 @@
19
19
  "service": "llm-registry-api",
20
20
  "biome": "agent-runtime",
21
21
  "target": "server",
22
- "generator": "@xemahq/api-client-generator@0.1.2",
22
+ "generator": "@xemahq/api-client-generator@0.2.0",
23
23
  "source": "openapi.internal.json"
24
24
  },
25
+ "license": "LicenseRef-Xema-BSL-1.1",
26
+ "author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
27
+ "homepage": "https://xema.dev",
28
+ "bugs": "https://github.com/xema-dev/xema-community/issues",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/xema-dev/xema-community.git",
32
+ "directory": "packages/clients/llm-registry-internal-api"
33
+ },
34
+ "description": "Generated internal API client for the Xema llm-registry-api service.",
25
35
  "scripts": {
26
36
  "build": "tsc -p tsconfig.json"
27
37
  }
@@ -1,14 +0,0 @@
1
- /**
2
- * Generated by orval v8.16.0 🍺
3
- * Do not edit manually.
4
- * LLM Registry API
5
- * Central registry for LLM providers, models, and per-project model configuration
6
- * OpenAPI spec version: 0.1.0
7
- */
8
- import type { CompositionInvokeRequestDto } from '../../models';
9
- export declare const getInvocationControllerInvokeUrl: () => string;
10
- /**
11
- * Validates the request, dedups on `(orgId, idempotencyKey)`, resolves the composition, dispatches one agent turn through agent-session-api, enforces the output schema when `outputSchemaRef` is set, writes a terminal Invocation record, and returns the root structured output as `output`.
12
- * @summary Invoke a published composition synchronously and return its terminal result.
13
- */
14
- export declare const invocationControllerInvoke: (compositionInvokeRequestDto: CompositionInvokeRequestDto, options?: RequestInit) => Promise<void>;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.invocationControllerInvoke = exports.getInvocationControllerInvokeUrl = void 0;
4
- const custom_fetch_1 = require("../../custom-fetch");
5
- const getInvocationControllerInvokeUrl = () => {
6
- return `/internal/invocations`;
7
- };
8
- exports.getInvocationControllerInvokeUrl = getInvocationControllerInvokeUrl;
9
- /**
10
- * Validates the request, dedups on `(orgId, idempotencyKey)`, resolves the composition, dispatches one agent turn through agent-session-api, enforces the output schema when `outputSchemaRef` is set, writes a terminal Invocation record, and returns the root structured output as `output`.
11
- * @summary Invoke a published composition synchronously and return its terminal result.
12
- */
13
- const invocationControllerInvoke = async (compositionInvokeRequestDto, options) => {
14
- return (0, custom_fetch_1.customFetch)((0, exports.getInvocationControllerInvokeUrl)(), {
15
- ...options,
16
- method: 'POST',
17
- headers: { 'Content-Type': 'application/json', ...options?.headers },
18
- body: JSON.stringify(compositionInvokeRequestDto)
19
- });
20
- };
21
- exports.invocationControllerInvoke = invocationControllerInvoke;