@wildix/wilma-copilot-sessions-client 1.0.2

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 (67) hide show
  1. package/dist-cjs/WilmaCopilotSessions.js +15 -0
  2. package/dist-cjs/WilmaCopilotSessionsClient.js +49 -0
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/GetCopilotSessionEventsCommand.js +20 -0
  6. package/dist-cjs/commands/StreamCopilotSessionEventsCommand.js +20 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  9. package/dist-cjs/endpoint/bdd.js +28 -0
  10. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  11. package/dist-cjs/extensionConfiguration.js +2 -0
  12. package/dist-cjs/index.js +13 -0
  13. package/dist-cjs/models/WilmaCopilotSessionsServiceException.js +12 -0
  14. package/dist-cjs/models/enums.js +130 -0
  15. package/dist-cjs/models/errors.js +43 -0
  16. package/dist-cjs/models/models_0.js +2 -0
  17. package/dist-cjs/runtimeConfig.browser.js +32 -0
  18. package/dist-cjs/runtimeConfig.js +41 -0
  19. package/dist-cjs/runtimeConfig.native.js +15 -0
  20. package/dist-cjs/runtimeConfig.shared.js +42 -0
  21. package/dist-cjs/runtimeExtensions.js +12 -0
  22. package/dist-cjs/schemas/schemas_0.js +424 -0
  23. package/dist-es/WilmaCopilotSessions.js +11 -0
  24. package/dist-es/WilmaCopilotSessionsClient.js +45 -0
  25. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  26. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  27. package/dist-es/commands/GetCopilotSessionEventsCommand.js +16 -0
  28. package/dist-es/commands/StreamCopilotSessionEventsCommand.js +16 -0
  29. package/dist-es/commands/index.js +2 -0
  30. package/dist-es/endpoint/EndpointParameters.js +12 -0
  31. package/dist-es/endpoint/bdd.js +25 -0
  32. package/dist-es/endpoint/endpointResolver.js +12 -0
  33. package/dist-es/extensionConfiguration.js +1 -0
  34. package/dist-es/index.js +8 -0
  35. package/dist-es/models/WilmaCopilotSessionsServiceException.js +8 -0
  36. package/dist-es/models/enums.js +127 -0
  37. package/dist-es/models/errors.js +37 -0
  38. package/dist-es/models/models_0.js +1 -0
  39. package/dist-es/runtimeConfig.browser.js +27 -0
  40. package/dist-es/runtimeConfig.js +36 -0
  41. package/dist-es/runtimeConfig.native.js +11 -0
  42. package/dist-es/runtimeConfig.shared.js +38 -0
  43. package/dist-es/runtimeExtensions.js +8 -0
  44. package/dist-es/schemas/schemas_0.js +421 -0
  45. package/dist-types/WilmaCopilotSessions.d.ts +33 -0
  46. package/dist-types/WilmaCopilotSessionsClient.d.ts +178 -0
  47. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  48. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  49. package/dist-types/commands/GetCopilotSessionEventsCommand.d.ts +379 -0
  50. package/dist-types/commands/StreamCopilotSessionEventsCommand.d.ts +88 -0
  51. package/dist-types/commands/index.d.ts +2 -0
  52. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  53. package/dist-types/endpoint/bdd.d.ts +2 -0
  54. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  55. package/dist-types/extensionConfiguration.d.ts +8 -0
  56. package/dist-types/index.d.ts +25 -0
  57. package/dist-types/models/WilmaCopilotSessionsServiceException.d.ts +14 -0
  58. package/dist-types/models/enums.d.ts +275 -0
  59. package/dist-types/models/errors.d.ts +35 -0
  60. package/dist-types/models/models_0.d.ts +757 -0
  61. package/dist-types/runtimeConfig.browser.d.ts +56 -0
  62. package/dist-types/runtimeConfig.d.ts +56 -0
  63. package/dist-types/runtimeConfig.native.d.ts +55 -0
  64. package/dist-types/runtimeConfig.shared.d.ts +33 -0
  65. package/dist-types/runtimeExtensions.d.ts +17 -0
  66. package/dist-types/schemas/schemas_0.d.ts +50 -0
  67. package/package.json +57 -0
@@ -0,0 +1,757 @@
1
+ import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
2
+ import type { AssetIcon, AssetSeverity, ButtonVariant, CallDevice, CallParticipantRole, CallParticipantType, CallTranscriptionSpeaker, ConferenceParticipantRole, ConferenceParticipantType, CopilotSessionStatus, License, LiveEventType, MessageSmsStatus, MessageType, MessageWhatsAppStatus, PbxLicenseType, TranscriptionSentiment } from "./enums";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface TemplateParameter {
7
+ name: string;
8
+ value: string;
9
+ }
10
+ /**
11
+ * @public
12
+ */
13
+ export interface TemplateWithParameters {
14
+ name: string;
15
+ parameters?: TemplateParameter[] | undefined;
16
+ }
17
+ /**
18
+ * @public
19
+ */
20
+ export interface CallParticipant {
21
+ type: CallParticipantType;
22
+ phone?: string | undefined;
23
+ name?: string | undefined;
24
+ company?: string | undefined;
25
+ email?: string | undefined;
26
+ userId?: string | undefined;
27
+ userExtension?: string | undefined;
28
+ userDepartment?: string | undefined;
29
+ groupId?: string | undefined;
30
+ groupName?: string | undefined;
31
+ userAgent?: string | undefined;
32
+ userDevice?: CallDevice | undefined;
33
+ role: CallParticipantRole;
34
+ license?: string | undefined;
35
+ /**
36
+ * A unique identifier for the SIP call session used to control the call e.g., answer, hold, transfer, hang up.
37
+ * @public
38
+ */
39
+ sipCallId?: string | undefined;
40
+ /**
41
+ * Represents a network endpoint consisting of a public IP address and a port number. Example: '123.45.67.89:59317'
42
+ * @public
43
+ */
44
+ publicAddress?: string | undefined;
45
+ /**
46
+ * Represents a network endpoint consisting of a private IP address and a port number. Example: '172.16.1.2:54003'
47
+ * @public
48
+ */
49
+ privateAddress?: string | undefined;
50
+ /**
51
+ * The location specifies a geographic point using latitude and longitude coordinates. Example 'lat=29.3008&lon=1.7002'
52
+ * @public
53
+ */
54
+ location?: string | undefined;
55
+ }
56
+ /**
57
+ * @public
58
+ */
59
+ export interface CallTranscriptionChunk {
60
+ id: string;
61
+ time: number;
62
+ speaker: CallTranscriptionSpeaker;
63
+ text: string;
64
+ language?: string | undefined;
65
+ isFinal: boolean;
66
+ start: number;
67
+ end: number;
68
+ /**
69
+ * Transcription confidence score (accuracy level) in range from 0.0 to 1.0. Value -1.0 indicates confidence is unavailable.
70
+ * @public
71
+ */
72
+ confidence?: number | undefined;
73
+ /**
74
+ * Sentiment label for a transcription chunk. Shared between calls and conferences.
75
+ * @public
76
+ */
77
+ sentiment?: TranscriptionSentiment | undefined;
78
+ }
79
+ /**
80
+ * @public
81
+ */
82
+ export interface User {
83
+ id: string;
84
+ name?: string | undefined;
85
+ email?: string | undefined;
86
+ phone?: string | undefined;
87
+ picture?: string | undefined;
88
+ locale?: string | undefined;
89
+ timeZone?: string | undefined;
90
+ company?: string | undefined;
91
+ bot?: boolean | undefined;
92
+ pbxDomain?: string | undefined;
93
+ pbxPort?: string | undefined;
94
+ pbxExtension?: string | undefined;
95
+ pbxSerial?: string | undefined;
96
+ pbxUserId?: string | undefined;
97
+ pbxGroupId?: string | undefined;
98
+ createdAt?: string | undefined;
99
+ updatedAt?: string | undefined;
100
+ }
101
+ /**
102
+ * @public
103
+ */
104
+ export interface MessageAttachment {
105
+ id: string;
106
+ /**
107
+ * This *is* documentation about the field. Describe here what fsId and how to get it.
108
+ * @public
109
+ */
110
+ fsId: string;
111
+ mime?: string | undefined;
112
+ name: string;
113
+ size: number;
114
+ width?: number | undefined;
115
+ height?: number | undefined;
116
+ thumbnail?: string | undefined;
117
+ }
118
+ /**
119
+ * @public
120
+ */
121
+ export interface ButtonActionHandler {
122
+ /**
123
+ * A unique ID of the action within the message.
124
+ * @public
125
+ */
126
+ id: string;
127
+ }
128
+ /**
129
+ * @public
130
+ */
131
+ export interface ButtonLinkHandler {
132
+ url: string;
133
+ }
134
+ /**
135
+ * @public
136
+ */
137
+ export interface ButtonReplyHandler {
138
+ text?: string | undefined;
139
+ }
140
+ /**
141
+ * @public
142
+ */
143
+ export type ButtonHandler = ButtonHandler.ActionMember | ButtonHandler.LinkMember | ButtonHandler.ReplyMember | ButtonHandler.$UnknownMember;
144
+ /**
145
+ * @public
146
+ */
147
+ export declare namespace ButtonHandler {
148
+ interface LinkMember {
149
+ link: ButtonLinkHandler;
150
+ reply?: never;
151
+ action?: never;
152
+ $unknown?: never;
153
+ }
154
+ interface ReplyMember {
155
+ link?: never;
156
+ reply: ButtonReplyHandler;
157
+ action?: never;
158
+ $unknown?: never;
159
+ }
160
+ interface ActionMember {
161
+ link?: never;
162
+ reply?: never;
163
+ action: ButtonActionHandler;
164
+ $unknown?: never;
165
+ }
166
+ /**
167
+ * @public
168
+ */
169
+ interface $UnknownMember {
170
+ link?: never;
171
+ reply?: never;
172
+ action?: never;
173
+ $unknown: [string, any];
174
+ }
175
+ /**
176
+ * @deprecated unused in schema-serde mode.
177
+ *
178
+ */
179
+ interface Visitor<T> {
180
+ link: (value: ButtonLinkHandler) => T;
181
+ reply: (value: ButtonReplyHandler) => T;
182
+ action: (value: ButtonActionHandler) => T;
183
+ _: (name: string, value: any) => T;
184
+ }
185
+ }
186
+ /**
187
+ * @public
188
+ */
189
+ export interface ButtonElement {
190
+ text: string;
191
+ handler: ButtonHandler;
192
+ variant?: ButtonVariant | undefined;
193
+ disabled?: boolean | undefined;
194
+ }
195
+ /**
196
+ * @public
197
+ */
198
+ export type ActionElement = ActionElement.ButtonMember | ActionElement.$UnknownMember;
199
+ /**
200
+ * @public
201
+ */
202
+ export declare namespace ActionElement {
203
+ interface ButtonMember {
204
+ button: ButtonElement;
205
+ $unknown?: never;
206
+ }
207
+ /**
208
+ * @public
209
+ */
210
+ interface $UnknownMember {
211
+ button?: never;
212
+ $unknown: [string, any];
213
+ }
214
+ /**
215
+ * @deprecated unused in schema-serde mode.
216
+ *
217
+ */
218
+ interface Visitor<T> {
219
+ button: (value: ButtonElement) => T;
220
+ _: (name: string, value: any) => T;
221
+ }
222
+ }
223
+ /**
224
+ * @public
225
+ */
226
+ export interface MessageTemplateConfig {
227
+ whatsapp?: TemplateWithParameters | undefined;
228
+ }
229
+ /**
230
+ * @public
231
+ */
232
+ export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
233
+ /**
234
+ * @public
235
+ */
236
+ export declare namespace Element {
237
+ interface TemplateMember {
238
+ template: MessageTemplateConfig;
239
+ actions?: never;
240
+ $unknown?: never;
241
+ }
242
+ interface ActionsMember {
243
+ template?: never;
244
+ actions: ActionElement[];
245
+ $unknown?: never;
246
+ }
247
+ /**
248
+ * @public
249
+ */
250
+ interface $UnknownMember {
251
+ template?: never;
252
+ actions?: never;
253
+ $unknown: [string, any];
254
+ }
255
+ /**
256
+ * @deprecated unused in schema-serde mode.
257
+ *
258
+ */
259
+ interface Visitor<T> {
260
+ template: (value: MessageTemplateConfig) => T;
261
+ actions: (value: ActionElement[]) => T;
262
+ _: (name: string, value: any) => T;
263
+ }
264
+ }
265
+ /**
266
+ * @public
267
+ */
268
+ export interface MessageForward {
269
+ forwardCompany?: string | undefined;
270
+ forwardDate: string;
271
+ forwardEmail?: string | undefined;
272
+ forwardName?: string | undefined;
273
+ messageId: string;
274
+ channelId: string;
275
+ }
276
+ /**
277
+ * @public
278
+ */
279
+ export interface MessageGiphy {
280
+ id: string;
281
+ size: string;
282
+ url: string;
283
+ height: string;
284
+ width: string;
285
+ }
286
+ /**
287
+ * @public
288
+ */
289
+ export interface Reaction {
290
+ type?: string | undefined;
291
+ userId?: string | undefined;
292
+ messageId?: string | undefined;
293
+ user?: User | undefined;
294
+ }
295
+ /**
296
+ * @public
297
+ */
298
+ export interface MessageQuote {
299
+ messageId: string;
300
+ channelId: string;
301
+ user: User;
302
+ text?: string | undefined;
303
+ attachments?: MessageAttachment[] | undefined;
304
+ forward?: MessageForward | undefined;
305
+ mentions?: User[] | undefined;
306
+ giphy?: MessageGiphy | undefined;
307
+ createdAt: string;
308
+ updatedAt?: string | undefined;
309
+ }
310
+ /**
311
+ * @public
312
+ */
313
+ export interface Message {
314
+ text?: string | undefined;
315
+ elements?: Element[] | undefined;
316
+ attachments?: MessageAttachment[] | undefined;
317
+ quote?: MessageQuote | undefined;
318
+ forward?: MessageForward | undefined;
319
+ whatsapp?: boolean | undefined;
320
+ whatsappStatus?: MessageWhatsAppStatus | undefined;
321
+ sms?: boolean | undefined;
322
+ smsStatus?: MessageSmsStatus | undefined;
323
+ markdown?: boolean | undefined;
324
+ type: MessageType;
325
+ giphy?: MessageGiphy | undefined;
326
+ silent?: boolean | undefined;
327
+ event?: string | undefined;
328
+ messageId: string;
329
+ channelId: string;
330
+ user: User;
331
+ edit?: boolean | undefined;
332
+ mentions?: User[] | undefined;
333
+ latestReactions?: Reaction[] | undefined;
334
+ reactionCounts?: Record<string, number> | undefined;
335
+ createdAt: string;
336
+ updatedAt?: string | undefined;
337
+ }
338
+ /**
339
+ * @public
340
+ */
341
+ export interface ConferenceParticipant {
342
+ type: ConferenceParticipantType;
343
+ role?: ConferenceParticipantRole | undefined;
344
+ /**
345
+ * A unique identifier to avoid duplicates if user re-connect from different devices.
346
+ * @public
347
+ */
348
+ jid?: string | undefined;
349
+ name?: string | undefined;
350
+ email?: string | undefined;
351
+ phone?: string | undefined;
352
+ department?: string | undefined;
353
+ company?: string | undefined;
354
+ pbxSerial?: string | undefined;
355
+ pbxExtension?: string | undefined;
356
+ pbxGroupId?: string | undefined;
357
+ xbsId?: string | undefined;
358
+ license?: PbxLicenseType | undefined;
359
+ }
360
+ /**
361
+ * @public
362
+ */
363
+ export interface ConferenceTranscriptionChunk {
364
+ id: string;
365
+ time: number;
366
+ jid: string;
367
+ text: string;
368
+ language?: string | undefined;
369
+ isFinal: boolean;
370
+ start: number;
371
+ end: number;
372
+ /**
373
+ * Sentiment label for a transcription chunk. Shared between calls and conferences.
374
+ * @public
375
+ */
376
+ sentiment?: TranscriptionSentiment | undefined;
377
+ }
378
+ /**
379
+ * @public
380
+ */
381
+ export interface CallAnalyticsLiveTranscriptionEvent {
382
+ id: string;
383
+ pbx: string;
384
+ time: number;
385
+ company: string;
386
+ licenses: License[];
387
+ event: LiveEventType;
388
+ flowIndex: number;
389
+ flowStartTime: number;
390
+ callStartTime: number;
391
+ chunk: CallTranscriptionChunk;
392
+ participant?: CallParticipant | undefined;
393
+ }
394
+ /**
395
+ * @public
396
+ */
397
+ export interface ChatAnalyticsLiveTranscriptionEvent {
398
+ /**
399
+ * A unique chat channel identifier, distinguish each chat channel across different types.
400
+ * @public
401
+ */
402
+ id?: string | undefined;
403
+ /**
404
+ * A unique identifier that distinguishes each chat session within a channel.
405
+ * @public
406
+ */
407
+ chatId?: string | undefined;
408
+ time: number;
409
+ company: string;
410
+ event: LiveEventType;
411
+ message: Message;
412
+ }
413
+ /**
414
+ * @public
415
+ */
416
+ export interface ConferenceAnalyticsLiveTranscriptionEvent {
417
+ id: string;
418
+ time: number;
419
+ company: string;
420
+ event: LiveEventType;
421
+ conferenceStartTime: number;
422
+ transcriptionStartTime: number;
423
+ chunk: ConferenceTranscriptionChunk;
424
+ participant?: ConferenceParticipant | undefined;
425
+ }
426
+ /**
427
+ * An asset shown or updated in the session. Carries the full asset state at this point; re-emitted on updates (e.g. playbook progress).
428
+ * @public
429
+ */
430
+ export interface CopilotAssetEvent {
431
+ /**
432
+ * Monotonic per-session event index. Drives resumption: pass `index + 1` of the last seen event as `startIndex` when reconnecting.
433
+ * @public
434
+ */
435
+ index: number;
436
+ /**
437
+ * ISO-8601 time the event was recorded.
438
+ * @public
439
+ */
440
+ timestamp: string;
441
+ id: string;
442
+ /**
443
+ * Icon shown on the asset card.
444
+ * @public
445
+ */
446
+ icon?: AssetIcon | undefined;
447
+ /**
448
+ * Visual emphasis of the asset card.
449
+ * @public
450
+ */
451
+ styling?: AssetSeverity | undefined;
452
+ sticky?: boolean | undefined;
453
+ content?: string | undefined;
454
+ state: __DocumentType;
455
+ }
456
+ /**
457
+ * An assistant chat shown or updated in the session.
458
+ * @public
459
+ */
460
+ export interface CopilotAssistantEvent {
461
+ /**
462
+ * Monotonic per-session event index. Drives resumption: pass `index + 1` of the last seen event as `startIndex` when reconnecting.
463
+ * @public
464
+ */
465
+ index: number;
466
+ /**
467
+ * ISO-8601 time the event was recorded.
468
+ * @public
469
+ */
470
+ timestamp: string;
471
+ id: string;
472
+ state: __DocumentType;
473
+ }
474
+ /**
475
+ * An evaluation result detected or updated in the session. Carries the full evaluation state at this point; re-emitted on updates.
476
+ * @public
477
+ */
478
+ export interface CopilotEvaluationEvent {
479
+ /**
480
+ * Monotonic per-session event index. Drives resumption: pass `index + 1` of the last seen event as `startIndex` when reconnecting.
481
+ * @public
482
+ */
483
+ index: number;
484
+ /**
485
+ * ISO-8601 time the event was recorded.
486
+ * @public
487
+ */
488
+ timestamp: string;
489
+ id: string;
490
+ state: __DocumentType;
491
+ }
492
+ /**
493
+ * An intent detected or updated in the session. Carries the full intent state at this point; re-emitted on updates.
494
+ * @public
495
+ */
496
+ export interface CopilotIntentEvent {
497
+ /**
498
+ * Monotonic per-session event index. Drives resumption: pass `index + 1` of the last seen event as `startIndex` when reconnecting.
499
+ * @public
500
+ */
501
+ index: number;
502
+ /**
503
+ * ISO-8601 time the event was recorded.
504
+ * @public
505
+ */
506
+ timestamp: string;
507
+ id: string;
508
+ state: __DocumentType;
509
+ }
510
+ /**
511
+ * Session lifecycle transition. Emitted on attach and on every terminal transition.
512
+ * @public
513
+ */
514
+ export interface CopilotLifecycleEvent {
515
+ /**
516
+ * Monotonic per-session event index. Drives resumption: pass `index + 1` of the last seen event as `startIndex` when reconnecting.
517
+ * @public
518
+ */
519
+ index: number;
520
+ /**
521
+ * ISO-8601 time the event was recorded.
522
+ * @public
523
+ */
524
+ timestamp: string;
525
+ sessionId: string;
526
+ status: CopilotSessionStatus;
527
+ }
528
+ /**
529
+ * Original WDA live transcription event for the assisted conversation surface.
530
+ * @public
531
+ */
532
+ export type CopilotTranscriptionData = CopilotTranscriptionData.CallMember | CopilotTranscriptionData.ChatMember | CopilotTranscriptionData.ConferenceMember | CopilotTranscriptionData.$UnknownMember;
533
+ /**
534
+ * @public
535
+ */
536
+ export declare namespace CopilotTranscriptionData {
537
+ interface CallMember {
538
+ call: CallAnalyticsLiveTranscriptionEvent;
539
+ chat?: never;
540
+ conference?: never;
541
+ $unknown?: never;
542
+ }
543
+ interface ChatMember {
544
+ call?: never;
545
+ chat: ChatAnalyticsLiveTranscriptionEvent;
546
+ conference?: never;
547
+ $unknown?: never;
548
+ }
549
+ interface ConferenceMember {
550
+ call?: never;
551
+ chat?: never;
552
+ conference: ConferenceAnalyticsLiveTranscriptionEvent;
553
+ $unknown?: never;
554
+ }
555
+ /**
556
+ * @public
557
+ */
558
+ interface $UnknownMember {
559
+ call?: never;
560
+ chat?: never;
561
+ conference?: never;
562
+ $unknown: [string, any];
563
+ }
564
+ /**
565
+ * @deprecated unused in schema-serde mode.
566
+ *
567
+ */
568
+ interface Visitor<T> {
569
+ call: (value: CallAnalyticsLiveTranscriptionEvent) => T;
570
+ chat: (value: ChatAnalyticsLiveTranscriptionEvent) => T;
571
+ conference: (value: ConferenceAnalyticsLiveTranscriptionEvent) => T;
572
+ _: (name: string, value: any) => T;
573
+ }
574
+ }
575
+ /**
576
+ * A live transcription segment from the assisted conversation. Carries the original WDA analytics event without simplification.
577
+ * @public
578
+ */
579
+ export interface CopilotTranscriptionEvent {
580
+ /**
581
+ * Monotonic per-session event index. Drives resumption: pass `index + 1` of the last seen event as `startIndex` when reconnecting.
582
+ * @public
583
+ */
584
+ index: number;
585
+ /**
586
+ * ISO-8601 time the event was recorded.
587
+ * @public
588
+ */
589
+ timestamp: string;
590
+ /**
591
+ * Original WDA live transcription event for the assisted conversation surface.
592
+ * @public
593
+ */
594
+ data: CopilotTranscriptionData;
595
+ }
596
+ /**
597
+ * A single typed copilot session event. Exactly one member is set; the member name doubles as the `event:` field of the SSE frames produced by StreamCopilotSessionEvents.
598
+ * @public
599
+ */
600
+ export type CopilotSessionEvent = CopilotSessionEvent.AssetMember | CopilotSessionEvent.AssistantMember | CopilotSessionEvent.EvaluationMember | CopilotSessionEvent.IntentMember | CopilotSessionEvent.LifecycleMember | CopilotSessionEvent.TranscriptMember | CopilotSessionEvent.$UnknownMember;
601
+ /**
602
+ * @public
603
+ */
604
+ export declare namespace CopilotSessionEvent {
605
+ /**
606
+ * Session lifecycle transition. Emitted on attach and on every terminal transition.
607
+ * @public
608
+ */
609
+ interface LifecycleMember {
610
+ lifecycle: CopilotLifecycleEvent;
611
+ transcript?: never;
612
+ intent?: never;
613
+ evaluation?: never;
614
+ asset?: never;
615
+ assistant?: never;
616
+ $unknown?: never;
617
+ }
618
+ /**
619
+ * A live transcription segment from the assisted conversation. Carries the original WDA analytics event without simplification.
620
+ * @public
621
+ */
622
+ interface TranscriptMember {
623
+ lifecycle?: never;
624
+ transcript: CopilotTranscriptionEvent;
625
+ intent?: never;
626
+ evaluation?: never;
627
+ asset?: never;
628
+ assistant?: never;
629
+ $unknown?: never;
630
+ }
631
+ /**
632
+ * An intent detected or updated in the session. Carries the full intent state at this point; re-emitted on updates.
633
+ * @public
634
+ */
635
+ interface IntentMember {
636
+ lifecycle?: never;
637
+ transcript?: never;
638
+ intent: CopilotIntentEvent;
639
+ evaluation?: never;
640
+ asset?: never;
641
+ assistant?: never;
642
+ $unknown?: never;
643
+ }
644
+ /**
645
+ * An evaluation result detected or updated in the session. Carries the full evaluation state at this point; re-emitted on updates.
646
+ * @public
647
+ */
648
+ interface EvaluationMember {
649
+ lifecycle?: never;
650
+ transcript?: never;
651
+ intent?: never;
652
+ evaluation: CopilotEvaluationEvent;
653
+ asset?: never;
654
+ assistant?: never;
655
+ $unknown?: never;
656
+ }
657
+ /**
658
+ * An asset shown or updated in the session. Carries the full asset state at this point; re-emitted on updates (e.g. playbook progress).
659
+ * @public
660
+ */
661
+ interface AssetMember {
662
+ lifecycle?: never;
663
+ transcript?: never;
664
+ intent?: never;
665
+ evaluation?: never;
666
+ asset: CopilotAssetEvent;
667
+ assistant?: never;
668
+ $unknown?: never;
669
+ }
670
+ /**
671
+ * An assistant chat shown or updated in the session.
672
+ * @public
673
+ */
674
+ interface AssistantMember {
675
+ lifecycle?: never;
676
+ transcript?: never;
677
+ intent?: never;
678
+ evaluation?: never;
679
+ asset?: never;
680
+ assistant: CopilotAssistantEvent;
681
+ $unknown?: never;
682
+ }
683
+ /**
684
+ * @public
685
+ */
686
+ interface $UnknownMember {
687
+ lifecycle?: never;
688
+ transcript?: never;
689
+ intent?: never;
690
+ evaluation?: never;
691
+ asset?: never;
692
+ assistant?: never;
693
+ $unknown: [string, any];
694
+ }
695
+ /**
696
+ * @deprecated unused in schema-serde mode.
697
+ *
698
+ */
699
+ interface Visitor<T> {
700
+ lifecycle: (value: CopilotLifecycleEvent) => T;
701
+ transcript: (value: CopilotTranscriptionEvent) => T;
702
+ intent: (value: CopilotIntentEvent) => T;
703
+ evaluation: (value: CopilotEvaluationEvent) => T;
704
+ asset: (value: CopilotAssetEvent) => T;
705
+ assistant: (value: CopilotAssistantEvent) => T;
706
+ _: (name: string, value: any) => T;
707
+ }
708
+ }
709
+ /**
710
+ * @public
711
+ */
712
+ export interface GetCopilotSessionEventsInput {
713
+ sessionId: string;
714
+ /**
715
+ * Return events with `index >= startIndex`. Defaults to 0.
716
+ * @public
717
+ */
718
+ startIndex?: number | undefined;
719
+ /**
720
+ * Maximum number of events to return. Defaults to 1000.
721
+ * @public
722
+ */
723
+ limit?: number | undefined;
724
+ }
725
+ /**
726
+ * @public
727
+ */
728
+ export interface GetCopilotSessionEventsOutput {
729
+ events: CopilotSessionEvent[];
730
+ /**
731
+ * Present when more events exist; pass it as `startIndex` of the next call.
732
+ * @public
733
+ */
734
+ nextStartIndex?: number | undefined;
735
+ }
736
+ /**
737
+ * @public
738
+ */
739
+ export interface StreamCopilotSessionEventsInput {
740
+ sessionId: string;
741
+ /**
742
+ * Replay recorded events with `index >= startIndex` before tailing live ones. Defaults to 0.
743
+ * @public
744
+ */
745
+ startIndex?: number | undefined;
746
+ }
747
+ /**
748
+ * @public
749
+ */
750
+ export interface StreamCopilotSessionEventsOutput {
751
+ /**
752
+ * Raw Server-Sent Events byte stream (`text/event-stream`). Each frame carries one CopilotSessionEvent: `id:` is the event index, `event:` is the union member name, and `data:` is the JSON document of the union value, e.g. `\{"asset": \{...\}\}`.
753
+ * @public
754
+ */
755
+ events: StreamingBlobTypes;
756
+ contentType: string;
757
+ }