@atproto/api 0.0.4 → 0.0.6
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/client/lexicons.d.ts +0 -3
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +5 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/ref.d.ts +7 -0
- package/dist/client/types/app/bsky/actor/search.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +3 -0
- package/dist/client/types/app/bsky/embed/external.d.ts +9 -0
- package/dist/client/types/app/bsky/embed/images.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +5 -0
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +3 -0
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +3 -0
- package/dist/client/types/app/bsky/feed/post.d.ts +13 -1
- package/dist/client/types/app/bsky/feed/repost.d.ts +3 -0
- package/dist/client/types/app/bsky/feed/trend.d.ts +3 -0
- package/dist/client/types/app/bsky/feed/vote.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/assertion.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/follow.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +5 -0
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +3 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +3 -0
- package/dist/client/types/app/bsky/system/declRef.d.ts +3 -0
- package/dist/client/types/app/bsky/system/declaration.d.ts +3 -0
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +7 -0
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +3 -0
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +3 -0
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +3 -0
- package/dist/client/util.d.ts +2 -0
- package/dist/index.js +571 -23
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/lexicons.ts +0 -3
- package/src/client/types/app/bsky/actor/createScene.ts +3 -0
- package/src/client/types/app/bsky/actor/getProfile.ts +15 -0
- package/src/client/types/app/bsky/actor/getSuggestions.ts +27 -0
- package/src/client/types/app/bsky/actor/profile.ts +17 -0
- package/src/client/types/app/bsky/actor/ref.ts +37 -0
- package/src/client/types/app/bsky/actor/search.ts +13 -0
- package/src/client/types/app/bsky/actor/searchTypeahead.ts +15 -0
- package/src/client/types/app/bsky/actor/updateProfile.ts +3 -0
- package/src/client/types/app/bsky/embed/external.ts +53 -0
- package/src/client/types/app/bsky/embed/images.ts +51 -0
- package/src/client/types/app/bsky/feed/feedViewPost.ts +52 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +3 -0
- package/src/client/types/app/bsky/feed/getPostThread.ts +27 -0
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +15 -0
- package/src/client/types/app/bsky/feed/getTimeline.ts +3 -0
- package/src/client/types/app/bsky/feed/getVotes.ts +13 -0
- package/src/client/types/app/bsky/feed/post.ts +69 -1
- package/src/client/types/app/bsky/feed/repost.ts +16 -0
- package/src/client/types/app/bsky/feed/setVote.ts +3 -0
- package/src/client/types/app/bsky/feed/trend.ts +16 -0
- package/src/client/types/app/bsky/feed/vote.ts +15 -0
- package/src/client/types/app/bsky/graph/assertCreator.ts +4 -0
- package/src/client/types/app/bsky/graph/assertMember.ts +4 -0
- package/src/client/types/app/bsky/graph/assertion.ts +16 -0
- package/src/client/types/app/bsky/graph/confirmation.ts +16 -0
- package/src/client/types/app/bsky/graph/follow.ts +16 -0
- package/src/client/types/app/bsky/graph/getAssertions.ts +27 -0
- package/src/client/types/app/bsky/graph/getFollowers.ts +15 -0
- package/src/client/types/app/bsky/graph/getFollows.ts +15 -0
- package/src/client/types/app/bsky/graph/getMembers.ts +15 -0
- package/src/client/types/app/bsky/graph/getMemberships.ts +15 -0
- package/src/client/types/app/bsky/graph/getMutes.ts +15 -0
- package/src/client/types/app/bsky/graph/mute.ts +3 -0
- package/src/client/types/app/bsky/graph/unmute.ts +3 -0
- package/src/client/types/app/bsky/notification/getCount.ts +3 -0
- package/src/client/types/app/bsky/notification/list.ts +15 -0
- package/src/client/types/app/bsky/notification/updateSeen.ts +3 -0
- package/src/client/types/app/bsky/system/actorScene.ts +4 -0
- package/src/client/types/app/bsky/system/actorUser.ts +4 -0
- package/src/client/types/app/bsky/system/declRef.ts +17 -0
- package/src/client/types/app/bsky/system/declaration.ts +17 -0
- package/src/client/types/com/atproto/account/create.ts +3 -0
- package/src/client/types/com/atproto/account/createInviteCode.ts +3 -0
- package/src/client/types/com/atproto/account/delete.ts +3 -0
- package/src/client/types/com/atproto/account/get.ts +3 -0
- package/src/client/types/com/atproto/account/requestPasswordReset.ts +3 -0
- package/src/client/types/com/atproto/account/resetPassword.ts +3 -0
- package/src/client/types/com/atproto/blob/upload.ts +3 -0
- package/src/client/types/com/atproto/handle/resolve.ts +3 -0
- package/src/client/types/com/atproto/repo/batchWrite.ts +39 -0
- package/src/client/types/com/atproto/repo/createRecord.ts +3 -0
- package/src/client/types/com/atproto/repo/deleteRecord.ts +3 -0
- package/src/client/types/com/atproto/repo/describe.ts +3 -0
- package/src/client/types/com/atproto/repo/getRecord.ts +3 -0
- package/src/client/types/com/atproto/repo/listRecords.ts +15 -0
- package/src/client/types/com/atproto/repo/putRecord.ts +3 -0
- package/src/client/types/com/atproto/repo/strongRef.ts +17 -0
- package/src/client/types/com/atproto/server/getAccountsConfig.ts +15 -0
- package/src/client/types/com/atproto/session/create.ts +3 -0
- package/src/client/types/com/atproto/session/delete.ts +3 -0
- package/src/client/types/com/atproto/session/get.ts +3 -0
- package/src/client/types/com/atproto/session/refresh.ts +3 -0
- package/src/client/types/com/atproto/sync/getRepo.ts +3 -0
- package/src/client/types/com/atproto/sync/getRoot.ts +3 -0
- package/src/client/types/com/atproto/sync/updateRepo.ts +3 -0
- package/src/client/util.ts +13 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod2) => function __require() {
|
|
9
|
+
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
10
|
+
};
|
|
8
11
|
var __export = (target, all) => {
|
|
9
12
|
for (var name in all)
|
|
10
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -23,6 +26,55 @@ var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__
|
|
|
23
26
|
));
|
|
24
27
|
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
|
|
25
28
|
|
|
29
|
+
// ../../node_modules/iso-datestring-validator/dist/index.js
|
|
30
|
+
var require_dist = __commonJS({
|
|
31
|
+
"../../node_modules/iso-datestring-validator/dist/index.js"(exports) {
|
|
32
|
+
(() => {
|
|
33
|
+
"use strict";
|
|
34
|
+
var e = { d: (t2, r2) => {
|
|
35
|
+
for (var n2 in r2)
|
|
36
|
+
e.o(r2, n2) && !e.o(t2, n2) && Object.defineProperty(t2, n2, { enumerable: true, get: r2[n2] });
|
|
37
|
+
}, o: (e2, t2) => Object.prototype.hasOwnProperty.call(e2, t2), r: (e2) => {
|
|
38
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
39
|
+
} }, t = {};
|
|
40
|
+
function r(e2, t2) {
|
|
41
|
+
return void 0 === t2 && (t2 = "-"), new RegExp("^(?!0{4}" + t2 + "0{2}" + t2 + "0{2})((?=[0-9]{4}" + t2 + "(((0[^2])|1[0-2])|02(?=" + t2 + "(([0-1][0-9])|2[0-8])))" + t2 + "[0-9]{2})|(?=((([13579][26])|([2468][048])|(0[48]))0{2})|([0-9]{2}((((0|[2468])[48])|[2468][048])|([13579][26])))" + t2 + "02" + t2 + "29))([0-9]{4})" + t2 + "(?!((0[469])|11)" + t2 + "31)((0[1,3-9]|1[0-2])|(02(?!" + t2 + "3)))" + t2 + "(0[1-9]|[1-2][0-9]|3[0-1])$").test(e2);
|
|
42
|
+
}
|
|
43
|
+
function n(e2) {
|
|
44
|
+
var t2 = /\D/.exec(e2);
|
|
45
|
+
return t2 ? t2[0] : "";
|
|
46
|
+
}
|
|
47
|
+
function i(e2, t2, r2) {
|
|
48
|
+
void 0 === t2 && (t2 = ":"), void 0 === r2 && (r2 = false);
|
|
49
|
+
var i2 = new RegExp("^([0-1]|2(?=([0-3])|4" + t2 + "00))[0-9]" + t2 + "[0-5][0-9](" + t2 + "([0-5]|6(?=0))[0-9])?(.[0-9]{1,9})?$");
|
|
50
|
+
if (!r2 || !/[Z+\-]/.test(e2))
|
|
51
|
+
return i2.test(e2);
|
|
52
|
+
if (/Z$/.test(e2))
|
|
53
|
+
return i2.test(e2.replace("Z", ""));
|
|
54
|
+
var o2 = e2.includes("+"), a2 = e2.split(/[+-]/), u2 = a2[0], d2 = a2[1];
|
|
55
|
+
return i2.test(u2) && function(e3, t3, r3) {
|
|
56
|
+
return void 0 === r3 && (r3 = ":"), new RegExp(t3 ? "^(0(?!(2" + r3 + "4)|0" + r3 + "3)|1(?=([0-1]|2(?=" + r3 + "[04])|[34](?=" + r3 + "0))))([03469](?=" + r3 + "[03])|[17](?=" + r3 + "0)|2(?=" + r3 + "[04])|5(?=" + r3 + "[034])|8(?=" + r3 + "[04]))" + r3 + "([03](?=0)|4(?=5))[05]$" : "^(0(?=[^0])|1(?=[0-2]))([39](?=" + r3 + "[03])|[0-24-8](?=" + r3 + "00))" + r3 + "[03]0$").test(e3);
|
|
57
|
+
}(d2, o2, n(d2));
|
|
58
|
+
}
|
|
59
|
+
function o(e2) {
|
|
60
|
+
var t2 = e2.split("T"), o2 = t2[0], a2 = t2[1], u2 = r(o2, n(o2));
|
|
61
|
+
if (!a2)
|
|
62
|
+
return false;
|
|
63
|
+
var d2, s = (d2 = a2.match(/([^Z+\-\d])(?=\d+\1)/), Array.isArray(d2) ? d2[0] : "");
|
|
64
|
+
return u2 && i(a2, s, true);
|
|
65
|
+
}
|
|
66
|
+
function a(e2, t2) {
|
|
67
|
+
return void 0 === t2 && (t2 = "-"), new RegExp("^[0-9]{4}" + t2 + "(0(?=[^0])|1(?=[0-2]))[0-9]$").test(e2);
|
|
68
|
+
}
|
|
69
|
+
e.r(t), e.d(t, { isValidDate: () => r, isValidISODateString: () => o, isValidTime: () => i, isValidYearMonth: () => a });
|
|
70
|
+
var u = exports;
|
|
71
|
+
for (var d in t)
|
|
72
|
+
u[d] = t[d];
|
|
73
|
+
t.__esModule && Object.defineProperty(u, "__esModule", { value: true });
|
|
74
|
+
})();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
26
78
|
// src/index.ts
|
|
27
79
|
var src_exports = {};
|
|
28
80
|
__export(src_exports, {
|
|
@@ -3122,6 +3174,18 @@ var XRPCError = class extends Error {
|
|
|
3122
3174
|
}
|
|
3123
3175
|
}
|
|
3124
3176
|
};
|
|
3177
|
+
var XRPCInvalidResponseError = class extends XRPCError {
|
|
3178
|
+
constructor(lexiconNsid, validationError, responseBody) {
|
|
3179
|
+
super(
|
|
3180
|
+
2 /* InvalidResponse */,
|
|
3181
|
+
ResponseTypeStrings[2 /* InvalidResponse */],
|
|
3182
|
+
`The server gave an invalid response and may be out of date.`
|
|
3183
|
+
);
|
|
3184
|
+
this.lexiconNsid = lexiconNsid;
|
|
3185
|
+
this.validationError = validationError;
|
|
3186
|
+
this.responseBody = responseBody;
|
|
3187
|
+
}
|
|
3188
|
+
};
|
|
3125
3189
|
|
|
3126
3190
|
// ../nsid/src/index.ts
|
|
3127
3191
|
var SEGMENT_RE = /^[a-zA-Z]([a-zA-Z0-9-])*$/;
|
|
@@ -3355,7 +3419,7 @@ var lexiconDoc = mod.object({
|
|
|
3355
3419
|
}
|
|
3356
3420
|
});
|
|
3357
3421
|
function isObj(obj) {
|
|
3358
|
-
return
|
|
3422
|
+
return obj !== null && typeof obj === "object";
|
|
3359
3423
|
}
|
|
3360
3424
|
function hasProp(data, prop) {
|
|
3361
3425
|
return prop in data;
|
|
@@ -3381,6 +3445,7 @@ var LexiconDefNotFoundError = class extends Error {
|
|
|
3381
3445
|
};
|
|
3382
3446
|
|
|
3383
3447
|
// ../lexicon/src/validators/primitives.ts
|
|
3448
|
+
var import_iso_datestring_validator = __toESM(require_dist());
|
|
3384
3449
|
function validate(lexicons2, path, def, value) {
|
|
3385
3450
|
switch (def.type) {
|
|
3386
3451
|
case "boolean":
|
|
@@ -3568,8 +3633,7 @@ function datetime(lexicons2, path, def, value) {
|
|
|
3568
3633
|
}
|
|
3569
3634
|
{
|
|
3570
3635
|
try {
|
|
3571
|
-
|
|
3572
|
-
if (value !== date.toISOString()) {
|
|
3636
|
+
if (typeof value !== "string" || !(0, import_iso_datestring_validator.isValidISODateString)(value)) {
|
|
3573
3637
|
throw new ValidationError(
|
|
3574
3638
|
`${path} must be an iso8601 formatted datetime`
|
|
3575
3639
|
);
|
|
@@ -3932,6 +3996,20 @@ var Lexicons = class {
|
|
|
3932
3996
|
}
|
|
3933
3997
|
return def;
|
|
3934
3998
|
}
|
|
3999
|
+
validate(lexUri, value) {
|
|
4000
|
+
lexUri = toLexUri(lexUri);
|
|
4001
|
+
const def = this.getDefOrThrow(lexUri, ["record", "object"]);
|
|
4002
|
+
if (!isObj(value)) {
|
|
4003
|
+
throw new ValidationError(`Value must be an object`);
|
|
4004
|
+
}
|
|
4005
|
+
if (def.type === "record") {
|
|
4006
|
+
return object(this, "Record", def.record, value);
|
|
4007
|
+
} else if (def.type === "object") {
|
|
4008
|
+
return object(this, "Object", def, value);
|
|
4009
|
+
} else {
|
|
4010
|
+
throw new InvalidLexiconError("Definition must be a record or object");
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
3935
4013
|
assertValidRecord(lexUri, value) {
|
|
3936
4014
|
lexUri = toLexUri(lexUri);
|
|
3937
4015
|
const def = this.getDefOrThrow(lexUri, ["record"]);
|
|
@@ -4169,6 +4247,15 @@ var ServiceClient = class {
|
|
|
4169
4247
|
);
|
|
4170
4248
|
const resCode = httpResponseCodeToEnum(res.status);
|
|
4171
4249
|
if (resCode === 200 /* Success */) {
|
|
4250
|
+
try {
|
|
4251
|
+
this.baseClient.lex.assertValidXrpcOutput(methodNsid, res.body);
|
|
4252
|
+
} catch (e) {
|
|
4253
|
+
if (e instanceof ValidationError) {
|
|
4254
|
+
throw new XRPCInvalidResponseError(methodNsid, e, res.body);
|
|
4255
|
+
} else {
|
|
4256
|
+
throw e;
|
|
4257
|
+
}
|
|
4258
|
+
}
|
|
4172
4259
|
return new XRPCResponse(res.body, res.headers);
|
|
4173
4260
|
} else {
|
|
4174
4261
|
if (res.body && isErrorResponseBody(res.body)) {
|
|
@@ -6332,9 +6419,6 @@ var schemaDict = {
|
|
|
6332
6419
|
},
|
|
6333
6420
|
downvote: {
|
|
6334
6421
|
type: "string"
|
|
6335
|
-
},
|
|
6336
|
-
muted: {
|
|
6337
|
-
type: "boolean"
|
|
6338
6422
|
}
|
|
6339
6423
|
}
|
|
6340
6424
|
}
|
|
@@ -7430,13 +7514,47 @@ function toKnownErr8(e) {
|
|
|
7430
7514
|
// src/client/types/com/atproto/repo/batchWrite.ts
|
|
7431
7515
|
var batchWrite_exports = {};
|
|
7432
7516
|
__export(batchWrite_exports, {
|
|
7433
|
-
|
|
7517
|
+
isCreate: () => isCreate,
|
|
7518
|
+
isDelete: () => isDelete,
|
|
7519
|
+
isUpdate: () => isUpdate,
|
|
7520
|
+
toKnownErr: () => toKnownErr9,
|
|
7521
|
+
validateCreate: () => validateCreate,
|
|
7522
|
+
validateDelete: () => validateDelete,
|
|
7523
|
+
validateUpdate: () => validateUpdate
|
|
7434
7524
|
});
|
|
7525
|
+
|
|
7526
|
+
// src/client/util.ts
|
|
7527
|
+
function isObj2(v) {
|
|
7528
|
+
return typeof v === "object" && v !== null;
|
|
7529
|
+
}
|
|
7530
|
+
function hasProp2(data, prop) {
|
|
7531
|
+
return prop in data;
|
|
7532
|
+
}
|
|
7533
|
+
|
|
7534
|
+
// src/client/types/com/atproto/repo/batchWrite.ts
|
|
7435
7535
|
function toKnownErr9(e) {
|
|
7436
7536
|
if (e instanceof XRPCError) {
|
|
7437
7537
|
}
|
|
7438
7538
|
return e;
|
|
7439
7539
|
}
|
|
7540
|
+
function isCreate(v) {
|
|
7541
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.repo.batchWrite#create";
|
|
7542
|
+
}
|
|
7543
|
+
function validateCreate(v) {
|
|
7544
|
+
return lexicons.validate("com.atproto.repo.batchWrite#create", v);
|
|
7545
|
+
}
|
|
7546
|
+
function isUpdate(v) {
|
|
7547
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.repo.batchWrite#update";
|
|
7548
|
+
}
|
|
7549
|
+
function validateUpdate(v) {
|
|
7550
|
+
return lexicons.validate("com.atproto.repo.batchWrite#update", v);
|
|
7551
|
+
}
|
|
7552
|
+
function isDelete(v) {
|
|
7553
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.repo.batchWrite#delete";
|
|
7554
|
+
}
|
|
7555
|
+
function validateDelete(v) {
|
|
7556
|
+
return lexicons.validate("com.atproto.repo.batchWrite#delete", v);
|
|
7557
|
+
}
|
|
7440
7558
|
|
|
7441
7559
|
// src/client/types/com/atproto/repo/createRecord.ts
|
|
7442
7560
|
var createRecord_exports = {};
|
|
@@ -7485,13 +7603,21 @@ function toKnownErr13(e) {
|
|
|
7485
7603
|
// src/client/types/com/atproto/repo/listRecords.ts
|
|
7486
7604
|
var listRecords_exports = {};
|
|
7487
7605
|
__export(listRecords_exports, {
|
|
7488
|
-
|
|
7606
|
+
isRecord: () => isRecord,
|
|
7607
|
+
toKnownErr: () => toKnownErr14,
|
|
7608
|
+
validateRecord: () => validateRecord
|
|
7489
7609
|
});
|
|
7490
7610
|
function toKnownErr14(e) {
|
|
7491
7611
|
if (e instanceof XRPCError) {
|
|
7492
7612
|
}
|
|
7493
7613
|
return e;
|
|
7494
7614
|
}
|
|
7615
|
+
function isRecord(v) {
|
|
7616
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.repo.listRecords#record";
|
|
7617
|
+
}
|
|
7618
|
+
function validateRecord(v) {
|
|
7619
|
+
return lexicons.validate("com.atproto.repo.listRecords#record", v);
|
|
7620
|
+
}
|
|
7495
7621
|
|
|
7496
7622
|
// src/client/types/com/atproto/repo/putRecord.ts
|
|
7497
7623
|
var putRecord_exports = {};
|
|
@@ -7507,13 +7633,21 @@ function toKnownErr15(e) {
|
|
|
7507
7633
|
// src/client/types/com/atproto/server/getAccountsConfig.ts
|
|
7508
7634
|
var getAccountsConfig_exports = {};
|
|
7509
7635
|
__export(getAccountsConfig_exports, {
|
|
7510
|
-
|
|
7636
|
+
isLinks: () => isLinks,
|
|
7637
|
+
toKnownErr: () => toKnownErr16,
|
|
7638
|
+
validateLinks: () => validateLinks
|
|
7511
7639
|
});
|
|
7512
7640
|
function toKnownErr16(e) {
|
|
7513
7641
|
if (e instanceof XRPCError) {
|
|
7514
7642
|
}
|
|
7515
7643
|
return e;
|
|
7516
7644
|
}
|
|
7645
|
+
function isLinks(v) {
|
|
7646
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.server.getAccountsConfig#links";
|
|
7647
|
+
}
|
|
7648
|
+
function validateLinks(v) {
|
|
7649
|
+
return lexicons.validate("com.atproto.server.getAccountsConfig#links", v);
|
|
7650
|
+
}
|
|
7517
7651
|
|
|
7518
7652
|
// src/client/types/com/atproto/session/create.ts
|
|
7519
7653
|
var create_exports2 = {};
|
|
@@ -7622,46 +7756,86 @@ function toKnownErr24(e) {
|
|
|
7622
7756
|
// src/client/types/app/bsky/actor/getProfile.ts
|
|
7623
7757
|
var getProfile_exports = {};
|
|
7624
7758
|
__export(getProfile_exports, {
|
|
7625
|
-
|
|
7759
|
+
isMyState: () => isMyState,
|
|
7760
|
+
toKnownErr: () => toKnownErr25,
|
|
7761
|
+
validateMyState: () => validateMyState
|
|
7626
7762
|
});
|
|
7627
7763
|
function toKnownErr25(e) {
|
|
7628
7764
|
if (e instanceof XRPCError) {
|
|
7629
7765
|
}
|
|
7630
7766
|
return e;
|
|
7631
7767
|
}
|
|
7768
|
+
function isMyState(v) {
|
|
7769
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.getProfile#myState";
|
|
7770
|
+
}
|
|
7771
|
+
function validateMyState(v) {
|
|
7772
|
+
return lexicons.validate("app.bsky.actor.getProfile#myState", v);
|
|
7773
|
+
}
|
|
7632
7774
|
|
|
7633
7775
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
7634
7776
|
var getSuggestions_exports = {};
|
|
7635
7777
|
__export(getSuggestions_exports, {
|
|
7636
|
-
|
|
7778
|
+
isActor: () => isActor,
|
|
7779
|
+
isMyState: () => isMyState2,
|
|
7780
|
+
toKnownErr: () => toKnownErr26,
|
|
7781
|
+
validateActor: () => validateActor,
|
|
7782
|
+
validateMyState: () => validateMyState2
|
|
7637
7783
|
});
|
|
7638
7784
|
function toKnownErr26(e) {
|
|
7639
7785
|
if (e instanceof XRPCError) {
|
|
7640
7786
|
}
|
|
7641
7787
|
return e;
|
|
7642
7788
|
}
|
|
7789
|
+
function isActor(v) {
|
|
7790
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.getSuggestions#actor";
|
|
7791
|
+
}
|
|
7792
|
+
function validateActor(v) {
|
|
7793
|
+
return lexicons.validate("app.bsky.actor.getSuggestions#actor", v);
|
|
7794
|
+
}
|
|
7795
|
+
function isMyState2(v) {
|
|
7796
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.getSuggestions#myState";
|
|
7797
|
+
}
|
|
7798
|
+
function validateMyState2(v) {
|
|
7799
|
+
return lexicons.validate("app.bsky.actor.getSuggestions#myState", v);
|
|
7800
|
+
}
|
|
7643
7801
|
|
|
7644
7802
|
// src/client/types/app/bsky/actor/search.ts
|
|
7645
7803
|
var search_exports = {};
|
|
7646
7804
|
__export(search_exports, {
|
|
7647
|
-
|
|
7805
|
+
isUser: () => isUser,
|
|
7806
|
+
toKnownErr: () => toKnownErr27,
|
|
7807
|
+
validateUser: () => validateUser
|
|
7648
7808
|
});
|
|
7649
7809
|
function toKnownErr27(e) {
|
|
7650
7810
|
if (e instanceof XRPCError) {
|
|
7651
7811
|
}
|
|
7652
7812
|
return e;
|
|
7653
7813
|
}
|
|
7814
|
+
function isUser(v) {
|
|
7815
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.search#user";
|
|
7816
|
+
}
|
|
7817
|
+
function validateUser(v) {
|
|
7818
|
+
return lexicons.validate("app.bsky.actor.search#user", v);
|
|
7819
|
+
}
|
|
7654
7820
|
|
|
7655
7821
|
// src/client/types/app/bsky/actor/searchTypeahead.ts
|
|
7656
7822
|
var searchTypeahead_exports = {};
|
|
7657
7823
|
__export(searchTypeahead_exports, {
|
|
7658
|
-
|
|
7824
|
+
isUser: () => isUser2,
|
|
7825
|
+
toKnownErr: () => toKnownErr28,
|
|
7826
|
+
validateUser: () => validateUser2
|
|
7659
7827
|
});
|
|
7660
7828
|
function toKnownErr28(e) {
|
|
7661
7829
|
if (e instanceof XRPCError) {
|
|
7662
7830
|
}
|
|
7663
7831
|
return e;
|
|
7664
7832
|
}
|
|
7833
|
+
function isUser2(v) {
|
|
7834
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.searchTypeahead#user";
|
|
7835
|
+
}
|
|
7836
|
+
function validateUser2(v) {
|
|
7837
|
+
return lexicons.validate("app.bsky.actor.searchTypeahead#user", v);
|
|
7838
|
+
}
|
|
7665
7839
|
|
|
7666
7840
|
// src/client/types/app/bsky/actor/updateProfile.ts
|
|
7667
7841
|
var updateProfile_exports = {};
|
|
@@ -7721,7 +7895,11 @@ function toKnownErr30(e) {
|
|
|
7721
7895
|
var getPostThread_exports = {};
|
|
7722
7896
|
__export(getPostThread_exports, {
|
|
7723
7897
|
NotFoundError: () => NotFoundError,
|
|
7724
|
-
|
|
7898
|
+
isNotFoundPost: () => isNotFoundPost,
|
|
7899
|
+
isThreadViewPost: () => isThreadViewPost,
|
|
7900
|
+
toKnownErr: () => toKnownErr31,
|
|
7901
|
+
validateNotFoundPost: () => validateNotFoundPost,
|
|
7902
|
+
validateThreadViewPost: () => validateThreadViewPost
|
|
7725
7903
|
});
|
|
7726
7904
|
var NotFoundError = class extends XRPCError {
|
|
7727
7905
|
constructor(src) {
|
|
@@ -7735,17 +7913,37 @@ function toKnownErr31(e) {
|
|
|
7735
7913
|
}
|
|
7736
7914
|
return e;
|
|
7737
7915
|
}
|
|
7916
|
+
function isThreadViewPost(v) {
|
|
7917
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.getPostThread#threadViewPost";
|
|
7918
|
+
}
|
|
7919
|
+
function validateThreadViewPost(v) {
|
|
7920
|
+
return lexicons.validate("app.bsky.feed.getPostThread#threadViewPost", v);
|
|
7921
|
+
}
|
|
7922
|
+
function isNotFoundPost(v) {
|
|
7923
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.getPostThread#notFoundPost";
|
|
7924
|
+
}
|
|
7925
|
+
function validateNotFoundPost(v) {
|
|
7926
|
+
return lexicons.validate("app.bsky.feed.getPostThread#notFoundPost", v);
|
|
7927
|
+
}
|
|
7738
7928
|
|
|
7739
7929
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
7740
7930
|
var getRepostedBy_exports = {};
|
|
7741
7931
|
__export(getRepostedBy_exports, {
|
|
7742
|
-
|
|
7932
|
+
isRepostedBy: () => isRepostedBy,
|
|
7933
|
+
toKnownErr: () => toKnownErr32,
|
|
7934
|
+
validateRepostedBy: () => validateRepostedBy
|
|
7743
7935
|
});
|
|
7744
7936
|
function toKnownErr32(e) {
|
|
7745
7937
|
if (e instanceof XRPCError) {
|
|
7746
7938
|
}
|
|
7747
7939
|
return e;
|
|
7748
7940
|
}
|
|
7941
|
+
function isRepostedBy(v) {
|
|
7942
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.getRepostedBy#repostedBy";
|
|
7943
|
+
}
|
|
7944
|
+
function validateRepostedBy(v) {
|
|
7945
|
+
return lexicons.validate("app.bsky.feed.getRepostedBy#repostedBy", v);
|
|
7946
|
+
}
|
|
7749
7947
|
|
|
7750
7948
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
7751
7949
|
var getTimeline_exports = {};
|
|
@@ -7761,13 +7959,21 @@ function toKnownErr33(e) {
|
|
|
7761
7959
|
// src/client/types/app/bsky/feed/getVotes.ts
|
|
7762
7960
|
var getVotes_exports = {};
|
|
7763
7961
|
__export(getVotes_exports, {
|
|
7764
|
-
|
|
7962
|
+
isVote: () => isVote,
|
|
7963
|
+
toKnownErr: () => toKnownErr34,
|
|
7964
|
+
validateVote: () => validateVote
|
|
7765
7965
|
});
|
|
7766
7966
|
function toKnownErr34(e) {
|
|
7767
7967
|
if (e instanceof XRPCError) {
|
|
7768
7968
|
}
|
|
7769
7969
|
return e;
|
|
7770
7970
|
}
|
|
7971
|
+
function isVote(v) {
|
|
7972
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.getVotes#vote";
|
|
7973
|
+
}
|
|
7974
|
+
function validateVote(v) {
|
|
7975
|
+
return lexicons.validate("app.bsky.feed.getVotes#vote", v);
|
|
7976
|
+
}
|
|
7771
7977
|
|
|
7772
7978
|
// src/client/types/app/bsky/feed/setVote.ts
|
|
7773
7979
|
var setVote_exports = {};
|
|
@@ -7783,68 +7989,124 @@ function toKnownErr35(e) {
|
|
|
7783
7989
|
// src/client/types/app/bsky/graph/getAssertions.ts
|
|
7784
7990
|
var getAssertions_exports = {};
|
|
7785
7991
|
__export(getAssertions_exports, {
|
|
7786
|
-
|
|
7992
|
+
isAssertion: () => isAssertion,
|
|
7993
|
+
isConfirmation: () => isConfirmation,
|
|
7994
|
+
toKnownErr: () => toKnownErr36,
|
|
7995
|
+
validateAssertion: () => validateAssertion,
|
|
7996
|
+
validateConfirmation: () => validateConfirmation
|
|
7787
7997
|
});
|
|
7788
7998
|
function toKnownErr36(e) {
|
|
7789
7999
|
if (e instanceof XRPCError) {
|
|
7790
8000
|
}
|
|
7791
8001
|
return e;
|
|
7792
8002
|
}
|
|
8003
|
+
function isAssertion(v) {
|
|
8004
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getAssertions#assertion";
|
|
8005
|
+
}
|
|
8006
|
+
function validateAssertion(v) {
|
|
8007
|
+
return lexicons.validate("app.bsky.graph.getAssertions#assertion", v);
|
|
8008
|
+
}
|
|
8009
|
+
function isConfirmation(v) {
|
|
8010
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getAssertions#confirmation";
|
|
8011
|
+
}
|
|
8012
|
+
function validateConfirmation(v) {
|
|
8013
|
+
return lexicons.validate("app.bsky.graph.getAssertions#confirmation", v);
|
|
8014
|
+
}
|
|
7793
8015
|
|
|
7794
8016
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
7795
8017
|
var getFollowers_exports = {};
|
|
7796
8018
|
__export(getFollowers_exports, {
|
|
7797
|
-
|
|
8019
|
+
isFollower: () => isFollower,
|
|
8020
|
+
toKnownErr: () => toKnownErr37,
|
|
8021
|
+
validateFollower: () => validateFollower
|
|
7798
8022
|
});
|
|
7799
8023
|
function toKnownErr37(e) {
|
|
7800
8024
|
if (e instanceof XRPCError) {
|
|
7801
8025
|
}
|
|
7802
8026
|
return e;
|
|
7803
8027
|
}
|
|
8028
|
+
function isFollower(v) {
|
|
8029
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getFollowers#follower";
|
|
8030
|
+
}
|
|
8031
|
+
function validateFollower(v) {
|
|
8032
|
+
return lexicons.validate("app.bsky.graph.getFollowers#follower", v);
|
|
8033
|
+
}
|
|
7804
8034
|
|
|
7805
8035
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
7806
8036
|
var getFollows_exports = {};
|
|
7807
8037
|
__export(getFollows_exports, {
|
|
7808
|
-
|
|
8038
|
+
isFollow: () => isFollow,
|
|
8039
|
+
toKnownErr: () => toKnownErr38,
|
|
8040
|
+
validateFollow: () => validateFollow
|
|
7809
8041
|
});
|
|
7810
8042
|
function toKnownErr38(e) {
|
|
7811
8043
|
if (e instanceof XRPCError) {
|
|
7812
8044
|
}
|
|
7813
8045
|
return e;
|
|
7814
8046
|
}
|
|
8047
|
+
function isFollow(v) {
|
|
8048
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getFollows#follow";
|
|
8049
|
+
}
|
|
8050
|
+
function validateFollow(v) {
|
|
8051
|
+
return lexicons.validate("app.bsky.graph.getFollows#follow", v);
|
|
8052
|
+
}
|
|
7815
8053
|
|
|
7816
8054
|
// src/client/types/app/bsky/graph/getMembers.ts
|
|
7817
8055
|
var getMembers_exports = {};
|
|
7818
8056
|
__export(getMembers_exports, {
|
|
7819
|
-
|
|
8057
|
+
isMember: () => isMember,
|
|
8058
|
+
toKnownErr: () => toKnownErr39,
|
|
8059
|
+
validateMember: () => validateMember
|
|
7820
8060
|
});
|
|
7821
8061
|
function toKnownErr39(e) {
|
|
7822
8062
|
if (e instanceof XRPCError) {
|
|
7823
8063
|
}
|
|
7824
8064
|
return e;
|
|
7825
8065
|
}
|
|
8066
|
+
function isMember(v) {
|
|
8067
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getMembers#member";
|
|
8068
|
+
}
|
|
8069
|
+
function validateMember(v) {
|
|
8070
|
+
return lexicons.validate("app.bsky.graph.getMembers#member", v);
|
|
8071
|
+
}
|
|
7826
8072
|
|
|
7827
8073
|
// src/client/types/app/bsky/graph/getMemberships.ts
|
|
7828
8074
|
var getMemberships_exports = {};
|
|
7829
8075
|
__export(getMemberships_exports, {
|
|
7830
|
-
|
|
8076
|
+
isMembership: () => isMembership,
|
|
8077
|
+
toKnownErr: () => toKnownErr40,
|
|
8078
|
+
validateMembership: () => validateMembership
|
|
7831
8079
|
});
|
|
7832
8080
|
function toKnownErr40(e) {
|
|
7833
8081
|
if (e instanceof XRPCError) {
|
|
7834
8082
|
}
|
|
7835
8083
|
return e;
|
|
7836
8084
|
}
|
|
8085
|
+
function isMembership(v) {
|
|
8086
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getMemberships#membership";
|
|
8087
|
+
}
|
|
8088
|
+
function validateMembership(v) {
|
|
8089
|
+
return lexicons.validate("app.bsky.graph.getMemberships#membership", v);
|
|
8090
|
+
}
|
|
7837
8091
|
|
|
7838
8092
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
7839
8093
|
var getMutes_exports = {};
|
|
7840
8094
|
__export(getMutes_exports, {
|
|
7841
|
-
|
|
8095
|
+
isMute: () => isMute,
|
|
8096
|
+
toKnownErr: () => toKnownErr41,
|
|
8097
|
+
validateMute: () => validateMute
|
|
7842
8098
|
});
|
|
7843
8099
|
function toKnownErr41(e) {
|
|
7844
8100
|
if (e instanceof XRPCError) {
|
|
7845
8101
|
}
|
|
7846
8102
|
return e;
|
|
7847
8103
|
}
|
|
8104
|
+
function isMute(v) {
|
|
8105
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getMutes#mute";
|
|
8106
|
+
}
|
|
8107
|
+
function validateMute(v) {
|
|
8108
|
+
return lexicons.validate("app.bsky.graph.getMutes#mute", v);
|
|
8109
|
+
}
|
|
7848
8110
|
|
|
7849
8111
|
// src/client/types/app/bsky/graph/mute.ts
|
|
7850
8112
|
var mute_exports = {};
|
|
@@ -7882,13 +8144,21 @@ function toKnownErr44(e) {
|
|
|
7882
8144
|
// src/client/types/app/bsky/notification/list.ts
|
|
7883
8145
|
var list_exports = {};
|
|
7884
8146
|
__export(list_exports, {
|
|
7885
|
-
|
|
8147
|
+
isNotification: () => isNotification,
|
|
8148
|
+
toKnownErr: () => toKnownErr45,
|
|
8149
|
+
validateNotification: () => validateNotification
|
|
7886
8150
|
});
|
|
7887
8151
|
function toKnownErr45(e) {
|
|
7888
8152
|
if (e instanceof XRPCError) {
|
|
7889
8153
|
}
|
|
7890
8154
|
return e;
|
|
7891
8155
|
}
|
|
8156
|
+
function isNotification(v) {
|
|
8157
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.notification.list#notification";
|
|
8158
|
+
}
|
|
8159
|
+
function validateNotification(v) {
|
|
8160
|
+
return lexicons.validate("app.bsky.notification.list#notification", v);
|
|
8161
|
+
}
|
|
7892
8162
|
|
|
7893
8163
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
7894
8164
|
var updateSeen_exports = {};
|
|
@@ -7903,33 +8173,261 @@ function toKnownErr46(e) {
|
|
|
7903
8173
|
|
|
7904
8174
|
// src/client/types/com/atproto/repo/strongRef.ts
|
|
7905
8175
|
var strongRef_exports = {};
|
|
8176
|
+
__export(strongRef_exports, {
|
|
8177
|
+
isMain: () => isMain,
|
|
8178
|
+
validateMain: () => validateMain
|
|
8179
|
+
});
|
|
8180
|
+
function isMain(v) {
|
|
8181
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "com.atproto.repo.strongRef#main" || v.$type === "com.atproto.repo.strongRef");
|
|
8182
|
+
}
|
|
8183
|
+
function validateMain(v) {
|
|
8184
|
+
return lexicons.validate("com.atproto.repo.strongRef#main", v);
|
|
8185
|
+
}
|
|
7906
8186
|
|
|
7907
8187
|
// src/client/types/app/bsky/actor/profile.ts
|
|
7908
8188
|
var profile_exports = {};
|
|
8189
|
+
__export(profile_exports, {
|
|
8190
|
+
isRecord: () => isRecord2,
|
|
8191
|
+
validateRecord: () => validateRecord2
|
|
8192
|
+
});
|
|
8193
|
+
function isRecord2(v) {
|
|
8194
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.actor.profile#main" || v.$type === "app.bsky.actor.profile");
|
|
8195
|
+
}
|
|
8196
|
+
function validateRecord2(v) {
|
|
8197
|
+
return lexicons.validate("app.bsky.actor.profile#main", v);
|
|
8198
|
+
}
|
|
7909
8199
|
|
|
7910
8200
|
// src/client/types/app/bsky/actor/ref.ts
|
|
7911
8201
|
var ref_exports = {};
|
|
8202
|
+
__export(ref_exports, {
|
|
8203
|
+
isMain: () => isMain2,
|
|
8204
|
+
isViewerState: () => isViewerState,
|
|
8205
|
+
isWithInfo: () => isWithInfo,
|
|
8206
|
+
validateMain: () => validateMain2,
|
|
8207
|
+
validateViewerState: () => validateViewerState,
|
|
8208
|
+
validateWithInfo: () => validateWithInfo
|
|
8209
|
+
});
|
|
8210
|
+
function isMain2(v) {
|
|
8211
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.actor.ref#main" || v.$type === "app.bsky.actor.ref");
|
|
8212
|
+
}
|
|
8213
|
+
function validateMain2(v) {
|
|
8214
|
+
return lexicons.validate("app.bsky.actor.ref#main", v);
|
|
8215
|
+
}
|
|
8216
|
+
function isWithInfo(v) {
|
|
8217
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.ref#withInfo";
|
|
8218
|
+
}
|
|
8219
|
+
function validateWithInfo(v) {
|
|
8220
|
+
return lexicons.validate("app.bsky.actor.ref#withInfo", v);
|
|
8221
|
+
}
|
|
8222
|
+
function isViewerState(v) {
|
|
8223
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.ref#viewerState";
|
|
8224
|
+
}
|
|
8225
|
+
function validateViewerState(v) {
|
|
8226
|
+
return lexicons.validate("app.bsky.actor.ref#viewerState", v);
|
|
8227
|
+
}
|
|
7912
8228
|
|
|
7913
8229
|
// src/client/types/app/bsky/embed/external.ts
|
|
7914
8230
|
var external_exports = {};
|
|
8231
|
+
__export(external_exports, {
|
|
8232
|
+
isExternal: () => isExternal,
|
|
8233
|
+
isMain: () => isMain3,
|
|
8234
|
+
isPresented: () => isPresented,
|
|
8235
|
+
isPresentedExternal: () => isPresentedExternal,
|
|
8236
|
+
validateExternal: () => validateExternal,
|
|
8237
|
+
validateMain: () => validateMain3,
|
|
8238
|
+
validatePresented: () => validatePresented,
|
|
8239
|
+
validatePresentedExternal: () => validatePresentedExternal
|
|
8240
|
+
});
|
|
8241
|
+
function isMain3(v) {
|
|
8242
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.embed.external#main" || v.$type === "app.bsky.embed.external");
|
|
8243
|
+
}
|
|
8244
|
+
function validateMain3(v) {
|
|
8245
|
+
return lexicons.validate("app.bsky.embed.external#main", v);
|
|
8246
|
+
}
|
|
8247
|
+
function isExternal(v) {
|
|
8248
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.embed.external#external";
|
|
8249
|
+
}
|
|
8250
|
+
function validateExternal(v) {
|
|
8251
|
+
return lexicons.validate("app.bsky.embed.external#external", v);
|
|
8252
|
+
}
|
|
8253
|
+
function isPresented(v) {
|
|
8254
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.embed.external#presented";
|
|
8255
|
+
}
|
|
8256
|
+
function validatePresented(v) {
|
|
8257
|
+
return lexicons.validate("app.bsky.embed.external#presented", v);
|
|
8258
|
+
}
|
|
8259
|
+
function isPresentedExternal(v) {
|
|
8260
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.embed.external#presentedExternal";
|
|
8261
|
+
}
|
|
8262
|
+
function validatePresentedExternal(v) {
|
|
8263
|
+
return lexicons.validate("app.bsky.embed.external#presentedExternal", v);
|
|
8264
|
+
}
|
|
7915
8265
|
|
|
7916
8266
|
// src/client/types/app/bsky/embed/images.ts
|
|
7917
8267
|
var images_exports = {};
|
|
8268
|
+
__export(images_exports, {
|
|
8269
|
+
isImage: () => isImage,
|
|
8270
|
+
isMain: () => isMain4,
|
|
8271
|
+
isPresented: () => isPresented2,
|
|
8272
|
+
isPresentedImage: () => isPresentedImage,
|
|
8273
|
+
validateImage: () => validateImage,
|
|
8274
|
+
validateMain: () => validateMain4,
|
|
8275
|
+
validatePresented: () => validatePresented2,
|
|
8276
|
+
validatePresentedImage: () => validatePresentedImage
|
|
8277
|
+
});
|
|
8278
|
+
function isMain4(v) {
|
|
8279
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.embed.images#main" || v.$type === "app.bsky.embed.images");
|
|
8280
|
+
}
|
|
8281
|
+
function validateMain4(v) {
|
|
8282
|
+
return lexicons.validate("app.bsky.embed.images#main", v);
|
|
8283
|
+
}
|
|
8284
|
+
function isImage(v) {
|
|
8285
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.embed.images#image";
|
|
8286
|
+
}
|
|
8287
|
+
function validateImage(v) {
|
|
8288
|
+
return lexicons.validate("app.bsky.embed.images#image", v);
|
|
8289
|
+
}
|
|
8290
|
+
function isPresented2(v) {
|
|
8291
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.embed.images#presented";
|
|
8292
|
+
}
|
|
8293
|
+
function validatePresented2(v) {
|
|
8294
|
+
return lexicons.validate("app.bsky.embed.images#presented", v);
|
|
8295
|
+
}
|
|
8296
|
+
function isPresentedImage(v) {
|
|
8297
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.embed.images#presentedImage";
|
|
8298
|
+
}
|
|
8299
|
+
function validatePresentedImage(v) {
|
|
8300
|
+
return lexicons.validate("app.bsky.embed.images#presentedImage", v);
|
|
8301
|
+
}
|
|
7918
8302
|
|
|
7919
8303
|
// src/client/types/app/bsky/feed/feedViewPost.ts
|
|
7920
8304
|
var feedViewPost_exports = {};
|
|
8305
|
+
__export(feedViewPost_exports, {
|
|
8306
|
+
isMain: () => isMain5,
|
|
8307
|
+
isReasonRepost: () => isReasonRepost,
|
|
8308
|
+
isReasonTrend: () => isReasonTrend,
|
|
8309
|
+
isReplyRef: () => isReplyRef,
|
|
8310
|
+
validateMain: () => validateMain5,
|
|
8311
|
+
validateReasonRepost: () => validateReasonRepost,
|
|
8312
|
+
validateReasonTrend: () => validateReasonTrend,
|
|
8313
|
+
validateReplyRef: () => validateReplyRef
|
|
8314
|
+
});
|
|
8315
|
+
function isMain5(v) {
|
|
8316
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.feedViewPost#main" || v.$type === "app.bsky.feed.feedViewPost");
|
|
8317
|
+
}
|
|
8318
|
+
function validateMain5(v) {
|
|
8319
|
+
return lexicons.validate("app.bsky.feed.feedViewPost#main", v);
|
|
8320
|
+
}
|
|
8321
|
+
function isReplyRef(v) {
|
|
8322
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.feedViewPost#replyRef";
|
|
8323
|
+
}
|
|
8324
|
+
function validateReplyRef(v) {
|
|
8325
|
+
return lexicons.validate("app.bsky.feed.feedViewPost#replyRef", v);
|
|
8326
|
+
}
|
|
8327
|
+
function isReasonTrend(v) {
|
|
8328
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.feedViewPost#reasonTrend";
|
|
8329
|
+
}
|
|
8330
|
+
function validateReasonTrend(v) {
|
|
8331
|
+
return lexicons.validate("app.bsky.feed.feedViewPost#reasonTrend", v);
|
|
8332
|
+
}
|
|
8333
|
+
function isReasonRepost(v) {
|
|
8334
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.feedViewPost#reasonRepost";
|
|
8335
|
+
}
|
|
8336
|
+
function validateReasonRepost(v) {
|
|
8337
|
+
return lexicons.validate("app.bsky.feed.feedViewPost#reasonRepost", v);
|
|
8338
|
+
}
|
|
7921
8339
|
|
|
7922
8340
|
// src/client/types/app/bsky/feed/post.ts
|
|
7923
8341
|
var post_exports = {};
|
|
8342
|
+
__export(post_exports, {
|
|
8343
|
+
isEntity: () => isEntity,
|
|
8344
|
+
isRecord: () => isRecord3,
|
|
8345
|
+
isReplyRef: () => isReplyRef2,
|
|
8346
|
+
isTextSlice: () => isTextSlice,
|
|
8347
|
+
isView: () => isView,
|
|
8348
|
+
isViewerState: () => isViewerState2,
|
|
8349
|
+
validateEntity: () => validateEntity,
|
|
8350
|
+
validateRecord: () => validateRecord3,
|
|
8351
|
+
validateReplyRef: () => validateReplyRef2,
|
|
8352
|
+
validateTextSlice: () => validateTextSlice,
|
|
8353
|
+
validateView: () => validateView,
|
|
8354
|
+
validateViewerState: () => validateViewerState2
|
|
8355
|
+
});
|
|
8356
|
+
function isRecord3(v) {
|
|
8357
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.post#main" || v.$type === "app.bsky.feed.post");
|
|
8358
|
+
}
|
|
8359
|
+
function validateRecord3(v) {
|
|
8360
|
+
return lexicons.validate("app.bsky.feed.post#main", v);
|
|
8361
|
+
}
|
|
8362
|
+
function isReplyRef2(v) {
|
|
8363
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#replyRef";
|
|
8364
|
+
}
|
|
8365
|
+
function validateReplyRef2(v) {
|
|
8366
|
+
return lexicons.validate("app.bsky.feed.post#replyRef", v);
|
|
8367
|
+
}
|
|
8368
|
+
function isEntity(v) {
|
|
8369
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#entity";
|
|
8370
|
+
}
|
|
8371
|
+
function validateEntity(v) {
|
|
8372
|
+
return lexicons.validate("app.bsky.feed.post#entity", v);
|
|
8373
|
+
}
|
|
8374
|
+
function isTextSlice(v) {
|
|
8375
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#textSlice";
|
|
8376
|
+
}
|
|
8377
|
+
function validateTextSlice(v) {
|
|
8378
|
+
return lexicons.validate("app.bsky.feed.post#textSlice", v);
|
|
8379
|
+
}
|
|
8380
|
+
function isView(v) {
|
|
8381
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#view";
|
|
8382
|
+
}
|
|
8383
|
+
function validateView(v) {
|
|
8384
|
+
return lexicons.validate("app.bsky.feed.post#view", v);
|
|
8385
|
+
}
|
|
8386
|
+
function isViewerState2(v) {
|
|
8387
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#viewerState";
|
|
8388
|
+
}
|
|
8389
|
+
function validateViewerState2(v) {
|
|
8390
|
+
return lexicons.validate("app.bsky.feed.post#viewerState", v);
|
|
8391
|
+
}
|
|
7924
8392
|
|
|
7925
8393
|
// src/client/types/app/bsky/feed/repost.ts
|
|
7926
8394
|
var repost_exports = {};
|
|
8395
|
+
__export(repost_exports, {
|
|
8396
|
+
isRecord: () => isRecord4,
|
|
8397
|
+
validateRecord: () => validateRecord4
|
|
8398
|
+
});
|
|
8399
|
+
function isRecord4(v) {
|
|
8400
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.repost#main" || v.$type === "app.bsky.feed.repost");
|
|
8401
|
+
}
|
|
8402
|
+
function validateRecord4(v) {
|
|
8403
|
+
return lexicons.validate("app.bsky.feed.repost#main", v);
|
|
8404
|
+
}
|
|
7927
8405
|
|
|
7928
8406
|
// src/client/types/app/bsky/feed/trend.ts
|
|
7929
8407
|
var trend_exports = {};
|
|
8408
|
+
__export(trend_exports, {
|
|
8409
|
+
isRecord: () => isRecord5,
|
|
8410
|
+
validateRecord: () => validateRecord5
|
|
8411
|
+
});
|
|
8412
|
+
function isRecord5(v) {
|
|
8413
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.trend#main" || v.$type === "app.bsky.feed.trend");
|
|
8414
|
+
}
|
|
8415
|
+
function validateRecord5(v) {
|
|
8416
|
+
return lexicons.validate("app.bsky.feed.trend#main", v);
|
|
8417
|
+
}
|
|
7930
8418
|
|
|
7931
8419
|
// src/client/types/app/bsky/feed/vote.ts
|
|
7932
8420
|
var vote_exports = {};
|
|
8421
|
+
__export(vote_exports, {
|
|
8422
|
+
isRecord: () => isRecord6,
|
|
8423
|
+
validateRecord: () => validateRecord6
|
|
8424
|
+
});
|
|
8425
|
+
function isRecord6(v) {
|
|
8426
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.vote#main" || v.$type === "app.bsky.feed.vote");
|
|
8427
|
+
}
|
|
8428
|
+
function validateRecord6(v) {
|
|
8429
|
+
return lexicons.validate("app.bsky.feed.vote#main", v);
|
|
8430
|
+
}
|
|
7933
8431
|
|
|
7934
8432
|
// src/client/types/app/bsky/graph/assertCreator.ts
|
|
7935
8433
|
var assertCreator_exports = {};
|
|
@@ -7947,12 +8445,42 @@ var MAIN2 = "app.bsky.graph.assertMember#main";
|
|
|
7947
8445
|
|
|
7948
8446
|
// src/client/types/app/bsky/graph/assertion.ts
|
|
7949
8447
|
var assertion_exports = {};
|
|
8448
|
+
__export(assertion_exports, {
|
|
8449
|
+
isRecord: () => isRecord7,
|
|
8450
|
+
validateRecord: () => validateRecord7
|
|
8451
|
+
});
|
|
8452
|
+
function isRecord7(v) {
|
|
8453
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.graph.assertion#main" || v.$type === "app.bsky.graph.assertion");
|
|
8454
|
+
}
|
|
8455
|
+
function validateRecord7(v) {
|
|
8456
|
+
return lexicons.validate("app.bsky.graph.assertion#main", v);
|
|
8457
|
+
}
|
|
7950
8458
|
|
|
7951
8459
|
// src/client/types/app/bsky/graph/confirmation.ts
|
|
7952
8460
|
var confirmation_exports = {};
|
|
8461
|
+
__export(confirmation_exports, {
|
|
8462
|
+
isRecord: () => isRecord8,
|
|
8463
|
+
validateRecord: () => validateRecord8
|
|
8464
|
+
});
|
|
8465
|
+
function isRecord8(v) {
|
|
8466
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.graph.confirmation#main" || v.$type === "app.bsky.graph.confirmation");
|
|
8467
|
+
}
|
|
8468
|
+
function validateRecord8(v) {
|
|
8469
|
+
return lexicons.validate("app.bsky.graph.confirmation#main", v);
|
|
8470
|
+
}
|
|
7953
8471
|
|
|
7954
8472
|
// src/client/types/app/bsky/graph/follow.ts
|
|
7955
8473
|
var follow_exports = {};
|
|
8474
|
+
__export(follow_exports, {
|
|
8475
|
+
isRecord: () => isRecord9,
|
|
8476
|
+
validateRecord: () => validateRecord9
|
|
8477
|
+
});
|
|
8478
|
+
function isRecord9(v) {
|
|
8479
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.graph.follow#main" || v.$type === "app.bsky.graph.follow");
|
|
8480
|
+
}
|
|
8481
|
+
function validateRecord9(v) {
|
|
8482
|
+
return lexicons.validate("app.bsky.graph.follow#main", v);
|
|
8483
|
+
}
|
|
7956
8484
|
|
|
7957
8485
|
// src/client/types/app/bsky/system/actorScene.ts
|
|
7958
8486
|
var actorScene_exports = {};
|
|
@@ -7970,9 +8498,29 @@ var MAIN4 = "app.bsky.system.actorUser#main";
|
|
|
7970
8498
|
|
|
7971
8499
|
// src/client/types/app/bsky/system/declRef.ts
|
|
7972
8500
|
var declRef_exports = {};
|
|
8501
|
+
__export(declRef_exports, {
|
|
8502
|
+
isMain: () => isMain6,
|
|
8503
|
+
validateMain: () => validateMain6
|
|
8504
|
+
});
|
|
8505
|
+
function isMain6(v) {
|
|
8506
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.system.declRef#main" || v.$type === "app.bsky.system.declRef");
|
|
8507
|
+
}
|
|
8508
|
+
function validateMain6(v) {
|
|
8509
|
+
return lexicons.validate("app.bsky.system.declRef#main", v);
|
|
8510
|
+
}
|
|
7973
8511
|
|
|
7974
8512
|
// src/client/types/app/bsky/system/declaration.ts
|
|
7975
8513
|
var declaration_exports = {};
|
|
8514
|
+
__export(declaration_exports, {
|
|
8515
|
+
isRecord: () => isRecord10,
|
|
8516
|
+
validateRecord: () => validateRecord10
|
|
8517
|
+
});
|
|
8518
|
+
function isRecord10(v) {
|
|
8519
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.system.declaration#main" || v.$type === "app.bsky.system.declaration");
|
|
8520
|
+
}
|
|
8521
|
+
function validateRecord10(v) {
|
|
8522
|
+
return lexicons.validate("app.bsky.system.declaration#main", v);
|
|
8523
|
+
}
|
|
7976
8524
|
|
|
7977
8525
|
// src/client/index.ts
|
|
7978
8526
|
var APP_BSKY_GRAPH = {
|