Home / Function/ generateSupermodelGraphRaw() — typescript-sdk Function Reference

generateSupermodelGraphRaw() — typescript-sdk Function Reference

Architecture documentation for the generateSupermodelGraphRaw() function in DefaultApi.ts from the typescript-sdk codebase.

Entity Profile

Dependency Diagram

graph TD
  04bf905a_84f9_2e0c_78c1_caede8b1fc4e["generateSupermodelGraphRaw()"]
  cb2e2ccd_eaec_6f24_d9d6_4a68b8fd446c["DefaultApi"]
  04bf905a_84f9_2e0c_78c1_caede8b1fc4e -->|defined in| cb2e2ccd_eaec_6f24_d9d6_4a68b8fd446c
  811e8767_fbe9_5d3a_0688_0e4299f5e7ed["generateSupermodelGraph()"]
  811e8767_fbe9_5d3a_0688_0e4299f5e7ed -->|calls| 04bf905a_84f9_2e0c_78c1_caede8b1fc4e
  a9dbfef7_3f36_3873_c1c7_ad33a0dd92ef["request()"]
  04bf905a_84f9_2e0c_78c1_caede8b1fc4e -->|calls| a9dbfef7_3f36_3873_c1c7_ad33a0dd92ef
  811e8767_fbe9_5d3a_0688_0e4299f5e7ed["generateSupermodelGraph()"]
  04bf905a_84f9_2e0c_78c1_caede8b1fc4e -->|calls| 811e8767_fbe9_5d3a_0688_0e4299f5e7ed
  b76a3e72_efd8_2111_6fdf_582aaea5ae2a["apiKey()"]
  04bf905a_84f9_2e0c_78c1_caede8b1fc4e -->|calls| b76a3e72_efd8_2111_6fdf_582aaea5ae2a
  52ee5fb1_4035_1208_921a_9a53cbd2fdbd["canConsumeForm()"]
  04bf905a_84f9_2e0c_78c1_caede8b1fc4e -->|calls| 52ee5fb1_4035_1208_921a_9a53cbd2fdbd
  style 04bf905a_84f9_2e0c_78c1_caede8b1fc4e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/apis/DefaultApi.ts lines 428–484

    async generateSupermodelGraphRaw(requestParameters: GenerateSupermodelGraphRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupermodelIRAsync>> {
        if (requestParameters['idempotencyKey'] == null) {
            throw new runtime.RequiredError(
                'idempotencyKey',
                'Required parameter "idempotencyKey" was null or undefined when calling generateSupermodelGraph().'
            );
        }

        if (requestParameters['file'] == null) {
            throw new runtime.RequiredError(
                'file',
                'Required parameter "file" was null or undefined when calling generateSupermodelGraph().'
            );
        }

        const queryParameters: any = {};

        const headerParameters: runtime.HTTPHeaders = {};

        if (requestParameters['idempotencyKey'] != null) {
            headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
        }

        if (this.configuration && this.configuration.apiKey) {
            headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication
        }

        const consumes: runtime.Consume[] = [
            { contentType: 'multipart/form-data' },
        ];
        // @ts-ignore: canConsumeForm may be unused
        const canConsumeForm = runtime.canConsumeForm(consumes);

        let formParams: { append(param: string, value: any): any };
        let useForm = false;
        // use FormData to transmit files using content-type "multipart/form-data"
        useForm = canConsumeForm;
        if (useForm) {
            formParams = new FormData();
        } else {
            formParams = new URLSearchParams();
        }

        if (requestParameters['file'] != null) {
            formParams.append('file', requestParameters['file'] as any);
        }

        const response = await this.request({
            path: `/v1/graphs/supermodel`,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: formParams,
        }, initOverrides);

        return new runtime.JSONApiResponse(response, (jsonValue) => SupermodelIRAsyncFromJSON(jsonValue));
    }

Domain

Subdomains

Frequently Asked Questions

What does generateSupermodelGraphRaw() do?
generateSupermodelGraphRaw() is a function in the typescript-sdk codebase, defined in src/apis/DefaultApi.ts.
Where is generateSupermodelGraphRaw() defined?
generateSupermodelGraphRaw() is defined in src/apis/DefaultApi.ts at line 428.
What does generateSupermodelGraphRaw() call?
generateSupermodelGraphRaw() calls 4 function(s): apiKey, canConsumeForm, generateSupermodelGraph, request.
What calls generateSupermodelGraphRaw()?
generateSupermodelGraphRaw() is called by 1 function(s): generateSupermodelGraph.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free