From dc668059ccb4eb7ee21c4f51c203e3f1a2e7862a Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sun, 2 Nov 2025 16:14:52 +0000 Subject: [PATCH 1/3] feat: support query parameter style/explode --- .../openapi-code-generator/src/core/input.ts | 40 ++++++++++++++ .../src/core/openapi-types-normalized.ts | 2 + .../src/core/openapi-types.ts | 6 +++ .../client/client-operation-builder.ts | 48 ++++++++++++++--- .../angular-service-builder.ts | 23 ++++++-- .../typescript-axios-client-builder.ts | 8 +-- .../typescript-fetch-client-builder.ts | 8 +-- .../typescript/common/typescript-common.ts | 4 ++ .../typescript-axios-runtime/package.json | 2 - .../typescript-axios-runtime/src/main.spec.ts | 54 ++++++++++++------- packages/typescript-axios-runtime/src/main.ts | 17 +++--- .../typescript-fetch-runtime/package.json | 2 - .../typescript-fetch-runtime/src/main.spec.ts | 54 ++++++++++++------- packages/typescript-fetch-runtime/src/main.ts | 17 +++--- pnpm-lock.yaml | 12 ----- 15 files changed, 207 insertions(+), 90 deletions(-) diff --git a/packages/openapi-code-generator/src/core/input.ts b/packages/openapi-code-generator/src/core/input.ts index 47634631..4c61851c 100644 --- a/packages/openapi-code-generator/src/core/input.ts +++ b/packages/openapi-code-generator/src/core/input.ts @@ -10,6 +10,7 @@ import type { Responses, Schema, Server, + Style, xInternalPreproccess, } from "./openapi-types" import type { @@ -333,10 +334,15 @@ export class Input { return parameters .map((it) => this.loader.parameter(it)) .map((it: Parameter): IRParameter => { + const style = this.styleForParameter(it) + const explode = this.explodeForParameter(it, style) + return { name: it.name, in: it.in, schema: this.normalizeSchemaObject(it.schema), + style, + explode, description: it.description, required: it.required ?? false, deprecated: it.deprecated ?? false, @@ -345,6 +351,40 @@ export class Input { }) } + private styleForParameter(parameter: Parameter): Style { + if (parameter.style) { + return parameter.style + } + + switch (parameter.in) { + case "query": + return "form" + case "path": + return "simple" + case "header": + return "simple" + case "cookie": + return "form" + default: { + throw new Error( + `unsupported parameter in '${parameter.in satisfies never}'`, + ) + } + } + } + + private explodeForParameter(parameter: Parameter, style: Style): boolean { + if (typeof parameter.explode === "boolean") { + return parameter.explode + } + + if (style === "form") { + return true + } + + return false + } + private normalizeOperationId( operationId: string | undefined, method: string, diff --git a/packages/openapi-code-generator/src/core/openapi-types-normalized.ts b/packages/openapi-code-generator/src/core/openapi-types-normalized.ts index ea428ca2..b2afb255 100644 --- a/packages/openapi-code-generator/src/core/openapi-types-normalized.ts +++ b/packages/openapi-code-generator/src/core/openapi-types-normalized.ts @@ -127,6 +127,8 @@ export interface IRParameter { name: string in: "path" | "query" | "header" | "cookie" | "body" schema: MaybeIRModel + style: Style | undefined + explode: boolean | undefined description: string | undefined required: boolean deprecated: boolean diff --git a/packages/openapi-code-generator/src/core/openapi-types.ts b/packages/openapi-code-generator/src/core/openapi-types.ts index 5a7b36f7..b01d53ae 100644 --- a/packages/openapi-code-generator/src/core/openapi-types.ts +++ b/packages/openapi-code-generator/src/core/openapi-types.ts @@ -203,6 +203,12 @@ export interface Parameter { name: string in: "path" | "query" | "header" | "cookie" schema: Schema | Reference + // todo: support content + // content?: { + // [contentType: string]: MediaType + // } + style?: Style + explode?: boolean description?: string required?: boolean deprecated?: boolean diff --git a/packages/openapi-code-generator/src/typescript/client/client-operation-builder.ts b/packages/openapi-code-generator/src/typescript/client/client-operation-builder.ts index 5fd4a092..e745ee03 100644 --- a/packages/openapi-code-generator/src/typescript/client/client-operation-builder.ts +++ b/packages/openapi-code-generator/src/typescript/client/client-operation-builder.ts @@ -9,6 +9,7 @@ import {extractPlaceholders} from "../../core/openapi-utils" import {camelCase, isDefined} from "../../core/utils" import type {SchemaBuilder} from "../common/schema-builders/schema-builder" import type {TypeBuilder} from "../common/type-builder" +import {object, quotedStringLiteral} from "../common/type-utils" import { combineParams, type MethodParameterDefinition, @@ -131,14 +132,47 @@ export class ClientOperationBuilder { return result } - queryString(): string { - const {parameters} = this.operation + query(): {paramsObject: string; encodings: string} | null { + const parameters = this.operation.parameters.filter( + (it) => it.in === "query", + ) - // todo: consider style / explode / allowReserved etc here - return parameters - .filter((it) => it.in === "query") - .map((it) => `'${it.name}': ${this.paramName(it.name)}`) - .join(",\n") + if (parameters.length === 0) { + return null + } + + const paramsObject = object( + parameters.map( + (it) => `${quotedStringLiteral(it.name)}: ${this.paramName(it.name)}`, + ), + ) + + const encodings = object( + parameters + .filter((it) => it.style !== undefined || it.explode !== undefined) + .filter((it) => { + const schema = it.schema && this.input.schema(it.schema) + // primitive values don't get influenced by encoding, so we can avoid putting it in the generated code. + return ( + schema.type !== "string" && + schema.type !== "boolean" && + schema.type !== "number" + ) + }) + .map( + (it) => + `${quotedStringLiteral(it.name)}: ${object( + [ + it.style !== undefined + ? `style: ${quotedStringLiteral(it.style)}` + : undefined, + it.explode !== undefined ? `explode: ${it.explode}` : undefined, + ].filter(isDefined), + )}`, + ), + ) + + return {paramsObject, encodings} } headers({ diff --git a/packages/openapi-code-generator/src/typescript/client/typescript-angular/angular-service-builder.ts b/packages/openapi-code-generator/src/typescript/client/typescript-angular/angular-service-builder.ts index 6423293d..85b77f57 100644 --- a/packages/openapi-code-generator/src/typescript/client/typescript-angular/angular-service-builder.ts +++ b/packages/openapi-code-generator/src/typescript/client/typescript-angular/angular-service-builder.ts @@ -35,7 +35,7 @@ export class AngularServiceBuilder extends AbstractClientBuilder { const operationParameter = builder.methodParameter() - const queryString = builder.queryString() + const query = builder.query() const headers = builder.headers({nullContentTypeValue: "undefined"}) const returnType = builder @@ -51,7 +51,9 @@ export class AngularServiceBuilder extends AbstractClientBuilder { const body = ` ${[ headers ? `const headers = this._headers(${headers})` : "", - queryString ? `const params = this._queryParams({${queryString}})` : "", + query + ? `const params = this._query(${[query.paramsObject, query.encodings].filter(Boolean).join(",")})` + : "", requestBody?.parameter && requestBody.isSupported ? `const body = ${builder.paramName(requestBody.parameter.name)}` : "", @@ -63,7 +65,7 @@ return this.httpClient.request( "${method}", ${hasServers ? "basePath" : "this.config.basePath"} + \`${url}\`, { ${[ - queryString ? "params" : "", + query ? "params" : "", headers ? "headers" : "", requestBody?.parameter ? requestBody.isSupported @@ -146,6 +148,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -164,8 +175,10 @@ export class ${clientName} { ) } - private _queryParams( - queryParams: QueryParams + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if (typeof value === "string" || typeof value === "boolean" || typeof value === "number") { diff --git a/packages/openapi-code-generator/src/typescript/client/typescript-axios/typescript-axios-client-builder.ts b/packages/openapi-code-generator/src/typescript/client/typescript-axios/typescript-axios-client-builder.ts index d48844da..03151bef 100644 --- a/packages/openapi-code-generator/src/typescript/client/typescript-axios/typescript-axios-client-builder.ts +++ b/packages/openapi-code-generator/src/typescript/client/typescript-axios/typescript-axios-client-builder.ts @@ -41,7 +41,7 @@ export class TypescriptAxiosClientBuilder extends AbstractClientBuilder { const operationParameter = builder.methodParameter() - const queryString = builder.queryString() + const query = builder.query() const headers = builder.headers({nullContentTypeValue: "false"}) const returnType = @@ -67,7 +67,7 @@ export class TypescriptAxiosClientBuilder extends AbstractClientBuilder { : null const axiosFragment = `this._request({${[ - `url: url ${queryString ? "+ query" : ""}`, + `url: url ${query ? "+ query" : ""}`, `method: "${method}"`, requestBody?.parameter ? requestBody.isSupported @@ -90,7 +90,9 @@ export class TypescriptAxiosClientBuilder extends AbstractClientBuilder { headers ? `const headers = this._headers(${headers}, opts.headers)` : "const headers = this._headers({}, opts.headers)", - queryString ? `const query = this._query({ ${queryString} })` : "", + query + ? `const query = this._query(${[query.paramsObject, query.encodings].filter(Boolean).join(",")})` + : "", requestBody?.parameter && requestBody.isSupported ? `const body = ${this.serializeRequestBody(requestBody)}` : "", diff --git a/packages/openapi-code-generator/src/typescript/client/typescript-fetch/typescript-fetch-client-builder.ts b/packages/openapi-code-generator/src/typescript/client/typescript-fetch/typescript-fetch-client-builder.ts index e283eb2a..e10cf566 100644 --- a/packages/openapi-code-generator/src/typescript/client/typescript-fetch/typescript-fetch-client-builder.ts +++ b/packages/openapi-code-generator/src/typescript/client/typescript-fetch/typescript-fetch-client-builder.ts @@ -75,7 +75,7 @@ export class TypescriptFetchClientBuilder extends AbstractClientBuilder { const operationParameter = builder.methodParameter() - const queryString = builder.queryString() + const query = builder.query() const headers = builder.headers({nullContentTypeValue: "undefined"}) const returnType = builder @@ -89,7 +89,7 @@ export class TypescriptFetchClientBuilder extends AbstractClientBuilder { ? builder.responseSchemas() : null - const fetchFragment = `this._fetch(url ${queryString ? "+ query" : ""}, + const fetchFragment = `this._fetch(url ${query ? "+ query" : ""}, {${[ `method: "${method}"`, requestBody?.parameter @@ -109,7 +109,9 @@ export class TypescriptFetchClientBuilder extends AbstractClientBuilder { headers ? `const headers = this._headers(${headers}, opts.headers)` : "const headers = this._headers({}, opts.headers)", - queryString ? `const query = this._query({ ${queryString} })` : "", + query + ? `const query = this._query(${[query.paramsObject, query.encodings].filter(Boolean).join(",")})` + : "", requestBody?.parameter && requestBody.isSupported ? `const body = ${this.serializeRequestBody(requestBody)}` : "", diff --git a/packages/openapi-code-generator/src/typescript/common/typescript-common.ts b/packages/openapi-code-generator/src/typescript/common/typescript-common.ts index 03fc1918..cc3820e8 100644 --- a/packages/openapi-code-generator/src/typescript/common/typescript-common.ts +++ b/packages/openapi-code-generator/src/typescript/common/typescript-common.ts @@ -248,6 +248,8 @@ export function requestBodyAsParameter( name: "requestBody", description: requestBody.description, in: "body", + style: undefined, + explode: undefined, required: requestBody.required, schema: result.mediaType.schema, allowEmptyValue: false, @@ -275,6 +277,8 @@ export function requestBodyAsParameter( name: "requestBody", description: requestBody.description, in: "body", + style: undefined, + explode: undefined, required: requestBody.required, schema: {type: "never", nullable: false, readOnly: false}, allowEmptyValue: false, diff --git a/packages/typescript-axios-runtime/package.json b/packages/typescript-axios-runtime/package.json index 073e5be5..df84d1be 100644 --- a/packages/typescript-axios-runtime/package.json +++ b/packages/typescript-axios-runtime/package.json @@ -29,7 +29,6 @@ "test": "jest" }, "dependencies": { - "qs": "^6.14.0", "tslib": "^2.8.1" }, "peerDependencies": { @@ -37,7 +36,6 @@ }, "devDependencies": { "@jest/globals": "^30.2.0", - "@types/qs": "^6.14.0", "axios": "^1.13.2", "jest": "^30.2.0", "typescript": "^5.9.3" diff --git a/packages/typescript-axios-runtime/src/main.spec.ts b/packages/typescript-axios-runtime/src/main.spec.ts index cc442f97..03a33ec8 100644 --- a/packages/typescript-axios-runtime/src/main.spec.ts +++ b/packages/typescript-axios-runtime/src/main.spec.ts @@ -9,6 +9,7 @@ import { type HeaderParams, type QueryParams, } from "./main" +import type {Encoding} from "./request-bodies/url-search-params" class ConcreteAxiosClient extends AbstractAxiosClient { // biome-ignore lint/complexity/noUselessConstructor: make public @@ -16,8 +17,11 @@ class ConcreteAxiosClient extends AbstractAxiosClient { super(config) } - query(params: QueryParams) { - return this._query(params) + query( + params: QueryParams, + encodings: Record | undefined = undefined, + ): string { + return this._query(params, encodings) } headers( @@ -46,28 +50,40 @@ describe("typescript-axios-runtime/main", () => { expect(client.query({foo: ["bar", "baz"]})).toBe("?foo=bar&foo=baz") }) - it("handles objects", () => { - expect(client.query({foo: {bar: "baz"}})).toBe( - `?${encodeURIComponent("foo[bar]")}=baz`, - ) + it("objects are unnested by default", () => { + expect(client.query({foo: {bar: "baz"}})).toBe(`?bar=baz`) + }) + + it("handles exploded style deepObject", () => { + expect( + client.query( + {foo: {bar: "baz"}}, + {foo: {explode: true, style: "deepObject"}}, + ), + ).toBe(`?${encodeURIComponent("foo[bar]")}=baz`) }) it("handles arrays of objects with multiple properties", () => { expect( - client.query({ - foo: [ - {prop1: "one", prop2: "two"}, - {prop1: "foo", prop2: "bar"}, - ], - limit: 10, - undefined: undefined, - includeSomething: false, - }), + client.query( + { + foo: [ + {prop1: "one", prop2: "two"}, + {prop1: "foo", prop2: "bar"}, + ], + limit: 10, + undefined: undefined, + includeSomething: false, + }, + { + foo: {explode: true, style: "deepObject"}, + }, + ), ).toBe( - `?${encodeURIComponent("foo[prop1]")}=one&${encodeURIComponent( - "foo[prop2]", - )}=two&${encodeURIComponent("foo[prop1]")}=foo&${encodeURIComponent( - "foo[prop2]", + `?${encodeURIComponent("foo[0][prop1]")}=one&${encodeURIComponent( + "foo[0][prop2]", + )}=two&${encodeURIComponent("foo[1][prop1]")}=foo&${encodeURIComponent( + "foo[1][prop2]", )}=bar&limit=10&includeSomething=false`, ) }) diff --git a/packages/typescript-axios-runtime/src/main.ts b/packages/typescript-axios-runtime/src/main.ts index aba2ef26..47262e22 100644 --- a/packages/typescript-axios-runtime/src/main.ts +++ b/packages/typescript-axios-runtime/src/main.ts @@ -5,7 +5,6 @@ import axios, { type AxiosResponse, type RawAxiosRequestHeaders, } from "axios" -import qs from "qs" import { type Encoding, requestBodyToUrlSearchParams, @@ -63,18 +62,18 @@ export abstract class AbstractAxiosClient { }) } - protected _query(params: QueryParams): string { - const definedParams = Object.entries(params).filter( - ([, v]) => v !== undefined, - ) + protected _query( + params: QueryParams, + encodings?: Record, + ): string { + const urlSearchParams = requestBodyToUrlSearchParams(params, encodings) + const asString = urlSearchParams.toString() - if (!definedParams.length) { + if (!asString.length) { return "" } - return `?${qs.stringify(Object.fromEntries(definedParams), { - indices: false, - })}` + return `?${asString}` } /** diff --git a/packages/typescript-fetch-runtime/package.json b/packages/typescript-fetch-runtime/package.json index 04af8c22..4f3eb5d9 100644 --- a/packages/typescript-fetch-runtime/package.json +++ b/packages/typescript-fetch-runtime/package.json @@ -49,7 +49,6 @@ "test": "jest" }, "dependencies": { - "qs": "^6.14.0", "tslib": "^2.8.1" }, "peerDependencies": { @@ -66,7 +65,6 @@ }, "devDependencies": { "@jest/globals": "^30.2.0", - "@types/qs": "^6.14.0", "jest": "^30.2.0", "joi": "^18.0.1", "typescript": "^5.9.3", diff --git a/packages/typescript-fetch-runtime/src/main.spec.ts b/packages/typescript-fetch-runtime/src/main.spec.ts index aef9e242..55a4cb56 100644 --- a/packages/typescript-fetch-runtime/src/main.spec.ts +++ b/packages/typescript-fetch-runtime/src/main.spec.ts @@ -8,6 +8,7 @@ import { type HeadersInit, type QueryParams, } from "./main" +import type {Encoding} from "./request-bodies/url-search-params" class ConcreteFetchClient extends AbstractFetchClient { // biome-ignore lint/complexity/noUselessConstructor: make public @@ -15,8 +16,11 @@ class ConcreteFetchClient extends AbstractFetchClient { super(config) } - query(params: QueryParams) { - return this._query(params) + query( + params: QueryParams, + encodings: Record | undefined = undefined, + ): string { + return this._query(params, encodings) } headers( @@ -48,28 +52,40 @@ describe("typescript-fetch-runtime/main", () => { expect(client.query({foo: ["bar", "baz"]})).toBe("?foo=bar&foo=baz") }) - it("handles objects", () => { - expect(client.query({foo: {bar: "baz"}})).toBe( - `?${encodeURIComponent("foo[bar]")}=baz`, - ) + it("objects are unnested by default", () => { + expect(client.query({foo: {bar: "baz"}})).toBe(`?bar=baz`) + }) + + it("handles exploded style deepObject", () => { + expect( + client.query( + {foo: {bar: "baz"}}, + {foo: {explode: true, style: "deepObject"}}, + ), + ).toBe(`?${encodeURIComponent("foo[bar]")}=baz`) }) it("handles arrays of objects with multiple properties", () => { expect( - client.query({ - foo: [ - {prop1: "one", prop2: "two"}, - {prop1: "foo", prop2: "bar"}, - ], - limit: 10, - undefined: undefined, - includeSomething: false, - }), + client.query( + { + foo: [ + {prop1: "one", prop2: "two"}, + {prop1: "foo", prop2: "bar"}, + ], + limit: 10, + undefined: undefined, + includeSomething: false, + }, + { + foo: {explode: true, style: "deepObject"}, + }, + ), ).toBe( - `?${encodeURIComponent("foo[prop1]")}=one&${encodeURIComponent( - "foo[prop2]", - )}=two&${encodeURIComponent("foo[prop1]")}=foo&${encodeURIComponent( - "foo[prop2]", + `?${encodeURIComponent("foo[0][prop1]")}=one&${encodeURIComponent( + "foo[0][prop2]", + )}=two&${encodeURIComponent("foo[1][prop1]")}=foo&${encodeURIComponent( + "foo[1][prop2]", )}=bar&limit=10&includeSomething=false`, ) }) diff --git a/packages/typescript-fetch-runtime/src/main.ts b/packages/typescript-fetch-runtime/src/main.ts index e4feffe1..0ddf3dcc 100644 --- a/packages/typescript-fetch-runtime/src/main.ts +++ b/packages/typescript-fetch-runtime/src/main.ts @@ -1,4 +1,3 @@ -import qs from "qs" import { type Encoding, requestBodyToUrlSearchParams, @@ -67,18 +66,18 @@ export abstract class AbstractFetchClient { }) as unknown as R } - protected _query(params: QueryParams): string { - const definedParams = Object.entries(params).filter( - ([, v]) => v !== undefined, - ) + protected _query( + params: QueryParams, + encodings?: Record, + ): string { + const urlSearchParams = requestBodyToUrlSearchParams(params, encodings) + const asString = urlSearchParams.toString() - if (!definedParams.length) { + if (!asString.length) { return "" } - return `?${qs.stringify(Object.fromEntries(definedParams), { - indices: false, - })}` + return `?${asString}` } /** diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50d19680..b9bfed3b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -487,9 +487,6 @@ importers: packages/typescript-axios-runtime: dependencies: - qs: - specifier: ^6.14.0 - version: 6.14.0 tslib: specifier: ^2.8.1 version: 2.8.1 @@ -497,9 +494,6 @@ importers: '@jest/globals': specifier: ^30.2.0 version: 30.2.0 - '@types/qs': - specifier: ^6.14.0 - version: 6.14.0 axios: specifier: ^1.13.2 version: 1.13.2 @@ -549,9 +543,6 @@ importers: packages/typescript-fetch-runtime: dependencies: - qs: - specifier: ^6.14.0 - version: 6.14.0 tslib: specifier: ^2.8.1 version: 2.8.1 @@ -559,9 +550,6 @@ importers: '@jest/globals': specifier: ^30.2.0 version: 30.2.0 - '@types/qs': - specifier: ^6.14.0 - version: 6.14.0 jest: specifier: ^30.2.0 version: 30.2.0(@types/node@22.16.5) From 0c229c2f1c16e0e8c6e38aa0b3561aac90647a1b Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sun, 2 Nov 2025 16:16:39 +0000 Subject: [PATCH 2/3] chore: regenerate --- .../api.github.com.yaml/client.service.ts | 1415 +++-- .../client.service.ts | 117 +- .../client.service.ts | 51 +- .../generated/okta.idp.yaml/client.service.ts | 23 +- .../okta.oauth.yaml/client.service.ts | 41 +- .../petstore-expanded.yaml/client.service.ts | 28 +- .../generated/stripe.yaml/client.service.ts | 5021 +++++++++++++---- .../todo-lists.yaml/client.service.ts | 37 +- .../generated/api.github.com.yaml/client.ts | 1183 +++- .../client.ts | 102 +- .../azure-resource-manager.tsp/client.ts | 36 +- .../src/generated/okta.idp.yaml/client.ts | 8 +- .../src/generated/okta.oauth.yaml/client.ts | 22 +- .../petstore-expanded.yaml/client.ts | 13 +- .../src/generated/stripe.yaml/client.ts | 5003 ++++++++++++---- .../src/generated/todo-lists.yaml/client.ts | 22 +- .../generated/api.github.com.yaml/client.ts | 1183 +++- .../client.ts | 102 +- .../azure-resource-manager.tsp/client.ts | 36 +- .../src/generated/okta.idp.yaml/client.ts | 8 +- .../src/generated/okta.oauth.yaml/client.ts | 22 +- .../petstore-expanded.yaml/client.ts | 13 +- .../src/generated/stripe.yaml/client.ts | 5003 ++++++++++++---- .../src/generated/todo-lists.yaml/client.ts | 22 +- 24 files changed, 14812 insertions(+), 4699 deletions(-) diff --git a/integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts b/integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts index 05c6533a..79839143 100644 --- a/integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts +++ b/integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts @@ -431,6 +431,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -452,7 +461,11 @@ export class GitHubV3RestApiService { ) } - private _queryParams(queryParams: QueryParams): HttpParams { + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, + ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if ( typeof value === "string" || @@ -520,26 +533,38 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ghsa_id: p["ghsaId"], - type: p["type"], - cve_id: p["cveId"], - ecosystem: p["ecosystem"], - severity: p["severity"], - cwes: p["cwes"], - is_withdrawn: p["isWithdrawn"], - affects: p["affects"], - published: p["published"], - updated: p["updated"], - modified: p["modified"], - epss_percentage: p["epssPercentage"], - epss_percentile: p["epssPercentile"], - before: p["before"], - after: p["after"], - direction: p["direction"], - per_page: p["perPage"], - sort: p["sort"], - }) + const params = this._query( + { + ghsa_id: p["ghsaId"], + type: p["type"], + cve_id: p["cveId"], + ecosystem: p["ecosystem"], + severity: p["severity"], + cwes: p["cwes"], + is_withdrawn: p["isWithdrawn"], + affects: p["affects"], + published: p["published"], + updated: p["updated"], + modified: p["modified"], + epss_percentage: p["epssPercentage"], + epss_percentile: p["epssPercentile"], + before: p["before"], + after: p["after"], + direction: p["direction"], + per_page: p["perPage"], + sort: p["sort"], + }, + { + cwes: { + style: "form", + explode: true, + }, + affects: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -665,7 +690,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], cursor: p["cursor"], }) @@ -733,7 +758,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -758,7 +786,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], since: p["since"], @@ -1093,7 +1121,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -1134,7 +1165,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -1177,7 +1211,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -1292,7 +1329,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], before: p["before"], after: p["after"], @@ -1713,7 +1750,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], before: p["before"], after: p["after"], @@ -1758,22 +1795,30 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - per_page: p["perPage"], - }) + const params = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + per_page: p["perPage"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1813,7 +1858,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], secret_type: p["secretType"], resolution: p["resolution"], @@ -1855,7 +1900,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -1894,7 +1942,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], per_page: p["perPage"], page: p["page"], @@ -1960,7 +2008,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], per_page: p["perPage"], page: p["page"], @@ -1988,7 +2036,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], per_page: p["perPage"], page: p["page"], @@ -2105,7 +2153,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -2241,7 +2292,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -2267,7 +2321,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -2445,7 +2502,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -2505,7 +2565,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ filter: p["filter"], state: p["state"], labels: p["labels"], @@ -2540,7 +2600,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ featured: p["featured"], per_page: p["perPage"], page: p["page"], @@ -2664,7 +2724,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -2692,7 +2755,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sort: p["sort"], direction: p["direction"], per_page: p["perPage"], @@ -2742,7 +2805,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -2768,7 +2834,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sort: p["sort"], direction: p["direction"], per_page: p["perPage"], @@ -2816,7 +2882,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -2848,7 +2917,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ all: p["all"], participating: p["participating"], since: p["since"], @@ -3048,7 +3117,9 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({s: p["s"]}) + const params = this._query({ + s: p["s"], + }) return this.httpClient.request( "GET", @@ -3070,7 +3141,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], per_page: p["perPage"], }) @@ -3098,7 +3169,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -3193,7 +3267,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ year: p["year"], month: p["month"], day: p["day"], @@ -3355,7 +3429,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -3382,7 +3459,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -3709,7 +3789,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -3883,7 +3966,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], visible_to_repository: p["visibleToRepository"], @@ -4018,7 +4101,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -4046,7 +4132,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -4138,7 +4227,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -4230,7 +4322,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ name: p["name"], per_page: p["perPage"], page: p["page"], @@ -4542,7 +4634,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -4659,7 +4754,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -4758,7 +4856,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -4880,7 +4981,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -5015,7 +5119,7 @@ export class GitHubV3RestApiService { Accept: "application/json", "Content-Type": "application/json", }) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], before: p["before"], after: p["after"], @@ -5140,7 +5244,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], before: p["before"], after: p["after"], @@ -5168,7 +5272,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -5264,7 +5371,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ page: p["page"], per_page: p["perPage"], direction: p["direction"], @@ -5448,7 +5555,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ tool_name: p["toolName"], tool_guid: p["toolGuid"], before: p["before"], @@ -5486,7 +5593,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ target_type: p["targetType"], per_page: p["perPage"], before: p["before"], @@ -5961,7 +6068,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], before: p["before"], after: p["after"], @@ -5998,7 +6105,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -6128,7 +6238,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -6253,7 +6366,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -6389,7 +6505,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -6554,7 +6673,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], until: p["until"], page: p["page"], @@ -6599,22 +6718,30 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - per_page: p["perPage"], - }) + const params = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + per_page: p["perPage"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6640,7 +6767,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -6758,7 +6888,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -6874,7 +7007,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -6898,7 +7034,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -6922,7 +7061,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -7118,7 +7260,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], cursor: p["cursor"], }) @@ -7237,15 +7379,23 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - api_route_substring: p["apiRouteSubstring"], - }) + const params = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + api_route_substring: p["apiRouteSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7281,15 +7431,23 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - subject_name_substring: p["subjectNameSubstring"], - }) + const params = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + subject_name_substring: p["subjectNameSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7312,7 +7470,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ min_timestamp: p["minTimestamp"], max_timestamp: p["maxTimestamp"], }) @@ -7339,7 +7497,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ min_timestamp: p["minTimestamp"], max_timestamp: p["maxTimestamp"], }) @@ -7374,7 +7532,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ min_timestamp: p["minTimestamp"], max_timestamp: p["maxTimestamp"], }) @@ -7402,7 +7560,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ min_timestamp: p["minTimestamp"], max_timestamp: p["maxTimestamp"], timestamp_increment: p["timestampIncrement"], @@ -7431,7 +7589,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ min_timestamp: p["minTimestamp"], max_timestamp: p["maxTimestamp"], timestamp_increment: p["timestampIncrement"], @@ -7468,7 +7626,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ min_timestamp: p["minTimestamp"], max_timestamp: p["maxTimestamp"], timestamp_increment: p["timestampIncrement"], @@ -7509,15 +7667,23 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - actor_name_substring: p["actorNameSubstring"], - }) + const params = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + actor_name_substring: p["actorNameSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7562,7 +7728,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -7655,7 +7824,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], role: p["role"], @@ -7746,7 +7915,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -7884,7 +8056,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ filter: p["filter"], state: p["state"], labels: p["labels"], @@ -7920,7 +8092,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ filter: p["filter"], role: p["role"], per_page: p["perPage"], @@ -8000,7 +8172,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -8181,11 +8356,19 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - per_page: p["perPage"], - page: p["page"], - exclude: p["exclude"], - }) + const params = this._query( + { + per_page: p["perPage"], + page: p["page"], + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8246,7 +8429,17 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({exclude: p["exclude"]}) + const params = this._query( + { + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8338,7 +8531,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -8532,7 +8728,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -8559,7 +8758,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -8583,7 +8785,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ filter: p["filter"], per_page: p["perPage"], page: p["page"], @@ -8677,7 +8879,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ package_type: p["packageType"], visibility: p["visibility"], page: p["page"], @@ -8776,7 +8978,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({token: p["token"]}) + const params = this._query({ + token: p["token"], + }) return this.httpClient.request( "POST", @@ -8813,7 +9017,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ page: p["page"], per_page: p["perPage"], state: p["state"], @@ -8950,18 +9154,30 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - per_page: p["perPage"], - page: p["page"], - sort: p["sort"], - direction: p["direction"], - owner: p["owner"], - repository: p["repository"], - permission: p["permission"], - last_used_before: p["lastUsedBefore"], - last_used_after: p["lastUsedAfter"], - token_id: p["tokenId"], - }) + const params = this._query( + { + per_page: p["perPage"], + page: p["page"], + sort: p["sort"], + direction: p["direction"], + owner: p["owner"], + repository: p["repository"], + permission: p["permission"], + last_used_before: p["lastUsedBefore"], + last_used_after: p["lastUsedAfter"], + token_id: p["tokenId"], + }, + { + owner: { + style: "form", + explode: true, + }, + token_id: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9057,7 +9273,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -9093,18 +9312,30 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - per_page: p["perPage"], - page: p["page"], - sort: p["sort"], - direction: p["direction"], - owner: p["owner"], - repository: p["repository"], - permission: p["permission"], - last_used_before: p["lastUsedBefore"], - last_used_after: p["lastUsedAfter"], - token_id: p["tokenId"], - }) + const params = this._query( + { + per_page: p["perPage"], + page: p["page"], + sort: p["sort"], + direction: p["direction"], + owner: p["owner"], + repository: p["repository"], + permission: p["permission"], + last_used_before: p["lastUsedBefore"], + last_used_after: p["lastUsedAfter"], + token_id: p["tokenId"], + }, + { + owner: { + style: "form", + explode: true, + }, + token_id: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9198,7 +9429,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -9227,7 +9461,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -9424,7 +9661,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], per_page: p["perPage"], page: p["page"], @@ -9612,7 +9849,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], repository_query: p["repositoryQuery"], @@ -9669,7 +9906,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -9769,7 +10009,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ type: p["type"], sort: p["sort"], direction: p["direction"], @@ -9867,7 +10107,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], targets: p["targets"], @@ -9940,7 +10180,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ ref: p["ref"], repository_name: p["repositoryName"], time_period: p["timePeriod"], @@ -10077,7 +10317,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -10142,7 +10385,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], secret_type: p["secretType"], resolution: p["resolution"], @@ -10185,7 +10428,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ direction: p["direction"], sort: p["sort"], before: p["before"], @@ -10330,7 +10573,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -10481,7 +10727,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], until: p["until"], page: p["page"], @@ -10511,7 +10757,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -10654,7 +10903,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ direction: p["direction"], per_page: p["perPage"], page: p["page"], @@ -10787,7 +11036,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ direction: p["direction"], per_page: p["perPage"], page: p["page"], @@ -10931,7 +11180,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -11032,7 +11281,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -11121,7 +11370,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -11146,7 +11398,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ role: p["role"], per_page: p["perPage"], page: p["page"], @@ -11252,7 +11504,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -11354,7 +11609,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -11451,7 +11709,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -11725,7 +11986,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ archived_state: p["archivedState"], per_page: p["perPage"], page: p["page"], @@ -11931,7 +12192,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ affiliation: p["affiliation"], per_page: p["perPage"], page: p["page"], @@ -12048,7 +12309,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -12260,7 +12524,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], name: p["name"], @@ -12381,7 +12645,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], ref: p["ref"], @@ -12411,7 +12675,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({key: p["key"], ref: p["ref"]}) + const params = this._query({ + key: p["key"], + ref: p["ref"], + }) return this.httpClient.request( "DELETE", @@ -12585,7 +12852,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -12613,7 +12883,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -12829,7 +13102,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ name: p["name"], per_page: p["perPage"], page: p["page"], @@ -13179,7 +13452,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ actor: p["actor"], branch: p["branch"], event: p["event"], @@ -13213,7 +13486,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ exclude_pull_requests: p["excludePullRequests"], }) @@ -13310,7 +13583,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], name: p["name"], @@ -13339,7 +13612,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ exclude_pull_requests: p["excludePullRequests"], }) @@ -13372,7 +13645,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -13495,7 +13771,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ filter: p["filter"], per_page: p["perPage"], page: p["page"], @@ -13704,7 +13980,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -13824,7 +14103,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -13949,7 +14231,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -14090,7 +14375,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ actor: p["actor"], branch: p["branch"], event: p["event"], @@ -14167,7 +14452,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ direction: p["direction"], per_page: p["perPage"], before: p["before"], @@ -14201,7 +14486,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -14305,7 +14593,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], before: p["before"], after: p["after"], @@ -14491,7 +14779,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ protected: p["protected"], per_page: p["perPage"], page: p["page"], @@ -15658,7 +15946,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -15797,7 +16088,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ check_name: p["checkName"], status: p["status"], filter: p["filter"], @@ -15867,7 +16158,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ tool_name: p["toolName"], tool_guid: p["toolGuid"], page: p["page"], @@ -16086,7 +16377,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ page: p["page"], per_page: p["perPage"], ref: p["ref"], @@ -16130,7 +16421,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ tool_name: p["toolName"], tool_guid: p["toolGuid"], page: p["page"], @@ -16205,7 +16496,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({confirm_delete: p["confirmDelete"]}) + const params = this._query({ + confirm_delete: p["confirmDelete"], + }) return this.httpClient.request( "DELETE", @@ -16570,7 +16863,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ref: p["ref"]}) + const params = this._query({ + ref: p["ref"], + }) return this.httpClient.request( "GET", @@ -16602,7 +16897,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -16691,7 +16989,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -16725,7 +17026,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ location: p["location"], client_ip: p["clientIp"], ref: p["ref"], @@ -16763,7 +17064,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ref: p["ref"], client_ip: p["clientIp"]}) + const params = this._query({ + ref: p["ref"], + client_ip: p["clientIp"], + }) return this.httpClient.request( "GET", @@ -16798,7 +17102,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ ref: p["ref"], devcontainer_path: p["devcontainerPath"], }) @@ -16829,7 +17133,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -16957,7 +17264,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ affiliation: p["affiliation"], permission: p["permission"], per_page: p["perPage"], @@ -17089,7 +17396,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -17202,7 +17512,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -17302,7 +17612,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sha: p["sha"], path: p["path"], author: p["author"], @@ -17359,7 +17669,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -17421,7 +17734,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -17456,7 +17772,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -17489,7 +17808,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ check_name: p["checkName"], status: p["status"], filter: p["filter"], @@ -17527,7 +17846,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ app_id: p["appId"], check_name: p["checkName"], per_page: p["perPage"], @@ -17559,7 +17878,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -17586,7 +17908,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -17639,7 +17964,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -17673,7 +18001,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ref: p["ref"]}) + const params = this._query({ + ref: p["ref"], + }) return this.httpClient.request( "GET", @@ -17799,7 +18129,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ anon: p["anon"], per_page: p["perPage"], page: p["page"], @@ -17846,24 +18176,32 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - manifest: p["manifest"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - page: p["page"], - per_page: p["perPage"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - }) + const params = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + manifest: p["manifest"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + page: p["page"], + per_page: p["perPage"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -17959,7 +18297,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -18079,7 +18420,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({name: p["name"]}) + const params = this._query({ + name: p["name"], + }) return this.httpClient.request( "GET", @@ -18162,7 +18505,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sha: p["sha"], ref: p["ref"], task: p["task"], @@ -18287,7 +18630,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -18417,7 +18763,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -18525,7 +18874,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -18711,7 +19063,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -18783,7 +19138,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -18908,7 +19266,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -19033,7 +19394,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -19064,7 +19428,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sort: p["sort"], per_page: p["perPage"], page: p["page"], @@ -19501,7 +19865,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({recursive: p["recursive"]}) + const params = this._query({ + recursive: p["recursive"], + }) return this.httpClient.request( "GET", @@ -19527,7 +19893,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -19730,7 +20099,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], cursor: p["cursor"], }) @@ -19968,7 +20337,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({since: p["since"]}) + const params = this._query({ + since: p["since"], + }) return this.httpClient.request( "GET", @@ -20172,7 +20543,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -20265,7 +20639,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ milestone: p["milestone"], state: p["state"], assignee: p["assignee"], @@ -20359,7 +20733,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sort: p["sort"], direction: p["direction"], since: p["since"], @@ -20475,7 +20849,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -20566,7 +20940,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -20791,7 +21168,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], per_page: p["perPage"], page: p["page"], @@ -20856,7 +21233,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -20885,7 +21265,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -21130,7 +21513,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -21255,7 +21638,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -21358,7 +21744,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -21382,7 +21771,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -21480,7 +21872,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -21629,7 +22024,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ref: p["ref"]}) + const params = this._query({ + ref: p["ref"], + }) return this.httpClient.request( "GET", @@ -21722,7 +22119,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], sort: p["sort"], direction: p["direction"], @@ -21864,7 +22261,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -21892,7 +22292,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ all: p["all"], participating: p["participating"], since: p["since"], @@ -22075,7 +22475,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -22339,7 +22742,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], per_page: p["perPage"], page: p["page"], @@ -22468,7 +22871,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], head: p["head"], base: p["base"], @@ -22540,7 +22943,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sort: p["sort"], direction: p["direction"], since: p["since"], @@ -22658,7 +23061,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -22869,7 +23272,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sort: p["sort"], direction: p["direction"], since: p["since"], @@ -22973,7 +23376,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -23006,7 +23412,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -23188,7 +23597,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -23341,7 +23753,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -23473,7 +23888,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ref: p["ref"]}) + const params = this._query({ + ref: p["ref"], + }) return this.httpClient.request( "GET", @@ -23499,7 +23916,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ref: p["ref"]}) + const params = this._query({ + ref: p["ref"], + }) return this.httpClient.request( "GET", @@ -23525,7 +23944,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -23819,7 +24241,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -23854,7 +24279,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({name: p["name"], label: p["label"]}) + const params = this._query({ + name: p["name"], + label: p["label"], + }) return this.httpClient.request( "POST", @@ -23890,7 +24318,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -23979,7 +24407,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -24008,7 +24439,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], includes_parents: p["includesParents"], @@ -24083,7 +24514,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ ref: p["ref"], time_period: p["timePeriod"], actor_name: p["actorName"], @@ -24141,7 +24572,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({includes_parents: p["includesParents"]}) + const params = this._query({ + includes_parents: p["includesParents"], + }) return this.httpClient.request( "GET", @@ -24231,7 +24664,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -24298,7 +24734,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], secret_type: p["secretType"], resolution: p["resolution"], @@ -24344,7 +24780,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({hide_secret: p["hideSecret"]}) + const params = this._query({ + hide_secret: p["hideSecret"], + }) return this.httpClient.request( "GET", @@ -24416,7 +24854,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -24509,7 +24950,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ direction: p["direction"], sort: p["sort"], before: p["before"], @@ -24711,7 +25152,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -24882,7 +25326,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -24974,7 +25421,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -25096,7 +25546,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -25121,7 +25574,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({page: p["page"], per_page: p["perPage"]}) + const params = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this.httpClient.request( "GET", @@ -25175,7 +25631,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per: p["per"]}) + const params = this._query({ + per: p["per"], + }) return this.httpClient.request( "GET", @@ -25243,7 +25701,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per: p["per"]}) + const params = this._query({ + per: p["per"], + }) return this.httpClient.request( "GET", @@ -25404,7 +25864,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({since: p["since"]}) + const params = this._query({ + since: p["since"], + }) return this.httpClient.request( "GET", @@ -25441,7 +25903,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ q: p["q"], sort: p["sort"], order: p["order"], @@ -25477,7 +25939,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ q: p["q"], sort: p["sort"], order: p["order"], @@ -25533,7 +25995,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ q: p["q"], sort: p["sort"], order: p["order"], @@ -25574,7 +26036,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ repository_id: p["repositoryId"], q: p["q"], sort: p["sort"], @@ -25622,7 +26084,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ q: p["q"], sort: p["sort"], order: p["order"], @@ -25652,7 +26114,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ q: p["q"], per_page: p["perPage"], page: p["page"], @@ -25692,7 +26154,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ q: p["q"], sort: p["sort"], order: p["order"], @@ -25801,7 +26263,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ direction: p["direction"], per_page: p["perPage"], page: p["page"], @@ -25926,7 +26388,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ direction: p["direction"], per_page: p["perPage"], page: p["page"], @@ -26065,7 +26527,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -26141,7 +26603,7 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ content: p["content"], per_page: p["perPage"], page: p["page"], @@ -26206,7 +26668,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -26231,7 +26696,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ role: p["role"], per_page: p["perPage"], page: p["page"], @@ -26401,7 +26866,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -26503,7 +26971,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -26605,7 +27076,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -26687,7 +27161,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -26786,7 +27263,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], page: p["page"], repository_id: p["repositoryId"], @@ -26883,7 +27360,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -27383,7 +27863,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -27478,7 +27961,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -27502,7 +27988,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -27597,7 +28086,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -27703,7 +28195,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -27733,7 +28228,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -27881,7 +28379,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ filter: p["filter"], state: p["state"], labels: p["labels"], @@ -27915,7 +28413,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28017,7 +28518,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28040,7 +28544,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28069,7 +28576,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], per_page: p["perPage"], page: p["page"], @@ -28148,7 +28655,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28212,7 +28722,17 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({exclude: p["exclude"]}) + const params = this._query( + { + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -28306,7 +28826,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28331,7 +28854,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28363,7 +28889,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ package_type: p["packageType"], visibility: p["visibility"], page: p["page"], @@ -28459,7 +28985,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({token: p["token"]}) + const params = this._query({ + token: p["token"], + }) return this.httpClient.request( "POST", @@ -28495,7 +29023,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ page: p["page"], per_page: p["perPage"], state: p["state"], @@ -28648,7 +29176,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28694,7 +29225,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ visibility: p["visibility"], affiliation: p["affiliation"], type: p["type"], @@ -28794,7 +29325,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28867,7 +29401,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -28954,7 +29491,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29061,7 +29601,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sort: p["sort"], direction: p["direction"], per_page: p["perPage"], @@ -29162,7 +29702,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29186,7 +29729,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29228,7 +29774,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], per_page: p["perPage"], }) @@ -29309,7 +29855,7 @@ export class GitHubV3RestApiService { Accept: "application/json", "Content-Type": "application/json", }) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], before: p["before"], after: p["after"], @@ -29438,7 +29984,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ per_page: p["perPage"], before: p["before"], after: p["after"], @@ -29487,7 +30033,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29510,7 +30059,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29532,7 +30084,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29554,7 +30109,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29576,7 +30134,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29623,7 +30184,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ since: p["since"], per_page: p["perPage"], page: p["page"], @@ -29649,7 +30210,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29679,7 +30243,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ subject_type: p["subjectType"], subject_id: p["subjectId"], }) @@ -29722,7 +30286,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29745,7 +30312,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -29780,7 +30350,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ package_type: p["packageType"], visibility: p["visibility"], page: p["page"], @@ -29879,7 +30449,9 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({token: p["token"]}) + const params = this._query({ + token: p["token"], + }) return this.httpClient.request( "POST", @@ -30032,7 +30604,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ state: p["state"], per_page: p["perPage"], page: p["page"], @@ -30058,7 +30630,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -30080,7 +30655,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -30111,7 +30689,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ type: p["type"], sort: p["sort"], direction: p["direction"], @@ -30209,7 +30787,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ year: p["year"], month: p["month"], day: p["day"], @@ -30236,7 +30814,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -30258,7 +30839,10 @@ export class GitHubV3RestApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", @@ -30283,7 +30867,7 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ sort: p["sort"], direction: p["direction"], per_page: p["perPage"], @@ -30311,7 +30895,10 @@ export class GitHubV3RestApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({per_page: p["perPage"], page: p["page"]}) + const params = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this.httpClient.request( "GET", diff --git a/integration-tests/typescript-angular/src/generated/azure-core-data-plane-service.tsp/client.service.ts b/integration-tests/typescript-angular/src/generated/azure-core-data-plane-service.tsp/client.service.ts index 3bafb85c..0a9dff66 100644 --- a/integration-tests/typescript-angular/src/generated/azure-core-data-plane-service.tsp/client.service.ts +++ b/integration-tests/typescript-angular/src/generated/azure-core-data-plane-service.tsp/client.service.ts @@ -88,6 +88,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -109,7 +118,11 @@ export class ContosoWidgetManagerService { ) } - private _queryParams(queryParams: QueryParams): HttpParams { + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, + ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if ( typeof value === "string" || @@ -142,7 +155,9 @@ export class ContosoWidgetManagerService { Accept: "application/json", "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -180,7 +195,9 @@ export class ContosoWidgetManagerService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -225,7 +242,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( @@ -264,7 +283,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -309,7 +330,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "DELETE", @@ -341,13 +364,21 @@ export class ContosoWidgetManagerService { Accept: "application/json", "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({ - "api-version": p["apiVersion"], - top: p["top"], - skip: p["skip"], - maxpagesize: p["maxpagesize"], - select: p["select"], - }) + const params = this._query( + { + "api-version": p["apiVersion"], + top: p["top"], + skip: p["skip"], + maxpagesize: p["maxpagesize"], + select: p["select"], + }, + { + select: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -384,7 +415,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -428,7 +461,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( @@ -461,7 +496,9 @@ export class ContosoWidgetManagerService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -508,7 +545,9 @@ export class ContosoWidgetManagerService { "Repeatability-First-Sent": p["repeatabilityFirstSent"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( @@ -542,7 +581,9 @@ export class ContosoWidgetManagerService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -586,7 +627,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( @@ -617,7 +660,9 @@ export class ContosoWidgetManagerService { Accept: "application/json", "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -655,7 +700,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -698,7 +745,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "DELETE", @@ -738,7 +787,9 @@ export class ContosoWidgetManagerService { "Repeatability-First-Sent": p["repeatabilityFirstSent"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( @@ -771,7 +822,9 @@ export class ContosoWidgetManagerService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -816,7 +869,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( @@ -855,7 +910,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -900,7 +957,9 @@ export class ContosoWidgetManagerService { "If-Modified-Since": p["ifModifiedSince"], "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "DELETE", @@ -928,7 +987,9 @@ export class ContosoWidgetManagerService { Accept: "application/json", "x-ms-client-request-id": p["xMsClientRequestId"], }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", diff --git a/integration-tests/typescript-angular/src/generated/azure-resource-manager.tsp/client.service.ts b/integration-tests/typescript-angular/src/generated/azure-resource-manager.tsp/client.service.ts index 294251c1..5cfaafd7 100644 --- a/integration-tests/typescript-angular/src/generated/azure-resource-manager.tsp/client.service.ts +++ b/integration-tests/typescript-angular/src/generated/azure-resource-manager.tsp/client.service.ts @@ -82,6 +82,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -103,7 +112,11 @@ export class ContosoProviderHubClientService { ) } - private _queryParams(queryParams: QueryParams): HttpParams { + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, + ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if ( typeof value === "string" || @@ -130,7 +143,9 @@ export class ContosoProviderHubClientService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -158,7 +173,9 @@ export class ContosoProviderHubClientService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -191,7 +208,9 @@ export class ContosoProviderHubClientService { Accept: "application/json", "Content-Type": "application/json", }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( @@ -225,7 +244,9 @@ export class ContosoProviderHubClientService { Accept: "application/json", "Content-Type": "application/json", }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( @@ -256,7 +277,9 @@ export class ContosoProviderHubClientService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "DELETE", @@ -285,7 +308,9 @@ export class ContosoProviderHubClientService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "HEAD", @@ -312,7 +337,9 @@ export class ContosoProviderHubClientService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -338,7 +365,9 @@ export class ContosoProviderHubClientService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) return this.httpClient.request( "GET", @@ -370,7 +399,9 @@ export class ContosoProviderHubClientService { Accept: "application/json", "Content-Type": "application/json", }) - const params = this._queryParams({"api-version": p["apiVersion"]}) + const params = this._query({ + "api-version": p["apiVersion"], + }) const body = p["requestBody"] return this.httpClient.request( diff --git a/integration-tests/typescript-angular/src/generated/okta.idp.yaml/client.service.ts b/integration-tests/typescript-angular/src/generated/okta.idp.yaml/client.service.ts index 15caabe3..5b099f36 100644 --- a/integration-tests/typescript-angular/src/generated/okta.idp.yaml/client.service.ts +++ b/integration-tests/typescript-angular/src/generated/okta.idp.yaml/client.service.ts @@ -97,6 +97,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -118,7 +127,11 @@ export class MyAccountManagementService { ) } - private _queryParams(queryParams: QueryParams): HttpParams { + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, + ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if ( typeof value === "string" || @@ -273,7 +286,9 @@ export class MyAccountManagementService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query({ + expand: p["expand"], + }) return this.httpClient.request( "GET", @@ -298,7 +313,9 @@ export class MyAccountManagementService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query({ + expand: p["expand"], + }) return this.httpClient.request( "GET", diff --git a/integration-tests/typescript-angular/src/generated/okta.oauth.yaml/client.service.ts b/integration-tests/typescript-angular/src/generated/okta.oauth.yaml/client.service.ts index e71a29e1..bd1ba3ab 100644 --- a/integration-tests/typescript-angular/src/generated/okta.oauth.yaml/client.service.ts +++ b/integration-tests/typescript-angular/src/generated/okta.oauth.yaml/client.service.ts @@ -104,6 +104,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -125,7 +134,11 @@ export class OktaOpenIdConnectOAuth20Service { ) } - private _queryParams(queryParams: QueryParams): HttpParams { + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, + ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if ( typeof value === "string" || @@ -150,7 +163,9 @@ export class OktaOpenIdConnectOAuth20Service { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({client_id: p["clientId"]}) + const params = this._query({ + client_id: p["clientId"], + }) return this.httpClient.request( "GET", @@ -189,7 +204,7 @@ export class OktaOpenIdConnectOAuth20Service { (HttpResponse & {status: 429}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ acr_values: p["acrValues"], client_id: p["clientId"], code_challenge: p["codeChallenge"], @@ -299,7 +314,7 @@ export class OktaOpenIdConnectOAuth20Service { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ after: p["after"], limit: p["limit"], q: p["q"], @@ -521,7 +536,9 @@ export class OktaOpenIdConnectOAuth20Service { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({client_id: p["clientId"]}) + const params = this._query({ + client_id: p["clientId"], + }) return this.httpClient.request( "GET", @@ -545,7 +562,7 @@ export class OktaOpenIdConnectOAuth20Service { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ id_token_hint: p["idTokenHint"], post_logout_redirect_uri: p["postLogoutRedirectUri"], state: p["state"], @@ -762,7 +779,9 @@ export class OktaOpenIdConnectOAuth20Service { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({client_id: p["clientId"]}) + const params = this._query({ + client_id: p["clientId"], + }) return this.httpClient.request( "GET", @@ -787,7 +806,9 @@ export class OktaOpenIdConnectOAuth20Service { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({client_id: p["clientId"]}) + const params = this._query({ + client_id: p["clientId"], + }) return this.httpClient.request( "GET", @@ -828,7 +849,7 @@ export class OktaOpenIdConnectOAuth20Service { (HttpResponse & {status: 429}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ acr_values: p["acrValues"], client_id: p["clientId"], code_challenge: p["codeChallenge"], @@ -1017,7 +1038,7 @@ export class OktaOpenIdConnectOAuth20Service { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ + const params = this._query({ id_token_hint: p["idTokenHint"], post_logout_redirect_uri: p["postLogoutRedirectUri"], state: p["state"], diff --git a/integration-tests/typescript-angular/src/generated/petstore-expanded.yaml/client.service.ts b/integration-tests/typescript-angular/src/generated/petstore-expanded.yaml/client.service.ts index 59c8cd0e..c8a6fe05 100644 --- a/integration-tests/typescript-angular/src/generated/petstore-expanded.yaml/client.service.ts +++ b/integration-tests/typescript-angular/src/generated/petstore-expanded.yaml/client.service.ts @@ -73,6 +73,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -94,7 +103,11 @@ export class SwaggerPetstoreService { ) } - private _queryParams(queryParams: QueryParams): HttpParams { + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, + ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if ( typeof value === "string" || @@ -119,7 +132,18 @@ export class SwaggerPetstoreService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({tags: p["tags"], limit: p["limit"]}) + const params = this._query( + { + tags: p["tags"], + limit: p["limit"], + }, + { + tags: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request("GET", this.config.basePath + `/pets`, { params, diff --git a/integration-tests/typescript-angular/src/generated/stripe.yaml/client.service.ts b/integration-tests/typescript-angular/src/generated/stripe.yaml/client.service.ts index 3374c21a..6b1cecd0 100644 --- a/integration-tests/typescript-angular/src/generated/stripe.yaml/client.service.ts +++ b/integration-tests/typescript-angular/src/generated/stripe.yaml/client.service.ts @@ -268,6 +268,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -289,7 +298,11 @@ export class StripeApiService { ) } - private _queryParams(queryParams: QueryParams): HttpParams { + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, + ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if ( typeof value === "string" || @@ -314,7 +327,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -398,13 +421,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -472,7 +507,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -566,7 +611,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -621,7 +676,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -647,7 +712,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -706,13 +781,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - object: p["object"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + object: p["object"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -784,7 +867,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -872,13 +965,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - relationship: p["relationship"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + relationship: p["relationship"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + relationship: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -950,7 +1055,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1016,13 +1131,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - relationship: p["relationship"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + relationship: p["relationship"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + relationship: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1094,7 +1221,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1176,13 +1313,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - domain_name: p["domainName"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + domain_name: p["domainName"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1250,7 +1395,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1293,14 +1448,26 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1326,7 +1493,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1376,7 +1553,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1431,12 +1618,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1494,13 +1689,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - scope: p["scope"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + scope: p["scope"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + scope: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1571,11 +1778,23 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - name: p["name"], - scope: p["scope"], - }) + const params = this._query( + { + expand: p["expand"], + name: p["name"], + scope: p["scope"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + scope: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1598,7 +1817,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1644,17 +1873,29 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payout: p["payout"], - source: p["source"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const params = this._query( + { + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payout: p["payout"], + source: p["source"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1679,7 +1920,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1725,17 +1976,29 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payout: p["payout"], - source: p["source"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const params = this._query( + { + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payout: p["payout"], + source: p["source"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1760,7 +2023,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1796,14 +2069,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - alert_type: p["alertType"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - meter: p["meter"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + alert_type: p["alertType"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + meter: p["meter"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1849,7 +2130,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1950,11 +2241,23 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - customer: p["customer"], - expand: p["expand"], - filter: p["filter"], - }) + const params = this._query( + { + customer: p["customer"], + expand: p["expand"], + filter: p["filter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + filter: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -1988,14 +2291,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - credit_grant: p["creditGrant"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + credit_grant: p["creditGrant"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2020,7 +2331,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2056,13 +2377,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2108,7 +2437,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2251,13 +2590,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2303,7 +2650,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2384,16 +2741,24 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - customer: p["customer"], - end_time: p["endTime"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - start_time: p["startTime"], - starting_after: p["startingAfter"], - value_grouping_window: p["valueGroupingWindow"], - }) + const params = this._query( + { + customer: p["customer"], + end_time: p["endTime"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + start_time: p["startTime"], + starting_after: p["startingAfter"], + value_grouping_window: p["valueGroupingWindow"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2451,14 +2816,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - active: p["active"], - ending_before: p["endingBefore"], - expand: p["expand"], - is_default: p["isDefault"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + active: p["active"], + ending_before: p["endingBefore"], + expand: p["expand"], + is_default: p["isDefault"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2504,7 +2877,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2594,16 +2977,28 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - transfer_group: p["transferGroup"], - }) + const params = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + transfer_group: p["transferGroup"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2658,12 +3053,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const params = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2688,7 +3091,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2757,7 +3170,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2856,12 +3279,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2909,7 +3340,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -2984,19 +3425,35 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - customer: p["customer"], - customer_details: p["customerDetails"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - payment_link: p["paymentLink"], - starting_after: p["startingAfter"], - status: p["status"], - subscription: p["subscription"], - }) + const params = this._query( + { + created: p["created"], + customer: p["customer"], + customer_details: p["customerDetails"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + payment_link: p["paymentLink"], + starting_after: p["startingAfter"], + status: p["status"], + subscription: p["subscription"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + customer_details: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3042,7 +3499,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3119,12 +3586,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3158,12 +3633,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3209,7 +3692,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3287,12 +3780,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3317,7 +3818,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3351,12 +3862,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3381,7 +3900,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3406,7 +3935,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3441,12 +3980,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3471,7 +4018,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3513,13 +4070,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3587,7 +4156,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3653,15 +4232,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3748,22 +4339,46 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - amount: p["amount"], - credit_amount: p["creditAmount"], - effective_at: p["effectiveAt"], - email_type: p["emailType"], - expand: p["expand"], - invoice: p["invoice"], - lines: p["lines"], - memo: p["memo"], - metadata: p["metadata"], - out_of_band_amount: p["outOfBandAmount"], - reason: p["reason"], - refund_amount: p["refundAmount"], - refunds: p["refunds"], - shipping_cost: p["shippingCost"], - }) + const params = this._query( + { + amount: p["amount"], + credit_amount: p["creditAmount"], + effective_at: p["effectiveAt"], + email_type: p["emailType"], + expand: p["expand"], + invoice: p["invoice"], + lines: p["lines"], + memo: p["memo"], + metadata: p["metadata"], + out_of_band_amount: p["outOfBandAmount"], + reason: p["reason"], + refund_amount: p["refundAmount"], + refunds: p["refunds"], + shipping_cost: p["shippingCost"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lines: { + style: "deepObject", + explode: true, + }, + metadata: { + style: "deepObject", + explode: true, + }, + refunds: { + style: "deepObject", + explode: true, + }, + shipping_cost: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3837,25 +4452,49 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - amount: p["amount"], - credit_amount: p["creditAmount"], - effective_at: p["effectiveAt"], - email_type: p["emailType"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - lines: p["lines"], - memo: p["memo"], - metadata: p["metadata"], - out_of_band_amount: p["outOfBandAmount"], - reason: p["reason"], - refund_amount: p["refundAmount"], - refunds: p["refunds"], - shipping_cost: p["shippingCost"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + amount: p["amount"], + credit_amount: p["creditAmount"], + effective_at: p["effectiveAt"], + email_type: p["emailType"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + lines: p["lines"], + memo: p["memo"], + metadata: p["metadata"], + out_of_band_amount: p["outOfBandAmount"], + reason: p["reason"], + refund_amount: p["refundAmount"], + refunds: p["refunds"], + shipping_cost: p["shippingCost"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lines: { + style: "deepObject", + explode: true, + }, + metadata: { + style: "deepObject", + explode: true, + }, + refunds: { + style: "deepObject", + explode: true, + }, + shipping_cost: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3888,12 +4527,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -3918,7 +4565,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4027,15 +4684,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - email: p["email"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - test_clock: p["testClock"], - }) + const params = this._query( + { + created: p["created"], + email: p["email"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + test_clock: p["testClock"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4090,12 +4759,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const params = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4142,7 +4819,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4197,12 +4884,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4252,7 +4947,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4310,12 +5015,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4389,7 +5102,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4471,12 +5194,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4549,7 +5280,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4597,7 +5338,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4652,12 +5403,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4684,7 +5443,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4732,7 +5501,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4843,14 +5622,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - allow_redisplay: p["allowRedisplay"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const params = this._query( + { + allow_redisplay: p["allowRedisplay"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4876,7 +5663,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4911,13 +5708,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - object: p["object"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + object: p["object"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -4991,7 +5796,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5073,12 +5888,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5150,7 +5973,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5225,7 +6058,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5259,12 +6102,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5336,7 +6187,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5381,15 +6242,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5414,7 +6287,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5491,13 +6374,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5522,7 +6413,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5558,14 +6459,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - archived: p["archived"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_key: p["lookupKey"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + archived: p["archived"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_key: p["lookupKey"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5611,7 +6520,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5721,16 +6640,32 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - delivery_success: p["deliverySuccess"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - types: p["types"], - }) + const params = this._query( + { + created: p["created"], + delivery_success: p["deliverySuccess"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + types: p["types"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + types: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5755,7 +6690,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5789,12 +6734,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5819,7 +6772,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5885,15 +6848,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - expired: p["expired"], - file: p["file"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + expired: p["expired"], + file: p["file"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -5939,7 +6914,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6022,14 +7007,26 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - purpose: p["purpose"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + purpose: p["purpose"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6076,7 +7073,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6115,14 +7122,26 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - account_holder: p["accountHolder"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - session: p["session"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + account_holder: p["accountHolder"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + session: p["session"], + starting_after: p["startingAfter"], + }, + { + account_holder: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6147,7 +7166,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6205,13 +7234,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - ownership: p["ownership"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + ownership: p["ownership"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6327,7 +7364,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6372,15 +7419,31 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - account: p["account"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - transacted_at: p["transactedAt"], - transaction_refresh: p["transactionRefresh"], - }) + const params = this._query( + { + account: p["account"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + transacted_at: p["transactedAt"], + transaction_refresh: p["transactionRefresh"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + transacted_at: { + style: "deepObject", + explode: true, + }, + transaction_refresh: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6405,7 +7468,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6446,13 +7519,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6498,7 +7583,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6543,16 +7638,28 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - client_reference_id: p["clientReferenceId"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - verification_session: p["verificationSession"], - }) + const params = this._query( + { + client_reference_id: p["clientReferenceId"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + verification_session: p["verificationSession"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6577,7 +7684,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6627,16 +7744,28 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - client_reference_id: p["clientReferenceId"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - related_customer: p["relatedCustomer"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + client_reference_id: p["clientReferenceId"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + related_customer: p["relatedCustomer"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6682,7 +7811,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6792,15 +7931,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - payment: p["payment"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + payment: p["payment"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + payment: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6825,7 +7976,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6860,13 +8021,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6892,10 +8061,18 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - version: p["version"], - }) + const params = this._query( + { + expand: p["expand"], + version: p["version"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -6986,16 +8163,28 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - pending: p["pending"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + pending: p["pending"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7063,7 +8252,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7148,18 +8347,34 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - collection_method: p["collectionMethod"], - created: p["created"], - customer: p["customer"], - due_date: p["dueDate"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - subscription: p["subscription"], - }) + const params = this._query( + { + collection_method: p["collectionMethod"], + created: p["created"], + customer: p["customer"], + due_date: p["dueDate"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + subscription: p["subscription"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + due_date: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7235,12 +8450,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const params = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7287,7 +8510,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7408,12 +8641,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7619,16 +8860,28 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - card: p["card"], - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + card: p["card"], + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7653,7 +8906,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7767,17 +9030,29 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - email: p["email"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - phone_number: p["phoneNumber"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const params = this._query( + { + created: p["created"], + email: p["email"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + phone_number: p["phoneNumber"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7823,7 +9098,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7894,20 +9179,32 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - exp_month: p["expMonth"], - exp_year: p["expYear"], - expand: p["expand"], - last4: p["last4"], - limit: p["limit"], - personalization_design: p["personalizationDesign"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const params = this._query( + { + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + exp_month: p["expMonth"], + exp_year: p["expYear"], + expand: p["expand"], + last4: p["last4"], + limit: p["limit"], + personalization_design: p["personalizationDesign"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -7953,7 +9250,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8025,15 +9332,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - transaction: p["transaction"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + transaction: p["transaction"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8079,7 +9398,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8168,15 +9497,31 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_keys: p["lookupKeys"], - preferences: p["preferences"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_keys: p["lookupKeys"], + preferences: p["preferences"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lookup_keys: { + style: "deepObject", + explode: true, + }, + preferences: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8222,7 +9567,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8282,14 +9637,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8314,7 +9677,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8340,7 +9713,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8409,15 +9792,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - card: p["card"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + card: p["card"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8442,7 +9837,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8509,16 +9914,28 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - card: p["card"], - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const params = this._query( + { + card: p["card"], + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8543,7 +9960,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8611,7 +10038,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8650,14 +10087,26 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - account_holder: p["accountHolder"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - session: p["session"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + account_holder: p["accountHolder"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + session: p["session"], + starting_after: p["startingAfter"], + }, + { + account_holder: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8682,7 +10131,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8738,13 +10197,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - ownership: p["ownership"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + ownership: p["ownership"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8791,7 +10258,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8834,14 +10311,26 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8896,12 +10385,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const params = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -8927,10 +10424,18 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const params = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9122,13 +10627,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - active: p["active"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + active: p["active"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9174,7 +10687,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9229,12 +10752,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9269,13 +10800,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - application: p["application"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + application: p["application"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + application: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9321,7 +10864,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9381,14 +10934,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - domain_name: p["domainName"], - enabled: p["enabled"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + domain_name: p["domainName"], + enabled: p["enabled"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9434,7 +10995,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9566,14 +11137,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const params = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9619,7 +11198,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9737,16 +11326,32 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - arrival_date: p["arrivalDate"], - created: p["created"], - destination: p["destination"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + arrival_date: p["arrivalDate"], + created: p["created"], + destination: p["destination"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + arrival_date: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9792,7 +11397,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9902,15 +11517,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - product: p["product"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + product: p["product"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -9978,7 +11605,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10052,19 +11689,39 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - active: p["active"], - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_keys: p["lookupKeys"], - product: p["product"], - recurring: p["recurring"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const params = this._query( + { + active: p["active"], + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_keys: p["lookupKeys"], + product: p["product"], + recurring: p["recurring"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + lookup_keys: { + style: "deepObject", + explode: true, + }, + recurring: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10119,12 +11776,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const params = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10149,7 +11814,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10217,17 +11892,33 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - ids: p["ids"], - limit: p["limit"], - shippable: p["shippable"], - starting_after: p["startingAfter"], - url: p["url"], - }) + const params = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + ids: p["ids"], + limit: p["limit"], + shippable: p["shippable"], + starting_after: p["startingAfter"], + url: p["url"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + ids: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10282,12 +11973,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const params = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10334,7 +12033,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10389,12 +12098,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10465,7 +12182,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10511,17 +12238,29 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - active: p["active"], - code: p["code"], - coupon: p["coupon"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + active: p["active"], + code: p["code"], + coupon: p["coupon"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10567,7 +12306,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10631,15 +12380,23 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - test_clock: p["testClock"], - }) + const params = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + test_clock: p["testClock"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10685,7 +12442,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10784,12 +12551,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10845,12 +12620,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10880,7 +12663,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10924,15 +12717,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -10957,7 +12762,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11000,15 +12815,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - value: p["value"], - value_list: p["valueList"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + value: p["value"], + value_list: p["valueList"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11076,7 +12903,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11120,15 +12957,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - alias: p["alias"], - contains: p["contains"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + alias: p["alias"], + contains: p["contains"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11196,7 +13045,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11262,15 +13121,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11316,7 +13187,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11402,13 +13283,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11454,7 +13347,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11482,7 +13385,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11507,7 +13420,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11549,13 +13472,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11580,7 +13515,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11643,14 +13588,26 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - setup_intent: p["setupIntent"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + setup_intent: p["setupIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11695,16 +13652,28 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - attach_to_self: p["attachToSelf"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_method: p["paymentMethod"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + attach_to_self: p["attachToSelf"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_method: p["paymentMethod"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11751,10 +13720,18 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const params = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11887,15 +13864,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - active: p["active"], - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + active: p["active"], + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -11941,7 +13930,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12019,12 +14018,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12049,7 +14056,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12097,10 +14114,18 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const params = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12148,7 +14173,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12182,12 +14217,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12213,7 +14256,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12269,13 +14322,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - subscription: p["subscription"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + subscription: p["subscription"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12343,7 +14404,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12433,18 +14504,42 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - canceled_at: p["canceledAt"], - completed_at: p["completedAt"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - released_at: p["releasedAt"], - scheduled: p["scheduled"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + canceled_at: p["canceledAt"], + completed_at: p["completedAt"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + released_at: p["releasedAt"], + scheduled: p["scheduled"], + starting_after: p["startingAfter"], + }, + { + canceled_at: { + style: "deepObject", + explode: true, + }, + completed_at: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + released_at: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12490,7 +14585,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12638,21 +14743,45 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - automatic_tax: p["automaticTax"], - collection_method: p["collectionMethod"], - created: p["created"], - current_period_end: p["currentPeriodEnd"], - current_period_start: p["currentPeriodStart"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - price: p["price"], - starting_after: p["startingAfter"], - status: p["status"], - test_clock: p["testClock"], - }) + const params = this._query( + { + automatic_tax: p["automaticTax"], + collection_method: p["collectionMethod"], + created: p["created"], + current_period_end: p["currentPeriodEnd"], + current_period_start: p["currentPeriodStart"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + price: p["price"], + starting_after: p["startingAfter"], + status: p["status"], + test_clock: p["testClock"], + }, + { + automatic_tax: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + current_period_end: { + style: "deepObject", + explode: true, + }, + current_period_start: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12707,12 +14836,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const params = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12759,7 +14896,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12894,7 +15041,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12927,12 +15084,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -12973,13 +15138,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13025,7 +15198,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13070,7 +15253,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13158,7 +15351,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13191,12 +15394,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13231,12 +15442,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13261,7 +15480,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13305,13 +15534,25 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - owner: p["owner"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + owner: p["owner"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + owner: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13379,7 +15620,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13423,15 +15674,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - inclusive: p["inclusive"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + inclusive: p["inclusive"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13477,7 +15740,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13534,13 +15807,21 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - is_account_default: p["isAccountDefault"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + is_account_default: p["isAccountDefault"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13611,7 +15892,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13692,12 +15983,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13767,7 +16066,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13839,16 +16148,24 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - device_type: p["deviceType"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - location: p["location"], - serial_number: p["serialNumber"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + device_type: p["deviceType"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + location: p["location"], + serial_number: p["serialNumber"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -13918,7 +16235,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -14749,12 +17076,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -14822,7 +17157,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15186,7 +17531,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15242,15 +17597,31 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - amount: p["amount"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + amount: p["amount"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + amount: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15296,7 +17667,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15384,15 +17765,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - destination: p["destination"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - transfer_group: p["transferGroup"], - }) + const params = this._query( + { + created: p["created"], + destination: p["destination"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + transfer_group: p["transferGroup"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15446,12 +17839,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15498,7 +17899,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15546,7 +17957,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15606,15 +18027,23 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - received_credit: p["receivedCredit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + received_credit: p["receivedCredit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15660,7 +18089,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15697,16 +18136,24 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - received_debit: p["receivedDebit"], - resolution: p["resolution"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + received_debit: p["receivedDebit"], + resolution: p["resolution"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15752,7 +18199,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15796,14 +18253,26 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15849,7 +18318,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15921,7 +18400,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -15984,14 +18473,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16037,7 +18534,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16109,16 +18616,28 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16164,7 +18683,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16226,14 +18755,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16279,7 +18816,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16346,15 +18893,27 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - linked_flows: p["linkedFlows"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + linked_flows: p["linkedFlows"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + linked_flows: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16379,7 +18938,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16413,14 +18982,22 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16445,7 +19022,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16496,17 +19083,33 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - effective_at: p["effectiveAt"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - order_by: p["orderBy"], - starting_after: p["startingAfter"], - transaction: p["transaction"], - }) + const params = this._query( + { + created: p["created"], + effective_at: p["effectiveAt"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + order_by: p["orderBy"], + starting_after: p["startingAfter"], + transaction: p["transaction"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + effective_at: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16531,7 +19134,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16584,17 +19197,33 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - order_by: p["orderBy"], - starting_after: p["startingAfter"], - status: p["status"], - status_transitions: p["statusTransitions"], - }) + const params = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + order_by: p["orderBy"], + starting_after: p["startingAfter"], + status: p["status"], + status_transitions: p["statusTransitions"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + status_transitions: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16619,7 +19248,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16653,12 +19292,20 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const params = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", @@ -16726,7 +19373,17 @@ export class StripeApiService { | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({expand: p["expand"]}) + const params = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this.httpClient.request( "GET", diff --git a/integration-tests/typescript-angular/src/generated/todo-lists.yaml/client.service.ts b/integration-tests/typescript-angular/src/generated/todo-lists.yaml/client.service.ts index 61589986..4fa6ebf4 100644 --- a/integration-tests/typescript-angular/src/generated/todo-lists.yaml/client.service.ts +++ b/integration-tests/typescript-angular/src/generated/todo-lists.yaml/client.service.ts @@ -189,6 +189,15 @@ export type QueryParams = { | QueryParams[] } +export type Style = "deepObject" | "form" | "pipeDelimited" | "spaceDelimited" + +export type Encoding = { + // allowReserved?: boolean; + // contentType?: string; + explode?: boolean + style?: Style +} + export type Server = string & {__server__: T} @Injectable({ @@ -210,7 +219,11 @@ export class TodoListsExampleApiService { ) } - private _queryParams(queryParams: QueryParams): HttpParams { + private _query( + queryParams: QueryParams, + // todo: use encodings + _encodings?: Record, + ): HttpParams { return Object.entries(queryParams).reduce((result, [name, value]) => { if ( typeof value === "string" || @@ -233,11 +246,23 @@ export class TodoListsExampleApiService { (HttpResponse & {status: 200}) | HttpResponse > { const headers = this._headers({Accept: "application/json"}) - const params = this._queryParams({ - created: p["created"], - statuses: p["statuses"], - tags: p["tags"], - }) + const params = this._query( + { + created: p["created"], + statuses: p["statuses"], + tags: p["tags"], + }, + { + statuses: { + style: "form", + explode: true, + }, + tags: { + style: "form", + explode: true, + }, + }, + ) return this.httpClient.request("GET", this.config.basePath + `/list`, { params, diff --git a/integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts b/integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts index c0a00de4..3febe706 100644 --- a/integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts @@ -447,26 +447,38 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/advisories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ghsa_id: p["ghsaId"], - type: p["type"], - cve_id: p["cveId"], - ecosystem: p["ecosystem"], - severity: p["severity"], - cwes: p["cwes"], - is_withdrawn: p["isWithdrawn"], - affects: p["affects"], - published: p["published"], - updated: p["updated"], - modified: p["modified"], - epss_percentage: p["epssPercentage"], - epss_percentile: p["epssPercentile"], - before: p["before"], - after: p["after"], - direction: p["direction"], - per_page: p["perPage"], - sort: p["sort"], - }) + const query = this._query( + { + ghsa_id: p["ghsaId"], + type: p["type"], + cve_id: p["cveId"], + ecosystem: p["ecosystem"], + severity: p["severity"], + cwes: p["cwes"], + is_withdrawn: p["isWithdrawn"], + affects: p["affects"], + published: p["published"], + updated: p["updated"], + modified: p["modified"], + epss_percentage: p["epssPercentage"], + epss_percentile: p["epssPercentile"], + before: p["before"], + after: p["after"], + direction: p["direction"], + per_page: p["perPage"], + sort: p["sort"], + }, + { + cwes: { + style: "form", + explode: true, + }, + affects: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -596,7 +608,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/app/hook/deliveries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], cursor: p["cursor"]}) + const query = this._query({ + per_page: p["perPage"], + cursor: p["cursor"], + }) return this._request({ url: url + query, @@ -659,7 +674,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/app/installation-requests` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -997,7 +1015,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/assignments/${p["assignmentId"]}/accepted_assignments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -1037,7 +1058,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/classrooms` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -1078,7 +1102,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/classrooms/${p["classroomId"]}/assignments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -1582,22 +1609,30 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/enterprises/${p["enterprise"]}/dependabot/alerts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - per_page: p["perPage"], - }) + const query = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + per_page: p["perPage"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -1663,7 +1698,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -1890,7 +1928,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/gists/${p["gistId"]}/comments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -2007,7 +2048,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/gists/${p["gistId"]}/commits` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -2029,7 +2073,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/gists/${p["gistId"]}/forks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -2187,7 +2234,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/installation/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -2394,7 +2444,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/marketplace_listing/plans` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -2463,7 +2516,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/marketplace_listing/stubbed/plans` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -2531,7 +2587,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/networks/${p["owner"]}/${p["repo"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -2747,7 +2806,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/octocat` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({s: p["s"]}) + const query = this._query({ + s: p["s"], + }) return this._request({ url: url + query, @@ -2768,7 +2829,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/organizations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({since: p["since"], per_page: p["perPage"]}) + const query = this._query({ + since: p["since"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -2790,7 +2854,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/organizations/${p["org"]}/dependabot/repository-access` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -3033,7 +3100,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/cache/usage-by-repository` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -3060,7 +3130,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/hosted-runners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -3401,7 +3474,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/permissions/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -3737,7 +3813,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/runner-groups/${p["runnerGroupId"]}/hosted-runners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -3765,7 +3844,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/runner-groups/${p["runnerGroupId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -3863,7 +3945,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/runner-groups/${p["runnerGroupId"]}/runners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -4266,7 +4351,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -4384,7 +4472,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/secrets/${p["secretName"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -4481,7 +4572,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/variables` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -4612,7 +4706,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/actions/variables/${p["name"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -4904,7 +5001,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/blocks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -5628,7 +5728,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/codespaces` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -5742,7 +5845,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/codespaces/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -5860,7 +5966,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/codespaces/secrets/${p["secretName"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -5976,7 +6085,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/copilot/billing/seats` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -6163,22 +6275,30 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/dependabot/alerts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - per_page: p["perPage"], - }) + const query = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + per_page: p["perPage"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -6205,7 +6325,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/dependabot/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -6323,7 +6446,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/dependabot/secrets/${p["secretName"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -6434,7 +6560,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -6456,7 +6585,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/failed_invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -6478,7 +6610,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/hooks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -6677,7 +6812,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/hooks/${p["hookId"]}/deliveries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], cursor: p["cursor"]}) + const query = this._query({ + per_page: p["perPage"], + cursor: p["cursor"], + }) return this._request({ url: url + query, @@ -6786,15 +6924,23 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/insights/api/route-stats/${p["actorType"]}/${p["actorId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - api_route_substring: p["apiRouteSubstring"], - }) + const query = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + api_route_substring: p["apiRouteSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -6828,15 +6974,23 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/insights/api/subject-stats` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - subject_name_substring: p["subjectNameSubstring"], - }) + const query = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + subject_name_substring: p["subjectNameSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -7045,15 +7199,23 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/insights/api/user-stats/${p["userId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - actor_name_substring: p["actorNameSubstring"], - }) + const query = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + actor_name_substring: p["actorNameSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -7099,7 +7261,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/installations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -7283,7 +7448,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/invitations/${p["invitationId"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -7516,7 +7684,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/members/${p["username"]}/codespaces` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -7678,11 +7849,19 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/migrations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - per_page: p["perPage"], - page: p["page"], - exclude: p["exclude"], - }) + const query = this._query( + { + per_page: p["perPage"], + page: p["page"], + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -7739,7 +7918,17 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/migrations/${p["migrationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({exclude: p["exclude"]}) + const query = this._query( + { + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -7823,7 +8012,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/migrations/${p["migrationId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -8014,7 +8206,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/organization-roles/${p["roleId"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -8037,7 +8232,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/organization-roles/${p["roleId"]}/users` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -8239,7 +8437,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/restore` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({token: p["token"]}) + const query = this._query({ + token: p["token"], + }) return this._request({ url: url + query, @@ -8394,18 +8594,30 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/personal-access-token-requests` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - per_page: p["perPage"], - page: p["page"], - sort: p["sort"], - direction: p["direction"], - owner: p["owner"], - repository: p["repository"], - permission: p["permission"], - last_used_before: p["lastUsedBefore"], - last_used_after: p["lastUsedAfter"], - token_id: p["tokenId"], - }) + const query = this._query( + { + per_page: p["perPage"], + page: p["page"], + sort: p["sort"], + direction: p["direction"], + owner: p["owner"], + repository: p["repository"], + permission: p["permission"], + last_used_before: p["lastUsedBefore"], + last_used_after: p["lastUsedAfter"], + token_id: p["tokenId"], + }, + { + owner: { + style: "form", + explode: true, + }, + token_id: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -8490,7 +8702,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/personal-access-token-requests/${p["patRequestId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -8520,18 +8735,30 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/personal-access-tokens` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - per_page: p["perPage"], - page: p["page"], - sort: p["sort"], - direction: p["direction"], - owner: p["owner"], - repository: p["repository"], - permission: p["permission"], - last_used_before: p["lastUsedBefore"], - last_used_after: p["lastUsedAfter"], - token_id: p["tokenId"], - }) + const query = this._query( + { + per_page: p["perPage"], + page: p["page"], + sort: p["sort"], + direction: p["direction"], + owner: p["owner"], + repository: p["repository"], + permission: p["permission"], + last_used_before: p["lastUsedBefore"], + last_used_after: p["lastUsedAfter"], + token_id: p["tokenId"], + }, + { + owner: { + style: "form", + explode: true, + }, + token_id: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -8614,7 +8841,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/personal-access-tokens/${p["patId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -8641,7 +8871,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/private-registries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -9055,7 +9288,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/public_members` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -9445,7 +9681,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/rulesets/${p["rulesetId"]}/history` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -9694,7 +9933,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/orgs/${p["org"]}/settings/network-configurations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -9869,7 +10111,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -10486,7 +10731,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/teams/${p["teamSlug"]}/invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -10613,7 +10861,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/teams/${p["teamSlug"]}/projects` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -10714,7 +10965,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/teams/${p["teamSlug"]}/repos` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -10816,7 +11070,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/orgs/${p["org"]}/teams/${p["teamSlug"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -11314,7 +11571,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/projects/${p["projectId"]}/columns` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -11673,7 +11933,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/caches` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({key: p["key"], ref: p["ref"]}) + const query = this._query({ + key: p["key"], + ref: p["ref"], + }) return this._request({ url: url + query, @@ -11847,7 +12110,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/organization-secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -11875,7 +12141,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/organization-variables` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -12470,7 +12739,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/runs/${p["runId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({exclude_pull_requests: p["excludePullRequests"]}) + const query = this._query({ + exclude_pull_requests: p["excludePullRequests"], + }) return this._request({ url: url + query, @@ -12591,7 +12862,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/runs/${p["runId"]}/attempts/${p["attemptNumber"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({exclude_pull_requests: p["excludePullRequests"]}) + const query = this._query({ + exclude_pull_requests: p["excludePullRequests"], + }) return this._request({ url: url + query, @@ -12621,7 +12894,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/runs/${p["runId"]}/attempts/${p["attemptNumber"]}/jobs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -12959,7 +13235,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -13079,7 +13358,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/variables` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -13208,7 +13490,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/actions/workflows` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -13463,7 +13748,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/assignees` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -14908,7 +15196,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/check-runs/${p["checkRunId"]}/annotations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -15362,7 +15653,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/code-scanning/analyses/${p["analysisId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({confirm_delete: p["confirmDelete"]}) + const query = this._query({ + confirm_delete: p["confirmDelete"], + }) return this._request({ url: url + query, @@ -15643,7 +15936,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/codeowners/errors` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._request({ url: url + query, @@ -15671,7 +15966,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/codespaces` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -15749,7 +16047,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/codespaces/devcontainers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -15815,7 +16116,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/codespaces/new` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"], client_ip: p["clientIp"]}) + const query = this._query({ + ref: p["ref"], + client_ip: p["clientIp"], + }) return this._request({ url: url + query, @@ -15869,7 +16173,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/codespaces/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -16117,7 +16424,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/comments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -16369,7 +16679,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/commits/${p["commitSha"]}/comments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -16425,7 +16738,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/commits/${p["commitSha"]}/pulls` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -16449,7 +16765,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/commits/${p["ref"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -16549,7 +16868,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/commits/${p["ref"]}/status` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -16573,7 +16895,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/commits/${p["ref"]}/statuses` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -16617,7 +16942,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/compare/${p["basehead"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -16647,7 +16975,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/contents/${p["path"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._request({ url: url + query, @@ -16801,24 +17131,32 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/dependabot/alerts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - manifest: p["manifest"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - page: p["page"], - per_page: p["perPage"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - }) + const query = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + manifest: p["manifest"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + page: p["page"], + per_page: p["perPage"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -16907,7 +17245,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/dependabot/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -17022,7 +17363,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/dependency-graph/compare/${p["basehead"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({name: p["name"]}) + const query = this._query({ + name: p["name"], + }) return this._request({ url: url + query, @@ -17223,7 +17566,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/deployments/${p["deploymentId"]}/statuses` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -17349,7 +17695,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/environments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -17467,7 +17816,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/deployment-branch-policies` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -17654,7 +18006,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/deployment_protection_rules/apps` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -17727,7 +18082,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -17852,7 +18210,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/variables` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -17980,7 +18341,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -18414,7 +18778,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/git/trees/${p["treeSha"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({recursive: p["recursive"]}) + const query = this._query({ + recursive: p["recursive"], + }) return this._request({ url: url + query, @@ -18437,7 +18803,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/hooks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -18637,7 +19006,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/hooks/${p["hookId"]}/deliveries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], cursor: p["cursor"]}) + const query = this._query({ + per_page: p["perPage"], + cursor: p["cursor"], + }) return this._request({ url: url + query, @@ -18873,7 +19245,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/import/authors` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({since: p["since"]}) + const query = this._query({ + since: p["since"], + }) return this._request({ url: url + query, @@ -19065,7 +19439,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -19443,7 +19820,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/issues/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -19713,7 +20093,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/issues/${p["issueNumber"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -19737,7 +20120,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/issues/${p["issueNumber"]}/labels` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -20088,7 +20474,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/issues/${p["issueNumber"]}/sub_issues` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -20173,7 +20562,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/issues/${p["issueNumber"]}/timeline` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -20196,7 +20588,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -20291,7 +20686,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/labels` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -20441,7 +20839,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/license` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._request({ url: url + query, @@ -20665,7 +21065,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/milestones/${p["milestoneNumber"]}/labels` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -20881,7 +21284,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/pages/builds` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -21716,7 +22122,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/commits` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -21740,7 +22149,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/files` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -21910,7 +22322,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/reviews` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -22058,7 +22473,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/reviews/${p["reviewId"]}/comments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -22185,7 +22603,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/readme` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._request({ url: url + query, @@ -22208,7 +22628,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/readme/${p["dir"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._request({ url: url + query, @@ -22231,7 +22653,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/releases` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -22528,7 +22953,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/releases/${p["releaseId"]}/assets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -22558,7 +22986,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/releases/${p["releaseId"]}/assets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({name: p["name"], label: p["label"]}) + const query = this._query({ + name: p["name"], + label: p["label"], + }) return this._request({ url: url + query, @@ -22678,7 +23109,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/rules/branches/${p["branch"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -22826,7 +23260,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/rulesets/${p["rulesetId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({includes_parents: p["includesParents"]}) + const query = this._query({ + includes_parents: p["includesParents"], + }) return this._request({ url: url + query, @@ -22912,7 +23348,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/rulesets/${p["rulesetId"]}/history` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -23005,7 +23444,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/secret-scanning/alerts/${p["alertNumber"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({hide_secret: p["hideSecret"]}) + const query = this._query({ + hide_secret: p["hideSecret"], + }) return this._request({ url: url + query, @@ -23062,7 +23503,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/secret-scanning/alerts/${p["alertNumber"]}/locations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -23319,7 +23763,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/stargazers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -23497,7 +23944,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/subscribers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -23594,7 +24044,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/tags` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -23707,7 +24160,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -23730,7 +24186,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/topics` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -23780,7 +24239,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/traffic/clones` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per: p["per"]}) + const query = this._query({ + per: p["per"], + }) return this._request({ url: url + query, @@ -23842,7 +24303,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repos/${p["owner"]}/${p["repo"]}/traffic/views` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per: p["per"]}) + const query = this._query({ + per: p["per"], + }) return this._request({ url: url + query, @@ -24005,7 +24468,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({since: p["since"]}) + const query = this._query({ + since: p["since"], + }) return this._request({ url: url + query, @@ -24781,7 +25246,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/teams/${p["teamId"]}/invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -24963,7 +25431,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/teams/${p["teamId"]}/projects` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -25060,7 +25531,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/teams/${p["teamId"]}/repos` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -25160,7 +25634,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/teams/${p["teamId"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -25235,7 +25712,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/blocks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -25415,7 +25895,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/user/codespaces/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -25857,7 +26340,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/emails` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -25941,7 +26427,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/followers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -25962,7 +26451,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/following` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26040,7 +26532,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/gpg_keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26131,7 +26626,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/user/installations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26159,7 +26657,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { > { const url = `/user/installations/${p["installationId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26322,7 +26823,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26408,7 +26912,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/marketplace_purchases` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26429,7 +26936,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/marketplace_purchases/stubbed` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26522,7 +27032,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/migrations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26577,7 +27090,17 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/migrations/${p["migrationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({exclude: p["exclude"]}) + const query = this._query( + { + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -26657,7 +27180,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/migrations/${p["migrationId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26678,7 +27204,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/orgs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -26796,7 +27325,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/packages/${p["packageType"]}/${p["packageName"]}/restore` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({token: p["token"]}) + const query = this._query({ + token: p["token"], + }) return this._request({ url: url + query, @@ -26963,7 +27494,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/public_emails` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27089,7 +27623,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/repository_invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27148,7 +27685,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/social_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27221,7 +27761,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/ssh_signing_keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27395,7 +27938,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/subscriptions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27416,7 +27962,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/user/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27456,7 +28005,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({since: p["since"], per_page: p["perPage"]}) + const query = this._query({ + since: p["since"], + per_page: p["perPage"], + }) return this._request({ url: url + query, @@ -27718,7 +28270,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27741,7 +28296,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/events/orgs/${p["org"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27763,7 +28321,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/events/public` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27785,7 +28346,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/followers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27807,7 +28371,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/following` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27876,7 +28443,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/gpg_keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27947,7 +28517,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -27969,7 +28542,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/orgs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -28091,7 +28667,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/packages/${p["packageType"]}/${p["packageName"]}/restore` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({token: p["token"]}) + const query = this._query({ + token: p["token"], + }) return this._request({ url: url + query, @@ -28255,7 +28833,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/received_events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -28277,7 +28858,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/received_events/public` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -28421,7 +29005,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/social_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -28443,7 +29030,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/ssh_signing_keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, @@ -28494,7 +29084,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise> { const url = `/users/${p["username"]}/subscriptions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._request({ url: url + query, diff --git a/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/client.ts b/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/client.ts index 0d43d772..235388bf 100644 --- a/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/client.ts +++ b/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/client.ts @@ -76,7 +76,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -112,7 +114,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { > { const url = `/widgets/${p["widgetName"]}/operations/${p["operationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -154,7 +158,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -192,7 +198,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -238,7 +246,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -269,13 +279,21 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({ - "api-version": p["apiVersion"], - top: p["top"], - skip: p["skip"], - maxpagesize: p["maxpagesize"], - select: p["select"], - }) + const query = this._query( + { + "api-version": p["apiVersion"], + top: p["top"], + skip: p["skip"], + maxpagesize: p["maxpagesize"], + select: p["select"], + }, + { + select: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -311,7 +329,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -353,7 +373,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -384,7 +406,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { > { const url = `/widgets/${p["widgetId"]}/repairs/${p["operationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -433,7 +457,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -465,7 +491,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { > { const url = `/widgets/${p["widgetName"]}/parts/${p["widgetPartName"]}/operations/${p["operationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -507,7 +535,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -537,7 +567,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -574,7 +606,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -615,7 +649,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -655,7 +691,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -686,7 +724,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { > { const url = `/manufacturers/${p["manufacturerId"]}/operations/${p["operationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -728,7 +768,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -766,7 +808,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -812,7 +856,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -839,7 +885,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, diff --git a/integration-tests/typescript-axios/src/generated/azure-resource-manager.tsp/client.ts b/integration-tests/typescript-axios/src/generated/azure-resource-manager.tsp/client.ts index 353fa9e1..da20cbbc 100644 --- a/integration-tests/typescript-axios/src/generated/azure-resource-manager.tsp/client.ts +++ b/integration-tests/typescript-axios/src/generated/azure-resource-manager.tsp/client.ts @@ -58,7 +58,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { ): Promise> { const url = `/providers/Microsoft.ContosoProviderHub/operations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -81,7 +83,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { ): Promise> { const url = `/subscriptions/${p["subscriptionId"]}/resourceGroups/${p["resourceGroupName"]}/providers/Microsoft.ContosoProviderHub/employees/${p["employeeName"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -108,7 +112,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { {Accept: "application/json", "Content-Type": "application/json"}, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -137,7 +143,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { {Accept: "application/json", "Content-Type": "application/json"}, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -162,7 +170,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { ): Promise> { const url = `/subscriptions/${p["subscriptionId"]}/resourceGroups/${p["resourceGroupName"]}/providers/Microsoft.ContosoProviderHub/employees/${p["employeeName"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -185,7 +195,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { ): Promise> { const url = `/subscriptions/${p["subscriptionId"]}/resourceGroups/${p["resourceGroupName"]}/providers/Microsoft.ContosoProviderHub/employees/${p["employeeName"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -207,7 +219,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { ): Promise> { const url = `/subscriptions/${p["subscriptionId"]}/resourceGroups/${p["resourceGroupName"]}/providers/Microsoft.ContosoProviderHub/employees` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -228,7 +242,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { ): Promise> { const url = `/subscriptions/${p["subscriptionId"]}/providers/Microsoft.ContosoProviderHub/employees` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._request({ url: url + query, @@ -255,7 +271,9 @@ export class ContosoProviderHubClient extends AbstractAxiosClient { {Accept: "application/json", "Content-Type": "application/json"}, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._request({ diff --git a/integration-tests/typescript-axios/src/generated/okta.idp.yaml/client.ts b/integration-tests/typescript-axios/src/generated/okta.idp.yaml/client.ts index 06687a64..257cec8c 100644 --- a/integration-tests/typescript-axios/src/generated/okta.idp.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/okta.idp.yaml/client.ts @@ -194,7 +194,9 @@ export class MyAccountManagement extends AbstractAxiosClient { ): Promise> { const url = `/idp/myaccount/authenticators` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query({ + expand: p["expand"], + }) return this._request({ url: url + query, @@ -215,7 +217,9 @@ export class MyAccountManagement extends AbstractAxiosClient { ): Promise> { const url = `/idp/myaccount/authenticators/${p["authenticatorId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query({ + expand: p["expand"], + }) return this._request({ url: url + query, diff --git a/integration-tests/typescript-axios/src/generated/okta.oauth.yaml/client.ts b/integration-tests/typescript-axios/src/generated/okta.oauth.yaml/client.ts index 029661f0..325843df 100644 --- a/integration-tests/typescript-axios/src/generated/okta.oauth.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/okta.oauth.yaml/client.ts @@ -85,7 +85,9 @@ export class OktaOpenIdConnectOAuth20 extends AbstractAxiosClient { ): Promise> { const url = `/.well-known/openid-configuration` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({client_id: p["clientId"]}) + const query = this._query({ + client_id: p["clientId"], + }) return this._request({ url: url + query, @@ -248,7 +250,11 @@ export class OktaOpenIdConnectOAuth20 extends AbstractAxiosClient { ): Promise> { const url = `/oauth2/v1/clients` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({after: p["after"], limit: p["limit"], q: p["q"]}) + const query = this._query({ + after: p["after"], + limit: p["limit"], + q: p["q"], + }) return this._request({ url: url + query, @@ -452,7 +458,9 @@ export class OktaOpenIdConnectOAuth20 extends AbstractAxiosClient { ): Promise> { const url = `/oauth2/v1/keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({client_id: p["clientId"]}) + const query = this._query({ + client_id: p["clientId"], + }) return this._request({ url: url + query, @@ -688,7 +696,9 @@ export class OktaOpenIdConnectOAuth20 extends AbstractAxiosClient { ): Promise> { const url = `/oauth2/${p["authorizationServerId"]}/.well-known/oauth-authorization-server` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({client_id: p["clientId"]}) + const query = this._query({ + client_id: p["clientId"], + }) return this._request({ url: url + query, @@ -709,7 +719,9 @@ export class OktaOpenIdConnectOAuth20 extends AbstractAxiosClient { ): Promise> { const url = `/oauth2/${p["authorizationServerId"]}/.well-known/openid-configuration` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({client_id: p["clientId"]}) + const query = this._query({ + client_id: p["clientId"], + }) return this._request({ url: url + query, diff --git a/integration-tests/typescript-axios/src/generated/petstore-expanded.yaml/client.ts b/integration-tests/typescript-axios/src/generated/petstore-expanded.yaml/client.ts index 551ae2bc..1b6deb8a 100644 --- a/integration-tests/typescript-axios/src/generated/petstore-expanded.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/petstore-expanded.yaml/client.ts @@ -51,7 +51,18 @@ export class SwaggerPetstore extends AbstractAxiosClient { ): Promise> { const url = `/pets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({tags: p["tags"], limit: p["limit"]}) + const query = this._query( + { + tags: p["tags"], + limit: p["limit"], + }, + { + tags: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, diff --git a/integration-tests/typescript-axios/src/generated/stripe.yaml/client.ts b/integration-tests/typescript-axios/src/generated/stripe.yaml/client.ts index c3d6fd2b..0e8c9422 100644 --- a/integration-tests/typescript-axios/src/generated/stripe.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/stripe.yaml/client.ts @@ -245,7 +245,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/account` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -573,13 +583,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -1518,7 +1540,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/accounts/${p["account"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -2476,7 +2508,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/accounts/${p["account"]}/bank_accounts/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -2580,7 +2622,17 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/accounts/${p["account"]}/capabilities` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -2602,7 +2654,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/accounts/${p["account"]}/capabilities/${p["capability"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -2674,13 +2736,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/accounts/${p["account"]}/external_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - object: p["object"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + object: p["object"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -2803,7 +2873,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/accounts/${p["account"]}/external_accounts/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -2956,13 +3036,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/accounts/${p["account"]}/people` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - relationship: p["relationship"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + relationship: p["relationship"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + relationship: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -3253,7 +3345,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/accounts/${p["account"]}/people/${p["person"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -3542,13 +3644,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/accounts/${p["account"]}/persons` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - relationship: p["relationship"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + relationship: p["relationship"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + relationship: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -3839,7 +3953,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/accounts/${p["account"]}/persons/${p["person"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4153,13 +4277,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/apple_pay/domains` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - domain_name: p["domainName"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + domain_name: p["domainName"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4231,7 +4363,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/apple_pay/domains/${p["domain"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4270,14 +4412,26 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/application_fees` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4299,7 +4453,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/application_fees/${p["fee"]}/refunds/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4369,7 +4533,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/application_fees/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4440,12 +4614,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/application_fees/${p["id"]}/refunds` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4524,13 +4706,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/apps/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - scope: p["scope"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + scope: p["scope"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + scope: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4631,11 +4825,23 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/apps/secrets/find` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - name: p["name"], - scope: p["scope"], - }) + const query = this._query( + { + expand: p["expand"], + name: p["name"], + scope: p["scope"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + scope: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4655,7 +4861,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/balance` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4697,17 +4913,29 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/balance/history` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payout: p["payout"], - source: p["source"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payout: p["payout"], + source: p["source"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4728,7 +4956,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/balance/history/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4770,17 +5008,29 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/balance_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payout: p["payout"], - source: p["source"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payout: p["payout"], + source: p["source"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4801,7 +5051,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/balance_transactions/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4833,14 +5093,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/billing/alerts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - alert_type: p["alertType"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - meter: p["meter"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + alert_type: p["alertType"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + meter: p["meter"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -4908,7 +5176,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/billing/alerts/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5057,11 +5335,23 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/billing/credit_balance_summary` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - expand: p["expand"], - filter: p["filter"], - }) + const query = this._query( + { + customer: p["customer"], + expand: p["expand"], + filter: p["filter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + filter: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5093,14 +5383,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/billing/credit_balance_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - credit_grant: p["creditGrant"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + credit_grant: p["creditGrant"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5121,7 +5419,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/billing/credit_balance_transactions/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5152,13 +5460,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/billing/credit_grants` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5243,7 +5559,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/billing/credit_grants/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5473,13 +5799,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/billing/meters` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5553,7 +5887,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/billing/meters/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5665,16 +6009,24 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/billing/meters/${p["id"]}/event_summaries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - end_time: p["endTime"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - start_time: p["startTime"], - starting_after: p["startingAfter"], - value_grouping_window: p["valueGroupingWindow"], - }) + const query = this._query( + { + customer: p["customer"], + end_time: p["endTime"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + start_time: p["startTime"], + starting_after: p["startingAfter"], + value_grouping_window: p["valueGroupingWindow"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5744,14 +6096,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/billing_portal/configurations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - ending_before: p["endingBefore"], - expand: p["expand"], - is_default: p["isDefault"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + ending_before: p["endingBefore"], + expand: p["expand"], + is_default: p["isDefault"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -5947,7 +6307,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/billing_portal/configurations/${p["configuration"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -6343,16 +6713,28 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/charges` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - transfer_group: p["transferGroup"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + transfer_group: p["transferGroup"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -6509,12 +6891,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/charges/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -6535,7 +6925,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/charges/${p["charge"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -6682,7 +7082,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/charges/${p["charge"]}/dispute` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -7054,12 +7464,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/charges/${p["charge"]}/refunds` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -7145,7 +7563,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/charges/${p["charge"]}/refunds/${p["refund"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -7240,19 +7668,35 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/checkout/sessions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - customer_details: p["customerDetails"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - payment_link: p["paymentLink"], - starting_after: p["startingAfter"], - status: p["status"], - subscription: p["subscription"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + customer_details: p["customerDetails"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + payment_link: p["paymentLink"], + starting_after: p["startingAfter"], + status: p["status"], + subscription: p["subscription"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + customer_details: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -8739,7 +9183,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/checkout/sessions/${p["session"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -8957,12 +9411,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/checkout/sessions/${p["session"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -8992,12 +9454,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/climate/orders` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9065,7 +9535,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/climate/orders/${p["order"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9187,12 +9667,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/climate/products` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9213,7 +9701,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/climate/products/${p["product"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9243,12 +9741,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/climate/suppliers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9269,7 +9775,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/climate/suppliers/${p["supplier"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9290,7 +9806,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/confirmation_tokens/${p["confirmationToken"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9320,12 +9846,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/country_specs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9346,7 +9880,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/country_specs/${p["country"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9384,13 +9928,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/coupons` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9504,7 +10060,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/coupons/${p["coupon"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9603,15 +10169,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/credit_notes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9772,22 +10350,46 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/credit_notes/preview` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - amount: p["amount"], - credit_amount: p["creditAmount"], - effective_at: p["effectiveAt"], - email_type: p["emailType"], - expand: p["expand"], - invoice: p["invoice"], - lines: p["lines"], - memo: p["memo"], - metadata: p["metadata"], - out_of_band_amount: p["outOfBandAmount"], - reason: p["reason"], - refund_amount: p["refundAmount"], - refunds: p["refunds"], - shipping_cost: p["shippingCost"], - }) + const query = this._query( + { + amount: p["amount"], + credit_amount: p["creditAmount"], + effective_at: p["effectiveAt"], + email_type: p["emailType"], + expand: p["expand"], + invoice: p["invoice"], + lines: p["lines"], + memo: p["memo"], + metadata: p["metadata"], + out_of_band_amount: p["outOfBandAmount"], + reason: p["reason"], + refund_amount: p["refundAmount"], + refunds: p["refunds"], + shipping_cost: p["shippingCost"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lines: { + style: "deepObject", + explode: true, + }, + metadata: { + style: "deepObject", + explode: true, + }, + refunds: { + style: "deepObject", + explode: true, + }, + shipping_cost: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9862,25 +10464,49 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/credit_notes/preview/lines` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - amount: p["amount"], - credit_amount: p["creditAmount"], - effective_at: p["effectiveAt"], - email_type: p["emailType"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - lines: p["lines"], - memo: p["memo"], - metadata: p["metadata"], - out_of_band_amount: p["outOfBandAmount"], - reason: p["reason"], - refund_amount: p["refundAmount"], - refunds: p["refunds"], - shipping_cost: p["shippingCost"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + amount: p["amount"], + credit_amount: p["creditAmount"], + effective_at: p["effectiveAt"], + email_type: p["emailType"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + lines: p["lines"], + memo: p["memo"], + metadata: p["metadata"], + out_of_band_amount: p["outOfBandAmount"], + reason: p["reason"], + refund_amount: p["refundAmount"], + refunds: p["refunds"], + shipping_cost: p["shippingCost"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lines: { + style: "deepObject", + explode: true, + }, + metadata: { + style: "deepObject", + explode: true, + }, + refunds: { + style: "deepObject", + explode: true, + }, + shipping_cost: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9911,12 +10537,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/credit_notes/${p["creditNote"]}/lines` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -9937,7 +10571,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/credit_notes/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -10139,15 +10783,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - email: p["email"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - test_clock: p["testClock"], - }) + const query = this._query( + { + created: p["created"], + email: p["email"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + test_clock: p["testClock"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -10453,12 +11109,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -10498,7 +11162,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -10730,12 +11404,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/${p["customer"]}/balance_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -10802,7 +11484,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/balance_transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -10883,12 +11575,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/${p["customer"]}/bank_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11037,7 +11737,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/bank_accounts/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11189,12 +11899,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/${p["customer"]}/cards` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11343,7 +12061,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/cards/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11444,7 +12172,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/cash_balance` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11526,12 +12264,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/${p["customer"]}/cash_balance_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11553,7 +12299,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/cash_balance_transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11593,7 +12349,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/discount` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11737,14 +12503,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/${p["customer"]}/payment_methods` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - allow_redisplay: p["allowRedisplay"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + allow_redisplay: p["allowRedisplay"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11766,7 +12540,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/payment_methods/${p["paymentMethod"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11798,13 +12582,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/${p["customer"]}/sources` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - object: p["object"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + object: p["object"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -11953,7 +12745,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/sources/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -12105,12 +12907,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/${p["customer"]}/subscriptions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -12665,7 +13475,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/subscriptions/${p["subscriptionExposedId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13248,7 +14068,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/subscriptions/${p["subscriptionExposedId"]}/discount` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13279,12 +14109,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/customers/${p["customer"]}/tax_ids` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13471,7 +14309,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/customers/${p["customer"]}/tax_ids/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13511,15 +14359,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/disputes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13540,7 +14400,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/disputes/${p["dispute"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13851,13 +14721,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/entitlements/active_entitlements` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13878,7 +14756,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/entitlements/active_entitlements/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13910,14 +14798,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/entitlements/features` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - archived: p["archived"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_key: p["lookupKey"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + archived: p["archived"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_key: p["lookupKey"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -13977,7 +14873,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/entitlements/features/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14147,16 +15053,32 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - delivery_success: p["deliverySuccess"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - types: p["types"], - }) + const query = this._query( + { + created: p["created"], + delivery_success: p["deliverySuccess"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + types: p["types"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + types: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14177,7 +15099,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/events/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14207,12 +15139,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/exchange_rates` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14233,7 +15173,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/exchange_rates/${p["rateId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14348,15 +15298,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/file_links` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - expired: p["expired"], - file: p["file"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + expired: p["expired"], + file: p["file"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14420,7 +15382,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/file_links/${p["link"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14527,14 +15499,26 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/files` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - purpose: p["purpose"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + purpose: p["purpose"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14579,7 +15563,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/files/${p["file"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14614,14 +15608,26 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/financial_connections/accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - account_holder: p["accountHolder"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - session: p["session"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + account_holder: p["accountHolder"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + session: p["session"], + starting_after: p["startingAfter"], + }, + { + account_holder: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14642,7 +15648,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/financial_connections/accounts/${p["account"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14712,13 +15728,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/financial_connections/accounts/${p["account"]}/owners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - ownership: p["ownership"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + ownership: p["ownership"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14917,7 +15941,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/financial_connections/sessions/${p["session"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14959,15 +15993,31 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/financial_connections/transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - account: p["account"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - transacted_at: p["transactedAt"], - transaction_refresh: p["transactionRefresh"], - }) + const query = this._query( + { + account: p["account"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + transacted_at: p["transactedAt"], + transaction_refresh: p["transactionRefresh"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + transacted_at: { + style: "deepObject", + explode: true, + }, + transaction_refresh: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -14988,7 +16038,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/financial_connections/transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15024,13 +16084,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/forwarding/requests` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15111,7 +16183,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/forwarding/requests/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15152,16 +16234,28 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/identity/verification_reports` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_reference_id: p["clientReferenceId"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - verification_session: p["verificationSession"], - }) + const query = this._query( + { + client_reference_id: p["clientReferenceId"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + verification_session: p["verificationSession"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15182,7 +16276,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/identity/verification_reports/${p["report"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15228,16 +16332,28 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/identity/verification_sessions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_reference_id: p["clientReferenceId"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - related_customer: p["relatedCustomer"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + client_reference_id: p["clientReferenceId"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + related_customer: p["relatedCustomer"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15344,7 +16460,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/identity/verification_sessions/${p["session"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15532,15 +16658,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/invoice_payments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - payment: p["payment"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + payment: p["payment"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + payment: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15561,7 +16699,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/invoice_payments/${p["invoicePayment"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15592,13 +16740,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/invoice_rendering_templates` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15620,7 +16776,18 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/invoice_rendering_templates/${p["template"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"], version: p["version"]}) + const query = this._query( + { + expand: p["expand"], + version: p["version"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15737,16 +16904,28 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/invoiceitems` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - pending: p["pending"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + pending: p["pending"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -15885,7 +17064,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/invoiceitems/${p["invoiceitem"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -16046,18 +17235,34 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/invoices` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - collection_method: p["collectionMethod"], - created: p["created"], - customer: p["customer"], - due_date: p["dueDate"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - subscription: p["subscription"], - }) + const query = this._query( + { + collection_method: p["collectionMethod"], + created: p["created"], + customer: p["customer"], + due_date: p["dueDate"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + subscription: p["subscription"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + due_date: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -17190,12 +18395,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/invoices/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -17235,7 +18448,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/invoices/${p["invoice"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -17993,12 +19216,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/invoices/${p["invoice"]}/lines` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -18610,16 +19841,28 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/issuing/authorizations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - card: p["card"], - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + card: p["card"], + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -18640,7 +19883,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/authorizations/${p["authorization"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -18827,17 +20080,29 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/issuing/cardholders` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - email: p["email"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - phone_number: p["phoneNumber"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const query = this._query( + { + created: p["created"], + email: p["email"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + phone_number: p["phoneNumber"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -19879,7 +21144,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/cardholders/${p["cardholder"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -20952,20 +22227,32 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/issuing/cards` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - exp_month: p["expMonth"], - exp_year: p["expYear"], - expand: p["expand"], - last4: p["last4"], - limit: p["limit"], - personalization_design: p["personalizationDesign"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const query = this._query( + { + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + exp_month: p["expMonth"], + exp_year: p["expYear"], + expand: p["expand"], + last4: p["last4"], + limit: p["limit"], + personalization_design: p["personalizationDesign"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -21997,7 +23284,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/cards/${p["card"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -23060,15 +24357,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/issuing/disputes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - transaction: p["transaction"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + transaction: p["transaction"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -23365,7 +24674,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/disputes/${p["dispute"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -23728,15 +25047,31 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/issuing/personalization_designs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_keys: p["lookupKeys"], - preferences: p["preferences"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_keys: p["lookupKeys"], + preferences: p["preferences"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lookup_keys: { + style: "deepObject", + explode: true, + }, + preferences: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -23814,7 +25149,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/personalization_designs/${p["personalizationDesign"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -23925,14 +25270,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/issuing/physical_bundles` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -23953,7 +25306,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/physical_bundles/${p["physicalBundle"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -23974,7 +25337,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/settlements/${p["settlement"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24063,15 +25436,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/issuing/tokens` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - card: p["card"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + card: p["card"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24092,7 +25477,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/tokens/${p["token"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24166,16 +25561,28 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/issuing/transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - card: p["card"], - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + card: p["card"], + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24196,7 +25603,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/issuing/transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24336,7 +25753,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/link_account_sessions/${p["session"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24371,14 +25798,26 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/linked_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - account_holder: p["accountHolder"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - session: p["session"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + account_holder: p["accountHolder"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + session: p["session"], + starting_after: p["startingAfter"], + }, + { + account_holder: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24399,7 +25838,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/linked_accounts/${p["account"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24469,13 +25918,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/linked_accounts/${p["account"]}/owners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - ownership: p["ownership"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + ownership: p["ownership"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24535,7 +25992,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/mandates/${p["mandate"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -24574,14 +26041,26 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/payment_intents` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -26245,12 +27724,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/payment_intents/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -26272,10 +27759,18 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/payment_intents/${p["intent"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const query = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -29761,13 +31256,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/payment_links` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -30476,7 +31979,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/payment_links/${p["paymentLink"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -31143,12 +32656,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/payment_links/${p["paymentLink"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -31179,13 +32700,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/payment_method_configurations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - application: p["application"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + application: p["application"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + application: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -31869,7 +33402,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/payment_method_configurations/${p["configuration"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -32565,14 +34108,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/payment_method_domains` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - domain_name: p["domainName"], - enabled: p["enabled"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + domain_name: p["domainName"], + enabled: p["enabled"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -32626,7 +34177,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/payment_method_domains/${p["paymentMethodDomain"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -32784,14 +34345,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/payment_methods` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -33256,7 +34825,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/payment_methods/${p["paymentMethod"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -33484,16 +35063,32 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/payouts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - arrival_date: p["arrivalDate"], - created: p["created"], - destination: p["destination"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + arrival_date: p["arrivalDate"], + created: p["created"], + destination: p["destination"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + arrival_date: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -33560,7 +35155,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/payouts/${p["payout"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -33730,15 +35335,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/plans` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - product: p["product"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + product: p["product"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -33874,7 +35491,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/plans/${p["plan"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -33978,19 +35605,39 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/prices` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_keys: p["lookupKeys"], - product: p["product"], - recurring: p["recurring"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_keys: p["lookupKeys"], + product: p["product"], + recurring: p["recurring"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + lookup_keys: { + style: "deepObject", + explode: true, + }, + recurring: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34170,12 +35817,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/prices/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34196,7 +35851,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/prices/${p["price"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34333,17 +35998,33 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/products` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - ids: p["ids"], - limit: p["limit"], - shippable: p["shippable"], - starting_after: p["startingAfter"], - url: p["url"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + ids: p["ids"], + limit: p["limit"], + shippable: p["shippable"], + starting_after: p["startingAfter"], + url: p["url"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + ids: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34513,12 +36194,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/products/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34558,7 +36247,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/products/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34675,12 +36374,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/products/${p["product"]}/features` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34755,7 +36462,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/products/${p["product"]}/features/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34797,17 +36514,29 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/promotion_codes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - code: p["code"], - coupon: p["coupon"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + code: p["code"], + coupon: p["coupon"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34888,7 +36617,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/promotion_codes/${p["promotionCode"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -34989,15 +36728,23 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/quotes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - test_clock: p["testClock"], - }) + const query = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + test_clock: p["testClock"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35208,7 +36955,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/quotes/${p["quote"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35494,12 +37251,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/quotes/${p["quote"]}/computed_upfront_line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35569,12 +37334,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/quotes/${p["quote"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35598,7 +37371,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/quotes/${p["quote"]}/pdf` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35639,15 +37422,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/radar/early_fraud_warnings` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35668,7 +37463,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/radar/early_fraud_warnings/${p["earlyFraudWarning"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35708,15 +37513,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/radar/value_list_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - value: p["value"], - value_list: p["valueList"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + value: p["value"], + value_list: p["valueList"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35789,7 +37606,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/radar/value_list_items/${p["item"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35829,15 +37656,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/radar/value_lists` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - alias: p["alias"], - contains: p["contains"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + alias: p["alias"], + contains: p["contains"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -35931,7 +37770,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/radar/value_lists/${p["valueList"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -36017,15 +37866,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/refunds` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -36110,7 +37971,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/refunds/${p["refund"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -36234,13 +38105,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/reporting/report_runs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -36950,7 +38833,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/reporting/report_runs/${p["reportRun"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -36977,7 +38870,17 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/reporting/report_types` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -36998,7 +38901,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/reporting/report_types/${p["reportType"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -37036,13 +38949,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/reviews` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -37063,7 +38988,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/reviews/${p["review"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -37140,14 +39075,26 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/setup_attempts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - setup_intent: p["setupIntent"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + setup_intent: p["setupIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -37188,16 +39135,28 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/setup_intents` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - attach_to_self: p["attachToSelf"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_method: p["paymentMethod"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + attach_to_self: p["attachToSelf"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_method: p["paymentMethod"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -37996,10 +39955,18 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/setup_intents/${p["intent"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const query = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -39616,15 +41583,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/shipping_rates` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -39741,7 +41720,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/shipping_rates/${p["shippingRateToken"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -39885,12 +41874,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/sigma/scheduled_query_runs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -39911,7 +41908,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/sigma/scheduled_query_runs/${p["scheduledQueryRun"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -40117,10 +42124,18 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/sources/${p["source"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const query = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -40301,7 +42316,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/sources/${p["source"]}/mandate_notifications/${p["mandateNotification"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -40332,12 +42357,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/sources/${p["source"]}/source_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -40359,7 +42392,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/sources/${p["source"]}/source_transactions/${p["sourceTransaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -40424,13 +42467,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/subscription_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - subscription: p["subscription"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + subscription: p["subscription"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -40604,7 +42655,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/subscription_items/${p["item"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -40787,18 +42848,42 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/subscription_schedules` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - canceled_at: p["canceledAt"], - completed_at: p["completedAt"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - released_at: p["releasedAt"], - scheduled: p["scheduled"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + canceled_at: p["canceledAt"], + completed_at: p["completedAt"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + released_at: p["releasedAt"], + scheduled: p["scheduled"], + starting_after: p["startingAfter"], + }, + { + canceled_at: { + style: "deepObject", + explode: true, + }, + completed_at: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + released_at: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -41133,7 +43218,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/subscription_schedules/${p["schedule"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -41601,21 +43696,45 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/subscriptions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - automatic_tax: p["automaticTax"], - collection_method: p["collectionMethod"], - created: p["created"], - current_period_end: p["currentPeriodEnd"], - current_period_start: p["currentPeriodStart"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - price: p["price"], - starting_after: p["startingAfter"], - status: p["status"], - test_clock: p["testClock"], - }) + const query = this._query( + { + automatic_tax: p["automaticTax"], + collection_method: p["collectionMethod"], + created: p["created"], + current_period_end: p["currentPeriodEnd"], + current_period_start: p["currentPeriodStart"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + price: p["price"], + starting_after: p["startingAfter"], + status: p["status"], + test_clock: p["testClock"], + }, + { + automatic_tax: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + current_period_end: { + style: "deepObject", + explode: true, + }, + current_period_start: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -42152,12 +44271,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/subscriptions/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -42238,7 +44365,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/subscriptions/${p["subscriptionExposedId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -43128,7 +45265,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/tax/calculations/${p["calculation"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -43159,12 +45306,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/tax/calculations/${p["calculation"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -43200,13 +45355,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/tax/registrations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -44506,7 +46669,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/tax/registrations/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -44568,7 +46741,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/tax/settings` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -44756,7 +46939,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/tax/transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -44787,12 +46980,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/tax/transactions/${p["transaction"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -44822,12 +47023,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/tax_codes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -44848,7 +47057,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/tax_codes/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -44888,13 +47107,25 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/tax_ids` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - owner: p["owner"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + owner: p["owner"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + owner: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -45091,7 +47322,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/tax_ids/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -45131,15 +47372,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/tax_rates` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - inclusive: p["inclusive"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + inclusive: p["inclusive"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -45224,7 +47477,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/tax_rates/${p["taxRate"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -45328,13 +47591,21 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/terminal/configurations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - is_account_default: p["isAccountDefault"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + is_account_default: p["isAccountDefault"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -45635,7 +47906,17 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/terminal/configurations/${p["configuration"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -45987,12 +48268,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/terminal/locations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -46084,7 +48373,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/terminal/locations/${p["location"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -46193,16 +48492,24 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/terminal/readers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - device_type: p["deviceType"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - location: p["location"], - serial_number: p["serialNumber"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + device_type: p["deviceType"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + location: p["location"], + serial_number: p["serialNumber"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -46286,7 +48593,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/terminal/readers/${p["reader"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -49696,12 +52013,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/test_helpers/test_clocks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -49774,7 +52099,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/test_helpers/test_clocks/${p["testClock"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -50992,7 +53327,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/tokens/${p["token"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51044,15 +53389,31 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/topups` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - amount: p["amount"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + amount: p["amount"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + amount: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51120,7 +53481,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/topups/${p["topup"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51247,15 +53618,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/transfers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - destination: p["destination"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - transfer_group: p["transferGroup"], - }) + const query = this._query( + { + created: p["created"], + destination: p["destination"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + transfer_group: p["transferGroup"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51332,12 +53715,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/transfers/${p["id"]}/reversals` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51409,7 +53800,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/transfers/${p["transfer"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51480,7 +53881,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/transfers/${p["transfer"]}/reversals/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51562,15 +53973,23 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/credit_reversals` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - received_credit: p["receivedCredit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + received_credit: p["receivedCredit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51629,7 +54048,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/credit_reversals/${p["creditReversal"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51663,16 +54092,24 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/debit_reversals` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - received_debit: p["receivedDebit"], - resolution: p["resolution"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + received_debit: p["receivedDebit"], + resolution: p["resolution"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51731,7 +54168,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/debit_reversals/${p["debitReversal"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51770,14 +54217,26 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/financial_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -51916,7 +54375,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52120,7 +54589,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}/features` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52263,14 +54742,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/inbound_transfers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52334,7 +54821,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/inbound_transfers/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52419,16 +54916,28 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/outbound_payments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52569,7 +55078,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/outbound_payments/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52645,14 +55164,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/outbound_transfers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52743,7 +55270,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/outbound_transfers/${p["outboundTransfer"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52822,15 +55359,27 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/received_credits` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - linked_flows: p["linkedFlows"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + linked_flows: p["linkedFlows"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + linked_flows: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52851,7 +55400,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/received_credits/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52883,14 +55442,22 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/received_debits` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52911,7 +55478,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/received_debits/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52960,17 +55537,33 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/transaction_entries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - effective_at: p["effectiveAt"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - order_by: p["orderBy"], - starting_after: p["startingAfter"], - transaction: p["transaction"], - }) + const query = this._query( + { + created: p["created"], + effective_at: p["effectiveAt"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + order_by: p["orderBy"], + starting_after: p["startingAfter"], + transaction: p["transaction"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + effective_at: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -52991,7 +55584,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/transaction_entries/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -53045,17 +55648,33 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/treasury/transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - order_by: p["orderBy"], - starting_after: p["startingAfter"], - status: p["status"], - status_transitions: p["statusTransitions"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + order_by: p["orderBy"], + starting_after: p["startingAfter"], + status: p["status"], + status_transitions: p["statusTransitions"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + status_transitions: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -53076,7 +55695,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/treasury/transactions/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -53106,12 +55735,20 @@ export class StripeApi extends AbstractAxiosClient { > { const url = `/v1/webhook_endpoints` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, @@ -53562,7 +56199,17 @@ export class StripeApi extends AbstractAxiosClient { ): Promise> { const url = `/v1/webhook_endpoints/${p["webhookEndpoint"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._request({ url: url + query, diff --git a/integration-tests/typescript-axios/src/generated/todo-lists.yaml/client.ts b/integration-tests/typescript-axios/src/generated/todo-lists.yaml/client.ts index e5437a02..56bdcc90 100644 --- a/integration-tests/typescript-axios/src/generated/todo-lists.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/todo-lists.yaml/client.ts @@ -164,11 +164,23 @@ export class TodoListsExampleApi extends AbstractAxiosClient { ): Promise> { const url = `/list` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - statuses: p["statuses"], - tags: p["tags"], - }) + const query = this._query( + { + created: p["created"], + statuses: p["statuses"], + tags: p["tags"], + }, + { + statuses: { + style: "form", + explode: true, + }, + tags: { + style: "form", + explode: true, + }, + }, + ) return this._request({ url: url + query, diff --git a/integration-tests/typescript-fetch/src/generated/api.github.com.yaml/client.ts b/integration-tests/typescript-fetch/src/generated/api.github.com.yaml/client.ts index c9031734..2ead3fc5 100644 --- a/integration-tests/typescript-fetch/src/generated/api.github.com.yaml/client.ts +++ b/integration-tests/typescript-fetch/src/generated/api.github.com.yaml/client.ts @@ -450,26 +450,38 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/advisories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ghsa_id: p["ghsaId"], - type: p["type"], - cve_id: p["cveId"], - ecosystem: p["ecosystem"], - severity: p["severity"], - cwes: p["cwes"], - is_withdrawn: p["isWithdrawn"], - affects: p["affects"], - published: p["published"], - updated: p["updated"], - modified: p["modified"], - epss_percentage: p["epssPercentage"], - epss_percentile: p["epssPercentile"], - before: p["before"], - after: p["after"], - direction: p["direction"], - per_page: p["perPage"], - sort: p["sort"], - }) + const query = this._query( + { + ghsa_id: p["ghsaId"], + type: p["type"], + cve_id: p["cveId"], + ecosystem: p["ecosystem"], + severity: p["severity"], + cwes: p["cwes"], + is_withdrawn: p["isWithdrawn"], + affects: p["affects"], + published: p["published"], + updated: p["updated"], + modified: p["modified"], + epss_percentage: p["epssPercentage"], + epss_percentile: p["epssPercentile"], + before: p["before"], + after: p["after"], + direction: p["direction"], + per_page: p["perPage"], + sort: p["sort"], + }, + { + cwes: { + style: "form", + explode: true, + }, + affects: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -569,7 +581,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/app/hook/deliveries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], cursor: p["cursor"]}) + const query = this._query({ + per_page: p["perPage"], + cursor: p["cursor"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -628,7 +643,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/app/installation-requests` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -898,7 +916,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/assignments/${p["assignmentId"]}/accepted_assignments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -928,7 +949,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/classrooms` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -957,7 +981,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/classrooms/${p["classroomId"]}/assignments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1485,22 +1512,30 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/enterprises/${p["enterprise"]}/dependabot/alerts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - per_page: p["perPage"], - }) + const query = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + per_page: p["perPage"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1578,7 +1613,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1793,7 +1831,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/gists/${p["gistId"]}/comments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1912,7 +1953,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/gists/${p["gistId"]}/commits` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1933,7 +1977,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/gists/${p["gistId"]}/forks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2075,7 +2122,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/installation/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2251,7 +2301,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/marketplace_listing/plans` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2311,7 +2364,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<401, t_basic_error>> { const url = this.basePath + `/marketplace_listing/stubbed/plans` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2369,7 +2425,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/networks/${p["owner"]}/${p["repo"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2564,7 +2623,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/octocat` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({s: p["s"]}) + const query = this._query({ + s: p["s"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2579,7 +2640,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<304, void>> { const url = this.basePath + `/organizations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({since: p["since"], per_page: p["perPage"]}) + const query = this._query({ + since: p["since"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2600,7 +2664,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/organizations/${p["org"]}/dependabot/repository-access` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2825,7 +2892,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/actions/cache/usage-by-repository` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2849,7 +2919,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/actions/hosted-runners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3132,7 +3205,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/actions/permissions/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3402,7 +3478,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/actions/runner-groups/${p["runnerGroupId"]}/hosted-runners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3429,7 +3508,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/actions/runner-groups/${p["runnerGroupId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3513,7 +3595,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/actions/runner-groups/${p["runnerGroupId"]}/runners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3871,7 +3956,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/actions/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3966,7 +4054,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/actions/secrets/${p["secretName"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4047,7 +4138,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/actions/variables` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4153,7 +4247,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/actions/variables/${p["name"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4395,7 +4492,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/orgs/${p["org"]}/blocks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5157,7 +5257,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/codespaces` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5270,7 +5373,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/codespaces/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5372,7 +5478,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/codespaces/secrets/${p["secretName"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5487,7 +5596,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/copilot/billing/seats` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5683,22 +5795,30 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/dependabot/alerts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - per_page: p["perPage"], - }) + const query = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + per_page: p["perPage"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5722,7 +5842,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/dependabot/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5818,7 +5941,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/dependabot/secrets/${p["secretName"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5906,7 +6032,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/orgs/${p["org"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5922,7 +6051,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/orgs/${p["org"]}/failed_invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5938,7 +6070,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/orgs/${p["org"]}/hooks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6103,7 +6238,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/hooks/${p["hookId"]}/deliveries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], cursor: p["cursor"]}) + const query = this._query({ + per_page: p["perPage"], + cursor: p["cursor"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6203,15 +6341,23 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/insights/api/route-stats/${p["actorType"]}/${p["actorId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - api_route_substring: p["apiRouteSubstring"], - }) + const query = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + api_route_substring: p["apiRouteSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6239,15 +6385,23 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/orgs/${p["org"]}/insights/api/subject-stats` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - subject_name_substring: p["subjectNameSubstring"], - }) + const query = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + subject_name_substring: p["subjectNameSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6423,15 +6577,23 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/insights/api/user-stats/${p["userId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - min_timestamp: p["minTimestamp"], - max_timestamp: p["maxTimestamp"], - page: p["page"], - per_page: p["perPage"], - direction: p["direction"], - sort: p["sort"], - actor_name_substring: p["actorNameSubstring"], - }) + const query = this._query( + { + min_timestamp: p["minTimestamp"], + max_timestamp: p["maxTimestamp"], + page: p["page"], + per_page: p["perPage"], + direction: p["direction"], + sort: p["sort"], + actor_name_substring: p["actorNameSubstring"], + }, + { + sort: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6468,7 +6630,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/installations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6615,7 +6780,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/invitations/${p["invitationId"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6815,7 +6983,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/members/${p["username"]}/codespaces` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6971,11 +7142,19 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/orgs/${p["org"]}/migrations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - per_page: p["perPage"], - page: p["page"], - exclude: p["exclude"], - }) + const query = this._query( + { + per_page: p["perPage"], + page: p["page"], + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7024,7 +7203,17 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/migrations/${p["migrationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({exclude: p["exclude"]}) + const query = this._query( + { + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7090,7 +7279,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/migrations/${p["migrationId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7253,7 +7445,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/organization-roles/${p["roleId"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7274,7 +7469,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/organization-roles/${p["roleId"]}/users` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7470,7 +7668,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/packages/${p["packageType"]}/${p["packageName"]}/restore` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({token: p["token"]}) + const query = this._query({ + token: p["token"], + }) return this._fetch(url + query, {method: "POST", ...opts, headers}, timeout) } @@ -7623,18 +7823,30 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/personal-access-token-requests` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - per_page: p["perPage"], - page: p["page"], - sort: p["sort"], - direction: p["direction"], - owner: p["owner"], - repository: p["repository"], - permission: p["permission"], - last_used_before: p["lastUsedBefore"], - last_used_after: p["lastUsedAfter"], - token_id: p["tokenId"], - }) + const query = this._query( + { + per_page: p["perPage"], + page: p["page"], + sort: p["sort"], + direction: p["direction"], + owner: p["owner"], + repository: p["repository"], + permission: p["permission"], + last_used_before: p["lastUsedBefore"], + last_used_after: p["lastUsedAfter"], + token_id: p["tokenId"], + }, + { + owner: { + style: "form", + explode: true, + }, + token_id: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7722,7 +7934,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/personal-access-token-requests/${p["patRequestId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7752,18 +7967,30 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/personal-access-tokens` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - per_page: p["perPage"], - page: p["page"], - sort: p["sort"], - direction: p["direction"], - owner: p["owner"], - repository: p["repository"], - permission: p["permission"], - last_used_before: p["lastUsedBefore"], - last_used_after: p["lastUsedAfter"], - token_id: p["tokenId"], - }) + const query = this._query( + { + per_page: p["perPage"], + page: p["page"], + sort: p["sort"], + direction: p["direction"], + owner: p["owner"], + repository: p["repository"], + permission: p["permission"], + last_used_before: p["lastUsedBefore"], + last_used_after: p["lastUsedAfter"], + token_id: p["tokenId"], + }, + { + owner: { + style: "form", + explode: true, + }, + token_id: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7847,7 +8074,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/orgs/${p["org"]}/personal-access-tokens/${p["patId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7873,7 +8103,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/orgs/${p["org"]}/private-registries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8242,7 +8475,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/orgs/${p["org"]}/public_members` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8597,7 +8833,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/rulesets/${p["rulesetId"]}/history` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8816,7 +9055,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/settings/network-configurations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8959,7 +9201,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<403, t_basic_error>> { const url = this.basePath + `/orgs/${p["org"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9475,7 +9720,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/teams/${p["teamSlug"]}/invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9579,7 +9827,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/orgs/${p["org"]}/teams/${p["teamSlug"]}/projects` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9668,7 +9919,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/orgs/${p["org"]}/teams/${p["teamSlug"]}/repos` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9751,7 +10005,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/orgs/${p["org"]}/teams/${p["teamSlug"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10302,7 +10559,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/projects/${p["projectId"]}/columns` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10623,7 +10883,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/caches` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({key: p["key"], ref: p["ref"]}) + const query = this._query({ + key: p["key"], + ref: p["ref"], + }) return this._fetch( url + query, @@ -10783,7 +11046,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/organization-secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10810,7 +11076,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/organization-variables` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11340,7 +11609,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/runs/${p["runId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({exclude_pull_requests: p["excludePullRequests"]}) + const query = this._query({ + exclude_pull_requests: p["excludePullRequests"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11446,7 +11717,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/runs/${p["runId"]}/attempts/${p["attemptNumber"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({exclude_pull_requests: p["excludePullRequests"]}) + const query = this._query({ + exclude_pull_requests: p["excludePullRequests"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11476,7 +11749,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/runs/${p["runId"]}/attempts/${p["attemptNumber"]}/jobs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11765,7 +12041,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11866,7 +12145,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/variables` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11974,7 +12256,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/actions/workflows` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12193,7 +12478,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/assignees` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -13412,7 +13700,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/check-runs/${p["checkRunId"]}/annotations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -13932,7 +14223,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/code-scanning/analyses/${p["analysisId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({confirm_delete: p["confirmDelete"]}) + const query = this._query({ + confirm_delete: p["confirmDelete"], + }) return this._fetch( url + query, @@ -14288,7 +14581,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/codeowners/errors` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14317,7 +14612,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/codespaces` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14404,7 +14702,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/codespaces/devcontainers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14472,7 +14773,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/codespaces/new` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"], client_ip: p["clientIp"]}) + const query = this._query({ + ref: p["ref"], + client_ip: p["clientIp"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14534,7 +14838,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/codespaces/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14746,7 +15053,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/comments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14970,7 +15280,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/commits/${p["commitSha"]}/comments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15021,7 +15334,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/commits/${p["commitSha"]}/pulls` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15054,7 +15370,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/commits/${p["ref"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15148,7 +15467,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/commits/${p["ref"]}/status` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15168,7 +15490,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/commits/${p["ref"]}/statuses` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15215,7 +15540,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/compare/${p["basehead"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15245,7 +15573,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/contents/${p["path"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15399,24 +15729,32 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/dependabot/alerts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - state: p["state"], - severity: p["severity"], - ecosystem: p["ecosystem"], - package: p["package"], - manifest: p["manifest"], - epss_percentage: p["epssPercentage"], - has: p["has"], - scope: p["scope"], - sort: p["sort"], - direction: p["direction"], - page: p["page"], - per_page: p["perPage"], - before: p["before"], - after: p["after"], - first: p["first"], - last: p["last"], - }) + const query = this._query( + { + state: p["state"], + severity: p["severity"], + ecosystem: p["ecosystem"], + package: p["package"], + manifest: p["manifest"], + epss_percentage: p["epssPercentage"], + has: p["has"], + scope: p["scope"], + sort: p["sort"], + direction: p["direction"], + page: p["page"], + per_page: p["perPage"], + before: p["before"], + after: p["after"], + first: p["first"], + last: p["last"], + }, + { + has: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15503,7 +15841,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/dependabot/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15601,7 +15942,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/dependency-graph/compare/${p["basehead"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({name: p["name"]}) + const query = this._query({ + name: p["name"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15780,7 +16123,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/deployments/${p["deploymentId"]}/statuses` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15887,7 +16233,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/environments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15986,7 +16335,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/deployment-branch-policies` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -16146,7 +16498,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/deployment_protection_rules/apps` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -16210,7 +16565,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -16317,7 +16675,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/variables` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -16421,7 +16782,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -16806,7 +17170,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/git/trees/${p["treeSha"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({recursive: p["recursive"]}) + const query = this._query({ + recursive: p["recursive"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -16823,7 +17189,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/hooks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -16996,7 +17365,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/hooks/${p["hookId"]}/deliveries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], cursor: p["cursor"]}) + const query = this._query({ + per_page: p["perPage"], + cursor: p["cursor"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -17199,7 +17571,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/import/authors` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({since: p["since"]}) + const query = this._query({ + since: p["since"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -17355,7 +17729,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -17696,7 +18073,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/issues/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -17957,7 +18337,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/issues/${p["issueNumber"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -17982,7 +18365,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/issues/${p["issueNumber"]}/labels` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -18315,7 +18701,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/issues/${p["issueNumber"]}/sub_issues` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -18409,7 +18798,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/issues/${p["issueNumber"]}/timeline` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -18426,7 +18818,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -18498,7 +18893,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/labels` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -18615,7 +19013,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/license` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -18807,7 +19207,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/milestones/${p["milestoneNumber"]}/labels` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -18986,7 +19389,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/pages/builds` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19755,7 +20161,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/commits` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19787,7 +20196,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/files` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19949,7 +20361,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/reviews` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20085,7 +20500,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/reviews/${p["reviewId"]}/comments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20210,7 +20628,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/readme` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20232,7 +20652,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/readme/${p["dir"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ref: p["ref"]}) + const query = this._query({ + ref: p["ref"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20249,7 +20671,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/releases` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20495,7 +20920,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/releases/${p["releaseId"]}/assets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20521,7 +20949,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { basePath + `/repos/${p["owner"]}/${p["repo"]}/releases/${p["releaseId"]}/assets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({name: p["name"], label: p["label"]}) + const query = this._query({ + name: p["name"], + label: p["label"], + }) return this._fetch( url + query, @@ -20633,7 +21064,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/rules/branches/${p["branch"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20769,7 +21203,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/rulesets/${p["rulesetId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({includes_parents: p["includesParents"]}) + const query = this._query({ + includes_parents: p["includesParents"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20850,7 +21286,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/rulesets/${p["rulesetId"]}/history` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20957,7 +21396,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/secret-scanning/alerts/${p["alertNumber"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({hide_secret: p["hideSecret"]}) + const query = this._query({ + hide_secret: p["hideSecret"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21027,7 +21468,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/repos/${p["owner"]}/${p["repo"]}/secret-scanning/alerts/${p["alertNumber"]}/locations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21298,7 +21742,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/stargazers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21449,7 +21896,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/subscribers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21525,7 +21975,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/tags` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21622,7 +22075,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21639,7 +22095,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/topics` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({page: p["page"], per_page: p["perPage"]}) + const query = this._query({ + page: p["page"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21681,7 +22140,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/traffic/clones` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per: p["per"]}) + const query = this._query({ + per: p["per"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21729,7 +22190,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/repos/${p["owner"]}/${p["repo"]}/traffic/views` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per: p["per"]}) + const query = this._query({ + per: p["per"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21858,7 +22321,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({since: p["since"]}) + const query = this._query({ + since: p["since"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -22573,7 +23038,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/teams/${p["teamId"]}/invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -22716,7 +23184,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/teams/${p["teamId"]}/projects` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -22802,7 +23273,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<404, t_basic_error>> { const url = this.basePath + `/teams/${p["teamId"]}/repos` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -22885,7 +23359,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/teams/${p["teamId"]}/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -22959,7 +23436,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/blocks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -23140,7 +23620,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/codespaces/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -23566,7 +24049,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/emails` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -23649,7 +24135,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/followers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -23669,7 +24158,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/following` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -23748,7 +24240,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/gpg_keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -23840,7 +24335,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/installations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -23869,7 +24367,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/user/installations/${p["installationId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24011,7 +24512,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24096,7 +24600,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/marketplace_purchases` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24115,7 +24622,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/marketplace_purchases/stubbed` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24203,7 +24713,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/migrations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24257,7 +24770,17 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/migrations/${p["migrationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({exclude: p["exclude"]}) + const query = this._query( + { + exclude: p["exclude"], + }, + { + exclude: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24333,7 +24856,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/user/migrations/${p["migrationId"]}/repositories` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24353,7 +24879,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/orgs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24461,7 +24990,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/user/packages/${p["packageType"]}/${p["packageName"]}/restore` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({token: p["token"]}) + const query = this._query({ + token: p["token"], + }) return this._fetch(url + query, {method: "POST", ...opts, headers}, timeout) } @@ -24626,7 +25157,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/public_emails` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24759,7 +25293,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/repository_invitations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24820,7 +25357,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/social_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24893,7 +25433,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/ssh_signing_keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25065,7 +25608,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/subscriptions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25085,7 +25631,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { > { const url = this.basePath + `/user/teams` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25115,7 +25664,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise | Res<304, void>> { const url = this.basePath + `/users` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({since: p["since"], per_page: p["perPage"]}) + const query = this._query({ + since: p["since"], + per_page: p["perPage"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25336,7 +25888,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25354,7 +25909,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { const url = this.basePath + `/users/${p["username"]}/events/orgs/${p["org"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25370,7 +25928,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/events/public` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25386,7 +25947,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/followers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25402,7 +25966,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/following` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25454,7 +26021,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/gpg_keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25511,7 +26081,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25527,7 +26100,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/orgs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25646,7 +26222,9 @@ export class GitHubV3RestApi extends AbstractFetchClient { this.basePath + `/users/${p["username"]}/packages/${p["packageType"]}/${p["packageName"]}/restore` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({token: p["token"]}) + const query = this._query({ + token: p["token"], + }) return this._fetch(url + query, {method: "POST", ...opts, headers}, timeout) } @@ -25797,7 +26375,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/received_events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25813,7 +26394,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/received_events/public` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25937,7 +26521,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/social_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25953,7 +26540,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/ssh_signing_keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25992,7 +26582,10 @@ export class GitHubV3RestApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/users/${p["username"]}/subscriptions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({per_page: p["perPage"], page: p["page"]}) + const query = this._query({ + per_page: p["perPage"], + page: p["page"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } diff --git a/integration-tests/typescript-fetch/src/generated/azure-core-data-plane-service.tsp/client.ts b/integration-tests/typescript-fetch/src/generated/azure-core-data-plane-service.tsp/client.ts index 1296be14..b3cdee14 100644 --- a/integration-tests/typescript-fetch/src/generated/azure-core-data-plane-service.tsp/client.ts +++ b/integration-tests/typescript-fetch/src/generated/azure-core-data-plane-service.tsp/client.ts @@ -82,7 +82,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -116,7 +118,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { this.basePath + `/widgets/${p["widgetName"]}/operations/${p["operationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -156,7 +160,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( @@ -193,7 +199,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -237,7 +245,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch( url + query, @@ -269,13 +279,21 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({ - "api-version": p["apiVersion"], - top: p["top"], - skip: p["skip"], - maxpagesize: p["maxpagesize"], - select: p["select"], - }) + const query = this._query( + { + "api-version": p["apiVersion"], + top: p["top"], + skip: p["skip"], + maxpagesize: p["maxpagesize"], + select: p["select"], + }, + { + select: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -308,7 +326,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -348,7 +368,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( @@ -381,7 +403,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { const url = this.basePath + `/widgets/${p["widgetId"]}/repairs/${p["operationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -426,7 +450,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( @@ -461,7 +487,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { this.basePath + `/widgets/${p["widgetName"]}/parts/${p["widgetPartName"]}/operations/${p["operationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -499,7 +527,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( @@ -529,7 +559,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -564,7 +596,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -602,7 +636,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch( url + query, @@ -644,7 +680,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( @@ -678,7 +716,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { this.basePath + `/manufacturers/${p["manufacturerId"]}/operations/${p["operationId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -718,7 +758,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( @@ -756,7 +798,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -800,7 +844,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch( url + query, @@ -828,7 +874,9 @@ export class ContosoWidgetManager extends AbstractFetchClient { }, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } diff --git a/integration-tests/typescript-fetch/src/generated/azure-resource-manager.tsp/client.ts b/integration-tests/typescript-fetch/src/generated/azure-resource-manager.tsp/client.ts index b8fdfcd9..6b41f8a6 100644 --- a/integration-tests/typescript-fetch/src/generated/azure-resource-manager.tsp/client.ts +++ b/integration-tests/typescript-fetch/src/generated/azure-resource-manager.tsp/client.ts @@ -65,7 +65,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { const url = this.basePath + `/providers/Microsoft.ContosoProviderHub/operations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -87,7 +89,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { this.basePath + `/subscriptions/${p["subscriptionId"]}/resourceGroups/${p["resourceGroupName"]}/providers/Microsoft.ContosoProviderHub/employees/${p["employeeName"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -114,7 +118,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { {Accept: "application/json", "Content-Type": "application/json"}, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( @@ -145,7 +151,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { {Accept: "application/json", "Content-Type": "application/json"}, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( @@ -173,7 +181,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { this.basePath + `/subscriptions/${p["subscriptionId"]}/resourceGroups/${p["resourceGroupName"]}/providers/Microsoft.ContosoProviderHub/employees/${p["employeeName"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch( url + query, @@ -200,7 +210,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { this.basePath + `/subscriptions/${p["subscriptionId"]}/resourceGroups/${p["resourceGroupName"]}/providers/Microsoft.ContosoProviderHub/employees/${p["employeeName"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "HEAD", ...opts, headers}, timeout) } @@ -221,7 +233,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { this.basePath + `/subscriptions/${p["subscriptionId"]}/resourceGroups/${p["resourceGroupName"]}/providers/Microsoft.ContosoProviderHub/employees` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -241,7 +255,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { this.basePath + `/subscriptions/${p["subscriptionId"]}/providers/Microsoft.ContosoProviderHub/employees` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -267,7 +283,9 @@ export class ContosoProviderHubClient extends AbstractFetchClient { {Accept: "application/json", "Content-Type": "application/json"}, opts.headers, ) - const query = this._query({"api-version": p["apiVersion"]}) + const query = this._query({ + "api-version": p["apiVersion"], + }) const body = JSON.stringify(p.requestBody) return this._fetch( diff --git a/integration-tests/typescript-fetch/src/generated/okta.idp.yaml/client.ts b/integration-tests/typescript-fetch/src/generated/okta.idp.yaml/client.ts index 167f31a2..41d3f62e 100644 --- a/integration-tests/typescript-fetch/src/generated/okta.idp.yaml/client.ts +++ b/integration-tests/typescript-fetch/src/generated/okta.idp.yaml/client.ts @@ -183,7 +183,9 @@ export class MyAccountManagement extends AbstractFetchClient { > { const url = this.basePath + `/idp/myaccount/authenticators` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query({ + expand: p["expand"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -204,7 +206,9 @@ export class MyAccountManagement extends AbstractFetchClient { const url = this.basePath + `/idp/myaccount/authenticators/${p["authenticatorId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query({ + expand: p["expand"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } diff --git a/integration-tests/typescript-fetch/src/generated/okta.oauth.yaml/client.ts b/integration-tests/typescript-fetch/src/generated/okta.oauth.yaml/client.ts index 7d5d25c5..802f6ffa 100644 --- a/integration-tests/typescript-fetch/src/generated/okta.oauth.yaml/client.ts +++ b/integration-tests/typescript-fetch/src/generated/okta.oauth.yaml/client.ts @@ -88,7 +88,9 @@ export class OktaOpenIdConnectOAuth20 extends AbstractFetchClient { ): Promise | Res<400, t_Error>> { const url = this.basePath + `/.well-known/openid-configuration` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({client_id: p["clientId"]}) + const query = this._query({ + client_id: p["clientId"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -229,7 +231,11 @@ export class OktaOpenIdConnectOAuth20 extends AbstractFetchClient { ): Promise | Res<403, t_Error> | Res<429, t_Error>> { const url = this.basePath + `/oauth2/v1/clients` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({after: p["after"], limit: p["limit"], q: p["q"]}) + const query = this._query({ + after: p["after"], + limit: p["limit"], + q: p["q"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -410,7 +416,9 @@ export class OktaOpenIdConnectOAuth20 extends AbstractFetchClient { ): Promise | Res<429, t_Error>> { const url = this.basePath + `/oauth2/v1/keys` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({client_id: p["clientId"]}) + const query = this._query({ + client_id: p["clientId"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -609,7 +617,9 @@ export class OktaOpenIdConnectOAuth20 extends AbstractFetchClient { this.basePath + `/oauth2/${p["authorizationServerId"]}/.well-known/oauth-authorization-server` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({client_id: p["clientId"]}) + const query = this._query({ + client_id: p["clientId"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -626,7 +636,9 @@ export class OktaOpenIdConnectOAuth20 extends AbstractFetchClient { this.basePath + `/oauth2/${p["authorizationServerId"]}/.well-known/openid-configuration` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({client_id: p["clientId"]}) + const query = this._query({ + client_id: p["clientId"], + }) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } diff --git a/integration-tests/typescript-fetch/src/generated/petstore-expanded.yaml/client.ts b/integration-tests/typescript-fetch/src/generated/petstore-expanded.yaml/client.ts index e8352879..ae1f9458 100644 --- a/integration-tests/typescript-fetch/src/generated/petstore-expanded.yaml/client.ts +++ b/integration-tests/typescript-fetch/src/generated/petstore-expanded.yaml/client.ts @@ -52,7 +52,18 @@ export class SwaggerPetstore extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/pets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({tags: p["tags"], limit: p["limit"]}) + const query = this._query( + { + tags: p["tags"], + limit: p["limit"], + }, + { + tags: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } diff --git a/integration-tests/typescript-fetch/src/generated/stripe.yaml/client.ts b/integration-tests/typescript-fetch/src/generated/stripe.yaml/client.ts index 8ebe2521..7af1785c 100644 --- a/integration-tests/typescript-fetch/src/generated/stripe.yaml/client.ts +++ b/integration-tests/typescript-fetch/src/generated/stripe.yaml/client.ts @@ -247,7 +247,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/account` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -479,13 +489,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1128,7 +1150,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/accounts/${p["account"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1796,7 +1828,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/accounts/${p["account"]}/bank_accounts/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1890,7 +1932,17 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/accounts/${p["account"]}/capabilities` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1908,7 +1960,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/accounts/${p["account"]}/capabilities/${p["capability"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -1973,13 +2035,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/accounts/${p["account"]}/external_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - object: p["object"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + object: p["object"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2076,7 +2146,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/accounts/${p["account"]}/external_accounts/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2213,13 +2293,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/accounts/${p["account"]}/people` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - relationship: p["relationship"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + relationship: p["relationship"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + relationship: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2443,7 +2535,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/accounts/${p["account"]}/people/${p["person"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2674,13 +2776,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/accounts/${p["account"]}/persons` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - relationship: p["relationship"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + relationship: p["relationship"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + relationship: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -2904,7 +3018,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/accounts/${p["account"]}/persons/${p["person"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3153,13 +3277,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/apple_pay/domains` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - domain_name: p["domainName"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + domain_name: p["domainName"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3212,7 +3344,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/apple_pay/domains/${p["domain"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3249,14 +3391,26 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/application_fees` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3273,7 +3427,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/application_fees/${p["fee"]}/refunds/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3328,7 +3492,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/application_fees/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3390,12 +3564,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/application_fees/${p["id"]}/refunds` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3463,13 +3645,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/apps/secrets` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - scope: p["scope"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + scope: p["scope"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + scope: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3550,11 +3744,23 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/apps/secrets/find` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - name: p["name"], - scope: p["scope"], - }) + const query = this._query( + { + expand: p["expand"], + name: p["name"], + scope: p["scope"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + scope: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3568,7 +3774,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/balance` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3608,17 +3824,29 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/balance/history` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payout: p["payout"], - source: p["source"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payout: p["payout"], + source: p["source"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3633,7 +3861,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/balance/history/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3673,17 +3911,29 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/balance_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payout: p["payout"], - source: p["source"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payout: p["payout"], + source: p["source"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3698,7 +3948,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/balance_transactions/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3728,14 +3988,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/billing/alerts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - alert_type: p["alertType"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - meter: p["meter"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + alert_type: p["alertType"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + meter: p["meter"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3786,7 +4054,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/billing/alerts/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3906,11 +4184,23 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/billing/credit_balance_summary` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - expand: p["expand"], - filter: p["filter"], - }) + const query = this._query( + { + customer: p["customer"], + expand: p["expand"], + filter: p["filter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + filter: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3940,14 +4230,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/billing/credit_balance_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - credit_grant: p["creditGrant"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + credit_grant: p["creditGrant"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3965,7 +4263,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/billing/credit_balance_transactions/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -3994,13 +4302,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/billing/credit_grants` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4066,7 +4382,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/billing/credit_grants/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4257,13 +4583,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/billing/meters` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4318,7 +4652,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/billing/meters/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4414,16 +4758,24 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/billing/meters/${p["id"]}/event_summaries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - end_time: p["endTime"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - start_time: p["startTime"], - starting_after: p["startingAfter"], - value_grouping_window: p["valueGroupingWindow"], - }) + const query = this._query( + { + customer: p["customer"], + end_time: p["endTime"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + start_time: p["startTime"], + starting_after: p["startingAfter"], + value_grouping_window: p["valueGroupingWindow"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4484,14 +4836,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/billing_portal/configurations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - ending_before: p["endingBefore"], - expand: p["expand"], - is_default: p["isDefault"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + ending_before: p["endingBefore"], + expand: p["expand"], + is_default: p["isDefault"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4638,7 +4998,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/billing_portal/configurations/${p["configuration"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -4944,16 +5314,28 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/charges` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - transfer_group: p["transferGroup"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + transfer_group: p["transferGroup"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5084,12 +5466,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/charges/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5104,7 +5494,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/charges/${p["charge"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5222,7 +5622,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/charges/${p["charge"]}/dispute` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5458,12 +5868,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/charges/${p["charge"]}/refunds` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5531,7 +5949,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/charges/${p["charge"]}/refunds/${p["refund"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -5615,19 +6043,35 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/checkout/sessions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - customer_details: p["customerDetails"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - payment_link: p["paymentLink"], - starting_after: p["startingAfter"], - status: p["status"], - subscription: p["subscription"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + customer_details: p["customerDetails"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + payment_link: p["paymentLink"], + starting_after: p["startingAfter"], + status: p["status"], + subscription: p["subscription"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + customer_details: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6727,7 +7171,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/checkout/sessions/${p["session"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6898,12 +7352,20 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/checkout/sessions/${p["session"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6931,12 +7393,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/climate/orders` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -6987,7 +7457,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/climate/orders/${p["order"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7088,12 +7568,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/climate/products` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7108,7 +7596,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/climate/products/${p["product"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7136,12 +7634,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/climate/suppliers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7156,7 +7662,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/climate/suppliers/${p["supplier"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7172,7 +7688,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/confirmation_tokens/${p["confirmationToken"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7200,12 +7726,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/country_specs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7220,7 +7754,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/country_specs/${p["country"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7256,13 +7800,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/coupons` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7348,7 +7904,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/coupons/${p["coupon"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7433,15 +7999,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/credit_notes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7570,22 +8148,46 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/credit_notes/preview` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - amount: p["amount"], - credit_amount: p["creditAmount"], - effective_at: p["effectiveAt"], - email_type: p["emailType"], - expand: p["expand"], - invoice: p["invoice"], - lines: p["lines"], - memo: p["memo"], - metadata: p["metadata"], - out_of_band_amount: p["outOfBandAmount"], - reason: p["reason"], - refund_amount: p["refundAmount"], - refunds: p["refunds"], - shipping_cost: p["shippingCost"], - }) + const query = this._query( + { + amount: p["amount"], + credit_amount: p["creditAmount"], + effective_at: p["effectiveAt"], + email_type: p["emailType"], + expand: p["expand"], + invoice: p["invoice"], + lines: p["lines"], + memo: p["memo"], + metadata: p["metadata"], + out_of_band_amount: p["outOfBandAmount"], + reason: p["reason"], + refund_amount: p["refundAmount"], + refunds: p["refunds"], + shipping_cost: p["shippingCost"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lines: { + style: "deepObject", + explode: true, + }, + metadata: { + style: "deepObject", + explode: true, + }, + refunds: { + style: "deepObject", + explode: true, + }, + shipping_cost: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7655,25 +8257,49 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/credit_notes/preview/lines` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - amount: p["amount"], - credit_amount: p["creditAmount"], - effective_at: p["effectiveAt"], - email_type: p["emailType"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - lines: p["lines"], - memo: p["memo"], - metadata: p["metadata"], - out_of_band_amount: p["outOfBandAmount"], - reason: p["reason"], - refund_amount: p["refundAmount"], - refunds: p["refunds"], - shipping_cost: p["shippingCost"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + amount: p["amount"], + credit_amount: p["creditAmount"], + effective_at: p["effectiveAt"], + email_type: p["emailType"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + lines: p["lines"], + memo: p["memo"], + metadata: p["metadata"], + out_of_band_amount: p["outOfBandAmount"], + reason: p["reason"], + refund_amount: p["refundAmount"], + refunds: p["refunds"], + shipping_cost: p["shippingCost"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lines: { + style: "deepObject", + explode: true, + }, + metadata: { + style: "deepObject", + explode: true, + }, + refunds: { + style: "deepObject", + explode: true, + }, + shipping_cost: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7702,12 +8328,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/credit_notes/${p["creditNote"]}/lines` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7722,7 +8356,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/credit_notes/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -7889,15 +8533,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - email: p["email"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - test_clock: p["testClock"], - }) + const query = this._query( + { + created: p["created"], + email: p["email"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + test_clock: p["testClock"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8162,12 +8818,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8197,7 +8861,17 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers/${p["customer"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8385,12 +9059,20 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/customers/${p["customer"]}/balance_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8448,7 +9130,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/customers/${p["customer"]}/balance_transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8521,12 +9213,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers/${p["customer"]}/bank_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8651,7 +9351,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/customers/${p["customer"]}/bank_accounts/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8783,12 +9493,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers/${p["customer"]}/cards` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8913,7 +9631,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/customers/${p["customer"]}/cards/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -8995,7 +9723,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/customers/${p["customer"]}/cash_balance` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9064,12 +9802,20 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/customers/${p["customer"]}/cash_balance_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9089,7 +9835,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/customers/${p["customer"]}/cash_balance_transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9117,7 +9873,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/customers/${p["customer"]}/discount` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9249,14 +10015,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers/${p["customer"]}/payment_methods` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - allow_redisplay: p["allowRedisplay"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + allow_redisplay: p["allowRedisplay"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9274,7 +10048,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/customers/${p["customer"]}/payment_methods/${p["paymentMethod"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9304,13 +10088,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers/${p["customer"]}/sources` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - object: p["object"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + object: p["object"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9435,7 +10227,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/customers/${p["customer"]}/sources/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9566,12 +10368,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers/${p["customer"]}/subscriptions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -9983,7 +10793,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/customers/${p["customer"]}/subscriptions/${p["subscriptionExposedId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10414,7 +11234,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/customers/${p["customer"]}/subscriptions/${p["subscriptionExposedId"]}/discount` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10443,12 +11273,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/customers/${p["customer"]}/tax_ids` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10618,7 +11456,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/customers/${p["customer"]}/tax_ids/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10656,15 +11504,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/disputes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10679,7 +11539,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/disputes/${p["dispute"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10867,13 +11737,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/entitlements/active_entitlements` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10891,7 +11769,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/entitlements/active_entitlements/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10921,14 +11809,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/entitlements/features` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - archived: p["archived"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_key: p["lookupKey"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + archived: p["archived"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_key: p["lookupKey"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -10973,7 +11869,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/entitlements/features/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11117,16 +12023,32 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/events` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - delivery_success: p["deliverySuccess"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - types: p["types"], - }) + const query = this._query( + { + created: p["created"], + delivery_success: p["deliverySuccess"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + types: p["types"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + types: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11141,7 +12063,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/events/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11169,12 +12101,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/exchange_rates` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11189,7 +12129,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/exchange_rates/${p["rateId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11293,15 +12243,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/file_links` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - expired: p["expired"], - file: p["file"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + expired: p["expired"], + file: p["file"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11349,7 +12311,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/file_links/${p["link"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11444,14 +12416,26 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/files` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - purpose: p["purpose"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + purpose: p["purpose"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11491,7 +12475,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/files/${p["file"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11524,14 +12518,26 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/financial_connections/accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - account_holder: p["accountHolder"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - session: p["session"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + account_holder: p["accountHolder"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + session: p["session"], + starting_after: p["startingAfter"], + }, + { + account_holder: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11549,7 +12555,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/financial_connections/accounts/${p["account"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11616,13 +12632,21 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/financial_connections/accounts/${p["account"]}/owners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - ownership: p["ownership"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + ownership: p["ownership"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11798,7 +12822,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/financial_connections/sessions/${p["session"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11838,15 +12872,31 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/financial_connections/transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - account: p["account"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - transacted_at: p["transactedAt"], - transaction_refresh: p["transactionRefresh"], - }) + const query = this._query( + { + account: p["account"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + transacted_at: p["transactedAt"], + transaction_refresh: p["transactionRefresh"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + transacted_at: { + style: "deepObject", + explode: true, + }, + transaction_refresh: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11865,7 +12915,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/financial_connections/transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11899,13 +12959,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/forwarding/requests` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -11967,7 +13039,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/forwarding/requests/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12006,16 +13088,28 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/identity/verification_reports` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_reference_id: p["clientReferenceId"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - verification_session: p["verificationSession"], - }) + const query = this._query( + { + client_reference_id: p["clientReferenceId"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + verification_session: p["verificationSession"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12033,7 +13127,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/identity/verification_reports/${p["report"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12077,16 +13181,28 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/identity/verification_sessions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_reference_id: p["clientReferenceId"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - related_customer: p["relatedCustomer"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + client_reference_id: p["clientReferenceId"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + related_customer: p["relatedCustomer"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12172,7 +13288,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/identity/verification_sessions/${p["session"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12337,15 +13463,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/invoice_payments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - payment: p["payment"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + payment: p["payment"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + payment: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12360,7 +13498,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/invoice_payments/${p["invoicePayment"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12389,13 +13537,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/invoice_rendering_templates` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12414,7 +13570,18 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/invoice_rendering_templates/${p["template"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"], version: p["version"]}) + const query = this._query( + { + expand: p["expand"], + version: p["version"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12522,16 +13689,28 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/invoiceitems` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - invoice: p["invoice"], - limit: p["limit"], - pending: p["pending"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + invoice: p["invoice"], + limit: p["limit"], + pending: p["pending"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12638,7 +13817,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/invoiceitems/${p["invoiceitem"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -12777,18 +13966,34 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/invoices` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - collection_method: p["collectionMethod"], - created: p["created"], - customer: p["customer"], - due_date: p["dueDate"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - subscription: p["subscription"], - }) + const query = this._query( + { + collection_method: p["collectionMethod"], + created: p["created"], + customer: p["customer"], + due_date: p["dueDate"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + subscription: p["subscription"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + due_date: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -13636,12 +14841,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/invoices/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -13669,7 +14882,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/invoices/${p["invoice"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14238,12 +15461,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/invoices/${p["invoice"]}/lines` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14738,16 +15969,28 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/issuing/authorizations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - card: p["card"], - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + card: p["card"], + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14763,7 +16006,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/issuing/authorizations/${p["authorization"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -14921,17 +16174,29 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/issuing/cardholders` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - email: p["email"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - phone_number: p["phoneNumber"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const query = this._query( + { + created: p["created"], + email: p["email"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + phone_number: p["phoneNumber"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -15937,7 +17202,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/issuing/cardholders/${p["cardholder"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -16976,20 +18251,32 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/issuing/cards` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - exp_month: p["expMonth"], - exp_year: p["expYear"], - expand: p["expand"], - last4: p["last4"], - limit: p["limit"], - personalization_design: p["personalizationDesign"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const query = this._query( + { + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + exp_month: p["expMonth"], + exp_year: p["expYear"], + expand: p["expand"], + last4: p["last4"], + limit: p["limit"], + personalization_design: p["personalizationDesign"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -17987,7 +19274,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/issuing/cards/${p["card"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19012,15 +20309,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/issuing/disputes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - transaction: p["transaction"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + transaction: p["transaction"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19191,7 +20500,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/issuing/disputes/${p["dispute"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19423,15 +20742,31 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/issuing/personalization_designs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_keys: p["lookupKeys"], - preferences: p["preferences"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_keys: p["lookupKeys"], + preferences: p["preferences"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + lookup_keys: { + style: "deepObject", + explode: true, + }, + preferences: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19496,7 +20831,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/issuing/personalization_designs/${p["personalizationDesign"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19587,14 +20932,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/issuing/physical_bundles` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - type: p["type"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19610,7 +20963,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/issuing/physical_bundles/${p["physicalBundle"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19625,7 +20988,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/issuing/settlements/${p["settlement"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19703,15 +21076,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/issuing/tokens` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - card: p["card"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + card: p["card"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19726,7 +21111,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/issuing/tokens/${p["token"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19791,16 +21186,28 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/issuing/transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - card: p["card"], - cardholder: p["cardholder"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + card: p["card"], + cardholder: p["cardholder"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19815,7 +21222,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/issuing/transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19930,7 +21347,17 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/link_account_sessions/${p["session"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19963,14 +21390,26 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/linked_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - account_holder: p["accountHolder"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - session: p["session"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + account_holder: p["accountHolder"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + session: p["session"], + starting_after: p["startingAfter"], + }, + { + account_holder: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -19987,7 +21426,17 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/linked_accounts/${p["account"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20050,13 +21499,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/linked_accounts/${p["account"]}/owners` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - ownership: p["ownership"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + ownership: p["ownership"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20105,7 +21562,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/mandates/${p["mandate"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -20142,14 +21609,26 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/payment_intents` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21317,12 +22796,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/payment_intents/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -21338,10 +22825,18 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/payment_intents/${p["intent"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const query = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -23817,13 +25312,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/payment_links` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24405,7 +25908,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/payment_links/${p["paymentLink"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24962,12 +26475,20 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/payment_links/${p["paymentLink"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -24996,13 +26517,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/payment_method_configurations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - application: p["application"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + application: p["application"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + application: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25366,7 +26899,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/payment_method_configurations/${p["configuration"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25744,14 +27287,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/payment_method_domains` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - domain_name: p["domainName"], - enabled: p["enabled"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + domain_name: p["domainName"], + enabled: p["enabled"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25793,7 +27344,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/payment_method_domains/${p["paymentMethodDomain"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -25938,14 +27499,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/payment_methods` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -26339,7 +27908,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/payment_methods/${p["paymentMethod"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -26530,16 +28109,32 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/payouts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - arrival_date: p["arrivalDate"], - created: p["created"], - destination: p["destination"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + arrival_date: p["arrivalDate"], + created: p["created"], + destination: p["destination"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + arrival_date: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -26589,7 +28184,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/payouts/${p["payout"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -26731,15 +28336,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/plans` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - product: p["product"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + product: p["product"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -26838,7 +28455,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/plans/${p["plan"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -26926,19 +28553,39 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/prices` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - lookup_keys: p["lookupKeys"], - product: p["product"], - recurring: p["recurring"], - starting_after: p["startingAfter"], - type: p["type"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + lookup_keys: p["lookupKeys"], + product: p["product"], + recurring: p["recurring"], + starting_after: p["startingAfter"], + type: p["type"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + lookup_keys: { + style: "deepObject", + explode: true, + }, + recurring: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27077,12 +28724,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/prices/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27097,7 +28752,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/prices/${p["price"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27214,17 +28879,33 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/products` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - ids: p["ids"], - limit: p["limit"], - shippable: p["shippable"], - starting_after: p["startingAfter"], - url: p["url"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + ids: p["ids"], + limit: p["limit"], + shippable: p["shippable"], + starting_after: p["startingAfter"], + url: p["url"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + ids: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27354,12 +29035,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/products/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27387,7 +29076,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/products/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27486,12 +29185,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/products/${p["product"]}/features` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27549,7 +29256,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/products/${p["product"]}/features/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27589,17 +29306,29 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/promotion_codes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - code: p["code"], - coupon: p["coupon"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + code: p["code"], + coupon: p["coupon"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27661,7 +29390,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/promotion_codes/${p["promotionCode"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27746,15 +29485,23 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/quotes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - test_clock: p["testClock"], - }) + const query = this._query( + { + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + test_clock: p["testClock"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -27913,7 +29660,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/quotes/${p["quote"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28142,12 +29899,20 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/quotes/${p["quote"]}/computed_upfront_line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28208,12 +29973,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/quotes/${p["quote"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28231,7 +30004,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = basePath + `/v1/quotes/${p["quote"]}/pdf` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28269,15 +30052,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/radar/early_fraud_warnings` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28293,7 +30088,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/radar/early_fraud_warnings/${p["earlyFraudWarning"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28331,15 +30136,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/radar/value_list_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - value: p["value"], - value_list: p["valueList"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + value: p["value"], + value_list: p["valueList"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28395,7 +30212,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/radar/value_list_items/${p["item"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28433,15 +30260,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/radar/value_lists` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - alias: p["alias"], - contains: p["contains"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + alias: p["alias"], + contains: p["contains"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28511,7 +30350,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/radar/value_lists/${p["valueList"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28586,15 +30435,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/refunds` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - charge: p["charge"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_intent: p["paymentIntent"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + charge: p["charge"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_intent: p["paymentIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28660,7 +30521,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/refunds/${p["refund"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -28765,13 +30636,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/reporting/report_runs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -29460,7 +31343,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/reporting/report_runs/${p["reportRun"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -29485,7 +31378,17 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/reporting/report_types` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -29500,7 +31403,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/reporting/report_types/${p["reportType"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -29536,13 +31449,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/reviews` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -29557,7 +31482,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/reviews/${p["review"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -29625,14 +31560,26 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/setup_attempts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - setup_intent: p["setupIntent"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + setup_intent: p["setupIntent"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -29671,16 +31618,28 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/setup_intents` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - attach_to_self: p["attachToSelf"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - payment_method: p["paymentMethod"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + attach_to_self: p["attachToSelf"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + payment_method: p["paymentMethod"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -30292,10 +32251,18 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/setup_intents/${p["intent"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const query = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -31556,15 +33523,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/shipping_rates` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - currency: p["currency"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + currency: p["currency"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -31655,7 +33634,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/shipping_rates/${p["shippingRateToken"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -31775,12 +33764,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/sigma/scheduled_query_runs` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -31796,7 +33793,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/sigma/scheduled_query_runs/${p["scheduledQueryRun"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -31953,10 +33960,18 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/sources/${p["source"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) + const query = this._query( + { + client_secret: p["clientSecret"], + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -32096,7 +34111,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/sources/${p["source"]}/mandate_notifications/${p["mandateNotification"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -32125,12 +34150,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/sources/${p["source"]}/source_transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -32148,7 +34181,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/sources/${p["source"]}/source_transactions/${p["sourceTransaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -32204,13 +34247,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/subscription_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - subscription: p["subscription"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + subscription: p["subscription"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -32337,7 +34388,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/subscription_items/${p["item"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -32486,18 +34547,42 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/subscription_schedules` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - canceled_at: p["canceledAt"], - completed_at: p["completedAt"], - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - released_at: p["releasedAt"], - scheduled: p["scheduled"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + canceled_at: p["canceledAt"], + completed_at: p["completedAt"], + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + released_at: p["releasedAt"], + scheduled: p["scheduled"], + starting_after: p["startingAfter"], + }, + { + canceled_at: { + style: "deepObject", + explode: true, + }, + completed_at: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + released_at: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -32737,7 +34822,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/subscription_schedules/${p["schedule"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -33101,21 +35196,45 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/subscriptions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - automatic_tax: p["automaticTax"], - collection_method: p["collectionMethod"], - created: p["created"], - current_period_end: p["currentPeriodEnd"], - current_period_start: p["currentPeriodStart"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - price: p["price"], - starting_after: p["startingAfter"], - status: p["status"], - test_clock: p["testClock"], - }) + const query = this._query( + { + automatic_tax: p["automaticTax"], + collection_method: p["collectionMethod"], + created: p["created"], + current_period_end: p["currentPeriodEnd"], + current_period_start: p["currentPeriodStart"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + price: p["price"], + starting_after: p["startingAfter"], + status: p["status"], + test_clock: p["testClock"], + }, + { + automatic_tax: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + current_period_end: { + style: "deepObject", + explode: true, + }, + current_period_start: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -33512,12 +35631,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/subscriptions/search` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) + const query = this._query( + { + expand: p["expand"], + limit: p["limit"], + page: p["page"], + query: p["query"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -33582,7 +35709,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/subscriptions/${p["subscriptionExposedId"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -34267,7 +36404,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/tax/calculations/${p["calculation"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -34297,12 +36444,20 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/tax/calculations/${p["calculation"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -34336,13 +36491,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/tax/registrations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35219,7 +37382,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/tax/registrations/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35268,7 +37441,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/tax/settings` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35412,7 +37595,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/tax/transactions/${p["transaction"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35442,12 +37635,20 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/tax/transactions/${p["transaction"]}/line_items` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35475,12 +37676,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/tax_codes` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35495,7 +37704,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/tax_codes/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35533,13 +37752,25 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/tax_ids` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - owner: p["owner"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + owner: p["owner"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + owner: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35715,7 +37946,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/tax_ids/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35753,15 +37994,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/tax_rates` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - active: p["active"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - inclusive: p["inclusive"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + active: p["active"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + inclusive: p["inclusive"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35828,7 +38081,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/tax_rates/${p["taxRate"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -35917,13 +38180,21 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/terminal/configurations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - is_account_default: p["isAccountDefault"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + is_account_default: p["isAccountDefault"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -36147,7 +38418,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/terminal/configurations/${p["configuration"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -36412,12 +38693,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/terminal/locations` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -36490,7 +38779,17 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/terminal/locations/${p["location"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -36586,16 +38885,24 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/terminal/readers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - device_type: p["deviceType"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - location: p["location"], - serial_number: p["serialNumber"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + device_type: p["deviceType"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + location: p["location"], + serial_number: p["serialNumber"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -36660,7 +38967,17 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/terminal/readers/${p["reader"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -39572,12 +41889,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/test_helpers/test_clocks` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -39633,7 +41958,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/test_helpers/test_clocks/${p["testClock"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -40603,7 +42938,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/tokens/${p["token"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -40653,15 +42998,31 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/topups` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - amount: p["amount"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + amount: p["amount"], + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + amount: { + style: "deepObject", + explode: true, + }, + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -40713,7 +43074,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/topups/${p["topup"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -40821,15 +43192,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/transfers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - destination: p["destination"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - transfer_group: p["transferGroup"], - }) + const query = this._query( + { + created: p["created"], + destination: p["destination"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + transfer_group: p["transferGroup"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -40893,12 +43276,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/transfers/${p["id"]}/reversals` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -40954,7 +43345,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/transfers/${p["transfer"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41010,7 +43411,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/transfers/${p["transfer"]}/reversals/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41081,15 +43492,23 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/credit_reversals` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - received_credit: p["receivedCredit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + received_credit: p["receivedCredit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41134,7 +43553,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/treasury/credit_reversals/${p["creditReversal"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41166,16 +43595,24 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/debit_reversals` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - received_debit: p["receivedDebit"], - resolution: p["resolution"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + received_debit: p["receivedDebit"], + resolution: p["resolution"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41220,7 +43657,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/treasury/debit_reversals/${p["debitReversal"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41257,14 +43704,26 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/financial_accounts` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41362,7 +43821,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/treasury/financial_accounts/${p["financialAccount"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41514,7 +43983,17 @@ export class StripeApi extends AbstractFetchClient { this.basePath + `/v1/treasury/financial_accounts/${p["financialAccount"]}/features` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41626,14 +44105,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/inbound_transfers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41682,7 +44169,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/treasury/inbound_transfers/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41760,16 +44257,28 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/outbound_payments` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41867,7 +44376,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/treasury/outbound_payments/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -41935,14 +44454,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/outbound_transfers` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42010,7 +44537,17 @@ export class StripeApi extends AbstractFetchClient { const url = this.basePath + `/v1/treasury/outbound_transfers/${p["outboundTransfer"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42084,15 +44621,27 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/received_credits` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - linked_flows: p["linkedFlows"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + linked_flows: p["linkedFlows"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + linked_flows: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42107,7 +44656,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/treasury/received_credits/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42137,14 +44696,22 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/received_debits` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42159,7 +44726,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/treasury/received_debits/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42206,17 +44783,33 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/transaction_entries` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - effective_at: p["effectiveAt"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - order_by: p["orderBy"], - starting_after: p["startingAfter"], - transaction: p["transaction"], - }) + const query = this._query( + { + created: p["created"], + effective_at: p["effectiveAt"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + order_by: p["orderBy"], + starting_after: p["startingAfter"], + transaction: p["transaction"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + effective_at: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42233,7 +44826,17 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/transaction_entries/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42282,17 +44885,33 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/treasury/transactions` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - order_by: p["orderBy"], - starting_after: p["startingAfter"], - status: p["status"], - status_transitions: p["statusTransitions"], - }) + const query = this._query( + { + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + order_by: p["orderBy"], + starting_after: p["startingAfter"], + status: p["status"], + status_transitions: p["statusTransitions"], + }, + { + created: { + style: "deepObject", + explode: true, + }, + expand: { + style: "deepObject", + explode: true, + }, + status_transitions: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42307,7 +44926,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/treasury/transactions/${p["id"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42335,12 +44964,20 @@ export class StripeApi extends AbstractFetchClient { > { const url = this.basePath + `/v1/webhook_endpoints` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) + const query = this._query( + { + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } @@ -42766,7 +45403,17 @@ export class StripeApi extends AbstractFetchClient { ): Promise | Res> { const url = this.basePath + `/v1/webhook_endpoints/${p["webhookEndpoint"]}` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({expand: p["expand"]}) + const query = this._query( + { + expand: p["expand"], + }, + { + expand: { + style: "deepObject", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } diff --git a/integration-tests/typescript-fetch/src/generated/todo-lists.yaml/client.ts b/integration-tests/typescript-fetch/src/generated/todo-lists.yaml/client.ts index 2bed2a74..b6a85217 100644 --- a/integration-tests/typescript-fetch/src/generated/todo-lists.yaml/client.ts +++ b/integration-tests/typescript-fetch/src/generated/todo-lists.yaml/client.ts @@ -168,11 +168,23 @@ export class TodoListsExampleApi extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/list` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - created: p["created"], - statuses: p["statuses"], - tags: p["tags"], - }) + const query = this._query( + { + created: p["created"], + statuses: p["statuses"], + tags: p["tags"], + }, + { + statuses: { + style: "form", + explode: true, + }, + tags: { + style: "form", + explode: true, + }, + }, + ) return this._fetch(url + query, {method: "GET", ...opts, headers}, timeout) } From 48cb0e468946a46af0759a0a3b6959477193f880 Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sun, 2 Nov 2025 16:20:01 +0000 Subject: [PATCH 3/3] chore: e2e tests --- e2e/openapi.yaml | 110 +++++++ e2e/src/express.entrypoint.ts | 3 + e2e/src/generated/client/axios/client.ts | 129 +++++++- e2e/src/generated/client/axios/models.ts | 19 ++ e2e/src/generated/client/axios/schemas.ts | 15 +- e2e/src/generated/client/fetch/client.ts | 128 +++++++- e2e/src/generated/client/fetch/models.ts | 19 ++ e2e/src/generated/client/fetch/schemas.ts | 15 +- e2e/src/generated/server/express/models.ts | 38 +++ .../server/express/routes/escape-hatches.ts | 4 +- .../server/express/routes/media-types.ts | 4 +- .../server/express/routes/query-parameters.ts | 289 ++++++++++++++++++ .../server/express/routes/request-headers.ts | 4 +- .../server/express/routes/validation.ts | 4 +- e2e/src/generated/server/express/schemas.ts | 15 +- e2e/src/generated/server/koa/models.ts | 38 +++ .../server/koa/routes/escape-hatches.ts | 4 +- .../server/koa/routes/media-types.ts | 4 +- .../server/koa/routes/query-parameters.ts | 266 ++++++++++++++++ .../server/koa/routes/request-headers.ts | 4 +- .../generated/server/koa/routes/validation.ts | 4 +- e2e/src/generated/server/koa/schemas.ts | 15 +- e2e/src/index.axios.spec.ts | 37 +++ e2e/src/index.fetch.spec.ts | 37 +++ e2e/src/koa.entrypoint.ts | 6 + e2e/src/routes/express/query-parameters.ts | 39 +++ e2e/src/routes/koa/query-parameters.ts | 39 +++ 27 files changed, 1256 insertions(+), 33 deletions(-) create mode 100644 e2e/src/generated/server/express/routes/query-parameters.ts create mode 100644 e2e/src/generated/server/koa/routes/query-parameters.ts create mode 100644 e2e/src/routes/express/query-parameters.ts create mode 100644 e2e/src/routes/koa/query-parameters.ts diff --git a/e2e/openapi.yaml b/e2e/openapi.yaml index 29d13da3..343b6baf 100644 --- a/e2e/openapi.yaml +++ b/e2e/openapi.yaml @@ -54,6 +54,115 @@ paths: 200: $ref: '#/components/responses/GetHeaders' + /params/simple-query: + get: + tags: + - query-parameters + parameters: + - name: orderBy + in: query + required: true + schema: + type: string + enum: [ asc, desc ] + - name: limit + in: query + required: true + schema: + type: number + responses: + 200: + description: success + content: + application/json: + schema: + type: object + required: + - orderBy + - limit + properties: + orderBy: + type: string + limit: + type: number + /params/default-object-query: + get: + tags: + - query-parameters + parameters: + - name: filter + in: query + required: true + schema: + type: object + required: + - name + - age + properties: + name: + type: string + age: + type: number + responses: + 200: + description: success + content: + application/json: + schema: + type: object + required: + - filter + properties: + filter: + type: object + required: + - name + - age + properties: + name: + type: string + age: + type: number + /params/unexploded-object-query: + get: + tags: + - query-parameters + parameters: + - name: filter + in: query + required: true + explode: false + schema: + type: object + required: + - name + - age + properties: + name: + type: string + age: + type: number + responses: + 200: + description: success + content: + application/json: + schema: + type: object + required: + - filter + properties: + filter: + type: object + required: + - name + - age + properties: + name: + type: string + age: + type: number + /validation/numbers/random-number: get: tags: @@ -127,6 +236,7 @@ paths: type: string 204: description: ok + /responses/500: get: tags: diff --git a/e2e/src/express.entrypoint.ts b/e2e/src/express.entrypoint.ts index 9cff20ea..dfe3adcc 100644 --- a/e2e/src/express.entrypoint.ts +++ b/e2e/src/express.entrypoint.ts @@ -2,6 +2,7 @@ import {type NextFunction, type Request, type Response, Router} from "express" import {bootstrap} from "./generated/server/express/index.ts" import {createEscapeHatchesRouter} from "./routes/express/escape-hatches.ts" import {createMediaTypesRouter} from "./routes/express/media-types.ts" +import {createQueryParametersRouter} from "./routes/express/query-parameters.ts" import {createRequestHeadersRouter} from "./routes/express/request-headers.ts" import {createValidationRouter} from "./routes/express/validation.ts" import {createErrorResponse} from "./shared.ts" @@ -13,11 +14,13 @@ function createRouter() { const validationRouter = createValidationRouter() const escapeHatchesRouter = createEscapeHatchesRouter() const mediaTypesRouter = createMediaTypesRouter() + const queryParametersRouter = createQueryParametersRouter() router.use(requestHeadersRouter) router.use(validationRouter) router.use(escapeHatchesRouter) router.use(mediaTypesRouter) + router.use(queryParametersRouter) return router } diff --git a/e2e/src/generated/client/axios/client.ts b/e2e/src/generated/client/axios/client.ts index 2c2eb8df..5e10a355 100644 --- a/e2e/src/generated/client/axios/client.ts +++ b/e2e/src/generated/client/axios/client.ts @@ -8,20 +8,27 @@ import { type Server, } from "@nahkies/typescript-axios-runtime/main" import type {AxiosRequestConfig, AxiosResponse} from "axios" -import {z} from "zod/v4" +import {z} from "zod/v3" import type { t_Enumerations, t_getHeadersRequestJson200Response, t_getHeadersUndeclaredJson200Response, + t_getParamsDefaultObjectQueryJson200Response, + t_getParamsSimpleQueryJson200Response, + t_getParamsUnexplodedObjectQueryJson200Response, t_ProductOrder, t_postValidationOptionalBodyJson200Response, t_postValidationOptionalBodyJsonRequestBody, t_RandomNumber, + UnknownEnumStringValue, } from "./models.ts" import { s_Enumerations, s_getHeadersRequestJson200Response, s_getHeadersUndeclaredJson200Response, + s_getParamsDefaultObjectQueryJson200Response, + s_getParamsSimpleQueryJson200Response, + s_getParamsUnexplodedObjectQueryJson200Response, s_ProductOrder, s_postValidationOptionalBodyJson200Response, s_RandomNumber, @@ -124,6 +131,108 @@ export class E2ETestClient extends AbstractAxiosClient { return {...res, data: s_getHeadersRequestJson200Response.parse(res.data)} } + async getParamsSimpleQuery( + p: { + orderBy: "asc" | "desc" | UnknownEnumStringValue + limit: number + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/params/simple-query` + const headers = this._headers({Accept: "application/json"}, opts.headers) + const query = this._query({ + orderBy: p["orderBy"], + limit: p["limit"], + }) + + const res = await this._request({ + url: url + query, + method: "GET", + ...(timeout ? {timeout} : {}), + ...opts, + headers, + }) + + return {...res, data: s_getParamsSimpleQueryJson200Response.parse(res.data)} + } + + async getParamsDefaultObjectQuery( + p: { + filter: { + age: number + name: string + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/params/default-object-query` + const headers = this._headers({Accept: "application/json"}, opts.headers) + const query = this._query( + { + filter: p["filter"], + }, + { + filter: { + style: "form", + explode: true, + }, + }, + ) + + const res = await this._request({ + url: url + query, + method: "GET", + ...(timeout ? {timeout} : {}), + ...opts, + headers, + }) + + return { + ...res, + data: s_getParamsDefaultObjectQueryJson200Response.parse(res.data), + } + } + + async getParamsUnexplodedObjectQuery( + p: { + filter: { + age: number + name: string + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/params/unexploded-object-query` + const headers = this._headers({Accept: "application/json"}, opts.headers) + const query = this._query( + { + filter: p["filter"], + }, + { + filter: { + style: "form", + explode: false, + }, + }, + ) + + const res = await this._request({ + url: url + query, + method: "GET", + ...(timeout ? {timeout} : {}), + ...opts, + headers, + }) + + return { + ...res, + data: s_getParamsUnexplodedObjectQueryJson200Response.parse(res.data), + } + } + async getValidationNumbersRandomNumber( p: { max?: number @@ -135,11 +244,19 @@ export class E2ETestClient extends AbstractAxiosClient { ): Promise> { const url = `/validation/numbers/random-number` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - max: p["max"], - min: p["min"], - forbidden: p["forbidden"], - }) + const query = this._query( + { + max: p["max"], + min: p["min"], + forbidden: p["forbidden"], + }, + { + forbidden: { + style: "form", + explode: true, + }, + }, + ) const res = await this._request({ url: url + query, diff --git a/e2e/src/generated/client/axios/models.ts b/e2e/src/generated/client/axios/models.ts index b38ebebb..879f2ea0 100644 --- a/e2e/src/generated/client/axios/models.ts +++ b/e2e/src/generated/client/axios/models.ts @@ -47,6 +47,25 @@ export type t_getHeadersUndeclaredJson200Response = { typedHeaders?: unknown | undefined } +export type t_getParamsDefaultObjectQueryJson200Response = { + filter: { + age: number + name: string + } +} + +export type t_getParamsSimpleQueryJson200Response = { + limit: number + orderBy: string +} + +export type t_getParamsUnexplodedObjectQueryJson200Response = { + filter: { + age: number + name: string + } +} + export type t_postValidationOptionalBodyJson200Response = { id?: string | undefined } diff --git a/e2e/src/generated/client/axios/schemas.ts b/e2e/src/generated/client/axios/schemas.ts index 1c8a844f..e2d079f1 100644 --- a/e2e/src/generated/client/axios/schemas.ts +++ b/e2e/src/generated/client/axios/schemas.ts @@ -2,7 +2,7 @@ /* tslint:disable */ /* eslint-disable */ -import {z} from "zod/v4" +import {z} from "zod/v3" import type {UnknownEnumNumberValue, UnknownEnumStringValue} from "./models.ts" export const s_Enumerations = z.object({ @@ -47,6 +47,19 @@ export const s_getHeadersRequestJson200Response = z.object({ typedHeaders: z.unknown().optional(), }) +export const s_getParamsSimpleQueryJson200Response = z.object({ + orderBy: z.string(), + limit: z.coerce.number(), +}) + +export const s_getParamsDefaultObjectQueryJson200Response = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), +}) + +export const s_getParamsUnexplodedObjectQueryJson200Response = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), +}) + export const s_postValidationOptionalBodyJson200Response = z.object({ id: z.string().optional(), }) diff --git a/e2e/src/generated/client/fetch/client.ts b/e2e/src/generated/client/fetch/client.ts index efcb1cfe..18560432 100644 --- a/e2e/src/generated/client/fetch/client.ts +++ b/e2e/src/generated/client/fetch/client.ts @@ -8,21 +8,28 @@ import { type Res, type Server, } from "@nahkies/typescript-fetch-runtime/main" -import {responseValidationFactory} from "@nahkies/typescript-fetch-runtime/zod-v4" -import {z} from "zod/v4" +import {responseValidationFactory} from "@nahkies/typescript-fetch-runtime/zod-v3" +import {z} from "zod/v3" import type { t_Enumerations, t_getHeadersRequestJson200Response, t_getHeadersUndeclaredJson200Response, + t_getParamsDefaultObjectQueryJson200Response, + t_getParamsSimpleQueryJson200Response, + t_getParamsUnexplodedObjectQueryJson200Response, t_ProductOrder, t_postValidationOptionalBodyJson200Response, t_postValidationOptionalBodyJsonRequestBody, t_RandomNumber, + UnknownEnumStringValue, } from "./models.ts" import { s_Enumerations, s_getHeadersRequestJson200Response, s_getHeadersUndeclaredJson200Response, + s_getParamsDefaultObjectQueryJson200Response, + s_getParamsSimpleQueryJson200Response, + s_getParamsUnexplodedObjectQueryJson200Response, s_ProductOrder, s_postValidationOptionalBodyJson200Response, s_RandomNumber, @@ -119,6 +126,105 @@ export class E2ETestClient extends AbstractFetchClient { )(res) } + async getParamsSimpleQuery( + p: { + orderBy: "asc" | "desc" | UnknownEnumStringValue + limit: number + }, + timeout?: number, + opts: RequestInit = {}, + ): Promise> { + const url = this.basePath + `/params/simple-query` + const headers = this._headers({Accept: "application/json"}, opts.headers) + const query = this._query({ + orderBy: p["orderBy"], + limit: p["limit"], + }) + + const res = this._fetch( + url + query, + {method: "GET", ...opts, headers}, + timeout, + ) + + return responseValidationFactory( + [["200", s_getParamsSimpleQueryJson200Response]], + undefined, + )(res) + } + + async getParamsDefaultObjectQuery( + p: { + filter: { + age: number + name: string + } + }, + timeout?: number, + opts: RequestInit = {}, + ): Promise> { + const url = this.basePath + `/params/default-object-query` + const headers = this._headers({Accept: "application/json"}, opts.headers) + const query = this._query( + { + filter: p["filter"], + }, + { + filter: { + style: "form", + explode: true, + }, + }, + ) + + const res = this._fetch( + url + query, + {method: "GET", ...opts, headers}, + timeout, + ) + + return responseValidationFactory( + [["200", s_getParamsDefaultObjectQueryJson200Response]], + undefined, + )(res) + } + + async getParamsUnexplodedObjectQuery( + p: { + filter: { + age: number + name: string + } + }, + timeout?: number, + opts: RequestInit = {}, + ): Promise> { + const url = this.basePath + `/params/unexploded-object-query` + const headers = this._headers({Accept: "application/json"}, opts.headers) + const query = this._query( + { + filter: p["filter"], + }, + { + filter: { + style: "form", + explode: false, + }, + }, + ) + + const res = this._fetch( + url + query, + {method: "GET", ...opts, headers}, + timeout, + ) + + return responseValidationFactory( + [["200", s_getParamsUnexplodedObjectQueryJson200Response]], + undefined, + )(res) + } + async getValidationNumbersRandomNumber( p: { max?: number @@ -130,11 +236,19 @@ export class E2ETestClient extends AbstractFetchClient { ): Promise> { const url = this.basePath + `/validation/numbers/random-number` const headers = this._headers({Accept: "application/json"}, opts.headers) - const query = this._query({ - max: p["max"], - min: p["min"], - forbidden: p["forbidden"], - }) + const query = this._query( + { + max: p["max"], + min: p["min"], + forbidden: p["forbidden"], + }, + { + forbidden: { + style: "form", + explode: true, + }, + }, + ) const res = this._fetch( url + query, diff --git a/e2e/src/generated/client/fetch/models.ts b/e2e/src/generated/client/fetch/models.ts index b38ebebb..879f2ea0 100644 --- a/e2e/src/generated/client/fetch/models.ts +++ b/e2e/src/generated/client/fetch/models.ts @@ -47,6 +47,25 @@ export type t_getHeadersUndeclaredJson200Response = { typedHeaders?: unknown | undefined } +export type t_getParamsDefaultObjectQueryJson200Response = { + filter: { + age: number + name: string + } +} + +export type t_getParamsSimpleQueryJson200Response = { + limit: number + orderBy: string +} + +export type t_getParamsUnexplodedObjectQueryJson200Response = { + filter: { + age: number + name: string + } +} + export type t_postValidationOptionalBodyJson200Response = { id?: string | undefined } diff --git a/e2e/src/generated/client/fetch/schemas.ts b/e2e/src/generated/client/fetch/schemas.ts index 1c8a844f..e2d079f1 100644 --- a/e2e/src/generated/client/fetch/schemas.ts +++ b/e2e/src/generated/client/fetch/schemas.ts @@ -2,7 +2,7 @@ /* tslint:disable */ /* eslint-disable */ -import {z} from "zod/v4" +import {z} from "zod/v3" import type {UnknownEnumNumberValue, UnknownEnumStringValue} from "./models.ts" export const s_Enumerations = z.object({ @@ -47,6 +47,19 @@ export const s_getHeadersRequestJson200Response = z.object({ typedHeaders: z.unknown().optional(), }) +export const s_getParamsSimpleQueryJson200Response = z.object({ + orderBy: z.string(), + limit: z.coerce.number(), +}) + +export const s_getParamsDefaultObjectQueryJson200Response = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), +}) + +export const s_getParamsUnexplodedObjectQueryJson200Response = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), +}) + export const s_postValidationOptionalBodyJson200Response = z.object({ id: z.string().optional(), }) diff --git a/e2e/src/generated/server/express/models.ts b/e2e/src/generated/server/express/models.ts index 63c554ce..7b577456 100644 --- a/e2e/src/generated/server/express/models.ts +++ b/e2e/src/generated/server/express/models.ts @@ -47,6 +47,44 @@ export type t_getHeadersUndeclaredJson200Response = { typedHeaders?: unknown | undefined } +export type t_GetParamsDefaultObjectQueryQuerySchema = { + filter: { + age: number + name: string + } +} + +export type t_getParamsDefaultObjectQueryJson200Response = { + filter: { + age: number + name: string + } +} + +export type t_GetParamsSimpleQueryQuerySchema = { + limit: number + orderBy: "asc" | "desc" +} + +export type t_getParamsSimpleQueryJson200Response = { + limit: number + orderBy: string +} + +export type t_GetParamsUnexplodedObjectQueryQuerySchema = { + filter: { + age: number + name: string + } +} + +export type t_getParamsUnexplodedObjectQueryJson200Response = { + filter: { + age: number + name: string + } +} + export type t_GetValidationNumbersRandomNumberQuerySchema = { forbidden?: number[] | undefined max?: number | undefined diff --git a/e2e/src/generated/server/express/routes/escape-hatches.ts b/e2e/src/generated/server/express/routes/escape-hatches.ts index 8a6e579c..0e68fc1c 100644 --- a/e2e/src/generated/server/express/routes/escape-hatches.ts +++ b/e2e/src/generated/server/express/routes/escape-hatches.ts @@ -10,9 +10,9 @@ import { SkipResponse, type StatusCode, } from "@nahkies/typescript-express-runtime/server" -import {responseValidationFactory} from "@nahkies/typescript-express-runtime/zod-v4" +import {responseValidationFactory} from "@nahkies/typescript-express-runtime/zod-v3" import {type NextFunction, type Request, type Response, Router} from "express" -import {z} from "zod/v4" +import {z} from "zod/v3" export type GetEscapeHatchesPlainTextResponder = { with200(): ExpressRuntimeResponse diff --git a/e2e/src/generated/server/express/routes/media-types.ts b/e2e/src/generated/server/express/routes/media-types.ts index b6df76a8..179e79f2 100644 --- a/e2e/src/generated/server/express/routes/media-types.ts +++ b/e2e/src/generated/server/express/routes/media-types.ts @@ -16,9 +16,9 @@ import { import { parseRequestInput, responseValidationFactory, -} from "@nahkies/typescript-express-runtime/zod-v4" +} from "@nahkies/typescript-express-runtime/zod-v3" import {type NextFunction, type Request, type Response, Router} from "express" -import {z} from "zod/v4" +import {z} from "zod/v3" import type { t_PostMediaTypesTextRequestBodySchema, t_PostMediaTypesXWwwFormUrlencodedRequestBodySchema, diff --git a/e2e/src/generated/server/express/routes/query-parameters.ts b/e2e/src/generated/server/express/routes/query-parameters.ts new file mode 100644 index 00000000..3b4092d9 --- /dev/null +++ b/e2e/src/generated/server/express/routes/query-parameters.ts @@ -0,0 +1,289 @@ +/** AUTOGENERATED - DO NOT EDIT **/ +/* tslint:disable */ +/* eslint-disable */ + +import { + ExpressRuntimeError, + RequestInputType, +} from "@nahkies/typescript-express-runtime/errors" +import { + type ExpressRuntimeResponder, + ExpressRuntimeResponse, + type Params, + SkipResponse, + type StatusCode, +} from "@nahkies/typescript-express-runtime/server" +import { + parseRequestInput, + responseValidationFactory, +} from "@nahkies/typescript-express-runtime/zod-v3" +import {type NextFunction, type Request, type Response, Router} from "express" +import {z} from "zod/v3" +import type { + t_GetParamsDefaultObjectQueryQuerySchema, + t_GetParamsSimpleQueryQuerySchema, + t_GetParamsUnexplodedObjectQueryQuerySchema, + t_getParamsDefaultObjectQueryJson200Response, + t_getParamsSimpleQueryJson200Response, + t_getParamsUnexplodedObjectQueryJson200Response, +} from "../models.ts" +import { + s_getParamsDefaultObjectQueryJson200Response, + s_getParamsSimpleQueryJson200Response, + s_getParamsUnexplodedObjectQueryJson200Response, +} from "../schemas.ts" + +export type GetParamsSimpleQueryResponder = { + with200(): ExpressRuntimeResponse +} & ExpressRuntimeResponder + +export type GetParamsSimpleQuery = ( + params: Params, + respond: GetParamsSimpleQueryResponder, + req: Request, + res: Response, + next: NextFunction, +) => Promise | typeof SkipResponse> + +export type GetParamsDefaultObjectQueryResponder = { + with200(): ExpressRuntimeResponse +} & ExpressRuntimeResponder + +export type GetParamsDefaultObjectQuery = ( + params: Params, + respond: GetParamsDefaultObjectQueryResponder, + req: Request, + res: Response, + next: NextFunction, +) => Promise | typeof SkipResponse> + +export type GetParamsUnexplodedObjectQueryResponder = { + with200(): ExpressRuntimeResponse +} & ExpressRuntimeResponder + +export type GetParamsUnexplodedObjectQuery = ( + params: Params, + respond: GetParamsUnexplodedObjectQueryResponder, + req: Request, + res: Response, + next: NextFunction, +) => Promise | typeof SkipResponse> + +export type QueryParametersImplementation = { + getParamsSimpleQuery: GetParamsSimpleQuery + getParamsDefaultObjectQuery: GetParamsDefaultObjectQuery + getParamsUnexplodedObjectQuery: GetParamsUnexplodedObjectQuery +} + +export function createQueryParametersRouter( + implementation: QueryParametersImplementation, +): Router { + const router = Router() + + const getParamsSimpleQueryQuerySchema = z.object({ + orderBy: z.enum(["asc", "desc"]), + limit: z.coerce.number(), + }) + + const getParamsSimpleQueryResponseBodyValidator = responseValidationFactory( + [["200", s_getParamsSimpleQueryJson200Response]], + undefined, + ) + + // getParamsSimpleQuery + router.get( + `/params/simple-query`, + async (req: Request, res: Response, next: NextFunction) => { + try { + const input = { + params: undefined, + query: parseRequestInput( + getParamsSimpleQueryQuerySchema, + req.query, + RequestInputType.QueryString, + ), + body: undefined, + headers: undefined, + } + + const responder = { + with200() { + return new ExpressRuntimeResponse( + 200, + ) + }, + withStatus(status: StatusCode) { + return new ExpressRuntimeResponse(status) + }, + } + + const response = await implementation + .getParamsSimpleQuery(input, responder, req, res, next) + .catch((err) => { + throw ExpressRuntimeError.HandlerError(err) + }) + + // escape hatch to allow responses to be sent by the implementation handler + if (response === SkipResponse) { + return + } + + const {status, body} = + response instanceof ExpressRuntimeResponse + ? response.unpack() + : response + + res.status(status) + + if (body !== undefined) { + res.json(getParamsSimpleQueryResponseBodyValidator(status, body)) + } else { + res.end() + } + } catch (error) { + next(error) + } + }, + ) + + const getParamsDefaultObjectQueryQuerySchema = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), + }) + + const getParamsDefaultObjectQueryResponseBodyValidator = + responseValidationFactory( + [["200", s_getParamsDefaultObjectQueryJson200Response]], + undefined, + ) + + // getParamsDefaultObjectQuery + router.get( + `/params/default-object-query`, + async (req: Request, res: Response, next: NextFunction) => { + try { + const input = { + params: undefined, + query: parseRequestInput( + getParamsDefaultObjectQueryQuerySchema, + req.query, + RequestInputType.QueryString, + ), + body: undefined, + headers: undefined, + } + + const responder = { + with200() { + return new ExpressRuntimeResponse( + 200, + ) + }, + withStatus(status: StatusCode) { + return new ExpressRuntimeResponse(status) + }, + } + + const response = await implementation + .getParamsDefaultObjectQuery(input, responder, req, res, next) + .catch((err) => { + throw ExpressRuntimeError.HandlerError(err) + }) + + // escape hatch to allow responses to be sent by the implementation handler + if (response === SkipResponse) { + return + } + + const {status, body} = + response instanceof ExpressRuntimeResponse + ? response.unpack() + : response + + res.status(status) + + if (body !== undefined) { + res.json( + getParamsDefaultObjectQueryResponseBodyValidator(status, body), + ) + } else { + res.end() + } + } catch (error) { + next(error) + } + }, + ) + + const getParamsUnexplodedObjectQueryQuerySchema = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), + }) + + const getParamsUnexplodedObjectQueryResponseBodyValidator = + responseValidationFactory( + [["200", s_getParamsUnexplodedObjectQueryJson200Response]], + undefined, + ) + + // getParamsUnexplodedObjectQuery + router.get( + `/params/unexploded-object-query`, + async (req: Request, res: Response, next: NextFunction) => { + try { + const input = { + params: undefined, + query: parseRequestInput( + getParamsUnexplodedObjectQueryQuerySchema, + req.query, + RequestInputType.QueryString, + ), + body: undefined, + headers: undefined, + } + + const responder = { + with200() { + return new ExpressRuntimeResponse( + 200, + ) + }, + withStatus(status: StatusCode) { + return new ExpressRuntimeResponse(status) + }, + } + + const response = await implementation + .getParamsUnexplodedObjectQuery(input, responder, req, res, next) + .catch((err) => { + throw ExpressRuntimeError.HandlerError(err) + }) + + // escape hatch to allow responses to be sent by the implementation handler + if (response === SkipResponse) { + return + } + + const {status, body} = + response instanceof ExpressRuntimeResponse + ? response.unpack() + : response + + res.status(status) + + if (body !== undefined) { + res.json( + getParamsUnexplodedObjectQueryResponseBodyValidator(status, body), + ) + } else { + res.end() + } + } catch (error) { + next(error) + } + }, + ) + + return router +} + +export {createQueryParametersRouter as createRouter} +export type {QueryParametersImplementation as Implementation} diff --git a/e2e/src/generated/server/express/routes/request-headers.ts b/e2e/src/generated/server/express/routes/request-headers.ts index ec42247c..c8189848 100644 --- a/e2e/src/generated/server/express/routes/request-headers.ts +++ b/e2e/src/generated/server/express/routes/request-headers.ts @@ -16,9 +16,9 @@ import { import { parseRequestInput, responseValidationFactory, -} from "@nahkies/typescript-express-runtime/zod-v4" +} from "@nahkies/typescript-express-runtime/zod-v3" import {type NextFunction, type Request, type Response, Router} from "express" -import {z} from "zod/v4" +import {z} from "zod/v3" import type { t_GetHeadersRequestRequestHeaderSchema, t_getHeadersRequestJson200Response, diff --git a/e2e/src/generated/server/express/routes/validation.ts b/e2e/src/generated/server/express/routes/validation.ts index 42a94bf7..4d771f5a 100644 --- a/e2e/src/generated/server/express/routes/validation.ts +++ b/e2e/src/generated/server/express/routes/validation.ts @@ -16,9 +16,9 @@ import { import { parseRequestInput, responseValidationFactory, -} from "@nahkies/typescript-express-runtime/zod-v4" +} from "@nahkies/typescript-express-runtime/zod-v3" import {type NextFunction, type Request, type Response, Router} from "express" -import {z} from "zod/v4" +import {z} from "zod/v3" import type { t_Enumerations, t_GetValidationNumbersRandomNumberQuerySchema, diff --git a/e2e/src/generated/server/express/schemas.ts b/e2e/src/generated/server/express/schemas.ts index 1cefe2ae..a13f89f0 100644 --- a/e2e/src/generated/server/express/schemas.ts +++ b/e2e/src/generated/server/express/schemas.ts @@ -2,7 +2,7 @@ /* tslint:disable */ /* eslint-disable */ -import {z} from "zod/v4" +import {z} from "zod/v3" export const PermissiveBoolean = z.preprocess((value) => { if (typeof value === "string" && (value === "true" || value === "false")) { @@ -47,6 +47,19 @@ export const s_getHeadersRequestJson200Response = z.object({ typedHeaders: z.unknown().optional(), }) +export const s_getParamsSimpleQueryJson200Response = z.object({ + orderBy: z.string(), + limit: z.coerce.number(), +}) + +export const s_getParamsDefaultObjectQueryJson200Response = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), +}) + +export const s_getParamsUnexplodedObjectQueryJson200Response = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), +}) + export const s_postValidationOptionalBodyJsonRequestBody = z.object({ id: z.string().optional(), }) diff --git a/e2e/src/generated/server/koa/models.ts b/e2e/src/generated/server/koa/models.ts index d4153c83..fc479af3 100644 --- a/e2e/src/generated/server/koa/models.ts +++ b/e2e/src/generated/server/koa/models.ts @@ -47,6 +47,44 @@ export type t_getHeadersUndeclaredJson200Response = { typedHeaders?: unknown | undefined } +export type t_GetParamsDefaultObjectQueryQuerySchema = { + filter: { + age: number + name: string + } +} + +export type t_getParamsDefaultObjectQueryJson200Response = { + filter: { + age: number + name: string + } +} + +export type t_GetParamsSimpleQueryQuerySchema = { + limit: number + orderBy: "asc" | "desc" +} + +export type t_getParamsSimpleQueryJson200Response = { + limit: number + orderBy: string +} + +export type t_GetParamsUnexplodedObjectQueryQuerySchema = { + filter: { + age: number + name: string + } +} + +export type t_getParamsUnexplodedObjectQueryJson200Response = { + filter: { + age: number + name: string + } +} + export type t_GetValidationNumbersRandomNumberQuerySchema = { forbidden?: number[] | undefined max?: number | undefined diff --git a/e2e/src/generated/server/koa/routes/escape-hatches.ts b/e2e/src/generated/server/koa/routes/escape-hatches.ts index 7a509202..e3ca7690 100644 --- a/e2e/src/generated/server/koa/routes/escape-hatches.ts +++ b/e2e/src/generated/server/koa/routes/escape-hatches.ts @@ -12,9 +12,9 @@ import { SkipResponse, type StatusCode, } from "@nahkies/typescript-koa-runtime/server" -import {responseValidationFactory} from "@nahkies/typescript-koa-runtime/zod-v4" +import {responseValidationFactory} from "@nahkies/typescript-koa-runtime/zod-v3" import type {Next} from "koa" -import {z} from "zod/v4" +import {z} from "zod/v3" export type GetEscapeHatchesPlainTextResponder = { with200(): KoaRuntimeResponse diff --git a/e2e/src/generated/server/koa/routes/media-types.ts b/e2e/src/generated/server/koa/routes/media-types.ts index fbfba131..d20a54db 100644 --- a/e2e/src/generated/server/koa/routes/media-types.ts +++ b/e2e/src/generated/server/koa/routes/media-types.ts @@ -18,9 +18,9 @@ import { import { parseRequestInput, responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod-v4" +} from "@nahkies/typescript-koa-runtime/zod-v3" import type {Next} from "koa" -import {z} from "zod/v4" +import {z} from "zod/v3" import type { t_PostMediaTypesTextBodySchema, t_PostMediaTypesXWwwFormUrlencodedBodySchema, diff --git a/e2e/src/generated/server/koa/routes/query-parameters.ts b/e2e/src/generated/server/koa/routes/query-parameters.ts new file mode 100644 index 00000000..51f83a70 --- /dev/null +++ b/e2e/src/generated/server/koa/routes/query-parameters.ts @@ -0,0 +1,266 @@ +/** AUTOGENERATED - DO NOT EDIT **/ +/* tslint:disable */ +/* eslint-disable */ + +import KoaRouter, {type RouterContext} from "@koa/router" +import { + KoaRuntimeError, + RequestInputType, +} from "@nahkies/typescript-koa-runtime/errors" +import { + type KoaRuntimeResponder, + KoaRuntimeResponse, + type Params, + type Response, + SkipResponse, + type StatusCode, +} from "@nahkies/typescript-koa-runtime/server" +import { + parseRequestInput, + responseValidationFactory, +} from "@nahkies/typescript-koa-runtime/zod-v3" +import type {Next} from "koa" +import {z} from "zod/v3" +import type { + t_GetParamsDefaultObjectQueryQuerySchema, + t_GetParamsSimpleQueryQuerySchema, + t_GetParamsUnexplodedObjectQueryQuerySchema, + t_getParamsDefaultObjectQueryJson200Response, + t_getParamsSimpleQueryJson200Response, + t_getParamsUnexplodedObjectQueryJson200Response, +} from "../models.ts" +import { + s_getParamsDefaultObjectQueryJson200Response, + s_getParamsSimpleQueryJson200Response, + s_getParamsUnexplodedObjectQueryJson200Response, +} from "../schemas.ts" + +export type GetParamsSimpleQueryResponder = { + with200(): KoaRuntimeResponse +} & KoaRuntimeResponder + +export type GetParamsSimpleQuery = ( + params: Params, + respond: GetParamsSimpleQueryResponder, + ctx: RouterContext, + next: Next, +) => Promise< + | KoaRuntimeResponse + | Response<200, t_getParamsSimpleQueryJson200Response> + | typeof SkipResponse +> + +export type GetParamsDefaultObjectQueryResponder = { + with200(): KoaRuntimeResponse +} & KoaRuntimeResponder + +export type GetParamsDefaultObjectQuery = ( + params: Params, + respond: GetParamsDefaultObjectQueryResponder, + ctx: RouterContext, + next: Next, +) => Promise< + | KoaRuntimeResponse + | Response<200, t_getParamsDefaultObjectQueryJson200Response> + | typeof SkipResponse +> + +export type GetParamsUnexplodedObjectQueryResponder = { + with200(): KoaRuntimeResponse +} & KoaRuntimeResponder + +export type GetParamsUnexplodedObjectQuery = ( + params: Params, + respond: GetParamsUnexplodedObjectQueryResponder, + ctx: RouterContext, + next: Next, +) => Promise< + | KoaRuntimeResponse + | Response<200, t_getParamsUnexplodedObjectQueryJson200Response> + | typeof SkipResponse +> + +export type QueryParametersImplementation = { + getParamsSimpleQuery: GetParamsSimpleQuery + getParamsDefaultObjectQuery: GetParamsDefaultObjectQuery + getParamsUnexplodedObjectQuery: GetParamsUnexplodedObjectQuery +} + +export function createQueryParametersRouter( + implementation: QueryParametersImplementation, +): KoaRouter { + const router = new KoaRouter() + + const getParamsSimpleQueryQuerySchema = z.object({ + orderBy: z.enum(["asc", "desc"]), + limit: z.coerce.number(), + }) + + const getParamsSimpleQueryResponseValidator = responseValidationFactory( + [["200", s_getParamsSimpleQueryJson200Response]], + undefined, + ) + + router.get( + "getParamsSimpleQuery", + "/params/simple-query", + async (ctx, next) => { + const input = { + params: undefined, + query: parseRequestInput( + getParamsSimpleQueryQuerySchema, + ctx.query, + RequestInputType.QueryString, + ), + body: undefined, + headers: undefined, + } + + const responder = { + with200() { + return new KoaRuntimeResponse( + 200, + ) + }, + withStatus(status: StatusCode) { + return new KoaRuntimeResponse(status) + }, + } + + const response = await implementation + .getParamsSimpleQuery(input, responder, ctx, next) + .catch((err) => { + throw KoaRuntimeError.HandlerError(err) + }) + + // escape hatch to allow responses to be sent by the implementation handler + if (response === SkipResponse) { + return + } + + const {status, body} = + response instanceof KoaRuntimeResponse ? response.unpack() : response + + ctx.body = getParamsSimpleQueryResponseValidator(status, body) + ctx.status = status + return next() + }, + ) + + const getParamsDefaultObjectQueryQuerySchema = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), + }) + + const getParamsDefaultObjectQueryResponseValidator = + responseValidationFactory( + [["200", s_getParamsDefaultObjectQueryJson200Response]], + undefined, + ) + + router.get( + "getParamsDefaultObjectQuery", + "/params/default-object-query", + async (ctx, next) => { + const input = { + params: undefined, + query: parseRequestInput( + getParamsDefaultObjectQueryQuerySchema, + ctx.query, + RequestInputType.QueryString, + ), + body: undefined, + headers: undefined, + } + + const responder = { + with200() { + return new KoaRuntimeResponse( + 200, + ) + }, + withStatus(status: StatusCode) { + return new KoaRuntimeResponse(status) + }, + } + + const response = await implementation + .getParamsDefaultObjectQuery(input, responder, ctx, next) + .catch((err) => { + throw KoaRuntimeError.HandlerError(err) + }) + + // escape hatch to allow responses to be sent by the implementation handler + if (response === SkipResponse) { + return + } + + const {status, body} = + response instanceof KoaRuntimeResponse ? response.unpack() : response + + ctx.body = getParamsDefaultObjectQueryResponseValidator(status, body) + ctx.status = status + return next() + }, + ) + + const getParamsUnexplodedObjectQueryQuerySchema = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), + }) + + const getParamsUnexplodedObjectQueryResponseValidator = + responseValidationFactory( + [["200", s_getParamsUnexplodedObjectQueryJson200Response]], + undefined, + ) + + router.get( + "getParamsUnexplodedObjectQuery", + "/params/unexploded-object-query", + async (ctx, next) => { + const input = { + params: undefined, + query: parseRequestInput( + getParamsUnexplodedObjectQueryQuerySchema, + ctx.query, + RequestInputType.QueryString, + ), + body: undefined, + headers: undefined, + } + + const responder = { + with200() { + return new KoaRuntimeResponse( + 200, + ) + }, + withStatus(status: StatusCode) { + return new KoaRuntimeResponse(status) + }, + } + + const response = await implementation + .getParamsUnexplodedObjectQuery(input, responder, ctx, next) + .catch((err) => { + throw KoaRuntimeError.HandlerError(err) + }) + + // escape hatch to allow responses to be sent by the implementation handler + if (response === SkipResponse) { + return + } + + const {status, body} = + response instanceof KoaRuntimeResponse ? response.unpack() : response + + ctx.body = getParamsUnexplodedObjectQueryResponseValidator(status, body) + ctx.status = status + return next() + }, + ) + + return router +} + +export {createQueryParametersRouter as createRouter} +export type {QueryParametersImplementation as Implementation} diff --git a/e2e/src/generated/server/koa/routes/request-headers.ts b/e2e/src/generated/server/koa/routes/request-headers.ts index 0723c775..b0a50fb4 100644 --- a/e2e/src/generated/server/koa/routes/request-headers.ts +++ b/e2e/src/generated/server/koa/routes/request-headers.ts @@ -18,9 +18,9 @@ import { import { parseRequestInput, responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod-v4" +} from "@nahkies/typescript-koa-runtime/zod-v3" import type {Next} from "koa" -import {z} from "zod/v4" +import {z} from "zod/v3" import type { t_GetHeadersRequestHeaderSchema, t_getHeadersRequestJson200Response, diff --git a/e2e/src/generated/server/koa/routes/validation.ts b/e2e/src/generated/server/koa/routes/validation.ts index f98d32b4..86a126e4 100644 --- a/e2e/src/generated/server/koa/routes/validation.ts +++ b/e2e/src/generated/server/koa/routes/validation.ts @@ -18,9 +18,9 @@ import { import { parseRequestInput, responseValidationFactory, -} from "@nahkies/typescript-koa-runtime/zod-v4" +} from "@nahkies/typescript-koa-runtime/zod-v3" import type {Next} from "koa" -import {z} from "zod/v4" +import {z} from "zod/v3" import type { t_Enumerations, t_GetValidationNumbersRandomNumberQuerySchema, diff --git a/e2e/src/generated/server/koa/schemas.ts b/e2e/src/generated/server/koa/schemas.ts index 1cefe2ae..a13f89f0 100644 --- a/e2e/src/generated/server/koa/schemas.ts +++ b/e2e/src/generated/server/koa/schemas.ts @@ -2,7 +2,7 @@ /* tslint:disable */ /* eslint-disable */ -import {z} from "zod/v4" +import {z} from "zod/v3" export const PermissiveBoolean = z.preprocess((value) => { if (typeof value === "string" && (value === "true" || value === "false")) { @@ -47,6 +47,19 @@ export const s_getHeadersRequestJson200Response = z.object({ typedHeaders: z.unknown().optional(), }) +export const s_getParamsSimpleQueryJson200Response = z.object({ + orderBy: z.string(), + limit: z.coerce.number(), +}) + +export const s_getParamsDefaultObjectQueryJson200Response = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), +}) + +export const s_getParamsUnexplodedObjectQueryJson200Response = z.object({ + filter: z.object({name: z.string(), age: z.coerce.number()}), +}) + export const s_postValidationOptionalBodyJsonRequestBody = z.object({ id: z.string().optional(), }) diff --git a/e2e/src/index.axios.spec.ts b/e2e/src/index.axios.spec.ts index 7c7fbc89..97d6d565 100644 --- a/e2e/src/index.axios.spec.ts +++ b/e2e/src/index.axios.spec.ts @@ -427,5 +427,42 @@ describe.each(startServerFunctions)( expect(res.data).toStrictEqual(productOrder) }) }) + + describe("query parameters", () => { + it("GET /params/simple-query", async () => { + const {status, data} = await client.getParamsSimpleQuery({ + orderBy: "asc", + limit: 10, + }) + + expect(status).toBe(200) + expect(data).toEqual({ + orderBy: "asc", + limit: 10, + }) + }) + + it("GET /params/default-object-query", async () => { + const {status, data} = await client.getParamsDefaultObjectQuery({ + filter: {name: "John", age: 30}, + }) + + expect(status).toBe(200) + expect(data).toEqual({ + filter: {name: "John", age: 30}, + }) + }) + + it("GET /params/unexploded-object-query", async () => { + const {status, data} = await client.getParamsUnexplodedObjectQuery({ + filter: {name: "John", age: 30}, + }) + + expect(status).toBe(200) + expect(data).toEqual({ + filter: {name: "John", age: 30}, + }) + }) + }) }, ) diff --git a/e2e/src/index.fetch.spec.ts b/e2e/src/index.fetch.spec.ts index 1c45fae6..a8a6d2d8 100644 --- a/e2e/src/index.fetch.spec.ts +++ b/e2e/src/index.fetch.spec.ts @@ -428,5 +428,42 @@ describe.each(startServerFunctions)( await expect(res.json()).resolves.toStrictEqual(productOrder) }) }) + + describe("query parameters", () => { + it("GET /params/simple-query", async () => { + const res = await client.getParamsSimpleQuery({ + orderBy: "asc", + limit: 10, + }) + + expect(res.status).toBe(200) + await expect(res.json()).resolves.toEqual({ + orderBy: "asc", + limit: 10, + }) + }) + + it("GET /params/default-object-query", async () => { + const res = await client.getParamsDefaultObjectQuery({ + filter: {name: "John", age: 30}, + }) + + expect(res.status).toBe(200) + await expect(res.json()).resolves.toEqual({ + filter: {name: "John", age: 30}, + }) + }) + + it("GET /params/unexploded-object-query", async () => { + const res = await client.getParamsUnexplodedObjectQuery({ + filter: {name: "John", age: 30}, + }) + + expect(res.status).toBe(200) + await expect(res.json()).resolves.toEqual({ + filter: {name: "John", age: 30}, + }) + }) + }) }, ) diff --git a/e2e/src/koa.entrypoint.ts b/e2e/src/koa.entrypoint.ts index c40e4947..01ba886a 100644 --- a/e2e/src/koa.entrypoint.ts +++ b/e2e/src/koa.entrypoint.ts @@ -2,6 +2,7 @@ import Router from "@koa/router" import {bootstrap} from "./generated/server/koa/index.ts" import {createEscapeHatchesRouter} from "./routes/koa/escape-hatches.ts" import {createMediaTypesRouter} from "./routes/koa/media-types.ts" +import {createQueryParametersRouter} from "./routes/koa/query-parameters.ts" import {createRequestHeadersRouter} from "./routes/koa/request-headers.ts" import {createValidationRouter} from "./routes/koa/validation.ts" import {createErrorResponse} from "./shared.ts" @@ -13,6 +14,7 @@ function createRouter() { const validationRouter = createValidationRouter() const escapeHatchesRouter = createEscapeHatchesRouter() const mediaTypesRouter = createMediaTypesRouter() + const queryParametersRouter = createQueryParametersRouter() router.use( requestHeadersRouter.allowedMethods(), @@ -21,6 +23,10 @@ function createRouter() { router.use(validationRouter.allowedMethods(), validationRouter.routes()) router.use(escapeHatchesRouter.allowedMethods(), escapeHatchesRouter.routes()) router.use(mediaTypesRouter.allowedMethods(), mediaTypesRouter.routes()) + router.use( + queryParametersRouter.allowedMethods(), + queryParametersRouter.routes(), + ) return router } diff --git a/e2e/src/routes/express/query-parameters.ts b/e2e/src/routes/express/query-parameters.ts new file mode 100644 index 00000000..26bb7e02 --- /dev/null +++ b/e2e/src/routes/express/query-parameters.ts @@ -0,0 +1,39 @@ +import { + createRouter, + type GetParamsDefaultObjectQuery, + type GetParamsSimpleQuery, + type GetParamsUnexplodedObjectQuery, +} from "../../generated/server/express/routes/query-parameters.ts" + +const getParamsSimpleQuery: GetParamsSimpleQuery = async ({query}, respond) => { + return respond.with200().body({ + orderBy: query.orderBy, + limit: query.limit, + }) +} + +const getParamsDefaultObjectQuery: GetParamsDefaultObjectQuery = async ( + {query}, + respond, +) => { + return respond.with200().body({ + filter: query.filter, + }) +} + +const getParamsUnexplodedObjectQuery: GetParamsUnexplodedObjectQuery = async ( + {query}, + respond, +) => { + return respond.with200().body({ + filter: query.filter, + }) +} + +export function createQueryParametersRouter() { + return createRouter({ + getParamsSimpleQuery, + getParamsDefaultObjectQuery, + getParamsUnexplodedObjectQuery, + }) +} diff --git a/e2e/src/routes/koa/query-parameters.ts b/e2e/src/routes/koa/query-parameters.ts new file mode 100644 index 00000000..5660e23f --- /dev/null +++ b/e2e/src/routes/koa/query-parameters.ts @@ -0,0 +1,39 @@ +import { + createRouter, + type GetParamsDefaultObjectQuery, + type GetParamsSimpleQuery, + type GetParamsUnexplodedObjectQuery, +} from "../../generated/server/koa/routes/query-parameters.ts" + +const getParamsSimpleQuery: GetParamsSimpleQuery = async ({query}, respond) => { + return respond.with200().body({ + orderBy: query.orderBy, + limit: query.limit, + }) +} + +const getParamsDefaultObjectQuery: GetParamsDefaultObjectQuery = async ( + {query}, + respond, +) => { + return respond.with200().body({ + filter: query.filter, + }) +} + +const getParamsUnexplodedObjectQuery: GetParamsUnexplodedObjectQuery = async ( + {query}, + respond, +) => { + return respond.with200().body({ + filter: query.filter, + }) +} + +export function createQueryParametersRouter() { + return createRouter({ + getParamsSimpleQuery, + getParamsDefaultObjectQuery, + getParamsUnexplodedObjectQuery, + }) +}