@atcute/whitewind 3.0.2 → 3.1.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/LICENSE CHANGED
@@ -1,17 +1,14 @@
1
- Permission is hereby granted, free of charge, to any person obtaining a copy
2
- of this software and associated documentation files (the "Software"), to deal
3
- in the Software without restriction, including without limitation the rights
4
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5
- copies of the Software, and to permit persons to whom the Software is
6
- furnished to do so, subject to the following conditions:
1
+ BSD Zero Clause License
7
2
 
8
- The above copyright notice and this permission notice shall be included in all
9
- copies or substantial portions of the Software.
3
+ Copyright (c) 2025 Mary
10
4
 
11
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17
- SOFTWARE.
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
package/README.md CHANGED
@@ -43,3 +43,27 @@ import type {} from '@atcute/whitewind';
43
43
  ```
44
44
 
45
45
  now all the XRPC operations should be visible in the client
46
+
47
+ ## with `@atcute/lex-cli`
48
+
49
+ when building your own lexicons that reference WhiteWind types, configure lex-cli to import from
50
+ this package:
51
+
52
+ ```ts
53
+ // file: lex.config.js
54
+ import { defineLexiconConfig } from '@atcute/lex-cli';
55
+
56
+ export default defineLexiconConfig({
57
+ files: ['lexicons/**/*.json'],
58
+ outdir: 'src/lexicons/',
59
+ mappings: [
60
+ {
61
+ nsid: ['com.whtwnd.*'],
62
+ imports: (nsid) => {
63
+ const specifier = nsid.slice('com.whtwnd.'.length).replaceAll('.', '/');
64
+ return { type: 'namespace', from: `@atcute/whitewind/types/${specifier}` };
65
+ },
66
+ },
67
+ ],
68
+ });
69
+ ```
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './lexicons/index.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -4,3 +4,4 @@ export * as ComWhtwndBlogGetAuthorPosts from './types/com/whtwnd/blog/getAuthorP
4
4
  export * as ComWhtwndBlogGetEntryMetadataByName from './types/com/whtwnd/blog/getEntryMetadataByName.js';
5
5
  export * as ComWhtwndBlogGetMentionsByEntry from './types/com/whtwnd/blog/getMentionsByEntry.js';
6
6
  export * as ComWhtwndBlogNotifyOfNewEntry from './types/com/whtwnd/blog/notifyOfNewEntry.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,kBAAkB,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,mCAAmC,MAAM,mDAAmD,CAAC;AACzG,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,6BAA6B,MAAM,6CAA6C,CAAC"}
@@ -45,3 +45,4 @@ export interface Comment extends v.InferInput<typeof commentSchema> {
45
45
  export interface Ogp extends v.InferInput<typeof ogpSchema> {
46
46
  }
47
47
  export {};
48
+ //# sourceMappingURL=defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/whtwnd/blog/defs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,mBAAmB;;;;EAIvB,CAAC;AACH,QAAA,MAAM,gBAAgB;;;;EAIpB,CAAC;AACH,QAAA,MAAM,cAAc;;;;EAIlB,CAAC;AACH,QAAA,MAAM,UAAU;;;;;EAKd,CAAC;AAEH,KAAK,uBAAuB,GAAG,OAAO,mBAAmB,CAAC;AAC1D,KAAK,oBAAoB,GAAG,OAAO,gBAAgB,CAAC;AACpD,KAAK,kBAAkB,GAAG,OAAO,cAAc,CAAC;AAChD,KAAK,cAAc,GAAG,OAAO,UAAU,CAAC;AAExC,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;CAAG;AACtE,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;CAAG;AAChE,MAAM,WAAW,aAAc,SAAQ,kBAAkB;CAAG;AAC5D,MAAM,WAAW,SAAU,SAAQ,cAAc;CAAG;AAEpD,eAAO,MAAM,kBAAkB,EAA0B,kBAAkB,CAAC;AAC5E,eAAO,MAAM,eAAe,EAAuB,eAAe,CAAC;AACnE,eAAO,MAAM,aAAa,EAAqB,aAAa,CAAC;AAC7D,eAAO,MAAM,SAAS,EAAiB,SAAS,CAAC;AAEjD,MAAM,WAAW,YAAa,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAChF,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAC1E,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC;CAAG;AACtE,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC;CAAG"}
@@ -24,3 +24,4 @@ declare module '@atcute/lexicons/ambient' {
24
24
  }
25
25
  }
26
26
  export {};
27
+ //# sourceMappingURL=entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/whtwnd/blog/entry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAE/C,QAAA,MAAM,WAAW;;;;;;;;;;;mCAsBhB,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,OAAO;QAChB,uBAAuB,EAAE,UAAU,CAAC;KACpC;CACD"}
@@ -12,9 +12,14 @@ type main$schematype = typeof _mainSchema;
12
12
  export interface mainSchema extends main$schematype {
13
13
  }
14
14
  export declare const mainSchema: mainSchema;
15
+ export interface $params extends v.InferInput<mainSchema['params']> {
16
+ }
17
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
18
+ }
15
19
  declare module '@atcute/lexicons/ambient' {
16
20
  interface XRPCQueries {
17
21
  'com.whtwnd.blog.getAuthorPosts': mainSchema;
18
22
  }
19
23
  }
20
24
  export {};
25
+ //# sourceMappingURL=getAuthorPosts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAuthorPosts.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/whtwnd/blog/getAuthorPosts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAE/C,QAAA,MAAM,WAAW;;;;;;;oCAYf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AACtE,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE9E,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,WAAW;QACpB,gCAAgC,EAAE,UAAU,CAAC;KAC7C;CACD"}
@@ -14,9 +14,14 @@ type main$schematype = typeof _mainSchema;
14
14
  export interface mainSchema extends main$schematype {
15
15
  }
16
16
  export declare const mainSchema: mainSchema;
17
+ export interface $params extends v.InferInput<mainSchema['params']> {
18
+ }
19
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
20
+ }
17
21
  declare module '@atcute/lexicons/ambient' {
18
22
  interface XRPCQueries {
19
23
  'com.whtwnd.blog.getEntryMetadataByName': mainSchema;
20
24
  }
21
25
  }
22
26
  export {};
27
+ //# sourceMappingURL=getEntryMetadataByName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEntryMetadataByName.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/whtwnd/blog/getEntryMetadataByName.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,QAAA,MAAM,WAAW;;;;;;;;;;4CAaf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AACtE,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE9E,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,WAAW;QACpB,wCAAwC,EAAE,UAAU,CAAC;KACrD;CACD"}
@@ -11,9 +11,14 @@ type main$schematype = typeof _mainSchema;
11
11
  export interface mainSchema extends main$schematype {
12
12
  }
13
13
  export declare const mainSchema: mainSchema;
14
+ export interface $params extends v.InferInput<mainSchema['params']> {
15
+ }
16
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
17
+ }
14
18
  declare module '@atcute/lexicons/ambient' {
15
19
  interface XRPCQueries {
16
20
  'com.whtwnd.blog.getMentionsByEntry': mainSchema;
17
21
  }
18
22
  }
19
23
  export {};
24
+ //# sourceMappingURL=getMentionsByEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMentionsByEntry.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/whtwnd/blog/getMentionsByEntry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,QAAA,MAAM,WAAW;;;;;;;wCAUf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AACtE,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE9E,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,WAAW;QACpB,oCAAoC,EAAE,UAAU,CAAC;KACjD;CACD"}
@@ -12,9 +12,16 @@ type main$schematype = typeof _mainSchema;
12
12
  export interface mainSchema extends main$schematype {
13
13
  }
14
14
  export declare const mainSchema: mainSchema;
15
+ export interface $params {
16
+ }
17
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {
18
+ }
19
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
20
+ }
15
21
  declare module '@atcute/lexicons/ambient' {
16
22
  interface XRPCProcedures {
17
23
  'com.whtwnd.blog.notifyOfNewEntry': mainSchema;
18
24
  }
19
25
  }
20
26
  export {};
27
+ //# sourceMappingURL=notifyOfNewEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifyOfNewEntry.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/whtwnd/blog/notifyOfNewEntry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,QAAA,MAAM,WAAW;;;;;;;;sCAYf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,OAAO;CAAG;AAC3B,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;CAAG;AAC5E,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE9E,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,cAAc;QACvB,kCAAkC,EAAE,UAAU,CAAC;KAC/C;CACD"}
@@ -23,6 +23,9 @@ export interface mainSchema extends main$schematype {}
23
23
 
24
24
  export const mainSchema = _mainSchema as mainSchema;
25
25
 
26
+ export interface $params extends v.InferInput<mainSchema['params']> {}
27
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
28
+
26
29
  declare module '@atcute/lexicons/ambient' {
27
30
  interface XRPCQueries {
28
31
  'com.whtwnd.blog.getAuthorPosts': mainSchema;
@@ -23,6 +23,9 @@ export interface mainSchema extends main$schematype {}
23
23
 
24
24
  export const mainSchema = _mainSchema as mainSchema;
25
25
 
26
+ export interface $params extends v.InferInput<mainSchema['params']> {}
27
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
28
+
26
29
  declare module '@atcute/lexicons/ambient' {
27
30
  interface XRPCQueries {
28
31
  'com.whtwnd.blog.getEntryMetadataByName': mainSchema;
@@ -20,6 +20,9 @@ export interface mainSchema extends main$schematype {}
20
20
 
21
21
  export const mainSchema = _mainSchema as mainSchema;
22
22
 
23
+ export interface $params extends v.InferInput<mainSchema['params']> {}
24
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
25
+
23
26
  declare module '@atcute/lexicons/ambient' {
24
27
  interface XRPCQueries {
25
28
  'com.whtwnd.blog.getMentionsByEntry': mainSchema;
@@ -22,6 +22,10 @@ export interface mainSchema extends main$schematype {}
22
22
 
23
23
  export const mainSchema = _mainSchema as mainSchema;
24
24
 
25
+ export interface $params {}
26
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
27
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
28
+
25
29
  declare module '@atcute/lexicons/ambient' {
26
30
  interface XRPCProcedures {
27
31
  'com.whtwnd.blog.notifyOfNewEntry': mainSchema;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/whitewind",
4
- "version": "3.0.2",
4
+ "version": "3.1.1",
5
5
  "description": "WhiteWind (com.whtwnd.*) schema definitions",
6
6
  "keywords": [
7
7
  "atcute",
8
8
  "atproto",
9
9
  "whitewind"
10
10
  ],
11
- "license": "MIT",
11
+ "license": "0BSD",
12
12
  "repository": {
13
13
  "url": "https://github.com/mary-ext/atcute",
14
14
  "directory": "packages/definitions/whitewind"
@@ -24,11 +24,11 @@
24
24
  "./types/*": "./dist/lexicons/types/com/whtwnd/*.js"
25
25
  },
26
26
  "dependencies": {
27
- "@atcute/lexicons": "^1.0.2"
27
+ "@atcute/lexicons": "^1.2.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@atcute/whitewind": "file:",
31
- "@atcute/lex-cli": "^2.0.2"
31
+ "@atcute/lex-cli": "^2.2.1"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsc",