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.js
CHANGED
|
@@ -97,6 +97,7 @@ __export(index_exports, {
|
|
|
97
97
|
createClient: () => createClient2,
|
|
98
98
|
createOrAppendCookiesToFile: () => createOrAppendCookiesToFile,
|
|
99
99
|
createPayment: () => createPayment,
|
|
100
|
+
createShare: () => createShare,
|
|
100
101
|
creditUsage: () => creditUsage,
|
|
101
102
|
default: () => NotteClient3,
|
|
102
103
|
deleteSecret: () => deleteSecret,
|
|
@@ -158,6 +159,7 @@ __export(index_exports, {
|
|
|
158
159
|
listSecrets: () => listSecrets,
|
|
159
160
|
listSessionFiles: () => listSessionFiles,
|
|
160
161
|
listSessions: () => listSessions,
|
|
162
|
+
listShares: () => listShares,
|
|
161
163
|
listVaults: () => listVaults,
|
|
162
164
|
mailboxConnectToken: () => mailboxConnectToken,
|
|
163
165
|
mailboxDelete: () => mailboxDelete,
|
|
@@ -166,6 +168,8 @@ __export(index_exports, {
|
|
|
166
168
|
mailboxSync: () => mailboxSync,
|
|
167
169
|
mailboxUpdate: () => mailboxUpdate,
|
|
168
170
|
managedAuthConnectLinkCreate: () => managedAuthConnectLinkCreate,
|
|
171
|
+
managedCheckoutRunRead: () => managedCheckoutRunRead,
|
|
172
|
+
managedCheckoutRunStart: () => managedCheckoutRunStart,
|
|
169
173
|
mapsSearch: () => mapsSearch,
|
|
170
174
|
newsSearch: () => newsSearch,
|
|
171
175
|
observeServerOwnedDialog: () => observeServerOwnedDialog,
|
|
@@ -193,6 +197,9 @@ __export(index_exports, {
|
|
|
193
197
|
profileDuplicate: () => profileDuplicate,
|
|
194
198
|
profileGet: () => profileGet,
|
|
195
199
|
profileList: () => profileList,
|
|
200
|
+
profileSessionConfigDelete: () => profileSessionConfigDelete,
|
|
201
|
+
profileSessionConfigGet: () => profileSessionConfigGet,
|
|
202
|
+
profileSessionConfigSet: () => profileSessionConfigSet,
|
|
196
203
|
profileStateSet: () => profileStateSet,
|
|
197
204
|
readCookiesFile: () => readCookiesFile,
|
|
198
205
|
readyCheck: () => readyCheck,
|
|
@@ -204,6 +211,7 @@ __export(index_exports, {
|
|
|
204
211
|
retrieveRun: () => retrieveRun,
|
|
205
212
|
retry: () => retry2,
|
|
206
213
|
retryWebhookDelivery: () => retry,
|
|
214
|
+
revokeShare: () => revokeShare,
|
|
207
215
|
rotateSecret: () => rotateSecret,
|
|
208
216
|
runNow: () => runNow,
|
|
209
217
|
runs: () => runs,
|
|
@@ -228,6 +236,7 @@ __export(index_exports, {
|
|
|
228
236
|
sessionStatus: () => sessionStatus,
|
|
229
237
|
sessionSteps: () => sessionSteps,
|
|
230
238
|
sessionStop: () => sessionStop,
|
|
239
|
+
sharedSession: () => sharedSession,
|
|
231
240
|
startVersionCheck: () => startVersionCheck,
|
|
232
241
|
storeSecret: () => storeSecret,
|
|
233
242
|
styleguideEndpoint: () => styleguideEndpoint,
|
|
@@ -252,7 +261,7 @@ __export(index_exports, {
|
|
|
252
261
|
module.exports = __toCommonJS(index_exports);
|
|
253
262
|
|
|
254
263
|
// src/version.ts
|
|
255
|
-
var SDK_VERSION = true ? "1.10.
|
|
264
|
+
var SDK_VERSION = true ? "1.10.23" : "dev";
|
|
256
265
|
var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
|
|
257
266
|
|
|
258
267
|
// src/version-check.ts
|
|
@@ -1368,6 +1377,26 @@ var downloadSessionFile = (options) => (options.client ?? client).get({
|
|
|
1368
1377
|
url: "/sessions/{session_id}/files/{file_id}",
|
|
1369
1378
|
...options
|
|
1370
1379
|
});
|
|
1380
|
+
var listShares = (options) => (options.client ?? client).get({
|
|
1381
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1382
|
+
url: "/sessions/{session_id}/shares",
|
|
1383
|
+
...options
|
|
1384
|
+
});
|
|
1385
|
+
var createShare = (options) => (options.client ?? client).post({
|
|
1386
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1387
|
+
url: "/sessions/{session_id}/shares",
|
|
1388
|
+
...options,
|
|
1389
|
+
headers: {
|
|
1390
|
+
"Content-Type": "application/json",
|
|
1391
|
+
...options.headers
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
var revokeShare = (options) => (options.client ?? client).delete({
|
|
1395
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1396
|
+
url: "/sessions/{session_id}/shares/{share_id}",
|
|
1397
|
+
...options
|
|
1398
|
+
});
|
|
1399
|
+
var sharedSession = (options) => (options.client ?? client).get({ url: "/session-shares/view", ...options });
|
|
1371
1400
|
var functionRuntimeHealth = (options) => (options?.client ?? client).get({
|
|
1372
1401
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1373
1402
|
url: "/functions/health",
|
|
@@ -1647,6 +1676,20 @@ var getPayment = (options) => (options.client ?? client).get({
|
|
|
1647
1676
|
url: "/payments/{payment_id}",
|
|
1648
1677
|
...options
|
|
1649
1678
|
});
|
|
1679
|
+
var managedCheckoutRunStart = (options) => (options.client ?? client).post({
|
|
1680
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1681
|
+
url: "/managed-checkout/runs",
|
|
1682
|
+
...options,
|
|
1683
|
+
headers: {
|
|
1684
|
+
"Content-Type": "application/json",
|
|
1685
|
+
...options.headers
|
|
1686
|
+
}
|
|
1687
|
+
});
|
|
1688
|
+
var managedCheckoutRunRead = (options) => (options.client ?? client).get({
|
|
1689
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1690
|
+
url: "/managed-checkout/runs/{run_id}",
|
|
1691
|
+
...options
|
|
1692
|
+
});
|
|
1650
1693
|
var profileCreate = (options) => (options.client ?? client).post({
|
|
1651
1694
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1652
1695
|
url: "/profiles/create",
|
|
@@ -1698,6 +1741,25 @@ var profileStateSet = (options) => (options.client ?? client).post({
|
|
|
1698
1741
|
...options.headers
|
|
1699
1742
|
}
|
|
1700
1743
|
});
|
|
1744
|
+
var profileSessionConfigDelete = (options) => (options.client ?? client).delete({
|
|
1745
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1746
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1747
|
+
...options
|
|
1748
|
+
});
|
|
1749
|
+
var profileSessionConfigGet = (options) => (options.client ?? client).get({
|
|
1750
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1751
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1752
|
+
...options
|
|
1753
|
+
});
|
|
1754
|
+
var profileSessionConfigSet = (options) => (options.client ?? client).put({
|
|
1755
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1756
|
+
url: "/profiles/{profile_id}/session-config",
|
|
1757
|
+
...options,
|
|
1758
|
+
headers: {
|
|
1759
|
+
"Content-Type": "application/json",
|
|
1760
|
+
...options.headers
|
|
1761
|
+
}
|
|
1762
|
+
});
|
|
1701
1763
|
var profileList = (options) => (options?.client ?? client).get({
|
|
1702
1764
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1703
1765
|
url: "/profiles",
|
|
@@ -2904,6 +2966,21 @@ function createResources(client2, getApiKey) {
|
|
|
2904
2966
|
const response = await profileList({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, query });
|
|
2905
2967
|
return response.data;
|
|
2906
2968
|
},
|
|
2969
|
+
/** profileSessionConfigDelete: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2970
|
+
sessionConfigDelete: async (profileId, requestOptions = {}) => {
|
|
2971
|
+
const response = await profileSessionConfigDelete({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId } });
|
|
2972
|
+
return response.data;
|
|
2973
|
+
},
|
|
2974
|
+
/** profileSessionConfigGet: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2975
|
+
sessionConfigGet: async (profileId, requestOptions = {}) => {
|
|
2976
|
+
const response = await profileSessionConfigGet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId } });
|
|
2977
|
+
return response.data;
|
|
2978
|
+
},
|
|
2979
|
+
/** profileSessionConfigSet: /profiles/{profile_id}/session-config. Returns the API response body. */
|
|
2980
|
+
sessionConfigSet: async (profileId, body, requestOptions = {}) => {
|
|
2981
|
+
const response = await profileSessionConfigSet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId }, body });
|
|
2982
|
+
return response.data;
|
|
2983
|
+
},
|
|
2907
2984
|
/** profileStateSet: /profiles/{profile_id}/state. Returns the API response body. */
|
|
2908
2985
|
stateSet: async (profileId, body, requestOptions = {}) => {
|
|
2909
2986
|
const response = await profileStateSet({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "profile_id": profileId }, body });
|
|
@@ -3505,7 +3582,7 @@ function processScrapeResponse(scrapeResponse, options) {
|
|
|
3505
3582
|
}
|
|
3506
3583
|
|
|
3507
3584
|
// src/retry.ts
|
|
3508
|
-
var DEFAULT_MAX_RETRIES =
|
|
3585
|
+
var DEFAULT_MAX_RETRIES = 6;
|
|
3509
3586
|
var RETRY_BASE_DELAY_MS = 1e3;
|
|
3510
3587
|
var RETRY_MAX_DELAY_MS = 1e4;
|
|
3511
3588
|
var RETRY_AFTER_MAX_MS = 2e4;
|
|
@@ -6911,6 +6988,9 @@ var wait = builder("wait");
|
|
|
6911
6988
|
var pressKey = builder("press_key");
|
|
6912
6989
|
var scrollUp = builder("scroll_up");
|
|
6913
6990
|
var scrollDown = builder("scroll_down");
|
|
6991
|
+
var mouseClick = builder("mouse_click");
|
|
6992
|
+
var mouseMove = builder("mouse_move");
|
|
6993
|
+
var mouseDrag = builder("mouse_drag");
|
|
6914
6994
|
var captchaSolve = builder("captcha_solve");
|
|
6915
6995
|
var help = builder("help");
|
|
6916
6996
|
var completion = builder("completion");
|
|
@@ -6940,6 +7020,9 @@ var actions = {
|
|
|
6940
7020
|
pressKey,
|
|
6941
7021
|
scrollUp,
|
|
6942
7022
|
scrollDown,
|
|
7023
|
+
mouseClick,
|
|
7024
|
+
mouseMove,
|
|
7025
|
+
mouseDrag,
|
|
6943
7026
|
captchaSolve,
|
|
6944
7027
|
help,
|
|
6945
7028
|
completion,
|
|
@@ -7053,6 +7136,7 @@ var createClient2 = (config) => {
|
|
|
7053
7136
|
createClient,
|
|
7054
7137
|
createOrAppendCookiesToFile,
|
|
7055
7138
|
createPayment,
|
|
7139
|
+
createShare,
|
|
7056
7140
|
creditUsage,
|
|
7057
7141
|
deleteSecret,
|
|
7058
7142
|
deleteSessionFile,
|
|
@@ -7113,6 +7197,7 @@ var createClient2 = (config) => {
|
|
|
7113
7197
|
listSecrets,
|
|
7114
7198
|
listSessionFiles,
|
|
7115
7199
|
listSessions,
|
|
7200
|
+
listShares,
|
|
7116
7201
|
listVaults,
|
|
7117
7202
|
mailboxConnectToken,
|
|
7118
7203
|
mailboxDelete,
|
|
@@ -7121,6 +7206,8 @@ var createClient2 = (config) => {
|
|
|
7121
7206
|
mailboxSync,
|
|
7122
7207
|
mailboxUpdate,
|
|
7123
7208
|
managedAuthConnectLinkCreate,
|
|
7209
|
+
managedCheckoutRunRead,
|
|
7210
|
+
managedCheckoutRunStart,
|
|
7124
7211
|
mapsSearch,
|
|
7125
7212
|
newsSearch,
|
|
7126
7213
|
observeServerOwnedDialog,
|
|
@@ -7148,6 +7235,9 @@ var createClient2 = (config) => {
|
|
|
7148
7235
|
profileDuplicate,
|
|
7149
7236
|
profileGet,
|
|
7150
7237
|
profileList,
|
|
7238
|
+
profileSessionConfigDelete,
|
|
7239
|
+
profileSessionConfigGet,
|
|
7240
|
+
profileSessionConfigSet,
|
|
7151
7241
|
profileStateSet,
|
|
7152
7242
|
readCookiesFile,
|
|
7153
7243
|
readyCheck,
|
|
@@ -7159,6 +7249,7 @@ var createClient2 = (config) => {
|
|
|
7159
7249
|
retrieveRun,
|
|
7160
7250
|
retry,
|
|
7161
7251
|
retryWebhookDelivery,
|
|
7252
|
+
revokeShare,
|
|
7162
7253
|
rotateSecret,
|
|
7163
7254
|
runNow,
|
|
7164
7255
|
runs,
|
|
@@ -7183,6 +7274,7 @@ var createClient2 = (config) => {
|
|
|
7183
7274
|
sessionStatus,
|
|
7184
7275
|
sessionSteps,
|
|
7185
7276
|
sessionStop,
|
|
7277
|
+
sharedSession,
|
|
7186
7278
|
startVersionCheck,
|
|
7187
7279
|
storeSecret,
|
|
7188
7280
|
styleguideEndpoint,
|