@atproto/api 0.14.6 → 0.14.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/CHANGELOG.md +25 -0
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +40 -7
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +412 -158
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +222 -81
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/video.d.ts +1 -0
- package/dist/client/types/app/bsky/embed/video.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/video.js.map +1 -1
- package/dist/client/types/app/bsky/labeler/defs.d.ts +7 -0
- package/dist/client/types/app/bsky/labeler/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/labeler/defs.js.map +1 -1
- package/dist/client/types/app/bsky/labeler/service.d.ts +7 -0
- package/dist/client/types/app/bsky/labeler/service.d.ts.map +1 -1
- package/dist/client/types/app/bsky/labeler/service.js.map +1 -1
- package/dist/client/types/com/atproto/identity/defs.d.ts +17 -0
- package/dist/client/types/com/atproto/identity/defs.d.ts.map +1 -0
- package/dist/client/types/com/atproto/identity/defs.js +16 -0
- package/dist/client/types/com/atproto/identity/defs.js.map +1 -0
- package/dist/client/types/com/atproto/identity/refreshIdentity.d.ts +33 -0
- package/dist/client/types/com/atproto/identity/refreshIdentity.d.ts.map +1 -0
- package/dist/client/types/com/atproto/identity/refreshIdentity.js +42 -0
- package/dist/client/types/com/atproto/identity/refreshIdentity.js.map +1 -0
- package/dist/client/types/com/atproto/identity/resolveDid.d.ts +32 -0
- package/dist/client/types/com/atproto/identity/resolveDid.d.ts.map +1 -0
- package/dist/client/types/com/atproto/identity/resolveDid.js +34 -0
- package/dist/client/types/com/atproto/identity/resolveDid.js.map +1 -0
- package/dist/client/types/com/atproto/identity/resolveHandle.d.ts +4 -1
- package/dist/client/types/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/client/types/com/atproto/identity/resolveHandle.js +15 -0
- package/dist/client/types/com/atproto/identity/resolveHandle.js.map +1 -1
- package/dist/client/types/com/atproto/identity/resolveIdentity.d.ts +31 -0
- package/dist/client/types/com/atproto/identity/resolveIdentity.d.ts.map +1 -0
- package/dist/client/types/com/atproto/identity/resolveIdentity.js +42 -0
- package/dist/client/types/com/atproto/identity/resolveIdentity.js.map +1 -0
- package/dist/client/types/com/atproto/moderation/defs.d.ts +2 -0
- package/dist/client/types/com/atproto/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +0 -4
- package/dist/client/types/com/atproto/repo/listRecords.d.ts.map +1 -1
- package/dist/client/types/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +0 -2
- package/dist/client/types/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +0 -29
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/subscribeRepos.js +0 -27
- package/dist/client/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/package.json +5 -5
- package/src/client/index.ts +46 -6
- package/src/client/lexicons.ts +243 -84
- package/src/client/types/app/bsky/embed/video.ts +1 -0
- package/src/client/types/app/bsky/labeler/defs.ts +7 -0
- package/src/client/types/app/bsky/labeler/service.ts +7 -0
- package/src/client/types/com/atproto/identity/defs.ts +30 -0
- package/src/client/types/com/atproto/identity/refreshIdentity.ts +62 -0
- package/src/client/types/com/atproto/identity/resolveDid.ts +56 -0
- package/src/client/types/com/atproto/identity/resolveHandle.ts +10 -0
- package/src/client/types/com/atproto/identity/resolveIdentity.ts +60 -0
- package/src/client/types/com/atproto/moderation/defs.ts +3 -0
- package/src/client/types/com/atproto/repo/listRecords.ts +0 -4
- package/src/client/types/com/atproto/sync/getRecord.ts +0 -2
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -56
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -8,12 +8,6 @@ exports.isIdentity = isIdentity;
|
|
|
8
8
|
exports.validateIdentity = validateIdentity;
|
|
9
9
|
exports.isAccount = isAccount;
|
|
10
10
|
exports.validateAccount = validateAccount;
|
|
11
|
-
exports.isHandle = isHandle;
|
|
12
|
-
exports.validateHandle = validateHandle;
|
|
13
|
-
exports.isMigrate = isMigrate;
|
|
14
|
-
exports.validateMigrate = validateMigrate;
|
|
15
|
-
exports.isTombstone = isTombstone;
|
|
16
|
-
exports.validateTombstone = validateTombstone;
|
|
17
11
|
exports.isInfo = isInfo;
|
|
18
12
|
exports.validateInfo = validateInfo;
|
|
19
13
|
exports.isRepoOp = isRepoOp;
|
|
@@ -50,27 +44,6 @@ function isAccount(v) {
|
|
|
50
44
|
function validateAccount(v) {
|
|
51
45
|
return validate(v, id, hashAccount);
|
|
52
46
|
}
|
|
53
|
-
const hashHandle = 'handle';
|
|
54
|
-
function isHandle(v) {
|
|
55
|
-
return is$typed(v, id, hashHandle);
|
|
56
|
-
}
|
|
57
|
-
function validateHandle(v) {
|
|
58
|
-
return validate(v, id, hashHandle);
|
|
59
|
-
}
|
|
60
|
-
const hashMigrate = 'migrate';
|
|
61
|
-
function isMigrate(v) {
|
|
62
|
-
return is$typed(v, id, hashMigrate);
|
|
63
|
-
}
|
|
64
|
-
function validateMigrate(v) {
|
|
65
|
-
return validate(v, id, hashMigrate);
|
|
66
|
-
}
|
|
67
|
-
const hashTombstone = 'tombstone';
|
|
68
|
-
function isTombstone(v) {
|
|
69
|
-
return is$typed(v, id, hashTombstone);
|
|
70
|
-
}
|
|
71
|
-
function validateTombstone(v) {
|
|
72
|
-
return validate(v, id, hashTombstone);
|
|
73
|
-
}
|
|
74
47
|
const hashInfo = 'info';
|
|
75
48
|
function isInfo(v) {
|
|
76
49
|
return is$typed(v, id, hashInfo);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribeRepos.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/sync/subscribeRepos.ts"],"names":[],"mappings":";;AA0CA,4BAEC;AAED,wCAEC;AAmBD,wBAEC;AAED,oCAEC;AAcD,gCAEC;AAED,4CAEC;AAuBD,8BAEC;AAED,0CAEC;
|
|
1
|
+
{"version":3,"file":"subscribeRepos.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/sync/subscribeRepos.ts"],"names":[],"mappings":";;AA0CA,4BAEC;AAED,wCAEC;AAmBD,wBAEC;AAED,oCAEC;AAcD,gCAEC;AAED,4CAEC;AAuBD,8BAEC;AAED,0CAEC;AAUD,wBAEC;AAED,oCAEC;AAeD,4BAEC;AAED,wCAEC;AAzJD,mDAA4D;AAC5D,2CAAyE;AAEzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,iCAAiC,CAAA;AA6B5C,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AAChD,CAAC;AAiBD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAYD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,SAAgB,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC;AAqBD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,SAAgB,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,SAAgB,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,CAAC;AAQD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAaD,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AAChD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"tlds": "^1.234.0",
|
|
23
23
|
"zod": "^3.23.8",
|
|
24
24
|
"@atproto/common-web": "^0.4.0",
|
|
25
|
-
"@atproto/lexicon": "^0.4.
|
|
26
|
-
"@atproto/syntax": "^0.3.
|
|
27
|
-
"@atproto/xrpc": "^0.6.
|
|
25
|
+
"@atproto/lexicon": "^0.4.8",
|
|
26
|
+
"@atproto/syntax": "^0.3.4",
|
|
27
|
+
"@atproto/xrpc": "^0.6.10"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"jest": "^28.1.2",
|
|
31
31
|
"prettier": "^3.2.5",
|
|
32
32
|
"typescript": "^5.6.3",
|
|
33
|
-
"@atproto/lex-cli": "^0.6.
|
|
33
|
+
"@atproto/lex-cli": "^0.6.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"codegen": "node ./scripts/generate-code.mjs && lex gen-api --yes ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
package/src/client/index.ts
CHANGED
|
@@ -20,9 +20,13 @@ import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/up
|
|
|
20
20
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle.js'
|
|
21
21
|
import * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword.js'
|
|
22
22
|
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus.js'
|
|
23
|
+
import * as ComAtprotoIdentityDefs from './types/com/atproto/identity/defs.js'
|
|
23
24
|
import * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials.js'
|
|
25
|
+
import * as ComAtprotoIdentityRefreshIdentity from './types/com/atproto/identity/refreshIdentity.js'
|
|
24
26
|
import * as ComAtprotoIdentityRequestPlcOperationSignature from './types/com/atproto/identity/requestPlcOperationSignature.js'
|
|
27
|
+
import * as ComAtprotoIdentityResolveDid from './types/com/atproto/identity/resolveDid.js'
|
|
25
28
|
import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle.js'
|
|
29
|
+
import * as ComAtprotoIdentityResolveIdentity from './types/com/atproto/identity/resolveIdentity.js'
|
|
26
30
|
import * as ComAtprotoIdentitySignPlcOperation from './types/com/atproto/identity/signPlcOperation.js'
|
|
27
31
|
import * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/identity/submitPlcOperation.js'
|
|
28
32
|
import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle.js'
|
|
@@ -254,9 +258,13 @@ export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/up
|
|
|
254
258
|
export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle.js'
|
|
255
259
|
export * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword.js'
|
|
256
260
|
export * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus.js'
|
|
261
|
+
export * as ComAtprotoIdentityDefs from './types/com/atproto/identity/defs.js'
|
|
257
262
|
export * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials.js'
|
|
263
|
+
export * as ComAtprotoIdentityRefreshIdentity from './types/com/atproto/identity/refreshIdentity.js'
|
|
258
264
|
export * as ComAtprotoIdentityRequestPlcOperationSignature from './types/com/atproto/identity/requestPlcOperationSignature.js'
|
|
265
|
+
export * as ComAtprotoIdentityResolveDid from './types/com/atproto/identity/resolveDid.js'
|
|
259
266
|
export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle.js'
|
|
267
|
+
export * as ComAtprotoIdentityResolveIdentity from './types/com/atproto/identity/resolveIdentity.js'
|
|
260
268
|
export * as ComAtprotoIdentitySignPlcOperation from './types/com/atproto/identity/signPlcOperation.js'
|
|
261
269
|
export * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/identity/submitPlcOperation.js'
|
|
262
270
|
export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle.js'
|
|
@@ -766,6 +774,17 @@ export class ComAtprotoIdentityNS {
|
|
|
766
774
|
)
|
|
767
775
|
}
|
|
768
776
|
|
|
777
|
+
refreshIdentity(
|
|
778
|
+
data?: ComAtprotoIdentityRefreshIdentity.InputSchema,
|
|
779
|
+
opts?: ComAtprotoIdentityRefreshIdentity.CallOptions,
|
|
780
|
+
): Promise<ComAtprotoIdentityRefreshIdentity.Response> {
|
|
781
|
+
return this._client
|
|
782
|
+
.call('com.atproto.identity.refreshIdentity', opts?.qp, data, opts)
|
|
783
|
+
.catch((e) => {
|
|
784
|
+
throw ComAtprotoIdentityRefreshIdentity.toKnownErr(e)
|
|
785
|
+
})
|
|
786
|
+
}
|
|
787
|
+
|
|
769
788
|
requestPlcOperationSignature(
|
|
770
789
|
data?: ComAtprotoIdentityRequestPlcOperationSignature.InputSchema,
|
|
771
790
|
opts?: ComAtprotoIdentityRequestPlcOperationSignature.CallOptions,
|
|
@@ -778,16 +797,37 @@ export class ComAtprotoIdentityNS {
|
|
|
778
797
|
)
|
|
779
798
|
}
|
|
780
799
|
|
|
800
|
+
resolveDid(
|
|
801
|
+
params?: ComAtprotoIdentityResolveDid.QueryParams,
|
|
802
|
+
opts?: ComAtprotoIdentityResolveDid.CallOptions,
|
|
803
|
+
): Promise<ComAtprotoIdentityResolveDid.Response> {
|
|
804
|
+
return this._client
|
|
805
|
+
.call('com.atproto.identity.resolveDid', params, undefined, opts)
|
|
806
|
+
.catch((e) => {
|
|
807
|
+
throw ComAtprotoIdentityResolveDid.toKnownErr(e)
|
|
808
|
+
})
|
|
809
|
+
}
|
|
810
|
+
|
|
781
811
|
resolveHandle(
|
|
782
812
|
params?: ComAtprotoIdentityResolveHandle.QueryParams,
|
|
783
813
|
opts?: ComAtprotoIdentityResolveHandle.CallOptions,
|
|
784
814
|
): Promise<ComAtprotoIdentityResolveHandle.Response> {
|
|
785
|
-
return this._client
|
|
786
|
-
'com.atproto.identity.resolveHandle',
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
815
|
+
return this._client
|
|
816
|
+
.call('com.atproto.identity.resolveHandle', params, undefined, opts)
|
|
817
|
+
.catch((e) => {
|
|
818
|
+
throw ComAtprotoIdentityResolveHandle.toKnownErr(e)
|
|
819
|
+
})
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
resolveIdentity(
|
|
823
|
+
params?: ComAtprotoIdentityResolveIdentity.QueryParams,
|
|
824
|
+
opts?: ComAtprotoIdentityResolveIdentity.CallOptions,
|
|
825
|
+
): Promise<ComAtprotoIdentityResolveIdentity.Response> {
|
|
826
|
+
return this._client
|
|
827
|
+
.call('com.atproto.identity.resolveIdentity', params, undefined, opts)
|
|
828
|
+
.catch((e) => {
|
|
829
|
+
throw ComAtprotoIdentityResolveIdentity.toKnownErr(e)
|
|
830
|
+
})
|
|
791
831
|
}
|
|
792
832
|
|
|
793
833
|
signPlcOperation(
|
package/src/client/lexicons.ts
CHANGED
|
@@ -637,6 +637,32 @@ export const schemaDict = {
|
|
|
637
637
|
},
|
|
638
638
|
},
|
|
639
639
|
},
|
|
640
|
+
ComAtprotoIdentityDefs: {
|
|
641
|
+
lexicon: 1,
|
|
642
|
+
id: 'com.atproto.identity.defs',
|
|
643
|
+
defs: {
|
|
644
|
+
identityInfo: {
|
|
645
|
+
type: 'object',
|
|
646
|
+
required: ['did', 'handle', 'didDoc'],
|
|
647
|
+
properties: {
|
|
648
|
+
did: {
|
|
649
|
+
type: 'string',
|
|
650
|
+
format: 'did',
|
|
651
|
+
},
|
|
652
|
+
handle: {
|
|
653
|
+
type: 'string',
|
|
654
|
+
format: 'handle',
|
|
655
|
+
description:
|
|
656
|
+
"The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.",
|
|
657
|
+
},
|
|
658
|
+
didDoc: {
|
|
659
|
+
type: 'unknown',
|
|
660
|
+
description: 'The complete DID document for the identity.',
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
},
|
|
664
|
+
},
|
|
665
|
+
},
|
|
640
666
|
ComAtprotoIdentityGetRecommendedDidCredentials: {
|
|
641
667
|
lexicon: 1,
|
|
642
668
|
id: 'com.atproto.identity.getRecommendedDidCredentials',
|
|
@@ -676,6 +702,54 @@ export const schemaDict = {
|
|
|
676
702
|
},
|
|
677
703
|
},
|
|
678
704
|
},
|
|
705
|
+
ComAtprotoIdentityRefreshIdentity: {
|
|
706
|
+
lexicon: 1,
|
|
707
|
+
id: 'com.atproto.identity.refreshIdentity',
|
|
708
|
+
defs: {
|
|
709
|
+
main: {
|
|
710
|
+
type: 'procedure',
|
|
711
|
+
description:
|
|
712
|
+
'Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server.',
|
|
713
|
+
input: {
|
|
714
|
+
encoding: 'application/json',
|
|
715
|
+
schema: {
|
|
716
|
+
type: 'object',
|
|
717
|
+
required: ['identifier'],
|
|
718
|
+
properties: {
|
|
719
|
+
identifier: {
|
|
720
|
+
type: 'string',
|
|
721
|
+
format: 'at-identifier',
|
|
722
|
+
},
|
|
723
|
+
},
|
|
724
|
+
},
|
|
725
|
+
},
|
|
726
|
+
output: {
|
|
727
|
+
encoding: 'application/json',
|
|
728
|
+
schema: {
|
|
729
|
+
type: 'ref',
|
|
730
|
+
ref: 'lex:com.atproto.identity.defs#identityInfo',
|
|
731
|
+
},
|
|
732
|
+
},
|
|
733
|
+
errors: [
|
|
734
|
+
{
|
|
735
|
+
name: 'HandleNotFound',
|
|
736
|
+
description:
|
|
737
|
+
'The resolution process confirmed that the handle does not resolve to any DID.',
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
name: 'DidNotFound',
|
|
741
|
+
description:
|
|
742
|
+
'The DID resolution process confirmed that there is no current DID.',
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
name: 'DidDeactivated',
|
|
746
|
+
description:
|
|
747
|
+
'The DID previously existed, but has been deactivated.',
|
|
748
|
+
},
|
|
749
|
+
],
|
|
750
|
+
},
|
|
751
|
+
},
|
|
752
|
+
},
|
|
679
753
|
ComAtprotoIdentityRequestPlcOperationSignature: {
|
|
680
754
|
lexicon: 1,
|
|
681
755
|
id: 'com.atproto.identity.requestPlcOperationSignature',
|
|
@@ -687,13 +761,61 @@ export const schemaDict = {
|
|
|
687
761
|
},
|
|
688
762
|
},
|
|
689
763
|
},
|
|
764
|
+
ComAtprotoIdentityResolveDid: {
|
|
765
|
+
lexicon: 1,
|
|
766
|
+
id: 'com.atproto.identity.resolveDid',
|
|
767
|
+
defs: {
|
|
768
|
+
main: {
|
|
769
|
+
type: 'query',
|
|
770
|
+
description:
|
|
771
|
+
'Resolves DID to DID document. Does not bi-directionally verify handle.',
|
|
772
|
+
parameters: {
|
|
773
|
+
type: 'params',
|
|
774
|
+
required: ['did'],
|
|
775
|
+
properties: {
|
|
776
|
+
did: {
|
|
777
|
+
type: 'string',
|
|
778
|
+
format: 'did',
|
|
779
|
+
description: 'DID to resolve.',
|
|
780
|
+
},
|
|
781
|
+
},
|
|
782
|
+
},
|
|
783
|
+
output: {
|
|
784
|
+
encoding: 'application/json',
|
|
785
|
+
schema: {
|
|
786
|
+
type: 'object',
|
|
787
|
+
required: ['didDoc'],
|
|
788
|
+
properties: {
|
|
789
|
+
didDoc: {
|
|
790
|
+
type: 'unknown',
|
|
791
|
+
description: 'The complete DID document for the identity.',
|
|
792
|
+
},
|
|
793
|
+
},
|
|
794
|
+
},
|
|
795
|
+
},
|
|
796
|
+
errors: [
|
|
797
|
+
{
|
|
798
|
+
name: 'DidNotFound',
|
|
799
|
+
description:
|
|
800
|
+
'The DID resolution process confirmed that there is no current DID.',
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
name: 'DidDeactivated',
|
|
804
|
+
description:
|
|
805
|
+
'The DID previously existed, but has been deactivated.',
|
|
806
|
+
},
|
|
807
|
+
],
|
|
808
|
+
},
|
|
809
|
+
},
|
|
810
|
+
},
|
|
690
811
|
ComAtprotoIdentityResolveHandle: {
|
|
691
812
|
lexicon: 1,
|
|
692
813
|
id: 'com.atproto.identity.resolveHandle',
|
|
693
814
|
defs: {
|
|
694
815
|
main: {
|
|
695
816
|
type: 'query',
|
|
696
|
-
description:
|
|
817
|
+
description:
|
|
818
|
+
'Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document.',
|
|
697
819
|
parameters: {
|
|
698
820
|
type: 'params',
|
|
699
821
|
required: ['handle'],
|
|
@@ -718,6 +840,59 @@ export const schemaDict = {
|
|
|
718
840
|
},
|
|
719
841
|
},
|
|
720
842
|
},
|
|
843
|
+
errors: [
|
|
844
|
+
{
|
|
845
|
+
name: 'HandleNotFound',
|
|
846
|
+
description:
|
|
847
|
+
'The resolution process confirmed that the handle does not resolve to any DID.',
|
|
848
|
+
},
|
|
849
|
+
],
|
|
850
|
+
},
|
|
851
|
+
},
|
|
852
|
+
},
|
|
853
|
+
ComAtprotoIdentityResolveIdentity: {
|
|
854
|
+
lexicon: 1,
|
|
855
|
+
id: 'com.atproto.identity.resolveIdentity',
|
|
856
|
+
defs: {
|
|
857
|
+
main: {
|
|
858
|
+
type: 'query',
|
|
859
|
+
description:
|
|
860
|
+
'Resolves an identity (DID or Handle) to a full identity (DID document and verified handle).',
|
|
861
|
+
parameters: {
|
|
862
|
+
type: 'params',
|
|
863
|
+
required: ['identifier'],
|
|
864
|
+
properties: {
|
|
865
|
+
identifier: {
|
|
866
|
+
type: 'string',
|
|
867
|
+
format: 'at-identifier',
|
|
868
|
+
description: 'Handle or DID to resolve.',
|
|
869
|
+
},
|
|
870
|
+
},
|
|
871
|
+
},
|
|
872
|
+
output: {
|
|
873
|
+
encoding: 'application/json',
|
|
874
|
+
schema: {
|
|
875
|
+
type: 'ref',
|
|
876
|
+
ref: 'lex:com.atproto.identity.defs#identityInfo',
|
|
877
|
+
},
|
|
878
|
+
},
|
|
879
|
+
errors: [
|
|
880
|
+
{
|
|
881
|
+
name: 'HandleNotFound',
|
|
882
|
+
description:
|
|
883
|
+
'The resolution process confirmed that the handle does not resolve to any DID.',
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
name: 'DidNotFound',
|
|
887
|
+
description:
|
|
888
|
+
'The DID resolution process confirmed that there is no current DID.',
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
name: 'DidDeactivated',
|
|
892
|
+
description:
|
|
893
|
+
'The DID previously existed, but has been deactivated.',
|
|
894
|
+
},
|
|
895
|
+
],
|
|
721
896
|
},
|
|
722
897
|
},
|
|
723
898
|
},
|
|
@@ -1278,6 +1453,11 @@ export const schemaDict = {
|
|
|
1278
1453
|
type: 'token',
|
|
1279
1454
|
description: 'Appeal: appeal a previously taken moderation action',
|
|
1280
1455
|
},
|
|
1456
|
+
subjectType: {
|
|
1457
|
+
type: 'string',
|
|
1458
|
+
description: 'Tag describing a type of subject that might be reported.',
|
|
1459
|
+
knownValues: ['account', 'record', 'chat'],
|
|
1460
|
+
},
|
|
1281
1461
|
},
|
|
1282
1462
|
},
|
|
1283
1463
|
ComAtprotoRepoApplyWrites: {
|
|
@@ -1855,16 +2035,6 @@ export const schemaDict = {
|
|
|
1855
2035
|
cursor: {
|
|
1856
2036
|
type: 'string',
|
|
1857
2037
|
},
|
|
1858
|
-
rkeyStart: {
|
|
1859
|
-
type: 'string',
|
|
1860
|
-
description:
|
|
1861
|
-
'DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)',
|
|
1862
|
-
},
|
|
1863
|
-
rkeyEnd: {
|
|
1864
|
-
type: 'string',
|
|
1865
|
-
description:
|
|
1866
|
-
'DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)',
|
|
1867
|
-
},
|
|
1868
2038
|
reverse: {
|
|
1869
2039
|
type: 'boolean',
|
|
1870
2040
|
description: 'Flag to reverse the order of the returned records.',
|
|
@@ -3405,12 +3575,6 @@ export const schemaDict = {
|
|
|
3405
3575
|
description: 'Record Key',
|
|
3406
3576
|
format: 'record-key',
|
|
3407
3577
|
},
|
|
3408
|
-
commit: {
|
|
3409
|
-
type: 'string',
|
|
3410
|
-
format: 'cid',
|
|
3411
|
-
description:
|
|
3412
|
-
'DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit',
|
|
3413
|
-
},
|
|
3414
3578
|
},
|
|
3415
3579
|
},
|
|
3416
3580
|
output: {
|
|
@@ -3759,7 +3923,7 @@ export const schemaDict = {
|
|
|
3759
3923
|
main: {
|
|
3760
3924
|
type: 'procedure',
|
|
3761
3925
|
description:
|
|
3762
|
-
'Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay.',
|
|
3926
|
+
'Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl',
|
|
3763
3927
|
input: {
|
|
3764
3928
|
encoding: 'application/json',
|
|
3765
3929
|
schema: {
|
|
@@ -3827,9 +3991,6 @@ export const schemaDict = {
|
|
|
3827
3991
|
'lex:com.atproto.sync.subscribeRepos#sync',
|
|
3828
3992
|
'lex:com.atproto.sync.subscribeRepos#identity',
|
|
3829
3993
|
'lex:com.atproto.sync.subscribeRepos#account',
|
|
3830
|
-
'lex:com.atproto.sync.subscribeRepos#handle',
|
|
3831
|
-
'lex:com.atproto.sync.subscribeRepos#migrate',
|
|
3832
|
-
'lex:com.atproto.sync.subscribeRepos#tombstone',
|
|
3833
3994
|
'lex:com.atproto.sync.subscribeRepos#info',
|
|
3834
3995
|
],
|
|
3835
3996
|
},
|
|
@@ -4033,68 +4194,6 @@ export const schemaDict = {
|
|
|
4033
4194
|
},
|
|
4034
4195
|
},
|
|
4035
4196
|
},
|
|
4036
|
-
handle: {
|
|
4037
|
-
type: 'object',
|
|
4038
|
-
description: 'DEPRECATED -- Use #identity event instead',
|
|
4039
|
-
required: ['seq', 'did', 'handle', 'time'],
|
|
4040
|
-
properties: {
|
|
4041
|
-
seq: {
|
|
4042
|
-
type: 'integer',
|
|
4043
|
-
},
|
|
4044
|
-
did: {
|
|
4045
|
-
type: 'string',
|
|
4046
|
-
format: 'did',
|
|
4047
|
-
},
|
|
4048
|
-
handle: {
|
|
4049
|
-
type: 'string',
|
|
4050
|
-
format: 'handle',
|
|
4051
|
-
},
|
|
4052
|
-
time: {
|
|
4053
|
-
type: 'string',
|
|
4054
|
-
format: 'datetime',
|
|
4055
|
-
},
|
|
4056
|
-
},
|
|
4057
|
-
},
|
|
4058
|
-
migrate: {
|
|
4059
|
-
type: 'object',
|
|
4060
|
-
description: 'DEPRECATED -- Use #account event instead',
|
|
4061
|
-
required: ['seq', 'did', 'migrateTo', 'time'],
|
|
4062
|
-
nullable: ['migrateTo'],
|
|
4063
|
-
properties: {
|
|
4064
|
-
seq: {
|
|
4065
|
-
type: 'integer',
|
|
4066
|
-
},
|
|
4067
|
-
did: {
|
|
4068
|
-
type: 'string',
|
|
4069
|
-
format: 'did',
|
|
4070
|
-
},
|
|
4071
|
-
migrateTo: {
|
|
4072
|
-
type: 'string',
|
|
4073
|
-
},
|
|
4074
|
-
time: {
|
|
4075
|
-
type: 'string',
|
|
4076
|
-
format: 'datetime',
|
|
4077
|
-
},
|
|
4078
|
-
},
|
|
4079
|
-
},
|
|
4080
|
-
tombstone: {
|
|
4081
|
-
type: 'object',
|
|
4082
|
-
description: 'DEPRECATED -- Use #account event instead',
|
|
4083
|
-
required: ['seq', 'did', 'time'],
|
|
4084
|
-
properties: {
|
|
4085
|
-
seq: {
|
|
4086
|
-
type: 'integer',
|
|
4087
|
-
},
|
|
4088
|
-
did: {
|
|
4089
|
-
type: 'string',
|
|
4090
|
-
format: 'did',
|
|
4091
|
-
},
|
|
4092
|
-
time: {
|
|
4093
|
-
type: 'string',
|
|
4094
|
-
format: 'datetime',
|
|
4095
|
-
},
|
|
4096
|
-
},
|
|
4097
|
-
},
|
|
4098
4197
|
info: {
|
|
4099
4198
|
type: 'object',
|
|
4100
4199
|
required: ['name'],
|
|
@@ -5594,8 +5693,10 @@ export const schemaDict = {
|
|
|
5594
5693
|
properties: {
|
|
5595
5694
|
video: {
|
|
5596
5695
|
type: 'blob',
|
|
5696
|
+
description:
|
|
5697
|
+
'The mp4 video file. May be up to 100mb, formerly limited to 50mb.',
|
|
5597
5698
|
accept: ['video/mp4'],
|
|
5598
|
-
maxSize:
|
|
5699
|
+
maxSize: 100000000,
|
|
5599
5700
|
},
|
|
5600
5701
|
captions: {
|
|
5601
5702
|
type: 'array',
|
|
@@ -9055,6 +9156,33 @@ export const schemaDict = {
|
|
|
9055
9156
|
ref: 'lex:com.atproto.label.defs#label',
|
|
9056
9157
|
},
|
|
9057
9158
|
},
|
|
9159
|
+
reasonTypes: {
|
|
9160
|
+
description:
|
|
9161
|
+
"The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",
|
|
9162
|
+
type: 'array',
|
|
9163
|
+
items: {
|
|
9164
|
+
type: 'ref',
|
|
9165
|
+
ref: 'lex:com.atproto.moderation.defs#reasonType',
|
|
9166
|
+
},
|
|
9167
|
+
},
|
|
9168
|
+
subjectTypes: {
|
|
9169
|
+
description:
|
|
9170
|
+
'The set of subject types (account, record, etc) this service accepts reports on.',
|
|
9171
|
+
type: 'array',
|
|
9172
|
+
items: {
|
|
9173
|
+
type: 'ref',
|
|
9174
|
+
ref: 'lex:com.atproto.moderation.defs#subjectType',
|
|
9175
|
+
},
|
|
9176
|
+
},
|
|
9177
|
+
subjectCollections: {
|
|
9178
|
+
type: 'array',
|
|
9179
|
+
description:
|
|
9180
|
+
'Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.',
|
|
9181
|
+
items: {
|
|
9182
|
+
type: 'string',
|
|
9183
|
+
format: 'nsid',
|
|
9184
|
+
},
|
|
9185
|
+
},
|
|
9058
9186
|
},
|
|
9059
9187
|
},
|
|
9060
9188
|
labelerViewerState: {
|
|
@@ -9162,6 +9290,33 @@ export const schemaDict = {
|
|
|
9162
9290
|
type: 'string',
|
|
9163
9291
|
format: 'datetime',
|
|
9164
9292
|
},
|
|
9293
|
+
reasonTypes: {
|
|
9294
|
+
description:
|
|
9295
|
+
"The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",
|
|
9296
|
+
type: 'array',
|
|
9297
|
+
items: {
|
|
9298
|
+
type: 'ref',
|
|
9299
|
+
ref: 'lex:com.atproto.moderation.defs#reasonType',
|
|
9300
|
+
},
|
|
9301
|
+
},
|
|
9302
|
+
subjectTypes: {
|
|
9303
|
+
description:
|
|
9304
|
+
'The set of subject types (account, record, etc) this service accepts reports on.',
|
|
9305
|
+
type: 'array',
|
|
9306
|
+
items: {
|
|
9307
|
+
type: 'ref',
|
|
9308
|
+
ref: 'lex:com.atproto.moderation.defs#subjectType',
|
|
9309
|
+
},
|
|
9310
|
+
},
|
|
9311
|
+
subjectCollections: {
|
|
9312
|
+
type: 'array',
|
|
9313
|
+
description:
|
|
9314
|
+
'Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.',
|
|
9315
|
+
items: {
|
|
9316
|
+
type: 'string',
|
|
9317
|
+
format: 'nsid',
|
|
9318
|
+
},
|
|
9319
|
+
},
|
|
9165
9320
|
},
|
|
9166
9321
|
},
|
|
9167
9322
|
},
|
|
@@ -14351,11 +14506,15 @@ export const ids = {
|
|
|
14351
14506
|
ComAtprotoAdminUpdateAccountPassword:
|
|
14352
14507
|
'com.atproto.admin.updateAccountPassword',
|
|
14353
14508
|
ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
|
|
14509
|
+
ComAtprotoIdentityDefs: 'com.atproto.identity.defs',
|
|
14354
14510
|
ComAtprotoIdentityGetRecommendedDidCredentials:
|
|
14355
14511
|
'com.atproto.identity.getRecommendedDidCredentials',
|
|
14512
|
+
ComAtprotoIdentityRefreshIdentity: 'com.atproto.identity.refreshIdentity',
|
|
14356
14513
|
ComAtprotoIdentityRequestPlcOperationSignature:
|
|
14357
14514
|
'com.atproto.identity.requestPlcOperationSignature',
|
|
14515
|
+
ComAtprotoIdentityResolveDid: 'com.atproto.identity.resolveDid',
|
|
14358
14516
|
ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle',
|
|
14517
|
+
ComAtprotoIdentityResolveIdentity: 'com.atproto.identity.resolveIdentity',
|
|
14359
14518
|
ComAtprotoIdentitySignPlcOperation: 'com.atproto.identity.signPlcOperation',
|
|
14360
14519
|
ComAtprotoIdentitySubmitPlcOperation:
|
|
14361
14520
|
'com.atproto.identity.submitPlcOperation',
|
|
@@ -13,6 +13,7 @@ const id = 'app.bsky.embed.video'
|
|
|
13
13
|
|
|
14
14
|
export interface Main {
|
|
15
15
|
$type?: 'app.bsky.embed.video'
|
|
16
|
+
/** The mp4 video file. May be up to 100mb, formerly limited to 50mb. */
|
|
16
17
|
video: BlobRef
|
|
17
18
|
captions?: Caption[]
|
|
18
19
|
/** Alt text description of the video, for accessibility. */
|
|
@@ -7,6 +7,7 @@ import { validate as _validate } from '../../../../lexicons'
|
|
|
7
7
|
import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
|
|
8
8
|
import type * as AppBskyActorDefs from '../actor/defs.js'
|
|
9
9
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'
|
|
10
|
+
import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'
|
|
10
11
|
|
|
11
12
|
const is$typed = _is$typed,
|
|
12
13
|
validate = _validate
|
|
@@ -43,6 +44,12 @@ export interface LabelerViewDetailed {
|
|
|
43
44
|
viewer?: LabelerViewerState
|
|
44
45
|
indexedAt: string
|
|
45
46
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
47
|
+
/** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
|
|
48
|
+
reasonTypes?: ComAtprotoModerationDefs.ReasonType[]
|
|
49
|
+
/** The set of subject types (account, record, etc) this service accepts reports on. */
|
|
50
|
+
subjectTypes?: ComAtprotoModerationDefs.SubjectType[]
|
|
51
|
+
/** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
|
|
52
|
+
subjectCollections?: string[]
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
const hashLabelerViewDetailed = 'labelerViewDetailed'
|
|
@@ -7,6 +7,7 @@ import { validate as _validate } from '../../../../lexicons'
|
|
|
7
7
|
import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
|
|
8
8
|
import type * as AppBskyLabelerDefs from './defs.js'
|
|
9
9
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'
|
|
10
|
+
import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'
|
|
10
11
|
|
|
11
12
|
const is$typed = _is$typed,
|
|
12
13
|
validate = _validate
|
|
@@ -17,6 +18,12 @@ export interface Record {
|
|
|
17
18
|
policies: AppBskyLabelerDefs.LabelerPolicies
|
|
18
19
|
labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }
|
|
19
20
|
createdAt: string
|
|
21
|
+
/** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
|
|
22
|
+
reasonTypes?: ComAtprotoModerationDefs.ReasonType[]
|
|
23
|
+
/** The set of subject types (account, record, etc) this service accepts reports on. */
|
|
24
|
+
subjectTypes?: ComAtprotoModerationDefs.SubjectType[]
|
|
25
|
+
/** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
|
|
26
|
+
subjectCollections?: string[]
|
|
20
27
|
[k: string]: unknown
|
|
21
28
|
}
|
|
22
29
|
|