@bodhiapp/ts-client 0.1.30 → 0.1.31
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.
|
@@ -1533,7 +1533,8 @@ export interface components {
|
|
|
1533
1533
|
/** @example {
|
|
1534
1534
|
* "code": "validation_error",
|
|
1535
1535
|
* "message": "Validation failed: name is required",
|
|
1536
|
-
* "param": {
|
|
1536
|
+
* "param": "{\"field\":\"name\",\"value\":\"invalid\"}",
|
|
1537
|
+
* "params": {
|
|
1537
1538
|
* "field": "name",
|
|
1538
1539
|
* "value": "invalid"
|
|
1539
1540
|
* },
|
|
@@ -1562,15 +1563,23 @@ export interface components {
|
|
|
1562
1563
|
* "value": "invalid"
|
|
1563
1564
|
* }
|
|
1564
1565
|
*/
|
|
1565
|
-
|
|
1566
|
+
params?: {
|
|
1566
1567
|
[key: string]: string;
|
|
1567
1568
|
} | null;
|
|
1569
|
+
/**
|
|
1570
|
+
* @description JSON-encoded form of `params`. Superset field so clients that speak the
|
|
1571
|
+
* OpenAI `Error` shape (where `param` is a String) can still read it.
|
|
1572
|
+
* Populated automatically from `params` by `BodhiError::new`.
|
|
1573
|
+
* @example {"field":"name","value":"invalid"}
|
|
1574
|
+
*/
|
|
1575
|
+
param?: string | null;
|
|
1568
1576
|
};
|
|
1569
1577
|
/** @example {
|
|
1570
1578
|
* "error": {
|
|
1571
1579
|
* "code": "validation_error",
|
|
1572
1580
|
* "message": "Validation failed: name is required",
|
|
1573
|
-
* "param": {
|
|
1581
|
+
* "param": "{\"field\":\"name\"}",
|
|
1582
|
+
* "params": {
|
|
1574
1583
|
* "field": "name"
|
|
1575
1584
|
* },
|
|
1576
1585
|
* "type": "invalid_request_error"
|
|
@@ -1534,7 +1534,8 @@ export interface components {
|
|
|
1534
1534
|
/** @example {
|
|
1535
1535
|
* "code": "validation_error",
|
|
1536
1536
|
* "message": "Validation failed: name is required",
|
|
1537
|
-
* "param": {
|
|
1537
|
+
* "param": "{\"field\":\"name\",\"value\":\"invalid\"}",
|
|
1538
|
+
* "params": {
|
|
1538
1539
|
* "field": "name",
|
|
1539
1540
|
* "value": "invalid"
|
|
1540
1541
|
* },
|
|
@@ -1563,15 +1564,23 @@ export interface components {
|
|
|
1563
1564
|
* "value": "invalid"
|
|
1564
1565
|
* }
|
|
1565
1566
|
*/
|
|
1566
|
-
|
|
1567
|
+
params?: {
|
|
1567
1568
|
[key: string]: string;
|
|
1568
1569
|
} | null;
|
|
1570
|
+
/**
|
|
1571
|
+
* @description JSON-encoded form of `params`. Superset field so clients that speak the
|
|
1572
|
+
* OpenAI `Error` shape (where `param` is a String) can still read it.
|
|
1573
|
+
* Populated automatically from `params` by `BodhiError::new`.
|
|
1574
|
+
* @example {"field":"name","value":"invalid"}
|
|
1575
|
+
*/
|
|
1576
|
+
param?: string | null;
|
|
1569
1577
|
};
|
|
1570
1578
|
/** @example {
|
|
1571
1579
|
* "error": {
|
|
1572
1580
|
* "code": "validation_error",
|
|
1573
1581
|
* "message": "Validation failed: name is required",
|
|
1574
|
-
* "param": {
|
|
1582
|
+
* "param": "{\"field\":\"name\"}",
|
|
1583
|
+
* "params": {
|
|
1575
1584
|
* "field": "name"
|
|
1576
1585
|
* },
|
|
1577
1586
|
* "type": "invalid_request_error"
|
|
@@ -343,9 +343,15 @@ export type BodhiError = {
|
|
|
343
343
|
/**
|
|
344
344
|
* Additional error parameters as key-value pairs (for validation errors)
|
|
345
345
|
*/
|
|
346
|
-
|
|
346
|
+
params?: {
|
|
347
347
|
[key: string]: string;
|
|
348
348
|
} | null;
|
|
349
|
+
/**
|
|
350
|
+
* JSON-encoded form of `params`. Superset field so clients that speak the
|
|
351
|
+
* OpenAI `Error` shape (where `param` is a String) can still read it.
|
|
352
|
+
* Populated automatically from `params` by `BodhiError::new`.
|
|
353
|
+
*/
|
|
354
|
+
param?: string | null;
|
|
349
355
|
};
|
|
350
356
|
export type BodhiErrorResponse = {
|
|
351
357
|
/**
|
package/dist/types/types.gen.ts
CHANGED
|
@@ -372,9 +372,15 @@ export type BodhiError = {
|
|
|
372
372
|
/**
|
|
373
373
|
* Additional error parameters as key-value pairs (for validation errors)
|
|
374
374
|
*/
|
|
375
|
-
|
|
375
|
+
params?: {
|
|
376
376
|
[key: string]: string;
|
|
377
377
|
} | null;
|
|
378
|
+
/**
|
|
379
|
+
* JSON-encoded form of `params`. Superset field so clients that speak the
|
|
380
|
+
* OpenAI `Error` shape (where `param` is a String) can still read it.
|
|
381
|
+
* Populated automatically from `params` by `BodhiError::new`.
|
|
382
|
+
*/
|
|
383
|
+
param?: string | null;
|
|
378
384
|
};
|
|
379
385
|
|
|
380
386
|
export type BodhiErrorResponse = {
|