optio-contracts 0.11.6 → 0.11.8
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pools/api-to-frontend.d.ts +106 -4
- package/dist/pools/api-to-frontend.d.ts.map +1 -1
- package/dist/pools/api-to-frontend.js +20 -1
- package/dist/pools/api-to-frontend.js.map +1 -1
- package/dist/pools/optio-pools-to-api.d.ts +89 -28
- package/dist/pools/optio-pools-to-api.d.ts.map +1 -1
- package/dist/pools/optio-pools-to-api.js +12 -0
- package/dist/pools/optio-pools-to-api.js.map +1 -1
- package/dist/pools/schemas.d.ts +112 -4
- package/dist/pools/schemas.d.ts.map +1 -1
- package/dist/pools/schemas.js +23 -1
- package/dist/pools/schemas.js.map +1 -1
- package/dist/route-error-reasons.d.ts +1 -0
- package/dist/route-error-reasons.d.ts.map +1 -1
- package/dist/route-error-reasons.js +3 -1
- package/dist/route-error-reasons.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type { SessionEventsStreamMessage } from './schemas/session-events.js';
|
|
|
6
6
|
export { and, or, not, leaf, eq, ne, isIn, notIn, exists, gt, gte, lt, lte } from './process-filter-helpers.js';
|
|
7
7
|
export { processesContract, discoveryContract, ConversationFailureReason, ConversationRecordSchema, type ConversationRecord, PendingChatMessageSchema, PendingChatSchema, type PendingChatMessage, ChatAttachmentSchema, type ChatAttachment, } from './api-to-frontend.js';
|
|
8
8
|
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, StoreAvatarFailureReason, } from './engine-failure-reasons.js';
|
|
9
|
-
export { PoolFailureReason, PoolOperationSchema, PoolActionSchema, PoolCapabilitiesSchema, PoolKindInfoSchema, PoolKindInfoWithCollectionSchema, PoolSeedRowSchema, PoolAccountRowSchema, PoolGatewayModelRowSchema, PoolGatewaySummarySchema, PoolStatsSchema, ModelChoiceSchema, PoolRowSchema, PoolsStreamFrameSchema, PoolsQuerySchema, GatewayModelsBodySchema, GatewayConfigureBodySchema, type PoolOperation, type PoolAction, type PoolCapabilities, type PoolKindInfo, type PoolKindInfoWithCollection, type PoolSeedRow, type PoolAccountRow, type PoolGatewayModelRow, type PoolGatewaySummary, type PoolStats, type ModelChoice, type PoolRow, type PoolsStreamFrame, type PoolsQuery, type GatewayModelsBody, type GatewayConfigureBody, } from './pools/schemas.js';
|
|
9
|
+
export { PoolFailureReason, PoolOperationSchema, PoolActionSchema, PoolCapabilitiesSchema, PoolKindInfoSchema, PoolKindInfoWithCollectionSchema, PoolSeedRowSchema, PoolAccountRowSchema, PoolGatewayModelRowSchema, PoolGatewaySummarySchema, PoolStatsSchema, ModelChoiceSchema, PoolRowSchema, PoolsStreamFrameSchema, PoolsQuerySchema, GatewayModelsBodySchema, GatewayConfigureBodySchema, GatewayAppSettingsBodySchema, type PoolOperation, type PoolAction, type PoolCapabilities, type PoolKindInfo, type PoolKindInfoWithCollection, type PoolSeedRow, type PoolAccountRow, type PoolGatewayModelRow, type PoolGatewaySummary, type PoolStats, type ModelChoice, type PoolRow, type PoolsStreamFrame, type PoolsQuery, type GatewayModelsBody, type GatewayConfigureBody, type GatewayAppSettingsBody, } from './pools/schemas.js';
|
|
10
10
|
export { poolsContract } from './pools/api-to-frontend.js';
|
|
11
11
|
export { apiToFrontendRouteErrorReasons, type ApiToFrontendRouteId, } from './route-error-reasons.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAC3D,uBAAuB,EAAE,WAAW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6B,CAAC;AAGhH,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,gCAAgC,EAChC,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,4BAA4B,EAC5B,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EACL,8BAA8B,EAC9B,KAAK,oBAAoB,GAC1B,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export { processesContract, discoveryContract, ConversationFailureReason, Conver
|
|
|
10
10
|
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, StoreAvatarFailureReason, } from './engine-failure-reasons.js';
|
|
11
11
|
// Login pools: schemas, types and routes (the engine's clamator contract is
|
|
12
12
|
// `optio-contracts/optio-pools`, not re-exported here: it pulls in @clamator/protocol)
|
|
13
|
-
export { PoolFailureReason, PoolOperationSchema, PoolActionSchema, PoolCapabilitiesSchema, PoolKindInfoSchema, PoolKindInfoWithCollectionSchema, PoolSeedRowSchema, PoolAccountRowSchema, PoolGatewayModelRowSchema, PoolGatewaySummarySchema, PoolStatsSchema, ModelChoiceSchema, PoolRowSchema, PoolsStreamFrameSchema, PoolsQuerySchema, GatewayModelsBodySchema, GatewayConfigureBodySchema, } from './pools/schemas.js';
|
|
13
|
+
export { PoolFailureReason, PoolOperationSchema, PoolActionSchema, PoolCapabilitiesSchema, PoolKindInfoSchema, PoolKindInfoWithCollectionSchema, PoolSeedRowSchema, PoolAccountRowSchema, PoolGatewayModelRowSchema, PoolGatewaySummarySchema, PoolStatsSchema, ModelChoiceSchema, PoolRowSchema, PoolsStreamFrameSchema, PoolsQuerySchema, GatewayModelsBodySchema, GatewayConfigureBodySchema, GatewayAppSettingsBodySchema, } from './pools/schemas.js';
|
|
14
14
|
export { poolsContract } from './pools/api-to-frontend.js';
|
|
15
15
|
// Cross-package error-route manifest (consumed by host-app lints)
|
|
16
16
|
export { apiToFrontendRouteErrorReasons, } from './route-error-reasons.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAC3D,uBAAuB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EACjD,2BAA2B,EAAE,8BAA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|
@@ -9,6 +9,10 @@ export declare const PoolRetestConflictReason: z.ZodEnum<["launch-refused"]>;
|
|
|
9
9
|
export declare const PoolGatewayModelsReason: z.ZodEnum<["no-key", "key-rejected", "unreachable", "no-models", "unknown-region"]>;
|
|
10
10
|
/** 422 reasons of the gateway configuration: the model list's, then the ticks' checks. */
|
|
11
11
|
export declare const PoolGatewayConfigureReason: z.ZodEnum<["no-key", "key-rejected", "unreachable", "no-models", "unknown-region", "unknown-model", "default-not-ticked"]>;
|
|
12
|
+
/** 409 reasons of the gateway app settings' save: a test runs; a login kind. */
|
|
13
|
+
export declare const PoolAppSettingsConflictReason: z.ZodEnum<["setup-running", "unsupported"]>;
|
|
14
|
+
/** 422 reasons of the gateway app settings' save: a key, a value or the size refused. */
|
|
15
|
+
export declare const PoolAppSettingsReason: z.ZodEnum<["invalid-app-settings"]>;
|
|
12
16
|
export declare const poolsContract: {
|
|
13
17
|
setup: {
|
|
14
18
|
pathParams: z.ZodObject<{
|
|
@@ -509,30 +513,30 @@ export declare const poolsContract: {
|
|
|
509
513
|
}, "strip", z.ZodTypeAny, {
|
|
510
514
|
id: string;
|
|
511
515
|
label: string;
|
|
512
|
-
group: "managed" | "pinned" | "policy";
|
|
513
516
|
efforts: string[] | null;
|
|
517
|
+
group: "managed" | "pinned" | "policy";
|
|
514
518
|
euOnly: boolean;
|
|
515
519
|
}, {
|
|
516
520
|
id: string;
|
|
517
521
|
label: string;
|
|
518
|
-
group: "managed" | "pinned" | "policy";
|
|
519
522
|
efforts: string[] | null;
|
|
523
|
+
group: "managed" | "pinned" | "policy";
|
|
520
524
|
euOnly: boolean;
|
|
521
525
|
}>, "many">;
|
|
522
526
|
}, "strip", z.ZodTypeAny, {
|
|
523
527
|
models: {
|
|
524
528
|
id: string;
|
|
525
529
|
label: string;
|
|
526
|
-
group: "managed" | "pinned" | "policy";
|
|
527
530
|
efforts: string[] | null;
|
|
531
|
+
group: "managed" | "pinned" | "policy";
|
|
528
532
|
euOnly: boolean;
|
|
529
533
|
}[];
|
|
530
534
|
}, {
|
|
531
535
|
models: {
|
|
532
536
|
id: string;
|
|
533
537
|
label: string;
|
|
534
|
-
group: "managed" | "pinned" | "policy";
|
|
535
538
|
efforts: string[] | null;
|
|
539
|
+
group: "managed" | "pinned" | "policy";
|
|
536
540
|
euOnly: boolean;
|
|
537
541
|
}[];
|
|
538
542
|
}>;
|
|
@@ -643,5 +647,103 @@ export declare const poolsContract: {
|
|
|
643
647
|
}>;
|
|
644
648
|
};
|
|
645
649
|
};
|
|
650
|
+
gatewayAppSettings: {
|
|
651
|
+
pathParams: z.ZodObject<{
|
|
652
|
+
kind: z.ZodString;
|
|
653
|
+
}, "strip", z.ZodTypeAny, {
|
|
654
|
+
kind: string;
|
|
655
|
+
}, {
|
|
656
|
+
kind: string;
|
|
657
|
+
}>;
|
|
658
|
+
query: z.ZodObject<{
|
|
659
|
+
database: z.ZodOptional<z.ZodString>;
|
|
660
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
661
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
database?: string | undefined;
|
|
664
|
+
prefix?: string | undefined;
|
|
665
|
+
owner?: string | undefined;
|
|
666
|
+
}, {
|
|
667
|
+
database?: string | undefined;
|
|
668
|
+
prefix?: string | undefined;
|
|
669
|
+
owner?: string | undefined;
|
|
670
|
+
}>;
|
|
671
|
+
summary: "Save the app settings of the gateway configuration (no test runs)";
|
|
672
|
+
method: "POST";
|
|
673
|
+
body: z.ZodObject<{
|
|
674
|
+
appSettings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
675
|
+
secretAppSettings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
676
|
+
}, "strip", z.ZodTypeAny, {
|
|
677
|
+
appSettings: Record<string, unknown>;
|
|
678
|
+
secretAppSettings?: string[] | undefined;
|
|
679
|
+
}, {
|
|
680
|
+
appSettings: Record<string, unknown>;
|
|
681
|
+
secretAppSettings?: string[] | undefined;
|
|
682
|
+
}>;
|
|
683
|
+
path: "/pools/:kind/gateway/app-settings";
|
|
684
|
+
responses: {
|
|
685
|
+
409: z.ZodObject<{
|
|
686
|
+
reason: z.ZodEnum<["setup-running", "unsupported"]>;
|
|
687
|
+
message: z.ZodString;
|
|
688
|
+
}, "strip", z.ZodTypeAny, {
|
|
689
|
+
message: string;
|
|
690
|
+
reason: "unsupported" | "setup-running";
|
|
691
|
+
}, {
|
|
692
|
+
message: string;
|
|
693
|
+
reason: "unsupported" | "setup-running";
|
|
694
|
+
}>;
|
|
695
|
+
422: z.ZodObject<{
|
|
696
|
+
reason: z.ZodEnum<["invalid-app-settings"]>;
|
|
697
|
+
message: z.ZodString;
|
|
698
|
+
}, "strip", z.ZodTypeAny, {
|
|
699
|
+
message: string;
|
|
700
|
+
reason: "invalid-app-settings";
|
|
701
|
+
}, {
|
|
702
|
+
message: string;
|
|
703
|
+
reason: "invalid-app-settings";
|
|
704
|
+
}>;
|
|
705
|
+
403: z.ZodObject<{
|
|
706
|
+
message: z.ZodString;
|
|
707
|
+
}, "strip", z.ZodTypeAny, {
|
|
708
|
+
message: string;
|
|
709
|
+
}, {
|
|
710
|
+
message: string;
|
|
711
|
+
}>;
|
|
712
|
+
404: z.ZodObject<{
|
|
713
|
+
reason: z.ZodLiteral<"unknown-kind">;
|
|
714
|
+
message: z.ZodString;
|
|
715
|
+
}, "strip", z.ZodTypeAny, {
|
|
716
|
+
message: string;
|
|
717
|
+
reason: "unknown-kind";
|
|
718
|
+
}, {
|
|
719
|
+
message: string;
|
|
720
|
+
reason: "unknown-kind";
|
|
721
|
+
}>;
|
|
722
|
+
500: z.ZodObject<{
|
|
723
|
+
message: z.ZodString;
|
|
724
|
+
}, "strip", z.ZodTypeAny, {
|
|
725
|
+
message: string;
|
|
726
|
+
}, {
|
|
727
|
+
message: string;
|
|
728
|
+
}>;
|
|
729
|
+
503: z.ZodObject<{
|
|
730
|
+
reason: z.ZodLiteral<"engine-unavailable">;
|
|
731
|
+
message: z.ZodString;
|
|
732
|
+
}, "strip", z.ZodTypeAny, {
|
|
733
|
+
message: string;
|
|
734
|
+
reason: "engine-unavailable";
|
|
735
|
+
}, {
|
|
736
|
+
message: string;
|
|
737
|
+
reason: "engine-unavailable";
|
|
738
|
+
}>;
|
|
739
|
+
200: z.ZodObject<{
|
|
740
|
+
updated: z.ZodNumber;
|
|
741
|
+
}, "strip", z.ZodTypeAny, {
|
|
742
|
+
updated: number;
|
|
743
|
+
}, {
|
|
744
|
+
updated: number;
|
|
745
|
+
}>;
|
|
746
|
+
};
|
|
747
|
+
};
|
|
646
748
|
};
|
|
647
749
|
//# sourceMappingURL=api-to-frontend.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-to-frontend.d.ts","sourceRoot":"","sources":["../../src/pools/api-to-frontend.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"api-to-frontend.d.ts","sourceRoot":"","sources":["../../src/pools/api-to-frontend.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,+DAA6D,CAAC;AAClG,6FAA6F;AAC7F,eAAO,MAAM,qBAAqB,4BAA0B,CAAC;AAC7D,uFAAuF;AACvF,eAAO,MAAM,wBAAwB,+BAA6B,CAAC;AACnE,6CAA6C;AAC7C,eAAO,MAAM,uBAAuB,qFAAmF,CAAC;AACxH,0FAA0F;AAC1F,eAAO,MAAM,0BAA0B,4HAIrC,CAAC;AACH,gFAAgF;AAChF,eAAO,MAAM,6BAA6B,6CAA2C,CAAC;AACtF,yFAAyF;AACzF,eAAO,MAAM,qBAAqB,qCAAmC,CAAC;AAmBtE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GxB,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// (PoolsStreamFrameSchema).
|
|
5
5
|
import { initContract } from '@ts-rest/core';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { GatewayConfigureBodySchema, GatewayModelsBodySchema, ModelChoiceSchema, PoolsQuerySchema, } from './schemas.js';
|
|
7
|
+
import { GatewayAppSettingsBodySchema, GatewayConfigureBodySchema, GatewayModelsBodySchema, ModelChoiceSchema, PoolsQuerySchema, } from './schemas.js';
|
|
8
8
|
const c = initContract();
|
|
9
9
|
/** 409 reasons of a route that starts the setup process (setup, gateway configure). */
|
|
10
10
|
export const PoolSetupConflictReason = z.enum(['setup-running', 'unsupported', 'launch-refused']);
|
|
@@ -20,6 +20,10 @@ export const PoolGatewayConfigureReason = z.enum([
|
|
|
20
20
|
'unknown-model',
|
|
21
21
|
'default-not-ticked',
|
|
22
22
|
]);
|
|
23
|
+
/** 409 reasons of the gateway app settings' save: a test runs; a login kind. */
|
|
24
|
+
export const PoolAppSettingsConflictReason = z.enum(['setup-running', 'unsupported']);
|
|
25
|
+
/** 422 reasons of the gateway app settings' save: a key, a value or the size refused. */
|
|
26
|
+
export const PoolAppSettingsReason = z.enum(['invalid-app-settings']);
|
|
23
27
|
const KindParams = z.object({ kind: z.string().min(1) });
|
|
24
28
|
// 403: no owner (the host's owner hook answered null) or authorize refused.
|
|
25
29
|
// 500: the owner hook answered a malformed owner (never echoed).
|
|
@@ -130,5 +134,20 @@ export const poolsContract = c.router({
|
|
|
130
134
|
},
|
|
131
135
|
summary: 'Save the gateway configuration and launch its test task',
|
|
132
136
|
},
|
|
137
|
+
gatewayAppSettings: {
|
|
138
|
+
method: 'POST',
|
|
139
|
+
path: '/pools/:kind/gateway/app-settings',
|
|
140
|
+
pathParams: KindParams,
|
|
141
|
+
query: PoolsQuerySchema,
|
|
142
|
+
body: GatewayAppSettingsBodySchema,
|
|
143
|
+
responses: {
|
|
144
|
+
// updated: the configuration seeds rewritten; 0 when the pool is not set up.
|
|
145
|
+
200: z.object({ updated: Count }),
|
|
146
|
+
...common,
|
|
147
|
+
409: z.object({ reason: PoolAppSettingsConflictReason, message: z.string() }),
|
|
148
|
+
422: z.object({ reason: PoolAppSettingsReason, message: z.string() }),
|
|
149
|
+
},
|
|
150
|
+
summary: 'Save the app settings of the gateway configuration (no test runs)',
|
|
151
|
+
},
|
|
133
152
|
});
|
|
134
153
|
//# sourceMappingURL=api-to-frontend.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-to-frontend.js","sourceRoot":"","sources":["../../src/pools/api-to-frontend.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC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AA0B;QAChC,SAAS,EAAE;YACT,GAAG,EAAE,aAAa;YAClB,GAAG,MAAM;YACT,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YACvE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;SAC3E;QACD,OAAO,EAAE,yDAAyD;KACnE;IACD,kBAAkB,EAAE;QAClB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mCAAmC;QACzC,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,4BAA4B;QAClC,SAAS,EAAE;YACT,6EAA6E;YAC7E,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YACjC,GAAG,MAAM;YACT,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,6BAA6B,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YAC7E,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;SACtE;QACD,OAAO,EAAE,mEAAmE;KAC7E;CACF,CAAC,CAAC"}
|
|
@@ -141,17 +141,22 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
141
141
|
label: z.ZodString;
|
|
142
142
|
status: z.ZodEnum<["untested", "ok", "failed"]>;
|
|
143
143
|
reason: z.ZodNullable<z.ZodString>;
|
|
144
|
+
efforts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
144
145
|
}, "strip", z.ZodTypeAny, {
|
|
145
146
|
status: "failed" | "untested" | "ok";
|
|
146
147
|
reason: string | null;
|
|
147
148
|
id: string;
|
|
148
149
|
label: string;
|
|
150
|
+
efforts?: string[] | null | undefined;
|
|
149
151
|
}, {
|
|
150
152
|
status: "failed" | "untested" | "ok";
|
|
151
153
|
reason: string | null;
|
|
152
154
|
id: string;
|
|
153
155
|
label: string;
|
|
156
|
+
efforts?: string[] | null | undefined;
|
|
154
157
|
}>, "many">;
|
|
158
|
+
appSettings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
159
|
+
secretAppSettings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
155
160
|
}, "strip", z.ZodTypeAny, {
|
|
156
161
|
region: string;
|
|
157
162
|
defaultModel: string;
|
|
@@ -162,7 +167,10 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
162
167
|
reason: string | null;
|
|
163
168
|
id: string;
|
|
164
169
|
label: string;
|
|
170
|
+
efforts?: string[] | null | undefined;
|
|
165
171
|
}[];
|
|
172
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
173
|
+
secretAppSettings?: string[] | null | undefined;
|
|
166
174
|
}, {
|
|
167
175
|
region: string;
|
|
168
176
|
defaultModel: string;
|
|
@@ -173,7 +181,10 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
173
181
|
reason: string | null;
|
|
174
182
|
id: string;
|
|
175
183
|
label: string;
|
|
184
|
+
efforts?: string[] | null | undefined;
|
|
176
185
|
}[];
|
|
186
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
187
|
+
secretAppSettings?: string[] | null | undefined;
|
|
177
188
|
}>>>;
|
|
178
189
|
}, "strip", z.ZodTypeAny, {
|
|
179
190
|
dead: number;
|
|
@@ -204,7 +215,10 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
204
215
|
reason: string | null;
|
|
205
216
|
id: string;
|
|
206
217
|
label: string;
|
|
218
|
+
efforts?: string[] | null | undefined;
|
|
207
219
|
}[];
|
|
220
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
221
|
+
secretAppSettings?: string[] | null | undefined;
|
|
208
222
|
} | null | undefined;
|
|
209
223
|
}, {
|
|
210
224
|
dead: number;
|
|
@@ -235,7 +249,10 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
235
249
|
reason: string | null;
|
|
236
250
|
id: string;
|
|
237
251
|
label: string;
|
|
252
|
+
efforts?: string[] | null | undefined;
|
|
238
253
|
}[];
|
|
254
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
255
|
+
secretAppSettings?: string[] | null | undefined;
|
|
239
256
|
} | null | undefined;
|
|
240
257
|
}>;
|
|
241
258
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -269,7 +286,10 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
269
286
|
reason: string | null;
|
|
270
287
|
id: string;
|
|
271
288
|
label: string;
|
|
289
|
+
efforts?: string[] | null | undefined;
|
|
272
290
|
}[];
|
|
291
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
292
|
+
secretAppSettings?: string[] | null | undefined;
|
|
273
293
|
} | null | undefined;
|
|
274
294
|
};
|
|
275
295
|
}, {
|
|
@@ -303,19 +323,22 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
303
323
|
reason: string | null;
|
|
304
324
|
id: string;
|
|
305
325
|
label: string;
|
|
326
|
+
efforts?: string[] | null | undefined;
|
|
306
327
|
}[];
|
|
328
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
329
|
+
secretAppSettings?: string[] | null | undefined;
|
|
307
330
|
} | null | undefined;
|
|
308
331
|
};
|
|
309
332
|
}>, z.ZodObject<{
|
|
310
333
|
ok: z.ZodLiteral<false>;
|
|
311
|
-
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
334
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
312
335
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
336
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
337
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
315
338
|
ok: false;
|
|
316
339
|
message?: string | null | undefined;
|
|
317
340
|
}, {
|
|
318
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
341
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
319
342
|
ok: false;
|
|
320
343
|
message?: string | null | undefined;
|
|
321
344
|
}>]>>;
|
|
@@ -339,14 +362,14 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
339
362
|
ok: true;
|
|
340
363
|
}>, z.ZodObject<{
|
|
341
364
|
ok: z.ZodLiteral<false>;
|
|
342
|
-
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
365
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
343
366
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
367
|
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
368
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
346
369
|
ok: false;
|
|
347
370
|
message?: string | null | undefined;
|
|
348
371
|
}, {
|
|
349
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
372
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
350
373
|
ok: false;
|
|
351
374
|
message?: string | null | undefined;
|
|
352
375
|
}>]>>;
|
|
@@ -377,14 +400,14 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
377
400
|
}, "strip", z.ZodTypeAny, {
|
|
378
401
|
id: string;
|
|
379
402
|
label: string;
|
|
380
|
-
group: "managed" | "pinned" | "policy";
|
|
381
403
|
efforts: string[] | null;
|
|
404
|
+
group: "managed" | "pinned" | "policy";
|
|
382
405
|
euOnly: boolean;
|
|
383
406
|
}, {
|
|
384
407
|
id: string;
|
|
385
408
|
label: string;
|
|
386
|
-
group: "managed" | "pinned" | "policy";
|
|
387
409
|
efforts: string[] | null;
|
|
410
|
+
group: "managed" | "pinned" | "policy";
|
|
388
411
|
euOnly: boolean;
|
|
389
412
|
}>, "many">;
|
|
390
413
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -392,8 +415,8 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
392
415
|
models: {
|
|
393
416
|
id: string;
|
|
394
417
|
label: string;
|
|
395
|
-
group: "managed" | "pinned" | "policy";
|
|
396
418
|
efforts: string[] | null;
|
|
419
|
+
group: "managed" | "pinned" | "policy";
|
|
397
420
|
euOnly: boolean;
|
|
398
421
|
}[];
|
|
399
422
|
}, {
|
|
@@ -401,20 +424,20 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
401
424
|
models: {
|
|
402
425
|
id: string;
|
|
403
426
|
label: string;
|
|
404
|
-
group: "managed" | "pinned" | "policy";
|
|
405
427
|
efforts: string[] | null;
|
|
428
|
+
group: "managed" | "pinned" | "policy";
|
|
406
429
|
euOnly: boolean;
|
|
407
430
|
}[];
|
|
408
431
|
}>, z.ZodObject<{
|
|
409
432
|
ok: z.ZodLiteral<false>;
|
|
410
|
-
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
433
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
411
434
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
435
|
}, "strip", z.ZodTypeAny, {
|
|
413
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
436
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
414
437
|
ok: false;
|
|
415
438
|
message?: string | null | undefined;
|
|
416
439
|
}, {
|
|
417
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
440
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
418
441
|
ok: false;
|
|
419
442
|
message?: string | null | undefined;
|
|
420
443
|
}>]>>;
|
|
@@ -452,14 +475,52 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
452
475
|
ok: true;
|
|
453
476
|
}>, z.ZodObject<{
|
|
454
477
|
ok: z.ZodLiteral<false>;
|
|
455
|
-
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
478
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
479
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
481
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
482
|
+
ok: false;
|
|
483
|
+
message?: string | null | undefined;
|
|
484
|
+
}, {
|
|
485
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
486
|
+
ok: false;
|
|
487
|
+
message?: string | null | undefined;
|
|
488
|
+
}>]>>;
|
|
489
|
+
gatewayAppSettings: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
490
|
+
owner: z.ZodString;
|
|
491
|
+
kind: z.ZodString;
|
|
492
|
+
} & {
|
|
493
|
+
appSettings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
494
|
+
secretAppSettings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
kind: string;
|
|
497
|
+
appSettings: Record<string, unknown>;
|
|
498
|
+
owner: string;
|
|
499
|
+
secretAppSettings?: string[] | undefined;
|
|
500
|
+
}, {
|
|
501
|
+
kind: string;
|
|
502
|
+
appSettings: Record<string, unknown>;
|
|
503
|
+
owner: string;
|
|
504
|
+
secretAppSettings?: string[] | undefined;
|
|
505
|
+
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
506
|
+
ok: z.ZodLiteral<true>;
|
|
507
|
+
updated: z.ZodNumber;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
ok: true;
|
|
510
|
+
updated: number;
|
|
511
|
+
}, {
|
|
512
|
+
ok: true;
|
|
513
|
+
updated: number;
|
|
514
|
+
}>, z.ZodObject<{
|
|
515
|
+
ok: z.ZodLiteral<false>;
|
|
516
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
456
517
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
457
518
|
}, "strip", z.ZodTypeAny, {
|
|
458
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
519
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
459
520
|
ok: false;
|
|
460
521
|
message?: string | null | undefined;
|
|
461
522
|
}, {
|
|
462
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
523
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
463
524
|
ok: false;
|
|
464
525
|
message?: string | null | undefined;
|
|
465
526
|
}>]>>;
|
|
@@ -492,14 +553,14 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
492
553
|
unverified: number;
|
|
493
554
|
}>, z.ZodObject<{
|
|
494
555
|
ok: z.ZodLiteral<false>;
|
|
495
|
-
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
556
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
496
557
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
558
|
}, "strip", z.ZodTypeAny, {
|
|
498
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
559
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
499
560
|
ok: false;
|
|
500
561
|
message?: string | null | undefined;
|
|
501
562
|
}, {
|
|
502
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
563
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
503
564
|
ok: false;
|
|
504
565
|
message?: string | null | undefined;
|
|
505
566
|
}>]>>;
|
|
@@ -523,14 +584,14 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
523
584
|
buried: number;
|
|
524
585
|
}>, z.ZodObject<{
|
|
525
586
|
ok: z.ZodLiteral<false>;
|
|
526
|
-
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
587
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
527
588
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
589
|
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
590
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
530
591
|
ok: false;
|
|
531
592
|
message?: string | null | undefined;
|
|
532
593
|
}, {
|
|
533
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
594
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
534
595
|
ok: false;
|
|
535
596
|
message?: string | null | undefined;
|
|
536
597
|
}>]>>;
|
|
@@ -557,14 +618,14 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
557
618
|
skipped: number;
|
|
558
619
|
}>, z.ZodObject<{
|
|
559
620
|
ok: z.ZodLiteral<false>;
|
|
560
|
-
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
621
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
561
622
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
623
|
}, "strip", z.ZodTypeAny, {
|
|
563
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
624
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
564
625
|
ok: false;
|
|
565
626
|
message?: string | null | undefined;
|
|
566
627
|
}, {
|
|
567
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
628
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
568
629
|
ok: false;
|
|
569
630
|
message?: string | null | undefined;
|
|
570
631
|
}>]>>;
|
|
@@ -591,14 +652,14 @@ export declare const optioPoolsContract: import("@clamator/protocol").Contract<"
|
|
|
591
652
|
skipped: number;
|
|
592
653
|
}>, z.ZodObject<{
|
|
593
654
|
ok: z.ZodLiteral<false>;
|
|
594
|
-
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
655
|
+
reason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
595
656
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
596
657
|
}, "strip", z.ZodTypeAny, {
|
|
597
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
658
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
598
659
|
ok: false;
|
|
599
660
|
message?: string | null | undefined;
|
|
600
661
|
}, {
|
|
601
|
-
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region";
|
|
662
|
+
reason: "unknown-kind" | "unsupported" | "invalid-owner" | "setup-running" | "launch-refused" | "no-key" | "key-rejected" | "unreachable" | "no-models" | "unknown-model" | "default-not-ticked" | "unknown-region" | "invalid-app-settings";
|
|
602
663
|
ok: false;
|
|
603
664
|
message?: string | null | undefined;
|
|
604
665
|
}>]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optio-pools-to-api.d.ts","sourceRoot":"","sources":["../../src/pools/optio-pools-to-api.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"optio-pools-to-api.d.ts","sourceRoot":"","sources":["../../src/pools/optio-pools-to-api.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+E7B,CAAC"}
|
|
@@ -56,6 +56,18 @@ export const optioPoolsContract = defineContract('optio-pools', {
|
|
|
56
56
|
Refused,
|
|
57
57
|
]),
|
|
58
58
|
}),
|
|
59
|
+
// The gateway configuration's app settings, saved without a test. updated: the seeds
|
|
60
|
+
// rewritten (0 without a configuration). A secret key without a value keeps the stored one.
|
|
61
|
+
gatewayAppSettings: defineMethod({
|
|
62
|
+
params: PoolParams.extend({
|
|
63
|
+
appSettings: z.record(z.unknown()),
|
|
64
|
+
secretAppSettings: z.array(z.string()).optional(),
|
|
65
|
+
}),
|
|
66
|
+
result: z.discriminatedUnion('ok', [
|
|
67
|
+
z.object({ ok: z.literal(true), updated: Count }),
|
|
68
|
+
Refused,
|
|
69
|
+
]),
|
|
70
|
+
}),
|
|
59
71
|
retest: defineMethod({
|
|
60
72
|
params: PoolParams,
|
|
61
73
|
result: z.discriminatedUnion('ok', [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optio-pools-to-api.js","sourceRoot":"","sources":["../../src/pools/optio-pools-to-api.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,4EAA4E;AAC5E,6EAA6E;AAC7E,gFAAgF;AAChF,6EAA6E;AAE7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,gCAAgC,EAChC,eAAe,GAChB,MAAM,cAAc,CAAC;AAEtB,oFAAoF;AACpF,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GA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,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE;YACjC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;YAChD,OAAO;SACR,CAAC;KACH,CAAC;IACF,6DAA6D;IAC7D,SAAS,EAAE,YAAY,CAAC;QACtB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE;YACjC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YACjE,OAAO;SACR,CAAC;KACH,CAAC;IACF,OAAO,EAAE,YAAY,CAAC;QACpB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE;YACjC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YACjE,OAAO;SACR,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
package/dist/pools/schemas.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Why a pool operation was refused (optio-agents-all's POOL_FAILURE_REASONS, same order). */
|
|
3
|
-
export declare const PoolFailureReason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region"]>;
|
|
3
|
+
export declare const PoolFailureReason: z.ZodEnum<["unknown-kind", "unsupported", "invalid-owner", "setup-running", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-model", "default-not-ticked", "unknown-region", "invalid-app-settings"]>;
|
|
4
4
|
export type PoolFailureReason = z.infer<typeof PoolFailureReason>;
|
|
5
5
|
/** The pool operations, as the stream's `allowed` lists them. */
|
|
6
6
|
export declare const PoolOperationSchema: z.ZodEnum<["setup", "configure", "retest", "bury-dead", "remove-all", "sort-out"]>;
|
|
@@ -163,24 +163,36 @@ export declare const PoolAccountRowSchema: z.ZodObject<{
|
|
|
163
163
|
resetsAt: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
export type PoolAccountRow = z.infer<typeof PoolAccountRowSchema>;
|
|
166
|
+
/**
|
|
167
|
+
* A model of the gateway configuration. `efforts`: its effort levels (null: none; absent
|
|
168
|
+
* from an older engine or a configuration not rewritten since: unknown, shown as none).
|
|
169
|
+
*/
|
|
166
170
|
export declare const PoolGatewayModelRowSchema: z.ZodObject<{
|
|
167
171
|
id: z.ZodString;
|
|
168
172
|
label: z.ZodString;
|
|
169
173
|
status: z.ZodEnum<["untested", "ok", "failed"]>;
|
|
170
174
|
reason: z.ZodNullable<z.ZodString>;
|
|
175
|
+
efforts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
171
176
|
}, "strip", z.ZodTypeAny, {
|
|
172
177
|
status: "failed" | "untested" | "ok";
|
|
173
178
|
reason: string | null;
|
|
174
179
|
id: string;
|
|
175
180
|
label: string;
|
|
181
|
+
efforts?: string[] | null | undefined;
|
|
176
182
|
}, {
|
|
177
183
|
status: "failed" | "untested" | "ok";
|
|
178
184
|
reason: string | null;
|
|
179
185
|
id: string;
|
|
180
186
|
label: string;
|
|
187
|
+
efforts?: string[] | null | undefined;
|
|
181
188
|
}>;
|
|
182
189
|
export type PoolGatewayModelRow = z.infer<typeof PoolGatewayModelRowSchema>;
|
|
183
|
-
/**
|
|
190
|
+
/**
|
|
191
|
+
* The form kind's configuration. `keyHint`: the key's last characters, null for a short key.
|
|
192
|
+
* `appSettings`: the app's settings kept with it, without the secret ones' values;
|
|
193
|
+
* `secretAppSettings`: the keys whose values only the encrypted seed holds (names only).
|
|
194
|
+
* Null or absent (an older engine) read as `{}` / `[]`.
|
|
195
|
+
*/
|
|
184
196
|
export declare const PoolGatewaySummarySchema: z.ZodObject<{
|
|
185
197
|
region: z.ZodString;
|
|
186
198
|
defaultModel: z.ZodString;
|
|
@@ -191,17 +203,22 @@ export declare const PoolGatewaySummarySchema: z.ZodObject<{
|
|
|
191
203
|
label: z.ZodString;
|
|
192
204
|
status: z.ZodEnum<["untested", "ok", "failed"]>;
|
|
193
205
|
reason: z.ZodNullable<z.ZodString>;
|
|
206
|
+
efforts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
194
207
|
}, "strip", z.ZodTypeAny, {
|
|
195
208
|
status: "failed" | "untested" | "ok";
|
|
196
209
|
reason: string | null;
|
|
197
210
|
id: string;
|
|
198
211
|
label: string;
|
|
212
|
+
efforts?: string[] | null | undefined;
|
|
199
213
|
}, {
|
|
200
214
|
status: "failed" | "untested" | "ok";
|
|
201
215
|
reason: string | null;
|
|
202
216
|
id: string;
|
|
203
217
|
label: string;
|
|
218
|
+
efforts?: string[] | null | undefined;
|
|
204
219
|
}>, "many">;
|
|
220
|
+
appSettings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
221
|
+
secretAppSettings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
205
222
|
}, "strip", z.ZodTypeAny, {
|
|
206
223
|
region: string;
|
|
207
224
|
defaultModel: string;
|
|
@@ -212,7 +229,10 @@ export declare const PoolGatewaySummarySchema: z.ZodObject<{
|
|
|
212
229
|
reason: string | null;
|
|
213
230
|
id: string;
|
|
214
231
|
label: string;
|
|
232
|
+
efforts?: string[] | null | undefined;
|
|
215
233
|
}[];
|
|
234
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
235
|
+
secretAppSettings?: string[] | null | undefined;
|
|
216
236
|
}, {
|
|
217
237
|
region: string;
|
|
218
238
|
defaultModel: string;
|
|
@@ -223,7 +243,10 @@ export declare const PoolGatewaySummarySchema: z.ZodObject<{
|
|
|
223
243
|
reason: string | null;
|
|
224
244
|
id: string;
|
|
225
245
|
label: string;
|
|
246
|
+
efforts?: string[] | null | undefined;
|
|
226
247
|
}[];
|
|
248
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
249
|
+
secretAppSettings?: string[] | null | undefined;
|
|
227
250
|
}>;
|
|
228
251
|
export type PoolGatewaySummary = z.infer<typeof PoolGatewaySummarySchema>;
|
|
229
252
|
/**
|
|
@@ -279,17 +302,22 @@ export declare const PoolStatsSchema: z.ZodObject<{
|
|
|
279
302
|
label: z.ZodString;
|
|
280
303
|
status: z.ZodEnum<["untested", "ok", "failed"]>;
|
|
281
304
|
reason: z.ZodNullable<z.ZodString>;
|
|
305
|
+
efforts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
282
306
|
}, "strip", z.ZodTypeAny, {
|
|
283
307
|
status: "failed" | "untested" | "ok";
|
|
284
308
|
reason: string | null;
|
|
285
309
|
id: string;
|
|
286
310
|
label: string;
|
|
311
|
+
efforts?: string[] | null | undefined;
|
|
287
312
|
}, {
|
|
288
313
|
status: "failed" | "untested" | "ok";
|
|
289
314
|
reason: string | null;
|
|
290
315
|
id: string;
|
|
291
316
|
label: string;
|
|
317
|
+
efforts?: string[] | null | undefined;
|
|
292
318
|
}>, "many">;
|
|
319
|
+
appSettings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
320
|
+
secretAppSettings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
293
321
|
}, "strip", z.ZodTypeAny, {
|
|
294
322
|
region: string;
|
|
295
323
|
defaultModel: string;
|
|
@@ -300,7 +328,10 @@ export declare const PoolStatsSchema: z.ZodObject<{
|
|
|
300
328
|
reason: string | null;
|
|
301
329
|
id: string;
|
|
302
330
|
label: string;
|
|
331
|
+
efforts?: string[] | null | undefined;
|
|
303
332
|
}[];
|
|
333
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
334
|
+
secretAppSettings?: string[] | null | undefined;
|
|
304
335
|
}, {
|
|
305
336
|
region: string;
|
|
306
337
|
defaultModel: string;
|
|
@@ -311,7 +342,10 @@ export declare const PoolStatsSchema: z.ZodObject<{
|
|
|
311
342
|
reason: string | null;
|
|
312
343
|
id: string;
|
|
313
344
|
label: string;
|
|
345
|
+
efforts?: string[] | null | undefined;
|
|
314
346
|
}[];
|
|
347
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
348
|
+
secretAppSettings?: string[] | null | undefined;
|
|
315
349
|
}>>>;
|
|
316
350
|
}, "strip", z.ZodTypeAny, {
|
|
317
351
|
dead: number;
|
|
@@ -342,7 +376,10 @@ export declare const PoolStatsSchema: z.ZodObject<{
|
|
|
342
376
|
reason: string | null;
|
|
343
377
|
id: string;
|
|
344
378
|
label: string;
|
|
379
|
+
efforts?: string[] | null | undefined;
|
|
345
380
|
}[];
|
|
381
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
382
|
+
secretAppSettings?: string[] | null | undefined;
|
|
346
383
|
} | null | undefined;
|
|
347
384
|
}, {
|
|
348
385
|
dead: number;
|
|
@@ -373,7 +410,10 @@ export declare const PoolStatsSchema: z.ZodObject<{
|
|
|
373
410
|
reason: string | null;
|
|
374
411
|
id: string;
|
|
375
412
|
label: string;
|
|
413
|
+
efforts?: string[] | null | undefined;
|
|
376
414
|
}[];
|
|
415
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
416
|
+
secretAppSettings?: string[] | null | undefined;
|
|
377
417
|
} | null | undefined;
|
|
378
418
|
}>;
|
|
379
419
|
export type PoolStats = z.infer<typeof PoolStatsSchema>;
|
|
@@ -387,14 +427,14 @@ export declare const ModelChoiceSchema: z.ZodObject<{
|
|
|
387
427
|
}, "strip", z.ZodTypeAny, {
|
|
388
428
|
id: string;
|
|
389
429
|
label: string;
|
|
390
|
-
group: "managed" | "pinned" | "policy";
|
|
391
430
|
efforts: string[] | null;
|
|
431
|
+
group: "managed" | "pinned" | "policy";
|
|
392
432
|
euOnly: boolean;
|
|
393
433
|
}, {
|
|
394
434
|
id: string;
|
|
395
435
|
label: string;
|
|
396
|
-
group: "managed" | "pinned" | "policy";
|
|
397
436
|
efforts: string[] | null;
|
|
437
|
+
group: "managed" | "pinned" | "policy";
|
|
398
438
|
euOnly: boolean;
|
|
399
439
|
}>;
|
|
400
440
|
export type ModelChoice = z.infer<typeof ModelChoiceSchema>;
|
|
@@ -470,17 +510,22 @@ export declare const PoolRowSchema: z.ZodObject<{
|
|
|
470
510
|
label: z.ZodString;
|
|
471
511
|
status: z.ZodEnum<["untested", "ok", "failed"]>;
|
|
472
512
|
reason: z.ZodNullable<z.ZodString>;
|
|
513
|
+
efforts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
473
514
|
}, "strip", z.ZodTypeAny, {
|
|
474
515
|
status: "failed" | "untested" | "ok";
|
|
475
516
|
reason: string | null;
|
|
476
517
|
id: string;
|
|
477
518
|
label: string;
|
|
519
|
+
efforts?: string[] | null | undefined;
|
|
478
520
|
}, {
|
|
479
521
|
status: "failed" | "untested" | "ok";
|
|
480
522
|
reason: string | null;
|
|
481
523
|
id: string;
|
|
482
524
|
label: string;
|
|
525
|
+
efforts?: string[] | null | undefined;
|
|
483
526
|
}>, "many">;
|
|
527
|
+
appSettings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
528
|
+
secretAppSettings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
484
529
|
}, "strip", z.ZodTypeAny, {
|
|
485
530
|
region: string;
|
|
486
531
|
defaultModel: string;
|
|
@@ -491,7 +536,10 @@ export declare const PoolRowSchema: z.ZodObject<{
|
|
|
491
536
|
reason: string | null;
|
|
492
537
|
id: string;
|
|
493
538
|
label: string;
|
|
539
|
+
efforts?: string[] | null | undefined;
|
|
494
540
|
}[];
|
|
541
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
542
|
+
secretAppSettings?: string[] | null | undefined;
|
|
495
543
|
}, {
|
|
496
544
|
region: string;
|
|
497
545
|
defaultModel: string;
|
|
@@ -502,7 +550,10 @@ export declare const PoolRowSchema: z.ZodObject<{
|
|
|
502
550
|
reason: string | null;
|
|
503
551
|
id: string;
|
|
504
552
|
label: string;
|
|
553
|
+
efforts?: string[] | null | undefined;
|
|
505
554
|
}[];
|
|
555
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
556
|
+
secretAppSettings?: string[] | null | undefined;
|
|
506
557
|
}>>>;
|
|
507
558
|
}, "strip", z.ZodTypeAny, {
|
|
508
559
|
dead: number;
|
|
@@ -533,7 +584,10 @@ export declare const PoolRowSchema: z.ZodObject<{
|
|
|
533
584
|
reason: string | null;
|
|
534
585
|
id: string;
|
|
535
586
|
label: string;
|
|
587
|
+
efforts?: string[] | null | undefined;
|
|
536
588
|
}[];
|
|
589
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
590
|
+
secretAppSettings?: string[] | null | undefined;
|
|
537
591
|
} | null | undefined;
|
|
538
592
|
}, {
|
|
539
593
|
dead: number;
|
|
@@ -564,7 +618,10 @@ export declare const PoolRowSchema: z.ZodObject<{
|
|
|
564
618
|
reason: string | null;
|
|
565
619
|
id: string;
|
|
566
620
|
label: string;
|
|
621
|
+
efforts?: string[] | null | undefined;
|
|
567
622
|
}[];
|
|
623
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
624
|
+
secretAppSettings?: string[] | null | undefined;
|
|
568
625
|
} | null | undefined;
|
|
569
626
|
}>;
|
|
570
627
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -609,7 +666,10 @@ export declare const PoolRowSchema: z.ZodObject<{
|
|
|
609
666
|
reason: string | null;
|
|
610
667
|
id: string;
|
|
611
668
|
label: string;
|
|
669
|
+
efforts?: string[] | null | undefined;
|
|
612
670
|
}[];
|
|
671
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
672
|
+
secretAppSettings?: string[] | null | undefined;
|
|
613
673
|
} | null | undefined;
|
|
614
674
|
};
|
|
615
675
|
}, {
|
|
@@ -654,7 +714,10 @@ export declare const PoolRowSchema: z.ZodObject<{
|
|
|
654
714
|
reason: string | null;
|
|
655
715
|
id: string;
|
|
656
716
|
label: string;
|
|
717
|
+
efforts?: string[] | null | undefined;
|
|
657
718
|
}[];
|
|
719
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
720
|
+
secretAppSettings?: string[] | null | undefined;
|
|
658
721
|
} | null | undefined;
|
|
659
722
|
};
|
|
660
723
|
}>;
|
|
@@ -734,17 +797,22 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
734
797
|
label: z.ZodString;
|
|
735
798
|
status: z.ZodEnum<["untested", "ok", "failed"]>;
|
|
736
799
|
reason: z.ZodNullable<z.ZodString>;
|
|
800
|
+
efforts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
737
801
|
}, "strip", z.ZodTypeAny, {
|
|
738
802
|
status: "failed" | "untested" | "ok";
|
|
739
803
|
reason: string | null;
|
|
740
804
|
id: string;
|
|
741
805
|
label: string;
|
|
806
|
+
efforts?: string[] | null | undefined;
|
|
742
807
|
}, {
|
|
743
808
|
status: "failed" | "untested" | "ok";
|
|
744
809
|
reason: string | null;
|
|
745
810
|
id: string;
|
|
746
811
|
label: string;
|
|
812
|
+
efforts?: string[] | null | undefined;
|
|
747
813
|
}>, "many">;
|
|
814
|
+
appSettings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
815
|
+
secretAppSettings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
748
816
|
}, "strip", z.ZodTypeAny, {
|
|
749
817
|
region: string;
|
|
750
818
|
defaultModel: string;
|
|
@@ -755,7 +823,10 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
755
823
|
reason: string | null;
|
|
756
824
|
id: string;
|
|
757
825
|
label: string;
|
|
826
|
+
efforts?: string[] | null | undefined;
|
|
758
827
|
}[];
|
|
828
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
829
|
+
secretAppSettings?: string[] | null | undefined;
|
|
759
830
|
}, {
|
|
760
831
|
region: string;
|
|
761
832
|
defaultModel: string;
|
|
@@ -766,7 +837,10 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
766
837
|
reason: string | null;
|
|
767
838
|
id: string;
|
|
768
839
|
label: string;
|
|
840
|
+
efforts?: string[] | null | undefined;
|
|
769
841
|
}[];
|
|
842
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
843
|
+
secretAppSettings?: string[] | null | undefined;
|
|
770
844
|
}>>>;
|
|
771
845
|
}, "strip", z.ZodTypeAny, {
|
|
772
846
|
dead: number;
|
|
@@ -797,7 +871,10 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
797
871
|
reason: string | null;
|
|
798
872
|
id: string;
|
|
799
873
|
label: string;
|
|
874
|
+
efforts?: string[] | null | undefined;
|
|
800
875
|
}[];
|
|
876
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
877
|
+
secretAppSettings?: string[] | null | undefined;
|
|
801
878
|
} | null | undefined;
|
|
802
879
|
}, {
|
|
803
880
|
dead: number;
|
|
@@ -828,7 +905,10 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
828
905
|
reason: string | null;
|
|
829
906
|
id: string;
|
|
830
907
|
label: string;
|
|
908
|
+
efforts?: string[] | null | undefined;
|
|
831
909
|
}[];
|
|
910
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
911
|
+
secretAppSettings?: string[] | null | undefined;
|
|
832
912
|
} | null | undefined;
|
|
833
913
|
}>;
|
|
834
914
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -873,7 +953,10 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
873
953
|
reason: string | null;
|
|
874
954
|
id: string;
|
|
875
955
|
label: string;
|
|
956
|
+
efforts?: string[] | null | undefined;
|
|
876
957
|
}[];
|
|
958
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
959
|
+
secretAppSettings?: string[] | null | undefined;
|
|
877
960
|
} | null | undefined;
|
|
878
961
|
};
|
|
879
962
|
}, {
|
|
@@ -918,7 +1001,10 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
918
1001
|
reason: string | null;
|
|
919
1002
|
id: string;
|
|
920
1003
|
label: string;
|
|
1004
|
+
efforts?: string[] | null | undefined;
|
|
921
1005
|
}[];
|
|
1006
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
1007
|
+
secretAppSettings?: string[] | null | undefined;
|
|
922
1008
|
} | null | undefined;
|
|
923
1009
|
};
|
|
924
1010
|
}>, "many">;
|
|
@@ -967,7 +1053,10 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
967
1053
|
reason: string | null;
|
|
968
1054
|
id: string;
|
|
969
1055
|
label: string;
|
|
1056
|
+
efforts?: string[] | null | undefined;
|
|
970
1057
|
}[];
|
|
1058
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
1059
|
+
secretAppSettings?: string[] | null | undefined;
|
|
971
1060
|
} | null | undefined;
|
|
972
1061
|
};
|
|
973
1062
|
}[];
|
|
@@ -1016,7 +1105,10 @@ export declare const PoolsStreamFrameSchema: z.ZodObject<{
|
|
|
1016
1105
|
reason: string | null;
|
|
1017
1106
|
id: string;
|
|
1018
1107
|
label: string;
|
|
1108
|
+
efforts?: string[] | null | undefined;
|
|
1019
1109
|
}[];
|
|
1110
|
+
appSettings?: Record<string, unknown> | null | undefined;
|
|
1111
|
+
secretAppSettings?: string[] | null | undefined;
|
|
1020
1112
|
} | null | undefined;
|
|
1021
1113
|
};
|
|
1022
1114
|
}[];
|
|
@@ -1068,4 +1160,20 @@ export declare const GatewayConfigureBodySchema: z.ZodObject<{
|
|
|
1068
1160
|
apiKey?: string | undefined;
|
|
1069
1161
|
}>;
|
|
1070
1162
|
export type GatewayConfigureBody = z.infer<typeof GatewayConfigureBodySchema>;
|
|
1163
|
+
/**
|
|
1164
|
+
* The gateway app settings' body: every setting's value (the engine checks keys, values and
|
|
1165
|
+
* size), and the secret settings' keys. A secret key without a value keeps the stored value;
|
|
1166
|
+
* every other stored key not sent is dropped.
|
|
1167
|
+
*/
|
|
1168
|
+
export declare const GatewayAppSettingsBodySchema: z.ZodObject<{
|
|
1169
|
+
appSettings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1170
|
+
secretAppSettings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1171
|
+
}, "strip", z.ZodTypeAny, {
|
|
1172
|
+
appSettings: Record<string, unknown>;
|
|
1173
|
+
secretAppSettings?: string[] | undefined;
|
|
1174
|
+
}, {
|
|
1175
|
+
appSettings: Record<string, unknown>;
|
|
1176
|
+
secretAppSettings?: string[] | undefined;
|
|
1177
|
+
}>;
|
|
1178
|
+
export type GatewayAppSettingsBody = z.infer<typeof GatewayAppSettingsBodySchema>;
|
|
1071
1179
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/pools/schemas.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8FAA8F;AAC9F,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/pools/schemas.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8FAA8F;AAC9F,eAAO,MAAM,iBAAiB,uOAc5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AA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'default-not-ticked',
|
|
23
23
|
'unknown-region',
|
|
24
|
+
'invalid-app-settings',
|
|
24
25
|
]);
|
|
25
26
|
/** The pool operations, as the stream's `allowed` lists them. */
|
|
26
27
|
export const PoolOperationSchema = z.enum(['setup', 'configure', 'retest', 'bury-dead', 'remove-all', 'sort-out']);
|
|
@@ -63,19 +64,31 @@ export const PoolAccountRowSchema = z.object({
|
|
|
63
64
|
summary: z.string().nullable(),
|
|
64
65
|
resetsAt: z.string().nullable(),
|
|
65
66
|
});
|
|
67
|
+
/**
|
|
68
|
+
* A model of the gateway configuration. `efforts`: its effort levels (null: none; absent
|
|
69
|
+
* from an older engine or a configuration not rewritten since: unknown, shown as none).
|
|
70
|
+
*/
|
|
66
71
|
export const PoolGatewayModelRowSchema = z.object({
|
|
67
72
|
id: z.string(),
|
|
68
73
|
label: z.string(),
|
|
69
74
|
status: z.enum(['untested', 'ok', 'failed']),
|
|
70
75
|
reason: z.string().nullable(),
|
|
76
|
+
efforts: z.array(z.string()).nullish(),
|
|
71
77
|
});
|
|
72
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* The form kind's configuration. `keyHint`: the key's last characters, null for a short key.
|
|
80
|
+
* `appSettings`: the app's settings kept with it, without the secret ones' values;
|
|
81
|
+
* `secretAppSettings`: the keys whose values only the encrypted seed holds (names only).
|
|
82
|
+
* Null or absent (an older engine) read as `{}` / `[]`.
|
|
83
|
+
*/
|
|
73
84
|
export const PoolGatewaySummarySchema = z.object({
|
|
74
85
|
region: z.string(),
|
|
75
86
|
defaultModel: z.string(),
|
|
76
87
|
keyHint: z.string().nullable(),
|
|
77
88
|
testedAt: z.string().nullable(),
|
|
78
89
|
models: z.array(PoolGatewayModelRowSchema),
|
|
90
|
+
appSettings: z.record(z.unknown()).nullish(),
|
|
91
|
+
secretAppSettings: z.array(z.string()).nullish(),
|
|
79
92
|
});
|
|
80
93
|
const Count = z.number().int().min(0);
|
|
81
94
|
/**
|
|
@@ -134,4 +147,13 @@ export const GatewayConfigureBodySchema = GatewayModelsBodySchema.extend({
|
|
|
134
147
|
models: z.array(z.string()).min(1),
|
|
135
148
|
defaultModel: z.string(),
|
|
136
149
|
});
|
|
150
|
+
/**
|
|
151
|
+
* The gateway app settings' body: every setting's value (the engine checks keys, values and
|
|
152
|
+
* size), and the secret settings' keys. A secret key without a value keeps the stored value;
|
|
153
|
+
* every other stored key not sent is dropped.
|
|
154
|
+
*/
|
|
155
|
+
export const GatewayAppSettingsBodySchema = z.object({
|
|
156
|
+
appSettings: z.record(z.unknown()),
|
|
157
|
+
secretAppSettings: z.array(z.string()).optional(),
|
|
158
|
+
});
|
|
137
159
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/pools/schemas.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,qDAAqD;AACrD,6EAA6E;AAC7E,wBAAwB;AACxB,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,4DAA4D;AAE5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IACtC,cAAc;IACd,aAAa;IACb,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,QAAQ;IACR,cAAc;IACd,aAAa;IACb,WAAW;IACX,eAAe;IACf,oBAAoB;IACpB,gBAAgB;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/pools/schemas.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,qDAAqD;AACrD,6EAA6E;AAC7E,wBAAwB;AACxB,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,4DAA4D;AAE5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IACtC,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CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAClC,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC"}
|
|
@@ -10,6 +10,7 @@ export declare const apiToFrontendRouteErrorReasons: {
|
|
|
10
10
|
readonly 'pools.sort-out': readonly ["unknown-kind", "engine-unavailable", "unsupported"];
|
|
11
11
|
readonly 'pools.gateway.models': readonly ["unknown-kind", "engine-unavailable", "unsupported", "no-key", "key-rejected", "unreachable", "no-models", "unknown-region"];
|
|
12
12
|
readonly 'pools.gateway.configure': readonly ["unknown-kind", "engine-unavailable", "setup-running", "unsupported", "launch-refused", "no-key", "key-rejected", "unreachable", "no-models", "unknown-region", "unknown-model", "default-not-ticked"];
|
|
13
|
+
readonly 'pools.gateway.app-settings': readonly ["unknown-kind", "engine-unavailable", "setup-running", "unsupported", "invalid-app-settings"];
|
|
13
14
|
};
|
|
14
15
|
export type ApiToFrontendRouteId = keyof typeof apiToFrontendRouteErrorReasons;
|
|
15
16
|
//# sourceMappingURL=route-error-reasons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-error-reasons.d.ts","sourceRoot":"","sources":["../src/route-error-reasons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"route-error-reasons.d.ts","sourceRoot":"","sources":["../src/route-error-reasons.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;CAgBjC,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,8BAA8B,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// `{reason, message}` body are listed; engine-internal admin RPCs
|
|
8
8
|
// (groupCancel, blockLaunches) are not exposed to the frontend.
|
|
9
9
|
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, } from './engine-failure-reasons.js';
|
|
10
|
-
import { PoolSetupConflictReason, PoolUnsupportedReason, PoolRetestConflictReason, PoolGatewayModelsReason, PoolGatewayConfigureReason, } from './pools/api-to-frontend.js';
|
|
10
|
+
import { PoolSetupConflictReason, PoolUnsupportedReason, PoolRetestConflictReason, PoolGatewayModelsReason, PoolGatewayConfigureReason, PoolAppSettingsConflictReason, PoolAppSettingsReason, } from './pools/api-to-frontend.js';
|
|
11
11
|
// Every login pool route can answer these two (404 and 503), listed first.
|
|
12
12
|
const POOL_ROUTE_REASONS = ['unknown-kind', 'engine-unavailable'];
|
|
13
13
|
export const apiToFrontendRouteErrorReasons = {
|
|
@@ -24,5 +24,7 @@ export const apiToFrontendRouteErrorReasons = {
|
|
|
24
24
|
...PoolGatewayModelsReason.options],
|
|
25
25
|
'pools.gateway.configure': [...POOL_ROUTE_REASONS, ...PoolSetupConflictReason.options,
|
|
26
26
|
...PoolGatewayConfigureReason.options],
|
|
27
|
+
'pools.gateway.app-settings': [...POOL_ROUTE_REASONS, ...PoolAppSettingsConflictReason.options,
|
|
28
|
+
...PoolAppSettingsReason.options],
|
|
27
29
|
};
|
|
28
30
|
//# sourceMappingURL=route-error-reasons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-error-reasons.js","sourceRoot":"","sources":["../src/route-error-reasons.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,2DAA2D;AAC3D,EAAE;AACF,4DAA4D;AAC5D,kEAAkE;AAClE,gEAAgE;AAEhE,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,6BAA6B,CA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