payid 0.4.1 → 0.4.2

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,3 @@
1
+ export { a as issueEnvContext, b as issueOracleContext, c as issueRiskContext, d as issueStateContext, s as signAttestation } from '../index-2JCvey4-.js';
2
+ import 'payid-types';
3
+ import 'ethers';
@@ -0,0 +1,16 @@
1
+ import "../chunk-AOKLY2QN.js";
2
+ import {
3
+ issueEnvContext,
4
+ issueOracleContext,
5
+ issueRiskContext,
6
+ issueStateContext,
7
+ signAttestation
8
+ } from "../chunk-7U3P7XJE.js";
9
+ import "../chunk-R5U7XKVJ.js";
10
+ export {
11
+ issueEnvContext,
12
+ issueOracleContext,
13
+ issueRiskContext,
14
+ issueStateContext,
15
+ signAttestation
16
+ };
@@ -0,0 +1,2 @@
1
+ export { a as canonicalizeRuleSet, c as combineRules, h as hashRuleSet } from '../index-DerQdZmf.js';
2
+ import 'payid-types';
@@ -0,0 +1,15 @@
1
+ import {
2
+ hashRuleSet
3
+ } from "../chunk-ILV7Z3IN.js";
4
+ import {
5
+ combineRules
6
+ } from "../chunk-GG34PNTF.js";
7
+ import {
8
+ canonicalizeRuleSet
9
+ } from "../chunk-6VPSJFO4.js";
10
+ import "../chunk-R5U7XKVJ.js";
11
+ export {
12
+ canonicalizeRuleSet,
13
+ combineRules,
14
+ hashRuleSet
15
+ };
@@ -0,0 +1,4 @@
1
+ export { c as createSessionPolicyPayload, d as decodeSessionPolicy } from '../index-BQQnMG2H.js';
2
+ export { P as PayIDSessionPolicyPayloadV1 } from '../types-BmMf7udp.js';
3
+ import 'ethers';
4
+ import 'payid-types';
@@ -0,0 +1,13 @@
1
+ import {
2
+ createSessionPolicyPayload
3
+ } from "../chunk-Y75PSD7U.js";
4
+ import {
5
+ decodeSessionPolicy
6
+ } from "../chunk-MXKZJKXE.js";
7
+ import "../chunk-6VPSJFO4.js";
8
+ import "../chunk-5ZEKI5Y2.js";
9
+ import "../chunk-R5U7XKVJ.js";
10
+ export {
11
+ createSessionPolicyPayload,
12
+ decodeSessionPolicy
13
+ };
@@ -0,0 +1,26 @@
1
+ interface RuleSource {
2
+ uri: string;
3
+ hash?: string;
4
+ }
5
+
6
+ interface DecisionPayload {
7
+ version: string;
8
+ payId: string;
9
+ payer: string;
10
+ receiver: string;
11
+ asset: string;
12
+ amount: bigint;
13
+ contextHash: string;
14
+ ruleSetHash: string;
15
+ ruleAuthority: string;
16
+ issuedAt: bigint;
17
+ expiresAt: bigint;
18
+ nonce: string;
19
+ requiresAttestation: boolean;
20
+ }
21
+ interface DecisionProof {
22
+ payload: DecisionPayload;
23
+ signature: string;
24
+ }
25
+
26
+ export type { DecisionProof as D, RuleSource as R };
@@ -0,0 +1,13 @@
1
+ import { RuleConfig } from 'payid-types';
2
+
3
+ interface PayIDSessionPolicyPayloadV1 {
4
+ version: "payid.session.policy.v1" | string;
5
+ receiver: string;
6
+ rule: RuleConfig;
7
+ expiresAt: number;
8
+ nonce: string;
9
+ issuedAt: number;
10
+ signature: string;
11
+ }
12
+
13
+ export type { PayIDSessionPolicyPayloadV1 as P };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payid",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "ethers": "^6.16.0",
40
- "payid-rule-engine": "^0.2.4",
40
+ "payid-rule-engine": "^0.2.5",
41
41
  "payid-types": "^0.1.9"
42
42
  },
43
43
  "files": [