Skip to content

Commit 3e7fcce

Browse files
chore(internal): codegen related update
1 parent 028b37f commit 3e7fcce

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

scripts/utils/upload-artifact.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ if [[ "$SIGNED_URL" == "null" ]]; then
1212
exit 1
1313
fi
1414

15-
UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
15+
TARBALL=$(cd dist && npm pack --silent)
16+
17+
UPLOAD_RESPONSE=$(curl -v -X PUT \
1618
-H "Content-Type: application/gzip" \
17-
--data-binary @- "$SIGNED_URL" 2>&1)
19+
--data-binary "@dist/$TARBALL" "$SIGNED_URL" 2>&1)
1820

1921
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
2022
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"

src/resources/spectrum/apps.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,12 @@ export namespace AppUpdateResponse {
358358
}
359359
}
360360

361-
export type AppListResponse = Array<AppListResponse.UnionMember0> | Array<AppListResponse.UnionMember1>;
361+
export type AppListResponse =
362+
| AppListResponse.SpectrumConfigAppConfig
363+
| AppListResponse.SpectrumConfigPaygoAppConfig;
362364

363365
export namespace AppListResponse {
364-
export interface UnionMember0 {
366+
export interface SpectrumConfigAppConfig {
365367
/**
366368
* App identifier.
367369
*/
@@ -448,7 +450,7 @@ export namespace AppListResponse {
448450
tls?: 'off' | 'flexible' | 'full' | 'strict';
449451
}
450452

451-
export interface UnionMember1 {
453+
export interface SpectrumConfigPaygoAppConfig {
452454
/**
453455
* App identifier.
454456
*/

0 commit comments

Comments
 (0)