@chatarmin/os 1.5.1 → 1.5.2

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/README.md CHANGED
@@ -782,7 +782,7 @@ const os = new ChatarminOS({
782
782
  // Local development
783
783
  const osLocal = new ChatarminOS({
784
784
  apiKey: process.env.OS_API_KEY!,
785
- baseUrl: "http://localhost:3001/api/v1",
785
+ baseUrl: "http://localhost:3000/api/v1",
786
786
  })
787
787
  ```
788
788
 
package/dist/index.d.ts CHANGED
@@ -660,11 +660,11 @@ export declare class ChatarminOS {
660
660
  getByProductLink: (input: {
661
661
  externalOrgId: string;
662
662
  }) => Promise<{
663
+ domain: string | null;
663
664
  external_org_id: string;
664
665
  external_user_id: string | null;
665
- name: string;
666
666
  id: string;
667
- domain: string | null;
667
+ name: string;
668
668
  } | null>;
669
669
  /**
670
670
  * Create a new company and link it to your product.
@@ -814,13 +814,13 @@ export declare class ChatarminOS {
814
814
  companyId: string;
815
815
  } & ContactInput) => Promise<{
816
816
  isNew: boolean;
817
- name: string | null;
818
817
  id: string;
818
+ name: string | null;
819
819
  metadata: unknown;
820
- role: string | null;
821
- email: string;
822
820
  created_at: Date;
823
821
  updated_at: Date;
822
+ role: string | null;
823
+ email: string;
824
824
  company_id: string | null;
825
825
  short_id: string | null;
826
826
  is_primary: boolean;
@@ -870,13 +870,13 @@ export declare class ChatarminOS {
870
870
  * ```
871
871
  */
872
872
  list: (companyId: string, primaryOnly?: boolean) => Promise<{
873
- name: string | null;
874
873
  id: string;
874
+ name: string | null;
875
875
  metadata: unknown;
876
- role: string | null;
877
- email: string;
878
876
  created_at: Date;
879
877
  updated_at: Date;
878
+ role: string | null;
879
+ email: string;
880
880
  company_id: string | null;
881
881
  short_id: string | null;
882
882
  is_primary: boolean;
@@ -1354,14 +1354,14 @@ export declare class ChatarminOS {
1354
1354
  }) => Promise<{
1355
1355
  id: string;
1356
1356
  metadata: unknown;
1357
- source: string;
1358
- quantity: number;
1359
1357
  created_at: Date;
1360
1358
  company_id: string;
1361
1359
  billing_profile_id: string | null;
1362
1360
  stripe_price_id: string | null;
1363
1361
  meter_code: string;
1364
1362
  subscription_item_id: string | null;
1363
+ source: string;
1364
+ quantity: number;
1365
1365
  product_link_id: string | null;
1366
1366
  event_time: Date;
1367
1367
  event_type: string;
@@ -1388,11 +1388,11 @@ export declare class ChatarminOS {
1388
1388
  getUsageSnapshots: (companyId: string, featureCode: string, limit?: number) => Promise<{
1389
1389
  id: string;
1390
1390
  metadata: unknown;
1391
- reason: string | null;
1392
1391
  created_at: Date;
1393
1392
  company_id: string;
1394
1393
  meter_code: string;
1395
1394
  created_by: string | null;
1395
+ reason: string | null;
1396
1396
  absolute_value: number;
1397
1397
  billable_value: number;
1398
1398
  snapshot_type: string;
@@ -1590,16 +1590,16 @@ export declare class ChatarminOS {
1590
1590
  }) => Promise<{
1591
1591
  id: string;
1592
1592
  metadata: unknown;
1593
- confidence: number | null;
1594
- label: string | null;
1595
1593
  created_at: Date;
1596
1594
  updated_at: Date;
1597
1595
  company_id: string;
1598
1596
  product_id: string;
1599
1597
  external_org_id: string;
1600
1598
  external_user_id: string | null;
1599
+ confidence: number | null;
1601
1600
  sync_status: string;
1602
1601
  link_type: string;
1602
+ label: string | null;
1603
1603
  } | undefined>;
1604
1604
  /**
1605
1605
  * Delete all product links for this product.
@@ -1721,14 +1721,14 @@ export declare class ChatarminOS {
1721
1721
  hasQuantity: boolean;
1722
1722
  configValues: unknown;
1723
1723
  }[];
1724
- name: string;
1725
1724
  id: string;
1726
- metadata: unknown;
1727
- description: string | null;
1728
1725
  code: string;
1726
+ name: string;
1729
1727
  is_active: boolean;
1728
+ metadata: unknown;
1730
1729
  created_at: Date;
1731
1730
  updated_at: Date;
1731
+ description: string | null;
1732
1732
  display_order: number;
1733
1733
  product_id: string;
1734
1734
  }[]>;
@@ -1839,14 +1839,14 @@ export declare class ChatarminOS {
1839
1839
  hasQuantity: boolean;
1840
1840
  configValues: unknown;
1841
1841
  }[];
1842
- name: string;
1843
1842
  id: string;
1844
- metadata: unknown;
1845
- description: string | null;
1846
1843
  code: string;
1844
+ name: string;
1847
1845
  is_active: boolean;
1846
+ metadata: unknown;
1848
1847
  created_at: Date;
1849
1848
  updated_at: Date;
1849
+ description: string | null;
1850
1850
  display_order: number;
1851
1851
  product_id: string;
1852
1852
  }[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatarmin/os",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Type-safe SDK for ChatarminOS - Customer & Subscription Management",
5
5
  "type": "module",
6
6
  "publishConfig": {