@atcute/microcosm 1.0.1 → 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/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/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/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/getManyToMany.ts +93 -0
- 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.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"}
|
|
@@ -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"}
|
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.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
|
+
}
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atcute/microcosm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
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": {
|