@atcute/microcosm 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/lexicons/index.d.ts +3 -0
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +3 -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/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/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/lexicons/index.ts +3 -0
- package/lib/lexicons/types/blue/microcosm/identity/resolveMiniDoc.ts +48 -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/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/lexicons/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.js';
|
|
1
2
|
export * as BlueMicrocosmLinksGetBacklinks from './types/blue/microcosm/links/getBacklinks.js';
|
|
3
|
+
export * as BlueMicrocosmLinksGetBacklinksCount from './types/blue/microcosm/links/getBacklinksCount.js';
|
|
2
4
|
export * as BlueMicrocosmLinksGetManyToManyCounts from './types/blue/microcosm/links/getManyToManyCounts.js';
|
|
5
|
+
export * as BlueMicrocosmRepoGetRecordByUri from './types/blue/microcosm/repo/getRecordByUri.js';
|
|
3
6
|
export * as ComBadExampleIdentityResolveMiniDoc from './types/com/bad-example/identity/resolveMiniDoc.js';
|
|
4
7
|
export * as ComBadExampleRepoGetUriRecord from './types/com/bad-example/repo/getUriRecord.js';
|
|
5
8
|
//# 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,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,mCAAmC,MAAM,mDAAmD,CAAC;AACzG,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,8 @@
|
|
|
1
|
+
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.js';
|
|
1
2
|
export * as BlueMicrocosmLinksGetBacklinks from './types/blue/microcosm/links/getBacklinks.js';
|
|
3
|
+
export * as BlueMicrocosmLinksGetBacklinksCount from './types/blue/microcosm/links/getBacklinksCount.js';
|
|
2
4
|
export * as BlueMicrocosmLinksGetManyToManyCounts from './types/blue/microcosm/links/getManyToManyCounts.js';
|
|
5
|
+
export * as BlueMicrocosmRepoGetRecordByUri from './types/blue/microcosm/repo/getRecordByUri.js';
|
|
3
6
|
export * as ComBadExampleIdentityResolveMiniDoc from './types/com/bad-example/identity/resolveMiniDoc.js';
|
|
4
7
|
export * as ComBadExampleRepoGetUriRecord from './types/com/bad-example/repo/getUriRecord.js';
|
|
5
8
|
//# 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,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,mCAAmC,MAAM,mDAAmD,CAAC;AACzG,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"}
|
|
@@ -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"}
|
|
@@ -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/lexicons/index.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.js';
|
|
1
2
|
export * as BlueMicrocosmLinksGetBacklinks from './types/blue/microcosm/links/getBacklinks.js';
|
|
3
|
+
export * as BlueMicrocosmLinksGetBacklinksCount from './types/blue/microcosm/links/getBacklinksCount.js';
|
|
2
4
|
export * as BlueMicrocosmLinksGetManyToManyCounts from './types/blue/microcosm/links/getManyToManyCounts.js';
|
|
5
|
+
export * as BlueMicrocosmRepoGetRecordByUri from './types/blue/microcosm/repo/getRecordByUri.js';
|
|
3
6
|
export * as ComBadExampleIdentityResolveMiniDoc from './types/com/bad-example/identity/resolveMiniDoc.js';
|
|
4
7
|
export * as ComBadExampleRepoGetUriRecord from './types/com/bad-example/repo/getUriRecord.js';
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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.1",
|
|
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.7"
|
|
24
27
|
},
|
|
25
28
|
"devDependencies": {
|
|
26
29
|
"@atcute/microcosm": "file:",
|
|
27
|
-
"@atcute/
|
|
30
|
+
"@atcute/lexicon-doc": "^2.1.0",
|
|
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
|
}
|