@clioplaylists/clio 0.1.6 → 0.1.8
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/.env +7 -0
- package/dist/api/health.js +3 -10
- package/dist/api/index.js +2 -39
- package/dist/api/util.js +6 -10
- package/dist/api/well-known.d.ts +3 -0
- package/dist/api/well-known.js +31 -0
- package/dist/auth-verifier.js +165 -273
- package/dist/client.js +8 -15
- package/dist/config.d.ts +2 -0
- package/dist/config.js +17 -23
- package/dist/context.d.ts +3 -0
- package/dist/context.js +6 -10
- package/dist/dataplane/client/hosts.d.ts +21 -0
- package/dist/dataplane/client/hosts.js +25 -0
- package/dist/dataplane/client/index.d.ts +11 -0
- package/dist/dataplane/client/index.js +97 -0
- package/dist/dataplane/client.js +25 -70
- package/dist/dataplane/index.js +2 -18
- package/dist/dataplane/server/background.js +8 -29
- package/dist/dataplane/server/db/database-schema.js +1 -2
- package/dist/dataplane/server/db/db.js +27 -103
- package/dist/dataplane/server/db/index.js +1 -17
- package/dist/dataplane/server/db/migrations/20230309T045948368Z-init.js +7 -11
- package/dist/dataplane/server/db/migrations/20230420T211446071Z-did-cache.js +2 -6
- package/dist/dataplane/server/db/migrations/index.js +2 -38
- package/dist/dataplane/server/db/migrations/provider.js +5 -17
- package/dist/dataplane/server/db/pagination.js +21 -37
- package/dist/dataplane/server/db/tables/actor-sync.js +1 -4
- package/dist/dataplane/server/db/tables/actor.js +1 -4
- package/dist/dataplane/server/db/tables/artist-list-item.js +1 -4
- package/dist/dataplane/server/db/tables/artist.js +1 -4
- package/dist/dataplane/server/db/tables/playlist-idea.js +1 -4
- package/dist/dataplane/server/db/tables/playlist-item.js +1 -4
- package/dist/dataplane/server/db/tables/playlist.js +1 -4
- package/dist/dataplane/server/db/tables/profile.js +1 -4
- package/dist/dataplane/server/db/tables/record.js +1 -4
- package/dist/dataplane/server/db/tables/song.js +1 -4
- package/dist/dataplane/server/db/types.js +1 -2
- package/dist/dataplane/server/db/util.js +18 -26
- package/dist/dataplane/server/index.js +17 -33
- package/dist/dataplane/server/indexing/index.js +39 -89
- package/dist/dataplane/server/indexing/plugins/playlist-idea.js +7 -44
- package/dist/dataplane/server/indexing/plugins/profile.js +5 -42
- package/dist/dataplane/server/indexing/processor.js +11 -29
- package/dist/dataplane/server/routes/identity.js +11 -13
- package/dist/dataplane/server/routes/index.js +10 -15
- package/dist/dataplane/server/routes/profile.js +9 -11
- package/dist/dataplane/server/routes/records.js +14 -51
- package/dist/dataplane/server/routes/sync.js +1 -3
- package/dist/dataplane/server/subscription.js +19 -47
- package/dist/error.js +5 -9
- package/dist/index.d.ts +2 -0
- package/dist/index.js +36 -90
- package/dist/lexicons/index.js +52 -227
- package/dist/lexicons/lexicons.js +5 -8
- package/dist/lexicons/types/com/atproto/admin/defs.js +27 -39
- package/dist/lexicons/types/com/atproto/admin/deleteAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/disableAccountInvites.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/enableAccountInvites.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/getAccountInfo.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/sendEmail.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountEmail.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountHandle.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/updateAccountPassword.js +1 -2
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/defs.js +7 -11
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/refreshIdentity.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/requestPlcOperationSignature.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/resolveDid.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/resolveHandle.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/resolveIdentity.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/submitPlcOperation.js +1 -2
- package/dist/lexicons/types/com/atproto/identity/updateHandle.js +1 -2
- package/dist/lexicons/types/com/atproto/label/defs.js +27 -39
- package/dist/lexicons/types/com/atproto/label/queryLabels.js +1 -2
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.js +12 -18
- package/dist/lexicons/types/com/atproto/lexicon/schema.js +7 -11
- package/dist/lexicons/types/com/atproto/moderation/createReport.js +1 -2
- package/dist/lexicons/types/com/atproto/moderation/defs.js +7 -10
- package/dist/lexicons/types/com/atproto/repo/applyWrites.js +32 -46
- package/dist/lexicons/types/com/atproto/repo/createRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/defs.js +7 -11
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/describeRepo.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/getRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/importRepo.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.js +7 -11
- package/dist/lexicons/types/com/atproto/repo/listRecords.js +7 -11
- package/dist/lexicons/types/com/atproto/repo/putRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/repo/strongRef.js +7 -11
- package/dist/lexicons/types/com/atproto/repo/uploadBlob.js +1 -2
- package/dist/lexicons/types/com/atproto/server/activateAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.js +1 -2
- package/dist/lexicons/types/com/atproto/server/confirmEmail.js +1 -2
- package/dist/lexicons/types/com/atproto/server/createAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/server/createAppPassword.js +7 -11
- package/dist/lexicons/types/com/atproto/server/createInviteCode.js +1 -2
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.js +7 -11
- package/dist/lexicons/types/com/atproto/server/createSession.js +1 -2
- package/dist/lexicons/types/com/atproto/server/deactivateAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/server/defs.js +12 -18
- package/dist/lexicons/types/com/atproto/server/deleteAccount.js +1 -2
- package/dist/lexicons/types/com/atproto/server/deleteSession.js +1 -2
- package/dist/lexicons/types/com/atproto/server/describeServer.js +12 -18
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.js +1 -2
- package/dist/lexicons/types/com/atproto/server/getServiceAuth.js +1 -2
- package/dist/lexicons/types/com/atproto/server/getSession.js +1 -2
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.js +7 -11
- package/dist/lexicons/types/com/atproto/server/refreshSession.js +1 -2
- package/dist/lexicons/types/com/atproto/server/requestAccountDelete.js +1 -2
- package/dist/lexicons/types/com/atproto/server/requestEmailConfirmation.js +1 -2
- package/dist/lexicons/types/com/atproto/server/requestEmailUpdate.js +1 -2
- package/dist/lexicons/types/com/atproto/server/requestPasswordReset.js +1 -2
- package/dist/lexicons/types/com/atproto/server/reserveSigningKey.js +1 -2
- package/dist/lexicons/types/com/atproto/server/resetPassword.js +1 -2
- package/dist/lexicons/types/com/atproto/server/revokeAppPassword.js +1 -2
- package/dist/lexicons/types/com/atproto/server/updateEmail.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getBlob.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getBlocks.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getCheckout.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getHead.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getRecord.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getRepo.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/listBlobs.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/listRepos.js +7 -11
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.js +7 -11
- package/dist/lexicons/types/com/atproto/sync/notifyOfUpdate.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/requestCrawl.js +1 -2
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.js +32 -46
- package/dist/lexicons/types/com/atproto/temp/addReservedHandle.js +1 -2
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.js +1 -2
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.js +1 -2
- package/dist/lexicons/types/com/atproto/temp/requestPhoneVerification.js +1 -2
- package/dist/lexicons/types/com/clioplaylists/alpha/actor/profile.js +7 -11
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/defs.js +12 -18
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/getSongs.js +1 -2
- package/dist/lexicons/types/com/clioplaylists/alpha/feed/playlistIdea.js +17 -25
- package/dist/lexicons/util.js +2 -6
- package/dist/logger.js +10 -16
- package/dist/rpc/clio_connect.js +30 -33
- package/dist/rpc/clio_pb.js +402 -956
- package/dist/start.js +9 -1
- package/dist/util/retry.js +7 -10
- package/dist/util/uris.js +3 -6
- package/dist/util.js +17 -60
- package/package.json +4 -4
|
@@ -1,54 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.validateSelfLabels = validateSelfLabels;
|
|
7
|
-
exports.isSelfLabel = isSelfLabel;
|
|
8
|
-
exports.validateSelfLabel = validateSelfLabel;
|
|
9
|
-
exports.isLabelValueDefinition = isLabelValueDefinition;
|
|
10
|
-
exports.validateLabelValueDefinition = validateLabelValueDefinition;
|
|
11
|
-
exports.isLabelValueDefinitionStrings = isLabelValueDefinitionStrings;
|
|
12
|
-
exports.validateLabelValueDefinitionStrings = validateLabelValueDefinitionStrings;
|
|
13
|
-
const lexicons_1 = require("../../../../lexicons");
|
|
14
|
-
const util_1 = require("../../../../util");
|
|
15
|
-
function isLabel(v) {
|
|
16
|
-
return ((0, util_1.isObj)(v) &&
|
|
17
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isLabel(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
18
6
|
v.$type === 'com.atproto.label.defs#label');
|
|
19
7
|
}
|
|
20
|
-
function validateLabel(v) {
|
|
21
|
-
return
|
|
8
|
+
export function validateLabel(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.label.defs#label', v);
|
|
22
10
|
}
|
|
23
|
-
function isSelfLabels(v) {
|
|
24
|
-
return (
|
|
25
|
-
|
|
11
|
+
export function isSelfLabels(v) {
|
|
12
|
+
return (isObj(v) &&
|
|
13
|
+
hasProp(v, '$type') &&
|
|
26
14
|
v.$type === 'com.atproto.label.defs#selfLabels');
|
|
27
15
|
}
|
|
28
|
-
function validateSelfLabels(v) {
|
|
29
|
-
return
|
|
16
|
+
export function validateSelfLabels(v) {
|
|
17
|
+
return lexicons.validate('com.atproto.label.defs#selfLabels', v);
|
|
30
18
|
}
|
|
31
|
-
function isSelfLabel(v) {
|
|
32
|
-
return (
|
|
33
|
-
|
|
19
|
+
export function isSelfLabel(v) {
|
|
20
|
+
return (isObj(v) &&
|
|
21
|
+
hasProp(v, '$type') &&
|
|
34
22
|
v.$type === 'com.atproto.label.defs#selfLabel');
|
|
35
23
|
}
|
|
36
|
-
function validateSelfLabel(v) {
|
|
37
|
-
return
|
|
24
|
+
export function validateSelfLabel(v) {
|
|
25
|
+
return lexicons.validate('com.atproto.label.defs#selfLabel', v);
|
|
38
26
|
}
|
|
39
|
-
function isLabelValueDefinition(v) {
|
|
40
|
-
return (
|
|
41
|
-
|
|
27
|
+
export function isLabelValueDefinition(v) {
|
|
28
|
+
return (isObj(v) &&
|
|
29
|
+
hasProp(v, '$type') &&
|
|
42
30
|
v.$type === 'com.atproto.label.defs#labelValueDefinition');
|
|
43
31
|
}
|
|
44
|
-
function validateLabelValueDefinition(v) {
|
|
45
|
-
return
|
|
32
|
+
export function validateLabelValueDefinition(v) {
|
|
33
|
+
return lexicons.validate('com.atproto.label.defs#labelValueDefinition', v);
|
|
46
34
|
}
|
|
47
|
-
function isLabelValueDefinitionStrings(v) {
|
|
48
|
-
return (
|
|
49
|
-
|
|
35
|
+
export function isLabelValueDefinitionStrings(v) {
|
|
36
|
+
return (isObj(v) &&
|
|
37
|
+
hasProp(v, '$type') &&
|
|
50
38
|
v.$type === 'com.atproto.label.defs#labelValueDefinitionStrings');
|
|
51
39
|
}
|
|
52
|
-
function validateLabelValueDefinitionStrings(v) {
|
|
53
|
-
return
|
|
40
|
+
export function validateLabelValueDefinitionStrings(v) {
|
|
41
|
+
return lexicons.validate('com.atproto.label.defs#labelValueDefinitionStrings', v);
|
|
54
42
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.validateInfo = validateInfo;
|
|
7
|
-
const lexicons_1 = require("../../../../lexicons");
|
|
8
|
-
const util_1 = require("../../../../util");
|
|
9
|
-
function isLabels(v) {
|
|
10
|
-
return ((0, util_1.isObj)(v) &&
|
|
11
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isLabels(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
12
6
|
v.$type === 'com.atproto.label.subscribeLabels#labels');
|
|
13
7
|
}
|
|
14
|
-
function validateLabels(v) {
|
|
15
|
-
return
|
|
8
|
+
export function validateLabels(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.label.subscribeLabels#labels', v);
|
|
16
10
|
}
|
|
17
|
-
function isInfo(v) {
|
|
18
|
-
return (
|
|
19
|
-
|
|
11
|
+
export function isInfo(v) {
|
|
12
|
+
return (isObj(v) &&
|
|
13
|
+
hasProp(v, '$type') &&
|
|
20
14
|
v.$type === 'com.atproto.label.subscribeLabels#info');
|
|
21
15
|
}
|
|
22
|
-
function validateInfo(v) {
|
|
23
|
-
return
|
|
16
|
+
export function validateInfo(v) {
|
|
17
|
+
return lexicons.validate('com.atproto.label.subscribeLabels#info', v);
|
|
24
18
|
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isRecord(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isRecord(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
(v.$type === 'com.atproto.lexicon.schema#main' ||
|
|
11
7
|
v.$type === 'com.atproto.lexicon.schema'));
|
|
12
8
|
}
|
|
13
|
-
function validateRecord(v) {
|
|
14
|
-
return
|
|
9
|
+
export function validateRecord(v) {
|
|
10
|
+
return lexicons.validate('com.atproto.lexicon.schema#main', v);
|
|
15
11
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
4
3
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.REASONAPPEAL = exports.REASONOTHER = exports.REASONRUDE = exports.REASONSEXUAL = exports.REASONMISLEADING = exports.REASONVIOLATION = exports.REASONSPAM = void 0;
|
|
7
4
|
/** Spam: frequent unwanted promotion, replies, mentions */
|
|
8
|
-
|
|
5
|
+
export const REASONSPAM = 'com.atproto.moderation.defs#reasonSpam';
|
|
9
6
|
/** Direct violation of server rules, laws, terms of service */
|
|
10
|
-
|
|
7
|
+
export const REASONVIOLATION = 'com.atproto.moderation.defs#reasonViolation';
|
|
11
8
|
/** Misleading identity, affiliation, or content */
|
|
12
|
-
|
|
9
|
+
export const REASONMISLEADING = 'com.atproto.moderation.defs#reasonMisleading';
|
|
13
10
|
/** Unwanted or mislabeled sexual content */
|
|
14
|
-
|
|
11
|
+
export const REASONSEXUAL = 'com.atproto.moderation.defs#reasonSexual';
|
|
15
12
|
/** Rude, harassing, explicit, or otherwise unwelcoming behavior */
|
|
16
|
-
|
|
13
|
+
export const REASONRUDE = 'com.atproto.moderation.defs#reasonRude';
|
|
17
14
|
/** Other: reports not falling under another report category */
|
|
18
|
-
|
|
15
|
+
export const REASONOTHER = 'com.atproto.moderation.defs#reasonOther';
|
|
19
16
|
/** Appeal: appeal a previously taken moderation action */
|
|
20
|
-
|
|
17
|
+
export const REASONAPPEAL = 'com.atproto.moderation.defs#reasonAppeal';
|
|
@@ -1,64 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.validateUpdate = validateUpdate;
|
|
7
|
-
exports.isDelete = isDelete;
|
|
8
|
-
exports.validateDelete = validateDelete;
|
|
9
|
-
exports.isCreateResult = isCreateResult;
|
|
10
|
-
exports.validateCreateResult = validateCreateResult;
|
|
11
|
-
exports.isUpdateResult = isUpdateResult;
|
|
12
|
-
exports.validateUpdateResult = validateUpdateResult;
|
|
13
|
-
exports.isDeleteResult = isDeleteResult;
|
|
14
|
-
exports.validateDeleteResult = validateDeleteResult;
|
|
15
|
-
const lexicons_1 = require("../../../../lexicons");
|
|
16
|
-
const util_1 = require("../../../../util");
|
|
17
|
-
function isCreate(v) {
|
|
18
|
-
return ((0, util_1.isObj)(v) &&
|
|
19
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isCreate(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
20
6
|
v.$type === 'com.atproto.repo.applyWrites#create');
|
|
21
7
|
}
|
|
22
|
-
function validateCreate(v) {
|
|
23
|
-
return
|
|
8
|
+
export function validateCreate(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.repo.applyWrites#create', v);
|
|
24
10
|
}
|
|
25
|
-
function isUpdate(v) {
|
|
26
|
-
return (
|
|
27
|
-
|
|
11
|
+
export function isUpdate(v) {
|
|
12
|
+
return (isObj(v) &&
|
|
13
|
+
hasProp(v, '$type') &&
|
|
28
14
|
v.$type === 'com.atproto.repo.applyWrites#update');
|
|
29
15
|
}
|
|
30
|
-
function validateUpdate(v) {
|
|
31
|
-
return
|
|
16
|
+
export function validateUpdate(v) {
|
|
17
|
+
return lexicons.validate('com.atproto.repo.applyWrites#update', v);
|
|
32
18
|
}
|
|
33
|
-
function isDelete(v) {
|
|
34
|
-
return (
|
|
35
|
-
|
|
19
|
+
export function isDelete(v) {
|
|
20
|
+
return (isObj(v) &&
|
|
21
|
+
hasProp(v, '$type') &&
|
|
36
22
|
v.$type === 'com.atproto.repo.applyWrites#delete');
|
|
37
23
|
}
|
|
38
|
-
function validateDelete(v) {
|
|
39
|
-
return
|
|
24
|
+
export function validateDelete(v) {
|
|
25
|
+
return lexicons.validate('com.atproto.repo.applyWrites#delete', v);
|
|
40
26
|
}
|
|
41
|
-
function isCreateResult(v) {
|
|
42
|
-
return (
|
|
43
|
-
|
|
27
|
+
export function isCreateResult(v) {
|
|
28
|
+
return (isObj(v) &&
|
|
29
|
+
hasProp(v, '$type') &&
|
|
44
30
|
v.$type === 'com.atproto.repo.applyWrites#createResult');
|
|
45
31
|
}
|
|
46
|
-
function validateCreateResult(v) {
|
|
47
|
-
return
|
|
32
|
+
export function validateCreateResult(v) {
|
|
33
|
+
return lexicons.validate('com.atproto.repo.applyWrites#createResult', v);
|
|
48
34
|
}
|
|
49
|
-
function isUpdateResult(v) {
|
|
50
|
-
return (
|
|
51
|
-
|
|
35
|
+
export function isUpdateResult(v) {
|
|
36
|
+
return (isObj(v) &&
|
|
37
|
+
hasProp(v, '$type') &&
|
|
52
38
|
v.$type === 'com.atproto.repo.applyWrites#updateResult');
|
|
53
39
|
}
|
|
54
|
-
function validateUpdateResult(v) {
|
|
55
|
-
return
|
|
40
|
+
export function validateUpdateResult(v) {
|
|
41
|
+
return lexicons.validate('com.atproto.repo.applyWrites#updateResult', v);
|
|
56
42
|
}
|
|
57
|
-
function isDeleteResult(v) {
|
|
58
|
-
return (
|
|
59
|
-
|
|
43
|
+
export function isDeleteResult(v) {
|
|
44
|
+
return (isObj(v) &&
|
|
45
|
+
hasProp(v, '$type') &&
|
|
60
46
|
v.$type === 'com.atproto.repo.applyWrites#deleteResult');
|
|
61
47
|
}
|
|
62
|
-
function validateDeleteResult(v) {
|
|
63
|
-
return
|
|
48
|
+
export function validateDeleteResult(v) {
|
|
49
|
+
return lexicons.validate('com.atproto.repo.applyWrites#deleteResult', v);
|
|
64
50
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isCommitMeta(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isCommitMeta(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
v.$type === 'com.atproto.repo.defs#commitMeta');
|
|
11
7
|
}
|
|
12
|
-
function validateCommitMeta(v) {
|
|
13
|
-
return
|
|
8
|
+
export function validateCommitMeta(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.repo.defs#commitMeta', v);
|
|
14
10
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isRecordBlob(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isRecordBlob(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
v.$type === 'com.atproto.repo.listMissingBlobs#recordBlob');
|
|
11
7
|
}
|
|
12
|
-
function validateRecordBlob(v) {
|
|
13
|
-
return
|
|
8
|
+
export function validateRecordBlob(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.repo.listMissingBlobs#recordBlob', v);
|
|
14
10
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isRecord(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isRecord(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
v.$type === 'com.atproto.repo.listRecords#record');
|
|
11
7
|
}
|
|
12
|
-
function validateRecord(v) {
|
|
13
|
-
return
|
|
8
|
+
export function validateRecord(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.repo.listRecords#record', v);
|
|
14
10
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isMain(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isMain(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
(v.$type === 'com.atproto.repo.strongRef#main' ||
|
|
11
7
|
v.$type === 'com.atproto.repo.strongRef'));
|
|
12
8
|
}
|
|
13
|
-
function validateMain(v) {
|
|
14
|
-
return
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return lexicons.validate('com.atproto.repo.strongRef#main', v);
|
|
15
11
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isAppPassword(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isAppPassword(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
v.$type === 'com.atproto.server.createAppPassword#appPassword');
|
|
11
7
|
}
|
|
12
|
-
function validateAppPassword(v) {
|
|
13
|
-
return
|
|
8
|
+
export function validateAppPassword(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.createAppPassword#appPassword', v);
|
|
14
10
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isAccountCodes(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isAccountCodes(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
v.$type === 'com.atproto.server.createInviteCodes#accountCodes');
|
|
11
7
|
}
|
|
12
|
-
function validateAccountCodes(v) {
|
|
13
|
-
return
|
|
8
|
+
export function validateAccountCodes(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.createInviteCodes#accountCodes', v);
|
|
14
10
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.validateInviteCodeUse = validateInviteCodeUse;
|
|
7
|
-
const lexicons_1 = require("../../../../lexicons");
|
|
8
|
-
const util_1 = require("../../../../util");
|
|
9
|
-
function isInviteCode(v) {
|
|
10
|
-
return ((0, util_1.isObj)(v) &&
|
|
11
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isInviteCode(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
12
6
|
v.$type === 'com.atproto.server.defs#inviteCode');
|
|
13
7
|
}
|
|
14
|
-
function validateInviteCode(v) {
|
|
15
|
-
return
|
|
8
|
+
export function validateInviteCode(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.defs#inviteCode', v);
|
|
16
10
|
}
|
|
17
|
-
function isInviteCodeUse(v) {
|
|
18
|
-
return (
|
|
19
|
-
|
|
11
|
+
export function isInviteCodeUse(v) {
|
|
12
|
+
return (isObj(v) &&
|
|
13
|
+
hasProp(v, '$type') &&
|
|
20
14
|
v.$type === 'com.atproto.server.defs#inviteCodeUse');
|
|
21
15
|
}
|
|
22
|
-
function validateInviteCodeUse(v) {
|
|
23
|
-
return
|
|
16
|
+
export function validateInviteCodeUse(v) {
|
|
17
|
+
return lexicons.validate('com.atproto.server.defs#inviteCodeUse', v);
|
|
24
18
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.validateContact = validateContact;
|
|
7
|
-
const lexicons_1 = require("../../../../lexicons");
|
|
8
|
-
const util_1 = require("../../../../util");
|
|
9
|
-
function isLinks(v) {
|
|
10
|
-
return ((0, util_1.isObj)(v) &&
|
|
11
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isLinks(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
12
6
|
v.$type === 'com.atproto.server.describeServer#links');
|
|
13
7
|
}
|
|
14
|
-
function validateLinks(v) {
|
|
15
|
-
return
|
|
8
|
+
export function validateLinks(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.describeServer#links', v);
|
|
16
10
|
}
|
|
17
|
-
function isContact(v) {
|
|
18
|
-
return (
|
|
19
|
-
|
|
11
|
+
export function isContact(v) {
|
|
12
|
+
return (isObj(v) &&
|
|
13
|
+
hasProp(v, '$type') &&
|
|
20
14
|
v.$type === 'com.atproto.server.describeServer#contact');
|
|
21
15
|
}
|
|
22
|
-
function validateContact(v) {
|
|
23
|
-
return
|
|
16
|
+
export function validateContact(v) {
|
|
17
|
+
return lexicons.validate('com.atproto.server.describeServer#contact', v);
|
|
24
18
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const util_1 = require("../../../../util");
|
|
7
|
-
function isAppPassword(v) {
|
|
8
|
-
return ((0, util_1.isObj)(v) &&
|
|
9
|
-
(0, util_1.hasProp)(v, '$type') &&
|
|
1
|
+
import { lexicons } from '../../../../lexicons';
|
|
2
|
+
import { hasProp, isObj } from '../../../../util';
|
|
3
|
+
export function isAppPassword(v) {
|
|
4
|
+
return (isObj(v) &&
|
|
5
|
+
hasProp(v, '$type') &&
|
|
10
6
|
v.$type === 'com.atproto.server.listAppPasswords#appPassword');
|
|
11
7
|
}
|
|
12
|
-
function validateAppPassword(v) {
|
|
13
|
-
return
|
|
8
|
+
export function validateAppPassword(v) {
|
|
9
|
+
return lexicons.validate('com.atproto.server.listAppPasswords#appPassword', v);
|
|
14
10
|
}
|