@scalemule/sdk 0.0.33 → 0.0.34

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.mts CHANGED
@@ -1870,6 +1870,11 @@ interface ChatMessage {
1870
1870
  attachments?: Attachment[];
1871
1871
  is_edited: boolean;
1872
1872
  created_at: string;
1873
+ thread_id?: string;
1874
+ reply_count?: number;
1875
+ latest_reply_at?: string;
1876
+ reply_user_ids?: string[];
1877
+ is_thread_broadcast?: boolean;
1873
1878
  }
1874
1879
  interface ReadStatus {
1875
1880
  user_id: string;
@@ -1898,7 +1903,14 @@ declare class ChatService extends ServiceModule {
1898
1903
  sendMessage(conversationId: string, data: {
1899
1904
  content: string;
1900
1905
  type?: string;
1906
+ thread_id?: string;
1907
+ is_thread_broadcast?: boolean;
1901
1908
  }, options?: RequestOptions): Promise<ApiResponse<ChatMessage>>;
1909
+ getThreadReplies(messageId: string, params?: {
1910
+ limit?: number;
1911
+ before?: string;
1912
+ after?: string;
1913
+ }, requestOptions?: RequestOptions): Promise<ApiResponse<ChatMessage[]>>;
1902
1914
  getMessages(conversationId: string, options?: {
1903
1915
  limit?: number;
1904
1916
  before?: string;
@@ -2234,18 +2246,11 @@ declare class ReferralsService extends ServiceModule {
2234
2246
  /**
2235
2247
  * Billing Service Module
2236
2248
  *
2237
- * Customers, subscriptions, usage, invoices, marketplace payments, payouts.
2249
+ * Compatibility wrapper for the remaining `/v1/money/billing/*` endpoints.
2238
2250
  *
2239
2251
  * Routes:
2240
2252
  * POST /customers → create customer
2241
2253
  * POST /payment-methods → add payment method
2242
- * POST /subscriptions → create subscription
2243
- * GET /subscriptions → list subscriptions
2244
- * POST /subscriptions/{id}/cancel → cancel subscription
2245
- * POST /subscriptions/{id}/resume → resume subscription
2246
- * PATCH /subscriptions/{id}/upgrade → upgrade plan
2247
- * POST /usage → report usage
2248
- * GET /usage/summary → usage summary
2249
2254
  * GET /invoices → list invoices
2250
2255
  * GET /invoices/{id} → get invoice
2251
2256
  * POST /invoices/{id}/pay → pay invoice
@@ -2254,18 +2259,14 @@ declare class ReferralsService extends ServiceModule {
2254
2259
  * GET /connected-accounts/me → get own connected account
2255
2260
  * GET /connected-accounts/{id} → get connected account
2256
2261
  * POST /connected-accounts/{id}/onboarding-link → create onboarding link
2257
- * GET /connected-accounts/{id}/balance → get account balance
2258
2262
  * POST /connected-accounts/{id}/account-session → create account session (embedded onboarding)
2259
- * POST /payments → create payment
2260
- * GET /payments → list payments
2261
- * GET /payments/{id} → get payment
2262
- * POST /payments/{id}/refund → refund payment
2263
- * GET /connected-accounts/{id}/payouts → payout history
2264
2263
  * GET /connected-accounts/{id}/payout-schedule → get payout schedule
2265
2264
  * PUT /connected-accounts/{id}/payout-schedule → set payout schedule
2266
- * GET /transactions → ledger transactions
2267
- * GET /transactions/summary → transaction summary
2268
2265
  * POST /setup-sessions → create setup session
2266
+ *
2267
+ * Subscription lifecycle, usage, ledger, payment creation, and marketplace
2268
+ * settlement moved out of `money-billing` during the April 10, 2026 cutover.
2269
+ * Use `@scalemule/money` for the full money-service family.
2269
2270
  */
2270
2271
 
2271
2272
  interface Customer {
@@ -2464,6 +2465,7 @@ interface ConnectedSubscriptionListParams extends PaginationParams {
2464
2465
  }
2465
2466
  declare class BillingService extends ServiceModule {
2466
2467
  protected basePath: string;
2468
+ private retiredSurface;
2467
2469
  createCustomer(data: {
2468
2470
  email: string;
2469
2471
  name?: string;
@@ -4681,6 +4683,7 @@ interface Application {
4681
4683
  name: string;
4682
4684
  description?: string;
4683
4685
  api_key?: string;
4686
+ features?: string[];
4684
4687
  created_at: string;
4685
4688
  }
4686
4689
  declare class AccountsService extends ServiceModule {
@@ -4693,6 +4696,7 @@ declare class AccountsService extends ServiceModule {
4693
4696
  createApplication(data: {
4694
4697
  name: string;
4695
4698
  description?: string;
4699
+ features?: string[];
4696
4700
  }, options?: RequestOptions): Promise<ApiResponse<Application>>;
4697
4701
  getApplications(options?: RequestOptions): Promise<ApiResponse<Application[]>>;
4698
4702
  }
package/dist/index.d.ts CHANGED
@@ -1870,6 +1870,11 @@ interface ChatMessage {
1870
1870
  attachments?: Attachment[];
1871
1871
  is_edited: boolean;
1872
1872
  created_at: string;
1873
+ thread_id?: string;
1874
+ reply_count?: number;
1875
+ latest_reply_at?: string;
1876
+ reply_user_ids?: string[];
1877
+ is_thread_broadcast?: boolean;
1873
1878
  }
1874
1879
  interface ReadStatus {
1875
1880
  user_id: string;
@@ -1898,7 +1903,14 @@ declare class ChatService extends ServiceModule {
1898
1903
  sendMessage(conversationId: string, data: {
1899
1904
  content: string;
1900
1905
  type?: string;
1906
+ thread_id?: string;
1907
+ is_thread_broadcast?: boolean;
1901
1908
  }, options?: RequestOptions): Promise<ApiResponse<ChatMessage>>;
1909
+ getThreadReplies(messageId: string, params?: {
1910
+ limit?: number;
1911
+ before?: string;
1912
+ after?: string;
1913
+ }, requestOptions?: RequestOptions): Promise<ApiResponse<ChatMessage[]>>;
1902
1914
  getMessages(conversationId: string, options?: {
1903
1915
  limit?: number;
1904
1916
  before?: string;
@@ -2234,18 +2246,11 @@ declare class ReferralsService extends ServiceModule {
2234
2246
  /**
2235
2247
  * Billing Service Module
2236
2248
  *
2237
- * Customers, subscriptions, usage, invoices, marketplace payments, payouts.
2249
+ * Compatibility wrapper for the remaining `/v1/money/billing/*` endpoints.
2238
2250
  *
2239
2251
  * Routes:
2240
2252
  * POST /customers → create customer
2241
2253
  * POST /payment-methods → add payment method
2242
- * POST /subscriptions → create subscription
2243
- * GET /subscriptions → list subscriptions
2244
- * POST /subscriptions/{id}/cancel → cancel subscription
2245
- * POST /subscriptions/{id}/resume → resume subscription
2246
- * PATCH /subscriptions/{id}/upgrade → upgrade plan
2247
- * POST /usage → report usage
2248
- * GET /usage/summary → usage summary
2249
2254
  * GET /invoices → list invoices
2250
2255
  * GET /invoices/{id} → get invoice
2251
2256
  * POST /invoices/{id}/pay → pay invoice
@@ -2254,18 +2259,14 @@ declare class ReferralsService extends ServiceModule {
2254
2259
  * GET /connected-accounts/me → get own connected account
2255
2260
  * GET /connected-accounts/{id} → get connected account
2256
2261
  * POST /connected-accounts/{id}/onboarding-link → create onboarding link
2257
- * GET /connected-accounts/{id}/balance → get account balance
2258
2262
  * POST /connected-accounts/{id}/account-session → create account session (embedded onboarding)
2259
- * POST /payments → create payment
2260
- * GET /payments → list payments
2261
- * GET /payments/{id} → get payment
2262
- * POST /payments/{id}/refund → refund payment
2263
- * GET /connected-accounts/{id}/payouts → payout history
2264
2263
  * GET /connected-accounts/{id}/payout-schedule → get payout schedule
2265
2264
  * PUT /connected-accounts/{id}/payout-schedule → set payout schedule
2266
- * GET /transactions → ledger transactions
2267
- * GET /transactions/summary → transaction summary
2268
2265
  * POST /setup-sessions → create setup session
2266
+ *
2267
+ * Subscription lifecycle, usage, ledger, payment creation, and marketplace
2268
+ * settlement moved out of `money-billing` during the April 10, 2026 cutover.
2269
+ * Use `@scalemule/money` for the full money-service family.
2269
2270
  */
2270
2271
 
2271
2272
  interface Customer {
@@ -2464,6 +2465,7 @@ interface ConnectedSubscriptionListParams extends PaginationParams {
2464
2465
  }
2465
2466
  declare class BillingService extends ServiceModule {
2466
2467
  protected basePath: string;
2468
+ private retiredSurface;
2467
2469
  createCustomer(data: {
2468
2470
  email: string;
2469
2471
  name?: string;
@@ -4681,6 +4683,7 @@ interface Application {
4681
4683
  name: string;
4682
4684
  description?: string;
4683
4685
  api_key?: string;
4686
+ features?: string[];
4684
4687
  created_at: string;
4685
4688
  }
4686
4689
  declare class AccountsService extends ServiceModule {
@@ -4693,6 +4696,7 @@ declare class AccountsService extends ServiceModule {
4693
4696
  createApplication(data: {
4694
4697
  name: string;
4695
4698
  description?: string;
4699
+ features?: string[];
4696
4700
  }, options?: RequestOptions): Promise<ApiResponse<Application>>;
4697
4701
  getApplications(options?: RequestOptions): Promise<ApiResponse<Application[]>>;
4698
4702
  }
package/dist/index.js CHANGED
@@ -4333,6 +4333,9 @@ var ChatService = class extends ServiceModule {
4333
4333
  async sendMessage(conversationId, data, options) {
4334
4334
  return this.post(`/conversations/${conversationId}/messages`, data, options);
4335
4335
  }
4336
+ async getThreadReplies(messageId, params, requestOptions) {
4337
+ return this._get(this.withQuery(`/messages/${messageId}/replies`, params), requestOptions);
4338
+ }
4336
4339
  async getMessages(conversationId, options, requestOptions) {
4337
4340
  return this._get(
4338
4341
  this.withQuery(`/conversations/${conversationId}/messages`, options),
@@ -4557,7 +4560,14 @@ var ReferralsService = class extends ServiceModule {
4557
4560
  var BillingService = class extends ServiceModule {
4558
4561
  constructor() {
4559
4562
  super(...arguments);
4560
- this.basePath = "/v1/billing";
4563
+ this.basePath = "/v1/money/billing";
4564
+ }
4565
+ retiredSurface(route) {
4566
+ return Promise.reject(
4567
+ new Error(
4568
+ `${route} was retired after the money-services cutover. Use the dedicated money services instead of BillingService for this operation.`
4569
+ )
4570
+ );
4561
4571
  }
4562
4572
  // --------------------------------------------------------------------------
4563
4573
  // Customers
@@ -4572,28 +4582,39 @@ var BillingService = class extends ServiceModule {
4572
4582
  // Subscriptions
4573
4583
  // --------------------------------------------------------------------------
4574
4584
  async subscribe(data, options) {
4575
- return this.post("/subscriptions", data, options);
4585
+ void data;
4586
+ void options;
4587
+ return this.retiredSurface("/v1/money/billing/subscriptions");
4576
4588
  }
4577
4589
  async listSubscriptions(params, options) {
4578
- return this._list("/subscriptions", params, options);
4590
+ void params;
4591
+ void options;
4592
+ return this.retiredSurface("/v1/money/billing/subscriptions");
4579
4593
  }
4580
4594
  async cancelSubscription(id, options) {
4581
- return this.post(`/subscriptions/${id}/cancel`, void 0, options);
4595
+ void options;
4596
+ return this.retiredSurface(`/v1/money/billing/subscriptions/${id}/cancel`);
4582
4597
  }
4583
4598
  async resumeSubscription(id, options) {
4584
- return this.post(`/subscriptions/${id}/resume`, void 0, options);
4599
+ void options;
4600
+ return this.retiredSurface(`/v1/money/billing/subscriptions/${id}/resume`);
4585
4601
  }
4586
4602
  async upgradeSubscription(id, data, options) {
4587
- return this.patch(`/subscriptions/${id}/upgrade`, data, options);
4603
+ void data;
4604
+ void options;
4605
+ return this.retiredSurface(`/v1/money/billing/subscriptions/${id}/upgrade`);
4588
4606
  }
4589
4607
  // --------------------------------------------------------------------------
4590
4608
  // Usage
4591
4609
  // --------------------------------------------------------------------------
4592
4610
  async reportUsage(data, options) {
4593
- return this.post("/usage", data, options);
4611
+ void data;
4612
+ void options;
4613
+ return this.retiredSurface("/v1/money/billing/usage");
4594
4614
  }
4595
4615
  async getUsageSummary(options) {
4596
- return this._get("/usage/summary", options);
4616
+ void options;
4617
+ return this.retiredSurface("/v1/money/billing/usage/summary");
4597
4618
  }
4598
4619
  // --------------------------------------------------------------------------
4599
4620
  // Invoices
@@ -4626,7 +4647,8 @@ var BillingService = class extends ServiceModule {
4626
4647
  return this.post(`/connected-accounts/${id}/onboarding-link`, data, options);
4627
4648
  }
4628
4649
  async getAccountBalance(id, options) {
4629
- return this._get(`/connected-accounts/${id}/balance`, options);
4650
+ void options;
4651
+ return this.retiredSurface(`/v1/money/billing/connected-accounts/${id}/balance`);
4630
4652
  }
4631
4653
  async createAccountSession(id, options) {
4632
4654
  return this.post(`/connected-accounts/${id}/account-session`, void 0, options);
@@ -4641,25 +4663,34 @@ var BillingService = class extends ServiceModule {
4641
4663
  // Payments (Marketplace)
4642
4664
  // --------------------------------------------------------------------------
4643
4665
  async createPayment(data, options) {
4644
- return this.post("/payments", data, options);
4666
+ void data;
4667
+ void options;
4668
+ return this.retiredSurface("/v1/money/billing/payments");
4645
4669
  }
4646
4670
  async getPayment(id, options) {
4647
- return this._get(`/payments/${id}`, options);
4671
+ void options;
4672
+ return this.retiredSurface(`/v1/money/billing/payments/${id}`);
4648
4673
  }
4649
4674
  async listPayments(params, options) {
4650
- return this._list("/payments", params, options);
4675
+ void params;
4676
+ void options;
4677
+ return this.retiredSurface("/v1/money/billing/payments");
4651
4678
  }
4652
4679
  // --------------------------------------------------------------------------
4653
4680
  // Refunds
4654
4681
  // --------------------------------------------------------------------------
4655
4682
  async refundPayment(id, data, options) {
4656
- return this.post(`/payments/${id}/refund`, data, options);
4683
+ void data;
4684
+ void options;
4685
+ return this.retiredSurface(`/v1/money/billing/payments/${id}/refund`);
4657
4686
  }
4658
4687
  // --------------------------------------------------------------------------
4659
4688
  // Payouts
4660
4689
  // --------------------------------------------------------------------------
4661
4690
  async getPayoutHistory(accountId, params, options) {
4662
- return this._list(`/connected-accounts/${accountId}/payouts`, params, options);
4691
+ void params;
4692
+ void options;
4693
+ return this.retiredSurface(`/v1/money/billing/connected-accounts/${accountId}/payouts`);
4663
4694
  }
4664
4695
  async getPayoutSchedule(accountId, options) {
4665
4696
  return this._get(`/connected-accounts/${accountId}/payout-schedule`, options);
@@ -4671,13 +4702,14 @@ var BillingService = class extends ServiceModule {
4671
4702
  // Ledger
4672
4703
  // --------------------------------------------------------------------------
4673
4704
  async getTransactions(params, options) {
4674
- return this._list("/transactions", params, options);
4705
+ void params;
4706
+ void options;
4707
+ return this.retiredSurface("/v1/money/billing/transactions");
4675
4708
  }
4676
4709
  async getTransactionSummary(params, options) {
4677
- return this._get(
4678
- this.withQuery("/transactions/summary", params),
4679
- options
4680
- );
4710
+ void params;
4711
+ void options;
4712
+ return this.retiredSurface("/v1/money/billing/transactions/summary");
4681
4713
  }
4682
4714
  // --------------------------------------------------------------------------
4683
4715
  // Setup Sessions
@@ -4689,35 +4721,51 @@ var BillingService = class extends ServiceModule {
4689
4721
  // Connected Account Operations: Products, Prices, Subscriptions, Transfers
4690
4722
  // --------------------------------------------------------------------------
4691
4723
  async createProduct(data, options) {
4692
- return this.post("/products", data, options);
4724
+ void data;
4725
+ void options;
4726
+ return this.retiredSurface("/v1/money/billing/products");
4693
4727
  }
4694
4728
  async createPrice(data, options) {
4695
- return this.post("/prices", data, options);
4729
+ void data;
4730
+ void options;
4731
+ return this.retiredSurface("/v1/money/billing/prices");
4696
4732
  }
4697
4733
  async deactivatePrice(id, options) {
4698
- return this.post(`/prices/${id}/deactivate`, void 0, options);
4734
+ void options;
4735
+ return this.retiredSurface(`/v1/money/billing/prices/${id}/deactivate`);
4699
4736
  }
4700
4737
  async createConnectedSubscription(data, options) {
4701
- return this.post("/connected-subscriptions", data, options);
4738
+ void data;
4739
+ void options;
4740
+ return this.retiredSurface("/v1/money/billing/connected-subscriptions");
4702
4741
  }
4703
4742
  async cancelConnectedSubscription(id, data, options) {
4704
- return this.post(`/connected-subscriptions/${id}/cancel`, data, options);
4743
+ void data;
4744
+ void options;
4745
+ return this.retiredSurface(
4746
+ `/v1/money/billing/connected-subscriptions/${id}/cancel`
4747
+ );
4705
4748
  }
4706
4749
  async listConnectedSubscriptions(params, options) {
4707
- return this._list(
4708
- "/connected-subscriptions",
4709
- params,
4710
- options
4750
+ void params;
4751
+ void options;
4752
+ return this.retiredSurface(
4753
+ "/v1/money/billing/connected-subscriptions"
4711
4754
  );
4712
4755
  }
4713
4756
  async createConnectedSetupIntent(data, options) {
4714
- return this.post("/connected-setup-intents", data, options);
4757
+ void data;
4758
+ void options;
4759
+ return this.retiredSurface("/v1/money/billing/connected-setup-intents");
4715
4760
  }
4716
4761
  async createTransfer(data, options) {
4717
- return this.post("/transfers", data, options);
4762
+ void data;
4763
+ void options;
4764
+ return this.retiredSurface("/v1/money/billing/transfers");
4718
4765
  }
4719
4766
  async syncPaymentStatus(id, options) {
4720
- return this.post(`/payments/${id}/sync`, void 0, options);
4767
+ void options;
4768
+ return this.retiredSurface(`/v1/money/billing/payments/${id}/sync`);
4721
4769
  }
4722
4770
  // --------------------------------------------------------------------------
4723
4771
  // Legacy methods (backward compat)
package/dist/index.mjs CHANGED
@@ -3961,6 +3961,9 @@ var ChatService = class extends ServiceModule {
3961
3961
  async sendMessage(conversationId, data, options) {
3962
3962
  return this.post(`/conversations/${conversationId}/messages`, data, options);
3963
3963
  }
3964
+ async getThreadReplies(messageId, params, requestOptions) {
3965
+ return this._get(this.withQuery(`/messages/${messageId}/replies`, params), requestOptions);
3966
+ }
3964
3967
  async getMessages(conversationId, options, requestOptions) {
3965
3968
  return this._get(
3966
3969
  this.withQuery(`/conversations/${conversationId}/messages`, options),
@@ -4185,7 +4188,14 @@ var ReferralsService = class extends ServiceModule {
4185
4188
  var BillingService = class extends ServiceModule {
4186
4189
  constructor() {
4187
4190
  super(...arguments);
4188
- this.basePath = "/v1/billing";
4191
+ this.basePath = "/v1/money/billing";
4192
+ }
4193
+ retiredSurface(route) {
4194
+ return Promise.reject(
4195
+ new Error(
4196
+ `${route} was retired after the money-services cutover. Use the dedicated money services instead of BillingService for this operation.`
4197
+ )
4198
+ );
4189
4199
  }
4190
4200
  // --------------------------------------------------------------------------
4191
4201
  // Customers
@@ -4200,28 +4210,39 @@ var BillingService = class extends ServiceModule {
4200
4210
  // Subscriptions
4201
4211
  // --------------------------------------------------------------------------
4202
4212
  async subscribe(data, options) {
4203
- return this.post("/subscriptions", data, options);
4213
+ void data;
4214
+ void options;
4215
+ return this.retiredSurface("/v1/money/billing/subscriptions");
4204
4216
  }
4205
4217
  async listSubscriptions(params, options) {
4206
- return this._list("/subscriptions", params, options);
4218
+ void params;
4219
+ void options;
4220
+ return this.retiredSurface("/v1/money/billing/subscriptions");
4207
4221
  }
4208
4222
  async cancelSubscription(id, options) {
4209
- return this.post(`/subscriptions/${id}/cancel`, void 0, options);
4223
+ void options;
4224
+ return this.retiredSurface(`/v1/money/billing/subscriptions/${id}/cancel`);
4210
4225
  }
4211
4226
  async resumeSubscription(id, options) {
4212
- return this.post(`/subscriptions/${id}/resume`, void 0, options);
4227
+ void options;
4228
+ return this.retiredSurface(`/v1/money/billing/subscriptions/${id}/resume`);
4213
4229
  }
4214
4230
  async upgradeSubscription(id, data, options) {
4215
- return this.patch(`/subscriptions/${id}/upgrade`, data, options);
4231
+ void data;
4232
+ void options;
4233
+ return this.retiredSurface(`/v1/money/billing/subscriptions/${id}/upgrade`);
4216
4234
  }
4217
4235
  // --------------------------------------------------------------------------
4218
4236
  // Usage
4219
4237
  // --------------------------------------------------------------------------
4220
4238
  async reportUsage(data, options) {
4221
- return this.post("/usage", data, options);
4239
+ void data;
4240
+ void options;
4241
+ return this.retiredSurface("/v1/money/billing/usage");
4222
4242
  }
4223
4243
  async getUsageSummary(options) {
4224
- return this._get("/usage/summary", options);
4244
+ void options;
4245
+ return this.retiredSurface("/v1/money/billing/usage/summary");
4225
4246
  }
4226
4247
  // --------------------------------------------------------------------------
4227
4248
  // Invoices
@@ -4254,7 +4275,8 @@ var BillingService = class extends ServiceModule {
4254
4275
  return this.post(`/connected-accounts/${id}/onboarding-link`, data, options);
4255
4276
  }
4256
4277
  async getAccountBalance(id, options) {
4257
- return this._get(`/connected-accounts/${id}/balance`, options);
4278
+ void options;
4279
+ return this.retiredSurface(`/v1/money/billing/connected-accounts/${id}/balance`);
4258
4280
  }
4259
4281
  async createAccountSession(id, options) {
4260
4282
  return this.post(`/connected-accounts/${id}/account-session`, void 0, options);
@@ -4269,25 +4291,34 @@ var BillingService = class extends ServiceModule {
4269
4291
  // Payments (Marketplace)
4270
4292
  // --------------------------------------------------------------------------
4271
4293
  async createPayment(data, options) {
4272
- return this.post("/payments", data, options);
4294
+ void data;
4295
+ void options;
4296
+ return this.retiredSurface("/v1/money/billing/payments");
4273
4297
  }
4274
4298
  async getPayment(id, options) {
4275
- return this._get(`/payments/${id}`, options);
4299
+ void options;
4300
+ return this.retiredSurface(`/v1/money/billing/payments/${id}`);
4276
4301
  }
4277
4302
  async listPayments(params, options) {
4278
- return this._list("/payments", params, options);
4303
+ void params;
4304
+ void options;
4305
+ return this.retiredSurface("/v1/money/billing/payments");
4279
4306
  }
4280
4307
  // --------------------------------------------------------------------------
4281
4308
  // Refunds
4282
4309
  // --------------------------------------------------------------------------
4283
4310
  async refundPayment(id, data, options) {
4284
- return this.post(`/payments/${id}/refund`, data, options);
4311
+ void data;
4312
+ void options;
4313
+ return this.retiredSurface(`/v1/money/billing/payments/${id}/refund`);
4285
4314
  }
4286
4315
  // --------------------------------------------------------------------------
4287
4316
  // Payouts
4288
4317
  // --------------------------------------------------------------------------
4289
4318
  async getPayoutHistory(accountId, params, options) {
4290
- return this._list(`/connected-accounts/${accountId}/payouts`, params, options);
4319
+ void params;
4320
+ void options;
4321
+ return this.retiredSurface(`/v1/money/billing/connected-accounts/${accountId}/payouts`);
4291
4322
  }
4292
4323
  async getPayoutSchedule(accountId, options) {
4293
4324
  return this._get(`/connected-accounts/${accountId}/payout-schedule`, options);
@@ -4299,13 +4330,14 @@ var BillingService = class extends ServiceModule {
4299
4330
  // Ledger
4300
4331
  // --------------------------------------------------------------------------
4301
4332
  async getTransactions(params, options) {
4302
- return this._list("/transactions", params, options);
4333
+ void params;
4334
+ void options;
4335
+ return this.retiredSurface("/v1/money/billing/transactions");
4303
4336
  }
4304
4337
  async getTransactionSummary(params, options) {
4305
- return this._get(
4306
- this.withQuery("/transactions/summary", params),
4307
- options
4308
- );
4338
+ void params;
4339
+ void options;
4340
+ return this.retiredSurface("/v1/money/billing/transactions/summary");
4309
4341
  }
4310
4342
  // --------------------------------------------------------------------------
4311
4343
  // Setup Sessions
@@ -4317,35 +4349,51 @@ var BillingService = class extends ServiceModule {
4317
4349
  // Connected Account Operations: Products, Prices, Subscriptions, Transfers
4318
4350
  // --------------------------------------------------------------------------
4319
4351
  async createProduct(data, options) {
4320
- return this.post("/products", data, options);
4352
+ void data;
4353
+ void options;
4354
+ return this.retiredSurface("/v1/money/billing/products");
4321
4355
  }
4322
4356
  async createPrice(data, options) {
4323
- return this.post("/prices", data, options);
4357
+ void data;
4358
+ void options;
4359
+ return this.retiredSurface("/v1/money/billing/prices");
4324
4360
  }
4325
4361
  async deactivatePrice(id, options) {
4326
- return this.post(`/prices/${id}/deactivate`, void 0, options);
4362
+ void options;
4363
+ return this.retiredSurface(`/v1/money/billing/prices/${id}/deactivate`);
4327
4364
  }
4328
4365
  async createConnectedSubscription(data, options) {
4329
- return this.post("/connected-subscriptions", data, options);
4366
+ void data;
4367
+ void options;
4368
+ return this.retiredSurface("/v1/money/billing/connected-subscriptions");
4330
4369
  }
4331
4370
  async cancelConnectedSubscription(id, data, options) {
4332
- return this.post(`/connected-subscriptions/${id}/cancel`, data, options);
4371
+ void data;
4372
+ void options;
4373
+ return this.retiredSurface(
4374
+ `/v1/money/billing/connected-subscriptions/${id}/cancel`
4375
+ );
4333
4376
  }
4334
4377
  async listConnectedSubscriptions(params, options) {
4335
- return this._list(
4336
- "/connected-subscriptions",
4337
- params,
4338
- options
4378
+ void params;
4379
+ void options;
4380
+ return this.retiredSurface(
4381
+ "/v1/money/billing/connected-subscriptions"
4339
4382
  );
4340
4383
  }
4341
4384
  async createConnectedSetupIntent(data, options) {
4342
- return this.post("/connected-setup-intents", data, options);
4385
+ void data;
4386
+ void options;
4387
+ return this.retiredSurface("/v1/money/billing/connected-setup-intents");
4343
4388
  }
4344
4389
  async createTransfer(data, options) {
4345
- return this.post("/transfers", data, options);
4390
+ void data;
4391
+ void options;
4392
+ return this.retiredSurface("/v1/money/billing/transfers");
4346
4393
  }
4347
4394
  async syncPaymentStatus(id, options) {
4348
- return this.post(`/payments/${id}/sync`, void 0, options);
4395
+ void options;
4396
+ return this.retiredSurface(`/v1/money/billing/payments/${id}/sync`);
4349
4397
  }
4350
4398
  // --------------------------------------------------------------------------
4351
4399
  // Legacy methods (backward compat)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/sdk",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "Official TypeScript/JavaScript SDK for ScaleMule Backend-as-a-Service",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",