@colibri-social/lexicons 2.9.0 → 2.9.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.
@@ -1,4 +1,5 @@
1
1
  import { l } from "@atproto/lex";
2
+ import * as BetaDefs from "../defs.defs.js";
2
3
  import * as ThreadDefs from "./defs.defs.js";
3
4
  declare const $nsid = "social.colibri.beta.thread.repoint";
4
5
  type $nsid = typeof $nsid;
@@ -12,6 +13,7 @@ export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
12
13
  channel: l.StringSchema<{
13
14
  readonly format: "space-ref";
14
15
  }>;
16
+ anchor: l.OptionalSchema<l.RefSchema<l.Validator<BetaDefs.SpaceRecordRef, BetaDefs.SpaceRecordRef>>>;
15
17
  }>>;
16
18
  export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
17
19
  export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
@@ -20,7 +22,7 @@ export declare const $output: l.Payload<"application/json", l.ObjectSchema<{
20
22
  }>>;
21
23
  export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
22
24
  export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;
23
- /** Moves a thread to another channel by rewriting the channel its record links to. Who may read the thread follows the new channel. The anchor is left as it was, so the thread's marker leaves the old channel's river while the thread itself still quotes the message it came from. */
25
+ /** Moves a thread to another channel by rewriting the channel its record links to, and optionally repoints it at another message. Who may read the thread follows the new channel. Left without an anchor the thread keeps the one it has, so its marker sits wherever that message now lives. */
24
26
  declare const main: l.Procedure<"social.colibri.beta.thread.repoint", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
25
27
  thread: l.StringSchema<{
26
28
  readonly format: "space-ref";
@@ -28,6 +30,7 @@ declare const main: l.Procedure<"social.colibri.beta.thread.repoint", l.ParamsSc
28
30
  channel: l.StringSchema<{
29
31
  readonly format: "space-ref";
30
32
  }>;
33
+ anchor: l.OptionalSchema<l.RefSchema<l.Validator<BetaDefs.SpaceRecordRef, BetaDefs.SpaceRecordRef>>>;
31
34
  }>>, l.Payload<"application/json", l.ObjectSchema<{
32
35
  thread: l.RefSchema<l.Validator<ThreadDefs.ThreadView, ThreadDefs.ThreadView>>;
33
36
  }>>, readonly ["AuthRequired", "Forbidden", "ThreadNotFound", "ChannelNotFound", "InvalidRequest", "CredentialsUnavailable"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"repoint.defs.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/social/colibri/beta/thread/repoint.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,KAAK,uCAAuC,CAAC;AAEnD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM;;;;;;;GAAkJ,CAAC;AAEtK,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AACxE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AAEhF,eAAO,MAAM,OAAO;;GAA2H,CAAC;AAEhJ,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,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CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAElF,kSAAkS;AAClS,QAAA,MAAM,IAAI;;;;;;;;;;6HAAwK,CAAC;AAEnL,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,QAAA,MAAM,IAAI,uCAAQ,CAAC;AAEnB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -2,13 +2,14 @@
2
2
  * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
3
  */
4
4
  import { l } from "@atproto/lex";
5
+ import * as BetaDefs from "../defs.defs.js";
5
6
  import * as ThreadDefs from "./defs.defs.js";
6
7
  const $nsid = "social.colibri.beta.thread.repoint";
7
8
  export { $nsid };
8
9
  export const $params = /*#__PURE__*/ l.params();
9
- export const $input = /*#__PURE__*/ l.jsonPayload({ "thread": /*#__PURE__*/ l.string({ "format": "space-ref" }), "channel": /*#__PURE__*/ l.string({ "format": "space-ref" }) });
10
+ export const $input = /*#__PURE__*/ l.jsonPayload({ "thread": /*#__PURE__*/ l.string({ "format": "space-ref" }), "channel": /*#__PURE__*/ l.string({ "format": "space-ref" }), "anchor": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => BetaDefs.spaceRecordRef))) });
10
11
  export const $output = /*#__PURE__*/ l.jsonPayload({ "thread": /*#__PURE__*/ l.ref((() => ThreadDefs.threadView)) });
11
- /** Moves a thread to another channel by rewriting the channel its record links to. Who may read the thread follows the new channel. The anchor is left as it was, so the thread's marker leaves the old channel's river while the thread itself still quotes the message it came from. */
12
+ /** Moves a thread to another channel by rewriting the channel its record links to, and optionally repoints it at another message. Who may read the thread follows the new channel. Left without an anchor the thread keeps the one it has, so its marker sits wherever that message now lives. */
12
13
  const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["AuthRequired", "Forbidden", "ThreadNotFound", "ChannelNotFound", "InvalidRequest", "CredentialsUnavailable"]);
13
14
  export { main };
14
15
  const $lxm = $nsid;
@@ -1 +1 @@
1
- {"version":3,"file":"repoint.defs.js","sourceRoot":"","sources":["../../../../../../src/generated/social/colibri/beta/thread/repoint.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,MAAM,KAAK,GAAG,oCAAoC,CAAC;AAInD,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AAIhD,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,QAAQ,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,WAAW,EAAC,CAAC,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,WAAW,EAAC,CAAC,EAAC,CAAC,CAAC;AAKtK,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,QAAQ,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAwB,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,UAAU,CAAQ,CAAC,EAAC,CAAC,CAAC;AAKhJ,0RAA0R;AAC1R,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,cAAc,EAAC,WAAW,EAAC,gBAAgB,EAAC,iBAAiB,EAAC,gBAAgB,EAAC,wBAAwB,CAAC,CAAC,CAAC;AAEnL,OAAO,EAAE,IAAI,EAAE,CA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,OAAO,EAAE,CAAC,cAAc,EAAC,WAAW,EAAC,gBAAgB,EAAC,iBAAiB,EAAC,gBAAgB,EAAC,wBAAwB,CAAC,CAAC,CAAC;AAEnL,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,KAAK,CAAC;AAInB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -4,7 +4,7 @@
4
4
  "defs": {
5
5
  "main": {
6
6
  "type": "procedure",
7
- "description": "Moves a thread to another channel by rewriting the channel its record links to. Who may read the thread follows the new channel. The anchor is left as it was, so the thread's marker leaves the old channel's river while the thread itself still quotes the message it came from.",
7
+ "description": "Moves a thread to another channel by rewriting the channel its record links to, and optionally repoints it at another message. Who may read the thread follows the new channel. Left without an anchor the thread keeps the one it has, so its marker sits wherever that message now lives.",
8
8
  "input": {
9
9
  "encoding": "application/json",
10
10
  "schema": {
@@ -20,6 +20,11 @@
20
20
  "type": "string",
21
21
  "format": "space-ref",
22
22
  "description": "The text channel to move it to."
23
+ },
24
+ "anchor": {
25
+ "type": "ref",
26
+ "ref": "social.colibri.beta.defs#spaceRecordRef",
27
+ "description": "The message the thread should hang under, for a thread whose anchor was moved. It has to sit in the destination channel, and may be a message the AppView has not indexed yet. Absent keeps the anchor as it is."
23
28
  }
24
29
  }
25
30
  }
@@ -45,7 +50,7 @@
45
50
  },
46
51
  {
47
52
  "name": "Forbidden",
48
- "description": "The requesting user lacks the thread.manage permission."
53
+ "description": "The requesting user lacks the thread.manage permission and did not write both the thread's current anchor and the message it is being repointed at."
49
54
  },
50
55
  {
51
56
  "name": "ThreadNotFound",
@@ -57,7 +62,7 @@
57
62
  },
58
63
  {
59
64
  "name": "InvalidRequest",
60
- "description": "The destination channel belongs to another community, is not a text channel, or is the channel the thread is already in."
65
+ "description": "The destination channel belongs to another community, is not a text channel, or is the channel the thread is already in while no new anchor was given."
61
66
  },
62
67
  {
63
68
  "name": "CredentialsUnavailable",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colibri-social/lexicons",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Colibri lexicon schemas and the types generated from them",
5
5
  "type": "module",
6
6
  "exports": {