@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,40 @@
|
|
|
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.atiproto = void 0;
|
|
40
|
+
exports.atiproto = __importStar(require("./com/atiproto.js"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as com from './com.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
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.com = void 0;
|
|
40
|
+
exports.com = __importStar(require("./com.js"));
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.account.cart.clone",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Clone an existing cart, creating new tip and subscription records. Useful for reopening expired carts or repeating tips.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["uri"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"uri": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "at-uri",
|
|
17
|
+
"description": "AT-URI of the cart to clone"
|
|
18
|
+
},
|
|
19
|
+
"redirectUrl": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "uri",
|
|
22
|
+
"description": "URI to redirect to after checkout is complete/cancelled"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"output": {
|
|
28
|
+
"encoding": "application/json",
|
|
29
|
+
"schema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": [
|
|
32
|
+
"cart",
|
|
33
|
+
"cartUri",
|
|
34
|
+
"checkoutUrl",
|
|
35
|
+
"tips",
|
|
36
|
+
"subscriptions"
|
|
37
|
+
],
|
|
38
|
+
"properties": {
|
|
39
|
+
"cart": {
|
|
40
|
+
"type": "ref",
|
|
41
|
+
"ref": "com.atiproto.cart",
|
|
42
|
+
"description": "The new cart record"
|
|
43
|
+
},
|
|
44
|
+
"cartUri": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": "at-uri",
|
|
47
|
+
"description": "URI of the new cart record"
|
|
48
|
+
},
|
|
49
|
+
"checkoutUrl": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": "uri",
|
|
52
|
+
"description": "Checkout URL for the new cart"
|
|
53
|
+
},
|
|
54
|
+
"tips": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "ref",
|
|
58
|
+
"ref": "com.atiproto.tip"
|
|
59
|
+
},
|
|
60
|
+
"description": "Newly created tip records"
|
|
61
|
+
},
|
|
62
|
+
"subscriptions": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "ref",
|
|
66
|
+
"ref": "com.atiproto.subscription"
|
|
67
|
+
},
|
|
68
|
+
"description": "Newly created subscription records"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.account.cart.create",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Create a new empty cart",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["currency"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"currency": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "ISO 4217 currency code"
|
|
17
|
+
},
|
|
18
|
+
"redirectUrl": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "uri",
|
|
21
|
+
"description": "URI to redirect to after checkout is complete/cancelled"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"output": {
|
|
27
|
+
"encoding": "application/json",
|
|
28
|
+
"schema": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["cart", "cartUri", "checkoutUrl"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"cart": {
|
|
33
|
+
"type": "ref",
|
|
34
|
+
"ref": "com.atiproto.cart",
|
|
35
|
+
"description": "The created cart record"
|
|
36
|
+
},
|
|
37
|
+
"cartUri": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "at-uri",
|
|
40
|
+
"description": "URI of the cart record"
|
|
41
|
+
},
|
|
42
|
+
"checkoutUrl": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": "uri",
|
|
45
|
+
"description": "Checkout URL hosted by atiproto"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.account.cart.get",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "Get a specific cart by URI, including resolved tip and subscription records",
|
|
8
|
+
"parameters": {
|
|
9
|
+
"type": "params",
|
|
10
|
+
"required": ["uri"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"uri": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "at-uri",
|
|
15
|
+
"description": "AT-URI of the cart record"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"output": {
|
|
20
|
+
"encoding": "application/json",
|
|
21
|
+
"schema": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": ["uri", "cart", "tips", "subscriptions"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"uri": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "at-uri",
|
|
28
|
+
"description": "Cart record URI"
|
|
29
|
+
},
|
|
30
|
+
"cid": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"format": "cid",
|
|
33
|
+
"description": "Cart record CID"
|
|
34
|
+
},
|
|
35
|
+
"cart": {
|
|
36
|
+
"type": "ref",
|
|
37
|
+
"ref": "com.atiproto.cart",
|
|
38
|
+
"description": "The cart record data"
|
|
39
|
+
},
|
|
40
|
+
"checkoutUrl": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": "uri",
|
|
43
|
+
"description": "Checkout URL, only present when cart status is open"
|
|
44
|
+
},
|
|
45
|
+
"tips": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "ref",
|
|
49
|
+
"ref": "com.atiproto.tip"
|
|
50
|
+
},
|
|
51
|
+
"description": "Resolved tip records referenced by this cart"
|
|
52
|
+
},
|
|
53
|
+
"subscriptions": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"type": "ref",
|
|
57
|
+
"ref": "com.atiproto.subscription"
|
|
58
|
+
},
|
|
59
|
+
"description": "Resolved subscription records referenced by this cart"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.account.cart.list",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "List carts for the authenticated user",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"status": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Filter: open, completed, expired, abandoned"
|
|
16
|
+
},
|
|
17
|
+
"cursor": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Pagination cursor"
|
|
20
|
+
},
|
|
21
|
+
"limit": {
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"default": 20,
|
|
24
|
+
"minimum": 1,
|
|
25
|
+
"maximum": 100,
|
|
26
|
+
"description": "Results per page (1-100, default: 20)"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"output": {
|
|
32
|
+
"encoding": "application/json",
|
|
33
|
+
"schema": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"carts": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "ref",
|
|
40
|
+
"ref": "#cartResponse"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"cursor": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Pagination cursor for next page"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["carts"]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"cartResponse": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": ["uri", "cid", "record"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"uri": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": "at-uri",
|
|
59
|
+
"description": "AT-URI of the cart record"
|
|
60
|
+
},
|
|
61
|
+
"cid": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"format": "cid",
|
|
64
|
+
"description": "CID of the cart record"
|
|
65
|
+
},
|
|
66
|
+
"record": {
|
|
67
|
+
"type": "ref",
|
|
68
|
+
"ref": "com.atiproto.cart"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.account.cart.put",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Update a cart. Only open carts can be updated.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["uri", "record"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"uri": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "at-uri",
|
|
17
|
+
"description": "AT-URI of the cart to update"
|
|
18
|
+
},
|
|
19
|
+
"record": {
|
|
20
|
+
"type": "ref",
|
|
21
|
+
"ref": "com.atiproto.cart"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"output": {
|
|
27
|
+
"encoding": "application/json",
|
|
28
|
+
"schema": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["uri", "cid"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"uri": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"format": "at-uri",
|
|
35
|
+
"description": "Updated cart record URI"
|
|
36
|
+
},
|
|
37
|
+
"cid": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "cid",
|
|
40
|
+
"description": "New CID of the updated record"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.account.profile.get",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
|
|
8
|
+
"output": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["profile", "hasProfile", "readyForPayment"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"uri": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "at-uri",
|
|
17
|
+
"description": "Profile record URI (absent if no profile configured)"
|
|
18
|
+
},
|
|
19
|
+
"cid": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "cid",
|
|
22
|
+
"description": "Profile record CID (absent if no profile configured)"
|
|
23
|
+
},
|
|
24
|
+
"profile": {
|
|
25
|
+
"type": "ref",
|
|
26
|
+
"ref": "com.atiproto.profile",
|
|
27
|
+
"description": "The profile record data (defaults if not configured)"
|
|
28
|
+
},
|
|
29
|
+
"hasProfile": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"description": "Whether the user has saved a profile record"
|
|
32
|
+
},
|
|
33
|
+
"readyForPayment": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"description": "Whether the user's payment account is set up and enabled"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.account.profile.put",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Create or update the authenticated user's profile settings",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"acceptsTips": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "Enable accepting tips"
|
|
16
|
+
},
|
|
17
|
+
"acceptsSubscriptions": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Enable accepting subscriptions"
|
|
20
|
+
},
|
|
21
|
+
"allowPayAsYouWant": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "Enable custom amounts"
|
|
24
|
+
},
|
|
25
|
+
"allowZeroTips": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"description": "Enable $0 tips"
|
|
28
|
+
},
|
|
29
|
+
"minimumTip": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"description": "Minimum tip amount in cents"
|
|
32
|
+
},
|
|
33
|
+
"subscriptionTiers": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"description": "Subscription tier configurations",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "ref",
|
|
38
|
+
"ref": "com.atiproto.profile#subscriptionTier"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"output": {
|
|
45
|
+
"encoding": "application/json",
|
|
46
|
+
"schema": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"required": [
|
|
49
|
+
"uri",
|
|
50
|
+
"cid",
|
|
51
|
+
"profile",
|
|
52
|
+
"hasProfile",
|
|
53
|
+
"readyForPayment"
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"uri": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": "at-uri",
|
|
59
|
+
"description": "Profile record URI"
|
|
60
|
+
},
|
|
61
|
+
"cid": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"format": "cid",
|
|
64
|
+
"description": "Profile record CID"
|
|
65
|
+
},
|
|
66
|
+
"profile": {
|
|
67
|
+
"type": "ref",
|
|
68
|
+
"ref": "com.atiproto.profile",
|
|
69
|
+
"description": "The profile record data"
|
|
70
|
+
},
|
|
71
|
+
"hasProfile": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"description": "Whether the user has saved a profile record"
|
|
74
|
+
},
|
|
75
|
+
"readyForPayment": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Whether the user's payment account is set up and enabled"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.cart",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "record",
|
|
7
|
+
"description": "A record representing a shopping cart for tips/subscriptions",
|
|
8
|
+
"key": "any",
|
|
9
|
+
"record": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": [
|
|
12
|
+
"items",
|
|
13
|
+
"currency",
|
|
14
|
+
"total",
|
|
15
|
+
"status",
|
|
16
|
+
"createdAt",
|
|
17
|
+
"expiresAt"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "ref",
|
|
24
|
+
"ref": "#cartItem"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"currency": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "ISO 4217 currency code"
|
|
30
|
+
},
|
|
31
|
+
"total": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"description": "Total amount in cents"
|
|
34
|
+
},
|
|
35
|
+
"status": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Cart status: open, completed, expired, abandoned"
|
|
38
|
+
},
|
|
39
|
+
"createdAt": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"format": "datetime",
|
|
42
|
+
"description": "Creation timestamp"
|
|
43
|
+
},
|
|
44
|
+
"expiresAt": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": "datetime",
|
|
47
|
+
"description": "Expiration timestamp"
|
|
48
|
+
},
|
|
49
|
+
"completedAt": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": "datetime",
|
|
52
|
+
"description": "Completion timestamp"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"cartItem": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["type", "recordUri"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"type": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Item type: tip or subscription",
|
|
64
|
+
"enum": ["com.atiproto.tip", "com.atiproto.subscription"]
|
|
65
|
+
},
|
|
66
|
+
"recordUri": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"format": "at-uri",
|
|
69
|
+
"description": "AT-URI for tip on record"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atiproto.feed.list",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"cursor": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Pagination cursor"
|
|
16
|
+
},
|
|
17
|
+
"limit": {
|
|
18
|
+
"type": "integer",
|
|
19
|
+
"minimum": 1,
|
|
20
|
+
"maximum": 100,
|
|
21
|
+
"default": 50,
|
|
22
|
+
"description": "Results per page (1-100)"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"output": {
|
|
28
|
+
"encoding": "application/json",
|
|
29
|
+
"schema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["items"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "union",
|
|
37
|
+
"refs": ["com.atiproto.tip", "com.atiproto.subscription"]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"cursor": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Pagination cursor for next page"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|