@atcute/whitewind 1.0.4 → 2.0.1
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/lexicons.d.ts +27 -9
- package/lib/lexicons.ts +19 -9
- package/package.json +4 -4
package/dist/lexicons.d.ts
CHANGED
|
@@ -20,11 +20,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
20
20
|
[Brand.Type]?: 'com.whtwnd.blog.defs#comment';
|
|
21
21
|
/** Maximum string length: 1000 */
|
|
22
22
|
content: string;
|
|
23
|
-
entryUri: At.
|
|
23
|
+
entryUri: At.ResourceUri;
|
|
24
24
|
}
|
|
25
25
|
interface Ogp {
|
|
26
26
|
[Brand.Type]?: 'com.whtwnd.blog.defs#ogp';
|
|
27
|
-
url:
|
|
27
|
+
url: At.GenericUri;
|
|
28
28
|
height?: number;
|
|
29
29
|
width?: number;
|
|
30
30
|
}
|
|
@@ -40,6 +40,8 @@ declare module '@atcute/client/lexicons' {
|
|
|
40
40
|
/** (DEPRECATED) Marks this entry as draft to tell AppViews not to show it to anyone except for the author */
|
|
41
41
|
isDraft?: boolean;
|
|
42
42
|
ogp?: ComWhtwndBlogDefs.Ogp;
|
|
43
|
+
/** Maximum string length: 1000 */
|
|
44
|
+
subtitle?: string;
|
|
43
45
|
theme?: 'github-light';
|
|
44
46
|
/** Maximum string length: 1000 */
|
|
45
47
|
title?: string;
|
|
@@ -53,7 +55,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
53
55
|
/** Get blog posts associated to designated author. */
|
|
54
56
|
namespace ComWhtwndBlogGetAuthorPosts {
|
|
55
57
|
interface Params {
|
|
56
|
-
author: At.
|
|
58
|
+
author: At.Did;
|
|
57
59
|
}
|
|
58
60
|
type Input = undefined;
|
|
59
61
|
interface Output {
|
|
@@ -63,13 +65,13 @@ declare module '@atcute/client/lexicons' {
|
|
|
63
65
|
/** Get AT URI by blog author and entry name. If there are multiple blog entries associated with the name, return the latest one. */
|
|
64
66
|
namespace ComWhtwndBlogGetEntryMetadataByName {
|
|
65
67
|
interface Params {
|
|
66
|
-
author:
|
|
68
|
+
author: At.Identifier;
|
|
67
69
|
entryTitle: string;
|
|
68
70
|
}
|
|
69
71
|
type Input = undefined;
|
|
70
72
|
interface Output {
|
|
71
|
-
entryUri: At.
|
|
72
|
-
cid?: At.
|
|
73
|
+
entryUri: At.ResourceUri;
|
|
74
|
+
cid?: At.Cid;
|
|
73
75
|
lastUpdate?: string;
|
|
74
76
|
}
|
|
75
77
|
interface Errors {
|
|
@@ -79,11 +81,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
79
81
|
/** Get comments associated to designated post. */
|
|
80
82
|
namespace ComWhtwndBlogGetMentionsByEntry {
|
|
81
83
|
interface Params {
|
|
82
|
-
postUri: At.
|
|
84
|
+
postUri: At.ResourceUri;
|
|
83
85
|
}
|
|
84
86
|
type Input = undefined;
|
|
85
87
|
interface Output {
|
|
86
|
-
mentions: At.
|
|
88
|
+
mentions: At.ResourceUri[];
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
/** Notify AppView of existence of new entry and request indexing */
|
|
@@ -91,7 +93,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
91
93
|
interface Params {
|
|
92
94
|
}
|
|
93
95
|
interface Input {
|
|
94
|
-
entryUri: At.
|
|
96
|
+
entryUri: At.ResourceUri;
|
|
95
97
|
}
|
|
96
98
|
interface Output {
|
|
97
99
|
}
|
|
@@ -104,21 +106,37 @@ declare module '@atcute/client/lexicons' {
|
|
|
104
106
|
interface Queries {
|
|
105
107
|
'com.whtwnd.blog.getAuthorPosts': {
|
|
106
108
|
params: ComWhtwndBlogGetAuthorPosts.Params;
|
|
109
|
+
/** @deprecated */
|
|
107
110
|
output: ComWhtwndBlogGetAuthorPosts.Output;
|
|
111
|
+
response: {
|
|
112
|
+
json: ComWhtwndBlogGetAuthorPosts.Output;
|
|
113
|
+
};
|
|
108
114
|
};
|
|
109
115
|
'com.whtwnd.blog.getEntryMetadataByName': {
|
|
110
116
|
params: ComWhtwndBlogGetEntryMetadataByName.Params;
|
|
117
|
+
/** @deprecated */
|
|
111
118
|
output: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
119
|
+
response: {
|
|
120
|
+
json: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
121
|
+
};
|
|
112
122
|
};
|
|
113
123
|
'com.whtwnd.blog.getMentionsByEntry': {
|
|
114
124
|
params: ComWhtwndBlogGetMentionsByEntry.Params;
|
|
125
|
+
/** @deprecated */
|
|
115
126
|
output: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
127
|
+
response: {
|
|
128
|
+
json: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
129
|
+
};
|
|
116
130
|
};
|
|
117
131
|
}
|
|
118
132
|
interface Procedures {
|
|
119
133
|
'com.whtwnd.blog.notifyOfNewEntry': {
|
|
120
134
|
input: ComWhtwndBlogNotifyOfNewEntry.Input;
|
|
135
|
+
/** @deprecated */
|
|
121
136
|
output: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
137
|
+
response: {
|
|
138
|
+
json: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
139
|
+
};
|
|
122
140
|
};
|
|
123
141
|
}
|
|
124
142
|
}
|
package/lib/lexicons.ts
CHANGED
|
@@ -25,11 +25,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
25
25
|
[Brand.Type]?: 'com.whtwnd.blog.defs#comment';
|
|
26
26
|
/** Maximum string length: 1000 */
|
|
27
27
|
content: string;
|
|
28
|
-
entryUri: At.
|
|
28
|
+
entryUri: At.ResourceUri;
|
|
29
29
|
}
|
|
30
30
|
interface Ogp {
|
|
31
31
|
[Brand.Type]?: 'com.whtwnd.blog.defs#ogp';
|
|
32
|
-
url:
|
|
32
|
+
url: At.GenericUri;
|
|
33
33
|
height?: number;
|
|
34
34
|
width?: number;
|
|
35
35
|
}
|
|
@@ -46,6 +46,8 @@ declare module '@atcute/client/lexicons' {
|
|
|
46
46
|
/** (DEPRECATED) Marks this entry as draft to tell AppViews not to show it to anyone except for the author */
|
|
47
47
|
isDraft?: boolean;
|
|
48
48
|
ogp?: ComWhtwndBlogDefs.Ogp;
|
|
49
|
+
/** Maximum string length: 1000 */
|
|
50
|
+
subtitle?: string;
|
|
49
51
|
theme?: 'github-light';
|
|
50
52
|
/** Maximum string length: 1000 */
|
|
51
53
|
title?: string;
|
|
@@ -60,7 +62,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
60
62
|
/** Get blog posts associated to designated author. */
|
|
61
63
|
namespace ComWhtwndBlogGetAuthorPosts {
|
|
62
64
|
interface Params {
|
|
63
|
-
author: At.
|
|
65
|
+
author: At.Did;
|
|
64
66
|
}
|
|
65
67
|
type Input = undefined;
|
|
66
68
|
interface Output {
|
|
@@ -71,13 +73,13 @@ declare module '@atcute/client/lexicons' {
|
|
|
71
73
|
/** Get AT URI by blog author and entry name. If there are multiple blog entries associated with the name, return the latest one. */
|
|
72
74
|
namespace ComWhtwndBlogGetEntryMetadataByName {
|
|
73
75
|
interface Params {
|
|
74
|
-
author:
|
|
76
|
+
author: At.Identifier;
|
|
75
77
|
entryTitle: string;
|
|
76
78
|
}
|
|
77
79
|
type Input = undefined;
|
|
78
80
|
interface Output {
|
|
79
|
-
entryUri: At.
|
|
80
|
-
cid?: At.
|
|
81
|
+
entryUri: At.ResourceUri;
|
|
82
|
+
cid?: At.Cid;
|
|
81
83
|
lastUpdate?: string;
|
|
82
84
|
}
|
|
83
85
|
interface Errors {
|
|
@@ -88,11 +90,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
88
90
|
/** Get comments associated to designated post. */
|
|
89
91
|
namespace ComWhtwndBlogGetMentionsByEntry {
|
|
90
92
|
interface Params {
|
|
91
|
-
postUri: At.
|
|
93
|
+
postUri: At.ResourceUri;
|
|
92
94
|
}
|
|
93
95
|
type Input = undefined;
|
|
94
96
|
interface Output {
|
|
95
|
-
mentions: At.
|
|
97
|
+
mentions: At.ResourceUri[];
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
|
|
@@ -100,7 +102,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
100
102
|
namespace ComWhtwndBlogNotifyOfNewEntry {
|
|
101
103
|
interface Params {}
|
|
102
104
|
interface Input {
|
|
103
|
-
entryUri: At.
|
|
105
|
+
entryUri: At.ResourceUri;
|
|
104
106
|
}
|
|
105
107
|
interface Output {}
|
|
106
108
|
interface Errors {}
|
|
@@ -113,22 +115,30 @@ declare module '@atcute/client/lexicons' {
|
|
|
113
115
|
interface Queries {
|
|
114
116
|
'com.whtwnd.blog.getAuthorPosts': {
|
|
115
117
|
params: ComWhtwndBlogGetAuthorPosts.Params;
|
|
118
|
+
/** @deprecated */
|
|
116
119
|
output: ComWhtwndBlogGetAuthorPosts.Output;
|
|
120
|
+
response: { json: ComWhtwndBlogGetAuthorPosts.Output };
|
|
117
121
|
};
|
|
118
122
|
'com.whtwnd.blog.getEntryMetadataByName': {
|
|
119
123
|
params: ComWhtwndBlogGetEntryMetadataByName.Params;
|
|
124
|
+
/** @deprecated */
|
|
120
125
|
output: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
126
|
+
response: { json: ComWhtwndBlogGetEntryMetadataByName.Output };
|
|
121
127
|
};
|
|
122
128
|
'com.whtwnd.blog.getMentionsByEntry': {
|
|
123
129
|
params: ComWhtwndBlogGetMentionsByEntry.Params;
|
|
130
|
+
/** @deprecated */
|
|
124
131
|
output: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
132
|
+
response: { json: ComWhtwndBlogGetMentionsByEntry.Output };
|
|
125
133
|
};
|
|
126
134
|
}
|
|
127
135
|
|
|
128
136
|
interface Procedures {
|
|
129
137
|
'com.whtwnd.blog.notifyOfNewEntry': {
|
|
130
138
|
input: ComWhtwndBlogNotifyOfNewEntry.Input;
|
|
139
|
+
/** @deprecated */
|
|
131
140
|
output: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
141
|
+
response: { json: ComWhtwndBlogNotifyOfNewEntry.Output };
|
|
132
142
|
};
|
|
133
143
|
}
|
|
134
144
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/whitewind",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"description": "WhiteWind type definitions for atcute",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"./lexicons": "./dist/lexicons.js"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@atcute/client": "^
|
|
21
|
+
"@atcute/client": "^3.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@atcute/client": "^
|
|
25
|
-
"@atcute/lex-cli": "^1.
|
|
24
|
+
"@atcute/client": "^3.0.1",
|
|
25
|
+
"@atcute/lex-cli": "^1.1.1"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc",
|