Skip to content

Commit 6c5b418

Browse files
committed
Align definition for Deployment type to OpenAPI specification
1 parent 0402e36 commit 6c5b418

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

index.d.ts

+14-7
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ declare module "replicate" {
3333
created_by: Account;
3434
configuration: {
3535
hardware: string;
36-
min_instances: number;
37-
max_instances: number;
36+
scaling: {
37+
min_instances: number;
38+
max_instances: number;
39+
};
3840
};
3941
};
4042
}
@@ -206,11 +208,16 @@ declare module "replicate" {
206208
deployment_owner: string,
207209
deployment_name: string,
208210
deployment_config: {
209-
version: string;
210-
hardware: string;
211-
min_instances: number;
212-
max_instances: number;
213-
}
211+
version?: string;
212+
hardware?: string;
213+
min_instances?: number;
214+
max_instances?: number;
215+
} & (
216+
| { version: string }
217+
| { hardware: string }
218+
| { min_instances: number }
219+
| { max_instances: number }
220+
)
214221
): Promise<Deployment>;
215222
list(): Promise<Page<Deployment>>;
216223
};

0 commit comments

Comments
 (0)