@atiproto/lexicons 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -0
- package/dist/lexicons/com/atiproto/account/cart/clone.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +49 -0
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +58 -0
- package/dist/lexicons/com/atiproto/account/cart/clone.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart/create.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +39 -0
- package/dist/lexicons/com/atiproto/account/cart/create.defs.js +54 -0
- package/dist/lexicons/com/atiproto/account/cart/create.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/get.defs.d.ts +47 -0
- package/dist/lexicons/com/atiproto/account/cart/get.defs.js +56 -0
- package/dist/lexicons/com/atiproto/account/cart/get.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +32 -0
- package/dist/lexicons/com/atiproto/account/cart/list.defs.js +56 -0
- package/dist/lexicons/com/atiproto/account/cart/list.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart/put.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/put.defs.d.ts +37 -0
- package/dist/lexicons/com/atiproto/account/cart/put.defs.js +53 -0
- package/dist/lexicons/com/atiproto/account/cart/put.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart.d.ts +5 -0
- package/dist/lexicons/com/atiproto/account/cart.js +44 -0
- package/dist/lexicons/com/atiproto/account/profile/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/profile/get.defs.d.ts +31 -0
- package/dist/lexicons/com/atiproto/account/profile/get.defs.js +53 -0
- package/dist/lexicons/com/atiproto/account/profile/get.js +44 -0
- package/dist/lexicons/com/atiproto/account/profile/put.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +47 -0
- package/dist/lexicons/com/atiproto/account/profile/put.defs.js +60 -0
- package/dist/lexicons/com/atiproto/account/profile/put.js +44 -0
- package/dist/lexicons/com/atiproto/account/profile.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/profile.js +41 -0
- package/dist/lexicons/com/atiproto/account.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account.js +41 -0
- package/dist/lexicons/com/atiproto/cart.d.ts +2 -0
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +147 -0
- package/dist/lexicons/com/atiproto/cart.defs.js +27 -0
- package/dist/lexicons/com/atiproto/cart.js +44 -0
- package/dist/lexicons/com/atiproto/feed/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +18 -0
- package/dist/lexicons/com/atiproto/feed/list.defs.js +54 -0
- package/dist/lexicons/com/atiproto/feed/list.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +37 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +51 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +52 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +59 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +35 -0
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +51 -0
- package/dist/lexicons/com/atiproto/feed/subscription/get.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +28 -0
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +55 -0
- package/dist/lexicons/com/atiproto/feed/subscription/list.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/put.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.d.ts +37 -0
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +53 -0
- package/dist/lexicons/com/atiproto/feed/subscription/put.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription.d.ts +5 -0
- package/dist/lexicons/com/atiproto/feed/subscription.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +76 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +62 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +35 -0
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +51 -0
- package/dist/lexicons/com/atiproto/feed/tip/get.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +17 -0
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +50 -0
- package/dist/lexicons/com/atiproto/feed/tip/list.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip/put.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.d.ts +37 -0
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +53 -0
- package/dist/lexicons/com/atiproto/feed/tip/put.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip.d.ts +4 -0
- package/dist/lexicons/com/atiproto/feed/tip.js +43 -0
- package/dist/lexicons/com/atiproto/feed.d.ts +3 -0
- package/dist/lexicons/com/atiproto/feed.js +42 -0
- package/dist/lexicons/com/atiproto/profile.d.ts +2 -0
- package/dist/lexicons/com/atiproto/profile.defs.d.ts +377 -0
- package/dist/lexicons/com/atiproto/profile.defs.js +32 -0
- package/dist/lexicons/com/atiproto/profile.js +44 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.defs.d.ts +29 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +50 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.js +44 -0
- package/dist/lexicons/com/atiproto/repo/profile.d.ts +1 -0
- package/dist/lexicons/com/atiproto/repo/profile.js +40 -0
- package/dist/lexicons/com/atiproto/repo/subscription/search.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +40 -0
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +59 -0
- package/dist/lexicons/com/atiproto/repo/subscription/search.js +44 -0
- package/dist/lexicons/com/atiproto/repo/subscription/validate.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +36 -0
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +22 -0
- package/dist/lexicons/com/atiproto/repo/subscription/validate.js +44 -0
- package/dist/lexicons/com/atiproto/repo/subscription.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/subscription.js +41 -0
- package/dist/lexicons/com/atiproto/repo/tip/search.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +40 -0
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +59 -0
- package/dist/lexicons/com/atiproto/repo/tip/search.js +44 -0
- package/dist/lexicons/com/atiproto/repo/tip/validate.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +42 -0
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +23 -0
- package/dist/lexicons/com/atiproto/repo/tip/validate.js +44 -0
- package/dist/lexicons/com/atiproto/repo/tip.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/tip.js +41 -0
- package/dist/lexicons/com/atiproto/repo.d.ts +3 -0
- package/dist/lexicons/com/atiproto/repo.js +42 -0
- package/dist/lexicons/com/atiproto/subscription.d.ts +2 -0
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +244 -0
- package/dist/lexicons/com/atiproto/subscription.defs.js +24 -0
- package/dist/lexicons/com/atiproto/subscription.js +44 -0
- package/dist/lexicons/com/atiproto/tip.d.ts +2 -0
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +230 -0
- package/dist/lexicons/com/atiproto/tip.defs.js +29 -0
- package/dist/lexicons/com/atiproto/tip.js +44 -0
- package/dist/lexicons/com/atiproto.d.ts +7 -0
- package/dist/lexicons/com/atiproto.js +46 -0
- package/dist/lexicons/com.d.ts +1 -0
- package/dist/lexicons/com.js +40 -0
- package/dist/lexicons/index.d.ts +1 -0
- package/dist/lexicons/index.js +40 -0
- package/dist/schemas/account/cart/clone.json +75 -0
- package/dist/schemas/account/cart/create.json +52 -0
- package/dist/schemas/account/cart/get.json +66 -0
- package/dist/schemas/account/cart/list.json +73 -0
- package/dist/schemas/account/cart/put.json +47 -0
- package/dist/schemas/account/profile/get.json +42 -0
- package/dist/schemas/account/profile/put.json +84 -0
- package/dist/schemas/cart.json +74 -0
- package/dist/schemas/feed/list.json +49 -0
- package/dist/schemas/feed/subscription/cancel.json +48 -0
- package/dist/schemas/feed/subscription/create.json +76 -0
- package/dist/schemas/feed/subscription/get.json +45 -0
- package/dist/schemas/feed/subscription/list.json +64 -0
- package/dist/schemas/feed/subscription/put.json +47 -0
- package/dist/schemas/feed/tip/create.json +87 -0
- package/dist/schemas/feed/tip/get.json +45 -0
- package/dist/schemas/feed/tip/list.json +49 -0
- package/dist/schemas/feed/tip/put.json +47 -0
- package/dist/schemas/profile.json +88 -0
- package/dist/schemas/repo/profile/get.json +40 -0
- package/dist/schemas/repo/subscription/search.json +67 -0
- package/dist/schemas/repo/subscription/validate.json +55 -0
- package/dist/schemas/repo/tip/search.json +67 -0
- package/dist/schemas/repo/tip/validate.json +60 -0
- package/dist/schemas/subscription.json +67 -0
- package/dist/schemas/tip.json +57 -0
- package/dist/schemas.d.ts +2 -0
- package/dist/schemas.js +60 -0
- package/package.json +31 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.subscriptionResponse = exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
40
|
+
const lex_1 = require("@atproto/lex");
|
|
41
|
+
const AtiprotoSubscription = __importStar(require("../../subscription.defs.js"));
|
|
42
|
+
const $nsid = 'com.atiproto.repo.subscription.search';
|
|
43
|
+
exports.$nsid = $nsid;
|
|
44
|
+
/** Search for subscriptions to a user (subscriptions where subject matches the given DID) */
|
|
45
|
+
const main = lex_1.l.query($nsid, lex_1.l.params({
|
|
46
|
+
subject: lex_1.l.string({ format: 'did' }),
|
|
47
|
+
cursor: lex_1.l.optional(lex_1.l.string()),
|
|
48
|
+
limit: lex_1.l.optional(lex_1.l.withDefault(lex_1.l.integer({ minimum: 1, maximum: 100 }), 50)),
|
|
49
|
+
}), lex_1.l.jsonPayload({
|
|
50
|
+
subscriptions: lex_1.l.array(lex_1.l.ref((() => subscriptionResponse))),
|
|
51
|
+
cursor: lex_1.l.optional(lex_1.l.string()),
|
|
52
|
+
}));
|
|
53
|
+
exports.main = main;
|
|
54
|
+
exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
|
|
55
|
+
const subscriptionResponse = lex_1.l.typedObject($nsid, 'subscriptionResponse', lex_1.l.object({
|
|
56
|
+
uri: lex_1.l.string({ format: 'at-uri' }),
|
|
57
|
+
record: lex_1.l.ref((() => AtiprotoSubscription.main)),
|
|
58
|
+
}));
|
|
59
|
+
exports.subscriptionResponse = subscriptionResponse;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.$defs = void 0;
|
|
43
|
+
__exportStar(require("./search.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./search.defs.js"));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
declare const $nsid = "com.atiproto.repo.subscription.validate";
|
|
3
|
+
export { $nsid };
|
|
4
|
+
/** Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check that the subscription amount meets a minimum. */
|
|
5
|
+
declare const main: l.Query<"com.atiproto.repo.subscription.validate", l.ParamsSchema<{
|
|
6
|
+
readonly sender: l.StringSchema<{
|
|
7
|
+
readonly format: "did";
|
|
8
|
+
}>;
|
|
9
|
+
readonly subject: l.StringSchema<{
|
|
10
|
+
readonly format: "did";
|
|
11
|
+
}>;
|
|
12
|
+
readonly minAmount: l.OptionalSchema<l.IntegerSchema>;
|
|
13
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
14
|
+
valid: l.BooleanSchema;
|
|
15
|
+
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
16
|
+
currency: l.OptionalSchema<l.StringSchema<{}>>;
|
|
17
|
+
reason: l.OptionalSchema<l.StringSchema<{}>>;
|
|
18
|
+
}>>, undefined>;
|
|
19
|
+
export { main };
|
|
20
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
21
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
22
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
23
|
+
export declare const $lxm: "com.atiproto.repo.subscription.validate", $params: l.ParamsSchema<{
|
|
24
|
+
readonly sender: l.StringSchema<{
|
|
25
|
+
readonly format: "did";
|
|
26
|
+
}>;
|
|
27
|
+
readonly subject: l.StringSchema<{
|
|
28
|
+
readonly format: "did";
|
|
29
|
+
}>;
|
|
30
|
+
readonly minAmount: l.OptionalSchema<l.IntegerSchema>;
|
|
31
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
32
|
+
valid: l.BooleanSchema;
|
|
33
|
+
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
34
|
+
currency: l.OptionalSchema<l.StringSchema<{}>>;
|
|
35
|
+
reason: l.OptionalSchema<l.StringSchema<{}>>;
|
|
36
|
+
}>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
7
|
+
const lex_1 = require("@atproto/lex");
|
|
8
|
+
const $nsid = 'com.atiproto.repo.subscription.validate';
|
|
9
|
+
exports.$nsid = $nsid;
|
|
10
|
+
/** Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check that the subscription amount meets a minimum. */
|
|
11
|
+
const main = lex_1.l.query($nsid, lex_1.l.params({
|
|
12
|
+
sender: lex_1.l.string({ format: 'did' }),
|
|
13
|
+
subject: lex_1.l.string({ format: 'did' }),
|
|
14
|
+
minAmount: lex_1.l.optional(lex_1.l.integer()),
|
|
15
|
+
}), lex_1.l.jsonPayload({
|
|
16
|
+
valid: lex_1.l.boolean(),
|
|
17
|
+
amount: lex_1.l.optional(lex_1.l.integer()),
|
|
18
|
+
currency: lex_1.l.optional(lex_1.l.string()),
|
|
19
|
+
reason: lex_1.l.optional(lex_1.l.string()),
|
|
20
|
+
}));
|
|
21
|
+
exports.main = main;
|
|
22
|
+
exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.$defs = void 0;
|
|
43
|
+
__exportStar(require("./validate.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./validate.defs.js"));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.validate = exports.search = void 0;
|
|
40
|
+
exports.search = __importStar(require("./subscription/search.js"));
|
|
41
|
+
exports.validate = __importStar(require("./subscription/validate.js"));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoTip from '../../tip.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.repo.tip.search";
|
|
4
|
+
export { $nsid };
|
|
5
|
+
/** Search for tips sent to a user (tips where subject matches the given DID) */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.repo.tip.search", l.ParamsSchema<{
|
|
7
|
+
readonly subject: l.StringSchema<{
|
|
8
|
+
readonly format: "did";
|
|
9
|
+
}>;
|
|
10
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
11
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
12
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
13
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<TipResponse, TipResponse>>>;
|
|
14
|
+
cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
15
|
+
}>>, undefined>;
|
|
16
|
+
export { main };
|
|
17
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
18
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
19
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
20
|
+
export declare const $lxm: "com.atiproto.repo.tip.search", $params: l.ParamsSchema<{
|
|
21
|
+
readonly subject: l.StringSchema<{
|
|
22
|
+
readonly format: "did";
|
|
23
|
+
}>;
|
|
24
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
25
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
26
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
27
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<TipResponse, TipResponse>>>;
|
|
28
|
+
cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
29
|
+
}>>;
|
|
30
|
+
type TipResponse = {
|
|
31
|
+
$type?: 'com.atiproto.repo.tip.search#tipResponse';
|
|
32
|
+
/**
|
|
33
|
+
* AT-URI of the tip record
|
|
34
|
+
*/
|
|
35
|
+
uri: l.AtUriString;
|
|
36
|
+
record: AtiprotoTip.Main;
|
|
37
|
+
};
|
|
38
|
+
export type { TipResponse };
|
|
39
|
+
declare const tipResponse: l.TypedObjectSchema<"com.atiproto.repo.tip.search#tipResponse", l.Validator<TipResponse, TipResponse>>;
|
|
40
|
+
export { tipResponse };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tipResponse = exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
40
|
+
const lex_1 = require("@atproto/lex");
|
|
41
|
+
const AtiprotoTip = __importStar(require("../../tip.defs.js"));
|
|
42
|
+
const $nsid = 'com.atiproto.repo.tip.search';
|
|
43
|
+
exports.$nsid = $nsid;
|
|
44
|
+
/** Search for tips sent to a user (tips where subject matches the given DID) */
|
|
45
|
+
const main = lex_1.l.query($nsid, lex_1.l.params({
|
|
46
|
+
subject: lex_1.l.string({ format: 'did' }),
|
|
47
|
+
cursor: lex_1.l.optional(lex_1.l.string()),
|
|
48
|
+
limit: lex_1.l.optional(lex_1.l.withDefault(lex_1.l.integer({ minimum: 1, maximum: 100 }), 50)),
|
|
49
|
+
}), lex_1.l.jsonPayload({
|
|
50
|
+
tips: lex_1.l.array(lex_1.l.ref((() => tipResponse))),
|
|
51
|
+
cursor: lex_1.l.optional(lex_1.l.string()),
|
|
52
|
+
}));
|
|
53
|
+
exports.main = main;
|
|
54
|
+
exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
|
|
55
|
+
const tipResponse = lex_1.l.typedObject($nsid, 'tipResponse', lex_1.l.object({
|
|
56
|
+
uri: lex_1.l.string({ format: 'at-uri' }),
|
|
57
|
+
record: lex_1.l.ref((() => AtiprotoTip.main)),
|
|
58
|
+
}));
|
|
59
|
+
exports.tipResponse = tipResponse;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.$defs = void 0;
|
|
43
|
+
__exportStar(require("./search.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./search.defs.js"));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
declare const $nsid = "com.atiproto.repo.tip.validate";
|
|
3
|
+
export { $nsid };
|
|
4
|
+
/** Validate that a sender has completed tip payment(s). Looks up by recordUri (sums all tips for that record) or by subject (recipient DID). These are mutually exclusive; if recordUri is provided, subject is ignored. */
|
|
5
|
+
declare const main: l.Query<"com.atiproto.repo.tip.validate", l.ParamsSchema<{
|
|
6
|
+
readonly sender: l.StringSchema<{
|
|
7
|
+
readonly format: "did";
|
|
8
|
+
}>;
|
|
9
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
10
|
+
readonly format: "did";
|
|
11
|
+
}>>;
|
|
12
|
+
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
13
|
+
readonly format: "at-uri";
|
|
14
|
+
}>>;
|
|
15
|
+
readonly minAmount: l.OptionalSchema<l.IntegerSchema>;
|
|
16
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
17
|
+
valid: l.BooleanSchema;
|
|
18
|
+
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
19
|
+
currency: l.OptionalSchema<l.StringSchema<{}>>;
|
|
20
|
+
reason: l.OptionalSchema<l.StringSchema<{}>>;
|
|
21
|
+
}>>, undefined>;
|
|
22
|
+
export { main };
|
|
23
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
24
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
25
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
26
|
+
export declare const $lxm: "com.atiproto.repo.tip.validate", $params: l.ParamsSchema<{
|
|
27
|
+
readonly sender: l.StringSchema<{
|
|
28
|
+
readonly format: "did";
|
|
29
|
+
}>;
|
|
30
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
31
|
+
readonly format: "did";
|
|
32
|
+
}>>;
|
|
33
|
+
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
34
|
+
readonly format: "at-uri";
|
|
35
|
+
}>>;
|
|
36
|
+
readonly minAmount: l.OptionalSchema<l.IntegerSchema>;
|
|
37
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
38
|
+
valid: l.BooleanSchema;
|
|
39
|
+
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
40
|
+
currency: l.OptionalSchema<l.StringSchema<{}>>;
|
|
41
|
+
reason: l.OptionalSchema<l.StringSchema<{}>>;
|
|
42
|
+
}>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
7
|
+
const lex_1 = require("@atproto/lex");
|
|
8
|
+
const $nsid = 'com.atiproto.repo.tip.validate';
|
|
9
|
+
exports.$nsid = $nsid;
|
|
10
|
+
/** Validate that a sender has completed tip payment(s). Looks up by recordUri (sums all tips for that record) or by subject (recipient DID). These are mutually exclusive; if recordUri is provided, subject is ignored. */
|
|
11
|
+
const main = lex_1.l.query($nsid, lex_1.l.params({
|
|
12
|
+
sender: lex_1.l.string({ format: 'did' }),
|
|
13
|
+
subject: lex_1.l.optional(lex_1.l.string({ format: 'did' })),
|
|
14
|
+
recordUri: lex_1.l.optional(lex_1.l.string({ format: 'at-uri' })),
|
|
15
|
+
minAmount: lex_1.l.optional(lex_1.l.integer()),
|
|
16
|
+
}), lex_1.l.jsonPayload({
|
|
17
|
+
valid: lex_1.l.boolean(),
|
|
18
|
+
amount: lex_1.l.optional(lex_1.l.integer()),
|
|
19
|
+
currency: lex_1.l.optional(lex_1.l.string()),
|
|
20
|
+
reason: lex_1.l.optional(lex_1.l.string()),
|
|
21
|
+
}));
|
|
22
|
+
exports.main = main;
|
|
23
|
+
exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.$defs = void 0;
|
|
43
|
+
__exportStar(require("./validate.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./validate.defs.js"));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.validate = exports.search = void 0;
|
|
40
|
+
exports.search = __importStar(require("./tip/search.js"));
|
|
41
|
+
exports.validate = __importStar(require("./tip/validate.js"));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tip = exports.subscription = exports.profile = void 0;
|
|
40
|
+
exports.profile = __importStar(require("./repo/profile.js"));
|
|
41
|
+
exports.subscription = __importStar(require("./repo/subscription.js"));
|
|
42
|
+
exports.tip = __importStar(require("./repo/tip.js"));
|