notte-sdk 1.10.21 → 1.10.23
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/index.d.mts +1004 -103
- package/dist/index.d.ts +1004 -103
- package/dist/index.js +94 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +85 -2
- package/dist/index.mjs.map +1 -1
- package/dist/proxy/core.js +14 -0
- package/dist/proxy/core.js.map +1 -1
- package/dist/proxy/core.mjs +14 -0
- package/dist/proxy/core.mjs.map +1 -1
- package/dist/proxy/next.js +14 -0
- package/dist/proxy/next.js.map +1 -1
- package/dist/proxy/next.mjs +14 -0
- package/dist/proxy/next.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
|
-
var SDK_VERSION = true ? "1.10.
|
|
2
|
+
var SDK_VERSION = true ? "1.10.23" : "dev";
|
|
3
3
|
var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
|
|
4
4
|
|
|
5
5
|
// src/version-check.ts
|
|
@@ -1115,6 +1115,26 @@ var downloadSessionFile = (options) => (options.client ?? client).get({
|
|
|
1115
1115
|
url: "/sessions/{session_id}/files/{file_id}",
|
|
1116
1116
|
...options
|
|
1117
1117
|
});
|
|
1118
|
+
var listShares = (options) => (options.client ?? client).get({
|
|
1119
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1120
|
+
url: "/sessions/{session_id}/shares",
|
|
1121
|
+
...options
|
|
1122
|
+
});
|
|
1123
|
+
var createShare = (options) => (options.client ?? client).post({
|
|
1124
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1125
|
+
url: "/sessions/{session_id}/shares",
|
|
1126
|
+
...options,
|
|
1127
|
+
headers: {
|
|
1128
|
+
"Content-Type": "application/json",
|
|
1129
|
+
...options.headers
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
var revokeShare = (options) => (options.client ?? client).delete({
|
|
1133
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1134
|
+
url: "/sessions/{session_id}/shares/{share_id}",
|
|
1135
|
+
...options
|
|
1136
|
+
});
|
|
1137
|
+
var sharedSession = (options) => (options.client ?? client).get({ url: "/session-shares/view", ...options });
|
|
1118
1138
|
var functionRuntimeHealth = (options) => (options?.client ?? client).get({
|
|
1119
1139
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1120
1140
|
url: "/functions/health",
|
|
@@ -1394,6 +1414,20 @@ var getPayment = (options) => (options.client ?? client).get({
|
|
|
1394
1414
|
url: "/payments/{payment_id}",
|
|
1395
1415
|
...options
|
|
1396
1416
|
});
|
|
1417
|
+
var managedCheckoutRunStart = (options) => (options.client ?? client).post({
|
|
1418
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1419
|
+
url: "/managed-checkout/runs",
|
|
1420
|
+
...options,
|
|
1421
|
+
headers: {
|
|
1422
|
+
"Content-Type": "application/json",
|
|
1423
|
+
...options.headers
|
|
1424
|
+
}
|
|
1425
|
+
});
|
|
1426
|
+
var managedCheckoutRunRead = (options) => (options.client ?? client).get({
|
|
1427
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1428
|
+
url: "/managed-checkout/runs/{run_id}",
|
|
1429
|
+
...options
|
|
1430
|
+
});
|
|
1397
1431
|
var profileCreate = (options) => (options.client ?? client).post({
|
|
1398
1432
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1399
1433
|
url: "/profiles/create",
|
|
@@ -1445,6 +1479,25 @@ var profileStateSet = (options) => (options.client ?? client).post({
|
|
|
1445
1479
|
...options.headers
|
|
1446
1480
|
}
|
|
1447
1481
|
});
|
|
1482
|
+
var profileSessionConfigDelete = (options) => (options.client ?? client).delete({
|
|
1483
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1484
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1485
|
+
...options
|
|
1486
|
+
});
|
|
1487
|
+
var profileSessionConfigGet = (options) => (options.client ?? client).get({
|
|
1488
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1489
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1490
|
+
...options
|
|
1491
|
+
});
|
|
1492
|
+
var profileSessionConfigSet = (options) => (options.client ?? client).put({
|
|
1493
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1494
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1495
|
+
...options,
|
|
1496
|
+
headers: {
|
|
1497
|
+
"Content-Type": "application/json",
|
|
1498
|
+
...options.headers
|
|
1499
|
+
}
|
|
1500
|
+
});
|
|
1448
1501
|
var profileList = (options) => (options?.client ?? client).get({
|
|
1449
1502
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1450
1503
|
url: "/profiles",
|
|
@@ -2651,6 +2704,21 @@ function createResources(client2, getApiKey) {
|
|
|
2651
2704
|
const response = await profileList({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, query });
|
|
2652
2705
|
return response.data;
|
|
2653
2706
|
},
|
|
2707
|
+
/** profileSessionConfigDelete: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2708
|
+
sessionConfigDelete: async (profileId, requestOptions = {}) => {
|
|
2709
|
+
const response = await profileSessionConfigDelete({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId } });
|
|
2710
|
+
return response.data;
|
|
2711
|
+
},
|
|
2712
|
+
/** profileSessionConfigGet: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2713
|
+
sessionConfigGet: async (profileId, requestOptions = {}) => {
|
|
2714
|
+
const response = await profileSessionConfigGet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId } });
|
|
2715
|
+
return response.data;
|
|
2716
|
+
},
|
|
2717
|
+
/** profileSessionConfigSet: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2718
|
+
sessionConfigSet: async (profileId, body, requestOptions = {}) => {
|
|
2719
|
+
const response = await profileSessionConfigSet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId }, body });
|
|
2720
|
+
return response.data;
|
|
2721
|
+
},
|
|
2654
2722
|
/** profileStateSet: /profiles/{profile_id}/state. Returns the API response body. */
|
|
2655
2723
|
stateSet: async (profileId, body, requestOptions = {}) => {
|
|
2656
2724
|
const response = await profileStateSet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId }, body });
|
|
@@ -3252,7 +3320,7 @@ function processScrapeResponse(scrapeResponse, options) {
|
|
|
3252
3320
|
}
|
|
3253
3321
|
|
|
3254
3322
|
// src/retry.ts
|
|
3255
|
-
var DEFAULT_MAX_RETRIES =
|
|
3323
|
+
var DEFAULT_MAX_RETRIES = 6;
|
|
3256
3324
|
var RETRY_BASE_DELAY_MS = 1e3;
|
|
3257
3325
|
var RETRY_MAX_DELAY_MS = 1e4;
|
|
3258
3326
|
var RETRY_AFTER_MAX_MS = 2e4;
|
|
@@ -6658,6 +6726,9 @@ var wait = builder("wait");
|
|
|
6658
6726
|
var pressKey = builder("press_key");
|
|
6659
6727
|
var scrollUp = builder("scroll_up");
|
|
6660
6728
|
var scrollDown = builder("scroll_down");
|
|
6729
|
+
var mouseClick = builder("mouse_click");
|
|
6730
|
+
var mouseMove = builder("mouse_move");
|
|
6731
|
+
var mouseDrag = builder("mouse_drag");
|
|
6661
6732
|
var captchaSolve = builder("captcha_solve");
|
|
6662
6733
|
var help = builder("help");
|
|
6663
6734
|
var completion = builder("completion");
|
|
@@ -6687,6 +6758,9 @@ var actions = {
|
|
|
6687
6758
|
pressKey,
|
|
6688
6759
|
scrollUp,
|
|
6689
6760
|
scrollDown,
|
|
6761
|
+
mouseClick,
|
|
6762
|
+
mouseMove,
|
|
6763
|
+
mouseDrag,
|
|
6690
6764
|
captchaSolve,
|
|
6691
6765
|
help,
|
|
6692
6766
|
completion,
|
|
@@ -6799,6 +6873,7 @@ export {
|
|
|
6799
6873
|
createClient2 as createClient,
|
|
6800
6874
|
createOrAppendCookiesToFile,
|
|
6801
6875
|
createPayment,
|
|
6876
|
+
createShare,
|
|
6802
6877
|
creditUsage,
|
|
6803
6878
|
NotteClient3 as default,
|
|
6804
6879
|
deleteSecret,
|
|
@@ -6860,6 +6935,7 @@ export {
|
|
|
6860
6935
|
listSecrets,
|
|
6861
6936
|
listSessionFiles,
|
|
6862
6937
|
listSessions,
|
|
6938
|
+
listShares,
|
|
6863
6939
|
listVaults,
|
|
6864
6940
|
mailboxConnectToken,
|
|
6865
6941
|
mailboxDelete,
|
|
@@ -6868,6 +6944,8 @@ export {
|
|
|
6868
6944
|
mailboxSync,
|
|
6869
6945
|
mailboxUpdate,
|
|
6870
6946
|
managedAuthConnectLinkCreate,
|
|
6947
|
+
managedCheckoutRunRead,
|
|
6948
|
+
managedCheckoutRunStart,
|
|
6871
6949
|
mapsSearch,
|
|
6872
6950
|
newsSearch,
|
|
6873
6951
|
observeServerOwnedDialog,
|
|
@@ -6895,6 +6973,9 @@ export {
|
|
|
6895
6973
|
profileDuplicate,
|
|
6896
6974
|
profileGet,
|
|
6897
6975
|
profileList,
|
|
6976
|
+
profileSessionConfigDelete,
|
|
6977
|
+
profileSessionConfigGet,
|
|
6978
|
+
profileSessionConfigSet,
|
|
6898
6979
|
profileStateSet,
|
|
6899
6980
|
readCookiesFile,
|
|
6900
6981
|
readyCheck,
|
|
@@ -6906,6 +6987,7 @@ export {
|
|
|
6906
6987
|
retrieveRun,
|
|
6907
6988
|
retry2 as retry,
|
|
6908
6989
|
retry as retryWebhookDelivery,
|
|
6990
|
+
revokeShare,
|
|
6909
6991
|
rotateSecret,
|
|
6910
6992
|
runNow,
|
|
6911
6993
|
runs,
|
|
@@ -6930,6 +7012,7 @@ export {
|
|
|
6930
7012
|
sessionStatus,
|
|
6931
7013
|
sessionSteps,
|
|
6932
7014
|
sessionStop,
|
|
7015
|
+
sharedSession,
|
|
6933
7016
|
startVersionCheck,
|
|
6934
7017
|
storeSecret,
|
|
6935
7018
|
styleguideEndpoint,
|