@elqnt/agents 3.1.0 → 3.2.1

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 (65) hide show
  1. package/README.md +40 -0
  2. package/dist/{agent-models-C36pvpUb.d.mts → agent-models-DLQlC7N6.d.mts} +143 -2
  3. package/dist/{agent-models-C36pvpUb.d.ts → agent-models-DLQlC7N6.d.ts} +143 -2
  4. package/dist/api/index.d.mts +227 -5
  5. package/dist/api/index.d.ts +227 -5
  6. package/dist/api/index.js +54 -2
  7. package/dist/api/index.js.map +1 -1
  8. package/dist/api/index.mjs +53 -1
  9. package/dist/api/server.d.mts +4 -2
  10. package/dist/api/server.d.ts +4 -2
  11. package/dist/api/server.js +9 -1
  12. package/dist/api/server.js.map +1 -1
  13. package/dist/api/server.mjs +8 -0
  14. package/dist/api/server.mjs.map +1 -1
  15. package/dist/chunk-2JDVRL35.js +133 -0
  16. package/dist/chunk-2JDVRL35.js.map +1 -0
  17. package/dist/chunk-2QL3LLC3.mjs +1075 -0
  18. package/dist/chunk-2QL3LLC3.mjs.map +1 -0
  19. package/dist/chunk-3EHE4O57.mjs +133 -0
  20. package/dist/chunk-3EHE4O57.mjs.map +1 -0
  21. package/dist/{chunk-TPQS2XAW.js → chunk-3VM5TCJR.js} +8 -2
  22. package/dist/chunk-3VM5TCJR.js.map +1 -0
  23. package/dist/chunk-AF4QJD73.js +1075 -0
  24. package/dist/chunk-AF4QJD73.js.map +1 -0
  25. package/dist/{chunk-RAA5NKA7.js → chunk-BH2FIDFK.js} +224 -2
  26. package/dist/chunk-BH2FIDFK.js.map +1 -0
  27. package/dist/{chunk-NF6PGOXP.mjs → chunk-GOHHT3ET.mjs} +224 -2
  28. package/dist/chunk-GOHHT3ET.mjs.map +1 -0
  29. package/dist/{chunk-SXYTVNKJ.mjs → chunk-ZK27UGO6.mjs} +7 -1
  30. package/dist/{chunk-SXYTVNKJ.mjs.map → chunk-ZK27UGO6.mjs.map} +1 -1
  31. package/dist/hooks/index.d.mts +224 -67
  32. package/dist/hooks/index.d.ts +224 -67
  33. package/dist/hooks/index.js +8 -3
  34. package/dist/hooks/index.js.map +1 -1
  35. package/dist/hooks/index.mjs +11 -6
  36. package/dist/index.d.mts +7 -5
  37. package/dist/index.d.ts +7 -5
  38. package/dist/index.js +67 -4
  39. package/dist/index.js.map +1 -1
  40. package/dist/index.mjs +70 -7
  41. package/dist/models/index.d.mts +3 -131
  42. package/dist/models/index.d.ts +3 -131
  43. package/dist/models/index.js +8 -2
  44. package/dist/models/index.js.map +1 -1
  45. package/dist/models/index.mjs +7 -1
  46. package/dist/{integration-21IuOOeV.d.mts → sandbox-DOxoM2Ge.d.mts} +132 -1
  47. package/dist/{integration-21IuOOeV.d.ts → sandbox-DOxoM2Ge.d.ts} +132 -1
  48. package/dist/transport/index.d.mts +36 -0
  49. package/dist/transport/index.d.ts +36 -0
  50. package/dist/transport/index.js +8 -0
  51. package/dist/transport/index.js.map +1 -0
  52. package/dist/transport/index.mjs +8 -0
  53. package/dist/transport/index.mjs.map +1 -0
  54. package/dist/types-C2qd5f-E.d.mts +51 -0
  55. package/dist/types-k9PszCzt.d.ts +51 -0
  56. package/dist/utils/index.d.mts +1 -1
  57. package/dist/utils/index.d.ts +1 -1
  58. package/package.json +10 -4
  59. package/dist/chunk-NF6PGOXP.mjs.map +0 -1
  60. package/dist/chunk-RAA5NKA7.js.map +0 -1
  61. package/dist/chunk-RWFVHX2J.js +0 -585
  62. package/dist/chunk-RWFVHX2J.js.map +0 -1
  63. package/dist/chunk-TPQS2XAW.js.map +0 -1
  64. package/dist/chunk-X4MSBDTZ.mjs +0 -585
  65. package/dist/chunk-X4MSBDTZ.mjs.map +0 -1
@@ -1,3 +1,5 @@
1
+ import { ResponseMetadata } from '@elqnt/types';
2
+
1
3
  /**
2
4
  * IntegrationProvider represents the email/calendar provider type
3
5
  */
@@ -748,4 +750,133 @@ declare const HubIntegrationDriveGet = "hub.integrations.drive.get";
748
750
  */
749
751
  declare const HubIntegrationSetupOrg = "hub.integrations.setup.org";
750
752
 
751
- export { HubIntegrationOrgList as $, type ArchiveEmailRequest as A, type GetEmailThreadResponse as B, type CalendarEvent as C, type DeleteCalendarEventRequest as D, type EmailAttachment as E, type FileDetails as F, type GetCalendarEventRequest as G, type GetUserIntegrationRequest as H, type GetUserIntegrationResponse as I, HubEmailTriageRunNow as J, HubIntegrationCalendarCreate as K, HubIntegrationCalendarDelete as L, HubIntegrationCalendarGet as M, HubIntegrationCalendarList as N, HubIntegrationCalendarRSVP as O, HubIntegrationCalendarUpdate as P, HubIntegrationDriveGet as Q, HubIntegrationDriveSearch as R, HubIntegrationEmailArchive as S, HubIntegrationEmailForward as T, HubIntegrationEmailGet as U, HubIntegrationEmailMarkRead as V, HubIntegrationEmailSearch as W, HubIntegrationEmailSend as X, HubIntegrationEmailThread as Y, HubIntegrationOrgConfigure as Z, HubIntegrationOrgDisable as _, type ArchiveEmailResponse as a, HubIntegrationSetupOrg as a0, HubIntegrationUserCallback as a1, HubIntegrationUserConnect as a2, HubIntegrationUserDisconnect as a3, HubIntegrationUserGet as a4, HubIntegrationUserList as a5, HubIntegrationUserRefresh as a6, HubIntegrationUserUpdateTriage as a7, type IntegrationCallbackRequest as a8, type IntegrationCallbackResponse as a9, type MarkAsReadRequest as aA, type MarkAsReadResponse as aB, type OAuthState as aC, type OrgIntegration as aD, type RSVPCalendarEventRequest as aE, type RSVPCalendarEventResponse as aF, type RefreshIntegrationRequest as aG, type RefreshIntegrationResponse as aH, type RunEmailTriageRequest as aI, type RunEmailTriageResponse as aJ, type SearchEmailsRequest as aK, type SearchEmailsResponse as aL, type SendEmailRequest as aM, type SendEmailResponse as aN, type SendEmailResult as aO, type SetupIntegrationsRequest as aP, type SetupIntegrationsResponse as aQ, type TokenData as aR, type UpdateCalendarEventRequest as aS, type UpdateCalendarEventResponse as aT, type UpdateTriageEnabledRequest as aU, type UpdateTriageEnabledResponse as aV, type UserIntegration as aW, type IntegrationMode as aa, IntegrationModeDomainDelegation as ab, IntegrationModeServicePrincipal as ac, type IntegrationProvider as ad, IntegrationProviderGoogle as ae, IntegrationProviderMicrosoft as af, type IntegrationProviderTS as ag, type IntegrationStatus as ah, IntegrationStatusActive as ai, IntegrationStatusError as aj, IntegrationStatusExpired as ak, IntegrationStatusRevoked as al, type IntegrationStatusTS as am, type IntegrationType as an, IntegrationTypeCalendar as ao, IntegrationTypeDrive as ap, IntegrationTypeEmail as aq, type IntegrationTypeTS as ar, type ListCalendarEventsRequest as as, type ListCalendarEventsResponse as at, type ListDriveFilesRequest as au, type ListDriveFilesResponse as av, type ListOrgIntegrationsRequest as aw, type ListOrgIntegrationsResponse as ax, type ListUserIntegrationsRequest as ay, type ListUserIntegrationsResponse as az, type ConfigureOrgIntegrationRequest as b, type ConfigureOrgIntegrationResponse as c, type ConnectIntegrationRequest as d, type ConnectIntegrationResponse as e, type CreateCalendarEventRequest as f, type CreateCalendarEventResponse as g, type DeleteCalendarEventResponse as h, type DisableOrgIntegrationRequest as i, type DisableOrgIntegrationResponse as j, type DisconnectIntegrationRequest as k, type DisconnectIntegrationResponse as l, type EmailDetails as m, type EmailSummary as n, type EventAttendee as o, type EventReminder as p, type FilePermission as q, type FileSummary as r, type FileWithContent as s, type ForwardEmailRequest as t, type GetCalendarEventResponse as u, type GetDriveFileRequest as v, type GetDriveFileResponse as w, type GetEmailRequest as x, type GetEmailResponse as y, type GetEmailThreadRequest as z };
753
+ /**
754
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
755
+ */
756
+ declare const CreateSandboxSubject = "agents.tool.execute.sandbox.create";
757
+ /**
758
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
759
+ */
760
+ declare const GetSandboxSubject = "agents.tool.execute.sandbox.get";
761
+ /**
762
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
763
+ */
764
+ declare const UpdateSandboxSubject = "agents.tool.execute.sandbox.update";
765
+ /**
766
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
767
+ */
768
+ declare const ListSandboxSubject = "agents.tool.execute.sandbox.list";
769
+ /**
770
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
771
+ */
772
+ declare const DeleteSandboxSubject = "agents.tool.execute.sandbox.delete";
773
+ /**
774
+ * Sandbox represents a stored HTML sandbox
775
+ */
776
+ interface Sandbox {
777
+ id: string;
778
+ orgId?: string;
779
+ userId?: string;
780
+ html: string;
781
+ title?: string;
782
+ description?: string;
783
+ url?: string;
784
+ metadata?: {
785
+ [key: string]: string;
786
+ };
787
+ createdAt: string;
788
+ expiresAt: string;
789
+ }
790
+ /**
791
+ * CreateSandboxRequest is the request to create a new sandbox (prompt-based)
792
+ */
793
+ interface CreateSandboxRequest {
794
+ orgId: string;
795
+ userId?: string;
796
+ prompt: string;
797
+ title?: string;
798
+ description?: string;
799
+ libraries?: string[];
800
+ style?: string;
801
+ attachments?: any[];
802
+ }
803
+ /**
804
+ * CreateSandboxResponse is the response after creating a sandbox
805
+ */
806
+ interface CreateSandboxResponse {
807
+ sandbox?: Sandbox;
808
+ id: string;
809
+ url: string;
810
+ metadata: ResponseMetadata;
811
+ }
812
+ /**
813
+ * GetSandboxRequest is the request to get a sandbox
814
+ */
815
+ interface GetSandboxRequest {
816
+ id: string;
817
+ }
818
+ /**
819
+ * GetSandboxResponse is the response with sandbox data
820
+ */
821
+ interface GetSandboxResponse {
822
+ sandbox?: Sandbox;
823
+ metadata: ResponseMetadata;
824
+ }
825
+ /**
826
+ * UpdateSandboxRequest is the request to update a sandbox (prompt-based)
827
+ */
828
+ interface UpdateSandboxRequest {
829
+ id: string;
830
+ orgId: string;
831
+ userId?: string;
832
+ prompt: string;
833
+ title?: string;
834
+ }
835
+ /**
836
+ * UpdateSandboxResponse is the response after updating a sandbox
837
+ */
838
+ interface UpdateSandboxResponse {
839
+ sandbox?: Sandbox;
840
+ id: string;
841
+ url: string;
842
+ metadata: ResponseMetadata;
843
+ }
844
+ /**
845
+ * ListSandboxesRequest is the request to list sandboxes
846
+ */
847
+ interface ListSandboxesRequest {
848
+ orgId: string;
849
+ userId?: string;
850
+ limit?: number;
851
+ }
852
+ /**
853
+ * ListSandboxesResponse is the response with list of sandboxes
854
+ */
855
+ interface ListSandboxesResponse {
856
+ sandboxes: Sandbox[];
857
+ total: number;
858
+ metadata: ResponseMetadata;
859
+ }
860
+ /**
861
+ * DeleteSandboxRequest is the request to delete a sandbox
862
+ */
863
+ interface DeleteSandboxRequest {
864
+ id: string;
865
+ }
866
+ /**
867
+ * DeleteSandboxResponse is the response after deleting a sandbox
868
+ */
869
+ interface DeleteSandboxResponse {
870
+ success: boolean;
871
+ metadata: ResponseMetadata;
872
+ }
873
+ /**
874
+ * ValidationResult holds the result of HTML validation
875
+ */
876
+ interface ValidationResult {
877
+ valid: boolean;
878
+ errors?: string[];
879
+ warnings?: string[];
880
+ }
881
+
882
+ export { HubIntegrationEmailArchive as $, type ArchiveEmailRequest as A, type GetCalendarEventResponse as B, type CalendarEvent as C, type DeleteCalendarEventRequest as D, type EmailAttachment as E, type FileDetails as F, type GetCalendarEventRequest as G, type GetDriveFileRequest as H, type GetDriveFileResponse as I, type GetEmailRequest as J, type GetEmailResponse as K, type GetEmailThreadRequest as L, type GetEmailThreadResponse as M, type GetSandboxRequest as N, type GetSandboxResponse as O, GetSandboxSubject as P, type GetUserIntegrationRequest as Q, type GetUserIntegrationResponse as R, HubEmailTriageRunNow as S, HubIntegrationCalendarCreate as T, HubIntegrationCalendarDelete as U, HubIntegrationCalendarGet as V, HubIntegrationCalendarList as W, HubIntegrationCalendarRSVP as X, HubIntegrationCalendarUpdate as Y, HubIntegrationDriveGet as Z, HubIntegrationDriveSearch as _, type ArchiveEmailResponse as a, type SendEmailResult as a$, HubIntegrationEmailForward as a0, HubIntegrationEmailGet as a1, HubIntegrationEmailMarkRead as a2, HubIntegrationEmailSearch as a3, HubIntegrationEmailSend as a4, HubIntegrationEmailThread as a5, HubIntegrationOrgConfigure as a6, HubIntegrationOrgDisable as a7, HubIntegrationOrgList as a8, HubIntegrationSetupOrg as a9, type IntegrationTypeTS as aA, type ListCalendarEventsRequest as aB, type ListCalendarEventsResponse as aC, type ListDriveFilesRequest as aD, type ListDriveFilesResponse as aE, type ListOrgIntegrationsRequest as aF, type ListOrgIntegrationsResponse as aG, ListSandboxSubject as aH, type ListSandboxesRequest as aI, type ListSandboxesResponse as aJ, type ListUserIntegrationsRequest as aK, type ListUserIntegrationsResponse as aL, type MarkAsReadRequest as aM, type MarkAsReadResponse as aN, type OAuthState as aO, type OrgIntegration as aP, type RSVPCalendarEventRequest as aQ, type RSVPCalendarEventResponse as aR, type RefreshIntegrationRequest as aS, type RefreshIntegrationResponse as aT, type RunEmailTriageRequest as aU, type RunEmailTriageResponse as aV, type Sandbox as aW, type SearchEmailsRequest as aX, type SearchEmailsResponse as aY, type SendEmailRequest as aZ, type SendEmailResponse as a_, HubIntegrationUserCallback as aa, HubIntegrationUserConnect as ab, HubIntegrationUserDisconnect as ac, HubIntegrationUserGet as ad, HubIntegrationUserList as ae, HubIntegrationUserRefresh as af, HubIntegrationUserUpdateTriage as ag, type IntegrationCallbackRequest as ah, type IntegrationCallbackResponse as ai, type IntegrationMode as aj, IntegrationModeDomainDelegation as ak, IntegrationModeServicePrincipal as al, type IntegrationProvider as am, IntegrationProviderGoogle as an, IntegrationProviderMicrosoft as ao, type IntegrationProviderTS as ap, type IntegrationStatus as aq, IntegrationStatusActive as ar, IntegrationStatusError as as, IntegrationStatusExpired as at, IntegrationStatusRevoked as au, type IntegrationStatusTS as av, type IntegrationType as aw, IntegrationTypeCalendar as ax, IntegrationTypeDrive as ay, IntegrationTypeEmail as az, type ConfigureOrgIntegrationRequest as b, type SetupIntegrationsRequest as b0, type SetupIntegrationsResponse as b1, type TokenData as b2, type UpdateCalendarEventRequest as b3, type UpdateCalendarEventResponse as b4, type UpdateSandboxRequest as b5, type UpdateSandboxResponse as b6, UpdateSandboxSubject as b7, type UpdateTriageEnabledRequest as b8, type UpdateTriageEnabledResponse as b9, type UserIntegration as ba, type ValidationResult as bb, type ConfigureOrgIntegrationResponse as c, type ConnectIntegrationRequest as d, type ConnectIntegrationResponse as e, type CreateCalendarEventRequest as f, type CreateCalendarEventResponse as g, type CreateSandboxRequest as h, type CreateSandboxResponse as i, CreateSandboxSubject as j, type DeleteCalendarEventResponse as k, type DeleteSandboxRequest as l, type DeleteSandboxResponse as m, DeleteSandboxSubject as n, type DisableOrgIntegrationRequest as o, type DisableOrgIntegrationResponse as p, type DisconnectIntegrationRequest as q, type DisconnectIntegrationResponse as r, type EmailDetails as s, type EmailSummary as t, type EventAttendee as u, type EventReminder as v, type FilePermission as w, type FileSummary as x, type FileWithContent as y, type ForwardEmailRequest as z };
@@ -1,3 +1,5 @@
1
+ import { ResponseMetadata } from '@elqnt/types';
2
+
1
3
  /**
2
4
  * IntegrationProvider represents the email/calendar provider type
3
5
  */
@@ -748,4 +750,133 @@ declare const HubIntegrationDriveGet = "hub.integrations.drive.get";
748
750
  */
749
751
  declare const HubIntegrationSetupOrg = "hub.integrations.setup.org";
750
752
 
751
- export { HubIntegrationOrgList as $, type ArchiveEmailRequest as A, type GetEmailThreadResponse as B, type CalendarEvent as C, type DeleteCalendarEventRequest as D, type EmailAttachment as E, type FileDetails as F, type GetCalendarEventRequest as G, type GetUserIntegrationRequest as H, type GetUserIntegrationResponse as I, HubEmailTriageRunNow as J, HubIntegrationCalendarCreate as K, HubIntegrationCalendarDelete as L, HubIntegrationCalendarGet as M, HubIntegrationCalendarList as N, HubIntegrationCalendarRSVP as O, HubIntegrationCalendarUpdate as P, HubIntegrationDriveGet as Q, HubIntegrationDriveSearch as R, HubIntegrationEmailArchive as S, HubIntegrationEmailForward as T, HubIntegrationEmailGet as U, HubIntegrationEmailMarkRead as V, HubIntegrationEmailSearch as W, HubIntegrationEmailSend as X, HubIntegrationEmailThread as Y, HubIntegrationOrgConfigure as Z, HubIntegrationOrgDisable as _, type ArchiveEmailResponse as a, HubIntegrationSetupOrg as a0, HubIntegrationUserCallback as a1, HubIntegrationUserConnect as a2, HubIntegrationUserDisconnect as a3, HubIntegrationUserGet as a4, HubIntegrationUserList as a5, HubIntegrationUserRefresh as a6, HubIntegrationUserUpdateTriage as a7, type IntegrationCallbackRequest as a8, type IntegrationCallbackResponse as a9, type MarkAsReadRequest as aA, type MarkAsReadResponse as aB, type OAuthState as aC, type OrgIntegration as aD, type RSVPCalendarEventRequest as aE, type RSVPCalendarEventResponse as aF, type RefreshIntegrationRequest as aG, type RefreshIntegrationResponse as aH, type RunEmailTriageRequest as aI, type RunEmailTriageResponse as aJ, type SearchEmailsRequest as aK, type SearchEmailsResponse as aL, type SendEmailRequest as aM, type SendEmailResponse as aN, type SendEmailResult as aO, type SetupIntegrationsRequest as aP, type SetupIntegrationsResponse as aQ, type TokenData as aR, type UpdateCalendarEventRequest as aS, type UpdateCalendarEventResponse as aT, type UpdateTriageEnabledRequest as aU, type UpdateTriageEnabledResponse as aV, type UserIntegration as aW, type IntegrationMode as aa, IntegrationModeDomainDelegation as ab, IntegrationModeServicePrincipal as ac, type IntegrationProvider as ad, IntegrationProviderGoogle as ae, IntegrationProviderMicrosoft as af, type IntegrationProviderTS as ag, type IntegrationStatus as ah, IntegrationStatusActive as ai, IntegrationStatusError as aj, IntegrationStatusExpired as ak, IntegrationStatusRevoked as al, type IntegrationStatusTS as am, type IntegrationType as an, IntegrationTypeCalendar as ao, IntegrationTypeDrive as ap, IntegrationTypeEmail as aq, type IntegrationTypeTS as ar, type ListCalendarEventsRequest as as, type ListCalendarEventsResponse as at, type ListDriveFilesRequest as au, type ListDriveFilesResponse as av, type ListOrgIntegrationsRequest as aw, type ListOrgIntegrationsResponse as ax, type ListUserIntegrationsRequest as ay, type ListUserIntegrationsResponse as az, type ConfigureOrgIntegrationRequest as b, type ConfigureOrgIntegrationResponse as c, type ConnectIntegrationRequest as d, type ConnectIntegrationResponse as e, type CreateCalendarEventRequest as f, type CreateCalendarEventResponse as g, type DeleteCalendarEventResponse as h, type DisableOrgIntegrationRequest as i, type DisableOrgIntegrationResponse as j, type DisconnectIntegrationRequest as k, type DisconnectIntegrationResponse as l, type EmailDetails as m, type EmailSummary as n, type EventAttendee as o, type EventReminder as p, type FilePermission as q, type FileSummary as r, type FileWithContent as s, type ForwardEmailRequest as t, type GetCalendarEventResponse as u, type GetDriveFileRequest as v, type GetDriveFileResponse as w, type GetEmailRequest as x, type GetEmailResponse as y, type GetEmailThreadRequest as z };
753
+ /**
754
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
755
+ */
756
+ declare const CreateSandboxSubject = "agents.tool.execute.sandbox.create";
757
+ /**
758
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
759
+ */
760
+ declare const GetSandboxSubject = "agents.tool.execute.sandbox.get";
761
+ /**
762
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
763
+ */
764
+ declare const UpdateSandboxSubject = "agents.tool.execute.sandbox.update";
765
+ /**
766
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
767
+ */
768
+ declare const ListSandboxSubject = "agents.tool.execute.sandbox.list";
769
+ /**
770
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
771
+ */
772
+ declare const DeleteSandboxSubject = "agents.tool.execute.sandbox.delete";
773
+ /**
774
+ * Sandbox represents a stored HTML sandbox
775
+ */
776
+ interface Sandbox {
777
+ id: string;
778
+ orgId?: string;
779
+ userId?: string;
780
+ html: string;
781
+ title?: string;
782
+ description?: string;
783
+ url?: string;
784
+ metadata?: {
785
+ [key: string]: string;
786
+ };
787
+ createdAt: string;
788
+ expiresAt: string;
789
+ }
790
+ /**
791
+ * CreateSandboxRequest is the request to create a new sandbox (prompt-based)
792
+ */
793
+ interface CreateSandboxRequest {
794
+ orgId: string;
795
+ userId?: string;
796
+ prompt: string;
797
+ title?: string;
798
+ description?: string;
799
+ libraries?: string[];
800
+ style?: string;
801
+ attachments?: any[];
802
+ }
803
+ /**
804
+ * CreateSandboxResponse is the response after creating a sandbox
805
+ */
806
+ interface CreateSandboxResponse {
807
+ sandbox?: Sandbox;
808
+ id: string;
809
+ url: string;
810
+ metadata: ResponseMetadata;
811
+ }
812
+ /**
813
+ * GetSandboxRequest is the request to get a sandbox
814
+ */
815
+ interface GetSandboxRequest {
816
+ id: string;
817
+ }
818
+ /**
819
+ * GetSandboxResponse is the response with sandbox data
820
+ */
821
+ interface GetSandboxResponse {
822
+ sandbox?: Sandbox;
823
+ metadata: ResponseMetadata;
824
+ }
825
+ /**
826
+ * UpdateSandboxRequest is the request to update a sandbox (prompt-based)
827
+ */
828
+ interface UpdateSandboxRequest {
829
+ id: string;
830
+ orgId: string;
831
+ userId?: string;
832
+ prompt: string;
833
+ title?: string;
834
+ }
835
+ /**
836
+ * UpdateSandboxResponse is the response after updating a sandbox
837
+ */
838
+ interface UpdateSandboxResponse {
839
+ sandbox?: Sandbox;
840
+ id: string;
841
+ url: string;
842
+ metadata: ResponseMetadata;
843
+ }
844
+ /**
845
+ * ListSandboxesRequest is the request to list sandboxes
846
+ */
847
+ interface ListSandboxesRequest {
848
+ orgId: string;
849
+ userId?: string;
850
+ limit?: number;
851
+ }
852
+ /**
853
+ * ListSandboxesResponse is the response with list of sandboxes
854
+ */
855
+ interface ListSandboxesResponse {
856
+ sandboxes: Sandbox[];
857
+ total: number;
858
+ metadata: ResponseMetadata;
859
+ }
860
+ /**
861
+ * DeleteSandboxRequest is the request to delete a sandbox
862
+ */
863
+ interface DeleteSandboxRequest {
864
+ id: string;
865
+ }
866
+ /**
867
+ * DeleteSandboxResponse is the response after deleting a sandbox
868
+ */
869
+ interface DeleteSandboxResponse {
870
+ success: boolean;
871
+ metadata: ResponseMetadata;
872
+ }
873
+ /**
874
+ * ValidationResult holds the result of HTML validation
875
+ */
876
+ interface ValidationResult {
877
+ valid: boolean;
878
+ errors?: string[];
879
+ warnings?: string[];
880
+ }
881
+
882
+ export { HubIntegrationEmailArchive as $, type ArchiveEmailRequest as A, type GetCalendarEventResponse as B, type CalendarEvent as C, type DeleteCalendarEventRequest as D, type EmailAttachment as E, type FileDetails as F, type GetCalendarEventRequest as G, type GetDriveFileRequest as H, type GetDriveFileResponse as I, type GetEmailRequest as J, type GetEmailResponse as K, type GetEmailThreadRequest as L, type GetEmailThreadResponse as M, type GetSandboxRequest as N, type GetSandboxResponse as O, GetSandboxSubject as P, type GetUserIntegrationRequest as Q, type GetUserIntegrationResponse as R, HubEmailTriageRunNow as S, HubIntegrationCalendarCreate as T, HubIntegrationCalendarDelete as U, HubIntegrationCalendarGet as V, HubIntegrationCalendarList as W, HubIntegrationCalendarRSVP as X, HubIntegrationCalendarUpdate as Y, HubIntegrationDriveGet as Z, HubIntegrationDriveSearch as _, type ArchiveEmailResponse as a, type SendEmailResult as a$, HubIntegrationEmailForward as a0, HubIntegrationEmailGet as a1, HubIntegrationEmailMarkRead as a2, HubIntegrationEmailSearch as a3, HubIntegrationEmailSend as a4, HubIntegrationEmailThread as a5, HubIntegrationOrgConfigure as a6, HubIntegrationOrgDisable as a7, HubIntegrationOrgList as a8, HubIntegrationSetupOrg as a9, type IntegrationTypeTS as aA, type ListCalendarEventsRequest as aB, type ListCalendarEventsResponse as aC, type ListDriveFilesRequest as aD, type ListDriveFilesResponse as aE, type ListOrgIntegrationsRequest as aF, type ListOrgIntegrationsResponse as aG, ListSandboxSubject as aH, type ListSandboxesRequest as aI, type ListSandboxesResponse as aJ, type ListUserIntegrationsRequest as aK, type ListUserIntegrationsResponse as aL, type MarkAsReadRequest as aM, type MarkAsReadResponse as aN, type OAuthState as aO, type OrgIntegration as aP, type RSVPCalendarEventRequest as aQ, type RSVPCalendarEventResponse as aR, type RefreshIntegrationRequest as aS, type RefreshIntegrationResponse as aT, type RunEmailTriageRequest as aU, type RunEmailTriageResponse as aV, type Sandbox as aW, type SearchEmailsRequest as aX, type SearchEmailsResponse as aY, type SendEmailRequest as aZ, type SendEmailResponse as a_, HubIntegrationUserCallback as aa, HubIntegrationUserConnect as ab, HubIntegrationUserDisconnect as ac, HubIntegrationUserGet as ad, HubIntegrationUserList as ae, HubIntegrationUserRefresh as af, HubIntegrationUserUpdateTriage as ag, type IntegrationCallbackRequest as ah, type IntegrationCallbackResponse as ai, type IntegrationMode as aj, IntegrationModeDomainDelegation as ak, IntegrationModeServicePrincipal as al, type IntegrationProvider as am, IntegrationProviderGoogle as an, IntegrationProviderMicrosoft as ao, type IntegrationProviderTS as ap, type IntegrationStatus as aq, IntegrationStatusActive as ar, IntegrationStatusError as as, IntegrationStatusExpired as at, IntegrationStatusRevoked as au, type IntegrationStatusTS as av, type IntegrationType as aw, IntegrationTypeCalendar as ax, IntegrationTypeDrive as ay, IntegrationTypeEmail as az, type ConfigureOrgIntegrationRequest as b, type SetupIntegrationsRequest as b0, type SetupIntegrationsResponse as b1, type TokenData as b2, type UpdateCalendarEventRequest as b3, type UpdateCalendarEventResponse as b4, type UpdateSandboxRequest as b5, type UpdateSandboxResponse as b6, UpdateSandboxSubject as b7, type UpdateTriageEnabledRequest as b8, type UpdateTriageEnabledResponse as b9, type UserIntegration as ba, type ValidationResult as bb, type ConfigureOrgIntegrationResponse as c, type ConnectIntegrationRequest as d, type ConnectIntegrationResponse as e, type CreateCalendarEventRequest as f, type CreateCalendarEventResponse as g, type CreateSandboxRequest as h, type CreateSandboxResponse as i, CreateSandboxSubject as j, type DeleteCalendarEventResponse as k, type DeleteSandboxRequest as l, type DeleteSandboxResponse as m, DeleteSandboxSubject as n, type DisableOrgIntegrationRequest as o, type DisableOrgIntegrationResponse as p, type DisconnectIntegrationRequest as q, type DisconnectIntegrationResponse as r, type EmailDetails as s, type EmailSummary as t, type EventAttendee as u, type EventReminder as v, type FilePermission as w, type FileSummary as x, type FileWithContent as y, type ForwardEmailRequest as z };
@@ -0,0 +1,36 @@
1
+ import { b as BGAgentTransportOptions, B as BGAgentTransport } from '../types-C2qd5f-E.mjs';
2
+ export { c as BGAgentEventType, a as BGAgentTransportConfig, d as BGAgentTransportError, e as BGAgentTransportState, E as EventHandler, U as Unsubscribe } from '../types-C2qd5f-E.mjs';
3
+ export { ba as BackgroundAgentProgressEvent } from '../agent-models-DLQlC7N6.mjs';
4
+ import '@elqnt/types';
5
+
6
+ /**
7
+ * Browser SSE Transport for Background Agent Progress
8
+ *
9
+ * Uses native EventSource for receiving agent progress events.
10
+ * Follows the same factory pattern as @elqnt/docs/transport/sse.ts.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * import { createBGAgentTransport } from "@elqnt/agents/transport";
15
+ *
16
+ * const transport = createBGAgentTransport();
17
+ * transport.connect();
18
+ *
19
+ * transport.on("bg_agent.round", (event) => {
20
+ * console.log(`Round ${event.round}: ${event.content}`);
21
+ * });
22
+ *
23
+ * transport.on("bg_agent.completed", (event) => {
24
+ * console.log("Done:", event.result);
25
+ * });
26
+ *
27
+ * transport.streamJob("job-uuid-123");
28
+ *
29
+ * // Clean up
30
+ * transport.disconnect();
31
+ * ```
32
+ */
33
+
34
+ declare function createBGAgentTransport(options?: BGAgentTransportOptions): BGAgentTransport;
35
+
36
+ export { BGAgentTransport, BGAgentTransportOptions, BGAgentTransportOptions as CreateBGAgentTransportOptions, createBGAgentTransport };
@@ -0,0 +1,36 @@
1
+ import { b as BGAgentTransportOptions, B as BGAgentTransport } from '../types-k9PszCzt.js';
2
+ export { c as BGAgentEventType, a as BGAgentTransportConfig, d as BGAgentTransportError, e as BGAgentTransportState, E as EventHandler, U as Unsubscribe } from '../types-k9PszCzt.js';
3
+ export { ba as BackgroundAgentProgressEvent } from '../agent-models-DLQlC7N6.js';
4
+ import '@elqnt/types';
5
+
6
+ /**
7
+ * Browser SSE Transport for Background Agent Progress
8
+ *
9
+ * Uses native EventSource for receiving agent progress events.
10
+ * Follows the same factory pattern as @elqnt/docs/transport/sse.ts.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * import { createBGAgentTransport } from "@elqnt/agents/transport";
15
+ *
16
+ * const transport = createBGAgentTransport();
17
+ * transport.connect();
18
+ *
19
+ * transport.on("bg_agent.round", (event) => {
20
+ * console.log(`Round ${event.round}: ${event.content}`);
21
+ * });
22
+ *
23
+ * transport.on("bg_agent.completed", (event) => {
24
+ * console.log("Done:", event.result);
25
+ * });
26
+ *
27
+ * transport.streamJob("job-uuid-123");
28
+ *
29
+ * // Clean up
30
+ * transport.disconnect();
31
+ * ```
32
+ */
33
+
34
+ declare function createBGAgentTransport(options?: BGAgentTransportOptions): BGAgentTransport;
35
+
36
+ export { BGAgentTransport, BGAgentTransportOptions, BGAgentTransportOptions as CreateBGAgentTransportOptions, createBGAgentTransport };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+
4
+ var _chunk2JDVRL35js = require('../chunk-2JDVRL35.js');
5
+
6
+
7
+ exports.createBGAgentTransport = _chunk2JDVRL35js.createBGAgentTransport;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/transport/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,uDAA6B;AAC7B;AACE;AACF,yEAAC","file":"/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/transport/index.js"}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ createBGAgentTransport
4
+ } from "../chunk-3EHE4O57.mjs";
5
+ export {
6
+ createBGAgentTransport
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,51 @@
1
+ import { ba as BackgroundAgentProgressEvent } from './agent-models-DLQlC7N6.mjs';
2
+
3
+ /**
4
+ * Background Agent SSE Transport Types
5
+ *
6
+ * Platform-agnostic type definitions for streaming background agent progress.
7
+ * Follows the same pattern as @elqnt/docs/transport.
8
+ */
9
+
10
+ type BGAgentTransportState = "disconnected" | "connected" | "streaming";
11
+ interface BGAgentTransportError {
12
+ code: string;
13
+ message: string;
14
+ retryable: boolean;
15
+ }
16
+ type BGAgentEventType = "bg_agent.started" | "bg_agent.round" | "bg_agent.completed" | "bg_agent.failed" | "connected";
17
+ type EventHandler<T = BackgroundAgentProgressEvent> = (event: T) => void;
18
+ type Unsubscribe = () => void;
19
+ interface BGAgentTransportConfig {
20
+ /** Base URL for the SSE stream — the API Gateway URL.
21
+ * e.g., "http://localhost:8080" or "https://api.elqnt.ai"
22
+ * Connects directly via browser EventSource (no Next.js proxy needed).
23
+ * Same pattern as @elqnt/chat transport. */
24
+ streamBaseUrl?: string;
25
+ }
26
+ interface BGAgentTransport {
27
+ /** Initialize transport with config */
28
+ connect(config?: BGAgentTransportConfig): void;
29
+ /** Open SSE stream for a specific job */
30
+ streamJob(jobId: string): void;
31
+ /** Stop streaming a specific job */
32
+ stopJob(jobId: string): void;
33
+ /** Subscribe to all events */
34
+ onEvent(handler: EventHandler): Unsubscribe;
35
+ /** Subscribe to a specific event type */
36
+ on(eventType: BGAgentEventType, handler: EventHandler): Unsubscribe;
37
+ /** Disconnect all streams */
38
+ disconnect(): void;
39
+ /** Get current transport state */
40
+ getState(): BGAgentTransportState;
41
+ /** Get last error */
42
+ getError(): BGAgentTransportError | undefined;
43
+ /** Clear error state */
44
+ clearError(): void;
45
+ }
46
+ interface BGAgentTransportOptions {
47
+ /** Enable debug logging */
48
+ debug?: boolean;
49
+ }
50
+
51
+ export type { BGAgentTransport as B, EventHandler as E, Unsubscribe as U, BGAgentTransportConfig as a, BGAgentTransportOptions as b, BGAgentEventType as c, BGAgentTransportError as d, BGAgentTransportState as e };
@@ -0,0 +1,51 @@
1
+ import { ba as BackgroundAgentProgressEvent } from './agent-models-DLQlC7N6.js';
2
+
3
+ /**
4
+ * Background Agent SSE Transport Types
5
+ *
6
+ * Platform-agnostic type definitions for streaming background agent progress.
7
+ * Follows the same pattern as @elqnt/docs/transport.
8
+ */
9
+
10
+ type BGAgentTransportState = "disconnected" | "connected" | "streaming";
11
+ interface BGAgentTransportError {
12
+ code: string;
13
+ message: string;
14
+ retryable: boolean;
15
+ }
16
+ type BGAgentEventType = "bg_agent.started" | "bg_agent.round" | "bg_agent.completed" | "bg_agent.failed" | "connected";
17
+ type EventHandler<T = BackgroundAgentProgressEvent> = (event: T) => void;
18
+ type Unsubscribe = () => void;
19
+ interface BGAgentTransportConfig {
20
+ /** Base URL for the SSE stream — the API Gateway URL.
21
+ * e.g., "http://localhost:8080" or "https://api.elqnt.ai"
22
+ * Connects directly via browser EventSource (no Next.js proxy needed).
23
+ * Same pattern as @elqnt/chat transport. */
24
+ streamBaseUrl?: string;
25
+ }
26
+ interface BGAgentTransport {
27
+ /** Initialize transport with config */
28
+ connect(config?: BGAgentTransportConfig): void;
29
+ /** Open SSE stream for a specific job */
30
+ streamJob(jobId: string): void;
31
+ /** Stop streaming a specific job */
32
+ stopJob(jobId: string): void;
33
+ /** Subscribe to all events */
34
+ onEvent(handler: EventHandler): Unsubscribe;
35
+ /** Subscribe to a specific event type */
36
+ on(eventType: BGAgentEventType, handler: EventHandler): Unsubscribe;
37
+ /** Disconnect all streams */
38
+ disconnect(): void;
39
+ /** Get current transport state */
40
+ getState(): BGAgentTransportState;
41
+ /** Get last error */
42
+ getError(): BGAgentTransportError | undefined;
43
+ /** Clear error state */
44
+ clearError(): void;
45
+ }
46
+ interface BGAgentTransportOptions {
47
+ /** Enable debug logging */
48
+ debug?: boolean;
49
+ }
50
+
51
+ export type { BGAgentTransport as B, EventHandler as E, Unsubscribe as U, BGAgentTransportConfig as a, BGAgentTransportOptions as b, BGAgentEventType as c, BGAgentTransportError as d, BGAgentTransportState as e };
@@ -1,4 +1,4 @@
1
- import { ad as AgentProvisionDefinition, bn as DefaultDefinitions } from '../agent-models-C36pvpUb.mjs';
1
+ import { ad as AgentProvisionDefinition, bu as DefaultDefinitions } from '../agent-models-DLQlC7N6.mjs';
2
2
  import '@elqnt/types';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { ad as AgentProvisionDefinition, bn as DefaultDefinitions } from '../agent-models-C36pvpUb.js';
1
+ import { ad as AgentProvisionDefinition, bu as DefaultDefinitions } from '../agent-models-DLQlC7N6.js';
2
2
  import '@elqnt/types';
3
3
 
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elqnt/agents",
3
- "version": "3.1.0",
3
+ "version": "3.2.1",
4
4
  "description": "Agent management and orchestration for Eloquent platform - models, browser & server APIs, React hooks, and utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -35,6 +35,11 @@
35
35
  "types": "./dist/utils/index.d.ts",
36
36
  "import": "./dist/utils/index.mjs",
37
37
  "require": "./dist/utils/index.js"
38
+ },
39
+ "./transport": {
40
+ "types": "./dist/transport/index.d.ts",
41
+ "import": "./dist/transport/index.mjs",
42
+ "require": "./dist/transport/index.js"
38
43
  }
39
44
  },
40
45
  "files": [
@@ -46,9 +51,10 @@
46
51
  "directory": "packages/agents"
47
52
  },
48
53
  "dependencies": {
49
- "@elqnt/kg": "3.0.1",
54
+ "@elqnt/kg": "3.0.2",
50
55
  "@elqnt/types": "2.0.13",
51
- "@elqnt/api-client": "1.0.4"
56
+ "@elqnt/api-client": "1.0.5",
57
+ "@elqnt/chat": "3.0.3"
52
58
  },
53
59
  "peerDependencies": {
54
60
  "react": "^18.0.0 || ^19.0.0"
@@ -58,7 +64,7 @@
58
64
  "react": "^19.0.0",
59
65
  "tsup": "^8.0.0",
60
66
  "typescript": "^5.0.0",
61
- "@elqnt/api-client": "1.0.4"
67
+ "@elqnt/api-client": "1.0.5"
62
68
  },
63
69
  "scripts": {
64
70
  "build": "tsup",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../api/index.ts"],"sourcesContent":["/**\n * Agents API functions\n *\n * Browser-side API client for agent operations.\n * Uses @elqnt/api-client for HTTP requests with automatic token management.\n */\n\nimport { browserApiRequest } from \"@elqnt/api-client/browser\";\nimport type { ApiResponse, ApiClientOptions } from \"@elqnt/api-client\";\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type {\n Agent,\n AgentSummary,\n AgentResponse,\n ListAgentsResponse,\n ListAgentsSummaryResponse,\n Skill,\n SkillResponse,\n SkillsListResponse,\n GetSkillsByIDsResponse,\n SubAgent,\n SubAgentResponse,\n SubAgentsListResponse,\n AgentWidget,\n AgentWidgetResponse,\n ListAgentWidgetsResponse,\n SkillUserConfig,\n SkillUserConfigResponse,\n SkillUserConfigListResponse,\n ResolveSkillConfigResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n GetToolDefinitionsByIDsResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n} from \"../models\";\n\n// =============================================================================\n// AGENTS\n// =============================================================================\n\nexport async function listAgentsApi(options: ApiClientOptions): Promise<ApiResponse<ListAgentsResponse>> {\n return browserApiRequest(\"/api/v1/agents\", { method: \"GET\", ...options });\n}\n\nexport async function listAgentsSummaryApi(options: ApiClientOptions): Promise<ApiResponse<ListAgentsSummaryResponse>> {\n return browserApiRequest(\"/api/v1/agents/summary\", { method: \"GET\", ...options });\n}\n\nexport async function getAgentApi(agentId: string, options: ApiClientOptions): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}`, { method: \"GET\", ...options });\n}\n\nexport async function createAgentApi(agent: Partial<Agent>, options: ApiClientOptions): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(\"/api/v1/agents\", { method: \"POST\", body: agent, ...options });\n}\n\nexport async function updateAgentApi(agentId: string, agent: Partial<Agent>, options: ApiClientOptions): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}`, { method: \"PUT\", body: agent, ...options });\n}\n\nexport async function deleteAgentApi(agentId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/agents/${agentId}`, { method: \"DELETE\", ...options });\n}\n\nexport async function getDefaultAgentApi(options: ApiClientOptions): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(\"/api/v1/agents/default\", { method: \"GET\", ...options });\n}\n\nexport async function getAgentByNameApi(\n name: string,\n options: ApiClientOptions\n): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(`/api/v1/agents/by-name?name=${encodeURIComponent(name)}`, {\n method: \"GET\",\n ...options,\n });\n}\n\n// =============================================================================\n// SKILLS\n// =============================================================================\n\nexport async function listSkillsApi(options: ApiClientOptions): Promise<ApiResponse<SkillsListResponse>> {\n return browserApiRequest(\"/api/v1/skills\", { method: \"GET\", ...options });\n}\n\nexport async function getSkillApi(skillId: string, options: ApiClientOptions): Promise<ApiResponse<SkillResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}`, { method: \"GET\", ...options });\n}\n\nexport async function getSkillsByIdsApi(ids: string[], options: ApiClientOptions): Promise<ApiResponse<GetSkillsByIDsResponse>> {\n return browserApiRequest(\"/api/v1/skills/by-ids\", { method: \"POST\", body: { ids }, ...options });\n}\n\nexport async function createSkillApi(skill: Partial<Skill>, options: ApiClientOptions): Promise<ApiResponse<SkillResponse>> {\n return browserApiRequest(\"/api/v1/skills\", { method: \"POST\", body: skill, ...options });\n}\n\nexport async function updateSkillApi(skillId: string, skill: Partial<Skill>, options: ApiClientOptions): Promise<ApiResponse<SkillResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}`, { method: \"PUT\", body: skill, ...options });\n}\n\nexport async function deleteSkillApi(skillId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/skills/${skillId}`, { method: \"DELETE\", ...options });\n}\n\nexport async function searchSkillsApi(\n query: string,\n options: ApiClientOptions & { category?: string; limit?: number }\n): Promise<ApiResponse<SkillsListResponse>> {\n const params = new URLSearchParams();\n params.set(\"q\", query);\n if (options.category) params.set(\"category\", options.category);\n if (options.limit) params.set(\"limit\", String(options.limit));\n return browserApiRequest(`/api/v1/skills/search?${params.toString()}`, { method: \"GET\", ...options });\n}\n\n// =============================================================================\n// SKILL USER CONFIG\n// =============================================================================\n\nexport async function getSkillUserConfigApi(\n skillId: string,\n options: ApiClientOptions & { agentId?: string }\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return browserApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function updateSkillUserConfigApi(\n skillId: string,\n data: {\n enabled?: boolean;\n displayOrder?: number;\n config?: Record<string, unknown>;\n agentId?: string;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}/user-config`, {\n method: \"PUT\",\n body: data,\n ...options,\n });\n}\n\nexport async function deleteSkillUserConfigApi(\n skillId: string,\n options: ApiClientOptions & { agentId?: string }\n): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return browserApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, {\n method: \"DELETE\",\n ...options,\n });\n}\n\nexport async function listSkillUserConfigsApi(\n options: ApiClientOptions & { agentId?: string; limit?: number; offset?: number }\n): Promise<ApiResponse<SkillUserConfigListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.limit) params.set(\"limit\", String(options.limit));\n if (options.offset) params.set(\"offset\", String(options.offset));\n const query = params.toString();\n return browserApiRequest(`/api/v1/skills/user-configs${query ? `?${query}` : \"\"}`, {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function resolveSkillConfigApi(\n skillId: string,\n agentId: string,\n options: ApiClientOptions\n): Promise<ApiResponse<ResolveSkillConfigResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}/resolve-config?agentId=${agentId}`, {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function updateSkillOrgConfigApi(\n skillId: string,\n data: {\n enabled?: boolean;\n displayOrder?: number;\n config?: Record<string, unknown>;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}/org-config`, {\n method: \"PUT\",\n body: data,\n ...options,\n });\n}\n\n// =============================================================================\n// SUB-AGENTS\n// =============================================================================\n\nexport async function listSubAgentsApi(\n options: ApiClientOptions & { onlySystem?: boolean; enabled?: boolean }\n): Promise<ApiResponse<SubAgentsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n const queryString = params.toString();\n return browserApiRequest(`/api/v1/subagents${queryString ? `?${queryString}` : \"\"}`, { method: \"GET\", ...options });\n}\n\nexport async function getSubAgentApi(subAgentId: string, options: ApiClientOptions): Promise<ApiResponse<SubAgentResponse>> {\n return browserApiRequest(`/api/v1/subagents/${subAgentId}`, { method: \"GET\", ...options });\n}\n\nexport async function createSubAgentApi(subAgent: Partial<SubAgent>, options: ApiClientOptions): Promise<ApiResponse<SubAgentResponse>> {\n return browserApiRequest(\"/api/v1/subagents\", { method: \"POST\", body: { subAgent }, ...options });\n}\n\nexport async function updateSubAgentApi(subAgentId: string, subAgent: Partial<SubAgent>, options: ApiClientOptions): Promise<ApiResponse<SubAgentResponse>> {\n return browserApiRequest(`/api/v1/subagents/${subAgentId}`, { method: \"PUT\", body: { subAgent }, ...options });\n}\n\nexport async function deleteSubAgentApi(subAgentId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/subagents/${subAgentId}`, { method: \"DELETE\", ...options });\n}\n\n// =============================================================================\n// WIDGETS\n// =============================================================================\n\nexport async function listWidgetsApi(agentId: string, options: ApiClientOptions): Promise<ApiResponse<ListAgentWidgetsResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}/widgets`, { method: \"GET\", ...options });\n}\n\nexport async function getDefaultWidgetApi(agentId: string, options: ApiClientOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}/widgets/default`, { method: \"GET\", ...options });\n}\n\nexport async function createWidgetApi(agentId: string, widget: Partial<AgentWidget>, options: ApiClientOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}/widgets`, { method: \"POST\", body: { widget }, ...options });\n}\n\nexport async function getWidgetApi(widgetId: string, options: ApiClientOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/widgets/${widgetId}`, { method: \"GET\", ...options });\n}\n\nexport async function getWidgetByWidgetIdApi(widgetId: string, baseUrl: string): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/widgets/by-widget-id/${widgetId}`, { method: \"GET\", baseUrl, orgId: \"\" });\n}\n\nexport async function updateWidgetApi(widgetId: string, widget: Partial<AgentWidget>, options: ApiClientOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/widgets/${widgetId}`, { method: \"PUT\", body: { widget }, ...options });\n}\n\nexport async function deleteWidgetApi(widgetId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/widgets/${widgetId}`, { method: \"DELETE\", ...options });\n}\n\nexport async function setDefaultWidgetApi(widgetId: string, agentId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/widgets/${widgetId}/default`, { method: \"POST\", body: { agentId }, ...options });\n}\n\n// =============================================================================\n// ANALYTICS\n// =============================================================================\n\nexport interface DateFilter {\n from?: string;\n to?: string;\n}\n\nexport interface AnalyticsDataResponse {\n data: unknown[];\n metadata: ResponseMetadata;\n}\n\nexport async function getAgentChatsAnalyticsApi(\n params: { date_filter: DateFilter; agent_id?: string },\n options: ApiClientOptions\n): Promise<ApiResponse<AnalyticsDataResponse>> {\n return browserApiRequest(\"/api/v1/analytics/agents/chats\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\nexport async function getAgentCSATAnalyticsApi(\n params: { date_filter: DateFilter; agent_id?: string },\n options: ApiClientOptions\n): Promise<ApiResponse<AnalyticsDataResponse>> {\n return browserApiRequest(\"/api/v1/analytics/agents/csat\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\nexport async function getAgentListAnalyticsApi(\n options: ApiClientOptions\n): Promise<ApiResponse<AnalyticsDataResponse>> {\n return browserApiRequest(\"/api/v1/analytics/agents\", {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function getTaskOutcomesApi(\n params: { date_filter: DateFilter },\n options: ApiClientOptions\n): Promise<ApiResponse<AnalyticsDataResponse>> {\n return browserApiRequest(\"/api/v1/analytics/tasks\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\n// =============================================================================\n// TOOL DEFINITIONS\n// =============================================================================\n\nexport async function listToolDefinitionsApi(\n options: ApiClientOptions & { onlySystem?: boolean; enabled?: boolean; limit?: number; offset?: number }\n): Promise<ApiResponse<ToolDefinitionsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return browserApiRequest(`/api/v1/tool-definitions${queryString ? `?${queryString}` : \"\"}`, { method: \"GET\", ...options });\n}\n\nexport async function getToolDefinitionApi(toolDefId: string, options: ApiClientOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return browserApiRequest(`/api/v1/tool-definitions/${toolDefId}`, { method: \"GET\", ...options });\n}\n\nexport async function getToolDefinitionsByIdsApi(ids: string[], options: ApiClientOptions): Promise<ApiResponse<GetToolDefinitionsByIDsResponse>> {\n return browserApiRequest(\"/api/v1/tool-definitions/by-ids\", { method: \"POST\", body: { ids }, ...options });\n}\n\nexport async function createToolDefinitionApi(toolDefinition: Partial<ToolDefinition>, options: ApiClientOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return browserApiRequest(\"/api/v1/tool-definitions\", { method: \"POST\", body: { toolDefinition }, ...options });\n}\n\nexport async function updateToolDefinitionApi(toolDefId: string, toolDefinition: Partial<ToolDefinition>, options: ApiClientOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return browserApiRequest(`/api/v1/tool-definitions/${toolDefId}`, { method: \"PUT\", body: { toolDefinition }, ...options });\n}\n\nexport async function deleteToolDefinitionApi(toolDefId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/tool-definitions/${toolDefId}`, { method: \"DELETE\", ...options });\n}\n\n// =============================================================================\n// AGENT JOBS\n// =============================================================================\n\nexport async function listAgentJobsApi(\n options: ApiClientOptions & {\n agentId?: string;\n ownerId?: string;\n scope?: string;\n status?: string;\n frequency?: string;\n limit?: number;\n offset?: number;\n }\n): Promise<ApiResponse<AgentJobsListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.ownerId) params.set(\"ownerId\", options.ownerId);\n if (options.scope) params.set(\"scope\", options.scope);\n if (options.status) params.set(\"status\", options.status);\n if (options.frequency) params.set(\"frequency\", options.frequency);\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return browserApiRequest(`/api/v1/agent-jobs${queryString ? `?${queryString}` : \"\"}`, { method: \"GET\", ...options });\n}\n\nexport async function getAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}`, { method: \"GET\", ...options });\n}\n\nexport async function createAgentJobApi(job: Partial<AgentJob>, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(\"/api/v1/agent-jobs\", { method: \"POST\", body: { job }, ...options });\n}\n\nexport async function updateAgentJobApi(jobId: string, job: Partial<AgentJob>, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}`, { method: \"PUT\", body: { job }, ...options });\n}\n\nexport async function deleteAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}`, { method: \"DELETE\", ...options });\n}\n\nexport async function pauseAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}/pause`, { method: \"POST\", ...options });\n}\n\nexport async function resumeAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}/resume`, { method: \"POST\", ...options });\n}\n\n// =============================================================================\n// SKILL CATEGORIES\n// =============================================================================\n\nexport interface SkillCategoriesResponse {\n categories: string[];\n metadata: ResponseMetadata;\n}\n\nexport async function getSkillCategoriesApi(options: ApiClientOptions): Promise<ApiResponse<SkillCategoriesResponse>> {\n return browserApiRequest(\"/api/v1/skills/categories\", { method: \"GET\", ...options });\n}\n\n// =============================================================================\n// PROVISIONING\n// =============================================================================\n\nexport interface ProvisionAgentsResponse {\n agents?: Agent[];\n agentsCreated: number;\n subAgentsCreated: number;\n toolsCreated: number;\n skillsCreated: number;\n success: boolean;\n metadata: ResponseMetadata;\n}\n\n/**\n * Provision default agents for an organization.\n * Creates or updates agents, tools, sub-agents, and skills in bulk.\n *\n * @param definitions - Array of DefaultDefinitions to provision\n * @param options - API client options (baseUrl, orgId)\n */\nexport async function provisionAgentsApi(\n definitions: unknown[],\n options: ApiClientOptions\n): Promise<ApiResponse<ProvisionAgentsResponse>> {\n return browserApiRequest(\"/api/v1/admin/provision/agents\", {\n method: \"POST\",\n body: { definitions },\n ...options,\n });\n}\n\n// =============================================================================\n// INTEGRATIONS\n// =============================================================================\n\nimport type {\n UserIntegration,\n ListUserIntegrationsResponse,\n GetUserIntegrationResponse,\n ConnectIntegrationResponse,\n IntegrationCallbackResponse,\n DisconnectIntegrationResponse,\n RefreshIntegrationResponse,\n UpdateTriageEnabledResponse,\n RunEmailTriageResponse,\n IntegrationProviderTS,\n IntegrationTypeTS,\n} from \"../models\";\n\nexport async function listIntegrationsApi(\n options: ApiClientOptions\n): Promise<ApiResponse<ListUserIntegrationsResponse>> {\n return browserApiRequest(\"/api/v1/integrations\", { method: \"GET\", ...options });\n}\n\nexport async function getIntegrationApi(\n provider: IntegrationProviderTS,\n integrationType: IntegrationTypeTS,\n options: ApiClientOptions\n): Promise<ApiResponse<GetUserIntegrationResponse>> {\n return browserApiRequest(`/api/v1/integrations/${provider}/${integrationType}`, {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function connectIntegrationApi(\n params: {\n provider: IntegrationProviderTS;\n integrationType: IntegrationTypeTS;\n redirectUri: string;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<ConnectIntegrationResponse>> {\n return browserApiRequest(\"/api/v1/integrations/connect\", {\n method: \"POST\",\n body: {\n provider: params.provider,\n integration_type: params.integrationType,\n redirect_uri: params.redirectUri,\n },\n ...options,\n });\n}\n\nexport async function integrationCallbackApi(\n params: {\n state: string;\n code: string;\n error?: string;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<IntegrationCallbackResponse>> {\n return browserApiRequest(\"/api/v1/integrations/callback\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\nexport async function disconnectIntegrationApi(\n params: {\n provider: IntegrationProviderTS;\n integrationType: IntegrationTypeTS;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<DisconnectIntegrationResponse>> {\n return browserApiRequest(\"/api/v1/integrations/disconnect\", {\n method: \"POST\",\n body: {\n provider: params.provider,\n integration_type: params.integrationType,\n },\n ...options,\n });\n}\n\nexport async function refreshIntegrationApi(\n params: {\n provider: IntegrationProviderTS;\n integrationType: IntegrationTypeTS;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<RefreshIntegrationResponse>> {\n return browserApiRequest(\"/api/v1/integrations/refresh\", {\n method: \"POST\",\n body: {\n provider: params.provider,\n integration_type: params.integrationType,\n },\n ...options,\n });\n}\n\nexport async function updateIntegrationTriageApi(\n params: {\n provider: IntegrationProviderTS;\n integrationType: IntegrationTypeTS;\n triageEnabled: boolean;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<UpdateTriageEnabledResponse>> {\n return browserApiRequest(\"/api/v1/integrations/triage\", {\n method: \"PUT\",\n body: {\n provider: params.provider,\n integration_type: params.integrationType,\n triage_enabled: params.triageEnabled,\n },\n ...options,\n });\n}\n\nexport async function runEmailTriageApi(\n options: ApiClientOptions\n): Promise<ApiResponse<RunEmailTriageResponse>> {\n return browserApiRequest(\"/api/v1/integrations/triage/run\", {\n method: \"POST\",\n body: {},\n ...options,\n });\n}\n\n// Re-export types from models\nexport type {\n Agent,\n AgentSummary,\n Skill,\n SubAgent,\n AgentWidget,\n SkillUserConfig,\n SkillUserConfigResponse,\n SkillUserConfigListResponse,\n ResolveSkillConfigResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n GetToolDefinitionsByIDsResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n // Integration types\n UserIntegration,\n ListUserIntegrationsResponse,\n GetUserIntegrationResponse,\n ConnectIntegrationResponse,\n IntegrationCallbackResponse,\n DisconnectIntegrationResponse,\n RefreshIntegrationResponse,\n UpdateTriageEnabledResponse,\n RunEmailTriageResponse,\n IntegrationProviderTS,\n IntegrationTypeTS,\n} from \"../models\";\n"],"mappings":";;;AAOA,SAAS,yBAAyB;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