@wix/auto_sdk_forms_interactive-form-sessions 1.0.13 → 1.0.14

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.
@@ -502,6 +502,492 @@ interface SendUserMessageStreamedResponse {
502
502
  */
503
503
  interactiveFormSession?: InteractiveFormSession;
504
504
  }
505
+ interface ConverseRequest extends ConverseRequestRequestOneOf {
506
+ /** Get state request */
507
+ getStateRequest?: GetStateRequest;
508
+ /** Call tools request */
509
+ callToolsRequest?: CallToolsRequest;
510
+ /** Relay assistant message request */
511
+ relayAssistantMessage?: RelayAssistantMessageRequest;
512
+ /** Usage request */
513
+ usageRequest?: UsageRequest;
514
+ /**
515
+ * Request ID used for mapping the request to the response
516
+ * @format GUID
517
+ */
518
+ requestId?: string;
519
+ }
520
+ /** @oneof */
521
+ interface ConverseRequestRequestOneOf {
522
+ /** Get state request */
523
+ getStateRequest?: GetStateRequest;
524
+ /** Call tools request */
525
+ callToolsRequest?: CallToolsRequest;
526
+ /** Relay assistant message request */
527
+ relayAssistantMessage?: RelayAssistantMessageRequest;
528
+ /** Usage request */
529
+ usageRequest?: UsageRequest;
530
+ }
531
+ interface GetStateRequest {
532
+ /**
533
+ * Interactive form session ID
534
+ * @format GUID
535
+ */
536
+ interactiveFormSessionId?: string;
537
+ }
538
+ interface CallToolsRequest {
539
+ /**
540
+ * Tool calls to be executed
541
+ * @maxSize 100
542
+ */
543
+ calls?: Call[];
544
+ /**
545
+ * Interactive form session ID
546
+ * @format GUID
547
+ */
548
+ interactiveFormSessionId?: string;
549
+ }
550
+ interface Call {
551
+ /** Tool call arguments */
552
+ args?: Record<string, any> | null;
553
+ /**
554
+ * Tool name to call
555
+ * @minLength 1
556
+ * @maxLength 100
557
+ */
558
+ toolName?: string;
559
+ /**
560
+ * Tool call ID
561
+ * @minLength 1
562
+ * @maxLength 100
563
+ */
564
+ callId?: string;
565
+ }
566
+ interface RelayAssistantMessageRequest {
567
+ /**
568
+ * Assistant message text
569
+ * @minLength 1
570
+ * @maxLength 10000
571
+ */
572
+ text?: string;
573
+ /**
574
+ * Interactive form session ID
575
+ * @format GUID
576
+ */
577
+ interactiveFormSessionId?: string;
578
+ }
579
+ interface UsageRequest {
580
+ /** Microcents spent for the request */
581
+ microcentsSpent?: string;
582
+ /**
583
+ * Interactive form session ID
584
+ * @format GUID
585
+ */
586
+ interactiveFormSessionId?: string;
587
+ /**
588
+ * Form ID
589
+ * @format GUID
590
+ */
591
+ formId?: string;
592
+ /** Usage details for the request */
593
+ usage?: Usage;
594
+ }
595
+ interface Usage {
596
+ /**
597
+ * Model name used for the session
598
+ * @minLength 1
599
+ * @maxLength 100
600
+ */
601
+ model?: string | null;
602
+ /** The total number of tokens in the Response including input and output text and audio tokens */
603
+ totalTokens?: string;
604
+ /** The number of input tokens used in the Response, including text and audio tokens. */
605
+ inputTokens?: string;
606
+ /** The number of output tokens sent in the Response, including text and audio tokens. */
607
+ outputTokens?: string;
608
+ /** Token details */
609
+ tokenDetails?: Record<string, any> | null;
610
+ }
611
+ interface ConverseResponse extends ConverseResponseResponseOneOf {
612
+ /** Get state response */
613
+ getStateResponse?: GetStateResponse;
614
+ /** Call tools response */
615
+ callToolsResponse?: CallToolsResponse;
616
+ /** Assistant response chunk */
617
+ responseChunk?: InteractiveFormSessionResponseChunk;
618
+ /** Response that signals that the request has been processed */
619
+ acknowledgmentResponse?: AcknowledgmentResponse;
620
+ /**
621
+ * Request ID used for mapping the request to the response
622
+ * @format GUID
623
+ */
624
+ requestId?: string;
625
+ }
626
+ /** @oneof */
627
+ interface ConverseResponseResponseOneOf {
628
+ /** Get state response */
629
+ getStateResponse?: GetStateResponse;
630
+ /** Call tools response */
631
+ callToolsResponse?: CallToolsResponse;
632
+ /** Assistant response chunk */
633
+ responseChunk?: InteractiveFormSessionResponseChunk;
634
+ /** Response that signals that the request has been processed */
635
+ acknowledgmentResponse?: AcknowledgmentResponse;
636
+ }
637
+ interface GetStateResponse {
638
+ /**
639
+ * Available tools for the session
640
+ * @maxSize 100
641
+ */
642
+ tools?: Tool[];
643
+ /**
644
+ * Context messages for the session
645
+ * @maxSize 10000
646
+ */
647
+ contextMessages?: ContextMessage[];
648
+ /**
649
+ * System prompt text
650
+ * @minLength 1
651
+ * @maxLength 10000
652
+ */
653
+ systemPrompt?: string;
654
+ /**
655
+ * Form ID for the session
656
+ * @format GUID
657
+ */
658
+ formId?: string;
659
+ /**
660
+ * Submission state message
661
+ * @maxLength 10000
662
+ */
663
+ submissionStateMessage?: string | null;
664
+ }
665
+ interface Tool {
666
+ /**
667
+ * Tool type identifier
668
+ * @minLength 1
669
+ * @maxLength 10000
670
+ */
671
+ type?: string;
672
+ /**
673
+ * Tool name
674
+ * @minLength 1
675
+ * @maxLength 10000
676
+ */
677
+ name?: string | null;
678
+ /**
679
+ * Tool description
680
+ * @minLength 1
681
+ * @maxLength 10000
682
+ */
683
+ description?: string | null;
684
+ /** Tool parameters */
685
+ parameters?: Record<string, any> | null;
686
+ }
687
+ interface ContextMessage extends ContextMessageOptionsOneOf {
688
+ /** User options */
689
+ userOptions?: UserOptions;
690
+ /** Assistant options */
691
+ assistantOptions?: AssistantOptions;
692
+ /** Function call options */
693
+ functionCallOptions?: FunctionCallOptions;
694
+ /** Function call output options */
695
+ functionCallOutputOptions?: FunctionCallOutputOptions;
696
+ /** Developer options */
697
+ developerOptions?: DeveloperOptions;
698
+ /** Role of the message sender */
699
+ role?: RoleWithLiterals;
700
+ }
701
+ /** @oneof */
702
+ interface ContextMessageOptionsOneOf {
703
+ /** User options */
704
+ userOptions?: UserOptions;
705
+ /** Assistant options */
706
+ assistantOptions?: AssistantOptions;
707
+ /** Function call options */
708
+ functionCallOptions?: FunctionCallOptions;
709
+ /** Function call output options */
710
+ functionCallOutputOptions?: FunctionCallOutputOptions;
711
+ /** Developer options */
712
+ developerOptions?: DeveloperOptions;
713
+ }
714
+ declare enum Role {
715
+ /** Unknown message role. */
716
+ UNKNOWN_ROLE = "UNKNOWN_ROLE",
717
+ /** Message from the user. */
718
+ USER = "USER",
719
+ /** Message from the AI assistant. */
720
+ ASSISTANT = "ASSISTANT",
721
+ /** Function call message. */
722
+ FUNCTION_CALL = "FUNCTION_CALL",
723
+ /** Function call output message. */
724
+ FUNCTION_CALL_OUTPUT = "FUNCTION_CALL_OUTPUT",
725
+ /** Message from the developer/system. */
726
+ DEVELOPER = "DEVELOPER"
727
+ }
728
+ /** @enumType */
729
+ type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'USER' | 'ASSISTANT' | 'FUNCTION_CALL' | 'FUNCTION_CALL_OUTPUT' | 'DEVELOPER';
730
+ interface UserOptions {
731
+ /**
732
+ * User message content
733
+ * @minLength 1
734
+ * @maxLength 10000
735
+ */
736
+ content?: string;
737
+ }
738
+ interface AssistantOptions {
739
+ /**
740
+ * Assistant message content
741
+ * @minLength 1
742
+ * @maxLength 10000
743
+ */
744
+ content?: string;
745
+ }
746
+ interface FunctionCallOptions {
747
+ /**
748
+ * Call name
749
+ * @minLength 1
750
+ * @maxLength 100
751
+ */
752
+ functionName?: string;
753
+ /** Call arguments */
754
+ args?: Record<string, any> | null;
755
+ /**
756
+ * Call ID
757
+ * @minLength 1
758
+ * @maxLength 100
759
+ */
760
+ callId?: string;
761
+ }
762
+ interface FunctionCallOutputOptions {
763
+ /** Call output data */
764
+ output?: Record<string, any> | null;
765
+ /**
766
+ * Call ID
767
+ * @minLength 1
768
+ * @maxLength 100
769
+ */
770
+ callId?: string;
771
+ }
772
+ interface DeveloperOptions {
773
+ /**
774
+ * Developer message content
775
+ * @minLength 1
776
+ * @maxLength 10000
777
+ */
778
+ content?: string;
779
+ }
780
+ interface CallToolsResponse {
781
+ /**
782
+ * Tool call responses
783
+ * @maxSize 100
784
+ */
785
+ responses?: Response[];
786
+ }
787
+ interface Response {
788
+ /**
789
+ * Tool call ID
790
+ * @minLength 1
791
+ * @maxLength 100
792
+ */
793
+ callId?: string;
794
+ /** Tool call response data */
795
+ response?: Record<string, any> | null;
796
+ }
797
+ interface AcknowledgmentResponse {
798
+ /** Whether request processing was successful. */
799
+ success?: boolean;
800
+ }
801
+ interface OutputInteractiveFormSessionStreamedRequest {
802
+ /**
803
+ * Interactive form session id to output
804
+ * @format GUID
805
+ */
806
+ interactiveFormSessionId?: string;
807
+ }
808
+ interface OutputInteractiveFormSessionStreamedResponse {
809
+ /** Interactive form session id */
810
+ interactiveFormSession?: InteractiveFormSession;
811
+ /** Assistant response chunk for the session */
812
+ responseChunk?: InteractiveFormSessionResponseChunk;
813
+ }
814
+ /** Request to report a conversation for quality assurance. */
815
+ interface ReportConversationRequest {
816
+ /**
817
+ * Interactive form session ID to report.
818
+ * @format GUID
819
+ */
820
+ interactiveFormSessionId?: string;
821
+ /**
822
+ * Details about the issue or feedback.
823
+ * @minLength 1
824
+ * @maxLength 10000
825
+ */
826
+ description?: string;
827
+ /**
828
+ * Viewer debug URL of the conversation
829
+ * @format WEB_URL
830
+ */
831
+ viewerDebugUrl?: string;
832
+ }
833
+ /** Response confirming conversation report submission. */
834
+ interface ReportConversationResponse {
835
+ /** Whether the report was successfully created. */
836
+ success?: boolean | null;
837
+ /**
838
+ * Error message.
839
+ * @maxLength 10000
840
+ */
841
+ errorMessage?: string | null;
842
+ }
843
+ interface DomainEvent extends DomainEventBodyOneOf {
844
+ createdEvent?: EntityCreatedEvent;
845
+ updatedEvent?: EntityUpdatedEvent;
846
+ deletedEvent?: EntityDeletedEvent;
847
+ actionEvent?: ActionEvent;
848
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
849
+ id?: string;
850
+ /**
851
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
852
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
853
+ */
854
+ entityFqdn?: string;
855
+ /**
856
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
857
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
858
+ */
859
+ slug?: string;
860
+ /** ID of the entity associated with the event. */
861
+ entityId?: string;
862
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
863
+ eventTime?: Date | null;
864
+ /**
865
+ * Whether the event was triggered as a result of a privacy regulation application
866
+ * (for example, GDPR).
867
+ */
868
+ triggeredByAnonymizeRequest?: boolean | null;
869
+ /** If present, indicates the action that triggered the event. */
870
+ originatedFrom?: string | null;
871
+ /**
872
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
873
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
874
+ */
875
+ entityEventSequence?: string | null;
876
+ }
877
+ /** @oneof */
878
+ interface DomainEventBodyOneOf {
879
+ createdEvent?: EntityCreatedEvent;
880
+ updatedEvent?: EntityUpdatedEvent;
881
+ deletedEvent?: EntityDeletedEvent;
882
+ actionEvent?: ActionEvent;
883
+ }
884
+ interface EntityCreatedEvent {
885
+ entityAsJson?: string;
886
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
887
+ restoreInfo?: RestoreInfo;
888
+ }
889
+ interface RestoreInfo {
890
+ deletedDate?: Date | null;
891
+ }
892
+ interface EntityUpdatedEvent {
893
+ /**
894
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
895
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
896
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
897
+ */
898
+ currentEntityAsJson?: string;
899
+ }
900
+ interface EntityDeletedEvent {
901
+ /** Entity that was deleted. */
902
+ deletedEntityAsJson?: string | null;
903
+ }
904
+ interface ActionEvent {
905
+ bodyAsJson?: string;
906
+ }
907
+ interface MessageEnvelope {
908
+ /**
909
+ * App instance ID.
910
+ * @format GUID
911
+ */
912
+ instanceId?: string | null;
913
+ /**
914
+ * Event type.
915
+ * @maxLength 150
916
+ */
917
+ eventType?: string;
918
+ /** The identification type and identity data. */
919
+ identity?: IdentificationData;
920
+ /** Stringify payload. */
921
+ data?: string;
922
+ }
923
+ interface IdentificationData extends IdentificationDataIdOneOf {
924
+ /**
925
+ * ID of a site visitor that has not logged in to the site.
926
+ * @format GUID
927
+ */
928
+ anonymousVisitorId?: string;
929
+ /**
930
+ * ID of a site visitor that has logged in to the site.
931
+ * @format GUID
932
+ */
933
+ memberId?: string;
934
+ /**
935
+ * ID of a Wix user (site owner, contributor, etc.).
936
+ * @format GUID
937
+ */
938
+ wixUserId?: string;
939
+ /**
940
+ * ID of an app.
941
+ * @format GUID
942
+ */
943
+ appId?: string;
944
+ /** @readonly */
945
+ identityType?: WebhookIdentityTypeWithLiterals;
946
+ }
947
+ /** @oneof */
948
+ interface IdentificationDataIdOneOf {
949
+ /**
950
+ * ID of a site visitor that has not logged in to the site.
951
+ * @format GUID
952
+ */
953
+ anonymousVisitorId?: string;
954
+ /**
955
+ * ID of a site visitor that has logged in to the site.
956
+ * @format GUID
957
+ */
958
+ memberId?: string;
959
+ /**
960
+ * ID of a Wix user (site owner, contributor, etc.).
961
+ * @format GUID
962
+ */
963
+ wixUserId?: string;
964
+ /**
965
+ * ID of an app.
966
+ * @format GUID
967
+ */
968
+ appId?: string;
969
+ }
970
+ declare enum WebhookIdentityType {
971
+ UNKNOWN = "UNKNOWN",
972
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
973
+ MEMBER = "MEMBER",
974
+ WIX_USER = "WIX_USER",
975
+ APP = "APP"
976
+ }
977
+ /** @enumType */
978
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
979
+ /** @docsIgnore */
980
+ type SendUserMessageApplicationErrors = {
981
+ code?: 'EMPTY_REQUEST';
982
+ description?: string;
983
+ data?: Record<string, any>;
984
+ };
985
+ /** @docsIgnore */
986
+ type SendUserMessageStreamedApplicationErrors = {
987
+ code?: 'EMPTY_REQUEST';
988
+ description?: string;
989
+ data?: Record<string, any>;
990
+ };
505
991
 
506
992
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
507
993
  getUrl: (context: any) => string;
@@ -522,4 +1008,4 @@ declare function sendUserMessageStreamed(): __PublicMethodMetaInfo<'POST', {
522
1008
  interactiveFormSessionId: string;
523
1009
  }, SendUserMessageStreamedRequest$1, SendUserMessageStreamedRequest, SendUserMessageStreamedResponse$1, SendUserMessageStreamedResponse>;
524
1010
 
525
- export { type __PublicMethodMetaInfo, createInteractiveFormSession, createInteractiveFormSessionStreamed, sendUserMessage, sendUserMessageStreamed };
1011
+ export { type AcknowledgmentResponse as AcknowledgmentResponseOriginal, type ActionEvent as ActionEventOriginal, type AssistantOptions as AssistantOptionsOriginal, type Call as CallOriginal, type CallToolsRequest as CallToolsRequestOriginal, type CallToolsResponse as CallToolsResponseOriginal, ChunkType as ChunkTypeOriginal, type ChunkTypeWithLiterals as ChunkTypeWithLiteralsOriginal, type ClientTime as ClientTimeOriginal, type ContextMessageOptionsOneOf as ContextMessageOptionsOneOfOriginal, type ContextMessage as ContextMessageOriginal, type ConverseRequest as ConverseRequestOriginal, type ConverseRequestRequestOneOf as ConverseRequestRequestOneOfOriginal, type ConverseResponse as ConverseResponseOriginal, type ConverseResponseResponseOneOf as ConverseResponseResponseOneOfOriginal, type CreateInteractiveFormSessionRequest as CreateInteractiveFormSessionRequestOriginal, type CreateInteractiveFormSessionResponse as CreateInteractiveFormSessionResponseOriginal, type CreateInteractiveFormSessionStreamedRequest as CreateInteractiveFormSessionStreamedRequestOriginal, type CreateInteractiveFormSessionStreamedResponse as CreateInteractiveFormSessionStreamedResponseOriginal, type CustomValue as CustomValueOriginal, type DebugDetails as DebugDetailsOriginal, type DeveloperOptions as DeveloperOptionsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EndOfResponseDetails as EndOfResponseDetailsOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ErrorDetails as ErrorDetailsOriginal, type FileUploadDetails as FileUploadDetailsOriginal, type FunctionCallOptions as FunctionCallOptionsOriginal, type FunctionCallOutputOptions as FunctionCallOutputOptionsOriginal, type GetStateRequest as GetStateRequestOriginal, type GetStateResponse as GetStateResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ImportantTextDetails as ImportantTextDetailsOriginal, type InteractiveFormSession as InteractiveFormSessionOriginal, type InteractiveFormSessionResponseChunkOfOneOf as InteractiveFormSessionResponseChunkOfOneOfOriginal, type InteractiveFormSessionResponseChunk as InteractiveFormSessionResponseChunkOriginal, type MeaningfulInput as MeaningfulInputOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MultiSelectInputDetails as MultiSelectInputDetailsOriginal, type NumberInputDetails as NumberInputDetailsOriginal, type NumberRangeLimitEndOneOf as NumberRangeLimitEndOneOfOriginal, type NumberRangeLimit as NumberRangeLimitOriginal, type Option as OptionOriginal, type OutputInteractiveFormSessionStreamedRequest as OutputInteractiveFormSessionStreamedRequestOriginal, type OutputInteractiveFormSessionStreamedResponse as OutputInteractiveFormSessionStreamedResponseOriginal, type RelayAssistantMessageRequest as RelayAssistantMessageRequestOriginal, type ReportConversationRequest as ReportConversationRequestOriginal, type ReportConversationResponse as ReportConversationResponseOriginal, type Response as ResponseOriginal, type RestoreInfo as RestoreInfoOriginal, Role as RoleOriginal, type RoleWithLiterals as RoleWithLiteralsOriginal, type SendUserMessageApplicationErrors as SendUserMessageApplicationErrorsOriginal, type SendUserMessageRequest as SendUserMessageRequestOriginal, type SendUserMessageResponse as SendUserMessageResponseOriginal, type SendUserMessageStreamedApplicationErrors as SendUserMessageStreamedApplicationErrorsOriginal, type SendUserMessageStreamedRequest as SendUserMessageStreamedRequestOriginal, type SendUserMessageStreamedResponse as SendUserMessageStreamedResponseOriginal, type SeparatorDetails as SeparatorDetailsOriginal, type SignatureDetails as SignatureDetailsOriginal, type SingleSelectInputDetails as SingleSelectInputDetailsOriginal, Style as StyleOriginal, type StyleWithLiterals as StyleWithLiteralsOriginal, type SubmissionDetails as SubmissionDetailsOriginal, type TextDataDetails as TextDataDetailsOriginal, type TextDetails as TextDetailsOriginal, type Tool as ToolOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type Usage as UsageOriginal, type UsageRequest as UsageRequestOriginal, type UserOptions as UserOptionsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createInteractiveFormSession, createInteractiveFormSessionStreamed, sendUserMessage, sendUserMessageStreamed };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ ChunkTypeOriginal: () => ChunkType,
24
+ RoleOriginal: () => Role,
25
+ StyleOriginal: () => Style,
26
+ TypeOriginal: () => Type,
27
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
28
  createInteractiveFormSession: () => createInteractiveFormSession2,
24
29
  createInteractiveFormSessionStreamed: () => createInteractiveFormSessionStreamed2,
25
30
  sendUserMessage: () => sendUserMessage2,
@@ -242,6 +247,53 @@ function sendUserMessageStreamed(payload) {
242
247
  return __sendUserMessageStreamed;
243
248
  }
244
249
 
250
+ // src/forms-ai-v1-interactive-form-session-interactive-form-sessions.types.ts
251
+ var ChunkType = /* @__PURE__ */ ((ChunkType2) => {
252
+ ChunkType2["UNKNOWN_CHUNK_TYPE"] = "UNKNOWN_CHUNK_TYPE";
253
+ ChunkType2["TEXT"] = "TEXT";
254
+ ChunkType2["TEXT_DATA"] = "TEXT_DATA";
255
+ ChunkType2["MULTI_SELECT_INPUT"] = "MULTI_SELECT_INPUT";
256
+ ChunkType2["NUMBER_INPUT"] = "NUMBER_INPUT";
257
+ ChunkType2["SEPARATOR"] = "SEPARATOR";
258
+ ChunkType2["SINGLE_SELECT_INPUT"] = "SINGLE_SELECT_INPUT";
259
+ ChunkType2["ERROR"] = "ERROR";
260
+ ChunkType2["SUBMISSION"] = "SUBMISSION";
261
+ ChunkType2["IMPORTANT_TEXT"] = "IMPORTANT_TEXT";
262
+ ChunkType2["DEBUG"] = "DEBUG";
263
+ ChunkType2["END_OF_RESPONSE"] = "END_OF_RESPONSE";
264
+ ChunkType2["FILE_UPLOAD"] = "FILE_UPLOAD";
265
+ ChunkType2["SIGNATURE"] = "SIGNATURE";
266
+ return ChunkType2;
267
+ })(ChunkType || {});
268
+ var Style = /* @__PURE__ */ ((Style2) => {
269
+ Style2["UNKNOWN_STYLE"] = "UNKNOWN_STYLE";
270
+ Style2["NORMAL"] = "NORMAL";
271
+ Style2["BOLD"] = "BOLD";
272
+ return Style2;
273
+ })(Style || {});
274
+ var Type = /* @__PURE__ */ ((Type2) => {
275
+ Type2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
276
+ Type2["PARAGRAPH"] = "PARAGRAPH";
277
+ return Type2;
278
+ })(Type || {});
279
+ var Role = /* @__PURE__ */ ((Role2) => {
280
+ Role2["UNKNOWN_ROLE"] = "UNKNOWN_ROLE";
281
+ Role2["USER"] = "USER";
282
+ Role2["ASSISTANT"] = "ASSISTANT";
283
+ Role2["FUNCTION_CALL"] = "FUNCTION_CALL";
284
+ Role2["FUNCTION_CALL_OUTPUT"] = "FUNCTION_CALL_OUTPUT";
285
+ Role2["DEVELOPER"] = "DEVELOPER";
286
+ return Role2;
287
+ })(Role || {});
288
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
289
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
290
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
291
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
292
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
293
+ WebhookIdentityType2["APP"] = "APP";
294
+ return WebhookIdentityType2;
295
+ })(WebhookIdentityType || {});
296
+
245
297
  // src/forms-ai-v1-interactive-form-session-interactive-form-sessions.meta.ts
246
298
  function createInteractiveFormSession2() {
247
299
  const payload = {};
@@ -327,6 +379,11 @@ function sendUserMessageStreamed2() {
327
379
  }
328
380
  // Annotate the CommonJS export names for ESM import in node:
329
381
  0 && (module.exports = {
382
+ ChunkTypeOriginal,
383
+ RoleOriginal,
384
+ StyleOriginal,
385
+ TypeOriginal,
386
+ WebhookIdentityTypeOriginal,
330
387
  createInteractiveFormSession,
331
388
  createInteractiveFormSessionStreamed,
332
389
  sendUserMessage,