@holokai/holo-types 1.5.0 → 1.5.3
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 +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/types.d.ts +2 -2
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/types.js +1 -1
- package/dist/api/types.js.map +1 -1
- package/dist/entities/application.d.ts +7 -5
- package/dist/entities/application.d.ts.map +1 -1
- package/dist/entities/application.js +5 -1
- package/dist/entities/application.js.map +1 -1
- package/dist/entities/datastore.d.ts +1 -1
- package/dist/entities/finish.reason.d.ts +1 -1
- package/dist/entities/finish.reason.d.ts.map +1 -1
- package/dist/entities/holo.token.d.ts +1 -1
- package/dist/entities/holo.token.d.ts.map +1 -1
- package/dist/entities/holo.token.js +1 -1
- package/dist/entities/holo.token.js.map +1 -1
- package/dist/entities/index.d.ts +21 -20
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +21 -6
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/model-dictionary-alias.d.ts +1 -1
- package/dist/entities/model-dictionary-alias.d.ts.map +1 -1
- package/dist/entities/model-dictionary-alias.js +1 -1
- package/dist/entities/model-dictionary-alias.js.map +1 -1
- package/dist/entities/model-dictionary.d.ts +1 -1
- package/dist/entities/model-dictionary.d.ts.map +1 -1
- package/dist/entities/model-dictionary.js +1 -1
- package/dist/entities/model-dictionary.js.map +1 -1
- package/dist/entities/model-match.d.ts +1 -1
- package/dist/entities/model-match.d.ts.map +1 -1
- package/dist/entities/model-match.js +1 -1
- package/dist/entities/model-match.js.map +1 -1
- package/dist/entities/model.d.ts +2 -2
- package/dist/entities/model.d.ts.map +1 -1
- package/dist/entities/model.js +2 -1
- package/dist/entities/model.js.map +1 -1
- package/dist/entities/model.surface.d.ts +14 -0
- package/dist/entities/model.surface.d.ts.map +1 -0
- package/dist/entities/model.surface.js +2 -0
- package/dist/entities/model.surface.js.map +1 -0
- package/dist/entities/organization.d.ts +1 -1
- package/dist/entities/organization.d.ts.map +1 -1
- package/dist/entities/organization.js +1 -1
- package/dist/entities/organization.js.map +1 -1
- package/dist/entities/plugin.d.ts +2 -2
- package/dist/entities/plugin.d.ts.map +1 -1
- package/dist/entities/plugin.js +2 -1
- package/dist/entities/plugin.js.map +1 -1
- package/dist/entities/pricing.d.ts +3 -3
- package/dist/entities/pricing.d.ts.map +1 -1
- package/dist/entities/pricing.js +1 -0
- package/dist/entities/pricing.js.map +1 -1
- package/dist/entities/prompt.d.ts +1 -1
- package/dist/entities/prompt.d.ts.map +1 -1
- package/dist/entities/prompt.js +1 -1
- package/dist/entities/prompt.js.map +1 -1
- package/dist/entities/protocol.d.ts +2 -1
- package/dist/entities/protocol.d.ts.map +1 -1
- package/dist/entities/protocol.js +2 -1
- package/dist/entities/protocol.js.map +1 -1
- package/dist/entities/provider.d.ts +36 -1
- package/dist/entities/provider.d.ts.map +1 -1
- package/dist/entities/provider.js +2 -1
- package/dist/entities/provider.js.map +1 -1
- package/dist/entities/provider.request.d.ts +10 -0
- package/dist/entities/provider.request.d.ts.map +1 -1
- package/dist/entities/provider.response.d.ts +8 -2
- package/dist/entities/provider.response.d.ts.map +1 -1
- package/dist/entities/provider.response.js +1 -1
- package/dist/entities/server.d.ts +3 -3
- package/dist/entities/server.d.ts.map +1 -1
- package/dist/entities/server.js +2 -0
- package/dist/entities/server.js.map +1 -1
- package/dist/holo/embed.d.ts.map +1 -1
- package/dist/holo/errors.d.ts +2 -1
- package/dist/holo/errors.d.ts.map +1 -1
- package/dist/holo/errors.js +9 -0
- package/dist/holo/errors.js.map +1 -1
- package/dist/holo/index.d.ts +12 -11
- package/dist/holo/index.d.ts.map +1 -1
- package/dist/holo/index.js +12 -11
- package/dist/holo/index.js.map +1 -1
- package/dist/holo/messages.d.ts +2 -2
- package/dist/holo/messages.d.ts.map +1 -1
- package/dist/holo/messages.js +2 -1
- package/dist/holo/messages.js.map +1 -1
- package/dist/holo/metrics.d.ts +1 -1
- package/dist/holo/metrics.d.ts.map +1 -1
- package/dist/holo/metrics.js +1 -1
- package/dist/holo/metrics.js.map +1 -1
- package/dist/holo/requests.d.ts +3 -3
- package/dist/holo/requests.d.ts.map +1 -1
- package/dist/holo/requests.js +3 -1
- package/dist/holo/requests.js.map +1 -1
- package/dist/holo/rerank.d.ts +21 -0
- package/dist/holo/rerank.d.ts.map +1 -0
- package/dist/holo/rerank.js +2 -0
- package/dist/holo/rerank.js.map +1 -0
- package/dist/holo/responses.d.ts +9 -1
- package/dist/holo/responses.d.ts.map +1 -1
- package/dist/holo/responses.js +1 -1
- package/dist/holo/responses.js.map +1 -1
- package/dist/holo/tools.d.ts.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/logger/logger.d.ts.map +1 -1
- package/dist/notification/index.d.ts +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/notification/types.d.ts +3 -3
- package/dist/notification/types.d.ts.map +1 -1
- package/dist/notification/types.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/plugin/index.js +1 -1
- package/dist/plugin/types.d.ts +13 -10
- package/dist/plugin/types.d.ts.map +1 -1
- package/dist/plugin/types.js +1 -0
- package/dist/plugin/types.js.map +1 -1
- package/dist/provider/index.d.ts +2 -2
- package/dist/provider/index.js +2 -2
- package/dist/provider/protocol.d.ts +3 -1
- package/dist/provider/protocol.d.ts.map +1 -1
- package/dist/provider/types.d.ts +13 -7
- package/dist/provider/types.d.ts.map +1 -1
- package/dist/provider/types.js +2 -1
- package/dist/provider/types.js.map +1 -1
- package/dist/routing/index.d.ts +1 -1
- package/dist/routing/index.js +1 -1
- package/dist/routing/routes.d.ts +2 -2
- package/dist/routing/routes.d.ts.map +1 -1
- package/dist/worker/envelopes.d.ts +4 -2
- package/dist/worker/envelopes.d.ts.map +1 -1
- package/dist/worker/envelopes.js +1 -1
- package/dist/worker/envelopes.js.map +1 -1
- package/dist/worker/index.d.ts +2 -2
- package/dist/worker/index.js +2 -2
- package/dist/worker/request.d.ts +55 -3
- package/dist/worker/request.d.ts.map +1 -1
- package/dist/worker/request.js +1 -1
- package/dist/worker/request.js.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
package/dist/api/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/api/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Application } from
|
|
2
|
-
export type TokenType = 'holo_user' | 'holo_application' | 'jwt' | 'anonymous';
|
|
1
|
+
import { type Application } from '../entities/index.js';
|
|
2
|
+
export type TokenType = 'holo_user' | 'holo_application' | 'jwt' | 'anonymous' | 'on_behalf';
|
|
3
3
|
export interface Auth {
|
|
4
4
|
organizationId: string;
|
|
5
5
|
userId?: string;
|
package/dist/api/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,aAAa,CAAC;AAK7C,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,kBAAkB,GAAG,KAAK,GAAG,WAAW,GAAG,WAAW,CAAC;AAE7F,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"}
|
package/dist/api/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from '../entities/index.js';
|
|
2
2
|
//# sourceMappingURL=types.js.map
|
package/dist/api/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,aAAa,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
2
|
-
import { Provider } from
|
|
3
|
-
import { Model } from
|
|
4
|
-
import { Prompt } from
|
|
1
|
+
import { type BaseEntity } from './base.js';
|
|
2
|
+
import { type Provider } from './provider.js';
|
|
3
|
+
import { type Model } from './model.js';
|
|
4
|
+
import { type Prompt } from './prompt.js';
|
|
5
|
+
import { type ModelSurface } from './model.surface.js';
|
|
5
6
|
export type AccessLevel = 'team' | 'organization' | 'anonymous';
|
|
6
7
|
export interface Application extends BaseEntity {
|
|
7
8
|
name: string;
|
|
8
|
-
provider_id
|
|
9
|
+
provider_id?: string;
|
|
9
10
|
system_prompt_id: string;
|
|
10
11
|
url_slug: string;
|
|
11
12
|
active: boolean;
|
|
@@ -15,5 +16,6 @@ export interface Application extends BaseEntity {
|
|
|
15
16
|
models?: Model[];
|
|
16
17
|
system_prompt?: Prompt;
|
|
17
18
|
guards?: Prompt[];
|
|
19
|
+
model_surfaces?: ModelSurface[];
|
|
18
20
|
}
|
|
19
21
|
//# sourceMappingURL=application.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/entities/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/entities/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,KAAK,QAAQ,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,cAAc,GAAG,WAAW,CAAC;AAEhE,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;CACnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../src/entities/application.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../src/entities/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EAAY,MAAM,SAAS,CAAC;AACnC,OAAO,EAAa,MAAM,UAAU,CAAC;AACrC,OAAO,EAAmB,MAAM,iBAAiB,CAAC"}
|
|
@@ -5,5 +5,5 @@ export declare const FinishReason: {
|
|
|
5
5
|
readonly CONTENT_FILTER: "content_filter";
|
|
6
6
|
readonly ERROR: "error";
|
|
7
7
|
};
|
|
8
|
-
export type FinishReason = typeof FinishReason[keyof typeof FinishReason];
|
|
8
|
+
export type FinishReason = (typeof FinishReason)[keyof typeof FinishReason];
|
|
9
9
|
//# sourceMappingURL=finish.reason.d.ts.map
|
|
@@ -1 +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"}
|
|
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,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"holo.token.d.ts","sourceRoot":"","sources":["../../src/entities/holo.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEvC,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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from './base.js';
|
|
2
2
|
//# sourceMappingURL=holo.token.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"holo.token.js","sourceRoot":"","sources":["../../src/entities/holo.token.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"holo.token.js","sourceRoot":"","sources":["../../src/entities/holo.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export * from './base';
|
|
2
|
-
export { Provider } from
|
|
3
|
-
export { Model } from
|
|
4
|
-
export { ModelDictionary, type ModelDictionaryStatus, type ModelKind } from
|
|
5
|
-
export { ModelDictionaryAlias, type ModelAliasType } from
|
|
6
|
-
export { type MatchStatus, type MatchMethod, type MatchCandidate, type MatchMetadata, type AmbiguousMatchMetadata, type ResolvedMatchMetadata, type ModelMatchResult, type ModelMatchOverride } from
|
|
7
|
-
export { Notification } from
|
|
8
|
-
export { AnalysisResult } from
|
|
9
|
-
export { type ProviderResponse, type ProviderResponseView, type ProviderResponseMetadata, type ProviderResponseMetrics, ProviderResponseStatus } from
|
|
10
|
-
export { type ProviderRequest, type ProviderAuditRequest, type ProviderRequestMetadata, type ProviderEnvelope } from
|
|
11
|
-
export { Application, type AccessLevel } from
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export { type
|
|
17
|
-
export { type
|
|
18
|
-
export { type
|
|
19
|
-
export { type
|
|
20
|
-
export { type
|
|
1
|
+
export * from './base.js';
|
|
2
|
+
export { type Provider } from './provider.js';
|
|
3
|
+
export { type Model } from './model.js';
|
|
4
|
+
export { type ModelDictionary, type ModelDictionaryStatus, type ModelKind } from './model-dictionary.js';
|
|
5
|
+
export { type ModelDictionaryAlias, type ModelAliasType } from './model-dictionary-alias.js';
|
|
6
|
+
export { type MatchStatus, type MatchMethod, type MatchCandidate, type MatchMetadata, type AmbiguousMatchMetadata, type ResolvedMatchMetadata, type ModelMatchResult, type ModelMatchOverride, } from './model-match.js';
|
|
7
|
+
export { type Notification } from './notification.js';
|
|
8
|
+
export { type AnalysisResult } from './analysis.result.js';
|
|
9
|
+
export { type ProviderResponse, type ProviderResponseView, type ProviderResponseMetadata, type ProviderResponseMetrics, ProviderResponseStatus, } from './provider.response.js';
|
|
10
|
+
export { type ProviderRequest, type ProviderAuditRequest, type ProviderRequestMetadata, type ProviderEnvelope, } from './provider.request.js';
|
|
11
|
+
export { type Application, type AccessLevel } from './application.js';
|
|
12
|
+
export { type ModelSurface } from './model.surface.js';
|
|
13
|
+
export { FinishReason } from './finish.reason.js';
|
|
14
|
+
export { type HoloToken } from './holo.token.js';
|
|
15
|
+
export { type Organization } from './organization.js';
|
|
16
|
+
export { type Prompt } from './prompt.js';
|
|
17
|
+
export { type Plugin } from './plugin.js';
|
|
18
|
+
export { type Datastore } from './datastore.js';
|
|
19
|
+
export { type Protocol, ProtocolCapability } from './protocol.js';
|
|
20
|
+
export { type Server, ServerType } from './server.js';
|
|
21
|
+
export { type PricingPlan, type PricingSheet, type PricingSheetModel, type ProviderResponseCost, type CostResult, PricingSource, CostType, } from './pricing.js';
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAC,KAAK,QAAQ,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,EAAC,KAAK,eAAe,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAC,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAC,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxF,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,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAC,KAAK,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,sBAAsB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,KAAK,WAAW,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC;AACjE,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,aAAa,CAAC;AAC3C,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,GACX,MAAM,WAAW,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
export * from './base';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
1
|
+
export * from './base.js';
|
|
2
|
+
export {} from './provider.js';
|
|
3
|
+
export {} from './model.js';
|
|
4
|
+
export {} from './model-dictionary.js';
|
|
5
|
+
export {} from './model-dictionary-alias.js';
|
|
6
|
+
export {} from './model-match.js';
|
|
7
|
+
export {} from './notification.js';
|
|
8
|
+
export {} from './analysis.result.js';
|
|
9
|
+
export { ProviderResponseStatus, } from './provider.response.js';
|
|
10
|
+
export {} from './provider.request.js';
|
|
11
|
+
export {} from './application.js';
|
|
12
|
+
export {} from './model.surface.js';
|
|
13
|
+
export { FinishReason } from './finish.reason.js';
|
|
14
|
+
export {} from './holo.token.js';
|
|
15
|
+
export {} from './organization.js';
|
|
16
|
+
export {} from './prompt.js';
|
|
17
|
+
export {} from './plugin.js';
|
|
18
|
+
export {} from './datastore.js';
|
|
19
|
+
export { ProtocolCapability } from './protocol.js';
|
|
20
|
+
export { ServerType } from './server.js';
|
|
21
|
+
export { PricingSource, CostType, } from './pricing.js';
|
|
7
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EAAY,MAAM,SAAS,CAAC;AACnC,OAAO,EAAkE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAgD,MAAM,0BAA0B,CAAC;AACxF,OAAO,EASN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAqB,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAKH,sBAAsB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAKN,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAoC,MAAM,eAAe,CAAC;AACjE,OAAO,EAAmB,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAgB,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAa,MAAM,UAAU,CAAC;AACrC,OAAO,EAAa,MAAM,UAAU,CAAC;AACrC,OAAO,EAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAgB,kBAAkB,EAAC,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAc,UAAU,EAAC,MAAM,UAAU,CAAC;AACjD,OAAO,EAMH,aAAa,EACb,QAAQ,GACX,MAAM,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
1
|
+
import { type BaseEntity } from './base.js';
|
|
2
2
|
export type ModelAliasType = 'official' | 'provider_api' | 'reseller' | 'runtime' | 'display' | 'shorthand' | 'legacy' | 'heuristic';
|
|
3
3
|
export interface ModelDictionaryAlias extends BaseEntity {
|
|
4
4
|
dictionary_id: string;
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"model-dictionary-alias.d.ts","sourceRoot":"","sources":["../../src/entities/model-dictionary-alias.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,cAAc,GACpB,UAAU,GACV,cAAc,GACd,UAAU,GACV,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,WAAW,CAAC;AAElB,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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from './base.js';
|
|
2
2
|
//# sourceMappingURL=model-dictionary-alias.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-dictionary-alias.js","sourceRoot":"","sources":["../../src/entities/model-dictionary-alias.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"model-dictionary-alias.js","sourceRoot":"","sources":["../../src/entities/model-dictionary-alias.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
1
|
+
import { type BaseEntity } from './base.js';
|
|
2
2
|
export type ModelDictionaryStatus = 'active' | 'preview' | 'deprecated' | 'shutdown';
|
|
3
3
|
export type ModelKind = 'chat' | 'completion' | 'reasoning' | 'embedding' | 'image' | 'audio' | 'moderation' | 'rerank' | 'transcription' | 'tts';
|
|
4
4
|
export interface ModelDictionary extends BaseEntity {
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"model-dictionary.d.ts","sourceRoot":"","sources":["../../src/entities/model-dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAErF,MAAM,MAAM,SAAS,GACf,MAAM,GACN,YAAY,GACZ,WAAW,GACX,WAAW,GACX,OAAO,GACP,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,eAAe,GACf,KAAK,CAAC;AAEZ,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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from './base.js';
|
|
2
2
|
//# sourceMappingURL=model-dictionary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-dictionary.js","sourceRoot":"","sources":["../../src/entities/model-dictionary.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"model-dictionary.js","sourceRoot":"","sources":["../../src/entities/model-dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
1
|
+
import { type BaseEntity } from './base.js';
|
|
2
2
|
export type MatchStatus = 'exact' | 'heuristic' | 'manual' | 'unmatched' | 'ambiguous';
|
|
3
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
4
|
export interface MatchCandidate {
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"model-match.d.ts","sourceRoot":"","sources":["../../src/entities/model-match.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;AAEvF,MAAM,MAAM,WAAW,GACjB,cAAc,GACd,iBAAiB,GACjB,aAAa,GACb,uBAAuB,GACvB,sBAAsB,GACtB,eAAe,GACf,mBAAmB,GACnB,uBAAuB,GACvB,kBAAkB,GAClB,kBAAkB,GAClB,UAAU,GACV,MAAM,CAAC;AAEb,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,EAA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,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from './base.js';
|
|
2
2
|
//# sourceMappingURL=model-match.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-match.js","sourceRoot":"","sources":["../../src/entities/model-match.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"model-match.js","sourceRoot":"","sources":["../../src/entities/model-match.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC"}
|
package/dist/entities/model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
2
|
-
import { MatchMetadata, MatchMethod, MatchStatus } from
|
|
1
|
+
import { type BaseEntity } from './base.js';
|
|
2
|
+
import { type MatchMetadata, type MatchMethod, type MatchStatus } from './model-match.js';
|
|
3
3
|
export interface Model extends BaseEntity {
|
|
4
4
|
name: string;
|
|
5
5
|
access_model?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC;AAErF,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;I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}
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAwD,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ModelSurface {
|
|
2
|
+
surface_name: string;
|
|
3
|
+
display_name?: string | null;
|
|
4
|
+
app_skill_id: string;
|
|
5
|
+
skill_id: string;
|
|
6
|
+
kind: 'INFERENCE' | 'WORKFLOW' | 'CAPABILITY';
|
|
7
|
+
active: boolean;
|
|
8
|
+
skill_config: Record<string, any>;
|
|
9
|
+
app_skill_overrides: Record<string, any>;
|
|
10
|
+
capability_type?: string | null;
|
|
11
|
+
parent_capability_type?: string | null;
|
|
12
|
+
root_capability_type?: string | null;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=model.surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.surface.d.ts","sourceRoot":"","sources":["../../src/entities/model.surface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;IAC9C,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.surface.js","sourceRoot":"","sources":["../../src/entities/model.surface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEvC,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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from './base.js';
|
|
2
2
|
//# sourceMappingURL=organization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/entities/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/entities/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AACvC,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,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
package/dist/entities/plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/entities/plugin.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/entities/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
1
|
+
import { type BaseEntity } from './base.js';
|
|
2
2
|
export declare const PricingSource: {
|
|
3
3
|
readonly PLUGIN: "plugin";
|
|
4
4
|
readonly ADMIN: "admin";
|
|
5
5
|
readonly INTERNAL: "internal";
|
|
6
6
|
};
|
|
7
|
-
export type PricingSource = typeof PricingSource[keyof typeof PricingSource];
|
|
7
|
+
export type PricingSource = (typeof PricingSource)[keyof typeof PricingSource];
|
|
8
8
|
export declare const CostType: {
|
|
9
9
|
readonly PROVIDER: "provider";
|
|
10
10
|
readonly INTERNAL: "internal";
|
|
11
11
|
};
|
|
12
|
-
export type CostType = typeof CostType[keyof typeof CostType];
|
|
12
|
+
export type CostType = (typeof CostType)[keyof typeof CostType];
|
|
13
13
|
export interface PricingPlan extends BaseEntity {
|
|
14
14
|
plugin_family: string;
|
|
15
15
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.d.ts","sourceRoot":"","sources":["../../src/entities/pricing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"pricing.d.ts","sourceRoot":"","sources":["../../src/entities/pricing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEvC,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAEhE,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE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AAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/entities/pricing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../../src/entities/pricing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../../src/entities/pricing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC;AAEvC,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/entities/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/entities/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,QAAQ,CAAC;AAEvC,MAAM,WAAW,MAAO,SAAQ,UAAU;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,WAAW,EAAE,OAAO,GAAG,aAAa,GAAG,WAAW,CAAC;IACnD,MAAM,EAAE,OAAO,CAAC;CACnB"}
|
package/dist/entities/prompt.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from './base.js';
|
|
2
2
|
//# sourceMappingURL=prompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/entities/prompt.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/entities/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,QAAQ,CAAC"}
|
|
@@ -2,10 +2,11 @@ export declare const ProtocolCapability: {
|
|
|
2
2
|
readonly CHAT: "chat";
|
|
3
3
|
readonly GENERATE: "generate";
|
|
4
4
|
readonly EMBED: "embed";
|
|
5
|
+
readonly RERANK: "rerank";
|
|
5
6
|
readonly MODELS: "models";
|
|
6
7
|
readonly METRICS: "metrics";
|
|
7
8
|
};
|
|
8
|
-
export type ProtocolCapability = typeof ProtocolCapability[keyof typeof ProtocolCapability];
|
|
9
|
+
export type ProtocolCapability = (typeof ProtocolCapability)[keyof typeof ProtocolCapability];
|
|
9
10
|
export interface Protocol {
|
|
10
11
|
id: string;
|
|
11
12
|
plugin_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/entities/protocol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/entities/protocol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE9F,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,kBAAkB,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../src/entities/protocol.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../src/entities/protocol.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC"}
|
|
@@ -1,16 +1,51 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
1
|
+
import { type BaseEntity } from './base.js';
|
|
2
|
+
import { type Plugin } from './plugin.js';
|
|
3
|
+
/**
|
|
4
|
+
* Ownership scope of a provider (Moku-owned `providers.scope`).
|
|
5
|
+
*
|
|
6
|
+
* `ORG` — a tenant's own provider, paired with a real `organization_id`.
|
|
7
|
+
* `SYS` — a platform-owned provider for platform-internal serving, not a tenant's.
|
|
8
|
+
*
|
|
9
|
+
* Moku pairs the two columns with a CHECK constraint, so scope is the authoritative
|
|
10
|
+
* ownership signal rather than something inferred from `organization_id`.
|
|
11
|
+
*
|
|
12
|
+
* NOTE: `SYS` here is a *provider ownership* value. It is unrelated to the identically
|
|
13
|
+
* spelled `credential_source = 'SYS'` on the effective-model projection, which is a
|
|
14
|
+
* billing/credential class. The two are different axes on different objects and must
|
|
15
|
+
* never be compared to or derived from one another.
|
|
16
|
+
*/
|
|
17
|
+
export type ProviderScope = 'ORG' | 'SYS';
|
|
2
18
|
export interface Provider extends BaseEntity {
|
|
19
|
+
/**
|
|
20
|
+
* Owning tenant org. For a `SYS`-scoped provider this is the platform's own
|
|
21
|
+
* sentinel org rather than a tenant's, so it must never be read as "the tenant
|
|
22
|
+
* that may use this provider" — check `scope` for ownership decisions.
|
|
23
|
+
*/
|
|
3
24
|
organization_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Ownership scope. Optional on the type because it is a Moku-owned column that
|
|
27
|
+
* older rows/fixtures may not carry; consumers making an authorization decision
|
|
28
|
+
* must treat an absent value as "not proven system-owned" and fail closed.
|
|
29
|
+
*/
|
|
30
|
+
scope?: ProviderScope;
|
|
4
31
|
name: string;
|
|
5
32
|
type: string;
|
|
6
33
|
description?: string;
|
|
7
34
|
config: Record<string, any>;
|
|
8
35
|
api_credential_id?: string;
|
|
9
36
|
plugin_id: string;
|
|
37
|
+
/**
|
|
38
|
+
* All plugin associations from the Moku-owned provider_plugins junction,
|
|
39
|
+
* including the primary. Optional and absent until the migration lands —
|
|
40
|
+
* hydration is to_regclass-guarded.
|
|
41
|
+
*/
|
|
42
|
+
plugins?: Plugin[];
|
|
10
43
|
pricing_plan_id?: string;
|
|
11
44
|
enabled: boolean;
|
|
12
45
|
available: boolean;
|
|
13
46
|
deleted: boolean;
|
|
14
47
|
active: boolean;
|
|
48
|
+
/** When this provider's models were last synced. Set by Holo's model sync. */
|
|
49
|
+
synced_at?: string;
|
|
15
50
|
}
|
|
16
51
|
//# sourceMappingURL=provider.d.ts.map
|