glitch-javascript-sdk 1.7.8 → 1.7.9

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
@@ -826,6 +826,42 @@ declare class Ads {
826
826
  * @returns A 204 No Content response on success
827
827
  */
828
828
  static deleteTrigger<T>(campaign_id: string, group_id: string, trigger_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
829
+ /**
830
+ * List platform-level businesses for the given campaign ID,
831
+ * as defined by /ads/campaigns/{id}/businesses on the backend.
832
+ *
833
+ * Typically relevant for Reddit (list businesses), or might return a
834
+ * "not supported" message for Meta/TikTok.
835
+ *
836
+ * @param campaign_id The UUID of the Ad Campaign
837
+ * @param params Optional query parameters, e.g. page.size, etc.
838
+ * @returns A response object with data (business list or messages)
839
+ */
840
+ static listCampaignBusinesses<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
841
+ /**
842
+ * List Ad Accounts for the given campaign ID,
843
+ * as defined by /ads/campaigns/{id}/ad_accounts on the backend.
844
+ *
845
+ * E.g. for Reddit, you can pass ?business_id= to get business-level ad accounts,
846
+ * or for Twitter, it might just return a user’s ad accounts, etc.
847
+ *
848
+ * @param campaign_id The UUID of the Ad Campaign
849
+ * @param params Optional query parameters, e.g. business_id, page.size, etc.
850
+ * @returns A response object with data (ad account list)
851
+ */
852
+ static listCampaignAdAccounts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
853
+ /**
854
+ * List funding instruments for the given campaign ID,
855
+ * as defined by /ads/campaigns/{id}/funding_instruments on the backend.
856
+ *
857
+ * For Twitter, pass ?account_id=...
858
+ * For Reddit, pass ?ad_account_id=... or ?business_id=...
859
+ *
860
+ * @param campaign_id The UUID of the Ad Campaign
861
+ * @param params Optional query parameters
862
+ * @returns A response object with data (funding instruments)
863
+ */
864
+ static listCampaignFundingInstruments<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
829
865
  }
830
866
 
831
867
  declare class Communities {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",