@delopay/sdk 0.15.0 → 0.16.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.
@@ -290,17 +290,30 @@ interface GsmRuleResponse {
290
290
  unified_code?: string | null;
291
291
  unified_message?: string | null;
292
292
  }
293
+ /**
294
+ * Per-connector visibility mode. Default for connectors with no row is
295
+ * `disabled` (default-closed) — to publicly launch a connector, ops
296
+ * upserts a row with `public`. To pilot a connector with one or more
297
+ * merchants before public launch, use `beta` plus
298
+ * `allowed_merchant_ids`.
299
+ */
300
+ type ConnectorVisibility = 'public' | 'beta' | 'disabled';
293
301
  /** Body for `POST /admin/connector_restrictions` (upsert). */
294
302
  interface UpsertConnectorRestrictionRequest {
295
303
  /** Connector name (snake_case, matches the backend `Connector` enum). */
296
304
  connector_name: string;
297
- /** Merchant IDs allowed to attach this connector. Empty = closed. */
305
+ /** Visibility mode. Defaults server-side to `'beta'` when omitted. */
306
+ visibility?: ConnectorVisibility;
307
+ /** Merchant IDs allowed to attach this connector. Only consulted
308
+ * when `visibility === 'beta'`; ignored for `'public'` /
309
+ * `'disabled'` and collapsed to an empty array on the backend. */
298
310
  allowed_merchant_ids: string[];
299
311
  /** Optional audit note (e.g. `"beta access — Marcel"`). */
300
312
  reason?: string | null;
301
313
  }
302
314
  interface ConnectorRestrictionResponse {
303
315
  connector_name: string;
316
+ visibility: ConnectorVisibility;
304
317
  allowed_merchant_ids: string[];
305
318
  reason: string | null;
306
319
  /** ISO 8601 datetime. */
@@ -539,4 +552,4 @@ declare class DelopayInternal extends Delopay {
539
552
  constructor(...args: ConstructorParameters<typeof Delopay>);
540
553
  }
541
554
 
542
- export { Admin, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCreateUserForMerchantRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, AdminPortal, type AdminSignInRequest, type AdminTransactionListParams, type AdminTransactionListResponse, type AdminUpdateUserRequest, type AdminUserResponse, type AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, AuditLogs, AuthResponse, type AuthorizeResponse, Cache, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, CardIssuers, Configs, type ConnectorRestrictionResponse, ConnectorRestrictions, type CreateInternalUserRequest, type CreateTenantUserRequest, type CustomerSummary, type CustomerUser, Delopay, DelopayInternal, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, Gsm, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, MerchantAccountResponse, MerchantAccountUpdateRequest, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, PaymentResponse, type PaymentStat, type PlatformAnalyticsResponse, PlatformBilling, PlatformFees, ProfileResponse, ProjectResponse, RequestFn, ShopResponse, SignUpWithMerchantIdRequest, type SignupToggleRequest, type SignupToggleResponse, type UpsertConnectorRestrictionRequest };
555
+ export { Admin, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCreateUserForMerchantRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, AdminPortal, type AdminSignInRequest, type AdminTransactionListParams, type AdminTransactionListResponse, type AdminUpdateUserRequest, type AdminUserResponse, type AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, AuditLogs, AuthResponse, type AuthorizeResponse, Cache, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, CardIssuers, Configs, type ConnectorRestrictionResponse, ConnectorRestrictions, type ConnectorVisibility, type CreateInternalUserRequest, type CreateTenantUserRequest, type CustomerSummary, type CustomerUser, Delopay, DelopayInternal, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, Gsm, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, MerchantAccountResponse, MerchantAccountUpdateRequest, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, PaymentResponse, type PaymentStat, type PlatformAnalyticsResponse, PlatformBilling, PlatformFees, ProfileResponse, ProjectResponse, RequestFn, ShopResponse, SignUpWithMerchantIdRequest, type SignupToggleRequest, type SignupToggleResponse, type UpsertConnectorRestrictionRequest };
@@ -290,17 +290,30 @@ interface GsmRuleResponse {
290
290
  unified_code?: string | null;
291
291
  unified_message?: string | null;
292
292
  }
293
+ /**
294
+ * Per-connector visibility mode. Default for connectors with no row is
295
+ * `disabled` (default-closed) — to publicly launch a connector, ops
296
+ * upserts a row with `public`. To pilot a connector with one or more
297
+ * merchants before public launch, use `beta` plus
298
+ * `allowed_merchant_ids`.
299
+ */
300
+ type ConnectorVisibility = 'public' | 'beta' | 'disabled';
293
301
  /** Body for `POST /admin/connector_restrictions` (upsert). */
294
302
  interface UpsertConnectorRestrictionRequest {
295
303
  /** Connector name (snake_case, matches the backend `Connector` enum). */
296
304
  connector_name: string;
297
- /** Merchant IDs allowed to attach this connector. Empty = closed. */
305
+ /** Visibility mode. Defaults server-side to `'beta'` when omitted. */
306
+ visibility?: ConnectorVisibility;
307
+ /** Merchant IDs allowed to attach this connector. Only consulted
308
+ * when `visibility === 'beta'`; ignored for `'public'` /
309
+ * `'disabled'` and collapsed to an empty array on the backend. */
298
310
  allowed_merchant_ids: string[];
299
311
  /** Optional audit note (e.g. `"beta access — Marcel"`). */
300
312
  reason?: string | null;
301
313
  }
302
314
  interface ConnectorRestrictionResponse {
303
315
  connector_name: string;
316
+ visibility: ConnectorVisibility;
304
317
  allowed_merchant_ids: string[];
305
318
  reason: string | null;
306
319
  /** ISO 8601 datetime. */
@@ -539,4 +552,4 @@ declare class DelopayInternal extends Delopay {
539
552
  constructor(...args: ConstructorParameters<typeof Delopay>);
540
553
  }
541
554
 
542
- export { Admin, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCreateUserForMerchantRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, AdminPortal, type AdminSignInRequest, type AdminTransactionListParams, type AdminTransactionListResponse, type AdminUpdateUserRequest, type AdminUserResponse, type AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, AuditLogs, AuthResponse, type AuthorizeResponse, Cache, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, CardIssuers, Configs, type ConnectorRestrictionResponse, ConnectorRestrictions, type CreateInternalUserRequest, type CreateTenantUserRequest, type CustomerSummary, type CustomerUser, Delopay, DelopayInternal, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, Gsm, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, MerchantAccountResponse, MerchantAccountUpdateRequest, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, PaymentResponse, type PaymentStat, type PlatformAnalyticsResponse, PlatformBilling, PlatformFees, ProfileResponse, ProjectResponse, RequestFn, ShopResponse, SignUpWithMerchantIdRequest, type SignupToggleRequest, type SignupToggleResponse, type UpsertConnectorRestrictionRequest };
555
+ export { Admin, type AdminAdjustmentRequest, type AdminAdjustmentResponse, type AdminAnalyticsRequest, type AdminCreateUserForMerchantRequest, type AdminCustomerDetail, type AdminCustomerListParams, type AdminCustomerListResponse, AdminPortal, type AdminSignInRequest, type AdminTransactionListParams, type AdminTransactionListResponse, type AdminUpdateUserRequest, type AdminUserResponse, type AuditLogListParams, type AuditLogListResponse, type AuditLogResponse, AuditLogs, AuthResponse, type AuthorizeResponse, Cache, type CardIssuerCreateRequest, type CardIssuerListResponse, type CardIssuerResponse, type CardIssuerUpdateRequest, CardIssuers, Configs, type ConnectorRestrictionResponse, ConnectorRestrictions, type ConnectorVisibility, type CreateInternalUserRequest, type CreateTenantUserRequest, type CustomerSummary, type CustomerUser, Delopay, DelopayInternal, FeeScheduleCreateRequest, FeeScheduleResponse, FeeScheduleUpdateRequest, Gsm, type GsmDecision, type GsmRuleCreateRequest, type GsmRuleResponse, type GsmRuleUpdateRequest, MerchantAccountResponse, MerchantAccountUpdateRequest, type OnboardMerchantRequest, type OnboardMerchantResponse, type OverviewStat, type OverviewStatsResponse, type PaymentAnalyticsRequest, type PaymentAnalyticsResponse, PaymentResponse, type PaymentStat, type PlatformAnalyticsResponse, PlatformBilling, PlatformFees, ProfileResponse, ProjectResponse, RequestFn, ShopResponse, SignUpWithMerchantIdRequest, type SignupToggleRequest, type SignupToggleResponse, type UpsertConnectorRestrictionRequest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delopay/sdk",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Official Delopay TypeScript SDK",
5
5
  "type": "module",
6
6
  "sideEffects": false,