@atproto/dev-env 0.3.63 → 0.3.64

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
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
+
3
13
  ## 0.3.63
4
14
 
5
15
  ### Patch Changes
@@ -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 {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B,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"}
@@ -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":";;;AAaA,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,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A;IACpB,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,IAKC,EACD,IAAe;QAEf,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,GAAG,EAAE,SAAS,GAAG,mBAAmB,EAAE,GAAG,IAAI,CAAA;QACvE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAC9D;YACE,OAAO;YACP,KAAK,EAAE;gBACL,KAAK,EAAE,qDAAqD;gBAC5D,OAAO,EAAE,MAAM;aAChB;YACD,SAAS;SACV,EACD;YACE,QAAQ,EAAE,kBAAkB;YAC5B,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAClC,kCAAkC,EAClC,IAAI,CACL;SACF,CACF,CAAA;QACD,OAAO,MAAM,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,IAMC,EACD,IAAe;QAEf,MAAM,EAAE,eAAe,EAAE,0BAA0B,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAA;QACrE,OAAO,IAAI,CAAC,SAAS,CACnB;YACE,KAAK,EAAE;gBACL,KAAK,EAAE,8CAA8C;gBACrD,0BAA0B;gBAC1B,eAAe;aAChB;YACD,GAAG,IAAI;SACR,EACD,IAAI,CACL,CAAA;IACH,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,IAIC,EACD,IAAe;QAEf,OAAO,IAAI,CAAC,SAAS,CACnB;YACE,KAAK,EAAE;gBACL,KAAK,EAAE,qDAAqD;aAC7D;YACD,GAAG,IAAI;SACR,EACD,IAAI,CACL,CAAA;IACH,CAAC;CACF;AAjJD,0CAiJC"}
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,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D;aAC7D;YACD,GAAG,IAAI;SACR,EACD,IAAI,CACL,CAAA;IACH,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,OAAkD,EAClD,aAA+C,OAAO;QAEtD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAChE,OAAO,EACP;YACE,QAAQ,EAAE,kBAAkB;YAC5B,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAClC,kCAAkC,EAClC,UAAU,CACX;SACF,CACF,CAAA;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,MAAkD,EAClD,aAA+C,OAAO;QAEtD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CACjE,MAAM,EACN;YACE,QAAQ,EAAE,kBAAkB;YAC5B,OAAO,EAAE,MAAM,IAAI,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.63",
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.17",
28
- "@atproto/bsky": "^0.0.95",
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.56",
35
- "@atproto/pds": "^0.4.72",
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"
@@ -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
  }