@atproto/api 0.6.3 → 0.6.4

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 (76) hide show
  1. package/dist/client/lexicons.d.ts +16 -0
  2. package/dist/client/types/com/atproto/admin/defs.d.ts +3 -0
  3. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +1 -0
  4. package/dist/index.js +50 -34
  5. package/dist/index.js.map +2 -2
  6. package/package.json +1 -1
  7. package/src/client/lexicons.ts +20 -0
  8. package/src/client/types/com/atproto/admin/defs.ts +6 -0
  9. package/src/client/types/com/atproto/admin/takeModerationAction.ts +2 -0
  10. package/tsconfig.build.tsbuildinfo +1 -1
  11. package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
  12. package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
  13. package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
  14. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
  15. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
  16. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
  17. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +0 -21
  18. package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
  19. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +0 -17
  20. package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
  21. package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
  22. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +0 -17
  23. package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
  24. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  25. package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  26. package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
  27. package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
  28. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
  29. package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +0 -21
  30. package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
  31. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
  32. package/dist/client/types/app/bsky/graph/listblock.d.ts +0 -8
  33. package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
  34. package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +0 -17
  35. package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
  36. package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +0 -17
  37. package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
  38. package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
  39. package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
  40. package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
  41. package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
  42. package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
  43. package/dist/client/types/com/atproto/account/create.d.ts +0 -41
  44. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  45. package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
  46. package/dist/client/types/com/atproto/account/get.d.ts +0 -12
  47. package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
  48. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  49. package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  50. package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
  51. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
  52. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
  53. package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
  54. package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
  55. package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
  56. package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
  57. package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
  58. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
  59. package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
  60. package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
  61. package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
  62. package/dist/client/types/com/atproto/report/create.d.ts +0 -39
  63. package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
  64. package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
  65. package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
  66. package/dist/client/types/com/atproto/session/create.d.ts +0 -29
  67. package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
  68. package/dist/client/types/com/atproto/session/get.d.ts +0 -18
  69. package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
  70. package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
  71. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
  72. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  73. package/dist/helpers/bsky.d.ts +0 -20
  74. package/dist/mixins/bsky.d.ts +0 -23
  75. package/dist/rich-text/sanitize.d.ts +0 -4
  76. package/dist/session.d.ts +0 -42
@@ -15,6 +15,10 @@ export declare const schemaDict: {
15
15
  type: string;
16
16
  ref: string;
17
17
  };
18
+ durationInHours: {
19
+ type: string;
20
+ description: string;
21
+ };
18
22
  subject: {
19
23
  type: string;
20
24
  refs: string[];
@@ -71,6 +75,10 @@ export declare const schemaDict: {
71
75
  type: string;
72
76
  ref: string;
73
77
  };
78
+ durationInHours: {
79
+ type: string;
80
+ description: string;
81
+ };
74
82
  subject: {
75
83
  type: string;
76
84
  refs: string[];
@@ -129,6 +137,10 @@ export declare const schemaDict: {
129
137
  type: string;
130
138
  ref: string;
131
139
  };
140
+ durationInHours: {
141
+ type: string;
142
+ description: string;
143
+ };
132
144
  };
133
145
  };
134
146
  actionReversal: {
@@ -1144,6 +1156,10 @@ export declare const schemaDict: {
1144
1156
  reason: {
1145
1157
  type: string;
1146
1158
  };
1159
+ durationInHours: {
1160
+ type: string;
1161
+ description: string;
1162
+ };
1147
1163
  createdBy: {
1148
1164
  type: string;
1149
1165
  format: string;
@@ -6,6 +6,7 @@ import * as ComAtprotoLabelDefs from '../label/defs';
6
6
  export interface ActionView {
7
7
  id: number;
8
8
  action: ActionType;
9
+ durationInHours?: number;
9
10
  subject: RepoRef | ComAtprotoRepoStrongRef.Main | {
10
11
  $type: string;
11
12
  [k: string]: unknown;
@@ -25,6 +26,7 @@ export declare function validateActionView(v: unknown): ValidationResult;
25
26
  export interface ActionViewDetail {
26
27
  id: number;
27
28
  action: ActionType;
29
+ durationInHours?: number;
28
30
  subject: RepoView | RepoViewNotFound | RecordView | RecordViewNotFound | {
29
31
  $type: string;
30
32
  [k: string]: unknown;
@@ -44,6 +46,7 @@ export declare function validateActionViewDetail(v: unknown): ValidationResult;
44
46
  export interface ActionViewCurrent {
45
47
  id: number;
46
48
  action: ActionType;
49
+ durationInHours?: number;
47
50
  [k: string]: unknown;
48
51
  }
49
52
  export declare function isActionViewCurrent(v: unknown): v is ActionViewCurrent;
@@ -13,6 +13,7 @@ export interface InputSchema {
13
13
  createLabelVals?: string[];
14
14
  negateLabelVals?: string[];
15
15
  reason: string;
16
+ durationInHours?: number;
16
17
  createdBy: string;
17
18
  [k: string]: unknown;
18
19
  }
package/dist/index.js CHANGED
@@ -15740,6 +15740,10 @@ var schemaDict = {
15740
15740
  type: "ref",
15741
15741
  ref: "lex:com.atproto.admin.defs#actionType"
15742
15742
  },
15743
+ durationInHours: {
15744
+ type: "integer",
15745
+ description: "Indicates how long this action was meant to be in effect before automatically expiring."
15746
+ },
15743
15747
  subject: {
15744
15748
  type: "union",
15745
15749
  refs: [
@@ -15808,6 +15812,10 @@ var schemaDict = {
15808
15812
  type: "ref",
15809
15813
  ref: "lex:com.atproto.admin.defs#actionType"
15810
15814
  },
15815
+ durationInHours: {
15816
+ type: "integer",
15817
+ description: "Indicates how long this action was meant to be in effect before automatically expiring."
15818
+ },
15811
15819
  subject: {
15812
15820
  type: "union",
15813
15821
  refs: [
@@ -15870,6 +15878,10 @@ var schemaDict = {
15870
15878
  action: {
15871
15879
  type: "ref",
15872
15880
  ref: "lex:com.atproto.admin.defs#actionType"
15881
+ },
15882
+ durationInHours: {
15883
+ type: "integer",
15884
+ description: "Indicates how long this action was meant to be in effect before automatically expiring."
15873
15885
  }
15874
15886
  }
15875
15887
  },
@@ -16965,6 +16977,10 @@ var schemaDict = {
16965
16977
  reason: {
16966
16978
  type: "string"
16967
16979
  },
16980
+ durationInHours: {
16981
+ type: "integer",
16982
+ description: "Indicates how long this action was meant to be in effect before automatically expiring."
16983
+ },
16968
16984
  createdBy: {
16969
16985
  type: "string",
16970
16986
  format: "did"
@@ -22306,7 +22322,7 @@ __export(getRecord_exports, {
22306
22322
  });
22307
22323
  var RecordNotFoundError = class extends XRPCError {
22308
22324
  constructor(src2) {
22309
- super(src2.status, src2.error, src2.message);
22325
+ super(src2.status, src2.error, src2.message, src2.headers);
22310
22326
  }
22311
22327
  };
22312
22328
  function toKnownErr9(e) {
@@ -22325,7 +22341,7 @@ __export(getRepo_exports, {
22325
22341
  });
22326
22342
  var RepoNotFoundError = class extends XRPCError {
22327
22343
  constructor(src2) {
22328
- super(src2.status, src2.error, src2.message);
22344
+ super(src2.status, src2.error, src2.message, src2.headers);
22329
22345
  }
22330
22346
  };
22331
22347
  function toKnownErr10(e) {
@@ -22345,12 +22361,12 @@ __export(rebaseRepo_exports, {
22345
22361
  });
22346
22362
  var InvalidSwapError = class extends XRPCError {
22347
22363
  constructor(src2) {
22348
- super(src2.status, src2.error, src2.message);
22364
+ super(src2.status, src2.error, src2.message, src2.headers);
22349
22365
  }
22350
22366
  };
22351
22367
  var ConcurrentWritesError = class extends XRPCError {
22352
22368
  constructor(src2) {
22353
- super(src2.status, src2.error, src2.message);
22369
+ super(src2.status, src2.error, src2.message, src2.headers);
22354
22370
  }
22355
22371
  };
22356
22372
  function toKnownErr11(e) {
@@ -22415,7 +22431,7 @@ __export(takeModerationAction_exports, {
22415
22431
  });
22416
22432
  var SubjectHasActionError = class extends XRPCError {
22417
22433
  constructor(src2) {
22418
- super(src2.status, src2.error, src2.message);
22434
+ super(src2.status, src2.error, src2.message, src2.headers);
22419
22435
  }
22420
22436
  };
22421
22437
  function toKnownErr16(e) {
@@ -22516,7 +22532,7 @@ function hasProp2(data, prop) {
22516
22532
  // src/client/types/com/atproto/repo/applyWrites.ts
22517
22533
  var InvalidSwapError2 = class extends XRPCError {
22518
22534
  constructor(src2) {
22519
- super(src2.status, src2.error, src2.message);
22535
+ super(src2.status, src2.error, src2.message, src2.headers);
22520
22536
  }
22521
22537
  };
22522
22538
  function toKnownErr23(e) {
@@ -22553,7 +22569,7 @@ __export(createRecord_exports, {
22553
22569
  });
22554
22570
  var InvalidSwapError3 = class extends XRPCError {
22555
22571
  constructor(src2) {
22556
- super(src2.status, src2.error, src2.message);
22572
+ super(src2.status, src2.error, src2.message, src2.headers);
22557
22573
  }
22558
22574
  };
22559
22575
  function toKnownErr24(e) {
@@ -22572,7 +22588,7 @@ __export(deleteRecord_exports, {
22572
22588
  });
22573
22589
  var InvalidSwapError4 = class extends XRPCError {
22574
22590
  constructor(src2) {
22575
- super(src2.status, src2.error, src2.message);
22591
+ super(src2.status, src2.error, src2.message, src2.headers);
22576
22592
  }
22577
22593
  };
22578
22594
  function toKnownErr25(e) {
@@ -22632,7 +22648,7 @@ __export(putRecord_exports, {
22632
22648
  });
22633
22649
  var InvalidSwapError5 = class extends XRPCError {
22634
22650
  constructor(src2) {
22635
- super(src2.status, src2.error, src2.message);
22651
+ super(src2.status, src2.error, src2.message, src2.headers);
22636
22652
  }
22637
22653
  };
22638
22654
  function toKnownErr29(e) {
@@ -22652,12 +22668,12 @@ __export(rebaseRepo_exports2, {
22652
22668
  });
22653
22669
  var InvalidSwapError6 = class extends XRPCError {
22654
22670
  constructor(src2) {
22655
- super(src2.status, src2.error, src2.message);
22671
+ super(src2.status, src2.error, src2.message, src2.headers);
22656
22672
  }
22657
22673
  };
22658
22674
  var ConcurrentWritesError2 = class extends XRPCError {
22659
22675
  constructor(src2) {
22660
- super(src2.status, src2.error, src2.message);
22676
+ super(src2.status, src2.error, src2.message, src2.headers);
22661
22677
  }
22662
22678
  };
22663
22679
  function toKnownErr30(e) {
@@ -22695,37 +22711,37 @@ __export(createAccount_exports, {
22695
22711
  });
22696
22712
  var InvalidHandleError2 = class extends XRPCError {
22697
22713
  constructor(src2) {
22698
- super(src2.status, src2.error, src2.message);
22714
+ super(src2.status, src2.error, src2.message, src2.headers);
22699
22715
  }
22700
22716
  };
22701
22717
  var InvalidPasswordError = class extends XRPCError {
22702
22718
  constructor(src2) {
22703
- super(src2.status, src2.error, src2.message);
22719
+ super(src2.status, src2.error, src2.message, src2.headers);
22704
22720
  }
22705
22721
  };
22706
22722
  var InvalidInviteCodeError = class extends XRPCError {
22707
22723
  constructor(src2) {
22708
- super(src2.status, src2.error, src2.message);
22724
+ super(src2.status, src2.error, src2.message, src2.headers);
22709
22725
  }
22710
22726
  };
22711
22727
  var HandleNotAvailableError = class extends XRPCError {
22712
22728
  constructor(src2) {
22713
- super(src2.status, src2.error, src2.message);
22729
+ super(src2.status, src2.error, src2.message, src2.headers);
22714
22730
  }
22715
22731
  };
22716
22732
  var UnsupportedDomainError = class extends XRPCError {
22717
22733
  constructor(src2) {
22718
- super(src2.status, src2.error, src2.message);
22734
+ super(src2.status, src2.error, src2.message, src2.headers);
22719
22735
  }
22720
22736
  };
22721
22737
  var UnresolvableDidError = class extends XRPCError {
22722
22738
  constructor(src2) {
22723
- super(src2.status, src2.error, src2.message);
22739
+ super(src2.status, src2.error, src2.message, src2.headers);
22724
22740
  }
22725
22741
  };
22726
22742
  var IncompatibleDidDocError = class extends XRPCError {
22727
22743
  constructor(src2) {
22728
- super(src2.status, src2.error, src2.message);
22744
+ super(src2.status, src2.error, src2.message, src2.headers);
22729
22745
  }
22730
22746
  };
22731
22747
  function toKnownErr32(e) {
@@ -22758,7 +22774,7 @@ __export(createAppPassword_exports, {
22758
22774
  });
22759
22775
  var AccountTakedownError = class extends XRPCError {
22760
22776
  constructor(src2) {
22761
- super(src2.status, src2.error, src2.message);
22777
+ super(src2.status, src2.error, src2.message, src2.headers);
22762
22778
  }
22763
22779
  };
22764
22780
  function toKnownErr33(e) {
@@ -22819,7 +22835,7 @@ __export(createSession_exports, {
22819
22835
  });
22820
22836
  var AccountTakedownError2 = class extends XRPCError {
22821
22837
  constructor(src2) {
22822
- super(src2.status, src2.error, src2.message);
22838
+ super(src2.status, src2.error, src2.message, src2.headers);
22823
22839
  }
22824
22840
  };
22825
22841
  function toKnownErr36(e) {
@@ -22839,12 +22855,12 @@ __export(deleteAccount_exports, {
22839
22855
  });
22840
22856
  var ExpiredTokenError = class extends XRPCError {
22841
22857
  constructor(src2) {
22842
- super(src2.status, src2.error, src2.message);
22858
+ super(src2.status, src2.error, src2.message, src2.headers);
22843
22859
  }
22844
22860
  };
22845
22861
  var InvalidTokenError = class extends XRPCError {
22846
22862
  constructor(src2) {
22847
- super(src2.status, src2.error, src2.message);
22863
+ super(src2.status, src2.error, src2.message, src2.headers);
22848
22864
  }
22849
22865
  };
22850
22866
  function toKnownErr37(e) {
@@ -22895,7 +22911,7 @@ __export(getAccountInviteCodes_exports, {
22895
22911
  });
22896
22912
  var DuplicateCreateError = class extends XRPCError {
22897
22913
  constructor(src2) {
22898
- super(src2.status, src2.error, src2.message);
22914
+ super(src2.status, src2.error, src2.message, src2.headers);
22899
22915
  }
22900
22916
  };
22901
22917
  function toKnownErr40(e) {
@@ -22927,7 +22943,7 @@ __export(listAppPasswords_exports, {
22927
22943
  });
22928
22944
  var AccountTakedownError3 = class extends XRPCError {
22929
22945
  constructor(src2) {
22930
- super(src2.status, src2.error, src2.message);
22946
+ super(src2.status, src2.error, src2.message, src2.headers);
22931
22947
  }
22932
22948
  };
22933
22949
  function toKnownErr42(e) {
@@ -22952,7 +22968,7 @@ __export(refreshSession_exports, {
22952
22968
  });
22953
22969
  var AccountTakedownError4 = class extends XRPCError {
22954
22970
  constructor(src2) {
22955
- super(src2.status, src2.error, src2.message);
22971
+ super(src2.status, src2.error, src2.message, src2.headers);
22956
22972
  }
22957
22973
  };
22958
22974
  function toKnownErr43(e) {
@@ -22994,12 +23010,12 @@ __export(resetPassword_exports, {
22994
23010
  });
22995
23011
  var ExpiredTokenError2 = class extends XRPCError {
22996
23012
  constructor(src2) {
22997
- super(src2.status, src2.error, src2.message);
23013
+ super(src2.status, src2.error, src2.message, src2.headers);
22998
23014
  }
22999
23015
  };
23000
23016
  var InvalidTokenError2 = class extends XRPCError {
23001
23017
  constructor(src2) {
23002
- super(src2.status, src2.error, src2.message);
23018
+ super(src2.status, src2.error, src2.message, src2.headers);
23003
23019
  }
23004
23020
  };
23005
23021
  function toKnownErr46(e) {
@@ -23075,7 +23091,7 @@ __export(getHead_exports, {
23075
23091
  });
23076
23092
  var HeadNotFoundError = class extends XRPCError {
23077
23093
  constructor(src2) {
23078
- super(src2.status, src2.error, src2.message);
23094
+ super(src2.status, src2.error, src2.message, src2.headers);
23079
23095
  }
23080
23096
  };
23081
23097
  function toKnownErr52(e) {
@@ -23284,12 +23300,12 @@ __export(getAuthorFeed_exports, {
23284
23300
  });
23285
23301
  var BlockedActorError = class extends XRPCError {
23286
23302
  constructor(src2) {
23287
- super(src2.status, src2.error, src2.message);
23303
+ super(src2.status, src2.error, src2.message, src2.headers);
23288
23304
  }
23289
23305
  };
23290
23306
  var BlockedByActorError = class extends XRPCError {
23291
23307
  constructor(src2) {
23292
- super(src2.status, src2.error, src2.message);
23308
+ super(src2.status, src2.error, src2.message, src2.headers);
23293
23309
  }
23294
23310
  };
23295
23311
  function toKnownErr68(e) {
@@ -23310,7 +23326,7 @@ __export(getFeed_exports, {
23310
23326
  });
23311
23327
  var UnknownFeedError = class extends XRPCError {
23312
23328
  constructor(src2) {
23313
- super(src2.status, src2.error, src2.message);
23329
+ super(src2.status, src2.error, src2.message, src2.headers);
23314
23330
  }
23315
23331
  };
23316
23332
  function toKnownErr69(e) {
@@ -23351,7 +23367,7 @@ __export(getFeedSkeleton_exports, {
23351
23367
  });
23352
23368
  var UnknownFeedError2 = class extends XRPCError {
23353
23369
  constructor(src2) {
23354
- super(src2.status, src2.error, src2.message);
23370
+ super(src2.status, src2.error, src2.message, src2.headers);
23355
23371
  }
23356
23372
  };
23357
23373
  function toKnownErr72(e) {
@@ -23389,7 +23405,7 @@ __export(getPostThread_exports, {
23389
23405
  });
23390
23406
  var NotFoundError = class extends XRPCError {
23391
23407
  constructor(src2) {
23392
- super(src2.status, src2.error, src2.message);
23408
+ super(src2.status, src2.error, src2.message, src2.headers);
23393
23409
  }
23394
23410
  };
23395
23411
  function toKnownErr74(e) {
@@ -23639,7 +23655,7 @@ __export(getTimelineSkeleton_exports, {
23639
23655
  });
23640
23656
  var UnknownFeedError3 = class extends XRPCError {
23641
23657
  constructor(src2) {
23642
- super(src2.status, src2.error, src2.message);
23658
+ super(src2.status, src2.error, src2.message, src2.headers);
23643
23659
  }
23644
23660
  };
23645
23661
  function toKnownErr95(e) {