@heymantle/core-api-client 0.1.16 → 0.1.17

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
@@ -1742,6 +1742,54 @@ interface DocTreeNode {
1742
1742
  interface DocTreeResponse {
1743
1743
  tree: DocTreeNode[];
1744
1744
  }
1745
+ /**
1746
+ * Locale for a doc repository
1747
+ */
1748
+ interface DocRepositoryLocale {
1749
+ code: string;
1750
+ name: string;
1751
+ isDefault?: boolean;
1752
+ }
1753
+ /**
1754
+ * Collection within a doc repository
1755
+ */
1756
+ interface DocRepositoryCollection {
1757
+ id: string;
1758
+ name: string;
1759
+ slug?: string;
1760
+ description?: string;
1761
+ }
1762
+ /**
1763
+ * Doc repository entity
1764
+ */
1765
+ interface DocRepository {
1766
+ id: string;
1767
+ name: string;
1768
+ slug?: string;
1769
+ description?: string;
1770
+ locales: DocRepositoryLocale[];
1771
+ collections: DocRepositoryCollection[];
1772
+ createdAt: string;
1773
+ updatedAt: string;
1774
+ }
1775
+ /**
1776
+ * Parameters for listing doc repositories
1777
+ */
1778
+ interface DocRepositoryListParams extends ListParams {
1779
+ }
1780
+ /**
1781
+ * Response from listing doc repositories
1782
+ */
1783
+ interface DocRepositoryListResponse extends PaginatedResponse {
1784
+ repositories: DocRepository[];
1785
+ }
1786
+ /**
1787
+ * Parameters for retrieving a doc repository
1788
+ */
1789
+ interface DocRepositoryRetrieveParams {
1790
+ includeCollections?: boolean;
1791
+ includeLocales?: boolean;
1792
+ }
1745
1793
 
1746
1794
  /**
1747
1795
  * Organization entity
@@ -2161,7 +2209,7 @@ interface EntitiesSearchParams {
2161
2209
  /**
2162
2210
  * Response from searching entities
2163
2211
  */
2164
- interface EntitiesSearchResponse {
2212
+ interface EntitiesSearchResponse extends PaginatedResponse {
2165
2213
  entities: Entity[];
2166
2214
  }
2167
2215
 
@@ -2397,6 +2445,252 @@ interface ListRemoveEntitiesResponse {
2397
2445
  removed: number;
2398
2446
  }
2399
2447
 
2448
+ /**
2449
+ * File attached to a journal entry
2450
+ */
2451
+ interface JournalEntryFile {
2452
+ id: string;
2453
+ name: string;
2454
+ url: string;
2455
+ size?: number;
2456
+ mimeType?: string;
2457
+ createdAt: string;
2458
+ }
2459
+ /**
2460
+ * Journal entry entity
2461
+ */
2462
+ interface JournalEntry {
2463
+ id: string;
2464
+ appId?: string;
2465
+ date: string;
2466
+ title?: string;
2467
+ description: string;
2468
+ tags: string[];
2469
+ url?: string;
2470
+ emoji?: string;
2471
+ files: JournalEntryFile[];
2472
+ createdAt: string;
2473
+ updatedAt: string;
2474
+ }
2475
+ /**
2476
+ * Parameters for listing journal entries
2477
+ */
2478
+ interface JournalEntryListParams extends ListParams {
2479
+ appId?: string;
2480
+ startDate?: string;
2481
+ endDate?: string;
2482
+ tags?: string[];
2483
+ }
2484
+ /**
2485
+ * Response from listing journal entries
2486
+ */
2487
+ interface JournalEntryListResponse extends PaginatedResponse {
2488
+ journalEntries: JournalEntry[];
2489
+ }
2490
+ /**
2491
+ * Parameters for creating a journal entry
2492
+ */
2493
+ interface JournalEntryCreateParams {
2494
+ appId?: string;
2495
+ date: string;
2496
+ title?: string;
2497
+ description: string;
2498
+ tags?: string[];
2499
+ url?: string;
2500
+ emoji?: string;
2501
+ }
2502
+ /**
2503
+ * Parameters for updating a journal entry
2504
+ */
2505
+ interface JournalEntryUpdateParams extends Partial<JournalEntryCreateParams> {
2506
+ }
2507
+
2508
+ /**
2509
+ * Email unsubscribe group entity
2510
+ */
2511
+ interface EmailUnsubscribeGroup {
2512
+ id: string;
2513
+ name: string;
2514
+ description?: string;
2515
+ createdAt: string;
2516
+ updatedAt: string;
2517
+ }
2518
+ /**
2519
+ * Member of an email unsubscribe group
2520
+ */
2521
+ interface EmailUnsubscribeGroupMember {
2522
+ id: string;
2523
+ email: string;
2524
+ createdAt: string;
2525
+ }
2526
+ /**
2527
+ * Parameters for listing email unsubscribe groups
2528
+ */
2529
+ interface EmailUnsubscribeGroupListParams extends ListParams {
2530
+ }
2531
+ /**
2532
+ * Response from listing email unsubscribe groups
2533
+ */
2534
+ interface EmailUnsubscribeGroupListResponse extends PaginatedResponse {
2535
+ unsubscribeGroups: EmailUnsubscribeGroup[];
2536
+ }
2537
+ /**
2538
+ * Parameters for listing members of an unsubscribe group
2539
+ */
2540
+ interface EmailUnsubscribeGroupMemberListParams extends ListParams {
2541
+ }
2542
+ /**
2543
+ * Response from listing members of an unsubscribe group
2544
+ */
2545
+ interface EmailUnsubscribeGroupMemberListResponse extends PaginatedResponse {
2546
+ members: EmailUnsubscribeGroupMember[];
2547
+ }
2548
+ /**
2549
+ * Parameters for adding members to an unsubscribe group
2550
+ */
2551
+ interface EmailUnsubscribeGroupAddMembersParams {
2552
+ emails: string[];
2553
+ }
2554
+ /**
2555
+ * Response from adding members to an unsubscribe group
2556
+ */
2557
+ interface EmailUnsubscribeGroupAddMembersResponse {
2558
+ added: number;
2559
+ members: EmailUnsubscribeGroupMember[];
2560
+ }
2561
+ /**
2562
+ * Parameters for removing members from an unsubscribe group
2563
+ */
2564
+ interface EmailUnsubscribeGroupRemoveMembersParams {
2565
+ emails: string[];
2566
+ }
2567
+ /**
2568
+ * Response from removing members from an unsubscribe group
2569
+ */
2570
+ interface EmailUnsubscribeGroupRemoveMembersResponse {
2571
+ removed: number;
2572
+ }
2573
+
2574
+ /**
2575
+ * Status of a flow action run
2576
+ */
2577
+ type FlowActionRunStatus = 'pending' | 'running' | 'completed' | 'failed';
2578
+ /**
2579
+ * Flow extension action entity
2580
+ */
2581
+ interface FlowExtensionAction {
2582
+ id: string;
2583
+ name: string;
2584
+ description?: string;
2585
+ key: string;
2586
+ schema?: Record<string, unknown>;
2587
+ callbackUrl?: string;
2588
+ enabled: boolean;
2589
+ createdAt: string;
2590
+ updatedAt: string;
2591
+ }
2592
+ /**
2593
+ * Flow action run entity
2594
+ */
2595
+ interface FlowActionRun {
2596
+ id: string;
2597
+ actionId: string;
2598
+ status: FlowActionRunStatus;
2599
+ input?: Record<string, unknown>;
2600
+ output?: Record<string, unknown>;
2601
+ error?: string;
2602
+ startedAt?: string;
2603
+ completedAt?: string;
2604
+ createdAt: string;
2605
+ updatedAt: string;
2606
+ }
2607
+ /**
2608
+ * Parameters for listing flow extension actions
2609
+ */
2610
+ interface FlowExtensionActionListParams extends ListParams {
2611
+ enabled?: boolean;
2612
+ }
2613
+ /**
2614
+ * Response from listing flow extension actions
2615
+ */
2616
+ interface FlowExtensionActionListResponse extends PaginatedResponse {
2617
+ actions: FlowExtensionAction[];
2618
+ }
2619
+ /**
2620
+ * Parameters for creating a flow extension action
2621
+ */
2622
+ interface FlowExtensionActionCreateParams {
2623
+ name: string;
2624
+ description?: string;
2625
+ key: string;
2626
+ schema?: Record<string, unknown>;
2627
+ callbackUrl?: string;
2628
+ enabled?: boolean;
2629
+ }
2630
+ /**
2631
+ * Parameters for updating a flow extension action
2632
+ */
2633
+ interface FlowExtensionActionUpdateParams extends Partial<FlowExtensionActionCreateParams> {
2634
+ }
2635
+ /**
2636
+ * Parameters for updating a flow action run status
2637
+ */
2638
+ interface FlowActionRunUpdateParams {
2639
+ status: FlowActionRunStatus;
2640
+ output?: Record<string, unknown>;
2641
+ error?: string;
2642
+ }
2643
+
2644
+ /**
2645
+ * Status of an AI agent run
2646
+ */
2647
+ type AgentRunStatus = 'pending' | 'running' | 'completed' | 'error';
2648
+ /**
2649
+ * Token usage statistics for an AI agent run
2650
+ */
2651
+ interface AgentRunTokenUsage {
2652
+ promptTokens?: number;
2653
+ completionTokens?: number;
2654
+ totalTokens?: number;
2655
+ }
2656
+ /**
2657
+ * AI agent run entity
2658
+ */
2659
+ interface AgentRun {
2660
+ id: string;
2661
+ agentId: string;
2662
+ status: AgentRunStatus;
2663
+ response?: string;
2664
+ structuredResponse?: Record<string, unknown>;
2665
+ error?: string;
2666
+ tokenUsage?: AgentRunTokenUsage;
2667
+ createdAt: string;
2668
+ completedAt?: string;
2669
+ }
2670
+ /**
2671
+ * Parameters for creating an AI agent run
2672
+ */
2673
+ interface AgentRunCreateParams {
2674
+ /** Input data to pass to the agent */
2675
+ input?: Record<string, unknown>;
2676
+ /** Context or additional instructions for the agent */
2677
+ context?: string;
2678
+ /** Variables to substitute in the agent prompt */
2679
+ variables?: Record<string, string>;
2680
+ }
2681
+ /**
2682
+ * Response from creating an AI agent run (returns 202 Accepted)
2683
+ */
2684
+ interface AgentRunCreateResponse {
2685
+ run: AgentRun;
2686
+ }
2687
+ /**
2688
+ * Response from retrieving an AI agent run
2689
+ */
2690
+ interface AgentRunRetrieveResponse {
2691
+ run: AgentRun;
2692
+ }
2693
+
2400
2694
  /**
2401
2695
  * Resource for managing customers
2402
2696
  */
@@ -3576,6 +3870,16 @@ declare class DocsResource extends BaseResource {
3576
3870
  * Get the full documentation tree structure
3577
3871
  */
3578
3872
  getTree(): Promise<DocTreeResponse>;
3873
+ /**
3874
+ * List all doc repositories
3875
+ */
3876
+ listRepositories(params?: DocRepositoryListParams): Promise<DocRepositoryListResponse>;
3877
+ /**
3878
+ * Retrieve a single doc repository
3879
+ */
3880
+ retrieveRepository(repositoryId: string, params?: DocRepositoryRetrieveParams): Promise<{
3881
+ repository: DocRepository;
3882
+ }>;
3579
3883
  }
3580
3884
 
3581
3885
  /**
@@ -3704,6 +4008,141 @@ declare class ListsResource extends BaseResource {
3704
4008
  removeEntities(listId: string, data: ListRemoveEntitiesParams): Promise<ListRemoveEntitiesResponse>;
3705
4009
  }
3706
4010
 
4011
+ /**
4012
+ * Resource for managing journal entries
4013
+ */
4014
+ declare class JournalEntriesResource extends BaseResource {
4015
+ /**
4016
+ * List journal entries with optional filters and pagination
4017
+ */
4018
+ list(params?: JournalEntryListParams): Promise<JournalEntryListResponse>;
4019
+ /**
4020
+ * Retrieve a single journal entry by ID
4021
+ */
4022
+ retrieve(entryId: string): Promise<{
4023
+ journalEntry: JournalEntry;
4024
+ }>;
4025
+ /**
4026
+ * Create a new journal entry
4027
+ */
4028
+ create(data: JournalEntryCreateParams): Promise<{
4029
+ journalEntry: JournalEntry;
4030
+ }>;
4031
+ /**
4032
+ * Update an existing journal entry
4033
+ */
4034
+ update(entryId: string, data: JournalEntryUpdateParams): Promise<{
4035
+ journalEntry: JournalEntry;
4036
+ }>;
4037
+ /**
4038
+ * Delete a journal entry
4039
+ */
4040
+ del(entryId: string): Promise<DeleteResponse>;
4041
+ }
4042
+
4043
+ /**
4044
+ * Resource for managing email unsubscribe groups and their members
4045
+ */
4046
+ declare class EmailUnsubscribeGroupsResource extends BaseResource {
4047
+ /**
4048
+ * List all email unsubscribe groups
4049
+ */
4050
+ list(params?: EmailUnsubscribeGroupListParams): Promise<EmailUnsubscribeGroupListResponse>;
4051
+ /**
4052
+ * Retrieve a single unsubscribe group
4053
+ */
4054
+ retrieve(groupId: string): Promise<{
4055
+ unsubscribeGroup: EmailUnsubscribeGroup;
4056
+ }>;
4057
+ /**
4058
+ * List members of an unsubscribe group
4059
+ */
4060
+ listMembers(groupId: string, params?: EmailUnsubscribeGroupMemberListParams): Promise<EmailUnsubscribeGroupMemberListResponse>;
4061
+ /**
4062
+ * Add members to an unsubscribe group by email addresses
4063
+ */
4064
+ addMembers(groupId: string, data: EmailUnsubscribeGroupAddMembersParams): Promise<EmailUnsubscribeGroupAddMembersResponse>;
4065
+ /**
4066
+ * Remove members from an unsubscribe group by email addresses
4067
+ */
4068
+ removeMembers(groupId: string, data: EmailUnsubscribeGroupRemoveMembersParams): Promise<EmailUnsubscribeGroupRemoveMembersResponse>;
4069
+ /**
4070
+ * Remove a single member from an unsubscribe group by member ID
4071
+ */
4072
+ removeMember(groupId: string, memberId: string): Promise<DeleteResponse>;
4073
+ }
4074
+
4075
+ /**
4076
+ * Resource for managing flow extension actions and action runs
4077
+ */
4078
+ declare class FlowExtensionsResource extends BaseResource {
4079
+ /**
4080
+ * List flow extension actions
4081
+ */
4082
+ listActions(params?: FlowExtensionActionListParams): Promise<FlowExtensionActionListResponse>;
4083
+ /**
4084
+ * Retrieve a single flow extension action
4085
+ */
4086
+ retrieveAction(actionId: string): Promise<{
4087
+ action: FlowExtensionAction;
4088
+ }>;
4089
+ /**
4090
+ * Create a new flow extension action
4091
+ */
4092
+ createAction(data: FlowExtensionActionCreateParams): Promise<{
4093
+ action: FlowExtensionAction;
4094
+ }>;
4095
+ /**
4096
+ * Update an existing flow extension action
4097
+ */
4098
+ updateAction(actionId: string, data: FlowExtensionActionUpdateParams): Promise<{
4099
+ action: FlowExtensionAction;
4100
+ }>;
4101
+ /**
4102
+ * Delete a flow extension action
4103
+ */
4104
+ deleteAction(actionId: string): Promise<DeleteResponse>;
4105
+ /**
4106
+ * Update a flow action run status
4107
+ * Used to report completion or failure of async action execution
4108
+ */
4109
+ updateActionRun(runId: string, data: FlowActionRunUpdateParams): Promise<{
4110
+ run: FlowActionRun;
4111
+ }>;
4112
+ }
4113
+
4114
+ /**
4115
+ * Resource for managing AI agent runs
4116
+ */
4117
+ declare class AIAgentRunsResource extends BaseResource {
4118
+ /**
4119
+ * Create a new AI agent run
4120
+ * Returns 202 Accepted as the run executes asynchronously
4121
+ * Poll the retrieve endpoint to check for completion
4122
+ */
4123
+ create(agentId: string, data?: AgentRunCreateParams): Promise<AgentRunCreateResponse>;
4124
+ /**
4125
+ * Retrieve the status and results of an AI agent run
4126
+ * Use this to poll for completion after creating a run
4127
+ */
4128
+ retrieve(agentId: string, runId: string): Promise<AgentRunRetrieveResponse>;
4129
+ /**
4130
+ * Create a run and poll until completion
4131
+ * Convenience method that handles the async polling pattern
4132
+ *
4133
+ * @param agentId - The ID of the AI agent
4134
+ * @param data - Optional parameters for the run
4135
+ * @param options - Polling options
4136
+ * @returns The completed agent run
4137
+ */
4138
+ createAndWait(agentId: string, data?: AgentRunCreateParams, options?: {
4139
+ /** Maximum time to wait in milliseconds (default: 60000) */
4140
+ timeout?: number;
4141
+ /** Polling interval in milliseconds (default: 1000) */
4142
+ pollInterval?: number;
4143
+ }): Promise<AgentRun>;
4144
+ }
4145
+
3707
4146
  /**
3708
4147
  * Mantle Core API Client
3709
4148
  *
@@ -3761,6 +4200,10 @@ declare class MantleCoreClient {
3761
4200
  readonly customData: CustomDataResource;
3762
4201
  readonly timelineComments: TimelineCommentsResource;
3763
4202
  readonly lists: ListsResource;
4203
+ readonly journalEntries: JournalEntriesResource;
4204
+ readonly emailUnsubscribeGroups: EmailUnsubscribeGroupsResource;
4205
+ readonly flowExtensions: FlowExtensionsResource;
4206
+ readonly aiAgentRuns: AIAgentRunsResource;
3764
4207
  constructor(config: MantleCoreClientConfig);
3765
4208
  /**
3766
4209
  * Register a middleware function
@@ -4049,4 +4492,4 @@ interface RateLimitOptions {
4049
4492
  */
4050
4493
  declare function createRateLimitMiddleware(options?: RateLimitOptions): Middleware;
4051
4494
 
4052
- export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentCreateParams, type AgentListResponse, type AgentResponse, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerEntity, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocTreeNode, type DocTreeResponse, DocsResource, EntitiesResource, type EntitiesSearchParams, type EntitiesSearchResponse, type Entity, type EntityType, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowCreateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type HttpMethod, type List, type ListAddEntitiesParams, type ListAddEntitiesResponse, type ListCreateParams, type ListEntity, type ListListParams, type ListListResponse, type ListParams, type ListRemoveEntitiesParams, type ListRemoveEntitiesResponse, type ListRetrieveParams, type ListRetrieveResponse, type ListUpdateParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource, createAuthRefreshMiddleware, createRateLimitMiddleware };
4495
+ export { type AccountOwner, type AccountOwnersListResponse, type Affiliate, type AffiliateCommission, type AffiliateCommissionListParams, type AffiliateCommissionListResponse, AffiliateCommissionsResource, type AffiliateListParams, type AffiliateListResponse, type AffiliatePayout, type AffiliatePayoutListParams, type AffiliatePayoutListResponse, AffiliatePayoutsResource, type AffiliateProgram, type AffiliateProgramCreateParams, type AffiliateProgramUpdateParams, AffiliateProgramsResource, type AffiliateReferral, type AffiliateReferralListParams, type AffiliateReferralListResponse, AffiliateReferralsResource, type AffiliateUpdateParams, AffiliatesResource, type Agent, type AgentCreateParams, type AgentListResponse, type AgentResponse, type AgentRun, type AgentRunCreateParams, type AgentRunCreateResponse, type AgentRunRetrieveResponse, type AgentRunStatus, type AgentRunTokenUsage, AgentsResource, type App, type AppEvent, type AppEventListParams, type AppEventListResponse, type AppInstallation, type AppInstallationParams, type AppListParams, AppsResource, type AuthRefreshOptions, BaseResource, type Channel, type ChannelCreateParams, type ChannelListParams, ChannelsResource, type Charge, type ChargeListParams, type ChargeListResponse, ChargesResource, CompaniesResource, type Company, type CompanyCreateParams, type CompanyListParams, type CompanyListResponse, type CompanyUpdateParams, type Contact, type ContactCreateParams, type ContactCreateResponse, type ContactEntity, type ContactListParams, type ContactListResponse, type ContactUpdateParams, ContactsResource, type CustomDataDeleteParams, type CustomDataGetParams, CustomDataResource, type CustomDataResourceType, type CustomDataResponse, type CustomDataSetParams, type CustomField, type CustomFieldCreateParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerEntity, type CustomerListParams, type CustomerListResponse, type CustomerRetrieveParams, type CustomerSegment, type CustomerSegmentListParams, type CustomerSegmentListResponse, CustomerSegmentsResource, type CustomerUpdateParams, CustomersResource, type DateRangeType, type Deal, DealActivitiesResource, type DealActivity, type DealActivityCreateParams, type DealActivityUpdateParams, type DealContactInput, type DealCreateParams, type DealCustomerInput, type DealEvent, type DealEventCreateParams, type DealEventCreateResponse, type DealEventListResponse, type DealFlow, type DealFlowCreateParams, type DealFlowUpdateParams, DealFlowsResource, type DealListParams, type DealListResponse, type DealProgression, type DealStage, type DealUpdateParams, DealsResource, type DeleteResponse, type DocCollection, type DocCollectionCreateParams, type DocCollectionUpdateParams, type DocGroup, type DocGroupCreateParams, type DocGroupUpdateParams, type DocPage, type DocPageCreateParams, type DocPageListParams, type DocPageListResponse, type DocPageStatus, type DocPageUpdateParams, type DocRepository, type DocRepositoryCollection, type DocRepositoryListParams, type DocRepositoryListResponse, type DocRepositoryLocale, type DocRepositoryRetrieveParams, type DocTreeNode, type DocTreeResponse, DocsResource, type EmailUnsubscribeGroup, type EmailUnsubscribeGroupAddMembersParams, type EmailUnsubscribeGroupAddMembersResponse, type EmailUnsubscribeGroupListParams, type EmailUnsubscribeGroupListResponse, type EmailUnsubscribeGroupMember, type EmailUnsubscribeGroupMemberListParams, type EmailUnsubscribeGroupMemberListResponse, type EmailUnsubscribeGroupRemoveMembersParams, type EmailUnsubscribeGroupRemoveMembersResponse, EntitiesResource, type EntitiesSearchParams, type EntitiesSearchResponse, type Entity, type EntityType, type Feature, type FeatureCreateParams, type FeatureUpdateParams, type Flow, type FlowActionRun, type FlowActionRunStatus, type FlowActionRunUpdateParams, type FlowCreateParams, type FlowExtensionAction, type FlowExtensionActionCreateParams, type FlowExtensionActionListParams, type FlowExtensionActionListResponse, type FlowExtensionActionUpdateParams, type FlowListParams, type FlowListResponse, type FlowStatus, type FlowUpdateParams, FlowsResource, type HttpMethod, type JournalEntry, type JournalEntryCreateParams, type JournalEntryFile, type JournalEntryListParams, type JournalEntryListResponse, type JournalEntryUpdateParams, type List, type ListAddEntitiesParams, type ListAddEntitiesResponse, type ListCreateParams, type ListEntity, type ListListParams, type ListListResponse, type ListParams, type ListRemoveEntitiesParams, type ListRemoveEntitiesResponse, type ListRetrieveParams, type ListRetrieveResponse, type ListUpdateParams, MantleAPIError, MantleAuthenticationError, MantleCoreClient, type MantleCoreClientConfig, MantleNotFoundError, MantlePermissionError, MantleRateLimitError, MantleValidationError, MeResource, type MeResponse, type MessageAttachment, type MetricDataPoint, type MetricType, type MetricsBaseParams, type MetricsGetParams, MetricsResource, type MetricsResponse, type Middleware, type MiddlewareContext, MiddlewareManager, type MiddlewareOptions, type MiddlewareRequest, type MiddlewareResponse, type NextFunction, type Organization, OrganizationResource, type PaginatedResponse, type Plan, type PlanCreateParams, type PlanFeature, type PlanListParams, type PlanListResponse, type PlanUpdateParams, type PlanUsageCharge, type RateLimitOptions, type RequestOptions, type Review, type ReviewCreateParams, type ReviewUpdateParams, type SocialProfile, type SocialProfileType, type Subscription, type SubscriptionListParams, type SubscriptionListResponse, SubscriptionsResource, type Task, type TaskCreateParams, type TaskListParams, type TaskListResponse, type TaskPriority, type TaskStatus, type TaskUpdateParams, type TaskUpdateResponse, TasksResource, type Ticket, type TicketContactData, type TicketCreateParams, type TicketListParams, type TicketListResponse, type TicketMessage, type TicketMessageCreateParams, type TicketMessageUpdateParams, type TicketUpdateParams, TicketsResource, type TimelineComment, type TimelineCommentAttachment, type TimelineCommentAttachmentInput, type TimelineCommentCreateParams, type TimelineCommentCreateResponse, type TimelineCommentListParams, type TimelineCommentListResponse, type TimelineCommentTaggedUser, type TimelineCommentTaggedUserInput, type TimelineCommentUpdateParams, type TimelineCommentUpdateResponse, type TimelineCommentUser, type TimelineEvent, type TimelineListParams, type TimelineListResponse, type TodoItem, type TodoItemCreateParams, type TodoItemInput, type TodoItemListResponse, type TodoItemUpdateParams, type Transaction, type TransactionListParams, type TransactionListResponse, TransactionsResource, type UsageEvent, type UsageEventCreateData, type UsageEventCreateParams, type UsageEventCreateResponse, type UsageEventListParams, type UsageEventListResponse, type UsageEventMetricsParams, UsageEventsResource, type UsageMetric, type UsageMetricCreateParams, type UsageMetricParams, type UsageMetricUpdateParams, type User, type UserListParams, type UserListResponse, UsersResource, type Webhook, type WebhookCreateParams, type WebhookFilter, type WebhookListResponse, type WebhookTopic, type WebhookUpdateParams, WebhooksResource, createAuthRefreshMiddleware, createRateLimitMiddleware };