@xemahq/llm-gateway-api-client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-fetch.d.ts +43 -0
- package/dist/custom-fetch.js +146 -0
- package/dist/endpoints/admin-pricing/admin-pricing.d.ts +23 -0
- package/dist/endpoints/admin-pricing/admin-pricing.js +67 -0
- package/dist/endpoints/audit/audit.d.ts +53 -0
- package/dist/endpoints/audit/audit.js +225 -0
- package/dist/endpoints/health/health.d.ts +23 -0
- package/dist/endpoints/health/health.js +46 -0
- package/dist/endpoints/llm-proxy/llm-proxy.d.ts +20 -0
- package/dist/endpoints/llm-proxy/llm-proxy.js +67 -0
- package/dist/endpoints/usage-analytics/usage-analytics.d.ts +23 -0
- package/dist/endpoints/usage-analytics/usage-analytics.js +103 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +29 -0
- package/dist/models/auditControllerClearSessionsParams.d.ts +13 -0
- package/dist/models/auditControllerClearSessionsParams.js +9 -0
- package/dist/models/auditControllerCompleteByProjectParams.d.ts +13 -0
- package/dist/models/auditControllerCompleteByProjectParams.js +9 -0
- package/dist/models/auditControllerExportPdfParams.d.ts +38 -0
- package/dist/models/auditControllerExportPdfParams.js +2 -0
- package/dist/models/auditControllerExportPdfStatus.d.ts +13 -0
- package/dist/models/auditControllerExportPdfStatus.js +15 -0
- package/dist/models/auditControllerListEntriesParams.d.ts +17 -0
- package/dist/models/auditControllerListEntriesParams.js +9 -0
- package/dist/models/auditControllerListSessionsParams.d.ts +38 -0
- package/dist/models/auditControllerListSessionsParams.js +2 -0
- package/dist/models/auditControllerListSessionsStatus.d.ts +13 -0
- package/dist/models/auditControllerListSessionsStatus.js +15 -0
- package/dist/models/auditEntryDetailDto.d.ts +72 -0
- package/dist/models/auditEntryDetailDto.js +2 -0
- package/dist/models/auditEntryDetailDtoMetadata.d.ts +13 -0
- package/dist/models/auditEntryDetailDtoMetadata.js +9 -0
- package/dist/models/auditEntryDetailDtoRequestBody.d.ts +13 -0
- package/dist/models/auditEntryDetailDtoRequestBody.js +9 -0
- package/dist/models/auditEntryDetailDtoRequestType.d.ts +18 -0
- package/dist/models/auditEntryDetailDtoRequestType.js +17 -0
- package/dist/models/auditEntryDetailDtoResponseBody.d.ts +13 -0
- package/dist/models/auditEntryDetailDtoResponseBody.js +9 -0
- package/dist/models/auditEntryDetailDtoStatus.d.ts +16 -0
- package/dist/models/auditEntryDetailDtoStatus.js +15 -0
- package/dist/models/auditEntryDetailDtoStreamingPhase.d.ts +17 -0
- package/dist/models/auditEntryDetailDtoStreamingPhase.js +15 -0
- package/dist/models/auditEntryDetailDtoToolCalls.d.ts +13 -0
- package/dist/models/auditEntryDetailDtoToolCalls.js +9 -0
- package/dist/models/auditEntryDetailDtoUsageSource.d.ts +18 -0
- package/dist/models/auditEntryDetailDtoUsageSource.js +17 -0
- package/dist/models/auditEntryDetailResponseDto.d.ts +12 -0
- package/dist/models/auditEntryDetailResponseDto.js +2 -0
- package/dist/models/auditEntryDto.d.ts +63 -0
- package/dist/models/auditEntryDto.js +2 -0
- package/dist/models/auditEntryDtoMetadata.d.ts +13 -0
- package/dist/models/auditEntryDtoMetadata.js +9 -0
- package/dist/models/auditEntryDtoRequestType.d.ts +18 -0
- package/dist/models/auditEntryDtoRequestType.js +17 -0
- package/dist/models/auditEntryDtoStatus.d.ts +16 -0
- package/dist/models/auditEntryDtoStatus.js +15 -0
- package/dist/models/auditEntryDtoStreamingPhase.d.ts +17 -0
- package/dist/models/auditEntryDtoStreamingPhase.js +15 -0
- package/dist/models/auditEntryDtoUsageSource.d.ts +18 -0
- package/dist/models/auditEntryDtoUsageSource.js +17 -0
- package/dist/models/auditEntryListResponseDto.d.ts +15 -0
- package/dist/models/auditEntryListResponseDto.js +2 -0
- package/dist/models/auditSessionDto.d.ts +58 -0
- package/dist/models/auditSessionDto.js +2 -0
- package/dist/models/auditSessionDtoMetadata.d.ts +13 -0
- package/dist/models/auditSessionDtoMetadata.js +9 -0
- package/dist/models/auditSessionDtoProviderTier.d.ts +15 -0
- package/dist/models/auditSessionDtoProviderTier.js +14 -0
- package/dist/models/auditSessionDtoStatus.d.ts +16 -0
- package/dist/models/auditSessionDtoStatus.js +15 -0
- package/dist/models/auditSessionListResponseDto.d.ts +15 -0
- package/dist/models/auditSessionListResponseDto.js +2 -0
- package/dist/models/auditSessionResponseDto.d.ts +12 -0
- package/dist/models/auditSessionResponseDto.js +2 -0
- package/dist/models/auditStatusDataDto.d.ts +13 -0
- package/dist/models/auditStatusDataDto.js +9 -0
- package/dist/models/auditStatusResponseDto.d.ts +12 -0
- package/dist/models/auditStatusResponseDto.js +2 -0
- package/dist/models/completedCountDto.d.ts +11 -0
- package/dist/models/completedCountDto.js +9 -0
- package/dist/models/completedCountResponseDto.d.ts +12 -0
- package/dist/models/completedCountResponseDto.js +2 -0
- package/dist/models/createPricingDto.d.ts +21 -0
- package/dist/models/createPricingDto.js +2 -0
- package/dist/models/createPricingDtoSource.d.ts +13 -0
- package/dist/models/createPricingDtoSource.js +15 -0
- package/dist/models/healthControllerReady200.d.ts +18 -0
- package/dist/models/healthControllerReady200.js +2 -0
- package/dist/models/healthControllerReady200Details.d.ts +13 -0
- package/dist/models/healthControllerReady200Details.js +9 -0
- package/dist/models/healthControllerReady200Error.d.ts +16 -0
- package/dist/models/healthControllerReady200Error.js +9 -0
- package/dist/models/healthControllerReady200Info.d.ts +16 -0
- package/dist/models/healthControllerReady200Info.js +9 -0
- package/dist/models/healthControllerReady503.d.ts +18 -0
- package/dist/models/healthControllerReady503.js +2 -0
- package/dist/models/healthControllerReady503Details.d.ts +13 -0
- package/dist/models/healthControllerReady503Details.js +9 -0
- package/dist/models/healthControllerReady503Error.d.ts +16 -0
- package/dist/models/healthControllerReady503Error.js +9 -0
- package/dist/models/healthControllerReady503Info.d.ts +16 -0
- package/dist/models/healthControllerReady503Info.js +9 -0
- package/dist/models/index.d.ts +56 -0
- package/dist/models/index.js +72 -0
- package/dist/models/paginationMetaDto.d.ts +17 -0
- package/dist/models/paginationMetaDto.js +9 -0
- package/dist/models/pricingControllerListPricingParams.d.ts +19 -0
- package/dist/models/pricingControllerListPricingParams.js +9 -0
- package/dist/models/usageAnalyticsControllerGetByProjectParams.d.ts +11 -0
- package/dist/models/usageAnalyticsControllerGetByProjectParams.js +9 -0
- package/dist/models/usageAnalyticsControllerGetRecentParams.d.ts +11 -0
- package/dist/models/usageAnalyticsControllerGetRecentParams.js +9 -0
- package/dist/models/usageAnalyticsControllerGetSummaryParams.d.ts +11 -0
- package/dist/models/usageAnalyticsControllerGetSummaryParams.js +9 -0
- package/package.json +20 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proxyControllerListModels = exports.getProxyControllerListModelsUrl = exports.proxyControllerEmbeddings = exports.getProxyControllerEmbeddingsUrl = exports.proxyControllerCompletions = exports.getProxyControllerCompletionsUrl = exports.proxyControllerChatCompletions = exports.getProxyControllerChatCompletionsUrl = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generated by orval v8.6.2 🍺
|
|
6
|
+
* Do not edit manually.
|
|
7
|
+
* LLM Gateway API
|
|
8
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
9
|
+
* OpenAPI spec version: 0.1.0
|
|
10
|
+
*/
|
|
11
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
12
|
+
/**
|
|
13
|
+
* @summary Proxy chat completion request to LLM provider
|
|
14
|
+
*/
|
|
15
|
+
const getProxyControllerChatCompletionsUrl = () => {
|
|
16
|
+
return `/v1/chat/completions`;
|
|
17
|
+
};
|
|
18
|
+
exports.getProxyControllerChatCompletionsUrl = getProxyControllerChatCompletionsUrl;
|
|
19
|
+
const proxyControllerChatCompletions = async (options) => {
|
|
20
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProxyControllerChatCompletionsUrl)(), {
|
|
21
|
+
...options,
|
|
22
|
+
method: 'POST'
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
exports.proxyControllerChatCompletions = proxyControllerChatCompletions;
|
|
26
|
+
/**
|
|
27
|
+
* @summary Proxy completion request to LLM provider
|
|
28
|
+
*/
|
|
29
|
+
const getProxyControllerCompletionsUrl = () => {
|
|
30
|
+
return `/v1/completions`;
|
|
31
|
+
};
|
|
32
|
+
exports.getProxyControllerCompletionsUrl = getProxyControllerCompletionsUrl;
|
|
33
|
+
const proxyControllerCompletions = async (options) => {
|
|
34
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProxyControllerCompletionsUrl)(), {
|
|
35
|
+
...options,
|
|
36
|
+
method: 'POST'
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
exports.proxyControllerCompletions = proxyControllerCompletions;
|
|
40
|
+
/**
|
|
41
|
+
* @summary Proxy embedding request to LLM provider
|
|
42
|
+
*/
|
|
43
|
+
const getProxyControllerEmbeddingsUrl = () => {
|
|
44
|
+
return `/v1/embeddings`;
|
|
45
|
+
};
|
|
46
|
+
exports.getProxyControllerEmbeddingsUrl = getProxyControllerEmbeddingsUrl;
|
|
47
|
+
const proxyControllerEmbeddings = async (options) => {
|
|
48
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProxyControllerEmbeddingsUrl)(), {
|
|
49
|
+
...options,
|
|
50
|
+
method: 'POST'
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.proxyControllerEmbeddings = proxyControllerEmbeddings;
|
|
54
|
+
/**
|
|
55
|
+
* @summary List available models (from gateway token context)
|
|
56
|
+
*/
|
|
57
|
+
const getProxyControllerListModelsUrl = () => {
|
|
58
|
+
return `/v1/models`;
|
|
59
|
+
};
|
|
60
|
+
exports.getProxyControllerListModelsUrl = getProxyControllerListModelsUrl;
|
|
61
|
+
const proxyControllerListModels = async (options) => {
|
|
62
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProxyControllerListModelsUrl)(), {
|
|
63
|
+
...options,
|
|
64
|
+
method: 'GET'
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
exports.proxyControllerListModels = proxyControllerListModels;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { UsageAnalyticsControllerGetByProjectParams, UsageAnalyticsControllerGetRecentParams, UsageAnalyticsControllerGetSummaryParams } from '../../models';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Get usage summary for a period
|
|
11
|
+
*/
|
|
12
|
+
export declare const getUsageAnalyticsControllerGetSummaryUrl: (params?: UsageAnalyticsControllerGetSummaryParams) => string;
|
|
13
|
+
export declare const usageAnalyticsControllerGetSummary: (params?: UsageAnalyticsControllerGetSummaryParams, options?: RequestInit) => Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Get usage breakdown by project
|
|
16
|
+
*/
|
|
17
|
+
export declare const getUsageAnalyticsControllerGetByProjectUrl: (params?: UsageAnalyticsControllerGetByProjectParams) => string;
|
|
18
|
+
export declare const usageAnalyticsControllerGetByProject: (params?: UsageAnalyticsControllerGetByProjectParams, options?: RequestInit) => Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* @summary Get recent usage records (paginated)
|
|
21
|
+
*/
|
|
22
|
+
export declare const getUsageAnalyticsControllerGetRecentUrl: (params?: UsageAnalyticsControllerGetRecentParams) => string;
|
|
23
|
+
export declare const usageAnalyticsControllerGetRecent: (params?: UsageAnalyticsControllerGetRecentParams, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.usageAnalyticsControllerGetRecent = exports.getUsageAnalyticsControllerGetRecentUrl = exports.usageAnalyticsControllerGetByProject = exports.getUsageAnalyticsControllerGetByProjectUrl = exports.usageAnalyticsControllerGetSummary = exports.getUsageAnalyticsControllerGetSummaryUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
/**
|
|
6
|
+
* @summary Get usage summary for a period
|
|
7
|
+
*/
|
|
8
|
+
const getUsageAnalyticsControllerGetSummaryUrl = (params) => {
|
|
9
|
+
const normalizedParams = new URLSearchParams();
|
|
10
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
11
|
+
if (value === undefined)
|
|
12
|
+
return;
|
|
13
|
+
if (value === null) {
|
|
14
|
+
normalizedParams.append(key, 'null');
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (Array.isArray(value)) {
|
|
18
|
+
for (const item of value) {
|
|
19
|
+
if (item === undefined || item === null)
|
|
20
|
+
continue;
|
|
21
|
+
normalizedParams.append(key, item.toString());
|
|
22
|
+
}
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
normalizedParams.append(key, value.toString());
|
|
26
|
+
});
|
|
27
|
+
const stringifiedParams = normalizedParams.toString();
|
|
28
|
+
return stringifiedParams.length > 0 ? `/usage/summary?${stringifiedParams}` : `/usage/summary`;
|
|
29
|
+
};
|
|
30
|
+
exports.getUsageAnalyticsControllerGetSummaryUrl = getUsageAnalyticsControllerGetSummaryUrl;
|
|
31
|
+
const usageAnalyticsControllerGetSummary = async (params, options) => {
|
|
32
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getUsageAnalyticsControllerGetSummaryUrl)(params), {
|
|
33
|
+
...options,
|
|
34
|
+
method: 'GET'
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
exports.usageAnalyticsControllerGetSummary = usageAnalyticsControllerGetSummary;
|
|
38
|
+
/**
|
|
39
|
+
* @summary Get usage breakdown by project
|
|
40
|
+
*/
|
|
41
|
+
const getUsageAnalyticsControllerGetByProjectUrl = (params) => {
|
|
42
|
+
const normalizedParams = new URLSearchParams();
|
|
43
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
44
|
+
if (value === undefined)
|
|
45
|
+
return;
|
|
46
|
+
if (value === null) {
|
|
47
|
+
normalizedParams.append(key, 'null');
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (Array.isArray(value)) {
|
|
51
|
+
for (const item of value) {
|
|
52
|
+
if (item === undefined || item === null)
|
|
53
|
+
continue;
|
|
54
|
+
normalizedParams.append(key, item.toString());
|
|
55
|
+
}
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
normalizedParams.append(key, value.toString());
|
|
59
|
+
});
|
|
60
|
+
const stringifiedParams = normalizedParams.toString();
|
|
61
|
+
return stringifiedParams.length > 0 ? `/usage/by-project?${stringifiedParams}` : `/usage/by-project`;
|
|
62
|
+
};
|
|
63
|
+
exports.getUsageAnalyticsControllerGetByProjectUrl = getUsageAnalyticsControllerGetByProjectUrl;
|
|
64
|
+
const usageAnalyticsControllerGetByProject = async (params, options) => {
|
|
65
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getUsageAnalyticsControllerGetByProjectUrl)(params), {
|
|
66
|
+
...options,
|
|
67
|
+
method: 'GET'
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
exports.usageAnalyticsControllerGetByProject = usageAnalyticsControllerGetByProject;
|
|
71
|
+
/**
|
|
72
|
+
* @summary Get recent usage records (paginated)
|
|
73
|
+
*/
|
|
74
|
+
const getUsageAnalyticsControllerGetRecentUrl = (params) => {
|
|
75
|
+
const normalizedParams = new URLSearchParams();
|
|
76
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
77
|
+
if (value === undefined)
|
|
78
|
+
return;
|
|
79
|
+
if (value === null) {
|
|
80
|
+
normalizedParams.append(key, 'null');
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (Array.isArray(value)) {
|
|
84
|
+
for (const item of value) {
|
|
85
|
+
if (item === undefined || item === null)
|
|
86
|
+
continue;
|
|
87
|
+
normalizedParams.append(key, item.toString());
|
|
88
|
+
}
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
normalizedParams.append(key, value.toString());
|
|
92
|
+
});
|
|
93
|
+
const stringifiedParams = normalizedParams.toString();
|
|
94
|
+
return stringifiedParams.length > 0 ? `/usage/recent?${stringifiedParams}` : `/usage/recent`;
|
|
95
|
+
};
|
|
96
|
+
exports.getUsageAnalyticsControllerGetRecentUrl = getUsageAnalyticsControllerGetRecentUrl;
|
|
97
|
+
const usageAnalyticsControllerGetRecent = async (params, options) => {
|
|
98
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getUsageAnalyticsControllerGetRecentUrl)(params), {
|
|
99
|
+
...options,
|
|
100
|
+
method: 'GET'
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
exports.usageAnalyticsControllerGetRecent = usageAnalyticsControllerGetRecent;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
|
|
2
|
+
export * from './models';
|
|
3
|
+
export * from './endpoints/admin-pricing/admin-pricing';
|
|
4
|
+
export * from './endpoints/audit/audit';
|
|
5
|
+
export * from './endpoints/health/health';
|
|
6
|
+
export * from './endpoints/llm-proxy/llm-proxy';
|
|
7
|
+
export * from './endpoints/usage-analytics/usage-analytics';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.customFetch = exports.ClientError = exports.getClientConfig = exports.configureClient = void 0;
|
|
18
|
+
// Auto-generated by scripts/build-client-index.js — do not edit manually.
|
|
19
|
+
var custom_fetch_1 = require("./custom-fetch");
|
|
20
|
+
Object.defineProperty(exports, "configureClient", { enumerable: true, get: function () { return custom_fetch_1.configureClient; } });
|
|
21
|
+
Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: function () { return custom_fetch_1.getClientConfig; } });
|
|
22
|
+
Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
|
|
23
|
+
Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
|
|
24
|
+
__exportStar(require("./models"), exports);
|
|
25
|
+
__exportStar(require("./endpoints/admin-pricing/admin-pricing"), exports);
|
|
26
|
+
__exportStar(require("./endpoints/audit/audit"), exports);
|
|
27
|
+
__exportStar(require("./endpoints/health/health"), exports);
|
|
28
|
+
__exportStar(require("./endpoints/llm-proxy/llm-proxy"), exports);
|
|
29
|
+
__exportStar(require("./endpoints/usage-analytics/usage-analytics"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type AuditControllerClearSessionsParams = {
|
|
9
|
+
/**
|
|
10
|
+
* Project id field.
|
|
11
|
+
*/
|
|
12
|
+
projectId?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type AuditControllerCompleteByProjectParams = {
|
|
9
|
+
/**
|
|
10
|
+
* Filter by group category (e.g. PIPELINE)
|
|
11
|
+
*/
|
|
12
|
+
groupCategory?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AuditControllerExportPdfStatus } from './auditControllerExportPdfStatus';
|
|
9
|
+
export type AuditControllerExportPdfParams = {
|
|
10
|
+
/**
|
|
11
|
+
* Page field.
|
|
12
|
+
*/
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Limit field.
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Project id field.
|
|
20
|
+
*/
|
|
21
|
+
projectId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Group category field.
|
|
24
|
+
*/
|
|
25
|
+
groupCategory?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Model slug field.
|
|
28
|
+
*/
|
|
29
|
+
modelSlug?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Status field.
|
|
32
|
+
*/
|
|
33
|
+
status?: AuditControllerExportPdfStatus;
|
|
34
|
+
/**
|
|
35
|
+
* Search field.
|
|
36
|
+
*/
|
|
37
|
+
search?: string;
|
|
38
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type AuditControllerExportPdfStatus = typeof AuditControllerExportPdfStatus[keyof typeof AuditControllerExportPdfStatus];
|
|
9
|
+
export declare const AuditControllerExportPdfStatus: {
|
|
10
|
+
readonly ACTIVE: "ACTIVE";
|
|
11
|
+
readonly COMPLETED: "COMPLETED";
|
|
12
|
+
readonly ERROR: "ERROR";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AuditControllerExportPdfStatus = void 0;
|
|
11
|
+
exports.AuditControllerExportPdfStatus = {
|
|
12
|
+
ACTIVE: 'ACTIVE',
|
|
13
|
+
COMPLETED: 'COMPLETED',
|
|
14
|
+
ERROR: 'ERROR',
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type AuditControllerListEntriesParams = {
|
|
9
|
+
/**
|
|
10
|
+
* Page field.
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Limit field.
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AuditControllerListSessionsStatus } from './auditControllerListSessionsStatus';
|
|
9
|
+
export type AuditControllerListSessionsParams = {
|
|
10
|
+
/**
|
|
11
|
+
* Page field.
|
|
12
|
+
*/
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Limit field.
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Project id field.
|
|
20
|
+
*/
|
|
21
|
+
projectId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Group category field.
|
|
24
|
+
*/
|
|
25
|
+
groupCategory?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Model slug field.
|
|
28
|
+
*/
|
|
29
|
+
modelSlug?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Status field.
|
|
32
|
+
*/
|
|
33
|
+
status?: AuditControllerListSessionsStatus;
|
|
34
|
+
/**
|
|
35
|
+
* Search field.
|
|
36
|
+
*/
|
|
37
|
+
search?: string;
|
|
38
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type AuditControllerListSessionsStatus = typeof AuditControllerListSessionsStatus[keyof typeof AuditControllerListSessionsStatus];
|
|
9
|
+
export declare const AuditControllerListSessionsStatus: {
|
|
10
|
+
readonly ACTIVE: "ACTIVE";
|
|
11
|
+
readonly COMPLETED: "COMPLETED";
|
|
12
|
+
readonly ERROR: "ERROR";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AuditControllerListSessionsStatus = void 0;
|
|
11
|
+
exports.AuditControllerListSessionsStatus = {
|
|
12
|
+
ACTIVE: 'ACTIVE',
|
|
13
|
+
COMPLETED: 'COMPLETED',
|
|
14
|
+
ERROR: 'ERROR',
|
|
15
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AuditEntryDetailDtoMetadata } from './auditEntryDetailDtoMetadata';
|
|
9
|
+
import type { AuditEntryDetailDtoRequestBody } from './auditEntryDetailDtoRequestBody';
|
|
10
|
+
import type { AuditEntryDetailDtoRequestType } from './auditEntryDetailDtoRequestType';
|
|
11
|
+
import type { AuditEntryDetailDtoResponseBody } from './auditEntryDetailDtoResponseBody';
|
|
12
|
+
import type { AuditEntryDetailDtoStatus } from './auditEntryDetailDtoStatus';
|
|
13
|
+
import type { AuditEntryDetailDtoStreamingPhase } from './auditEntryDetailDtoStreamingPhase';
|
|
14
|
+
import type { AuditEntryDetailDtoToolCalls } from './auditEntryDetailDtoToolCalls';
|
|
15
|
+
import type { AuditEntryDetailDtoUsageSource } from './auditEntryDetailDtoUsageSource';
|
|
16
|
+
export interface AuditEntryDetailDto {
|
|
17
|
+
/** Id field. */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Session id field. */
|
|
20
|
+
sessionId: string;
|
|
21
|
+
/** Sequence number field. */
|
|
22
|
+
sequenceNumber: number;
|
|
23
|
+
/** Request type field. */
|
|
24
|
+
requestType: AuditEntryDetailDtoRequestType;
|
|
25
|
+
/** Is streaming field. */
|
|
26
|
+
isStreaming: boolean;
|
|
27
|
+
/** Endpoint field. */
|
|
28
|
+
endpoint?: string;
|
|
29
|
+
/** Input tokens field. */
|
|
30
|
+
inputTokens: number;
|
|
31
|
+
/** Output tokens field. */
|
|
32
|
+
outputTokens: number;
|
|
33
|
+
/** Cache read tokens field. */
|
|
34
|
+
cacheReadTokens: number;
|
|
35
|
+
/** Cache write tokens field. */
|
|
36
|
+
cacheWriteTokens: number;
|
|
37
|
+
/** Total tokens field. */
|
|
38
|
+
totalTokens: number;
|
|
39
|
+
/** Usage source field. */
|
|
40
|
+
usageSource: AuditEntryDetailDtoUsageSource;
|
|
41
|
+
/** Cost eur field. */
|
|
42
|
+
costEur: number;
|
|
43
|
+
/** Duration ms field. */
|
|
44
|
+
durationMs: number;
|
|
45
|
+
/** Http status field. */
|
|
46
|
+
httpStatus: number;
|
|
47
|
+
/** Status field. */
|
|
48
|
+
status: AuditEntryDetailDtoStatus;
|
|
49
|
+
/**
|
|
50
|
+
* Streaming phase field.
|
|
51
|
+
* @nullable
|
|
52
|
+
*/
|
|
53
|
+
streamingPhase?: AuditEntryDetailDtoStreamingPhase;
|
|
54
|
+
/** Error message field. */
|
|
55
|
+
errorMessage?: string;
|
|
56
|
+
/** Metadata field. */
|
|
57
|
+
metadata?: AuditEntryDetailDtoMetadata;
|
|
58
|
+
/** Has tool calls field. */
|
|
59
|
+
hasToolCalls: boolean;
|
|
60
|
+
/** Message count field. */
|
|
61
|
+
messageCount?: number;
|
|
62
|
+
/** Expires at field. */
|
|
63
|
+
expiresAt: string;
|
|
64
|
+
/** Created at field. */
|
|
65
|
+
createdAt: string;
|
|
66
|
+
/** Request body field. */
|
|
67
|
+
requestBody?: AuditEntryDetailDtoRequestBody;
|
|
68
|
+
/** Response body field. */
|
|
69
|
+
responseBody?: AuditEntryDetailDtoResponseBody;
|
|
70
|
+
/** Tool calls field. */
|
|
71
|
+
toolCalls?: AuditEntryDetailDtoToolCalls;
|
|
72
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Metadata field.
|
|
10
|
+
*/
|
|
11
|
+
export type AuditEntryDetailDtoMetadata = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Request body field.
|
|
10
|
+
*/
|
|
11
|
+
export type AuditEntryDetailDtoRequestBody = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Request type field.
|
|
10
|
+
*/
|
|
11
|
+
export type AuditEntryDetailDtoRequestType = typeof AuditEntryDetailDtoRequestType[keyof typeof AuditEntryDetailDtoRequestType];
|
|
12
|
+
export declare const AuditEntryDetailDtoRequestType: {
|
|
13
|
+
readonly CHAT: "CHAT";
|
|
14
|
+
readonly COMPLETION: "COMPLETION";
|
|
15
|
+
readonly EMBEDDING: "EMBEDDING";
|
|
16
|
+
readonly IMAGE: "IMAGE";
|
|
17
|
+
readonly AUDIO: "AUDIO";
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AuditEntryDetailDtoRequestType = void 0;
|
|
11
|
+
exports.AuditEntryDetailDtoRequestType = {
|
|
12
|
+
CHAT: 'CHAT',
|
|
13
|
+
COMPLETION: 'COMPLETION',
|
|
14
|
+
EMBEDDING: 'EMBEDDING',
|
|
15
|
+
IMAGE: 'IMAGE',
|
|
16
|
+
AUDIO: 'AUDIO',
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Gateway API
|
|
5
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Response body field.
|
|
10
|
+
*/
|
|
11
|
+
export type AuditEntryDetailDtoResponseBody = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Gateway API
|
|
6
|
+
* Unified LLM proxy with provider management, credential resolution, concurrency, and usage tracking
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|