@nominalso/vibe-host 0.8.0 → 0.8.1

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.cjs CHANGED
@@ -27,7 +27,7 @@ __export(index_exports, {
27
27
  module.exports = __toCommonJS(index_exports);
28
28
 
29
29
  // package.json
30
- var version = "0.8.0";
30
+ var version = "0.8.1";
31
31
 
32
32
  // ../protocol-types/dist/index.js
33
33
  function normalizeSubroute(subroute) {
package/dist/index.d.cts CHANGED
@@ -9,7 +9,7 @@ type AccountingAccountType = 'Bank' | 'Current Asset' | 'Non-current Asset' | 'F
9
9
  type AccountingAccountingClass = 'Asset' | 'Equity' | 'Liability' | 'Revenue' | 'Expense' | 'Statistical';
10
10
  type AccountingBalanceOutput = {
11
11
  balance?: number;
12
- currency?: AccountingCurrency | null;
12
+ currency?: string | null;
13
13
  };
14
14
  type AccountingBulkSetLineDimensionValueRequest = {
15
15
  dimension_id: string;
@@ -88,14 +88,15 @@ type AccountingDimensionValue = {
88
88
  has_children?: boolean;
89
89
  };
90
90
  /**
91
- * SDK-facing shape of a single dimension value's movement balance over the requested window.
91
+ * SDK-facing shape of a single account + dimension value's movement balance over the requested window.
92
92
  *
93
- * Mirrors the internal DimensionBalance — primary/secondary currency amounts, their credit/debit
93
+ * Mirrors the internal DimensionAccountBalance — primary/secondary currency amounts, their credit/debit
94
94
  * splits, and CTA — so the Rollforward has the full breakdown, but as a stable Response type
95
95
  * decoupled from the aggregation model. Field names match the source so it maps via
96
96
  * model_validate(from_attributes).
97
97
  */
98
98
  type AccountingDimensionValueBalanceResponse = {
99
+ account_id: string;
99
100
  dimension_id: string;
100
101
  dimension_value_id?: string | null;
101
102
  subsidiary_id: number;
@@ -168,8 +169,14 @@ type AccountingDimensionWithRules = {
168
169
  values?: Array<AccountingDimensionValueWithRules>;
169
170
  };
170
171
  type AccountingExchangeRate = {
171
- from_currency: AccountingCurrency;
172
- to_currency: AccountingCurrency;
172
+ /**
173
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
174
+ */
175
+ from_currency: string;
176
+ /**
177
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
178
+ */
179
+ to_currency: string;
173
180
  rate: number;
174
181
  };
175
182
  type AccountingExchangeRates = {
@@ -398,7 +405,10 @@ type AccountingTAccountOutput = {
398
405
  is_manually_created?: boolean;
399
406
  provider_id: string;
400
407
  subsidiary_id: number;
401
- currency?: AccountingCurrency;
408
+ /**
409
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
410
+ */
411
+ currency?: string;
402
412
  sourced_account_id?: string | null;
403
413
  account_balance?: AccountingBalanceOutput;
404
414
  primary_balance?: AccountingBalanceOutput;
@@ -438,7 +448,10 @@ type AccountingTAccountWithSubAccounts = {
438
448
  is_manually_created?: boolean;
439
449
  provider_id: string;
440
450
  subsidiary_id: number;
441
- currency?: AccountingCurrency;
451
+ /**
452
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
453
+ */
454
+ currency?: string;
442
455
  sourced_account_id?: string | null;
443
456
  account_balance?: AccountingBalanceOutput;
444
457
  primary_balance?: AccountingBalanceOutput;
@@ -479,7 +492,10 @@ type AccountingTAccountWithoutSubsidiaryMappingOutput = {
479
492
  is_manually_created?: boolean;
480
493
  provider_id: string;
481
494
  subsidiary_id: number;
482
- currency?: AccountingCurrency;
495
+ /**
496
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
497
+ */
498
+ currency?: string;
483
499
  sourced_account_id?: string | null;
484
500
  account_balance?: AccountingBalanceOutput;
485
501
  primary_balance?: AccountingBalanceOutput;
@@ -2909,11 +2925,29 @@ type GetDimensionValuesHierarchicalApiAccountingDimensionValueHierarchicalGetDat
2909
2925
  body?: never;
2910
2926
  path?: never;
2911
2927
  query?: {
2928
+ /**
2929
+ * Filter to values belonging to a specific dimension ID.
2930
+ */
2912
2931
  dimension_id?: string | null;
2932
+ /**
2933
+ * Text search filter on the parent dimension name.
2934
+ */
2913
2935
  dimension_name?: string | null;
2936
+ /**
2937
+ * Parent value ID for lazy-loading children; omit for roots.
2938
+ */
2914
2939
  parent_id?: string | null;
2940
+ /**
2941
+ * Search query; matching values are returned with ancestor context.
2942
+ */
2915
2943
  search_query?: string | null;
2944
+ /**
2945
+ * Explicit value IDs to include, with their ancestors for tree context.
2946
+ */
2916
2947
  include_ids?: Array<string> | null;
2948
+ /**
2949
+ * Return a lightweight response without rules and extended metadata.
2950
+ */
2917
2951
  slim?: boolean;
2918
2952
  };
2919
2953
  url: '/api/accounting/dimension-value/hierarchical';
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ type AccountingAccountType = 'Bank' | 'Current Asset' | 'Non-current Asset' | 'F
9
9
  type AccountingAccountingClass = 'Asset' | 'Equity' | 'Liability' | 'Revenue' | 'Expense' | 'Statistical';
10
10
  type AccountingBalanceOutput = {
11
11
  balance?: number;
12
- currency?: AccountingCurrency | null;
12
+ currency?: string | null;
13
13
  };
14
14
  type AccountingBulkSetLineDimensionValueRequest = {
15
15
  dimension_id: string;
@@ -88,14 +88,15 @@ type AccountingDimensionValue = {
88
88
  has_children?: boolean;
89
89
  };
90
90
  /**
91
- * SDK-facing shape of a single dimension value's movement balance over the requested window.
91
+ * SDK-facing shape of a single account + dimension value's movement balance over the requested window.
92
92
  *
93
- * Mirrors the internal DimensionBalance — primary/secondary currency amounts, their credit/debit
93
+ * Mirrors the internal DimensionAccountBalance — primary/secondary currency amounts, their credit/debit
94
94
  * splits, and CTA — so the Rollforward has the full breakdown, but as a stable Response type
95
95
  * decoupled from the aggregation model. Field names match the source so it maps via
96
96
  * model_validate(from_attributes).
97
97
  */
98
98
  type AccountingDimensionValueBalanceResponse = {
99
+ account_id: string;
99
100
  dimension_id: string;
100
101
  dimension_value_id?: string | null;
101
102
  subsidiary_id: number;
@@ -168,8 +169,14 @@ type AccountingDimensionWithRules = {
168
169
  values?: Array<AccountingDimensionValueWithRules>;
169
170
  };
170
171
  type AccountingExchangeRate = {
171
- from_currency: AccountingCurrency;
172
- to_currency: AccountingCurrency;
172
+ /**
173
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
174
+ */
175
+ from_currency: string;
176
+ /**
177
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
178
+ */
179
+ to_currency: string;
173
180
  rate: number;
174
181
  };
175
182
  type AccountingExchangeRates = {
@@ -398,7 +405,10 @@ type AccountingTAccountOutput = {
398
405
  is_manually_created?: boolean;
399
406
  provider_id: string;
400
407
  subsidiary_id: number;
401
- currency?: AccountingCurrency;
408
+ /**
409
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
410
+ */
411
+ currency?: string;
402
412
  sourced_account_id?: string | null;
403
413
  account_balance?: AccountingBalanceOutput;
404
414
  primary_balance?: AccountingBalanceOutput;
@@ -438,7 +448,10 @@ type AccountingTAccountWithSubAccounts = {
438
448
  is_manually_created?: boolean;
439
449
  provider_id: string;
440
450
  subsidiary_id: number;
441
- currency?: AccountingCurrency;
451
+ /**
452
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
453
+ */
454
+ currency?: string;
442
455
  sourced_account_id?: string | null;
443
456
  account_balance?: AccountingBalanceOutput;
444
457
  primary_balance?: AccountingBalanceOutput;
@@ -479,7 +492,10 @@ type AccountingTAccountWithoutSubsidiaryMappingOutput = {
479
492
  is_manually_created?: boolean;
480
493
  provider_id: string;
481
494
  subsidiary_id: number;
482
- currency?: AccountingCurrency;
495
+ /**
496
+ * Full currency name as per the Currency enum (e.g. 'United States Dollar', 'Euro', 'New Israeli Shekel').
497
+ */
498
+ currency?: string;
483
499
  sourced_account_id?: string | null;
484
500
  account_balance?: AccountingBalanceOutput;
485
501
  primary_balance?: AccountingBalanceOutput;
@@ -2909,11 +2925,29 @@ type GetDimensionValuesHierarchicalApiAccountingDimensionValueHierarchicalGetDat
2909
2925
  body?: never;
2910
2926
  path?: never;
2911
2927
  query?: {
2928
+ /**
2929
+ * Filter to values belonging to a specific dimension ID.
2930
+ */
2912
2931
  dimension_id?: string | null;
2932
+ /**
2933
+ * Text search filter on the parent dimension name.
2934
+ */
2913
2935
  dimension_name?: string | null;
2936
+ /**
2937
+ * Parent value ID for lazy-loading children; omit for roots.
2938
+ */
2914
2939
  parent_id?: string | null;
2940
+ /**
2941
+ * Search query; matching values are returned with ancestor context.
2942
+ */
2915
2943
  search_query?: string | null;
2944
+ /**
2945
+ * Explicit value IDs to include, with their ancestors for tree context.
2946
+ */
2916
2947
  include_ids?: Array<string> | null;
2948
+ /**
2949
+ * Return a lightweight response without rules and extended metadata.
2950
+ */
2917
2951
  slim?: boolean;
2918
2952
  };
2919
2953
  url: '/api/accounting/dimension-value/hierarchical';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.8.0";
2
+ var version = "0.8.1";
3
3
 
4
4
  // ../protocol-types/dist/index.js
5
5
  function normalizeSubroute(subroute) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nominalso/vibe-host",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Host-side SDK for embedding Nominal Vibe Apps — receives bridge requests over a typed postMessage protocol and dispatches them to Nominal APIs (used by nom-ui).",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/nominalso/vibe-apps-sdk#readme",