@settlemint/dalp-sdk 2.1.7-main.25494997072 → 2.1.7-main.25495284694
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/dist/index.js +394 -340
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23151,7 +23151,7 @@ var feedsV2Contract = {
|
|
|
23151
23151
|
};
|
|
23152
23152
|
|
|
23153
23153
|
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.contract.ts
|
|
23154
|
-
import { z as
|
|
23154
|
+
import { z as z370 } from "zod";
|
|
23155
23155
|
|
|
23156
23156
|
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.claim-history.schema.ts
|
|
23157
23157
|
import { z as z367 } from "zod";
|
|
@@ -23228,10 +23228,56 @@ var ClaimsHistoryV2InputSchema = createCollectionInputSchema(CLAIM_HISTORY_COLLE
|
|
|
23228
23228
|
});
|
|
23229
23229
|
var ClaimsHistoryV2OutputSchema = createPaginatedResponse(ClaimsHistoryV2ItemSchema);
|
|
23230
23230
|
|
|
23231
|
-
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.
|
|
23231
|
+
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.keys.schema.ts
|
|
23232
23232
|
import { z as z368 } from "zod";
|
|
23233
|
+
var KEY_PURPOSE_VALUES = ["management", "deposit", "claimSigner", "encryption", "unknown"];
|
|
23234
|
+
var KEY_TYPE_VALUES = ["ecdsa", "rsa", "unknown"];
|
|
23235
|
+
var IdentityV2KeysItemSchema = z368.object({
|
|
23236
|
+
keyHash: z368.string().meta({
|
|
23237
|
+
description: "ERC-734 key hash — typically `keccak256(abi.encode(eoaAddress))` for an ECDSA key",
|
|
23238
|
+
examples: ["0x9d8a5b6f3a7f8e2c1d4b5a6e7f8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c"]
|
|
23239
|
+
}),
|
|
23240
|
+
purpose: z368.enum(KEY_PURPOSE_VALUES).meta({
|
|
23241
|
+
description: "ERC-734 key purpose label, decoded by the indexer. `management` = admin (purpose 1), `deposit` = action/signing (purpose 2), `claimSigner` = claim issuer (purpose 3), `encryption` = encryption (purpose 4).",
|
|
23242
|
+
examples: ["management"]
|
|
23243
|
+
}),
|
|
23244
|
+
keyType: z368.enum(KEY_TYPE_VALUES).meta({
|
|
23245
|
+
description: "ERC-734 key type label, decoded by the indexer.",
|
|
23246
|
+
examples: ["ecdsa"]
|
|
23247
|
+
}),
|
|
23248
|
+
createdAt: z368.coerce.date().meta({
|
|
23249
|
+
description: "Indexer ingestion timestamp (UTC)",
|
|
23250
|
+
examples: ["2026-05-06T12:34:56.000Z"]
|
|
23251
|
+
}),
|
|
23252
|
+
createdAtBlock: z368.string().meta({
|
|
23253
|
+
description: "Block number at which the `KeyAdded` event was emitted, as a decimal string",
|
|
23254
|
+
examples: ["12345678"]
|
|
23255
|
+
}),
|
|
23256
|
+
createdAtTxHash: z368.string().meta({
|
|
23257
|
+
description: "Transaction hash that emitted the `KeyAdded` event",
|
|
23258
|
+
examples: ["0xabc..."]
|
|
23259
|
+
})
|
|
23260
|
+
});
|
|
23261
|
+
var IDENTITY_KEYS_COLLECTION_FIELDS = {
|
|
23262
|
+
purpose: enumField(KEY_PURPOSE_VALUES, { defaultOperator: "eq", facetable: true }),
|
|
23263
|
+
keyType: enumField(KEY_TYPE_VALUES, { defaultOperator: "eq", facetable: true }),
|
|
23264
|
+
createdAt: dateField({ sortable: true, facetable: false })
|
|
23265
|
+
};
|
|
23266
|
+
var IdentityV2KeysParamsSchema = z368.object({
|
|
23267
|
+
identityAddress: ethereumAddress.meta({
|
|
23268
|
+
description: "Address of an indexed identity contract (organisation identity, user wallet identity, or any other contract identity).",
|
|
23269
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
23270
|
+
})
|
|
23271
|
+
});
|
|
23272
|
+
var IdentityV2KeysInputSchema = createCollectionInputSchema(IDENTITY_KEYS_COLLECTION_FIELDS, {
|
|
23273
|
+
defaultSort: "createdAt"
|
|
23274
|
+
});
|
|
23275
|
+
var IdentityV2KeysOutputSchema = createPaginatedResponse(IdentityV2KeysItemSchema);
|
|
23276
|
+
|
|
23277
|
+
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.list.schema.ts
|
|
23278
|
+
import { z as z369 } from "zod";
|
|
23233
23279
|
var KYC_STATUS_VALUES = ["pending", "registered"];
|
|
23234
|
-
var IdentityV2ListItemSchema =
|
|
23280
|
+
var IdentityV2ListItemSchema = z369.object({
|
|
23235
23281
|
id: ethereumAddress.meta({
|
|
23236
23282
|
description: "Identity contract address",
|
|
23237
23283
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -23240,11 +23286,11 @@ var IdentityV2ListItemSchema = z368.object({
|
|
|
23240
23286
|
description: "Wallet address registered against the identity",
|
|
23241
23287
|
examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
|
|
23242
23288
|
}),
|
|
23243
|
-
name:
|
|
23289
|
+
name: z369.string().nullable().meta({
|
|
23244
23290
|
description: "Account contract name when the identity belongs to a deployed contract",
|
|
23245
23291
|
examples: ["TreasuryMultisig", null]
|
|
23246
23292
|
}),
|
|
23247
|
-
kycStatus:
|
|
23293
|
+
kycStatus: z369.enum(KYC_STATUS_VALUES).meta({
|
|
23248
23294
|
description: "Registry-level KYC status: `pending` (registered, awaiting acceptance) or `registered` (active)",
|
|
23249
23295
|
examples: ["registered"]
|
|
23250
23296
|
}),
|
|
@@ -23252,23 +23298,23 @@ var IdentityV2ListItemSchema = z368.object({
|
|
|
23252
23298
|
description: "ISO 3166-1 alpha-2 country code from the registry, when set",
|
|
23253
23299
|
examples: ["BE", null]
|
|
23254
23300
|
}),
|
|
23255
|
-
isContract:
|
|
23301
|
+
isContract: z369.boolean().meta({
|
|
23256
23302
|
description: "Whether the identity belongs to a smart contract (vs an EOA)",
|
|
23257
23303
|
examples: [false]
|
|
23258
23304
|
}),
|
|
23259
|
-
claimsCount:
|
|
23305
|
+
claimsCount: z369.number().int().nonnegative().meta({
|
|
23260
23306
|
description: "Total claims attached to the identity",
|
|
23261
23307
|
examples: [3]
|
|
23262
23308
|
}),
|
|
23263
|
-
activeClaimsCount:
|
|
23309
|
+
activeClaimsCount: z369.number().int().nonnegative().meta({
|
|
23264
23310
|
description: "Non-revoked claims attached to the identity",
|
|
23265
23311
|
examples: [2]
|
|
23266
23312
|
}),
|
|
23267
|
-
revokedClaimsCount:
|
|
23313
|
+
revokedClaimsCount: z369.number().int().nonnegative().meta({
|
|
23268
23314
|
description: "Revoked claims attached to the identity",
|
|
23269
23315
|
examples: [1]
|
|
23270
23316
|
}),
|
|
23271
|
-
deployedInTransaction:
|
|
23317
|
+
deployedInTransaction: z369.string().meta({
|
|
23272
23318
|
description: "Transaction hash where the identity contract was deployed",
|
|
23273
23319
|
examples: ["0xabc..."]
|
|
23274
23320
|
})
|
|
@@ -23317,12 +23363,12 @@ var readByWallet2 = v2Contract.route({
|
|
|
23317
23363
|
description: "Read identity information by wallet address with claim validation.",
|
|
23318
23364
|
successDescription: "Identity information retrieved successfully.",
|
|
23319
23365
|
tags: TAGS30
|
|
23320
|
-
}).input(v2Input.paramsQuery(
|
|
23366
|
+
}).input(v2Input.paramsQuery(z370.object({
|
|
23321
23367
|
wallet: ethereumAddress.meta({
|
|
23322
23368
|
description: "The wallet address of the user",
|
|
23323
23369
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
23324
23370
|
})
|
|
23325
|
-
}),
|
|
23371
|
+
}), z370.object({
|
|
23326
23372
|
tokenAddress: ethereumAddress.optional().meta({
|
|
23327
23373
|
description: "Optional token address for token-specific trusted issuer validation.",
|
|
23328
23374
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
@@ -23334,12 +23380,12 @@ var readById = v2Contract.route({
|
|
|
23334
23380
|
description: "Read identity information by identity contract address.",
|
|
23335
23381
|
successDescription: "Identity information retrieved successfully.",
|
|
23336
23382
|
tags: TAGS30
|
|
23337
|
-
}).input(v2Input.paramsQuery(
|
|
23383
|
+
}).input(v2Input.paramsQuery(z370.object({
|
|
23338
23384
|
identityAddress: ethereumAddress.meta({
|
|
23339
23385
|
description: "The address of the identity contract to read",
|
|
23340
23386
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
23341
23387
|
})
|
|
23342
|
-
}),
|
|
23388
|
+
}), z370.object({
|
|
23343
23389
|
tokenAddress: ethereumAddress.optional().meta({
|
|
23344
23390
|
description: "Optional token address for token-specific trusted issuer validation.",
|
|
23345
23391
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
@@ -23366,13 +23412,20 @@ var list31 = v2Contract.route({
|
|
|
23366
23412
|
successDescription: "Identities fetched successfully.",
|
|
23367
23413
|
tags: TAGS30
|
|
23368
23414
|
}).input(v2Input.query(IdentityV2ListInputSchema)).output(IdentityV2ListOutputSchema);
|
|
23415
|
+
var keys = v2Contract.route({
|
|
23416
|
+
method: "GET",
|
|
23417
|
+
path: "/system/identities/{identityAddress}/keys",
|
|
23418
|
+
description: "List ERC-734 keys registered on a contract identity (typically the system organisation identity). Indexer-backed, role-gated.",
|
|
23419
|
+
successDescription: "Identity keys retrieved successfully.",
|
|
23420
|
+
tags: TAGS30
|
|
23421
|
+
}).input(v2Input.paramsQuery(IdentityV2KeysParamsSchema, IdentityV2KeysInputSchema)).output(IdentityV2KeysOutputSchema);
|
|
23369
23422
|
var identityDelete2 = v2Contract.route({
|
|
23370
23423
|
method: "DELETE",
|
|
23371
23424
|
path: "/system/wallets/{wallet}/identity",
|
|
23372
23425
|
description: "Delete an identity from the system's identity registry.",
|
|
23373
23426
|
successDescription: "Identity deleted successfully.",
|
|
23374
23427
|
tags: TAGS30
|
|
23375
|
-
}).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.paramsBody(
|
|
23428
|
+
}).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.paramsBody(z370.object({ wallet: IdentityDeleteInputSchema.shape.wallet }), IdentityDeleteInputSchema.omit({ wallet: true }))).output(createAsyncBlockchainMutationResponse(IdentityDeleteOutputSchema));
|
|
23376
23429
|
var updateCountry = v2Contract.route({
|
|
23377
23430
|
method: "PATCH",
|
|
23378
23431
|
path: "/system/identity-countries",
|
|
@@ -23417,6 +23470,7 @@ var identityV2Contract = {
|
|
|
23417
23470
|
search: search3,
|
|
23418
23471
|
me: me2,
|
|
23419
23472
|
list: list31,
|
|
23473
|
+
keys,
|
|
23420
23474
|
delete: identityDelete2,
|
|
23421
23475
|
updateCountry,
|
|
23422
23476
|
registrationStatus,
|
|
@@ -23428,18 +23482,18 @@ var identityV2Contract = {
|
|
|
23428
23482
|
};
|
|
23429
23483
|
|
|
23430
23484
|
// ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.compare.schema.ts
|
|
23431
|
-
import { z as
|
|
23432
|
-
var MigrationComponentStatusSchema =
|
|
23433
|
-
var MigrationComponentSchema =
|
|
23434
|
-
key:
|
|
23485
|
+
import { z as z371 } from "zod";
|
|
23486
|
+
var MigrationComponentStatusSchema = z371.enum(["up-to-date", "update-available", "new"]);
|
|
23487
|
+
var MigrationComponentSchema = z371.object({
|
|
23488
|
+
key: z371.string().meta({
|
|
23435
23489
|
description: "Directory key or type identifier for this component",
|
|
23436
23490
|
examples: ["SYSTEM", "COMPLIANCE", "bond"]
|
|
23437
23491
|
}),
|
|
23438
|
-
label:
|
|
23492
|
+
label: z371.string().meta({
|
|
23439
23493
|
description: "Human-readable name",
|
|
23440
23494
|
examples: ["System Proxy", "Compliance Module Registry", "Bond Factory"]
|
|
23441
23495
|
}),
|
|
23442
|
-
group:
|
|
23496
|
+
group: z371.string().meta({
|
|
23443
23497
|
description: "Logical category for UI grouping",
|
|
23444
23498
|
examples: ["core", "identity", "compliance", "registries", "tokenFactories", "addons", "complianceModules"]
|
|
23445
23499
|
}),
|
|
@@ -23450,62 +23504,62 @@ var MigrationComponentSchema = z370.object({
|
|
|
23450
23504
|
description: "Expected implementation address from the directory (null if not registered)"
|
|
23451
23505
|
}),
|
|
23452
23506
|
status: MigrationComponentStatusSchema,
|
|
23453
|
-
affectedTokenCount:
|
|
23507
|
+
affectedTokenCount: z371.number().optional().meta({
|
|
23454
23508
|
description: "Number of tokens affected by this component's upgrade (for factory components)",
|
|
23455
23509
|
examples: [0, 12, 47]
|
|
23456
23510
|
})
|
|
23457
23511
|
});
|
|
23458
|
-
var MigrationComponentGroupSchema =
|
|
23459
|
-
id:
|
|
23512
|
+
var MigrationComponentGroupSchema = z371.object({
|
|
23513
|
+
id: z371.string().meta({
|
|
23460
23514
|
description: "Group identifier",
|
|
23461
23515
|
examples: ["core", "identity", "tokenFactories"]
|
|
23462
23516
|
}),
|
|
23463
|
-
label:
|
|
23517
|
+
label: z371.string().meta({
|
|
23464
23518
|
description: "Human-readable group name",
|
|
23465
23519
|
examples: ["Core System", "Identity", "Token Factories"]
|
|
23466
23520
|
}),
|
|
23467
|
-
components:
|
|
23521
|
+
components: z371.array(MigrationComponentSchema)
|
|
23468
23522
|
});
|
|
23469
|
-
var MigrationCompareOutputSchema =
|
|
23523
|
+
var MigrationCompareOutputSchema = z371.object({
|
|
23470
23524
|
systemAddress: ethereumAddress.meta({
|
|
23471
23525
|
description: "The system contract address that was compared"
|
|
23472
23526
|
}),
|
|
23473
23527
|
directoryAddress: ethereumAddress.meta({
|
|
23474
23528
|
description: "The directory contract address used as reference"
|
|
23475
23529
|
}),
|
|
23476
|
-
summary:
|
|
23477
|
-
totalComponents:
|
|
23478
|
-
upToDate:
|
|
23479
|
-
updateAvailable:
|
|
23480
|
-
pendingInstall:
|
|
23481
|
-
totalAffectedTokens:
|
|
23530
|
+
summary: z371.object({
|
|
23531
|
+
totalComponents: z371.number(),
|
|
23532
|
+
upToDate: z371.number(),
|
|
23533
|
+
updateAvailable: z371.number(),
|
|
23534
|
+
pendingInstall: z371.number(),
|
|
23535
|
+
totalAffectedTokens: z371.number()
|
|
23482
23536
|
}),
|
|
23483
|
-
groups:
|
|
23537
|
+
groups: z371.array(MigrationComponentGroupSchema)
|
|
23484
23538
|
});
|
|
23485
23539
|
|
|
23486
23540
|
// ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.start.schema.ts
|
|
23487
|
-
import { z as
|
|
23488
|
-
var MigrationV2StartOutputSchema =
|
|
23489
|
-
migrationId:
|
|
23541
|
+
import { z as z372 } from "zod";
|
|
23542
|
+
var MigrationV2StartOutputSchema = z372.object({
|
|
23543
|
+
migrationId: z372.string().meta({
|
|
23490
23544
|
description: "Unique migration identifier (used for SSE stream subscription)"
|
|
23491
23545
|
}),
|
|
23492
|
-
tree:
|
|
23546
|
+
tree: z372.array(DeploymentNodeSchema).meta({
|
|
23493
23547
|
description: "Initial deployment tree with all steps in pending state"
|
|
23494
23548
|
})
|
|
23495
23549
|
});
|
|
23496
23550
|
|
|
23497
23551
|
// ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.stream.schema.ts
|
|
23498
23552
|
import { eventIterator as eventIterator6 } from "@orpc/contract";
|
|
23499
|
-
import { z as
|
|
23500
|
-
var MigrationV2StreamInputSchema =
|
|
23501
|
-
migrationId:
|
|
23553
|
+
import { z as z373 } from "zod";
|
|
23554
|
+
var MigrationV2StreamInputSchema = z373.object({
|
|
23555
|
+
migrationId: z373.string()
|
|
23502
23556
|
});
|
|
23503
23557
|
var MigrationV2StreamOutputSchema = eventIterator6(DeploymentEventSchema);
|
|
23504
23558
|
|
|
23505
23559
|
// ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.active.schema.ts
|
|
23506
|
-
import { z as
|
|
23507
|
-
var MigrationV2ActiveOutputSchema =
|
|
23508
|
-
migrationId:
|
|
23560
|
+
import { z as z374 } from "zod";
|
|
23561
|
+
var MigrationV2ActiveOutputSchema = z374.object({
|
|
23562
|
+
migrationId: z374.string().nullable().meta({
|
|
23509
23563
|
description: "Active migration ID if one is in-flight, null otherwise"
|
|
23510
23564
|
})
|
|
23511
23565
|
});
|
|
@@ -23547,7 +23601,7 @@ var migrationV2Contract = {
|
|
|
23547
23601
|
};
|
|
23548
23602
|
|
|
23549
23603
|
// ../../packages/dalp/api-contract/src/routes/v2/system/stats/stats.v2.contract.ts
|
|
23550
|
-
import { z as
|
|
23604
|
+
import { z as z375 } from "zod";
|
|
23551
23605
|
var assets2 = v2Contract.route({
|
|
23552
23606
|
method: "GET",
|
|
23553
23607
|
path: "/system/stats/assets",
|
|
@@ -23561,8 +23615,8 @@ var assetLifecycleByRange = v2Contract.route({
|
|
|
23561
23615
|
description: "Retrieve counts for created and launched assets over custom time range",
|
|
23562
23616
|
successDescription: "System asset lifecycle metrics retrieved successfully",
|
|
23563
23617
|
tags: [V2_TAG.systemStats]
|
|
23564
|
-
}).input(v2Input.query(
|
|
23565
|
-
interval:
|
|
23618
|
+
}).input(v2Input.query(z375.object({
|
|
23619
|
+
interval: z375.enum(["hour", "day"]),
|
|
23566
23620
|
from: timestamp(),
|
|
23567
23621
|
to: timestamp()
|
|
23568
23622
|
}))).output(createSingleResponse(StatsAssetLifecycleOutputSchema));
|
|
@@ -23572,8 +23626,8 @@ var assetLifecycleByPreset = v2Contract.route({
|
|
|
23572
23626
|
description: "Retrieve counts for created and launched assets using preset range",
|
|
23573
23627
|
successDescription: "System asset lifecycle metrics retrieved successfully",
|
|
23574
23628
|
tags: [V2_TAG.systemStats]
|
|
23575
|
-
}).input(v2Input.params(
|
|
23576
|
-
preset:
|
|
23629
|
+
}).input(v2Input.params(z375.object({
|
|
23630
|
+
preset: z375.enum(["trailing24Hours", "trailing7Days"])
|
|
23577
23631
|
}))).output(createSingleResponse(StatsAssetLifecycleOutputSchema));
|
|
23578
23632
|
var assetActivityByRange = v2Contract.route({
|
|
23579
23633
|
method: "GET",
|
|
@@ -23581,8 +23635,8 @@ var assetActivityByRange = v2Contract.route({
|
|
|
23581
23635
|
description: "Retrieve counts for transfer, mint, and burn events over custom time range",
|
|
23582
23636
|
successDescription: "System asset activity metrics retrieved successfully",
|
|
23583
23637
|
tags: [V2_TAG.systemStats]
|
|
23584
|
-
}).input(v2Input.query(
|
|
23585
|
-
interval:
|
|
23638
|
+
}).input(v2Input.query(z375.object({
|
|
23639
|
+
interval: z375.enum(["hour", "day"]),
|
|
23586
23640
|
from: timestamp(),
|
|
23587
23641
|
to: timestamp()
|
|
23588
23642
|
}))).output(createSingleResponse(StatsAssetActivityOutputSchema));
|
|
@@ -23592,8 +23646,8 @@ var assetActivityByPreset = v2Contract.route({
|
|
|
23592
23646
|
description: "Retrieve counts for transfer, mint, and burn events using preset range",
|
|
23593
23647
|
successDescription: "System asset activity metrics retrieved successfully",
|
|
23594
23648
|
tags: [V2_TAG.systemStats]
|
|
23595
|
-
}).input(v2Input.params(
|
|
23596
|
-
preset:
|
|
23649
|
+
}).input(v2Input.params(z375.object({
|
|
23650
|
+
preset: z375.enum(["trailing24Hours", "trailing7Days"])
|
|
23597
23651
|
}))).output(createSingleResponse(StatsAssetActivityOutputSchema));
|
|
23598
23652
|
var claimsStatsByRange = v2Contract.route({
|
|
23599
23653
|
method: "GET",
|
|
@@ -23601,8 +23655,8 @@ var claimsStatsByRange = v2Contract.route({
|
|
|
23601
23655
|
description: "Retrieve claims statistics over custom time range including issued, active, removed, and revoked claims",
|
|
23602
23656
|
successDescription: "Claims statistics retrieved successfully",
|
|
23603
23657
|
tags: [V2_TAG.systemStats]
|
|
23604
|
-
}).input(v2Input.query(
|
|
23605
|
-
interval:
|
|
23658
|
+
}).input(v2Input.query(z375.object({
|
|
23659
|
+
interval: z375.enum(["hour", "day"]),
|
|
23606
23660
|
from: timestamp(),
|
|
23607
23661
|
to: timestamp()
|
|
23608
23662
|
}))).output(createSingleResponse(StatsClaimsStatsOutputSchema));
|
|
@@ -23612,8 +23666,8 @@ var claimsStatsByPreset = v2Contract.route({
|
|
|
23612
23666
|
description: "Retrieve claims statistics using preset range including issued, active, removed, and revoked claims",
|
|
23613
23667
|
successDescription: "Claims statistics retrieved successfully",
|
|
23614
23668
|
tags: [V2_TAG.systemStats]
|
|
23615
|
-
}).input(v2Input.params(
|
|
23616
|
-
preset:
|
|
23669
|
+
}).input(v2Input.params(z375.object({
|
|
23670
|
+
preset: z375.enum(["trailing24Hours", "trailing7Days"])
|
|
23617
23671
|
}))).output(createSingleResponse(StatsClaimsStatsOutputSchema));
|
|
23618
23672
|
var claimsStatsState = v2Contract.route({
|
|
23619
23673
|
method: "GET",
|
|
@@ -23642,8 +23696,8 @@ var identityStatsOverTimeByRange = v2Contract.route({
|
|
|
23642
23696
|
description: "Retrieve identity statistics over custom time range for charts",
|
|
23643
23697
|
successDescription: "Identity statistics over time retrieved successfully",
|
|
23644
23698
|
tags: [V2_TAG.systemStats]
|
|
23645
|
-
}).input(v2Input.query(
|
|
23646
|
-
interval:
|
|
23699
|
+
}).input(v2Input.query(z375.object({
|
|
23700
|
+
interval: z375.enum(["hour", "day"]),
|
|
23647
23701
|
from: timestamp(),
|
|
23648
23702
|
to: timestamp()
|
|
23649
23703
|
}))).output(createSingleResponse(StatsIdentityStatsOverTimeOutputSchema));
|
|
@@ -23653,8 +23707,8 @@ var identityStatsOverTimeByPreset = v2Contract.route({
|
|
|
23653
23707
|
description: "Retrieve identity statistics using preset range for charts",
|
|
23654
23708
|
successDescription: "Identity statistics over time retrieved successfully",
|
|
23655
23709
|
tags: [V2_TAG.systemStats]
|
|
23656
|
-
}).input(v2Input.params(
|
|
23657
|
-
preset:
|
|
23710
|
+
}).input(v2Input.params(z375.object({
|
|
23711
|
+
preset: z375.enum(["trailing24Hours", "trailing7Days"])
|
|
23658
23712
|
}))).output(createSingleResponse(StatsIdentityStatsOverTimeOutputSchema));
|
|
23659
23713
|
var transactionCount = v2Contract.route({
|
|
23660
23714
|
method: "GET",
|
|
@@ -23676,8 +23730,8 @@ var trustedIssuerStatsByRange = v2Contract.route({
|
|
|
23676
23730
|
description: "Retrieve trusted issuer statistics over custom time range including added, active, and removed issuers",
|
|
23677
23731
|
successDescription: "Trusted issuer statistics retrieved successfully",
|
|
23678
23732
|
tags: [V2_TAG.systemStats]
|
|
23679
|
-
}).input(v2Input.query(
|
|
23680
|
-
interval:
|
|
23733
|
+
}).input(v2Input.query(z375.object({
|
|
23734
|
+
interval: z375.enum(["hour", "day"]),
|
|
23681
23735
|
from: timestamp(),
|
|
23682
23736
|
to: timestamp()
|
|
23683
23737
|
}))).output(createSingleResponse(StatsTrustedIssuerStatsOutputSchema));
|
|
@@ -23687,8 +23741,8 @@ var trustedIssuerStatsByPreset = v2Contract.route({
|
|
|
23687
23741
|
description: "Retrieve trusted issuer statistics using preset range including added, active, and removed issuers",
|
|
23688
23742
|
successDescription: "Trusted issuer statistics retrieved successfully",
|
|
23689
23743
|
tags: [V2_TAG.systemStats]
|
|
23690
|
-
}).input(v2Input.params(
|
|
23691
|
-
preset:
|
|
23744
|
+
}).input(v2Input.params(z375.object({
|
|
23745
|
+
preset: z375.enum(["trailing24Hours", "trailing7Days"])
|
|
23692
23746
|
}))).output(createSingleResponse(StatsTrustedIssuerStatsOutputSchema));
|
|
23693
23747
|
var trustedIssuerStatsState = v2Contract.route({
|
|
23694
23748
|
method: "GET",
|
|
@@ -23710,8 +23764,8 @@ var portfolioByRange = v2Contract.route({
|
|
|
23710
23764
|
description: "Retrieve system-wide portfolio statistics over custom time range",
|
|
23711
23765
|
successDescription: "System portfolio statistics retrieved successfully",
|
|
23712
23766
|
tags: [V2_TAG.systemStats]
|
|
23713
|
-
}).input(v2Input.query(
|
|
23714
|
-
interval:
|
|
23767
|
+
}).input(v2Input.query(z375.object({
|
|
23768
|
+
interval: z375.enum(["hour", "day"]),
|
|
23715
23769
|
from: timestamp(),
|
|
23716
23770
|
to: timestamp()
|
|
23717
23771
|
}))).output(createSingleResponse(StatsPortfolioOutputSchema));
|
|
@@ -23721,8 +23775,8 @@ var portfolioByPreset = v2Contract.route({
|
|
|
23721
23775
|
description: "Retrieve system-wide portfolio statistics using preset range",
|
|
23722
23776
|
successDescription: "System portfolio statistics retrieved successfully",
|
|
23723
23777
|
tags: [V2_TAG.systemStats]
|
|
23724
|
-
}).input(v2Input.params(
|
|
23725
|
-
preset:
|
|
23778
|
+
}).input(v2Input.params(z375.object({
|
|
23779
|
+
preset: z375.enum(["trailing24Hours", "trailing7Days"])
|
|
23726
23780
|
}))).output(createSingleResponse(StatsPortfolioOutputSchema));
|
|
23727
23781
|
var portfolioDetails = v2Contract.route({
|
|
23728
23782
|
method: "GET",
|
|
@@ -23737,8 +23791,8 @@ var topicSchemesStatsByRange = v2Contract.route({
|
|
|
23737
23791
|
description: "Retrieve topic schemes statistics over custom time range including registered, active, and removed schemes",
|
|
23738
23792
|
successDescription: "Topic schemes statistics retrieved successfully",
|
|
23739
23793
|
tags: [V2_TAG.systemStats]
|
|
23740
|
-
}).input(v2Input.query(
|
|
23741
|
-
interval:
|
|
23794
|
+
}).input(v2Input.query(z375.object({
|
|
23795
|
+
interval: z375.enum(["hour", "day"]),
|
|
23742
23796
|
from: timestamp(),
|
|
23743
23797
|
to: timestamp()
|
|
23744
23798
|
}))).output(createSingleResponse(StatsTopicSchemesStatsOutputSchema));
|
|
@@ -23748,8 +23802,8 @@ var topicSchemesStatsByPreset = v2Contract.route({
|
|
|
23748
23802
|
description: "Retrieve topic schemes statistics using preset range including registered, active, and removed schemes",
|
|
23749
23803
|
successDescription: "Topic schemes statistics retrieved successfully",
|
|
23750
23804
|
tags: [V2_TAG.systemStats]
|
|
23751
|
-
}).input(v2Input.params(
|
|
23752
|
-
preset:
|
|
23805
|
+
}).input(v2Input.params(z375.object({
|
|
23806
|
+
preset: z375.enum(["trailing24Hours", "trailing7Days"])
|
|
23753
23807
|
}))).output(createSingleResponse(StatsTopicSchemesStatsOutputSchema));
|
|
23754
23808
|
var topicSchemesStatsState = v2Contract.route({
|
|
23755
23809
|
method: "GET",
|
|
@@ -23771,8 +23825,8 @@ var systemValueHistoryByRange = v2Contract.route({
|
|
|
23771
23825
|
description: "Retrieve total system value history over custom time range",
|
|
23772
23826
|
successDescription: "System value history retrieved successfully",
|
|
23773
23827
|
tags: [V2_TAG.systemStats]
|
|
23774
|
-
}).input(v2Input.query(
|
|
23775
|
-
interval:
|
|
23828
|
+
}).input(v2Input.query(z375.object({
|
|
23829
|
+
interval: z375.enum(["hour", "day"]),
|
|
23776
23830
|
from: timestamp(),
|
|
23777
23831
|
to: timestamp()
|
|
23778
23832
|
}))).output(createSingleResponse(StatsSystemValueHistoryOutputSchema));
|
|
@@ -23782,8 +23836,8 @@ var systemValueHistoryByPreset = v2Contract.route({
|
|
|
23782
23836
|
description: "Retrieve total system value history using preset range",
|
|
23783
23837
|
successDescription: "System value history retrieved successfully",
|
|
23784
23838
|
tags: [V2_TAG.systemStats]
|
|
23785
|
-
}).input(v2Input.params(
|
|
23786
|
-
preset:
|
|
23839
|
+
}).input(v2Input.params(z375.object({
|
|
23840
|
+
preset: z375.enum(["trailing24Hours", "trailing7Days"])
|
|
23787
23841
|
}))).output(createSingleResponse(StatsSystemValueHistoryOutputSchema));
|
|
23788
23842
|
var statsV2Contract = {
|
|
23789
23843
|
assets: assets2,
|
|
@@ -23816,18 +23870,18 @@ var statsV2Contract = {
|
|
|
23816
23870
|
};
|
|
23817
23871
|
|
|
23818
23872
|
// ../../packages/dalp/api-contract/src/routes/v2/system/token-factory/token-factory.v2.list.schema.ts
|
|
23819
|
-
import { z as
|
|
23820
|
-
var TokenFactoryV2ItemSchema =
|
|
23873
|
+
import { z as z376 } from "zod";
|
|
23874
|
+
var TokenFactoryV2ItemSchema = z376.object({
|
|
23821
23875
|
id: ethereumAddress.meta({
|
|
23822
23876
|
description: "The factory contract address",
|
|
23823
23877
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
23824
23878
|
}),
|
|
23825
|
-
name:
|
|
23879
|
+
name: z376.string().meta({ description: "The name of the token factory", examples: ["Bond Factory", "Equity Factory"] }),
|
|
23826
23880
|
typeId: assetFactoryTypeId().meta({
|
|
23827
23881
|
description: "The type ID of the token factory",
|
|
23828
23882
|
examples: ["bond", "equity"]
|
|
23829
23883
|
}),
|
|
23830
|
-
hasTokens:
|
|
23884
|
+
hasTokens: z376.boolean().meta({ description: "Whether the factory has created any tokens", examples: [true, false] }),
|
|
23831
23885
|
tokenExtensions: assetExtensionArray().meta({
|
|
23832
23886
|
description: "The token extensions of the token factory",
|
|
23833
23887
|
examples: [["pausable", "burnable"]]
|
|
@@ -23892,33 +23946,33 @@ var tokenFactoryV2Contract = {
|
|
|
23892
23946
|
};
|
|
23893
23947
|
|
|
23894
23948
|
// ../../packages/dalp/api-contract/src/routes/v2/system/paymaster/paymaster.v2.schemas.ts
|
|
23895
|
-
import { z as
|
|
23896
|
-
var PaymasterSchema =
|
|
23949
|
+
import { z as z377 } from "zod";
|
|
23950
|
+
var PaymasterSchema = z377.object({
|
|
23897
23951
|
address: ethereumAddress,
|
|
23898
23952
|
system: ethereumAddress.nullable(),
|
|
23899
23953
|
factory: ethereumAddress,
|
|
23900
23954
|
createdAt: timestamp()
|
|
23901
23955
|
});
|
|
23902
|
-
var PaymasterBalanceSchema =
|
|
23956
|
+
var PaymasterBalanceSchema = z377.object({
|
|
23903
23957
|
address: ethereumAddress,
|
|
23904
|
-
depositBalance:
|
|
23958
|
+
depositBalance: z377.string()
|
|
23905
23959
|
});
|
|
23906
23960
|
var PaymasterDepositInputSchema = MutationInputSchema.extend({
|
|
23907
|
-
amount:
|
|
23961
|
+
amount: z377.string().regex(/^[1-9][0-9]*$/, "Must be a positive integer string representing wei (e.g. '1000000000000000000' for 1 ETH). Zero, negative, and non-numeric values are rejected.")
|
|
23908
23962
|
});
|
|
23909
|
-
var PaymasterAddressParamsSchema =
|
|
23963
|
+
var PaymasterAddressParamsSchema = z377.object({
|
|
23910
23964
|
address: ethereumAddress
|
|
23911
23965
|
});
|
|
23912
|
-
var PaymasterSignerKeyRotationSchema =
|
|
23966
|
+
var PaymasterSignerKeyRotationSchema = z377.object({
|
|
23913
23967
|
signerAddress: ethereumAddress,
|
|
23914
23968
|
rotatedAt: timestamp()
|
|
23915
23969
|
});
|
|
23916
|
-
var PaymasterSignerKeyStatusSchema =
|
|
23970
|
+
var PaymasterSignerKeyStatusSchema = z377.object({
|
|
23917
23971
|
signerAddress: ethereumAddress.nullable(),
|
|
23918
23972
|
rotatedAt: timestamp().nullable()
|
|
23919
23973
|
});
|
|
23920
|
-
var PaymasterConfigSchema =
|
|
23921
|
-
enabled:
|
|
23974
|
+
var PaymasterConfigSchema = z377.object({
|
|
23975
|
+
enabled: z377.boolean()
|
|
23922
23976
|
});
|
|
23923
23977
|
|
|
23924
23978
|
// ../../packages/dalp/api-contract/src/routes/v2/system/paymaster/paymaster.v2.list.schema.ts
|
|
@@ -23995,24 +24049,24 @@ var paymasterV2Contract = {
|
|
|
23995
24049
|
};
|
|
23996
24050
|
|
|
23997
24051
|
// ../../packages/dalp/api-contract/src/routes/v2/system/trusted-issuers/trusted-issuers.v2.contract.ts
|
|
23998
|
-
import { z as
|
|
24052
|
+
import { z as z380 } from "zod";
|
|
23999
24053
|
|
|
24000
24054
|
// ../../packages/dalp/api-contract/src/routes/system/trusted-issuers/routes/trusted-issuer.claim-topic.schema.ts
|
|
24001
|
-
import { z as
|
|
24055
|
+
import { z as z378 } from "zod";
|
|
24002
24056
|
var TrustedIssuerClaimTopicMutationBodySchema = MutationInputSchema;
|
|
24003
|
-
var TrustedIssuerClaimTopicMutationParamsSchema =
|
|
24057
|
+
var TrustedIssuerClaimTopicMutationParamsSchema = z378.object({
|
|
24004
24058
|
issuerAddress: ethereumAddress.meta({
|
|
24005
24059
|
description: "The identity address of the trusted issuer",
|
|
24006
24060
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
24007
24061
|
}),
|
|
24008
|
-
topicId:
|
|
24062
|
+
topicId: z378.string().min(1).regex(/^\d+$/, "topicId must be a numeric string").meta({ description: "Numeric ID of the claim topic to add or remove", examples: ["1", "2", "100"] })
|
|
24009
24063
|
});
|
|
24010
24064
|
var TrustedIssuerClaimTopicMutationOutputSchema = BaseMutationOutputSchema.extend({
|
|
24011
24065
|
issuerAddress: ethereumAddress.meta({
|
|
24012
24066
|
description: "Address of the trusted issuer that was mutated",
|
|
24013
24067
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
24014
24068
|
}),
|
|
24015
|
-
topicId:
|
|
24069
|
+
topicId: z378.string().meta({
|
|
24016
24070
|
description: "Numeric ID of the topic that was added or removed",
|
|
24017
24071
|
examples: ["1"]
|
|
24018
24072
|
})
|
|
@@ -24029,8 +24083,8 @@ var TrustedIssuersV2ListInputSchema = createCollectionInputSchema(TRUSTED_ISSUER
|
|
|
24029
24083
|
var TrustedIssuersV2ListOutputSchema = createPaginatedResponse(TrustedIssuerSchema2);
|
|
24030
24084
|
|
|
24031
24085
|
// ../../packages/dalp/api-contract/src/routes/v2/system/trusted-issuers/trusted-issuer.v2.topics.list.schema.ts
|
|
24032
|
-
import { z as
|
|
24033
|
-
var TrustedIssuerTopicsV2ListParamsSchema =
|
|
24086
|
+
import { z as z379 } from "zod";
|
|
24087
|
+
var TrustedIssuerTopicsV2ListParamsSchema = z379.object({
|
|
24034
24088
|
issuerAddress: ethereumAddress.meta({
|
|
24035
24089
|
description: "Trusted issuer identity address",
|
|
24036
24090
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -24076,21 +24130,21 @@ var update11 = v2Contract.route({
|
|
|
24076
24130
|
description: "Update the claim topics for a trusted issuer.",
|
|
24077
24131
|
successDescription: "Trusted issuer topics updated successfully.",
|
|
24078
24132
|
tags: [V2_TAG.trustedIssuers]
|
|
24079
|
-
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(
|
|
24133
|
+
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z380.object({ issuerAddress: TrustedIssuerUpdateInputSchema.shape.issuerAddress }), TrustedIssuerUpdateInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpdateOutputSchema));
|
|
24080
24134
|
var upsert5 = v2Contract.route({
|
|
24081
24135
|
method: "PUT",
|
|
24082
24136
|
path: "/system/trusted-issuers/{issuerAddress}",
|
|
24083
24137
|
description: "Create or update a trusted issuer in the registry.",
|
|
24084
24138
|
successDescription: "Trusted issuer upserted successfully.",
|
|
24085
24139
|
tags: [V2_TAG.trustedIssuers]
|
|
24086
|
-
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(
|
|
24140
|
+
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z380.object({ issuerAddress: TrustedIssuerUpsertInputSchema.shape.issuerAddress }), TrustedIssuerUpsertInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpsertOutputSchema));
|
|
24087
24141
|
var del12 = v2Contract.route({
|
|
24088
24142
|
method: "DELETE",
|
|
24089
24143
|
path: "/system/trusted-issuers/{issuerAddress}",
|
|
24090
24144
|
description: "Delete a trusted issuer from the registry.",
|
|
24091
24145
|
successDescription: "Trusted issuer deleted successfully.",
|
|
24092
24146
|
tags: [V2_TAG.trustedIssuers]
|
|
24093
|
-
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(
|
|
24147
|
+
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z380.object({ issuerAddress: TrustedIssuerDeleteInputSchema.shape.issuerAddress }), TrustedIssuerDeleteInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerDeleteOutputSchema));
|
|
24094
24148
|
var topics = v2Contract.route({
|
|
24095
24149
|
method: "GET",
|
|
24096
24150
|
path: "/system/trusted-issuers/{issuerAddress}/topics",
|
|
@@ -24145,7 +24199,7 @@ var systemV2Contract = {
|
|
|
24145
24199
|
};
|
|
24146
24200
|
|
|
24147
24201
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.documents.list.schema.ts
|
|
24148
|
-
import { z as
|
|
24202
|
+
import { z as z381 } from "zod";
|
|
24149
24203
|
var TOKEN_DOCUMENTS_COLLECTION_FIELDS = {
|
|
24150
24204
|
fileName: textField(),
|
|
24151
24205
|
documentType: enumField(tokenDocumentTypes, { facetable: true }),
|
|
@@ -24158,22 +24212,22 @@ var TOKEN_DOCUMENTS_COLLECTION_FIELDS = {
|
|
|
24158
24212
|
var TokenDocumentsV2ListInputSchema = createCollectionInputSchema(TOKEN_DOCUMENTS_COLLECTION_FIELDS, {
|
|
24159
24213
|
defaultSort: "uploadedAt"
|
|
24160
24214
|
});
|
|
24161
|
-
var TokenDocumentsV2ListItemSchema =
|
|
24162
|
-
id:
|
|
24163
|
-
tokenAddress:
|
|
24215
|
+
var TokenDocumentsV2ListItemSchema = z381.object({
|
|
24216
|
+
id: z381.string(),
|
|
24217
|
+
tokenAddress: z381.string(),
|
|
24164
24218
|
documentType: tokenDocumentType(),
|
|
24165
24219
|
visibility: tokenDocumentVisibility(),
|
|
24166
|
-
groupId:
|
|
24167
|
-
versionNumber:
|
|
24168
|
-
isLatest:
|
|
24169
|
-
fileName:
|
|
24170
|
-
fileSize:
|
|
24171
|
-
mimeType:
|
|
24172
|
-
title:
|
|
24173
|
-
description:
|
|
24174
|
-
fileHash:
|
|
24220
|
+
groupId: z381.string(),
|
|
24221
|
+
versionNumber: z381.number(),
|
|
24222
|
+
isLatest: z381.boolean(),
|
|
24223
|
+
fileName: z381.string(),
|
|
24224
|
+
fileSize: z381.number(),
|
|
24225
|
+
mimeType: z381.string(),
|
|
24226
|
+
title: z381.string().nullable(),
|
|
24227
|
+
description: z381.string().nullable(),
|
|
24228
|
+
fileHash: z381.string().nullable(),
|
|
24175
24229
|
uploadedAt: timestamp(),
|
|
24176
|
-
uploadedBy:
|
|
24230
|
+
uploadedBy: z381.string().nullable()
|
|
24177
24231
|
});
|
|
24178
24232
|
var TokenDocumentsV2ListOutputSchema = createPaginatedResponse(TokenDocumentsV2ListItemSchema);
|
|
24179
24233
|
|
|
@@ -24237,7 +24291,7 @@ var TokenV2ListInputSchema = createCollectionInputSchema(TOKEN_COLLECTION_FIELDS
|
|
|
24237
24291
|
var TokenV2ListOutputSchema = createPaginatedResponse(TokenListItemSchema);
|
|
24238
24292
|
|
|
24239
24293
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.mutations.contract.ts
|
|
24240
|
-
import { z as
|
|
24294
|
+
import { z as z384 } from "zod";
|
|
24241
24295
|
|
|
24242
24296
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/compliance/token.install-scoped-compliance-module.schema.ts
|
|
24243
24297
|
var TokenInstallScopedComplianceModuleInputSchema = TokenMutationInputSchema.extend({
|
|
@@ -24535,7 +24589,7 @@ var TokenRemoveMetadataInputSchema = TokenMutationInputSchema.extend({
|
|
|
24535
24589
|
});
|
|
24536
24590
|
|
|
24537
24591
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/transfer-approval/token.approve-transfer.schema.ts
|
|
24538
|
-
import { z as
|
|
24592
|
+
import { z as z382 } from "zod";
|
|
24539
24593
|
var TokenApproveTransferInputSchema = TokenMutationInputSchema.extend({
|
|
24540
24594
|
fromWallet: ethereumAddress.meta({
|
|
24541
24595
|
description: "Wallet address of the token sender whose identity will be the fromIdentity",
|
|
@@ -24563,7 +24617,7 @@ function identityAddressPairRefinement(data, ctx) {
|
|
|
24563
24617
|
const hasTo = data.toIdentityAddress !== undefined;
|
|
24564
24618
|
if (hasFrom !== hasTo) {
|
|
24565
24619
|
ctx.addIssue({
|
|
24566
|
-
code:
|
|
24620
|
+
code: z382.ZodIssueCode.custom,
|
|
24567
24621
|
message: "fromIdentityAddress and toIdentityAddress must both be provided or both omitted — partial overrides are not supported.",
|
|
24568
24622
|
path: hasFrom ? ["toIdentityAddress"] : ["fromIdentityAddress"]
|
|
24569
24623
|
});
|
|
@@ -24603,9 +24657,9 @@ var TokenRevokeTransferApprovalBodySchema = TokenRevokeTransferApprovalInputSche
|
|
|
24603
24657
|
}).superRefine(identityAddressPairRefinement);
|
|
24604
24658
|
|
|
24605
24659
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token-price.v2.schema.ts
|
|
24606
|
-
import { z as
|
|
24660
|
+
import { z as z383 } from "zod";
|
|
24607
24661
|
var TokenPriceBodySchema = MutationInputSchema.extend({
|
|
24608
|
-
price:
|
|
24662
|
+
price: z383.string().regex(/^(?!0+(\.0+)?$)\d+(\.\d+)?$/, "Price must be a positive decimal string greater than zero").meta({
|
|
24609
24663
|
description: "Token price in the specified currency (decimal string for arbitrary precision)",
|
|
24610
24664
|
examples: ["100.50", "1.00", "0.01"]
|
|
24611
24665
|
}),
|
|
@@ -24614,7 +24668,7 @@ var TokenPriceBodySchema = MutationInputSchema.extend({
|
|
|
24614
24668
|
examples: ["EUR", "USD", "GBP"]
|
|
24615
24669
|
})
|
|
24616
24670
|
});
|
|
24617
|
-
var TokenPriceOutputSchema =
|
|
24671
|
+
var TokenPriceOutputSchema = z383.object({
|
|
24618
24672
|
feedAddress: ethereumAddress.meta({
|
|
24619
24673
|
description: "The on-chain feed contract address",
|
|
24620
24674
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -24623,7 +24677,7 @@ var TokenPriceOutputSchema = z382.object({
|
|
|
24623
24677
|
description: "Transaction hash of the price submission",
|
|
24624
24678
|
examples: ["0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"]
|
|
24625
24679
|
}),
|
|
24626
|
-
price:
|
|
24680
|
+
price: z383.string().meta({
|
|
24627
24681
|
description: "The submitted price (echoed back)",
|
|
24628
24682
|
examples: ["100.50"]
|
|
24629
24683
|
}),
|
|
@@ -24654,14 +24708,14 @@ var mint = v2Contract.route({
|
|
|
24654
24708
|
description: "Mint new tokens to one or more addresses.",
|
|
24655
24709
|
successDescription: "Tokens minted successfully.",
|
|
24656
24710
|
tags: [V2_TAG.token]
|
|
24657
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
24711
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema, z384.object(TokenMintInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
24658
24712
|
var burn = v2Contract.route({
|
|
24659
24713
|
method: "POST",
|
|
24660
24714
|
path: "/tokens/{tokenAddress}/burns",
|
|
24661
24715
|
description: "Burn tokens from one or more addresses.",
|
|
24662
24716
|
successDescription: "Tokens burned successfully.",
|
|
24663
24717
|
tags: [V2_TAG.token]
|
|
24664
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
24718
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z384.object(TokenBurnInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
24665
24719
|
var transfer = v2Contract.route({
|
|
24666
24720
|
method: "POST",
|
|
24667
24721
|
path: "/tokens/{tokenAddress}/transfers",
|
|
@@ -24670,7 +24724,7 @@ var transfer = v2Contract.route({
|
|
|
24670
24724
|
tags: [V2_TAG.token]
|
|
24671
24725
|
}).meta({
|
|
24672
24726
|
contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1056"]
|
|
24673
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
24727
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z384.object(TokenTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
24674
24728
|
var forcedTransfer = v2Contract.route({
|
|
24675
24729
|
method: "POST",
|
|
24676
24730
|
path: "/tokens/{tokenAddress}/forced-transfers",
|
|
@@ -24679,7 +24733,7 @@ var forcedTransfer = v2Contract.route({
|
|
|
24679
24733
|
tags: [V2_TAG.token]
|
|
24680
24734
|
}).meta({
|
|
24681
24735
|
contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1055"]
|
|
24682
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
24736
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z384.object(TokenForcedTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
24683
24737
|
var approve3 = v2Contract.route({
|
|
24684
24738
|
method: "POST",
|
|
24685
24739
|
path: "/tokens/{tokenAddress}/approvals",
|
|
@@ -24693,7 +24747,7 @@ var redeem = v2Contract.route({
|
|
|
24693
24747
|
description: "Redeem tokens from one or more addresses.",
|
|
24694
24748
|
successDescription: "Tokens redeemed successfully.",
|
|
24695
24749
|
tags: [V2_TAG.token]
|
|
24696
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
24750
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z384.object(TokenRedeemInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
24697
24751
|
var mature = v2Contract.route({
|
|
24698
24752
|
method: "POST",
|
|
24699
24753
|
path: "/tokens/{tokenAddress}/maturations",
|
|
@@ -24836,9 +24890,9 @@ var grantRole2 = v2Contract.route({
|
|
|
24836
24890
|
description: "Grant a role to multiple accounts on a token.",
|
|
24837
24891
|
successDescription: "Role granted successfully to accounts.",
|
|
24838
24892
|
tags: [V2_TAG.token]
|
|
24839
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
24840
|
-
|
|
24841
|
-
|
|
24893
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z384.union([
|
|
24894
|
+
z384.object(TokenGrantRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
24895
|
+
z384.object(TokenGrantRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
24842
24896
|
]))).output(createAsyncBlockchainMutationResponse(TokenGrantRoleOutputSchema));
|
|
24843
24897
|
var revokeRole2 = v2Contract.route({
|
|
24844
24898
|
method: "POST",
|
|
@@ -24846,9 +24900,9 @@ var revokeRole2 = v2Contract.route({
|
|
|
24846
24900
|
description: "Revoke role(s) from account(s) on a token.",
|
|
24847
24901
|
successDescription: "Roles revoked successfully from the specified accounts.",
|
|
24848
24902
|
tags: [V2_TAG.token]
|
|
24849
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
24850
|
-
|
|
24851
|
-
|
|
24903
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z384.union([
|
|
24904
|
+
z384.object(TokenRevokeRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
24905
|
+
z384.object(TokenRevokeRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
24852
24906
|
]))).output(createAsyncBlockchainMutationResponse(TokenRevokeRoleOutputSchema));
|
|
24853
24907
|
var claimIssue2 = v2Contract.route({
|
|
24854
24908
|
method: "POST",
|
|
@@ -25225,29 +25279,29 @@ var tokenV2MutationsContract = {
|
|
|
25225
25279
|
};
|
|
25226
25280
|
|
|
25227
25281
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
25228
|
-
import { z as
|
|
25282
|
+
import { z as z392 } from "zod";
|
|
25229
25283
|
|
|
25230
25284
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
25231
|
-
import { z as
|
|
25285
|
+
import { z as z386 } from "zod";
|
|
25232
25286
|
|
|
25233
25287
|
// ../../packages/core/validation/src/feature-types.ts
|
|
25234
|
-
import { z as
|
|
25288
|
+
import { z as z385 } from "zod";
|
|
25235
25289
|
var featureTypes = tokenFeatureIds;
|
|
25236
|
-
var FeatureTypeSchema =
|
|
25290
|
+
var FeatureTypeSchema = z385.enum(featureTypes);
|
|
25237
25291
|
|
|
25238
25292
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
25239
25293
|
var TokenFeaturesInputSchema = TokenReadInputSchema;
|
|
25240
|
-
var feeBps = (description) =>
|
|
25294
|
+
var feeBps = (description) => z386.number().int().min(0).max(20000).meta({
|
|
25241
25295
|
description: `${description} (1 bps = 0.01%, max 20 000 = 200%)`,
|
|
25242
25296
|
examples: [200]
|
|
25243
25297
|
});
|
|
25244
|
-
var TokenFeatureAUMFeeSchema =
|
|
25298
|
+
var TokenFeatureAUMFeeSchema = z386.object({
|
|
25245
25299
|
feeBps: feeBps("Annual AUM fee rate"),
|
|
25246
25300
|
feeRecipient: ethereumAddress.meta({
|
|
25247
25301
|
description: "Address receiving the collected AUM fee",
|
|
25248
25302
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25249
25303
|
}),
|
|
25250
|
-
isFrozen:
|
|
25304
|
+
isFrozen: z386.boolean().meta({
|
|
25251
25305
|
description: "Whether fee collection is frozen",
|
|
25252
25306
|
examples: [false]
|
|
25253
25307
|
}),
|
|
@@ -25260,7 +25314,7 @@ var TokenFeatureAUMFeeSchema = z385.object({
|
|
|
25260
25314
|
examples: ["1000.50"]
|
|
25261
25315
|
})
|
|
25262
25316
|
}).nullable();
|
|
25263
|
-
var TokenFeatureMaturityRedemptionSchema =
|
|
25317
|
+
var TokenFeatureMaturityRedemptionSchema = z386.object({
|
|
25264
25318
|
maturityDate: timestamp().meta({
|
|
25265
25319
|
description: "Bond maturity date",
|
|
25266
25320
|
examples: ["2025-01-01T00:00:00Z"]
|
|
@@ -25277,7 +25331,7 @@ var TokenFeatureMaturityRedemptionSchema = z385.object({
|
|
|
25277
25331
|
description: "Treasury holding denomination assets for redemption",
|
|
25278
25332
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25279
25333
|
}),
|
|
25280
|
-
isMatured:
|
|
25334
|
+
isMatured: z386.boolean().meta({
|
|
25281
25335
|
description: "Whether the bond has reached maturity",
|
|
25282
25336
|
examples: [false]
|
|
25283
25337
|
}),
|
|
@@ -25290,7 +25344,7 @@ var TokenFeatureMaturityRedemptionSchema = z385.object({
|
|
|
25290
25344
|
examples: ["500.00"]
|
|
25291
25345
|
})
|
|
25292
25346
|
}).nullable();
|
|
25293
|
-
var TokenFeatureTransactionFeeSchema =
|
|
25347
|
+
var TokenFeatureTransactionFeeSchema = z386.object({
|
|
25294
25348
|
mintFeeBps: feeBps("Mint fee rate"),
|
|
25295
25349
|
burnFeeBps: feeBps("Burn fee rate"),
|
|
25296
25350
|
transferFeeBps: feeBps("Transfer fee rate"),
|
|
@@ -25298,7 +25352,7 @@ var TokenFeatureTransactionFeeSchema = z385.object({
|
|
|
25298
25352
|
description: "Address receiving collected transaction fees",
|
|
25299
25353
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25300
25354
|
}),
|
|
25301
|
-
isFrozen:
|
|
25355
|
+
isFrozen: z386.boolean().meta({
|
|
25302
25356
|
description: "Whether fee collection is frozen",
|
|
25303
25357
|
examples: [false]
|
|
25304
25358
|
}),
|
|
@@ -25307,7 +25361,7 @@ var TokenFeatureTransactionFeeSchema = z385.object({
|
|
|
25307
25361
|
examples: ["250.75"]
|
|
25308
25362
|
})
|
|
25309
25363
|
}).nullable();
|
|
25310
|
-
var TokenFeatureHistoricalBalancesSchema =
|
|
25364
|
+
var TokenFeatureHistoricalBalancesSchema = z386.object({
|
|
25311
25365
|
enabledAt: timestamp().meta({
|
|
25312
25366
|
description: "When historical balance tracking was enabled",
|
|
25313
25367
|
examples: ["2024-11-14T22:13:20Z"]
|
|
@@ -25317,7 +25371,7 @@ var TokenFeatureHistoricalBalancesSchema = z385.object({
|
|
|
25317
25371
|
examples: ["1000000.00"]
|
|
25318
25372
|
})
|
|
25319
25373
|
}).nullable();
|
|
25320
|
-
var TokenFeatureFixedTreasuryYieldSchema =
|
|
25374
|
+
var TokenFeatureFixedTreasuryYieldSchema = z386.object({
|
|
25321
25375
|
startDate: timestamp().meta({
|
|
25322
25376
|
description: "Yield schedule start",
|
|
25323
25377
|
examples: ["2024-11-14T22:13:20Z"]
|
|
@@ -25326,11 +25380,11 @@ var TokenFeatureFixedTreasuryYieldSchema = z385.object({
|
|
|
25326
25380
|
description: "Yield schedule end",
|
|
25327
25381
|
examples: ["2025-01-01T00:00:00Z"]
|
|
25328
25382
|
}),
|
|
25329
|
-
rate:
|
|
25383
|
+
rate: z386.number().meta({
|
|
25330
25384
|
description: "Annual yield rate (percentage, e.g. 5.5 = 5.5%)",
|
|
25331
25385
|
examples: [5.5]
|
|
25332
25386
|
}),
|
|
25333
|
-
interval:
|
|
25387
|
+
interval: z386.coerce.string().meta({
|
|
25334
25388
|
description: "Payout interval in seconds (string-encoded interval)",
|
|
25335
25389
|
examples: ["2592000"]
|
|
25336
25390
|
}),
|
|
@@ -25362,18 +25416,18 @@ var TokenFeatureFixedTreasuryYieldSchema = z385.object({
|
|
|
25362
25416
|
description: "Period scheduled to start after the current one; null on the final period",
|
|
25363
25417
|
examples: [null]
|
|
25364
25418
|
}),
|
|
25365
|
-
periods:
|
|
25419
|
+
periods: z386.array(fixedYieldSchedulePeriod()).meta({
|
|
25366
25420
|
description: "All scheduled periods. Per-period totalYield/totalUnclaimed populate as each period closes; configured rows exist from creation",
|
|
25367
25421
|
examples: [[]]
|
|
25368
25422
|
})
|
|
25369
25423
|
}).nullable();
|
|
25370
|
-
var TokenFeatureVotingPowerSchema =
|
|
25424
|
+
var TokenFeatureVotingPowerSchema = z386.object({
|
|
25371
25425
|
enabledAt: timestamp().meta({
|
|
25372
25426
|
description: "When voting power was enabled",
|
|
25373
25427
|
examples: ["2024-11-14T22:13:20Z"]
|
|
25374
25428
|
})
|
|
25375
25429
|
}).nullable();
|
|
25376
|
-
var TokenFeatureExternalTransactionFeeSchema =
|
|
25430
|
+
var TokenFeatureExternalTransactionFeeSchema = z386.object({
|
|
25377
25431
|
feeToken: ethereumAddress.meta({
|
|
25378
25432
|
description: "ERC-20 token used to pay fees",
|
|
25379
25433
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25394,7 +25448,7 @@ var TokenFeatureExternalTransactionFeeSchema = z385.object({
|
|
|
25394
25448
|
description: "Address receiving collected external fees",
|
|
25395
25449
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25396
25450
|
}),
|
|
25397
|
-
isFrozen:
|
|
25451
|
+
isFrozen: z386.boolean().meta({
|
|
25398
25452
|
description: "Whether fee collection is frozen",
|
|
25399
25453
|
examples: [false]
|
|
25400
25454
|
}),
|
|
@@ -25403,7 +25457,7 @@ var TokenFeatureExternalTransactionFeeSchema = z385.object({
|
|
|
25403
25457
|
examples: ["100.00"]
|
|
25404
25458
|
})
|
|
25405
25459
|
}).nullable();
|
|
25406
|
-
var TokenFeatureTransactionFeeAccountingSchema =
|
|
25460
|
+
var TokenFeatureTransactionFeeAccountingSchema = z386.object({
|
|
25407
25461
|
mintFeeBps: feeBps("Mint fee rate (accounting mode)"),
|
|
25408
25462
|
burnFeeBps: feeBps("Burn fee rate (accounting mode)"),
|
|
25409
25463
|
transferFeeBps: feeBps("Transfer fee rate (accounting mode)"),
|
|
@@ -25411,7 +25465,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z385.object({
|
|
|
25411
25465
|
description: "Address receiving accrued fees upon reconciliation",
|
|
25412
25466
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25413
25467
|
}),
|
|
25414
|
-
isFrozen:
|
|
25468
|
+
isFrozen: z386.boolean().meta({
|
|
25415
25469
|
description: "Whether fee accrual is frozen",
|
|
25416
25470
|
examples: [false]
|
|
25417
25471
|
}),
|
|
@@ -25424,7 +25478,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z385.object({
|
|
|
25424
25478
|
examples: ["100.00"]
|
|
25425
25479
|
})
|
|
25426
25480
|
}).nullable();
|
|
25427
|
-
var TokenFeatureConversionSchema =
|
|
25481
|
+
var TokenFeatureConversionSchema = z386.object({
|
|
25428
25482
|
targetToken: ethereumAddress.meta({
|
|
25429
25483
|
description: "Token that holders can convert to",
|
|
25430
25484
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25438,17 +25492,17 @@ var TokenFeatureConversionSchema = z385.object({
|
|
|
25438
25492
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25439
25493
|
}),
|
|
25440
25494
|
discountBps: feeBps("Conversion discount rate"),
|
|
25441
|
-
partialAllowed:
|
|
25495
|
+
partialAllowed: z386.boolean().meta({
|
|
25442
25496
|
description: "Whether partial conversions are allowed",
|
|
25443
25497
|
examples: [true]
|
|
25444
25498
|
})
|
|
25445
25499
|
}).nullable();
|
|
25446
|
-
var TokenFeatureConversionMinterSchema =
|
|
25447
|
-
authorizedConverters:
|
|
25500
|
+
var TokenFeatureConversionMinterSchema = z386.object({
|
|
25501
|
+
authorizedConverters: z386.array(ethereumAddress).meta({
|
|
25448
25502
|
description: "Addresses authorized to perform conversions",
|
|
25449
25503
|
examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
|
|
25450
25504
|
}),
|
|
25451
|
-
totalIssuances:
|
|
25505
|
+
totalIssuances: z386.number().int().meta({
|
|
25452
25506
|
description: "Total number of conversion issuances performed",
|
|
25453
25507
|
examples: [42]
|
|
25454
25508
|
}),
|
|
@@ -25457,7 +25511,7 @@ var TokenFeatureConversionMinterSchema = z385.object({
|
|
|
25457
25511
|
examples: ["50000.00"]
|
|
25458
25512
|
})
|
|
25459
25513
|
}).nullable();
|
|
25460
|
-
var TokenFeatureSchema =
|
|
25514
|
+
var TokenFeatureSchema = z386.object({
|
|
25461
25515
|
featureAddress: ethereumAddress.meta({
|
|
25462
25516
|
description: "Feature contract address",
|
|
25463
25517
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25466,17 +25520,17 @@ var TokenFeatureSchema = z385.object({
|
|
|
25466
25520
|
description: "Feature type identifier",
|
|
25467
25521
|
examples: ["aum-fee", "maturity-redemption", "transaction-fee"]
|
|
25468
25522
|
}),
|
|
25469
|
-
featureFactory:
|
|
25470
|
-
typeId:
|
|
25523
|
+
featureFactory: z386.object({
|
|
25524
|
+
typeId: z386.string().meta({
|
|
25471
25525
|
description: "Feature factory type identifier",
|
|
25472
25526
|
examples: ["aum-fee", "maturity-redemption"]
|
|
25473
25527
|
}),
|
|
25474
|
-
name:
|
|
25528
|
+
name: z386.string().meta({
|
|
25475
25529
|
description: "Human-readable name of the feature factory",
|
|
25476
25530
|
examples: ["AUM Fee Feature Factory"]
|
|
25477
25531
|
})
|
|
25478
25532
|
}),
|
|
25479
|
-
isAttached:
|
|
25533
|
+
isAttached: z386.boolean().meta({
|
|
25480
25534
|
description: "Whether the feature is currently attached to the token",
|
|
25481
25535
|
examples: [true]
|
|
25482
25536
|
}),
|
|
@@ -25529,13 +25583,13 @@ var TokenFeatureSchema = z385.object({
|
|
|
25529
25583
|
examples: [null]
|
|
25530
25584
|
})
|
|
25531
25585
|
});
|
|
25532
|
-
var TokenFeaturesResponseSchema =
|
|
25533
|
-
configurable:
|
|
25534
|
-
features:
|
|
25586
|
+
var TokenFeaturesResponseSchema = z386.object({
|
|
25587
|
+
configurable: z386.object({
|
|
25588
|
+
features: z386.array(TokenFeatureSchema).meta({
|
|
25535
25589
|
description: "Feature configurations for the token",
|
|
25536
25590
|
examples: [[]]
|
|
25537
25591
|
}),
|
|
25538
|
-
featuresCount:
|
|
25592
|
+
featuresCount: z386.number().int().meta({
|
|
25539
25593
|
description: "Total number of features attached to the token",
|
|
25540
25594
|
examples: [3]
|
|
25541
25595
|
})
|
|
@@ -25546,22 +25600,22 @@ var TokenFeaturesResponseSchema = z385.object({
|
|
|
25546
25600
|
});
|
|
25547
25601
|
|
|
25548
25602
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.metadata.schema.ts
|
|
25549
|
-
import { z as
|
|
25603
|
+
import { z as z387 } from "zod";
|
|
25550
25604
|
var TokenMetadataInputSchema = TokenReadInputSchema;
|
|
25551
|
-
var TokenMetadataEntrySchema =
|
|
25552
|
-
key:
|
|
25605
|
+
var TokenMetadataEntrySchema = z387.object({
|
|
25606
|
+
key: z387.string().meta({
|
|
25553
25607
|
description: "Human-readable metadata key string",
|
|
25554
25608
|
examples: ["isin", "issuerName"]
|
|
25555
25609
|
}),
|
|
25556
|
-
keyHash:
|
|
25610
|
+
keyHash: z387.string().meta({
|
|
25557
25611
|
description: "On-chain keccak256 hash of the metadata key (bytes32 hex string)",
|
|
25558
25612
|
examples: ["0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"]
|
|
25559
25613
|
}),
|
|
25560
|
-
value:
|
|
25614
|
+
value: z387.string().meta({
|
|
25561
25615
|
description: "Raw on-chain value (bytes32 hex string)",
|
|
25562
25616
|
examples: ["0x000000"]
|
|
25563
25617
|
}),
|
|
25564
|
-
valueString:
|
|
25618
|
+
valueString: z387.string().nullable().meta({
|
|
25565
25619
|
description: "Decoded string representation of the value, null if not decodable",
|
|
25566
25620
|
examples: ["Acme Corp", null]
|
|
25567
25621
|
}),
|
|
@@ -25569,7 +25623,7 @@ var TokenMetadataEntrySchema = z386.object({
|
|
|
25569
25623
|
description: "Numeric representation of the value, null if not numeric",
|
|
25570
25624
|
examples: ["1000", null]
|
|
25571
25625
|
}),
|
|
25572
|
-
isImmutable:
|
|
25626
|
+
isImmutable: z387.boolean().meta({
|
|
25573
25627
|
description: "Whether this metadata entry is immutable (cannot be changed after being set)",
|
|
25574
25628
|
examples: [false]
|
|
25575
25629
|
}),
|
|
@@ -25578,22 +25632,22 @@ var TokenMetadataEntrySchema = z386.object({
|
|
|
25578
25632
|
examples: ["1700000000"]
|
|
25579
25633
|
})
|
|
25580
25634
|
});
|
|
25581
|
-
var TokenMetadataResponseSchema =
|
|
25582
|
-
metadata_:
|
|
25583
|
-
entryCount:
|
|
25635
|
+
var TokenMetadataResponseSchema = z387.object({
|
|
25636
|
+
metadata_: z387.object({
|
|
25637
|
+
entryCount: z387.number().int().meta({
|
|
25584
25638
|
description: "Total number of metadata entries",
|
|
25585
25639
|
examples: [5]
|
|
25586
25640
|
}),
|
|
25587
|
-
entries:
|
|
25641
|
+
entries: z387.array(TokenMetadataEntrySchema).meta({
|
|
25588
25642
|
description: "List of metadata entries for the token"
|
|
25589
25643
|
})
|
|
25590
25644
|
}).nullable()
|
|
25591
25645
|
});
|
|
25592
25646
|
|
|
25593
25647
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.conversion-triggers.schema.ts
|
|
25594
|
-
import { z as
|
|
25595
|
-
var ConversionTriggerSchema =
|
|
25596
|
-
triggerId:
|
|
25648
|
+
import { z as z388 } from "zod";
|
|
25649
|
+
var ConversionTriggerSchema = z388.object({
|
|
25650
|
+
triggerId: z388.string().meta({
|
|
25597
25651
|
description: "On-chain trigger ID (bytes32 hex)",
|
|
25598
25652
|
examples: ["0xabc123..."]
|
|
25599
25653
|
}),
|
|
@@ -25622,16 +25676,16 @@ var ConversionTriggerSchema = z387.object({
|
|
|
25622
25676
|
expiresAt: timestamp().meta({
|
|
25623
25677
|
description: "Trigger expiry timestamp. Epoch zero means no expiry."
|
|
25624
25678
|
}),
|
|
25625
|
-
metadataHash:
|
|
25679
|
+
metadataHash: z388.string().nullable().meta({
|
|
25626
25680
|
description: "Off-chain metadata document hash (bytes32 hex)"
|
|
25627
25681
|
}),
|
|
25628
|
-
active:
|
|
25682
|
+
active: z388.boolean().meta({
|
|
25629
25683
|
description: "Whether the trigger is currently active"
|
|
25630
25684
|
}),
|
|
25631
25685
|
disabledAt: timestamp().nullable().meta({
|
|
25632
25686
|
description: "Timestamp when the trigger was disabled, null if still active"
|
|
25633
25687
|
}),
|
|
25634
|
-
totalConversions:
|
|
25688
|
+
totalConversions: z388.number().int().nonnegative().meta({
|
|
25635
25689
|
description: "Number of conversions executed against this trigger",
|
|
25636
25690
|
examples: [0]
|
|
25637
25691
|
}),
|
|
@@ -25644,16 +25698,16 @@ var ConversionTriggerSchema = z387.object({
|
|
|
25644
25698
|
examples: ["0"]
|
|
25645
25699
|
})
|
|
25646
25700
|
});
|
|
25647
|
-
var ConversionTriggersResponseSchema =
|
|
25648
|
-
triggers:
|
|
25701
|
+
var ConversionTriggersResponseSchema = z388.object({
|
|
25702
|
+
triggers: z388.array(ConversionTriggerSchema).meta({
|
|
25649
25703
|
description: "List of conversion triggers ordered by publication time descending"
|
|
25650
25704
|
}),
|
|
25651
|
-
totalCount:
|
|
25705
|
+
totalCount: z388.number().int().nonnegative().meta({
|
|
25652
25706
|
description: "Total number of conversion triggers for this token",
|
|
25653
25707
|
examples: [0]
|
|
25654
25708
|
})
|
|
25655
25709
|
});
|
|
25656
|
-
var ConversionTriggersInputSchema =
|
|
25710
|
+
var ConversionTriggersInputSchema = z388.object({
|
|
25657
25711
|
tokenAddress: ethereumAddress.meta({
|
|
25658
25712
|
description: "The token contract address",
|
|
25659
25713
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25687,26 +25741,26 @@ var DenominationAssetsV2InputSchema = createCollectionInputSchema(DENOMINATION_A
|
|
|
25687
25741
|
var DenominationAssetsV2OutputSchema = createPaginatedResponse(DenominationAssetV2ItemSchema);
|
|
25688
25742
|
|
|
25689
25743
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.events.schema.ts
|
|
25690
|
-
import { z as
|
|
25691
|
-
var TokenEventV2ValueSchema =
|
|
25692
|
-
id:
|
|
25693
|
-
name:
|
|
25694
|
-
value:
|
|
25744
|
+
import { z as z389 } from "zod";
|
|
25745
|
+
var TokenEventV2ValueSchema = z389.object({
|
|
25746
|
+
id: z389.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
|
|
25747
|
+
name: z389.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
|
|
25748
|
+
value: z389.string().meta({
|
|
25695
25749
|
description: "Value of the event parameter (address, hex hash, decimal-string number, or arbitrary text)",
|
|
25696
25750
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "1000000000000000000"]
|
|
25697
25751
|
})
|
|
25698
25752
|
});
|
|
25699
|
-
var TokenEventV2ItemSchema =
|
|
25700
|
-
id:
|
|
25701
|
-
eventName:
|
|
25753
|
+
var TokenEventV2ItemSchema = z389.object({
|
|
25754
|
+
id: z389.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
|
|
25755
|
+
eventName: z389.string().meta({
|
|
25702
25756
|
description: "The event name",
|
|
25703
25757
|
examples: ["TransferCompleted", "MintCompleted", "BurnCompleted"]
|
|
25704
25758
|
}),
|
|
25705
|
-
txIndex:
|
|
25759
|
+
txIndex: z389.string().meta({
|
|
25706
25760
|
description: "Log index within the transaction (string for parity with v1)",
|
|
25707
25761
|
examples: ["0", "1", "5"]
|
|
25708
25762
|
}),
|
|
25709
|
-
blockNumber:
|
|
25763
|
+
blockNumber: z389.string().meta({
|
|
25710
25764
|
description: "Block number when the event occurred (decimal string for bigint precision)",
|
|
25711
25765
|
examples: ["12345678", "20000000"]
|
|
25712
25766
|
}),
|
|
@@ -25718,19 +25772,19 @@ var TokenEventV2ItemSchema = z388.object({
|
|
|
25718
25772
|
description: "Transaction hash",
|
|
25719
25773
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"]
|
|
25720
25774
|
}),
|
|
25721
|
-
emitter:
|
|
25775
|
+
emitter: z389.object({
|
|
25722
25776
|
id: ethereumAddress.meta({
|
|
25723
25777
|
description: "Address of the contract that emitted the event",
|
|
25724
25778
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25725
25779
|
})
|
|
25726
25780
|
}),
|
|
25727
|
-
sender:
|
|
25781
|
+
sender: z389.object({
|
|
25728
25782
|
id: ethereumAddress.meta({
|
|
25729
25783
|
description: "Address that triggered the event (account or sender, falling back to the contract address)",
|
|
25730
25784
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25731
25785
|
})
|
|
25732
25786
|
}),
|
|
25733
|
-
values:
|
|
25787
|
+
values: z389.array(TokenEventV2ValueSchema).meta({
|
|
25734
25788
|
description: "Event parameter values",
|
|
25735
25789
|
examples: []
|
|
25736
25790
|
})
|
|
@@ -25751,15 +25805,15 @@ var TokenEventsV2InputSchema = createCollectionInputSchema(TOKEN_EVENTS_COLLECTI
|
|
|
25751
25805
|
var TokenEventsV2OutputSchema = createPaginatedResponse(TokenEventV2ItemSchema);
|
|
25752
25806
|
|
|
25753
25807
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.transfer-approvals.schema.ts
|
|
25754
|
-
import { z as
|
|
25755
|
-
var TransferApprovalSchema =
|
|
25756
|
-
id:
|
|
25808
|
+
import { z as z390 } from "zod";
|
|
25809
|
+
var TransferApprovalSchema = z390.object({
|
|
25810
|
+
id: z390.string().meta({
|
|
25757
25811
|
description: "Unique approval ID: {moduleAddress}-{token}-{fromIdentity}-{toIdentity}-{value}",
|
|
25758
25812
|
examples: ["0xabc...-0xtoken...-0xfrom...-0xto...-1000000000000000000"]
|
|
25759
25813
|
}),
|
|
25760
|
-
token:
|
|
25761
|
-
fromIdentity:
|
|
25762
|
-
toIdentity:
|
|
25814
|
+
token: z390.object({ id: ethereumAddress }),
|
|
25815
|
+
fromIdentity: z390.object({ id: ethereumAddress }),
|
|
25816
|
+
toIdentity: z390.object({ id: ethereumAddress }),
|
|
25763
25817
|
value: assetAmount.meta({
|
|
25764
25818
|
description: "Approved transfer amount in base units",
|
|
25765
25819
|
examples: ["1000000000000000000"]
|
|
@@ -25769,7 +25823,7 @@ var TransferApprovalSchema = z389.object({
|
|
|
25769
25823
|
description: "Timestamp when approval expires. Epoch zero means no expiry.",
|
|
25770
25824
|
examples: ["0", "1893456000"]
|
|
25771
25825
|
}),
|
|
25772
|
-
status:
|
|
25826
|
+
status: z390.enum(["pending", "consumed", "revoked"]).meta({
|
|
25773
25827
|
description: "Current status of the approval",
|
|
25774
25828
|
examples: ["pending"]
|
|
25775
25829
|
}),
|
|
@@ -25782,17 +25836,17 @@ var TransferApprovalSchema = z389.object({
|
|
|
25782
25836
|
examples: ["2023-11-14T12:05:00.000Z"]
|
|
25783
25837
|
})
|
|
25784
25838
|
});
|
|
25785
|
-
var TransferApprovalsResponseSchema =
|
|
25786
|
-
transferApprovals:
|
|
25839
|
+
var TransferApprovalsResponseSchema = z390.object({
|
|
25840
|
+
transferApprovals: z390.array(TransferApprovalSchema).meta({
|
|
25787
25841
|
description: "List of transfer approvals ordered by creation time descending",
|
|
25788
25842
|
examples: []
|
|
25789
25843
|
}),
|
|
25790
|
-
totalCount:
|
|
25844
|
+
totalCount: z390.number().int().nonnegative().meta({
|
|
25791
25845
|
description: "Total number of transfer approvals for this token",
|
|
25792
25846
|
examples: [3]
|
|
25793
25847
|
})
|
|
25794
25848
|
});
|
|
25795
|
-
var TransferApprovalsInputSchema =
|
|
25849
|
+
var TransferApprovalsInputSchema = z390.object({
|
|
25796
25850
|
tokenAddress: ethereumAddress.meta({
|
|
25797
25851
|
description: "The token contract address",
|
|
25798
25852
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25800,20 +25854,20 @@ var TransferApprovalsInputSchema = z389.object({
|
|
|
25800
25854
|
});
|
|
25801
25855
|
|
|
25802
25856
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.price.schema.ts
|
|
25803
|
-
import { z as
|
|
25804
|
-
var TokenPriceInputParamsSchema =
|
|
25857
|
+
import { z as z391 } from "zod";
|
|
25858
|
+
var TokenPriceInputParamsSchema = z391.object({
|
|
25805
25859
|
tokenAddress: ethereumAddress.meta({
|
|
25806
25860
|
description: "The token contract address",
|
|
25807
25861
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25808
25862
|
})
|
|
25809
25863
|
});
|
|
25810
|
-
var TokenPriceInputQuerySchema =
|
|
25864
|
+
var TokenPriceInputQuerySchema = z391.object({
|
|
25811
25865
|
currency: fiatCurrency().default("USD").meta({
|
|
25812
25866
|
description: "Target ISO 4217 currency code for price conversion",
|
|
25813
25867
|
examples: ["USD", "EUR", "GBP", "AED"]
|
|
25814
25868
|
})
|
|
25815
25869
|
});
|
|
25816
|
-
var ConversionHopSchema =
|
|
25870
|
+
var ConversionHopSchema = z391.object({
|
|
25817
25871
|
from: fiatCurrency().meta({
|
|
25818
25872
|
description: "Source currency of this hop",
|
|
25819
25873
|
examples: ["AED"]
|
|
@@ -25822,7 +25876,7 @@ var ConversionHopSchema = z390.object({
|
|
|
25822
25876
|
description: "Target currency of this hop",
|
|
25823
25877
|
examples: ["USD"]
|
|
25824
25878
|
}),
|
|
25825
|
-
rate:
|
|
25879
|
+
rate: z391.string().meta({
|
|
25826
25880
|
description: "Exchange rate (18-decimal string)",
|
|
25827
25881
|
examples: ["272300000000000000"]
|
|
25828
25882
|
}),
|
|
@@ -25834,17 +25888,17 @@ var ConversionHopSchema = z390.object({
|
|
|
25834
25888
|
description: "When the feed was last updated",
|
|
25835
25889
|
examples: ["2024-03-22T12:00:00.000Z"]
|
|
25836
25890
|
}),
|
|
25837
|
-
inverse:
|
|
25891
|
+
inverse: z391.boolean().meta({
|
|
25838
25892
|
description: "Whether this hop uses an inverse rate (1/rate of the registered feed)",
|
|
25839
25893
|
examples: [false]
|
|
25840
25894
|
})
|
|
25841
25895
|
});
|
|
25842
|
-
var TokenPriceResponseSchema =
|
|
25896
|
+
var TokenPriceResponseSchema = z391.object({
|
|
25843
25897
|
tokenAddress: ethereumAddress.meta({
|
|
25844
25898
|
description: "The token contract address",
|
|
25845
25899
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25846
25900
|
}),
|
|
25847
|
-
price:
|
|
25901
|
+
price: z391.string().meta({
|
|
25848
25902
|
description: "The resolved price as a decimal string (18-decimal normalized)",
|
|
25849
25903
|
examples: ["27230000000000000000"]
|
|
25850
25904
|
}),
|
|
@@ -25852,11 +25906,11 @@ var TokenPriceResponseSchema = z390.object({
|
|
|
25852
25906
|
description: "The currency of the returned price",
|
|
25853
25907
|
examples: ["USD"]
|
|
25854
25908
|
}),
|
|
25855
|
-
decimals:
|
|
25909
|
+
decimals: z391.number().meta({
|
|
25856
25910
|
description: "Decimal precision of the price (always 18)",
|
|
25857
25911
|
examples: [18]
|
|
25858
25912
|
}),
|
|
25859
|
-
source:
|
|
25913
|
+
source: z391.enum(["feed", "claim"]).meta({
|
|
25860
25914
|
description: "Whether the base price came from a feed or identity claim",
|
|
25861
25915
|
examples: ["feed"]
|
|
25862
25916
|
}),
|
|
@@ -25864,7 +25918,7 @@ var TokenPriceResponseSchema = z390.object({
|
|
|
25864
25918
|
description: "The native currency of the base price before conversion",
|
|
25865
25919
|
examples: ["AED"]
|
|
25866
25920
|
}),
|
|
25867
|
-
convertible:
|
|
25921
|
+
convertible: z391.boolean().meta({
|
|
25868
25922
|
description: "Whether the price was successfully converted to the target currency",
|
|
25869
25923
|
examples: [true]
|
|
25870
25924
|
}),
|
|
@@ -25872,15 +25926,15 @@ var TokenPriceResponseSchema = z390.object({
|
|
|
25872
25926
|
description: "The requested target currency (only present when convertible is false)",
|
|
25873
25927
|
examples: ["USD"]
|
|
25874
25928
|
}),
|
|
25875
|
-
reason:
|
|
25929
|
+
reason: z391.string().optional().meta({
|
|
25876
25930
|
description: "Reason for conversion failure (only present when convertible is false)",
|
|
25877
25931
|
examples: ["no_fx_path"]
|
|
25878
25932
|
}),
|
|
25879
|
-
message:
|
|
25933
|
+
message: z391.string().optional().meta({
|
|
25880
25934
|
description: "Human-readable explanation (only present when convertible is false)",
|
|
25881
25935
|
examples: ["No conversion path from AED to USD. Register FX feeds for intermediate pairs."]
|
|
25882
25936
|
}),
|
|
25883
|
-
availableCurrencies:
|
|
25937
|
+
availableCurrencies: z391.array(fiatCurrency()).optional().meta({
|
|
25884
25938
|
description: "Currencies reachable from the source currency (only present when convertible is false)",
|
|
25885
25939
|
examples: [["AED", "EUR"]]
|
|
25886
25940
|
}),
|
|
@@ -25888,7 +25942,7 @@ var TokenPriceResponseSchema = z390.object({
|
|
|
25888
25942
|
description: "When the price data was last updated (ISO 8601)",
|
|
25889
25943
|
examples: ["2026-03-22T10:30:00.000Z"]
|
|
25890
25944
|
}),
|
|
25891
|
-
conversionPath:
|
|
25945
|
+
conversionPath: z391.array(ConversionHopSchema).meta({
|
|
25892
25946
|
description: "The FX conversion hops applied (empty if no conversion needed)",
|
|
25893
25947
|
examples: [[]]
|
|
25894
25948
|
})
|
|
@@ -25932,21 +25986,21 @@ var allowance = v2Contract.route({
|
|
|
25932
25986
|
description: "Get token allowance for a specific owner/spender pair.",
|
|
25933
25987
|
successDescription: "Token allowance details retrieved successfully.",
|
|
25934
25988
|
tags: [V2_TAG.token]
|
|
25935
|
-
}).input(v2Input.paramsQuery(
|
|
25989
|
+
}).input(v2Input.paramsQuery(z392.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z392.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
|
|
25936
25990
|
var holder = v2Contract.route({
|
|
25937
25991
|
method: "GET",
|
|
25938
25992
|
path: "/tokens/{tokenAddress}/holder-balances",
|
|
25939
25993
|
description: "Get a specific token holder's balance information.",
|
|
25940
25994
|
successDescription: "Token holder balance details retrieved successfully.",
|
|
25941
25995
|
tags: [V2_TAG.token]
|
|
25942
|
-
}).input(v2Input.paramsQuery(
|
|
25996
|
+
}).input(v2Input.paramsQuery(z392.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z392.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
|
|
25943
25997
|
var holders = v2Contract.route({
|
|
25944
25998
|
method: "GET",
|
|
25945
25999
|
path: "/tokens/{tokenAddress}/holders",
|
|
25946
26000
|
description: "Get token holders and their balances.",
|
|
25947
26001
|
successDescription: "List of token holders with balance information.",
|
|
25948
26002
|
tags: [V2_TAG.token]
|
|
25949
|
-
}).input(v2Input.paramsQuery(
|
|
26003
|
+
}).input(v2Input.paramsQuery(z392.object({
|
|
25950
26004
|
tokenAddress: ethereumAddress.meta({
|
|
25951
26005
|
description: "The token contract address",
|
|
25952
26006
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25958,7 +26012,7 @@ var actions = v2Contract.route({
|
|
|
25958
26012
|
description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
25959
26013
|
successDescription: "Paginated list of actions targeting the specified token.",
|
|
25960
26014
|
tags: [V2_TAG.token]
|
|
25961
|
-
}).input(v2Input.paramsQuery(
|
|
26015
|
+
}).input(v2Input.paramsQuery(z392.object({
|
|
25962
26016
|
tokenAddress: ethereumAddress.meta({
|
|
25963
26017
|
description: "The token contract address to filter actions by",
|
|
25964
26018
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25970,7 +26024,7 @@ var events2 = v2Contract.route({
|
|
|
25970
26024
|
description: "List token events with pagination, filtering, sorting, and faceted counts.",
|
|
25971
26025
|
successDescription: "Paginated list of token events with metadata and pagination links.",
|
|
25972
26026
|
tags: [V2_TAG.token]
|
|
25973
|
-
}).input(v2Input.paramsQuery(
|
|
26027
|
+
}).input(v2Input.paramsQuery(z392.object({
|
|
25974
26028
|
tokenAddress: ethereumAddress.meta({
|
|
25975
26029
|
description: "The token contract address",
|
|
25976
26030
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25982,7 +26036,7 @@ var denominationAssets = v2Contract.route({
|
|
|
25982
26036
|
description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
25983
26037
|
successDescription: "Paginated list of denomination assets used by the specified bond.",
|
|
25984
26038
|
tags: [V2_TAG.token]
|
|
25985
|
-
}).input(v2Input.paramsQuery(
|
|
26039
|
+
}).input(v2Input.paramsQuery(z392.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
|
|
25986
26040
|
var compliance = v2Contract.route({
|
|
25987
26041
|
method: "GET",
|
|
25988
26042
|
path: "/tokens/{tokenAddress}/compliance-modules",
|
|
@@ -26010,7 +26064,7 @@ var transferApprovals = v2Contract.route({
|
|
|
26010
26064
|
description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
|
|
26011
26065
|
successDescription: "List of transfer approvals with their current status.",
|
|
26012
26066
|
tags: [V2_TAG.compliance]
|
|
26013
|
-
}).input(v2Input.paramsQuery(
|
|
26067
|
+
}).input(v2Input.paramsQuery(z392.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
|
|
26014
26068
|
var price = v2Contract.route({
|
|
26015
26069
|
method: "GET",
|
|
26016
26070
|
path: "/tokens/{tokenAddress}/price",
|
|
@@ -26024,7 +26078,7 @@ var conversionTriggers = v2Contract.route({
|
|
|
26024
26078
|
description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
26025
26079
|
successDescription: "Paginated list of conversion triggers with effective pricing.",
|
|
26026
26080
|
tags: [V2_TAG.token]
|
|
26027
|
-
}).input(v2Input.paramsQuery(
|
|
26081
|
+
}).input(v2Input.paramsQuery(z392.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
|
|
26028
26082
|
var tokenV2ReadsContract = {
|
|
26029
26083
|
read: read26,
|
|
26030
26084
|
allowance,
|
|
@@ -26042,7 +26096,7 @@ var tokenV2ReadsContract = {
|
|
|
26042
26096
|
};
|
|
26043
26097
|
|
|
26044
26098
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
|
|
26045
|
-
import { z as
|
|
26099
|
+
import { z as z393 } from "zod";
|
|
26046
26100
|
var statsBondStatus = v2Contract.route({
|
|
26047
26101
|
method: "GET",
|
|
26048
26102
|
path: "/tokens/{tokenAddress}/stats/bond-status",
|
|
@@ -26063,25 +26117,25 @@ var statsTotalSupply = v2Contract.route({
|
|
|
26063
26117
|
description: "Get total supply history statistics for a specific token.",
|
|
26064
26118
|
successDescription: "Token total supply history statistics.",
|
|
26065
26119
|
tags: [V2_TAG.tokenStats]
|
|
26066
|
-
}).input(v2Input.paramsQuery(
|
|
26120
|
+
}).input(v2Input.paramsQuery(z393.object({
|
|
26067
26121
|
tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
|
|
26068
|
-
}),
|
|
26122
|
+
}), z393.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
|
|
26069
26123
|
var statsSupplyChanges = v2Contract.route({
|
|
26070
26124
|
method: "GET",
|
|
26071
26125
|
path: "/tokens/{tokenAddress}/stats/supply-changes",
|
|
26072
26126
|
description: "Get supply changes history (minted/burned) statistics for a specific token.",
|
|
26073
26127
|
successDescription: "Token supply changes history statistics.",
|
|
26074
26128
|
tags: [V2_TAG.tokenStats]
|
|
26075
|
-
}).input(v2Input.paramsQuery(
|
|
26129
|
+
}).input(v2Input.paramsQuery(z393.object({
|
|
26076
26130
|
tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
|
|
26077
|
-
}),
|
|
26131
|
+
}), z393.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
|
|
26078
26132
|
var statsVolume = v2Contract.route({
|
|
26079
26133
|
method: "GET",
|
|
26080
26134
|
path: "/tokens/{tokenAddress}/stats/volume",
|
|
26081
26135
|
description: "Get total volume history statistics for a specific token.",
|
|
26082
26136
|
successDescription: "Token total volume history statistics.",
|
|
26083
26137
|
tags: [V2_TAG.tokenStats]
|
|
26084
|
-
}).input(v2Input.paramsQuery(
|
|
26138
|
+
}).input(v2Input.paramsQuery(z393.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z393.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
|
|
26085
26139
|
var statsWalletDistribution = v2Contract.route({
|
|
26086
26140
|
method: "GET",
|
|
26087
26141
|
path: "/tokens/{tokenAddress}/stats/wallet-distribution",
|
|
@@ -26131,7 +26185,7 @@ var tokenV2Contract = {
|
|
|
26131
26185
|
};
|
|
26132
26186
|
|
|
26133
26187
|
// ../../packages/core/validation/src/transaction-request-state.ts
|
|
26134
|
-
import { z as
|
|
26188
|
+
import { z as z394 } from "zod";
|
|
26135
26189
|
var transactionRequestStates = [
|
|
26136
26190
|
"RECEIVED",
|
|
26137
26191
|
"QUEUED",
|
|
@@ -26146,7 +26200,7 @@ var transactionRequestStates = [
|
|
|
26146
26200
|
"CANCELLED"
|
|
26147
26201
|
];
|
|
26148
26202
|
var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
26149
|
-
var TransactionRequestStateSchema =
|
|
26203
|
+
var TransactionRequestStateSchema = z394.enum(transactionRequestStates).meta({
|
|
26150
26204
|
description: "Current state in the transaction request lifecycle",
|
|
26151
26205
|
examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
|
|
26152
26206
|
});
|
|
@@ -26186,96 +26240,96 @@ var transactionSubStatuses = [
|
|
|
26186
26240
|
"WORKFLOW_BATCH_COMPLETED",
|
|
26187
26241
|
"WORKFLOW_BATCH_FAILED"
|
|
26188
26242
|
];
|
|
26189
|
-
var TransactionSubStatusSchema =
|
|
26243
|
+
var TransactionSubStatusSchema = z394.enum(transactionSubStatuses).meta({
|
|
26190
26244
|
description: "Detailed sub-status for transaction failures",
|
|
26191
26245
|
examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
|
|
26192
26246
|
});
|
|
26193
26247
|
|
|
26194
26248
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
|
|
26195
|
-
import { z as
|
|
26196
|
-
var TransactionForceRetryInputSchema =
|
|
26197
|
-
transactionId:
|
|
26249
|
+
import { z as z395 } from "zod";
|
|
26250
|
+
var TransactionForceRetryInputSchema = z395.object({
|
|
26251
|
+
transactionId: z395.uuid().meta({
|
|
26198
26252
|
description: "Queue transaction identifier (UUIDv7) to retry",
|
|
26199
26253
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
26200
26254
|
})
|
|
26201
26255
|
});
|
|
26202
|
-
var TransactionForceRetryBodySchema =
|
|
26203
|
-
gasPrice:
|
|
26256
|
+
var TransactionForceRetryBodySchema = z395.object({
|
|
26257
|
+
gasPrice: z395.string().optional().meta({
|
|
26204
26258
|
description: "Override gas price in wei (decimal string)",
|
|
26205
26259
|
examples: ["20000000000"]
|
|
26206
26260
|
}),
|
|
26207
|
-
nonce:
|
|
26261
|
+
nonce: z395.number().int().nonnegative().optional().meta({
|
|
26208
26262
|
description: "Override nonce for the retried transaction",
|
|
26209
26263
|
examples: [42]
|
|
26210
26264
|
})
|
|
26211
26265
|
}).default({});
|
|
26212
|
-
var TransactionForceRetryResultSchema =
|
|
26213
|
-
transactionId:
|
|
26266
|
+
var TransactionForceRetryResultSchema = z395.object({
|
|
26267
|
+
transactionId: z395.uuid().meta({ description: "The requeued transaction ID" }),
|
|
26214
26268
|
previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
|
|
26215
26269
|
status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
|
|
26216
26270
|
});
|
|
26217
26271
|
var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
|
|
26218
|
-
var TransactionForceFailInputSchema =
|
|
26219
|
-
transactionId:
|
|
26272
|
+
var TransactionForceFailInputSchema = z395.object({
|
|
26273
|
+
transactionId: z395.uuid().meta({
|
|
26220
26274
|
description: "Queue transaction identifier (UUIDv7) to force-fail",
|
|
26221
26275
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
26222
26276
|
})
|
|
26223
26277
|
});
|
|
26224
|
-
var TransactionForceFailBodySchema =
|
|
26225
|
-
reason:
|
|
26278
|
+
var TransactionForceFailBodySchema = z395.object({
|
|
26279
|
+
reason: z395.string().min(1).max(1000).meta({
|
|
26226
26280
|
description: "Human-readable reason for forcing this transaction to failed state",
|
|
26227
26281
|
examples: ["Manual intervention: stuck transaction after nonce conflict"]
|
|
26228
26282
|
})
|
|
26229
26283
|
});
|
|
26230
|
-
var TransactionForceFailResultSchema =
|
|
26231
|
-
transactionId:
|
|
26284
|
+
var TransactionForceFailResultSchema = z395.object({
|
|
26285
|
+
transactionId: z395.uuid().meta({ description: "The force-failed transaction ID" }),
|
|
26232
26286
|
previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
|
|
26233
26287
|
status: transactionRequestState().meta({ description: "New state (FAILED)" }),
|
|
26234
|
-
reason:
|
|
26288
|
+
reason: z395.string().meta({ description: "The reason provided for the force-fail" })
|
|
26235
26289
|
});
|
|
26236
26290
|
var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
|
|
26237
|
-
var TransactionForceNonceInputSchema =
|
|
26238
|
-
transactionId:
|
|
26291
|
+
var TransactionForceNonceInputSchema = z395.object({
|
|
26292
|
+
transactionId: z395.uuid().meta({
|
|
26239
26293
|
description: "Queue transaction identifier — the nonce is forced on its sender wallet",
|
|
26240
26294
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
26241
26295
|
})
|
|
26242
26296
|
});
|
|
26243
|
-
var TransactionForceNonceBodySchema =
|
|
26244
|
-
nonce:
|
|
26297
|
+
var TransactionForceNonceBodySchema = z395.object({
|
|
26298
|
+
nonce: z395.number().int().nonnegative().meta({
|
|
26245
26299
|
description: "Nonce value to force-set on the sender's nonce tracker",
|
|
26246
26300
|
examples: [42]
|
|
26247
26301
|
})
|
|
26248
26302
|
});
|
|
26249
|
-
var TransactionForceNonceResultSchema =
|
|
26250
|
-
previous:
|
|
26251
|
-
new:
|
|
26303
|
+
var TransactionForceNonceResultSchema = z395.object({
|
|
26304
|
+
previous: z395.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
|
|
26305
|
+
new: z395.number().meta({ description: "New nonce value after force-set" })
|
|
26252
26306
|
});
|
|
26253
26307
|
var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
|
|
26254
26308
|
|
|
26255
26309
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
|
|
26256
|
-
import { z as
|
|
26257
|
-
var TransactionV2CancelInputSchema =
|
|
26258
|
-
transactionId:
|
|
26310
|
+
import { z as z396 } from "zod";
|
|
26311
|
+
var TransactionV2CancelInputSchema = z396.object({
|
|
26312
|
+
transactionId: z396.uuid().meta({
|
|
26259
26313
|
description: "Queue transaction identifier (UUIDv7) to cancel",
|
|
26260
26314
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
26261
26315
|
})
|
|
26262
26316
|
});
|
|
26263
|
-
var TransactionCancelResultSchema =
|
|
26264
|
-
status:
|
|
26317
|
+
var TransactionCancelResultSchema = z396.object({
|
|
26318
|
+
status: z396.enum(["cancelled", "cancellation_pending", "error"]).meta({
|
|
26265
26319
|
description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
|
|
26266
26320
|
examples: ["cancelled", "cancellation_pending"]
|
|
26267
26321
|
}),
|
|
26268
|
-
cancelTransactionId:
|
|
26322
|
+
cancelTransactionId: z396.string().optional().meta({
|
|
26269
26323
|
description: "RBF replacement transaction ID when cancellation is pending on-chain"
|
|
26270
26324
|
}),
|
|
26271
|
-
message:
|
|
26325
|
+
message: z396.string().optional().meta({
|
|
26272
26326
|
description: "Human-readable error or status message"
|
|
26273
26327
|
})
|
|
26274
26328
|
});
|
|
26275
26329
|
var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
|
|
26276
26330
|
|
|
26277
26331
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
|
|
26278
|
-
import { z as
|
|
26332
|
+
import { z as z397 } from "zod";
|
|
26279
26333
|
var TRANSACTION_COLLECTION_FIELDS = {
|
|
26280
26334
|
status: enumField([...transactionRequestStates]),
|
|
26281
26335
|
operationType: textField(),
|
|
@@ -26288,12 +26342,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
|
|
|
26288
26342
|
defaultSort: "createdAt",
|
|
26289
26343
|
globalSearch: true
|
|
26290
26344
|
});
|
|
26291
|
-
var TransactionListItemSchema =
|
|
26292
|
-
transactionId:
|
|
26345
|
+
var TransactionListItemSchema = z397.object({
|
|
26346
|
+
transactionId: z397.uuid().meta({
|
|
26293
26347
|
description: "Queue transaction identifier (UUIDv7)",
|
|
26294
26348
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
26295
26349
|
}),
|
|
26296
|
-
kind:
|
|
26350
|
+
kind: z397.string().meta({
|
|
26297
26351
|
description: "Mutation kind submitted to the queue",
|
|
26298
26352
|
examples: ["token.create", "token.mint"]
|
|
26299
26353
|
}),
|
|
@@ -26301,19 +26355,19 @@ var TransactionListItemSchema = z396.object({
|
|
|
26301
26355
|
description: "Current transaction queue state",
|
|
26302
26356
|
examples: ["QUEUED", "COMPLETED", "FAILED"]
|
|
26303
26357
|
}),
|
|
26304
|
-
subStatus:
|
|
26358
|
+
subStatus: z397.string().nullable().meta({
|
|
26305
26359
|
description: "Optional queue sub-status with finer-grained detail",
|
|
26306
26360
|
examples: ["TIMEOUT", null]
|
|
26307
26361
|
}),
|
|
26308
|
-
fromAddress:
|
|
26362
|
+
fromAddress: z397.string().meta({
|
|
26309
26363
|
description: "Sender wallet address",
|
|
26310
26364
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
26311
26365
|
}),
|
|
26312
|
-
chainId:
|
|
26366
|
+
chainId: z397.number().int().meta({
|
|
26313
26367
|
description: "Target chain ID",
|
|
26314
26368
|
examples: [1]
|
|
26315
26369
|
}),
|
|
26316
|
-
transactionHash:
|
|
26370
|
+
transactionHash: z397.string().nullable().meta({
|
|
26317
26371
|
description: "Primary transaction hash once broadcast",
|
|
26318
26372
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
26319
26373
|
}),
|
|
@@ -26333,19 +26387,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
|
26333
26387
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
26334
26388
|
|
|
26335
26389
|
// ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
|
|
26336
|
-
import { z as
|
|
26337
|
-
var TransactionStatusInputSchema =
|
|
26338
|
-
transactionId:
|
|
26390
|
+
import { z as z398 } from "zod";
|
|
26391
|
+
var TransactionStatusInputSchema = z398.object({
|
|
26392
|
+
transactionId: z398.uuid().meta({
|
|
26339
26393
|
description: "Queue transaction identifier (UUIDv7)",
|
|
26340
26394
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
26341
26395
|
})
|
|
26342
26396
|
});
|
|
26343
|
-
var TransactionStatusOutputSchema =
|
|
26344
|
-
transactionId:
|
|
26397
|
+
var TransactionStatusOutputSchema = z398.object({
|
|
26398
|
+
transactionId: z398.uuid().meta({
|
|
26345
26399
|
description: "Queue transaction identifier (UUIDv7)",
|
|
26346
26400
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
26347
26401
|
}),
|
|
26348
|
-
kind:
|
|
26402
|
+
kind: z398.string().meta({
|
|
26349
26403
|
description: "Mutation kind submitted to the queue",
|
|
26350
26404
|
examples: ["token.create", "token.mint"]
|
|
26351
26405
|
}),
|
|
@@ -26353,23 +26407,23 @@ var TransactionStatusOutputSchema = z397.object({
|
|
|
26353
26407
|
description: "Current transaction queue state",
|
|
26354
26408
|
examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
|
|
26355
26409
|
}),
|
|
26356
|
-
subStatus:
|
|
26410
|
+
subStatus: z398.string().nullable().meta({
|
|
26357
26411
|
description: "Optional queue sub-status with finer-grained progress or failure detail",
|
|
26358
26412
|
examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
|
|
26359
26413
|
}),
|
|
26360
|
-
transactionHash:
|
|
26414
|
+
transactionHash: z398.string().nullable().meta({
|
|
26361
26415
|
description: "Primary transaction hash once broadcast",
|
|
26362
26416
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
26363
26417
|
}),
|
|
26364
|
-
transactionHashes:
|
|
26418
|
+
transactionHashes: z398.array(z398.string()).optional().meta({
|
|
26365
26419
|
description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
|
|
26366
26420
|
examples: [["0xabc...", "0xdef..."]]
|
|
26367
26421
|
}),
|
|
26368
|
-
blockNumber:
|
|
26422
|
+
blockNumber: z398.string().nullable().meta({
|
|
26369
26423
|
description: "Confirmed block number when available",
|
|
26370
26424
|
examples: ["12345678", null]
|
|
26371
26425
|
}),
|
|
26372
|
-
errorMessage:
|
|
26426
|
+
errorMessage: z398.string().nullable().meta({
|
|
26373
26427
|
description: "Human-readable error or timeout detail when available",
|
|
26374
26428
|
examples: ["Execution reverted", "Receipt not found after repeated checks", null]
|
|
26375
26429
|
}),
|
|
@@ -26448,12 +26502,12 @@ var transactionV2Contract = {
|
|
|
26448
26502
|
};
|
|
26449
26503
|
|
|
26450
26504
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
|
|
26451
|
-
import { z as
|
|
26505
|
+
import { z as z404 } from "zod";
|
|
26452
26506
|
|
|
26453
26507
|
// ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
26454
|
-
import { z as
|
|
26455
|
-
var UserReadByNationalIdInputSchema =
|
|
26456
|
-
nationalId:
|
|
26508
|
+
import { z as z399 } from "zod";
|
|
26509
|
+
var UserReadByNationalIdInputSchema = z399.object({
|
|
26510
|
+
nationalId: z399.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
26457
26511
|
});
|
|
26458
26512
|
|
|
26459
26513
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
|
|
@@ -26471,13 +26525,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
|
|
|
26471
26525
|
var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
26472
26526
|
|
|
26473
26527
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
|
|
26474
|
-
import { z as
|
|
26475
|
-
var TokenAssetV2Schema =
|
|
26528
|
+
import { z as z400 } from "zod";
|
|
26529
|
+
var TokenAssetV2Schema = z400.object({
|
|
26476
26530
|
id: ethereumAddress.meta({
|
|
26477
26531
|
description: "The token contract address",
|
|
26478
26532
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
26479
26533
|
}),
|
|
26480
|
-
name:
|
|
26534
|
+
name: z400.string().meta({
|
|
26481
26535
|
description: "The token name",
|
|
26482
26536
|
examples: ["Bond Token", "Equity Share"]
|
|
26483
26537
|
}),
|
|
@@ -26497,19 +26551,19 @@ var TokenAssetV2Schema = z399.object({
|
|
|
26497
26551
|
description: "The total supply of the token (raw on-chain uint256)",
|
|
26498
26552
|
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
26499
26553
|
}),
|
|
26500
|
-
bond:
|
|
26501
|
-
isMatured:
|
|
26554
|
+
bond: z400.object({
|
|
26555
|
+
isMatured: z400.boolean().meta({
|
|
26502
26556
|
description: "Whether the bond is matured",
|
|
26503
26557
|
examples: [true, false]
|
|
26504
26558
|
})
|
|
26505
26559
|
}).optional().nullable().meta({ description: "The bond details", examples: [] }),
|
|
26506
|
-
yield:
|
|
26507
|
-
schedule:
|
|
26560
|
+
yield: z400.object({
|
|
26561
|
+
schedule: z400.object({
|
|
26508
26562
|
id: ethereumAddress.meta({
|
|
26509
26563
|
description: "The yield schedule contract address",
|
|
26510
26564
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
26511
26565
|
}),
|
|
26512
|
-
denominationAsset:
|
|
26566
|
+
denominationAsset: z400.object({
|
|
26513
26567
|
id: ethereumAddress.meta({
|
|
26514
26568
|
description: "The denomination asset contract address",
|
|
26515
26569
|
examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
|
|
@@ -26529,8 +26583,8 @@ var TokenAssetV2Schema = z399.object({
|
|
|
26529
26583
|
}).nullable().meta({ description: "The yield schedule details", examples: [] })
|
|
26530
26584
|
}).nullable().meta({ description: "The yield details", examples: [] })
|
|
26531
26585
|
});
|
|
26532
|
-
var UserAssetBalanceV2ItemSchema =
|
|
26533
|
-
id:
|
|
26586
|
+
var UserAssetBalanceV2ItemSchema = z400.object({
|
|
26587
|
+
id: z400.uuid().meta({
|
|
26534
26588
|
description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
|
|
26535
26589
|
examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
|
|
26536
26590
|
}),
|
|
@@ -26550,7 +26604,7 @@ var UserAssetBalanceV2ItemSchema = z399.object({
|
|
|
26550
26604
|
description: "Balance multiplied by the token's resolved price, expressed in the organization's base currency. Null when no FX/price path is available for the token.",
|
|
26551
26605
|
examples: ["5.00", null]
|
|
26552
26606
|
}),
|
|
26553
|
-
priceInBaseCurrencyReliable:
|
|
26607
|
+
priceInBaseCurrencyReliable: z400.boolean().meta({
|
|
26554
26608
|
description: "Whether the FX chain used to populate the token's resolved base-currency price was fully reliable (all hops via active feeds). False when no price is available or when any hop fell back to a stale/backfilled rate.",
|
|
26555
26609
|
examples: [true, false]
|
|
26556
26610
|
}),
|
|
@@ -26602,10 +26656,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
|
|
|
26602
26656
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
26603
26657
|
|
|
26604
26658
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
26605
|
-
import { z as
|
|
26659
|
+
import { z as z403 } from "zod";
|
|
26606
26660
|
|
|
26607
26661
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
|
|
26608
|
-
import { z as
|
|
26662
|
+
import { z as z401 } from "zod";
|
|
26609
26663
|
var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
26610
26664
|
fileName: textField(),
|
|
26611
26665
|
documentType: enumField(kycDocumentTypes, { facetable: true }),
|
|
@@ -26616,19 +26670,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
|
26616
26670
|
var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
|
|
26617
26671
|
defaultSort: "uploadedAt"
|
|
26618
26672
|
});
|
|
26619
|
-
var KycProfileVersionDocumentsV2ListItemSchema =
|
|
26620
|
-
id:
|
|
26673
|
+
var KycProfileVersionDocumentsV2ListItemSchema = z401.object({
|
|
26674
|
+
id: z401.string(),
|
|
26621
26675
|
documentType: kycDocumentType(),
|
|
26622
|
-
fileName:
|
|
26623
|
-
fileSize:
|
|
26624
|
-
mimeType:
|
|
26676
|
+
fileName: z401.string(),
|
|
26677
|
+
fileSize: z401.number(),
|
|
26678
|
+
mimeType: z401.string(),
|
|
26625
26679
|
uploadedAt: timestamp(),
|
|
26626
|
-
uploadedBy:
|
|
26680
|
+
uploadedBy: z401.string().nullable()
|
|
26627
26681
|
});
|
|
26628
26682
|
var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
|
|
26629
26683
|
|
|
26630
26684
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
|
|
26631
|
-
import { z as
|
|
26685
|
+
import { z as z402 } from "zod";
|
|
26632
26686
|
var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
|
|
26633
26687
|
var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
|
|
26634
26688
|
var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
@@ -26641,21 +26695,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
|
26641
26695
|
var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
|
|
26642
26696
|
defaultSort: "versionNumber"
|
|
26643
26697
|
});
|
|
26644
|
-
var KycProfileVersionsV2ListItemSchema =
|
|
26645
|
-
id:
|
|
26646
|
-
versionNumber:
|
|
26698
|
+
var KycProfileVersionsV2ListItemSchema = z402.object({
|
|
26699
|
+
id: z402.string(),
|
|
26700
|
+
versionNumber: z402.number(),
|
|
26647
26701
|
status: kycVersionStatus(),
|
|
26648
26702
|
createdAt: timestamp(),
|
|
26649
|
-
createdBy:
|
|
26703
|
+
createdBy: z402.string().nullable(),
|
|
26650
26704
|
submittedAt: timestamp().nullable(),
|
|
26651
|
-
submittedBy:
|
|
26705
|
+
submittedBy: z402.string().nullable(),
|
|
26652
26706
|
reviewedAt: timestamp().nullable(),
|
|
26653
|
-
reviewedBy:
|
|
26654
|
-
reviewOutcome:
|
|
26655
|
-
isDraft:
|
|
26656
|
-
isUnderReview:
|
|
26657
|
-
isApproved:
|
|
26658
|
-
isCurrent:
|
|
26707
|
+
reviewedBy: z402.string().nullable(),
|
|
26708
|
+
reviewOutcome: z402.enum(KYC_REVIEW_OUTCOMES).nullable(),
|
|
26709
|
+
isDraft: z402.boolean(),
|
|
26710
|
+
isUnderReview: z402.boolean(),
|
|
26711
|
+
isApproved: z402.boolean(),
|
|
26712
|
+
isCurrent: z402.boolean()
|
|
26659
26713
|
});
|
|
26660
26714
|
var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
|
|
26661
26715
|
|
|
@@ -26673,14 +26727,14 @@ var versionsList = v2Contract.route({
|
|
|
26673
26727
|
description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
|
|
26674
26728
|
successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
|
|
26675
26729
|
tags: [V2_TAG.userKyc]
|
|
26676
|
-
}).input(v2Input.paramsQuery(
|
|
26730
|
+
}).input(v2Input.paramsQuery(z403.object({ userId: z403.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
|
|
26677
26731
|
var versionsCreate = v2Contract.route({
|
|
26678
26732
|
method: "POST",
|
|
26679
26733
|
path: "/kyc-profiles/{userId}/versions",
|
|
26680
26734
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
26681
26735
|
successDescription: "KYC profile version created successfully.",
|
|
26682
26736
|
tags: [V2_TAG.userKyc]
|
|
26683
|
-
}).input(v2Input.paramsBody(
|
|
26737
|
+
}).input(v2Input.paramsBody(z403.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
26684
26738
|
var versionRead = v2Contract.route({
|
|
26685
26739
|
method: "GET",
|
|
26686
26740
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -26694,7 +26748,7 @@ var versionUpdate = v2Contract.route({
|
|
|
26694
26748
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
26695
26749
|
successDescription: "KYC profile version updated successfully.",
|
|
26696
26750
|
tags: [V2_TAG.userKyc]
|
|
26697
|
-
}).input(v2Input.paramsBody(
|
|
26751
|
+
}).input(v2Input.paramsBody(z403.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
26698
26752
|
var versionSubmit = v2Contract.route({
|
|
26699
26753
|
method: "POST",
|
|
26700
26754
|
path: "/kyc-profile-versions/{versionId}/submissions",
|
|
@@ -26708,28 +26762,28 @@ var versionApprove = v2Contract.route({
|
|
|
26708
26762
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
26709
26763
|
successDescription: "KYC profile version approved.",
|
|
26710
26764
|
tags: [V2_TAG.userKyc]
|
|
26711
|
-
}).input(v2Input.paramsBody(
|
|
26765
|
+
}).input(v2Input.paramsBody(z403.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
26712
26766
|
var versionReject = v2Contract.route({
|
|
26713
26767
|
method: "POST",
|
|
26714
26768
|
path: "/kyc-profile-versions/{versionId}/rejections",
|
|
26715
26769
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
26716
26770
|
successDescription: "KYC profile version rejected.",
|
|
26717
26771
|
tags: [V2_TAG.userKyc]
|
|
26718
|
-
}).input(v2Input.paramsBody(
|
|
26772
|
+
}).input(v2Input.paramsBody(z403.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
26719
26773
|
var versionRequestUpdate = v2Contract.route({
|
|
26720
26774
|
method: "POST",
|
|
26721
26775
|
path: "/kyc-profile-versions/{versionId}/update-requests",
|
|
26722
26776
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
26723
26777
|
successDescription: "Update request created successfully.",
|
|
26724
26778
|
tags: [V2_TAG.userKyc]
|
|
26725
|
-
}).input(v2Input.paramsBody(
|
|
26779
|
+
}).input(v2Input.paramsBody(z403.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
26726
26780
|
var documentsList = v2Contract.route({
|
|
26727
26781
|
method: "GET",
|
|
26728
26782
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
26729
26783
|
description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
|
|
26730
26784
|
successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
|
|
26731
26785
|
tags: [V2_TAG.userKyc]
|
|
26732
|
-
}).input(v2Input.paramsQuery(
|
|
26786
|
+
}).input(v2Input.paramsQuery(z403.object({ versionId: z403.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
|
|
26733
26787
|
var documentsDelete = v2Contract.route({
|
|
26734
26788
|
method: "DELETE",
|
|
26735
26789
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
|
|
@@ -26743,14 +26797,14 @@ var documentsGetUploadUrl = v2Contract.route({
|
|
|
26743
26797
|
description: "Generate a presigned URL for uploading a KYC document directly to storage.",
|
|
26744
26798
|
successDescription: "Upload URL generated successfully.",
|
|
26745
26799
|
tags: [V2_TAG.userKyc]
|
|
26746
|
-
}).input(v2Input.paramsBody(
|
|
26800
|
+
}).input(v2Input.paramsBody(z403.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
|
|
26747
26801
|
var documentsConfirmUpload = v2Contract.route({
|
|
26748
26802
|
method: "POST",
|
|
26749
26803
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
26750
26804
|
description: "Confirm a document upload after successfully uploading to the presigned URL.",
|
|
26751
26805
|
successDescription: "Document upload confirmed.",
|
|
26752
26806
|
tags: [V2_TAG.userKyc]
|
|
26753
|
-
}).input(v2Input.paramsBody(
|
|
26807
|
+
}).input(v2Input.paramsBody(z403.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
26754
26808
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
26755
26809
|
method: "POST",
|
|
26756
26810
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
|
|
@@ -26828,14 +26882,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
26828
26882
|
description: "Read a single user by their internal database ID.",
|
|
26829
26883
|
successDescription: "User retrieved successfully.",
|
|
26830
26884
|
tags: [V2_TAG.user]
|
|
26831
|
-
}).input(v2Input.params(
|
|
26885
|
+
}).input(v2Input.params(z404.object({ userId: z404.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
26832
26886
|
var readByWallet3 = v2Contract.route({
|
|
26833
26887
|
method: "GET",
|
|
26834
26888
|
path: "/wallets/{wallet}/user",
|
|
26835
26889
|
description: "Read a single user by their Ethereum wallet address.",
|
|
26836
26890
|
successDescription: "User retrieved successfully.",
|
|
26837
26891
|
tags: [V2_TAG.user]
|
|
26838
|
-
}).input(v2Input.params(
|
|
26892
|
+
}).input(v2Input.params(z404.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
26839
26893
|
var readByNationalId = v2Contract.route({
|
|
26840
26894
|
method: "GET",
|
|
26841
26895
|
path: "/national-ids/{nationalId}/user",
|
|
@@ -27182,7 +27236,7 @@ function normalizeDalpBaseUrl(url) {
|
|
|
27182
27236
|
// package.json
|
|
27183
27237
|
var package_default = {
|
|
27184
27238
|
name: "@settlemint/dalp-sdk",
|
|
27185
|
-
version: "2.1.7-main.
|
|
27239
|
+
version: "2.1.7-main.25495284694",
|
|
27186
27240
|
private: false,
|
|
27187
27241
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
27188
27242
|
homepage: "https://settlemint.com",
|