@parmana/sdk 1.1.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.
Files changed (190) hide show
  1. package/README.md +284 -0
  2. package/dist/client/AuditApi.d.ts +18 -0
  3. package/dist/client/AuditApi.d.ts.map +1 -0
  4. package/dist/client/AuditApi.js +25 -0
  5. package/dist/client/AuditApi.js.map +1 -0
  6. package/dist/client/ExecutionApi.d.ts +39 -0
  7. package/dist/client/ExecutionApi.d.ts.map +1 -0
  8. package/dist/client/ExecutionApi.js +58 -0
  9. package/dist/client/ExecutionApi.js.map +1 -0
  10. package/dist/client/HealthApi.d.ts +22 -0
  11. package/dist/client/HealthApi.d.ts.map +1 -0
  12. package/dist/client/HealthApi.js +24 -0
  13. package/dist/client/HealthApi.js.map +1 -0
  14. package/dist/client/ParmanaClient.d.ts +154 -0
  15. package/dist/client/ParmanaClient.d.ts.map +1 -0
  16. package/dist/client/ParmanaClient.js +223 -0
  17. package/dist/client/ParmanaClient.js.map +1 -0
  18. package/dist/client/PolicyApi.d.ts +53 -0
  19. package/dist/client/PolicyApi.d.ts.map +1 -0
  20. package/dist/client/PolicyApi.js +48 -0
  21. package/dist/client/PolicyApi.js.map +1 -0
  22. package/dist/client/ReceiptApi.d.ts +29 -0
  23. package/dist/client/ReceiptApi.d.ts.map +1 -0
  24. package/dist/client/ReceiptApi.js +38 -0
  25. package/dist/client/ReceiptApi.js.map +1 -0
  26. package/dist/client/RefusalApi.d.ts +25 -0
  27. package/dist/client/RefusalApi.d.ts.map +1 -0
  28. package/dist/client/RefusalApi.js +38 -0
  29. package/dist/client/RefusalApi.js.map +1 -0
  30. package/dist/client/ReplayApi.d.ts +21 -0
  31. package/dist/client/ReplayApi.d.ts.map +1 -0
  32. package/dist/client/ReplayApi.js +30 -0
  33. package/dist/client/ReplayApi.js.map +1 -0
  34. package/dist/client/TransactionApi.d.ts +43 -0
  35. package/dist/client/TransactionApi.d.ts.map +1 -0
  36. package/dist/client/TransactionApi.js +62 -0
  37. package/dist/client/TransactionApi.js.map +1 -0
  38. package/dist/client/TrustRecordApi.d.ts +19 -0
  39. package/dist/client/TrustRecordApi.d.ts.map +1 -0
  40. package/dist/client/TrustRecordApi.js +25 -0
  41. package/dist/client/TrustRecordApi.js.map +1 -0
  42. package/dist/client/VerificationApi.d.ts +27 -0
  43. package/dist/client/VerificationApi.d.ts.map +1 -0
  44. package/dist/client/VerificationApi.js +42 -0
  45. package/dist/client/VerificationApi.js.map +1 -0
  46. package/dist/config/Configuration.d.ts +66 -0
  47. package/dist/config/Configuration.d.ts.map +1 -0
  48. package/dist/config/Configuration.js +17 -0
  49. package/dist/config/Configuration.js.map +1 -0
  50. package/dist/config/RetryPolicy.d.ts +66 -0
  51. package/dist/config/RetryPolicy.d.ts.map +1 -0
  52. package/dist/config/RetryPolicy.js +27 -0
  53. package/dist/config/RetryPolicy.js.map +1 -0
  54. package/dist/config/Transport.d.ts +80 -0
  55. package/dist/config/Transport.d.ts.map +1 -0
  56. package/dist/config/Transport.js +17 -0
  57. package/dist/config/Transport.js.map +1 -0
  58. package/dist/errors/AuthenticationError.d.ts +12 -0
  59. package/dist/errors/AuthenticationError.d.ts.map +1 -0
  60. package/dist/errors/AuthenticationError.js +21 -0
  61. package/dist/errors/AuthenticationError.js.map +1 -0
  62. package/dist/errors/AuthorizationError.d.ts +31 -0
  63. package/dist/errors/AuthorizationError.d.ts.map +1 -0
  64. package/dist/errors/AuthorizationError.js +42 -0
  65. package/dist/errors/AuthorizationError.js.map +1 -0
  66. package/dist/errors/ConfigurationError.d.ts +11 -0
  67. package/dist/errors/ConfigurationError.d.ts.map +1 -0
  68. package/dist/errors/ConfigurationError.js +20 -0
  69. package/dist/errors/ConfigurationError.js.map +1 -0
  70. package/dist/errors/ConflictError.d.ts +14 -0
  71. package/dist/errors/ConflictError.d.ts.map +1 -0
  72. package/dist/errors/ConflictError.js +23 -0
  73. package/dist/errors/ConflictError.js.map +1 -0
  74. package/dist/errors/ExecutionRejectedError.d.ts +11 -0
  75. package/dist/errors/ExecutionRejectedError.d.ts.map +1 -0
  76. package/dist/errors/ExecutionRejectedError.js +20 -0
  77. package/dist/errors/ExecutionRejectedError.js.map +1 -0
  78. package/dist/errors/InternalServerError.d.ts +11 -0
  79. package/dist/errors/InternalServerError.d.ts.map +1 -0
  80. package/dist/errors/InternalServerError.js +20 -0
  81. package/dist/errors/InternalServerError.js.map +1 -0
  82. package/dist/errors/NetworkError.d.ts +11 -0
  83. package/dist/errors/NetworkError.d.ts.map +1 -0
  84. package/dist/errors/NetworkError.js +20 -0
  85. package/dist/errors/NetworkError.js.map +1 -0
  86. package/dist/errors/NotFoundError.d.ts +13 -0
  87. package/dist/errors/NotFoundError.d.ts.map +1 -0
  88. package/dist/errors/NotFoundError.js +22 -0
  89. package/dist/errors/NotFoundError.js.map +1 -0
  90. package/dist/errors/ParmanaError.d.ts +57 -0
  91. package/dist/errors/ParmanaError.d.ts.map +1 -0
  92. package/dist/errors/ParmanaError.js +60 -0
  93. package/dist/errors/ParmanaError.js.map +1 -0
  94. package/dist/errors/RateLimitError.d.ts +24 -0
  95. package/dist/errors/RateLimitError.d.ts.map +1 -0
  96. package/dist/errors/RateLimitError.js +35 -0
  97. package/dist/errors/RateLimitError.js.map +1 -0
  98. package/dist/errors/ReplayError.d.ts +11 -0
  99. package/dist/errors/ReplayError.d.ts.map +1 -0
  100. package/dist/errors/ReplayError.js +20 -0
  101. package/dist/errors/ReplayError.js.map +1 -0
  102. package/dist/errors/TimeoutError.d.ts +11 -0
  103. package/dist/errors/TimeoutError.d.ts.map +1 -0
  104. package/dist/errors/TimeoutError.js +20 -0
  105. package/dist/errors/TimeoutError.js.map +1 -0
  106. package/dist/errors/ValidationError.d.ts +11 -0
  107. package/dist/errors/ValidationError.d.ts.map +1 -0
  108. package/dist/errors/ValidationError.js +20 -0
  109. package/dist/errors/ValidationError.js.map +1 -0
  110. package/dist/errors/VerificationError.d.ts +11 -0
  111. package/dist/errors/VerificationError.d.ts.map +1 -0
  112. package/dist/errors/VerificationError.js +20 -0
  113. package/dist/errors/VerificationError.js.map +1 -0
  114. package/dist/index.d.ts +41 -0
  115. package/dist/index.d.ts.map +1 -0
  116. package/dist/index.js +56 -0
  117. package/dist/index.js.map +1 -0
  118. package/dist/models/audit-event.d.ts +15 -0
  119. package/dist/models/audit-event.d.ts.map +1 -0
  120. package/dist/models/audit-event.js +2 -0
  121. package/dist/models/audit-event.js.map +1 -0
  122. package/dist/models/authority.d.ts +14 -0
  123. package/dist/models/authority.d.ts.map +1 -0
  124. package/dist/models/authority.js +8 -0
  125. package/dist/models/authority.js.map +1 -0
  126. package/dist/models/authorization.d.ts +13 -0
  127. package/dist/models/authorization.d.ts.map +1 -0
  128. package/dist/models/authorization.js +7 -0
  129. package/dist/models/authorization.js.map +1 -0
  130. package/dist/models/business-transaction.d.ts +25 -0
  131. package/dist/models/business-transaction.d.ts.map +1 -0
  132. package/dist/models/business-transaction.js +2 -0
  133. package/dist/models/business-transaction.js.map +1 -0
  134. package/dist/models/execution.d.ts +36 -0
  135. package/dist/models/execution.d.ts.map +1 -0
  136. package/dist/models/execution.js +2 -0
  137. package/dist/models/execution.js.map +1 -0
  138. package/dist/models/index.d.ts +15 -0
  139. package/dist/models/index.d.ts.map +1 -0
  140. package/dist/models/index.js +15 -0
  141. package/dist/models/index.js.map +1 -0
  142. package/dist/models/intent.d.ts +14 -0
  143. package/dist/models/intent.d.ts.map +1 -0
  144. package/dist/models/intent.js +7 -0
  145. package/dist/models/intent.js.map +1 -0
  146. package/dist/models/override.d.ts +9 -0
  147. package/dist/models/override.d.ts.map +1 -0
  148. package/dist/models/override.js +2 -0
  149. package/dist/models/override.js.map +1 -0
  150. package/dist/models/policy.d.ts +11 -0
  151. package/dist/models/policy.d.ts.map +1 -0
  152. package/dist/models/policy.js +7 -0
  153. package/dist/models/policy.js.map +1 -0
  154. package/dist/models/receipt.d.ts +10 -0
  155. package/dist/models/receipt.d.ts.map +1 -0
  156. package/dist/models/receipt.js +2 -0
  157. package/dist/models/receipt.js.map +1 -0
  158. package/dist/models/refusal-record.d.ts +51 -0
  159. package/dist/models/refusal-record.d.ts.map +1 -0
  160. package/dist/models/refusal-record.js +2 -0
  161. package/dist/models/refusal-record.js.map +1 -0
  162. package/dist/models/replay-result.d.ts +6 -0
  163. package/dist/models/replay-result.d.ts.map +1 -0
  164. package/dist/models/replay-result.js +2 -0
  165. package/dist/models/replay-result.js.map +1 -0
  166. package/dist/models/signature.d.ts +16 -0
  167. package/dist/models/signature.d.ts.map +1 -0
  168. package/dist/models/signature.js +10 -0
  169. package/dist/models/signature.js.map +1 -0
  170. package/dist/models/trust-record.d.ts +20 -0
  171. package/dist/models/trust-record.d.ts.map +1 -0
  172. package/dist/models/trust-record.js +2 -0
  173. package/dist/models/trust-record.js.map +1 -0
  174. package/dist/models/verification.d.ts +10 -0
  175. package/dist/models/verification.d.ts.map +1 -0
  176. package/dist/models/verification.js +2 -0
  177. package/dist/models/verification.js.map +1 -0
  178. package/dist/transport/HttpTransport.d.ts +25 -0
  179. package/dist/transport/HttpTransport.d.ts.map +1 -0
  180. package/dist/transport/HttpTransport.js +193 -0
  181. package/dist/transport/HttpTransport.js.map +1 -0
  182. package/dist/transport/mapHttpErrorResponse.d.ts +52 -0
  183. package/dist/transport/mapHttpErrorResponse.d.ts.map +1 -0
  184. package/dist/transport/mapHttpErrorResponse.js +134 -0
  185. package/dist/transport/mapHttpErrorResponse.js.map +1 -0
  186. package/dist/version.d.ts +7 -0
  187. package/dist/version.d.ts.map +1 -0
  188. package/dist/version.js +7 -0
  189. package/dist/version.js.map +1 -0
  190. package/package.json +57 -0
package/dist/index.js ADDED
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Parmana TypeScript SDK
3
+ *
4
+ * Canonical public API.
5
+ *
6
+ * This module defines the complete public surface
7
+ * of the Parmana TypeScript SDK.
8
+ */
9
+ // -----------------------------------------------------------------------------
10
+ // SDK Version
11
+ // -----------------------------------------------------------------------------
12
+ export { VERSION } from "./version.js";
13
+ // -----------------------------------------------------------------------------
14
+ // SDK Client
15
+ // -----------------------------------------------------------------------------
16
+ export { ParmanaClient } from "./client/ParmanaClient.js";
17
+ // -----------------------------------------------------------------------------
18
+ // SDK APIs
19
+ // -----------------------------------------------------------------------------
20
+ export { HealthApi } from "./client/HealthApi.js";
21
+ export { ExecutionApi } from "./client/ExecutionApi.js";
22
+ export { VerificationApi } from "./client/VerificationApi.js";
23
+ export { ReplayApi } from "./client/ReplayApi.js";
24
+ export { PolicyApi } from "./client/PolicyApi.js";
25
+ export { RetryStrategy, } from "./config/RetryPolicy.js";
26
+ // -----------------------------------------------------------------------------
27
+ // Transport
28
+ // -----------------------------------------------------------------------------
29
+ export { HttpTransport, } from "./transport/HttpTransport.js";
30
+ // -----------------------------------------------------------------------------
31
+ // Canonical Parmana Domain Model
32
+ // -----------------------------------------------------------------------------
33
+ export * from "./models/index.js";
34
+ // -----------------------------------------------------------------------------
35
+ // SDK Errors
36
+ // -----------------------------------------------------------------------------
37
+ export * from "./errors/ParmanaError.js";
38
+ export * from "./errors/ConfigurationError.js";
39
+ export * from "./errors/ValidationError.js";
40
+ export * from "./errors/AuthenticationError.js";
41
+ export * from "./errors/AuthorizationError.js";
42
+ export * from "./errors/NotFoundError.js";
43
+ export * from "./errors/ConflictError.js";
44
+ export * from "./errors/ExecutionRejectedError.js";
45
+ export * from "./errors/InternalServerError.js";
46
+ export * from "./errors/NetworkError.js";
47
+ export * from "./errors/RateLimitError.js";
48
+ export * from "./errors/ReplayError.js";
49
+ export * from "./errors/TimeoutError.js";
50
+ export * from "./errors/VerificationError.js";
51
+ export { ReceiptApi } from "./client/ReceiptApi.js";
52
+ export { TransactionApi } from "./client/TransactionApi.js";
53
+ export { TrustRecordApi } from "./client/TrustRecordApi.js";
54
+ export { RefusalApi } from "./client/RefusalApi.js";
55
+ export { AuditApi } from "./client/AuditApi.js";
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,gFAAgF;AAChF,aAAa;AACb,gFAAgF;AAEhF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,gFAAgF;AAChF,WAAW;AACX,gFAAgF;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,SAAS,EAA+B,MAAM,uBAAuB,CAAC;AAc/E,OAAO,EACL,aAAa,GACd,MAAM,yBAAyB,CAAC;AAQjC,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF,OAAO,EACL,aAAa,GACd,MAAM,8BAA8B,CAAC;AAEtC,gFAAgF;AAChF,iCAAiC;AACjC,gFAAgF;AAEhF,cAAc,mBAAmB,CAAC;AAElC,gFAAgF;AAChF,aAAa;AACb,gFAAgF;AAEhF,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * A signed caller-authentication audit event, as recorded by
3
+ * CallerAuditSink (packages/api/src/auth/CallerAuditSink.ts) and
4
+ * verified by POST /audit/verify. Deliberately a loose bag beyond the
5
+ * three required fields -- event shapes can diverge on every field past
6
+ * these, and verification operates on canonical bytes over whatever
7
+ * object was actually signed, not a specific parsed shape.
8
+ */
9
+ export interface AuditEvent {
10
+ readonly type: string;
11
+ readonly occurredAt: string;
12
+ readonly route: string;
13
+ readonly [key: string]: unknown;
14
+ }
15
+ //# sourceMappingURL=audit-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-event.d.ts","sourceRoot":"","sources":["../../src/models/audit-event.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=audit-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-event.js","sourceRoot":"","sources":["../../src/models/audit-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Parmana Authority.
3
+ *
4
+ * Human or system authority responsible
5
+ * for authorizing execution.
6
+ */
7
+ export interface Authority {
8
+ readonly authorityId: string;
9
+ readonly authorityType: string;
10
+ readonly principalId: string;
11
+ readonly displayName?: string;
12
+ readonly issuedAt: Date;
13
+ }
14
+ //# sourceMappingURL=authority.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority.d.ts","sourceRoot":"","sources":["../../src/models/authority.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAE9B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;CACzB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Parmana Authority.
3
+ *
4
+ * Human or system authority responsible
5
+ * for authorizing execution.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=authority.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority.js","sourceRoot":"","sources":["../../src/models/authority.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Parmana Authorization.
3
+ *
4
+ * Authorization granted by an Authority.
5
+ */
6
+ export interface Authorization {
7
+ readonly authorizationId: string;
8
+ readonly authorityId: string;
9
+ readonly purpose: string;
10
+ readonly issuedAt: Date;
11
+ readonly expiresAt?: Date;
12
+ }
13
+ //# sourceMappingURL=authorization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../src/models/authorization.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IAExB,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;CAC3B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Parmana Authorization.
3
+ *
4
+ * Authorization granted by an Authority.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=authorization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../src/models/authorization.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,25 @@
1
+ import type { Authority } from "./authority.js";
2
+ import type { Authorization } from "./authorization.js";
3
+ import type { Intent } from "./intent.js";
4
+ import type { PolicyReference } from "./policy.js";
5
+ export interface BusinessTransactionMetadata {
6
+ readonly businessTransactionId: string;
7
+ readonly correlationId?: string;
8
+ readonly tenantId?: string | null;
9
+ readonly sourceSystem?: string;
10
+ readonly submittedBy?: string;
11
+ readonly submittedAt?: Date;
12
+ }
13
+ export type BusinessTransactionStatus = "RECEIVED" | "POLICY_EVALUATED" | "APPROVED" | "REJECTED" | "OVERRIDDEN" | "EXECUTING" | "EXECUTED" | "FAILED" | "VERIFIED";
14
+ export interface BusinessTransaction {
15
+ readonly businessTransactionId: string;
16
+ readonly metadata: BusinessTransactionMetadata;
17
+ readonly authority: Authority;
18
+ readonly authorization: Authorization;
19
+ readonly intent: Intent;
20
+ readonly policy: PolicyReference;
21
+ readonly signals: Record<string, unknown>;
22
+ readonly status: BusinessTransactionStatus;
23
+ readonly createdAt: Date;
24
+ }
25
+ //# sourceMappingURL=business-transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-transaction.d.ts","sourceRoot":"","sources":["../../src/models/business-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC;CAC7B;AAED,MAAM,MAAM,yBAAyB,GACjC,UAAU,GACV,kBAAkB,GAClB,UAAU,GACV,UAAU,GACV,YAAY,GACZ,WAAW,GACX,UAAU,GACV,QAAQ,GACR,UAAU,CAAC;AAEf,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAC3C,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=business-transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-transaction.js","sourceRoot":"","sources":["../../src/models/business-transaction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import type { PolicyReference } from "./policy.js";
2
+ export type DecisionOutcome = "APPROVED" | "REJECTED";
3
+ export interface Decision {
4
+ readonly decisionId: string;
5
+ readonly intentId: string;
6
+ readonly policy: PolicyReference;
7
+ readonly signals: Record<string, unknown>;
8
+ readonly outcome: DecisionOutcome;
9
+ readonly reason?: string;
10
+ readonly evaluatedAt: Date;
11
+ }
12
+ export type ExecutionStatus = "PROCESSING" | "COMPLETED" | "FAILED";
13
+ export type ExecutionMode = "SYNC" | "ASYNC";
14
+ export interface Execution {
15
+ readonly executionId: string;
16
+ readonly businessTransactionId: string;
17
+ readonly decision: Decision;
18
+ readonly status: ExecutionStatus;
19
+ readonly mode: ExecutionMode;
20
+ readonly startedAt: Date;
21
+ /** Present only for terminal executions. */
22
+ readonly completedAt?: Date;
23
+ /**
24
+ * businessTransactionId, action, target, parameters, success,
25
+ * executedAt, and an optional attributes bag (e.g. Connector SDK
26
+ * evidence). Left as a generic bag here, same as the real schema
27
+ * (schemas/common/execution.schema.json), not a nested model.
28
+ */
29
+ readonly evidence?: Record<string, unknown>;
30
+ /**
31
+ * Execution-specific metadata. Currently populated with
32
+ * authorizationId when the Execution is APPROVED.
33
+ */
34
+ readonly metadata?: Record<string, unknown>;
35
+ }
36
+ //# sourceMappingURL=execution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/models/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtD,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;CAC5B;AAED,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7C,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,4CAA4C;IAC5C,QAAQ,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.js","sourceRoot":"","sources":["../../src/models/execution.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export * from "./audit-event.js";
2
+ export * from "./authority.js";
3
+ export * from "./authorization.js";
4
+ export * from "./business-transaction.js";
5
+ export * from "./execution.js";
6
+ export * from "./intent.js";
7
+ export * from "./override.js";
8
+ export * from "./policy.js";
9
+ export * from "./receipt.js";
10
+ export * from "./refusal-record.js";
11
+ export * from "./replay-result.js";
12
+ export * from "./signature.js";
13
+ export * from "./trust-record.js";
14
+ export * from "./verification.js";
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,15 @@
1
+ export * from "./audit-event.js";
2
+ export * from "./authority.js";
3
+ export * from "./authorization.js";
4
+ export * from "./business-transaction.js";
5
+ export * from "./execution.js";
6
+ export * from "./intent.js";
7
+ export * from "./override.js";
8
+ export * from "./policy.js";
9
+ export * from "./receipt.js";
10
+ export * from "./refusal-record.js";
11
+ export * from "./replay-result.js";
12
+ export * from "./signature.js";
13
+ export * from "./trust-record.js";
14
+ export * from "./verification.js";
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Parmana Intent.
3
+ *
4
+ * Business intent.
5
+ */
6
+ export interface Intent {
7
+ readonly intentId: string;
8
+ readonly authorizationId: string;
9
+ readonly action: string;
10
+ readonly target: string;
11
+ readonly parameters: Record<string, unknown>;
12
+ readonly createdAt: Date;
13
+ }
14
+ //# sourceMappingURL=intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../src/models/intent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE7C,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Parmana Intent.
3
+ *
4
+ * Business intent.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=intent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../src/models/intent.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,9 @@
1
+ export interface Override {
2
+ readonly overrideId: string;
3
+ readonly businessTransactionId: string;
4
+ readonly approvedBy: string;
5
+ readonly reason: string;
6
+ readonly justification?: string;
7
+ readonly approvedAt: Date;
8
+ }
9
+ //# sourceMappingURL=override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../src/models/override.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;CAC3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"override.js","sourceRoot":"","sources":["../../src/models/override.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Parmana Policy Reference.
3
+ *
4
+ * Versioned policy reference.
5
+ */
6
+ export interface PolicyReference {
7
+ readonly name: string;
8
+ readonly version: string;
9
+ readonly schemaVersion: string;
10
+ }
11
+ //# sourceMappingURL=policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/models/policy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Parmana Policy Reference.
3
+ *
4
+ * Versioned policy reference.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policy.js","sourceRoot":"","sources":["../../src/models/policy.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,10 @@
1
+ export interface Receipt {
2
+ readonly receiptId: string;
3
+ readonly businessTransactionId: string;
4
+ readonly trustRecordHash: string;
5
+ readonly receiptHash: string;
6
+ readonly issuedAt: Date;
7
+ readonly algorithm: string;
8
+ readonly signature: string;
9
+ }
10
+ //# sourceMappingURL=receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../src/models/receipt.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=receipt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receipt.js","sourceRoot":"","sources":["../../src/models/receipt.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ import type { Decision } from "./execution.js";
2
+ import type { Signature } from "./signature.js";
3
+ /**
4
+ * The subset of a Business Transaction's Intent a policy decision was
5
+ * evaluated against. Mirrors @parmana/policy's own IntentSnapshot
6
+ * shape exactly (target, parameters).
7
+ */
8
+ export interface RefusalIntentSnapshot {
9
+ readonly target?: string;
10
+ readonly parameters?: Record<string, unknown>;
11
+ }
12
+ /**
13
+ * One boundSignals entry whose declared signal value did not match
14
+ * the value found at its Intent dot-path. Mirrors
15
+ * @parmana/policy's SignalIntentBindingViolation shape exactly.
16
+ */
17
+ export interface RefusalBindingViolation {
18
+ readonly signalKey: string;
19
+ readonly intentPath: string;
20
+ readonly signalValue: unknown;
21
+ readonly intentValue: unknown;
22
+ }
23
+ /**
24
+ * Refusal Record (RFC-0021).
25
+ *
26
+ * Durable, signed, independently verifiable evidence that a policy
27
+ * decision REJECTED a transaction -- the REJECT-path counterpart to
28
+ * ExecutionTrustRecord. At most one RefusalRecord exists per
29
+ * businessTransactionId.
30
+ */
31
+ export interface RefusalRecord {
32
+ readonly refusalRecordId: string;
33
+ readonly businessTransactionId: string;
34
+ readonly decision: Decision;
35
+ readonly evaluatedIntent: RefusalIntentSnapshot;
36
+ /**
37
+ * Present only when the rejection came from SignalIntentBinder.
38
+ * Absent (not an empty array) for an ordinary PolicyEngine.evaluate
39
+ * REJECT that never reached binding-violation logic at all.
40
+ */
41
+ readonly bindingViolations?: readonly RefusalBindingViolation[];
42
+ /**
43
+ * Authenticated caller who submitted the rejected request. Absent
44
+ * when caller-auth is disabled.
45
+ */
46
+ readonly submittedBy?: string;
47
+ readonly refusalRecordHash: string;
48
+ readonly signature: Signature;
49
+ readonly createdAt: Date;
50
+ }
51
+ //# sourceMappingURL=refusal-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refusal-record.d.ts","sourceRoot":"","sources":["../../src/models/refusal-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/C;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC;IAChD;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAChE;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=refusal-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refusal-record.js","sourceRoot":"","sources":["../../src/models/refusal-record.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface ReplayResult {
2
+ readonly businessTransactionId: string;
3
+ readonly trustRecordHash: string;
4
+ readonly verified: boolean;
5
+ }
6
+ //# sourceMappingURL=replay-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay-result.d.ts","sourceRoot":"","sources":["../../src/models/replay-result.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=replay-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay-result.js","sourceRoot":"","sources":["../../src/models/replay-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Parmana Signature.
3
+ *
4
+ * Cryptographic signature over a canonical Execution Trust Record,
5
+ * proving it was produced by Parmana and has not been modified since
6
+ * signing. See schemas/common/execution-trust-record.schema.json's
7
+ * `signature` property.
8
+ */
9
+ export type SignatureAlgorithm = "ed25519" | "ecdsa-p256" | "dilithium3" | "dilithium5" | "sphincs-plus";
10
+ export interface Signature {
11
+ readonly algorithm: SignatureAlgorithm;
12
+ readonly keyId: string;
13
+ readonly value: string;
14
+ readonly signedAt: Date;
15
+ }
16
+ //# sourceMappingURL=signature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../src/models/signature.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,CAAC;AAEnB,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IAEvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;CACzB"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Parmana Signature.
3
+ *
4
+ * Cryptographic signature over a canonical Execution Trust Record,
5
+ * proving it was produced by Parmana and has not been modified since
6
+ * signing. See schemas/common/execution-trust-record.schema.json's
7
+ * `signature` property.
8
+ */
9
+ export {};
10
+ //# sourceMappingURL=signature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signature.js","sourceRoot":"","sources":["../../src/models/signature.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
@@ -0,0 +1,20 @@
1
+ import type { BusinessTransaction } from "./business-transaction.js";
2
+ import type { Execution } from "./execution.js";
3
+ import type { Override } from "./override.js";
4
+ import type { Receipt } from "./receipt.js";
5
+ import type { Signature } from "./signature.js";
6
+ import type { Verification } from "./verification.js";
7
+ export interface ExecutionTrustRecord {
8
+ readonly trustRecordId: string;
9
+ readonly businessTransactionId: string;
10
+ readonly transaction: BusinessTransaction;
11
+ readonly overrides: Override[];
12
+ readonly executions: Execution[];
13
+ readonly verifications: Verification[];
14
+ readonly receipts: Receipt[];
15
+ readonly trustRecordHash: string;
16
+ readonly signature: Signature;
17
+ readonly createdAt: Date;
18
+ readonly updatedAt: Date;
19
+ }
20
+ //# sourceMappingURL=trust-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trust-record.d.ts","sourceRoot":"","sources":["../../src/models/trust-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAC;IAC/B,QAAQ,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,YAAY,EAAE,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=trust-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trust-record.js","sourceRoot":"","sources":["../../src/models/trust-record.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type VerificationStatus = "VERIFIED" | "FAILED";
2
+ export interface Verification {
3
+ readonly verificationId: string;
4
+ readonly businessTransactionId: string;
5
+ readonly status: VerificationStatus;
6
+ readonly message?: string;
7
+ readonly verifiedAt: Date;
8
+ readonly trustRecordHash: string;
9
+ }
10
+ //# sourceMappingURL=verification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification.d.ts","sourceRoot":"","sources":["../../src/models/verification.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;IAC1B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=verification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification.js","sourceRoot":"","sources":["../../src/models/verification.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Parmana SDK
3
+ *
4
+ * Canonical HTTP transport.
5
+ *
6
+ * Responsibilities:
7
+ * - Send HTTP requests.
8
+ * - Serialize request bodies.
9
+ * - Deserialize responses.
10
+ * - Return canonical TransportResponse objects.
11
+ *
12
+ * This transport does NOT:
13
+ * - evaluate policy
14
+ * - authorize execution
15
+ * - implement business logic
16
+ */
17
+ import type { Transport, TransportRequest, TransportResponse } from "../config/Transport.js";
18
+ import type { Configuration } from "../config/Configuration.js";
19
+ export declare class HttpTransport implements Transport {
20
+ private readonly configuration;
21
+ constructor(configuration: Configuration);
22
+ send<T>(request: TransportRequest): Promise<TransportResponse<T>>;
23
+ private attempt;
24
+ }
25
+ //# sourceMappingURL=HttpTransport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpTransport.d.ts","sourceRoot":"","sources":["../../src/transport/HttpTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EACV,aAAa,EACd,MAAM,4BAA4B,CAAC;AAmIpC,qBAAa,aACX,YAAW,SAAS;IAGlB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAGlC,IAAI,CAAC,CAAC,EACjB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;YA6BlB,OAAO;CA4ItB"}