@standards/schema 1.0.0-alpha.382 → 1.0.0-alpha.385
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/{all-BgYwavNm.d.mts → all-Czr26_QP.d.ts} +1115 -1116
- package/dist/{all-DjdKldjX.d.ts → all-DIAipZSx.d.mts} +1115 -1116
- package/dist/api/index.d.mts +2986 -2923
- package/dist/api/index.d.ts +2986 -2923
- package/dist/api/index.js +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/attribute-validators-COsyRG9V.mjs +11 -0
- package/dist/attribute-validators-CQEf6iqM.js +11 -0
- package/dist/{attributes-kAhQzg8-.d.ts → attributes-BcA_reJZ.d.ts} +58 -59
- package/dist/{attributes-aTeqx6cK.d.mts → attributes-eqr1vdPP.d.mts} +58 -59
- package/dist/checkbox-C9aJ-6gq.d.ts +10 -0
- package/dist/checkbox-DfXrFM2z.d.mts +10 -0
- package/dist/config-C1CDWJf8.mjs +2 -0
- package/dist/config-DUQAd-Ur.js +2 -0
- package/dist/{core-397tQy5q.js → core-DAxRlJ5i.js} +1 -1
- package/dist/{core-BLHhNykL.mjs → core-rKI7Q9_U.mjs} +1 -1
- package/dist/{date-D007KyTI.d.ts → date-BzggmHjS.d.mts} +5 -6
- package/dist/{date-CxqDOhA0.d.mts → date-CdaoV9_L.d.ts} +5 -6
- package/dist/{exceptions-DjPVyS-Q.d.mts → exceptions-CgzBcQIl.d.mts} +70 -70
- package/dist/{exceptions-DjPVyS-Q.d.ts → exceptions-CgzBcQIl.d.ts} +70 -70
- package/dist/exceptions.d.mts +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/exceptions.js +1 -1
- package/dist/exceptions.mjs +1 -1
- package/dist/{index-CiTBL4gH.d.ts → index-BSYjSdhW.d.mts} +17 -18
- package/dist/{index-DLO8JpnY.d.ts → index-CCH94vyR.d.ts} +6 -7
- package/dist/{index-DPO5w-fC.d.mts → index-D1iR2xuc.d.ts} +17 -18
- package/dist/{index-D7TEaPqX.d.ts → index-DFQSFYiY.d.mts} +2863 -2790
- package/dist/{index-DwQWBzYJ.d.mts → index-DKjcsjFG.d.ts} +2863 -2790
- package/dist/{index-Bu9xF5Nq.d.ts → index-e1Oh8ngS.d.ts} +78 -78
- package/dist/{index-BmNMneu3.d.mts → index-jDwfdudj.d.mts} +78 -78
- package/dist/{index-3HZjBOpj.d.mts → index-zJz3LbXr.d.mts} +6 -7
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/number-B3u9vPtb.d.ts +10 -0
- package/dist/number-Br56q0hL.d.mts +10 -0
- package/dist/object-BF5y6bgs.mjs +4 -0
- package/dist/object-Kx-ADbIo.js +4 -0
- package/dist/{objects-B4DgFZ82.d.ts → objects-CLxyZh-U.d.ts} +66 -57
- package/dist/{objects-C9f6hFW_.d.mts → objects-DxEMaC2Z.d.mts} +66 -57
- package/dist/phone-BGJea5sr.mjs +2 -0
- package/dist/phone-DrHyIujN.js +2 -0
- package/dist/record-aggregates-Cj3p3_ce.js +2 -0
- package/dist/{record-aggregates-CzG86pUS.mjs → record-aggregates-DQXrIuGE.mjs} +1 -1
- package/dist/record-operation-7-DRRONb.mjs +2 -0
- package/dist/record-operation-Bbn-LZhq.js +2 -0
- package/dist/text-2DB_Jc_x.js +2 -0
- package/dist/text-BaxaZ5Vv.mjs +2 -0
- package/dist/text-Bvk4ila8.d.ts +10 -0
- package/dist/text-C5NnfCJg.d.mts +10 -0
- package/dist/{utils-gY3d9Dwp.js → utils-B-gGq3FS.js} +1 -1
- package/dist/{utils-B7Dlrtnx.d.ts → utils-B2bq4zLb.d.ts} +15 -16
- package/dist/{utils-DbRMK8NI.d.mts → utils-CRx-eR8T.d.mts} +15 -16
- package/dist/{utils-fXIvFFl6.mjs → utils-DaejNWxh.mjs} +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/dist/validation/all.d.mts +4 -4
- package/dist/validation/all.d.ts +4 -4
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/complex/currency.d.mts +4 -4
- package/dist/validation/complex/currency.d.ts +4 -4
- package/dist/validation/complex/currency.js +1 -1
- package/dist/validation/complex/currency.mjs +1 -1
- package/dist/validation/complex/location.d.mts +4 -4
- package/dist/validation/complex/location.d.ts +4 -4
- package/dist/validation/complex/location.js +1 -1
- package/dist/validation/complex/location.mjs +1 -1
- package/dist/validation/complex/phone.d.mts +4 -4
- package/dist/validation/complex/phone.d.ts +4 -4
- package/dist/validation/complex/phone.js +1 -1
- package/dist/validation/complex/phone.mjs +1 -1
- package/dist/validation/complex/relation.d.mts +6 -6
- package/dist/validation/complex/relation.d.ts +6 -6
- package/dist/validation/complex/relation.js +1 -1
- package/dist/validation/complex/relation.mjs +1 -1
- package/dist/validation/complex/richtext.d.mts +4 -4
- package/dist/validation/complex/richtext.d.ts +4 -4
- package/dist/validation/complex/richtext.js +1 -1
- package/dist/validation/complex/richtext.mjs +1 -1
- package/dist/validation/complex/select.d.mts +6 -6
- package/dist/validation/complex/select.d.ts +6 -6
- package/dist/validation/complex/select.js +1 -1
- package/dist/validation/complex/select.mjs +1 -1
- package/dist/validation/complex/user.d.mts +4 -4
- package/dist/validation/complex/user.d.ts +4 -4
- package/dist/validation/complex/user.js +1 -1
- package/dist/validation/complex/user.mjs +1 -1
- package/dist/validation/computed/formula.d.mts +4 -4
- package/dist/validation/computed/formula.d.ts +4 -4
- package/dist/validation/computed/formula.js +1 -1
- package/dist/validation/computed/formula.mjs +1 -1
- package/dist/validation/computed/rollup.d.mts +4 -4
- package/dist/validation/computed/rollup.d.ts +4 -4
- package/dist/validation/computed/rollup.js +1 -1
- package/dist/validation/computed/rollup.mjs +1 -1
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/config/index.js +1 -1
- package/dist/validation/config/index.mjs +1 -1
- package/dist/validation/core/index.d.mts +1 -1
- package/dist/validation/core/index.d.ts +1 -1
- package/dist/validation/core/index.js +1 -1
- package/dist/validation/core/index.mjs +1 -1
- package/dist/validation/object/index.d.mts +1 -1
- package/dist/validation/object/index.d.ts +1 -1
- package/dist/validation/object/index.js +1 -1
- package/dist/validation/object/index.mjs +1 -1
- package/dist/validation/primitives/checkbox.d.mts +1 -1
- package/dist/validation/primitives/checkbox.d.ts +1 -1
- package/dist/validation/primitives/checkbox.js +1 -1
- package/dist/validation/primitives/checkbox.mjs +1 -1
- package/dist/validation/primitives/date.d.mts +1 -1
- package/dist/validation/primitives/date.d.ts +1 -1
- package/dist/validation/primitives/date.js +1 -1
- package/dist/validation/primitives/date.mjs +1 -1
- package/dist/validation/primitives/number.d.mts +1 -1
- package/dist/validation/primitives/number.d.ts +1 -1
- package/dist/validation/primitives/number.js +1 -1
- package/dist/validation/primitives/number.mjs +1 -1
- package/dist/validation/primitives/text.d.mts +1 -1
- package/dist/validation/primitives/text.d.ts +1 -1
- package/dist/validation/primitives/text.js +1 -1
- package/dist/validation/primitives/text.mjs +1 -1
- package/dist/view-config.schema-BOuNAZ5T.js +2 -0
- package/dist/view-config.schema-Dl5GkAzl.mjs +2 -0
- package/dist/zod-locale-D_QkXhnp.d.mts +2 -0
- package/dist/zod-locale-D_QkXhnp.d.ts +2 -0
- package/dist/zod-locale.d.mts +2 -0
- package/dist/zod-locale.d.ts +2 -0
- package/dist/zod-locale.js +2 -0
- package/dist/zod-locale.mjs +2 -0
- package/package.json +17 -3
- package/dist/attribute-validators-DRqhAt2t.mjs +0 -11
- package/dist/attribute-validators-WAoJbap5.js +0 -11
- package/dist/checkbox-BZvZOraX.d.mts +0 -11
- package/dist/checkbox-n0YV1O13.d.ts +0 -11
- package/dist/config-BIxnbUN8.mjs +0 -2
- package/dist/config-DdjlHdPg.js +0 -2
- package/dist/number-CgBxEbjI.d.mts +0 -11
- package/dist/number-DncH-WRO.d.ts +0 -11
- package/dist/object-DcgxLvip.js +0 -4
- package/dist/object-Dzl7sfq8.mjs +0 -4
- package/dist/phone-BB-tzcSr.js +0 -2
- package/dist/phone-Bca_xiOX.mjs +0 -2
- package/dist/record-aggregates-DwpIJ2Dv.js +0 -2
- package/dist/record-operation-BSXczk7v.js +0 -2
- package/dist/record-operation-C9oXHmfF.mjs +0 -2
- package/dist/text-A9AJ1wUO.js +0 -2
- package/dist/text-C8Lb-NFo.mjs +0 -2
- package/dist/text-DDoY_LcQ.d.ts +0 -11
- package/dist/text-DeUqCFp9.d.mts +0 -11
- package/dist/view-config.schema-BQ9tU_9G.js +0 -2
- package/dist/view-config.schema-BmjCQJ51.mjs +0 -2
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
3
|
//#region src/lib/permission-grants.d.ts
|
|
4
|
-
declare const PERMISSION_ACTIONS: readonly ["read", "create", "update", "delete", "manage"];
|
|
4
|
+
export declare const PERMISSION_ACTIONS: readonly ["read", "create", "update", "delete", "manage"];
|
|
5
5
|
/** The only definition of a valid grant (spec B1). */
|
|
6
|
-
declare const permissionGrantSchema: z$
|
|
7
|
-
scope: z$
|
|
6
|
+
export declare const permissionGrantSchema: z$2.ZodObject<{
|
|
7
|
+
scope: z$2.ZodEnum<{
|
|
8
8
|
object: "object";
|
|
9
9
|
system: "system";
|
|
10
10
|
}>;
|
|
11
|
-
target: z$
|
|
12
|
-
actions: z$
|
|
11
|
+
target: z$2.ZodString;
|
|
12
|
+
actions: z$2.ZodArray<z$2.ZodEnum<{
|
|
13
13
|
read: "read";
|
|
14
14
|
create: "create";
|
|
15
15
|
update: "update";
|
|
16
16
|
delete: "delete";
|
|
17
17
|
manage: "manage";
|
|
18
18
|
}>>;
|
|
19
|
-
}, z$
|
|
20
|
-
type PermissionGrant = z$
|
|
21
|
-
interface GrantIssue {
|
|
19
|
+
}, z$2.core.$strict>;
|
|
20
|
+
export type PermissionGrant = z$2.infer<typeof permissionGrantSchema>;
|
|
21
|
+
export interface GrantIssue {
|
|
22
22
|
target: string;
|
|
23
23
|
reason: "shape" | "unknown-resource" | "off-level" | "split-capability" | "unknown-object" | "object-action";
|
|
24
24
|
}
|
|
25
|
-
declare function findGrantIssues(grants: readonly unknown[], context: {
|
|
25
|
+
export declare function findGrantIssues(grants: readonly unknown[], context: {
|
|
26
26
|
objectNames: ReadonlySet<string>;
|
|
27
27
|
}): GrantIssue[];
|
|
28
28
|
//#endregion
|
|
@@ -30,7 +30,7 @@ declare function findGrantIssues(grants: readonly unknown[], context: {
|
|
|
30
30
|
/**
|
|
31
31
|
* Error codes for schema exceptions
|
|
32
32
|
*/
|
|
33
|
-
declare const SchemaErrorCode: {
|
|
33
|
+
export declare const SchemaErrorCode: {
|
|
34
34
|
readonly CONNECTOR_INVALID_SIGNATURE: "SCHEMA_CONNECTOR_INVALID_SIGNATURE";
|
|
35
35
|
readonly DRAFT_REVISION_CONFLICT: "DRAFT_REVISION_CONFLICT";
|
|
36
36
|
readonly UNKNOWN: "SCHEMA_UNKNOWN_ERROR";
|
|
@@ -217,6 +217,7 @@ declare const SchemaErrorCode: {
|
|
|
217
217
|
readonly CLOUD_BROWSER_EXTENSION_TIMEOUT: "CLOUD_BROWSER_EXTENSION_TIMEOUT";
|
|
218
218
|
readonly CLOUD_BROWSER_CLOSED: "CLOUD_BROWSER_CLOSED";
|
|
219
219
|
readonly BROWSER_PROFILE_LOCKED: "BROWSER_PROFILE_LOCKED";
|
|
220
|
+
readonly ENV_VAR_NOT_FOUND: "ENV_VAR_NOT_FOUND";
|
|
220
221
|
readonly DEVICE_NOT_FOUND: "DEVICE_NOT_FOUND";
|
|
221
222
|
readonly DEVICE_OFFLINE: "DEVICE_OFFLINE";
|
|
222
223
|
readonly DEVICE_CAPABILITY_MISMATCH: "DEVICE_CAPABILITY_MISMATCH";
|
|
@@ -264,18 +265,18 @@ declare const SchemaErrorCode: {
|
|
|
264
265
|
/** The provider returned vectors whose length differs from the configured dimensions. */
|
|
265
266
|
readonly EMBEDDING_DIMENSION_MISMATCH: "EMBEDDING_DIMENSION_MISMATCH";
|
|
266
267
|
};
|
|
267
|
-
type SchemaErrorCode = (typeof SchemaErrorCode)[keyof typeof SchemaErrorCode];
|
|
268
|
+
export type SchemaErrorCode = (typeof SchemaErrorCode)[keyof typeof SchemaErrorCode];
|
|
268
269
|
/**
|
|
269
270
|
* Base error class for all schema-related errors
|
|
270
271
|
*/
|
|
271
272
|
/** What a `SchemaError` serialises to; a subclass may withhold `name` and `details`. */
|
|
272
|
-
interface SchemaErrorJson {
|
|
273
|
+
export interface SchemaErrorJson {
|
|
273
274
|
code: SchemaErrorCode;
|
|
274
275
|
message: string;
|
|
275
276
|
name?: string;
|
|
276
277
|
details?: Record<string, unknown>;
|
|
277
278
|
}
|
|
278
|
-
declare class SchemaError extends Error {
|
|
279
|
+
export declare class SchemaError extends Error {
|
|
279
280
|
readonly code: SchemaErrorCode;
|
|
280
281
|
readonly details?: Record<string, unknown>;
|
|
281
282
|
constructor(message: string, code?: SchemaErrorCode, details?: Record<string, unknown>);
|
|
@@ -284,7 +285,7 @@ declare class SchemaError extends Error {
|
|
|
284
285
|
/**
|
|
285
286
|
* Base class for "not found" errors
|
|
286
287
|
*/
|
|
287
|
-
declare class NotFoundError extends SchemaError {
|
|
288
|
+
export declare class NotFoundError extends SchemaError {
|
|
288
289
|
/** Literal discriminator for `Effect.catchTag`; a widened `string` breaks narrowing. */
|
|
289
290
|
readonly _tag = "NotFoundError";
|
|
290
291
|
readonly resourceType: string;
|
|
@@ -294,25 +295,25 @@ declare class NotFoundError extends SchemaError {
|
|
|
294
295
|
/**
|
|
295
296
|
* Object not found error
|
|
296
297
|
*/
|
|
297
|
-
declare class ObjectNotFoundError extends NotFoundError {
|
|
298
|
+
export declare class ObjectNotFoundError extends NotFoundError {
|
|
298
299
|
constructor(objectId: string);
|
|
299
300
|
}
|
|
300
301
|
/**
|
|
301
302
|
* Attribute not found error
|
|
302
303
|
*/
|
|
303
|
-
declare class AttributeNotFoundError extends NotFoundError {
|
|
304
|
+
export declare class AttributeNotFoundError extends NotFoundError {
|
|
304
305
|
constructor(attributeId: string);
|
|
305
306
|
}
|
|
306
307
|
/**
|
|
307
308
|
* Record not found error
|
|
308
309
|
*/
|
|
309
|
-
declare class RecordNotFoundError extends NotFoundError {
|
|
310
|
+
export declare class RecordNotFoundError extends NotFoundError {
|
|
310
311
|
constructor(recordId: string);
|
|
311
312
|
}
|
|
312
313
|
/**
|
|
313
314
|
* Validation error with field-level details
|
|
314
315
|
*/
|
|
315
|
-
interface ValidationErrorDetail {
|
|
316
|
+
export interface ValidationErrorDetail {
|
|
316
317
|
path: string[];
|
|
317
318
|
message: string;
|
|
318
319
|
code?: string;
|
|
@@ -320,7 +321,7 @@ interface ValidationErrorDetail {
|
|
|
320
321
|
/**
|
|
321
322
|
* Validation error thrown when data fails schema validation
|
|
322
323
|
*/
|
|
323
|
-
declare class ValidationError extends SchemaError {
|
|
324
|
+
export declare class ValidationError extends SchemaError {
|
|
324
325
|
/** Literal discriminator for `Effect.catchTag`; a widened `string` breaks narrowing. */
|
|
325
326
|
readonly _tag = "ValidationError";
|
|
326
327
|
readonly errors: ValidationErrorDetail[];
|
|
@@ -346,21 +347,21 @@ declare class ValidationError extends SchemaError {
|
|
|
346
347
|
* The first detail's `path[0]` is the declared attribute name, so the boot
|
|
347
348
|
* report pins the refusal to it.
|
|
348
349
|
*/
|
|
349
|
-
declare class AmbiguousSchemaChangeError extends ValidationError {
|
|
350
|
+
export declare class AmbiguousSchemaChangeError extends ValidationError {
|
|
350
351
|
readonly code: "SCHEMA_AMBIGUOUS_CHANGE";
|
|
351
352
|
constructor(message: string, errors: ValidationErrorDetail[]);
|
|
352
353
|
}
|
|
353
|
-
type AggregateErrorCode = typeof SchemaErrorCode.AGGREGATE_MIXED_CURRENCY | typeof SchemaErrorCode.AGGREGATE_SEARCH_UNSUPPORTED;
|
|
354
|
+
export type AggregateErrorCode = typeof SchemaErrorCode.AGGREGATE_MIXED_CURRENCY | typeof SchemaErrorCode.AGGREGATE_SEARCH_UNSUPPORTED;
|
|
354
355
|
/**
|
|
355
356
|
* An aggregate request the runtime cannot answer (`AGGREGATE_*` codes).
|
|
356
357
|
* HTTP status: 400 Bad Request.
|
|
357
358
|
*/
|
|
358
|
-
declare class AggregateValidationError extends ValidationError {
|
|
359
|
+
export declare class AggregateValidationError extends ValidationError {
|
|
359
360
|
readonly code: AggregateErrorCode;
|
|
360
361
|
constructor(code: AggregateErrorCode, message: string, errors?: ValidationErrorDetail[]);
|
|
361
362
|
}
|
|
362
363
|
/** A `content.page` tab that references a page: the record view holding it. */
|
|
363
|
-
interface PageReference {
|
|
364
|
+
export interface PageReference {
|
|
364
365
|
object: string;
|
|
365
366
|
view: string;
|
|
366
367
|
content: string;
|
|
@@ -371,17 +372,17 @@ interface PageReference {
|
|
|
371
372
|
* readers cannot see). Lists every referencing tab.
|
|
372
373
|
* HTTP status: 400 Bad Request.
|
|
373
374
|
*/
|
|
374
|
-
declare class PageReferencedError extends ValidationError {
|
|
375
|
+
export declare class PageReferencedError extends ValidationError {
|
|
375
376
|
readonly code: "PAGE_REFERENCED";
|
|
376
377
|
readonly references: PageReference[];
|
|
377
378
|
constructor(message: string, references: PageReference[]);
|
|
378
379
|
}
|
|
379
|
-
type ToolGroupGrantErrorCode = typeof SchemaErrorCode.AGENT_TOOL_GROUP_UNKNOWN | typeof SchemaErrorCode.AGENT_TOOL_GROUP_NOT_CONTAINED | typeof SchemaErrorCode.AGENT_TOOL_GROUP_SCOPE_MISSING | typeof SchemaErrorCode.AGENT_TOOL_GROUP_HARNESS | typeof SchemaErrorCode.AGENT_TOOL_GROUP_NEEDS_PERSON | typeof SchemaErrorCode.AGENT_TOOL_GROUP_ROUTINE_ONLY | typeof SchemaErrorCode.AGENT_TOOL_GROUP_REQUIRES;
|
|
380
|
+
export type ToolGroupGrantErrorCode = typeof SchemaErrorCode.AGENT_TOOL_GROUP_UNKNOWN | typeof SchemaErrorCode.AGENT_TOOL_GROUP_NOT_CONTAINED | typeof SchemaErrorCode.AGENT_TOOL_GROUP_SCOPE_MISSING | typeof SchemaErrorCode.AGENT_TOOL_GROUP_HARNESS | typeof SchemaErrorCode.AGENT_TOOL_GROUP_NEEDS_PERSON | typeof SchemaErrorCode.AGENT_TOOL_GROUP_ROUTINE_ONLY | typeof SchemaErrorCode.AGENT_TOOL_GROUP_REQUIRES;
|
|
380
381
|
/**
|
|
381
382
|
* A `toolGroups` entry refused by `assertToolGroupsGrantable`.
|
|
382
383
|
* HTTP status: 400 Bad Request.
|
|
383
384
|
*/
|
|
384
|
-
declare class ToolGroupGrantError extends ValidationError {
|
|
385
|
+
export declare class ToolGroupGrantError extends ValidationError {
|
|
385
386
|
readonly code: ToolGroupGrantErrorCode;
|
|
386
387
|
readonly grant: string;
|
|
387
388
|
constructor(code: ToolGroupGrantErrorCode, grant: string, message: string);
|
|
@@ -389,7 +390,7 @@ declare class ToolGroupGrantError extends ValidationError {
|
|
|
389
390
|
/**
|
|
390
391
|
* Error thrown when attempting to modify a protected (system) resource
|
|
391
392
|
*/
|
|
392
|
-
declare class ProtectedResourceError extends SchemaError {
|
|
393
|
+
export declare class ProtectedResourceError extends SchemaError {
|
|
393
394
|
readonly resourceType: "object" | "attribute" | "view";
|
|
394
395
|
readonly resourceName: string;
|
|
395
396
|
readonly operation: "delete" | "modify";
|
|
@@ -398,7 +399,7 @@ declare class ProtectedResourceError extends SchemaError {
|
|
|
398
399
|
/**
|
|
399
400
|
* Error thrown during native object synchronization
|
|
400
401
|
*/
|
|
401
|
-
declare class SyncError extends SchemaError {
|
|
402
|
+
export declare class SyncError extends SchemaError {
|
|
402
403
|
readonly objectName: string;
|
|
403
404
|
readonly cause?: Error;
|
|
404
405
|
constructor(objectName: string, message: string, cause?: Error);
|
|
@@ -408,7 +409,7 @@ declare class SyncError extends SchemaError {
|
|
|
408
409
|
* System entities are declared in code and immutable at runtime.
|
|
409
410
|
* HTTP status: 403 Forbidden.
|
|
410
411
|
*/
|
|
411
|
-
declare class SystemEntityImmutableError extends SchemaError {
|
|
412
|
+
export declare class SystemEntityImmutableError extends SchemaError {
|
|
412
413
|
readonly entityType: string;
|
|
413
414
|
readonly entityName: string;
|
|
414
415
|
constructor(entityType: string, entityName: string);
|
|
@@ -423,7 +424,7 @@ interface SyncConflictParams {
|
|
|
423
424
|
* or constraints. The dev must resolve manually (relax constraints, migrate
|
|
424
425
|
* values, or rename).
|
|
425
426
|
*/
|
|
426
|
-
declare class SyncConflictError extends SchemaError {
|
|
427
|
+
export declare class SyncConflictError extends SchemaError {
|
|
427
428
|
readonly objectName: string;
|
|
428
429
|
readonly attributeName?: string;
|
|
429
430
|
readonly reason: string;
|
|
@@ -434,7 +435,7 @@ declare class SyncConflictError extends SchemaError {
|
|
|
434
435
|
* declared in code. The dev forgot to remove those attributes too, or kept the
|
|
435
436
|
* object inconsistently.
|
|
436
437
|
*/
|
|
437
|
-
declare class SyncCascadeError extends SchemaError {
|
|
438
|
+
export declare class SyncCascadeError extends SchemaError {
|
|
438
439
|
readonly objectName: string;
|
|
439
440
|
readonly conflictingAttributes: string[];
|
|
440
441
|
constructor(objectName: string, conflictingAttributes: string[]);
|
|
@@ -444,7 +445,7 @@ declare class SyncCascadeError extends SchemaError {
|
|
|
444
445
|
* system:false. This invariant should never be violated — if seen, it's a bug
|
|
445
446
|
* in the boot reconciliation logic or in a manual DB mutation.
|
|
446
447
|
*/
|
|
447
|
-
declare class OrphanSystemAttributeError extends SchemaError {
|
|
448
|
+
export declare class OrphanSystemAttributeError extends SchemaError {
|
|
448
449
|
readonly objectName: string;
|
|
449
450
|
readonly attributeName: string;
|
|
450
451
|
constructor(objectName: string, attributeName: string);
|
|
@@ -460,7 +461,7 @@ declare class OrphanSystemAttributeError extends SchemaError {
|
|
|
460
461
|
* domain reads better with different wording (e.g. "already registered for
|
|
461
462
|
* type X").
|
|
462
463
|
*/
|
|
463
|
-
declare class DuplicateError extends SchemaError {
|
|
464
|
+
export declare class DuplicateError extends SchemaError {
|
|
464
465
|
readonly resourceType: string;
|
|
465
466
|
readonly resourceName: string;
|
|
466
467
|
constructor(resourceType: string, resourceName: string, message?: string);
|
|
@@ -479,26 +480,26 @@ declare const RESERVED_NAME_CONTEXTS: {
|
|
|
479
480
|
readonly bundle: "cannot be claimed by a bundle";
|
|
480
481
|
readonly source: "cannot be declared by a schema source";
|
|
481
482
|
};
|
|
482
|
-
declare class ReservedObjectNameError extends SchemaError {
|
|
483
|
+
export declare class ReservedObjectNameError extends SchemaError {
|
|
483
484
|
readonly objectName: string;
|
|
484
485
|
constructor(objectName: string, context: keyof typeof RESERVED_NAME_CONTEXTS);
|
|
485
486
|
}
|
|
486
487
|
/**
|
|
487
488
|
* Check if an error is a SchemaError
|
|
488
489
|
*/
|
|
489
|
-
declare function isSchemaError(error: unknown): error is SchemaError;
|
|
490
|
+
export declare function isSchemaError(error: unknown): error is SchemaError;
|
|
490
491
|
/**
|
|
491
492
|
* Check if an error is a NotFoundError
|
|
492
493
|
*/
|
|
493
|
-
declare function isNotFoundError(error: unknown): error is NotFoundError;
|
|
494
|
+
export declare function isNotFoundError(error: unknown): error is NotFoundError;
|
|
494
495
|
/**
|
|
495
496
|
* Check if an error is a ValidationError
|
|
496
497
|
*/
|
|
497
|
-
declare function isValidationError(error: unknown): error is ValidationError;
|
|
498
|
+
export declare function isValidationError(error: unknown): error is ValidationError;
|
|
498
499
|
/**
|
|
499
500
|
* Check if an error is a ProtectedResourceError
|
|
500
501
|
*/
|
|
501
|
-
declare function isProtectedResourceError(error: unknown): error is ProtectedResourceError;
|
|
502
|
+
export declare function isProtectedResourceError(error: unknown): error is ProtectedResourceError;
|
|
502
503
|
/**
|
|
503
504
|
* Error thrown when a user lacks permission to perform an action.
|
|
504
505
|
*
|
|
@@ -506,7 +507,7 @@ declare function isProtectedResourceError(error: unknown): error is ProtectedRes
|
|
|
506
507
|
* carry a refusal a permission grant would not lift: use `WORKSPACE_INVARIANT`,
|
|
507
508
|
* `STATE_GATE`, `ACTOR_CONTEXT_REQUIRED` or `SYSTEM_ENTITY_IMMUTABLE` instead.
|
|
508
509
|
*/
|
|
509
|
-
declare class ForbiddenError extends SchemaError {
|
|
510
|
+
export declare class ForbiddenError extends SchemaError {
|
|
510
511
|
/** Literal discriminator for `Effect.catchTag`; a widened `string` breaks narrowing. */
|
|
511
512
|
readonly _tag = "ForbiddenError";
|
|
512
513
|
readonly objectName: string;
|
|
@@ -517,7 +518,7 @@ declare class ForbiddenError extends SchemaError {
|
|
|
517
518
|
/**
|
|
518
519
|
* Error thrown when trying to modify a protected role
|
|
519
520
|
*/
|
|
520
|
-
declare class ProtectedRoleError extends SchemaError {
|
|
521
|
+
export declare class ProtectedRoleError extends SchemaError {
|
|
521
522
|
readonly roleName: string;
|
|
522
523
|
readonly operation: "delete" | "modify";
|
|
523
524
|
constructor(roleName: string, operation: "delete" | "modify");
|
|
@@ -527,7 +528,7 @@ declare class ProtectedRoleError extends SchemaError {
|
|
|
527
528
|
* catalog (spec B1): an unknown resource, a level the catalog never declared,
|
|
528
529
|
* a split capability, an unknown object, or a shape the schema rejects.
|
|
529
530
|
*/
|
|
530
|
-
declare class InvalidPermissionGrantError extends SchemaError {
|
|
531
|
+
export declare class InvalidPermissionGrantError extends SchemaError {
|
|
531
532
|
readonly issues: GrantIssue[];
|
|
532
533
|
readonly _tag = "InvalidPermissionGrantError";
|
|
533
534
|
constructor(issues: GrantIssue[]);
|
|
@@ -535,7 +536,7 @@ declare class InvalidPermissionGrantError extends SchemaError {
|
|
|
535
536
|
/**
|
|
536
537
|
* Role not found error
|
|
537
538
|
*/
|
|
538
|
-
declare class RoleNotFoundError extends NotFoundError {
|
|
539
|
+
export declare class RoleNotFoundError extends NotFoundError {
|
|
539
540
|
constructor(roleId: string);
|
|
540
541
|
}
|
|
541
542
|
/**
|
|
@@ -543,17 +544,17 @@ declare class RoleNotFoundError extends NotFoundError {
|
|
|
543
544
|
* Clients should retry the operation with fresh data.
|
|
544
545
|
* Maps to HTTP 409 Conflict.
|
|
545
546
|
*/
|
|
546
|
-
declare class ConcurrentModificationError extends SchemaError {
|
|
547
|
+
export declare class ConcurrentModificationError extends SchemaError {
|
|
547
548
|
constructor(recordId: string);
|
|
548
549
|
}
|
|
549
550
|
/**
|
|
550
551
|
* Storage operation type for error context
|
|
551
552
|
*/
|
|
552
|
-
type StorageOperation = "upload" | "download" | "delete" | "signedUrl";
|
|
553
|
+
export type StorageOperation = "upload" | "download" | "delete" | "signedUrl";
|
|
553
554
|
/**
|
|
554
555
|
* Error thrown when a storage operation fails
|
|
555
556
|
*/
|
|
556
|
-
declare class StorageError extends SchemaError {
|
|
557
|
+
export declare class StorageError extends SchemaError {
|
|
557
558
|
readonly operation: StorageOperation;
|
|
558
559
|
readonly path?: string;
|
|
559
560
|
readonly cause?: string;
|
|
@@ -562,7 +563,7 @@ declare class StorageError extends SchemaError {
|
|
|
562
563
|
/**
|
|
563
564
|
* Error thrown when access to a resource is denied (e.g., tenant path mismatch)
|
|
564
565
|
*/
|
|
565
|
-
declare class AccessDeniedError extends SchemaError {
|
|
566
|
+
export declare class AccessDeniedError extends SchemaError {
|
|
566
567
|
readonly resource: string;
|
|
567
568
|
readonly reason?: string;
|
|
568
569
|
constructor(resource: string, reason?: string);
|
|
@@ -570,11 +571,11 @@ declare class AccessDeniedError extends SchemaError {
|
|
|
570
571
|
/**
|
|
571
572
|
* Repository operation type for error context
|
|
572
573
|
*/
|
|
573
|
-
type RepositoryOperation = "create" | "update" | "delete" | "query";
|
|
574
|
+
export type RepositoryOperation = "create" | "update" | "delete" | "query";
|
|
574
575
|
/**
|
|
575
576
|
* Error thrown when a repository operation fails
|
|
576
577
|
*/
|
|
577
|
-
declare class RepositoryError extends SchemaError {
|
|
578
|
+
export declare class RepositoryError extends SchemaError {
|
|
578
579
|
readonly operation: RepositoryOperation;
|
|
579
580
|
readonly entity: string;
|
|
580
581
|
readonly cause?: string;
|
|
@@ -592,8 +593,8 @@ declare class RepositoryError extends SchemaError {
|
|
|
592
593
|
* - `rejected` — the backend refused this payload (malformed, too large).
|
|
593
594
|
* Deterministic: the same payload is refused again.
|
|
594
595
|
*/
|
|
595
|
-
type SearchBackendFailureKind = "unavailable" | "capacity" | "rejected";
|
|
596
|
-
interface SearchBackendErrorOptions {
|
|
596
|
+
export type SearchBackendFailureKind = "unavailable" | "capacity" | "rejected";
|
|
597
|
+
export interface SearchBackendErrorOptions {
|
|
597
598
|
/** Defaults to `unavailable`. */
|
|
598
599
|
kind?: SearchBackendFailureKind;
|
|
599
600
|
/** The backend's own machine code, e.g. Meili's `malformed_payload`. */
|
|
@@ -618,7 +619,7 @@ interface SearchBackendErrorOptions {
|
|
|
618
619
|
* fixed `detail` in its message, so a full disk pages as itself rather than
|
|
619
620
|
* as a transient outage.
|
|
620
621
|
*/
|
|
621
|
-
declare class SearchBackendError extends SchemaError {
|
|
622
|
+
export declare class SearchBackendError extends SchemaError {
|
|
622
623
|
readonly scope: string;
|
|
623
624
|
readonly cause?: string;
|
|
624
625
|
readonly kind: SearchBackendFailureKind;
|
|
@@ -632,7 +633,7 @@ declare class SearchBackendError extends SchemaError {
|
|
|
632
633
|
* succeed; the records query service answers the read through Postgres
|
|
633
634
|
* instead, so a search never returns a wrong or failed answer for it.
|
|
634
635
|
*/
|
|
635
|
-
declare class SearchPathNotIndexedError extends SchemaError {
|
|
636
|
+
export declare class SearchPathNotIndexedError extends SchemaError {
|
|
636
637
|
readonly scope: string;
|
|
637
638
|
readonly role: "filter" | "sort";
|
|
638
639
|
readonly cause?: string;
|
|
@@ -641,7 +642,7 @@ declare class SearchPathNotIndexedError extends SchemaError {
|
|
|
641
642
|
/**
|
|
642
643
|
* Error thrown when a feature or method is not yet implemented
|
|
643
644
|
*/
|
|
644
|
-
declare class NotImplementedError extends SchemaError {
|
|
645
|
+
export declare class NotImplementedError extends SchemaError {
|
|
645
646
|
readonly feature: string;
|
|
646
647
|
readonly milestone?: string;
|
|
647
648
|
constructor(feature: string, milestone?: string);
|
|
@@ -649,13 +650,13 @@ declare class NotImplementedError extends SchemaError {
|
|
|
649
650
|
/**
|
|
650
651
|
* Memory entry not found error
|
|
651
652
|
*/
|
|
652
|
-
declare class MemoryNotFoundError extends NotFoundError {
|
|
653
|
+
export declare class MemoryNotFoundError extends NotFoundError {
|
|
653
654
|
constructor(memoryId: string);
|
|
654
655
|
}
|
|
655
656
|
/**
|
|
656
657
|
* Reference information for a record that is blocking deletion.
|
|
657
658
|
*/
|
|
658
|
-
interface RecordReference {
|
|
659
|
+
export interface RecordReference {
|
|
659
660
|
/** Technical name of the object (e.g., "contacts") */
|
|
660
661
|
objectName: string;
|
|
661
662
|
/** Display label of the object (e.g., "Contacts") */
|
|
@@ -669,7 +670,7 @@ interface RecordReference {
|
|
|
669
670
|
* This implements the "Restrict" behavior: deletion is blocked and the user
|
|
670
671
|
* must first remove or update the referencing records.
|
|
671
672
|
*/
|
|
672
|
-
declare class RecordReferencedError extends SchemaError {
|
|
673
|
+
export declare class RecordReferencedError extends SchemaError {
|
|
673
674
|
readonly recordId: string;
|
|
674
675
|
readonly references: RecordReference[];
|
|
675
676
|
constructor(recordId: string, references: RecordReference[]);
|
|
@@ -677,7 +678,7 @@ declare class RecordReferencedError extends SchemaError {
|
|
|
677
678
|
/**
|
|
678
679
|
* Usage context where an attribute is being used.
|
|
679
680
|
*/
|
|
680
|
-
type AttributeUsage = "labelExpression" | "embeddingExpression" | "view" | "filter";
|
|
681
|
+
export type AttributeUsage = "labelExpression" | "embeddingExpression" | "view" | "filter";
|
|
681
682
|
/**
|
|
682
683
|
* Thrown when attempting to delete an attribute that is in use.
|
|
683
684
|
*
|
|
@@ -686,7 +687,7 @@ type AttributeUsage = "labelExpression" | "embeddingExpression" | "view" | "filt
|
|
|
686
687
|
* - A saved view's column configuration
|
|
687
688
|
* - A saved filter condition
|
|
688
689
|
*/
|
|
689
|
-
declare class AttributeInUseError extends SchemaError {
|
|
690
|
+
export declare class AttributeInUseError extends SchemaError {
|
|
690
691
|
readonly attributeName: string;
|
|
691
692
|
readonly usage: AttributeUsage;
|
|
692
693
|
/** Where exactly, when the usage alone would not let the caller find it. */
|
|
@@ -699,7 +700,7 @@ declare class AttributeInUseError extends SchemaError {
|
|
|
699
700
|
* Objects cannot be deleted if other objects have relation attributes
|
|
700
701
|
* pointing to them as a target.
|
|
701
702
|
*/
|
|
702
|
-
declare class ObjectReferencedError extends SchemaError {
|
|
703
|
+
export declare class ObjectReferencedError extends SchemaError {
|
|
703
704
|
readonly objectName: string;
|
|
704
705
|
readonly referencingObjects: string[];
|
|
705
706
|
constructor(objectName: string, referencingObjects: string[]);
|
|
@@ -711,7 +712,7 @@ declare class ObjectReferencedError extends SchemaError {
|
|
|
711
712
|
* the server publisher can share one error vocabulary without either package
|
|
712
713
|
* depending on the other.
|
|
713
714
|
*/
|
|
714
|
-
declare class RealtimeRateLimitedError extends SchemaError {
|
|
715
|
+
export declare class RealtimeRateLimitedError extends SchemaError {
|
|
715
716
|
constructor();
|
|
716
717
|
}
|
|
717
718
|
/**
|
|
@@ -720,7 +721,7 @@ declare class RealtimeRateLimitedError extends SchemaError {
|
|
|
720
721
|
* the scope grew past the cap during the read, mid-stream (`atLeast`: the
|
|
721
722
|
* total is a lower bound), where the transport destroys the connection.
|
|
722
723
|
*/
|
|
723
|
-
declare class ExportTooLargeError extends SchemaError {
|
|
724
|
+
export declare class ExportTooLargeError extends SchemaError {
|
|
724
725
|
constructor(total: number, max: number, { atLeast }?: {
|
|
725
726
|
atLeast?: boolean;
|
|
726
727
|
});
|
|
@@ -730,32 +731,31 @@ declare class ExportTooLargeError extends SchemaError {
|
|
|
730
731
|
* block's aggregate or list. The caller may retry; nothing was written.
|
|
731
732
|
* HTTP status: 504 Gateway Timeout.
|
|
732
733
|
*/
|
|
733
|
-
declare class QueryTimeoutError extends SchemaError {
|
|
734
|
+
export declare class QueryTimeoutError extends SchemaError {
|
|
734
735
|
constructor();
|
|
735
736
|
}
|
|
736
737
|
/**
|
|
737
738
|
* A Supabase Realtime publish did not reach the channel.
|
|
738
739
|
*/
|
|
739
|
-
declare class RealtimeDeliveryError extends SchemaError {
|
|
740
|
+
export declare class RealtimeDeliveryError extends SchemaError {
|
|
740
741
|
constructor();
|
|
741
742
|
}
|
|
742
743
|
/**
|
|
743
744
|
* A Supabase Realtime channel could not be subscribed to.
|
|
744
745
|
*/
|
|
745
|
-
declare class RealtimeSubscriptionError extends SchemaError {
|
|
746
|
+
export declare class RealtimeSubscriptionError extends SchemaError {
|
|
746
747
|
constructor();
|
|
747
748
|
}
|
|
748
749
|
/**
|
|
749
750
|
* Check if an error is a RecordReferencedError
|
|
750
751
|
*/
|
|
751
|
-
declare function isRecordReferencedError(error: unknown): error is RecordReferencedError;
|
|
752
|
+
export declare function isRecordReferencedError(error: unknown): error is RecordReferencedError;
|
|
752
753
|
/**
|
|
753
754
|
* Check if an error is an AttributeInUseError
|
|
754
755
|
*/
|
|
755
|
-
declare function isAttributeInUseError(error: unknown): error is AttributeInUseError;
|
|
756
|
+
export declare function isAttributeInUseError(error: unknown): error is AttributeInUseError;
|
|
756
757
|
/**
|
|
757
758
|
* Check if an error is an ObjectReferencedError
|
|
758
759
|
*/
|
|
759
|
-
declare function isObjectReferencedError(error: unknown): error is ObjectReferencedError;
|
|
760
|
-
//#endregion
|
|
761
|
-
export { isObjectReferencedError as $, RepositoryError as A, SearchPathNotIndexedError as B, QueryTimeoutError as C, RecordNotFoundError as D, RealtimeSubscriptionError as E, SchemaErrorCode as F, SyncError as G, StorageOperation as H, SchemaErrorJson as I, ToolGroupGrantErrorCode as J, SystemEntityImmutableError as K, SearchBackendError as L, ReservedObjectNameError as M, RoleNotFoundError as N, RecordReference as O, SchemaError as P, isNotFoundError as Q, SearchBackendErrorOptions as R, ProtectedRoleError as S, RealtimeRateLimitedError as T, SyncCascadeError as U, StorageError as V, SyncConflictError as W, ValidationErrorDetail as X, ValidationError as Y, isAttributeInUseError as Z, ObjectReferencedError as _, AttributeInUseError as a, PERMISSION_ACTIONS as at, PageReferencedError as b, ConcurrentModificationError as c, permissionGrantSchema as ct, ForbiddenError as d, isProtectedResourceError as et, InvalidPermissionGrantError as f, ObjectNotFoundError as g, NotImplementedError as h, AmbiguousSchemaChangeError as i, GrantIssue as it, RepositoryOperation as j, RecordReferencedError as k, DuplicateError as l, NotFoundError as m, AggregateErrorCode as n, isSchemaError as nt, AttributeNotFoundError as o, PermissionGrant as ot, MemoryNotFoundError as p, ToolGroupGrantError as q, AggregateValidationError as r, isValidationError as rt, AttributeUsage as s, findGrantIssues as st, AccessDeniedError as t, isRecordReferencedError as tt, ExportTooLargeError as u, OrphanSystemAttributeError as v, RealtimeDeliveryError as w, ProtectedResourceError as x, PageReference as y, SearchBackendFailureKind as z };
|
|
760
|
+
export declare function isObjectReferencedError(error: unknown): error is ObjectReferencedError;
|
|
761
|
+
//#endregion
|