@coinbase/cdp-sdk 1.35.0 → 1.36.0

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.
Files changed (126) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/client/evm/evm.js +7 -0
  3. package/_cjs/client/evm/evm.js.map +1 -1
  4. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +30 -3
  5. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  6. package/_cjs/policies/solanaSchema.js +75 -1
  7. package/_cjs/policies/solanaSchema.js.map +1 -1
  8. package/_cjs/version.js +1 -1
  9. package/_esm/client/evm/evm.js +7 -0
  10. package/_esm/client/evm/evm.js.map +1 -1
  11. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +28 -1
  12. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  13. package/_esm/policies/solanaSchema.js +74 -0
  14. package/_esm/policies/solanaSchema.js.map +1 -1
  15. package/_esm/version.js +1 -1
  16. package/_types/client/evm/evm.d.ts.map +1 -1
  17. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +152 -7
  18. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  19. package/_types/policies/solanaSchema.d.ts +852 -0
  20. package/_types/policies/solanaSchema.d.ts.map +1 -1
  21. package/_types/policies/types.d.ts +948 -0
  22. package/_types/policies/types.d.ts.map +1 -1
  23. package/_types/version.d.ts +1 -1
  24. package/client/evm/evm.ts +10 -0
  25. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +179 -8
  26. package/package.json +1 -1
  27. package/policies/solanaSchema.ts +100 -0
  28. package/version.ts +1 -1
  29. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js +0 -61
  30. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js.map +0 -1
  31. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js +0 -319
  32. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +0 -1
  33. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -514
  34. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +0 -1
  35. package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.msw.js +0 -179
  36. package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.msw.js.map +0 -1
  37. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +0 -45
  38. package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +0 -1
  39. package/_cjs/openapi-client/generated/faucets/faucets.msw.js +0 -47
  40. package/_cjs/openapi-client/generated/faucets/faucets.msw.js.map +0 -1
  41. package/_cjs/openapi-client/generated/index.msw.js +0 -30
  42. package/_cjs/openapi-client/generated/index.msw.js.map +0 -1
  43. package/_cjs/openapi-client/generated/onchain-data/onchain-data.msw.js +0 -139
  44. package/_cjs/openapi-client/generated/onchain-data/onchain-data.msw.js.map +0 -1
  45. package/_cjs/openapi-client/generated/onramp/onramp.msw.js +0 -98
  46. package/_cjs/openapi-client/generated/onramp/onramp.msw.js.map +0 -1
  47. package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.msw.js +0 -270
  48. package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.msw.js.map +0 -1
  49. package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js +0 -1387
  50. package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js.map +0 -1
  51. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js +0 -294
  52. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +0 -1
  53. package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js +0 -43
  54. package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js.map +0 -1
  55. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js +0 -84
  56. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js.map +0 -1
  57. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js +0 -52
  58. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js.map +0 -1
  59. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js +0 -289
  60. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +0 -1
  61. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -488
  62. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +0 -1
  63. package/_esm/openapi-client/generated/evm-swaps/evm-swaps.msw.js +0 -167
  64. package/_esm/openapi-client/generated/evm-swaps/evm-swaps.msw.js.map +0 -1
  65. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +0 -39
  66. package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +0 -1
  67. package/_esm/openapi-client/generated/faucets/faucets.msw.js +0 -39
  68. package/_esm/openapi-client/generated/faucets/faucets.msw.js.map +0 -1
  69. package/_esm/openapi-client/generated/index.msw.js +0 -14
  70. package/_esm/openapi-client/generated/index.msw.js.map +0 -1
  71. package/_esm/openapi-client/generated/onchain-data/onchain-data.msw.js +0 -129
  72. package/_esm/openapi-client/generated/onchain-data/onchain-data.msw.js.map +0 -1
  73. package/_esm/openapi-client/generated/onramp/onramp.msw.js +0 -90
  74. package/_esm/openapi-client/generated/onramp/onramp.msw.js.map +0 -1
  75. package/_esm/openapi-client/generated/payments-alpha/payments-alpha.msw.js +0 -250
  76. package/_esm/openapi-client/generated/payments-alpha/payments-alpha.msw.js.map +0 -1
  77. package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js +0 -1293
  78. package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js.map +0 -1
  79. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js +0 -268
  80. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +0 -1
  81. package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js +0 -37
  82. package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js.map +0 -1
  83. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js +0 -74
  84. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js.map +0 -1
  85. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.msw.d.ts +0 -9
  86. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.msw.d.ts.map +0 -1
  87. package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts +0 -30
  88. package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts.map +0 -1
  89. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts +0 -26
  90. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts.map +0 -1
  91. package/_types/openapi-client/generated/evm-swaps/evm-swaps.msw.d.ts +0 -12
  92. package/_types/openapi-client/generated/evm-swaps/evm-swaps.msw.d.ts.map +0 -1
  93. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts +0 -6
  94. package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts.map +0 -1
  95. package/_types/openapi-client/generated/faucets/faucets.msw.d.ts +0 -8
  96. package/_types/openapi-client/generated/faucets/faucets.msw.d.ts.map +0 -1
  97. package/_types/openapi-client/generated/index.msw.d.ts +0 -14
  98. package/_types/openapi-client/generated/index.msw.d.ts.map +0 -1
  99. package/_types/openapi-client/generated/onchain-data/onchain-data.msw.d.ts +0 -10
  100. package/_types/openapi-client/generated/onchain-data/onchain-data.msw.d.ts.map +0 -1
  101. package/_types/openapi-client/generated/onramp/onramp.msw.d.ts +0 -8
  102. package/_types/openapi-client/generated/onramp/onramp.msw.d.ts.map +0 -1
  103. package/_types/openapi-client/generated/payments-alpha/payments-alpha.msw.d.ts +0 -20
  104. package/_types/openapi-client/generated/payments-alpha/payments-alpha.msw.d.ts.map +0 -1
  105. package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts +0 -93
  106. package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts.map +0 -1
  107. package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts +0 -26
  108. package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts.map +0 -1
  109. package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.msw.d.ts +0 -6
  110. package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.msw.d.ts.map +0 -1
  111. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.msw.d.ts +0 -10
  112. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.msw.d.ts.map +0 -1
  113. package/openapi-client/generated/end-user-accounts/end-user-accounts.msw.ts +0 -95
  114. package/openapi-client/generated/evm-accounts/evm-accounts.msw.ts +0 -523
  115. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts +0 -705
  116. package/openapi-client/generated/evm-swaps/evm-swaps.msw.ts +0 -217
  117. package/openapi-client/generated/evm-token-balances/evm-token-balances.msw.ts +0 -57
  118. package/openapi-client/generated/faucets/faucets.msw.ts +0 -76
  119. package/openapi-client/generated/index.msw.ts +0 -13
  120. package/openapi-client/generated/onchain-data/onchain-data.msw.ts +0 -185
  121. package/openapi-client/generated/onramp/onramp.msw.ts +0 -135
  122. package/openapi-client/generated/payments-alpha/payments-alpha.msw.ts +0 -369
  123. package/openapi-client/generated/policy-engine/policy-engine.msw.ts +0 -1912
  124. package/openapi-client/generated/solana-accounts/solana-accounts.msw.ts +0 -478
  125. package/openapi-client/generated/solana-token-balances/solana-token-balances.msw.ts +0 -55
  126. package/openapi-client/generated/x402-facilitator/x402-facilitator.msw.ts +0 -136
@@ -1036,6 +1036,104 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1036
1036
  type: "mintAddress";
1037
1037
  operator: "in" | "not in";
1038
1038
  addresses: string[];
1039
+ }>, z.ZodObject<{
1040
+ type: z.ZodLiteral<"solData">;
1041
+ idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
1042
+ address: z.ZodString;
1043
+ instructions: z.ZodArray<z.ZodAny, "many">;
1044
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1045
+ address: z.ZodString;
1046
+ instructions: z.ZodArray<z.ZodAny, "many">;
1047
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1048
+ address: z.ZodString;
1049
+ instructions: z.ZodArray<z.ZodAny, "many">;
1050
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
1051
+ conditions: z.ZodArray<z.ZodObject<{
1052
+ instruction: z.ZodString;
1053
+ params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1054
+ name: z.ZodString;
1055
+ operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
1056
+ value: z.ZodString;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ value: string;
1059
+ name: string;
1060
+ operator: ">" | ">=" | "<" | "<=" | "==";
1061
+ }, {
1062
+ value: string;
1063
+ name: string;
1064
+ operator: ">" | ">=" | "<" | "<=" | "==";
1065
+ }>, z.ZodObject<{
1066
+ name: z.ZodString;
1067
+ operator: z.ZodEnum<["in", "not in"]>;
1068
+ values: z.ZodArray<z.ZodString, "many">;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ values: string[];
1071
+ name: string;
1072
+ operator: "in" | "not in";
1073
+ }, {
1074
+ values: string[];
1075
+ name: string;
1076
+ operator: "in" | "not in";
1077
+ }>]>, "many">>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ instruction: string;
1080
+ params?: ({
1081
+ value: string;
1082
+ name: string;
1083
+ operator: ">" | ">=" | "<" | "<=" | "==";
1084
+ } | {
1085
+ values: string[];
1086
+ name: string;
1087
+ operator: "in" | "not in";
1088
+ })[] | undefined;
1089
+ }, {
1090
+ instruction: string;
1091
+ params?: ({
1092
+ value: string;
1093
+ name: string;
1094
+ operator: ">" | ">=" | "<" | "<=" | "==";
1095
+ } | {
1096
+ values: string[];
1097
+ name: string;
1098
+ operator: "in" | "not in";
1099
+ })[] | undefined;
1100
+ }>, "many">;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ type: "solData";
1103
+ conditions: {
1104
+ instruction: string;
1105
+ params?: ({
1106
+ value: string;
1107
+ name: string;
1108
+ operator: ">" | ">=" | "<" | "<=" | "==";
1109
+ } | {
1110
+ values: string[];
1111
+ name: string;
1112
+ operator: "in" | "not in";
1113
+ })[] | undefined;
1114
+ }[];
1115
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
1116
+ address: z.ZodString;
1117
+ instructions: z.ZodArray<z.ZodAny, "many">;
1118
+ }, z.ZodTypeAny, "passthrough">)[];
1119
+ }, {
1120
+ type: "solData";
1121
+ conditions: {
1122
+ instruction: string;
1123
+ params?: ({
1124
+ value: string;
1125
+ name: string;
1126
+ operator: ">" | ">=" | "<" | "<=" | "==";
1127
+ } | {
1128
+ values: string[];
1129
+ name: string;
1130
+ operator: "in" | "not in";
1131
+ })[] | undefined;
1132
+ }[];
1133
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
1134
+ address: z.ZodString;
1135
+ instructions: z.ZodArray<z.ZodAny, "many">;
1136
+ }, z.ZodTypeAny, "passthrough">)[];
1039
1137
  }>]>, "many">;
1040
1138
  }, "strip", z.ZodTypeAny, {
1041
1139
  action: "reject" | "accept";
@@ -1060,6 +1158,24 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1060
1158
  type: "mintAddress";
1061
1159
  operator: "in" | "not in";
1062
1160
  addresses: string[];
1161
+ } | {
1162
+ type: "solData";
1163
+ conditions: {
1164
+ instruction: string;
1165
+ params?: ({
1166
+ value: string;
1167
+ name: string;
1168
+ operator: ">" | ">=" | "<" | "<=" | "==";
1169
+ } | {
1170
+ values: string[];
1171
+ name: string;
1172
+ operator: "in" | "not in";
1173
+ })[] | undefined;
1174
+ }[];
1175
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
1176
+ address: z.ZodString;
1177
+ instructions: z.ZodArray<z.ZodAny, "many">;
1178
+ }, z.ZodTypeAny, "passthrough">)[];
1063
1179
  })[];
1064
1180
  }, {
1065
1181
  action: "reject" | "accept";
@@ -1084,6 +1200,24 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1084
1200
  type: "mintAddress";
1085
1201
  operator: "in" | "not in";
1086
1202
  addresses: string[];
1203
+ } | {
1204
+ type: "solData";
1205
+ conditions: {
1206
+ instruction: string;
1207
+ params?: ({
1208
+ value: string;
1209
+ name: string;
1210
+ operator: ">" | ">=" | "<" | "<=" | "==";
1211
+ } | {
1212
+ values: string[];
1213
+ name: string;
1214
+ operator: "in" | "not in";
1215
+ })[] | undefined;
1216
+ }[];
1217
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
1218
+ address: z.ZodString;
1219
+ instructions: z.ZodArray<z.ZodAny, "many">;
1220
+ }, z.ZodTypeAny, "passthrough">)[];
1087
1221
  })[];
1088
1222
  }>, z.ZodObject<{
1089
1223
  action: z.ZodEnum<["reject", "accept"]>;
@@ -1148,6 +1282,104 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1148
1282
  type: "mintAddress";
1149
1283
  operator: "in" | "not in";
1150
1284
  addresses: string[];
1285
+ }>, z.ZodObject<{
1286
+ type: z.ZodLiteral<"solData">;
1287
+ idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
1288
+ address: z.ZodString;
1289
+ instructions: z.ZodArray<z.ZodAny, "many">;
1290
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1291
+ address: z.ZodString;
1292
+ instructions: z.ZodArray<z.ZodAny, "many">;
1293
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1294
+ address: z.ZodString;
1295
+ instructions: z.ZodArray<z.ZodAny, "many">;
1296
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
1297
+ conditions: z.ZodArray<z.ZodObject<{
1298
+ instruction: z.ZodString;
1299
+ params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1300
+ name: z.ZodString;
1301
+ operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
1302
+ value: z.ZodString;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ value: string;
1305
+ name: string;
1306
+ operator: ">" | ">=" | "<" | "<=" | "==";
1307
+ }, {
1308
+ value: string;
1309
+ name: string;
1310
+ operator: ">" | ">=" | "<" | "<=" | "==";
1311
+ }>, z.ZodObject<{
1312
+ name: z.ZodString;
1313
+ operator: z.ZodEnum<["in", "not in"]>;
1314
+ values: z.ZodArray<z.ZodString, "many">;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ values: string[];
1317
+ name: string;
1318
+ operator: "in" | "not in";
1319
+ }, {
1320
+ values: string[];
1321
+ name: string;
1322
+ operator: "in" | "not in";
1323
+ }>]>, "many">>;
1324
+ }, "strip", z.ZodTypeAny, {
1325
+ instruction: string;
1326
+ params?: ({
1327
+ value: string;
1328
+ name: string;
1329
+ operator: ">" | ">=" | "<" | "<=" | "==";
1330
+ } | {
1331
+ values: string[];
1332
+ name: string;
1333
+ operator: "in" | "not in";
1334
+ })[] | undefined;
1335
+ }, {
1336
+ instruction: string;
1337
+ params?: ({
1338
+ value: string;
1339
+ name: string;
1340
+ operator: ">" | ">=" | "<" | "<=" | "==";
1341
+ } | {
1342
+ values: string[];
1343
+ name: string;
1344
+ operator: "in" | "not in";
1345
+ })[] | undefined;
1346
+ }>, "many">;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ type: "solData";
1349
+ conditions: {
1350
+ instruction: string;
1351
+ params?: ({
1352
+ value: string;
1353
+ name: string;
1354
+ operator: ">" | ">=" | "<" | "<=" | "==";
1355
+ } | {
1356
+ values: string[];
1357
+ name: string;
1358
+ operator: "in" | "not in";
1359
+ })[] | undefined;
1360
+ }[];
1361
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
1362
+ address: z.ZodString;
1363
+ instructions: z.ZodArray<z.ZodAny, "many">;
1364
+ }, z.ZodTypeAny, "passthrough">)[];
1365
+ }, {
1366
+ type: "solData";
1367
+ conditions: {
1368
+ instruction: string;
1369
+ params?: ({
1370
+ value: string;
1371
+ name: string;
1372
+ operator: ">" | ">=" | "<" | "<=" | "==";
1373
+ } | {
1374
+ values: string[];
1375
+ name: string;
1376
+ operator: "in" | "not in";
1377
+ })[] | undefined;
1378
+ }[];
1379
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
1380
+ address: z.ZodString;
1381
+ instructions: z.ZodArray<z.ZodAny, "many">;
1382
+ }, z.ZodTypeAny, "passthrough">)[];
1151
1383
  }>]>, "many">;
1152
1384
  }, "strip", z.ZodTypeAny, {
1153
1385
  action: "reject" | "accept";
@@ -1172,6 +1404,24 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1172
1404
  type: "mintAddress";
1173
1405
  operator: "in" | "not in";
1174
1406
  addresses: string[];
1407
+ } | {
1408
+ type: "solData";
1409
+ conditions: {
1410
+ instruction: string;
1411
+ params?: ({
1412
+ value: string;
1413
+ name: string;
1414
+ operator: ">" | ">=" | "<" | "<=" | "==";
1415
+ } | {
1416
+ values: string[];
1417
+ name: string;
1418
+ operator: "in" | "not in";
1419
+ })[] | undefined;
1420
+ }[];
1421
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
1422
+ address: z.ZodString;
1423
+ instructions: z.ZodArray<z.ZodAny, "many">;
1424
+ }, z.ZodTypeAny, "passthrough">)[];
1175
1425
  })[];
1176
1426
  }, {
1177
1427
  action: "reject" | "accept";
@@ -1196,6 +1446,24 @@ export declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1196
1446
  type: "mintAddress";
1197
1447
  operator: "in" | "not in";
1198
1448
  addresses: string[];
1449
+ } | {
1450
+ type: "solData";
1451
+ conditions: {
1452
+ instruction: string;
1453
+ params?: ({
1454
+ value: string;
1455
+ name: string;
1456
+ operator: ">" | ">=" | "<" | "<=" | "==";
1457
+ } | {
1458
+ values: string[];
1459
+ name: string;
1460
+ operator: "in" | "not in";
1461
+ })[] | undefined;
1462
+ }[];
1463
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
1464
+ address: z.ZodString;
1465
+ instructions: z.ZodArray<z.ZodAny, "many">;
1466
+ }, z.ZodTypeAny, "passthrough">)[];
1199
1467
  })[];
1200
1468
  }>, z.ZodObject<{
1201
1469
  action: z.ZodEnum<["reject", "accept"]>;
@@ -2921,6 +3189,104 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
2921
3189
  type: "mintAddress";
2922
3190
  operator: "in" | "not in";
2923
3191
  addresses: string[];
3192
+ }>, z.ZodObject<{
3193
+ type: z.ZodLiteral<"solData">;
3194
+ idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
3195
+ address: z.ZodString;
3196
+ instructions: z.ZodArray<z.ZodAny, "many">;
3197
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3198
+ address: z.ZodString;
3199
+ instructions: z.ZodArray<z.ZodAny, "many">;
3200
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3201
+ address: z.ZodString;
3202
+ instructions: z.ZodArray<z.ZodAny, "many">;
3203
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
3204
+ conditions: z.ZodArray<z.ZodObject<{
3205
+ instruction: z.ZodString;
3206
+ params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
3207
+ name: z.ZodString;
3208
+ operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
3209
+ value: z.ZodString;
3210
+ }, "strip", z.ZodTypeAny, {
3211
+ value: string;
3212
+ name: string;
3213
+ operator: ">" | ">=" | "<" | "<=" | "==";
3214
+ }, {
3215
+ value: string;
3216
+ name: string;
3217
+ operator: ">" | ">=" | "<" | "<=" | "==";
3218
+ }>, z.ZodObject<{
3219
+ name: z.ZodString;
3220
+ operator: z.ZodEnum<["in", "not in"]>;
3221
+ values: z.ZodArray<z.ZodString, "many">;
3222
+ }, "strip", z.ZodTypeAny, {
3223
+ values: string[];
3224
+ name: string;
3225
+ operator: "in" | "not in";
3226
+ }, {
3227
+ values: string[];
3228
+ name: string;
3229
+ operator: "in" | "not in";
3230
+ }>]>, "many">>;
3231
+ }, "strip", z.ZodTypeAny, {
3232
+ instruction: string;
3233
+ params?: ({
3234
+ value: string;
3235
+ name: string;
3236
+ operator: ">" | ">=" | "<" | "<=" | "==";
3237
+ } | {
3238
+ values: string[];
3239
+ name: string;
3240
+ operator: "in" | "not in";
3241
+ })[] | undefined;
3242
+ }, {
3243
+ instruction: string;
3244
+ params?: ({
3245
+ value: string;
3246
+ name: string;
3247
+ operator: ">" | ">=" | "<" | "<=" | "==";
3248
+ } | {
3249
+ values: string[];
3250
+ name: string;
3251
+ operator: "in" | "not in";
3252
+ })[] | undefined;
3253
+ }>, "many">;
3254
+ }, "strip", z.ZodTypeAny, {
3255
+ type: "solData";
3256
+ conditions: {
3257
+ instruction: string;
3258
+ params?: ({
3259
+ value: string;
3260
+ name: string;
3261
+ operator: ">" | ">=" | "<" | "<=" | "==";
3262
+ } | {
3263
+ values: string[];
3264
+ name: string;
3265
+ operator: "in" | "not in";
3266
+ })[] | undefined;
3267
+ }[];
3268
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
3269
+ address: z.ZodString;
3270
+ instructions: z.ZodArray<z.ZodAny, "many">;
3271
+ }, z.ZodTypeAny, "passthrough">)[];
3272
+ }, {
3273
+ type: "solData";
3274
+ conditions: {
3275
+ instruction: string;
3276
+ params?: ({
3277
+ value: string;
3278
+ name: string;
3279
+ operator: ">" | ">=" | "<" | "<=" | "==";
3280
+ } | {
3281
+ values: string[];
3282
+ name: string;
3283
+ operator: "in" | "not in";
3284
+ })[] | undefined;
3285
+ }[];
3286
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
3287
+ address: z.ZodString;
3288
+ instructions: z.ZodArray<z.ZodAny, "many">;
3289
+ }, z.ZodTypeAny, "passthrough">)[];
2924
3290
  }>]>, "many">;
2925
3291
  }, "strip", z.ZodTypeAny, {
2926
3292
  action: "reject" | "accept";
@@ -2945,6 +3311,24 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
2945
3311
  type: "mintAddress";
2946
3312
  operator: "in" | "not in";
2947
3313
  addresses: string[];
3314
+ } | {
3315
+ type: "solData";
3316
+ conditions: {
3317
+ instruction: string;
3318
+ params?: ({
3319
+ value: string;
3320
+ name: string;
3321
+ operator: ">" | ">=" | "<" | "<=" | "==";
3322
+ } | {
3323
+ values: string[];
3324
+ name: string;
3325
+ operator: "in" | "not in";
3326
+ })[] | undefined;
3327
+ }[];
3328
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
3329
+ address: z.ZodString;
3330
+ instructions: z.ZodArray<z.ZodAny, "many">;
3331
+ }, z.ZodTypeAny, "passthrough">)[];
2948
3332
  })[];
2949
3333
  }, {
2950
3334
  action: "reject" | "accept";
@@ -2969,6 +3353,24 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
2969
3353
  type: "mintAddress";
2970
3354
  operator: "in" | "not in";
2971
3355
  addresses: string[];
3356
+ } | {
3357
+ type: "solData";
3358
+ conditions: {
3359
+ instruction: string;
3360
+ params?: ({
3361
+ value: string;
3362
+ name: string;
3363
+ operator: ">" | ">=" | "<" | "<=" | "==";
3364
+ } | {
3365
+ values: string[];
3366
+ name: string;
3367
+ operator: "in" | "not in";
3368
+ })[] | undefined;
3369
+ }[];
3370
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
3371
+ address: z.ZodString;
3372
+ instructions: z.ZodArray<z.ZodAny, "many">;
3373
+ }, z.ZodTypeAny, "passthrough">)[];
2972
3374
  })[];
2973
3375
  }>, z.ZodObject<{
2974
3376
  action: z.ZodEnum<["reject", "accept"]>;
@@ -3033,6 +3435,104 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
3033
3435
  type: "mintAddress";
3034
3436
  operator: "in" | "not in";
3035
3437
  addresses: string[];
3438
+ }>, z.ZodObject<{
3439
+ type: z.ZodLiteral<"solData">;
3440
+ idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
3441
+ address: z.ZodString;
3442
+ instructions: z.ZodArray<z.ZodAny, "many">;
3443
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3444
+ address: z.ZodString;
3445
+ instructions: z.ZodArray<z.ZodAny, "many">;
3446
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3447
+ address: z.ZodString;
3448
+ instructions: z.ZodArray<z.ZodAny, "many">;
3449
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
3450
+ conditions: z.ZodArray<z.ZodObject<{
3451
+ instruction: z.ZodString;
3452
+ params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
3453
+ name: z.ZodString;
3454
+ operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
3455
+ value: z.ZodString;
3456
+ }, "strip", z.ZodTypeAny, {
3457
+ value: string;
3458
+ name: string;
3459
+ operator: ">" | ">=" | "<" | "<=" | "==";
3460
+ }, {
3461
+ value: string;
3462
+ name: string;
3463
+ operator: ">" | ">=" | "<" | "<=" | "==";
3464
+ }>, z.ZodObject<{
3465
+ name: z.ZodString;
3466
+ operator: z.ZodEnum<["in", "not in"]>;
3467
+ values: z.ZodArray<z.ZodString, "many">;
3468
+ }, "strip", z.ZodTypeAny, {
3469
+ values: string[];
3470
+ name: string;
3471
+ operator: "in" | "not in";
3472
+ }, {
3473
+ values: string[];
3474
+ name: string;
3475
+ operator: "in" | "not in";
3476
+ }>]>, "many">>;
3477
+ }, "strip", z.ZodTypeAny, {
3478
+ instruction: string;
3479
+ params?: ({
3480
+ value: string;
3481
+ name: string;
3482
+ operator: ">" | ">=" | "<" | "<=" | "==";
3483
+ } | {
3484
+ values: string[];
3485
+ name: string;
3486
+ operator: "in" | "not in";
3487
+ })[] | undefined;
3488
+ }, {
3489
+ instruction: string;
3490
+ params?: ({
3491
+ value: string;
3492
+ name: string;
3493
+ operator: ">" | ">=" | "<" | "<=" | "==";
3494
+ } | {
3495
+ values: string[];
3496
+ name: string;
3497
+ operator: "in" | "not in";
3498
+ })[] | undefined;
3499
+ }>, "many">;
3500
+ }, "strip", z.ZodTypeAny, {
3501
+ type: "solData";
3502
+ conditions: {
3503
+ instruction: string;
3504
+ params?: ({
3505
+ value: string;
3506
+ name: string;
3507
+ operator: ">" | ">=" | "<" | "<=" | "==";
3508
+ } | {
3509
+ values: string[];
3510
+ name: string;
3511
+ operator: "in" | "not in";
3512
+ })[] | undefined;
3513
+ }[];
3514
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
3515
+ address: z.ZodString;
3516
+ instructions: z.ZodArray<z.ZodAny, "many">;
3517
+ }, z.ZodTypeAny, "passthrough">)[];
3518
+ }, {
3519
+ type: "solData";
3520
+ conditions: {
3521
+ instruction: string;
3522
+ params?: ({
3523
+ value: string;
3524
+ name: string;
3525
+ operator: ">" | ">=" | "<" | "<=" | "==";
3526
+ } | {
3527
+ values: string[];
3528
+ name: string;
3529
+ operator: "in" | "not in";
3530
+ })[] | undefined;
3531
+ }[];
3532
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
3533
+ address: z.ZodString;
3534
+ instructions: z.ZodArray<z.ZodAny, "many">;
3535
+ }, z.ZodTypeAny, "passthrough">)[];
3036
3536
  }>]>, "many">;
3037
3537
  }, "strip", z.ZodTypeAny, {
3038
3538
  action: "reject" | "accept";
@@ -3057,6 +3557,24 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
3057
3557
  type: "mintAddress";
3058
3558
  operator: "in" | "not in";
3059
3559
  addresses: string[];
3560
+ } | {
3561
+ type: "solData";
3562
+ conditions: {
3563
+ instruction: string;
3564
+ params?: ({
3565
+ value: string;
3566
+ name: string;
3567
+ operator: ">" | ">=" | "<" | "<=" | "==";
3568
+ } | {
3569
+ values: string[];
3570
+ name: string;
3571
+ operator: "in" | "not in";
3572
+ })[] | undefined;
3573
+ }[];
3574
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
3575
+ address: z.ZodString;
3576
+ instructions: z.ZodArray<z.ZodAny, "many">;
3577
+ }, z.ZodTypeAny, "passthrough">)[];
3060
3578
  })[];
3061
3579
  }, {
3062
3580
  action: "reject" | "accept";
@@ -3081,6 +3599,24 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
3081
3599
  type: "mintAddress";
3082
3600
  operator: "in" | "not in";
3083
3601
  addresses: string[];
3602
+ } | {
3603
+ type: "solData";
3604
+ conditions: {
3605
+ instruction: string;
3606
+ params?: ({
3607
+ value: string;
3608
+ name: string;
3609
+ operator: ">" | ">=" | "<" | "<=" | "==";
3610
+ } | {
3611
+ values: string[];
3612
+ name: string;
3613
+ operator: "in" | "not in";
3614
+ })[] | undefined;
3615
+ }[];
3616
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
3617
+ address: z.ZodString;
3618
+ instructions: z.ZodArray<z.ZodAny, "many">;
3619
+ }, z.ZodTypeAny, "passthrough">)[];
3084
3620
  })[];
3085
3621
  }>, z.ZodObject<{
3086
3622
  action: z.ZodEnum<["reject", "accept"]>;
@@ -4083,6 +4619,24 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
4083
4619
  type: "mintAddress";
4084
4620
  operator: "in" | "not in";
4085
4621
  addresses: string[];
4622
+ } | {
4623
+ type: "solData";
4624
+ conditions: {
4625
+ instruction: string;
4626
+ params?: ({
4627
+ value: string;
4628
+ name: string;
4629
+ operator: ">" | ">=" | "<" | "<=" | "==";
4630
+ } | {
4631
+ values: string[];
4632
+ name: string;
4633
+ operator: "in" | "not in";
4634
+ })[] | undefined;
4635
+ }[];
4636
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
4637
+ address: z.ZodString;
4638
+ instructions: z.ZodArray<z.ZodAny, "many">;
4639
+ }, z.ZodTypeAny, "passthrough">)[];
4086
4640
  })[];
4087
4641
  } | {
4088
4642
  action: "reject" | "accept";
@@ -4107,6 +4661,24 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
4107
4661
  type: "mintAddress";
4108
4662
  operator: "in" | "not in";
4109
4663
  addresses: string[];
4664
+ } | {
4665
+ type: "solData";
4666
+ conditions: {
4667
+ instruction: string;
4668
+ params?: ({
4669
+ value: string;
4670
+ name: string;
4671
+ operator: ">" | ">=" | "<" | "<=" | "==";
4672
+ } | {
4673
+ values: string[];
4674
+ name: string;
4675
+ operator: "in" | "not in";
4676
+ })[] | undefined;
4677
+ }[];
4678
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
4679
+ address: z.ZodString;
4680
+ instructions: z.ZodArray<z.ZodAny, "many">;
4681
+ }, z.ZodTypeAny, "passthrough">)[];
4110
4682
  })[];
4111
4683
  })[];
4112
4684
  description?: string | undefined;
@@ -4298,6 +4870,24 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
4298
4870
  type: "mintAddress";
4299
4871
  operator: "in" | "not in";
4300
4872
  addresses: string[];
4873
+ } | {
4874
+ type: "solData";
4875
+ conditions: {
4876
+ instruction: string;
4877
+ params?: ({
4878
+ value: string;
4879
+ name: string;
4880
+ operator: ">" | ">=" | "<" | "<=" | "==";
4881
+ } | {
4882
+ values: string[];
4883
+ name: string;
4884
+ operator: "in" | "not in";
4885
+ })[] | undefined;
4886
+ }[];
4887
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
4888
+ address: z.ZodString;
4889
+ instructions: z.ZodArray<z.ZodAny, "many">;
4890
+ }, z.ZodTypeAny, "passthrough">)[];
4301
4891
  })[];
4302
4892
  } | {
4303
4893
  action: "reject" | "accept";
@@ -4322,6 +4912,24 @@ export declare const CreatePolicyBodySchema: z.ZodObject<{
4322
4912
  type: "mintAddress";
4323
4913
  operator: "in" | "not in";
4324
4914
  addresses: string[];
4915
+ } | {
4916
+ type: "solData";
4917
+ conditions: {
4918
+ instruction: string;
4919
+ params?: ({
4920
+ value: string;
4921
+ name: string;
4922
+ operator: ">" | ">=" | "<" | "<=" | "==";
4923
+ } | {
4924
+ values: string[];
4925
+ name: string;
4926
+ operator: "in" | "not in";
4927
+ })[] | undefined;
4928
+ }[];
4929
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
4930
+ address: z.ZodString;
4931
+ instructions: z.ZodArray<z.ZodAny, "many">;
4932
+ }, z.ZodTypeAny, "passthrough">)[];
4325
4933
  })[];
4326
4934
  })[];
4327
4935
  description?: string | undefined;
@@ -5349,6 +5957,104 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
5349
5957
  type: "mintAddress";
5350
5958
  operator: "in" | "not in";
5351
5959
  addresses: string[];
5960
+ }>, z.ZodObject<{
5961
+ type: z.ZodLiteral<"solData">;
5962
+ idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
5963
+ address: z.ZodString;
5964
+ instructions: z.ZodArray<z.ZodAny, "many">;
5965
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5966
+ address: z.ZodString;
5967
+ instructions: z.ZodArray<z.ZodAny, "many">;
5968
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5969
+ address: z.ZodString;
5970
+ instructions: z.ZodArray<z.ZodAny, "many">;
5971
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
5972
+ conditions: z.ZodArray<z.ZodObject<{
5973
+ instruction: z.ZodString;
5974
+ params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
5975
+ name: z.ZodString;
5976
+ operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
5977
+ value: z.ZodString;
5978
+ }, "strip", z.ZodTypeAny, {
5979
+ value: string;
5980
+ name: string;
5981
+ operator: ">" | ">=" | "<" | "<=" | "==";
5982
+ }, {
5983
+ value: string;
5984
+ name: string;
5985
+ operator: ">" | ">=" | "<" | "<=" | "==";
5986
+ }>, z.ZodObject<{
5987
+ name: z.ZodString;
5988
+ operator: z.ZodEnum<["in", "not in"]>;
5989
+ values: z.ZodArray<z.ZodString, "many">;
5990
+ }, "strip", z.ZodTypeAny, {
5991
+ values: string[];
5992
+ name: string;
5993
+ operator: "in" | "not in";
5994
+ }, {
5995
+ values: string[];
5996
+ name: string;
5997
+ operator: "in" | "not in";
5998
+ }>]>, "many">>;
5999
+ }, "strip", z.ZodTypeAny, {
6000
+ instruction: string;
6001
+ params?: ({
6002
+ value: string;
6003
+ name: string;
6004
+ operator: ">" | ">=" | "<" | "<=" | "==";
6005
+ } | {
6006
+ values: string[];
6007
+ name: string;
6008
+ operator: "in" | "not in";
6009
+ })[] | undefined;
6010
+ }, {
6011
+ instruction: string;
6012
+ params?: ({
6013
+ value: string;
6014
+ name: string;
6015
+ operator: ">" | ">=" | "<" | "<=" | "==";
6016
+ } | {
6017
+ values: string[];
6018
+ name: string;
6019
+ operator: "in" | "not in";
6020
+ })[] | undefined;
6021
+ }>, "many">;
6022
+ }, "strip", z.ZodTypeAny, {
6023
+ type: "solData";
6024
+ conditions: {
6025
+ instruction: string;
6026
+ params?: ({
6027
+ value: string;
6028
+ name: string;
6029
+ operator: ">" | ">=" | "<" | "<=" | "==";
6030
+ } | {
6031
+ values: string[];
6032
+ name: string;
6033
+ operator: "in" | "not in";
6034
+ })[] | undefined;
6035
+ }[];
6036
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
6037
+ address: z.ZodString;
6038
+ instructions: z.ZodArray<z.ZodAny, "many">;
6039
+ }, z.ZodTypeAny, "passthrough">)[];
6040
+ }, {
6041
+ type: "solData";
6042
+ conditions: {
6043
+ instruction: string;
6044
+ params?: ({
6045
+ value: string;
6046
+ name: string;
6047
+ operator: ">" | ">=" | "<" | "<=" | "==";
6048
+ } | {
6049
+ values: string[];
6050
+ name: string;
6051
+ operator: "in" | "not in";
6052
+ })[] | undefined;
6053
+ }[];
6054
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
6055
+ address: z.ZodString;
6056
+ instructions: z.ZodArray<z.ZodAny, "many">;
6057
+ }, z.ZodTypeAny, "passthrough">)[];
5352
6058
  }>]>, "many">;
5353
6059
  }, "strip", z.ZodTypeAny, {
5354
6060
  action: "reject" | "accept";
@@ -5373,6 +6079,24 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
5373
6079
  type: "mintAddress";
5374
6080
  operator: "in" | "not in";
5375
6081
  addresses: string[];
6082
+ } | {
6083
+ type: "solData";
6084
+ conditions: {
6085
+ instruction: string;
6086
+ params?: ({
6087
+ value: string;
6088
+ name: string;
6089
+ operator: ">" | ">=" | "<" | "<=" | "==";
6090
+ } | {
6091
+ values: string[];
6092
+ name: string;
6093
+ operator: "in" | "not in";
6094
+ })[] | undefined;
6095
+ }[];
6096
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
6097
+ address: z.ZodString;
6098
+ instructions: z.ZodArray<z.ZodAny, "many">;
6099
+ }, z.ZodTypeAny, "passthrough">)[];
5376
6100
  })[];
5377
6101
  }, {
5378
6102
  action: "reject" | "accept";
@@ -5397,6 +6121,24 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
5397
6121
  type: "mintAddress";
5398
6122
  operator: "in" | "not in";
5399
6123
  addresses: string[];
6124
+ } | {
6125
+ type: "solData";
6126
+ conditions: {
6127
+ instruction: string;
6128
+ params?: ({
6129
+ value: string;
6130
+ name: string;
6131
+ operator: ">" | ">=" | "<" | "<=" | "==";
6132
+ } | {
6133
+ values: string[];
6134
+ name: string;
6135
+ operator: "in" | "not in";
6136
+ })[] | undefined;
6137
+ }[];
6138
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
6139
+ address: z.ZodString;
6140
+ instructions: z.ZodArray<z.ZodAny, "many">;
6141
+ }, z.ZodTypeAny, "passthrough">)[];
5400
6142
  })[];
5401
6143
  }>, z.ZodObject<{
5402
6144
  action: z.ZodEnum<["reject", "accept"]>;
@@ -5461,6 +6203,104 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
5461
6203
  type: "mintAddress";
5462
6204
  operator: "in" | "not in";
5463
6205
  addresses: string[];
6206
+ }>, z.ZodObject<{
6207
+ type: z.ZodLiteral<"solData">;
6208
+ idls: z.ZodArray<z.ZodUnion<[z.ZodEnum<["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]>, z.ZodObject<{
6209
+ address: z.ZodString;
6210
+ instructions: z.ZodArray<z.ZodAny, "many">;
6211
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6212
+ address: z.ZodString;
6213
+ instructions: z.ZodArray<z.ZodAny, "many">;
6214
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6215
+ address: z.ZodString;
6216
+ instructions: z.ZodArray<z.ZodAny, "many">;
6217
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
6218
+ conditions: z.ZodArray<z.ZodObject<{
6219
+ instruction: z.ZodString;
6220
+ params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
6221
+ name: z.ZodString;
6222
+ operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
6223
+ value: z.ZodString;
6224
+ }, "strip", z.ZodTypeAny, {
6225
+ value: string;
6226
+ name: string;
6227
+ operator: ">" | ">=" | "<" | "<=" | "==";
6228
+ }, {
6229
+ value: string;
6230
+ name: string;
6231
+ operator: ">" | ">=" | "<" | "<=" | "==";
6232
+ }>, z.ZodObject<{
6233
+ name: z.ZodString;
6234
+ operator: z.ZodEnum<["in", "not in"]>;
6235
+ values: z.ZodArray<z.ZodString, "many">;
6236
+ }, "strip", z.ZodTypeAny, {
6237
+ values: string[];
6238
+ name: string;
6239
+ operator: "in" | "not in";
6240
+ }, {
6241
+ values: string[];
6242
+ name: string;
6243
+ operator: "in" | "not in";
6244
+ }>]>, "many">>;
6245
+ }, "strip", z.ZodTypeAny, {
6246
+ instruction: string;
6247
+ params?: ({
6248
+ value: string;
6249
+ name: string;
6250
+ operator: ">" | ">=" | "<" | "<=" | "==";
6251
+ } | {
6252
+ values: string[];
6253
+ name: string;
6254
+ operator: "in" | "not in";
6255
+ })[] | undefined;
6256
+ }, {
6257
+ instruction: string;
6258
+ params?: ({
6259
+ value: string;
6260
+ name: string;
6261
+ operator: ">" | ">=" | "<" | "<=" | "==";
6262
+ } | {
6263
+ values: string[];
6264
+ name: string;
6265
+ operator: "in" | "not in";
6266
+ })[] | undefined;
6267
+ }>, "many">;
6268
+ }, "strip", z.ZodTypeAny, {
6269
+ type: "solData";
6270
+ conditions: {
6271
+ instruction: string;
6272
+ params?: ({
6273
+ value: string;
6274
+ name: string;
6275
+ operator: ">" | ">=" | "<" | "<=" | "==";
6276
+ } | {
6277
+ values: string[];
6278
+ name: string;
6279
+ operator: "in" | "not in";
6280
+ })[] | undefined;
6281
+ }[];
6282
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
6283
+ address: z.ZodString;
6284
+ instructions: z.ZodArray<z.ZodAny, "many">;
6285
+ }, z.ZodTypeAny, "passthrough">)[];
6286
+ }, {
6287
+ type: "solData";
6288
+ conditions: {
6289
+ instruction: string;
6290
+ params?: ({
6291
+ value: string;
6292
+ name: string;
6293
+ operator: ">" | ">=" | "<" | "<=" | "==";
6294
+ } | {
6295
+ values: string[];
6296
+ name: string;
6297
+ operator: "in" | "not in";
6298
+ })[] | undefined;
6299
+ }[];
6300
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
6301
+ address: z.ZodString;
6302
+ instructions: z.ZodArray<z.ZodAny, "many">;
6303
+ }, z.ZodTypeAny, "passthrough">)[];
5464
6304
  }>]>, "many">;
5465
6305
  }, "strip", z.ZodTypeAny, {
5466
6306
  action: "reject" | "accept";
@@ -5485,6 +6325,24 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
5485
6325
  type: "mintAddress";
5486
6326
  operator: "in" | "not in";
5487
6327
  addresses: string[];
6328
+ } | {
6329
+ type: "solData";
6330
+ conditions: {
6331
+ instruction: string;
6332
+ params?: ({
6333
+ value: string;
6334
+ name: string;
6335
+ operator: ">" | ">=" | "<" | "<=" | "==";
6336
+ } | {
6337
+ values: string[];
6338
+ name: string;
6339
+ operator: "in" | "not in";
6340
+ })[] | undefined;
6341
+ }[];
6342
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
6343
+ address: z.ZodString;
6344
+ instructions: z.ZodArray<z.ZodAny, "many">;
6345
+ }, z.ZodTypeAny, "passthrough">)[];
5488
6346
  })[];
5489
6347
  }, {
5490
6348
  action: "reject" | "accept";
@@ -5509,6 +6367,24 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
5509
6367
  type: "mintAddress";
5510
6368
  operator: "in" | "not in";
5511
6369
  addresses: string[];
6370
+ } | {
6371
+ type: "solData";
6372
+ conditions: {
6373
+ instruction: string;
6374
+ params?: ({
6375
+ value: string;
6376
+ name: string;
6377
+ operator: ">" | ">=" | "<" | "<=" | "==";
6378
+ } | {
6379
+ values: string[];
6380
+ name: string;
6381
+ operator: "in" | "not in";
6382
+ })[] | undefined;
6383
+ }[];
6384
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
6385
+ address: z.ZodString;
6386
+ instructions: z.ZodArray<z.ZodAny, "many">;
6387
+ }, z.ZodTypeAny, "passthrough">)[];
5512
6388
  })[];
5513
6389
  }>, z.ZodObject<{
5514
6390
  action: z.ZodEnum<["reject", "accept"]>;
@@ -6510,6 +7386,24 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
6510
7386
  type: "mintAddress";
6511
7387
  operator: "in" | "not in";
6512
7388
  addresses: string[];
7389
+ } | {
7390
+ type: "solData";
7391
+ conditions: {
7392
+ instruction: string;
7393
+ params?: ({
7394
+ value: string;
7395
+ name: string;
7396
+ operator: ">" | ">=" | "<" | "<=" | "==";
7397
+ } | {
7398
+ values: string[];
7399
+ name: string;
7400
+ operator: "in" | "not in";
7401
+ })[] | undefined;
7402
+ }[];
7403
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
7404
+ address: z.ZodString;
7405
+ instructions: z.ZodArray<z.ZodAny, "many">;
7406
+ }, z.ZodTypeAny, "passthrough">)[];
6513
7407
  })[];
6514
7408
  } | {
6515
7409
  action: "reject" | "accept";
@@ -6534,6 +7428,24 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
6534
7428
  type: "mintAddress";
6535
7429
  operator: "in" | "not in";
6536
7430
  addresses: string[];
7431
+ } | {
7432
+ type: "solData";
7433
+ conditions: {
7434
+ instruction: string;
7435
+ params?: ({
7436
+ value: string;
7437
+ name: string;
7438
+ operator: ">" | ">=" | "<" | "<=" | "==";
7439
+ } | {
7440
+ values: string[];
7441
+ name: string;
7442
+ operator: "in" | "not in";
7443
+ })[] | undefined;
7444
+ }[];
7445
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectOutputType<{
7446
+ address: z.ZodString;
7447
+ instructions: z.ZodArray<z.ZodAny, "many">;
7448
+ }, z.ZodTypeAny, "passthrough">)[];
6537
7449
  })[];
6538
7450
  })[];
6539
7451
  description?: string | undefined;
@@ -6724,6 +7636,24 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
6724
7636
  type: "mintAddress";
6725
7637
  operator: "in" | "not in";
6726
7638
  addresses: string[];
7639
+ } | {
7640
+ type: "solData";
7641
+ conditions: {
7642
+ instruction: string;
7643
+ params?: ({
7644
+ value: string;
7645
+ name: string;
7646
+ operator: ">" | ">=" | "<" | "<=" | "==";
7647
+ } | {
7648
+ values: string[];
7649
+ name: string;
7650
+ operator: "in" | "not in";
7651
+ })[] | undefined;
7652
+ }[];
7653
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
7654
+ address: z.ZodString;
7655
+ instructions: z.ZodArray<z.ZodAny, "many">;
7656
+ }, z.ZodTypeAny, "passthrough">)[];
6727
7657
  })[];
6728
7658
  } | {
6729
7659
  action: "reject" | "accept";
@@ -6748,6 +7678,24 @@ export declare const UpdatePolicyBodySchema: z.ZodObject<{
6748
7678
  type: "mintAddress";
6749
7679
  operator: "in" | "not in";
6750
7680
  addresses: string[];
7681
+ } | {
7682
+ type: "solData";
7683
+ conditions: {
7684
+ instruction: string;
7685
+ params?: ({
7686
+ value: string;
7687
+ name: string;
7688
+ operator: ">" | ">=" | "<" | "<=" | "==";
7689
+ } | {
7690
+ values: string[];
7691
+ name: string;
7692
+ operator: "in" | "not in";
7693
+ })[] | undefined;
7694
+ }[];
7695
+ idls: ("SystemProgram" | "TokenProgram" | "AssociatedTokenProgram" | z.objectInputType<{
7696
+ address: z.ZodString;
7697
+ instructions: z.ZodArray<z.ZodAny, "many">;
7698
+ }, z.ZodTypeAny, "passthrough">)[];
6751
7699
  })[];
6752
7700
  })[];
6753
7701
  description?: string | undefined;