domainkit 0.14.1 → 0.16.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.
@@ -21,7 +21,7 @@ declare const Forbidden_base: Schema.Class<Forbidden, Schema.TaggedStruct<"Forbi
21
21
  export declare class Forbidden extends Forbidden_base {
22
22
  }
23
23
  declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"NotFound", {
24
- readonly entity: Schema.Literals<readonly ["connection", "attachment", "plan", "approval", "receipt", "continuation", "provider", "zone", "authorization", "record"]>;
24
+ readonly entity: Schema.Literals<readonly ["connection", "attachment", "plan", "approval", "receipt", "continuation", "provider", "zone", "authorization", "record", "batch"]>;
25
25
  readonly id: Schema.String;
26
26
  }>, import("effect/Cause").YieldableError>;
27
27
  export declare class NotFound extends NotFound_base {
@@ -43,6 +43,22 @@ declare const Stale_base: Schema.Class<Stale, Schema.TaggedStruct<"Stale", {
43
43
  export declare class Stale extends Stale_base {
44
44
  get message(): string;
45
45
  }
46
+ declare const BatchStale_base: Schema.Class<BatchStale, Schema.TaggedStruct<"BatchStale", {
47
+ readonly batchId: Schema.String;
48
+ readonly status: Schema.String;
49
+ readonly digest: Schema.NullOr<Schema.String>;
50
+ }>, import("effect/Cause").YieldableError>;
51
+ /**
52
+ * The batch moved since it was read: it was declined, it is already approved, or the digest the
53
+ * principal reviewed is no longer the one its plans produce. Read the batch again.
54
+ *
55
+ * The aggregate's own refusal, beside `Stale`: a batch has no plan and no plan digest of its own,
56
+ * so nothing here can name one. `digest` is the batch's current digest, null while its items are
57
+ * still being planned.
58
+ */
59
+ export declare class BatchStale extends BatchStale_base {
60
+ get message(): string;
61
+ }
46
62
  declare const Expired_base: Schema.Class<Expired, Schema.TaggedStruct<"Expired", {
47
63
  readonly entity: Schema.Literals<readonly ["plan", "approval", "continuation", "credential"]>;
48
64
  readonly id: Schema.String;
@@ -113,6 +129,6 @@ declare const Unsupported_base: Schema.Class<Unsupported, Schema.TaggedStruct<"U
113
129
  /** The provider, or this target within it, cannot do the requested operation. */
114
130
  export declare class Unsupported extends Unsupported_base {
115
131
  }
116
- export declare const Model: Schema.Union<readonly [typeof InvalidInput, typeof Unauthenticated, typeof Forbidden, typeof NotFound, typeof Conflict, typeof Stale, typeof Expired, typeof Busy, typeof ProviderRejected, typeof ProviderUnavailable, typeof ProviderConflict, typeof Unsupported, typeof Reconnect, typeof StorageFailed, typeof CryptoFailed, typeof ResolverFailed]>;
132
+ export declare const Model: Schema.Union<readonly [typeof InvalidInput, typeof Unauthenticated, typeof Forbidden, typeof NotFound, typeof Conflict, typeof Stale, typeof BatchStale, typeof Expired, typeof Busy, typeof ProviderRejected, typeof ProviderUnavailable, typeof ProviderConflict, typeof Unsupported, typeof Reconnect, typeof StorageFailed, typeof CryptoFailed, typeof ResolverFailed]>;
117
133
  export type Model = typeof Model.Type;
118
134
  export {};