@useago/sdk 1.13.2 → 1.14.0

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 (40) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/angular.cjs +1 -1
  3. package/dist/angular.d.cts +21 -4
  4. package/dist/angular.d.ts +21 -4
  5. package/dist/angular.js +1 -1
  6. package/dist/{createConversationSession-DrmOaZdO.js → createConversationSession-CybQdMpK.js} +1 -1
  7. package/dist/{createConversationSession-Digvn0GQ.cjs → createConversationSession-jwSXhTLe.cjs} +1 -1
  8. package/dist/createFormCollector-B_hSKcLd.cjs +1 -0
  9. package/dist/{createFormCollector-ki_GTlp9.js → createFormCollector-DJjms78E.js} +49 -47
  10. package/dist/devtools.d.cts +21 -4
  11. package/dist/devtools.d.ts +21 -4
  12. package/dist/helpers.d.cts +9 -4
  13. package/dist/helpers.d.ts +9 -4
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.d.cts +24 -4
  16. package/dist/index.d.ts +24 -4
  17. package/dist/index.js +42 -38
  18. package/dist/react.cjs +4 -4
  19. package/dist/react.d.cts +22 -5
  20. package/dist/react.d.ts +22 -5
  21. package/dist/react.js +901 -912
  22. package/dist/speechToText-BB25_zVM.cjs +7 -0
  23. package/dist/speechToText-BLvTis4S.js +1496 -0
  24. package/dist/testing.d.cts +21 -4
  25. package/dist/testing.d.ts +21 -4
  26. package/dist/{types-D1ZrqVhr.js → types-C39MJUE3.js} +284 -259
  27. package/dist/{types-DNr6XEwI.cjs → types-PGXnhAmQ.cjs} +7 -7
  28. package/dist/vue.cjs +1 -1
  29. package/dist/vue.d.cts +21 -4
  30. package/dist/vue.d.ts +21 -4
  31. package/dist/vue.js +1 -1
  32. package/dist/widget.cjs +5 -6
  33. package/dist/widget.d.cts +31 -8
  34. package/dist/widget.d.ts +31 -8
  35. package/dist/widget.js +1875 -1848
  36. package/llms-full.txt +43 -4
  37. package/package.json +1 -1
  38. package/dist/createFormCollector-Cq7HWjtU.cjs +0 -1
  39. package/dist/speechToText-BV7qxqPF.js +0 -704
  40. package/dist/speechToText-ZciRyyJE.cjs +0 -1
@@ -245,6 +245,8 @@ declare class AgoClient {
245
245
  * Show the returned text as a draft; call `sendMessage` when the user sends it.
246
246
  */
247
247
  transcribeAudio(file: File, options?: TranscribeAudioOptions): Promise<AudioTranscription>;
248
+ /** The requested language, before UI fallback. */
249
+ getLanguage(): string | null;
248
250
  /**
249
251
  * The tenant's SDK configuration (`GET /api/sdk/v1/config`): per-permission
250
252
  * agents, the ticket form the agent's `ago_ticketing` tool opens, and the
@@ -620,6 +622,9 @@ declare class AgoClient {
620
622
  * SDK Events
621
623
  */
622
624
  declare interface AgoClientEvents {
625
+ "config:changed": {
626
+ language: string | null;
627
+ };
623
628
  /**
624
629
  * The client-side context changed: a context entry or dynamic provider was
625
630
  * added/removed, or a stateful helper (e.g. `createFormCollector`) updated its
@@ -729,6 +734,11 @@ declare interface AgoClientEvents {
729
734
  result: unknown;
730
735
  error?: string;
731
736
  };
737
+ /** A validated form collector submission is about to call its submit target. */
738
+ "form:submitting": {
739
+ name: string;
740
+ values: Record<string, unknown>;
741
+ };
732
742
  /**
733
743
  * A form collector submitted successfully. `result` is the raw submit response
734
744
  * (POST body / handler return value / backend relay result) — the third-party
@@ -1984,6 +1994,7 @@ declare interface SubmitToolCallResult {
1984
1994
 
1985
1995
  /** A custom field of a ticket form. */
1986
1996
  declare interface TicketField {
1997
+ prefillAliases?: string[];
1987
1998
  id: string;
1988
1999
  /** The key the ticketing backend expects; used as the submit key when set. */
1989
2000
  externalId?: string;
@@ -2030,6 +2041,7 @@ declare interface TicketFieldOption {
2030
2041
 
2031
2042
  /** The ticket form an agent's `ago_ticketing` tool opens in the conversation. */
2032
2043
  declare interface TicketForm {
2044
+ embedDescription?: string;
2033
2045
  id: string;
2034
2046
  name?: string;
2035
2047
  /** `"form"` renders the SDK's own fields; `"embed"` hosts third-party HTML. */
@@ -2096,16 +2108,21 @@ declare interface TranscribeAudioOptions {
2096
2108
  signal?: AbortSignal;
2097
2109
  }
2098
2110
 
2099
- /** The MCP behavior hints AGO has no equivalent for. */
2111
+ /** Metadata for tools exposed through the WebMCP bridge. */
2100
2112
  declare interface WebMCPToolMeta {
2101
2113
  /**
2102
- * Both default to `false`, so only set what is true: `readOnlyHint` marks a
2103
- * function that changes nothing, `untrustedContentHint` one whose result may
2104
- * carry third-party text.
2114
+ * Optional WebMCP metadata; all fields default to `false` in WebMCP.
2115
+ * These annotations do not affect AGO's in-app agent or approval behavior.
2105
2116
  */
2106
2117
  annotations?: {
2118
+ /** The tool only reads data and does not change state. */
2107
2119
  readOnlyHint?: boolean;
2120
+ /** The output contains content untrusted by the tool author. */
2108
2121
  untrustedContentHint?: boolean;
2122
+ /** Significant, real-world, or irreversible effects; independent of requiresApproval. */
2123
+ consequentialHint?: boolean;
2124
+ /** Intended for debugging and developer tooling. */
2125
+ debugging?: boolean;
2109
2126
  };
2110
2127
  /**
2111
2128
  * This function navigates. The WebMCP call is held open until the function
package/dist/testing.d.ts CHANGED
@@ -245,6 +245,8 @@ declare class AgoClient {
245
245
  * Show the returned text as a draft; call `sendMessage` when the user sends it.
246
246
  */
247
247
  transcribeAudio(file: File, options?: TranscribeAudioOptions): Promise<AudioTranscription>;
248
+ /** The requested language, before UI fallback. */
249
+ getLanguage(): string | null;
248
250
  /**
249
251
  * The tenant's SDK configuration (`GET /api/sdk/v1/config`): per-permission
250
252
  * agents, the ticket form the agent's `ago_ticketing` tool opens, and the
@@ -620,6 +622,9 @@ declare class AgoClient {
620
622
  * SDK Events
621
623
  */
622
624
  declare interface AgoClientEvents {
625
+ "config:changed": {
626
+ language: string | null;
627
+ };
623
628
  /**
624
629
  * The client-side context changed: a context entry or dynamic provider was
625
630
  * added/removed, or a stateful helper (e.g. `createFormCollector`) updated its
@@ -729,6 +734,11 @@ declare interface AgoClientEvents {
729
734
  result: unknown;
730
735
  error?: string;
731
736
  };
737
+ /** A validated form collector submission is about to call its submit target. */
738
+ "form:submitting": {
739
+ name: string;
740
+ values: Record<string, unknown>;
741
+ };
732
742
  /**
733
743
  * A form collector submitted successfully. `result` is the raw submit response
734
744
  * (POST body / handler return value / backend relay result) — the third-party
@@ -1984,6 +1994,7 @@ declare interface SubmitToolCallResult {
1984
1994
 
1985
1995
  /** A custom field of a ticket form. */
1986
1996
  declare interface TicketField {
1997
+ prefillAliases?: string[];
1987
1998
  id: string;
1988
1999
  /** The key the ticketing backend expects; used as the submit key when set. */
1989
2000
  externalId?: string;
@@ -2030,6 +2041,7 @@ declare interface TicketFieldOption {
2030
2041
 
2031
2042
  /** The ticket form an agent's `ago_ticketing` tool opens in the conversation. */
2032
2043
  declare interface TicketForm {
2044
+ embedDescription?: string;
2033
2045
  id: string;
2034
2046
  name?: string;
2035
2047
  /** `"form"` renders the SDK's own fields; `"embed"` hosts third-party HTML. */
@@ -2096,16 +2108,21 @@ declare interface TranscribeAudioOptions {
2096
2108
  signal?: AbortSignal;
2097
2109
  }
2098
2110
 
2099
- /** The MCP behavior hints AGO has no equivalent for. */
2111
+ /** Metadata for tools exposed through the WebMCP bridge. */
2100
2112
  declare interface WebMCPToolMeta {
2101
2113
  /**
2102
- * Both default to `false`, so only set what is true: `readOnlyHint` marks a
2103
- * function that changes nothing, `untrustedContentHint` one whose result may
2104
- * carry third-party text.
2114
+ * Optional WebMCP metadata; all fields default to `false` in WebMCP.
2115
+ * These annotations do not affect AGO's in-app agent or approval behavior.
2105
2116
  */
2106
2117
  annotations?: {
2118
+ /** The tool only reads data and does not change state. */
2107
2119
  readOnlyHint?: boolean;
2120
+ /** The output contains content untrusted by the tool author. */
2108
2121
  untrustedContentHint?: boolean;
2122
+ /** Significant, real-world, or irreversible effects; independent of requiresApproval. */
2123
+ consequentialHint?: boolean;
2124
+ /** Intended for debugging and developer tooling. */
2125
+ debugging?: boolean;
2109
2126
  };
2110
2127
  /**
2111
2128
  * This function navigates. The WebMCP call is held open until the function