@fonderie/client 0.23.0 → 0.25.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/brain/signatures.md +139 -0
- package/dist/index.cjs +210 -107
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +134 -1
- package/dist/index.d.ts +134 -1
- package/dist/index.js +209 -107
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -401,6 +401,107 @@ interface ITemplateRevision {
|
|
|
401
401
|
actor: string | null;
|
|
402
402
|
createdAt: string;
|
|
403
403
|
}
|
|
404
|
+
interface IAdminReadinessProblem {
|
|
405
|
+
module: string;
|
|
406
|
+
severity: 'error' | 'warning';
|
|
407
|
+
message: string;
|
|
408
|
+
}
|
|
409
|
+
interface IAdminReadiness {
|
|
410
|
+
ok: boolean;
|
|
411
|
+
problems: IAdminReadinessProblem[];
|
|
412
|
+
}
|
|
413
|
+
interface IAdminModuleEntry {
|
|
414
|
+
name: string;
|
|
415
|
+
version: string | null;
|
|
416
|
+
readiness: IAdminReadiness;
|
|
417
|
+
describesAdmin: boolean;
|
|
418
|
+
}
|
|
419
|
+
interface IAdminRouteEntry {
|
|
420
|
+
method: string;
|
|
421
|
+
path: string;
|
|
422
|
+
module?: string;
|
|
423
|
+
}
|
|
424
|
+
interface IAdminManifest {
|
|
425
|
+
generatedAt: string;
|
|
426
|
+
env: string;
|
|
427
|
+
admin: {
|
|
428
|
+
version: string;
|
|
429
|
+
log: boolean;
|
|
430
|
+
};
|
|
431
|
+
modules: IAdminModuleEntry[];
|
|
432
|
+
readiness: IAdminReadiness;
|
|
433
|
+
routes: IAdminRouteEntry[];
|
|
434
|
+
}
|
|
435
|
+
interface IAdminCheckResult {
|
|
436
|
+
name: string;
|
|
437
|
+
module: string;
|
|
438
|
+
ok: boolean;
|
|
439
|
+
findings: string[];
|
|
440
|
+
skipped?: string;
|
|
441
|
+
durationMs: number;
|
|
442
|
+
}
|
|
443
|
+
interface IAdminDoctorReport {
|
|
444
|
+
generatedAt: string;
|
|
445
|
+
ok: boolean;
|
|
446
|
+
checks: IAdminCheckResult[];
|
|
447
|
+
}
|
|
448
|
+
interface IAdminAttentionItem {
|
|
449
|
+
source: string;
|
|
450
|
+
severity: 'error' | 'advice';
|
|
451
|
+
message: string;
|
|
452
|
+
}
|
|
453
|
+
interface IAdminAttention {
|
|
454
|
+
generatedAt: string;
|
|
455
|
+
ok: boolean;
|
|
456
|
+
items: IAdminAttentionItem[];
|
|
457
|
+
}
|
|
458
|
+
interface IAdminConfigReport {
|
|
459
|
+
generatedAt: string;
|
|
460
|
+
readiness: IAdminReadiness;
|
|
461
|
+
modules: Array<{
|
|
462
|
+
name: string;
|
|
463
|
+
problems: IAdminReadinessProblem[];
|
|
464
|
+
}>;
|
|
465
|
+
env: Array<{
|
|
466
|
+
name: string;
|
|
467
|
+
set: boolean;
|
|
468
|
+
}>;
|
|
469
|
+
}
|
|
470
|
+
type AdminRouteGuard = 'admin' | 'probe' | 'app';
|
|
471
|
+
interface IAdminRoutesReport {
|
|
472
|
+
generatedAt: string;
|
|
473
|
+
routes: Array<IAdminRouteEntry & {
|
|
474
|
+
guard: AdminRouteGuard;
|
|
475
|
+
}>;
|
|
476
|
+
}
|
|
477
|
+
interface IAdminTokensReport {
|
|
478
|
+
generatedAt: string;
|
|
479
|
+
admin: {
|
|
480
|
+
ok: boolean;
|
|
481
|
+
problems: IAdminReadinessProblem[];
|
|
482
|
+
};
|
|
483
|
+
legacy: Array<{
|
|
484
|
+
module: string;
|
|
485
|
+
set: boolean;
|
|
486
|
+
}>;
|
|
487
|
+
}
|
|
488
|
+
interface IAdminLogEntry {
|
|
489
|
+
id: string;
|
|
490
|
+
at: string;
|
|
491
|
+
actor: string;
|
|
492
|
+
method: string;
|
|
493
|
+
path: string;
|
|
494
|
+
route: string;
|
|
495
|
+
module: string;
|
|
496
|
+
status: number;
|
|
497
|
+
durationMs: number;
|
|
498
|
+
requestId: string | null;
|
|
499
|
+
clientIp: string | null;
|
|
500
|
+
}
|
|
501
|
+
interface IAdminLogPage {
|
|
502
|
+
entries: IAdminLogEntry[];
|
|
503
|
+
next: string | null;
|
|
504
|
+
}
|
|
404
505
|
interface IConfigEntry {
|
|
405
506
|
key: string;
|
|
406
507
|
value: unknown;
|
|
@@ -1159,13 +1260,16 @@ interface IRollbackInput {
|
|
|
1159
1260
|
interface IConfigAdminClientOptions {
|
|
1160
1261
|
baseUrl: string;
|
|
1161
1262
|
adminToken: string;
|
|
1263
|
+
prefix?: string;
|
|
1162
1264
|
actor?: string;
|
|
1163
1265
|
}
|
|
1164
1266
|
declare class ConfigAdminClient {
|
|
1165
1267
|
private http;
|
|
1166
1268
|
private adminToken;
|
|
1269
|
+
private prefix;
|
|
1167
1270
|
private actorHeaders;
|
|
1168
1271
|
constructor(opts: IConfigAdminClientOptions);
|
|
1272
|
+
private rebase;
|
|
1169
1273
|
listConfig(environment?: string): Promise<IApiResponse<IConfigEntry[]>>;
|
|
1170
1274
|
getConfig(key: string, environment?: string): Promise<IApiResponse<IConfigEntry>>;
|
|
1171
1275
|
setConfig(key: string, input: ISetConfigInput, environment?: string): Promise<IApiResponse<IConfigEntry>>;
|
|
@@ -1181,6 +1285,32 @@ declare class ConfigAdminClient {
|
|
|
1181
1285
|
revealSecret(key: string, environment?: string): Promise<IApiResponse<IRevealSecretResult>>;
|
|
1182
1286
|
}
|
|
1183
1287
|
|
|
1288
|
+
interface IAdminClientOptions {
|
|
1289
|
+
baseUrl: string;
|
|
1290
|
+
adminToken: string;
|
|
1291
|
+
prefix?: string;
|
|
1292
|
+
actor?: string;
|
|
1293
|
+
}
|
|
1294
|
+
interface IAdminLogQuery {
|
|
1295
|
+
limit?: number;
|
|
1296
|
+
before?: string;
|
|
1297
|
+
}
|
|
1298
|
+
declare class AdminClient {
|
|
1299
|
+
private http;
|
|
1300
|
+
private adminToken;
|
|
1301
|
+
private prefix;
|
|
1302
|
+
private actorHeaders;
|
|
1303
|
+
constructor(opts: IAdminClientOptions);
|
|
1304
|
+
private get;
|
|
1305
|
+
attention(): Promise<IApiResponse<IAdminAttention>>;
|
|
1306
|
+
manifest(): Promise<IApiResponse<IAdminManifest>>;
|
|
1307
|
+
doctor(): Promise<IApiResponse<IAdminDoctorReport>>;
|
|
1308
|
+
config(): Promise<IApiResponse<IAdminConfigReport>>;
|
|
1309
|
+
routes(): Promise<IApiResponse<IAdminRoutesReport>>;
|
|
1310
|
+
tokens(): Promise<IApiResponse<IAdminTokensReport>>;
|
|
1311
|
+
adminLog(query?: IAdminLogQuery): Promise<IApiResponse<IAdminLogPage>>;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1184
1314
|
interface ISetTemplateInput {
|
|
1185
1315
|
text: string;
|
|
1186
1316
|
subject?: string;
|
|
@@ -1194,13 +1324,16 @@ interface IRollbackTemplateInput {
|
|
|
1194
1324
|
interface ICourierAdminClientOptions {
|
|
1195
1325
|
baseUrl: string;
|
|
1196
1326
|
adminToken: string;
|
|
1327
|
+
prefix?: string;
|
|
1197
1328
|
actor?: string;
|
|
1198
1329
|
}
|
|
1199
1330
|
declare class CourierAdminClient {
|
|
1200
1331
|
private http;
|
|
1201
1332
|
private adminToken;
|
|
1333
|
+
private prefix;
|
|
1202
1334
|
private actorHeaders;
|
|
1203
1335
|
constructor(opts: ICourierAdminClientOptions);
|
|
1336
|
+
private rebase;
|
|
1204
1337
|
listTemplates(): Promise<IApiResponse<ITemplateEntry[]>>;
|
|
1205
1338
|
getTemplate(type: string, locale?: string | null): Promise<IApiResponse<ITemplateEntry>>;
|
|
1206
1339
|
setTemplate(type: string, input: ISetTemplateInput, locale?: string | null): Promise<IApiResponse<ITemplateEntry>>;
|
|
@@ -1209,4 +1342,4 @@ declare class CourierAdminClient {
|
|
|
1209
1342
|
rollback(type: string, input: IRollbackTemplateInput, locale?: string | null): Promise<IApiResponse<ITemplateEntry>>;
|
|
1210
1343
|
}
|
|
1211
1344
|
|
|
1212
|
-
export { AuditClient, AuthClient, BillingClient, ConfigAdminClient, CourierAdminClient, type CustomerLabelType, type CustomerSex, type CustomerType, CustomersClient, FonderieApiError, FonderieClient, type IAcceptInvitationResult, type IAddAddressInput, type IAddEmailInput, type IAddPhoneInput, type IAddRelationshipInput, type IAddressDTO, type IApiError, type IApiResponse, type IAppleNativeInput, type IAuditEventDTO, type IAuditPageResult, type IBlacklistCustomerInput, type ICache, type ICancelSubscriptionInput, type IChangePasswordInput, type ICheckoutInput, type ICheckoutUrlResult, type IClientAuthConfig, type IConfigAdminClientOptions, type IConfigEntry, type IConfigRevision, type ICourierAdminClientOptions, type ICreateCustomerInput, type ICreatePlanInput, type ICreateRoleInput, type ICreateWebhookEndpointInput, type ICreateWorkspaceInput, type ICustomerAddressDTO, type ICustomerAddressListResult, type ICustomerAddressResult, type ICustomerDTO, type ICustomerDetailD2DTO, type ICustomerDetailDTO, type ICustomerEmailDTO, type ICustomerEmailListResult, type ICustomerEmailResult, type ICustomerLabelDTO, type ICustomerLabelListResult, type ICustomerListResult, type ICustomerNoteDTO, type ICustomerNoteListResult, type ICustomerNoteResult, type ICustomerPhoneDTO, type ICustomerPhoneListResult, type ICustomerPhoneResult, type ICustomerRelationshipDTO, type ICustomerRelationshipExpandedD2DTO, type ICustomerRelationshipExpandedDTO, type ICustomerRelationshipListResult, type ICustomerRelationshipResult, type ICustomerResult, type ICustomerShallowDTO, type ICustomerTagListResult, type IFonderieClientOptions, type IGetCustomerInput, type IGetLoginHistoryInput, type IInvitationDTO, type IInvitationListResult, type IInviteEntry, type IInviteResult, type IInvoiceDTO, type IInvoicesResult, type IListAuditEventsInput, type IListCustomersInput, type ILoginEventDTO, type ILoginHistoryPageResult, type ILoginInput, type ILoginResult, type IMeResult, type IMediaAssetDTO, type IMediaAssetResult, type IMemberDTO, type IMemberListResult, type IMemoryCacheOptions, type IMfaEnabledResult, type IMfaRequiredResult, type IMfaSetupResult, type IPaymentMethodDTO, type IPaymentMethodResult, type IPlanDTO, type IPlanFeature, type IPlanListResult, type IPlanResult, type IPortalUrlResult, type IReadOptions, type IRecordUsageInput, type IRefreshResult, type IRegisterInput, type IRegisterResult, type IRequestConfig, type IResendVerificationResult, type IResetPasswordInput, type IRevealSecretResult, type IRoleDTO, type IRoleListResult, type IRolePermission, type IRolePermissionInput, type IRolePermissionsResult, type IRoleResult, type IRollbackInput, type IRollbackTemplateInput, type ISecretEntry, type ISecretRevision, type ISessionDTO, type ISessionsResult, type ISetConfigInput, type ISetSecretInput, type ISetTemplateInput, type ISubscriptionChangeResult, type ISubscriptionDTO, type ISubscriptionResult, type ITemplateEntry, type ITemplateRevision, type ITestWebhookResult, type ITokens, type IUpdateCustomerInput, type IUpdatePlanInput, type IUpdatePreferencesInput, type IUpdateProfileInput, type IUpdateRoleInput, type IUpdateSettingsInput, type IUpdateWebhookEndpointInput, type IUpdateWorkspaceInput, type IUploadMediaInput, type IUsageResult, type IUserDTO, type IUserPreferences, type IVerifyEmailResult, type IWalletCheckoutInput, type IWalletDTO, type IWalletPreferencesInput, type IWalletPurchaseInput, type IWalletPurchaseResult, type IWalletResult, type IWalletTransactionDTO, type IWalletTransactionsResult, type IWebhookDeliveryDTO, type IWebhookDeliveryListResult, type IWebhookEndpointCreatedDTO, type IWebhookEndpointDTO, type IWebhookEndpointListResult, type IWorkspaceAddressDTO, type IWorkspaceDTO, type IWorkspaceListResult, type IWorkspaceResult, type IWorkspaceSettingsDTO, type IWorkspaceSettingsResult, MediaClient, type SubscriberType, WebhooksClient, WorkspacesClient, createMemoryCache, isMfaRequired };
|
|
1345
|
+
export { AdminClient, type AdminRouteGuard, AuditClient, AuthClient, BillingClient, ConfigAdminClient, CourierAdminClient, type CustomerLabelType, type CustomerSex, type CustomerType, CustomersClient, FonderieApiError, FonderieClient, type IAcceptInvitationResult, type IAddAddressInput, type IAddEmailInput, type IAddPhoneInput, type IAddRelationshipInput, type IAddressDTO, type IAdminAttention, type IAdminAttentionItem, type IAdminCheckResult, type IAdminClientOptions, type IAdminConfigReport, type IAdminDoctorReport, type IAdminLogEntry, type IAdminLogPage, type IAdminLogQuery, type IAdminManifest, type IAdminModuleEntry, type IAdminReadiness, type IAdminReadinessProblem, type IAdminRouteEntry, type IAdminRoutesReport, type IAdminTokensReport, type IApiError, type IApiResponse, type IAppleNativeInput, type IAuditEventDTO, type IAuditPageResult, type IBlacklistCustomerInput, type ICache, type ICancelSubscriptionInput, type IChangePasswordInput, type ICheckoutInput, type ICheckoutUrlResult, type IClientAuthConfig, type IConfigAdminClientOptions, type IConfigEntry, type IConfigRevision, type ICourierAdminClientOptions, type ICreateCustomerInput, type ICreatePlanInput, type ICreateRoleInput, type ICreateWebhookEndpointInput, type ICreateWorkspaceInput, type ICustomerAddressDTO, type ICustomerAddressListResult, type ICustomerAddressResult, type ICustomerDTO, type ICustomerDetailD2DTO, type ICustomerDetailDTO, type ICustomerEmailDTO, type ICustomerEmailListResult, type ICustomerEmailResult, type ICustomerLabelDTO, type ICustomerLabelListResult, type ICustomerListResult, type ICustomerNoteDTO, type ICustomerNoteListResult, type ICustomerNoteResult, type ICustomerPhoneDTO, type ICustomerPhoneListResult, type ICustomerPhoneResult, type ICustomerRelationshipDTO, type ICustomerRelationshipExpandedD2DTO, type ICustomerRelationshipExpandedDTO, type ICustomerRelationshipListResult, type ICustomerRelationshipResult, type ICustomerResult, type ICustomerShallowDTO, type ICustomerTagListResult, type IFonderieClientOptions, type IGetCustomerInput, type IGetLoginHistoryInput, type IInvitationDTO, type IInvitationListResult, type IInviteEntry, type IInviteResult, type IInvoiceDTO, type IInvoicesResult, type IListAuditEventsInput, type IListCustomersInput, type ILoginEventDTO, type ILoginHistoryPageResult, type ILoginInput, type ILoginResult, type IMeResult, type IMediaAssetDTO, type IMediaAssetResult, type IMemberDTO, type IMemberListResult, type IMemoryCacheOptions, type IMfaEnabledResult, type IMfaRequiredResult, type IMfaSetupResult, type IPaymentMethodDTO, type IPaymentMethodResult, type IPlanDTO, type IPlanFeature, type IPlanListResult, type IPlanResult, type IPortalUrlResult, type IReadOptions, type IRecordUsageInput, type IRefreshResult, type IRegisterInput, type IRegisterResult, type IRequestConfig, type IResendVerificationResult, type IResetPasswordInput, type IRevealSecretResult, type IRoleDTO, type IRoleListResult, type IRolePermission, type IRolePermissionInput, type IRolePermissionsResult, type IRoleResult, type IRollbackInput, type IRollbackTemplateInput, type ISecretEntry, type ISecretRevision, type ISessionDTO, type ISessionsResult, type ISetConfigInput, type ISetSecretInput, type ISetTemplateInput, type ISubscriptionChangeResult, type ISubscriptionDTO, type ISubscriptionResult, type ITemplateEntry, type ITemplateRevision, type ITestWebhookResult, type ITokens, type IUpdateCustomerInput, type IUpdatePlanInput, type IUpdatePreferencesInput, type IUpdateProfileInput, type IUpdateRoleInput, type IUpdateSettingsInput, type IUpdateWebhookEndpointInput, type IUpdateWorkspaceInput, type IUploadMediaInput, type IUsageResult, type IUserDTO, type IUserPreferences, type IVerifyEmailResult, type IWalletCheckoutInput, type IWalletDTO, type IWalletPreferencesInput, type IWalletPurchaseInput, type IWalletPurchaseResult, type IWalletResult, type IWalletTransactionDTO, type IWalletTransactionsResult, type IWebhookDeliveryDTO, type IWebhookDeliveryListResult, type IWebhookEndpointCreatedDTO, type IWebhookEndpointDTO, type IWebhookEndpointListResult, type IWorkspaceAddressDTO, type IWorkspaceDTO, type IWorkspaceListResult, type IWorkspaceResult, type IWorkspaceSettingsDTO, type IWorkspaceSettingsResult, MediaClient, type SubscriberType, WebhooksClient, WorkspacesClient, createMemoryCache, isMfaRequired };
|
package/dist/index.d.ts
CHANGED
|
@@ -401,6 +401,107 @@ interface ITemplateRevision {
|
|
|
401
401
|
actor: string | null;
|
|
402
402
|
createdAt: string;
|
|
403
403
|
}
|
|
404
|
+
interface IAdminReadinessProblem {
|
|
405
|
+
module: string;
|
|
406
|
+
severity: 'error' | 'warning';
|
|
407
|
+
message: string;
|
|
408
|
+
}
|
|
409
|
+
interface IAdminReadiness {
|
|
410
|
+
ok: boolean;
|
|
411
|
+
problems: IAdminReadinessProblem[];
|
|
412
|
+
}
|
|
413
|
+
interface IAdminModuleEntry {
|
|
414
|
+
name: string;
|
|
415
|
+
version: string | null;
|
|
416
|
+
readiness: IAdminReadiness;
|
|
417
|
+
describesAdmin: boolean;
|
|
418
|
+
}
|
|
419
|
+
interface IAdminRouteEntry {
|
|
420
|
+
method: string;
|
|
421
|
+
path: string;
|
|
422
|
+
module?: string;
|
|
423
|
+
}
|
|
424
|
+
interface IAdminManifest {
|
|
425
|
+
generatedAt: string;
|
|
426
|
+
env: string;
|
|
427
|
+
admin: {
|
|
428
|
+
version: string;
|
|
429
|
+
log: boolean;
|
|
430
|
+
};
|
|
431
|
+
modules: IAdminModuleEntry[];
|
|
432
|
+
readiness: IAdminReadiness;
|
|
433
|
+
routes: IAdminRouteEntry[];
|
|
434
|
+
}
|
|
435
|
+
interface IAdminCheckResult {
|
|
436
|
+
name: string;
|
|
437
|
+
module: string;
|
|
438
|
+
ok: boolean;
|
|
439
|
+
findings: string[];
|
|
440
|
+
skipped?: string;
|
|
441
|
+
durationMs: number;
|
|
442
|
+
}
|
|
443
|
+
interface IAdminDoctorReport {
|
|
444
|
+
generatedAt: string;
|
|
445
|
+
ok: boolean;
|
|
446
|
+
checks: IAdminCheckResult[];
|
|
447
|
+
}
|
|
448
|
+
interface IAdminAttentionItem {
|
|
449
|
+
source: string;
|
|
450
|
+
severity: 'error' | 'advice';
|
|
451
|
+
message: string;
|
|
452
|
+
}
|
|
453
|
+
interface IAdminAttention {
|
|
454
|
+
generatedAt: string;
|
|
455
|
+
ok: boolean;
|
|
456
|
+
items: IAdminAttentionItem[];
|
|
457
|
+
}
|
|
458
|
+
interface IAdminConfigReport {
|
|
459
|
+
generatedAt: string;
|
|
460
|
+
readiness: IAdminReadiness;
|
|
461
|
+
modules: Array<{
|
|
462
|
+
name: string;
|
|
463
|
+
problems: IAdminReadinessProblem[];
|
|
464
|
+
}>;
|
|
465
|
+
env: Array<{
|
|
466
|
+
name: string;
|
|
467
|
+
set: boolean;
|
|
468
|
+
}>;
|
|
469
|
+
}
|
|
470
|
+
type AdminRouteGuard = 'admin' | 'probe' | 'app';
|
|
471
|
+
interface IAdminRoutesReport {
|
|
472
|
+
generatedAt: string;
|
|
473
|
+
routes: Array<IAdminRouteEntry & {
|
|
474
|
+
guard: AdminRouteGuard;
|
|
475
|
+
}>;
|
|
476
|
+
}
|
|
477
|
+
interface IAdminTokensReport {
|
|
478
|
+
generatedAt: string;
|
|
479
|
+
admin: {
|
|
480
|
+
ok: boolean;
|
|
481
|
+
problems: IAdminReadinessProblem[];
|
|
482
|
+
};
|
|
483
|
+
legacy: Array<{
|
|
484
|
+
module: string;
|
|
485
|
+
set: boolean;
|
|
486
|
+
}>;
|
|
487
|
+
}
|
|
488
|
+
interface IAdminLogEntry {
|
|
489
|
+
id: string;
|
|
490
|
+
at: string;
|
|
491
|
+
actor: string;
|
|
492
|
+
method: string;
|
|
493
|
+
path: string;
|
|
494
|
+
route: string;
|
|
495
|
+
module: string;
|
|
496
|
+
status: number;
|
|
497
|
+
durationMs: number;
|
|
498
|
+
requestId: string | null;
|
|
499
|
+
clientIp: string | null;
|
|
500
|
+
}
|
|
501
|
+
interface IAdminLogPage {
|
|
502
|
+
entries: IAdminLogEntry[];
|
|
503
|
+
next: string | null;
|
|
504
|
+
}
|
|
404
505
|
interface IConfigEntry {
|
|
405
506
|
key: string;
|
|
406
507
|
value: unknown;
|
|
@@ -1159,13 +1260,16 @@ interface IRollbackInput {
|
|
|
1159
1260
|
interface IConfigAdminClientOptions {
|
|
1160
1261
|
baseUrl: string;
|
|
1161
1262
|
adminToken: string;
|
|
1263
|
+
prefix?: string;
|
|
1162
1264
|
actor?: string;
|
|
1163
1265
|
}
|
|
1164
1266
|
declare class ConfigAdminClient {
|
|
1165
1267
|
private http;
|
|
1166
1268
|
private adminToken;
|
|
1269
|
+
private prefix;
|
|
1167
1270
|
private actorHeaders;
|
|
1168
1271
|
constructor(opts: IConfigAdminClientOptions);
|
|
1272
|
+
private rebase;
|
|
1169
1273
|
listConfig(environment?: string): Promise<IApiResponse<IConfigEntry[]>>;
|
|
1170
1274
|
getConfig(key: string, environment?: string): Promise<IApiResponse<IConfigEntry>>;
|
|
1171
1275
|
setConfig(key: string, input: ISetConfigInput, environment?: string): Promise<IApiResponse<IConfigEntry>>;
|
|
@@ -1181,6 +1285,32 @@ declare class ConfigAdminClient {
|
|
|
1181
1285
|
revealSecret(key: string, environment?: string): Promise<IApiResponse<IRevealSecretResult>>;
|
|
1182
1286
|
}
|
|
1183
1287
|
|
|
1288
|
+
interface IAdminClientOptions {
|
|
1289
|
+
baseUrl: string;
|
|
1290
|
+
adminToken: string;
|
|
1291
|
+
prefix?: string;
|
|
1292
|
+
actor?: string;
|
|
1293
|
+
}
|
|
1294
|
+
interface IAdminLogQuery {
|
|
1295
|
+
limit?: number;
|
|
1296
|
+
before?: string;
|
|
1297
|
+
}
|
|
1298
|
+
declare class AdminClient {
|
|
1299
|
+
private http;
|
|
1300
|
+
private adminToken;
|
|
1301
|
+
private prefix;
|
|
1302
|
+
private actorHeaders;
|
|
1303
|
+
constructor(opts: IAdminClientOptions);
|
|
1304
|
+
private get;
|
|
1305
|
+
attention(): Promise<IApiResponse<IAdminAttention>>;
|
|
1306
|
+
manifest(): Promise<IApiResponse<IAdminManifest>>;
|
|
1307
|
+
doctor(): Promise<IApiResponse<IAdminDoctorReport>>;
|
|
1308
|
+
config(): Promise<IApiResponse<IAdminConfigReport>>;
|
|
1309
|
+
routes(): Promise<IApiResponse<IAdminRoutesReport>>;
|
|
1310
|
+
tokens(): Promise<IApiResponse<IAdminTokensReport>>;
|
|
1311
|
+
adminLog(query?: IAdminLogQuery): Promise<IApiResponse<IAdminLogPage>>;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1184
1314
|
interface ISetTemplateInput {
|
|
1185
1315
|
text: string;
|
|
1186
1316
|
subject?: string;
|
|
@@ -1194,13 +1324,16 @@ interface IRollbackTemplateInput {
|
|
|
1194
1324
|
interface ICourierAdminClientOptions {
|
|
1195
1325
|
baseUrl: string;
|
|
1196
1326
|
adminToken: string;
|
|
1327
|
+
prefix?: string;
|
|
1197
1328
|
actor?: string;
|
|
1198
1329
|
}
|
|
1199
1330
|
declare class CourierAdminClient {
|
|
1200
1331
|
private http;
|
|
1201
1332
|
private adminToken;
|
|
1333
|
+
private prefix;
|
|
1202
1334
|
private actorHeaders;
|
|
1203
1335
|
constructor(opts: ICourierAdminClientOptions);
|
|
1336
|
+
private rebase;
|
|
1204
1337
|
listTemplates(): Promise<IApiResponse<ITemplateEntry[]>>;
|
|
1205
1338
|
getTemplate(type: string, locale?: string | null): Promise<IApiResponse<ITemplateEntry>>;
|
|
1206
1339
|
setTemplate(type: string, input: ISetTemplateInput, locale?: string | null): Promise<IApiResponse<ITemplateEntry>>;
|
|
@@ -1209,4 +1342,4 @@ declare class CourierAdminClient {
|
|
|
1209
1342
|
rollback(type: string, input: IRollbackTemplateInput, locale?: string | null): Promise<IApiResponse<ITemplateEntry>>;
|
|
1210
1343
|
}
|
|
1211
1344
|
|
|
1212
|
-
export { AuditClient, AuthClient, BillingClient, ConfigAdminClient, CourierAdminClient, type CustomerLabelType, type CustomerSex, type CustomerType, CustomersClient, FonderieApiError, FonderieClient, type IAcceptInvitationResult, type IAddAddressInput, type IAddEmailInput, type IAddPhoneInput, type IAddRelationshipInput, type IAddressDTO, type IApiError, type IApiResponse, type IAppleNativeInput, type IAuditEventDTO, type IAuditPageResult, type IBlacklistCustomerInput, type ICache, type ICancelSubscriptionInput, type IChangePasswordInput, type ICheckoutInput, type ICheckoutUrlResult, type IClientAuthConfig, type IConfigAdminClientOptions, type IConfigEntry, type IConfigRevision, type ICourierAdminClientOptions, type ICreateCustomerInput, type ICreatePlanInput, type ICreateRoleInput, type ICreateWebhookEndpointInput, type ICreateWorkspaceInput, type ICustomerAddressDTO, type ICustomerAddressListResult, type ICustomerAddressResult, type ICustomerDTO, type ICustomerDetailD2DTO, type ICustomerDetailDTO, type ICustomerEmailDTO, type ICustomerEmailListResult, type ICustomerEmailResult, type ICustomerLabelDTO, type ICustomerLabelListResult, type ICustomerListResult, type ICustomerNoteDTO, type ICustomerNoteListResult, type ICustomerNoteResult, type ICustomerPhoneDTO, type ICustomerPhoneListResult, type ICustomerPhoneResult, type ICustomerRelationshipDTO, type ICustomerRelationshipExpandedD2DTO, type ICustomerRelationshipExpandedDTO, type ICustomerRelationshipListResult, type ICustomerRelationshipResult, type ICustomerResult, type ICustomerShallowDTO, type ICustomerTagListResult, type IFonderieClientOptions, type IGetCustomerInput, type IGetLoginHistoryInput, type IInvitationDTO, type IInvitationListResult, type IInviteEntry, type IInviteResult, type IInvoiceDTO, type IInvoicesResult, type IListAuditEventsInput, type IListCustomersInput, type ILoginEventDTO, type ILoginHistoryPageResult, type ILoginInput, type ILoginResult, type IMeResult, type IMediaAssetDTO, type IMediaAssetResult, type IMemberDTO, type IMemberListResult, type IMemoryCacheOptions, type IMfaEnabledResult, type IMfaRequiredResult, type IMfaSetupResult, type IPaymentMethodDTO, type IPaymentMethodResult, type IPlanDTO, type IPlanFeature, type IPlanListResult, type IPlanResult, type IPortalUrlResult, type IReadOptions, type IRecordUsageInput, type IRefreshResult, type IRegisterInput, type IRegisterResult, type IRequestConfig, type IResendVerificationResult, type IResetPasswordInput, type IRevealSecretResult, type IRoleDTO, type IRoleListResult, type IRolePermission, type IRolePermissionInput, type IRolePermissionsResult, type IRoleResult, type IRollbackInput, type IRollbackTemplateInput, type ISecretEntry, type ISecretRevision, type ISessionDTO, type ISessionsResult, type ISetConfigInput, type ISetSecretInput, type ISetTemplateInput, type ISubscriptionChangeResult, type ISubscriptionDTO, type ISubscriptionResult, type ITemplateEntry, type ITemplateRevision, type ITestWebhookResult, type ITokens, type IUpdateCustomerInput, type IUpdatePlanInput, type IUpdatePreferencesInput, type IUpdateProfileInput, type IUpdateRoleInput, type IUpdateSettingsInput, type IUpdateWebhookEndpointInput, type IUpdateWorkspaceInput, type IUploadMediaInput, type IUsageResult, type IUserDTO, type IUserPreferences, type IVerifyEmailResult, type IWalletCheckoutInput, type IWalletDTO, type IWalletPreferencesInput, type IWalletPurchaseInput, type IWalletPurchaseResult, type IWalletResult, type IWalletTransactionDTO, type IWalletTransactionsResult, type IWebhookDeliveryDTO, type IWebhookDeliveryListResult, type IWebhookEndpointCreatedDTO, type IWebhookEndpointDTO, type IWebhookEndpointListResult, type IWorkspaceAddressDTO, type IWorkspaceDTO, type IWorkspaceListResult, type IWorkspaceResult, type IWorkspaceSettingsDTO, type IWorkspaceSettingsResult, MediaClient, type SubscriberType, WebhooksClient, WorkspacesClient, createMemoryCache, isMfaRequired };
|
|
1345
|
+
export { AdminClient, type AdminRouteGuard, AuditClient, AuthClient, BillingClient, ConfigAdminClient, CourierAdminClient, type CustomerLabelType, type CustomerSex, type CustomerType, CustomersClient, FonderieApiError, FonderieClient, type IAcceptInvitationResult, type IAddAddressInput, type IAddEmailInput, type IAddPhoneInput, type IAddRelationshipInput, type IAddressDTO, type IAdminAttention, type IAdminAttentionItem, type IAdminCheckResult, type IAdminClientOptions, type IAdminConfigReport, type IAdminDoctorReport, type IAdminLogEntry, type IAdminLogPage, type IAdminLogQuery, type IAdminManifest, type IAdminModuleEntry, type IAdminReadiness, type IAdminReadinessProblem, type IAdminRouteEntry, type IAdminRoutesReport, type IAdminTokensReport, type IApiError, type IApiResponse, type IAppleNativeInput, type IAuditEventDTO, type IAuditPageResult, type IBlacklistCustomerInput, type ICache, type ICancelSubscriptionInput, type IChangePasswordInput, type ICheckoutInput, type ICheckoutUrlResult, type IClientAuthConfig, type IConfigAdminClientOptions, type IConfigEntry, type IConfigRevision, type ICourierAdminClientOptions, type ICreateCustomerInput, type ICreatePlanInput, type ICreateRoleInput, type ICreateWebhookEndpointInput, type ICreateWorkspaceInput, type ICustomerAddressDTO, type ICustomerAddressListResult, type ICustomerAddressResult, type ICustomerDTO, type ICustomerDetailD2DTO, type ICustomerDetailDTO, type ICustomerEmailDTO, type ICustomerEmailListResult, type ICustomerEmailResult, type ICustomerLabelDTO, type ICustomerLabelListResult, type ICustomerListResult, type ICustomerNoteDTO, type ICustomerNoteListResult, type ICustomerNoteResult, type ICustomerPhoneDTO, type ICustomerPhoneListResult, type ICustomerPhoneResult, type ICustomerRelationshipDTO, type ICustomerRelationshipExpandedD2DTO, type ICustomerRelationshipExpandedDTO, type ICustomerRelationshipListResult, type ICustomerRelationshipResult, type ICustomerResult, type ICustomerShallowDTO, type ICustomerTagListResult, type IFonderieClientOptions, type IGetCustomerInput, type IGetLoginHistoryInput, type IInvitationDTO, type IInvitationListResult, type IInviteEntry, type IInviteResult, type IInvoiceDTO, type IInvoicesResult, type IListAuditEventsInput, type IListCustomersInput, type ILoginEventDTO, type ILoginHistoryPageResult, type ILoginInput, type ILoginResult, type IMeResult, type IMediaAssetDTO, type IMediaAssetResult, type IMemberDTO, type IMemberListResult, type IMemoryCacheOptions, type IMfaEnabledResult, type IMfaRequiredResult, type IMfaSetupResult, type IPaymentMethodDTO, type IPaymentMethodResult, type IPlanDTO, type IPlanFeature, type IPlanListResult, type IPlanResult, type IPortalUrlResult, type IReadOptions, type IRecordUsageInput, type IRefreshResult, type IRegisterInput, type IRegisterResult, type IRequestConfig, type IResendVerificationResult, type IResetPasswordInput, type IRevealSecretResult, type IRoleDTO, type IRoleListResult, type IRolePermission, type IRolePermissionInput, type IRolePermissionsResult, type IRoleResult, type IRollbackInput, type IRollbackTemplateInput, type ISecretEntry, type ISecretRevision, type ISessionDTO, type ISessionsResult, type ISetConfigInput, type ISetSecretInput, type ISetTemplateInput, type ISubscriptionChangeResult, type ISubscriptionDTO, type ISubscriptionResult, type ITemplateEntry, type ITemplateRevision, type ITestWebhookResult, type ITokens, type IUpdateCustomerInput, type IUpdatePlanInput, type IUpdatePreferencesInput, type IUpdateProfileInput, type IUpdateRoleInput, type IUpdateSettingsInput, type IUpdateWebhookEndpointInput, type IUpdateWorkspaceInput, type IUploadMediaInput, type IUsageResult, type IUserDTO, type IUserPreferences, type IVerifyEmailResult, type IWalletCheckoutInput, type IWalletDTO, type IWalletPreferencesInput, type IWalletPurchaseInput, type IWalletPurchaseResult, type IWalletResult, type IWalletTransactionDTO, type IWalletTransactionsResult, type IWebhookDeliveryDTO, type IWebhookDeliveryListResult, type IWebhookEndpointCreatedDTO, type IWebhookEndpointDTO, type IWebhookEndpointListResult, type IWorkspaceAddressDTO, type IWorkspaceDTO, type IWorkspaceListResult, type IWorkspaceResult, type IWorkspaceSettingsDTO, type IWorkspaceSettingsResult, MediaClient, type SubscriberType, WebhooksClient, WorkspacesClient, createMemoryCache, isMfaRequired };
|