-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 🐝 Update SDK - Generate (#55)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.304.0 * update timeout to 15s --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: Mike Lueders <[email protected]>
- Loading branch information
1 parent
a960611
commit e0bcfec
Showing
218 changed files
with
2,740 additions
and
4,555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
timeout: '10000' | ||
timeout: '15000' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
*/ | ||
|
||
export type Remap<Inp, Mapping extends { [k in keyof Inp]?: string | null }> = { | ||
[k in keyof Inp as Mapping[k] extends string /* if we have a string mapping for this key then use it */ | ||
? Mapping[k] | ||
: Mapping[k] extends null /* if the mapping is to `null` then drop the key */ | ||
? never | ||
: k /* otherwise keep the key as-is */]: Inp[k]; | ||
}; | ||
|
||
/** | ||
* Converts or omits an object's keys according to a mapping. | ||
* | ||
* @param inp An object whose keys will be remapped | ||
* @param mappings A mapping of original keys to new keys. If a key is not present in the mapping, it will be left as is. If a key is mapped to `null`, it will be removed in the resulting object. | ||
* @returns A new object with keys remapped or omitted according to the mappings | ||
*/ | ||
export function remap< | ||
Inp extends Record<string, unknown>, | ||
const Mapping extends { [k in keyof Inp]?: string | null }, | ||
>(inp: Inp, mappings: Mapping): Remap<Inp, Mapping> { | ||
let out: any = {}; | ||
|
||
if (!Object.keys(mappings).length) { | ||
out = inp; | ||
return out; | ||
} | ||
|
||
for (const [k, v] of Object.entries(inp)) { | ||
const j = mappings[k]; | ||
if (j === null) { | ||
continue; | ||
} | ||
out[j ?? k] = v; | ||
} | ||
|
||
return out; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.