feishu-docs-cli 0.1.0-beta.4 → 0.1.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scopes.d.ts +4 -13
- package/dist/scopes.js +13 -13
- package/dist/scopes.js.map +1 -1
- package/package.json +1 -1
package/dist/scopes.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OAuth scope catalog.
|
|
3
3
|
*
|
|
4
|
-
* BASE_SCOPES —
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* BASE_SCOPES — all no-review (免审) scopes needed for core functionality.
|
|
5
|
+
* Requested during `feishu-docs login`.
|
|
6
|
+
* FEATURE_SCOPE_GROUPS — scopes that require admin review; granted on-demand
|
|
7
|
+
* via `feishu-docs authorize --feature <name>`.
|
|
7
8
|
*/
|
|
8
9
|
export declare const BASE_SCOPES: string[];
|
|
9
10
|
export declare const FEATURE_SCOPE_GROUPS: {
|
|
@@ -17,16 +18,6 @@ export declare const FEATURE_SCOPE_GROUPS: {
|
|
|
17
18
|
readonly description: "联系人只读(通过邮件/手机号查找用户)";
|
|
18
19
|
readonly commands: readonly ["share add"];
|
|
19
20
|
};
|
|
20
|
-
readonly whiteboard: {
|
|
21
|
-
readonly scopes: readonly ["board:whiteboard:node:read"];
|
|
22
|
-
readonly description: "白板节点只读";
|
|
23
|
-
readonly commands: readonly ["read(白板)"];
|
|
24
|
-
};
|
|
25
|
-
readonly bitable: {
|
|
26
|
-
readonly scopes: readonly ["bitable:app:readonly"];
|
|
27
|
-
readonly description: "多维表格只读";
|
|
28
|
-
readonly commands: readonly ["read(多维表格)"];
|
|
29
|
-
};
|
|
30
21
|
};
|
|
31
22
|
export type FeatureName = keyof typeof FEATURE_SCOPE_GROUPS;
|
|
32
23
|
export declare const FEATURE_NAMES: FeatureName[];
|
package/dist/scopes.js
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OAuth scope catalog.
|
|
3
3
|
*
|
|
4
|
-
* BASE_SCOPES —
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* BASE_SCOPES — all no-review (免审) scopes needed for core functionality.
|
|
5
|
+
* Requested during `feishu-docs login`.
|
|
6
|
+
* FEATURE_SCOPE_GROUPS — scopes that require admin review; granted on-demand
|
|
7
|
+
* via `feishu-docs authorize --feature <name>`.
|
|
7
8
|
*/
|
|
8
9
|
export const BASE_SCOPES = [
|
|
10
|
+
// Wiki & documents
|
|
9
11
|
"wiki:wiki",
|
|
10
12
|
"docx:document",
|
|
11
13
|
"docx:document.block:convert",
|
|
14
|
+
// Embedded spreadsheets (read command, sheets/v2 API)
|
|
15
|
+
"sheets:spreadsheet:readonly",
|
|
16
|
+
// Embedded whiteboards (read command, board/v1 API)
|
|
17
|
+
"board:whiteboard:node:read",
|
|
18
|
+
// Embedded bitable / multi-dimensional tables (read command, bitable/v1 API)
|
|
19
|
+
"bitable:app:readonly",
|
|
20
|
+
// Document search (search command, suite/docs-api)
|
|
21
|
+
"search:docs:read",
|
|
12
22
|
];
|
|
13
23
|
export const FEATURE_SCOPE_GROUPS = {
|
|
14
24
|
drive: {
|
|
@@ -21,16 +31,6 @@ export const FEATURE_SCOPE_GROUPS = {
|
|
|
21
31
|
description: "联系人只读(通过邮件/手机号查找用户)",
|
|
22
32
|
commands: ["share add"],
|
|
23
33
|
},
|
|
24
|
-
whiteboard: {
|
|
25
|
-
scopes: ["board:whiteboard:node:read"],
|
|
26
|
-
description: "白板节点只读",
|
|
27
|
-
commands: ["read(白板)"],
|
|
28
|
-
},
|
|
29
|
-
bitable: {
|
|
30
|
-
scopes: ["bitable:app:readonly"],
|
|
31
|
-
description: "多维表格只读",
|
|
32
|
-
commands: ["read(多维表格)"],
|
|
33
|
-
},
|
|
34
34
|
};
|
|
35
35
|
export const FEATURE_NAMES = Object.keys(FEATURE_SCOPE_GROUPS);
|
|
36
36
|
/** All scopes known to this catalog (base + all feature groups). */
|
package/dist/scopes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,mBAAmB;IACnB,WAAW;IACX,eAAe;IACf,6BAA6B;IAC7B,sDAAsD;IACtD,6BAA6B;IAC7B,oDAAoD;IACpD,4BAA4B;IAC5B,6EAA6E;IAC7E,sBAAsB;IACtB,mDAAmD;IACnD,kBAAkB;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE;QACL,MAAM,EAAE,CAAC,aAAa,CAAC;QACvB,WAAW,EAAE,2BAA2B;QACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,CAAC;KACpC;IACD,OAAO,EAAE;QACP,MAAM,EAAE,CAAC,+BAA+B,CAAC;QACzC,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;CACO,CAAC;AAIX,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAkB,CAAC;AAEhF,oEAAoE;AACpE,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAS;IAC9C,GAAG,WAAW;IACd,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;CAChE,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAC9B,WAA+B,EAC/B,QAAkB;IAElB,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAC5B,MAAM,OAAO,GAAG,IAAI,GAAG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