@diagonal-hq/cli 0.37.3 → 0.37.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/dist/index.d.ts CHANGED
@@ -1110,6 +1110,12 @@ export type EmailLayoutReference = string;
1110
1110
  export type RecordVariableDefinition = {
1111
1111
  /** The slug of the resource whose record the sender passes. */
1112
1112
  resource: ResourceReference;
1113
+ /**
1114
+ * The relation paths from the resource whose records a send loads with the
1115
+ * record, for example `'latest_invoice'`. Templates read them as
1116
+ * `{{ member.latest_invoice.amount }}`.
1117
+ */
1118
+ relations?: readonly string[];
1113
1119
  label?: string;
1114
1120
  description?: string | null;
1115
1121
  required?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { ResourceKeyWith } from '../data';
2
2
  import type { ContentDocument } from '../input';
3
3
  import type { DeepReadonly, Liquid, StaticLiquid } from '../liquid';
4
- export declare const SDK_VERSION = 78;
4
+ export declare const SDK_VERSION = 79;
5
5
  export interface WorkspaceSystemFields {
6
6
  "ai_custom_system_prompt": string | null;
7
7
  "brand_kit": {
@@ -1076,6 +1076,12 @@ export interface PaymentsRefundInput {
1076
1076
  reason?: string | null;
1077
1077
  }
1078
1078
  export type PaymentsRefundOutput = Record<string, unknown>;
1079
+ export interface PaymentsVoidInput {
1080
+ resource: ResourceKeyWith<"payment">;
1081
+ record: string;
1082
+ reason: string;
1083
+ }
1084
+ export type PaymentsVoidOutput = Record<string, unknown>;
1079
1085
  export interface PhoneFormatInput {
1080
1086
  phone?: string | null;
1081
1087
  format?: "e164" | "international" | "national" | "rfc3966" | null;
@@ -2284,6 +2290,8 @@ export declare const payments: {
2284
2290
  confirm: (input: PaymentsConfirmInput) => Promise<PaymentsConfirmOutput>;
2285
2291
  /** Process a full or partial refund against a payment record */
2286
2292
  refund: (input: PaymentsRefundInput) => Promise<PaymentsRefundOutput>;
2293
+ /** Void a mistaken manual payment without recording a refund. */
2294
+ void: (input: PaymentsVoidInput) => Promise<PaymentsVoidOutput>;
2287
2295
  };
2288
2296
  export declare const phone: {
2289
2297
  /** Format a phone number into a human-readable string */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.37.3",
3
+ "version": "0.37.5",
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": {