@atiproto/lexicons 0.2.0 → 0.3.0
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 +92 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +92 -48
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +12 -12
- package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +30 -14
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +16 -12
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +24 -24
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -91,9 +91,9 @@ var main = l.record(
|
|
|
91
91
|
$nsid,
|
|
92
92
|
l.object({
|
|
93
93
|
items: l.array(l.ref((() => cartItem))),
|
|
94
|
-
currency: l.string(),
|
|
94
|
+
currency: l.string({ maxLength: 3 }),
|
|
95
95
|
total: l.integer(),
|
|
96
|
-
status: l.
|
|
96
|
+
status: l.enum(["open", "completed", "expired", "abandoned"]),
|
|
97
97
|
createdAt: l.string({ format: "datetime" }),
|
|
98
98
|
expiresAt: l.string({ format: "datetime" }),
|
|
99
99
|
completedAt: l.optional(l.string({ format: "datetime" }))
|
|
@@ -147,7 +147,7 @@ var main2 = l2.record(
|
|
|
147
147
|
subject: l2.string({ format: "did" }),
|
|
148
148
|
recordUri: l2.optional(l2.string({ format: "at-uri" })),
|
|
149
149
|
amount: l2.integer({ minimum: 0 }),
|
|
150
|
-
currency: l2.string(),
|
|
150
|
+
currency: l2.string({ maxLength: 3 }),
|
|
151
151
|
status: l2.enum([
|
|
152
152
|
"pending",
|
|
153
153
|
"authorized",
|
|
@@ -199,9 +199,9 @@ var main3 = l3.record(
|
|
|
199
199
|
l3.object({
|
|
200
200
|
subject: l3.string({ format: "did" }),
|
|
201
201
|
amount: l3.integer({ minimum: 0 }),
|
|
202
|
-
currency: l3.string(),
|
|
203
|
-
interval: l3.
|
|
204
|
-
status: l3.
|
|
202
|
+
currency: l3.string({ maxLength: 3 }),
|
|
203
|
+
interval: l3.enum(["monthly", "yearly"]),
|
|
204
|
+
status: l3.enum(["pending", "active", "past_due", "cancelled", "expired"]),
|
|
205
205
|
billingStartDate: l3.string({ format: "datetime" }),
|
|
206
206
|
cancelledAt: l3.optional(l3.string({ format: "datetime" })),
|
|
207
207
|
accessUntil: l3.optional(l3.string({ format: "datetime" })),
|
|
@@ -275,7 +275,7 @@ var main5 = l5.procedure(
|
|
|
275
275
|
$nsid5,
|
|
276
276
|
l5.params(),
|
|
277
277
|
l5.jsonPayload({
|
|
278
|
-
currency: l5.string(),
|
|
278
|
+
currency: l5.string({ maxLength: 3 }),
|
|
279
279
|
redirectUrl: l5.optional(l5.string({ format: "uri" }))
|
|
280
280
|
}),
|
|
281
281
|
l5.jsonPayload({
|
|
@@ -360,7 +360,7 @@ var main7 = l7.query(
|
|
|
360
360
|
l7.params(),
|
|
361
361
|
l7.jsonPayload({
|
|
362
362
|
carts: l7.array(l7.ref((() => cartResponse))),
|
|
363
|
-
cursor: l7.optional(l7.string())
|
|
363
|
+
cursor: l7.optional(l7.string({ maxLength: 512 }))
|
|
364
364
|
})
|
|
365
365
|
);
|
|
366
366
|
var $lxm4 = main7.nsid;
|
|
@@ -580,7 +580,7 @@ var main12 = l12.permissionSet(
|
|
|
580
580
|
]
|
|
581
581
|
}),
|
|
582
582
|
l12.permission("rpc", {
|
|
583
|
-
|
|
583
|
+
inheritAud: true,
|
|
584
584
|
lxm: [
|
|
585
585
|
"com.atiproto.account.cart.clone",
|
|
586
586
|
"com.atiproto.account.cart.create",
|
|
@@ -640,7 +640,7 @@ var main13 = l13.permissionSet(
|
|
|
640
640
|
]
|
|
641
641
|
}),
|
|
642
642
|
l13.permission("rpc", {
|
|
643
|
-
|
|
643
|
+
inheritAud: true,
|
|
644
644
|
lxm: [
|
|
645
645
|
"com.atiproto.account.cart.clone",
|
|
646
646
|
"com.atiproto.account.cart.create",
|
|
@@ -667,7 +667,7 @@ var main13 = l13.permissionSet(
|
|
|
667
667
|
],
|
|
668
668
|
{
|
|
669
669
|
title: "General Access",
|
|
670
|
-
detail: "Write access to cart, subscription, and tip records, plus RPC access to
|
|
670
|
+
detail: "Write access to cart, subscription, and tip records, plus RPC access to payment, feed, and public profile lookup endpoints."
|
|
671
671
|
}
|
|
672
672
|
);
|
|
673
673
|
|
|
@@ -737,7 +737,7 @@ var main14 = l14.query(
|
|
|
737
737
|
false
|
|
738
738
|
)
|
|
739
739
|
),
|
|
740
|
-
cursor: l14.optional(l14.string())
|
|
740
|
+
cursor: l14.optional(l14.string({ maxLength: 512 }))
|
|
741
741
|
})
|
|
742
742
|
);
|
|
743
743
|
var $lxm8 = main14.nsid;
|
|
@@ -825,17 +825,21 @@ var main16 = l16.procedure(
|
|
|
825
825
|
l16.jsonPayload({
|
|
826
826
|
subject: l16.string({ format: "did" }),
|
|
827
827
|
amount: l16.optional(l16.integer()),
|
|
828
|
-
currency: l16.string(),
|
|
829
|
-
interval: l16.
|
|
828
|
+
currency: l16.string({ maxLength: 3 }),
|
|
829
|
+
interval: l16.enum(["monthly", "yearly"]),
|
|
830
|
+
cartUri: l16.optional(l16.string({ format: "at-uri" })),
|
|
831
|
+
redirectUrl: l16.optional(l16.string({ format: "uri" }))
|
|
830
832
|
}),
|
|
831
833
|
l16.jsonPayload({
|
|
832
834
|
subscriptionUri: l16.string({ format: "at-uri" }),
|
|
833
835
|
subscription: l16.ref(
|
|
834
836
|
(() => main3)
|
|
835
837
|
),
|
|
836
|
-
cartUri: l16.string({ format: "at-uri" }),
|
|
837
|
-
cart: l16.
|
|
838
|
-
|
|
838
|
+
cartUri: l16.optional(l16.string({ format: "at-uri" })),
|
|
839
|
+
cart: l16.optional(
|
|
840
|
+
l16.ref((() => main))
|
|
841
|
+
),
|
|
842
|
+
checkoutUrl: l16.optional(l16.string({ format: "uri" }))
|
|
839
843
|
})
|
|
840
844
|
);
|
|
841
845
|
var $lxm10 = main16.nsid;
|
|
@@ -911,7 +915,7 @@ var main18 = l18.query(
|
|
|
911
915
|
subscriptions: l18.array(
|
|
912
916
|
l18.ref((() => subscriptionResponse))
|
|
913
917
|
),
|
|
914
|
-
cursor: l18.optional(l18.string())
|
|
918
|
+
cursor: l18.optional(l18.string({ maxLength: 512 }))
|
|
915
919
|
})
|
|
916
920
|
);
|
|
917
921
|
var $lxm12 = main18.nsid;
|
|
@@ -1011,7 +1015,7 @@ var main20 = l20.procedure(
|
|
|
1011
1015
|
subject: l20.string({ format: "did" }),
|
|
1012
1016
|
recordUri: l20.optional(l20.string({ format: "at-uri" })),
|
|
1013
1017
|
amount: l20.integer(),
|
|
1014
|
-
currency: l20.string(),
|
|
1018
|
+
currency: l20.string({ maxLength: 3 }),
|
|
1015
1019
|
cartUri: l20.optional(l20.string({ format: "at-uri" })),
|
|
1016
1020
|
redirectUrl: l20.optional(l20.string({ format: "uri" })),
|
|
1017
1021
|
message: l20.optional(l20.string({ maxGraphemes: 500, maxLength: 5e3 }))
|
|
@@ -1019,9 +1023,11 @@ var main20 = l20.procedure(
|
|
|
1019
1023
|
l20.jsonPayload({
|
|
1020
1024
|
tipUri: l20.string({ format: "at-uri" }),
|
|
1021
1025
|
tip: l20.ref((() => main2)),
|
|
1022
|
-
cartUri: l20.string({ format: "at-uri" }),
|
|
1023
|
-
cart: l20.
|
|
1024
|
-
|
|
1026
|
+
cartUri: l20.optional(l20.string({ format: "at-uri" })),
|
|
1027
|
+
cart: l20.optional(
|
|
1028
|
+
l20.ref((() => main))
|
|
1029
|
+
),
|
|
1030
|
+
checkoutUrl: l20.optional(l20.string({ format: "uri" }))
|
|
1025
1031
|
})
|
|
1026
1032
|
);
|
|
1027
1033
|
var $lxm14 = main20.nsid;
|
|
@@ -1091,7 +1097,7 @@ var main22 = l22.query(
|
|
|
1091
1097
|
l22.params(),
|
|
1092
1098
|
l22.jsonPayload({
|
|
1093
1099
|
records: l22.array(l22.ref((() => main2))),
|
|
1094
|
-
cursor: l22.optional(l22.string())
|
|
1100
|
+
cursor: l22.optional(l22.string({ maxLength: 512 }))
|
|
1095
1101
|
})
|
|
1096
1102
|
);
|
|
1097
1103
|
var $lxm16 = main22.nsid;
|
|
@@ -1242,7 +1248,7 @@ var main25 = l25.query(
|
|
|
1242
1248
|
$nsid25,
|
|
1243
1249
|
l25.params({
|
|
1244
1250
|
subject: l25.string({ format: "did" }),
|
|
1245
|
-
cursor: l25.optional(l25.string()),
|
|
1251
|
+
cursor: l25.optional(l25.string({ maxLength: 512 })),
|
|
1246
1252
|
limit: l25.optional(
|
|
1247
1253
|
l25.withDefault(l25.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1248
1254
|
)
|
|
@@ -1251,7 +1257,7 @@ var main25 = l25.query(
|
|
|
1251
1257
|
subscriptions: l25.array(
|
|
1252
1258
|
l25.ref((() => subscriptionResponse2))
|
|
1253
1259
|
),
|
|
1254
|
-
cursor: l25.optional(l25.string())
|
|
1260
|
+
cursor: l25.optional(l25.string({ maxLength: 512 }))
|
|
1255
1261
|
})
|
|
1256
1262
|
);
|
|
1257
1263
|
var $lxm19 = main25.nsid;
|
|
@@ -1301,8 +1307,8 @@ var main26 = l26.query(
|
|
|
1301
1307
|
l26.jsonPayload({
|
|
1302
1308
|
valid: l26.boolean(),
|
|
1303
1309
|
amount: l26.optional(l26.integer()),
|
|
1304
|
-
currency: l26.optional(l26.string()),
|
|
1305
|
-
reason: l26.optional(l26.string())
|
|
1310
|
+
currency: l26.optional(l26.string({ maxLength: 3 })),
|
|
1311
|
+
reason: l26.optional(l26.string({ maxLength: 1024 }))
|
|
1306
1312
|
})
|
|
1307
1313
|
);
|
|
1308
1314
|
var $lxm20 = main26.nsid;
|
|
@@ -1344,14 +1350,14 @@ var main27 = l27.query(
|
|
|
1344
1350
|
$nsid27,
|
|
1345
1351
|
l27.params({
|
|
1346
1352
|
subject: l27.string({ format: "did" }),
|
|
1347
|
-
cursor: l27.optional(l27.string()),
|
|
1353
|
+
cursor: l27.optional(l27.string({ maxLength: 512 })),
|
|
1348
1354
|
limit: l27.optional(
|
|
1349
1355
|
l27.withDefault(l27.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1350
1356
|
)
|
|
1351
1357
|
}),
|
|
1352
1358
|
l27.jsonPayload({
|
|
1353
1359
|
tips: l27.array(l27.ref((() => tipResponse))),
|
|
1354
|
-
cursor: l27.optional(l27.string())
|
|
1360
|
+
cursor: l27.optional(l27.string({ maxLength: 512 }))
|
|
1355
1361
|
})
|
|
1356
1362
|
);
|
|
1357
1363
|
var $lxm21 = main27.nsid;
|
|
@@ -1400,8 +1406,8 @@ var main28 = l28.query(
|
|
|
1400
1406
|
l28.jsonPayload({
|
|
1401
1407
|
valid: l28.boolean(),
|
|
1402
1408
|
amount: l28.optional(l28.integer()),
|
|
1403
|
-
currency: l28.optional(l28.string()),
|
|
1404
|
-
reason: l28.optional(l28.string())
|
|
1409
|
+
currency: l28.optional(l28.string({ maxLength: 3 })),
|
|
1410
|
+
reason: l28.optional(l28.string({ maxLength: 1024 }))
|
|
1405
1411
|
})
|
|
1406
1412
|
);
|
|
1407
1413
|
var $lxm22 = main28.nsid;
|
|
@@ -1541,6 +1547,7 @@ var create_default = {
|
|
|
1541
1547
|
properties: {
|
|
1542
1548
|
currency: {
|
|
1543
1549
|
type: "string",
|
|
1550
|
+
maxLength: 3,
|
|
1544
1551
|
description: "ISO 4217 currency code"
|
|
1545
1552
|
},
|
|
1546
1553
|
redirectUrl: {
|
|
@@ -1662,10 +1669,13 @@ var list_default = {
|
|
|
1662
1669
|
properties: {
|
|
1663
1670
|
status: {
|
|
1664
1671
|
type: "string",
|
|
1665
|
-
|
|
1672
|
+
maxLength: 64,
|
|
1673
|
+
enum: ["open", "completed", "expired", "abandoned"],
|
|
1674
|
+
description: "Filter by cart status"
|
|
1666
1675
|
},
|
|
1667
1676
|
cursor: {
|
|
1668
1677
|
type: "string",
|
|
1678
|
+
maxLength: 512,
|
|
1669
1679
|
description: "Pagination cursor"
|
|
1670
1680
|
},
|
|
1671
1681
|
limit: {
|
|
@@ -1692,6 +1702,7 @@ var list_default = {
|
|
|
1692
1702
|
},
|
|
1693
1703
|
cursor: {
|
|
1694
1704
|
type: "string",
|
|
1705
|
+
maxLength: 512,
|
|
1695
1706
|
description: "Pagination cursor for next page"
|
|
1696
1707
|
}
|
|
1697
1708
|
},
|
|
@@ -1914,6 +1925,7 @@ var cart_default = {
|
|
|
1914
1925
|
},
|
|
1915
1926
|
currency: {
|
|
1916
1927
|
type: "string",
|
|
1928
|
+
maxLength: 3,
|
|
1917
1929
|
description: "ISO 4217 currency code"
|
|
1918
1930
|
},
|
|
1919
1931
|
total: {
|
|
@@ -1922,7 +1934,9 @@ var cart_default = {
|
|
|
1922
1934
|
},
|
|
1923
1935
|
status: {
|
|
1924
1936
|
type: "string",
|
|
1925
|
-
|
|
1937
|
+
maxLength: 64,
|
|
1938
|
+
enum: ["open", "completed", "expired", "abandoned"],
|
|
1939
|
+
description: "Cart status"
|
|
1926
1940
|
},
|
|
1927
1941
|
createdAt: {
|
|
1928
1942
|
type: "string",
|
|
@@ -1948,6 +1962,7 @@ var cart_default = {
|
|
|
1948
1962
|
properties: {
|
|
1949
1963
|
type: {
|
|
1950
1964
|
type: "string",
|
|
1965
|
+
maxLength: 128,
|
|
1951
1966
|
description: "Item type: tip or subscription",
|
|
1952
1967
|
enum: ["com.atiproto.tip", "com.atiproto.subscription"]
|
|
1953
1968
|
},
|
|
@@ -1976,6 +1991,7 @@ var list_default2 = {
|
|
|
1976
1991
|
properties: {
|
|
1977
1992
|
cursor: {
|
|
1978
1993
|
type: "string",
|
|
1994
|
+
maxLength: 512,
|
|
1979
1995
|
description: "Pagination cursor"
|
|
1980
1996
|
},
|
|
1981
1997
|
limit: {
|
|
@@ -2003,6 +2019,7 @@ var list_default2 = {
|
|
|
2003
2019
|
},
|
|
2004
2020
|
cursor: {
|
|
2005
2021
|
type: "string",
|
|
2022
|
+
maxLength: 512,
|
|
2006
2023
|
description: "Pagination cursor for next page"
|
|
2007
2024
|
}
|
|
2008
2025
|
}
|
|
@@ -2082,10 +2099,23 @@ var create_default2 = {
|
|
|
2082
2099
|
},
|
|
2083
2100
|
currency: {
|
|
2084
2101
|
description: "ISO 4217 currency code",
|
|
2102
|
+
maxLength: 3,
|
|
2085
2103
|
type: "string"
|
|
2086
2104
|
},
|
|
2087
2105
|
interval: {
|
|
2088
|
-
description: "Billing interval
|
|
2106
|
+
description: "Billing interval",
|
|
2107
|
+
maxLength: 64,
|
|
2108
|
+
enum: ["monthly", "yearly"],
|
|
2109
|
+
type: "string"
|
|
2110
|
+
},
|
|
2111
|
+
cartUri: {
|
|
2112
|
+
description: "AT-URI of an existing cart to add this subscription to. If omitted, a new cart is created.",
|
|
2113
|
+
format: "at-uri",
|
|
2114
|
+
type: "string"
|
|
2115
|
+
},
|
|
2116
|
+
redirectUrl: {
|
|
2117
|
+
description: "URL to redirect to after checkout completes",
|
|
2118
|
+
format: "uri",
|
|
2089
2119
|
type: "string"
|
|
2090
2120
|
}
|
|
2091
2121
|
},
|
|
@@ -2123,13 +2153,7 @@ var create_default2 = {
|
|
|
2123
2153
|
type: "string"
|
|
2124
2154
|
}
|
|
2125
2155
|
},
|
|
2126
|
-
required: [
|
|
2127
|
-
"subscriptionUri",
|
|
2128
|
-
"subscription",
|
|
2129
|
-
"cartUri",
|
|
2130
|
-
"cart",
|
|
2131
|
-
"checkoutUrl"
|
|
2132
|
-
],
|
|
2156
|
+
required: ["subscriptionUri", "subscription"],
|
|
2133
2157
|
type: "object"
|
|
2134
2158
|
}
|
|
2135
2159
|
},
|
|
@@ -2202,6 +2226,7 @@ var list_default3 = {
|
|
|
2202
2226
|
properties: {
|
|
2203
2227
|
cursor: {
|
|
2204
2228
|
type: "string",
|
|
2229
|
+
maxLength: 512,
|
|
2205
2230
|
description: "Pagination cursor"
|
|
2206
2231
|
},
|
|
2207
2232
|
limit: {
|
|
@@ -2229,6 +2254,7 @@ var list_default3 = {
|
|
|
2229
2254
|
},
|
|
2230
2255
|
cursor: {
|
|
2231
2256
|
type: "string",
|
|
2257
|
+
maxLength: 512,
|
|
2232
2258
|
description: "Pagination cursor for next page"
|
|
2233
2259
|
}
|
|
2234
2260
|
}
|
|
@@ -2332,6 +2358,7 @@ var create_default3 = {
|
|
|
2332
2358
|
},
|
|
2333
2359
|
currency: {
|
|
2334
2360
|
type: "string",
|
|
2361
|
+
maxLength: 3,
|
|
2335
2362
|
description: "ISO 4217 currency code"
|
|
2336
2363
|
},
|
|
2337
2364
|
cartUri: {
|
|
@@ -2357,7 +2384,7 @@ var create_default3 = {
|
|
|
2357
2384
|
encoding: "application/json",
|
|
2358
2385
|
schema: {
|
|
2359
2386
|
type: "object",
|
|
2360
|
-
required: ["tipUri", "tip"
|
|
2387
|
+
required: ["tipUri", "tip"],
|
|
2361
2388
|
properties: {
|
|
2362
2389
|
tipUri: {
|
|
2363
2390
|
type: "string",
|
|
@@ -2453,6 +2480,7 @@ var list_default4 = {
|
|
|
2453
2480
|
properties: {
|
|
2454
2481
|
cursor: {
|
|
2455
2482
|
type: "string",
|
|
2483
|
+
maxLength: 512,
|
|
2456
2484
|
description: "Pagination cursor"
|
|
2457
2485
|
},
|
|
2458
2486
|
limit: {
|
|
@@ -2480,6 +2508,7 @@ var list_default4 = {
|
|
|
2480
2508
|
},
|
|
2481
2509
|
cursor: {
|
|
2482
2510
|
type: "string",
|
|
2511
|
+
maxLength: 512,
|
|
2483
2512
|
description: "Pagination cursor for next page"
|
|
2484
2513
|
}
|
|
2485
2514
|
}
|
|
@@ -2639,6 +2668,7 @@ var search_default = {
|
|
|
2639
2668
|
},
|
|
2640
2669
|
cursor: {
|
|
2641
2670
|
type: "string",
|
|
2671
|
+
maxLength: 512,
|
|
2642
2672
|
description: "Pagination cursor"
|
|
2643
2673
|
},
|
|
2644
2674
|
limit: {
|
|
@@ -2666,6 +2696,7 @@ var search_default = {
|
|
|
2666
2696
|
},
|
|
2667
2697
|
cursor: {
|
|
2668
2698
|
type: "string",
|
|
2699
|
+
maxLength: 512,
|
|
2669
2700
|
description: "Pagination cursor for next page"
|
|
2670
2701
|
}
|
|
2671
2702
|
}
|
|
@@ -2739,10 +2770,12 @@ var validate_default = {
|
|
|
2739
2770
|
},
|
|
2740
2771
|
currency: {
|
|
2741
2772
|
type: "string",
|
|
2773
|
+
maxLength: 3,
|
|
2742
2774
|
description: "Currency of the subscription"
|
|
2743
2775
|
},
|
|
2744
2776
|
reason: {
|
|
2745
2777
|
type: "string",
|
|
2778
|
+
maxLength: 1024,
|
|
2746
2779
|
description: "If invalid, reason for rejection"
|
|
2747
2780
|
}
|
|
2748
2781
|
}
|
|
@@ -2770,6 +2803,7 @@ var search_default2 = {
|
|
|
2770
2803
|
},
|
|
2771
2804
|
cursor: {
|
|
2772
2805
|
type: "string",
|
|
2806
|
+
maxLength: 512,
|
|
2773
2807
|
description: "Pagination cursor"
|
|
2774
2808
|
},
|
|
2775
2809
|
limit: {
|
|
@@ -2797,6 +2831,7 @@ var search_default2 = {
|
|
|
2797
2831
|
},
|
|
2798
2832
|
cursor: {
|
|
2799
2833
|
type: "string",
|
|
2834
|
+
maxLength: 512,
|
|
2800
2835
|
description: "Pagination cursor for next page"
|
|
2801
2836
|
}
|
|
2802
2837
|
}
|
|
@@ -2875,10 +2910,12 @@ var validate_default2 = {
|
|
|
2875
2910
|
},
|
|
2876
2911
|
currency: {
|
|
2877
2912
|
type: "string",
|
|
2913
|
+
maxLength: 3,
|
|
2878
2914
|
description: "Currency of the tips"
|
|
2879
2915
|
},
|
|
2880
2916
|
reason: {
|
|
2881
2917
|
type: "string",
|
|
2918
|
+
maxLength: 1024,
|
|
2882
2919
|
description: "If invalid, reason for rejection"
|
|
2883
2920
|
}
|
|
2884
2921
|
}
|
|
@@ -2911,7 +2948,7 @@ var authEnhanced_default = {
|
|
|
2911
2948
|
{
|
|
2912
2949
|
type: "permission",
|
|
2913
2950
|
resource: "rpc",
|
|
2914
|
-
|
|
2951
|
+
inheritAud: true,
|
|
2915
2952
|
lxm: [
|
|
2916
2953
|
"com.atiproto.account.cart.clone",
|
|
2917
2954
|
"com.atiproto.account.cart.create",
|
|
@@ -2950,7 +2987,7 @@ var authGeneral_default = {
|
|
|
2950
2987
|
main: {
|
|
2951
2988
|
type: "permission-set",
|
|
2952
2989
|
title: "General Access",
|
|
2953
|
-
detail: "Write access to cart, subscription, and tip records, plus RPC access to
|
|
2990
|
+
detail: "Write access to cart, subscription, and tip records, plus RPC access to payment, feed, and public profile lookup endpoints.",
|
|
2954
2991
|
permissions: [
|
|
2955
2992
|
{
|
|
2956
2993
|
type: "permission",
|
|
@@ -2964,7 +3001,7 @@ var authGeneral_default = {
|
|
|
2964
3001
|
{
|
|
2965
3002
|
type: "permission",
|
|
2966
3003
|
resource: "rpc",
|
|
2967
|
-
|
|
3004
|
+
inheritAud: true,
|
|
2968
3005
|
lxm: [
|
|
2969
3006
|
"com.atiproto.account.cart.clone",
|
|
2970
3007
|
"com.atiproto.account.cart.create",
|
|
@@ -3013,14 +3050,19 @@ var subscription_default = {
|
|
|
3013
3050
|
},
|
|
3014
3051
|
currency: {
|
|
3015
3052
|
description: "ISO 4217 currency code",
|
|
3053
|
+
maxLength: 3,
|
|
3016
3054
|
type: "string"
|
|
3017
3055
|
},
|
|
3018
3056
|
interval: {
|
|
3019
|
-
description: "Billing interval
|
|
3057
|
+
description: "Billing interval",
|
|
3058
|
+
maxLength: 64,
|
|
3059
|
+
enum: ["monthly", "yearly"],
|
|
3020
3060
|
type: "string"
|
|
3021
3061
|
},
|
|
3022
3062
|
status: {
|
|
3023
|
-
description: "Subscription status
|
|
3063
|
+
description: "Subscription status",
|
|
3064
|
+
maxLength: 64,
|
|
3065
|
+
enum: ["pending", "active", "past_due", "cancelled", "expired"],
|
|
3024
3066
|
type: "string"
|
|
3025
3067
|
},
|
|
3026
3068
|
billingStartDate: {
|
|
@@ -3087,10 +3129,12 @@ var tip_default = {
|
|
|
3087
3129
|
},
|
|
3088
3130
|
currency: {
|
|
3089
3131
|
description: "ISO 4217 currency code",
|
|
3132
|
+
maxLength: 3,
|
|
3090
3133
|
type: "string"
|
|
3091
3134
|
},
|
|
3092
3135
|
status: {
|
|
3093
|
-
description: "Tip status
|
|
3136
|
+
description: "Tip status",
|
|
3137
|
+
maxLength: 64,
|
|
3094
3138
|
type: "string",
|
|
3095
3139
|
enum: ["pending", "authorized", "completed", "failed", "refunded"]
|
|
3096
3140
|
},
|