kitty-agent 10.0.0 → 10.2.0
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/out/agent.d.ts +24 -2
- package/out/agent.d.ts.map +1 -1
- package/out/agent.js +33 -19
- package/out/agent.js.map +1 -1
- package/out/constellation.d.ts +47 -0
- package/out/constellation.d.ts.map +1 -0
- package/out/constellation.js +66 -0
- package/out/constellation.js.map +1 -0
- package/out/index.d.ts +2 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +2 -0
- package/out/index.js.map +1 -1
- package/out/lexicons/index.d.ts +8 -0
- package/out/lexicons/index.d.ts.map +1 -0
- package/out/lexicons/index.js +8 -0
- package/out/lexicons/index.js.map +1 -0
- package/out/lexicons/types/blue/microcosm/links/getBacklinks.d.ts +71 -0
- package/out/lexicons/types/blue/microcosm/links/getBacklinks.d.ts.map +1 -0
- package/out/lexicons/types/blue/microcosm/links/getBacklinks.js +63 -0
- package/out/lexicons/types/blue/microcosm/links/getBacklinks.js.map +1 -0
- package/out/lexicons/types/blue/microcosm/links/getBacklinksCount.d.ts +34 -0
- package/out/lexicons/types/blue/microcosm/links/getBacklinksCount.d.ts.map +1 -0
- package/out/lexicons/types/blue/microcosm/links/getBacklinksCount.js +24 -0
- package/out/lexicons/types/blue/microcosm/links/getBacklinksCount.js.map +1 -0
- package/out/lexicons/types/blue/microcosm/links/getManyToManyCounts.d.ts +75 -0
- package/out/lexicons/types/blue/microcosm/links/getManyToManyCounts.d.ts.map +1 -0
- package/out/lexicons/types/blue/microcosm/links/getManyToManyCounts.js +68 -0
- package/out/lexicons/types/blue/microcosm/links/getManyToManyCounts.js.map +1 -0
- package/out/lexicons/types/com/bad-example/identity/resolveMiniDoc.d.ts +42 -0
- package/out/lexicons/types/com/bad-example/identity/resolveMiniDoc.d.ts.map +1 -0
- package/out/lexicons/types/com/bad-example/identity/resolveMiniDoc.js +32 -0
- package/out/lexicons/types/com/bad-example/identity/resolveMiniDoc.js.map +1 -0
- package/out/lexicons/types/com/bad-example/repo/getUriRecord.d.ts +42 -0
- package/out/lexicons/types/com/bad-example/repo/getUriRecord.d.ts.map +1 -0
- package/out/lexicons/types/com/bad-example/repo/getUriRecord.js +32 -0
- package/out/lexicons/types/com/bad-example/repo/getUriRecord.js.map +1 -0
- package/out/lexicons/types/io/gitlab/kinklist/kinklist/list.d.ts +26 -0
- package/out/lexicons/types/io/gitlab/kinklist/kinklist/list.d.ts.map +1 -0
- package/out/lexicons/types/io/gitlab/kinklist/kinklist/list.js +19 -0
- package/out/lexicons/types/io/gitlab/kinklist/kinklist/list.js.map +1 -0
- package/out/lexicons/types/io/gitlab/kinklist/kinklist/profile.d.ts +100 -0
- package/out/lexicons/types/io/gitlab/kinklist/kinklist/profile.d.ts.map +1 -0
- package/out/lexicons/types/io/gitlab/kinklist/kinklist/profile.js +94 -0
- package/out/lexicons/types/io/gitlab/kinklist/kinklist/profile.js.map +1 -0
- package/out/slingshot.d.ts +16 -0
- package/out/slingshot.d.ts.map +1 -0
- package/out/slingshot.js +41 -0
- package/out/slingshot.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as v from "@atcute/lexicons/validations";
|
|
2
|
+
declare const _countBySubjectSchema: v.ObjectSchema<{
|
|
3
|
+
$type: v.OptionalSchema<v.LiteralSchema<"blue.microcosm.links.getManyToManyCounts#countBySubject">, undefined>;
|
|
4
|
+
/**
|
|
5
|
+
* number of distinct DIDs linking to this subject
|
|
6
|
+
*/
|
|
7
|
+
distinct: v.IntegerSchema;
|
|
8
|
+
/**
|
|
9
|
+
* the secondary subject being counted
|
|
10
|
+
*/
|
|
11
|
+
subject: v.StringSchema<string>;
|
|
12
|
+
/**
|
|
13
|
+
* total number of links to this subject
|
|
14
|
+
*/
|
|
15
|
+
total: v.IntegerSchema;
|
|
16
|
+
}>;
|
|
17
|
+
declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
|
|
18
|
+
/**
|
|
19
|
+
* filter links to those from specific users
|
|
20
|
+
*/
|
|
21
|
+
did: v.OptionalSchema<v.ArraySchema<v.FormattedStringSchema<"did">>, undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* number of results to return
|
|
24
|
+
* @minimum 1
|
|
25
|
+
* @maximum 100
|
|
26
|
+
* @default 16
|
|
27
|
+
*/
|
|
28
|
+
limit: v.OptionalSchema<v.SchemaWithConstraint<v.IntegerSchema, readonly [v.IntegerRangeConstraint<1, 100>]>, 16>;
|
|
29
|
+
/**
|
|
30
|
+
* filter secondary links to specific subjects
|
|
31
|
+
*/
|
|
32
|
+
otherSubject: v.OptionalSchema<v.ArraySchema<v.StringSchema<string>>, undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')
|
|
35
|
+
*/
|
|
36
|
+
pathToOther: v.StringSchema<string>;
|
|
37
|
+
/**
|
|
38
|
+
* collection and path specification for the primary link
|
|
39
|
+
*/
|
|
40
|
+
source: v.StringSchema<string>;
|
|
41
|
+
/**
|
|
42
|
+
* the primary target being linked to (at-uri, did, or uri)
|
|
43
|
+
*/
|
|
44
|
+
subject: v.FormattedStringSchema<"uri">;
|
|
45
|
+
}>, {
|
|
46
|
+
type: "lex";
|
|
47
|
+
schema: v.ObjectSchema<{
|
|
48
|
+
readonly counts_by_other_subject: v.ArraySchema<countBySubjectSchema>;
|
|
49
|
+
/**
|
|
50
|
+
* pagination cursor
|
|
51
|
+
*/
|
|
52
|
+
cursor: v.OptionalSchema<v.StringSchema<string>, undefined>;
|
|
53
|
+
}>;
|
|
54
|
+
}, "blue.microcosm.links.getManyToManyCounts">;
|
|
55
|
+
type countBySubject$schematype = typeof _countBySubjectSchema;
|
|
56
|
+
type main$schematype = typeof _mainSchema;
|
|
57
|
+
export interface countBySubjectSchema extends countBySubject$schematype {
|
|
58
|
+
}
|
|
59
|
+
export interface mainSchema extends main$schematype {
|
|
60
|
+
}
|
|
61
|
+
export declare const countBySubjectSchema: countBySubjectSchema;
|
|
62
|
+
export declare const mainSchema: mainSchema;
|
|
63
|
+
export interface CountBySubject extends v.InferInput<typeof countBySubjectSchema> {
|
|
64
|
+
}
|
|
65
|
+
export interface $params extends v.InferInput<mainSchema["params"]> {
|
|
66
|
+
}
|
|
67
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {
|
|
68
|
+
}
|
|
69
|
+
declare module "@atcute/lexicons/ambient" {
|
|
70
|
+
interface XRPCQueries {
|
|
71
|
+
"blue.microcosm.links.getManyToManyCounts": mainSchema;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=getManyToManyCounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManyToManyCounts.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicons/types/blue/microcosm/links/getManyToManyCounts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,QAAA,MAAM,qBAAqB;;IAMzB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;EAEH,CAAC;AACH,QAAA,MAAM,WAAW;IAIX;;OAEG;;IAIH;;;;;OAKG;;IAOH;;OAEG;;IAIH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;QASD;;WAEG;;;8CAKV,CAAC;AAEF,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,EACN,oBAAoB,CAAC;AAChD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,cAAe,SAAQ,CAAC,CAAC,UAAU,CAClD,OAAO,oBAAoB,CAC5B;CAAG;AAEJ,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;IACxC,UAAU,WAAW;QACnB,0CAA0C,EAAE,UAAU,CAAC;KACxD;CACF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as v from "@atcute/lexicons/validations";
|
|
2
|
+
const _countBySubjectSchema = /*#__PURE__*/ v.object({
|
|
3
|
+
$type: /*#__PURE__*/ v.optional(
|
|
4
|
+
/*#__PURE__*/ v.literal("blue.microcosm.links.getManyToManyCounts#countBySubject")),
|
|
5
|
+
/**
|
|
6
|
+
* number of distinct DIDs linking to this subject
|
|
7
|
+
*/
|
|
8
|
+
distinct: /*#__PURE__*/ v.integer(),
|
|
9
|
+
/**
|
|
10
|
+
* the secondary subject being counted
|
|
11
|
+
*/
|
|
12
|
+
subject: /*#__PURE__*/ v.string(),
|
|
13
|
+
/**
|
|
14
|
+
* total number of links to this subject
|
|
15
|
+
*/
|
|
16
|
+
total: /*#__PURE__*/ v.integer(),
|
|
17
|
+
});
|
|
18
|
+
const _mainSchema = /*#__PURE__*/ v.query("blue.microcosm.links.getManyToManyCounts", {
|
|
19
|
+
params: /*#__PURE__*/ v.object({
|
|
20
|
+
/**
|
|
21
|
+
* filter links to those from specific users
|
|
22
|
+
*/
|
|
23
|
+
did: /*#__PURE__*/ v.optional(
|
|
24
|
+
/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())),
|
|
25
|
+
/**
|
|
26
|
+
* number of results to return
|
|
27
|
+
* @minimum 1
|
|
28
|
+
* @maximum 100
|
|
29
|
+
* @default 16
|
|
30
|
+
*/
|
|
31
|
+
limit: /*#__PURE__*/ v.optional(
|
|
32
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [
|
|
33
|
+
/*#__PURE__*/ v.integerRange(1, 100),
|
|
34
|
+
]), 16),
|
|
35
|
+
/**
|
|
36
|
+
* filter secondary links to specific subjects
|
|
37
|
+
*/
|
|
38
|
+
otherSubject: /*#__PURE__*/ v.optional(
|
|
39
|
+
/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
|
|
40
|
+
/**
|
|
41
|
+
* path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')
|
|
42
|
+
*/
|
|
43
|
+
pathToOther: /*#__PURE__*/ v.string(),
|
|
44
|
+
/**
|
|
45
|
+
* collection and path specification for the primary link
|
|
46
|
+
*/
|
|
47
|
+
source: /*#__PURE__*/ v.string(),
|
|
48
|
+
/**
|
|
49
|
+
* the primary target being linked to (at-uri, did, or uri)
|
|
50
|
+
*/
|
|
51
|
+
subject: /*#__PURE__*/ v.genericUriString(),
|
|
52
|
+
}),
|
|
53
|
+
output: {
|
|
54
|
+
type: "lex",
|
|
55
|
+
schema: /*#__PURE__*/ v.object({
|
|
56
|
+
get counts_by_other_subject() {
|
|
57
|
+
return /*#__PURE__*/ v.array(countBySubjectSchema);
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* pagination cursor
|
|
61
|
+
*/
|
|
62
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
63
|
+
}),
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
export const countBySubjectSchema = _countBySubjectSchema;
|
|
67
|
+
export const mainSchema = _mainSchema;
|
|
68
|
+
//# sourceMappingURL=getManyToManyCounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManyToManyCounts.js","sourceRoot":"","sources":["../../../../../../src/lexicons/types/blue/microcosm/links/getManyToManyCounts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,qBAAqB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC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QACN,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC7B,IAAI,uBAAuB;gBACzB,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YACrD,CAAC;YACD;;eAEG;YACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SAC3D,CAAC;KACH;CACF,CACF,CAAC;AAQF,MAAM,CAAC,MAAM,oBAAoB,GAC/B,qBAA6C,CAAC;AAChD,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
|
+
* 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
|
+
}, "com.bad-example.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
|
+
"com.bad-example.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":["../../../../../../src/lexicons/types/com/bad-example/identity/resolveMiniDoc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,QAAA,MAAM,WAAW;IAIX;;OAEG;;;;;QAMD;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;6CAKV,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,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;IACxC,UAAU,WAAW;QACnB,yCAAyC,EAAE,UAAU,CAAC;KACvD;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as v from "@atcute/lexicons/validations";
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.query("com.bad-example.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":["../../../../../../src/lexicons/types/com/bad-example/identity/resolveMiniDoc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CACvC,yCAAyC,EACzC;IACE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC7B;;WAEG;QACH,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,qBAAqB,EAAE;KACpD,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC7B;;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;SACtC,CAAC;KACH;CACF,CACF,CAAC;AAMF,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
|
+
}, "com.bad-example.repo.getUriRecord">;
|
|
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
|
+
"com.bad-example.repo.getUriRecord": mainSchema;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=getUriRecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUriRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicons/types/com/bad-example/repo/getUriRecord.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,QAAA,MAAM,WAAW;IAEb;;OAEG;;IAEH;;OAEG;;;;;QAMD;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;uCAIP,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AACtE,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE9E,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,WAAW;QACnB,mCAAmC,EAAE,UAAU,CAAC;KACjD;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as v from "@atcute/lexicons/validations";
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.query("com.bad-example.repo.getUriRecord", {
|
|
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=getUriRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUriRecord.js","sourceRoot":"","sources":["../../../../../../src/lexicons/types/com/bad-example/repo/getUriRecord.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,mCAAmC,EAAE;IAC7E,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC7B;;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;KAC3D,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC7B;;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;SACjC,CAAC;KACH;CACF,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as v from "@atcute/lexicons/validations";
|
|
2
|
+
import * as IoGitlabKinklistKinklistProfile from "./profile.js";
|
|
3
|
+
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
4
|
+
$type: v.LiteralSchema<"io.gitlab.kinklist.kinklist.list">;
|
|
5
|
+
/**
|
|
6
|
+
* When this list was created
|
|
7
|
+
*/
|
|
8
|
+
createdAt: v.FormattedStringSchema<"datetime">;
|
|
9
|
+
/**
|
|
10
|
+
* Array of kink category/section definitions
|
|
11
|
+
*/
|
|
12
|
+
readonly kinkDefinitions: v.ArraySchema<IoGitlabKinklistKinklistProfile.kinkCategorySchema>;
|
|
13
|
+
}>, v.FormattedStringSchema<"tid">>;
|
|
14
|
+
type main$schematype = typeof _mainSchema;
|
|
15
|
+
export interface mainSchema extends main$schematype {
|
|
16
|
+
}
|
|
17
|
+
export declare const mainSchema: mainSchema;
|
|
18
|
+
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
19
|
+
}
|
|
20
|
+
declare module "@atcute/lexicons/ambient" {
|
|
21
|
+
interface Records {
|
|
22
|
+
"io.gitlab.kinklist.kinklist.list": mainSchema;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../../src/lexicons/types/io/gitlab/kinklist/kinklist/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,+BAA+B,MAAM,cAAc,CAAC;AAEhE,QAAA,MAAM,WAAW;;IAIb;;OAEG;;IAEH;;OAEG;;mCAON,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,OAAO;QACf,kCAAkC,EAAE,UAAU,CAAC;KAChD;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from "@atcute/lexicons/validations";
|
|
2
|
+
import * as IoGitlabKinklistKinklistProfile from "./profile.js";
|
|
3
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
4
|
+
/*#__PURE__*/ v.tidString(),
|
|
5
|
+
/*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.literal("io.gitlab.kinklist.kinklist.list"),
|
|
7
|
+
/**
|
|
8
|
+
* When this list was created
|
|
9
|
+
*/
|
|
10
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
11
|
+
/**
|
|
12
|
+
* Array of kink category/section definitions
|
|
13
|
+
*/
|
|
14
|
+
get kinkDefinitions() {
|
|
15
|
+
return /*#__PURE__*/ v.array(IoGitlabKinklistKinklistProfile.kinkCategorySchema);
|
|
16
|
+
},
|
|
17
|
+
}));
|
|
18
|
+
export const mainSchema = _mainSchema;
|
|
19
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../../../src/lexicons/types/io/gitlab/kinklist/kinklist/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,+BAA+B,MAAM,cAAc,CAAC;AAEhE,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACxC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC;IAClE;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C;;OAEG;IACH,IAAI,eAAe;QACjB,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAC1B,+BAA+B,CAAC,kBAAkB,CACnD,CAAC;IACJ,CAAC;CACF,CAAC,CACH,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as v from "@atcute/lexicons/validations";
|
|
2
|
+
declare const _kinkCategorySchema: v.ObjectSchema<{
|
|
3
|
+
$type: v.OptionalSchema<v.LiteralSchema<"io.gitlab.kinklist.kinklist.profile#kinkCategory">, undefined>;
|
|
4
|
+
/**
|
|
5
|
+
* Description of the category/section (e.g., "General kinks", "Taboo kinks", "Bodies kinks")
|
|
6
|
+
*/
|
|
7
|
+
description: v.OptionalSchema<v.StringSchema<string>, undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* Array of kink definitions
|
|
10
|
+
*/
|
|
11
|
+
readonly kinks: v.ArraySchema<kinkDefinitionSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* The category/section name (e.g., "General", "Taboo", "Bodies")
|
|
14
|
+
*/
|
|
15
|
+
name: v.StringSchema<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Array of participant types (e.g., "Self", "Partner", "Giving", "Receiving")
|
|
18
|
+
*/
|
|
19
|
+
participants: v.ArraySchema<v.StringSchema<string>>;
|
|
20
|
+
}>;
|
|
21
|
+
declare const _kinkDefinitionSchema: v.ObjectSchema<{
|
|
22
|
+
$type: v.OptionalSchema<v.LiteralSchema<"io.gitlab.kinklist.kinklist.profile#kinkDefinition">, undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* Description of the kink (e.g., "Restraining or being restrained", "Watching others engage in sexual activities")
|
|
25
|
+
*/
|
|
26
|
+
description: v.OptionalSchema<v.StringSchema<string>, undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* The name of the kink (e.g., "Bondage", "Voyeurism")
|
|
29
|
+
*/
|
|
30
|
+
name: v.StringSchema<string>;
|
|
31
|
+
}>;
|
|
32
|
+
declare const _kinkEntrySchema: v.ObjectSchema<{
|
|
33
|
+
$type: v.OptionalSchema<v.LiteralSchema<"io.gitlab.kinklist.kinklist.profile#kinkEntry">, undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The preference choice for this kink
|
|
36
|
+
*/
|
|
37
|
+
choice: v.LiteralEnumSchema<readonly ["favorite", "like", "maybe", "no", "not-entered", "okay", "want-to-try"]>;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the kink (e.g., "Bondage", "Voyeurism")
|
|
40
|
+
*/
|
|
41
|
+
name: v.StringSchema<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The participant type (e.g., "Self", "Partner", "Giving", "Receiving")
|
|
44
|
+
*/
|
|
45
|
+
participant: v.StringSchema<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The category/section this kink belongs to (e.g., "General", "Taboo", "Bodies")
|
|
48
|
+
*/
|
|
49
|
+
section: v.StringSchema<string>;
|
|
50
|
+
}>;
|
|
51
|
+
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
52
|
+
$type: v.LiteralSchema<"io.gitlab.kinklist.kinklist.profile">;
|
|
53
|
+
/**
|
|
54
|
+
* When this profile was created
|
|
55
|
+
*/
|
|
56
|
+
createdAt: v.FormattedStringSchema<"datetime">;
|
|
57
|
+
/**
|
|
58
|
+
* Array of kink category/section definitions
|
|
59
|
+
*/
|
|
60
|
+
readonly kinkDefinitions: v.OptionalSchema<v.ArraySchema<kinkCategorySchema>, undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Array of kink preferences
|
|
63
|
+
*/
|
|
64
|
+
readonly kinks: v.ArraySchema<kinkEntrySchema>;
|
|
65
|
+
/**
|
|
66
|
+
* When this profile was last updated
|
|
67
|
+
*/
|
|
68
|
+
updatedAt: v.FormattedStringSchema<"datetime">;
|
|
69
|
+
}>, v.LiteralSchema<"self">>;
|
|
70
|
+
type kinkCategory$schematype = typeof _kinkCategorySchema;
|
|
71
|
+
type kinkDefinition$schematype = typeof _kinkDefinitionSchema;
|
|
72
|
+
type kinkEntry$schematype = typeof _kinkEntrySchema;
|
|
73
|
+
type main$schematype = typeof _mainSchema;
|
|
74
|
+
export interface kinkCategorySchema extends kinkCategory$schematype {
|
|
75
|
+
}
|
|
76
|
+
export interface kinkDefinitionSchema extends kinkDefinition$schematype {
|
|
77
|
+
}
|
|
78
|
+
export interface kinkEntrySchema extends kinkEntry$schematype {
|
|
79
|
+
}
|
|
80
|
+
export interface mainSchema extends main$schematype {
|
|
81
|
+
}
|
|
82
|
+
export declare const kinkCategorySchema: kinkCategorySchema;
|
|
83
|
+
export declare const kinkDefinitionSchema: kinkDefinitionSchema;
|
|
84
|
+
export declare const kinkEntrySchema: kinkEntrySchema;
|
|
85
|
+
export declare const mainSchema: mainSchema;
|
|
86
|
+
export interface KinkCategory extends v.InferInput<typeof kinkCategorySchema> {
|
|
87
|
+
}
|
|
88
|
+
export interface KinkDefinition extends v.InferInput<typeof kinkDefinitionSchema> {
|
|
89
|
+
}
|
|
90
|
+
export interface KinkEntry extends v.InferInput<typeof kinkEntrySchema> {
|
|
91
|
+
}
|
|
92
|
+
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
93
|
+
}
|
|
94
|
+
declare module "@atcute/lexicons/ambient" {
|
|
95
|
+
interface Records {
|
|
96
|
+
"io.gitlab.kinklist.kinklist.profile": mainSchema;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export {};
|
|
100
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../../../../src/lexicons/types/io/gitlab/kinklist/kinklist/profile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,QAAA,MAAM,mBAAmB;;IAIvB;;OAEG;;IAEH;;OAEG;;IAIH;;OAEG;;IAEH;;OAEG;;EAEH,CAAC;AACH,QAAA,MAAM,qBAAqB;;IAMzB;;OAEG;;IAEH;;OAEG;;EAEH,CAAC;AACH,QAAA,MAAM,gBAAgB;;IAIpB;;OAEG;;IAUH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;EAEH,CAAC;AACH,QAAA,MAAM,WAAW;;IAIb;;OAEG;;IAEH;;OAEG;;IAMH;;OAEG;;IAIH;;OAEG;;4BAGN,CAAC;AAEF,KAAK,uBAAuB,GAAG,OAAO,mBAAmB,CAAC;AAC1D,KAAK,yBAAyB,GAAG,OAAO,qBAAqB,CAAC;AAC9D,KAAK,oBAAoB,GAAG,OAAO,gBAAgB,CAAC;AACpD,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;CAAG;AACtE,MAAM,WAAW,oBAAqB,SAAQ,yBAAyB;CAAG;AAC1E,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;CAAG;AAChE,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,kBAAkB,EAA0B,kBAAkB,CAAC;AAC5E,eAAO,MAAM,oBAAoB,EACN,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,EAAuB,eAAe,CAAC;AACnE,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,YAAa,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAChF,MAAM,WAAW,cAAe,SAAQ,CAAC,CAAC,UAAU,CAClD,OAAO,oBAAoB,CAC5B;CAAG;AACJ,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAC1E,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,OAAO;QACf,qCAAqC,EAAE,UAAU,CAAC;KACnD;CACF"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as v from "@atcute/lexicons/validations";
|
|
2
|
+
const _kinkCategorySchema = /*#__PURE__*/ v.object({
|
|
3
|
+
$type: /*#__PURE__*/ v.optional(
|
|
4
|
+
/*#__PURE__*/ v.literal("io.gitlab.kinklist.kinklist.profile#kinkCategory")),
|
|
5
|
+
/**
|
|
6
|
+
* Description of the category/section (e.g., "General kinks", "Taboo kinks", "Bodies kinks")
|
|
7
|
+
*/
|
|
8
|
+
description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
9
|
+
/**
|
|
10
|
+
* Array of kink definitions
|
|
11
|
+
*/
|
|
12
|
+
get kinks() {
|
|
13
|
+
return /*#__PURE__*/ v.array(kinkDefinitionSchema);
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* The category/section name (e.g., "General", "Taboo", "Bodies")
|
|
17
|
+
*/
|
|
18
|
+
name: /*#__PURE__*/ v.string(),
|
|
19
|
+
/**
|
|
20
|
+
* Array of participant types (e.g., "Self", "Partner", "Giving", "Receiving")
|
|
21
|
+
*/
|
|
22
|
+
participants: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()),
|
|
23
|
+
});
|
|
24
|
+
const _kinkDefinitionSchema = /*#__PURE__*/ v.object({
|
|
25
|
+
$type: /*#__PURE__*/ v.optional(
|
|
26
|
+
/*#__PURE__*/ v.literal("io.gitlab.kinklist.kinklist.profile#kinkDefinition")),
|
|
27
|
+
/**
|
|
28
|
+
* Description of the kink (e.g., "Restraining or being restrained", "Watching others engage in sexual activities")
|
|
29
|
+
*/
|
|
30
|
+
description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
31
|
+
/**
|
|
32
|
+
* The name of the kink (e.g., "Bondage", "Voyeurism")
|
|
33
|
+
*/
|
|
34
|
+
name: /*#__PURE__*/ v.string(),
|
|
35
|
+
});
|
|
36
|
+
const _kinkEntrySchema = /*#__PURE__*/ v.object({
|
|
37
|
+
$type: /*#__PURE__*/ v.optional(
|
|
38
|
+
/*#__PURE__*/ v.literal("io.gitlab.kinklist.kinklist.profile#kinkEntry")),
|
|
39
|
+
/**
|
|
40
|
+
* The preference choice for this kink
|
|
41
|
+
*/
|
|
42
|
+
choice: /*#__PURE__*/ v.literalEnum([
|
|
43
|
+
"favorite",
|
|
44
|
+
"like",
|
|
45
|
+
"maybe",
|
|
46
|
+
"no",
|
|
47
|
+
"not-entered",
|
|
48
|
+
"okay",
|
|
49
|
+
"want-to-try",
|
|
50
|
+
]),
|
|
51
|
+
/**
|
|
52
|
+
* The name of the kink (e.g., "Bondage", "Voyeurism")
|
|
53
|
+
*/
|
|
54
|
+
name: /*#__PURE__*/ v.string(),
|
|
55
|
+
/**
|
|
56
|
+
* The participant type (e.g., "Self", "Partner", "Giving", "Receiving")
|
|
57
|
+
*/
|
|
58
|
+
participant: /*#__PURE__*/ v.string(),
|
|
59
|
+
/**
|
|
60
|
+
* The category/section this kink belongs to (e.g., "General", "Taboo", "Bodies")
|
|
61
|
+
*/
|
|
62
|
+
section: /*#__PURE__*/ v.string(),
|
|
63
|
+
});
|
|
64
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
65
|
+
/*#__PURE__*/ v.literal("self"),
|
|
66
|
+
/*#__PURE__*/ v.object({
|
|
67
|
+
$type: /*#__PURE__*/ v.literal("io.gitlab.kinklist.kinklist.profile"),
|
|
68
|
+
/**
|
|
69
|
+
* When this profile was created
|
|
70
|
+
*/
|
|
71
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
72
|
+
/**
|
|
73
|
+
* Array of kink category/section definitions
|
|
74
|
+
*/
|
|
75
|
+
get kinkDefinitions() {
|
|
76
|
+
return /*#__PURE__*/ v.optional(
|
|
77
|
+
/*#__PURE__*/ v.array(kinkCategorySchema));
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* Array of kink preferences
|
|
81
|
+
*/
|
|
82
|
+
get kinks() {
|
|
83
|
+
return /*#__PURE__*/ v.array(kinkEntrySchema);
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* When this profile was last updated
|
|
87
|
+
*/
|
|
88
|
+
updatedAt: /*#__PURE__*/ v.datetimeString(),
|
|
89
|
+
}));
|
|
90
|
+
export const kinkCategorySchema = _kinkCategorySchema;
|
|
91
|
+
export const kinkDefinitionSchema = _kinkDefinitionSchema;
|
|
92
|
+
export const kinkEntrySchema = _kinkEntrySchema;
|
|
93
|
+
export const mainSchema = _mainSchema;
|
|
94
|
+
//# sourceMappingURL=profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../../../src/lexicons/types/io/gitlab/kinklist/kinklist/profile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,mBAAmB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,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H,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IACrC;;OAEG;IACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;CAClC,CAAC,CAAC;AACH,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACxC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;AAC/B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC;IACrE;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C;;OAEG;IACH,IAAI,eAAe;QACjB,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC7B,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC1C,CAAC;IACJ,CAAC;IACD;;OAEG;IACH,IAAI,KAAK;QACP,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC;IACD;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;CAC5C,CAAC,CACH,CAAC;AAYF,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAyC,CAAC;AAC5E,MAAM,CAAC,MAAM,oBAAoB,GAC/B,qBAA6C,CAAC;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAmC,CAAC;AACnE,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { KittyAgent } from "./agent.js";
|
|
2
|
+
export declare class SlingshotClient extends KittyAgent {
|
|
3
|
+
protected paginationHelperSimple<K extends string, T extends {
|
|
4
|
+
cursor?: string | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
[k in K]: U[];
|
|
7
|
+
}, U>(limit: number | undefined, key: K, query: (cursor: string | undefined, limit: number) => Promise<T>): Promise<{
|
|
8
|
+
[k in K]: U[];
|
|
9
|
+
} & {
|
|
10
|
+
cursor: string | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
constructor({ userAgent }: {
|
|
13
|
+
userAgent: string;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=slingshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slingshot.d.ts","sourceRoot":"","sources":["../src/slingshot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,qBAAa,eAAgB,SAAQ,UAAU;cAE3B,sBAAsB,CAClC,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS;QAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG;SAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;KAAE,EAC7D,CAAC,EAED,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GACjE,OAAO,CAAC;SAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;KAAG,GAAG;QAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;gBA6BpD,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;CAgBnD"}
|
package/out/slingshot.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { simpleFetchHandler } from "@atcute/client";
|
|
2
|
+
import { KittyAgent } from "./agent.js";
|
|
3
|
+
export class SlingshotClient extends KittyAgent {
|
|
4
|
+
// Idk why the original paginationHelper is so complicated; it should eventually be replaced with this.
|
|
5
|
+
async paginationHelperSimple(limit, key, query) {
|
|
6
|
+
const PER_PAGE = 100;
|
|
7
|
+
const results = [];
|
|
8
|
+
let cursor = undefined;
|
|
9
|
+
do {
|
|
10
|
+
const data = await query(cursor, limit === undefined
|
|
11
|
+
? PER_PAGE
|
|
12
|
+
: limit / PER_PAGE > 1
|
|
13
|
+
? PER_PAGE
|
|
14
|
+
: limit);
|
|
15
|
+
const theseResults = data[key];
|
|
16
|
+
if (limit !== undefined) {
|
|
17
|
+
limit -= theseResults.length;
|
|
18
|
+
}
|
|
19
|
+
results.push(...theseResults);
|
|
20
|
+
cursor = data.cursor;
|
|
21
|
+
} while (cursor);
|
|
22
|
+
return { [key]: results, cursor };
|
|
23
|
+
}
|
|
24
|
+
constructor({ userAgent }) {
|
|
25
|
+
super({
|
|
26
|
+
handler: simpleFetchHandler({
|
|
27
|
+
service: 'https://slingshot.microcosm.blue',
|
|
28
|
+
fetch(input, init) {
|
|
29
|
+
return fetch(input, {
|
|
30
|
+
...init,
|
|
31
|
+
headers: {
|
|
32
|
+
...init?.headers,
|
|
33
|
+
'User-Agent': userAgent,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=slingshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slingshot.js","sourceRoot":"","sources":["../src/slingshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAC3C,uGAAuG;IAC7F,KAAK,CAAC,sBAAsB,CAKlC,KAAyB,EACzB,GAAM,EACN,KAAgE;QAEhE,MAAM,QAAQ,GAAG,GAAG,CAAC;QAErB,MAAM,OAAO,GAAQ,EAAE,CAAC;QAExB,IAAI,MAAM,GAAuB,SAAS,CAAC;QAC3C,GAAG,CAAC;YACA,MAAM,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