@holokai/holo-types 1.4.1
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/README.md +44 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/types.d.ts +11 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +2 -0
- package/dist/api/types.js.map +1 -0
- package/dist/entities/analysis.result.d.ts +8 -0
- package/dist/entities/analysis.result.d.ts.map +1 -0
- package/dist/entities/analysis.result.js +2 -0
- package/dist/entities/analysis.result.js.map +1 -0
- package/dist/entities/application.d.ts +21 -0
- package/dist/entities/application.d.ts.map +1 -0
- package/dist/entities/application.js +2 -0
- package/dist/entities/application.js.map +1 -0
- package/dist/entities/base.d.ts +8 -0
- package/dist/entities/base.d.ts.map +1 -0
- package/dist/entities/base.js +2 -0
- package/dist/entities/base.js.map +1 -0
- package/dist/entities/evaluator.d.ts +13 -0
- package/dist/entities/evaluator.d.ts.map +1 -0
- package/dist/entities/evaluator.data.d.ts +9 -0
- package/dist/entities/evaluator.data.d.ts.map +1 -0
- package/dist/entities/evaluator.data.js +2 -0
- package/dist/entities/evaluator.data.js.map +1 -0
- package/dist/entities/evaluator.js +2 -0
- package/dist/entities/evaluator.js.map +1 -0
- package/dist/entities/finish.reason.d.ts +9 -0
- package/dist/entities/finish.reason.d.ts.map +1 -0
- package/dist/entities/finish.reason.js +8 -0
- package/dist/entities/finish.reason.js.map +1 -0
- package/dist/entities/holo.token.d.ts +15 -0
- package/dist/entities/holo.token.d.ts.map +1 -0
- package/dist/entities/holo.token.js +2 -0
- package/dist/entities/holo.token.js.map +1 -0
- package/dist/entities/index.d.ts +22 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +7 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/model-dictionary-alias.d.ts +15 -0
- package/dist/entities/model-dictionary-alias.d.ts.map +1 -0
- package/dist/entities/model-dictionary-alias.js +2 -0
- package/dist/entities/model-dictionary-alias.js.map +1 -0
- package/dist/entities/model-dictionary.d.ts +37 -0
- package/dist/entities/model-dictionary.d.ts.map +1 -0
- package/dist/entities/model-dictionary.js +2 -0
- package/dist/entities/model-dictionary.js.map +1 -0
- package/dist/entities/model-match.d.ts +56 -0
- package/dist/entities/model-match.d.ts.map +1 -0
- package/dist/entities/model-match.js +2 -0
- package/dist/entities/model-match.js.map +1 -0
- package/dist/entities/model.d.ts +36 -0
- package/dist/entities/model.d.ts.map +1 -0
- package/dist/entities/model.js +2 -0
- package/dist/entities/model.js.map +1 -0
- package/dist/entities/notification.d.ts +15 -0
- package/dist/entities/notification.d.ts.map +1 -0
- package/dist/entities/notification.js +2 -0
- package/dist/entities/notification.js.map +1 -0
- package/dist/entities/organization.d.ts +17 -0
- package/dist/entities/organization.d.ts.map +1 -0
- package/dist/entities/organization.js +2 -0
- package/dist/entities/organization.js.map +1 -0
- package/dist/entities/plugin.d.ts +12 -0
- package/dist/entities/plugin.d.ts.map +1 -0
- package/dist/entities/plugin.js +2 -0
- package/dist/entities/plugin.js.map +1 -0
- package/dist/entities/pricing.d.ts +78 -0
- package/dist/entities/pricing.d.ts.map +1 -0
- package/dist/entities/pricing.js +10 -0
- package/dist/entities/pricing.js.map +1 -0
- package/dist/entities/prompt.d.ts +15 -0
- package/dist/entities/prompt.d.ts.map +1 -0
- package/dist/entities/prompt.js +2 -0
- package/dist/entities/prompt.js.map +1 -0
- package/dist/entities/protocol.d.ts +18 -0
- package/dist/entities/protocol.d.ts.map +1 -0
- package/dist/entities/protocol.js +8 -0
- package/dist/entities/protocol.js.map +1 -0
- package/dist/entities/provider.d.ts +16 -0
- package/dist/entities/provider.d.ts.map +1 -0
- package/dist/entities/provider.js +2 -0
- package/dist/entities/provider.js.map +1 -0
- package/dist/entities/provider.request.d.ts +46 -0
- package/dist/entities/provider.request.d.ts.map +1 -0
- package/dist/entities/provider.request.js +2 -0
- package/dist/entities/provider.request.js.map +1 -0
- package/dist/entities/provider.response.d.ts +59 -0
- package/dist/entities/provider.response.d.ts.map +1 -0
- package/dist/entities/provider.response.js +9 -0
- package/dist/entities/provider.response.js.map +1 -0
- package/dist/entities/server.d.ts +19 -0
- package/dist/entities/server.d.ts.map +1 -0
- package/dist/entities/server.js +8 -0
- package/dist/entities/server.js.map +1 -0
- package/dist/holo/content.d.ts +81 -0
- package/dist/holo/content.d.ts.map +1 -0
- package/dist/holo/content.js +2 -0
- package/dist/holo/content.js.map +1 -0
- package/dist/holo/embed.d.ts +16 -0
- package/dist/holo/embed.d.ts.map +1 -0
- package/dist/holo/embed.js +2 -0
- package/dist/holo/embed.js.map +1 -0
- package/dist/holo/errors.d.ts +11 -0
- package/dist/holo/errors.d.ts.map +1 -0
- package/dist/holo/errors.js +10 -0
- package/dist/holo/errors.js.map +1 -0
- package/dist/holo/generate.d.ts +13 -0
- package/dist/holo/generate.d.ts.map +1 -0
- package/dist/holo/generate.js +2 -0
- package/dist/holo/generate.js.map +1 -0
- package/dist/holo/index.d.ts +12 -0
- package/dist/holo/index.d.ts.map +1 -0
- package/dist/holo/index.js +12 -0
- package/dist/holo/index.js.map +1 -0
- package/dist/holo/messages.d.ts +28 -0
- package/dist/holo/messages.d.ts.map +1 -0
- package/dist/holo/messages.js +2 -0
- package/dist/holo/messages.js.map +1 -0
- package/dist/holo/metrics.d.ts +11 -0
- package/dist/holo/metrics.d.ts.map +1 -0
- package/dist/holo/metrics.js +2 -0
- package/dist/holo/metrics.js.map +1 -0
- package/dist/holo/models.d.ts +6 -0
- package/dist/holo/models.d.ts.map +1 -0
- package/dist/holo/models.js +2 -0
- package/dist/holo/models.js.map +1 -0
- package/dist/holo/requests.d.ts +53 -0
- package/dist/holo/requests.d.ts.map +1 -0
- package/dist/holo/requests.js +2 -0
- package/dist/holo/requests.js.map +1 -0
- package/dist/holo/responses.d.ts +145 -0
- package/dist/holo/responses.d.ts.map +1 -0
- package/dist/holo/responses.js +2 -0
- package/dist/holo/responses.js.map +1 -0
- package/dist/holo/threads.d.ts +58 -0
- package/dist/holo/threads.d.ts.map +1 -0
- package/dist/holo/threads.js +2 -0
- package/dist/holo/threads.js.map +1 -0
- package/dist/holo/tools.d.ts +40 -0
- package/dist/holo/tools.d.ts.map +1 -0
- package/dist/holo/tools.js +2 -0
- package/dist/holo/tools.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger/index.d.ts.map +1 -0
- package/dist/logger/index.js +2 -0
- package/dist/logger/index.js.map +1 -0
- package/dist/logger/logger.d.ts +16 -0
- package/dist/logger/logger.d.ts.map +1 -0
- package/dist/logger/logger.js +2 -0
- package/dist/logger/logger.js.map +1 -0
- package/dist/notification/index.d.ts +2 -0
- package/dist/notification/index.d.ts.map +1 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/index.js.map +1 -0
- package/dist/notification/types.d.ts +57 -0
- package/dist/notification/types.d.ts.map +1 -0
- package/dist/notification/types.js +12 -0
- package/dist/notification/types.js.map +1 -0
- package/dist/plugin/index.d.ts +2 -0
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/index.js +2 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/types.d.ts +114 -0
- package/dist/plugin/types.d.ts.map +1 -0
- package/dist/plugin/types.js +17 -0
- package/dist/plugin/types.js.map +1 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +3 -0
- package/dist/provider/index.js.map +1 -0
- package/dist/provider/protocol.d.ts +12 -0
- package/dist/provider/protocol.d.ts.map +1 -0
- package/dist/provider/protocol.js +2 -0
- package/dist/provider/protocol.js.map +1 -0
- package/dist/provider/types.d.ts +186 -0
- package/dist/provider/types.d.ts.map +1 -0
- package/dist/provider/types.js +8 -0
- package/dist/provider/types.js.map +1 -0
- package/dist/routing/index.d.ts +2 -0
- package/dist/routing/index.d.ts.map +1 -0
- package/dist/routing/index.js +2 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/routing/routes.d.ts +17 -0
- package/dist/routing/routes.d.ts.map +1 -0
- package/dist/routing/routes.js +10 -0
- package/dist/routing/routes.js.map +1 -0
- package/dist/worker/envelopes.d.ts +27 -0
- package/dist/worker/envelopes.d.ts.map +1 -0
- package/dist/worker/envelopes.js +2 -0
- package/dist/worker/envelopes.js.map +1 -0
- package/dist/worker/index.d.ts +3 -0
- package/dist/worker/index.d.ts.map +1 -0
- package/dist/worker/index.js +3 -0
- package/dist/worker/index.js.map +1 -0
- package/dist/worker/request.d.ts +42 -0
- package/dist/worker/request.d.ts.map +1 -0
- package/dist/worker/request.js +2 -0
- package/dist/worker/request.js.map +1 -0
- package/package.json +90 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# @holokai/holo-types
|
|
2
|
+
|
|
3
|
+
Pure type definitions for the Holo platform. Zero runtime dependencies. Used by `@holokai/holo-sdk`, provider plugins, and the Holo application.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @holokai/holo-types
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Subpath Exports
|
|
12
|
+
|
|
13
|
+
Types are organized into subpath exports for tree-shaking and clear dependency boundaries:
|
|
14
|
+
|
|
15
|
+
| Subpath | Description | Key Types |
|
|
16
|
+
|---------|-------------|-----------|
|
|
17
|
+
| `@holokai/holo-types` | Root re-export of all types | Everything |
|
|
18
|
+
| `@holokai/holo-types/holo` | Holo universal format | `HoloRequest`, `HoloResponse`, `HoloMessage`, content types |
|
|
19
|
+
| `@holokai/holo-types/entities` | Database entities and enums | `ProviderRequest`, `ProviderResponse`, `ProtocolCapability`, pricing types |
|
|
20
|
+
| `@holokai/holo-types/worker` | Worker queue messages | `HoloWorkerRequest`, `WorkerResponseEnvelope`, `WorkerQueueMessage` |
|
|
21
|
+
| `@holokai/holo-types/notification` | Notification events | `NotificationEvent`, `NotificationStore` |
|
|
22
|
+
| `@holokai/holo-types/routing` | Route definitions and handlers | `RouteTree`, `RouteDefinition`, `RouteHandler` |
|
|
23
|
+
| `@holokai/holo-types/api` | API request/response shapes | API controller types |
|
|
24
|
+
| `@holokai/holo-types/provider` | Provider interfaces | `IProvider`, `IWireAdapter`, `IAuditor`, `IProviderTranslator`, `ProviderEvent` |
|
|
25
|
+
| `@holokai/holo-types/logger` | Logging contracts | `ILoggerFactory`, `ILogger`, `HoloLogLevel` |
|
|
26
|
+
| `@holokai/holo-types/plugin` | Plugin interfaces | `IProviderPlugin`, `PluginManifest`, `PluginContext`, `PluginState` |
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
// Import from specific subpaths
|
|
32
|
+
import type {HoloRequest, HoloResponse} from '@holokai/holo-types/holo';
|
|
33
|
+
import type {IProviderPlugin, PluginManifest} from '@holokai/holo-types/plugin';
|
|
34
|
+
import type {IProvider, ProviderEvent} from '@holokai/holo-types/provider';
|
|
35
|
+
import {ProtocolCapability} from '@holokai/holo-types/entities';
|
|
36
|
+
import {RouteHandler} from '@holokai/holo-types/routing';
|
|
37
|
+
|
|
38
|
+
// Or import everything from root
|
|
39
|
+
import type {HoloRequest, IProvider, PluginManifest} from '@holokai/holo-types';
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Application } from "../entities";
|
|
2
|
+
export type TokenType = 'holo_user' | 'holo_application' | 'jwt' | 'anonymous';
|
|
3
|
+
export interface Auth {
|
|
4
|
+
organizationId: string;
|
|
5
|
+
userId?: string;
|
|
6
|
+
tokenType: TokenType;
|
|
7
|
+
application?: Application;
|
|
8
|
+
applications: Application[];
|
|
9
|
+
clientIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,kBAAkB,GAAG,KAAK,GAAG,WAAW,CAAC;AAE/E,MAAM,WAAW,IAAI;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analysis.result.d.ts","sourceRoot":"","sources":["../../src/entities/analysis.result.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analysis.result.js","sourceRoot":"","sources":["../../src/entities/analysis.result.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseEntity } from "./base";
|
|
2
|
+
import { Provider } from "./provider";
|
|
3
|
+
import { Model } from "./model";
|
|
4
|
+
import { Prompt } from "./prompt";
|
|
5
|
+
import { Evaluator } from "./evaluator";
|
|
6
|
+
export type AccessLevel = 'team' | 'organization' | 'anonymous';
|
|
7
|
+
export interface Application extends BaseEntity {
|
|
8
|
+
name: string;
|
|
9
|
+
provider_id: string;
|
|
10
|
+
system_prompt_id: string;
|
|
11
|
+
url_slug: string;
|
|
12
|
+
active: boolean;
|
|
13
|
+
organization_id: string;
|
|
14
|
+
access_level: AccessLevel;
|
|
15
|
+
provider?: Provider;
|
|
16
|
+
models?: Model[];
|
|
17
|
+
system_prompt?: Prompt;
|
|
18
|
+
guards?: Prompt[];
|
|
19
|
+
evaluators?: Evaluator[];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=application.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/entities/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,cAAc,GAAG,WAAW,CAAC;AAEhE,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../src/entities/application.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/entities/base.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/entities/base.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseEntity } from "./base";
|
|
2
|
+
export interface Evaluator extends BaseEntity {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string | null;
|
|
5
|
+
prompt_id?: string | null;
|
|
6
|
+
parameters: Record<string, any>;
|
|
7
|
+
evaluator_type: string;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
available: boolean;
|
|
10
|
+
deleted?: boolean;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=evaluator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../src/entities/evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,SAAU,SAAQ,UAAU;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.data.d.ts","sourceRoot":"","sources":["../../src/entities/evaluator.data.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,IAAI,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.data.js","sourceRoot":"","sources":["../../src/entities/evaluator.data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.js","sourceRoot":"","sources":["../../src/entities/evaluator.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const FinishReason: {
|
|
2
|
+
readonly STOP: "stop";
|
|
3
|
+
readonly TOOL_CALLS: "tool_calls";
|
|
4
|
+
readonly LENGTH: "length";
|
|
5
|
+
readonly CONTENT_FILTER: "content_filter";
|
|
6
|
+
readonly ERROR: "error";
|
|
7
|
+
};
|
|
8
|
+
export type FinishReason = typeof FinishReason[keyof typeof FinishReason];
|
|
9
|
+
//# sourceMappingURL=finish.reason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finish.reason.d.ts","sourceRoot":"","sources":["../../src/entities/finish.reason.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finish.reason.js","sourceRoot":"","sources":["../../src/entities/finish.reason.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,gBAAgB;IAChC,KAAK,EAAE,OAAO;CACR,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseEntity } from './base';
|
|
2
|
+
export interface HoloToken extends BaseEntity {
|
|
3
|
+
organization_id: string;
|
|
4
|
+
user_id?: string;
|
|
5
|
+
application_id?: string;
|
|
6
|
+
token_type: 'user' | 'application';
|
|
7
|
+
key_hash: string;
|
|
8
|
+
key_prefix: string;
|
|
9
|
+
key_suffix: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
expires_at?: Date;
|
|
12
|
+
last_used_at?: Date;
|
|
13
|
+
active: boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=holo.token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holo.token.d.ts","sourceRoot":"","sources":["../../src/entities/holo.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,SAAU,SAAQ,UAAU;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,aAAa,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holo.token.js","sourceRoot":"","sources":["../../src/entities/holo.token.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './base';
|
|
2
|
+
export { Provider } from "./provider";
|
|
3
|
+
export { Evaluator } from "./evaluator";
|
|
4
|
+
export { EvaluatorData } from "./evaluator.data";
|
|
5
|
+
export { Model } from "./model";
|
|
6
|
+
export { ModelDictionary, type ModelDictionaryStatus, type ModelKind } from "./model-dictionary";
|
|
7
|
+
export { ModelDictionaryAlias, type ModelAliasType } from "./model-dictionary-alias";
|
|
8
|
+
export { type MatchStatus, type MatchMethod, type MatchCandidate, type MatchMetadata, type AmbiguousMatchMetadata, type ResolvedMatchMetadata, type ModelMatchResult, type ModelMatchOverride } from "./model-match";
|
|
9
|
+
export { Notification } from "./notification";
|
|
10
|
+
export { AnalysisResult } from "./analysis.result";
|
|
11
|
+
export { type ProviderResponse, type ProviderResponseView, type ProviderResponseMetadata, type ProviderResponseMetrics, ProviderResponseStatus } from "./provider.response";
|
|
12
|
+
export { type ProviderRequest, type ProviderAuditRequest, type ProviderRequestMetadata, type ProviderEnvelope } from "./provider.request";
|
|
13
|
+
export { Application, type AccessLevel } from "./application";
|
|
14
|
+
export { FinishReason } from "./finish.reason";
|
|
15
|
+
export { HoloToken } from "./holo.token";
|
|
16
|
+
export { Organization } from "./organization";
|
|
17
|
+
export { Prompt } from "./prompt";
|
|
18
|
+
export { type Plugin } from "./plugin";
|
|
19
|
+
export { type Protocol, ProtocolCapability } from "./protocol";
|
|
20
|
+
export { type Server, ServerType } from "./server";
|
|
21
|
+
export { type PricingPlan, type PricingSheet, type PricingSheetModel, type ProviderResponseCost, type CostResult, PricingSource, CostType } from "./pricing";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,eAAe,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAE,KAAK,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACnF,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,sBAAsB,EACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,KAAK,gBAAgB,EACvG,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,WAAW,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,KAAK,QAAQ,EAAE,kBAAkB,EAAC,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAC,KAAK,MAAM,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AACjD,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,aAAa,EACb,QAAQ,EACX,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './base';
|
|
2
|
+
export { ProviderResponseStatus } from "./provider.response";
|
|
3
|
+
export { FinishReason } from "./finish.reason";
|
|
4
|
+
export { ProtocolCapability } from "./protocol";
|
|
5
|
+
export { ServerType } from "./server";
|
|
6
|
+
export { PricingSource, CostType } from "./pricing";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAmBvB,OAAO,EAKH,sBAAsB,EACzB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAK7C,OAAO,EAAgB,kBAAkB,EAAC,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAc,UAAU,EAAC,MAAM,UAAU,CAAC;AACjD,OAAO,EAMH,aAAa,EACb,QAAQ,EACX,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseEntity } from "./base";
|
|
2
|
+
export type ModelAliasType = 'official' | 'provider_api' | 'reseller' | 'runtime' | 'display' | 'shorthand' | 'legacy' | 'heuristic';
|
|
3
|
+
export interface ModelDictionaryAlias extends BaseEntity {
|
|
4
|
+
dictionary_id: string;
|
|
5
|
+
alias: string;
|
|
6
|
+
alias_normalized: string;
|
|
7
|
+
alias_type: ModelAliasType;
|
|
8
|
+
provider_family?: string;
|
|
9
|
+
runtime_family?: string;
|
|
10
|
+
source?: string;
|
|
11
|
+
source_key?: string;
|
|
12
|
+
weight: number;
|
|
13
|
+
active: boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=model-dictionary-alias.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-dictionary-alias.d.ts","sourceRoot":"","sources":["../../src/entities/model-dictionary-alias.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAErI,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACpD,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,cAAc,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-dictionary-alias.js","sourceRoot":"","sources":["../../src/entities/model-dictionary-alias.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseEntity } from "./base";
|
|
2
|
+
export type ModelDictionaryStatus = 'active' | 'preview' | 'deprecated' | 'shutdown';
|
|
3
|
+
export type ModelKind = 'chat' | 'completion' | 'reasoning' | 'embedding' | 'image' | 'audio' | 'moderation' | 'rerank' | 'transcription' | 'tts';
|
|
4
|
+
export interface ModelDictionary extends BaseEntity {
|
|
5
|
+
canonical_id: string;
|
|
6
|
+
canonical_id_normalized: string;
|
|
7
|
+
name: string;
|
|
8
|
+
normalized_name?: string;
|
|
9
|
+
family?: string;
|
|
10
|
+
provider_family: string;
|
|
11
|
+
version_label?: string;
|
|
12
|
+
variant?: string;
|
|
13
|
+
size_label?: string;
|
|
14
|
+
architecture_family?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
context_length?: number;
|
|
17
|
+
modality?: string;
|
|
18
|
+
input_modalities: string[];
|
|
19
|
+
output_modalities: string[];
|
|
20
|
+
supported_parameters: string[];
|
|
21
|
+
default_parameters: Record<string, any>;
|
|
22
|
+
capabilities: Record<string, unknown>;
|
|
23
|
+
tokenizer?: string;
|
|
24
|
+
kind: ModelKind;
|
|
25
|
+
status: ModelDictionaryStatus;
|
|
26
|
+
is_open_source?: boolean;
|
|
27
|
+
release_date?: string;
|
|
28
|
+
shutdown_date?: string;
|
|
29
|
+
base_input_cost?: number;
|
|
30
|
+
base_output_cost?: number;
|
|
31
|
+
base_cache_read_cost?: number;
|
|
32
|
+
base_cache_write_cost?: number;
|
|
33
|
+
aliases: string[];
|
|
34
|
+
sources: string[];
|
|
35
|
+
last_synced_at?: string;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=model-dictionary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-dictionary.d.ts","sourceRoot":"","sources":["../../src/entities/model-dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAErF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,eAAe,GAAG,KAAK,CAAC;AAElJ,MAAM,WAAW,eAAgB,SAAQ,UAAU;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-dictionary.js","sourceRoot":"","sources":["../../src/entities/model-dictionary.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BaseEntity } from "./base";
|
|
2
|
+
export type MatchStatus = 'exact' | 'heuristic' | 'manual' | 'unmatched' | 'ambiguous';
|
|
3
|
+
export type MatchMethod = 'canonical_id' | 'dictionary_name' | 'alias_exact' | 'alias_provider_scoped' | 'alias_runtime_scoped' | 'date_stripped' | 'revision_stripped' | 'quantization_stripped' | 'channel_stripped' | 'structured_query' | 'override' | 'none';
|
|
4
|
+
export interface MatchCandidate {
|
|
5
|
+
dictionaryId: string;
|
|
6
|
+
canonicalId: string;
|
|
7
|
+
score: number;
|
|
8
|
+
}
|
|
9
|
+
interface BaseMatchMetadata {
|
|
10
|
+
overrideId?: string;
|
|
11
|
+
aliasId?: string;
|
|
12
|
+
dateStripped?: boolean;
|
|
13
|
+
hints?: Record<string, string>;
|
|
14
|
+
explanation?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface AmbiguousMatchMetadata extends BaseMatchMetadata {
|
|
17
|
+
competingCandidates: MatchCandidate[];
|
|
18
|
+
}
|
|
19
|
+
export interface ResolvedMatchMetadata extends BaseMatchMetadata {
|
|
20
|
+
competingCandidates?: MatchCandidate[];
|
|
21
|
+
}
|
|
22
|
+
export type MatchMetadata = AmbiguousMatchMetadata | ResolvedMatchMetadata;
|
|
23
|
+
interface BaseModelMatchResult {
|
|
24
|
+
method: MatchMethod;
|
|
25
|
+
confidence: number;
|
|
26
|
+
normalizedInput: string;
|
|
27
|
+
candidateIds: string[];
|
|
28
|
+
explanation?: string;
|
|
29
|
+
}
|
|
30
|
+
interface AmbiguousModelMatchResult extends BaseModelMatchResult {
|
|
31
|
+
status: 'ambiguous';
|
|
32
|
+
dictionaryId?: string;
|
|
33
|
+
canonicalId?: string;
|
|
34
|
+
matchMetadata: AmbiguousMatchMetadata;
|
|
35
|
+
}
|
|
36
|
+
interface ResolvedModelMatchResult extends BaseModelMatchResult {
|
|
37
|
+
status: 'exact' | 'heuristic' | 'manual' | 'unmatched';
|
|
38
|
+
dictionaryId?: string;
|
|
39
|
+
canonicalId?: string;
|
|
40
|
+
matchMetadata?: ResolvedMatchMetadata;
|
|
41
|
+
}
|
|
42
|
+
export type ModelMatchResult = AmbiguousModelMatchResult | ResolvedModelMatchResult;
|
|
43
|
+
export interface ModelMatchOverride extends BaseEntity {
|
|
44
|
+
organization_id?: string;
|
|
45
|
+
source_type: string;
|
|
46
|
+
source_key?: string;
|
|
47
|
+
provider_id?: string;
|
|
48
|
+
raw_name: string;
|
|
49
|
+
normalized_name: string;
|
|
50
|
+
dictionary_id: string;
|
|
51
|
+
reason?: string;
|
|
52
|
+
active: boolean;
|
|
53
|
+
created_by?: string;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=model-match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-match.d.ts","sourceRoot":"","sources":["../../src/entities/model-match.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;AAEvF,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,iBAAiB,GAAG,aAAa,GACtE,uBAAuB,GAAG,sBAAsB,GAAG,eAAe,GAClE,mBAAmB,GAAG,uBAAuB,GAAG,kBAAkB,GAClE,kBAAkB,GAAG,UAAU,GAAG,MAAM,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,iBAAiB;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC7D,mBAAmB,EAAE,cAAc,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC5D,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1C;AAED,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAE3E,UAAU,oBAAoB;IAC1B,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,yBAA0B,SAAQ,oBAAoB;IAC5D,MAAM,EAAE,WAAW,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,sBAAsB,CAAC;CACzC;AAED,UAAU,wBAAyB,SAAQ,oBAAoB;IAC3D,MAAM,EAAE,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACzC;AAED,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG,wBAAwB,CAAC;AAEpF,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-match.js","sourceRoot":"","sources":["../../src/entities/model-match.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseEntity } from "./base";
|
|
2
|
+
import { MatchMetadata, MatchMethod, MatchStatus } from "./model-match";
|
|
3
|
+
export interface Model extends BaseEntity {
|
|
4
|
+
name: string;
|
|
5
|
+
access_model?: string;
|
|
6
|
+
provider_id: string;
|
|
7
|
+
organization_id: string;
|
|
8
|
+
version: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
context_length?: number;
|
|
11
|
+
modality?: string;
|
|
12
|
+
input_modalities: string[];
|
|
13
|
+
output_modalities: string[];
|
|
14
|
+
supported_parameters: string[];
|
|
15
|
+
parameters: Record<string, any>;
|
|
16
|
+
metadata: Record<string, any>;
|
|
17
|
+
pricing_per_tokens?: Record<string, any>;
|
|
18
|
+
benchmarks?: Record<string, any>;
|
|
19
|
+
customization?: Record<string, any>;
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
available: boolean;
|
|
22
|
+
deleted: boolean;
|
|
23
|
+
dictionary_id?: string;
|
|
24
|
+
raw_name?: string;
|
|
25
|
+
normalized_name?: string;
|
|
26
|
+
match_status?: MatchStatus;
|
|
27
|
+
match_confidence?: number;
|
|
28
|
+
match_method?: MatchMethod;
|
|
29
|
+
match_metadata?: MatchMetadata;
|
|
30
|
+
matched_at?: string;
|
|
31
|
+
source_type?: string;
|
|
32
|
+
source_key?: string;
|
|
33
|
+
family_detected?: string;
|
|
34
|
+
active: boolean;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AAEtE,MAAM,WAAW,KAAM,SAAQ,UAAU;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/entities/model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Notification {
|
|
2
|
+
id: string;
|
|
3
|
+
ts: number;
|
|
4
|
+
organization_id: string;
|
|
5
|
+
app_slug: string;
|
|
6
|
+
user_id: string | null;
|
|
7
|
+
thread_id: string | null;
|
|
8
|
+
request_id: string | null;
|
|
9
|
+
branch_id: string | null;
|
|
10
|
+
type: string;
|
|
11
|
+
severity: string;
|
|
12
|
+
message: string;
|
|
13
|
+
payload: any | null;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/entities/notification.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,GAAG,GAAG,IAAI,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/entities/notification.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseEntity } from "./base";
|
|
2
|
+
export interface Organization extends BaseEntity {
|
|
3
|
+
name: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
domain: string;
|
|
7
|
+
settings?: Record<string, any>;
|
|
8
|
+
subscription_tier: string;
|
|
9
|
+
max_users: number;
|
|
10
|
+
max_applications: number;
|
|
11
|
+
max_monthly_requests: number;
|
|
12
|
+
active: boolean;
|
|
13
|
+
timezone: string;
|
|
14
|
+
tenant_id?: string;
|
|
15
|
+
byok_enabled: boolean;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseEntity } from "./base";
|
|
2
|
+
import { PluginType } from "../plugin";
|
|
3
|
+
export interface Plugin extends BaseEntity {
|
|
4
|
+
family: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: PluginType;
|
|
7
|
+
version: string;
|
|
8
|
+
is_default: boolean;
|
|
9
|
+
default_pricing_plan_id?: string;
|
|
10
|
+
active: boolean;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/entities/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,MAAO,SAAQ,UAAU;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/entities/plugin.ts"],"names":[],"mappings":""}
|