@truefoundry/ai-gateway-sdk 0.0.10 → 0.0.11
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.
package/dist/autogen/models.d.ts
CHANGED
|
@@ -21066,6 +21066,11 @@ export interface McpServerSource {
|
|
|
21066
21066
|
* +sort=200
|
|
21067
21067
|
*/
|
|
21068
21068
|
enabled_tools?: string[];
|
|
21069
|
+
/**
|
|
21070
|
+
* +label=Tool Slug
|
|
21071
|
+
* +usage=Optional suffix used in virtual MCP tool names for this source. When unset, the gateway keeps the auto-generated suffix.
|
|
21072
|
+
*/
|
|
21073
|
+
tool_slug?: string;
|
|
21069
21074
|
auth_data?: MCPServerHeaderOverrideAuth;
|
|
21070
21075
|
}
|
|
21071
21076
|
/**
|
package/dist/autogen/schema.json
CHANGED
|
@@ -16269,6 +16269,10 @@
|
|
|
16269
16269
|
"type": "string"
|
|
16270
16270
|
}
|
|
16271
16271
|
},
|
|
16272
|
+
"tool_slug": {
|
|
16273
|
+
"description": "+label=Tool Slug\n+usage=Optional suffix used in virtual MCP tool names for this source. When unset, the gateway keeps the auto-generated suffix.",
|
|
16274
|
+
"type": "string"
|
|
16275
|
+
},
|
|
16272
16276
|
"auth_data": {
|
|
16273
16277
|
"$ref": "#/definitions/MCPServerHeaderOverrideAuth"
|
|
16274
16278
|
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ export declare const TFY_ERROR_TYPES: {
|
|
|
25
25
|
readonly UPSTREAM_HEADERS_TIMEOUT: "upstream-headers-timeout";
|
|
26
26
|
readonly UPSTREAM_BODY_TIMEOUT: "upstream-body-timeout";
|
|
27
27
|
readonly UPSTREAM_TLS_ERROR: "upstream-tls-error";
|
|
28
|
+
/** The gateway itself rejected the request. */
|
|
29
|
+
readonly INPUT_GUARDRAIL: "tfy-input-guardrail";
|
|
30
|
+
/** An output guardrail failed after the provider had responded. */
|
|
31
|
+
readonly OUTPUT_GUARDRAIL: "tfy-output-guardrail";
|
|
32
|
+
readonly VALIDATION: "tfy-validation";
|
|
33
|
+
readonly CREDENTIALS: "tfy-credentials";
|
|
28
34
|
readonly CLIENT_DISCONNECTED: "client-disconnected";
|
|
29
35
|
readonly PROVIDER_STREAMING_TERMINATED: "provider-streaming-terminated";
|
|
30
36
|
/** Provider reported a failure inside an HTTP 200 stream (e.g. a Responses `response.failed` frame). */
|
|
@@ -32,5 +38,7 @@ export declare const TFY_ERROR_TYPES: {
|
|
|
32
38
|
readonly TTFT_TIMEOUT: "ttft-timeout";
|
|
33
39
|
readonly UNKNOWN_ERROR: "unknown-error";
|
|
34
40
|
};
|
|
41
|
+
/** Failures where the gateway itself rejected the request or its response. */
|
|
42
|
+
export type GatewayRejectionErrorType = typeof TFY_ERROR_TYPES.INPUT_GUARDRAIL | typeof TFY_ERROR_TYPES.OUTPUT_GUARDRAIL | typeof TFY_ERROR_TYPES.VALIDATION | typeof TFY_ERROR_TYPES.CREDENTIALS;
|
|
35
43
|
/** Failures where the gateway never got an HTTP response from the provider. */
|
|
36
44
|
export type GatewayFailureErrorType = typeof TFY_ERROR_TYPES.UPSTREAM_CONNECT_FAILURE | typeof TFY_ERROR_TYPES.UPSTREAM_HEADERS_TIMEOUT | typeof TFY_ERROR_TYPES.UPSTREAM_BODY_TIMEOUT | typeof TFY_ERROR_TYPES.UPSTREAM_TLS_ERROR;
|
package/dist/constants.js
CHANGED
|
@@ -25,6 +25,12 @@ export const TFY_ERROR_TYPES = {
|
|
|
25
25
|
UPSTREAM_HEADERS_TIMEOUT: 'upstream-headers-timeout',
|
|
26
26
|
UPSTREAM_BODY_TIMEOUT: 'upstream-body-timeout',
|
|
27
27
|
UPSTREAM_TLS_ERROR: 'upstream-tls-error',
|
|
28
|
+
/** The gateway itself rejected the request. */
|
|
29
|
+
INPUT_GUARDRAIL: 'tfy-input-guardrail',
|
|
30
|
+
/** An output guardrail failed after the provider had responded. */
|
|
31
|
+
OUTPUT_GUARDRAIL: 'tfy-output-guardrail',
|
|
32
|
+
VALIDATION: 'tfy-validation',
|
|
33
|
+
CREDENTIALS: 'tfy-credentials',
|
|
28
34
|
CLIENT_DISCONNECTED: 'client-disconnected',
|
|
29
35
|
PROVIDER_STREAMING_TERMINATED: 'provider-streaming-terminated',
|
|
30
36
|
/** Provider reported a failure inside an HTTP 200 stream (e.g. a Responses `response.failed` frame). */
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAC5D,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC;AAClE,kHAAkH;AAClH,MAAM,CAAC,MAAM,6BAA6B,GAAG,0BAA0B,CAAC;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,SAAS,CAAU,CAAC;AAC9D,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACxD,MAAM,CAAC,MAAM,yBAAyB,GAAG,sBAAsB,CAAC;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAC5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,qBAAqB,CAAC;AAC9D,MAAM,CAAC,MAAM,mCAAmC,GAAG,gCAAgC,CAAC;AACpF,MAAM,CAAC,MAAM,6BAA6B,GAAG,0BAA0B,CAAC;AACxE,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;AAC1C,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAE1D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,YAAY,EAAE,kBAAkB;IAChC,aAAa,EAAE,eAAe;IAC9B,qGAAqG;IACrG,eAAe,EAAE,qBAAqB;IAC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