@atcute/atproto 3.0.1 → 3.0.3
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/lexicons/types/com/atproto/admin/defs.d.ts +6 -6
- package/dist/lexicons/types/com/atproto/admin/defs.js +6 -6
- package/dist/lexicons/types/com/atproto/admin/defs.js.map +1 -1
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.js +1 -1
- package/dist/lexicons/types/com/atproto/admin/disableInviteCodes.js.map +1 -1
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.js +3 -1
- package/dist/lexicons/types/com/atproto/admin/getAccountInfos.js.map +1 -1
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.js +3 -3
- package/dist/lexicons/types/com/atproto/admin/getInviteCodes.js.map +1 -1
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.js +5 -5
- package/dist/lexicons/types/com/atproto/admin/getSubjectStatus.js.map +1 -1
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.d.ts +2 -2
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.js +2 -2
- package/dist/lexicons/types/com/atproto/admin/searchAccounts.js.map +1 -1
- package/dist/lexicons/types/com/atproto/admin/sendEmail.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/admin/sendEmail.js +3 -3
- package/dist/lexicons/types/com/atproto/admin/sendEmail.js.map +1 -1
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.js +5 -5
- package/dist/lexicons/types/com/atproto/admin/updateSubjectStatus.js.map +1 -1
- package/dist/lexicons/types/com/atproto/identity/defs.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/identity/defs.js +1 -1
- package/dist/lexicons/types/com/atproto/identity/defs.js.map +1 -1
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +2 -2
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.js +2 -2
- package/dist/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.js.map +1 -1
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.js +3 -3
- package/dist/lexicons/types/com/atproto/identity/signPlcOperation.js.map +1 -1
- package/dist/lexicons/types/com/atproto/label/defs.d.ts +12 -12
- package/dist/lexicons/types/com/atproto/label/defs.js +15 -15
- package/dist/lexicons/types/com/atproto/label/defs.js.map +1 -1
- package/dist/lexicons/types/com/atproto/label/queryLabels.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/label/queryLabels.js +5 -3
- package/dist/lexicons/types/com/atproto/label/queryLabels.js.map +1 -1
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.js +3 -3
- package/dist/lexicons/types/com/atproto/label/subscribeLabels.js.map +1 -1
- package/dist/lexicons/types/com/atproto/moderation/createReport.d.ts +4 -4
- package/dist/lexicons/types/com/atproto/moderation/createReport.js +8 -8
- package/dist/lexicons/types/com/atproto/moderation/createReport.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/applyWrites.d.ts +5 -5
- package/dist/lexicons/types/com/atproto/repo/applyWrites.js +5 -5
- package/dist/lexicons/types/com/atproto/repo/applyWrites.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/createRecord.d.ts +5 -5
- package/dist/lexicons/types/com/atproto/repo/createRecord.js +5 -5
- package/dist/lexicons/types/com/atproto/repo/createRecord.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/defs.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/repo/defs.js +1 -1
- package/dist/lexicons/types/com/atproto/repo/defs.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.js +3 -3
- package/dist/lexicons/types/com/atproto/repo/deleteRecord.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/describeRepo.d.ts +2 -2
- package/dist/lexicons/types/com/atproto/repo/describeRepo.js +2 -2
- package/dist/lexicons/types/com/atproto/repo/describeRepo.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/getRecord.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/repo/getRecord.js +3 -3
- package/dist/lexicons/types/com/atproto/repo/getRecord.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.js +3 -3
- package/dist/lexicons/types/com/atproto/repo/listMissingBlobs.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/listRecords.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/repo/listRecords.js +3 -3
- package/dist/lexicons/types/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/putRecord.d.ts +6 -6
- package/dist/lexicons/types/com/atproto/repo/putRecord.js +6 -6
- package/dist/lexicons/types/com/atproto/repo/putRecord.js.map +1 -1
- package/dist/lexicons/types/com/atproto/repo/strongRef.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/repo/strongRef.js +1 -1
- package/dist/lexicons/types/com/atproto/repo/strongRef.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.d.ts +6 -6
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.js +6 -6
- package/dist/lexicons/types/com/atproto/server/checkAccountStatus.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/createAccount.d.ts +6 -6
- package/dist/lexicons/types/com/atproto/server/createAccount.js +6 -6
- package/dist/lexicons/types/com/atproto/server/createAccount.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/createAppPassword.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/server/createAppPassword.js +1 -1
- package/dist/lexicons/types/com/atproto/server/createAppPassword.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/createInviteCode.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/server/createInviteCode.js +1 -1
- package/dist/lexicons/types/com/atproto/server/createInviteCode.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.js +1 -1
- package/dist/lexicons/types/com/atproto/server/createInviteCodes.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/createSession.d.ts +7 -7
- package/dist/lexicons/types/com/atproto/server/createSession.js +6 -6
- package/dist/lexicons/types/com/atproto/server/createSession.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/defs.d.ts +4 -4
- package/dist/lexicons/types/com/atproto/server/defs.js +4 -4
- package/dist/lexicons/types/com/atproto/server/defs.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/describeServer.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/server/describeServer.js +5 -5
- package/dist/lexicons/types/com/atproto/server/describeServer.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.js +1 -1
- package/dist/lexicons/types/com/atproto/server/getAccountInviteCodes.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/getSession.d.ts +5 -5
- package/dist/lexicons/types/com/atproto/server/getSession.js +4 -4
- package/dist/lexicons/types/com/atproto/server/getSession.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.js +1 -1
- package/dist/lexicons/types/com/atproto/server/listAppPasswords.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/refreshSession.d.ts +4 -4
- package/dist/lexicons/types/com/atproto/server/refreshSession.js +3 -3
- package/dist/lexicons/types/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/lexicons/types/com/atproto/server/resetPassword.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/server/resetPassword.js +1 -1
- package/dist/lexicons/types/com/atproto/server/resetPassword.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/defs.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/sync/getBlob.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/sync/getBlob.js +1 -1
- package/dist/lexicons/types/com/atproto/sync/getBlob.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/getBlocks.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/sync/getBlocks.js +3 -1
- package/dist/lexicons/types/com/atproto/sync/getBlocks.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/getHead.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/sync/getHead.js +1 -1
- package/dist/lexicons/types/com/atproto/sync/getHead.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/getHostStatus.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/sync/getHostStatus.js +1 -1
- package/dist/lexicons/types/com/atproto/sync/getHostStatus.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.js +1 -1
- package/dist/lexicons/types/com/atproto/sync/getLatestCommit.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/getRecord.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/sync/getRecord.js +1 -1
- package/dist/lexicons/types/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.d.ts +2 -2
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.js +2 -2
- package/dist/lexicons/types/com/atproto/sync/getRepoStatus.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/listBlobs.d.ts +3 -3
- package/dist/lexicons/types/com/atproto/sync/listBlobs.js +3 -3
- package/dist/lexicons/types/com/atproto/sync/listBlobs.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/listHosts.d.ts +2 -2
- package/dist/lexicons/types/com/atproto/sync/listHosts.js +2 -2
- package/dist/lexicons/types/com/atproto/sync/listHosts.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/listRepos.d.ts +4 -4
- package/dist/lexicons/types/com/atproto/sync/listRepos.js +3 -3
- package/dist/lexicons/types/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.js +1 -1
- package/dist/lexicons/types/com/atproto/sync/listReposByCollection.js.map +1 -1
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.d.ts +18 -18
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.js +18 -18
- package/dist/lexicons/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.js +1 -1
- package/dist/lexicons/types/com/atproto/temp/checkSignupQueue.js.map +1 -1
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.d.ts +1 -1
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.js +1 -1
- package/dist/lexicons/types/com/atproto/temp/fetchLabels.js.map +1 -1
- package/lib/lexicons/types/com/atproto/admin/defs.ts +6 -6
- package/lib/lexicons/types/com/atproto/admin/disableInviteCodes.ts +1 -1
- package/lib/lexicons/types/com/atproto/admin/getAccountInfos.ts +3 -1
- package/lib/lexicons/types/com/atproto/admin/getInviteCodes.ts +3 -3
- package/lib/lexicons/types/com/atproto/admin/getSubjectStatus.ts +5 -5
- package/lib/lexicons/types/com/atproto/admin/searchAccounts.ts +2 -2
- package/lib/lexicons/types/com/atproto/admin/sendEmail.ts +3 -3
- package/lib/lexicons/types/com/atproto/admin/updateSubjectStatus.ts +5 -5
- package/lib/lexicons/types/com/atproto/identity/defs.ts +1 -1
- package/lib/lexicons/types/com/atproto/identity/getRecommendedDidCredentials.ts +2 -2
- package/lib/lexicons/types/com/atproto/identity/signPlcOperation.ts +3 -3
- package/lib/lexicons/types/com/atproto/label/defs.ts +21 -21
- package/lib/lexicons/types/com/atproto/label/queryLabels.ts +5 -3
- package/lib/lexicons/types/com/atproto/label/subscribeLabels.ts +3 -3
- package/lib/lexicons/types/com/atproto/moderation/createReport.ts +8 -8
- package/lib/lexicons/types/com/atproto/moderation/defs.ts +6 -6
- package/lib/lexicons/types/com/atproto/repo/applyWrites.ts +7 -7
- package/lib/lexicons/types/com/atproto/repo/createRecord.ts +6 -6
- package/lib/lexicons/types/com/atproto/repo/defs.ts +1 -1
- package/lib/lexicons/types/com/atproto/repo/deleteRecord.ts +3 -3
- package/lib/lexicons/types/com/atproto/repo/describeRepo.ts +2 -2
- package/lib/lexicons/types/com/atproto/repo/getRecord.ts +3 -3
- package/lib/lexicons/types/com/atproto/repo/listMissingBlobs.ts +3 -3
- package/lib/lexicons/types/com/atproto/repo/listRecords.ts +3 -3
- package/lib/lexicons/types/com/atproto/repo/putRecord.ts +7 -7
- package/lib/lexicons/types/com/atproto/repo/strongRef.ts +1 -1
- package/lib/lexicons/types/com/atproto/server/checkAccountStatus.ts +6 -6
- package/lib/lexicons/types/com/atproto/server/createAccount.ts +6 -6
- package/lib/lexicons/types/com/atproto/server/createAppPassword.ts +1 -1
- package/lib/lexicons/types/com/atproto/server/createInviteCode.ts +1 -1
- package/lib/lexicons/types/com/atproto/server/createInviteCodes.ts +1 -1
- package/lib/lexicons/types/com/atproto/server/createSession.ts +7 -7
- package/lib/lexicons/types/com/atproto/server/defs.ts +4 -4
- package/lib/lexicons/types/com/atproto/server/describeServer.ts +5 -5
- package/lib/lexicons/types/com/atproto/server/getAccountInviteCodes.ts +1 -1
- package/lib/lexicons/types/com/atproto/server/getSession.ts +5 -5
- package/lib/lexicons/types/com/atproto/server/listAppPasswords.ts +1 -1
- package/lib/lexicons/types/com/atproto/server/refreshSession.ts +4 -4
- package/lib/lexicons/types/com/atproto/server/resetPassword.ts +1 -1
- package/lib/lexicons/types/com/atproto/sync/defs.ts +1 -1
- package/lib/lexicons/types/com/atproto/sync/getBlob.ts +1 -1
- package/lib/lexicons/types/com/atproto/sync/getBlocks.ts +3 -1
- package/lib/lexicons/types/com/atproto/sync/getHead.ts +1 -1
- package/lib/lexicons/types/com/atproto/sync/getHostStatus.ts +1 -1
- package/lib/lexicons/types/com/atproto/sync/getLatestCommit.ts +1 -1
- package/lib/lexicons/types/com/atproto/sync/getRecord.ts +1 -1
- package/lib/lexicons/types/com/atproto/sync/getRepoStatus.ts +5 -5
- package/lib/lexicons/types/com/atproto/sync/listBlobs.ts +3 -3
- package/lib/lexicons/types/com/atproto/sync/listHosts.ts +2 -2
- package/lib/lexicons/types/com/atproto/sync/listRepos.ts +4 -4
- package/lib/lexicons/types/com/atproto/sync/listReposByCollection.ts +1 -1
- package/lib/lexicons/types/com/atproto/sync/subscribeRepos.ts +20 -20
- package/lib/lexicons/types/com/atproto/temp/checkSignupQueue.ts +1 -1
- package/lib/lexicons/types/com/atproto/temp/fetchLabels.ts +1 -1
- package/package.json +3 -3
|
@@ -5,22 +5,22 @@ import * as ComAtprotoLabelDefs from './defs.js';
|
|
|
5
5
|
|
|
6
6
|
const _infoSchema = /*#__PURE__*/ v.object({
|
|
7
7
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.label.subscribeLabels#info')),
|
|
8
|
-
name: /*#__PURE__*/ v.string<'OutdatedCursor' | (string & {})>(),
|
|
9
8
|
message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
9
|
+
name: /*#__PURE__*/ v.string<'OutdatedCursor' | (string & {})>(),
|
|
10
10
|
});
|
|
11
11
|
const _labelsSchema = /*#__PURE__*/ v.object({
|
|
12
12
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.label.subscribeLabels#labels')),
|
|
13
|
-
seq: /*#__PURE__*/ v.integer(),
|
|
14
13
|
get labels() {
|
|
15
14
|
return /*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema);
|
|
16
15
|
},
|
|
16
|
+
seq: /*#__PURE__*/ v.integer(),
|
|
17
17
|
});
|
|
18
18
|
const _mainSchema = /*#__PURE__*/ v.subscription('com.atproto.label.subscribeLabels', {
|
|
19
19
|
params: /*#__PURE__*/ v.object({
|
|
20
20
|
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
21
21
|
}),
|
|
22
22
|
get message() {
|
|
23
|
-
return /*#__PURE__*/ v.variant([
|
|
23
|
+
return /*#__PURE__*/ v.variant([infoSchema, labelsSchema]);
|
|
24
24
|
},
|
|
25
25
|
});
|
|
26
26
|
|
|
@@ -10,15 +10,15 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.moderation.createRepo
|
|
|
10
10
|
input: {
|
|
11
11
|
type: 'lex',
|
|
12
12
|
schema: /*#__PURE__*/ v.object({
|
|
13
|
-
get reasonType() {
|
|
14
|
-
return ComAtprotoModerationDefs.reasonTypeSchema;
|
|
15
|
-
},
|
|
16
13
|
reason: /*#__PURE__*/ v.optional(
|
|
17
14
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
18
15
|
/*#__PURE__*/ v.stringLength(0, 20000),
|
|
19
16
|
/*#__PURE__*/ v.stringGraphemes(0, 2000),
|
|
20
17
|
]),
|
|
21
18
|
),
|
|
19
|
+
get reasonType() {
|
|
20
|
+
return ComAtprotoModerationDefs.reasonTypeSchema;
|
|
21
|
+
},
|
|
22
22
|
get subject() {
|
|
23
23
|
return /*#__PURE__*/ v.variant([
|
|
24
24
|
ComAtprotoAdminDefs.repoRefSchema,
|
|
@@ -30,24 +30,24 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.moderation.createRepo
|
|
|
30
30
|
output: {
|
|
31
31
|
type: 'lex',
|
|
32
32
|
schema: /*#__PURE__*/ v.object({
|
|
33
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
33
34
|
id: /*#__PURE__*/ v.integer(),
|
|
34
|
-
get reasonType() {
|
|
35
|
-
return ComAtprotoModerationDefs.reasonTypeSchema;
|
|
36
|
-
},
|
|
37
35
|
reason: /*#__PURE__*/ v.optional(
|
|
38
36
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
39
37
|
/*#__PURE__*/ v.stringLength(0, 20000),
|
|
40
38
|
/*#__PURE__*/ v.stringGraphemes(0, 2000),
|
|
41
39
|
]),
|
|
42
40
|
),
|
|
41
|
+
get reasonType() {
|
|
42
|
+
return ComAtprotoModerationDefs.reasonTypeSchema;
|
|
43
|
+
},
|
|
44
|
+
reportedBy: /*#__PURE__*/ v.didString(),
|
|
43
45
|
get subject() {
|
|
44
46
|
return /*#__PURE__*/ v.variant([
|
|
45
47
|
ComAtprotoAdminDefs.repoRefSchema,
|
|
46
48
|
ComAtprotoRepoStrongRef.mainSchema,
|
|
47
49
|
]);
|
|
48
50
|
},
|
|
49
|
-
reportedBy: /*#__PURE__*/ v.didString(),
|
|
50
|
-
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
51
51
|
}),
|
|
52
52
|
},
|
|
53
53
|
});
|
|
@@ -8,17 +8,17 @@ const _reasonRudeSchema = /*#__PURE__*/ v.literal('com.atproto.moderation.defs#r
|
|
|
8
8
|
const _reasonSexualSchema = /*#__PURE__*/ v.literal('com.atproto.moderation.defs#reasonSexual');
|
|
9
9
|
const _reasonSpamSchema = /*#__PURE__*/ v.literal('com.atproto.moderation.defs#reasonSpam');
|
|
10
10
|
const _reasonTypeSchema = /*#__PURE__*/ v.string<
|
|
11
|
-
| 'com.atproto.moderation.defs#
|
|
12
|
-
| 'com.atproto.moderation.defs#reasonViolation'
|
|
11
|
+
| 'com.atproto.moderation.defs#reasonAppeal'
|
|
13
12
|
| 'com.atproto.moderation.defs#reasonMisleading'
|
|
14
|
-
| 'com.atproto.moderation.defs#reasonSexual'
|
|
15
|
-
| 'com.atproto.moderation.defs#reasonRude'
|
|
16
13
|
| 'com.atproto.moderation.defs#reasonOther'
|
|
17
|
-
| 'com.atproto.moderation.defs#
|
|
14
|
+
| 'com.atproto.moderation.defs#reasonRude'
|
|
15
|
+
| 'com.atproto.moderation.defs#reasonSexual'
|
|
16
|
+
| 'com.atproto.moderation.defs#reasonSpam'
|
|
17
|
+
| 'com.atproto.moderation.defs#reasonViolation'
|
|
18
18
|
| (string & {})
|
|
19
19
|
>();
|
|
20
20
|
const _reasonViolationSchema = /*#__PURE__*/ v.literal('com.atproto.moderation.defs#reasonViolation');
|
|
21
|
-
const _subjectTypeSchema = /*#__PURE__*/ v.string<'account' | '
|
|
21
|
+
const _subjectTypeSchema = /*#__PURE__*/ v.string<'account' | 'chat' | 'record' | (string & {})>();
|
|
22
22
|
|
|
23
23
|
type reasonAppeal$schematype = typeof _reasonAppealSchema;
|
|
24
24
|
type reasonMisleading$schematype = typeof _reasonMisleadingSchema;
|
|
@@ -13,9 +13,9 @@ const _createSchema = /*#__PURE__*/ v.object({
|
|
|
13
13
|
});
|
|
14
14
|
const _createResultSchema = /*#__PURE__*/ v.object({
|
|
15
15
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.applyWrites#createResult')),
|
|
16
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
16
17
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
17
|
-
|
|
18
|
-
validationStatus: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'valid' | 'unknown' | (string & {})>()),
|
|
18
|
+
validationStatus: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'unknown' | 'valid' | (string & {})>()),
|
|
19
19
|
});
|
|
20
20
|
const _deleteSchema = /*#__PURE__*/ v.object({
|
|
21
21
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.applyWrites#delete')),
|
|
@@ -31,13 +31,13 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.repo.applyWrites', {
|
|
|
31
31
|
type: 'lex',
|
|
32
32
|
schema: /*#__PURE__*/ v.object({
|
|
33
33
|
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
34
|
+
swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
34
35
|
validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
35
36
|
get writes() {
|
|
36
37
|
return /*#__PURE__*/ v.array(
|
|
37
|
-
/*#__PURE__*/ v.variant([createSchema,
|
|
38
|
+
/*#__PURE__*/ v.variant([createSchema, deleteSchema, updateSchema], true),
|
|
38
39
|
);
|
|
39
40
|
},
|
|
40
|
-
swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
41
41
|
}),
|
|
42
42
|
},
|
|
43
43
|
output: {
|
|
@@ -49,7 +49,7 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.repo.applyWrites', {
|
|
|
49
49
|
get results() {
|
|
50
50
|
return /*#__PURE__*/ v.optional(
|
|
51
51
|
/*#__PURE__*/ v.array(
|
|
52
|
-
/*#__PURE__*/ v.variant([createResultSchema,
|
|
52
|
+
/*#__PURE__*/ v.variant([createResultSchema, deleteResultSchema, updateResultSchema], true),
|
|
53
53
|
),
|
|
54
54
|
);
|
|
55
55
|
},
|
|
@@ -64,9 +64,9 @@ const _updateSchema = /*#__PURE__*/ v.object({
|
|
|
64
64
|
});
|
|
65
65
|
const _updateResultSchema = /*#__PURE__*/ v.object({
|
|
66
66
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.applyWrites#updateResult')),
|
|
67
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
67
68
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
68
|
-
|
|
69
|
-
validationStatus: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'valid' | 'unknown' | (string & {})>()),
|
|
69
|
+
validationStatus: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'unknown' | 'valid' | (string & {})>()),
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
type create$schematype = typeof _createSchema;
|
|
@@ -8,26 +8,26 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.repo.createRecord', {
|
|
|
8
8
|
input: {
|
|
9
9
|
type: 'lex',
|
|
10
10
|
schema: /*#__PURE__*/ v.object({
|
|
11
|
-
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
12
11
|
collection: /*#__PURE__*/ v.nsidString(),
|
|
12
|
+
record: /*#__PURE__*/ v.unknown(),
|
|
13
|
+
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
13
14
|
rkey: /*#__PURE__*/ v.optional(
|
|
14
15
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.recordKeyString(), [/*#__PURE__*/ v.stringLength(0, 512)]),
|
|
15
16
|
),
|
|
17
|
+
swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
16
18
|
validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
17
|
-
record: /*#__PURE__*/ v.unknown(),
|
|
18
|
-
swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
19
19
|
}),
|
|
20
20
|
},
|
|
21
21
|
output: {
|
|
22
22
|
type: 'lex',
|
|
23
23
|
schema: /*#__PURE__*/ v.object({
|
|
24
|
-
|
|
25
|
-
cid: /*#__PURE__*/ v.string(),
|
|
24
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
26
25
|
get commit() {
|
|
27
26
|
return /*#__PURE__*/ v.optional(ComAtprotoRepoDefs.commitMetaSchema);
|
|
28
27
|
},
|
|
28
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
29
29
|
validationStatus: /*#__PURE__*/ v.optional(
|
|
30
|
-
/*#__PURE__*/ v.string<'
|
|
30
|
+
/*#__PURE__*/ v.string<'unknown' | 'valid' | (string & {})>(),
|
|
31
31
|
),
|
|
32
32
|
}),
|
|
33
33
|
},
|
|
@@ -3,7 +3,7 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
3
3
|
|
|
4
4
|
const _commitMetaSchema = /*#__PURE__*/ v.object({
|
|
5
5
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.defs#commitMeta')),
|
|
6
|
-
cid: /*#__PURE__*/ v.
|
|
6
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
7
7
|
rev: /*#__PURE__*/ v.tidString(),
|
|
8
8
|
});
|
|
9
9
|
|
|
@@ -8,11 +8,11 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.repo.deleteRecord', {
|
|
|
8
8
|
input: {
|
|
9
9
|
type: 'lex',
|
|
10
10
|
schema: /*#__PURE__*/ v.object({
|
|
11
|
-
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
12
11
|
collection: /*#__PURE__*/ v.nsidString(),
|
|
12
|
+
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
13
13
|
rkey: /*#__PURE__*/ v.recordKeyString(),
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
15
|
+
swapRecord: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
16
16
|
}),
|
|
17
17
|
},
|
|
18
18
|
output: {
|
|
@@ -9,10 +9,10 @@ const _mainSchema = /*#__PURE__*/ v.query('com.atproto.repo.describeRepo', {
|
|
|
9
9
|
output: {
|
|
10
10
|
type: 'lex',
|
|
11
11
|
schema: /*#__PURE__*/ v.object({
|
|
12
|
-
|
|
12
|
+
collections: /*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()),
|
|
13
13
|
did: /*#__PURE__*/ v.didString(),
|
|
14
14
|
didDoc: /*#__PURE__*/ v.unknown(),
|
|
15
|
-
|
|
15
|
+
handle: /*#__PURE__*/ v.handleString(),
|
|
16
16
|
handleIsCorrect: /*#__PURE__*/ v.boolean(),
|
|
17
17
|
}),
|
|
18
18
|
},
|
|
@@ -4,16 +4,16 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('com.atproto.repo.getRecord', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
-
|
|
7
|
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
8
8
|
collection: /*#__PURE__*/ v.nsidString(),
|
|
9
|
+
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
9
10
|
rkey: /*#__PURE__*/ v.recordKeyString(),
|
|
10
|
-
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
11
|
}),
|
|
12
12
|
output: {
|
|
13
13
|
type: 'lex',
|
|
14
14
|
schema: /*#__PURE__*/ v.object({
|
|
15
|
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
15
16
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
16
|
-
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
17
17
|
value: /*#__PURE__*/ v.unknown(),
|
|
18
18
|
}),
|
|
19
19
|
},
|
|
@@ -4,25 +4,25 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('com.atproto.repo.listMissingBlobs', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
7
8
|
limit: /*#__PURE__*/ v.optional(
|
|
8
9
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 1000)]),
|
|
9
10
|
500,
|
|
10
11
|
),
|
|
11
|
-
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
12
12
|
}),
|
|
13
13
|
output: {
|
|
14
14
|
type: 'lex',
|
|
15
15
|
schema: /*#__PURE__*/ v.object({
|
|
16
|
-
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
17
16
|
get blobs() {
|
|
18
17
|
return /*#__PURE__*/ v.array(recordBlobSchema);
|
|
19
18
|
},
|
|
19
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
20
20
|
}),
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
23
|
const _recordBlobSchema = /*#__PURE__*/ v.object({
|
|
24
24
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.listMissingBlobs#recordBlob')),
|
|
25
|
-
cid: /*#__PURE__*/ v.
|
|
25
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
26
26
|
recordUri: /*#__PURE__*/ v.resourceUriString(),
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -4,13 +4,13 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('com.atproto.repo.listRecords', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
-
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
8
7
|
collection: /*#__PURE__*/ v.nsidString(),
|
|
8
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
9
9
|
limit: /*#__PURE__*/ v.optional(
|
|
10
10
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
11
11
|
50,
|
|
12
12
|
),
|
|
13
|
-
|
|
13
|
+
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
14
14
|
reverse: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
15
15
|
}),
|
|
16
16
|
output: {
|
|
@@ -25,8 +25,8 @@ const _mainSchema = /*#__PURE__*/ v.query('com.atproto.repo.listRecords', {
|
|
|
25
25
|
});
|
|
26
26
|
const _recordSchema = /*#__PURE__*/ v.object({
|
|
27
27
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.listRecords#record')),
|
|
28
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
28
29
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
29
|
-
cid: /*#__PURE__*/ v.string(),
|
|
30
30
|
value: /*#__PURE__*/ v.unknown(),
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -8,27 +8,27 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.repo.putRecord', {
|
|
|
8
8
|
input: {
|
|
9
9
|
type: 'lex',
|
|
10
10
|
schema: /*#__PURE__*/ v.object({
|
|
11
|
-
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
12
11
|
collection: /*#__PURE__*/ v.nsidString(),
|
|
12
|
+
record: /*#__PURE__*/ v.unknown(),
|
|
13
|
+
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
13
14
|
rkey: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.recordKeyString(), [
|
|
14
15
|
/*#__PURE__*/ v.stringLength(0, 512),
|
|
15
16
|
]),
|
|
17
|
+
swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
|
|
18
|
+
swapRecord: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.cidString())),
|
|
16
19
|
validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
17
|
-
record: /*#__PURE__*/ v.unknown(),
|
|
18
|
-
swapRecord: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.nullable(/*#__PURE__*/ v.string())),
|
|
19
|
-
swapCommit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
20
20
|
}),
|
|
21
21
|
},
|
|
22
22
|
output: {
|
|
23
23
|
type: 'lex',
|
|
24
24
|
schema: /*#__PURE__*/ v.object({
|
|
25
|
-
|
|
26
|
-
cid: /*#__PURE__*/ v.string(),
|
|
25
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
27
26
|
get commit() {
|
|
28
27
|
return /*#__PURE__*/ v.optional(ComAtprotoRepoDefs.commitMetaSchema);
|
|
29
28
|
},
|
|
29
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
30
30
|
validationStatus: /*#__PURE__*/ v.optional(
|
|
31
|
-
/*#__PURE__*/ v.string<'
|
|
31
|
+
/*#__PURE__*/ v.string<'unknown' | 'valid' | (string & {})>(),
|
|
32
32
|
),
|
|
33
33
|
}),
|
|
34
34
|
},
|
|
@@ -3,8 +3,8 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
3
3
|
|
|
4
4
|
const _mainSchema = /*#__PURE__*/ v.object({
|
|
5
5
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.repo.strongRef')),
|
|
6
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
6
7
|
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
7
|
-
cid: /*#__PURE__*/ v.string(),
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
type main$schematype = typeof _mainSchema;
|
|
@@ -8,14 +8,14 @@ const _mainSchema = /*#__PURE__*/ v.query('com.atproto.server.checkAccountStatus
|
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
10
|
activated: /*#__PURE__*/ v.boolean(),
|
|
11
|
-
validDid: /*#__PURE__*/ v.boolean(),
|
|
12
|
-
repoCommit: /*#__PURE__*/ v.string(),
|
|
13
|
-
repoRev: /*#__PURE__*/ v.string(),
|
|
14
|
-
repoBlocks: /*#__PURE__*/ v.integer(),
|
|
15
|
-
indexedRecords: /*#__PURE__*/ v.integer(),
|
|
16
|
-
privateStateValues: /*#__PURE__*/ v.integer(),
|
|
17
11
|
expectedBlobs: /*#__PURE__*/ v.integer(),
|
|
18
12
|
importedBlobs: /*#__PURE__*/ v.integer(),
|
|
13
|
+
indexedRecords: /*#__PURE__*/ v.integer(),
|
|
14
|
+
privateStateValues: /*#__PURE__*/ v.integer(),
|
|
15
|
+
repoBlocks: /*#__PURE__*/ v.integer(),
|
|
16
|
+
repoCommit: /*#__PURE__*/ v.cidString(),
|
|
17
|
+
repoRev: /*#__PURE__*/ v.string(),
|
|
18
|
+
validDid: /*#__PURE__*/ v.boolean(),
|
|
19
19
|
}),
|
|
20
20
|
},
|
|
21
21
|
});
|
|
@@ -7,25 +7,25 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.server.createAccount'
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
did: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
10
11
|
email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
12
|
handle: /*#__PURE__*/ v.handleString(),
|
|
12
|
-
did: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
13
13
|
inviteCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
-
verificationCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
15
|
-
verificationPhone: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
16
14
|
password: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
17
|
-
recoveryKey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
18
15
|
plcOp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()),
|
|
16
|
+
recoveryKey: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
17
|
+
verificationCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
18
|
+
verificationPhone: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
19
19
|
}),
|
|
20
20
|
},
|
|
21
21
|
output: {
|
|
22
22
|
type: 'lex',
|
|
23
23
|
schema: /*#__PURE__*/ v.object({
|
|
24
24
|
accessJwt: /*#__PURE__*/ v.string(),
|
|
25
|
-
refreshJwt: /*#__PURE__*/ v.string(),
|
|
26
|
-
handle: /*#__PURE__*/ v.handleString(),
|
|
27
25
|
did: /*#__PURE__*/ v.didString(),
|
|
28
26
|
didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()),
|
|
27
|
+
handle: /*#__PURE__*/ v.handleString(),
|
|
28
|
+
refreshJwt: /*#__PURE__*/ v.string(),
|
|
29
29
|
}),
|
|
30
30
|
},
|
|
31
31
|
});
|
|
@@ -6,9 +6,9 @@ const _appPasswordSchema = /*#__PURE__*/ v.object({
|
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(
|
|
7
7
|
/*#__PURE__*/ v.literal('com.atproto.server.createAppPassword#appPassword'),
|
|
8
8
|
),
|
|
9
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
9
10
|
name: /*#__PURE__*/ v.string(),
|
|
10
11
|
password: /*#__PURE__*/ v.string(),
|
|
11
|
-
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
12
|
privileged: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
13
13
|
});
|
|
14
14
|
const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.server.createAppPassword', {
|
|
@@ -7,8 +7,8 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.server.createInviteCo
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
-
useCount: /*#__PURE__*/ v.integer(),
|
|
11
10
|
forAccount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
11
|
+
useCount: /*#__PURE__*/ v.integer(),
|
|
12
12
|
}),
|
|
13
13
|
},
|
|
14
14
|
output: {
|
|
@@ -15,8 +15,8 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.server.createInviteCo
|
|
|
15
15
|
type: 'lex',
|
|
16
16
|
schema: /*#__PURE__*/ v.object({
|
|
17
17
|
codeCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer(), 1),
|
|
18
|
-
useCount: /*#__PURE__*/ v.integer(),
|
|
19
18
|
forAccounts: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())),
|
|
19
|
+
useCount: /*#__PURE__*/ v.integer(),
|
|
20
20
|
}),
|
|
21
21
|
},
|
|
22
22
|
output: {
|
|
@@ -7,26 +7,26 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.server.createSession'
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
allowTakendown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
11
|
+
authFactorToken: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
10
12
|
identifier: /*#__PURE__*/ v.string(),
|
|
11
13
|
password: /*#__PURE__*/ v.string(),
|
|
12
|
-
authFactorToken: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
13
|
-
allowTakendown: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
14
14
|
}),
|
|
15
15
|
},
|
|
16
16
|
output: {
|
|
17
17
|
type: 'lex',
|
|
18
18
|
schema: /*#__PURE__*/ v.object({
|
|
19
19
|
accessJwt: /*#__PURE__*/ v.string(),
|
|
20
|
-
|
|
21
|
-
handle: /*#__PURE__*/ v.handleString(),
|
|
20
|
+
active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
22
21
|
did: /*#__PURE__*/ v.didString(),
|
|
23
22
|
didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()),
|
|
24
23
|
email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
25
|
-
emailConfirmed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
26
24
|
emailAuthFactor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
27
|
-
|
|
25
|
+
emailConfirmed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
26
|
+
handle: /*#__PURE__*/ v.handleString(),
|
|
27
|
+
refreshJwt: /*#__PURE__*/ v.string(),
|
|
28
28
|
status: /*#__PURE__*/ v.optional(
|
|
29
|
-
/*#__PURE__*/ v.string<'
|
|
29
|
+
/*#__PURE__*/ v.string<'deactivated' | 'suspended' | 'takendown' | (string & {})>(),
|
|
30
30
|
),
|
|
31
31
|
}),
|
|
32
32
|
},
|
|
@@ -3,20 +3,20 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
3
3
|
|
|
4
4
|
const _inviteCodeSchema = /*#__PURE__*/ v.object({
|
|
5
5
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.server.defs#inviteCode')),
|
|
6
|
-
code: /*#__PURE__*/ v.string(),
|
|
7
6
|
available: /*#__PURE__*/ v.integer(),
|
|
7
|
+
code: /*#__PURE__*/ v.string(),
|
|
8
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
9
|
+
createdBy: /*#__PURE__*/ v.string(),
|
|
8
10
|
disabled: /*#__PURE__*/ v.boolean(),
|
|
9
11
|
forAccount: /*#__PURE__*/ v.string(),
|
|
10
|
-
createdBy: /*#__PURE__*/ v.string(),
|
|
11
|
-
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
12
|
get uses() {
|
|
13
13
|
return /*#__PURE__*/ v.array(inviteCodeUseSchema);
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
const _inviteCodeUseSchema = /*#__PURE__*/ v.object({
|
|
17
17
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.server.defs#inviteCodeUse')),
|
|
18
|
-
usedBy: /*#__PURE__*/ v.didString(),
|
|
19
18
|
usedAt: /*#__PURE__*/ v.datetimeString(),
|
|
19
|
+
usedBy: /*#__PURE__*/ v.didString(),
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
type inviteCode$schematype = typeof _inviteCodeSchema;
|
|
@@ -16,16 +16,16 @@ const _mainSchema = /*#__PURE__*/ v.query('com.atproto.server.describeServer', {
|
|
|
16
16
|
output: {
|
|
17
17
|
type: 'lex',
|
|
18
18
|
schema: /*#__PURE__*/ v.object({
|
|
19
|
-
inviteCodeRequired: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
20
|
-
phoneVerificationRequired: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
21
19
|
availableUserDomains: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()),
|
|
22
|
-
get links() {
|
|
23
|
-
return /*#__PURE__*/ v.optional(linksSchema);
|
|
24
|
-
},
|
|
25
20
|
get contact() {
|
|
26
21
|
return /*#__PURE__*/ v.optional(contactSchema);
|
|
27
22
|
},
|
|
28
23
|
did: /*#__PURE__*/ v.didString(),
|
|
24
|
+
inviteCodeRequired: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
25
|
+
get links() {
|
|
26
|
+
return /*#__PURE__*/ v.optional(linksSchema);
|
|
27
|
+
},
|
|
28
|
+
phoneVerificationRequired: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
29
29
|
}),
|
|
30
30
|
},
|
|
31
31
|
});
|
|
@@ -5,8 +5,8 @@ import * as ComAtprotoServerDefs from './defs.js';
|
|
|
5
5
|
|
|
6
6
|
const _mainSchema = /*#__PURE__*/ v.query('com.atproto.server.getAccountInviteCodes', {
|
|
7
7
|
params: /*#__PURE__*/ v.object({
|
|
8
|
-
includeUsed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
9
8
|
createAvailable: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
9
|
+
includeUsed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
10
10
|
}),
|
|
11
11
|
output: {
|
|
12
12
|
type: 'lex',
|
|
@@ -7,15 +7,15 @@ const _mainSchema = /*#__PURE__*/ v.query('com.atproto.server.getSession', {
|
|
|
7
7
|
output: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
-
|
|
10
|
+
active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
11
11
|
did: /*#__PURE__*/ v.didString(),
|
|
12
|
+
didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()),
|
|
12
13
|
email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
13
|
-
emailConfirmed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
14
14
|
emailAuthFactor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
emailConfirmed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
16
|
+
handle: /*#__PURE__*/ v.handleString(),
|
|
17
17
|
status: /*#__PURE__*/ v.optional(
|
|
18
|
-
/*#__PURE__*/ v.string<'
|
|
18
|
+
/*#__PURE__*/ v.string<'deactivated' | 'suspended' | 'takendown' | (string & {})>(),
|
|
19
19
|
),
|
|
20
20
|
}),
|
|
21
21
|
},
|
|
@@ -4,8 +4,8 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _appPasswordSchema = /*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.server.listAppPasswords#appPassword')),
|
|
7
|
-
name: /*#__PURE__*/ v.string(),
|
|
8
7
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
8
|
+
name: /*#__PURE__*/ v.string(),
|
|
9
9
|
privileged: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
10
10
|
});
|
|
11
11
|
const _mainSchema = /*#__PURE__*/ v.query('com.atproto.server.listAppPasswords', {
|
|
@@ -9,13 +9,13 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.server.refreshSession
|
|
|
9
9
|
type: 'lex',
|
|
10
10
|
schema: /*#__PURE__*/ v.object({
|
|
11
11
|
accessJwt: /*#__PURE__*/ v.string(),
|
|
12
|
-
|
|
13
|
-
handle: /*#__PURE__*/ v.handleString(),
|
|
12
|
+
active: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
14
13
|
did: /*#__PURE__*/ v.didString(),
|
|
15
14
|
didDoc: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()),
|
|
16
|
-
|
|
15
|
+
handle: /*#__PURE__*/ v.handleString(),
|
|
16
|
+
refreshJwt: /*#__PURE__*/ v.string(),
|
|
17
17
|
status: /*#__PURE__*/ v.optional(
|
|
18
|
-
/*#__PURE__*/ v.string<'
|
|
18
|
+
/*#__PURE__*/ v.string<'deactivated' | 'suspended' | 'takendown' | (string & {})>(),
|
|
19
19
|
),
|
|
20
20
|
}),
|
|
21
21
|
},
|
|
@@ -7,8 +7,8 @@ const _mainSchema = /*#__PURE__*/ v.procedure('com.atproto.server.resetPassword'
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
-
token: /*#__PURE__*/ v.string(),
|
|
11
10
|
password: /*#__PURE__*/ v.string(),
|
|
11
|
+
token: /*#__PURE__*/ v.string(),
|
|
12
12
|
}),
|
|
13
13
|
},
|
|
14
14
|
output: null,
|
|
@@ -2,7 +2,7 @@ import type {} from '@atcute/lexicons';
|
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
3
|
|
|
4
4
|
const _hostStatusSchema = /*#__PURE__*/ v.string<
|
|
5
|
-
'active' | '
|
|
5
|
+
'active' | 'banned' | 'idle' | 'offline' | 'throttled' | (string & {})
|
|
6
6
|
>();
|
|
7
7
|
|
|
8
8
|
type hostStatus$schematype = typeof _hostStatusSchema;
|
|
@@ -4,8 +4,8 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.getBlob', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
cid: /*#__PURE__*/ v.cidString(),
|
|
7
8
|
did: /*#__PURE__*/ v.didString(),
|
|
8
|
-
cid: /*#__PURE__*/ v.string(),
|
|
9
9
|
}),
|
|
10
10
|
output: {
|
|
11
11
|
type: 'blob',
|
|
@@ -4,8 +4,10 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('com.atproto.sync.getBlocks', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
cids: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.cidString()), [
|
|
8
|
+
/*#__PURE__*/ v.arrayLength(1),
|
|
9
|
+
]),
|
|
7
10
|
did: /*#__PURE__*/ v.didString(),
|
|
8
|
-
cids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.string()),
|
|
9
11
|
}),
|
|
10
12
|
output: {
|
|
11
13
|
type: 'blob',
|