@aui.io/aui-client 3.0.0 → 3.1.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 (70) hide show
  1. package/README.md +17 -4
  2. package/dist/cjs/ApolloClientWrapper.js +11 -1
  3. package/dist/cjs/Client.d.ts +0 -3
  4. package/dist/cjs/Client.js +4 -9
  5. package/dist/cjs/api/resources/index.d.ts +0 -1
  6. package/dist/cjs/api/resources/index.js +1 -2
  7. package/dist/cjs/api/types/ErrorEnvelope.d.ts +3 -3
  8. package/dist/cjs/api/types/EventEnvelope.d.ts +2 -2
  9. package/dist/cjs/api/types/Message.d.ts +1 -1
  10. package/dist/cjs/api/types/MessageEnvelope.d.ts +1 -1
  11. package/dist/cjs/api/types/StreamEvent.d.ts +17 -0
  12. package/dist/cjs/api/types/SubmitMessageRequest.d.ts +1 -5
  13. package/dist/cjs/api/types/Trace.d.ts +1 -1
  14. package/dist/cjs/api/types/index.d.ts +1 -3
  15. package/dist/cjs/api/types/index.js +1 -3
  16. package/dist/cjs/environments.d.ts +0 -2
  17. package/dist/cjs/environments.js +0 -1
  18. package/dist/cjs/exports.d.ts +1 -0
  19. package/dist/cjs/exports.js +5 -0
  20. package/dist/cjs/version.d.ts +1 -1
  21. package/dist/cjs/version.js +1 -1
  22. package/dist/esm/ApolloClientWrapper.mjs +11 -1
  23. package/dist/esm/Client.d.mts +0 -3
  24. package/dist/esm/Client.mjs +2 -7
  25. package/dist/esm/api/resources/index.d.mts +0 -1
  26. package/dist/esm/api/resources/index.mjs +0 -1
  27. package/dist/esm/api/types/ErrorEnvelope.d.mts +3 -3
  28. package/dist/esm/api/types/EventEnvelope.d.mts +2 -2
  29. package/dist/esm/api/types/Message.d.mts +1 -1
  30. package/dist/esm/api/types/MessageEnvelope.d.mts +1 -1
  31. package/dist/esm/api/types/StreamEvent.d.mts +17 -0
  32. package/dist/esm/api/types/SubmitMessageRequest.d.mts +1 -5
  33. package/dist/esm/api/types/Trace.d.mts +1 -1
  34. package/dist/esm/api/types/index.d.mts +1 -3
  35. package/dist/esm/api/types/index.mjs +1 -3
  36. package/dist/esm/environments.d.mts +0 -2
  37. package/dist/esm/environments.mjs +0 -1
  38. package/dist/esm/exports.d.mts +1 -0
  39. package/dist/esm/exports.mjs +3 -0
  40. package/dist/esm/version.d.mts +1 -1
  41. package/dist/esm/version.mjs +1 -1
  42. package/package.json +1 -1
  43. package/dist/cjs/api/resources/simulatorSession/client/Client.d.ts +0 -19
  44. package/dist/cjs/api/resources/simulatorSession/client/Client.js +0 -71
  45. package/dist/cjs/api/resources/simulatorSession/client/Socket.d.ts +0 -49
  46. package/dist/cjs/api/resources/simulatorSession/client/Socket.js +0 -150
  47. package/dist/cjs/api/resources/simulatorSession/client/index.d.ts +0 -1
  48. package/dist/cjs/api/resources/simulatorSession/client/index.js +0 -2
  49. package/dist/cjs/api/resources/simulatorSession/index.d.ts +0 -1
  50. package/dist/cjs/api/resources/simulatorSession/index.js +0 -17
  51. package/dist/cjs/api/types/GatewayHeaders.d.ts +0 -13
  52. package/dist/cjs/api/types/IaEvent.d.ts +0 -17
  53. package/dist/cjs/api/types/IaEvent.js +0 -3
  54. package/dist/cjs/api/types/SimulatorCommand.d.ts +0 -21
  55. package/dist/cjs/api/types/SimulatorCommand.js +0 -12
  56. package/dist/esm/api/resources/simulatorSession/client/Client.d.mts +0 -19
  57. package/dist/esm/api/resources/simulatorSession/client/Client.mjs +0 -34
  58. package/dist/esm/api/resources/simulatorSession/client/Socket.d.mts +0 -49
  59. package/dist/esm/api/resources/simulatorSession/client/Socket.mjs +0 -113
  60. package/dist/esm/api/resources/simulatorSession/client/index.d.mts +0 -1
  61. package/dist/esm/api/resources/simulatorSession/client/index.mjs +0 -1
  62. package/dist/esm/api/resources/simulatorSession/index.d.mts +0 -1
  63. package/dist/esm/api/resources/simulatorSession/index.mjs +0 -1
  64. package/dist/esm/api/types/GatewayHeaders.d.mts +0 -13
  65. package/dist/esm/api/types/IaEvent.d.mts +0 -17
  66. package/dist/esm/api/types/IaEvent.mjs +0 -2
  67. package/dist/esm/api/types/SimulatorCommand.d.mts +0 -21
  68. package/dist/esm/api/types/SimulatorCommand.mjs +0 -9
  69. /package/dist/cjs/api/types/{GatewayHeaders.js → StreamEvent.js} +0 -0
  70. /package/dist/esm/api/types/{GatewayHeaders.mjs → StreamEvent.mjs} +0 -0
@@ -1,13 +0,0 @@
1
- /**
2
- * Gateway-enriched upgrade-request headers.
3
- */
4
- export interface GatewayHeaders {
5
- /** Tenant scope. Absence closes the socket with 1008. */
6
- "x-aui-organization-id": string;
7
- /** Billing task-origin hint (e.g. playground / production). */
8
- "x-aui-source"?: string;
9
- /** Acting (logged-in) user; attributes an auto-created thread. */
10
- "x-aui-user-id"?: string;
11
- /** Shared gateway↔apollo service key (infra contract; not set by end clients). */
12
- "x-api-key"?: string;
13
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Raw IA event. Forwarded only when channel.event_name is in the active allow-list.
3
- */
4
- export interface IaEvent {
5
- channel?: IaEvent.Channel;
6
- scope?: Record<string, unknown>;
7
- /** Event-specific payload. */
8
- data?: unknown;
9
- /** Accepts any additional properties */
10
- [key: string]: any;
11
- }
12
- export declare namespace IaEvent {
13
- interface Channel {
14
- /** Default stream: thread-message-text-content-updated (token delta), thread-message-text-content-completed. Simulator adds user-message-text-content-completed and simulation-request-*. ?events=all|verbose adds the full pillar/workflow set. */
15
- event_name?: string;
16
- }
17
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,21 +0,0 @@
1
- export interface SimulatorCommand {
2
- type: SimulatorCommand.Type;
3
- /** IA SimulationRequest payload, relayed verbatim. For `start`, must carry `task_id` (used for the wallet gate, replay buffer, and billing). */
4
- data?: SimulatorCommand.Data;
5
- }
6
- export declare namespace SimulatorCommand {
7
- const Type: {
8
- readonly Start: "start";
9
- readonly Cancel: "cancel";
10
- readonly ForceCancel: "force-cancel";
11
- };
12
- type Type = (typeof Type)[keyof typeof Type];
13
- /**
14
- * IA SimulationRequest payload, relayed verbatim. For `start`, must carry `task_id` (used for the wallet gate, replay buffer, and billing).
15
- */
16
- interface Data {
17
- task_id?: string;
18
- /** Accepts any additional properties */
19
- [key: string]: any;
20
- }
21
- }
@@ -1,9 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var SimulatorCommand;
3
- (function (SimulatorCommand) {
4
- SimulatorCommand.Type = {
5
- Start: "start",
6
- Cancel: "cancel",
7
- ForceCancel: "force-cancel",
8
- };
9
- })(SimulatorCommand || (SimulatorCommand = {}));