@thinkingai/ae-cli 6.1.4 → 6.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/README.zh.md +3 -2
- package/dist/{auth-MEJ642P4.js → auth-ENM3FE6L.js} +3 -2
- package/dist/{auth-7H3HAAJ3.js → auth-UPGUOKTW.js} +13 -6
- package/dist/{capability-QW4AVJHI.js → capability-AJC5CBRT.js} +49 -17
- package/dist/{capability-SCRFGODD.js → capability-TQ5KU5Q6.js} +49 -17
- package/dist/chunk-24BAVOX3.js +51 -0
- package/dist/{chunk-MDJGDI6K.js → chunk-3KI3RRXX.js} +5 -5
- package/dist/{chunk-PKRD2IEM.js → chunk-3P3562ZX.js} +9 -7
- package/dist/{chunk-R77JT7XD.js → chunk-4Q5TNP4Q.js} +4 -4
- package/dist/{chunk-7OLGDQQ2.js → chunk-6CHYBI64.js} +2 -2
- package/dist/{chunk-6LEYLOV3.js → chunk-CPVTECJ3.js} +9 -7
- package/dist/{chunk-KCA6BA5D.js → chunk-DB4Q3ANU.js} +5 -3
- package/dist/{chunk-2NDGFQHW.js → chunk-E7UXXHO3.js} +11 -3
- package/dist/{chunk-I4A62X3N.js → chunk-HQ2A7ITL.js} +23 -14
- package/dist/chunk-IMMGMU54.js +674 -0
- package/dist/{chunk-AJTH7LT3.js → chunk-IR4ZLVPW.js} +4 -2
- package/dist/{chunk-TBHBYKXZ.js → chunk-ISY6HMHM.js} +2 -2
- package/dist/{chunk-KGJQCYVC.js → chunk-LCXU3AAT.js} +4 -2
- package/dist/chunk-LYVNONC4.js +86 -0
- package/dist/{chunk-DYOS6YY7.js → chunk-RGXCNC4N.js} +23 -14
- package/dist/{chunk-YCLVYFK7.js → chunk-V6FR6WTW.js} +45 -87
- package/dist/chunk-VTWMIC5L.js +27 -0
- package/dist/{cli-token-TVQRSE46.js → cli-token-4SBMXAUK.js} +6 -3
- package/dist/{client-2643Z5AG.js → client-PP5FETMW.js} +4 -3
- package/dist/community-report-client-KK2QBANO.js +145 -0
- package/dist/{config-7UZWDE74.js → config-RCCGHHYA.js} +6 -3
- package/dist/index.js +506 -221
- package/dist/{metadata-BFDL6RUK.js → metadata-3M5F2AED.js} +14 -13
- package/dist/{metadata-FCLDBXX2.js → metadata-W2MEOI4Z.js} +14 -13
- package/dist/{model-T3KZJWLW.js → model-OYQLXCQY.js} +3 -2
- package/dist/{raw-CN542NGT.js → raw-TPB7KSZO.js} +6 -4
- package/dist/{sync-ERNHDPB5.js → sync-EFJKFZK2.js} +6 -3
- package/dist/{te-agent-FCCWUDTJ.js → te-agent-K2OWMZXT.js} +3 -2
- package/dist/{te-analysis-PUVF5IF4.js → te-analysis-I73ZS4NK.js} +903 -33
- package/dist/{te-analysis-UJDOKPAN.js → te-analysis-Q7AZCDU4.js} +903 -33
- package/dist/{te-common-XLAGWNIV.js → te-common-ST3QPSXJ.js} +7 -6
- package/dist/{te-common-VUX3VOXZ.js → te-common-WSLIKKPC.js} +7 -6
- package/dist/te-community-WXGB6IOX.js +1659 -0
- package/dist/te-community-X2AHXGCA.js +1659 -0
- package/dist/{te-dataops-ZNJBQ6VT.js → te-dataops-MJV54MNY.js} +10 -8
- package/dist/{te-dataops-F36T656A.js → te-dataops-OA7I6HBG.js} +10 -8
- package/dist/{te-engage-QBCCME22.js → te-engage-2FSDUOIZ.js} +973 -1585
- package/dist/{te-engage-K4AEUPK5.js → te-engage-BMJ6UOUU.js} +973 -1585
- package/dist/te-experiment-4JC7WUKW.js +590 -0
- package/dist/te-experiment-KYRWAUZY.js +590 -0
- package/dist/{te-kb-AYCODNU6.js → te-kb-E7NSCBRB.js} +74 -12
- package/dist/{te-meta-ARDIW3YI.js → te-meta-Q4L6EE3Q.js} +7 -6
- package/dist/{te-meta-UUROEODR.js → te-meta-VHCN4Q62.js} +7 -6
- package/dist/{te-team-OKCOX7OE.js → te-team-PDKKW7Q5.js} +7 -6
- package/dist/tracking/i18n/resources/cli/en.json +4 -3
- package/dist/tracking/i18n/resources/cli/ja.json +4 -3
- package/dist/tracking/i18n/resources/cli/ko.json +4 -3
- package/dist/tracking/i18n/resources/cli/zh.json +4 -3
- package/package.json +7 -3
- package/skills/ae-agent/SKILL.md +2 -1
- package/skills/ae-analysis/SKILL.md +12 -1
- package/skills/ae-analysis/references/adhoc_export.md +2 -0
- package/skills/ae-analysis/references/adhoc_run.md +2 -0
- package/skills/ae-analysis/references/alert_create.md +25 -0
- package/skills/ae-analysis/references/alert_definition_schema_get.md +24 -0
- package/skills/ae-analysis/references/alert_delete.md +26 -0
- package/skills/ae-analysis/references/alert_detail_list.md +27 -0
- package/skills/ae-analysis/references/alert_get.md +25 -0
- package/skills/ae-analysis/references/alert_job_list.md +24 -0
- package/skills/ae-analysis/references/alert_list.md +27 -0
- package/skills/ae-analysis/references/alert_notice_config_list.md +24 -0
- package/skills/ae-analysis/references/alert_start.md +25 -0
- package/skills/ae-analysis/references/alert_stop.md +25 -0
- package/skills/ae-analysis/references/alert_update.md +26 -0
- package/skills/ae-analysis/references/bi_panel_create.md +3 -3
- package/skills/ae-analysis/references/check_delete.md +27 -0
- package/skills/ae-analysis/references/check_export.md +27 -0
- package/skills/ae-analysis/references/check_get.md +27 -0
- package/skills/ae-analysis/references/check_list.md +24 -0
- package/skills/ae-analysis/references/check_retry.md +27 -0
- package/skills/ae-analysis/references/check_run.md +25 -0
- package/skills/ae-analysis/references/command_index.md +61 -27
- package/skills/ae-analysis/references/dashboard_create.md +3 -3
- package/skills/ae-analysis/references/dashboard_daily_report_send.md +1 -0
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
- package/skills/ae-analysis/references/dashboard_report_data_export.md +3 -3
- package/skills/ae-analysis/references/dashboard_report_data_run.md +3 -3
- package/skills/ae-analysis/references/event_blacklist_add.md +25 -0
- package/skills/ae-analysis/references/event_blacklist_list.md +24 -0
- package/skills/ae-analysis/references/event_blacklist_update.md +26 -0
- package/skills/ae-analysis/references/ingest_error_list.md +27 -0
- package/skills/ae-analysis/references/ingest_summary.md +26 -0
- package/skills/ae-analysis/references/live_data_export.md +27 -0
- package/skills/ae-analysis/references/live_data_list.md +27 -0
- package/skills/ae-analysis/references/plan_change_log_export.md +27 -0
- package/skills/ae-analysis/references/plan_change_log_list.md +24 -0
- package/skills/ae-analysis/references/plan_delete_items.md +30 -0
- package/skills/ae-analysis/references/plan_export.md +26 -0
- package/skills/ae-analysis/references/plan_generate.md +27 -0
- package/skills/ae-analysis/references/plan_get.md +24 -0
- package/skills/ae-analysis/references/plan_import_excel.md +26 -0
- package/skills/ae-analysis/references/plan_save_items.md +27 -0
- package/skills/ae-analysis/references/plan_sync_from_meta.md +24 -0
- package/skills/ae-analysis/references/project_role_delete.md +4 -3
- package/skills/ae-analysis/references/project_role_get.md +4 -3
- package/skills/ae-analysis/references/project_role_user_list.md +4 -3
- package/skills/ae-analysis/references/query_create_result_cluster.md +2 -1
- package/skills/ae-analysis/references/report_data_export.md +3 -1
- package/skills/ae-analysis/references/report_data_run.md +12 -2
- package/skills/ae-analysis/references/sdk_sample_generate.md +24 -0
- package/skills/ae-analysis/references/user_cluster_create.md +2 -0
- package/skills/ae-analysis/references/user_cluster_create_id.md +2 -0
- package/skills/ae-analysis/references/user_cluster_update.md +2 -0
- package/skills/ae-analysis/references/user_cluster_update_id.md +2 -0
- package/skills/ae-analysis/references/user_tag_create.md +2 -0
- package/skills/ae-analysis/references/user_tag_create_id.md +2 -0
- package/skills/ae-analysis/references/user_tag_update.md +2 -0
- package/skills/ae-analysis/references/user_tag_update_id.md +2 -0
- package/skills/ae-analysis-global/SKILL.md +2 -0
- package/skills/ae-capability/SKILL.md +7 -5
- package/skills/ae-community/SKILL.md +72 -8
- package/skills/ae-community/references/community-chat-analysis.md +341 -0
- package/skills/ae-community/references/community-data-report.md +301 -0
- package/skills/ae-dataops/SKILL.md +2 -1
- package/skills/ae-engage/SKILL.md +129 -105
- package/skills/ae-engage/references/activity-activity-type.md +1 -1
- package/skills/ae-engage/references/activity-activity.md +1 -1
- package/skills/ae-engage/references/activity-approval.md +5 -7
- package/skills/ae-engage/references/activity-task.md +12 -18
- package/skills/ae-engage/references/activity-topic.md +39 -22
- package/skills/ae-engage/references/add-approver.md +4 -4
- package/skills/ae-engage/references/add-channel.md +10 -5
- package/skills/ae-engage/references/approval-approver-delete.md +1 -1
- package/skills/ae-engage/references/approver-list.md +4 -4
- package/skills/ae-engage/references/build-task-save-guide.md +13 -13
- package/skills/ae-engage/references/cancel-query-by-request-id.md +7 -6
- package/skills/ae-engage/references/channel-detail.md +14 -9
- package/skills/ae-engage/references/channel-list.md +15 -10
- package/skills/ae-engage/references/channel-mgmt.md +109 -0
- package/skills/ae-engage/references/channel-test-send.md +1 -1
- package/skills/ae-engage/references/channel-update-config.md +1 -1
- package/skills/ae-engage/references/channel_touch_limits_list.md +1 -1
- package/skills/ae-engage/references/client-param.md +34 -16
- package/skills/ae-engage/references/common-metric.md +85 -18
- package/skills/ae-engage/references/config-item-analysis-report.md +8 -27
- package/skills/ae-engage/references/config-item-strategy-comparison.md +7 -18
- package/skills/ae-engage/references/config-item-trigger-report.md +8 -35
- package/skills/ae-engage/references/delete-channel.md +5 -5
- package/skills/ae-engage/references/delete-flow.md +5 -5
- package/skills/ae-engage/references/flow-ab-split-node-report.md +11 -45
- package/skills/ae-engage/references/flow-detail.md +15 -10
- package/skills/ae-engage/references/flow-list.md +9 -4
- package/skills/ae-engage/references/flow-node-config-schema.md +9 -8
- package/skills/ae-engage/references/flow-node-detail-report.md +11 -46
- package/skills/ae-engage/references/flow-node-overview-report.md +11 -43
- package/skills/ae-engage/references/flow-process-report.md +12 -50
- package/skills/ae-engage/references/flow-update-remark.md +19 -0
- package/skills/ae-engage/references/manage-flow.md +19 -19
- package/skills/ae-engage/references/manage-task.md +5 -5
- package/skills/ae-engage/references/modify-flow-base-info.md +8 -8
- package/skills/ae-engage/references/preset-event.md +1 -1
- package/skills/ae-engage/references/push-language.md +1 -1
- package/skills/ae-engage/references/save-flow.md +54 -52
- package/skills/ae-engage/references/save-task.md +23 -17
- package/skills/ae-engage/references/scene-config-channel.md +90 -10
- package/skills/ae-engage/references/scene-config-group.md +1 -1
- package/skills/ae-engage/references/scene-config-item.md +27 -4
- package/skills/ae-engage/references/scene-config-metric.md +1 -1
- package/skills/ae-engage/references/scene-config-param.md +2 -2
- package/skills/ae-engage/references/scene-preset-metric.md +1 -1
- package/skills/ae-engage/references/scene-strategy.md +19 -3
- package/skills/ae-engage/references/scene-template.md +10 -4
- package/skills/ae-engage/references/task-data-detail.md +5 -67
- package/skills/ae-engage/references/task-data-overview.md +5 -35
- package/skills/ae-engage/references/task-detail.md +5 -5
- package/skills/ae-engage/references/task-experiment-report.md +5 -38
- package/skills/ae-engage/references/task-list.md +4 -4
- package/skills/ae-engage/references/task-metric-detail.md +5 -43
- package/skills/ae-engage/references/task-stats.md +5 -5
- package/skills/ae-engage/references/update-channel-status.md +6 -6
- package/skills/ae-engage/references/validate-flow-node-config.md +12 -11
- package/skills/ae-engage/references/whitelist-list.md +4 -4
- package/skills/ae-engage/references/whitelist.md +1 -1
- package/skills/ae-engage/references/workbench-workbench.md +1 -1
- package/skills/ae-experiment/SKILL.md +30 -20
- package/skills/ae-experiment/references/batch_delete_experiment.md +4 -4
- package/skills/ae-experiment/references/batch_delete_feature.md +3 -3
- package/skills/ae-experiment/references/batch_delete_traffic_layer.md +4 -4
- package/skills/ae-experiment/references/cancel_experiment_query_by_request_id.md +5 -4
- package/skills/ae-experiment/references/check_experiment_ready.md +7 -5
- package/skills/ae-experiment/references/check_experiment_traffic_layer_conflict.md +37 -0
- package/skills/ae-experiment/references/delete_metric.md +4 -4
- package/skills/ae-experiment/references/manage_experiment.md +8 -6
- package/skills/ae-experiment/references/manage_feature_status.md +3 -3
- package/skills/ae-experiment/references/query_bucket_list.md +5 -3
- package/skills/ae-experiment/references/query_experiment_detail.md +6 -4
- package/skills/ae-experiment/references/query_experiment_list.md +12 -4
- package/skills/ae-experiment/references/query_experiment_list_archived.md +15 -0
- package/skills/ae-experiment/references/query_experiment_metric_trend.md +6 -10
- package/skills/ae-experiment/references/query_experiment_operation_log.md +17 -0
- package/skills/ae-experiment/references/query_experiment_report_summary.md +5 -6
- package/skills/ae-experiment/references/query_experiment_sample_size_report.md +6 -10
- package/skills/ae-experiment/references/query_feature_detail.md +6 -4
- package/skills/ae-experiment/references/query_feature_list.md +5 -3
- package/skills/ae-experiment/references/query_feature_operation_log.md +19 -0
- package/skills/ae-experiment/references/query_feature_version_list.md +20 -0
- package/skills/ae-experiment/references/query_metric_detail.md +6 -4
- package/skills/ae-experiment/references/query_metric_list.md +5 -3
- package/skills/ae-experiment/references/query_traffic_layer_detail.md +6 -4
- package/skills/ae-experiment/references/query_traffic_layer_list.md +5 -3
- package/skills/ae-experiment/references/save_experiment.md +148 -9
- package/skills/ae-experiment/references/save_feature.md +3 -3
- package/skills/ae-experiment/references/save_metric.md +3 -3
- package/skills/ae-experiment/references/save_submit_experiment.md +6 -6
- package/skills/ae-experiment/references/save_traffic_layer.md +3 -3
- package/skills/ae-experiment/references/update_experiment_group.md +20 -0
- package/skills/ae-generate-tracking-code/SKILL.md +4 -4
- package/skills/ae-generate-tracking-plan/SKILL.md +132 -11
- package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +98 -33
- package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +16 -14
- package/skills/ae-kb/SKILL.md +11 -6
- package/skills/ae-metadata/SKILL.md +2 -1
- package/skills/ae-team/SKILL.md +2 -1
- package/dist/chunk-NOO24N7W.js +0 -11
- package/dist/chunk-TNW2CI4W.js +0 -129
- package/dist/te-community-PEZ2VEF7.js +0 -687
- package/dist/te-community-TSKJ652U.js +0 -687
- package/dist/te-experiment-JINSMHMW.js +0 -606
- package/dist/te-experiment-NWNQHJS5.js +0 -606
- package/skills/ae-engage/references/config-channel-detail.md +0 -31
- package/skills/ae-engage/references/config-channel-list.md +0 -26
- package/skills/ae-engage/references/config-item-detail.md +0 -29
- package/skills/ae-engage/references/config-item-list.md +0 -18
- package/skills/ae-engage/references/copy-config-template.md +0 -28
- package/skills/ae-engage/references/delete-config-channel.md +0 -23
- package/skills/ae-engage/references/delete-config-item.md +0 -24
- package/skills/ae-engage/references/engage-scene-config-item.md +0 -69
- package/skills/ae-engage/references/manage-strategy.md +0 -73
- package/skills/ae-engage/references/strategy-detail.md +0 -72
- package/skills/ae-engage/references/strategy-list.md +0 -20
- package/skills/ae-engage/references/update-config-channel-status.md +0 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCapabilityCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ISY6HMHM.js";
|
|
4
4
|
import {
|
|
5
5
|
registerCapabilityGatewayRoute,
|
|
6
6
|
resolveGatewayDomain
|
|
@@ -8,26 +8,30 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
CapabilityGatewayError,
|
|
10
10
|
buildCapabilityGatewayUrl,
|
|
11
|
+
dryRunCapability,
|
|
12
|
+
executeCapabilityWithEnvelope,
|
|
11
13
|
fetchCapabilityGateway,
|
|
12
14
|
requestCapabilityGateway,
|
|
13
15
|
requestCapabilityGatewayWithEnvelope,
|
|
14
|
-
uploadInputFile
|
|
15
|
-
|
|
16
|
+
uploadInputFile,
|
|
17
|
+
validateCapability
|
|
18
|
+
} from "./chunk-HQ2A7ITL.js";
|
|
16
19
|
import {
|
|
17
20
|
withOutputMetadata
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IMMGMU54.js";
|
|
19
22
|
import {
|
|
20
23
|
callMcpTool,
|
|
21
24
|
parseMcpResult,
|
|
22
25
|
resolveMcpUrl
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3P3562ZX.js";
|
|
24
27
|
import {
|
|
25
28
|
isGlobalQueryModeEnabled
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-LCXU3AAT.js";
|
|
30
|
+
import "./chunk-E7UXXHO3.js";
|
|
31
|
+
import "./chunk-IR4ZLVPW.js";
|
|
32
|
+
import "./chunk-V6FR6WTW.js";
|
|
33
|
+
import "./chunk-24BAVOX3.js";
|
|
34
|
+
import "./chunk-LYVNONC4.js";
|
|
31
35
|
|
|
32
36
|
// src/commands/te-analysis/shared.ts
|
|
33
37
|
function createMcpCommand(config) {
|
|
@@ -357,6 +361,7 @@ function dashboardReportDataInput(ctx) {
|
|
|
357
361
|
filters: optionalJson(ctx, "filters"),
|
|
358
362
|
start_time: optionalString2(ctx, "start-time"),
|
|
359
363
|
end_time: optionalString2(ctx, "end-time"),
|
|
364
|
+
zone_offset: optionalNumber2(ctx, "zone-offset"),
|
|
360
365
|
use_cache: optionalBoolean2(ctx, "use-cache"),
|
|
361
366
|
request_id: optionalString2(ctx, "request-id"),
|
|
362
367
|
timeout_seconds: optionalNumber2(ctx, "timeout-seconds"),
|
|
@@ -2038,6 +2043,7 @@ var commands12 = [
|
|
|
2038
2043
|
var report_default = commands12;
|
|
2039
2044
|
|
|
2040
2045
|
// src/commands/te-analysis/report-data/shared.ts
|
|
2046
|
+
var reportDataZoneOffsetDescription = "Query execution timezone. Omit it to match the report UI for the current user (user selection when available, otherwise project default). Use a fixed UTC offset from -12 through 14, or 99 for local-time mode with no conversion to one fixed UTC offset; 99 is not UTC+99. This is not persisted in the report definition.";
|
|
2041
2047
|
function reportDataInput(ctx) {
|
|
2042
2048
|
return compactInput({
|
|
2043
2049
|
...projectInput(ctx),
|
|
@@ -2079,7 +2085,7 @@ var reportDataRun = createAnalysisCapabilityCommand({
|
|
|
2079
2085
|
{ name: "start-time", type: "string", required: false, desc: "Non-SQL analysis-model date override start, yyyy-MM-dd. SQL dates must be saved parameters overridden through --sql-params." },
|
|
2080
2086
|
{ name: "end-time", type: "string", required: false, desc: "Non-SQL analysis-model date override end, yyyy-MM-dd. SQL dates must be saved parameters overridden through --sql-params." },
|
|
2081
2087
|
{ name: "time-granularity", type: "string", required: false, desc: "Non-SQL analysis-model time granularity override. SQL accepts only --sql-params." },
|
|
2082
|
-
{ name: "zone-offset", type: "number", required: false, desc:
|
|
2088
|
+
{ name: "zone-offset", type: "number", required: false, desc: reportDataZoneOffsetDescription },
|
|
2083
2089
|
{ name: "use-cache", type: "boolean", required: false, desc: "Whether to use cache. Default: true." },
|
|
2084
2090
|
syncLimitFlag,
|
|
2085
2091
|
syncTimeoutSecondsFlag
|
|
@@ -2105,7 +2111,7 @@ var reportDataExport = createAnalysisCapabilityCommand({
|
|
|
2105
2111
|
{ name: "start-time", type: "string", required: false, desc: "Non-SQL analysis-model date override start, yyyy-MM-dd. SQL dates use --sql-params." },
|
|
2106
2112
|
{ name: "end-time", type: "string", required: false, desc: "Non-SQL analysis-model date override end, yyyy-MM-dd. SQL dates use --sql-params." },
|
|
2107
2113
|
{ name: "time-granularity", type: "string", required: false, desc: "Non-SQL analysis-model time granularity override. SQL accepts only --sql-params." },
|
|
2108
|
-
{ name: "zone-offset", type: "number", required: false, desc:
|
|
2114
|
+
{ name: "zone-offset", type: "number", required: false, desc: reportDataZoneOffsetDescription },
|
|
2109
2115
|
{ name: "use-cache", type: "boolean", required: false, desc: "Whether to use cache. Default: true." },
|
|
2110
2116
|
artifactFormatFlag,
|
|
2111
2117
|
asyncTimeoutSecondsFlag
|
|
@@ -2234,10 +2240,10 @@ var dashboardCreate = createAnalysisCapabilityCommand({
|
|
|
2234
2240
|
resource: "dashboard",
|
|
2235
2241
|
command: "create",
|
|
2236
2242
|
capabilityId: "analysis.dashboard.create",
|
|
2237
|
-
description: "Create
|
|
2243
|
+
description: "Create an analysis board backed by saved reports. This is not a BI dashboard.",
|
|
2238
2244
|
flags: [
|
|
2239
2245
|
projectIdFlag,
|
|
2240
|
-
{ name: "dashboard-name", type: "string", required: true, desc: "
|
|
2246
|
+
{ name: "dashboard-name", type: "string", required: true, desc: "Analysis board name." },
|
|
2241
2247
|
{ name: "space-id", type: "number", required: false, desc: "Target project space ID. Omit for personal space." },
|
|
2242
2248
|
{ name: "folder-id", type: "number", required: false, desc: "Target folder ID." },
|
|
2243
2249
|
{ name: "initial-report-id", type: "number", required: false, desc: "Optional report ID to add when creating the dashboard." },
|
|
@@ -2507,6 +2513,7 @@ var dashboardReportDataRun = createAnalysisCapabilityCommand({
|
|
|
2507
2513
|
{ name: "filters", type: "json", required: false, desc: "Optional AI-facing filter {relation,items:[{field:{name,type?},operator,values?}]}. SQL reports ignore it and produce data.warnings; raw taFilters/junctionKind/filts are rejected." },
|
|
2508
2514
|
{ name: "start-time", type: "string", required: false, desc: "Optional start date/time. SQL reports ignore it and produce data.warnings." },
|
|
2509
2515
|
{ name: "end-time", type: "string", required: false, desc: "Optional end date/time. SQL reports ignore it and produce data.warnings." },
|
|
2516
|
+
{ name: "zone-offset", type: "number", required: false, desc: reportDataZoneOffsetDescription },
|
|
2510
2517
|
{ name: "use-cache", type: "boolean", required: false, desc: "Whether to use cache. Default: true." },
|
|
2511
2518
|
{ name: "request-id", type: "string", required: false, desc: "Optional cli_<32 lowercase hex> request ID. Generated when omitted." },
|
|
2512
2519
|
dashboardSyncTimeoutSecondsFlag,
|
|
@@ -2530,6 +2537,7 @@ var dashboardReportDataExport = createAnalysisCapabilityCommand({
|
|
|
2530
2537
|
{ name: "filters", type: "json", required: false, desc: "Optional AI-facing filter {relation,items:[{field:{name,type?},operator,values?}]}. SQL reports ignore it and the artifact includes warnings; raw taFilters/junctionKind/filts are rejected." },
|
|
2531
2538
|
{ name: "start-time", type: "string", required: false, desc: "Optional start date/time. SQL reports ignore it and the artifact includes warnings." },
|
|
2532
2539
|
{ name: "end-time", type: "string", required: false, desc: "Optional end date/time. SQL reports ignore it and the artifact includes warnings." },
|
|
2540
|
+
{ name: "zone-offset", type: "number", required: false, desc: reportDataZoneOffsetDescription },
|
|
2533
2541
|
{ name: "use-cache", type: "boolean", required: false, desc: "Whether to use cache. Default: true." },
|
|
2534
2542
|
{ name: "request-id", type: "string", required: false, desc: "Optional cli_<32 lowercase hex> request ID. Generated when omitted." },
|
|
2535
2543
|
asyncTimeoutSecondsFlag,
|
|
@@ -2611,8 +2619,23 @@ var queryCreateResultCluster = createAnalysisCapabilityCommand({
|
|
|
2611
2619
|
{ name: "query-context-id", type: "string", required: true, desc: "query_context_id returned by a synchronous analysis preview. Never use an export response." },
|
|
2612
2620
|
sourceFlag,
|
|
2613
2621
|
coordinateFlag,
|
|
2614
|
-
{
|
|
2615
|
-
|
|
2622
|
+
{
|
|
2623
|
+
name: "cluster-name",
|
|
2624
|
+
type: "string",
|
|
2625
|
+
required: true,
|
|
2626
|
+
minLength: 1,
|
|
2627
|
+
maxLength: 24,
|
|
2628
|
+
pattern: "^[a-z][a-z0-9_]*$",
|
|
2629
|
+
desc: "Unique result cluster name. Must start with a lowercase letter, contain only lowercase letters, digits, and underscores, and be at most 24 characters."
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
name: "display-name",
|
|
2633
|
+
type: "string",
|
|
2634
|
+
required: false,
|
|
2635
|
+
minLength: 1,
|
|
2636
|
+
maxLength: 80,
|
|
2637
|
+
desc: "Optional result cluster display name. Maximum: 80 characters."
|
|
2638
|
+
},
|
|
2616
2639
|
{ name: "zone-offset", type: "number", required: false, desc: "Optional timezone offset. UTC+8 is 8; UTC-5 is -5." },
|
|
2617
2640
|
requestIdFlag,
|
|
2618
2641
|
timeoutSecondsFlag
|
|
@@ -2764,7 +2787,7 @@ var zoneOffsetFlag2 = {
|
|
|
2764
2787
|
name: "zone-offset",
|
|
2765
2788
|
type: "number",
|
|
2766
2789
|
required: false,
|
|
2767
|
-
desc: "Optional timezone
|
|
2790
|
+
desc: "Optional timezone mode. Fixed UTC offsets are -12..14; 99 means stored local time without fixed UTC conversion (not UTC+99). Omit to use the project analysis default."
|
|
2768
2791
|
};
|
|
2769
2792
|
function adhocRunInput(ctx) {
|
|
2770
2793
|
return compactInput({
|
|
@@ -2921,7 +2944,12 @@ function dailyReportFlags(update) {
|
|
|
2921
2944
|
{ name: "enable-wx", type: "boolean", required: false, desc: `Whether to send by WeCom webhook.${falseDefault}` },
|
|
2922
2945
|
{ name: "wx-url", type: "json", required: false, desc: 'WeCom webhook URL array, e.g. ["https://..."].' },
|
|
2923
2946
|
{ name: "enable-feishu", type: "boolean", required: false, desc: `Whether to send by Feishu webhook.${falseDefault}` },
|
|
2924
|
-
{
|
|
2947
|
+
{
|
|
2948
|
+
name: "feishu-info",
|
|
2949
|
+
type: "json",
|
|
2950
|
+
required: false,
|
|
2951
|
+
desc: 'Required with --enable-feishu true. Feishu image upload and bot config, e.g. {"app_id":"cli_xxx","app_secret":"secret_xxx","webhook":["https://..."]}. app_secret is sensitive.'
|
|
2952
|
+
},
|
|
2925
2953
|
{ name: "enable-kim", type: "boolean", required: false, desc: `Whether to send by KIM/custom webhook.${falseDefault}` },
|
|
2926
2954
|
{ name: "kim-url", type: "json", required: false, desc: 'KIM/custom webhook URL array, e.g. ["https://..."].' },
|
|
2927
2955
|
{ name: "enable-slack", type: "boolean", required: false, desc: `Whether to send by Slack webhook.${falseDefault}` },
|
|
@@ -3048,10 +3076,10 @@ var biPanelCreate = createAnalysisCapabilityCommand({
|
|
|
3048
3076
|
resource: "bi-panel",
|
|
3049
3077
|
command: "create",
|
|
3050
3078
|
capabilityId: "analysis.bi_panel.create",
|
|
3051
|
-
description: "Create a BI
|
|
3079
|
+
description: "Create a BI dashboard with worksheets, charts, and pages.",
|
|
3052
3080
|
flags: [
|
|
3053
3081
|
projectIdFlag,
|
|
3054
|
-
{ name: "panel-name", type: "string", required: false, desc: "BI
|
|
3082
|
+
{ name: "panel-name", type: "string", required: false, desc: "BI dashboard name." },
|
|
3055
3083
|
{ name: "panel-uuid", type: "string", required: false, desc: "BI panel UUID." },
|
|
3056
3084
|
{ name: "space-id", type: "number", required: false, desc: "Target project space ID." },
|
|
3057
3085
|
{ name: "folder-id", type: "number", required: false, desc: "Target folder ID." },
|
|
@@ -3969,6 +3997,10 @@ var authenticatedOnlyFlag = {
|
|
|
3969
3997
|
required: false,
|
|
3970
3998
|
desc: "Return only resources whose metadata can be resolved under the current identity."
|
|
3971
3999
|
};
|
|
4000
|
+
var AUDIENCE_NAME_PATTERN = "^[a-zA-Z][a-zA-Z0-9_]*$";
|
|
4001
|
+
var AUDIENCE_NAME_MAX_LENGTH = 80;
|
|
4002
|
+
var AUDIENCE_DISPLAY_NAME_MAX_LENGTH = 80;
|
|
4003
|
+
var AUDIENCE_REMARK_MAX_LENGTH = 400;
|
|
3972
4004
|
var tagListFieldsFlag = {
|
|
3973
4005
|
...fieldsFlag,
|
|
3974
4006
|
desc: "Optional tag inventory projection. Use tag_name, display_name, users_num, and other tag fields. cluster_name is reserved for user clusters and is rejected here."
|
|
@@ -3987,22 +4019,38 @@ var clusterNameFlag = {
|
|
|
3987
4019
|
required: true,
|
|
3988
4020
|
desc: "Exact cluster_name. Discover real values with analysis user-cluster list first."
|
|
3989
4021
|
};
|
|
4022
|
+
var newClusterNameFlag = {
|
|
4023
|
+
...clusterNameFlag,
|
|
4024
|
+
minLength: 1,
|
|
4025
|
+
maxLength: AUDIENCE_NAME_MAX_LENGTH,
|
|
4026
|
+
pattern: AUDIENCE_NAME_PATTERN,
|
|
4027
|
+
desc: "New cluster_name. Must start with a letter, contain only letters, digits, and underscores, and be at most 80 characters."
|
|
4028
|
+
};
|
|
3990
4029
|
var tagNameFlag = {
|
|
3991
4030
|
name: "tag-name",
|
|
3992
4031
|
type: "string",
|
|
3993
4032
|
required: true,
|
|
3994
4033
|
desc: "Exact tag_name. Discover real values with analysis user-tag list first."
|
|
3995
4034
|
};
|
|
4035
|
+
var newTagNameFlag = {
|
|
4036
|
+
...tagNameFlag,
|
|
4037
|
+
minLength: 1,
|
|
4038
|
+
maxLength: AUDIENCE_NAME_MAX_LENGTH,
|
|
4039
|
+
pattern: AUDIENCE_NAME_PATTERN,
|
|
4040
|
+
desc: "New tag_name. Must start with a letter, contain only letters, digits, and underscores, and be at most 80 characters."
|
|
4041
|
+
};
|
|
3996
4042
|
var displayNameFlag = {
|
|
3997
4043
|
name: "display-name",
|
|
3998
4044
|
type: "string",
|
|
3999
4045
|
required: true,
|
|
4000
|
-
|
|
4046
|
+
minLength: 1,
|
|
4047
|
+
maxLength: AUDIENCE_DISPLAY_NAME_MAX_LENGTH,
|
|
4048
|
+
desc: "Human-readable display name. Maximum: 80 characters."
|
|
4001
4049
|
};
|
|
4002
4050
|
var optionalDisplayNameFlag = {
|
|
4003
4051
|
...displayNameFlag,
|
|
4004
4052
|
required: false,
|
|
4005
|
-
desc: "Optional new display name."
|
|
4053
|
+
desc: "Optional new display name. Maximum: 80 characters."
|
|
4006
4054
|
};
|
|
4007
4055
|
var clusterDefinitionRequestFlag = {
|
|
4008
4056
|
name: "definition-request",
|
|
@@ -4075,13 +4123,15 @@ var remarksFlag = {
|
|
|
4075
4123
|
name: "remarks",
|
|
4076
4124
|
type: "string",
|
|
4077
4125
|
required: false,
|
|
4078
|
-
|
|
4126
|
+
maxLength: AUDIENCE_REMARK_MAX_LENGTH,
|
|
4127
|
+
desc: "Optional remarks. Maximum: 400 characters."
|
|
4079
4128
|
};
|
|
4080
4129
|
var remarkFlag = {
|
|
4081
4130
|
name: "remark",
|
|
4082
4131
|
type: "string",
|
|
4083
4132
|
required: false,
|
|
4084
|
-
|
|
4133
|
+
maxLength: AUDIENCE_REMARK_MAX_LENGTH,
|
|
4134
|
+
desc: "Optional new remark. Maximum: 400 characters."
|
|
4085
4135
|
};
|
|
4086
4136
|
var propertyNamesFlag = {
|
|
4087
4137
|
name: "property-names",
|
|
@@ -4125,7 +4175,7 @@ var groupColFlag = {
|
|
|
4125
4175
|
required: true,
|
|
4126
4176
|
desc: "Exact statistic value or bucket from history-tag-data results to drill down into."
|
|
4127
4177
|
};
|
|
4128
|
-
function capability(resource, command, capabilityId, description, flags, risk,
|
|
4178
|
+
function capability(resource, command, capabilityId, description, flags, risk, buildInput2) {
|
|
4129
4179
|
return createAnalysisCapabilityCommand({
|
|
4130
4180
|
resource,
|
|
4131
4181
|
command,
|
|
@@ -4133,7 +4183,7 @@ function capability(resource, command, capabilityId, description, flags, risk, b
|
|
|
4133
4183
|
description,
|
|
4134
4184
|
flags,
|
|
4135
4185
|
risk,
|
|
4136
|
-
buildInput
|
|
4186
|
+
buildInput: buildInput2
|
|
4137
4187
|
});
|
|
4138
4188
|
}
|
|
4139
4189
|
function idImportCapability(command) {
|
|
@@ -4376,7 +4426,7 @@ var commands38 = [
|
|
|
4376
4426
|
], "read", (ctx) => memberInput(ctx, "cluster", false)),
|
|
4377
4427
|
capability("user-cluster", "create", "analysis.user_cluster.create", "Create a condition or SQL user cluster directly from an AI-facing definition request.", [
|
|
4378
4428
|
projectIdFlag,
|
|
4379
|
-
|
|
4429
|
+
newClusterNameFlag,
|
|
4380
4430
|
displayNameFlag,
|
|
4381
4431
|
clusterDefinitionRequestFlag,
|
|
4382
4432
|
authenticatedOnlyFlag,
|
|
@@ -4394,7 +4444,7 @@ var commands38 = [
|
|
|
4394
4444
|
], "write", (ctx) => clusterWriteInput(ctx, false)),
|
|
4395
4445
|
idImportCapability(capability("user-cluster", "create-id", "analysis.user_cluster.create_id", "Create a cluster by mapping imported values to an analysis entity.", [
|
|
4396
4446
|
projectIdFlag,
|
|
4397
|
-
{ ...
|
|
4447
|
+
{ ...newClusterNameFlag, required: false, desc: "Optional cluster_name; generated if omitted. When provided, it must satisfy the 1-80 character machine-name contract." },
|
|
4398
4448
|
displayNameFlag,
|
|
4399
4449
|
requiredEntityIdFlag,
|
|
4400
4450
|
inputFileIdFlag,
|
|
@@ -4444,7 +4494,7 @@ var commands38 = [
|
|
|
4444
4494
|
], "read", (ctx) => memberInput(ctx, "tag", false)),
|
|
4445
4495
|
capability("user-tag", "create", "analysis.user_tag.create", "Create a user tag directly from an AI-facing definition request.", [
|
|
4446
4496
|
projectIdFlag,
|
|
4447
|
-
|
|
4497
|
+
newTagNameFlag,
|
|
4448
4498
|
displayNameFlag,
|
|
4449
4499
|
tagDefinitionRequestFlag,
|
|
4450
4500
|
authenticatedOnlyFlag,
|
|
@@ -4466,7 +4516,7 @@ var commands38 = [
|
|
|
4466
4516
|
], "write", (ctx) => ({ project_id: ctx.num("project-id"), tag_name: ctx.str("tag-name") })),
|
|
4467
4517
|
idImportCapability(capability("user-tag", "create-id", "analysis.user_tag.create_id", "Create a tag by mapping imported values to an analysis entity.", [
|
|
4468
4518
|
projectIdFlag,
|
|
4469
|
-
{ ...
|
|
4519
|
+
{ ...newTagNameFlag, required: false, desc: "Optional tag_name; generated if omitted. When provided, it must satisfy the 1-80 character machine-name contract." },
|
|
4470
4520
|
displayNameFlag,
|
|
4471
4521
|
requiredEntityIdFlag,
|
|
4472
4522
|
inputFileIdFlag,
|
|
@@ -5688,8 +5738,822 @@ var commands62 = [
|
|
|
5688
5738
|
];
|
|
5689
5739
|
var project_default = commands62;
|
|
5690
5740
|
|
|
5741
|
+
// src/commands/te-analysis/tracking/shared.ts
|
|
5742
|
+
function createTrackingCapabilityCommand(config) {
|
|
5743
|
+
return createCapabilityCommand({
|
|
5744
|
+
...config,
|
|
5745
|
+
cliService: "tracking",
|
|
5746
|
+
gatewayDomain: "analysis"
|
|
5747
|
+
});
|
|
5748
|
+
}
|
|
5749
|
+
var eventsFlag = {
|
|
5750
|
+
name: "events",
|
|
5751
|
+
type: "json",
|
|
5752
|
+
required: false,
|
|
5753
|
+
desc: "Optional JSON array of tracking events."
|
|
5754
|
+
};
|
|
5755
|
+
var eventPropsFlag = {
|
|
5756
|
+
name: "event-props",
|
|
5757
|
+
type: "json",
|
|
5758
|
+
required: false,
|
|
5759
|
+
desc: "Optional JSON array of tracking event properties."
|
|
5760
|
+
};
|
|
5761
|
+
var userPropsFlag = {
|
|
5762
|
+
name: "user-props",
|
|
5763
|
+
type: "json",
|
|
5764
|
+
required: false,
|
|
5765
|
+
desc: "Optional JSON array of tracking user properties."
|
|
5766
|
+
};
|
|
5767
|
+
var commonEventPropsFlag = {
|
|
5768
|
+
name: "common-event-props",
|
|
5769
|
+
type: "json",
|
|
5770
|
+
required: false,
|
|
5771
|
+
desc: "Optional JSON array of common tracking event properties."
|
|
5772
|
+
};
|
|
5773
|
+
var eventPropNamesFlag = {
|
|
5774
|
+
name: "event-prop-names",
|
|
5775
|
+
type: "json",
|
|
5776
|
+
required: false,
|
|
5777
|
+
desc: "Optional JSON array of event property names to delete."
|
|
5778
|
+
};
|
|
5779
|
+
var userPropNamesFlag = {
|
|
5780
|
+
name: "user-prop-names",
|
|
5781
|
+
type: "json",
|
|
5782
|
+
required: false,
|
|
5783
|
+
desc: "Optional JSON array of user property names to delete."
|
|
5784
|
+
};
|
|
5785
|
+
var commonEventPropNamesFlag = {
|
|
5786
|
+
name: "common-event-prop-names",
|
|
5787
|
+
type: "json",
|
|
5788
|
+
required: false,
|
|
5789
|
+
desc: "Optional JSON array of common event property names to delete."
|
|
5790
|
+
};
|
|
5791
|
+
var languageFlag = {
|
|
5792
|
+
name: "language",
|
|
5793
|
+
type: "string",
|
|
5794
|
+
required: true,
|
|
5795
|
+
desc: "Generation language: zh-CN, en-US, ja-JP, or ko-KR."
|
|
5796
|
+
};
|
|
5797
|
+
var formDataFlag = {
|
|
5798
|
+
name: "form-data",
|
|
5799
|
+
type: "json",
|
|
5800
|
+
required: true,
|
|
5801
|
+
desc: "Structured business context JSON object for tracking plan generation."
|
|
5802
|
+
};
|
|
5803
|
+
var developmentCarrierFlag = {
|
|
5804
|
+
name: "development-carrier",
|
|
5805
|
+
type: "json",
|
|
5806
|
+
required: false,
|
|
5807
|
+
desc: "Optional JSON array of development platforms."
|
|
5808
|
+
};
|
|
5809
|
+
var predefinedEventFlag = {
|
|
5810
|
+
name: "predefined-event",
|
|
5811
|
+
type: "json",
|
|
5812
|
+
required: false,
|
|
5813
|
+
desc: "Optional JSON array of predefined event names."
|
|
5814
|
+
};
|
|
5815
|
+
var sdkTypesFlag = {
|
|
5816
|
+
name: "sdk-types",
|
|
5817
|
+
type: "json",
|
|
5818
|
+
required: true,
|
|
5819
|
+
desc: "JSON array of SDK types to generate."
|
|
5820
|
+
};
|
|
5821
|
+
var checkScopeFlag = {
|
|
5822
|
+
name: "check-scope",
|
|
5823
|
+
type: "json",
|
|
5824
|
+
required: true,
|
|
5825
|
+
desc: "Tracking check scope JSON object."
|
|
5826
|
+
};
|
|
5827
|
+
var resultScopeFlag = {
|
|
5828
|
+
name: "result-scope",
|
|
5829
|
+
type: "json",
|
|
5830
|
+
required: false,
|
|
5831
|
+
desc: "Optional tracking check result scope JSON object."
|
|
5832
|
+
};
|
|
5833
|
+
var langFlag = {
|
|
5834
|
+
name: "lang",
|
|
5835
|
+
type: "string",
|
|
5836
|
+
required: false,
|
|
5837
|
+
desc: "Excel language: zh, en, ja, ko, zh_CN, en_US, ja_JP, or ko_KR."
|
|
5838
|
+
};
|
|
5839
|
+
var logIdFlag = {
|
|
5840
|
+
name: "log-id",
|
|
5841
|
+
type: "number",
|
|
5842
|
+
required: true,
|
|
5843
|
+
desc: "Tracking plan change log ID."
|
|
5844
|
+
};
|
|
5845
|
+
var uuidFlag = {
|
|
5846
|
+
name: "uuid",
|
|
5847
|
+
type: "string",
|
|
5848
|
+
required: true,
|
|
5849
|
+
desc: "Tracking check task UUID."
|
|
5850
|
+
};
|
|
5851
|
+
var startTimeFlag = {
|
|
5852
|
+
name: "start-time",
|
|
5853
|
+
type: "string",
|
|
5854
|
+
required: true,
|
|
5855
|
+
desc: "Query start time."
|
|
5856
|
+
};
|
|
5857
|
+
var endTimeFlag = {
|
|
5858
|
+
name: "end-time",
|
|
5859
|
+
type: "string",
|
|
5860
|
+
required: true,
|
|
5861
|
+
desc: "Query end time."
|
|
5862
|
+
};
|
|
5863
|
+
var dataNameFlag = {
|
|
5864
|
+
name: "data-name",
|
|
5865
|
+
type: "string",
|
|
5866
|
+
required: true,
|
|
5867
|
+
desc: "Event or property name used to list ingest errors."
|
|
5868
|
+
};
|
|
5869
|
+
var dataTypeFlag = {
|
|
5870
|
+
name: "data-type",
|
|
5871
|
+
type: "string",
|
|
5872
|
+
required: false,
|
|
5873
|
+
desc: "Live data type: normal (default) or error."
|
|
5874
|
+
};
|
|
5875
|
+
var eventNamesFlag = {
|
|
5876
|
+
name: "event-names",
|
|
5877
|
+
type: "json",
|
|
5878
|
+
required: true,
|
|
5879
|
+
desc: "JSON array of event names."
|
|
5880
|
+
};
|
|
5881
|
+
var blacklistTypeFlag = {
|
|
5882
|
+
name: "type",
|
|
5883
|
+
type: "number",
|
|
5884
|
+
required: true,
|
|
5885
|
+
desc: "Blacklist event config type: 0 or 1."
|
|
5886
|
+
};
|
|
5887
|
+
var confirmFlag = {
|
|
5888
|
+
name: "confirm",
|
|
5889
|
+
type: "boolean",
|
|
5890
|
+
required: true,
|
|
5891
|
+
desc: "Must be true for this destructive tracking operation. Also use global --yes to skip local confirmation."
|
|
5892
|
+
};
|
|
5893
|
+
function projectInput2(ctx) {
|
|
5894
|
+
return { project_id: ctx.num("project-id") };
|
|
5895
|
+
}
|
|
5896
|
+
function projectLifecycleInput(ctx) {
|
|
5897
|
+
return compactInput({
|
|
5898
|
+
...projectInput2(ctx),
|
|
5899
|
+
request_id: optionalString2(ctx, "request-id"),
|
|
5900
|
+
timeout_seconds: optionalNumber2(ctx, "timeout-seconds")
|
|
5901
|
+
});
|
|
5902
|
+
}
|
|
5903
|
+
|
|
5904
|
+
// src/commands/te-analysis/tracking/plan/get.ts
|
|
5905
|
+
var trackingPlanGet = createTrackingCapabilityCommand({
|
|
5906
|
+
resource: "plan",
|
|
5907
|
+
command: "get",
|
|
5908
|
+
capabilityId: "tracking.plan.get",
|
|
5909
|
+
description: "Get the tracking plan for one project.",
|
|
5910
|
+
flags: [projectIdFlag],
|
|
5911
|
+
risk: "read",
|
|
5912
|
+
buildInput: projectInput2
|
|
5913
|
+
});
|
|
5914
|
+
|
|
5915
|
+
// src/commands/te-analysis/tracking/plan/save-items.ts
|
|
5916
|
+
var trackingPlanSaveItems = createTrackingCapabilityCommand({
|
|
5917
|
+
resource: "plan",
|
|
5918
|
+
command: "save-items",
|
|
5919
|
+
capabilityId: "tracking.plan.save_items",
|
|
5920
|
+
description: "Save tracking plan items.",
|
|
5921
|
+
flags: [projectIdFlag, eventsFlag, eventPropsFlag, userPropsFlag, commonEventPropsFlag],
|
|
5922
|
+
risk: "write",
|
|
5923
|
+
buildInput: (ctx) => compactInput({
|
|
5924
|
+
...projectInput2(ctx),
|
|
5925
|
+
events: optionalJson(ctx, "events"),
|
|
5926
|
+
event_props: optionalJson(ctx, "event-props"),
|
|
5927
|
+
user_props: optionalJson(ctx, "user-props"),
|
|
5928
|
+
common_event_props: optionalJson(ctx, "common-event-props")
|
|
5929
|
+
})
|
|
5930
|
+
});
|
|
5931
|
+
|
|
5932
|
+
// src/commands/te-analysis/tracking/plan/delete-items.ts
|
|
5933
|
+
var trackingPlanDeleteItems = createTrackingCapabilityCommand({
|
|
5934
|
+
resource: "plan",
|
|
5935
|
+
command: "delete-items",
|
|
5936
|
+
capabilityId: "tracking.plan.delete_items",
|
|
5937
|
+
description: "Delete tracking plan items.",
|
|
5938
|
+
flags: [projectIdFlag, eventsFlag, eventPropNamesFlag, userPropNamesFlag, commonEventPropNamesFlag, confirmFlag],
|
|
5939
|
+
risk: "high-risk-write",
|
|
5940
|
+
buildInput: (ctx) => compactInput({
|
|
5941
|
+
...projectInput2(ctx),
|
|
5942
|
+
events: optionalJson(ctx, "events"),
|
|
5943
|
+
event_prop_names: optionalJson(ctx, "event-prop-names"),
|
|
5944
|
+
user_prop_names: optionalJson(ctx, "user-prop-names"),
|
|
5945
|
+
common_event_prop_names: optionalJson(ctx, "common-event-prop-names"),
|
|
5946
|
+
yes: ctx.bool("confirm")
|
|
5947
|
+
})
|
|
5948
|
+
});
|
|
5949
|
+
|
|
5950
|
+
// src/commands/te-analysis/tracking/plan/generate.ts
|
|
5951
|
+
var trackingPlanGenerate = createTrackingCapabilityCommand({
|
|
5952
|
+
resource: "plan",
|
|
5953
|
+
command: "generate",
|
|
5954
|
+
capabilityId: "tracking.plan.generate",
|
|
5955
|
+
description: "Submit an AI tracking plan generation task.",
|
|
5956
|
+
flags: [projectIdFlag, languageFlag, formDataFlag, developmentCarrierFlag, predefinedEventFlag],
|
|
5957
|
+
risk: "write",
|
|
5958
|
+
buildInput: (ctx) => compactInput({
|
|
5959
|
+
...projectInput2(ctx),
|
|
5960
|
+
language: ctx.str("language"),
|
|
5961
|
+
form_data: ctx.json("form-data"),
|
|
5962
|
+
development_carrier: optionalJson(ctx, "development-carrier"),
|
|
5963
|
+
predefined_event: optionalJson(ctx, "predefined-event")
|
|
5964
|
+
})
|
|
5965
|
+
});
|
|
5966
|
+
|
|
5967
|
+
// src/commands/te-analysis/tracking/plan/export.ts
|
|
5968
|
+
var trackingPlanExport = createTrackingCapabilityCommand({
|
|
5969
|
+
resource: "plan",
|
|
5970
|
+
command: "export",
|
|
5971
|
+
capabilityId: "tracking.plan.export",
|
|
5972
|
+
description: "Export the tracking plan as an artifact.",
|
|
5973
|
+
flags: [projectIdFlag, requestIdFlag, asyncTimeoutSecondsFlag],
|
|
5974
|
+
risk: "read",
|
|
5975
|
+
buildInput: projectLifecycleInput
|
|
5976
|
+
});
|
|
5977
|
+
|
|
5978
|
+
// src/commands/te-analysis/tracking/plan/import-excel.ts
|
|
5979
|
+
import { existsSync as existsSync2 } from "fs";
|
|
5980
|
+
var CAPABILITY_ID = "tracking.plan.import_excel";
|
|
5981
|
+
var INPUT_FILE_PURPOSE = "track.program.xlsx";
|
|
5982
|
+
var trackingPlanImportExcel = {
|
|
5983
|
+
service: "tracking",
|
|
5984
|
+
resource: "plan",
|
|
5985
|
+
command: "import-excel",
|
|
5986
|
+
capabilityId: CAPABILITY_ID,
|
|
5987
|
+
description: "Import a tracking plan XLSX. Pass --input-file for automatic upload with purpose track.program.xlsx, or --input-file-id from `analysis input-file upload`. List bundled XLSX templates with `tracking plan list-templates --json`.",
|
|
5988
|
+
flags: [
|
|
5989
|
+
projectIdFlag,
|
|
5990
|
+
{
|
|
5991
|
+
name: "input-file",
|
|
5992
|
+
type: "string",
|
|
5993
|
+
required: false,
|
|
5994
|
+
desc: "Local tracking-plan XLSX path. The CLI uploads it with purpose track.program.xlsx before import."
|
|
5995
|
+
},
|
|
5996
|
+
{
|
|
5997
|
+
name: "input-file-id",
|
|
5998
|
+
type: "string",
|
|
5999
|
+
required: false,
|
|
6000
|
+
desc: "Existing input_file_id returned by `analysis input-file upload --purpose track.program.xlsx`."
|
|
6001
|
+
},
|
|
6002
|
+
langFlag
|
|
6003
|
+
],
|
|
6004
|
+
risk: "write",
|
|
6005
|
+
validate: validateSource,
|
|
6006
|
+
validateInput: async (ctx) => {
|
|
6007
|
+
const inputFile = optionalString2(ctx, "input-file");
|
|
6008
|
+
if (inputFile) {
|
|
6009
|
+
return {
|
|
6010
|
+
valid: true,
|
|
6011
|
+
capability_id: CAPABILITY_ID,
|
|
6012
|
+
normalized_input: buildInput(ctx, "<input_file_id returned by upload>"),
|
|
6013
|
+
upload: { purpose: INPUT_FILE_PURPOSE, file: inputFile }
|
|
6014
|
+
};
|
|
6015
|
+
}
|
|
6016
|
+
return validateCapability(
|
|
6017
|
+
ctx.host(),
|
|
6018
|
+
resolveGatewayDomain("analysis"),
|
|
6019
|
+
CAPABILITY_ID,
|
|
6020
|
+
buildInput(ctx, ctx.str("input-file-id"))
|
|
6021
|
+
);
|
|
6022
|
+
},
|
|
6023
|
+
dryRun: async (ctx) => {
|
|
6024
|
+
const inputFile = optionalString2(ctx, "input-file");
|
|
6025
|
+
if (inputFile) {
|
|
6026
|
+
return {
|
|
6027
|
+
steps: [
|
|
6028
|
+
{
|
|
6029
|
+
method: "POST",
|
|
6030
|
+
url: buildCapabilityGatewayUrl(ctx.host(), resolveGatewayDomain("analysis"), "input-files"),
|
|
6031
|
+
body: { multipart: { project_id: ctx.num("project-id"), purpose: INPUT_FILE_PURPOSE, file: inputFile } }
|
|
6032
|
+
},
|
|
6033
|
+
{
|
|
6034
|
+
capability_id: CAPABILITY_ID,
|
|
6035
|
+
input: buildInput(ctx, "<input_file_id returned by upload>")
|
|
6036
|
+
}
|
|
6037
|
+
]
|
|
6038
|
+
};
|
|
6039
|
+
}
|
|
6040
|
+
return dryRunCapability(
|
|
6041
|
+
ctx.host(),
|
|
6042
|
+
resolveGatewayDomain("analysis"),
|
|
6043
|
+
CAPABILITY_ID,
|
|
6044
|
+
buildInput(ctx, ctx.str("input-file-id"))
|
|
6045
|
+
);
|
|
6046
|
+
},
|
|
6047
|
+
execute: async (ctx) => {
|
|
6048
|
+
const inputFile = optionalString2(ctx, "input-file");
|
|
6049
|
+
let inputFileId = optionalString2(ctx, "input-file-id");
|
|
6050
|
+
if (inputFile) {
|
|
6051
|
+
const upload = await uploadInputFile(
|
|
6052
|
+
ctx.host(),
|
|
6053
|
+
resolveGatewayDomain("analysis"),
|
|
6054
|
+
ctx.num("project-id"),
|
|
6055
|
+
INPUT_FILE_PURPOSE,
|
|
6056
|
+
inputFile
|
|
6057
|
+
);
|
|
6058
|
+
inputFileId = upload?.input_file_id ?? upload?.inputFileId;
|
|
6059
|
+
if (!inputFileId) {
|
|
6060
|
+
throw new Error("Input-file upload did not return input_file_id");
|
|
6061
|
+
}
|
|
6062
|
+
}
|
|
6063
|
+
const result = await executeCapabilityWithEnvelope(
|
|
6064
|
+
ctx.host(),
|
|
6065
|
+
resolveGatewayDomain("analysis"),
|
|
6066
|
+
CAPABILITY_ID,
|
|
6067
|
+
buildInput(ctx, inputFileId)
|
|
6068
|
+
);
|
|
6069
|
+
return withOutputMetadata(result.data, result.meta);
|
|
6070
|
+
}
|
|
6071
|
+
};
|
|
6072
|
+
function validateSource(ctx) {
|
|
6073
|
+
const inputFile = optionalString2(ctx, "input-file");
|
|
6074
|
+
const inputFileId = optionalString2(ctx, "input-file-id");
|
|
6075
|
+
if (Boolean(inputFile) === Boolean(inputFileId)) {
|
|
6076
|
+
throw new Error("Pass exactly one of --input-file or --input-file-id");
|
|
6077
|
+
}
|
|
6078
|
+
if (inputFile && (!existsSync2(inputFile) || !inputFile.toLowerCase().endsWith(".xlsx"))) {
|
|
6079
|
+
throw new Error("--input-file must reference a readable .xlsx file");
|
|
6080
|
+
}
|
|
6081
|
+
}
|
|
6082
|
+
function buildInput(ctx, inputFileId) {
|
|
6083
|
+
return compactInput({
|
|
6084
|
+
...projectInput2(ctx),
|
|
6085
|
+
input_file_id: inputFileId,
|
|
6086
|
+
lang: optionalString2(ctx, "lang")
|
|
6087
|
+
});
|
|
6088
|
+
}
|
|
6089
|
+
|
|
6090
|
+
// src/commands/te-analysis/tracking/plan/sync-from-meta.ts
|
|
6091
|
+
var trackingPlanSyncFromMeta = createTrackingCapabilityCommand({
|
|
6092
|
+
resource: "plan",
|
|
6093
|
+
command: "sync-from-meta",
|
|
6094
|
+
capabilityId: "tracking.plan.sync_from_meta",
|
|
6095
|
+
description: "Synchronize tracking plan from project metadata.",
|
|
6096
|
+
flags: [projectIdFlag],
|
|
6097
|
+
risk: "write",
|
|
6098
|
+
buildInput: projectInput2
|
|
6099
|
+
});
|
|
6100
|
+
|
|
6101
|
+
// src/commands/te-analysis/tracking/plan/index.ts
|
|
6102
|
+
var commands63 = [
|
|
6103
|
+
trackingPlanGet,
|
|
6104
|
+
trackingPlanSaveItems,
|
|
6105
|
+
trackingPlanDeleteItems,
|
|
6106
|
+
trackingPlanGenerate,
|
|
6107
|
+
trackingPlanExport,
|
|
6108
|
+
trackingPlanImportExcel,
|
|
6109
|
+
trackingPlanSyncFromMeta
|
|
6110
|
+
];
|
|
6111
|
+
var plan_default = commands63;
|
|
6112
|
+
|
|
6113
|
+
// src/commands/te-analysis/tracking/sdk-sample/generate.ts
|
|
6114
|
+
var trackingSdkSampleGenerate = createTrackingCapabilityCommand({
|
|
6115
|
+
resource: "sdk-sample",
|
|
6116
|
+
command: "generate",
|
|
6117
|
+
capabilityId: "tracking.sdk_sample.generate",
|
|
6118
|
+
description: "Submit an AI SDK sample generation task.",
|
|
6119
|
+
flags: [projectIdFlag, sdkTypesFlag],
|
|
6120
|
+
risk: "write",
|
|
6121
|
+
buildInput: (ctx) => ({ ...projectInput2(ctx), sdk_types: ctx.json("sdk-types") })
|
|
6122
|
+
});
|
|
6123
|
+
|
|
6124
|
+
// src/commands/te-analysis/tracking/sdk-sample/index.ts
|
|
6125
|
+
var commands64 = [
|
|
6126
|
+
trackingSdkSampleGenerate
|
|
6127
|
+
];
|
|
6128
|
+
var sdk_sample_default = commands64;
|
|
6129
|
+
|
|
6130
|
+
// src/commands/te-analysis/tracking/plan-change-log/list.ts
|
|
6131
|
+
var trackingPlanChangeLogList = createTrackingCapabilityCommand({
|
|
6132
|
+
resource: "plan-change-log",
|
|
6133
|
+
command: "list",
|
|
6134
|
+
capabilityId: "tracking.plan_change_log.list",
|
|
6135
|
+
description: "List tracking plan change logs.",
|
|
6136
|
+
flags: [projectIdFlag],
|
|
6137
|
+
risk: "read",
|
|
6138
|
+
buildInput: projectInput2
|
|
6139
|
+
});
|
|
6140
|
+
|
|
6141
|
+
// src/commands/te-analysis/tracking/plan-change-log/export.ts
|
|
6142
|
+
var trackingPlanChangeLogExport = createTrackingCapabilityCommand({
|
|
6143
|
+
resource: "plan-change-log",
|
|
6144
|
+
command: "export",
|
|
6145
|
+
capabilityId: "tracking.plan_change_log.export",
|
|
6146
|
+
description: "Export one tracking plan change log.",
|
|
6147
|
+
flags: [projectIdFlag, logIdFlag, requestIdFlag, asyncTimeoutSecondsFlag],
|
|
6148
|
+
risk: "read",
|
|
6149
|
+
buildInput: (ctx) => compactInput({ ...projectInput2(ctx), log_id: ctx.num("log-id"), request_id: optionalString2(ctx, "request-id"), timeout_seconds: optionalNumber2(ctx, "timeout-seconds") })
|
|
6150
|
+
});
|
|
6151
|
+
|
|
6152
|
+
// src/commands/te-analysis/tracking/plan-change-log/index.ts
|
|
6153
|
+
var commands65 = [
|
|
6154
|
+
trackingPlanChangeLogList,
|
|
6155
|
+
trackingPlanChangeLogExport
|
|
6156
|
+
];
|
|
6157
|
+
var plan_change_log_default = commands65;
|
|
6158
|
+
|
|
6159
|
+
// src/commands/te-analysis/tracking/check/run.ts
|
|
6160
|
+
var trackingCheckRun = createTrackingCapabilityCommand({
|
|
6161
|
+
resource: "check",
|
|
6162
|
+
command: "run",
|
|
6163
|
+
capabilityId: "tracking.check.run",
|
|
6164
|
+
description: "Run tracking plan validation.",
|
|
6165
|
+
flags: [projectIdFlag, checkScopeFlag, resultScopeFlag],
|
|
6166
|
+
risk: "write",
|
|
6167
|
+
buildInput: (ctx) => compactInput({
|
|
6168
|
+
...projectInput2(ctx),
|
|
6169
|
+
check_scope: ctx.json("check-scope"),
|
|
6170
|
+
result_scope: optionalJson(ctx, "result-scope")
|
|
6171
|
+
})
|
|
6172
|
+
});
|
|
6173
|
+
|
|
6174
|
+
// src/commands/te-analysis/tracking/check/list.ts
|
|
6175
|
+
var trackingCheckList = createTrackingCapabilityCommand({
|
|
6176
|
+
resource: "check",
|
|
6177
|
+
command: "list",
|
|
6178
|
+
capabilityId: "tracking.check.list",
|
|
6179
|
+
description: "List tracking validation runs.",
|
|
6180
|
+
flags: [projectIdFlag],
|
|
6181
|
+
risk: "read",
|
|
6182
|
+
buildInput: projectInput2
|
|
6183
|
+
});
|
|
6184
|
+
|
|
6185
|
+
// src/commands/te-analysis/tracking/check/get.ts
|
|
6186
|
+
var trackingCheckGet = createTrackingCapabilityCommand({
|
|
6187
|
+
resource: "check",
|
|
6188
|
+
command: "get",
|
|
6189
|
+
capabilityId: "tracking.check.get",
|
|
6190
|
+
description: "Get one tracking validation result.",
|
|
6191
|
+
flags: [projectIdFlag, uuidFlag, requestIdFlag, timeoutSecondsFlag],
|
|
6192
|
+
risk: "read",
|
|
6193
|
+
buildInput: (ctx) => compactInput({ ...projectInput2(ctx), uuid: ctx.str("uuid"), request_id: optionalString2(ctx, "request-id"), timeout_seconds: optionalNumber2(ctx, "timeout-seconds") })
|
|
6194
|
+
});
|
|
6195
|
+
|
|
6196
|
+
// src/commands/te-analysis/tracking/check/retry.ts
|
|
6197
|
+
var trackingCheckRetry = createTrackingCapabilityCommand({
|
|
6198
|
+
resource: "check",
|
|
6199
|
+
command: "retry",
|
|
6200
|
+
capabilityId: "tracking.check.retry",
|
|
6201
|
+
description: "Retry one tracking validation run.",
|
|
6202
|
+
flags: [projectIdFlag, uuidFlag, requestIdFlag, timeoutSecondsFlag],
|
|
6203
|
+
risk: "write",
|
|
6204
|
+
buildInput: (ctx) => compactInput({ ...projectInput2(ctx), uuid: ctx.str("uuid"), request_id: optionalString2(ctx, "request-id"), timeout_seconds: optionalNumber2(ctx, "timeout-seconds") })
|
|
6205
|
+
});
|
|
6206
|
+
|
|
6207
|
+
// src/commands/te-analysis/tracking/check/delete.ts
|
|
6208
|
+
var trackingCheckDelete = createTrackingCapabilityCommand({
|
|
6209
|
+
resource: "check",
|
|
6210
|
+
command: "delete",
|
|
6211
|
+
capabilityId: "tracking.check.delete",
|
|
6212
|
+
description: "Delete one tracking validation run.",
|
|
6213
|
+
flags: [projectIdFlag, uuidFlag, confirmFlag],
|
|
6214
|
+
risk: "high-risk-write",
|
|
6215
|
+
buildInput: (ctx) => ({ ...projectInput2(ctx), uuid: ctx.str("uuid"), yes: ctx.bool("confirm") })
|
|
6216
|
+
});
|
|
6217
|
+
|
|
6218
|
+
// src/commands/te-analysis/tracking/check/export.ts
|
|
6219
|
+
var trackingCheckExport = createTrackingCapabilityCommand({
|
|
6220
|
+
resource: "check",
|
|
6221
|
+
command: "export",
|
|
6222
|
+
capabilityId: "tracking.check.export",
|
|
6223
|
+
description: "Export one tracking validation result.",
|
|
6224
|
+
flags: [projectIdFlag, uuidFlag, requestIdFlag, asyncTimeoutSecondsFlag],
|
|
6225
|
+
risk: "read",
|
|
6226
|
+
buildInput: (ctx) => compactInput({ ...projectInput2(ctx), uuid: ctx.str("uuid"), request_id: optionalString2(ctx, "request-id"), timeout_seconds: optionalNumber2(ctx, "timeout-seconds") })
|
|
6227
|
+
});
|
|
6228
|
+
|
|
6229
|
+
// src/commands/te-analysis/tracking/check/index.ts
|
|
6230
|
+
var commands66 = [
|
|
6231
|
+
trackingCheckRun,
|
|
6232
|
+
trackingCheckList,
|
|
6233
|
+
trackingCheckGet,
|
|
6234
|
+
trackingCheckRetry,
|
|
6235
|
+
trackingCheckDelete,
|
|
6236
|
+
trackingCheckExport
|
|
6237
|
+
];
|
|
6238
|
+
var check_default = commands66;
|
|
6239
|
+
|
|
6240
|
+
// src/commands/te-analysis/tracking/ingest/summary.ts
|
|
6241
|
+
var trackingIngestSummary = createTrackingCapabilityCommand({
|
|
6242
|
+
resource: "ingest",
|
|
6243
|
+
command: "summary",
|
|
6244
|
+
capabilityId: "tracking.ingest.summary",
|
|
6245
|
+
description: "Get tracking ingest summary.",
|
|
6246
|
+
flags: [projectIdFlag, startTimeFlag, endTimeFlag],
|
|
6247
|
+
risk: "read",
|
|
6248
|
+
buildInput: (ctx) => ({ ...projectInput2(ctx), start_time: ctx.str("start-time"), end_time: ctx.str("end-time") })
|
|
6249
|
+
});
|
|
6250
|
+
|
|
6251
|
+
// src/commands/te-analysis/tracking/ingest/index.ts
|
|
6252
|
+
var commands67 = [
|
|
6253
|
+
trackingIngestSummary
|
|
6254
|
+
];
|
|
6255
|
+
var ingest_default = commands67;
|
|
6256
|
+
|
|
6257
|
+
// src/commands/te-analysis/tracking/ingest-error/list.ts
|
|
6258
|
+
var trackingIngestErrorList = createTrackingCapabilityCommand({
|
|
6259
|
+
resource: "ingest-error",
|
|
6260
|
+
command: "list",
|
|
6261
|
+
capabilityId: "tracking.ingest_error.list",
|
|
6262
|
+
description: "List tracking ingest errors for one data name.",
|
|
6263
|
+
flags: [projectIdFlag, dataNameFlag, startTimeFlag, endTimeFlag],
|
|
6264
|
+
risk: "read",
|
|
6265
|
+
buildInput: (ctx) => ({ ...projectInput2(ctx), data_name: ctx.str("data-name"), start_time: ctx.str("start-time"), end_time: ctx.str("end-time") })
|
|
6266
|
+
});
|
|
6267
|
+
|
|
6268
|
+
// src/commands/te-analysis/tracking/ingest-error/index.ts
|
|
6269
|
+
var commands68 = [
|
|
6270
|
+
trackingIngestErrorList
|
|
6271
|
+
];
|
|
6272
|
+
var ingest_error_default = commands68;
|
|
6273
|
+
|
|
6274
|
+
// src/commands/te-analysis/tracking/live-data/list.ts
|
|
6275
|
+
var trackingLiveDataList = createTrackingCapabilityCommand({
|
|
6276
|
+
resource: "live-data",
|
|
6277
|
+
command: "list",
|
|
6278
|
+
capabilityId: "tracking.live_data.list",
|
|
6279
|
+
description: "List recent tracking live data.",
|
|
6280
|
+
flags: [projectIdFlag, dataTypeFlag, requestIdFlag, timeoutSecondsFlag],
|
|
6281
|
+
risk: "read",
|
|
6282
|
+
buildInput: (ctx) => compactInput({ ...projectInput2(ctx), data_type: optionalString2(ctx, "data-type"), request_id: optionalString2(ctx, "request-id"), timeout_seconds: optionalNumber2(ctx, "timeout-seconds") })
|
|
6283
|
+
});
|
|
6284
|
+
|
|
6285
|
+
// src/commands/te-analysis/tracking/live-data/export.ts
|
|
6286
|
+
var trackingLiveDataExport = createTrackingCapabilityCommand({
|
|
6287
|
+
resource: "live-data",
|
|
6288
|
+
command: "export",
|
|
6289
|
+
capabilityId: "tracking.live_data.export",
|
|
6290
|
+
description: "Export recent tracking live data.",
|
|
6291
|
+
flags: [projectIdFlag, dataTypeFlag, requestIdFlag, asyncTimeoutSecondsFlag],
|
|
6292
|
+
risk: "read",
|
|
6293
|
+
buildInput: (ctx) => compactInput({ ...projectInput2(ctx), data_type: optionalString2(ctx, "data-type"), request_id: optionalString2(ctx, "request-id"), timeout_seconds: optionalNumber2(ctx, "timeout-seconds") })
|
|
6294
|
+
});
|
|
6295
|
+
|
|
6296
|
+
// src/commands/te-analysis/tracking/live-data/index.ts
|
|
6297
|
+
var commands69 = [
|
|
6298
|
+
trackingLiveDataList,
|
|
6299
|
+
trackingLiveDataExport
|
|
6300
|
+
];
|
|
6301
|
+
var live_data_default = commands69;
|
|
6302
|
+
|
|
6303
|
+
// src/commands/te-analysis/tracking/event-blacklist/list.ts
|
|
6304
|
+
var trackingEventBlacklistList = createTrackingCapabilityCommand({
|
|
6305
|
+
resource: "event-blacklist",
|
|
6306
|
+
command: "list",
|
|
6307
|
+
capabilityId: "tracking.event_blacklist.list",
|
|
6308
|
+
description: "List tracking event blacklist configuration.",
|
|
6309
|
+
flags: [projectIdFlag],
|
|
6310
|
+
risk: "read",
|
|
6311
|
+
buildInput: projectInput2
|
|
6312
|
+
});
|
|
6313
|
+
|
|
6314
|
+
// src/commands/te-analysis/tracking/event-blacklist/add.ts
|
|
6315
|
+
var trackingEventBlacklistAdd = createTrackingCapabilityCommand({
|
|
6316
|
+
resource: "event-blacklist",
|
|
6317
|
+
command: "add",
|
|
6318
|
+
capabilityId: "tracking.event_blacklist.add",
|
|
6319
|
+
description: "Add events to tracking event blacklist.",
|
|
6320
|
+
flags: [projectIdFlag, eventNamesFlag],
|
|
6321
|
+
risk: "write",
|
|
6322
|
+
buildInput: (ctx) => ({ ...projectInput2(ctx), event_names: ctx.json("event-names") })
|
|
6323
|
+
});
|
|
6324
|
+
|
|
6325
|
+
// src/commands/te-analysis/tracking/event-blacklist/update.ts
|
|
6326
|
+
var trackingEventBlacklistUpdate = createTrackingCapabilityCommand({
|
|
6327
|
+
resource: "event-blacklist",
|
|
6328
|
+
command: "update",
|
|
6329
|
+
capabilityId: "tracking.event_blacklist.update",
|
|
6330
|
+
description: "Update tracking event blacklist config.",
|
|
6331
|
+
flags: [projectIdFlag, eventNamesFlag, blacklistTypeFlag],
|
|
6332
|
+
risk: "write",
|
|
6333
|
+
buildInput: (ctx) => ({ ...projectInput2(ctx), event_names: ctx.json("event-names"), type: ctx.num("type") })
|
|
6334
|
+
});
|
|
6335
|
+
|
|
6336
|
+
// src/commands/te-analysis/tracking/event-blacklist/index.ts
|
|
6337
|
+
var commands70 = [
|
|
6338
|
+
trackingEventBlacklistList,
|
|
6339
|
+
trackingEventBlacklistAdd,
|
|
6340
|
+
trackingEventBlacklistUpdate
|
|
6341
|
+
];
|
|
6342
|
+
var event_blacklist_default = commands70;
|
|
6343
|
+
|
|
6344
|
+
// src/commands/te-analysis/tracking/index.ts
|
|
6345
|
+
var commands71 = [
|
|
6346
|
+
...plan_default,
|
|
6347
|
+
...sdk_sample_default,
|
|
6348
|
+
...plan_change_log_default,
|
|
6349
|
+
...check_default,
|
|
6350
|
+
...ingest_default,
|
|
6351
|
+
...ingest_error_default,
|
|
6352
|
+
...live_data_default,
|
|
6353
|
+
...event_blacklist_default
|
|
6354
|
+
];
|
|
6355
|
+
var tracking_default = commands71;
|
|
6356
|
+
|
|
6357
|
+
// src/commands/te-analysis/alert/shared.ts
|
|
6358
|
+
var alertIdFlag = {
|
|
6359
|
+
name: "alert-id",
|
|
6360
|
+
type: "number",
|
|
6361
|
+
required: true,
|
|
6362
|
+
desc: "Alert task ID."
|
|
6363
|
+
};
|
|
6364
|
+
var definitionFlag = {
|
|
6365
|
+
name: "definition",
|
|
6366
|
+
type: "json",
|
|
6367
|
+
required: true,
|
|
6368
|
+
desc: "Alert definition JSON object using snake_case field names. Read alert-definition-schema get first."
|
|
6369
|
+
};
|
|
6370
|
+
var limitFlag2 = {
|
|
6371
|
+
name: "limit",
|
|
6372
|
+
type: "number",
|
|
6373
|
+
required: false,
|
|
6374
|
+
desc: "Page size. Default: 50, max: 200.",
|
|
6375
|
+
min: 1,
|
|
6376
|
+
max: 200
|
|
6377
|
+
};
|
|
6378
|
+
var startTimeFlag2 = {
|
|
6379
|
+
name: "start-time",
|
|
6380
|
+
type: "string",
|
|
6381
|
+
required: false,
|
|
6382
|
+
desc: "Optional alert detail start time."
|
|
6383
|
+
};
|
|
6384
|
+
var endTimeFlag2 = {
|
|
6385
|
+
name: "end-time",
|
|
6386
|
+
type: "string",
|
|
6387
|
+
required: false,
|
|
6388
|
+
desc: "Optional alert detail end time."
|
|
6389
|
+
};
|
|
6390
|
+
function projectInput3(ctx) {
|
|
6391
|
+
return { project_id: ctx.num("project-id") };
|
|
6392
|
+
}
|
|
6393
|
+
function alertIdInput(ctx) {
|
|
6394
|
+
return { ...projectInput3(ctx), alert_id: ctx.num("alert-id") };
|
|
6395
|
+
}
|
|
6396
|
+
|
|
6397
|
+
// src/commands/te-analysis/alert/list.ts
|
|
6398
|
+
var analysisAlertList = createAnalysisCapabilityCommand({
|
|
6399
|
+
resource: "alert",
|
|
6400
|
+
command: "list",
|
|
6401
|
+
capabilityId: "analysis.alert.list",
|
|
6402
|
+
description: "List project alerts.",
|
|
6403
|
+
flags: [projectIdFlag, queryFlag, limitFlag2, offsetFlag],
|
|
6404
|
+
risk: "read",
|
|
6405
|
+
buildInput: (ctx) => compactInput({ ...projectInput3(ctx), query: optionalString2(ctx, "query"), limit: optionalNumber2(ctx, "limit"), offset: optionalNumber2(ctx, "offset") })
|
|
6406
|
+
});
|
|
6407
|
+
|
|
6408
|
+
// src/commands/te-analysis/alert/get.ts
|
|
6409
|
+
var analysisAlertGet = createAnalysisCapabilityCommand({
|
|
6410
|
+
resource: "alert",
|
|
6411
|
+
command: "get",
|
|
6412
|
+
capabilityId: "analysis.alert.get",
|
|
6413
|
+
description: "Get one alert.",
|
|
6414
|
+
flags: [projectIdFlag, alertIdFlag],
|
|
6415
|
+
risk: "read",
|
|
6416
|
+
buildInput: alertIdInput
|
|
6417
|
+
});
|
|
6418
|
+
|
|
6419
|
+
// src/commands/te-analysis/alert/create.ts
|
|
6420
|
+
var analysisAlertCreate = createAnalysisCapabilityCommand({
|
|
6421
|
+
resource: "alert",
|
|
6422
|
+
command: "create",
|
|
6423
|
+
capabilityId: "analysis.alert.create",
|
|
6424
|
+
description: "Create an alert.",
|
|
6425
|
+
flags: [projectIdFlag, definitionFlag],
|
|
6426
|
+
risk: "write",
|
|
6427
|
+
buildInput: (ctx) => ({ ...projectInput3(ctx), definition: ctx.json("definition") })
|
|
6428
|
+
});
|
|
6429
|
+
|
|
6430
|
+
// src/commands/te-analysis/alert/update.ts
|
|
6431
|
+
var analysisAlertUpdate = createAnalysisCapabilityCommand({
|
|
6432
|
+
resource: "alert",
|
|
6433
|
+
command: "update",
|
|
6434
|
+
capabilityId: "analysis.alert.update",
|
|
6435
|
+
description: "Update an alert.",
|
|
6436
|
+
flags: [projectIdFlag, alertIdFlag, definitionFlag],
|
|
6437
|
+
risk: "write",
|
|
6438
|
+
buildInput: (ctx) => ({ ...alertIdInput(ctx), definition: ctx.json("definition") })
|
|
6439
|
+
});
|
|
6440
|
+
|
|
6441
|
+
// src/commands/te-analysis/alert/delete.ts
|
|
6442
|
+
var analysisAlertDelete = createAnalysisCapabilityCommand({
|
|
6443
|
+
resource: "alert",
|
|
6444
|
+
command: "delete",
|
|
6445
|
+
capabilityId: "analysis.alert.delete",
|
|
6446
|
+
description: "Delete an alert.",
|
|
6447
|
+
flags: [projectIdFlag, alertIdFlag],
|
|
6448
|
+
risk: "high-risk-write",
|
|
6449
|
+
buildInput: alertIdInput
|
|
6450
|
+
});
|
|
6451
|
+
|
|
6452
|
+
// src/commands/te-analysis/alert/start.ts
|
|
6453
|
+
var analysisAlertStart = createAnalysisCapabilityCommand({
|
|
6454
|
+
resource: "alert",
|
|
6455
|
+
command: "start",
|
|
6456
|
+
capabilityId: "analysis.alert.start",
|
|
6457
|
+
description: "Start an alert.",
|
|
6458
|
+
flags: [projectIdFlag, alertIdFlag],
|
|
6459
|
+
risk: "write",
|
|
6460
|
+
buildInput: alertIdInput
|
|
6461
|
+
});
|
|
6462
|
+
|
|
6463
|
+
// src/commands/te-analysis/alert/stop.ts
|
|
6464
|
+
var analysisAlertStop = createAnalysisCapabilityCommand({
|
|
6465
|
+
resource: "alert",
|
|
6466
|
+
command: "stop",
|
|
6467
|
+
capabilityId: "analysis.alert.stop",
|
|
6468
|
+
description: "Stop an alert.",
|
|
6469
|
+
flags: [projectIdFlag, alertIdFlag],
|
|
6470
|
+
risk: "write",
|
|
6471
|
+
buildInput: alertIdInput
|
|
6472
|
+
});
|
|
6473
|
+
|
|
6474
|
+
// src/commands/te-analysis/alert/index.ts
|
|
6475
|
+
var commands72 = [
|
|
6476
|
+
analysisAlertList,
|
|
6477
|
+
analysisAlertGet,
|
|
6478
|
+
analysisAlertCreate,
|
|
6479
|
+
analysisAlertUpdate,
|
|
6480
|
+
analysisAlertDelete,
|
|
6481
|
+
analysisAlertStart,
|
|
6482
|
+
analysisAlertStop
|
|
6483
|
+
];
|
|
6484
|
+
var alert_default = commands72;
|
|
6485
|
+
|
|
6486
|
+
// src/commands/te-analysis/alert-definition-schema/get.ts
|
|
6487
|
+
var analysisAlertDefinitionSchemaGet = createAnalysisCapabilityCommand({
|
|
6488
|
+
resource: "alert-definition-schema",
|
|
6489
|
+
command: "get",
|
|
6490
|
+
capabilityId: "analysis.alert_definition_schema.get",
|
|
6491
|
+
description: "Get the alert definition schema.",
|
|
6492
|
+
flags: [],
|
|
6493
|
+
risk: "read",
|
|
6494
|
+
buildInput: () => ({})
|
|
6495
|
+
});
|
|
6496
|
+
|
|
6497
|
+
// src/commands/te-analysis/alert-definition-schema/index.ts
|
|
6498
|
+
var commands73 = [
|
|
6499
|
+
analysisAlertDefinitionSchemaGet
|
|
6500
|
+
];
|
|
6501
|
+
var alert_definition_schema_default = commands73;
|
|
6502
|
+
|
|
6503
|
+
// src/commands/te-analysis/alert-detail/list.ts
|
|
6504
|
+
var analysisAlertDetailList = createAnalysisCapabilityCommand({
|
|
6505
|
+
resource: "alert-detail",
|
|
6506
|
+
command: "list",
|
|
6507
|
+
capabilityId: "analysis.alert_detail.list",
|
|
6508
|
+
description: "List alert delivery details.",
|
|
6509
|
+
flags: [projectIdFlag, alertIdFlag, startTimeFlag2, endTimeFlag2],
|
|
6510
|
+
risk: "read",
|
|
6511
|
+
buildInput: (ctx) => compactInput({ ...alertIdInput(ctx), start_time: optionalString2(ctx, "start-time"), end_time: optionalString2(ctx, "end-time") })
|
|
6512
|
+
});
|
|
6513
|
+
|
|
6514
|
+
// src/commands/te-analysis/alert-detail/index.ts
|
|
6515
|
+
var commands74 = [
|
|
6516
|
+
analysisAlertDetailList
|
|
6517
|
+
];
|
|
6518
|
+
var alert_detail_default = commands74;
|
|
6519
|
+
|
|
6520
|
+
// src/commands/te-analysis/alert-job/list.ts
|
|
6521
|
+
var analysisAlertJobList = createAnalysisCapabilityCommand({
|
|
6522
|
+
resource: "alert-job",
|
|
6523
|
+
command: "list",
|
|
6524
|
+
capabilityId: "analysis.alert_job.list",
|
|
6525
|
+
description: "List alert job status.",
|
|
6526
|
+
flags: [projectIdFlag],
|
|
6527
|
+
risk: "read",
|
|
6528
|
+
buildInput: projectInput3
|
|
6529
|
+
});
|
|
6530
|
+
|
|
6531
|
+
// src/commands/te-analysis/alert-job/index.ts
|
|
6532
|
+
var commands75 = [
|
|
6533
|
+
analysisAlertJobList
|
|
6534
|
+
];
|
|
6535
|
+
var alert_job_default = commands75;
|
|
6536
|
+
|
|
6537
|
+
// src/commands/te-analysis/alert-notice-config/list.ts
|
|
6538
|
+
var analysisAlertNoticeConfigList = createAnalysisCapabilityCommand({
|
|
6539
|
+
resource: "alert-notice-config",
|
|
6540
|
+
command: "list",
|
|
6541
|
+
capabilityId: "analysis.alert_notice_config.list",
|
|
6542
|
+
description: "List alert notice configs.",
|
|
6543
|
+
flags: [projectIdFlag],
|
|
6544
|
+
risk: "read",
|
|
6545
|
+
buildInput: projectInput3
|
|
6546
|
+
});
|
|
6547
|
+
|
|
6548
|
+
// src/commands/te-analysis/alert-notice-config/index.ts
|
|
6549
|
+
var commands76 = [
|
|
6550
|
+
analysisAlertNoticeConfigList
|
|
6551
|
+
];
|
|
6552
|
+
var alert_notice_config_default = commands76;
|
|
6553
|
+
|
|
5691
6554
|
// src/commands/te-analysis/index.ts
|
|
5692
6555
|
registerCapabilityGatewayRoute("analysis", { gatewayDomain: "analysis" });
|
|
6556
|
+
registerCapabilityGatewayRoute("tracking", { gatewayDomain: "analysis" });
|
|
5693
6557
|
var baseCommands = [
|
|
5694
6558
|
...meta_default,
|
|
5695
6559
|
...governance_default,
|
|
@@ -5723,13 +6587,19 @@ var baseCommands = [
|
|
|
5723
6587
|
...sql_table_default,
|
|
5724
6588
|
...entity_default,
|
|
5725
6589
|
...input_file_default,
|
|
5726
|
-
...project_default
|
|
6590
|
+
...project_default,
|
|
6591
|
+
...tracking_default,
|
|
6592
|
+
...alert_default,
|
|
6593
|
+
...alert_definition_schema_default,
|
|
6594
|
+
...alert_detail_default,
|
|
6595
|
+
...alert_job_default,
|
|
6596
|
+
...alert_notice_config_default
|
|
5727
6597
|
];
|
|
5728
|
-
var
|
|
6598
|
+
var commands77 = [
|
|
5729
6599
|
...baseCommands,
|
|
5730
6600
|
...isGlobalQueryModeEnabled() ? global_default : []
|
|
5731
6601
|
];
|
|
5732
|
-
var te_analysis_default =
|
|
6602
|
+
var te_analysis_default = commands77;
|
|
5733
6603
|
export {
|
|
5734
6604
|
baseCommands,
|
|
5735
6605
|
te_analysis_default as default
|