@xemahq/llm-registry-internal-api-client 0.3.0 → 0.6.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 (96) hide show
  1. package/LICENSE +0 -1
  2. package/dist/custom-fetch.js +7 -3
  3. package/dist/endpoints/agent-launch-preparation/agent-launch-preparation.d.ts +13 -0
  4. package/dist/endpoints/agent-launch-preparation/agent-launch-preparation.js +20 -0
  5. package/dist/endpoints/contribution-sync/contribution-sync.d.ts +2 -0
  6. package/dist/endpoints/contribution-sync/contribution-sync.js +22 -0
  7. package/dist/endpoints/describe-objects/describe-objects.d.ts +3 -3
  8. package/dist/endpoints/describe-objects/describe-objects.js +1 -1
  9. package/dist/endpoints/internal-agent-invocation/internal-agent-invocation.d.ts +1 -1
  10. package/dist/endpoints/internal-agent-invocation/internal-agent-invocation.js +1 -1
  11. package/dist/endpoints/internal-managed-model-resolution-rules/internal-managed-model-resolution-rules.d.ts +32 -0
  12. package/dist/endpoints/internal-managed-model-resolution-rules/internal-managed-model-resolution-rules.js +68 -0
  13. package/dist/index.d.ts +4 -1
  14. package/dist/index.js +3 -0
  15. package/dist/models/agentInvokeRequestDto.d.ts +2 -2
  16. package/dist/models/agentInvokeRequestDtoInput.d.ts +1 -1
  17. package/dist/models/agentInvokeRequestDtoInput.js +1 -1
  18. package/dist/models/compiledLaunchPlanPinResponseDto.d.ts +12 -0
  19. package/dist/models/{compositionInvokeRequestDtoInput.js → compiledLaunchPlanPinResponseDto.js} +1 -1
  20. package/dist/models/compiledLaunchPlanPinResponseDtoDataEnvelope.d.ts +11 -0
  21. package/dist/models/defaultTargetRefDto.d.ts +13 -0
  22. package/dist/models/defaultTargetRefDto.js +9 -0
  23. package/dist/models/describeObjectsResponseDto.d.ts +1 -1
  24. package/dist/models/describeObjectsResponseDtoDataEnvelope.d.ts +11 -0
  25. package/dist/models/describeObjectsResponseDtoDataEnvelope.js +2 -0
  26. package/dist/models/errorDetailsDto.d.ts +1 -1
  27. package/dist/models/errorDetailsDtoDetails.d.ts +1 -1
  28. package/dist/models/errorDetailsDtoDetails.js +1 -1
  29. package/dist/models/errorPayloadDto.d.ts +1 -1
  30. package/dist/models/errorResponseDto.d.ts +1 -1
  31. package/dist/models/executionRequirementsDto.d.ts +3 -3
  32. package/dist/models/executionRequirementsDtoMode.d.ts +2 -2
  33. package/dist/models/executionRequirementsDtoMode.js +1 -1
  34. package/dist/models/executionRequirementsDtoPriority.d.ts +2 -2
  35. package/dist/models/executionRequirementsDtoPriority.js +1 -1
  36. package/dist/models/index.d.ts +24 -1
  37. package/dist/models/index.js +24 -1
  38. package/dist/models/invocationLimitsDto.d.ts +1 -1
  39. package/dist/models/invocationLimitsDto.js +1 -1
  40. package/dist/models/{executionRequirementsDtoIsolation.d.ts → isolationLevel.d.ts} +3 -3
  41. package/dist/models/{executionRequirementsDtoIsolation.js → isolationLevel.js} +3 -3
  42. package/dist/models/modelResolutionRuleResponseDto.d.ts +76 -0
  43. package/dist/models/modelResolutionRuleResponseDto.js +2 -0
  44. package/dist/models/modelResolutionRuleResponseDtoDataEnvelope.d.ts +11 -0
  45. package/dist/models/modelResolutionRuleResponseDtoDataEnvelope.js +2 -0
  46. package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass.d.ts +19 -0
  47. package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass.js +17 -0
  48. package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind.d.ts +16 -0
  49. package/dist/models/modelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind.js +14 -0
  50. package/dist/models/modelResolutionRuleResponseDtoTargetKind.d.ts +12 -0
  51. package/dist/models/modelResolutionRuleResponseDtoTargetKind.js +14 -0
  52. package/dist/models/modelResolutionRuleResponseDtoTargetModelClass.d.ts +18 -0
  53. package/dist/models/modelResolutionRuleResponseDtoTargetModelClass.js +17 -0
  54. package/dist/models/modelResolutionSelectorDto.d.ts +28 -0
  55. package/dist/models/modelResolutionSelectorDto.js +2 -0
  56. package/dist/models/modelResolutionSelectorDtoExtra.d.ts +13 -0
  57. package/dist/models/modelResolutionSelectorDtoExtra.js +9 -0
  58. package/dist/models/modelResolutionSelectorDtoModelCapability.d.ts +19 -0
  59. package/dist/models/modelResolutionSelectorDtoModelCapability.js +18 -0
  60. package/dist/models/modelResolutionSelectorDtoModelClass.d.ts +18 -0
  61. package/dist/models/modelResolutionSelectorDtoModelClass.js +17 -0
  62. package/dist/models/modelResolutionSelectorResponseDto.d.ts +28 -0
  63. package/dist/models/modelResolutionSelectorResponseDto.js +2 -0
  64. package/dist/models/{compositionInvokeRequestDtoInput.d.ts → modelResolutionSelectorResponseDtoExtra.d.ts} +4 -4
  65. package/dist/models/modelResolutionSelectorResponseDtoExtra.js +9 -0
  66. package/dist/models/modelResolutionSelectorResponseDtoModelCapability.d.ts +19 -0
  67. package/dist/models/modelResolutionSelectorResponseDtoModelCapability.js +18 -0
  68. package/dist/models/modelResolutionSelectorResponseDtoModelClass.d.ts +18 -0
  69. package/dist/models/modelResolutionSelectorResponseDtoModelClass.js +17 -0
  70. package/dist/models/objectLifecycle.d.ts +2 -2
  71. package/dist/models/objectLifecycle.js +1 -1
  72. package/dist/models/pinCompiledLaunchPlanDto.d.ts +11 -0
  73. package/dist/models/pinCompiledLaunchPlanDto.js +9 -0
  74. package/dist/models/repointDefaultTargetDto.d.ts +12 -0
  75. package/dist/models/repointDefaultTargetDto.js +2 -0
  76. package/dist/models/spaceKind.d.ts +2 -2
  77. package/dist/models/spaceKind.js +1 -1
  78. package/dist/models/upsertManagedModelResolutionRuleDto.d.ts +28 -0
  79. package/dist/models/upsertManagedModelResolutionRuleDto.js +2 -0
  80. package/dist/models/upsertManagedModelResolutionRuleDtoTargetKind.d.ts +15 -0
  81. package/dist/models/upsertManagedModelResolutionRuleDtoTargetKind.js +14 -0
  82. package/dist/models/upsertManagedModelResolutionRuleDtoTargetModelClass.d.ts +18 -0
  83. package/dist/models/upsertManagedModelResolutionRuleDtoTargetModelClass.js +17 -0
  84. package/dist/models/xemaObjectKind.d.ts +2 -3
  85. package/dist/models/xemaObjectKind.js +1 -2
  86. package/dist/models/xemaObjectResponseDto.d.ts +1 -1
  87. package/dist/models/xemaObjectResponseDtoPayload.d.ts +1 -1
  88. package/dist/models/xemaObjectResponseDtoPayload.js +1 -1
  89. package/dist/models/xemaSpaceRefDto.d.ts +1 -1
  90. package/dist/models/xemaSubjectRefDto.d.ts +1 -1
  91. package/dist/models/xemaSubjectRefDto.js +1 -1
  92. package/package.json +14 -3
  93. package/dist/endpoints/internal-composition-invocation/internal-composition-invocation.d.ts +0 -14
  94. package/dist/endpoints/internal-composition-invocation/internal-composition-invocation.js +0 -21
  95. package/dist/models/compositionInvokeRequestDto.d.ts +0 -24
  96. /package/dist/models/{compositionInvokeRequestDto.js → compiledLaunchPlanPinResponseDtoDataEnvelope.js} +0 -0
package/LICENSE CHANGED
@@ -116,7 +116,6 @@ the interpretation of, the Additional Use Grant set out above.
116
116
  and effect. The Licensor reserves all rights not expressly granted
117
117
  by this License.
118
118
 
119
-
120
119
  Change Date: Four years from the date the specific version of the Licensed
121
120
  Work is first publicly released by Licensor.
122
121
 
@@ -87,7 +87,10 @@ const customFetch = async (url, options) => {
87
87
  if (response.status === 401 && config.onUnauthorized && attempt === 0) {
88
88
  await config.onUnauthorized();
89
89
  const refreshedHeaders = await buildHeaders(config, options.headers);
90
- const retryResponse = await fetch(fullUrl, { ...options, headers: refreshedHeaders });
90
+ const retryResponse = await fetch(fullUrl, {
91
+ ...options,
92
+ headers: refreshedHeaders,
93
+ });
91
94
  const retryBody = await parseBody(retryResponse);
92
95
  if (retryResponse.status >= 400) {
93
96
  throw new ClientError(retryResponse.status, fullUrl, retryBody);
@@ -95,7 +98,8 @@ const customFetch = async (url, options) => {
95
98
  return retryBody;
96
99
  }
97
100
  // Non-retryable status — return or throw
98
- if (!RETRYABLE_STATUSES.includes(response.status) || attempt >= maxRetries) {
101
+ if (!RETRYABLE_STATUSES.includes(response.status) ||
102
+ attempt >= maxRetries) {
99
103
  const body = await parseBody(response);
100
104
  if (response.status >= 400) {
101
105
  throw new ClientError(response.status, fullUrl, body);
@@ -147,6 +151,6 @@ function addJitter(delay) {
147
151
  return delay + (Math.random() * 2 - 1) * delay * 0.25;
148
152
  }
149
153
  function sleep(ms) {
150
- return new Promise(resolve => setTimeout(resolve, ms));
154
+ return new Promise((resolve) => setTimeout(resolve, ms));
151
155
  }
152
156
  exports.default = exports.customFetch;
@@ -0,0 +1,13 @@
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.3
7
+ */
8
+ import type { CompiledLaunchPlanPinResponseDtoDataEnvelope, PinCompiledLaunchPlanDto } from '../../models';
9
+ export declare const getInternalAgentLaunchPlanControllerPinUrl: (ref: string) => string;
10
+ /**
11
+ * @summary Write-once pin a verified compiled launch-plan hash and RuntimeTemplateKey hash onto an immutable published Agent revision.
12
+ */
13
+ export declare const internalAgentLaunchPlanControllerPin: (ref: string, pinCompiledLaunchPlanDto: PinCompiledLaunchPlanDto, options?: RequestInit) => Promise<CompiledLaunchPlanPinResponseDtoDataEnvelope>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.internalAgentLaunchPlanControllerPin = exports.getInternalAgentLaunchPlanControllerPinUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getInternalAgentLaunchPlanControllerPinUrl = (ref) => {
6
+ return `/agents/${ref}/compiled-launch-plan`;
7
+ };
8
+ exports.getInternalAgentLaunchPlanControllerPinUrl = getInternalAgentLaunchPlanControllerPinUrl;
9
+ /**
10
+ * @summary Write-once pin a verified compiled launch-plan hash and RuntimeTemplateKey hash onto an immutable published Agent revision.
11
+ */
12
+ const internalAgentLaunchPlanControllerPin = async (ref, pinCompiledLaunchPlanDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getInternalAgentLaunchPlanControllerPinUrl)(ref), {
14
+ ...options,
15
+ method: 'PUT',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(pinCompiledLaunchPlanDto),
18
+ });
19
+ };
20
+ exports.internalAgentLaunchPlanControllerPin = internalAgentLaunchPlanControllerPin;
@@ -0,0 +1,2 @@
1
+ export declare const getContributionSyncControllerSyncUrl: () => string;
2
+ export declare const contributionSyncControllerSync: (options?: RequestInit) => Promise<void>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.contributionSyncControllerSync = exports.getContributionSyncControllerSyncUrl = void 0;
4
+ /**
5
+ * Generated by orval v8.16.0 🍺
6
+ * Do not edit manually.
7
+ * LLM Registry API
8
+ * Central registry for LLM providers, models, and per-project model configuration
9
+ * OpenAPI spec version: 0.1.3
10
+ */
11
+ const custom_fetch_1 = require("../../custom-fetch");
12
+ const getContributionSyncControllerSyncUrl = () => {
13
+ return `/contributions/sync`;
14
+ };
15
+ exports.getContributionSyncControllerSyncUrl = getContributionSyncControllerSyncUrl;
16
+ const contributionSyncControllerSync = async (options) => {
17
+ return (0, custom_fetch_1.customFetch)((0, exports.getContributionSyncControllerSyncUrl)(), {
18
+ ...options,
19
+ method: 'PUT',
20
+ });
21
+ };
22
+ exports.contributionSyncControllerSync = contributionSyncControllerSync;
@@ -3,12 +3,12 @@
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.3
7
7
  */
8
- import type { DescribeObjectsResponseDto } from '../../models';
8
+ import type { DescribeObjectsResponseDtoDataEnvelope } from '../../models';
9
9
  export declare const getDescribeObjectsControllerDescribeUrl: () => string;
10
10
  /**
11
11
  * Wire shape mirrors the `xema.object-registry.projection.published.v1` CloudEvent `data` field. Consumers (object-registry-api) replace their cache slice for `source` atomically on each fetch.
12
12
  * @summary Return this service's slice of the XemaObject universe (agents, compositions, models, rules).
13
13
  */
14
- export declare const describeObjectsControllerDescribe: (options?: RequestInit) => Promise<DescribeObjectsResponseDto>;
14
+ export declare const describeObjectsControllerDescribe: (options?: RequestInit) => Promise<DescribeObjectsResponseDtoDataEnvelope>;
@@ -13,7 +13,7 @@ exports.getDescribeObjectsControllerDescribeUrl = getDescribeObjectsControllerDe
13
13
  const describeObjectsControllerDescribe = async (options) => {
14
14
  return (0, custom_fetch_1.customFetch)((0, exports.getDescribeObjectsControllerDescribeUrl)(), {
15
15
  ...options,
16
- method: 'GET'
16
+ method: 'GET',
17
17
  });
18
18
  };
19
19
  exports.describeObjectsControllerDescribe = describeObjectsControllerDescribe;
@@ -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.3
7
7
  */
8
8
  import type { AgentInvokeRequestDto } from '../../models';
9
9
  export declare const getInvocationControllerInvokeUrl: () => string;
@@ -15,7 +15,7 @@ const invocationControllerInvoke = async (agentInvokeRequestDto, options) => {
15
15
  ...options,
16
16
  method: 'POST',
17
17
  headers: { 'Content-Type': 'application/json', ...options?.headers },
18
- body: JSON.stringify(agentInvokeRequestDto)
18
+ body: JSON.stringify(agentInvokeRequestDto),
19
19
  });
20
20
  };
21
21
  exports.invocationControllerInvoke = invocationControllerInvoke;
@@ -0,0 +1,32 @@
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.3
7
+ */
8
+ import type { ModelResolutionRuleResponseDtoDataEnvelope, RepointDefaultTargetDto, UpsertManagedModelResolutionRuleDto } from '../../models';
9
+ export declare const getManagedModelResolutionRuleControllerUpsertUrl: (orgId: string) => string;
10
+ /**
11
+ * Upserts a rule keyed by (orgId, owner, managedKey). The owner is derived from the authenticated service subject. Re-PUT with the same managedKey updates the rule in place. A managed rule can never be the org default.
12
+ * @summary Idempotently upsert a service-owned Model Resolution Matrix rule
13
+ */
14
+ export declare const managedModelResolutionRuleControllerUpsert: (orgId: string, upsertManagedModelResolutionRuleDto: UpsertManagedModelResolutionRuleDto, options?: RequestInit) => Promise<ModelResolutionRuleResponseDtoDataEnvelope>;
15
+ export declare const getManagedModelResolutionRuleControllerRepointDefaultTargetUrl: (orgId: string) => string;
16
+ /**
17
+ * Repoints the TARGET of the org's EXISTING single default rule (empty selector) to a concrete model. Does NOT create a second default, change the selector, or transfer ownership — the rule stays provisioning-owned. Captures the prior target on the first override (for revert) under the authenticated service subject; a second service is refused (403). Fail-fast 404 if the org has no default rule.
18
+ * @summary Repoint ONLY the org default rule's target (managed steer)
19
+ */
20
+ export declare const managedModelResolutionRuleControllerRepointDefaultTarget: (orgId: string, repointDefaultTargetDto: RepointDefaultTargetDto, options?: RequestInit) => Promise<ModelResolutionRuleResponseDtoDataEnvelope>;
21
+ export declare const getManagedModelResolutionRuleControllerRevertDefaultTargetUrl: (orgId: string) => string;
22
+ /**
23
+ * Restores the target captured before the FIRST service override and clears all override state. Idempotent — an absent override is a no-op success. Only the service that set the override may clear it (403 otherwise). Fail-fast 404 if the org has no default rule.
24
+ * @summary Revert the org default rule's target to its pre-override value
25
+ */
26
+ export declare const managedModelResolutionRuleControllerRevertDefaultTarget: (orgId: string, options?: RequestInit) => Promise<ModelResolutionRuleResponseDtoDataEnvelope>;
27
+ export declare const getManagedModelResolutionRuleControllerRemoveUrl: (orgId: string, managedKey: string) => string;
28
+ /**
29
+ * Deletes the caller's own rule identified by (orgId, owner, managedKey). Idempotent — removing a non-existent rule succeeds. Scoped to the authenticated service's ownership; a service can only delete its own rules.
30
+ * @summary Remove a service-owned Model Resolution Matrix rule
31
+ */
32
+ export declare const managedModelResolutionRuleControllerRemove: (orgId: string, managedKey: string, options?: RequestInit) => Promise<unknown>;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.managedModelResolutionRuleControllerRemove = exports.getManagedModelResolutionRuleControllerRemoveUrl = exports.managedModelResolutionRuleControllerRevertDefaultTarget = exports.getManagedModelResolutionRuleControllerRevertDefaultTargetUrl = exports.managedModelResolutionRuleControllerRepointDefaultTarget = exports.getManagedModelResolutionRuleControllerRepointDefaultTargetUrl = exports.managedModelResolutionRuleControllerUpsert = exports.getManagedModelResolutionRuleControllerUpsertUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getManagedModelResolutionRuleControllerUpsertUrl = (orgId) => {
6
+ return `/internal/orgs/${orgId}/model-resolution-rules`;
7
+ };
8
+ exports.getManagedModelResolutionRuleControllerUpsertUrl = getManagedModelResolutionRuleControllerUpsertUrl;
9
+ /**
10
+ * Upserts a rule keyed by (orgId, owner, managedKey). The owner is derived from the authenticated service subject. Re-PUT with the same managedKey updates the rule in place. A managed rule can never be the org default.
11
+ * @summary Idempotently upsert a service-owned Model Resolution Matrix rule
12
+ */
13
+ const managedModelResolutionRuleControllerUpsert = async (orgId, upsertManagedModelResolutionRuleDto, options) => {
14
+ return (0, custom_fetch_1.customFetch)((0, exports.getManagedModelResolutionRuleControllerUpsertUrl)(orgId), {
15
+ ...options,
16
+ method: 'PUT',
17
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
18
+ body: JSON.stringify(upsertManagedModelResolutionRuleDto),
19
+ });
20
+ };
21
+ exports.managedModelResolutionRuleControllerUpsert = managedModelResolutionRuleControllerUpsert;
22
+ const getManagedModelResolutionRuleControllerRepointDefaultTargetUrl = (orgId) => {
23
+ return `/internal/orgs/${orgId}/model-resolution-rules/default-target`;
24
+ };
25
+ exports.getManagedModelResolutionRuleControllerRepointDefaultTargetUrl = getManagedModelResolutionRuleControllerRepointDefaultTargetUrl;
26
+ /**
27
+ * Repoints the TARGET of the org's EXISTING single default rule (empty selector) to a concrete model. Does NOT create a second default, change the selector, or transfer ownership — the rule stays provisioning-owned. Captures the prior target on the first override (for revert) under the authenticated service subject; a second service is refused (403). Fail-fast 404 if the org has no default rule.
28
+ * @summary Repoint ONLY the org default rule's target (managed steer)
29
+ */
30
+ const managedModelResolutionRuleControllerRepointDefaultTarget = async (orgId, repointDefaultTargetDto, options) => {
31
+ return (0, custom_fetch_1.customFetch)((0, exports.getManagedModelResolutionRuleControllerRepointDefaultTargetUrl)(orgId), {
32
+ ...options,
33
+ method: 'PUT',
34
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
35
+ body: JSON.stringify(repointDefaultTargetDto),
36
+ });
37
+ };
38
+ exports.managedModelResolutionRuleControllerRepointDefaultTarget = managedModelResolutionRuleControllerRepointDefaultTarget;
39
+ const getManagedModelResolutionRuleControllerRevertDefaultTargetUrl = (orgId) => {
40
+ return `/internal/orgs/${orgId}/model-resolution-rules/default-target`;
41
+ };
42
+ exports.getManagedModelResolutionRuleControllerRevertDefaultTargetUrl = getManagedModelResolutionRuleControllerRevertDefaultTargetUrl;
43
+ /**
44
+ * Restores the target captured before the FIRST service override and clears all override state. Idempotent — an absent override is a no-op success. Only the service that set the override may clear it (403 otherwise). Fail-fast 404 if the org has no default rule.
45
+ * @summary Revert the org default rule's target to its pre-override value
46
+ */
47
+ const managedModelResolutionRuleControllerRevertDefaultTarget = async (orgId, options) => {
48
+ return (0, custom_fetch_1.customFetch)((0, exports.getManagedModelResolutionRuleControllerRevertDefaultTargetUrl)(orgId), {
49
+ ...options,
50
+ method: 'DELETE',
51
+ });
52
+ };
53
+ exports.managedModelResolutionRuleControllerRevertDefaultTarget = managedModelResolutionRuleControllerRevertDefaultTarget;
54
+ const getManagedModelResolutionRuleControllerRemoveUrl = (orgId, managedKey) => {
55
+ return `/internal/orgs/${orgId}/model-resolution-rules/${managedKey}`;
56
+ };
57
+ exports.getManagedModelResolutionRuleControllerRemoveUrl = getManagedModelResolutionRuleControllerRemoveUrl;
58
+ /**
59
+ * Deletes the caller's own rule identified by (orgId, owner, managedKey). Idempotent — removing a non-existent rule succeeds. Scoped to the authenticated service's ownership; a service can only delete its own rules.
60
+ * @summary Remove a service-owned Model Resolution Matrix rule
61
+ */
62
+ const managedModelResolutionRuleControllerRemove = async (orgId, managedKey, options) => {
63
+ return (0, custom_fetch_1.customFetch)((0, exports.getManagedModelResolutionRuleControllerRemoveUrl)(orgId, managedKey), {
64
+ ...options,
65
+ method: 'DELETE',
66
+ });
67
+ };
68
+ exports.managedModelResolutionRuleControllerRemove = managedModelResolutionRuleControllerRemove;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
1
+ export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig, } from './custom-fetch';
2
2
  export * from './models';
3
+ export * from './endpoints/agent-launch-preparation/agent-launch-preparation';
4
+ export * from './endpoints/contribution-sync/contribution-sync';
3
5
  export * from './endpoints/describe-objects/describe-objects';
4
6
  export * from './endpoints/internal-agent-invocation/internal-agent-invocation';
7
+ export * from './endpoints/internal-managed-model-resolution-rules/internal-managed-model-resolution-rules';
package/dist/index.js CHANGED
@@ -22,5 +22,8 @@ Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: funct
22
22
  Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
23
23
  Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
24
24
  __exportStar(require("./models"), exports);
25
+ __exportStar(require("./endpoints/agent-launch-preparation/agent-launch-preparation"), exports);
26
+ __exportStar(require("./endpoints/contribution-sync/contribution-sync"), exports);
25
27
  __exportStar(require("./endpoints/describe-objects/describe-objects"), exports);
26
28
  __exportStar(require("./endpoints/internal-agent-invocation/internal-agent-invocation"), exports);
29
+ __exportStar(require("./endpoints/internal-managed-model-resolution-rules/internal-managed-model-resolution-rules"), exports);
@@ -3,12 +3,12 @@
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.3
7
7
  */
8
8
  import type { AgentInvokeRequestDtoInput } from './agentInvokeRequestDtoInput.js';
9
9
  import type { ExecutionRequirementsDto } from './executionRequirementsDto.js';
10
10
  export interface AgentInvokeRequestDto {
11
- /** Agent ref (`slug` or `slug@version`) to execute. */
11
+ /** Agent ref (`slug` or `slug@generatedRevisionNumber`) to execute. */
12
12
  agentRef: string;
13
13
  /** Tenant scope: organization id. */
14
14
  orgId: string;
@@ -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.3
7
7
  */
8
8
  /**
9
9
  * Input payload handed to the composition root as the turn content.
@@ -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.3
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
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.3
7
+ */
8
+ export interface CompiledLaunchPlanPinResponseDto {
9
+ compiledLaunchPlanHash: string;
10
+ runtimeTemplateHash: string;
11
+ agentRef: string;
12
+ }
@@ -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.3
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
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.3
7
+ */
8
+ import type { CompiledLaunchPlanPinResponseDto } from './compiledLaunchPlanPinResponseDto.js';
9
+ export interface CompiledLaunchPlanPinResponseDtoDataEnvelope {
10
+ data: CompiledLaunchPlanPinResponseDto;
11
+ }
@@ -0,0 +1,13 @@
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.3
7
+ */
8
+ export interface DefaultTargetRefDto {
9
+ /** Concrete model id the default rule should resolve to. */
10
+ modelId: string;
11
+ /** Provider slug disambiguating the concrete model. Optional partner to modelId. */
12
+ providerSlug?: string;
13
+ }
@@ -0,0 +1,9 @@
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.3
8
+ */
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.3
7
7
  */
8
8
  import type { XemaObjectResponseDto } from './xemaObjectResponseDto.js';
9
9
  export interface DescribeObjectsResponseDto {
@@ -0,0 +1,11 @@
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.3
7
+ */
8
+ import type { DescribeObjectsResponseDto } from './describeObjectsResponseDto.js';
9
+ export interface DescribeObjectsResponseDtoDataEnvelope {
10
+ data: DescribeObjectsResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ 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.3
7
7
  */
8
8
  import type { ErrorDetailsDtoDetails } from './errorDetailsDtoDetails.js';
9
9
  export interface ErrorDetailsDto {
@@ -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.3
7
7
  */
8
8
  /**
9
9
  * @nullable
@@ -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.3
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.3
7
7
  */
8
8
  import type { ErrorDetailsDto } from './errorDetailsDto.js';
9
9
  export interface ErrorPayloadDto {
@@ -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.3
7
7
  */
8
8
  import type { ErrorPayloadDto } from './errorPayloadDto.js';
9
9
  export interface ErrorResponseDto {
@@ -3,17 +3,17 @@
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.3
7
7
  */
8
- import type { ExecutionRequirementsDtoIsolation } from './executionRequirementsDtoIsolation.js';
9
8
  import type { ExecutionRequirementsDtoMode } from './executionRequirementsDtoMode.js';
10
9
  import type { ExecutionRequirementsDtoPriority } from './executionRequirementsDtoPriority.js';
11
10
  import type { InvocationLimitsDto } from './invocationLimitsDto.js';
11
+ import type { IsolationLevel } from './isolationLevel.js';
12
12
  export interface ExecutionRequirementsDto {
13
13
  /** Requested execution mode. Hint — the platform may override by policy. Phase 1 supports `sync` only. */
14
14
  mode?: ExecutionRequirementsDtoMode;
15
15
  /** Thread isolation level. `strict` = fresh, never-reused thread context per invocation. */
16
- isolation: ExecutionRequirementsDtoIsolation;
16
+ isolation: IsolationLevel;
17
17
  /** Target latency in ms (mode-selection hint). */
18
18
  latencyTargetMs?: number;
19
19
  /** Scheduling priority hint. */
@@ -3,12 +3,12 @@
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.3
7
7
  */
8
8
  /**
9
9
  * Requested execution mode. Hint — the platform may override by policy. Phase 1 supports `sync` only.
10
10
  */
11
- export type ExecutionRequirementsDtoMode = typeof ExecutionRequirementsDtoMode[keyof typeof ExecutionRequirementsDtoMode];
11
+ export type ExecutionRequirementsDtoMode = (typeof ExecutionRequirementsDtoMode)[keyof typeof ExecutionRequirementsDtoMode];
12
12
  export declare const ExecutionRequirementsDtoMode: {
13
13
  readonly sync: "sync";
14
14
  readonly async: "async";
@@ -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.3
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.ExecutionRequirementsDtoMode = void 0;
@@ -3,12 +3,12 @@
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.3
7
7
  */
8
8
  /**
9
9
  * Scheduling priority hint.
10
10
  */
11
- export type ExecutionRequirementsDtoPriority = typeof ExecutionRequirementsDtoPriority[keyof typeof ExecutionRequirementsDtoPriority];
11
+ export type ExecutionRequirementsDtoPriority = (typeof ExecutionRequirementsDtoPriority)[keyof typeof ExecutionRequirementsDtoPriority];
12
12
  export declare const ExecutionRequirementsDtoPriority: {
13
13
  readonly low: "low";
14
14
  readonly normal: "normal";
@@ -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.3
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.ExecutionRequirementsDtoPriority = void 0;
@@ -1,17 +1,40 @@
1
1
  export * from './agentInvokeRequestDto';
2
2
  export * from './agentInvokeRequestDtoInput';
3
+ export * from './compiledLaunchPlanPinResponseDto';
4
+ export * from './compiledLaunchPlanPinResponseDtoDataEnvelope';
5
+ export * from './defaultTargetRefDto';
3
6
  export * from './describeObjectsResponseDto';
7
+ export * from './describeObjectsResponseDtoDataEnvelope';
4
8
  export * from './errorDetailsDto';
5
9
  export * from './errorDetailsDtoDetails';
6
10
  export * from './errorPayloadDto';
7
11
  export * from './errorResponseDto';
8
12
  export * from './executionRequirementsDto';
9
- export * from './executionRequirementsDtoIsolation';
10
13
  export * from './executionRequirementsDtoMode';
11
14
  export * from './executionRequirementsDtoPriority';
12
15
  export * from './invocationLimitsDto';
16
+ export * from './isolationLevel';
17
+ export * from './modelResolutionRuleResponseDto';
18
+ export * from './modelResolutionRuleResponseDtoDataEnvelope';
19
+ export * from './modelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass';
20
+ export * from './modelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind';
21
+ export * from './modelResolutionRuleResponseDtoTargetKind';
22
+ export * from './modelResolutionRuleResponseDtoTargetModelClass';
23
+ export * from './modelResolutionSelectorDto';
24
+ export * from './modelResolutionSelectorDtoExtra';
25
+ export * from './modelResolutionSelectorDtoModelCapability';
26
+ export * from './modelResolutionSelectorDtoModelClass';
27
+ export * from './modelResolutionSelectorResponseDto';
28
+ export * from './modelResolutionSelectorResponseDtoExtra';
29
+ export * from './modelResolutionSelectorResponseDtoModelCapability';
30
+ export * from './modelResolutionSelectorResponseDtoModelClass';
13
31
  export * from './objectLifecycle';
32
+ export * from './pinCompiledLaunchPlanDto';
33
+ export * from './repointDefaultTargetDto';
14
34
  export * from './spaceKind';
35
+ export * from './upsertManagedModelResolutionRuleDto';
36
+ export * from './upsertManagedModelResolutionRuleDtoTargetKind';
37
+ export * from './upsertManagedModelResolutionRuleDtoTargetModelClass';
15
38
  export * from './xemaObjectKind';
16
39
  export * from './xemaObjectResponseDto';
17
40
  export * from './xemaObjectResponseDtoPayload';
@@ -17,18 +17,41 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
18
18
  __exportStar(require("./agentInvokeRequestDto"), exports);
19
19
  __exportStar(require("./agentInvokeRequestDtoInput"), exports);
20
+ __exportStar(require("./compiledLaunchPlanPinResponseDto"), exports);
21
+ __exportStar(require("./compiledLaunchPlanPinResponseDtoDataEnvelope"), exports);
22
+ __exportStar(require("./defaultTargetRefDto"), exports);
20
23
  __exportStar(require("./describeObjectsResponseDto"), exports);
24
+ __exportStar(require("./describeObjectsResponseDtoDataEnvelope"), exports);
21
25
  __exportStar(require("./errorDetailsDto"), exports);
22
26
  __exportStar(require("./errorDetailsDtoDetails"), exports);
23
27
  __exportStar(require("./errorPayloadDto"), exports);
24
28
  __exportStar(require("./errorResponseDto"), exports);
25
29
  __exportStar(require("./executionRequirementsDto"), exports);
26
- __exportStar(require("./executionRequirementsDtoIsolation"), exports);
27
30
  __exportStar(require("./executionRequirementsDtoMode"), exports);
28
31
  __exportStar(require("./executionRequirementsDtoPriority"), exports);
29
32
  __exportStar(require("./invocationLimitsDto"), exports);
33
+ __exportStar(require("./isolationLevel"), exports);
34
+ __exportStar(require("./modelResolutionRuleResponseDto"), exports);
35
+ __exportStar(require("./modelResolutionRuleResponseDtoDataEnvelope"), exports);
36
+ __exportStar(require("./modelResolutionRuleResponseDtoDefaultTargetOverridePrevModelClass"), exports);
37
+ __exportStar(require("./modelResolutionRuleResponseDtoDefaultTargetOverridePrevTargetKind"), exports);
38
+ __exportStar(require("./modelResolutionRuleResponseDtoTargetKind"), exports);
39
+ __exportStar(require("./modelResolutionRuleResponseDtoTargetModelClass"), exports);
40
+ __exportStar(require("./modelResolutionSelectorDto"), exports);
41
+ __exportStar(require("./modelResolutionSelectorDtoExtra"), exports);
42
+ __exportStar(require("./modelResolutionSelectorDtoModelCapability"), exports);
43
+ __exportStar(require("./modelResolutionSelectorDtoModelClass"), exports);
44
+ __exportStar(require("./modelResolutionSelectorResponseDto"), exports);
45
+ __exportStar(require("./modelResolutionSelectorResponseDtoExtra"), exports);
46
+ __exportStar(require("./modelResolutionSelectorResponseDtoModelCapability"), exports);
47
+ __exportStar(require("./modelResolutionSelectorResponseDtoModelClass"), exports);
30
48
  __exportStar(require("./objectLifecycle"), exports);
49
+ __exportStar(require("./pinCompiledLaunchPlanDto"), exports);
50
+ __exportStar(require("./repointDefaultTargetDto"), exports);
31
51
  __exportStar(require("./spaceKind"), exports);
52
+ __exportStar(require("./upsertManagedModelResolutionRuleDto"), exports);
53
+ __exportStar(require("./upsertManagedModelResolutionRuleDtoTargetKind"), exports);
54
+ __exportStar(require("./upsertManagedModelResolutionRuleDtoTargetModelClass"), exports);
32
55
  __exportStar(require("./xemaObjectKind"), exports);
33
56
  __exportStar(require("./xemaObjectResponseDto"), exports);
34
57
  __exportStar(require("./xemaObjectResponseDtoPayload"), exports);
@@ -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.3
7
7
  */
8
8
  export interface InvocationLimitsDto {
9
9
  /** Hard wall-clock limit for the invocation, in ms. */
@@ -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.3
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });