@atcute/microcosm 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/lexicons/index.d.ts +9 -7
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +2 -0
- package/dist/lexicons/index.js.map +1 -1
- 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 +1 -1
- package/dist/lexicons/types/blue/microcosm/links/getBacklinks.js +1 -1
- package/dist/lexicons/types/blue/microcosm/links/getBacklinks.js.map +1 -1
- package/dist/lexicons/types/blue/microcosm/links/getBacklinksCount.d.ts +2 -2
- package/dist/lexicons/types/blue/microcosm/links/getBacklinksCount.js +2 -2
- package/dist/lexicons/types/blue/microcosm/links/getBacklinksCount.js.map +1 -1
- package/dist/lexicons/types/blue/microcosm/links/getManyToMany.d.ts +89 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToMany.d.ts.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToMany.js +74 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToMany.js.map +1 -0
- package/dist/lexicons/types/blue/microcosm/links/getManyToManyCounts.d.ts +2 -2
- package/dist/lexicons/types/blue/microcosm/links/getManyToManyCounts.js +2 -2
- package/dist/lexicons/types/blue/microcosm/links/getManyToManyCounts.js.map +1 -1
- package/lib/index.ts +1 -1
- package/lib/lexicons/index.ts +9 -7
- 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 +2 -2
- package/lib/lexicons/types/blue/microcosm/links/getManyToMany.ts +99 -0
- package/lib/lexicons/types/blue/microcosm/links/getManyToManyCounts.ts +2 -2
- package/package.json +3 -3
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,8 +1,10 @@
|
|
|
1
|
-
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.
|
|
2
|
-
export * as
|
|
3
|
-
export * as
|
|
4
|
-
export * as
|
|
5
|
-
export * as
|
|
6
|
-
export * as
|
|
7
|
-
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';
|
|
8
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,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"}
|
|
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,6 +1,8 @@
|
|
|
1
1
|
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.js';
|
|
2
|
+
export * as BlueMicrocosmLinksGetBacklinkDids from './types/blue/microcosm/links/getBacklinkDids.js';
|
|
2
3
|
export * as BlueMicrocosmLinksGetBacklinks from './types/blue/microcosm/links/getBacklinks.js';
|
|
3
4
|
export * as BlueMicrocosmLinksGetBacklinksCount from './types/blue/microcosm/links/getBacklinksCount.js';
|
|
5
|
+
export * as BlueMicrocosmLinksGetManyToMany from './types/blue/microcosm/links/getManyToMany.js';
|
|
4
6
|
export * as BlueMicrocosmLinksGetManyToManyCounts from './types/blue/microcosm/links/getManyToManyCounts.js';
|
|
5
7
|
export * as BlueMicrocosmRepoGetRecordByUri from './types/blue/microcosm/repo/getRecordByUri.js';
|
|
6
8
|
export * as ComBadExampleIdentityResolveMiniDoc from './types/com/bad-example/identity/resolveMiniDoc.js';
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
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,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.NullableSchema<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.nullable(/*#__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,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YACpF,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"}
|
|
@@ -40,7 +40,7 @@ declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
|
40
40
|
/**
|
|
41
41
|
* pagination cursor
|
|
42
42
|
*/
|
|
43
|
-
cursor: v.OptionalSchema<v.StringSchema<string
|
|
43
|
+
cursor: v.OptionalSchema<v.NullableSchema<v.StringSchema<string>>, undefined>;
|
|
44
44
|
readonly records: v.ArraySchema<linkRecordSchema>;
|
|
45
45
|
/**
|
|
46
46
|
* total number of matching links
|
|
@@ -43,7 +43,7 @@ const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getBacklinks', {
|
|
|
43
43
|
/**
|
|
44
44
|
* pagination cursor
|
|
45
45
|
*/
|
|
46
|
-
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
46
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.string())),
|
|
47
47
|
get records() {
|
|
48
48
|
return /*#__PURE__*/ v.array(linkRecordSchema);
|
|
49
49
|
},
|
|
@@ -1 +1 @@
|
|
|
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,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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,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YACpF,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"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
2
|
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
3
3
|
/**
|
|
4
|
-
* collection and path specification
|
|
4
|
+
* collection and path specification (e.g., 'app.bsky.feed.like:subject.uri')
|
|
5
5
|
*/
|
|
6
6
|
source: v.StringSchema<string>;
|
|
7
7
|
/**
|
|
8
8
|
* the target being linked to (at-uri, did, or uri)
|
|
9
9
|
*/
|
|
10
|
-
subject: v.FormattedStringSchema<"
|
|
10
|
+
subject: v.FormattedStringSchema<"uri">;
|
|
11
11
|
}>, {
|
|
12
12
|
type: "lex";
|
|
13
13
|
schema: v.ObjectSchema<{
|
|
@@ -2,13 +2,13 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
2
2
|
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getBacklinksCount', {
|
|
3
3
|
params: /*#__PURE__*/ v.object({
|
|
4
4
|
/**
|
|
5
|
-
* collection and path specification
|
|
5
|
+
* collection and path specification (e.g., 'app.bsky.feed.like:subject.uri')
|
|
6
6
|
*/
|
|
7
7
|
source: /*#__PURE__*/ v.string(),
|
|
8
8
|
/**
|
|
9
9
|
* the target being linked to (at-uri, did, or uri)
|
|
10
10
|
*/
|
|
11
|
-
subject: /*#__PURE__*/ v.
|
|
11
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
12
12
|
}),
|
|
13
13
|
output: {
|
|
14
14
|
type: 'lex',
|
|
@@ -1 +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,
|
|
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,gBAAgB,EAAE;KAC3C,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,89 @@
|
|
|
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
|
+
/**
|
|
21
|
+
* the record key of the linking record
|
|
22
|
+
*/
|
|
23
|
+
rkey: v.FormattedStringSchema<"record-key">;
|
|
24
|
+
}>;
|
|
25
|
+
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
26
|
+
/**
|
|
27
|
+
* number of results to return
|
|
28
|
+
* @minimum 1
|
|
29
|
+
* @maximum 100
|
|
30
|
+
* @default 16
|
|
31
|
+
*/
|
|
32
|
+
limit: v.OptionalSchema<v.SchemaWithConstraint<v.IntegerSchema, readonly [v.IntegerRangeConstraint<1, 100>]>, 16>;
|
|
33
|
+
/**
|
|
34
|
+
* filter linking records from specific users
|
|
35
|
+
*/
|
|
36
|
+
linkDid: v.OptionalSchema<v.ArraySchema<v.FormattedStringSchema<"did">>, undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* filter secondary links to specific subjects
|
|
39
|
+
*/
|
|
40
|
+
otherSubject: v.OptionalSchema<v.ArraySchema<v.StringSchema<string>>, undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')
|
|
43
|
+
*/
|
|
44
|
+
pathToOther: v.StringSchema<string>;
|
|
45
|
+
/**
|
|
46
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
47
|
+
*/
|
|
48
|
+
source: v.StringSchema<string>;
|
|
49
|
+
/**
|
|
50
|
+
* the primary target being linked to (at-uri, did, or uri)
|
|
51
|
+
*/
|
|
52
|
+
subject: v.FormattedStringSchema<"uri">;
|
|
53
|
+
}>, {
|
|
54
|
+
type: "lex";
|
|
55
|
+
schema: v.ObjectSchema<{
|
|
56
|
+
/**
|
|
57
|
+
* pagination cursor
|
|
58
|
+
*/
|
|
59
|
+
cursor: v.OptionalSchema<v.NullableSchema<v.StringSchema<string>>, undefined>;
|
|
60
|
+
readonly items: v.ArraySchema<itemSchema>;
|
|
61
|
+
}>;
|
|
62
|
+
}, "blue.microcosm.links.getManyToMany">;
|
|
63
|
+
type item$schematype = typeof _itemSchema;
|
|
64
|
+
type linkRecord$schematype = typeof _linkRecordSchema;
|
|
65
|
+
type main$schematype = typeof _mainSchema;
|
|
66
|
+
export interface itemSchema extends item$schematype {
|
|
67
|
+
}
|
|
68
|
+
export interface linkRecordSchema extends linkRecord$schematype {
|
|
69
|
+
}
|
|
70
|
+
export interface mainSchema extends main$schematype {
|
|
71
|
+
}
|
|
72
|
+
export declare const itemSchema: itemSchema;
|
|
73
|
+
export declare const linkRecordSchema: linkRecordSchema;
|
|
74
|
+
export declare const mainSchema: mainSchema;
|
|
75
|
+
export interface Item extends v.InferInput<typeof itemSchema> {
|
|
76
|
+
}
|
|
77
|
+
export interface LinkRecord extends v.InferInput<typeof linkRecordSchema> {
|
|
78
|
+
}
|
|
79
|
+
export interface $params extends v.InferInput<mainSchema['params']> {
|
|
80
|
+
}
|
|
81
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
|
|
82
|
+
}
|
|
83
|
+
declare module '@atcute/lexicons/ambient' {
|
|
84
|
+
interface XRPCQueries {
|
|
85
|
+
'blue.microcosm.links.getManyToMany': mainSchema;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export {};
|
|
89
|
+
//# 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;;IAEH;;OAEG;;EAEF,CAAC;AACH,QAAA,MAAM,WAAW;IAEf;;;;;OAKG;;IAKH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;QAMF;;WAEG;;;;wCAOJ,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,74 @@
|
|
|
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
|
+
/**
|
|
23
|
+
* the record key of the linking record
|
|
24
|
+
*/
|
|
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)]), 16),
|
|
37
|
+
/**
|
|
38
|
+
* filter linking records from specific users
|
|
39
|
+
*/
|
|
40
|
+
linkDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())),
|
|
41
|
+
/**
|
|
42
|
+
* filter secondary links to specific subjects
|
|
43
|
+
*/
|
|
44
|
+
otherSubject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
|
|
45
|
+
/**
|
|
46
|
+
* path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')
|
|
47
|
+
*/
|
|
48
|
+
pathToOther: /*#__PURE__*/ v.string(),
|
|
49
|
+
/**
|
|
50
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
51
|
+
*/
|
|
52
|
+
source: /*#__PURE__*/ v.string(),
|
|
53
|
+
/**
|
|
54
|
+
* the primary target being linked to (at-uri, did, or uri)
|
|
55
|
+
*/
|
|
56
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
57
|
+
}),
|
|
58
|
+
output: {
|
|
59
|
+
type: 'lex',
|
|
60
|
+
schema: /*#__PURE__*/ v.object({
|
|
61
|
+
/**
|
|
62
|
+
* pagination cursor
|
|
63
|
+
*/
|
|
64
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.string())),
|
|
65
|
+
get items() {
|
|
66
|
+
return /*#__PURE__*/ v.array(itemSchema);
|
|
67
|
+
},
|
|
68
|
+
}),
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
export const itemSchema = _itemSchema;
|
|
72
|
+
export const linkRecordSchema = _linkRecordSchema;
|
|
73
|
+
export const mainSchema = _mainSchema;
|
|
74
|
+
//# 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,EAA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CAAC,MAAM,EAAE,CAAC,CAAC;YACpF,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"}
|
|
@@ -35,7 +35,7 @@ declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
|
35
35
|
*/
|
|
36
36
|
pathToOther: v.StringSchema<string>;
|
|
37
37
|
/**
|
|
38
|
-
* collection and path specification for the primary link
|
|
38
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
39
39
|
*/
|
|
40
40
|
source: v.StringSchema<string>;
|
|
41
41
|
/**
|
|
@@ -49,7 +49,7 @@ declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
|
49
49
|
/**
|
|
50
50
|
* pagination cursor
|
|
51
51
|
*/
|
|
52
|
-
cursor: v.OptionalSchema<v.StringSchema<string
|
|
52
|
+
cursor: v.OptionalSchema<v.NullableSchema<v.StringSchema<string>>, undefined>;
|
|
53
53
|
}>;
|
|
54
54
|
}, "blue.microcosm.links.getManyToManyCounts">;
|
|
55
55
|
type countBySubject$schematype = typeof _countBySubjectSchema;
|
|
@@ -38,7 +38,7 @@ const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getManyToManyCou
|
|
|
38
38
|
*/
|
|
39
39
|
pathToOther: /*#__PURE__*/ v.string(),
|
|
40
40
|
/**
|
|
41
|
-
* collection and path specification for the primary link
|
|
41
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
42
42
|
*/
|
|
43
43
|
source: /*#__PURE__*/ v.string(),
|
|
44
44
|
/**
|
|
@@ -55,7 +55,7 @@ const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getManyToManyCou
|
|
|
55
55
|
/**
|
|
56
56
|
* pagination cursor
|
|
57
57
|
*/
|
|
58
|
-
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
58
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.string())),
|
|
59
59
|
}),
|
|
60
60
|
},
|
|
61
61
|
});
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,CA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AoB,CAAC,CAAC;YAAA,CACnD;YACD;;eAEG;YACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;SACpF,CAAC;KACF;CACD,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,oBAAoB,GAAG,qBAA6C,CAAC;AAClF,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,7 +1,9 @@
|
|
|
1
|
-
export * as BlueMicrocosmIdentityResolveMiniDoc from './types/blue/microcosm/identity/resolveMiniDoc.
|
|
2
|
-
export * as
|
|
3
|
-
export * as
|
|
4
|
-
export * as
|
|
5
|
-
export * as
|
|
6
|
-
export * as
|
|
7
|
-
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,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.nullable(/*#__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
|
+
}
|
|
@@ -48,7 +48,7 @@ const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getBacklinks', {
|
|
|
48
48
|
/**
|
|
49
49
|
* pagination cursor
|
|
50
50
|
*/
|
|
51
|
-
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
51
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.string())),
|
|
52
52
|
get records() {
|
|
53
53
|
return /*#__PURE__*/ v.array(linkRecordSchema);
|
|
54
54
|
},
|
|
@@ -5,13 +5,13 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getBacklinksCount', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
7
|
/**
|
|
8
|
-
* collection and path specification
|
|
8
|
+
* collection and path specification (e.g., 'app.bsky.feed.like:subject.uri')
|
|
9
9
|
*/
|
|
10
10
|
source: /*#__PURE__*/ v.string(),
|
|
11
11
|
/**
|
|
12
12
|
* the target being linked to (at-uri, did, or uri)
|
|
13
13
|
*/
|
|
14
|
-
subject: /*#__PURE__*/ v.
|
|
14
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
15
15
|
}),
|
|
16
16
|
output: {
|
|
17
17
|
type: 'lex',
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
/**
|
|
26
|
+
* the record key of the linking record
|
|
27
|
+
*/
|
|
28
|
+
rkey: /*#__PURE__*/ v.recordKeyString(),
|
|
29
|
+
});
|
|
30
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getManyToMany', {
|
|
31
|
+
params: /*#__PURE__*/ v.object({
|
|
32
|
+
/**
|
|
33
|
+
* number of results to return
|
|
34
|
+
* @minimum 1
|
|
35
|
+
* @maximum 100
|
|
36
|
+
* @default 16
|
|
37
|
+
*/
|
|
38
|
+
limit: /*#__PURE__*/ v.optional(
|
|
39
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
40
|
+
16,
|
|
41
|
+
),
|
|
42
|
+
/**
|
|
43
|
+
* filter linking records from specific users
|
|
44
|
+
*/
|
|
45
|
+
linkDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())),
|
|
46
|
+
/**
|
|
47
|
+
* filter secondary links to specific subjects
|
|
48
|
+
*/
|
|
49
|
+
otherSubject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
|
|
50
|
+
/**
|
|
51
|
+
* path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')
|
|
52
|
+
*/
|
|
53
|
+
pathToOther: /*#__PURE__*/ v.string(),
|
|
54
|
+
/**
|
|
55
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
56
|
+
*/
|
|
57
|
+
source: /*#__PURE__*/ v.string(),
|
|
58
|
+
/**
|
|
59
|
+
* the primary target being linked to (at-uri, did, or uri)
|
|
60
|
+
*/
|
|
61
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
62
|
+
}),
|
|
63
|
+
output: {
|
|
64
|
+
type: 'lex',
|
|
65
|
+
schema: /*#__PURE__*/ v.object({
|
|
66
|
+
/**
|
|
67
|
+
* pagination cursor
|
|
68
|
+
*/
|
|
69
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.string())),
|
|
70
|
+
get items() {
|
|
71
|
+
return /*#__PURE__*/ v.array(itemSchema);
|
|
72
|
+
},
|
|
73
|
+
}),
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
type item$schematype = typeof _itemSchema;
|
|
78
|
+
type linkRecord$schematype = typeof _linkRecordSchema;
|
|
79
|
+
type main$schematype = typeof _mainSchema;
|
|
80
|
+
|
|
81
|
+
export interface itemSchema extends item$schematype {}
|
|
82
|
+
export interface linkRecordSchema extends linkRecord$schematype {}
|
|
83
|
+
export interface mainSchema extends main$schematype {}
|
|
84
|
+
|
|
85
|
+
export const itemSchema = _itemSchema as itemSchema;
|
|
86
|
+
export const linkRecordSchema = _linkRecordSchema as linkRecordSchema;
|
|
87
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
88
|
+
|
|
89
|
+
export interface Item extends v.InferInput<typeof itemSchema> {}
|
|
90
|
+
export interface LinkRecord extends v.InferInput<typeof linkRecordSchema> {}
|
|
91
|
+
|
|
92
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
93
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
94
|
+
|
|
95
|
+
declare module '@atcute/lexicons/ambient' {
|
|
96
|
+
interface XRPCQueries {
|
|
97
|
+
'blue.microcosm.links.getManyToMany': mainSchema;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -44,7 +44,7 @@ const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getManyToManyCou
|
|
|
44
44
|
*/
|
|
45
45
|
pathToOther: /*#__PURE__*/ v.string(),
|
|
46
46
|
/**
|
|
47
|
-
* collection and path specification for the primary link
|
|
47
|
+
* collection and path specification for the primary link (e.g., 'app.bsky.feed.like:subject.uri')
|
|
48
48
|
*/
|
|
49
49
|
source: /*#__PURE__*/ v.string(),
|
|
50
50
|
/**
|
|
@@ -61,7 +61,7 @@ const _mainSchema = /*#__PURE__*/ v.query('blue.microcosm.links.getManyToManyCou
|
|
|
61
61
|
/**
|
|
62
62
|
* pagination cursor
|
|
63
63
|
*/
|
|
64
|
-
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
64
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.string())),
|
|
65
65
|
}),
|
|
66
66
|
},
|
|
67
67
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atcute/microcosm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Microcosm (blue.microcosm.*, com.bad-example.*) schema definitions",
|
|
5
5
|
"license": "0BSD",
|
|
6
6
|
"repository": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atcute/lexicons": "^1.2.
|
|
26
|
+
"@atcute/lexicons": "^1.2.9"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@atcute/microcosm": "file:",
|
|
30
|
-
"@atcute/lexicon-doc": "^2.1.
|
|
30
|
+
"@atcute/lexicon-doc": "^2.1.1",
|
|
31
31
|
"@atcute/lex-cli": "^2.5.3"
|
|
32
32
|
},
|
|
33
33
|
"atcute:lexicons": {
|