@xemahq/llm-registry-api-client 0.7.11 → 0.7.12
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/dist/custom-fetch.d.ts +22 -0
- package/dist/custom-fetch.js +27 -0
- package/dist/endpoints/agents/agents.d.ts +21 -1
- package/dist/endpoints/agents/agents.js +61 -1
- package/dist/models/agentDraftRingEntryDto.d.ts +19 -0
- package/dist/models/agentDraftRingEntryDto.js +7 -0
- package/dist/models/agentDraftRingEntryDtoDataArrayEnvelope.d.ts +9 -0
- package/dist/models/agentDraftRingEntryDtoDataArrayEnvelope.js +2 -0
- package/dist/models/agentRollbackResponseDto.d.ts +25 -0
- package/dist/models/agentRollbackResponseDto.js +7 -0
- package/dist/models/agentRollbackResponseDtoDataEnvelope.d.ts +9 -0
- package/dist/models/agentRollbackResponseDtoDataEnvelope.js +2 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/dist/models/moveRevisionPinsDto.d.ts +11 -0
- package/dist/models/moveRevisionPinsDto.js +7 -0
- package/dist/models/revisionPinDto.d.ts +18 -0
- package/dist/models/revisionPinDto.js +2 -0
- package/dist/models/revisionPinDtoDataArrayEnvelope.d.ts +9 -0
- package/dist/models/revisionPinDtoDataArrayEnvelope.js +2 -0
- package/dist/models/revisionPinHolder.d.ts +14 -0
- package/dist/models/revisionPinHolder.js +13 -0
- package/dist/models/revisionPinMovePlanDto.d.ts +14 -0
- package/dist/models/revisionPinMovePlanDto.js +2 -0
- package/dist/models/revisionPinMovePlanDtoDataEnvelope.d.ts +9 -0
- package/dist/models/revisionPinMovePlanDtoDataEnvelope.js +2 -0
- package/dist/models/rollbackAgentRevisionDto.d.ts +9 -0
- package/dist/models/rollbackAgentRevisionDto.js +7 -0
- package/package.json +2 -2
package/dist/custom-fetch.d.ts
CHANGED
|
@@ -47,6 +47,28 @@ export interface ClientConfig {
|
|
|
47
47
|
getAuthToken?: () => Promise<string>;
|
|
48
48
|
/** Optional callback returning headers to inject on every request. Per-call headers take precedence. */
|
|
49
49
|
getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
|
|
50
|
+
/**
|
|
51
|
+
* Optional resolver for the CORRELATION ID of the request being made — the
|
|
52
|
+
* handle that ties one causal chain together across every service hop.
|
|
53
|
+
*
|
|
54
|
+
* WHY IT IS A CALLBACK AND NOT A VALUE. `ClientConfig` is process-global
|
|
55
|
+
* (`configureClient` is called once at wiring time), and a correlation id is
|
|
56
|
+
* per-request. This is invoked INSIDE the request, so a server can point it
|
|
57
|
+
* at whatever carries its ambient request context and get the CURRENT id
|
|
58
|
+
* rather than the one that happened to be live at boot.
|
|
59
|
+
*
|
|
60
|
+
* WHY THE TRANSPORT DOES NOT MINT ONE. Returning `undefined` sends no header,
|
|
61
|
+
* and the receiving service's `RequestContextMiddleware` mints its own — a
|
|
62
|
+
* new trace, which is honest. A transport that minted per call would produce
|
|
63
|
+
* a FRESH id on every hop while looking like propagation, which is strictly
|
|
64
|
+
* worse than none: every row would carry a correlation id and no two rows
|
|
65
|
+
* that belong together would share one. That is the exact defect this exists
|
|
66
|
+
* to fix, so the transport must not reproduce it one layer down.
|
|
67
|
+
*
|
|
68
|
+
* A caller-supplied `X-Correlation-Id` header always wins, and so does one
|
|
69
|
+
* from `getHeaders`.
|
|
70
|
+
*/
|
|
71
|
+
getCorrelationId?: () => string | undefined | Promise<string | undefined>;
|
|
50
72
|
/**
|
|
51
73
|
* Optional callback invoked on a 401 before ONE re-attempt. Supplying it is
|
|
52
74
|
* what opts this client into that re-attempt; without it a 401 comes back to
|
package/dist/custom-fetch.js
CHANGED
|
@@ -89,6 +89,16 @@ function getClientConfig() {
|
|
|
89
89
|
*/
|
|
90
90
|
/** The only statuses that state the request was NOT processed. See above. */
|
|
91
91
|
const RETRYABLE_STATUSES = [429, 503];
|
|
92
|
+
/**
|
|
93
|
+
* The platform's correlation header, spelled once.
|
|
94
|
+
*
|
|
95
|
+
* Value-identical to what `RequestContextMiddleware` reads in
|
|
96
|
+
* `@xemahq/platform-common`. It is a literal here rather than an import
|
|
97
|
+
* because this file has ZERO imports on purpose: it ships byte-identical into
|
|
98
|
+
* browser-target clients as well as server-target ones, and a dependency on a
|
|
99
|
+
* NestJS-peer package would follow it into every one of them.
|
|
100
|
+
*/
|
|
101
|
+
const CORRELATION_ID_HEADER = 'X-Correlation-Id';
|
|
92
102
|
/** Backoff floor, doubling per attempt up to {@link MAX_BACKOFF_MS}. */
|
|
93
103
|
const BASE_BACKOFF_MS = 1000;
|
|
94
104
|
/** Ceiling on a single backoff, however many attempts have elapsed. */
|
|
@@ -104,6 +114,23 @@ async function buildHeaders(config, callerHeaders) {
|
|
|
104
114
|
}
|
|
105
115
|
}
|
|
106
116
|
}
|
|
117
|
+
// Correlation id (caller and global headers still take precedence).
|
|
118
|
+
//
|
|
119
|
+
// Without this, every server-to-server hop through a generated client started
|
|
120
|
+
// a NEW trace: the id is read-or-minted per hop by the receiving service's
|
|
121
|
+
// RequestContextMiddleware, and nothing carried it outbound — so an audit
|
|
122
|
+
// journal could record a whole causal chain and offer no way to join it back
|
|
123
|
+
// together.
|
|
124
|
+
//
|
|
125
|
+
// Absent resolver, or a resolver that answers `undefined`: NO header. The
|
|
126
|
+
// receiver mints and a new trace begins, which is the truthful outcome when
|
|
127
|
+
// there is nothing to continue.
|
|
128
|
+
if (config.getCorrelationId && !headers.has(CORRELATION_ID_HEADER)) {
|
|
129
|
+
const correlationId = await Promise.resolve(config.getCorrelationId());
|
|
130
|
+
if (correlationId) {
|
|
131
|
+
headers.set(CORRELATION_ID_HEADER, correlationId);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
107
134
|
// Auth token (caller or global headers take precedence)
|
|
108
135
|
if (config.getAuthToken && !headers.has('Authorization')) {
|
|
109
136
|
const token = await config.getAuthToken();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* LLM Registry API
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
|
-
import type { AgentAuthoringResponseDtoDataArrayEnvelope, AgentAuthoringResponseDtoDataEnvelope, AgentRevisionHistoryEntryDtoDataArrayEnvelope, CreateAgentDto, PublishAgentRevisionDto, RestoreAgentRevisionDto, UpdateAgentDraftDto } from '../../models';
|
|
6
|
+
import type { AgentAuthoringResponseDtoDataArrayEnvelope, AgentAuthoringResponseDtoDataEnvelope, AgentDraftRingEntryDtoDataArrayEnvelope, AgentRevisionHistoryEntryDtoDataArrayEnvelope, AgentRollbackResponseDtoDataEnvelope, CreateAgentDto, MoveRevisionPinsDto, PublishAgentRevisionDto, RestoreAgentRevisionDto, RevisionPinDtoDataArrayEnvelope, RevisionPinMovePlanDtoDataEnvelope, RollbackAgentRevisionDto, UpdateAgentDraftDto } from '../../models';
|
|
7
7
|
export declare const getAgentAuthoringControllerCreateUrl: () => string;
|
|
8
8
|
/**
|
|
9
9
|
* @summary Create a stable Agent identity with one mutable draft.
|
|
@@ -44,3 +44,23 @@ export declare const getAgentAuthoringControllerRestoreUrl: (identityId: string,
|
|
|
44
44
|
* @summary Copy an immutable historical revision into the mutable draft.
|
|
45
45
|
*/
|
|
46
46
|
export declare const agentAuthoringControllerRestore: (identityId: string, revisionId: string, restoreAgentRevisionDto: RestoreAgentRevisionDto, options?: RequestInit) => Promise<AgentAuthoringResponseDtoDataEnvelope>;
|
|
47
|
+
export declare const getAgentAuthoringControllerRollbackUrl: (identityId: string) => string;
|
|
48
|
+
/**
|
|
49
|
+
* @summary Move the live Agent pointer onto an earlier immutable revision.
|
|
50
|
+
*/
|
|
51
|
+
export declare const agentAuthoringControllerRollback: (identityId: string, rollbackAgentRevisionDto: RollbackAgentRevisionDto, options?: RequestInit) => Promise<AgentRollbackResponseDtoDataEnvelope>;
|
|
52
|
+
export declare const getAgentAuthoringControllerDraftsUrl: (identityId: string) => string;
|
|
53
|
+
/**
|
|
54
|
+
* @summary List the bounded ring of retained autosaved drafts.
|
|
55
|
+
*/
|
|
56
|
+
export declare const agentAuthoringControllerDrafts: (identityId: string, options?: RequestInit) => Promise<AgentDraftRingEntryDtoDataArrayEnvelope>;
|
|
57
|
+
export declare const getAgentAuthoringControllerRevisionPinsUrl: (identityId: string, revisionId: string) => string;
|
|
58
|
+
/**
|
|
59
|
+
* @summary List every consumer pinned to one Agent revision.
|
|
60
|
+
*/
|
|
61
|
+
export declare const agentAuthoringControllerRevisionPins: (identityId: string, revisionId: string, options?: RequestInit) => Promise<RevisionPinDtoDataArrayEnvelope>;
|
|
62
|
+
export declare const getAgentAuthoringControllerMoveRevisionPinsUrl: (identityId: string) => string;
|
|
63
|
+
/**
|
|
64
|
+
* @summary Move mutable revision pins between two revisions of one Agent.
|
|
65
|
+
*/
|
|
66
|
+
export declare const agentAuthoringControllerMoveRevisionPins: (identityId: string, moveRevisionPinsDto: MoveRevisionPinsDto, options?: RequestInit) => Promise<RevisionPinMovePlanDtoDataEnvelope>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.agentAuthoringControllerRestore = exports.getAgentAuthoringControllerRestoreUrl = exports.agentAuthoringControllerHistory = exports.getAgentAuthoringControllerHistoryUrl = exports.agentAuthoringControllerPublish = exports.getAgentAuthoringControllerPublishUrl = exports.agentAuthoringControllerUpdateDraft = exports.getAgentAuthoringControllerUpdateDraftUrl = exports.agentAuthoringControllerDeleteDraftOnly = exports.getAgentAuthoringControllerDeleteDraftOnlyUrl = exports.agentAuthoringControllerGet = exports.getAgentAuthoringControllerGetUrl = exports.agentAuthoringControllerList = exports.getAgentAuthoringControllerListUrl = exports.agentAuthoringControllerCreate = exports.getAgentAuthoringControllerCreateUrl = void 0;
|
|
3
|
+
exports.agentAuthoringControllerMoveRevisionPins = exports.getAgentAuthoringControllerMoveRevisionPinsUrl = exports.agentAuthoringControllerRevisionPins = exports.getAgentAuthoringControllerRevisionPinsUrl = exports.agentAuthoringControllerDrafts = exports.getAgentAuthoringControllerDraftsUrl = exports.agentAuthoringControllerRollback = exports.getAgentAuthoringControllerRollbackUrl = exports.agentAuthoringControllerRestore = exports.getAgentAuthoringControllerRestoreUrl = exports.agentAuthoringControllerHistory = exports.getAgentAuthoringControllerHistoryUrl = exports.agentAuthoringControllerPublish = exports.getAgentAuthoringControllerPublishUrl = exports.agentAuthoringControllerUpdateDraft = exports.getAgentAuthoringControllerUpdateDraftUrl = exports.agentAuthoringControllerDeleteDraftOnly = exports.getAgentAuthoringControllerDeleteDraftOnlyUrl = exports.agentAuthoringControllerGet = exports.getAgentAuthoringControllerGetUrl = exports.agentAuthoringControllerList = exports.getAgentAuthoringControllerListUrl = exports.agentAuthoringControllerCreate = exports.getAgentAuthoringControllerCreateUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
5
|
const getAgentAuthoringControllerCreateUrl = () => {
|
|
6
6
|
return `/authoring/agents`;
|
|
@@ -122,3 +122,63 @@ const agentAuthoringControllerRestore = async (identityId, revisionId, restoreAg
|
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
124
|
exports.agentAuthoringControllerRestore = agentAuthoringControllerRestore;
|
|
125
|
+
const getAgentAuthoringControllerRollbackUrl = (identityId) => {
|
|
126
|
+
return `/authoring/agents/${identityId}/rollback`;
|
|
127
|
+
};
|
|
128
|
+
exports.getAgentAuthoringControllerRollbackUrl = getAgentAuthoringControllerRollbackUrl;
|
|
129
|
+
/**
|
|
130
|
+
* @summary Move the live Agent pointer onto an earlier immutable revision.
|
|
131
|
+
*/
|
|
132
|
+
const agentAuthoringControllerRollback = async (identityId, rollbackAgentRevisionDto, options) => {
|
|
133
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getAgentAuthoringControllerRollbackUrl)(identityId), {
|
|
134
|
+
...options,
|
|
135
|
+
method: 'POST',
|
|
136
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
137
|
+
body: JSON.stringify(rollbackAgentRevisionDto)
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
exports.agentAuthoringControllerRollback = agentAuthoringControllerRollback;
|
|
141
|
+
const getAgentAuthoringControllerDraftsUrl = (identityId) => {
|
|
142
|
+
return `/authoring/agents/${identityId}/drafts`;
|
|
143
|
+
};
|
|
144
|
+
exports.getAgentAuthoringControllerDraftsUrl = getAgentAuthoringControllerDraftsUrl;
|
|
145
|
+
/**
|
|
146
|
+
* @summary List the bounded ring of retained autosaved drafts.
|
|
147
|
+
*/
|
|
148
|
+
const agentAuthoringControllerDrafts = async (identityId, options) => {
|
|
149
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getAgentAuthoringControllerDraftsUrl)(identityId), {
|
|
150
|
+
...options,
|
|
151
|
+
method: 'GET'
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
exports.agentAuthoringControllerDrafts = agentAuthoringControllerDrafts;
|
|
155
|
+
const getAgentAuthoringControllerRevisionPinsUrl = (identityId, revisionId) => {
|
|
156
|
+
return `/authoring/agents/${identityId}/revisions/${revisionId}/pins`;
|
|
157
|
+
};
|
|
158
|
+
exports.getAgentAuthoringControllerRevisionPinsUrl = getAgentAuthoringControllerRevisionPinsUrl;
|
|
159
|
+
/**
|
|
160
|
+
* @summary List every consumer pinned to one Agent revision.
|
|
161
|
+
*/
|
|
162
|
+
const agentAuthoringControllerRevisionPins = async (identityId, revisionId, options) => {
|
|
163
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getAgentAuthoringControllerRevisionPinsUrl)(identityId, revisionId), {
|
|
164
|
+
...options,
|
|
165
|
+
method: 'GET'
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
exports.agentAuthoringControllerRevisionPins = agentAuthoringControllerRevisionPins;
|
|
169
|
+
const getAgentAuthoringControllerMoveRevisionPinsUrl = (identityId) => {
|
|
170
|
+
return `/authoring/agents/${identityId}/revisions/pins/move`;
|
|
171
|
+
};
|
|
172
|
+
exports.getAgentAuthoringControllerMoveRevisionPinsUrl = getAgentAuthoringControllerMoveRevisionPinsUrl;
|
|
173
|
+
/**
|
|
174
|
+
* @summary Move mutable revision pins between two revisions of one Agent.
|
|
175
|
+
*/
|
|
176
|
+
const agentAuthoringControllerMoveRevisionPins = async (identityId, moveRevisionPinsDto, options) => {
|
|
177
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getAgentAuthoringControllerMoveRevisionPinsUrl)(identityId), {
|
|
178
|
+
...options,
|
|
179
|
+
method: 'POST',
|
|
180
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
181
|
+
body: JSON.stringify(moveRevisionPinsDto)
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
exports.agentAuthoringControllerMoveRevisionPins = agentAuthoringControllerMoveRevisionPins;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
export interface AgentDraftRingEntryDto {
|
|
7
|
+
id: string;
|
|
8
|
+
/** True for the entry the Agent identity currently points at. */
|
|
9
|
+
isCurrent: boolean;
|
|
10
|
+
/** Canonical content hash. Two entries never share one — the ring only appends when the hash changes. */
|
|
11
|
+
contentHash: string;
|
|
12
|
+
/** @nullable */
|
|
13
|
+
baseRevisionId: string | null;
|
|
14
|
+
/** @nullable */
|
|
15
|
+
restoredFromRevisionId: string | null;
|
|
16
|
+
updatedBy: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
import type { AgentDraftRingEntryDto } from './agentDraftRingEntryDto.js';
|
|
7
|
+
export interface AgentDraftRingEntryDtoDataArrayEnvelope {
|
|
8
|
+
data: AgentDraftRingEntryDto[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
export interface AgentRollbackResponseDto {
|
|
7
|
+
identityId: string;
|
|
8
|
+
/** The revision that was live before the flip. */
|
|
9
|
+
fromRevisionId: string;
|
|
10
|
+
/** The revision that is live now. */
|
|
11
|
+
toRevisionId: string;
|
|
12
|
+
/** @minimum 1 */
|
|
13
|
+
toSequence: number;
|
|
14
|
+
toContentHash: string;
|
|
15
|
+
/**
|
|
16
|
+
* Prepared-launch generation the identity served before the flip, or null when it was not serving one.
|
|
17
|
+
* @nullable
|
|
18
|
+
*/
|
|
19
|
+
fromPreparationGenerationId: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Prepared-launch generation the identity serves now. Moves WITH the revision pointer — the two are covered by one composite foreign key.
|
|
22
|
+
* @nullable
|
|
23
|
+
*/
|
|
24
|
+
toPreparationGenerationId: string | null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
import type { AgentRollbackResponseDto } from './agentRollbackResponseDto.js';
|
|
7
|
+
export interface AgentRollbackResponseDtoDataEnvelope {
|
|
8
|
+
data: AgentRollbackResponseDto;
|
|
9
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export * from './agentConfigBlockDtoTools';
|
|
|
18
18
|
export * from './agentConfigBlocksResponseDto';
|
|
19
19
|
export * from './agentConfigBlocksResponseDtoDataEnvelope';
|
|
20
20
|
export * from './agentCredentialDto';
|
|
21
|
+
export * from './agentDraftRingEntryDto';
|
|
22
|
+
export * from './agentDraftRingEntryDtoDataArrayEnvelope';
|
|
21
23
|
export * from './agentEnvVarDto';
|
|
22
24
|
export * from './agentExecutionMode';
|
|
23
25
|
export * from './agentKernelControllerBrowseTalentPoolParams';
|
|
@@ -68,6 +70,8 @@ export * from './agentRefDto';
|
|
|
68
70
|
export * from './agentRevisionHistoryEntryDto';
|
|
69
71
|
export * from './agentRevisionHistoryEntryDtoDataArrayEnvelope';
|
|
70
72
|
export * from './agentRevisionHistoryEntryDtoSourceProvenance';
|
|
73
|
+
export * from './agentRollbackResponseDto';
|
|
74
|
+
export * from './agentRollbackResponseDtoDataEnvelope';
|
|
71
75
|
export * from './agentRunConfigDto';
|
|
72
76
|
export * from './agentRunRole';
|
|
73
77
|
export * from './agentRuntimeControllerAnalyzeParams';
|
|
@@ -207,6 +211,7 @@ export * from './modelStrategyResponseDtoDataArrayEnvelope';
|
|
|
207
211
|
export * from './modelStrategyResponseDtoDataEnvelope';
|
|
208
212
|
export * from './mountEntryDto';
|
|
209
213
|
export * from './mountEntryDtoMode';
|
|
214
|
+
export * from './moveRevisionPinsDto';
|
|
210
215
|
export * from './mutabilityTier';
|
|
211
216
|
export * from './orgDefaultStrategyStatusResponseDto';
|
|
212
217
|
export * from './orgDefaultStrategyStatusResponseDtoDataEnvelope';
|
|
@@ -293,12 +298,18 @@ export * from './resolvedToolProfileDto';
|
|
|
293
298
|
export * from './resolvedToolProfileDtoCatalogId';
|
|
294
299
|
export * from './resolvedToolProfileDtoDataArrayEnvelope';
|
|
295
300
|
export * from './restoreAgentRevisionDto';
|
|
301
|
+
export * from './revisionPinDto';
|
|
302
|
+
export * from './revisionPinDtoDataArrayEnvelope';
|
|
303
|
+
export * from './revisionPinHolder';
|
|
304
|
+
export * from './revisionPinMovePlanDto';
|
|
305
|
+
export * from './revisionPinMovePlanDtoDataEnvelope';
|
|
296
306
|
export * from './roleCapabilityProfileDto';
|
|
297
307
|
export * from './roleCapabilityProfileDtoDataEnvelope';
|
|
298
308
|
export * from './roleCapabilityProfileDtoMayEditRepos';
|
|
299
309
|
export * from './roleCapabilityProfileDtoPaginatedEnvelope';
|
|
300
310
|
export * from './roleCapabilityProfileDtoSurface';
|
|
301
311
|
export * from './roleCapabilityProfileDtoWritePolicy';
|
|
312
|
+
export * from './rollbackAgentRevisionDto';
|
|
302
313
|
export * from './scopeSource';
|
|
303
314
|
export * from './standingSessionRefDto';
|
|
304
315
|
export * from './startEmbeddingMigrationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -35,6 +35,8 @@ __exportStar(require("./agentConfigBlockDtoTools"), exports);
|
|
|
35
35
|
__exportStar(require("./agentConfigBlocksResponseDto"), exports);
|
|
36
36
|
__exportStar(require("./agentConfigBlocksResponseDtoDataEnvelope"), exports);
|
|
37
37
|
__exportStar(require("./agentCredentialDto"), exports);
|
|
38
|
+
__exportStar(require("./agentDraftRingEntryDto"), exports);
|
|
39
|
+
__exportStar(require("./agentDraftRingEntryDtoDataArrayEnvelope"), exports);
|
|
38
40
|
__exportStar(require("./agentEnvVarDto"), exports);
|
|
39
41
|
__exportStar(require("./agentExecutionMode"), exports);
|
|
40
42
|
__exportStar(require("./agentKernelControllerBrowseTalentPoolParams"), exports);
|
|
@@ -85,6 +87,8 @@ __exportStar(require("./agentRefDto"), exports);
|
|
|
85
87
|
__exportStar(require("./agentRevisionHistoryEntryDto"), exports);
|
|
86
88
|
__exportStar(require("./agentRevisionHistoryEntryDtoDataArrayEnvelope"), exports);
|
|
87
89
|
__exportStar(require("./agentRevisionHistoryEntryDtoSourceProvenance"), exports);
|
|
90
|
+
__exportStar(require("./agentRollbackResponseDto"), exports);
|
|
91
|
+
__exportStar(require("./agentRollbackResponseDtoDataEnvelope"), exports);
|
|
88
92
|
__exportStar(require("./agentRunConfigDto"), exports);
|
|
89
93
|
__exportStar(require("./agentRunRole"), exports);
|
|
90
94
|
__exportStar(require("./agentRuntimeControllerAnalyzeParams"), exports);
|
|
@@ -224,6 +228,7 @@ __exportStar(require("./modelStrategyResponseDtoDataArrayEnvelope"), exports);
|
|
|
224
228
|
__exportStar(require("./modelStrategyResponseDtoDataEnvelope"), exports);
|
|
225
229
|
__exportStar(require("./mountEntryDto"), exports);
|
|
226
230
|
__exportStar(require("./mountEntryDtoMode"), exports);
|
|
231
|
+
__exportStar(require("./moveRevisionPinsDto"), exports);
|
|
227
232
|
__exportStar(require("./mutabilityTier"), exports);
|
|
228
233
|
__exportStar(require("./orgDefaultStrategyStatusResponseDto"), exports);
|
|
229
234
|
__exportStar(require("./orgDefaultStrategyStatusResponseDtoDataEnvelope"), exports);
|
|
@@ -310,12 +315,18 @@ __exportStar(require("./resolvedToolProfileDto"), exports);
|
|
|
310
315
|
__exportStar(require("./resolvedToolProfileDtoCatalogId"), exports);
|
|
311
316
|
__exportStar(require("./resolvedToolProfileDtoDataArrayEnvelope"), exports);
|
|
312
317
|
__exportStar(require("./restoreAgentRevisionDto"), exports);
|
|
318
|
+
__exportStar(require("./revisionPinDto"), exports);
|
|
319
|
+
__exportStar(require("./revisionPinDtoDataArrayEnvelope"), exports);
|
|
320
|
+
__exportStar(require("./revisionPinHolder"), exports);
|
|
321
|
+
__exportStar(require("./revisionPinMovePlanDto"), exports);
|
|
322
|
+
__exportStar(require("./revisionPinMovePlanDtoDataEnvelope"), exports);
|
|
313
323
|
__exportStar(require("./roleCapabilityProfileDto"), exports);
|
|
314
324
|
__exportStar(require("./roleCapabilityProfileDtoDataEnvelope"), exports);
|
|
315
325
|
__exportStar(require("./roleCapabilityProfileDtoMayEditRepos"), exports);
|
|
316
326
|
__exportStar(require("./roleCapabilityProfileDtoPaginatedEnvelope"), exports);
|
|
317
327
|
__exportStar(require("./roleCapabilityProfileDtoSurface"), exports);
|
|
318
328
|
__exportStar(require("./roleCapabilityProfileDtoWritePolicy"), exports);
|
|
329
|
+
__exportStar(require("./rollbackAgentRevisionDto"), exports);
|
|
319
330
|
__exportStar(require("./scopeSource"), exports);
|
|
320
331
|
__exportStar(require("./standingSessionRefDto"), exports);
|
|
321
332
|
__exportStar(require("./startEmbeddingMigrationDto"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
export interface MoveRevisionPinsDto {
|
|
7
|
+
/** The revision pins are currently held on. */
|
|
8
|
+
fromRevisionId: string;
|
|
9
|
+
/** The revision movable pins should point at. */
|
|
10
|
+
toRevisionId: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
import type { RevisionPinHolder } from './revisionPinHolder.js';
|
|
7
|
+
export interface RevisionPinDto {
|
|
8
|
+
/** The Agent identity that owns the revision. */
|
|
9
|
+
resourceId: string;
|
|
10
|
+
revisionId: string;
|
|
11
|
+
/** What may be DONE with this pin. Only `mutable` pins are movable; `immutable` needs the holder republished, and `provenance` records what happened and is never touched. */
|
|
12
|
+
holder: RevisionPinHolder;
|
|
13
|
+
/** Which kind of consumer holds it, e.g. `project-agent-override`. */
|
|
14
|
+
holderKind: string;
|
|
15
|
+
holderId: string;
|
|
16
|
+
/** @nullable */
|
|
17
|
+
label: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
import type { RevisionPinDto } from './revisionPinDto.js';
|
|
7
|
+
export interface RevisionPinDtoDataArrayEnvelope {
|
|
8
|
+
data: RevisionPinDto[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* What may be DONE with this pin. Only `mutable` pins are movable; `immutable` needs the holder republished, and `provenance` records what happened and is never touched.
|
|
8
|
+
*/
|
|
9
|
+
export type RevisionPinHolder = typeof RevisionPinHolder[keyof typeof RevisionPinHolder];
|
|
10
|
+
export declare const RevisionPinHolder: {
|
|
11
|
+
readonly mutable: "mutable";
|
|
12
|
+
readonly immutable: "immutable";
|
|
13
|
+
readonly provenance: "provenance";
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* LLM Registry API
|
|
5
|
+
* OpenAPI spec version: 0.1.3
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.RevisionPinHolder = void 0;
|
|
9
|
+
exports.RevisionPinHolder = {
|
|
10
|
+
mutable: 'mutable',
|
|
11
|
+
immutable: 'immutable',
|
|
12
|
+
provenance: 'provenance',
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
import type { RevisionPinDto } from './revisionPinDto.js';
|
|
7
|
+
export interface RevisionPinMovePlanDto {
|
|
8
|
+
/** Pins that were moved. */
|
|
9
|
+
move: RevisionPinDto[];
|
|
10
|
+
/** Pins embedded inside a published revision. Republish the holder to change them — rewriting one would mutate an immutable revision. */
|
|
11
|
+
republishRequired: RevisionPinDto[];
|
|
12
|
+
/** Pins that record what DID run. Never moved: moving one would not re-point a consumer, it would rewrite history. */
|
|
13
|
+
immovable: RevisionPinDto[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
import type { RevisionPinMovePlanDto } from './revisionPinMovePlanDto.js';
|
|
7
|
+
export interface RevisionPinMovePlanDtoDataEnvelope {
|
|
8
|
+
data: RevisionPinMovePlanDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* LLM Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.3
|
|
5
|
+
*/
|
|
6
|
+
export interface RollbackAgentRevisionDto {
|
|
7
|
+
/** The immutable revision to serve. Must belong to this Agent identity and must not already be the live revision. */
|
|
8
|
+
targetRevisionId: string;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/llm-registry-api-client",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12",
|
|
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@0.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@0.14.1",
|
|
23
23
|
"source": "openapi.public.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-BSL-1.1",
|