@atproto/ozone 0.0.2 → 0.0.5

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 (75) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/api/admin/listCommunicationTemplates.d.ts +3 -0
  3. package/dist/api/admin/updateCommunicationTemplate.d.ts +3 -0
  4. package/dist/communication-service/template.d.ts +18 -0
  5. package/dist/context.d.ts +3 -0
  6. package/dist/db/index.js +18 -1
  7. package/dist/db/index.js.map +3 -3
  8. package/dist/db/migrations/20240116T085607200Z-communication-template.d.ts +3 -0
  9. package/dist/db/migrations/index.d.ts +1 -0
  10. package/dist/db/schema/communication_template.d.ts +15 -0
  11. package/dist/db/schema/index.d.ts +2 -1
  12. package/dist/index.js +971 -240
  13. package/dist/index.js.map +3 -3
  14. package/dist/lexicon/index.d.ts +10 -0
  15. package/dist/lexicon/lexicons.d.ts +230 -0
  16. package/dist/lexicon/types/app/bsky/unspecced/{getPopular.d.ts → getTaggedSuggestions.d.ts} +10 -6
  17. package/dist/lexicon/types/{app/bsky/moderation/getService.d.ts → com/atproto/admin/createCommunicationTemplate.d.ts} +13 -5
  18. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +13 -0
  19. package/dist/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.d.ts +25 -0
  20. package/dist/lexicon/types/{app/bsky/moderation/getServices.d.ts → com/atproto/admin/listCommunicationTemplates.d.ts} +2 -3
  21. package/dist/lexicon/types/com/atproto/admin/updateCommunicationTemplate.d.ts +39 -0
  22. package/package.json +8 -8
  23. package/src/api/admin/createCommunicationTemplate.ts +37 -0
  24. package/src/api/admin/deleteCommunicationTemplate.ts +23 -0
  25. package/src/api/admin/listCommunicationTemplates.ts +31 -0
  26. package/src/api/admin/updateCommunicationTemplate.ts +40 -0
  27. package/src/api/index.ts +8 -0
  28. package/src/communication-service/template.ts +105 -0
  29. package/src/context.ts +12 -0
  30. package/src/db/migrations/20240116T085607200Z-communication-template.ts +23 -0
  31. package/src/db/migrations/index.ts +1 -0
  32. package/src/db/schema/communication_template.ts +18 -0
  33. package/src/db/schema/index.ts +3 -1
  34. package/src/lexicon/index.ts +60 -0
  35. package/src/lexicon/lexicons.ts +249 -0
  36. package/src/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.ts +65 -0
  37. package/src/lexicon/types/com/atproto/admin/createCommunicationTemplate.ts +54 -0
  38. package/src/lexicon/types/com/atproto/admin/defs.ts +35 -0
  39. package/src/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.ts +38 -0
  40. package/src/lexicon/types/com/atproto/admin/listCommunicationTemplates.ts +44 -0
  41. package/src/lexicon/types/com/atproto/admin/updateCommunicationTemplate.ts +57 -0
  42. package/tests/communication-templates.test.ts +131 -0
  43. package/dist/api/com/atproto/admin/emitModerationEvent.d.ts +0 -3
  44. package/dist/api/com/atproto/admin/getModerationEvent.d.ts +0 -3
  45. package/dist/api/com/atproto/admin/getRecord.d.ts +0 -3
  46. package/dist/api/com/atproto/admin/getRepo.d.ts +0 -3
  47. package/dist/api/com/atproto/admin/queryModerationEvents.d.ts +0 -3
  48. package/dist/api/com/atproto/admin/queryModerationStatuses.d.ts +0 -3
  49. package/dist/api/com/atproto/admin/searchRepos.d.ts +0 -3
  50. package/dist/api/com/atproto/admin/util.d.ts +0 -5
  51. package/dist/api/com/atproto/moderation/createReport.d.ts +0 -3
  52. package/dist/api/com/atproto/moderation/util.d.ts +0 -4
  53. package/dist/api/com/atproto/temp/fetchLabels.d.ts +0 -3
  54. package/dist/api/util.d.ts +0 -2
  55. package/dist/auth-verifier.d.ts +0 -47
  56. package/dist/config.d.ts +0 -42
  57. package/dist/daemon/config.d.ts +0 -23
  58. package/dist/lexicon/types/app/bsky/moderation/defs.d.ts +0 -49
  59. package/dist/lexicon/types/app/bsky/moderation/service.d.ts +0 -17
  60. package/dist/sequencer/index.d.ts +0 -2
  61. package/dist/sequencer/outbox.d.ts +0 -16
  62. package/dist/sequencer/sequencer.d.ts +0 -35
  63. package/dist/services/index.d.ts +0 -7
  64. package/dist/services/moderation/index.d.ts +0 -144
  65. package/dist/services/moderation/status.d.ts +0 -12
  66. package/dist/services/moderation/subject.d.ts +0 -60
  67. package/dist/services/moderation/types.d.ts +0 -19
  68. package/dist/services/moderation/views.d.ts +0 -42
  69. package/dist/services/types.d.ts +0 -2
  70. package/dist/util/date.d.ts +0 -1
  71. package/dist/util/debug.d.ts +0 -1
  72. package/dist/util/retry.d.ts +0 -3
  73. package/test.log +0 -0
  74. /package/dist/api/{label/queryLabels.d.ts → admin/createCommunicationTemplate.d.ts} +0 -0
  75. /package/dist/api/{label/subscribeLabels.d.ts → admin/deleteCommunicationTemplate.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -27864,16 +27864,16 @@ var require_validate = __commonJS({
27864
27864
  const matches = RELATIVE_JSON_POINTER.exec($data);
27865
27865
  if (!matches)
27866
27866
  throw new Error(`Invalid JSON-pointer: ${$data}`);
27867
- const up2 = +matches[1];
27867
+ const up3 = +matches[1];
27868
27868
  jsonPointer = matches[2];
27869
27869
  if (jsonPointer === "#") {
27870
- if (up2 >= dataLevel)
27871
- throw new Error(errorMsg("property/index", up2));
27872
- return dataPathArr[dataLevel - up2];
27870
+ if (up3 >= dataLevel)
27871
+ throw new Error(errorMsg("property/index", up3));
27872
+ return dataPathArr[dataLevel - up3];
27873
27873
  }
27874
- if (up2 > dataLevel)
27875
- throw new Error(errorMsg("data", up2));
27876
- data = dataNames[dataLevel - up2];
27874
+ if (up3 > dataLevel)
27875
+ throw new Error(errorMsg("data", up3));
27876
+ data = dataNames[dataLevel - up3];
27877
27877
  if (!jsonPointer)
27878
27878
  return data;
27879
27879
  }
@@ -27886,8 +27886,8 @@ var require_validate = __commonJS({
27886
27886
  }
27887
27887
  }
27888
27888
  return expr;
27889
- function errorMsg(pointerType, up2) {
27890
- return `Cannot access ${pointerType} ${up2} levels up, current level is ${dataLevel}`;
27889
+ function errorMsg(pointerType, up3) {
27890
+ return `Cannot access ${pointerType} ${up3} levels up, current level is ${dataLevel}`;
27891
27891
  }
27892
27892
  }
27893
27893
  exports.getData = getData;
@@ -101599,6 +101599,49 @@ var REASONAPPEAL = "com.atproto.moderation.defs#reasonAppeal";
101599
101599
 
101600
101600
  // src/lexicon/lexicons.ts
101601
101601
  var schemaDict = {
101602
+ ComAtprotoAdminCreateCommunicationTemplate: {
101603
+ lexicon: 1,
101604
+ id: "com.atproto.admin.createCommunicationTemplate",
101605
+ defs: {
101606
+ main: {
101607
+ type: "procedure",
101608
+ description: "Administrative action to create a new, re-usable communication (email for now) template.",
101609
+ input: {
101610
+ encoding: "application/json",
101611
+ schema: {
101612
+ type: "object",
101613
+ required: ["subject", "contentMarkdown", "name"],
101614
+ properties: {
101615
+ name: {
101616
+ type: "string",
101617
+ description: "Name of the template."
101618
+ },
101619
+ contentMarkdown: {
101620
+ type: "string",
101621
+ description: "Content of the template, markdown supported, can contain variable placeholders."
101622
+ },
101623
+ subject: {
101624
+ type: "string",
101625
+ description: "Subject of the message, used in emails."
101626
+ },
101627
+ createdBy: {
101628
+ type: "string",
101629
+ format: "did",
101630
+ description: "DID of the user who is creating the template."
101631
+ }
101632
+ }
101633
+ }
101634
+ },
101635
+ output: {
101636
+ encoding: "application/json",
101637
+ schema: {
101638
+ type: "ref",
101639
+ ref: "lex:com.atproto.admin.defs#communicationTemplateView"
101640
+ }
101641
+ }
101642
+ }
101643
+ }
101644
+ },
101602
101645
  ComAtprotoAdminDefs: {
101603
101646
  lexicon: 1,
101604
101647
  id: "com.atproto.admin.defs",
@@ -102436,6 +102479,51 @@ var schemaDict = {
102436
102479
  description: "Additional comment about the outgoing comm."
102437
102480
  }
102438
102481
  }
102482
+ },
102483
+ communicationTemplateView: {
102484
+ type: "object",
102485
+ required: [
102486
+ "id",
102487
+ "name",
102488
+ "contentMarkdown",
102489
+ "disabled",
102490
+ "lastUpdatedBy",
102491
+ "createdAt",
102492
+ "updatedAt"
102493
+ ],
102494
+ properties: {
102495
+ id: {
102496
+ type: "string"
102497
+ },
102498
+ name: {
102499
+ type: "string",
102500
+ description: "Name of the template."
102501
+ },
102502
+ subject: {
102503
+ type: "string",
102504
+ description: "Content of the template, can contain markdown and variable placeholders."
102505
+ },
102506
+ contentMarkdown: {
102507
+ type: "string",
102508
+ description: "Subject of the message, used in emails."
102509
+ },
102510
+ disabled: {
102511
+ type: "boolean"
102512
+ },
102513
+ lastUpdatedBy: {
102514
+ type: "string",
102515
+ format: "did",
102516
+ description: "DID of the user who last updated the template."
102517
+ },
102518
+ createdAt: {
102519
+ type: "string",
102520
+ format: "datetime"
102521
+ },
102522
+ updatedAt: {
102523
+ type: "string",
102524
+ format: "datetime"
102525
+ }
102526
+ }
102439
102527
  }
102440
102528
  }
102441
102529
  },
@@ -102462,6 +102550,28 @@ var schemaDict = {
102462
102550
  }
102463
102551
  }
102464
102552
  },
102553
+ ComAtprotoAdminDeleteCommunicationTemplate: {
102554
+ lexicon: 1,
102555
+ id: "com.atproto.admin.deleteCommunicationTemplate",
102556
+ defs: {
102557
+ main: {
102558
+ type: "procedure",
102559
+ description: "Delete a communication template.",
102560
+ input: {
102561
+ encoding: "application/json",
102562
+ schema: {
102563
+ type: "object",
102564
+ required: ["id"],
102565
+ properties: {
102566
+ id: {
102567
+ type: "string"
102568
+ }
102569
+ }
102570
+ }
102571
+ }
102572
+ }
102573
+ }
102574
+ },
102465
102575
  ComAtprotoAdminDisableAccountInvites: {
102466
102576
  lexicon: 1,
102467
102577
  id: "com.atproto.admin.disableAccountInvites",
@@ -102866,6 +102976,32 @@ var schemaDict = {
102866
102976
  }
102867
102977
  }
102868
102978
  },
102979
+ ComAtprotoAdminListCommunicationTemplates: {
102980
+ lexicon: 1,
102981
+ id: "com.atproto.admin.listCommunicationTemplates",
102982
+ defs: {
102983
+ main: {
102984
+ type: "query",
102985
+ description: "Get list of all communication templates.",
102986
+ output: {
102987
+ encoding: "application/json",
102988
+ schema: {
102989
+ type: "object",
102990
+ required: ["communicationTemplates"],
102991
+ properties: {
102992
+ communicationTemplates: {
102993
+ type: "array",
102994
+ items: {
102995
+ type: "ref",
102996
+ ref: "lex:com.atproto.admin.defs#communicationTemplateView"
102997
+ }
102998
+ }
102999
+ }
103000
+ }
103001
+ }
103002
+ }
103003
+ }
103004
+ },
102869
103005
  ComAtprotoAdminQueryModerationEvents: {
102870
103006
  lexicon: 1,
102871
103007
  id: "com.atproto.admin.queryModerationEvents",
@@ -103197,6 +103333,56 @@ var schemaDict = {
103197
103333
  }
103198
103334
  }
103199
103335
  },
103336
+ ComAtprotoAdminUpdateCommunicationTemplate: {
103337
+ lexicon: 1,
103338
+ id: "com.atproto.admin.updateCommunicationTemplate",
103339
+ defs: {
103340
+ main: {
103341
+ type: "procedure",
103342
+ description: "Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.",
103343
+ input: {
103344
+ encoding: "application/json",
103345
+ schema: {
103346
+ type: "object",
103347
+ required: ["id"],
103348
+ properties: {
103349
+ id: {
103350
+ type: "string",
103351
+ description: "ID of the template to be updated."
103352
+ },
103353
+ name: {
103354
+ type: "string",
103355
+ description: "Name of the template."
103356
+ },
103357
+ contentMarkdown: {
103358
+ type: "string",
103359
+ description: "Content of the template, markdown supported, can contain variable placeholders."
103360
+ },
103361
+ subject: {
103362
+ type: "string",
103363
+ description: "Subject of the message, used in emails."
103364
+ },
103365
+ updatedBy: {
103366
+ type: "string",
103367
+ format: "did",
103368
+ description: "DID of the user who is updating the template."
103369
+ },
103370
+ disabled: {
103371
+ type: "boolean"
103372
+ }
103373
+ }
103374
+ }
103375
+ },
103376
+ output: {
103377
+ encoding: "application/json",
103378
+ schema: {
103379
+ type: "ref",
103380
+ ref: "lex:com.atproto.admin.defs#communicationTemplateView"
103381
+ }
103382
+ }
103383
+ }
103384
+ }
103385
+ },
103200
103386
  ComAtprotoAdminUpdateSubjectStatus: {
103201
103387
  lexicon: 1,
103202
103388
  id: "com.atproto.admin.updateSubjectStatus",
@@ -109237,6 +109423,53 @@ var schemaDict = {
109237
109423
  }
109238
109424
  }
109239
109425
  },
109426
+ AppBskyUnspeccedGetTaggedSuggestions: {
109427
+ lexicon: 1,
109428
+ id: "app.bsky.unspecced.getTaggedSuggestions",
109429
+ defs: {
109430
+ main: {
109431
+ type: "query",
109432
+ description: "Get a list of suggestions (feeds and users) tagged with categories",
109433
+ parameters: {
109434
+ type: "params",
109435
+ properties: {}
109436
+ },
109437
+ output: {
109438
+ encoding: "application/json",
109439
+ schema: {
109440
+ type: "object",
109441
+ required: ["suggestions"],
109442
+ properties: {
109443
+ suggestions: {
109444
+ type: "array",
109445
+ items: {
109446
+ type: "ref",
109447
+ ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
109448
+ }
109449
+ }
109450
+ }
109451
+ }
109452
+ }
109453
+ },
109454
+ suggestion: {
109455
+ type: "object",
109456
+ required: ["tag", "subjectType", "subject"],
109457
+ properties: {
109458
+ tag: {
109459
+ type: "string"
109460
+ },
109461
+ subjectType: {
109462
+ type: "string",
109463
+ knownValues: ["actor", "feed"]
109464
+ },
109465
+ subject: {
109466
+ type: "string",
109467
+ format: "uri"
109468
+ }
109469
+ }
109470
+ }
109471
+ }
109472
+ },
109240
109473
  AppBskyUnspeccedGetTimelineSkeleton: {
109241
109474
  lexicon: 1,
109242
109475
  id: "app.bsky.unspecced.getTimelineSkeleton",
@@ -109931,6 +110164,103 @@ function fetchLabels_default(server, ctx) {
109931
110164
  });
109932
110165
  }
109933
110166
 
110167
+ // src/api/admin/createCommunicationTemplate.ts
110168
+ function createCommunicationTemplate_default(server, ctx) {
110169
+ server.com.atproto.admin.createCommunicationTemplate({
110170
+ auth: ctx.roleVerifier,
110171
+ handler: async ({ input, auth }) => {
110172
+ const access = auth.credentials;
110173
+ const db = ctx.db;
110174
+ const { createdBy, ...template } = input.body;
110175
+ if (!access.admin) {
110176
+ throw new AuthRequiredError("Must be an admin to create a communication template");
110177
+ }
110178
+ if (!createdBy) {
110179
+ throw new InvalidRequestError("createdBy field is required");
110180
+ }
110181
+ const communicationTemplate = ctx.communicationTemplateService(db);
110182
+ const newTemplate = await communicationTemplate.create({
110183
+ ...template,
110184
+ disabled: false,
110185
+ lastUpdatedBy: createdBy
110186
+ });
110187
+ return {
110188
+ encoding: "application/json",
110189
+ body: communicationTemplate.view(newTemplate)
110190
+ };
110191
+ }
110192
+ });
110193
+ }
110194
+
110195
+ // src/api/admin/updateCommunicationTemplate.ts
110196
+ function updateCommunicationTemplate_default(server, ctx) {
110197
+ server.com.atproto.admin.updateCommunicationTemplate({
110198
+ auth: ctx.roleVerifier,
110199
+ handler: async ({ input, auth }) => {
110200
+ const access = auth.credentials;
110201
+ const db = ctx.db;
110202
+ const { id, updatedBy, ...template } = input.body;
110203
+ if (!access.admin) {
110204
+ throw new AuthRequiredError("Must be an admin to update a communication template");
110205
+ }
110206
+ if (!updatedBy) {
110207
+ throw new InvalidRequestError("updatedBy field is required");
110208
+ }
110209
+ if (!Object.keys(template).length) {
110210
+ throw new InvalidRequestError("Missing update data in request body");
110211
+ }
110212
+ const communicationTemplate = ctx.communicationTemplateService(db);
110213
+ const updatedTemplate = await communicationTemplate.update(Number(id), {
110214
+ ...template,
110215
+ lastUpdatedBy: updatedBy
110216
+ });
110217
+ return {
110218
+ encoding: "application/json",
110219
+ body: communicationTemplate.view(updatedTemplate)
110220
+ };
110221
+ }
110222
+ });
110223
+ }
110224
+
110225
+ // src/api/admin/deleteCommunicationTemplate.ts
110226
+ function deleteCommunicationTemplate_default(server, ctx) {
110227
+ server.com.atproto.admin.deleteCommunicationTemplate({
110228
+ auth: ctx.roleVerifier,
110229
+ handler: async ({ input, auth }) => {
110230
+ const access = auth.credentials;
110231
+ const db = ctx.db;
110232
+ const { id } = input.body;
110233
+ if (!access.admin) {
110234
+ throw new AuthRequiredError("Must be an admin to delete a communication template");
110235
+ }
110236
+ const communicationTemplate = ctx.communicationTemplateService(db);
110237
+ await communicationTemplate.delete(Number(id));
110238
+ }
110239
+ });
110240
+ }
110241
+
110242
+ // src/api/admin/listCommunicationTemplates.ts
110243
+ function listCommunicationTemplates_default(server, ctx) {
110244
+ server.com.atproto.admin.listCommunicationTemplates({
110245
+ auth: ctx.roleVerifier,
110246
+ handler: async ({ auth }) => {
110247
+ const access = auth.credentials;
110248
+ const db = ctx.db;
110249
+ if (!access.moderator) {
110250
+ throw new AuthRequiredError("Must be a full moderator to view list of communication template");
110251
+ }
110252
+ const communicationTemplate = ctx.communicationTemplateService(db);
110253
+ const list = await communicationTemplate.list();
110254
+ return {
110255
+ encoding: "application/json",
110256
+ body: {
110257
+ communicationTemplates: list.map((item) => communicationTemplate.view(item))
110258
+ }
110259
+ };
110260
+ }
110261
+ });
110262
+ }
110263
+
109934
110264
  // src/api/health.ts
109935
110265
  var health_exports = {};
109936
110266
  __export(health_exports, {
@@ -117536,6 +117866,10 @@ function api_default(server, ctx) {
117536
117866
  queryModerationEvents_default(server, ctx);
117537
117867
  queryModerationStatuses_default(server, ctx);
117538
117868
  fetchLabels_default(server, ctx);
117869
+ listCommunicationTemplates_default(server, ctx);
117870
+ createCommunicationTemplate_default(server, ctx);
117871
+ updateCommunicationTemplate_default(server, ctx);
117872
+ deleteCommunicationTemplate_default(server, ctx);
117539
117873
  return server;
117540
117874
  }
117541
117875
 
@@ -117599,10 +117933,18 @@ var ComAtprotoAdminNS = class {
117599
117933
  constructor(server) {
117600
117934
  this._server = server;
117601
117935
  }
117936
+ createCommunicationTemplate(cfg) {
117937
+ const nsid2 = "com.atproto.admin.createCommunicationTemplate";
117938
+ return this._server.xrpc.method(nsid2, cfg);
117939
+ }
117602
117940
  deleteAccount(cfg) {
117603
117941
  const nsid2 = "com.atproto.admin.deleteAccount";
117604
117942
  return this._server.xrpc.method(nsid2, cfg);
117605
117943
  }
117944
+ deleteCommunicationTemplate(cfg) {
117945
+ const nsid2 = "com.atproto.admin.deleteCommunicationTemplate";
117946
+ return this._server.xrpc.method(nsid2, cfg);
117947
+ }
117606
117948
  disableAccountInvites(cfg) {
117607
117949
  const nsid2 = "com.atproto.admin.disableAccountInvites";
117608
117950
  return this._server.xrpc.method(nsid2, cfg);
@@ -117647,6 +117989,10 @@ var ComAtprotoAdminNS = class {
117647
117989
  const nsid2 = "com.atproto.admin.getSubjectStatus";
117648
117990
  return this._server.xrpc.method(nsid2, cfg);
117649
117991
  }
117992
+ listCommunicationTemplates(cfg) {
117993
+ const nsid2 = "com.atproto.admin.listCommunicationTemplates";
117994
+ return this._server.xrpc.method(nsid2, cfg);
117995
+ }
117650
117996
  queryModerationEvents(cfg) {
117651
117997
  const nsid2 = "com.atproto.admin.queryModerationEvents";
117652
117998
  return this._server.xrpc.method(nsid2, cfg);
@@ -117671,6 +118017,10 @@ var ComAtprotoAdminNS = class {
117671
118017
  const nsid2 = "com.atproto.admin.updateAccountHandle";
117672
118018
  return this._server.xrpc.method(nsid2, cfg);
117673
118019
  }
118020
+ updateCommunicationTemplate(cfg) {
118021
+ const nsid2 = "com.atproto.admin.updateCommunicationTemplate";
118022
+ return this._server.xrpc.method(nsid2, cfg);
118023
+ }
117674
118024
  updateSubjectStatus(cfg) {
117675
118025
  const nsid2 = "com.atproto.admin.updateSubjectStatus";
117676
118026
  return this._server.xrpc.method(nsid2, cfg);
@@ -118131,6 +118481,10 @@ var AppBskyUnspeccedNS = class {
118131
118481
  const nsid2 = "app.bsky.unspecced.getPopularFeedGenerators";
118132
118482
  return this._server.xrpc.method(nsid2, cfg);
118133
118483
  }
118484
+ getTaggedSuggestions(cfg) {
118485
+ const nsid2 = "app.bsky.unspecced.getTaggedSuggestions";
118486
+ return this._server.xrpc.method(nsid2, cfg);
118487
+ }
118134
118488
  getTimelineSkeleton(cfg) {
118135
118489
  const nsid2 = "app.bsky.unspecced.getTimelineSkeleton";
118136
118490
  return this._server.xrpc.method(nsid2, cfg);
@@ -118486,6 +118840,49 @@ var IdResolver = class {
118486
118840
 
118487
118841
  // ../api/src/client/lexicons.ts
118488
118842
  var schemaDict2 = {
118843
+ ComAtprotoAdminCreateCommunicationTemplate: {
118844
+ lexicon: 1,
118845
+ id: "com.atproto.admin.createCommunicationTemplate",
118846
+ defs: {
118847
+ main: {
118848
+ type: "procedure",
118849
+ description: "Administrative action to create a new, re-usable communication (email for now) template.",
118850
+ input: {
118851
+ encoding: "application/json",
118852
+ schema: {
118853
+ type: "object",
118854
+ required: ["subject", "contentMarkdown", "name"],
118855
+ properties: {
118856
+ name: {
118857
+ type: "string",
118858
+ description: "Name of the template."
118859
+ },
118860
+ contentMarkdown: {
118861
+ type: "string",
118862
+ description: "Content of the template, markdown supported, can contain variable placeholders."
118863
+ },
118864
+ subject: {
118865
+ type: "string",
118866
+ description: "Subject of the message, used in emails."
118867
+ },
118868
+ createdBy: {
118869
+ type: "string",
118870
+ format: "did",
118871
+ description: "DID of the user who is creating the template."
118872
+ }
118873
+ }
118874
+ }
118875
+ },
118876
+ output: {
118877
+ encoding: "application/json",
118878
+ schema: {
118879
+ type: "ref",
118880
+ ref: "lex:com.atproto.admin.defs#communicationTemplateView"
118881
+ }
118882
+ }
118883
+ }
118884
+ }
118885
+ },
118489
118886
  ComAtprotoAdminDefs: {
118490
118887
  lexicon: 1,
118491
118888
  id: "com.atproto.admin.defs",
@@ -119323,6 +119720,51 @@ var schemaDict2 = {
119323
119720
  description: "Additional comment about the outgoing comm."
119324
119721
  }
119325
119722
  }
119723
+ },
119724
+ communicationTemplateView: {
119725
+ type: "object",
119726
+ required: [
119727
+ "id",
119728
+ "name",
119729
+ "contentMarkdown",
119730
+ "disabled",
119731
+ "lastUpdatedBy",
119732
+ "createdAt",
119733
+ "updatedAt"
119734
+ ],
119735
+ properties: {
119736
+ id: {
119737
+ type: "string"
119738
+ },
119739
+ name: {
119740
+ type: "string",
119741
+ description: "Name of the template."
119742
+ },
119743
+ subject: {
119744
+ type: "string",
119745
+ description: "Content of the template, can contain markdown and variable placeholders."
119746
+ },
119747
+ contentMarkdown: {
119748
+ type: "string",
119749
+ description: "Subject of the message, used in emails."
119750
+ },
119751
+ disabled: {
119752
+ type: "boolean"
119753
+ },
119754
+ lastUpdatedBy: {
119755
+ type: "string",
119756
+ format: "did",
119757
+ description: "DID of the user who last updated the template."
119758
+ },
119759
+ createdAt: {
119760
+ type: "string",
119761
+ format: "datetime"
119762
+ },
119763
+ updatedAt: {
119764
+ type: "string",
119765
+ format: "datetime"
119766
+ }
119767
+ }
119326
119768
  }
119327
119769
  }
119328
119770
  },
@@ -119349,6 +119791,28 @@ var schemaDict2 = {
119349
119791
  }
119350
119792
  }
119351
119793
  },
119794
+ ComAtprotoAdminDeleteCommunicationTemplate: {
119795
+ lexicon: 1,
119796
+ id: "com.atproto.admin.deleteCommunicationTemplate",
119797
+ defs: {
119798
+ main: {
119799
+ type: "procedure",
119800
+ description: "Delete a communication template.",
119801
+ input: {
119802
+ encoding: "application/json",
119803
+ schema: {
119804
+ type: "object",
119805
+ required: ["id"],
119806
+ properties: {
119807
+ id: {
119808
+ type: "string"
119809
+ }
119810
+ }
119811
+ }
119812
+ }
119813
+ }
119814
+ }
119815
+ },
119352
119816
  ComAtprotoAdminDisableAccountInvites: {
119353
119817
  lexicon: 1,
119354
119818
  id: "com.atproto.admin.disableAccountInvites",
@@ -119753,6 +120217,32 @@ var schemaDict2 = {
119753
120217
  }
119754
120218
  }
119755
120219
  },
120220
+ ComAtprotoAdminListCommunicationTemplates: {
120221
+ lexicon: 1,
120222
+ id: "com.atproto.admin.listCommunicationTemplates",
120223
+ defs: {
120224
+ main: {
120225
+ type: "query",
120226
+ description: "Get list of all communication templates.",
120227
+ output: {
120228
+ encoding: "application/json",
120229
+ schema: {
120230
+ type: "object",
120231
+ required: ["communicationTemplates"],
120232
+ properties: {
120233
+ communicationTemplates: {
120234
+ type: "array",
120235
+ items: {
120236
+ type: "ref",
120237
+ ref: "lex:com.atproto.admin.defs#communicationTemplateView"
120238
+ }
120239
+ }
120240
+ }
120241
+ }
120242
+ }
120243
+ }
120244
+ }
120245
+ },
119756
120246
  ComAtprotoAdminQueryModerationEvents: {
119757
120247
  lexicon: 1,
119758
120248
  id: "com.atproto.admin.queryModerationEvents",
@@ -120084,6 +120574,56 @@ var schemaDict2 = {
120084
120574
  }
120085
120575
  }
120086
120576
  },
120577
+ ComAtprotoAdminUpdateCommunicationTemplate: {
120578
+ lexicon: 1,
120579
+ id: "com.atproto.admin.updateCommunicationTemplate",
120580
+ defs: {
120581
+ main: {
120582
+ type: "procedure",
120583
+ description: "Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.",
120584
+ input: {
120585
+ encoding: "application/json",
120586
+ schema: {
120587
+ type: "object",
120588
+ required: ["id"],
120589
+ properties: {
120590
+ id: {
120591
+ type: "string",
120592
+ description: "ID of the template to be updated."
120593
+ },
120594
+ name: {
120595
+ type: "string",
120596
+ description: "Name of the template."
120597
+ },
120598
+ contentMarkdown: {
120599
+ type: "string",
120600
+ description: "Content of the template, markdown supported, can contain variable placeholders."
120601
+ },
120602
+ subject: {
120603
+ type: "string",
120604
+ description: "Subject of the message, used in emails."
120605
+ },
120606
+ updatedBy: {
120607
+ type: "string",
120608
+ format: "did",
120609
+ description: "DID of the user who is updating the template."
120610
+ },
120611
+ disabled: {
120612
+ type: "boolean"
120613
+ }
120614
+ }
120615
+ }
120616
+ },
120617
+ output: {
120618
+ encoding: "application/json",
120619
+ schema: {
120620
+ type: "ref",
120621
+ ref: "lex:com.atproto.admin.defs#communicationTemplateView"
120622
+ }
120623
+ }
120624
+ }
120625
+ }
120626
+ },
120087
120627
  ComAtprotoAdminUpdateSubjectStatus: {
120088
120628
  lexicon: 1,
120089
120629
  id: "com.atproto.admin.updateSubjectStatus",
@@ -126124,6 +126664,53 @@ var schemaDict2 = {
126124
126664
  }
126125
126665
  }
126126
126666
  },
126667
+ AppBskyUnspeccedGetTaggedSuggestions: {
126668
+ lexicon: 1,
126669
+ id: "app.bsky.unspecced.getTaggedSuggestions",
126670
+ defs: {
126671
+ main: {
126672
+ type: "query",
126673
+ description: "Get a list of suggestions (feeds and users) tagged with categories",
126674
+ parameters: {
126675
+ type: "params",
126676
+ properties: {}
126677
+ },
126678
+ output: {
126679
+ encoding: "application/json",
126680
+ schema: {
126681
+ type: "object",
126682
+ required: ["suggestions"],
126683
+ properties: {
126684
+ suggestions: {
126685
+ type: "array",
126686
+ items: {
126687
+ type: "ref",
126688
+ ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
126689
+ }
126690
+ }
126691
+ }
126692
+ }
126693
+ }
126694
+ },
126695
+ suggestion: {
126696
+ type: "object",
126697
+ required: ["tag", "subjectType", "subject"],
126698
+ properties: {
126699
+ tag: {
126700
+ type: "string"
126701
+ },
126702
+ subjectType: {
126703
+ type: "string",
126704
+ knownValues: ["actor", "feed"]
126705
+ },
126706
+ subject: {
126707
+ type: "string",
126708
+ format: "uri"
126709
+ }
126710
+ }
126711
+ }
126712
+ }
126713
+ },
126127
126714
  AppBskyUnspeccedGetTimelineSkeleton: {
126128
126715
  lexicon: 1,
126129
126716
  id: "app.bsky.unspecced.getTimelineSkeleton",
@@ -126296,34 +126883,48 @@ var schemaDict2 = {
126296
126883
  var schemas2 = Object.values(schemaDict2);
126297
126884
  var lexicons2 = new Lexicons(schemas2);
126298
126885
 
126299
- // ../api/src/client/types/com/atproto/admin/deleteAccount.ts
126886
+ // ../api/src/client/types/com/atproto/admin/createCommunicationTemplate.ts
126300
126887
  function toKnownErr(e) {
126301
126888
  if (e instanceof XRPCError) {
126302
126889
  }
126303
126890
  return e;
126304
126891
  }
126305
126892
 
126306
- // ../api/src/client/types/com/atproto/admin/disableAccountInvites.ts
126893
+ // ../api/src/client/types/com/atproto/admin/deleteAccount.ts
126307
126894
  function toKnownErr2(e) {
126308
126895
  if (e instanceof XRPCError) {
126309
126896
  }
126310
126897
  return e;
126311
126898
  }
126312
126899
 
126313
- // ../api/src/client/types/com/atproto/admin/disableInviteCodes.ts
126900
+ // ../api/src/client/types/com/atproto/admin/deleteCommunicationTemplate.ts
126314
126901
  function toKnownErr3(e) {
126315
126902
  if (e instanceof XRPCError) {
126316
126903
  }
126317
126904
  return e;
126318
126905
  }
126319
126906
 
126907
+ // ../api/src/client/types/com/atproto/admin/disableAccountInvites.ts
126908
+ function toKnownErr4(e) {
126909
+ if (e instanceof XRPCError) {
126910
+ }
126911
+ return e;
126912
+ }
126913
+
126914
+ // ../api/src/client/types/com/atproto/admin/disableInviteCodes.ts
126915
+ function toKnownErr5(e) {
126916
+ if (e instanceof XRPCError) {
126917
+ }
126918
+ return e;
126919
+ }
126920
+
126320
126921
  // ../api/src/client/types/com/atproto/admin/emitModerationEvent.ts
126321
126922
  var SubjectHasActionError = class extends XRPCError {
126322
126923
  constructor(src3) {
126323
126924
  super(src3.status, src3.error, src3.message, src3.headers);
126324
126925
  }
126325
126926
  };
126326
- function toKnownErr4(e) {
126927
+ function toKnownErr6(e) {
126327
126928
  if (e instanceof XRPCError) {
126328
126929
  if (e.error === "SubjectHasAction")
126329
126930
  return new SubjectHasActionError(e);
@@ -126332,35 +126933,35 @@ function toKnownErr4(e) {
126332
126933
  }
126333
126934
 
126334
126935
  // ../api/src/client/types/com/atproto/admin/enableAccountInvites.ts
126335
- function toKnownErr5(e) {
126936
+ function toKnownErr7(e) {
126336
126937
  if (e instanceof XRPCError) {
126337
126938
  }
126338
126939
  return e;
126339
126940
  }
126340
126941
 
126341
126942
  // ../api/src/client/types/com/atproto/admin/getAccountInfo.ts
126342
- function toKnownErr6(e) {
126943
+ function toKnownErr8(e) {
126343
126944
  if (e instanceof XRPCError) {
126344
126945
  }
126345
126946
  return e;
126346
126947
  }
126347
126948
 
126348
126949
  // ../api/src/client/types/com/atproto/admin/getAccountInfos.ts
126349
- function toKnownErr7(e) {
126950
+ function toKnownErr9(e) {
126350
126951
  if (e instanceof XRPCError) {
126351
126952
  }
126352
126953
  return e;
126353
126954
  }
126354
126955
 
126355
126956
  // ../api/src/client/types/com/atproto/admin/getInviteCodes.ts
126356
- function toKnownErr8(e) {
126957
+ function toKnownErr10(e) {
126357
126958
  if (e instanceof XRPCError) {
126358
126959
  }
126359
126960
  return e;
126360
126961
  }
126361
126962
 
126362
126963
  // ../api/src/client/types/com/atproto/admin/getModerationEvent.ts
126363
- function toKnownErr9(e) {
126964
+ function toKnownErr11(e) {
126364
126965
  if (e instanceof XRPCError) {
126365
126966
  }
126366
126967
  return e;
@@ -126372,7 +126973,7 @@ var RecordNotFoundError = class extends XRPCError {
126372
126973
  super(src3.status, src3.error, src3.message, src3.headers);
126373
126974
  }
126374
126975
  };
126375
- function toKnownErr10(e) {
126976
+ function toKnownErr12(e) {
126376
126977
  if (e instanceof XRPCError) {
126377
126978
  if (e.error === "RecordNotFound")
126378
126979
  return new RecordNotFoundError(e);
@@ -126386,7 +126987,7 @@ var RepoNotFoundError = class extends XRPCError {
126386
126987
  super(src3.status, src3.error, src3.message, src3.headers);
126387
126988
  }
126388
126989
  };
126389
- function toKnownErr11(e) {
126990
+ function toKnownErr13(e) {
126390
126991
  if (e instanceof XRPCError) {
126391
126992
  if (e.error === "RepoNotFound")
126392
126993
  return new RepoNotFoundError(e);
@@ -126395,84 +126996,98 @@ function toKnownErr11(e) {
126395
126996
  }
126396
126997
 
126397
126998
  // ../api/src/client/types/com/atproto/admin/getSubjectStatus.ts
126398
- function toKnownErr12(e) {
126999
+ function toKnownErr14(e) {
127000
+ if (e instanceof XRPCError) {
127001
+ }
127002
+ return e;
127003
+ }
127004
+
127005
+ // ../api/src/client/types/com/atproto/admin/listCommunicationTemplates.ts
127006
+ function toKnownErr15(e) {
126399
127007
  if (e instanceof XRPCError) {
126400
127008
  }
126401
127009
  return e;
126402
127010
  }
126403
127011
 
126404
127012
  // ../api/src/client/types/com/atproto/admin/queryModerationEvents.ts
126405
- function toKnownErr13(e) {
127013
+ function toKnownErr16(e) {
126406
127014
  if (e instanceof XRPCError) {
126407
127015
  }
126408
127016
  return e;
126409
127017
  }
126410
127018
 
126411
127019
  // ../api/src/client/types/com/atproto/admin/queryModerationStatuses.ts
126412
- function toKnownErr14(e) {
127020
+ function toKnownErr17(e) {
126413
127021
  if (e instanceof XRPCError) {
126414
127022
  }
126415
127023
  return e;
126416
127024
  }
126417
127025
 
126418
127026
  // ../api/src/client/types/com/atproto/admin/searchRepos.ts
126419
- function toKnownErr15(e) {
127027
+ function toKnownErr18(e) {
126420
127028
  if (e instanceof XRPCError) {
126421
127029
  }
126422
127030
  return e;
126423
127031
  }
126424
127032
 
126425
127033
  // ../api/src/client/types/com/atproto/admin/sendEmail.ts
126426
- function toKnownErr16(e) {
127034
+ function toKnownErr19(e) {
126427
127035
  if (e instanceof XRPCError) {
126428
127036
  }
126429
127037
  return e;
126430
127038
  }
126431
127039
 
126432
127040
  // ../api/src/client/types/com/atproto/admin/updateAccountEmail.ts
126433
- function toKnownErr17(e) {
127041
+ function toKnownErr20(e) {
126434
127042
  if (e instanceof XRPCError) {
126435
127043
  }
126436
127044
  return e;
126437
127045
  }
126438
127046
 
126439
127047
  // ../api/src/client/types/com/atproto/admin/updateAccountHandle.ts
126440
- function toKnownErr18(e) {
127048
+ function toKnownErr21(e) {
127049
+ if (e instanceof XRPCError) {
127050
+ }
127051
+ return e;
127052
+ }
127053
+
127054
+ // ../api/src/client/types/com/atproto/admin/updateCommunicationTemplate.ts
127055
+ function toKnownErr22(e) {
126441
127056
  if (e instanceof XRPCError) {
126442
127057
  }
126443
127058
  return e;
126444
127059
  }
126445
127060
 
126446
127061
  // ../api/src/client/types/com/atproto/admin/updateSubjectStatus.ts
126447
- function toKnownErr19(e) {
127062
+ function toKnownErr23(e) {
126448
127063
  if (e instanceof XRPCError) {
126449
127064
  }
126450
127065
  return e;
126451
127066
  }
126452
127067
 
126453
127068
  // ../api/src/client/types/com/atproto/identity/resolveHandle.ts
126454
- function toKnownErr20(e) {
127069
+ function toKnownErr24(e) {
126455
127070
  if (e instanceof XRPCError) {
126456
127071
  }
126457
127072
  return e;
126458
127073
  }
126459
127074
 
126460
127075
  // ../api/src/client/types/com/atproto/identity/updateHandle.ts
126461
- function toKnownErr21(e) {
127076
+ function toKnownErr25(e) {
126462
127077
  if (e instanceof XRPCError) {
126463
127078
  }
126464
127079
  return e;
126465
127080
  }
126466
127081
 
126467
127082
  // ../api/src/client/types/com/atproto/label/queryLabels.ts
126468
- function toKnownErr22(e) {
127083
+ function toKnownErr26(e) {
126469
127084
  if (e instanceof XRPCError) {
126470
127085
  }
126471
127086
  return e;
126472
127087
  }
126473
127088
 
126474
127089
  // ../api/src/client/types/com/atproto/moderation/createReport.ts
126475
- function toKnownErr23(e) {
127090
+ function toKnownErr27(e) {
126476
127091
  if (e instanceof XRPCError) {
126477
127092
  }
126478
127093
  return e;
@@ -126484,7 +127099,7 @@ var InvalidSwapError = class extends XRPCError {
126484
127099
  super(src3.status, src3.error, src3.message, src3.headers);
126485
127100
  }
126486
127101
  };
126487
- function toKnownErr24(e) {
127102
+ function toKnownErr28(e) {
126488
127103
  if (e instanceof XRPCError) {
126489
127104
  if (e.error === "InvalidSwap")
126490
127105
  return new InvalidSwapError(e);
@@ -126498,7 +127113,7 @@ var InvalidSwapError2 = class extends XRPCError {
126498
127113
  super(src3.status, src3.error, src3.message, src3.headers);
126499
127114
  }
126500
127115
  };
126501
- function toKnownErr25(e) {
127116
+ function toKnownErr29(e) {
126502
127117
  if (e instanceof XRPCError) {
126503
127118
  if (e.error === "InvalidSwap")
126504
127119
  return new InvalidSwapError2(e);
@@ -126512,7 +127127,7 @@ var InvalidSwapError3 = class extends XRPCError {
126512
127127
  super(src3.status, src3.error, src3.message, src3.headers);
126513
127128
  }
126514
127129
  };
126515
- function toKnownErr26(e) {
127130
+ function toKnownErr30(e) {
126516
127131
  if (e instanceof XRPCError) {
126517
127132
  if (e.error === "InvalidSwap")
126518
127133
  return new InvalidSwapError3(e);
@@ -126521,21 +127136,21 @@ function toKnownErr26(e) {
126521
127136
  }
126522
127137
 
126523
127138
  // ../api/src/client/types/com/atproto/repo/describeRepo.ts
126524
- function toKnownErr27(e) {
127139
+ function toKnownErr31(e) {
126525
127140
  if (e instanceof XRPCError) {
126526
127141
  }
126527
127142
  return e;
126528
127143
  }
126529
127144
 
126530
127145
  // ../api/src/client/types/com/atproto/repo/getRecord.ts
126531
- function toKnownErr28(e) {
127146
+ function toKnownErr32(e) {
126532
127147
  if (e instanceof XRPCError) {
126533
127148
  }
126534
127149
  return e;
126535
127150
  }
126536
127151
 
126537
127152
  // ../api/src/client/types/com/atproto/repo/listRecords.ts
126538
- function toKnownErr29(e) {
127153
+ function toKnownErr33(e) {
126539
127154
  if (e instanceof XRPCError) {
126540
127155
  }
126541
127156
  return e;
@@ -126547,7 +127162,7 @@ var InvalidSwapError4 = class extends XRPCError {
126547
127162
  super(src3.status, src3.error, src3.message, src3.headers);
126548
127163
  }
126549
127164
  };
126550
- function toKnownErr30(e) {
127165
+ function toKnownErr34(e) {
126551
127166
  if (e instanceof XRPCError) {
126552
127167
  if (e.error === "InvalidSwap")
126553
127168
  return new InvalidSwapError4(e);
@@ -126556,7 +127171,7 @@ function toKnownErr30(e) {
126556
127171
  }
126557
127172
 
126558
127173
  // ../api/src/client/types/com/atproto/repo/uploadBlob.ts
126559
- function toKnownErr31(e) {
127174
+ function toKnownErr35(e) {
126560
127175
  if (e instanceof XRPCError) {
126561
127176
  }
126562
127177
  return e;
@@ -126583,7 +127198,7 @@ var InvalidEmailError = class extends XRPCError {
126583
127198
  super(src3.status, src3.error, src3.message, src3.headers);
126584
127199
  }
126585
127200
  };
126586
- function toKnownErr32(e) {
127201
+ function toKnownErr36(e) {
126587
127202
  if (e instanceof XRPCError) {
126588
127203
  if (e.error === "AccountNotFound")
126589
127204
  return new AccountNotFoundError(e);
@@ -126633,7 +127248,7 @@ var IncompatibleDidDocError = class extends XRPCError {
126633
127248
  super(src3.status, src3.error, src3.message, src3.headers);
126634
127249
  }
126635
127250
  };
126636
- function toKnownErr33(e) {
127251
+ function toKnownErr37(e) {
126637
127252
  if (e instanceof XRPCError) {
126638
127253
  if (e.error === "InvalidHandle")
126639
127254
  return new InvalidHandleError2(e);
@@ -126659,7 +127274,7 @@ var AccountTakedownError = class extends XRPCError {
126659
127274
  super(src3.status, src3.error, src3.message, src3.headers);
126660
127275
  }
126661
127276
  };
126662
- function toKnownErr34(e) {
127277
+ function toKnownErr38(e) {
126663
127278
  if (e instanceof XRPCError) {
126664
127279
  if (e.error === "AccountTakedown")
126665
127280
  return new AccountTakedownError(e);
@@ -126668,14 +127283,14 @@ function toKnownErr34(e) {
126668
127283
  }
126669
127284
 
126670
127285
  // ../api/src/client/types/com/atproto/server/createInviteCode.ts
126671
- function toKnownErr35(e) {
127286
+ function toKnownErr39(e) {
126672
127287
  if (e instanceof XRPCError) {
126673
127288
  }
126674
127289
  return e;
126675
127290
  }
126676
127291
 
126677
127292
  // ../api/src/client/types/com/atproto/server/createInviteCodes.ts
126678
- function toKnownErr36(e) {
127293
+ function toKnownErr40(e) {
126679
127294
  if (e instanceof XRPCError) {
126680
127295
  }
126681
127296
  return e;
@@ -126687,7 +127302,7 @@ var AccountTakedownError2 = class extends XRPCError {
126687
127302
  super(src3.status, src3.error, src3.message, src3.headers);
126688
127303
  }
126689
127304
  };
126690
- function toKnownErr37(e) {
127305
+ function toKnownErr41(e) {
126691
127306
  if (e instanceof XRPCError) {
126692
127307
  if (e.error === "AccountTakedown")
126693
127308
  return new AccountTakedownError2(e);
@@ -126706,7 +127321,7 @@ var InvalidTokenError2 = class extends XRPCError {
126706
127321
  super(src3.status, src3.error, src3.message, src3.headers);
126707
127322
  }
126708
127323
  };
126709
- function toKnownErr38(e) {
127324
+ function toKnownErr42(e) {
126710
127325
  if (e instanceof XRPCError) {
126711
127326
  if (e.error === "ExpiredToken")
126712
127327
  return new ExpiredTokenError2(e);
@@ -126717,14 +127332,14 @@ function toKnownErr38(e) {
126717
127332
  }
126718
127333
 
126719
127334
  // ../api/src/client/types/com/atproto/server/deleteSession.ts
126720
- function toKnownErr39(e) {
127335
+ function toKnownErr43(e) {
126721
127336
  if (e instanceof XRPCError) {
126722
127337
  }
126723
127338
  return e;
126724
127339
  }
126725
127340
 
126726
127341
  // ../api/src/client/types/com/atproto/server/describeServer.ts
126727
- function toKnownErr40(e) {
127342
+ function toKnownErr44(e) {
126728
127343
  if (e instanceof XRPCError) {
126729
127344
  }
126730
127345
  return e;
@@ -126736,7 +127351,7 @@ var DuplicateCreateError = class extends XRPCError {
126736
127351
  super(src3.status, src3.error, src3.message, src3.headers);
126737
127352
  }
126738
127353
  };
126739
- function toKnownErr41(e) {
127354
+ function toKnownErr45(e) {
126740
127355
  if (e instanceof XRPCError) {
126741
127356
  if (e.error === "DuplicateCreate")
126742
127357
  return new DuplicateCreateError(e);
@@ -126745,7 +127360,7 @@ function toKnownErr41(e) {
126745
127360
  }
126746
127361
 
126747
127362
  // ../api/src/client/types/com/atproto/server/getSession.ts
126748
- function toKnownErr42(e) {
127363
+ function toKnownErr46(e) {
126749
127364
  if (e instanceof XRPCError) {
126750
127365
  }
126751
127366
  return e;
@@ -126757,7 +127372,7 @@ var AccountTakedownError3 = class extends XRPCError {
126757
127372
  super(src3.status, src3.error, src3.message, src3.headers);
126758
127373
  }
126759
127374
  };
126760
- function toKnownErr43(e) {
127375
+ function toKnownErr47(e) {
126761
127376
  if (e instanceof XRPCError) {
126762
127377
  if (e.error === "AccountTakedown")
126763
127378
  return new AccountTakedownError3(e);
@@ -126771,7 +127386,7 @@ var AccountTakedownError4 = class extends XRPCError {
126771
127386
  super(src3.status, src3.error, src3.message, src3.headers);
126772
127387
  }
126773
127388
  };
126774
- function toKnownErr44(e) {
127389
+ function toKnownErr48(e) {
126775
127390
  if (e instanceof XRPCError) {
126776
127391
  if (e.error === "AccountTakedown")
126777
127392
  return new AccountTakedownError4(e);
@@ -126780,35 +127395,35 @@ function toKnownErr44(e) {
126780
127395
  }
126781
127396
 
126782
127397
  // ../api/src/client/types/com/atproto/server/requestAccountDelete.ts
126783
- function toKnownErr45(e) {
127398
+ function toKnownErr49(e) {
126784
127399
  if (e instanceof XRPCError) {
126785
127400
  }
126786
127401
  return e;
126787
127402
  }
126788
127403
 
126789
127404
  // ../api/src/client/types/com/atproto/server/requestEmailConfirmation.ts
126790
- function toKnownErr46(e) {
127405
+ function toKnownErr50(e) {
126791
127406
  if (e instanceof XRPCError) {
126792
127407
  }
126793
127408
  return e;
126794
127409
  }
126795
127410
 
126796
127411
  // ../api/src/client/types/com/atproto/server/requestEmailUpdate.ts
126797
- function toKnownErr47(e) {
127412
+ function toKnownErr51(e) {
126798
127413
  if (e instanceof XRPCError) {
126799
127414
  }
126800
127415
  return e;
126801
127416
  }
126802
127417
 
126803
127418
  // ../api/src/client/types/com/atproto/server/requestPasswordReset.ts
126804
- function toKnownErr48(e) {
127419
+ function toKnownErr52(e) {
126805
127420
  if (e instanceof XRPCError) {
126806
127421
  }
126807
127422
  return e;
126808
127423
  }
126809
127424
 
126810
127425
  // ../api/src/client/types/com/atproto/server/reserveSigningKey.ts
126811
- function toKnownErr49(e) {
127426
+ function toKnownErr53(e) {
126812
127427
  if (e instanceof XRPCError) {
126813
127428
  }
126814
127429
  return e;
@@ -126825,7 +127440,7 @@ var InvalidTokenError3 = class extends XRPCError {
126825
127440
  super(src3.status, src3.error, src3.message, src3.headers);
126826
127441
  }
126827
127442
  };
126828
- function toKnownErr50(e) {
127443
+ function toKnownErr54(e) {
126829
127444
  if (e instanceof XRPCError) {
126830
127445
  if (e.error === "ExpiredToken")
126831
127446
  return new ExpiredTokenError3(e);
@@ -126836,7 +127451,7 @@ function toKnownErr50(e) {
126836
127451
  }
126837
127452
 
126838
127453
  // ../api/src/client/types/com/atproto/server/revokeAppPassword.ts
126839
- function toKnownErr51(e) {
127454
+ function toKnownErr55(e) {
126840
127455
  if (e instanceof XRPCError) {
126841
127456
  }
126842
127457
  return e;
@@ -126858,7 +127473,7 @@ var TokenRequiredError = class extends XRPCError {
126858
127473
  super(src3.status, src3.error, src3.message, src3.headers);
126859
127474
  }
126860
127475
  };
126861
- function toKnownErr52(e) {
127476
+ function toKnownErr56(e) {
126862
127477
  if (e instanceof XRPCError) {
126863
127478
  if (e.error === "ExpiredToken")
126864
127479
  return new ExpiredTokenError4(e);
@@ -126871,21 +127486,21 @@ function toKnownErr52(e) {
126871
127486
  }
126872
127487
 
126873
127488
  // ../api/src/client/types/com/atproto/sync/getBlob.ts
126874
- function toKnownErr53(e) {
127489
+ function toKnownErr57(e) {
126875
127490
  if (e instanceof XRPCError) {
126876
127491
  }
126877
127492
  return e;
126878
127493
  }
126879
127494
 
126880
127495
  // ../api/src/client/types/com/atproto/sync/getBlocks.ts
126881
- function toKnownErr54(e) {
127496
+ function toKnownErr58(e) {
126882
127497
  if (e instanceof XRPCError) {
126883
127498
  }
126884
127499
  return e;
126885
127500
  }
126886
127501
 
126887
127502
  // ../api/src/client/types/com/atproto/sync/getCheckout.ts
126888
- function toKnownErr55(e) {
127503
+ function toKnownErr59(e) {
126889
127504
  if (e instanceof XRPCError) {
126890
127505
  }
126891
127506
  return e;
@@ -126897,7 +127512,7 @@ var HeadNotFoundError = class extends XRPCError {
126897
127512
  super(src3.status, src3.error, src3.message, src3.headers);
126898
127513
  }
126899
127514
  };
126900
- function toKnownErr56(e) {
127515
+ function toKnownErr60(e) {
126901
127516
  if (e instanceof XRPCError) {
126902
127517
  if (e.error === "HeadNotFound")
126903
127518
  return new HeadNotFoundError(e);
@@ -126911,7 +127526,7 @@ var RepoNotFoundError2 = class extends XRPCError {
126911
127526
  super(src3.status, src3.error, src3.message, src3.headers);
126912
127527
  }
126913
127528
  };
126914
- function toKnownErr57(e) {
127529
+ function toKnownErr61(e) {
126915
127530
  if (e instanceof XRPCError) {
126916
127531
  if (e.error === "RepoNotFound")
126917
127532
  return new RepoNotFoundError2(e);
@@ -126920,70 +127535,70 @@ function toKnownErr57(e) {
126920
127535
  }
126921
127536
 
126922
127537
  // ../api/src/client/types/com/atproto/sync/getRecord.ts
126923
- function toKnownErr58(e) {
127538
+ function toKnownErr62(e) {
126924
127539
  if (e instanceof XRPCError) {
126925
127540
  }
126926
127541
  return e;
126927
127542
  }
126928
127543
 
126929
127544
  // ../api/src/client/types/com/atproto/sync/getRepo.ts
126930
- function toKnownErr59(e) {
127545
+ function toKnownErr63(e) {
126931
127546
  if (e instanceof XRPCError) {
126932
127547
  }
126933
127548
  return e;
126934
127549
  }
126935
127550
 
126936
127551
  // ../api/src/client/types/com/atproto/sync/listBlobs.ts
126937
- function toKnownErr60(e) {
127552
+ function toKnownErr64(e) {
126938
127553
  if (e instanceof XRPCError) {
126939
127554
  }
126940
127555
  return e;
126941
127556
  }
126942
127557
 
126943
127558
  // ../api/src/client/types/com/atproto/sync/listRepos.ts
126944
- function toKnownErr61(e) {
127559
+ function toKnownErr65(e) {
126945
127560
  if (e instanceof XRPCError) {
126946
127561
  }
126947
127562
  return e;
126948
127563
  }
126949
127564
 
126950
127565
  // ../api/src/client/types/com/atproto/sync/notifyOfUpdate.ts
126951
- function toKnownErr62(e) {
127566
+ function toKnownErr66(e) {
126952
127567
  if (e instanceof XRPCError) {
126953
127568
  }
126954
127569
  return e;
126955
127570
  }
126956
127571
 
126957
127572
  // ../api/src/client/types/com/atproto/sync/requestCrawl.ts
126958
- function toKnownErr63(e) {
127573
+ function toKnownErr67(e) {
126959
127574
  if (e instanceof XRPCError) {
126960
127575
  }
126961
127576
  return e;
126962
127577
  }
126963
127578
 
126964
127579
  // ../api/src/client/types/com/atproto/temp/fetchLabels.ts
126965
- function toKnownErr64(e) {
127580
+ function toKnownErr68(e) {
126966
127581
  if (e instanceof XRPCError) {
126967
127582
  }
126968
127583
  return e;
126969
127584
  }
126970
127585
 
126971
127586
  // ../api/src/client/types/com/atproto/temp/importRepo.ts
126972
- function toKnownErr65(e) {
127587
+ function toKnownErr69(e) {
126973
127588
  if (e instanceof XRPCError) {
126974
127589
  }
126975
127590
  return e;
126976
127591
  }
126977
127592
 
126978
127593
  // ../api/src/client/types/com/atproto/temp/pushBlob.ts
126979
- function toKnownErr66(e) {
127594
+ function toKnownErr70(e) {
126980
127595
  if (e instanceof XRPCError) {
126981
127596
  }
126982
127597
  return e;
126983
127598
  }
126984
127599
 
126985
127600
  // ../api/src/client/types/com/atproto/temp/requestPhoneVerification.ts
126986
- function toKnownErr67(e) {
127601
+ function toKnownErr71(e) {
126987
127602
  if (e instanceof XRPCError) {
126988
127603
  }
126989
127604
  return e;
@@ -127025,7 +127640,7 @@ var IncompatibleDidDocError2 = class extends XRPCError {
127025
127640
  super(src3.status, src3.error, src3.message, src3.headers);
127026
127641
  }
127027
127642
  };
127028
- function toKnownErr68(e) {
127643
+ function toKnownErr72(e) {
127029
127644
  if (e instanceof XRPCError) {
127030
127645
  if (e.error === "InvalidHandle")
127031
127646
  return new InvalidHandleError3(e);
@@ -127046,63 +127661,63 @@ function toKnownErr68(e) {
127046
127661
  }
127047
127662
 
127048
127663
  // ../api/src/client/types/app/bsky/actor/getPreferences.ts
127049
- function toKnownErr69(e) {
127664
+ function toKnownErr73(e) {
127050
127665
  if (e instanceof XRPCError) {
127051
127666
  }
127052
127667
  return e;
127053
127668
  }
127054
127669
 
127055
127670
  // ../api/src/client/types/app/bsky/actor/getProfile.ts
127056
- function toKnownErr70(e) {
127671
+ function toKnownErr74(e) {
127057
127672
  if (e instanceof XRPCError) {
127058
127673
  }
127059
127674
  return e;
127060
127675
  }
127061
127676
 
127062
127677
  // ../api/src/client/types/app/bsky/actor/getProfiles.ts
127063
- function toKnownErr71(e) {
127678
+ function toKnownErr75(e) {
127064
127679
  if (e instanceof XRPCError) {
127065
127680
  }
127066
127681
  return e;
127067
127682
  }
127068
127683
 
127069
127684
  // ../api/src/client/types/app/bsky/actor/getSuggestions.ts
127070
- function toKnownErr72(e) {
127685
+ function toKnownErr76(e) {
127071
127686
  if (e instanceof XRPCError) {
127072
127687
  }
127073
127688
  return e;
127074
127689
  }
127075
127690
 
127076
127691
  // ../api/src/client/types/app/bsky/actor/putPreferences.ts
127077
- function toKnownErr73(e) {
127692
+ function toKnownErr77(e) {
127078
127693
  if (e instanceof XRPCError) {
127079
127694
  }
127080
127695
  return e;
127081
127696
  }
127082
127697
 
127083
127698
  // ../api/src/client/types/app/bsky/actor/searchActors.ts
127084
- function toKnownErr74(e) {
127699
+ function toKnownErr78(e) {
127085
127700
  if (e instanceof XRPCError) {
127086
127701
  }
127087
127702
  return e;
127088
127703
  }
127089
127704
 
127090
127705
  // ../api/src/client/types/app/bsky/actor/searchActorsTypeahead.ts
127091
- function toKnownErr75(e) {
127706
+ function toKnownErr79(e) {
127092
127707
  if (e instanceof XRPCError) {
127093
127708
  }
127094
127709
  return e;
127095
127710
  }
127096
127711
 
127097
127712
  // ../api/src/client/types/app/bsky/feed/describeFeedGenerator.ts
127098
- function toKnownErr76(e) {
127713
+ function toKnownErr80(e) {
127099
127714
  if (e instanceof XRPCError) {
127100
127715
  }
127101
127716
  return e;
127102
127717
  }
127103
127718
 
127104
127719
  // ../api/src/client/types/app/bsky/feed/getActorFeeds.ts
127105
- function toKnownErr77(e) {
127720
+ function toKnownErr81(e) {
127106
127721
  if (e instanceof XRPCError) {
127107
127722
  }
127108
127723
  return e;
@@ -127119,7 +127734,7 @@ var BlockedByActorError = class extends XRPCError {
127119
127734
  super(src3.status, src3.error, src3.message, src3.headers);
127120
127735
  }
127121
127736
  };
127122
- function toKnownErr78(e) {
127737
+ function toKnownErr82(e) {
127123
127738
  if (e instanceof XRPCError) {
127124
127739
  if (e.error === "BlockedActor")
127125
127740
  return new BlockedActorError(e);
@@ -127140,7 +127755,7 @@ var BlockedByActorError2 = class extends XRPCError {
127140
127755
  super(src3.status, src3.error, src3.message, src3.headers);
127141
127756
  }
127142
127757
  };
127143
- function toKnownErr79(e) {
127758
+ function toKnownErr83(e) {
127144
127759
  if (e instanceof XRPCError) {
127145
127760
  if (e.error === "BlockedActor")
127146
127761
  return new BlockedActorError2(e);
@@ -127156,7 +127771,7 @@ var UnknownFeedError = class extends XRPCError {
127156
127771
  super(src3.status, src3.error, src3.message, src3.headers);
127157
127772
  }
127158
127773
  };
127159
- function toKnownErr80(e) {
127774
+ function toKnownErr84(e) {
127160
127775
  if (e instanceof XRPCError) {
127161
127776
  if (e.error === "UnknownFeed")
127162
127777
  return new UnknownFeedError(e);
@@ -127165,14 +127780,14 @@ function toKnownErr80(e) {
127165
127780
  }
127166
127781
 
127167
127782
  // ../api/src/client/types/app/bsky/feed/getFeedGenerator.ts
127168
- function toKnownErr81(e) {
127783
+ function toKnownErr85(e) {
127169
127784
  if (e instanceof XRPCError) {
127170
127785
  }
127171
127786
  return e;
127172
127787
  }
127173
127788
 
127174
127789
  // ../api/src/client/types/app/bsky/feed/getFeedGenerators.ts
127175
- function toKnownErr82(e) {
127790
+ function toKnownErr86(e) {
127176
127791
  if (e instanceof XRPCError) {
127177
127792
  }
127178
127793
  return e;
@@ -127184,7 +127799,7 @@ var UnknownFeedError2 = class extends XRPCError {
127184
127799
  super(src3.status, src3.error, src3.message, src3.headers);
127185
127800
  }
127186
127801
  };
127187
- function toKnownErr83(e) {
127802
+ function toKnownErr87(e) {
127188
127803
  if (e instanceof XRPCError) {
127189
127804
  if (e.error === "UnknownFeed")
127190
127805
  return new UnknownFeedError2(e);
@@ -127193,7 +127808,7 @@ function toKnownErr83(e) {
127193
127808
  }
127194
127809
 
127195
127810
  // ../api/src/client/types/app/bsky/feed/getLikes.ts
127196
- function toKnownErr84(e) {
127811
+ function toKnownErr88(e) {
127197
127812
  if (e instanceof XRPCError) {
127198
127813
  }
127199
127814
  return e;
@@ -127205,7 +127820,7 @@ var UnknownListError = class extends XRPCError {
127205
127820
  super(src3.status, src3.error, src3.message, src3.headers);
127206
127821
  }
127207
127822
  };
127208
- function toKnownErr85(e) {
127823
+ function toKnownErr89(e) {
127209
127824
  if (e instanceof XRPCError) {
127210
127825
  if (e.error === "UnknownList")
127211
127826
  return new UnknownListError(e);
@@ -127219,7 +127834,7 @@ var NotFoundError = class extends XRPCError {
127219
127834
  super(src3.status, src3.error, src3.message, src3.headers);
127220
127835
  }
127221
127836
  };
127222
- function toKnownErr86(e) {
127837
+ function toKnownErr90(e) {
127223
127838
  if (e instanceof XRPCError) {
127224
127839
  if (e.error === "NotFound")
127225
127840
  return new NotFoundError(e);
@@ -127228,28 +127843,28 @@ function toKnownErr86(e) {
127228
127843
  }
127229
127844
 
127230
127845
  // ../api/src/client/types/app/bsky/feed/getPosts.ts
127231
- function toKnownErr87(e) {
127846
+ function toKnownErr91(e) {
127232
127847
  if (e instanceof XRPCError) {
127233
127848
  }
127234
127849
  return e;
127235
127850
  }
127236
127851
 
127237
127852
  // ../api/src/client/types/app/bsky/feed/getRepostedBy.ts
127238
- function toKnownErr88(e) {
127853
+ function toKnownErr92(e) {
127239
127854
  if (e instanceof XRPCError) {
127240
127855
  }
127241
127856
  return e;
127242
127857
  }
127243
127858
 
127244
127859
  // ../api/src/client/types/app/bsky/feed/getSuggestedFeeds.ts
127245
- function toKnownErr89(e) {
127860
+ function toKnownErr93(e) {
127246
127861
  if (e instanceof XRPCError) {
127247
127862
  }
127248
127863
  return e;
127249
127864
  }
127250
127865
 
127251
127866
  // ../api/src/client/types/app/bsky/feed/getTimeline.ts
127252
- function toKnownErr90(e) {
127867
+ function toKnownErr94(e) {
127253
127868
  if (e instanceof XRPCError) {
127254
127869
  }
127255
127870
  return e;
@@ -127261,7 +127876,7 @@ var BadQueryStringError = class extends XRPCError {
127261
127876
  super(src3.status, src3.error, src3.message, src3.headers);
127262
127877
  }
127263
127878
  };
127264
- function toKnownErr91(e) {
127879
+ function toKnownErr95(e) {
127265
127880
  if (e instanceof XRPCError) {
127266
127881
  if (e.error === "BadQueryString")
127267
127882
  return new BadQueryStringError(e);
@@ -127270,126 +127885,133 @@ function toKnownErr91(e) {
127270
127885
  }
127271
127886
 
127272
127887
  // ../api/src/client/types/app/bsky/graph/getBlocks.ts
127273
- function toKnownErr92(e) {
127888
+ function toKnownErr96(e) {
127274
127889
  if (e instanceof XRPCError) {
127275
127890
  }
127276
127891
  return e;
127277
127892
  }
127278
127893
 
127279
127894
  // ../api/src/client/types/app/bsky/graph/getFollowers.ts
127280
- function toKnownErr93(e) {
127895
+ function toKnownErr97(e) {
127281
127896
  if (e instanceof XRPCError) {
127282
127897
  }
127283
127898
  return e;
127284
127899
  }
127285
127900
 
127286
127901
  // ../api/src/client/types/app/bsky/graph/getFollows.ts
127287
- function toKnownErr94(e) {
127902
+ function toKnownErr98(e) {
127288
127903
  if (e instanceof XRPCError) {
127289
127904
  }
127290
127905
  return e;
127291
127906
  }
127292
127907
 
127293
127908
  // ../api/src/client/types/app/bsky/graph/getList.ts
127294
- function toKnownErr95(e) {
127909
+ function toKnownErr99(e) {
127295
127910
  if (e instanceof XRPCError) {
127296
127911
  }
127297
127912
  return e;
127298
127913
  }
127299
127914
 
127300
127915
  // ../api/src/client/types/app/bsky/graph/getListBlocks.ts
127301
- function toKnownErr96(e) {
127916
+ function toKnownErr100(e) {
127302
127917
  if (e instanceof XRPCError) {
127303
127918
  }
127304
127919
  return e;
127305
127920
  }
127306
127921
 
127307
127922
  // ../api/src/client/types/app/bsky/graph/getListMutes.ts
127308
- function toKnownErr97(e) {
127923
+ function toKnownErr101(e) {
127309
127924
  if (e instanceof XRPCError) {
127310
127925
  }
127311
127926
  return e;
127312
127927
  }
127313
127928
 
127314
127929
  // ../api/src/client/types/app/bsky/graph/getLists.ts
127315
- function toKnownErr98(e) {
127930
+ function toKnownErr102(e) {
127316
127931
  if (e instanceof XRPCError) {
127317
127932
  }
127318
127933
  return e;
127319
127934
  }
127320
127935
 
127321
127936
  // ../api/src/client/types/app/bsky/graph/getMutes.ts
127322
- function toKnownErr99(e) {
127937
+ function toKnownErr103(e) {
127323
127938
  if (e instanceof XRPCError) {
127324
127939
  }
127325
127940
  return e;
127326
127941
  }
127327
127942
 
127328
127943
  // ../api/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
127329
- function toKnownErr100(e) {
127944
+ function toKnownErr104(e) {
127330
127945
  if (e instanceof XRPCError) {
127331
127946
  }
127332
127947
  return e;
127333
127948
  }
127334
127949
 
127335
127950
  // ../api/src/client/types/app/bsky/graph/muteActor.ts
127336
- function toKnownErr101(e) {
127951
+ function toKnownErr105(e) {
127337
127952
  if (e instanceof XRPCError) {
127338
127953
  }
127339
127954
  return e;
127340
127955
  }
127341
127956
 
127342
127957
  // ../api/src/client/types/app/bsky/graph/muteActorList.ts
127343
- function toKnownErr102(e) {
127958
+ function toKnownErr106(e) {
127344
127959
  if (e instanceof XRPCError) {
127345
127960
  }
127346
127961
  return e;
127347
127962
  }
127348
127963
 
127349
127964
  // ../api/src/client/types/app/bsky/graph/unmuteActor.ts
127350
- function toKnownErr103(e) {
127965
+ function toKnownErr107(e) {
127351
127966
  if (e instanceof XRPCError) {
127352
127967
  }
127353
127968
  return e;
127354
127969
  }
127355
127970
 
127356
127971
  // ../api/src/client/types/app/bsky/graph/unmuteActorList.ts
127357
- function toKnownErr104(e) {
127972
+ function toKnownErr108(e) {
127358
127973
  if (e instanceof XRPCError) {
127359
127974
  }
127360
127975
  return e;
127361
127976
  }
127362
127977
 
127363
127978
  // ../api/src/client/types/app/bsky/notification/getUnreadCount.ts
127364
- function toKnownErr105(e) {
127979
+ function toKnownErr109(e) {
127365
127980
  if (e instanceof XRPCError) {
127366
127981
  }
127367
127982
  return e;
127368
127983
  }
127369
127984
 
127370
127985
  // ../api/src/client/types/app/bsky/notification/listNotifications.ts
127371
- function toKnownErr106(e) {
127986
+ function toKnownErr110(e) {
127372
127987
  if (e instanceof XRPCError) {
127373
127988
  }
127374
127989
  return e;
127375
127990
  }
127376
127991
 
127377
127992
  // ../api/src/client/types/app/bsky/notification/registerPush.ts
127378
- function toKnownErr107(e) {
127993
+ function toKnownErr111(e) {
127379
127994
  if (e instanceof XRPCError) {
127380
127995
  }
127381
127996
  return e;
127382
127997
  }
127383
127998
 
127384
127999
  // ../api/src/client/types/app/bsky/notification/updateSeen.ts
127385
- function toKnownErr108(e) {
128000
+ function toKnownErr112(e) {
127386
128001
  if (e instanceof XRPCError) {
127387
128002
  }
127388
128003
  return e;
127389
128004
  }
127390
128005
 
127391
128006
  // ../api/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
127392
- function toKnownErr109(e) {
128007
+ function toKnownErr113(e) {
128008
+ if (e instanceof XRPCError) {
128009
+ }
128010
+ return e;
128011
+ }
128012
+
128013
+ // ../api/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts
128014
+ function toKnownErr114(e) {
127393
128015
  if (e instanceof XRPCError) {
127394
128016
  }
127395
128017
  return e;
@@ -127401,7 +128023,7 @@ var UnknownFeedError3 = class extends XRPCError {
127401
128023
  super(src3.status, src3.error, src3.message, src3.headers);
127402
128024
  }
127403
128025
  };
127404
- function toKnownErr110(e) {
128026
+ function toKnownErr115(e) {
127405
128027
  if (e instanceof XRPCError) {
127406
128028
  if (e.error === "UnknownFeed")
127407
128029
  return new UnknownFeedError3(e);
@@ -127415,7 +128037,7 @@ var BadQueryStringError2 = class extends XRPCError {
127415
128037
  super(src3.status, src3.error, src3.message, src3.headers);
127416
128038
  }
127417
128039
  };
127418
- function toKnownErr111(e) {
128040
+ function toKnownErr116(e) {
127419
128041
  if (e instanceof XRPCError) {
127420
128042
  if (e.error === "BadQueryString")
127421
128043
  return new BadQueryStringError2(e);
@@ -127429,7 +128051,7 @@ var BadQueryStringError3 = class extends XRPCError {
127429
128051
  super(src3.status, src3.error, src3.message, src3.headers);
127430
128052
  }
127431
128053
  };
127432
- function toKnownErr112(e) {
128054
+ function toKnownErr117(e) {
127433
128055
  if (e instanceof XRPCError) {
127434
128056
  if (e.error === "BadQueryString")
127435
128057
  return new BadQueryStringError3(e);
@@ -127481,99 +128103,119 @@ var ComAtprotoAdminNS2 = class {
127481
128103
  constructor(service2) {
127482
128104
  this._service = service2;
127483
128105
  }
128106
+ createCommunicationTemplate(data, opts) {
128107
+ return this._service.xrpc.call("com.atproto.admin.createCommunicationTemplate", opts?.qp, data, opts).catch((e) => {
128108
+ throw toKnownErr(e);
128109
+ });
128110
+ }
127484
128111
  deleteAccount(data, opts) {
127485
128112
  return this._service.xrpc.call("com.atproto.admin.deleteAccount", opts?.qp, data, opts).catch((e) => {
127486
- throw toKnownErr(e);
128113
+ throw toKnownErr2(e);
128114
+ });
128115
+ }
128116
+ deleteCommunicationTemplate(data, opts) {
128117
+ return this._service.xrpc.call("com.atproto.admin.deleteCommunicationTemplate", opts?.qp, data, opts).catch((e) => {
128118
+ throw toKnownErr3(e);
127487
128119
  });
127488
128120
  }
127489
128121
  disableAccountInvites(data, opts) {
127490
128122
  return this._service.xrpc.call("com.atproto.admin.disableAccountInvites", opts?.qp, data, opts).catch((e) => {
127491
- throw toKnownErr2(e);
128123
+ throw toKnownErr4(e);
127492
128124
  });
127493
128125
  }
127494
128126
  disableInviteCodes(data, opts) {
127495
128127
  return this._service.xrpc.call("com.atproto.admin.disableInviteCodes", opts?.qp, data, opts).catch((e) => {
127496
- throw toKnownErr3(e);
128128
+ throw toKnownErr5(e);
127497
128129
  });
127498
128130
  }
127499
128131
  emitModerationEvent(data, opts) {
127500
128132
  return this._service.xrpc.call("com.atproto.admin.emitModerationEvent", opts?.qp, data, opts).catch((e) => {
127501
- throw toKnownErr4(e);
128133
+ throw toKnownErr6(e);
127502
128134
  });
127503
128135
  }
127504
128136
  enableAccountInvites(data, opts) {
127505
128137
  return this._service.xrpc.call("com.atproto.admin.enableAccountInvites", opts?.qp, data, opts).catch((e) => {
127506
- throw toKnownErr5(e);
128138
+ throw toKnownErr7(e);
127507
128139
  });
127508
128140
  }
127509
128141
  getAccountInfo(params2, opts) {
127510
128142
  return this._service.xrpc.call("com.atproto.admin.getAccountInfo", params2, void 0, opts).catch((e) => {
127511
- throw toKnownErr6(e);
128143
+ throw toKnownErr8(e);
127512
128144
  });
127513
128145
  }
127514
128146
  getAccountInfos(params2, opts) {
127515
128147
  return this._service.xrpc.call("com.atproto.admin.getAccountInfos", params2, void 0, opts).catch((e) => {
127516
- throw toKnownErr7(e);
128148
+ throw toKnownErr9(e);
127517
128149
  });
127518
128150
  }
127519
128151
  getInviteCodes(params2, opts) {
127520
128152
  return this._service.xrpc.call("com.atproto.admin.getInviteCodes", params2, void 0, opts).catch((e) => {
127521
- throw toKnownErr8(e);
128153
+ throw toKnownErr10(e);
127522
128154
  });
127523
128155
  }
127524
128156
  getModerationEvent(params2, opts) {
127525
128157
  return this._service.xrpc.call("com.atproto.admin.getModerationEvent", params2, void 0, opts).catch((e) => {
127526
- throw toKnownErr9(e);
128158
+ throw toKnownErr11(e);
127527
128159
  });
127528
128160
  }
127529
128161
  getRecord(params2, opts) {
127530
128162
  return this._service.xrpc.call("com.atproto.admin.getRecord", params2, void 0, opts).catch((e) => {
127531
- throw toKnownErr10(e);
128163
+ throw toKnownErr12(e);
127532
128164
  });
127533
128165
  }
127534
128166
  getRepo(params2, opts) {
127535
128167
  return this._service.xrpc.call("com.atproto.admin.getRepo", params2, void 0, opts).catch((e) => {
127536
- throw toKnownErr11(e);
128168
+ throw toKnownErr13(e);
127537
128169
  });
127538
128170
  }
127539
128171
  getSubjectStatus(params2, opts) {
127540
128172
  return this._service.xrpc.call("com.atproto.admin.getSubjectStatus", params2, void 0, opts).catch((e) => {
127541
- throw toKnownErr12(e);
128173
+ throw toKnownErr14(e);
128174
+ });
128175
+ }
128176
+ listCommunicationTemplates(params2, opts) {
128177
+ return this._service.xrpc.call("com.atproto.admin.listCommunicationTemplates", params2, void 0, opts).catch((e) => {
128178
+ throw toKnownErr15(e);
127542
128179
  });
127543
128180
  }
127544
128181
  queryModerationEvents(params2, opts) {
127545
128182
  return this._service.xrpc.call("com.atproto.admin.queryModerationEvents", params2, void 0, opts).catch((e) => {
127546
- throw toKnownErr13(e);
128183
+ throw toKnownErr16(e);
127547
128184
  });
127548
128185
  }
127549
128186
  queryModerationStatuses(params2, opts) {
127550
128187
  return this._service.xrpc.call("com.atproto.admin.queryModerationStatuses", params2, void 0, opts).catch((e) => {
127551
- throw toKnownErr14(e);
128188
+ throw toKnownErr17(e);
127552
128189
  });
127553
128190
  }
127554
128191
  searchRepos(params2, opts) {
127555
128192
  return this._service.xrpc.call("com.atproto.admin.searchRepos", params2, void 0, opts).catch((e) => {
127556
- throw toKnownErr15(e);
128193
+ throw toKnownErr18(e);
127557
128194
  });
127558
128195
  }
127559
128196
  sendEmail(data, opts) {
127560
128197
  return this._service.xrpc.call("com.atproto.admin.sendEmail", opts?.qp, data, opts).catch((e) => {
127561
- throw toKnownErr16(e);
128198
+ throw toKnownErr19(e);
127562
128199
  });
127563
128200
  }
127564
128201
  updateAccountEmail(data, opts) {
127565
128202
  return this._service.xrpc.call("com.atproto.admin.updateAccountEmail", opts?.qp, data, opts).catch((e) => {
127566
- throw toKnownErr17(e);
128203
+ throw toKnownErr20(e);
127567
128204
  });
127568
128205
  }
127569
128206
  updateAccountHandle(data, opts) {
127570
128207
  return this._service.xrpc.call("com.atproto.admin.updateAccountHandle", opts?.qp, data, opts).catch((e) => {
127571
- throw toKnownErr18(e);
128208
+ throw toKnownErr21(e);
128209
+ });
128210
+ }
128211
+ updateCommunicationTemplate(data, opts) {
128212
+ return this._service.xrpc.call("com.atproto.admin.updateCommunicationTemplate", opts?.qp, data, opts).catch((e) => {
128213
+ throw toKnownErr22(e);
127572
128214
  });
127573
128215
  }
127574
128216
  updateSubjectStatus(data, opts) {
127575
128217
  return this._service.xrpc.call("com.atproto.admin.updateSubjectStatus", opts?.qp, data, opts).catch((e) => {
127576
- throw toKnownErr19(e);
128218
+ throw toKnownErr23(e);
127577
128219
  });
127578
128220
  }
127579
128221
  };
@@ -127583,12 +128225,12 @@ var ComAtprotoIdentityNS2 = class {
127583
128225
  }
127584
128226
  resolveHandle(params2, opts) {
127585
128227
  return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
127586
- throw toKnownErr20(e);
128228
+ throw toKnownErr24(e);
127587
128229
  });
127588
128230
  }
127589
128231
  updateHandle(data, opts) {
127590
128232
  return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
127591
- throw toKnownErr21(e);
128233
+ throw toKnownErr25(e);
127592
128234
  });
127593
128235
  }
127594
128236
  };
@@ -127598,7 +128240,7 @@ var ComAtprotoLabelNS2 = class {
127598
128240
  }
127599
128241
  queryLabels(params2, opts) {
127600
128242
  return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
127601
- throw toKnownErr22(e);
128243
+ throw toKnownErr26(e);
127602
128244
  });
127603
128245
  }
127604
128246
  };
@@ -127608,7 +128250,7 @@ var ComAtprotoModerationNS2 = class {
127608
128250
  }
127609
128251
  createReport(data, opts) {
127610
128252
  return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
127611
- throw toKnownErr23(e);
128253
+ throw toKnownErr27(e);
127612
128254
  });
127613
128255
  }
127614
128256
  };
@@ -127618,42 +128260,42 @@ var ComAtprotoRepoNS2 = class {
127618
128260
  }
127619
128261
  applyWrites(data, opts) {
127620
128262
  return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
127621
- throw toKnownErr24(e);
128263
+ throw toKnownErr28(e);
127622
128264
  });
127623
128265
  }
127624
128266
  createRecord(data, opts) {
127625
128267
  return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
127626
- throw toKnownErr25(e);
128268
+ throw toKnownErr29(e);
127627
128269
  });
127628
128270
  }
127629
128271
  deleteRecord(data, opts) {
127630
128272
  return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
127631
- throw toKnownErr26(e);
128273
+ throw toKnownErr30(e);
127632
128274
  });
127633
128275
  }
127634
128276
  describeRepo(params2, opts) {
127635
128277
  return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
127636
- throw toKnownErr27(e);
128278
+ throw toKnownErr31(e);
127637
128279
  });
127638
128280
  }
127639
128281
  getRecord(params2, opts) {
127640
128282
  return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
127641
- throw toKnownErr28(e);
128283
+ throw toKnownErr32(e);
127642
128284
  });
127643
128285
  }
127644
128286
  listRecords(params2, opts) {
127645
128287
  return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
127646
- throw toKnownErr29(e);
128288
+ throw toKnownErr33(e);
127647
128289
  });
127648
128290
  }
127649
128291
  putRecord(data, opts) {
127650
128292
  return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
127651
- throw toKnownErr30(e);
128293
+ throw toKnownErr34(e);
127652
128294
  });
127653
128295
  }
127654
128296
  uploadBlob(data, opts) {
127655
128297
  return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
127656
- throw toKnownErr31(e);
128298
+ throw toKnownErr35(e);
127657
128299
  });
127658
128300
  }
127659
128301
  };
@@ -127663,107 +128305,107 @@ var ComAtprotoServerNS2 = class {
127663
128305
  }
127664
128306
  confirmEmail(data, opts) {
127665
128307
  return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
127666
- throw toKnownErr32(e);
128308
+ throw toKnownErr36(e);
127667
128309
  });
127668
128310
  }
127669
128311
  createAccount(data, opts) {
127670
128312
  return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
127671
- throw toKnownErr33(e);
128313
+ throw toKnownErr37(e);
127672
128314
  });
127673
128315
  }
127674
128316
  createAppPassword(data, opts) {
127675
128317
  return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
127676
- throw toKnownErr34(e);
128318
+ throw toKnownErr38(e);
127677
128319
  });
127678
128320
  }
127679
128321
  createInviteCode(data, opts) {
127680
128322
  return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
127681
- throw toKnownErr35(e);
128323
+ throw toKnownErr39(e);
127682
128324
  });
127683
128325
  }
127684
128326
  createInviteCodes(data, opts) {
127685
128327
  return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
127686
- throw toKnownErr36(e);
128328
+ throw toKnownErr40(e);
127687
128329
  });
127688
128330
  }
127689
128331
  createSession(data, opts) {
127690
128332
  return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
127691
- throw toKnownErr37(e);
128333
+ throw toKnownErr41(e);
127692
128334
  });
127693
128335
  }
127694
128336
  deleteAccount(data, opts) {
127695
128337
  return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
127696
- throw toKnownErr38(e);
128338
+ throw toKnownErr42(e);
127697
128339
  });
127698
128340
  }
127699
128341
  deleteSession(data, opts) {
127700
128342
  return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
127701
- throw toKnownErr39(e);
128343
+ throw toKnownErr43(e);
127702
128344
  });
127703
128345
  }
127704
128346
  describeServer(params2, opts) {
127705
128347
  return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
127706
- throw toKnownErr40(e);
128348
+ throw toKnownErr44(e);
127707
128349
  });
127708
128350
  }
127709
128351
  getAccountInviteCodes(params2, opts) {
127710
128352
  return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
127711
- throw toKnownErr41(e);
128353
+ throw toKnownErr45(e);
127712
128354
  });
127713
128355
  }
127714
128356
  getSession(params2, opts) {
127715
128357
  return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
127716
- throw toKnownErr42(e);
128358
+ throw toKnownErr46(e);
127717
128359
  });
127718
128360
  }
127719
128361
  listAppPasswords(params2, opts) {
127720
128362
  return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
127721
- throw toKnownErr43(e);
128363
+ throw toKnownErr47(e);
127722
128364
  });
127723
128365
  }
127724
128366
  refreshSession(data, opts) {
127725
128367
  return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
127726
- throw toKnownErr44(e);
128368
+ throw toKnownErr48(e);
127727
128369
  });
127728
128370
  }
127729
128371
  requestAccountDelete(data, opts) {
127730
128372
  return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
127731
- throw toKnownErr45(e);
128373
+ throw toKnownErr49(e);
127732
128374
  });
127733
128375
  }
127734
128376
  requestEmailConfirmation(data, opts) {
127735
128377
  return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
127736
- throw toKnownErr46(e);
128378
+ throw toKnownErr50(e);
127737
128379
  });
127738
128380
  }
127739
128381
  requestEmailUpdate(data, opts) {
127740
128382
  return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
127741
- throw toKnownErr47(e);
128383
+ throw toKnownErr51(e);
127742
128384
  });
127743
128385
  }
127744
128386
  requestPasswordReset(data, opts) {
127745
128387
  return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
127746
- throw toKnownErr48(e);
128388
+ throw toKnownErr52(e);
127747
128389
  });
127748
128390
  }
127749
128391
  reserveSigningKey(data, opts) {
127750
128392
  return this._service.xrpc.call("com.atproto.server.reserveSigningKey", opts?.qp, data, opts).catch((e) => {
127751
- throw toKnownErr49(e);
128393
+ throw toKnownErr53(e);
127752
128394
  });
127753
128395
  }
127754
128396
  resetPassword(data, opts) {
127755
128397
  return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
127756
- throw toKnownErr50(e);
128398
+ throw toKnownErr54(e);
127757
128399
  });
127758
128400
  }
127759
128401
  revokeAppPassword(data, opts) {
127760
128402
  return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
127761
- throw toKnownErr51(e);
128403
+ throw toKnownErr55(e);
127762
128404
  });
127763
128405
  }
127764
128406
  updateEmail(data, opts) {
127765
128407
  return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
127766
- throw toKnownErr52(e);
128408
+ throw toKnownErr56(e);
127767
128409
  });
127768
128410
  }
127769
128411
  };
@@ -127773,57 +128415,57 @@ var ComAtprotoSyncNS2 = class {
127773
128415
  }
127774
128416
  getBlob(params2, opts) {
127775
128417
  return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
127776
- throw toKnownErr53(e);
128418
+ throw toKnownErr57(e);
127777
128419
  });
127778
128420
  }
127779
128421
  getBlocks(params2, opts) {
127780
128422
  return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
127781
- throw toKnownErr54(e);
128423
+ throw toKnownErr58(e);
127782
128424
  });
127783
128425
  }
127784
128426
  getCheckout(params2, opts) {
127785
128427
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
127786
- throw toKnownErr55(e);
128428
+ throw toKnownErr59(e);
127787
128429
  });
127788
128430
  }
127789
128431
  getHead(params2, opts) {
127790
128432
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
127791
- throw toKnownErr56(e);
128433
+ throw toKnownErr60(e);
127792
128434
  });
127793
128435
  }
127794
128436
  getLatestCommit(params2, opts) {
127795
128437
  return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
127796
- throw toKnownErr57(e);
128438
+ throw toKnownErr61(e);
127797
128439
  });
127798
128440
  }
127799
128441
  getRecord(params2, opts) {
127800
128442
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
127801
- throw toKnownErr58(e);
128443
+ throw toKnownErr62(e);
127802
128444
  });
127803
128445
  }
127804
128446
  getRepo(params2, opts) {
127805
128447
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
127806
- throw toKnownErr59(e);
128448
+ throw toKnownErr63(e);
127807
128449
  });
127808
128450
  }
127809
128451
  listBlobs(params2, opts) {
127810
128452
  return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
127811
- throw toKnownErr60(e);
128453
+ throw toKnownErr64(e);
127812
128454
  });
127813
128455
  }
127814
128456
  listRepos(params2, opts) {
127815
128457
  return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
127816
- throw toKnownErr61(e);
128458
+ throw toKnownErr65(e);
127817
128459
  });
127818
128460
  }
127819
128461
  notifyOfUpdate(data, opts) {
127820
128462
  return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
127821
- throw toKnownErr62(e);
128463
+ throw toKnownErr66(e);
127822
128464
  });
127823
128465
  }
127824
128466
  requestCrawl(data, opts) {
127825
128467
  return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
127826
- throw toKnownErr63(e);
128468
+ throw toKnownErr67(e);
127827
128469
  });
127828
128470
  }
127829
128471
  };
@@ -127833,27 +128475,27 @@ var ComAtprotoTempNS2 = class {
127833
128475
  }
127834
128476
  fetchLabels(params2, opts) {
127835
128477
  return this._service.xrpc.call("com.atproto.temp.fetchLabels", params2, void 0, opts).catch((e) => {
127836
- throw toKnownErr64(e);
128478
+ throw toKnownErr68(e);
127837
128479
  });
127838
128480
  }
127839
128481
  importRepo(data, opts) {
127840
128482
  return this._service.xrpc.call("com.atproto.temp.importRepo", opts?.qp, data, opts).catch((e) => {
127841
- throw toKnownErr65(e);
128483
+ throw toKnownErr69(e);
127842
128484
  });
127843
128485
  }
127844
128486
  pushBlob(data, opts) {
127845
128487
  return this._service.xrpc.call("com.atproto.temp.pushBlob", opts?.qp, data, opts).catch((e) => {
127846
- throw toKnownErr66(e);
128488
+ throw toKnownErr70(e);
127847
128489
  });
127848
128490
  }
127849
128491
  requestPhoneVerification(data, opts) {
127850
128492
  return this._service.xrpc.call("com.atproto.temp.requestPhoneVerification", opts?.qp, data, opts).catch((e) => {
127851
- throw toKnownErr67(e);
128493
+ throw toKnownErr71(e);
127852
128494
  });
127853
128495
  }
127854
128496
  transferAccount(data, opts) {
127855
128497
  return this._service.xrpc.call("com.atproto.temp.transferAccount", opts?.qp, data, opts).catch((e) => {
127856
- throw toKnownErr68(e);
128498
+ throw toKnownErr72(e);
127857
128499
  });
127858
128500
  }
127859
128501
  };
@@ -127882,37 +128524,37 @@ var AppBskyActorNS2 = class {
127882
128524
  }
127883
128525
  getPreferences(params2, opts) {
127884
128526
  return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
127885
- throw toKnownErr69(e);
128527
+ throw toKnownErr73(e);
127886
128528
  });
127887
128529
  }
127888
128530
  getProfile(params2, opts) {
127889
128531
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
127890
- throw toKnownErr70(e);
128532
+ throw toKnownErr74(e);
127891
128533
  });
127892
128534
  }
127893
128535
  getProfiles(params2, opts) {
127894
128536
  return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
127895
- throw toKnownErr71(e);
128537
+ throw toKnownErr75(e);
127896
128538
  });
127897
128539
  }
127898
128540
  getSuggestions(params2, opts) {
127899
128541
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
127900
- throw toKnownErr72(e);
128542
+ throw toKnownErr76(e);
127901
128543
  });
127902
128544
  }
127903
128545
  putPreferences(data, opts) {
127904
128546
  return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
127905
- throw toKnownErr73(e);
128547
+ throw toKnownErr77(e);
127906
128548
  });
127907
128549
  }
127908
128550
  searchActors(params2, opts) {
127909
128551
  return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
127910
- throw toKnownErr74(e);
128552
+ throw toKnownErr78(e);
127911
128553
  });
127912
128554
  }
127913
128555
  searchActorsTypeahead(params2, opts) {
127914
128556
  return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
127915
- throw toKnownErr75(e);
128557
+ throw toKnownErr79(e);
127916
128558
  });
127917
128559
  }
127918
128560
  };
@@ -127959,82 +128601,82 @@ var AppBskyFeedNS2 = class {
127959
128601
  }
127960
128602
  describeFeedGenerator(params2, opts) {
127961
128603
  return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
127962
- throw toKnownErr76(e);
128604
+ throw toKnownErr80(e);
127963
128605
  });
127964
128606
  }
127965
128607
  getActorFeeds(params2, opts) {
127966
128608
  return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
127967
- throw toKnownErr77(e);
128609
+ throw toKnownErr81(e);
127968
128610
  });
127969
128611
  }
127970
128612
  getActorLikes(params2, opts) {
127971
128613
  return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
127972
- throw toKnownErr78(e);
128614
+ throw toKnownErr82(e);
127973
128615
  });
127974
128616
  }
127975
128617
  getAuthorFeed(params2, opts) {
127976
128618
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
127977
- throw toKnownErr79(e);
128619
+ throw toKnownErr83(e);
127978
128620
  });
127979
128621
  }
127980
128622
  getFeed(params2, opts) {
127981
128623
  return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
127982
- throw toKnownErr80(e);
128624
+ throw toKnownErr84(e);
127983
128625
  });
127984
128626
  }
127985
128627
  getFeedGenerator(params2, opts) {
127986
128628
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
127987
- throw toKnownErr81(e);
128629
+ throw toKnownErr85(e);
127988
128630
  });
127989
128631
  }
127990
128632
  getFeedGenerators(params2, opts) {
127991
128633
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
127992
- throw toKnownErr82(e);
128634
+ throw toKnownErr86(e);
127993
128635
  });
127994
128636
  }
127995
128637
  getFeedSkeleton(params2, opts) {
127996
128638
  return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
127997
- throw toKnownErr83(e);
128639
+ throw toKnownErr87(e);
127998
128640
  });
127999
128641
  }
128000
128642
  getLikes(params2, opts) {
128001
128643
  return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
128002
- throw toKnownErr84(e);
128644
+ throw toKnownErr88(e);
128003
128645
  });
128004
128646
  }
128005
128647
  getListFeed(params2, opts) {
128006
128648
  return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
128007
- throw toKnownErr85(e);
128649
+ throw toKnownErr89(e);
128008
128650
  });
128009
128651
  }
128010
128652
  getPostThread(params2, opts) {
128011
128653
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
128012
- throw toKnownErr86(e);
128654
+ throw toKnownErr90(e);
128013
128655
  });
128014
128656
  }
128015
128657
  getPosts(params2, opts) {
128016
128658
  return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
128017
- throw toKnownErr87(e);
128659
+ throw toKnownErr91(e);
128018
128660
  });
128019
128661
  }
128020
128662
  getRepostedBy(params2, opts) {
128021
128663
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
128022
- throw toKnownErr88(e);
128664
+ throw toKnownErr92(e);
128023
128665
  });
128024
128666
  }
128025
128667
  getSuggestedFeeds(params2, opts) {
128026
128668
  return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
128027
- throw toKnownErr89(e);
128669
+ throw toKnownErr93(e);
128028
128670
  });
128029
128671
  }
128030
128672
  getTimeline(params2, opts) {
128031
128673
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
128032
- throw toKnownErr90(e);
128674
+ throw toKnownErr94(e);
128033
128675
  });
128034
128676
  }
128035
128677
  searchPosts(params2, opts) {
128036
128678
  return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
128037
- throw toKnownErr91(e);
128679
+ throw toKnownErr95(e);
128038
128680
  });
128039
128681
  }
128040
128682
  };
@@ -128184,67 +128826,67 @@ var AppBskyGraphNS2 = class {
128184
128826
  }
128185
128827
  getBlocks(params2, opts) {
128186
128828
  return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
128187
- throw toKnownErr92(e);
128829
+ throw toKnownErr96(e);
128188
128830
  });
128189
128831
  }
128190
128832
  getFollowers(params2, opts) {
128191
128833
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
128192
- throw toKnownErr93(e);
128834
+ throw toKnownErr97(e);
128193
128835
  });
128194
128836
  }
128195
128837
  getFollows(params2, opts) {
128196
128838
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
128197
- throw toKnownErr94(e);
128839
+ throw toKnownErr98(e);
128198
128840
  });
128199
128841
  }
128200
128842
  getList(params2, opts) {
128201
128843
  return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
128202
- throw toKnownErr95(e);
128844
+ throw toKnownErr99(e);
128203
128845
  });
128204
128846
  }
128205
128847
  getListBlocks(params2, opts) {
128206
128848
  return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
128207
- throw toKnownErr96(e);
128849
+ throw toKnownErr100(e);
128208
128850
  });
128209
128851
  }
128210
128852
  getListMutes(params2, opts) {
128211
128853
  return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
128212
- throw toKnownErr97(e);
128854
+ throw toKnownErr101(e);
128213
128855
  });
128214
128856
  }
128215
128857
  getLists(params2, opts) {
128216
128858
  return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
128217
- throw toKnownErr98(e);
128859
+ throw toKnownErr102(e);
128218
128860
  });
128219
128861
  }
128220
128862
  getMutes(params2, opts) {
128221
128863
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
128222
- throw toKnownErr99(e);
128864
+ throw toKnownErr103(e);
128223
128865
  });
128224
128866
  }
128225
128867
  getSuggestedFollowsByActor(params2, opts) {
128226
128868
  return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
128227
- throw toKnownErr100(e);
128869
+ throw toKnownErr104(e);
128228
128870
  });
128229
128871
  }
128230
128872
  muteActor(data, opts) {
128231
128873
  return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
128232
- throw toKnownErr101(e);
128874
+ throw toKnownErr105(e);
128233
128875
  });
128234
128876
  }
128235
128877
  muteActorList(data, opts) {
128236
128878
  return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
128237
- throw toKnownErr102(e);
128879
+ throw toKnownErr106(e);
128238
128880
  });
128239
128881
  }
128240
128882
  unmuteActor(data, opts) {
128241
128883
  return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
128242
- throw toKnownErr103(e);
128884
+ throw toKnownErr107(e);
128243
128885
  });
128244
128886
  }
128245
128887
  unmuteActorList(data, opts) {
128246
128888
  return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
128247
- throw toKnownErr104(e);
128889
+ throw toKnownErr108(e);
128248
128890
  });
128249
128891
  }
128250
128892
  };
@@ -128389,22 +129031,22 @@ var AppBskyNotificationNS2 = class {
128389
129031
  }
128390
129032
  getUnreadCount(params2, opts) {
128391
129033
  return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
128392
- throw toKnownErr105(e);
129034
+ throw toKnownErr109(e);
128393
129035
  });
128394
129036
  }
128395
129037
  listNotifications(params2, opts) {
128396
129038
  return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
128397
- throw toKnownErr106(e);
129039
+ throw toKnownErr110(e);
128398
129040
  });
128399
129041
  }
128400
129042
  registerPush(data, opts) {
128401
129043
  return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
128402
- throw toKnownErr107(e);
129044
+ throw toKnownErr111(e);
128403
129045
  });
128404
129046
  }
128405
129047
  updateSeen(data, opts) {
128406
129048
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
128407
- throw toKnownErr108(e);
129049
+ throw toKnownErr112(e);
128408
129050
  });
128409
129051
  }
128410
129052
  };
@@ -128419,22 +129061,27 @@ var AppBskyUnspeccedNS2 = class {
128419
129061
  }
128420
129062
  getPopularFeedGenerators(params2, opts) {
128421
129063
  return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
128422
- throw toKnownErr109(e);
129064
+ throw toKnownErr113(e);
129065
+ });
129066
+ }
129067
+ getTaggedSuggestions(params2, opts) {
129068
+ return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
129069
+ throw toKnownErr114(e);
128423
129070
  });
128424
129071
  }
128425
129072
  getTimelineSkeleton(params2, opts) {
128426
129073
  return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
128427
- throw toKnownErr110(e);
129074
+ throw toKnownErr115(e);
128428
129075
  });
128429
129076
  }
128430
129077
  searchActorsSkeleton(params2, opts) {
128431
129078
  return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
128432
- throw toKnownErr111(e);
129079
+ throw toKnownErr116(e);
128433
129080
  });
128434
129081
  }
128435
129082
  searchPostsSkeleton(params2, opts) {
128436
129083
  return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
128437
- throw toKnownErr112(e);
129084
+ throw toKnownErr117(e);
128438
129085
  });
128439
129086
  }
128440
129087
  };
@@ -128467,12 +129114,7 @@ var _AtpAgent = class {
128467
129114
  }
128468
129115
  async createAccount(opts) {
128469
129116
  try {
128470
- const res = await this.api.com.atproto.server.createAccount({
128471
- handle: opts.handle,
128472
- password: opts.password,
128473
- email: opts.email,
128474
- inviteCode: opts.inviteCode
128475
- });
129117
+ const res = await this.api.com.atproto.server.createAccount(opts);
128476
129118
  this.session = {
128477
129119
  accessJwt: res.data.accessJwt,
128478
129120
  refreshJwt: res.data.refreshJwt,
@@ -129583,7 +130225,8 @@ var import_stream8 = require("stream");
129583
130225
  // src/db/migrations/index.ts
129584
130226
  var migrations_exports = {};
129585
130227
  __export(migrations_exports, {
129586
- _20231219T205730722Z: () => T205730722Z_init_exports
130228
+ _20231219T205730722Z: () => T205730722Z_init_exports,
130229
+ _20240116T085607200Z: () => T085607200Z_communication_template_exports
129587
130230
  });
129588
130231
 
129589
130232
  // src/db/migrations/20231219T205730722Z-init.ts
@@ -129625,6 +130268,22 @@ async function down(db) {
129625
130268
  await db.schema.dropTable("blob_push_event").execute();
129626
130269
  }
129627
130270
 
130271
+ // src/db/migrations/20240116T085607200Z-communication-template.ts
130272
+ var T085607200Z_communication_template_exports = {};
130273
+ __export(T085607200Z_communication_template_exports, {
130274
+ down: () => down2,
130275
+ up: () => up2
130276
+ });
130277
+ async function up2(db) {
130278
+ await db.schema.createTable("communication_template").addColumn("id", "serial", (col) => col.primaryKey()).addColumn("name", "varchar", (col) => col.notNull()).addColumn("contentMarkdown", "varchar", (col) => col.notNull()).addColumn("subject", "varchar").addColumn("disabled", "boolean", (col) => col.defaultTo(false).notNull()).addColumn("createdAt", "timestamptz").addColumn("updatedAt", "timestamptz").addColumn("lastUpdatedBy", "varchar", (col) => col.notNull()).addUniqueConstraint("communication_template_unique_name", [
130279
+ "name",
130280
+ "disabled"
130281
+ ]).execute();
130282
+ }
130283
+ async function down2(db) {
130284
+ await db.schema.dropTable("communication_template");
130285
+ }
130286
+
129628
130287
  // src/db/migrations/provider.ts
129629
130288
  var CtxMigrationProvider = class {
129630
130289
  constructor(migrations, ctx) {
@@ -131311,6 +131970,73 @@ var OzoneDaemon = class {
131311
131970
  }
131312
131971
  };
131313
131972
 
131973
+ // src/communication-service/template.ts
131974
+ var CommunicationTemplateService = class {
131975
+ constructor(db) {
131976
+ this.db = db;
131977
+ }
131978
+ static creator() {
131979
+ return (db) => new CommunicationTemplateService(db);
131980
+ }
131981
+ async list() {
131982
+ const list = await this.db.db.selectFrom("communication_template").selectAll().execute();
131983
+ return list;
131984
+ }
131985
+ async create({
131986
+ name: name2,
131987
+ contentMarkdown,
131988
+ subject,
131989
+ disabled,
131990
+ updatedAt,
131991
+ createdAt,
131992
+ lastUpdatedBy
131993
+ }) {
131994
+ const newTemplate = await this.db.db.insertInto("communication_template").values({
131995
+ name: name2,
131996
+ contentMarkdown,
131997
+ subject,
131998
+ disabled,
131999
+ lastUpdatedBy,
132000
+ updatedAt: updatedAt || new Date(),
132001
+ createdAt: createdAt || new Date()
132002
+ }).returningAll().executeTakeFirstOrThrow();
132003
+ return newTemplate;
132004
+ }
132005
+ async update(id, {
132006
+ name: name2,
132007
+ contentMarkdown,
132008
+ subject,
132009
+ disabled,
132010
+ updatedAt,
132011
+ lastUpdatedBy
132012
+ }) {
132013
+ const updatedTemplate = await this.db.db.updateTable("communication_template").where("id", "=", id).set({
132014
+ name: name2,
132015
+ contentMarkdown,
132016
+ subject,
132017
+ disabled,
132018
+ lastUpdatedBy,
132019
+ updatedAt: updatedAt || new Date()
132020
+ }).returningAll().executeTakeFirstOrThrow();
132021
+ return updatedTemplate;
132022
+ }
132023
+ async delete(id) {
132024
+ await this.db.db.deleteFrom("communication_template").where("id", "=", id).execute();
132025
+ }
132026
+ view(template) {
132027
+ return {
132028
+ id: `${template.id}`,
132029
+ name: template.name,
132030
+ contentMarkdown: template.contentMarkdown,
132031
+ disabled: template.disabled,
132032
+ subject: template.subject || void 0,
132033
+ createdAt: template.createdAt.toISOString(),
132034
+ updatedAt: template.updatedAt.toISOString(),
132035
+ lastUpdatedBy: template.lastUpdatedBy
132036
+ };
132037
+ }
132038
+ };
132039
+
131314
132040
  // src/context.ts
131315
132041
  var AppContext = class {
131316
132042
  constructor(opts, secrets) {
@@ -131337,6 +132063,7 @@ var AppContext = class {
131337
132063
  pds: cfg.pds ?? void 0
131338
132064
  });
131339
132065
  const modService = ModerationService.creator(backgroundQueue, eventPusher, appviewAgent, appviewAuth);
132066
+ const communicationTemplateService = CommunicationTemplateService.creator();
131340
132067
  const idResolver = new IdResolver({
131341
132068
  plcUrl: cfg.identity.plcUrl
131342
132069
  });
@@ -131344,6 +132071,7 @@ var AppContext = class {
131344
132071
  db,
131345
132072
  cfg,
131346
132073
  modService,
132074
+ communicationTemplateService,
131347
132075
  appviewAgent,
131348
132076
  pdsAgent,
131349
132077
  signingKey,
@@ -131365,6 +132093,9 @@ var AppContext = class {
131365
132093
  get modService() {
131366
132094
  return this.opts.modService;
131367
132095
  }
132096
+ get communicationTemplateService() {
132097
+ return this.opts.communicationTemplateService;
132098
+ }
131368
132099
  get appviewAgent() {
131369
132100
  return this.opts.appviewAgent;
131370
132101
  }