@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.
Files changed (66) hide show
  1. package/dist/{chunk-QJMZRV7A.mjs → chunk-6FASZFC4.mjs} +19 -7
  2. package/dist/chunk-6FASZFC4.mjs.map +1 -0
  3. package/dist/{chunk-EB5XWQAU.cjs → chunk-6MP5DKLZ.cjs} +28 -16
  4. package/dist/chunk-6MP5DKLZ.cjs.map +1 -0
  5. package/dist/{chunk-BPCGXXMD.cjs → chunk-AYYJCRS4.cjs} +10 -10
  6. package/dist/{chunk-BPCGXXMD.cjs.map → chunk-AYYJCRS4.cjs.map} +1 -1
  7. package/dist/{chunk-KZ5NGFUP.mjs → chunk-CEFLOQD4.mjs} +2 -2
  8. package/dist/{chunk-7YKH4LZN.cjs → chunk-EV3KKP62.cjs} +17 -6
  9. package/dist/chunk-EV3KKP62.cjs.map +1 -0
  10. package/dist/{chunk-SGCYEEXD.mjs → chunk-IHLK4I7J.mjs} +17 -6
  11. package/dist/chunk-IHLK4I7J.mjs.map +1 -0
  12. package/dist/{chunk-A74HCO6T.cjs → chunk-TEIGGORZ.cjs} +3 -3
  13. package/dist/{chunk-A74HCO6T.cjs.map → chunk-TEIGGORZ.cjs.map} +1 -1
  14. package/dist/{chunk-SWG7CNTZ.mjs → chunk-WW2D3N2T.mjs} +3 -3
  15. package/dist/{client-DE-vMgdO.d.cts → client-BLnec4SD.d.cts} +1 -1
  16. package/dist/{client-BO3kavn0.d.ts → client-BRxKTo-L.d.ts} +1 -1
  17. package/dist/codegen.d.cts +14 -5
  18. package/dist/codegen.d.ts +14 -5
  19. package/dist/{constants-Bh759FUI.d.cts → constants-CvHbO3ia.d.cts} +14 -5
  20. package/dist/{constants-Bh759FUI.d.ts → constants-CvHbO3ia.d.ts} +14 -5
  21. package/dist/{context-mr8R5CNt.d.ts → context-BjhW0QWy.d.ts} +1 -1
  22. package/dist/{context-DI0EJCRD.d.cts → context-CsviWecX.d.cts} +1 -1
  23. package/dist/host.d.cts +4 -4
  24. package/dist/host.d.ts +4 -4
  25. package/dist/index.d.cts +4 -4
  26. package/dist/index.d.ts +4 -4
  27. package/dist/manifest.cjs +16 -16
  28. package/dist/manifest.d.cts +10 -4
  29. package/dist/manifest.d.ts +10 -4
  30. package/dist/manifest.mjs +1 -1
  31. package/dist/server.cjs +8 -8
  32. package/dist/server.d.cts +5 -5
  33. package/dist/server.d.ts +5 -5
  34. package/dist/server.mjs +3 -3
  35. package/dist/testing/index.cjs +8 -8
  36. package/dist/testing/index.d.cts +3 -3
  37. package/dist/testing/index.d.ts +3 -3
  38. package/dist/testing/index.mjs +4 -4
  39. package/dist/{types-BdDaLnqs.d.cts → types-C5k8VwaA.d.cts} +1 -1
  40. package/dist/{types-uGHrRaOj.d.ts → types-DBpDxGlT.d.ts} +1 -1
  41. package/dist/ui.d.cts +1 -1
  42. package/dist/ui.d.ts +1 -1
  43. package/dist/vite-preview-bootstrap.d.cts +2 -2
  44. package/dist/vite-preview-bootstrap.d.ts +2 -2
  45. package/dist/vite-preview.cjs +7 -7
  46. package/dist/vite-preview.cjs.map +1 -1
  47. package/dist/vite-preview.d.cts +3 -3
  48. package/dist/vite-preview.d.ts +3 -3
  49. package/dist/vite-preview.mjs +4 -4
  50. package/dist/vite-preview.mjs.map +1 -1
  51. package/dist/vite.cjs +16 -5
  52. package/dist/vite.cjs.map +1 -1
  53. package/dist/vite.d.cts +14 -5
  54. package/dist/vite.d.ts +14 -5
  55. package/dist/vite.mjs +16 -5
  56. package/dist/vite.mjs.map +1 -1
  57. package/dist/{work-events-BlOVpK0k.d.ts → work-events-BYU25wmX.d.ts} +40 -8
  58. package/dist/{work-events-D97EoqvS.d.cts → work-events-CxFu-YZE.d.cts} +40 -8
  59. package/package.json +1 -1
  60. package/schema/extension-v2.json +75 -330
  61. package/dist/chunk-7YKH4LZN.cjs.map +0 -1
  62. package/dist/chunk-EB5XWQAU.cjs.map +0 -1
  63. package/dist/chunk-QJMZRV7A.mjs.map +0 -1
  64. package/dist/chunk-SGCYEEXD.mjs.map +0 -1
  65. /package/dist/{chunk-KZ5NGFUP.mjs.map → chunk-CEFLOQD4.mjs.map} +0 -0
  66. /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-uGHrRaOj.js';
3
- import { a9 as WorkContribution } from './constants-Bh759FUI.js';
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 WorkSetStatusResult 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 WorkMutationInput as X, type WorkOperation as Y, type WorkOperationMap as Z, type WorkSetStatusInput as _, type TappifyClaims as a, type WorkStage as a0, type WorkStatus as a1, createTappifyHandler as a2, sendWorkEvent as a3, 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 };
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-BdDaLnqs.cjs';
3
- import { a9 as WorkContribution } from './constants-Bh759FUI.cjs';
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 WorkSetStatusResult 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 WorkMutationInput as X, type WorkOperation as Y, type WorkOperationMap as Z, type WorkSetStatusInput as _, type TappifyClaims as a, type WorkStage as a0, type WorkStatus as a1, createTappifyHandler as a2, sendWorkEvent as a3, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tappify/extension-sdk",
3
- "version": "2.1.0-beta.2",
3
+ "version": "2.1.0-beta.4",
4
4
  "description": "Build extensions that run inside Tappify",
5
5
  "author": "Tappify Team",
6
6
  "license": "MIT",