@otim/utils 0.0.3 → 0.0.5

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.
@@ -1103,6 +1103,7 @@ var buildInstructionResponseSchema = z16.object({
1103
1103
  salt: hexStringSchema,
1104
1104
  maxExecutions: hexStringSchema,
1105
1105
  action: hexStringSchema,
1106
+ actionName: z16.string().optional(),
1106
1107
  arguments: hexStringSchema
1107
1108
  });
1108
1109
  var paymentRequestBuildResponseSchema = z16.object({
@@ -1115,6 +1116,7 @@ var paymentRequestBuildResponseSchema = z16.object({
1115
1116
  });
1116
1117
  var newInstructionRequestSchema = z16.object({
1117
1118
  nickname: z16.string().optional(),
1119
+ actionName: z16.string().optional(),
1118
1120
  address: hexStringSchema,
1119
1121
  chainId: z16.number(),
1120
1122
  salt: hexStringSchema,
@@ -1141,6 +1143,25 @@ var paymentRequestDetailsResponseSchema = z16.object({
1141
1143
  numRuns: z16.number(),
1142
1144
  maxRuns: z16.number().optional()
1143
1145
  });
1146
+ var buildSettlementRequestSchema = z16.object({
1147
+ acceptedTokens: z16.record(z16.string(), z16.array(hexStringSchema)),
1148
+ settlementChain: z16.number(),
1149
+ settlementToken: hexStringSchema,
1150
+ settlementAmount: numberSchema,
1151
+ recipientAddress: hexStringSchema,
1152
+ metadata: z16.record(z16.string(), z16.unknown()),
1153
+ payerAddress: hexStringSchema.nullish(),
1154
+ dueDate: z16.string().datetime().nullish(),
1155
+ maxRuns: z16.number().int().positive().nullish()
1156
+ });
1157
+ var buildSettlementResponseSchema = z16.object({
1158
+ requestId: z16.string(),
1159
+ subOrgId: z16.string(),
1160
+ walletId: z16.string(),
1161
+ ephemeralWalletAddress: hexStringSchema,
1162
+ completionInstructions: z16.array(buildInstructionResponseSchema),
1163
+ instructions: z16.array(buildInstructionResponseSchema)
1164
+ });
1144
1165
 
1145
1166
  // src/api/schemas/transaction.ts
1146
1167
  import { z as z17 } from "zod";
@@ -1621,6 +1642,14 @@ var PaymentsService = class extends BaseService {
1621
1642
  schema: getPaymentRequestsResponseSchema
1622
1643
  });
1623
1644
  }
1645
+ async buildSettlementOrchestration(requestBody) {
1646
+ return this.makeRequest({
1647
+ url: "/orchestration/build/settlement",
1648
+ method: HttpMethod.Post,
1649
+ data: requestBody,
1650
+ schema: buildSettlementResponseSchema
1651
+ });
1652
+ }
1624
1653
  };
1625
1654
 
1626
1655
  // src/api/services/integration.ts
@@ -1951,6 +1980,8 @@ export {
1951
1980
  authLoginRequestSchema,
1952
1981
  authLoginResponseSchema,
1953
1982
  buildEphemeralInstructionSchema,
1983
+ buildSettlementRequestSchema,
1984
+ buildSettlementResponseSchema,
1954
1985
  calculateHasMore,
1955
1986
  chainIdSchema,
1956
1987
  chainSuccessResponseSchema,