@plotday/twister 0.52.0 → 0.54.0
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/bin/commands/deploy.js +4 -0
- package/bin/commands/deploy.js.map +1 -1
- package/bin/templates/AGENTS.template.md +6 -10
- package/cli/templates/AGENTS.template.md +6 -10
- package/dist/connector.d.ts +179 -10
- package/dist/connector.d.ts.map +1 -1
- package/dist/connector.js +78 -4
- package/dist/connector.js.map +1 -1
- package/dist/docs/assets/hierarchy.js +1 -1
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/classes/index.Connector.html +74 -26
- package/dist/docs/classes/index.FileNotFoundError.html +2 -0
- package/dist/docs/classes/index.Files.html +16 -0
- package/dist/docs/classes/index.Imap.html +1 -1
- package/dist/docs/classes/index.Options.html +1 -1
- package/dist/docs/classes/index.Smtp.html +1 -1
- package/dist/docs/classes/tool.ITool.html +1 -1
- package/dist/docs/classes/tools_ai.AI.html +7 -5
- package/dist/docs/classes/tools_callbacks.Callbacks.html +1 -1
- package/dist/docs/classes/tools_integrations.Integrations.html +17 -23
- package/dist/docs/classes/tools_network.Network.html +1 -1
- package/dist/docs/classes/tools_plot.Plot.html +62 -56
- package/dist/docs/classes/tools_store.Store.html +1 -1
- package/dist/docs/classes/tools_tasks.Tasks.html +1 -1
- package/dist/docs/classes/tools_twists.Twists.html +2 -2
- package/dist/docs/classes/twist.Twist.html +3 -3
- package/dist/docs/documents/Building_Connectors.html +1 -1
- package/dist/docs/enums/plot.ActionType.html +10 -8
- package/dist/docs/enums/plot.ActorType.html +4 -4
- package/dist/docs/enums/plot.ConferencingProvider.html +6 -6
- package/dist/docs/enums/plot.ThemeColor.html +10 -10
- package/dist/docs/enums/tag.Tag.html +16 -46
- package/dist/docs/enums/tools_ai.AIModel.html +2 -2
- package/dist/docs/enums/tools_integrations.AuthProvider.html +13 -13
- package/dist/docs/enums/{tools_plot.PriorityAccess.html → tools_plot.FocusAccess.html} +6 -6
- package/dist/docs/enums/tools_plot.ThreadAccess.html +1 -1
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/interfaces/tools_ai.AIRequest.html +27 -11
- package/dist/docs/interfaces/tools_ai.AIResponse.html +9 -9
- package/dist/docs/interfaces/tools_ai.FilePart.html +5 -5
- package/dist/docs/interfaces/tools_ai.ImagePart.html +4 -4
- package/dist/docs/interfaces/tools_ai.ReasoningPart.html +4 -4
- package/dist/docs/interfaces/tools_ai.RedactedReasoningPart.html +3 -3
- package/dist/docs/interfaces/tools_ai.TextPart.html +3 -3
- package/dist/docs/interfaces/tools_ai.ToolCallPart.html +5 -5
- package/dist/docs/interfaces/tools_ai.ToolExecutionOptions.html +4 -4
- package/dist/docs/interfaces/tools_ai.ToolResultPart.html +5 -5
- package/dist/docs/media/AGENTS.md +22 -14
- package/dist/docs/modules/index.html +1 -1
- package/dist/docs/modules/plot.html +1 -1
- package/dist/docs/modules/tools_integrations.html +1 -1
- package/dist/docs/modules/tools_plot.html +1 -1
- package/dist/docs/types/index.CreateLinkDraft.html +31 -7
- package/dist/docs/types/index.NoteWriteBackResult.html +3 -3
- package/dist/docs/types/index.ReactionCapabilities.html +17 -0
- package/dist/docs/types/index.ResolvedRecipient.html +24 -0
- package/dist/docs/types/index.Schedule.html +1 -1
- package/dist/docs/types/plot.Action.html +9 -2
- package/dist/docs/types/plot.Actor.html +5 -5
- package/dist/docs/types/plot.ActorId.html +1 -1
- package/dist/docs/types/plot.Contact.html +4 -4
- package/dist/docs/types/plot.ContentType.html +1 -1
- package/dist/docs/types/{plot.Priority.html → plot.Focus.html} +14 -11
- package/dist/docs/types/plot.FocusUpdate.html +3 -0
- package/dist/docs/types/plot.Link.html +16 -16
- package/dist/docs/types/plot.LinkUpdate.html +1 -1
- package/dist/docs/types/plot.NewActor.html +1 -1
- package/dist/docs/types/plot.NewContact.html +1 -1
- package/dist/docs/types/plot.NewFocus.html +13 -0
- package/dist/docs/types/plot.NewLink.html +6 -6
- package/dist/docs/types/plot.NewLinkWithNotes.html +1 -1
- package/dist/docs/types/plot.NewNote.html +5 -3
- package/dist/docs/types/plot.NewReactions.html +4 -0
- package/dist/docs/types/plot.NewTags.html +1 -1
- package/dist/docs/types/plot.NewThread.html +6 -4
- package/dist/docs/types/plot.NewThreadWithNotes.html +1 -1
- package/dist/docs/types/plot.Note.html +2 -2
- package/dist/docs/types/plot.NoteUpdate.html +4 -2
- package/dist/docs/types/plot.PlanOperation.html +6 -6
- package/dist/docs/types/plot.Reaction.html +13 -0
- package/dist/docs/types/plot.Reactions.html +3 -0
- package/dist/docs/types/plot.Tags.html +1 -1
- package/dist/docs/types/plot.Thread.html +1 -1
- package/dist/docs/types/plot.ThreadAccessLevel.html +3 -3
- package/dist/docs/types/plot.ThreadCommon.html +9 -5
- package/dist/docs/types/plot.ThreadFilter.html +2 -2
- package/dist/docs/types/plot.ThreadMeta.html +1 -1
- package/dist/docs/types/plot.ThreadType.html +4 -4
- package/dist/docs/types/plot.ThreadUpdate.html +1 -1
- package/dist/docs/types/plot.ThreadWithNotes.html +1 -1
- package/dist/docs/types/tools_ai.AIAssistantMessage.html +2 -2
- package/dist/docs/types/tools_ai.AICapabilities.html +7 -3
- package/dist/docs/types/tools_ai.AIMessage.html +1 -1
- package/dist/docs/types/tools_ai.AIOptions.html +2 -2
- package/dist/docs/types/tools_ai.AISource.html +1 -1
- package/dist/docs/types/tools_ai.AISystemMessage.html +2 -2
- package/dist/docs/types/tools_ai.AITool.html +10 -9
- package/dist/docs/types/tools_ai.AIToolMessage.html +2 -2
- package/dist/docs/types/tools_ai.AIToolSet.html +1 -1
- package/dist/docs/types/tools_ai.AIUsage.html +5 -5
- package/dist/docs/types/tools_ai.AIUserMessage.html +2 -2
- package/dist/docs/types/tools_ai.DataContent.html +1 -1
- package/dist/docs/types/tools_ai.ModelPreferences.html +4 -4
- package/dist/docs/types/tools_integrations.ArchiveLinkFilter.html +5 -5
- package/dist/docs/types/tools_integrations.AuthToken.html +4 -4
- package/dist/docs/types/tools_integrations.Authorization.html +4 -4
- package/dist/docs/types/tools_integrations.Channel.html +5 -5
- package/dist/docs/types/tools_integrations.ComposeConfig.html +35 -0
- package/dist/docs/types/tools_integrations.ContactRoleConfig.html +14 -0
- package/dist/docs/types/tools_integrations.LinkTypeConfig.html +55 -28
- package/dist/docs/types/tools_integrations.SyncContext.html +3 -3
- package/dist/docs/types/tools_plot.SearchOptions.html +5 -6
- package/dist/docs/types/tools_twists.TwistPermissions.html +1 -1
- package/dist/llm-docs/connector.d.ts +1 -1
- package/dist/llm-docs/connector.d.ts.map +1 -1
- package/dist/llm-docs/connector.js +1 -1
- package/dist/llm-docs/connector.js.map +1 -1
- package/dist/llm-docs/index.d.ts.map +1 -1
- package/dist/llm-docs/index.js +2 -0
- package/dist/llm-docs/index.js.map +1 -1
- package/dist/llm-docs/plot.d.ts +1 -1
- package/dist/llm-docs/plot.d.ts.map +1 -1
- package/dist/llm-docs/plot.js +1 -1
- package/dist/llm-docs/plot.js.map +1 -1
- package/dist/llm-docs/schedule.d.ts +1 -1
- package/dist/llm-docs/schedule.d.ts.map +1 -1
- package/dist/llm-docs/schedule.js +1 -1
- package/dist/llm-docs/schedule.js.map +1 -1
- package/dist/llm-docs/tag.d.ts +1 -1
- package/dist/llm-docs/tag.d.ts.map +1 -1
- package/dist/llm-docs/tag.js +1 -1
- package/dist/llm-docs/tag.js.map +1 -1
- package/dist/llm-docs/tools/ai.d.ts +1 -1
- package/dist/llm-docs/tools/ai.d.ts.map +1 -1
- package/dist/llm-docs/tools/ai.js +1 -1
- package/dist/llm-docs/tools/ai.js.map +1 -1
- package/dist/llm-docs/tools/files.d.ts +9 -0
- package/dist/llm-docs/tools/files.d.ts.map +1 -0
- package/dist/llm-docs/tools/files.js +8 -0
- package/dist/llm-docs/tools/files.js.map +1 -0
- package/dist/llm-docs/tools/integrations.d.ts +1 -1
- package/dist/llm-docs/tools/integrations.d.ts.map +1 -1
- package/dist/llm-docs/tools/integrations.js +1 -1
- package/dist/llm-docs/tools/integrations.js.map +1 -1
- package/dist/llm-docs/tools/plot.d.ts +1 -1
- package/dist/llm-docs/tools/plot.d.ts.map +1 -1
- package/dist/llm-docs/tools/plot.js +1 -1
- package/dist/llm-docs/tools/plot.js.map +1 -1
- package/dist/llm-docs/tools/twists.d.ts +1 -1
- package/dist/llm-docs/tools/twists.d.ts.map +1 -1
- package/dist/llm-docs/tools/twists.js +1 -1
- package/dist/llm-docs/tools/twists.js.map +1 -1
- package/dist/llm-docs/twist-guide-template.d.ts +1 -1
- package/dist/llm-docs/twist-guide-template.d.ts.map +1 -1
- package/dist/llm-docs/twist-guide-template.js +1 -1
- package/dist/llm-docs/twist-guide-template.js.map +1 -1
- package/dist/llm-docs/twist.d.ts +1 -1
- package/dist/llm-docs/twist.d.ts.map +1 -1
- package/dist/llm-docs/twist.js +1 -1
- package/dist/llm-docs/twist.js.map +1 -1
- package/dist/plot.d.ts +146 -85
- package/dist/plot.d.ts.map +1 -1
- package/dist/plot.js +3 -1
- package/dist/plot.js.map +1 -1
- package/dist/schedule.d.ts +1 -1
- package/dist/tag.d.ts +17 -43
- package/dist/tag.d.ts.map +1 -1
- package/dist/tag.js +17 -46
- package/dist/tag.js.map +1 -1
- package/dist/tools/ai.d.ts +46 -10
- package/dist/tools/ai.d.ts.map +1 -1
- package/dist/tools/ai.js.map +1 -1
- package/dist/tools/files.d.ts +33 -0
- package/dist/tools/files.d.ts.map +1 -0
- package/dist/tools/files.js +22 -0
- package/dist/tools/files.js.map +1 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/integrations.d.ts +130 -50
- package/dist/tools/integrations.d.ts.map +1 -1
- package/dist/tools/integrations.js.map +1 -1
- package/dist/tools/plot.d.ts +66 -56
- package/dist/tools/plot.d.ts.map +1 -1
- package/dist/tools/plot.js +14 -14
- package/dist/tools/plot.js.map +1 -1
- package/dist/tools/twists.d.ts +2 -2
- package/dist/twist-guide.d.ts +1 -1
- package/dist/twist-guide.d.ts.map +1 -1
- package/dist/twist.d.ts +3 -3
- package/dist/twist.js +3 -3
- package/package.json +6 -1
- package/src/connector.ts +182 -10
- package/src/llm-docs/connector.ts +1 -1
- package/src/llm-docs/index.ts +2 -0
- package/src/llm-docs/plot.ts +1 -1
- package/src/llm-docs/schedule.ts +1 -1
- package/src/llm-docs/tag.ts +1 -1
- package/src/llm-docs/tools/ai.ts +1 -1
- package/src/llm-docs/tools/files.ts +8 -0
- package/src/llm-docs/tools/integrations.ts +1 -1
- package/src/llm-docs/tools/plot.ts +1 -1
- package/src/llm-docs/tools/twists.ts +1 -1
- package/src/llm-docs/twist-guide-template.ts +1 -1
- package/src/llm-docs/twist.ts +1 -1
- package/src/plot.ts +156 -75
- package/src/schedule.ts +1 -1
- package/src/tag.ts +17 -48
- package/src/tools/ai.ts +46 -10
- package/src/tools/files.ts +37 -0
- package/src/tools/index.ts +1 -0
- package/src/tools/integrations.ts +131 -61
- package/src/tools/plot.ts +69 -59
- package/src/tools/twists.ts +2 -2
- package/src/twist.ts +3 -3
- package/dist/docs/types/plot.NewPriority.html +0 -15
- package/dist/docs/types/plot.PriorityUpdate.html +0 -5
package/dist/llm-docs/twist.js
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* This file is auto-generated during build. Do not edit manually.
|
|
5
5
|
* Generated from: prebuild.ts
|
|
6
6
|
*/
|
|
7
|
-
export default "import type { NoteWriteBackResult } from \"./connector\";\nimport { type Action, type Actor, type ActorId, type Link, type Note, type Thread, Uuid } from \"./plot\";\nimport type { Tag } from \"./tag\";\nimport { type ITool } from \"./tool\";\nimport type { Callback } from \"./tools/callbacks\";\nimport type { Serializable } from \"./utils/serializable\";\nimport type { InferTools, ToolBuilder, ToolShed } from \"./utils/types\";\n\n/**\n * Base class for all twists.\n *\n * A twist is installed at the workspace level and is owned by a single user\n * (see `this.userId`). It has no inherent priority scope: threads, notes, and\n * links it creates are filed against the owner's priorities, with automatic\n * priority matching when no explicit target is provided.\n *\n * Override `build()` to declare tool dependencies and lifecycle methods to\n * handle events.\n *\n * @example\n * ```typescript\n * class FlatteringTwist extends Twist<FlatteringTwist> {\n * build(build: ToolBuilder) {\n * return {\n * plot: build(Plot),\n * };\n * }\n *\n * async activate() {\n * await this.tools.plot.createThread({\n * title: \"Hello, good looking!\",\n * });\n * }\n * }\n * ```\n */\nexport abstract class Twist<TSelf> {\n /**\n * When `true`, users may install multiple instances of this twist within\n * the same scope (personal workspace or team). Each instance must have a\n * distinct name.\n *\n * Defaults to `false` (single instance per scope).\n *\n * @example\n * ```typescript\n * class WorkflowTwist extends Twist<WorkflowTwist> {\n * static readonly multipleInstances = true;\n * // ...\n * }\n * ```\n */\n static readonly multipleInstances?: boolean;\n\n /**\n * The user ID (`twist_instance.owner_id`) that installed this twist.\n * Populated by the runtime before any lifecycle method runs.\n */\n protected userId!: Uuid;\n\n constructor(protected id: Uuid, private toolShed: ToolShed) {}\n\n /**\n * Gets the initialized tools for this twist.\n * @throws Error if called before initialization is complete\n */\n protected get tools(): InferTools<TSelf> {\n return this.toolShed.getTools<InferTools<TSelf>>();\n }\n\n /**\n * Declares tool dependencies for this twist.\n * Return an object mapping tool names to build() promises.\n *\n * @param build - The build function to use for declaring dependencies\n * @returns Object mapping tool names to tool promises\n *\n * @example\n * ```typescript\n * build(build: ToolBuilder) {\n * return {\n * plot: build(Plot),\n * calendar: build(GoogleCalendar, { apiKey: \"...\" }),\n * };\n * }\n * ```\n */\n abstract build(build: ToolBuilder): Record<string, Promise<ITool>>;\n\n /**\n * Creates a persistent callback to a method on this twist.\n *\n * ExtraArgs are strongly typed to match the method's signature. They must be serializable.\n *\n * @param fn - The method to callback\n * @param extraArgs - Additional arguments to pass (type-checked, must be serializable)\n * @returns Promise resolving to a persistent callback token\n *\n * @example\n * ```typescript\n * const callback = await this.callback(this.onWebhook, \"calendar\", 123);\n * ```\n */\n protected callback<\n TArgs extends Serializable[],\n Fn extends (...args: TArgs) => any\n >(fn: Fn, ...extraArgs: TArgs): Promise<Callback>;\n // Overload when caller provides the first argument\n protected callback<\n TArgs extends Serializable[],\n Fn extends (arg1: any, ...extraArgs: TArgs) => any\n >(fn: Fn, ...extraArgs: TArgs): Promise<Callback>;\n protected async callback<\n TArgs extends Serializable[],\n Fn extends (...args: any[]) => any\n >(fn: Fn, ...extraArgs: TArgs): Promise<Callback> {\n return this.tools.callbacks.create(fn, ...extraArgs);\n }\n\n /**\n * Like callback(), but for an Action, which receives the action as the first argument.\n *\n * @param fn - The method to callback\n * @param extraArgs - Additional arguments to pass after the action\n * @returns Promise resolving to a persistent callback token\n *\n * @example\n * ```typescript\n * const callback = await this.actionCallback(this.doSomething, 123);\n * const action: Action = {\n * type: ActionType.callback,\n * title: \"Do Something\",\n * callback,\n * };\n * ```\n */\n protected async actionCallback<\n TArgs extends Serializable[],\n Fn extends (action: Action, ...extraArgs: TArgs) => any\n >(fn: Fn, ...extraArgs: TArgs): Promise<Callback> {\n return this.tools.callbacks.create(fn, ...extraArgs);\n }\n\n /**\n * Deletes a specific callback by its token.\n *\n * @param token - The callback token to delete\n * @returns Promise that resolves when the callback is deleted\n */\n protected async deleteCallback(token: Callback): Promise<void> {\n return this.tools.callbacks.delete(token);\n }\n\n /**\n * Deletes all callbacks for this twist.\n *\n * @returns Promise that resolves when all callbacks are deleted\n */\n protected async deleteAllCallbacks(): Promise<void> {\n return this.tools.callbacks.deleteAll();\n }\n\n /**\n * Executes a callback by its token inline in the current execution.\n *\n * **Use `this.runTask()` instead for batch continuations and long-running work.**\n * `this.run()` executes inline, sharing the current request count (~1000 limit)\n * and blocking the HTTP response. This causes timeouts when used in lifecycle\n * methods like `onChannelEnabled` or `syncBatch` continuations.\n *\n * `this.run()` is appropriate when you need the callback's **return value** —\n * e.g., running a parent callback token that returns data. For fire-and-forget\n * work, always prefer `this.runTask()`.\n *\n * @param token - The callback token to execute\n * @param args - Optional arguments to pass to the callback\n * @returns Promise resolving to the callback result\n */\n protected async run(token: Callback, ...args: []): Promise<any> {\n return this.tools.callbacks.run(token, ...args);\n }\n\n /**\n * Retrieves a value from persistent storage by key.\n *\n * Values are automatically deserialized using SuperJSON, which\n * properly restores Date objects, Maps, Sets, and other complex types.\n *\n * @template T - The expected type of the stored value (must be Serializable)\n * @param key - The storage key to retrieve\n * @returns Promise resolving to the stored value or null\n */\n protected async get<T extends import(\"./index\").Serializable>(\n key: string\n ): Promise<T | null> {\n return this.tools.store.get(key);\n }\n\n /**\n * Stores a value in persistent storage.\n *\n * The value will be serialized using SuperJSON and stored persistently.\n * SuperJSON automatically handles Date objects, Maps, Sets, undefined values,\n * and other complex types that standard JSON doesn't support.\n *\n * **Important**: Functions and Symbols cannot be stored.\n * **For function references**: Use callbacks instead of storing functions directly.\n *\n * @example\n * ```typescript\n * // ✅ Date objects are preserved\n * await this.set(\"sync_state\", {\n * lastSync: new Date(),\n * minDate: new Date(2024, 0, 1)\n * });\n *\n * // ✅ undefined is now supported\n * await this.set(\"data\", { name: \"test\", optional: undefined });\n *\n * // ❌ WRONG: Cannot store functions directly\n * await this.set(\"handler\", this.myHandler);\n *\n * // ✅ CORRECT: Create a callback token first\n * const token = await this.callback(this.myHandler, \"arg1\", \"arg2\");\n * await this.set(\"handler_token\", token);\n *\n * // Later, execute the callback\n * const token = await this.get<string>(\"handler_token\");\n * await this.run(token, args);\n * ```\n *\n * @template T - The type of value being stored (must be Serializable)\n * @param key - The storage key to use\n * @param value - The value to store (must be SuperJSON-serializable)\n * @returns Promise that resolves when the value is stored\n */\n protected async set<T extends import(\"./index\").Serializable>(\n key: string,\n value: T\n ): Promise<void> {\n return this.tools.store.set(key, value);\n }\n\n /**\n * Removes a specific key from persistent storage.\n *\n * @param key - The storage key to remove\n * @returns Promise that resolves when the key is removed\n */\n protected async clear(key: string): Promise<void> {\n return this.tools.store.clear(key);\n }\n\n /**\n * Removes all keys from this twist's storage.\n *\n * @returns Promise that resolves when all keys are removed\n */\n protected async clearAll(): Promise<void> {\n return this.tools.store.clearAll();\n }\n\n /**\n * Queues a callback to execute in a separate worker context.\n *\n * @param callback - The callback token created with `this.callback()`\n * @param options - Optional configuration for the execution\n * @param options.runAt - If provided, schedules execution at this time; otherwise runs immediately\n * @returns Promise resolving to a cancellation token (only for scheduled executions)\n */\n protected async runTask(\n callback: Callback,\n options?: { runAt?: Date }\n ): Promise<string | void> {\n return this.tools.tasks.runTask(callback, options);\n }\n\n /**\n * Cancels a previously scheduled execution.\n *\n * @param token - The cancellation token returned by runTask() with runAt option\n * @returns Promise that resolves when the cancellation is processed\n */\n protected async cancelTask(token: string): Promise<void> {\n return this.tools.tasks.cancelTask(token);\n }\n\n /**\n * Cancels all scheduled executions for this twist.\n *\n * @returns Promise that resolves when all cancellations are processed\n */\n protected async cancelAllTasks(): Promise<void> {\n return this.tools.tasks.cancelAllTasks();\n }\n\n /**\n * Called when the twist is installed by a user.\n *\n * This method should contain initialization logic such as seeding\n * initial threads, configuring webhooks, or establishing external\n * connections. When it runs, `this.userId` is already populated with\n * the installing user's ID.\n *\n * @param context - Optional context containing the actor who triggered activation\n * @returns Promise that resolves when activation is complete\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n activate(context?: { actor: Actor }): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a new version of the twist is deployed.\n *\n * This method should contain migration logic for updating old data structures\n * or setting up new resources that weren't needed by the previous version.\n * It is called once per active twist_instance with the new version.\n *\n * @returns Promise that resolves when upgrade is complete\n */\n upgrade(): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when the twist's options configuration changes.\n *\n * Override to react to option changes, e.g. archiving items when a sync\n * type is toggled off, or starting sync when a type is toggled on.\n *\n * @param oldOptions - The previously resolved options\n * @param newOptions - The newly resolved options\n * @returns Promise that resolves when the change is handled\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onOptionsChanged(\n oldOptions: Record<string, any>,\n newOptions: Record<string, any>\n ): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when the twist is uninstalled.\n *\n * This method should contain cleanup logic such as removing webhooks,\n * cleaning up external resources, or performing final data operations.\n *\n * @returns Promise that resolves when deactivation is complete\n */\n deactivate(): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a thread created by this twist is updated.\n * Override to implement two-way sync with an external system.\n *\n * @param thread - The updated thread\n * @param changes - Tag additions and removals on the thread\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onThreadUpdated(\n thread: Thread,\n changes: {\n tagsAdded: Record<Tag, ActorId[]>;\n tagsRemoved: Record<Tag, ActorId[]>;\n }\n ): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a note is created on a thread created by this twist.\n * Override to implement two-way sync (e.g. syncing notes as comments).\n *\n * Notes created by the twist itself are filtered out to prevent loops.\n *\n * Returning a string sets the note's `key` for future upsert matching,\n * linking the Plot note to its external counterpart so that subsequent\n * syncs (reactions, edits) update the existing note instead of creating duplicates.\n *\n * @param note - The newly created note\n * @returns Optional note key for external deduplication\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onNoteCreated(note: Note, ...args: any[]): Promise<string | NoteWriteBackResult | void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a link is created in a connected source channel.\n * Requires `link: true` in Plot options.\n *\n * @param link - The newly created link\n * @param notes - Notes on the link's thread\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onLinkCreated(link: Link, notes: Note[]): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a link in a connected source channel is updated.\n * Requires `link: true` in Plot options.\n *\n * @param link - The updated link\n * @param notes - Notes on the link's thread (optional)\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onLinkUpdated(link: Link, notes?: Note[]): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a note is created on a thread with a link from a connected channel.\n * Requires `link: true` in Plot options.\n *\n * @param note - The newly created note\n * @param link - The link associated with the thread\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onLinkNoteCreated(note: Note, link: Link): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Waits for tool initialization to complete.\n * Called automatically by the entrypoint before lifecycle methods.\n * @internal\n */\n async waitForReady(): Promise<void> {\n await this.toolShed.waitForReady();\n }\n}\n";
|
|
7
|
+
export default "import type { NoteWriteBackResult } from \"./connector\";\nimport { type Action, type Actor, type ActorId, type Link, type Note, type Thread, Uuid } from \"./plot\";\nimport type { Tag } from \"./tag\";\nimport { type ITool } from \"./tool\";\nimport type { Callback } from \"./tools/callbacks\";\nimport type { Serializable } from \"./utils/serializable\";\nimport type { InferTools, ToolBuilder, ToolShed } from \"./utils/types\";\n\n/**\n * Base class for all twists.\n *\n * A twist is installed at the workspace level and is owned by a single user\n * (see `this.userId`). It has no inherent focus scope: threads, notes, and\n * links it creates are filed against the owner's focuses, with automatic\n * focus matching when no explicit target is provided.\n *\n * Override `build()` to declare tool dependencies and lifecycle methods to\n * handle events.\n *\n * @example\n * ```typescript\n * class FlatteringTwist extends Twist<FlatteringTwist> {\n * build(build: ToolBuilder) {\n * return {\n * plot: build(Plot),\n * };\n * }\n *\n * async activate() {\n * await this.tools.plot.createThread({\n * title: \"Hello, good looking!\",\n * });\n * }\n * }\n * ```\n */\nexport abstract class Twist<TSelf> {\n /**\n * When `true`, users may install multiple instances of this twist within\n * the same scope (personal workspace or team). Each instance must have a\n * distinct name.\n *\n * Defaults to `false` (single instance per scope).\n *\n * @example\n * ```typescript\n * class WorkflowTwist extends Twist<WorkflowTwist> {\n * static readonly multipleInstances = true;\n * // ...\n * }\n * ```\n */\n static readonly multipleInstances?: boolean;\n\n /**\n * The user ID (`twist_instance.owner_id`) that installed this twist.\n * Populated by the runtime before any lifecycle method runs.\n */\n protected userId!: Uuid;\n\n constructor(protected id: Uuid, private toolShed: ToolShed) {}\n\n /**\n * Gets the initialized tools for this twist.\n * @throws Error if called before initialization is complete\n */\n protected get tools(): InferTools<TSelf> {\n return this.toolShed.getTools<InferTools<TSelf>>();\n }\n\n /**\n * Declares tool dependencies for this twist.\n * Return an object mapping tool names to build() promises.\n *\n * @param build - The build function to use for declaring dependencies\n * @returns Object mapping tool names to tool promises\n *\n * @example\n * ```typescript\n * build(build: ToolBuilder) {\n * return {\n * plot: build(Plot),\n * calendar: build(GoogleCalendar, { apiKey: \"...\" }),\n * };\n * }\n * ```\n */\n abstract build(build: ToolBuilder): Record<string, Promise<ITool>>;\n\n /**\n * Creates a persistent callback to a method on this twist.\n *\n * ExtraArgs are strongly typed to match the method's signature. They must be serializable.\n *\n * @param fn - The method to callback\n * @param extraArgs - Additional arguments to pass (type-checked, must be serializable)\n * @returns Promise resolving to a persistent callback token\n *\n * @example\n * ```typescript\n * const callback = await this.callback(this.onWebhook, \"calendar\", 123);\n * ```\n */\n protected callback<\n TArgs extends Serializable[],\n Fn extends (...args: TArgs) => any\n >(fn: Fn, ...extraArgs: TArgs): Promise<Callback>;\n // Overload when caller provides the first argument\n protected callback<\n TArgs extends Serializable[],\n Fn extends (arg1: any, ...extraArgs: TArgs) => any\n >(fn: Fn, ...extraArgs: TArgs): Promise<Callback>;\n protected async callback<\n TArgs extends Serializable[],\n Fn extends (...args: any[]) => any\n >(fn: Fn, ...extraArgs: TArgs): Promise<Callback> {\n return this.tools.callbacks.create(fn, ...extraArgs);\n }\n\n /**\n * Like callback(), but for an Action, which receives the action as the first argument.\n *\n * @param fn - The method to callback\n * @param extraArgs - Additional arguments to pass after the action\n * @returns Promise resolving to a persistent callback token\n *\n * @example\n * ```typescript\n * const callback = await this.actionCallback(this.doSomething, 123);\n * const action: Action = {\n * type: ActionType.callback,\n * title: \"Do Something\",\n * callback,\n * };\n * ```\n */\n protected async actionCallback<\n TArgs extends Serializable[],\n Fn extends (action: Action, ...extraArgs: TArgs) => any\n >(fn: Fn, ...extraArgs: TArgs): Promise<Callback> {\n return this.tools.callbacks.create(fn, ...extraArgs);\n }\n\n /**\n * Deletes a specific callback by its token.\n *\n * @param token - The callback token to delete\n * @returns Promise that resolves when the callback is deleted\n */\n protected async deleteCallback(token: Callback): Promise<void> {\n return this.tools.callbacks.delete(token);\n }\n\n /**\n * Deletes all callbacks for this twist.\n *\n * @returns Promise that resolves when all callbacks are deleted\n */\n protected async deleteAllCallbacks(): Promise<void> {\n return this.tools.callbacks.deleteAll();\n }\n\n /**\n * Executes a callback by its token inline in the current execution.\n *\n * **Use `this.runTask()` instead for batch continuations and long-running work.**\n * `this.run()` executes inline, sharing the current request count (~1000 limit)\n * and blocking the HTTP response. This causes timeouts when used in lifecycle\n * methods like `onChannelEnabled` or `syncBatch` continuations.\n *\n * `this.run()` is appropriate when you need the callback's **return value** —\n * e.g., running a parent callback token that returns data. For fire-and-forget\n * work, always prefer `this.runTask()`.\n *\n * @param token - The callback token to execute\n * @param args - Optional arguments to pass to the callback\n * @returns Promise resolving to the callback result\n */\n protected async run(token: Callback, ...args: []): Promise<any> {\n return this.tools.callbacks.run(token, ...args);\n }\n\n /**\n * Retrieves a value from persistent storage by key.\n *\n * Values are automatically deserialized using SuperJSON, which\n * properly restores Date objects, Maps, Sets, and other complex types.\n *\n * @template T - The expected type of the stored value (must be Serializable)\n * @param key - The storage key to retrieve\n * @returns Promise resolving to the stored value or null\n */\n protected async get<T extends import(\"./index\").Serializable>(\n key: string\n ): Promise<T | null> {\n return this.tools.store.get(key);\n }\n\n /**\n * Stores a value in persistent storage.\n *\n * The value will be serialized using SuperJSON and stored persistently.\n * SuperJSON automatically handles Date objects, Maps, Sets, undefined values,\n * and other complex types that standard JSON doesn't support.\n *\n * **Important**: Functions and Symbols cannot be stored.\n * **For function references**: Use callbacks instead of storing functions directly.\n *\n * @example\n * ```typescript\n * // ✅ Date objects are preserved\n * await this.set(\"sync_state\", {\n * lastSync: new Date(),\n * minDate: new Date(2024, 0, 1)\n * });\n *\n * // ✅ undefined is now supported\n * await this.set(\"data\", { name: \"test\", optional: undefined });\n *\n * // ❌ WRONG: Cannot store functions directly\n * await this.set(\"handler\", this.myHandler);\n *\n * // ✅ CORRECT: Create a callback token first\n * const token = await this.callback(this.myHandler, \"arg1\", \"arg2\");\n * await this.set(\"handler_token\", token);\n *\n * // Later, execute the callback\n * const token = await this.get<string>(\"handler_token\");\n * await this.run(token, args);\n * ```\n *\n * @template T - The type of value being stored (must be Serializable)\n * @param key - The storage key to use\n * @param value - The value to store (must be SuperJSON-serializable)\n * @returns Promise that resolves when the value is stored\n */\n protected async set<T extends import(\"./index\").Serializable>(\n key: string,\n value: T\n ): Promise<void> {\n return this.tools.store.set(key, value);\n }\n\n /**\n * Removes a specific key from persistent storage.\n *\n * @param key - The storage key to remove\n * @returns Promise that resolves when the key is removed\n */\n protected async clear(key: string): Promise<void> {\n return this.tools.store.clear(key);\n }\n\n /**\n * Removes all keys from this twist's storage.\n *\n * @returns Promise that resolves when all keys are removed\n */\n protected async clearAll(): Promise<void> {\n return this.tools.store.clearAll();\n }\n\n /**\n * Queues a callback to execute in a separate worker context.\n *\n * @param callback - The callback token created with `this.callback()`\n * @param options - Optional configuration for the execution\n * @param options.runAt - If provided, schedules execution at this time; otherwise runs immediately\n * @returns Promise resolving to a cancellation token (only for scheduled executions)\n */\n protected async runTask(\n callback: Callback,\n options?: { runAt?: Date }\n ): Promise<string | void> {\n return this.tools.tasks.runTask(callback, options);\n }\n\n /**\n * Cancels a previously scheduled execution.\n *\n * @param token - The cancellation token returned by runTask() with runAt option\n * @returns Promise that resolves when the cancellation is processed\n */\n protected async cancelTask(token: string): Promise<void> {\n return this.tools.tasks.cancelTask(token);\n }\n\n /**\n * Cancels all scheduled executions for this twist.\n *\n * @returns Promise that resolves when all cancellations are processed\n */\n protected async cancelAllTasks(): Promise<void> {\n return this.tools.tasks.cancelAllTasks();\n }\n\n /**\n * Called when the twist is installed by a user.\n *\n * This method should contain initialization logic such as seeding\n * initial threads, configuring webhooks, or establishing external\n * connections. When it runs, `this.userId` is already populated with\n * the installing user's ID.\n *\n * @param context - Optional context containing the actor who triggered activation\n * @returns Promise that resolves when activation is complete\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n activate(context?: { actor: Actor }): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a new version of the twist is deployed.\n *\n * This method should contain migration logic for updating old data structures\n * or setting up new resources that weren't needed by the previous version.\n * It is called once per active twist_instance with the new version.\n *\n * @returns Promise that resolves when upgrade is complete\n */\n upgrade(): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when the twist's options configuration changes.\n *\n * Override to react to option changes, e.g. archiving items when a sync\n * type is toggled off, or starting sync when a type is toggled on.\n *\n * @param oldOptions - The previously resolved options\n * @param newOptions - The newly resolved options\n * @returns Promise that resolves when the change is handled\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onOptionsChanged(\n oldOptions: Record<string, any>,\n newOptions: Record<string, any>\n ): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when the twist is uninstalled.\n *\n * This method should contain cleanup logic such as removing webhooks,\n * cleaning up external resources, or performing final data operations.\n *\n * @returns Promise that resolves when deactivation is complete\n */\n deactivate(): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a thread created by this twist is updated.\n * Override to implement two-way sync with an external system.\n *\n * @param thread - The updated thread\n * @param changes - Tag additions and removals on the thread\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onThreadUpdated(\n thread: Thread,\n changes: {\n tagsAdded: Record<Tag, ActorId[]>;\n tagsRemoved: Record<Tag, ActorId[]>;\n }\n ): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a note is created on a thread created by this twist.\n * Override to implement two-way sync (e.g. syncing notes as comments).\n *\n * Notes created by the twist itself are filtered out to prevent loops.\n *\n * Returning a string sets the note's `key` for future upsert matching,\n * linking the Plot note to its external counterpart so that subsequent\n * syncs (reactions, edits) update the existing note instead of creating duplicates.\n *\n * @param note - The newly created note\n * @returns Optional note key for external deduplication\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onNoteCreated(note: Note, ...args: any[]): Promise<string | NoteWriteBackResult | void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a link is created in a connected source channel.\n * Requires `link: true` in Plot options.\n *\n * @param link - The newly created link\n * @param notes - Notes on the link's thread\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onLinkCreated(link: Link, notes: Note[]): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a link in a connected source channel is updated.\n * Requires `link: true` in Plot options.\n *\n * @param link - The updated link\n * @param notes - Notes on the link's thread (optional)\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onLinkUpdated(link: Link, notes?: Note[]): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Called when a note is created on a thread with a link from a connected channel.\n * Requires `link: true` in Plot options.\n *\n * @param note - The newly created note\n * @param link - The link associated with the thread\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onLinkNoteCreated(note: Note, link: Link): Promise<void> {\n return Promise.resolve();\n }\n\n /**\n * Waits for tool initialization to complete.\n * Called automatically by the entrypoint before lifecycle methods.\n * @internal\n */\n async waitForReady(): Promise<void> {\n await this.toolShed.waitForReady();\n }\n}\n";
|
|
8
8
|
//# sourceMappingURL=twist.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twist.js","sourceRoot":"","sources":["../../src/llm-docs/twist.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe,
|
|
1
|
+
{"version":3,"file":"twist.js","sourceRoot":"","sources":["../../src/llm-docs/twist.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe,0hdAA0hd,CAAC"}
|
package/dist/plot.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { NewSchedule, NewScheduleOccurrence, Schedule } from "./schedule";
|
|
2
2
|
import { type Tag } from "./tag";
|
|
3
3
|
import { type Callback } from "./tools/callbacks";
|
|
4
|
-
import { type AuthProvider } from "./tools/integrations";
|
|
5
4
|
import { type JSONValue } from "./utils/types";
|
|
6
5
|
import { Uuid } from "./utils/uuid";
|
|
7
6
|
export { Tag } from "./tag";
|
|
@@ -10,13 +9,13 @@ export { type JSONValue } from "./utils/types";
|
|
|
10
9
|
export { type AuthProvider } from "./tools/integrations";
|
|
11
10
|
/**
|
|
12
11
|
* @fileoverview
|
|
13
|
-
* Core Plot entity types for working with threads, notes,
|
|
12
|
+
* Core Plot entity types for working with threads, notes, focuses, and contacts.
|
|
14
13
|
*
|
|
15
14
|
* ## Type Pattern: Null vs Undefined Semantics
|
|
16
15
|
*
|
|
17
16
|
* Plot entity types use a consistent pattern to distinguish between missing, unset, and explicitly cleared values:
|
|
18
17
|
*
|
|
19
|
-
* ### Entity Types (Thread,
|
|
18
|
+
* ### Entity Types (Thread, Focus, Note, Actor)
|
|
20
19
|
* - **Required fields**: No `?`, cannot be `undefined`
|
|
21
20
|
* - Example: `id: Uuid`, `title: string`
|
|
22
21
|
* - **Nullable fields**: Use `| null` to allow explicit clearing
|
|
@@ -29,10 +28,10 @@ export { type AuthProvider } from "./tools/integrations";
|
|
|
29
28
|
* - `null` = field included but not set
|
|
30
29
|
* - Value = field has a value
|
|
31
30
|
*
|
|
32
|
-
* ### New* Types (NewThread, NewNote,
|
|
31
|
+
* ### New* Types (NewThread, NewNote, NewFocus)
|
|
33
32
|
* Used for creating or updating entities. Support partial updates by distinguishing omitted vs cleared fields:
|
|
34
33
|
* - **Required fields**: Must be provided (no `?`)
|
|
35
|
-
* - Example: `title: string` in
|
|
34
|
+
* - Example: `title: string` in NewFocus
|
|
36
35
|
* - **Optional fields**: Use `?` to make them optional
|
|
37
36
|
* - Example: `title?: string`, `author?: NewActor`
|
|
38
37
|
* - `undefined` (omitted) = don't set/update this field
|
|
@@ -75,7 +74,7 @@ export type ActorId = string & {
|
|
|
75
74
|
readonly __brand: "ActorId";
|
|
76
75
|
};
|
|
77
76
|
/**
|
|
78
|
-
* Theme colors for
|
|
77
|
+
* Theme colors for focuses.
|
|
79
78
|
*/
|
|
80
79
|
export declare enum ThemeColor {
|
|
81
80
|
/** Catalyst - Green */
|
|
@@ -96,74 +95,60 @@ export declare enum ThemeColor {
|
|
|
96
95
|
Resolution = 7
|
|
97
96
|
}
|
|
98
97
|
/**
|
|
99
|
-
* Represents a
|
|
98
|
+
* Represents a focus within Plot.
|
|
100
99
|
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
100
|
+
* A focus is similar to a project or area-of-life. All Activity is in a Focus.
|
|
101
|
+
* Focuses are flat — they have no parent and no children. Threads not matched
|
|
102
|
+
* to any focus live in the Inbox.
|
|
103
103
|
*/
|
|
104
|
-
export type
|
|
105
|
-
/** Unique identifier for the
|
|
104
|
+
export type Focus = {
|
|
105
|
+
/** Unique identifier for the focus */
|
|
106
106
|
id: Uuid;
|
|
107
|
-
/** Human-readable title for the
|
|
107
|
+
/** Human-readable title for the focus */
|
|
108
108
|
title: string;
|
|
109
|
-
/** Whether this
|
|
109
|
+
/** Whether this focus has been archived */
|
|
110
110
|
archived: boolean;
|
|
111
111
|
/**
|
|
112
|
-
* Optional key for referencing this
|
|
113
|
-
* Keys are unique per
|
|
112
|
+
* Optional key for referencing this focus.
|
|
113
|
+
* Keys are unique per user.
|
|
114
114
|
*/
|
|
115
115
|
key: string | null;
|
|
116
|
-
/** Optional theme color for the
|
|
116
|
+
/** Optional theme color for the focus (0-7). Defaults to 7 (Resolution) when not set. */
|
|
117
117
|
color: ThemeColor | null;
|
|
118
|
+
/** Optional icon for the focus (a curated icon key). Defaults to the focus icon when not set. */
|
|
119
|
+
icon: string | null;
|
|
118
120
|
};
|
|
119
121
|
/**
|
|
120
|
-
* Type for creating new
|
|
122
|
+
* Type for creating new focuses.
|
|
121
123
|
*
|
|
122
124
|
* Supports multiple creation patterns:
|
|
123
|
-
* - Provide a specific UUID for the
|
|
124
|
-
* - Provide a key for upsert within the user's
|
|
125
|
+
* - Provide a specific UUID for the focus
|
|
126
|
+
* - Provide a key for upsert within the user's focuses
|
|
125
127
|
* - Omit both to auto-generate a new UUID
|
|
126
|
-
*
|
|
127
|
-
* Optionally specify a parent priority by ID or key for hierarchical structures.
|
|
128
128
|
*/
|
|
129
|
-
export type
|
|
129
|
+
export type NewFocus = Pick<Focus, "title"> & Partial<Omit<Focus, "id" | "title">> & ({
|
|
130
130
|
/**
|
|
131
|
-
* Unique identifier for the
|
|
132
|
-
* Specifying an ID allows tools to track and upsert
|
|
131
|
+
* Unique identifier for the focus, generated by Uuid.Generate().
|
|
132
|
+
* Specifying an ID allows tools to track and upsert focuses.
|
|
133
133
|
*/
|
|
134
134
|
id: Uuid;
|
|
135
135
|
} | {
|
|
136
136
|
/**
|
|
137
|
-
* Unique key for the
|
|
137
|
+
* Unique key for the focus within the user's focuses.
|
|
138
138
|
* Can be used to upsert without knowing the UUID.
|
|
139
|
-
* For example, "@plot" identifies the Plot
|
|
139
|
+
* For example, "@plot" identifies the Plot focus.
|
|
140
140
|
*/
|
|
141
141
|
key: string;
|
|
142
|
-
} | {})
|
|
143
|
-
/** Add the new priority as the child of another priority */
|
|
144
|
-
parent?: {
|
|
145
|
-
id: Uuid;
|
|
146
|
-
} | {
|
|
147
|
-
key: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
142
|
+
} | {});
|
|
150
143
|
/**
|
|
151
|
-
* Type for updating existing
|
|
152
|
-
* Must provide either id or key to identify the
|
|
153
|
-
* Set `parent` to move the priority under a new parent (requires PriorityAccess.Full).
|
|
144
|
+
* Type for updating existing focuses.
|
|
145
|
+
* Must provide either id or key to identify the focus to update.
|
|
154
146
|
*/
|
|
155
|
-
export type
|
|
147
|
+
export type FocusUpdate = ({
|
|
156
148
|
id: Uuid;
|
|
157
149
|
} | {
|
|
158
150
|
key: string;
|
|
159
|
-
}) & Partial<Pick<
|
|
160
|
-
/** Move the priority under a new parent. Requires PriorityAccess.Full. */
|
|
161
|
-
parent?: {
|
|
162
|
-
id: Uuid;
|
|
163
|
-
} | {
|
|
164
|
-
key: string;
|
|
165
|
-
};
|
|
166
|
-
};
|
|
151
|
+
}) & Partial<Pick<Focus, "title" | "archived">>;
|
|
167
152
|
/**
|
|
168
153
|
* Enumeration of supported action types.
|
|
169
154
|
*
|
|
@@ -181,6 +166,8 @@ export declare enum ActionType {
|
|
|
181
166
|
conferencing = "conferencing",
|
|
182
167
|
/** File attachment links stored in R2 */
|
|
183
168
|
file = "file",
|
|
169
|
+
/** Reference to an attachment hosted by a connector's source system */
|
|
170
|
+
fileRef = "fileRef",
|
|
184
171
|
/** Thread reference links for navigating to related threads */
|
|
185
172
|
thread = "thread",
|
|
186
173
|
/** Structured plan of operations for user approval */
|
|
@@ -290,6 +277,21 @@ export type Action = {
|
|
|
290
277
|
imageWidth?: number | null;
|
|
291
278
|
/** Intrinsic height of the image in pixels (only for image files) */
|
|
292
279
|
imageHeight?: number | null;
|
|
280
|
+
} | {
|
|
281
|
+
/** Reference to an attachment hosted by a connector's source system */
|
|
282
|
+
type: ActionType.fileRef;
|
|
283
|
+
/** Opaque identifier interpreted only by the owning connector */
|
|
284
|
+
ref: string;
|
|
285
|
+
/** Display filename */
|
|
286
|
+
fileName: string;
|
|
287
|
+
/** File size in bytes if known */
|
|
288
|
+
fileSize: number | null;
|
|
289
|
+
/** MIME type */
|
|
290
|
+
mimeType: string;
|
|
291
|
+
/** Intrinsic width of the image in pixels (only for image files) */
|
|
292
|
+
imageWidth?: number | null;
|
|
293
|
+
/** Intrinsic height of the image in pixels (only for image files) */
|
|
294
|
+
imageHeight?: number | null;
|
|
293
295
|
} | {
|
|
294
296
|
/** Thread reference action for navigating to a related thread */
|
|
295
297
|
type: ActionType.thread;
|
|
@@ -344,9 +346,9 @@ export type ThreadMeta = {
|
|
|
344
346
|
};
|
|
345
347
|
/**
|
|
346
348
|
* Thread sub-type that determines the thread's icon and category.
|
|
347
|
-
* Available types depend on whether the
|
|
348
|
-
* - Private
|
|
349
|
-
* - Shared
|
|
349
|
+
* Available types depend on whether the focus is shared:
|
|
350
|
+
* - Private focuses: "action" (default for tasks), "notes" (default), "idea", "goal", "decision"
|
|
351
|
+
* - Shared focuses: all above plus "discussion" (default), "announcement", "ask"
|
|
350
352
|
*/
|
|
351
353
|
export type ThreadType = "action" | "notes" | "idea" | "goal" | "decision" | "discussion" | "announcement" | "ask";
|
|
352
354
|
/**
|
|
@@ -361,10 +363,36 @@ export type Tags = {
|
|
|
361
363
|
export type NewTags = {
|
|
362
364
|
[K in Tag]?: NewActor[];
|
|
363
365
|
};
|
|
366
|
+
/**
|
|
367
|
+
* A single emoji reaction key. Either:
|
|
368
|
+
* - A Unicode emoji grapheme cluster (e.g. `"👍"`, `"👨👩👧"`), or
|
|
369
|
+
* - A provider-scoped custom-emoji ref of the form
|
|
370
|
+
* `"<provider>:<workspaceId>/<name>"` (e.g. `"slack:T0123/party_parrot"`).
|
|
371
|
+
*
|
|
372
|
+
* Anything matching a known provider prefix is treated as a custom-emoji
|
|
373
|
+
* reference; everything else is rendered as the Unicode it contains.
|
|
374
|
+
*
|
|
375
|
+
* Reactions are the open-set counterpart to {@link Tag}'s count range
|
|
376
|
+
* (`1000+`). Use reactions for emoji that round-trip with chat platforms;
|
|
377
|
+
* use tags for Plot-managed compute/toggle state (todo, pinned, urgent,
|
|
378
|
+
* ...).
|
|
379
|
+
*/
|
|
380
|
+
export type Reaction = string;
|
|
381
|
+
/**
|
|
382
|
+
* Emoji reactions on an item, keyed by emoji string, with the list of
|
|
383
|
+
* actors who added each reaction.
|
|
384
|
+
*/
|
|
385
|
+
export type Reactions = Record<Reaction, ActorId[]>;
|
|
386
|
+
/**
|
|
387
|
+
* A set of reactions to add to an item, along with the actors adding each
|
|
388
|
+
* reaction. To remove a reaction for a given actor, omit them from the
|
|
389
|
+
* `NewActor[]` list — passing an empty list removes the reaction entirely.
|
|
390
|
+
*/
|
|
391
|
+
export type NewReactions = Record<Reaction, NewActor[]>;
|
|
364
392
|
/**
|
|
365
393
|
* Thread access level determining visibility.
|
|
366
|
-
* - "public": Visible to all users with
|
|
367
|
-
* - "members": Visible to
|
|
394
|
+
* - "public": Visible to all users with focus access
|
|
395
|
+
* - "members": Visible to focus members (default for shared focuses)
|
|
368
396
|
* - "private": Visible only to creator and contacts listed in accessContacts
|
|
369
397
|
*/
|
|
370
398
|
export type ThreadAccessLevel = "public" | "members" | "private";
|
|
@@ -386,6 +414,12 @@ export type ThreadCommon = {
|
|
|
386
414
|
archived: boolean;
|
|
387
415
|
/** Tags attached to this thread. Maps tag ID to array of actor IDs who added that tag. */
|
|
388
416
|
tags: Tags;
|
|
417
|
+
/**
|
|
418
|
+
* Emoji reactions on this item. Maps each emoji (Unicode grapheme or
|
|
419
|
+
* `provider:workspace/name` custom-emoji ref) to the list of actor IDs
|
|
420
|
+
* who reacted with it.
|
|
421
|
+
*/
|
|
422
|
+
reactions: Reactions;
|
|
389
423
|
};
|
|
390
424
|
/**
|
|
391
425
|
* Fields on a Thread entity.
|
|
@@ -394,8 +428,8 @@ export type ThreadCommon = {
|
|
|
394
428
|
type ThreadFields = ThreadCommon & {
|
|
395
429
|
/** The display title/summary of the thread */
|
|
396
430
|
title: string;
|
|
397
|
-
/** The
|
|
398
|
-
|
|
431
|
+
/** The focus context this thread belongs to */
|
|
432
|
+
focus: Focus;
|
|
399
433
|
/** The thread's sub-type/category. Determines the displayed icon. */
|
|
400
434
|
type: ThreadType | null;
|
|
401
435
|
/** Thread access level: "public", "members", or "private" */
|
|
@@ -426,17 +460,22 @@ export type NewThreadWithNotes = NewThread & {
|
|
|
426
460
|
* };
|
|
427
461
|
* ```
|
|
428
462
|
*/
|
|
429
|
-
export type NewThread = Partial<Omit<ThreadFields, "
|
|
463
|
+
export type NewThread = Partial<Omit<ThreadFields, "focus" | "tags" | "reactions" | "id" | "accessContacts">> & ({
|
|
430
464
|
/** Unique identifier for the thread, generated by Uuid.Generate(). */
|
|
431
465
|
id: Uuid;
|
|
432
466
|
} | {}) & {
|
|
433
|
-
/** Explicit
|
|
434
|
-
|
|
467
|
+
/** Explicit focus - disables automatic focus matching. When omitted, the server classifies the thread using the user's focus rules. */
|
|
468
|
+
focus?: Pick<Focus, "id">;
|
|
435
469
|
} & {
|
|
436
470
|
/**
|
|
437
471
|
* All tags to set on the new thread.
|
|
438
472
|
*/
|
|
439
473
|
tags?: NewTags;
|
|
474
|
+
/**
|
|
475
|
+
* Emoji reactions to set on the new thread.
|
|
476
|
+
* Each emoji maps to the list of actors who reacted with it.
|
|
477
|
+
*/
|
|
478
|
+
reactions?: NewReactions;
|
|
440
479
|
/**
|
|
441
480
|
* The thread's sub-type/category. Sets the thread's icon.
|
|
442
481
|
* If omitted, defaults to "notes" (private) or "discussion" (shared).
|
|
@@ -453,7 +492,7 @@ export type NewThread = Partial<Omit<ThreadFields, "priority" | "tags" | "id" |
|
|
|
453
492
|
* - undefined/omitted (default): Thread is unread for users, except auto-marked
|
|
454
493
|
* as read for the author if they are the twist owner (user)
|
|
455
494
|
* - true: Thread is explicitly unread for ALL users (use sparingly)
|
|
456
|
-
* - false: Thread is marked as read for all users in the
|
|
495
|
+
* - false: Thread is marked as read for all users in the focus at creation time
|
|
457
496
|
*/
|
|
458
497
|
unread?: boolean;
|
|
459
498
|
/**
|
|
@@ -500,6 +539,11 @@ type ThreadSingleUpdateFields = ThreadBulkUpdateFields & {
|
|
|
500
539
|
* Use twistTags to add/remove the twist from tags to avoid clearing other actors' tags.
|
|
501
540
|
*/
|
|
502
541
|
tags?: NewTags;
|
|
542
|
+
/**
|
|
543
|
+
* Emoji reactions to change on the thread. Pass an empty `NewActor[]` to
|
|
544
|
+
* remove a reaction entirely; omit an emoji to leave it untouched.
|
|
545
|
+
*/
|
|
546
|
+
reactions?: NewReactions;
|
|
503
547
|
/**
|
|
504
548
|
* Add or remove the twist's tags.
|
|
505
549
|
* Maps tag ID to boolean: true = add tag, false = remove tag.
|
|
@@ -522,10 +566,10 @@ type ThreadSingleUpdateFields = ThreadBulkUpdateFields & {
|
|
|
522
566
|
*/
|
|
523
567
|
preview?: string | null;
|
|
524
568
|
/**
|
|
525
|
-
* Move the thread to a different
|
|
526
|
-
* The target
|
|
569
|
+
* Move the thread to a different focus. Requires ThreadAccess.Full.
|
|
570
|
+
* The target focus must be owned by the twist's user.
|
|
527
571
|
*/
|
|
528
|
-
|
|
572
|
+
focus?: Pick<Focus, "id">;
|
|
529
573
|
};
|
|
530
574
|
export type ThreadUpdate = (({
|
|
531
575
|
id: Uuid;
|
|
@@ -585,7 +629,7 @@ export type Note = ThreadCommon & {
|
|
|
585
629
|
* When set (even to []), the note is private to the listed contacts plus the creator.
|
|
586
630
|
*/
|
|
587
631
|
accessContacts: ActorId[] | null;
|
|
588
|
-
/**
|
|
632
|
+
/** Focus twist IDs (twists/connectors) mentioned for dispatch routing. Does not include user contacts. */
|
|
589
633
|
mentions: ActorId[];
|
|
590
634
|
};
|
|
591
635
|
/**
|
|
@@ -597,7 +641,7 @@ export type Note = ThreadCommon & {
|
|
|
597
641
|
* - key: Provide an external identifier for upsert within the thread
|
|
598
642
|
* - neither: A new note with auto-generated UUID will be created
|
|
599
643
|
*/
|
|
600
|
-
export type NewNote = Partial<Omit<Note, "author" | "thread" | "tags" | "mentions" | "accessContacts" | "id" | "key" | "reNote">> & ({
|
|
644
|
+
export type NewNote = Partial<Omit<Note, "author" | "thread" | "tags" | "reactions" | "mentions" | "accessContacts" | "id" | "key" | "reNote">> & ({
|
|
601
645
|
id: Uuid;
|
|
602
646
|
} | {
|
|
603
647
|
key: string;
|
|
@@ -622,6 +666,11 @@ export type NewNote = Partial<Omit<Note, "author" | "thread" | "tags" | "mention
|
|
|
622
666
|
* Use twistTags to add/remove the twist from tags to avoid clearing other actors' tags.
|
|
623
667
|
*/
|
|
624
668
|
tags?: NewTags;
|
|
669
|
+
/**
|
|
670
|
+
* Emoji reactions to set on the note. Pass an empty `NewActor[]` to
|
|
671
|
+
* remove a reaction entirely; omit an emoji to leave it untouched.
|
|
672
|
+
*/
|
|
673
|
+
reactions?: NewReactions;
|
|
625
674
|
/**
|
|
626
675
|
* Contacts who can see this note, or null/undefined to inherit thread visibility.
|
|
627
676
|
* Accepts resolved ActorId UUIDs or email-based NewContact objects (resolved server-side).
|
|
@@ -640,7 +689,7 @@ export type NewNote = Partial<Omit<Note, "author" | "thread" | "tags" | "mention
|
|
|
640
689
|
* - undefined/omitted (default): Thread is unread for users, except auto-marked
|
|
641
690
|
* as read for the author if they are the twist owner (user)
|
|
642
691
|
* - true: Thread is explicitly unread for ALL users (use sparingly)
|
|
643
|
-
* - false: Thread is marked as read for all users in the
|
|
692
|
+
* - false: Thread is marked as read for all users in the focus at note creation time
|
|
644
693
|
*
|
|
645
694
|
* For the default behavior, omit this field entirely.
|
|
646
695
|
* Use false for initial sync to avoid marking historical items as unread.
|
|
@@ -688,6 +737,11 @@ export type NoteUpdate = ({
|
|
|
688
737
|
* Use twistTags to add/remove the twist from tags to avoid clearing other actors' tags.
|
|
689
738
|
*/
|
|
690
739
|
tags?: NewTags;
|
|
740
|
+
/**
|
|
741
|
+
* Emoji reactions to change on the note. Pass an empty `NewActor[]` to
|
|
742
|
+
* remove a reaction entirely; omit an emoji to leave it untouched.
|
|
743
|
+
*/
|
|
744
|
+
reactions?: NewReactions;
|
|
691
745
|
/**
|
|
692
746
|
* Add or remove the twist's tags.
|
|
693
747
|
* Maps tag ID to boolean: true = add tag, false = remove tag.
|
|
@@ -793,11 +847,24 @@ type NewContactBase = {
|
|
|
793
847
|
/**
|
|
794
848
|
* External provider account source. Used for identity resolution
|
|
795
849
|
* when email is unavailable and for privacy compliance reporting.
|
|
850
|
+
*
|
|
851
|
+
* The runtime scopes the resulting `contact_external_account` row to
|
|
852
|
+
* the dispatching twist instance (i.e. one row per connection per
|
|
853
|
+
* contact), so the same Plot contact can have multiple rows when
|
|
854
|
+
* reachable through multiple connections (e.g. two Slack workspaces,
|
|
855
|
+
* Gmail + Google Chat sharing one Google account).
|
|
796
856
|
*/
|
|
797
857
|
source?: {
|
|
798
|
-
provider: AuthProvider;
|
|
799
858
|
accountId: string;
|
|
800
859
|
};
|
|
860
|
+
/**
|
|
861
|
+
* Optional connector-defined role for this contact on the thread, matching
|
|
862
|
+
* a `LinkTypeConfig.contactRoles[].id` (e.g. "to" / "cc" / "bcc" for
|
|
863
|
+
* email, "required" / "optional" for calendar). Omitted ⇒ default role.
|
|
864
|
+
* Connectors set this on inbound sync; the runtime persists it under
|
|
865
|
+
* `thread.contact_meta[contact_id].role`.
|
|
866
|
+
*/
|
|
867
|
+
role?: string;
|
|
801
868
|
};
|
|
802
869
|
/**
|
|
803
870
|
* At least one of `email` or `name` must be provided so the contact can be
|
|
@@ -888,7 +955,7 @@ export type Link = {
|
|
|
888
955
|
export type NewLink = Partial<Omit<Link, "author" | "assignee" | "threadId">> & {
|
|
889
956
|
/**
|
|
890
957
|
* Canonical ID for the item in an external system.
|
|
891
|
-
* When set, uniquely identifies the link
|
|
958
|
+
* When set, uniquely identifies the link for the user. This performs
|
|
892
959
|
* an upsert.
|
|
893
960
|
*
|
|
894
961
|
* @deprecated Pass `sources: [...]` instead. Both fields can be set during
|
|
@@ -922,7 +989,7 @@ export type NewLink = Partial<Omit<Link, "author" | "assignee" | "threadId">> &
|
|
|
922
989
|
* Whether the thread should be marked as unread for users.
|
|
923
990
|
* - undefined/omitted (default): Thread is unread for users, except auto-marked
|
|
924
991
|
* as read for the author if they are the twist owner (user)
|
|
925
|
-
* - false: Thread is marked as read for all users in the
|
|
992
|
+
* - false: Thread is marked as read for all users in the focus at creation time
|
|
926
993
|
*/
|
|
927
994
|
unread?: boolean;
|
|
928
995
|
/**
|
|
@@ -933,11 +1000,11 @@ export type NewLink = Partial<Omit<Link, "author" | "assignee" | "threadId">> &
|
|
|
933
1000
|
*/
|
|
934
1001
|
archived?: boolean;
|
|
935
1002
|
/**
|
|
936
|
-
* Explicit
|
|
1003
|
+
* Explicit focus (disables automatic focus matching).
|
|
937
1004
|
* Only used when the link creates a new thread. When omitted, the
|
|
938
|
-
* server classifies the thread using the user's
|
|
1005
|
+
* server classifies the thread using the user's focus rules.
|
|
939
1006
|
*/
|
|
940
|
-
|
|
1007
|
+
focus?: Pick<Focus, "id">;
|
|
941
1008
|
};
|
|
942
1009
|
/**
|
|
943
1010
|
* A new link with notes to save via integrations.saveLink().
|
|
@@ -983,8 +1050,8 @@ export type PlanOperation = {
|
|
|
983
1050
|
/** Current thread title for display */
|
|
984
1051
|
threadTitle: string;
|
|
985
1052
|
changes: Partial<Pick<ThreadFields, "archived" | "title" | "type">> & {
|
|
986
|
-
/** Move to this
|
|
987
|
-
|
|
1053
|
+
/** Move to this focus */
|
|
1054
|
+
focus?: {
|
|
988
1055
|
id: Uuid;
|
|
989
1056
|
title: string;
|
|
990
1057
|
};
|
|
@@ -1002,9 +1069,9 @@ export type PlanOperation = {
|
|
|
1002
1069
|
} | {
|
|
1003
1070
|
type: "createThread";
|
|
1004
1071
|
title: string;
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
|
|
1072
|
+
focusId: Uuid;
|
|
1073
|
+
/** Focus title for display */
|
|
1074
|
+
focusTitle: string;
|
|
1008
1075
|
} | {
|
|
1009
1076
|
type: "createNote";
|
|
1010
1077
|
threadId: Uuid;
|
|
@@ -1012,16 +1079,10 @@ export type PlanOperation = {
|
|
|
1012
1079
|
threadTitle: string;
|
|
1013
1080
|
content: string;
|
|
1014
1081
|
} | {
|
|
1015
|
-
type: "
|
|
1016
|
-
|
|
1017
|
-
/** Current
|
|
1018
|
-
|
|
1019
|
-
changes: Partial<Pick<
|
|
1020
|
-
/** Move under this parent */
|
|
1021
|
-
parent?: {
|
|
1022
|
-
id: Uuid;
|
|
1023
|
-
title: string;
|
|
1024
|
-
};
|
|
1025
|
-
};
|
|
1082
|
+
type: "updateFocus";
|
|
1083
|
+
focusId: Uuid;
|
|
1084
|
+
/** Current focus title for display */
|
|
1085
|
+
focusTitle: string;
|
|
1086
|
+
changes: Partial<Pick<Focus, "title" | "archived">>;
|
|
1026
1087
|
};
|
|
1027
1088
|
//# sourceMappingURL=plot.d.ts.map
|
package/dist/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AAA;SAAE,CAAC;KACrC,CAAC;CACH,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,IAAI,CAAC;IACb,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE;QACP,0BAA0B;QAC1B,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,GACD;IACE,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;IACd,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAC;CACpB,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,IAAI,CAAC;IACf,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,GACD;IACE,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,IAAI,CAAC;IACd,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC;CACrD,CAAC"}
|
package/dist/plot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Tag } from "./tag";
|
|
2
2
|
export { Uuid } from "./utils/uuid";
|
|
3
3
|
/**
|
|
4
|
-
* Theme colors for
|
|
4
|
+
* Theme colors for focuses.
|
|
5
5
|
*/
|
|
6
6
|
export var ThemeColor;
|
|
7
7
|
(function (ThemeColor) {
|
|
@@ -40,6 +40,8 @@ export var ActionType;
|
|
|
40
40
|
ActionType["conferencing"] = "conferencing";
|
|
41
41
|
/** File attachment links stored in R2 */
|
|
42
42
|
ActionType["file"] = "file";
|
|
43
|
+
/** Reference to an attachment hosted by a connector's source system */
|
|
44
|
+
ActionType["fileRef"] = "fileRef";
|
|
43
45
|
/** Thread reference links for navigating to related threads */
|
|
44
46
|
ActionType["thread"] = "thread";
|
|
45
47
|
/** Structured plan of operations for user approval */
|
package/dist/plot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../src/plot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plot.js","sourceRoot":"","sources":["../src/plot.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAsEpC;;GAEG;AACH,MAAM,CAAN,IAAY,UAiBX;AAjBD,WAAY,UAAU;IACpB,uBAAuB;IACvB,mDAAY,CAAA;IACZ,+BAA+B;IAC/B,iEAAmB,CAAA;IACnB,6BAA6B;IAC7B,2DAAgB,CAAA;IAChB,6BAA6B;IAC7B,mDAAY,CAAA;IACZ,2BAA2B;IAC3B,2DAAgB,CAAA;IAChB,4BAA4B;IAC5B,2DAAgB,CAAA;IAChB,qBAAqB;IACrB,+CAAU,CAAA;IACV,6BAA6B;IAC7B,uDAAc,CAAA;AAChB,CAAC,EAjBW,UAAU,KAAV,UAAU,QAiBrB;AAiED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,UAiBX;AAjBD,WAAY,UAAU;IACpB,8CAA8C;IAC9C,mCAAqB,CAAA;IACrB,mDAAmD;IACnD,2BAAa,CAAA;IACb,+DAA+D;IAC/D,mCAAqB,CAAA;IACrB,+DAA+D;IAC/D,2CAA6B,CAAA;IAC7B,yCAAyC;IACzC,2BAAa,CAAA;IACb,uEAAuE;IACvE,iCAAmB,CAAA;IACnB,+DAA+D;IAC/D,+BAAiB,CAAA;IACjB,sDAAsD;IACtD,2BAAa,CAAA;AACf,CAAC,EAjBW,UAAU,KAAV,UAAU,QAiBrB;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC9B,kBAAkB;IAClB,iDAAyB,CAAA;IACzB,WAAW;IACX,qCAAa,CAAA;IACb,sBAAsB;IACtB,yDAAiC,CAAA;IACjC,kBAAkB;IAClB,uCAAe,CAAA;IACf,6CAA6C;IAC7C,uCAAe,CAAA;AACjB,CAAC,EAXW,oBAAoB,KAApB,oBAAoB,QAW/B;AAkrBD;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,qCAAqC;IACrC,yCAAI,CAAA;IACJ,2CAA2C;IAC3C,+CAAO,CAAA;IACP,0CAA0C;IAC1C,2CAAK,CAAA;AACP,CAAC,EAPW,SAAS,KAAT,SAAS,QAOpB"}
|
package/dist/schedule.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { Uuid } from "./utils/uuid";
|
|
|
6
6
|
* Represents a schedule entry for a thread.
|
|
7
7
|
*
|
|
8
8
|
* Schedules define when a thread occurs in time. A thread may have zero or more schedules:
|
|
9
|
-
* - Shared schedules (userId is null): visible to all members of the thread's
|
|
9
|
+
* - Shared schedules (userId is null): visible to all members of the thread's focus
|
|
10
10
|
* - Per-user schedules (userId set): private ordering/scheduling for a specific user
|
|
11
11
|
*
|
|
12
12
|
* For recurring events in the SDK, start/end represent the first occurrence's
|