@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.
- package/CHANGELOG.md +6 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +216 -2
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +111 -1
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/safelink/addRule.d.ts +5 -0
- package/dist/client/types/tools/ozone/safelink/addRule.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/safelink/addRule.js +7 -0
- package/dist/client/types/tools/ozone/safelink/addRule.js.map +1 -1
- package/dist/client/types/tools/ozone/safelink/defs.d.ts +5 -1
- package/dist/client/types/tools/ozone/safelink/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/safelink/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/safelink/removeRule.d.ts +2 -0
- package/dist/client/types/tools/ozone/safelink/removeRule.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/safelink/removeRule.js.map +1 -1
- package/dist/client/types/tools/ozone/safelink/syncSource.d.ts +40 -0
- package/dist/client/types/tools/ozone/safelink/syncSource.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/safelink/syncSource.js +21 -0
- package/dist/client/types/tools/ozone/safelink/syncSource.js.map +1 -0
- package/dist/client/types/tools/ozone/safelink/updateRule.d.ts +5 -0
- package/dist/client/types/tools/ozone/safelink/updateRule.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/safelink/updateRule.js +7 -0
- package/dist/client/types/tools/ozone/safelink/updateRule.js.map +1 -1
- package/package.json +1 -1
|
@@ -26125,6 +26125,12 @@ export declare const schemaDict: {
|
|
|
26125
26125
|
readonly type: 'ref';
|
|
26126
26126
|
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
26127
26127
|
};
|
|
26128
|
+
readonly source: {
|
|
26129
|
+
readonly type: 'string';
|
|
26130
|
+
readonly maxLength: 128;
|
|
26131
|
+
readonly default: 'ozone/default';
|
|
26132
|
+
readonly description: 'Source of the rule';
|
|
26133
|
+
};
|
|
26128
26134
|
readonly comment: {
|
|
26129
26135
|
readonly type: 'string';
|
|
26130
26136
|
readonly description: 'Optional comment about the decision';
|
|
@@ -26150,6 +26156,9 @@ export declare const schemaDict: {
|
|
|
26150
26156
|
}, {
|
|
26151
26157
|
readonly name: 'RuleAlreadyExists';
|
|
26152
26158
|
readonly description: 'A rule for this URL/domain already exists';
|
|
26159
|
+
}, {
|
|
26160
|
+
readonly name: 'RuleSourceConflict';
|
|
26161
|
+
readonly description: 'A rule for this URL/domain is owned by another source';
|
|
26153
26162
|
}];
|
|
26154
26163
|
};
|
|
26155
26164
|
};
|
|
@@ -26187,6 +26196,11 @@ export declare const schemaDict: {
|
|
|
26187
26196
|
readonly type: 'ref';
|
|
26188
26197
|
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
26189
26198
|
};
|
|
26199
|
+
readonly source: {
|
|
26200
|
+
readonly type: 'string';
|
|
26201
|
+
readonly default: 'ozone/default';
|
|
26202
|
+
readonly description: 'Source of the decision';
|
|
26203
|
+
};
|
|
26190
26204
|
readonly createdBy: {
|
|
26191
26205
|
readonly type: 'string';
|
|
26192
26206
|
readonly format: 'did';
|
|
@@ -26220,7 +26234,7 @@ export declare const schemaDict: {
|
|
|
26220
26234
|
};
|
|
26221
26235
|
readonly urlRule: {
|
|
26222
26236
|
readonly type: 'object';
|
|
26223
|
-
readonly description: '
|
|
26237
|
+
readonly description: 'An active URL safety rule';
|
|
26224
26238
|
readonly required: ["url", "pattern", "action", "reason", "createdBy", "createdAt", "updatedAt"];
|
|
26225
26239
|
readonly properties: {
|
|
26226
26240
|
readonly url: {
|
|
@@ -26239,6 +26253,11 @@ export declare const schemaDict: {
|
|
|
26239
26253
|
readonly type: 'ref';
|
|
26240
26254
|
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
26241
26255
|
};
|
|
26256
|
+
readonly source: {
|
|
26257
|
+
readonly type: 'string';
|
|
26258
|
+
readonly default: 'ozone/default';
|
|
26259
|
+
readonly description: 'Source of the rule';
|
|
26260
|
+
};
|
|
26242
26261
|
readonly comment: {
|
|
26243
26262
|
readonly type: 'string';
|
|
26244
26263
|
readonly description: 'Optional comment about the decision';
|
|
@@ -26431,6 +26450,12 @@ export declare const schemaDict: {
|
|
|
26431
26450
|
readonly type: 'ref';
|
|
26432
26451
|
readonly ref: 'lex:tools.ozone.safelink.defs#patternType';
|
|
26433
26452
|
};
|
|
26453
|
+
readonly source: {
|
|
26454
|
+
readonly type: 'string';
|
|
26455
|
+
readonly maxLength: 128;
|
|
26456
|
+
readonly default: 'ozone/default';
|
|
26457
|
+
readonly description: 'Source of the rule to remove';
|
|
26458
|
+
};
|
|
26434
26459
|
readonly comment: {
|
|
26435
26460
|
readonly type: 'string';
|
|
26436
26461
|
readonly description: 'Optional comment about why the rule is being removed';
|
|
@@ -26457,6 +26482,79 @@ export declare const schemaDict: {
|
|
|
26457
26482
|
};
|
|
26458
26483
|
};
|
|
26459
26484
|
};
|
|
26485
|
+
readonly ToolsOzoneSafelinkSyncSource: {
|
|
26486
|
+
readonly lexicon: 1;
|
|
26487
|
+
readonly id: 'tools.ozone.safelink.syncSource';
|
|
26488
|
+
readonly defs: {
|
|
26489
|
+
readonly main: {
|
|
26490
|
+
readonly type: 'procedure';
|
|
26491
|
+
readonly description: 'Replace stored rules for one source from a complete snapshot. Existing rules owned by another source remain unchanged.';
|
|
26492
|
+
readonly input: {
|
|
26493
|
+
readonly encoding: 'application/json';
|
|
26494
|
+
readonly schema: {
|
|
26495
|
+
readonly type: 'object';
|
|
26496
|
+
readonly required: ["source", "rules"];
|
|
26497
|
+
readonly properties: {
|
|
26498
|
+
readonly source: {
|
|
26499
|
+
readonly type: 'string';
|
|
26500
|
+
readonly maxLength: 128;
|
|
26501
|
+
readonly description: 'Source whose rules are being synchronized';
|
|
26502
|
+
};
|
|
26503
|
+
readonly rules: {
|
|
26504
|
+
readonly type: 'array';
|
|
26505
|
+
readonly items: {
|
|
26506
|
+
readonly type: 'ref';
|
|
26507
|
+
readonly ref: 'lex:tools.ozone.safelink.syncSource#sourceRule';
|
|
26508
|
+
};
|
|
26509
|
+
};
|
|
26510
|
+
};
|
|
26511
|
+
};
|
|
26512
|
+
};
|
|
26513
|
+
readonly output: {
|
|
26514
|
+
readonly encoding: 'application/json';
|
|
26515
|
+
readonly schema: {
|
|
26516
|
+
readonly type: 'object';
|
|
26517
|
+
readonly required: ["added", "updated", "removed", "events"];
|
|
26518
|
+
readonly properties: {
|
|
26519
|
+
readonly added: {
|
|
26520
|
+
readonly type: 'integer';
|
|
26521
|
+
};
|
|
26522
|
+
readonly updated: {
|
|
26523
|
+
readonly type: 'integer';
|
|
26524
|
+
};
|
|
26525
|
+
readonly removed: {
|
|
26526
|
+
readonly type: 'integer';
|
|
26527
|
+
};
|
|
26528
|
+
readonly events: {
|
|
26529
|
+
readonly type: 'integer';
|
|
26530
|
+
};
|
|
26531
|
+
};
|
|
26532
|
+
};
|
|
26533
|
+
};
|
|
26534
|
+
};
|
|
26535
|
+
readonly sourceRule: {
|
|
26536
|
+
readonly type: 'object';
|
|
26537
|
+
readonly required: ["url", "pattern", "action", "reason"];
|
|
26538
|
+
readonly properties: {
|
|
26539
|
+
readonly url: {
|
|
26540
|
+
readonly type: 'string';
|
|
26541
|
+
};
|
|
26542
|
+
readonly pattern: {
|
|
26543
|
+
readonly type: 'ref';
|
|
26544
|
+
readonly ref: 'lex:tools.ozone.safelink.defs#patternType';
|
|
26545
|
+
};
|
|
26546
|
+
readonly action: {
|
|
26547
|
+
readonly type: 'ref';
|
|
26548
|
+
readonly ref: 'lex:tools.ozone.safelink.defs#actionType';
|
|
26549
|
+
};
|
|
26550
|
+
readonly reason: {
|
|
26551
|
+
readonly type: 'ref';
|
|
26552
|
+
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
26553
|
+
};
|
|
26554
|
+
};
|
|
26555
|
+
};
|
|
26556
|
+
};
|
|
26557
|
+
};
|
|
26460
26558
|
readonly ToolsOzoneSafelinkUpdateRule: {
|
|
26461
26559
|
readonly lexicon: 1;
|
|
26462
26560
|
readonly id: 'tools.ozone.safelink.updateRule';
|
|
@@ -26486,6 +26584,12 @@ export declare const schemaDict: {
|
|
|
26486
26584
|
readonly type: 'ref';
|
|
26487
26585
|
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
26488
26586
|
};
|
|
26587
|
+
readonly source: {
|
|
26588
|
+
readonly type: 'string';
|
|
26589
|
+
readonly maxLength: 128;
|
|
26590
|
+
readonly default: 'ozone/default';
|
|
26591
|
+
readonly description: 'Source of the rule to update';
|
|
26592
|
+
};
|
|
26489
26593
|
readonly comment: {
|
|
26490
26594
|
readonly type: 'string';
|
|
26491
26595
|
readonly description: 'Optional comment about the update';
|
|
@@ -26508,6 +26612,9 @@ export declare const schemaDict: {
|
|
|
26508
26612
|
readonly errors: [{
|
|
26509
26613
|
readonly name: 'RuleNotFound';
|
|
26510
26614
|
readonly description: 'No active rule found for this URL/domain';
|
|
26615
|
+
}, {
|
|
26616
|
+
readonly name: 'RuleSourceConflict';
|
|
26617
|
+
readonly description: 'A rule for this URL/domain is owned by another source';
|
|
26511
26618
|
}];
|
|
26512
26619
|
};
|
|
26513
26620
|
};
|
|
@@ -53559,6 +53666,12 @@ export declare const schemas: ({
|
|
|
53559
53666
|
readonly type: 'ref';
|
|
53560
53667
|
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
53561
53668
|
};
|
|
53669
|
+
readonly source: {
|
|
53670
|
+
readonly type: 'string';
|
|
53671
|
+
readonly maxLength: 128;
|
|
53672
|
+
readonly default: 'ozone/default';
|
|
53673
|
+
readonly description: 'Source of the rule';
|
|
53674
|
+
};
|
|
53562
53675
|
readonly comment: {
|
|
53563
53676
|
readonly type: 'string';
|
|
53564
53677
|
readonly description: 'Optional comment about the decision';
|
|
@@ -53584,6 +53697,9 @@ export declare const schemas: ({
|
|
|
53584
53697
|
}, {
|
|
53585
53698
|
readonly name: 'RuleAlreadyExists';
|
|
53586
53699
|
readonly description: 'A rule for this URL/domain already exists';
|
|
53700
|
+
}, {
|
|
53701
|
+
readonly name: 'RuleSourceConflict';
|
|
53702
|
+
readonly description: 'A rule for this URL/domain is owned by another source';
|
|
53587
53703
|
}];
|
|
53588
53704
|
};
|
|
53589
53705
|
};
|
|
@@ -53620,6 +53736,11 @@ export declare const schemas: ({
|
|
|
53620
53736
|
readonly type: 'ref';
|
|
53621
53737
|
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
53622
53738
|
};
|
|
53739
|
+
readonly source: {
|
|
53740
|
+
readonly type: 'string';
|
|
53741
|
+
readonly default: 'ozone/default';
|
|
53742
|
+
readonly description: 'Source of the decision';
|
|
53743
|
+
};
|
|
53623
53744
|
readonly createdBy: {
|
|
53624
53745
|
readonly type: 'string';
|
|
53625
53746
|
readonly format: 'did';
|
|
@@ -53653,7 +53774,7 @@ export declare const schemas: ({
|
|
|
53653
53774
|
};
|
|
53654
53775
|
readonly urlRule: {
|
|
53655
53776
|
readonly type: 'object';
|
|
53656
|
-
readonly description: '
|
|
53777
|
+
readonly description: 'An active URL safety rule';
|
|
53657
53778
|
readonly required: ["url", "pattern", "action", "reason", "createdBy", "createdAt", "updatedAt"];
|
|
53658
53779
|
readonly properties: {
|
|
53659
53780
|
readonly url: {
|
|
@@ -53672,6 +53793,11 @@ export declare const schemas: ({
|
|
|
53672
53793
|
readonly type: 'ref';
|
|
53673
53794
|
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
53674
53795
|
};
|
|
53796
|
+
readonly source: {
|
|
53797
|
+
readonly type: 'string';
|
|
53798
|
+
readonly default: 'ozone/default';
|
|
53799
|
+
readonly description: 'Source of the rule';
|
|
53800
|
+
};
|
|
53675
53801
|
readonly comment: {
|
|
53676
53802
|
readonly type: 'string';
|
|
53677
53803
|
readonly description: 'Optional comment about the decision';
|
|
@@ -53861,6 +53987,12 @@ export declare const schemas: ({
|
|
|
53861
53987
|
readonly type: 'ref';
|
|
53862
53988
|
readonly ref: 'lex:tools.ozone.safelink.defs#patternType';
|
|
53863
53989
|
};
|
|
53990
|
+
readonly source: {
|
|
53991
|
+
readonly type: 'string';
|
|
53992
|
+
readonly maxLength: 128;
|
|
53993
|
+
readonly default: 'ozone/default';
|
|
53994
|
+
readonly description: 'Source of the rule to remove';
|
|
53995
|
+
};
|
|
53864
53996
|
readonly comment: {
|
|
53865
53997
|
readonly type: 'string';
|
|
53866
53998
|
readonly description: 'Optional comment about why the rule is being removed';
|
|
@@ -53886,6 +54018,78 @@ export declare const schemas: ({
|
|
|
53886
54018
|
}];
|
|
53887
54019
|
};
|
|
53888
54020
|
};
|
|
54021
|
+
} | {
|
|
54022
|
+
readonly lexicon: 1;
|
|
54023
|
+
readonly id: 'tools.ozone.safelink.syncSource';
|
|
54024
|
+
readonly defs: {
|
|
54025
|
+
readonly main: {
|
|
54026
|
+
readonly type: 'procedure';
|
|
54027
|
+
readonly description: 'Replace stored rules for one source from a complete snapshot. Existing rules owned by another source remain unchanged.';
|
|
54028
|
+
readonly input: {
|
|
54029
|
+
readonly encoding: 'application/json';
|
|
54030
|
+
readonly schema: {
|
|
54031
|
+
readonly type: 'object';
|
|
54032
|
+
readonly required: ["source", "rules"];
|
|
54033
|
+
readonly properties: {
|
|
54034
|
+
readonly source: {
|
|
54035
|
+
readonly type: 'string';
|
|
54036
|
+
readonly maxLength: 128;
|
|
54037
|
+
readonly description: 'Source whose rules are being synchronized';
|
|
54038
|
+
};
|
|
54039
|
+
readonly rules: {
|
|
54040
|
+
readonly type: 'array';
|
|
54041
|
+
readonly items: {
|
|
54042
|
+
readonly type: 'ref';
|
|
54043
|
+
readonly ref: 'lex:tools.ozone.safelink.syncSource#sourceRule';
|
|
54044
|
+
};
|
|
54045
|
+
};
|
|
54046
|
+
};
|
|
54047
|
+
};
|
|
54048
|
+
};
|
|
54049
|
+
readonly output: {
|
|
54050
|
+
readonly encoding: 'application/json';
|
|
54051
|
+
readonly schema: {
|
|
54052
|
+
readonly type: 'object';
|
|
54053
|
+
readonly required: ["added", "updated", "removed", "events"];
|
|
54054
|
+
readonly properties: {
|
|
54055
|
+
readonly added: {
|
|
54056
|
+
readonly type: 'integer';
|
|
54057
|
+
};
|
|
54058
|
+
readonly updated: {
|
|
54059
|
+
readonly type: 'integer';
|
|
54060
|
+
};
|
|
54061
|
+
readonly removed: {
|
|
54062
|
+
readonly type: 'integer';
|
|
54063
|
+
};
|
|
54064
|
+
readonly events: {
|
|
54065
|
+
readonly type: 'integer';
|
|
54066
|
+
};
|
|
54067
|
+
};
|
|
54068
|
+
};
|
|
54069
|
+
};
|
|
54070
|
+
};
|
|
54071
|
+
readonly sourceRule: {
|
|
54072
|
+
readonly type: 'object';
|
|
54073
|
+
readonly required: ["url", "pattern", "action", "reason"];
|
|
54074
|
+
readonly properties: {
|
|
54075
|
+
readonly url: {
|
|
54076
|
+
readonly type: 'string';
|
|
54077
|
+
};
|
|
54078
|
+
readonly pattern: {
|
|
54079
|
+
readonly type: 'ref';
|
|
54080
|
+
readonly ref: 'lex:tools.ozone.safelink.defs#patternType';
|
|
54081
|
+
};
|
|
54082
|
+
readonly action: {
|
|
54083
|
+
readonly type: 'ref';
|
|
54084
|
+
readonly ref: 'lex:tools.ozone.safelink.defs#actionType';
|
|
54085
|
+
};
|
|
54086
|
+
readonly reason: {
|
|
54087
|
+
readonly type: 'ref';
|
|
54088
|
+
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
54089
|
+
};
|
|
54090
|
+
};
|
|
54091
|
+
};
|
|
54092
|
+
};
|
|
53889
54093
|
} | {
|
|
53890
54094
|
readonly lexicon: 1;
|
|
53891
54095
|
readonly id: 'tools.ozone.safelink.updateRule';
|
|
@@ -53915,6 +54119,12 @@ export declare const schemas: ({
|
|
|
53915
54119
|
readonly type: 'ref';
|
|
53916
54120
|
readonly ref: 'lex:tools.ozone.safelink.defs#reasonType';
|
|
53917
54121
|
};
|
|
54122
|
+
readonly source: {
|
|
54123
|
+
readonly type: 'string';
|
|
54124
|
+
readonly maxLength: 128;
|
|
54125
|
+
readonly default: 'ozone/default';
|
|
54126
|
+
readonly description: 'Source of the rule to update';
|
|
54127
|
+
};
|
|
53918
54128
|
readonly comment: {
|
|
53919
54129
|
readonly type: 'string';
|
|
53920
54130
|
readonly description: 'Optional comment about the update';
|
|
@@ -53937,6 +54147,9 @@ export declare const schemas: ({
|
|
|
53937
54147
|
readonly errors: [{
|
|
53938
54148
|
readonly name: 'RuleNotFound';
|
|
53939
54149
|
readonly description: 'No active rule found for this URL/domain';
|
|
54150
|
+
}, {
|
|
54151
|
+
readonly name: 'RuleSourceConflict';
|
|
54152
|
+
readonly description: 'A rule for this URL/domain is owned by another source';
|
|
53940
54153
|
}];
|
|
53941
54154
|
};
|
|
53942
54155
|
};
|
|
@@ -55596,6 +55809,7 @@ export declare const ids: {
|
|
|
55596
55809
|
readonly ToolsOzoneSafelinkQueryEvents: 'tools.ozone.safelink.queryEvents';
|
|
55597
55810
|
readonly ToolsOzoneSafelinkQueryRules: 'tools.ozone.safelink.queryRules';
|
|
55598
55811
|
readonly ToolsOzoneSafelinkRemoveRule: 'tools.ozone.safelink.removeRule';
|
|
55812
|
+
readonly ToolsOzoneSafelinkSyncSource: 'tools.ozone.safelink.syncSource';
|
|
55599
55813
|
readonly ToolsOzoneSafelinkUpdateRule: 'tools.ozone.safelink.updateRule';
|
|
55600
55814
|
readonly ToolsOzoneServerGetCapabilities: 'tools.ozone.server.getCapabilities';
|
|
55601
55815
|
readonly ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig';
|