"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResponseStreamEvent$inboundSchema = void 0;
exports.responseStreamEventFromJSON = responseStreamEventFromJSON;
const z = __importStar(require("zod/v3"));
const schemas_js_1 = require("../../lib/schemas.js");
const responsecodeinterpretercallcodedeltastreamevent_js_1 = require("./responsecodeinterpretercallcodedeltastreamevent.js");
const responsecodeinterpretercallcodedonestreamevent_js_1 = require("./responsecodeinterpretercallcodedonestreamevent.js");
const responsecodeinterpretercallcompletedstreamevent_js_1 = require("./responsecodeinterpretercallcompletedstreamevent.js");
const responsecodeinterpretercallinprogressstreamevent_js_1 = require("./responsecodeinterpretercallinprogressstreamevent.js");
const responsecodeinterpretercallinterpretingstreamevent_js_1 = require("./responsecodeinterpretercallinterpretingstreamevent.js");
const responsecompletedstreamevent_js_1 = require("./responsecompletedstreamevent.js");
const responsecontentpartaddedstreamevent_js_1 = require("./responsecontentpartaddedstreamevent.js");
const responsecontentpartdonestreamevent_js_1 = require("./responsecontentpartdonestreamevent.js");
const responsecreatedstreamevent_js_1 = require("./responsecreatedstreamevent.js");
const responseerrorstreamevent_js_1 = require("./responseerrorstreamevent.js");
const responsefailedstreamevent_js_1 = require("./responsefailedstreamevent.js");
const responsefilesearchcallcompletedstreamevent_js_1 = require("./responsefilesearchcallcompletedstreamevent.js");
const responsefilesearchcallinprogressstreamevent_js_1 = require("./responsefilesearchcallinprogressstreamevent.js");
const responsefilesearchcallsearchingstreamevent_js_1 = require("./responsefilesearchcallsearchingstreamevent.js");
const responsefunctioncallargumentsdeltastreamevent_js_1 = require("./responsefunctioncallargumentsdeltastreamevent.js");
const responsefunctioncallargumentsdonestreamevent_js_1 = require("./responsefunctioncallargumentsdonestreamevent.js");
const responseimagegenerationcallcompletedstreamevent_js_1 = require("./responseimagegenerationcallcompletedstreamevent.js");
const responseimagegenerationcallgeneratingstreamevent_js_1 = require("./responseimagegenerationcallgeneratingstreamevent.js");
const responseimagegenerationcallinprogressstreamevent_js_1 = require("./responseimagegenerationcallinprogressstreamevent.js");
const responseimagegenerationcallpartialimagestreamevent_js_1 = require("./responseimagegenerationcallpartialimagestreamevent.js");
const responseincompletestreamevent_js_1 = require("./responseincompletestreamevent.js");
const responseinprogressstreamevent_js_1 = require("./responseinprogressstreamevent.js");
const responsemcpcallargumentsdeltastreamevent_js_1 = require("./responsemcpcallargumentsdeltastreamevent.js");
const responsemcpcallargumentsdonestreamevent_js_1 = require("./responsemcpcallargumentsdonestreamevent.js");
const responsemcpcallcompletedstreamevent_js_1 = require("./responsemcpcallcompletedstreamevent.js");
const responsemcpcallfailedstreamevent_js_1 = require("./responsemcpcallfailedstreamevent.js");
const responsemcpcallinprogressstreamevent_js_1 = require("./responsemcpcallinprogressstreamevent.js");
const responseoutputitemaddedstreamevent_js_1 = require("./responseoutputitemaddedstreamevent.js");
const responseoutputitemdonestreamevent_js_1 = require("./responseoutputitemdonestreamevent.js");
const responseoutputtextannotationaddedstreamevent_js_1 = require("./responseoutputtextannotationaddedstreamevent.js");
const responseoutputtextdeltastreamevent_js_1 = require("./responseoutputtextdeltastreamevent.js");
const responseoutputtextdonestreamevent_js_1 = require("./responseoutputtextdonestreamevent.js");
const responsequeuedstreamevent_js_1 = require("./responsequeuedstreamevent.js");
const responsereasoningdeltastreamevent_js_1 = require("./responsereasoningdeltastreamevent.js");
const responsereasoningdonestreamevent_js_1 = require("./responsereasoningdonestreamevent.js");
const responsereasoningsummarypartaddedstreamevent_js_1 = require("./responsereasoningsummarypartaddedstreamevent.js");
const responsereasoningsummarypartdonestreamevent_js_1 = require("./responsereasoningsummarypartdonestreamevent.js");
const responsereasoningsummarytextdeltastreamevent_js_1 = require("./responsereasoningsummarytextdeltastreamevent.js");
const responsereasoningsummarytextdonestreamevent_js_1 = require("./responsereasoningsummarytextdonestreamevent.js");
const responsereasoningtextdeltastreamevent_js_1 = require("./responsereasoningtextdeltastreamevent.js");
const responsereasoningtextdonestreamevent_js_1 = require("./responsereasoningtextdonestreamevent.js");
const responserefusaldeltastreamevent_js_1 = require("./responserefusaldeltastreamevent.js");
const responserefusaldonestreamevent_js_1 = require("./responserefusaldonestreamevent.js");
const responsewebsearchcallcompletedstreamevent_js_1 = require("./responsewebsearchcallcompletedstreamevent.js");
const responsewebsearchcallinprogressstreamevent_js_1 = require("./responsewebsearchcallinprogressstreamevent.js");
const responsewebsearchcallsearchingstreamevent_js_1 = require("./responsewebsearchcallsearchingstreamevent.js");
/** @internal */
exports.ResponseStreamEvent$inboundSchema = z.union([
    responseerrorstreamevent_js_1.ResponseErrorStreamEvent$inboundSchema,
    responsecodeinterpretercallcompletedstreamevent_js_1.ResponseCodeInterpreterCallCompletedStreamEvent$inboundSchema,
    responsecodeinterpretercallinprogressstreamevent_js_1.ResponseCodeInterpreterCallInProgressStreamEvent$inboundSchema,
    responsecodeinterpretercallinterpretingstreamevent_js_1.ResponseCodeInterpreterCallInterpretingStreamEvent$inboundSchema,
    responsecodeinterpretercallcodedeltastreamevent_js_1.ResponseCodeInterpreterCallCodeDeltaStreamEvent$inboundSchema,
    responsecodeinterpretercallcodedonestreamevent_js_1.ResponseCodeInterpreterCallCodeDoneStreamEvent$inboundSchema,
    responsecompletedstreamevent_js_1.ResponseCompletedStreamEvent$inboundSchema,
    responsecontentpartaddedstreamevent_js_1.ResponseContentPartAddedStreamEvent$inboundSchema,
    responsecontentpartdonestreamevent_js_1.ResponseContentPartDoneStreamEvent$inboundSchema,
    responsecreatedstreamevent_js_1.ResponseCreatedStreamEvent$inboundSchema,
    responsefailedstreamevent_js_1.ResponseFailedStreamEvent$inboundSchema,
    responsefilesearchcallcompletedstreamevent_js_1.ResponseFileSearchCallCompletedStreamEvent$inboundSchema,
    responsefilesearchcallinprogressstreamevent_js_1.ResponseFileSearchCallInProgressStreamEvent$inboundSchema,
    responsefilesearchcallsearchingstreamevent_js_1.ResponseFileSearchCallSearchingStreamEvent$inboundSchema,
    responsefunctioncallargumentsdeltastreamevent_js_1.ResponseFunctionCallArgumentsDeltaStreamEvent$inboundSchema,
    responsefunctioncallargumentsdonestreamevent_js_1.ResponseFunctionCallArgumentsDoneStreamEvent$inboundSchema,
    responseimagegenerationcallcompletedstreamevent_js_1.ResponseImageGenerationCallCompletedStreamEvent$inboundSchema,
    responseimagegenerationcallgeneratingstreamevent_js_1.ResponseImageGenerationCallGeneratingStreamEvent$inboundSchema,
    responseimagegenerationcallinprogressstreamevent_js_1.ResponseImageGenerationCallInProgressStreamEvent$inboundSchema,
    responseimagegenerationcallpartialimagestreamevent_js_1.ResponseImageGenerationCallPartialImageStreamEvent$inboundSchema,
    responseinprogressstreamevent_js_1.ResponseInProgressStreamEvent$inboundSchema,
    responseincompletestreamevent_js_1.ResponseIncompleteStreamEvent$inboundSchema,
    responsemcpcallcompletedstreamevent_js_1.ResponseMCPCallCompletedStreamEvent$inboundSchema,
    responsemcpcallfailedstreamevent_js_1.ResponseMCPCallFailedStreamEvent$inboundSchema,
    responsemcpcallinprogressstreamevent_js_1.ResponseMCPCallInProgressStreamEvent$inboundSchema,
    responsemcpcallargumentsdeltastreamevent_js_1.ResponseMCPCallArgumentsDeltaStreamEvent$inboundSchema,
    responsemcpcallargumentsdonestreamevent_js_1.ResponseMCPCallArgumentsDoneStreamEvent$inboundSchema,
    responseoutputitemaddedstreamevent_js_1.ResponseOutputItemAddedStreamEvent$inboundSchema,
    responseoutputitemdonestreamevent_js_1.ResponseOutputItemDoneStreamEvent$inboundSchema,
    responseoutputtextannotationaddedstreamevent_js_1.ResponseOutputTextAnnotationAddedStreamEvent$inboundSchema,
    responseoutputtextdeltastreamevent_js_1.ResponseOutputTextDeltaStreamEvent$inboundSchema,
    responseoutputtextdonestreamevent_js_1.ResponseOutputTextDoneStreamEvent$inboundSchema,
    responsequeuedstreamevent_js_1.ResponseQueuedStreamEvent$inboundSchema,
    responsereasoningdeltastreamevent_js_1.ResponseReasoningDeltaStreamEvent$inboundSchema,
    responsereasoningdonestreamevent_js_1.ResponseReasoningDoneStreamEvent$inboundSchema,
    responsereasoningsummarypartaddedstreamevent_js_1.ResponseReasoningSummaryPartAddedStreamEvent$inboundSchema,
    responsereasoningsummarypartdonestreamevent_js_1.ResponseReasoningSummaryPartDoneStreamEvent$inboundSchema,
    responsereasoningsummarytextdeltastreamevent_js_1.ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema,
    responsereasoningsummarytextdonestreamevent_js_1.ResponseReasoningSummaryTextDoneStreamEvent$inboundSchema,
    responsereasoningtextdeltastreamevent_js_1.ResponseReasoningTextDeltaStreamEvent$inboundSchema,
    responsereasoningtextdonestreamevent_js_1.ResponseReasoningTextDoneStreamEvent$inboundSchema,
    responserefusaldeltastreamevent_js_1.ResponseRefusalDeltaStreamEvent$inboundSchema,
    responserefusaldonestreamevent_js_1.ResponseRefusalDoneStreamEvent$inboundSchema,
    responsewebsearchcallcompletedstreamevent_js_1.ResponseWebSearchCallCompletedStreamEvent$inboundSchema,
    responsewebsearchcallinprogressstreamevent_js_1.ResponseWebSearchCallInProgressStreamEvent$inboundSchema,
    responsewebsearchcallsearchingstreamevent_js_1.ResponseWebSearchCallSearchingStreamEvent$inboundSchema,
]);
function responseStreamEventFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseStreamEvent' from JSON`);
}
//# sourceMappingURL=responsestreamevent.js.map