@tappify/extension-sdk 2.1.0-beta.2 → 2.1.0-beta.4
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/{chunk-QJMZRV7A.mjs → chunk-6FASZFC4.mjs} +19 -7
- package/dist/chunk-6FASZFC4.mjs.map +1 -0
- package/dist/{chunk-EB5XWQAU.cjs → chunk-6MP5DKLZ.cjs} +28 -16
- package/dist/chunk-6MP5DKLZ.cjs.map +1 -0
- package/dist/{chunk-BPCGXXMD.cjs → chunk-AYYJCRS4.cjs} +10 -10
- package/dist/{chunk-BPCGXXMD.cjs.map → chunk-AYYJCRS4.cjs.map} +1 -1
- package/dist/{chunk-KZ5NGFUP.mjs → chunk-CEFLOQD4.mjs} +2 -2
- package/dist/{chunk-7YKH4LZN.cjs → chunk-EV3KKP62.cjs} +17 -6
- package/dist/chunk-EV3KKP62.cjs.map +1 -0
- package/dist/{chunk-SGCYEEXD.mjs → chunk-IHLK4I7J.mjs} +17 -6
- package/dist/chunk-IHLK4I7J.mjs.map +1 -0
- package/dist/{chunk-A74HCO6T.cjs → chunk-TEIGGORZ.cjs} +3 -3
- package/dist/{chunk-A74HCO6T.cjs.map → chunk-TEIGGORZ.cjs.map} +1 -1
- package/dist/{chunk-SWG7CNTZ.mjs → chunk-WW2D3N2T.mjs} +3 -3
- package/dist/{client-DE-vMgdO.d.cts → client-BLnec4SD.d.cts} +1 -1
- package/dist/{client-BO3kavn0.d.ts → client-BRxKTo-L.d.ts} +1 -1
- package/dist/codegen.d.cts +14 -5
- package/dist/codegen.d.ts +14 -5
- package/dist/{constants-Bh759FUI.d.cts → constants-CvHbO3ia.d.cts} +14 -5
- package/dist/{constants-Bh759FUI.d.ts → constants-CvHbO3ia.d.ts} +14 -5
- package/dist/{context-mr8R5CNt.d.ts → context-BjhW0QWy.d.ts} +1 -1
- package/dist/{context-DI0EJCRD.d.cts → context-CsviWecX.d.cts} +1 -1
- package/dist/host.d.cts +4 -4
- package/dist/host.d.ts +4 -4
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/manifest.cjs +16 -16
- package/dist/manifest.d.cts +10 -4
- package/dist/manifest.d.ts +10 -4
- package/dist/manifest.mjs +1 -1
- package/dist/server.cjs +8 -8
- package/dist/server.d.cts +5 -5
- package/dist/server.d.ts +5 -5
- package/dist/server.mjs +3 -3
- package/dist/testing/index.cjs +8 -8
- package/dist/testing/index.d.cts +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.mjs +4 -4
- package/dist/{types-BdDaLnqs.d.cts → types-C5k8VwaA.d.cts} +1 -1
- package/dist/{types-uGHrRaOj.d.ts → types-DBpDxGlT.d.ts} +1 -1
- package/dist/ui.d.cts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/vite-preview-bootstrap.d.cts +2 -2
- package/dist/vite-preview-bootstrap.d.ts +2 -2
- package/dist/vite-preview.cjs +7 -7
- package/dist/vite-preview.cjs.map +1 -1
- package/dist/vite-preview.d.cts +3 -3
- package/dist/vite-preview.d.ts +3 -3
- package/dist/vite-preview.mjs +4 -4
- package/dist/vite-preview.mjs.map +1 -1
- package/dist/vite.cjs +16 -5
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.cts +14 -5
- package/dist/vite.d.ts +14 -5
- package/dist/vite.mjs +16 -5
- package/dist/vite.mjs.map +1 -1
- package/dist/{work-events-BlOVpK0k.d.ts → work-events-BYU25wmX.d.ts} +40 -8
- package/dist/{work-events-D97EoqvS.d.cts → work-events-CxFu-YZE.d.cts} +40 -8
- package/package.json +1 -1
- package/schema/extension-v2.json +75 -330
- package/dist/chunk-7YKH4LZN.cjs.map +0 -1
- package/dist/chunk-EB5XWQAU.cjs.map +0 -1
- package/dist/chunk-QJMZRV7A.mjs.map +0 -1
- package/dist/chunk-SGCYEEXD.mjs.map +0 -1
- /package/dist/{chunk-KZ5NGFUP.mjs.map → chunk-CEFLOQD4.mjs.map} +0 -0
- /package/dist/{chunk-SWG7CNTZ.mjs.map → chunk-WW2D3N2T.mjs.map} +0 -0
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import { JSONWebKeySet } from 'jose';
|
|
2
|
-
import { K as TapPlatformFilter, a as TapFilters, w as TapCredentialValues, $ as TapSettingsValues, ab as ToolId, ac as ToolInput, A as ActionId, k as ActionInput, f as TapProcedureName, g as TapProcedureInput, h as TapProcedureOutput, c as TapHostEvents } from './types-
|
|
3
|
-
import { a9 as WorkContribution } from './constants-
|
|
2
|
+
import { K as TapPlatformFilter, a as TapFilters, w as TapCredentialValues, $ as TapSettingsValues, ab as ToolId, ac as ToolInput, A as ActionId, k as ActionInput, f as TapProcedureName, g as TapProcedureInput, h as TapProcedureOutput, c as TapHostEvents } from './types-DBpDxGlT.js';
|
|
3
|
+
import { a9 as WorkContribution } from './constants-CvHbO3ia.js';
|
|
4
4
|
|
|
5
5
|
/** The provider stage used by the manifest's legacy status mapping. */
|
|
6
6
|
type WorkStage = keyof NonNullable<NonNullable<WorkContribution['status']>['map']>;
|
|
7
7
|
/** JSON-safe values supplied for provider create fields. */
|
|
8
8
|
type WorkCreateFieldValues = Record<string, string | number | boolean | string[] | null>;
|
|
9
|
+
/** A person in the sending system; email is optional when unavailable. */
|
|
10
|
+
interface WorkPerson {
|
|
11
|
+
id: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
email?: string;
|
|
14
|
+
}
|
|
15
|
+
/** A structured person mention supplied with a Review comment. */
|
|
16
|
+
interface WorkMention {
|
|
17
|
+
person: WorkPerson;
|
|
18
|
+
}
|
|
19
|
+
/** Ordered provider comment content, including portable person mentions. */
|
|
20
|
+
type WorkRichTextSegment = {
|
|
21
|
+
type: 'text';
|
|
22
|
+
text: string;
|
|
23
|
+
} | {
|
|
24
|
+
type: 'user_mention';
|
|
25
|
+
person: WorkPerson;
|
|
26
|
+
fallback: string;
|
|
27
|
+
};
|
|
9
28
|
/** Logical mutation identity, stable across transport retries. */
|
|
10
29
|
interface WorkMutationInput {
|
|
11
30
|
idempotencyKey: string;
|
|
@@ -122,6 +141,9 @@ interface ReviewThreadSource {
|
|
|
122
141
|
firstComment: {
|
|
123
142
|
id: string;
|
|
124
143
|
body: string;
|
|
144
|
+
author: WorkPerson;
|
|
145
|
+
mentions: WorkMention[];
|
|
146
|
+
/** @deprecated Use author.displayName instead. */
|
|
125
147
|
authorDisplayName: string;
|
|
126
148
|
createdAt: string;
|
|
127
149
|
};
|
|
@@ -164,6 +186,9 @@ interface WorkAttachResult {
|
|
|
164
186
|
interface WorkCommentInput extends WorkMutationInput, WorkLinkedItemInput {
|
|
165
187
|
commentId: string;
|
|
166
188
|
body: string;
|
|
189
|
+
author: WorkPerson;
|
|
190
|
+
mentions: WorkMention[];
|
|
191
|
+
/** @deprecated Use author.displayName instead. */
|
|
167
192
|
authorDisplayName: string;
|
|
168
193
|
createdAt: string;
|
|
169
194
|
}
|
|
@@ -198,13 +223,20 @@ interface WorkHydratedCommentCreatedEvent extends WorkHydratedEventBase {
|
|
|
198
223
|
type: 'comment.created';
|
|
199
224
|
comment: {
|
|
200
225
|
externalCommentId: string;
|
|
226
|
+
/** Compatibility text; segment concatenation is authoritative when present. */
|
|
201
227
|
body: string;
|
|
202
|
-
author: {
|
|
203
|
-
id: string;
|
|
204
|
-
displayName: string;
|
|
205
|
-
};
|
|
206
228
|
createdAt: string;
|
|
207
|
-
}
|
|
229
|
+
} & ({
|
|
230
|
+
author: WorkPerson;
|
|
231
|
+
/** Concatenate text and mention fallback values in order. */
|
|
232
|
+
segments: WorkRichTextSegment[];
|
|
233
|
+
} | {
|
|
234
|
+
/** Legacy authors cannot carry rich person data without segments. */
|
|
235
|
+
author: WorkPerson & {
|
|
236
|
+
email?: never;
|
|
237
|
+
};
|
|
238
|
+
segments?: never;
|
|
239
|
+
});
|
|
208
240
|
}
|
|
209
241
|
/** A complete provider status-change signal. */
|
|
210
242
|
interface WorkHydratedStatusChangedEvent extends WorkHydratedEventBase {
|
|
@@ -544,4 +576,4 @@ interface SendWorkEventOptions {
|
|
|
544
576
|
*/
|
|
545
577
|
declare function sendWorkEvent(event: WorkEvent, options: SendWorkEventOptions): Promise<void>;
|
|
546
578
|
|
|
547
|
-
export { type
|
|
579
|
+
export { type WorkPerson as $, type WorkDisconnectResult as A, type WorkEvent as B, type ContextBlock as C, type WorkHydrateEventInput as D, type WorkHydrateEventResult as E, type WorkHydratedCommentCreatedEvent as F, type WorkHydratedEvent as G, type WorkHydratedEventBase as H, type WorkHydratedItemDeletedEvent as I, type WorkHydratedStatusChangedEvent as J, type WorkHydrationReferenceEvent as K, type LegacyWorkHandlers as L, type MentionItems as M, type WorkItemLinkResult as N, type WorkItemType as O, type WorkLinkedItemInput as P, type WorkListContainersInput as Q, type ReviewAttachmentDescriptor as R, type SendWorkEventOptions as S, type TappifyFetchHandler as T, type WorkListContainersResult as U, type VerifyTokenOptions as V, type WorkAttachInput as W, type WorkMention as X, type WorkMutationInput as Y, type WorkOperation as Z, type WorkOperationMap as _, type TappifyClaims as a, type WorkRichTextSegment as a0, type WorkSetStatusInput as a1, type WorkSetStatusResult as a2, type WorkStage as a3, type WorkStatus as a4, createTappifyHandler as a5, sendWorkEvent as a6, type MetricsInput as b, type MetricsResponse as c, type MetricsSeries as d, type ReviewImageAttachmentDescriptor as e, type ReviewLinkAttachmentDescriptor as f, type ReviewThreadSource as g, type TappifyCallContext as h, type TappifyDocuments as i, type TappifyHandlerOptions as j, type TappifyHealth as k, type TappifyInstall as l, type TappifyRequest as m, type TappifyRouteHandler as n, type WorkAttachResult as o, type WorkCommentInput as p, type WorkCommentResult as q, type WorkConfigureInput as r, type WorkConfigureResult as s, type WorkContainer as t, type WorkCreateField as u, type WorkCreateFieldValues as v, type WorkCreateInput as w, type WorkDescribeContainerInput as x, type WorkDescribeContainerResult as y, type WorkDisconnectInput as z };
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import { JSONWebKeySet } from 'jose';
|
|
2
|
-
import { K as TapPlatformFilter, a as TapFilters, w as TapCredentialValues, $ as TapSettingsValues, ab as ToolId, ac as ToolInput, A as ActionId, k as ActionInput, f as TapProcedureName, g as TapProcedureInput, h as TapProcedureOutput, c as TapHostEvents } from './types-
|
|
3
|
-
import { a9 as WorkContribution } from './constants-
|
|
2
|
+
import { K as TapPlatformFilter, a as TapFilters, w as TapCredentialValues, $ as TapSettingsValues, ab as ToolId, ac as ToolInput, A as ActionId, k as ActionInput, f as TapProcedureName, g as TapProcedureInput, h as TapProcedureOutput, c as TapHostEvents } from './types-C5k8VwaA.cjs';
|
|
3
|
+
import { a9 as WorkContribution } from './constants-CvHbO3ia.cjs';
|
|
4
4
|
|
|
5
5
|
/** The provider stage used by the manifest's legacy status mapping. */
|
|
6
6
|
type WorkStage = keyof NonNullable<NonNullable<WorkContribution['status']>['map']>;
|
|
7
7
|
/** JSON-safe values supplied for provider create fields. */
|
|
8
8
|
type WorkCreateFieldValues = Record<string, string | number | boolean | string[] | null>;
|
|
9
|
+
/** A person in the sending system; email is optional when unavailable. */
|
|
10
|
+
interface WorkPerson {
|
|
11
|
+
id: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
email?: string;
|
|
14
|
+
}
|
|
15
|
+
/** A structured person mention supplied with a Review comment. */
|
|
16
|
+
interface WorkMention {
|
|
17
|
+
person: WorkPerson;
|
|
18
|
+
}
|
|
19
|
+
/** Ordered provider comment content, including portable person mentions. */
|
|
20
|
+
type WorkRichTextSegment = {
|
|
21
|
+
type: 'text';
|
|
22
|
+
text: string;
|
|
23
|
+
} | {
|
|
24
|
+
type: 'user_mention';
|
|
25
|
+
person: WorkPerson;
|
|
26
|
+
fallback: string;
|
|
27
|
+
};
|
|
9
28
|
/** Logical mutation identity, stable across transport retries. */
|
|
10
29
|
interface WorkMutationInput {
|
|
11
30
|
idempotencyKey: string;
|
|
@@ -122,6 +141,9 @@ interface ReviewThreadSource {
|
|
|
122
141
|
firstComment: {
|
|
123
142
|
id: string;
|
|
124
143
|
body: string;
|
|
144
|
+
author: WorkPerson;
|
|
145
|
+
mentions: WorkMention[];
|
|
146
|
+
/** @deprecated Use author.displayName instead. */
|
|
125
147
|
authorDisplayName: string;
|
|
126
148
|
createdAt: string;
|
|
127
149
|
};
|
|
@@ -164,6 +186,9 @@ interface WorkAttachResult {
|
|
|
164
186
|
interface WorkCommentInput extends WorkMutationInput, WorkLinkedItemInput {
|
|
165
187
|
commentId: string;
|
|
166
188
|
body: string;
|
|
189
|
+
author: WorkPerson;
|
|
190
|
+
mentions: WorkMention[];
|
|
191
|
+
/** @deprecated Use author.displayName instead. */
|
|
167
192
|
authorDisplayName: string;
|
|
168
193
|
createdAt: string;
|
|
169
194
|
}
|
|
@@ -198,13 +223,20 @@ interface WorkHydratedCommentCreatedEvent extends WorkHydratedEventBase {
|
|
|
198
223
|
type: 'comment.created';
|
|
199
224
|
comment: {
|
|
200
225
|
externalCommentId: string;
|
|
226
|
+
/** Compatibility text; segment concatenation is authoritative when present. */
|
|
201
227
|
body: string;
|
|
202
|
-
author: {
|
|
203
|
-
id: string;
|
|
204
|
-
displayName: string;
|
|
205
|
-
};
|
|
206
228
|
createdAt: string;
|
|
207
|
-
}
|
|
229
|
+
} & ({
|
|
230
|
+
author: WorkPerson;
|
|
231
|
+
/** Concatenate text and mention fallback values in order. */
|
|
232
|
+
segments: WorkRichTextSegment[];
|
|
233
|
+
} | {
|
|
234
|
+
/** Legacy authors cannot carry rich person data without segments. */
|
|
235
|
+
author: WorkPerson & {
|
|
236
|
+
email?: never;
|
|
237
|
+
};
|
|
238
|
+
segments?: never;
|
|
239
|
+
});
|
|
208
240
|
}
|
|
209
241
|
/** A complete provider status-change signal. */
|
|
210
242
|
interface WorkHydratedStatusChangedEvent extends WorkHydratedEventBase {
|
|
@@ -544,4 +576,4 @@ interface SendWorkEventOptions {
|
|
|
544
576
|
*/
|
|
545
577
|
declare function sendWorkEvent(event: WorkEvent, options: SendWorkEventOptions): Promise<void>;
|
|
546
578
|
|
|
547
|
-
export { type
|
|
579
|
+
export { type WorkPerson as $, type WorkDisconnectResult as A, type WorkEvent as B, type ContextBlock as C, type WorkHydrateEventInput as D, type WorkHydrateEventResult as E, type WorkHydratedCommentCreatedEvent as F, type WorkHydratedEvent as G, type WorkHydratedEventBase as H, type WorkHydratedItemDeletedEvent as I, type WorkHydratedStatusChangedEvent as J, type WorkHydrationReferenceEvent as K, type LegacyWorkHandlers as L, type MentionItems as M, type WorkItemLinkResult as N, type WorkItemType as O, type WorkLinkedItemInput as P, type WorkListContainersInput as Q, type ReviewAttachmentDescriptor as R, type SendWorkEventOptions as S, type TappifyFetchHandler as T, type WorkListContainersResult as U, type VerifyTokenOptions as V, type WorkAttachInput as W, type WorkMention as X, type WorkMutationInput as Y, type WorkOperation as Z, type WorkOperationMap as _, type TappifyClaims as a, type WorkRichTextSegment as a0, type WorkSetStatusInput as a1, type WorkSetStatusResult as a2, type WorkStage as a3, type WorkStatus as a4, createTappifyHandler as a5, sendWorkEvent as a6, type MetricsInput as b, type MetricsResponse as c, type MetricsSeries as d, type ReviewImageAttachmentDescriptor as e, type ReviewLinkAttachmentDescriptor as f, type ReviewThreadSource as g, type TappifyCallContext as h, type TappifyDocuments as i, type TappifyHandlerOptions as j, type TappifyHealth as k, type TappifyInstall as l, type TappifyRequest as m, type TappifyRouteHandler as n, type WorkAttachResult as o, type WorkCommentInput as p, type WorkCommentResult as q, type WorkConfigureInput as r, type WorkConfigureResult as s, type WorkContainer as t, type WorkCreateField as u, type WorkCreateFieldValues as v, type WorkCreateInput as w, type WorkDescribeContainerInput as x, type WorkDescribeContainerResult as y, type WorkDisconnectInput as z };
|