@knpkv/atlassian-common 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +25 -10
- package/dist/Brand.d.ts +15 -15
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +5 -5
- package/dist/Brand.js.map +1 -1
- package/dist/Hash.d.ts +12 -14
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +18 -24
- package/dist/Hash.js.map +1 -1
- package/dist/ast/BlockNode.d.ts +120 -177
- package/dist/ast/BlockNode.d.ts.map +1 -1
- package/dist/ast/BlockNode.js +28 -8
- package/dist/ast/BlockNode.js.map +1 -1
- package/dist/ast/Document.d.ts +114 -156
- package/dist/ast/Document.d.ts.map +1 -1
- package/dist/ast/Document.js +1 -1
- package/dist/ast/Document.js.map +1 -1
- package/dist/ast/InlineNode.d.ts +59 -247
- package/dist/ast/InlineNode.d.ts.map +1 -1
- package/dist/ast/InlineNode.js +28 -3
- package/dist/ast/InlineNode.js.map +1 -1
- package/dist/ast/MacroNode.d.ts +62 -102
- package/dist/ast/MacroNode.d.ts.map +1 -1
- package/dist/ast/MacroNode.js +12 -5
- package/dist/ast/MacroNode.js.map +1 -1
- package/dist/auth/OAuthOperations.d.ts +1 -1
- package/dist/auth/OAuthOperations.d.ts.map +1 -1
- package/dist/auth/OAuthOperations.js +5 -6
- package/dist/auth/OAuthOperations.js.map +1 -1
- package/dist/auth/OAuthResponseSchemas.d.ts +13 -13
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +58 -0
- package/dist/bin.js.map +1 -0
- package/dist/config/AuthProfiles.d.ts +342 -0
- package/dist/config/AuthProfiles.d.ts.map +1 -0
- package/dist/config/AuthProfiles.js +275 -0
- package/dist/config/AuthProfiles.js.map +1 -0
- package/dist/config/ConfigPaths.d.ts +12 -26
- package/dist/config/ConfigPaths.d.ts.map +1 -1
- package/dist/config/ConfigPaths.js +33 -3
- package/dist/config/ConfigPaths.js.map +1 -1
- package/dist/config/OAuthSchemas.d.ts +24 -24
- package/dist/config/ProfileManager.d.ts +92 -0
- package/dist/config/ProfileManager.d.ts.map +1 -0
- package/dist/config/ProfileManager.js +175 -0
- package/dist/config/ProfileManager.js.map +1 -0
- package/dist/config/TokenStorage.d.ts +5 -24
- package/dist/config/TokenStorage.d.ts.map +1 -1
- package/dist/config/TokenStorage.js +35 -22
- package/dist/config/TokenStorage.js.map +1 -1
- package/dist/config/index.d.ts +3 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +5 -1
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +17 -11
- package/src/Brand.ts +5 -17
- package/src/Hash.ts +27 -27
- package/src/ast/BlockNode.ts +13 -13
- package/src/ast/Document.ts +1 -1
- package/src/ast/InlineNode.ts +5 -5
- package/src/ast/MacroNode.ts +7 -6
- package/src/auth/OAuthOperations.ts +5 -6
- package/src/bin.ts +115 -0
- package/src/config/AuthProfiles.ts +384 -0
- package/src/config/ConfigPaths.ts +21 -7
- package/src/config/ProfileManager.ts +268 -0
- package/src/config/TokenStorage.ts +23 -27
- package/src/config/index.ts +42 -0
- package/src/index.ts +1 -1
- package/test/AuthProfiles.test.ts +131 -0
- package/test/Hash.test.ts +52 -0
- package/test/OAuthOperations.test.ts +2 -3
- package/test/ProfileManager.test.ts +188 -0
- package/tsconfig.tsbuildinfo +1 -1
package/dist/ast/MacroNode.d.ts
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Confluence macro AST nodes (panels, expand, TOC, code, status).
|
|
3
|
-
*
|
|
4
|
-
* **Mental model**
|
|
5
|
-
*
|
|
6
|
-
* - **Macro = structured metadata + block children**: Each macro wraps Confluence-specific
|
|
7
|
-
* semantics (panel type, code language, status color) around standard block content.
|
|
8
|
-
* - **Serialization-friendly**: Macros carry enough metadata for Markdown comment encoding
|
|
9
|
-
* and ADF reconstruction.
|
|
10
|
-
*
|
|
11
|
-
* @module
|
|
12
|
-
*/
|
|
13
1
|
import * as Schema from "effect/Schema";
|
|
14
2
|
/**
|
|
15
3
|
* Supported panel type names.
|
|
@@ -22,7 +10,7 @@ export declare const PanelTypes: readonly ["info", "warning", "note", "tip", "er
|
|
|
22
10
|
*
|
|
23
11
|
* @category MacroNode
|
|
24
12
|
*/
|
|
25
|
-
export declare const PanelType: Schema.
|
|
13
|
+
export declare const PanelType: Schema.Literals<readonly ["info", "warning", "note", "tip", "error", "panel"]>;
|
|
26
14
|
/**
|
|
27
15
|
* Type for panel type.
|
|
28
16
|
*
|
|
@@ -47,14 +35,12 @@ export type PanelType = Schema.Schema.Type<typeof PanelType>;
|
|
|
47
35
|
* @category MacroNode
|
|
48
36
|
*/
|
|
49
37
|
export declare const InfoPanel: Schema.Struct<{
|
|
50
|
-
_tag: Schema.Literal<
|
|
51
|
-
version: Schema.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
57
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
38
|
+
readonly _tag: Schema.Literal<"InfoPanel">;
|
|
39
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
40
|
+
readonly panelType: Schema.Literals<readonly ["info", "warning", "note", "tip", "error", "panel"]>;
|
|
41
|
+
readonly title: Schema.optional<Schema.String>;
|
|
42
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
43
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
58
44
|
}>;
|
|
59
45
|
/**
|
|
60
46
|
* Type for InfoPanel.
|
|
@@ -68,13 +54,11 @@ export type InfoPanel = Schema.Schema.Type<typeof InfoPanel>;
|
|
|
68
54
|
* @category MacroNode
|
|
69
55
|
*/
|
|
70
56
|
export declare const ExpandMacro: Schema.Struct<{
|
|
71
|
-
_tag: Schema.Literal<
|
|
72
|
-
version: Schema.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
77
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
57
|
+
readonly _tag: Schema.Literal<"ExpandMacro">;
|
|
58
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
59
|
+
readonly title: Schema.optional<Schema.String>;
|
|
60
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
61
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
78
62
|
}>;
|
|
79
63
|
/**
|
|
80
64
|
* Type for ExpandMacro.
|
|
@@ -88,13 +72,11 @@ export type ExpandMacro = Schema.Schema.Type<typeof ExpandMacro>;
|
|
|
88
72
|
* @category MacroNode
|
|
89
73
|
*/
|
|
90
74
|
export declare const TocMacro: Schema.Struct<{
|
|
91
|
-
_tag: Schema.Literal<
|
|
92
|
-
version: Schema.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
maxLevel: Schema.optional<typeof Schema.Number>;
|
|
97
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
75
|
+
readonly _tag: Schema.Literal<"TocMacro">;
|
|
76
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
77
|
+
readonly minLevel: Schema.optional<Schema.Number>;
|
|
78
|
+
readonly maxLevel: Schema.optional<Schema.Number>;
|
|
79
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
98
80
|
}>;
|
|
99
81
|
/**
|
|
100
82
|
* Type for TocMacro.
|
|
@@ -108,21 +90,15 @@ export type TocMacro = Schema.Schema.Type<typeof TocMacro>;
|
|
|
108
90
|
* @category MacroNode
|
|
109
91
|
*/
|
|
110
92
|
export declare const CodeMacro: Schema.Struct<{
|
|
111
|
-
_tag: Schema.Literal<
|
|
112
|
-
version: Schema.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}>;
|
|
121
|
-
collapse: Schema.optionalWith<typeof Schema.Boolean, {
|
|
122
|
-
default: () => false;
|
|
123
|
-
}>;
|
|
124
|
-
firstLine: Schema.optional<typeof Schema.Number>;
|
|
125
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
93
|
+
readonly _tag: Schema.Literal<"CodeMacro">;
|
|
94
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
95
|
+
readonly language: Schema.optional<Schema.String>;
|
|
96
|
+
readonly title: Schema.optional<Schema.String>;
|
|
97
|
+
readonly code: Schema.String;
|
|
98
|
+
readonly lineNumbers: Schema.withConstructorDefault<Schema.Boolean>;
|
|
99
|
+
readonly collapse: Schema.withConstructorDefault<Schema.Boolean>;
|
|
100
|
+
readonly firstLine: Schema.optional<Schema.Number>;
|
|
101
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
126
102
|
}>;
|
|
127
103
|
/**
|
|
128
104
|
* Type for CodeMacro.
|
|
@@ -136,13 +112,11 @@ export type CodeMacro = Schema.Schema.Type<typeof CodeMacro>;
|
|
|
136
112
|
* @category MacroNode
|
|
137
113
|
*/
|
|
138
114
|
export declare const StatusMacro: Schema.Struct<{
|
|
139
|
-
_tag: Schema.Literal<
|
|
140
|
-
version: Schema.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
color: Schema.Literal<["Grey", "Red", "Yellow", "Green", "Blue"]>;
|
|
145
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
115
|
+
readonly _tag: Schema.Literal<"StatusMacro">;
|
|
116
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
117
|
+
readonly text: Schema.String;
|
|
118
|
+
readonly color: Schema.Literals<readonly ["Grey", "Red", "Yellow", "Green", "Blue"]>;
|
|
119
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
146
120
|
}>;
|
|
147
121
|
/**
|
|
148
122
|
* Type for StatusMacro.
|
|
@@ -155,55 +129,41 @@ export type StatusMacro = Schema.Schema.Type<typeof StatusMacro>;
|
|
|
155
129
|
*
|
|
156
130
|
* @category MacroNode
|
|
157
131
|
*/
|
|
158
|
-
export declare const MacroNode: Schema.Union<[Schema.Struct<{
|
|
159
|
-
_tag: Schema.Literal<
|
|
160
|
-
version: Schema.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
166
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
132
|
+
export declare const MacroNode: Schema.Union<readonly [Schema.Struct<{
|
|
133
|
+
readonly _tag: Schema.Literal<"InfoPanel">;
|
|
134
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
135
|
+
readonly panelType: Schema.Literals<readonly ["info", "warning", "note", "tip", "error", "panel"]>;
|
|
136
|
+
readonly title: Schema.optional<Schema.String>;
|
|
137
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
138
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
167
139
|
}>, Schema.Struct<{
|
|
168
|
-
_tag: Schema.Literal<
|
|
169
|
-
version: Schema.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
174
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
140
|
+
readonly _tag: Schema.Literal<"ExpandMacro">;
|
|
141
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
142
|
+
readonly title: Schema.optional<Schema.String>;
|
|
143
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
144
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
175
145
|
}>, Schema.Struct<{
|
|
176
|
-
_tag: Schema.Literal<
|
|
177
|
-
version: Schema.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
maxLevel: Schema.optional<typeof Schema.Number>;
|
|
182
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
146
|
+
readonly _tag: Schema.Literal<"TocMacro">;
|
|
147
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
148
|
+
readonly minLevel: Schema.optional<Schema.Number>;
|
|
149
|
+
readonly maxLevel: Schema.optional<Schema.Number>;
|
|
150
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
183
151
|
}>, Schema.Struct<{
|
|
184
|
-
_tag: Schema.Literal<
|
|
185
|
-
version: Schema.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}>;
|
|
194
|
-
collapse: Schema.optionalWith<typeof Schema.Boolean, {
|
|
195
|
-
default: () => false;
|
|
196
|
-
}>;
|
|
197
|
-
firstLine: Schema.optional<typeof Schema.Number>;
|
|
198
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
152
|
+
readonly _tag: Schema.Literal<"CodeMacro">;
|
|
153
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
154
|
+
readonly language: Schema.optional<Schema.String>;
|
|
155
|
+
readonly title: Schema.optional<Schema.String>;
|
|
156
|
+
readonly code: Schema.String;
|
|
157
|
+
readonly lineNumbers: Schema.withConstructorDefault<Schema.Boolean>;
|
|
158
|
+
readonly collapse: Schema.withConstructorDefault<Schema.Boolean>;
|
|
159
|
+
readonly firstLine: Schema.optional<Schema.Number>;
|
|
160
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
199
161
|
}>, Schema.Struct<{
|
|
200
|
-
_tag: Schema.Literal<
|
|
201
|
-
version: Schema.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
color: Schema.Literal<["Grey", "Red", "Yellow", "Green", "Blue"]>;
|
|
206
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
162
|
+
readonly _tag: Schema.Literal<"StatusMacro">;
|
|
163
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
164
|
+
readonly text: Schema.String;
|
|
165
|
+
readonly color: Schema.Literals<readonly ["Grey", "Red", "Yellow", "Green", "Blue"]>;
|
|
166
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
207
167
|
}>]>;
|
|
208
168
|
/**
|
|
209
169
|
* Type for macro nodes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MacroNode.d.ts","sourceRoot":"","sources":["../../src/ast/MacroNode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MacroNode.d.ts","sourceRoot":"","sources":["../../src/ast/MacroNode.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC;;;;GAIG;AACH,eAAO,MAAM,UAAU,+DAAgE,CAAA;AAEvF;;;;GAIG;AACH,eAAO,MAAM,SAAS,gFAA8B,CAAA;AAEpD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAA;AAE5D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS;;;;;;;EAOpB,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAA;AAE5D;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;EAMtB,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;EAMnB,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE1D;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;EAUpB,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAA;AAE5D;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;EAMtB,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMpB,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAA"}
|
package/dist/ast/MacroNode.js
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module
|
|
12
12
|
*/
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
13
14
|
import * as Schema from "effect/Schema";
|
|
14
15
|
import { RawSource, SchemaVersion, SimpleBlockNode } from "./BlockNode.js";
|
|
15
16
|
/**
|
|
@@ -23,7 +24,7 @@ export const PanelTypes = ["info", "warning", "note", "tip", "error", "panel"];
|
|
|
23
24
|
*
|
|
24
25
|
* @category MacroNode
|
|
25
26
|
*/
|
|
26
|
-
export const PanelType = Schema.
|
|
27
|
+
export const PanelType = Schema.Literals(PanelTypes);
|
|
27
28
|
/**
|
|
28
29
|
* Info/Warning/Note panel macro.
|
|
29
30
|
*
|
|
@@ -84,8 +85,8 @@ export const CodeMacro = Schema.Struct({
|
|
|
84
85
|
language: Schema.optional(Schema.String),
|
|
85
86
|
title: Schema.optional(Schema.String),
|
|
86
87
|
code: Schema.String,
|
|
87
|
-
lineNumbers: Schema.
|
|
88
|
-
collapse: Schema.
|
|
88
|
+
lineNumbers: Schema.Boolean.pipe(Schema.withConstructorDefault(Effect.succeed(false))),
|
|
89
|
+
collapse: Schema.Boolean.pipe(Schema.withConstructorDefault(Effect.succeed(false))),
|
|
89
90
|
firstLine: Schema.optional(Schema.Number),
|
|
90
91
|
rawSource: RawSource
|
|
91
92
|
});
|
|
@@ -98,7 +99,7 @@ export const StatusMacro = Schema.Struct({
|
|
|
98
99
|
_tag: Schema.Literal("StatusMacro"),
|
|
99
100
|
version: SchemaVersion,
|
|
100
101
|
text: Schema.String,
|
|
101
|
-
color: Schema.
|
|
102
|
+
color: Schema.Literals(["Grey", "Red", "Yellow", "Green", "Blue"]),
|
|
102
103
|
rawSource: RawSource
|
|
103
104
|
});
|
|
104
105
|
/**
|
|
@@ -106,5 +107,11 @@ export const StatusMacro = Schema.Struct({
|
|
|
106
107
|
*
|
|
107
108
|
* @category MacroNode
|
|
108
109
|
*/
|
|
109
|
-
export const MacroNode = Schema.Union(
|
|
110
|
+
export const MacroNode = Schema.Union([
|
|
111
|
+
InfoPanel,
|
|
112
|
+
ExpandMacro,
|
|
113
|
+
TocMacro,
|
|
114
|
+
CodeMacro,
|
|
115
|
+
StatusMacro
|
|
116
|
+
]);
|
|
110
117
|
//# sourceMappingURL=MacroNode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MacroNode.js","sourceRoot":"","sources":["../../src/ast/MacroNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAE1E;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAU,CAAA;AAEvF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CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClE,SAAS,EAAE,SAAS;CACrB,CAAC,CAAA;AASF;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC;IACpC,SAAS;IACT,WAAW;IACX,QAAQ;IACR,SAAS;IACT,WAAW;CACZ,CAAC,CAAA"}
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
*
|
|
19
19
|
* @module
|
|
20
20
|
*/
|
|
21
|
-
import * as HttpClient from "@effect/platform/HttpClient";
|
|
22
21
|
import * as Effect from "effect/Effect";
|
|
22
|
+
import { HttpClient } from "effect/unstable/http";
|
|
23
23
|
import { type OAuthConfig, type OAuthToken } from "../config/OAuthSchemas.js";
|
|
24
24
|
import { OAuthError } from "./OAuthErrors.js";
|
|
25
25
|
import { type AccessibleResource, type TokenResponse, type UserInfo } from "./OAuthResponseSchemas.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthOperations.d.ts","sourceRoot":"","sources":["../../src/auth/OAuthOperations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"OAuthOperations.d.ts","sourceRoot":"","sources":["../../src/auth/OAuthOperations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,UAAU,EAAqB,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,aAAa,EAElB,KAAK,QAAQ,EAEd,MAAM,2BAA2B,CA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as HttpClient from "@effect/platform/HttpClient";
|
|
22
|
-
import * as HttpClientRequest from "@effect/platform/HttpClientRequest";
|
|
23
21
|
import * as Effect from "effect/Effect";
|
|
24
22
|
import * as Schema from "effect/Schema";
|
|
23
|
+
import { HttpClient, HttpClientRequest } from "effect/unstable/http";
|
|
25
24
|
import {} from "../config/OAuthSchemas.js";
|
|
26
25
|
import { ME_URL, RESOURCES_URL, REVOKE_URL, TOKEN_URL } from "./OAuthEndpoints.js";
|
|
27
26
|
import { OAuthError } from "./OAuthErrors.js";
|
|
@@ -50,7 +49,7 @@ export const exchangeCodeForTokens = (code, config, options) => Effect.gen(funct
|
|
|
50
49
|
return yield* Effect.fail(new OAuthError({ step: "token", cause: `HTTP ${response.status}` }));
|
|
51
50
|
}
|
|
52
51
|
const body = yield* response.json;
|
|
53
|
-
return yield* Schema.
|
|
52
|
+
return yield* Schema.decodeUnknownEffect(TokenResponseSchema)(body);
|
|
54
53
|
}).pipe(Effect.mapError((cause) => new OAuthError({ step: "token", cause })));
|
|
55
54
|
/**
|
|
56
55
|
* Get accessible resources (sites) for the authenticated user.
|
|
@@ -69,7 +68,7 @@ export const getAccessibleResources = (accessToken) => Effect.gen(function* () {
|
|
|
69
68
|
return yield* Effect.fail(new OAuthError({ step: "resources", cause: `HTTP ${response.status}` }));
|
|
70
69
|
}
|
|
71
70
|
const body = yield* response.json;
|
|
72
|
-
return yield* Schema.
|
|
71
|
+
return yield* Schema.decodeUnknownEffect(Schema.Array(AccessibleResourceSchema))(body);
|
|
73
72
|
}).pipe(Effect.mapError((cause) => new OAuthError({ step: "resources", cause })));
|
|
74
73
|
/**
|
|
75
74
|
* Get user info from /me endpoint.
|
|
@@ -88,7 +87,7 @@ export const getUserInfo = (accessToken) => Effect.gen(function* () {
|
|
|
88
87
|
return yield* Effect.fail(new OAuthError({ step: "user-info", cause: `HTTP ${response.status}` }));
|
|
89
88
|
}
|
|
90
89
|
const body = yield* response.json;
|
|
91
|
-
return yield* Schema.
|
|
90
|
+
return yield* Schema.decodeUnknownEffect(UserInfoSchema)(body);
|
|
92
91
|
}).pipe(Effect.mapError((cause) => new OAuthError({ step: "user-info", cause })));
|
|
93
92
|
/**
|
|
94
93
|
* Refresh an expired OAuth token.
|
|
@@ -112,7 +111,7 @@ export const refreshToken = (token, config) => Effect.gen(function* () {
|
|
|
112
111
|
return yield* Effect.fail(new OAuthError({ step: "refresh", cause: `HTTP ${response.status}: ${text}` }));
|
|
113
112
|
}
|
|
114
113
|
const body = yield* response.json.pipe(Effect.mapError((cause) => new OAuthError({ step: "refresh", cause })));
|
|
115
|
-
const tokenResponse = yield* Schema.
|
|
114
|
+
const tokenResponse = yield* Schema.decodeUnknownEffect(TokenResponseSchema)(body).pipe(Effect.mapError((cause) => new OAuthError({ step: "refresh", cause })));
|
|
116
115
|
return {
|
|
117
116
|
...token,
|
|
118
117
|
access_token: tokenResponse.access_token,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthOperations.js","sourceRoot":"","sources":["../../src/auth/OAuthOperations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"OAuthOperations.js","sourceRoot":"","sources":["../../src/auth/OAuthOperations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAqC,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAEL,wBAAwB,EAExB,mBAAmB,EAEnB,cAAc,EACf,MAAM,2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AAe,GAAG,CAC7B,aAA4B,EAC5B,IAAwB,EACxB,IAAc,EACF,EAAE,CAAC,CAAC;IAChB,YAAY,EAAE,aAAa,CAAC,YAAY;IACxC,aAAa,EAAE,aAAa,CAAC,aAAa;IAC1C,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,aAAa,CAAC,UAAU,GAAG,IAAI;IACxD,KAAK,EAAE,aAAa,CAAC,KAAK;IAC1B,QAAQ,EAAE,IAAI,CAAC,EAAE;IACjB,QAAQ,EAAE,IAAI,CAAC,GAAG;IAClB,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,KAAK;KAClB;CACF,CAAC,CAAA"}
|
|
@@ -16,11 +16,11 @@ import * as Schema from "effect/Schema";
|
|
|
16
16
|
* @category Schema
|
|
17
17
|
*/
|
|
18
18
|
export declare const TokenResponseSchema: Schema.Struct<{
|
|
19
|
-
access_token:
|
|
20
|
-
refresh_token:
|
|
21
|
-
expires_in:
|
|
22
|
-
scope:
|
|
23
|
-
token_type:
|
|
19
|
+
readonly access_token: Schema.String;
|
|
20
|
+
readonly refresh_token: Schema.String;
|
|
21
|
+
readonly expires_in: Schema.Number;
|
|
22
|
+
readonly scope: Schema.String;
|
|
23
|
+
readonly token_type: Schema.String;
|
|
24
24
|
}>;
|
|
25
25
|
/**
|
|
26
26
|
* Type for OAuth2 token response.
|
|
@@ -34,11 +34,11 @@ export type TokenResponse = Schema.Schema.Type<typeof TokenResponseSchema>;
|
|
|
34
34
|
* @category Schema
|
|
35
35
|
*/
|
|
36
36
|
export declare const AccessibleResourceSchema: Schema.Struct<{
|
|
37
|
-
id:
|
|
38
|
-
name:
|
|
39
|
-
url:
|
|
40
|
-
scopes: Schema
|
|
41
|
-
avatarUrl: Schema.optional<
|
|
37
|
+
readonly id: Schema.String;
|
|
38
|
+
readonly name: Schema.String;
|
|
39
|
+
readonly url: Schema.String;
|
|
40
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
41
|
+
readonly avatarUrl: Schema.optional<Schema.String>;
|
|
42
42
|
}>;
|
|
43
43
|
/**
|
|
44
44
|
* Type for accessible resource.
|
|
@@ -52,9 +52,9 @@ export type AccessibleResource = Schema.Schema.Type<typeof AccessibleResourceSch
|
|
|
52
52
|
* @category Schema
|
|
53
53
|
*/
|
|
54
54
|
export declare const UserInfoSchema: Schema.Struct<{
|
|
55
|
-
account_id:
|
|
56
|
-
name:
|
|
57
|
-
email:
|
|
55
|
+
readonly account_id: Schema.String;
|
|
56
|
+
readonly name: Schema.String;
|
|
57
|
+
readonly email: Schema.String;
|
|
58
58
|
}>;
|
|
59
59
|
/**
|
|
60
60
|
* Type for user info.
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
|
package/dist/bin.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { NodeFileSystem, NodeHttpClient, NodePath, NodeRuntime, NodeServices, NodeStdio } from "@effect/platform-node";
|
|
3
|
+
import * as Console from "effect/Console";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import * as Layer from "effect/Layer";
|
|
6
|
+
import * as Stdio from "effect/Stdio";
|
|
7
|
+
import { Argument as Args, Command } from "effect/unstable/cli";
|
|
8
|
+
import pkg from "../package.json" with { type: "json" };
|
|
9
|
+
import { HomeDirectoryLive, inspectAllToolProfiles, migrateLegacyProfiles, refreshActiveProfiles, useProfileForAllTools } from "./config/index.js";
|
|
10
|
+
const profileArg = Args.string("profile").pipe(Args.withDescription("Profile ID, name, site URL, cloud ID, or account ID"));
|
|
11
|
+
const printStatuses = (statuses) => Effect.gen(function* () {
|
|
12
|
+
for (const status of statuses) {
|
|
13
|
+
const active = status.activeProfile;
|
|
14
|
+
yield* Console.log(`${status.tool.label} (${status.tool.toolName})`);
|
|
15
|
+
if (status.authStoreName !== status.tool.toolName) {
|
|
16
|
+
yield* Console.log(` Auth store: ${status.authStoreName}`);
|
|
17
|
+
}
|
|
18
|
+
yield* Console.log(` Active: ${active ? active.name : "none"}`);
|
|
19
|
+
if (active) {
|
|
20
|
+
yield* Console.log(` Profile ID: ${active.id}`);
|
|
21
|
+
yield* Console.log(` Site: ${active.token.site_url}`);
|
|
22
|
+
yield* Console.log(` Token: ${status.tokenStatus}`);
|
|
23
|
+
yield* Console.log(` Scopes: ${status.missingScopes.length === 0 ? "ok" : `missing ${status.missingScopes.join(", ")}`}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const profilesList = Command.make("list", {}, () => inspectAllToolProfiles().pipe(Effect.flatMap(printStatuses)))
|
|
28
|
+
.pipe(Command.withDescription("List active Atlassian profiles for all tools"));
|
|
29
|
+
const profilesUse = Command.make("use", { profile: profileArg }, ({ profile }) => useProfileForAllTools(profile).pipe(Effect.flatMap(printStatuses))).pipe(Command.withDescription("Use a profile across Atlassian tools"));
|
|
30
|
+
const profilesDoctor = Command.make("doctor", {}, () => inspectAllToolProfiles().pipe(Effect.flatMap((statuses) => Effect.gen(function* () {
|
|
31
|
+
yield* printStatuses(statuses);
|
|
32
|
+
for (const status of statuses) {
|
|
33
|
+
if (!status.activeProfile) {
|
|
34
|
+
yield* Console.log(`Suggestion: run '${status.tool.loginHint}' for ${status.tool.label}.`);
|
|
35
|
+
}
|
|
36
|
+
if (status.tokenStatus === "expired") {
|
|
37
|
+
yield* Console.log(`Suggestion: run 'atlassian auth refresh' or '${status.tool.loginHint}' for ${status.tool.label}.`);
|
|
38
|
+
}
|
|
39
|
+
if (status.missingScopes.length > 0) {
|
|
40
|
+
yield* Console.log(`Suggestion: re-login with ${status.tool.label}; missing scopes: ${status.missingScopes.join(", ")}.`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
})))).pipe(Command.withDescription("Diagnose tokens, scopes, and active profile usage"));
|
|
44
|
+
const profilesMigrate = Command.make("migrate", {}, () => migrateLegacyProfiles().pipe(Effect.flatMap(printStatuses)))
|
|
45
|
+
.pipe(Command.withDescription("Migrate legacy auth.json files into shared profiles.json storage"));
|
|
46
|
+
const profiles = Command.make("profiles").pipe(Command.withDescription("Manage shared Atlassian auth profiles"), Command.withSubcommands([profilesList, profilesUse, profilesDoctor, profilesMigrate]));
|
|
47
|
+
const authRefresh = Command.make("refresh", {}, () => refreshActiveProfiles().pipe(Effect.flatMap(printStatuses)))
|
|
48
|
+
.pipe(Command.withDescription("Refresh expired active OAuth tokens"));
|
|
49
|
+
const auth = Command.make("auth").pipe(Command.withDescription("Manage Atlassian authentication"), Command.withSubcommands([authRefresh]));
|
|
50
|
+
const atlassian = Command.make("atlassian", {}, () => Console.log("Usage: atlassian profiles|auth")).pipe(Command.withDescription("Unified Atlassian profile manager"), Command.withSubcommands([profiles, auth]));
|
|
51
|
+
const cli = Command.runWith(atlassian, { version: pkg.version });
|
|
52
|
+
const program = Effect.gen(function* () {
|
|
53
|
+
const stdio = yield* Stdio.Stdio;
|
|
54
|
+
const args = yield* stdio.args;
|
|
55
|
+
return yield* cli(args);
|
|
56
|
+
}).pipe(Effect.provide(NodeStdio.layer), Effect.provide(Layer.mergeAll(NodeServices.layer, NodeFileSystem.layer, NodePath.layer, NodeHttpClient.layerFetch, HomeDirectoryLive)), Effect.catch((error) => Console.error(String(error)).pipe(Effect.andThen(Effect.fail(error)))));
|
|
57
|
+
NodeRuntime.runMain(program);
|
|
58
|
+
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAA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