@atiproto/lexicons 0.5.2 → 0.6.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 +27 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -76
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +2 -14
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +2 -13
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +2 -14
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -905,7 +905,7 @@ var main18 = l18.permissionSet(
|
|
|
905
905
|
]
|
|
906
906
|
}),
|
|
907
907
|
l18.permission("rpc", {
|
|
908
|
-
|
|
908
|
+
aud: "*",
|
|
909
909
|
lxm: [
|
|
910
910
|
"com.atiproto.account.cart.clone",
|
|
911
911
|
"com.atiproto.account.cart.create",
|
|
@@ -971,7 +971,7 @@ var main19 = l19.permissionSet(
|
|
|
971
971
|
]
|
|
972
972
|
}),
|
|
973
973
|
l19.permission("rpc", {
|
|
974
|
-
|
|
974
|
+
aud: "*",
|
|
975
975
|
lxm: [
|
|
976
976
|
"com.atiproto.account.cart.clone",
|
|
977
977
|
"com.atiproto.account.cart.create",
|
|
@@ -1216,9 +1216,7 @@ var main23 = l23.query(
|
|
|
1216
1216
|
subject: l23.optional(l23.string({ format: "did" }))
|
|
1217
1217
|
}),
|
|
1218
1218
|
l23.jsonPayload({
|
|
1219
|
-
|
|
1220
|
-
cid: l23.string({ format: "cid" }),
|
|
1221
|
-
record: l23.ref(
|
|
1219
|
+
subscription: l23.ref(
|
|
1222
1220
|
(() => view3)
|
|
1223
1221
|
)
|
|
1224
1222
|
})
|
|
@@ -1235,8 +1233,7 @@ __export(list_exports5, {
|
|
|
1235
1233
|
$nsid: () => $nsid24,
|
|
1236
1234
|
$output: () => $output18,
|
|
1237
1235
|
$params: () => $params18,
|
|
1238
|
-
main: () => main24
|
|
1239
|
-
subscriptionResponse: () => subscriptionResponse
|
|
1236
|
+
main: () => main24
|
|
1240
1237
|
});
|
|
1241
1238
|
|
|
1242
1239
|
// src/lexicons/com/atiproto/feed/subscription/list.defs.ts
|
|
@@ -1246,8 +1243,7 @@ __export(list_defs_exports5, {
|
|
|
1246
1243
|
$nsid: () => $nsid24,
|
|
1247
1244
|
$output: () => $output18,
|
|
1248
1245
|
$params: () => $params18,
|
|
1249
|
-
main: () => main24
|
|
1250
|
-
subscriptionResponse: () => subscriptionResponse
|
|
1246
|
+
main: () => main24
|
|
1251
1247
|
});
|
|
1252
1248
|
import { l as l24 } from "@atproto/lex";
|
|
1253
1249
|
var $nsid24 = "com.atiproto.feed.subscription.list";
|
|
@@ -1256,7 +1252,9 @@ var main24 = l24.query(
|
|
|
1256
1252
|
l24.params(),
|
|
1257
1253
|
l24.jsonPayload({
|
|
1258
1254
|
subscriptions: l24.array(
|
|
1259
|
-
l24.ref(
|
|
1255
|
+
l24.ref(
|
|
1256
|
+
(() => view3)
|
|
1257
|
+
)
|
|
1260
1258
|
),
|
|
1261
1259
|
cursor: l24.optional(l24.string({ maxLength: 512 }))
|
|
1262
1260
|
})
|
|
@@ -1264,16 +1262,6 @@ var main24 = l24.query(
|
|
|
1264
1262
|
var $lxm18 = main24.nsid;
|
|
1265
1263
|
var $params18 = main24.parameters;
|
|
1266
1264
|
var $output18 = main24.output;
|
|
1267
|
-
var subscriptionResponse = l24.typedObject(
|
|
1268
|
-
$nsid24,
|
|
1269
|
-
"subscriptionResponse",
|
|
1270
|
-
l24.object({
|
|
1271
|
-
uri: l24.string({ format: "at-uri" }),
|
|
1272
|
-
record: l24.ref(
|
|
1273
|
-
(() => view3)
|
|
1274
|
-
)
|
|
1275
|
-
})
|
|
1276
|
-
);
|
|
1277
1265
|
|
|
1278
1266
|
// src/lexicons/com/atiproto/feed/subscription/put.ts
|
|
1279
1267
|
var put_exports3 = {};
|
|
@@ -1450,9 +1438,7 @@ var main28 = l28.query(
|
|
|
1450
1438
|
recordUri: l28.optional(l28.string({ format: "at-uri" }))
|
|
1451
1439
|
}),
|
|
1452
1440
|
l28.jsonPayload({
|
|
1453
|
-
|
|
1454
|
-
cid: l28.string({ format: "cid" }),
|
|
1455
|
-
value: l28.ref((() => view2))
|
|
1441
|
+
tip: l28.ref((() => view2))
|
|
1456
1442
|
})
|
|
1457
1443
|
);
|
|
1458
1444
|
var $lxm22 = main28.nsid;
|
|
@@ -1485,7 +1471,7 @@ var main29 = l29.query(
|
|
|
1485
1471
|
$nsid29,
|
|
1486
1472
|
l29.params(),
|
|
1487
1473
|
l29.jsonPayload({
|
|
1488
|
-
|
|
1474
|
+
tips: l29.array(l29.ref((() => view2))),
|
|
1489
1475
|
cursor: l29.optional(l29.string({ maxLength: 512 }))
|
|
1490
1476
|
})
|
|
1491
1477
|
);
|
|
@@ -2889,25 +2875,15 @@ var get_default5 = {
|
|
|
2889
2875
|
output: {
|
|
2890
2876
|
encoding: "application/json",
|
|
2891
2877
|
schema: {
|
|
2878
|
+
type: "object",
|
|
2879
|
+
required: ["subscription"],
|
|
2892
2880
|
properties: {
|
|
2893
|
-
|
|
2894
|
-
description: "Subscription record URI",
|
|
2895
|
-
format: "at-uri",
|
|
2896
|
-
type: "string"
|
|
2897
|
-
},
|
|
2898
|
-
cid: {
|
|
2899
|
-
description: "Subscription record CID",
|
|
2900
|
-
format: "cid",
|
|
2901
|
-
type: "string"
|
|
2902
|
-
},
|
|
2903
|
-
record: {
|
|
2904
|
-
description: "The subscription record data",
|
|
2881
|
+
subscription: {
|
|
2905
2882
|
type: "ref",
|
|
2906
|
-
ref: "com.atiproto.subscription#view"
|
|
2883
|
+
ref: "com.atiproto.subscription#view",
|
|
2884
|
+
description: "The subscription record data"
|
|
2907
2885
|
}
|
|
2908
|
-
}
|
|
2909
|
-
required: ["uri", "cid", "record"],
|
|
2910
|
-
type: "object"
|
|
2886
|
+
}
|
|
2911
2887
|
}
|
|
2912
2888
|
},
|
|
2913
2889
|
type: "query"
|
|
@@ -2955,7 +2931,7 @@ var list_default5 = {
|
|
|
2955
2931
|
type: "array",
|
|
2956
2932
|
items: {
|
|
2957
2933
|
type: "ref",
|
|
2958
|
-
ref: "#
|
|
2934
|
+
ref: "com.atiproto.subscription#view"
|
|
2959
2935
|
}
|
|
2960
2936
|
},
|
|
2961
2937
|
cursor: {
|
|
@@ -2966,21 +2942,6 @@ var list_default5 = {
|
|
|
2966
2942
|
}
|
|
2967
2943
|
}
|
|
2968
2944
|
}
|
|
2969
|
-
},
|
|
2970
|
-
subscriptionResponse: {
|
|
2971
|
-
type: "object",
|
|
2972
|
-
required: ["uri", "record"],
|
|
2973
|
-
properties: {
|
|
2974
|
-
uri: {
|
|
2975
|
-
type: "string",
|
|
2976
|
-
format: "at-uri",
|
|
2977
|
-
description: "AT-URI of the subscription record"
|
|
2978
|
-
},
|
|
2979
|
-
record: {
|
|
2980
|
-
type: "ref",
|
|
2981
|
-
ref: "com.atiproto.subscription#view"
|
|
2982
|
-
}
|
|
2983
|
-
}
|
|
2984
2945
|
}
|
|
2985
2946
|
}
|
|
2986
2947
|
};
|
|
@@ -3214,25 +3175,15 @@ var get_default6 = {
|
|
|
3214
3175
|
output: {
|
|
3215
3176
|
encoding: "application/json",
|
|
3216
3177
|
schema: {
|
|
3178
|
+
type: "object",
|
|
3179
|
+
required: ["tip"],
|
|
3217
3180
|
properties: {
|
|
3218
|
-
|
|
3219
|
-
description: "Tip record URI",
|
|
3220
|
-
format: "at-uri",
|
|
3221
|
-
type: "string"
|
|
3222
|
-
},
|
|
3223
|
-
cid: {
|
|
3224
|
-
description: "Tip record CID",
|
|
3225
|
-
format: "cid",
|
|
3226
|
-
type: "string"
|
|
3227
|
-
},
|
|
3228
|
-
value: {
|
|
3229
|
-
description: "The tip record data",
|
|
3181
|
+
tip: {
|
|
3230
3182
|
type: "ref",
|
|
3231
|
-
ref: "com.atiproto.tip#view"
|
|
3183
|
+
ref: "com.atiproto.tip#view",
|
|
3184
|
+
description: "The tip record data"
|
|
3232
3185
|
}
|
|
3233
|
-
}
|
|
3234
|
-
required: ["uri", "cid", "value"],
|
|
3235
|
-
type: "object"
|
|
3186
|
+
}
|
|
3236
3187
|
}
|
|
3237
3188
|
},
|
|
3238
3189
|
type: "query"
|
|
@@ -3284,9 +3235,9 @@ var list_default6 = {
|
|
|
3284
3235
|
encoding: "application/json",
|
|
3285
3236
|
schema: {
|
|
3286
3237
|
type: "object",
|
|
3287
|
-
required: ["
|
|
3238
|
+
required: ["tips"],
|
|
3288
3239
|
properties: {
|
|
3289
|
-
|
|
3240
|
+
tips: {
|
|
3290
3241
|
type: "array",
|
|
3291
3242
|
items: {
|
|
3292
3243
|
type: "ref",
|
|
@@ -3670,7 +3621,7 @@ var authEnhanced_default = {
|
|
|
3670
3621
|
{
|
|
3671
3622
|
type: "permission",
|
|
3672
3623
|
resource: "rpc",
|
|
3673
|
-
|
|
3624
|
+
aud: "*",
|
|
3674
3625
|
lxm: [
|
|
3675
3626
|
"com.atiproto.account.cart.clone",
|
|
3676
3627
|
"com.atiproto.account.cart.create",
|
|
@@ -3729,7 +3680,7 @@ var authGeneral_default = {
|
|
|
3729
3680
|
{
|
|
3730
3681
|
type: "permission",
|
|
3731
3682
|
resource: "rpc",
|
|
3732
|
-
|
|
3683
|
+
aud: "*",
|
|
3733
3684
|
lxm: [
|
|
3734
3685
|
"com.atiproto.account.cart.clone",
|
|
3735
3686
|
"com.atiproto.account.cart.create",
|