@plotday/twister 0.53.0 → 0.55.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/dist/connector.d.ts +47 -6
- package/dist/connector.d.ts.map +1 -1
- package/dist/connector.js +2 -1
- 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 +26 -25
- package/dist/docs/classes/index.FileNotFoundError.html +1 -1
- package/dist/docs/classes/index.Files.html +2 -2
- 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/tools_ai.AI.html +7 -5
- package/dist/docs/classes/tools_callbacks.Callbacks.html +1 -1
- package/dist/docs/classes/tools_integrations.Integrations.html +11 -11
- 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/enums/plot.ActionType.html +9 -9
- 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 +1 -1
- 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 +1 -1
- package/dist/docs/modules/index.html +1 -1
- package/dist/docs/modules/plot.html +1 -1
- package/dist/docs/modules/tools_plot.html +1 -1
- package/dist/docs/types/index.CreateLinkDraft.html +14 -13
- package/dist/docs/types/index.OptionalScopeGroup.html +12 -0
- package/dist/docs/types/index.ResolvedRecipient.html +13 -2
- package/dist/docs/types/index.Schedule.html +1 -1
- package/dist/docs/types/index.ScopeConfig.html +9 -0
- package/dist/docs/types/plot.Action.html +1 -1
- package/dist/docs/types/plot.Actor.html +5 -5
- package/dist/docs/types/plot.Contact.html +4 -4
- package/dist/docs/types/plot.ContentType.html +1 -1
- package/dist/docs/types/plot.Focus.html +18 -0
- 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 +2 -2
- package/dist/docs/types/plot.NewReactions.html +1 -1
- package/dist/docs/types/plot.NewTags.html +1 -1
- package/dist/docs/types/plot.NewThread.html +4 -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 +1 -1
- package/dist/docs/types/plot.PlanOperation.html +6 -6
- package/dist/docs/types/plot.Reaction.html +1 -1
- package/dist/docs/types/plot.Reactions.html +1 -1
- 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 +6 -6
- 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 +23 -4
- package/dist/docs/types/tools_integrations.ComposeConfig.html +4 -4
- package/dist/docs/types/tools_integrations.ContactRoleConfig.html +5 -5
- package/dist/docs/types/tools_integrations.LinkTypeConfig.html +57 -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/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/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 +1 -1
- package/dist/llm-docs/tools/files.d.ts.map +1 -1
- package/dist/llm-docs/tools/files.js +1 -1
- package/dist/llm-docs/tools/files.js.map +1 -1
- 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.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 +62 -82
- package/dist/plot.d.ts.map +1 -1
- package/dist/plot.js +1 -1
- package/dist/plot.js.map +1 -1
- package/dist/schedule.d.ts +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 +1 -1
- package/dist/tools/integrations.d.ts +80 -24
- 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.d.ts +3 -3
- package/dist/twist.js +3 -3
- package/package.json +1 -1
- package/src/connector.ts +49 -6
- package/src/llm-docs/connector.ts +1 -1
- package/src/llm-docs/plot.ts +1 -1
- package/src/llm-docs/schedule.ts +1 -1
- package/src/llm-docs/tools/ai.ts +1 -1
- package/src/llm-docs/tools/files.ts +1 -1
- 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.ts +1 -1
- package/src/plot.ts +63 -72
- package/src/schedule.ts +1 -1
- package/src/tools/ai.ts +46 -10
- package/src/tools/files.ts +1 -1
- package/src/tools/integrations.ts +80 -24
- 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.Priority.html +0 -15
- package/dist/docs/types/plot.PriorityUpdate.html +0 -5
package/dist/connector.d.ts
CHANGED
|
@@ -96,6 +96,20 @@ export type ResolvedRecipient = {
|
|
|
96
96
|
name: string | null;
|
|
97
97
|
/** Platform-specific account identifier pre-resolved at dispatch time (e.g. Slack `U…`, LinkedIn URN, Gmail email address) */
|
|
98
98
|
externalAccountId: string;
|
|
99
|
+
/**
|
|
100
|
+
* The contact's role on the originating thread, resolved from
|
|
101
|
+
* `thread.contact_meta` against the link type's `contactRoles` (e.g.
|
|
102
|
+
* `"to"` / `"cc"` / `"bcc"` for Gmail). `null` when the contact had no
|
|
103
|
+
* explicit role entry — connectors should treat `null` as the link
|
|
104
|
+
* type's default role (the `contactRoles` entry marked `default: true`).
|
|
105
|
+
*
|
|
106
|
+
* Connectors that distinguish roles MUST honor this when addressing the
|
|
107
|
+
* recipient — e.g. Gmail must place `"cc"`/`"bcc"` recipients in the
|
|
108
|
+
* Cc/Bcc headers, never the To header, so BCC recipients are not
|
|
109
|
+
* exposed to the other recipients. Connectors that don't distinguish
|
|
110
|
+
* roles (Slack, Linear) can ignore it.
|
|
111
|
+
*/
|
|
112
|
+
role: string | null;
|
|
99
113
|
};
|
|
100
114
|
/**
|
|
101
115
|
* Fields captured in Plot when a user initiates creation of a new external
|
|
@@ -133,11 +147,12 @@ export type CreateLinkDraft = {
|
|
|
133
147
|
* `"contacts"` or `"addresses"`.
|
|
134
148
|
*
|
|
135
149
|
* Only populated for those link types; otherwise undefined. Each entry contains the Plot
|
|
136
|
-
* contact UUID
|
|
150
|
+
* contact UUID, the platform-specific account ID
|
|
137
151
|
* (`externalAccountId`) the connector should use to address the
|
|
138
|
-
* recipient without performing its own lookup
|
|
139
|
-
*
|
|
140
|
-
* `
|
|
152
|
+
* recipient without performing its own lookup, and the contact's
|
|
153
|
+
* `role` on the thread (e.g. `"to"` / `"cc"` / `"bcc"`) resolved from
|
|
154
|
+
* `thread.contact_meta`. For `"addresses"` link types, contacts without
|
|
155
|
+
* a connection-scoped row fall back to `contact.email`.
|
|
141
156
|
*/
|
|
142
157
|
recipients?: ResolvedRecipient[];
|
|
143
158
|
/**
|
|
@@ -148,6 +163,31 @@ export type CreateLinkDraft = {
|
|
|
148
163
|
*/
|
|
149
164
|
inviteEmails?: string[];
|
|
150
165
|
};
|
|
166
|
+
/** An optional OAuth scope group the user can toggle at connect time. */
|
|
167
|
+
export type OptionalScopeGroup = {
|
|
168
|
+
/** Stable id used to track the user's selection. */
|
|
169
|
+
id: string;
|
|
170
|
+
/** Value-forward switch label, e.g. "Add names to events using contacts". */
|
|
171
|
+
label: string;
|
|
172
|
+
/** Optional secondary line shown under the label. */
|
|
173
|
+
description?: string;
|
|
174
|
+
/** The OAuth scope strings this group grants. */
|
|
175
|
+
scopes: string[];
|
|
176
|
+
/** Whether the group is requested by default (switch on). */
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Structured scope declaration. `required` scopes must be granted — auth fails
|
|
181
|
+
* and re-prompts if any is declined. `optional` groups are requested by default
|
|
182
|
+
* but auth still succeeds if the user declines them; the connector should detect
|
|
183
|
+
* the absence via the granted `token.scopes` and degrade gracefully.
|
|
184
|
+
*/
|
|
185
|
+
export type ScopeConfig = {
|
|
186
|
+
required: string[];
|
|
187
|
+
/** Friendly bullets describing what the always-on (required) access does. */
|
|
188
|
+
description?: string[];
|
|
189
|
+
optional?: OptionalScopeGroup[];
|
|
190
|
+
};
|
|
151
191
|
/**
|
|
152
192
|
* Base class for connectors — twists that sync data from external services.
|
|
153
193
|
*
|
|
@@ -201,8 +241,9 @@ export declare abstract class Connector<TSelf> extends Twist<TSelf> {
|
|
|
201
241
|
static readonly isConnector = true;
|
|
202
242
|
/** The OAuth provider this connector authenticates with. */
|
|
203
243
|
readonly provider?: AuthProvider;
|
|
204
|
-
/** OAuth scopes to request for this connector
|
|
205
|
-
|
|
244
|
+
/** OAuth scopes to request for this connector — a flat list (all required), or
|
|
245
|
+
* a {@link ScopeConfig} declaring required + optional scope groups. */
|
|
246
|
+
readonly scopes?: string[] | ScopeConfig;
|
|
206
247
|
/**
|
|
207
248
|
* When true, one credential is shared across all users in the workspace,
|
|
208
249
|
* entered once by the installer. When false (default), each user provides
|
package/dist/connector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KA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;;;OAUG;IAEH,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE;QAAE,IAAI,CAAC,EAAE,IAAI,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlG;;;;;;;;;OASG;IAEH,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,qBAAqB,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAInJ;;;;;;;;;;;;;;;;;;;;;OAqBG;IAEH,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAM7G;;;;;;;;;;;;OAYG;IAEH,QAAQ,CAAC,OAAO,EAAE;QAAE,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAG1E;AAED,2CAA2C;AAC3C,OAAO,EAAE,SAAS,IAAI,MAAM,EAAE,CAAC"}
|
package/dist/connector.js
CHANGED
|
@@ -53,7 +53,8 @@ export class Connector extends Twist {
|
|
|
53
53
|
// ---- Identity (abstract — every connector must declare) ----
|
|
54
54
|
/** The OAuth provider this connector authenticates with. */
|
|
55
55
|
provider;
|
|
56
|
-
/** OAuth scopes to request for this connector
|
|
56
|
+
/** OAuth scopes to request for this connector — a flat list (all required), or
|
|
57
|
+
* a {@link ScopeConfig} declaring required + optional scope groups. */
|
|
57
58
|
scopes;
|
|
58
59
|
// ---- Auth model ----
|
|
59
60
|
/**
|
package/dist/connector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA4LhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,OAAgB,SAAiB,SAAQ,KAAY;IACzD;;;OAGG;IACH,MAAM,CAAU,WAAW,GAAG,IAAI,CAAC;IAEnC,+DAA+D;IAE/D,4DAA4D;IACnD,QAAQ,CAAgB;IAEjC;4EACwE;IAC/D,MAAM,CAA0B;IAEzC,uBAAuB;IAEvB;;;;;;;;;;OAUG;IACM,MAAM,CAAW;IAE1B;;;;;;;OAOG;IACM,SAAS,CAAU;IAE5B,8BAA8B;IAE9B;;;;OAIG;IACM,aAAa,CAAW;IAEjC;;;OAGG;IACM,SAAS,CAAoB;IAEtC;;;;;;;;OAQG;IACM,oBAAoB,CAAwB;IAErD;;;;;;OAMG;IACH,MAAM,CAAU,aAAa,CAAW;IAExC,yEAAyE;IAEzE;;;;;;;;;;;;;OAaG;IACH,6DAA6D;IAC7D,cAAc,CACZ,IAA0B,EAC1B,KAAuB;QAEvB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAoFD,wDAAwD;IAExD;;;;;;OAMG;IACH,6DAA6D;IAC7D,aAAa,CAAC,IAAU;QACtB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,6DAA6D;IAC7D,YAAY,CAAC,KAAsB;QACjC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,6DAA6D;IAC7D,aAAa,CAAC,IAAU,EAAE,MAAc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OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;;AAGH,2CAA2C;AAC3C,OAAO,EAAE,SAAS,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.hierarchyData = "
|
|
1
|
+
window.hierarchyData = "eJyVk8FOAyEQht9lziN2WijL3oyJyV7UpL0ZY9Yt6qYUmgVTE9N3N+yqoR4KXvbAfvN/MAyfMDgXPNQPNF+iekQY9IvRXeid9VB/goof2+401LA+9D4Awra3G6hpXiG8DwZq6EzrvfaXIQJsxNhb2BnA6RfUEPzmItZdTAsI3VtvNoO2o1rQ4xGB5svE1qydM2dtzhk2Uv+TKRQkUXCJki+w4gtUVKFSMyQigUR8gSSkRFpKgST5DEkqPu3wpB8lGyzY3xFBkPzbaJ+L9k9jv/3UcF8g4ankqskL2p5dNflgyRdJ8HVrzHPbbQsO0P2g7Lcob6tObI0N+nVop4HNCvuEZmlpXquoSrS3OhzcsM0b7QSy74ICj5olnnvjzj+5UbI3LrCI5uPjjCf5q+AGnRf4iLERLlGc3NC69SWzECLGRrhAMReUjpyzVnfBDec0vd3oD/aLFkiETB/MTW/02XNMghErCF/K9B6aXbvPZ0eqIFrydIRWu1AQHamSaMWT6Lt99t1N6d9gTnA8fgFGxx0A"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.navigationData = "
|
|
1
|
+
window.navigationData = "eJytnG1z3CgSx79KavZt7vK4uWzeORN7d65sJ+VxNle1lXJhDfZwlkCLkMfZq3z3K0DSgGjonqzL78yfXzfQQjy05o//LQx/MIt3i197seHd4umi2op6o7lcvPtjX8iNEfL2ydowbfhm8XTRMrNdvFtsVNU3XJru2SC5GiT/3JqmXjxd3Am5Wbx7++rt2zfP335/OhGXSvMnSyUr3poO4lnB1SjAaO97UZt/CPnkUqkaxI2KK6eg8Da2wUslJa+M0lmolV3tZWi7T1dPLvgN11xWHGz36epqEmC0i14a0fAnx/JeaCUtAWIOsqtABpO/BuwztenrbEQI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