@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
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.schemas = void 0;
|
|
18
|
+
__exportStar(require("./lexicons/index.js"), exports);
|
|
19
|
+
var schemas_js_1 = require("./schemas.js");
|
|
20
|
+
Object.defineProperty(exports, "schemas", { enumerable: true, get: function () { return schemas_js_1.schemas; } });
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
+
import * as AtiprotoTip from '../../tip.defs.js';
|
|
4
|
+
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
5
|
+
declare const $nsid = "com.atiproto.account.cart.clone";
|
|
6
|
+
export { $nsid };
|
|
7
|
+
/** Clone an existing cart, creating new tip and subscription records. Useful for reopening expired carts or repeating tips. */
|
|
8
|
+
declare const main: l.Procedure<"com.atiproto.account.cart.clone", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
9
|
+
uri: l.StringSchema<{
|
|
10
|
+
readonly format: "at-uri";
|
|
11
|
+
}>;
|
|
12
|
+
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
13
|
+
readonly format: "uri";
|
|
14
|
+
}>>;
|
|
15
|
+
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
16
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
17
|
+
cartUri: l.StringSchema<{
|
|
18
|
+
readonly format: "at-uri";
|
|
19
|
+
}>;
|
|
20
|
+
checkoutUrl: l.StringSchema<{
|
|
21
|
+
readonly format: "uri";
|
|
22
|
+
}>;
|
|
23
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
|
|
24
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>>;
|
|
25
|
+
}>>, undefined>;
|
|
26
|
+
export { main };
|
|
27
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
28
|
+
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
29
|
+
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
30
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
31
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
32
|
+
export declare const $lxm: "com.atiproto.account.cart.clone", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
33
|
+
uri: l.StringSchema<{
|
|
34
|
+
readonly format: "at-uri";
|
|
35
|
+
}>;
|
|
36
|
+
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
37
|
+
readonly format: "uri";
|
|
38
|
+
}>>;
|
|
39
|
+
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
40
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
41
|
+
cartUri: l.StringSchema<{
|
|
42
|
+
readonly format: "at-uri";
|
|
43
|
+
}>;
|
|
44
|
+
checkoutUrl: l.StringSchema<{
|
|
45
|
+
readonly format: "uri";
|
|
46
|
+
}>;
|
|
47
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
|
|
48
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>>;
|
|
49
|
+
}>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.$output = exports.$input = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
40
|
+
const lex_1 = require("@atproto/lex");
|
|
41
|
+
const AtiprotoCart = __importStar(require("../../cart.defs.js"));
|
|
42
|
+
const AtiprotoTip = __importStar(require("../../tip.defs.js"));
|
|
43
|
+
const AtiprotoSubscription = __importStar(require("../../subscription.defs.js"));
|
|
44
|
+
const $nsid = 'com.atiproto.account.cart.clone';
|
|
45
|
+
exports.$nsid = $nsid;
|
|
46
|
+
/** Clone an existing cart, creating new tip and subscription records. Useful for reopening expired carts or repeating tips. */
|
|
47
|
+
const main = lex_1.l.procedure($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
|
|
48
|
+
uri: lex_1.l.string({ format: 'at-uri' }),
|
|
49
|
+
redirectUrl: lex_1.l.optional(lex_1.l.string({ format: 'uri' })),
|
|
50
|
+
}), lex_1.l.jsonPayload({
|
|
51
|
+
cart: lex_1.l.ref((() => AtiprotoCart.main)),
|
|
52
|
+
cartUri: lex_1.l.string({ format: 'at-uri' }),
|
|
53
|
+
checkoutUrl: lex_1.l.string({ format: 'uri' }),
|
|
54
|
+
tips: lex_1.l.array(lex_1.l.ref((() => AtiprotoTip.main))),
|
|
55
|
+
subscriptions: lex_1.l.array(lex_1.l.ref((() => AtiprotoSubscription.main))),
|
|
56
|
+
}));
|
|
57
|
+
exports.main = main;
|
|
58
|
+
exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$input = main.input, 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("./clone.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./clone.defs.js"));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.account.cart.create";
|
|
4
|
+
export { $nsid };
|
|
5
|
+
/** Create a new empty cart */
|
|
6
|
+
declare const main: l.Procedure<"com.atiproto.account.cart.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
|
+
currency: l.StringSchema<{}>;
|
|
8
|
+
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
9
|
+
readonly format: "uri";
|
|
10
|
+
}>>;
|
|
11
|
+
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
12
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
13
|
+
cartUri: l.StringSchema<{
|
|
14
|
+
readonly format: "at-uri";
|
|
15
|
+
}>;
|
|
16
|
+
checkoutUrl: l.StringSchema<{
|
|
17
|
+
readonly format: "uri";
|
|
18
|
+
}>;
|
|
19
|
+
}>>, undefined>;
|
|
20
|
+
export { main };
|
|
21
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
22
|
+
export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
23
|
+
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
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.account.cart.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
27
|
+
currency: l.StringSchema<{}>;
|
|
28
|
+
redirectUrl: l.OptionalSchema<l.StringSchema<{
|
|
29
|
+
readonly format: "uri";
|
|
30
|
+
}>>;
|
|
31
|
+
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
32
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
33
|
+
cartUri: l.StringSchema<{
|
|
34
|
+
readonly format: "at-uri";
|
|
35
|
+
}>;
|
|
36
|
+
checkoutUrl: l.StringSchema<{
|
|
37
|
+
readonly format: "uri";
|
|
38
|
+
}>;
|
|
39
|
+
}>>;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.$output = exports.$input = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
40
|
+
const lex_1 = require("@atproto/lex");
|
|
41
|
+
const AtiprotoCart = __importStar(require("../../cart.defs.js"));
|
|
42
|
+
const $nsid = 'com.atiproto.account.cart.create';
|
|
43
|
+
exports.$nsid = $nsid;
|
|
44
|
+
/** Create a new empty cart */
|
|
45
|
+
const main = lex_1.l.procedure($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
|
|
46
|
+
currency: lex_1.l.string(),
|
|
47
|
+
redirectUrl: lex_1.l.optional(lex_1.l.string({ format: 'uri' })),
|
|
48
|
+
}), lex_1.l.jsonPayload({
|
|
49
|
+
cart: lex_1.l.ref((() => AtiprotoCart.main)),
|
|
50
|
+
cartUri: lex_1.l.string({ format: 'at-uri' }),
|
|
51
|
+
checkoutUrl: lex_1.l.string({ format: 'uri' }),
|
|
52
|
+
}));
|
|
53
|
+
exports.main = main;
|
|
54
|
+
exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$input = main.input, 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("./create.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./create.defs.js"));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
+
import * as AtiprotoTip from '../../tip.defs.js';
|
|
4
|
+
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
5
|
+
declare const $nsid = "com.atiproto.account.cart.get";
|
|
6
|
+
export { $nsid };
|
|
7
|
+
/** Get a specific cart by URI, including resolved tip and subscription records */
|
|
8
|
+
declare const main: l.Query<"com.atiproto.account.cart.get", l.ParamsSchema<{
|
|
9
|
+
readonly uri: l.StringSchema<{
|
|
10
|
+
readonly format: "at-uri";
|
|
11
|
+
}>;
|
|
12
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
13
|
+
uri: l.StringSchema<{
|
|
14
|
+
readonly format: "at-uri";
|
|
15
|
+
}>;
|
|
16
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
17
|
+
readonly format: "cid";
|
|
18
|
+
}>>;
|
|
19
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
20
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
21
|
+
readonly format: "uri";
|
|
22
|
+
}>>;
|
|
23
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
|
|
24
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>>;
|
|
25
|
+
}>>, undefined>;
|
|
26
|
+
export { main };
|
|
27
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
28
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
29
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
30
|
+
export declare const $lxm: "com.atiproto.account.cart.get", $params: l.ParamsSchema<{
|
|
31
|
+
readonly uri: l.StringSchema<{
|
|
32
|
+
readonly format: "at-uri";
|
|
33
|
+
}>;
|
|
34
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
35
|
+
uri: l.StringSchema<{
|
|
36
|
+
readonly format: "at-uri";
|
|
37
|
+
}>;
|
|
38
|
+
cid: l.OptionalSchema<l.StringSchema<{
|
|
39
|
+
readonly format: "cid";
|
|
40
|
+
}>>;
|
|
41
|
+
cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
|
|
42
|
+
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
43
|
+
readonly format: "uri";
|
|
44
|
+
}>>;
|
|
45
|
+
tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
|
|
46
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>>;
|
|
47
|
+
}>>;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
40
|
+
const lex_1 = require("@atproto/lex");
|
|
41
|
+
const AtiprotoCart = __importStar(require("../../cart.defs.js"));
|
|
42
|
+
const AtiprotoTip = __importStar(require("../../tip.defs.js"));
|
|
43
|
+
const AtiprotoSubscription = __importStar(require("../../subscription.defs.js"));
|
|
44
|
+
const $nsid = 'com.atiproto.account.cart.get';
|
|
45
|
+
exports.$nsid = $nsid;
|
|
46
|
+
/** Get a specific cart by URI, including resolved tip and subscription records */
|
|
47
|
+
const main = lex_1.l.query($nsid, lex_1.l.params({ uri: lex_1.l.string({ format: 'at-uri' }) }), lex_1.l.jsonPayload({
|
|
48
|
+
uri: lex_1.l.string({ format: 'at-uri' }),
|
|
49
|
+
cid: lex_1.l.optional(lex_1.l.string({ format: 'cid' })),
|
|
50
|
+
cart: lex_1.l.ref((() => AtiprotoCart.main)),
|
|
51
|
+
checkoutUrl: lex_1.l.optional(lex_1.l.string({ format: 'uri' })),
|
|
52
|
+
tips: lex_1.l.array(lex_1.l.ref((() => AtiprotoTip.main))),
|
|
53
|
+
subscriptions: lex_1.l.array(lex_1.l.ref((() => AtiprotoSubscription.main))),
|
|
54
|
+
}));
|
|
55
|
+
exports.main = main;
|
|
56
|
+
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("./get.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./get.defs.js"));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.account.cart.list";
|
|
4
|
+
export { $nsid };
|
|
5
|
+
/** List carts for the authenticated user */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.account.cart.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
7
|
+
carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
|
|
8
|
+
cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
9
|
+
}>>, undefined>;
|
|
10
|
+
export { main };
|
|
11
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
12
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
13
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
14
|
+
export declare const $lxm: "com.atiproto.account.cart.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
15
|
+
carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
|
|
16
|
+
cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
17
|
+
}>>;
|
|
18
|
+
type CartResponse = {
|
|
19
|
+
$type?: 'com.atiproto.account.cart.list#cartResponse';
|
|
20
|
+
/**
|
|
21
|
+
* AT-URI of the cart record
|
|
22
|
+
*/
|
|
23
|
+
uri: l.AtUriString;
|
|
24
|
+
/**
|
|
25
|
+
* CID of the cart record
|
|
26
|
+
*/
|
|
27
|
+
cid: l.CidString;
|
|
28
|
+
record: AtiprotoCart.Main;
|
|
29
|
+
};
|
|
30
|
+
export type { CartResponse };
|
|
31
|
+
declare const cartResponse: l.TypedObjectSchema<"com.atiproto.account.cart.list#cartResponse", l.Validator<CartResponse, CartResponse>>;
|
|
32
|
+
export { cartResponse };
|
|
@@ -0,0 +1,56 @@
|
|
|
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.cartResponse = exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
40
|
+
const lex_1 = require("@atproto/lex");
|
|
41
|
+
const AtiprotoCart = __importStar(require("../../cart.defs.js"));
|
|
42
|
+
const $nsid = 'com.atiproto.account.cart.list';
|
|
43
|
+
exports.$nsid = $nsid;
|
|
44
|
+
/** List carts for the authenticated user */
|
|
45
|
+
const main = lex_1.l.query($nsid, lex_1.l.params(), lex_1.l.jsonPayload({
|
|
46
|
+
carts: lex_1.l.array(lex_1.l.ref((() => cartResponse))),
|
|
47
|
+
cursor: lex_1.l.optional(lex_1.l.string()),
|
|
48
|
+
}));
|
|
49
|
+
exports.main = main;
|
|
50
|
+
exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
|
|
51
|
+
const cartResponse = lex_1.l.typedObject($nsid, 'cartResponse', lex_1.l.object({
|
|
52
|
+
uri: lex_1.l.string({ format: 'at-uri' }),
|
|
53
|
+
cid: lex_1.l.string({ format: 'cid' }),
|
|
54
|
+
record: lex_1.l.ref((() => AtiprotoCart.main)),
|
|
55
|
+
}));
|
|
56
|
+
exports.cartResponse = cartResponse;
|
|
@@ -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("./list.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./list.defs.js"));
|