@openfort/openfort-js 0.2.5 → 0.2.7
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/generated/api.d.ts +295 -245
- package/dist/generated/api.js +60 -101
- package/dist/generated/api.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -77,10 +77,10 @@ export interface AccountResponse {
|
|
|
77
77
|
'object': string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
|
-
* @type {
|
|
80
|
+
* @type {number}
|
|
81
81
|
* @memberof AccountResponse
|
|
82
82
|
*/
|
|
83
|
-
'created_at':
|
|
83
|
+
'created_at': number;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -145,10 +145,10 @@ export interface AccountsResponse {
|
|
|
145
145
|
export interface ApiKeyResponse {
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
|
-
* @type {
|
|
148
|
+
* @type {number}
|
|
149
149
|
* @memberof ApiKeyResponse
|
|
150
150
|
*/
|
|
151
|
-
'created_at':
|
|
151
|
+
'created_at': number;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {string}
|
|
@@ -293,10 +293,10 @@ export interface ContractResponse {
|
|
|
293
293
|
'object': string;
|
|
294
294
|
/**
|
|
295
295
|
*
|
|
296
|
-
* @type {
|
|
296
|
+
* @type {number}
|
|
297
297
|
* @memberof ContractResponse
|
|
298
298
|
*/
|
|
299
|
-
'created_at':
|
|
299
|
+
'created_at': number;
|
|
300
300
|
/**
|
|
301
301
|
*
|
|
302
302
|
* @type {string}
|
|
@@ -372,6 +372,31 @@ export interface CreatePlayerRequest {
|
|
|
372
372
|
*/
|
|
373
373
|
'description'?: string;
|
|
374
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @export
|
|
378
|
+
* @interface CreatePolicyRequest
|
|
379
|
+
*/
|
|
380
|
+
export interface CreatePolicyRequest {
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @type {string}
|
|
384
|
+
* @memberof CreatePolicyRequest
|
|
385
|
+
*/
|
|
386
|
+
'name': string;
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
* @type {number}
|
|
390
|
+
* @memberof CreatePolicyRequest
|
|
391
|
+
*/
|
|
392
|
+
'chain_id': number;
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @type {PolicyStrategy}
|
|
396
|
+
* @memberof CreatePolicyRequest
|
|
397
|
+
*/
|
|
398
|
+
'strategy': PolicyStrategy;
|
|
399
|
+
}
|
|
375
400
|
/**
|
|
376
401
|
*
|
|
377
402
|
* @export
|
|
@@ -500,6 +525,37 @@ export interface CreateSessionRequest {
|
|
|
500
525
|
*/
|
|
501
526
|
'whitelist'?: Array<string>;
|
|
502
527
|
}
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @export
|
|
531
|
+
* @interface DomainData
|
|
532
|
+
*/
|
|
533
|
+
export interface DomainData {
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @type {number}
|
|
537
|
+
* @memberof DomainData
|
|
538
|
+
*/
|
|
539
|
+
'chainId': number;
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof DomainData
|
|
544
|
+
*/
|
|
545
|
+
'name'?: string;
|
|
546
|
+
/**
|
|
547
|
+
*
|
|
548
|
+
* @type {string}
|
|
549
|
+
* @memberof DomainData
|
|
550
|
+
*/
|
|
551
|
+
'version'?: string;
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* @type {string}
|
|
555
|
+
* @memberof DomainData
|
|
556
|
+
*/
|
|
557
|
+
'verifyingContract'?: string;
|
|
558
|
+
}
|
|
503
559
|
/**
|
|
504
560
|
*
|
|
505
561
|
* @export
|
|
@@ -538,13 +594,13 @@ export interface Interaction {
|
|
|
538
594
|
* @type {string}
|
|
539
595
|
* @memberof Interaction
|
|
540
596
|
*/
|
|
541
|
-
'contract'
|
|
597
|
+
'contract'?: string;
|
|
542
598
|
/**
|
|
543
599
|
*
|
|
544
600
|
* @type {string}
|
|
545
601
|
* @memberof Interaction
|
|
546
602
|
*/
|
|
547
|
-
'value'?: string
|
|
603
|
+
'value'?: string;
|
|
548
604
|
/**
|
|
549
605
|
*
|
|
550
606
|
* @type {string}
|
|
@@ -650,6 +706,53 @@ export interface Log {
|
|
|
650
706
|
*/
|
|
651
707
|
'logIndex': number;
|
|
652
708
|
}
|
|
709
|
+
/**
|
|
710
|
+
*
|
|
711
|
+
* @export
|
|
712
|
+
* @interface NextActionPayload
|
|
713
|
+
*/
|
|
714
|
+
export interface NextActionPayload {
|
|
715
|
+
/**
|
|
716
|
+
*
|
|
717
|
+
* @type {any}
|
|
718
|
+
* @memberof NextActionPayload
|
|
719
|
+
*/
|
|
720
|
+
'user_op'?: any;
|
|
721
|
+
/**
|
|
722
|
+
*
|
|
723
|
+
* @type {string}
|
|
724
|
+
* @memberof NextActionPayload
|
|
725
|
+
*/
|
|
726
|
+
'user_op_hash'?: string;
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @export
|
|
731
|
+
* @interface NextActionResponse
|
|
732
|
+
*/
|
|
733
|
+
export interface NextActionResponse {
|
|
734
|
+
/**
|
|
735
|
+
*
|
|
736
|
+
* @type {NextActionType}
|
|
737
|
+
* @memberof NextActionResponse
|
|
738
|
+
*/
|
|
739
|
+
'type': NextActionType;
|
|
740
|
+
/**
|
|
741
|
+
*
|
|
742
|
+
* @type {NextActionPayload}
|
|
743
|
+
* @memberof NextActionResponse
|
|
744
|
+
*/
|
|
745
|
+
'payload': NextActionPayload;
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @export
|
|
750
|
+
* @enum {string}
|
|
751
|
+
*/
|
|
752
|
+
export declare const NextActionType: {
|
|
753
|
+
readonly SignWithWallet: "sign_with_wallet";
|
|
754
|
+
};
|
|
755
|
+
export type NextActionType = typeof NextActionType[keyof typeof NextActionType];
|
|
653
756
|
/**
|
|
654
757
|
* Enums
|
|
655
758
|
* @export
|
|
@@ -775,10 +878,10 @@ export interface PlayerResponse {
|
|
|
775
878
|
'object': string;
|
|
776
879
|
/**
|
|
777
880
|
*
|
|
778
|
-
* @type {
|
|
881
|
+
* @type {number}
|
|
779
882
|
* @memberof PlayerResponse
|
|
780
883
|
*/
|
|
781
|
-
'created_at':
|
|
884
|
+
'created_at': number;
|
|
782
885
|
/**
|
|
783
886
|
*
|
|
784
887
|
* @type {string}
|
|
@@ -947,31 +1050,6 @@ export interface PolicyDeleteResponse {
|
|
|
947
1050
|
*/
|
|
948
1051
|
'deleted': boolean;
|
|
949
1052
|
}
|
|
950
|
-
/**
|
|
951
|
-
*
|
|
952
|
-
* @export
|
|
953
|
-
* @interface PolicyRequest
|
|
954
|
-
*/
|
|
955
|
-
export interface PolicyRequest {
|
|
956
|
-
/**
|
|
957
|
-
*
|
|
958
|
-
* @type {string}
|
|
959
|
-
* @memberof PolicyRequest
|
|
960
|
-
*/
|
|
961
|
-
'name': string;
|
|
962
|
-
/**
|
|
963
|
-
*
|
|
964
|
-
* @type {number}
|
|
965
|
-
* @memberof PolicyRequest
|
|
966
|
-
*/
|
|
967
|
-
'chain_id': number;
|
|
968
|
-
/**
|
|
969
|
-
*
|
|
970
|
-
* @type {Strategy}
|
|
971
|
-
* @memberof PolicyRequest
|
|
972
|
-
*/
|
|
973
|
-
'strategy'?: Strategy;
|
|
974
|
-
}
|
|
975
1053
|
/**
|
|
976
1054
|
*
|
|
977
1055
|
* @export
|
|
@@ -992,10 +1070,10 @@ export interface PolicyResponse {
|
|
|
992
1070
|
'object': string;
|
|
993
1071
|
/**
|
|
994
1072
|
*
|
|
995
|
-
* @type {
|
|
1073
|
+
* @type {number}
|
|
996
1074
|
* @memberof PolicyResponse
|
|
997
1075
|
*/
|
|
998
|
-
'created_at':
|
|
1076
|
+
'created_at': number;
|
|
999
1077
|
/**
|
|
1000
1078
|
*
|
|
1001
1079
|
* @type {string}
|
|
@@ -1010,10 +1088,10 @@ export interface PolicyResponse {
|
|
|
1010
1088
|
'chain_id': number;
|
|
1011
1089
|
/**
|
|
1012
1090
|
*
|
|
1013
|
-
* @type {
|
|
1091
|
+
* @type {PolicyStrategy}
|
|
1014
1092
|
* @memberof PolicyResponse
|
|
1015
1093
|
*/
|
|
1016
|
-
'strategy':
|
|
1094
|
+
'strategy': PolicyStrategy;
|
|
1017
1095
|
/**
|
|
1018
1096
|
*
|
|
1019
1097
|
* @type {Array<PolicyResponseTransactionIntentsInner>}
|
|
@@ -1047,10 +1125,10 @@ export interface PolicyResponsePolicyRulesInner {
|
|
|
1047
1125
|
'object': string;
|
|
1048
1126
|
/**
|
|
1049
1127
|
*
|
|
1050
|
-
* @type {
|
|
1128
|
+
* @type {number}
|
|
1051
1129
|
* @memberof PolicyResponsePolicyRulesInner
|
|
1052
1130
|
*/
|
|
1053
|
-
'created_at':
|
|
1131
|
+
'created_at': number;
|
|
1054
1132
|
/**
|
|
1055
1133
|
*
|
|
1056
1134
|
* @type {PolicySchema}
|
|
@@ -1090,16 +1168,16 @@ export interface PolicyResponseTransactionIntentsInner {
|
|
|
1090
1168
|
'object': string;
|
|
1091
1169
|
/**
|
|
1092
1170
|
*
|
|
1093
|
-
* @type {
|
|
1171
|
+
* @type {number}
|
|
1094
1172
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1095
1173
|
*/
|
|
1096
|
-
'created_at':
|
|
1174
|
+
'created_at': number;
|
|
1097
1175
|
/**
|
|
1098
1176
|
*
|
|
1099
|
-
* @type {
|
|
1177
|
+
* @type {number}
|
|
1100
1178
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1101
1179
|
*/
|
|
1102
|
-
'updated_at':
|
|
1180
|
+
'updated_at': number;
|
|
1103
1181
|
/**
|
|
1104
1182
|
*
|
|
1105
1183
|
* @type {number}
|
|
@@ -1111,7 +1189,7 @@ export interface PolicyResponseTransactionIntentsInner {
|
|
|
1111
1189
|
* @type {string}
|
|
1112
1190
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1113
1191
|
*/
|
|
1114
|
-
'user_operation_hash'
|
|
1192
|
+
'user_operation_hash'?: string;
|
|
1115
1193
|
/**
|
|
1116
1194
|
*
|
|
1117
1195
|
* @type {any}
|
|
@@ -1120,40 +1198,40 @@ export interface PolicyResponseTransactionIntentsInner {
|
|
|
1120
1198
|
'user_operation'?: any;
|
|
1121
1199
|
/**
|
|
1122
1200
|
*
|
|
1123
|
-
* @type {
|
|
1201
|
+
* @type {NextActionResponse}
|
|
1124
1202
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1125
1203
|
*/
|
|
1126
|
-
'
|
|
1204
|
+
'next_action'?: NextActionResponse;
|
|
1127
1205
|
/**
|
|
1128
1206
|
*
|
|
1129
|
-
* @type {
|
|
1207
|
+
* @type {ResponseResponse}
|
|
1130
1208
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1131
1209
|
*/
|
|
1132
|
-
'
|
|
1210
|
+
'response'?: ResponseResponse;
|
|
1133
1211
|
/**
|
|
1134
1212
|
*
|
|
1135
|
-
* @type {
|
|
1213
|
+
* @type {TransactionIntentResponsePolicy}
|
|
1136
1214
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1137
1215
|
*/
|
|
1138
|
-
'
|
|
1216
|
+
'policy'?: TransactionIntentResponsePolicy;
|
|
1139
1217
|
/**
|
|
1140
1218
|
*
|
|
1141
|
-
* @type {
|
|
1219
|
+
* @type {TransactionIntentResponsePlayer}
|
|
1142
1220
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1143
1221
|
*/
|
|
1144
|
-
'
|
|
1222
|
+
'player'?: TransactionIntentResponsePlayer;
|
|
1145
1223
|
/**
|
|
1146
1224
|
*
|
|
1147
|
-
* @type {
|
|
1225
|
+
* @type {TransactionIntentResponseAccount}
|
|
1148
1226
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1149
1227
|
*/
|
|
1150
|
-
'
|
|
1228
|
+
'account'?: TransactionIntentResponseAccount;
|
|
1151
1229
|
/**
|
|
1152
1230
|
*
|
|
1153
|
-
* @type {
|
|
1231
|
+
* @type {Array<Interaction>}
|
|
1154
1232
|
* @memberof PolicyResponseTransactionIntentsInner
|
|
1155
1233
|
*/
|
|
1156
|
-
'
|
|
1234
|
+
'interactions'?: Array<Interaction>;
|
|
1157
1235
|
}
|
|
1158
1236
|
/**
|
|
1159
1237
|
*
|
|
@@ -1231,10 +1309,10 @@ export interface PolicyRuleResponse {
|
|
|
1231
1309
|
'object': string;
|
|
1232
1310
|
/**
|
|
1233
1311
|
*
|
|
1234
|
-
* @type {
|
|
1312
|
+
* @type {number}
|
|
1235
1313
|
* @memberof PolicyRuleResponse
|
|
1236
1314
|
*/
|
|
1237
|
-
'created_at':
|
|
1315
|
+
'created_at': number;
|
|
1238
1316
|
/**
|
|
1239
1317
|
*
|
|
1240
1318
|
* @type {PolicySchema}
|
|
@@ -1274,10 +1352,10 @@ export interface PolicyRuleResponseContract {
|
|
|
1274
1352
|
'object': string;
|
|
1275
1353
|
/**
|
|
1276
1354
|
*
|
|
1277
|
-
* @type {
|
|
1355
|
+
* @type {number}
|
|
1278
1356
|
* @memberof PolicyRuleResponseContract
|
|
1279
1357
|
*/
|
|
1280
|
-
'created_at':
|
|
1358
|
+
'created_at': number;
|
|
1281
1359
|
/**
|
|
1282
1360
|
*
|
|
1283
1361
|
* @type {string}
|
|
@@ -1378,27 +1456,27 @@ export type PolicySchema = typeof PolicySchema[keyof typeof PolicySchema];
|
|
|
1378
1456
|
/**
|
|
1379
1457
|
*
|
|
1380
1458
|
* @export
|
|
1381
|
-
* @interface
|
|
1459
|
+
* @interface PolicyStrategy
|
|
1382
1460
|
*/
|
|
1383
|
-
export interface
|
|
1461
|
+
export interface PolicyStrategy {
|
|
1384
1462
|
/**
|
|
1385
1463
|
*
|
|
1386
|
-
* @type {
|
|
1387
|
-
* @memberof
|
|
1464
|
+
* @type {SponsorSchema}
|
|
1465
|
+
* @memberof PolicyStrategy
|
|
1388
1466
|
*/
|
|
1389
|
-
'
|
|
1467
|
+
'sponsor_schema': SponsorSchema;
|
|
1390
1468
|
/**
|
|
1391
1469
|
*
|
|
1392
|
-
* @type {
|
|
1393
|
-
* @memberof
|
|
1470
|
+
* @type {string}
|
|
1471
|
+
* @memberof PolicyStrategy
|
|
1394
1472
|
*/
|
|
1395
|
-
'
|
|
1473
|
+
'token_contract'?: string;
|
|
1396
1474
|
/**
|
|
1397
1475
|
*
|
|
1398
|
-
* @type {
|
|
1399
|
-
* @memberof
|
|
1476
|
+
* @type {string}
|
|
1477
|
+
* @memberof PolicyStrategy
|
|
1400
1478
|
*/
|
|
1401
|
-
'
|
|
1479
|
+
'token_contract_amount'?: string;
|
|
1402
1480
|
}
|
|
1403
1481
|
/**
|
|
1404
1482
|
*
|
|
@@ -1470,16 +1548,16 @@ export interface ProjectResponse {
|
|
|
1470
1548
|
'object': string;
|
|
1471
1549
|
/**
|
|
1472
1550
|
*
|
|
1473
|
-
* @type {
|
|
1551
|
+
* @type {number}
|
|
1474
1552
|
* @memberof ProjectResponse
|
|
1475
1553
|
*/
|
|
1476
|
-
'created_at':
|
|
1554
|
+
'created_at': number;
|
|
1477
1555
|
/**
|
|
1478
1556
|
*
|
|
1479
|
-
* @type {
|
|
1557
|
+
* @type {number}
|
|
1480
1558
|
* @memberof ProjectResponse
|
|
1481
1559
|
*/
|
|
1482
|
-
'updated_at':
|
|
1560
|
+
'updated_at': number;
|
|
1483
1561
|
/**
|
|
1484
1562
|
*
|
|
1485
1563
|
* @type {string}
|
|
@@ -1532,46 +1610,46 @@ export interface ProjectsResponse {
|
|
|
1532
1610
|
export interface ResponseResponse {
|
|
1533
1611
|
/**
|
|
1534
1612
|
*
|
|
1535
|
-
* @type {
|
|
1613
|
+
* @type {number}
|
|
1536
1614
|
* @memberof ResponseResponse
|
|
1537
1615
|
*/
|
|
1538
|
-
'created_at':
|
|
1616
|
+
'created_at': number;
|
|
1539
1617
|
/**
|
|
1540
1618
|
*
|
|
1541
1619
|
* @type {number}
|
|
1542
1620
|
* @memberof ResponseResponse
|
|
1543
1621
|
*/
|
|
1544
|
-
'block_number'
|
|
1622
|
+
'block_number'?: number;
|
|
1545
1623
|
/**
|
|
1546
1624
|
*
|
|
1547
1625
|
* @type {string}
|
|
1548
1626
|
* @memberof ResponseResponse
|
|
1549
1627
|
*/
|
|
1550
|
-
'transaction_hash'
|
|
1628
|
+
'transaction_hash'?: string;
|
|
1551
1629
|
/**
|
|
1552
1630
|
*
|
|
1553
1631
|
* @type {number}
|
|
1554
1632
|
* @memberof ResponseResponse
|
|
1555
1633
|
*/
|
|
1556
|
-
'gas_used'?: number
|
|
1634
|
+
'gas_used'?: number;
|
|
1557
1635
|
/**
|
|
1558
1636
|
*
|
|
1559
1637
|
* @type {number}
|
|
1560
1638
|
* @memberof ResponseResponse
|
|
1561
1639
|
*/
|
|
1562
|
-
'status'?: number
|
|
1640
|
+
'status'?: number;
|
|
1563
1641
|
/**
|
|
1564
1642
|
*
|
|
1565
1643
|
* @type {Array<Log>}
|
|
1566
1644
|
* @memberof ResponseResponse
|
|
1567
1645
|
*/
|
|
1568
|
-
'logs'?: Array<Log
|
|
1646
|
+
'logs'?: Array<Log>;
|
|
1569
1647
|
/**
|
|
1570
1648
|
*
|
|
1571
1649
|
* @type {string}
|
|
1572
1650
|
* @memberof ResponseResponse
|
|
1573
1651
|
*/
|
|
1574
|
-
'to'?: string
|
|
1652
|
+
'to'?: string;
|
|
1575
1653
|
/**
|
|
1576
1654
|
*
|
|
1577
1655
|
* @type {any}
|
|
@@ -1667,16 +1745,16 @@ export interface SessionResponse {
|
|
|
1667
1745
|
'object': string;
|
|
1668
1746
|
/**
|
|
1669
1747
|
*
|
|
1670
|
-
* @type {
|
|
1748
|
+
* @type {number}
|
|
1671
1749
|
* @memberof SessionResponse
|
|
1672
1750
|
*/
|
|
1673
|
-
'created_at':
|
|
1751
|
+
'created_at': number;
|
|
1674
1752
|
/**
|
|
1675
1753
|
*
|
|
1676
|
-
* @type {
|
|
1754
|
+
* @type {number}
|
|
1677
1755
|
* @memberof SessionResponse
|
|
1678
1756
|
*/
|
|
1679
|
-
'updated_at':
|
|
1757
|
+
'updated_at': number;
|
|
1680
1758
|
/**
|
|
1681
1759
|
*
|
|
1682
1760
|
* @type {boolean}
|
|
@@ -1715,16 +1793,16 @@ export interface SessionResponse {
|
|
|
1715
1793
|
'limit'?: number;
|
|
1716
1794
|
/**
|
|
1717
1795
|
*
|
|
1718
|
-
* @type {
|
|
1796
|
+
* @type {NextActionResponse}
|
|
1719
1797
|
* @memberof SessionResponse
|
|
1720
1798
|
*/
|
|
1721
|
-
'next_action'
|
|
1799
|
+
'next_action'?: NextActionResponse;
|
|
1722
1800
|
/**
|
|
1723
1801
|
*
|
|
1724
1802
|
* @type {Array<PolicyResponseTransactionIntentsInner>}
|
|
1725
1803
|
* @memberof SessionResponse
|
|
1726
1804
|
*/
|
|
1727
|
-
'transaction_intents'
|
|
1805
|
+
'transaction_intents'?: Array<PolicyResponseTransactionIntentsInner>;
|
|
1728
1806
|
}
|
|
1729
1807
|
/**
|
|
1730
1808
|
*
|
|
@@ -1757,103 +1835,75 @@ export interface SessionsResponse {
|
|
|
1757
1835
|
* @interface SignPayloadRequest
|
|
1758
1836
|
*/
|
|
1759
1837
|
export interface SignPayloadRequest {
|
|
1760
|
-
/**
|
|
1761
|
-
* Payload to sign
|
|
1762
|
-
* @type {string}
|
|
1763
|
-
* @memberof SignPayloadRequest
|
|
1764
|
-
*/
|
|
1765
|
-
'payload': string;
|
|
1766
|
-
}
|
|
1767
|
-
/**
|
|
1768
|
-
*
|
|
1769
|
-
* @export
|
|
1770
|
-
* @interface SignPayloadResponse
|
|
1771
|
-
*/
|
|
1772
|
-
export interface SignPayloadResponse {
|
|
1773
|
-
/**
|
|
1774
|
-
*
|
|
1775
|
-
* @type {string}
|
|
1776
|
-
* @memberof SignPayloadResponse
|
|
1777
|
-
*/
|
|
1778
|
-
'object': string;
|
|
1779
1838
|
/**
|
|
1780
1839
|
*
|
|
1781
|
-
* @type {
|
|
1782
|
-
* @memberof
|
|
1840
|
+
* @type {DomainData}
|
|
1841
|
+
* @memberof SignPayloadRequest
|
|
1783
1842
|
*/
|
|
1784
|
-
'
|
|
1843
|
+
'domain': DomainData;
|
|
1785
1844
|
/**
|
|
1786
1845
|
*
|
|
1787
|
-
* @type {string}
|
|
1788
|
-
* @memberof
|
|
1846
|
+
* @type {{ [key: string]: Array<TypedDataField>; }}
|
|
1847
|
+
* @memberof SignPayloadRequest
|
|
1789
1848
|
*/
|
|
1790
|
-
'
|
|
1849
|
+
'types': {
|
|
1850
|
+
[key: string]: Array<TypedDataField>;
|
|
1851
|
+
};
|
|
1791
1852
|
/**
|
|
1792
1853
|
*
|
|
1793
1854
|
* @type {string}
|
|
1794
|
-
* @memberof
|
|
1855
|
+
* @memberof SignPayloadRequest
|
|
1795
1856
|
*/
|
|
1796
|
-
'
|
|
1857
|
+
'primaryType'?: string;
|
|
1797
1858
|
/**
|
|
1798
1859
|
*
|
|
1799
|
-
* @type {string}
|
|
1800
|
-
* @memberof
|
|
1860
|
+
* @type {{ [key: string]: any; }}
|
|
1861
|
+
* @memberof SignPayloadRequest
|
|
1801
1862
|
*/
|
|
1802
|
-
'
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
*
|
|
1806
|
-
* @export
|
|
1807
|
-
* @interface SignTextRequest
|
|
1808
|
-
*/
|
|
1809
|
-
export interface SignTextRequest {
|
|
1863
|
+
'value': {
|
|
1864
|
+
[key: string]: any;
|
|
1865
|
+
};
|
|
1810
1866
|
/**
|
|
1811
|
-
*
|
|
1867
|
+
* Hash to verify and that will be signed
|
|
1812
1868
|
* @type {string}
|
|
1813
|
-
* @memberof
|
|
1869
|
+
* @memberof SignPayloadRequest
|
|
1814
1870
|
*/
|
|
1815
|
-
'
|
|
1871
|
+
'hash': string;
|
|
1816
1872
|
}
|
|
1817
1873
|
/**
|
|
1818
1874
|
*
|
|
1819
1875
|
* @export
|
|
1820
|
-
* @interface
|
|
1876
|
+
* @interface SignPayloadResponse
|
|
1821
1877
|
*/
|
|
1822
|
-
export interface
|
|
1878
|
+
export interface SignPayloadResponse {
|
|
1823
1879
|
/**
|
|
1824
1880
|
*
|
|
1825
1881
|
* @type {string}
|
|
1826
|
-
* @memberof
|
|
1882
|
+
* @memberof SignPayloadResponse
|
|
1827
1883
|
*/
|
|
1828
1884
|
'object': string;
|
|
1829
1885
|
/**
|
|
1830
1886
|
*
|
|
1831
1887
|
* @type {string}
|
|
1832
|
-
* @memberof
|
|
1888
|
+
* @memberof SignPayloadResponse
|
|
1833
1889
|
*/
|
|
1834
1890
|
'account': string;
|
|
1835
1891
|
/**
|
|
1836
1892
|
*
|
|
1837
1893
|
* @type {string}
|
|
1838
|
-
* @memberof
|
|
1894
|
+
* @memberof SignPayloadResponse
|
|
1839
1895
|
*/
|
|
1840
1896
|
'address': string;
|
|
1841
1897
|
/**
|
|
1842
1898
|
*
|
|
1843
1899
|
* @type {string}
|
|
1844
|
-
* @memberof
|
|
1845
|
-
*/
|
|
1846
|
-
'text': string;
|
|
1847
|
-
/**
|
|
1848
|
-
*
|
|
1849
|
-
* @type {string}
|
|
1850
|
-
* @memberof SignTextResponse
|
|
1900
|
+
* @memberof SignPayloadResponse
|
|
1851
1901
|
*/
|
|
1852
|
-
'
|
|
1902
|
+
'hash': string;
|
|
1853
1903
|
/**
|
|
1854
1904
|
*
|
|
1855
1905
|
* @type {string}
|
|
1856
|
-
* @memberof
|
|
1906
|
+
* @memberof SignPayloadResponse
|
|
1857
1907
|
*/
|
|
1858
1908
|
'signature': string;
|
|
1859
1909
|
}
|
|
@@ -1889,28 +1939,13 @@ export type SortOrder = typeof SortOrder[keyof typeof SortOrder];
|
|
|
1889
1939
|
/**
|
|
1890
1940
|
*
|
|
1891
1941
|
* @export
|
|
1892
|
-
* @
|
|
1942
|
+
* @enum {string}
|
|
1893
1943
|
*/
|
|
1894
|
-
export
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
*/
|
|
1900
|
-
'sponsor_schema': string;
|
|
1901
|
-
/**
|
|
1902
|
-
*
|
|
1903
|
-
* @type {string}
|
|
1904
|
-
* @memberof Strategy
|
|
1905
|
-
*/
|
|
1906
|
-
'token_contract': string | null;
|
|
1907
|
-
/**
|
|
1908
|
-
*
|
|
1909
|
-
* @type {string}
|
|
1910
|
-
* @memberof Strategy
|
|
1911
|
-
*/
|
|
1912
|
-
'token_contract_amount': string | null;
|
|
1913
|
-
}
|
|
1944
|
+
export declare const SponsorSchema: {
|
|
1945
|
+
readonly PayForUser: "pay_for_user";
|
|
1946
|
+
readonly ChargeCustomTokens: "charge_custom_tokens";
|
|
1947
|
+
};
|
|
1948
|
+
export type SponsorSchema = typeof SponsorSchema[keyof typeof SponsorSchema];
|
|
1914
1949
|
/**
|
|
1915
1950
|
*
|
|
1916
1951
|
* @export
|
|
@@ -1999,16 +2034,16 @@ export interface TransactionIntentResponse {
|
|
|
1999
2034
|
'object': string;
|
|
2000
2035
|
/**
|
|
2001
2036
|
*
|
|
2002
|
-
* @type {
|
|
2037
|
+
* @type {number}
|
|
2003
2038
|
* @memberof TransactionIntentResponse
|
|
2004
2039
|
*/
|
|
2005
|
-
'created_at':
|
|
2040
|
+
'created_at': number;
|
|
2006
2041
|
/**
|
|
2007
2042
|
*
|
|
2008
|
-
* @type {
|
|
2043
|
+
* @type {number}
|
|
2009
2044
|
* @memberof TransactionIntentResponse
|
|
2010
2045
|
*/
|
|
2011
|
-
'updated_at':
|
|
2046
|
+
'updated_at': number;
|
|
2012
2047
|
/**
|
|
2013
2048
|
*
|
|
2014
2049
|
* @type {number}
|
|
@@ -2020,7 +2055,7 @@ export interface TransactionIntentResponse {
|
|
|
2020
2055
|
* @type {string}
|
|
2021
2056
|
* @memberof TransactionIntentResponse
|
|
2022
2057
|
*/
|
|
2023
|
-
'user_operation_hash'
|
|
2058
|
+
'user_operation_hash'?: string;
|
|
2024
2059
|
/**
|
|
2025
2060
|
*
|
|
2026
2061
|
* @type {any}
|
|
@@ -2029,40 +2064,40 @@ export interface TransactionIntentResponse {
|
|
|
2029
2064
|
'user_operation'?: any;
|
|
2030
2065
|
/**
|
|
2031
2066
|
*
|
|
2032
|
-
* @type {
|
|
2067
|
+
* @type {NextActionResponse}
|
|
2033
2068
|
* @memberof TransactionIntentResponse
|
|
2034
2069
|
*/
|
|
2035
|
-
'
|
|
2070
|
+
'next_action'?: NextActionResponse;
|
|
2036
2071
|
/**
|
|
2037
2072
|
*
|
|
2038
|
-
* @type {
|
|
2073
|
+
* @type {ResponseResponse}
|
|
2039
2074
|
* @memberof TransactionIntentResponse
|
|
2040
2075
|
*/
|
|
2041
|
-
'
|
|
2076
|
+
'response'?: ResponseResponse;
|
|
2042
2077
|
/**
|
|
2043
2078
|
*
|
|
2044
|
-
* @type {
|
|
2079
|
+
* @type {TransactionIntentResponsePolicy}
|
|
2045
2080
|
* @memberof TransactionIntentResponse
|
|
2046
2081
|
*/
|
|
2047
|
-
'
|
|
2082
|
+
'policy'?: TransactionIntentResponsePolicy;
|
|
2048
2083
|
/**
|
|
2049
2084
|
*
|
|
2050
|
-
* @type {
|
|
2085
|
+
* @type {TransactionIntentResponsePlayer}
|
|
2051
2086
|
* @memberof TransactionIntentResponse
|
|
2052
2087
|
*/
|
|
2053
|
-
'
|
|
2088
|
+
'player'?: TransactionIntentResponsePlayer;
|
|
2054
2089
|
/**
|
|
2055
2090
|
*
|
|
2056
|
-
* @type {
|
|
2091
|
+
* @type {TransactionIntentResponseAccount}
|
|
2057
2092
|
* @memberof TransactionIntentResponse
|
|
2058
2093
|
*/
|
|
2059
|
-
'
|
|
2094
|
+
'account'?: TransactionIntentResponseAccount;
|
|
2060
2095
|
/**
|
|
2061
2096
|
*
|
|
2062
|
-
* @type {
|
|
2097
|
+
* @type {Array<Interaction>}
|
|
2063
2098
|
* @memberof TransactionIntentResponse
|
|
2064
2099
|
*/
|
|
2065
|
-
'
|
|
2100
|
+
'interactions'?: Array<Interaction>;
|
|
2066
2101
|
}
|
|
2067
2102
|
/**
|
|
2068
2103
|
*
|
|
@@ -2084,10 +2119,10 @@ export interface TransactionIntentResponseAccount {
|
|
|
2084
2119
|
'object': string;
|
|
2085
2120
|
/**
|
|
2086
2121
|
*
|
|
2087
|
-
* @type {
|
|
2122
|
+
* @type {number}
|
|
2088
2123
|
* @memberof TransactionIntentResponseAccount
|
|
2089
2124
|
*/
|
|
2090
|
-
'created_at':
|
|
2125
|
+
'created_at': number;
|
|
2091
2126
|
/**
|
|
2092
2127
|
*
|
|
2093
2128
|
* @type {string}
|
|
@@ -2139,10 +2174,10 @@ export interface TransactionIntentResponsePlayer {
|
|
|
2139
2174
|
'object': string;
|
|
2140
2175
|
/**
|
|
2141
2176
|
*
|
|
2142
|
-
* @type {
|
|
2177
|
+
* @type {number}
|
|
2143
2178
|
* @memberof TransactionIntentResponsePlayer
|
|
2144
2179
|
*/
|
|
2145
|
-
'created_at':
|
|
2180
|
+
'created_at': number;
|
|
2146
2181
|
/**
|
|
2147
2182
|
*
|
|
2148
2183
|
* @type {string}
|
|
@@ -2200,10 +2235,10 @@ export interface TransactionIntentResponsePolicy {
|
|
|
2200
2235
|
'object': string;
|
|
2201
2236
|
/**
|
|
2202
2237
|
*
|
|
2203
|
-
* @type {
|
|
2238
|
+
* @type {number}
|
|
2204
2239
|
* @memberof TransactionIntentResponsePolicy
|
|
2205
2240
|
*/
|
|
2206
|
-
'created_at':
|
|
2241
|
+
'created_at': number;
|
|
2207
2242
|
/**
|
|
2208
2243
|
*
|
|
2209
2244
|
* @type {string}
|
|
@@ -2218,10 +2253,10 @@ export interface TransactionIntentResponsePolicy {
|
|
|
2218
2253
|
'chain_id': number;
|
|
2219
2254
|
/**
|
|
2220
2255
|
*
|
|
2221
|
-
* @type {
|
|
2256
|
+
* @type {PolicyStrategy}
|
|
2222
2257
|
* @memberof TransactionIntentResponsePolicy
|
|
2223
2258
|
*/
|
|
2224
|
-
'strategy':
|
|
2259
|
+
'strategy': PolicyStrategy;
|
|
2225
2260
|
/**
|
|
2226
2261
|
*
|
|
2227
2262
|
* @type {Array<PolicyResponseTransactionIntentsInner>}
|
|
@@ -2279,6 +2314,50 @@ export interface TransferOwnershipRequest {
|
|
|
2279
2314
|
*/
|
|
2280
2315
|
'policy': string;
|
|
2281
2316
|
}
|
|
2317
|
+
/**
|
|
2318
|
+
*
|
|
2319
|
+
* @export
|
|
2320
|
+
* @interface TypedDataField
|
|
2321
|
+
*/
|
|
2322
|
+
export interface TypedDataField {
|
|
2323
|
+
/**
|
|
2324
|
+
*
|
|
2325
|
+
* @type {string}
|
|
2326
|
+
* @memberof TypedDataField
|
|
2327
|
+
*/
|
|
2328
|
+
'name': string;
|
|
2329
|
+
/**
|
|
2330
|
+
*
|
|
2331
|
+
* @type {string}
|
|
2332
|
+
* @memberof TypedDataField
|
|
2333
|
+
*/
|
|
2334
|
+
'type': string;
|
|
2335
|
+
}
|
|
2336
|
+
/**
|
|
2337
|
+
*
|
|
2338
|
+
* @export
|
|
2339
|
+
* @interface UpdatePolicyRequest
|
|
2340
|
+
*/
|
|
2341
|
+
export interface UpdatePolicyRequest {
|
|
2342
|
+
/**
|
|
2343
|
+
*
|
|
2344
|
+
* @type {string}
|
|
2345
|
+
* @memberof UpdatePolicyRequest
|
|
2346
|
+
*/
|
|
2347
|
+
'name'?: string;
|
|
2348
|
+
/**
|
|
2349
|
+
*
|
|
2350
|
+
* @type {number}
|
|
2351
|
+
* @memberof UpdatePolicyRequest
|
|
2352
|
+
*/
|
|
2353
|
+
'chain_id'?: number;
|
|
2354
|
+
/**
|
|
2355
|
+
*
|
|
2356
|
+
* @type {PolicyStrategy}
|
|
2357
|
+
* @memberof UpdatePolicyRequest
|
|
2358
|
+
*/
|
|
2359
|
+
'strategy'?: PolicyStrategy;
|
|
2360
|
+
}
|
|
2282
2361
|
/**
|
|
2283
2362
|
* AccountsApi - axios parameter creator
|
|
2284
2363
|
* @export
|
|
@@ -2323,14 +2402,6 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2323
2402
|
* @throws {RequiredError}
|
|
2324
2403
|
*/
|
|
2325
2404
|
signPayload: (id: string, signPayloadRequest: SignPayloadRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2326
|
-
/**
|
|
2327
|
-
* Sign a given text
|
|
2328
|
-
* @param {string} id Specifies the unique account ID.
|
|
2329
|
-
* @param {SignTextRequest} signTextRequest
|
|
2330
|
-
* @param {*} [options] Override http request option.
|
|
2331
|
-
* @throws {RequiredError}
|
|
2332
|
-
*/
|
|
2333
|
-
signText: (id: string, signTextRequest: SignTextRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2334
2405
|
/**
|
|
2335
2406
|
* Request the ownership transfer of an account to a given address.
|
|
2336
2407
|
* @param {string} id Specifies the unique account ID.
|
|
@@ -2384,14 +2455,6 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
2384
2455
|
* @throws {RequiredError}
|
|
2385
2456
|
*/
|
|
2386
2457
|
signPayload(id: string, signPayloadRequest: SignPayloadRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignPayloadResponse>>;
|
|
2387
|
-
/**
|
|
2388
|
-
* Sign a given text
|
|
2389
|
-
* @param {string} id Specifies the unique account ID.
|
|
2390
|
-
* @param {SignTextRequest} signTextRequest
|
|
2391
|
-
* @param {*} [options] Override http request option.
|
|
2392
|
-
* @throws {RequiredError}
|
|
2393
|
-
*/
|
|
2394
|
-
signText(id: string, signTextRequest: SignTextRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignTextResponse>>;
|
|
2395
2458
|
/**
|
|
2396
2459
|
* Request the ownership transfer of an account to a given address.
|
|
2397
2460
|
* @param {string} id Specifies the unique account ID.
|
|
@@ -2445,14 +2508,6 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
2445
2508
|
* @throws {RequiredError}
|
|
2446
2509
|
*/
|
|
2447
2510
|
signPayload(id: string, signPayloadRequest: SignPayloadRequest, options?: any): AxiosPromise<SignPayloadResponse>;
|
|
2448
|
-
/**
|
|
2449
|
-
* Sign a given text
|
|
2450
|
-
* @param {string} id Specifies the unique account ID.
|
|
2451
|
-
* @param {SignTextRequest} signTextRequest
|
|
2452
|
-
* @param {*} [options] Override http request option.
|
|
2453
|
-
* @throws {RequiredError}
|
|
2454
|
-
*/
|
|
2455
|
-
signText(id: string, signTextRequest: SignTextRequest, options?: any): AxiosPromise<SignTextResponse>;
|
|
2456
2511
|
/**
|
|
2457
2512
|
* Request the ownership transfer of an account to a given address.
|
|
2458
2513
|
* @param {string} id Specifies the unique account ID.
|
|
@@ -2513,15 +2568,6 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
2513
2568
|
* @memberof AccountsApi
|
|
2514
2569
|
*/
|
|
2515
2570
|
signPayload(id: string, signPayloadRequest: SignPayloadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SignPayloadResponse, any>>;
|
|
2516
|
-
/**
|
|
2517
|
-
* Sign a given text
|
|
2518
|
-
* @param {string} id Specifies the unique account ID.
|
|
2519
|
-
* @param {SignTextRequest} signTextRequest
|
|
2520
|
-
* @param {*} [options] Override http request option.
|
|
2521
|
-
* @throws {RequiredError}
|
|
2522
|
-
* @memberof AccountsApi
|
|
2523
|
-
*/
|
|
2524
|
-
signText(id: string, signTextRequest: SignTextRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SignTextResponse, any>>;
|
|
2525
2571
|
/**
|
|
2526
2572
|
* Request the ownership transfer of an account to a given address.
|
|
2527
2573
|
* @param {string} id Specifies the unique account ID.
|
|
@@ -3053,11 +3099,11 @@ export declare class PlayersApi extends BaseAPI {
|
|
|
3053
3099
|
export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3054
3100
|
/**
|
|
3055
3101
|
* Creates a policy object.
|
|
3056
|
-
* @param {
|
|
3102
|
+
* @param {CreatePolicyRequest} createPolicyRequest
|
|
3057
3103
|
* @param {*} [options] Override http request option.
|
|
3058
3104
|
* @throws {RequiredError}
|
|
3059
3105
|
*/
|
|
3060
|
-
createPolicy: (
|
|
3106
|
+
createPolicy: (createPolicyRequest: CreatePolicyRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3061
3107
|
/**
|
|
3062
3108
|
*
|
|
3063
3109
|
* @param {string} id
|
|
@@ -3078,10 +3124,11 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
3078
3124
|
* @param {number} [limit]
|
|
3079
3125
|
* @param {Array<string>} [expand]
|
|
3080
3126
|
* @param {number} [skip]
|
|
3127
|
+
* @param {SortOrder} [order]
|
|
3081
3128
|
* @param {*} [options] Override http request option.
|
|
3082
3129
|
* @throws {RequiredError}
|
|
3083
3130
|
*/
|
|
3084
|
-
getPolicies: (limit?: number, expand?: Array<string>, skip?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3131
|
+
getPolicies: (limit?: number, expand?: Array<string>, skip?: number, order?: SortOrder, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3085
3132
|
/**
|
|
3086
3133
|
* Gets a policy object for a given project.
|
|
3087
3134
|
* @param {string} id
|
|
@@ -3119,11 +3166,11 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
3119
3166
|
/**
|
|
3120
3167
|
* Updates a policy object.
|
|
3121
3168
|
* @param {string} id
|
|
3122
|
-
* @param {
|
|
3169
|
+
* @param {UpdatePolicyRequest} updatePolicyRequest
|
|
3123
3170
|
* @param {*} [options] Override http request option.
|
|
3124
3171
|
* @throws {RequiredError}
|
|
3125
3172
|
*/
|
|
3126
|
-
updatePolicy: (id: string,
|
|
3173
|
+
updatePolicy: (id: string, updatePolicyRequest: UpdatePolicyRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3127
3174
|
/**
|
|
3128
3175
|
*
|
|
3129
3176
|
* @param {string} policy
|
|
@@ -3141,11 +3188,11 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
3141
3188
|
export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
3142
3189
|
/**
|
|
3143
3190
|
* Creates a policy object.
|
|
3144
|
-
* @param {
|
|
3191
|
+
* @param {CreatePolicyRequest} createPolicyRequest
|
|
3145
3192
|
* @param {*} [options] Override http request option.
|
|
3146
3193
|
* @throws {RequiredError}
|
|
3147
3194
|
*/
|
|
3148
|
-
createPolicy(
|
|
3195
|
+
createPolicy(createPolicyRequest: CreatePolicyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyResponse>>;
|
|
3149
3196
|
/**
|
|
3150
3197
|
*
|
|
3151
3198
|
* @param {string} id
|
|
@@ -3166,10 +3213,11 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
3166
3213
|
* @param {number} [limit]
|
|
3167
3214
|
* @param {Array<string>} [expand]
|
|
3168
3215
|
* @param {number} [skip]
|
|
3216
|
+
* @param {SortOrder} [order]
|
|
3169
3217
|
* @param {*} [options] Override http request option.
|
|
3170
3218
|
* @throws {RequiredError}
|
|
3171
3219
|
*/
|
|
3172
|
-
getPolicies(limit?: number, expand?: Array<string>, skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoliciesResponse>>;
|
|
3220
|
+
getPolicies(limit?: number, expand?: Array<string>, skip?: number, order?: SortOrder, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoliciesResponse>>;
|
|
3173
3221
|
/**
|
|
3174
3222
|
* Gets a policy object for a given project.
|
|
3175
3223
|
* @param {string} id
|
|
@@ -3207,11 +3255,11 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
3207
3255
|
/**
|
|
3208
3256
|
* Updates a policy object.
|
|
3209
3257
|
* @param {string} id
|
|
3210
|
-
* @param {
|
|
3258
|
+
* @param {UpdatePolicyRequest} updatePolicyRequest
|
|
3211
3259
|
* @param {*} [options] Override http request option.
|
|
3212
3260
|
* @throws {RequiredError}
|
|
3213
3261
|
*/
|
|
3214
|
-
updatePolicy(id: string,
|
|
3262
|
+
updatePolicy(id: string, updatePolicyRequest: UpdatePolicyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyResponse>>;
|
|
3215
3263
|
/**
|
|
3216
3264
|
*
|
|
3217
3265
|
* @param {string} policy
|
|
@@ -3229,11 +3277,11 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
3229
3277
|
export declare const PoliciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3230
3278
|
/**
|
|
3231
3279
|
* Creates a policy object.
|
|
3232
|
-
* @param {
|
|
3280
|
+
* @param {CreatePolicyRequest} createPolicyRequest
|
|
3233
3281
|
* @param {*} [options] Override http request option.
|
|
3234
3282
|
* @throws {RequiredError}
|
|
3235
3283
|
*/
|
|
3236
|
-
createPolicy(
|
|
3284
|
+
createPolicy(createPolicyRequest: CreatePolicyRequest, options?: any): AxiosPromise<PolicyResponse>;
|
|
3237
3285
|
/**
|
|
3238
3286
|
*
|
|
3239
3287
|
* @param {string} id
|
|
@@ -3254,10 +3302,11 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
3254
3302
|
* @param {number} [limit]
|
|
3255
3303
|
* @param {Array<string>} [expand]
|
|
3256
3304
|
* @param {number} [skip]
|
|
3305
|
+
* @param {SortOrder} [order]
|
|
3257
3306
|
* @param {*} [options] Override http request option.
|
|
3258
3307
|
* @throws {RequiredError}
|
|
3259
3308
|
*/
|
|
3260
|
-
getPolicies(limit?: number, expand?: Array<string>, skip?: number, options?: any): AxiosPromise<PoliciesResponse>;
|
|
3309
|
+
getPolicies(limit?: number, expand?: Array<string>, skip?: number, order?: SortOrder, options?: any): AxiosPromise<PoliciesResponse>;
|
|
3261
3310
|
/**
|
|
3262
3311
|
* Gets a policy object for a given project.
|
|
3263
3312
|
* @param {string} id
|
|
@@ -3295,11 +3344,11 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
3295
3344
|
/**
|
|
3296
3345
|
* Updates a policy object.
|
|
3297
3346
|
* @param {string} id
|
|
3298
|
-
* @param {
|
|
3347
|
+
* @param {UpdatePolicyRequest} updatePolicyRequest
|
|
3299
3348
|
* @param {*} [options] Override http request option.
|
|
3300
3349
|
* @throws {RequiredError}
|
|
3301
3350
|
*/
|
|
3302
|
-
updatePolicy(id: string,
|
|
3351
|
+
updatePolicy(id: string, updatePolicyRequest: UpdatePolicyRequest, options?: any): AxiosPromise<PolicyResponse>;
|
|
3303
3352
|
/**
|
|
3304
3353
|
*
|
|
3305
3354
|
* @param {string} policy
|
|
@@ -3319,12 +3368,12 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
3319
3368
|
export declare class PoliciesApi extends BaseAPI {
|
|
3320
3369
|
/**
|
|
3321
3370
|
* Creates a policy object.
|
|
3322
|
-
* @param {
|
|
3371
|
+
* @param {CreatePolicyRequest} createPolicyRequest
|
|
3323
3372
|
* @param {*} [options] Override http request option.
|
|
3324
3373
|
* @throws {RequiredError}
|
|
3325
3374
|
* @memberof PoliciesApi
|
|
3326
3375
|
*/
|
|
3327
|
-
createPolicy(
|
|
3376
|
+
createPolicy(createPolicyRequest: CreatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PolicyResponse, any>>;
|
|
3328
3377
|
/**
|
|
3329
3378
|
*
|
|
3330
3379
|
* @param {string} id
|
|
@@ -3347,11 +3396,12 @@ export declare class PoliciesApi extends BaseAPI {
|
|
|
3347
3396
|
* @param {number} [limit]
|
|
3348
3397
|
* @param {Array<string>} [expand]
|
|
3349
3398
|
* @param {number} [skip]
|
|
3399
|
+
* @param {SortOrder} [order]
|
|
3350
3400
|
* @param {*} [options] Override http request option.
|
|
3351
3401
|
* @throws {RequiredError}
|
|
3352
3402
|
* @memberof PoliciesApi
|
|
3353
3403
|
*/
|
|
3354
|
-
getPolicies(limit?: number, expand?: Array<string>, skip?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PoliciesResponse, any>>;
|
|
3404
|
+
getPolicies(limit?: number, expand?: Array<string>, skip?: number, order?: SortOrder, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PoliciesResponse, any>>;
|
|
3355
3405
|
/**
|
|
3356
3406
|
* Gets a policy object for a given project.
|
|
3357
3407
|
* @param {string} id
|
|
@@ -3393,12 +3443,12 @@ export declare class PoliciesApi extends BaseAPI {
|
|
|
3393
3443
|
/**
|
|
3394
3444
|
* Updates a policy object.
|
|
3395
3445
|
* @param {string} id
|
|
3396
|
-
* @param {
|
|
3446
|
+
* @param {UpdatePolicyRequest} updatePolicyRequest
|
|
3397
3447
|
* @param {*} [options] Override http request option.
|
|
3398
3448
|
* @throws {RequiredError}
|
|
3399
3449
|
* @memberof PoliciesApi
|
|
3400
3450
|
*/
|
|
3401
|
-
updatePolicy(id: string,
|
|
3451
|
+
updatePolicy(id: string, updatePolicyRequest: UpdatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PolicyResponse, any>>;
|
|
3402
3452
|
/**
|
|
3403
3453
|
*
|
|
3404
3454
|
* @param {string} policy
|