@xemahq/llm-registry-internal-api-client 0.7.27 → 0.7.28
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/endpoints/contributed-agent-pins/contributed-agent-pins.d.ts +6 -1
- package/dist/endpoints/contributed-agent-pins/contributed-agent-pins.js +34 -1
- package/dist/models/agentOwnerSpaceDto.d.ts +15 -0
- package/dist/models/agentOwnerSpaceDto.js +2 -0
- package/dist/models/agentOwnerSpaceDtoTier.d.ts +15 -0
- package/dist/models/agentOwnerSpaceDtoTier.js +17 -0
- package/dist/models/agentOwnerSpaceRefDto.d.ts +13 -0
- package/dist/models/agentOwnerSpaceRefDto.js +2 -0
- package/dist/models/agentOwnerSpaceRefDtoFence.d.ts +10 -0
- package/dist/models/agentOwnerSpaceRefDtoFence.js +12 -0
- package/dist/models/contributedAgentPinControllerResolveReleaseTargetParams.d.ts +8 -0
- package/dist/models/contributedAgentPinControllerResolveReleaseTargetParams.js +7 -0
- package/dist/models/contributedAgentReleaseTargetResponseDto.d.ts +19 -0
- package/dist/models/contributedAgentReleaseTargetResponseDto.js +2 -0
- package/dist/models/contributedAgentReleaseTargetResponseDtoDataEnvelope.d.ts +9 -0
- package/dist/models/contributedAgentReleaseTargetResponseDtoDataEnvelope.js +2 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
* LLM Registry API
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
|
-
import type { ContributedAgentPinResponseDtoDataEnvelope } from '../../models';
|
|
6
|
+
import type { ContributedAgentPinControllerResolveReleaseTargetParams, ContributedAgentPinResponseDtoDataEnvelope, ContributedAgentReleaseTargetResponseDtoDataEnvelope } from '../../models';
|
|
7
7
|
export declare const getContributedAgentPinControllerResolvePinUrl: (ownerScopeId: string, slug: string) => string;
|
|
8
8
|
/**
|
|
9
9
|
* @summary Resolve one biome-contributed Agent to its exact stable revision pin, owner-qualified.
|
|
10
10
|
*/
|
|
11
11
|
export declare const contributedAgentPinControllerResolvePin: (ownerScopeId: string, slug: string, options?: RequestInit) => Promise<ContributedAgentPinResponseDtoDataEnvelope>;
|
|
12
|
+
export declare const getContributedAgentPinControllerResolveReleaseTargetUrl: (resourceId: string, revisionId: string, params: ContributedAgentPinControllerResolveReleaseTargetParams) => string;
|
|
13
|
+
/**
|
|
14
|
+
* @summary Resolve the owner-qualified exact release target of one immutable Agent revision.
|
|
15
|
+
*/
|
|
16
|
+
export declare const contributedAgentPinControllerResolveReleaseTarget: (resourceId: string, revisionId: string, params: ContributedAgentPinControllerResolveReleaseTargetParams, options?: RequestInit) => Promise<ContributedAgentReleaseTargetResponseDtoDataEnvelope>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.contributedAgentPinControllerResolvePin = exports.getContributedAgentPinControllerResolvePinUrl = void 0;
|
|
3
|
+
exports.contributedAgentPinControllerResolveReleaseTarget = exports.getContributedAgentPinControllerResolveReleaseTargetUrl = exports.contributedAgentPinControllerResolvePin = exports.getContributedAgentPinControllerResolvePinUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
5
|
const getContributedAgentPinControllerResolvePinUrl = (ownerScopeId, slug) => {
|
|
6
6
|
return `/internal/contributed-agents/scopes/${ownerScopeId}/by-slug/${slug}/pin`;
|
|
@@ -16,3 +16,36 @@ const contributedAgentPinControllerResolvePin = async (ownerScopeId, slug, optio
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
exports.contributedAgentPinControllerResolvePin = contributedAgentPinControllerResolvePin;
|
|
19
|
+
const getContributedAgentPinControllerResolveReleaseTargetUrl = (resourceId, revisionId, params) => {
|
|
20
|
+
const normalizedParams = new URLSearchParams();
|
|
21
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
22
|
+
if (value === undefined)
|
|
23
|
+
return;
|
|
24
|
+
if (value === null) {
|
|
25
|
+
normalizedParams.append(key, 'null');
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
for (const item of value) {
|
|
30
|
+
if (item === undefined || item === null)
|
|
31
|
+
continue;
|
|
32
|
+
normalizedParams.append(key, item.toString());
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
normalizedParams.append(key, value.toString());
|
|
37
|
+
});
|
|
38
|
+
const stringifiedParams = normalizedParams.toString();
|
|
39
|
+
return stringifiedParams.length > 0 ? `/internal/contributed-agents/revisions/${resourceId}/${revisionId}/release-target?${stringifiedParams}` : `/internal/contributed-agents/revisions/${resourceId}/${revisionId}/release-target`;
|
|
40
|
+
};
|
|
41
|
+
exports.getContributedAgentPinControllerResolveReleaseTargetUrl = getContributedAgentPinControllerResolveReleaseTargetUrl;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Resolve the owner-qualified exact release target of one immutable Agent revision.
|
|
44
|
+
*/
|
|
45
|
+
const contributedAgentPinControllerResolveReleaseTarget = async (resourceId, revisionId, params, options) => {
|
|
46
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getContributedAgentPinControllerResolveReleaseTargetUrl)(resourceId, revisionId, params), {
|
|
47
|
+
...options,
|
|
48
|
+
method: 'GET'
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
exports.contributedAgentPinControllerResolveReleaseTarget = contributedAgentPinControllerResolveReleaseTarget;
|
|
@@ -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,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,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,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 { AgentOwnerSpaceRefDto } from './agentOwnerSpaceRefDto.js';
|
|
7
|
+
export interface ContributedAgentReleaseTargetResponseDto {
|
|
8
|
+
/** Stable Agent AuthoredResource identity. */
|
|
9
|
+
resourceId: string;
|
|
10
|
+
/** Immutable AgentRevision id that was resolved. */
|
|
11
|
+
revisionId: string;
|
|
12
|
+
/**
|
|
13
|
+
* SHA-256 of the immutable AgentRevision content.
|
|
14
|
+
* @pattern ^[a-f0-9]{64}$
|
|
15
|
+
*/
|
|
16
|
+
contentHash: string;
|
|
17
|
+
/** The canonical owner space this revision is registered under in the release plane. */
|
|
18
|
+
ownerSpaceRef: AgentOwnerSpaceRefDto;
|
|
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 { ContributedAgentReleaseTargetResponseDto } from './contributedAgentReleaseTargetResponseDto.js';
|
|
7
|
+
export interface ContributedAgentReleaseTargetResponseDtoDataEnvelope {
|
|
8
|
+
data: ContributedAgentReleaseTargetResponseDto;
|
|
9
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,8 +6,15 @@ export * from './agentInvokeResponseDtoDataEnvelope';
|
|
|
6
6
|
export * from './agentInvokeResponseDtoMode';
|
|
7
7
|
export * from './agentInvokeResponseDtoOutput';
|
|
8
8
|
export * from './agentInvokeResponseDtoStatus';
|
|
9
|
+
export * from './agentOwnerSpaceDto';
|
|
10
|
+
export * from './agentOwnerSpaceDtoTier';
|
|
11
|
+
export * from './agentOwnerSpaceRefDto';
|
|
12
|
+
export * from './agentOwnerSpaceRefDtoFence';
|
|
13
|
+
export * from './contributedAgentPinControllerResolveReleaseTargetParams';
|
|
9
14
|
export * from './contributedAgentPinResponseDto';
|
|
10
15
|
export * from './contributedAgentPinResponseDtoDataEnvelope';
|
|
16
|
+
export * from './contributedAgentReleaseTargetResponseDto';
|
|
17
|
+
export * from './contributedAgentReleaseTargetResponseDtoDataEnvelope';
|
|
11
18
|
export * from './defaultTargetRefDto';
|
|
12
19
|
export * from './describeObjectsResponseDto';
|
|
13
20
|
export * from './describeObjectsResponseDtoDataEnvelope';
|
package/dist/models/index.js
CHANGED
|
@@ -23,8 +23,15 @@ __exportStar(require("./agentInvokeResponseDtoDataEnvelope"), exports);
|
|
|
23
23
|
__exportStar(require("./agentInvokeResponseDtoMode"), exports);
|
|
24
24
|
__exportStar(require("./agentInvokeResponseDtoOutput"), exports);
|
|
25
25
|
__exportStar(require("./agentInvokeResponseDtoStatus"), exports);
|
|
26
|
+
__exportStar(require("./agentOwnerSpaceDto"), exports);
|
|
27
|
+
__exportStar(require("./agentOwnerSpaceDtoTier"), exports);
|
|
28
|
+
__exportStar(require("./agentOwnerSpaceRefDto"), exports);
|
|
29
|
+
__exportStar(require("./agentOwnerSpaceRefDtoFence"), exports);
|
|
30
|
+
__exportStar(require("./contributedAgentPinControllerResolveReleaseTargetParams"), exports);
|
|
26
31
|
__exportStar(require("./contributedAgentPinResponseDto"), exports);
|
|
27
32
|
__exportStar(require("./contributedAgentPinResponseDtoDataEnvelope"), exports);
|
|
33
|
+
__exportStar(require("./contributedAgentReleaseTargetResponseDto"), exports);
|
|
34
|
+
__exportStar(require("./contributedAgentReleaseTargetResponseDtoDataEnvelope"), exports);
|
|
28
35
|
__exportStar(require("./defaultTargetRefDto"), exports);
|
|
29
36
|
__exportStar(require("./describeObjectsResponseDto"), exports);
|
|
30
37
|
__exportStar(require("./describeObjectsResponseDtoDataEnvelope"), exports);
|