@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,73 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/schemas/cart.json
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.feed.subscription.cancel",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "procedure",
|
|
7
|
-
"description": "Cancel an active subscription",
|
|
8
|
-
"input": {
|
|
9
|
-
"encoding": "application/json",
|
|
10
|
-
"schema": {
|
|
11
|
-
"type": "object",
|
|
12
|
-
"required": ["subscriptionUri"],
|
|
13
|
-
"properties": {
|
|
14
|
-
"subscriptionUri": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"format": "at-uri",
|
|
17
|
-
"description": "AT-URI of the subscription to cancel"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"output": {
|
|
23
|
-
"encoding": "application/json",
|
|
24
|
-
"schema": {
|
|
25
|
-
"type": "object",
|
|
26
|
-
"required": ["subscriptionUri", "subscription", "accessUntil"],
|
|
27
|
-
"properties": {
|
|
28
|
-
"subscriptionUri": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"format": "at-uri",
|
|
31
|
-
"description": "URI of the updated subscription record"
|
|
32
|
-
},
|
|
33
|
-
"subscription": {
|
|
34
|
-
"type": "ref",
|
|
35
|
-
"ref": "com.atiproto.subscription",
|
|
36
|
-
"description": "Updated subscription record"
|
|
37
|
-
},
|
|
38
|
-
"accessUntil": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"format": "datetime",
|
|
41
|
-
"description": "Timestamp when access expires"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defs": {
|
|
3
|
-
"main": {
|
|
4
|
-
"description": "Create a subscription to a user. Returns a one-off cart with checkout URL.",
|
|
5
|
-
"input": {
|
|
6
|
-
"encoding": "application/json",
|
|
7
|
-
"schema": {
|
|
8
|
-
"properties": {
|
|
9
|
-
"subject": {
|
|
10
|
-
"description": "DID of the user to subscribe to",
|
|
11
|
-
"format": "did",
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"amount": {
|
|
15
|
-
"description": "Custom amount in cents (if pay-as-you-want enabled)",
|
|
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
|
-
},
|
|
27
|
-
"required": ["subject", "currency", "interval"],
|
|
28
|
-
"type": "object"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"output": {
|
|
32
|
-
"encoding": "application/json",
|
|
33
|
-
"schema": {
|
|
34
|
-
"properties": {
|
|
35
|
-
"subscriptionUri": {
|
|
36
|
-
"description": "URI of the subscription record in PDS",
|
|
37
|
-
"format": "at-uri",
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
"subscription": {
|
|
41
|
-
"description": "The created subscription record (status: pending)",
|
|
42
|
-
"type": "ref",
|
|
43
|
-
"ref": "com.atiproto.subscription"
|
|
44
|
-
},
|
|
45
|
-
"cartUri": {
|
|
46
|
-
"description": "URI of the cart record in PDS",
|
|
47
|
-
"format": "at-uri",
|
|
48
|
-
"type": "string"
|
|
49
|
-
},
|
|
50
|
-
"cart": {
|
|
51
|
-
"description": "The created cart record (status: open)",
|
|
52
|
-
"type": "ref",
|
|
53
|
-
"ref": "com.atiproto.cart"
|
|
54
|
-
},
|
|
55
|
-
"checkoutUrl": {
|
|
56
|
-
"description": "Checkout URL hosted by atiproto",
|
|
57
|
-
"format": "uri",
|
|
58
|
-
"type": "string"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"required": [
|
|
62
|
-
"subscriptionUri",
|
|
63
|
-
"subscription",
|
|
64
|
-
"cartUri",
|
|
65
|
-
"cart",
|
|
66
|
-
"checkoutUrl"
|
|
67
|
-
],
|
|
68
|
-
"type": "object"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"type": "procedure"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"id": "com.atiproto.feed.subscription.create",
|
|
75
|
-
"lexicon": 1
|
|
76
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defs": {
|
|
3
|
-
"main": {
|
|
4
|
-
"description": "Get a specific subscription by URI",
|
|
5
|
-
"parameters": {
|
|
6
|
-
"properties": {
|
|
7
|
-
"uri": {
|
|
8
|
-
"description": "AT-URI of the subscription 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": "Subscription record URI",
|
|
22
|
-
"format": "at-uri",
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"cid": {
|
|
26
|
-
"description": "Subscription record CID",
|
|
27
|
-
"format": "cid",
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
"record": {
|
|
31
|
-
"description": "The subscription record data",
|
|
32
|
-
"type": "ref",
|
|
33
|
-
"ref": "com.atiproto.subscription"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"required": ["uri", "cid", "record"],
|
|
37
|
-
"type": "object"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"type": "query"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"id": "com.atiproto.feed.subscription.get",
|
|
44
|
-
"lexicon": 1
|
|
45
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.feed.subscription.list",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "query",
|
|
7
|
-
"description": "List subscriptions 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": ["subscriptions"],
|
|
32
|
-
"properties": {
|
|
33
|
-
"subscriptions": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"type": "ref",
|
|
37
|
-
"ref": "#subscriptionResponse"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"cursor": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Pagination cursor for next page"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"subscriptionResponse": {
|
|
49
|
-
"type": "object",
|
|
50
|
-
"required": ["uri", "record"],
|
|
51
|
-
"properties": {
|
|
52
|
-
"uri": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"format": "at-uri",
|
|
55
|
-
"description": "AT-URI of the subscription record"
|
|
56
|
-
},
|
|
57
|
-
"record": {
|
|
58
|
-
"type": "ref",
|
|
59
|
-
"ref": "com.atiproto.subscription"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "com.atiproto.feed.subscription.put",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "procedure",
|
|
7
|
-
"description": "Update a pending subscription. Only pending subscriptions 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 subscription record to update"
|
|
18
|
-
},
|
|
19
|
-
"record": {
|
|
20
|
-
"type": "ref",
|
|
21
|
-
"ref": "com.atiproto.subscription"
|
|
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 subscription 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
|
-
}
|