@atproto/api 0.14.7 → 0.14.9

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/client/index.d.ts +10 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +40 -7
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +310 -130
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +171 -67
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/video.d.ts +1 -0
  11. package/dist/client/types/app/bsky/embed/video.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/video.js.map +1 -1
  13. package/dist/client/types/com/atproto/identity/defs.d.ts +17 -0
  14. package/dist/client/types/com/atproto/identity/defs.d.ts.map +1 -0
  15. package/dist/client/types/com/atproto/identity/defs.js +16 -0
  16. package/dist/client/types/com/atproto/identity/defs.js.map +1 -0
  17. package/dist/client/types/com/atproto/identity/refreshIdentity.d.ts +33 -0
  18. package/dist/client/types/com/atproto/identity/refreshIdentity.d.ts.map +1 -0
  19. package/dist/client/types/com/atproto/identity/refreshIdentity.js +42 -0
  20. package/dist/client/types/com/atproto/identity/refreshIdentity.js.map +1 -0
  21. package/dist/client/types/com/atproto/identity/resolveDid.d.ts +32 -0
  22. package/dist/client/types/com/atproto/identity/resolveDid.d.ts.map +1 -0
  23. package/dist/client/types/com/atproto/identity/resolveDid.js +34 -0
  24. package/dist/client/types/com/atproto/identity/resolveDid.js.map +1 -0
  25. package/dist/client/types/com/atproto/identity/resolveHandle.d.ts +4 -1
  26. package/dist/client/types/com/atproto/identity/resolveHandle.d.ts.map +1 -1
  27. package/dist/client/types/com/atproto/identity/resolveHandle.js +15 -0
  28. package/dist/client/types/com/atproto/identity/resolveHandle.js.map +1 -1
  29. package/dist/client/types/com/atproto/identity/resolveIdentity.d.ts +31 -0
  30. package/dist/client/types/com/atproto/identity/resolveIdentity.d.ts.map +1 -0
  31. package/dist/client/types/com/atproto/identity/resolveIdentity.js +42 -0
  32. package/dist/client/types/com/atproto/identity/resolveIdentity.js.map +1 -0
  33. package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +0 -29
  34. package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
  35. package/dist/client/types/com/atproto/sync/subscribeRepos.js +0 -27
  36. package/dist/client/types/com/atproto/sync/subscribeRepos.js.map +1 -1
  37. package/dist/client/types/tools/ozone/team/listMembers.d.ts +1 -0
  38. package/dist/client/types/tools/ozone/team/listMembers.d.ts.map +1 -1
  39. package/dist/client/types/tools/ozone/team/listMembers.js.map +1 -1
  40. package/package.json +5 -5
  41. package/src/client/index.ts +46 -6
  42. package/src/client/lexicons.ts +186 -67
  43. package/src/client/types/app/bsky/embed/video.ts +1 -0
  44. package/src/client/types/com/atproto/identity/defs.ts +30 -0
  45. package/src/client/types/com/atproto/identity/refreshIdentity.ts +62 -0
  46. package/src/client/types/com/atproto/identity/resolveDid.ts +56 -0
  47. package/src/client/types/com/atproto/identity/resolveHandle.ts +10 -0
  48. package/src/client/types/com/atproto/identity/resolveIdentity.ts +60 -0
  49. package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -56
  50. package/src/client/types/tools/ozone/team/listMembers.ts +1 -0
  51. package/tsconfig.build.tsbuildinfo +1 -1
@@ -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: 'Resolves a handle (domain name) to a DID.',
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
  },
@@ -3816,9 +3991,6 @@ export const schemaDict = {
3816
3991
  'lex:com.atproto.sync.subscribeRepos#sync',
3817
3992
  'lex:com.atproto.sync.subscribeRepos#identity',
3818
3993
  'lex:com.atproto.sync.subscribeRepos#account',
3819
- 'lex:com.atproto.sync.subscribeRepos#handle',
3820
- 'lex:com.atproto.sync.subscribeRepos#migrate',
3821
- 'lex:com.atproto.sync.subscribeRepos#tombstone',
3822
3994
  'lex:com.atproto.sync.subscribeRepos#info',
3823
3995
  ],
3824
3996
  },
@@ -4022,68 +4194,6 @@ export const schemaDict = {
4022
4194
  },
4023
4195
  },
4024
4196
  },
4025
- handle: {
4026
- type: 'object',
4027
- description: 'DEPRECATED -- Use #identity event instead',
4028
- required: ['seq', 'did', 'handle', 'time'],
4029
- properties: {
4030
- seq: {
4031
- type: 'integer',
4032
- },
4033
- did: {
4034
- type: 'string',
4035
- format: 'did',
4036
- },
4037
- handle: {
4038
- type: 'string',
4039
- format: 'handle',
4040
- },
4041
- time: {
4042
- type: 'string',
4043
- format: 'datetime',
4044
- },
4045
- },
4046
- },
4047
- migrate: {
4048
- type: 'object',
4049
- description: 'DEPRECATED -- Use #account event instead',
4050
- required: ['seq', 'did', 'migrateTo', 'time'],
4051
- nullable: ['migrateTo'],
4052
- properties: {
4053
- seq: {
4054
- type: 'integer',
4055
- },
4056
- did: {
4057
- type: 'string',
4058
- format: 'did',
4059
- },
4060
- migrateTo: {
4061
- type: 'string',
4062
- },
4063
- time: {
4064
- type: 'string',
4065
- format: 'datetime',
4066
- },
4067
- },
4068
- },
4069
- tombstone: {
4070
- type: 'object',
4071
- description: 'DEPRECATED -- Use #account event instead',
4072
- required: ['seq', 'did', 'time'],
4073
- properties: {
4074
- seq: {
4075
- type: 'integer',
4076
- },
4077
- did: {
4078
- type: 'string',
4079
- format: 'did',
4080
- },
4081
- time: {
4082
- type: 'string',
4083
- format: 'datetime',
4084
- },
4085
- },
4086
- },
4087
4197
  info: {
4088
4198
  type: 'object',
4089
4199
  required: ['name'],
@@ -5583,8 +5693,10 @@ export const schemaDict = {
5583
5693
  properties: {
5584
5694
  video: {
5585
5695
  type: 'blob',
5696
+ description:
5697
+ 'The mp4 video file. May be up to 100mb, formerly limited to 50mb.',
5586
5698
  accept: ['video/mp4'],
5587
- maxSize: 50000000,
5699
+ maxSize: 100000000,
5588
5700
  },
5589
5701
  captions: {
5590
5702
  type: 'array',
@@ -14253,6 +14365,9 @@ export const schemaDict = {
14253
14365
  parameters: {
14254
14366
  type: 'params',
14255
14367
  properties: {
14368
+ q: {
14369
+ type: 'string',
14370
+ },
14256
14371
  disabled: {
14257
14372
  type: 'boolean',
14258
14373
  },
@@ -14394,11 +14509,15 @@ export const ids = {
14394
14509
  ComAtprotoAdminUpdateAccountPassword:
14395
14510
  'com.atproto.admin.updateAccountPassword',
14396
14511
  ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
14512
+ ComAtprotoIdentityDefs: 'com.atproto.identity.defs',
14397
14513
  ComAtprotoIdentityGetRecommendedDidCredentials:
14398
14514
  'com.atproto.identity.getRecommendedDidCredentials',
14515
+ ComAtprotoIdentityRefreshIdentity: 'com.atproto.identity.refreshIdentity',
14399
14516
  ComAtprotoIdentityRequestPlcOperationSignature:
14400
14517
  'com.atproto.identity.requestPlcOperationSignature',
14518
+ ComAtprotoIdentityResolveDid: 'com.atproto.identity.resolveDid',
14401
14519
  ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle',
14520
+ ComAtprotoIdentityResolveIdentity: 'com.atproto.identity.resolveIdentity',
14402
14521
  ComAtprotoIdentitySignPlcOperation: 'com.atproto.identity.signPlcOperation',
14403
14522
  ComAtprotoIdentitySubmitPlcOperation:
14404
14523
  '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. */
@@ -0,0 +1,30 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { CID } from 'multiformats/cid'
6
+ import { validate as _validate } from '../../../../lexicons'
7
+ import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
8
+
9
+ const is$typed = _is$typed,
10
+ validate = _validate
11
+ const id = 'com.atproto.identity.defs'
12
+
13
+ export interface IdentityInfo {
14
+ $type?: 'com.atproto.identity.defs#identityInfo'
15
+ did: string
16
+ /** The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. */
17
+ handle: string
18
+ /** The complete DID document for the identity. */
19
+ didDoc: { [_ in string]: unknown }
20
+ }
21
+
22
+ const hashIdentityInfo = 'identityInfo'
23
+
24
+ export function isIdentityInfo<V>(v: V) {
25
+ return is$typed(v, id, hashIdentityInfo)
26
+ }
27
+
28
+ export function validateIdentityInfo<V>(v: V) {
29
+ return validate<IdentityInfo & V>(v, id, hashIdentityInfo)
30
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
9
+ import type * as ComAtprotoIdentityDefs from './defs.js'
10
+
11
+ const is$typed = _is$typed,
12
+ validate = _validate
13
+ const id = 'com.atproto.identity.refreshIdentity'
14
+
15
+ export interface QueryParams {}
16
+
17
+ export interface InputSchema {
18
+ identifier: string
19
+ }
20
+
21
+ export type OutputSchema = ComAtprotoIdentityDefs.IdentityInfo
22
+
23
+ export interface CallOptions {
24
+ signal?: AbortSignal
25
+ headers?: HeadersMap
26
+ qp?: QueryParams
27
+ encoding?: 'application/json'
28
+ }
29
+
30
+ export interface Response {
31
+ success: boolean
32
+ headers: HeadersMap
33
+ data: OutputSchema
34
+ }
35
+
36
+ export class HandleNotFoundError extends XRPCError {
37
+ constructor(src: XRPCError) {
38
+ super(src.status, src.error, src.message, src.headers, { cause: src })
39
+ }
40
+ }
41
+
42
+ export class DidNotFoundError extends XRPCError {
43
+ constructor(src: XRPCError) {
44
+ super(src.status, src.error, src.message, src.headers, { cause: src })
45
+ }
46
+ }
47
+
48
+ export class DidDeactivatedError extends XRPCError {
49
+ constructor(src: XRPCError) {
50
+ super(src.status, src.error, src.message, src.headers, { cause: src })
51
+ }
52
+ }
53
+
54
+ export function toKnownErr(e: any) {
55
+ if (e instanceof XRPCError) {
56
+ if (e.error === 'HandleNotFound') return new HandleNotFoundError(e)
57
+ if (e.error === 'DidNotFound') return new DidNotFoundError(e)
58
+ if (e.error === 'DidDeactivated') return new DidDeactivatedError(e)
59
+ }
60
+
61
+ return e
62
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
9
+
10
+ const is$typed = _is$typed,
11
+ validate = _validate
12
+ const id = 'com.atproto.identity.resolveDid'
13
+
14
+ export interface QueryParams {
15
+ /** DID to resolve. */
16
+ did: string
17
+ }
18
+
19
+ export type InputSchema = undefined
20
+
21
+ export interface OutputSchema {
22
+ /** The complete DID document for the identity. */
23
+ didDoc: { [_ in string]: unknown }
24
+ }
25
+
26
+ export interface CallOptions {
27
+ signal?: AbortSignal
28
+ headers?: HeadersMap
29
+ }
30
+
31
+ export interface Response {
32
+ success: boolean
33
+ headers: HeadersMap
34
+ data: OutputSchema
35
+ }
36
+
37
+ export class DidNotFoundError extends XRPCError {
38
+ constructor(src: XRPCError) {
39
+ super(src.status, src.error, src.message, src.headers, { cause: src })
40
+ }
41
+ }
42
+
43
+ export class DidDeactivatedError extends XRPCError {
44
+ constructor(src: XRPCError) {
45
+ super(src.status, src.error, src.message, src.headers, { cause: src })
46
+ }
47
+ }
48
+
49
+ export function toKnownErr(e: any) {
50
+ if (e instanceof XRPCError) {
51
+ if (e.error === 'DidNotFound') return new DidNotFoundError(e)
52
+ if (e.error === 'DidDeactivated') return new DidDeactivatedError(e)
53
+ }
54
+
55
+ return e
56
+ }
@@ -33,6 +33,16 @@ export interface Response {
33
33
  data: OutputSchema
34
34
  }
35
35
 
36
+ export class HandleNotFoundError extends XRPCError {
37
+ constructor(src: XRPCError) {
38
+ super(src.status, src.error, src.message, src.headers, { cause: src })
39
+ }
40
+ }
41
+
36
42
  export function toKnownErr(e: any) {
43
+ if (e instanceof XRPCError) {
44
+ if (e.error === 'HandleNotFound') return new HandleNotFoundError(e)
45
+ }
46
+
37
47
  return e
38
48
  }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
9
+ import type * as ComAtprotoIdentityDefs from './defs.js'
10
+
11
+ const is$typed = _is$typed,
12
+ validate = _validate
13
+ const id = 'com.atproto.identity.resolveIdentity'
14
+
15
+ export interface QueryParams {
16
+ /** Handle or DID to resolve. */
17
+ identifier: string
18
+ }
19
+
20
+ export type InputSchema = undefined
21
+ export type OutputSchema = ComAtprotoIdentityDefs.IdentityInfo
22
+
23
+ export interface CallOptions {
24
+ signal?: AbortSignal
25
+ headers?: HeadersMap
26
+ }
27
+
28
+ export interface Response {
29
+ success: boolean
30
+ headers: HeadersMap
31
+ data: OutputSchema
32
+ }
33
+
34
+ export class HandleNotFoundError extends XRPCError {
35
+ constructor(src: XRPCError) {
36
+ super(src.status, src.error, src.message, src.headers, { cause: src })
37
+ }
38
+ }
39
+
40
+ export class DidNotFoundError extends XRPCError {
41
+ constructor(src: XRPCError) {
42
+ super(src.status, src.error, src.message, src.headers, { cause: src })
43
+ }
44
+ }
45
+
46
+ export class DidDeactivatedError extends XRPCError {
47
+ constructor(src: XRPCError) {
48
+ super(src.status, src.error, src.message, src.headers, { cause: src })
49
+ }
50
+ }
51
+
52
+ export function toKnownErr(e: any) {
53
+ if (e instanceof XRPCError) {
54
+ if (e.error === 'HandleNotFound') return new HandleNotFoundError(e)
55
+ if (e.error === 'DidNotFound') return new DidNotFoundError(e)
56
+ if (e.error === 'DidDeactivated') return new DidDeactivatedError(e)
57
+ }
58
+
59
+ return e
60
+ }
@@ -122,62 +122,6 @@ export function validateAccount<V>(v: V) {
122
122
  return validate<Account & V>(v, id, hashAccount)
123
123
  }
124
124
 
125
- /** DEPRECATED -- Use #identity event instead */
126
- export interface Handle {
127
- $type?: 'com.atproto.sync.subscribeRepos#handle'
128
- seq: number
129
- did: string
130
- handle: string
131
- time: string
132
- }
133
-
134
- const hashHandle = 'handle'
135
-
136
- export function isHandle<V>(v: V) {
137
- return is$typed(v, id, hashHandle)
138
- }
139
-
140
- export function validateHandle<V>(v: V) {
141
- return validate<Handle & V>(v, id, hashHandle)
142
- }
143
-
144
- /** DEPRECATED -- Use #account event instead */
145
- export interface Migrate {
146
- $type?: 'com.atproto.sync.subscribeRepos#migrate'
147
- seq: number
148
- did: string
149
- migrateTo: string | null
150
- time: string
151
- }
152
-
153
- const hashMigrate = 'migrate'
154
-
155
- export function isMigrate<V>(v: V) {
156
- return is$typed(v, id, hashMigrate)
157
- }
158
-
159
- export function validateMigrate<V>(v: V) {
160
- return validate<Migrate & V>(v, id, hashMigrate)
161
- }
162
-
163
- /** DEPRECATED -- Use #account event instead */
164
- export interface Tombstone {
165
- $type?: 'com.atproto.sync.subscribeRepos#tombstone'
166
- seq: number
167
- did: string
168
- time: string
169
- }
170
-
171
- const hashTombstone = 'tombstone'
172
-
173
- export function isTombstone<V>(v: V) {
174
- return is$typed(v, id, hashTombstone)
175
- }
176
-
177
- export function validateTombstone<V>(v: V) {
178
- return validate<Tombstone & V>(v, id, hashTombstone)
179
- }
180
-
181
125
  export interface Info {
182
126
  $type?: 'com.atproto.sync.subscribeRepos#info'
183
127
  name: 'OutdatedCursor' | (string & {})
@@ -13,6 +13,7 @@ const is$typed = _is$typed,
13
13
  const id = 'tools.ozone.team.listMembers'
14
14
 
15
15
  export interface QueryParams {
16
+ q?: string
16
17
  disabled?: boolean
17
18
  roles?: string[]
18
19
  limit?: number