tinet-agent-cli 0.1.0.dev36__py3-none-any.whl

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.
Files changed (104) hide show
  1. taco/__init__.py +1 -0
  2. taco/agent_openapi/__init__.py +1 -0
  3. taco/agent_openapi/catalog.py +198 -0
  4. taco/agent_openapi/models.py +47 -0
  5. taco/agent_openapi/parameters.py +111 -0
  6. taco/agent_openapi/service.py +73 -0
  7. taco/aikb/__init__.py +4 -0
  8. taco/aikb/catalog.py +380 -0
  9. taco/aikb/executors.py +157 -0
  10. taco/aikb/file_input.py +55 -0
  11. taco/aikb/models.py +42 -0
  12. taco/aikb/parameters.py +135 -0
  13. taco/aikb/service.py +68 -0
  14. taco/assets/__init__.py +1 -0
  15. taco/assets/agent_openapi/catalog.json +14 -0
  16. taco/assets/agent_openapi/operations/conversation/list-conversations.json +67 -0
  17. taco/assets/agent_openapi/operations/message/list-conversation-messages.json +80 -0
  18. taco/assets/agent_openapi/operations/trace/list-message-traces.json +72 -0
  19. taco/assets/aikb/catalog.json +41 -0
  20. taco/assets/aikb/operations/conversation/chat-conversation-on-open.json +99 -0
  21. taco/assets/aikb/operations/directory/delete-directory.json +81 -0
  22. taco/assets/aikb/operations/directory/edit-directory.json +97 -0
  23. taco/assets/aikb/operations/directory/list-directory-tree.json +106 -0
  24. taco/assets/aikb/operations/directory/save-directory.json +109 -0
  25. taco/assets/aikb/operations/faq/create-faq.json +193 -0
  26. taco/assets/aikb/operations/faq/delete-faq.json +81 -0
  27. taco/assets/aikb/operations/faq/describe-faq.json +82 -0
  28. taco/assets/aikb/operations/faq/edit-faq.json +193 -0
  29. taco/assets/aikb/operations/faq/list-faqs.json +136 -0
  30. taco/assets/aikb/operations/file/create-file.json +145 -0
  31. taco/assets/aikb/operations/file/delete-files.json +110 -0
  32. taco/assets/aikb/operations/file/describe-file.json +82 -0
  33. taco/assets/aikb/operations/file/get-file-upload-url.json +154 -0
  34. taco/assets/aikb/operations/file/list-files.json +146 -0
  35. taco/assets/aikb/operations/media/describe-faq-media-url.json +98 -0
  36. taco/assets/aikb/operations/media/describe-file-media-url.json +90 -0
  37. taco/assets/aikb/operations/oss/signature-for-upload.json +85 -0
  38. taco/assets/aikb/operations/recycle-bin/list-recycled-items.json +151 -0
  39. taco/assets/aikb/operations/repository/describe-bot-repository.json +71 -0
  40. taco/assets/aikb/operations/repository/list-private-repositories.json +75 -0
  41. taco/assets/aikb/operations/repository/list-public-repositories.json +75 -0
  42. taco/assets/aikb/operations/search/search-knowledge-on-open.json +180 -0
  43. taco/assets/examples/README.md +3 -0
  44. taco/assets/examples/agent-basic.json +16 -0
  45. taco/assets/examples/agent-builtin-tool.json +28 -0
  46. taco/assets/examples/agent-workflow-tool.json +30 -0
  47. taco/assets/examples/chatflow-basic.json +24 -0
  48. taco/assets/examples/workflow-http.json +34 -0
  49. taco/assets/manifest.json +12 -0
  50. taco/assets/scenarios/README.md +3 -0
  51. taco/assets/scenarios/agent-basic.json +80 -0
  52. taco/assets/scenarios/agent-builtin-tool.json +116 -0
  53. taco/assets/scenarios/agent-workflow-tool.json +277 -0
  54. taco/assets/schemas/README.md +3 -0
  55. taco/assets/schemas/agent-tool.json +71 -0
  56. taco/assets/schemas/agent.json +199 -0
  57. taco/assets/schemas/chatflow.json +1048 -0
  58. taco/assets/schemas/workflow.http.json +1052 -0
  59. taco/assets/schemas/workflow.json +1052 -0
  60. taco/assets/skills/README.md +3 -0
  61. taco/assets/skills/taco/SKILL.md +68 -0
  62. taco/assets/skills/taco/manifest.json +10 -0
  63. taco/cli.py +127 -0
  64. taco/commands/__init__.py +1 -0
  65. taco/commands/agent.py +760 -0
  66. taco/commands/aikb.py +132 -0
  67. taco/commands/app.py +151 -0
  68. taco/commands/category.py +37 -0
  69. taco/commands/chatflow.py +183 -0
  70. taco/commands/credential.py +222 -0
  71. taco/commands/discovery.py +409 -0
  72. taco/commands/model.py +55 -0
  73. taco/commands/profile.py +124 -0
  74. taco/commands/tool.py +61 -0
  75. taco/commands/workflow.py +714 -0
  76. taco/core/__init__.py +1 -0
  77. taco/core/access_token_manager.py +98 -0
  78. taco/core/api_client.py +263 -0
  79. taco/core/assets.py +81 -0
  80. taco/core/config_store.py +209 -0
  81. taco/core/context.py +19 -0
  82. taco/core/developer_center_client.py +165 -0
  83. taco/core/errors.py +19 -0
  84. taco/core/file_lock.py +80 -0
  85. taco/core/http_headers.py +21 -0
  86. taco/core/openapi_signer.py +221 -0
  87. taco/core/output.py +72 -0
  88. taco/core/profile_manager.py +217 -0
  89. taco/core/profile_resolver.py +151 -0
  90. taco/core/secure_file.py +76 -0
  91. taco/release.py +363 -0
  92. taco/services/__init__.py +1 -0
  93. taco/services/agent_service.py +314 -0
  94. taco/services/app_service.py +153 -0
  95. taco/services/category_service.py +57 -0
  96. taco/services/model_service.py +117 -0
  97. taco/services/tool_service.py +482 -0
  98. taco/services/workflow_compiler.py +1665 -0
  99. taco/services/workflow_service.py +652 -0
  100. taco/services/workflow_tool_service.py +439 -0
  101. tinet_agent_cli-0.1.0.dev36.dist-info/METADATA +158 -0
  102. tinet_agent_cli-0.1.0.dev36.dist-info/RECORD +104 -0
  103. tinet_agent_cli-0.1.0.dev36.dist-info/WHEEL +4 -0
  104. tinet_agent_cli-0.1.0.dev36.dist-info/entry_points.txt +2 -0
@@ -0,0 +1,82 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "id": "describe-file",
4
+ "title": "获取文档详情",
5
+ "description": "获取文档详情,参数和返回结构依据开发者中心 AIKB 文档快照。",
6
+ "group": "file",
7
+ "keywords": [
8
+ "获取文档详情",
9
+ "describe-file",
10
+ "describe_file"
11
+ ],
12
+ "source": {
13
+ "url": "https://develop.clink.cn/develop/api/aikb.html",
14
+ "anchor": "获取文档详情",
15
+ "snapshot_date": "2026-08-14"
16
+ },
17
+ "http": {
18
+ "method": "POST",
19
+ "path": "/aikb/describe_file",
20
+ "content_type": "application/json",
21
+ "query_schema": {
22
+ "type": "object",
23
+ "properties": {},
24
+ "additionalProperties": false
25
+ },
26
+ "body_schema": {
27
+ "type": "object",
28
+ "properties": {
29
+ "id": {
30
+ "type": "integer",
31
+ "title": "文档 ID",
32
+ "description": "需要查询的文档 ID。"
33
+ }
34
+ },
35
+ "required": [
36
+ "id"
37
+ ],
38
+ "additionalProperties": false
39
+ }
40
+ },
41
+ "response": {
42
+ "request_id_pointer": "/requestId",
43
+ "schema": {
44
+ "type": "object",
45
+ "required": [
46
+ "result"
47
+ ],
48
+ "properties": {
49
+ "requestId": {
50
+ "type": [
51
+ "string",
52
+ "null"
53
+ ],
54
+ "description": "开发者中心请求 ID;部分接口可能返回 null。"
55
+ },
56
+ "result": {
57
+ "type": "object",
58
+ "description": "接口返回的业务结果。",
59
+ "additionalProperties": true
60
+ }
61
+ },
62
+ "additionalProperties": true
63
+ },
64
+ "sensitive_pointers": []
65
+ },
66
+ "risk": {
67
+ "level": "read",
68
+ "requires_confirmation": false,
69
+ "target_fields": []
70
+ },
71
+ "execution": {
72
+ "kind": "http"
73
+ },
74
+ "examples": [
75
+ {
76
+ "title": "查询文档详情",
77
+ "params": {
78
+ "id": 18396
79
+ }
80
+ }
81
+ ]
82
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "id": "get-file-upload-url",
4
+ "title": "获取文档上传地址并上传文档",
5
+ "description": "获取文档上传地址并上传文档,参数和返回结构依据开发者中心 AIKB 文档快照。",
6
+ "group": "file",
7
+ "keywords": [
8
+ "获取文档上传地址并上传文档",
9
+ "get-file-upload-url",
10
+ "get_file_upload_url"
11
+ ],
12
+ "source": {
13
+ "url": "https://develop.clink.cn/develop/api/aikb.html",
14
+ "anchor": "获取文档上传地址并上传文档",
15
+ "snapshot_date": "2026-08-14"
16
+ },
17
+ "http": {
18
+ "method": "POST",
19
+ "path": "/aikb/get_file_upload_url",
20
+ "content_type": "application/json",
21
+ "query_schema": {
22
+ "type": "object",
23
+ "properties": {},
24
+ "additionalProperties": false
25
+ },
26
+ "body_schema": {
27
+ "type": "object",
28
+ "properties": {
29
+ "fileName": {
30
+ "type": "string",
31
+ "title": "文件名称",
32
+ "description": "由 --file 的 basename 自动生成。",
33
+ "minLength": 1
34
+ },
35
+ "fileSize": {
36
+ "type": "integer",
37
+ "title": "文件大小",
38
+ "description": "由已打开文件的实际字节数自动生成。",
39
+ "minimum": 0
40
+ }
41
+ },
42
+ "required": [
43
+ "fileName",
44
+ "fileSize"
45
+ ],
46
+ "additionalProperties": false
47
+ }
48
+ },
49
+ "response": {
50
+ "request_id_pointer": "/requestId",
51
+ "schema": {
52
+ "type": "object",
53
+ "required": [
54
+ "result"
55
+ ],
56
+ "properties": {
57
+ "requestId": {
58
+ "type": [
59
+ "string",
60
+ "null"
61
+ ],
62
+ "description": "开发者中心请求 ID;部分接口可能返回 null。"
63
+ },
64
+ "result": {
65
+ "type": "object",
66
+ "description": "临时上传信息。",
67
+ "required": [
68
+ "uploadUrl",
69
+ "fileKey"
70
+ ],
71
+ "properties": {
72
+ "uploadUrl": {
73
+ "type": "string",
74
+ "description": "一次性 PUT 上传地址,不得记录或输出。",
75
+ "format": "uri"
76
+ },
77
+ "fileKey": {
78
+ "type": "string",
79
+ "description": "上传成功后用于创建文档的文件唯一编码。",
80
+ "minLength": 1
81
+ }
82
+ },
83
+ "additionalProperties": true
84
+ }
85
+ },
86
+ "additionalProperties": true
87
+ },
88
+ "sensitive_pointers": [
89
+ "/result/uploadUrl"
90
+ ]
91
+ },
92
+ "file_input": {
93
+ "required": true,
94
+ "regular_file_only": true,
95
+ "reject_symlink": true
96
+ },
97
+ "risk": {
98
+ "level": "write",
99
+ "requires_confirmation": true,
100
+ "target_fields": []
101
+ },
102
+ "execution": {
103
+ "kind": "presigned-put-v1",
104
+ "request_bindings": [
105
+ {
106
+ "source": "file.basename",
107
+ "target": "/fileName"
108
+ },
109
+ {
110
+ "source": "file.size",
111
+ "target": "/fileSize"
112
+ }
113
+ ],
114
+ "upload": {
115
+ "url_pointer": "/result/uploadUrl",
116
+ "method": "PUT",
117
+ "success_statuses": [
118
+ 200
119
+ ],
120
+ "follow_redirects": false,
121
+ "forward_auth_headers": false,
122
+ "timeout_profile": "upload"
123
+ },
124
+ "output": {
125
+ "file_key": {
126
+ "type": "string",
127
+ "source": "prepare_response",
128
+ "pointer": "/result/fileKey",
129
+ "description": "供创建文档接口使用的文件唯一编码。"
130
+ },
131
+ "file_name": {
132
+ "type": "string",
133
+ "source": "file.basename",
134
+ "description": "已上传的本地文件名。"
135
+ },
136
+ "file_size": {
137
+ "type": "integer",
138
+ "source": "file.size",
139
+ "description": "已上传文件的字节数。"
140
+ },
141
+ "uploaded": {
142
+ "type": "boolean",
143
+ "constant": true,
144
+ "description": "上传成功时固定为 true。"
145
+ }
146
+ }
147
+ },
148
+ "examples": [
149
+ {
150
+ "title": "上传 Markdown 文档",
151
+ "file": "./常见问题.md"
152
+ }
153
+ ]
154
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "id": "list-files",
4
+ "title": "获取文档列表",
5
+ "description": "获取文档列表,参数和返回结构依据开发者中心 AIKB 文档快照。",
6
+ "group": "file",
7
+ "keywords": [
8
+ "获取文档列表",
9
+ "list-files",
10
+ "list_files"
11
+ ],
12
+ "source": {
13
+ "url": "https://develop.clink.cn/develop/api/aikb.html",
14
+ "anchor": "获取文档列表",
15
+ "snapshot_date": "2026-08-14"
16
+ },
17
+ "http": {
18
+ "method": "POST",
19
+ "path": "/aikb/list_files",
20
+ "content_type": "application/json",
21
+ "query_schema": {
22
+ "type": "object",
23
+ "properties": {},
24
+ "additionalProperties": false
25
+ },
26
+ "body_schema": {
27
+ "type": "object",
28
+ "properties": {
29
+ "repositoryId": {
30
+ "type": "integer",
31
+ "title": "知识库 ID",
32
+ "description": "目标知识库 ID,可通过知识库列表接口获取。"
33
+ },
34
+ "directoryId": {
35
+ "type": "integer",
36
+ "title": "目录 ID",
37
+ "description": "目标目录 ID,可通过目录树接口获取。"
38
+ },
39
+ "createTimeStart": {
40
+ "type": "string",
41
+ "title": "创建开始时间",
42
+ "description": "创建时间闭区间开始,需与结束时间同时提供。"
43
+ },
44
+ "createTimeEnd": {
45
+ "type": "string",
46
+ "title": "创建结束时间",
47
+ "description": "创建时间开区间结束,需与开始时间同时提供。"
48
+ },
49
+ "updateTimeStart": {
50
+ "type": "string",
51
+ "title": "更新开始时间",
52
+ "description": "更新时间闭区间开始,需与结束时间同时提供。"
53
+ },
54
+ "updateTimeEnd": {
55
+ "type": "string",
56
+ "title": "更新结束时间",
57
+ "description": "更新时间开区间结束,需与开始时间同时提供。"
58
+ },
59
+ "offset": {
60
+ "type": "integer",
61
+ "title": "偏移量",
62
+ "description": "分页偏移量,从 0 开始,最大 10000。",
63
+ "minimum": 0,
64
+ "maximum": 10000,
65
+ "default": 0
66
+ },
67
+ "limit": {
68
+ "type": "integer",
69
+ "title": "查询数量",
70
+ "description": "本次查询记录数,最大 100。",
71
+ "minimum": 1,
72
+ "maximum": 100,
73
+ "default": 10
74
+ }
75
+ },
76
+ "required": [
77
+ "repositoryId",
78
+ "offset",
79
+ "limit"
80
+ ],
81
+ "additionalProperties": false
82
+ }
83
+ },
84
+ "response": {
85
+ "request_id_pointer": "/requestId",
86
+ "schema": {
87
+ "type": "object",
88
+ "required": [
89
+ "result",
90
+ "pageNumber",
91
+ "pageSize",
92
+ "totalCount"
93
+ ],
94
+ "properties": {
95
+ "requestId": {
96
+ "type": [
97
+ "string",
98
+ "null"
99
+ ],
100
+ "description": "开发者中心请求 ID;部分接口可能返回 null。"
101
+ },
102
+ "result": {
103
+ "type": "array",
104
+ "description": "接口返回的业务结果列表。",
105
+ "items": {
106
+ "type": "object",
107
+ "description": "列表中的业务记录。",
108
+ "additionalProperties": true
109
+ }
110
+ },
111
+ "pageNumber": {
112
+ "type": "integer",
113
+ "description": "当前页码。"
114
+ },
115
+ "pageSize": {
116
+ "type": "integer",
117
+ "description": "本页容量。"
118
+ },
119
+ "totalCount": {
120
+ "type": "integer",
121
+ "description": "总记录数。"
122
+ }
123
+ },
124
+ "additionalProperties": true
125
+ },
126
+ "sensitive_pointers": []
127
+ },
128
+ "risk": {
129
+ "level": "read",
130
+ "requires_confirmation": false,
131
+ "target_fields": []
132
+ },
133
+ "execution": {
134
+ "kind": "http"
135
+ },
136
+ "examples": [
137
+ {
138
+ "title": "分页查询文档",
139
+ "params": {
140
+ "repositoryId": 104482,
141
+ "offset": 0,
142
+ "limit": 10
143
+ }
144
+ }
145
+ ]
146
+ }
@@ -0,0 +1,98 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "id": "describe-faq-media-url",
4
+ "title": "获取问答媒体地址",
5
+ "description": "获取问答媒体地址,参数和返回结构依据开发者中心 AIKB 文档快照。",
6
+ "group": "media",
7
+ "keywords": [
8
+ "获取问答媒体地址",
9
+ "describe-faq-media-url",
10
+ "describe_faq_media_url"
11
+ ],
12
+ "source": {
13
+ "url": "https://develop.clink.cn/develop/api/aikb.html",
14
+ "anchor": "获取问答媒体地址",
15
+ "snapshot_date": "2026-08-14"
16
+ },
17
+ "http": {
18
+ "method": "GET",
19
+ "path": "/aikb/describe_faq_media_url",
20
+ "content_type": "application/json",
21
+ "query_schema": {
22
+ "type": "object",
23
+ "properties": {
24
+ "faqId": {
25
+ "type": "integer",
26
+ "title": "问答 ID",
27
+ "description": "问答知识 ID。"
28
+ },
29
+ "fileKey": {
30
+ "type": "string",
31
+ "title": "文件 Key",
32
+ "description": "问答附件的 OSS fileKey。",
33
+ "minLength": 1
34
+ },
35
+ "inline": {
36
+ "type": "boolean",
37
+ "title": "在线预览",
38
+ "description": "true 表示预览,false 表示下载。"
39
+ }
40
+ },
41
+ "required": [
42
+ "faqId",
43
+ "fileKey"
44
+ ],
45
+ "additionalProperties": false
46
+ },
47
+ "body_schema": {
48
+ "type": "object",
49
+ "properties": {},
50
+ "additionalProperties": false
51
+ }
52
+ },
53
+ "response": {
54
+ "request_id_pointer": "/requestId",
55
+ "schema": {
56
+ "type": "object",
57
+ "required": [
58
+ "url"
59
+ ],
60
+ "properties": {
61
+ "requestId": {
62
+ "type": [
63
+ "string",
64
+ "null"
65
+ ],
66
+ "description": "开发者中心请求 ID;部分接口可能返回 null。"
67
+ },
68
+ "url": {
69
+ "type": "string",
70
+ "description": "问答附件预览或下载的临时 URL。",
71
+ "format": "uri"
72
+ }
73
+ },
74
+ "additionalProperties": true
75
+ },
76
+ "sensitive_pointers": [
77
+ "/url"
78
+ ]
79
+ },
80
+ "risk": {
81
+ "level": "read",
82
+ "requires_confirmation": false,
83
+ "target_fields": []
84
+ },
85
+ "execution": {
86
+ "kind": "http"
87
+ },
88
+ "examples": [
89
+ {
90
+ "title": "预览问答附件",
91
+ "params": {
92
+ "faqId": 12345,
93
+ "fileKey": "file/attachment/example.png",
94
+ "inline": true
95
+ }
96
+ }
97
+ ]
98
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "id": "describe-file-media-url",
4
+ "title": "获取文档媒体地址",
5
+ "description": "获取文档媒体地址,参数和返回结构依据开发者中心 AIKB 文档快照。",
6
+ "group": "media",
7
+ "keywords": [
8
+ "获取文档媒体地址",
9
+ "describe-file-media-url",
10
+ "describe_file_media_url"
11
+ ],
12
+ "source": {
13
+ "url": "https://develop.clink.cn/develop/api/aikb.html",
14
+ "anchor": "获取文档媒体地址",
15
+ "snapshot_date": "2026-08-14"
16
+ },
17
+ "http": {
18
+ "method": "GET",
19
+ "path": "/aikb/describe_file_media_url",
20
+ "content_type": "application/json",
21
+ "query_schema": {
22
+ "type": "object",
23
+ "properties": {
24
+ "fileId": {
25
+ "type": "integer",
26
+ "title": "文档 ID",
27
+ "description": "需要预览或下载的文档 ID。"
28
+ },
29
+ "inline": {
30
+ "type": "boolean",
31
+ "title": "在线预览",
32
+ "description": "true 表示预览,false 表示下载。"
33
+ }
34
+ },
35
+ "required": [
36
+ "fileId"
37
+ ],
38
+ "additionalProperties": false
39
+ },
40
+ "body_schema": {
41
+ "type": "object",
42
+ "properties": {},
43
+ "additionalProperties": false
44
+ }
45
+ },
46
+ "response": {
47
+ "request_id_pointer": "/requestId",
48
+ "schema": {
49
+ "type": "object",
50
+ "required": [
51
+ "url"
52
+ ],
53
+ "properties": {
54
+ "requestId": {
55
+ "type": [
56
+ "string",
57
+ "null"
58
+ ],
59
+ "description": "开发者中心请求 ID;部分接口可能返回 null。"
60
+ },
61
+ "url": {
62
+ "type": "string",
63
+ "description": "文档预览或下载的临时 URL。",
64
+ "format": "uri"
65
+ }
66
+ },
67
+ "additionalProperties": true
68
+ },
69
+ "sensitive_pointers": [
70
+ "/url"
71
+ ]
72
+ },
73
+ "risk": {
74
+ "level": "read",
75
+ "requires_confirmation": false,
76
+ "target_fields": []
77
+ },
78
+ "execution": {
79
+ "kind": "http"
80
+ },
81
+ "examples": [
82
+ {
83
+ "title": "预览文档",
84
+ "params": {
85
+ "fileId": 12345,
86
+ "inline": true
87
+ }
88
+ }
89
+ ]
90
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "schema_version": "1.0",
3
+ "id": "signature-for-upload",
4
+ "title": "获取 OSS 上传签名",
5
+ "description": "获取 OSS 上传签名,参数和返回结构依据开发者中心 AIKB 文档快照。",
6
+ "group": "oss",
7
+ "keywords": [
8
+ "获取 OSS 上传签名",
9
+ "signature-for-upload",
10
+ "signature_for_upload"
11
+ ],
12
+ "source": {
13
+ "url": "https://develop.clink.cn/develop/api/aikb.html",
14
+ "anchor": "获取 OSS 上传签名",
15
+ "snapshot_date": "2026-08-14"
16
+ },
17
+ "http": {
18
+ "method": "POST",
19
+ "path": "/aikb/signature_for_upload",
20
+ "content_type": "application/json",
21
+ "query_schema": {
22
+ "type": "object",
23
+ "properties": {},
24
+ "additionalProperties": false
25
+ },
26
+ "body_schema": {
27
+ "type": "object",
28
+ "properties": {
29
+ "fileName": {
30
+ "type": "string",
31
+ "title": "文件名称",
32
+ "description": "需要生成 OSS 表单上传签名的文件名。",
33
+ "minLength": 1
34
+ }
35
+ },
36
+ "required": [
37
+ "fileName"
38
+ ],
39
+ "additionalProperties": false
40
+ }
41
+ },
42
+ "response": {
43
+ "request_id_pointer": "/requestId",
44
+ "schema": {
45
+ "type": "object",
46
+ "required": [
47
+ "result"
48
+ ],
49
+ "properties": {
50
+ "requestId": {
51
+ "type": [
52
+ "string",
53
+ "null"
54
+ ],
55
+ "description": "开发者中心请求 ID;部分接口可能返回 null。"
56
+ },
57
+ "result": {
58
+ "type": "object",
59
+ "description": "OSS 表单上传签名及 HTML 内容。",
60
+ "additionalProperties": true
61
+ }
62
+ },
63
+ "additionalProperties": true
64
+ },
65
+ "sensitive_pointers": [
66
+ "/result"
67
+ ]
68
+ },
69
+ "risk": {
70
+ "level": "write",
71
+ "requires_confirmation": true,
72
+ "target_fields": []
73
+ },
74
+ "execution": {
75
+ "kind": "http"
76
+ },
77
+ "examples": [
78
+ {
79
+ "title": "获取图片上传签名",
80
+ "params": {
81
+ "fileName": "material.png"
82
+ }
83
+ }
84
+ ]
85
+ }