@oxide/turnstile.ts 0.6.6 → 0.7.0-rc.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.
- package/dist/{Api-DUOjHzpm.d.cts → Api-Z7zZcVks.d.cts} +146 -34
- package/dist/{Api-DUOjHzpm.d.ts → Api-Z7zZcVks.d.ts} +146 -34
- package/dist/Api.cjs +87 -0
- package/dist/Api.d.cts +1 -1
- package/dist/Api.d.ts +1 -1
- package/dist/Api.js +87 -0
- package/dist/retry.cjs +87 -0
- package/dist/retry.d.cts +1 -1
- package/dist/retry.d.ts +1 -1
- package/dist/retry.js +87 -0
- package/dist/validate.cjs +197 -41
- package/dist/validate.d.cts +1444 -663
- package/dist/validate.d.ts +1444 -663
- package/dist/validate.js +181 -41
- package/package.json +1 -1
- package/src/Api.ts +201 -32
- package/src/util.ts +1 -1
- package/src/validate.ts +196 -47
package/dist/Api.js
CHANGED
|
@@ -351,6 +351,21 @@ var Api = class extends HttpClient {
|
|
|
351
351
|
...params
|
|
352
352
|
});
|
|
353
353
|
},
|
|
354
|
+
/**
|
|
355
|
+
* Compute the next review action to take on this application and apply the necessary changes
|
|
356
|
+
*/
|
|
357
|
+
applyReviewAction: ({
|
|
358
|
+
path
|
|
359
|
+
}, params = {}) => {
|
|
360
|
+
return this.request({
|
|
361
|
+
path: `/application/${path.application}/apply-review-action`,
|
|
362
|
+
method: "POST",
|
|
363
|
+
...params
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
* List the individual reviewers that are assigned to this application
|
|
368
|
+
*/
|
|
354
369
|
listApplicationReviewAssignments: ({
|
|
355
370
|
path
|
|
356
371
|
}, params = {}) => {
|
|
@@ -360,6 +375,9 @@ var Api = class extends HttpClient {
|
|
|
360
375
|
...params
|
|
361
376
|
});
|
|
362
377
|
},
|
|
378
|
+
/**
|
|
379
|
+
* Assign individual reviewers to this application
|
|
380
|
+
*/
|
|
363
381
|
createApplicationReviewAssignments: ({
|
|
364
382
|
path,
|
|
365
383
|
body
|
|
@@ -409,6 +427,18 @@ var Api = class extends HttpClient {
|
|
|
409
427
|
...params
|
|
410
428
|
});
|
|
411
429
|
},
|
|
430
|
+
/**
|
|
431
|
+
* Simulate the selection of the next review action without performing any changes
|
|
432
|
+
*/
|
|
433
|
+
simulateReviewAction: ({
|
|
434
|
+
path
|
|
435
|
+
}, params = {}) => {
|
|
436
|
+
return this.request({
|
|
437
|
+
path: `/application/${path.application}/simulate-review-action`,
|
|
438
|
+
method: "GET",
|
|
439
|
+
...params
|
|
440
|
+
});
|
|
441
|
+
},
|
|
412
442
|
submitApplication: ({
|
|
413
443
|
path
|
|
414
444
|
}, params = {}) => {
|
|
@@ -1099,6 +1129,63 @@ var Api = class extends HttpClient {
|
|
|
1099
1129
|
...params
|
|
1100
1130
|
});
|
|
1101
1131
|
},
|
|
1132
|
+
listPools: (_, params = {}) => {
|
|
1133
|
+
return this.request({
|
|
1134
|
+
path: `/pool`,
|
|
1135
|
+
method: "GET",
|
|
1136
|
+
...params
|
|
1137
|
+
});
|
|
1138
|
+
},
|
|
1139
|
+
createPool: ({
|
|
1140
|
+
body
|
|
1141
|
+
}, params = {}) => {
|
|
1142
|
+
return this.request({
|
|
1143
|
+
path: `/pool`,
|
|
1144
|
+
method: "POST",
|
|
1145
|
+
body,
|
|
1146
|
+
...params
|
|
1147
|
+
});
|
|
1148
|
+
},
|
|
1149
|
+
viewPool: ({
|
|
1150
|
+
path
|
|
1151
|
+
}, params = {}) => {
|
|
1152
|
+
return this.request({
|
|
1153
|
+
path: `/pool/${path.pool}`,
|
|
1154
|
+
method: "GET",
|
|
1155
|
+
...params
|
|
1156
|
+
});
|
|
1157
|
+
},
|
|
1158
|
+
updatePool: ({
|
|
1159
|
+
path,
|
|
1160
|
+
body
|
|
1161
|
+
}, params = {}) => {
|
|
1162
|
+
return this.request({
|
|
1163
|
+
path: `/pool/${path.pool}`,
|
|
1164
|
+
method: "POST",
|
|
1165
|
+
body,
|
|
1166
|
+
...params
|
|
1167
|
+
});
|
|
1168
|
+
},
|
|
1169
|
+
assignPool: ({
|
|
1170
|
+
path,
|
|
1171
|
+
body
|
|
1172
|
+
}, params = {}) => {
|
|
1173
|
+
return this.request({
|
|
1174
|
+
path: `/pool/${path.pool}/assignment`,
|
|
1175
|
+
method: "POST",
|
|
1176
|
+
body,
|
|
1177
|
+
...params
|
|
1178
|
+
});
|
|
1179
|
+
},
|
|
1180
|
+
unassignPool: ({
|
|
1181
|
+
path
|
|
1182
|
+
}, params = {}) => {
|
|
1183
|
+
return this.request({
|
|
1184
|
+
path: `/pool-assignment/${path.assignment}`,
|
|
1185
|
+
method: "DELETE",
|
|
1186
|
+
...params
|
|
1187
|
+
});
|
|
1188
|
+
},
|
|
1102
1189
|
listReviews: ({
|
|
1103
1190
|
query = {}
|
|
1104
1191
|
}, params = {}) => {
|
package/dist/retry.cjs
CHANGED
|
@@ -378,6 +378,21 @@ var Api = class extends HttpClient {
|
|
|
378
378
|
...params
|
|
379
379
|
});
|
|
380
380
|
},
|
|
381
|
+
/**
|
|
382
|
+
* Compute the next review action to take on this application and apply the necessary changes
|
|
383
|
+
*/
|
|
384
|
+
applyReviewAction: ({
|
|
385
|
+
path
|
|
386
|
+
}, params = {}) => {
|
|
387
|
+
return this.request({
|
|
388
|
+
path: `/application/${path.application}/apply-review-action`,
|
|
389
|
+
method: "POST",
|
|
390
|
+
...params
|
|
391
|
+
});
|
|
392
|
+
},
|
|
393
|
+
/**
|
|
394
|
+
* List the individual reviewers that are assigned to this application
|
|
395
|
+
*/
|
|
381
396
|
listApplicationReviewAssignments: ({
|
|
382
397
|
path
|
|
383
398
|
}, params = {}) => {
|
|
@@ -387,6 +402,9 @@ var Api = class extends HttpClient {
|
|
|
387
402
|
...params
|
|
388
403
|
});
|
|
389
404
|
},
|
|
405
|
+
/**
|
|
406
|
+
* Assign individual reviewers to this application
|
|
407
|
+
*/
|
|
390
408
|
createApplicationReviewAssignments: ({
|
|
391
409
|
path,
|
|
392
410
|
body
|
|
@@ -436,6 +454,18 @@ var Api = class extends HttpClient {
|
|
|
436
454
|
...params
|
|
437
455
|
});
|
|
438
456
|
},
|
|
457
|
+
/**
|
|
458
|
+
* Simulate the selection of the next review action without performing any changes
|
|
459
|
+
*/
|
|
460
|
+
simulateReviewAction: ({
|
|
461
|
+
path
|
|
462
|
+
}, params = {}) => {
|
|
463
|
+
return this.request({
|
|
464
|
+
path: `/application/${path.application}/simulate-review-action`,
|
|
465
|
+
method: "GET",
|
|
466
|
+
...params
|
|
467
|
+
});
|
|
468
|
+
},
|
|
439
469
|
submitApplication: ({
|
|
440
470
|
path
|
|
441
471
|
}, params = {}) => {
|
|
@@ -1126,6 +1156,63 @@ var Api = class extends HttpClient {
|
|
|
1126
1156
|
...params
|
|
1127
1157
|
});
|
|
1128
1158
|
},
|
|
1159
|
+
listPools: (_, params = {}) => {
|
|
1160
|
+
return this.request({
|
|
1161
|
+
path: `/pool`,
|
|
1162
|
+
method: "GET",
|
|
1163
|
+
...params
|
|
1164
|
+
});
|
|
1165
|
+
},
|
|
1166
|
+
createPool: ({
|
|
1167
|
+
body
|
|
1168
|
+
}, params = {}) => {
|
|
1169
|
+
return this.request({
|
|
1170
|
+
path: `/pool`,
|
|
1171
|
+
method: "POST",
|
|
1172
|
+
body,
|
|
1173
|
+
...params
|
|
1174
|
+
});
|
|
1175
|
+
},
|
|
1176
|
+
viewPool: ({
|
|
1177
|
+
path
|
|
1178
|
+
}, params = {}) => {
|
|
1179
|
+
return this.request({
|
|
1180
|
+
path: `/pool/${path.pool}`,
|
|
1181
|
+
method: "GET",
|
|
1182
|
+
...params
|
|
1183
|
+
});
|
|
1184
|
+
},
|
|
1185
|
+
updatePool: ({
|
|
1186
|
+
path,
|
|
1187
|
+
body
|
|
1188
|
+
}, params = {}) => {
|
|
1189
|
+
return this.request({
|
|
1190
|
+
path: `/pool/${path.pool}`,
|
|
1191
|
+
method: "POST",
|
|
1192
|
+
body,
|
|
1193
|
+
...params
|
|
1194
|
+
});
|
|
1195
|
+
},
|
|
1196
|
+
assignPool: ({
|
|
1197
|
+
path,
|
|
1198
|
+
body
|
|
1199
|
+
}, params = {}) => {
|
|
1200
|
+
return this.request({
|
|
1201
|
+
path: `/pool/${path.pool}/assignment`,
|
|
1202
|
+
method: "POST",
|
|
1203
|
+
body,
|
|
1204
|
+
...params
|
|
1205
|
+
});
|
|
1206
|
+
},
|
|
1207
|
+
unassignPool: ({
|
|
1208
|
+
path
|
|
1209
|
+
}, params = {}) => {
|
|
1210
|
+
return this.request({
|
|
1211
|
+
path: `/pool-assignment/${path.assignment}`,
|
|
1212
|
+
method: "DELETE",
|
|
1213
|
+
...params
|
|
1214
|
+
});
|
|
1215
|
+
},
|
|
1129
1216
|
listReviews: ({
|
|
1130
1217
|
query = {}
|
|
1131
1218
|
}, params = {}) => {
|
package/dist/retry.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiConfig, a as Api, F as FullParams, b as ApiResult } from './Api-
|
|
1
|
+
import { A as ApiConfig, a as Api, F as FullParams, b as ApiResult } from './Api-Z7zZcVks.cjs';
|
|
2
2
|
|
|
3
3
|
type RetryHandler = (err: any) => boolean;
|
|
4
4
|
type RetryHandlerFactory = (url: RequestInfo | URL, init: RequestInit) => RetryHandler;
|
package/dist/retry.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiConfig, a as Api, F as FullParams, b as ApiResult } from './Api-
|
|
1
|
+
import { A as ApiConfig, a as Api, F as FullParams, b as ApiResult } from './Api-Z7zZcVks.js';
|
|
2
2
|
|
|
3
3
|
type RetryHandler = (err: any) => boolean;
|
|
4
4
|
type RetryHandlerFactory = (url: RequestInfo | URL, init: RequestInit) => RetryHandler;
|
package/dist/retry.js
CHANGED
|
@@ -351,6 +351,21 @@ var Api = class extends HttpClient {
|
|
|
351
351
|
...params
|
|
352
352
|
});
|
|
353
353
|
},
|
|
354
|
+
/**
|
|
355
|
+
* Compute the next review action to take on this application and apply the necessary changes
|
|
356
|
+
*/
|
|
357
|
+
applyReviewAction: ({
|
|
358
|
+
path
|
|
359
|
+
}, params = {}) => {
|
|
360
|
+
return this.request({
|
|
361
|
+
path: `/application/${path.application}/apply-review-action`,
|
|
362
|
+
method: "POST",
|
|
363
|
+
...params
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
* List the individual reviewers that are assigned to this application
|
|
368
|
+
*/
|
|
354
369
|
listApplicationReviewAssignments: ({
|
|
355
370
|
path
|
|
356
371
|
}, params = {}) => {
|
|
@@ -360,6 +375,9 @@ var Api = class extends HttpClient {
|
|
|
360
375
|
...params
|
|
361
376
|
});
|
|
362
377
|
},
|
|
378
|
+
/**
|
|
379
|
+
* Assign individual reviewers to this application
|
|
380
|
+
*/
|
|
363
381
|
createApplicationReviewAssignments: ({
|
|
364
382
|
path,
|
|
365
383
|
body
|
|
@@ -409,6 +427,18 @@ var Api = class extends HttpClient {
|
|
|
409
427
|
...params
|
|
410
428
|
});
|
|
411
429
|
},
|
|
430
|
+
/**
|
|
431
|
+
* Simulate the selection of the next review action without performing any changes
|
|
432
|
+
*/
|
|
433
|
+
simulateReviewAction: ({
|
|
434
|
+
path
|
|
435
|
+
}, params = {}) => {
|
|
436
|
+
return this.request({
|
|
437
|
+
path: `/application/${path.application}/simulate-review-action`,
|
|
438
|
+
method: "GET",
|
|
439
|
+
...params
|
|
440
|
+
});
|
|
441
|
+
},
|
|
412
442
|
submitApplication: ({
|
|
413
443
|
path
|
|
414
444
|
}, params = {}) => {
|
|
@@ -1099,6 +1129,63 @@ var Api = class extends HttpClient {
|
|
|
1099
1129
|
...params
|
|
1100
1130
|
});
|
|
1101
1131
|
},
|
|
1132
|
+
listPools: (_, params = {}) => {
|
|
1133
|
+
return this.request({
|
|
1134
|
+
path: `/pool`,
|
|
1135
|
+
method: "GET",
|
|
1136
|
+
...params
|
|
1137
|
+
});
|
|
1138
|
+
},
|
|
1139
|
+
createPool: ({
|
|
1140
|
+
body
|
|
1141
|
+
}, params = {}) => {
|
|
1142
|
+
return this.request({
|
|
1143
|
+
path: `/pool`,
|
|
1144
|
+
method: "POST",
|
|
1145
|
+
body,
|
|
1146
|
+
...params
|
|
1147
|
+
});
|
|
1148
|
+
},
|
|
1149
|
+
viewPool: ({
|
|
1150
|
+
path
|
|
1151
|
+
}, params = {}) => {
|
|
1152
|
+
return this.request({
|
|
1153
|
+
path: `/pool/${path.pool}`,
|
|
1154
|
+
method: "GET",
|
|
1155
|
+
...params
|
|
1156
|
+
});
|
|
1157
|
+
},
|
|
1158
|
+
updatePool: ({
|
|
1159
|
+
path,
|
|
1160
|
+
body
|
|
1161
|
+
}, params = {}) => {
|
|
1162
|
+
return this.request({
|
|
1163
|
+
path: `/pool/${path.pool}`,
|
|
1164
|
+
method: "POST",
|
|
1165
|
+
body,
|
|
1166
|
+
...params
|
|
1167
|
+
});
|
|
1168
|
+
},
|
|
1169
|
+
assignPool: ({
|
|
1170
|
+
path,
|
|
1171
|
+
body
|
|
1172
|
+
}, params = {}) => {
|
|
1173
|
+
return this.request({
|
|
1174
|
+
path: `/pool/${path.pool}/assignment`,
|
|
1175
|
+
method: "POST",
|
|
1176
|
+
body,
|
|
1177
|
+
...params
|
|
1178
|
+
});
|
|
1179
|
+
},
|
|
1180
|
+
unassignPool: ({
|
|
1181
|
+
path
|
|
1182
|
+
}, params = {}) => {
|
|
1183
|
+
return this.request({
|
|
1184
|
+
path: `/pool-assignment/${path.assignment}`,
|
|
1185
|
+
method: "DELETE",
|
|
1186
|
+
...params
|
|
1187
|
+
});
|
|
1188
|
+
},
|
|
1102
1189
|
listReviews: ({
|
|
1103
1190
|
query = {}
|
|
1104
1191
|
}, params = {}) => {
|