@silvana-one/orderbook 1.1.26 → 1.1.27

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 (32) hide show
  1. package/dist/node/index.cjs +237 -86
  2. package/dist/node/orderbook.d.ts +2 -0
  3. package/dist/node/orderbook.js +2 -0
  4. package/dist/node/orderbook.js.map +1 -1
  5. package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.d.ts +253 -201
  6. package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js +53 -66
  7. package/dist/node/proto/silvana/orderbook/v1/orderbook_pb.js.map +1 -1
  8. package/dist/node/proto/silvana/settlement/v1/settlement_pb.d.ts +988 -217
  9. package/dist/node/proto/silvana/settlement/v1/settlement_pb.js +470 -43
  10. package/dist/node/proto/silvana/settlement/v1/settlement_pb.js.map +1 -1
  11. package/dist/node/settlement.d.ts +41 -30
  12. package/dist/node/settlement.js +40 -7
  13. package/dist/node/settlement.js.map +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/tsconfig.web.tsbuildinfo +1 -1
  16. package/dist/web/orderbook.d.ts +2 -0
  17. package/dist/web/orderbook.js +2 -0
  18. package/dist/web/orderbook.js.map +1 -1
  19. package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.d.ts +253 -201
  20. package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js +53 -66
  21. package/dist/web/proto/silvana/orderbook/v1/orderbook_pb.js.map +1 -1
  22. package/dist/web/proto/silvana/settlement/v1/settlement_pb.d.ts +988 -217
  23. package/dist/web/proto/silvana/settlement/v1/settlement_pb.js +470 -43
  24. package/dist/web/proto/silvana/settlement/v1/settlement_pb.js.map +1 -1
  25. package/dist/web/settlement.d.ts +41 -30
  26. package/dist/web/settlement.js +40 -7
  27. package/dist/web/settlement.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/orderbook.ts +4 -0
  30. package/src/proto/silvana/orderbook/v1/orderbook_pb.ts +297 -247
  31. package/src/proto/silvana/settlement/v1/settlement_pb.ts +1243 -333
  32. package/src/settlement.ts +206 -31
@@ -39,6 +39,40 @@ export type CantonNodeAuth = Message<"silvana.settlement.v1.CantonNodeAuth"> & {
39
39
  * Use `create(CantonNodeAuthSchema)` to create a new message.
40
40
  */
41
41
  export declare const CantonNodeAuthSchema: GenMessage<CantonNodeAuth>;
42
+ /**
43
+ * External account authentication (using Ed25519 signed JWT)
44
+ * For external parties that sign JWTs with their own private keys
45
+ * Public key is verified against party_id fingerprint:
46
+ * fingerprint = SHA256(0x0000000C || public_key_bytes)
47
+ * party_id format: "identifier::1220{fingerprint}"
48
+ *
49
+ * @generated from message silvana.settlement.v1.ExternalAuth
50
+ */
51
+ export type ExternalAuth = Message<"silvana.settlement.v1.ExternalAuth"> & {
52
+ /**
53
+ * JWT signed with external account's Ed25519 private key
54
+ *
55
+ * @generated from field: string jwt = 1;
56
+ */
57
+ jwt: string;
58
+ /**
59
+ * Canton party ID of the external account
60
+ *
61
+ * @generated from field: string party_id = 2;
62
+ */
63
+ partyId: string;
64
+ /**
65
+ * Ed25519 public key (hex) - verified against party_id fingerprint
66
+ *
67
+ * @generated from field: string public_key = 3;
68
+ */
69
+ publicKey: string;
70
+ };
71
+ /**
72
+ * Describes the message silvana.settlement.v1.ExternalAuth.
73
+ * Use `create(ExternalAuthSchema)` to create a new message.
74
+ */
75
+ export declare const ExternalAuthSchema: GenMessage<ExternalAuth>;
42
76
  /**
43
77
  * Instrument details for settlement
44
78
  *
@@ -143,6 +177,24 @@ export type SettlementProposalMessage = Message<"silvana.settlement.v1.Settlemen
143
177
  * @generated from field: google.protobuf.Timestamp created_at = 12;
144
178
  */
145
179
  createdAt?: Timestamp;
180
+ /**
181
+ * Processing fees (DECIMAL as string)
182
+ *
183
+ * @generated from field: string dvp_processing_fee_buyer = 13;
184
+ */
185
+ dvpProcessingFeeBuyer: string;
186
+ /**
187
+ * @generated from field: string dvp_processing_fee_seller = 14;
188
+ */
189
+ dvpProcessingFeeSeller: string;
190
+ /**
191
+ * @generated from field: string allocation_processing_fee_buyer = 15;
192
+ */
193
+ allocationProcessingFeeBuyer: string;
194
+ /**
195
+ * @generated from field: string allocation_processing_fee_seller = 16;
196
+ */
197
+ allocationProcessingFeeSeller: string;
146
198
  };
147
199
  /**
148
200
  * Describes the message silvana.settlement.v1.SettlementProposalMessage.
@@ -1334,227 +1386,183 @@ export type GetSettlementStatusRequest = Message<"silvana.settlement.v1.GetSettl
1334
1386
  */
1335
1387
  export declare const GetSettlementStatusRequestSchema: GenMessage<GetSettlementStatusRequest>;
1336
1388
  /**
1337
- * @generated from message silvana.settlement.v1.GetSettlementStatusResponse
1389
+ * Status of a single step in the DVP flow with details
1390
+ *
1391
+ * @generated from message silvana.settlement.v1.DvpStepStatus
1338
1392
  */
1339
- export type GetSettlementStatusResponse = Message<"silvana.settlement.v1.GetSettlementStatusResponse"> & {
1393
+ export type DvpStepStatus = Message<"silvana.settlement.v1.DvpStepStatus"> & {
1340
1394
  /**
1341
- * UUID v7
1395
+ * Step name (e.g., "dvp_processing_fee_buyer", "dvp_request", etc.)
1342
1396
  *
1343
- * @generated from field: string proposal_id = 1;
1344
- */
1345
- proposalId: string;
1346
- /**
1347
- * @generated from field: string settlement_id = 2;
1348
- */
1349
- settlementId: string;
1350
- /**
1351
- * @generated from field: silvana.settlement.v1.SettlementStage stage = 3;
1352
- */
1353
- stage: SettlementStage;
1354
- /**
1355
- * @generated from field: optional string dvp_proposal_cid = 4;
1397
+ * @generated from field: string step_name = 1;
1356
1398
  */
1357
- dvpProposalCid?: string;
1399
+ stepName: string;
1358
1400
  /**
1359
- * @generated from field: optional string dvp_cid = 5;
1401
+ * Current status
1402
+ *
1403
+ * @generated from field: silvana.settlement.v1.DvpStepStatusEnum status = 2;
1360
1404
  */
1361
- dvpCid?: string;
1405
+ status: DvpStepStatusEnum;
1362
1406
  /**
1363
- * @generated from field: optional string allocation_buyer_cid = 6;
1407
+ * Contract ID (if created)
1408
+ *
1409
+ * @generated from field: optional string contract_id = 3;
1364
1410
  */
1365
- allocationBuyerCid?: string;
1411
+ contractId?: string;
1366
1412
  /**
1367
- * @generated from field: optional string allocation_seller_cid = 7;
1413
+ * Update ID (Canton ledger update)
1414
+ *
1415
+ * @generated from field: optional string update_id = 4;
1368
1416
  */
1369
- allocationSellerCid?: string;
1417
+ updateId?: string;
1370
1418
  /**
1371
- * @generated from field: optional string settled_dvp_cid = 8;
1419
+ * Latest event timestamp
1420
+ *
1421
+ * @generated from field: optional google.protobuf.Timestamp updated_at = 5;
1372
1422
  */
1373
- settledDvpCid?: string;
1423
+ updatedAt?: Timestamp;
1374
1424
  /**
1375
- * @generated from field: optional string error_message = 9;
1425
+ * Error message (if failed)
1426
+ *
1427
+ * @generated from field: optional string error_message = 6;
1376
1428
  */
1377
1429
  errorMessage?: string;
1378
1430
  /**
1379
- * @generated from field: google.protobuf.Timestamp updated_at = 10;
1380
- */
1381
- updatedAt?: Timestamp;
1382
- };
1383
- /**
1384
- * Describes the message silvana.settlement.v1.GetSettlementStatusResponse.
1385
- * Use `create(GetSettlementStatusResponseSchema)` to create a new message.
1386
- */
1387
- export declare const GetSettlementStatusResponseSchema: GenMessage<GetSettlementStatusResponse>;
1388
- /**
1389
- * @generated from message silvana.settlement.v1.SubmitPreconfirmationRequest
1390
- */
1391
- export type SubmitPreconfirmationRequest = Message<"silvana.settlement.v1.SubmitPreconfirmationRequest"> & {
1392
- /**
1393
- * @generated from field: silvana.settlement.v1.CantonNodeAuth auth = 1;
1431
+ * Who confirmed this step (party ID)
1432
+ *
1433
+ * @generated from field: optional string confirmed_by = 7;
1394
1434
  */
1395
- auth?: CantonNodeAuth;
1435
+ confirmedBy?: string;
1396
1436
  /**
1397
- * @generated from field: silvana.settlement.v1.PreconfirmationDecision decision = 2;
1437
+ * Role of who confirmed (buyer/seller/operator)
1438
+ *
1439
+ * @generated from field: optional silvana.settlement.v1.RecordedByRole confirmed_by_role = 8;
1398
1440
  */
1399
- decision?: PreconfirmationDecision;
1441
+ confirmedByRole?: RecordedByRole;
1400
1442
  };
1401
1443
  /**
1402
- * Describes the message silvana.settlement.v1.SubmitPreconfirmationRequest.
1403
- * Use `create(SubmitPreconfirmationRequestSchema)` to create a new message.
1444
+ * Describes the message silvana.settlement.v1.DvpStepStatus.
1445
+ * Use `create(DvpStepStatusSchema)` to create a new message.
1404
1446
  */
1405
- export declare const SubmitPreconfirmationRequestSchema: GenMessage<SubmitPreconfirmationRequest>;
1447
+ export declare const DvpStepStatusSchema: GenMessage<DvpStepStatus>;
1406
1448
  /**
1407
- * Update settlement proposal request with optimistic locking
1449
+ * Enhanced GetSettlementStatusResponse with detailed DVP flow progress
1408
1450
  *
1409
- * @generated from message silvana.settlement.v1.UpdateSettlementProposalRequest
1451
+ * @generated from message silvana.settlement.v1.GetSettlementStatusResponse
1410
1452
  */
1411
- export type UpdateSettlementProposalRequest = Message<"silvana.settlement.v1.UpdateSettlementProposalRequest"> & {
1412
- /**
1413
- * @generated from field: silvana.settlement.v1.CantonNodeAuth auth = 1;
1414
- */
1415
- auth?: CantonNodeAuth;
1453
+ export type GetSettlementStatusResponse = Message<"silvana.settlement.v1.GetSettlementStatusResponse"> & {
1416
1454
  /**
1417
1455
  * UUID v7
1418
1456
  *
1419
- * @generated from field: string proposal_id = 2;
1457
+ * @generated from field: string proposal_id = 1;
1420
1458
  */
1421
1459
  proposalId: string;
1422
1460
  /**
1423
- * For optimistic locking - must match current version
1424
- *
1425
- * @generated from field: uint64 expected_version = 3;
1461
+ * @generated from field: string settlement_id = 2;
1426
1462
  */
1427
- expectedVersion: bigint;
1463
+ settlementId: string;
1428
1464
  /**
1429
- * Fields that can be updated (all optional - only set fields will be updated)
1465
+ * Overall settlement stage
1430
1466
  *
1431
- * @generated from field: optional string dvp_proposal_cid = 4;
1432
- */
1433
- dvpProposalCid?: string;
1434
- /**
1435
- * @generated from field: optional string dvp_proposal_update_id = 5;
1436
- */
1437
- dvpProposalUpdateId?: string;
1438
- /**
1439
- * @generated from field: optional string dvp_cid = 6;
1440
- */
1441
- dvpCid?: string;
1442
- /**
1443
- * @generated from field: optional string dvp_update_id = 7;
1444
- */
1445
- dvpUpdateId?: string;
1446
- /**
1447
- * @generated from field: optional string allocation_buyer_cid = 8;
1467
+ * @generated from field: silvana.settlement.v1.SettlementStage stage = 3;
1448
1468
  */
1449
- allocationBuyerCid?: string;
1469
+ stage: SettlementStage;
1450
1470
  /**
1451
- * @generated from field: optional string allocation_buyer_update_id = 9;
1471
+ * Overall error message (if failed)
1472
+ *
1473
+ * @generated from field: optional string error_message = 4;
1452
1474
  */
1453
- allocationBuyerUpdateId?: string;
1475
+ errorMessage?: string;
1454
1476
  /**
1455
- * @generated from field: optional string allocation_seller_cid = 10;
1477
+ * Last updated timestamp
1478
+ *
1479
+ * @generated from field: google.protobuf.Timestamp updated_at = 5;
1456
1480
  */
1457
- allocationSellerCid?: string;
1481
+ updatedAt?: Timestamp;
1458
1482
  /**
1459
- * @generated from field: optional string allocation_seller_update_id = 11;
1483
+ * Fee payment steps
1484
+ *
1485
+ * @generated from field: silvana.settlement.v1.DvpStepStatus dvp_processing_fee_buyer = 10;
1460
1486
  */
1461
- allocationSellerUpdateId?: string;
1487
+ dvpProcessingFeeBuyer?: DvpStepStatus;
1462
1488
  /**
1463
- * @generated from field: optional string settled_dvp_cid = 12;
1489
+ * @generated from field: silvana.settlement.v1.DvpStepStatus dvp_processing_fee_seller = 11;
1464
1490
  */
1465
- settledDvpCid?: string;
1491
+ dvpProcessingFeeSeller?: DvpStepStatus;
1466
1492
  /**
1467
- * @generated from field: optional string settlement_update_id = 13;
1493
+ * @generated from field: silvana.settlement.v1.DvpStepStatus allocation_processing_fee_buyer = 12;
1468
1494
  */
1469
- settlementUpdateId?: string;
1495
+ allocationProcessingFeeBuyer?: DvpStepStatus;
1470
1496
  /**
1471
- * @generated from field: optional string settlement_completion_offset = 14;
1497
+ * @generated from field: silvana.settlement.v1.DvpStepStatus allocation_processing_fee_seller = 13;
1472
1498
  */
1473
- settlementCompletionOffset?: string;
1499
+ allocationProcessingFeeSeller?: DvpStepStatus;
1474
1500
  /**
1475
- * Move to a new stage
1501
+ * DVP contract steps
1476
1502
  *
1477
- * @generated from field: optional silvana.settlement.v1.SettlementStage new_stage = 15;
1478
- */
1479
- newStage?: SettlementStage;
1480
- /**
1481
- * @generated from field: optional string error_message = 16;
1503
+ * @generated from field: silvana.settlement.v1.DvpStepStatus dvp_request = 14;
1482
1504
  */
1483
- errorMessage?: string;
1505
+ dvpRequest?: DvpStepStatus;
1484
1506
  /**
1485
- * @generated from field: optional google.protobuf.Struct metadata = 17;
1507
+ * @generated from field: silvana.settlement.v1.DvpStepStatus dvp_accept = 15;
1486
1508
  */
1487
- metadata?: JsonObject;
1509
+ dvpAccept?: DvpStepStatus;
1488
1510
  /**
1489
- * Set buyer fee transfer initiated
1511
+ * Allocation steps
1490
1512
  *
1491
- * @generated from field: optional bool buyer_fee_sent = 18;
1513
+ * @generated from field: silvana.settlement.v1.DvpStepStatus allocation_buyer = 16;
1492
1514
  */
1493
- buyerFeeSent?: boolean;
1515
+ allocationBuyer?: DvpStepStatus;
1494
1516
  /**
1495
- * Set seller fee transfer initiated
1496
- *
1497
- * @generated from field: optional bool seller_fee_sent = 19;
1517
+ * @generated from field: silvana.settlement.v1.DvpStepStatus allocation_seller = 17;
1498
1518
  */
1499
- sellerFeeSent?: boolean;
1519
+ allocationSeller?: DvpStepStatus;
1500
1520
  /**
1501
- * Canton update ID for buyer fee transfer
1521
+ * Settlement step
1502
1522
  *
1503
- * @generated from field: optional string buyer_fee_update_id = 20;
1523
+ * @generated from field: silvana.settlement.v1.DvpStepStatus settlement = 18;
1504
1524
  */
1505
- buyerFeeUpdateId?: string;
1525
+ settlement?: DvpStepStatus;
1506
1526
  /**
1507
- * Canton update ID for seller fee transfer
1527
+ * Traffic compensation steps
1508
1528
  *
1509
- * @generated from field: optional string seller_fee_update_id = 21;
1529
+ * @generated from field: silvana.settlement.v1.DvpStepStatus traffic_compensation_buyer = 19;
1510
1530
  */
1511
- sellerFeeUpdateId?: string;
1531
+ trafficCompensationBuyer?: DvpStepStatus;
1512
1532
  /**
1513
- * When buyer fee was paid
1514
- *
1515
- * @generated from field: optional google.protobuf.Timestamp buyer_fee_paid_at = 22;
1533
+ * @generated from field: silvana.settlement.v1.DvpStepStatus traffic_compensation_seller = 20;
1516
1534
  */
1517
- buyerFeePaidAt?: Timestamp;
1535
+ trafficCompensationSeller?: DvpStepStatus;
1518
1536
  /**
1519
- * When seller fee was paid
1537
+ * Preconfirmation step (optional)
1520
1538
  *
1521
- * @generated from field: optional google.protobuf.Timestamp seller_fee_paid_at = 23;
1539
+ * @generated from field: silvana.settlement.v1.DvpStepStatus preconfirmation = 21;
1522
1540
  */
1523
- sellerFeePaidAt?: Timestamp;
1541
+ preconfirmation?: DvpStepStatus;
1524
1542
  };
1525
1543
  /**
1526
- * Describes the message silvana.settlement.v1.UpdateSettlementProposalRequest.
1527
- * Use `create(UpdateSettlementProposalRequestSchema)` to create a new message.
1544
+ * Describes the message silvana.settlement.v1.GetSettlementStatusResponse.
1545
+ * Use `create(GetSettlementStatusResponseSchema)` to create a new message.
1528
1546
  */
1529
- export declare const UpdateSettlementProposalRequestSchema: GenMessage<UpdateSettlementProposalRequest>;
1547
+ export declare const GetSettlementStatusResponseSchema: GenMessage<GetSettlementStatusResponse>;
1530
1548
  /**
1531
- * @generated from message silvana.settlement.v1.UpdateSettlementProposalResponse
1549
+ * @generated from message silvana.settlement.v1.SubmitPreconfirmationRequest
1532
1550
  */
1533
- export type UpdateSettlementProposalResponse = Message<"silvana.settlement.v1.UpdateSettlementProposalResponse"> & {
1534
- /**
1535
- * @generated from field: bool success = 1;
1536
- */
1537
- success: boolean;
1538
- /**
1539
- * @generated from field: string message = 2;
1540
- */
1541
- message: string;
1551
+ export type SubmitPreconfirmationRequest = Message<"silvana.settlement.v1.SubmitPreconfirmationRequest"> & {
1542
1552
  /**
1543
- * New version after update
1544
- *
1545
- * @generated from field: uint64 new_version = 3;
1553
+ * @generated from field: silvana.settlement.v1.CantonNodeAuth auth = 1;
1546
1554
  */
1547
- newVersion: bigint;
1555
+ auth?: CantonNodeAuth;
1548
1556
  /**
1549
- * @generated from field: silvana.settlement.v1.SettlementStage current_stage = 4;
1557
+ * @generated from field: silvana.settlement.v1.PreconfirmationDecision decision = 2;
1550
1558
  */
1551
- currentStage: SettlementStage;
1559
+ decision?: PreconfirmationDecision;
1552
1560
  };
1553
1561
  /**
1554
- * Describes the message silvana.settlement.v1.UpdateSettlementProposalResponse.
1555
- * Use `create(UpdateSettlementProposalResponseSchema)` to create a new message.
1562
+ * Describes the message silvana.settlement.v1.SubmitPreconfirmationRequest.
1563
+ * Use `create(SubmitPreconfirmationRequestSchema)` to create a new message.
1556
1564
  */
1557
- export declare const UpdateSettlementProposalResponseSchema: GenMessage<UpdateSettlementProposalResponse>;
1565
+ export declare const SubmitPreconfirmationRequestSchema: GenMessage<SubmitPreconfirmationRequest>;
1558
1566
  /**
1559
1567
  * A disclosed contract for settlement
1560
1568
  * Buyers/sellers save these during allocation for cross-party visibility
@@ -1612,6 +1620,12 @@ export type SaveDisclosedContractRequest = Message<"silvana.settlement.v1.SaveDi
1612
1620
  * @generated from field: silvana.settlement.v1.DisclosedContractMessage contract = 3;
1613
1621
  */
1614
1622
  contract?: DisclosedContractMessage;
1623
+ /**
1624
+ * Alternative auth for external parties
1625
+ *
1626
+ * @generated from field: optional silvana.settlement.v1.ExternalAuth external_auth = 10;
1627
+ */
1628
+ externalAuth?: ExternalAuth;
1615
1629
  };
1616
1630
  /**
1617
1631
  * Describes the message silvana.settlement.v1.SaveDisclosedContractRequest.
@@ -1897,6 +1911,12 @@ export type RecordTransactionRequest = Message<"silvana.settlement.v1.RecordTran
1897
1911
  * @generated from field: optional google.protobuf.Struct daml_choices = 25;
1898
1912
  */
1899
1913
  damlChoices?: JsonObject;
1914
+ /**
1915
+ * Alternative auth for external parties
1916
+ *
1917
+ * @generated from field: optional silvana.settlement.v1.ExternalAuth external_auth = 30;
1918
+ */
1919
+ externalAuth?: ExternalAuth;
1900
1920
  };
1901
1921
  /**
1902
1922
  * Describes the message silvana.settlement.v1.RecordTransactionRequest.
@@ -2110,123 +2130,491 @@ export type TransactionHistoryEntry = Message<"silvana.settlement.v1.Transaction
2110
2130
  */
2111
2131
  export declare const TransactionHistoryEntrySchema: GenMessage<TransactionHistoryEntry>;
2112
2132
  /**
2113
- * DVP settlement stage enumeration
2133
+ * Record a settlement event (any party can record for their settlements)
2114
2134
  *
2115
- * @generated from enum silvana.settlement.v1.SettlementStage
2135
+ * @generated from message silvana.settlement.v1.RecordSettlementEventRequest
2116
2136
  */
2117
- export declare enum SettlementStage {
2118
- /**
2119
- * @generated from enum value: SETTLEMENT_STAGE_UNSPECIFIED = 0;
2120
- */
2121
- UNSPECIFIED = 0,
2137
+ export type RecordSettlementEventRequest = Message<"silvana.settlement.v1.RecordSettlementEventRequest"> & {
2122
2138
  /**
2123
- * @generated from enum value: SETTLEMENT_STAGE_PROPOSAL_RECEIVED = 1;
2139
+ * @generated from field: silvana.settlement.v1.CantonNodeAuth auth = 1;
2124
2140
  */
2125
- PROPOSAL_RECEIVED = 1,
2141
+ auth?: CantonNodeAuth;
2126
2142
  /**
2127
- * @generated from enum value: SETTLEMENT_STAGE_PRECONFIRMATION_PENDING = 2;
2143
+ * UUID v7
2144
+ *
2145
+ * @generated from field: string proposal_id = 2;
2128
2146
  */
2129
- PRECONFIRMATION_PENDING = 2,
2147
+ proposalId: string;
2130
2148
  /**
2131
- * @generated from enum value: SETTLEMENT_STAGE_PRECONFIRMED = 3;
2149
+ * Party ID who is recording
2150
+ *
2151
+ * @generated from field: string recorded_by = 3;
2132
2152
  */
2133
- PRECONFIRMED = 3,
2153
+ recordedBy: string;
2134
2154
  /**
2135
- * @generated from enum value: SETTLEMENT_STAGE_DVP_PROPOSAL_CREATING = 4;
2155
+ * @generated from field: silvana.settlement.v1.RecordedByRole recorded_by_role = 4;
2136
2156
  */
2137
- DVP_PROPOSAL_CREATING = 4,
2157
+ recordedByRole: RecordedByRole;
2138
2158
  /**
2139
- * @generated from enum value: SETTLEMENT_STAGE_DVP_PROPOSAL_CREATED = 5;
2159
+ * @generated from field: silvana.settlement.v1.SettlementEventType event_type = 5;
2140
2160
  */
2141
- DVP_PROPOSAL_CREATED = 5,
2161
+ eventType: SettlementEventType;
2142
2162
  /**
2143
- * @generated from enum value: SETTLEMENT_STAGE_DVP_ACCEPTING = 6;
2163
+ * Canton transaction tracking (two-phase)
2164
+ *
2165
+ * Phase 1: received on tx submit
2166
+ *
2167
+ * @generated from field: optional string submission_id = 6;
2144
2168
  */
2145
- DVP_ACCEPTING = 6,
2169
+ submissionId?: string;
2146
2170
  /**
2147
- * @generated from enum value: SETTLEMENT_STAGE_DVP_ACCEPTED = 7;
2171
+ * Phase 2: received after ledger poll
2172
+ *
2173
+ * @generated from field: optional string update_id = 7;
2148
2174
  */
2149
- DVP_ACCEPTED = 7,
2175
+ updateId?: string;
2150
2176
  /**
2151
- * @generated from enum value: SETTLEMENT_STAGE_ALLOCATING = 8;
2177
+ * Canton contract ID
2178
+ *
2179
+ * @generated from field: optional string contract_id = 8;
2152
2180
  */
2153
- ALLOCATING = 8,
2181
+ contractId?: string;
2154
2182
  /**
2155
- * @generated from enum value: SETTLEMENT_STAGE_ALLOCATED = 9;
2183
+ * Daml template ID
2184
+ *
2185
+ * @generated from field: optional string template_id = 9;
2156
2186
  */
2157
- ALLOCATED = 9,
2187
+ templateId?: string;
2158
2188
  /**
2159
- * @generated from enum value: SETTLEMENT_STAGE_SETTLING = 10;
2189
+ * Result
2190
+ *
2191
+ * @generated from field: silvana.settlement.v1.SettlementEventResult result = 10;
2160
2192
  */
2161
- SETTLING = 10,
2193
+ result: SettlementEventResult;
2162
2194
  /**
2163
- * @generated from enum value: SETTLEMENT_STAGE_SETTLED = 11;
2195
+ * @generated from field: optional string error_message = 11;
2164
2196
  */
2165
- SETTLED = 11,
2197
+ errorMessage?: string;
2166
2198
  /**
2167
- * @generated from enum value: SETTLEMENT_STAGE_FAILED = 12;
2199
+ * @generated from field: optional google.protobuf.Struct metadata = 12;
2168
2200
  */
2169
- FAILED = 12,
2201
+ metadata?: JsonObject;
2170
2202
  /**
2171
- * @generated from enum value: SETTLEMENT_STAGE_CANCELLED = 13;
2203
+ * Alternative auth for external parties
2204
+ *
2205
+ * @generated from field: optional silvana.settlement.v1.ExternalAuth external_auth = 20;
2172
2206
  */
2173
- CANCELLED = 13
2174
- }
2207
+ externalAuth?: ExternalAuth;
2208
+ };
2175
2209
  /**
2176
- * Describes the enum silvana.settlement.v1.SettlementStage.
2210
+ * Describes the message silvana.settlement.v1.RecordSettlementEventRequest.
2211
+ * Use `create(RecordSettlementEventRequestSchema)` to create a new message.
2177
2212
  */
2178
- export declare const SettlementStageSchema: GenEnum<SettlementStage>;
2213
+ export declare const RecordSettlementEventRequestSchema: GenMessage<RecordSettlementEventRequest>;
2179
2214
  /**
2180
- * Preconfirmation response type
2181
- *
2182
- * @generated from enum silvana.settlement.v1.PreconfirmationResponse
2215
+ * @generated from message silvana.settlement.v1.RecordSettlementEventResponse
2183
2216
  */
2184
- export declare enum PreconfirmationResponse {
2217
+ export type RecordSettlementEventResponse = Message<"silvana.settlement.v1.RecordSettlementEventResponse"> & {
2185
2218
  /**
2186
- * @generated from enum value: PRECONFIRMATION_RESPONSE_UNSPECIFIED = 0;
2219
+ * @generated from field: bool success = 1;
2187
2220
  */
2188
- UNSPECIFIED = 0,
2221
+ success: boolean;
2189
2222
  /**
2190
- * @generated from enum value: PRECONFIRMATION_RESPONSE_ACCEPT = 1;
2223
+ * @generated from field: string message = 2;
2191
2224
  */
2192
- ACCEPT = 1,
2225
+ message: string;
2193
2226
  /**
2194
- * @generated from enum value: PRECONFIRMATION_RESPONSE_REJECT = 2;
2227
+ * Auto-generated history entry ID
2228
+ *
2229
+ * @generated from field: uint64 event_id = 3;
2195
2230
  */
2196
- REJECT = 2
2197
- }
2231
+ eventId: bigint;
2232
+ };
2198
2233
  /**
2199
- * Describes the enum silvana.settlement.v1.PreconfirmationResponse.
2234
+ * Describes the message silvana.settlement.v1.RecordSettlementEventResponse.
2235
+ * Use `create(RecordSettlementEventResponseSchema)` to create a new message.
2200
2236
  */
2201
- export declare const PreconfirmationResponseSchema: GenEnum<PreconfirmationResponse>;
2237
+ export declare const RecordSettlementEventResponseSchema: GenMessage<RecordSettlementEventResponse>;
2202
2238
  /**
2203
- * Party role in settlement
2239
+ * Get settlement history (parties can only see their own settlements)
2204
2240
  *
2205
- * @generated from enum silvana.settlement.v1.PartyRole
2241
+ * @generated from message silvana.settlement.v1.GetSettlementHistoryRequest
2206
2242
  */
2207
- export declare enum PartyRole {
2243
+ export type GetSettlementHistoryRequest = Message<"silvana.settlement.v1.GetSettlementHistoryRequest"> & {
2208
2244
  /**
2209
- * @generated from enum value: PARTY_ROLE_UNSPECIFIED = 0;
2245
+ * @generated from field: silvana.settlement.v1.CantonNodeAuth auth = 1;
2210
2246
  */
2211
- UNSPECIFIED = 0,
2247
+ auth?: CantonNodeAuth;
2212
2248
  /**
2213
- * @generated from enum value: PARTY_ROLE_BUYER = 1;
2249
+ * UUID v7
2250
+ *
2251
+ * @generated from field: string proposal_id = 2;
2214
2252
  */
2215
- BUYER = 1,
2253
+ proposalId: string;
2216
2254
  /**
2217
- * @generated from enum value: PARTY_ROLE_SELLER = 2;
2255
+ * Filter by event type
2256
+ *
2257
+ * @generated from field: optional silvana.settlement.v1.SettlementEventType event_type = 3;
2218
2258
  */
2219
- SELLER = 2,
2259
+ eventType?: SettlementEventType;
2220
2260
  /**
2221
- * @generated from enum value: PARTY_ROLE_OPERATOR = 3;
2261
+ * Filter by result
2262
+ *
2263
+ * @generated from field: optional silvana.settlement.v1.SettlementEventResult result = 4;
2222
2264
  */
2223
- OPERATOR = 3
2224
- }
2225
- /**
2226
- * Describes the enum silvana.settlement.v1.PartyRole.
2227
- */
2228
- export declare const PartyRoleSchema: GenEnum<PartyRole>;
2229
- /**
2265
+ result?: SettlementEventResult;
2266
+ /**
2267
+ * @generated from field: optional uint32 limit = 5;
2268
+ */
2269
+ limit?: number;
2270
+ /**
2271
+ * @generated from field: optional uint32 offset = 6;
2272
+ */
2273
+ offset?: number;
2274
+ };
2275
+ /**
2276
+ * Describes the message silvana.settlement.v1.GetSettlementHistoryRequest.
2277
+ * Use `create(GetSettlementHistoryRequestSchema)` to create a new message.
2278
+ */
2279
+ export declare const GetSettlementHistoryRequestSchema: GenMessage<GetSettlementHistoryRequest>;
2280
+ /**
2281
+ * @generated from message silvana.settlement.v1.GetSettlementHistoryResponse
2282
+ */
2283
+ export type GetSettlementHistoryResponse = Message<"silvana.settlement.v1.GetSettlementHistoryResponse"> & {
2284
+ /**
2285
+ * @generated from field: repeated silvana.settlement.v1.SettlementHistoryEntry events = 1;
2286
+ */
2287
+ events: SettlementHistoryEntry[];
2288
+ /**
2289
+ * @generated from field: uint32 total = 2;
2290
+ */
2291
+ total: number;
2292
+ };
2293
+ /**
2294
+ * Describes the message silvana.settlement.v1.GetSettlementHistoryResponse.
2295
+ * Use `create(GetSettlementHistoryResponseSchema)` to create a new message.
2296
+ */
2297
+ export declare const GetSettlementHistoryResponseSchema: GenMessage<GetSettlementHistoryResponse>;
2298
+ /**
2299
+ * Settlement history entry (matches settlement_proposal_history table)
2300
+ *
2301
+ * @generated from message silvana.settlement.v1.SettlementHistoryEntry
2302
+ */
2303
+ export type SettlementHistoryEntry = Message<"silvana.settlement.v1.SettlementHistoryEntry"> & {
2304
+ /**
2305
+ * @generated from field: uint64 id = 1;
2306
+ */
2307
+ id: bigint;
2308
+ /**
2309
+ * @generated from field: string proposal_id = 2;
2310
+ */
2311
+ proposalId: string;
2312
+ /**
2313
+ * @generated from field: string recorded_by = 3;
2314
+ */
2315
+ recordedBy: string;
2316
+ /**
2317
+ * @generated from field: silvana.settlement.v1.RecordedByRole recorded_by_role = 4;
2318
+ */
2319
+ recordedByRole: RecordedByRole;
2320
+ /**
2321
+ * @generated from field: silvana.settlement.v1.SettlementEventType event_type = 5;
2322
+ */
2323
+ eventType: SettlementEventType;
2324
+ /**
2325
+ * Canton transaction tracking
2326
+ *
2327
+ * @generated from field: optional string submission_id = 6;
2328
+ */
2329
+ submissionId?: string;
2330
+ /**
2331
+ * @generated from field: optional string update_id = 7;
2332
+ */
2333
+ updateId?: string;
2334
+ /**
2335
+ * @generated from field: optional string contract_id = 8;
2336
+ */
2337
+ contractId?: string;
2338
+ /**
2339
+ * @generated from field: optional string template_id = 9;
2340
+ */
2341
+ templateId?: string;
2342
+ /**
2343
+ * Result
2344
+ *
2345
+ * @generated from field: silvana.settlement.v1.SettlementEventResult result = 10;
2346
+ */
2347
+ result: SettlementEventResult;
2348
+ /**
2349
+ * @generated from field: optional string error_message = 11;
2350
+ */
2351
+ errorMessage?: string;
2352
+ /**
2353
+ * @generated from field: optional google.protobuf.Struct metadata = 12;
2354
+ */
2355
+ metadata?: JsonObject;
2356
+ /**
2357
+ * @generated from field: google.protobuf.Timestamp created_at = 13;
2358
+ */
2359
+ createdAt?: Timestamp;
2360
+ };
2361
+ /**
2362
+ * Describes the message silvana.settlement.v1.SettlementHistoryEntry.
2363
+ * Use `create(SettlementHistoryEntrySchema)` to create a new message.
2364
+ */
2365
+ export declare const SettlementHistoryEntrySchema: GenMessage<SettlementHistoryEntry>;
2366
+ /**
2367
+ * Update proposal status (operator only)
2368
+ *
2369
+ * @generated from message silvana.settlement.v1.UpdateProposalStatusRequest
2370
+ */
2371
+ export type UpdateProposalStatusRequest = Message<"silvana.settlement.v1.UpdateProposalStatusRequest"> & {
2372
+ /**
2373
+ * @generated from field: silvana.settlement.v1.CantonNodeAuth auth = 1;
2374
+ */
2375
+ auth?: CantonNodeAuth;
2376
+ /**
2377
+ * UUID v7
2378
+ *
2379
+ * @generated from field: string proposal_id = 2;
2380
+ */
2381
+ proposalId: string;
2382
+ /**
2383
+ * Only pending → settled/cancelled/failed allowed
2384
+ *
2385
+ * @generated from field: silvana.settlement.v1.UpdateProposalStatusRequest.NewStatus new_status = 3;
2386
+ */
2387
+ newStatus: UpdateProposalStatusRequest_NewStatus;
2388
+ /**
2389
+ * Required if failed
2390
+ *
2391
+ * @generated from field: optional string error_message = 4;
2392
+ */
2393
+ errorMessage?: string;
2394
+ };
2395
+ /**
2396
+ * Describes the message silvana.settlement.v1.UpdateProposalStatusRequest.
2397
+ * Use `create(UpdateProposalStatusRequestSchema)` to create a new message.
2398
+ */
2399
+ export declare const UpdateProposalStatusRequestSchema: GenMessage<UpdateProposalStatusRequest>;
2400
+ /**
2401
+ * @generated from enum silvana.settlement.v1.UpdateProposalStatusRequest.NewStatus
2402
+ */
2403
+ export declare enum UpdateProposalStatusRequest_NewStatus {
2404
+ /**
2405
+ * @generated from enum value: NEW_STATUS_UNSPECIFIED = 0;
2406
+ */
2407
+ UNSPECIFIED = 0,
2408
+ /**
2409
+ * @generated from enum value: NEW_STATUS_SETTLED = 1;
2410
+ */
2411
+ SETTLED = 1,
2412
+ /**
2413
+ * @generated from enum value: NEW_STATUS_CANCELLED = 2;
2414
+ */
2415
+ CANCELLED = 2,
2416
+ /**
2417
+ * @generated from enum value: NEW_STATUS_FAILED = 3;
2418
+ */
2419
+ FAILED = 3
2420
+ }
2421
+ /**
2422
+ * Describes the enum silvana.settlement.v1.UpdateProposalStatusRequest.NewStatus.
2423
+ */
2424
+ export declare const UpdateProposalStatusRequest_NewStatusSchema: GenEnum<UpdateProposalStatusRequest_NewStatus>;
2425
+ /**
2426
+ * @generated from message silvana.settlement.v1.UpdateProposalStatusResponse
2427
+ */
2428
+ export type UpdateProposalStatusResponse = Message<"silvana.settlement.v1.UpdateProposalStatusResponse"> & {
2429
+ /**
2430
+ * @generated from field: bool success = 1;
2431
+ */
2432
+ success: boolean;
2433
+ /**
2434
+ * @generated from field: string message = 2;
2435
+ */
2436
+ message: string;
2437
+ };
2438
+ /**
2439
+ * Describes the message silvana.settlement.v1.UpdateProposalStatusResponse.
2440
+ * Use `create(UpdateProposalStatusResponseSchema)` to create a new message.
2441
+ */
2442
+ export declare const UpdateProposalStatusResponseSchema: GenMessage<UpdateProposalStatusResponse>;
2443
+ /**
2444
+ * Get settlement proposal by ID request
2445
+ *
2446
+ * @generated from message silvana.settlement.v1.GetSettlementProposalByIdRequest
2447
+ */
2448
+ export type GetSettlementProposalByIdRequest = Message<"silvana.settlement.v1.GetSettlementProposalByIdRequest"> & {
2449
+ /**
2450
+ * @generated from oneof silvana.settlement.v1.GetSettlementProposalByIdRequest.auth
2451
+ */
2452
+ auth: {
2453
+ /**
2454
+ * @generated from field: silvana.settlement.v1.CantonNodeAuth canton_auth = 1;
2455
+ */
2456
+ value: CantonNodeAuth;
2457
+ case: "cantonAuth";
2458
+ } | {
2459
+ /**
2460
+ * @generated from field: silvana.settlement.v1.ExternalAuth external_auth = 2;
2461
+ */
2462
+ value: ExternalAuth;
2463
+ case: "externalAuth";
2464
+ } | {
2465
+ case: undefined;
2466
+ value?: undefined;
2467
+ };
2468
+ /**
2469
+ * UUID v7
2470
+ *
2471
+ * @generated from field: string proposal_id = 3;
2472
+ */
2473
+ proposalId: string;
2474
+ };
2475
+ /**
2476
+ * Describes the message silvana.settlement.v1.GetSettlementProposalByIdRequest.
2477
+ * Use `create(GetSettlementProposalByIdRequestSchema)` to create a new message.
2478
+ */
2479
+ export declare const GetSettlementProposalByIdRequestSchema: GenMessage<GetSettlementProposalByIdRequest>;
2480
+ /**
2481
+ * Get settlement proposal by ID response
2482
+ *
2483
+ * @generated from message silvana.settlement.v1.GetSettlementProposalByIdResponse
2484
+ */
2485
+ export type GetSettlementProposalByIdResponse = Message<"silvana.settlement.v1.GetSettlementProposalByIdResponse"> & {
2486
+ /**
2487
+ * @generated from field: bool found = 1;
2488
+ */
2489
+ found: boolean;
2490
+ /**
2491
+ * @generated from field: silvana.settlement.v1.SettlementProposalMessage proposal = 2;
2492
+ */
2493
+ proposal?: SettlementProposalMessage;
2494
+ };
2495
+ /**
2496
+ * Describes the message silvana.settlement.v1.GetSettlementProposalByIdResponse.
2497
+ * Use `create(GetSettlementProposalByIdResponseSchema)` to create a new message.
2498
+ */
2499
+ export declare const GetSettlementProposalByIdResponseSchema: GenMessage<GetSettlementProposalByIdResponse>;
2500
+ /**
2501
+ * DVP settlement stage enumeration
2502
+ *
2503
+ * @generated from enum silvana.settlement.v1.SettlementStage
2504
+ */
2505
+ export declare enum SettlementStage {
2506
+ /**
2507
+ * @generated from enum value: SETTLEMENT_STAGE_UNSPECIFIED = 0;
2508
+ */
2509
+ UNSPECIFIED = 0,
2510
+ /**
2511
+ * @generated from enum value: SETTLEMENT_STAGE_PROPOSAL_RECEIVED = 1;
2512
+ */
2513
+ PROPOSAL_RECEIVED = 1,
2514
+ /**
2515
+ * @generated from enum value: SETTLEMENT_STAGE_PRECONFIRMATION_PENDING = 2;
2516
+ */
2517
+ PRECONFIRMATION_PENDING = 2,
2518
+ /**
2519
+ * @generated from enum value: SETTLEMENT_STAGE_PRECONFIRMED = 3;
2520
+ */
2521
+ PRECONFIRMED = 3,
2522
+ /**
2523
+ * @generated from enum value: SETTLEMENT_STAGE_DVP_PROPOSAL_CREATING = 4;
2524
+ */
2525
+ DVP_PROPOSAL_CREATING = 4,
2526
+ /**
2527
+ * @generated from enum value: SETTLEMENT_STAGE_DVP_PROPOSAL_CREATED = 5;
2528
+ */
2529
+ DVP_PROPOSAL_CREATED = 5,
2530
+ /**
2531
+ * @generated from enum value: SETTLEMENT_STAGE_DVP_ACCEPTING = 6;
2532
+ */
2533
+ DVP_ACCEPTING = 6,
2534
+ /**
2535
+ * @generated from enum value: SETTLEMENT_STAGE_DVP_ACCEPTED = 7;
2536
+ */
2537
+ DVP_ACCEPTED = 7,
2538
+ /**
2539
+ * @generated from enum value: SETTLEMENT_STAGE_ALLOCATING = 8;
2540
+ */
2541
+ ALLOCATING = 8,
2542
+ /**
2543
+ * @generated from enum value: SETTLEMENT_STAGE_ALLOCATED = 9;
2544
+ */
2545
+ ALLOCATED = 9,
2546
+ /**
2547
+ * @generated from enum value: SETTLEMENT_STAGE_SETTLING = 10;
2548
+ */
2549
+ SETTLING = 10,
2550
+ /**
2551
+ * @generated from enum value: SETTLEMENT_STAGE_SETTLED = 11;
2552
+ */
2553
+ SETTLED = 11,
2554
+ /**
2555
+ * @generated from enum value: SETTLEMENT_STAGE_FAILED = 12;
2556
+ */
2557
+ FAILED = 12,
2558
+ /**
2559
+ * @generated from enum value: SETTLEMENT_STAGE_CANCELLED = 13;
2560
+ */
2561
+ CANCELLED = 13
2562
+ }
2563
+ /**
2564
+ * Describes the enum silvana.settlement.v1.SettlementStage.
2565
+ */
2566
+ export declare const SettlementStageSchema: GenEnum<SettlementStage>;
2567
+ /**
2568
+ * Preconfirmation response type
2569
+ *
2570
+ * @generated from enum silvana.settlement.v1.PreconfirmationResponse
2571
+ */
2572
+ export declare enum PreconfirmationResponse {
2573
+ /**
2574
+ * @generated from enum value: PRECONFIRMATION_RESPONSE_UNSPECIFIED = 0;
2575
+ */
2576
+ UNSPECIFIED = 0,
2577
+ /**
2578
+ * @generated from enum value: PRECONFIRMATION_RESPONSE_ACCEPT = 1;
2579
+ */
2580
+ ACCEPT = 1,
2581
+ /**
2582
+ * @generated from enum value: PRECONFIRMATION_RESPONSE_REJECT = 2;
2583
+ */
2584
+ REJECT = 2
2585
+ }
2586
+ /**
2587
+ * Describes the enum silvana.settlement.v1.PreconfirmationResponse.
2588
+ */
2589
+ export declare const PreconfirmationResponseSchema: GenEnum<PreconfirmationResponse>;
2590
+ /**
2591
+ * Party role in settlement
2592
+ *
2593
+ * @generated from enum silvana.settlement.v1.PartyRole
2594
+ */
2595
+ export declare enum PartyRole {
2596
+ /**
2597
+ * @generated from enum value: PARTY_ROLE_UNSPECIFIED = 0;
2598
+ */
2599
+ UNSPECIFIED = 0,
2600
+ /**
2601
+ * @generated from enum value: PARTY_ROLE_BUYER = 1;
2602
+ */
2603
+ BUYER = 1,
2604
+ /**
2605
+ * @generated from enum value: PARTY_ROLE_SELLER = 2;
2606
+ */
2607
+ SELLER = 2,
2608
+ /**
2609
+ * @generated from enum value: PARTY_ROLE_OPERATOR = 3;
2610
+ */
2611
+ OPERATOR = 3
2612
+ }
2613
+ /**
2614
+ * Describes the enum silvana.settlement.v1.PartyRole.
2615
+ */
2616
+ export declare const PartyRoleSchema: GenEnum<PartyRole>;
2617
+ /**
2230
2618
  * Transaction type for history tracking
2231
2619
  *
2232
2620
  * @generated from enum silvana.settlement.v1.TransactionType
@@ -2351,6 +2739,358 @@ export declare enum TransactionResult {
2351
2739
  * Describes the enum silvana.settlement.v1.TransactionResult.
2352
2740
  */
2353
2741
  export declare const TransactionResultSchema: GenEnum<TransactionResult>;
2742
+ /**
2743
+ * Event types for settlement proposal history (all 11 DVP transactions + contract lifecycle)
2744
+ *
2745
+ * @generated from enum silvana.settlement.v1.SettlementEventType
2746
+ */
2747
+ export declare enum SettlementEventType {
2748
+ /**
2749
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_UNSPECIFIED = 0;
2750
+ */
2751
+ UNSPECIFIED = 0,
2752
+ /**
2753
+ * Step 1: DVP Processing Fee (buyer pays)
2754
+ *
2755
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_PROCESSING_FEE_BUYER_SUBMITTED = 1;
2756
+ */
2757
+ DVP_PROCESSING_FEE_BUYER_SUBMITTED = 1,
2758
+ /**
2759
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_PROCESSING_FEE_BUYER_COMPLETED = 2;
2760
+ */
2761
+ DVP_PROCESSING_FEE_BUYER_COMPLETED = 2,
2762
+ /**
2763
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_PROCESSING_FEE_BUYER_RECEIVED = 3;
2764
+ */
2765
+ DVP_PROCESSING_FEE_BUYER_RECEIVED = 3,
2766
+ /**
2767
+ * Step 2: DVP Request (buyer creates DvpProposal)
2768
+ *
2769
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_REQUEST_SUBMITTED = 4;
2770
+ */
2771
+ DVP_REQUEST_SUBMITTED = 4,
2772
+ /**
2773
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_REQUEST_COMPLETED = 5;
2774
+ */
2775
+ DVP_REQUEST_COMPLETED = 5,
2776
+ /**
2777
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_REQUEST_WITNESSED = 6;
2778
+ */
2779
+ DVP_REQUEST_WITNESSED = 6,
2780
+ /**
2781
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_REQUEST_REJECTED = 7;
2782
+ */
2783
+ DVP_REQUEST_REJECTED = 7,
2784
+ /**
2785
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_REQUEST_CANCELLED = 8;
2786
+ */
2787
+ DVP_REQUEST_CANCELLED = 8,
2788
+ /**
2789
+ * Step 3: DVP Processing Fee (seller pays)
2790
+ *
2791
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_PROCESSING_FEE_SELLER_SUBMITTED = 9;
2792
+ */
2793
+ DVP_PROCESSING_FEE_SELLER_SUBMITTED = 9,
2794
+ /**
2795
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_PROCESSING_FEE_SELLER_COMPLETED = 10;
2796
+ */
2797
+ DVP_PROCESSING_FEE_SELLER_COMPLETED = 10,
2798
+ /**
2799
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_PROCESSING_FEE_SELLER_RECEIVED = 11;
2800
+ */
2801
+ DVP_PROCESSING_FEE_SELLER_RECEIVED = 11,
2802
+ /**
2803
+ * Step 4: Accept DVP (seller accepts, creates Dvp contract)
2804
+ *
2805
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_ACCEPT_SUBMITTED = 12;
2806
+ */
2807
+ DVP_ACCEPT_SUBMITTED = 12,
2808
+ /**
2809
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_ACCEPT_COMPLETED = 13;
2810
+ */
2811
+ DVP_ACCEPT_COMPLETED = 13,
2812
+ /**
2813
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_ACCEPTED_WITNESSED = 14;
2814
+ */
2815
+ DVP_ACCEPTED_WITNESSED = 14,
2816
+ /**
2817
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_REJECTED = 15;
2818
+ */
2819
+ DVP_REJECTED = 15,
2820
+ /**
2821
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_WITHDRAWN = 16;
2822
+ */
2823
+ DVP_WITHDRAWN = 16,
2824
+ /**
2825
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_DVP_CANCELLED = 17;
2826
+ */
2827
+ DVP_CANCELLED = 17,
2828
+ /**
2829
+ * Step 5: Allocation Processing Fee (buyer pays)
2830
+ *
2831
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_PROCESSING_FEE_BUYER_SUBMITTED = 18;
2832
+ */
2833
+ ALLOCATION_PROCESSING_FEE_BUYER_SUBMITTED = 18,
2834
+ /**
2835
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_PROCESSING_FEE_BUYER_COMPLETED = 19;
2836
+ */
2837
+ ALLOCATION_PROCESSING_FEE_BUYER_COMPLETED = 19,
2838
+ /**
2839
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_PROCESSING_FEE_BUYER_RECEIVED = 20;
2840
+ */
2841
+ ALLOCATION_PROCESSING_FEE_BUYER_RECEIVED = 20,
2842
+ /**
2843
+ * Step 6: Allocate CC (buyer allocates base instrument)
2844
+ *
2845
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_BUYER_SUBMITTED = 21;
2846
+ */
2847
+ ALLOCATION_BUYER_SUBMITTED = 21,
2848
+ /**
2849
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_BUYER_COMPLETED = 22;
2850
+ */
2851
+ ALLOCATION_BUYER_COMPLETED = 22,
2852
+ /**
2853
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_BUYER_WITNESSED = 23;
2854
+ */
2855
+ ALLOCATION_BUYER_WITNESSED = 23,
2856
+ /**
2857
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_BUYER_WITHDRAWN = 24;
2858
+ */
2859
+ ALLOCATION_BUYER_WITHDRAWN = 24,
2860
+ /**
2861
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_BUYER_CANCELLED = 25;
2862
+ */
2863
+ ALLOCATION_BUYER_CANCELLED = 25,
2864
+ /**
2865
+ * Step 7: Allocation Processing Fee (seller pays)
2866
+ *
2867
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_PROCESSING_FEE_SELLER_SUBMITTED = 26;
2868
+ */
2869
+ ALLOCATION_PROCESSING_FEE_SELLER_SUBMITTED = 26,
2870
+ /**
2871
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_PROCESSING_FEE_SELLER_COMPLETED = 27;
2872
+ */
2873
+ ALLOCATION_PROCESSING_FEE_SELLER_COMPLETED = 27,
2874
+ /**
2875
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_PROCESSING_FEE_SELLER_RECEIVED = 28;
2876
+ */
2877
+ ALLOCATION_PROCESSING_FEE_SELLER_RECEIVED = 28,
2878
+ /**
2879
+ * Step 8: Allocate USDC (seller allocates quote instrument)
2880
+ *
2881
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_SELLER_SUBMITTED = 29;
2882
+ */
2883
+ ALLOCATION_SELLER_SUBMITTED = 29,
2884
+ /**
2885
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_SELLER_COMPLETED = 30;
2886
+ */
2887
+ ALLOCATION_SELLER_COMPLETED = 30,
2888
+ /**
2889
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_SELLER_WITNESSED = 31;
2890
+ */
2891
+ ALLOCATION_SELLER_WITNESSED = 31,
2892
+ /**
2893
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_SELLER_WITHDRAWN = 32;
2894
+ */
2895
+ ALLOCATION_SELLER_WITHDRAWN = 32,
2896
+ /**
2897
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_ALLOCATION_SELLER_CANCELLED = 33;
2898
+ */
2899
+ ALLOCATION_SELLER_CANCELLED = 33,
2900
+ /**
2901
+ * Step 9: DVP Settlement (operator executes atomic swap)
2902
+ *
2903
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_SETTLEMENT_SUBMITTED = 34;
2904
+ */
2905
+ SETTLEMENT_SUBMITTED = 34,
2906
+ /**
2907
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_SETTLEMENT_COMPLETED = 35;
2908
+ */
2909
+ SETTLEMENT_COMPLETED = 35,
2910
+ /**
2911
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_SETTLEMENT_WITNESSED = 36;
2912
+ */
2913
+ SETTLEMENT_WITNESSED = 36,
2914
+ /**
2915
+ * Step 10: Traffic Compensation to Buyer
2916
+ *
2917
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_TRAFFIC_COMPENSATION_BUYER_SUBMITTED = 37;
2918
+ */
2919
+ TRAFFIC_COMPENSATION_BUYER_SUBMITTED = 37,
2920
+ /**
2921
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_TRAFFIC_COMPENSATION_BUYER_COMPLETED = 38;
2922
+ */
2923
+ TRAFFIC_COMPENSATION_BUYER_COMPLETED = 38,
2924
+ /**
2925
+ * Step 11: Traffic Compensation to Seller
2926
+ *
2927
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_TRAFFIC_COMPENSATION_SELLER_SUBMITTED = 39;
2928
+ */
2929
+ TRAFFIC_COMPENSATION_SELLER_SUBMITTED = 39,
2930
+ /**
2931
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_TRAFFIC_COMPENSATION_SELLER_COMPLETED = 40;
2932
+ */
2933
+ TRAFFIC_COMPENSATION_SELLER_COMPLETED = 40,
2934
+ /**
2935
+ * Preconfirmation (optional off-chain flow)
2936
+ *
2937
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_PRECONFIRMATION_REQUESTED = 41;
2938
+ */
2939
+ PRECONFIRMATION_REQUESTED = 41,
2940
+ /**
2941
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_PRECONFIRMATION_BUYER = 42;
2942
+ */
2943
+ PRECONFIRMATION_BUYER = 42,
2944
+ /**
2945
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_PRECONFIRMATION_SELLER = 43;
2946
+ */
2947
+ PRECONFIRMATION_SELLER = 43,
2948
+ /**
2949
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_PRECONFIRMATION_CANCELLED = 44;
2950
+ */
2951
+ PRECONFIRMATION_CANCELLED = 44,
2952
+ /**
2953
+ * Timeout (for expired proposals)
2954
+ *
2955
+ * @generated from enum value: SETTLEMENT_EVENT_TYPE_TIMEOUT = 45;
2956
+ */
2957
+ TIMEOUT = 45
2958
+ }
2959
+ /**
2960
+ * Describes the enum silvana.settlement.v1.SettlementEventType.
2961
+ */
2962
+ export declare const SettlementEventTypeSchema: GenEnum<SettlementEventType>;
2963
+ /**
2964
+ * Role of the party recording the event
2965
+ *
2966
+ * @generated from enum silvana.settlement.v1.RecordedByRole
2967
+ */
2968
+ export declare enum RecordedByRole {
2969
+ /**
2970
+ * @generated from enum value: RECORDED_BY_ROLE_UNSPECIFIED = 0;
2971
+ */
2972
+ UNSPECIFIED = 0,
2973
+ /**
2974
+ * @generated from enum value: RECORDED_BY_ROLE_BUYER = 1;
2975
+ */
2976
+ BUYER = 1,
2977
+ /**
2978
+ * @generated from enum value: RECORDED_BY_ROLE_SELLER = 2;
2979
+ */
2980
+ SELLER = 2,
2981
+ /**
2982
+ * @generated from enum value: RECORDED_BY_ROLE_OPERATOR = 3;
2983
+ */
2984
+ OPERATOR = 3,
2985
+ /**
2986
+ * @generated from enum value: RECORDED_BY_ROLE_SYSTEM = 4;
2987
+ */
2988
+ SYSTEM = 4
2989
+ }
2990
+ /**
2991
+ * Describes the enum silvana.settlement.v1.RecordedByRole.
2992
+ */
2993
+ export declare const RecordedByRoleSchema: GenEnum<RecordedByRole>;
2994
+ /**
2995
+ * Result of a settlement event
2996
+ *
2997
+ * @generated from enum silvana.settlement.v1.SettlementEventResult
2998
+ */
2999
+ export declare enum SettlementEventResult {
3000
+ /**
3001
+ * @generated from enum value: SETTLEMENT_EVENT_RESULT_UNSPECIFIED = 0;
3002
+ */
3003
+ UNSPECIFIED = 0,
3004
+ /**
3005
+ * @generated from enum value: SETTLEMENT_EVENT_RESULT_PENDING = 1;
3006
+ */
3007
+ PENDING = 1,
3008
+ /**
3009
+ * @generated from enum value: SETTLEMENT_EVENT_RESULT_SUCCESS = 2;
3010
+ */
3011
+ SUCCESS = 2,
3012
+ /**
3013
+ * @generated from enum value: SETTLEMENT_EVENT_RESULT_FAILED = 3;
3014
+ */
3015
+ FAILED = 3,
3016
+ /**
3017
+ * @generated from enum value: SETTLEMENT_EVENT_RESULT_TIMEOUT = 4;
3018
+ */
3019
+ TIMEOUT = 4
3020
+ }
3021
+ /**
3022
+ * Describes the enum silvana.settlement.v1.SettlementEventResult.
3023
+ */
3024
+ export declare const SettlementEventResultSchema: GenEnum<SettlementEventResult>;
3025
+ /**
3026
+ * Status of a single step in the DVP flow
3027
+ *
3028
+ * @generated from enum silvana.settlement.v1.DvpStepStatusEnum
3029
+ */
3030
+ export declare enum DvpStepStatusEnum {
3031
+ /**
3032
+ * @generated from enum value: DVP_STEP_STATUS_UNSPECIFIED = 0;
3033
+ */
3034
+ DVP_STEP_STATUS_UNSPECIFIED = 0,
3035
+ /**
3036
+ * Not started
3037
+ *
3038
+ * @generated from enum value: DVP_STEP_STATUS_PENDING = 1;
3039
+ */
3040
+ DVP_STEP_STATUS_PENDING = 1,
3041
+ /**
3042
+ * Transaction submitted
3043
+ *
3044
+ * @generated from enum value: DVP_STEP_STATUS_SUBMITTED = 2;
3045
+ */
3046
+ DVP_STEP_STATUS_SUBMITTED = 2,
3047
+ /**
3048
+ * Transaction completed
3049
+ *
3050
+ * @generated from enum value: DVP_STEP_STATUS_COMPLETED = 3;
3051
+ */
3052
+ DVP_STEP_STATUS_COMPLETED = 3,
3053
+ /**
3054
+ * Confirmed by operator (or witnessed on-chain)
3055
+ *
3056
+ * @generated from enum value: DVP_STEP_STATUS_CONFIRMED = 4;
3057
+ */
3058
+ DVP_STEP_STATUS_CONFIRMED = 4,
3059
+ /**
3060
+ * Failed
3061
+ *
3062
+ * @generated from enum value: DVP_STEP_STATUS_FAILED = 5;
3063
+ */
3064
+ DVP_STEP_STATUS_FAILED = 5,
3065
+ /**
3066
+ * Rejected by counterparty
3067
+ *
3068
+ * @generated from enum value: DVP_STEP_STATUS_REJECTED = 6;
3069
+ */
3070
+ DVP_STEP_STATUS_REJECTED = 6,
3071
+ /**
3072
+ * Withdrawn
3073
+ *
3074
+ * @generated from enum value: DVP_STEP_STATUS_WITHDRAWN = 7;
3075
+ */
3076
+ DVP_STEP_STATUS_WITHDRAWN = 7,
3077
+ /**
3078
+ * Cancelled
3079
+ *
3080
+ * @generated from enum value: DVP_STEP_STATUS_CANCELLED = 8;
3081
+ */
3082
+ DVP_STEP_STATUS_CANCELLED = 8,
3083
+ /**
3084
+ * Timed out
3085
+ *
3086
+ * @generated from enum value: DVP_STEP_STATUS_TIMEOUT = 9;
3087
+ */
3088
+ DVP_STEP_STATUS_TIMEOUT = 9
3089
+ }
3090
+ /**
3091
+ * Describes the enum silvana.settlement.v1.DvpStepStatusEnum.
3092
+ */
3093
+ export declare const DvpStepStatusEnumSchema: GenEnum<DvpStepStatusEnum>;
2354
3094
  /**
2355
3095
  * @generated from service silvana.settlement.v1.SettlementService
2356
3096
  */
@@ -2396,16 +3136,6 @@ export declare const SettlementService: GenService<{
2396
3136
  input: typeof SubmitPreconfirmationRequestSchema;
2397
3137
  output: typeof EmptySchema;
2398
3138
  };
2399
- /**
2400
- * Update settlement proposal (frontend user action with version control for concurrency)
2401
- *
2402
- * @generated from rpc silvana.settlement.v1.SettlementService.UpdateSettlementProposal
2403
- */
2404
- updateSettlementProposal: {
2405
- methodKind: "unary";
2406
- input: typeof UpdateSettlementProposalRequestSchema;
2407
- output: typeof UpdateSettlementProposalResponseSchema;
2408
- };
2409
3139
  /**
2410
3140
  * Save a disclosed contract (buyer/seller saves during allocation)
2411
3141
  *
@@ -2456,4 +3186,45 @@ export declare const SettlementService: GenService<{
2456
3186
  input: typeof GetTransactionHistoryRequestSchema;
2457
3187
  output: typeof GetTransactionHistoryResponseSchema;
2458
3188
  };
3189
+ /**
3190
+ * Settlement proposal history (append-only event log)
3191
+ * Record a settlement event (any party can record for their settlements)
3192
+ *
3193
+ * @generated from rpc silvana.settlement.v1.SettlementService.RecordSettlementEvent
3194
+ */
3195
+ recordSettlementEvent: {
3196
+ methodKind: "unary";
3197
+ input: typeof RecordSettlementEventRequestSchema;
3198
+ output: typeof RecordSettlementEventResponseSchema;
3199
+ };
3200
+ /**
3201
+ * Get settlement history for a proposal
3202
+ *
3203
+ * @generated from rpc silvana.settlement.v1.SettlementService.GetSettlementHistory
3204
+ */
3205
+ getSettlementHistory: {
3206
+ methodKind: "unary";
3207
+ input: typeof GetSettlementHistoryRequestSchema;
3208
+ output: typeof GetSettlementHistoryResponseSchema;
3209
+ };
3210
+ /**
3211
+ * Update proposal status (operator only: pending → settled/cancelled/failed)
3212
+ *
3213
+ * @generated from rpc silvana.settlement.v1.SettlementService.UpdateProposalStatus
3214
+ */
3215
+ updateProposalStatus: {
3216
+ methodKind: "unary";
3217
+ input: typeof UpdateProposalStatusRequestSchema;
3218
+ output: typeof UpdateProposalStatusResponseSchema;
3219
+ };
3220
+ /**
3221
+ * Get settlement proposal by ID (for external parties to fetch proposal details)
3222
+ *
3223
+ * @generated from rpc silvana.settlement.v1.SettlementService.GetSettlementProposalById
3224
+ */
3225
+ getSettlementProposalById: {
3226
+ methodKind: "unary";
3227
+ input: typeof GetSettlementProposalByIdRequestSchema;
3228
+ output: typeof GetSettlementProposalByIdResponseSchema;
3229
+ };
2459
3230
  }>;