@atcute/whitewind 1.0.4 → 2.0.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/dist/lexicons.d.ts +25 -9
- package/lib/lexicons.ts +17 -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
|
}
|
|
@@ -53,7 +53,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
53
53
|
/** Get blog posts associated to designated author. */
|
|
54
54
|
namespace ComWhtwndBlogGetAuthorPosts {
|
|
55
55
|
interface Params {
|
|
56
|
-
author: At.
|
|
56
|
+
author: At.Did;
|
|
57
57
|
}
|
|
58
58
|
type Input = undefined;
|
|
59
59
|
interface Output {
|
|
@@ -63,13 +63,13 @@ declare module '@atcute/client/lexicons' {
|
|
|
63
63
|
/** Get AT URI by blog author and entry name. If there are multiple blog entries associated with the name, return the latest one. */
|
|
64
64
|
namespace ComWhtwndBlogGetEntryMetadataByName {
|
|
65
65
|
interface Params {
|
|
66
|
-
author:
|
|
66
|
+
author: At.Identifier;
|
|
67
67
|
entryTitle: string;
|
|
68
68
|
}
|
|
69
69
|
type Input = undefined;
|
|
70
70
|
interface Output {
|
|
71
|
-
entryUri: At.
|
|
72
|
-
cid?: At.
|
|
71
|
+
entryUri: At.ResourceUri;
|
|
72
|
+
cid?: At.Cid;
|
|
73
73
|
lastUpdate?: string;
|
|
74
74
|
}
|
|
75
75
|
interface Errors {
|
|
@@ -79,11 +79,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
79
79
|
/** Get comments associated to designated post. */
|
|
80
80
|
namespace ComWhtwndBlogGetMentionsByEntry {
|
|
81
81
|
interface Params {
|
|
82
|
-
postUri: At.
|
|
82
|
+
postUri: At.ResourceUri;
|
|
83
83
|
}
|
|
84
84
|
type Input = undefined;
|
|
85
85
|
interface Output {
|
|
86
|
-
mentions: At.
|
|
86
|
+
mentions: At.ResourceUri[];
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
/** Notify AppView of existence of new entry and request indexing */
|
|
@@ -91,7 +91,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
91
91
|
interface Params {
|
|
92
92
|
}
|
|
93
93
|
interface Input {
|
|
94
|
-
entryUri: At.
|
|
94
|
+
entryUri: At.ResourceUri;
|
|
95
95
|
}
|
|
96
96
|
interface Output {
|
|
97
97
|
}
|
|
@@ -104,21 +104,37 @@ declare module '@atcute/client/lexicons' {
|
|
|
104
104
|
interface Queries {
|
|
105
105
|
'com.whtwnd.blog.getAuthorPosts': {
|
|
106
106
|
params: ComWhtwndBlogGetAuthorPosts.Params;
|
|
107
|
+
/** @deprecated */
|
|
107
108
|
output: ComWhtwndBlogGetAuthorPosts.Output;
|
|
109
|
+
response: {
|
|
110
|
+
json: ComWhtwndBlogGetAuthorPosts.Output;
|
|
111
|
+
};
|
|
108
112
|
};
|
|
109
113
|
'com.whtwnd.blog.getEntryMetadataByName': {
|
|
110
114
|
params: ComWhtwndBlogGetEntryMetadataByName.Params;
|
|
115
|
+
/** @deprecated */
|
|
111
116
|
output: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
117
|
+
response: {
|
|
118
|
+
json: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
119
|
+
};
|
|
112
120
|
};
|
|
113
121
|
'com.whtwnd.blog.getMentionsByEntry': {
|
|
114
122
|
params: ComWhtwndBlogGetMentionsByEntry.Params;
|
|
123
|
+
/** @deprecated */
|
|
115
124
|
output: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
125
|
+
response: {
|
|
126
|
+
json: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
127
|
+
};
|
|
116
128
|
};
|
|
117
129
|
}
|
|
118
130
|
interface Procedures {
|
|
119
131
|
'com.whtwnd.blog.notifyOfNewEntry': {
|
|
120
132
|
input: ComWhtwndBlogNotifyOfNewEntry.Input;
|
|
133
|
+
/** @deprecated */
|
|
121
134
|
output: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
135
|
+
response: {
|
|
136
|
+
json: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
137
|
+
};
|
|
122
138
|
};
|
|
123
139
|
}
|
|
124
140
|
}
|
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
|
}
|
|
@@ -60,7 +60,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
60
60
|
/** Get blog posts associated to designated author. */
|
|
61
61
|
namespace ComWhtwndBlogGetAuthorPosts {
|
|
62
62
|
interface Params {
|
|
63
|
-
author: At.
|
|
63
|
+
author: At.Did;
|
|
64
64
|
}
|
|
65
65
|
type Input = undefined;
|
|
66
66
|
interface Output {
|
|
@@ -71,13 +71,13 @@ declare module '@atcute/client/lexicons' {
|
|
|
71
71
|
/** Get AT URI by blog author and entry name. If there are multiple blog entries associated with the name, return the latest one. */
|
|
72
72
|
namespace ComWhtwndBlogGetEntryMetadataByName {
|
|
73
73
|
interface Params {
|
|
74
|
-
author:
|
|
74
|
+
author: At.Identifier;
|
|
75
75
|
entryTitle: string;
|
|
76
76
|
}
|
|
77
77
|
type Input = undefined;
|
|
78
78
|
interface Output {
|
|
79
|
-
entryUri: At.
|
|
80
|
-
cid?: At.
|
|
79
|
+
entryUri: At.ResourceUri;
|
|
80
|
+
cid?: At.Cid;
|
|
81
81
|
lastUpdate?: string;
|
|
82
82
|
}
|
|
83
83
|
interface Errors {
|
|
@@ -88,11 +88,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
88
88
|
/** Get comments associated to designated post. */
|
|
89
89
|
namespace ComWhtwndBlogGetMentionsByEntry {
|
|
90
90
|
interface Params {
|
|
91
|
-
postUri: At.
|
|
91
|
+
postUri: At.ResourceUri;
|
|
92
92
|
}
|
|
93
93
|
type Input = undefined;
|
|
94
94
|
interface Output {
|
|
95
|
-
mentions: At.
|
|
95
|
+
mentions: At.ResourceUri[];
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -100,7 +100,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
100
100
|
namespace ComWhtwndBlogNotifyOfNewEntry {
|
|
101
101
|
interface Params {}
|
|
102
102
|
interface Input {
|
|
103
|
-
entryUri: At.
|
|
103
|
+
entryUri: At.ResourceUri;
|
|
104
104
|
}
|
|
105
105
|
interface Output {}
|
|
106
106
|
interface Errors {}
|
|
@@ -113,22 +113,30 @@ declare module '@atcute/client/lexicons' {
|
|
|
113
113
|
interface Queries {
|
|
114
114
|
'com.whtwnd.blog.getAuthorPosts': {
|
|
115
115
|
params: ComWhtwndBlogGetAuthorPosts.Params;
|
|
116
|
+
/** @deprecated */
|
|
116
117
|
output: ComWhtwndBlogGetAuthorPosts.Output;
|
|
118
|
+
response: { json: ComWhtwndBlogGetAuthorPosts.Output };
|
|
117
119
|
};
|
|
118
120
|
'com.whtwnd.blog.getEntryMetadataByName': {
|
|
119
121
|
params: ComWhtwndBlogGetEntryMetadataByName.Params;
|
|
122
|
+
/** @deprecated */
|
|
120
123
|
output: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
124
|
+
response: { json: ComWhtwndBlogGetEntryMetadataByName.Output };
|
|
121
125
|
};
|
|
122
126
|
'com.whtwnd.blog.getMentionsByEntry': {
|
|
123
127
|
params: ComWhtwndBlogGetMentionsByEntry.Params;
|
|
128
|
+
/** @deprecated */
|
|
124
129
|
output: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
130
|
+
response: { json: ComWhtwndBlogGetMentionsByEntry.Output };
|
|
125
131
|
};
|
|
126
132
|
}
|
|
127
133
|
|
|
128
134
|
interface Procedures {
|
|
129
135
|
'com.whtwnd.blog.notifyOfNewEntry': {
|
|
130
136
|
input: ComWhtwndBlogNotifyOfNewEntry.Input;
|
|
137
|
+
/** @deprecated */
|
|
131
138
|
output: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
139
|
+
response: { json: ComWhtwndBlogNotifyOfNewEntry.Output };
|
|
132
140
|
};
|
|
133
141
|
}
|
|
134
142
|
}
|
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.0",
|
|
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.0
|
|
24
|
+
"@atcute/client": "^3.0.0",
|
|
25
|
+
"@atcute/lex-cli": "^1.1.0"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc",
|