@atproto/api 0.28.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 (28) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/client/index.d.ts +3 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +5 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +216 -2
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +111 -1
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/tools/ozone/safelink/addRule.d.ts +5 -0
  11. package/dist/client/types/tools/ozone/safelink/addRule.d.ts.map +1 -1
  12. package/dist/client/types/tools/ozone/safelink/addRule.js +7 -0
  13. package/dist/client/types/tools/ozone/safelink/addRule.js.map +1 -1
  14. package/dist/client/types/tools/ozone/safelink/defs.d.ts +5 -1
  15. package/dist/client/types/tools/ozone/safelink/defs.d.ts.map +1 -1
  16. package/dist/client/types/tools/ozone/safelink/defs.js.map +1 -1
  17. package/dist/client/types/tools/ozone/safelink/removeRule.d.ts +2 -0
  18. package/dist/client/types/tools/ozone/safelink/removeRule.d.ts.map +1 -1
  19. package/dist/client/types/tools/ozone/safelink/removeRule.js.map +1 -1
  20. package/dist/client/types/tools/ozone/safelink/syncSource.d.ts +40 -0
  21. package/dist/client/types/tools/ozone/safelink/syncSource.d.ts.map +1 -0
  22. package/dist/client/types/tools/ozone/safelink/syncSource.js +21 -0
  23. package/dist/client/types/tools/ozone/safelink/syncSource.js.map +1 -0
  24. package/dist/client/types/tools/ozone/safelink/updateRule.d.ts +5 -0
  25. package/dist/client/types/tools/ozone/safelink/updateRule.d.ts.map +1 -1
  26. package/dist/client/types/tools/ozone/safelink/updateRule.js +7 -0
  27. package/dist/client/types/tools/ozone/safelink/updateRule.js.map +1 -1
  28. package/package.json +1 -1
@@ -27671,6 +27671,12 @@ export const schemaDict = {
27671
27671
  type: 'ref',
27672
27672
  ref: 'lex:tools.ozone.safelink.defs#reasonType',
27673
27673
  },
27674
+ source: {
27675
+ type: 'string',
27676
+ maxLength: 128,
27677
+ default: 'ozone/default',
27678
+ description: 'Source of the rule',
27679
+ },
27674
27680
  comment: {
27675
27681
  type: 'string',
27676
27682
  description: 'Optional comment about the decision',
@@ -27699,6 +27705,10 @@ export const schemaDict = {
27699
27705
  name: 'RuleAlreadyExists',
27700
27706
  description: 'A rule for this URL/domain already exists',
27701
27707
  },
27708
+ {
27709
+ name: 'RuleSourceConflict',
27710
+ description: 'A rule for this URL/domain is owned by another source',
27711
+ },
27702
27712
  ],
27703
27713
  },
27704
27714
  },
@@ -27745,6 +27755,11 @@ export const schemaDict = {
27745
27755
  type: 'ref',
27746
27756
  ref: 'lex:tools.ozone.safelink.defs#reasonType',
27747
27757
  },
27758
+ source: {
27759
+ type: 'string',
27760
+ default: 'ozone/default',
27761
+ description: 'Source of the decision',
27762
+ },
27748
27763
  createdBy: {
27749
27764
  type: 'string',
27750
27765
  format: 'did',
@@ -27778,7 +27793,7 @@ export const schemaDict = {
27778
27793
  },
27779
27794
  urlRule: {
27780
27795
  type: 'object',
27781
- description: 'Input for creating a URL safety rule',
27796
+ description: 'An active URL safety rule',
27782
27797
  required: [
27783
27798
  'url',
27784
27799
  'pattern',
@@ -27805,6 +27820,11 @@ export const schemaDict = {
27805
27820
  type: 'ref',
27806
27821
  ref: 'lex:tools.ozone.safelink.defs#reasonType',
27807
27822
  },
27823
+ source: {
27824
+ type: 'string',
27825
+ default: 'ozone/default',
27826
+ description: 'Source of the rule',
27827
+ },
27808
27828
  comment: {
27809
27829
  type: 'string',
27810
27830
  description: 'Optional comment about the decision',
@@ -27997,6 +28017,12 @@ export const schemaDict = {
27997
28017
  type: 'ref',
27998
28018
  ref: 'lex:tools.ozone.safelink.defs#patternType',
27999
28019
  },
28020
+ source: {
28021
+ type: 'string',
28022
+ maxLength: 128,
28023
+ default: 'ozone/default',
28024
+ description: 'Source of the rule to remove',
28025
+ },
28000
28026
  comment: {
28001
28027
  type: 'string',
28002
28028
  description: 'Optional comment about why the rule is being removed',
@@ -28025,6 +28051,79 @@ export const schemaDict = {
28025
28051
  },
28026
28052
  },
28027
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
+ },
28028
28127
  ToolsOzoneSafelinkUpdateRule: {
28029
28128
  lexicon: 1,
28030
28129
  id: 'tools.ozone.safelink.updateRule',
@@ -28054,6 +28153,12 @@ export const schemaDict = {
28054
28153
  type: 'ref',
28055
28154
  ref: 'lex:tools.ozone.safelink.defs#reasonType',
28056
28155
  },
28156
+ source: {
28157
+ type: 'string',
28158
+ maxLength: 128,
28159
+ default: 'ozone/default',
28160
+ description: 'Source of the rule to update',
28161
+ },
28057
28162
  comment: {
28058
28163
  type: 'string',
28059
28164
  description: 'Optional comment about the update',
@@ -28078,6 +28183,10 @@ export const schemaDict = {
28078
28183
  name: 'RuleNotFound',
28079
28184
  description: 'No active rule found for this URL/domain',
28080
28185
  },
28186
+ {
28187
+ name: 'RuleSourceConflict',
28188
+ description: 'A rule for this URL/domain is owned by another source',
28189
+ },
28081
28190
  ],
28082
28191
  },
28083
28192
  },
@@ -29830,6 +29939,7 @@ export const ids = {
29830
29939
  ToolsOzoneSafelinkQueryEvents: 'tools.ozone.safelink.queryEvents',
29831
29940
  ToolsOzoneSafelinkQueryRules: 'tools.ozone.safelink.queryRules',
29832
29941
  ToolsOzoneSafelinkRemoveRule: 'tools.ozone.safelink.removeRule',
29942
+ ToolsOzoneSafelinkSyncSource: 'tools.ozone.safelink.syncSource',
29833
29943
  ToolsOzoneSafelinkUpdateRule: 'tools.ozone.safelink.updateRule',
29834
29944
  ToolsOzoneServerGetCapabilities: 'tools.ozone.server.getCapabilities',
29835
29945
  ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',