@atcute/microcosm 1.0.0 → 1.0.2
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/README.md +6 -2
- package/dist/index.d.ts +1 -1
- package/dist/lexicons/index.d.ts +9 -4
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +5 -0
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/blue/microcosm/identity/resolveMiniDoc.d.ts +42 -0
- package/dist/lexicons/types/blue/microcosm/identity/resolveMiniDoc.d.ts.map +1 -0
- package/dist/lexicons/types/blue/microcosm/identity/resolveMiniDoc.js +32 -0
- package/dist/lexicons/types/blue/microcosm/identity/resolveMiniDoc.js.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getBacklinkDids.d.ts +46 -0
- package/dist/lexicons/types/blue/microcosm/links/getBacklinkDids.d.ts.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getBacklinkDids.js +37 -0
- package/dist/lexicons/types/blue/microcosm/links/getBacklinkDids.js.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getBacklinks.d.ts.map +1 -1
- package/dist/lexicons/types/blue/microcosm/links/getBacklinks.js.map +1 -1
- package/dist/lexicons/types/blue/microcosm/links/getBacklinksCount.d.ts +34 -0
- package/dist/lexicons/types/blue/microcosm/links/getBacklinksCount.d.ts.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getBacklinksCount.js +24 -0
- package/dist/lexicons/types/blue/microcosm/links/getBacklinksCount.js.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToMany.d.ts +83 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToMany.d.ts.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToMany.js +68 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToMany.js.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToManyCounts.d.ts.map +1 -1
- package/dist/lexicons/types/blue/microcosm/links/getManyToManyCounts.js.map +1 -1
- package/dist/lexicons/types/blue/microcosm/repo/getRecordByUri.d.ts +42 -0
- package/dist/lexicons/types/blue/microcosm/repo/getRecordByUri.d.ts.map +1 -0
- package/dist/lexicons/types/blue/microcosm/repo/getRecordByUri.js +32 -0
- package/dist/lexicons/types/blue/microcosm/repo/getRecordByUri.js.map +1 -0
- package/dist/lexicons/types/com/bad-example/identity/resolveMiniDoc.d.ts.map +1 -1
- package/dist/lexicons/types/com/bad-example/identity/resolveMiniDoc.js.map +1 -1
- package/dist/lexicons/types/com/bad-example/repo/getUriRecord.d.ts.map +1 -1
- package/dist/lexicons/types/com/bad-example/repo/getUriRecord.js.map +1 -1
- package/lib/index.ts +1 -1
- package/lib/lexicons/index.ts +9 -4
- package/lib/lexicons/types/blue/microcosm/identity/resolveMiniDoc.ts +48 -0
- package/lib/lexicons/types/blue/microcosm/links/getBacklinkDids.ts +55 -0
- package/lib/lexicons/types/blue/microcosm/links/getBacklinks.ts +1 -1
- package/lib/lexicons/types/blue/microcosm/links/getBacklinksCount.ts +40 -0
- package/lib/lexicons/types/blue/microcosm/links/getManyToMany.ts +93 -0
- package/lib/lexicons/types/blue/microcosm/links/getManyToManyCounts.ts +1 -1
- package/lib/lexicons/types/blue/microcosm/repo/getRecordByUri.ts +48 -0
- package/lib/lexicons/types/com/bad-example/identity/resolveMiniDoc.ts +1 -1
- package/lib/lexicons/types/com/bad-example/repo/getUriRecord.ts +1 -1
- package/package.json +11 -6
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
[Microcosm](https://www.microcosm.blue/) (blue.microcosm.\*, com.bad-example.\*) schema definitions
|
|
4
4
|
|
|
5
|
+
```sh
|
|
6
|
+
npm install @atcute/microcosm
|
|
7
|
+
```
|
|
8
|
+
|
|
5
9
|
Microcosm is a collection of services and independent community-run infrastructure for AT Protocol,
|
|
6
10
|
including:
|
|
7
11
|
|
|
@@ -41,7 +45,7 @@ import type {} from '@atcute/microcosm';
|
|
|
41
45
|
});
|
|
42
46
|
|
|
43
47
|
const resolved = await ok(
|
|
44
|
-
slingshot.get('
|
|
48
|
+
slingshot.get('blue.microcosm.identity.resolveMiniDoc', {
|
|
45
49
|
params: {
|
|
46
50
|
identifier: 'microcosm.blue',
|
|
47
51
|
},
|
|
@@ -78,7 +82,7 @@ import type {} from '@atcute/microcosm';
|
|
|
78
82
|
|
|
79
83
|
now all the XRPC operations should be visible in the client
|
|
80
84
|
|
|
81
|
-
|
|
85
|
+
### with `@atcute/lex-cli`
|
|
82
86
|
|
|
83
87
|
when building your own lexicons that reference Microcosm types, configure lex-cli to import from
|
|
84
88
|
this package:
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './lexicons/index.
|
|
1
|
+
export * from './lexicons/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lexicons/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
3
|
-
export * as
|
|
4
|
-
export * as
|
|
1
|
+
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.ts';
|
|
2
|
+
export * as BlueMicrocosmLinksGetBacklinkDids from './types/blue/microcosm/links/getBacklinkDids.ts';
|
|
3
|
+
export * as BlueMicrocosmLinksGetBacklinks from './types/blue/microcosm/links/getBacklinks.ts';
|
|
4
|
+
export * as BlueMicrocosmLinksGetBacklinksCount from './types/blue/microcosm/links/getBacklinksCount.ts';
|
|
5
|
+
export * as BlueMicrocosmLinksGetManyToMany from './types/blue/microcosm/links/getManyToMany.ts';
|
|
6
|
+
export * as BlueMicrocosmLinksGetManyToManyCounts from './types/blue/microcosm/links/getManyToManyCounts.ts';
|
|
7
|
+
export * as BlueMicrocosmRepoGetRecordByUri from './types/blue/microcosm/repo/getRecordByUri.ts';
|
|
8
|
+
export * as ComBadExampleIdentityResolveMiniDoc from './types/com/bad-example/identity/resolveMiniDoc.ts';
|
|
9
|
+
export * as ComBadExampleRepoGetUriRecord from './types/com/bad-example/repo/getUriRecord.ts';
|
|
5
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,qCAAqC,MAAM,qDAAqD,CAAC;AAC7G,OAAO,KAAK,mCAAmC,MAAM,oDAAoD,CAAC;AAC1G,OAAO,KAAK,6BAA6B,MAAM,8CAA8C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,mCAAmC,MAAM,mDAAmD,CAAC;AACzG,OAAO,KAAK,iCAAiC,MAAM,iDAAiD,CAAC;AACrG,OAAO,KAAK,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,mCAAmC,MAAM,mDAAmD,CAAC;AACzG,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,qCAAqC,MAAM,qDAAqD,CAAC;AAC7G,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,mCAAmC,MAAM,oDAAoD,CAAC;AAC1G,OAAO,KAAK,6BAA6B,MAAM,8CAA8C,CAAC"}
|
package/dist/lexicons/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.js';
|
|
2
|
+
export * as BlueMicrocosmLinksGetBacklinkDids from './types/blue/microcosm/links/getBacklinkDids.js';
|
|
1
3
|
export * as BlueMicrocosmLinksGetBacklinks from './types/blue/microcosm/links/getBacklinks.js';
|
|
4
|
+
export * as BlueMicrocosmLinksGetBacklinksCount from './types/blue/microcosm/links/getBacklinksCount.js';
|
|
5
|
+
export * as BlueMicrocosmLinksGetManyToMany from './types/blue/microcosm/links/getManyToMany.js';
|
|
2
6
|
export * as BlueMicrocosmLinksGetManyToManyCounts from './types/blue/microcosm/links/getManyToManyCounts.js';
|
|
7
|
+
export * as BlueMicrocosmRepoGetRecordByUri from './types/blue/microcosm/repo/getRecordByUri.js';
|
|
3
8
|
export * as ComBadExampleIdentityResolveMiniDoc from './types/com/bad-example/identity/resolveMiniDoc.js';
|
|
4
9
|
export * as ComBadExampleRepoGetUriRecord from './types/com/bad-example/repo/getUriRecord.js';
|
|
5
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,qCAAqC,MAAM,qDAAqD,CAAC;AAC7G,OAAO,KAAK,mCAAmC,MAAM,oDAAoD,CAAC;AAC1G,OAAO,KAAK,6BAA6B,MAAM,8CAA8C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,mCAAmC,MAAM,mDAAmD,CAAC;AACzG,OAAO,KAAK,iCAAiC,MAAM,iDAAiD,CAAC;AACrG,OAAO,KAAK,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,mCAAmC,MAAM,mDAAmD,CAAC;AACzG,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,qCAAqC,MAAM,qDAAqD,CAAC;AAC7G,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,mCAAmC,MAAM,oDAAoD,CAAC;AAC1G,OAAO,KAAK,6BAA6B,MAAM,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
3
|
+
/**
|
|
4
|
+
* handle or DID to resolve
|
|
5
|
+
*/
|
|
6
|
+
identifier: v.FormattedStringSchema<"at-identifier">;
|
|
7
|
+
}>, {
|
|
8
|
+
type: "lex";
|
|
9
|
+
schema: v.ObjectSchema<{
|
|
10
|
+
/**
|
|
11
|
+
* DID, bi-directionally verified if a handle was provided in the query
|
|
12
|
+
*/
|
|
13
|
+
did: v.FormattedStringSchema<"did">;
|
|
14
|
+
/**
|
|
15
|
+
* the validated handle of the account or 'handle.invalid' if the handle did not bi-directionally match the DID document
|
|
16
|
+
*/
|
|
17
|
+
handle: v.FormattedStringSchema<"handle">;
|
|
18
|
+
/**
|
|
19
|
+
* the identity's PDS URL
|
|
20
|
+
*/
|
|
21
|
+
pds: v.FormattedStringSchema<"uri">;
|
|
22
|
+
/**
|
|
23
|
+
* the atproto signing key publicKeyMultibase
|
|
24
|
+
*/
|
|
25
|
+
signing_key: v.StringSchema<string>;
|
|
26
|
+
}>;
|
|
27
|
+
}, "blue.microcosm.identity.resolveMiniDoc">;
|
|
28
|
+
type main$schematype = typeof _mainSchema;
|
|
29
|
+
export interface mainSchema extends main$schematype {
|
|
30
|
+
}
|
|
31
|
+
export declare const mainSchema: mainSchema;
|
|
32
|
+
export interface $params extends v.InferInput<mainSchema['params']> {
|
|
33
|
+
}
|
|
34
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
|
|
35
|
+
}
|
|
36
|
+
declare module '@atcute/lexicons/ambient' {
|
|
37
|
+
interface XRPCQueries {
|
|
38
|
+
'blue.microcosm.identity.resolveMiniDoc': mainSchema;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=resolveMiniDoc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveMiniDoc.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/identity/resolveMiniDoc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;IAEf;;OAEG;;;;;QAMF;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;4CAIJ,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,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,CAAC;IAC1C,UAAU,WAAW;QACpB,wCAAwC,EAAE,UAAU,CAAC;KACrD;CACD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.identity.resolveMiniDoc', {
|
|
3
|
+
params: /*#__PURE__*/ v.object({
|
|
4
|
+
/**
|
|
5
|
+
* handle or DID to resolve
|
|
6
|
+
*/
|
|
7
|
+
identifier: /*#__PURE__*/ v.actorIdentifierString(),
|
|
8
|
+
}),
|
|
9
|
+
output: {
|
|
10
|
+
type: 'lex',
|
|
11
|
+
schema: /*#__PURE__*/ v.object({
|
|
12
|
+
/**
|
|
13
|
+
* DID, bi-directionally verified if a handle was provided in the query
|
|
14
|
+
*/
|
|
15
|
+
did: /*#__PURE__*/ v.didString(),
|
|
16
|
+
/**
|
|
17
|
+
* the validated handle of the account or 'handle.invalid' if the handle did not bi-directionally match the DID document
|
|
18
|
+
*/
|
|
19
|
+
handle: /*#__PURE__*/ v.handleString(),
|
|
20
|
+
/**
|
|
21
|
+
* the identity's PDS URL
|
|
22
|
+
*/
|
|
23
|
+
pds: /*#__PURE__*/ v.genericUriString(),
|
|
24
|
+
/**
|
|
25
|
+
* the atproto signing key publicKeyMultibase
|
|
26
|
+
*/
|
|
27
|
+
signing_key: /*#__PURE__*/ v.string(),
|
|
28
|
+
}),
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
export const mainSchema = _mainSchema;
|
|
32
|
+
//# sourceMappingURL=resolveMiniDoc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveMiniDoc.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/identity/resolveMiniDoc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,wCAAwC,EAAE;IACnF,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;WAEG;QACH,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,qBAAqB,EAAE;KACnD,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B;;eAEG;YACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;YAChC;;eAEG;YACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,YAAY,EAAE;YACtC;;eAEG;YACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;YACvC;;eAEG;YACH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;SACrC,CAAC;KACF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
3
|
+
/**
|
|
4
|
+
* number of results to return
|
|
5
|
+
* @minimum 1
|
|
6
|
+
* @maximum 100
|
|
7
|
+
* @default 16
|
|
8
|
+
*/
|
|
9
|
+
limit: v.OptionalSchema<v.SchemaWithConstraint<v.IntegerSchema, readonly [v.IntegerRangeConstraint<1, 100>]>, 16>;
|
|
10
|
+
/**
|
|
11
|
+
* collection and path specification (e.g., 'app.bsky.feed.like:subject.uri')
|
|
12
|
+
*/
|
|
13
|
+
source: v.StringSchema<string>;
|
|
14
|
+
/**
|
|
15
|
+
* the target being linked to (at-uri, did, or uri)
|
|
16
|
+
*/
|
|
17
|
+
subject: v.FormattedStringSchema<"uri">;
|
|
18
|
+
}>, {
|
|
19
|
+
type: "lex";
|
|
20
|
+
schema: v.ObjectSchema<{
|
|
21
|
+
/**
|
|
22
|
+
* pagination cursor
|
|
23
|
+
*/
|
|
24
|
+
cursor: v.OptionalSchema<v.StringSchema<string>, undefined>;
|
|
25
|
+
linking_dids: v.ArraySchema<v.FormattedStringSchema<"did">>;
|
|
26
|
+
/**
|
|
27
|
+
* total number of matching links
|
|
28
|
+
*/
|
|
29
|
+
total: v.IntegerSchema;
|
|
30
|
+
}>;
|
|
31
|
+
}, "blue.microcosm.links.getBacklinkDids">;
|
|
32
|
+
type main$schematype = typeof _mainSchema;
|
|
33
|
+
export interface mainSchema extends main$schematype {
|
|
34
|
+
}
|
|
35
|
+
export declare const mainSchema: mainSchema;
|
|
36
|
+
export interface $params extends v.InferInput<mainSchema['params']> {
|
|
37
|
+
}
|
|
38
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
|
|
39
|
+
}
|
|
40
|
+
declare module '@atcute/lexicons/ambient' {
|
|
41
|
+
interface XRPCQueries {
|
|
42
|
+
'blue.microcosm.links.getBacklinkDids': mainSchema;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=getBacklinkDids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBacklinkDids.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getBacklinkDids.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;IAEf;;;;;OAKG;;IAKH;;OAEG;;IAEH;;OAEG;;;;;QAMF;;WAEG;;;QAGH;;WAEG;;;0CAIJ,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,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,CAAC;IAC1C,UAAU,WAAW;QACpB,sCAAsC,EAAE,UAAU,CAAC;KACnD;CACD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getBacklinkDids', {
|
|
3
|
+
params: /*#__PURE__*/ v.object({
|
|
4
|
+
/**
|
|
5
|
+
* number of results to return
|
|
6
|
+
* @minimum 1
|
|
7
|
+
* @maximum 100
|
|
8
|
+
* @default 16
|
|
9
|
+
*/
|
|
10
|
+
limit: /*#__PURE__*/ v.optional(
|
|
11
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 16),
|
|
12
|
+
/**
|
|
13
|
+
* collection and path specification (e.g., 'app.bsky.feed.like:subject.uri')
|
|
14
|
+
*/
|
|
15
|
+
source: /*#__PURE__*/ v.string(),
|
|
16
|
+
/**
|
|
17
|
+
* the target being linked to (at-uri, did, or uri)
|
|
18
|
+
*/
|
|
19
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
20
|
+
}),
|
|
21
|
+
output: {
|
|
22
|
+
type: 'lex',
|
|
23
|
+
schema: /*#__PURE__*/ v.object({
|
|
24
|
+
/**
|
|
25
|
+
* pagination cursor
|
|
26
|
+
*/
|
|
27
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
28
|
+
linking_dids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()),
|
|
29
|
+
/**
|
|
30
|
+
* total number of matching links
|
|
31
|
+
*/
|
|
32
|
+
total: /*#__PURE__*/ v.integer(),
|
|
33
|
+
}),
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
export const mainSchema = _mainSchema;
|
|
37
|
+
//# sourceMappingURL=getBacklinkDids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBacklinkDids.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getBacklinkDids.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,sCAAsC,EAAE;IACjF,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;;;;WAKG;QACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC9B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAC5F,EAAE,CACF;QACD;;WAEG;QACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;QAChC;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;KAC3C,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B;;eAEG;YACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC1D,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;YAChE;;eAEG;YACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;SAChC,CAAC;KACF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBacklinks.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getBacklinks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBacklinks.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getBacklinks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,iBAAiB;;IAEtB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;EAEF,CAAC;AACH,QAAA,MAAM,WAAW;IAEf;;OAEG;;IAEH;;;;;OAKG;;IAKH;;OAEG;;IAEH;;OAEG;;;;;QAMF;;WAEG;;;QAKH;;WAEG;;;uCAIJ,CAAC;AAEH,KAAK,qBAAqB,GAAG,OAAO,iBAAiB,CAAC;AACtD,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,gBAAiB,SAAQ,qBAAqB;CAAG;AAClE,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,gBAAgB,kBAAwC,CAAC;AACtE,eAAO,MAAM,UAAU,YAA4B,CAAC;AAEpD,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE5E,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,CAAC;IAC1C,UAAU,WAAW;QACpB,mCAAmC,EAAE,UAAU,CAAC;KAChD;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBacklinks.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getBacklinks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBacklinks.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getBacklinks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,8CAA8C,CAAC,CAAC;IACxG;;OAEG;IACH,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,UAAU,EAAE;IACxC;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;IAChC;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,eAAe,EAAE;CACvC,CAAC,CAAC;AACH,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,mCAAmC,EAAE;IAC9E,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;WAEG;QACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;QACjF;;;;;WAKG;QACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC9B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAC5F,EAAE,CACF;QACD;;WAEG;QACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;QAChC;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;KAC3C,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B;;eAEG;YACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC1D,IAAI,OAAO,GAAG;gBACb,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAAA,CAC/C;YACD;;eAEG;YACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;SAChC,CAAC;KACF;CACD,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAqC,CAAC;AACtE,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
3
|
+
/**
|
|
4
|
+
* collection and path specification for the primary link
|
|
5
|
+
*/
|
|
6
|
+
source: v.StringSchema<string>;
|
|
7
|
+
/**
|
|
8
|
+
* the target being linked to (at-uri, did, or uri)
|
|
9
|
+
*/
|
|
10
|
+
subject: v.FormattedStringSchema<"at-uri">;
|
|
11
|
+
}>, {
|
|
12
|
+
type: "lex";
|
|
13
|
+
schema: v.ObjectSchema<{
|
|
14
|
+
/**
|
|
15
|
+
* total number of matching links
|
|
16
|
+
*/
|
|
17
|
+
total: v.IntegerSchema;
|
|
18
|
+
}>;
|
|
19
|
+
}, "blue.microcosm.links.getBacklinksCount">;
|
|
20
|
+
type main$schematype = typeof _mainSchema;
|
|
21
|
+
export interface mainSchema extends main$schematype {
|
|
22
|
+
}
|
|
23
|
+
export declare const mainSchema: mainSchema;
|
|
24
|
+
export interface $params extends v.InferInput<mainSchema['params']> {
|
|
25
|
+
}
|
|
26
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
|
|
27
|
+
}
|
|
28
|
+
declare module '@atcute/lexicons/ambient' {
|
|
29
|
+
interface XRPCQueries {
|
|
30
|
+
'blue.microcosm.links.getBacklinksCount': mainSchema;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=getBacklinksCount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBacklinksCount.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getBacklinksCount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;IAEf;;OAEG;;IAEH;;OAEG;;;;;QAMF;;WAEG;;;4CAIJ,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,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,CAAC;IAC1C,UAAU,WAAW;QACpB,wCAAwC,EAAE,UAAU,CAAC;KACrD;CACD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getBacklinksCount', {
|
|
3
|
+
params: /*#__PURE__*/ v.object({
|
|
4
|
+
/**
|
|
5
|
+
* collection and path specification for the primary link
|
|
6
|
+
*/
|
|
7
|
+
source: /*#__PURE__*/ v.string(),
|
|
8
|
+
/**
|
|
9
|
+
* the target being linked to (at-uri, did, or uri)
|
|
10
|
+
*/
|
|
11
|
+
subject: /*#__PURE__*/ v.resourceUriString(),
|
|
12
|
+
}),
|
|
13
|
+
output: {
|
|
14
|
+
type: 'lex',
|
|
15
|
+
schema: /*#__PURE__*/ v.object({
|
|
16
|
+
/**
|
|
17
|
+
* total number of matching links
|
|
18
|
+
*/
|
|
19
|
+
total: /*#__PURE__*/ v.integer(),
|
|
20
|
+
}),
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export const mainSchema = _mainSchema;
|
|
24
|
+
//# sourceMappingURL=getBacklinksCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBacklinksCount.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getBacklinksCount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,wCAAwC,EAAE;IACnF,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;WAEG;QACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;QAChC;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;KAC5C,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B;;eAEG;YACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;SAChC,CAAC;KACF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _itemSchema: v.ObjectSchema<{
|
|
3
|
+
$type: v.OptionalSchema<v.LiteralSchema<"blue.microcosm.links.getManyToMany#item">, undefined>;
|
|
4
|
+
readonly linkRecord: linkRecordSchema;
|
|
5
|
+
/**
|
|
6
|
+
* the secondary subject from the link record
|
|
7
|
+
*/
|
|
8
|
+
otherSubject: v.StringSchema<string>;
|
|
9
|
+
}>;
|
|
10
|
+
declare const _linkRecordSchema: v.ObjectSchema<{
|
|
11
|
+
$type: v.OptionalSchema<v.LiteralSchema<"blue.microcosm.links.getManyToMany#linkRecord">, undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* the collection of the linking record
|
|
14
|
+
*/
|
|
15
|
+
collection: v.FormattedStringSchema<"nsid">;
|
|
16
|
+
/**
|
|
17
|
+
* the DID of the linking record's repository
|
|
18
|
+
*/
|
|
19
|
+
did: v.FormattedStringSchema<"did">;
|
|
20
|
+
rkey: v.FormattedStringSchema<"record-key">;
|
|
21
|
+
}>;
|
|
22
|
+
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
23
|
+
/**
|
|
24
|
+
* number of results to return
|
|
25
|
+
* @minimum 1
|
|
26
|
+
* @maximum 100
|
|
27
|
+
* @default 16
|
|
28
|
+
*/
|
|
29
|
+
limit: v.OptionalSchema<v.SchemaWithConstraint<v.IntegerSchema, readonly [v.IntegerRangeConstraint<1, 100>]>, 16>;
|
|
30
|
+
/**
|
|
31
|
+
* filter linking records from specific users
|
|
32
|
+
*/
|
|
33
|
+
linkDid: v.OptionalSchema<v.ArraySchema<v.FormattedStringSchema<"did">>, undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* filter secondary links to specific subjects
|
|
36
|
+
*/
|
|
37
|
+
otherSubject: v.OptionalSchema<v.ArraySchema<v.StringSchema<string>>, undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')
|
|
40
|
+
*/
|
|
41
|
+
pathToOther: v.StringSchema<string>;
|
|
42
|
+
/**
|
|
43
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
44
|
+
*/
|
|
45
|
+
source: v.StringSchema<string>;
|
|
46
|
+
/**
|
|
47
|
+
* the primary target being linked to (at-uri, did, or uri)
|
|
48
|
+
*/
|
|
49
|
+
subject: v.FormattedStringSchema<"uri">;
|
|
50
|
+
}>, {
|
|
51
|
+
type: "lex";
|
|
52
|
+
schema: v.ObjectSchema<{
|
|
53
|
+
cursor: v.OptionalSchema<v.StringSchema<string>, undefined>;
|
|
54
|
+
readonly items: v.ArraySchema<itemSchema>;
|
|
55
|
+
}>;
|
|
56
|
+
}, "blue.microcosm.links.getManyToMany">;
|
|
57
|
+
type item$schematype = typeof _itemSchema;
|
|
58
|
+
type linkRecord$schematype = typeof _linkRecordSchema;
|
|
59
|
+
type main$schematype = typeof _mainSchema;
|
|
60
|
+
export interface itemSchema extends item$schematype {
|
|
61
|
+
}
|
|
62
|
+
export interface linkRecordSchema extends linkRecord$schematype {
|
|
63
|
+
}
|
|
64
|
+
export interface mainSchema extends main$schematype {
|
|
65
|
+
}
|
|
66
|
+
export declare const itemSchema: itemSchema;
|
|
67
|
+
export declare const linkRecordSchema: linkRecordSchema;
|
|
68
|
+
export declare const mainSchema: mainSchema;
|
|
69
|
+
export interface Item extends v.InferInput<typeof itemSchema> {
|
|
70
|
+
}
|
|
71
|
+
export interface LinkRecord extends v.InferInput<typeof linkRecordSchema> {
|
|
72
|
+
}
|
|
73
|
+
export interface $params extends v.InferInput<mainSchema['params']> {
|
|
74
|
+
}
|
|
75
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
|
|
76
|
+
}
|
|
77
|
+
declare module '@atcute/lexicons/ambient' {
|
|
78
|
+
interface XRPCQueries {
|
|
79
|
+
'blue.microcosm.links.getManyToMany': mainSchema;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=getManyToMany.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManyToMany.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getManyToMany.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;;IAKhB;;OAEG;;EAEF,CAAC;AACH,QAAA,MAAM,iBAAiB;;IAEtB;;OAEG;;IAEH;;OAEG;;;EAGF,CAAC;AACH,QAAA,MAAM,WAAW;IAEf;;;;;OAKG;;IAKH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;wCAYH,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAC1C,KAAK,qBAAqB,GAAG,OAAO,iBAAiB,CAAC;AACtD,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AACtD,MAAM,WAAW,gBAAiB,SAAQ,qBAAqB;CAAG;AAClE,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,CAAC;AACpD,eAAO,MAAM,gBAAgB,kBAAwC,CAAC;AACtE,eAAO,MAAM,UAAU,YAA4B,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAChE,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE5E,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,CAAC;IAC1C,UAAU,WAAW;QACpB,oCAAoC,EAAE,UAAU,CAAC;KACjD;CACD"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _itemSchema = /*#__PURE__*/ v.object({
|
|
3
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.microcosm.links.getManyToMany#item')),
|
|
4
|
+
get linkRecord() {
|
|
5
|
+
return linkRecordSchema;
|
|
6
|
+
},
|
|
7
|
+
/**
|
|
8
|
+
* the secondary subject from the link record
|
|
9
|
+
*/
|
|
10
|
+
otherSubject: /*#__PURE__*/ v.string(),
|
|
11
|
+
});
|
|
12
|
+
const _linkRecordSchema = /*#__PURE__*/ v.object({
|
|
13
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.microcosm.links.getManyToMany#linkRecord')),
|
|
14
|
+
/**
|
|
15
|
+
* the collection of the linking record
|
|
16
|
+
*/
|
|
17
|
+
collection: /*#__PURE__*/ v.nsidString(),
|
|
18
|
+
/**
|
|
19
|
+
* the DID of the linking record's repository
|
|
20
|
+
*/
|
|
21
|
+
did: /*#__PURE__*/ v.didString(),
|
|
22
|
+
rkey: /*#__PURE__*/ v.recordKeyString(),
|
|
23
|
+
});
|
|
24
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getManyToMany', {
|
|
25
|
+
params: /*#__PURE__*/ v.object({
|
|
26
|
+
/**
|
|
27
|
+
* number of results to return
|
|
28
|
+
* @minimum 1
|
|
29
|
+
* @maximum 100
|
|
30
|
+
* @default 16
|
|
31
|
+
*/
|
|
32
|
+
limit: /*#__PURE__*/ v.optional(
|
|
33
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 16),
|
|
34
|
+
/**
|
|
35
|
+
* filter linking records from specific users
|
|
36
|
+
*/
|
|
37
|
+
linkDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())),
|
|
38
|
+
/**
|
|
39
|
+
* filter secondary links to specific subjects
|
|
40
|
+
*/
|
|
41
|
+
otherSubject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
|
|
42
|
+
/**
|
|
43
|
+
* path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')
|
|
44
|
+
*/
|
|
45
|
+
pathToOther: /*#__PURE__*/ v.string(),
|
|
46
|
+
/**
|
|
47
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
48
|
+
*/
|
|
49
|
+
source: /*#__PURE__*/ v.string(),
|
|
50
|
+
/**
|
|
51
|
+
* the primary target being linked to (at-uri, did, or uri)
|
|
52
|
+
*/
|
|
53
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
54
|
+
}),
|
|
55
|
+
output: {
|
|
56
|
+
type: 'lex',
|
|
57
|
+
schema: /*#__PURE__*/ v.object({
|
|
58
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
59
|
+
get items() {
|
|
60
|
+
return /*#__PURE__*/ v.array(itemSchema);
|
|
61
|
+
},
|
|
62
|
+
}),
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
export const itemSchema = _itemSchema;
|
|
66
|
+
export const linkRecordSchema = _linkRecordSchema;
|
|
67
|
+
export const mainSchema = _mainSchema;
|
|
68
|
+
//# sourceMappingURL=getManyToMany.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManyToMany.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getManyToMany.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACnG,IAAI,UAAU,GAAG;QAChB,OAAO,gBAAgB,CAAC;IAAA,CACxB;IACD;;OAEG;IACH,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;CACtC,CAAC,CAAC;AACH,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACzG;;OAEG;IACH,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,UAAU,EAAE;IACxC;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;IAChC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,eAAe,EAAE;CACvC,CAAC,CAAC;AACH,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,oCAAoC,EAAE;IAC/E,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;;;;WAKG;QACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC9B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAC5F,EAAE,CACF;QACD;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;QACrF;;WAEG;QACH,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACvF;;WAEG;QACH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;QACrC;;WAEG;QACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;QAChC;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;KAC3C,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC1D,IAAI,KAAK,GAAG;gBACX,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAAA,CACzC;SACD,CAAC;KACF;CACD,CAAC,CAAC;AAUH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAqC,CAAC;AACtE,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getManyToManyCounts.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getManyToManyCounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getManyToManyCounts.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getManyToManyCounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,qBAAqB;;IAI1B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;EAEF,CAAC;AACH,QAAA,MAAM,WAAW;IAEf;;OAEG;;IAEH;;;;;OAKG;;IAKH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;QASF;;WAEG;;;8CAIJ,CAAC;AAEH,KAAK,yBAAyB,GAAG,OAAO,qBAAqB,CAAC;AAC9D,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,oBAAqB,SAAQ,yBAAyB;CAAG;AAC1E,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,oBAAoB,sBAAgD,CAAC;AAClF,eAAO,MAAM,UAAU,YAA4B,CAAC;AAEpD,MAAM,WAAW,cAAe,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAEpF,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,CAAC;IAC1C,UAAU,WAAW;QACpB,0CAA0C,EAAE,UAAU,CAAC;KACvD;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getManyToManyCounts.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getManyToManyCounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getManyToManyCounts.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/links/getManyToManyCounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,qBAAqB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC9B,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,yDAAyD,CAAC,CAClF;IACD;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IACnC;;OAEG;IACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IACjC;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;CAChC,CAAC,CAAC;AACH,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,0CAA0C,EAAE;IACrF,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;WAEG;QACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;QACjF;;;;;WAKG;QACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC9B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAC5F,EAAE,CACF;QACD;;WAEG;QACH,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACvF;;WAEG;QACH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;QACrC;;WAEG;QACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;QAChC;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;KAC3C,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,IAAI,uBAAuB,GAAG;gBAC7B,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YAAA,CACnD;YACD;;eAEG;YACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SAC1D,CAAC;KACF;CACD,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,oBAAoB,GAAG,qBAA6C,CAAC;AAClF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
3
|
+
/**
|
|
4
|
+
* the at-uri of the record (identifier can be a DID or handle)
|
|
5
|
+
*/
|
|
6
|
+
at_uri: v.FormattedStringSchema<"at-uri">;
|
|
7
|
+
/**
|
|
8
|
+
* optional CID of the version of the record. if not specified, return the most recent version. if specified and a newer version exists, returns 404.
|
|
9
|
+
*/
|
|
10
|
+
cid: v.OptionalSchema<v.FormattedStringSchema<"cid">, undefined>;
|
|
11
|
+
}>, {
|
|
12
|
+
type: "lex";
|
|
13
|
+
schema: v.ObjectSchema<{
|
|
14
|
+
/**
|
|
15
|
+
* CID for this exact version of the record
|
|
16
|
+
*/
|
|
17
|
+
cid: v.OptionalSchema<v.FormattedStringSchema<"cid">, undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* at-uri for this record
|
|
20
|
+
*/
|
|
21
|
+
uri: v.FormattedStringSchema<"at-uri">;
|
|
22
|
+
/**
|
|
23
|
+
* the record itself
|
|
24
|
+
*/
|
|
25
|
+
value: v.UnknownSchema;
|
|
26
|
+
}>;
|
|
27
|
+
}, "blue.microcosm.repo.getRecordByUri">;
|
|
28
|
+
type main$schematype = typeof _mainSchema;
|
|
29
|
+
export interface mainSchema extends main$schematype {
|
|
30
|
+
}
|
|
31
|
+
export declare const mainSchema: mainSchema;
|
|
32
|
+
export interface $params extends v.InferInput<mainSchema['params']> {
|
|
33
|
+
}
|
|
34
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
|
|
35
|
+
}
|
|
36
|
+
declare module '@atcute/lexicons/ambient' {
|
|
37
|
+
interface XRPCQueries {
|
|
38
|
+
'blue.microcosm.repo.getRecordByUri': mainSchema;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=getRecordByUri.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecordByUri.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/repo/getRecordByUri.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;IAEf;;OAEG;;IAEH;;OAEG;;;;;QAMF;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;wCAIJ,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,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,CAAC;IAC1C,UAAU,WAAW;QACpB,oCAAoC,EAAE,UAAU,CAAC;KACjD;CACD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.repo.getRecordByUri', {
|
|
3
|
+
params: /*#__PURE__*/ v.object({
|
|
4
|
+
/**
|
|
5
|
+
* the at-uri of the record (identifier can be a DID or handle)
|
|
6
|
+
*/
|
|
7
|
+
at_uri: /*#__PURE__*/ v.resourceUriString(),
|
|
8
|
+
/**
|
|
9
|
+
* optional CID of the version of the record. if not specified, return the most recent version. if specified and a newer version exists, returns 404.
|
|
10
|
+
*/
|
|
11
|
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
12
|
+
}),
|
|
13
|
+
output: {
|
|
14
|
+
type: 'lex',
|
|
15
|
+
schema: /*#__PURE__*/ v.object({
|
|
16
|
+
/**
|
|
17
|
+
* CID for this exact version of the record
|
|
18
|
+
*/
|
|
19
|
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
20
|
+
/**
|
|
21
|
+
* at-uri for this record
|
|
22
|
+
*/
|
|
23
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
24
|
+
/**
|
|
25
|
+
* the record itself
|
|
26
|
+
*/
|
|
27
|
+
value: /*#__PURE__*/ v.unknown(),
|
|
28
|
+
}),
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
export const mainSchema = _mainSchema;
|
|
32
|
+
//# sourceMappingURL=getRecordByUri.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecordByUri.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blue/microcosm/repo/getRecordByUri.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,oCAAoC,EAAE;IAC/E,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;WAEG;QACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;QAC3C;;WAEG;QACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;KAC1D,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B;;eAEG;YACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;YAC1D;;eAEG;YACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;YACxC;;eAEG;YACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;SAChC,CAAC;KACF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveMiniDoc.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/bad-example/identity/resolveMiniDoc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveMiniDoc.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/bad-example/identity/resolveMiniDoc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;IAEf;;OAEG;;;;;QAMF;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;6CAIJ,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,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,CAAC;IAC1C,UAAU,WAAW;QACpB,yCAAyC,EAAE,UAAU,CAAC;KACtD;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveMiniDoc.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/bad-example/identity/resolveMiniDoc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveMiniDoc.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/bad-example/identity/resolveMiniDoc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,yCAAyC,EAAE;IACpF,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;WAEG;QACH,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,qBAAqB,EAAE;KACnD,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B;;eAEG;YACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;YAChC;;eAEG;YACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,YAAY,EAAE;YACtC;;eAEG;YACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;YACvC;;eAEG;YACH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;SACrC,CAAC;KACF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUriRecord.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/bad-example/repo/getUriRecord.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getUriRecord.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/bad-example/repo/getUriRecord.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;IAEf;;OAEG;;IAEH;;OAEG;;;;;QAMF;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;uCAIJ,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,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,CAAC;IAC1C,UAAU,WAAW;QACpB,mCAAmC,EAAE,UAAU,CAAC;KAChD;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUriRecord.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/bad-example/repo/getUriRecord.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getUriRecord.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/com/bad-example/repo/getUriRecord.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,mCAAmC,EAAE;IAC9E,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;WAEG;QACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;QAC3C;;WAEG;QACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;KAC1D,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B;;eAEG;YACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;YAC1D;;eAEG;YACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;YACxC;;eAEG;YACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;SAChC,CAAC;KACF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
package/lib/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './lexicons/index.
|
|
1
|
+
export * from './lexicons/index.ts';
|
package/lib/lexicons/index.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
3
|
-
export * as
|
|
4
|
-
export * as
|
|
1
|
+
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.ts';
|
|
2
|
+
export * as BlueMicrocosmLinksGetBacklinkDids from './types/blue/microcosm/links/getBacklinkDids.ts';
|
|
3
|
+
export * as BlueMicrocosmLinksGetBacklinks from './types/blue/microcosm/links/getBacklinks.ts';
|
|
4
|
+
export * as BlueMicrocosmLinksGetBacklinksCount from './types/blue/microcosm/links/getBacklinksCount.ts';
|
|
5
|
+
export * as BlueMicrocosmLinksGetManyToMany from './types/blue/microcosm/links/getManyToMany.ts';
|
|
6
|
+
export * as BlueMicrocosmLinksGetManyToManyCounts from './types/blue/microcosm/links/getManyToManyCounts.ts';
|
|
7
|
+
export * as BlueMicrocosmRepoGetRecordByUri from './types/blue/microcosm/repo/getRecordByUri.ts';
|
|
8
|
+
export * as ComBadExampleIdentityResolveMiniDoc from './types/com/bad-example/identity/resolveMiniDoc.ts';
|
|
9
|
+
export * as ComBadExampleRepoGetUriRecord from './types/com/bad-example/repo/getUriRecord.ts';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.identity.resolveMiniDoc', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* handle or DID to resolve
|
|
9
|
+
*/
|
|
10
|
+
identifier: /*#__PURE__*/ v.actorIdentifierString(),
|
|
11
|
+
}),
|
|
12
|
+
output: {
|
|
13
|
+
type: 'lex',
|
|
14
|
+
schema: /*#__PURE__*/ v.object({
|
|
15
|
+
/**
|
|
16
|
+
* DID, bi-directionally verified if a handle was provided in the query
|
|
17
|
+
*/
|
|
18
|
+
did: /*#__PURE__*/ v.didString(),
|
|
19
|
+
/**
|
|
20
|
+
* the validated handle of the account or 'handle.invalid' if the handle did not bi-directionally match the DID document
|
|
21
|
+
*/
|
|
22
|
+
handle: /*#__PURE__*/ v.handleString(),
|
|
23
|
+
/**
|
|
24
|
+
* the identity's PDS URL
|
|
25
|
+
*/
|
|
26
|
+
pds: /*#__PURE__*/ v.genericUriString(),
|
|
27
|
+
/**
|
|
28
|
+
* the atproto signing key publicKeyMultibase
|
|
29
|
+
*/
|
|
30
|
+
signing_key: /*#__PURE__*/ v.string(),
|
|
31
|
+
}),
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
type main$schematype = typeof _mainSchema;
|
|
36
|
+
|
|
37
|
+
export interface mainSchema extends main$schematype {}
|
|
38
|
+
|
|
39
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
40
|
+
|
|
41
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
42
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
43
|
+
|
|
44
|
+
declare module '@atcute/lexicons/ambient' {
|
|
45
|
+
interface XRPCQueries {
|
|
46
|
+
'blue.microcosm.identity.resolveMiniDoc': mainSchema;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getBacklinkDids', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* number of results to return
|
|
9
|
+
* @minimum 1
|
|
10
|
+
* @maximum 100
|
|
11
|
+
* @default 16
|
|
12
|
+
*/
|
|
13
|
+
limit: /*#__PURE__*/ v.optional(
|
|
14
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
15
|
+
16,
|
|
16
|
+
),
|
|
17
|
+
/**
|
|
18
|
+
* collection and path specification (e.g., 'app.bsky.feed.like:subject.uri')
|
|
19
|
+
*/
|
|
20
|
+
source: /*#__PURE__*/ v.string(),
|
|
21
|
+
/**
|
|
22
|
+
* the target being linked to (at-uri, did, or uri)
|
|
23
|
+
*/
|
|
24
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
25
|
+
}),
|
|
26
|
+
output: {
|
|
27
|
+
type: 'lex',
|
|
28
|
+
schema: /*#__PURE__*/ v.object({
|
|
29
|
+
/**
|
|
30
|
+
* pagination cursor
|
|
31
|
+
*/
|
|
32
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
33
|
+
linking_dids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()),
|
|
34
|
+
/**
|
|
35
|
+
* total number of matching links
|
|
36
|
+
*/
|
|
37
|
+
total: /*#__PURE__*/ v.integer(),
|
|
38
|
+
}),
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
type main$schematype = typeof _mainSchema;
|
|
43
|
+
|
|
44
|
+
export interface mainSchema extends main$schematype {}
|
|
45
|
+
|
|
46
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
47
|
+
|
|
48
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
49
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
50
|
+
|
|
51
|
+
declare module '@atcute/lexicons/ambient' {
|
|
52
|
+
interface XRPCQueries {
|
|
53
|
+
'blue.microcosm.links.getBacklinkDids': mainSchema;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
|
-
import * as v from '@atcute/lexicons/validations';
|
|
3
2
|
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
4
|
|
|
5
5
|
const _linkRecordSchema = /*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.microcosm.links.getBacklinks#linkRecord')),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getBacklinksCount', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* collection and path specification for the primary link
|
|
9
|
+
*/
|
|
10
|
+
source: /*#__PURE__*/ v.string(),
|
|
11
|
+
/**
|
|
12
|
+
* the target being linked to (at-uri, did, or uri)
|
|
13
|
+
*/
|
|
14
|
+
subject: /*#__PURE__*/ v.resourceUriString(),
|
|
15
|
+
}),
|
|
16
|
+
output: {
|
|
17
|
+
type: 'lex',
|
|
18
|
+
schema: /*#__PURE__*/ v.object({
|
|
19
|
+
/**
|
|
20
|
+
* total number of matching links
|
|
21
|
+
*/
|
|
22
|
+
total: /*#__PURE__*/ v.integer(),
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
type main$schematype = typeof _mainSchema;
|
|
28
|
+
|
|
29
|
+
export interface mainSchema extends main$schematype {}
|
|
30
|
+
|
|
31
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
32
|
+
|
|
33
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
34
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
35
|
+
|
|
36
|
+
declare module '@atcute/lexicons/ambient' {
|
|
37
|
+
interface XRPCQueries {
|
|
38
|
+
'blue.microcosm.links.getBacklinksCount': mainSchema;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _itemSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.microcosm.links.getManyToMany#item')),
|
|
7
|
+
get linkRecord() {
|
|
8
|
+
return linkRecordSchema;
|
|
9
|
+
},
|
|
10
|
+
/**
|
|
11
|
+
* the secondary subject from the link record
|
|
12
|
+
*/
|
|
13
|
+
otherSubject: /*#__PURE__*/ v.string(),
|
|
14
|
+
});
|
|
15
|
+
const _linkRecordSchema = /*#__PURE__*/ v.object({
|
|
16
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.microcosm.links.getManyToMany#linkRecord')),
|
|
17
|
+
/**
|
|
18
|
+
* the collection of the linking record
|
|
19
|
+
*/
|
|
20
|
+
collection: /*#__PURE__*/ v.nsidString(),
|
|
21
|
+
/**
|
|
22
|
+
* the DID of the linking record's repository
|
|
23
|
+
*/
|
|
24
|
+
did: /*#__PURE__*/ v.didString(),
|
|
25
|
+
rkey: /*#__PURE__*/ v.recordKeyString(),
|
|
26
|
+
});
|
|
27
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getManyToMany', {
|
|
28
|
+
params: /*#__PURE__*/ v.object({
|
|
29
|
+
/**
|
|
30
|
+
* number of results to return
|
|
31
|
+
* @minimum 1
|
|
32
|
+
* @maximum 100
|
|
33
|
+
* @default 16
|
|
34
|
+
*/
|
|
35
|
+
limit: /*#__PURE__*/ v.optional(
|
|
36
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
37
|
+
16,
|
|
38
|
+
),
|
|
39
|
+
/**
|
|
40
|
+
* filter linking records from specific users
|
|
41
|
+
*/
|
|
42
|
+
linkDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())),
|
|
43
|
+
/**
|
|
44
|
+
* filter secondary links to specific subjects
|
|
45
|
+
*/
|
|
46
|
+
otherSubject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
|
|
47
|
+
/**
|
|
48
|
+
* path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')
|
|
49
|
+
*/
|
|
50
|
+
pathToOther: /*#__PURE__*/ v.string(),
|
|
51
|
+
/**
|
|
52
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
53
|
+
*/
|
|
54
|
+
source: /*#__PURE__*/ v.string(),
|
|
55
|
+
/**
|
|
56
|
+
* the primary target being linked to (at-uri, did, or uri)
|
|
57
|
+
*/
|
|
58
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
59
|
+
}),
|
|
60
|
+
output: {
|
|
61
|
+
type: 'lex',
|
|
62
|
+
schema: /*#__PURE__*/ v.object({
|
|
63
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
64
|
+
get items() {
|
|
65
|
+
return /*#__PURE__*/ v.array(itemSchema);
|
|
66
|
+
},
|
|
67
|
+
}),
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
type item$schematype = typeof _itemSchema;
|
|
72
|
+
type linkRecord$schematype = typeof _linkRecordSchema;
|
|
73
|
+
type main$schematype = typeof _mainSchema;
|
|
74
|
+
|
|
75
|
+
export interface itemSchema extends item$schematype {}
|
|
76
|
+
export interface linkRecordSchema extends linkRecord$schematype {}
|
|
77
|
+
export interface mainSchema extends main$schematype {}
|
|
78
|
+
|
|
79
|
+
export const itemSchema = _itemSchema as itemSchema;
|
|
80
|
+
export const linkRecordSchema = _linkRecordSchema as linkRecordSchema;
|
|
81
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
82
|
+
|
|
83
|
+
export interface Item extends v.InferInput<typeof itemSchema> {}
|
|
84
|
+
export interface LinkRecord extends v.InferInput<typeof linkRecordSchema> {}
|
|
85
|
+
|
|
86
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
87
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
88
|
+
|
|
89
|
+
declare module '@atcute/lexicons/ambient' {
|
|
90
|
+
interface XRPCQueries {
|
|
91
|
+
'blue.microcosm.links.getManyToMany': mainSchema;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
|
-
import * as v from '@atcute/lexicons/validations';
|
|
3
2
|
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
4
|
|
|
5
5
|
const _countBySubjectSchema = /*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.repo.getRecordByUri', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* the at-uri of the record (identifier can be a DID or handle)
|
|
9
|
+
*/
|
|
10
|
+
at_uri: /*#__PURE__*/ v.resourceUriString(),
|
|
11
|
+
/**
|
|
12
|
+
* optional CID of the version of the record. if not specified, return the most recent version. if specified and a newer version exists, returns 404.
|
|
13
|
+
*/
|
|
14
|
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
15
|
+
}),
|
|
16
|
+
output: {
|
|
17
|
+
type: 'lex',
|
|
18
|
+
schema: /*#__PURE__*/ v.object({
|
|
19
|
+
/**
|
|
20
|
+
* CID for this exact version of the record
|
|
21
|
+
*/
|
|
22
|
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
23
|
+
/**
|
|
24
|
+
* at-uri for this record
|
|
25
|
+
*/
|
|
26
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
27
|
+
/**
|
|
28
|
+
* the record itself
|
|
29
|
+
*/
|
|
30
|
+
value: /*#__PURE__*/ v.unknown(),
|
|
31
|
+
}),
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
type main$schematype = typeof _mainSchema;
|
|
36
|
+
|
|
37
|
+
export interface mainSchema extends main$schematype {}
|
|
38
|
+
|
|
39
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
40
|
+
|
|
41
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
42
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
43
|
+
|
|
44
|
+
declare module '@atcute/lexicons/ambient' {
|
|
45
|
+
interface XRPCQueries {
|
|
46
|
+
'blue.microcosm.repo.getRecordByUri': mainSchema;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
|
-
import * as v from '@atcute/lexicons/validations';
|
|
3
2
|
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('com.bad-example.identity.resolveMiniDoc', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
|
-
import * as v from '@atcute/lexicons/validations';
|
|
3
2
|
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('com.bad-example.repo.getUriRecord', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "module",
|
|
3
2
|
"name": "@atcute/microcosm",
|
|
4
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
5
4
|
"description": "Microcosm (blue.microcosm.*, com.bad-example.*) schema definitions",
|
|
6
5
|
"license": "0BSD",
|
|
7
6
|
"repository": {
|
|
@@ -14,17 +13,22 @@
|
|
|
14
13
|
"!lib/**/*.bench.ts",
|
|
15
14
|
"!lib/**/*.test.ts"
|
|
16
15
|
],
|
|
16
|
+
"type": "module",
|
|
17
17
|
"exports": {
|
|
18
18
|
".": "./dist/index.js",
|
|
19
19
|
"./types/blue/microcosm/*": "./dist/lexicons/types/blue/microcosm/*.js",
|
|
20
20
|
"./types/com/bad-example/*": "./dist/lexicons/types/com/bad-example/*.js"
|
|
21
21
|
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
22
25
|
"dependencies": {
|
|
23
|
-
"@atcute/lexicons": "^1.2.
|
|
26
|
+
"@atcute/lexicons": "^1.2.9"
|
|
24
27
|
},
|
|
25
28
|
"devDependencies": {
|
|
26
29
|
"@atcute/microcosm": "file:",
|
|
27
|
-
"@atcute/
|
|
30
|
+
"@atcute/lexicon-doc": "^2.1.1",
|
|
31
|
+
"@atcute/lex-cli": "^2.5.3"
|
|
28
32
|
},
|
|
29
33
|
"atcute:lexicons": {
|
|
30
34
|
"mappings": {
|
|
@@ -39,8 +43,9 @@
|
|
|
39
43
|
}
|
|
40
44
|
},
|
|
41
45
|
"scripts": {
|
|
42
|
-
"build": "
|
|
43
|
-
"generate": "rm -r ./lib/lexicons/; lex-cli generate
|
|
46
|
+
"build": "tsgo -b",
|
|
47
|
+
"generate": "rm -r ./lib/lexicons/; lex-cli generate",
|
|
48
|
+
"export": "lex-cli export",
|
|
44
49
|
"prepublish": "rm -rf dist; pnpm run build"
|
|
45
50
|
}
|
|
46
51
|
}
|