@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.
@@ -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,