@atiproto/lexicons 0.0.1 → 0.1.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.js +2940 -19
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2919 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +2 -8
- package/dist/lexicons/com/atiproto/profile.defs.d.ts +10 -159
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +20 -20
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +40 -40
- package/package.json +6 -3
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +0 -58
- package/dist/lexicons/com/atiproto/account/cart/clone.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart/create.defs.js +0 -54
- package/dist/lexicons/com/atiproto/account/cart/create.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart/get.defs.js +0 -56
- package/dist/lexicons/com/atiproto/account/cart/get.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart/list.defs.js +0 -56
- package/dist/lexicons/com/atiproto/account/cart/list.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart/put.defs.js +0 -53
- package/dist/lexicons/com/atiproto/account/cart/put.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart.js +0 -44
- package/dist/lexicons/com/atiproto/account/profile/get.defs.js +0 -53
- package/dist/lexicons/com/atiproto/account/profile/get.js +0 -44
- package/dist/lexicons/com/atiproto/account/profile/put.defs.js +0 -60
- package/dist/lexicons/com/atiproto/account/profile/put.js +0 -44
- package/dist/lexicons/com/atiproto/account/profile.js +0 -41
- package/dist/lexicons/com/atiproto/account.js +0 -41
- package/dist/lexicons/com/atiproto/cart.defs.js +0 -27
- package/dist/lexicons/com/atiproto/cart.js +0 -44
- package/dist/lexicons/com/atiproto/feed/list.defs.js +0 -54
- package/dist/lexicons/com/atiproto/feed/list.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +0 -51
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +0 -59
- package/dist/lexicons/com/atiproto/feed/subscription/create.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +0 -51
- package/dist/lexicons/com/atiproto/feed/subscription/get.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +0 -55
- package/dist/lexicons/com/atiproto/feed/subscription/list.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +0 -53
- package/dist/lexicons/com/atiproto/feed/subscription/put.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +0 -62
- package/dist/lexicons/com/atiproto/feed/tip/create.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +0 -51
- package/dist/lexicons/com/atiproto/feed/tip/get.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +0 -50
- package/dist/lexicons/com/atiproto/feed/tip/list.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +0 -53
- package/dist/lexicons/com/atiproto/feed/tip/put.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip.js +0 -43
- package/dist/lexicons/com/atiproto/feed.js +0 -42
- package/dist/lexicons/com/atiproto/profile.defs.js +0 -32
- package/dist/lexicons/com/atiproto/profile.js +0 -44
- package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +0 -50
- package/dist/lexicons/com/atiproto/repo/profile/get.js +0 -44
- package/dist/lexicons/com/atiproto/repo/profile.js +0 -40
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +0 -59
- package/dist/lexicons/com/atiproto/repo/subscription/search.js +0 -44
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +0 -22
- package/dist/lexicons/com/atiproto/repo/subscription/validate.js +0 -44
- package/dist/lexicons/com/atiproto/repo/subscription.js +0 -41
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +0 -59
- package/dist/lexicons/com/atiproto/repo/tip/search.js +0 -44
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +0 -23
- package/dist/lexicons/com/atiproto/repo/tip/validate.js +0 -44
- package/dist/lexicons/com/atiproto/repo/tip.js +0 -41
- package/dist/lexicons/com/atiproto/repo.js +0 -42
- package/dist/lexicons/com/atiproto/subscription.defs.js +0 -24
- package/dist/lexicons/com/atiproto/subscription.js +0 -44
- package/dist/lexicons/com/atiproto/tip.defs.js +0 -29
- package/dist/lexicons/com/atiproto/tip.js +0 -44
- package/dist/lexicons/com/atiproto.js +0 -46
- package/dist/lexicons/com.js +0 -40
- package/dist/lexicons/index.js +0 -40
- package/dist/schemas/account/cart/clone.json +0 -75
- package/dist/schemas/account/cart/create.json +0 -52
- package/dist/schemas/account/cart/get.json +0 -66
- package/dist/schemas/account/cart/list.json +0 -73
- package/dist/schemas/account/cart/put.json +0 -47
- package/dist/schemas/account/profile/get.json +0 -42
- package/dist/schemas/account/profile/put.json +0 -84
- package/dist/schemas/cart.json +0 -74
- package/dist/schemas/feed/list.json +0 -49
- package/dist/schemas/feed/subscription/cancel.json +0 -48
- package/dist/schemas/feed/subscription/create.json +0 -76
- package/dist/schemas/feed/subscription/get.json +0 -45
- package/dist/schemas/feed/subscription/list.json +0 -64
- package/dist/schemas/feed/subscription/put.json +0 -47
- package/dist/schemas/feed/tip/create.json +0 -87
- package/dist/schemas/feed/tip/get.json +0 -45
- package/dist/schemas/feed/tip/list.json +0 -49
- package/dist/schemas/feed/tip/put.json +0 -47
- package/dist/schemas/profile.json +0 -88
- package/dist/schemas/repo/profile/get.json +0 -40
- package/dist/schemas/repo/subscription/search.json +0 -67
- package/dist/schemas/repo/subscription/validate.json +0 -55
- package/dist/schemas/repo/tip/search.json +0 -67
- package/dist/schemas/repo/tip/validate.json +0 -60
- package/dist/schemas/subscription.json +0 -67
- package/dist/schemas/tip.json +0 -57
- package/dist/schemas.js +0 -60
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defs": {
|
|
3
|
-
"main": {
|
|
4
|
-
"description": "A record representing a subscription from one user to another",
|
|
5
|
-
"key": "any",
|
|
6
|
-
"record": {
|
|
7
|
-
"properties": {
|
|
8
|
-
"subject": {
|
|
9
|
-
"description": "DID of the user being subscribed to",
|
|
10
|
-
"format": "did",
|
|
11
|
-
"type": "string"
|
|
12
|
-
},
|
|
13
|
-
"amount": {
|
|
14
|
-
"description": "Subscription amount in cents (0 for free subscriptions)",
|
|
15
|
-
"minimum": 0,
|
|
16
|
-
"type": "integer"
|
|
17
|
-
},
|
|
18
|
-
"currency": {
|
|
19
|
-
"description": "ISO 4217 currency code",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
"interval": {
|
|
23
|
-
"description": "Billing interval: monthly or yearly",
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"status": {
|
|
27
|
-
"description": "Subscription status: pending, active, past_due, cancelled, expired",
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
"billingStartDate": {
|
|
31
|
-
"description": "First billing period, can be used to determine recurrence",
|
|
32
|
-
"format": "datetime",
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
|
-
"cancelledAt": {
|
|
36
|
-
"description": "Cancellation timestamp",
|
|
37
|
-
"format": "datetime",
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
"accessUntil": {
|
|
41
|
-
"description": "Date until which the subscriber retains access after cancellation",
|
|
42
|
-
"format": "datetime",
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
"createdAt": {
|
|
46
|
-
"description": "Creation timestamp",
|
|
47
|
-
"format": "datetime",
|
|
48
|
-
"type": "string"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"required": [
|
|
52
|
-
"subject",
|
|
53
|
-
"amount",
|
|
54
|
-
"currency",
|
|
55
|
-
"interval",
|
|
56
|
-
"status",
|
|
57
|
-
"billingStartDate",
|
|
58
|
-
"createdAt"
|
|
59
|
-
],
|
|
60
|
-
"type": "object"
|
|
61
|
-
},
|
|
62
|
-
"type": "record"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"id": "com.atiproto.subscription",
|
|
66
|
-
"lexicon": 1
|
|
67
|
-
}
|
package/dist/schemas/tip.json
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defs": {
|
|
3
|
-
"main": {
|
|
4
|
-
"description": "A record representing a tip given by one user to another",
|
|
5
|
-
"key": "any",
|
|
6
|
-
"record": {
|
|
7
|
-
"properties": {
|
|
8
|
-
"subject": {
|
|
9
|
-
"description": "DID of the user receiving the tip",
|
|
10
|
-
"format": "did",
|
|
11
|
-
"type": "string"
|
|
12
|
-
},
|
|
13
|
-
"recordUri": {
|
|
14
|
-
"description": "AT-URI of specific record being tipped",
|
|
15
|
-
"format": "at-uri",
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"amount": {
|
|
19
|
-
"description": "Tip amount in cents (0 when recipient allows zero tips)",
|
|
20
|
-
"minimum": 0,
|
|
21
|
-
"type": "integer"
|
|
22
|
-
},
|
|
23
|
-
"currency": {
|
|
24
|
-
"description": "ISO 4217 currency code",
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"status": {
|
|
28
|
-
"description": "Tip status: pending, authorized (payment held), completed, failed, refunded",
|
|
29
|
-
"type": "string",
|
|
30
|
-
"enum": ["pending", "authorized", "completed", "failed", "refunded"]
|
|
31
|
-
},
|
|
32
|
-
"message": {
|
|
33
|
-
"description": "Optional message (max 500 chars)",
|
|
34
|
-
"maxGraphemes": 500,
|
|
35
|
-
"maxLength": 5000,
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
"createdAt": {
|
|
39
|
-
"description": "Creation timestamp",
|
|
40
|
-
"format": "datetime",
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
"completedAt": {
|
|
44
|
-
"description": "Completion timestamp",
|
|
45
|
-
"format": "datetime",
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"required": ["subject", "amount", "currency", "status", "createdAt"],
|
|
50
|
-
"type": "object"
|
|
51
|
-
},
|
|
52
|
-
"type": "record"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"id": "com.atiproto.tip",
|
|
56
|
-
"lexicon": 1
|
|
57
|
-
}
|
package/dist/schemas.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.schemas = void 0;
|
|
7
|
-
const clone_json_1 = __importDefault(require("./schemas/account/cart/clone.json"));
|
|
8
|
-
const create_json_1 = __importDefault(require("./schemas/account/cart/create.json"));
|
|
9
|
-
const get_json_1 = __importDefault(require("./schemas/account/cart/get.json"));
|
|
10
|
-
const list_json_1 = __importDefault(require("./schemas/account/cart/list.json"));
|
|
11
|
-
const put_json_1 = __importDefault(require("./schemas/account/cart/put.json"));
|
|
12
|
-
const get_json_2 = __importDefault(require("./schemas/account/profile/get.json"));
|
|
13
|
-
const put_json_2 = __importDefault(require("./schemas/account/profile/put.json"));
|
|
14
|
-
const cart_json_1 = __importDefault(require("./schemas/cart.json"));
|
|
15
|
-
const list_json_2 = __importDefault(require("./schemas/feed/list.json"));
|
|
16
|
-
const cancel_json_1 = __importDefault(require("./schemas/feed/subscription/cancel.json"));
|
|
17
|
-
const create_json_2 = __importDefault(require("./schemas/feed/subscription/create.json"));
|
|
18
|
-
const get_json_3 = __importDefault(require("./schemas/feed/subscription/get.json"));
|
|
19
|
-
const list_json_3 = __importDefault(require("./schemas/feed/subscription/list.json"));
|
|
20
|
-
const put_json_3 = __importDefault(require("./schemas/feed/subscription/put.json"));
|
|
21
|
-
const create_json_3 = __importDefault(require("./schemas/feed/tip/create.json"));
|
|
22
|
-
const get_json_4 = __importDefault(require("./schemas/feed/tip/get.json"));
|
|
23
|
-
const list_json_4 = __importDefault(require("./schemas/feed/tip/list.json"));
|
|
24
|
-
const put_json_4 = __importDefault(require("./schemas/feed/tip/put.json"));
|
|
25
|
-
const profile_json_1 = __importDefault(require("./schemas/profile.json"));
|
|
26
|
-
const get_json_5 = __importDefault(require("./schemas/repo/profile/get.json"));
|
|
27
|
-
const search_json_1 = __importDefault(require("./schemas/repo/subscription/search.json"));
|
|
28
|
-
const validate_json_1 = __importDefault(require("./schemas/repo/subscription/validate.json"));
|
|
29
|
-
const search_json_2 = __importDefault(require("./schemas/repo/tip/search.json"));
|
|
30
|
-
const validate_json_2 = __importDefault(require("./schemas/repo/tip/validate.json"));
|
|
31
|
-
const subscription_json_1 = __importDefault(require("./schemas/subscription.json"));
|
|
32
|
-
const tip_json_1 = __importDefault(require("./schemas/tip.json"));
|
|
33
|
-
exports.schemas = [
|
|
34
|
-
clone_json_1.default,
|
|
35
|
-
create_json_1.default,
|
|
36
|
-
get_json_1.default,
|
|
37
|
-
list_json_1.default,
|
|
38
|
-
put_json_1.default,
|
|
39
|
-
get_json_2.default,
|
|
40
|
-
put_json_2.default,
|
|
41
|
-
cart_json_1.default,
|
|
42
|
-
list_json_2.default,
|
|
43
|
-
cancel_json_1.default,
|
|
44
|
-
create_json_2.default,
|
|
45
|
-
get_json_3.default,
|
|
46
|
-
list_json_3.default,
|
|
47
|
-
put_json_3.default,
|
|
48
|
-
create_json_3.default,
|
|
49
|
-
get_json_4.default,
|
|
50
|
-
list_json_4.default,
|
|
51
|
-
put_json_4.default,
|
|
52
|
-
profile_json_1.default,
|
|
53
|
-
get_json_5.default,
|
|
54
|
-
search_json_1.default,
|
|
55
|
-
validate_json_1.default,
|
|
56
|
-
search_json_2.default,
|
|
57
|
-
validate_json_2.default,
|
|
58
|
-
subscription_json_1.default,
|
|
59
|
-
tip_json_1.default,
|
|
60
|
-
];
|