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
  64213b57_97c1_3c92_5202_99325330be00["generateSupermodelGraphRaw()"]
  e5e7c818_facd_b60e_f89c_1c650d0d1ab7["generateSupermodelGraph()"]
  e5e7c818_facd_b60e_f89c_1c650d0d1ab7 -->|calls| 64213b57_97c1_3c92_5202_99325330be00
  74960889_775b_bd9a_fdec_2cb4ceaa6c56["request()"]
  64213b57_97c1_3c92_5202_99325330be00 -->|calls| 74960889_775b_bd9a_fdec_2cb4ceaa6c56
  e5e7c818_facd_b60e_f89c_1c650d0d1ab7["generateSupermodelGraph()"]
  64213b57_97c1_3c92_5202_99325330be00 -->|calls| e5e7c818_facd_b60e_f89c_1c650d0d1ab7
  127aee54_a736_b134_3830_b9d334cc2bf3["apiKey()"]
  64213b57_97c1_3c92_5202_99325330be00 -->|calls| 127aee54_a736_b134_3830_b9d334cc2bf3
  50f1658c_dac3_fca2_706e_547ab98e76be["canConsumeForm()"]
  64213b57_97c1_3c92_5202_99325330be00 -->|calls| 50f1658c_dac3_fca2_706e_547ab98e76be
  style 64213b57_97c1_3c92_5202_99325330be00 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/apis/DefaultApi.ts lines 616–672

    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.
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