@settlemint/dalp-sdk 2.1.7-main.22870379202 → 2.1.7-main.22873055756
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 +162 -27
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3166,7 +3166,12 @@ var TokenSaleBuyOutputSchema = z28.object({
|
|
|
3166
3166
|
|
|
3167
3167
|
// ../../packages/dalp/dapi/contract/src/routes/addons/token-sale/routes/mutations/claim-refund/token-sale.claim-refund.schema.ts
|
|
3168
3168
|
import { z as z29 } from "zod";
|
|
3169
|
-
var TokenSaleClaimRefundInputSchema = TokenSaleMutationInputSchema
|
|
3169
|
+
var TokenSaleClaimRefundInputSchema = TokenSaleMutationInputSchema.extend({
|
|
3170
|
+
currency: ethereumAddress.meta({
|
|
3171
|
+
description: "The payment currency address to claim a refund for",
|
|
3172
|
+
examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
|
|
3173
|
+
})
|
|
3174
|
+
});
|
|
3170
3175
|
var TokenSaleClaimRefundOutputSchema = z29.object({
|
|
3171
3176
|
transactionHash: z29.string()
|
|
3172
3177
|
});
|
|
@@ -12577,6 +12582,11 @@ var BlockchainMutationMetaSchema = z291.object({
|
|
|
12577
12582
|
description: "Transaction hashes produced by this mutation. The same values are also emitted via X-Transaction-Hash response headers."
|
|
12578
12583
|
})
|
|
12579
12584
|
});
|
|
12585
|
+
var AsyncAcceptedResultSchema = z291.object({
|
|
12586
|
+
transactionId: z291.string().meta({ description: "Transaction ID (UUIDv7)" }),
|
|
12587
|
+
status: z291.string().meta({ description: "Current transaction state" }),
|
|
12588
|
+
statusUrl: z291.string().meta({ description: "URL for polling transaction status" })
|
|
12589
|
+
});
|
|
12580
12590
|
function createBlockchainMutationResponse(itemSchema) {
|
|
12581
12591
|
return z291.object({
|
|
12582
12592
|
data: itemSchema,
|
|
@@ -12584,6 +12594,16 @@ function createBlockchainMutationResponse(itemSchema) {
|
|
|
12584
12594
|
links: SingleLinksSchema
|
|
12585
12595
|
});
|
|
12586
12596
|
}
|
|
12597
|
+
function createAsyncBlockchainMutationResponse(itemSchema) {
|
|
12598
|
+
return z291.union([
|
|
12599
|
+
z291.object({
|
|
12600
|
+
data: itemSchema,
|
|
12601
|
+
meta: BlockchainMutationMetaSchema,
|
|
12602
|
+
links: SingleLinksSchema
|
|
12603
|
+
}),
|
|
12604
|
+
AsyncAcceptedResultSchema
|
|
12605
|
+
]);
|
|
12606
|
+
}
|
|
12587
12607
|
// ../../packages/dalp/dapi/query/src/schemas/delete-response.schema.ts
|
|
12588
12608
|
import { z as z292 } from "zod";
|
|
12589
12609
|
var DeleteResponseSchema = z292.object({
|
|
@@ -15206,7 +15226,7 @@ var TokenRemoveMetadataInputSchema = TokenMutationInputSchema.extend({
|
|
|
15206
15226
|
});
|
|
15207
15227
|
|
|
15208
15228
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.mutations.contract.ts
|
|
15209
|
-
var mutationOutput =
|
|
15229
|
+
var mutationOutput = createAsyncBlockchainMutationResponse(TokenSchema);
|
|
15210
15230
|
var create20 = v2Contract.route({
|
|
15211
15231
|
method: "POST",
|
|
15212
15232
|
path: "/token",
|
|
@@ -15370,7 +15390,7 @@ var grantRole2 = v2Contract.route({
|
|
|
15370
15390
|
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.union([
|
|
15371
15391
|
z352.object(TokenGrantRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
15372
15392
|
z352.object(TokenGrantRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
15373
|
-
]))).output(
|
|
15393
|
+
]))).output(createAsyncBlockchainMutationResponse(TokenGrantRoleOutputSchema));
|
|
15374
15394
|
var revokeRole2 = v2Contract.route({
|
|
15375
15395
|
method: "POST",
|
|
15376
15396
|
path: "/token/{tokenAddress}/revoke-role",
|
|
@@ -15380,21 +15400,21 @@ var revokeRole2 = v2Contract.route({
|
|
|
15380
15400
|
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.union([
|
|
15381
15401
|
z352.object(TokenRevokeRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
15382
15402
|
z352.object(TokenRevokeRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
15383
|
-
]))).output(
|
|
15403
|
+
]))).output(createAsyncBlockchainMutationResponse(TokenRevokeRoleOutputSchema));
|
|
15384
15404
|
var claimIssue2 = v2Contract.route({
|
|
15385
15405
|
method: "POST",
|
|
15386
15406
|
path: "/token/{tokenAddress}/claim-issue",
|
|
15387
15407
|
description: "Issue a claim to the token's identity contract using the governance role.",
|
|
15388
15408
|
successDescription: "Claim issued successfully to token identity.",
|
|
15389
15409
|
tags: ["v2-token"]
|
|
15390
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenClaimIssueInputSchema.omit({ tokenAddress: true }))).output(
|
|
15410
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenClaimIssueInputSchema.omit({ tokenAddress: true }))).output(createAsyncBlockchainMutationResponse(TokenClaimIssueOutputSchema));
|
|
15391
15411
|
var claimRevoke2 = v2Contract.route({
|
|
15392
15412
|
method: "POST",
|
|
15393
15413
|
path: "/token/{tokenAddress}/claim-revoke",
|
|
15394
15414
|
description: "Revoke a claim from the token's identity contract using the governance role.",
|
|
15395
15415
|
successDescription: "Claim revoked successfully from token identity.",
|
|
15396
15416
|
tags: ["v2-token"]
|
|
15397
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenClaimRevokeInputSchema.omit({ tokenAddress: true }))).output(
|
|
15417
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenClaimRevokeInputSchema.omit({ tokenAddress: true }))).output(createAsyncBlockchainMutationResponse(TokenClaimRevokeOutputSchema));
|
|
15398
15418
|
var setMetadata = v2Contract.route({
|
|
15399
15419
|
method: "POST",
|
|
15400
15420
|
path: "/token/{tokenAddress}/set-metadata",
|
|
@@ -16054,6 +16074,113 @@ var tokenV2Contract = {
|
|
|
16054
16074
|
var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
16055
16075
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
16056
16076
|
|
|
16077
|
+
// ../../packages/core/validation/src/transaction-request-state.ts
|
|
16078
|
+
import { z as z357 } from "zod";
|
|
16079
|
+
var transactionRequestStates = [
|
|
16080
|
+
"RECEIVED",
|
|
16081
|
+
"QUEUED",
|
|
16082
|
+
"PREPARING",
|
|
16083
|
+
"PENDING_APPROVAL",
|
|
16084
|
+
"SIGNING",
|
|
16085
|
+
"BROADCASTING",
|
|
16086
|
+
"CONFIRMING",
|
|
16087
|
+
"COMPLETED",
|
|
16088
|
+
"FAILED",
|
|
16089
|
+
"DEAD_LETTER",
|
|
16090
|
+
"CANCELLED"
|
|
16091
|
+
];
|
|
16092
|
+
var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
16093
|
+
var TransactionRequestStateSchema = z357.enum(transactionRequestStates).meta({
|
|
16094
|
+
description: "Current state in the transaction request lifecycle",
|
|
16095
|
+
examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
|
|
16096
|
+
});
|
|
16097
|
+
var transactionRequestState = () => TransactionRequestStateSchema;
|
|
16098
|
+
var transactionRequestStateSet = new Set(transactionRequestStates);
|
|
16099
|
+
var terminalStateSet = new Set(TERMINAL_STATES);
|
|
16100
|
+
var transactionSubStatuses = [
|
|
16101
|
+
"REVERTED",
|
|
16102
|
+
"INSUFFICIENT_BALANCE",
|
|
16103
|
+
"INSUFFICIENT_FUNDS",
|
|
16104
|
+
"NONCE_CONFLICT",
|
|
16105
|
+
"NONCE_TOO_LOW",
|
|
16106
|
+
"UNDERPRICED",
|
|
16107
|
+
"UNAUTHORIZED",
|
|
16108
|
+
"CUSTOM_ERROR",
|
|
16109
|
+
"TIMEOUT",
|
|
16110
|
+
"GAS_ESTIMATION_FAILED",
|
|
16111
|
+
"SIGNING_FAILED",
|
|
16112
|
+
"BLOCKED_BY_POLICY",
|
|
16113
|
+
"APPROVAL_EXPIRED",
|
|
16114
|
+
"RPC_ERROR",
|
|
16115
|
+
"UNKNOWN_ERROR",
|
|
16116
|
+
"SIGNATURE_REJECTED",
|
|
16117
|
+
"RPC_TIMEOUT",
|
|
16118
|
+
"RECEIPT_TIMEOUT",
|
|
16119
|
+
"REPLACED",
|
|
16120
|
+
"DROPPED",
|
|
16121
|
+
"WORKFLOW_CREATING",
|
|
16122
|
+
"WORKFLOW_GRANTING_PERMISSIONS",
|
|
16123
|
+
"WORKFLOW_ISSUING_CLAIMS",
|
|
16124
|
+
"WORKFLOW_UNPAUSING",
|
|
16125
|
+
"WORKFLOW_FAILED"
|
|
16126
|
+
];
|
|
16127
|
+
var TransactionSubStatusSchema = z357.enum(transactionSubStatuses).meta({
|
|
16128
|
+
description: "Detailed sub-status for transaction failures",
|
|
16129
|
+
examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
|
|
16130
|
+
});
|
|
16131
|
+
var transactionSubStatusSet = new Set(transactionSubStatuses);
|
|
16132
|
+
|
|
16133
|
+
// ../../packages/dalp/dapi/contract/src/routes/transaction/routes/transaction.status.schema.ts
|
|
16134
|
+
import { z as z358 } from "zod";
|
|
16135
|
+
var TransactionStatusInputSchema = z358.object({
|
|
16136
|
+
transactionId: z358.uuid().meta({
|
|
16137
|
+
description: "Queue transaction identifier (UUIDv7)",
|
|
16138
|
+
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
16139
|
+
})
|
|
16140
|
+
});
|
|
16141
|
+
var TransactionStatusOutputSchema = z358.object({
|
|
16142
|
+
transactionId: z358.uuid().meta({
|
|
16143
|
+
description: "Queue transaction identifier (UUIDv7)",
|
|
16144
|
+
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
16145
|
+
}),
|
|
16146
|
+
kind: z358.string().meta({
|
|
16147
|
+
description: "Mutation kind submitted to the queue",
|
|
16148
|
+
examples: ["token.create", "token.mint"]
|
|
16149
|
+
}),
|
|
16150
|
+
status: transactionRequestState().meta({
|
|
16151
|
+
description: "Current transaction queue state",
|
|
16152
|
+
examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
|
|
16153
|
+
}),
|
|
16154
|
+
subStatus: z358.string().nullable().meta({
|
|
16155
|
+
description: "Optional queue sub-status with finer-grained progress or failure detail",
|
|
16156
|
+
examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
|
|
16157
|
+
}),
|
|
16158
|
+
transactionHash: z358.string().nullable().meta({
|
|
16159
|
+
description: "Primary transaction hash once broadcast",
|
|
16160
|
+
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
16161
|
+
}),
|
|
16162
|
+
blockNumber: z358.string().nullable().meta({
|
|
16163
|
+
description: "Confirmed block number when available",
|
|
16164
|
+
examples: ["12345678", null]
|
|
16165
|
+
}),
|
|
16166
|
+
errorMessage: z358.string().nullable().meta({
|
|
16167
|
+
description: "Human-readable error or timeout detail when available",
|
|
16168
|
+
examples: ["Execution reverted", "Receipt not found after repeated checks", null]
|
|
16169
|
+
}),
|
|
16170
|
+
createdAt: z358.iso.datetime().meta({
|
|
16171
|
+
description: "When the transaction request was accepted",
|
|
16172
|
+
examples: ["2026-03-09T10:00:00.000Z"]
|
|
16173
|
+
}),
|
|
16174
|
+
updatedAt: z358.iso.datetime().meta({
|
|
16175
|
+
description: "When the transaction request status last changed",
|
|
16176
|
+
examples: ["2026-03-09T10:00:15.000Z"]
|
|
16177
|
+
})
|
|
16178
|
+
});
|
|
16179
|
+
|
|
16180
|
+
// ../../packages/dalp/dapi/contract/src/routes/v2/transaction/transaction.v2.status.schema.ts
|
|
16181
|
+
var TransactionV2StatusInputSchema = TransactionStatusInputSchema;
|
|
16182
|
+
var TransactionV2StatusOutputSchema = createSingleResponse(TransactionStatusOutputSchema);
|
|
16183
|
+
|
|
16057
16184
|
// ../../packages/dalp/dapi/contract/src/routes/v2/transaction/transaction.v2.contract.ts
|
|
16058
16185
|
var read27 = v2Contract.route({
|
|
16059
16186
|
method: "GET",
|
|
@@ -16062,35 +16189,43 @@ var read27 = v2Contract.route({
|
|
|
16062
16189
|
successDescription: "Transaction retrieved successfully.",
|
|
16063
16190
|
tags: ["v2-transaction"]
|
|
16064
16191
|
}).input(v2Input.params(TransactionV2ReadInputSchema)).output(TransactionV2ReadOutputSchema);
|
|
16192
|
+
var status3 = v2Contract.route({
|
|
16193
|
+
method: "GET",
|
|
16194
|
+
path: "/transactions/{transactionId}/status",
|
|
16195
|
+
description: "Get queue processing status for a previously accepted mutation, including queue state, primary transaction hash, and any failure details.",
|
|
16196
|
+
successDescription: "Transaction queue status retrieved successfully.",
|
|
16197
|
+
tags: ["v2-transaction"]
|
|
16198
|
+
}).input(v2Input.params(TransactionV2StatusInputSchema)).output(TransactionV2StatusOutputSchema);
|
|
16065
16199
|
var transactionV2Contract = {
|
|
16066
|
-
read: read27
|
|
16200
|
+
read: read27,
|
|
16201
|
+
status: status3
|
|
16067
16202
|
};
|
|
16068
16203
|
|
|
16069
16204
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/user.v2.contract.ts
|
|
16070
|
-
import { z as
|
|
16205
|
+
import { z as z363 } from "zod";
|
|
16071
16206
|
|
|
16072
16207
|
// ../../packages/dalp/dapi/contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
16073
|
-
import { z as
|
|
16074
|
-
var UserReadByNationalIdInputSchema =
|
|
16075
|
-
nationalId:
|
|
16208
|
+
import { z as z359 } from "zod";
|
|
16209
|
+
var UserReadByNationalIdInputSchema = z359.object({
|
|
16210
|
+
nationalId: z359.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
16076
16211
|
});
|
|
16077
16212
|
|
|
16078
16213
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/user.v2.events.schema.ts
|
|
16079
|
-
import { z as
|
|
16214
|
+
import { z as z360 } from "zod";
|
|
16080
16215
|
var UserEventsV2InputSchema = DataTableInputSchema.extend({
|
|
16081
|
-
sortBy:
|
|
16216
|
+
sortBy: z360.enum(["blockTimestamp", "eventName", "blockNumber"]).default("blockTimestamp").meta({ description: "Column to sort events by" })
|
|
16082
16217
|
});
|
|
16083
16218
|
var UserEventsV2OutputSchema = createPaginatedResponse(UserEventSchema);
|
|
16084
16219
|
|
|
16085
16220
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/user.v2.list.schema.ts
|
|
16086
|
-
import { z as
|
|
16221
|
+
import { z as z361 } from "zod";
|
|
16087
16222
|
var UserV2ListInputSchema = DataTableInputSchema.extend({
|
|
16088
|
-
sortBy:
|
|
16223
|
+
sortBy: z361.enum(["createdAt", "name", "email", "wallet"]).default("createdAt").meta({ description: "Column to sort users by" })
|
|
16089
16224
|
});
|
|
16090
16225
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
16091
16226
|
|
|
16092
16227
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
16093
|
-
import { z as
|
|
16228
|
+
import { z as z362 } from "zod";
|
|
16094
16229
|
var profileRead = v2Contract.route({
|
|
16095
16230
|
method: "GET",
|
|
16096
16231
|
path: "/kyc-profiles/{userId}",
|
|
@@ -16104,14 +16239,14 @@ var versionsList = v2Contract.route({
|
|
|
16104
16239
|
description: "List all KYC profile versions for a user with pagination and optional status filter.",
|
|
16105
16240
|
successDescription: "KYC profile versions retrieved successfully.",
|
|
16106
16241
|
tags: ["v2-user-kyc"]
|
|
16107
|
-
}).input(v2Input.paramsQuery(
|
|
16242
|
+
}).input(v2Input.paramsQuery(z362.object({ userId: KycProfileVersionsListInputSchema.shape.userId }), KycProfileVersionsListInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsListOutputSchema));
|
|
16108
16243
|
var versionsCreate = v2Contract.route({
|
|
16109
16244
|
method: "POST",
|
|
16110
16245
|
path: "/kyc-profiles/{userId}/versions",
|
|
16111
16246
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
16112
16247
|
successDescription: "KYC profile version created successfully.",
|
|
16113
16248
|
tags: ["v2-user-kyc"]
|
|
16114
|
-
}).input(v2Input.paramsBody(
|
|
16249
|
+
}).input(v2Input.paramsBody(z362.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
16115
16250
|
var versionRead = v2Contract.route({
|
|
16116
16251
|
method: "GET",
|
|
16117
16252
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -16125,7 +16260,7 @@ var versionUpdate = v2Contract.route({
|
|
|
16125
16260
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
16126
16261
|
successDescription: "KYC profile version updated successfully.",
|
|
16127
16262
|
tags: ["v2-user-kyc"]
|
|
16128
|
-
}).input(v2Input.paramsBody(
|
|
16263
|
+
}).input(v2Input.paramsBody(z362.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
16129
16264
|
var versionSubmit = v2Contract.route({
|
|
16130
16265
|
method: "POST",
|
|
16131
16266
|
path: "/kyc-profile-versions/{versionId}/submit",
|
|
@@ -16139,21 +16274,21 @@ var versionApprove = v2Contract.route({
|
|
|
16139
16274
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
16140
16275
|
successDescription: "KYC profile version approved.",
|
|
16141
16276
|
tags: ["v2-user-kyc"]
|
|
16142
|
-
}).input(v2Input.paramsBody(
|
|
16277
|
+
}).input(v2Input.paramsBody(z362.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
16143
16278
|
var versionReject = v2Contract.route({
|
|
16144
16279
|
method: "POST",
|
|
16145
16280
|
path: "/kyc-profile-versions/{versionId}/reject",
|
|
16146
16281
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
16147
16282
|
successDescription: "KYC profile version rejected.",
|
|
16148
16283
|
tags: ["v2-user-kyc"]
|
|
16149
|
-
}).input(v2Input.paramsBody(
|
|
16284
|
+
}).input(v2Input.paramsBody(z362.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
16150
16285
|
var versionRequestUpdate = v2Contract.route({
|
|
16151
16286
|
method: "POST",
|
|
16152
16287
|
path: "/kyc-profile-versions/{versionId}/request-update",
|
|
16153
16288
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
16154
16289
|
successDescription: "Update request created successfully.",
|
|
16155
16290
|
tags: ["v2-user-kyc"]
|
|
16156
|
-
}).input(v2Input.paramsBody(
|
|
16291
|
+
}).input(v2Input.paramsBody(z362.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
16157
16292
|
var documentsList = v2Contract.route({
|
|
16158
16293
|
method: "GET",
|
|
16159
16294
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
@@ -16174,14 +16309,14 @@ var documentsGetUploadUrl = v2Contract.route({
|
|
|
16174
16309
|
description: "Generate a presigned URL for uploading a KYC document directly to storage.",
|
|
16175
16310
|
successDescription: "Upload URL generated successfully.",
|
|
16176
16311
|
tags: ["v2-user-kyc"]
|
|
16177
|
-
}).input(v2Input.paramsBody(
|
|
16312
|
+
}).input(v2Input.paramsBody(z362.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
|
|
16178
16313
|
var documentsConfirmUpload = v2Contract.route({
|
|
16179
16314
|
method: "POST",
|
|
16180
16315
|
path: "/kyc-profile-versions/{versionId}/documents/confirm",
|
|
16181
16316
|
description: "Confirm a document upload after successfully uploading to the presigned URL.",
|
|
16182
16317
|
successDescription: "Document upload confirmed.",
|
|
16183
16318
|
tags: ["v2-user-kyc"]
|
|
16184
|
-
}).input(v2Input.paramsBody(
|
|
16319
|
+
}).input(v2Input.paramsBody(z362.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
16185
16320
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
16186
16321
|
method: "GET",
|
|
16187
16322
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/download-url",
|
|
@@ -16266,14 +16401,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
16266
16401
|
description: "Read a single user by their internal database ID.",
|
|
16267
16402
|
successDescription: "User retrieved successfully.",
|
|
16268
16403
|
tags: ["v2-user"]
|
|
16269
|
-
}).input(v2Input.params(
|
|
16404
|
+
}).input(v2Input.params(z363.object({ userId: z363.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
16270
16405
|
var readByWallet3 = v2Contract.route({
|
|
16271
16406
|
method: "GET",
|
|
16272
16407
|
path: "/user/by-wallet/{wallet}",
|
|
16273
16408
|
description: "Read a single user by their Ethereum wallet address.",
|
|
16274
16409
|
successDescription: "User retrieved successfully.",
|
|
16275
16410
|
tags: ["v2-user"]
|
|
16276
|
-
}).input(v2Input.params(
|
|
16411
|
+
}).input(v2Input.params(z363.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
16277
16412
|
var readByNationalId = v2Contract.route({
|
|
16278
16413
|
method: "GET",
|
|
16279
16414
|
path: "/user/by-national-id/{nationalId}",
|
|
@@ -16434,7 +16569,7 @@ var dalpSerializers = [
|
|
|
16434
16569
|
// package.json
|
|
16435
16570
|
var package_default = {
|
|
16436
16571
|
name: "@settlemint/dalp-sdk",
|
|
16437
|
-
version: "2.1.7-main.
|
|
16572
|
+
version: "2.1.7-main.22873055756",
|
|
16438
16573
|
private: false,
|
|
16439
16574
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
16440
16575
|
homepage: "https://settlemint.com",
|
package/package.json
CHANGED