@stridge/pay-sdk 0.0.0-stage → 0.1.0-alpha.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.
@@ -0,0 +1,2 @@
1
+ import { $t as isElementDepositRequestPayload, A as isSignText, Ai as HubDiagnosticsDetailsMessage, At as PayFirstStep, Bo as PAY_FUND_MESSAGE_TYPES, C as isElementMessage, Ca as PayElementLoadFailureReason, Dt as PayDestinationAddress, Ei as HubAppearance, En as AppElementMessage, Et as PayCurrency, Fn as AppMessage, Fo as PAY_ELEMENT_LOAD_FAILURE_REASONS, Go as PAY_MESSAGE_TYPES, Ho as PAY_FUND_START_SCREENS, Ii as HubDiagnosticsObservation, Io as PAY_ELEMENT_MESSAGE_TYPES, Ko as PAY_PROTOCOL, Lo as PAY_ELEMENT_NOTIFICATION_MESSAGE_TYPES, Lr as ElementMessage, Mi as HubDiagnosticsDetailsPayload, N as DecodedMessage, Nn as AppHubFrameMessage, O as isHubFrameName, Oo as MAX_SIGN_MESSAGE_BYTES, Ot as PayDestinationAsk, Po as PAY_ELEMENT_LIFETIME_MESSAGE_TYPES, Qa as APP_ID_PATTERN, R as createPayEnvelope, Ro as PAY_ELEMENT_PATH, Sr as ElementFailureCode, Ta as PayMenuRect, U as ElementCheckoutResultPayload, Uo as PAY_HUB_FRAME_MESSAGE_TYPES, Vo as PAY_FUND_REQUEST_TYPE, W as ElementDepositRequestPayload, X as ElementPayRequestPayload, Xt as answersPayAmount, Z as ElementPaymentNoticePayload, Zr as ElementReloadRequestMessage, _ as isAppElementMessage, _a as HubTheme, aa as HubMenuEndedMessage, an as samePayDestinationAsk, ao as HUB_NEEDS_POPUP_MESSAGE, bi as FundStartScreen, bn as AppElementConfigMessage, br as ElementFailedMessage, co as HUB_SURFACE_POPUP, da as HubRequestType, dr as ElementCheckStatusRequestMessage, ea as HubErrorCode, ei as ElementResizePayload, er as CeremonyRequestType, f as decodeHubFrameAppMessage, ga as HubStatus, go as MAX_ELEMENT_RESIZE_DURATION_MS, ha as HubStateSnapshot, hr as ElementConfigPayload, ia as HubMenuAcceptedMessage, ir as ElementActionCheckMessage, jt as PayJob, kn as AppElementReloadGrantMessage, kt as PayDestinationRuleId, l as decodeElementMessage, lo as HUB_URL_PARAMS, ls as utf8ToBytes, mn as AppElementActionEligibilityMessage, mo as MAX_ELEMENT_BLOCK_SIZE, na as HubFrameAppMessage, nn as isElementPayRequestPayload, oa as HubMenuRefusedMessage, on as samePayTerms, p as decodeHubMessage, q as ElementPaidPayload, ri as ElementSignedMessage, rn as payJobOf, ro as HUB_FRAME_NAME_PATTERN, rs as SUA_PROTOCOL_VERSION, sa as HubMessage, ti as ElementSignAction, v as isAppHubFrameMessage, va as HubTransport, x as isAppearance, xo as MAX_MESSAGE_ID_LENGTH, zi as HubDiagnosticsStatusMessage } from "./guards-CYx283Oo.js";
2
+ export { APP_ID_PATTERN, type AppElementActionEligibilityMessage, type AppElementConfigMessage, type AppElementMessage, type AppElementReloadGrantMessage, type AppHubFrameMessage, type AppMessage, type CeremonyRequestType, type DecodedMessage, type ElementActionCheckMessage, type ElementCheckStatusRequestMessage, type ElementCheckoutResultPayload, type ElementConfigPayload, type ElementDepositRequestPayload, type ElementFailedMessage, type ElementFailureCode, type ElementMessage, type ElementPaidPayload, type ElementPayRequestPayload, type ElementPaymentNoticePayload, type ElementReloadRequestMessage, type ElementResizePayload, type ElementSignAction, type ElementSignedMessage, type FundStartScreen, HUB_FRAME_NAME_PATTERN, HUB_NEEDS_POPUP_MESSAGE, HUB_SURFACE_POPUP, HUB_URL_PARAMS, type HubAppearance, type HubDiagnosticsDetailsMessage, type HubDiagnosticsDetailsPayload, type HubDiagnosticsObservation, type HubDiagnosticsStatusMessage, type HubErrorCode, type HubFrameAppMessage, type HubMenuAcceptedMessage, type HubMenuEndedMessage, type HubMenuRefusedMessage, type HubMessage, type HubRequestType, type HubStateSnapshot, type HubStatus, type HubTheme, type HubTransport, MAX_ELEMENT_BLOCK_SIZE, MAX_ELEMENT_RESIZE_DURATION_MS, MAX_MESSAGE_ID_LENGTH, MAX_SIGN_MESSAGE_BYTES, PAY_ELEMENT_LIFETIME_MESSAGE_TYPES, PAY_ELEMENT_LOAD_FAILURE_REASONS, PAY_ELEMENT_MESSAGE_TYPES, PAY_ELEMENT_NOTIFICATION_MESSAGE_TYPES, PAY_ELEMENT_PATH, PAY_FUND_MESSAGE_TYPES, PAY_FUND_REQUEST_TYPE, PAY_FUND_START_SCREENS, PAY_HUB_FRAME_MESSAGE_TYPES, PAY_MESSAGE_TYPES, PAY_PROTOCOL, type PayCurrency, type PayDestinationAddress, type PayDestinationAsk, type PayDestinationRuleId, type PayElementLoadFailureReason, type PayFirstStep, type PayJob, type PayMenuRect, SUA_PROTOCOL_VERSION, answersPayAmount, createPayEnvelope, decodeElementMessage, decodeHubFrameAppMessage, decodeHubMessage, isAppElementMessage, isAppHubFrameMessage, isAppearance, isElementDepositRequestPayload, isElementMessage, isElementPayRequestPayload, isHubFrameName, isSignText, payJobOf, samePayDestinationAsk, samePayTerms, utf8ToBytes };
@@ -0,0 +1,2 @@
1
+ import { $ as HUB_NEEDS_POPUP_MESSAGE, A as isSignText, At as PAY_ELEMENT_MESSAGE_TYPES, B as payJobOf, Bt as PAY_PROTOCOL, C as isElementMessage, Ft as PAY_FUND_REQUEST_TYPE, G as createPayEnvelope, H as samePayDestinationAsk, I as isElementDepositRequestPayload, It as PAY_FUND_START_SCREENS, K as APP_ID_PATTERN, Lt as PAY_HUB_FRAME_MESSAGE_TYPES, Mt as PAY_ELEMENT_PATH, N as answersPayAmount, O as isHubFrameName, Ot as PAY_ELEMENT_LIFETIME_MESSAGE_TYPES, Pt as PAY_FUND_MESSAGE_TYPES, St as MAX_SIGN_MESSAGE_BYTES, U as samePayTerms, Z as HUB_FRAME_NAME_PATTERN, Zt as SUA_PROTOCOL_VERSION, _ as isAppElementMessage, ct as MAX_ELEMENT_BLOCK_SIZE, f as decodeHubFrameAppMessage, ht as MAX_MESSAGE_ID_LENGTH, jt as PAY_ELEMENT_NOTIFICATION_MESSAGE_TYPES, kt as PAY_ELEMENT_LOAD_FAILURE_REASONS, l as decodeElementMessage, nt as HUB_SURFACE_POPUP, p as decodeHubMessage, rn as utf8ToBytes, rt as HUB_URL_PARAMS, ut as MAX_ELEMENT_RESIZE_DURATION_MS, v as isAppHubFrameMessage, x as isAppearance, z as isElementPayRequestPayload, zt as PAY_MESSAGE_TYPES } from "./guards-Cb0lVKgT.js";
2
+ export { APP_ID_PATTERN, HUB_FRAME_NAME_PATTERN, HUB_NEEDS_POPUP_MESSAGE, HUB_SURFACE_POPUP, HUB_URL_PARAMS, MAX_ELEMENT_BLOCK_SIZE, MAX_ELEMENT_RESIZE_DURATION_MS, MAX_MESSAGE_ID_LENGTH, MAX_SIGN_MESSAGE_BYTES, PAY_ELEMENT_LIFETIME_MESSAGE_TYPES, PAY_ELEMENT_LOAD_FAILURE_REASONS, PAY_ELEMENT_MESSAGE_TYPES, PAY_ELEMENT_NOTIFICATION_MESSAGE_TYPES, PAY_ELEMENT_PATH, PAY_FUND_MESSAGE_TYPES, PAY_FUND_REQUEST_TYPE, PAY_FUND_START_SCREENS, PAY_HUB_FRAME_MESSAGE_TYPES, PAY_MESSAGE_TYPES, PAY_PROTOCOL, SUA_PROTOCOL_VERSION, answersPayAmount, createPayEnvelope, decodeElementMessage, decodeHubFrameAppMessage, decodeHubMessage, isAppElementMessage, isAppHubFrameMessage, isAppearance, isElementDepositRequestPayload, isElementMessage, isElementPayRequestPayload, isHubFrameName, isSignText, payJobOf, samePayDestinationAsk, samePayTerms, utf8ToBytes };
package/package.json CHANGED
@@ -1,6 +1,57 @@
1
1
  {
2
2
  "name": "@stridge/pay-sdk",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0-alpha.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "main": "./dist/cjs/index.cjs",
10
+ "module": "./dist/esm/index.js",
11
+ "types": "./dist/esm/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/esm/index.d.ts",
16
+ "default": "./dist/esm/index.js"
17
+ },
18
+ "require": {
19
+ "types": "./dist/cjs/index.d.cts",
20
+ "default": "./dist/cjs/index.cjs"
21
+ }
22
+ }
23
+ },
24
+ "devDependencies": {
25
+ "@arethetypeswrong/cli": "^0.18.5",
26
+ "@microsoft/api-extractor": "^7.58.11",
27
+ "@size-limit/esbuild": "^12.1.0",
28
+ "@size-limit/esbuild-why": "^12.1.0",
29
+ "@size-limit/file": "^12.1.0",
30
+ "msw": "^2.15.0",
31
+ "publint": "^0.3.21",
32
+ "size-limit": "^12.1.0",
33
+ "@stridge/gateway-kit-typescript": "0.0.0"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public",
37
+ "registry": "https://registry.npmjs.org/"
38
+ },
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/stridge-foundation/gateway-kit.git",
42
+ "directory": "packages/sua-sdk"
43
+ },
44
+ "scripts": {
45
+ "build": "tsdown",
46
+ "dev": "tsdown --watch",
47
+ "test": "vitest --run",
48
+ "test:watch": "vitest",
49
+ "typecheck": "tsc --noEmit --emitDeclarationOnly false",
50
+ "generate:hub": "pnpm dlx openapi-typescript@7.13.0 src/generated/openapi.json -o src/generated/hub.ts",
51
+ "check:api": "api-extractor run",
52
+ "check:api:update": "api-extractor run --local",
53
+ "check:size": "size-limit",
54
+ "check:publish": "pnpm run check:api && pnpm run check:pack && node ../../scripts/check-sua-publish.mjs && pnpm run check:size",
55
+ "check:pack": "node scripts/check-pack.mjs"
56
+ }
6
57
  }