Merge remote-tracking branch 'upstream/main' into codex/schema-compat-float-image-one-of
This commit is contained in:
@@ -153,7 +153,7 @@ var paramAliasCompleteCommands = map[string][]string{
|
||||
"devdoc article search": {"devdoc", "article", "search", "--query", "fixture", "--page", "2", "--size", "7"},
|
||||
"ding +receiver-status": {"ding", "+receiver-status", "--ding-id", "ding-1"},
|
||||
"ding message receiver-status": {"ding", "message", "receiver-status", "--ding-id", "ding-1"},
|
||||
"ding message send": {"ding", "message", "send", "--robot-code", "robot-1", "--content", "fixture", "--users", "user-1", "--yes"},
|
||||
"ding message send": {"ding", "message", "send", "--robot-code", "robot-1", "--content", "fixture", "--users", "user-1"},
|
||||
"doc +comment-create": {"doc", "+comment-create", "--node", "node-1", "--content", "fixture comment", "--yes"},
|
||||
"doc +comment-list": {"doc", "+comment-list", "--node", "node-1", "--limit", "7", "--cursor", "cursor-1"},
|
||||
"doc +comment-reply": {"doc", "+comment-reply", "--node", "node-1", "--comment-key", "comment-1", "--content", "fixture reply", "--yes"},
|
||||
@@ -221,8 +221,8 @@ var paramAliasCompleteCommands = map[string][]string{
|
||||
"drive search": {"drive", "search", "--query", "fixture", "--created-from", "1", "--created-to", "2", "--modified-from", "3", "--modified-to", "4", "--creator-uids", "user-1,user-2"},
|
||||
"drive upload": {"drive", "upload", "--file", "../../go.mod", "--space-id", "space-1"},
|
||||
"drive upload-info": {"drive", "upload-info", "--file-name", "fixture.txt", "--file-size", "7", "--space-id", "space-1"},
|
||||
"mail +find-mail-user": {"mail", "+find-mail-user", "--query", "fixture", "--limit", "7"},
|
||||
"mail folder update": {"mail", "folder", "update", "--email", "fixture@example.com", "--id", "folder-1", "--name", "Fixture Folder", "--yes"},
|
||||
"mail +find-mail-user": {"mail", "+find-mail-user", "--query", "fixture", "--limit", "7", "--cursor", "cursor-1"},
|
||||
"mail folder update": {"mail", "folder", "update", "--email", "fixture@example.com", "--id", "folder-1", "--name", "Fixture Folder"},
|
||||
"mail message search": {"mail", "message", "search", "--email", "fixture@example.com", "--query", "subject:fixture"},
|
||||
"mail thread list": {"mail", "thread", "list", "--email", "fixture@example.com", "--folder", "folder-1", "--limit", "7"},
|
||||
"mail user search": {"mail", "user", "search", "--keyword", "fixture"},
|
||||
@@ -231,12 +231,59 @@ var paramAliasCompleteCommands = map[string][]string{
|
||||
"report list": {"report", "list", "--start", "2026-03-10T00:00:00+08:00", "--end", "2026-03-10T23:59:59+08:00"},
|
||||
}
|
||||
|
||||
// paramAliasCandidateCompleteCommands contains complete invocations for the
|
||||
// reviewed Minutes/TODO/Wiki joint draft. Keeping candidate-only commands in a
|
||||
// separate map lets this test file land before the draft replaces the formal
|
||||
// paramAliasCandidateCompleteCommands contains complete invocations for
|
||||
// reviewed parameter-concept product drafts. Keeping candidate-only commands
|
||||
// in a separate map lets a test change land before a draft replaces the formal
|
||||
// param_concepts.json: inactive candidate templates are ignored, while every
|
||||
// command becomes mandatory as soon as one of its reviewed aliases is active.
|
||||
var paramAliasCandidateCompleteCommands = map[string][]string{
|
||||
"attendance +check-record": {"attendance", "+check-record", "--users", "user-1,user-2", "--start", "2026-03-10 00:00:00", "--end", "2026-03-10 23:59:59"},
|
||||
"attendance +get-adjustment-rule": {"attendance", "+get-adjustment-rule", "--adjustment-id", "adjustment-1"},
|
||||
"attendance +get-approve-template": {"attendance", "+get-approve-template", "--type", "leave"},
|
||||
"attendance +get-checkin-record": {"attendance", "+get-checkin-record", "--operator-corp-id", "corp-1", "--operator-staff-id", "staff-operator", "--staff-ids", "staff-1,staff-2", "--start", "2026-03-10 00:00:00", "--end", "2026-03-10 23:59:59"},
|
||||
"attendance +get-leave-records": {"attendance", "+get-leave-records", "--user", "user-1", "--start", "2026-03-01", "--end", "2026-03-31", "--leave-code", "annual_leave"},
|
||||
"attendance +get-overtime-rule": {"attendance", "+get-overtime-rule", "--overtime-id", "overtime-1"},
|
||||
"attendance +get-schedule": {"attendance", "+get-schedule", "--users", "user-1,user-2", "--start", "2026-03-10", "--end", "2026-03-11"},
|
||||
"attendance +get-self-setting": {"attendance", "+get-self-setting", "--user", "user-1", "--setting-scene", "checkRemind"},
|
||||
"attendance +get-summary": {"attendance", "+get-summary", "--user", "user-1", "--date", "2026-03-10", "--stats-type", "week"},
|
||||
"attendance +list-approve": {"attendance", "+list-approve", "--users", "user-1,user-2", "--types", "leave", "--start", "2026-03-01", "--end", "2026-03-31"},
|
||||
"attendance +query-report-data": {"attendance", "+query-report-data", "--users", "user-1,user-2", "--columns", "attendance_days,late_count", "--start", "2026-03-01", "--end", "2026-03-31"},
|
||||
"attendance +search-adjustment-rule": {"attendance", "+search-adjustment-rule", "--query", "fixture", "--page", "2", "--limit", "7"},
|
||||
"attendance +search-class": {"attendance", "+search-class", "--filter-type", "name", "--query", "fixture"},
|
||||
"attendance +search-group": {"attendance", "+search-group", "--type", "FIXED"},
|
||||
"attendance +search-overtime-rule": {"attendance", "+search-overtime-rule", "--query", "fixture", "--page", "2", "--limit", "7"},
|
||||
"ding +list": {"ding", "+list", "--cursor", "0", "--type", "ALL"},
|
||||
"ding +recall-personal": {"ding", "+recall-personal", "--id", "ding-1", "--yes"},
|
||||
"ding +send-personal": {"ding", "+send-personal", "--users", appFixtureCurrentDOpenID, "--content", "fixture", "--yes"},
|
||||
"mail +contact-list": {"mail", "+contact-list", "--email", "fixture@example.com", "--limit", "7", "--cursor", "cursor-1"},
|
||||
"mail +folder-list": {"mail", "+folder-list", "--email", "fixture@example.com", "--folder", "folder-1"},
|
||||
"mail +message": {"mail", "+message", "--email", "fixture@example.com", "--id", "message-1"},
|
||||
"mail +messages": {"mail", "+messages", "--email", "fixture@example.com", "--ids", "message-1,message-2"},
|
||||
"mail +recent-mail": {"mail", "+recent-mail", "--limit", "7", "--cursor", "cursor-1"},
|
||||
"mail +search-mail": {"mail", "+search-mail", "--query", "fixture", "--size", "7", "--cursor", "cursor-1"},
|
||||
"mail +template-list": {"mail", "+template-list", "--email", "fixture@example.com", "--limit", "7", "--cursor", "cursor-1"},
|
||||
"mail +thread": {"mail", "+thread", "--email", "fixture@example.com", "--id", "thread-1"},
|
||||
"mail +thread-list": {"mail", "+thread-list", "--email", "fixture@example.com", "--folder", "folder-1", "--cursor", "cursor-1"},
|
||||
"mail +triage": {"mail", "+triage", "--query", "fixture", "--limit", "7", "--cursor", "cursor-1"},
|
||||
"mail +unread-mail": {"mail", "+unread-mail", "--size", "7", "--cursor", "cursor-1"},
|
||||
"mail +user-search": {"mail", "+user-search", "--keyword", "fixture", "--cursor", "cursor-1"},
|
||||
"markdown create": {"markdown", "create", "--content", "# Fixture", "--name", "fixture.md", "--space-id", "space-1"},
|
||||
"markdown diff": {"markdown", "diff", "--node", "node-1", "--version", "1", "--version2", "2", "--context", "3"},
|
||||
"markdown fetch": {"markdown", "fetch", "--node", "node-1", "--space-id", "space-1", "--output", "/tmp/dws-markdown-fixture.md"},
|
||||
"markdown overwrite": {"markdown", "overwrite", "--node", "node-1", "--content", "# Fixture", "--name", "fixture.md", "--space-id", "space-1", "--yes"},
|
||||
"markdown patch": {"markdown", "patch", "--node", "node-1", "--pattern", "old", "--content", "new", "--regex", "--space-id", "space-1", "--yes"},
|
||||
"oa +list-cc": {"oa", "+list-cc", "--page", "2"},
|
||||
"oa +list-executed": {"oa", "+list-executed", "--limit", "7", "--page", "2"},
|
||||
"oa +list-forms": {"oa", "+list-forms", "--cursor", "2"},
|
||||
"oa +list-pending": {"oa", "+list-pending", "--start", "1773072000000", "--end", "1773158399000", "--page", "2"},
|
||||
"oa +list-submitted": {"oa", "+list-submitted", "--page", "2"},
|
||||
"oa +my-initiated": {"oa", "+my-initiated", "--page", "2"},
|
||||
"report +outbox-list": {"report", "+outbox-list", "--size", "7"},
|
||||
"report +report-latest": {"report", "+report-latest", "--keyword", "Fixture", "--start", "2026-03-01T00:00:00+08:00", "--end", "2026-03-10T00:00:00+08:00"},
|
||||
"report +template-search": {"report", "+template-search", "--query", "fixture"},
|
||||
"sheet +list-sheets": {"sheet", "+list-sheets", "--node", "node-1"},
|
||||
"sheet +read": {"sheet", "+read", "--node", "node-1", "--sheet-id", "Sheet1"},
|
||||
|
||||
"minutes +detail": {"minutes", "+detail", "--ids", "u1,u2"},
|
||||
"minutes +latest": {"minutes", "+latest", "--keyword", "fixture"},
|
||||
"minutes +list-all": {"minutes", "+list-all", "--limit", "7"},
|
||||
@@ -296,6 +343,20 @@ var paramAliasCandidateCompleteCommands = map[string][]string{
|
||||
// that case the shared command template above cannot contain every canonical
|
||||
// flag at once, so select a fixture-specific complete invocation here.
|
||||
var paramAliasCompleteCommandVariants = map[string]map[string][]string{
|
||||
"markdown create": {
|
||||
"file": {"markdown", "create", "--file", "../../README.md", "--name", "fixture.md", "--space-id", "space-1"},
|
||||
},
|
||||
"markdown diff": {
|
||||
"file": {"markdown", "diff", "--node", "node-1", "--file", "../../README.md", "--context", "3"},
|
||||
},
|
||||
"markdown overwrite": {
|
||||
"file": {"markdown", "overwrite", "--node", "node-1", "--file", "../../README.md", "--name", "fixture.md", "--space-id", "space-1", "--yes"},
|
||||
"dry-run": {"markdown", "overwrite", "--node", "node-1", "--content", "# Fixture", "--name", "fixture.md", "--space-id", "space-1", "--dry-run"},
|
||||
},
|
||||
"markdown patch": {
|
||||
"dry-run": {"markdown", "patch", "--node", "node-1", "--pattern", "old", "--content", "new", "--regex", "--dry-run"},
|
||||
},
|
||||
|
||||
"doc +copy": {
|
||||
"folder": {"doc", "+copy", "--node", "node-1", "--folder", "folder-1", "--yes"},
|
||||
"workspace": {"doc", "+copy", "--node", "node-1", "--workspace", "workspace-1", "--yes"},
|
||||
@@ -969,6 +1030,121 @@ func assertParamAliasCannotBypassConfirmation(t *testing.T, aliasArgs []string)
|
||||
}
|
||||
}
|
||||
|
||||
// TestCrossPlatformCoverageEightProductTemplatedParamAliasesCannotBypassConfirmation
|
||||
// exercises every distinct reviewed mutating complete-command template in the
|
||||
// eight-product Shortcut expansion. The fixture gate already proves every
|
||||
// alias resolves through PreParse; this gate removes the confirmation flag
|
||||
// from one active alias invocation per distinct template and requires the
|
||||
// runtime boundary to stop it before the first transport call. An explicit
|
||||
// --dry-run is a reviewed preview path and must not carry a bypass flag.
|
||||
func TestCrossPlatformCoverageEightProductTemplatedParamAliasesCannotBypassConfirmation(t *testing.T) {
|
||||
concepts, err := cli.LoadParamConcepts()
|
||||
if err != nil {
|
||||
t.Fatalf("LoadParamConcepts() error = %v", err)
|
||||
}
|
||||
|
||||
requiredTemplates := make(map[string]bool)
|
||||
coveredTemplates := make(map[string]bool)
|
||||
for _, fixture := range concepts.Fixture {
|
||||
if strings.HasPrefix(fixture.Expect, "did-you-mean:") {
|
||||
continue
|
||||
}
|
||||
product, _, _ := strings.Cut(fixture.Command, " ")
|
||||
switch product {
|
||||
case "attendance", "mail", "oa", "ding", "report", "sheet", "whiteboard", "markdown":
|
||||
default:
|
||||
continue
|
||||
}
|
||||
complete, ok := paramAliasCompleteCommand(fixture.Command, fixture.Expect)
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
_, yesCount := removeExactArg(complete, "--yes")
|
||||
_, userSayYesCount := removeExactArg(complete, "--user-say-yes")
|
||||
confirmationCount := yesCount + userSayYesCount
|
||||
confirmationArg := "--yes"
|
||||
if userSayYesCount == 1 {
|
||||
confirmationArg = "--user-say-yes"
|
||||
}
|
||||
_, dryRunCount := removeExactArg(complete, "--dry-run")
|
||||
if dryRunCount > 1 {
|
||||
t.Errorf("template must contain --dry-run at most once: command=%q args=%v", fixture.Command, complete)
|
||||
continue
|
||||
}
|
||||
if meta, exists := cli.ResolveMeta(fixture.Command); exists {
|
||||
switch meta.Safety.Confirmation {
|
||||
case "user_required":
|
||||
if dryRunCount == 1 {
|
||||
if confirmationCount != 0 {
|
||||
t.Errorf("Schema-confirmed dry-run template must not contain a confirmation bypass flag: command=%q args=%v", fixture.Command, complete)
|
||||
}
|
||||
continue
|
||||
}
|
||||
if confirmationCount != 1 {
|
||||
t.Errorf("Schema-confirmed template must contain exactly one reviewed confirmation flag: command=%q confirmation=%q args=%v", fixture.Command, meta.Safety.Confirmation, complete)
|
||||
continue
|
||||
}
|
||||
case "not_required":
|
||||
if confirmationCount != 0 {
|
||||
t.Errorf("Schema-unconfirmed template must not contain a confirmation bypass flag: command=%q confirmation=%q args=%v", fixture.Command, meta.Safety.Confirmation, complete)
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
if confirmationCount == 0 {
|
||||
continue
|
||||
}
|
||||
if confirmationCount != 1 {
|
||||
t.Errorf("confirmation template must contain exactly one reviewed confirmation flag: command=%q args=%v", fixture.Command, complete)
|
||||
continue
|
||||
}
|
||||
|
||||
templateKey := fixture.Command + "\x00" + strings.Join(complete, "\x00")
|
||||
requiredTemplates[templateKey] = true
|
||||
if coveredTemplates[templateKey] {
|
||||
continue
|
||||
}
|
||||
aliasArgs, replacements := replaceLongFlag(complete, fixture.Expect, fixture.Emitted)
|
||||
if replacements != 1 {
|
||||
t.Errorf("confirmation template for %q/%q must contain canonical --%s exactly once; replacements=%d args=%v", fixture.Command, fixture.Emitted, fixture.Expect, replacements, complete)
|
||||
continue
|
||||
}
|
||||
coveredTemplates[templateKey] = true
|
||||
t.Run(fixture.Command+"/"+fixture.Emitted, func(t *testing.T) {
|
||||
assertTemplatedParamAliasCannotBypassConfirmation(t, fixture.Command, confirmationArg, aliasArgs)
|
||||
})
|
||||
}
|
||||
|
||||
if len(requiredTemplates) == 0 {
|
||||
t.Fatal("reviewed complete-command templates contain no confirmation cases")
|
||||
}
|
||||
if len(coveredTemplates) != len(requiredTemplates) {
|
||||
t.Fatalf("templated confirmation coverage = %d, want %d", len(coveredTemplates), len(requiredTemplates))
|
||||
}
|
||||
}
|
||||
|
||||
func assertTemplatedParamAliasCannotBypassConfirmation(t *testing.T, command, confirmationArg string, aliasArgs []string) {
|
||||
t.Helper()
|
||||
unconfirmedArgs, removals := removeExactArg(aliasArgs, confirmationArg)
|
||||
if removals != 1 {
|
||||
t.Fatalf("confirmation template must contain %s exactly once; removals=%d args=%v", confirmationArg, removals, aliasArgs)
|
||||
}
|
||||
|
||||
caller := ¶mAliasCaptureCaller{}
|
||||
ctx, err := executeParamAliasPayloadE2E(t, caller, unconfirmedArgs...)
|
||||
if ctx == nil {
|
||||
t.Fatal("unconfirmed alias command skipped PreParse")
|
||||
}
|
||||
var appErr *apperrors.Error
|
||||
if errors.As(err, &appErr) && appErr.Reason == "confirmation_required" {
|
||||
if len(caller.calls) != 0 {
|
||||
t.Fatalf("unconfirmed alias crossed the transport boundary before confirmation: args=%v calls=%#v", unconfirmedArgs, caller.calls)
|
||||
}
|
||||
return
|
||||
}
|
||||
t.Fatalf("unconfirmed alias command error = %#v, want confirmation_required\ncommand=%q args=%v calls=%#v", err, command, unconfirmedArgs, caller.calls)
|
||||
}
|
||||
|
||||
func assertParamAliasFinalPayloadEquivalent(t *testing.T, command string, canonicalArgs, aliasArgs []string) {
|
||||
t.Helper()
|
||||
canonicalCaller := ¶mAliasCaptureCaller{}
|
||||
|
||||
@@ -1759,12 +1759,326 @@ var generatedParamAliases = []ParamAliasEntry{
|
||||
},
|
||||
Blocked: []string{"id", "task-id"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +check-record",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"since": "start",
|
||||
"staff-ids": "users",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"target-user-ids": "users",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"to": "end",
|
||||
"until": "end",
|
||||
"user-id-list": "users",
|
||||
"user-ids": "users",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "date", "staff-id", "time", "uid", "user", "user-id", "userid"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +check-result",
|
||||
Aliases: map[string]string{
|
||||
"user-ids": "users",
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"since": "start",
|
||||
"size": "limit",
|
||||
"staff-ids": "users",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"take": "limit",
|
||||
"target-user-ids": "users",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"to": "end",
|
||||
"top": "limit",
|
||||
"until": "end",
|
||||
"user-id-list": "users",
|
||||
"user-ids": "users",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "staff-id", "uid", "user", "user-id", "userid"},
|
||||
Blocked: []string{"at-user-ids", "count", "cursor", "date", "page", "page-token", "staff-id", "time", "uid", "user", "user-id", "userid"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +get-adjustment-rule",
|
||||
Aliases: map[string]string{
|
||||
"adjustment-rule-id": "adjustment-id",
|
||||
"rule-id": "adjustment-id",
|
||||
},
|
||||
Blocked: []string{"class-id", "group-id", "id", "overtime-id", "plan-id", "result-id"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +get-approve-template",
|
||||
Aliases: map[string]string{
|
||||
"approval-type": "type",
|
||||
"biz-type": "type",
|
||||
},
|
||||
Blocked: []string{"approval-types", "biz-types", "types"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +get-checkin-record",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"corp-id": "operator-corp-id",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"operator-company-id": "operator-corp-id",
|
||||
"operator-id": "operator-staff-id",
|
||||
"operator-user-id": "operator-staff-id",
|
||||
"since": "start",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"target-user-ids": "staff-ids",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"to": "end",
|
||||
"until": "end",
|
||||
"user-id-list": "staff-ids",
|
||||
"user-ids": "staff-ids",
|
||||
"users": "staff-ids",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "date", "name", "time", "to-user"},
|
||||
Ambiguous: []string{"staff-id", "uid", "user", "user-id", "userid"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +get-leave-records",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"since": "start",
|
||||
"staff-id": "user",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"to": "end",
|
||||
"uid": "user",
|
||||
"until": "end",
|
||||
"user-id": "user",
|
||||
"userid": "user",
|
||||
"vacation-type-code": "leave-code",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "date", "id", "leave-name", "leave-names", "name", "rule-id", "time", "to-user", "user-ids", "users", "vacation-name"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +get-overtime-rule",
|
||||
Aliases: map[string]string{
|
||||
"overtime-rule-id": "overtime-id",
|
||||
"rule-id": "overtime-id",
|
||||
},
|
||||
Blocked: []string{"adjustment-id", "class-id", "group-id", "id", "plan-id", "result-id"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +get-schedule",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"since": "start",
|
||||
"staff-ids": "users",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"target-user-ids": "users",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"to": "end",
|
||||
"until": "end",
|
||||
"user-id-list": "users",
|
||||
"user-ids": "users",
|
||||
"work-date-begin": "start",
|
||||
"work-date-end": "end",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "date", "staff-id", "time", "uid", "user", "user-id", "userid"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +get-self-setting",
|
||||
Aliases: map[string]string{
|
||||
"scene": "setting-scene",
|
||||
"staff-id": "user",
|
||||
"uid": "user",
|
||||
"user-id": "user",
|
||||
"userid": "user",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "name", "setting-item", "setting-type", "to-user", "user-ids", "users"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +get-summary",
|
||||
Aliases: map[string]string{
|
||||
"attendance-date": "date",
|
||||
"period": "stats-type",
|
||||
"staff-id": "user",
|
||||
"statistics-type": "stats-type",
|
||||
"summary-type": "stats-type",
|
||||
"uid": "user",
|
||||
"user-id": "user",
|
||||
"userid": "user",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "end", "end-date", "name", "start", "start-date", "time", "to-user", "user-ids", "users"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +list-approve",
|
||||
Aliases: map[string]string{
|
||||
"approval-types": "types",
|
||||
"begin": "start",
|
||||
"biz-types": "types",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"since": "start",
|
||||
"staff-ids": "users",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"target-user-ids": "users",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"to": "end",
|
||||
"until": "end",
|
||||
"user-id-list": "users",
|
||||
"user-ids": "users",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "date", "staff-id", "time", "uid", "user", "user-id", "userid"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +query-report-data",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"report-column-ids": "columns",
|
||||
"since": "start",
|
||||
"staff-ids": "users",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"target-user-ids": "users",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"to": "end",
|
||||
"until": "end",
|
||||
"user-id-list": "users",
|
||||
"user-ids": "users",
|
||||
},
|
||||
Blocked: []string{"at-user-ids", "column-names", "date", "leave-names", "staff-id", "time", "uid", "user", "user-id", "userid"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +search-adjustment-rule",
|
||||
Aliases: map[string]string{
|
||||
"current-page": "page",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "name", "page-index", "page-token", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +search-class",
|
||||
Aliases: map[string]string{
|
||||
"class-filter-type": "filter-type",
|
||||
"class-scope": "filter-type",
|
||||
"current-page": "page",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "name", "page-index", "page-token", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +search-group",
|
||||
Aliases: map[string]string{
|
||||
"attendance-group-type": "type",
|
||||
"current-page": "page",
|
||||
"group-type": "type",
|
||||
"include-ble": "query-ble",
|
||||
"include-position": "query-position",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "name", "page-index", "page-token", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance +search-overtime-rule",
|
||||
Aliases: map[string]string{
|
||||
"current-page": "page",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "name", "page-index", "page-token", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "attendance check result",
|
||||
@@ -3912,11 +4226,44 @@ var generatedParamAliases = []ParamAliasEntry{
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "page-index", "page-token"},
|
||||
},
|
||||
{
|
||||
CLIPath: "ding +list",
|
||||
Aliases: map[string]string{
|
||||
"message-type": "type",
|
||||
"next-cursor": "cursor",
|
||||
},
|
||||
Blocked: []string{"next-token", "offset", "page", "page-token", "remind-type", "status"},
|
||||
},
|
||||
{
|
||||
CLIPath: "ding +recall-personal",
|
||||
Aliases: map[string]string{
|
||||
"ding-id": "id",
|
||||
"open-ding-id": "id",
|
||||
},
|
||||
Blocked: []string{"message-id", "request-id", "robot", "robot-code", "task-id", "uuid"},
|
||||
},
|
||||
{
|
||||
CLIPath: "ding +receiver-status",
|
||||
Aliases: map[string]string{
|
||||
"id": "ding-id",
|
||||
"id": "ding-id",
|
||||
"open-ding-id": "ding-id",
|
||||
},
|
||||
Blocked: []string{"message-id", "request-id", "task-id", "uuid"},
|
||||
},
|
||||
{
|
||||
CLIPath: "ding +send-personal",
|
||||
Aliases: map[string]string{
|
||||
"body": "content",
|
||||
"idempotency-key": "uuid",
|
||||
"message-content": "content",
|
||||
"open-dingtalk-ids": "users",
|
||||
"receiver-open-dingtalk-ids": "users",
|
||||
"recipient-open-dingtalk-ids": "users",
|
||||
"remind-type": "type",
|
||||
"request-id": "uuid",
|
||||
"text": "content",
|
||||
},
|
||||
Blocked: []string{"ding-id", "id", "message-type", "name", "open-ding-id", "open-dingtalk-id", "receiver-user-ids", "recipient-user-ids", "robot", "robot-code", "staff-id", "staff-ids", "status", "title", "user", "user-id", "user-ids"},
|
||||
},
|
||||
{
|
||||
CLIPath: "ding message receiver-status",
|
||||
@@ -6005,15 +6352,211 @@ var generatedParamAliases = []ParamAliasEntry{
|
||||
},
|
||||
Blocked: []string{"knowledge-base-id", "limit", "page-size", "part-size", "size", "space", "wiki-workspace-id", "workspace", "workspace-id"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +contact-list",
|
||||
Aliases: map[string]string{
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "limit",
|
||||
"page-token": "cursor",
|
||||
"per-page": "limit",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "offset", "page"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +find-mail-user",
|
||||
Aliases: map[string]string{
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "limit",
|
||||
"page-token": "cursor",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"name", "subject", "text", "title"},
|
||||
Blocked: []string{"count", "name", "offset", "page", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +folder-list",
|
||||
Aliases: map[string]string{
|
||||
"folder-id": "folder",
|
||||
},
|
||||
Blocked: []string{"calendar-id", "name", "node-id"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +message",
|
||||
Aliases: map[string]string{
|
||||
"mail-id": "id",
|
||||
"message-id": "id",
|
||||
},
|
||||
Blocked: []string{"attachment-id", "conversation-id", "internet-message-id", "thread-id"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +messages",
|
||||
Aliases: map[string]string{
|
||||
"mail-ids": "ids",
|
||||
"message-ids": "ids",
|
||||
},
|
||||
Blocked: []string{"conversation-id", "conversation-ids", "mail-id", "message-id", "thread-id", "thread-ids"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +recent-mail",
|
||||
Aliases: map[string]string{
|
||||
"folder-id": "folder",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "limit",
|
||||
"page-token": "cursor",
|
||||
"per-page": "limit",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"calendar-id", "count", "name", "node-id", "offset", "page"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +search-mail",
|
||||
Aliases: map[string]string{
|
||||
"limit": "size",
|
||||
"max-result": "size",
|
||||
"max-results": "size",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "size",
|
||||
"page-token": "cursor",
|
||||
"per-page": "size",
|
||||
"take": "size",
|
||||
"top": "size",
|
||||
},
|
||||
Blocked: []string{"count", "date", "folder", "folder-id", "from", "from-address", "has-attachments", "offset", "page", "sender", "subject", "to-address"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +template-list",
|
||||
Aliases: map[string]string{
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "limit",
|
||||
"page-token": "cursor",
|
||||
"per-page": "limit",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "offset", "page"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +thread",
|
||||
Aliases: map[string]string{
|
||||
"conversation-id": "id",
|
||||
"thread-id": "id",
|
||||
},
|
||||
Blocked: []string{"mail-id", "mail-ids", "message-id", "message-ids"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +thread-list",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"folder-id": "folder",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "limit",
|
||||
"page-token": "cursor",
|
||||
"per-page": "limit",
|
||||
"since": "start",
|
||||
"size": "limit",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"take": "limit",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"calendar-id", "count", "date", "name", "node-id", "offset", "page", "time"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +triage",
|
||||
Aliases: map[string]string{
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "limit",
|
||||
"page-token": "cursor",
|
||||
"per-page": "limit",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "date", "folder", "folder-id", "from", "from-address", "has-attachments", "offset", "page", "sender", "subject", "to-address"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +unread-mail",
|
||||
Aliases: map[string]string{
|
||||
"limit": "size",
|
||||
"max-result": "size",
|
||||
"max-results": "size",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "size",
|
||||
"page-token": "cursor",
|
||||
"per-page": "size",
|
||||
"take": "size",
|
||||
"top": "size",
|
||||
},
|
||||
Blocked: []string{"count", "keyword", "offset", "page", "query", "sender", "subject"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail +user-search",
|
||||
Aliases: map[string]string{
|
||||
"keywords": "keyword",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "limit",
|
||||
"page-token": "cursor",
|
||||
"per-page": "limit",
|
||||
"q": "keyword",
|
||||
"query": "keyword",
|
||||
"search-word": "keyword",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "name", "offset", "page", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "mail folder update",
|
||||
@@ -6052,6 +6595,123 @@ var generatedParamAliases = []ParamAliasEntry{
|
||||
},
|
||||
Blocked: []string{"name", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "markdown create",
|
||||
Aliases: map[string]string{
|
||||
"body": "content",
|
||||
"dingdrive-space-id": "space-id",
|
||||
"drive-space-id": "space-id",
|
||||
"file-name": "name",
|
||||
"filename": "name",
|
||||
"folder-id": "folder",
|
||||
"knowledge-base-id": "workspace",
|
||||
"local-file": "file",
|
||||
"markdown-content": "content",
|
||||
"plan-only": "dry-run",
|
||||
"preview-only": "dry-run",
|
||||
"source-file": "file",
|
||||
"storage-space-id": "space-id",
|
||||
"text": "content",
|
||||
"wiki-workspace-id": "workspace",
|
||||
},
|
||||
Blocked: []string{"dentry-id", "doc-id", "document-id", "file-id", "node", "node-id", "output-path", "pattern", "regex", "replacement", "title", "url", "version", "version2"},
|
||||
Ambiguous: []string{"content-file", "destination", "id", "path", "space"},
|
||||
},
|
||||
{
|
||||
CLIPath: "markdown diff",
|
||||
Aliases: map[string]string{
|
||||
"base-version": "version",
|
||||
"context-lines": "context",
|
||||
"dentry-uuid": "node",
|
||||
"diff-context": "context",
|
||||
"from-version": "version",
|
||||
"left-version": "version",
|
||||
"local-file": "file",
|
||||
"plan-only": "dry-run",
|
||||
"preview-only": "dry-run",
|
||||
"right-version": "version2",
|
||||
"source-file": "file",
|
||||
"surrounding-lines": "context",
|
||||
"target-version": "version2",
|
||||
"to-version": "version2",
|
||||
"version-no": "version",
|
||||
"version-number": "version",
|
||||
},
|
||||
Blocked: []string{"body", "content", "content-file", "folder", "folder-id", "name", "output-path", "pattern", "regex", "revision", "space-id", "version-id", "workspace", "workspace-id"},
|
||||
Ambiguous: []string{"destination", "left", "path", "right"},
|
||||
},
|
||||
{
|
||||
CLIPath: "markdown fetch",
|
||||
Aliases: map[string]string{
|
||||
"dentry-uuid": "node",
|
||||
"destination-path": "output",
|
||||
"dingdrive-space-id": "space-id",
|
||||
"document-id": "node",
|
||||
"download-to": "output",
|
||||
"drive-space-id": "space-id",
|
||||
"knowledge-base-id": "workspace",
|
||||
"output-file": "output",
|
||||
"output-path": "output",
|
||||
"save-path": "output",
|
||||
"save-to": "output",
|
||||
"storage-space-id": "space-id",
|
||||
"wiki-workspace-id": "workspace",
|
||||
},
|
||||
Blocked: []string{"content", "content-file", "dentry-id", "file", "file-path", "folder", "folder-id", "name", "parent-id", "pattern", "regex", "url", "version", "version2"},
|
||||
Ambiguous: []string{"destination", "path", "space"},
|
||||
},
|
||||
{
|
||||
CLIPath: "markdown overwrite",
|
||||
Aliases: map[string]string{
|
||||
"body": "content",
|
||||
"dentry-uuid": "node",
|
||||
"dingdrive-space-id": "space-id",
|
||||
"document-id": "node",
|
||||
"drive-space-id": "space-id",
|
||||
"file-name": "name",
|
||||
"filename": "name",
|
||||
"knowledge-base-id": "workspace",
|
||||
"local-file": "file",
|
||||
"markdown-content": "content",
|
||||
"no-write": "dry-run",
|
||||
"preview-only": "dry-run",
|
||||
"show-diff": "dry-run",
|
||||
"source-file": "file",
|
||||
"storage-space-id": "space-id",
|
||||
"text": "content",
|
||||
"wiki-workspace-id": "workspace",
|
||||
},
|
||||
Blocked: []string{"content-file", "dentry-id", "folder", "folder-id", "output-path", "parent-id", "pattern", "regex", "replacement", "title", "url", "version", "version2"},
|
||||
Ambiguous: []string{"destination", "id", "path", "space"},
|
||||
},
|
||||
{
|
||||
CLIPath: "markdown patch",
|
||||
Aliases: map[string]string{
|
||||
"dentry-uuid": "node",
|
||||
"dingdrive-space-id": "space-id",
|
||||
"document-id": "node",
|
||||
"drive-space-id": "space-id",
|
||||
"find-text": "pattern",
|
||||
"knowledge-base-id": "workspace",
|
||||
"match-pattern": "pattern",
|
||||
"new-text": "content",
|
||||
"no-write": "dry-run",
|
||||
"old-text": "pattern",
|
||||
"preview-only": "dry-run",
|
||||
"regexp": "regex",
|
||||
"regular-expression": "regex",
|
||||
"replace-with": "content",
|
||||
"replacement": "content",
|
||||
"replacement-text": "content",
|
||||
"search-pattern": "pattern",
|
||||
"show-diff": "dry-run",
|
||||
"storage-space-id": "space-id",
|
||||
"use-regex": "regex",
|
||||
"wiki-workspace-id": "workspace",
|
||||
},
|
||||
Blocked: []string{"content-file", "dentry-id", "file", "file-path", "folder", "folder-id", "name", "output-path", "parent-id", "query", "replacement-file", "url", "version", "version2"},
|
||||
Ambiguous: []string{"body", "destination", "id", "path", "space", "text", "value"},
|
||||
},
|
||||
{
|
||||
CLIPath: "minutes +action-items",
|
||||
Aliases: map[string]string{
|
||||
@@ -6655,6 +7315,128 @@ var generatedParamAliases = []ParamAliasEntry{
|
||||
CLIPath: "minutes upload create",
|
||||
Blocked: []string{"file", "file-path", "path", "template-ids"},
|
||||
},
|
||||
{
|
||||
CLIPath: "oa +list-cc",
|
||||
Aliases: map[string]string{
|
||||
"current-page": "page",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "name", "page-index", "page-token", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "oa +list-executed",
|
||||
Aliases: map[string]string{
|
||||
"current-page": "page",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "name", "page-index", "page-size", "page-token", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "oa +list-forms",
|
||||
Aliases: map[string]string{
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"next-cursor": "cursor",
|
||||
"next-page-token": "cursor",
|
||||
"next-token": "cursor",
|
||||
"page-size": "limit",
|
||||
"page-token": "cursor",
|
||||
"per-page": "limit",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "offset", "page"},
|
||||
},
|
||||
{
|
||||
CLIPath: "oa +list-pending",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"current-page": "page",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"since": "start",
|
||||
"size": "limit",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"take": "limit",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "date", "name", "offset", "page-index", "page-token", "subject", "text", "time", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "oa +list-submitted",
|
||||
Aliases: map[string]string{
|
||||
"current-page": "page",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "name", "page-index", "page-token", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "oa +my-initiated",
|
||||
Aliases: map[string]string{
|
||||
"current-page": "page",
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"max-result": "limit",
|
||||
"max-results": "limit",
|
||||
"page-no": "page",
|
||||
"page-num": "page",
|
||||
"page-size": "limit",
|
||||
"per-page": "limit",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
"size": "limit",
|
||||
"take": "limit",
|
||||
"top": "limit",
|
||||
},
|
||||
Blocked: []string{"count", "cursor", "name", "page-index", "page-token", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "oa +search-forms",
|
||||
Aliases: map[string]string{
|
||||
@@ -6675,6 +7457,100 @@ var generatedParamAliases = []ParamAliasEntry{
|
||||
},
|
||||
Blocked: []string{"name", "subject", "text", "title"},
|
||||
},
|
||||
{
|
||||
CLIPath: "report +inbox-list",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"from-staff-ids": "sender-user-ids",
|
||||
"limit": "size",
|
||||
"max-result": "size",
|
||||
"max-results": "size",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"page-size": "size",
|
||||
"per-page": "size",
|
||||
"sender-staff-ids": "sender-user-ids",
|
||||
"since": "start",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"take": "size",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"top": "size",
|
||||
},
|
||||
Blocked: []string{"count", "date", "page", "sender-id", "sender-staff-id", "sender-user-id", "staff-id", "staff-ids", "time", "user-id", "user-ids"},
|
||||
},
|
||||
{
|
||||
CLIPath: "report +outbox-list",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"limit": "size",
|
||||
"max-result": "size",
|
||||
"max-results": "size",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"modified-from": "modified-start",
|
||||
"modified-to": "modified-end",
|
||||
"name": "template-name",
|
||||
"page-size": "size",
|
||||
"per-page": "size",
|
||||
"report-template-name": "template-name",
|
||||
"since": "start",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"take": "size",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
"top": "size",
|
||||
"update-end": "modified-end",
|
||||
"update-start": "modified-start",
|
||||
"updated-end": "modified-end",
|
||||
"updated-start": "modified-start",
|
||||
},
|
||||
Blocked: []string{"count", "date", "page", "report-template-id", "template-id", "template-type", "time"},
|
||||
Ambiguous: []string{"template"},
|
||||
},
|
||||
{
|
||||
CLIPath: "report +report-latest",
|
||||
Aliases: map[string]string{
|
||||
"begin": "start",
|
||||
"end-date": "end",
|
||||
"end-time": "end",
|
||||
"from": "start",
|
||||
"from-date": "start",
|
||||
"max-time": "end",
|
||||
"min-time": "start",
|
||||
"name": "keyword",
|
||||
"report-template-name": "keyword",
|
||||
"since": "start",
|
||||
"start-date": "start",
|
||||
"start-time": "start",
|
||||
"template-name": "keyword",
|
||||
"time-max": "end",
|
||||
"time-min": "start",
|
||||
},
|
||||
Blocked: []string{"date", "modified-end", "modified-start", "report-template-id", "template-id", "time"},
|
||||
Ambiguous: []string{"template"},
|
||||
},
|
||||
{
|
||||
CLIPath: "report +template-search",
|
||||
Aliases: map[string]string{
|
||||
"keyword": "query",
|
||||
"keywords": "query",
|
||||
"q": "query",
|
||||
"search-word": "query",
|
||||
},
|
||||
Blocked: []string{"report-template-id", "subject", "template-id", "text", "title"},
|
||||
Ambiguous: []string{"name", "template"},
|
||||
},
|
||||
{
|
||||
CLIPath: "report list",
|
||||
Aliases: map[string]string{
|
||||
@@ -6693,6 +7569,33 @@ var generatedParamAliases = []ParamAliasEntry{
|
||||
CLIPath: "report outbox list",
|
||||
Blocked: []string{"template-type"},
|
||||
},
|
||||
{
|
||||
CLIPath: "sheet +list-sheets",
|
||||
Aliases: map[string]string{
|
||||
"dentry-uuid": "node",
|
||||
"doc": "node",
|
||||
"doc-id": "node",
|
||||
"document-id": "node",
|
||||
"file-id": "node",
|
||||
"node-id": "node",
|
||||
"url": "node",
|
||||
},
|
||||
Blocked: []string{"block-id", "comment-id", "comment-key", "dentry-id", "folder", "folder-id", "id", "job-id", "name", "parent-id", "revision", "role", "space-id", "task-id", "template-id", "version", "workspace", "workspace-id"},
|
||||
},
|
||||
{
|
||||
CLIPath: "sheet +read",
|
||||
Aliases: map[string]string{
|
||||
"dentry-uuid": "node",
|
||||
"doc": "node",
|
||||
"doc-id": "node",
|
||||
"document-id": "node",
|
||||
"file-id": "node",
|
||||
"node-id": "node",
|
||||
"url": "node",
|
||||
"worksheet-id": "sheet-id",
|
||||
},
|
||||
Blocked: []string{"a1-ranges", "block-id", "cell-ranges", "comment-id", "comment-key", "dentry-id", "destination-range", "folder", "folder-id", "id", "job-id", "name", "parent-id", "ranges", "revision", "role", "source-range", "source-sheet-id", "space-id", "start-cell", "target-range", "target-sheet-id", "task-id", "template-id", "title", "version", "workspace", "workspace-id"},
|
||||
},
|
||||
{
|
||||
CLIPath: "todo +assign",
|
||||
Aliases: map[string]string{
|
||||
|
||||
+819
-644
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user