@atproto/api 0.1.1 → 0.1.2

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 (34) hide show
  1. package/dist/client/index.d.ts +4 -0
  2. package/dist/client/lexicons.d.ts +158 -244
  3. package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -24
  4. package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +2 -15
  5. package/dist/client/types/app/bsky/actor/profile.d.ts +24 -1
  6. package/dist/client/types/app/bsky/actor/ref.d.ts +2 -0
  7. package/dist/client/types/app/bsky/actor/search.d.ts +2 -15
  8. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +2 -13
  9. package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +2 -15
  10. package/dist/client/types/app/bsky/graph/getFollowers.d.ts +1 -15
  11. package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -15
  12. package/dist/client/types/app/bsky/graph/getMutes.d.ts +2 -13
  13. package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
  14. package/dist/client/types/com/atproto/report/reasonType.d.ts +1 -1
  15. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +20 -0
  16. package/dist/index.js +471 -524
  17. package/dist/index.js.map +4 -4
  18. package/package.json +1 -1
  19. package/src/client/index.ts +15 -0
  20. package/src/client/lexicons.ts +177 -267
  21. package/src/client/types/app/bsky/actor/getProfile.ts +2 -35
  22. package/src/client/types/app/bsky/actor/getSuggestions.ts +2 -25
  23. package/src/client/types/app/bsky/actor/profile.ts +47 -1
  24. package/src/client/types/app/bsky/actor/ref.ts +2 -0
  25. package/src/client/types/app/bsky/actor/search.ts +2 -23
  26. package/src/client/types/app/bsky/actor/searchTypeahead.ts +2 -23
  27. package/src/client/types/app/bsky/feed/getRepostedBy.ts +2 -25
  28. package/src/client/types/app/bsky/graph/getFollowers.ts +1 -25
  29. package/src/client/types/app/bsky/graph/getFollows.ts +1 -25
  30. package/src/client/types/app/bsky/graph/getMutes.ts +2 -23
  31. package/src/client/types/com/atproto/handle/update.ts +31 -0
  32. package/src/client/types/com/atproto/report/reasonType.ts +2 -2
  33. package/src/client/types/com/atproto/sync/subscribeAllRepos.ts +48 -0
  34. package/tsconfig.build.tsbuildinfo +1 -1
package/dist/index.js CHANGED
@@ -153,6 +153,7 @@ __export(src_exports, {
153
153
  ComAtprotoAdminTakeModerationAction: () => takeModerationAction_exports,
154
154
  ComAtprotoBlobUpload: () => upload_exports,
155
155
  ComAtprotoHandleResolve: () => resolve_exports,
156
+ ComAtprotoHandleUpdate: () => update_exports,
156
157
  ComAtprotoRepoBatchWrite: () => batchWrite_exports,
157
158
  ComAtprotoRepoCreateRecord: () => createRecord_exports,
158
159
  ComAtprotoRepoDeleteRecord: () => deleteRecord_exports,
@@ -176,6 +177,7 @@ __export(src_exports, {
176
177
  ComAtprotoSyncGetHead: () => getHead_exports,
177
178
  ComAtprotoSyncGetRecord: () => getRecord_exports3,
178
179
  ComAtprotoSyncGetRepo: () => getRepo_exports2,
180
+ ComAtprotoSyncSubscribeAllRepos: () => subscribeAllRepos_exports,
179
181
  ComNS: () => ComNS,
180
182
  ConfirmationRecord: () => ConfirmationRecord,
181
183
  DeclarationRecord: () => DeclarationRecord,
@@ -3378,6 +3380,11 @@ var lexXrpcBody = mod.object({
3378
3380
  encoding: mod.string(),
3379
3381
  schema: mod.union([lexRefVariant, lexObject]).optional()
3380
3382
  });
3383
+ var lexXrpcSubscriptionMessage = mod.object({
3384
+ description: mod.string().optional(),
3385
+ schema: mod.union([lexRefVariant, lexObject]).optional(),
3386
+ codes: mod.record(mod.number().int()).optional()
3387
+ });
3381
3388
  var lexXrpcError = mod.object({
3382
3389
  name: mod.string(),
3383
3390
  description: mod.string().optional()
@@ -3397,6 +3404,14 @@ var lexXrpcProcedure = mod.object({
3397
3404
  output: lexXrpcBody.optional(),
3398
3405
  errors: lexXrpcError.array().optional()
3399
3406
  });
3407
+ var lexXrpcSubscription = mod.object({
3408
+ type: mod.literal("subscription"),
3409
+ description: mod.string().optional(),
3410
+ parameters: lexXrpcParameters.optional(),
3411
+ message: lexXrpcSubscriptionMessage.optional(),
3412
+ infos: lexXrpcError.array().optional(),
3413
+ errors: lexXrpcError.array().optional()
3414
+ });
3400
3415
  var lexRecord = mod.object({
3401
3416
  type: mod.literal("record"),
3402
3417
  description: mod.string().optional(),
@@ -3407,6 +3422,7 @@ var lexUserType = mod.union([
3407
3422
  lexRecord,
3408
3423
  lexXrpcQuery,
3409
3424
  lexXrpcProcedure,
3425
+ lexXrpcSubscription,
3410
3426
  lexBlob,
3411
3427
  lexImage,
3412
3428
  lexVideo,
@@ -3432,10 +3448,10 @@ var lexiconDoc = mod.object({
3432
3448
  }).superRefine((doc, ctx) => {
3433
3449
  for (const defId in doc.defs) {
3434
3450
  const def = doc.defs[defId];
3435
- if (defId !== "main" && (def.type === "record" || def.type === "procedure" || def.type === "query")) {
3451
+ if (defId !== "main" && (def.type === "record" || def.type === "procedure" || def.type === "query" || def.type === "subscription")) {
3436
3452
  ctx.addIssue({
3437
3453
  code: mod.ZodIssueCode.custom,
3438
- message: `Records, procedures, and queries must be the main definition.`
3454
+ message: `Records, procedures, queries, and subscriptions must be the main definition.`
3439
3455
  });
3440
3456
  }
3441
3457
  }
@@ -3492,9 +3508,9 @@ function validate(lexicons2, path, def, value) {
3492
3508
  function boolean(lexicons2, path, def, value) {
3493
3509
  def = def;
3494
3510
  const type = typeof value;
3495
- if (type == "undefined") {
3511
+ if (type === "undefined") {
3496
3512
  if (typeof def.default === "boolean") {
3497
- return { success: true };
3513
+ return { success: true, value: def.default };
3498
3514
  }
3499
3515
  return {
3500
3516
  success: false,
@@ -3514,14 +3530,14 @@ function boolean(lexicons2, path, def, value) {
3514
3530
  };
3515
3531
  }
3516
3532
  }
3517
- return { success: true };
3533
+ return { success: true, value };
3518
3534
  }
3519
3535
  function number(lexicons2, path, def, value) {
3520
3536
  def = def;
3521
3537
  const type = typeof value;
3522
- if (type == "undefined") {
3538
+ if (type === "undefined") {
3523
3539
  if (typeof def.default === "number") {
3524
- return { success: true };
3540
+ return { success: true, value: def.default };
3525
3541
  }
3526
3542
  return {
3527
3543
  success: false,
@@ -3571,13 +3587,15 @@ function number(lexicons2, path, def, value) {
3571
3587
  };
3572
3588
  }
3573
3589
  }
3574
- return { success: true };
3590
+ return { success: true, value };
3575
3591
  }
3576
3592
  function integer(lexicons2, path, def, value) {
3577
3593
  def = def;
3578
3594
  const numRes = number(lexicons2, path, def, value);
3579
3595
  if (!numRes.success) {
3580
3596
  return numRes;
3597
+ } else {
3598
+ value = numRes.value;
3581
3599
  }
3582
3600
  if (!Number.isInteger(value)) {
3583
3601
  return {
@@ -3585,14 +3603,14 @@ function integer(lexicons2, path, def, value) {
3585
3603
  error: new ValidationError(`${path} must be an integer`)
3586
3604
  };
3587
3605
  }
3588
- return { success: true };
3606
+ return { success: true, value };
3589
3607
  }
3590
3608
  function string(lexicons2, path, def, value) {
3591
3609
  def = def;
3592
3610
  const type = typeof value;
3593
- if (type == "undefined") {
3611
+ if (type === "undefined") {
3594
3612
  if (typeof def.default === "string") {
3595
- return { success: true };
3613
+ return { success: true, value: def.default };
3596
3614
  }
3597
3615
  return {
3598
3616
  success: false,
@@ -3642,7 +3660,7 @@ function string(lexicons2, path, def, value) {
3642
3660
  };
3643
3661
  }
3644
3662
  }
3645
- return { success: true };
3663
+ return { success: true, value };
3646
3664
  }
3647
3665
  function datetime(lexicons2, path, def, value) {
3648
3666
  def = def;
@@ -3664,7 +3682,7 @@ function datetime(lexicons2, path, def, value) {
3664
3682
  throw new ValidationError(`${path} must be an iso8601 formatted datetime`);
3665
3683
  }
3666
3684
  }
3667
- return { success: true };
3685
+ return { success: true, value };
3668
3686
  }
3669
3687
  function unknown(lexicons2, path, def, value) {
3670
3688
  if (!value || typeof value !== "object") {
@@ -3673,7 +3691,7 @@ function unknown(lexicons2, path, def, value) {
3673
3691
  error: new ValidationError(`${path} must be an object`)
3674
3692
  };
3675
3693
  }
3676
- return { success: true };
3694
+ return { success: true, value };
3677
3695
  }
3678
3696
 
3679
3697
  // ../lexicon/src/validators/blob.ts
@@ -3696,7 +3714,7 @@ function blob(lexicons2, path, def, value) {
3696
3714
  error: new ValidationError(`${path}/mimeType should be a string`)
3697
3715
  };
3698
3716
  }
3699
- return { success: true };
3717
+ return { success: true, value };
3700
3718
  }
3701
3719
  function image(lexicons2, path, def, value) {
3702
3720
  return blob(lexicons2, path, def, value);
@@ -3778,7 +3796,7 @@ function array(lexicons2, path, def, value) {
3778
3796
  return res;
3779
3797
  }
3780
3798
  }
3781
- return { success: true };
3799
+ return { success: true, value };
3782
3800
  }
3783
3801
  function object(lexicons2, path, def, value) {
3784
3802
  def = def;
@@ -3788,31 +3806,32 @@ function object(lexicons2, path, def, value) {
3788
3806
  error: new ValidationError(`${path} must be an object`)
3789
3807
  };
3790
3808
  }
3791
- if (Array.isArray(def.required)) {
3792
- for (const key of def.required) {
3793
- if (typeof value[key] === "undefined") {
3809
+ const requiredProps = new Set(def.required ?? []);
3810
+ let resultValue = value;
3811
+ if (typeof def.properties === "object") {
3812
+ for (const key in def.properties) {
3813
+ const propDef = def.properties[key];
3814
+ const propPath = `${path}/${key}`;
3815
+ const validated = validateOneOf(lexicons2, propPath, propDef, value[key]);
3816
+ const propValue = validated.success ? validated.value : value[key];
3817
+ const propIsUndefined = typeof propValue === "undefined";
3818
+ if (propIsUndefined && requiredProps.has(key)) {
3794
3819
  return {
3795
3820
  success: false,
3796
3821
  error: new ValidationError(`${path} must have the property "${key}"`)
3797
3822
  };
3823
+ } else if (!propIsUndefined && !validated.success) {
3824
+ return validated;
3798
3825
  }
3799
- }
3800
- }
3801
- if (typeof def.properties === "object") {
3802
- for (const key in def.properties) {
3803
- const propValue = value[key];
3804
- if (typeof propValue === "undefined") {
3805
- continue;
3806
- }
3807
- const propDef = def.properties[key];
3808
- const propPath = `${path}/${key}`;
3809
- const res = validateOneOf(lexicons2, propPath, propDef, propValue);
3810
- if (!res.success) {
3811
- return res;
3826
+ if (propValue !== value[key]) {
3827
+ if (resultValue === value) {
3828
+ resultValue = { ...value };
3829
+ }
3830
+ resultValue[key] = propValue;
3812
3831
  }
3813
3832
  }
3814
3833
  }
3815
- return { success: true };
3834
+ return { success: true, value: resultValue };
3816
3835
  }
3817
3836
 
3818
3837
  // ../lexicon/src/util.ts
@@ -3849,7 +3868,7 @@ function validateOneOf(lexicons2, path, def, value, mustBeObj = false) {
3849
3868
  )
3850
3869
  };
3851
3870
  }
3852
- return { success: true };
3871
+ return { success: true, value };
3853
3872
  } else {
3854
3873
  concreteDefs = toConcreteTypes(lexicons2, {
3855
3874
  type: "ref",
@@ -3878,9 +3897,9 @@ function validateOneOf(lexicons2, path, def, value, mustBeObj = false) {
3878
3897
  }
3879
3898
  function assertValidOneOf(lexicons2, path, def, value, mustBeObj = false) {
3880
3899
  const res = validateOneOf(lexicons2, path, def, value, mustBeObj);
3881
- if (!res.success) {
3900
+ if (!res.success)
3882
3901
  throw res.error;
3883
- }
3902
+ return res.value;
3884
3903
  }
3885
3904
  function toConcreteTypes(lexicons2, def) {
3886
3905
  if (def.type === "ref") {
@@ -3893,32 +3912,33 @@ function toConcreteTypes(lexicons2, def) {
3893
3912
  }
3894
3913
 
3895
3914
  // ../lexicon/src/validators/xrpc.ts
3896
- function params(lexicons2, path, def, value) {
3897
- if (!value || typeof value !== "object") {
3898
- value = {};
3899
- }
3900
- if (Array.isArray(def.required)) {
3901
- for (const key of def.required) {
3902
- if (typeof value[key] === "undefined") {
3915
+ function params(lexicons2, path, def, val) {
3916
+ const value = val && typeof val === "object" ? val : {};
3917
+ const requiredProps = new Set(def.required ?? []);
3918
+ let resultValue = value;
3919
+ if (typeof def.properties === "object") {
3920
+ for (const key in def.properties) {
3921
+ const propDef = def.properties[key];
3922
+ const validated = propDef.type === "array" ? array(lexicons2, key, propDef, value[key]) : validate(lexicons2, key, propDef, value[key]);
3923
+ const propValue = validated.success ? validated.value : value[key];
3924
+ const propIsUndefined = typeof propValue === "undefined";
3925
+ if (propIsUndefined && requiredProps.has(key)) {
3903
3926
  return {
3904
3927
  success: false,
3905
3928
  error: new ValidationError(`${path} must have the property "${key}"`)
3906
3929
  };
3930
+ } else if (!propIsUndefined && !validated.success) {
3931
+ return validated;
3932
+ }
3933
+ if (propValue !== value[key]) {
3934
+ if (resultValue === value) {
3935
+ resultValue = { ...value };
3936
+ }
3937
+ resultValue[key] = propValue;
3907
3938
  }
3908
3939
  }
3909
3940
  }
3910
- for (const key in def.properties) {
3911
- if (typeof value[key] === "undefined") {
3912
- continue;
3913
- }
3914
- const paramDef = def.properties[key];
3915
- const val = value[key];
3916
- const res = paramDef.type === "array" ? array(lexicons2, key, paramDef, val) : validate(lexicons2, key, paramDef, val);
3917
- if (!res.success) {
3918
- return res;
3919
- }
3920
- }
3921
- return { success: true };
3941
+ return { success: true, value: resultValue };
3922
3942
  }
3923
3943
 
3924
3944
  // ../lexicon/src/validation.ts
@@ -3926,22 +3946,24 @@ function assertValidRecord(lexicons2, def, value) {
3926
3946
  const res = object(lexicons2, "Record", def.record, value);
3927
3947
  if (!res.success)
3928
3948
  throw res.error;
3949
+ return res.value;
3929
3950
  }
3930
3951
  function assertValidXrpcParams(lexicons2, def, value) {
3931
3952
  if (def.parameters) {
3932
3953
  const res = params(lexicons2, "Params", def.parameters, value);
3933
3954
  if (!res.success)
3934
3955
  throw res.error;
3956
+ return res.value;
3935
3957
  }
3936
3958
  }
3937
3959
  function assertValidXrpcInput(lexicons2, def, value) {
3938
3960
  if (def.input?.schema) {
3939
- assertValidOneOf(lexicons2, "Input", def.input.schema, value, true);
3961
+ return assertValidOneOf(lexicons2, "Input", def.input.schema, value, true);
3940
3962
  }
3941
3963
  }
3942
3964
  function assertValidXrpcOutput(lexicons2, def, value) {
3943
3965
  if (def.output?.schema) {
3944
- assertValidOneOf(lexicons2, "Output", def.output.schema, value, true);
3966
+ return assertValidOneOf(lexicons2, "Output", def.output.schema, value, true);
3945
3967
  }
3946
3968
  }
3947
3969
 
@@ -3975,7 +3997,7 @@ var Lexicons = class {
3975
3997
  if (this.docs.has(uri)) {
3976
3998
  throw new Error(`${uri} has already been registered`);
3977
3999
  }
3978
- resolveRefUris(validatedDoc, uri);
4000
+ resolveRefUris(validatedDoc, uri, true);
3979
4001
  this.docs.set(uri, validatedDoc);
3980
4002
  for (const [defUri, def] of iterDefs(validatedDoc)) {
3981
4003
  this.defs.set(defUri, def);
@@ -4041,22 +4063,38 @@ var Lexicons = class {
4041
4063
  `Invalid $type: must be ${lexUri}, got ${$type}`
4042
4064
  );
4043
4065
  }
4044
- assertValidRecord(this, def, value);
4066
+ return assertValidRecord(this, def, value);
4045
4067
  }
4046
4068
  assertValidXrpcParams(lexUri, value) {
4047
4069
  lexUri = toLexUri(lexUri);
4048
- const def = this.getDefOrThrow(lexUri, ["query", "procedure"]);
4049
- assertValidXrpcParams(this, def, value);
4070
+ const def = this.getDefOrThrow(lexUri, [
4071
+ "query",
4072
+ "procedure",
4073
+ "subscription"
4074
+ ]);
4075
+ return assertValidXrpcParams(
4076
+ this,
4077
+ def,
4078
+ value
4079
+ );
4050
4080
  }
4051
4081
  assertValidXrpcInput(lexUri, value) {
4052
4082
  lexUri = toLexUri(lexUri);
4053
4083
  const def = this.getDefOrThrow(lexUri, ["procedure"]);
4054
- assertValidXrpcInput(this, def, value);
4084
+ return assertValidXrpcInput(this, def, value);
4055
4085
  }
4056
4086
  assertValidXrpcOutput(lexUri, value) {
4057
4087
  lexUri = toLexUri(lexUri);
4058
4088
  const def = this.getDefOrThrow(lexUri, ["query", "procedure"]);
4059
- assertValidXrpcOutput(this, def, value);
4089
+ return assertValidXrpcOutput(
4090
+ this,
4091
+ def,
4092
+ value
4093
+ );
4094
+ }
4095
+ resolveLexUri(lexUri, ref) {
4096
+ lexUri = toLexUri(lexUri);
4097
+ return toLexUri(ref, lexUri);
4060
4098
  }
4061
4099
  };
4062
4100
  function* iterDefs(doc) {
@@ -4067,7 +4105,7 @@ function* iterDefs(doc) {
4067
4105
  }
4068
4106
  }
4069
4107
  }
4070
- function resolveRefUris(obj, baseUri) {
4108
+ function resolveRefUris(obj, baseUri, root) {
4071
4109
  for (const k in obj) {
4072
4110
  if (obj.type === "ref") {
4073
4111
  obj.ref = toLexUri(obj.ref, baseUri);
@@ -4086,6 +4124,17 @@ function resolveRefUris(obj, baseUri) {
4086
4124
  obj[k] = resolveRefUris(obj[k], baseUri);
4087
4125
  }
4088
4126
  }
4127
+ if (root && obj?.defs?.main?.type === "subscription") {
4128
+ const sub = obj.defs.main;
4129
+ if (sub.message?.codes) {
4130
+ sub.message.codes = Object.entries(sub.message.codes).reduce(
4131
+ (acc, [key, code]) => {
4132
+ return Object.assign(acc, { [toLexUri(key, baseUri)]: code });
4133
+ },
4134
+ {}
4135
+ );
4136
+ }
4137
+ }
4089
4138
  return obj;
4090
4139
  }
4091
4140
 
@@ -4618,7 +4667,7 @@ var schemaDict = {
4618
4667
  required: ["id"],
4619
4668
  properties: {
4620
4669
  id: {
4621
- type: "number"
4670
+ type: "integer"
4622
4671
  }
4623
4672
  }
4624
4673
  },
@@ -4690,7 +4739,7 @@ var schemaDict = {
4690
4739
  required: ["id"],
4691
4740
  properties: {
4692
4741
  id: {
4693
- type: "number"
4742
+ type: "integer"
4694
4743
  }
4695
4744
  }
4696
4745
  },
@@ -5536,6 +5585,28 @@ var schemaDict = {
5536
5585
  }
5537
5586
  }
5538
5587
  },
5588
+ ComAtprotoHandleUpdate: {
5589
+ lexicon: 1,
5590
+ id: "com.atproto.handle.update",
5591
+ defs: {
5592
+ main: {
5593
+ type: "procedure",
5594
+ description: "Updates the handle of the account",
5595
+ input: {
5596
+ encoding: "application/json",
5597
+ schema: {
5598
+ type: "object",
5599
+ required: ["handle"],
5600
+ properties: {
5601
+ handle: {
5602
+ type: "string"
5603
+ }
5604
+ }
5605
+ }
5606
+ }
5607
+ }
5608
+ }
5609
+ },
5539
5610
  ComAtprotoRepoBatchWrite: {
5540
5611
  lexicon: 1,
5541
5612
  id: "com.atproto.repo.batchWrite",
@@ -6079,8 +6150,8 @@ var schemaDict = {
6079
6150
  main: {
6080
6151
  type: "string",
6081
6152
  knownValues: [
6082
- "com.atproto.report.reason#spam",
6083
- "com.atproto.report.reason#other"
6153
+ "com.atproto.report.reasonType#spam",
6154
+ "com.atproto.report.reasonType#other"
6084
6155
  ]
6085
6156
  },
6086
6157
  spam: {
@@ -6475,87 +6546,100 @@ var schemaDict = {
6475
6546
  }
6476
6547
  }
6477
6548
  },
6478
- AppBskyActorGetProfile: {
6549
+ ComAtprotoSyncSubscribeAllRepos: {
6479
6550
  lexicon: 1,
6480
- id: "app.bsky.actor.getProfile",
6551
+ id: "com.atproto.sync.subscribeAllRepos",
6481
6552
  defs: {
6482
6553
  main: {
6483
- type: "query",
6554
+ type: "subscription",
6555
+ description: "Subscribe to repo updates",
6484
6556
  parameters: {
6485
6557
  type: "params",
6486
- required: ["actor"],
6487
6558
  properties: {
6488
- actor: {
6489
- type: "string"
6559
+ backfillFrom: {
6560
+ type: "datetime",
6561
+ description: "The last known event to backfill from. Does not dedupe as there may be an overlap in timestamps."
6490
6562
  }
6491
6563
  }
6492
6564
  },
6493
- output: {
6494
- encoding: "application/json",
6565
+ message: {
6495
6566
  schema: {
6496
- type: "object",
6497
- required: [
6498
- "did",
6499
- "declaration",
6500
- "handle",
6501
- "creator",
6502
- "followersCount",
6503
- "followsCount",
6504
- "postsCount"
6505
- ],
6506
- properties: {
6507
- did: {
6508
- type: "string"
6509
- },
6510
- declaration: {
6511
- type: "ref",
6512
- ref: "lex:app.bsky.system.declRef"
6513
- },
6514
- handle: {
6515
- type: "string"
6516
- },
6517
- creator: {
6518
- type: "string"
6519
- },
6520
- displayName: {
6521
- type: "string",
6522
- maxLength: 64
6523
- },
6524
- description: {
6525
- type: "string",
6526
- maxLength: 256
6527
- },
6528
- avatar: {
6529
- type: "string"
6530
- },
6531
- banner: {
6532
- type: "string"
6533
- },
6534
- followersCount: {
6535
- type: "integer"
6536
- },
6537
- followsCount: {
6538
- type: "integer"
6539
- },
6540
- postsCount: {
6541
- type: "integer"
6542
- },
6543
- myState: {
6544
- type: "ref",
6545
- ref: "lex:app.bsky.actor.getProfile#myState"
6546
- }
6567
+ type: "union",
6568
+ refs: [
6569
+ "lex:com.atproto.sync.subscribeAllRepos#repoAppend",
6570
+ "lex:com.atproto.sync.subscribeAllRepos#repoRebase"
6571
+ ]
6572
+ },
6573
+ codes: {
6574
+ "lex:com.atproto.sync.subscribeAllRepos#repoAppend": 0,
6575
+ "lex:com.atproto.sync.subscribeAllRepos#repoRebase": 1
6576
+ }
6577
+ }
6578
+ },
6579
+ repoAppend: {
6580
+ type: "object",
6581
+ required: ["time", "repo", "commit", "blocks", "blobs"],
6582
+ properties: {
6583
+ time: {
6584
+ type: "datetime"
6585
+ },
6586
+ repo: {
6587
+ type: "string"
6588
+ },
6589
+ commit: {
6590
+ type: "string"
6591
+ },
6592
+ prev: {
6593
+ type: "string"
6594
+ },
6595
+ blocks: {
6596
+ type: "unknown"
6597
+ },
6598
+ blobs: {
6599
+ type: "array",
6600
+ items: {
6601
+ type: "string"
6547
6602
  }
6548
6603
  }
6549
6604
  }
6550
6605
  },
6551
- myState: {
6606
+ repoRebase: {
6552
6607
  type: "object",
6608
+ required: ["time", "repo", "commit"],
6553
6609
  properties: {
6554
- follow: {
6610
+ time: {
6611
+ type: "datetime"
6612
+ },
6613
+ repo: {
6555
6614
  type: "string"
6556
6615
  },
6557
- muted: {
6558
- type: "boolean"
6616
+ commit: {
6617
+ type: "string"
6618
+ }
6619
+ }
6620
+ }
6621
+ }
6622
+ },
6623
+ AppBskyActorGetProfile: {
6624
+ lexicon: 1,
6625
+ id: "app.bsky.actor.getProfile",
6626
+ defs: {
6627
+ main: {
6628
+ type: "query",
6629
+ parameters: {
6630
+ type: "params",
6631
+ required: ["actor"],
6632
+ properties: {
6633
+ actor: {
6634
+ type: "string"
6635
+ }
6636
+ }
6637
+ },
6638
+ output: {
6639
+ encoding: "application/json",
6640
+ schema: {
6641
+ type: "ref",
6642
+ ref: "lex:app.bsky.actor.profile#view"
6559
6643
  }
6560
6644
  }
6561
6645
  }
@@ -6633,41 +6717,12 @@ var schemaDict = {
6633
6717
  type: "array",
6634
6718
  items: {
6635
6719
  type: "ref",
6636
- ref: "lex:app.bsky.actor.getSuggestions#actor"
6720
+ ref: "lex:app.bsky.actor.profile#viewBasic"
6637
6721
  }
6638
6722
  }
6639
6723
  }
6640
6724
  }
6641
6725
  }
6642
- },
6643
- actor: {
6644
- type: "object",
6645
- required: ["did", "declaration", "handle"],
6646
- properties: {
6647
- did: {
6648
- type: "string"
6649
- },
6650
- declaration: {
6651
- type: "ref",
6652
- ref: "lex:app.bsky.system.declRef"
6653
- },
6654
- handle: {
6655
- type: "string"
6656
- },
6657
- displayName: {
6658
- type: "string",
6659
- maxLength: 64
6660
- },
6661
- description: {
6662
- type: "string"
6663
- },
6664
- avatar: {
6665
- type: "string"
6666
- },
6667
- indexedAt: {
6668
- type: "datetime"
6669
- }
6670
- }
6671
6726
  }
6672
6727
  }
6673
6728
  },
@@ -6729,9 +6784,6 @@ var schemaDict = {
6729
6784
  handle: {
6730
6785
  type: "string"
6731
6786
  },
6732
- creator: {
6733
- type: "string"
6734
- },
6735
6787
  displayName: {
6736
6788
  type: "string",
6737
6789
  maxLength: 64
@@ -6755,14 +6807,74 @@ var schemaDict = {
6755
6807
  postsCount: {
6756
6808
  type: "integer"
6757
6809
  },
6810
+ creator: {
6811
+ type: "string"
6812
+ },
6813
+ indexedAt: {
6814
+ type: "datetime"
6815
+ },
6816
+ viewer: {
6817
+ type: "ref",
6818
+ ref: "lex:app.bsky.actor.profile#viewerState"
6819
+ },
6758
6820
  myState: {
6759
6821
  type: "ref",
6760
- ref: "lex:app.bsky.actor.profile#myState"
6822
+ ref: "lex:app.bsky.actor.profile#myState",
6823
+ description: "Deprecated"
6824
+ }
6825
+ }
6826
+ },
6827
+ viewBasic: {
6828
+ type: "object",
6829
+ required: ["did", "declaration", "handle"],
6830
+ properties: {
6831
+ did: {
6832
+ type: "string"
6833
+ },
6834
+ declaration: {
6835
+ type: "ref",
6836
+ ref: "lex:app.bsky.system.declRef"
6837
+ },
6838
+ handle: {
6839
+ type: "string"
6840
+ },
6841
+ displayName: {
6842
+ type: "string",
6843
+ maxLength: 64
6844
+ },
6845
+ description: {
6846
+ type: "string",
6847
+ maxLength: 256
6848
+ },
6849
+ avatar: {
6850
+ type: "string"
6851
+ },
6852
+ indexedAt: {
6853
+ type: "datetime"
6854
+ },
6855
+ viewer: {
6856
+ type: "ref",
6857
+ ref: "lex:app.bsky.actor.profile#viewerState"
6858
+ }
6859
+ }
6860
+ },
6861
+ viewerState: {
6862
+ type: "object",
6863
+ properties: {
6864
+ muted: {
6865
+ type: "boolean"
6866
+ },
6867
+ following: {
6868
+ type: "string"
6869
+ },
6870
+ followedBy: {
6871
+ type: "string"
6761
6872
  }
6762
6873
  }
6763
6874
  },
6764
6875
  myState: {
6765
6876
  type: "object",
6877
+ description: "Deprecated in favor of #viewerState",
6766
6878
  properties: {
6767
6879
  follow: {
6768
6880
  type: "string"
@@ -6823,6 +6935,12 @@ var schemaDict = {
6823
6935
  properties: {
6824
6936
  muted: {
6825
6937
  type: "boolean"
6938
+ },
6939
+ following: {
6940
+ type: "string"
6941
+ },
6942
+ followedBy: {
6943
+ type: "string"
6826
6944
  }
6827
6945
  }
6828
6946
  }
@@ -6865,41 +6983,12 @@ var schemaDict = {
6865
6983
  type: "array",
6866
6984
  items: {
6867
6985
  type: "ref",
6868
- ref: "lex:app.bsky.actor.search#user"
6986
+ ref: "lex:app.bsky.actor.profile#viewBasic"
6869
6987
  }
6870
6988
  }
6871
6989
  }
6872
6990
  }
6873
6991
  }
6874
- },
6875
- user: {
6876
- type: "object",
6877
- required: ["did", "declaration", "handle"],
6878
- properties: {
6879
- did: {
6880
- type: "string"
6881
- },
6882
- declaration: {
6883
- type: "ref",
6884
- ref: "lex:app.bsky.system.declRef"
6885
- },
6886
- handle: {
6887
- type: "string"
6888
- },
6889
- displayName: {
6890
- type: "string",
6891
- maxLength: 64
6892
- },
6893
- avatar: {
6894
- type: "string"
6895
- },
6896
- description: {
6897
- type: "string"
6898
- },
6899
- indexedAt: {
6900
- type: "datetime"
6901
- }
6902
- }
6903
6992
  }
6904
6993
  }
6905
6994
  },
@@ -6934,35 +7023,12 @@ var schemaDict = {
6934
7023
  type: "array",
6935
7024
  items: {
6936
7025
  type: "ref",
6937
- ref: "lex:app.bsky.actor.searchTypeahead#user"
7026
+ ref: "lex:app.bsky.actor.ref#withInfo"
6938
7027
  }
6939
7028
  }
6940
7029
  }
6941
7030
  }
6942
7031
  }
6943
- },
6944
- user: {
6945
- type: "object",
6946
- required: ["did", "declaration", "handle"],
6947
- properties: {
6948
- did: {
6949
- type: "string"
6950
- },
6951
- declaration: {
6952
- type: "ref",
6953
- ref: "lex:app.bsky.system.declRef"
6954
- },
6955
- handle: {
6956
- type: "string"
6957
- },
6958
- displayName: {
6959
- type: "string",
6960
- maxLength: 64
6961
- },
6962
- avatar: {
6963
- type: "string"
6964
- }
6965
- }
6966
7032
  }
6967
7033
  }
6968
7034
  },
@@ -7397,41 +7463,12 @@ var schemaDict = {
7397
7463
  type: "array",
7398
7464
  items: {
7399
7465
  type: "ref",
7400
- ref: "lex:app.bsky.feed.getRepostedBy#repostedBy"
7466
+ ref: "lex:app.bsky.actor.ref#withInfo"
7401
7467
  }
7402
7468
  }
7403
7469
  }
7404
7470
  }
7405
7471
  }
7406
- },
7407
- repostedBy: {
7408
- type: "object",
7409
- required: ["did", "declaration", "handle", "indexedAt"],
7410
- properties: {
7411
- did: {
7412
- type: "string"
7413
- },
7414
- declaration: {
7415
- type: "ref",
7416
- ref: "lex:app.bsky.system.declRef"
7417
- },
7418
- handle: {
7419
- type: "string"
7420
- },
7421
- displayName: {
7422
- type: "string",
7423
- maxLength: 64
7424
- },
7425
- avatar: {
7426
- type: "string"
7427
- },
7428
- createdAt: {
7429
- type: "datetime"
7430
- },
7431
- indexedAt: {
7432
- type: "datetime"
7433
- }
7434
- }
7435
7472
  }
7436
7473
  }
7437
7474
  },
@@ -7947,41 +7984,12 @@ var schemaDict = {
7947
7984
  type: "array",
7948
7985
  items: {
7949
7986
  type: "ref",
7950
- ref: "lex:app.bsky.graph.getFollowers#follower"
7987
+ ref: "lex:app.bsky.actor.ref#withInfo"
7951
7988
  }
7952
7989
  }
7953
7990
  }
7954
7991
  }
7955
7992
  }
7956
- },
7957
- follower: {
7958
- type: "object",
7959
- required: ["did", "declaration", "handle", "indexedAt"],
7960
- properties: {
7961
- did: {
7962
- type: "string"
7963
- },
7964
- declaration: {
7965
- type: "ref",
7966
- ref: "lex:app.bsky.system.declRef"
7967
- },
7968
- handle: {
7969
- type: "string"
7970
- },
7971
- displayName: {
7972
- type: "string",
7973
- maxLength: 64
7974
- },
7975
- avatar: {
7976
- type: "string"
7977
- },
7978
- createdAt: {
7979
- type: "datetime"
7980
- },
7981
- indexedAt: {
7982
- type: "datetime"
7983
- }
7984
- }
7985
7993
  }
7986
7994
  }
7987
7995
  },
@@ -8027,41 +8035,12 @@ var schemaDict = {
8027
8035
  type: "array",
8028
8036
  items: {
8029
8037
  type: "ref",
8030
- ref: "lex:app.bsky.graph.getFollows#follow"
8038
+ ref: "lex:app.bsky.actor.ref#withInfo"
8031
8039
  }
8032
8040
  }
8033
8041
  }
8034
8042
  }
8035
8043
  }
8036
- },
8037
- follow: {
8038
- type: "object",
8039
- required: ["did", "declaration", "handle", "indexedAt"],
8040
- properties: {
8041
- did: {
8042
- type: "string"
8043
- },
8044
- declaration: {
8045
- type: "ref",
8046
- ref: "lex:app.bsky.system.declRef"
8047
- },
8048
- handle: {
8049
- type: "string"
8050
- },
8051
- displayName: {
8052
- type: "string",
8053
- maxLength: 64
8054
- },
8055
- avatar: {
8056
- type: "string"
8057
- },
8058
- createdAt: {
8059
- type: "datetime"
8060
- },
8061
- indexedAt: {
8062
- type: "datetime"
8063
- }
8064
- }
8065
8044
  }
8066
8045
  }
8067
8046
  },
@@ -8099,35 +8078,12 @@ var schemaDict = {
8099
8078
  type: "array",
8100
8079
  items: {
8101
8080
  type: "ref",
8102
- ref: "lex:app.bsky.graph.getMutes#mute"
8081
+ ref: "lex:app.bsky.actor.ref#withInfo"
8103
8082
  }
8104
8083
  }
8105
8084
  }
8106
8085
  }
8107
8086
  }
8108
- },
8109
- mute: {
8110
- type: "object",
8111
- required: ["did", "declaration", "handle", "createdAt"],
8112
- properties: {
8113
- did: {
8114
- type: "string"
8115
- },
8116
- declaration: {
8117
- type: "ref",
8118
- ref: "lex:app.bsky.system.declRef"
8119
- },
8120
- handle: {
8121
- type: "string"
8122
- },
8123
- displayName: {
8124
- type: "string",
8125
- maxLength: 64
8126
- },
8127
- createdAt: {
8128
- type: "datetime"
8129
- }
8130
- }
8131
8087
  }
8132
8088
  }
8133
8089
  },
@@ -8644,13 +8600,24 @@ function toKnownErr19(e) {
8644
8600
  return e;
8645
8601
  }
8646
8602
 
8603
+ // src/client/types/com/atproto/handle/update.ts
8604
+ var update_exports = {};
8605
+ __export(update_exports, {
8606
+ toKnownErr: () => toKnownErr20
8607
+ });
8608
+ function toKnownErr20(e) {
8609
+ if (e instanceof XRPCError) {
8610
+ }
8611
+ return e;
8612
+ }
8613
+
8647
8614
  // src/client/types/com/atproto/repo/batchWrite.ts
8648
8615
  var batchWrite_exports = {};
8649
8616
  __export(batchWrite_exports, {
8650
8617
  isCreate: () => isCreate,
8651
8618
  isDelete: () => isDelete,
8652
8619
  isUpdate: () => isUpdate,
8653
- toKnownErr: () => toKnownErr20,
8620
+ toKnownErr: () => toKnownErr21,
8654
8621
  validateCreate: () => validateCreate,
8655
8622
  validateDelete: () => validateDelete,
8656
8623
  validateUpdate: () => validateUpdate
@@ -8665,7 +8632,7 @@ function hasProp2(data, prop) {
8665
8632
  }
8666
8633
 
8667
8634
  // src/client/types/com/atproto/repo/batchWrite.ts
8668
- function toKnownErr20(e) {
8635
+ function toKnownErr21(e) {
8669
8636
  if (e instanceof XRPCError) {
8670
8637
  }
8671
8638
  return e;
@@ -8692,9 +8659,9 @@ function validateDelete(v) {
8692
8659
  // src/client/types/com/atproto/repo/createRecord.ts
8693
8660
  var createRecord_exports = {};
8694
8661
  __export(createRecord_exports, {
8695
- toKnownErr: () => toKnownErr21
8662
+ toKnownErr: () => toKnownErr22
8696
8663
  });
8697
- function toKnownErr21(e) {
8664
+ function toKnownErr22(e) {
8698
8665
  if (e instanceof XRPCError) {
8699
8666
  }
8700
8667
  return e;
@@ -8703,9 +8670,9 @@ function toKnownErr21(e) {
8703
8670
  // src/client/types/com/atproto/repo/deleteRecord.ts
8704
8671
  var deleteRecord_exports = {};
8705
8672
  __export(deleteRecord_exports, {
8706
- toKnownErr: () => toKnownErr22
8673
+ toKnownErr: () => toKnownErr23
8707
8674
  });
8708
- function toKnownErr22(e) {
8675
+ function toKnownErr23(e) {
8709
8676
  if (e instanceof XRPCError) {
8710
8677
  }
8711
8678
  return e;
@@ -8714,9 +8681,9 @@ function toKnownErr22(e) {
8714
8681
  // src/client/types/com/atproto/repo/describe.ts
8715
8682
  var describe_exports = {};
8716
8683
  __export(describe_exports, {
8717
- toKnownErr: () => toKnownErr23
8684
+ toKnownErr: () => toKnownErr24
8718
8685
  });
8719
- function toKnownErr23(e) {
8686
+ function toKnownErr24(e) {
8720
8687
  if (e instanceof XRPCError) {
8721
8688
  }
8722
8689
  return e;
@@ -8725,9 +8692,9 @@ function toKnownErr23(e) {
8725
8692
  // src/client/types/com/atproto/repo/getRecord.ts
8726
8693
  var getRecord_exports2 = {};
8727
8694
  __export(getRecord_exports2, {
8728
- toKnownErr: () => toKnownErr24
8695
+ toKnownErr: () => toKnownErr25
8729
8696
  });
8730
- function toKnownErr24(e) {
8697
+ function toKnownErr25(e) {
8731
8698
  if (e instanceof XRPCError) {
8732
8699
  }
8733
8700
  return e;
@@ -8737,10 +8704,10 @@ function toKnownErr24(e) {
8737
8704
  var listRecords_exports = {};
8738
8705
  __export(listRecords_exports, {
8739
8706
  isRecord: () => isRecord,
8740
- toKnownErr: () => toKnownErr25,
8707
+ toKnownErr: () => toKnownErr26,
8741
8708
  validateRecord: () => validateRecord
8742
8709
  });
8743
- function toKnownErr25(e) {
8710
+ function toKnownErr26(e) {
8744
8711
  if (e instanceof XRPCError) {
8745
8712
  }
8746
8713
  return e;
@@ -8755,9 +8722,9 @@ function validateRecord(v) {
8755
8722
  // src/client/types/com/atproto/repo/putRecord.ts
8756
8723
  var putRecord_exports = {};
8757
8724
  __export(putRecord_exports, {
8758
- toKnownErr: () => toKnownErr26
8725
+ toKnownErr: () => toKnownErr27
8759
8726
  });
8760
- function toKnownErr26(e) {
8727
+ function toKnownErr27(e) {
8761
8728
  if (e instanceof XRPCError) {
8762
8729
  }
8763
8730
  return e;
@@ -8766,9 +8733,9 @@ function toKnownErr26(e) {
8766
8733
  // src/client/types/com/atproto/report/create.ts
8767
8734
  var create_exports2 = {};
8768
8735
  __export(create_exports2, {
8769
- toKnownErr: () => toKnownErr27
8736
+ toKnownErr: () => toKnownErr28
8770
8737
  });
8771
- function toKnownErr27(e) {
8738
+ function toKnownErr28(e) {
8772
8739
  if (e instanceof XRPCError) {
8773
8740
  }
8774
8741
  return e;
@@ -8778,10 +8745,10 @@ function toKnownErr27(e) {
8778
8745
  var getAccountsConfig_exports = {};
8779
8746
  __export(getAccountsConfig_exports, {
8780
8747
  isLinks: () => isLinks,
8781
- toKnownErr: () => toKnownErr28,
8748
+ toKnownErr: () => toKnownErr29,
8782
8749
  validateLinks: () => validateLinks
8783
8750
  });
8784
- function toKnownErr28(e) {
8751
+ function toKnownErr29(e) {
8785
8752
  if (e instanceof XRPCError) {
8786
8753
  }
8787
8754
  return e;
@@ -8797,14 +8764,14 @@ function validateLinks(v) {
8797
8764
  var create_exports3 = {};
8798
8765
  __export(create_exports3, {
8799
8766
  AccountTakedownError: () => AccountTakedownError,
8800
- toKnownErr: () => toKnownErr29
8767
+ toKnownErr: () => toKnownErr30
8801
8768
  });
8802
8769
  var AccountTakedownError = class extends XRPCError {
8803
8770
  constructor(src) {
8804
8771
  super(src.status, src.error, src.message);
8805
8772
  }
8806
8773
  };
8807
- function toKnownErr29(e) {
8774
+ function toKnownErr30(e) {
8808
8775
  if (e instanceof XRPCError) {
8809
8776
  if (e.error === "AccountTakedown")
8810
8777
  return new AccountTakedownError(e);
@@ -8815,9 +8782,9 @@ function toKnownErr29(e) {
8815
8782
  // src/client/types/com/atproto/session/delete.ts
8816
8783
  var delete_exports2 = {};
8817
8784
  __export(delete_exports2, {
8818
- toKnownErr: () => toKnownErr30
8785
+ toKnownErr: () => toKnownErr31
8819
8786
  });
8820
- function toKnownErr30(e) {
8787
+ function toKnownErr31(e) {
8821
8788
  if (e instanceof XRPCError) {
8822
8789
  }
8823
8790
  return e;
@@ -8826,9 +8793,9 @@ function toKnownErr30(e) {
8826
8793
  // src/client/types/com/atproto/session/get.ts
8827
8794
  var get_exports2 = {};
8828
8795
  __export(get_exports2, {
8829
- toKnownErr: () => toKnownErr31
8796
+ toKnownErr: () => toKnownErr32
8830
8797
  });
8831
- function toKnownErr31(e) {
8798
+ function toKnownErr32(e) {
8832
8799
  if (e instanceof XRPCError) {
8833
8800
  }
8834
8801
  return e;
@@ -8838,14 +8805,14 @@ function toKnownErr31(e) {
8838
8805
  var refresh_exports = {};
8839
8806
  __export(refresh_exports, {
8840
8807
  AccountTakedownError: () => AccountTakedownError2,
8841
- toKnownErr: () => toKnownErr32
8808
+ toKnownErr: () => toKnownErr33
8842
8809
  });
8843
8810
  var AccountTakedownError2 = class extends XRPCError {
8844
8811
  constructor(src) {
8845
8812
  super(src.status, src.error, src.message);
8846
8813
  }
8847
8814
  };
8848
- function toKnownErr32(e) {
8815
+ function toKnownErr33(e) {
8849
8816
  if (e instanceof XRPCError) {
8850
8817
  if (e.error === "AccountTakedown")
8851
8818
  return new AccountTakedownError2(e);
@@ -8856,9 +8823,9 @@ function toKnownErr32(e) {
8856
8823
  // src/client/types/com/atproto/sync/getCheckout.ts
8857
8824
  var getCheckout_exports = {};
8858
8825
  __export(getCheckout_exports, {
8859
- toKnownErr: () => toKnownErr33
8826
+ toKnownErr: () => toKnownErr34
8860
8827
  });
8861
- function toKnownErr33(e) {
8828
+ function toKnownErr34(e) {
8862
8829
  if (e instanceof XRPCError) {
8863
8830
  }
8864
8831
  return e;
@@ -8867,9 +8834,9 @@ function toKnownErr33(e) {
8867
8834
  // src/client/types/com/atproto/sync/getCommitPath.ts
8868
8835
  var getCommitPath_exports = {};
8869
8836
  __export(getCommitPath_exports, {
8870
- toKnownErr: () => toKnownErr34
8837
+ toKnownErr: () => toKnownErr35
8871
8838
  });
8872
- function toKnownErr34(e) {
8839
+ function toKnownErr35(e) {
8873
8840
  if (e instanceof XRPCError) {
8874
8841
  }
8875
8842
  return e;
@@ -8878,9 +8845,9 @@ function toKnownErr34(e) {
8878
8845
  // src/client/types/com/atproto/sync/getHead.ts
8879
8846
  var getHead_exports = {};
8880
8847
  __export(getHead_exports, {
8881
- toKnownErr: () => toKnownErr35
8848
+ toKnownErr: () => toKnownErr36
8882
8849
  });
8883
- function toKnownErr35(e) {
8850
+ function toKnownErr36(e) {
8884
8851
  if (e instanceof XRPCError) {
8885
8852
  }
8886
8853
  return e;
@@ -8889,9 +8856,9 @@ function toKnownErr35(e) {
8889
8856
  // src/client/types/com/atproto/sync/getRecord.ts
8890
8857
  var getRecord_exports3 = {};
8891
8858
  __export(getRecord_exports3, {
8892
- toKnownErr: () => toKnownErr36
8859
+ toKnownErr: () => toKnownErr37
8893
8860
  });
8894
- function toKnownErr36(e) {
8861
+ function toKnownErr37(e) {
8895
8862
  if (e instanceof XRPCError) {
8896
8863
  }
8897
8864
  return e;
@@ -8900,9 +8867,9 @@ function toKnownErr36(e) {
8900
8867
  // src/client/types/com/atproto/sync/getRepo.ts
8901
8868
  var getRepo_exports2 = {};
8902
8869
  __export(getRepo_exports2, {
8903
- toKnownErr: () => toKnownErr37
8870
+ toKnownErr: () => toKnownErr38
8904
8871
  });
8905
- function toKnownErr37(e) {
8872
+ function toKnownErr38(e) {
8906
8873
  if (e instanceof XRPCError) {
8907
8874
  }
8908
8875
  return e;
@@ -8911,28 +8878,20 @@ function toKnownErr37(e) {
8911
8878
  // src/client/types/app/bsky/actor/getProfile.ts
8912
8879
  var getProfile_exports = {};
8913
8880
  __export(getProfile_exports, {
8914
- isMyState: () => isMyState,
8915
- toKnownErr: () => toKnownErr38,
8916
- validateMyState: () => validateMyState
8881
+ toKnownErr: () => toKnownErr39
8917
8882
  });
8918
- function toKnownErr38(e) {
8883
+ function toKnownErr39(e) {
8919
8884
  if (e instanceof XRPCError) {
8920
8885
  }
8921
8886
  return e;
8922
8887
  }
8923
- function isMyState(v) {
8924
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.getProfile#myState";
8925
- }
8926
- function validateMyState(v) {
8927
- return lexicons.validate("app.bsky.actor.getProfile#myState", v);
8928
- }
8929
8888
 
8930
8889
  // src/client/types/app/bsky/actor/getProfiles.ts
8931
8890
  var getProfiles_exports = {};
8932
8891
  __export(getProfiles_exports, {
8933
- toKnownErr: () => toKnownErr39
8892
+ toKnownErr: () => toKnownErr40
8934
8893
  });
8935
- function toKnownErr39(e) {
8894
+ function toKnownErr40(e) {
8936
8895
  if (e instanceof XRPCError) {
8937
8896
  }
8938
8897
  return e;
@@ -8941,59 +8900,35 @@ function toKnownErr39(e) {
8941
8900
  // src/client/types/app/bsky/actor/getSuggestions.ts
8942
8901
  var getSuggestions_exports = {};
8943
8902
  __export(getSuggestions_exports, {
8944
- isActor: () => isActor,
8945
- toKnownErr: () => toKnownErr40,
8946
- validateActor: () => validateActor
8903
+ toKnownErr: () => toKnownErr41
8947
8904
  });
8948
- function toKnownErr40(e) {
8905
+ function toKnownErr41(e) {
8949
8906
  if (e instanceof XRPCError) {
8950
8907
  }
8951
8908
  return e;
8952
8909
  }
8953
- function isActor(v) {
8954
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.getSuggestions#actor";
8955
- }
8956
- function validateActor(v) {
8957
- return lexicons.validate("app.bsky.actor.getSuggestions#actor", v);
8958
- }
8959
8910
 
8960
8911
  // src/client/types/app/bsky/actor/search.ts
8961
8912
  var search_exports = {};
8962
8913
  __export(search_exports, {
8963
- isUser: () => isUser,
8964
- toKnownErr: () => toKnownErr41,
8965
- validateUser: () => validateUser
8914
+ toKnownErr: () => toKnownErr42
8966
8915
  });
8967
- function toKnownErr41(e) {
8916
+ function toKnownErr42(e) {
8968
8917
  if (e instanceof XRPCError) {
8969
8918
  }
8970
8919
  return e;
8971
8920
  }
8972
- function isUser(v) {
8973
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.search#user";
8974
- }
8975
- function validateUser(v) {
8976
- return lexicons.validate("app.bsky.actor.search#user", v);
8977
- }
8978
8921
 
8979
8922
  // src/client/types/app/bsky/actor/searchTypeahead.ts
8980
8923
  var searchTypeahead_exports = {};
8981
8924
  __export(searchTypeahead_exports, {
8982
- isUser: () => isUser2,
8983
- toKnownErr: () => toKnownErr42,
8984
- validateUser: () => validateUser2
8925
+ toKnownErr: () => toKnownErr43
8985
8926
  });
8986
- function toKnownErr42(e) {
8927
+ function toKnownErr43(e) {
8987
8928
  if (e instanceof XRPCError) {
8988
8929
  }
8989
8930
  return e;
8990
8931
  }
8991
- function isUser2(v) {
8992
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.searchTypeahead#user";
8993
- }
8994
- function validateUser2(v) {
8995
- return lexicons.validate("app.bsky.actor.searchTypeahead#user", v);
8996
- }
8997
8932
 
8998
8933
  // src/client/types/app/bsky/actor/updateProfile.ts
8999
8934
  var updateProfile_exports = {};
@@ -9002,7 +8937,7 @@ __export(updateProfile_exports, {
9002
8937
  InvalidBlobError: () => InvalidBlobError,
9003
8938
  InvalidImageDimensionsError: () => InvalidImageDimensionsError,
9004
8939
  InvalidMimeTypeError: () => InvalidMimeTypeError,
9005
- toKnownErr: () => toKnownErr43
8940
+ toKnownErr: () => toKnownErr44
9006
8941
  });
9007
8942
  var InvalidBlobError = class extends XRPCError {
9008
8943
  constructor(src) {
@@ -9024,7 +8959,7 @@ var InvalidImageDimensionsError = class extends XRPCError {
9024
8959
  super(src.status, src.error, src.message);
9025
8960
  }
9026
8961
  };
9027
- function toKnownErr43(e) {
8962
+ function toKnownErr44(e) {
9028
8963
  if (e instanceof XRPCError) {
9029
8964
  if (e.error === "InvalidBlob")
9030
8965
  return new InvalidBlobError(e);
@@ -9041,9 +8976,9 @@ function toKnownErr43(e) {
9041
8976
  // src/client/types/app/bsky/feed/getAuthorFeed.ts
9042
8977
  var getAuthorFeed_exports = {};
9043
8978
  __export(getAuthorFeed_exports, {
9044
- toKnownErr: () => toKnownErr44
8979
+ toKnownErr: () => toKnownErr45
9045
8980
  });
9046
- function toKnownErr44(e) {
8981
+ function toKnownErr45(e) {
9047
8982
  if (e instanceof XRPCError) {
9048
8983
  }
9049
8984
  return e;
@@ -9055,7 +8990,7 @@ __export(getPostThread_exports, {
9055
8990
  NotFoundError: () => NotFoundError,
9056
8991
  isNotFoundPost: () => isNotFoundPost,
9057
8992
  isThreadViewPost: () => isThreadViewPost,
9058
- toKnownErr: () => toKnownErr45,
8993
+ toKnownErr: () => toKnownErr46,
9059
8994
  validateNotFoundPost: () => validateNotFoundPost,
9060
8995
  validateThreadViewPost: () => validateThreadViewPost
9061
8996
  });
@@ -9064,7 +8999,7 @@ var NotFoundError = class extends XRPCError {
9064
8999
  super(src.status, src.error, src.message);
9065
9000
  }
9066
9001
  };
9067
- function toKnownErr45(e) {
9002
+ function toKnownErr46(e) {
9068
9003
  if (e instanceof XRPCError) {
9069
9004
  if (e.error === "NotFound")
9070
9005
  return new NotFoundError(e);
@@ -9087,28 +9022,20 @@ function validateNotFoundPost(v) {
9087
9022
  // src/client/types/app/bsky/feed/getRepostedBy.ts
9088
9023
  var getRepostedBy_exports = {};
9089
9024
  __export(getRepostedBy_exports, {
9090
- isRepostedBy: () => isRepostedBy,
9091
- toKnownErr: () => toKnownErr46,
9092
- validateRepostedBy: () => validateRepostedBy
9025
+ toKnownErr: () => toKnownErr47
9093
9026
  });
9094
- function toKnownErr46(e) {
9027
+ function toKnownErr47(e) {
9095
9028
  if (e instanceof XRPCError) {
9096
9029
  }
9097
9030
  return e;
9098
9031
  }
9099
- function isRepostedBy(v) {
9100
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.getRepostedBy#repostedBy";
9101
- }
9102
- function validateRepostedBy(v) {
9103
- return lexicons.validate("app.bsky.feed.getRepostedBy#repostedBy", v);
9104
- }
9105
9032
 
9106
9033
  // src/client/types/app/bsky/feed/getTimeline.ts
9107
9034
  var getTimeline_exports = {};
9108
9035
  __export(getTimeline_exports, {
9109
- toKnownErr: () => toKnownErr47
9036
+ toKnownErr: () => toKnownErr48
9110
9037
  });
9111
- function toKnownErr47(e) {
9038
+ function toKnownErr48(e) {
9112
9039
  if (e instanceof XRPCError) {
9113
9040
  }
9114
9041
  return e;
@@ -9118,10 +9045,10 @@ function toKnownErr47(e) {
9118
9045
  var getVotes_exports = {};
9119
9046
  __export(getVotes_exports, {
9120
9047
  isVote: () => isVote,
9121
- toKnownErr: () => toKnownErr48,
9048
+ toKnownErr: () => toKnownErr49,
9122
9049
  validateVote: () => validateVote
9123
9050
  });
9124
- function toKnownErr48(e) {
9051
+ function toKnownErr49(e) {
9125
9052
  if (e instanceof XRPCError) {
9126
9053
  }
9127
9054
  return e;
@@ -9136,9 +9063,9 @@ function validateVote(v) {
9136
9063
  // src/client/types/app/bsky/feed/setVote.ts
9137
9064
  var setVote_exports = {};
9138
9065
  __export(setVote_exports, {
9139
- toKnownErr: () => toKnownErr49
9066
+ toKnownErr: () => toKnownErr50
9140
9067
  });
9141
- function toKnownErr49(e) {
9068
+ function toKnownErr50(e) {
9142
9069
  if (e instanceof XRPCError) {
9143
9070
  }
9144
9071
  return e;
@@ -9147,66 +9074,42 @@ function toKnownErr49(e) {
9147
9074
  // src/client/types/app/bsky/graph/getFollowers.ts
9148
9075
  var getFollowers_exports = {};
9149
9076
  __export(getFollowers_exports, {
9150
- isFollower: () => isFollower,
9151
- toKnownErr: () => toKnownErr50,
9152
- validateFollower: () => validateFollower
9077
+ toKnownErr: () => toKnownErr51
9153
9078
  });
9154
- function toKnownErr50(e) {
9079
+ function toKnownErr51(e) {
9155
9080
  if (e instanceof XRPCError) {
9156
9081
  }
9157
9082
  return e;
9158
9083
  }
9159
- function isFollower(v) {
9160
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getFollowers#follower";
9161
- }
9162
- function validateFollower(v) {
9163
- return lexicons.validate("app.bsky.graph.getFollowers#follower", v);
9164
- }
9165
9084
 
9166
9085
  // src/client/types/app/bsky/graph/getFollows.ts
9167
9086
  var getFollows_exports = {};
9168
9087
  __export(getFollows_exports, {
9169
- isFollow: () => isFollow,
9170
- toKnownErr: () => toKnownErr51,
9171
- validateFollow: () => validateFollow
9088
+ toKnownErr: () => toKnownErr52
9172
9089
  });
9173
- function toKnownErr51(e) {
9090
+ function toKnownErr52(e) {
9174
9091
  if (e instanceof XRPCError) {
9175
9092
  }
9176
9093
  return e;
9177
9094
  }
9178
- function isFollow(v) {
9179
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getFollows#follow";
9180
- }
9181
- function validateFollow(v) {
9182
- return lexicons.validate("app.bsky.graph.getFollows#follow", v);
9183
- }
9184
9095
 
9185
9096
  // src/client/types/app/bsky/graph/getMutes.ts
9186
9097
  var getMutes_exports = {};
9187
9098
  __export(getMutes_exports, {
9188
- isMute: () => isMute,
9189
- toKnownErr: () => toKnownErr52,
9190
- validateMute: () => validateMute
9099
+ toKnownErr: () => toKnownErr53
9191
9100
  });
9192
- function toKnownErr52(e) {
9101
+ function toKnownErr53(e) {
9193
9102
  if (e instanceof XRPCError) {
9194
9103
  }
9195
9104
  return e;
9196
9105
  }
9197
- function isMute(v) {
9198
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getMutes#mute";
9199
- }
9200
- function validateMute(v) {
9201
- return lexicons.validate("app.bsky.graph.getMutes#mute", v);
9202
- }
9203
9106
 
9204
9107
  // src/client/types/app/bsky/graph/mute.ts
9205
9108
  var mute_exports = {};
9206
9109
  __export(mute_exports, {
9207
- toKnownErr: () => toKnownErr53
9110
+ toKnownErr: () => toKnownErr54
9208
9111
  });
9209
- function toKnownErr53(e) {
9112
+ function toKnownErr54(e) {
9210
9113
  if (e instanceof XRPCError) {
9211
9114
  }
9212
9115
  return e;
@@ -9215,9 +9118,9 @@ function toKnownErr53(e) {
9215
9118
  // src/client/types/app/bsky/graph/unmute.ts
9216
9119
  var unmute_exports = {};
9217
9120
  __export(unmute_exports, {
9218
- toKnownErr: () => toKnownErr54
9121
+ toKnownErr: () => toKnownErr55
9219
9122
  });
9220
- function toKnownErr54(e) {
9123
+ function toKnownErr55(e) {
9221
9124
  if (e instanceof XRPCError) {
9222
9125
  }
9223
9126
  return e;
@@ -9226,9 +9129,9 @@ function toKnownErr54(e) {
9226
9129
  // src/client/types/app/bsky/notification/getCount.ts
9227
9130
  var getCount_exports = {};
9228
9131
  __export(getCount_exports, {
9229
- toKnownErr: () => toKnownErr55
9132
+ toKnownErr: () => toKnownErr56
9230
9133
  });
9231
- function toKnownErr55(e) {
9134
+ function toKnownErr56(e) {
9232
9135
  if (e instanceof XRPCError) {
9233
9136
  }
9234
9137
  return e;
@@ -9238,10 +9141,10 @@ function toKnownErr55(e) {
9238
9141
  var list_exports = {};
9239
9142
  __export(list_exports, {
9240
9143
  isNotification: () => isNotification,
9241
- toKnownErr: () => toKnownErr56,
9144
+ toKnownErr: () => toKnownErr57,
9242
9145
  validateNotification: () => validateNotification
9243
9146
  });
9244
- function toKnownErr56(e) {
9147
+ function toKnownErr57(e) {
9245
9148
  if (e instanceof XRPCError) {
9246
9149
  }
9247
9150
  return e;
@@ -9256,9 +9159,9 @@ function validateNotification(v) {
9256
9159
  // src/client/types/app/bsky/notification/updateSeen.ts
9257
9160
  var updateSeen_exports = {};
9258
9161
  __export(updateSeen_exports, {
9259
- toKnownErr: () => toKnownErr57
9162
+ toKnownErr: () => toKnownErr58
9260
9163
  });
9261
- function toKnownErr57(e) {
9164
+ function toKnownErr58(e) {
9262
9165
  if (e instanceof XRPCError) {
9263
9166
  }
9264
9167
  return e;
@@ -9524,15 +9427,40 @@ function validateRecordRef(v) {
9524
9427
  return lexicons.validate("com.atproto.report.subject#recordRef", v);
9525
9428
  }
9526
9429
 
9430
+ // src/client/types/com/atproto/sync/subscribeAllRepos.ts
9431
+ var subscribeAllRepos_exports = {};
9432
+ __export(subscribeAllRepos_exports, {
9433
+ isRepoAppend: () => isRepoAppend,
9434
+ isRepoRebase: () => isRepoRebase,
9435
+ validateRepoAppend: () => validateRepoAppend,
9436
+ validateRepoRebase: () => validateRepoRebase
9437
+ });
9438
+ function isRepoAppend(v) {
9439
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeAllRepos#repoAppend";
9440
+ }
9441
+ function validateRepoAppend(v) {
9442
+ return lexicons.validate("com.atproto.sync.subscribeAllRepos#repoAppend", v);
9443
+ }
9444
+ function isRepoRebase(v) {
9445
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeAllRepos#repoRebase";
9446
+ }
9447
+ function validateRepoRebase(v) {
9448
+ return lexicons.validate("com.atproto.sync.subscribeAllRepos#repoRebase", v);
9449
+ }
9450
+
9527
9451
  // src/client/types/app/bsky/actor/profile.ts
9528
9452
  var profile_exports = {};
9529
9453
  __export(profile_exports, {
9530
- isMyState: () => isMyState2,
9454
+ isMyState: () => isMyState,
9531
9455
  isRecord: () => isRecord3,
9532
9456
  isView: () => isView6,
9533
- validateMyState: () => validateMyState2,
9457
+ isViewBasic: () => isViewBasic,
9458
+ isViewerState: () => isViewerState,
9459
+ validateMyState: () => validateMyState,
9534
9460
  validateRecord: () => validateRecord3,
9535
- validateView: () => validateView6
9461
+ validateView: () => validateView6,
9462
+ validateViewBasic: () => validateViewBasic,
9463
+ validateViewerState: () => validateViewerState
9536
9464
  });
9537
9465
  function isRecord3(v) {
9538
9466
  return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.actor.profile#main" || v.$type === "app.bsky.actor.profile");
@@ -9546,10 +9474,22 @@ function isView6(v) {
9546
9474
  function validateView6(v) {
9547
9475
  return lexicons.validate("app.bsky.actor.profile#view", v);
9548
9476
  }
9549
- function isMyState2(v) {
9477
+ function isViewBasic(v) {
9478
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.profile#viewBasic";
9479
+ }
9480
+ function validateViewBasic(v) {
9481
+ return lexicons.validate("app.bsky.actor.profile#viewBasic", v);
9482
+ }
9483
+ function isViewerState(v) {
9484
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.profile#viewerState";
9485
+ }
9486
+ function validateViewerState(v) {
9487
+ return lexicons.validate("app.bsky.actor.profile#viewerState", v);
9488
+ }
9489
+ function isMyState(v) {
9550
9490
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.profile#myState";
9551
9491
  }
9552
- function validateMyState2(v) {
9492
+ function validateMyState(v) {
9553
9493
  return lexicons.validate("app.bsky.actor.profile#myState", v);
9554
9494
  }
9555
9495
 
@@ -9557,10 +9497,10 @@ function validateMyState2(v) {
9557
9497
  var ref_exports = {};
9558
9498
  __export(ref_exports, {
9559
9499
  isMain: () => isMain4,
9560
- isViewerState: () => isViewerState,
9500
+ isViewerState: () => isViewerState2,
9561
9501
  isWithInfo: () => isWithInfo,
9562
9502
  validateMain: () => validateMain4,
9563
- validateViewerState: () => validateViewerState,
9503
+ validateViewerState: () => validateViewerState2,
9564
9504
  validateWithInfo: () => validateWithInfo
9565
9505
  });
9566
9506
  function isMain4(v) {
@@ -9575,10 +9515,10 @@ function isWithInfo(v) {
9575
9515
  function validateWithInfo(v) {
9576
9516
  return lexicons.validate("app.bsky.actor.ref#withInfo", v);
9577
9517
  }
9578
- function isViewerState(v) {
9518
+ function isViewerState2(v) {
9579
9519
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.ref#viewerState";
9580
9520
  }
9581
- function validateViewerState(v) {
9521
+ function validateViewerState2(v) {
9582
9522
  return lexicons.validate("app.bsky.actor.ref#viewerState", v);
9583
9523
  }
9584
9524
 
@@ -9693,13 +9633,13 @@ __export(post_exports, {
9693
9633
  isReplyRef: () => isReplyRef2,
9694
9634
  isTextSlice: () => isTextSlice,
9695
9635
  isView: () => isView7,
9696
- isViewerState: () => isViewerState2,
9636
+ isViewerState: () => isViewerState3,
9697
9637
  validateEntity: () => validateEntity,
9698
9638
  validateRecord: () => validateRecord4,
9699
9639
  validateReplyRef: () => validateReplyRef2,
9700
9640
  validateTextSlice: () => validateTextSlice,
9701
9641
  validateView: () => validateView7,
9702
- validateViewerState: () => validateViewerState2
9642
+ validateViewerState: () => validateViewerState3
9703
9643
  });
9704
9644
  function isRecord4(v) {
9705
9645
  return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.post#main" || v.$type === "app.bsky.feed.post");
@@ -9731,10 +9671,10 @@ function isView7(v) {
9731
9671
  function validateView7(v) {
9732
9672
  return lexicons.validate("app.bsky.feed.post#view", v);
9733
9673
  }
9734
- function isViewerState2(v) {
9674
+ function isViewerState3(v) {
9735
9675
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#viewerState";
9736
9676
  }
9737
- function validateViewerState2(v) {
9677
+ function validateViewerState3(v) {
9738
9678
  return lexicons.validate("app.bsky.feed.post#viewerState", v);
9739
9679
  }
9740
9680
 
@@ -10021,6 +9961,11 @@ var HandleNS = class {
10021
9961
  throw toKnownErr19(e);
10022
9962
  });
10023
9963
  }
9964
+ update(data, opts) {
9965
+ return this._service.xrpc.call("com.atproto.handle.update", opts?.qp, data, opts).catch((e) => {
9966
+ throw toKnownErr20(e);
9967
+ });
9968
+ }
10024
9969
  };
10025
9970
  var RepoNS = class {
10026
9971
  constructor(service) {
@@ -10028,37 +9973,37 @@ var RepoNS = class {
10028
9973
  }
10029
9974
  batchWrite(data, opts) {
10030
9975
  return this._service.xrpc.call("com.atproto.repo.batchWrite", opts?.qp, data, opts).catch((e) => {
10031
- throw toKnownErr20(e);
9976
+ throw toKnownErr21(e);
10032
9977
  });
10033
9978
  }
10034
9979
  createRecord(data, opts) {
10035
9980
  return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
10036
- throw toKnownErr21(e);
9981
+ throw toKnownErr22(e);
10037
9982
  });
10038
9983
  }
10039
9984
  deleteRecord(data, opts) {
10040
9985
  return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
10041
- throw toKnownErr22(e);
9986
+ throw toKnownErr23(e);
10042
9987
  });
10043
9988
  }
10044
9989
  describe(params2, opts) {
10045
9990
  return this._service.xrpc.call("com.atproto.repo.describe", params2, void 0, opts).catch((e) => {
10046
- throw toKnownErr23(e);
9991
+ throw toKnownErr24(e);
10047
9992
  });
10048
9993
  }
10049
9994
  getRecord(params2, opts) {
10050
9995
  return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
10051
- throw toKnownErr24(e);
9996
+ throw toKnownErr25(e);
10052
9997
  });
10053
9998
  }
10054
9999
  listRecords(params2, opts) {
10055
10000
  return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
10056
- throw toKnownErr25(e);
10001
+ throw toKnownErr26(e);
10057
10002
  });
10058
10003
  }
10059
10004
  putRecord(data, opts) {
10060
10005
  return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
10061
- throw toKnownErr26(e);
10006
+ throw toKnownErr27(e);
10062
10007
  });
10063
10008
  }
10064
10009
  };
@@ -10068,7 +10013,7 @@ var ReportNS = class {
10068
10013
  }
10069
10014
  create(data, opts) {
10070
10015
  return this._service.xrpc.call("com.atproto.report.create", opts?.qp, data, opts).catch((e) => {
10071
- throw toKnownErr27(e);
10016
+ throw toKnownErr28(e);
10072
10017
  });
10073
10018
  }
10074
10019
  };
@@ -10078,7 +10023,7 @@ var ServerNS = class {
10078
10023
  }
10079
10024
  getAccountsConfig(params2, opts) {
10080
10025
  return this._service.xrpc.call("com.atproto.server.getAccountsConfig", params2, void 0, opts).catch((e) => {
10081
- throw toKnownErr28(e);
10026
+ throw toKnownErr29(e);
10082
10027
  });
10083
10028
  }
10084
10029
  };
@@ -10088,22 +10033,22 @@ var SessionNS = class {
10088
10033
  }
10089
10034
  create(data, opts) {
10090
10035
  return this._service.xrpc.call("com.atproto.session.create", opts?.qp, data, opts).catch((e) => {
10091
- throw toKnownErr29(e);
10036
+ throw toKnownErr30(e);
10092
10037
  });
10093
10038
  }
10094
10039
  delete(data, opts) {
10095
10040
  return this._service.xrpc.call("com.atproto.session.delete", opts?.qp, data, opts).catch((e) => {
10096
- throw toKnownErr30(e);
10041
+ throw toKnownErr31(e);
10097
10042
  });
10098
10043
  }
10099
10044
  get(params2, opts) {
10100
10045
  return this._service.xrpc.call("com.atproto.session.get", params2, void 0, opts).catch((e) => {
10101
- throw toKnownErr31(e);
10046
+ throw toKnownErr32(e);
10102
10047
  });
10103
10048
  }
10104
10049
  refresh(data, opts) {
10105
10050
  return this._service.xrpc.call("com.atproto.session.refresh", opts?.qp, data, opts).catch((e) => {
10106
- throw toKnownErr32(e);
10051
+ throw toKnownErr33(e);
10107
10052
  });
10108
10053
  }
10109
10054
  };
@@ -10113,27 +10058,27 @@ var SyncNS = class {
10113
10058
  }
10114
10059
  getCheckout(params2, opts) {
10115
10060
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
10116
- throw toKnownErr33(e);
10061
+ throw toKnownErr34(e);
10117
10062
  });
10118
10063
  }
10119
10064
  getCommitPath(params2, opts) {
10120
10065
  return this._service.xrpc.call("com.atproto.sync.getCommitPath", params2, void 0, opts).catch((e) => {
10121
- throw toKnownErr34(e);
10066
+ throw toKnownErr35(e);
10122
10067
  });
10123
10068
  }
10124
10069
  getHead(params2, opts) {
10125
10070
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
10126
- throw toKnownErr35(e);
10071
+ throw toKnownErr36(e);
10127
10072
  });
10128
10073
  }
10129
10074
  getRecord(params2, opts) {
10130
10075
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
10131
- throw toKnownErr36(e);
10076
+ throw toKnownErr37(e);
10132
10077
  });
10133
10078
  }
10134
10079
  getRepo(params2, opts) {
10135
10080
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
10136
- throw toKnownErr37(e);
10081
+ throw toKnownErr38(e);
10137
10082
  });
10138
10083
  }
10139
10084
  };
@@ -10161,32 +10106,32 @@ var ActorNS = class {
10161
10106
  }
10162
10107
  getProfile(params2, opts) {
10163
10108
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
10164
- throw toKnownErr38(e);
10109
+ throw toKnownErr39(e);
10165
10110
  });
10166
10111
  }
10167
10112
  getProfiles(params2, opts) {
10168
10113
  return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
10169
- throw toKnownErr39(e);
10114
+ throw toKnownErr40(e);
10170
10115
  });
10171
10116
  }
10172
10117
  getSuggestions(params2, opts) {
10173
10118
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
10174
- throw toKnownErr40(e);
10119
+ throw toKnownErr41(e);
10175
10120
  });
10176
10121
  }
10177
10122
  search(params2, opts) {
10178
10123
  return this._service.xrpc.call("app.bsky.actor.search", params2, void 0, opts).catch((e) => {
10179
- throw toKnownErr41(e);
10124
+ throw toKnownErr42(e);
10180
10125
  });
10181
10126
  }
10182
10127
  searchTypeahead(params2, opts) {
10183
10128
  return this._service.xrpc.call("app.bsky.actor.searchTypeahead", params2, void 0, opts).catch((e) => {
10184
- throw toKnownErr42(e);
10129
+ throw toKnownErr43(e);
10185
10130
  });
10186
10131
  }
10187
10132
  updateProfile(data, opts) {
10188
10133
  return this._service.xrpc.call("app.bsky.actor.updateProfile", opts?.qp, data, opts).catch((e) => {
10189
- throw toKnownErr43(e);
10134
+ throw toKnownErr44(e);
10190
10135
  });
10191
10136
  }
10192
10137
  };
@@ -10241,32 +10186,32 @@ var FeedNS = class {
10241
10186
  }
10242
10187
  getAuthorFeed(params2, opts) {
10243
10188
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
10244
- throw toKnownErr44(e);
10189
+ throw toKnownErr45(e);
10245
10190
  });
10246
10191
  }
10247
10192
  getPostThread(params2, opts) {
10248
10193
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
10249
- throw toKnownErr45(e);
10194
+ throw toKnownErr46(e);
10250
10195
  });
10251
10196
  }
10252
10197
  getRepostedBy(params2, opts) {
10253
10198
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
10254
- throw toKnownErr46(e);
10199
+ throw toKnownErr47(e);
10255
10200
  });
10256
10201
  }
10257
10202
  getTimeline(params2, opts) {
10258
10203
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
10259
- throw toKnownErr47(e);
10204
+ throw toKnownErr48(e);
10260
10205
  });
10261
10206
  }
10262
10207
  getVotes(params2, opts) {
10263
10208
  return this._service.xrpc.call("app.bsky.feed.getVotes", params2, void 0, opts).catch((e) => {
10264
- throw toKnownErr48(e);
10209
+ throw toKnownErr49(e);
10265
10210
  });
10266
10211
  }
10267
10212
  setVote(data, opts) {
10268
10213
  return this._service.xrpc.call("app.bsky.feed.setVote", opts?.qp, data, opts).catch((e) => {
10269
- throw toKnownErr49(e);
10214
+ throw toKnownErr50(e);
10270
10215
  });
10271
10216
  }
10272
10217
  };
@@ -10390,27 +10335,27 @@ var GraphNS = class {
10390
10335
  }
10391
10336
  getFollowers(params2, opts) {
10392
10337
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
10393
- throw toKnownErr50(e);
10338
+ throw toKnownErr51(e);
10394
10339
  });
10395
10340
  }
10396
10341
  getFollows(params2, opts) {
10397
10342
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
10398
- throw toKnownErr51(e);
10343
+ throw toKnownErr52(e);
10399
10344
  });
10400
10345
  }
10401
10346
  getMutes(params2, opts) {
10402
10347
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
10403
- throw toKnownErr52(e);
10348
+ throw toKnownErr53(e);
10404
10349
  });
10405
10350
  }
10406
10351
  mute(data, opts) {
10407
10352
  return this._service.xrpc.call("app.bsky.graph.mute", opts?.qp, data, opts).catch((e) => {
10408
- throw toKnownErr53(e);
10353
+ throw toKnownErr54(e);
10409
10354
  });
10410
10355
  }
10411
10356
  unmute(data, opts) {
10412
10357
  return this._service.xrpc.call("app.bsky.graph.unmute", opts?.qp, data, opts).catch((e) => {
10413
- throw toKnownErr54(e);
10358
+ throw toKnownErr55(e);
10414
10359
  });
10415
10360
  }
10416
10361
  };
@@ -10531,17 +10476,17 @@ var NotificationNS = class {
10531
10476
  }
10532
10477
  getCount(params2, opts) {
10533
10478
  return this._service.xrpc.call("app.bsky.notification.getCount", params2, void 0, opts).catch((e) => {
10534
- throw toKnownErr55(e);
10479
+ throw toKnownErr56(e);
10535
10480
  });
10536
10481
  }
10537
10482
  list(params2, opts) {
10538
10483
  return this._service.xrpc.call("app.bsky.notification.list", params2, void 0, opts).catch((e) => {
10539
- throw toKnownErr56(e);
10484
+ throw toKnownErr57(e);
10540
10485
  });
10541
10486
  }
10542
10487
  updateSeen(data, opts) {
10543
10488
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
10544
- throw toKnownErr57(e);
10489
+ throw toKnownErr58(e);
10545
10490
  });
10546
10491
  }
10547
10492
  };
@@ -10849,6 +10794,7 @@ function isNewSessionObject(client, v) {
10849
10794
  ComAtprotoAdminTakeModerationAction,
10850
10795
  ComAtprotoBlobUpload,
10851
10796
  ComAtprotoHandleResolve,
10797
+ ComAtprotoHandleUpdate,
10852
10798
  ComAtprotoRepoBatchWrite,
10853
10799
  ComAtprotoRepoCreateRecord,
10854
10800
  ComAtprotoRepoDeleteRecord,
@@ -10872,6 +10818,7 @@ function isNewSessionObject(client, v) {
10872
10818
  ComAtprotoSyncGetHead,
10873
10819
  ComAtprotoSyncGetRecord,
10874
10820
  ComAtprotoSyncGetRepo,
10821
+ ComAtprotoSyncSubscribeAllRepos,
10875
10822
  ComNS,
10876
10823
  ConfirmationRecord,
10877
10824
  DeclarationRecord,