@malloy-publisher/app 0.2.5 → 0.2.6

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.
Files changed (2) hide show
  1. package/dist/api-doc.yaml +30 -0
  2. package/package.json +2 -2
package/dist/api-doc.yaml CHANGED
@@ -731,6 +731,8 @@ paths:
731
731
  application/json:
732
732
  schema:
733
733
  $ref: "#/components/schemas/Table"
734
+ "400":
735
+ $ref: "#/components/responses/BadRequest"
734
736
  "401":
735
737
  $ref: "#/components/responses/Unauthorized"
736
738
  "404":
@@ -779,6 +781,8 @@ paths:
779
781
  application/json:
780
782
  schema:
781
783
  $ref: "#/components/schemas/SqlSource"
784
+ "400":
785
+ $ref: "#/components/responses/BadRequest"
782
786
  "401":
783
787
  $ref: "#/components/responses/Unauthorized"
784
788
  "404":
@@ -1089,6 +1093,8 @@ paths:
1089
1093
  application/json:
1090
1094
  schema:
1091
1095
  $ref: "#/components/schemas/Table"
1096
+ "400":
1097
+ $ref: "#/components/responses/BadRequest"
1092
1098
  "401":
1093
1099
  $ref: "#/components/responses/Unauthorized"
1094
1100
  "404":
@@ -1143,6 +1149,8 @@ paths:
1143
1149
  application/json:
1144
1150
  schema:
1145
1151
  $ref: "#/components/schemas/SqlSource"
1152
+ "400":
1153
+ $ref: "#/components/responses/BadRequest"
1146
1154
  "401":
1147
1155
  $ref: "#/components/responses/Unauthorized"
1148
1156
  "404":
@@ -5347,12 +5355,34 @@ components:
5347
5355
  type: object
5348
5356
  description: Standard error response format
5349
5357
  properties:
5358
+ code:
5359
+ type: integer
5360
+ description: HTTP status code, repeated in the body for convenience
5350
5361
  message:
5351
5362
  type: string
5352
5363
  description: Human-readable error message describing what went wrong
5353
5364
  details:
5354
5365
  type: string
5355
5366
  description: Additional error details or context
5367
+ reason:
5368
+ type: string
5369
+ description: |
5370
+ Machine-readable discriminator, for callers that must branch on
5371
+ which error they got rather than on prose. Absent unless a caller is
5372
+ expected to act on it, so treat absence as "no special handling".
5373
+
5374
+ TABLE_NOT_FOUND distinguishes a table that is not in the database
5375
+ from the other conditions that also answer 404 on these routes --
5376
+ an environment or connection this server does not host. The former
5377
+ says nothing about whether the caller reached the right server; the
5378
+ latter is a routing problem worth retrying elsewhere.
5379
+
5380
+ Deliberately an open string rather than an enum. Generators render
5381
+ an enum closed, so adding a second value here would break every
5382
+ client generated before it -- on the one field whose purpose is to
5383
+ grow. Callers must treat an unrecognized value as absent.
5384
+
5385
+ Known values: TABLE_NOT_FOUND.
5356
5386
  required:
5357
5387
  - message
5358
5388
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@malloy-publisher/app",
3
3
  "description": "Malloy Publisher Console (the built-in web UI)",
4
- "version": "0.2.5",
4
+ "version": "0.2.6",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",
@@ -41,7 +41,7 @@
41
41
  "test:playwright:headed": "bunx playwright test --config=playwright.config.ts --headed"
42
42
  },
43
43
  "dependencies": {
44
- "@malloy-publisher/sdk": "^0.2.5",
44
+ "@malloy-publisher/sdk": "^0.2.6",
45
45
  "@mui/icons-material": "^7.0.2",
46
46
  "@mui/material": "^7.0.2",
47
47
  "@tanstack/react-query": "^5.59.16",