@rhinestone/sdk 1.0.0-beta.42 → 1.0.0-beta.43
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../orchestrator/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../orchestrator/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,MAAM,CAAA;AAwBhD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,SAAS,EAET,cAAc,EACf,MAAM,SAAS,CAAA;AAGhB,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,MAAM,CAAC,CAAQ;gBAEX,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAKxC,YAAY,CAChB,WAAW,EAAE,OAAO,EACpB,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,MAAM,CAAC,EAAE;YACP,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;SAC7B,CAAA;KACF,GACA,OAAO,CAAC,SAAS,CAAC;IA+Cf,iBAAiB,CACrB,WAAW,EAAE,OAAO,EACpB,kBAAkB,EAAE,MAAM,EAC1B,uBAAuB,EAAE,OAAO,EAChC,mBAAmB,EAAE,MAAM,EAC3B,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,MAAM,CAAC;IAqDZ,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IAQtD,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAQxD,YAAY,CAChB,yBAAyB,EAAE,cAAc,EACzC,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,YAAY,CAAC;IAgBlB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IASlE,OAAO,CAAC,UAAU;YAUJ,KAAK;IA4BnB,OAAO,CAAC,UAAU;IA6GlB,OAAO,CAAC,iBAAiB;CAwF1B"}
|
|
@@ -203,15 +203,6 @@ class Orchestrator {
|
|
|
203
203
|
traceId,
|
|
204
204
|
statusCode: status,
|
|
205
205
|
};
|
|
206
|
-
if (status === 422) {
|
|
207
|
-
// zod / json schema validation errors
|
|
208
|
-
const context = { traceId, errors };
|
|
209
|
-
throw new error_1.SchemaValidationError({
|
|
210
|
-
...baseParams,
|
|
211
|
-
context,
|
|
212
|
-
message: message || 'Schema validation error',
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
206
|
if (status === 429) {
|
|
216
207
|
const retryAfter = headers?.retryAfter;
|
|
217
208
|
const context = { traceId, retryAfter };
|
|
@@ -235,7 +226,11 @@ class Orchestrator {
|
|
|
235
226
|
}
|
|
236
227
|
switch (status) {
|
|
237
228
|
case 400:
|
|
238
|
-
throw new error_1.BadRequestError(
|
|
229
|
+
throw new error_1.BadRequestError({
|
|
230
|
+
...baseParams,
|
|
231
|
+
context: { traceId, errors },
|
|
232
|
+
message: message,
|
|
233
|
+
});
|
|
239
234
|
case 401:
|
|
240
235
|
if (message === 'Authentication is required') {
|
|
241
236
|
throw new error_1.AuthenticationRequiredError(baseParams);
|