@diagonal-hq/cli 0.26.3 → 0.27.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.
@@ -24,8 +24,10 @@ export declare class HostError extends Error {
24
24
  * host records that failure, so a run records the failure of the call that it rethrows.
25
25
  * @param failure The failure that a graph step records for the same error, or null for a
26
26
  * refusal that only a script call can receive, such as an unknown capability.
27
+ * @param options `cause` is the error of a `transaction()` body that a `transaction_rollback`
28
+ * error replaces.
27
29
  */
28
- constructor(message: string, code: string, status: number, details: unknown, failureId?: number | null, failure?: HostFailure | null);
30
+ constructor(message: string, code: string, status: number, details: unknown, failureId?: number | null, failure?: HostFailure | null, options?: ErrorOptions);
29
31
  }
30
32
  export declare class WorkflowFailure extends Error {
31
33
  readonly status: number;
@@ -1,6 +1,6 @@
1
1
  import type { ResourceKeyWith } from '../data';
2
2
  import type { ContentDocument } from '../input';
3
- export declare const SDK_VERSION = 69;
3
+ export declare const SDK_VERSION = 70;
4
4
  export interface WorkspaceSystemFields {
5
5
  "ai_custom_system_prompt": string | null;
6
6
  "brand_kit": {
@@ -1868,8 +1868,23 @@ export interface TransactionCommitInput {
1868
1868
  }
1869
1869
  export type TransactionCommitOutput = null;
1870
1870
  export interface TransactionRollbackInput {
1871
+ error?: {
1872
+ name?: string;
1873
+ message?: string;
1874
+ code?: string;
1875
+ status?: number;
1876
+ errors?: Record<string, unknown>;
1877
+ failure_id?: number;
1878
+ };
1871
1879
  }
1872
- export type TransactionRollbackOutput = null;
1880
+ export type TransactionRollbackOutput = null | {
1881
+ message: string;
1882
+ code: string;
1883
+ status: number;
1884
+ details: Record<string, unknown>;
1885
+ failure: Record<string, unknown>;
1886
+ failure_id: number;
1887
+ };
1873
1888
  export interface UserAuthorizeInput {
1874
1889
  permission: string;
1875
1890
  user?: Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.26.3",
3
+ "version": "0.27.0",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {