@nibgate/sdk 0.2.11 → 0.2.12
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/package.json +1 -1
- package/src/index.d.ts +3 -0
- package/src/server/index.js +1 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -453,3 +453,6 @@ export declare function mountRatingUI(resource: NibgateResource | string, option
|
|
|
453
453
|
|
|
454
454
|
export declare function createTransferCheckout(resource: NibgateResource | string, options: NibgateTransferCheckoutOptions): NibgateTransferCheckout;
|
|
455
455
|
export declare function payWithTransfer(resource: NibgateResource | string, options: NibgateTransferCheckoutOptions & NibgateAccessCheckOptions): Promise<NibgateAccessCheckResult>;
|
|
456
|
+
export declare function renderDefaultUnlockUI(container: HTMLElement | string, resource: NibgateResource, options?: NibgateEvmGatewayUnlockOptions): NibgateEvmGatewayUnlockController & { element: HTMLElement; destroy: () => void };
|
|
457
|
+
export declare function renderDefaultRatingUI(container: HTMLElement | string, resource: NibgateResource, options?: Record<string, unknown>): { element: HTMLElement; destroy: () => void };
|
|
458
|
+
export declare function renderDefaultGatewayWalletUI(container: HTMLElement | string, options?: Record<string, unknown>): { element: HTMLElement; destroy: () => void; switchTab: (tab: string) => void };
|
package/src/server/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { createPaymentChallenge } from './challenge.js';
|
|
|
5
5
|
export { createManifest, manifestResponse } from './manifest.js';
|
|
6
6
|
export { createUnlockToken, verifyUnlockToken } from './proof.js';
|
|
7
7
|
export { emitHubEvent } from './hub.js';
|
|
8
|
-
export { payWithGateway, createGatewayBuyer, getGatewayBalances, depositToGateway, withdrawFromGateway } from './gateway.js';
|
|
8
|
+
export { payWithGateway, createGatewayBuyer, getGatewayBalances, depositToGateway, withdrawFromGateway, runCircleGatewayRequirement } from './gateway.js';
|
|
9
9
|
export { createNibgateServer, protect, verifyPayment } from './access.js';
|
|
10
10
|
export { circleGatewayOptions, createCircleGatewayServer } from './presets.js';
|
|
11
11
|
export { normalizeServerResource as normalizeResource, normalizeAccessPolicy, normalizeUnlockPolicy, validateResourceMetadata, UNLOCK_MODES } from '../core/resource.js';
|