@renderinc/sdk 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -2
- package/README.md +32 -22
- package/dist/experimental/experimental.d.ts +6 -2
- package/dist/experimental/experimental.d.ts.map +1 -1
- package/dist/experimental/experimental.js +9 -3
- package/dist/experimental/index.d.ts +2 -2
- package/dist/experimental/index.d.ts.map +1 -1
- package/dist/experimental/index.js +6 -5
- package/dist/experimental/object/api.d.ts +11 -0
- package/dist/experimental/object/api.d.ts.map +1 -0
- package/dist/experimental/object/api.js +44 -0
- package/dist/experimental/object/client.d.ts +21 -0
- package/dist/experimental/object/client.d.ts.map +1 -0
- package/dist/experimental/object/client.js +127 -0
- package/dist/experimental/object/index.d.ts +5 -0
- package/dist/experimental/object/index.d.ts.map +1 -0
- package/dist/experimental/object/index.js +8 -0
- package/dist/experimental/object/types.d.ts +49 -0
- package/dist/experimental/object/types.d.ts.map +1 -0
- package/dist/generated/schema.d.ts +131 -3
- package/dist/generated/schema.d.ts.map +1 -1
- package/dist/workflows/uds.d.ts.map +1 -1
- package/dist/workflows/uds.js +26 -51
- package/examples/client/main.ts +1 -1
- package/examples/client/package-lock.json +4 -4
- package/examples/client/package.json +1 -1
- package/examples/task/main.ts +1 -1
- package/examples/task/package-lock.json +5 -6
- package/examples/task/package.json +1 -1
- package/package.json +9 -8
- package/src/errors.test.ts +75 -0
- package/src/experimental/experimental.ts +30 -7
- package/src/experimental/index.ts +18 -18
- package/src/experimental/{blob → object}/api.ts +7 -7
- package/src/experimental/object/client.test.ts +138 -0
- package/src/experimental/{blob → object}/client.ts +57 -57
- package/src/experimental/object/index.ts +22 -0
- package/src/experimental/object/types.test.ts +87 -0
- package/src/experimental/{blob → object}/types.ts +30 -30
- package/src/generated/schema.ts +217 -9
- package/src/utils/get-base-url.test.ts +58 -0
- package/src/workflows/client/client.test.ts +68 -0
- package/src/workflows/types.test.ts +52 -0
- package/src/workflows/uds.ts +29 -69
- package/tsconfig.json +1 -1
- package/{vite.config.ts → vitest.config.ts} +1 -0
- package/dist/workflows/client/errors.d.ts +0 -25
- package/dist/workflows/client/errors.d.ts.map +0 -1
- package/dist/workflows/client/errors.js +0 -56
- package/dist/workflows/client/schema.d.ts +0 -9322
- package/dist/workflows/client/schema.d.ts.map +0 -1
- package/dist/workflows/client/workflows.d.ts +0 -15
- package/dist/workflows/client/workflows.d.ts.map +0 -1
- package/dist/workflows/client/workflows.js +0 -63
- package/src/experimental/blob/index.ts +0 -22
- /package/dist/{workflows/client/schema.js → experimental/object/types.js} +0 -0
|
@@ -15,6 +15,22 @@ export interface paths {
|
|
|
15
15
|
patch?: never;
|
|
16
16
|
trace?: never;
|
|
17
17
|
};
|
|
18
|
+
"/blueprints/validate": {
|
|
19
|
+
parameters: {
|
|
20
|
+
query?: never;
|
|
21
|
+
header?: never;
|
|
22
|
+
path?: never;
|
|
23
|
+
cookie?: never;
|
|
24
|
+
};
|
|
25
|
+
get?: never;
|
|
26
|
+
put?: never;
|
|
27
|
+
post: operations["validate-blueprint"];
|
|
28
|
+
delete?: never;
|
|
29
|
+
options?: never;
|
|
30
|
+
head?: never;
|
|
31
|
+
patch?: never;
|
|
32
|
+
trace?: never;
|
|
33
|
+
};
|
|
18
34
|
"/owners/{ownerId}/members/{userId}": {
|
|
19
35
|
parameters: {
|
|
20
36
|
query?: never;
|
|
@@ -2161,6 +2177,25 @@ export interface paths {
|
|
|
2161
2177
|
patch?: never;
|
|
2162
2178
|
trace?: never;
|
|
2163
2179
|
};
|
|
2180
|
+
"/blobs/{ownerId}/{region}": {
|
|
2181
|
+
parameters: {
|
|
2182
|
+
query?: never;
|
|
2183
|
+
header?: never;
|
|
2184
|
+
path: {
|
|
2185
|
+
ownerId: components["parameters"]["ownerIdPathParam"];
|
|
2186
|
+
region: components["parameters"]["regionPathParam"];
|
|
2187
|
+
};
|
|
2188
|
+
cookie?: never;
|
|
2189
|
+
};
|
|
2190
|
+
get: operations["list-blobs"];
|
|
2191
|
+
put?: never;
|
|
2192
|
+
post?: never;
|
|
2193
|
+
delete?: never;
|
|
2194
|
+
options?: never;
|
|
2195
|
+
head?: never;
|
|
2196
|
+
patch?: never;
|
|
2197
|
+
trace?: never;
|
|
2198
|
+
};
|
|
2164
2199
|
"/blobs/{ownerId}/{region}/{key}": {
|
|
2165
2200
|
parameters: {
|
|
2166
2201
|
query?: never;
|
|
@@ -2446,7 +2481,7 @@ export interface components {
|
|
|
2446
2481
|
healthCheckPath?: string;
|
|
2447
2482
|
maintenanceMode?: components["schemas"]["maintenanceMode"];
|
|
2448
2483
|
numInstances?: number;
|
|
2449
|
-
plan
|
|
2484
|
+
plan: components["schemas"]["plan"];
|
|
2450
2485
|
preDeployCommand?: string;
|
|
2451
2486
|
pullRequestPreviewsEnabled?: components["schemas"]["pullRequestPreviewsEnabled"];
|
|
2452
2487
|
previews?: components["schemas"]["previews"];
|
|
@@ -2524,7 +2559,7 @@ export interface components {
|
|
|
2524
2559
|
envSpecificDetails?: components["schemas"]["envSpecificDetailsPATCH"];
|
|
2525
2560
|
healthCheckPath?: string;
|
|
2526
2561
|
maintenanceMode?: components["schemas"]["maintenanceMode"];
|
|
2527
|
-
plan?: components["schemas"]["
|
|
2562
|
+
plan?: components["schemas"]["plan"];
|
|
2528
2563
|
preDeployCommand?: string;
|
|
2529
2564
|
pullRequestPreviewsEnabled?: components["schemas"]["pullRequestPreviewsEnabled"];
|
|
2530
2565
|
previews?: components["schemas"]["previews"];
|
|
@@ -2837,6 +2872,7 @@ export interface components {
|
|
|
2837
2872
|
};
|
|
2838
2873
|
redisPlan: "free" | "starter" | "standard" | "pro" | "pro_plus" | "custom";
|
|
2839
2874
|
databaseStatus: "creating" | "available" | "unavailable" | "config_restart" | "suspended" | "maintenance_scheduled" | "maintenance_in_progress" | "recovery_failed" | "recovery_in_progress" | "unknown" | "updating_instance";
|
|
2875
|
+
DeployMode: "deploy_only" | "build_and_deploy";
|
|
2840
2876
|
projectWithCursor: {
|
|
2841
2877
|
project: components["schemas"]["project"];
|
|
2842
2878
|
cursor: components["schemas"]["cursor"];
|
|
@@ -3098,6 +3134,28 @@ export interface components {
|
|
|
3098
3134
|
branch: string;
|
|
3099
3135
|
lastSync?: string;
|
|
3100
3136
|
};
|
|
3137
|
+
validateBlueprintRequest: {
|
|
3138
|
+
ownerId: string;
|
|
3139
|
+
file: string;
|
|
3140
|
+
};
|
|
3141
|
+
validationError: {
|
|
3142
|
+
path?: string;
|
|
3143
|
+
error: string;
|
|
3144
|
+
line?: number;
|
|
3145
|
+
column?: number;
|
|
3146
|
+
};
|
|
3147
|
+
validationPlanSummary: {
|
|
3148
|
+
services?: string[];
|
|
3149
|
+
databases?: string[];
|
|
3150
|
+
keyValue?: string[];
|
|
3151
|
+
envGroups?: string[];
|
|
3152
|
+
totalActions?: number;
|
|
3153
|
+
};
|
|
3154
|
+
validateBlueprintResponse: {
|
|
3155
|
+
valid: boolean;
|
|
3156
|
+
errors?: components["schemas"]["validationError"][];
|
|
3157
|
+
plan?: components["schemas"]["validationPlanSummary"];
|
|
3158
|
+
};
|
|
3101
3159
|
resourceRef: {
|
|
3102
3160
|
id: string;
|
|
3103
3161
|
name: string;
|
|
@@ -3514,7 +3572,7 @@ export interface components {
|
|
|
3514
3572
|
token?: components["schemas"]["logStreamToken"];
|
|
3515
3573
|
setting: components["schemas"]["logStreamSetting"];
|
|
3516
3574
|
};
|
|
3517
|
-
otelProviderType: "BETTER_STACK" | "GRAFANA" | "DATADOG" | "NEW_RELIC" | "HONEYCOMB" | "SIGNOZ" | "CUSTOM";
|
|
3575
|
+
otelProviderType: "BETTER_STACK" | "GRAFANA" | "DATADOG" | "NEW_RELIC" | "HONEYCOMB" | "SIGNOZ" | "GROUNDSOURCE" | "CUSTOM";
|
|
3518
3576
|
metricsStream: {
|
|
3519
3577
|
ownerId: string;
|
|
3520
3578
|
provider: components["schemas"]["otelProviderType"];
|
|
@@ -3722,6 +3780,16 @@ export interface components {
|
|
|
3722
3780
|
retries: number;
|
|
3723
3781
|
attempts: components["schemas"]["TaskAttemptDetails"][];
|
|
3724
3782
|
};
|
|
3783
|
+
blobMetadata: {
|
|
3784
|
+
key: string;
|
|
3785
|
+
sizeBytes: number;
|
|
3786
|
+
lastModified: string;
|
|
3787
|
+
contentType: string;
|
|
3788
|
+
};
|
|
3789
|
+
blobWithCursor: {
|
|
3790
|
+
cursor: string;
|
|
3791
|
+
blob: components["schemas"]["blobMetadata"];
|
|
3792
|
+
};
|
|
3725
3793
|
getBlobOutput: {
|
|
3726
3794
|
url: string;
|
|
3727
3795
|
expiresAt: string;
|
|
@@ -4031,6 +4099,34 @@ export interface operations {
|
|
|
4031
4099
|
503: components["responses"]["503ServiceUnavailable"];
|
|
4032
4100
|
};
|
|
4033
4101
|
};
|
|
4102
|
+
"validate-blueprint": {
|
|
4103
|
+
parameters: {
|
|
4104
|
+
query?: never;
|
|
4105
|
+
header?: never;
|
|
4106
|
+
path?: never;
|
|
4107
|
+
cookie?: never;
|
|
4108
|
+
};
|
|
4109
|
+
requestBody: {
|
|
4110
|
+
content: {
|
|
4111
|
+
"multipart/form-data": components["schemas"]["validateBlueprintRequest"];
|
|
4112
|
+
};
|
|
4113
|
+
};
|
|
4114
|
+
responses: {
|
|
4115
|
+
200: {
|
|
4116
|
+
headers: {
|
|
4117
|
+
[name: string]: unknown;
|
|
4118
|
+
};
|
|
4119
|
+
content: {
|
|
4120
|
+
"application/json": components["schemas"]["validateBlueprintResponse"];
|
|
4121
|
+
};
|
|
4122
|
+
};
|
|
4123
|
+
400: components["responses"]["400BadRequest"];
|
|
4124
|
+
401: components["responses"]["401Unauthorized"];
|
|
4125
|
+
403: components["responses"]["403Forbidden"];
|
|
4126
|
+
429: components["responses"]["429RateLimit"];
|
|
4127
|
+
500: components["responses"]["500InternalServerError"];
|
|
4128
|
+
};
|
|
4129
|
+
};
|
|
4034
4130
|
"remove-workspace-member": {
|
|
4035
4131
|
parameters: {
|
|
4036
4132
|
query?: never;
|
|
@@ -5178,6 +5274,7 @@ export interface operations {
|
|
|
5178
5274
|
clearCache?: "clear" | "do_not_clear";
|
|
5179
5275
|
commitId?: string;
|
|
5180
5276
|
imageUrl?: string;
|
|
5277
|
+
deployMode?: components["schemas"]["DeployMode"];
|
|
5181
5278
|
};
|
|
5182
5279
|
};
|
|
5183
5280
|
};
|
|
@@ -9688,6 +9785,37 @@ export interface operations {
|
|
|
9688
9785
|
503: components["responses"]["503ServiceUnavailable"];
|
|
9689
9786
|
};
|
|
9690
9787
|
};
|
|
9788
|
+
"list-blobs": {
|
|
9789
|
+
parameters: {
|
|
9790
|
+
query?: {
|
|
9791
|
+
cursor?: components["parameters"]["cursorParam"];
|
|
9792
|
+
limit?: components["parameters"]["limitParam"];
|
|
9793
|
+
};
|
|
9794
|
+
header?: never;
|
|
9795
|
+
path: {
|
|
9796
|
+
ownerId: components["parameters"]["ownerIdPathParam"];
|
|
9797
|
+
region: components["parameters"]["regionPathParam"];
|
|
9798
|
+
};
|
|
9799
|
+
cookie?: never;
|
|
9800
|
+
};
|
|
9801
|
+
requestBody?: never;
|
|
9802
|
+
responses: {
|
|
9803
|
+
200: {
|
|
9804
|
+
headers: {
|
|
9805
|
+
[name: string]: unknown;
|
|
9806
|
+
};
|
|
9807
|
+
content: {
|
|
9808
|
+
"application/json": components["schemas"]["blobWithCursor"][];
|
|
9809
|
+
};
|
|
9810
|
+
};
|
|
9811
|
+
401: components["responses"]["401Unauthorized"];
|
|
9812
|
+
403: components["responses"]["403Forbidden"];
|
|
9813
|
+
404: components["responses"]["404NotFound"];
|
|
9814
|
+
429: components["responses"]["429RateLimit"];
|
|
9815
|
+
500: components["responses"]["500InternalServerError"];
|
|
9816
|
+
503: components["responses"]["503ServiceUnavailable"];
|
|
9817
|
+
};
|
|
9818
|
+
};
|
|
9691
9819
|
"get-blob": {
|
|
9692
9820
|
parameters: {
|
|
9693
9821
|
query?: never;
|