@atiproto/lexicons 0.1.0 → 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.
Files changed (100) hide show
  1. package/dist/index.js +2940 -19
  2. package/dist/index.js.map +1 -0
  3. package/dist/index.mjs +2919 -0
  4. package/dist/index.mjs.map +1 -0
  5. package/dist/lexicons/com/atiproto/profile.defs.d.ts +10 -10
  6. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +20 -20
  7. package/dist/lexicons/com/atiproto/tip.defs.d.ts +40 -40
  8. package/package.json +6 -3
  9. package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +0 -58
  10. package/dist/lexicons/com/atiproto/account/cart/clone.js +0 -44
  11. package/dist/lexicons/com/atiproto/account/cart/create.defs.js +0 -54
  12. package/dist/lexicons/com/atiproto/account/cart/create.js +0 -44
  13. package/dist/lexicons/com/atiproto/account/cart/get.defs.js +0 -56
  14. package/dist/lexicons/com/atiproto/account/cart/get.js +0 -44
  15. package/dist/lexicons/com/atiproto/account/cart/list.defs.js +0 -56
  16. package/dist/lexicons/com/atiproto/account/cart/list.js +0 -44
  17. package/dist/lexicons/com/atiproto/account/cart/put.defs.js +0 -53
  18. package/dist/lexicons/com/atiproto/account/cart/put.js +0 -44
  19. package/dist/lexicons/com/atiproto/account/cart.js +0 -44
  20. package/dist/lexicons/com/atiproto/account/profile/get.defs.js +0 -53
  21. package/dist/lexicons/com/atiproto/account/profile/get.js +0 -44
  22. package/dist/lexicons/com/atiproto/account/profile/put.defs.js +0 -57
  23. package/dist/lexicons/com/atiproto/account/profile/put.js +0 -44
  24. package/dist/lexicons/com/atiproto/account/profile.js +0 -41
  25. package/dist/lexicons/com/atiproto/account.js +0 -41
  26. package/dist/lexicons/com/atiproto/cart.defs.js +0 -27
  27. package/dist/lexicons/com/atiproto/cart.js +0 -44
  28. package/dist/lexicons/com/atiproto/feed/list.defs.js +0 -54
  29. package/dist/lexicons/com/atiproto/feed/list.js +0 -44
  30. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +0 -51
  31. package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +0 -44
  32. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +0 -59
  33. package/dist/lexicons/com/atiproto/feed/subscription/create.js +0 -44
  34. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +0 -51
  35. package/dist/lexicons/com/atiproto/feed/subscription/get.js +0 -44
  36. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +0 -55
  37. package/dist/lexicons/com/atiproto/feed/subscription/list.js +0 -44
  38. package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +0 -53
  39. package/dist/lexicons/com/atiproto/feed/subscription/put.js +0 -44
  40. package/dist/lexicons/com/atiproto/feed/subscription.js +0 -44
  41. package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +0 -62
  42. package/dist/lexicons/com/atiproto/feed/tip/create.js +0 -44
  43. package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +0 -51
  44. package/dist/lexicons/com/atiproto/feed/tip/get.js +0 -44
  45. package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +0 -50
  46. package/dist/lexicons/com/atiproto/feed/tip/list.js +0 -44
  47. package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +0 -53
  48. package/dist/lexicons/com/atiproto/feed/tip/put.js +0 -44
  49. package/dist/lexicons/com/atiproto/feed/tip.js +0 -43
  50. package/dist/lexicons/com/atiproto/feed.js +0 -42
  51. package/dist/lexicons/com/atiproto/profile.defs.js +0 -20
  52. package/dist/lexicons/com/atiproto/profile.js +0 -44
  53. package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +0 -50
  54. package/dist/lexicons/com/atiproto/repo/profile/get.js +0 -44
  55. package/dist/lexicons/com/atiproto/repo/profile.js +0 -40
  56. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +0 -59
  57. package/dist/lexicons/com/atiproto/repo/subscription/search.js +0 -44
  58. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +0 -22
  59. package/dist/lexicons/com/atiproto/repo/subscription/validate.js +0 -44
  60. package/dist/lexicons/com/atiproto/repo/subscription.js +0 -41
  61. package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +0 -59
  62. package/dist/lexicons/com/atiproto/repo/tip/search.js +0 -44
  63. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +0 -23
  64. package/dist/lexicons/com/atiproto/repo/tip/validate.js +0 -44
  65. package/dist/lexicons/com/atiproto/repo/tip.js +0 -41
  66. package/dist/lexicons/com/atiproto/repo.js +0 -42
  67. package/dist/lexicons/com/atiproto/subscription.defs.js +0 -24
  68. package/dist/lexicons/com/atiproto/subscription.js +0 -44
  69. package/dist/lexicons/com/atiproto/tip.defs.js +0 -29
  70. package/dist/lexicons/com/atiproto/tip.js +0 -44
  71. package/dist/lexicons/com/atiproto.js +0 -46
  72. package/dist/lexicons/com.js +0 -40
  73. package/dist/lexicons/index.js +0 -40
  74. package/dist/schemas/account/cart/clone.json +0 -75
  75. package/dist/schemas/account/cart/create.json +0 -52
  76. package/dist/schemas/account/cart/get.json +0 -66
  77. package/dist/schemas/account/cart/list.json +0 -73
  78. package/dist/schemas/account/cart/put.json +0 -47
  79. package/dist/schemas/account/profile/get.json +0 -42
  80. package/dist/schemas/account/profile/put.json +0 -68
  81. package/dist/schemas/cart.json +0 -74
  82. package/dist/schemas/feed/list.json +0 -49
  83. package/dist/schemas/feed/subscription/cancel.json +0 -48
  84. package/dist/schemas/feed/subscription/create.json +0 -76
  85. package/dist/schemas/feed/subscription/get.json +0 -45
  86. package/dist/schemas/feed/subscription/list.json +0 -64
  87. package/dist/schemas/feed/subscription/put.json +0 -47
  88. package/dist/schemas/feed/tip/create.json +0 -87
  89. package/dist/schemas/feed/tip/get.json +0 -45
  90. package/dist/schemas/feed/tip/list.json +0 -49
  91. package/dist/schemas/feed/tip/put.json +0 -47
  92. package/dist/schemas/profile.json +0 -39
  93. package/dist/schemas/repo/profile/get.json +0 -40
  94. package/dist/schemas/repo/subscription/search.json +0 -67
  95. package/dist/schemas/repo/subscription/validate.json +0 -55
  96. package/dist/schemas/repo/tip/search.json +0 -67
  97. package/dist/schemas/repo/tip/validate.json +0 -60
  98. package/dist/schemas/subscription.json +0 -67
  99. package/dist/schemas/tip.json +0 -57
  100. package/dist/schemas.js +0 -60
@@ -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
- }
@@ -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,39 +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
- "disableReceiptNotifications": {
22
- "type": "boolean",
23
- "description": "Opt out of payment receipt DMs (default: false)"
24
- },
25
- "createdAt": {
26
- "type": "string",
27
- "format": "datetime",
28
- "description": "Creation timestamp"
29
- },
30
- "updatedAt": {
31
- "type": "string",
32
- "format": "datetime",
33
- "description": "Last update timestamp"
34
- }
35
- }
36
- }
37
- }
38
- }
39
- }
@@ -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
- }