@knpkv/atlassian-common 0.2.0 → 0.3.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 +19 -0
- 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/config/ConfigPaths.d.ts +6 -26
- package/dist/config/ConfigPaths.d.ts.map +1 -1
- package/dist/config/ConfigPaths.js +23 -3
- package/dist/config/ConfigPaths.js.map +1 -1
- package/dist/config/OAuthSchemas.d.ts +24 -24
- 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/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 +7 -9
- 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/config/ConfigPaths.ts +7 -7
- package/src/config/TokenStorage.ts +23 -27
- package/src/index.ts +1 -1
- package/test/Hash.test.ts +52 -0
- package/test/OAuthOperations.test.ts +2 -3
- 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,eAA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Q,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;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,
|
|
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,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;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;AASpD;;;;;;;;;;;;;;;;GAgBG;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CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACtF,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACnF,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,SAAS;CACrB,CAAC,CAAA;AASF;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;IACnC,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,KAAK,EAAE,MAAM,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,CAAA;AAElC;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,4DAA4D;IAC5D,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3C;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,MAAM,EACZ,QAAQ,WAAW,EACnB,SAAS,mBAAmB,KAC3B,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,CA+B9D,CAAA;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,aAAa,MAAM,KAClB,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,CAuBlF,CAAA;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GACtB,aAAa,MAAM,KAClB,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,CAuBzD,CAAA;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,UAAU,EACjB,QAAQ,WAAW,KAClB,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,CAyC1D,CAAA;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GACtB,OAAO,UAAU,EACjB,QAAQ,WAAW,KAClB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,CAyBpD,CAAA;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAC1B,eAAe,aAAa,EAC5B,MAAM,kBAAkB,EACxB,MAAM,QAAQ,KACb,UAYD,CAAA"}
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
*
|
|
19
19
|
* @module
|
|
20
20
|
*/
|
|
21
|
-
import * 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,2BAA2B,CAAA;AAclC;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAY,EACZ,MAAmB,EACnB,OAA4B,EACqC,EAAE,CACnE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAA;IAC/C,MAAM,SAAS,GAA2B;QACxC,UAAU,EAAE,oBAAoB;QAChC,SAAS,EAAE,MAAM,CAAC,QAAQ;QAC1B,aAAa,EAAE,MAAM,CAAC,YAAY;QAClC,IAAI;QACJ,YAAY,EAAE,oBAAoB,OAAO,CAAC,IAAI,WAAW;KAC1D,CAAA;IACD,IAAI,OAAO,CAAC,YAAY;QAAE,SAAS,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY,CAAA;IACxE,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS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are 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.
|
|
@@ -1,29 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* XDG-compliant config path resolution and secure file I/O for Atlassian tools.
|
|
3
|
-
*
|
|
4
|
-
* **Mental model**
|
|
5
|
-
*
|
|
6
|
-
* - **Injectable home directory**: {@link HomeDirectoryTag} is an Effect service so tests
|
|
7
|
-
* can substitute a temp dir without touching env vars. {@link HomeDirectoryLive} reads
|
|
8
|
-
* `HOME` / `USERPROFILE` via Effect `Config`.
|
|
9
|
-
* - **XDG hierarchy**: `~/.config/atlassian/<toolName>/` — respects `XDG_CONFIG_HOME` override.
|
|
10
|
-
* - **Secure by default**: {@link ensureConfigDir} creates dirs at `0o700`;
|
|
11
|
-
* {@link writeSecureFile} writes at `0o600`.
|
|
12
|
-
*
|
|
13
|
-
* **Common tasks**
|
|
14
|
-
*
|
|
15
|
-
* - Resolve config dir: {@link getConfigDir}
|
|
16
|
-
* - Get auth file path: {@link getAuthPath}
|
|
17
|
-
* - Write credential files: {@link writeSecureFile}
|
|
18
|
-
*
|
|
19
|
-
* @module
|
|
20
|
-
*/
|
|
21
|
-
import type * as Error from "@effect/platform/Error";
|
|
22
|
-
import * as FileSystem from "@effect/platform/FileSystem";
|
|
23
|
-
import * as Path from "@effect/platform/Path";
|
|
24
1
|
import * as Context from "effect/Context";
|
|
25
2
|
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as FileSystem from "effect/FileSystem";
|
|
26
4
|
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as Path from "effect/Path";
|
|
6
|
+
import type * as PlatformError from "effect/PlatformError";
|
|
27
7
|
declare const HomeDirectoryError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
28
8
|
readonly _tag: "HomeDirectoryError";
|
|
29
9
|
} & Readonly<A>;
|
|
@@ -46,7 +26,7 @@ export declare class HomeDirectoryError extends HomeDirectoryError_base<{
|
|
|
46
26
|
export interface HomeDirectory {
|
|
47
27
|
readonly get: () => Effect.Effect<string, HomeDirectoryError>;
|
|
48
28
|
}
|
|
49
|
-
declare const HomeDirectoryTag_base: Context.
|
|
29
|
+
declare const HomeDirectoryTag_base: Context.ServiceClass<HomeDirectoryTag, "@knpkv/atlassian-common/HomeDirectory", HomeDirectory>;
|
|
50
30
|
/**
|
|
51
31
|
* Tag for the HomeDirectory service.
|
|
52
32
|
*
|
|
@@ -84,12 +64,12 @@ export declare const getOAuthConfigPath: (toolName: string) => Effect.Effect<str
|
|
|
84
64
|
*
|
|
85
65
|
* @category Utilities
|
|
86
66
|
*/
|
|
87
|
-
export declare const ensureConfigDir: (toolName: string) => Effect.Effect<string, HomeDirectoryError |
|
|
67
|
+
export declare const ensureConfigDir: (toolName: string) => Effect.Effect<string, HomeDirectoryError | PlatformError.PlatformError, FileSystem.FileSystem | Path.Path | HomeDirectoryTag>;
|
|
88
68
|
/**
|
|
89
69
|
* Write file with secure permissions (600).
|
|
90
70
|
*
|
|
91
71
|
* @category Utilities
|
|
92
72
|
*/
|
|
93
|
-
export declare const writeSecureFile: (filePath: string, content: string) => Effect.Effect<void,
|
|
73
|
+
export declare const writeSecureFile: (filePath: string, content: string) => Effect.Effect<void, PlatformError.PlatformError, FileSystem.FileSystem>;
|
|
94
74
|
export {};
|
|
95
75
|
//# sourceMappingURL=ConfigPaths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigPaths.d.ts","sourceRoot":"","sources":["../../src/config/ConfigPaths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfigPaths.d.ts","sourceRoot":"","sources":["../../src/config/ConfigPaths.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAErC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,KAAK,aAAa,MAAM,sBAAsB,CAAA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MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,aAAa,EAAE,UAAU,CAAC,UAAU,CAQrE,CAAA"}
|
|
@@ -1,11 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* XDG-compliant config path resolution and secure file I/O for Atlassian tools.
|
|
3
|
+
*
|
|
4
|
+
* **Mental model**
|
|
5
|
+
*
|
|
6
|
+
* - **Injectable home directory**: {@link HomeDirectoryTag} is an Effect service so tests
|
|
7
|
+
* can substitute a temp dir without touching env vars. {@link HomeDirectoryLive} reads
|
|
8
|
+
* `HOME` / `USERPROFILE` via Effect `Config`.
|
|
9
|
+
* - **XDG hierarchy**: `~/.config/atlassian/<toolName>/` — respects `XDG_CONFIG_HOME` override.
|
|
10
|
+
* - **Secure by default**: {@link ensureConfigDir} creates dirs at `0o700`;
|
|
11
|
+
* {@link writeSecureFile} writes at `0o600`.
|
|
12
|
+
*
|
|
13
|
+
* **Common tasks**
|
|
14
|
+
*
|
|
15
|
+
* - Resolve config dir: {@link getConfigDir}
|
|
16
|
+
* - Get auth file path: {@link getAuthPath}
|
|
17
|
+
* - Write credential files: {@link writeSecureFile}
|
|
18
|
+
*
|
|
19
|
+
* @module
|
|
20
|
+
*/
|
|
3
21
|
import * as Config from "effect/Config";
|
|
4
22
|
import * as Context from "effect/Context";
|
|
5
23
|
import * as Data from "effect/Data";
|
|
6
24
|
import * as Effect from "effect/Effect";
|
|
25
|
+
import * as FileSystem from "effect/FileSystem";
|
|
7
26
|
import * as Layer from "effect/Layer";
|
|
8
27
|
import * as Option from "effect/Option";
|
|
28
|
+
import * as Path from "effect/Path";
|
|
9
29
|
/**
|
|
10
30
|
* Error when home directory cannot be determined.
|
|
11
31
|
*
|
|
@@ -21,7 +41,7 @@ export class HomeDirectoryError extends Data.TaggedError("HomeDirectoryError") {
|
|
|
21
41
|
*
|
|
22
42
|
* @category Services
|
|
23
43
|
*/
|
|
24
|
-
export class HomeDirectoryTag extends Context.
|
|
44
|
+
export class HomeDirectoryTag extends Context.Service()("@knpkv/atlassian-common/HomeDirectory") {
|
|
25
45
|
}
|
|
26
46
|
const HomeConfig = Config.option(Config.string("HOME")).pipe(Config.orElse(() => Config.option(Config.string("USERPROFILE"))));
|
|
27
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigPaths.js","sourceRoot":"","sources":["../../src/config/ConfigPaths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfigPaths.js","sourceRoot":"","sources":["../../src/config/ConfigPaths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAA;AAGnC;;;;GAIG;AACH,MAAM,OAAO,kBAAmB,SAAQ,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAE3E;IACA,IAAa,OAAO;QAClB,OAAO,2DAA2D,CAAA;IACpE,CAAC;CACF;AAYD;;;;GAIG;AACH,MAAM,OAAO,gBAAiB,SAAQ,OAAO,CAAC,OAAO,EAGlD,CAAC,uCAAuC,CAAC;CAAG;AAE/C,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAC1D,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CACjE,CAAA;AA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