@atproto/api 0.0.8 → 0.1.1

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 (38) hide show
  1. package/README.md +44 -6
  2. package/dist/agent.d.ts +22 -0
  3. package/dist/client/index.d.ts +63 -61
  4. package/dist/client/lexicons.d.ts +237 -23
  5. package/dist/client/types/app/bsky/actor/getProfiles.d.ts +19 -0
  6. package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +0 -7
  7. package/dist/client/types/app/bsky/actor/profile.d.ts +25 -0
  8. package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
  9. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +13 -2
  10. package/dist/client/types/com/atproto/admin/record.d.ts +5 -2
  11. package/dist/client/types/com/atproto/admin/repo.d.ts +2 -2
  12. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +5 -1
  13. package/dist/client/types/com/atproto/sync/getRepo.d.ts +2 -1
  14. package/dist/index.d.ts +3 -3
  15. package/dist/index.js +623 -253
  16. package/dist/index.js.map +4 -4
  17. package/dist/types.d.ts +33 -0
  18. package/package.json +1 -1
  19. package/src/agent.ts +305 -0
  20. package/src/client/index.ts +75 -63
  21. package/src/client/lexicons.ts +281 -38
  22. package/src/client/types/app/bsky/actor/getProfiles.ts +35 -0
  23. package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -18
  24. package/src/client/types/app/bsky/actor/profile.ts +45 -0
  25. package/src/client/types/com/atproto/admin/blob.ts +84 -0
  26. package/src/client/types/com/atproto/admin/moderationAction.ts +29 -10
  27. package/src/client/types/com/atproto/admin/record.ts +5 -2
  28. package/src/client/types/com/atproto/admin/repo.ts +2 -2
  29. package/src/client/types/com/atproto/admin/takeModerationAction.ts +8 -0
  30. package/src/client/types/com/atproto/sync/getRepo.ts +4 -2
  31. package/src/index.ts +3 -3
  32. package/src/types.ts +71 -0
  33. package/tests/_util.ts +26 -0
  34. package/tests/agent.test.ts +391 -0
  35. package/tests/errors.test.ts +4 -8
  36. package/tsconfig.build.tsbuildinfo +1 -1
  37. package/src/session.ts +0 -194
  38. package/tests/session.test.ts +0 -239
@@ -193,6 +193,75 @@ export declare const schemaDict: {
193
193
  };
194
194
  };
195
195
  };
196
+ ComAtprotoAdminBlob: {
197
+ lexicon: number;
198
+ id: string;
199
+ defs: {
200
+ view: {
201
+ type: string;
202
+ required: string[];
203
+ properties: {
204
+ cid: {
205
+ type: string;
206
+ };
207
+ mimeType: {
208
+ type: string;
209
+ };
210
+ size: {
211
+ type: string;
212
+ };
213
+ createdAt: {
214
+ type: string;
215
+ };
216
+ details: {
217
+ type: string;
218
+ refs: string[];
219
+ };
220
+ moderation: {
221
+ type: string;
222
+ ref: string;
223
+ };
224
+ };
225
+ };
226
+ imageDetails: {
227
+ type: string;
228
+ required: string[];
229
+ properties: {
230
+ width: {
231
+ type: string;
232
+ };
233
+ height: {
234
+ type: string;
235
+ };
236
+ };
237
+ };
238
+ videoDetails: {
239
+ type: string;
240
+ required: string[];
241
+ properties: {
242
+ width: {
243
+ type: string;
244
+ };
245
+ height: {
246
+ type: string;
247
+ };
248
+ length: {
249
+ type: string;
250
+ };
251
+ };
252
+ };
253
+ moderation: {
254
+ type: string;
255
+ required: never[];
256
+ properties: {
257
+ currentAction: {
258
+ type: string;
259
+ ref: string;
260
+ };
261
+ };
262
+ };
263
+ };
264
+ };
196
265
  ComAtprotoAdminGetModerationAction: {
197
266
  lexicon: number;
198
267
  id: string;
@@ -408,12 +477,18 @@ export declare const schemaDict: {
408
477
  };
409
478
  action: {
410
479
  type: string;
411
- knownValues: string[];
480
+ ref: string;
412
481
  };
413
482
  subject: {
414
483
  type: string;
415
484
  refs: string[];
416
485
  };
486
+ subjectBlobCids: {
487
+ type: string;
488
+ items: {
489
+ type: string;
490
+ };
491
+ };
417
492
  reason: {
418
493
  type: string;
419
494
  };
@@ -444,12 +519,19 @@ export declare const schemaDict: {
444
519
  };
445
520
  action: {
446
521
  type: string;
447
- knownValues: string[];
522
+ ref: string;
448
523
  };
449
524
  subject: {
450
525
  type: string;
451
526
  refs: string[];
452
527
  };
528
+ subjectBlobs: {
529
+ type: string;
530
+ items: {
531
+ type: string;
532
+ ref: string;
533
+ };
534
+ };
453
535
  reason: {
454
536
  type: string;
455
537
  };
@@ -472,6 +554,19 @@ export declare const schemaDict: {
472
554
  };
473
555
  };
474
556
  };
557
+ viewCurrent: {
558
+ type: string;
559
+ required: string[];
560
+ properties: {
561
+ id: {
562
+ type: string;
563
+ };
564
+ action: {
565
+ type: string;
566
+ ref: string;
567
+ };
568
+ };
569
+ };
475
570
  reversal: {
476
571
  type: string;
477
572
  required: string[];
@@ -487,6 +582,10 @@ export declare const schemaDict: {
487
582
  };
488
583
  };
489
584
  };
585
+ actionType: {
586
+ type: string;
587
+ knownValues: string[];
588
+ };
490
589
  takedown: {
491
590
  type: string;
492
591
  description: string;
@@ -589,6 +688,12 @@ export declare const schemaDict: {
589
688
  value: {
590
689
  type: string;
591
690
  };
691
+ blobCids: {
692
+ type: string;
693
+ items: {
694
+ type: string;
695
+ };
696
+ };
592
697
  indexedAt: {
593
698
  type: string;
594
699
  };
@@ -615,6 +720,13 @@ export declare const schemaDict: {
615
720
  value: {
616
721
  type: string;
617
722
  };
723
+ blobs: {
724
+ type: string;
725
+ items: {
726
+ type: string;
727
+ ref: string;
728
+ };
729
+ };
618
730
  indexedAt: {
619
731
  type: string;
620
732
  };
@@ -632,8 +744,9 @@ export declare const schemaDict: {
632
744
  type: string;
633
745
  required: never[];
634
746
  properties: {
635
- takedownId: {
747
+ currentAction: {
636
748
  type: string;
749
+ ref: string;
637
750
  };
638
751
  };
639
752
  };
@@ -641,6 +754,10 @@ export declare const schemaDict: {
641
754
  type: string;
642
755
  required: string[];
643
756
  properties: {
757
+ currentAction: {
758
+ type: string;
759
+ ref: string;
760
+ };
644
761
  actions: {
645
762
  type: string;
646
763
  items: {
@@ -655,9 +772,6 @@ export declare const schemaDict: {
655
772
  ref: string;
656
773
  };
657
774
  };
658
- takedownId: {
659
- type: string;
660
- };
661
775
  };
662
776
  };
663
777
  };
@@ -737,8 +851,9 @@ export declare const schemaDict: {
737
851
  type: string;
738
852
  required: never[];
739
853
  properties: {
740
- takedownId: {
854
+ currentAction: {
741
855
  type: string;
856
+ ref: string;
742
857
  };
743
858
  };
744
859
  };
@@ -746,6 +861,10 @@ export declare const schemaDict: {
746
861
  type: string;
747
862
  required: string[];
748
863
  properties: {
864
+ currentAction: {
865
+ type: string;
866
+ ref: string;
867
+ };
749
868
  actions: {
750
869
  type: string;
751
870
  items: {
@@ -760,9 +879,6 @@ export declare const schemaDict: {
760
879
  ref: string;
761
880
  };
762
881
  };
763
- takedownId: {
764
- type: string;
765
- };
766
882
  };
767
883
  };
768
884
  };
@@ -907,6 +1023,12 @@ export declare const schemaDict: {
907
1023
  type: string;
908
1024
  refs: string[];
909
1025
  };
1026
+ subjectBlobCids: {
1027
+ type: string;
1028
+ items: {
1029
+ type: string;
1030
+ };
1031
+ };
910
1032
  reason: {
911
1033
  type: string;
912
1034
  };
@@ -923,6 +1045,9 @@ export declare const schemaDict: {
923
1045
  ref: string;
924
1046
  };
925
1047
  };
1048
+ errors: {
1049
+ name: string;
1050
+ }[];
926
1051
  };
927
1052
  };
928
1053
  };
@@ -1876,7 +2001,11 @@ export declare const schemaDict: {
1876
2001
  type: string;
1877
2002
  description: string;
1878
2003
  };
1879
- from: {
2004
+ earliest: {
2005
+ type: string;
2006
+ description: string;
2007
+ };
2008
+ latest: {
1880
2009
  type: string;
1881
2010
  description: string;
1882
2011
  };
@@ -1966,6 +2095,44 @@ export declare const schemaDict: {
1966
2095
  };
1967
2096
  };
1968
2097
  };
2098
+ AppBskyActorGetProfiles: {
2099
+ lexicon: number;
2100
+ id: string;
2101
+ defs: {
2102
+ main: {
2103
+ type: string;
2104
+ parameters: {
2105
+ type: string;
2106
+ required: string[];
2107
+ properties: {
2108
+ actors: {
2109
+ type: string;
2110
+ items: {
2111
+ type: string;
2112
+ };
2113
+ maxLength: number;
2114
+ };
2115
+ };
2116
+ };
2117
+ output: {
2118
+ encoding: string;
2119
+ schema: {
2120
+ type: string;
2121
+ required: string[];
2122
+ properties: {
2123
+ profiles: {
2124
+ type: string;
2125
+ items: {
2126
+ type: string;
2127
+ ref: string;
2128
+ };
2129
+ };
2130
+ };
2131
+ };
2132
+ };
2133
+ };
2134
+ };
2135
+ };
1969
2136
  AppBskyActorGetSuggestions: {
1970
2137
  lexicon: number;
1971
2138
  id: string;
@@ -2034,18 +2201,6 @@ export declare const schemaDict: {
2034
2201
  indexedAt: {
2035
2202
  type: string;
2036
2203
  };
2037
- myState: {
2038
- type: string;
2039
- ref: string;
2040
- };
2041
- };
2042
- };
2043
- myState: {
2044
- type: string;
2045
- properties: {
2046
- follow: {
2047
- type: string;
2048
- };
2049
2204
  };
2050
2205
  };
2051
2206
  };
@@ -2086,6 +2241,63 @@ export declare const schemaDict: {
2086
2241
  };
2087
2242
  };
2088
2243
  };
2244
+ view: {
2245
+ type: string;
2246
+ required: string[];
2247
+ properties: {
2248
+ did: {
2249
+ type: string;
2250
+ };
2251
+ declaration: {
2252
+ type: string;
2253
+ ref: string;
2254
+ };
2255
+ handle: {
2256
+ type: string;
2257
+ };
2258
+ creator: {
2259
+ type: string;
2260
+ };
2261
+ displayName: {
2262
+ type: string;
2263
+ maxLength: number;
2264
+ };
2265
+ description: {
2266
+ type: string;
2267
+ maxLength: number;
2268
+ };
2269
+ avatar: {
2270
+ type: string;
2271
+ };
2272
+ banner: {
2273
+ type: string;
2274
+ };
2275
+ followersCount: {
2276
+ type: string;
2277
+ };
2278
+ followsCount: {
2279
+ type: string;
2280
+ };
2281
+ postsCount: {
2282
+ type: string;
2283
+ };
2284
+ myState: {
2285
+ type: string;
2286
+ ref: string;
2287
+ };
2288
+ };
2289
+ };
2290
+ myState: {
2291
+ type: string;
2292
+ properties: {
2293
+ follow: {
2294
+ type: string;
2295
+ };
2296
+ muted: {
2297
+ type: string;
2298
+ };
2299
+ };
2300
+ };
2089
2301
  };
2090
2302
  };
2091
2303
  AppBskyActorRef: {
@@ -3630,6 +3842,7 @@ export declare const ids: {
3630
3842
  ComAtprotoAccountRequestDelete: string;
3631
3843
  ComAtprotoAccountRequestPasswordReset: string;
3632
3844
  ComAtprotoAccountResetPassword: string;
3845
+ ComAtprotoAdminBlob: string;
3633
3846
  ComAtprotoAdminGetModerationAction: string;
3634
3847
  ComAtprotoAdminGetModerationActions: string;
3635
3848
  ComAtprotoAdminGetModerationReport: string;
@@ -3670,6 +3883,7 @@ export declare const ids: {
3670
3883
  ComAtprotoSyncGetRecord: string;
3671
3884
  ComAtprotoSyncGetRepo: string;
3672
3885
  AppBskyActorGetProfile: string;
3886
+ AppBskyActorGetProfiles: string;
3673
3887
  AppBskyActorGetSuggestions: string;
3674
3888
  AppBskyActorProfile: string;
3675
3889
  AppBskyActorRef: string;
@@ -0,0 +1,19 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as AppBskyActorProfile from './profile';
3
+ export interface QueryParams {
4
+ actors: string[];
5
+ }
6
+ export declare type InputSchema = undefined;
7
+ export interface OutputSchema {
8
+ profiles: AppBskyActorProfile.View[];
9
+ [k: string]: unknown;
10
+ }
11
+ export interface CallOptions {
12
+ headers?: Headers;
13
+ }
14
+ export interface Response {
15
+ success: boolean;
16
+ headers: Headers;
17
+ data: OutputSchema;
18
+ }
19
+ export declare function toKnownErr(e: any): any;
@@ -28,14 +28,7 @@ export interface Actor {
28
28
  description?: string;
29
29
  avatar?: string;
30
30
  indexedAt?: string;
31
- myState?: MyState;
32
31
  [k: string]: unknown;
33
32
  }
34
33
  export declare function isActor(v: unknown): v is Actor;
35
34
  export declare function validateActor(v: unknown): ValidationResult;
36
- export interface MyState {
37
- follow?: string;
38
- [k: string]: unknown;
39
- }
40
- export declare function isMyState(v: unknown): v is MyState;
41
- export declare function validateMyState(v: unknown): ValidationResult;
@@ -1,4 +1,5 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
+ import * as AppBskySystemDeclRef from '../system/declRef';
2
3
  export interface Record {
3
4
  displayName: string;
4
5
  description?: string;
@@ -16,3 +17,27 @@ export interface Record {
16
17
  }
17
18
  export declare function isRecord(v: unknown): v is Record;
18
19
  export declare function validateRecord(v: unknown): ValidationResult;
20
+ export interface View {
21
+ did: string;
22
+ declaration: AppBskySystemDeclRef.Main;
23
+ handle: string;
24
+ creator: string;
25
+ displayName?: string;
26
+ description?: string;
27
+ avatar?: string;
28
+ banner?: string;
29
+ followersCount: number;
30
+ followsCount: number;
31
+ postsCount: number;
32
+ myState?: MyState;
33
+ [k: string]: unknown;
34
+ }
35
+ export declare function isView(v: unknown): v is View;
36
+ export declare function validateView(v: unknown): ValidationResult;
37
+ export interface MyState {
38
+ follow?: string;
39
+ muted?: boolean;
40
+ [k: string]: unknown;
41
+ }
42
+ export declare function isMyState(v: unknown): v is MyState;
43
+ export declare function validateMyState(v: unknown): ValidationResult;
@@ -0,0 +1,37 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoAdminModerationAction from './moderationAction';
3
+ export interface View {
4
+ cid: string;
5
+ mimeType: string;
6
+ size: number;
7
+ createdAt: string;
8
+ details?: ImageDetails | VideoDetails | {
9
+ $type: string;
10
+ [k: string]: unknown;
11
+ };
12
+ moderation?: Moderation;
13
+ [k: string]: unknown;
14
+ }
15
+ export declare function isView(v: unknown): v is View;
16
+ export declare function validateView(v: unknown): ValidationResult;
17
+ export interface ImageDetails {
18
+ width: number;
19
+ height: number;
20
+ [k: string]: unknown;
21
+ }
22
+ export declare function isImageDetails(v: unknown): v is ImageDetails;
23
+ export declare function validateImageDetails(v: unknown): ValidationResult;
24
+ export interface VideoDetails {
25
+ width: number;
26
+ height: number;
27
+ length: number;
28
+ [k: string]: unknown;
29
+ }
30
+ export declare function isVideoDetails(v: unknown): v is VideoDetails;
31
+ export declare function validateVideoDetails(v: unknown): ValidationResult;
32
+ export interface Moderation {
33
+ currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
34
+ [k: string]: unknown;
35
+ }
36
+ export declare function isModeration(v: unknown): v is Moderation;
37
+ export declare function validateModeration(v: unknown): ValidationResult;
@@ -3,14 +3,16 @@ import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
3
3
  import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
4
4
  import * as ComAtprotoAdminRepo from './repo';
5
5
  import * as ComAtprotoAdminRecord from './record';
6
+ import * as ComAtprotoAdminBlob from './blob';
6
7
  import * as ComAtprotoAdminModerationReport from './moderationReport';
7
8
  export interface View {
8
9
  id: number;
9
- action: 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
10
+ action: ActionType;
10
11
  subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
11
12
  $type: string;
12
13
  [k: string]: unknown;
13
14
  };
15
+ subjectBlobCids: string[];
14
16
  reason: string;
15
17
  createdBy: string;
16
18
  createdAt: string;
@@ -22,11 +24,12 @@ export declare function isView(v: unknown): v is View;
22
24
  export declare function validateView(v: unknown): ValidationResult;
23
25
  export interface ViewDetail {
24
26
  id: number;
25
- action: 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
27
+ action: ActionType;
26
28
  subject: ComAtprotoAdminRepo.View | ComAtprotoAdminRecord.View | {
27
29
  $type: string;
28
30
  [k: string]: unknown;
29
31
  };
32
+ subjectBlobs: ComAtprotoAdminBlob.View[];
30
33
  reason: string;
31
34
  createdBy: string;
32
35
  createdAt: string;
@@ -36,6 +39,13 @@ export interface ViewDetail {
36
39
  }
37
40
  export declare function isViewDetail(v: unknown): v is ViewDetail;
38
41
  export declare function validateViewDetail(v: unknown): ValidationResult;
42
+ export interface ViewCurrent {
43
+ id: number;
44
+ action: ActionType;
45
+ [k: string]: unknown;
46
+ }
47
+ export declare function isViewCurrent(v: unknown): v is ViewCurrent;
48
+ export declare function validateViewCurrent(v: unknown): ValidationResult;
39
49
  export interface Reversal {
40
50
  reason: string;
41
51
  createdBy: string;
@@ -44,6 +54,7 @@ export interface Reversal {
44
54
  }
45
55
  export declare function isReversal(v: unknown): v is Reversal;
46
56
  export declare function validateReversal(v: unknown): ValidationResult;
57
+ export declare type ActionType = 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
47
58
  export declare const TAKEDOWN = "com.atproto.admin.moderationAction#takedown";
48
59
  export declare const FLAG = "com.atproto.admin.moderationAction#flag";
49
60
  export declare const ACKNOWLEDGE = "com.atproto.admin.moderationAction#acknowledge";
@@ -1,11 +1,13 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
2
  import * as ComAtprotoAdminRepo from './repo';
3
+ import * as ComAtprotoAdminBlob from './blob';
3
4
  import * as ComAtprotoAdminModerationAction from './moderationAction';
4
5
  import * as ComAtprotoAdminModerationReport from './moderationReport';
5
6
  export interface View {
6
7
  uri: string;
7
8
  cid: string;
8
9
  value: {};
10
+ blobCids: string[];
9
11
  indexedAt: string;
10
12
  moderation: Moderation;
11
13
  repo: ComAtprotoAdminRepo.View;
@@ -17,6 +19,7 @@ export interface ViewDetail {
17
19
  uri: string;
18
20
  cid: string;
19
21
  value: {};
22
+ blobs: ComAtprotoAdminBlob.View[];
20
23
  indexedAt: string;
21
24
  moderation: ModerationDetail;
22
25
  repo: ComAtprotoAdminRepo.View;
@@ -25,15 +28,15 @@ export interface ViewDetail {
25
28
  export declare function isViewDetail(v: unknown): v is ViewDetail;
26
29
  export declare function validateViewDetail(v: unknown): ValidationResult;
27
30
  export interface Moderation {
28
- takedownId?: number;
31
+ currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
29
32
  [k: string]: unknown;
30
33
  }
31
34
  export declare function isModeration(v: unknown): v is Moderation;
32
35
  export declare function validateModeration(v: unknown): ValidationResult;
33
36
  export interface ModerationDetail {
37
+ currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
34
38
  actions: ComAtprotoAdminModerationAction.View[];
35
39
  reports: ComAtprotoAdminModerationReport.View[];
36
- takedownId?: number;
37
40
  [k: string]: unknown;
38
41
  }
39
42
  export declare function isModerationDetail(v: unknown): v is ModerationDetail;
@@ -30,15 +30,15 @@ export interface Account {
30
30
  export declare function isAccount(v: unknown): v is Account;
31
31
  export declare function validateAccount(v: unknown): ValidationResult;
32
32
  export interface Moderation {
33
- takedownId?: number;
33
+ currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
34
34
  [k: string]: unknown;
35
35
  }
36
36
  export declare function isModeration(v: unknown): v is Moderation;
37
37
  export declare function validateModeration(v: unknown): ValidationResult;
38
38
  export interface ModerationDetail {
39
+ currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
39
40
  actions: ComAtprotoAdminModerationAction.View[];
40
41
  reports: ComAtprotoAdminModerationReport.View[];
41
- takedownId?: number;
42
42
  [k: string]: unknown;
43
43
  }
44
44
  export declare function isModerationDetail(v: unknown): v is ModerationDetail;
@@ -1,4 +1,4 @@
1
- import { Headers } from '@atproto/xrpc';
1
+ import { Headers, XRPCError } from '@atproto/xrpc';
2
2
  import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
3
3
  import * as ComAtprotoRepoRecordRef from '../repo/recordRef';
4
4
  import * as ComAtprotoAdminModerationAction from './moderationAction';
@@ -10,6 +10,7 @@ export interface InputSchema {
10
10
  $type: string;
11
11
  [k: string]: unknown;
12
12
  };
13
+ subjectBlobCids?: string[];
13
14
  reason: string;
14
15
  createdBy: string;
15
16
  [k: string]: unknown;
@@ -25,4 +26,7 @@ export interface Response {
25
26
  headers: Headers;
26
27
  data: OutputSchema;
27
28
  }
29
+ export declare class SubjectHasActionError extends XRPCError {
30
+ constructor(src: XRPCError);
31
+ }
28
32
  export declare function toKnownErr(e: any): any;
@@ -1,7 +1,8 @@
1
1
  import { Headers } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  did: string;
4
- from?: string;
4
+ earliest?: string;
5
+ latest?: string;
5
6
  }
6
7
  export declare type InputSchema = undefined;
7
8
  export interface CallOptions {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
+ export * from './types';
1
2
  export * from './client';
2
- export { default } from './client';
3
- export * from './session';
4
- export { default as sessionClient } from './session';
3
+ export * from './agent';
4
+ export { AtpAgent as default } from './agent';