@atproto/api 0.20.22 → 0.20.25
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 +26 -0
- package/dist/client/lexicons.d.ts +28 -12
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +14 -6
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/ageassurance/defs.d.ts +2 -0
- package/dist/client/types/app/bsky/ageassurance/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/ageassurance/defs.js.map +1 -1
- package/package.json +22 -16
- package/definitions/labels.json +0 -170
- package/docs/moderation.md +0 -260
- package/jest.config.cjs +0 -23
- package/jest.d.ts +0 -20
- package/jest.setup.ts +0 -97
- package/scripts/code/labels.mjs +0 -77
- package/scripts/generate-code.mjs +0 -4
- package/src/age-assurance.test.ts +0 -218
- package/src/age-assurance.ts +0 -137
- package/src/agent.ts +0 -1645
- package/src/atp-agent.ts +0 -570
- package/src/bsky-agent.ts +0 -14
- package/src/const.ts +0 -1
- package/src/index.ts +0 -44
- package/src/mocker.ts +0 -220
- package/src/moderation/decision.ts +0 -389
- package/src/moderation/index.ts +0 -69
- package/src/moderation/mutewords.ts +0 -170
- package/src/moderation/subjects/account.ts +0 -44
- package/src/moderation/subjects/feed-generator.ts +0 -24
- package/src/moderation/subjects/notification.ts +0 -25
- package/src/moderation/subjects/post.ts +0 -433
- package/src/moderation/subjects/profile.ts +0 -26
- package/src/moderation/subjects/status.ts +0 -27
- package/src/moderation/subjects/user-list.ts +0 -48
- package/src/moderation/types.ts +0 -191
- package/src/moderation/ui.ts +0 -21
- package/src/moderation/util.ts +0 -111
- package/src/predicate.ts +0 -52
- package/src/rich-text/detection.ts +0 -146
- package/src/rich-text/rich-text.ts +0 -418
- package/src/rich-text/sanitization.ts +0 -42
- package/src/rich-text/unicode.ts +0 -47
- package/src/rich-text/util.ts +0 -15
- package/src/session-manager.ts +0 -5
- package/src/types.ts +0 -165
- package/src/util.ts +0 -96
- package/tests/atp-agent.test.ts +0 -3863
- package/tests/dispatcher.test.ts +0 -527
- package/tests/errors.test.ts +0 -29
- package/tests/moderation-behaviors.test.ts +0 -951
- package/tests/moderation-custom-labels.test.ts +0 -334
- package/tests/moderation-mutewords.test.ts +0 -1299
- package/tests/moderation-prefs.test.ts +0 -402
- package/tests/moderation-quoteposts.test.ts +0 -277
- package/tests/moderation.test.ts +0 -739
- package/tests/rich-text-detection.test.ts +0 -456
- package/tests/rich-text-sanitization.test.ts +0 -216
- package/tests/rich-text.test.ts +0 -705
- package/tests/util/echo-server.ts +0 -37
- package/tests/util/moderation-behavior.ts +0 -268
- package/tsconfig.build.json +0 -9
- package/tsconfig.build.tsbuildinfo +0 -1
- package/tsconfig.json +0 -7
- package/tsconfig.tests.json +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.20.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#5179](https://github.com/bluesky-social/atproto/pull/5179) [`f6409db`](https://github.com/bluesky-social/atproto/commit/f6409dbcefdd5565b1ba23c52dc71ec7e791e2e9) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Support the new timestamp field, along with transactionId and errorCode, on KWS age verification status payloads. Add additionalVerificationMethods to Age Assurance config.
|
|
8
|
+
|
|
9
|
+
## 0.20.24
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update TypeScript build to rely on references to composite internal projects
|
|
14
|
+
|
|
15
|
+
- [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Bundle only necessary files in the NPM tarball, including the `CHANGELOG.md` and `README.md` files (if present).
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`28a0b58`](https://github.com/bluesky-social/atproto/commit/28a0b588147863eaef948cd2bb8fc0f19d08cda9), [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07), [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07), [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07), [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07)]:
|
|
18
|
+
- @atproto/syntax@0.6.4
|
|
19
|
+
- @atproto/common-web@0.5.3
|
|
20
|
+
- @atproto/lexicon@0.7.4
|
|
21
|
+
- @atproto/xrpc@0.8.3
|
|
22
|
+
|
|
23
|
+
## 0.20.23
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#5166](https://github.com/bluesky-social/atproto/pull/5166) [`45278fd`](https://github.com/bluesky-social/atproto/commit/45278fd367ee50654ac5d09bd6da1451c8b0cd98) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Add `additionalVerificationMethods` to Age Assurance config and add required config for Texas
|
|
28
|
+
|
|
3
29
|
## 0.20.22
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -1345,6 +1345,14 @@ export declare const schemaDict: {
|
|
|
1345
1345
|
readonly type: 'integer';
|
|
1346
1346
|
readonly description: 'The minimum age (as a whole integer) required to use Bluesky in this region.';
|
|
1347
1347
|
};
|
|
1348
|
+
readonly additionalVerificationMethods: {
|
|
1349
|
+
readonly type: 'array';
|
|
1350
|
+
readonly description: 'Verification methods permitted in this region in addition to the third-party (KWS) flow, which is always supported. `device` permits using the native on-device age APIs (e.g. Apple Declared Age Range, Google Play Age Signals).';
|
|
1351
|
+
readonly items: {
|
|
1352
|
+
readonly type: 'string';
|
|
1353
|
+
readonly knownValues: ["device"];
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1348
1356
|
readonly rules: {
|
|
1349
1357
|
readonly type: 'array';
|
|
1350
1358
|
readonly description: 'The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item.';
|
|
@@ -10287,8 +10295,8 @@ export declare const schemaDict: {
|
|
|
10287
10295
|
readonly name: {
|
|
10288
10296
|
readonly type: 'string';
|
|
10289
10297
|
readonly description: 'The display name of the group conversation.';
|
|
10290
|
-
readonly maxGraphemes:
|
|
10291
|
-
readonly maxLength:
|
|
10298
|
+
readonly maxGraphemes: 50;
|
|
10299
|
+
readonly maxLength: 500;
|
|
10292
10300
|
};
|
|
10293
10301
|
readonly unreadJoinRequestCount: {
|
|
10294
10302
|
readonly type: 'integer';
|
|
@@ -12249,8 +12257,8 @@ export declare const schemaDict: {
|
|
|
12249
12257
|
readonly name: {
|
|
12250
12258
|
readonly type: 'string';
|
|
12251
12259
|
readonly minLength: 1;
|
|
12252
|
-
readonly maxGraphemes:
|
|
12253
|
-
readonly maxLength:
|
|
12260
|
+
readonly maxGraphemes: 50;
|
|
12261
|
+
readonly maxLength: 500;
|
|
12254
12262
|
};
|
|
12255
12263
|
};
|
|
12256
12264
|
};
|
|
@@ -12772,8 +12780,8 @@ export declare const schemaDict: {
|
|
|
12772
12780
|
readonly name: {
|
|
12773
12781
|
readonly type: 'string';
|
|
12774
12782
|
readonly description: 'The display name of the group conversation.';
|
|
12775
|
-
readonly maxGraphemes:
|
|
12776
|
-
readonly maxLength:
|
|
12783
|
+
readonly maxGraphemes: 50;
|
|
12784
|
+
readonly maxLength: 500;
|
|
12777
12785
|
};
|
|
12778
12786
|
};
|
|
12779
12787
|
};
|
|
@@ -25683,6 +25691,14 @@ export declare const schemas: ({
|
|
|
25683
25691
|
readonly type: 'integer';
|
|
25684
25692
|
readonly description: 'The minimum age (as a whole integer) required to use Bluesky in this region.';
|
|
25685
25693
|
};
|
|
25694
|
+
readonly additionalVerificationMethods: {
|
|
25695
|
+
readonly type: 'array';
|
|
25696
|
+
readonly description: 'Verification methods permitted in this region in addition to the third-party (KWS) flow, which is always supported. `device` permits using the native on-device age APIs (e.g. Apple Declared Age Range, Google Play Age Signals).';
|
|
25697
|
+
readonly items: {
|
|
25698
|
+
readonly type: 'string';
|
|
25699
|
+
readonly knownValues: ["device"];
|
|
25700
|
+
};
|
|
25701
|
+
};
|
|
25686
25702
|
readonly rules: {
|
|
25687
25703
|
readonly type: 'array';
|
|
25688
25704
|
readonly description: 'The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item.';
|
|
@@ -34481,8 +34497,8 @@ export declare const schemas: ({
|
|
|
34481
34497
|
readonly name: {
|
|
34482
34498
|
readonly type: 'string';
|
|
34483
34499
|
readonly description: 'The display name of the group conversation.';
|
|
34484
|
-
readonly maxGraphemes:
|
|
34485
|
-
readonly maxLength:
|
|
34500
|
+
readonly maxGraphemes: 50;
|
|
34501
|
+
readonly maxLength: 500;
|
|
34486
34502
|
};
|
|
34487
34503
|
readonly unreadJoinRequestCount: {
|
|
34488
34504
|
readonly type: 'integer';
|
|
@@ -36415,8 +36431,8 @@ export declare const schemas: ({
|
|
|
36415
36431
|
readonly name: {
|
|
36416
36432
|
readonly type: 'string';
|
|
36417
36433
|
readonly minLength: 1;
|
|
36418
|
-
readonly maxGraphemes:
|
|
36419
|
-
readonly maxLength:
|
|
36434
|
+
readonly maxGraphemes: 50;
|
|
36435
|
+
readonly maxLength: 500;
|
|
36420
36436
|
};
|
|
36421
36437
|
};
|
|
36422
36438
|
};
|
|
@@ -36927,8 +36943,8 @@ export declare const schemas: ({
|
|
|
36927
36943
|
readonly name: {
|
|
36928
36944
|
readonly type: 'string';
|
|
36929
36945
|
readonly description: 'The display name of the group conversation.';
|
|
36930
|
-
readonly maxGraphemes:
|
|
36931
|
-
readonly maxLength:
|
|
36946
|
+
readonly maxGraphemes: 50;
|
|
36947
|
+
readonly maxLength: 500;
|
|
36932
36948
|
};
|
|
36933
36949
|
};
|
|
36934
36950
|
};
|