@peable.to/contracts 5.1.0 → 5.2.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.
@@ -37,3 +37,4 @@ __exportStar(require("./files"), exports);
37
37
  __exportStar(require("./identity"), exports);
38
38
  __exportStar(require("./merchants"), exports);
39
39
  __exportStar(require("./paymentMethodConfigurations"), exports);
40
+ __exportStar(require("./realtime"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PAYER_SOCKET_PATH = void 0;
4
+ /**
5
+ * The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
6
+ * hear its payment move, by the intent's `client_secret` alone.
7
+ *
8
+ * It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
9
+ * one, because Socket.IO decides CORS per server (per engine), before it
10
+ * knows which namespace or token a connection carries. The payer server
11
+ * answers any origin and takes no credentials — the same rule as the payer
12
+ * HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
13
+ * Peable, and the capability is the secret, never the page. The default
14
+ * server keeps the Oxy origins (`createOxySocketCors`) for every socket that
15
+ * carries an Oxy identity.
16
+ */
17
+ exports.PAYER_SOCKET_PATH = '/payer-socket.io';
@@ -21,3 +21,4 @@ export * from './files.js';
21
21
  export * from './identity.js';
22
22
  export * from './merchants.js';
23
23
  export * from './paymentMethodConfigurations.js';
24
+ export * from './realtime.js';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
3
+ * hear its payment move, by the intent's `client_secret` alone.
4
+ *
5
+ * It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
6
+ * one, because Socket.IO decides CORS per server (per engine), before it
7
+ * knows which namespace or token a connection carries. The payer server
8
+ * answers any origin and takes no credentials — the same rule as the payer
9
+ * HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
10
+ * Peable, and the capability is the secret, never the page. The default
11
+ * server keeps the Oxy origins (`createOxySocketCors`) for every socket that
12
+ * carries an Oxy identity.
13
+ */
14
+ export const PAYER_SOCKET_PATH = '/payer-socket.io';
@@ -17,3 +17,4 @@ export * from './files';
17
17
  export * from './identity';
18
18
  export * from './merchants';
19
19
  export * from './paymentMethodConfigurations';
20
+ export * from './realtime';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
3
+ * hear its payment move, by the intent's `client_secret` alone.
4
+ *
5
+ * It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
6
+ * one, because Socket.IO decides CORS per server (per engine), before it
7
+ * knows which namespace or token a connection carries. The payer server
8
+ * answers any origin and takes no credentials — the same rule as the payer
9
+ * HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
10
+ * Peable, and the capability is the secret, never the page. The default
11
+ * server keeps the Oxy origins (`createOxySocketCors`) for every socket that
12
+ * carries an Oxy identity.
13
+ */
14
+ export declare const PAYER_SOCKET_PATH = "/payer-socket.io";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peable.to/contracts",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "The Peable wire, declared once: Zod contracts of every public route, the OpenAPI 3.1 generator and the closed value sets (ADR 0014 D5).",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",