@mbanq/core-sdk-js 0.39.0 → 0.41.0

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
@@ -835,6 +835,8 @@ await client.request(UpdateCardID({
835
835
  |---|---|
836
836
  | `GetSubscribers` | Use this API to retrieve all the configured subscribers |
837
837
  | `GetSubscriber` | Retrieve detailed information about a specific subscriber by ID |
838
+ | `CreateSubscriber` | Use this API to add a new subscriber for a webhook, email, or client email. |
839
+ | `DeleteSubscriber` | Use this API to delete a subscriber by the provided subscriber ID. |
838
840
 
839
841
 
840
842
 
@@ -11041,14 +11041,14 @@ declare const DeactivatePrepaidCardResponseSchema: z.ZodObject<{
11041
11041
  type DeactivatePrepaidCardResponse = z.infer<typeof DeactivatePrepaidCardResponseSchema>;
11042
11042
 
11043
11043
  declare const SubscriberResponseSchema: z.ZodObject<{
11044
- id: z.ZodNumber;
11044
+ id: z.ZodOptional<z.ZodNumber>;
11045
11045
  name: z.ZodString;
11046
11046
  type: z.ZodEnum<["WEBHOOK", "EMAIL", "CLIENT_EMAIL", "PUSH_NOTIFICATION", "CORE_EVENT_PROCESSOR"]>;
11047
- target: z.ZodString;
11048
- deliveryRetryLimit: z.ZodNumber;
11049
- active: z.ZodBoolean;
11050
- secretKey: z.ZodString;
11051
- headers: z.ZodArray<z.ZodObject<{
11047
+ target: z.ZodOptional<z.ZodString>;
11048
+ deliveryRetryLimit: z.ZodOptional<z.ZodNumber>;
11049
+ active: z.ZodOptional<z.ZodBoolean>;
11050
+ secretKey: z.ZodOptional<z.ZodString>;
11051
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
11052
11052
  name: z.ZodString;
11053
11053
  value: z.ZodString;
11054
11054
  }, "strip", z.ZodTypeAny, {
@@ -11057,31 +11057,31 @@ declare const SubscriberResponseSchema: z.ZodObject<{
11057
11057
  }, {
11058
11058
  value: string;
11059
11059
  name: string;
11060
- }>, "many">;
11060
+ }>, "many">>;
11061
11061
  }, "strip", z.ZodTypeAny, {
11062
11062
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11063
11063
  name: string;
11064
- id: number;
11065
- active: boolean;
11066
- target: string;
11067
- deliveryRetryLimit: number;
11068
- secretKey: string;
11069
- headers: {
11064
+ id?: number | undefined;
11065
+ active?: boolean | undefined;
11066
+ target?: string | undefined;
11067
+ deliveryRetryLimit?: number | undefined;
11068
+ secretKey?: string | undefined;
11069
+ headers?: {
11070
11070
  value: string;
11071
11071
  name: string;
11072
- }[];
11072
+ }[] | undefined;
11073
11073
  }, {
11074
11074
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11075
11075
  name: string;
11076
- id: number;
11077
- active: boolean;
11078
- target: string;
11079
- deliveryRetryLimit: number;
11080
- secretKey: string;
11081
- headers: {
11076
+ id?: number | undefined;
11077
+ active?: boolean | undefined;
11078
+ target?: string | undefined;
11079
+ deliveryRetryLimit?: number | undefined;
11080
+ secretKey?: string | undefined;
11081
+ headers?: {
11082
11082
  value: string;
11083
11083
  name: string;
11084
- }[];
11084
+ }[] | undefined;
11085
11085
  }>;
11086
11086
  declare const SubscriberParamsSchema: z.ZodObject<{
11087
11087
  offset: z.ZodOptional<z.ZodNumber>;
@@ -11105,14 +11105,14 @@ declare const SubscriberParamsSchema: z.ZodObject<{
11105
11105
  declare const SubscriberListResponseSchema: z.ZodObject<{
11106
11106
  totalFilteredRecords: z.ZodNumber;
11107
11107
  pageItems: z.ZodArray<z.ZodObject<{
11108
- id: z.ZodNumber;
11108
+ id: z.ZodOptional<z.ZodNumber>;
11109
11109
  name: z.ZodString;
11110
11110
  type: z.ZodEnum<["WEBHOOK", "EMAIL", "CLIENT_EMAIL", "PUSH_NOTIFICATION", "CORE_EVENT_PROCESSOR"]>;
11111
- target: z.ZodString;
11112
- deliveryRetryLimit: z.ZodNumber;
11113
- active: z.ZodBoolean;
11114
- secretKey: z.ZodString;
11115
- headers: z.ZodArray<z.ZodObject<{
11111
+ target: z.ZodOptional<z.ZodString>;
11112
+ deliveryRetryLimit: z.ZodOptional<z.ZodNumber>;
11113
+ active: z.ZodOptional<z.ZodBoolean>;
11114
+ secretKey: z.ZodOptional<z.ZodString>;
11115
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
11116
11116
  name: z.ZodString;
11117
11117
  value: z.ZodString;
11118
11118
  }, "strip", z.ZodTypeAny, {
@@ -11121,66 +11121,78 @@ declare const SubscriberListResponseSchema: z.ZodObject<{
11121
11121
  }, {
11122
11122
  value: string;
11123
11123
  name: string;
11124
- }>, "many">;
11124
+ }>, "many">>;
11125
11125
  }, "strip", z.ZodTypeAny, {
11126
11126
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11127
11127
  name: string;
11128
- id: number;
11129
- active: boolean;
11130
- target: string;
11131
- deliveryRetryLimit: number;
11132
- secretKey: string;
11133
- headers: {
11128
+ id?: number | undefined;
11129
+ active?: boolean | undefined;
11130
+ target?: string | undefined;
11131
+ deliveryRetryLimit?: number | undefined;
11132
+ secretKey?: string | undefined;
11133
+ headers?: {
11134
11134
  value: string;
11135
11135
  name: string;
11136
- }[];
11136
+ }[] | undefined;
11137
11137
  }, {
11138
11138
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11139
11139
  name: string;
11140
- id: number;
11141
- active: boolean;
11142
- target: string;
11143
- deliveryRetryLimit: number;
11144
- secretKey: string;
11145
- headers: {
11140
+ id?: number | undefined;
11141
+ active?: boolean | undefined;
11142
+ target?: string | undefined;
11143
+ deliveryRetryLimit?: number | undefined;
11144
+ secretKey?: string | undefined;
11145
+ headers?: {
11146
11146
  value: string;
11147
11147
  name: string;
11148
- }[];
11148
+ }[] | undefined;
11149
11149
  }>, "many">;
11150
11150
  }, "strip", z.ZodTypeAny, {
11151
11151
  totalFilteredRecords: number;
11152
11152
  pageItems: {
11153
11153
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11154
11154
  name: string;
11155
- id: number;
11156
- active: boolean;
11157
- target: string;
11158
- deliveryRetryLimit: number;
11159
- secretKey: string;
11160
- headers: {
11155
+ id?: number | undefined;
11156
+ active?: boolean | undefined;
11157
+ target?: string | undefined;
11158
+ deliveryRetryLimit?: number | undefined;
11159
+ secretKey?: string | undefined;
11160
+ headers?: {
11161
11161
  value: string;
11162
11162
  name: string;
11163
- }[];
11163
+ }[] | undefined;
11164
11164
  }[];
11165
11165
  }, {
11166
11166
  totalFilteredRecords: number;
11167
11167
  pageItems: {
11168
11168
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11169
11169
  name: string;
11170
- id: number;
11171
- active: boolean;
11172
- target: string;
11173
- deliveryRetryLimit: number;
11174
- secretKey: string;
11175
- headers: {
11170
+ id?: number | undefined;
11171
+ active?: boolean | undefined;
11172
+ target?: string | undefined;
11173
+ deliveryRetryLimit?: number | undefined;
11174
+ secretKey?: string | undefined;
11175
+ headers?: {
11176
11176
  value: string;
11177
11177
  name: string;
11178
- }[];
11178
+ }[] | undefined;
11179
11179
  }[];
11180
11180
  }>;
11181
+ declare const SubscriberActionResponseSchema: z.ZodObject<{
11182
+ id: z.ZodString;
11183
+ resourceId: z.ZodNumber;
11184
+ }, "strip", z.ZodTypeAny, {
11185
+ id: string;
11186
+ resourceId: number;
11187
+ }, {
11188
+ id: string;
11189
+ resourceId: number;
11190
+ }>;
11181
11191
  type SubscriberResponse = z.infer<typeof SubscriberResponseSchema>;
11192
+ type SubscriberRequest = Omit<SubscriberResponse, 'id'>;
11182
11193
  type SubscriberParams = z.infer<typeof SubscriberParamsSchema>;
11183
11194
  type SubscriberListResponse = z.infer<typeof SubscriberListResponseSchema>;
11195
+ type SubscriberActionResponse = z.infer<typeof SubscriberActionResponseSchema>;
11184
11196
 
11185
11197
  declare const CreateLoanRequestSchema: z.ZodObject<{
11186
11198
  clientId: z.ZodNumber;
@@ -25790,6 +25802,46 @@ declare const GetSubscriber: (subscriberId: string) => Command<{
25790
25802
  declare const GetSubscribers: (params: SubscriberParams) => Command<{
25791
25803
  params: SubscriberParams;
25792
25804
  }, SubscriberListResponse>;
25805
+ /**
25806
+ * Creates a new subscriber.
25807
+ *
25808
+ * @param subscriberData - The subscriber data to create
25809
+ * @returns A Command that when executed returns the created subscriber's id and resourceId
25810
+ *
25811
+ * @example
25812
+ * ```typescript
25813
+ * const createCmd = CreateSubscriber({
25814
+ * name: 'Webhook Subscriber',
25815
+ * type: 'WEBHOOK',
25816
+ * target: 'https://example.com/webhook',
25817
+ * deliveryRetryLimit: 3,
25818
+ * active: true,
25819
+ * secretKey: 'secret123',
25820
+ * headers: []
25821
+ * });
25822
+ * const result = await createCmd.execute(config);
25823
+ * console.log(result.id, result.resourceId);
25824
+ * ```
25825
+ */
25826
+ declare const CreateSubscriber: (subscriberData: SubscriberRequest) => Command<{
25827
+ subscriberData: SubscriberRequest;
25828
+ }, SubscriberActionResponse>;
25829
+ /**
25830
+ * Deletes a subscriber.
25831
+ *
25832
+ * @param subscriberId - The ID of the subscriber to delete
25833
+ * @returns A Command that when executed returns the deleted subscriber's id and resourceId
25834
+ *
25835
+ * @example
25836
+ * ```typescript
25837
+ * const deleteCmd = DeleteSubscriber('subscriber-123');
25838
+ * const result = await deleteCmd.execute(config);
25839
+ * console.log(result.id, result.resourceId);
25840
+ * ```
25841
+ */
25842
+ declare const DeleteSubscriber: (subscriberId: string) => Command<{
25843
+ subscriberId: string;
25844
+ }, SubscriberActionResponse>;
25793
25845
 
25794
25846
  /**
25795
25847
  * Creates a new loan application with specified loan amount, term, interest rate, and repayment frequency.
@@ -26513,4 +26565,4 @@ declare const PayAccountCharge: (accountId: number, chargeId: number, params: Pa
26513
26565
  params: PayAccountChargeRequest;
26514
26566
  }, PayAccountChargeResponse>;
26515
26567
 
26516
- export { ActivateCard, ActivatePhysicalCard, AddAcquiredCard, AddCardToMobileWallet, AddChargeToAccount, AddChargeToLoanAccount, ApproveLoan, ApproveRejectClientDocument, BlockAccount, BlockAcquiredCardAddition, CalculateLoanSchedule, ChangeCardType, CloseAccount, CreateAccountProduct, CreateAndActivateAccount, CreateCard, CreateCardProduct, CreateClient, CreateClientAddress, CreateClientIdentifier, CreateCreditAccountAutoPayExternal, CreateCreditAccountAutoPayInternal, CreateCreditAccountPayment, CreateFixedDepositAccount, CreateLoan, CreatePayment, CreatePrepaidCard, CreateRecipient, CreateTransfer, CustomCreate, CustomGet, CustomUpdate, DeactivatePrepaidCard, DeleteAccount, DeleteAcquiredCard, DeleteClient, DeleteClientDocument, DeleteFixedDepositAccount, DeletePayment, DeleteRecipient, DeleteSelfServiceUser, DisburseLoan, DisburseLoanToLinkedAccount, DownloadAccountStatement, DownloadCreditAccountBilledStatement, EnableDisableConfiguration, EnableSelfServiceAccess, GenerateAccountStatement, GetAccount, GetAccountDocumentsDetails, GetAccountProductById, GetAccountsOfClient, GetAcquiredCardById, GetAcquiredCardPublicKey, GetAcquiredCards, GetAllAccountProducts, GetBankDetailsFromRoutingCode, GetCardAuthorizationById, GetCardAuthorizations, GetCardById, GetCardImageUrl, GetCardProduct, GetCardSettlementById, GetCardSettlements, GetCards, GetChargesByAccountId, GetChargesByLoanAccountId, GetClient, GetClientAddress, GetClientClassification, GetClients, GetCompletedTransactions, GetConfigurationByName, GetConfigurations, GetCreditAccountBilledStatements, GetCreditAccountCompletedTransactions, GetCreditAccountDetails, GetCreditAccountPendingTransactions, GetCreditAccountTransactionById, GetFixedDepositAccount, GetLoanById, GetLoanPreclosureTemplate, GetLoanSearchTemplate, GetLoanTransactionDetails, GetLoanWriteoffTemplate, GetPayment, GetPayments, GetPendingTransactions, GetPermittedDocumentTypes, GetPrepaidCardById, GetPrepaidCardsByAccountId, GetRecentTransactions, GetRecipient, GetRecipients, GetSearchData, GetStatusOfVerifyClient, GetSubscriber, GetSubscribers, GetTransactionById, GetTransfer, GetTransfers, GetUserDetail, GraphQL, HoldAmount, ListCardProduct, ListClientDocument, MakeRepayment, OrderPhysicalCard, PayAccountCharge, PreCloseLoan, RenewCard, ReplaceCard, ScheduleAccountClosure, SetClientAddressStatus, SetPIN, SuspendCard, SwitchClientClassification, TerminateCard, UnblockAcquiredCardAddition, UndoChargeToAccount, UpdateAccount, UpdateAccountProduct, UpdateCardFeature, UpdateCardLimit, UpdateCardProduct, UpdateClient, UpdateClientAddress, UpdateClientIdentifier, UpdateFixedDepositAccount, UpdatePayment, UpdateRecipientGQL as UpdateRecipient, UpdateSelfServiceUser, UploadClientIdentifierDocument, VerifyWithActivateClients, WaiveChargeFromAccount, WriteLoanOff };
26568
+ export { ActivateCard, ActivatePhysicalCard, AddAcquiredCard, AddCardToMobileWallet, AddChargeToAccount, AddChargeToLoanAccount, ApproveLoan, ApproveRejectClientDocument, BlockAccount, BlockAcquiredCardAddition, CalculateLoanSchedule, ChangeCardType, CloseAccount, CreateAccountProduct, CreateAndActivateAccount, CreateCard, CreateCardProduct, CreateClient, CreateClientAddress, CreateClientIdentifier, CreateCreditAccountAutoPayExternal, CreateCreditAccountAutoPayInternal, CreateCreditAccountPayment, CreateFixedDepositAccount, CreateLoan, CreatePayment, CreatePrepaidCard, CreateRecipient, CreateSubscriber, CreateTransfer, CustomCreate, CustomGet, CustomUpdate, DeactivatePrepaidCard, DeleteAccount, DeleteAcquiredCard, DeleteClient, DeleteClientDocument, DeleteFixedDepositAccount, DeletePayment, DeleteRecipient, DeleteSelfServiceUser, DeleteSubscriber, DisburseLoan, DisburseLoanToLinkedAccount, DownloadAccountStatement, DownloadCreditAccountBilledStatement, EnableDisableConfiguration, EnableSelfServiceAccess, GenerateAccountStatement, GetAccount, GetAccountDocumentsDetails, GetAccountProductById, GetAccountsOfClient, GetAcquiredCardById, GetAcquiredCardPublicKey, GetAcquiredCards, GetAllAccountProducts, GetBankDetailsFromRoutingCode, GetCardAuthorizationById, GetCardAuthorizations, GetCardById, GetCardImageUrl, GetCardProduct, GetCardSettlementById, GetCardSettlements, GetCards, GetChargesByAccountId, GetChargesByLoanAccountId, GetClient, GetClientAddress, GetClientClassification, GetClients, GetCompletedTransactions, GetConfigurationByName, GetConfigurations, GetCreditAccountBilledStatements, GetCreditAccountCompletedTransactions, GetCreditAccountDetails, GetCreditAccountPendingTransactions, GetCreditAccountTransactionById, GetFixedDepositAccount, GetLoanById, GetLoanPreclosureTemplate, GetLoanSearchTemplate, GetLoanTransactionDetails, GetLoanWriteoffTemplate, GetPayment, GetPayments, GetPendingTransactions, GetPermittedDocumentTypes, GetPrepaidCardById, GetPrepaidCardsByAccountId, GetRecentTransactions, GetRecipient, GetRecipients, GetSearchData, GetStatusOfVerifyClient, GetSubscriber, GetSubscribers, GetTransactionById, GetTransfer, GetTransfers, GetUserDetail, GraphQL, HoldAmount, ListCardProduct, ListClientDocument, MakeRepayment, OrderPhysicalCard, PayAccountCharge, PreCloseLoan, RenewCard, ReplaceCard, ScheduleAccountClosure, SetClientAddressStatus, SetPIN, SuspendCard, SwitchClientClassification, TerminateCard, UnblockAcquiredCardAddition, UndoChargeToAccount, UpdateAccount, UpdateAccountProduct, UpdateCardFeature, UpdateCardLimit, UpdateCardProduct, UpdateClient, UpdateClientAddress, UpdateClientIdentifier, UpdateFixedDepositAccount, UpdatePayment, UpdateRecipientGQL as UpdateRecipient, UpdateSelfServiceUser, UploadClientIdentifierDocument, VerifyWithActivateClients, WaiveChargeFromAccount, WriteLoanOff };
@@ -11041,14 +11041,14 @@ declare const DeactivatePrepaidCardResponseSchema: z.ZodObject<{
11041
11041
  type DeactivatePrepaidCardResponse = z.infer<typeof DeactivatePrepaidCardResponseSchema>;
11042
11042
 
11043
11043
  declare const SubscriberResponseSchema: z.ZodObject<{
11044
- id: z.ZodNumber;
11044
+ id: z.ZodOptional<z.ZodNumber>;
11045
11045
  name: z.ZodString;
11046
11046
  type: z.ZodEnum<["WEBHOOK", "EMAIL", "CLIENT_EMAIL", "PUSH_NOTIFICATION", "CORE_EVENT_PROCESSOR"]>;
11047
- target: z.ZodString;
11048
- deliveryRetryLimit: z.ZodNumber;
11049
- active: z.ZodBoolean;
11050
- secretKey: z.ZodString;
11051
- headers: z.ZodArray<z.ZodObject<{
11047
+ target: z.ZodOptional<z.ZodString>;
11048
+ deliveryRetryLimit: z.ZodOptional<z.ZodNumber>;
11049
+ active: z.ZodOptional<z.ZodBoolean>;
11050
+ secretKey: z.ZodOptional<z.ZodString>;
11051
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
11052
11052
  name: z.ZodString;
11053
11053
  value: z.ZodString;
11054
11054
  }, "strip", z.ZodTypeAny, {
@@ -11057,31 +11057,31 @@ declare const SubscriberResponseSchema: z.ZodObject<{
11057
11057
  }, {
11058
11058
  value: string;
11059
11059
  name: string;
11060
- }>, "many">;
11060
+ }>, "many">>;
11061
11061
  }, "strip", z.ZodTypeAny, {
11062
11062
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11063
11063
  name: string;
11064
- id: number;
11065
- active: boolean;
11066
- target: string;
11067
- deliveryRetryLimit: number;
11068
- secretKey: string;
11069
- headers: {
11064
+ id?: number | undefined;
11065
+ active?: boolean | undefined;
11066
+ target?: string | undefined;
11067
+ deliveryRetryLimit?: number | undefined;
11068
+ secretKey?: string | undefined;
11069
+ headers?: {
11070
11070
  value: string;
11071
11071
  name: string;
11072
- }[];
11072
+ }[] | undefined;
11073
11073
  }, {
11074
11074
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11075
11075
  name: string;
11076
- id: number;
11077
- active: boolean;
11078
- target: string;
11079
- deliveryRetryLimit: number;
11080
- secretKey: string;
11081
- headers: {
11076
+ id?: number | undefined;
11077
+ active?: boolean | undefined;
11078
+ target?: string | undefined;
11079
+ deliveryRetryLimit?: number | undefined;
11080
+ secretKey?: string | undefined;
11081
+ headers?: {
11082
11082
  value: string;
11083
11083
  name: string;
11084
- }[];
11084
+ }[] | undefined;
11085
11085
  }>;
11086
11086
  declare const SubscriberParamsSchema: z.ZodObject<{
11087
11087
  offset: z.ZodOptional<z.ZodNumber>;
@@ -11105,14 +11105,14 @@ declare const SubscriberParamsSchema: z.ZodObject<{
11105
11105
  declare const SubscriberListResponseSchema: z.ZodObject<{
11106
11106
  totalFilteredRecords: z.ZodNumber;
11107
11107
  pageItems: z.ZodArray<z.ZodObject<{
11108
- id: z.ZodNumber;
11108
+ id: z.ZodOptional<z.ZodNumber>;
11109
11109
  name: z.ZodString;
11110
11110
  type: z.ZodEnum<["WEBHOOK", "EMAIL", "CLIENT_EMAIL", "PUSH_NOTIFICATION", "CORE_EVENT_PROCESSOR"]>;
11111
- target: z.ZodString;
11112
- deliveryRetryLimit: z.ZodNumber;
11113
- active: z.ZodBoolean;
11114
- secretKey: z.ZodString;
11115
- headers: z.ZodArray<z.ZodObject<{
11111
+ target: z.ZodOptional<z.ZodString>;
11112
+ deliveryRetryLimit: z.ZodOptional<z.ZodNumber>;
11113
+ active: z.ZodOptional<z.ZodBoolean>;
11114
+ secretKey: z.ZodOptional<z.ZodString>;
11115
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
11116
11116
  name: z.ZodString;
11117
11117
  value: z.ZodString;
11118
11118
  }, "strip", z.ZodTypeAny, {
@@ -11121,66 +11121,78 @@ declare const SubscriberListResponseSchema: z.ZodObject<{
11121
11121
  }, {
11122
11122
  value: string;
11123
11123
  name: string;
11124
- }>, "many">;
11124
+ }>, "many">>;
11125
11125
  }, "strip", z.ZodTypeAny, {
11126
11126
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11127
11127
  name: string;
11128
- id: number;
11129
- active: boolean;
11130
- target: string;
11131
- deliveryRetryLimit: number;
11132
- secretKey: string;
11133
- headers: {
11128
+ id?: number | undefined;
11129
+ active?: boolean | undefined;
11130
+ target?: string | undefined;
11131
+ deliveryRetryLimit?: number | undefined;
11132
+ secretKey?: string | undefined;
11133
+ headers?: {
11134
11134
  value: string;
11135
11135
  name: string;
11136
- }[];
11136
+ }[] | undefined;
11137
11137
  }, {
11138
11138
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11139
11139
  name: string;
11140
- id: number;
11141
- active: boolean;
11142
- target: string;
11143
- deliveryRetryLimit: number;
11144
- secretKey: string;
11145
- headers: {
11140
+ id?: number | undefined;
11141
+ active?: boolean | undefined;
11142
+ target?: string | undefined;
11143
+ deliveryRetryLimit?: number | undefined;
11144
+ secretKey?: string | undefined;
11145
+ headers?: {
11146
11146
  value: string;
11147
11147
  name: string;
11148
- }[];
11148
+ }[] | undefined;
11149
11149
  }>, "many">;
11150
11150
  }, "strip", z.ZodTypeAny, {
11151
11151
  totalFilteredRecords: number;
11152
11152
  pageItems: {
11153
11153
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11154
11154
  name: string;
11155
- id: number;
11156
- active: boolean;
11157
- target: string;
11158
- deliveryRetryLimit: number;
11159
- secretKey: string;
11160
- headers: {
11155
+ id?: number | undefined;
11156
+ active?: boolean | undefined;
11157
+ target?: string | undefined;
11158
+ deliveryRetryLimit?: number | undefined;
11159
+ secretKey?: string | undefined;
11160
+ headers?: {
11161
11161
  value: string;
11162
11162
  name: string;
11163
- }[];
11163
+ }[] | undefined;
11164
11164
  }[];
11165
11165
  }, {
11166
11166
  totalFilteredRecords: number;
11167
11167
  pageItems: {
11168
11168
  type: "WEBHOOK" | "EMAIL" | "CLIENT_EMAIL" | "PUSH_NOTIFICATION" | "CORE_EVENT_PROCESSOR";
11169
11169
  name: string;
11170
- id: number;
11171
- active: boolean;
11172
- target: string;
11173
- deliveryRetryLimit: number;
11174
- secretKey: string;
11175
- headers: {
11170
+ id?: number | undefined;
11171
+ active?: boolean | undefined;
11172
+ target?: string | undefined;
11173
+ deliveryRetryLimit?: number | undefined;
11174
+ secretKey?: string | undefined;
11175
+ headers?: {
11176
11176
  value: string;
11177
11177
  name: string;
11178
- }[];
11178
+ }[] | undefined;
11179
11179
  }[];
11180
11180
  }>;
11181
+ declare const SubscriberActionResponseSchema: z.ZodObject<{
11182
+ id: z.ZodString;
11183
+ resourceId: z.ZodNumber;
11184
+ }, "strip", z.ZodTypeAny, {
11185
+ id: string;
11186
+ resourceId: number;
11187
+ }, {
11188
+ id: string;
11189
+ resourceId: number;
11190
+ }>;
11181
11191
  type SubscriberResponse = z.infer<typeof SubscriberResponseSchema>;
11192
+ type SubscriberRequest = Omit<SubscriberResponse, 'id'>;
11182
11193
  type SubscriberParams = z.infer<typeof SubscriberParamsSchema>;
11183
11194
  type SubscriberListResponse = z.infer<typeof SubscriberListResponseSchema>;
11195
+ type SubscriberActionResponse = z.infer<typeof SubscriberActionResponseSchema>;
11184
11196
 
11185
11197
  declare const CreateLoanRequestSchema: z.ZodObject<{
11186
11198
  clientId: z.ZodNumber;
@@ -25790,6 +25802,46 @@ declare const GetSubscriber: (subscriberId: string) => Command<{
25790
25802
  declare const GetSubscribers: (params: SubscriberParams) => Command<{
25791
25803
  params: SubscriberParams;
25792
25804
  }, SubscriberListResponse>;
25805
+ /**
25806
+ * Creates a new subscriber.
25807
+ *
25808
+ * @param subscriberData - The subscriber data to create
25809
+ * @returns A Command that when executed returns the created subscriber's id and resourceId
25810
+ *
25811
+ * @example
25812
+ * ```typescript
25813
+ * const createCmd = CreateSubscriber({
25814
+ * name: 'Webhook Subscriber',
25815
+ * type: 'WEBHOOK',
25816
+ * target: 'https://example.com/webhook',
25817
+ * deliveryRetryLimit: 3,
25818
+ * active: true,
25819
+ * secretKey: 'secret123',
25820
+ * headers: []
25821
+ * });
25822
+ * const result = await createCmd.execute(config);
25823
+ * console.log(result.id, result.resourceId);
25824
+ * ```
25825
+ */
25826
+ declare const CreateSubscriber: (subscriberData: SubscriberRequest) => Command<{
25827
+ subscriberData: SubscriberRequest;
25828
+ }, SubscriberActionResponse>;
25829
+ /**
25830
+ * Deletes a subscriber.
25831
+ *
25832
+ * @param subscriberId - The ID of the subscriber to delete
25833
+ * @returns A Command that when executed returns the deleted subscriber's id and resourceId
25834
+ *
25835
+ * @example
25836
+ * ```typescript
25837
+ * const deleteCmd = DeleteSubscriber('subscriber-123');
25838
+ * const result = await deleteCmd.execute(config);
25839
+ * console.log(result.id, result.resourceId);
25840
+ * ```
25841
+ */
25842
+ declare const DeleteSubscriber: (subscriberId: string) => Command<{
25843
+ subscriberId: string;
25844
+ }, SubscriberActionResponse>;
25793
25845
 
25794
25846
  /**
25795
25847
  * Creates a new loan application with specified loan amount, term, interest rate, and repayment frequency.
@@ -26513,4 +26565,4 @@ declare const PayAccountCharge: (accountId: number, chargeId: number, params: Pa
26513
26565
  params: PayAccountChargeRequest;
26514
26566
  }, PayAccountChargeResponse>;
26515
26567
 
26516
- export { ActivateCard, ActivatePhysicalCard, AddAcquiredCard, AddCardToMobileWallet, AddChargeToAccount, AddChargeToLoanAccount, ApproveLoan, ApproveRejectClientDocument, BlockAccount, BlockAcquiredCardAddition, CalculateLoanSchedule, ChangeCardType, CloseAccount, CreateAccountProduct, CreateAndActivateAccount, CreateCard, CreateCardProduct, CreateClient, CreateClientAddress, CreateClientIdentifier, CreateCreditAccountAutoPayExternal, CreateCreditAccountAutoPayInternal, CreateCreditAccountPayment, CreateFixedDepositAccount, CreateLoan, CreatePayment, CreatePrepaidCard, CreateRecipient, CreateTransfer, CustomCreate, CustomGet, CustomUpdate, DeactivatePrepaidCard, DeleteAccount, DeleteAcquiredCard, DeleteClient, DeleteClientDocument, DeleteFixedDepositAccount, DeletePayment, DeleteRecipient, DeleteSelfServiceUser, DisburseLoan, DisburseLoanToLinkedAccount, DownloadAccountStatement, DownloadCreditAccountBilledStatement, EnableDisableConfiguration, EnableSelfServiceAccess, GenerateAccountStatement, GetAccount, GetAccountDocumentsDetails, GetAccountProductById, GetAccountsOfClient, GetAcquiredCardById, GetAcquiredCardPublicKey, GetAcquiredCards, GetAllAccountProducts, GetBankDetailsFromRoutingCode, GetCardAuthorizationById, GetCardAuthorizations, GetCardById, GetCardImageUrl, GetCardProduct, GetCardSettlementById, GetCardSettlements, GetCards, GetChargesByAccountId, GetChargesByLoanAccountId, GetClient, GetClientAddress, GetClientClassification, GetClients, GetCompletedTransactions, GetConfigurationByName, GetConfigurations, GetCreditAccountBilledStatements, GetCreditAccountCompletedTransactions, GetCreditAccountDetails, GetCreditAccountPendingTransactions, GetCreditAccountTransactionById, GetFixedDepositAccount, GetLoanById, GetLoanPreclosureTemplate, GetLoanSearchTemplate, GetLoanTransactionDetails, GetLoanWriteoffTemplate, GetPayment, GetPayments, GetPendingTransactions, GetPermittedDocumentTypes, GetPrepaidCardById, GetPrepaidCardsByAccountId, GetRecentTransactions, GetRecipient, GetRecipients, GetSearchData, GetStatusOfVerifyClient, GetSubscriber, GetSubscribers, GetTransactionById, GetTransfer, GetTransfers, GetUserDetail, GraphQL, HoldAmount, ListCardProduct, ListClientDocument, MakeRepayment, OrderPhysicalCard, PayAccountCharge, PreCloseLoan, RenewCard, ReplaceCard, ScheduleAccountClosure, SetClientAddressStatus, SetPIN, SuspendCard, SwitchClientClassification, TerminateCard, UnblockAcquiredCardAddition, UndoChargeToAccount, UpdateAccount, UpdateAccountProduct, UpdateCardFeature, UpdateCardLimit, UpdateCardProduct, UpdateClient, UpdateClientAddress, UpdateClientIdentifier, UpdateFixedDepositAccount, UpdatePayment, UpdateRecipientGQL as UpdateRecipient, UpdateSelfServiceUser, UploadClientIdentifierDocument, VerifyWithActivateClients, WaiveChargeFromAccount, WriteLoanOff };
26568
+ export { ActivateCard, ActivatePhysicalCard, AddAcquiredCard, AddCardToMobileWallet, AddChargeToAccount, AddChargeToLoanAccount, ApproveLoan, ApproveRejectClientDocument, BlockAccount, BlockAcquiredCardAddition, CalculateLoanSchedule, ChangeCardType, CloseAccount, CreateAccountProduct, CreateAndActivateAccount, CreateCard, CreateCardProduct, CreateClient, CreateClientAddress, CreateClientIdentifier, CreateCreditAccountAutoPayExternal, CreateCreditAccountAutoPayInternal, CreateCreditAccountPayment, CreateFixedDepositAccount, CreateLoan, CreatePayment, CreatePrepaidCard, CreateRecipient, CreateSubscriber, CreateTransfer, CustomCreate, CustomGet, CustomUpdate, DeactivatePrepaidCard, DeleteAccount, DeleteAcquiredCard, DeleteClient, DeleteClientDocument, DeleteFixedDepositAccount, DeletePayment, DeleteRecipient, DeleteSelfServiceUser, DeleteSubscriber, DisburseLoan, DisburseLoanToLinkedAccount, DownloadAccountStatement, DownloadCreditAccountBilledStatement, EnableDisableConfiguration, EnableSelfServiceAccess, GenerateAccountStatement, GetAccount, GetAccountDocumentsDetails, GetAccountProductById, GetAccountsOfClient, GetAcquiredCardById, GetAcquiredCardPublicKey, GetAcquiredCards, GetAllAccountProducts, GetBankDetailsFromRoutingCode, GetCardAuthorizationById, GetCardAuthorizations, GetCardById, GetCardImageUrl, GetCardProduct, GetCardSettlementById, GetCardSettlements, GetCards, GetChargesByAccountId, GetChargesByLoanAccountId, GetClient, GetClientAddress, GetClientClassification, GetClients, GetCompletedTransactions, GetConfigurationByName, GetConfigurations, GetCreditAccountBilledStatements, GetCreditAccountCompletedTransactions, GetCreditAccountDetails, GetCreditAccountPendingTransactions, GetCreditAccountTransactionById, GetFixedDepositAccount, GetLoanById, GetLoanPreclosureTemplate, GetLoanSearchTemplate, GetLoanTransactionDetails, GetLoanWriteoffTemplate, GetPayment, GetPayments, GetPendingTransactions, GetPermittedDocumentTypes, GetPrepaidCardById, GetPrepaidCardsByAccountId, GetRecentTransactions, GetRecipient, GetRecipients, GetSearchData, GetStatusOfVerifyClient, GetSubscriber, GetSubscribers, GetTransactionById, GetTransfer, GetTransfers, GetUserDetail, GraphQL, HoldAmount, ListCardProduct, ListClientDocument, MakeRepayment, OrderPhysicalCard, PayAccountCharge, PreCloseLoan, RenewCard, ReplaceCard, ScheduleAccountClosure, SetClientAddressStatus, SetPIN, SuspendCard, SwitchClientClassification, TerminateCard, UnblockAcquiredCardAddition, UndoChargeToAccount, UpdateAccount, UpdateAccountProduct, UpdateCardFeature, UpdateCardLimit, UpdateCardProduct, UpdateClient, UpdateClientAddress, UpdateClientIdentifier, UpdateFixedDepositAccount, UpdatePayment, UpdateRecipientGQL as UpdateRecipient, UpdateSelfServiceUser, UploadClientIdentifierDocument, VerifyWithActivateClients, WaiveChargeFromAccount, WriteLoanOff };