@ecodrix/erix-api 1.2.9 → 1.3.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/cli.js +7 -7
- package/dist/index.d.ts +239 -1
- package/dist/ts/browser/index.global.js +14 -14
- package/dist/ts/browser/index.global.js.map +1 -1
- package/dist/ts/cjs/index.cjs +1 -1
- package/dist/ts/cjs/index.cjs.map +1 -1
- package/dist/ts/cjs/index.d.cts +239 -1
- package/dist/ts/esm/index.d.ts +239 -1
- package/dist/ts/esm/index.js +1 -1
- package/dist/ts/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/ts/cjs/index.d.cts
CHANGED
|
@@ -2782,6 +2782,231 @@ declare class WhatsApp extends APIResource {
|
|
|
2782
2782
|
}>;
|
|
2783
2783
|
}
|
|
2784
2784
|
|
|
2785
|
+
declare class Agency extends APIResource {
|
|
2786
|
+
/**
|
|
2787
|
+
* List all available blueprints.
|
|
2788
|
+
*/
|
|
2789
|
+
listBlueprints<T = any>(): Promise<T>;
|
|
2790
|
+
/**
|
|
2791
|
+
* Create a new blueprint configuration ("Gold Standard").
|
|
2792
|
+
*/
|
|
2793
|
+
createBlueprint<T = any>(payload: any): Promise<T>;
|
|
2794
|
+
/**
|
|
2795
|
+
* Deploy a blueprint to a specific tenant client code.
|
|
2796
|
+
*/
|
|
2797
|
+
deployBlueprint<T = any>(payload: {
|
|
2798
|
+
clientCode: string;
|
|
2799
|
+
blueprintId: string;
|
|
2800
|
+
}): Promise<T>;
|
|
2801
|
+
/**
|
|
2802
|
+
* Get aggregate portfolio statistics for an agency.
|
|
2803
|
+
*/
|
|
2804
|
+
getPortfolioStats<T = any>(agencyCode: string): Promise<T>;
|
|
2805
|
+
/**
|
|
2806
|
+
* Get proactive health report for an agency portfolio.
|
|
2807
|
+
*/
|
|
2808
|
+
getPortfolioHealth<T = any>(agencyCode: string): Promise<T>;
|
|
2809
|
+
/**
|
|
2810
|
+
* View consumption usage for a specific client code.
|
|
2811
|
+
*/
|
|
2812
|
+
getUsage<T = any>(clientCode: string): Promise<T>;
|
|
2813
|
+
/**
|
|
2814
|
+
* List staff members under a specific agency code.
|
|
2815
|
+
*/
|
|
2816
|
+
listStaff<T = any>(agencyCode: string): Promise<T>;
|
|
2817
|
+
/**
|
|
2818
|
+
* Create a new staff member for an agency.
|
|
2819
|
+
*/
|
|
2820
|
+
createStaff<T = any>(payload: any): Promise<T>;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
declare class Clients extends APIResource {
|
|
2824
|
+
/**
|
|
2825
|
+
* List all clients in the ecosystem.
|
|
2826
|
+
*/
|
|
2827
|
+
list<T = any>(): Promise<T>;
|
|
2828
|
+
/**
|
|
2829
|
+
* Get client count and auto-generate a unique code.
|
|
2830
|
+
*/
|
|
2831
|
+
getCountAndGenerateCode<T = any>(): Promise<T>;
|
|
2832
|
+
/**
|
|
2833
|
+
* Retrieve a single client by client code.
|
|
2834
|
+
*/
|
|
2835
|
+
retrieve<T = any>(clientCode: string): Promise<T>;
|
|
2836
|
+
/**
|
|
2837
|
+
* Get API Key for a specific client (Admin Only).
|
|
2838
|
+
*/
|
|
2839
|
+
getApiKey<T = any>(clientCode: string): Promise<T>;
|
|
2840
|
+
/**
|
|
2841
|
+
* Generate or rotate API Key for a specific client (Admin Only).
|
|
2842
|
+
*/
|
|
2843
|
+
rotateApiKey<T = any>(clientCode: string): Promise<T>;
|
|
2844
|
+
/**
|
|
2845
|
+
* Create a new client identity and provision initial resources.
|
|
2846
|
+
*/
|
|
2847
|
+
create<T = any>(payload: {
|
|
2848
|
+
name: string;
|
|
2849
|
+
clientCode: string;
|
|
2850
|
+
business?: any;
|
|
2851
|
+
plan?: any;
|
|
2852
|
+
}): Promise<T>;
|
|
2853
|
+
/**
|
|
2854
|
+
* Get active service configuration for a specific client.
|
|
2855
|
+
*/
|
|
2856
|
+
getConfig<T = any>(clientCode: string): Promise<T>;
|
|
2857
|
+
/**
|
|
2858
|
+
* Update active service configuration for a specific client.
|
|
2859
|
+
*/
|
|
2860
|
+
updateConfig<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2861
|
+
/**
|
|
2862
|
+
* Get decrypted secrets for a specific client.
|
|
2863
|
+
*/
|
|
2864
|
+
getSecrets<T = any>(clientCode: string): Promise<T>;
|
|
2865
|
+
/**
|
|
2866
|
+
* Set secrets for a specific client.
|
|
2867
|
+
*/
|
|
2868
|
+
updateSecrets<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2869
|
+
/**
|
|
2870
|
+
* Completely replace secrets for a specific client.
|
|
2871
|
+
*/
|
|
2872
|
+
replaceSecrets<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2873
|
+
/**
|
|
2874
|
+
* Partially update secrets for a specific client.
|
|
2875
|
+
*/
|
|
2876
|
+
patchSecrets<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2877
|
+
/**
|
|
2878
|
+
* Retrieve Data Source connection metadata.
|
|
2879
|
+
*/
|
|
2880
|
+
getDataSource<T = any>(clientCode: string): Promise<T>;
|
|
2881
|
+
/**
|
|
2882
|
+
* Configure Data Source metadata.
|
|
2883
|
+
*/
|
|
2884
|
+
manageDataSource<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2885
|
+
/**
|
|
2886
|
+
* Update Client Identity and perform cascading updates if required.
|
|
2887
|
+
*/
|
|
2888
|
+
updateIdentity<T = any>(id: string, payload: any): Promise<T>;
|
|
2889
|
+
/**
|
|
2890
|
+
* Initiate Google Re-authentication for OAuth tokens.
|
|
2891
|
+
*/
|
|
2892
|
+
googleReauth<T = any>(clientCode: string, payload?: {
|
|
2893
|
+
authCode?: string;
|
|
2894
|
+
}): Promise<T>;
|
|
2895
|
+
/**
|
|
2896
|
+
* Delete a client and perform cascading cleanup.
|
|
2897
|
+
*/
|
|
2898
|
+
delete<T = any>(id: string): Promise<T>;
|
|
2899
|
+
}
|
|
2900
|
+
declare class Blogs extends APIResource {
|
|
2901
|
+
/**
|
|
2902
|
+
* Retrieve public corporate blogs/news.
|
|
2903
|
+
*/
|
|
2904
|
+
list<T = any>(): Promise<T>;
|
|
2905
|
+
}
|
|
2906
|
+
declare class GlobalLeads extends APIResource {
|
|
2907
|
+
/**
|
|
2908
|
+
* Add a corporate lead capture entry.
|
|
2909
|
+
*/
|
|
2910
|
+
add<T = any>(payload: any): Promise<T>;
|
|
2911
|
+
}
|
|
2912
|
+
declare class Services extends APIResource {
|
|
2913
|
+
clients: Clients;
|
|
2914
|
+
blogs: Blogs;
|
|
2915
|
+
globalLeads: GlobalLeads;
|
|
2916
|
+
constructor(client: any);
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
declare class EmailConfig extends APIResource {
|
|
2920
|
+
/**
|
|
2921
|
+
* Retrieve current email provider configuration and domain verification statuses.
|
|
2922
|
+
*/
|
|
2923
|
+
getConfig<T = any>(): Promise<T>;
|
|
2924
|
+
/**
|
|
2925
|
+
* Switch the active email provider.
|
|
2926
|
+
*/
|
|
2927
|
+
switchProvider<T = any>(provider: string): Promise<T>;
|
|
2928
|
+
/**
|
|
2929
|
+
* Provide explicit SMTP credentials and connection preferences.
|
|
2930
|
+
*/
|
|
2931
|
+
saveSmtp<T = any>(payload: any): Promise<T>;
|
|
2932
|
+
/**
|
|
2933
|
+
* Initialize a new domain for SES identity verification.
|
|
2934
|
+
*/
|
|
2935
|
+
initDomainVerification<T = any>(domain: string): Promise<T>;
|
|
2936
|
+
/**
|
|
2937
|
+
* Confirm "From" details and finalize configuration payload.
|
|
2938
|
+
*/
|
|
2939
|
+
saveEmailConfig<T = any>(payload: {
|
|
2940
|
+
fromName: string;
|
|
2941
|
+
fromEmail: string;
|
|
2942
|
+
replyTo?: string;
|
|
2943
|
+
}): Promise<T>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Check status of AWS SES domain validation DNS records.
|
|
2946
|
+
*/
|
|
2947
|
+
checkSesVerification<T = any>(): Promise<T>;
|
|
2948
|
+
/**
|
|
2949
|
+
* Remove a verified SES domain identity and clean up local secrets.
|
|
2950
|
+
*/
|
|
2951
|
+
removeSesIdentity<T = any>(): Promise<T>;
|
|
2952
|
+
/**
|
|
2953
|
+
* Send a test email to verify infrastructure is correctly bound.
|
|
2954
|
+
*/
|
|
2955
|
+
sendTest<T = any>(toEmail: string): Promise<T>;
|
|
2956
|
+
/**
|
|
2957
|
+
* Define customized global email footers, limits, and specific campaign policies.
|
|
2958
|
+
*/
|
|
2959
|
+
saveAdvancedConfig<T = any>(payload: any): Promise<T>;
|
|
2960
|
+
/**
|
|
2961
|
+
* Retrieve email configuration health properties including bounce limits metrics.
|
|
2962
|
+
*/
|
|
2963
|
+
getHealth<T = any>(): Promise<T>;
|
|
2964
|
+
/**
|
|
2965
|
+
* Upgrade configurations dynamically to add DMARC enforcement records.
|
|
2966
|
+
*/
|
|
2967
|
+
fixDmarc<T = any>(): Promise<T>;
|
|
2968
|
+
/**
|
|
2969
|
+
* Discover internally available providers constants metadata.
|
|
2970
|
+
*/
|
|
2971
|
+
listProviders<T = any>(): Promise<T>;
|
|
2972
|
+
}
|
|
2973
|
+
declare class Settings extends APIResource {
|
|
2974
|
+
email: EmailConfig;
|
|
2975
|
+
constructor(client: any);
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
interface CorsOriginCreatePayload {
|
|
2979
|
+
url: string;
|
|
2980
|
+
name?: string;
|
|
2981
|
+
allowedHeaders?: string[];
|
|
2982
|
+
allowedMethods?: string[];
|
|
2983
|
+
}
|
|
2984
|
+
interface CorsOriginUpdatePayload {
|
|
2985
|
+
url?: string;
|
|
2986
|
+
name?: string;
|
|
2987
|
+
allowedHeaders?: string[];
|
|
2988
|
+
allowedMethods?: string[];
|
|
2989
|
+
isActive?: boolean;
|
|
2990
|
+
}
|
|
2991
|
+
declare class Cors extends APIResource {
|
|
2992
|
+
/**
|
|
2993
|
+
* List all dynamic cross-origin policies.
|
|
2994
|
+
*/
|
|
2995
|
+
list<T = any>(): Promise<T>;
|
|
2996
|
+
/**
|
|
2997
|
+
* Register a new cross-origin client for the SaaS API network dynamically.
|
|
2998
|
+
*/
|
|
2999
|
+
create<T = any>(payload: CorsOriginCreatePayload): Promise<T>;
|
|
3000
|
+
/**
|
|
3001
|
+
* Adjust active states or configurations for an existing origin policy.
|
|
3002
|
+
*/
|
|
3003
|
+
update<T = any>(id: string, payload: CorsOriginUpdatePayload): Promise<T>;
|
|
3004
|
+
/**
|
|
3005
|
+
* Irreversibly drop support for a cross-origin client URL policy permanently.
|
|
3006
|
+
*/
|
|
3007
|
+
delete<T = any>(id: string): Promise<T>;
|
|
3008
|
+
}
|
|
3009
|
+
|
|
2785
3010
|
/**
|
|
2786
3011
|
* Configuration options for the Ecodrix client.
|
|
2787
3012
|
*
|
|
@@ -2801,6 +3026,11 @@ interface EcodrixOptions {
|
|
|
2801
3026
|
* @example "ERIX_CLNT_JHBJHF"
|
|
2802
3027
|
*/
|
|
2803
3028
|
clientCode?: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* Optional Core API Key for deep system-level bypasses.
|
|
3031
|
+
* Only used by elevated internal SaaS modules like Nirvisham.
|
|
3032
|
+
*/
|
|
3033
|
+
coreApiKey?: string;
|
|
2804
3034
|
/**
|
|
2805
3035
|
* @internal Override Socket.io URL for testing/staging.
|
|
2806
3036
|
* Not documented — internal use only.
|
|
@@ -2872,6 +3102,14 @@ declare class Ecodrix {
|
|
|
2872
3102
|
readonly health: Health;
|
|
2873
3103
|
/** Background job queue management. */
|
|
2874
3104
|
readonly queue: Queue;
|
|
3105
|
+
/** White-Label Agency administration. */
|
|
3106
|
+
readonly agency: Agency;
|
|
3107
|
+
/** Multi-tenant Identity & Lifecycle services. */
|
|
3108
|
+
readonly services: Services;
|
|
3109
|
+
/** Tenant environment and provider settings. */
|
|
3110
|
+
readonly settings: Settings;
|
|
3111
|
+
/** Dynamic Cross-Origin Resource Sharing network policies. */
|
|
3112
|
+
readonly cors: Cors;
|
|
2875
3113
|
constructor(options: EcodrixOptions);
|
|
2876
3114
|
/**
|
|
2877
3115
|
* Join a specific real-time room (e.g., a conversation or a lead).
|
|
@@ -2953,4 +3191,4 @@ declare class Ecodrix {
|
|
|
2953
3191
|
request<T = any>(method: Method, path: string, data?: any, params?: any): Promise<T>;
|
|
2954
3192
|
}
|
|
2955
3193
|
|
|
2956
|
-
export { APIError, Activities, Analytics, type AnalyticsParams, type AnalyticsRange, type AssignEventPayload, AuthenticationError, AutomationDashboard, type AutomationRulePayload, Automations, Broadcasts, CRM, type CallbackLog, type CampaignResult, Campaigns, type ChatMediaMeta, type ClientHealth, Conversations, type CreateBroadcastParams, type CreateLeadParams, type CreateMeetingParams, type CreatePipelineParams, type CreateTemplateDTO, Ecodrix, EcodrixError, type EcodrixOptions, Email, EmailResource, type EmailTemplate, Emails, type EventDefinition, type EventLog, EventsResource, type FieldManifest, type FieldType, Files, Folders, Health, type JobStats, type JobStatus, type LeadSource, type LeadStatus, Leads, type ListLeadsParams, type ListParams, type LogActivityParams, type LogCallParams, type LogFilter, type LogPaginationQuery, type LogResponse, Logs, Marketing, Media, MediaResource, Meetings, Messages, Notes, Notifications, Payments, type PipelineStageParams, Pipelines, Queue, RateLimitError, type ResourceManifest, Scoring, type ScoringConfig, type SendCampaignParams, type SendCampaignPayload, type SendMessageParams, type SendTemplateParams, type SendTemplatePayload, Sequences, Storage, type SystemHealth, type TemplateMapping, type TemplatePreviewResponse, Templates, type TriggerPayload, type TriggerResponse, type UpdateMeetingParams, type UploadOptions, type UpsertLeadParams, WebhookSignatureError, Webhooks, WhatsApp, WhatsAppMarketing, Ecodrix as default };
|
|
3194
|
+
export { APIError, Activities, Agency, Analytics, type AnalyticsParams, type AnalyticsRange, type AssignEventPayload, AuthenticationError, AutomationDashboard, type AutomationRulePayload, Automations, Blogs, Broadcasts, CRM, type CallbackLog, type CampaignResult, Campaigns, type ChatMediaMeta, type ClientHealth, Clients, Conversations, Cors, type CorsOriginCreatePayload, type CorsOriginUpdatePayload, type CreateBroadcastParams, type CreateLeadParams, type CreateMeetingParams, type CreatePipelineParams, type CreateTemplateDTO, Ecodrix, EcodrixError, type EcodrixOptions, Email, EmailConfig, EmailResource, type EmailTemplate, Emails, type EventDefinition, type EventLog, EventsResource, type FieldManifest, type FieldType, Files, Folders, GlobalLeads, Health, type JobStats, type JobStatus, type LeadSource, type LeadStatus, Leads, type ListLeadsParams, type ListParams, type LogActivityParams, type LogCallParams, type LogFilter, type LogPaginationQuery, type LogResponse, Logs, Marketing, Media, MediaResource, Meetings, Messages, Notes, Notifications, Payments, type PipelineStageParams, Pipelines, Queue, RateLimitError, type ResourceManifest, Scoring, type ScoringConfig, type SendCampaignParams, type SendCampaignPayload, type SendMessageParams, type SendTemplateParams, type SendTemplatePayload, Sequences, Services, Settings, Storage, type SystemHealth, type TemplateMapping, type TemplatePreviewResponse, Templates, type TriggerPayload, type TriggerResponse, type UpdateMeetingParams, type UploadOptions, type UpsertLeadParams, WebhookSignatureError, Webhooks, WhatsApp, WhatsAppMarketing, Ecodrix as default };
|
package/dist/ts/esm/index.d.ts
CHANGED
|
@@ -2782,6 +2782,231 @@ declare class WhatsApp extends APIResource {
|
|
|
2782
2782
|
}>;
|
|
2783
2783
|
}
|
|
2784
2784
|
|
|
2785
|
+
declare class Agency extends APIResource {
|
|
2786
|
+
/**
|
|
2787
|
+
* List all available blueprints.
|
|
2788
|
+
*/
|
|
2789
|
+
listBlueprints<T = any>(): Promise<T>;
|
|
2790
|
+
/**
|
|
2791
|
+
* Create a new blueprint configuration ("Gold Standard").
|
|
2792
|
+
*/
|
|
2793
|
+
createBlueprint<T = any>(payload: any): Promise<T>;
|
|
2794
|
+
/**
|
|
2795
|
+
* Deploy a blueprint to a specific tenant client code.
|
|
2796
|
+
*/
|
|
2797
|
+
deployBlueprint<T = any>(payload: {
|
|
2798
|
+
clientCode: string;
|
|
2799
|
+
blueprintId: string;
|
|
2800
|
+
}): Promise<T>;
|
|
2801
|
+
/**
|
|
2802
|
+
* Get aggregate portfolio statistics for an agency.
|
|
2803
|
+
*/
|
|
2804
|
+
getPortfolioStats<T = any>(agencyCode: string): Promise<T>;
|
|
2805
|
+
/**
|
|
2806
|
+
* Get proactive health report for an agency portfolio.
|
|
2807
|
+
*/
|
|
2808
|
+
getPortfolioHealth<T = any>(agencyCode: string): Promise<T>;
|
|
2809
|
+
/**
|
|
2810
|
+
* View consumption usage for a specific client code.
|
|
2811
|
+
*/
|
|
2812
|
+
getUsage<T = any>(clientCode: string): Promise<T>;
|
|
2813
|
+
/**
|
|
2814
|
+
* List staff members under a specific agency code.
|
|
2815
|
+
*/
|
|
2816
|
+
listStaff<T = any>(agencyCode: string): Promise<T>;
|
|
2817
|
+
/**
|
|
2818
|
+
* Create a new staff member for an agency.
|
|
2819
|
+
*/
|
|
2820
|
+
createStaff<T = any>(payload: any): Promise<T>;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
declare class Clients extends APIResource {
|
|
2824
|
+
/**
|
|
2825
|
+
* List all clients in the ecosystem.
|
|
2826
|
+
*/
|
|
2827
|
+
list<T = any>(): Promise<T>;
|
|
2828
|
+
/**
|
|
2829
|
+
* Get client count and auto-generate a unique code.
|
|
2830
|
+
*/
|
|
2831
|
+
getCountAndGenerateCode<T = any>(): Promise<T>;
|
|
2832
|
+
/**
|
|
2833
|
+
* Retrieve a single client by client code.
|
|
2834
|
+
*/
|
|
2835
|
+
retrieve<T = any>(clientCode: string): Promise<T>;
|
|
2836
|
+
/**
|
|
2837
|
+
* Get API Key for a specific client (Admin Only).
|
|
2838
|
+
*/
|
|
2839
|
+
getApiKey<T = any>(clientCode: string): Promise<T>;
|
|
2840
|
+
/**
|
|
2841
|
+
* Generate or rotate API Key for a specific client (Admin Only).
|
|
2842
|
+
*/
|
|
2843
|
+
rotateApiKey<T = any>(clientCode: string): Promise<T>;
|
|
2844
|
+
/**
|
|
2845
|
+
* Create a new client identity and provision initial resources.
|
|
2846
|
+
*/
|
|
2847
|
+
create<T = any>(payload: {
|
|
2848
|
+
name: string;
|
|
2849
|
+
clientCode: string;
|
|
2850
|
+
business?: any;
|
|
2851
|
+
plan?: any;
|
|
2852
|
+
}): Promise<T>;
|
|
2853
|
+
/**
|
|
2854
|
+
* Get active service configuration for a specific client.
|
|
2855
|
+
*/
|
|
2856
|
+
getConfig<T = any>(clientCode: string): Promise<T>;
|
|
2857
|
+
/**
|
|
2858
|
+
* Update active service configuration for a specific client.
|
|
2859
|
+
*/
|
|
2860
|
+
updateConfig<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2861
|
+
/**
|
|
2862
|
+
* Get decrypted secrets for a specific client.
|
|
2863
|
+
*/
|
|
2864
|
+
getSecrets<T = any>(clientCode: string): Promise<T>;
|
|
2865
|
+
/**
|
|
2866
|
+
* Set secrets for a specific client.
|
|
2867
|
+
*/
|
|
2868
|
+
updateSecrets<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2869
|
+
/**
|
|
2870
|
+
* Completely replace secrets for a specific client.
|
|
2871
|
+
*/
|
|
2872
|
+
replaceSecrets<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2873
|
+
/**
|
|
2874
|
+
* Partially update secrets for a specific client.
|
|
2875
|
+
*/
|
|
2876
|
+
patchSecrets<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2877
|
+
/**
|
|
2878
|
+
* Retrieve Data Source connection metadata.
|
|
2879
|
+
*/
|
|
2880
|
+
getDataSource<T = any>(clientCode: string): Promise<T>;
|
|
2881
|
+
/**
|
|
2882
|
+
* Configure Data Source metadata.
|
|
2883
|
+
*/
|
|
2884
|
+
manageDataSource<T = any>(clientCode: string, payload: any): Promise<T>;
|
|
2885
|
+
/**
|
|
2886
|
+
* Update Client Identity and perform cascading updates if required.
|
|
2887
|
+
*/
|
|
2888
|
+
updateIdentity<T = any>(id: string, payload: any): Promise<T>;
|
|
2889
|
+
/**
|
|
2890
|
+
* Initiate Google Re-authentication for OAuth tokens.
|
|
2891
|
+
*/
|
|
2892
|
+
googleReauth<T = any>(clientCode: string, payload?: {
|
|
2893
|
+
authCode?: string;
|
|
2894
|
+
}): Promise<T>;
|
|
2895
|
+
/**
|
|
2896
|
+
* Delete a client and perform cascading cleanup.
|
|
2897
|
+
*/
|
|
2898
|
+
delete<T = any>(id: string): Promise<T>;
|
|
2899
|
+
}
|
|
2900
|
+
declare class Blogs extends APIResource {
|
|
2901
|
+
/**
|
|
2902
|
+
* Retrieve public corporate blogs/news.
|
|
2903
|
+
*/
|
|
2904
|
+
list<T = any>(): Promise<T>;
|
|
2905
|
+
}
|
|
2906
|
+
declare class GlobalLeads extends APIResource {
|
|
2907
|
+
/**
|
|
2908
|
+
* Add a corporate lead capture entry.
|
|
2909
|
+
*/
|
|
2910
|
+
add<T = any>(payload: any): Promise<T>;
|
|
2911
|
+
}
|
|
2912
|
+
declare class Services extends APIResource {
|
|
2913
|
+
clients: Clients;
|
|
2914
|
+
blogs: Blogs;
|
|
2915
|
+
globalLeads: GlobalLeads;
|
|
2916
|
+
constructor(client: any);
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
declare class EmailConfig extends APIResource {
|
|
2920
|
+
/**
|
|
2921
|
+
* Retrieve current email provider configuration and domain verification statuses.
|
|
2922
|
+
*/
|
|
2923
|
+
getConfig<T = any>(): Promise<T>;
|
|
2924
|
+
/**
|
|
2925
|
+
* Switch the active email provider.
|
|
2926
|
+
*/
|
|
2927
|
+
switchProvider<T = any>(provider: string): Promise<T>;
|
|
2928
|
+
/**
|
|
2929
|
+
* Provide explicit SMTP credentials and connection preferences.
|
|
2930
|
+
*/
|
|
2931
|
+
saveSmtp<T = any>(payload: any): Promise<T>;
|
|
2932
|
+
/**
|
|
2933
|
+
* Initialize a new domain for SES identity verification.
|
|
2934
|
+
*/
|
|
2935
|
+
initDomainVerification<T = any>(domain: string): Promise<T>;
|
|
2936
|
+
/**
|
|
2937
|
+
* Confirm "From" details and finalize configuration payload.
|
|
2938
|
+
*/
|
|
2939
|
+
saveEmailConfig<T = any>(payload: {
|
|
2940
|
+
fromName: string;
|
|
2941
|
+
fromEmail: string;
|
|
2942
|
+
replyTo?: string;
|
|
2943
|
+
}): Promise<T>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Check status of AWS SES domain validation DNS records.
|
|
2946
|
+
*/
|
|
2947
|
+
checkSesVerification<T = any>(): Promise<T>;
|
|
2948
|
+
/**
|
|
2949
|
+
* Remove a verified SES domain identity and clean up local secrets.
|
|
2950
|
+
*/
|
|
2951
|
+
removeSesIdentity<T = any>(): Promise<T>;
|
|
2952
|
+
/**
|
|
2953
|
+
* Send a test email to verify infrastructure is correctly bound.
|
|
2954
|
+
*/
|
|
2955
|
+
sendTest<T = any>(toEmail: string): Promise<T>;
|
|
2956
|
+
/**
|
|
2957
|
+
* Define customized global email footers, limits, and specific campaign policies.
|
|
2958
|
+
*/
|
|
2959
|
+
saveAdvancedConfig<T = any>(payload: any): Promise<T>;
|
|
2960
|
+
/**
|
|
2961
|
+
* Retrieve email configuration health properties including bounce limits metrics.
|
|
2962
|
+
*/
|
|
2963
|
+
getHealth<T = any>(): Promise<T>;
|
|
2964
|
+
/**
|
|
2965
|
+
* Upgrade configurations dynamically to add DMARC enforcement records.
|
|
2966
|
+
*/
|
|
2967
|
+
fixDmarc<T = any>(): Promise<T>;
|
|
2968
|
+
/**
|
|
2969
|
+
* Discover internally available providers constants metadata.
|
|
2970
|
+
*/
|
|
2971
|
+
listProviders<T = any>(): Promise<T>;
|
|
2972
|
+
}
|
|
2973
|
+
declare class Settings extends APIResource {
|
|
2974
|
+
email: EmailConfig;
|
|
2975
|
+
constructor(client: any);
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
interface CorsOriginCreatePayload {
|
|
2979
|
+
url: string;
|
|
2980
|
+
name?: string;
|
|
2981
|
+
allowedHeaders?: string[];
|
|
2982
|
+
allowedMethods?: string[];
|
|
2983
|
+
}
|
|
2984
|
+
interface CorsOriginUpdatePayload {
|
|
2985
|
+
url?: string;
|
|
2986
|
+
name?: string;
|
|
2987
|
+
allowedHeaders?: string[];
|
|
2988
|
+
allowedMethods?: string[];
|
|
2989
|
+
isActive?: boolean;
|
|
2990
|
+
}
|
|
2991
|
+
declare class Cors extends APIResource {
|
|
2992
|
+
/**
|
|
2993
|
+
* List all dynamic cross-origin policies.
|
|
2994
|
+
*/
|
|
2995
|
+
list<T = any>(): Promise<T>;
|
|
2996
|
+
/**
|
|
2997
|
+
* Register a new cross-origin client for the SaaS API network dynamically.
|
|
2998
|
+
*/
|
|
2999
|
+
create<T = any>(payload: CorsOriginCreatePayload): Promise<T>;
|
|
3000
|
+
/**
|
|
3001
|
+
* Adjust active states or configurations for an existing origin policy.
|
|
3002
|
+
*/
|
|
3003
|
+
update<T = any>(id: string, payload: CorsOriginUpdatePayload): Promise<T>;
|
|
3004
|
+
/**
|
|
3005
|
+
* Irreversibly drop support for a cross-origin client URL policy permanently.
|
|
3006
|
+
*/
|
|
3007
|
+
delete<T = any>(id: string): Promise<T>;
|
|
3008
|
+
}
|
|
3009
|
+
|
|
2785
3010
|
/**
|
|
2786
3011
|
* Configuration options for the Ecodrix client.
|
|
2787
3012
|
*
|
|
@@ -2801,6 +3026,11 @@ interface EcodrixOptions {
|
|
|
2801
3026
|
* @example "ERIX_CLNT_JHBJHF"
|
|
2802
3027
|
*/
|
|
2803
3028
|
clientCode?: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* Optional Core API Key for deep system-level bypasses.
|
|
3031
|
+
* Only used by elevated internal SaaS modules like Nirvisham.
|
|
3032
|
+
*/
|
|
3033
|
+
coreApiKey?: string;
|
|
2804
3034
|
/**
|
|
2805
3035
|
* @internal Override Socket.io URL for testing/staging.
|
|
2806
3036
|
* Not documented — internal use only.
|
|
@@ -2872,6 +3102,14 @@ declare class Ecodrix {
|
|
|
2872
3102
|
readonly health: Health;
|
|
2873
3103
|
/** Background job queue management. */
|
|
2874
3104
|
readonly queue: Queue;
|
|
3105
|
+
/** White-Label Agency administration. */
|
|
3106
|
+
readonly agency: Agency;
|
|
3107
|
+
/** Multi-tenant Identity & Lifecycle services. */
|
|
3108
|
+
readonly services: Services;
|
|
3109
|
+
/** Tenant environment and provider settings. */
|
|
3110
|
+
readonly settings: Settings;
|
|
3111
|
+
/** Dynamic Cross-Origin Resource Sharing network policies. */
|
|
3112
|
+
readonly cors: Cors;
|
|
2875
3113
|
constructor(options: EcodrixOptions);
|
|
2876
3114
|
/**
|
|
2877
3115
|
* Join a specific real-time room (e.g., a conversation or a lead).
|
|
@@ -2953,4 +3191,4 @@ declare class Ecodrix {
|
|
|
2953
3191
|
request<T = any>(method: Method, path: string, data?: any, params?: any): Promise<T>;
|
|
2954
3192
|
}
|
|
2955
3193
|
|
|
2956
|
-
export { APIError, Activities, Analytics, type AnalyticsParams, type AnalyticsRange, type AssignEventPayload, AuthenticationError, AutomationDashboard, type AutomationRulePayload, Automations, Broadcasts, CRM, type CallbackLog, type CampaignResult, Campaigns, type ChatMediaMeta, type ClientHealth, Conversations, type CreateBroadcastParams, type CreateLeadParams, type CreateMeetingParams, type CreatePipelineParams, type CreateTemplateDTO, Ecodrix, EcodrixError, type EcodrixOptions, Email, EmailResource, type EmailTemplate, Emails, type EventDefinition, type EventLog, EventsResource, type FieldManifest, type FieldType, Files, Folders, Health, type JobStats, type JobStatus, type LeadSource, type LeadStatus, Leads, type ListLeadsParams, type ListParams, type LogActivityParams, type LogCallParams, type LogFilter, type LogPaginationQuery, type LogResponse, Logs, Marketing, Media, MediaResource, Meetings, Messages, Notes, Notifications, Payments, type PipelineStageParams, Pipelines, Queue, RateLimitError, type ResourceManifest, Scoring, type ScoringConfig, type SendCampaignParams, type SendCampaignPayload, type SendMessageParams, type SendTemplateParams, type SendTemplatePayload, Sequences, Storage, type SystemHealth, type TemplateMapping, type TemplatePreviewResponse, Templates, type TriggerPayload, type TriggerResponse, type UpdateMeetingParams, type UploadOptions, type UpsertLeadParams, WebhookSignatureError, Webhooks, WhatsApp, WhatsAppMarketing, Ecodrix as default };
|
|
3194
|
+
export { APIError, Activities, Agency, Analytics, type AnalyticsParams, type AnalyticsRange, type AssignEventPayload, AuthenticationError, AutomationDashboard, type AutomationRulePayload, Automations, Blogs, Broadcasts, CRM, type CallbackLog, type CampaignResult, Campaigns, type ChatMediaMeta, type ClientHealth, Clients, Conversations, Cors, type CorsOriginCreatePayload, type CorsOriginUpdatePayload, type CreateBroadcastParams, type CreateLeadParams, type CreateMeetingParams, type CreatePipelineParams, type CreateTemplateDTO, Ecodrix, EcodrixError, type EcodrixOptions, Email, EmailConfig, EmailResource, type EmailTemplate, Emails, type EventDefinition, type EventLog, EventsResource, type FieldManifest, type FieldType, Files, Folders, GlobalLeads, Health, type JobStats, type JobStatus, type LeadSource, type LeadStatus, Leads, type ListLeadsParams, type ListParams, type LogActivityParams, type LogCallParams, type LogFilter, type LogPaginationQuery, type LogResponse, Logs, Marketing, Media, MediaResource, Meetings, Messages, Notes, Notifications, Payments, type PipelineStageParams, Pipelines, Queue, RateLimitError, type ResourceManifest, Scoring, type ScoringConfig, type SendCampaignParams, type SendCampaignPayload, type SendMessageParams, type SendTemplateParams, type SendTemplatePayload, Sequences, Services, Settings, Storage, type SystemHealth, type TemplateMapping, type TemplatePreviewResponse, Templates, type TriggerPayload, type TriggerResponse, type UpdateMeetingParams, type UploadOptions, type UpsertLeadParams, WebhookSignatureError, Webhooks, WhatsApp, WhatsAppMarketing, Ecodrix as default };
|