@atproto/dev-env 0.3.62 → 0.3.64
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -0
- package/dist/bsky.d.ts.map +1 -1
- package/dist/bsky.js +1 -0
- package/dist/bsky.js.map +1 -1
- package/dist/moderator-client.d.ts +3 -1
- package/dist/moderator-client.d.ts.map +1 -1
- package/dist/moderator-client.js +14 -0
- package/dist/moderator-client.js.map +1 -1
- package/package.json +5 -5
- package/src/bsky.ts +1 -0
- package/src/moderator-client.ts +38 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.64
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`a3ce23c4c`](https://github.com/bluesky-social/atproto/commit/a3ce23c4ccf4f40998b9d1f5731e5c905390aedc)]:
|
8
|
+
- @atproto/ozone@0.1.57
|
9
|
+
- @atproto/bsky@0.0.96
|
10
|
+
- @atproto/api@0.13.18
|
11
|
+
- @atproto/pds@0.4.73
|
12
|
+
|
13
|
+
## 0.3.63
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- Updated dependencies [[`a4b528e5f`](https://github.com/bluesky-social/atproto/commit/a4b528e5f51c8bfca56b293b0059b88d138ec421), [`2e7aa211d`](https://github.com/bluesky-social/atproto/commit/2e7aa211d2cbc629899c7f87f1713b13b932750b), [`90399c859`](https://github.com/bluesky-social/atproto/commit/90399c85955301babc689c293bd3e7e1a94505a3)]:
|
18
|
+
- @atproto/api@0.13.17
|
19
|
+
- @atproto/pds@0.4.72
|
20
|
+
- @atproto/bsky@0.0.95
|
21
|
+
- @atproto/ozone@0.1.56
|
22
|
+
|
3
23
|
## 0.3.62
|
4
24
|
|
5
25
|
### Patch Changes
|
package/dist/bsky.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.d.ts","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"m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GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,IAAI,CAAC,QAAQ,EACjB,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,SAAS,EAAE,IAAI,CAAC,eAAe,EAC/B,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;WAGtB,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgFvD,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAEzB;IAED,SAAS,IAAI,QAAQ;IAMrB,SAAS,IAAI,MAAM;IAQnB,gBAAgB;;;IAMV,KAAK;CAOZ"}
|
package/dist/bsky.js
CHANGED
@@ -118,6 +118,7 @@ class TestBsky {
|
|
118
118
|
bsyncHttpVersion: '1.1',
|
119
119
|
modServiceDid: cfg.modServiceDid ?? 'did:example:invalidMod',
|
120
120
|
labelsFromIssuerDids: [const_1.EXAMPLE_LABELER],
|
121
|
+
bigThreadUris: new Set(),
|
121
122
|
...cfg,
|
122
123
|
adminPasswords: [const_1.ADMIN_PASSWORD],
|
123
124
|
});
|
package/dist/bsky.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.js","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC9B,iDAAkC;AAClC,oDAAqC;AACrC,sCAAuC;AACvC,4CAAkD;AAClD,sCAAkD;AAElD,mCAAyD;AAEzD,gDAA6B;AAE7B,MAAa,QAAQ;IACnB,YACS,GAAW,EACX,IAAY,EACZ,EAAiB,EACjB,MAAwB,EACxB,SAA+B,EAC/B,KAAqB,EACrB,GAA0B;QANjC;;;;mBAAO,GAAG;WAAQ;QAClB;;;;mBAAO,IAAI;WAAQ;QACnB;;;;mBAAO,EAAE;WAAe;QACxB;;;;mBAAO,MAAM;WAAkB;QAC/B;;;;mBAAO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OAAO,EAAE,CAAA;QAC9B,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAA;QACxB,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAA;IACvB,CAAC;CACF;AA1HD,4BA0HC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AtpAgent, ToolsOzoneModerationEmitEvent as EmitModerationEvent, ToolsOzoneModerationQueryStatuses as QueryModerationStatuses, ToolsOzoneModerationQueryEvents as QueryModerationEvents } from '@atproto/api';
|
1
|
+
import { AtpAgent, ToolsOzoneModerationEmitEvent as EmitModerationEvent, ToolsOzoneModerationQueryStatuses as QueryModerationStatuses, ToolsOzoneModerationQueryEvents as QueryModerationEvents, ToolsOzoneSettingUpsertOption, ToolsOzoneSettingRemoveOptions } from '@atproto/api';
|
2
2
|
import { TestOzone } from './ozone';
|
3
3
|
type TakeActionInput = EmitModerationEvent.InputSchema;
|
4
4
|
type QueryStatusesParams = QueryModerationStatuses.QueryParams;
|
@@ -37,6 +37,8 @@ export declare class ModeratorClient {
|
|
37
37
|
subjectBlobCids?: TakeActionInput['subjectBlobCids'];
|
38
38
|
reason?: string;
|
39
39
|
}, role?: ModLevel): Promise<import("@atproto/api/dist/client/types/tools/ozone/moderation/defs").ModEventView>;
|
40
|
+
upsertSettingOption(setting: ToolsOzoneSettingUpsertOption.InputSchema, callerRole?: 'admin' | 'moderator' | 'triage'): Promise<ToolsOzoneSettingUpsertOption.OutputSchema>;
|
41
|
+
removeSettingOptions(params: ToolsOzoneSettingRemoveOptions.InputSchema, callerRole?: 'admin' | 'moderator' | 'triage'): Promise<ToolsOzoneSettingRemoveOptions.OutputSchema>;
|
40
42
|
}
|
41
43
|
export {};
|
42
44
|
//# sourceMappingURL=moderator-client.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moderator-client.d.ts","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,6BAA6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AC,EAAE,QAAQ;IAsBX,aAAa,CACjB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;QACnC,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,EACD,IAAI,CAAC,EAAE,QAAQ;IAuBX,eAAe,CACnB,IAAI,EAAE;QACJ,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;QACnC,eAAe,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAA;QACpD,eAAe,CAAC,EAAE,MAAM,CAAA;QACxB,0BAA0B,CAAC,EAAE,OAAO,CAAA;QACpC,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,EACD,IAAI,CAAC,EAAE,QAAQ;IAgBX,sBAAsB,CAC1B,IAAI,EAAE;QACJ,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;QACnC,eAAe,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAA;QACpD,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,EACD,IAAI,CAAC,EAAE,QAAQ;IAaX,mBAAmB,CACvB,OAAO,EAAE,6BAA6B,CAAC,WAAW,EAClD,UAAU,GAAE,OAAO,GAAG,WAAW,GAAG,QAAkB;IAgBlD,oBAAoB,CACxB,MAAM,EAAE,8BAA8B,CAAC,WAAW,EAClD,UAAU,GAAE,OAAO,GAAG,WAAW,GAAG,QAAkB;CAezD"}
|
package/dist/moderator-client.js
CHANGED
@@ -77,6 +77,20 @@ class ModeratorClient {
|
|
77
77
|
...opts,
|
78
78
|
}, role);
|
79
79
|
}
|
80
|
+
async upsertSettingOption(setting, callerRole = 'admin') {
|
81
|
+
const { data } = await this.agent.tools.ozone.setting.upsertOption(setting, {
|
82
|
+
encoding: 'application/json',
|
83
|
+
headers: await this.ozone.modHeaders('tools.ozone.setting.upsertOption', callerRole),
|
84
|
+
});
|
85
|
+
return data;
|
86
|
+
}
|
87
|
+
async removeSettingOptions(params, callerRole = 'admin') {
|
88
|
+
const { data } = await this.agent.tools.ozone.setting.removeOptions(params, {
|
89
|
+
encoding: 'application/json',
|
90
|
+
headers: await this.ozone.modHeaders('tools.ozone.setting.removeOptions', callerRole),
|
91
|
+
});
|
92
|
+
return data;
|
93
|
+
}
|
80
94
|
}
|
81
95
|
exports.ModeratorClient = ModeratorClient;
|
82
96
|
//# sourceMappingURL=moderator-client.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moderator-client.js","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"moderator-client.js","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":";;;AAeA,MAAa,eAAe;IAE1B,YAAmB,KAAgB;QAAvB;;;;mBAAO,KAAK;WAAW;QADnC;;;;;WAAe;QAEb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAChC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,IAAe;QACxC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAC7D,EAAE,EAAE,EAAE,EACN;YACE,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAClC,iCAAiC,EACjC,IAAI,CACL;SACF,CACF,CAAA;QACD,OAAO,MAAM,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,KAA0B,EAAE,IAAe;QAC7D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAClE,KAAK,EACL;YACE,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAClC,sCAAsC,EACtC,IAAI,CACL;SACF,CACF,CAAA;QACD,OAAO,M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,CAAC,KAAK,CAAC,UAAU,CAClC,mCAAmC,EACnC,UAAU,CACX;SACF,CACF,CAAA;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AArLD,0CAqLC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/dev-env",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.64",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"get-port": "^5.1.1",
|
25
25
|
"multiformats": "^9.9.0",
|
26
26
|
"uint8arrays": "3.0.0",
|
27
|
-
"@atproto/api": "^0.13.
|
28
|
-
"@atproto/bsky": "^0.0.
|
27
|
+
"@atproto/api": "^0.13.18",
|
28
|
+
"@atproto/bsky": "^0.0.96",
|
29
29
|
"@atproto/bsync": "^0.0.9",
|
30
30
|
"@atproto/common-web": "^0.3.1",
|
31
31
|
"@atproto/crypto": "^0.4.2",
|
32
32
|
"@atproto/identity": "^0.4.3",
|
33
33
|
"@atproto/lexicon": "^0.4.3",
|
34
|
-
"@atproto/ozone": "^0.1.
|
35
|
-
"@atproto/pds": "^0.4.
|
34
|
+
"@atproto/ozone": "^0.1.57",
|
35
|
+
"@atproto/pds": "^0.4.73",
|
36
36
|
"@atproto/sync": "^0.1.6",
|
37
37
|
"@atproto/syntax": "^0.3.1",
|
38
38
|
"@atproto/xrpc-server": "^0.7.3"
|
package/src/bsky.ts
CHANGED
package/src/moderator-client.ts
CHANGED
@@ -3,6 +3,8 @@ import {
|
|
3
3
|
ToolsOzoneModerationEmitEvent as EmitModerationEvent,
|
4
4
|
ToolsOzoneModerationQueryStatuses as QueryModerationStatuses,
|
5
5
|
ToolsOzoneModerationQueryEvents as QueryModerationEvents,
|
6
|
+
ToolsOzoneSettingUpsertOption,
|
7
|
+
ToolsOzoneSettingRemoveOptions,
|
6
8
|
} from '@atproto/api'
|
7
9
|
import { TestOzone } from './ozone'
|
8
10
|
|
@@ -156,4 +158,40 @@ export class ModeratorClient {
|
|
156
158
|
role,
|
157
159
|
)
|
158
160
|
}
|
161
|
+
|
162
|
+
async upsertSettingOption(
|
163
|
+
setting: ToolsOzoneSettingUpsertOption.InputSchema,
|
164
|
+
callerRole: 'admin' | 'moderator' | 'triage' = 'admin',
|
165
|
+
) {
|
166
|
+
const { data } = await this.agent.tools.ozone.setting.upsertOption(
|
167
|
+
setting,
|
168
|
+
{
|
169
|
+
encoding: 'application/json',
|
170
|
+
headers: await this.ozone.modHeaders(
|
171
|
+
'tools.ozone.setting.upsertOption',
|
172
|
+
callerRole,
|
173
|
+
),
|
174
|
+
},
|
175
|
+
)
|
176
|
+
|
177
|
+
return data
|
178
|
+
}
|
179
|
+
|
180
|
+
async removeSettingOptions(
|
181
|
+
params: ToolsOzoneSettingRemoveOptions.InputSchema,
|
182
|
+
callerRole: 'admin' | 'moderator' | 'triage' = 'admin',
|
183
|
+
) {
|
184
|
+
const { data } = await this.agent.tools.ozone.setting.removeOptions(
|
185
|
+
params,
|
186
|
+
{
|
187
|
+
encoding: 'application/json',
|
188
|
+
headers: await this.ozone.modHeaders(
|
189
|
+
'tools.ozone.setting.removeOptions',
|
190
|
+
callerRole,
|
191
|
+
),
|
192
|
+
},
|
193
|
+
)
|
194
|
+
|
195
|
+
return data
|
196
|
+
}
|
159
197
|
}
|