@xemahq/llm-registry-api-client 0.7.11 → 0.7.21

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 (64) hide show
  1. package/dist/custom-fetch.d.ts +22 -0
  2. package/dist/custom-fetch.js +27 -0
  3. package/dist/endpoints/agent-runtime/agent-runtime.d.ts +6 -1
  4. package/dist/endpoints/agent-runtime/agent-runtime.js +34 -1
  5. package/dist/endpoints/agents/agents.d.ts +22 -2
  6. package/dist/endpoints/agents/agents.js +62 -2
  7. package/dist/models/agentBundleRenderDto.d.ts +5 -0
  8. package/dist/models/agentCapabilityApertureDto.d.ts +15 -0
  9. package/dist/models/agentCapabilityApertureDto.js +2 -0
  10. package/dist/models/agentCapabilityApertureDtoDefaultEffect.d.ts +14 -0
  11. package/dist/models/agentCapabilityApertureDtoDefaultEffect.js +13 -0
  12. package/dist/models/agentCapabilityApertureDtoDomains.d.ts +8 -0
  13. package/dist/models/agentCapabilityApertureDtoDomains.js +7 -0
  14. package/dist/models/agentCapabilityApertureDtoKind.d.ts +11 -0
  15. package/dist/models/agentCapabilityApertureDtoKind.js +13 -0
  16. package/dist/models/agentCapabilityLayerDto.d.ts +2 -2
  17. package/dist/models/agentDraftRingEntryDto.d.ts +19 -0
  18. package/dist/models/agentDraftRingEntryDto.js +7 -0
  19. package/dist/models/agentDraftRingEntryDtoDataArrayEnvelope.d.ts +9 -0
  20. package/dist/models/agentDraftRingEntryDtoDataArrayEnvelope.js +2 -0
  21. package/dist/models/agentKernelResponseDto.d.ts +1 -1
  22. package/dist/models/agentNodeDto.d.ts +1 -1
  23. package/dist/models/agentOwnerSpaceDto.d.ts +15 -0
  24. package/dist/models/agentOwnerSpaceDto.js +2 -0
  25. package/dist/models/agentOwnerSpaceDtoTier.d.ts +15 -0
  26. package/dist/models/agentOwnerSpaceDtoTier.js +17 -0
  27. package/dist/models/agentOwnerSpaceRefDto.d.ts +13 -0
  28. package/dist/models/agentOwnerSpaceRefDto.js +2 -0
  29. package/dist/models/agentOwnerSpaceRefDtoFence.d.ts +10 -0
  30. package/dist/models/agentOwnerSpaceRefDtoFence.js +12 -0
  31. package/dist/models/agentRollbackResponseDto.d.ts +14 -0
  32. package/dist/models/agentRollbackResponseDto.js +2 -0
  33. package/dist/models/agentRollbackResponseDtoDataEnvelope.d.ts +9 -0
  34. package/dist/models/agentRollbackResponseDtoDataEnvelope.js +2 -0
  35. package/dist/models/agentRollbackResponseDtoStatus.d.ts +12 -0
  36. package/dist/models/agentRollbackResponseDtoStatus.js +14 -0
  37. package/dist/models/agentRuntimeControllerResolveExactRevisionAuthorityParams.d.ts +9 -0
  38. package/dist/models/agentRuntimeControllerResolveExactRevisionAuthorityParams.js +7 -0
  39. package/dist/models/exactAgentRevisionAuthorityResponseDto.d.ts +19 -0
  40. package/dist/models/exactAgentRevisionAuthorityResponseDto.js +2 -0
  41. package/dist/models/exactAgentRevisionAuthorityResponseDtoDataEnvelope.d.ts +9 -0
  42. package/dist/models/exactAgentRevisionAuthorityResponseDtoDataEnvelope.js +2 -0
  43. package/dist/models/exactAgentRevisionAuthorityResponseDtoReachTier.d.ts +12 -0
  44. package/dist/models/exactAgentRevisionAuthorityResponseDtoReachTier.js +14 -0
  45. package/dist/models/exactAgentRevisionResolvedGraphDto.d.ts +9 -0
  46. package/dist/models/exactAgentRevisionResolvedGraphDto.js +2 -0
  47. package/dist/models/index.d.ts +25 -0
  48. package/dist/models/index.js +25 -0
  49. package/dist/models/moveRevisionPinsDto.d.ts +11 -0
  50. package/dist/models/moveRevisionPinsDto.js +7 -0
  51. package/dist/models/resolvedAgentResponseDto.d.ts +7 -0
  52. package/dist/models/revisionPinDto.d.ts +18 -0
  53. package/dist/models/revisionPinDto.js +2 -0
  54. package/dist/models/revisionPinDtoDataArrayEnvelope.d.ts +9 -0
  55. package/dist/models/revisionPinDtoDataArrayEnvelope.js +2 -0
  56. package/dist/models/revisionPinHolder.d.ts +14 -0
  57. package/dist/models/revisionPinHolder.js +13 -0
  58. package/dist/models/revisionPinMovePlanDto.d.ts +14 -0
  59. package/dist/models/revisionPinMovePlanDto.js +2 -0
  60. package/dist/models/revisionPinMovePlanDtoDataEnvelope.d.ts +9 -0
  61. package/dist/models/revisionPinMovePlanDtoDataEnvelope.js +2 -0
  62. package/dist/models/rollbackAgentRevisionDto.d.ts +11 -0
  63. package/dist/models/rollbackAgentRevisionDto.js +7 -0
  64. package/package.json +2 -2
@@ -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
@@ -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 { AgentCapabilityAnalysisDtoDataEnvelope, AgentRuntimeControllerAnalyzeParams, AgentRuntimeControllerResolveDraftParams, AgentRuntimeControllerResolveParams, AgentRuntimeControllerResolveRevisionParams, ResolvedAgentResponseDtoDataEnvelope } from '../../models';
6
+ import type { AgentCapabilityAnalysisDtoDataEnvelope, AgentRuntimeControllerAnalyzeParams, AgentRuntimeControllerResolveDraftParams, AgentRuntimeControllerResolveExactRevisionAuthorityParams, AgentRuntimeControllerResolveParams, AgentRuntimeControllerResolveRevisionParams, ExactAgentRevisionAuthorityResponseDtoDataEnvelope, ResolvedAgentResponseDtoDataEnvelope } from '../../models';
7
7
  export declare const getAgentRuntimeControllerResolveUrl: (ref: string, params?: AgentRuntimeControllerResolveParams) => string;
8
8
  /**
9
9
  * @summary Resolve a stable Agent ref into an exact immutable runtime revision.
@@ -14,6 +14,11 @@ export declare const getAgentRuntimeControllerResolveRevisionUrl: (revisionId: s
14
14
  * @summary Resolve an exact immutable Agent revision.
15
15
  */
16
16
  export declare const agentRuntimeControllerResolveRevision: (revisionId: string, params?: AgentRuntimeControllerResolveRevisionParams, options?: RequestInit) => Promise<ResolvedAgentResponseDtoDataEnvelope>;
17
+ export declare const getAgentRuntimeControllerResolveExactRevisionAuthorityUrl: (resourceId: string, revisionId: string, params: AgentRuntimeControllerResolveExactRevisionAuthorityParams) => string;
18
+ /**
19
+ * @summary Resolve canonical authority facts for one exact immutable Agent pin.
20
+ */
21
+ export declare const agentRuntimeControllerResolveExactRevisionAuthority: (resourceId: string, revisionId: string, params: AgentRuntimeControllerResolveExactRevisionAuthorityParams, options?: RequestInit) => Promise<ExactAgentRevisionAuthorityResponseDtoDataEnvelope>;
17
22
  export declare const getAgentRuntimeControllerResolveDraftUrl: (identityId: string, params?: AgentRuntimeControllerResolveDraftParams) => string;
18
23
  /**
19
24
  * @summary Resolve the current draft for the authoring sandbox.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.agentRuntimeControllerAnalyze = exports.getAgentRuntimeControllerAnalyzeUrl = exports.agentRuntimeControllerResolveDraft = exports.getAgentRuntimeControllerResolveDraftUrl = exports.agentRuntimeControllerResolveRevision = exports.getAgentRuntimeControllerResolveRevisionUrl = exports.agentRuntimeControllerResolve = exports.getAgentRuntimeControllerResolveUrl = void 0;
3
+ exports.agentRuntimeControllerAnalyze = exports.getAgentRuntimeControllerAnalyzeUrl = exports.agentRuntimeControllerResolveDraft = exports.getAgentRuntimeControllerResolveDraftUrl = exports.agentRuntimeControllerResolveExactRevisionAuthority = exports.getAgentRuntimeControllerResolveExactRevisionAuthorityUrl = exports.agentRuntimeControllerResolveRevision = exports.getAgentRuntimeControllerResolveRevisionUrl = exports.agentRuntimeControllerResolve = exports.getAgentRuntimeControllerResolveUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
5
  const getAgentRuntimeControllerResolveUrl = (ref, params) => {
6
6
  const normalizedParams = new URLSearchParams();
@@ -68,6 +68,39 @@ const agentRuntimeControllerResolveRevision = async (revisionId, params, options
68
68
  });
69
69
  };
70
70
  exports.agentRuntimeControllerResolveRevision = agentRuntimeControllerResolveRevision;
71
+ const getAgentRuntimeControllerResolveExactRevisionAuthorityUrl = (resourceId, revisionId, params) => {
72
+ const normalizedParams = new URLSearchParams();
73
+ Object.entries(params || {}).forEach(([key, value]) => {
74
+ if (value === undefined)
75
+ return;
76
+ if (value === null) {
77
+ normalizedParams.append(key, 'null');
78
+ return;
79
+ }
80
+ if (Array.isArray(value)) {
81
+ for (const item of value) {
82
+ if (item === undefined || item === null)
83
+ continue;
84
+ normalizedParams.append(key, item.toString());
85
+ }
86
+ return;
87
+ }
88
+ normalizedParams.append(key, value.toString());
89
+ });
90
+ const stringifiedParams = normalizedParams.toString();
91
+ return stringifiedParams.length > 0 ? `/agents/${resourceId}/revisions/${revisionId}/authority?${stringifiedParams}` : `/agents/${resourceId}/revisions/${revisionId}/authority`;
92
+ };
93
+ exports.getAgentRuntimeControllerResolveExactRevisionAuthorityUrl = getAgentRuntimeControllerResolveExactRevisionAuthorityUrl;
94
+ /**
95
+ * @summary Resolve canonical authority facts for one exact immutable Agent pin.
96
+ */
97
+ const agentRuntimeControllerResolveExactRevisionAuthority = async (resourceId, revisionId, params, options) => {
98
+ return (0, custom_fetch_1.customFetch)((0, exports.getAgentRuntimeControllerResolveExactRevisionAuthorityUrl)(resourceId, revisionId, params), {
99
+ ...options,
100
+ method: 'GET'
101
+ });
102
+ };
103
+ exports.agentRuntimeControllerResolveExactRevisionAuthority = agentRuntimeControllerResolveExactRevisionAuthority;
71
104
  const getAgentRuntimeControllerResolveDraftUrl = (identityId, params) => {
72
105
  const normalizedParams = new URLSearchParams();
73
106
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -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.
@@ -16,7 +16,7 @@ export declare const getAgentAuthoringControllerListUrl: () => string;
16
16
  export declare const agentAuthoringControllerList: (options?: RequestInit) => Promise<AgentAuthoringResponseDtoDataArrayEnvelope>;
17
17
  export declare const getAgentAuthoringControllerGetUrl: (identityId: string) => string;
18
18
  /**
19
- * @summary Get a stable Agent identity and current draft/live pointers.
19
+ * @summary Get a stable Agent identity and current draft/stable ReleaseChannels.
20
20
  */
21
21
  export declare const agentAuthoringControllerGet: (identityId: string, options?: RequestInit) => Promise<AgentAuthoringResponseDtoDataEnvelope>;
22
22
  export declare const getAgentAuthoringControllerDeleteDraftOnlyUrl: (identityId: string) => string;
@@ -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 Replay a prior immutable stable ReleaseSet under channel CAS.
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`;
@@ -37,7 +37,7 @@ const getAgentAuthoringControllerGetUrl = (identityId) => {
37
37
  };
38
38
  exports.getAgentAuthoringControllerGetUrl = getAgentAuthoringControllerGetUrl;
39
39
  /**
40
- * @summary Get a stable Agent identity and current draft/live pointers.
40
+ * @summary Get a stable Agent identity and current draft/stable ReleaseChannels.
41
41
  */
42
42
  const agentAuthoringControllerGet = async (identityId, options) => {
43
43
  return (0, custom_fetch_1.customFetch)((0, exports.getAgentAuthoringControllerGetUrl)(identityId), {
@@ -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 Replay a prior immutable stable ReleaseSet under channel CAS.
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;
@@ -10,6 +10,11 @@ export interface AgentBundleRenderDto {
10
10
  stageKey?: string;
11
11
  /** Whether this agent is the root primary or a delegated subagent */
12
12
  agentMode: AgentExecutionMode;
13
+ /**
14
+ * Exact folded definition hash selected by session authority. Rendering fails if the current scoped definition differs.
15
+ * @pattern ^[a-f0-9]{64}$
16
+ */
17
+ expectedDefinitionContentHash?: string;
13
18
  /** Per-composition-node instructions resolved from the AgentNode. Combined with the base agent prompt per `promptMode`. Absent → the base agent prompt renders verbatim. */
14
19
  instructions?: string;
15
20
  /** How `instructions` combine with the base agent `systemPrompt`. `append` appends after the base prompt; `replace` makes `instructions` the prompt body (config still inherited). Absent ⇒ append. */
@@ -0,0 +1,15 @@
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 { AgentCapabilityApertureDtoDefaultEffect } from './agentCapabilityApertureDtoDefaultEffect.js';
7
+ import type { AgentCapabilityApertureDtoDomains } from './agentCapabilityApertureDtoDomains.js';
8
+ import type { AgentCapabilityApertureDtoKind } from './agentCapabilityApertureDtoKind.js';
9
+ export interface AgentCapabilityApertureDto {
10
+ kind: AgentCapabilityApertureDtoKind;
11
+ refs?: string[];
12
+ domains?: AgentCapabilityApertureDtoDomains;
13
+ /** @nullable */
14
+ defaultEffect?: AgentCapabilityApertureDtoDefaultEffect;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ * @nullable
8
+ */
9
+ export type AgentCapabilityApertureDtoDefaultEffect = typeof AgentCapabilityApertureDtoDefaultEffect[keyof typeof AgentCapabilityApertureDtoDefaultEffect] | null;
10
+ export declare const AgentCapabilityApertureDtoDefaultEffect: {
11
+ readonly read: "read";
12
+ readonly write: "write";
13
+ readonly admin: "admin";
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.AgentCapabilityApertureDtoDefaultEffect = void 0;
9
+ exports.AgentCapabilityApertureDtoDefaultEffect = {
10
+ read: 'read',
11
+ write: 'write',
12
+ admin: 'admin',
13
+ };
@@ -0,0 +1,8 @@
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 type AgentCapabilityApertureDtoDomains = {
7
+ [key: string]: 'read' | 'write' | 'admin';
8
+ };
@@ -0,0 +1,7 @@
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 });
@@ -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 type AgentCapabilityApertureDtoKind = typeof AgentCapabilityApertureDtoKind[keyof typeof AgentCapabilityApertureDtoKind];
7
+ export declare const AgentCapabilityApertureDtoKind: {
8
+ readonly unrestricted: "unrestricted";
9
+ readonly armed: "armed";
10
+ readonly scoped: "scoped";
11
+ };
@@ -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.AgentCapabilityApertureDtoKind = void 0;
9
+ exports.AgentCapabilityApertureDtoKind = {
10
+ unrestricted: 'unrestricted',
11
+ armed: 'armed',
12
+ scoped: 'scoped',
13
+ };
@@ -3,6 +3,7 @@
3
3
  * LLM Registry API
4
4
  * OpenAPI spec version: 0.1.3
5
5
  */
6
+ import type { AgentCapabilityApertureDto } from './agentCapabilityApertureDto.js';
6
7
  import type { AgentCapabilityLayerDtoMayEditRepos } from './agentCapabilityLayerDtoMayEditRepos.js';
7
8
  import type { AgentCapabilityLayerDtoWritePolicy } from './agentCapabilityLayerDtoWritePolicy.js';
8
9
  export interface AgentCapabilityLayerDto {
@@ -10,6 +11,5 @@ export interface AgentCapabilityLayerDto {
10
11
  mayEditRepos?: AgentCapabilityLayerDtoMayEditRepos;
11
12
  mayWriteKnowledgeBase?: boolean;
12
13
  allowedXemaTools?: string[];
13
- /** Canonical capability refs this agent is ARMED with. OMIT the field for "everything the authority verdict allows"; send an EMPTY ARRAY for "armed with nothing". The two are different statements and are stored distinctly — never send `[]` to mean "unspecified". */
14
- armedCapabilityRefs?: string[];
14
+ aperture: AgentCapabilityApertureDto;
15
15
  }
@@ -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,7 @@
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 });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -63,6 +63,6 @@ export interface AgentKernelResponseDto {
63
63
  definitionHash?: AgentKernelResponseDtoDefinitionHash;
64
64
  /** Authored workspace intent for launch compatibility checks. */
65
65
  workspace?: AgentWorkspaceDto | null;
66
- /** The agent's resolved capability envelope, including its arming (`armedCapabilityRefs`). Always present. */
66
+ /** The agent's resolved capability envelope and explicit aperture. Always present. */
67
67
  capability: AgentCapabilityLayerDto;
68
68
  }
@@ -25,7 +25,7 @@ export interface AgentNodeDto {
25
25
  modelOverride?: AgentModelOverrideDto;
26
26
  biomeAvailability?: AgentBiomeAvailabilityDto;
27
27
  /**
28
- * Server-stamped, resolve-only: SHA-256 of the ACTIVE revision of the agent this node references. Rejected on write.
28
+ * Server-stamped, resolve-only: SHA-256 of the STABLE revision of the agent this node references. Rejected on write.
29
29
  * @pattern ^[a-f0-9]{64}$
30
30
  */
31
31
  agentContentHash?: string;
@@ -0,0 +1,15 @@
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 { AgentOwnerSpaceDtoTier } from './agentOwnerSpaceDtoTier.js';
7
+ export interface AgentOwnerSpaceDto {
8
+ tier: AgentOwnerSpaceDtoTier;
9
+ orgId?: string;
10
+ projectId?: string;
11
+ appId?: string;
12
+ sessionId?: string;
13
+ biomeId?: string;
14
+ userId?: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
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 type AgentOwnerSpaceDtoTier = typeof AgentOwnerSpaceDtoTier[keyof typeof AgentOwnerSpaceDtoTier];
7
+ export declare const AgentOwnerSpaceDtoTier: {
8
+ readonly system: "system";
9
+ readonly org: "org";
10
+ readonly project: "project";
11
+ readonly app: "app";
12
+ readonly session: "session";
13
+ readonly biome: "biome";
14
+ readonly user: "user";
15
+ };
@@ -0,0 +1,17 @@
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.AgentOwnerSpaceDtoTier = void 0;
9
+ exports.AgentOwnerSpaceDtoTier = {
10
+ system: 'system',
11
+ org: 'org',
12
+ project: 'project',
13
+ app: 'app',
14
+ session: 'session',
15
+ biome: 'biome',
16
+ user: 'user',
17
+ };
@@ -0,0 +1,13 @@
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 { AgentOwnerSpaceDto } from './agentOwnerSpaceDto.js';
7
+ import type { AgentOwnerSpaceRefDtoFence } from './agentOwnerSpaceRefDtoFence.js';
8
+ export interface AgentOwnerSpaceRefDto {
9
+ fence: AgentOwnerSpaceRefDtoFence;
10
+ /** @nullable */
11
+ orgId: string | null;
12
+ space: AgentOwnerSpaceDto;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
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 type AgentOwnerSpaceRefDtoFence = typeof AgentOwnerSpaceRefDtoFence[keyof typeof AgentOwnerSpaceRefDtoFence];
7
+ export declare const AgentOwnerSpaceRefDtoFence: {
8
+ readonly global: "global";
9
+ readonly tenant: "tenant";
10
+ };
@@ -0,0 +1,12 @@
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.AgentOwnerSpaceRefDtoFence = void 0;
9
+ exports.AgentOwnerSpaceRefDtoFence = {
10
+ global: 'global',
11
+ tenant: 'tenant',
12
+ };
@@ -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 { AgentRollbackResponseDtoStatus } from './agentRollbackResponseDtoStatus.js';
7
+ export interface AgentRollbackResponseDto {
8
+ identityId: string;
9
+ priorReleaseSetId: string;
10
+ /** @minimum 1 */
11
+ expectedChannelVersion: number;
12
+ releaseIntentId: string;
13
+ status: AgentRollbackResponseDtoStatus;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
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 type AgentRollbackResponseDtoStatus = typeof AgentRollbackResponseDtoStatus[keyof typeof AgentRollbackResponseDtoStatus];
7
+ export declare const AgentRollbackResponseDtoStatus: {
8
+ readonly pending: "pending";
9
+ readonly reconciling: "reconciling";
10
+ readonly applied: "applied";
11
+ readonly failed: "failed";
12
+ };
@@ -0,0 +1,14 @@
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.AgentRollbackResponseDtoStatus = void 0;
9
+ exports.AgentRollbackResponseDtoStatus = {
10
+ pending: 'pending',
11
+ reconciling: 'reconciling',
12
+ applied: 'applied',
13
+ failed: 'failed',
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
+ export type AgentRuntimeControllerResolveExactRevisionAuthorityParams = {
7
+ contentHash: string;
8
+ projectId?: string;
9
+ };
@@ -0,0 +1,7 @@
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 });
@@ -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
+ import type { AgentCapabilityApertureDto } from './agentCapabilityApertureDto.js';
7
+ import type { AgentOwnerSpaceRefDto } from './agentOwnerSpaceRefDto.js';
8
+ import type { ExactAgentRevisionAuthorityResponseDtoReachTier } from './exactAgentRevisionAuthorityResponseDtoReachTier.js';
9
+ import type { ExactAgentRevisionResolvedGraphDto } from './exactAgentRevisionResolvedGraphDto.js';
10
+ export interface ExactAgentRevisionAuthorityResponseDto {
11
+ resourceId: string;
12
+ revisionId: string;
13
+ contentHash: string;
14
+ preparationGenerationId: string;
15
+ ownerSpaceRef: AgentOwnerSpaceRefDto;
16
+ resolvedGraph: ExactAgentRevisionResolvedGraphDto;
17
+ capabilityAperture: AgentCapabilityApertureDto;
18
+ reachTier: ExactAgentRevisionAuthorityResponseDtoReachTier;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 { ExactAgentRevisionAuthorityResponseDto } from './exactAgentRevisionAuthorityResponseDto.js';
7
+ export interface ExactAgentRevisionAuthorityResponseDtoDataEnvelope {
8
+ data: ExactAgentRevisionAuthorityResponseDto;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
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 type ExactAgentRevisionAuthorityResponseDtoReachTier = typeof ExactAgentRevisionAuthorityResponseDtoReachTier[keyof typeof ExactAgentRevisionAuthorityResponseDtoReachTier];
7
+ export declare const ExactAgentRevisionAuthorityResponseDtoReachTier: {
8
+ readonly sandbox: "sandbox";
9
+ readonly 'as-owner': "as-owner";
10
+ readonly connected: "connected";
11
+ readonly full: "full";
12
+ };
@@ -0,0 +1,14 @@
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.ExactAgentRevisionAuthorityResponseDtoReachTier = void 0;
9
+ exports.ExactAgentRevisionAuthorityResponseDtoReachTier = {
10
+ sandbox: 'sandbox',
11
+ 'as-owner': 'as-owner',
12
+ connected: 'connected',
13
+ full: 'full',
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 { AgentNodeDto } from './agentNodeDto.js';
7
+ export interface ExactAgentRevisionResolvedGraphDto {
8
+ root: AgentNodeDto;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,10 @@ export * from './agentBiomeAvailabilityDto';
6
6
  export * from './agentBundleRenderDto';
7
7
  export * from './agentCapabilityAnalysisDto';
8
8
  export * from './agentCapabilityAnalysisDtoDataEnvelope';
9
+ export * from './agentCapabilityApertureDto';
10
+ export * from './agentCapabilityApertureDtoDefaultEffect';
11
+ export * from './agentCapabilityApertureDtoDomains';
12
+ export * from './agentCapabilityApertureDtoKind';
9
13
  export * from './agentCapabilityLayerDto';
10
14
  export * from './agentCapabilityLayerDtoMayEditRepos';
11
15
  export * from './agentCapabilityLayerDtoWritePolicy';
@@ -18,6 +22,8 @@ export * from './agentConfigBlockDtoTools';
18
22
  export * from './agentConfigBlocksResponseDto';
19
23
  export * from './agentConfigBlocksResponseDtoDataEnvelope';
20
24
  export * from './agentCredentialDto';
25
+ export * from './agentDraftRingEntryDto';
26
+ export * from './agentDraftRingEntryDtoDataArrayEnvelope';
21
27
  export * from './agentEnvVarDto';
22
28
  export * from './agentExecutionMode';
23
29
  export * from './agentKernelControllerBrowseTalentPoolParams';
@@ -53,6 +59,10 @@ export * from './agentNodeDtoPermission';
53
59
  export * from './agentNodeDtoPromptMode';
54
60
  export * from './agentOutputSurfaceDto';
55
61
  export * from './agentOutputSurfaceDtoMode';
62
+ export * from './agentOwnerSpaceDto';
63
+ export * from './agentOwnerSpaceDtoTier';
64
+ export * from './agentOwnerSpaceRefDto';
65
+ export * from './agentOwnerSpaceRefDtoFence';
56
66
  export * from './agentPermissionsDto';
57
67
  export * from './agentPermissionsToolsDto';
58
68
  export * from './agentPersistenceDto';
@@ -68,10 +78,14 @@ export * from './agentRefDto';
68
78
  export * from './agentRevisionHistoryEntryDto';
69
79
  export * from './agentRevisionHistoryEntryDtoDataArrayEnvelope';
70
80
  export * from './agentRevisionHistoryEntryDtoSourceProvenance';
81
+ export * from './agentRollbackResponseDto';
82
+ export * from './agentRollbackResponseDtoDataEnvelope';
83
+ export * from './agentRollbackResponseDtoStatus';
71
84
  export * from './agentRunConfigDto';
72
85
  export * from './agentRunRole';
73
86
  export * from './agentRuntimeControllerAnalyzeParams';
74
87
  export * from './agentRuntimeControllerResolveDraftParams';
88
+ export * from './agentRuntimeControllerResolveExactRevisionAuthorityParams';
75
89
  export * from './agentRuntimeControllerResolveParams';
76
90
  export * from './agentRuntimeControllerResolveRevisionParams';
77
91
  export * from './agentSessionLifecycle';
@@ -144,6 +158,10 @@ export * from './errorDetailsDto';
144
158
  export * from './errorDetailsDtoDetails';
145
159
  export * from './errorPayloadDto';
146
160
  export * from './errorResponseDto';
161
+ export * from './exactAgentRevisionAuthorityResponseDto';
162
+ export * from './exactAgentRevisionAuthorityResponseDtoDataEnvelope';
163
+ export * from './exactAgentRevisionAuthorityResponseDtoReachTier';
164
+ export * from './exactAgentRevisionResolvedGraphDto';
147
165
  export * from './inputArtifactEntryDto';
148
166
  export * from './instructionSectionResponseDto';
149
167
  export * from './instructionSectionResponseDtoDataArrayEnvelope';
@@ -207,6 +225,7 @@ export * from './modelStrategyResponseDtoDataArrayEnvelope';
207
225
  export * from './modelStrategyResponseDtoDataEnvelope';
208
226
  export * from './mountEntryDto';
209
227
  export * from './mountEntryDtoMode';
228
+ export * from './moveRevisionPinsDto';
210
229
  export * from './mutabilityTier';
211
230
  export * from './orgDefaultStrategyStatusResponseDto';
212
231
  export * from './orgDefaultStrategyStatusResponseDtoDataEnvelope';
@@ -293,12 +312,18 @@ export * from './resolvedToolProfileDto';
293
312
  export * from './resolvedToolProfileDtoCatalogId';
294
313
  export * from './resolvedToolProfileDtoDataArrayEnvelope';
295
314
  export * from './restoreAgentRevisionDto';
315
+ export * from './revisionPinDto';
316
+ export * from './revisionPinDtoDataArrayEnvelope';
317
+ export * from './revisionPinHolder';
318
+ export * from './revisionPinMovePlanDto';
319
+ export * from './revisionPinMovePlanDtoDataEnvelope';
296
320
  export * from './roleCapabilityProfileDto';
297
321
  export * from './roleCapabilityProfileDtoDataEnvelope';
298
322
  export * from './roleCapabilityProfileDtoMayEditRepos';
299
323
  export * from './roleCapabilityProfileDtoPaginatedEnvelope';
300
324
  export * from './roleCapabilityProfileDtoSurface';
301
325
  export * from './roleCapabilityProfileDtoWritePolicy';
326
+ export * from './rollbackAgentRevisionDto';
302
327
  export * from './scopeSource';
303
328
  export * from './standingSessionRefDto';
304
329
  export * from './startEmbeddingMigrationDto';
@@ -23,6 +23,10 @@ __exportStar(require("./agentBiomeAvailabilityDto"), exports);
23
23
  __exportStar(require("./agentBundleRenderDto"), exports);
24
24
  __exportStar(require("./agentCapabilityAnalysisDto"), exports);
25
25
  __exportStar(require("./agentCapabilityAnalysisDtoDataEnvelope"), exports);
26
+ __exportStar(require("./agentCapabilityApertureDto"), exports);
27
+ __exportStar(require("./agentCapabilityApertureDtoDefaultEffect"), exports);
28
+ __exportStar(require("./agentCapabilityApertureDtoDomains"), exports);
29
+ __exportStar(require("./agentCapabilityApertureDtoKind"), exports);
26
30
  __exportStar(require("./agentCapabilityLayerDto"), exports);
27
31
  __exportStar(require("./agentCapabilityLayerDtoMayEditRepos"), exports);
28
32
  __exportStar(require("./agentCapabilityLayerDtoWritePolicy"), exports);
@@ -35,6 +39,8 @@ __exportStar(require("./agentConfigBlockDtoTools"), exports);
35
39
  __exportStar(require("./agentConfigBlocksResponseDto"), exports);
36
40
  __exportStar(require("./agentConfigBlocksResponseDtoDataEnvelope"), exports);
37
41
  __exportStar(require("./agentCredentialDto"), exports);
42
+ __exportStar(require("./agentDraftRingEntryDto"), exports);
43
+ __exportStar(require("./agentDraftRingEntryDtoDataArrayEnvelope"), exports);
38
44
  __exportStar(require("./agentEnvVarDto"), exports);
39
45
  __exportStar(require("./agentExecutionMode"), exports);
40
46
  __exportStar(require("./agentKernelControllerBrowseTalentPoolParams"), exports);
@@ -70,6 +76,10 @@ __exportStar(require("./agentNodeDtoPermission"), exports);
70
76
  __exportStar(require("./agentNodeDtoPromptMode"), exports);
71
77
  __exportStar(require("./agentOutputSurfaceDto"), exports);
72
78
  __exportStar(require("./agentOutputSurfaceDtoMode"), exports);
79
+ __exportStar(require("./agentOwnerSpaceDto"), exports);
80
+ __exportStar(require("./agentOwnerSpaceDtoTier"), exports);
81
+ __exportStar(require("./agentOwnerSpaceRefDto"), exports);
82
+ __exportStar(require("./agentOwnerSpaceRefDtoFence"), exports);
73
83
  __exportStar(require("./agentPermissionsDto"), exports);
74
84
  __exportStar(require("./agentPermissionsToolsDto"), exports);
75
85
  __exportStar(require("./agentPersistenceDto"), exports);
@@ -85,10 +95,14 @@ __exportStar(require("./agentRefDto"), exports);
85
95
  __exportStar(require("./agentRevisionHistoryEntryDto"), exports);
86
96
  __exportStar(require("./agentRevisionHistoryEntryDtoDataArrayEnvelope"), exports);
87
97
  __exportStar(require("./agentRevisionHistoryEntryDtoSourceProvenance"), exports);
98
+ __exportStar(require("./agentRollbackResponseDto"), exports);
99
+ __exportStar(require("./agentRollbackResponseDtoDataEnvelope"), exports);
100
+ __exportStar(require("./agentRollbackResponseDtoStatus"), exports);
88
101
  __exportStar(require("./agentRunConfigDto"), exports);
89
102
  __exportStar(require("./agentRunRole"), exports);
90
103
  __exportStar(require("./agentRuntimeControllerAnalyzeParams"), exports);
91
104
  __exportStar(require("./agentRuntimeControllerResolveDraftParams"), exports);
105
+ __exportStar(require("./agentRuntimeControllerResolveExactRevisionAuthorityParams"), exports);
92
106
  __exportStar(require("./agentRuntimeControllerResolveParams"), exports);
93
107
  __exportStar(require("./agentRuntimeControllerResolveRevisionParams"), exports);
94
108
  __exportStar(require("./agentSessionLifecycle"), exports);
@@ -161,6 +175,10 @@ __exportStar(require("./errorDetailsDto"), exports);
161
175
  __exportStar(require("./errorDetailsDtoDetails"), exports);
162
176
  __exportStar(require("./errorPayloadDto"), exports);
163
177
  __exportStar(require("./errorResponseDto"), exports);
178
+ __exportStar(require("./exactAgentRevisionAuthorityResponseDto"), exports);
179
+ __exportStar(require("./exactAgentRevisionAuthorityResponseDtoDataEnvelope"), exports);
180
+ __exportStar(require("./exactAgentRevisionAuthorityResponseDtoReachTier"), exports);
181
+ __exportStar(require("./exactAgentRevisionResolvedGraphDto"), exports);
164
182
  __exportStar(require("./inputArtifactEntryDto"), exports);
165
183
  __exportStar(require("./instructionSectionResponseDto"), exports);
166
184
  __exportStar(require("./instructionSectionResponseDtoDataArrayEnvelope"), exports);
@@ -224,6 +242,7 @@ __exportStar(require("./modelStrategyResponseDtoDataArrayEnvelope"), exports);
224
242
  __exportStar(require("./modelStrategyResponseDtoDataEnvelope"), exports);
225
243
  __exportStar(require("./mountEntryDto"), exports);
226
244
  __exportStar(require("./mountEntryDtoMode"), exports);
245
+ __exportStar(require("./moveRevisionPinsDto"), exports);
227
246
  __exportStar(require("./mutabilityTier"), exports);
228
247
  __exportStar(require("./orgDefaultStrategyStatusResponseDto"), exports);
229
248
  __exportStar(require("./orgDefaultStrategyStatusResponseDtoDataEnvelope"), exports);
@@ -310,12 +329,18 @@ __exportStar(require("./resolvedToolProfileDto"), exports);
310
329
  __exportStar(require("./resolvedToolProfileDtoCatalogId"), exports);
311
330
  __exportStar(require("./resolvedToolProfileDtoDataArrayEnvelope"), exports);
312
331
  __exportStar(require("./restoreAgentRevisionDto"), exports);
332
+ __exportStar(require("./revisionPinDto"), exports);
333
+ __exportStar(require("./revisionPinDtoDataArrayEnvelope"), exports);
334
+ __exportStar(require("./revisionPinHolder"), exports);
335
+ __exportStar(require("./revisionPinMovePlanDto"), exports);
336
+ __exportStar(require("./revisionPinMovePlanDtoDataEnvelope"), exports);
313
337
  __exportStar(require("./roleCapabilityProfileDto"), exports);
314
338
  __exportStar(require("./roleCapabilityProfileDtoDataEnvelope"), exports);
315
339
  __exportStar(require("./roleCapabilityProfileDtoMayEditRepos"), exports);
316
340
  __exportStar(require("./roleCapabilityProfileDtoPaginatedEnvelope"), exports);
317
341
  __exportStar(require("./roleCapabilityProfileDtoSurface"), exports);
318
342
  __exportStar(require("./roleCapabilityProfileDtoWritePolicy"), exports);
343
+ __exportStar(require("./rollbackAgentRevisionDto"), exports);
319
344
  __exportStar(require("./scopeSource"), exports);
320
345
  __exportStar(require("./standingSessionRefDto"), exports);
321
346
  __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,7 @@
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 });
@@ -13,6 +13,8 @@ import type { ScopeSource } from './scopeSource.js';
13
13
  import type { StandingSessionRefDto } from './standingSessionRefDto.js';
14
14
  import type { WorkspaceSharingPolicy } from './workspaceSharingPolicy.js';
15
15
  export interface ResolvedAgentResponseDto {
16
+ /** Stable Agent AuthoredResource identity selected by resolution. */
17
+ resourceId: string;
16
18
  /**
17
19
  * Immutable AgentRevision id selected at published resolution. Null only for mutable Studio drafts.
18
20
  * @nullable
@@ -24,6 +26,11 @@ export interface ResolvedAgentResponseDto {
24
26
  * @pattern ^[a-f0-9]{64}$
25
27
  */
26
28
  agentContentHash?: string | null;
29
+ /** @nullable */
30
+ preparationGenerationId?: string | null;
31
+ /** @minimum 1 */
32
+ channelVersion?: number;
33
+ releaseSetId?: string;
27
34
  slug: string;
28
35
  /** Server-generated immutable revision number. */
29
36
  version: string;
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 RollbackAgentRevisionDto {
7
+ /** Owner-fenced immutable ReleaseSet whose stable state should be replayed. */
8
+ priorReleaseSetId: string;
9
+ /** @minimum 1 */
10
+ expectedChannelVersion: number;
11
+ }
@@ -0,0 +1,7 @@
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/llm-registry-api-client",
3
- "version": "0.7.11",
3
+ "version": "0.7.21",
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.13.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",