@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,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.feed.tip.create",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "procedure",
|
|
7
|
-
"description": "Create a tip on a DID or specific record. Creates or adds to a cart and returns a checkout URL.",
|
|
8
|
-
"input": {
|
|
9
|
-
"encoding": "application/json",
|
|
10
|
-
"schema": {
|
|
11
|
-
"type": "object",
|
|
12
|
-
"required": ["subject", "amount", "currency"],
|
|
13
|
-
"properties": {
|
|
14
|
-
"subject": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"format": "did",
|
|
17
|
-
"description": "DID of the user being tipped"
|
|
18
|
-
},
|
|
19
|
-
"recordUri": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"format": "at-uri",
|
|
22
|
-
"description": "AT-URI of specific record being tipped"
|
|
23
|
-
},
|
|
24
|
-
"amount": {
|
|
25
|
-
"type": "integer",
|
|
26
|
-
"description": "Tip amount in cents"
|
|
27
|
-
},
|
|
28
|
-
"currency": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "ISO 4217 currency code"
|
|
31
|
-
},
|
|
32
|
-
"cartUri": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"format": "at-uri",
|
|
35
|
-
"description": "AT-URI of an existing cart to add this tip to. If omitted, a new cart is created."
|
|
36
|
-
},
|
|
37
|
-
"redirectUrl": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"format": "uri",
|
|
40
|
-
"description": "URL to redirect to after checkout completes"
|
|
41
|
-
},
|
|
42
|
-
"message": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"description": "Optional message (max 500 chars)",
|
|
45
|
-
"maxGraphemes": 500,
|
|
46
|
-
"maxLength": 5000
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"output": {
|
|
52
|
-
"encoding": "application/json",
|
|
53
|
-
"schema": {
|
|
54
|
-
"type": "object",
|
|
55
|
-
"required": ["tipUri", "tip", "cartUri", "cart", "checkoutUrl"],
|
|
56
|
-
"properties": {
|
|
57
|
-
"tipUri": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"format": "at-uri",
|
|
60
|
-
"description": "URI of the tip record in PDS"
|
|
61
|
-
},
|
|
62
|
-
"tip": {
|
|
63
|
-
"type": "ref",
|
|
64
|
-
"ref": "com.atiproto.tip",
|
|
65
|
-
"description": "The created tip record (status: pending)"
|
|
66
|
-
},
|
|
67
|
-
"cartUri": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"format": "at-uri",
|
|
70
|
-
"description": "URI of the cart record in PDS"
|
|
71
|
-
},
|
|
72
|
-
"cart": {
|
|
73
|
-
"type": "ref",
|
|
74
|
-
"ref": "com.atiproto.cart",
|
|
75
|
-
"description": "The cart record (new or updated)"
|
|
76
|
-
},
|
|
77
|
-
"checkoutUrl": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"format": "uri",
|
|
80
|
-
"description": "Checkout URL hosted by atiproto"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defs": {
|
|
3
|
-
"main": {
|
|
4
|
-
"description": "Get a specific tip by URI",
|
|
5
|
-
"parameters": {
|
|
6
|
-
"properties": {
|
|
7
|
-
"uri": {
|
|
8
|
-
"description": "AT-URI of the tip record",
|
|
9
|
-
"format": "at-uri",
|
|
10
|
-
"type": "string"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"required": ["uri"],
|
|
14
|
-
"type": "params"
|
|
15
|
-
},
|
|
16
|
-
"output": {
|
|
17
|
-
"encoding": "application/json",
|
|
18
|
-
"schema": {
|
|
19
|
-
"properties": {
|
|
20
|
-
"uri": {
|
|
21
|
-
"description": "Tip record URI",
|
|
22
|
-
"format": "at-uri",
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"cid": {
|
|
26
|
-
"description": "Tip record CID",
|
|
27
|
-
"format": "cid",
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
"value": {
|
|
31
|
-
"description": "The tip record data",
|
|
32
|
-
"type": "ref",
|
|
33
|
-
"ref": "com.atiproto.tip"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"required": ["uri", "cid", "value"],
|
|
37
|
-
"type": "object"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"type": "query"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"id": "com.atiproto.feed.tip.get",
|
|
44
|
-
"lexicon": 1
|
|
45
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.feed.tip.list",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "query",
|
|
7
|
-
"description": "List tips for the authenticated user",
|
|
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, default: 50)"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"output": {
|
|
28
|
-
"encoding": "application/json",
|
|
29
|
-
"schema": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"required": ["records"],
|
|
32
|
-
"properties": {
|
|
33
|
-
"records": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"type": "ref",
|
|
37
|
-
"ref": "com.atiproto.tip"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"cursor": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Pagination cursor for next page"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.feed.tip.put",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "procedure",
|
|
7
|
-
"description": "Update a pending tip. Only pending tips 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 tip record to update"
|
|
18
|
-
},
|
|
19
|
-
"record": {
|
|
20
|
-
"type": "ref",
|
|
21
|
-
"ref": "com.atiproto.tip"
|
|
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 tip 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
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.profile",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "record",
|
|
7
|
-
"description": "A record representing a user's tipping/subscription settings",
|
|
8
|
-
"key": "literal:self",
|
|
9
|
-
"record": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"required": ["createdAt"],
|
|
12
|
-
"properties": {
|
|
13
|
-
"acceptsTips": {
|
|
14
|
-
"type": "boolean",
|
|
15
|
-
"description": "Whether user accepts tips (default: true)"
|
|
16
|
-
},
|
|
17
|
-
"acceptsSubscriptions": {
|
|
18
|
-
"type": "boolean",
|
|
19
|
-
"description": "Whether user accepts subscriptions (default: true)"
|
|
20
|
-
},
|
|
21
|
-
"allowZeroTips": {
|
|
22
|
-
"type": "boolean",
|
|
23
|
-
"description": "Allow $0 tips (default: false)"
|
|
24
|
-
},
|
|
25
|
-
"minimumTip": {
|
|
26
|
-
"type": "integer",
|
|
27
|
-
"description": "Minimum tip amount in cents (default: 100)"
|
|
28
|
-
},
|
|
29
|
-
"disableReceiptNotifications": {
|
|
30
|
-
"type": "boolean",
|
|
31
|
-
"description": "Opt out of payment receipt DMs (default: false)"
|
|
32
|
-
},
|
|
33
|
-
"subscriptionTiers": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"type": "ref",
|
|
37
|
-
"ref": "#subscriptionTier"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"createdAt": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"format": "datetime",
|
|
43
|
-
"description": "Creation timestamp"
|
|
44
|
-
},
|
|
45
|
-
"updatedAt": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"format": "datetime",
|
|
48
|
-
"description": "Last update timestamp"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"subscriptionTier": {
|
|
54
|
-
"type": "object",
|
|
55
|
-
"required": ["id", "name", "amount", "interval"],
|
|
56
|
-
"properties": {
|
|
57
|
-
"id": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"description": "Unique tier identifier"
|
|
60
|
-
},
|
|
61
|
-
"name": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "Display name"
|
|
64
|
-
},
|
|
65
|
-
"amount": {
|
|
66
|
-
"type": "integer",
|
|
67
|
-
"minimum": 0,
|
|
68
|
-
"description": "Amount in cents (0 for free tiers)"
|
|
69
|
-
},
|
|
70
|
-
"interval": {
|
|
71
|
-
"type": "string",
|
|
72
|
-
"description": "Billing interval: monthly or yearly"
|
|
73
|
-
},
|
|
74
|
-
"description": {
|
|
75
|
-
"type": "string",
|
|
76
|
-
"description": "Tier description"
|
|
77
|
-
},
|
|
78
|
-
"benefits": {
|
|
79
|
-
"type": "array",
|
|
80
|
-
"items": {
|
|
81
|
-
"type": "string"
|
|
82
|
-
},
|
|
83
|
-
"description": "List of benefit strings"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.repo.profile.get",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "query",
|
|
7
|
-
"description": "Look up public profile information for any user",
|
|
8
|
-
"parameters": {
|
|
9
|
-
"type": "params",
|
|
10
|
-
"required": ["did"],
|
|
11
|
-
"properties": {
|
|
12
|
-
"did": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"format": "did",
|
|
15
|
-
"description": "DID of the user to look up"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"output": {
|
|
20
|
-
"encoding": "application/json",
|
|
21
|
-
"schema": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"required": ["did", "profile"],
|
|
24
|
-
"properties": {
|
|
25
|
-
"did": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"format": "did",
|
|
28
|
-
"description": "User's DID"
|
|
29
|
-
},
|
|
30
|
-
"profile": {
|
|
31
|
-
"type": "ref",
|
|
32
|
-
"ref": "com.atiproto.profile",
|
|
33
|
-
"description": "Public profile data"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.repo.subscription.search",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "query",
|
|
7
|
-
"description": "Search for subscriptions to a user (subscriptions where subject matches the given DID)",
|
|
8
|
-
"parameters": {
|
|
9
|
-
"type": "params",
|
|
10
|
-
"properties": {
|
|
11
|
-
"subject": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"format": "did",
|
|
14
|
-
"description": "DID of the user being subscribed to"
|
|
15
|
-
},
|
|
16
|
-
"cursor": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Pagination cursor"
|
|
19
|
-
},
|
|
20
|
-
"limit": {
|
|
21
|
-
"type": "integer",
|
|
22
|
-
"minimum": 1,
|
|
23
|
-
"maximum": 100,
|
|
24
|
-
"default": 50,
|
|
25
|
-
"description": "Results per page (1-100, default: 50)"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": ["subject"]
|
|
29
|
-
},
|
|
30
|
-
"output": {
|
|
31
|
-
"encoding": "application/json",
|
|
32
|
-
"schema": {
|
|
33
|
-
"type": "object",
|
|
34
|
-
"required": ["subscriptions"],
|
|
35
|
-
"properties": {
|
|
36
|
-
"subscriptions": {
|
|
37
|
-
"type": "array",
|
|
38
|
-
"items": {
|
|
39
|
-
"type": "ref",
|
|
40
|
-
"ref": "#subscriptionResponse"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"cursor": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"description": "Pagination cursor for next page"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"subscriptionResponse": {
|
|
52
|
-
"type": "object",
|
|
53
|
-
"required": ["uri", "record"],
|
|
54
|
-
"properties": {
|
|
55
|
-
"uri": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"format": "at-uri",
|
|
58
|
-
"description": "AT-URI of the subscription record"
|
|
59
|
-
},
|
|
60
|
-
"record": {
|
|
61
|
-
"type": "ref",
|
|
62
|
-
"ref": "com.atiproto.subscription"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.repo.subscription.validate",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "query",
|
|
7
|
-
"description": "Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check that the subscription amount meets a minimum.",
|
|
8
|
-
"parameters": {
|
|
9
|
-
"type": "params",
|
|
10
|
-
"required": ["sender", "subject"],
|
|
11
|
-
"properties": {
|
|
12
|
-
"sender": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"format": "did",
|
|
15
|
-
"description": "DID of the subscriber"
|
|
16
|
-
},
|
|
17
|
-
"subject": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"format": "did",
|
|
20
|
-
"description": "DID of the creator being subscribed to"
|
|
21
|
-
},
|
|
22
|
-
"minAmount": {
|
|
23
|
-
"type": "integer",
|
|
24
|
-
"description": "Minimum subscription amount in cents to consider valid"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"output": {
|
|
29
|
-
"encoding": "application/json",
|
|
30
|
-
"schema": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"required": ["valid"],
|
|
33
|
-
"properties": {
|
|
34
|
-
"valid": {
|
|
35
|
-
"type": "boolean",
|
|
36
|
-
"description": "Whether the sender has an active, verified subscription"
|
|
37
|
-
},
|
|
38
|
-
"amount": {
|
|
39
|
-
"type": "integer",
|
|
40
|
-
"description": "Subscription amount in cents"
|
|
41
|
-
},
|
|
42
|
-
"currency": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"description": "Currency of the subscription"
|
|
45
|
-
},
|
|
46
|
-
"reason": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "If invalid, reason for rejection"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.repo.tip.search",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "query",
|
|
7
|
-
"description": "Search for tips sent to a user (tips where subject matches the given DID)",
|
|
8
|
-
"parameters": {
|
|
9
|
-
"type": "params",
|
|
10
|
-
"properties": {
|
|
11
|
-
"subject": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"format": "did",
|
|
14
|
-
"description": "DID of the user receiving tips"
|
|
15
|
-
},
|
|
16
|
-
"cursor": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Pagination cursor"
|
|
19
|
-
},
|
|
20
|
-
"limit": {
|
|
21
|
-
"type": "integer",
|
|
22
|
-
"minimum": 1,
|
|
23
|
-
"maximum": 100,
|
|
24
|
-
"default": 50,
|
|
25
|
-
"description": "Results per page (1-100, default: 50)"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": ["subject"]
|
|
29
|
-
},
|
|
30
|
-
"output": {
|
|
31
|
-
"encoding": "application/json",
|
|
32
|
-
"schema": {
|
|
33
|
-
"type": "object",
|
|
34
|
-
"required": ["tips"],
|
|
35
|
-
"properties": {
|
|
36
|
-
"tips": {
|
|
37
|
-
"type": "array",
|
|
38
|
-
"items": {
|
|
39
|
-
"type": "ref",
|
|
40
|
-
"ref": "#tipResponse"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"cursor": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"description": "Pagination cursor for next page"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"tipResponse": {
|
|
52
|
-
"type": "object",
|
|
53
|
-
"required": ["uri", "record"],
|
|
54
|
-
"properties": {
|
|
55
|
-
"uri": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"format": "at-uri",
|
|
58
|
-
"description": "AT-URI of the tip record"
|
|
59
|
-
},
|
|
60
|
-
"record": {
|
|
61
|
-
"type": "ref",
|
|
62
|
-
"ref": "com.atiproto.tip"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.repo.tip.validate",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "query",
|
|
7
|
-
"description": "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.",
|
|
8
|
-
"parameters": {
|
|
9
|
-
"type": "params",
|
|
10
|
-
"required": ["sender"],
|
|
11
|
-
"properties": {
|
|
12
|
-
"sender": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"format": "did",
|
|
15
|
-
"description": "DID of the tip sender"
|
|
16
|
-
},
|
|
17
|
-
"subject": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"format": "did",
|
|
20
|
-
"description": "DID of the tip recipient. Ignored if recordUri is provided."
|
|
21
|
-
},
|
|
22
|
-
"recordUri": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"format": "at-uri",
|
|
25
|
-
"description": "AT-URI of the record being tipped. Takes precedence over subject."
|
|
26
|
-
},
|
|
27
|
-
"minAmount": {
|
|
28
|
-
"type": "integer",
|
|
29
|
-
"description": "Minimum total tip amount in cents to consider valid"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"output": {
|
|
34
|
-
"encoding": "application/json",
|
|
35
|
-
"schema": {
|
|
36
|
-
"type": "object",
|
|
37
|
-
"required": ["valid"],
|
|
38
|
-
"properties": {
|
|
39
|
-
"valid": {
|
|
40
|
-
"type": "boolean",
|
|
41
|
-
"description": "Whether the sender has completed and verified tip(s)"
|
|
42
|
-
},
|
|
43
|
-
"amount": {
|
|
44
|
-
"type": "integer",
|
|
45
|
-
"description": "Sum of all verified completed tip amounts in cents"
|
|
46
|
-
},
|
|
47
|
-
"currency": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"description": "Currency of the tips"
|
|
50
|
-
},
|
|
51
|
-
"reason": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "If invalid, reason for rejection"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|