@vellumai/cli 0.11.10-dev.202609092055.8ea00ad → 0.11.10-dev.202609092213.434c99d

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.
@@ -41,6 +41,12 @@ export const ReactionEmojiFieldsSchema = z.object({
41
41
  });
42
42
  export type ReactionEmojiFields = z.infer<typeof ReactionEmojiFieldsSchema>;
43
43
 
44
+ /** The typed fields with the kind and name known. */
45
+ export type ReactionEmojiIdentity = ReactionEmojiFields & {
46
+ emojiKind: ReactionEmojiKind;
47
+ emojiName: string;
48
+ };
49
+
44
50
  /**
45
51
  * The typed emoji fields a source actually carries, with undefined ones
46
52
  * omitted: an absent key and a present-but-undefined one serialize alike, but the
@@ -96,7 +102,7 @@ export function parseDiscordEmojiMention(
96
102
  */
97
103
  export function classifyReactionEmojiSpelling(
98
104
  emoji: string,
99
- ): ReactionEmojiFields & { emojiKind: ReactionEmojiKind; emojiName: string } {
105
+ ): ReactionEmojiIdentity {
100
106
  const custom = parseDiscordEmojiMention(emoji);
101
107
  if (custom) {
102
108
  // The plain `<:name:id>` form says nothing about animation: the
@@ -123,7 +129,7 @@ export function classifyReactionEmojiSpelling(
123
129
  */
124
130
  export function reactionEmojiIdentity(
125
131
  reaction: { emoji: string } & ReactionEmojiFields,
126
- ): ReactionEmojiFields & { emojiKind: ReactionEmojiKind; emojiName: string } {
132
+ ): ReactionEmojiIdentity {
127
133
  return reaction.emojiKind !== undefined && reaction.emojiName !== undefined
128
134
  ? {
129
135
  ...pickReactionEmojiFields(reaction),
@@ -41,6 +41,12 @@ export const ReactionEmojiFieldsSchema = z.object({
41
41
  });
42
42
  export type ReactionEmojiFields = z.infer<typeof ReactionEmojiFieldsSchema>;
43
43
 
44
+ /** The typed fields with the kind and name known. */
45
+ export type ReactionEmojiIdentity = ReactionEmojiFields & {
46
+ emojiKind: ReactionEmojiKind;
47
+ emojiName: string;
48
+ };
49
+
44
50
  /**
45
51
  * The typed emoji fields a source actually carries, with undefined ones
46
52
  * omitted: an absent key and a present-but-undefined one serialize alike, but the
@@ -96,7 +102,7 @@ export function parseDiscordEmojiMention(
96
102
  */
97
103
  export function classifyReactionEmojiSpelling(
98
104
  emoji: string,
99
- ): ReactionEmojiFields & { emojiKind: ReactionEmojiKind; emojiName: string } {
105
+ ): ReactionEmojiIdentity {
100
106
  const custom = parseDiscordEmojiMention(emoji);
101
107
  if (custom) {
102
108
  // The plain `<:name:id>` form says nothing about animation: the
@@ -123,7 +129,7 @@ export function classifyReactionEmojiSpelling(
123
129
  */
124
130
  export function reactionEmojiIdentity(
125
131
  reaction: { emoji: string } & ReactionEmojiFields,
126
- ): ReactionEmojiFields & { emojiKind: ReactionEmojiKind; emojiName: string } {
132
+ ): ReactionEmojiIdentity {
127
133
  return reaction.emojiKind !== undefined && reaction.emojiName !== undefined
128
134
  ? {
129
135
  ...pickReactionEmojiFields(reaction),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/cli",
3
- "version": "0.11.10-dev.202609092055.8ea00ad",
3
+ "version": "0.11.10-dev.202609092213.434c99d",
4
4
  "description": "CLI tools for vellum-assistant",
5
5
  "type": "module",
6
6
  "exports": {