@zeitvu97/cms-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +478 -0
- package/dist/chunks/_shared-48T7q0V3.js +26 -0
- package/dist/chunks/_shared-48T7q0V3.js.map +1 -0
- package/dist/chunks/auth.constant-DO7ZmsKg.js +68 -0
- package/dist/chunks/auth.constant-DO7ZmsKg.js.map +1 -0
- package/dist/chunks/mt5Retcode-DlZLQOLA.js +178 -0
- package/dist/chunks/mt5Retcode-DlZLQOLA.js.map +1 -0
- package/dist/chunks/storage.constant--64BDSPW.js +44 -0
- package/dist/chunks/storage.constant--64BDSPW.js.map +1 -0
- package/dist/common/constants/auth.constant.d.ts +54 -0
- package/dist/common/constants/auth.constant.d.ts.map +1 -0
- package/dist/common/constants/bars.constant.d.ts +15 -0
- package/dist/common/constants/bars.constant.d.ts.map +1 -0
- package/dist/common/constants/content-types.constant.d.ts +29 -0
- package/dist/common/constants/content-types.constant.d.ts.map +1 -0
- package/dist/common/constants/content.constant.d.ts +114 -0
- package/dist/common/constants/content.constant.d.ts.map +1 -0
- package/dist/common/constants/executions.constant.d.ts +56 -0
- package/dist/common/constants/executions.constant.d.ts.map +1 -0
- package/dist/common/constants/gov.constant.d.ts +118 -0
- package/dist/common/constants/gov.constant.d.ts.map +1 -0
- package/dist/common/constants/history.constant.d.ts +108 -0
- package/dist/common/constants/history.constant.d.ts.map +1 -0
- package/dist/common/constants/http.constant.d.ts +46 -0
- package/dist/common/constants/http.constant.d.ts.map +1 -0
- package/dist/common/constants/index.d.ts +16 -0
- package/dist/common/constants/index.d.ts.map +1 -0
- package/dist/common/constants/kalshi.constant.d.ts +35 -0
- package/dist/common/constants/kalshi.constant.d.ts.map +1 -0
- package/dist/common/constants/llm.constant.d.ts +37 -0
- package/dist/common/constants/llm.constant.d.ts.map +1 -0
- package/dist/common/constants/mt5-action.constant.d.ts +131 -0
- package/dist/common/constants/mt5-action.constant.d.ts.map +1 -0
- package/dist/common/constants/mt5.constant.d.ts +254 -0
- package/dist/common/constants/mt5.constant.d.ts.map +1 -0
- package/dist/common/constants/notifications.constant.d.ts +45 -0
- package/dist/common/constants/notifications.constant.d.ts.map +1 -0
- package/dist/common/constants/people.constant.d.ts +269 -0
- package/dist/common/constants/people.constant.d.ts.map +1 -0
- package/dist/common/constants/rules.constant.d.ts +14 -0
- package/dist/common/constants/rules.constant.d.ts.map +1 -0
- package/dist/common/constants/settings.constant.d.ts +17 -0
- package/dist/common/constants/settings.constant.d.ts.map +1 -0
- package/dist/common/constants/sort.constant.d.ts +14 -0
- package/dist/common/constants/sort.constant.d.ts.map +1 -0
- package/dist/common/constants/storage.constant.d.ts +74 -0
- package/dist/common/constants/storage.constant.d.ts.map +1 -0
- package/dist/common/helpers/format.d.ts +7 -0
- package/dist/common/helpers/format.d.ts.map +1 -0
- package/dist/common/helpers/format.js +20 -0
- package/dist/common/helpers/format.js.map +1 -0
- package/dist/common/helpers/mt5Retcode.d.ts +18 -0
- package/dist/common/helpers/mt5Retcode.d.ts.map +1 -0
- package/dist/common/helpers/mt5Retcode.js +2 -0
- package/dist/common/helpers/mt5Retcode.js.map +1 -0
- package/dist/common/utils/case.d.ts +12 -0
- package/dist/common/utils/case.d.ts.map +1 -0
- package/dist/common/utils/clone.d.ts +9 -0
- package/dist/common/utils/clone.d.ts.map +1 -0
- package/dist/composables/cbsStateKey.d.ts +27 -0
- package/dist/composables/cbsStateKey.d.ts.map +1 -0
- package/dist/core/createApi.d.ts +69 -0
- package/dist/core/createApi.d.ts.map +1 -0
- package/dist/core/createCmsSDK.d.ts +19 -0
- package/dist/core/createCmsSDK.d.ts.map +1 -0
- package/dist/core/credentials/TokenManager.d.ts +38 -0
- package/dist/core/credentials/TokenManager.d.ts.map +1 -0
- package/dist/core/credentials/credential.type.d.ts +16 -0
- package/dist/core/credentials/credential.type.d.ts.map +1 -0
- package/dist/core/credentials/resolveStorage.d.ts +6 -0
- package/dist/core/credentials/resolveStorage.d.ts.map +1 -0
- package/dist/core/credentials/storages/cookieStorage.d.ts +18 -0
- package/dist/core/credentials/storages/cookieStorage.d.ts.map +1 -0
- package/dist/core/credentials/storages/localStorageAdapter.d.ts +8 -0
- package/dist/core/credentials/storages/localStorageAdapter.d.ts.map +1 -0
- package/dist/core/credentials/storages/memoryStorage.d.ts +7 -0
- package/dist/core/credentials/storages/memoryStorage.d.ts.map +1 -0
- package/dist/core/errors.d.ts +26 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/sdk.type.d.ts +115 -0
- package/dist/core/sdk.type.d.ts.map +1 -0
- package/dist/core/ws/createEaeraWebSocket.d.ts +21 -0
- package/dist/core/ws/createEaeraWebSocket.d.ts.map +1 -0
- package/dist/core/ws/index.d.ts +4 -0
- package/dist/core/ws/index.d.ts.map +1 -0
- package/dist/core/ws/ws.constants.d.ts +246 -0
- package/dist/core/ws/ws.constants.d.ts.map +1 -0
- package/dist/core/ws/ws.events.d.ts +264 -0
- package/dist/core/ws/ws.events.d.ts.map +1 -0
- package/dist/core/ws/ws.type.d.ts +225 -0
- package/dist/core/ws/ws.type.d.ts.map +1 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8416 -0
- package/dist/index.js.map +1 -0
- package/dist/nuxt.d.ts +49 -0
- package/dist/nuxt.d.ts.map +1 -0
- package/dist/nuxt.js +47 -0
- package/dist/nuxt.js.map +1 -0
- package/dist/runtime/plugin.d.ts +6 -0
- package/dist/runtime/plugin.js +188 -0
- package/dist/runtime/plugin.js.map +1 -0
- package/dist/server/auth/cbs-callback.post.js +42 -0
- package/dist/server/auth/cbs-callback.post.js.map +1 -0
- package/dist/server/auth/cbs-start.post.js +34 -0
- package/dist/server/auth/cbs-start.post.js.map +1 -0
- package/dist/server/auth/idp-callback.get.js +52 -0
- package/dist/server/auth/idp-callback.get.js.map +1 -0
- package/dist/server/auth/idp-link.post.js +38 -0
- package/dist/server/auth/idp-link.post.js.map +1 -0
- package/dist/server/auth/idp-login.get.js +42 -0
- package/dist/server/auth/idp-login.get.js.map +1 -0
- package/dist/server/auth/idp-unlink.delete.js +38 -0
- package/dist/server/auth/idp-unlink.delete.js.map +1 -0
- package/dist/server/auth/login.post.js +42 -0
- package/dist/server/auth/login.post.js.map +1 -0
- package/dist/server/auth/logout.post.js +31 -0
- package/dist/server/auth/logout.post.js.map +1 -0
- package/dist/server/auth/refresh.post.js +46 -0
- package/dist/server/auth/refresh.post.js.map +1 -0
- package/dist/server/clear-token.delete.js +12 -0
- package/dist/server/clear-token.delete.js.map +1 -0
- package/dist/server/persist.post.js +31 -0
- package/dist/server/persist.post.js.map +1 -0
- package/dist/server/set-token.post.js +27 -0
- package/dist/server/set-token.post.js.map +1 -0
- package/dist/services/auth/auth.type.d.ts +66 -0
- package/dist/services/auth/auth.type.d.ts.map +1 -0
- package/dist/services/auth/index.d.ts +127 -0
- package/dist/services/auth/index.d.ts.map +1 -0
- package/dist/services/auth/mock.d.ts +13 -0
- package/dist/services/auth/mock.d.ts.map +1 -0
- package/dist/services/bars/bars.type.d.ts +78 -0
- package/dist/services/bars/bars.type.d.ts.map +1 -0
- package/dist/services/bars/index.d.ts +24 -0
- package/dist/services/bars/index.d.ts.map +1 -0
- package/dist/services/bars/mock.d.ts +23 -0
- package/dist/services/bars/mock.d.ts.map +1 -0
- package/dist/services/content/content.type.d.ts +832 -0
- package/dist/services/content/content.type.d.ts.map +1 -0
- package/dist/services/content/filter.d.ts +46 -0
- package/dist/services/content/filter.d.ts.map +1 -0
- package/dist/services/content/index.d.ts +35 -0
- package/dist/services/content/index.d.ts.map +1 -0
- package/dist/services/content/mock.d.ts +16 -0
- package/dist/services/content/mock.d.ts.map +1 -0
- package/dist/services/content-types/content-types.type.d.ts +70 -0
- package/dist/services/content-types/content-types.type.d.ts.map +1 -0
- package/dist/services/content-types/index.d.ts +18 -0
- package/dist/services/content-types/index.d.ts.map +1 -0
- package/dist/services/content-types/mock.d.ts +15 -0
- package/dist/services/content-types/mock.d.ts.map +1 -0
- package/dist/services/executions/executions.type.d.ts +67 -0
- package/dist/services/executions/executions.type.d.ts.map +1 -0
- package/dist/services/executions/index.d.ts +30 -0
- package/dist/services/executions/index.d.ts.map +1 -0
- package/dist/services/executions/mock.d.ts +29 -0
- package/dist/services/executions/mock.d.ts.map +1 -0
- package/dist/services/gov/gov.type.d.ts +740 -0
- package/dist/services/gov/gov.type.d.ts.map +1 -0
- package/dist/services/gov/index.d.ts +84 -0
- package/dist/services/gov/index.d.ts.map +1 -0
- package/dist/services/history/history.type.d.ts +167 -0
- package/dist/services/history/history.type.d.ts.map +1 -0
- package/dist/services/history/index.d.ts +38 -0
- package/dist/services/history/index.d.ts.map +1 -0
- package/dist/services/history/mock.d.ts +21 -0
- package/dist/services/history/mock.d.ts.map +1 -0
- package/dist/services/kalshi/index.d.ts +19 -0
- package/dist/services/kalshi/index.d.ts.map +1 -0
- package/dist/services/kalshi/kalshi.type.d.ts +99 -0
- package/dist/services/kalshi/kalshi.type.d.ts.map +1 -0
- package/dist/services/kalshi/mock.d.ts +5 -0
- package/dist/services/kalshi/mock.d.ts.map +1 -0
- package/dist/services/llm/index.d.ts +38 -0
- package/dist/services/llm/index.d.ts.map +1 -0
- package/dist/services/llm/llm.type.d.ts +106 -0
- package/dist/services/llm/llm.type.d.ts.map +1 -0
- package/dist/services/notifications/index.d.ts +38 -0
- package/dist/services/notifications/index.d.ts.map +1 -0
- package/dist/services/notifications/mock.d.ts +39 -0
- package/dist/services/notifications/mock.d.ts.map +1 -0
- package/dist/services/notifications/notifications.type.d.ts +75 -0
- package/dist/services/notifications/notifications.type.d.ts.map +1 -0
- package/dist/services/people/_invoke.d.ts +26 -0
- package/dist/services/people/_invoke.d.ts.map +1 -0
- package/dist/services/people/copilot/index.d.ts +132 -0
- package/dist/services/people/copilot/index.d.ts.map +1 -0
- package/dist/services/people/identity/actions.d.ts +116 -0
- package/dist/services/people/identity/actions.d.ts.map +1 -0
- package/dist/services/people/identity/ct.types.d.ts +133 -0
- package/dist/services/people/identity/ct.types.d.ts.map +1 -0
- package/dist/services/people/identity/index.d.ts +14 -0
- package/dist/services/people/identity/index.d.ts.map +1 -0
- package/dist/services/people/identity/projections.d.ts +63 -0
- package/dist/services/people/identity/projections.d.ts.map +1 -0
- package/dist/services/people/index.d.ts +31 -0
- package/dist/services/people/index.d.ts.map +1 -0
- package/dist/services/people/legal/actions.d.ts +161 -0
- package/dist/services/people/legal/actions.d.ts.map +1 -0
- package/dist/services/people/legal/ct.types.d.ts +186 -0
- package/dist/services/people/legal/ct.types.d.ts.map +1 -0
- package/dist/services/people/legal/index.d.ts +15 -0
- package/dist/services/people/legal/index.d.ts.map +1 -0
- package/dist/services/people/packops/index.d.ts +70 -0
- package/dist/services/people/packops/index.d.ts.map +1 -0
- package/dist/services/people/packops/packops.type.d.ts +183 -0
- package/dist/services/people/packops/packops.type.d.ts.map +1 -0
- package/dist/services/people/perms/actions.d.ts +214 -0
- package/dist/services/people/perms/actions.d.ts.map +1 -0
- package/dist/services/people/perms/ct.types.d.ts +140 -0
- package/dist/services/people/perms/ct.types.d.ts.map +1 -0
- package/dist/services/people/perms/index.d.ts +14 -0
- package/dist/services/people/perms/index.d.ts.map +1 -0
- package/dist/services/people/perms/projections.d.ts +47 -0
- package/dist/services/people/perms/projections.d.ts.map +1 -0
- package/dist/services/people/process/actions.d.ts +154 -0
- package/dist/services/people/process/actions.d.ts.map +1 -0
- package/dist/services/people/process/ct.types.d.ts +304 -0
- package/dist/services/people/process/ct.types.d.ts.map +1 -0
- package/dist/services/people/process/index.d.ts +12 -0
- package/dist/services/people/process/index.d.ts.map +1 -0
- package/dist/services/people/shared.types.d.ts +36 -0
- package/dist/services/people/shared.types.d.ts.map +1 -0
- package/dist/services/rules/conditions.d.ts +264 -0
- package/dist/services/rules/conditions.d.ts.map +1 -0
- package/dist/services/rules/index.d.ts +49 -0
- package/dist/services/rules/index.d.ts.map +1 -0
- package/dist/services/rules/llm-rule.constant.d.ts +84 -0
- package/dist/services/rules/llm-rule.constant.d.ts.map +1 -0
- package/dist/services/rules/mock.d.ts +20 -0
- package/dist/services/rules/mock.d.ts.map +1 -0
- package/dist/services/rules/rules.type.d.ts +262 -0
- package/dist/services/rules/rules.type.d.ts.map +1 -0
- package/dist/services/rules/triggers.d.ts +140 -0
- package/dist/services/rules/triggers.d.ts.map +1 -0
- package/dist/services/settings/index.d.ts +36 -0
- package/dist/services/settings/index.d.ts.map +1 -0
- package/dist/services/settings/mock.d.ts +14 -0
- package/dist/services/settings/mock.d.ts.map +1 -0
- package/dist/services/settings/settings.type.d.ts +39 -0
- package/dist/services/settings/settings.type.d.ts.map +1 -0
- package/dist/stores/auth.d.ts +192 -0
- package/dist/stores/auth.d.ts.map +1 -0
- package/dist/stores/bars.d.ts +288 -0
- package/dist/stores/bars.d.ts.map +1 -0
- package/dist/stores/content.d.ts +4101 -0
- package/dist/stores/content.d.ts.map +1 -0
- package/dist/stores/executions.d.ts +249 -0
- package/dist/stores/executions.d.ts.map +1 -0
- package/dist/stores/gov.d.ts +238 -0
- package/dist/stores/gov.d.ts.map +1 -0
- package/dist/stores/history.d.ts +833 -0
- package/dist/stores/history.d.ts.map +1 -0
- package/dist/stores/index.d.ts +15 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/kalshi.d.ts +728 -0
- package/dist/stores/kalshi.d.ts.map +1 -0
- package/dist/stores/llm-providers.d.ts +97 -0
- package/dist/stores/llm-providers.d.ts.map +1 -0
- package/dist/stores/llm.d.ts +102 -0
- package/dist/stores/llm.d.ts.map +1 -0
- package/dist/stores/people.d.ts +596 -0
- package/dist/stores/people.d.ts.map +1 -0
- package/dist/stores/persist.d.ts +58 -0
- package/dist/stores/persist.d.ts.map +1 -0
- package/dist/stores/rules.d.ts +485 -0
- package/dist/stores/rules.d.ts.map +1 -0
- package/dist/stores/settings.d.ts +36 -0
- package/dist/stores/settings.d.ts.map +1 -0
- package/dist/stores/ws.d.ts +66 -0
- package/dist/stores/ws.d.ts.map +1 -0
- package/package.json +90 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Government Portal pack (`eaera-agent-government`) — content types,
|
|
3
|
+
* action names, and the portal REST endpoints mounted by the engine.
|
|
4
|
+
*
|
|
5
|
+
* Source of truth:
|
|
6
|
+
* `eaera-docs/company-os/ai-government-portal/be-docs/api_references.md`.
|
|
7
|
+
*/ export declare const GOV_CONTENT_TYPE: {
|
|
8
|
+
readonly AGENT: "gov.agent";
|
|
9
|
+
readonly AGENT_TYPE: "gov.agent_type";
|
|
10
|
+
readonly TEAM: "gov.team";
|
|
11
|
+
readonly PROJECT: "gov.project";
|
|
12
|
+
readonly GATEWAY_PROVIDER: "gov.gateway_provider";
|
|
13
|
+
readonly GATEWAY_ROUTE: "gov.gateway_route";
|
|
14
|
+
readonly GATEWAY_CONSUMER: "gov.gateway_consumer";
|
|
15
|
+
readonly CONTENT_POLICY: "gov.content_policy";
|
|
16
|
+
readonly USAGE_RECORD: "gov.usage_record";
|
|
17
|
+
readonly COST_REPORT: "gov.cost_report";
|
|
18
|
+
readonly LIFECYCLE_EVENT: "gov.lifecycle_event";
|
|
19
|
+
readonly ALERT: "gov.alert";
|
|
20
|
+
readonly SETTING: "setting.gov";
|
|
21
|
+
};
|
|
22
|
+
export type GovContentTypeName = (typeof GOV_CONTENT_TYPE)[keyof typeof GOV_CONTENT_TYPE];
|
|
23
|
+
export declare const GOV_CONTENT_TYPE_NAMES: readonly GovContentTypeName[];
|
|
24
|
+
/**
|
|
25
|
+
* Portal REST reads (pack router, api_references §6). Mounted by the engine
|
|
26
|
+
* from the pack.yaml `routers:` block. Plain lists (agents, providers) have
|
|
27
|
+
* NO dedicated endpoint — they go through the generic content API
|
|
28
|
+
* (`GET /api/v1/content?type=<ct>`, §3).
|
|
29
|
+
*/
|
|
30
|
+
export declare const GOV_ENDPOINT: {
|
|
31
|
+
readonly PROJECT_MATRIX: "/api/v1/projects/matrix";
|
|
32
|
+
readonly projectTasks: (name: string) => string;
|
|
33
|
+
readonly GATEWAY_PLUGINS: "/api/v1/gateway/plugins";
|
|
34
|
+
/** Worker CR phase + Matrix MXID, realtime (needs the engine K8s client). */
|
|
35
|
+
readonly workerStatus: (name: string) => string;
|
|
36
|
+
/** Worker gateway key straight from Secret `agentteams-creds-<name>`. */
|
|
37
|
+
readonly workerGatewayKey: (name: string) => string;
|
|
38
|
+
readonly USAGE_COST: "/api/v1/usage/cost";
|
|
39
|
+
readonly USAGE_DASHBOARD: "/api/v1/usage/dashboard";
|
|
40
|
+
readonly USAGE_EXPORT: "/api/v1/usage/export";
|
|
41
|
+
/** Generic action route — shared with the content service. */
|
|
42
|
+
readonly action: (uuid: string, actionName: string) => string;
|
|
43
|
+
};
|
|
44
|
+
/** The 29 pack actions (api_references §5). */
|
|
45
|
+
export declare const GOV_ACTION_NAME: {
|
|
46
|
+
readonly ONBOARD: "onboard";
|
|
47
|
+
readonly SUSPEND: "suspend";
|
|
48
|
+
readonly RESUME: "resume";
|
|
49
|
+
readonly DECOMMISSION: "decommission";
|
|
50
|
+
readonly UPDATE_CONFIG: "update_config";
|
|
51
|
+
readonly SYNC_AGENT_STATUS: "sync_agent_status";
|
|
52
|
+
readonly RESOLVE_CONFIG: "resolve_config";
|
|
53
|
+
readonly ENSURE_AGENT_TYPE_SEEDS: "ensure_agent_type_seeds";
|
|
54
|
+
readonly ENSURE_COORDINATOR: "ensure_coordinator";
|
|
55
|
+
readonly CREATE_CONSUMER: "create_consumer";
|
|
56
|
+
readonly REVOKE_CONSUMER: "revoke_consumer";
|
|
57
|
+
readonly SYNC_PROVIDER: "sync_provider";
|
|
58
|
+
readonly DELETE_PROVIDER: "delete_provider";
|
|
59
|
+
readonly SYNC_ROUTE: "sync_route";
|
|
60
|
+
readonly DELETE_ROUTE: "delete_route";
|
|
61
|
+
readonly SYNC_CONSUMER_LIMITS: "sync_consumer_limits";
|
|
62
|
+
readonly PUBLISH_CONTENT_POLICY: "publish_content_policy";
|
|
63
|
+
readonly ASSIGNMENT_MATRIX: "assignment_matrix";
|
|
64
|
+
readonly AGGREGATE_TASKS: "aggregate_tasks";
|
|
65
|
+
readonly RUN_MONITORING: "run_monitoring";
|
|
66
|
+
readonly CREATE_TEAM: "create_team";
|
|
67
|
+
readonly ARCHIVE_TEAM: "archive_team";
|
|
68
|
+
readonly AGGREGATE_USAGE: "aggregate_usage";
|
|
69
|
+
readonly GENERATE_COST_REPORT: "generate_cost_report";
|
|
70
|
+
readonly COMPUTE_COST: "compute_cost";
|
|
71
|
+
readonly DASHBOARD: "dashboard";
|
|
72
|
+
readonly EXPORT_USAGE: "export_usage";
|
|
73
|
+
readonly WORKER_STATUS: "worker_status";
|
|
74
|
+
readonly WORKER_GATEWAY_KEY: "worker_gateway_key";
|
|
75
|
+
};
|
|
76
|
+
export type GovActionName = (typeof GOV_ACTION_NAME)[keyof typeof GOV_ACTION_NAME];
|
|
77
|
+
/**
|
|
78
|
+
* Action-by-CT contract — every pack action is bound to one content type.
|
|
79
|
+
* Invoking an action on a uuid of another CT returns a dispatcher error.
|
|
80
|
+
*/
|
|
81
|
+
export declare const GOV_ACTION_BY_CT: Record<GovContentTypeName, readonly GovActionName[]>;
|
|
82
|
+
/** Time windows accepted by the usage endpoints (api_references §5/§6). */
|
|
83
|
+
export declare const GOV_USAGE_WINDOW: {
|
|
84
|
+
readonly TODAY: "today";
|
|
85
|
+
readonly W24H: "24h";
|
|
86
|
+
readonly W7D: "7d";
|
|
87
|
+
readonly W30D: "30d";
|
|
88
|
+
readonly CUSTOM: "custom";
|
|
89
|
+
};
|
|
90
|
+
export type GovUsageWindow = (typeof GOV_USAGE_WINDOW)[keyof typeof GOV_USAGE_WINDOW];
|
|
91
|
+
/** Group-by dimensions for `GET /api/v1/usage/cost`. */
|
|
92
|
+
export declare const GOV_COST_GROUP: {
|
|
93
|
+
readonly AGENT: "agent";
|
|
94
|
+
readonly PROJECT: "project";
|
|
95
|
+
readonly PROVIDER: "provider";
|
|
96
|
+
readonly MODEL: "model";
|
|
97
|
+
};
|
|
98
|
+
export type GovCostGroup = (typeof GOV_COST_GROUP)[keyof typeof GOV_COST_GROUP];
|
|
99
|
+
/** Backend defaults for the gov actions + usage REST reads. */
|
|
100
|
+
export declare const GOV_DEFAULTS: {
|
|
101
|
+
readonly USAGE_WINDOW: "24h";
|
|
102
|
+
readonly COST_GROUP: "agent";
|
|
103
|
+
/** aggregate_usage window_minutes. */
|
|
104
|
+
readonly WINDOW_MINUTES: 5;
|
|
105
|
+
/** aggregate_usage spike_multiplier. */
|
|
106
|
+
readonly SPIKE_MULTIPLIER: 2;
|
|
107
|
+
/** aggregate_usage report_type. */
|
|
108
|
+
readonly REPORT_TYPE: "consumer";
|
|
109
|
+
/** dashboard group_key. */
|
|
110
|
+
readonly GROUP_KEY: "agent";
|
|
111
|
+
/** dashboard top_n. */
|
|
112
|
+
readonly TOP_N: 10;
|
|
113
|
+
/** run_monitoring timeout (seconds). */
|
|
114
|
+
readonly MONITOR_TIMEOUT_S: 10;
|
|
115
|
+
/** export_usage filename. */
|
|
116
|
+
readonly EXPORT_FILENAME: "usage.csv";
|
|
117
|
+
};
|
|
118
|
+
//# sourceMappingURL=gov.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gov.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/gov.constant.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG,CAAC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;CAcvB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE1F,eAAO,MAAM,sBAAsB,EAAE,SAAS,kBAAkB,EAC/B,CAAC;AAElC;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;kCAEF,MAAM,KAAG,MAAM;;IAEpC,6EAA6E;kCACxD,MAAM,KAAG,MAAM;IACpC,yEAAyE;sCAChD,MAAM,KAAG,MAAM;;;;IAIxC,8DAA8D;;CAEtD,CAAC;AAEX,+CAA+C;AAC/C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BlB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,EAAE,SAAS,aAAa,EAAE,CA0CjF,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAEtF,wDAAwD;AACxD,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEhF,+DAA+D;AAC/D,eAAO,MAAM,YAAY;;;IAGvB,sCAAsC;;IAEtC,wCAAwC;;IAExC,mCAAmC;;IAEnC,2BAA2B;;IAE3B,uBAAuB;;IAEvB,wCAAwC;;IAExC,6BAA6B;;CAErB,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* History endpoints (`eaera_cms/history/routes.py`, doc §5.6).
|
|
3
|
+
*
|
|
4
|
+
* ClickHouse-direct deal / position / order reads with email-bound authz:
|
|
5
|
+
* the route resolves the caller's identity by **email** — it looks up
|
|
6
|
+
* `users.email` for the JWT `sub`, then matches every `Mt5Account.data.email`
|
|
7
|
+
* against that address. Callers do NOT pass accountUuid.
|
|
8
|
+
*
|
|
9
|
+
* The legacy CT-backed path (`/api/v1/content?type=Mt5*History`) still
|
|
10
|
+
* works for backward compatibility but is no longer the recommended read
|
|
11
|
+
* — see `eaera-docs/cbs/eaera-cms/docs/eaera-cms-api-inventory.md` §5.6.
|
|
12
|
+
*/
|
|
13
|
+
export declare const HISTORY_ENDPOINT: {
|
|
14
|
+
readonly DEALS: "/api/v1/history/deals";
|
|
15
|
+
readonly DEALS_SUMMARY: "/api/v1/history/deals/summary";
|
|
16
|
+
readonly DEALS_EXPORT: "/api/v1/history/deals/export";
|
|
17
|
+
readonly POSITIONS: "/api/v1/history/positions";
|
|
18
|
+
readonly POSITIONS_SUMMARY: "/api/v1/history/positions/summary";
|
|
19
|
+
readonly POSITIONS_EXPORT: "/api/v1/history/positions/export";
|
|
20
|
+
readonly ORDERS: "/api/v1/history/orders";
|
|
21
|
+
readonly ORDERS_SUMMARY: "/api/v1/history/orders/summary";
|
|
22
|
+
readonly ORDERS_EXPORT: "/api/v1/history/orders/export";
|
|
23
|
+
};
|
|
24
|
+
/** History query defaults (doc §5.6.2). */
|
|
25
|
+
export declare const HISTORY_DEFAULTS: {
|
|
26
|
+
readonly PAGE: 1;
|
|
27
|
+
readonly SIZE: 50;
|
|
28
|
+
readonly SIZE_MIN: 1;
|
|
29
|
+
readonly SIZE_MAX: 500;
|
|
30
|
+
readonly SORT_DIRECTION: "desc";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Per-entity sort whitelist (doc §5.6.2). The backend rejects anything
|
|
34
|
+
* outside this list with a 400 — this prevents SQL injection through the
|
|
35
|
+
* `sortBy` query parameter.
|
|
36
|
+
*/
|
|
37
|
+
export declare const HISTORY_SORT_BY: {
|
|
38
|
+
readonly deals: readonly ["deal_id", "mt5_ts", "price", "volume", "profit_loss"];
|
|
39
|
+
readonly positions: readonly ["position_id", "mt5_ts_open", "mt5_ts_close", "volume", "profit_loss"];
|
|
40
|
+
readonly orders: readonly ["order_id", "mt5_ts_setup", "mt5_ts_done", "volume"];
|
|
41
|
+
};
|
|
42
|
+
export type HistoryDealsSortBy = (typeof HISTORY_SORT_BY.deals)[number];
|
|
43
|
+
export type HistoryPositionsSortBy = (typeof HISTORY_SORT_BY.positions)[number];
|
|
44
|
+
export type HistoryOrdersSortBy = (typeof HISTORY_SORT_BY.orders)[number];
|
|
45
|
+
/** Sort direction whitelist. */
|
|
46
|
+
export declare const HISTORY_SORT_DIRECTION: {
|
|
47
|
+
readonly ASC: "asc";
|
|
48
|
+
readonly DESC: "desc";
|
|
49
|
+
};
|
|
50
|
+
export type HistorySortDirection = (typeof HISTORY_SORT_DIRECTION)[keyof typeof HISTORY_SORT_DIRECTION];
|
|
51
|
+
/**
|
|
52
|
+
* Order status labels returned by the backend, decoded from `state_str`
|
|
53
|
+
* (doc §5.6.2 row 3 + §5.6.5). Non-terminal states surface as `UNKNOWN`.
|
|
54
|
+
*/
|
|
55
|
+
export declare const HISTORY_ORDER_STATUS: {
|
|
56
|
+
readonly FILLED: "FILLED";
|
|
57
|
+
readonly CANCELLED: "CANCELLED";
|
|
58
|
+
readonly EXPIRED: "EXPIRED";
|
|
59
|
+
readonly REJECTED: "REJECTED";
|
|
60
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
61
|
+
};
|
|
62
|
+
export type HistoryOrderStatus = (typeof HISTORY_ORDER_STATUS)[keyof typeof HISTORY_ORDER_STATUS];
|
|
63
|
+
/** Deal `entry` values (doc §5.6.2 + §4.9). */
|
|
64
|
+
export declare const HISTORY_DEAL_ENTRY: {
|
|
65
|
+
readonly IN: "IN";
|
|
66
|
+
readonly OUT: "OUT";
|
|
67
|
+
readonly INOUT: "INOUT";
|
|
68
|
+
readonly OUT_BY: "OUT_BY";
|
|
69
|
+
};
|
|
70
|
+
export type HistoryDealEntry = (typeof HISTORY_DEAL_ENTRY)[keyof typeof HISTORY_DEAL_ENTRY];
|
|
71
|
+
/**
|
|
72
|
+
* Deal `action` values (doc §4.9 + §5.6.2 row 3).
|
|
73
|
+
* Trade deals use BUY/SELL; non-trade rows use BALANCE/CREDIT/etc.
|
|
74
|
+
* The FE splits BALANCE rows into deposits (profit_loss > 0) and
|
|
75
|
+
* withdrawals (profit_loss < 0) for the Funding tab.
|
|
76
|
+
*/
|
|
77
|
+
export declare const HISTORY_DEAL_ACTION: {
|
|
78
|
+
readonly BUY: "BUY";
|
|
79
|
+
readonly SELL: "SELL";
|
|
80
|
+
readonly BALANCE: "BALANCE";
|
|
81
|
+
readonly CREDIT: "CREDIT";
|
|
82
|
+
readonly CHARGE: "CHARGE";
|
|
83
|
+
readonly CORRECTION: "CORRECTION";
|
|
84
|
+
readonly BONUS: "BONUS";
|
|
85
|
+
readonly COMMISSION: "COMMISSION";
|
|
86
|
+
readonly COMMISSION_DAILY: "COMMISSION_DAILY";
|
|
87
|
+
readonly COMMISSION_MONTHLY: "COMMISSION_MONTHLY";
|
|
88
|
+
readonly AGENT_DAILY: "AGENT_DAILY";
|
|
89
|
+
readonly AGENT_MONTHLY: "AGENT_MONTHLY";
|
|
90
|
+
readonly INTERESTRATE: "INTERESTRATE";
|
|
91
|
+
readonly BUY_CANCELED: "BUY_CANCELED";
|
|
92
|
+
readonly SELL_CANCELED: "SELL_CANCELED";
|
|
93
|
+
readonly DIVIDEND: "DIVIDEND";
|
|
94
|
+
readonly DIVIDEND_FRANKED: "DIVIDEND_FRANKED";
|
|
95
|
+
readonly TAX: "TAX";
|
|
96
|
+
readonly AGENT: "AGENT";
|
|
97
|
+
readonly SO_COMPENSATION: "SO_COMPENSATION";
|
|
98
|
+
readonly SO_COMPENSATION_CREDIT: "SO_COMPENSATION_CREDIT";
|
|
99
|
+
};
|
|
100
|
+
export type HistoryDealAction = (typeof HISTORY_DEAL_ACTION)[keyof typeof HISTORY_DEAL_ACTION];
|
|
101
|
+
/** Tab identifier — discriminator for endpoints, mocks, and exports. */
|
|
102
|
+
export declare const HISTORY_TAB: {
|
|
103
|
+
readonly DEALS: "deals";
|
|
104
|
+
readonly POSITIONS: "positions";
|
|
105
|
+
readonly ORDERS: "orders";
|
|
106
|
+
};
|
|
107
|
+
export type HistoryTab = (typeof HISTORY_TAB)[keyof typeof HISTORY_TAB];
|
|
108
|
+
//# sourceMappingURL=history.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/history.constant.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;CAUnB,CAAC;AAEX,2CAA2C;AAC3C,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AACxE,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,gCAAgC;AAChC,eAAO,MAAM,sBAAsB;;;CAGzB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAElG,+CAA+C;AAC/C,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;CAsBtB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAE/F,wEAAwE;AACxE,eAAO,MAAM,WAAW;;;;CAId,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP-layer constants shared by the core `createApi` factory.
|
|
3
|
+
*/
|
|
4
|
+
/** Canonical request/response header names used across the SDK. */
|
|
5
|
+
export declare const HTTP_HEADER: {
|
|
6
|
+
readonly AUTHORIZATION: "Authorization";
|
|
7
|
+
readonly DEVICE_ID: "DeviceID";
|
|
8
|
+
readonly DEVICE_IP: "DeviceIP";
|
|
9
|
+
readonly CLIENT_ID: "X-Client-Id";
|
|
10
|
+
readonly USER_AGENT: "user-agent";
|
|
11
|
+
readonly REQUEST_ID: "x-request-id";
|
|
12
|
+
/**
|
|
13
|
+
* Backend response-casing selector. Default backend casing is camelCase
|
|
14
|
+
* (omit the header); send `snake` to receive snake_case bodies.
|
|
15
|
+
*/
|
|
16
|
+
readonly RESPONSE_CASING: "x-response-casing";
|
|
17
|
+
/**
|
|
18
|
+
* Backend request-casing selector. Default is camelCase (omit the header);
|
|
19
|
+
* send `snake` to declare a snake_case request body.
|
|
20
|
+
*/
|
|
21
|
+
readonly REQUEST_CASING: "x-request-casing";
|
|
22
|
+
};
|
|
23
|
+
/** Supported response-casing values. camelCase is the backend default. */
|
|
24
|
+
export declare const RESPONSE_CASING_VALUE: {
|
|
25
|
+
readonly CAMEL: "camel";
|
|
26
|
+
readonly SNAKE: "snake";
|
|
27
|
+
};
|
|
28
|
+
export type ResponseCasing = (typeof RESPONSE_CASING_VALUE)[keyof typeof RESPONSE_CASING_VALUE];
|
|
29
|
+
export type RequestCasing = ResponseCasing;
|
|
30
|
+
/**
|
|
31
|
+
* Serialization format discriminator. Accepted by content / rules /
|
|
32
|
+
* lenses list endpoints via `?format=json|yaml`.
|
|
33
|
+
*/
|
|
34
|
+
export declare const SERIALIZATION_FORMAT: {
|
|
35
|
+
readonly JSON: "json";
|
|
36
|
+
readonly YAML: "yaml";
|
|
37
|
+
};
|
|
38
|
+
export type SerializationFormat = (typeof SERIALIZATION_FORMAT)[keyof typeof SERIALIZATION_FORMAT];
|
|
39
|
+
/** Default per-request tuning (overridable via `createCmsSDK` options). */
|
|
40
|
+
export declare const HTTP_DEFAULTS: {
|
|
41
|
+
readonly TIMEOUT_MS: 30000;
|
|
42
|
+
readonly RETRY: 0;
|
|
43
|
+
};
|
|
44
|
+
/** Status codes eligible for automatic retry (transient failures). */
|
|
45
|
+
export declare const HTTP_RETRY_STATUS_CODES: readonly [408, 425, 429, 500, 502, 503, 504];
|
|
46
|
+
//# sourceMappingURL=http.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/http.constant.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,mEAAmE;AACnE,eAAO,MAAM,WAAW;;;;;;;IAOtB;;;OAGG;;IAEH;;;OAGG;;CAEK,CAAC;AAEX,0EAA0E;AAC1E,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAChG,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnG,2EAA2E;AAC3E,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX,sEAAsE;AACtE,eAAO,MAAM,uBAAuB,8CAA+C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './http.constant';
|
|
2
|
+
export * from './auth.constant';
|
|
3
|
+
export * from './storage.constant';
|
|
4
|
+
export * from './content.constant';
|
|
5
|
+
export * from './content-types.constant';
|
|
6
|
+
export * from './notifications.constant';
|
|
7
|
+
export * from './executions.constant';
|
|
8
|
+
export * from './llm.constant';
|
|
9
|
+
export * from './mt5-action.constant';
|
|
10
|
+
export * from './mt5.constant';
|
|
11
|
+
export * from './rules.constant';
|
|
12
|
+
export * from './settings.constant';
|
|
13
|
+
export * from './history.constant';
|
|
14
|
+
export * from './kalshi.constant';
|
|
15
|
+
export * from './sort.constant';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kalshi prediction endpoints (BE pack `kalshi_api_spec_for_fe.md`).
|
|
3
|
+
* Trending + symbol_ticks + last_ticks. Client history stays on `GET /api/v1/history/*`.
|
|
4
|
+
*/
|
|
5
|
+
export declare const KALSHI_ENDPOINT: {
|
|
6
|
+
readonly TRENDING: "/api/v1/kalshi/trending";
|
|
7
|
+
readonly SYMBOL_TICKS: "/api/v1/kalshi/symbol_ticks";
|
|
8
|
+
readonly LAST_TICKS: "/api/v1/kalshi/last_ticks";
|
|
9
|
+
};
|
|
10
|
+
/** Defaults for `GET /api/v1/kalshi/symbol_ticks` (pack §2.8 / §2.10). */
|
|
11
|
+
export declare const KALSHI_SYMBOL_TICKS_DEFAULTS: {
|
|
12
|
+
readonly LIMIT: 5000;
|
|
13
|
+
readonly LIMIT_MIN: 1;
|
|
14
|
+
readonly LIMIT_MAX: 5000;
|
|
15
|
+
};
|
|
16
|
+
/** Defaults for `GET /api/v1/kalshi/last_ticks` (pack §2.9). */
|
|
17
|
+
export declare const KALSHI_LAST_TICKS_DEFAULTS: {
|
|
18
|
+
readonly MAX_TICKERS: 100;
|
|
19
|
+
};
|
|
20
|
+
/** Defaults for `GET /api/v1/kalshi/trending` (pack §2.1). Hard-capped at 8. */
|
|
21
|
+
export declare const KALSHI_TRENDING_DEFAULTS: {
|
|
22
|
+
readonly LIMIT: 8;
|
|
23
|
+
readonly LIMIT_MAX: 8;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Aggregation intervals for `GET /api/v1/kalshi/symbol_ticks` (pack §2.8).
|
|
27
|
+
* Values are minutes: `1` (1min), `60` (1hour), `1440` (1day).
|
|
28
|
+
*/
|
|
29
|
+
export declare const KALSHI_CHART_INTERVAL: {
|
|
30
|
+
readonly M1: 1;
|
|
31
|
+
readonly H1: 60;
|
|
32
|
+
readonly D1: 1440;
|
|
33
|
+
};
|
|
34
|
+
export type KalshiChartInterval = (typeof KALSHI_CHART_INTERVAL)[keyof typeof KALSHI_CHART_INTERVAL];
|
|
35
|
+
//# sourceMappingURL=kalshi.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kalshi.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/kalshi.constant.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,0EAA0E;AAC1E,eAAO,MAAM,4BAA4B;;;;CAI/B,CAAC;AAEX,gEAAgE;AAChE,eAAO,MAAM,0BAA0B;;CAE7B,CAAC;AAEX,gFAAgF;AAChF,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LLM prompt-template endpoints (`eaera_cms/llm/routes.py`). Prompt templates
|
|
3
|
+
* back the dashboard "Skill" page (FEAT-002) and are referenced from an
|
|
4
|
+
* `llm_agent` rule via `trigger.sourceConfig.promptName`.
|
|
5
|
+
*
|
|
6
|
+
* NOTE: the generic content endpoint is **not** used for prompts — the CMS
|
|
7
|
+
* retired that path (LT-13). Use these `/llm/prompts` routes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LLM_ENDPOINT: {
|
|
10
|
+
/** GET/POST /api/v1/llm/prompts — list / create prompt templates. */
|
|
11
|
+
readonly collection: "/api/v1/llm/prompts";
|
|
12
|
+
/** GET/PUT/DELETE /api/v1/llm/prompts/{name}. */
|
|
13
|
+
readonly detail: (name: string) => string;
|
|
14
|
+
/** GET/POST /api/v1/llm/providers — list / register providers. */
|
|
15
|
+
readonly providers: "/api/v1/llm/providers";
|
|
16
|
+
/**
|
|
17
|
+
* GET/PUT/DELETE /api/v1/llm/providers/{name}/models — supported models +
|
|
18
|
+
* health (GET); provider update (PUT) / unregister (DELETE) share the same
|
|
19
|
+
* path on the backend.
|
|
20
|
+
*/
|
|
21
|
+
readonly providerModels: (name: string) => string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Backend-supported LLM provider types (`eaera_cms/llm/`). Mirrors the
|
|
25
|
+
* SDK `LlmProviderType` type in `cms-sdk/.../llm/llm.type.ts` — use the
|
|
26
|
+
* constant when you need the bare string in mock data, dropdown options,
|
|
27
|
+
* or guards.
|
|
28
|
+
*/
|
|
29
|
+
export declare const LLM_PROVIDER_TYPE: {
|
|
30
|
+
readonly OPENAI: "openai";
|
|
31
|
+
readonly ANTHROPIC: "anthropic";
|
|
32
|
+
readonly GOOGLE: "google";
|
|
33
|
+
readonly OLLAMA: "ollama";
|
|
34
|
+
readonly AZURE: "azure";
|
|
35
|
+
};
|
|
36
|
+
export type LlmProviderType = (typeof LLM_PROVIDER_TYPE)[keyof typeof LLM_PROVIDER_TYPE];
|
|
37
|
+
//# sourceMappingURL=llm.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/llm.constant.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;IACvB,qEAAqE;;IAErE,iDAAiD;4BAClC,MAAM,KAAG,MAAM;IAG9B,kEAAkE;;IAElE;;;;OAIG;oCACoB,MAAM,KAAG,MAAM;CAE9B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backend action-name values for the mt5 pack (`eaera_mt5/handlers/*`).
|
|
3
|
+
*
|
|
4
|
+
* Source of truth: `eaera-docs/cbs/eaera-cms/docs/eaera-cms-api-inventory.md`
|
|
5
|
+
* §7.6 ("26 actions total: 25 Mt5Account + 1 KalshiFuture"). See §7.1 for
|
|
6
|
+
* trading, §7.2 for financial, §7.3 for operational/admin, §7.4 for viewer,
|
|
7
|
+
* and the cross-ref taxonomy in
|
|
8
|
+
* `eaera-docs/cbs/eaera-cms/docs/eaera-cms-websocket-integration-guide.md`
|
|
9
|
+
* §12 (narrower scope-grouped view).
|
|
10
|
+
*
|
|
11
|
+
* These are the wire-level `actionName` strings the dashboard and SDK use
|
|
12
|
+
* when:
|
|
13
|
+
*
|
|
14
|
+
* - serializing a rule's `executionParams.actionName`,
|
|
15
|
+
* - dispatching `POST /api/v1/content/{uuid}/actions/{actionName}`,
|
|
16
|
+
* - resolving an `exec.operationName` back to a friendly label.
|
|
17
|
+
*
|
|
18
|
+
* The specialised values that ship in `ACTION_KINDS` (`cms-sdk/.../rules/
|
|
19
|
+
* conditions.ts`) are sourced from this constant — `MOVE → CHANGE_GROUP`,
|
|
20
|
+
* `LEVERAGE → CHANGE_LEVERAGE`, `TAG → TAG_ACCOUNT`, etc. Use this file
|
|
21
|
+
* whenever you need the bare backend string (no view-model wrapping).
|
|
22
|
+
*
|
|
23
|
+
* The frontend `kind` view-model enum lives in `cms-sdk/.../rules/
|
|
24
|
+
* conditions.ts` (`ACTION_KIND`); do NOT confuse `ACTION_KIND.TAG` (the
|
|
25
|
+
* UI kind = `'tag'`) with `MT5_ACTION_NAME.TAG_ACCOUNT` (the backend
|
|
26
|
+
* actionName = `'tag_account'`).
|
|
27
|
+
*
|
|
28
|
+
* Composition (BE §7.6, scope-grouped):
|
|
29
|
+
*
|
|
30
|
+
* | Scope | Count | Notes |
|
|
31
|
+
* |-------------------|-------|------------------------------------------------------|
|
|
32
|
+
* | mt5:trade | 13 | `place_order` (pending: limit/stop/stop_limit) + |
|
|
33
|
+
* | | | `place_market_order` (market only) + 11 others + |
|
|
34
|
+
* | | | `export_history` (local CH query) |
|
|
35
|
+
* | mt5:financial | 2 | |
|
|
36
|
+
* | mt5:admin | 8 | incl. `tag_account` & `provision_user` (local) |
|
|
37
|
+
* | mt5:viewer | 2 | both local (no-bridge) |
|
|
38
|
+
* | mt5:trade (local) | 1 | `export_history` — local CH query, scope mt5:trade |
|
|
39
|
+
* | KalshiFuture | 1 | `update_spread` |
|
|
40
|
+
* | TOTAL | 26 | 25 Mt5Account + 1 KalshiFuture |
|
|
41
|
+
*/
|
|
42
|
+
export declare const MT5_ACTION_NAME: {
|
|
43
|
+
/**
|
|
44
|
+
* `eaera_mt5.handlers.trading:place_order` — entry point for **pending**
|
|
45
|
+
* orders only (limit / stop / stop_limit). Accepts `type ∈ {limit, stop,
|
|
46
|
+
* stop_limit}` and required `price` / `stop_price` per type. Market orders
|
|
47
|
+
* are routed to {@link MT5_ACTION_NAME.PLACE_MARKET_ORDER} [BE §7.1.1].
|
|
48
|
+
*
|
|
49
|
+
* Success `output`: `{ order_id, ticket, type, side, symbol, volume, price,
|
|
50
|
+
* stop_price, client_order_id }`.
|
|
51
|
+
*/
|
|
52
|
+
readonly PLACE_ORDER: "place_order";
|
|
53
|
+
/**
|
|
54
|
+
* `eaera_mt5.handlers.trading:place_market_order` — canonical **market**
|
|
55
|
+
* order action. Params `{ symbol, side, volume, comment? }` only; does NOT
|
|
56
|
+
* accept `type` / `price` / `stop_price` / `duration` / `sl` / `tp` (market
|
|
57
|
+
* orders carry no SL/TP under the current contract) [BE §7.1.2].
|
|
58
|
+
*
|
|
59
|
+
* Success `output`: `{ request_id, position_id }`.
|
|
60
|
+
*/
|
|
61
|
+
readonly PLACE_MARKET_ORDER: "place_market_order";
|
|
62
|
+
/** `eaera_mt5.handlers.trading:cancel_order` — FEAT-007 [BE §7.1.3]. */
|
|
63
|
+
readonly CANCEL_ORDER: "cancel_order";
|
|
64
|
+
/** `eaera_mt5.handlers.trading:cancel_all_orders` [BE §7.1.4]. */
|
|
65
|
+
readonly CANCEL_ALL_ORDERS: "cancel_all_orders";
|
|
66
|
+
/** `eaera_mt5.handlers.trading:flatten_all_orders` — close everything [BE §7.1.5]. */
|
|
67
|
+
readonly FLATTEN_ALL_ORDERS: "flatten_all_orders";
|
|
68
|
+
/** `eaera_mt5.handlers.trading:modify_order` [BE §7.1.6]. */
|
|
69
|
+
readonly MODIFY_ORDER: "modify_order";
|
|
70
|
+
/** `eaera_mt5.handlers.trading:modify_position` — FEAT-006 SL/TP editor [BE §7.1.7]. */
|
|
71
|
+
readonly MODIFY_POSITION: "modify_position";
|
|
72
|
+
/** `eaera_mt5.handlers.trading:close_position` [BE §7.1.8]. */
|
|
73
|
+
readonly CLOSE_POSITION: "close_position";
|
|
74
|
+
/** `eaera_mt5.handlers.trading:close_all_positions` [BE §7.1.9]. */
|
|
75
|
+
readonly CLOSE_ALL_POSITIONS: "close_all_positions";
|
|
76
|
+
/** `eaera_mt5.handlers.trading:join_bid` — one-tap BUY LIMIT at bid [BE §7.1.10]. */
|
|
77
|
+
readonly JOIN_BID: "join_bid";
|
|
78
|
+
/** `eaera_mt5.handlers.trading:join_ask` — one-tap SELL LIMIT at ask [BE §7.1.11]. */
|
|
79
|
+
readonly JOIN_ASK: "join_ask";
|
|
80
|
+
/** `eaera_mt5.handlers.trading:reverse` — close + open opposite [BE §7.1.12]. */
|
|
81
|
+
readonly REVERSE: "reverse";
|
|
82
|
+
/** `eaera_mt5.handlers.local:export_history` — local CH query, scope mt5:trade (NO bridge) [BE §7.1.13]. */
|
|
83
|
+
readonly EXPORT_HISTORY: "export_history";
|
|
84
|
+
/** `eaera_mt5.handlers.financial:deposit` [BE §7.2.1]. */
|
|
85
|
+
readonly DEPOSIT: "deposit";
|
|
86
|
+
/** `eaera_mt5.handlers.financial:withdraw` [BE §7.2.2]. */
|
|
87
|
+
readonly WITHDRAW: "withdraw";
|
|
88
|
+
/** `eaera_mt5.handlers.operational:disable_trade` [BE §7.3]. */
|
|
89
|
+
readonly DISABLE_TRADE: "disable_trade";
|
|
90
|
+
/** `eaera_mt5.handlers.operational:enable_trade` [BE §7.3]. */
|
|
91
|
+
readonly ENABLE_TRADE: "enable_trade";
|
|
92
|
+
/** `eaera_mt5.handlers.operational:change_group` [BE §7.3]. */
|
|
93
|
+
readonly CHANGE_GROUP: "change_group";
|
|
94
|
+
/** `eaera_mt5.handlers.operational:change_leverage` [BE §7.3]. */
|
|
95
|
+
readonly CHANGE_LEVERAGE: "change_leverage";
|
|
96
|
+
/** `eaera_mt5.handlers.operational:close_account` [BE §7.3]. */
|
|
97
|
+
readonly CLOSE_ACCOUNT: "close_account";
|
|
98
|
+
/** `eaera_mt5.handlers.operational:resync_deals` [BE §7.3]. */
|
|
99
|
+
readonly RESYNC_DEALS: "resync_deals";
|
|
100
|
+
/** `eaera_mt5.handlers.local:tag_account` — local (NO bridge) [BE §7.3]. */
|
|
101
|
+
readonly TAG_ACCOUNT: "tag_account";
|
|
102
|
+
/** `eaera_mt5.handlers.local:provision_user` — local (NO bridge); drives `user_sync` ContentRule [BE §7.3]. */
|
|
103
|
+
readonly PROVISION_USER: "provision_user";
|
|
104
|
+
/** `eaera_mt5.handlers.local:generate_report` — local (NO bridge) [BE §7.4]. */
|
|
105
|
+
readonly GENERATE_REPORT: "generate_report";
|
|
106
|
+
/** `eaera_mt5.handlers.local:generate_ai_summary` — local (NO bridge) [BE §7.4]. */
|
|
107
|
+
readonly GENERATE_AI_SUMMARY: "generate_ai_summary";
|
|
108
|
+
/** `kalshi.handlers.future:update_spread` [BE §7]. */
|
|
109
|
+
readonly UPDATE_SPREAD: "update_spread";
|
|
110
|
+
};
|
|
111
|
+
/** Wire-level mt5 pack action-name union (snake_case BE strings). */
|
|
112
|
+
export type Mt5ActionName = (typeof MT5_ACTION_NAME)[keyof typeof MT5_ACTION_NAME];
|
|
113
|
+
/** Trading actions — `mt5:trade` scope. Bridge to the MT5 worker via Redis-Stream, except `EXPORT_HISTORY` (local CH query). */
|
|
114
|
+
export declare const MT5_TRADING_ACTIONS: readonly Mt5ActionName[];
|
|
115
|
+
/** Financial actions — `mt5:financial` scope. All bridge to the MT5 worker. */
|
|
116
|
+
export declare const MT5_FINANCIAL_ACTIONS: readonly Mt5ActionName[];
|
|
117
|
+
/** Operational / admin actions — `mt5:admin` scope. All bridge to the MT5 worker, except `TAG_ACCOUNT` and `PROVISION_USER` (local). */
|
|
118
|
+
export declare const MT5_OPERATIONAL_ACTIONS: readonly Mt5ActionName[];
|
|
119
|
+
/** Viewer actions — `mt5:viewer` scope. Both local (NO bridge). */
|
|
120
|
+
export declare const MT5_VIEWER_ACTIONS: readonly Mt5ActionName[];
|
|
121
|
+
/** Local (no-bridge) actions — direct PG/CH, no Redis-Stream dispatch. */
|
|
122
|
+
export declare const MT5_LOCAL_ACTIONS: readonly Mt5ActionName[];
|
|
123
|
+
/** Every Mt5Account action name (25 — the union of the 4 scope-grouped arrays; BE §7.6). */
|
|
124
|
+
export declare const MT5_ALL_ACTIONS: readonly Mt5ActionName[];
|
|
125
|
+
/** Narrower scope-grouped unions (handy for action-menu UIs). */
|
|
126
|
+
export type Mt5TradingActionName = (typeof MT5_TRADING_ACTIONS)[number];
|
|
127
|
+
export type Mt5FinancialActionName = (typeof MT5_FINANCIAL_ACTIONS)[number];
|
|
128
|
+
export type Mt5OperationalActionName = (typeof MT5_OPERATIONAL_ACTIONS)[number];
|
|
129
|
+
export type Mt5ViewerActionName = (typeof MT5_VIEWER_ACTIONS)[number];
|
|
130
|
+
export type Mt5LocalActionName = (typeof MT5_LOCAL_ACTIONS)[number];
|
|
131
|
+
//# sourceMappingURL=mt5-action.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mt5-action.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/mt5-action.constant.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,eAAe;IAE1B;;;;;;;;OAQG;;IAEH;;;;;;;OAOG;;IAEH,wEAAwE;;IAExE,kEAAkE;;IAElE,sFAAsF;;IAEtF,6DAA6D;;IAE7D,wFAAwF;;IAExF,+DAA+D;;IAE/D,oEAAoE;;IAEpE,qFAAqF;;IAErF,sFAAsF;;IAEtF,iFAAiF;;IAEjF,4GAA4G;;IAI5G,0DAA0D;;IAE1D,2DAA2D;;IAI3D,gEAAgE;;IAEhE,+DAA+D;;IAE/D,+DAA+D;;IAE/D,kEAAkE;;IAElE,gEAAgE;;IAEhE,+DAA+D;;IAE/D,4EAA4E;;IAE5E,+GAA+G;;IAI/G,gFAAgF;;IAEhF,oFAAoF;;IAIpF,sDAAsD;;CAE9C,CAAC;AAEX,qEAAqE;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEnF,gIAAgI;AAChI,eAAO,MAAM,mBAAmB,EAAE,SAAS,aAAa,EAcvD,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAE,SAAS,aAAa,EAGzD,CAAC;AAEF,wIAAwI;AACxI,eAAO,MAAM,uBAAuB,EAAE,SAAS,aAAa,EAS3D,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,EAAE,SAAS,aAAa,EAGtD,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,EAAE,SAAS,aAAa,EAMrD,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAKnD,CAAC;AAEF,iEAAiE;AACjE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AACxE,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|