@@ -933,6 +933,8 @@ import {
933933 testParameterWithBodyReferenceDefaultDecoder,
934934 PutTestParameterWithBodyReferenceT,
935935 putTestParameterWithBodyReferenceDefaultDecoder,
936+ PatchTestParameterWithBodyReferenceT,
937+ patchTestParameterWithBodyReferenceDefaultDecoder,
936938 TestParameterWithDashT,
937939 testParameterWithDashDefaultDecoder,
938940 TestParameterWithDashAnUnderscoreT,
@@ -975,6 +977,7 @@ export type ApiOperation = TypeofApiCall<TestAuthBearerT> &
975977 TypeofApiCall<TestParameterWithReferenceT> &
976978 TypeofApiCall<TestParameterWithBodyReferenceT> &
977979 TypeofApiCall<PutTestParameterWithBodyReferenceT> &
980+ TypeofApiCall<PatchTestParameterWithBodyReferenceT> &
978981 TypeofApiCall<TestParameterWithDashT> &
979982 TypeofApiCall<TestParameterWithDashAnUnderscoreT> &
980983 TypeofApiCall<TestWithTwoParamsT> &
@@ -998,6 +1001,7 @@ export type ParamKeys = keyof (TypeofApiParams<TestAuthBearerT> &
9981001 TypeofApiParams<TestParameterWithReferenceT> &
9991002 TypeofApiParams<TestParameterWithBodyReferenceT> &
10001003 TypeofApiParams<PutTestParameterWithBodyReferenceT> &
1004+ TypeofApiParams<PatchTestParameterWithBodyReferenceT> &
10011005 TypeofApiParams<TestParameterWithDashT> &
10021006 TypeofApiParams<TestParameterWithDashAnUnderscoreT> &
10031007 TypeofApiParams<TestWithTwoParamsT> &
@@ -1043,6 +1047,7 @@ export type WithDefaultsT<
10431047 | TestParameterWithReferenceT
10441048 | TestParameterWithBodyReferenceT
10451049 | PutTestParameterWithBodyReferenceT
1050+ | PatchTestParameterWithBodyReferenceT
10461051 | TestParameterWithDashT
10471052 | TestParameterWithDashAnUnderscoreT
10481053 | TestWithTwoParamsT
@@ -1092,6 +1097,10 @@ export type Client<
10921097 PutTestParameterWithBodyReferenceT
10931098 >;
10941099
1100+ readonly patchTestParameterWithBodyReference: TypeofApiCall<
1101+ PatchTestParameterWithBodyReferenceT
1102+ >;
1103+
10951104 readonly testParameterWithDash: TypeofApiCall<TestParameterWithDashT>;
10961105
10971106 readonly testParameterWithDashAnUnderscore: TypeofApiCall<
@@ -1193,6 +1202,13 @@ export type Client<
11931202 >
11941203 >;
11951204
1205+ readonly patchTestParameterWithBodyReference: TypeofApiCall<
1206+ ReplaceRequestParams<
1207+ PatchTestParameterWithBodyReferenceT,
1208+ Omit<RequestParams<PatchTestParameterWithBodyReferenceT>, K>
1209+ >
1210+ >;
1211+
11961212 readonly testParameterWithDash: TypeofApiCall<
11971213 ReplaceRequestParams<
11981214 TestParameterWithDashT,
@@ -1554,6 +1570,35 @@ export function createClient<K extends ParamKeys>({
15541570 options
15551571 );
15561572
1573+ const patchTestParameterWithBodyReferenceT: ReplaceRequestParams<
1574+ PatchTestParameterWithBodyReferenceT,
1575+ RequestParams<PatchTestParameterWithBodyReferenceT>
1576+ > = {
1577+ method: \\"patch\\",
1578+
1579+ headers: ({ [\\"customToken\\"]: customToken }) => ({
1580+ \\"custom-token\\": customToken,
1581+
1582+ \\"Content-Type\\": \\"application/json\\"
1583+ }),
1584+ response_decoder: patchTestParameterWithBodyReferenceDefaultDecoder(),
1585+ url: ({}) => \`\${basePath}/patch-test-parameter-with-body-ref\`,
1586+
1587+ body: ({ [\\"body\\"]: body }) =>
1588+ body?.constructor?.name === \\"Readable\\" ||
1589+ body?.constructor?.name === \\"ReadableStream\\"
1590+ ? (body as ReadableStream)
1591+ : body?.constructor?.name === \\"Buffer\\"
1592+ ? (body as Buffer)
1593+ : JSON.stringify(body),
1594+
1595+ query: () => withoutUndefinedValues({})
1596+ };
1597+ const patchTestParameterWithBodyReference: TypeofApiCall<PatchTestParameterWithBodyReferenceT> = createFetchRequestForApi(
1598+ patchTestParameterWithBodyReferenceT,
1599+ options
1600+ );
1601+
15571602 const testParameterWithDashT: ReplaceRequestParams<
15581603 TestParameterWithDashT,
15591604 RequestParams<TestParameterWithDashT>
@@ -1829,6 +1874,9 @@ export function createClient<K extends ParamKeys>({
18291874 putTestParameterWithBodyReference: (withDefaults || identity)(
18301875 putTestParameterWithBodyReference
18311876 ),
1877+ patchTestParameterWithBodyReference: (withDefaults || identity)(
1878+ patchTestParameterWithBodyReference
1879+ ),
18321880 testParameterWithDash: (withDefaults || identity)(testParameterWithDash),
18331881 testParameterWithDashAnUnderscore: (withDefaults || identity)(
18341882 testParameterWithDashAnUnderscore
@@ -2921,6 +2969,8 @@ import {
29212969 testParameterWithBodyReferenceDefaultDecoder,
29222970 PutTestParameterWithBodyReferenceT,
29232971 putTestParameterWithBodyReferenceDefaultDecoder,
2972+ PatchTestParameterWithBodyReferenceT,
2973+ patchTestParameterWithBodyReferenceDefaultDecoder,
29242974 TestParameterWithDashT,
29252975 testParameterWithDashDefaultDecoder,
29262976 TestParameterWithDashAnUnderscoreT,
@@ -2964,6 +3014,7 @@ export type ApiOperation = TypeofApiCall<TestAuthBearerT> &
29643014 TypeofApiCall<TestParameterWithReferenceT> &
29653015 TypeofApiCall<TestParameterWithBodyReferenceT> &
29663016 TypeofApiCall<PutTestParameterWithBodyReferenceT> &
3017+ TypeofApiCall<PatchTestParameterWithBodyReferenceT> &
29673018 TypeofApiCall<TestParameterWithDashT> &
29683019 TypeofApiCall<TestParameterWithDashAnUnderscoreT> &
29693020 TypeofApiCall<TestWithTwoParamsT> &
@@ -2988,6 +3039,7 @@ export type ParamKeys = keyof (TypeofApiParams<TestAuthBearerT> &
29883039 TypeofApiParams<TestParameterWithReferenceT> &
29893040 TypeofApiParams<TestParameterWithBodyReferenceT> &
29903041 TypeofApiParams<PutTestParameterWithBodyReferenceT> &
3042+ TypeofApiParams<PatchTestParameterWithBodyReferenceT> &
29913043 TypeofApiParams<TestParameterWithDashT> &
29923044 TypeofApiParams<TestParameterWithDashAnUnderscoreT> &
29933045 TypeofApiParams<TestWithTwoParamsT> &
@@ -3034,6 +3086,7 @@ export type WithDefaultsT<
30343086 | TestParameterWithReferenceT
30353087 | TestParameterWithBodyReferenceT
30363088 | PutTestParameterWithBodyReferenceT
3089+ | PatchTestParameterWithBodyReferenceT
30373090 | TestParameterWithDashT
30383091 | TestParameterWithDashAnUnderscoreT
30393092 | TestWithTwoParamsT
@@ -3085,6 +3138,10 @@ export type Client<
30853138 PutTestParameterWithBodyReferenceT
30863139 >;
30873140
3141+ readonly patchTestParameterWithBodyReference: TypeofApiCall<
3142+ PatchTestParameterWithBodyReferenceT
3143+ >;
3144+
30883145 readonly testParameterWithDash: TypeofApiCall<TestParameterWithDashT>;
30893146
30903147 readonly testParameterWithDashAnUnderscore: TypeofApiCall<
@@ -3193,6 +3250,13 @@ export type Client<
31933250 >
31943251 >;
31953252
3253+ readonly patchTestParameterWithBodyReference: TypeofApiCall<
3254+ ReplaceRequestParams<
3255+ PatchTestParameterWithBodyReferenceT,
3256+ Omit<RequestParams<PatchTestParameterWithBodyReferenceT>, K>
3257+ >
3258+ >;
3259+
31963260 readonly testParameterWithDash: TypeofApiCall<
31973261 ReplaceRequestParams<
31983262 TestParameterWithDashT,
@@ -3584,6 +3648,35 @@ export function createClient<K extends ParamKeys>({
35843648 options
35853649 );
35863650
3651+ const patchTestParameterWithBodyReferenceT: ReplaceRequestParams<
3652+ PatchTestParameterWithBodyReferenceT,
3653+ RequestParams<PatchTestParameterWithBodyReferenceT>
3654+ > = {
3655+ method: \\"patch\\",
3656+
3657+ headers: ({ [\\"customToken\\"]: customToken }) => ({
3658+ \\"custom-token\\": customToken,
3659+
3660+ \\"Content-Type\\": \\"application/json\\"
3661+ }),
3662+ response_decoder: patchTestParameterWithBodyReferenceDefaultDecoder(),
3663+ url: ({}) => \`\${basePath}/patch-test-parameter-with-body-ref\`,
3664+
3665+ body: ({ [\\"body\\"]: body }) =>
3666+ body?.constructor?.name === \\"Readable\\" ||
3667+ body?.constructor?.name === \\"ReadableStream\\"
3668+ ? (body as ReadableStream)
3669+ : body?.constructor?.name === \\"Buffer\\"
3670+ ? (body as Buffer)
3671+ : JSON.stringify(body),
3672+
3673+ query: () => withoutUndefinedValues({})
3674+ };
3675+ const patchTestParameterWithBodyReference: TypeofApiCall<PatchTestParameterWithBodyReferenceT> = createFetchRequestForApi(
3676+ patchTestParameterWithBodyReferenceT,
3677+ options
3678+ );
3679+
35873680 const testParameterWithDashT: ReplaceRequestParams<
35883681 TestParameterWithDashT,
35893682 RequestParams<TestParameterWithDashT>
@@ -3860,6 +3953,9 @@ export function createClient<K extends ParamKeys>({
38603953 putTestParameterWithBodyReference: (withDefaults || identity)(
38613954 putTestParameterWithBodyReference
38623955 ),
3956+ patchTestParameterWithBodyReference: (withDefaults || identity)(
3957+ patchTestParameterWithBodyReference
3958+ ),
38633959 testParameterWithDash: (withDefaults || identity)(testParameterWithDash),
38643960 testParameterWithDashAnUnderscore: (withDefaults || identity)(
38653961 testParameterWithDashAnUnderscore
0 commit comments