@distilled.cloud/axiom 1.0.0-rc.3 → 1.0.0-rc.5

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/lib/errors.js CHANGED
@@ -11,14 +11,14 @@ export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeou
11
11
  import * as Schema from "effect/Schema";
12
12
  import * as Category from "@distilled.cloud/core/category";
13
13
  /** Unknown Axiom error — returned when nothing else matches the failure. */
14
- export class UnknownAxiomError extends Schema.TaggedErrorClass()("UnknownAxiomError", {
14
+ export class UnknownAxiomError extends Schema.TaggedError()("UnknownAxiomError", {
15
15
  code: Schema.optional(Schema.String),
16
16
  message: Schema.optional(Schema.String),
17
17
  body: Schema.Unknown,
18
18
  }).pipe(Category.withServerError) {
19
19
  }
20
20
  /** Schema parse error wrapper (kept for v0 surface parity). */
21
- export class AxiomParseError extends Schema.TaggedErrorClass()("AxiomParseError", {
21
+ export class AxiomParseError extends Schema.TaggedError()("AxiomParseError", {
22
22
  body: Schema.Unknown,
23
23
  cause: Schema.Unknown,
24
24
  }).pipe(Category.withParseError) {
package/lib/errors.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAE3D,4EAA4E;AAC5E,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,gBAAgB,EAAqB,CACjF,mBAAmB,E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,SAAQ,MAAM,CAAC,WAAW,EAAmB,CACxE,iBAAiB,EACjB;IACE,IAAI,EAAE,MAAM,CAAC,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC,OAAO;CACtB,CACF,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;CAAG"}
@@ -5,19 +5,31 @@ export type { AxiomOpError, AxiomOpContext };
5
5
  declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
6
6
  readonly code: any;
7
7
  readonly message: any;
8
- }>, import("effect/Cause").YieldableError>;
8
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
9
+ "@distilled.cloud/error/categories": {
10
+ BadRequestError: true;
11
+ };
12
+ });
9
13
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
10
14
  }
11
15
  declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
12
16
  readonly code: any;
13
17
  readonly message: any;
14
- }>, import("effect/Cause").YieldableError>;
18
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
19
+ "@distilled.cloud/error/categories": {
20
+ BadRequestError: true;
21
+ };
22
+ });
15
23
  export declare class NotFound extends /*@__PURE__*/ NotFound_base {
16
24
  }
17
25
  declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
18
26
  readonly code: any;
19
27
  readonly message: any;
20
- }>, import("effect/Cause").YieldableError>;
28
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
29
+ "@distilled.cloud/error/categories": {
30
+ BadRequestError: true;
31
+ };
32
+ });
21
33
  export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
22
34
  }
23
35
  export interface IngestToDatasetRequest {
@@ -1 +1 @@
1
- {"version":3,"file":"edge_ingest.d.ts","sourceRoot":"","sources":["../../src/services/edge_ingest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAA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AC,CAAC;AAC5D,eAAO,MAAM,wBAAwB,EAEzB,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,YAAY,EAS4B,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE5E,MAAM,MAAM,oBAAoB,GAC5B,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,YAAY,CAAC;AACjB,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,YAAY,EACZ,oBAAoB,EACpB,cAAc,CAOb,CAAC"}
@@ -1,27 +1,28 @@
1
1
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/docs restapi/versions). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
4
5
  import * as T from "../traits.js";
5
6
  import { AxiomProtocol, } from "../protocol.js";
6
7
  import { UnknownAxiomError } from "../errors.js";
7
8
  import * as Retry from "../retry.js";
8
9
  export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
9
- /*@__PURE__*/ S.TaggedErrorClass()("BadRequest", {
10
+ /*@__PURE__*/ S.TaggedError()("BadRequest", {
10
11
  code: S.Number,
11
12
  message: S.String,
12
- }), [{ status: 400 }]) {
13
+ }).pipe(C.withBadRequestError), [{ status: 400 }]) {
13
14
  }
14
15
  export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
15
- /*@__PURE__*/ S.TaggedErrorClass()("NotFound", {
16
+ /*@__PURE__*/ S.TaggedError()("NotFound", {
16
17
  code: S.Number,
17
18
  message: S.String,
18
- }), [{ status: 404 }]) {
19
+ }).pipe(C.withBadRequestError), [{ status: 404 }]) {
19
20
  }
20
21
  export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
21
- /*@__PURE__*/ S.TaggedErrorClass()("UnprocessableEntity", {
22
+ /*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
22
23
  code: S.Number,
23
24
  message: S.String,
24
- }), [{ status: 422 }]) {
25
+ }).pipe(C.withBadRequestError), [{ status: 422 }]) {
25
26
  }
26
27
  export const IngestToDatasetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
27
28
  dataset_id: S.String.pipe(T.Label()),
@@ -1 +1 @@
1
- {"version":3,"file":"edge_ingest.js","sourceRoot":"","sources":["../../src/services/edge_ingest.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EACL,aAAa,GAGd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAIrC,MAAM,OAAO,UACX,SAAQ,aAAa,CAAb,aAAa,CAAC,CAAC,CAAC,kBAAkB;AACxC,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAc,CAAC,YAAY,EAAE;IAC3D,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,OAAO,EAAE,CAAC,CAAC,MAAM;CAClB,CAAC,EACF,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAClB;CAAG;AAEN,MAAM,OAAO,QACX,SAAQ,aAAa,CAAb,aAAa,CAAC,CAAC,CAAC,kBAAkB;AACxC,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAY,CA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,EAAE,UAAU,EAAE,eAAe,EAAE,CAAmC,CAAC;AAG9E,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAC3D,aAAa,CAC+B,CAAC;AAU/C,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CACvD,CAAC,CAAC,MAAM,CAAC;IACP,aAAa,EAAE,CAAC,CAAC,MAAM;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM;IAChB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC9C,QAAQ,EAAE,CAAC,CAAC,MAAM;IAClB,cAAc,EAAE,CAAC,CAAC,MAAM;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CACH,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAkC,CAAC;AAO5E,MAAM,CAAC,MAAM,eAAe,GAKxB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,sBAAsB;IAC7B,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,mBAAmB,EAAE,iBAAiB,CAAC;IACtE,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
@@ -6,31 +6,51 @@ export type { AxiomOpError, AxiomOpContext };
6
6
  declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
7
7
  readonly code: any;
8
8
  readonly message: any;
9
- }>, import("effect/Cause").YieldableError>;
9
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
10
+ "@distilled.cloud/error/categories": {
11
+ BadRequestError: true;
12
+ };
13
+ });
10
14
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
11
15
  }
12
16
  declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
13
17
  readonly code: any;
14
18
  readonly message: any;
15
- }>, import("effect/Cause").YieldableError>;
19
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
20
+ "@distilled.cloud/error/categories": {
21
+ ConflictError: true;
22
+ };
23
+ });
16
24
  export declare class Conflict extends /*@__PURE__*/ Conflict_base {
17
25
  }
18
26
  declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
19
27
  readonly code: any;
20
28
  readonly message: any;
21
- }>, import("effect/Cause").YieldableError>;
29
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
30
+ "@distilled.cloud/error/categories": {
31
+ AuthError: true;
32
+ };
33
+ });
22
34
  export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
23
35
  }
24
36
  declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
25
37
  readonly code: any;
26
38
  readonly message: any;
27
- }>, import("effect/Cause").YieldableError>;
39
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
40
+ "@distilled.cloud/error/categories": {
41
+ BadRequestError: true;
42
+ };
43
+ });
28
44
  export declare class NotFound extends /*@__PURE__*/ NotFound_base {
29
45
  }
30
46
  declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
31
47
  readonly code: any;
32
48
  readonly message: any;
33
- }>, import("effect/Cause").YieldableError>;
49
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
50
+ "@distilled.cloud/error/categories": {
51
+ BadRequestError: true;
52
+ };
53
+ });
34
54
  export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
35
55
  }
36
56
  /** array<string> of dataset names for which the annotation appears on charts */