@otim/utils 0.0.3 → 0.0.4
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/api/index.js +29 -0
- package/dist/api/index.js.map +2 -2
- package/dist/api/index.mjs +29 -0
- package/dist/api/index.mjs.map +2 -2
- package/dist/api/schemas/payments.d.mts +35 -0
- package/dist/api/schemas/payments.d.ts +35 -0
- package/dist/api/schemas/payments.d.ts.map +1 -1
- package/dist/api/services/payments.d.mts +2 -1
- package/dist/api/services/payments.d.ts +2 -1
- package/dist/api/services/payments.d.ts.map +1 -1
- package/dist/helpers/index.js +8 -6
- package/dist/helpers/index.js.map +2 -2
- package/dist/helpers/index.mjs +8 -6
- package/dist/helpers/index.mjs.map +2 -2
- package/dist/helpers/zod.d.mts +2 -2
- package/dist/helpers/zod.d.ts +2 -2
- package/dist/helpers/zod.d.ts.map +1 -1
- package/dist/server/index.js +32 -0
- package/dist/server/index.js.map +2 -2
- package/dist/server/index.mjs +32 -0
- package/dist/server/index.mjs.map +2 -2
- package/dist/server/routes/bridge.d.mts +62 -0
- package/dist/server/routes/bridge.d.ts +62 -0
- package/dist/server/routes/bridge.d.ts.map +1 -1
- package/dist/server/routes/payments.d.mts +2 -1
- package/dist/server/routes/payments.d.ts +2 -1
- package/dist/server/routes/payments.d.ts.map +1 -1
- package/package.json +9 -5
package/dist/api/index.mjs
CHANGED
|
@@ -1141,6 +1141,25 @@ var paymentRequestDetailsResponseSchema = z16.object({
|
|
|
1141
1141
|
numRuns: z16.number(),
|
|
1142
1142
|
maxRuns: z16.number().optional()
|
|
1143
1143
|
});
|
|
1144
|
+
var buildSettlementRequestSchema = z16.object({
|
|
1145
|
+
acceptedTokens: z16.record(z16.string(), z16.array(hexStringSchema)),
|
|
1146
|
+
settlementChain: z16.number(),
|
|
1147
|
+
settlementToken: hexStringSchema,
|
|
1148
|
+
settlementAmount: numberSchema,
|
|
1149
|
+
recipientAddress: hexStringSchema,
|
|
1150
|
+
metadata: z16.record(z16.string(), z16.unknown()),
|
|
1151
|
+
payerAddress: hexStringSchema.nullish(),
|
|
1152
|
+
dueDate: z16.string().datetime().nullish(),
|
|
1153
|
+
maxRuns: z16.number().int().positive().nullish()
|
|
1154
|
+
});
|
|
1155
|
+
var buildSettlementResponseSchema = z16.object({
|
|
1156
|
+
requestId: z16.string(),
|
|
1157
|
+
subOrgId: z16.string(),
|
|
1158
|
+
walletId: z16.string(),
|
|
1159
|
+
ephemeralWalletAddress: hexStringSchema,
|
|
1160
|
+
completionInstructions: z16.array(buildInstructionResponseSchema),
|
|
1161
|
+
instructions: z16.array(buildInstructionResponseSchema)
|
|
1162
|
+
});
|
|
1144
1163
|
|
|
1145
1164
|
// src/api/schemas/transaction.ts
|
|
1146
1165
|
import { z as z17 } from "zod";
|
|
@@ -1621,6 +1640,14 @@ var PaymentsService = class extends BaseService {
|
|
|
1621
1640
|
schema: getPaymentRequestsResponseSchema
|
|
1622
1641
|
});
|
|
1623
1642
|
}
|
|
1643
|
+
async buildSettlementOrchestration(requestBody) {
|
|
1644
|
+
return this.makeRequest({
|
|
1645
|
+
url: "/orchestration/build/settlement",
|
|
1646
|
+
method: HttpMethod.Post,
|
|
1647
|
+
data: requestBody,
|
|
1648
|
+
schema: buildSettlementResponseSchema
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1624
1651
|
};
|
|
1625
1652
|
|
|
1626
1653
|
// src/api/services/integration.ts
|
|
@@ -1951,6 +1978,8 @@ export {
|
|
|
1951
1978
|
authLoginRequestSchema,
|
|
1952
1979
|
authLoginResponseSchema,
|
|
1953
1980
|
buildEphemeralInstructionSchema,
|
|
1981
|
+
buildSettlementRequestSchema,
|
|
1982
|
+
buildSettlementResponseSchema,
|
|
1954
1983
|
calculateHasMore,
|
|
1955
1984
|
chainIdSchema,
|
|
1956
1985
|
chainSuccessResponseSchema,
|