@owneraio/finp2p-sdk-js 0.28.26 → 0.29.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.
- package/README.md +93 -2
- package/lib/OwneraAPI/__tests__/apiErrorShape.test.d.ts +1 -0
- package/lib/OwneraAPI/__tests__/apiErrorShape.test.js +264 -0
- package/lib/OwneraAPI/__tests__/apiErrorShape.test.js.map +1 -0
- package/lib/OwneraAPI/__tests__/utils.test.d.ts +1 -0
- package/lib/OwneraAPI/__tests__/utils.test.js +82 -0
- package/lib/OwneraAPI/__tests__/utils.test.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/agreements.test.d.ts +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/agreements.test.js +149 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/agreements.test.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/approvalsConfig.test.js +5 -12
- package/lib/OwneraAPI/finp2p-node-api/__tests__/approvalsConfig.test.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/__tests__/collateral.test.d.ts +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/collateral.test.js +502 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/collateral.test.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/createIntentMetadata.test.d.ts +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/createIntentMetadata.test.js +56 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/createIntentMetadata.test.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/dryRunExecute.test.d.ts +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/dryRunExecute.test.js +75 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/dryRunExecute.test.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/pathEncoding.test.d.ts +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/pathEncoding.test.js +348 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/pathEncoding.test.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/rejectIntent.test.d.ts +1 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/rejectIntent.test.js +97 -0
- package/lib/OwneraAPI/finp2p-node-api/__tests__/rejectIntent.test.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/agreements.d.ts +8 -0
- package/lib/OwneraAPI/finp2p-node-api/agreements.js +31 -0
- package/lib/OwneraAPI/finp2p-node-api/agreements.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/certificates.js +15 -6
- package/lib/OwneraAPI/finp2p-node-api/certificates.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/collateral.d.ts +16 -0
- package/lib/OwneraAPI/finp2p-node-api/collateral.js +131 -0
- package/lib/OwneraAPI/finp2p-node-api/collateral.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/custodies.js +13 -2
- package/lib/OwneraAPI/finp2p-node-api/custodies.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/documents.js +22 -9
- package/lib/OwneraAPI/finp2p-node-api/documents.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/investorAccounts.d.ts +13 -0
- package/lib/OwneraAPI/finp2p-node-api/investorAccounts.js +71 -0
- package/lib/OwneraAPI/finp2p-node-api/investorAccounts.js.map +1 -0
- package/lib/OwneraAPI/finp2p-node-api/ledgers.js +13 -2
- package/lib/OwneraAPI/finp2p-node-api/ledgers.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/messages.js +12 -3
- package/lib/OwneraAPI/finp2p-node-api/messages.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/operations.js +37 -15
- package/lib/OwneraAPI/finp2p-node-api/operations.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/policies.js +14 -5
- package/lib/OwneraAPI/finp2p-node-api/policies.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/profiles.js +82 -45
- package/lib/OwneraAPI/finp2p-node-api/profiles.js.map +1 -1
- package/lib/OwneraAPI/finp2p-node-api/tokens.js +20 -0
- package/lib/OwneraAPI/finp2p-node-api/tokens.js.map +1 -1
- package/lib/OwneraAPI/index.js +6 -0
- package/lib/OwneraAPI/index.js.map +1 -1
- package/lib/OwneraAPI/oss-api/__tests__/buildGraphQLQuery.test.d.ts +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/buildGraphQLQuery.test.js +253 -0
- package/lib/OwneraAPI/oss-api/__tests__/buildGraphQLQuery.test.js.map +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/filterUtils.test.d.ts +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/filterUtils.test.js +15 -0
- package/lib/OwneraAPI/oss-api/__tests__/filterUtils.test.js.map +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/getAgreements.test.d.ts +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/getAgreements.test.js +175 -0
- package/lib/OwneraAPI/oss-api/__tests__/getAgreements.test.js.map +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/getAllExecutionPlans.test.js +52 -0
- package/lib/OwneraAPI/oss-api/__tests__/getAllExecutionPlans.test.js.map +1 -1
- package/lib/OwneraAPI/oss-api/__tests__/getCollateralAgreements.test.d.ts +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/getCollateralAgreements.test.js +321 -0
- package/lib/OwneraAPI/oss-api/__tests__/getCollateralAgreements.test.js.map +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/getCollateralReports.test.d.ts +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/getCollateralReports.test.js +152 -0
- package/lib/OwneraAPI/oss-api/__tests__/getCollateralReports.test.js.map +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/ossQueryEscaping.test.d.ts +1 -0
- package/lib/OwneraAPI/oss-api/__tests__/ossQueryEscaping.test.js +347 -0
- package/lib/OwneraAPI/oss-api/__tests__/ossQueryEscaping.test.js.map +1 -0
- package/lib/OwneraAPI/oss-api/filterUtils.d.ts +20 -0
- package/lib/OwneraAPI/oss-api/filterUtils.js +57 -5
- package/lib/OwneraAPI/oss-api/filterUtils.js.map +1 -1
- package/lib/OwneraAPI/oss-api/oss.js +730 -74
- package/lib/OwneraAPI/oss-api/oss.js.map +1 -1
- package/lib/OwneraAPI/oss-api/queryUtils.d.ts +1 -0
- package/lib/OwneraAPI/oss-api/queryUtils.js +6 -5
- package/lib/OwneraAPI/oss-api/queryUtils.js.map +1 -1
- package/lib/OwneraAPI/oss-api/queryValidation.d.ts +3 -1
- package/lib/OwneraAPI/oss-api/queryValidation.js +21 -2
- package/lib/OwneraAPI/oss-api/queryValidation.js.map +1 -1
- package/lib/OwneraAPI/payment-adapter-api/__tests__/updateBalance.test.d.ts +1 -0
- package/lib/OwneraAPI/payment-adapter-api/__tests__/updateBalance.test.js +42 -0
- package/lib/OwneraAPI/payment-adapter-api/__tests__/updateBalance.test.js.map +1 -0
- package/lib/OwneraAPI/payment-adapter-api/vanilla/__tests__/payouts.test.d.ts +1 -0
- package/lib/OwneraAPI/payment-adapter-api/vanilla/__tests__/payouts.test.js +73 -0
- package/lib/OwneraAPI/payment-adapter-api/vanilla/__tests__/payouts.test.js.map +1 -0
- package/lib/OwneraAPI/payment-adapter-api/vanilla/payouts.js +23 -11
- package/lib/OwneraAPI/payment-adapter-api/vanilla/payouts.js.map +1 -1
- package/lib/OwneraAPI/payment-adapter-api/vanilla/update-balance.d.ts +1 -1
- package/lib/OwneraAPI/payment-adapter-api/vanilla/update-balance.js +3 -1
- package/lib/OwneraAPI/payment-adapter-api/vanilla/update-balance.js.map +1 -1
- package/lib/OwneraAPI/utils.d.ts +39 -0
- package/lib/OwneraAPI/utils.js +176 -82
- package/lib/OwneraAPI/utils.js.map +1 -1
- package/lib/core/__tests__/consoleLogger.test.d.ts +1 -0
- package/lib/core/__tests__/consoleLogger.test.js +269 -0
- package/lib/core/__tests__/consoleLogger.test.js.map +1 -0
- package/lib/core/__tests__/createAssetNameUniqueness.test.d.ts +1 -0
- package/lib/core/__tests__/createAssetNameUniqueness.test.js +95 -0
- package/lib/core/__tests__/createAssetNameUniqueness.test.js.map +1 -0
- package/lib/core/__tests__/custodianPrecedence.test.d.ts +1 -0
- package/lib/core/__tests__/custodianPrecedence.test.js +683 -0
- package/lib/core/__tests__/custodianPrecedence.test.js.map +1 -0
- package/lib/core/__tests__/executeIntentSettlementAssets.test.d.ts +1 -0
- package/lib/core/__tests__/executeIntentSettlementAssets.test.js +128 -0
- package/lib/core/__tests__/executeIntentSettlementAssets.test.js.map +1 -0
- package/lib/core/__tests__/logException.test.d.ts +1 -0
- package/lib/core/__tests__/logException.test.js +49 -0
- package/lib/core/__tests__/logException.test.js.map +1 -0
- package/lib/core/__tests__/multiplyDecimalStrings.test.d.ts +1 -0
- package/lib/core/__tests__/multiplyDecimalStrings.test.js +37 -0
- package/lib/core/__tests__/multiplyDecimalStrings.test.js.map +1 -0
- package/lib/core/__tests__/settlementExecutionAmount.test.d.ts +1 -0
- package/lib/core/__tests__/settlementExecutionAmount.test.js +300 -0
- package/lib/core/__tests__/settlementExecutionAmount.test.js.map +1 -0
- package/lib/core/asset.js +21 -27
- package/lib/core/asset.js.map +1 -1
- package/lib/core/custodian.d.ts +30 -0
- package/lib/core/custodian.js +49 -0
- package/lib/core/custodian.js.map +1 -0
- package/lib/core/index.d.ts +1 -0
- package/lib/core/index.js +3 -1
- package/lib/core/index.js.map +1 -1
- package/lib/core/intents/__tests__/intentErrorCode.test.d.ts +1 -0
- package/lib/core/intents/__tests__/intentErrorCode.test.js +111 -0
- package/lib/core/intents/__tests__/intentErrorCode.test.js.map +1 -0
- package/lib/core/intents/__tests__/intentHandleReject.test.d.ts +1 -0
- package/lib/core/intents/__tests__/intentHandleReject.test.js +50 -0
- package/lib/core/intents/__tests__/intentHandleReject.test.js.map +1 -0
- package/lib/core/intents/__tests__/loanIntentAdditionalAccounts.test.d.ts +1 -0
- package/lib/core/intents/__tests__/loanIntentAdditionalAccounts.test.js +185 -0
- package/lib/core/intents/__tests__/loanIntentAdditionalAccounts.test.js.map +1 -0
- package/lib/core/intents/__tests__/loanIntentCustodianPrecedence.test.d.ts +1 -0
- package/lib/core/intents/__tests__/loanIntentCustodianPrecedence.test.js +85 -0
- package/lib/core/intents/__tests__/loanIntentCustodianPrecedence.test.js.map +1 -0
- package/lib/core/intents/__tests__/loanIntentMetadata.test.d.ts +1 -0
- package/lib/core/intents/__tests__/loanIntentMetadata.test.js +81 -0
- package/lib/core/intents/__tests__/loanIntentMetadata.test.js.map +1 -0
- package/lib/core/intents/__tests__/moveIntentSegregatedAccounts.test.d.ts +1 -0
- package/lib/core/intents/__tests__/moveIntentSegregatedAccounts.test.js +203 -0
- package/lib/core/intents/__tests__/moveIntentSegregatedAccounts.test.js.map +1 -0
- package/lib/core/intents/createIntent/createIntent.js +4 -3
- package/lib/core/intents/createIntent/createIntent.js.map +1 -1
- package/lib/core/intents/createIntent/createMoveIntentReq.d.ts +0 -1
- package/lib/core/intents/createIntent/createMoveIntentReq.js +15 -8
- package/lib/core/intents/createIntent/createMoveIntentReq.js.map +1 -1
- package/lib/core/intents/createIntent/helpers.d.ts +6 -2
- package/lib/core/intents/createIntent/helpers.js +27 -17
- package/lib/core/intents/createIntent/helpers.js.map +1 -1
- package/lib/core/intents/createLoanIntent.js +64 -19
- package/lib/core/intents/createLoanIntent.js.map +1 -1
- package/lib/core/intents/executeIntent.js +102 -41
- package/lib/core/intents/executeIntent.js.map +1 -1
- package/lib/core/intents/executeLoanIntent.js +48 -23
- package/lib/core/intents/executeLoanIntent.js.map +1 -1
- package/lib/core/intents/executeMoveIntent.js.map +1 -1
- package/lib/core/intents/executePrivateIntent.js +46 -13
- package/lib/core/intents/executePrivateIntent.js.map +1 -1
- package/lib/core/intents/executeRedemptionIntent.d.ts +1 -0
- package/lib/core/intents/executeRedemptionIntent.js +23 -9
- package/lib/core/intents/executeRedemptionIntent.js.map +1 -1
- package/lib/core/intents/executeTransferRequest.d.ts +5 -0
- package/lib/core/intents/executeTransferRequest.js +14 -3
- package/lib/core/intents/executeTransferRequest.js.map +1 -1
- package/lib/core/intents/getIntent.js +9 -0
- package/lib/core/intents/getIntent.js.map +1 -1
- package/lib/core/intents/transfer.js +7 -2
- package/lib/core/intents/transfer.js.map +1 -1
- package/lib/core/intents/updateMoveIntentReq.d.ts +4 -3
- package/lib/core/intents/updateMoveIntentReq.js +14 -12
- package/lib/core/intents/updateMoveIntentReq.js.map +1 -1
- package/lib/core/intents/utils.d.ts +15 -7
- package/lib/core/intents/utils.js +35 -26
- package/lib/core/intents/utils.js.map +1 -1
- package/lib/core/logger.js +128 -22
- package/lib/core/logger.js.map +1 -1
- package/lib/core/normalizers/__tests__/normalizeOperationResponse.test.d.ts +1 -0
- package/lib/core/normalizers/__tests__/normalizeOperationResponse.test.js +60 -0
- package/lib/core/normalizers/__tests__/normalizeOperationResponse.test.js.map +1 -0
- package/lib/core/normalizers/normalizeOperationResponse.d.ts +6 -0
- package/lib/core/normalizers/normalizeOperationResponse.js +4 -5
- package/lib/core/normalizers/normalizeOperationResponse.js.map +1 -1
- package/lib/core/sdk.d.ts +4 -0
- package/lib/core/sdk.js +2 -2
- package/lib/core/sdk.js.map +1 -1
- package/lib/core/user.d.ts +2 -2
- package/lib/core/user.js +6 -3
- package/lib/core/user.js.map +1 -1
- package/lib/core/utils.d.ts +17 -1
- package/lib/core/utils.js +75 -16
- package/lib/core/utils.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/types/Agreements/Agreements.d.ts +355 -0
- package/lib/types/Agreements/Agreements.js +3 -0
- package/lib/types/Agreements/Agreements.js.map +1 -0
- package/lib/types/Agreements/index.d.ts +1 -0
- package/lib/types/Agreements/index.js +18 -0
- package/lib/types/Agreements/index.js.map +1 -0
- package/lib/types/Collateral/Collateral.d.ts +564 -0
- package/lib/types/Collateral/Collateral.js +3 -0
- package/lib/types/Collateral/Collateral.js.map +1 -0
- package/lib/types/Collateral/index.d.ts +1 -0
- package/lib/types/Collateral/index.js +18 -0
- package/lib/types/Collateral/index.js.map +1 -0
- package/lib/types/Core/Intents.d.ts +115 -3
- package/lib/types/Core/Intents.js +9 -0
- package/lib/types/Core/Intents.js.map +1 -1
- package/lib/types/Core/OwneraAPI.d.ts +25 -1
- package/lib/types/Core/User.d.ts +28 -3
- package/lib/types/InvestorAccounts/InvestorAccounts.d.ts +171 -0
- package/lib/types/InvestorAccounts/InvestorAccounts.js +35 -0
- package/lib/types/InvestorAccounts/InvestorAccounts.js.map +1 -0
- package/lib/types/InvestorAccounts/index.d.ts +1 -0
- package/lib/types/InvestorAccounts/index.js +18 -0
- package/lib/types/InvestorAccounts/index.js.map +1 -0
- package/lib/types/Operations/Operations.d.ts +11 -0
- package/lib/types/Oss/Agreements.d.ts +671 -0
- package/lib/types/Oss/Agreements.js +3 -0
- package/lib/types/Oss/Agreements.js.map +1 -0
- package/lib/types/Oss/Oss.d.ts +81 -1
- package/lib/types/Oss/OssSchemas.d.ts +50 -0
- package/lib/types/Oss/OssSchemas.js.map +1 -1
- package/lib/types/Oss/index.d.ts +1 -0
- package/lib/types/Oss/index.js +1 -0
- package/lib/types/Oss/index.js.map +1 -1
- package/lib/types/Oss/utils.d.ts +39 -0
- package/lib/types/PaymentAdapter/PaymentAdapter.d.ts +7 -0
- package/lib/types/PaymentAdapter/index.d.ts +33 -1
- package/lib/types/Profiles/Intents.d.ts +24 -12
- package/lib/types/Profiles/Profiles.d.ts +46 -1
- package/lib/types/Tokens/Tokens.d.ts +109 -1
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +3 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/utils.d.ts +5 -0
- package/lib/types/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import { PageInfo, PaginateInput, SortOrder } from './Pagination';
|
|
2
|
+
/**
|
|
3
|
+
* OSS read-model shapes for the Agreement resource (type 107) and the collateral
|
|
4
|
+
* facade module — authored from oss `graphql/ownership.graphql` and
|
|
5
|
+
* `graphql/collateral.graphql`. GraphQL emits `null` (not `undefined`) for absent
|
|
6
|
+
* nullable fields.
|
|
7
|
+
*/
|
|
8
|
+
/** One entry of an agreement's org-level access list */
|
|
9
|
+
export interface AgreementParticipantOss {
|
|
10
|
+
organizationId: string;
|
|
11
|
+
/** Access roles of the organization (CONTRIBUTOR, OBSERVER) */
|
|
12
|
+
roles: string[];
|
|
13
|
+
}
|
|
14
|
+
/** Binding of an open-string agreement role to the parties that may act for it */
|
|
15
|
+
export interface AgreementRoleBindingOss {
|
|
16
|
+
role: string;
|
|
17
|
+
parties: string[];
|
|
18
|
+
}
|
|
19
|
+
/** CAIP-19 ledger asset identifier listed as eligible under an agreement */
|
|
20
|
+
export interface AgreementEligibleAssetOss {
|
|
21
|
+
network: string;
|
|
22
|
+
standard: string;
|
|
23
|
+
tokenId: string;
|
|
24
|
+
}
|
|
25
|
+
/** Consent signature entry of an agreement's contract zone (signature payload not exposed) */
|
|
26
|
+
export interface AgreementConsentSignatureOss {
|
|
27
|
+
role: string;
|
|
28
|
+
signerParty: string;
|
|
29
|
+
}
|
|
30
|
+
export interface AgreementEventAfterOss {
|
|
31
|
+
changeStateTo: string | null;
|
|
32
|
+
}
|
|
33
|
+
/** One entry of an agreement's append-only event log */
|
|
34
|
+
export interface AgreementEventEntryOss {
|
|
35
|
+
id: string;
|
|
36
|
+
/** Open-string event type (application vocabulary) */
|
|
37
|
+
eventType: string;
|
|
38
|
+
/** Agreement role of the emitter */
|
|
39
|
+
emitterRole: string;
|
|
40
|
+
/** Monotonic per-agreement sequence */
|
|
41
|
+
sequence: number;
|
|
42
|
+
/** Event time (epoch seconds) */
|
|
43
|
+
occurredAt: number;
|
|
44
|
+
/** Application schema tag for the payload */
|
|
45
|
+
payloadType: string;
|
|
46
|
+
/** Base64-encoded opaque payload, null when the event carries none */
|
|
47
|
+
payload: string | null;
|
|
48
|
+
/** Ids of the earlier events this event references */
|
|
49
|
+
referencedEventIds: string[] | null;
|
|
50
|
+
after: AgreementEventAfterOss | null;
|
|
51
|
+
}
|
|
52
|
+
/** Ledger-level footprint of a container account for one CAIP-19 asset */
|
|
53
|
+
export interface AgreementAssetFootprintOss {
|
|
54
|
+
network: string;
|
|
55
|
+
standard: string;
|
|
56
|
+
tokenId: string;
|
|
57
|
+
/** Ledger account (e.g. on-chain address) serving the asset */
|
|
58
|
+
networkAccount: string;
|
|
59
|
+
}
|
|
60
|
+
export interface AccountPolicyEligibilityOss {
|
|
61
|
+
assetTypes: string[];
|
|
62
|
+
assetNameRegexp: string;
|
|
63
|
+
assetCodes: string[];
|
|
64
|
+
ledgerNames: string[];
|
|
65
|
+
}
|
|
66
|
+
export interface AccountPolicyConstraintsOss {
|
|
67
|
+
allowedCounterOrganizations: string[];
|
|
68
|
+
allowedCounterAssetTypes: string[];
|
|
69
|
+
allowedCounterFinIds: string[];
|
|
70
|
+
allowedCounterRoles: string[];
|
|
71
|
+
}
|
|
72
|
+
export interface AccountPolicyAuthorizationOss {
|
|
73
|
+
requiredRoles: string[];
|
|
74
|
+
requiredSigners: string[];
|
|
75
|
+
threshold: number;
|
|
76
|
+
}
|
|
77
|
+
export interface AccountPolicyTriggerOss {
|
|
78
|
+
type: string;
|
|
79
|
+
asserterRole: string;
|
|
80
|
+
}
|
|
81
|
+
export interface AccountPolicyConditionOss {
|
|
82
|
+
name: string;
|
|
83
|
+
trigger: AccountPolicyTriggerOss | null;
|
|
84
|
+
authorization: AccountPolicyAuthorizationOss | null;
|
|
85
|
+
constraints: AccountPolicyConstraintsOss | null;
|
|
86
|
+
}
|
|
87
|
+
export interface AccountPolicySignerOss {
|
|
88
|
+
signerParty: string;
|
|
89
|
+
}
|
|
90
|
+
/** Account-scoped authorization policy projection (signer payloads are not exposed) */
|
|
91
|
+
export interface AccountPolicyOss {
|
|
92
|
+
policyId: string;
|
|
93
|
+
version: number;
|
|
94
|
+
/** POLICY_DIRECTION_INFLOW / POLICY_DIRECTION_OUTFLOW / POLICY_DIRECTION_BOTH */
|
|
95
|
+
direction: string;
|
|
96
|
+
eligibility: AccountPolicyEligibilityOss | null;
|
|
97
|
+
constraints: AccountPolicyConstraintsOss | null;
|
|
98
|
+
authorization: AccountPolicyAuthorizationOss | null;
|
|
99
|
+
conditions: AccountPolicyConditionOss[];
|
|
100
|
+
allowedInitiatorRoles: string[];
|
|
101
|
+
agreementRef: string;
|
|
102
|
+
beneficialOwnerRole: string;
|
|
103
|
+
/** The specific investor party the governed container is bounded to; empty = role-bounded */
|
|
104
|
+
boundParty: string;
|
|
105
|
+
signers: AccountPolicySignerOss[];
|
|
106
|
+
}
|
|
107
|
+
/** One authored container declaration of the provisioning outline */
|
|
108
|
+
export interface ContainerSpecOss {
|
|
109
|
+
/** Stable authoring key; identity across amendments */
|
|
110
|
+
key: string;
|
|
111
|
+
servesRoles: string[];
|
|
112
|
+
/** Specific investor party this container is bounded to; empty = role-bounded only */
|
|
113
|
+
boundParty: string;
|
|
114
|
+
/** Override of the spec-level provisioner role; empty = default */
|
|
115
|
+
provisionerRole: string;
|
|
116
|
+
/** The org of the provisioner role that provisions THIS container; empty = the role's single party */
|
|
117
|
+
provisionerParty: string;
|
|
118
|
+
/** The subset of the agreement's eligible assets this container holds; empty = all of them */
|
|
119
|
+
eligibleAssets: AgreementEligibleAssetOss[];
|
|
120
|
+
/** Override of the spec-level policy template; null = default */
|
|
121
|
+
policyTemplate: AccountPolicyOss | null;
|
|
122
|
+
}
|
|
123
|
+
/** The provisioning arm of the `AgreementSetup` union */
|
|
124
|
+
export interface AgreementProvisioningSpecOss {
|
|
125
|
+
provisionerRole: string;
|
|
126
|
+
policyTemplate: AccountPolicyOss | null;
|
|
127
|
+
/** Declared containers (closed whitelist); empty = one implicit multi-chain default container */
|
|
128
|
+
containers: ContainerSpecOss[];
|
|
129
|
+
}
|
|
130
|
+
export interface AgreementSchemaHashOss {
|
|
131
|
+
hash: string;
|
|
132
|
+
hashAlgorithm: string;
|
|
133
|
+
}
|
|
134
|
+
/** `AgreementSchemaReference` union, url arm */
|
|
135
|
+
export interface AgreementSchemaUrlReferenceOss {
|
|
136
|
+
url: string;
|
|
137
|
+
format: string;
|
|
138
|
+
hash: AgreementSchemaHashOss | null;
|
|
139
|
+
}
|
|
140
|
+
/** `AgreementSchemaReference` union, document arm */
|
|
141
|
+
export interface AgreementSchemaDocumentReferenceOss {
|
|
142
|
+
key: string;
|
|
143
|
+
path: string;
|
|
144
|
+
format: string;
|
|
145
|
+
hash: AgreementSchemaHashOss | null;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* One schema reference as the read model serves it. The union arm is resolved by
|
|
149
|
+
* inline fragments in the query: `url` identifies the url arm, `key` the document arm.
|
|
150
|
+
*/
|
|
151
|
+
export type AgreementSchemaReferenceOss = AgreementSchemaUrlReferenceOss | AgreementSchemaDocumentReferenceOss | Record<string, never>;
|
|
152
|
+
export interface AgreementSchemaRefOss {
|
|
153
|
+
name: string;
|
|
154
|
+
version: string;
|
|
155
|
+
reference: AgreementSchemaReferenceOss | null;
|
|
156
|
+
}
|
|
157
|
+
export interface AgreementDefinitionStatesOss {
|
|
158
|
+
onCreation: string;
|
|
159
|
+
onApproval: string;
|
|
160
|
+
finalStates: string[];
|
|
161
|
+
allowedStates: string[];
|
|
162
|
+
}
|
|
163
|
+
export interface AgreementDefinitionTransitionOss {
|
|
164
|
+
event: string;
|
|
165
|
+
toState: string;
|
|
166
|
+
fromStates: string[];
|
|
167
|
+
guard: string;
|
|
168
|
+
targetSelectableByEvent: boolean;
|
|
169
|
+
selectableStates: string[] | null;
|
|
170
|
+
}
|
|
171
|
+
export interface AgreementDefinitionAllowedEventOss {
|
|
172
|
+
type: string;
|
|
173
|
+
guard: string;
|
|
174
|
+
schema: AgreementSchemaRefOss | null;
|
|
175
|
+
}
|
|
176
|
+
/** The co-signed state machine; present only on agreements proposed with a definition */
|
|
177
|
+
export interface AgreementDefinitionOss {
|
|
178
|
+
name: string;
|
|
179
|
+
version: string;
|
|
180
|
+
states: AgreementDefinitionStatesOss | null;
|
|
181
|
+
schema: AgreementSchemaRefOss | null;
|
|
182
|
+
emitterRoles: string[];
|
|
183
|
+
guard: string;
|
|
184
|
+
transitions: AgreementDefinitionTransitionOss[];
|
|
185
|
+
allowedEvents: AgreementDefinitionAllowedEventOss[];
|
|
186
|
+
}
|
|
187
|
+
/** One entry of an agreement's container accounts registry */
|
|
188
|
+
export interface AgreementAccountOss {
|
|
189
|
+
agreementId: string;
|
|
190
|
+
/** Container account finId (hex-encoded public key) */
|
|
191
|
+
finId: string;
|
|
192
|
+
/** Organization where the account is registered */
|
|
193
|
+
orgId: string;
|
|
194
|
+
/** Custodian organization of the account, empty when none */
|
|
195
|
+
custodianOrgId: string;
|
|
196
|
+
policyId: string;
|
|
197
|
+
policyVersion: number;
|
|
198
|
+
servesRoles: string[];
|
|
199
|
+
provisionerRole: string;
|
|
200
|
+
/** Registry entry status (ACTIVE, RETIRED) */
|
|
201
|
+
status: string;
|
|
202
|
+
footprints: AgreementAssetFootprintOss[];
|
|
203
|
+
/** The authored container declaration this entry materializes */
|
|
204
|
+
spec: ContainerSpecOss | null;
|
|
205
|
+
}
|
|
206
|
+
/** Multi-party Agreement resource (type 107) projected into the read model */
|
|
207
|
+
export interface AgreementNodeOss {
|
|
208
|
+
/** Agreement resource id (orgId:107:rawId) */
|
|
209
|
+
id: string;
|
|
210
|
+
/** Organization owning (originating) the agreement resource */
|
|
211
|
+
organizationId: string;
|
|
212
|
+
/** Lifecycle status (AGREEMENT_STATUS_DRAFT, _PROPOSED, _ACTIVE, _SUSPENDED, _TERMINATED) */
|
|
213
|
+
status: string;
|
|
214
|
+
/** Amendment number; contract-zone changes bump it */
|
|
215
|
+
version: number;
|
|
216
|
+
consentRoles: string[];
|
|
217
|
+
participants: AgreementParticipantOss[];
|
|
218
|
+
roles: AgreementRoleBindingOss[];
|
|
219
|
+
eligibleAssets: AgreementEligibleAssetOss[];
|
|
220
|
+
termsType: string;
|
|
221
|
+
/** Base64-encoded application terms payload, opaque to the network */
|
|
222
|
+
terms: string;
|
|
223
|
+
/** Validity window start (epoch seconds) */
|
|
224
|
+
validFrom: number;
|
|
225
|
+
/** Validity window end (epoch seconds) */
|
|
226
|
+
validUntil: number;
|
|
227
|
+
signatures: AgreementConsentSignatureOss[];
|
|
228
|
+
events: AgreementEventEntryOss[];
|
|
229
|
+
accounts: AgreementAccountOss[];
|
|
230
|
+
/** The type-specific setup; today only the provisioning arm exists */
|
|
231
|
+
setup: AgreementProvisioningSpecOss | null;
|
|
232
|
+
definition: AgreementDefinitionOss | null;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Named-properties filter for `getAgreements`. Only the keys the OSS filter honors are
|
|
236
|
+
* exposed — an unknown key silently returns an empty page.
|
|
237
|
+
*/
|
|
238
|
+
export interface GetAgreementsFilter extends PaginateInput {
|
|
239
|
+
/** Exact match. For a substring, use `idContains` instead. */
|
|
240
|
+
id?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Substring match on the agreement id, for a search box (OSS `CONTAINS`, case-insensitive).
|
|
243
|
+
* Separate from `id` rather than an operator flag on it, like `reportIdContains`.
|
|
244
|
+
*/
|
|
245
|
+
idContains?: string;
|
|
246
|
+
/** The CREATING organization. OSS cannot filter agreements by participant organization. */
|
|
247
|
+
organizationId?: string;
|
|
248
|
+
status?: string[];
|
|
249
|
+
}
|
|
250
|
+
/** Named-properties filter for `getAgreementAccounts` */
|
|
251
|
+
export interface GetAgreementAccountsFilter extends PaginateInput {
|
|
252
|
+
agreementId?: string;
|
|
253
|
+
finId?: string;
|
|
254
|
+
orgId?: string;
|
|
255
|
+
status?: string[];
|
|
256
|
+
}
|
|
257
|
+
export interface GetAgreementsResponseOss {
|
|
258
|
+
agreements: {
|
|
259
|
+
nodes: AgreementNodeOss[];
|
|
260
|
+
pageInfo: PageInfo;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
export interface GetAgreementAccountsResponseOss {
|
|
264
|
+
agreementAccounts: {
|
|
265
|
+
nodes: AgreementAccountOss[];
|
|
266
|
+
pageInfo: PageInfo;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
export interface CollateralEligibleAssetOss {
|
|
270
|
+
assetId: string;
|
|
271
|
+
/** Decimal fraction (0.10 = 10%) */
|
|
272
|
+
haircut: number | null;
|
|
273
|
+
caip19: string | null;
|
|
274
|
+
}
|
|
275
|
+
export interface CollateralTermsOss {
|
|
276
|
+
baseCurrency: string | null;
|
|
277
|
+
eligibleAssets: CollateralEligibleAssetOss[] | null;
|
|
278
|
+
haircutApplyMethod: string | null;
|
|
279
|
+
}
|
|
280
|
+
export interface CollateralRoleBindingOss {
|
|
281
|
+
role: string;
|
|
282
|
+
parties: string[] | null;
|
|
283
|
+
}
|
|
284
|
+
export interface CollateralParticipantOss {
|
|
285
|
+
orgId: string;
|
|
286
|
+
role: string | null;
|
|
287
|
+
}
|
|
288
|
+
export interface CollateralContainerOss {
|
|
289
|
+
/** Facade-authored canonical key: pledger-side / receiver-side / shared */
|
|
290
|
+
key: string;
|
|
291
|
+
finId: string;
|
|
292
|
+
orgId: string | null;
|
|
293
|
+
status: string;
|
|
294
|
+
/** FinId of the dedicated investor; null for shared containers */
|
|
295
|
+
boundParty: string | null;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* One declared report status. A same-status entry carrying a `plan-failed: <planId> — <reason>` note
|
|
299
|
+
* is an annotation (a failed leg), not a transition; `note === 'deadline'` marks the settlement as
|
|
300
|
+
* incomplete. Resolutions and rejections are never in the history — see `resolutions` / `rejections`.
|
|
301
|
+
*/
|
|
302
|
+
export interface CollateralReportStatusEntryOss {
|
|
303
|
+
status: string;
|
|
304
|
+
sequence: number;
|
|
305
|
+
emitterRole: string | null;
|
|
306
|
+
/** Null today: the facade fold does not populate it yet */
|
|
307
|
+
emitterOrgId: string | null;
|
|
308
|
+
/** Why the engine declared this status: `deadline`, or `plan-failed: <planId> — <reason>` */
|
|
309
|
+
note: string | null;
|
|
310
|
+
timestamp: number | null;
|
|
311
|
+
}
|
|
312
|
+
export interface CollateralReportResolutionOss {
|
|
313
|
+
resolvedBy: string;
|
|
314
|
+
sequence: number;
|
|
315
|
+
timestamp: number | null;
|
|
316
|
+
note: string | null;
|
|
317
|
+
}
|
|
318
|
+
export interface CollateralReportRejectionOss {
|
|
319
|
+
rejectedBy: string;
|
|
320
|
+
sequence: number;
|
|
321
|
+
timestamp: number | null;
|
|
322
|
+
note: string | null;
|
|
323
|
+
}
|
|
324
|
+
/** The valuation authored for an attribution line and projected onto execution-plan assets. */
|
|
325
|
+
export interface CollateralReportAssetMetadataOss {
|
|
326
|
+
appliedHaircut: string | null;
|
|
327
|
+
baseUnitPrice: string | null;
|
|
328
|
+
baseValue: string | null;
|
|
329
|
+
baseUnits: string | null;
|
|
330
|
+
finalUnitPrice: string | null;
|
|
331
|
+
finalValue: string | null;
|
|
332
|
+
finalUnits: string | null;
|
|
333
|
+
}
|
|
334
|
+
export interface CollateralReportActionAssetOss {
|
|
335
|
+
assetIdType: string | null;
|
|
336
|
+
assetId: string;
|
|
337
|
+
name: string | null;
|
|
338
|
+
ticker: string | null;
|
|
339
|
+
assetIdentifierType: string | null;
|
|
340
|
+
assetIdentifierValue: string | null;
|
|
341
|
+
metadata: CollateralReportAssetMetadataOss | null;
|
|
342
|
+
}
|
|
343
|
+
export interface CollateralRecoveredAssetOss {
|
|
344
|
+
assetId: string;
|
|
345
|
+
quantity: string;
|
|
346
|
+
}
|
|
347
|
+
export interface CollateralReportActionOss {
|
|
348
|
+
action: string;
|
|
349
|
+
nominalAmount: string | null;
|
|
350
|
+
recoveredAsset: CollateralRecoveredAssetOss | null;
|
|
351
|
+
}
|
|
352
|
+
export interface CollateralNegotiationLineOss {
|
|
353
|
+
assetId: string;
|
|
354
|
+
quantity: string;
|
|
355
|
+
}
|
|
356
|
+
export interface CollateralNegotiationRoundOss {
|
|
357
|
+
round: number;
|
|
358
|
+
action: string;
|
|
359
|
+
by: string;
|
|
360
|
+
lines: CollateralNegotiationLineOss[] | null;
|
|
361
|
+
intentId: string | null;
|
|
362
|
+
reason: string | null;
|
|
363
|
+
sequence: number;
|
|
364
|
+
timestamp: number | null;
|
|
365
|
+
}
|
|
366
|
+
export interface CollateralNegotiationThreadOss {
|
|
367
|
+
negotiationId: string;
|
|
368
|
+
kind: string;
|
|
369
|
+
status: string;
|
|
370
|
+
openedBy: string | null;
|
|
371
|
+
standingRound: number;
|
|
372
|
+
standingBy: string | null;
|
|
373
|
+
agreedLines: CollateralNegotiationLineOss[] | null;
|
|
374
|
+
intentId: string | null;
|
|
375
|
+
rounds: CollateralNegotiationRoundOss[] | null;
|
|
376
|
+
}
|
|
377
|
+
export interface CollateralExecutionPlanInstructionOss {
|
|
378
|
+
sequence: number;
|
|
379
|
+
status: string;
|
|
380
|
+
errorCode: number | null;
|
|
381
|
+
errorMessage: string | null;
|
|
382
|
+
}
|
|
383
|
+
export interface CollateralExecutionPlanOss {
|
|
384
|
+
planId: string;
|
|
385
|
+
status: string;
|
|
386
|
+
/**
|
|
387
|
+
* What this plan moved: the report's eligible-asset line for it, valuation included. An asset the report declares
|
|
388
|
+
* on no line (a substitution's recovered asset, a settlement leg) carries `assetId` alone. Derived from the plan's
|
|
389
|
+
* own instructions, so `null` until the plan replicates.
|
|
390
|
+
*/
|
|
391
|
+
asset: CollateralReportActionAssetOss | null;
|
|
392
|
+
/** Decimal string: the quantity this plan's instructions move. `null` until the plan replicates. */
|
|
393
|
+
quantity: string | null;
|
|
394
|
+
failureReason: string | null;
|
|
395
|
+
instructions: CollateralExecutionPlanInstructionOss[] | null;
|
|
396
|
+
/** Epoch ms */
|
|
397
|
+
createdAt: number | null;
|
|
398
|
+
/** Epoch ms */
|
|
399
|
+
lastModified: number | null;
|
|
400
|
+
}
|
|
401
|
+
/** `open` as raised; `resolved` once an ACCEPTED manual resolve cites it (derived, never authored) */
|
|
402
|
+
export type CollateralReportExceptionStatusOss = 'open' | 'resolved';
|
|
403
|
+
/** One diagnostic leg that a report exception is about */
|
|
404
|
+
export interface CollateralExceptionDetailOss {
|
|
405
|
+
/** The failed plan, when there was one */
|
|
406
|
+
executionPlanId: string | null;
|
|
407
|
+
assetId: string | null;
|
|
408
|
+
/** Decimal string: the amount at issue */
|
|
409
|
+
quantity: string | null;
|
|
410
|
+
}
|
|
411
|
+
/** An exception raised against a report that cannot be covered */
|
|
412
|
+
export interface CollateralReportExceptionOss {
|
|
413
|
+
exceptionId: string;
|
|
414
|
+
status: CollateralReportExceptionStatusOss;
|
|
415
|
+
/** The role whose side the problem is on, not an allocation of fault; engine-raised v3 exceptions always use `pledger`. */
|
|
416
|
+
blame: string | null;
|
|
417
|
+
reason: string | null;
|
|
418
|
+
/** Org id that raised it */
|
|
419
|
+
raisedBy: string | null;
|
|
420
|
+
/**
|
|
421
|
+
* The legs this exception is about; empty for a report-level exception (OSS serves `[]`). Engine
|
|
422
|
+
* exceptions on v3 carry assetId and quantity without an executionPlanId.
|
|
423
|
+
*/
|
|
424
|
+
details: CollateralExceptionDetailOss[] | null;
|
|
425
|
+
/** The exception's own log event; a manual resolve cites it */
|
|
426
|
+
eventId: string | null;
|
|
427
|
+
sequence: number;
|
|
428
|
+
timestamp: number | null;
|
|
429
|
+
}
|
|
430
|
+
/** One answer to a manual-resolve request (nested under it; carries no event id of its own) */
|
|
431
|
+
export interface CollateralManualResolveDecisionOss {
|
|
432
|
+
/** accepted / rejected */
|
|
433
|
+
status: string;
|
|
434
|
+
decidedBy: string | null;
|
|
435
|
+
/** Required on a refusal */
|
|
436
|
+
reason: string | null;
|
|
437
|
+
sequence: number;
|
|
438
|
+
timestamp: number | null;
|
|
439
|
+
}
|
|
440
|
+
/** A request to close the cited exceptions without posting collateral */
|
|
441
|
+
export interface CollateralReportManualResolveOss {
|
|
442
|
+
manualResolveId: string;
|
|
443
|
+
exceptionIds: string[] | null;
|
|
444
|
+
requestedBy: string | null;
|
|
445
|
+
reason: string | null;
|
|
446
|
+
eventId: string | null;
|
|
447
|
+
sequence: number;
|
|
448
|
+
timestamp: number | null;
|
|
449
|
+
/** An acceptance resolves every exception the request cited; a refusal leaves them open */
|
|
450
|
+
decisions: CollateralManualResolveDecisionOss[] | null;
|
|
451
|
+
}
|
|
452
|
+
/** A recorded ask that the engine evaluate the report again because collateral landed late */
|
|
453
|
+
export interface CollateralReportCoverageRecheckOss {
|
|
454
|
+
requestedBy: string | null;
|
|
455
|
+
reason: string | null;
|
|
456
|
+
eventId: string | null;
|
|
457
|
+
sequence: number;
|
|
458
|
+
timestamp: number | null;
|
|
459
|
+
}
|
|
460
|
+
/** One priced asset line offered for approval against a v3 report. */
|
|
461
|
+
export interface CollateralAttributionLineOss {
|
|
462
|
+
assetId: string;
|
|
463
|
+
/** Units offered, as a decimal string */
|
|
464
|
+
quantity: string;
|
|
465
|
+
metadata: CollateralReportAssetMetadataOss | null;
|
|
466
|
+
}
|
|
467
|
+
/** The approval state of one proposed v3 attribution list. */
|
|
468
|
+
export type CollateralReportAttributionProposalStatusOss = 'proposed' | 'approved' | 'rejected';
|
|
469
|
+
/** One priced list offered against a v3 report, with its whole-list approval decision. */
|
|
470
|
+
export interface CollateralReportAttributionProposalOss {
|
|
471
|
+
proposalId: string;
|
|
472
|
+
round: number;
|
|
473
|
+
status: CollateralReportAttributionProposalStatusOss;
|
|
474
|
+
lines: CollateralAttributionLineOss[] | null;
|
|
475
|
+
proposedBy: string | null;
|
|
476
|
+
decidedBy: string | null;
|
|
477
|
+
/** True closes the consent for postings, but does not stop the list from pricing evaluation. */
|
|
478
|
+
completed: boolean;
|
|
479
|
+
eventId: string | null;
|
|
480
|
+
decisionEventId: string | null;
|
|
481
|
+
sequence: number;
|
|
482
|
+
/** Epoch seconds (despite the OSS schema's stale milliseconds description). */
|
|
483
|
+
timestamp: number | null;
|
|
484
|
+
}
|
|
485
|
+
/** A folded margin report: the authored payload plus the overlaid status, history and dispositions */
|
|
486
|
+
export interface CollateralReportOss {
|
|
487
|
+
reportId: string;
|
|
488
|
+
agreementId: string;
|
|
489
|
+
type: string;
|
|
490
|
+
currency: string;
|
|
491
|
+
senderOrgId: string;
|
|
492
|
+
senderProfileId: string | null;
|
|
493
|
+
receiverOrgId: string;
|
|
494
|
+
receiverProfileId: string | null;
|
|
495
|
+
reportCreatorId: string;
|
|
496
|
+
nominalMarginAmount: string;
|
|
497
|
+
containerKey: string | null;
|
|
498
|
+
calledParty: string | null;
|
|
499
|
+
/**
|
|
500
|
+
* new / in_progress / completed / incomplete / resolved (derived once both party orgs resolved);
|
|
501
|
+
* the legacy `in_complete` may appear. Never `rejected` — rejections live in `rejections`. A
|
|
502
|
+
* manual resolve completes through the ordinary `completed`; "parked" is derived from `exceptions`.
|
|
503
|
+
*/
|
|
504
|
+
overlayStatus: string;
|
|
505
|
+
sequence: number;
|
|
506
|
+
statusHistory: CollateralReportStatusEntryOss[] | null;
|
|
507
|
+
resolutions: CollateralReportResolutionOss[] | null;
|
|
508
|
+
rejections: CollateralReportRejectionOss[] | null;
|
|
509
|
+
createdAt: number | null;
|
|
510
|
+
actions: CollateralReportActionOss[] | null;
|
|
511
|
+
settlement: {
|
|
512
|
+
assetId: string;
|
|
513
|
+
} | null;
|
|
514
|
+
fulfillmentMode: string | null;
|
|
515
|
+
negotiations: CollateralNegotiationThreadOss[] | null;
|
|
516
|
+
/** Absolute Unix SECONDS by which the report must be covered; null → the node's default window */
|
|
517
|
+
deadline: number | null;
|
|
518
|
+
/**
|
|
519
|
+
* The report's authoring margin-report event id. Exceptions, coverage rechecks and status
|
|
520
|
+
* declarations cite it; manual resolves cite the exception events instead.
|
|
521
|
+
*/
|
|
522
|
+
eventId: string | null;
|
|
523
|
+
/** Oldest first. While any is `open` the report is parked: its deadline is held */
|
|
524
|
+
exceptions: CollateralReportExceptionOss[] | null;
|
|
525
|
+
/** Oldest first: requests to discharge the obligation without collateral, with their answers */
|
|
526
|
+
manualResolves: CollateralReportManualResolveOss[] | null;
|
|
527
|
+
/** Oldest first: recorded asks to re-evaluate after late collateral; nothing acts on them yet */
|
|
528
|
+
coverageRechecks: CollateralReportCoverageRecheckOss[] | null;
|
|
529
|
+
executionPlans: CollateralExecutionPlanOss[] | null;
|
|
530
|
+
/** Oldest first: the priced lists offered against this v3 report and their decisions. */
|
|
531
|
+
attributionProposals: CollateralReportAttributionProposalOss[] | null;
|
|
532
|
+
}
|
|
533
|
+
/** The folded collateral agreement view — decoded terms, no base64, no raw events */
|
|
534
|
+
export interface CollateralAgreementOss {
|
|
535
|
+
agreementId: string;
|
|
536
|
+
orgId: string;
|
|
537
|
+
status: string;
|
|
538
|
+
version: number;
|
|
539
|
+
/** The bundle the terms are written against; the SDK authors collateral-terms/v3. */
|
|
540
|
+
termsType: string | null;
|
|
541
|
+
/** Roles whose signatures bind the agreement */
|
|
542
|
+
consentRoles: string[] | null;
|
|
543
|
+
/** Contract-zone CAIP-19 identities */
|
|
544
|
+
eligibleAssets: AgreementEligibleAssetOss[] | null;
|
|
545
|
+
/** Registry key of the definition's schema bundle; equals termsType on facade-authored agreements */
|
|
546
|
+
definitionSchemaKey: string | null;
|
|
547
|
+
terms: CollateralTermsOss | null;
|
|
548
|
+
roles: CollateralRoleBindingOss[] | null;
|
|
549
|
+
participants: CollateralParticipantOss[] | null;
|
|
550
|
+
containers: CollateralContainerOss[] | null;
|
|
551
|
+
validFrom: number | null;
|
|
552
|
+
validUntil: number | null;
|
|
553
|
+
/**
|
|
554
|
+
* Epoch SECONDS this organization first folded the agreement. A projection timestamp, not an
|
|
555
|
+
* agreement fact: two organizations can differ.
|
|
556
|
+
*/
|
|
557
|
+
createdAt: number | null;
|
|
558
|
+
}
|
|
559
|
+
export interface CollateralHoldingOss {
|
|
560
|
+
assetId: string;
|
|
561
|
+
quantity: number;
|
|
562
|
+
}
|
|
563
|
+
export interface CollateralMovementOss {
|
|
564
|
+
assetId: string;
|
|
565
|
+
quantity: number;
|
|
566
|
+
/** in / out relative to the container */
|
|
567
|
+
direction: string;
|
|
568
|
+
reportId: string | null;
|
|
569
|
+
timestampMs: number | null;
|
|
570
|
+
transactionId: string | null;
|
|
571
|
+
operationType: string | null;
|
|
572
|
+
}
|
|
573
|
+
export interface CollateralReportEarmarkOss {
|
|
574
|
+
reportId: string;
|
|
575
|
+
holdings: CollateralHoldingOss[] | null;
|
|
576
|
+
}
|
|
577
|
+
/** One container's folded books */
|
|
578
|
+
export interface CollateralContainerBookOss {
|
|
579
|
+
agreementId: string;
|
|
580
|
+
containerKey: string;
|
|
581
|
+
finId: string;
|
|
582
|
+
boundParty: string | null;
|
|
583
|
+
/** False when the movement source failed — activity/earmarks absent, never partial */
|
|
584
|
+
booksAvailable: boolean;
|
|
585
|
+
holdings: CollateralHoldingOss[] | null;
|
|
586
|
+
/** Movement ledger, newest first */
|
|
587
|
+
activity: CollateralMovementOss[] | null;
|
|
588
|
+
earmarks: CollateralReportEarmarkOss[] | null;
|
|
589
|
+
unattributed: CollateralHoldingOss[] | null;
|
|
590
|
+
}
|
|
591
|
+
export interface CollateralContainerBooksOss {
|
|
592
|
+
agreementId: string;
|
|
593
|
+
containers: CollateralContainerBookOss[] | null;
|
|
594
|
+
}
|
|
595
|
+
/** OSS `CollateralAgreementOrderField`: what `collateral.agreements` can be ordered by. */
|
|
596
|
+
export type CollateralAgreementOrderField = 'CREATED_AT' | 'AGREEMENT_ID';
|
|
597
|
+
/** Filter for `getCollateralAgreements` (OSS filter keys of the `collateral.agreements` field) */
|
|
598
|
+
export interface GetCollateralAgreementsFilter extends PaginateInput {
|
|
599
|
+
/** Exact match. For a substring, use `agreementIdContains` instead. */
|
|
600
|
+
agreementId?: string;
|
|
601
|
+
/** Substring match on the agreement id (OSS `CONTAINS`, case-insensitive), for a search box. */
|
|
602
|
+
agreementIdContains?: string;
|
|
603
|
+
/** The organization that folded the row (this OSS's organization), NOT the agreement's creator. */
|
|
604
|
+
orgId?: string;
|
|
605
|
+
status?: string[];
|
|
606
|
+
/** Inclusive lower bound on `createdAt` (when this organization first folded it), in epoch SECONDS. */
|
|
607
|
+
createdAtFrom?: number;
|
|
608
|
+
/** Inclusive upper bound on `createdAt`, in epoch SECONDS. */
|
|
609
|
+
createdAtTo?: number;
|
|
610
|
+
/** Server order (OSS `orderBy`). Absent → `CREATED_AT`. */
|
|
611
|
+
sortField?: CollateralAgreementOrderField;
|
|
612
|
+
/** Absent → `DESC` (newest first). */
|
|
613
|
+
sortOrder?: SortOrder;
|
|
614
|
+
}
|
|
615
|
+
/** OSS `CollateralReportOrderField`: what `collateral.reports` can be ordered by. */
|
|
616
|
+
export type CollateralReportOrderField = 'CREATED_AT';
|
|
617
|
+
/** Filter for `getCollateralReports` (agreementId / reportId / overlayStatus) */
|
|
618
|
+
export interface GetCollateralReportsFilter extends PaginateInput {
|
|
619
|
+
agreementId?: string;
|
|
620
|
+
/** Exact match. For a substring, use `reportIdContains` instead. */
|
|
621
|
+
reportId?: string;
|
|
622
|
+
/**
|
|
623
|
+
* Substring match on the report id, for a search box.
|
|
624
|
+
*
|
|
625
|
+
* Separate from `reportId` rather than an operator flag on it, so a caller cannot accidentally
|
|
626
|
+
* widen an exact lookup into a prefix one. Both may be sent; the facade ANDs them, which is
|
|
627
|
+
* almost never what you want.
|
|
628
|
+
*/
|
|
629
|
+
reportIdContains?: string;
|
|
630
|
+
overlayStatus?: string[];
|
|
631
|
+
/** Report types to include, e.g. `['initial', 'variation']`. */
|
|
632
|
+
type?: string[];
|
|
633
|
+
/** Inclusive lower bound on the report's creation time, in epoch SECONDS. */
|
|
634
|
+
createdAtFrom?: number;
|
|
635
|
+
/** Inclusive upper bound on the report's creation time, in epoch SECONDS. */
|
|
636
|
+
createdAtTo?: number;
|
|
637
|
+
/** Server order (OSS `orderBy`). Absent → `CREATED_AT`. */
|
|
638
|
+
sortField?: CollateralReportOrderField;
|
|
639
|
+
/** Absent → `DESC` (newest first). */
|
|
640
|
+
sortOrder?: SortOrder;
|
|
641
|
+
}
|
|
642
|
+
export interface GetCollateralAgreementsResponseOss {
|
|
643
|
+
collateral: {
|
|
644
|
+
agreements: {
|
|
645
|
+
nodes: CollateralAgreementOss[] | null;
|
|
646
|
+
pageInfo: PageInfo | null;
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
export interface GetCollateralReportsResponseOss {
|
|
651
|
+
collateral: {
|
|
652
|
+
reports: {
|
|
653
|
+
nodes: CollateralReportOss[] | null;
|
|
654
|
+
pageInfo: PageInfo | null;
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
export interface GetCollateralContainerBooksResponseOss {
|
|
659
|
+
collateral: {
|
|
660
|
+
containerBooks: CollateralContainerBooksOss;
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* What a `collateralReportChanged` push represents. `EXCEPTION`: an exception was raised, or a
|
|
665
|
+
* manual resolve was requested or answered. A coverage recheck alone pushes nothing.
|
|
666
|
+
*/
|
|
667
|
+
export type CollateralReportChangeKindOss = 'CREATED' | 'STATUS_CHANGED' | 'RESOLVED' | 'NEGOTIATION' | 'REJECTED' | 'EXCEPTION';
|
|
668
|
+
export interface CollateralReportChangeOss {
|
|
669
|
+
kind: CollateralReportChangeKindOss;
|
|
670
|
+
report: CollateralReportOss;
|
|
671
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Agreements.js","sourceRoot":"","sources":["../../../src/types/Oss/Agreements.ts"],"names":[],"mappings":""}
|