@atcute/whitewind 1.0.3 → 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 -19
- package/lib/lexicons.ts +17 -20
- package/package.json +4 -4
package/dist/lexicons.d.ts
CHANGED
|
@@ -4,15 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import '@atcute/client/lexicons';
|
|
6
6
|
declare module '@atcute/client/lexicons' {
|
|
7
|
-
namespace ComWhtwndBlogComment {
|
|
8
|
-
/** A declaration of a comment. */
|
|
9
|
-
interface Record {
|
|
10
|
-
$type: 'com.whtwnd.blog.comment';
|
|
11
|
-
/** Maximum string length: 1000 */
|
|
12
|
-
content: string;
|
|
13
|
-
entryUri: At.Uri;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
7
|
namespace ComWhtwndBlogDefs {
|
|
17
8
|
interface BlobMetadata {
|
|
18
9
|
[Brand.Type]?: 'com.whtwnd.blog.defs#blobMetadata';
|
|
@@ -29,11 +20,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
29
20
|
[Brand.Type]?: 'com.whtwnd.blog.defs#comment';
|
|
30
21
|
/** Maximum string length: 1000 */
|
|
31
22
|
content: string;
|
|
32
|
-
entryUri: At.
|
|
23
|
+
entryUri: At.ResourceUri;
|
|
33
24
|
}
|
|
34
25
|
interface Ogp {
|
|
35
26
|
[Brand.Type]?: 'com.whtwnd.blog.defs#ogp';
|
|
36
|
-
url:
|
|
27
|
+
url: At.GenericUri;
|
|
37
28
|
height?: number;
|
|
38
29
|
width?: number;
|
|
39
30
|
}
|
|
@@ -62,7 +53,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
62
53
|
/** Get blog posts associated to designated author. */
|
|
63
54
|
namespace ComWhtwndBlogGetAuthorPosts {
|
|
64
55
|
interface Params {
|
|
65
|
-
author: At.
|
|
56
|
+
author: At.Did;
|
|
66
57
|
}
|
|
67
58
|
type Input = undefined;
|
|
68
59
|
interface Output {
|
|
@@ -72,13 +63,13 @@ declare module '@atcute/client/lexicons' {
|
|
|
72
63
|
/** Get AT URI by blog author and entry name. If there are multiple blog entries associated with the name, return the latest one. */
|
|
73
64
|
namespace ComWhtwndBlogGetEntryMetadataByName {
|
|
74
65
|
interface Params {
|
|
75
|
-
author:
|
|
66
|
+
author: At.Identifier;
|
|
76
67
|
entryTitle: string;
|
|
77
68
|
}
|
|
78
69
|
type Input = undefined;
|
|
79
70
|
interface Output {
|
|
80
|
-
entryUri: At.
|
|
81
|
-
cid?: At.
|
|
71
|
+
entryUri: At.ResourceUri;
|
|
72
|
+
cid?: At.Cid;
|
|
82
73
|
lastUpdate?: string;
|
|
83
74
|
}
|
|
84
75
|
interface Errors {
|
|
@@ -88,11 +79,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
88
79
|
/** Get comments associated to designated post. */
|
|
89
80
|
namespace ComWhtwndBlogGetMentionsByEntry {
|
|
90
81
|
interface Params {
|
|
91
|
-
postUri: At.
|
|
82
|
+
postUri: At.ResourceUri;
|
|
92
83
|
}
|
|
93
84
|
type Input = undefined;
|
|
94
85
|
interface Output {
|
|
95
|
-
mentions: At.
|
|
86
|
+
mentions: At.ResourceUri[];
|
|
96
87
|
}
|
|
97
88
|
}
|
|
98
89
|
/** Notify AppView of existence of new entry and request indexing */
|
|
@@ -100,7 +91,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
100
91
|
interface Params {
|
|
101
92
|
}
|
|
102
93
|
interface Input {
|
|
103
|
-
entryUri: At.
|
|
94
|
+
entryUri: At.ResourceUri;
|
|
104
95
|
}
|
|
105
96
|
interface Output {
|
|
106
97
|
}
|
|
@@ -108,27 +99,42 @@ declare module '@atcute/client/lexicons' {
|
|
|
108
99
|
}
|
|
109
100
|
}
|
|
110
101
|
interface Records {
|
|
111
|
-
'com.whtwnd.blog.comment': ComWhtwndBlogComment.Record;
|
|
112
102
|
'com.whtwnd.blog.entry': ComWhtwndBlogEntry.Record;
|
|
113
103
|
}
|
|
114
104
|
interface Queries {
|
|
115
105
|
'com.whtwnd.blog.getAuthorPosts': {
|
|
116
106
|
params: ComWhtwndBlogGetAuthorPosts.Params;
|
|
107
|
+
/** @deprecated */
|
|
117
108
|
output: ComWhtwndBlogGetAuthorPosts.Output;
|
|
109
|
+
response: {
|
|
110
|
+
json: ComWhtwndBlogGetAuthorPosts.Output;
|
|
111
|
+
};
|
|
118
112
|
};
|
|
119
113
|
'com.whtwnd.blog.getEntryMetadataByName': {
|
|
120
114
|
params: ComWhtwndBlogGetEntryMetadataByName.Params;
|
|
115
|
+
/** @deprecated */
|
|
121
116
|
output: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
117
|
+
response: {
|
|
118
|
+
json: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
119
|
+
};
|
|
122
120
|
};
|
|
123
121
|
'com.whtwnd.blog.getMentionsByEntry': {
|
|
124
122
|
params: ComWhtwndBlogGetMentionsByEntry.Params;
|
|
123
|
+
/** @deprecated */
|
|
125
124
|
output: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
125
|
+
response: {
|
|
126
|
+
json: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
127
|
+
};
|
|
126
128
|
};
|
|
127
129
|
}
|
|
128
130
|
interface Procedures {
|
|
129
131
|
'com.whtwnd.blog.notifyOfNewEntry': {
|
|
130
132
|
input: ComWhtwndBlogNotifyOfNewEntry.Input;
|
|
133
|
+
/** @deprecated */
|
|
131
134
|
output: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
135
|
+
response: {
|
|
136
|
+
json: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
137
|
+
};
|
|
132
138
|
};
|
|
133
139
|
}
|
|
134
140
|
}
|
package/lib/lexicons.ts
CHANGED
|
@@ -9,16 +9,6 @@
|
|
|
9
9
|
import '@atcute/client/lexicons';
|
|
10
10
|
|
|
11
11
|
declare module '@atcute/client/lexicons' {
|
|
12
|
-
namespace ComWhtwndBlogComment {
|
|
13
|
-
/** A declaration of a comment. */
|
|
14
|
-
interface Record {
|
|
15
|
-
$type: 'com.whtwnd.blog.comment';
|
|
16
|
-
/** Maximum string length: 1000 */
|
|
17
|
-
content: string;
|
|
18
|
-
entryUri: At.Uri;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
12
|
namespace ComWhtwndBlogDefs {
|
|
23
13
|
interface BlobMetadata {
|
|
24
14
|
[Brand.Type]?: 'com.whtwnd.blog.defs#blobMetadata';
|
|
@@ -35,11 +25,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
35
25
|
[Brand.Type]?: 'com.whtwnd.blog.defs#comment';
|
|
36
26
|
/** Maximum string length: 1000 */
|
|
37
27
|
content: string;
|
|
38
|
-
entryUri: At.
|
|
28
|
+
entryUri: At.ResourceUri;
|
|
39
29
|
}
|
|
40
30
|
interface Ogp {
|
|
41
31
|
[Brand.Type]?: 'com.whtwnd.blog.defs#ogp';
|
|
42
|
-
url:
|
|
32
|
+
url: At.GenericUri;
|
|
43
33
|
height?: number;
|
|
44
34
|
width?: number;
|
|
45
35
|
}
|
|
@@ -70,7 +60,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
70
60
|
/** Get blog posts associated to designated author. */
|
|
71
61
|
namespace ComWhtwndBlogGetAuthorPosts {
|
|
72
62
|
interface Params {
|
|
73
|
-
author: At.
|
|
63
|
+
author: At.Did;
|
|
74
64
|
}
|
|
75
65
|
type Input = undefined;
|
|
76
66
|
interface Output {
|
|
@@ -81,13 +71,13 @@ declare module '@atcute/client/lexicons' {
|
|
|
81
71
|
/** Get AT URI by blog author and entry name. If there are multiple blog entries associated with the name, return the latest one. */
|
|
82
72
|
namespace ComWhtwndBlogGetEntryMetadataByName {
|
|
83
73
|
interface Params {
|
|
84
|
-
author:
|
|
74
|
+
author: At.Identifier;
|
|
85
75
|
entryTitle: string;
|
|
86
76
|
}
|
|
87
77
|
type Input = undefined;
|
|
88
78
|
interface Output {
|
|
89
|
-
entryUri: At.
|
|
90
|
-
cid?: At.
|
|
79
|
+
entryUri: At.ResourceUri;
|
|
80
|
+
cid?: At.Cid;
|
|
91
81
|
lastUpdate?: string;
|
|
92
82
|
}
|
|
93
83
|
interface Errors {
|
|
@@ -98,11 +88,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
98
88
|
/** Get comments associated to designated post. */
|
|
99
89
|
namespace ComWhtwndBlogGetMentionsByEntry {
|
|
100
90
|
interface Params {
|
|
101
|
-
postUri: At.
|
|
91
|
+
postUri: At.ResourceUri;
|
|
102
92
|
}
|
|
103
93
|
type Input = undefined;
|
|
104
94
|
interface Output {
|
|
105
|
-
mentions: At.
|
|
95
|
+
mentions: At.ResourceUri[];
|
|
106
96
|
}
|
|
107
97
|
}
|
|
108
98
|
|
|
@@ -110,36 +100,43 @@ declare module '@atcute/client/lexicons' {
|
|
|
110
100
|
namespace ComWhtwndBlogNotifyOfNewEntry {
|
|
111
101
|
interface Params {}
|
|
112
102
|
interface Input {
|
|
113
|
-
entryUri: At.
|
|
103
|
+
entryUri: At.ResourceUri;
|
|
114
104
|
}
|
|
115
105
|
interface Output {}
|
|
116
106
|
interface Errors {}
|
|
117
107
|
}
|
|
118
108
|
|
|
119
109
|
interface Records {
|
|
120
|
-
'com.whtwnd.blog.comment': ComWhtwndBlogComment.Record;
|
|
121
110
|
'com.whtwnd.blog.entry': ComWhtwndBlogEntry.Record;
|
|
122
111
|
}
|
|
123
112
|
|
|
124
113
|
interface Queries {
|
|
125
114
|
'com.whtwnd.blog.getAuthorPosts': {
|
|
126
115
|
params: ComWhtwndBlogGetAuthorPosts.Params;
|
|
116
|
+
/** @deprecated */
|
|
127
117
|
output: ComWhtwndBlogGetAuthorPosts.Output;
|
|
118
|
+
response: { json: ComWhtwndBlogGetAuthorPosts.Output };
|
|
128
119
|
};
|
|
129
120
|
'com.whtwnd.blog.getEntryMetadataByName': {
|
|
130
121
|
params: ComWhtwndBlogGetEntryMetadataByName.Params;
|
|
122
|
+
/** @deprecated */
|
|
131
123
|
output: ComWhtwndBlogGetEntryMetadataByName.Output;
|
|
124
|
+
response: { json: ComWhtwndBlogGetEntryMetadataByName.Output };
|
|
132
125
|
};
|
|
133
126
|
'com.whtwnd.blog.getMentionsByEntry': {
|
|
134
127
|
params: ComWhtwndBlogGetMentionsByEntry.Params;
|
|
128
|
+
/** @deprecated */
|
|
135
129
|
output: ComWhtwndBlogGetMentionsByEntry.Output;
|
|
130
|
+
response: { json: ComWhtwndBlogGetMentionsByEntry.Output };
|
|
136
131
|
};
|
|
137
132
|
}
|
|
138
133
|
|
|
139
134
|
interface Procedures {
|
|
140
135
|
'com.whtwnd.blog.notifyOfNewEntry': {
|
|
141
136
|
input: ComWhtwndBlogNotifyOfNewEntry.Input;
|
|
137
|
+
/** @deprecated */
|
|
142
138
|
output: ComWhtwndBlogNotifyOfNewEntry.Output;
|
|
139
|
+
response: { json: ComWhtwndBlogNotifyOfNewEntry.Output };
|
|
143
140
|
};
|
|
144
141
|
}
|
|
145
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",
|