@atproto/api 0.27.0 → 0.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/client/index.d.ts +6 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +10 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +588 -58
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +298 -29
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts +2 -0
  11. package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/notification/getGroupedNotifications.js.map +1 -1
  13. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.d.ts +33 -0
  14. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.d.ts.map +1 -0
  15. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.js +21 -0
  16. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.js.map +1 -0
  17. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +37 -5
  18. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -1
  19. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js +28 -0
  20. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -1
  21. package/dist/client/types/tools/ozone/queue/defs.d.ts +26 -6
  22. package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -1
  23. package/dist/client/types/tools/ozone/queue/defs.js.map +1 -1
  24. package/dist/client/types/tools/ozone/safelink/addRule.d.ts +5 -0
  25. package/dist/client/types/tools/ozone/safelink/addRule.d.ts.map +1 -1
  26. package/dist/client/types/tools/ozone/safelink/addRule.js +7 -0
  27. package/dist/client/types/tools/ozone/safelink/addRule.js.map +1 -1
  28. package/dist/client/types/tools/ozone/safelink/defs.d.ts +5 -1
  29. package/dist/client/types/tools/ozone/safelink/defs.d.ts.map +1 -1
  30. package/dist/client/types/tools/ozone/safelink/defs.js.map +1 -1
  31. package/dist/client/types/tools/ozone/safelink/removeRule.d.ts +2 -0
  32. package/dist/client/types/tools/ozone/safelink/removeRule.d.ts.map +1 -1
  33. package/dist/client/types/tools/ozone/safelink/removeRule.js.map +1 -1
  34. package/dist/client/types/tools/ozone/safelink/syncSource.d.ts +40 -0
  35. package/dist/client/types/tools/ozone/safelink/syncSource.d.ts.map +1 -0
  36. package/dist/client/types/tools/ozone/safelink/syncSource.js +21 -0
  37. package/dist/client/types/tools/ozone/safelink/syncSource.js.map +1 -0
  38. package/dist/client/types/tools/ozone/safelink/updateRule.d.ts +5 -0
  39. package/dist/client/types/tools/ozone/safelink/updateRule.d.ts.map +1 -1
  40. package/dist/client/types/tools/ozone/safelink/updateRule.js +7 -0
  41. package/dist/client/types/tools/ozone/safelink/updateRule.js.map +1 -1
  42. package/package.json +14 -8
@@ -8485,6 +8485,11 @@ export const schemaDict = {
8485
8485
  type: 'string',
8486
8486
  format: 'at-uri',
8487
8487
  },
8488
+ parent: {
8489
+ type: 'string',
8490
+ format: 'at-uri',
8491
+ description: 'The post this one replies to, if it is a reply.',
8492
+ },
8488
8493
  },
8489
8494
  },
8490
8495
  generatorLikeGroup: {
@@ -9475,19 +9480,76 @@ export const schemaDict = {
9475
9480
  },
9476
9481
  },
9477
9482
  },
9483
+ AppBskyUnspeccedGetAtmosphereExploreArticleRecommendations: {
9484
+ lexicon: 1,
9485
+ id: 'app.bsky.unspecced.getAtmosphereExploreArticleRecommendations',
9486
+ defs: {
9487
+ main: {
9488
+ type: 'query',
9489
+ description: 'Get a skeleton of recommended Atmosphere Explore articles. Intended to be called and hydrated by app.bsky.unspecced.getAtmosphereExploreTab',
9490
+ parameters: {
9491
+ type: 'params',
9492
+ properties: {
9493
+ viewer: {
9494
+ type: 'string',
9495
+ format: 'did',
9496
+ description: 'DID of the account making the request (not included for public/unauthenticated queries).',
9497
+ },
9498
+ limit: {
9499
+ type: 'integer',
9500
+ minimum: 1,
9501
+ maximum: 100,
9502
+ default: 25,
9503
+ },
9504
+ },
9505
+ },
9506
+ output: {
9507
+ encoding: 'application/json',
9508
+ schema: {
9509
+ type: 'object',
9510
+ required: ['articles', 'recIdStr'],
9511
+ properties: {
9512
+ articles: {
9513
+ type: 'array',
9514
+ maxLength: 100,
9515
+ items: {
9516
+ type: 'ref',
9517
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreArticleRecommendations#article',
9518
+ },
9519
+ },
9520
+ recIdStr: {
9521
+ type: 'string',
9522
+ description: 'Snowflake for this recommendation, use when submitting recommendation events.',
9523
+ },
9524
+ },
9525
+ },
9526
+ },
9527
+ },
9528
+ article: {
9529
+ type: 'object',
9530
+ required: ['uri'],
9531
+ properties: {
9532
+ uri: {
9533
+ type: 'string',
9534
+ format: 'at-uri',
9535
+ },
9536
+ },
9537
+ },
9538
+ },
9539
+ },
9478
9540
  AppBskyUnspeccedGetAtmosphereExploreTab: {
9479
9541
  lexicon: 1,
9480
9542
  id: 'app.bsky.unspecced.getAtmosphereExploreTab',
9481
9543
  defs: {
9482
9544
  main: {
9483
9545
  type: 'query',
9484
- description: 'Get curated Atmosphere Explore content. Authentication is optional; authenticated requests include viewer-specific profile state.',
9546
+ description: 'Get Atmosphere Explore content. Articles are recommended when algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Authentication is optional; authenticated requests include viewer-specific profile state.',
9485
9547
  parameters: {
9486
9548
  type: 'params',
9487
9549
  properties: {
9488
9550
  langs: {
9489
9551
  type: 'array',
9490
- description: 'Preferred languages. Currently ignored.',
9552
+ description: 'Preferred languages for article recommendations when algorithmic recommendations are enabled. Ignored otherwise.',
9491
9553
  items: {
9492
9554
  type: 'string',
9493
9555
  format: 'language',
@@ -9520,32 +9582,20 @@ export const schemaDict = {
9520
9582
  ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#announcementBanner',
9521
9583
  },
9522
9584
  articles: {
9523
- type: 'array',
9524
- items: {
9525
- type: 'ref',
9526
- ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#articleItem',
9527
- },
9585
+ type: 'ref',
9586
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#articleList',
9528
9587
  },
9529
9588
  publications: {
9530
- type: 'array',
9531
- items: {
9532
- type: 'ref',
9533
- ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#publicationItem',
9534
- },
9589
+ type: 'ref',
9590
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#publicationList',
9535
9591
  },
9536
9592
  photos: {
9537
- type: 'array',
9538
- items: {
9539
- type: 'ref',
9540
- ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#galleryItem',
9541
- },
9593
+ type: 'ref',
9594
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#galleryList',
9542
9595
  },
9543
9596
  livestreams: {
9544
- type: 'array',
9545
- items: {
9546
- type: 'ref',
9547
- ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#livestreamItem',
9548
- },
9597
+ type: 'ref',
9598
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#livestreamList',
9549
9599
  },
9550
9600
  apps: {
9551
9601
  type: 'array',
@@ -9559,6 +9609,74 @@ export const schemaDict = {
9559
9609
  },
9560
9610
  },
9561
9611
  },
9612
+ articleList: {
9613
+ type: 'object',
9614
+ required: ['items'],
9615
+ properties: {
9616
+ items: {
9617
+ type: 'array',
9618
+ items: {
9619
+ type: 'ref',
9620
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#articleItem',
9621
+ },
9622
+ },
9623
+ recIdStr: {
9624
+ type: 'string',
9625
+ description: "Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended.",
9626
+ },
9627
+ },
9628
+ },
9629
+ publicationList: {
9630
+ type: 'object',
9631
+ required: ['items'],
9632
+ properties: {
9633
+ items: {
9634
+ type: 'array',
9635
+ items: {
9636
+ type: 'ref',
9637
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#publicationItem',
9638
+ },
9639
+ },
9640
+ recIdStr: {
9641
+ type: 'string',
9642
+ description: "Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended.",
9643
+ },
9644
+ },
9645
+ },
9646
+ galleryList: {
9647
+ type: 'object',
9648
+ required: ['items'],
9649
+ properties: {
9650
+ items: {
9651
+ type: 'array',
9652
+ items: {
9653
+ type: 'ref',
9654
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#galleryItem',
9655
+ },
9656
+ },
9657
+ recIdStr: {
9658
+ type: 'string',
9659
+ description: "Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended.",
9660
+ },
9661
+ },
9662
+ },
9663
+ livestreamList: {
9664
+ type: 'object',
9665
+ required: ['items'],
9666
+ properties: {
9667
+ items: {
9668
+ type: 'array',
9669
+ items: {
9670
+ type: 'ref',
9671
+ ref: 'lex:app.bsky.unspecced.getAtmosphereExploreTab#livestreamItem',
9672
+ },
9673
+ },
9674
+ recIdStr: {
9675
+ type: 'string',
9676
+ description: "Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended.",
9677
+ },
9678
+ },
9679
+ },
9562
9680
  articleItem: {
9563
9681
  type: 'object',
9564
9682
  required: ['featured', 'view'],
@@ -25535,30 +25653,70 @@ export const schemaDict = {
25535
25653
  maximum: 100,
25536
25654
  description: 'Percent of reports meeting their closure target.',
25537
25655
  },
25656
+ closedCount: {
25657
+ type: 'integer',
25658
+ description: 'Number of reports whose current closure falls within this UTC calendar day.',
25659
+ },
25538
25660
  actionedCount: {
25539
25661
  type: 'integer',
25540
- description: "Number of reports in 'closed' status",
25662
+ description: 'Number of closures whose last report action is label, tag, or takedown.',
25663
+ },
25664
+ acknowledgedCount: {
25665
+ type: 'integer',
25666
+ description: 'Number of closures whose last report action is not label, tag, or takedown.',
25541
25667
  },
25542
25668
  escalatedCount: {
25543
25669
  type: 'integer',
25544
- description: "Number of reports in 'escalated' status",
25670
+ description: 'Number of report escalation events during this UTC calendar day.',
25545
25671
  },
25546
25672
  inboundCount: {
25547
25673
  type: 'integer',
25548
- description: 'Reports received in this queue in the last 24 hours.',
25674
+ description: 'Reports received in this queue during this UTC calendar day.',
25675
+ },
25676
+ labelActionCount: {
25677
+ type: 'integer',
25678
+ description: 'Closures whose last report action is a label event.',
25679
+ },
25680
+ tagActionCount: {
25681
+ type: 'integer',
25682
+ description: 'Closures whose last report action is a tag event.',
25683
+ },
25684
+ takedownActionCount: {
25685
+ type: 'integer',
25686
+ description: 'Closures whose last report action is a takedown event.',
25687
+ },
25688
+ ahtDurationSec: {
25689
+ type: 'integer',
25690
+ description: 'Sum of report assignment-to-close seconds.',
25691
+ },
25692
+ ahtSampleCount: {
25693
+ type: 'integer',
25694
+ description: 'Number of assigned closed-report samples in ahtDurationSec.',
25695
+ },
25696
+ resolutionDurationSec: {
25697
+ type: 'integer',
25698
+ description: 'Sum of report creation-to-close seconds.',
25699
+ },
25700
+ resolutionSampleCount: {
25701
+ type: 'integer',
25702
+ description: 'Number of closed-report samples in resolutionDurationSec.',
25549
25703
  },
25550
25704
  actionRate: {
25551
25705
  type: 'integer',
25552
- description: 'Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0.',
25706
+ description: 'Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer.',
25553
25707
  },
25554
25708
  avgHandlingTimeSec: {
25555
25709
  type: 'integer',
25556
- description: 'Average time in seconds from report creation to close, for reports closed in this period.',
25710
+ description: 'Average handling time in seconds from report assignment to close.',
25711
+ },
25712
+ avgResolutionTimeSec: {
25713
+ type: 'integer',
25714
+ description: 'Average resolution time in seconds from report creation to close.',
25557
25715
  },
25558
25716
  lastUpdated: {
25559
25717
  type: 'string',
25560
25718
  format: 'datetime',
25561
- description: 'When these statistics were last computed',
25719
+ description: 'When these statistics were last computed.',
25562
25720
  },
25563
25721
  },
25564
25722
  },
@@ -27513,6 +27671,12 @@ export const schemaDict = {
27513
27671
  type: 'ref',
27514
27672
  ref: 'lex:tools.ozone.safelink.defs#reasonType',
27515
27673
  },
27674
+ source: {
27675
+ type: 'string',
27676
+ maxLength: 128,
27677
+ default: 'ozone/default',
27678
+ description: 'Source of the rule',
27679
+ },
27516
27680
  comment: {
27517
27681
  type: 'string',
27518
27682
  description: 'Optional comment about the decision',
@@ -27541,6 +27705,10 @@ export const schemaDict = {
27541
27705
  name: 'RuleAlreadyExists',
27542
27706
  description: 'A rule for this URL/domain already exists',
27543
27707
  },
27708
+ {
27709
+ name: 'RuleSourceConflict',
27710
+ description: 'A rule for this URL/domain is owned by another source',
27711
+ },
27544
27712
  ],
27545
27713
  },
27546
27714
  },
@@ -27587,6 +27755,11 @@ export const schemaDict = {
27587
27755
  type: 'ref',
27588
27756
  ref: 'lex:tools.ozone.safelink.defs#reasonType',
27589
27757
  },
27758
+ source: {
27759
+ type: 'string',
27760
+ default: 'ozone/default',
27761
+ description: 'Source of the decision',
27762
+ },
27590
27763
  createdBy: {
27591
27764
  type: 'string',
27592
27765
  format: 'did',
@@ -27620,7 +27793,7 @@ export const schemaDict = {
27620
27793
  },
27621
27794
  urlRule: {
27622
27795
  type: 'object',
27623
- description: 'Input for creating a URL safety rule',
27796
+ description: 'An active URL safety rule',
27624
27797
  required: [
27625
27798
  'url',
27626
27799
  'pattern',
@@ -27647,6 +27820,11 @@ export const schemaDict = {
27647
27820
  type: 'ref',
27648
27821
  ref: 'lex:tools.ozone.safelink.defs#reasonType',
27649
27822
  },
27823
+ source: {
27824
+ type: 'string',
27825
+ default: 'ozone/default',
27826
+ description: 'Source of the rule',
27827
+ },
27650
27828
  comment: {
27651
27829
  type: 'string',
27652
27830
  description: 'Optional comment about the decision',
@@ -27839,6 +28017,12 @@ export const schemaDict = {
27839
28017
  type: 'ref',
27840
28018
  ref: 'lex:tools.ozone.safelink.defs#patternType',
27841
28019
  },
28020
+ source: {
28021
+ type: 'string',
28022
+ maxLength: 128,
28023
+ default: 'ozone/default',
28024
+ description: 'Source of the rule to remove',
28025
+ },
27842
28026
  comment: {
27843
28027
  type: 'string',
27844
28028
  description: 'Optional comment about why the rule is being removed',
@@ -27867,6 +28051,79 @@ export const schemaDict = {
27867
28051
  },
27868
28052
  },
27869
28053
  },
28054
+ ToolsOzoneSafelinkSyncSource: {
28055
+ lexicon: 1,
28056
+ id: 'tools.ozone.safelink.syncSource',
28057
+ defs: {
28058
+ main: {
28059
+ type: 'procedure',
28060
+ description: 'Replace stored rules for one source from a complete snapshot. Existing rules owned by another source remain unchanged.',
28061
+ input: {
28062
+ encoding: 'application/json',
28063
+ schema: {
28064
+ type: 'object',
28065
+ required: ['source', 'rules'],
28066
+ properties: {
28067
+ source: {
28068
+ type: 'string',
28069
+ maxLength: 128,
28070
+ description: 'Source whose rules are being synchronized',
28071
+ },
28072
+ rules: {
28073
+ type: 'array',
28074
+ items: {
28075
+ type: 'ref',
28076
+ ref: 'lex:tools.ozone.safelink.syncSource#sourceRule',
28077
+ },
28078
+ },
28079
+ },
28080
+ },
28081
+ },
28082
+ output: {
28083
+ encoding: 'application/json',
28084
+ schema: {
28085
+ type: 'object',
28086
+ required: ['added', 'updated', 'removed', 'events'],
28087
+ properties: {
28088
+ added: {
28089
+ type: 'integer',
28090
+ },
28091
+ updated: {
28092
+ type: 'integer',
28093
+ },
28094
+ removed: {
28095
+ type: 'integer',
28096
+ },
28097
+ events: {
28098
+ type: 'integer',
28099
+ },
28100
+ },
28101
+ },
28102
+ },
28103
+ },
28104
+ sourceRule: {
28105
+ type: 'object',
28106
+ required: ['url', 'pattern', 'action', 'reason'],
28107
+ properties: {
28108
+ url: {
28109
+ type: 'string',
28110
+ },
28111
+ pattern: {
28112
+ type: 'ref',
28113
+ ref: 'lex:tools.ozone.safelink.defs#patternType',
28114
+ },
28115
+ action: {
28116
+ type: 'ref',
28117
+ ref: 'lex:tools.ozone.safelink.defs#actionType',
28118
+ },
28119
+ reason: {
28120
+ type: 'ref',
28121
+ ref: 'lex:tools.ozone.safelink.defs#reasonType',
28122
+ },
28123
+ },
28124
+ },
28125
+ },
28126
+ },
27870
28127
  ToolsOzoneSafelinkUpdateRule: {
27871
28128
  lexicon: 1,
27872
28129
  id: 'tools.ozone.safelink.updateRule',
@@ -27896,6 +28153,12 @@ export const schemaDict = {
27896
28153
  type: 'ref',
27897
28154
  ref: 'lex:tools.ozone.safelink.defs#reasonType',
27898
28155
  },
28156
+ source: {
28157
+ type: 'string',
28158
+ maxLength: 128,
28159
+ default: 'ozone/default',
28160
+ description: 'Source of the rule to update',
28161
+ },
27899
28162
  comment: {
27900
28163
  type: 'string',
27901
28164
  description: 'Optional comment about the update',
@@ -27920,6 +28183,10 @@ export const schemaDict = {
27920
28183
  name: 'RuleNotFound',
27921
28184
  description: 'No active rule found for this URL/domain',
27922
28185
  },
28186
+ {
28187
+ name: 'RuleSourceConflict',
28188
+ description: 'A rule for this URL/domain is owned by another source',
28189
+ },
27923
28190
  ],
27924
28191
  },
27925
28192
  },
@@ -29415,6 +29682,7 @@ export const ids = {
29415
29682
  AppBskyRichtextFacet: 'app.bsky.richtext.facet',
29416
29683
  AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
29417
29684
  AppBskyUnspeccedGetAgeAssuranceState: 'app.bsky.unspecced.getAgeAssuranceState',
29685
+ AppBskyUnspeccedGetAtmosphereExploreArticleRecommendations: 'app.bsky.unspecced.getAtmosphereExploreArticleRecommendations',
29418
29686
  AppBskyUnspeccedGetAtmosphereExploreTab: 'app.bsky.unspecced.getAtmosphereExploreTab',
29419
29687
  AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
29420
29688
  AppBskyUnspeccedGetOnboardingSuggestedStarterPacks: 'app.bsky.unspecced.getOnboardingSuggestedStarterPacks',
@@ -29671,6 +29939,7 @@ export const ids = {
29671
29939
  ToolsOzoneSafelinkQueryEvents: 'tools.ozone.safelink.queryEvents',
29672
29940
  ToolsOzoneSafelinkQueryRules: 'tools.ozone.safelink.queryRules',
29673
29941
  ToolsOzoneSafelinkRemoveRule: 'tools.ozone.safelink.removeRule',
29942
+ ToolsOzoneSafelinkSyncSource: 'tools.ozone.safelink.syncSource',
29674
29943
  ToolsOzoneSafelinkUpdateRule: 'tools.ozone.safelink.updateRule',
29675
29944
  ToolsOzoneServerGetCapabilities: 'tools.ozone.server.getCapabilities',
29676
29945
  ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',