truefoundry-gateway-sdk 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/types/AgentApprovalDecision.d.ts +1 -1
  3. package/dist/cjs/api/types/AgentApprovalDecisionAllow.d.ts +3 -0
  4. package/dist/cjs/api/types/{AgentApprovalDecisionReason.d.ts → AgentApprovalDecisionDeny.d.ts} +1 -1
  5. package/dist/cjs/api/types/AgentResponsesBody.d.ts +1 -1
  6. package/dist/cjs/api/types/AgentResponsesInlineAgent.d.ts +1 -1
  7. package/dist/cjs/api/types/AgentResponsesInput.d.ts +2 -0
  8. package/dist/cjs/api/types/{AgentResponsesNamedAgent.d.ts → AgentResponsesSavedAgent.d.ts} +2 -2
  9. package/dist/cjs/api/types/index.d.ts +4 -4
  10. package/dist/cjs/api/types/index.js +4 -4
  11. package/dist/cjs/version.d.ts +1 -1
  12. package/dist/cjs/version.js +1 -1
  13. package/dist/esm/BaseClient.mjs +2 -2
  14. package/dist/esm/api/types/AgentApprovalDecision.d.mts +1 -1
  15. package/dist/esm/api/types/AgentApprovalDecisionAllow.d.mts +3 -0
  16. package/dist/esm/api/types/{AgentApprovalDecisionReason.d.mts → AgentApprovalDecisionDeny.d.mts} +1 -1
  17. package/dist/esm/api/types/AgentResponsesBody.d.mts +1 -1
  18. package/dist/esm/api/types/AgentResponsesInlineAgent.d.mts +1 -1
  19. package/dist/esm/api/types/AgentResponsesInput.d.mts +2 -0
  20. package/dist/esm/api/types/{AgentResponsesNamedAgent.d.mts → AgentResponsesSavedAgent.d.mts} +2 -2
  21. package/dist/esm/api/types/index.d.mts +4 -4
  22. package/dist/esm/api/types/index.mjs +4 -4
  23. package/dist/esm/version.d.mts +1 -1
  24. package/dist/esm/version.mjs +1 -1
  25. package/package.json +1 -1
  26. package/dist/cjs/api/types/AgentApprovalDecisionZero.d.ts +0 -3
  27. package/dist/cjs/api/types/AgentResponsesStatefulInput.d.ts +0 -2
  28. package/dist/esm/api/types/AgentApprovalDecisionZero.d.mts +0 -3
  29. package/dist/esm/api/types/AgentResponsesStatefulInput.d.mts +0 -2
  30. /package/dist/cjs/api/types/{AgentApprovalDecisionReason.js → AgentApprovalDecisionAllow.js} +0 -0
  31. /package/dist/cjs/api/types/{AgentApprovalDecisionZero.js → AgentApprovalDecisionDeny.js} +0 -0
  32. /package/dist/cjs/api/types/{AgentResponsesNamedAgent.js → AgentResponsesInput.js} +0 -0
  33. /package/dist/cjs/api/types/{AgentResponsesStatefulInput.js → AgentResponsesSavedAgent.js} +0 -0
  34. /package/dist/esm/api/types/{AgentApprovalDecisionReason.mjs → AgentApprovalDecisionAllow.mjs} +0 -0
  35. /package/dist/esm/api/types/{AgentApprovalDecisionZero.mjs → AgentApprovalDecisionDeny.mjs} +0 -0
  36. /package/dist/esm/api/types/{AgentResponsesNamedAgent.mjs → AgentResponsesInput.mjs} +0 -0
  37. /package/dist/esm/api/types/{AgentResponsesStatefulInput.mjs → AgentResponsesSavedAgent.mjs} +0 -0
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "truefoundry-gateway-sdk",
46
- "X-Fern-SDK-Version": "0.0.1",
47
- "User-Agent": "truefoundry-gateway-sdk/0.0.1",
46
+ "X-Fern-SDK-Version": "0.0.2",
47
+ "User-Agent": "truefoundry-gateway-sdk/0.0.2",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,2 +1,2 @@
1
1
  import type * as TruefoundryGateway from "../index.js";
2
- export type AgentApprovalDecision = TruefoundryGateway.AgentApprovalDecisionZero | TruefoundryGateway.AgentApprovalDecisionReason;
2
+ export type AgentApprovalDecision = TruefoundryGateway.AgentApprovalDecisionAllow | TruefoundryGateway.AgentApprovalDecisionDeny;
@@ -0,0 +1,3 @@
1
+ export interface AgentApprovalDecisionAllow {
2
+ status: "allow";
3
+ }
@@ -1,4 +1,4 @@
1
- export interface AgentApprovalDecisionReason {
1
+ export interface AgentApprovalDecisionDeny {
2
2
  status: "deny";
3
3
  reason?: string | undefined;
4
4
  }
@@ -1,2 +1,2 @@
1
1
  import type * as TruefoundryGateway from "../index.js";
2
- export type AgentResponsesBody = TruefoundryGateway.AgentResponsesInlineAgent | TruefoundryGateway.AgentResponsesNamedAgent;
2
+ export type AgentResponsesBody = TruefoundryGateway.AgentResponsesInlineAgent | TruefoundryGateway.AgentResponsesSavedAgent;
@@ -12,5 +12,5 @@ export interface AgentResponsesInlineAgent {
12
12
  variables?: Record<string, string> | undefined;
13
13
  /** ID of a prior stored response. Pass to continue a stateful conversation. */
14
14
  previous_response_id?: string | undefined;
15
- input?: TruefoundryGateway.AgentResponsesStatefulInput | undefined;
15
+ input?: TruefoundryGateway.AgentResponsesInput | undefined;
16
16
  }
@@ -0,0 +1,2 @@
1
+ import type * as TruefoundryGateway from "../index.js";
2
+ export type AgentResponsesInput = TruefoundryGateway.AgentInputUserMessage[] | TruefoundryGateway.AgentApprovalOrToolResponseMessage[];
@@ -1,8 +1,8 @@
1
1
  import type * as TruefoundryGateway from "../index.js";
2
- export interface AgentResponsesNamedAgent {
2
+ export interface AgentResponsesSavedAgent {
3
3
  agent_name: string;
4
4
  variables?: Record<string, string> | undefined;
5
5
  /** ID of a prior stored response. Pass to continue a stateful conversation. */
6
6
  previous_response_id?: string | undefined;
7
- input?: TruefoundryGateway.AgentResponsesStatefulInput | undefined;
7
+ input?: TruefoundryGateway.AgentResponsesInput | undefined;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  export * from "./AgentApprovalDecision.js";
2
+ export * from "./AgentApprovalDecisionAllow.js";
3
+ export * from "./AgentApprovalDecisionDeny.js";
2
4
  export * from "./AgentApprovalDecisionMessage.js";
3
- export * from "./AgentApprovalDecisionReason.js";
4
- export * from "./AgentApprovalDecisionZero.js";
5
5
  export * from "./AgentApprovalOrToolResponseMessage.js";
6
6
  export * from "./AgentApprovalRequired.js";
7
7
  export * from "./AgentAssistantMessage.js";
@@ -58,8 +58,8 @@ export * from "./AgentResponsesFormatZero.js";
58
58
  export * from "./AgentResponsesInlineAgent.js";
59
59
  export * from "./AgentResponsesInlineAgentMessagesItem.js";
60
60
  export * from "./AgentResponsesInlineAgentSandbox.js";
61
- export * from "./AgentResponsesNamedAgent.js";
62
- export * from "./AgentResponsesStatefulInput.js";
61
+ export * from "./AgentResponsesInput.js";
62
+ export * from "./AgentResponsesSavedAgent.js";
63
63
  export * from "./AgentSandboxCreated.js";
64
64
  export * from "./AgentSkillMount.js";
65
65
  export * from "./AgentTextContentPart.js";
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AgentApprovalDecision.js"), exports);
18
+ __exportStar(require("./AgentApprovalDecisionAllow.js"), exports);
19
+ __exportStar(require("./AgentApprovalDecisionDeny.js"), exports);
18
20
  __exportStar(require("./AgentApprovalDecisionMessage.js"), exports);
19
- __exportStar(require("./AgentApprovalDecisionReason.js"), exports);
20
- __exportStar(require("./AgentApprovalDecisionZero.js"), exports);
21
21
  __exportStar(require("./AgentApprovalOrToolResponseMessage.js"), exports);
22
22
  __exportStar(require("./AgentApprovalRequired.js"), exports);
23
23
  __exportStar(require("./AgentAssistantMessage.js"), exports);
@@ -74,8 +74,8 @@ __exportStar(require("./AgentResponsesFormatZero.js"), exports);
74
74
  __exportStar(require("./AgentResponsesInlineAgent.js"), exports);
75
75
  __exportStar(require("./AgentResponsesInlineAgentMessagesItem.js"), exports);
76
76
  __exportStar(require("./AgentResponsesInlineAgentSandbox.js"), exports);
77
- __exportStar(require("./AgentResponsesNamedAgent.js"), exports);
78
- __exportStar(require("./AgentResponsesStatefulInput.js"), exports);
77
+ __exportStar(require("./AgentResponsesInput.js"), exports);
78
+ __exportStar(require("./AgentResponsesSavedAgent.js"), exports);
79
79
  __exportStar(require("./AgentSandboxCreated.js"), exports);
80
80
  __exportStar(require("./AgentSkillMount.js"), exports);
81
81
  __exportStar(require("./AgentTextContentPart.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1";
1
+ export declare const SDK_VERSION = "0.0.2";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.1";
4
+ exports.SDK_VERSION = "0.0.2";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "truefoundry-gateway-sdk",
9
- "X-Fern-SDK-Version": "0.0.1",
10
- "User-Agent": "truefoundry-gateway-sdk/0.0.1",
9
+ "X-Fern-SDK-Version": "0.0.2",
10
+ "User-Agent": "truefoundry-gateway-sdk/0.0.2",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,2 +1,2 @@
1
1
  import type * as TruefoundryGateway from "../index.mjs";
2
- export type AgentApprovalDecision = TruefoundryGateway.AgentApprovalDecisionZero | TruefoundryGateway.AgentApprovalDecisionReason;
2
+ export type AgentApprovalDecision = TruefoundryGateway.AgentApprovalDecisionAllow | TruefoundryGateway.AgentApprovalDecisionDeny;
@@ -0,0 +1,3 @@
1
+ export interface AgentApprovalDecisionAllow {
2
+ status: "allow";
3
+ }
@@ -1,4 +1,4 @@
1
- export interface AgentApprovalDecisionReason {
1
+ export interface AgentApprovalDecisionDeny {
2
2
  status: "deny";
3
3
  reason?: string | undefined;
4
4
  }
@@ -1,2 +1,2 @@
1
1
  import type * as TruefoundryGateway from "../index.mjs";
2
- export type AgentResponsesBody = TruefoundryGateway.AgentResponsesInlineAgent | TruefoundryGateway.AgentResponsesNamedAgent;
2
+ export type AgentResponsesBody = TruefoundryGateway.AgentResponsesInlineAgent | TruefoundryGateway.AgentResponsesSavedAgent;
@@ -12,5 +12,5 @@ export interface AgentResponsesInlineAgent {
12
12
  variables?: Record<string, string> | undefined;
13
13
  /** ID of a prior stored response. Pass to continue a stateful conversation. */
14
14
  previous_response_id?: string | undefined;
15
- input?: TruefoundryGateway.AgentResponsesStatefulInput | undefined;
15
+ input?: TruefoundryGateway.AgentResponsesInput | undefined;
16
16
  }
@@ -0,0 +1,2 @@
1
+ import type * as TruefoundryGateway from "../index.mjs";
2
+ export type AgentResponsesInput = TruefoundryGateway.AgentInputUserMessage[] | TruefoundryGateway.AgentApprovalOrToolResponseMessage[];
@@ -1,8 +1,8 @@
1
1
  import type * as TruefoundryGateway from "../index.mjs";
2
- export interface AgentResponsesNamedAgent {
2
+ export interface AgentResponsesSavedAgent {
3
3
  agent_name: string;
4
4
  variables?: Record<string, string> | undefined;
5
5
  /** ID of a prior stored response. Pass to continue a stateful conversation. */
6
6
  previous_response_id?: string | undefined;
7
- input?: TruefoundryGateway.AgentResponsesStatefulInput | undefined;
7
+ input?: TruefoundryGateway.AgentResponsesInput | undefined;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  export * from "./AgentApprovalDecision.mjs";
2
+ export * from "./AgentApprovalDecisionAllow.mjs";
3
+ export * from "./AgentApprovalDecisionDeny.mjs";
2
4
  export * from "./AgentApprovalDecisionMessage.mjs";
3
- export * from "./AgentApprovalDecisionReason.mjs";
4
- export * from "./AgentApprovalDecisionZero.mjs";
5
5
  export * from "./AgentApprovalOrToolResponseMessage.mjs";
6
6
  export * from "./AgentApprovalRequired.mjs";
7
7
  export * from "./AgentAssistantMessage.mjs";
@@ -58,8 +58,8 @@ export * from "./AgentResponsesFormatZero.mjs";
58
58
  export * from "./AgentResponsesInlineAgent.mjs";
59
59
  export * from "./AgentResponsesInlineAgentMessagesItem.mjs";
60
60
  export * from "./AgentResponsesInlineAgentSandbox.mjs";
61
- export * from "./AgentResponsesNamedAgent.mjs";
62
- export * from "./AgentResponsesStatefulInput.mjs";
61
+ export * from "./AgentResponsesInput.mjs";
62
+ export * from "./AgentResponsesSavedAgent.mjs";
63
63
  export * from "./AgentSandboxCreated.mjs";
64
64
  export * from "./AgentSkillMount.mjs";
65
65
  export * from "./AgentTextContentPart.mjs";
@@ -1,7 +1,7 @@
1
1
  export * from "./AgentApprovalDecision.mjs";
2
+ export * from "./AgentApprovalDecisionAllow.mjs";
3
+ export * from "./AgentApprovalDecisionDeny.mjs";
2
4
  export * from "./AgentApprovalDecisionMessage.mjs";
3
- export * from "./AgentApprovalDecisionReason.mjs";
4
- export * from "./AgentApprovalDecisionZero.mjs";
5
5
  export * from "./AgentApprovalOrToolResponseMessage.mjs";
6
6
  export * from "./AgentApprovalRequired.mjs";
7
7
  export * from "./AgentAssistantMessage.mjs";
@@ -58,8 +58,8 @@ export * from "./AgentResponsesFormatZero.mjs";
58
58
  export * from "./AgentResponsesInlineAgent.mjs";
59
59
  export * from "./AgentResponsesInlineAgentMessagesItem.mjs";
60
60
  export * from "./AgentResponsesInlineAgentSandbox.mjs";
61
- export * from "./AgentResponsesNamedAgent.mjs";
62
- export * from "./AgentResponsesStatefulInput.mjs";
61
+ export * from "./AgentResponsesInput.mjs";
62
+ export * from "./AgentResponsesSavedAgent.mjs";
63
63
  export * from "./AgentSandboxCreated.mjs";
64
64
  export * from "./AgentSkillMount.mjs";
65
65
  export * from "./AgentTextContentPart.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1";
1
+ export declare const SDK_VERSION = "0.0.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.1";
1
+ export const SDK_VERSION = "0.0.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truefoundry-gateway-sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +0,0 @@
1
- export interface AgentApprovalDecisionZero {
2
- status: "allow";
3
- }
@@ -1,2 +0,0 @@
1
- import type * as TruefoundryGateway from "../index.js";
2
- export type AgentResponsesStatefulInput = TruefoundryGateway.AgentInputUserMessage[] | TruefoundryGateway.AgentApprovalOrToolResponseMessage[];
@@ -1,3 +0,0 @@
1
- export interface AgentApprovalDecisionZero {
2
- status: "allow";
3
- }
@@ -1,2 +0,0 @@
1
- import type * as TruefoundryGateway from "../index.mjs";
2
- export type AgentResponsesStatefulInput = TruefoundryGateway.AgentInputUserMessage[] | TruefoundryGateway.AgentApprovalOrToolResponseMessage[];