@mimicprotocol/sdk 0.0.1-rc.17 → 0.0.1-rc.19

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 (56) hide show
  1. package/dist/axia/validators.d.ts +546 -0
  2. package/dist/axia/validators.d.ts.map +1 -1
  3. package/dist/client/core/auth.d.ts +2 -1
  4. package/dist/client/core/auth.d.ts.map +1 -1
  5. package/dist/client/core/auth.js +3 -2
  6. package/dist/client/core/auth.js.map +1 -1
  7. package/dist/client/core/config.d.ts +1 -1
  8. package/dist/client/core/config.d.ts.map +1 -1
  9. package/dist/client/core/config.js +1 -0
  10. package/dist/client/core/config.js.map +1 -1
  11. package/dist/client/domains/Client.d.ts.map +1 -1
  12. package/dist/client/domains/Client.js +4 -2
  13. package/dist/client/domains/Client.js.map +1 -1
  14. package/dist/client/domains/TasksClient.d.ts.map +1 -1
  15. package/dist/client/domains/TasksClient.js +1 -4
  16. package/dist/client/domains/TasksClient.js.map +1 -1
  17. package/dist/client/domains/UsersClient.d.ts +16 -0
  18. package/dist/client/domains/UsersClient.d.ts.map +1 -0
  19. package/dist/client/domains/UsersClient.js +45 -0
  20. package/dist/client/domains/UsersClient.js.map +1 -0
  21. package/dist/client/domains/index.d.ts +1 -0
  22. package/dist/client/domains/index.d.ts.map +1 -1
  23. package/dist/client/domains/index.js +3 -1
  24. package/dist/client/domains/index.js.map +1 -1
  25. package/dist/client/index.d.ts +4 -2
  26. package/dist/client/index.d.ts.map +1 -1
  27. package/dist/client/index.js +4 -1
  28. package/dist/client/index.js.map +1 -1
  29. package/dist/index.d.ts +2 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +3 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/oracle/validators.d.ts +146 -8
  34. package/dist/oracle/validators.d.ts.map +1 -1
  35. package/dist/oracle/validators.js +1 -0
  36. package/dist/oracle/validators.js.map +1 -1
  37. package/dist/registry/AuthSigner.d.ts +5 -4
  38. package/dist/registry/AuthSigner.d.ts.map +1 -1
  39. package/dist/registry/AuthSigner.js +6 -5
  40. package/dist/registry/AuthSigner.js.map +1 -1
  41. package/dist/registry/types.d.ts +5 -1
  42. package/dist/registry/types.d.ts.map +1 -1
  43. package/dist/registry/types.js.map +1 -1
  44. package/dist/registry/validators.d.ts +37 -0
  45. package/dist/registry/validators.d.ts.map +1 -1
  46. package/dist/registry/validators.js +12 -3
  47. package/dist/registry/validators.js.map +1 -1
  48. package/dist/relayer/validators.d.ts +408 -0
  49. package/dist/relayer/validators.d.ts.map +1 -1
  50. package/dist/runner/validators.d.ts +226 -0
  51. package/dist/runner/validators.d.ts.map +1 -1
  52. package/dist/shared/validators/primitives.d.ts +3 -2
  53. package/dist/shared/validators/primitives.d.ts.map +1 -1
  54. package/dist/shared/validators/primitives.js +4 -3
  55. package/dist/shared/validators/primitives.js.map +1 -1
  56. package/package.json +1 -1
@@ -1139,6 +1139,144 @@ export declare const ExecutionCreateRequestValidator: z.ZodObject<z.objectUtil.e
1139
1139
  hash: string;
1140
1140
  };
1141
1141
  signature: string;
1142
+ }>, z.ZodObject<{
1143
+ signature: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1144
+ query: z.ZodObject<{
1145
+ name: z.ZodLiteral<"SvmGetAccountsInfoQuery">;
1146
+ hash: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1147
+ params: z.ZodObject<{
1148
+ publicKeys: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1149
+ timestamp: z.ZodEffects<z.ZodNumber, number, number>;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ timestamp: number;
1152
+ publicKeys: string[];
1153
+ }, {
1154
+ timestamp: number;
1155
+ publicKeys: string[];
1156
+ }>;
1157
+ }, "strip", z.ZodTypeAny, {
1158
+ params: {
1159
+ timestamp: number;
1160
+ publicKeys: string[];
1161
+ };
1162
+ name: "SvmGetAccountsInfoQuery";
1163
+ hash: string;
1164
+ }, {
1165
+ params: {
1166
+ timestamp: number;
1167
+ publicKeys: string[];
1168
+ };
1169
+ name: "SvmGetAccountsInfoQuery";
1170
+ hash: string;
1171
+ }>;
1172
+ result: z.ZodObject<{
1173
+ value: z.ZodObject<{
1174
+ accountsInfo: z.ZodArray<z.ZodObject<{
1175
+ executable: z.ZodBoolean;
1176
+ owner: z.ZodEffects<z.ZodString, string, string>;
1177
+ lamports: z.ZodEffects<z.ZodString, string, string>;
1178
+ data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1179
+ rentEpoch: z.ZodEffects<z.ZodString, string, string>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ data: string;
1182
+ executable: boolean;
1183
+ owner: string;
1184
+ lamports: string;
1185
+ rentEpoch: string;
1186
+ }, {
1187
+ data: string;
1188
+ executable: boolean;
1189
+ owner: string;
1190
+ lamports: string;
1191
+ rentEpoch: string;
1192
+ }>, "many">;
1193
+ slot: z.ZodEffects<z.ZodString, string, string>;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ accountsInfo: {
1196
+ data: string;
1197
+ executable: boolean;
1198
+ owner: string;
1199
+ lamports: string;
1200
+ rentEpoch: string;
1201
+ }[];
1202
+ slot: string;
1203
+ }, {
1204
+ accountsInfo: {
1205
+ data: string;
1206
+ executable: boolean;
1207
+ owner: string;
1208
+ lamports: string;
1209
+ rentEpoch: string;
1210
+ }[];
1211
+ slot: string;
1212
+ }>;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ value: {
1215
+ accountsInfo: {
1216
+ data: string;
1217
+ executable: boolean;
1218
+ owner: string;
1219
+ lamports: string;
1220
+ rentEpoch: string;
1221
+ }[];
1222
+ slot: string;
1223
+ };
1224
+ }, {
1225
+ value: {
1226
+ accountsInfo: {
1227
+ data: string;
1228
+ executable: boolean;
1229
+ owner: string;
1230
+ lamports: string;
1231
+ rentEpoch: string;
1232
+ }[];
1233
+ slot: string;
1234
+ };
1235
+ }>;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ result: {
1238
+ value: {
1239
+ accountsInfo: {
1240
+ data: string;
1241
+ executable: boolean;
1242
+ owner: string;
1243
+ lamports: string;
1244
+ rentEpoch: string;
1245
+ }[];
1246
+ slot: string;
1247
+ };
1248
+ };
1249
+ query: {
1250
+ params: {
1251
+ timestamp: number;
1252
+ publicKeys: string[];
1253
+ };
1254
+ name: "SvmGetAccountsInfoQuery";
1255
+ hash: string;
1256
+ };
1257
+ signature: string;
1258
+ }, {
1259
+ result: {
1260
+ value: {
1261
+ accountsInfo: {
1262
+ data: string;
1263
+ executable: boolean;
1264
+ owner: string;
1265
+ lamports: string;
1266
+ rentEpoch: string;
1267
+ }[];
1268
+ slot: string;
1269
+ };
1270
+ };
1271
+ query: {
1272
+ params: {
1273
+ timestamp: number;
1274
+ publicKeys: string[];
1275
+ };
1276
+ name: "SvmGetAccountsInfoQuery";
1277
+ hash: string;
1278
+ };
1279
+ signature: string;
1142
1280
  }>]>, "many">;
1143
1281
  outputs: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1144
1282
  op: z.ZodNativeEnum<typeof import("../shared").OpType>;
@@ -1235,6 +1373,28 @@ export declare const ExecutionCreateRequestValidator: z.ZodObject<z.objectUtil.e
1235
1373
  hash: string;
1236
1374
  };
1237
1375
  signature: string;
1376
+ } | {
1377
+ result: {
1378
+ value: {
1379
+ accountsInfo: {
1380
+ data: string;
1381
+ executable: boolean;
1382
+ owner: string;
1383
+ lamports: string;
1384
+ rentEpoch: string;
1385
+ }[];
1386
+ slot: string;
1387
+ };
1388
+ };
1389
+ query: {
1390
+ params: {
1391
+ timestamp: number;
1392
+ publicKeys: string[];
1393
+ };
1394
+ name: "SvmGetAccountsInfoQuery";
1395
+ hash: string;
1396
+ };
1397
+ signature: string;
1238
1398
  } | {
1239
1399
  result: {
1240
1400
  value: string;
@@ -1342,6 +1502,28 @@ export declare const ExecutionCreateRequestValidator: z.ZodObject<z.objectUtil.e
1342
1502
  hash: string;
1343
1503
  };
1344
1504
  signature: string;
1505
+ } | {
1506
+ result: {
1507
+ value: {
1508
+ accountsInfo: {
1509
+ data: string;
1510
+ executable: boolean;
1511
+ owner: string;
1512
+ lamports: string;
1513
+ rentEpoch: string;
1514
+ }[];
1515
+ slot: string;
1516
+ };
1517
+ };
1518
+ query: {
1519
+ params: {
1520
+ timestamp: number;
1521
+ publicKeys: string[];
1522
+ };
1523
+ name: "SvmGetAccountsInfoQuery";
1524
+ hash: string;
1525
+ };
1526
+ signature: string;
1345
1527
  } | {
1346
1528
  result: {
1347
1529
  value: string;
@@ -1929,6 +2111,144 @@ export declare const ExecutionResponseValidator: z.ZodObject<z.objectUtil.extend
1929
2111
  hash: string;
1930
2112
  };
1931
2113
  signature: string;
2114
+ }>, z.ZodObject<{
2115
+ signature: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2116
+ query: z.ZodObject<{
2117
+ name: z.ZodLiteral<"SvmGetAccountsInfoQuery">;
2118
+ hash: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2119
+ params: z.ZodObject<{
2120
+ publicKeys: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2121
+ timestamp: z.ZodEffects<z.ZodNumber, number, number>;
2122
+ }, "strip", z.ZodTypeAny, {
2123
+ timestamp: number;
2124
+ publicKeys: string[];
2125
+ }, {
2126
+ timestamp: number;
2127
+ publicKeys: string[];
2128
+ }>;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ params: {
2131
+ timestamp: number;
2132
+ publicKeys: string[];
2133
+ };
2134
+ name: "SvmGetAccountsInfoQuery";
2135
+ hash: string;
2136
+ }, {
2137
+ params: {
2138
+ timestamp: number;
2139
+ publicKeys: string[];
2140
+ };
2141
+ name: "SvmGetAccountsInfoQuery";
2142
+ hash: string;
2143
+ }>;
2144
+ result: z.ZodObject<{
2145
+ value: z.ZodObject<{
2146
+ accountsInfo: z.ZodArray<z.ZodObject<{
2147
+ executable: z.ZodBoolean;
2148
+ owner: z.ZodEffects<z.ZodString, string, string>;
2149
+ lamports: z.ZodEffects<z.ZodString, string, string>;
2150
+ data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
2151
+ rentEpoch: z.ZodEffects<z.ZodString, string, string>;
2152
+ }, "strip", z.ZodTypeAny, {
2153
+ data: string;
2154
+ executable: boolean;
2155
+ owner: string;
2156
+ lamports: string;
2157
+ rentEpoch: string;
2158
+ }, {
2159
+ data: string;
2160
+ executable: boolean;
2161
+ owner: string;
2162
+ lamports: string;
2163
+ rentEpoch: string;
2164
+ }>, "many">;
2165
+ slot: z.ZodEffects<z.ZodString, string, string>;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ accountsInfo: {
2168
+ data: string;
2169
+ executable: boolean;
2170
+ owner: string;
2171
+ lamports: string;
2172
+ rentEpoch: string;
2173
+ }[];
2174
+ slot: string;
2175
+ }, {
2176
+ accountsInfo: {
2177
+ data: string;
2178
+ executable: boolean;
2179
+ owner: string;
2180
+ lamports: string;
2181
+ rentEpoch: string;
2182
+ }[];
2183
+ slot: string;
2184
+ }>;
2185
+ }, "strip", z.ZodTypeAny, {
2186
+ value: {
2187
+ accountsInfo: {
2188
+ data: string;
2189
+ executable: boolean;
2190
+ owner: string;
2191
+ lamports: string;
2192
+ rentEpoch: string;
2193
+ }[];
2194
+ slot: string;
2195
+ };
2196
+ }, {
2197
+ value: {
2198
+ accountsInfo: {
2199
+ data: string;
2200
+ executable: boolean;
2201
+ owner: string;
2202
+ lamports: string;
2203
+ rentEpoch: string;
2204
+ }[];
2205
+ slot: string;
2206
+ };
2207
+ }>;
2208
+ }, "strip", z.ZodTypeAny, {
2209
+ result: {
2210
+ value: {
2211
+ accountsInfo: {
2212
+ data: string;
2213
+ executable: boolean;
2214
+ owner: string;
2215
+ lamports: string;
2216
+ rentEpoch: string;
2217
+ }[];
2218
+ slot: string;
2219
+ };
2220
+ };
2221
+ query: {
2222
+ params: {
2223
+ timestamp: number;
2224
+ publicKeys: string[];
2225
+ };
2226
+ name: "SvmGetAccountsInfoQuery";
2227
+ hash: string;
2228
+ };
2229
+ signature: string;
2230
+ }, {
2231
+ result: {
2232
+ value: {
2233
+ accountsInfo: {
2234
+ data: string;
2235
+ executable: boolean;
2236
+ owner: string;
2237
+ lamports: string;
2238
+ rentEpoch: string;
2239
+ }[];
2240
+ slot: string;
2241
+ };
2242
+ };
2243
+ query: {
2244
+ params: {
2245
+ timestamp: number;
2246
+ publicKeys: string[];
2247
+ };
2248
+ name: "SvmGetAccountsInfoQuery";
2249
+ hash: string;
2250
+ };
2251
+ signature: string;
1932
2252
  }>]>, "many">;
1933
2253
  outputs: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1934
2254
  op: z.ZodNativeEnum<typeof import("../shared").OpType>;
@@ -2069,6 +2389,28 @@ export declare const ExecutionResponseValidator: z.ZodObject<z.objectUtil.extend
2069
2389
  hash: string;
2070
2390
  };
2071
2391
  signature: string;
2392
+ } | {
2393
+ result: {
2394
+ value: {
2395
+ accountsInfo: {
2396
+ data: string;
2397
+ executable: boolean;
2398
+ owner: string;
2399
+ lamports: string;
2400
+ rentEpoch: string;
2401
+ }[];
2402
+ slot: string;
2403
+ };
2404
+ };
2405
+ query: {
2406
+ params: {
2407
+ timestamp: number;
2408
+ publicKeys: string[];
2409
+ };
2410
+ name: "SvmGetAccountsInfoQuery";
2411
+ hash: string;
2412
+ };
2413
+ signature: string;
2072
2414
  } | {
2073
2415
  result: {
2074
2416
  value: string;
@@ -2193,6 +2535,28 @@ export declare const ExecutionResponseValidator: z.ZodObject<z.objectUtil.extend
2193
2535
  hash: string;
2194
2536
  };
2195
2537
  signature: string;
2538
+ } | {
2539
+ result: {
2540
+ value: {
2541
+ accountsInfo: {
2542
+ data: string;
2543
+ executable: boolean;
2544
+ owner: string;
2545
+ lamports: string;
2546
+ rentEpoch: string;
2547
+ }[];
2548
+ slot: string;
2549
+ };
2550
+ };
2551
+ query: {
2552
+ params: {
2553
+ timestamp: number;
2554
+ publicKeys: string[];
2555
+ };
2556
+ name: "SvmGetAccountsInfoQuery";
2557
+ hash: string;
2558
+ };
2559
+ signature: string;
2196
2560
  } | {
2197
2561
  result: {
2198
2562
  value: string;
@@ -2758,6 +3122,144 @@ export declare const ExecutionsResponseValidator: z.ZodArray<z.ZodObject<z.objec
2758
3122
  hash: string;
2759
3123
  };
2760
3124
  signature: string;
3125
+ }>, z.ZodObject<{
3126
+ signature: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
3127
+ query: z.ZodObject<{
3128
+ name: z.ZodLiteral<"SvmGetAccountsInfoQuery">;
3129
+ hash: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
3130
+ params: z.ZodObject<{
3131
+ publicKeys: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3132
+ timestamp: z.ZodEffects<z.ZodNumber, number, number>;
3133
+ }, "strip", z.ZodTypeAny, {
3134
+ timestamp: number;
3135
+ publicKeys: string[];
3136
+ }, {
3137
+ timestamp: number;
3138
+ publicKeys: string[];
3139
+ }>;
3140
+ }, "strip", z.ZodTypeAny, {
3141
+ params: {
3142
+ timestamp: number;
3143
+ publicKeys: string[];
3144
+ };
3145
+ name: "SvmGetAccountsInfoQuery";
3146
+ hash: string;
3147
+ }, {
3148
+ params: {
3149
+ timestamp: number;
3150
+ publicKeys: string[];
3151
+ };
3152
+ name: "SvmGetAccountsInfoQuery";
3153
+ hash: string;
3154
+ }>;
3155
+ result: z.ZodObject<{
3156
+ value: z.ZodObject<{
3157
+ accountsInfo: z.ZodArray<z.ZodObject<{
3158
+ executable: z.ZodBoolean;
3159
+ owner: z.ZodEffects<z.ZodString, string, string>;
3160
+ lamports: z.ZodEffects<z.ZodString, string, string>;
3161
+ data: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
3162
+ rentEpoch: z.ZodEffects<z.ZodString, string, string>;
3163
+ }, "strip", z.ZodTypeAny, {
3164
+ data: string;
3165
+ executable: boolean;
3166
+ owner: string;
3167
+ lamports: string;
3168
+ rentEpoch: string;
3169
+ }, {
3170
+ data: string;
3171
+ executable: boolean;
3172
+ owner: string;
3173
+ lamports: string;
3174
+ rentEpoch: string;
3175
+ }>, "many">;
3176
+ slot: z.ZodEffects<z.ZodString, string, string>;
3177
+ }, "strip", z.ZodTypeAny, {
3178
+ accountsInfo: {
3179
+ data: string;
3180
+ executable: boolean;
3181
+ owner: string;
3182
+ lamports: string;
3183
+ rentEpoch: string;
3184
+ }[];
3185
+ slot: string;
3186
+ }, {
3187
+ accountsInfo: {
3188
+ data: string;
3189
+ executable: boolean;
3190
+ owner: string;
3191
+ lamports: string;
3192
+ rentEpoch: string;
3193
+ }[];
3194
+ slot: string;
3195
+ }>;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ value: {
3198
+ accountsInfo: {
3199
+ data: string;
3200
+ executable: boolean;
3201
+ owner: string;
3202
+ lamports: string;
3203
+ rentEpoch: string;
3204
+ }[];
3205
+ slot: string;
3206
+ };
3207
+ }, {
3208
+ value: {
3209
+ accountsInfo: {
3210
+ data: string;
3211
+ executable: boolean;
3212
+ owner: string;
3213
+ lamports: string;
3214
+ rentEpoch: string;
3215
+ }[];
3216
+ slot: string;
3217
+ };
3218
+ }>;
3219
+ }, "strip", z.ZodTypeAny, {
3220
+ result: {
3221
+ value: {
3222
+ accountsInfo: {
3223
+ data: string;
3224
+ executable: boolean;
3225
+ owner: string;
3226
+ lamports: string;
3227
+ rentEpoch: string;
3228
+ }[];
3229
+ slot: string;
3230
+ };
3231
+ };
3232
+ query: {
3233
+ params: {
3234
+ timestamp: number;
3235
+ publicKeys: string[];
3236
+ };
3237
+ name: "SvmGetAccountsInfoQuery";
3238
+ hash: string;
3239
+ };
3240
+ signature: string;
3241
+ }, {
3242
+ result: {
3243
+ value: {
3244
+ accountsInfo: {
3245
+ data: string;
3246
+ executable: boolean;
3247
+ owner: string;
3248
+ lamports: string;
3249
+ rentEpoch: string;
3250
+ }[];
3251
+ slot: string;
3252
+ };
3253
+ };
3254
+ query: {
3255
+ params: {
3256
+ timestamp: number;
3257
+ publicKeys: string[];
3258
+ };
3259
+ name: "SvmGetAccountsInfoQuery";
3260
+ hash: string;
3261
+ };
3262
+ signature: string;
2761
3263
  }>]>, "many">;
2762
3264
  outputs: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2763
3265
  op: z.ZodNativeEnum<typeof import("../shared").OpType>;
@@ -2898,6 +3400,28 @@ export declare const ExecutionsResponseValidator: z.ZodArray<z.ZodObject<z.objec
2898
3400
  hash: string;
2899
3401
  };
2900
3402
  signature: string;
3403
+ } | {
3404
+ result: {
3405
+ value: {
3406
+ accountsInfo: {
3407
+ data: string;
3408
+ executable: boolean;
3409
+ owner: string;
3410
+ lamports: string;
3411
+ rentEpoch: string;
3412
+ }[];
3413
+ slot: string;
3414
+ };
3415
+ };
3416
+ query: {
3417
+ params: {
3418
+ timestamp: number;
3419
+ publicKeys: string[];
3420
+ };
3421
+ name: "SvmGetAccountsInfoQuery";
3422
+ hash: string;
3423
+ };
3424
+ signature: string;
2901
3425
  } | {
2902
3426
  result: {
2903
3427
  value: string;
@@ -3022,6 +3546,28 @@ export declare const ExecutionsResponseValidator: z.ZodArray<z.ZodObject<z.objec
3022
3546
  hash: string;
3023
3547
  };
3024
3548
  signature: string;
3549
+ } | {
3550
+ result: {
3551
+ value: {
3552
+ accountsInfo: {
3553
+ data: string;
3554
+ executable: boolean;
3555
+ owner: string;
3556
+ lamports: string;
3557
+ rentEpoch: string;
3558
+ }[];
3559
+ slot: string;
3560
+ };
3561
+ };
3562
+ query: {
3563
+ params: {
3564
+ timestamp: number;
3565
+ publicKeys: string[];
3566
+ };
3567
+ name: "SvmGetAccountsInfoQuery";
3568
+ hash: string;
3569
+ };
3570
+ signature: string;
3025
3571
  } | {
3026
3572
  result: {
3027
3573
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/axia/validators.ts"],"names":[],"mappings":"AAAA,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAsC,CAAA;AAE9E,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ9C,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAA"}
@@ -11,8 +11,9 @@ export declare class ApiKeyAuth implements AuthStrategy {
11
11
  apply(headers: Record<string, string>): Record<string, string>;
12
12
  }
13
13
  export declare class BearerAuth implements AuthStrategy {
14
+ private readonly headerName;
14
15
  private readonly token;
15
- constructor(token: string);
16
+ constructor(token: string, headerName?: string);
16
17
  apply(headers: Record<string, string>): Record<string, string>;
17
18
  }
18
19
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/client/core/auth.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/D;AAED,qBAAa,MAAO,YAAW,YAAY;IACzC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAG/D;AAED,qBAAa,UAAW,YAAW,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAQ;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;gBAEnB,MAAM,EAAE,MAAM,EAAE,UAAU,SAAc;IAKpD,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAG/D;AAED,q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earerAuth {
21
- constructor(token) {
21
+ constructor(token, headerName = 'x-auth-token') {
22
22
  this.token = token;
23
+ this.headerName = headerName.toLowerCase();
23
24
  }
24
25
  apply(headers) {
25
- return { ...headers, authorization: `Bearer ${this.token}` };
26
+ return { ...headers, [this.headerName]: `${this.token}` };
26
27
  }
27
28
  }
28
29
  exports.BearerAuth = BearerAuth;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/client/core/auth.ts"],"names":[],"mappings":";;;AAIA,MAAa,MAAM;IACjB,KAAK,CAAC,OAA+B;QACnC,OAAO,OAAO,CAAA;IAChB,CAAC;CACF;AAJD,wBAIC;AAED,MAAa,UAAU;IAIrB,YAAY,MAAc,EAAE,UAAU,GAAG,WAAW;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAA;IAC5C,CAAC;IAED,KAAK,CAAC,OAA+B;QACnC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAA;IACvD,CAAC;CACF;AAZD,gCAYC;AAED,MAAa,UAAU;IAGrB,YAAY,KAAa;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,OAA+B;QACnC,OAAO,EAAE,GAAG,OAAO,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,EAAE,CAAA;IAC9D,CAAC;CACF;AAVD,gCAUC"}
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/client/core/auth.ts"],"names":[],"mappings":";;;AAIA,MAAa,MAAM;IACjB,KAAK,CAAC,OAA+B;QACnC,OAAO,OAAO,CAAA;IAChB,CAAC;CACF;AAJD,wBAIC;AAED,MAAa,UAAU;IAIrB,YAAY,MAAc,EAAE,UAAU,GAAG,WAAW;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAA;IAC5C,CAAC;IAED,KAAK,CAAC,OAA+B;QACnC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAA;IACvD,CAAC;CACF;AAZD,gCAYC;AAED,MAAa,UAAU;IAIrB,YAAY,KAAa,EAAE,UAAU,GAAG,cAAc;QACpD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,WAAW,EAAE,CAAA;IAC5C,CAAC;IAED,KAAK,CAAC,OAA+B;QACnC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,EAAE,CAAA;IAC3D,CAAC;CACF;AAZD,gCAYC"}
@@ -1,5 +1,5 @@
1
1
  import { AuthStrategy } from './auth';
2
- export type DomainName = 'configs' | 'tasks' | 'executions' | 'intents' | 'balances';
2
+ export type DomainName = 'configs' | 'tasks' | 'executions' | 'intents' | 'balances' | 'users';
3
3
  export interface DomainConfig {
4
4
  baseUrl: string;
5
5
  auth?: AuthStrategy;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/client/core/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAErC,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU,CAAA;AAIpF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxC;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;AAEzD,wBAAgB,iBAAiB,CAC/B,UAAU,GAAE,OAAO,CAAC,UAAU,CAAM,EACpC,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,YAAY,GACzB,UAAU,CAWZ"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/client/core/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAErC,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAA;AAI9F,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxC;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;AAEzD,wBAAgB,iBAAiB,CAC/B,UAAU,GAAE,OAAO,CAAC,UAAU,CAAM,EACpC,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,YAAY,GACzB,UAAU,CAYZ"}
@@ -9,6 +9,7 @@ function resolveCoreConfig(initConfig = {}, baseUrl, defaultAuth) {
9
9
  executions: { baseUrl: baseUrl ?? DEFAULT_API_URL, auth: defaultAuth },
10
10
  intents: { baseUrl: baseUrl ?? DEFAULT_API_URL, auth: defaultAuth },
11
11
  tasks: { baseUrl: baseUrl ?? DEFAULT_API_URL, auth: defaultAuth },
12
+ users: { baseUrl: baseUrl ?? DEFAULT_API_URL, auth: defaultAuth },
12
13
  ...initConfig,
13
14
  };
14
15
  return coreConfig;