@atproto/api 0.1.0 → 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 (38) hide show
  1. package/dist/client/index.d.ts +7 -0
  2. package/dist/client/lexicons.d.ts +254 -240
  3. package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -24
  4. package/dist/client/types/app/bsky/actor/getProfiles.d.ts +19 -0
  5. package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +2 -15
  6. package/dist/client/types/app/bsky/actor/profile.d.ts +48 -0
  7. package/dist/client/types/app/bsky/actor/ref.d.ts +2 -0
  8. package/dist/client/types/app/bsky/actor/search.d.ts +2 -15
  9. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +2 -13
  10. package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +2 -15
  11. package/dist/client/types/app/bsky/graph/getFollowers.d.ts +1 -15
  12. package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -15
  13. package/dist/client/types/app/bsky/graph/getMutes.d.ts +2 -13
  14. package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
  15. package/dist/client/types/com/atproto/report/reasonType.d.ts +1 -1
  16. package/dist/client/types/com/atproto/sync/getRepo.d.ts +2 -1
  17. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +20 -0
  18. package/dist/index.js +632 -544
  19. package/dist/index.js.map +4 -4
  20. package/package.json +1 -1
  21. package/src/client/index.ts +28 -0
  22. package/src/client/lexicons.ts +282 -262
  23. package/src/client/types/app/bsky/actor/getProfile.ts +2 -35
  24. package/src/client/types/app/bsky/actor/getProfiles.ts +35 -0
  25. package/src/client/types/app/bsky/actor/getSuggestions.ts +2 -25
  26. package/src/client/types/app/bsky/actor/profile.ts +91 -0
  27. package/src/client/types/app/bsky/actor/ref.ts +2 -0
  28. package/src/client/types/app/bsky/actor/search.ts +2 -23
  29. package/src/client/types/app/bsky/actor/searchTypeahead.ts +2 -23
  30. package/src/client/types/app/bsky/feed/getRepostedBy.ts +2 -25
  31. package/src/client/types/app/bsky/graph/getFollowers.ts +1 -25
  32. package/src/client/types/app/bsky/graph/getFollows.ts +1 -25
  33. package/src/client/types/app/bsky/graph/getMutes.ts +2 -23
  34. package/src/client/types/com/atproto/handle/update.ts +31 -0
  35. package/src/client/types/com/atproto/report/reasonType.ts +2 -2
  36. package/src/client/types/com/atproto/sync/getRepo.ts +4 -2
  37. package/src/client/types/com/atproto/sync/subscribeAllRepos.ts +48 -0
  38. package/tsconfig.build.tsbuildinfo +1 -1
package/dist/index.js CHANGED
@@ -84,6 +84,7 @@ __export(src_exports, {
84
84
  ActorNS: () => ActorNS,
85
85
  AdminNS: () => AdminNS,
86
86
  AppBskyActorGetProfile: () => getProfile_exports,
87
+ AppBskyActorGetProfiles: () => getProfiles_exports,
87
88
  AppBskyActorGetSuggestions: () => getSuggestions_exports,
88
89
  AppBskyActorProfile: () => profile_exports,
89
90
  AppBskyActorRef: () => ref_exports,
@@ -152,6 +153,7 @@ __export(src_exports, {
152
153
  ComAtprotoAdminTakeModerationAction: () => takeModerationAction_exports,
153
154
  ComAtprotoBlobUpload: () => upload_exports,
154
155
  ComAtprotoHandleResolve: () => resolve_exports,
156
+ ComAtprotoHandleUpdate: () => update_exports,
155
157
  ComAtprotoRepoBatchWrite: () => batchWrite_exports,
156
158
  ComAtprotoRepoCreateRecord: () => createRecord_exports,
157
159
  ComAtprotoRepoDeleteRecord: () => deleteRecord_exports,
@@ -175,6 +177,7 @@ __export(src_exports, {
175
177
  ComAtprotoSyncGetHead: () => getHead_exports,
176
178
  ComAtprotoSyncGetRecord: () => getRecord_exports3,
177
179
  ComAtprotoSyncGetRepo: () => getRepo_exports2,
180
+ ComAtprotoSyncSubscribeAllRepos: () => subscribeAllRepos_exports,
178
181
  ComNS: () => ComNS,
179
182
  ConfirmationRecord: () => ConfirmationRecord,
180
183
  DeclarationRecord: () => DeclarationRecord,
@@ -3377,6 +3380,11 @@ var lexXrpcBody = mod.object({
3377
3380
  encoding: mod.string(),
3378
3381
  schema: mod.union([lexRefVariant, lexObject]).optional()
3379
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
+ });
3380
3388
  var lexXrpcError = mod.object({
3381
3389
  name: mod.string(),
3382
3390
  description: mod.string().optional()
@@ -3396,6 +3404,14 @@ var lexXrpcProcedure = mod.object({
3396
3404
  output: lexXrpcBody.optional(),
3397
3405
  errors: lexXrpcError.array().optional()
3398
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
+ });
3399
3415
  var lexRecord = mod.object({
3400
3416
  type: mod.literal("record"),
3401
3417
  description: mod.string().optional(),
@@ -3406,6 +3422,7 @@ var lexUserType = mod.union([
3406
3422
  lexRecord,
3407
3423
  lexXrpcQuery,
3408
3424
  lexXrpcProcedure,
3425
+ lexXrpcSubscription,
3409
3426
  lexBlob,
3410
3427
  lexImage,
3411
3428
  lexVideo,
@@ -3431,10 +3448,10 @@ var lexiconDoc = mod.object({
3431
3448
  }).superRefine((doc, ctx) => {
3432
3449
  for (const defId in doc.defs) {
3433
3450
  const def = doc.defs[defId];
3434
- 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")) {
3435
3452
  ctx.addIssue({
3436
3453
  code: mod.ZodIssueCode.custom,
3437
- message: `Records, procedures, and queries must be the main definition.`
3454
+ message: `Records, procedures, queries, and subscriptions must be the main definition.`
3438
3455
  });
3439
3456
  }
3440
3457
  }
@@ -3491,9 +3508,9 @@ function validate(lexicons2, path, def, value) {
3491
3508
  function boolean(lexicons2, path, def, value) {
3492
3509
  def = def;
3493
3510
  const type = typeof value;
3494
- if (type == "undefined") {
3511
+ if (type === "undefined") {
3495
3512
  if (typeof def.default === "boolean") {
3496
- return { success: true };
3513
+ return { success: true, value: def.default };
3497
3514
  }
3498
3515
  return {
3499
3516
  success: false,
@@ -3513,14 +3530,14 @@ function boolean(lexicons2, path, def, value) {
3513
3530
  };
3514
3531
  }
3515
3532
  }
3516
- return { success: true };
3533
+ return { success: true, value };
3517
3534
  }
3518
3535
  function number(lexicons2, path, def, value) {
3519
3536
  def = def;
3520
3537
  const type = typeof value;
3521
- if (type == "undefined") {
3538
+ if (type === "undefined") {
3522
3539
  if (typeof def.default === "number") {
3523
- return { success: true };
3540
+ return { success: true, value: def.default };
3524
3541
  }
3525
3542
  return {
3526
3543
  success: false,
@@ -3570,13 +3587,15 @@ function number(lexicons2, path, def, value) {
3570
3587
  };
3571
3588
  }
3572
3589
  }
3573
- return { success: true };
3590
+ return { success: true, value };
3574
3591
  }
3575
3592
  function integer(lexicons2, path, def, value) {
3576
3593
  def = def;
3577
3594
  const numRes = number(lexicons2, path, def, value);
3578
3595
  if (!numRes.success) {
3579
3596
  return numRes;
3597
+ } else {
3598
+ value = numRes.value;
3580
3599
  }
3581
3600
  if (!Number.isInteger(value)) {
3582
3601
  return {
@@ -3584,14 +3603,14 @@ function integer(lexicons2, path, def, value) {
3584
3603
  error: new ValidationError(`${path} must be an integer`)
3585
3604
  };
3586
3605
  }
3587
- return { success: true };
3606
+ return { success: true, value };
3588
3607
  }
3589
3608
  function string(lexicons2, path, def, value) {
3590
3609
  def = def;
3591
3610
  const type = typeof value;
3592
- if (type == "undefined") {
3611
+ if (type === "undefined") {
3593
3612
  if (typeof def.default === "string") {
3594
- return { success: true };
3613
+ return { success: true, value: def.default };
3595
3614
  }
3596
3615
  return {
3597
3616
  success: false,
@@ -3641,7 +3660,7 @@ function string(lexicons2, path, def, value) {
3641
3660
  };
3642
3661
  }
3643
3662
  }
3644
- return { success: true };
3663
+ return { success: true, value };
3645
3664
  }
3646
3665
  function datetime(lexicons2, path, def, value) {
3647
3666
  def = def;
@@ -3663,7 +3682,7 @@ function datetime(lexicons2, path, def, value) {
3663
3682
  throw new ValidationError(`${path} must be an iso8601 formatted datetime`);
3664
3683
  }
3665
3684
  }
3666
- return { success: true };
3685
+ return { success: true, value };
3667
3686
  }
3668
3687
  function unknown(lexicons2, path, def, value) {
3669
3688
  if (!value || typeof value !== "object") {
@@ -3672,7 +3691,7 @@ function unknown(lexicons2, path, def, value) {
3672
3691
  error: new ValidationError(`${path} must be an object`)
3673
3692
  };
3674
3693
  }
3675
- return { success: true };
3694
+ return { success: true, value };
3676
3695
  }
3677
3696
 
3678
3697
  // ../lexicon/src/validators/blob.ts
@@ -3695,7 +3714,7 @@ function blob(lexicons2, path, def, value) {
3695
3714
  error: new ValidationError(`${path}/mimeType should be a string`)
3696
3715
  };
3697
3716
  }
3698
- return { success: true };
3717
+ return { success: true, value };
3699
3718
  }
3700
3719
  function image(lexicons2, path, def, value) {
3701
3720
  return blob(lexicons2, path, def, value);
@@ -3777,7 +3796,7 @@ function array(lexicons2, path, def, value) {
3777
3796
  return res;
3778
3797
  }
3779
3798
  }
3780
- return { success: true };
3799
+ return { success: true, value };
3781
3800
  }
3782
3801
  function object(lexicons2, path, def, value) {
3783
3802
  def = def;
@@ -3787,31 +3806,32 @@ function object(lexicons2, path, def, value) {
3787
3806
  error: new ValidationError(`${path} must be an object`)
3788
3807
  };
3789
3808
  }
3790
- if (Array.isArray(def.required)) {
3791
- for (const key of def.required) {
3792
- 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)) {
3793
3819
  return {
3794
3820
  success: false,
3795
3821
  error: new ValidationError(`${path} must have the property "${key}"`)
3796
3822
  };
3823
+ } else if (!propIsUndefined && !validated.success) {
3824
+ return validated;
3797
3825
  }
3798
- }
3799
- }
3800
- if (typeof def.properties === "object") {
3801
- for (const key in def.properties) {
3802
- const propValue = value[key];
3803
- if (typeof propValue === "undefined") {
3804
- continue;
3805
- }
3806
- const propDef = def.properties[key];
3807
- const propPath = `${path}/${key}`;
3808
- const res = validateOneOf(lexicons2, propPath, propDef, propValue);
3809
- if (!res.success) {
3810
- return res;
3826
+ if (propValue !== value[key]) {
3827
+ if (resultValue === value) {
3828
+ resultValue = { ...value };
3829
+ }
3830
+ resultValue[key] = propValue;
3811
3831
  }
3812
3832
  }
3813
3833
  }
3814
- return { success: true };
3834
+ return { success: true, value: resultValue };
3815
3835
  }
3816
3836
 
3817
3837
  // ../lexicon/src/util.ts
@@ -3848,7 +3868,7 @@ function validateOneOf(lexicons2, path, def, value, mustBeObj = false) {
3848
3868
  )
3849
3869
  };
3850
3870
  }
3851
- return { success: true };
3871
+ return { success: true, value };
3852
3872
  } else {
3853
3873
  concreteDefs = toConcreteTypes(lexicons2, {
3854
3874
  type: "ref",
@@ -3877,9 +3897,9 @@ function validateOneOf(lexicons2, path, def, value, mustBeObj = false) {
3877
3897
  }
3878
3898
  function assertValidOneOf(lexicons2, path, def, value, mustBeObj = false) {
3879
3899
  const res = validateOneOf(lexicons2, path, def, value, mustBeObj);
3880
- if (!res.success) {
3900
+ if (!res.success)
3881
3901
  throw res.error;
3882
- }
3902
+ return res.value;
3883
3903
  }
3884
3904
  function toConcreteTypes(lexicons2, def) {
3885
3905
  if (def.type === "ref") {
@@ -3892,32 +3912,33 @@ function toConcreteTypes(lexicons2, def) {
3892
3912
  }
3893
3913
 
3894
3914
  // ../lexicon/src/validators/xrpc.ts
3895
- function params(lexicons2, path, def, value) {
3896
- if (!value || typeof value !== "object") {
3897
- value = {};
3898
- }
3899
- if (Array.isArray(def.required)) {
3900
- for (const key of def.required) {
3901
- 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)) {
3902
3926
  return {
3903
3927
  success: false,
3904
3928
  error: new ValidationError(`${path} must have the property "${key}"`)
3905
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;
3906
3938
  }
3907
3939
  }
3908
3940
  }
3909
- for (const key in def.properties) {
3910
- if (typeof value[key] === "undefined") {
3911
- continue;
3912
- }
3913
- const paramDef = def.properties[key];
3914
- const val = value[key];
3915
- const res = paramDef.type === "array" ? array(lexicons2, key, paramDef, val) : validate(lexicons2, key, paramDef, val);
3916
- if (!res.success) {
3917
- return res;
3918
- }
3919
- }
3920
- return { success: true };
3941
+ return { success: true, value: resultValue };
3921
3942
  }
3922
3943
 
3923
3944
  // ../lexicon/src/validation.ts
@@ -3925,22 +3946,24 @@ function assertValidRecord(lexicons2, def, value) {
3925
3946
  const res = object(lexicons2, "Record", def.record, value);
3926
3947
  if (!res.success)
3927
3948
  throw res.error;
3949
+ return res.value;
3928
3950
  }
3929
3951
  function assertValidXrpcParams(lexicons2, def, value) {
3930
3952
  if (def.parameters) {
3931
3953
  const res = params(lexicons2, "Params", def.parameters, value);
3932
3954
  if (!res.success)
3933
3955
  throw res.error;
3956
+ return res.value;
3934
3957
  }
3935
3958
  }
3936
3959
  function assertValidXrpcInput(lexicons2, def, value) {
3937
3960
  if (def.input?.schema) {
3938
- assertValidOneOf(lexicons2, "Input", def.input.schema, value, true);
3961
+ return assertValidOneOf(lexicons2, "Input", def.input.schema, value, true);
3939
3962
  }
3940
3963
  }
3941
3964
  function assertValidXrpcOutput(lexicons2, def, value) {
3942
3965
  if (def.output?.schema) {
3943
- assertValidOneOf(lexicons2, "Output", def.output.schema, value, true);
3966
+ return assertValidOneOf(lexicons2, "Output", def.output.schema, value, true);
3944
3967
  }
3945
3968
  }
3946
3969
 
@@ -3974,7 +3997,7 @@ var Lexicons = class {
3974
3997
  if (this.docs.has(uri)) {
3975
3998
  throw new Error(`${uri} has already been registered`);
3976
3999
  }
3977
- resolveRefUris(validatedDoc, uri);
4000
+ resolveRefUris(validatedDoc, uri, true);
3978
4001
  this.docs.set(uri, validatedDoc);
3979
4002
  for (const [defUri, def] of iterDefs(validatedDoc)) {
3980
4003
  this.defs.set(defUri, def);
@@ -4040,22 +4063,38 @@ var Lexicons = class {
4040
4063
  `Invalid $type: must be ${lexUri}, got ${$type}`
4041
4064
  );
4042
4065
  }
4043
- assertValidRecord(this, def, value);
4066
+ return assertValidRecord(this, def, value);
4044
4067
  }
4045
4068
  assertValidXrpcParams(lexUri, value) {
4046
4069
  lexUri = toLexUri(lexUri);
4047
- const def = this.getDefOrThrow(lexUri, ["query", "procedure"]);
4048
- 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
+ );
4049
4080
  }
4050
4081
  assertValidXrpcInput(lexUri, value) {
4051
4082
  lexUri = toLexUri(lexUri);
4052
4083
  const def = this.getDefOrThrow(lexUri, ["procedure"]);
4053
- assertValidXrpcInput(this, def, value);
4084
+ return assertValidXrpcInput(this, def, value);
4054
4085
  }
4055
4086
  assertValidXrpcOutput(lexUri, value) {
4056
4087
  lexUri = toLexUri(lexUri);
4057
4088
  const def = this.getDefOrThrow(lexUri, ["query", "procedure"]);
4058
- 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);
4059
4098
  }
4060
4099
  };
4061
4100
  function* iterDefs(doc) {
@@ -4066,7 +4105,7 @@ function* iterDefs(doc) {
4066
4105
  }
4067
4106
  }
4068
4107
  }
4069
- function resolveRefUris(obj, baseUri) {
4108
+ function resolveRefUris(obj, baseUri, root) {
4070
4109
  for (const k in obj) {
4071
4110
  if (obj.type === "ref") {
4072
4111
  obj.ref = toLexUri(obj.ref, baseUri);
@@ -4085,6 +4124,17 @@ function resolveRefUris(obj, baseUri) {
4085
4124
  obj[k] = resolveRefUris(obj[k], baseUri);
4086
4125
  }
4087
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
+ }
4088
4138
  return obj;
4089
4139
  }
4090
4140
 
@@ -4617,7 +4667,7 @@ var schemaDict = {
4617
4667
  required: ["id"],
4618
4668
  properties: {
4619
4669
  id: {
4620
- type: "number"
4670
+ type: "integer"
4621
4671
  }
4622
4672
  }
4623
4673
  },
@@ -4689,7 +4739,7 @@ var schemaDict = {
4689
4739
  required: ["id"],
4690
4740
  properties: {
4691
4741
  id: {
4692
- type: "number"
4742
+ type: "integer"
4693
4743
  }
4694
4744
  }
4695
4745
  },
@@ -5535,6 +5585,28 @@ var schemaDict = {
5535
5585
  }
5536
5586
  }
5537
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
+ },
5538
5610
  ComAtprotoRepoBatchWrite: {
5539
5611
  lexicon: 1,
5540
5612
  id: "com.atproto.repo.batchWrite",
@@ -6078,8 +6150,8 @@ var schemaDict = {
6078
6150
  main: {
6079
6151
  type: "string",
6080
6152
  knownValues: [
6081
- "com.atproto.report.reason#spam",
6082
- "com.atproto.report.reason#other"
6153
+ "com.atproto.report.reasonType#spam",
6154
+ "com.atproto.report.reasonType#other"
6083
6155
  ]
6084
6156
  },
6085
6157
  spam: {
@@ -6458,9 +6530,13 @@ var schemaDict = {
6458
6530
  type: "string",
6459
6531
  description: "The DID of the repo."
6460
6532
  },
6461
- from: {
6533
+ earliest: {
6534
+ type: "string",
6535
+ description: "The earliest commit in the commit range (not inclusive)"
6536
+ },
6537
+ latest: {
6462
6538
  type: "string",
6463
- description: "A past commit CID."
6539
+ description: "The latest commit you in the commit range (inclusive"
6464
6540
  }
6465
6541
  }
6466
6542
  },
@@ -6470,6 +6546,80 @@ var schemaDict = {
6470
6546
  }
6471
6547
  }
6472
6548
  },
6549
+ ComAtprotoSyncSubscribeAllRepos: {
6550
+ lexicon: 1,
6551
+ id: "com.atproto.sync.subscribeAllRepos",
6552
+ defs: {
6553
+ main: {
6554
+ type: "subscription",
6555
+ description: "Subscribe to repo updates",
6556
+ parameters: {
6557
+ type: "params",
6558
+ properties: {
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."
6562
+ }
6563
+ }
6564
+ },
6565
+ message: {
6566
+ schema: {
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"
6602
+ }
6603
+ }
6604
+ }
6605
+ },
6606
+ repoRebase: {
6607
+ type: "object",
6608
+ required: ["time", "repo", "commit"],
6609
+ properties: {
6610
+ time: {
6611
+ type: "datetime"
6612
+ },
6613
+ repo: {
6614
+ type: "string"
6615
+ },
6616
+ commit: {
6617
+ type: "string"
6618
+ }
6619
+ }
6620
+ }
6621
+ }
6622
+ },
6473
6623
  AppBskyActorGetProfile: {
6474
6624
  lexicon: 1,
6475
6625
  id: "app.bsky.actor.getProfile",
@@ -6488,69 +6638,46 @@ var schemaDict = {
6488
6638
  output: {
6489
6639
  encoding: "application/json",
6490
6640
  schema: {
6491
- type: "object",
6492
- required: [
6493
- "did",
6494
- "declaration",
6495
- "handle",
6496
- "creator",
6497
- "followersCount",
6498
- "followsCount",
6499
- "postsCount"
6500
- ],
6501
- properties: {
6502
- did: {
6503
- type: "string"
6504
- },
6505
- declaration: {
6506
- type: "ref",
6507
- ref: "lex:app.bsky.system.declRef"
6508
- },
6509
- handle: {
6510
- type: "string"
6511
- },
6512
- creator: {
6513
- type: "string"
6514
- },
6515
- displayName: {
6516
- type: "string",
6517
- maxLength: 64
6518
- },
6519
- description: {
6520
- type: "string",
6521
- maxLength: 256
6522
- },
6523
- avatar: {
6524
- type: "string"
6525
- },
6526
- banner: {
6641
+ type: "ref",
6642
+ ref: "lex:app.bsky.actor.profile#view"
6643
+ }
6644
+ }
6645
+ }
6646
+ }
6647
+ },
6648
+ AppBskyActorGetProfiles: {
6649
+ lexicon: 1,
6650
+ id: "app.bsky.actor.getProfiles",
6651
+ defs: {
6652
+ main: {
6653
+ type: "query",
6654
+ parameters: {
6655
+ type: "params",
6656
+ required: ["actors"],
6657
+ properties: {
6658
+ actors: {
6659
+ type: "array",
6660
+ items: {
6527
6661
  type: "string"
6528
6662
  },
6529
- followersCount: {
6530
- type: "integer"
6531
- },
6532
- followsCount: {
6533
- type: "integer"
6534
- },
6535
- postsCount: {
6536
- type: "integer"
6537
- },
6538
- myState: {
6539
- type: "ref",
6540
- ref: "lex:app.bsky.actor.getProfile#myState"
6541
- }
6663
+ maxLength: 25
6542
6664
  }
6543
6665
  }
6544
- }
6545
- },
6546
- myState: {
6547
- type: "object",
6548
- properties: {
6549
- follow: {
6550
- type: "string"
6551
- },
6552
- muted: {
6553
- type: "boolean"
6666
+ },
6667
+ output: {
6668
+ encoding: "application/json",
6669
+ schema: {
6670
+ type: "object",
6671
+ required: ["profiles"],
6672
+ properties: {
6673
+ profiles: {
6674
+ type: "array",
6675
+ items: {
6676
+ type: "ref",
6677
+ ref: "lex:app.bsky.actor.profile#view"
6678
+ }
6679
+ }
6680
+ }
6554
6681
  }
6555
6682
  }
6556
6683
  }
@@ -6590,41 +6717,12 @@ var schemaDict = {
6590
6717
  type: "array",
6591
6718
  items: {
6592
6719
  type: "ref",
6593
- ref: "lex:app.bsky.actor.getSuggestions#actor"
6720
+ ref: "lex:app.bsky.actor.profile#viewBasic"
6594
6721
  }
6595
6722
  }
6596
6723
  }
6597
6724
  }
6598
6725
  }
6599
- },
6600
- actor: {
6601
- type: "object",
6602
- required: ["did", "declaration", "handle"],
6603
- properties: {
6604
- did: {
6605
- type: "string"
6606
- },
6607
- declaration: {
6608
- type: "ref",
6609
- ref: "lex:app.bsky.system.declRef"
6610
- },
6611
- handle: {
6612
- type: "string"
6613
- },
6614
- displayName: {
6615
- type: "string",
6616
- maxLength: 64
6617
- },
6618
- description: {
6619
- type: "string"
6620
- },
6621
- avatar: {
6622
- type: "string"
6623
- },
6624
- indexedAt: {
6625
- type: "datetime"
6626
- }
6627
- }
6628
6726
  }
6629
6727
  }
6630
6728
  },
@@ -6663,29 +6761,18 @@ var schemaDict = {
6663
6761
  }
6664
6762
  }
6665
6763
  }
6666
- }
6667
- }
6668
- },
6669
- AppBskyActorRef: {
6670
- lexicon: 1,
6671
- id: "app.bsky.actor.ref",
6672
- description: "A reference to an actor in the network.",
6673
- defs: {
6674
- main: {
6675
- type: "object",
6676
- required: ["did", "declarationCid"],
6677
- properties: {
6678
- did: {
6679
- type: "string"
6680
- },
6681
- declarationCid: {
6682
- type: "string"
6683
- }
6684
- }
6685
6764
  },
6686
- withInfo: {
6765
+ view: {
6687
6766
  type: "object",
6688
- required: ["did", "declaration", "handle"],
6767
+ required: [
6768
+ "did",
6769
+ "declaration",
6770
+ "handle",
6771
+ "creator",
6772
+ "followersCount",
6773
+ "followsCount",
6774
+ "postsCount"
6775
+ ],
6689
6776
  properties: {
6690
6777
  did: {
6691
6778
  type: "string"
@@ -6701,18 +6788,97 @@ var schemaDict = {
6701
6788
  type: "string",
6702
6789
  maxLength: 64
6703
6790
  },
6791
+ description: {
6792
+ type: "string",
6793
+ maxLength: 256
6794
+ },
6704
6795
  avatar: {
6705
6796
  type: "string"
6706
6797
  },
6707
- viewer: {
6708
- type: "ref",
6709
- ref: "lex:app.bsky.actor.ref#viewerState"
6710
- }
6711
- }
6712
- },
6713
- viewerState: {
6714
- type: "object",
6798
+ banner: {
6799
+ type: "string"
6800
+ },
6801
+ followersCount: {
6802
+ type: "integer"
6803
+ },
6804
+ followsCount: {
6805
+ type: "integer"
6806
+ },
6807
+ postsCount: {
6808
+ type: "integer"
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
+ },
6820
+ myState: {
6821
+ type: "ref",
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",
6715
6863
  properties: {
6864
+ muted: {
6865
+ type: "boolean"
6866
+ },
6867
+ following: {
6868
+ type: "string"
6869
+ },
6870
+ followedBy: {
6871
+ type: "string"
6872
+ }
6873
+ }
6874
+ },
6875
+ myState: {
6876
+ type: "object",
6877
+ description: "Deprecated in favor of #viewerState",
6878
+ properties: {
6879
+ follow: {
6880
+ type: "string"
6881
+ },
6716
6882
  muted: {
6717
6883
  type: "boolean"
6718
6884
  }
@@ -6720,6 +6886,66 @@ var schemaDict = {
6720
6886
  }
6721
6887
  }
6722
6888
  },
6889
+ AppBskyActorRef: {
6890
+ lexicon: 1,
6891
+ id: "app.bsky.actor.ref",
6892
+ description: "A reference to an actor in the network.",
6893
+ defs: {
6894
+ main: {
6895
+ type: "object",
6896
+ required: ["did", "declarationCid"],
6897
+ properties: {
6898
+ did: {
6899
+ type: "string"
6900
+ },
6901
+ declarationCid: {
6902
+ type: "string"
6903
+ }
6904
+ }
6905
+ },
6906
+ withInfo: {
6907
+ type: "object",
6908
+ required: ["did", "declaration", "handle"],
6909
+ properties: {
6910
+ did: {
6911
+ type: "string"
6912
+ },
6913
+ declaration: {
6914
+ type: "ref",
6915
+ ref: "lex:app.bsky.system.declRef"
6916
+ },
6917
+ handle: {
6918
+ type: "string"
6919
+ },
6920
+ displayName: {
6921
+ type: "string",
6922
+ maxLength: 64
6923
+ },
6924
+ avatar: {
6925
+ type: "string"
6926
+ },
6927
+ viewer: {
6928
+ type: "ref",
6929
+ ref: "lex:app.bsky.actor.ref#viewerState"
6930
+ }
6931
+ }
6932
+ },
6933
+ viewerState: {
6934
+ type: "object",
6935
+ properties: {
6936
+ muted: {
6937
+ type: "boolean"
6938
+ },
6939
+ following: {
6940
+ type: "string"
6941
+ },
6942
+ followedBy: {
6943
+ type: "string"
6944
+ }
6945
+ }
6946
+ }
6947
+ }
6948
+ },
6723
6949
  AppBskyActorSearch: {
6724
6950
  lexicon: 1,
6725
6951
  id: "app.bsky.actor.search",
@@ -6757,41 +6983,12 @@ var schemaDict = {
6757
6983
  type: "array",
6758
6984
  items: {
6759
6985
  type: "ref",
6760
- ref: "lex:app.bsky.actor.search#user"
6986
+ ref: "lex:app.bsky.actor.profile#viewBasic"
6761
6987
  }
6762
6988
  }
6763
6989
  }
6764
6990
  }
6765
6991
  }
6766
- },
6767
- user: {
6768
- type: "object",
6769
- required: ["did", "declaration", "handle"],
6770
- properties: {
6771
- did: {
6772
- type: "string"
6773
- },
6774
- declaration: {
6775
- type: "ref",
6776
- ref: "lex:app.bsky.system.declRef"
6777
- },
6778
- handle: {
6779
- type: "string"
6780
- },
6781
- displayName: {
6782
- type: "string",
6783
- maxLength: 64
6784
- },
6785
- avatar: {
6786
- type: "string"
6787
- },
6788
- description: {
6789
- type: "string"
6790
- },
6791
- indexedAt: {
6792
- type: "datetime"
6793
- }
6794
- }
6795
6992
  }
6796
6993
  }
6797
6994
  },
@@ -6826,35 +7023,12 @@ var schemaDict = {
6826
7023
  type: "array",
6827
7024
  items: {
6828
7025
  type: "ref",
6829
- ref: "lex:app.bsky.actor.searchTypeahead#user"
7026
+ ref: "lex:app.bsky.actor.ref#withInfo"
6830
7027
  }
6831
7028
  }
6832
7029
  }
6833
7030
  }
6834
7031
  }
6835
- },
6836
- user: {
6837
- type: "object",
6838
- required: ["did", "declaration", "handle"],
6839
- properties: {
6840
- did: {
6841
- type: "string"
6842
- },
6843
- declaration: {
6844
- type: "ref",
6845
- ref: "lex:app.bsky.system.declRef"
6846
- },
6847
- handle: {
6848
- type: "string"
6849
- },
6850
- displayName: {
6851
- type: "string",
6852
- maxLength: 64
6853
- },
6854
- avatar: {
6855
- type: "string"
6856
- }
6857
- }
6858
7032
  }
6859
7033
  }
6860
7034
  },
@@ -7289,41 +7463,12 @@ var schemaDict = {
7289
7463
  type: "array",
7290
7464
  items: {
7291
7465
  type: "ref",
7292
- ref: "lex:app.bsky.feed.getRepostedBy#repostedBy"
7466
+ ref: "lex:app.bsky.actor.ref#withInfo"
7293
7467
  }
7294
7468
  }
7295
7469
  }
7296
7470
  }
7297
7471
  }
7298
- },
7299
- repostedBy: {
7300
- type: "object",
7301
- required: ["did", "declaration", "handle", "indexedAt"],
7302
- properties: {
7303
- did: {
7304
- type: "string"
7305
- },
7306
- declaration: {
7307
- type: "ref",
7308
- ref: "lex:app.bsky.system.declRef"
7309
- },
7310
- handle: {
7311
- type: "string"
7312
- },
7313
- displayName: {
7314
- type: "string",
7315
- maxLength: 64
7316
- },
7317
- avatar: {
7318
- type: "string"
7319
- },
7320
- createdAt: {
7321
- type: "datetime"
7322
- },
7323
- indexedAt: {
7324
- type: "datetime"
7325
- }
7326
- }
7327
7472
  }
7328
7473
  }
7329
7474
  },
@@ -7839,41 +7984,12 @@ var schemaDict = {
7839
7984
  type: "array",
7840
7985
  items: {
7841
7986
  type: "ref",
7842
- ref: "lex:app.bsky.graph.getFollowers#follower"
7987
+ ref: "lex:app.bsky.actor.ref#withInfo"
7843
7988
  }
7844
7989
  }
7845
7990
  }
7846
7991
  }
7847
7992
  }
7848
- },
7849
- follower: {
7850
- type: "object",
7851
- required: ["did", "declaration", "handle", "indexedAt"],
7852
- properties: {
7853
- did: {
7854
- type: "string"
7855
- },
7856
- declaration: {
7857
- type: "ref",
7858
- ref: "lex:app.bsky.system.declRef"
7859
- },
7860
- handle: {
7861
- type: "string"
7862
- },
7863
- displayName: {
7864
- type: "string",
7865
- maxLength: 64
7866
- },
7867
- avatar: {
7868
- type: "string"
7869
- },
7870
- createdAt: {
7871
- type: "datetime"
7872
- },
7873
- indexedAt: {
7874
- type: "datetime"
7875
- }
7876
- }
7877
7993
  }
7878
7994
  }
7879
7995
  },
@@ -7919,41 +8035,12 @@ var schemaDict = {
7919
8035
  type: "array",
7920
8036
  items: {
7921
8037
  type: "ref",
7922
- ref: "lex:app.bsky.graph.getFollows#follow"
8038
+ ref: "lex:app.bsky.actor.ref#withInfo"
7923
8039
  }
7924
8040
  }
7925
8041
  }
7926
8042
  }
7927
8043
  }
7928
- },
7929
- follow: {
7930
- type: "object",
7931
- required: ["did", "declaration", "handle", "indexedAt"],
7932
- properties: {
7933
- did: {
7934
- type: "string"
7935
- },
7936
- declaration: {
7937
- type: "ref",
7938
- ref: "lex:app.bsky.system.declRef"
7939
- },
7940
- handle: {
7941
- type: "string"
7942
- },
7943
- displayName: {
7944
- type: "string",
7945
- maxLength: 64
7946
- },
7947
- avatar: {
7948
- type: "string"
7949
- },
7950
- createdAt: {
7951
- type: "datetime"
7952
- },
7953
- indexedAt: {
7954
- type: "datetime"
7955
- }
7956
- }
7957
8044
  }
7958
8045
  }
7959
8046
  },
@@ -7991,35 +8078,12 @@ var schemaDict = {
7991
8078
  type: "array",
7992
8079
  items: {
7993
8080
  type: "ref",
7994
- ref: "lex:app.bsky.graph.getMutes#mute"
8081
+ ref: "lex:app.bsky.actor.ref#withInfo"
7995
8082
  }
7996
8083
  }
7997
8084
  }
7998
8085
  }
7999
8086
  }
8000
- },
8001
- mute: {
8002
- type: "object",
8003
- required: ["did", "declaration", "handle", "createdAt"],
8004
- properties: {
8005
- did: {
8006
- type: "string"
8007
- },
8008
- declaration: {
8009
- type: "ref",
8010
- ref: "lex:app.bsky.system.declRef"
8011
- },
8012
- handle: {
8013
- type: "string"
8014
- },
8015
- displayName: {
8016
- type: "string",
8017
- maxLength: 64
8018
- },
8019
- createdAt: {
8020
- type: "datetime"
8021
- }
8022
- }
8023
8087
  }
8024
8088
  }
8025
8089
  },
@@ -8530,7 +8594,18 @@ var resolve_exports = {};
8530
8594
  __export(resolve_exports, {
8531
8595
  toKnownErr: () => toKnownErr19
8532
8596
  });
8533
- function toKnownErr19(e) {
8597
+ function toKnownErr19(e) {
8598
+ if (e instanceof XRPCError) {
8599
+ }
8600
+ return e;
8601
+ }
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) {
8534
8609
  if (e instanceof XRPCError) {
8535
8610
  }
8536
8611
  return e;
@@ -8542,7 +8617,7 @@ __export(batchWrite_exports, {
8542
8617
  isCreate: () => isCreate,
8543
8618
  isDelete: () => isDelete,
8544
8619
  isUpdate: () => isUpdate,
8545
- toKnownErr: () => toKnownErr20,
8620
+ toKnownErr: () => toKnownErr21,
8546
8621
  validateCreate: () => validateCreate,
8547
8622
  validateDelete: () => validateDelete,
8548
8623
  validateUpdate: () => validateUpdate
@@ -8557,7 +8632,7 @@ function hasProp2(data, prop) {
8557
8632
  }
8558
8633
 
8559
8634
  // src/client/types/com/atproto/repo/batchWrite.ts
8560
- function toKnownErr20(e) {
8635
+ function toKnownErr21(e) {
8561
8636
  if (e instanceof XRPCError) {
8562
8637
  }
8563
8638
  return e;
@@ -8584,9 +8659,9 @@ function validateDelete(v) {
8584
8659
  // src/client/types/com/atproto/repo/createRecord.ts
8585
8660
  var createRecord_exports = {};
8586
8661
  __export(createRecord_exports, {
8587
- toKnownErr: () => toKnownErr21
8662
+ toKnownErr: () => toKnownErr22
8588
8663
  });
8589
- function toKnownErr21(e) {
8664
+ function toKnownErr22(e) {
8590
8665
  if (e instanceof XRPCError) {
8591
8666
  }
8592
8667
  return e;
@@ -8595,9 +8670,9 @@ function toKnownErr21(e) {
8595
8670
  // src/client/types/com/atproto/repo/deleteRecord.ts
8596
8671
  var deleteRecord_exports = {};
8597
8672
  __export(deleteRecord_exports, {
8598
- toKnownErr: () => toKnownErr22
8673
+ toKnownErr: () => toKnownErr23
8599
8674
  });
8600
- function toKnownErr22(e) {
8675
+ function toKnownErr23(e) {
8601
8676
  if (e instanceof XRPCError) {
8602
8677
  }
8603
8678
  return e;
@@ -8606,9 +8681,9 @@ function toKnownErr22(e) {
8606
8681
  // src/client/types/com/atproto/repo/describe.ts
8607
8682
  var describe_exports = {};
8608
8683
  __export(describe_exports, {
8609
- toKnownErr: () => toKnownErr23
8684
+ toKnownErr: () => toKnownErr24
8610
8685
  });
8611
- function toKnownErr23(e) {
8686
+ function toKnownErr24(e) {
8612
8687
  if (e instanceof XRPCError) {
8613
8688
  }
8614
8689
  return e;
@@ -8617,9 +8692,9 @@ function toKnownErr23(e) {
8617
8692
  // src/client/types/com/atproto/repo/getRecord.ts
8618
8693
  var getRecord_exports2 = {};
8619
8694
  __export(getRecord_exports2, {
8620
- toKnownErr: () => toKnownErr24
8695
+ toKnownErr: () => toKnownErr25
8621
8696
  });
8622
- function toKnownErr24(e) {
8697
+ function toKnownErr25(e) {
8623
8698
  if (e instanceof XRPCError) {
8624
8699
  }
8625
8700
  return e;
@@ -8629,10 +8704,10 @@ function toKnownErr24(e) {
8629
8704
  var listRecords_exports = {};
8630
8705
  __export(listRecords_exports, {
8631
8706
  isRecord: () => isRecord,
8632
- toKnownErr: () => toKnownErr25,
8707
+ toKnownErr: () => toKnownErr26,
8633
8708
  validateRecord: () => validateRecord
8634
8709
  });
8635
- function toKnownErr25(e) {
8710
+ function toKnownErr26(e) {
8636
8711
  if (e instanceof XRPCError) {
8637
8712
  }
8638
8713
  return e;
@@ -8647,9 +8722,9 @@ function validateRecord(v) {
8647
8722
  // src/client/types/com/atproto/repo/putRecord.ts
8648
8723
  var putRecord_exports = {};
8649
8724
  __export(putRecord_exports, {
8650
- toKnownErr: () => toKnownErr26
8725
+ toKnownErr: () => toKnownErr27
8651
8726
  });
8652
- function toKnownErr26(e) {
8727
+ function toKnownErr27(e) {
8653
8728
  if (e instanceof XRPCError) {
8654
8729
  }
8655
8730
  return e;
@@ -8658,9 +8733,9 @@ function toKnownErr26(e) {
8658
8733
  // src/client/types/com/atproto/report/create.ts
8659
8734
  var create_exports2 = {};
8660
8735
  __export(create_exports2, {
8661
- toKnownErr: () => toKnownErr27
8736
+ toKnownErr: () => toKnownErr28
8662
8737
  });
8663
- function toKnownErr27(e) {
8738
+ function toKnownErr28(e) {
8664
8739
  if (e instanceof XRPCError) {
8665
8740
  }
8666
8741
  return e;
@@ -8670,10 +8745,10 @@ function toKnownErr27(e) {
8670
8745
  var getAccountsConfig_exports = {};
8671
8746
  __export(getAccountsConfig_exports, {
8672
8747
  isLinks: () => isLinks,
8673
- toKnownErr: () => toKnownErr28,
8748
+ toKnownErr: () => toKnownErr29,
8674
8749
  validateLinks: () => validateLinks
8675
8750
  });
8676
- function toKnownErr28(e) {
8751
+ function toKnownErr29(e) {
8677
8752
  if (e instanceof XRPCError) {
8678
8753
  }
8679
8754
  return e;
@@ -8689,14 +8764,14 @@ function validateLinks(v) {
8689
8764
  var create_exports3 = {};
8690
8765
  __export(create_exports3, {
8691
8766
  AccountTakedownError: () => AccountTakedownError,
8692
- toKnownErr: () => toKnownErr29
8767
+ toKnownErr: () => toKnownErr30
8693
8768
  });
8694
8769
  var AccountTakedownError = class extends XRPCError {
8695
8770
  constructor(src) {
8696
8771
  super(src.status, src.error, src.message);
8697
8772
  }
8698
8773
  };
8699
- function toKnownErr29(e) {
8774
+ function toKnownErr30(e) {
8700
8775
  if (e instanceof XRPCError) {
8701
8776
  if (e.error === "AccountTakedown")
8702
8777
  return new AccountTakedownError(e);
@@ -8707,9 +8782,9 @@ function toKnownErr29(e) {
8707
8782
  // src/client/types/com/atproto/session/delete.ts
8708
8783
  var delete_exports2 = {};
8709
8784
  __export(delete_exports2, {
8710
- toKnownErr: () => toKnownErr30
8785
+ toKnownErr: () => toKnownErr31
8711
8786
  });
8712
- function toKnownErr30(e) {
8787
+ function toKnownErr31(e) {
8713
8788
  if (e instanceof XRPCError) {
8714
8789
  }
8715
8790
  return e;
@@ -8718,9 +8793,9 @@ function toKnownErr30(e) {
8718
8793
  // src/client/types/com/atproto/session/get.ts
8719
8794
  var get_exports2 = {};
8720
8795
  __export(get_exports2, {
8721
- toKnownErr: () => toKnownErr31
8796
+ toKnownErr: () => toKnownErr32
8722
8797
  });
8723
- function toKnownErr31(e) {
8798
+ function toKnownErr32(e) {
8724
8799
  if (e instanceof XRPCError) {
8725
8800
  }
8726
8801
  return e;
@@ -8730,14 +8805,14 @@ function toKnownErr31(e) {
8730
8805
  var refresh_exports = {};
8731
8806
  __export(refresh_exports, {
8732
8807
  AccountTakedownError: () => AccountTakedownError2,
8733
- toKnownErr: () => toKnownErr32
8808
+ toKnownErr: () => toKnownErr33
8734
8809
  });
8735
8810
  var AccountTakedownError2 = class extends XRPCError {
8736
8811
  constructor(src) {
8737
8812
  super(src.status, src.error, src.message);
8738
8813
  }
8739
8814
  };
8740
- function toKnownErr32(e) {
8815
+ function toKnownErr33(e) {
8741
8816
  if (e instanceof XRPCError) {
8742
8817
  if (e.error === "AccountTakedown")
8743
8818
  return new AccountTakedownError2(e);
@@ -8748,9 +8823,9 @@ function toKnownErr32(e) {
8748
8823
  // src/client/types/com/atproto/sync/getCheckout.ts
8749
8824
  var getCheckout_exports = {};
8750
8825
  __export(getCheckout_exports, {
8751
- toKnownErr: () => toKnownErr33
8826
+ toKnownErr: () => toKnownErr34
8752
8827
  });
8753
- function toKnownErr33(e) {
8828
+ function toKnownErr34(e) {
8754
8829
  if (e instanceof XRPCError) {
8755
8830
  }
8756
8831
  return e;
@@ -8759,9 +8834,9 @@ function toKnownErr33(e) {
8759
8834
  // src/client/types/com/atproto/sync/getCommitPath.ts
8760
8835
  var getCommitPath_exports = {};
8761
8836
  __export(getCommitPath_exports, {
8762
- toKnownErr: () => toKnownErr34
8837
+ toKnownErr: () => toKnownErr35
8763
8838
  });
8764
- function toKnownErr34(e) {
8839
+ function toKnownErr35(e) {
8765
8840
  if (e instanceof XRPCError) {
8766
8841
  }
8767
8842
  return e;
@@ -8770,9 +8845,9 @@ function toKnownErr34(e) {
8770
8845
  // src/client/types/com/atproto/sync/getHead.ts
8771
8846
  var getHead_exports = {};
8772
8847
  __export(getHead_exports, {
8773
- toKnownErr: () => toKnownErr35
8848
+ toKnownErr: () => toKnownErr36
8774
8849
  });
8775
- function toKnownErr35(e) {
8850
+ function toKnownErr36(e) {
8776
8851
  if (e instanceof XRPCError) {
8777
8852
  }
8778
8853
  return e;
@@ -8781,9 +8856,9 @@ function toKnownErr35(e) {
8781
8856
  // src/client/types/com/atproto/sync/getRecord.ts
8782
8857
  var getRecord_exports3 = {};
8783
8858
  __export(getRecord_exports3, {
8784
- toKnownErr: () => toKnownErr36
8859
+ toKnownErr: () => toKnownErr37
8785
8860
  });
8786
- function toKnownErr36(e) {
8861
+ function toKnownErr37(e) {
8787
8862
  if (e instanceof XRPCError) {
8788
8863
  }
8789
8864
  return e;
@@ -8792,9 +8867,9 @@ function toKnownErr36(e) {
8792
8867
  // src/client/types/com/atproto/sync/getRepo.ts
8793
8868
  var getRepo_exports2 = {};
8794
8869
  __export(getRepo_exports2, {
8795
- toKnownErr: () => toKnownErr37
8870
+ toKnownErr: () => toKnownErr38
8796
8871
  });
8797
- function toKnownErr37(e) {
8872
+ function toKnownErr38(e) {
8798
8873
  if (e instanceof XRPCError) {
8799
8874
  }
8800
8875
  return e;
@@ -8803,78 +8878,57 @@ function toKnownErr37(e) {
8803
8878
  // src/client/types/app/bsky/actor/getProfile.ts
8804
8879
  var getProfile_exports = {};
8805
8880
  __export(getProfile_exports, {
8806
- isMyState: () => isMyState,
8807
- toKnownErr: () => toKnownErr38,
8808
- validateMyState: () => validateMyState
8881
+ toKnownErr: () => toKnownErr39
8809
8882
  });
8810
- function toKnownErr38(e) {
8883
+ function toKnownErr39(e) {
8811
8884
  if (e instanceof XRPCError) {
8812
8885
  }
8813
8886
  return e;
8814
8887
  }
8815
- function isMyState(v) {
8816
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.getProfile#myState";
8817
- }
8818
- function validateMyState(v) {
8819
- return lexicons.validate("app.bsky.actor.getProfile#myState", v);
8888
+
8889
+ // src/client/types/app/bsky/actor/getProfiles.ts
8890
+ var getProfiles_exports = {};
8891
+ __export(getProfiles_exports, {
8892
+ toKnownErr: () => toKnownErr40
8893
+ });
8894
+ function toKnownErr40(e) {
8895
+ if (e instanceof XRPCError) {
8896
+ }
8897
+ return e;
8820
8898
  }
8821
8899
 
8822
8900
  // src/client/types/app/bsky/actor/getSuggestions.ts
8823
8901
  var getSuggestions_exports = {};
8824
8902
  __export(getSuggestions_exports, {
8825
- isActor: () => isActor,
8826
- toKnownErr: () => toKnownErr39,
8827
- validateActor: () => validateActor
8903
+ toKnownErr: () => toKnownErr41
8828
8904
  });
8829
- function toKnownErr39(e) {
8905
+ function toKnownErr41(e) {
8830
8906
  if (e instanceof XRPCError) {
8831
8907
  }
8832
8908
  return e;
8833
8909
  }
8834
- function isActor(v) {
8835
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.getSuggestions#actor";
8836
- }
8837
- function validateActor(v) {
8838
- return lexicons.validate("app.bsky.actor.getSuggestions#actor", v);
8839
- }
8840
8910
 
8841
8911
  // src/client/types/app/bsky/actor/search.ts
8842
8912
  var search_exports = {};
8843
8913
  __export(search_exports, {
8844
- isUser: () => isUser,
8845
- toKnownErr: () => toKnownErr40,
8846
- validateUser: () => validateUser
8914
+ toKnownErr: () => toKnownErr42
8847
8915
  });
8848
- function toKnownErr40(e) {
8916
+ function toKnownErr42(e) {
8849
8917
  if (e instanceof XRPCError) {
8850
8918
  }
8851
8919
  return e;
8852
8920
  }
8853
- function isUser(v) {
8854
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.search#user";
8855
- }
8856
- function validateUser(v) {
8857
- return lexicons.validate("app.bsky.actor.search#user", v);
8858
- }
8859
8921
 
8860
8922
  // src/client/types/app/bsky/actor/searchTypeahead.ts
8861
8923
  var searchTypeahead_exports = {};
8862
8924
  __export(searchTypeahead_exports, {
8863
- isUser: () => isUser2,
8864
- toKnownErr: () => toKnownErr41,
8865
- validateUser: () => validateUser2
8925
+ toKnownErr: () => toKnownErr43
8866
8926
  });
8867
- function toKnownErr41(e) {
8927
+ function toKnownErr43(e) {
8868
8928
  if (e instanceof XRPCError) {
8869
8929
  }
8870
8930
  return e;
8871
8931
  }
8872
- function isUser2(v) {
8873
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.searchTypeahead#user";
8874
- }
8875
- function validateUser2(v) {
8876
- return lexicons.validate("app.bsky.actor.searchTypeahead#user", v);
8877
- }
8878
8932
 
8879
8933
  // src/client/types/app/bsky/actor/updateProfile.ts
8880
8934
  var updateProfile_exports = {};
@@ -8883,7 +8937,7 @@ __export(updateProfile_exports, {
8883
8937
  InvalidBlobError: () => InvalidBlobError,
8884
8938
  InvalidImageDimensionsError: () => InvalidImageDimensionsError,
8885
8939
  InvalidMimeTypeError: () => InvalidMimeTypeError,
8886
- toKnownErr: () => toKnownErr42
8940
+ toKnownErr: () => toKnownErr44
8887
8941
  });
8888
8942
  var InvalidBlobError = class extends XRPCError {
8889
8943
  constructor(src) {
@@ -8905,7 +8959,7 @@ var InvalidImageDimensionsError = class extends XRPCError {
8905
8959
  super(src.status, src.error, src.message);
8906
8960
  }
8907
8961
  };
8908
- function toKnownErr42(e) {
8962
+ function toKnownErr44(e) {
8909
8963
  if (e instanceof XRPCError) {
8910
8964
  if (e.error === "InvalidBlob")
8911
8965
  return new InvalidBlobError(e);
@@ -8922,9 +8976,9 @@ function toKnownErr42(e) {
8922
8976
  // src/client/types/app/bsky/feed/getAuthorFeed.ts
8923
8977
  var getAuthorFeed_exports = {};
8924
8978
  __export(getAuthorFeed_exports, {
8925
- toKnownErr: () => toKnownErr43
8979
+ toKnownErr: () => toKnownErr45
8926
8980
  });
8927
- function toKnownErr43(e) {
8981
+ function toKnownErr45(e) {
8928
8982
  if (e instanceof XRPCError) {
8929
8983
  }
8930
8984
  return e;
@@ -8936,7 +8990,7 @@ __export(getPostThread_exports, {
8936
8990
  NotFoundError: () => NotFoundError,
8937
8991
  isNotFoundPost: () => isNotFoundPost,
8938
8992
  isThreadViewPost: () => isThreadViewPost,
8939
- toKnownErr: () => toKnownErr44,
8993
+ toKnownErr: () => toKnownErr46,
8940
8994
  validateNotFoundPost: () => validateNotFoundPost,
8941
8995
  validateThreadViewPost: () => validateThreadViewPost
8942
8996
  });
@@ -8945,7 +8999,7 @@ var NotFoundError = class extends XRPCError {
8945
8999
  super(src.status, src.error, src.message);
8946
9000
  }
8947
9001
  };
8948
- function toKnownErr44(e) {
9002
+ function toKnownErr46(e) {
8949
9003
  if (e instanceof XRPCError) {
8950
9004
  if (e.error === "NotFound")
8951
9005
  return new NotFoundError(e);
@@ -8968,28 +9022,20 @@ function validateNotFoundPost(v) {
8968
9022
  // src/client/types/app/bsky/feed/getRepostedBy.ts
8969
9023
  var getRepostedBy_exports = {};
8970
9024
  __export(getRepostedBy_exports, {
8971
- isRepostedBy: () => isRepostedBy,
8972
- toKnownErr: () => toKnownErr45,
8973
- validateRepostedBy: () => validateRepostedBy
9025
+ toKnownErr: () => toKnownErr47
8974
9026
  });
8975
- function toKnownErr45(e) {
9027
+ function toKnownErr47(e) {
8976
9028
  if (e instanceof XRPCError) {
8977
9029
  }
8978
9030
  return e;
8979
9031
  }
8980
- function isRepostedBy(v) {
8981
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.getRepostedBy#repostedBy";
8982
- }
8983
- function validateRepostedBy(v) {
8984
- return lexicons.validate("app.bsky.feed.getRepostedBy#repostedBy", v);
8985
- }
8986
9032
 
8987
9033
  // src/client/types/app/bsky/feed/getTimeline.ts
8988
9034
  var getTimeline_exports = {};
8989
9035
  __export(getTimeline_exports, {
8990
- toKnownErr: () => toKnownErr46
9036
+ toKnownErr: () => toKnownErr48
8991
9037
  });
8992
- function toKnownErr46(e) {
9038
+ function toKnownErr48(e) {
8993
9039
  if (e instanceof XRPCError) {
8994
9040
  }
8995
9041
  return e;
@@ -8999,10 +9045,10 @@ function toKnownErr46(e) {
8999
9045
  var getVotes_exports = {};
9000
9046
  __export(getVotes_exports, {
9001
9047
  isVote: () => isVote,
9002
- toKnownErr: () => toKnownErr47,
9048
+ toKnownErr: () => toKnownErr49,
9003
9049
  validateVote: () => validateVote
9004
9050
  });
9005
- function toKnownErr47(e) {
9051
+ function toKnownErr49(e) {
9006
9052
  if (e instanceof XRPCError) {
9007
9053
  }
9008
9054
  return e;
@@ -9017,9 +9063,9 @@ function validateVote(v) {
9017
9063
  // src/client/types/app/bsky/feed/setVote.ts
9018
9064
  var setVote_exports = {};
9019
9065
  __export(setVote_exports, {
9020
- toKnownErr: () => toKnownErr48
9066
+ toKnownErr: () => toKnownErr50
9021
9067
  });
9022
- function toKnownErr48(e) {
9068
+ function toKnownErr50(e) {
9023
9069
  if (e instanceof XRPCError) {
9024
9070
  }
9025
9071
  return e;
@@ -9028,66 +9074,42 @@ function toKnownErr48(e) {
9028
9074
  // src/client/types/app/bsky/graph/getFollowers.ts
9029
9075
  var getFollowers_exports = {};
9030
9076
  __export(getFollowers_exports, {
9031
- isFollower: () => isFollower,
9032
- toKnownErr: () => toKnownErr49,
9033
- validateFollower: () => validateFollower
9077
+ toKnownErr: () => toKnownErr51
9034
9078
  });
9035
- function toKnownErr49(e) {
9079
+ function toKnownErr51(e) {
9036
9080
  if (e instanceof XRPCError) {
9037
9081
  }
9038
9082
  return e;
9039
9083
  }
9040
- function isFollower(v) {
9041
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getFollowers#follower";
9042
- }
9043
- function validateFollower(v) {
9044
- return lexicons.validate("app.bsky.graph.getFollowers#follower", v);
9045
- }
9046
9084
 
9047
9085
  // src/client/types/app/bsky/graph/getFollows.ts
9048
9086
  var getFollows_exports = {};
9049
9087
  __export(getFollows_exports, {
9050
- isFollow: () => isFollow,
9051
- toKnownErr: () => toKnownErr50,
9052
- validateFollow: () => validateFollow
9088
+ toKnownErr: () => toKnownErr52
9053
9089
  });
9054
- function toKnownErr50(e) {
9090
+ function toKnownErr52(e) {
9055
9091
  if (e instanceof XRPCError) {
9056
9092
  }
9057
9093
  return e;
9058
9094
  }
9059
- function isFollow(v) {
9060
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getFollows#follow";
9061
- }
9062
- function validateFollow(v) {
9063
- return lexicons.validate("app.bsky.graph.getFollows#follow", v);
9064
- }
9065
9095
 
9066
9096
  // src/client/types/app/bsky/graph/getMutes.ts
9067
9097
  var getMutes_exports = {};
9068
9098
  __export(getMutes_exports, {
9069
- isMute: () => isMute,
9070
- toKnownErr: () => toKnownErr51,
9071
- validateMute: () => validateMute
9099
+ toKnownErr: () => toKnownErr53
9072
9100
  });
9073
- function toKnownErr51(e) {
9101
+ function toKnownErr53(e) {
9074
9102
  if (e instanceof XRPCError) {
9075
9103
  }
9076
9104
  return e;
9077
9105
  }
9078
- function isMute(v) {
9079
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getMutes#mute";
9080
- }
9081
- function validateMute(v) {
9082
- return lexicons.validate("app.bsky.graph.getMutes#mute", v);
9083
- }
9084
9106
 
9085
9107
  // src/client/types/app/bsky/graph/mute.ts
9086
9108
  var mute_exports = {};
9087
9109
  __export(mute_exports, {
9088
- toKnownErr: () => toKnownErr52
9110
+ toKnownErr: () => toKnownErr54
9089
9111
  });
9090
- function toKnownErr52(e) {
9112
+ function toKnownErr54(e) {
9091
9113
  if (e instanceof XRPCError) {
9092
9114
  }
9093
9115
  return e;
@@ -9096,9 +9118,9 @@ function toKnownErr52(e) {
9096
9118
  // src/client/types/app/bsky/graph/unmute.ts
9097
9119
  var unmute_exports = {};
9098
9120
  __export(unmute_exports, {
9099
- toKnownErr: () => toKnownErr53
9121
+ toKnownErr: () => toKnownErr55
9100
9122
  });
9101
- function toKnownErr53(e) {
9123
+ function toKnownErr55(e) {
9102
9124
  if (e instanceof XRPCError) {
9103
9125
  }
9104
9126
  return e;
@@ -9107,9 +9129,9 @@ function toKnownErr53(e) {
9107
9129
  // src/client/types/app/bsky/notification/getCount.ts
9108
9130
  var getCount_exports = {};
9109
9131
  __export(getCount_exports, {
9110
- toKnownErr: () => toKnownErr54
9132
+ toKnownErr: () => toKnownErr56
9111
9133
  });
9112
- function toKnownErr54(e) {
9134
+ function toKnownErr56(e) {
9113
9135
  if (e instanceof XRPCError) {
9114
9136
  }
9115
9137
  return e;
@@ -9119,10 +9141,10 @@ function toKnownErr54(e) {
9119
9141
  var list_exports = {};
9120
9142
  __export(list_exports, {
9121
9143
  isNotification: () => isNotification,
9122
- toKnownErr: () => toKnownErr55,
9144
+ toKnownErr: () => toKnownErr57,
9123
9145
  validateNotification: () => validateNotification
9124
9146
  });
9125
- function toKnownErr55(e) {
9147
+ function toKnownErr57(e) {
9126
9148
  if (e instanceof XRPCError) {
9127
9149
  }
9128
9150
  return e;
@@ -9137,9 +9159,9 @@ function validateNotification(v) {
9137
9159
  // src/client/types/app/bsky/notification/updateSeen.ts
9138
9160
  var updateSeen_exports = {};
9139
9161
  __export(updateSeen_exports, {
9140
- toKnownErr: () => toKnownErr56
9162
+ toKnownErr: () => toKnownErr58
9141
9163
  });
9142
- function toKnownErr56(e) {
9164
+ function toKnownErr58(e) {
9143
9165
  if (e instanceof XRPCError) {
9144
9166
  }
9145
9167
  return e;
@@ -9405,11 +9427,40 @@ function validateRecordRef(v) {
9405
9427
  return lexicons.validate("com.atproto.report.subject#recordRef", v);
9406
9428
  }
9407
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
+
9408
9451
  // src/client/types/app/bsky/actor/profile.ts
9409
9452
  var profile_exports = {};
9410
9453
  __export(profile_exports, {
9454
+ isMyState: () => isMyState,
9411
9455
  isRecord: () => isRecord3,
9412
- validateRecord: () => validateRecord3
9456
+ isView: () => isView6,
9457
+ isViewBasic: () => isViewBasic,
9458
+ isViewerState: () => isViewerState,
9459
+ validateMyState: () => validateMyState,
9460
+ validateRecord: () => validateRecord3,
9461
+ validateView: () => validateView6,
9462
+ validateViewBasic: () => validateViewBasic,
9463
+ validateViewerState: () => validateViewerState
9413
9464
  });
9414
9465
  function isRecord3(v) {
9415
9466
  return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.actor.profile#main" || v.$type === "app.bsky.actor.profile");
@@ -9417,15 +9468,39 @@ function isRecord3(v) {
9417
9468
  function validateRecord3(v) {
9418
9469
  return lexicons.validate("app.bsky.actor.profile#main", v);
9419
9470
  }
9471
+ function isView6(v) {
9472
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.profile#view";
9473
+ }
9474
+ function validateView6(v) {
9475
+ return lexicons.validate("app.bsky.actor.profile#view", v);
9476
+ }
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) {
9490
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.profile#myState";
9491
+ }
9492
+ function validateMyState(v) {
9493
+ return lexicons.validate("app.bsky.actor.profile#myState", v);
9494
+ }
9420
9495
 
9421
9496
  // src/client/types/app/bsky/actor/ref.ts
9422
9497
  var ref_exports = {};
9423
9498
  __export(ref_exports, {
9424
9499
  isMain: () => isMain4,
9425
- isViewerState: () => isViewerState,
9500
+ isViewerState: () => isViewerState2,
9426
9501
  isWithInfo: () => isWithInfo,
9427
9502
  validateMain: () => validateMain4,
9428
- validateViewerState: () => validateViewerState,
9503
+ validateViewerState: () => validateViewerState2,
9429
9504
  validateWithInfo: () => validateWithInfo
9430
9505
  });
9431
9506
  function isMain4(v) {
@@ -9440,10 +9515,10 @@ function isWithInfo(v) {
9440
9515
  function validateWithInfo(v) {
9441
9516
  return lexicons.validate("app.bsky.actor.ref#withInfo", v);
9442
9517
  }
9443
- function isViewerState(v) {
9518
+ function isViewerState2(v) {
9444
9519
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.ref#viewerState";
9445
9520
  }
9446
- function validateViewerState(v) {
9521
+ function validateViewerState2(v) {
9447
9522
  return lexicons.validate("app.bsky.actor.ref#viewerState", v);
9448
9523
  }
9449
9524
 
@@ -9557,14 +9632,14 @@ __export(post_exports, {
9557
9632
  isRecord: () => isRecord4,
9558
9633
  isReplyRef: () => isReplyRef2,
9559
9634
  isTextSlice: () => isTextSlice,
9560
- isView: () => isView6,
9561
- isViewerState: () => isViewerState2,
9635
+ isView: () => isView7,
9636
+ isViewerState: () => isViewerState3,
9562
9637
  validateEntity: () => validateEntity,
9563
9638
  validateRecord: () => validateRecord4,
9564
9639
  validateReplyRef: () => validateReplyRef2,
9565
9640
  validateTextSlice: () => validateTextSlice,
9566
- validateView: () => validateView6,
9567
- validateViewerState: () => validateViewerState2
9641
+ validateView: () => validateView7,
9642
+ validateViewerState: () => validateViewerState3
9568
9643
  });
9569
9644
  function isRecord4(v) {
9570
9645
  return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.post#main" || v.$type === "app.bsky.feed.post");
@@ -9590,16 +9665,16 @@ function isTextSlice(v) {
9590
9665
  function validateTextSlice(v) {
9591
9666
  return lexicons.validate("app.bsky.feed.post#textSlice", v);
9592
9667
  }
9593
- function isView6(v) {
9668
+ function isView7(v) {
9594
9669
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#view";
9595
9670
  }
9596
- function validateView6(v) {
9671
+ function validateView7(v) {
9597
9672
  return lexicons.validate("app.bsky.feed.post#view", v);
9598
9673
  }
9599
- function isViewerState2(v) {
9674
+ function isViewerState3(v) {
9600
9675
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#viewerState";
9601
9676
  }
9602
- function validateViewerState2(v) {
9677
+ function validateViewerState3(v) {
9603
9678
  return lexicons.validate("app.bsky.feed.post#viewerState", v);
9604
9679
  }
9605
9680
 
@@ -9886,6 +9961,11 @@ var HandleNS = class {
9886
9961
  throw toKnownErr19(e);
9887
9962
  });
9888
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
+ }
9889
9969
  };
9890
9970
  var RepoNS = class {
9891
9971
  constructor(service) {
@@ -9893,37 +9973,37 @@ var RepoNS = class {
9893
9973
  }
9894
9974
  batchWrite(data, opts) {
9895
9975
  return this._service.xrpc.call("com.atproto.repo.batchWrite", opts?.qp, data, opts).catch((e) => {
9896
- throw toKnownErr20(e);
9976
+ throw toKnownErr21(e);
9897
9977
  });
9898
9978
  }
9899
9979
  createRecord(data, opts) {
9900
9980
  return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
9901
- throw toKnownErr21(e);
9981
+ throw toKnownErr22(e);
9902
9982
  });
9903
9983
  }
9904
9984
  deleteRecord(data, opts) {
9905
9985
  return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
9906
- throw toKnownErr22(e);
9986
+ throw toKnownErr23(e);
9907
9987
  });
9908
9988
  }
9909
9989
  describe(params2, opts) {
9910
9990
  return this._service.xrpc.call("com.atproto.repo.describe", params2, void 0, opts).catch((e) => {
9911
- throw toKnownErr23(e);
9991
+ throw toKnownErr24(e);
9912
9992
  });
9913
9993
  }
9914
9994
  getRecord(params2, opts) {
9915
9995
  return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
9916
- throw toKnownErr24(e);
9996
+ throw toKnownErr25(e);
9917
9997
  });
9918
9998
  }
9919
9999
  listRecords(params2, opts) {
9920
10000
  return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
9921
- throw toKnownErr25(e);
10001
+ throw toKnownErr26(e);
9922
10002
  });
9923
10003
  }
9924
10004
  putRecord(data, opts) {
9925
10005
  return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
9926
- throw toKnownErr26(e);
10006
+ throw toKnownErr27(e);
9927
10007
  });
9928
10008
  }
9929
10009
  };
@@ -9933,7 +10013,7 @@ var ReportNS = class {
9933
10013
  }
9934
10014
  create(data, opts) {
9935
10015
  return this._service.xrpc.call("com.atproto.report.create", opts?.qp, data, opts).catch((e) => {
9936
- throw toKnownErr27(e);
10016
+ throw toKnownErr28(e);
9937
10017
  });
9938
10018
  }
9939
10019
  };
@@ -9943,7 +10023,7 @@ var ServerNS = class {
9943
10023
  }
9944
10024
  getAccountsConfig(params2, opts) {
9945
10025
  return this._service.xrpc.call("com.atproto.server.getAccountsConfig", params2, void 0, opts).catch((e) => {
9946
- throw toKnownErr28(e);
10026
+ throw toKnownErr29(e);
9947
10027
  });
9948
10028
  }
9949
10029
  };
@@ -9953,22 +10033,22 @@ var SessionNS = class {
9953
10033
  }
9954
10034
  create(data, opts) {
9955
10035
  return this._service.xrpc.call("com.atproto.session.create", opts?.qp, data, opts).catch((e) => {
9956
- throw toKnownErr29(e);
10036
+ throw toKnownErr30(e);
9957
10037
  });
9958
10038
  }
9959
10039
  delete(data, opts) {
9960
10040
  return this._service.xrpc.call("com.atproto.session.delete", opts?.qp, data, opts).catch((e) => {
9961
- throw toKnownErr30(e);
10041
+ throw toKnownErr31(e);
9962
10042
  });
9963
10043
  }
9964
10044
  get(params2, opts) {
9965
10045
  return this._service.xrpc.call("com.atproto.session.get", params2, void 0, opts).catch((e) => {
9966
- throw toKnownErr31(e);
10046
+ throw toKnownErr32(e);
9967
10047
  });
9968
10048
  }
9969
10049
  refresh(data, opts) {
9970
10050
  return this._service.xrpc.call("com.atproto.session.refresh", opts?.qp, data, opts).catch((e) => {
9971
- throw toKnownErr32(e);
10051
+ throw toKnownErr33(e);
9972
10052
  });
9973
10053
  }
9974
10054
  };
@@ -9978,27 +10058,27 @@ var SyncNS = class {
9978
10058
  }
9979
10059
  getCheckout(params2, opts) {
9980
10060
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
9981
- throw toKnownErr33(e);
10061
+ throw toKnownErr34(e);
9982
10062
  });
9983
10063
  }
9984
10064
  getCommitPath(params2, opts) {
9985
10065
  return this._service.xrpc.call("com.atproto.sync.getCommitPath", params2, void 0, opts).catch((e) => {
9986
- throw toKnownErr34(e);
10066
+ throw toKnownErr35(e);
9987
10067
  });
9988
10068
  }
9989
10069
  getHead(params2, opts) {
9990
10070
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
9991
- throw toKnownErr35(e);
10071
+ throw toKnownErr36(e);
9992
10072
  });
9993
10073
  }
9994
10074
  getRecord(params2, opts) {
9995
10075
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
9996
- throw toKnownErr36(e);
10076
+ throw toKnownErr37(e);
9997
10077
  });
9998
10078
  }
9999
10079
  getRepo(params2, opts) {
10000
10080
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
10001
- throw toKnownErr37(e);
10081
+ throw toKnownErr38(e);
10002
10082
  });
10003
10083
  }
10004
10084
  };
@@ -10026,27 +10106,32 @@ var ActorNS = class {
10026
10106
  }
10027
10107
  getProfile(params2, opts) {
10028
10108
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
10029
- throw toKnownErr38(e);
10109
+ throw toKnownErr39(e);
10110
+ });
10111
+ }
10112
+ getProfiles(params2, opts) {
10113
+ return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
10114
+ throw toKnownErr40(e);
10030
10115
  });
10031
10116
  }
10032
10117
  getSuggestions(params2, opts) {
10033
10118
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
10034
- throw toKnownErr39(e);
10119
+ throw toKnownErr41(e);
10035
10120
  });
10036
10121
  }
10037
10122
  search(params2, opts) {
10038
10123
  return this._service.xrpc.call("app.bsky.actor.search", params2, void 0, opts).catch((e) => {
10039
- throw toKnownErr40(e);
10124
+ throw toKnownErr42(e);
10040
10125
  });
10041
10126
  }
10042
10127
  searchTypeahead(params2, opts) {
10043
10128
  return this._service.xrpc.call("app.bsky.actor.searchTypeahead", params2, void 0, opts).catch((e) => {
10044
- throw toKnownErr41(e);
10129
+ throw toKnownErr43(e);
10045
10130
  });
10046
10131
  }
10047
10132
  updateProfile(data, opts) {
10048
10133
  return this._service.xrpc.call("app.bsky.actor.updateProfile", opts?.qp, data, opts).catch((e) => {
10049
- throw toKnownErr42(e);
10134
+ throw toKnownErr44(e);
10050
10135
  });
10051
10136
  }
10052
10137
  };
@@ -10101,32 +10186,32 @@ var FeedNS = class {
10101
10186
  }
10102
10187
  getAuthorFeed(params2, opts) {
10103
10188
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
10104
- throw toKnownErr43(e);
10189
+ throw toKnownErr45(e);
10105
10190
  });
10106
10191
  }
10107
10192
  getPostThread(params2, opts) {
10108
10193
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
10109
- throw toKnownErr44(e);
10194
+ throw toKnownErr46(e);
10110
10195
  });
10111
10196
  }
10112
10197
  getRepostedBy(params2, opts) {
10113
10198
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
10114
- throw toKnownErr45(e);
10199
+ throw toKnownErr47(e);
10115
10200
  });
10116
10201
  }
10117
10202
  getTimeline(params2, opts) {
10118
10203
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
10119
- throw toKnownErr46(e);
10204
+ throw toKnownErr48(e);
10120
10205
  });
10121
10206
  }
10122
10207
  getVotes(params2, opts) {
10123
10208
  return this._service.xrpc.call("app.bsky.feed.getVotes", params2, void 0, opts).catch((e) => {
10124
- throw toKnownErr47(e);
10209
+ throw toKnownErr49(e);
10125
10210
  });
10126
10211
  }
10127
10212
  setVote(data, opts) {
10128
10213
  return this._service.xrpc.call("app.bsky.feed.setVote", opts?.qp, data, opts).catch((e) => {
10129
- throw toKnownErr48(e);
10214
+ throw toKnownErr50(e);
10130
10215
  });
10131
10216
  }
10132
10217
  };
@@ -10250,27 +10335,27 @@ var GraphNS = class {
10250
10335
  }
10251
10336
  getFollowers(params2, opts) {
10252
10337
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
10253
- throw toKnownErr49(e);
10338
+ throw toKnownErr51(e);
10254
10339
  });
10255
10340
  }
10256
10341
  getFollows(params2, opts) {
10257
10342
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
10258
- throw toKnownErr50(e);
10343
+ throw toKnownErr52(e);
10259
10344
  });
10260
10345
  }
10261
10346
  getMutes(params2, opts) {
10262
10347
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
10263
- throw toKnownErr51(e);
10348
+ throw toKnownErr53(e);
10264
10349
  });
10265
10350
  }
10266
10351
  mute(data, opts) {
10267
10352
  return this._service.xrpc.call("app.bsky.graph.mute", opts?.qp, data, opts).catch((e) => {
10268
- throw toKnownErr52(e);
10353
+ throw toKnownErr54(e);
10269
10354
  });
10270
10355
  }
10271
10356
  unmute(data, opts) {
10272
10357
  return this._service.xrpc.call("app.bsky.graph.unmute", opts?.qp, data, opts).catch((e) => {
10273
- throw toKnownErr53(e);
10358
+ throw toKnownErr55(e);
10274
10359
  });
10275
10360
  }
10276
10361
  };
@@ -10391,17 +10476,17 @@ var NotificationNS = class {
10391
10476
  }
10392
10477
  getCount(params2, opts) {
10393
10478
  return this._service.xrpc.call("app.bsky.notification.getCount", params2, void 0, opts).catch((e) => {
10394
- throw toKnownErr54(e);
10479
+ throw toKnownErr56(e);
10395
10480
  });
10396
10481
  }
10397
10482
  list(params2, opts) {
10398
10483
  return this._service.xrpc.call("app.bsky.notification.list", params2, void 0, opts).catch((e) => {
10399
- throw toKnownErr55(e);
10484
+ throw toKnownErr57(e);
10400
10485
  });
10401
10486
  }
10402
10487
  updateSeen(data, opts) {
10403
10488
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
10404
- throw toKnownErr56(e);
10489
+ throw toKnownErr58(e);
10405
10490
  });
10406
10491
  }
10407
10492
  };
@@ -10640,6 +10725,7 @@ function isNewSessionObject(client, v) {
10640
10725
  ActorNS,
10641
10726
  AdminNS,
10642
10727
  AppBskyActorGetProfile,
10728
+ AppBskyActorGetProfiles,
10643
10729
  AppBskyActorGetSuggestions,
10644
10730
  AppBskyActorProfile,
10645
10731
  AppBskyActorRef,
@@ -10708,6 +10794,7 @@ function isNewSessionObject(client, v) {
10708
10794
  ComAtprotoAdminTakeModerationAction,
10709
10795
  ComAtprotoBlobUpload,
10710
10796
  ComAtprotoHandleResolve,
10797
+ ComAtprotoHandleUpdate,
10711
10798
  ComAtprotoRepoBatchWrite,
10712
10799
  ComAtprotoRepoCreateRecord,
10713
10800
  ComAtprotoRepoDeleteRecord,
@@ -10731,6 +10818,7 @@ function isNewSessionObject(client, v) {
10731
10818
  ComAtprotoSyncGetHead,
10732
10819
  ComAtprotoSyncGetRecord,
10733
10820
  ComAtprotoSyncGetRepo,
10821
+ ComAtprotoSyncSubscribeAllRepos,
10734
10822
  ComNS,
10735
10823
  ConfirmationRecord,
10736
10824
  DeclarationRecord,