@settlemint/dalp-sdk 2.1.7-main.25674533400 → 2.1.7-main.25679765049
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 +1141 -978
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23216,6 +23216,78 @@ var externalTokenV2Contract = {
|
|
|
23216
23216
|
register
|
|
23217
23217
|
};
|
|
23218
23218
|
|
|
23219
|
+
// ../../packages/dalp/api-contract/src/routes/v2/historical-balances/historical-balances.v2.at-block.schema.ts
|
|
23220
|
+
import { z as z324 } from "zod";
|
|
23221
|
+
var HISTORICAL_BALANCES_AT_BLOCK_KIND_OPTIONS = ["account", "totalSupply"];
|
|
23222
|
+
var REQUIRED_DISCRIMINATOR_MESSAGE = "at least one of filter[tokenAddress] or filter[account] is required when querying at-block snapshots";
|
|
23223
|
+
var DISCRIMINATOR_FILTER_FIELDS = new Set(["tokenAddress", "account", "kind"]);
|
|
23224
|
+
var HISTORICAL_BALANCES_AT_BLOCK_COLLECTION_FIELDS = {
|
|
23225
|
+
tokenAddress: addressField({ sortable: false, defaultOperator: "eq" }),
|
|
23226
|
+
account: addressField({ defaultOperator: "eq" }),
|
|
23227
|
+
kind: enumField(HISTORICAL_BALANCES_AT_BLOCK_KIND_OPTIONS, { sortable: false, facetable: true })
|
|
23228
|
+
};
|
|
23229
|
+
var HistoricalBalancesAtBlockCollectionInputSchema = createCollectionInputSchema(HISTORICAL_BALANCES_AT_BLOCK_COLLECTION_FIELDS, {
|
|
23230
|
+
defaultSort: "account",
|
|
23231
|
+
globalSearch: false
|
|
23232
|
+
});
|
|
23233
|
+
function isRecord2(value2) {
|
|
23234
|
+
return typeof value2 === "object" && value2 !== null && !Array.isArray(value2);
|
|
23235
|
+
}
|
|
23236
|
+
var HistoricalBalancesAtBlockV2InputSchema = z324.preprocess((input) => {
|
|
23237
|
+
if (!isRecord2(input)) {
|
|
23238
|
+
return input;
|
|
23239
|
+
}
|
|
23240
|
+
return {
|
|
23241
|
+
block: input.block,
|
|
23242
|
+
collection: input
|
|
23243
|
+
};
|
|
23244
|
+
}, z324.object({
|
|
23245
|
+
block: z324.coerce.bigint().nonnegative(),
|
|
23246
|
+
collection: HistoricalBalancesAtBlockCollectionInputSchema
|
|
23247
|
+
})).transform(({ block, collection }) => ({ ...collection, block })).superRefine((query, ctx) => {
|
|
23248
|
+
const hasDiscriminator = query.filters.some((filter) => filter.id === "tokenAddress" || filter.id === "account");
|
|
23249
|
+
if (!hasDiscriminator) {
|
|
23250
|
+
ctx.addIssue({
|
|
23251
|
+
code: "custom",
|
|
23252
|
+
message: REQUIRED_DISCRIMINATOR_MESSAGE,
|
|
23253
|
+
path: ["filter"]
|
|
23254
|
+
});
|
|
23255
|
+
}
|
|
23256
|
+
for (const filter of query.filters) {
|
|
23257
|
+
if (DISCRIMINATOR_FILTER_FIELDS.has(filter.id) && filter.operator !== "eq") {
|
|
23258
|
+
ctx.addIssue({
|
|
23259
|
+
code: "custom",
|
|
23260
|
+
message: `filter[${filter.id}] only supports operator=eq on this endpoint`,
|
|
23261
|
+
path: ["filter", filter.id]
|
|
23262
|
+
});
|
|
23263
|
+
}
|
|
23264
|
+
}
|
|
23265
|
+
});
|
|
23266
|
+
var HistoricalBalancesAtBlockV2ItemSchema = z324.object({
|
|
23267
|
+
tokenAddress: ethereumAddress,
|
|
23268
|
+
account: ethereumAddress,
|
|
23269
|
+
kind: z324.enum(["account", "totalSupply", "no-checkpoint"]),
|
|
23270
|
+
balance: bigDecimal(),
|
|
23271
|
+
balanceExact: apiBigInt,
|
|
23272
|
+
asOfBlockNumber: apiBigInt.nullable(),
|
|
23273
|
+
asOfBlockTimestamp: timestamp().nullable(),
|
|
23274
|
+
asOfTxHash: ethereumHash.nullable(),
|
|
23275
|
+
asOfLogIndex: z324.number().int().nonnegative().nullable()
|
|
23276
|
+
});
|
|
23277
|
+
var HistoricalBalancesAtBlockV2OutputSchema = createPaginatedResponse(HistoricalBalancesAtBlockV2ItemSchema);
|
|
23278
|
+
|
|
23279
|
+
// ../../packages/dalp/api-contract/src/routes/v2/historical-balances/historical-balances.v2.contract.ts
|
|
23280
|
+
var atBlock = v2Contract.route({
|
|
23281
|
+
method: "GET",
|
|
23282
|
+
path: "/historical-balances/at-block",
|
|
23283
|
+
description: "List indexed token balances as of a specific block. Requires block plus filter[tokenAddress] or filter[account].",
|
|
23284
|
+
successDescription: "Paginated list of historical balance snapshots at the requested block.",
|
|
23285
|
+
tags: [V2_TAG.token]
|
|
23286
|
+
}).input(v2Input.query(HistoricalBalancesAtBlockV2InputSchema)).output(HistoricalBalancesAtBlockV2OutputSchema);
|
|
23287
|
+
var historicalBalancesV2Contract = {
|
|
23288
|
+
atBlock
|
|
23289
|
+
};
|
|
23290
|
+
|
|
23219
23291
|
// ../../packages/dalp/api-contract/src/routes/v2/identity-recovery/identity-recovery.v2.contract.ts
|
|
23220
23292
|
var preview2 = v2Contract.route({
|
|
23221
23293
|
method: "GET",
|
|
@@ -23245,42 +23317,42 @@ var identityRecoveryV2Contract = {
|
|
|
23245
23317
|
};
|
|
23246
23318
|
|
|
23247
23319
|
// ../../packages/dalp/api-contract/src/routes/v2/invitation/invitation.v2.active-deployment.schema.ts
|
|
23248
|
-
import { z as
|
|
23249
|
-
var InvitationV2ActiveDeploymentInputSchema =
|
|
23250
|
-
invitationId:
|
|
23320
|
+
import { z as z325 } from "zod";
|
|
23321
|
+
var InvitationV2ActiveDeploymentInputSchema = z325.object({
|
|
23322
|
+
invitationId: z325.string().min(1, "invitationId is required").regex(/^[A-Za-z0-9_-]+$/, "invitationId must contain only letters, digits, underscore, or dash")
|
|
23251
23323
|
});
|
|
23252
|
-
var InvitationV2ActiveDeploymentOutputSchema =
|
|
23253
|
-
|
|
23254
|
-
state:
|
|
23324
|
+
var InvitationV2ActiveDeploymentOutputSchema = z325.discriminatedUnion("state", [
|
|
23325
|
+
z325.object({
|
|
23326
|
+
state: z325.literal("none")
|
|
23255
23327
|
}),
|
|
23256
|
-
|
|
23257
|
-
state:
|
|
23258
|
-
deploymentId:
|
|
23328
|
+
z325.object({
|
|
23329
|
+
state: z325.literal("active"),
|
|
23330
|
+
deploymentId: z325.string()
|
|
23259
23331
|
}),
|
|
23260
|
-
|
|
23261
|
-
state:
|
|
23262
|
-
deploymentId:
|
|
23332
|
+
z325.object({
|
|
23333
|
+
state: z325.literal("succeeded-recently"),
|
|
23334
|
+
deploymentId: z325.string()
|
|
23263
23335
|
}),
|
|
23264
|
-
|
|
23265
|
-
state:
|
|
23266
|
-
deploymentId:
|
|
23336
|
+
z325.object({
|
|
23337
|
+
state: z325.literal("failed-purgeable"),
|
|
23338
|
+
deploymentId: z325.string()
|
|
23267
23339
|
}),
|
|
23268
|
-
|
|
23269
|
-
state:
|
|
23340
|
+
z325.object({
|
|
23341
|
+
state: z325.literal("unknown")
|
|
23270
23342
|
})
|
|
23271
23343
|
]);
|
|
23272
23344
|
|
|
23273
23345
|
// ../../packages/dalp/api-contract/src/routes/v2/invitation/invitation.v2.accept.schema.ts
|
|
23274
|
-
import { z as
|
|
23346
|
+
import { z as z329 } from "zod";
|
|
23275
23347
|
|
|
23276
23348
|
// ../../packages/dalp/api-contract/src/sse/deployment-stream.schema.ts
|
|
23277
|
-
import { z as
|
|
23349
|
+
import { z as z328 } from "zod";
|
|
23278
23350
|
|
|
23279
23351
|
// ../../packages/dalp/api-contract/src/dapi-errors/public-error.schema.ts
|
|
23280
|
-
import { z as
|
|
23352
|
+
import { z as z327 } from "zod";
|
|
23281
23353
|
|
|
23282
23354
|
// ../../packages/dalp/api-contract/src/dapi-errors/registry.schema.ts
|
|
23283
|
-
import { z as
|
|
23355
|
+
import { z as z326 } from "zod";
|
|
23284
23356
|
var DAPI_ERROR_CATEGORY_VALUES = [
|
|
23285
23357
|
"client",
|
|
23286
23358
|
"auth",
|
|
@@ -23305,65 +23377,65 @@ var DAPI_ERROR_SURFACE_VALUES = [
|
|
|
23305
23377
|
"filesystem-presigned",
|
|
23306
23378
|
"better-auth"
|
|
23307
23379
|
];
|
|
23308
|
-
var DAPI_ERROR_REGISTRY_ID_SCHEMA =
|
|
23309
|
-
var NonEmptyPublicStringSchema =
|
|
23310
|
-
var DAPI_ERROR_PUBLIC_COPY_SCHEMA =
|
|
23380
|
+
var DAPI_ERROR_REGISTRY_ID_SCHEMA = z326.string().regex(/^DALP-\d{4}$/, "DAPI error ids must use DALP-0001 numeric public code format");
|
|
23381
|
+
var NonEmptyPublicStringSchema = z326.string().trim().min(1);
|
|
23382
|
+
var DAPI_ERROR_PUBLIC_COPY_SCHEMA = z326.object({
|
|
23311
23383
|
message: NonEmptyPublicStringSchema,
|
|
23312
23384
|
why: NonEmptyPublicStringSchema,
|
|
23313
23385
|
fix: NonEmptyPublicStringSchema
|
|
23314
23386
|
});
|
|
23315
|
-
var DAPI_ERROR_OBSERVABILITY_SCHEMA =
|
|
23316
|
-
severity:
|
|
23387
|
+
var DAPI_ERROR_OBSERVABILITY_SCHEMA = z326.object({
|
|
23388
|
+
severity: z326.enum(["info", "warning", "error", "fatal"]),
|
|
23317
23389
|
otelEventName: NonEmptyPublicStringSchema,
|
|
23318
23390
|
metricAttributeKey: NonEmptyPublicStringSchema,
|
|
23319
|
-
dimensions:
|
|
23391
|
+
dimensions: z326.array(NonEmptyPublicStringSchema).min(1)
|
|
23320
23392
|
});
|
|
23321
|
-
var DAPI_ERROR_ENTRY_SCHEMA =
|
|
23393
|
+
var DAPI_ERROR_ENTRY_SCHEMA = z326.object({
|
|
23322
23394
|
id: DAPI_ERROR_REGISTRY_ID_SCHEMA,
|
|
23323
|
-
category:
|
|
23324
|
-
status:
|
|
23325
|
-
retryable:
|
|
23326
|
-
expectedClientError:
|
|
23395
|
+
category: z326.enum(DAPI_ERROR_CATEGORY_VALUES),
|
|
23396
|
+
status: z326.number().int().min(400).max(599),
|
|
23397
|
+
retryable: z326.boolean(),
|
|
23398
|
+
expectedClientError: z326.boolean(),
|
|
23327
23399
|
public: DAPI_ERROR_PUBLIC_COPY_SCHEMA,
|
|
23328
|
-
surfaces:
|
|
23329
|
-
transports:
|
|
23330
|
-
orpcCode:
|
|
23331
|
-
contract:
|
|
23332
|
-
dalpCodeSource:
|
|
23333
|
-
publicCodeField:
|
|
23400
|
+
surfaces: z326.array(z326.enum(DAPI_ERROR_SURFACE_VALUES)).min(1),
|
|
23401
|
+
transports: z326.array(z326.enum(DAPI_ERROR_TRANSPORT_VALUES)).min(1),
|
|
23402
|
+
orpcCode: z326.string().optional(),
|
|
23403
|
+
contract: z326.object({
|
|
23404
|
+
dalpCodeSource: z326.literal("contract-error-catalog"),
|
|
23405
|
+
publicCodeField: z326.literal("dalpCode")
|
|
23334
23406
|
}).optional(),
|
|
23335
|
-
authSensitivity:
|
|
23336
|
-
existenceDisclosure:
|
|
23407
|
+
authSensitivity: z326.object({
|
|
23408
|
+
existenceDisclosure: z326.enum(["conceal", "public-safe"]),
|
|
23337
23409
|
rationale: NonEmptyPublicStringSchema
|
|
23338
23410
|
}).optional(),
|
|
23339
23411
|
observability: DAPI_ERROR_OBSERVABILITY_SCHEMA,
|
|
23340
23412
|
owner: NonEmptyPublicStringSchema,
|
|
23341
23413
|
reviewNotes: NonEmptyPublicStringSchema.optional()
|
|
23342
23414
|
});
|
|
23343
|
-
var DAPI_ERROR_SURFACE_SCHEMA =
|
|
23344
|
-
id:
|
|
23415
|
+
var DAPI_ERROR_SURFACE_SCHEMA = z326.object({
|
|
23416
|
+
id: z326.enum(DAPI_ERROR_SURFACE_VALUES),
|
|
23345
23417
|
label: NonEmptyPublicStringSchema,
|
|
23346
23418
|
externalConsumer: NonEmptyPublicStringSchema,
|
|
23347
|
-
transport:
|
|
23348
|
-
vendorBoundary:
|
|
23349
|
-
coverage:
|
|
23350
|
-
registryBehavior:
|
|
23419
|
+
transport: z326.enum(DAPI_ERROR_TRANSPORT_VALUES),
|
|
23420
|
+
vendorBoundary: z326.enum(["none", "vendor-owned"]),
|
|
23421
|
+
coverage: z326.enum(["proof-slice", "in-scope", "excluded"]),
|
|
23422
|
+
registryBehavior: z326.enum(["direct-envelope", "protocol-adapter", "registry-reference", "vendor-exclusion"]),
|
|
23351
23423
|
publicAdapterBehavior: NonEmptyPublicStringSchema,
|
|
23352
23424
|
generatedArtifactTarget: NonEmptyPublicStringSchema,
|
|
23353
|
-
registryEntries:
|
|
23425
|
+
registryEntries: z326.array(DAPI_ERROR_REGISTRY_ID_SCHEMA),
|
|
23354
23426
|
notes: NonEmptyPublicStringSchema.optional()
|
|
23355
23427
|
});
|
|
23356
23428
|
|
|
23357
23429
|
// ../../packages/dalp/api-contract/src/dapi-errors/public-error.schema.ts
|
|
23358
|
-
var DAPI_PUBLIC_ERROR_DETAILS_SCHEMA =
|
|
23359
|
-
var DAPI_PUBLIC_ERROR_SCHEMA =
|
|
23430
|
+
var DAPI_PUBLIC_ERROR_DETAILS_SCHEMA = z327.record(z327.string(), z327.unknown());
|
|
23431
|
+
var DAPI_PUBLIC_ERROR_SCHEMA = z327.object({
|
|
23360
23432
|
id: DAPI_ERROR_REGISTRY_ID_SCHEMA,
|
|
23361
|
-
category:
|
|
23362
|
-
status:
|
|
23363
|
-
retryable:
|
|
23364
|
-
message:
|
|
23365
|
-
why:
|
|
23366
|
-
fix:
|
|
23433
|
+
category: z327.enum(DAPI_ERROR_CATEGORY_VALUES),
|
|
23434
|
+
status: z327.number().int().min(400).max(599),
|
|
23435
|
+
retryable: z327.boolean(),
|
|
23436
|
+
message: z327.string().trim().min(1),
|
|
23437
|
+
why: z327.string().trim().min(1),
|
|
23438
|
+
fix: z327.string().trim().min(1),
|
|
23367
23439
|
details: DAPI_PUBLIC_ERROR_DETAILS_SCHEMA.optional()
|
|
23368
23440
|
});
|
|
23369
23441
|
|
|
@@ -23382,80 +23454,80 @@ var deploymentNodeTypes = [
|
|
|
23382
23454
|
"paymaster",
|
|
23383
23455
|
"other"
|
|
23384
23456
|
];
|
|
23385
|
-
var DeploymentNodeTypeSchema =
|
|
23386
|
-
var DeploymentNodeStatusSchema =
|
|
23387
|
-
var DeploymentLeafNodeSchema =
|
|
23388
|
-
id:
|
|
23389
|
-
label:
|
|
23457
|
+
var DeploymentNodeTypeSchema = z328.enum(deploymentNodeTypes);
|
|
23458
|
+
var DeploymentNodeStatusSchema = z328.enum(["pending", "in-progress", "completed", "failed"]);
|
|
23459
|
+
var DeploymentLeafNodeSchema = z328.object({
|
|
23460
|
+
id: z328.string(),
|
|
23461
|
+
label: z328.string(),
|
|
23390
23462
|
type: DeploymentNodeTypeSchema,
|
|
23391
23463
|
status: DeploymentNodeStatusSchema,
|
|
23392
|
-
error:
|
|
23464
|
+
error: z328.string().optional()
|
|
23393
23465
|
});
|
|
23394
23466
|
var DeploymentNodeSchema = DeploymentLeafNodeSchema.extend({
|
|
23395
|
-
children:
|
|
23467
|
+
children: z328.array(DeploymentLeafNodeSchema).optional()
|
|
23396
23468
|
});
|
|
23397
|
-
var DeploymentEventSchema =
|
|
23398
|
-
|
|
23399
|
-
type:
|
|
23400
|
-
nodes:
|
|
23469
|
+
var DeploymentEventSchema = z328.discriminatedUnion("type", [
|
|
23470
|
+
z328.object({
|
|
23471
|
+
type: z328.literal("tree"),
|
|
23472
|
+
nodes: z328.array(DeploymentNodeSchema)
|
|
23401
23473
|
}),
|
|
23402
|
-
|
|
23403
|
-
type:
|
|
23404
|
-
nodeId:
|
|
23474
|
+
z328.object({
|
|
23475
|
+
type: z328.literal("update"),
|
|
23476
|
+
nodeId: z328.string(),
|
|
23405
23477
|
status: DeploymentNodeStatusSchema,
|
|
23406
|
-
error:
|
|
23407
|
-
}),
|
|
23408
|
-
|
|
23409
|
-
type:
|
|
23410
|
-
success:
|
|
23411
|
-
failedSteps:
|
|
23412
|
-
id:
|
|
23413
|
-
label:
|
|
23414
|
-
error:
|
|
23478
|
+
error: z328.string().optional()
|
|
23479
|
+
}),
|
|
23480
|
+
z328.object({
|
|
23481
|
+
type: z328.literal("complete"),
|
|
23482
|
+
success: z328.boolean(),
|
|
23483
|
+
failedSteps: z328.array(z328.object({
|
|
23484
|
+
id: z328.string(),
|
|
23485
|
+
label: z328.string(),
|
|
23486
|
+
error: z328.string().optional(),
|
|
23415
23487
|
wireError: ContractErrorDataSchema.optional()
|
|
23416
23488
|
})).optional()
|
|
23417
23489
|
}),
|
|
23418
|
-
|
|
23419
|
-
type:
|
|
23420
|
-
message:
|
|
23490
|
+
z328.object({
|
|
23491
|
+
type: z328.literal("error"),
|
|
23492
|
+
message: z328.string(),
|
|
23421
23493
|
error: DAPI_PUBLIC_ERROR_SCHEMA
|
|
23422
23494
|
})
|
|
23423
23495
|
]);
|
|
23424
23496
|
|
|
23425
23497
|
// ../../packages/dalp/api-contract/src/routes/v2/invitation/invitation.v2.accept.schema.ts
|
|
23426
|
-
var InvitationV2AcceptInputSchema =
|
|
23427
|
-
invitationId:
|
|
23498
|
+
var InvitationV2AcceptInputSchema = z329.object({
|
|
23499
|
+
invitationId: z329.string().min(1, "invitationId is required").regex(/^[A-Za-z0-9_-]+$/, "invitationId must contain only letters, digits, underscore, or dash")
|
|
23428
23500
|
});
|
|
23429
|
-
var InvitationV2AcceptOutputSchema =
|
|
23430
|
-
deploymentId:
|
|
23431
|
-
tree:
|
|
23501
|
+
var InvitationV2AcceptOutputSchema = z329.object({
|
|
23502
|
+
deploymentId: z329.string(),
|
|
23503
|
+
tree: z329.array(DeploymentNodeSchema)
|
|
23432
23504
|
});
|
|
23433
23505
|
|
|
23434
23506
|
// ../../packages/dalp/api-contract/src/routes/v2/invitation/invitation.v2.deploy.schema.ts
|
|
23435
|
-
import { z as
|
|
23436
|
-
var InvitationV2DeployInputSchema =
|
|
23437
|
-
invitationId:
|
|
23507
|
+
import { z as z330 } from "zod";
|
|
23508
|
+
var InvitationV2DeployInputSchema = z330.object({
|
|
23509
|
+
invitationId: z330.string().min(1, "invitationId is required").regex(/^[A-Za-z0-9_-]+$/, "invitationId must contain only letters, digits, underscore, or dash")
|
|
23438
23510
|
});
|
|
23439
|
-
var InvitationV2DeployOutputSchema =
|
|
23440
|
-
deploymentId:
|
|
23441
|
-
tree:
|
|
23511
|
+
var InvitationV2DeployOutputSchema = z330.object({
|
|
23512
|
+
deploymentId: z330.string(),
|
|
23513
|
+
tree: z330.array(DeploymentNodeSchema)
|
|
23442
23514
|
});
|
|
23443
23515
|
|
|
23444
23516
|
// ../../packages/dalp/api-contract/src/routes/v2/invitation/invitation.v2.deploy-stream.schema.ts
|
|
23445
23517
|
import { eventIterator as eventIterator4 } from "@orpc/contract";
|
|
23446
|
-
import { z as
|
|
23447
|
-
var InvitationV2DeployStreamInputSchema =
|
|
23448
|
-
deploymentId:
|
|
23518
|
+
import { z as z331 } from "zod";
|
|
23519
|
+
var InvitationV2DeployStreamInputSchema = z331.object({
|
|
23520
|
+
deploymentId: z331.string()
|
|
23449
23521
|
});
|
|
23450
23522
|
var InvitationV2DeployStreamOutputSchema = eventIterator4(DeploymentEventSchema);
|
|
23451
23523
|
|
|
23452
23524
|
// ../../packages/dalp/api-contract/src/routes/v2/invitation/invitation.v2.retry.schema.ts
|
|
23453
|
-
import { z as
|
|
23454
|
-
var InvitationV2RetryInputSchema =
|
|
23455
|
-
invitationId:
|
|
23525
|
+
import { z as z332 } from "zod";
|
|
23526
|
+
var InvitationV2RetryInputSchema = z332.object({
|
|
23527
|
+
invitationId: z332.string().min(1, "invitationId is required").regex(/^[A-Za-z0-9_-]+$/, "invitationId must contain only letters, digits, underscore, or dash")
|
|
23456
23528
|
});
|
|
23457
|
-
var InvitationV2RetryOutputSchema =
|
|
23458
|
-
ready:
|
|
23529
|
+
var InvitationV2RetryOutputSchema = z332.object({
|
|
23530
|
+
ready: z332.literal(true)
|
|
23459
23531
|
});
|
|
23460
23532
|
|
|
23461
23533
|
// ../../packages/dalp/api-contract/src/routes/v2/invitation/invitation.v2.contract.ts
|
|
@@ -23503,50 +23575,50 @@ var invitationV2Contract = {
|
|
|
23503
23575
|
};
|
|
23504
23576
|
|
|
23505
23577
|
// ../../packages/dalp/api-contract/src/routes/v2/organization/organization.v2.active-deployment.schema.ts
|
|
23506
|
-
import { z as
|
|
23507
|
-
var OrganizationV2ActiveDeploymentOutputSchema =
|
|
23508
|
-
deploymentId:
|
|
23578
|
+
import { z as z333 } from "zod";
|
|
23579
|
+
var OrganizationV2ActiveDeploymentOutputSchema = z333.object({
|
|
23580
|
+
deploymentId: z333.string().nullable()
|
|
23509
23581
|
});
|
|
23510
23582
|
|
|
23511
23583
|
// ../../packages/dalp/api-contract/src/routes/v2/organization/organization.v2.deploy.schema.ts
|
|
23512
|
-
import { z as
|
|
23513
|
-
var OrganizationV2DeployInputSchema =
|
|
23514
|
-
name:
|
|
23584
|
+
import { z as z334 } from "zod";
|
|
23585
|
+
var OrganizationV2DeployInputSchema = z334.object({
|
|
23586
|
+
name: z334.string().min(1, "Organization name is required").max(32, "Organization name must be 32 characters or fewer"),
|
|
23515
23587
|
baseCurrency: fiatCurrency(),
|
|
23516
|
-
targetCurrencies:
|
|
23588
|
+
targetCurrencies: z334.array(fiatCurrency()).min(1, "Pick at least one target currency for exchange-rate feeds")
|
|
23517
23589
|
}).superRefine((value2, ctx) => {
|
|
23518
23590
|
if (new Set(value2.targetCurrencies).size !== value2.targetCurrencies.length) {
|
|
23519
23591
|
ctx.addIssue({
|
|
23520
|
-
code:
|
|
23592
|
+
code: z334.ZodIssueCode.custom,
|
|
23521
23593
|
message: "targetCurrencies must not contain duplicates",
|
|
23522
23594
|
path: ["targetCurrencies"]
|
|
23523
23595
|
});
|
|
23524
23596
|
}
|
|
23525
23597
|
if (!value2.targetCurrencies.includes(value2.baseCurrency)) {
|
|
23526
23598
|
ctx.addIssue({
|
|
23527
|
-
code:
|
|
23599
|
+
code: z334.ZodIssueCode.custom,
|
|
23528
23600
|
message: "baseCurrency must be one of the selected targetCurrencies",
|
|
23529
23601
|
path: ["baseCurrency"]
|
|
23530
23602
|
});
|
|
23531
23603
|
}
|
|
23532
23604
|
if (value2.targetCurrencies.every((code2) => code2 === value2.baseCurrency)) {
|
|
23533
23605
|
ctx.addIssue({
|
|
23534
|
-
code:
|
|
23606
|
+
code: z334.ZodIssueCode.custom,
|
|
23535
23607
|
message: "targetCurrencies must contain at least one currency other than baseCurrency",
|
|
23536
23608
|
path: ["targetCurrencies"]
|
|
23537
23609
|
});
|
|
23538
23610
|
}
|
|
23539
23611
|
});
|
|
23540
|
-
var OrganizationV2DeployOutputSchema =
|
|
23541
|
-
deploymentId:
|
|
23542
|
-
tree:
|
|
23612
|
+
var OrganizationV2DeployOutputSchema = z334.object({
|
|
23613
|
+
deploymentId: z334.string(),
|
|
23614
|
+
tree: z334.array(DeploymentNodeSchema)
|
|
23543
23615
|
});
|
|
23544
23616
|
|
|
23545
23617
|
// ../../packages/dalp/api-contract/src/routes/v2/organization/organization.v2.deploy-stream.schema.ts
|
|
23546
23618
|
import { eventIterator as eventIterator5 } from "@orpc/contract";
|
|
23547
|
-
import { z as
|
|
23548
|
-
var OrganizationV2DeployStreamInputSchema =
|
|
23549
|
-
deploymentId:
|
|
23619
|
+
import { z as z335 } from "zod";
|
|
23620
|
+
var OrganizationV2DeployStreamInputSchema = z335.object({
|
|
23621
|
+
deploymentId: z335.string()
|
|
23550
23622
|
});
|
|
23551
23623
|
var OrganizationV2DeployStreamOutputSchema = eventIterator5(DeploymentEventSchema);
|
|
23552
23624
|
|
|
@@ -23579,17 +23651,17 @@ var organizationV2Contract = {
|
|
|
23579
23651
|
};
|
|
23580
23652
|
|
|
23581
23653
|
// ../../packages/dalp/api-contract/src/routes/v2/restate/restate.v2.cleanup-stale-deployments.ts
|
|
23582
|
-
import { z as
|
|
23583
|
-
var RestateV2CleanupStaleDeploymentsInputSchema =
|
|
23584
|
-
serviceUrl:
|
|
23654
|
+
import { z as z336 } from "zod";
|
|
23655
|
+
var RestateV2CleanupStaleDeploymentsInputSchema = z336.object({
|
|
23656
|
+
serviceUrl: z336.string().url().meta({
|
|
23585
23657
|
description: "Service URL of the deployment to keep (e.g. `http://ddwf:9080/v1`). Every other registered deployment is treated as stale and drained."
|
|
23586
23658
|
}),
|
|
23587
|
-
forceDrain:
|
|
23659
|
+
forceDrain: z336.boolean().default(false).meta({
|
|
23588
23660
|
description: "Pass `forceDrain=true` to delete stale deployments even when they still have pending invocations. Use in dev/local where old deployments point to dead ports."
|
|
23589
23661
|
})
|
|
23590
23662
|
});
|
|
23591
|
-
var RestateV2CleanupStaleDeploymentsOutputSchema =
|
|
23592
|
-
acknowledged:
|
|
23663
|
+
var RestateV2CleanupStaleDeploymentsOutputSchema = z336.object({
|
|
23664
|
+
acknowledged: z336.literal(true).meta({ description: "Always `true` on success." })
|
|
23593
23665
|
});
|
|
23594
23666
|
var restateCleanupStaleDeploymentsContract = operator(v2Contract.route({
|
|
23595
23667
|
method: "POST",
|
|
@@ -23598,51 +23670,51 @@ var restateCleanupStaleDeploymentsContract = operator(v2Contract.route({
|
|
|
23598
23670
|
}).input(v2Input.body(RestateV2CleanupStaleDeploymentsInputSchema)).output(RestateV2CleanupStaleDeploymentsOutputSchema), { service: "restate", verb: "cleanup-stale-deployments" });
|
|
23599
23671
|
|
|
23600
23672
|
// ../../packages/dalp/api-contract/src/routes/v2/restate/restate.v2.doctor.ts
|
|
23601
|
-
import { z as
|
|
23602
|
-
var ComponentStatusEnum =
|
|
23603
|
-
var IngressStatusSchema =
|
|
23673
|
+
import { z as z337 } from "zod";
|
|
23674
|
+
var ComponentStatusEnum = z337.enum(["ok", "unreachable", "degraded"]);
|
|
23675
|
+
var IngressStatusSchema = z337.object({
|
|
23604
23676
|
status: ComponentStatusEnum,
|
|
23605
|
-
latencyMs:
|
|
23677
|
+
latencyMs: z337.number().nullable()
|
|
23606
23678
|
});
|
|
23607
|
-
var AdminStatusSchema =
|
|
23679
|
+
var AdminStatusSchema = z337.object({
|
|
23608
23680
|
status: ComponentStatusEnum,
|
|
23609
|
-
latencyMs:
|
|
23610
|
-
version:
|
|
23681
|
+
latencyMs: z337.number().nullable(),
|
|
23682
|
+
version: z337.string().nullable()
|
|
23611
23683
|
});
|
|
23612
|
-
var DeploymentSchema =
|
|
23613
|
-
id:
|
|
23614
|
-
serviceUrl:
|
|
23684
|
+
var DeploymentSchema = z337.object({
|
|
23685
|
+
id: z337.string(),
|
|
23686
|
+
serviceUrl: z337.string(),
|
|
23615
23687
|
createdAt: timestamp()
|
|
23616
23688
|
});
|
|
23617
|
-
var ServiceSchema =
|
|
23618
|
-
name:
|
|
23619
|
-
revision:
|
|
23689
|
+
var ServiceSchema = z337.object({
|
|
23690
|
+
name: z337.string(),
|
|
23691
|
+
revision: z337.number().optional()
|
|
23620
23692
|
});
|
|
23621
|
-
var RecentFailureSchema =
|
|
23622
|
-
id:
|
|
23623
|
-
serviceName:
|
|
23624
|
-
serviceKey:
|
|
23693
|
+
var RecentFailureSchema = z337.object({
|
|
23694
|
+
id: z337.string(),
|
|
23695
|
+
serviceName: z337.string(),
|
|
23696
|
+
serviceKey: z337.string().nullable(),
|
|
23625
23697
|
failedAt: timestamp(),
|
|
23626
|
-
errorMessage:
|
|
23698
|
+
errorMessage: z337.string().nullable()
|
|
23627
23699
|
});
|
|
23628
|
-
var DeploymentsReadoutSchema =
|
|
23700
|
+
var DeploymentsReadoutSchema = z337.object({
|
|
23629
23701
|
status: ComponentStatusEnum,
|
|
23630
|
-
items:
|
|
23631
|
-
error:
|
|
23702
|
+
items: z337.array(DeploymentSchema),
|
|
23703
|
+
error: z337.string().nullable()
|
|
23632
23704
|
});
|
|
23633
|
-
var ServicesReadoutSchema =
|
|
23705
|
+
var ServicesReadoutSchema = z337.object({
|
|
23634
23706
|
status: ComponentStatusEnum,
|
|
23635
|
-
items:
|
|
23636
|
-
error:
|
|
23707
|
+
items: z337.array(ServiceSchema),
|
|
23708
|
+
error: z337.string().nullable()
|
|
23637
23709
|
});
|
|
23638
|
-
var InvocationsReadoutSchema =
|
|
23710
|
+
var InvocationsReadoutSchema = z337.object({
|
|
23639
23711
|
status: ComponentStatusEnum,
|
|
23640
|
-
byStatus:
|
|
23641
|
-
recentFailures:
|
|
23642
|
-
error:
|
|
23712
|
+
byStatus: z337.record(z337.string(), z337.number()),
|
|
23713
|
+
recentFailures: z337.array(RecentFailureSchema).max(20),
|
|
23714
|
+
error: z337.string().nullable()
|
|
23643
23715
|
});
|
|
23644
|
-
var RestateV2DoctorInputSchema =
|
|
23645
|
-
var RestateV2DoctorOutputSchema =
|
|
23716
|
+
var RestateV2DoctorInputSchema = z337.object({}).strict();
|
|
23717
|
+
var RestateV2DoctorOutputSchema = z337.object({
|
|
23646
23718
|
ingress: IngressStatusSchema,
|
|
23647
23719
|
admin: AdminStatusSchema,
|
|
23648
23720
|
deployments: DeploymentsReadoutSchema,
|
|
@@ -23656,18 +23728,18 @@ var restateDoctorContract = operator(v2Contract.route({
|
|
|
23656
23728
|
}).input(v2Input.body(RestateV2DoctorInputSchema)).output(RestateV2DoctorOutputSchema), { service: "restate", verb: "doctor" });
|
|
23657
23729
|
|
|
23658
23730
|
// ../../packages/dalp/api-contract/src/routes/v2/restate/restate.v2.force-redeploy.ts
|
|
23659
|
-
import { z as
|
|
23660
|
-
var RestateV2ForceRedeployInputSchema =
|
|
23661
|
-
serviceUrl:
|
|
23731
|
+
import { z as z338 } from "zod";
|
|
23732
|
+
var RestateV2ForceRedeployInputSchema = z338.object({
|
|
23733
|
+
serviceUrl: z338.string().url().meta({
|
|
23662
23734
|
description: "Service URL to register with Restate (e.g. `http://ddwf:9080/v1`). Use the doctor route to discover the currently registered URL."
|
|
23663
23735
|
}),
|
|
23664
|
-
force:
|
|
23736
|
+
force: z338.boolean().default(true).meta({
|
|
23665
23737
|
description: "Pass `force=true` to the Restate admin API even when a registration already exists."
|
|
23666
23738
|
})
|
|
23667
23739
|
});
|
|
23668
|
-
var RestateV2ForceRedeployOutputSchema =
|
|
23669
|
-
acknowledged:
|
|
23670
|
-
deploymentId:
|
|
23740
|
+
var RestateV2ForceRedeployOutputSchema = z338.object({
|
|
23741
|
+
acknowledged: z338.literal(true).meta({ description: "Always `true` on success." }),
|
|
23742
|
+
deploymentId: z338.string().meta({ description: "Restate deployment id of the (re-)registered service." })
|
|
23671
23743
|
});
|
|
23672
23744
|
var restateForceRedeployContract = operator(v2Contract.route({
|
|
23673
23745
|
method: "POST",
|
|
@@ -23676,14 +23748,14 @@ var restateForceRedeployContract = operator(v2Contract.route({
|
|
|
23676
23748
|
}).input(v2Input.body(RestateV2ForceRedeployInputSchema)).output(RestateV2ForceRedeployOutputSchema), { service: "restate", verb: "force-redeploy" });
|
|
23677
23749
|
|
|
23678
23750
|
// ../../packages/dalp/api-contract/src/routes/v2/restate/restate.v2.recover-stuck-workflow.ts
|
|
23679
|
-
import { z as
|
|
23751
|
+
import { z as z339 } from "zod";
|
|
23680
23752
|
var SAFE_IDENTIFIER_PATTERN = /^[a-zA-Z0-9_-]+$/;
|
|
23681
|
-
var RestateV2RecoverStuckWorkflowInputSchema =
|
|
23682
|
-
serviceName:
|
|
23683
|
-
serviceKey:
|
|
23753
|
+
var RestateV2RecoverStuckWorkflowInputSchema = z339.object({
|
|
23754
|
+
serviceName: z339.string().regex(SAFE_IDENTIFIER_PATTERN, "serviceName must match [a-zA-Z0-9_-]+").meta({ description: "Restate service name (e.g. `IdentityRecoveryWorkflow`)." }),
|
|
23755
|
+
serviceKey: z339.string().regex(SAFE_IDENTIFIER_PATTERN, "serviceKey must match [a-zA-Z0-9_-]+").meta({ description: "Workflow service key — the per-invocation identifier (e.g. an invitation id)." })
|
|
23684
23756
|
});
|
|
23685
|
-
var RestateV2RecoverStuckWorkflowOutputSchema =
|
|
23686
|
-
acknowledged:
|
|
23757
|
+
var RestateV2RecoverStuckWorkflowOutputSchema = z339.object({
|
|
23758
|
+
acknowledged: z339.literal(true).meta({
|
|
23687
23759
|
description: "Always `true` on success. The blocked-error path carries structured details (reason, invocationIds) on `RESTATE_WORKFLOW_RETRY_BLOCKED`."
|
|
23688
23760
|
})
|
|
23689
23761
|
});
|
|
@@ -23718,16 +23790,16 @@ var searchV2Contract = {
|
|
|
23718
23790
|
};
|
|
23719
23791
|
|
|
23720
23792
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/settings.v2.contract.ts
|
|
23721
|
-
import { z as
|
|
23793
|
+
import { z as z356 } from "zod";
|
|
23722
23794
|
|
|
23723
23795
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/settings.v2.list.schema.ts
|
|
23724
|
-
import { z as
|
|
23725
|
-
var SettingV2ItemSchema =
|
|
23726
|
-
key:
|
|
23796
|
+
import { z as z340 } from "zod";
|
|
23797
|
+
var SettingV2ItemSchema = z340.object({
|
|
23798
|
+
key: z340.string().meta({
|
|
23727
23799
|
description: "The unique key identifying the setting",
|
|
23728
23800
|
examples: ["BASE_CURRENCY", "SYSTEM_ADDRESS", "SYSTEM_ADDONS_SKIPPED"]
|
|
23729
23801
|
}),
|
|
23730
|
-
value:
|
|
23802
|
+
value: z340.string().meta({
|
|
23731
23803
|
description: "The value of the setting",
|
|
23732
23804
|
examples: ["EUR", "0x..."]
|
|
23733
23805
|
}),
|
|
@@ -23748,31 +23820,31 @@ var SettingsV2ListInputSchema = createCollectionInputSchema(SETTINGS_COLLECTION_
|
|
|
23748
23820
|
var SettingsV2ListOutputSchema = createPaginatedResponse(SettingV2ItemSchema);
|
|
23749
23821
|
|
|
23750
23822
|
// ../../packages/core/validation/src/asset-class-definition.ts
|
|
23751
|
-
import { z as
|
|
23752
|
-
var AssetClassDefinitionSchema =
|
|
23753
|
-
id:
|
|
23754
|
-
name:
|
|
23755
|
-
description:
|
|
23756
|
-
slug:
|
|
23757
|
-
isSystem:
|
|
23758
|
-
organizationId:
|
|
23759
|
-
createdBy:
|
|
23823
|
+
import { z as z341 } from "zod";
|
|
23824
|
+
var AssetClassDefinitionSchema = z341.object({
|
|
23825
|
+
id: z341.string().min(1),
|
|
23826
|
+
name: z341.string().min(1).max(255),
|
|
23827
|
+
description: z341.string().max(1000).nullable(),
|
|
23828
|
+
slug: z341.string().min(1).max(255),
|
|
23829
|
+
isSystem: z341.boolean(),
|
|
23830
|
+
organizationId: z341.string().nullable(),
|
|
23831
|
+
createdBy: z341.string().nullable(),
|
|
23760
23832
|
createdAt: timestamp(),
|
|
23761
23833
|
updatedAt: timestamp()
|
|
23762
23834
|
});
|
|
23763
23835
|
|
|
23764
23836
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.contract.ts
|
|
23765
|
-
import { z as
|
|
23837
|
+
import { z as z346 } from "zod";
|
|
23766
23838
|
|
|
23767
23839
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.create.schema.ts
|
|
23768
|
-
import { z as
|
|
23769
|
-
var CreateAssetClassInputSchema =
|
|
23770
|
-
name:
|
|
23771
|
-
description:
|
|
23840
|
+
import { z as z342 } from "zod";
|
|
23841
|
+
var CreateAssetClassInputSchema = z342.object({
|
|
23842
|
+
name: z342.string().min(1).max(255).meta({ description: "Display name for the asset class", examples: ["Derivatives"] }),
|
|
23843
|
+
description: z342.string().max(1000).nullable().optional().meta({
|
|
23772
23844
|
description: "Optional description for the asset class",
|
|
23773
23845
|
examples: ["Financial instruments whose value derives from underlying assets"]
|
|
23774
23846
|
}),
|
|
23775
|
-
slug:
|
|
23847
|
+
slug: z342.string().min(1).max(255).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Slug must be kebab-case").optional().meta({
|
|
23776
23848
|
description: "URL-safe identifier. Auto-derived from name if not provided.",
|
|
23777
23849
|
examples: ["derivatives"]
|
|
23778
23850
|
})
|
|
@@ -23781,9 +23853,9 @@ var CreateAssetClassInputSchema = z341.object({
|
|
|
23781
23853
|
});
|
|
23782
23854
|
|
|
23783
23855
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.delete.schema.ts
|
|
23784
|
-
import { z as
|
|
23785
|
-
var DeleteAssetClassInputSchema =
|
|
23786
|
-
id:
|
|
23856
|
+
import { z as z343 } from "zod";
|
|
23857
|
+
var DeleteAssetClassInputSchema = z343.object({
|
|
23858
|
+
id: z343.string().min(1).meta({ description: "Asset class definition ID" })
|
|
23787
23859
|
});
|
|
23788
23860
|
|
|
23789
23861
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.list.schema.ts
|
|
@@ -23800,18 +23872,18 @@ var AssetClassDefinitionsV2ListInputSchema = createCollectionInputSchema(ASSET_C
|
|
|
23800
23872
|
var AssetClassDefinitionsV2ListOutputSchema = createPaginatedResponse(AssetClassDefinitionSchema);
|
|
23801
23873
|
|
|
23802
23874
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.read.schema.ts
|
|
23803
|
-
import { z as
|
|
23804
|
-
var ReadAssetClassInputSchema =
|
|
23805
|
-
id:
|
|
23875
|
+
import { z as z344 } from "zod";
|
|
23876
|
+
var ReadAssetClassInputSchema = z344.object({
|
|
23877
|
+
id: z344.string().min(1).meta({ description: "Asset class definition ID" })
|
|
23806
23878
|
});
|
|
23807
23879
|
|
|
23808
23880
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.update.schema.ts
|
|
23809
|
-
import { z as
|
|
23810
|
-
var UpdateAssetClassInputSchema =
|
|
23811
|
-
id:
|
|
23812
|
-
name:
|
|
23813
|
-
description:
|
|
23814
|
-
slug:
|
|
23881
|
+
import { z as z345 } from "zod";
|
|
23882
|
+
var UpdateAssetClassInputSchema = z345.object({
|
|
23883
|
+
id: z345.string().min(1).meta({ description: "Asset class definition ID" }),
|
|
23884
|
+
name: z345.string().min(1).max(255).optional().meta({ description: "Updated display name" }),
|
|
23885
|
+
description: z345.string().max(1000).nullable().optional().meta({ description: "Updated description" }),
|
|
23886
|
+
slug: z345.string().min(1).max(255).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Slug must be kebab-case").optional().meta({ description: "Updated slug" })
|
|
23815
23887
|
}).meta({
|
|
23816
23888
|
description: "Input schema for updating an asset class definition"
|
|
23817
23889
|
});
|
|
@@ -23844,7 +23916,7 @@ var update6 = v2Contract.route({
|
|
|
23844
23916
|
description: "Update an existing asset class definition.",
|
|
23845
23917
|
successDescription: "Asset class definition updated successfully.",
|
|
23846
23918
|
tags: [V2_TAG.assetClassDefinitions]
|
|
23847
|
-
}).input(v2Input.paramsBody(
|
|
23919
|
+
}).input(v2Input.paramsBody(z346.object({ id: UpdateAssetClassInputSchema.shape.id }), z346.object(UpdateAssetClassInputSchema.shape).omit({ id: true }))).output(createSingleResponse(AssetClassDefinitionSchema));
|
|
23848
23920
|
var del7 = v2Contract.route({
|
|
23849
23921
|
method: "DELETE",
|
|
23850
23922
|
path: "/settings/asset-class-definitions/{id}",
|
|
@@ -23861,10 +23933,10 @@ var assetClassDefinitionsV2Contract = {
|
|
|
23861
23933
|
};
|
|
23862
23934
|
|
|
23863
23935
|
// ../../packages/core/validation/src/asset-type-template.ts
|
|
23864
|
-
import { z as
|
|
23936
|
+
import { z as z348 } from "zod";
|
|
23865
23937
|
|
|
23866
23938
|
// ../../packages/core/validation/src/asset-type-template-features.ts
|
|
23867
|
-
import { z as
|
|
23939
|
+
import { z as z347 } from "zod";
|
|
23868
23940
|
var tokenFeatureIds = [
|
|
23869
23941
|
"historical-balances",
|
|
23870
23942
|
"maturity-redemption",
|
|
@@ -23891,78 +23963,78 @@ var addonIds = [
|
|
|
23891
23963
|
"price-resolver",
|
|
23892
23964
|
"paymaster-signer"
|
|
23893
23965
|
];
|
|
23894
|
-
var tokenFeatureIdSchema =
|
|
23895
|
-
var addonIdSchema =
|
|
23966
|
+
var tokenFeatureIdSchema = z347.enum(tokenFeatureIds);
|
|
23967
|
+
var addonIdSchema = z347.enum(addonIds);
|
|
23896
23968
|
var tokenFeatureIdSet = new Set(tokenFeatureIds);
|
|
23897
23969
|
var CONFIGURABLE_FEATURES = new Set(addonRegistry.filter((a) => a.configurable && a.id.endsWith("-feature-factory")).map((a) => a.id.replace("-feature-factory", "")).filter((id) => tokenFeatureIdSet.has(id)));
|
|
23898
23970
|
|
|
23899
23971
|
// ../../packages/core/validation/src/asset-type-template.ts
|
|
23900
|
-
var metadataFieldMutability =
|
|
23901
|
-
var MetadataFieldBaseSchema =
|
|
23972
|
+
var metadataFieldMutability = z348.enum(["immutable", "restricted-mutable"]);
|
|
23973
|
+
var MetadataFieldBaseSchema = z348.object({
|
|
23902
23974
|
mutability: metadataFieldMutability,
|
|
23903
|
-
label:
|
|
23904
|
-
description:
|
|
23905
|
-
required:
|
|
23906
|
-
defaultValue:
|
|
23907
|
-
configurableInDesigner:
|
|
23975
|
+
label: z348.string().min(1),
|
|
23976
|
+
description: z348.string().optional(),
|
|
23977
|
+
required: z348.boolean().optional(),
|
|
23978
|
+
defaultValue: z348.string().optional(),
|
|
23979
|
+
configurableInDesigner: z348.boolean().optional()
|
|
23908
23980
|
});
|
|
23909
|
-
var MetadataFieldSchema =
|
|
23981
|
+
var MetadataFieldSchema = z348.discriminatedUnion("type", [
|
|
23910
23982
|
MetadataFieldBaseSchema.extend({
|
|
23911
|
-
type:
|
|
23912
|
-
minLength:
|
|
23913
|
-
maxLength:
|
|
23983
|
+
type: z348.literal("string"),
|
|
23984
|
+
minLength: z348.number().int().nonnegative().optional(),
|
|
23985
|
+
maxLength: z348.number().int().positive().optional()
|
|
23914
23986
|
}),
|
|
23915
23987
|
MetadataFieldBaseSchema.extend({
|
|
23916
|
-
type:
|
|
23917
|
-
lowerBound:
|
|
23918
|
-
upperBound:
|
|
23988
|
+
type: z348.literal("number"),
|
|
23989
|
+
lowerBound: z348.string().optional(),
|
|
23990
|
+
upperBound: z348.string().optional()
|
|
23919
23991
|
}),
|
|
23920
23992
|
MetadataFieldBaseSchema.extend({
|
|
23921
|
-
type:
|
|
23922
|
-
lowerBound:
|
|
23923
|
-
upperBound:
|
|
23993
|
+
type: z348.literal("date"),
|
|
23994
|
+
lowerBound: z348.string().optional(),
|
|
23995
|
+
upperBound: z348.string().optional()
|
|
23924
23996
|
}),
|
|
23925
23997
|
MetadataFieldBaseSchema.extend({
|
|
23926
|
-
type:
|
|
23927
|
-
options:
|
|
23998
|
+
type: z348.literal("enum"),
|
|
23999
|
+
options: z348.array(z348.string().min(1)).min(1).optional()
|
|
23928
24000
|
}),
|
|
23929
24001
|
MetadataFieldBaseSchema.extend({
|
|
23930
|
-
type:
|
|
24002
|
+
type: z348.literal("isin")
|
|
23931
24003
|
}),
|
|
23932
24004
|
MetadataFieldBaseSchema.extend({
|
|
23933
|
-
type:
|
|
24005
|
+
type: z348.literal("address")
|
|
23934
24006
|
})
|
|
23935
24007
|
]);
|
|
23936
|
-
var MetadataSchemaSchema =
|
|
23937
|
-
var FeatureConfigPropertySchema =
|
|
23938
|
-
type:
|
|
23939
|
-
required:
|
|
23940
|
-
value:
|
|
23941
|
-
upperBound:
|
|
23942
|
-
});
|
|
23943
|
-
var FeatureConfigEntryValueSchema =
|
|
23944
|
-
var FeatureConfigEntrySchema =
|
|
23945
|
-
var FeatureConfigSchema =
|
|
24008
|
+
var MetadataSchemaSchema = z348.record(z348.string().min(1), MetadataFieldSchema);
|
|
24009
|
+
var FeatureConfigPropertySchema = z348.object({
|
|
24010
|
+
type: z348.enum(["string", "number", "date"]).optional(),
|
|
24011
|
+
required: z348.boolean().optional(),
|
|
24012
|
+
value: z348.union([z348.string(), z348.number()]).optional(),
|
|
24013
|
+
upperBound: z348.number().optional()
|
|
24014
|
+
});
|
|
24015
|
+
var FeatureConfigEntryValueSchema = z348.union([z348.boolean(), FeatureConfigPropertySchema, z348.null()]);
|
|
24016
|
+
var FeatureConfigEntrySchema = z348.record(z348.string(), FeatureConfigEntryValueSchema);
|
|
24017
|
+
var FeatureConfigSchema = z348.record(z348.string().min(1), FeatureConfigEntrySchema);
|
|
23946
24018
|
var AssetClassFilterSchema = assetClassSlug().meta({
|
|
23947
24019
|
description: "Asset class slug filter for template queries"
|
|
23948
24020
|
});
|
|
23949
|
-
var AssetTypeTemplateSchema =
|
|
23950
|
-
id:
|
|
23951
|
-
name:
|
|
23952
|
-
description:
|
|
24021
|
+
var AssetTypeTemplateSchema = z348.object({
|
|
24022
|
+
id: z348.string().min(1),
|
|
24023
|
+
name: z348.string().min(1).max(255),
|
|
24024
|
+
description: z348.string().nullable(),
|
|
23953
24025
|
assetClass: assetClassSlug(),
|
|
23954
|
-
typeId:
|
|
24026
|
+
typeId: z348.string().min(1),
|
|
23955
24027
|
baseAssetType: assetType(),
|
|
23956
|
-
isSystem:
|
|
23957
|
-
isDraft:
|
|
23958
|
-
organizationId:
|
|
23959
|
-
version:
|
|
23960
|
-
requiredFeatures:
|
|
24028
|
+
isSystem: z348.boolean(),
|
|
24029
|
+
isDraft: z348.boolean(),
|
|
24030
|
+
organizationId: z348.string().nullable(),
|
|
24031
|
+
version: z348.number().int().min(1),
|
|
24032
|
+
requiredFeatures: z348.array(tokenFeatureIdSchema),
|
|
23961
24033
|
metadataSchema: MetadataSchemaSchema.nullable(),
|
|
23962
24034
|
featureConfig: FeatureConfigSchema.nullable(),
|
|
23963
|
-
hiddenFromSidebar:
|
|
23964
|
-
assetClassId:
|
|
23965
|
-
createdBy:
|
|
24035
|
+
hiddenFromSidebar: z348.boolean().optional(),
|
|
24036
|
+
assetClassId: z348.string().nullable().optional(),
|
|
24037
|
+
createdBy: z348.string().nullable(),
|
|
23966
24038
|
createdAt: timestamp(),
|
|
23967
24039
|
updatedAt: timestamp()
|
|
23968
24040
|
}).meta({
|
|
@@ -23970,20 +24042,20 @@ var AssetTypeTemplateSchema = z347.object({
|
|
|
23970
24042
|
});
|
|
23971
24043
|
|
|
23972
24044
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.create.schema.ts
|
|
23973
|
-
import { z as
|
|
23974
|
-
var CreateInputSchema =
|
|
23975
|
-
name:
|
|
23976
|
-
description:
|
|
23977
|
-
typeId:
|
|
24045
|
+
import { z as z349 } from "zod";
|
|
24046
|
+
var CreateInputSchema = z349.object({
|
|
24047
|
+
name: z349.string().trim().min(1).max(255),
|
|
24048
|
+
description: z349.string().optional(),
|
|
24049
|
+
typeId: z349.string().min(1).meta({ description: "Concrete asset type slug (e.g. 'bond', 'kbc-deposit')" }),
|
|
23978
24050
|
baseAssetType: assetType().optional().meta({
|
|
23979
24051
|
description: "Concrete deployable asset type that determines pricing fields. " + "Derived automatically from typeId or asset class when omitted.",
|
|
23980
24052
|
examples: ["bond", "deposit"]
|
|
23981
24053
|
}),
|
|
23982
|
-
assetClassId:
|
|
24054
|
+
assetClassId: z349.string().min(1).optional().meta({
|
|
23983
24055
|
description: "Reference to an asset class definition. When provided, links the template to a managed asset class.",
|
|
23984
24056
|
examples: ["acd-system-fixed-income"]
|
|
23985
24057
|
}),
|
|
23986
|
-
requiredFeatures:
|
|
24058
|
+
requiredFeatures: z349.array(tokenFeatureIdSchema).default([]),
|
|
23987
24059
|
metadataSchema: MetadataSchemaSchema.optional(),
|
|
23988
24060
|
featureConfig: FeatureConfigSchema.optional()
|
|
23989
24061
|
}).meta({
|
|
@@ -23991,15 +24063,15 @@ var CreateInputSchema = z348.object({
|
|
|
23991
24063
|
});
|
|
23992
24064
|
|
|
23993
24065
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.contract.ts
|
|
23994
|
-
import { z as
|
|
24066
|
+
import { z as z354 } from "zod";
|
|
23995
24067
|
|
|
23996
24068
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.delete.schema.ts
|
|
23997
|
-
import { z as
|
|
23998
|
-
var DeleteInputSchema2 =
|
|
23999
|
-
id:
|
|
24069
|
+
import { z as z350 } from "zod";
|
|
24070
|
+
var DeleteInputSchema2 = z350.object({
|
|
24071
|
+
id: z350.string().min(1).meta({ description: "Template ID" })
|
|
24000
24072
|
});
|
|
24001
|
-
var DeleteOutputSchema2 =
|
|
24002
|
-
success:
|
|
24073
|
+
var DeleteOutputSchema2 = z350.object({
|
|
24074
|
+
success: z350.boolean()
|
|
24003
24075
|
});
|
|
24004
24076
|
|
|
24005
24077
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.list.schema.ts
|
|
@@ -24019,36 +24091,36 @@ var AssetTypeTemplatesV2ListInputSchema = createCollectionInputSchema(ASSET_TYPE
|
|
|
24019
24091
|
var AssetTypeTemplatesV2ListOutputSchema = createPaginatedResponse(AssetTypeTemplateSchema);
|
|
24020
24092
|
|
|
24021
24093
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.publish.schema.ts
|
|
24022
|
-
import { z as
|
|
24023
|
-
var PublishInputSchema2 =
|
|
24024
|
-
id:
|
|
24094
|
+
import { z as z351 } from "zod";
|
|
24095
|
+
var PublishInputSchema2 = z351.object({
|
|
24096
|
+
id: z351.string().min(1).meta({ description: "Template ID" })
|
|
24025
24097
|
});
|
|
24026
24098
|
|
|
24027
24099
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.read.schema.ts
|
|
24028
|
-
import { z as
|
|
24029
|
-
var ReadInputSchema2 =
|
|
24030
|
-
id:
|
|
24100
|
+
import { z as z352 } from "zod";
|
|
24101
|
+
var ReadInputSchema2 = z352.object({
|
|
24102
|
+
id: z352.string().min(1).meta({ description: "Template ID" })
|
|
24031
24103
|
});
|
|
24032
24104
|
|
|
24033
24105
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.update.schema.ts
|
|
24034
|
-
import { z as
|
|
24035
|
-
var UpdateInputSchema2 =
|
|
24036
|
-
id:
|
|
24037
|
-
name:
|
|
24038
|
-
description:
|
|
24039
|
-
typeId:
|
|
24106
|
+
import { z as z353 } from "zod";
|
|
24107
|
+
var UpdateInputSchema2 = z353.object({
|
|
24108
|
+
id: z353.string().min(1).meta({ description: "Template ID" }),
|
|
24109
|
+
name: z353.string().trim().min(1).max(255).optional(),
|
|
24110
|
+
description: z353.string().nullable().optional(),
|
|
24111
|
+
typeId: z353.string().min(1).meta({ description: "Concrete asset type slug (e.g. 'bond', 'kbc-deposit')" }).optional(),
|
|
24040
24112
|
baseAssetType: assetType().optional().meta({
|
|
24041
24113
|
description: "Concrete deployable asset type. Cannot be changed after publish.",
|
|
24042
24114
|
examples: ["bond", "deposit"]
|
|
24043
24115
|
}),
|
|
24044
|
-
assetClassId:
|
|
24116
|
+
assetClassId: z353.string().min(1).nullable().optional().meta({
|
|
24045
24117
|
description: "Reference to an asset class definition. Omit to leave unchanged. " + "Set to null to clear the link and revert to the system class mapping — " + `only valid when typeId is a recognized factory type (${assetFactoryTypeIds.join(", ")}). ` + "For org templates with custom typeId slugs, provide a valid assetClassId instead of null.",
|
|
24046
24118
|
examples: ["acd-system-fixed-income"]
|
|
24047
24119
|
}),
|
|
24048
|
-
requiredFeatures:
|
|
24120
|
+
requiredFeatures: z353.array(tokenFeatureIdSchema).optional(),
|
|
24049
24121
|
metadataSchema: MetadataSchemaSchema.nullable().optional(),
|
|
24050
24122
|
featureConfig: FeatureConfigSchema.nullable().optional(),
|
|
24051
|
-
hiddenFromSidebar:
|
|
24123
|
+
hiddenFromSidebar: z353.boolean().optional()
|
|
24052
24124
|
}).meta({
|
|
24053
24125
|
description: "Input schema for updating an asset type template"
|
|
24054
24126
|
});
|
|
@@ -24081,7 +24153,7 @@ var update7 = v2Contract.route({
|
|
|
24081
24153
|
description: "Update an existing asset type template.",
|
|
24082
24154
|
successDescription: "Template updated successfully.",
|
|
24083
24155
|
tags: [V2_TAG.assetTypeTemplates]
|
|
24084
|
-
}).input(v2Input.paramsBody(
|
|
24156
|
+
}).input(v2Input.paramsBody(z354.object({ id: UpdateInputSchema2.shape.id }), z354.object(UpdateInputSchema2.shape).omit({ id: true }))).output(createSingleResponse(AssetTypeTemplateSchema));
|
|
24085
24157
|
var publish2 = v2Contract.route({
|
|
24086
24158
|
method: "PUT",
|
|
24087
24159
|
path: "/settings/asset-type-templates/{id}/publish",
|
|
@@ -24106,7 +24178,7 @@ var assetTypeTemplatesV2Contract = {
|
|
|
24106
24178
|
};
|
|
24107
24179
|
|
|
24108
24180
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/compliance-templates/compliance-templates.v2.contract.ts
|
|
24109
|
-
import { z as
|
|
24181
|
+
import { z as z355 } from "zod";
|
|
24110
24182
|
|
|
24111
24183
|
// ../../packages/dalp/api-contract/src/routes/v2/settings/compliance-templates/compliance-templates.v2.list.schema.ts
|
|
24112
24184
|
var COMPLIANCE_TEMPLATES_COLLECTION_FIELDS = {
|
|
@@ -24152,7 +24224,7 @@ var update8 = v2Contract.route({
|
|
|
24152
24224
|
description: "Update an existing compliance template.",
|
|
24153
24225
|
successDescription: "Template updated successfully.",
|
|
24154
24226
|
tags: [V2_TAG.complianceTemplates]
|
|
24155
|
-
}).input(v2Input.paramsBody(
|
|
24227
|
+
}).input(v2Input.paramsBody(z355.object({ id: UpdateInputSchema.shape.id }), z355.object(UpdateInputSchema.shape).omit({ id: true }))).output(createSingleResponse(ComplianceTemplateSchema));
|
|
24156
24228
|
var publish3 = v2Contract.route({
|
|
24157
24229
|
method: "PUT",
|
|
24158
24230
|
path: "/settings/compliance-templates/{id}/publish",
|
|
@@ -24183,7 +24255,7 @@ var read18 = v2Contract.route({
|
|
|
24183
24255
|
description: "Read a single setting by key.",
|
|
24184
24256
|
successDescription: "Setting retrieved successfully.",
|
|
24185
24257
|
tags: [V2_TAG.settings]
|
|
24186
|
-
}).input(v2Input.params(SettingsReadSchema)).output(createSingleResponse(
|
|
24258
|
+
}).input(v2Input.params(SettingsReadSchema)).output(createSingleResponse(z356.object({ value: z356.string().nullable() })));
|
|
24187
24259
|
var list22 = v2Contract.route({
|
|
24188
24260
|
method: "GET",
|
|
24189
24261
|
path: "/settings",
|
|
@@ -24197,7 +24269,7 @@ var upsert4 = v2Contract.route({
|
|
|
24197
24269
|
description: "Create or update a setting by key.",
|
|
24198
24270
|
successDescription: "Setting upserted successfully.",
|
|
24199
24271
|
tags: [V2_TAG.settings]
|
|
24200
|
-
}).input(v2Input.body(SettingsUpsertSchema)).output(createSingleResponse(
|
|
24272
|
+
}).input(v2Input.body(SettingsUpsertSchema)).output(createSingleResponse(z356.object({ value: z356.string() })));
|
|
24201
24273
|
var del10 = v2Contract.route({
|
|
24202
24274
|
method: "DELETE",
|
|
24203
24275
|
path: "/settings/{key}",
|
|
@@ -24260,7 +24332,7 @@ var globalThemeSet2 = v2Contract.route({
|
|
|
24260
24332
|
description: "Set or clear the global theme organization.",
|
|
24261
24333
|
successDescription: "Global theme setting updated successfully.",
|
|
24262
24334
|
tags: [V2_TAG.settings]
|
|
24263
|
-
}).input(v2Input.body(GlobalThemeSetSchema)).output(createSingleResponse(
|
|
24335
|
+
}).input(v2Input.body(GlobalThemeSetSchema)).output(createSingleResponse(z356.object({ success: z356.boolean() })));
|
|
24264
24336
|
var settingsV2Contract = {
|
|
24265
24337
|
read: read18,
|
|
24266
24338
|
list: list22,
|
|
@@ -24286,40 +24358,40 @@ var settingsV2Contract = {
|
|
|
24286
24358
|
};
|
|
24287
24359
|
|
|
24288
24360
|
// ../../packages/dalp/api-contract/src/routes/v2/smart-wallets/smart-wallets.v2.schemas.ts
|
|
24289
|
-
import { z as
|
|
24290
|
-
var SmartWalletSignerSchema =
|
|
24291
|
-
signer:
|
|
24361
|
+
import { z as z357 } from "zod";
|
|
24362
|
+
var SmartWalletSignerSchema = z357.object({
|
|
24363
|
+
signer: z357.string(),
|
|
24292
24364
|
validatorAddress: ethereumAddress,
|
|
24293
|
-
weight:
|
|
24365
|
+
weight: z357.string().nullable()
|
|
24294
24366
|
});
|
|
24295
|
-
var SmartWalletValidatorSchema =
|
|
24367
|
+
var SmartWalletValidatorSchema = z357.object({
|
|
24296
24368
|
moduleAddress: ethereumAddress,
|
|
24297
|
-
moduleTypeId:
|
|
24298
|
-
isInstalled:
|
|
24369
|
+
moduleTypeId: z357.string().nullable(),
|
|
24370
|
+
isInstalled: z357.boolean()
|
|
24299
24371
|
});
|
|
24300
|
-
var SmartWalletSchema =
|
|
24372
|
+
var SmartWalletSchema = z357.object({
|
|
24301
24373
|
address: ethereumAddress,
|
|
24302
24374
|
factory: ethereumAddress,
|
|
24303
24375
|
owner: ethereumAddress,
|
|
24304
24376
|
defaultValidator: ethereumAddress.nullable(),
|
|
24305
24377
|
identity: ethereumAddress.nullable(),
|
|
24306
24378
|
system: ethereumAddress.nullable(),
|
|
24307
|
-
threshold:
|
|
24308
|
-
validators:
|
|
24309
|
-
signers:
|
|
24310
|
-
description:
|
|
24311
|
-
isDefaultWallet:
|
|
24379
|
+
threshold: z357.string().nullable(),
|
|
24380
|
+
validators: z357.array(SmartWalletValidatorSchema),
|
|
24381
|
+
signers: z357.array(SmartWalletSignerSchema),
|
|
24382
|
+
description: z357.string().nullable(),
|
|
24383
|
+
isDefaultWallet: z357.boolean(),
|
|
24312
24384
|
createdAt: timestamp()
|
|
24313
24385
|
});
|
|
24314
24386
|
var UINT64_MAX = 18446744073709551615n;
|
|
24315
24387
|
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
24316
|
-
var MultisigSignerConfigSchema =
|
|
24388
|
+
var MultisigSignerConfigSchema = z357.object({
|
|
24317
24389
|
address: ethereumAddress.refine((v) => v.toLowerCase() !== ZERO_ADDRESS, "Signer address must not be the zero address. A zero-address signer can never produce a valid signature."),
|
|
24318
|
-
weight:
|
|
24390
|
+
weight: z357.string().regex(/^\d+$/, "Weight must be a positive decimal integer string").refine((v) => BigInt(v) > 0n, "Weight must be greater than 0").refine((v) => BigInt(v) <= UINT64_MAX, "Weight must fit in uint64 (max 18446744073709551615)").default("1")
|
|
24319
24391
|
});
|
|
24320
|
-
var MultisigConfigSchema =
|
|
24321
|
-
signers:
|
|
24322
|
-
threshold:
|
|
24392
|
+
var MultisigConfigSchema = z357.object({
|
|
24393
|
+
signers: z357.array(MultisigSignerConfigSchema).min(1),
|
|
24394
|
+
threshold: z357.string().regex(/^\d+$/, "Threshold must be a positive decimal integer string").refine((v) => BigInt(v) > 0n, "Threshold must be greater than 0").refine((v) => BigInt(v) <= UINT64_MAX, "Threshold must fit in uint64 (max 18446744073709551615)")
|
|
24323
24395
|
}).refine((data) => {
|
|
24324
24396
|
const addresses = data.signers.map((s) => s.address.toLowerCase());
|
|
24325
24397
|
return new Set(addresses).size === addresses.length;
|
|
@@ -24327,24 +24399,24 @@ var MultisigConfigSchema = z356.object({
|
|
|
24327
24399
|
const totalWeight = data.signers.reduce((sum, s) => sum + BigInt(s.weight), 0n);
|
|
24328
24400
|
return totalWeight >= BigInt(data.threshold);
|
|
24329
24401
|
}, "Total signer weights must be greater than or equal to the threshold. Otherwise no combination of signatures can ever meet the threshold.");
|
|
24330
|
-
var SmartWalletCreateInputSchema =
|
|
24331
|
-
description:
|
|
24332
|
-
isDefaultWallet:
|
|
24402
|
+
var SmartWalletCreateInputSchema = z357.object({
|
|
24403
|
+
description: z357.string().optional(),
|
|
24404
|
+
isDefaultWallet: z357.boolean().optional(),
|
|
24333
24405
|
multisig: MultisigConfigSchema.optional()
|
|
24334
24406
|
});
|
|
24335
|
-
var SmartWalletUpdateInputSchema =
|
|
24336
|
-
description:
|
|
24337
|
-
isDefaultWallet:
|
|
24407
|
+
var SmartWalletUpdateInputSchema = z357.object({
|
|
24408
|
+
description: z357.string().optional(),
|
|
24409
|
+
isDefaultWallet: z357.boolean().optional()
|
|
24338
24410
|
});
|
|
24339
|
-
var SmartWalletGasStatusSchema =
|
|
24340
|
-
hasPaymaster:
|
|
24341
|
-
walletBalance:
|
|
24342
|
-
chainZeroGas:
|
|
24411
|
+
var SmartWalletGasStatusSchema = z357.object({
|
|
24412
|
+
hasPaymaster: z357.boolean(),
|
|
24413
|
+
walletBalance: z357.string(),
|
|
24414
|
+
chainZeroGas: z357.boolean()
|
|
24343
24415
|
});
|
|
24344
|
-
var SmartWalletGasStatusQuerySchema =
|
|
24416
|
+
var SmartWalletGasStatusQuerySchema = z357.object({
|
|
24345
24417
|
systemAddress: ethereumAddress.optional()
|
|
24346
24418
|
});
|
|
24347
|
-
var SmartWalletAddressParamsSchema =
|
|
24419
|
+
var SmartWalletAddressParamsSchema = z357.object({
|
|
24348
24420
|
address: ethereumAddress
|
|
24349
24421
|
});
|
|
24350
24422
|
|
|
@@ -24363,9 +24435,9 @@ var SmartWalletsV2ListInputSchema = createCollectionInputSchema(SMART_WALLETS_CO
|
|
|
24363
24435
|
var SmartWalletsV2ListOutputSchema = createPaginatedResponse(SmartWalletSchema);
|
|
24364
24436
|
|
|
24365
24437
|
// ../../packages/dalp/api-contract/src/routes/v2/smart-wallets/smart-wallets.v2.approvals.schemas.ts
|
|
24366
|
-
import { z as
|
|
24367
|
-
var hexHash =
|
|
24368
|
-
var MultisigApprovalStatusSchema =
|
|
24438
|
+
import { z as z358 } from "zod";
|
|
24439
|
+
var hexHash = z358.string().regex(/^0x[\da-fA-F]{64}$/, "Must be a 66-character hex string (0x + 64 hex chars)").transform((v) => v);
|
|
24440
|
+
var MultisigApprovalStatusSchema = z358.enum([
|
|
24369
24441
|
"pending",
|
|
24370
24442
|
"submitted",
|
|
24371
24443
|
"executed",
|
|
@@ -24373,45 +24445,45 @@ var MultisigApprovalStatusSchema = z357.enum([
|
|
|
24373
24445
|
"cancelled",
|
|
24374
24446
|
"failed"
|
|
24375
24447
|
]);
|
|
24376
|
-
var MultisigSignatureSchema =
|
|
24377
|
-
id:
|
|
24448
|
+
var MultisigSignatureSchema = z358.object({
|
|
24449
|
+
id: z358.string(),
|
|
24378
24450
|
signerAddress: ethereumAddress,
|
|
24379
|
-
signature:
|
|
24380
|
-
weight:
|
|
24451
|
+
signature: z358.string(),
|
|
24452
|
+
weight: z358.string(),
|
|
24381
24453
|
signedAt: timestamp()
|
|
24382
24454
|
});
|
|
24383
|
-
var MultisigApprovalSchema =
|
|
24384
|
-
id:
|
|
24385
|
-
userOpHash:
|
|
24455
|
+
var MultisigApprovalSchema = z358.object({
|
|
24456
|
+
id: z358.string(),
|
|
24457
|
+
userOpHash: z358.string(),
|
|
24386
24458
|
walletAddress: ethereumAddress,
|
|
24387
|
-
chainId:
|
|
24388
|
-
organizationId:
|
|
24459
|
+
chainId: z358.number().int(),
|
|
24460
|
+
organizationId: z358.string(),
|
|
24389
24461
|
initiatorAddress: ethereumAddress,
|
|
24390
|
-
threshold:
|
|
24391
|
-
currentWeight:
|
|
24392
|
-
callData:
|
|
24393
|
-
description:
|
|
24462
|
+
threshold: z358.string(),
|
|
24463
|
+
currentWeight: z358.string(),
|
|
24464
|
+
callData: z358.string(),
|
|
24465
|
+
description: z358.string().nullable(),
|
|
24394
24466
|
status: MultisigApprovalStatusSchema,
|
|
24395
24467
|
expiresAt: timestamp().nullable(),
|
|
24396
24468
|
createdAt: timestamp(),
|
|
24397
24469
|
updatedAt: timestamp(),
|
|
24398
|
-
signatures:
|
|
24470
|
+
signatures: z358.array(MultisigSignatureSchema)
|
|
24399
24471
|
});
|
|
24400
|
-
var ApprovalAddressParamsSchema =
|
|
24472
|
+
var ApprovalAddressParamsSchema = z358.object({
|
|
24401
24473
|
address: ethereumAddress
|
|
24402
24474
|
});
|
|
24403
|
-
var ApprovalDetailParamsSchema =
|
|
24475
|
+
var ApprovalDetailParamsSchema = z358.object({
|
|
24404
24476
|
address: ethereumAddress,
|
|
24405
24477
|
userOpHash: hexHash
|
|
24406
24478
|
});
|
|
24407
|
-
var CreateApprovalInputSchema =
|
|
24479
|
+
var CreateApprovalInputSchema = z358.object({
|
|
24408
24480
|
userOpHash: hexHash,
|
|
24409
|
-
threshold:
|
|
24410
|
-
callData:
|
|
24411
|
-
description:
|
|
24412
|
-
expiresAt:
|
|
24481
|
+
threshold: z358.string().regex(/^\d+$/, "Threshold must be a positive decimal integer string").refine((v) => BigInt(v) > 0n, "Threshold must be greater than 0").optional(),
|
|
24482
|
+
callData: z358.string().regex(/^0x[\da-fA-F]*$/, "callData must be a hex string starting with 0x"),
|
|
24483
|
+
description: z358.string().optional(),
|
|
24484
|
+
expiresAt: z358.iso.datetime().optional()
|
|
24413
24485
|
});
|
|
24414
|
-
var SignApprovalInputSchema =
|
|
24486
|
+
var SignApprovalInputSchema = z358.object({});
|
|
24415
24487
|
|
|
24416
24488
|
// ../../packages/dalp/api-contract/src/routes/v2/smart-wallets/smart-wallets.v2.approvals.list.schema.ts
|
|
24417
24489
|
var SMART_WALLET_APPROVALS_COLLECTION_FIELDS = {
|
|
@@ -24465,16 +24537,16 @@ var smartWalletsV2ApprovalsContract = {
|
|
|
24465
24537
|
};
|
|
24466
24538
|
|
|
24467
24539
|
// ../../packages/dalp/api-contract/src/routes/v2/smart-wallets/smart-wallets.v2.modules.contract.ts
|
|
24468
|
-
import { z as
|
|
24540
|
+
import { z as z359 } from "zod";
|
|
24469
24541
|
var TAGS23 = [V2_TAG.smartWallets];
|
|
24470
|
-
var InstallModuleParamsSchema =
|
|
24542
|
+
var InstallModuleParamsSchema = z359.object({
|
|
24471
24543
|
address: ethereumAddress
|
|
24472
24544
|
});
|
|
24473
|
-
var InstallModuleBodySchema =
|
|
24545
|
+
var InstallModuleBodySchema = z359.object({
|
|
24474
24546
|
moduleAddress: ethereumAddress,
|
|
24475
|
-
initData:
|
|
24547
|
+
initData: z359.string().optional()
|
|
24476
24548
|
});
|
|
24477
|
-
var UninstallModuleParamsSchema =
|
|
24549
|
+
var UninstallModuleParamsSchema = z359.object({
|
|
24478
24550
|
address: ethereumAddress,
|
|
24479
24551
|
moduleAddress: ethereumAddress
|
|
24480
24552
|
});
|
|
@@ -24498,7 +24570,7 @@ var smartWalletsV2ModulesContract = {
|
|
|
24498
24570
|
};
|
|
24499
24571
|
|
|
24500
24572
|
// ../../packages/dalp/api-contract/src/routes/v2/smart-wallets/smart-wallets.v2.signers.contract.ts
|
|
24501
|
-
import { z as
|
|
24573
|
+
import { z as z360 } from "zod";
|
|
24502
24574
|
|
|
24503
24575
|
// ../../packages/dalp/api-contract/src/routes/v2/smart-wallets/smart-wallets.v2.signers.list.schema.ts
|
|
24504
24576
|
var SMART_WALLET_SIGNERS_COLLECTION_FIELDS = {
|
|
@@ -24515,17 +24587,17 @@ var SmartWalletSignersV2ListOutputSchema = createPaginatedResponse(SmartWalletSi
|
|
|
24515
24587
|
|
|
24516
24588
|
// ../../packages/dalp/api-contract/src/routes/v2/smart-wallets/smart-wallets.v2.signers.contract.ts
|
|
24517
24589
|
var TAGS24 = [V2_TAG.smartWallets];
|
|
24518
|
-
var ListSignersParamsSchema =
|
|
24590
|
+
var ListSignersParamsSchema = z360.object({
|
|
24519
24591
|
address: ethereumAddress
|
|
24520
24592
|
});
|
|
24521
|
-
var AddSignerParamsSchema =
|
|
24593
|
+
var AddSignerParamsSchema = z360.object({
|
|
24522
24594
|
address: ethereumAddress
|
|
24523
24595
|
});
|
|
24524
|
-
var AddSignerBodySchema =
|
|
24596
|
+
var AddSignerBodySchema = z360.object({
|
|
24525
24597
|
signer: ethereumAddress,
|
|
24526
24598
|
weight: apiIntegerBigInt.refine((value2) => value2 > 0n && value2 <= 18446744073709551615n, "Weight must be between 1 and 2^64-1").default(1n)
|
|
24527
24599
|
});
|
|
24528
|
-
var RemoveSignerParamsSchema =
|
|
24600
|
+
var RemoveSignerParamsSchema = z360.object({
|
|
24529
24601
|
address: ethereumAddress,
|
|
24530
24602
|
signer: ethereumAddress
|
|
24531
24603
|
});
|
|
@@ -24557,13 +24629,13 @@ var smartWalletsV2SignersContract = {
|
|
|
24557
24629
|
};
|
|
24558
24630
|
|
|
24559
24631
|
// ../../packages/dalp/api-contract/src/routes/v2/smart-wallets/smart-wallets.v2.threshold.contract.ts
|
|
24560
|
-
import { z as
|
|
24632
|
+
import { z as z361 } from "zod";
|
|
24561
24633
|
var TAGS25 = [V2_TAG.smartWallets];
|
|
24562
|
-
var SetThresholdParamsSchema =
|
|
24634
|
+
var SetThresholdParamsSchema = z361.object({
|
|
24563
24635
|
address: ethereumAddress
|
|
24564
24636
|
});
|
|
24565
|
-
var SetThresholdBodySchema =
|
|
24566
|
-
threshold:
|
|
24637
|
+
var SetThresholdBodySchema = z361.object({
|
|
24638
|
+
threshold: z361.string().regex(/^\d+$/, "Threshold must be a positive decimal integer string").refine((v) => BigInt(v) > 0n && BigInt(v) <= 18446744073709551615n, "Threshold must be between 1 and 2^64-1")
|
|
24567
24639
|
});
|
|
24568
24640
|
var setThreshold = v2Contract.route({
|
|
24569
24641
|
method: "PUT",
|
|
@@ -24632,16 +24704,16 @@ var smartWalletsV2Contract = {
|
|
|
24632
24704
|
};
|
|
24633
24705
|
|
|
24634
24706
|
// ../../packages/dalp/api-contract/src/routes/v2/system/access-manager/access-manager.v2.contract.ts
|
|
24635
|
-
import { z as
|
|
24707
|
+
import { z as z363 } from "zod";
|
|
24636
24708
|
|
|
24637
24709
|
// ../../packages/dalp/api-contract/src/routes/v2/system/access-manager/access-manager.v2.list.schema.ts
|
|
24638
|
-
import { z as
|
|
24639
|
-
var SystemRolesV2ItemSchema =
|
|
24710
|
+
import { z as z362 } from "zod";
|
|
24711
|
+
var SystemRolesV2ItemSchema = z362.object({
|
|
24640
24712
|
account: ethereumAddress.meta({
|
|
24641
24713
|
description: "The account address",
|
|
24642
24714
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
24643
24715
|
}),
|
|
24644
|
-
roles:
|
|
24716
|
+
roles: z362.array(accessControlRole).meta({ description: "The roles of the account", examples: [["admin", "claimIssuer"]] })
|
|
24645
24717
|
});
|
|
24646
24718
|
var SYSTEM_ROLES_COLLECTION_FIELDS = {
|
|
24647
24719
|
account: addressField(),
|
|
@@ -24669,21 +24741,21 @@ var rolesRead = v2Contract.route({
|
|
|
24669
24741
|
description: "Get the roles assigned to a specific account.",
|
|
24670
24742
|
successDescription: "Roles retrieved successfully.",
|
|
24671
24743
|
tags: [V2_TAG.accessManager]
|
|
24672
|
-
}).input(v2Input.params(
|
|
24744
|
+
}).input(v2Input.params(z363.object({ address: SystemRolesReadInputSchema.shape.account }))).output(createSingleResponse(SystemRolesReadOutputSchema));
|
|
24673
24745
|
var grantRole = v2Contract.route({
|
|
24674
24746
|
method: "POST",
|
|
24675
24747
|
path: "/system/accounts/{address}/role-grants",
|
|
24676
24748
|
description: "Grant a role to multiple accounts.",
|
|
24677
24749
|
successDescription: "Roles granted successfully.",
|
|
24678
24750
|
tags: [V2_TAG.accessManager]
|
|
24679
|
-
}).meta({ contractErrors: [...ACCESS_ERRORS] }).input(v2Input.paramsBody(
|
|
24751
|
+
}).meta({ contractErrors: [...ACCESS_ERRORS] }).input(v2Input.paramsBody(z363.object({ address: GrantRoleInputSchema.shape.account }), GrantRoleInputSchema.omit({ account: true }))).output(createAsyncBlockchainMutationResponse(GrantRoleOutputSchema));
|
|
24680
24752
|
var revokeRole = v2Contract.route({
|
|
24681
24753
|
method: "DELETE",
|
|
24682
24754
|
path: "/system/accounts/{address}/role-grants",
|
|
24683
24755
|
description: "Revoke a role from multiple accounts.",
|
|
24684
24756
|
successDescription: "Roles revoked successfully.",
|
|
24685
24757
|
tags: [V2_TAG.accessManager]
|
|
24686
|
-
}).meta({ contractErrors: [...ACCESS_ERRORS] }).input(v2Input.paramsBody(
|
|
24758
|
+
}).meta({ contractErrors: [...ACCESS_ERRORS] }).input(v2Input.paramsBody(z363.object({ address: RevokeRoleInputSchema.shape.account }), RevokeRoleInputSchema.omit({ account: true }))).output(createAsyncBlockchainMutationResponse(RevokeRoleOutputSchema));
|
|
24687
24759
|
var accessManagerV2Contract = {
|
|
24688
24760
|
rolesList,
|
|
24689
24761
|
rolesRead,
|
|
@@ -24692,14 +24764,14 @@ var accessManagerV2Contract = {
|
|
|
24692
24764
|
};
|
|
24693
24765
|
|
|
24694
24766
|
// ../../packages/dalp/api-contract/src/routes/v2/system/bundler/bundler.v2.schemas.ts
|
|
24695
|
-
import { z as
|
|
24696
|
-
var BundlerStatusSchema =
|
|
24697
|
-
address:
|
|
24767
|
+
import { z as z364 } from "zod";
|
|
24768
|
+
var BundlerStatusSchema = z364.object({
|
|
24769
|
+
address: z364.string().nullable()
|
|
24698
24770
|
});
|
|
24699
|
-
var BundlerBalanceSchema =
|
|
24700
|
-
address:
|
|
24701
|
-
balance:
|
|
24702
|
-
nativeTokenSymbol:
|
|
24771
|
+
var BundlerBalanceSchema = z364.object({
|
|
24772
|
+
address: z364.string(),
|
|
24773
|
+
balance: z364.string(),
|
|
24774
|
+
nativeTokenSymbol: z364.string()
|
|
24703
24775
|
});
|
|
24704
24776
|
|
|
24705
24777
|
// ../../packages/dalp/api-contract/src/routes/v2/system/bundler/bundler.v2.contract.ts
|
|
@@ -24724,29 +24796,29 @@ var bundlerV2Contract = {
|
|
|
24724
24796
|
};
|
|
24725
24797
|
|
|
24726
24798
|
// ../../packages/dalp/api-contract/src/routes/v2/system/activity/activity.v2.contract.ts
|
|
24727
|
-
import { z as
|
|
24799
|
+
import { z as z366 } from "zod";
|
|
24728
24800
|
|
|
24729
24801
|
// ../../packages/dalp/api-contract/src/routes/v2/system/activity/activity.v2.list.schema.ts
|
|
24730
|
-
import { z as
|
|
24731
|
-
var ActivityEventV2ValueSchema =
|
|
24732
|
-
id:
|
|
24733
|
-
name:
|
|
24734
|
-
value:
|
|
24802
|
+
import { z as z365 } from "zod";
|
|
24803
|
+
var ActivityEventV2ValueSchema = z365.object({
|
|
24804
|
+
id: z365.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
|
|
24805
|
+
name: z365.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
|
|
24806
|
+
value: z365.string().meta({
|
|
24735
24807
|
description: "Value of the event parameter (address, hex hash, decimal-string number, or arbitrary text)",
|
|
24736
24808
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "1000000000000000000"]
|
|
24737
24809
|
})
|
|
24738
24810
|
});
|
|
24739
|
-
var ActivityEventV2ItemSchema =
|
|
24740
|
-
id:
|
|
24741
|
-
eventName:
|
|
24811
|
+
var ActivityEventV2ItemSchema = z365.object({
|
|
24812
|
+
id: z365.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
|
|
24813
|
+
eventName: z365.string().meta({
|
|
24742
24814
|
description: "The event name",
|
|
24743
24815
|
examples: ["TransferCompleted", "MintCompleted", "BurnCompleted"]
|
|
24744
24816
|
}),
|
|
24745
|
-
txIndex:
|
|
24817
|
+
txIndex: z365.string().meta({
|
|
24746
24818
|
description: "Log index within the transaction (string for parity with v1)",
|
|
24747
24819
|
examples: ["0", "1", "5"]
|
|
24748
24820
|
}),
|
|
24749
|
-
blockNumber:
|
|
24821
|
+
blockNumber: z365.string().meta({
|
|
24750
24822
|
description: "Block number when the event occurred (decimal string for bigint precision)",
|
|
24751
24823
|
examples: ["12345678", "20000000"]
|
|
24752
24824
|
}),
|
|
@@ -24758,25 +24830,25 @@ var ActivityEventV2ItemSchema = z364.object({
|
|
|
24758
24830
|
description: "Transaction hash",
|
|
24759
24831
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"]
|
|
24760
24832
|
}),
|
|
24761
|
-
emitter:
|
|
24833
|
+
emitter: z365.object({
|
|
24762
24834
|
id: ethereumAddress.meta({
|
|
24763
24835
|
description: "Address of the contract that emitted the event",
|
|
24764
24836
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
24765
24837
|
})
|
|
24766
24838
|
}),
|
|
24767
|
-
sender:
|
|
24839
|
+
sender: z365.object({
|
|
24768
24840
|
id: ethereumAddress.meta({
|
|
24769
24841
|
description: "Address that triggered the event (sender or account, falling back to the contract address)",
|
|
24770
24842
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
24771
24843
|
})
|
|
24772
24844
|
}),
|
|
24773
|
-
involved:
|
|
24845
|
+
involved: z365.array(z365.object({
|
|
24774
24846
|
id: ethereumAddress.meta({
|
|
24775
24847
|
description: "An address involved in the event (sender, recipient, account holder, etc.)",
|
|
24776
24848
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
24777
24849
|
})
|
|
24778
24850
|
})),
|
|
24779
|
-
values:
|
|
24851
|
+
values: z365.array(ActivityEventV2ValueSchema).meta({
|
|
24780
24852
|
description: "Event parameter values",
|
|
24781
24853
|
examples: []
|
|
24782
24854
|
})
|
|
@@ -24799,30 +24871,30 @@ var list24 = v2Contract.route({
|
|
|
24799
24871
|
description: "List blockchain events where the specified account address is involved. Sortable by " + "blockTimestamp (default desc) and blockNumber. Filterable on eventName.",
|
|
24800
24872
|
successDescription: "Paginated array of activity events with total count and faceted filter values.",
|
|
24801
24873
|
tags: [V2_TAG.system]
|
|
24802
|
-
}).input(v2Input.paramsQuery(
|
|
24874
|
+
}).input(v2Input.paramsQuery(z366.object({ accountAddress: ethereumAddress }), ActivityListV2InputSchema)).output(ActivityListV2OutputSchema);
|
|
24803
24875
|
var stats3 = v2Contract.route({
|
|
24804
24876
|
method: "GET",
|
|
24805
24877
|
path: "/system/accounts/{accountAddress}/activity-metrics",
|
|
24806
24878
|
description: "Retrieve activity statistics for the specified" + " account address. Provides time series data" + " for charting and event counts.",
|
|
24807
24879
|
successDescription: "Activity statistics retrieved successfully",
|
|
24808
24880
|
tags: [V2_TAG.system]
|
|
24809
|
-
}).input(v2Input.paramsQuery(
|
|
24881
|
+
}).input(v2Input.paramsQuery(z366.object({ accountAddress: ActivityStatsInputSchema.shape.accountAddress }), ActivityStatsInputSchema.omit({ accountAddress: true }))).output(createSingleResponse(ActivityStatsOutputSchema));
|
|
24810
24882
|
var activityV2Contract = {
|
|
24811
24883
|
list: list24,
|
|
24812
24884
|
stats: stats3
|
|
24813
24885
|
};
|
|
24814
24886
|
|
|
24815
24887
|
// ../../packages/dalp/api-contract/src/routes/v2/system/addon-factory/addon-factory.v2.contract.ts
|
|
24816
|
-
import { z as
|
|
24888
|
+
import { z as z368 } from "zod";
|
|
24817
24889
|
|
|
24818
24890
|
// ../../packages/dalp/api-contract/src/routes/v2/system/addon-factory/addon-factory.v2.list.schema.ts
|
|
24819
|
-
import { z as
|
|
24820
|
-
var AddonFactoryV2ItemSchema =
|
|
24891
|
+
import { z as z367 } from "zod";
|
|
24892
|
+
var AddonFactoryV2ItemSchema = z367.object({
|
|
24821
24893
|
id: ethereumAddress.meta({
|
|
24822
24894
|
description: "The addon contract address",
|
|
24823
24895
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
24824
24896
|
}),
|
|
24825
|
-
name:
|
|
24897
|
+
name: z367.string().meta({ description: "The name of the system addon", examples: ["XvP Settlement", "Yield Schedule"] }),
|
|
24826
24898
|
typeId: addonFactoryTypeId().meta({
|
|
24827
24899
|
description: "The type ID of the system addon",
|
|
24828
24900
|
examples: ["xvp-settlement", "fixed-yield-schedule"]
|
|
@@ -24871,7 +24943,7 @@ var read20 = v2Contract.route({
|
|
|
24871
24943
|
description: "Get an addon factory by address",
|
|
24872
24944
|
successDescription: "Addon factory data with type information",
|
|
24873
24945
|
tags: [...TAGS28]
|
|
24874
|
-
}).input(v2Input.params(
|
|
24946
|
+
}).input(v2Input.params(z368.object({ factoryAddress: AddonFactoryReadInputSchema.shape.addonFactoryAddress }))).output(createSingleResponse(AddonFactoryReadOutputSchema));
|
|
24875
24947
|
var addonFactoryV2Contract = {
|
|
24876
24948
|
list: list25,
|
|
24877
24949
|
create: create13,
|
|
@@ -24879,7 +24951,7 @@ var addonFactoryV2Contract = {
|
|
|
24879
24951
|
};
|
|
24880
24952
|
|
|
24881
24953
|
// ../../packages/dalp/api-contract/src/routes/v2/system/claim-topics/claim-topics.v2.contract.ts
|
|
24882
|
-
import { z as
|
|
24954
|
+
import { z as z369 } from "zod";
|
|
24883
24955
|
|
|
24884
24956
|
// ../../packages/dalp/api-contract/src/routes/v2/system/claim-topics/claim-topics.v2.list.schema.ts
|
|
24885
24957
|
var CLAIM_TOPICS_COLLECTION_FIELDS = {
|
|
@@ -24921,14 +24993,14 @@ var update10 = v2Contract.route({
|
|
|
24921
24993
|
description: "Update the signature of an existing topic scheme.",
|
|
24922
24994
|
successDescription: "Topic scheme signature updated successfully.",
|
|
24923
24995
|
tags: [V2_TAG.claimTopics]
|
|
24924
|
-
}).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.paramsBody(
|
|
24996
|
+
}).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.paramsBody(z369.object({ name: TopicUpdateInputSchema.shape.name }), TopicUpdateInputSchema.omit({ name: true }))).output(createAsyncBlockchainMutationResponse(TopicUpdateOutputSchema));
|
|
24925
24997
|
var del11 = v2Contract.route({
|
|
24926
24998
|
method: "DELETE",
|
|
24927
24999
|
path: "/system/claim-topics/{name}",
|
|
24928
25000
|
description: "Remove a topic scheme from the registry.",
|
|
24929
25001
|
successDescription: "Topic scheme removed successfully.",
|
|
24930
25002
|
tags: [V2_TAG.claimTopics]
|
|
24931
|
-
}).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.paramsBody(
|
|
25003
|
+
}).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.paramsBody(z369.object({ name: TopicDeleteInputSchema.shape.name }), TopicDeleteInputSchema.omit({ name: true }))).output(createAsyncBlockchainMutationResponse(TopicDeleteOutputSchema));
|
|
24932
25004
|
var claimTopicsV2Contract = {
|
|
24933
25005
|
list: list26,
|
|
24934
25006
|
create: create14,
|
|
@@ -24938,8 +25010,8 @@ var claimTopicsV2Contract = {
|
|
|
24938
25010
|
};
|
|
24939
25011
|
|
|
24940
25012
|
// ../../packages/dalp/api-contract/src/routes/v2/system/compliance-module/compliance-module.v2.list.schema.ts
|
|
24941
|
-
import { z as
|
|
24942
|
-
var ComplianceModuleV2ItemSchema =
|
|
25013
|
+
import { z as z370 } from "zod";
|
|
25014
|
+
var ComplianceModuleV2ItemSchema = z370.object({
|
|
24943
25015
|
id: ethereumCompositeId.meta({
|
|
24944
25016
|
description: "Compliance module ID (concatenation of registry address and module address)",
|
|
24945
25017
|
examples: ["0x71c7656ec7ab88b098defb751b7401b5f6d8976f2546bcd3c84621e976d8185a91a922ae77ecec30"]
|
|
@@ -24949,8 +25021,8 @@ var ComplianceModuleV2ItemSchema = z369.object({
|
|
|
24949
25021
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
24950
25022
|
}),
|
|
24951
25023
|
typeId: complianceTypeId(),
|
|
24952
|
-
name:
|
|
24953
|
-
globalConfigs:
|
|
25024
|
+
name: z370.string(),
|
|
25025
|
+
globalConfigs: z370.array(GlobalComplianceModuleConfigSchema2).default([])
|
|
24954
25026
|
});
|
|
24955
25027
|
var COMPLIANCE_MODULE_COLLECTION_FIELDS = {
|
|
24956
25028
|
module: addressField({ defaultOperator: "eq" }),
|
|
@@ -24993,20 +25065,20 @@ var complianceModuleV2Contract = {
|
|
|
24993
25065
|
};
|
|
24994
25066
|
|
|
24995
25067
|
// ../../packages/dalp/api-contract/src/routes/v2/system/core/core.v2.contract.ts
|
|
24996
|
-
import { z as
|
|
25068
|
+
import { z as z372 } from "zod";
|
|
24997
25069
|
|
|
24998
25070
|
// ../../packages/dalp/api-contract/src/routes/v2/system/core/system.v2.list.schema.ts
|
|
24999
|
-
import { z as
|
|
25000
|
-
var SystemV2ItemSchema =
|
|
25071
|
+
import { z as z371 } from "zod";
|
|
25072
|
+
var SystemV2ItemSchema = z371.object({
|
|
25001
25073
|
id: ethereumAddress.meta({
|
|
25002
25074
|
description: "System contract address (lowercase hex)",
|
|
25003
25075
|
examples: ["0x71c7656ec7ab88b098defb751b7401b5f6d8976f"]
|
|
25004
25076
|
}),
|
|
25005
|
-
isBootstrapped:
|
|
25077
|
+
isBootstrapped: z371.boolean().meta({
|
|
25006
25078
|
description: "Whether the system has been bootstrapped",
|
|
25007
25079
|
examples: [true]
|
|
25008
25080
|
}),
|
|
25009
|
-
tokenCount:
|
|
25081
|
+
tokenCount: z371.number().int().meta({
|
|
25010
25082
|
description: "Number of tokens deployed under this system",
|
|
25011
25083
|
examples: [12]
|
|
25012
25084
|
}),
|
|
@@ -25048,8 +25120,8 @@ var read22 = v2Contract.route({
|
|
|
25048
25120
|
description: "Get details of a specific SMART system (use 'default' for the dApp system)",
|
|
25049
25121
|
successDescription: "SMART system details with token factories",
|
|
25050
25122
|
tags: [V2_TAG.system]
|
|
25051
|
-
}).input(v2Input.params(
|
|
25052
|
-
systemAddress:
|
|
25123
|
+
}).input(v2Input.params(z372.object({
|
|
25124
|
+
systemAddress: z372.literal("default").or(ethereumAddress)
|
|
25053
25125
|
}))).output(createSingleResponse(SystemSchema));
|
|
25054
25126
|
var resume2 = v2Contract.route({
|
|
25055
25127
|
method: "POST",
|
|
@@ -25103,11 +25175,11 @@ var entityV2Contract = {
|
|
|
25103
25175
|
};
|
|
25104
25176
|
|
|
25105
25177
|
// ../../packages/dalp/api-contract/src/routes/v2/system/feeds/feeds.v2.contract.ts
|
|
25106
|
-
import { z as
|
|
25178
|
+
import { z as z375 } from "zod";
|
|
25107
25179
|
|
|
25108
25180
|
// ../../packages/dalp/api-contract/src/routes/v2/system/feeds/adapters.v2.list.schema.ts
|
|
25109
|
-
import { z as
|
|
25110
|
-
var AdapterV2ItemSchema =
|
|
25181
|
+
import { z as z373 } from "zod";
|
|
25182
|
+
var AdapterV2ItemSchema = z373.object({
|
|
25111
25183
|
adapterAddress: ethereumAddress.meta({
|
|
25112
25184
|
description: "Address of the adapter contract (stable address)",
|
|
25113
25185
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25116,7 +25188,7 @@ var AdapterV2ItemSchema = z372.object({
|
|
|
25116
25188
|
description: "Subject the adapter is bound to (asset / identity / global zero address)",
|
|
25117
25189
|
examples: ["0x0000000000000000000000000000000000000000"]
|
|
25118
25190
|
}),
|
|
25119
|
-
topicId:
|
|
25191
|
+
topicId: z373.string().meta({
|
|
25120
25192
|
description: "Numeric topic identifier as decimal string",
|
|
25121
25193
|
examples: ["1", "2"]
|
|
25122
25194
|
})
|
|
@@ -25153,8 +25225,8 @@ var FeedsV2ListInputSchema = createCollectionInputSchema(FEEDS_COLLECTION_FIELDS
|
|
|
25153
25225
|
var FeedsV2ListOutputSchema = createPaginatedResponse(FeedItemSchema);
|
|
25154
25226
|
|
|
25155
25227
|
// ../../packages/dalp/api-contract/src/routes/v2/system/feeds/issuer-signed.v2.list.schema.ts
|
|
25156
|
-
import { z as
|
|
25157
|
-
var IssuerSignedFeedV2ItemSchema =
|
|
25228
|
+
import { z as z374 } from "zod";
|
|
25229
|
+
var IssuerSignedFeedV2ItemSchema = z374.object({
|
|
25158
25230
|
feedAddress: ethereumAddress.meta({
|
|
25159
25231
|
description: "Address of the issuer-signed scalar feed",
|
|
25160
25232
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25163,7 +25235,7 @@ var IssuerSignedFeedV2ItemSchema = z373.object({
|
|
|
25163
25235
|
description: "Subject the feed is bound to (asset / identity / global zero address)",
|
|
25164
25236
|
examples: ["0x0000000000000000000000000000000000000000"]
|
|
25165
25237
|
}),
|
|
25166
|
-
topicId:
|
|
25238
|
+
topicId: z374.string().meta({
|
|
25167
25239
|
description: "Numeric topic identifier as decimal string",
|
|
25168
25240
|
examples: ["1", "2"]
|
|
25169
25241
|
}),
|
|
@@ -25256,7 +25328,7 @@ var staleness2 = v2Contract.route({
|
|
|
25256
25328
|
description: "Evaluate whether a feed value is stale based on a maximum age threshold",
|
|
25257
25329
|
successDescription: "Staleness evaluation result",
|
|
25258
25330
|
tags: [...TAGS29]
|
|
25259
|
-
}).input(v2Input.paramsQuery(
|
|
25331
|
+
}).input(v2Input.paramsQuery(z375.object({ feedAddress: FeedStalenessInputSchema.shape.feedAddress }), z375.object(FeedStalenessInputSchema.shape).omit({ feedAddress: true }))).output(createSingleResponse(FeedStalenessOutputSchema));
|
|
25260
25332
|
var config2 = v2Contract.route({
|
|
25261
25333
|
method: "GET",
|
|
25262
25334
|
path: "/system/feeds/{feedAddress}/config",
|
|
@@ -25277,7 +25349,7 @@ var submit2 = v2Contract.route({
|
|
|
25277
25349
|
description: "Sign and submit a feed update using the backend-managed signer (EIP-712)",
|
|
25278
25350
|
successDescription: "Feed update submitted",
|
|
25279
25351
|
tags: [...TAGS29]
|
|
25280
|
-
}).input(v2Input.paramsBody(
|
|
25352
|
+
}).input(v2Input.paramsBody(z375.object({ feedAddress: FeedSubmitInputSchema.shape.feedAddress }), z375.object(FeedSubmitInputSchema.shape).omit({ feedAddress: true }))).output(createAsyncBlockchainMutationResponse(FeedSubmitOutputSchema));
|
|
25281
25353
|
var issuerSignedCreate2 = v2Contract.route({
|
|
25282
25354
|
method: "POST",
|
|
25283
25355
|
path: "/system/feeds/issuer-signed/create",
|
|
@@ -25333,40 +25405,40 @@ var feedsV2Contract = {
|
|
|
25333
25405
|
};
|
|
25334
25406
|
|
|
25335
25407
|
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.contract.ts
|
|
25336
|
-
import { z as
|
|
25408
|
+
import { z as z379 } from "zod";
|
|
25337
25409
|
|
|
25338
25410
|
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.claim-history.schema.ts
|
|
25339
|
-
import { z as
|
|
25411
|
+
import { z as z376 } from "zod";
|
|
25340
25412
|
var CLAIM_EVENT_NAMES = ["ClaimAdded", "ClaimChanged", "ClaimRemoved", "ClaimRevoked"];
|
|
25341
|
-
var ClaimHistoryV2ValueSchema =
|
|
25342
|
-
id:
|
|
25343
|
-
name:
|
|
25344
|
-
value:
|
|
25413
|
+
var ClaimHistoryV2ValueSchema = z376.object({
|
|
25414
|
+
id: z376.string().meta({ description: "Unique identifier for the value", examples: ["val-0"] }),
|
|
25415
|
+
name: z376.string().meta({ description: "Parameter name", examples: ["topic"] }),
|
|
25416
|
+
value: z376.string().meta({ description: "String representation of the value", examples: ["1"] })
|
|
25345
25417
|
});
|
|
25346
|
-
var ClaimsHistoryV2ParamsSchema =
|
|
25418
|
+
var ClaimsHistoryV2ParamsSchema = z376.object({
|
|
25347
25419
|
identityAddress: ethereumAddress.meta({
|
|
25348
25420
|
description: "Identity contract address whose claim events are listed",
|
|
25349
25421
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25350
25422
|
})
|
|
25351
25423
|
});
|
|
25352
|
-
var ClaimsHistoryV2ItemSchema =
|
|
25353
|
-
id:
|
|
25424
|
+
var ClaimsHistoryV2ItemSchema = z376.object({
|
|
25425
|
+
id: z376.string().meta({
|
|
25354
25426
|
description: "Stable identifier built from txHash and logIndex (e.g. `0xabc...-0`)",
|
|
25355
25427
|
examples: ["0xabc...-0"]
|
|
25356
25428
|
}),
|
|
25357
|
-
eventName:
|
|
25429
|
+
eventName: z376.enum(CLAIM_EVENT_NAMES).meta({
|
|
25358
25430
|
description: "Lifecycle event emitted by the identity contract",
|
|
25359
25431
|
examples: ["ClaimAdded"]
|
|
25360
25432
|
}),
|
|
25361
|
-
topic:
|
|
25433
|
+
topic: z376.string().meta({
|
|
25362
25434
|
description: "Claim topic id (decimal string)",
|
|
25363
25435
|
examples: ["1"]
|
|
25364
25436
|
}),
|
|
25365
|
-
claimId:
|
|
25437
|
+
claimId: z376.string().meta({
|
|
25366
25438
|
description: "Stable claim identifier (hash)",
|
|
25367
25439
|
examples: ["0xbb..."]
|
|
25368
25440
|
}),
|
|
25369
|
-
blockNumber:
|
|
25441
|
+
blockNumber: z376.string().meta({
|
|
25370
25442
|
description: "Block number where the event was mined (decimal string)",
|
|
25371
25443
|
examples: ["12345678"]
|
|
25372
25444
|
}),
|
|
@@ -25378,19 +25450,19 @@ var ClaimsHistoryV2ItemSchema = z375.object({
|
|
|
25378
25450
|
description: "Transaction hash that emitted the event",
|
|
25379
25451
|
examples: ["0xabc..."]
|
|
25380
25452
|
}),
|
|
25381
|
-
emitter:
|
|
25453
|
+
emitter: z376.object({
|
|
25382
25454
|
id: ethereumAddress.meta({
|
|
25383
25455
|
description: "Account or contract that emitted the event",
|
|
25384
25456
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25385
25457
|
})
|
|
25386
25458
|
}),
|
|
25387
|
-
sender:
|
|
25459
|
+
sender: z376.object({
|
|
25388
25460
|
id: ethereumAddress.meta({
|
|
25389
25461
|
description: "Address that initiated the transaction",
|
|
25390
25462
|
examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
|
|
25391
25463
|
})
|
|
25392
25464
|
}),
|
|
25393
|
-
values:
|
|
25465
|
+
values: z376.array(ClaimHistoryV2ValueSchema).meta({
|
|
25394
25466
|
description: "Decoded event arguments as name/value pairs",
|
|
25395
25467
|
examples: [[{ id: "val-0", name: "topic", value: "1" }]]
|
|
25396
25468
|
})
|
|
@@ -25411,31 +25483,31 @@ var ClaimsHistoryV2InputSchema = createCollectionInputSchema(CLAIM_HISTORY_COLLE
|
|
|
25411
25483
|
var ClaimsHistoryV2OutputSchema = createPaginatedResponse(ClaimsHistoryV2ItemSchema);
|
|
25412
25484
|
|
|
25413
25485
|
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.keys.schema.ts
|
|
25414
|
-
import { z as
|
|
25486
|
+
import { z as z377 } from "zod";
|
|
25415
25487
|
var KEY_PURPOSE_VALUES = ["management", "deposit", "claimSigner", "encryption", "unknown"];
|
|
25416
25488
|
var KEY_TYPE_VALUES = ["ecdsa", "rsa", "unknown"];
|
|
25417
|
-
var IdentityV2KeysItemSchema =
|
|
25418
|
-
keyHash:
|
|
25489
|
+
var IdentityV2KeysItemSchema = z377.object({
|
|
25490
|
+
keyHash: z377.string().meta({
|
|
25419
25491
|
description: "ERC-734 key hash — typically `keccak256(abi.encode(eoaAddress))` for an ECDSA key",
|
|
25420
25492
|
examples: ["0x9d8a5b6f3a7f8e2c1d4b5a6e7f8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c"]
|
|
25421
25493
|
}),
|
|
25422
|
-
purpose:
|
|
25494
|
+
purpose: z377.enum(KEY_PURPOSE_VALUES).meta({
|
|
25423
25495
|
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).",
|
|
25424
25496
|
examples: ["management"]
|
|
25425
25497
|
}),
|
|
25426
|
-
keyType:
|
|
25498
|
+
keyType: z377.enum(KEY_TYPE_VALUES).meta({
|
|
25427
25499
|
description: "ERC-734 key type label, decoded by the indexer.",
|
|
25428
25500
|
examples: ["ecdsa"]
|
|
25429
25501
|
}),
|
|
25430
|
-
createdAt:
|
|
25502
|
+
createdAt: z377.coerce.date().meta({
|
|
25431
25503
|
description: "Indexer ingestion timestamp (UTC)",
|
|
25432
25504
|
examples: ["2026-05-06T12:34:56.000Z"]
|
|
25433
25505
|
}),
|
|
25434
|
-
createdAtBlock:
|
|
25506
|
+
createdAtBlock: z377.string().meta({
|
|
25435
25507
|
description: "Block number at which the `KeyAdded` event was emitted, as a decimal string",
|
|
25436
25508
|
examples: ["12345678"]
|
|
25437
25509
|
}),
|
|
25438
|
-
createdAtTxHash:
|
|
25510
|
+
createdAtTxHash: z377.string().meta({
|
|
25439
25511
|
description: "Transaction hash that emitted the `KeyAdded` event",
|
|
25440
25512
|
examples: ["0xabc..."]
|
|
25441
25513
|
})
|
|
@@ -25445,7 +25517,7 @@ var IDENTITY_KEYS_COLLECTION_FIELDS = {
|
|
|
25445
25517
|
keyType: enumField(KEY_TYPE_VALUES, { defaultOperator: "eq", facetable: true }),
|
|
25446
25518
|
createdAt: dateField({ sortable: true, facetable: false })
|
|
25447
25519
|
};
|
|
25448
|
-
var IdentityV2KeysParamsSchema =
|
|
25520
|
+
var IdentityV2KeysParamsSchema = z377.object({
|
|
25449
25521
|
identityAddress: ethereumAddress.meta({
|
|
25450
25522
|
description: "Address of an indexed identity contract (organisation identity, user wallet identity, or any other contract identity).",
|
|
25451
25523
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25457,9 +25529,9 @@ var IdentityV2KeysInputSchema = createCollectionInputSchema(IDENTITY_KEYS_COLLEC
|
|
|
25457
25529
|
var IdentityV2KeysOutputSchema = createPaginatedResponse(IdentityV2KeysItemSchema);
|
|
25458
25530
|
|
|
25459
25531
|
// ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.list.schema.ts
|
|
25460
|
-
import { z as
|
|
25532
|
+
import { z as z378 } from "zod";
|
|
25461
25533
|
var KYC_STATUS_VALUES = ["pending", "registered"];
|
|
25462
|
-
var IdentityV2ListItemSchema =
|
|
25534
|
+
var IdentityV2ListItemSchema = z378.object({
|
|
25463
25535
|
id: ethereumAddress.meta({
|
|
25464
25536
|
description: "Identity contract address",
|
|
25465
25537
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -25468,11 +25540,11 @@ var IdentityV2ListItemSchema = z377.object({
|
|
|
25468
25540
|
description: "Wallet address registered against the identity",
|
|
25469
25541
|
examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
|
|
25470
25542
|
}),
|
|
25471
|
-
name:
|
|
25543
|
+
name: z378.string().nullable().meta({
|
|
25472
25544
|
description: "Account contract name when the identity belongs to a deployed contract",
|
|
25473
25545
|
examples: ["TreasuryMultisig", null]
|
|
25474
25546
|
}),
|
|
25475
|
-
kycStatus:
|
|
25547
|
+
kycStatus: z378.enum(KYC_STATUS_VALUES).meta({
|
|
25476
25548
|
description: "Registry-level KYC status: `pending` (registered, awaiting acceptance) or `registered` (active)",
|
|
25477
25549
|
examples: ["registered"]
|
|
25478
25550
|
}),
|
|
@@ -25480,27 +25552,27 @@ var IdentityV2ListItemSchema = z377.object({
|
|
|
25480
25552
|
description: "ISO 3166-1 alpha-2 country code from the registry, when set",
|
|
25481
25553
|
examples: ["BE", null]
|
|
25482
25554
|
}),
|
|
25483
|
-
isContract:
|
|
25555
|
+
isContract: z378.boolean().meta({
|
|
25484
25556
|
description: "Whether the identity belongs to a smart contract (vs an EOA)",
|
|
25485
25557
|
examples: [false]
|
|
25486
25558
|
}),
|
|
25487
|
-
claimsCount:
|
|
25559
|
+
claimsCount: z378.number().int().nonnegative().meta({
|
|
25488
25560
|
description: "Total claims attached to the identity",
|
|
25489
25561
|
examples: [3]
|
|
25490
25562
|
}),
|
|
25491
|
-
activeClaimsCount:
|
|
25563
|
+
activeClaimsCount: z378.number().int().nonnegative().meta({
|
|
25492
25564
|
description: "Non-revoked claims attached to the identity",
|
|
25493
25565
|
examples: [2]
|
|
25494
25566
|
}),
|
|
25495
|
-
revokedClaimsCount:
|
|
25567
|
+
revokedClaimsCount: z378.number().int().nonnegative().meta({
|
|
25496
25568
|
description: "Revoked claims attached to the identity",
|
|
25497
25569
|
examples: [1]
|
|
25498
25570
|
}),
|
|
25499
|
-
untrustedClaimsCount:
|
|
25571
|
+
untrustedClaimsCount: z378.number().int().nonnegative().meta({
|
|
25500
25572
|
description: "Claims whose issuer is not a trusted issuer for the claim's topic in the system's TIR chain (counted regardless of revocation)",
|
|
25501
25573
|
examples: [0]
|
|
25502
25574
|
}),
|
|
25503
|
-
deployedInTransaction:
|
|
25575
|
+
deployedInTransaction: z378.string().meta({
|
|
25504
25576
|
description: "Transaction hash where the identity contract was deployed",
|
|
25505
25577
|
examples: ["0xabc..."]
|
|
25506
25578
|
})
|
|
@@ -25549,12 +25621,12 @@ var readByWallet2 = v2Contract.route({
|
|
|
25549
25621
|
description: "Read identity information by wallet address with claim validation.",
|
|
25550
25622
|
successDescription: "Identity information retrieved successfully.",
|
|
25551
25623
|
tags: TAGS30
|
|
25552
|
-
}).input(v2Input.paramsQuery(
|
|
25624
|
+
}).input(v2Input.paramsQuery(z379.object({
|
|
25553
25625
|
wallet: ethereumAddress.meta({
|
|
25554
25626
|
description: "The wallet address of the user",
|
|
25555
25627
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25556
25628
|
})
|
|
25557
|
-
}),
|
|
25629
|
+
}), z379.object({
|
|
25558
25630
|
tokenAddress: ethereumAddress.optional().meta({
|
|
25559
25631
|
description: "Optional token address for token-specific trusted issuer validation.",
|
|
25560
25632
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
@@ -25566,12 +25638,12 @@ var readById = v2Contract.route({
|
|
|
25566
25638
|
description: "Read identity information by identity contract address.",
|
|
25567
25639
|
successDescription: "Identity information retrieved successfully.",
|
|
25568
25640
|
tags: TAGS30
|
|
25569
|
-
}).input(v2Input.paramsQuery(
|
|
25641
|
+
}).input(v2Input.paramsQuery(z379.object({
|
|
25570
25642
|
identityAddress: ethereumAddress.meta({
|
|
25571
25643
|
description: "The address of the identity contract to read",
|
|
25572
25644
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
25573
25645
|
})
|
|
25574
|
-
}),
|
|
25646
|
+
}), z379.object({
|
|
25575
25647
|
tokenAddress: ethereumAddress.optional().meta({
|
|
25576
25648
|
description: "Optional token address for token-specific trusted issuer validation.",
|
|
25577
25649
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
@@ -25611,7 +25683,7 @@ var identityDelete2 = v2Contract.route({
|
|
|
25611
25683
|
description: "Delete an identity from the system's identity registry.",
|
|
25612
25684
|
successDescription: "Identity deleted successfully.",
|
|
25613
25685
|
tags: TAGS30
|
|
25614
|
-
}).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.paramsBody(
|
|
25686
|
+
}).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.paramsBody(z379.object({ wallet: IdentityDeleteInputSchema.shape.wallet }), IdentityDeleteInputSchema.omit({ wallet: true }))).output(createAsyncBlockchainMutationResponse(IdentityDeleteOutputSchema));
|
|
25615
25687
|
var updateCountry = v2Contract.route({
|
|
25616
25688
|
method: "PATCH",
|
|
25617
25689
|
path: "/system/identity-countries",
|
|
@@ -25669,18 +25741,18 @@ var identityV2ContractShape = {
|
|
|
25669
25741
|
var identityV2Contract = identityV2ContractShape;
|
|
25670
25742
|
|
|
25671
25743
|
// ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.compare.schema.ts
|
|
25672
|
-
import { z as
|
|
25673
|
-
var MigrationComponentStatusSchema =
|
|
25674
|
-
var MigrationComponentSchema =
|
|
25675
|
-
key:
|
|
25744
|
+
import { z as z380 } from "zod";
|
|
25745
|
+
var MigrationComponentStatusSchema = z380.enum(["up-to-date", "update-available", "new"]);
|
|
25746
|
+
var MigrationComponentSchema = z380.object({
|
|
25747
|
+
key: z380.string().meta({
|
|
25676
25748
|
description: "Directory key or type identifier for this component",
|
|
25677
25749
|
examples: ["SYSTEM", "COMPLIANCE", "bond"]
|
|
25678
25750
|
}),
|
|
25679
|
-
label:
|
|
25751
|
+
label: z380.string().meta({
|
|
25680
25752
|
description: "Human-readable name",
|
|
25681
25753
|
examples: ["System Proxy", "Compliance Module Registry", "Bond Factory"]
|
|
25682
25754
|
}),
|
|
25683
|
-
group:
|
|
25755
|
+
group: z380.string().meta({
|
|
25684
25756
|
description: "Logical category for UI grouping",
|
|
25685
25757
|
examples: ["core", "identity", "compliance", "registries", "tokenFactories", "addons", "complianceModules"]
|
|
25686
25758
|
}),
|
|
@@ -25691,62 +25763,62 @@ var MigrationComponentSchema = z379.object({
|
|
|
25691
25763
|
description: "Expected implementation address from the directory (null if not registered)"
|
|
25692
25764
|
}),
|
|
25693
25765
|
status: MigrationComponentStatusSchema,
|
|
25694
|
-
affectedTokenCount:
|
|
25766
|
+
affectedTokenCount: z380.number().optional().meta({
|
|
25695
25767
|
description: "Number of tokens affected by this component's upgrade (for factory components)",
|
|
25696
25768
|
examples: [0, 12, 47]
|
|
25697
25769
|
})
|
|
25698
25770
|
});
|
|
25699
|
-
var MigrationComponentGroupSchema =
|
|
25700
|
-
id:
|
|
25771
|
+
var MigrationComponentGroupSchema = z380.object({
|
|
25772
|
+
id: z380.string().meta({
|
|
25701
25773
|
description: "Group identifier",
|
|
25702
25774
|
examples: ["core", "identity", "tokenFactories"]
|
|
25703
25775
|
}),
|
|
25704
|
-
label:
|
|
25776
|
+
label: z380.string().meta({
|
|
25705
25777
|
description: "Human-readable group name",
|
|
25706
25778
|
examples: ["Core System", "Identity", "Token Factories"]
|
|
25707
25779
|
}),
|
|
25708
|
-
components:
|
|
25780
|
+
components: z380.array(MigrationComponentSchema)
|
|
25709
25781
|
});
|
|
25710
|
-
var MigrationCompareOutputSchema =
|
|
25782
|
+
var MigrationCompareOutputSchema = z380.object({
|
|
25711
25783
|
systemAddress: ethereumAddress.meta({
|
|
25712
25784
|
description: "The system contract address that was compared"
|
|
25713
25785
|
}),
|
|
25714
25786
|
directoryAddress: ethereumAddress.meta({
|
|
25715
25787
|
description: "The directory contract address used as reference"
|
|
25716
25788
|
}),
|
|
25717
|
-
summary:
|
|
25718
|
-
totalComponents:
|
|
25719
|
-
upToDate:
|
|
25720
|
-
updateAvailable:
|
|
25721
|
-
pendingInstall:
|
|
25722
|
-
totalAffectedTokens:
|
|
25789
|
+
summary: z380.object({
|
|
25790
|
+
totalComponents: z380.number(),
|
|
25791
|
+
upToDate: z380.number(),
|
|
25792
|
+
updateAvailable: z380.number(),
|
|
25793
|
+
pendingInstall: z380.number(),
|
|
25794
|
+
totalAffectedTokens: z380.number()
|
|
25723
25795
|
}),
|
|
25724
|
-
groups:
|
|
25796
|
+
groups: z380.array(MigrationComponentGroupSchema)
|
|
25725
25797
|
});
|
|
25726
25798
|
|
|
25727
25799
|
// ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.start.schema.ts
|
|
25728
|
-
import { z as
|
|
25729
|
-
var MigrationV2StartOutputSchema =
|
|
25730
|
-
migrationId:
|
|
25800
|
+
import { z as z381 } from "zod";
|
|
25801
|
+
var MigrationV2StartOutputSchema = z381.object({
|
|
25802
|
+
migrationId: z381.string().meta({
|
|
25731
25803
|
description: "Unique migration identifier (used for SSE stream subscription)"
|
|
25732
25804
|
}),
|
|
25733
|
-
tree:
|
|
25805
|
+
tree: z381.array(DeploymentNodeSchema).meta({
|
|
25734
25806
|
description: "Initial deployment tree with all steps in pending state"
|
|
25735
25807
|
})
|
|
25736
25808
|
});
|
|
25737
25809
|
|
|
25738
25810
|
// ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.stream.schema.ts
|
|
25739
25811
|
import { eventIterator as eventIterator6 } from "@orpc/contract";
|
|
25740
|
-
import { z as
|
|
25741
|
-
var MigrationV2StreamInputSchema =
|
|
25742
|
-
migrationId:
|
|
25812
|
+
import { z as z382 } from "zod";
|
|
25813
|
+
var MigrationV2StreamInputSchema = z382.object({
|
|
25814
|
+
migrationId: z382.string()
|
|
25743
25815
|
});
|
|
25744
25816
|
var MigrationV2StreamOutputSchema = eventIterator6(DeploymentEventSchema);
|
|
25745
25817
|
|
|
25746
25818
|
// ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.active.schema.ts
|
|
25747
|
-
import { z as
|
|
25748
|
-
var MigrationV2ActiveOutputSchema =
|
|
25749
|
-
migrationId:
|
|
25819
|
+
import { z as z383 } from "zod";
|
|
25820
|
+
var MigrationV2ActiveOutputSchema = z383.object({
|
|
25821
|
+
migrationId: z383.string().nullable().meta({
|
|
25750
25822
|
description: "Active migration ID if one is in-flight, null otherwise"
|
|
25751
25823
|
})
|
|
25752
25824
|
});
|
|
@@ -25788,7 +25860,7 @@ var migrationV2Contract = {
|
|
|
25788
25860
|
};
|
|
25789
25861
|
|
|
25790
25862
|
// ../../packages/dalp/api-contract/src/routes/v2/system/stats/stats.v2.contract.ts
|
|
25791
|
-
import { z as
|
|
25863
|
+
import { z as z384 } from "zod";
|
|
25792
25864
|
var assets2 = v2Contract.route({
|
|
25793
25865
|
method: "GET",
|
|
25794
25866
|
path: "/system/stats/assets",
|
|
@@ -25802,8 +25874,8 @@ var assetLifecycleByRange = v2Contract.route({
|
|
|
25802
25874
|
description: "Retrieve counts for created and launched assets over custom time range",
|
|
25803
25875
|
successDescription: "System asset lifecycle metrics retrieved successfully",
|
|
25804
25876
|
tags: [V2_TAG.systemStats]
|
|
25805
|
-
}).input(v2Input.query(
|
|
25806
|
-
interval:
|
|
25877
|
+
}).input(v2Input.query(z384.object({
|
|
25878
|
+
interval: z384.enum(["hour", "day"]),
|
|
25807
25879
|
from: timestamp(),
|
|
25808
25880
|
to: timestamp()
|
|
25809
25881
|
}))).output(createSingleResponse(StatsAssetLifecycleOutputSchema));
|
|
@@ -25813,8 +25885,8 @@ var assetLifecycleByPreset = v2Contract.route({
|
|
|
25813
25885
|
description: "Retrieve counts for created and launched assets using preset range",
|
|
25814
25886
|
successDescription: "System asset lifecycle metrics retrieved successfully",
|
|
25815
25887
|
tags: [V2_TAG.systemStats]
|
|
25816
|
-
}).input(v2Input.params(
|
|
25817
|
-
preset:
|
|
25888
|
+
}).input(v2Input.params(z384.object({
|
|
25889
|
+
preset: z384.enum(["trailing24Hours", "trailing7Days"])
|
|
25818
25890
|
}))).output(createSingleResponse(StatsAssetLifecycleOutputSchema));
|
|
25819
25891
|
var assetActivityByRange = v2Contract.route({
|
|
25820
25892
|
method: "GET",
|
|
@@ -25822,8 +25894,8 @@ var assetActivityByRange = v2Contract.route({
|
|
|
25822
25894
|
description: "Retrieve counts for transfer, mint, and burn events over custom time range",
|
|
25823
25895
|
successDescription: "System asset activity metrics retrieved successfully",
|
|
25824
25896
|
tags: [V2_TAG.systemStats]
|
|
25825
|
-
}).input(v2Input.query(
|
|
25826
|
-
interval:
|
|
25897
|
+
}).input(v2Input.query(z384.object({
|
|
25898
|
+
interval: z384.enum(["hour", "day"]),
|
|
25827
25899
|
from: timestamp(),
|
|
25828
25900
|
to: timestamp()
|
|
25829
25901
|
}))).output(createSingleResponse(StatsAssetActivityOutputSchema));
|
|
@@ -25833,8 +25905,8 @@ var assetActivityByPreset = v2Contract.route({
|
|
|
25833
25905
|
description: "Retrieve counts for transfer, mint, and burn events using preset range",
|
|
25834
25906
|
successDescription: "System asset activity metrics retrieved successfully",
|
|
25835
25907
|
tags: [V2_TAG.systemStats]
|
|
25836
|
-
}).input(v2Input.params(
|
|
25837
|
-
preset:
|
|
25908
|
+
}).input(v2Input.params(z384.object({
|
|
25909
|
+
preset: z384.enum(["trailing24Hours", "trailing7Days"])
|
|
25838
25910
|
}))).output(createSingleResponse(StatsAssetActivityOutputSchema));
|
|
25839
25911
|
var claimsStatsByRange = v2Contract.route({
|
|
25840
25912
|
method: "GET",
|
|
@@ -25842,8 +25914,8 @@ var claimsStatsByRange = v2Contract.route({
|
|
|
25842
25914
|
description: "Retrieve claims statistics over custom time range including issued, active, removed, and revoked claims",
|
|
25843
25915
|
successDescription: "Claims statistics retrieved successfully",
|
|
25844
25916
|
tags: [V2_TAG.systemStats]
|
|
25845
|
-
}).input(v2Input.query(
|
|
25846
|
-
interval:
|
|
25917
|
+
}).input(v2Input.query(z384.object({
|
|
25918
|
+
interval: z384.enum(["hour", "day"]),
|
|
25847
25919
|
from: timestamp(),
|
|
25848
25920
|
to: timestamp()
|
|
25849
25921
|
}))).output(createSingleResponse(StatsClaimsStatsOutputSchema));
|
|
@@ -25853,8 +25925,8 @@ var claimsStatsByPreset = v2Contract.route({
|
|
|
25853
25925
|
description: "Retrieve claims statistics using preset range including issued, active, removed, and revoked claims",
|
|
25854
25926
|
successDescription: "Claims statistics retrieved successfully",
|
|
25855
25927
|
tags: [V2_TAG.systemStats]
|
|
25856
|
-
}).input(v2Input.params(
|
|
25857
|
-
preset:
|
|
25928
|
+
}).input(v2Input.params(z384.object({
|
|
25929
|
+
preset: z384.enum(["trailing24Hours", "trailing7Days"])
|
|
25858
25930
|
}))).output(createSingleResponse(StatsClaimsStatsOutputSchema));
|
|
25859
25931
|
var claimsStatsState = v2Contract.route({
|
|
25860
25932
|
method: "GET",
|
|
@@ -25883,8 +25955,8 @@ var identityStatsOverTimeByRange = v2Contract.route({
|
|
|
25883
25955
|
description: "Retrieve identity statistics over custom time range for charts",
|
|
25884
25956
|
successDescription: "Identity statistics over time retrieved successfully",
|
|
25885
25957
|
tags: [V2_TAG.systemStats]
|
|
25886
|
-
}).input(v2Input.query(
|
|
25887
|
-
interval:
|
|
25958
|
+
}).input(v2Input.query(z384.object({
|
|
25959
|
+
interval: z384.enum(["hour", "day"]),
|
|
25888
25960
|
from: timestamp(),
|
|
25889
25961
|
to: timestamp()
|
|
25890
25962
|
}))).output(createSingleResponse(StatsIdentityStatsOverTimeOutputSchema));
|
|
@@ -25894,8 +25966,8 @@ var identityStatsOverTimeByPreset = v2Contract.route({
|
|
|
25894
25966
|
description: "Retrieve identity statistics using preset range for charts",
|
|
25895
25967
|
successDescription: "Identity statistics over time retrieved successfully",
|
|
25896
25968
|
tags: [V2_TAG.systemStats]
|
|
25897
|
-
}).input(v2Input.params(
|
|
25898
|
-
preset:
|
|
25969
|
+
}).input(v2Input.params(z384.object({
|
|
25970
|
+
preset: z384.enum(["trailing24Hours", "trailing7Days"])
|
|
25899
25971
|
}))).output(createSingleResponse(StatsIdentityStatsOverTimeOutputSchema));
|
|
25900
25972
|
var transactionCount = v2Contract.route({
|
|
25901
25973
|
method: "GET",
|
|
@@ -25917,8 +25989,8 @@ var trustedIssuerStatsByRange = v2Contract.route({
|
|
|
25917
25989
|
description: "Retrieve trusted issuer statistics over custom time range including added, active, and removed issuers",
|
|
25918
25990
|
successDescription: "Trusted issuer statistics retrieved successfully",
|
|
25919
25991
|
tags: [V2_TAG.systemStats]
|
|
25920
|
-
}).input(v2Input.query(
|
|
25921
|
-
interval:
|
|
25992
|
+
}).input(v2Input.query(z384.object({
|
|
25993
|
+
interval: z384.enum(["hour", "day"]),
|
|
25922
25994
|
from: timestamp(),
|
|
25923
25995
|
to: timestamp()
|
|
25924
25996
|
}))).output(createSingleResponse(StatsTrustedIssuerStatsOutputSchema));
|
|
@@ -25928,8 +26000,8 @@ var trustedIssuerStatsByPreset = v2Contract.route({
|
|
|
25928
26000
|
description: "Retrieve trusted issuer statistics using preset range including added, active, and removed issuers",
|
|
25929
26001
|
successDescription: "Trusted issuer statistics retrieved successfully",
|
|
25930
26002
|
tags: [V2_TAG.systemStats]
|
|
25931
|
-
}).input(v2Input.params(
|
|
25932
|
-
preset:
|
|
26003
|
+
}).input(v2Input.params(z384.object({
|
|
26004
|
+
preset: z384.enum(["trailing24Hours", "trailing7Days"])
|
|
25933
26005
|
}))).output(createSingleResponse(StatsTrustedIssuerStatsOutputSchema));
|
|
25934
26006
|
var trustedIssuerStatsState = v2Contract.route({
|
|
25935
26007
|
method: "GET",
|
|
@@ -25951,8 +26023,8 @@ var portfolioByRange = v2Contract.route({
|
|
|
25951
26023
|
description: "Retrieve system-wide portfolio statistics over custom time range",
|
|
25952
26024
|
successDescription: "System portfolio statistics retrieved successfully",
|
|
25953
26025
|
tags: [V2_TAG.systemStats]
|
|
25954
|
-
}).input(v2Input.query(
|
|
25955
|
-
interval:
|
|
26026
|
+
}).input(v2Input.query(z384.object({
|
|
26027
|
+
interval: z384.enum(["hour", "day"]),
|
|
25956
26028
|
from: timestamp(),
|
|
25957
26029
|
to: timestamp()
|
|
25958
26030
|
}))).output(createSingleResponse(StatsPortfolioOutputSchema));
|
|
@@ -25962,8 +26034,8 @@ var portfolioByPreset = v2Contract.route({
|
|
|
25962
26034
|
description: "Retrieve system-wide portfolio statistics using preset range",
|
|
25963
26035
|
successDescription: "System portfolio statistics retrieved successfully",
|
|
25964
26036
|
tags: [V2_TAG.systemStats]
|
|
25965
|
-
}).input(v2Input.params(
|
|
25966
|
-
preset:
|
|
26037
|
+
}).input(v2Input.params(z384.object({
|
|
26038
|
+
preset: z384.enum(["trailing24Hours", "trailing7Days"])
|
|
25967
26039
|
}))).output(createSingleResponse(StatsPortfolioOutputSchema));
|
|
25968
26040
|
var portfolioDetails = v2Contract.route({
|
|
25969
26041
|
method: "GET",
|
|
@@ -25978,8 +26050,8 @@ var topicSchemesStatsByRange = v2Contract.route({
|
|
|
25978
26050
|
description: "Retrieve topic schemes statistics over custom time range including registered, active, and removed schemes",
|
|
25979
26051
|
successDescription: "Topic schemes statistics retrieved successfully",
|
|
25980
26052
|
tags: [V2_TAG.systemStats]
|
|
25981
|
-
}).input(v2Input.query(
|
|
25982
|
-
interval:
|
|
26053
|
+
}).input(v2Input.query(z384.object({
|
|
26054
|
+
interval: z384.enum(["hour", "day"]),
|
|
25983
26055
|
from: timestamp(),
|
|
25984
26056
|
to: timestamp()
|
|
25985
26057
|
}))).output(createSingleResponse(StatsTopicSchemesStatsOutputSchema));
|
|
@@ -25989,8 +26061,8 @@ var topicSchemesStatsByPreset = v2Contract.route({
|
|
|
25989
26061
|
description: "Retrieve topic schemes statistics using preset range including registered, active, and removed schemes",
|
|
25990
26062
|
successDescription: "Topic schemes statistics retrieved successfully",
|
|
25991
26063
|
tags: [V2_TAG.systemStats]
|
|
25992
|
-
}).input(v2Input.params(
|
|
25993
|
-
preset:
|
|
26064
|
+
}).input(v2Input.params(z384.object({
|
|
26065
|
+
preset: z384.enum(["trailing24Hours", "trailing7Days"])
|
|
25994
26066
|
}))).output(createSingleResponse(StatsTopicSchemesStatsOutputSchema));
|
|
25995
26067
|
var topicSchemesStatsState = v2Contract.route({
|
|
25996
26068
|
method: "GET",
|
|
@@ -26012,8 +26084,8 @@ var systemValueHistoryByRange = v2Contract.route({
|
|
|
26012
26084
|
description: "Retrieve total system value history over custom time range",
|
|
26013
26085
|
successDescription: "System value history retrieved successfully",
|
|
26014
26086
|
tags: [V2_TAG.systemStats]
|
|
26015
|
-
}).input(v2Input.query(
|
|
26016
|
-
interval:
|
|
26087
|
+
}).input(v2Input.query(z384.object({
|
|
26088
|
+
interval: z384.enum(["hour", "day"]),
|
|
26017
26089
|
from: timestamp(),
|
|
26018
26090
|
to: timestamp()
|
|
26019
26091
|
}))).output(createSingleResponse(StatsSystemValueHistoryOutputSchema));
|
|
@@ -26023,8 +26095,8 @@ var systemValueHistoryByPreset = v2Contract.route({
|
|
|
26023
26095
|
description: "Retrieve total system value history using preset range",
|
|
26024
26096
|
successDescription: "System value history retrieved successfully",
|
|
26025
26097
|
tags: [V2_TAG.systemStats]
|
|
26026
|
-
}).input(v2Input.params(
|
|
26027
|
-
preset:
|
|
26098
|
+
}).input(v2Input.params(z384.object({
|
|
26099
|
+
preset: z384.enum(["trailing24Hours", "trailing7Days"])
|
|
26028
26100
|
}))).output(createSingleResponse(StatsSystemValueHistoryOutputSchema));
|
|
26029
26101
|
var statsV2Contract = {
|
|
26030
26102
|
assets: assets2,
|
|
@@ -26057,18 +26129,18 @@ var statsV2Contract = {
|
|
|
26057
26129
|
};
|
|
26058
26130
|
|
|
26059
26131
|
// ../../packages/dalp/api-contract/src/routes/v2/system/token-factory/token-factory.v2.list.schema.ts
|
|
26060
|
-
import { z as
|
|
26061
|
-
var TokenFactoryV2ItemSchema =
|
|
26132
|
+
import { z as z385 } from "zod";
|
|
26133
|
+
var TokenFactoryV2ItemSchema = z385.object({
|
|
26062
26134
|
id: ethereumAddress.meta({
|
|
26063
26135
|
description: "The factory contract address",
|
|
26064
26136
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
26065
26137
|
}),
|
|
26066
|
-
name:
|
|
26138
|
+
name: z385.string().meta({ description: "The name of the token factory", examples: ["Bond Factory", "Equity Factory"] }),
|
|
26067
26139
|
typeId: assetFactoryTypeId().meta({
|
|
26068
26140
|
description: "The type ID of the token factory",
|
|
26069
26141
|
examples: ["bond", "equity"]
|
|
26070
26142
|
}),
|
|
26071
|
-
hasTokens:
|
|
26143
|
+
hasTokens: z385.boolean().meta({ description: "Whether the factory has created any tokens", examples: [true, false] }),
|
|
26072
26144
|
tokenExtensions: assetExtensionArray().meta({
|
|
26073
26145
|
description: "The token extensions of the token factory",
|
|
26074
26146
|
examples: [["pausable", "burnable"]]
|
|
@@ -26133,33 +26205,33 @@ var tokenFactoryV2Contract = {
|
|
|
26133
26205
|
};
|
|
26134
26206
|
|
|
26135
26207
|
// ../../packages/dalp/api-contract/src/routes/v2/system/paymaster/paymaster.v2.schemas.ts
|
|
26136
|
-
import { z as
|
|
26137
|
-
var PaymasterSchema =
|
|
26208
|
+
import { z as z386 } from "zod";
|
|
26209
|
+
var PaymasterSchema = z386.object({
|
|
26138
26210
|
address: ethereumAddress,
|
|
26139
26211
|
system: ethereumAddress.nullable(),
|
|
26140
26212
|
factory: ethereumAddress,
|
|
26141
26213
|
createdAt: timestamp()
|
|
26142
26214
|
});
|
|
26143
|
-
var PaymasterBalanceSchema =
|
|
26215
|
+
var PaymasterBalanceSchema = z386.object({
|
|
26144
26216
|
address: ethereumAddress,
|
|
26145
|
-
depositBalance:
|
|
26217
|
+
depositBalance: z386.string()
|
|
26146
26218
|
});
|
|
26147
26219
|
var PaymasterDepositInputSchema = MutationInputSchema.extend({
|
|
26148
|
-
amount:
|
|
26220
|
+
amount: z386.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.")
|
|
26149
26221
|
});
|
|
26150
|
-
var PaymasterAddressParamsSchema =
|
|
26222
|
+
var PaymasterAddressParamsSchema = z386.object({
|
|
26151
26223
|
address: ethereumAddress
|
|
26152
26224
|
});
|
|
26153
|
-
var PaymasterSignerKeyRotationSchema =
|
|
26225
|
+
var PaymasterSignerKeyRotationSchema = z386.object({
|
|
26154
26226
|
signerAddress: ethereumAddress,
|
|
26155
26227
|
rotatedAt: timestamp()
|
|
26156
26228
|
});
|
|
26157
|
-
var PaymasterSignerKeyStatusSchema =
|
|
26229
|
+
var PaymasterSignerKeyStatusSchema = z386.object({
|
|
26158
26230
|
signerAddress: ethereumAddress.nullable(),
|
|
26159
26231
|
rotatedAt: timestamp().nullable()
|
|
26160
26232
|
});
|
|
26161
|
-
var PaymasterConfigSchema =
|
|
26162
|
-
enabled:
|
|
26233
|
+
var PaymasterConfigSchema = z386.object({
|
|
26234
|
+
enabled: z386.boolean()
|
|
26163
26235
|
});
|
|
26164
26236
|
|
|
26165
26237
|
// ../../packages/dalp/api-contract/src/routes/v2/system/paymaster/paymaster.v2.list.schema.ts
|
|
@@ -26236,24 +26308,24 @@ var paymasterV2Contract = {
|
|
|
26236
26308
|
};
|
|
26237
26309
|
|
|
26238
26310
|
// ../../packages/dalp/api-contract/src/routes/v2/system/trusted-issuers/trusted-issuers.v2.contract.ts
|
|
26239
|
-
import { z as
|
|
26311
|
+
import { z as z389 } from "zod";
|
|
26240
26312
|
|
|
26241
26313
|
// ../../packages/dalp/api-contract/src/routes/system/trusted-issuers/routes/trusted-issuer.claim-topic.schema.ts
|
|
26242
|
-
import { z as
|
|
26314
|
+
import { z as z387 } from "zod";
|
|
26243
26315
|
var TrustedIssuerClaimTopicMutationBodySchema = MutationInputSchema;
|
|
26244
|
-
var TrustedIssuerClaimTopicMutationParamsSchema =
|
|
26316
|
+
var TrustedIssuerClaimTopicMutationParamsSchema = z387.object({
|
|
26245
26317
|
issuerAddress: ethereumAddress.meta({
|
|
26246
26318
|
description: "The identity address of the trusted issuer",
|
|
26247
26319
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
26248
26320
|
}),
|
|
26249
|
-
topicId:
|
|
26321
|
+
topicId: z387.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"] })
|
|
26250
26322
|
});
|
|
26251
26323
|
var TrustedIssuerClaimTopicMutationOutputSchema = BaseMutationOutputSchema.extend({
|
|
26252
26324
|
issuerAddress: ethereumAddress.meta({
|
|
26253
26325
|
description: "Address of the trusted issuer that was mutated",
|
|
26254
26326
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
26255
26327
|
}),
|
|
26256
|
-
topicId:
|
|
26328
|
+
topicId: z387.string().meta({
|
|
26257
26329
|
description: "Numeric ID of the topic that was added or removed",
|
|
26258
26330
|
examples: ["1"]
|
|
26259
26331
|
})
|
|
@@ -26270,8 +26342,8 @@ var TrustedIssuersV2ListInputSchema = createCollectionInputSchema(TRUSTED_ISSUER
|
|
|
26270
26342
|
var TrustedIssuersV2ListOutputSchema = createPaginatedResponse(TrustedIssuerSchema2);
|
|
26271
26343
|
|
|
26272
26344
|
// ../../packages/dalp/api-contract/src/routes/v2/system/trusted-issuers/trusted-issuer.v2.topics.list.schema.ts
|
|
26273
|
-
import { z as
|
|
26274
|
-
var TrustedIssuerTopicsV2ListParamsSchema =
|
|
26345
|
+
import { z as z388 } from "zod";
|
|
26346
|
+
var TrustedIssuerTopicsV2ListParamsSchema = z388.object({
|
|
26275
26347
|
issuerAddress: ethereumAddress.meta({
|
|
26276
26348
|
description: "Trusted issuer identity address",
|
|
26277
26349
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -26317,21 +26389,21 @@ var update11 = v2Contract.route({
|
|
|
26317
26389
|
description: "Update the claim topics for a trusted issuer.",
|
|
26318
26390
|
successDescription: "Trusted issuer topics updated successfully.",
|
|
26319
26391
|
tags: [V2_TAG.trustedIssuers]
|
|
26320
|
-
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(
|
|
26392
|
+
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z389.object({ issuerAddress: TrustedIssuerUpdateInputSchema.shape.issuerAddress }), TrustedIssuerUpdateInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpdateOutputSchema));
|
|
26321
26393
|
var upsert5 = v2Contract.route({
|
|
26322
26394
|
method: "PUT",
|
|
26323
26395
|
path: "/system/trusted-issuers/{issuerAddress}",
|
|
26324
26396
|
description: "Create or update a trusted issuer in the registry.",
|
|
26325
26397
|
successDescription: "Trusted issuer upserted successfully.",
|
|
26326
26398
|
tags: [V2_TAG.trustedIssuers]
|
|
26327
|
-
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(
|
|
26399
|
+
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z389.object({ issuerAddress: TrustedIssuerUpsertInputSchema.shape.issuerAddress }), TrustedIssuerUpsertInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpsertOutputSchema));
|
|
26328
26400
|
var del12 = v2Contract.route({
|
|
26329
26401
|
method: "DELETE",
|
|
26330
26402
|
path: "/system/trusted-issuers/{issuerAddress}",
|
|
26331
26403
|
description: "Delete a trusted issuer from the registry.",
|
|
26332
26404
|
successDescription: "Trusted issuer deleted successfully.",
|
|
26333
26405
|
tags: [V2_TAG.trustedIssuers]
|
|
26334
|
-
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(
|
|
26406
|
+
}).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z389.object({ issuerAddress: TrustedIssuerDeleteInputSchema.shape.issuerAddress }), TrustedIssuerDeleteInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerDeleteOutputSchema));
|
|
26335
26407
|
var topics = v2Contract.route({
|
|
26336
26408
|
method: "GET",
|
|
26337
26409
|
path: "/system/trusted-issuers/{issuerAddress}/topics",
|
|
@@ -26386,7 +26458,7 @@ var systemV2Contract = {
|
|
|
26386
26458
|
};
|
|
26387
26459
|
|
|
26388
26460
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.documents.list.schema.ts
|
|
26389
|
-
import { z as
|
|
26461
|
+
import { z as z390 } from "zod";
|
|
26390
26462
|
var TOKEN_DOCUMENTS_COLLECTION_FIELDS = {
|
|
26391
26463
|
fileName: textField(),
|
|
26392
26464
|
documentType: enumField(tokenDocumentTypes, { facetable: true }),
|
|
@@ -26399,22 +26471,22 @@ var TOKEN_DOCUMENTS_COLLECTION_FIELDS = {
|
|
|
26399
26471
|
var TokenDocumentsV2ListInputSchema = createCollectionInputSchema(TOKEN_DOCUMENTS_COLLECTION_FIELDS, {
|
|
26400
26472
|
defaultSort: "uploadedAt"
|
|
26401
26473
|
});
|
|
26402
|
-
var TokenDocumentsV2ListItemSchema =
|
|
26403
|
-
id:
|
|
26404
|
-
tokenAddress:
|
|
26474
|
+
var TokenDocumentsV2ListItemSchema = z390.object({
|
|
26475
|
+
id: z390.string(),
|
|
26476
|
+
tokenAddress: z390.string(),
|
|
26405
26477
|
documentType: tokenDocumentType(),
|
|
26406
26478
|
visibility: tokenDocumentVisibility(),
|
|
26407
|
-
groupId:
|
|
26408
|
-
versionNumber:
|
|
26409
|
-
isLatest:
|
|
26410
|
-
fileName:
|
|
26411
|
-
fileSize:
|
|
26412
|
-
mimeType:
|
|
26413
|
-
title:
|
|
26414
|
-
description:
|
|
26415
|
-
fileHash:
|
|
26479
|
+
groupId: z390.string(),
|
|
26480
|
+
versionNumber: z390.number(),
|
|
26481
|
+
isLatest: z390.boolean(),
|
|
26482
|
+
fileName: z390.string(),
|
|
26483
|
+
fileSize: z390.number(),
|
|
26484
|
+
mimeType: z390.string(),
|
|
26485
|
+
title: z390.string().nullable(),
|
|
26486
|
+
description: z390.string().nullable(),
|
|
26487
|
+
fileHash: z390.string().nullable(),
|
|
26416
26488
|
uploadedAt: timestamp(),
|
|
26417
|
-
uploadedBy:
|
|
26489
|
+
uploadedBy: z390.string().nullable()
|
|
26418
26490
|
});
|
|
26419
26491
|
var TokenDocumentsV2ListOutputSchema = createPaginatedResponse(TokenDocumentsV2ListItemSchema);
|
|
26420
26492
|
|
|
@@ -26478,7 +26550,7 @@ var TokenV2ListInputSchema = createCollectionInputSchema(TOKEN_COLLECTION_FIELDS
|
|
|
26478
26550
|
var TokenV2ListOutputSchema = createPaginatedResponse(TokenListItemSchema);
|
|
26479
26551
|
|
|
26480
26552
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.mutations.contract.ts
|
|
26481
|
-
import { z as
|
|
26553
|
+
import { z as z393 } from "zod";
|
|
26482
26554
|
|
|
26483
26555
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/compliance/token.install-scoped-compliance-module.schema.ts
|
|
26484
26556
|
var TokenInstallScopedComplianceModuleInputSchema = TokenMutationInputSchema.extend({
|
|
@@ -26782,7 +26854,7 @@ var TokenRemoveMetadataInputSchema = TokenMutationInputSchema.extend({
|
|
|
26782
26854
|
});
|
|
26783
26855
|
|
|
26784
26856
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/transfer-approval/token.approve-transfer.schema.ts
|
|
26785
|
-
import { z as
|
|
26857
|
+
import { z as z391 } from "zod";
|
|
26786
26858
|
var TokenApproveTransferInputSchema = TokenMutationInputSchema.extend({
|
|
26787
26859
|
fromWallet: ethereumAddress.meta({
|
|
26788
26860
|
description: "Wallet address of the token sender whose identity will be the fromIdentity",
|
|
@@ -26810,7 +26882,7 @@ function identityAddressPairRefinement(data, ctx) {
|
|
|
26810
26882
|
const hasTo = data.toIdentityAddress !== undefined;
|
|
26811
26883
|
if (hasFrom !== hasTo) {
|
|
26812
26884
|
ctx.addIssue({
|
|
26813
|
-
code:
|
|
26885
|
+
code: z391.ZodIssueCode.custom,
|
|
26814
26886
|
message: "fromIdentityAddress and toIdentityAddress must both be provided or both omitted — partial overrides are not supported.",
|
|
26815
26887
|
path: hasFrom ? ["toIdentityAddress"] : ["fromIdentityAddress"]
|
|
26816
26888
|
});
|
|
@@ -26850,9 +26922,9 @@ var TokenRevokeTransferApprovalBodySchema = TokenRevokeTransferApprovalInputSche
|
|
|
26850
26922
|
}).superRefine(identityAddressPairRefinement);
|
|
26851
26923
|
|
|
26852
26924
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token-price.v2.schema.ts
|
|
26853
|
-
import { z as
|
|
26925
|
+
import { z as z392 } from "zod";
|
|
26854
26926
|
var TokenPriceBodySchema = MutationInputSchema.extend({
|
|
26855
|
-
price:
|
|
26927
|
+
price: z392.string().regex(/^(?!0+(\.0+)?$)\d+(\.\d+)?$/, "Price must be a positive decimal string greater than zero").meta({
|
|
26856
26928
|
description: "Token price in the specified currency (decimal string for arbitrary precision)",
|
|
26857
26929
|
examples: ["100.50", "1.00", "0.01"]
|
|
26858
26930
|
}),
|
|
@@ -26861,7 +26933,7 @@ var TokenPriceBodySchema = MutationInputSchema.extend({
|
|
|
26861
26933
|
examples: ["EUR", "USD", "GBP"]
|
|
26862
26934
|
})
|
|
26863
26935
|
});
|
|
26864
|
-
var TokenPriceOutputSchema =
|
|
26936
|
+
var TokenPriceOutputSchema = z392.object({
|
|
26865
26937
|
feedAddress: ethereumAddress.meta({
|
|
26866
26938
|
description: "The on-chain feed contract address",
|
|
26867
26939
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -26870,7 +26942,7 @@ var TokenPriceOutputSchema = z391.object({
|
|
|
26870
26942
|
description: "Transaction hash of the price submission",
|
|
26871
26943
|
examples: ["0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"]
|
|
26872
26944
|
}),
|
|
26873
|
-
price:
|
|
26945
|
+
price: z392.string().meta({
|
|
26874
26946
|
description: "The submitted price (echoed back)",
|
|
26875
26947
|
examples: ["100.50"]
|
|
26876
26948
|
}),
|
|
@@ -26901,14 +26973,14 @@ var mint = v2Contract.route({
|
|
|
26901
26973
|
description: "Mint new tokens to one or more addresses.",
|
|
26902
26974
|
successDescription: "Tokens minted successfully.",
|
|
26903
26975
|
tags: [V2_TAG.token]
|
|
26904
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
26976
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema, z393.object(TokenMintInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
26905
26977
|
var burn = v2Contract.route({
|
|
26906
26978
|
method: "POST",
|
|
26907
26979
|
path: "/tokens/{tokenAddress}/burns",
|
|
26908
26980
|
description: "Burn tokens from one or more addresses.",
|
|
26909
26981
|
successDescription: "Tokens burned successfully.",
|
|
26910
26982
|
tags: [V2_TAG.token]
|
|
26911
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
26983
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z393.object(TokenBurnInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
26912
26984
|
var transfer = v2Contract.route({
|
|
26913
26985
|
method: "POST",
|
|
26914
26986
|
path: "/tokens/{tokenAddress}/transfers",
|
|
@@ -26917,7 +26989,7 @@ var transfer = v2Contract.route({
|
|
|
26917
26989
|
tags: [V2_TAG.token]
|
|
26918
26990
|
}).meta({
|
|
26919
26991
|
contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1056"]
|
|
26920
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
26992
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z393.object(TokenTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
26921
26993
|
var forcedTransfer = v2Contract.route({
|
|
26922
26994
|
method: "POST",
|
|
26923
26995
|
path: "/tokens/{tokenAddress}/forced-transfers",
|
|
@@ -26926,7 +26998,7 @@ var forcedTransfer = v2Contract.route({
|
|
|
26926
26998
|
tags: [V2_TAG.token]
|
|
26927
26999
|
}).meta({
|
|
26928
27000
|
contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1055"]
|
|
26929
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
27001
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z393.object(TokenForcedTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
26930
27002
|
var approve3 = v2Contract.route({
|
|
26931
27003
|
method: "POST",
|
|
26932
27004
|
path: "/tokens/{tokenAddress}/approvals",
|
|
@@ -26940,7 +27012,7 @@ var redeem = v2Contract.route({
|
|
|
26940
27012
|
description: "Redeem tokens from one or more addresses.",
|
|
26941
27013
|
successDescription: "Tokens redeemed successfully.",
|
|
26942
27014
|
tags: [V2_TAG.token]
|
|
26943
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
27015
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z393.object(TokenRedeemInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
26944
27016
|
var mature = v2Contract.route({
|
|
26945
27017
|
method: "POST",
|
|
26946
27018
|
path: "/tokens/{tokenAddress}/maturations",
|
|
@@ -27091,9 +27163,9 @@ var grantRole2 = v2Contract.route({
|
|
|
27091
27163
|
description: "Grant a role to multiple accounts on a token.",
|
|
27092
27164
|
successDescription: "Role granted successfully to accounts.",
|
|
27093
27165
|
tags: [V2_TAG.token]
|
|
27094
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
27095
|
-
|
|
27096
|
-
|
|
27166
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z393.union([
|
|
27167
|
+
z393.object(TokenGrantRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
27168
|
+
z393.object(TokenGrantRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
27097
27169
|
]))).output(createAsyncBlockchainMutationResponse(TokenGrantRoleOutputSchema));
|
|
27098
27170
|
var revokeRole2 = v2Contract.route({
|
|
27099
27171
|
method: "POST",
|
|
@@ -27101,9 +27173,9 @@ var revokeRole2 = v2Contract.route({
|
|
|
27101
27173
|
description: "Revoke role(s) from account(s) on a token.",
|
|
27102
27174
|
successDescription: "Roles revoked successfully from the specified accounts.",
|
|
27103
27175
|
tags: [V2_TAG.token]
|
|
27104
|
-
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
27105
|
-
|
|
27106
|
-
|
|
27176
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z393.union([
|
|
27177
|
+
z393.object(TokenRevokeRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
27178
|
+
z393.object(TokenRevokeRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
27107
27179
|
]))).output(createAsyncBlockchainMutationResponse(TokenRevokeRoleOutputSchema));
|
|
27108
27180
|
var claimIssue2 = v2Contract.route({
|
|
27109
27181
|
method: "POST",
|
|
@@ -27488,29 +27560,29 @@ var tokenV2MutationsContract = {
|
|
|
27488
27560
|
};
|
|
27489
27561
|
|
|
27490
27562
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
27491
|
-
import { z as
|
|
27563
|
+
import { z as z403 } from "zod";
|
|
27492
27564
|
|
|
27493
27565
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
27494
|
-
import { z as
|
|
27566
|
+
import { z as z395 } from "zod";
|
|
27495
27567
|
|
|
27496
27568
|
// ../../packages/core/validation/src/feature-types.ts
|
|
27497
|
-
import { z as
|
|
27569
|
+
import { z as z394 } from "zod";
|
|
27498
27570
|
var featureTypes = tokenFeatureIds;
|
|
27499
|
-
var FeatureTypeSchema =
|
|
27571
|
+
var FeatureTypeSchema = z394.enum(featureTypes);
|
|
27500
27572
|
|
|
27501
27573
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
27502
27574
|
var TokenFeaturesInputSchema = TokenReadInputSchema;
|
|
27503
|
-
var feeBps = (description) =>
|
|
27575
|
+
var feeBps = (description) => z395.number().int().min(0).max(20000).meta({
|
|
27504
27576
|
description: `${description} (1 bps = 0.01%, max 20 000 = 200%)`,
|
|
27505
27577
|
examples: [200]
|
|
27506
27578
|
});
|
|
27507
|
-
var TokenFeatureAUMFeeSchema =
|
|
27579
|
+
var TokenFeatureAUMFeeSchema = z395.object({
|
|
27508
27580
|
feeBps: feeBps("Annual AUM fee rate"),
|
|
27509
27581
|
feeRecipient: ethereumAddress.meta({
|
|
27510
27582
|
description: "Address receiving the collected AUM fee",
|
|
27511
27583
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
27512
27584
|
}),
|
|
27513
|
-
isFrozen:
|
|
27585
|
+
isFrozen: z395.boolean().meta({
|
|
27514
27586
|
description: "Whether fee collection is frozen",
|
|
27515
27587
|
examples: [false]
|
|
27516
27588
|
}),
|
|
@@ -27523,7 +27595,7 @@ var TokenFeatureAUMFeeSchema = z394.object({
|
|
|
27523
27595
|
examples: ["1000.50"]
|
|
27524
27596
|
})
|
|
27525
27597
|
}).nullable();
|
|
27526
|
-
var TokenFeatureMaturityRedemptionSchema =
|
|
27598
|
+
var TokenFeatureMaturityRedemptionSchema = z395.object({
|
|
27527
27599
|
maturityDate: timestamp().meta({
|
|
27528
27600
|
description: "Bond maturity date",
|
|
27529
27601
|
examples: ["2025-01-01T00:00:00Z"]
|
|
@@ -27540,7 +27612,7 @@ var TokenFeatureMaturityRedemptionSchema = z394.object({
|
|
|
27540
27612
|
description: "Treasury holding denomination assets for redemption",
|
|
27541
27613
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
27542
27614
|
}),
|
|
27543
|
-
isMatured:
|
|
27615
|
+
isMatured: z395.boolean().meta({
|
|
27544
27616
|
description: "Whether the bond has reached maturity",
|
|
27545
27617
|
examples: [false]
|
|
27546
27618
|
}),
|
|
@@ -27553,7 +27625,7 @@ var TokenFeatureMaturityRedemptionSchema = z394.object({
|
|
|
27553
27625
|
examples: ["500.00"]
|
|
27554
27626
|
})
|
|
27555
27627
|
}).nullable();
|
|
27556
|
-
var TokenFeatureTransactionFeeSchema =
|
|
27628
|
+
var TokenFeatureTransactionFeeSchema = z395.object({
|
|
27557
27629
|
mintFeeBps: feeBps("Mint fee rate"),
|
|
27558
27630
|
burnFeeBps: feeBps("Burn fee rate"),
|
|
27559
27631
|
transferFeeBps: feeBps("Transfer fee rate"),
|
|
@@ -27561,7 +27633,7 @@ var TokenFeatureTransactionFeeSchema = z394.object({
|
|
|
27561
27633
|
description: "Address receiving collected transaction fees",
|
|
27562
27634
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
27563
27635
|
}),
|
|
27564
|
-
isFrozen:
|
|
27636
|
+
isFrozen: z395.boolean().meta({
|
|
27565
27637
|
description: "Whether fee collection is frozen",
|
|
27566
27638
|
examples: [false]
|
|
27567
27639
|
}),
|
|
@@ -27570,7 +27642,7 @@ var TokenFeatureTransactionFeeSchema = z394.object({
|
|
|
27570
27642
|
examples: ["250.75"]
|
|
27571
27643
|
})
|
|
27572
27644
|
}).nullable();
|
|
27573
|
-
var TokenFeatureHistoricalBalancesSchema =
|
|
27645
|
+
var TokenFeatureHistoricalBalancesSchema = z395.object({
|
|
27574
27646
|
enabledAt: timestamp().meta({
|
|
27575
27647
|
description: "When historical balance tracking was enabled",
|
|
27576
27648
|
examples: ["2024-11-14T22:13:20Z"]
|
|
@@ -27580,7 +27652,7 @@ var TokenFeatureHistoricalBalancesSchema = z394.object({
|
|
|
27580
27652
|
examples: ["1000000.00"]
|
|
27581
27653
|
})
|
|
27582
27654
|
}).nullable();
|
|
27583
|
-
var TokenFeatureFixedTreasuryYieldSchema =
|
|
27655
|
+
var TokenFeatureFixedTreasuryYieldSchema = z395.object({
|
|
27584
27656
|
startDate: timestamp().meta({
|
|
27585
27657
|
description: "Yield schedule start",
|
|
27586
27658
|
examples: ["2024-11-14T22:13:20Z"]
|
|
@@ -27589,11 +27661,11 @@ var TokenFeatureFixedTreasuryYieldSchema = z394.object({
|
|
|
27589
27661
|
description: "Yield schedule end",
|
|
27590
27662
|
examples: ["2025-01-01T00:00:00Z"]
|
|
27591
27663
|
}),
|
|
27592
|
-
rate:
|
|
27664
|
+
rate: z395.number().meta({
|
|
27593
27665
|
description: "Annual yield rate (percentage, e.g. 5.5 = 5.5%)",
|
|
27594
27666
|
examples: [5.5]
|
|
27595
27667
|
}),
|
|
27596
|
-
interval:
|
|
27668
|
+
interval: z395.coerce.string().meta({
|
|
27597
27669
|
description: "Payout interval in seconds (string-encoded interval)",
|
|
27598
27670
|
examples: ["2592000"]
|
|
27599
27671
|
}),
|
|
@@ -27625,18 +27697,18 @@ var TokenFeatureFixedTreasuryYieldSchema = z394.object({
|
|
|
27625
27697
|
description: "Period scheduled to start after the current one; null on the final period",
|
|
27626
27698
|
examples: [null]
|
|
27627
27699
|
}),
|
|
27628
|
-
periods:
|
|
27700
|
+
periods: z395.array(fixedYieldSchedulePeriod()).meta({
|
|
27629
27701
|
description: "All scheduled periods. Per-period totalYield/totalUnclaimed populate as each period closes; configured rows exist from creation",
|
|
27630
27702
|
examples: [[]]
|
|
27631
27703
|
})
|
|
27632
27704
|
}).nullable();
|
|
27633
|
-
var TokenFeatureVotingPowerSchema =
|
|
27705
|
+
var TokenFeatureVotingPowerSchema = z395.object({
|
|
27634
27706
|
enabledAt: timestamp().meta({
|
|
27635
27707
|
description: "When voting power was enabled",
|
|
27636
27708
|
examples: ["2024-11-14T22:13:20Z"]
|
|
27637
27709
|
})
|
|
27638
27710
|
}).nullable();
|
|
27639
|
-
var TokenFeatureExternalTransactionFeeSchema =
|
|
27711
|
+
var TokenFeatureExternalTransactionFeeSchema = z395.object({
|
|
27640
27712
|
feeToken: ethereumAddress.meta({
|
|
27641
27713
|
description: "ERC-20 token used to pay fees",
|
|
27642
27714
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -27657,7 +27729,7 @@ var TokenFeatureExternalTransactionFeeSchema = z394.object({
|
|
|
27657
27729
|
description: "Address receiving collected external fees",
|
|
27658
27730
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
27659
27731
|
}),
|
|
27660
|
-
isFrozen:
|
|
27732
|
+
isFrozen: z395.boolean().meta({
|
|
27661
27733
|
description: "Whether fee collection is frozen",
|
|
27662
27734
|
examples: [false]
|
|
27663
27735
|
}),
|
|
@@ -27666,7 +27738,7 @@ var TokenFeatureExternalTransactionFeeSchema = z394.object({
|
|
|
27666
27738
|
examples: ["100.00"]
|
|
27667
27739
|
})
|
|
27668
27740
|
}).nullable();
|
|
27669
|
-
var TokenFeatureTransactionFeeAccountingSchema =
|
|
27741
|
+
var TokenFeatureTransactionFeeAccountingSchema = z395.object({
|
|
27670
27742
|
mintFeeBps: feeBps("Mint fee rate (accounting mode)"),
|
|
27671
27743
|
burnFeeBps: feeBps("Burn fee rate (accounting mode)"),
|
|
27672
27744
|
transferFeeBps: feeBps("Transfer fee rate (accounting mode)"),
|
|
@@ -27674,7 +27746,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z394.object({
|
|
|
27674
27746
|
description: "Address receiving accrued fees upon reconciliation",
|
|
27675
27747
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
27676
27748
|
}),
|
|
27677
|
-
isFrozen:
|
|
27749
|
+
isFrozen: z395.boolean().meta({
|
|
27678
27750
|
description: "Whether fee accrual is frozen",
|
|
27679
27751
|
examples: [false]
|
|
27680
27752
|
}),
|
|
@@ -27687,7 +27759,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z394.object({
|
|
|
27687
27759
|
examples: ["100.00"]
|
|
27688
27760
|
})
|
|
27689
27761
|
}).nullable();
|
|
27690
|
-
var TokenFeatureConversionSchema =
|
|
27762
|
+
var TokenFeatureConversionSchema = z395.object({
|
|
27691
27763
|
targetToken: ethereumAddress.meta({
|
|
27692
27764
|
description: "Token that holders can convert to",
|
|
27693
27765
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -27701,17 +27773,17 @@ var TokenFeatureConversionSchema = z394.object({
|
|
|
27701
27773
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
27702
27774
|
}),
|
|
27703
27775
|
discountBps: feeBps("Conversion discount rate"),
|
|
27704
|
-
partialAllowed:
|
|
27776
|
+
partialAllowed: z395.boolean().meta({
|
|
27705
27777
|
description: "Whether partial conversions are allowed",
|
|
27706
27778
|
examples: [true]
|
|
27707
27779
|
})
|
|
27708
27780
|
}).nullable();
|
|
27709
|
-
var TokenFeatureConversionMinterSchema =
|
|
27710
|
-
authorizedConverters:
|
|
27781
|
+
var TokenFeatureConversionMinterSchema = z395.object({
|
|
27782
|
+
authorizedConverters: z395.array(ethereumAddress).meta({
|
|
27711
27783
|
description: "Addresses authorized to perform conversions",
|
|
27712
27784
|
examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
|
|
27713
27785
|
}),
|
|
27714
|
-
totalIssuances:
|
|
27786
|
+
totalIssuances: z395.number().int().meta({
|
|
27715
27787
|
description: "Total number of conversion issuances performed",
|
|
27716
27788
|
examples: [42]
|
|
27717
27789
|
}),
|
|
@@ -27720,7 +27792,7 @@ var TokenFeatureConversionMinterSchema = z394.object({
|
|
|
27720
27792
|
examples: ["50000.00"]
|
|
27721
27793
|
})
|
|
27722
27794
|
}).nullable();
|
|
27723
|
-
var TokenFeatureSchema =
|
|
27795
|
+
var TokenFeatureSchema = z395.object({
|
|
27724
27796
|
featureAddress: ethereumAddress.meta({
|
|
27725
27797
|
description: "Feature contract address",
|
|
27726
27798
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -27729,17 +27801,17 @@ var TokenFeatureSchema = z394.object({
|
|
|
27729
27801
|
description: "Feature type identifier",
|
|
27730
27802
|
examples: ["aum-fee", "maturity-redemption", "transaction-fee"]
|
|
27731
27803
|
}),
|
|
27732
|
-
featureFactory:
|
|
27733
|
-
typeId:
|
|
27804
|
+
featureFactory: z395.object({
|
|
27805
|
+
typeId: z395.string().meta({
|
|
27734
27806
|
description: "Feature factory type identifier",
|
|
27735
27807
|
examples: ["aum-fee", "maturity-redemption"]
|
|
27736
27808
|
}),
|
|
27737
|
-
name:
|
|
27809
|
+
name: z395.string().meta({
|
|
27738
27810
|
description: "Human-readable name of the feature factory",
|
|
27739
27811
|
examples: ["AUM Fee Feature Factory"]
|
|
27740
27812
|
})
|
|
27741
27813
|
}),
|
|
27742
|
-
isAttached:
|
|
27814
|
+
isAttached: z395.boolean().meta({
|
|
27743
27815
|
description: "Whether the feature is currently attached to the token",
|
|
27744
27816
|
examples: [true]
|
|
27745
27817
|
}),
|
|
@@ -27792,13 +27864,13 @@ var TokenFeatureSchema = z394.object({
|
|
|
27792
27864
|
examples: [null]
|
|
27793
27865
|
})
|
|
27794
27866
|
});
|
|
27795
|
-
var TokenFeaturesResponseSchema =
|
|
27796
|
-
configurable:
|
|
27797
|
-
features:
|
|
27867
|
+
var TokenFeaturesResponseSchema = z395.object({
|
|
27868
|
+
configurable: z395.object({
|
|
27869
|
+
features: z395.array(TokenFeatureSchema).meta({
|
|
27798
27870
|
description: "Feature configurations for the token",
|
|
27799
27871
|
examples: [[]]
|
|
27800
27872
|
}),
|
|
27801
|
-
featuresCount:
|
|
27873
|
+
featuresCount: z395.number().int().meta({
|
|
27802
27874
|
description: "Total number of features attached to the token",
|
|
27803
27875
|
examples: [3]
|
|
27804
27876
|
})
|
|
@@ -27809,22 +27881,22 @@ var TokenFeaturesResponseSchema = z394.object({
|
|
|
27809
27881
|
});
|
|
27810
27882
|
|
|
27811
27883
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.metadata.schema.ts
|
|
27812
|
-
import { z as
|
|
27884
|
+
import { z as z396 } from "zod";
|
|
27813
27885
|
var TokenMetadataInputSchema = TokenReadInputSchema;
|
|
27814
|
-
var TokenMetadataEntrySchema =
|
|
27815
|
-
key:
|
|
27886
|
+
var TokenMetadataEntrySchema = z396.object({
|
|
27887
|
+
key: z396.string().meta({
|
|
27816
27888
|
description: "Human-readable metadata key string",
|
|
27817
27889
|
examples: ["isin", "issuerName"]
|
|
27818
27890
|
}),
|
|
27819
|
-
keyHash:
|
|
27891
|
+
keyHash: z396.string().meta({
|
|
27820
27892
|
description: "On-chain keccak256 hash of the metadata key (bytes32 hex string)",
|
|
27821
27893
|
examples: ["0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"]
|
|
27822
27894
|
}),
|
|
27823
|
-
value:
|
|
27895
|
+
value: z396.string().meta({
|
|
27824
27896
|
description: "Raw on-chain value (bytes32 hex string)",
|
|
27825
27897
|
examples: ["0x000000"]
|
|
27826
27898
|
}),
|
|
27827
|
-
valueString:
|
|
27899
|
+
valueString: z396.string().nullable().meta({
|
|
27828
27900
|
description: "Decoded string representation of the value, null if not decodable",
|
|
27829
27901
|
examples: ["Acme Corp", null]
|
|
27830
27902
|
}),
|
|
@@ -27832,7 +27904,7 @@ var TokenMetadataEntrySchema = z395.object({
|
|
|
27832
27904
|
description: "Numeric representation of the value, null if not numeric",
|
|
27833
27905
|
examples: ["1000", null]
|
|
27834
27906
|
}),
|
|
27835
|
-
isImmutable:
|
|
27907
|
+
isImmutable: z396.boolean().meta({
|
|
27836
27908
|
description: "Whether this metadata entry is immutable (cannot be changed after being set)",
|
|
27837
27909
|
examples: [false]
|
|
27838
27910
|
}),
|
|
@@ -27841,22 +27913,22 @@ var TokenMetadataEntrySchema = z395.object({
|
|
|
27841
27913
|
examples: ["1700000000"]
|
|
27842
27914
|
})
|
|
27843
27915
|
});
|
|
27844
|
-
var TokenMetadataResponseSchema =
|
|
27845
|
-
metadata_:
|
|
27846
|
-
entryCount:
|
|
27916
|
+
var TokenMetadataResponseSchema = z396.object({
|
|
27917
|
+
metadata_: z396.object({
|
|
27918
|
+
entryCount: z396.number().int().meta({
|
|
27847
27919
|
description: "Total number of metadata entries",
|
|
27848
27920
|
examples: [5]
|
|
27849
27921
|
}),
|
|
27850
|
-
entries:
|
|
27922
|
+
entries: z396.array(TokenMetadataEntrySchema).meta({
|
|
27851
27923
|
description: "List of metadata entries for the token"
|
|
27852
27924
|
})
|
|
27853
27925
|
}).nullable()
|
|
27854
27926
|
});
|
|
27855
27927
|
|
|
27856
27928
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.conversion-triggers.schema.ts
|
|
27857
|
-
import { z as
|
|
27858
|
-
var ConversionTriggerSchema =
|
|
27859
|
-
triggerId:
|
|
27929
|
+
import { z as z397 } from "zod";
|
|
27930
|
+
var ConversionTriggerSchema = z397.object({
|
|
27931
|
+
triggerId: z397.string().meta({
|
|
27860
27932
|
description: "On-chain trigger ID (bytes32 hex)",
|
|
27861
27933
|
examples: ["0xabc123..."]
|
|
27862
27934
|
}),
|
|
@@ -27885,16 +27957,16 @@ var ConversionTriggerSchema = z396.object({
|
|
|
27885
27957
|
expiresAt: timestamp().meta({
|
|
27886
27958
|
description: "Trigger expiry timestamp. Epoch zero means no expiry."
|
|
27887
27959
|
}),
|
|
27888
|
-
metadataHash:
|
|
27960
|
+
metadataHash: z397.string().nullable().meta({
|
|
27889
27961
|
description: "Off-chain metadata document hash (bytes32 hex)"
|
|
27890
27962
|
}),
|
|
27891
|
-
active:
|
|
27963
|
+
active: z397.boolean().meta({
|
|
27892
27964
|
description: "Whether the trigger is currently active"
|
|
27893
27965
|
}),
|
|
27894
27966
|
disabledAt: timestamp().nullable().meta({
|
|
27895
27967
|
description: "Timestamp when the trigger was disabled, null if still active"
|
|
27896
27968
|
}),
|
|
27897
|
-
totalConversions:
|
|
27969
|
+
totalConversions: z397.number().int().nonnegative().meta({
|
|
27898
27970
|
description: "Number of conversions executed against this trigger",
|
|
27899
27971
|
examples: [0]
|
|
27900
27972
|
}),
|
|
@@ -27907,16 +27979,16 @@ var ConversionTriggerSchema = z396.object({
|
|
|
27907
27979
|
examples: ["0"]
|
|
27908
27980
|
})
|
|
27909
27981
|
});
|
|
27910
|
-
var ConversionTriggersResponseSchema =
|
|
27911
|
-
triggers:
|
|
27982
|
+
var ConversionTriggersResponseSchema = z397.object({
|
|
27983
|
+
triggers: z397.array(ConversionTriggerSchema).meta({
|
|
27912
27984
|
description: "List of conversion triggers ordered by publication time descending"
|
|
27913
27985
|
}),
|
|
27914
|
-
totalCount:
|
|
27986
|
+
totalCount: z397.number().int().nonnegative().meta({
|
|
27915
27987
|
description: "Total number of conversion triggers for this token",
|
|
27916
27988
|
examples: [0]
|
|
27917
27989
|
})
|
|
27918
27990
|
});
|
|
27919
|
-
var ConversionTriggersInputSchema =
|
|
27991
|
+
var ConversionTriggersInputSchema = z397.object({
|
|
27920
27992
|
tokenAddress: ethereumAddress.meta({
|
|
27921
27993
|
description: "The token contract address",
|
|
27922
27994
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -27950,26 +28022,26 @@ var DenominationAssetsV2InputSchema = createCollectionInputSchema(DENOMINATION_A
|
|
|
27950
28022
|
var DenominationAssetsV2OutputSchema = createPaginatedResponse(DenominationAssetV2ItemSchema);
|
|
27951
28023
|
|
|
27952
28024
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.events.schema.ts
|
|
27953
|
-
import { z as
|
|
27954
|
-
var TokenEventV2ValueSchema =
|
|
27955
|
-
id:
|
|
27956
|
-
name:
|
|
27957
|
-
value:
|
|
28025
|
+
import { z as z398 } from "zod";
|
|
28026
|
+
var TokenEventV2ValueSchema = z398.object({
|
|
28027
|
+
id: z398.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
|
|
28028
|
+
name: z398.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
|
|
28029
|
+
value: z398.string().meta({
|
|
27958
28030
|
description: "Value of the event parameter (address, hex hash, decimal-string number, or arbitrary text)",
|
|
27959
28031
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "1000000000000000000"]
|
|
27960
28032
|
})
|
|
27961
28033
|
});
|
|
27962
|
-
var TokenEventV2ItemSchema =
|
|
27963
|
-
id:
|
|
27964
|
-
eventName:
|
|
28034
|
+
var TokenEventV2ItemSchema = z398.object({
|
|
28035
|
+
id: z398.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
|
|
28036
|
+
eventName: z398.string().meta({
|
|
27965
28037
|
description: "The event name",
|
|
27966
28038
|
examples: ["TransferCompleted", "MintCompleted", "BurnCompleted"]
|
|
27967
28039
|
}),
|
|
27968
|
-
txIndex:
|
|
28040
|
+
txIndex: z398.string().meta({
|
|
27969
28041
|
description: "Log index within the transaction (string for parity with v1)",
|
|
27970
28042
|
examples: ["0", "1", "5"]
|
|
27971
28043
|
}),
|
|
27972
|
-
blockNumber:
|
|
28044
|
+
blockNumber: z398.string().meta({
|
|
27973
28045
|
description: "Block number when the event occurred (decimal string for bigint precision)",
|
|
27974
28046
|
examples: ["12345678", "20000000"]
|
|
27975
28047
|
}),
|
|
@@ -27981,19 +28053,19 @@ var TokenEventV2ItemSchema = z397.object({
|
|
|
27981
28053
|
description: "Transaction hash",
|
|
27982
28054
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"]
|
|
27983
28055
|
}),
|
|
27984
|
-
emitter:
|
|
28056
|
+
emitter: z398.object({
|
|
27985
28057
|
id: ethereumAddress.meta({
|
|
27986
28058
|
description: "Address of the contract that emitted the event",
|
|
27987
28059
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
27988
28060
|
})
|
|
27989
28061
|
}),
|
|
27990
|
-
sender:
|
|
28062
|
+
sender: z398.object({
|
|
27991
28063
|
id: ethereumAddress.meta({
|
|
27992
28064
|
description: "Address that triggered the event (account or sender, falling back to the contract address)",
|
|
27993
28065
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
27994
28066
|
})
|
|
27995
28067
|
}),
|
|
27996
|
-
values:
|
|
28068
|
+
values: z398.array(TokenEventV2ValueSchema).meta({
|
|
27997
28069
|
description: "Event parameter values",
|
|
27998
28070
|
examples: []
|
|
27999
28071
|
})
|
|
@@ -28014,15 +28086,15 @@ var TokenEventsV2InputSchema = createCollectionInputSchema(TOKEN_EVENTS_COLLECTI
|
|
|
28014
28086
|
var TokenEventsV2OutputSchema = createPaginatedResponse(TokenEventV2ItemSchema);
|
|
28015
28087
|
|
|
28016
28088
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.transfer-approvals.schema.ts
|
|
28017
|
-
import { z as
|
|
28018
|
-
var TransferApprovalSchema =
|
|
28019
|
-
id:
|
|
28089
|
+
import { z as z399 } from "zod";
|
|
28090
|
+
var TransferApprovalSchema = z399.object({
|
|
28091
|
+
id: z399.string().meta({
|
|
28020
28092
|
description: "Unique approval ID: {moduleAddress}-{token}-{fromIdentity}-{toIdentity}-{value}",
|
|
28021
28093
|
examples: ["0xabc...-0xtoken...-0xfrom...-0xto...-1000000000000000000"]
|
|
28022
28094
|
}),
|
|
28023
|
-
token:
|
|
28024
|
-
fromIdentity:
|
|
28025
|
-
toIdentity:
|
|
28095
|
+
token: z399.object({ id: ethereumAddress }),
|
|
28096
|
+
fromIdentity: z399.object({ id: ethereumAddress }),
|
|
28097
|
+
toIdentity: z399.object({ id: ethereumAddress }),
|
|
28026
28098
|
value: assetAmount.meta({
|
|
28027
28099
|
description: "Approved transfer amount in base units",
|
|
28028
28100
|
examples: ["1000000000000000000"]
|
|
@@ -28032,7 +28104,7 @@ var TransferApprovalSchema = z398.object({
|
|
|
28032
28104
|
description: "Timestamp when approval expires. Epoch zero means no expiry.",
|
|
28033
28105
|
examples: ["0", "1893456000"]
|
|
28034
28106
|
}),
|
|
28035
|
-
status:
|
|
28107
|
+
status: z399.enum(["pending", "consumed", "revoked"]).meta({
|
|
28036
28108
|
description: "Current status of the approval",
|
|
28037
28109
|
examples: ["pending"]
|
|
28038
28110
|
}),
|
|
@@ -28045,17 +28117,17 @@ var TransferApprovalSchema = z398.object({
|
|
|
28045
28117
|
examples: ["2023-11-14T12:05:00.000Z"]
|
|
28046
28118
|
})
|
|
28047
28119
|
});
|
|
28048
|
-
var TransferApprovalsResponseSchema =
|
|
28049
|
-
transferApprovals:
|
|
28120
|
+
var TransferApprovalsResponseSchema = z399.object({
|
|
28121
|
+
transferApprovals: z399.array(TransferApprovalSchema).meta({
|
|
28050
28122
|
description: "List of transfer approvals ordered by creation time descending",
|
|
28051
28123
|
examples: []
|
|
28052
28124
|
}),
|
|
28053
|
-
totalCount:
|
|
28125
|
+
totalCount: z399.number().int().nonnegative().meta({
|
|
28054
28126
|
description: "Total number of transfer approvals for this token",
|
|
28055
28127
|
examples: [3]
|
|
28056
28128
|
})
|
|
28057
28129
|
});
|
|
28058
|
-
var TransferApprovalsInputSchema =
|
|
28130
|
+
var TransferApprovalsInputSchema = z399.object({
|
|
28059
28131
|
tokenAddress: ethereumAddress.meta({
|
|
28060
28132
|
description: "The token contract address",
|
|
28061
28133
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -28063,20 +28135,20 @@ var TransferApprovalsInputSchema = z398.object({
|
|
|
28063
28135
|
});
|
|
28064
28136
|
|
|
28065
28137
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.price.schema.ts
|
|
28066
|
-
import { z as
|
|
28067
|
-
var TokenPriceInputParamsSchema =
|
|
28138
|
+
import { z as z400 } from "zod";
|
|
28139
|
+
var TokenPriceInputParamsSchema = z400.object({
|
|
28068
28140
|
tokenAddress: ethereumAddress.meta({
|
|
28069
28141
|
description: "The token contract address",
|
|
28070
28142
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28071
28143
|
})
|
|
28072
28144
|
});
|
|
28073
|
-
var TokenPriceInputQuerySchema =
|
|
28145
|
+
var TokenPriceInputQuerySchema = z400.object({
|
|
28074
28146
|
currency: fiatCurrency().default("USD").meta({
|
|
28075
28147
|
description: "Target ISO 4217 currency code for price conversion",
|
|
28076
28148
|
examples: ["USD", "EUR", "GBP", "AED"]
|
|
28077
28149
|
})
|
|
28078
28150
|
});
|
|
28079
|
-
var ConversionHopSchema =
|
|
28151
|
+
var ConversionHopSchema = z400.object({
|
|
28080
28152
|
from: fiatCurrency().meta({
|
|
28081
28153
|
description: "Source currency of this hop",
|
|
28082
28154
|
examples: ["AED"]
|
|
@@ -28085,7 +28157,7 @@ var ConversionHopSchema = z399.object({
|
|
|
28085
28157
|
description: "Target currency of this hop",
|
|
28086
28158
|
examples: ["USD"]
|
|
28087
28159
|
}),
|
|
28088
|
-
rate:
|
|
28160
|
+
rate: z400.string().meta({
|
|
28089
28161
|
description: "Exchange rate (18-decimal string)",
|
|
28090
28162
|
examples: ["272300000000000000"]
|
|
28091
28163
|
}),
|
|
@@ -28097,17 +28169,17 @@ var ConversionHopSchema = z399.object({
|
|
|
28097
28169
|
description: "When the feed was last updated",
|
|
28098
28170
|
examples: ["2024-03-22T12:00:00.000Z"]
|
|
28099
28171
|
}),
|
|
28100
|
-
inverse:
|
|
28172
|
+
inverse: z400.boolean().meta({
|
|
28101
28173
|
description: "Whether this hop uses an inverse rate (1/rate of the registered feed)",
|
|
28102
28174
|
examples: [false]
|
|
28103
28175
|
})
|
|
28104
28176
|
});
|
|
28105
|
-
var TokenPriceResponseSchema =
|
|
28177
|
+
var TokenPriceResponseSchema = z400.object({
|
|
28106
28178
|
tokenAddress: ethereumAddress.meta({
|
|
28107
28179
|
description: "The token contract address",
|
|
28108
28180
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28109
28181
|
}),
|
|
28110
|
-
price:
|
|
28182
|
+
price: z400.string().meta({
|
|
28111
28183
|
description: "The resolved price as a decimal string (18-decimal normalized)",
|
|
28112
28184
|
examples: ["27230000000000000000"]
|
|
28113
28185
|
}),
|
|
@@ -28115,11 +28187,11 @@ var TokenPriceResponseSchema = z399.object({
|
|
|
28115
28187
|
description: "The currency of the returned price",
|
|
28116
28188
|
examples: ["USD"]
|
|
28117
28189
|
}),
|
|
28118
|
-
decimals:
|
|
28190
|
+
decimals: z400.number().meta({
|
|
28119
28191
|
description: "Decimal precision of the price (always 18)",
|
|
28120
28192
|
examples: [18]
|
|
28121
28193
|
}),
|
|
28122
|
-
source:
|
|
28194
|
+
source: z400.enum(["feed", "claim"]).meta({
|
|
28123
28195
|
description: "Whether the base price came from a feed or identity claim",
|
|
28124
28196
|
examples: ["feed"]
|
|
28125
28197
|
}),
|
|
@@ -28127,7 +28199,7 @@ var TokenPriceResponseSchema = z399.object({
|
|
|
28127
28199
|
description: "The native currency of the base price before conversion",
|
|
28128
28200
|
examples: ["AED"]
|
|
28129
28201
|
}),
|
|
28130
|
-
convertible:
|
|
28202
|
+
convertible: z400.boolean().meta({
|
|
28131
28203
|
description: "Whether the price was successfully converted to the target currency",
|
|
28132
28204
|
examples: [true]
|
|
28133
28205
|
}),
|
|
@@ -28135,15 +28207,15 @@ var TokenPriceResponseSchema = z399.object({
|
|
|
28135
28207
|
description: "The requested target currency (only present when convertible is false)",
|
|
28136
28208
|
examples: ["USD"]
|
|
28137
28209
|
}),
|
|
28138
|
-
reason:
|
|
28210
|
+
reason: z400.string().optional().meta({
|
|
28139
28211
|
description: "Reason for conversion failure (only present when convertible is false)",
|
|
28140
28212
|
examples: ["no_fx_path"]
|
|
28141
28213
|
}),
|
|
28142
|
-
message:
|
|
28214
|
+
message: z400.string().optional().meta({
|
|
28143
28215
|
description: "Human-readable explanation (only present when convertible is false)",
|
|
28144
28216
|
examples: ["No conversion path from AED to USD. Register FX feeds for intermediate pairs."]
|
|
28145
28217
|
}),
|
|
28146
|
-
availableCurrencies:
|
|
28218
|
+
availableCurrencies: z400.array(fiatCurrency()).optional().meta({
|
|
28147
28219
|
description: "Currencies reachable from the source currency (only present when convertible is false)",
|
|
28148
28220
|
examples: [["AED", "EUR"]]
|
|
28149
28221
|
}),
|
|
@@ -28151,7 +28223,7 @@ var TokenPriceResponseSchema = z399.object({
|
|
|
28151
28223
|
description: "When the price data was last updated (ISO 8601)",
|
|
28152
28224
|
examples: ["2026-03-22T10:30:00.000Z"]
|
|
28153
28225
|
}),
|
|
28154
|
-
conversionPath:
|
|
28226
|
+
conversionPath: z400.array(ConversionHopSchema).meta({
|
|
28155
28227
|
description: "The FX conversion hops applied (empty if no conversion needed)",
|
|
28156
28228
|
examples: [[]]
|
|
28157
28229
|
})
|
|
@@ -28169,6 +28241,48 @@ var HoldersV2InputSchema = createCollectionInputSchema(HOLDER_COLLECTION_FIELDS,
|
|
|
28169
28241
|
});
|
|
28170
28242
|
var HoldersV2OutputSchema = createPaginatedResponse(assetBalance());
|
|
28171
28243
|
|
|
28244
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balances.schema.ts
|
|
28245
|
+
import { z as z401 } from "zod";
|
|
28246
|
+
var HISTORICAL_BALANCE_KIND_OPTIONS = ["account", "totalSupply"];
|
|
28247
|
+
var TOKEN_HISTORICAL_BALANCES_COLLECTION_FIELDS = {
|
|
28248
|
+
account: addressField({ defaultOperator: "eq" }),
|
|
28249
|
+
blockNumber: bigintField(),
|
|
28250
|
+
blockTimestamp: dateField(),
|
|
28251
|
+
oldBalance: bigintField(),
|
|
28252
|
+
newBalance: bigintField(),
|
|
28253
|
+
kind: enumField(HISTORICAL_BALANCE_KIND_OPTIONS, { sortable: false, facetable: true })
|
|
28254
|
+
};
|
|
28255
|
+
var DISCRIMINATOR_FILTER_FIELDS2 = new Set(["account", "kind"]);
|
|
28256
|
+
var TokenHistoricalBalancesV2InputSchema = createCollectionInputSchema(TOKEN_HISTORICAL_BALANCES_COLLECTION_FIELDS, {
|
|
28257
|
+
defaultSort: "-blockNumber",
|
|
28258
|
+
globalSearch: false
|
|
28259
|
+
}).superRefine((query, ctx) => {
|
|
28260
|
+
for (const filter of query.filters) {
|
|
28261
|
+
if (DISCRIMINATOR_FILTER_FIELDS2.has(filter.id) && filter.operator !== "eq") {
|
|
28262
|
+
ctx.addIssue({
|
|
28263
|
+
code: "custom",
|
|
28264
|
+
message: `filter[${filter.id}] only supports operator=eq on this endpoint`,
|
|
28265
|
+
path: ["filter", filter.id]
|
|
28266
|
+
});
|
|
28267
|
+
}
|
|
28268
|
+
}
|
|
28269
|
+
});
|
|
28270
|
+
var TokenHistoricalBalanceV2ItemSchema = z401.object({
|
|
28271
|
+
id: z401.string().uuid(),
|
|
28272
|
+
account: ethereumAddress,
|
|
28273
|
+
kind: z401.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
|
|
28274
|
+
sender: ethereumAddress,
|
|
28275
|
+
oldBalance: bigDecimal(),
|
|
28276
|
+
oldBalanceExact: apiBigInt,
|
|
28277
|
+
newBalance: bigDecimal(),
|
|
28278
|
+
newBalanceExact: apiBigInt,
|
|
28279
|
+
blockNumber: apiBigInt,
|
|
28280
|
+
blockTimestamp: timestamp(),
|
|
28281
|
+
txHash: ethereumHash,
|
|
28282
|
+
logIndex: z401.number().int().nonnegative()
|
|
28283
|
+
});
|
|
28284
|
+
var TokenHistoricalBalancesV2OutputSchema = createPaginatedResponse(TokenHistoricalBalanceV2ItemSchema);
|
|
28285
|
+
|
|
28172
28286
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transfer-approvals.schema.ts
|
|
28173
28287
|
var TRANSFER_APPROVAL_COLLECTION_FIELDS = {
|
|
28174
28288
|
status: enumField(["pending", "consumed", "revoked"]),
|
|
@@ -28181,6 +28295,38 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
|
|
|
28181
28295
|
});
|
|
28182
28296
|
var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
|
|
28183
28297
|
|
|
28298
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
|
|
28299
|
+
import { z as z402 } from "zod";
|
|
28300
|
+
var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
|
|
28301
|
+
account: addressField({ defaultOperator: "iLike" }),
|
|
28302
|
+
delegate: addressField({ defaultOperator: "iLike" }),
|
|
28303
|
+
isActive: booleanField({ sortable: false, facetable: true }),
|
|
28304
|
+
delegatedBlockNumber: bigintField(),
|
|
28305
|
+
delegatedAt: dateField(),
|
|
28306
|
+
fromDelegate: addressField({ defaultOperator: "iLike" }),
|
|
28307
|
+
toDelegate: addressField({ defaultOperator: "iLike" })
|
|
28308
|
+
};
|
|
28309
|
+
var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATIONS_COLLECTION_FIELDS, {
|
|
28310
|
+
defaultSort: "-delegatedAt",
|
|
28311
|
+
globalSearch: false
|
|
28312
|
+
});
|
|
28313
|
+
var VotingDelegationV2ItemSchema = z402.object({
|
|
28314
|
+
id: z402.string().uuid(),
|
|
28315
|
+
delegator: ethereumAddress,
|
|
28316
|
+
fromDelegate: ethereumAddress.nullable(),
|
|
28317
|
+
toDelegate: ethereumAddress,
|
|
28318
|
+
delegatedAt: timestamp(),
|
|
28319
|
+
delegatedBlockNumber: apiBigInt,
|
|
28320
|
+
delegatedTxHash: ethereumHash,
|
|
28321
|
+
delegatedLogIndex: z402.number().int().nonnegative(),
|
|
28322
|
+
undelegatedAt: timestamp().nullable(),
|
|
28323
|
+
undelegatedBlockNumber: apiBigInt.nullable(),
|
|
28324
|
+
undelegatedTxHash: ethereumHash.nullable(),
|
|
28325
|
+
undelegatedLogIndex: z402.number().int().nonnegative().nullable(),
|
|
28326
|
+
isActive: z402.boolean()
|
|
28327
|
+
});
|
|
28328
|
+
var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
|
|
28329
|
+
|
|
28184
28330
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
28185
28331
|
var read27 = v2Contract.route({
|
|
28186
28332
|
method: "GET",
|
|
@@ -28195,21 +28341,21 @@ var allowance = v2Contract.route({
|
|
|
28195
28341
|
description: "Get token allowance for a specific owner/spender pair.",
|
|
28196
28342
|
successDescription: "Token allowance details retrieved successfully.",
|
|
28197
28343
|
tags: [V2_TAG.token]
|
|
28198
|
-
}).input(v2Input.paramsQuery(
|
|
28344
|
+
}).input(v2Input.paramsQuery(z403.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z403.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
|
|
28199
28345
|
var holder = v2Contract.route({
|
|
28200
28346
|
method: "GET",
|
|
28201
28347
|
path: "/tokens/{tokenAddress}/holder-balances",
|
|
28202
28348
|
description: "Get a specific token holder's balance information.",
|
|
28203
28349
|
successDescription: "Token holder balance details retrieved successfully.",
|
|
28204
28350
|
tags: [V2_TAG.token]
|
|
28205
|
-
}).input(v2Input.paramsQuery(
|
|
28351
|
+
}).input(v2Input.paramsQuery(z403.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z403.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
|
|
28206
28352
|
var holders = v2Contract.route({
|
|
28207
28353
|
method: "GET",
|
|
28208
28354
|
path: "/tokens/{tokenAddress}/holders",
|
|
28209
28355
|
description: "Get token holders and their balances.",
|
|
28210
28356
|
successDescription: "List of token holders with balance information.",
|
|
28211
28357
|
tags: [V2_TAG.token]
|
|
28212
|
-
}).input(v2Input.paramsQuery(
|
|
28358
|
+
}).input(v2Input.paramsQuery(z403.object({
|
|
28213
28359
|
tokenAddress: ethereumAddress.meta({
|
|
28214
28360
|
description: "The token contract address",
|
|
28215
28361
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -28221,7 +28367,7 @@ var actions = v2Contract.route({
|
|
|
28221
28367
|
description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
28222
28368
|
successDescription: "Paginated list of actions targeting the specified token.",
|
|
28223
28369
|
tags: [V2_TAG.token]
|
|
28224
|
-
}).input(v2Input.paramsQuery(
|
|
28370
|
+
}).input(v2Input.paramsQuery(z403.object({
|
|
28225
28371
|
tokenAddress: ethereumAddress.meta({
|
|
28226
28372
|
description: "The token contract address to filter actions by",
|
|
28227
28373
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -28233,7 +28379,7 @@ var events2 = v2Contract.route({
|
|
|
28233
28379
|
description: "List token events with pagination, filtering, sorting, and faceted counts.",
|
|
28234
28380
|
successDescription: "Paginated list of token events with metadata and pagination links.",
|
|
28235
28381
|
tags: [V2_TAG.token]
|
|
28236
|
-
}).input(v2Input.paramsQuery(
|
|
28382
|
+
}).input(v2Input.paramsQuery(z403.object({
|
|
28237
28383
|
tokenAddress: ethereumAddress.meta({
|
|
28238
28384
|
description: "The token contract address",
|
|
28239
28385
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -28245,7 +28391,7 @@ var denominationAssets = v2Contract.route({
|
|
|
28245
28391
|
description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
28246
28392
|
successDescription: "Paginated list of denomination assets used by the specified bond.",
|
|
28247
28393
|
tags: [V2_TAG.token]
|
|
28248
|
-
}).input(v2Input.paramsQuery(
|
|
28394
|
+
}).input(v2Input.paramsQuery(z403.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
|
|
28249
28395
|
var compliance = v2Contract.route({
|
|
28250
28396
|
method: "GET",
|
|
28251
28397
|
path: "/tokens/{tokenAddress}/compliance-modules",
|
|
@@ -28273,7 +28419,7 @@ var transferApprovals = v2Contract.route({
|
|
|
28273
28419
|
description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
|
|
28274
28420
|
successDescription: "List of transfer approvals with their current status.",
|
|
28275
28421
|
tags: [V2_TAG.compliance]
|
|
28276
|
-
}).input(v2Input.paramsQuery(
|
|
28422
|
+
}).input(v2Input.paramsQuery(z403.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
|
|
28277
28423
|
var price = v2Contract.route({
|
|
28278
28424
|
method: "GET",
|
|
28279
28425
|
path: "/tokens/{tokenAddress}/price",
|
|
@@ -28287,7 +28433,21 @@ var conversionTriggers = v2Contract.route({
|
|
|
28287
28433
|
description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
28288
28434
|
successDescription: "Paginated list of conversion triggers with effective pricing.",
|
|
28289
28435
|
tags: [V2_TAG.token]
|
|
28290
|
-
}).input(v2Input.paramsQuery(
|
|
28436
|
+
}).input(v2Input.paramsQuery(z403.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
|
|
28437
|
+
var votingDelegations = v2Contract.route({
|
|
28438
|
+
method: "GET",
|
|
28439
|
+
path: "/tokens/{tokenAddress}/voting-delegations",
|
|
28440
|
+
description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
|
|
28441
|
+
successDescription: "Paginated list of voting delegation lifecycle rows.",
|
|
28442
|
+
tags: [V2_TAG.token]
|
|
28443
|
+
}).input(v2Input.paramsQuery(z403.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
|
|
28444
|
+
var historicalBalances = v2Contract.route({
|
|
28445
|
+
method: "GET",
|
|
28446
|
+
path: "/tokens/{tokenAddress}/historical-balances",
|
|
28447
|
+
description: "List historical balance checkpoints for a token's historical-balances feature. Account rows are returned by default; total-supply rows are reachable through filter[kind]=totalSupply or filter[account]=0x0000000000000000000000000000000000000000.",
|
|
28448
|
+
successDescription: "Paginated list of historical balance checkpoints.",
|
|
28449
|
+
tags: [V2_TAG.token]
|
|
28450
|
+
}).input(v2Input.paramsQuery(z403.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
|
|
28291
28451
|
var tokenV2ReadsContract = {
|
|
28292
28452
|
read: read27,
|
|
28293
28453
|
allowance,
|
|
@@ -28301,11 +28461,13 @@ var tokenV2ReadsContract = {
|
|
|
28301
28461
|
metadata: tokenMetadata,
|
|
28302
28462
|
transferApprovals,
|
|
28303
28463
|
conversionTriggers,
|
|
28464
|
+
votingDelegations,
|
|
28465
|
+
historicalBalances,
|
|
28304
28466
|
price
|
|
28305
28467
|
};
|
|
28306
28468
|
|
|
28307
28469
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
|
|
28308
|
-
import { z as
|
|
28470
|
+
import { z as z404 } from "zod";
|
|
28309
28471
|
var statsBondStatus = v2Contract.route({
|
|
28310
28472
|
method: "GET",
|
|
28311
28473
|
path: "/tokens/{tokenAddress}/stats/bond-status",
|
|
@@ -28326,25 +28488,25 @@ var statsTotalSupply = v2Contract.route({
|
|
|
28326
28488
|
description: "Get total supply history statistics for a specific token.",
|
|
28327
28489
|
successDescription: "Token total supply history statistics.",
|
|
28328
28490
|
tags: [V2_TAG.tokenStats]
|
|
28329
|
-
}).input(v2Input.paramsQuery(
|
|
28491
|
+
}).input(v2Input.paramsQuery(z404.object({
|
|
28330
28492
|
tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
|
|
28331
|
-
}),
|
|
28493
|
+
}), z404.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
|
|
28332
28494
|
var statsSupplyChanges = v2Contract.route({
|
|
28333
28495
|
method: "GET",
|
|
28334
28496
|
path: "/tokens/{tokenAddress}/stats/supply-changes",
|
|
28335
28497
|
description: "Get supply changes history (minted/burned) statistics for a specific token.",
|
|
28336
28498
|
successDescription: "Token supply changes history statistics.",
|
|
28337
28499
|
tags: [V2_TAG.tokenStats]
|
|
28338
|
-
}).input(v2Input.paramsQuery(
|
|
28500
|
+
}).input(v2Input.paramsQuery(z404.object({
|
|
28339
28501
|
tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
|
|
28340
|
-
}),
|
|
28502
|
+
}), z404.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
|
|
28341
28503
|
var statsVolume = v2Contract.route({
|
|
28342
28504
|
method: "GET",
|
|
28343
28505
|
path: "/tokens/{tokenAddress}/stats/volume",
|
|
28344
28506
|
description: "Get total volume history statistics for a specific token.",
|
|
28345
28507
|
successDescription: "Token total volume history statistics.",
|
|
28346
28508
|
tags: [V2_TAG.tokenStats]
|
|
28347
|
-
}).input(v2Input.paramsQuery(
|
|
28509
|
+
}).input(v2Input.paramsQuery(z404.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z404.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
|
|
28348
28510
|
var statsWalletDistribution = v2Contract.route({
|
|
28349
28511
|
method: "GET",
|
|
28350
28512
|
path: "/tokens/{tokenAddress}/stats/wallet-distribution",
|
|
@@ -28394,7 +28556,7 @@ var tokenV2Contract = {
|
|
|
28394
28556
|
};
|
|
28395
28557
|
|
|
28396
28558
|
// ../../packages/core/validation/src/transaction-request-state.ts
|
|
28397
|
-
import { z as
|
|
28559
|
+
import { z as z405 } from "zod";
|
|
28398
28560
|
var transactionRequestStates = [
|
|
28399
28561
|
"RECEIVED",
|
|
28400
28562
|
"QUEUED",
|
|
@@ -28409,7 +28571,7 @@ var transactionRequestStates = [
|
|
|
28409
28571
|
"CANCELLED"
|
|
28410
28572
|
];
|
|
28411
28573
|
var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
28412
|
-
var TransactionRequestStateSchema =
|
|
28574
|
+
var TransactionRequestStateSchema = z405.enum(transactionRequestStates).meta({
|
|
28413
28575
|
description: "Current state in the transaction request lifecycle",
|
|
28414
28576
|
examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
|
|
28415
28577
|
});
|
|
@@ -28450,96 +28612,96 @@ var transactionSubStatuses = [
|
|
|
28450
28612
|
"WORKFLOW_BATCH_COMPLETED",
|
|
28451
28613
|
"WORKFLOW_BATCH_FAILED"
|
|
28452
28614
|
];
|
|
28453
|
-
var TransactionSubStatusSchema =
|
|
28615
|
+
var TransactionSubStatusSchema = z405.enum(transactionSubStatuses).meta({
|
|
28454
28616
|
description: "Detailed sub-status for transaction failures",
|
|
28455
28617
|
examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
|
|
28456
28618
|
});
|
|
28457
28619
|
|
|
28458
28620
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
|
|
28459
|
-
import { z as
|
|
28460
|
-
var TransactionForceRetryInputSchema =
|
|
28461
|
-
transactionId:
|
|
28621
|
+
import { z as z406 } from "zod";
|
|
28622
|
+
var TransactionForceRetryInputSchema = z406.object({
|
|
28623
|
+
transactionId: z406.uuid().meta({
|
|
28462
28624
|
description: "Queue transaction identifier (UUIDv7) to retry",
|
|
28463
28625
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28464
28626
|
})
|
|
28465
28627
|
});
|
|
28466
|
-
var TransactionForceRetryBodySchema =
|
|
28467
|
-
gasPrice:
|
|
28628
|
+
var TransactionForceRetryBodySchema = z406.object({
|
|
28629
|
+
gasPrice: z406.string().optional().meta({
|
|
28468
28630
|
description: "Override gas price in wei (decimal string)",
|
|
28469
28631
|
examples: ["20000000000"]
|
|
28470
28632
|
}),
|
|
28471
|
-
nonce:
|
|
28633
|
+
nonce: z406.number().int().nonnegative().optional().meta({
|
|
28472
28634
|
description: "Override nonce for the retried transaction",
|
|
28473
28635
|
examples: [42]
|
|
28474
28636
|
})
|
|
28475
28637
|
}).default({});
|
|
28476
|
-
var TransactionForceRetryResultSchema =
|
|
28477
|
-
transactionId:
|
|
28638
|
+
var TransactionForceRetryResultSchema = z406.object({
|
|
28639
|
+
transactionId: z406.uuid().meta({ description: "The requeued transaction ID" }),
|
|
28478
28640
|
previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
|
|
28479
28641
|
status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
|
|
28480
28642
|
});
|
|
28481
28643
|
var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
|
|
28482
|
-
var TransactionForceFailInputSchema =
|
|
28483
|
-
transactionId:
|
|
28644
|
+
var TransactionForceFailInputSchema = z406.object({
|
|
28645
|
+
transactionId: z406.uuid().meta({
|
|
28484
28646
|
description: "Queue transaction identifier (UUIDv7) to force-fail",
|
|
28485
28647
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28486
28648
|
})
|
|
28487
28649
|
});
|
|
28488
|
-
var TransactionForceFailBodySchema =
|
|
28489
|
-
reason:
|
|
28650
|
+
var TransactionForceFailBodySchema = z406.object({
|
|
28651
|
+
reason: z406.string().min(1).max(1000).meta({
|
|
28490
28652
|
description: "Human-readable reason for forcing this transaction to failed state",
|
|
28491
28653
|
examples: ["Manual intervention: stuck transaction after nonce conflict"]
|
|
28492
28654
|
})
|
|
28493
28655
|
});
|
|
28494
|
-
var TransactionForceFailResultSchema =
|
|
28495
|
-
transactionId:
|
|
28656
|
+
var TransactionForceFailResultSchema = z406.object({
|
|
28657
|
+
transactionId: z406.uuid().meta({ description: "The force-failed transaction ID" }),
|
|
28496
28658
|
previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
|
|
28497
28659
|
status: transactionRequestState().meta({ description: "New state (FAILED)" }),
|
|
28498
|
-
reason:
|
|
28660
|
+
reason: z406.string().meta({ description: "The reason provided for the force-fail" })
|
|
28499
28661
|
});
|
|
28500
28662
|
var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
|
|
28501
|
-
var TransactionForceNonceInputSchema =
|
|
28502
|
-
transactionId:
|
|
28663
|
+
var TransactionForceNonceInputSchema = z406.object({
|
|
28664
|
+
transactionId: z406.uuid().meta({
|
|
28503
28665
|
description: "Queue transaction identifier — the nonce is forced on its sender wallet",
|
|
28504
28666
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28505
28667
|
})
|
|
28506
28668
|
});
|
|
28507
|
-
var TransactionForceNonceBodySchema =
|
|
28508
|
-
nonce:
|
|
28669
|
+
var TransactionForceNonceBodySchema = z406.object({
|
|
28670
|
+
nonce: z406.number().int().nonnegative().meta({
|
|
28509
28671
|
description: "Nonce value to force-set on the sender's nonce tracker",
|
|
28510
28672
|
examples: [42]
|
|
28511
28673
|
})
|
|
28512
28674
|
});
|
|
28513
|
-
var TransactionForceNonceResultSchema =
|
|
28514
|
-
previous:
|
|
28515
|
-
new:
|
|
28675
|
+
var TransactionForceNonceResultSchema = z406.object({
|
|
28676
|
+
previous: z406.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
|
|
28677
|
+
new: z406.number().meta({ description: "New nonce value after force-set" })
|
|
28516
28678
|
});
|
|
28517
28679
|
var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
|
|
28518
28680
|
|
|
28519
28681
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
|
|
28520
|
-
import { z as
|
|
28521
|
-
var TransactionV2CancelInputSchema =
|
|
28522
|
-
transactionId:
|
|
28682
|
+
import { z as z407 } from "zod";
|
|
28683
|
+
var TransactionV2CancelInputSchema = z407.object({
|
|
28684
|
+
transactionId: z407.uuid().meta({
|
|
28523
28685
|
description: "Queue transaction identifier (UUIDv7) to cancel",
|
|
28524
28686
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28525
28687
|
})
|
|
28526
28688
|
});
|
|
28527
|
-
var TransactionCancelResultSchema =
|
|
28528
|
-
status:
|
|
28689
|
+
var TransactionCancelResultSchema = z407.object({
|
|
28690
|
+
status: z407.enum(["cancelled", "cancellation_pending", "error"]).meta({
|
|
28529
28691
|
description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
|
|
28530
28692
|
examples: ["cancelled", "cancellation_pending"]
|
|
28531
28693
|
}),
|
|
28532
|
-
cancelTransactionId:
|
|
28694
|
+
cancelTransactionId: z407.string().optional().meta({
|
|
28533
28695
|
description: "RBF replacement transaction ID when cancellation is pending on-chain"
|
|
28534
28696
|
}),
|
|
28535
|
-
message:
|
|
28697
|
+
message: z407.string().optional().meta({
|
|
28536
28698
|
description: "Human-readable error or status message"
|
|
28537
28699
|
})
|
|
28538
28700
|
});
|
|
28539
28701
|
var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
|
|
28540
28702
|
|
|
28541
28703
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
|
|
28542
|
-
import { z as
|
|
28704
|
+
import { z as z408 } from "zod";
|
|
28543
28705
|
var TRANSACTION_COLLECTION_FIELDS = {
|
|
28544
28706
|
status: enumField([...transactionRequestStates]),
|
|
28545
28707
|
operationType: textField(),
|
|
@@ -28552,12 +28714,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
|
|
|
28552
28714
|
defaultSort: "createdAt",
|
|
28553
28715
|
globalSearch: true
|
|
28554
28716
|
});
|
|
28555
|
-
var TransactionListItemSchema =
|
|
28556
|
-
transactionId:
|
|
28717
|
+
var TransactionListItemSchema = z408.object({
|
|
28718
|
+
transactionId: z408.uuid().meta({
|
|
28557
28719
|
description: "Queue transaction identifier (UUIDv7)",
|
|
28558
28720
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28559
28721
|
}),
|
|
28560
|
-
kind:
|
|
28722
|
+
kind: z408.string().meta({
|
|
28561
28723
|
description: "Mutation kind submitted to the queue",
|
|
28562
28724
|
examples: ["token.create", "token.mint"]
|
|
28563
28725
|
}),
|
|
@@ -28565,19 +28727,19 @@ var TransactionListItemSchema = z405.object({
|
|
|
28565
28727
|
description: "Current transaction queue state",
|
|
28566
28728
|
examples: ["QUEUED", "COMPLETED", "FAILED"]
|
|
28567
28729
|
}),
|
|
28568
|
-
subStatus:
|
|
28730
|
+
subStatus: z408.string().nullable().meta({
|
|
28569
28731
|
description: "Optional queue sub-status with finer-grained detail",
|
|
28570
28732
|
examples: ["TIMEOUT", null]
|
|
28571
28733
|
}),
|
|
28572
|
-
fromAddress:
|
|
28734
|
+
fromAddress: z408.string().meta({
|
|
28573
28735
|
description: "Sender wallet address",
|
|
28574
28736
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28575
28737
|
}),
|
|
28576
|
-
chainId:
|
|
28738
|
+
chainId: z408.number().int().meta({
|
|
28577
28739
|
description: "Target chain ID",
|
|
28578
28740
|
examples: [1]
|
|
28579
28741
|
}),
|
|
28580
|
-
transactionHash:
|
|
28742
|
+
transactionHash: z408.string().nullable().meta({
|
|
28581
28743
|
description: "Primary transaction hash once broadcast",
|
|
28582
28744
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
28583
28745
|
}),
|
|
@@ -28597,19 +28759,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
|
28597
28759
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
28598
28760
|
|
|
28599
28761
|
// ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
|
|
28600
|
-
import { z as
|
|
28601
|
-
var TransactionStatusInputSchema =
|
|
28602
|
-
transactionId:
|
|
28762
|
+
import { z as z409 } from "zod";
|
|
28763
|
+
var TransactionStatusInputSchema = z409.object({
|
|
28764
|
+
transactionId: z409.uuid().meta({
|
|
28603
28765
|
description: "Queue transaction identifier (UUIDv7)",
|
|
28604
28766
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28605
28767
|
})
|
|
28606
28768
|
});
|
|
28607
|
-
var TransactionStatusOutputSchema =
|
|
28608
|
-
transactionId:
|
|
28769
|
+
var TransactionStatusOutputSchema = z409.object({
|
|
28770
|
+
transactionId: z409.uuid().meta({
|
|
28609
28771
|
description: "Queue transaction identifier (UUIDv7)",
|
|
28610
28772
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28611
28773
|
}),
|
|
28612
|
-
kind:
|
|
28774
|
+
kind: z409.string().meta({
|
|
28613
28775
|
description: "Mutation kind submitted to the queue",
|
|
28614
28776
|
examples: ["token.create", "token.mint"]
|
|
28615
28777
|
}),
|
|
@@ -28617,23 +28779,23 @@ var TransactionStatusOutputSchema = z406.object({
|
|
|
28617
28779
|
description: "Current transaction queue state",
|
|
28618
28780
|
examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
|
|
28619
28781
|
}),
|
|
28620
|
-
subStatus:
|
|
28782
|
+
subStatus: z409.string().nullable().meta({
|
|
28621
28783
|
description: "Optional queue sub-status with finer-grained progress or failure detail",
|
|
28622
28784
|
examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
|
|
28623
28785
|
}),
|
|
28624
|
-
transactionHash:
|
|
28786
|
+
transactionHash: z409.string().nullable().meta({
|
|
28625
28787
|
description: "Primary transaction hash once broadcast",
|
|
28626
28788
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
28627
28789
|
}),
|
|
28628
|
-
transactionHashes:
|
|
28790
|
+
transactionHashes: z409.array(z409.string()).optional().meta({
|
|
28629
28791
|
description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
|
|
28630
28792
|
examples: [["0xabc...", "0xdef..."]]
|
|
28631
28793
|
}),
|
|
28632
|
-
blockNumber:
|
|
28794
|
+
blockNumber: z409.string().nullable().meta({
|
|
28633
28795
|
description: "Confirmed block number when available",
|
|
28634
28796
|
examples: ["12345678", null]
|
|
28635
28797
|
}),
|
|
28636
|
-
errorMessage:
|
|
28798
|
+
errorMessage: z409.string().nullable().meta({
|
|
28637
28799
|
description: "Human-readable error or timeout detail when available",
|
|
28638
28800
|
examples: ["Execution reverted", "Receipt not found after repeated checks", null]
|
|
28639
28801
|
}),
|
|
@@ -28712,12 +28874,12 @@ var transactionV2Contract = {
|
|
|
28712
28874
|
};
|
|
28713
28875
|
|
|
28714
28876
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
|
|
28715
|
-
import { z as
|
|
28877
|
+
import { z as z415 } from "zod";
|
|
28716
28878
|
|
|
28717
28879
|
// ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
28718
|
-
import { z as
|
|
28719
|
-
var UserReadByNationalIdInputSchema =
|
|
28720
|
-
nationalId:
|
|
28880
|
+
import { z as z410 } from "zod";
|
|
28881
|
+
var UserReadByNationalIdInputSchema = z410.object({
|
|
28882
|
+
nationalId: z410.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
28721
28883
|
});
|
|
28722
28884
|
|
|
28723
28885
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
|
|
@@ -28735,13 +28897,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
|
|
|
28735
28897
|
var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
28736
28898
|
|
|
28737
28899
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
|
|
28738
|
-
import { z as
|
|
28739
|
-
var TokenAssetV2Schema =
|
|
28900
|
+
import { z as z411 } from "zod";
|
|
28901
|
+
var TokenAssetV2Schema = z411.object({
|
|
28740
28902
|
id: ethereumAddress.meta({
|
|
28741
28903
|
description: "The token contract address",
|
|
28742
28904
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28743
28905
|
}),
|
|
28744
|
-
name:
|
|
28906
|
+
name: z411.string().meta({
|
|
28745
28907
|
description: "The token name",
|
|
28746
28908
|
examples: ["Bond Token", "Equity Share"]
|
|
28747
28909
|
}),
|
|
@@ -28761,19 +28923,19 @@ var TokenAssetV2Schema = z408.object({
|
|
|
28761
28923
|
description: "The total supply of the token (raw on-chain uint256)",
|
|
28762
28924
|
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
28763
28925
|
}),
|
|
28764
|
-
bond:
|
|
28765
|
-
isMatured:
|
|
28926
|
+
bond: z411.object({
|
|
28927
|
+
isMatured: z411.boolean().meta({
|
|
28766
28928
|
description: "Whether the bond is matured",
|
|
28767
28929
|
examples: [true, false]
|
|
28768
28930
|
})
|
|
28769
28931
|
}).optional().nullable().meta({ description: "The bond details", examples: [] }),
|
|
28770
|
-
yield:
|
|
28771
|
-
schedule:
|
|
28932
|
+
yield: z411.object({
|
|
28933
|
+
schedule: z411.object({
|
|
28772
28934
|
id: ethereumAddress.meta({
|
|
28773
28935
|
description: "The yield schedule contract address",
|
|
28774
28936
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
28775
28937
|
}),
|
|
28776
|
-
denominationAsset:
|
|
28938
|
+
denominationAsset: z411.object({
|
|
28777
28939
|
id: ethereumAddress.meta({
|
|
28778
28940
|
description: "The denomination asset contract address",
|
|
28779
28941
|
examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
|
|
@@ -28793,8 +28955,8 @@ var TokenAssetV2Schema = z408.object({
|
|
|
28793
28955
|
}).nullable().meta({ description: "The yield schedule details", examples: [] })
|
|
28794
28956
|
}).nullable().meta({ description: "The yield details", examples: [] })
|
|
28795
28957
|
});
|
|
28796
|
-
var UserAssetBalanceV2ItemSchema =
|
|
28797
|
-
id:
|
|
28958
|
+
var UserAssetBalanceV2ItemSchema = z411.object({
|
|
28959
|
+
id: z411.uuid().meta({
|
|
28798
28960
|
description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
|
|
28799
28961
|
examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
|
|
28800
28962
|
}),
|
|
@@ -28814,7 +28976,7 @@ var UserAssetBalanceV2ItemSchema = z408.object({
|
|
|
28814
28976
|
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.",
|
|
28815
28977
|
examples: ["5.00", null]
|
|
28816
28978
|
}),
|
|
28817
|
-
priceInBaseCurrencyReliable:
|
|
28979
|
+
priceInBaseCurrencyReliable: z411.boolean().meta({
|
|
28818
28980
|
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.",
|
|
28819
28981
|
examples: [true, false]
|
|
28820
28982
|
}),
|
|
@@ -28866,10 +29028,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
|
|
|
28866
29028
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
28867
29029
|
|
|
28868
29030
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
28869
|
-
import { z as
|
|
29031
|
+
import { z as z414 } from "zod";
|
|
28870
29032
|
|
|
28871
29033
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
|
|
28872
|
-
import { z as
|
|
29034
|
+
import { z as z412 } from "zod";
|
|
28873
29035
|
var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
28874
29036
|
fileName: textField(),
|
|
28875
29037
|
documentType: enumField(kycDocumentTypes, { facetable: true }),
|
|
@@ -28880,19 +29042,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
|
28880
29042
|
var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
|
|
28881
29043
|
defaultSort: "uploadedAt"
|
|
28882
29044
|
});
|
|
28883
|
-
var KycProfileVersionDocumentsV2ListItemSchema =
|
|
28884
|
-
id:
|
|
29045
|
+
var KycProfileVersionDocumentsV2ListItemSchema = z412.object({
|
|
29046
|
+
id: z412.string(),
|
|
28885
29047
|
documentType: kycDocumentType(),
|
|
28886
|
-
fileName:
|
|
28887
|
-
fileSize:
|
|
28888
|
-
mimeType:
|
|
29048
|
+
fileName: z412.string(),
|
|
29049
|
+
fileSize: z412.number(),
|
|
29050
|
+
mimeType: z412.string(),
|
|
28889
29051
|
uploadedAt: timestamp(),
|
|
28890
|
-
uploadedBy:
|
|
29052
|
+
uploadedBy: z412.string().nullable()
|
|
28891
29053
|
});
|
|
28892
29054
|
var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
|
|
28893
29055
|
|
|
28894
29056
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
|
|
28895
|
-
import { z as
|
|
29057
|
+
import { z as z413 } from "zod";
|
|
28896
29058
|
var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
|
|
28897
29059
|
var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
|
|
28898
29060
|
var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
@@ -28905,21 +29067,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
|
28905
29067
|
var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
|
|
28906
29068
|
defaultSort: "versionNumber"
|
|
28907
29069
|
});
|
|
28908
|
-
var KycProfileVersionsV2ListItemSchema =
|
|
28909
|
-
id:
|
|
28910
|
-
versionNumber:
|
|
29070
|
+
var KycProfileVersionsV2ListItemSchema = z413.object({
|
|
29071
|
+
id: z413.string(),
|
|
29072
|
+
versionNumber: z413.number(),
|
|
28911
29073
|
status: kycVersionStatus(),
|
|
28912
29074
|
createdAt: timestamp(),
|
|
28913
|
-
createdBy:
|
|
29075
|
+
createdBy: z413.string().nullable(),
|
|
28914
29076
|
submittedAt: timestamp().nullable(),
|
|
28915
|
-
submittedBy:
|
|
29077
|
+
submittedBy: z413.string().nullable(),
|
|
28916
29078
|
reviewedAt: timestamp().nullable(),
|
|
28917
|
-
reviewedBy:
|
|
28918
|
-
reviewOutcome:
|
|
28919
|
-
isDraft:
|
|
28920
|
-
isUnderReview:
|
|
28921
|
-
isApproved:
|
|
28922
|
-
isCurrent:
|
|
29079
|
+
reviewedBy: z413.string().nullable(),
|
|
29080
|
+
reviewOutcome: z413.enum(KYC_REVIEW_OUTCOMES).nullable(),
|
|
29081
|
+
isDraft: z413.boolean(),
|
|
29082
|
+
isUnderReview: z413.boolean(),
|
|
29083
|
+
isApproved: z413.boolean(),
|
|
29084
|
+
isCurrent: z413.boolean()
|
|
28923
29085
|
});
|
|
28924
29086
|
var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
|
|
28925
29087
|
|
|
@@ -28937,14 +29099,14 @@ var versionsList = v2Contract.route({
|
|
|
28937
29099
|
description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
|
|
28938
29100
|
successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
|
|
28939
29101
|
tags: [V2_TAG.userKyc]
|
|
28940
|
-
}).input(v2Input.paramsQuery(
|
|
29102
|
+
}).input(v2Input.paramsQuery(z414.object({ userId: z414.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
|
|
28941
29103
|
var versionsCreate = v2Contract.route({
|
|
28942
29104
|
method: "POST",
|
|
28943
29105
|
path: "/kyc-profiles/{userId}/versions",
|
|
28944
29106
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
28945
29107
|
successDescription: "KYC profile version created successfully.",
|
|
28946
29108
|
tags: [V2_TAG.userKyc]
|
|
28947
|
-
}).input(v2Input.paramsBody(
|
|
29109
|
+
}).input(v2Input.paramsBody(z414.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
28948
29110
|
var versionRead = v2Contract.route({
|
|
28949
29111
|
method: "GET",
|
|
28950
29112
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -28958,7 +29120,7 @@ var versionUpdate = v2Contract.route({
|
|
|
28958
29120
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
28959
29121
|
successDescription: "KYC profile version updated successfully.",
|
|
28960
29122
|
tags: [V2_TAG.userKyc]
|
|
28961
|
-
}).input(v2Input.paramsBody(
|
|
29123
|
+
}).input(v2Input.paramsBody(z414.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
28962
29124
|
var versionSubmit = v2Contract.route({
|
|
28963
29125
|
method: "POST",
|
|
28964
29126
|
path: "/kyc-profile-versions/{versionId}/submissions",
|
|
@@ -28972,28 +29134,28 @@ var versionApprove = v2Contract.route({
|
|
|
28972
29134
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
28973
29135
|
successDescription: "KYC profile version approved.",
|
|
28974
29136
|
tags: [V2_TAG.userKyc]
|
|
28975
|
-
}).input(v2Input.paramsBody(
|
|
29137
|
+
}).input(v2Input.paramsBody(z414.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
28976
29138
|
var versionReject = v2Contract.route({
|
|
28977
29139
|
method: "POST",
|
|
28978
29140
|
path: "/kyc-profile-versions/{versionId}/rejections",
|
|
28979
29141
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
28980
29142
|
successDescription: "KYC profile version rejected.",
|
|
28981
29143
|
tags: [V2_TAG.userKyc]
|
|
28982
|
-
}).input(v2Input.paramsBody(
|
|
29144
|
+
}).input(v2Input.paramsBody(z414.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
28983
29145
|
var versionRequestUpdate = v2Contract.route({
|
|
28984
29146
|
method: "POST",
|
|
28985
29147
|
path: "/kyc-profile-versions/{versionId}/update-requests",
|
|
28986
29148
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
28987
29149
|
successDescription: "Update request created successfully.",
|
|
28988
29150
|
tags: [V2_TAG.userKyc]
|
|
28989
|
-
}).input(v2Input.paramsBody(
|
|
29151
|
+
}).input(v2Input.paramsBody(z414.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
28990
29152
|
var documentsList = v2Contract.route({
|
|
28991
29153
|
method: "GET",
|
|
28992
29154
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
28993
29155
|
description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
|
|
28994
29156
|
successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
|
|
28995
29157
|
tags: [V2_TAG.userKyc]
|
|
28996
|
-
}).input(v2Input.paramsQuery(
|
|
29158
|
+
}).input(v2Input.paramsQuery(z414.object({ versionId: z414.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
|
|
28997
29159
|
var documentsDelete = v2Contract.route({
|
|
28998
29160
|
method: "DELETE",
|
|
28999
29161
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
|
|
@@ -29007,14 +29169,14 @@ var documentsGetUploadUrl = v2Contract.route({
|
|
|
29007
29169
|
description: "Generate a presigned URL for uploading a KYC document directly to storage.",
|
|
29008
29170
|
successDescription: "Upload URL generated successfully.",
|
|
29009
29171
|
tags: [V2_TAG.userKyc]
|
|
29010
|
-
}).input(v2Input.paramsBody(
|
|
29172
|
+
}).input(v2Input.paramsBody(z414.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
|
|
29011
29173
|
var documentsConfirmUpload = v2Contract.route({
|
|
29012
29174
|
method: "POST",
|
|
29013
29175
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
29014
29176
|
description: "Confirm a document upload after successfully uploading to the presigned URL.",
|
|
29015
29177
|
successDescription: "Document upload confirmed.",
|
|
29016
29178
|
tags: [V2_TAG.userKyc]
|
|
29017
|
-
}).input(v2Input.paramsBody(
|
|
29179
|
+
}).input(v2Input.paramsBody(z414.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
29018
29180
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
29019
29181
|
method: "POST",
|
|
29020
29182
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
|
|
@@ -29092,14 +29254,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
29092
29254
|
description: "Read a single user by their internal database ID.",
|
|
29093
29255
|
successDescription: "User retrieved successfully.",
|
|
29094
29256
|
tags: [V2_TAG.user]
|
|
29095
|
-
}).input(v2Input.params(
|
|
29257
|
+
}).input(v2Input.params(z415.object({ userId: z415.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
29096
29258
|
var readByWallet3 = v2Contract.route({
|
|
29097
29259
|
method: "GET",
|
|
29098
29260
|
path: "/wallets/{wallet}/user",
|
|
29099
29261
|
description: "Read a single user by their Ethereum wallet address.",
|
|
29100
29262
|
successDescription: "User retrieved successfully.",
|
|
29101
29263
|
tags: [V2_TAG.user]
|
|
29102
|
-
}).input(v2Input.params(
|
|
29264
|
+
}).input(v2Input.params(z415.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
29103
29265
|
var readByNationalId = v2Contract.route({
|
|
29104
29266
|
method: "GET",
|
|
29105
29267
|
path: "/national-ids/{nationalId}/user",
|
|
@@ -29208,30 +29370,30 @@ var userV2Contract = {
|
|
|
29208
29370
|
};
|
|
29209
29371
|
|
|
29210
29372
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
|
|
29211
|
-
import { z as
|
|
29212
|
-
var WebhooksV2ChainOfCustodyInputSchema =
|
|
29213
|
-
evtId:
|
|
29214
|
-
});
|
|
29215
|
-
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(
|
|
29216
|
-
evtId:
|
|
29217
|
-
hops:
|
|
29218
|
-
stage:
|
|
29219
|
-
contentHash:
|
|
29220
|
-
signedBy:
|
|
29221
|
-
recordedAt:
|
|
29373
|
+
import { z as z416 } from "zod";
|
|
29374
|
+
var WebhooksV2ChainOfCustodyInputSchema = z416.object({
|
|
29375
|
+
evtId: z416.string().trim().min(1)
|
|
29376
|
+
});
|
|
29377
|
+
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z416.object({
|
|
29378
|
+
evtId: z416.string(),
|
|
29379
|
+
hops: z416.array(z416.object({
|
|
29380
|
+
stage: z416.string(),
|
|
29381
|
+
contentHash: z416.string(),
|
|
29382
|
+
signedBy: z416.string().optional(),
|
|
29383
|
+
recordedAt: z416.coerce.date()
|
|
29222
29384
|
})),
|
|
29223
|
-
merkleRoot:
|
|
29224
|
-
platformSignature:
|
|
29385
|
+
merkleRoot: z416.string(),
|
|
29386
|
+
platformSignature: z416.string()
|
|
29225
29387
|
}));
|
|
29226
29388
|
|
|
29227
29389
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
29228
|
-
import { z as
|
|
29390
|
+
import { z as z418 } from "zod";
|
|
29229
29391
|
|
|
29230
29392
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
|
|
29231
|
-
import { z as
|
|
29232
|
-
var WebhookPayloadShapeSchema =
|
|
29233
|
-
var WebhookBreakerStateSchema =
|
|
29234
|
-
var WebhookDeliveryFailureClassSchema =
|
|
29393
|
+
import { z as z417 } from "zod";
|
|
29394
|
+
var WebhookPayloadShapeSchema = z417.enum(["thin", "fat"]);
|
|
29395
|
+
var WebhookBreakerStateSchema = z417.enum(["closed", "half_open", "open"]);
|
|
29396
|
+
var WebhookDeliveryFailureClassSchema = z417.enum([
|
|
29235
29397
|
"DNS_FAIL",
|
|
29236
29398
|
"TLS_FAIL",
|
|
29237
29399
|
"CONNECT_TIMEOUT",
|
|
@@ -29243,35 +29405,35 @@ var WebhookDeliveryFailureClassSchema = z414.enum([
|
|
|
29243
29405
|
"RECEIPT_INVALID_SIG",
|
|
29244
29406
|
"RECEIPT_HASH_MISMATCH"
|
|
29245
29407
|
]);
|
|
29246
|
-
var WebhookFinalityStateSchema =
|
|
29247
|
-
var WebhookSigningSecretStatusSchema =
|
|
29248
|
-
var WebhookFatEventsAcknowledgmentSchema =
|
|
29249
|
-
acknowledgedAt:
|
|
29250
|
-
acknowledgedByUserId:
|
|
29251
|
-
fieldsAcknowledged:
|
|
29252
|
-
});
|
|
29253
|
-
var WebhookEndpointSchema =
|
|
29254
|
-
id:
|
|
29255
|
-
tenantId:
|
|
29256
|
-
systemId:
|
|
29257
|
-
url:
|
|
29258
|
-
displayName:
|
|
29259
|
-
subscriptions:
|
|
29408
|
+
var WebhookFinalityStateSchema = z417.enum(["pending", "provisional", "final", "retracted", "recalled"]);
|
|
29409
|
+
var WebhookSigningSecretStatusSchema = z417.enum(["active", "previous", "revoked"]);
|
|
29410
|
+
var WebhookFatEventsAcknowledgmentSchema = z417.object({
|
|
29411
|
+
acknowledgedAt: z417.coerce.date(),
|
|
29412
|
+
acknowledgedByUserId: z417.string(),
|
|
29413
|
+
fieldsAcknowledged: z417.array(z417.string())
|
|
29414
|
+
});
|
|
29415
|
+
var WebhookEndpointSchema = z417.object({
|
|
29416
|
+
id: z417.uuid(),
|
|
29417
|
+
tenantId: z417.string(),
|
|
29418
|
+
systemId: z417.string(),
|
|
29419
|
+
url: z417.url(),
|
|
29420
|
+
displayName: z417.string().nullable(),
|
|
29421
|
+
subscriptions: z417.array(z417.string()),
|
|
29260
29422
|
defaultPayloadShape: WebhookPayloadShapeSchema,
|
|
29261
|
-
counterSignedReceipts:
|
|
29423
|
+
counterSignedReceipts: z417.boolean(),
|
|
29262
29424
|
breakerState: WebhookBreakerStateSchema,
|
|
29263
|
-
disabledAt:
|
|
29264
|
-
disabledReason:
|
|
29425
|
+
disabledAt: z417.coerce.date().nullable(),
|
|
29426
|
+
disabledReason: z417.string().nullable(),
|
|
29265
29427
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
|
|
29266
|
-
secret:
|
|
29267
|
-
activeVersion:
|
|
29268
|
-
previousVersion:
|
|
29269
|
-
previousRevokesAt:
|
|
29270
|
-
lastUsedAt:
|
|
29428
|
+
secret: z417.object({
|
|
29429
|
+
activeVersion: z417.number().int().positive().nullable(),
|
|
29430
|
+
previousVersion: z417.number().int().positive().nullable(),
|
|
29431
|
+
previousRevokesAt: z417.coerce.date().nullable(),
|
|
29432
|
+
lastUsedAt: z417.coerce.date().nullable()
|
|
29271
29433
|
}),
|
|
29272
|
-
createdAt:
|
|
29273
|
-
updatedAt:
|
|
29274
|
-
createdByUserId:
|
|
29434
|
+
createdAt: z417.coerce.date(),
|
|
29435
|
+
updatedAt: z417.coerce.date(),
|
|
29436
|
+
createdByUserId: z417.string().nullable()
|
|
29275
29437
|
});
|
|
29276
29438
|
var WEBHOOKS_COLLECTION_FIELDS = {
|
|
29277
29439
|
displayName: textField(),
|
|
@@ -29290,44 +29452,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
|
|
|
29290
29452
|
var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
|
|
29291
29453
|
|
|
29292
29454
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
29293
|
-
var WebhooksV2CreateInputSchema =
|
|
29294
|
-
url:
|
|
29295
|
-
displayName:
|
|
29296
|
-
subscriptions:
|
|
29455
|
+
var WebhooksV2CreateInputSchema = z418.object({
|
|
29456
|
+
url: z418.url(),
|
|
29457
|
+
displayName: z418.string().trim().min(1).max(200).optional(),
|
|
29458
|
+
subscriptions: z418.array(z418.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
|
|
29297
29459
|
defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
|
|
29298
|
-
counterSignedReceipts:
|
|
29460
|
+
counterSignedReceipts: z418.boolean().default(false)
|
|
29299
29461
|
});
|
|
29300
29462
|
var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
|
|
29301
|
-
signingSecret:
|
|
29463
|
+
signingSecret: z418.string().nullable()
|
|
29302
29464
|
});
|
|
29303
29465
|
var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
|
|
29304
29466
|
|
|
29305
29467
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
|
|
29306
|
-
import { z as
|
|
29307
|
-
var WebhooksV2DeleteInputSchema =
|
|
29308
|
-
id:
|
|
29468
|
+
import { z as z419 } from "zod";
|
|
29469
|
+
var WebhooksV2DeleteInputSchema = z419.object({
|
|
29470
|
+
id: z419.uuid()
|
|
29309
29471
|
});
|
|
29310
29472
|
var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
|
|
29311
29473
|
|
|
29312
29474
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
|
|
29313
|
-
import { z as
|
|
29314
|
-
var WebhookDeliveryStatusSchema =
|
|
29315
|
-
var WebhookDeliverySchema =
|
|
29316
|
-
id:
|
|
29317
|
-
eventOutboxId:
|
|
29318
|
-
endpointId:
|
|
29319
|
-
tenantId:
|
|
29320
|
-
evtId:
|
|
29321
|
-
eventType:
|
|
29322
|
-
attemptN:
|
|
29323
|
-
attemptedAt:
|
|
29324
|
-
responseStatus:
|
|
29475
|
+
import { z as z420 } from "zod";
|
|
29476
|
+
var WebhookDeliveryStatusSchema = z420.enum(["pending", "delivered", "failed"]);
|
|
29477
|
+
var WebhookDeliverySchema = z420.object({
|
|
29478
|
+
id: z420.uuid(),
|
|
29479
|
+
eventOutboxId: z420.uuid(),
|
|
29480
|
+
endpointId: z420.uuid(),
|
|
29481
|
+
tenantId: z420.string(),
|
|
29482
|
+
evtId: z420.string(),
|
|
29483
|
+
eventType: z420.string(),
|
|
29484
|
+
attemptN: z420.number().int().nonnegative(),
|
|
29485
|
+
attemptedAt: z420.coerce.date(),
|
|
29486
|
+
responseStatus: z420.number().int().nullable(),
|
|
29325
29487
|
failureClass: WebhookDeliveryFailureClassSchema.nullable(),
|
|
29326
29488
|
status: WebhookDeliveryStatusSchema,
|
|
29327
|
-
deliveredAt:
|
|
29328
|
-
isReplay:
|
|
29329
|
-
isTest:
|
|
29330
|
-
traceId:
|
|
29489
|
+
deliveredAt: z420.coerce.date().nullable(),
|
|
29490
|
+
isReplay: z420.boolean(),
|
|
29491
|
+
isTest: z420.boolean(),
|
|
29492
|
+
traceId: z420.string().nullable()
|
|
29331
29493
|
});
|
|
29332
29494
|
var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
|
|
29333
29495
|
status: enumField(["pending", "delivered", "failed"]),
|
|
@@ -29353,167 +29515,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
|
|
|
29353
29515
|
defaultSort: "attemptedAt",
|
|
29354
29516
|
globalSearch: false
|
|
29355
29517
|
});
|
|
29356
|
-
var WebhooksV2DeliveriesListParamsSchema =
|
|
29357
|
-
id:
|
|
29518
|
+
var WebhooksV2DeliveriesListParamsSchema = z420.object({
|
|
29519
|
+
id: z420.uuid()
|
|
29358
29520
|
});
|
|
29359
29521
|
var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
|
|
29360
29522
|
|
|
29361
29523
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
|
|
29362
|
-
import { z as
|
|
29363
|
-
var WebhooksV2DeliveriesReadInputSchema =
|
|
29364
|
-
id:
|
|
29365
|
-
deliveryId:
|
|
29524
|
+
import { z as z421 } from "zod";
|
|
29525
|
+
var WebhooksV2DeliveriesReadInputSchema = z421.object({
|
|
29526
|
+
id: z421.uuid(),
|
|
29527
|
+
deliveryId: z421.uuid()
|
|
29366
29528
|
});
|
|
29367
29529
|
var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
|
|
29368
|
-
request:
|
|
29369
|
-
payload:
|
|
29370
|
-
signedHeaders:
|
|
29371
|
-
signedStringPreview:
|
|
29530
|
+
request: z421.object({
|
|
29531
|
+
payload: z421.record(z421.string(), z421.json()),
|
|
29532
|
+
signedHeaders: z421.record(z421.string(), z421.union([z421.string(), z421.array(z421.string())])),
|
|
29533
|
+
signedStringPreview: z421.string()
|
|
29372
29534
|
}),
|
|
29373
|
-
response:
|
|
29374
|
-
headers:
|
|
29375
|
-
body:
|
|
29376
|
-
timings:
|
|
29377
|
-
dnsMs:
|
|
29378
|
-
tlsMs:
|
|
29379
|
-
connectMs:
|
|
29380
|
-
ttfbMs:
|
|
29535
|
+
response: z421.object({
|
|
29536
|
+
headers: z421.record(z421.string(), z421.union([z421.string(), z421.array(z421.string())])).nullable(),
|
|
29537
|
+
body: z421.string().nullable(),
|
|
29538
|
+
timings: z421.object({
|
|
29539
|
+
dnsMs: z421.number().int().nullable(),
|
|
29540
|
+
tlsMs: z421.number().int().nullable(),
|
|
29541
|
+
connectMs: z421.number().int().nullable(),
|
|
29542
|
+
ttfbMs: z421.number().int().nullable()
|
|
29381
29543
|
})
|
|
29382
29544
|
})
|
|
29383
29545
|
});
|
|
29384
29546
|
var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
|
|
29385
29547
|
|
|
29386
29548
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
|
|
29387
|
-
import { z as
|
|
29388
|
-
var WebhooksV2DeliveriesRetryInputSchema =
|
|
29389
|
-
id:
|
|
29390
|
-
deliveryId:
|
|
29549
|
+
import { z as z422 } from "zod";
|
|
29550
|
+
var WebhooksV2DeliveriesRetryInputSchema = z422.object({
|
|
29551
|
+
id: z422.uuid(),
|
|
29552
|
+
deliveryId: z422.uuid()
|
|
29391
29553
|
});
|
|
29392
|
-
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(
|
|
29393
|
-
deliveryId:
|
|
29394
|
-
scheduled:
|
|
29554
|
+
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z422.object({
|
|
29555
|
+
deliveryId: z422.uuid(),
|
|
29556
|
+
scheduled: z422.boolean()
|
|
29395
29557
|
}));
|
|
29396
29558
|
|
|
29397
29559
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
|
|
29398
|
-
import { z as
|
|
29399
|
-
var WebhooksV2ReadInputSchema =
|
|
29400
|
-
id:
|
|
29560
|
+
import { z as z423 } from "zod";
|
|
29561
|
+
var WebhooksV2ReadInputSchema = z423.object({
|
|
29562
|
+
id: z423.uuid()
|
|
29401
29563
|
});
|
|
29402
29564
|
var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
|
|
29403
29565
|
|
|
29404
29566
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
|
|
29405
|
-
import { z as
|
|
29406
|
-
var WebhooksV2RecallsParamsSchema =
|
|
29407
|
-
evtId:
|
|
29408
|
-
});
|
|
29409
|
-
var WebhooksV2RecallsBodySchema =
|
|
29410
|
-
reason:
|
|
29411
|
-
});
|
|
29412
|
-
var WebhooksV2RecallsOutputSchema = createSingleResponse(
|
|
29413
|
-
evtId:
|
|
29414
|
-
recalledEvtId:
|
|
29415
|
-
supersedes:
|
|
29416
|
-
reason:
|
|
29417
|
-
recalledByUserId:
|
|
29567
|
+
import { z as z424 } from "zod";
|
|
29568
|
+
var WebhooksV2RecallsParamsSchema = z424.object({
|
|
29569
|
+
evtId: z424.string().trim().min(1)
|
|
29570
|
+
});
|
|
29571
|
+
var WebhooksV2RecallsBodySchema = z424.object({
|
|
29572
|
+
reason: z424.string().trim().min(1).max(2000)
|
|
29573
|
+
});
|
|
29574
|
+
var WebhooksV2RecallsOutputSchema = createSingleResponse(z424.object({
|
|
29575
|
+
evtId: z424.string(),
|
|
29576
|
+
recalledEvtId: z424.string(),
|
|
29577
|
+
supersedes: z424.string(),
|
|
29578
|
+
reason: z424.string(),
|
|
29579
|
+
recalledByUserId: z424.string()
|
|
29418
29580
|
}));
|
|
29419
29581
|
|
|
29420
29582
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
|
|
29421
|
-
import { z as
|
|
29422
|
-
var WebhooksV2ReplayByRangeSchema =
|
|
29423
|
-
fromBlock:
|
|
29424
|
-
toBlock:
|
|
29425
|
-
chainId:
|
|
29426
|
-
confirmLargeRange:
|
|
29427
|
-
});
|
|
29428
|
-
var WebhooksV2ReplayByEventSchema =
|
|
29429
|
-
evtId:
|
|
29430
|
-
chainId:
|
|
29431
|
-
});
|
|
29432
|
-
var WebhooksV2ReplaysParamsSchema =
|
|
29433
|
-
id:
|
|
29434
|
-
});
|
|
29435
|
-
var WebhooksV2ReplaysBodySchema =
|
|
29436
|
-
var WebhooksV2ReplaysOutputSchema = createSingleResponse(
|
|
29437
|
-
replayId:
|
|
29438
|
-
endpointId:
|
|
29439
|
-
eventsEnqueued:
|
|
29440
|
-
snapshotToBlock:
|
|
29583
|
+
import { z as z425 } from "zod";
|
|
29584
|
+
var WebhooksV2ReplayByRangeSchema = z425.object({
|
|
29585
|
+
fromBlock: z425.coerce.bigint(),
|
|
29586
|
+
toBlock: z425.coerce.bigint().optional(),
|
|
29587
|
+
chainId: z425.coerce.number().int().positive(),
|
|
29588
|
+
confirmLargeRange: z425.boolean().default(false)
|
|
29589
|
+
});
|
|
29590
|
+
var WebhooksV2ReplayByEventSchema = z425.object({
|
|
29591
|
+
evtId: z425.string().trim().min(1),
|
|
29592
|
+
chainId: z425.coerce.number().int().positive().optional()
|
|
29593
|
+
});
|
|
29594
|
+
var WebhooksV2ReplaysParamsSchema = z425.object({
|
|
29595
|
+
id: z425.uuid()
|
|
29596
|
+
});
|
|
29597
|
+
var WebhooksV2ReplaysBodySchema = z425.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
|
|
29598
|
+
var WebhooksV2ReplaysOutputSchema = createSingleResponse(z425.object({
|
|
29599
|
+
replayId: z425.uuid(),
|
|
29600
|
+
endpointId: z425.uuid(),
|
|
29601
|
+
eventsEnqueued: z425.number().int().nonnegative(),
|
|
29602
|
+
snapshotToBlock: z425.string().nullable()
|
|
29441
29603
|
}));
|
|
29442
29604
|
|
|
29443
29605
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
|
|
29444
|
-
import { z as
|
|
29445
|
-
var WebhooksV2RevokeSecretInputSchema =
|
|
29446
|
-
id:
|
|
29606
|
+
import { z as z426 } from "zod";
|
|
29607
|
+
var WebhooksV2RevokeSecretInputSchema = z426.object({
|
|
29608
|
+
id: z426.uuid()
|
|
29447
29609
|
});
|
|
29448
|
-
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(
|
|
29449
|
-
endpointId:
|
|
29450
|
-
activeVersion:
|
|
29451
|
-
previousVersion:
|
|
29452
|
-
revokedVersion:
|
|
29610
|
+
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z426.object({
|
|
29611
|
+
endpointId: z426.uuid(),
|
|
29612
|
+
activeVersion: z426.number().int().positive(),
|
|
29613
|
+
previousVersion: z426.number().int().positive().nullable(),
|
|
29614
|
+
revokedVersion: z426.number().int().positive()
|
|
29453
29615
|
}));
|
|
29454
29616
|
|
|
29455
29617
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
|
|
29456
|
-
import { z as
|
|
29457
|
-
var WebhooksV2RotateSecretInputSchema =
|
|
29458
|
-
id:
|
|
29459
|
-
});
|
|
29460
|
-
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(
|
|
29461
|
-
endpointId:
|
|
29462
|
-
activeVersion:
|
|
29463
|
-
previousVersion:
|
|
29464
|
-
previousRevokesAt:
|
|
29465
|
-
signingSecret:
|
|
29618
|
+
import { z as z427 } from "zod";
|
|
29619
|
+
var WebhooksV2RotateSecretInputSchema = z427.object({
|
|
29620
|
+
id: z427.uuid()
|
|
29621
|
+
});
|
|
29622
|
+
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z427.object({
|
|
29623
|
+
endpointId: z427.uuid(),
|
|
29624
|
+
activeVersion: z427.number().int().positive(),
|
|
29625
|
+
previousVersion: z427.number().int().positive().nullable(),
|
|
29626
|
+
previousRevokesAt: z427.coerce.date().nullable(),
|
|
29627
|
+
signingSecret: z427.string().nullable()
|
|
29466
29628
|
}));
|
|
29467
29629
|
|
|
29468
29630
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
|
|
29469
|
-
import { z as
|
|
29470
|
-
var WebhooksV2StatsInputSchema =
|
|
29471
|
-
endpointId:
|
|
29631
|
+
import { z as z428 } from "zod";
|
|
29632
|
+
var WebhooksV2StatsInputSchema = z428.object({
|
|
29633
|
+
endpointId: z428.uuid().optional()
|
|
29472
29634
|
});
|
|
29473
|
-
var WebhooksV2StatsOutputDataSchema =
|
|
29474
|
-
totalDeliveries:
|
|
29475
|
-
delivered:
|
|
29476
|
-
failed:
|
|
29477
|
-
hourlyBuckets:
|
|
29635
|
+
var WebhooksV2StatsOutputDataSchema = z428.object({
|
|
29636
|
+
totalDeliveries: z428.number().int().min(0),
|
|
29637
|
+
delivered: z428.number().int().min(0),
|
|
29638
|
+
failed: z428.number().int().min(0),
|
|
29639
|
+
hourlyBuckets: z428.array(z428.number().int().min(0)).length(24)
|
|
29478
29640
|
});
|
|
29479
29641
|
var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
|
|
29480
29642
|
|
|
29481
29643
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
|
|
29482
|
-
import { z as
|
|
29483
|
-
var WebhooksV2TestEventParamsSchema =
|
|
29484
|
-
id:
|
|
29644
|
+
import { z as z429 } from "zod";
|
|
29645
|
+
var WebhooksV2TestEventParamsSchema = z429.object({
|
|
29646
|
+
id: z429.uuid()
|
|
29485
29647
|
});
|
|
29486
|
-
var WebhooksV2TestEventBodySchema =
|
|
29487
|
-
eventType:
|
|
29648
|
+
var WebhooksV2TestEventBodySchema = z429.object({
|
|
29649
|
+
eventType: z429.string().trim().min(1).default("webhook.test.final")
|
|
29488
29650
|
});
|
|
29489
|
-
var WebhooksV2TestEventOutputSchema = createSingleResponse(
|
|
29490
|
-
evtId:
|
|
29491
|
-
deliveryId:
|
|
29492
|
-
isTest:
|
|
29651
|
+
var WebhooksV2TestEventOutputSchema = createSingleResponse(z429.object({
|
|
29652
|
+
evtId: z429.string(),
|
|
29653
|
+
deliveryId: z429.uuid().nullable(),
|
|
29654
|
+
isTest: z429.literal(true)
|
|
29493
29655
|
}));
|
|
29494
29656
|
|
|
29495
29657
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
|
|
29496
|
-
import { z as
|
|
29497
|
-
var WebhooksV2UpdateParamsSchema =
|
|
29498
|
-
id:
|
|
29658
|
+
import { z as z430 } from "zod";
|
|
29659
|
+
var WebhooksV2UpdateParamsSchema = z430.object({
|
|
29660
|
+
id: z430.uuid()
|
|
29499
29661
|
});
|
|
29500
|
-
var WebhooksV2UpdateBodySchema =
|
|
29501
|
-
url:
|
|
29502
|
-
displayName:
|
|
29503
|
-
subscriptions:
|
|
29662
|
+
var WebhooksV2UpdateBodySchema = z430.object({
|
|
29663
|
+
url: z430.url().optional(),
|
|
29664
|
+
displayName: z430.string().trim().min(1).max(200).nullable().optional(),
|
|
29665
|
+
subscriptions: z430.array(z430.string().trim().min(1)).min(1).optional(),
|
|
29504
29666
|
defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
|
|
29505
|
-
counterSignedReceipts:
|
|
29506
|
-
disabled:
|
|
29507
|
-
disabledReason:
|
|
29667
|
+
counterSignedReceipts: z430.boolean().optional(),
|
|
29668
|
+
disabled: z430.boolean().optional(),
|
|
29669
|
+
disabledReason: z430.string().trim().min(1).max(500).nullable().optional(),
|
|
29508
29670
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
|
|
29509
29671
|
acknowledgedAt: true,
|
|
29510
29672
|
acknowledgedByUserId: true
|
|
29511
29673
|
}).optional()
|
|
29512
29674
|
});
|
|
29513
|
-
var WebhooksV2UpdateQuerySchema =
|
|
29514
|
-
acknowledgePending:
|
|
29675
|
+
var WebhooksV2UpdateQuerySchema = z430.object({
|
|
29676
|
+
acknowledgePending: z430.union([z430.literal("true"), z430.literal(true)]).transform(() => true).optional()
|
|
29515
29677
|
}).optional();
|
|
29516
|
-
var WebhooksV2UpdateInputSchema =
|
|
29678
|
+
var WebhooksV2UpdateInputSchema = z430.object({
|
|
29517
29679
|
params: WebhooksV2UpdateParamsSchema,
|
|
29518
29680
|
body: WebhooksV2UpdateBodySchema,
|
|
29519
29681
|
query: WebhooksV2UpdateQuerySchema
|
|
@@ -29648,21 +29810,21 @@ var webhooksV2Contract = {
|
|
|
29648
29810
|
};
|
|
29649
29811
|
|
|
29650
29812
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
29651
|
-
import { z as
|
|
29813
|
+
import { z as z432 } from "zod";
|
|
29652
29814
|
|
|
29653
29815
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
|
|
29654
|
-
import { z as
|
|
29655
|
-
var WebhookReceiptVerificationFailureClassSchema =
|
|
29656
|
-
var WebhookReceiptSchema =
|
|
29657
|
-
id:
|
|
29658
|
-
deliveryId:
|
|
29659
|
-
evtId:
|
|
29660
|
-
tenantId:
|
|
29661
|
-
endpointId:
|
|
29662
|
-
consumerSignature:
|
|
29663
|
-
innerEventHash:
|
|
29664
|
-
receivedAt:
|
|
29665
|
-
verifiedAt:
|
|
29816
|
+
import { z as z431 } from "zod";
|
|
29817
|
+
var WebhookReceiptVerificationFailureClassSchema = z431.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
|
|
29818
|
+
var WebhookReceiptSchema = z431.object({
|
|
29819
|
+
id: z431.uuid(),
|
|
29820
|
+
deliveryId: z431.uuid(),
|
|
29821
|
+
evtId: z431.string(),
|
|
29822
|
+
tenantId: z431.string(),
|
|
29823
|
+
endpointId: z431.uuid(),
|
|
29824
|
+
consumerSignature: z431.string(),
|
|
29825
|
+
innerEventHash: z431.string(),
|
|
29826
|
+
receivedAt: z431.coerce.date(),
|
|
29827
|
+
verifiedAt: z431.coerce.date().nullable(),
|
|
29666
29828
|
verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
|
|
29667
29829
|
});
|
|
29668
29830
|
var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
|
|
@@ -29679,19 +29841,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
|
|
|
29679
29841
|
var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
|
|
29680
29842
|
|
|
29681
29843
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
29682
|
-
var WebhookReceiptsV2CreateInputSchema =
|
|
29683
|
-
deliveryId:
|
|
29684
|
-
evtId:
|
|
29685
|
-
endpointId:
|
|
29686
|
-
consumerSignature:
|
|
29687
|
-
innerEventHash:
|
|
29844
|
+
var WebhookReceiptsV2CreateInputSchema = z432.object({
|
|
29845
|
+
deliveryId: z432.uuid(),
|
|
29846
|
+
evtId: z432.string().trim().min(1),
|
|
29847
|
+
endpointId: z432.uuid(),
|
|
29848
|
+
consumerSignature: z432.string().trim().min(1),
|
|
29849
|
+
innerEventHash: z432.string().trim().min(1)
|
|
29688
29850
|
});
|
|
29689
29851
|
var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
29690
29852
|
|
|
29691
29853
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
|
|
29692
|
-
import { z as
|
|
29693
|
-
var WebhookReceiptsV2ReadInputSchema =
|
|
29694
|
-
id:
|
|
29854
|
+
import { z as z433 } from "zod";
|
|
29855
|
+
var WebhookReceiptsV2ReadInputSchema = z433.object({
|
|
29856
|
+
id: z433.uuid()
|
|
29695
29857
|
});
|
|
29696
29858
|
var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
29697
29859
|
|
|
@@ -29740,6 +29902,7 @@ var v2Contract2 = {
|
|
|
29740
29902
|
compliance: complianceV2Contract,
|
|
29741
29903
|
exchangeRates: exchangeRatesV2Contract,
|
|
29742
29904
|
externalToken: externalTokenV2Contract,
|
|
29905
|
+
historicalBalances: historicalBalancesV2Contract,
|
|
29743
29906
|
identityRecovery: identityRecoveryV2Contract,
|
|
29744
29907
|
invitation: invitationV2Contract,
|
|
29745
29908
|
restate: restateV2Contract,
|
|
@@ -29838,7 +30001,7 @@ function getDapiPublicErrorFromResponseBody(body) {
|
|
|
29838
30001
|
if (isDapiPublicError(body)) {
|
|
29839
30002
|
return body;
|
|
29840
30003
|
}
|
|
29841
|
-
if (!
|
|
30004
|
+
if (!isRecord3(body)) {
|
|
29842
30005
|
return;
|
|
29843
30006
|
}
|
|
29844
30007
|
if (isDapiPublicError(body.error)) {
|
|
@@ -29847,11 +30010,11 @@ function getDapiPublicErrorFromResponseBody(body) {
|
|
|
29847
30010
|
if (isDapiPublicError(body.dapiError)) {
|
|
29848
30011
|
return body.dapiError;
|
|
29849
30012
|
}
|
|
29850
|
-
if (
|
|
30013
|
+
if (isRecord3(body.error)) {
|
|
29851
30014
|
if (isDapiPublicError(body.error.dapiError)) {
|
|
29852
30015
|
return body.error.dapiError;
|
|
29853
30016
|
}
|
|
29854
|
-
if (
|
|
30017
|
+
if (isRecord3(body.error.data) && isDapiPublicError(body.error.data.dapiError)) {
|
|
29855
30018
|
return body.error.data.dapiError;
|
|
29856
30019
|
}
|
|
29857
30020
|
}
|
|
@@ -29859,15 +30022,15 @@ function getDapiPublicErrorFromResponseBody(body) {
|
|
|
29859
30022
|
}
|
|
29860
30023
|
var DAPI_ERROR_ID_PATTERN = /^DALP-\d+$/;
|
|
29861
30024
|
function isDapiPublicError(value3) {
|
|
29862
|
-
if (!
|
|
30025
|
+
if (!isRecord3(value3)) {
|
|
29863
30026
|
return false;
|
|
29864
30027
|
}
|
|
29865
30028
|
if (typeof value3.id !== "string" || !DAPI_ERROR_ID_PATTERN.test(value3.id) || typeof value3.category !== "string" || typeof value3.status !== "number" || typeof value3.retryable !== "boolean" || typeof value3.message !== "string" || typeof value3.why !== "string" || typeof value3.fix !== "string") {
|
|
29866
30029
|
return false;
|
|
29867
30030
|
}
|
|
29868
|
-
return value3.details === undefined ||
|
|
30031
|
+
return value3.details === undefined || isRecord3(value3.details);
|
|
29869
30032
|
}
|
|
29870
|
-
function
|
|
30033
|
+
function isRecord3(value3) {
|
|
29871
30034
|
return typeof value3 === "object" && value3 !== null && !Array.isArray(value3);
|
|
29872
30035
|
}
|
|
29873
30036
|
|
|
@@ -29968,7 +30131,7 @@ function normalizeDalpBaseUrl(url) {
|
|
|
29968
30131
|
// package.json
|
|
29969
30132
|
var package_default = {
|
|
29970
30133
|
name: "@settlemint/dalp-sdk",
|
|
29971
|
-
version: "2.1.7-main.
|
|
30134
|
+
version: "2.1.7-main.25679765049",
|
|
29972
30135
|
private: false,
|
|
29973
30136
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
29974
30137
|
homepage: "https://settlemint.com",
|