@trillboards/api-client 1.3.1 → 2.0.0
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/dist/{chunk-SY5LVDFK.mjs → chunk-N5FA7PYL.mjs} +2 -2
- package/dist/chunk-N5FA7PYL.mjs.map +1 -0
- package/dist/generated.d.mts +2 -2
- package/dist/generated.d.ts +2 -2
- package/dist/generated.js.map +1 -1
- package/dist/generated.mjs +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-SY5LVDFK.mjs.map +0 -1
package/dist/generated.d.mts
CHANGED
|
@@ -337,8 +337,8 @@ type BleScanResultData = {
|
|
|
337
337
|
};
|
|
338
338
|
type CanonicalError = {
|
|
339
339
|
error: {
|
|
340
|
-
/** Stable machine-readable error code
|
|
341
|
-
code:
|
|
340
|
+
/** Stable machine-readable error code. Switch on this, never on `message`. The 111 CATALOGUED codes are published as the `ErrorCode` schema and served live by `GET /v1/errors`, which is the authority. This field is NOT limited to them: services emit further codes directly, and `ApiError.notFound(resource)` mints `<resource>_not_found` from an arbitrary resource name. Always handle an unrecognised code by falling back to `type`. */
|
|
341
|
+
code: string;
|
|
342
342
|
/** Per-field violations (populated from Zod errors). */
|
|
343
343
|
details?: Array<{
|
|
344
344
|
code?: string;
|
package/dist/generated.d.ts
CHANGED
|
@@ -337,8 +337,8 @@ type BleScanResultData = {
|
|
|
337
337
|
};
|
|
338
338
|
type CanonicalError = {
|
|
339
339
|
error: {
|
|
340
|
-
/** Stable machine-readable error code
|
|
341
|
-
code:
|
|
340
|
+
/** Stable machine-readable error code. Switch on this, never on `message`. The 111 CATALOGUED codes are published as the `ErrorCode` schema and served live by `GET /v1/errors`, which is the authority. This field is NOT limited to them: services emit further codes directly, and `ApiError.notFound(resource)` mints `<resource>_not_found` from an arbitrary resource name. Always handle an unrecognised code by falling back to `type`. */
|
|
341
|
+
code: string;
|
|
342
342
|
/** Per-field violations (populated from Zod errors). */
|
|
343
343
|
details?: Array<{
|
|
344
344
|
code?: string;
|