@airtop/sdk 0.1.43 → 0.1.44
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/README.md +1 -1
- package/api/resources/automations/client/Client.js +4 -4
- package/api/resources/files/client/Client.js +5 -5
- package/api/resources/profiles/client/Client.js +1 -1
- package/api/resources/requests/client/Client.js +1 -1
- package/api/resources/sessions/client/Client.js +6 -6
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
- package/api/resources/sessions/types/index.d.ts +1 -1
- package/api/resources/sessions/types/index.js +1 -1
- package/api/resources/windows/client/Client.d.ts +10 -0
- package/api/resources/windows/client/Client.js +74 -22
- package/api/types/WindowId.d.ts +4 -0
- package/api/types/WindowsResponse.d.ts +10 -0
- package/api/types/WindowsResponse.js +5 -0
- package/api/types/WindowsWithMeta.d.ts +8 -0
- package/api/types/WindowsWithMeta.js +5 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/automations/client/Client.js +4 -4
- package/dist/api/resources/files/client/Client.js +5 -5
- package/dist/api/resources/profiles/client/Client.js +1 -1
- package/dist/api/resources/requests/client/Client.js +1 -1
- package/dist/api/resources/sessions/client/Client.js +6 -6
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
- package/dist/api/resources/sessions/types/index.d.ts +1 -1
- package/dist/api/resources/sessions/types/index.js +1 -1
- package/dist/api/resources/windows/client/Client.d.ts +10 -0
- package/dist/api/resources/windows/client/Client.js +74 -22
- package/dist/api/types/WindowId.d.ts +4 -0
- package/dist/api/types/WindowsResponse.d.ts +10 -0
- package/dist/api/types/WindowsResponse.js +5 -0
- package/dist/api/types/WindowsWithMeta.d.ts +8 -0
- package/dist/api/types/WindowsWithMeta.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
- package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
- package/dist/serialization/resources/sessions/types/index.js +1 -1
- package/dist/serialization/types/WindowId.d.ts +2 -0
- package/dist/serialization/types/WindowId.js +2 -0
- package/dist/serialization/types/WindowsResponse.d.ts +18 -0
- package/dist/serialization/types/WindowsResponse.js +49 -0
- package/dist/serialization/types/WindowsWithMeta.d.ts +13 -0
- package/dist/serialization/types/WindowsWithMeta.js +44 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +63 -0
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
- package/serialization/resources/sessions/types/index.d.ts +1 -1
- package/serialization/resources/sessions/types/index.js +1 -1
- package/serialization/types/WindowId.d.ts +2 -0
- package/serialization/types/WindowId.js +2 -0
- package/serialization/types/WindowsResponse.d.ts +18 -0
- package/serialization/types/WindowsResponse.js +49 -0
- package/serialization/types/WindowsWithMeta.d.ts +13 -0
- package/serialization/types/WindowsWithMeta.js +44 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/api/types/index.js
CHANGED
@@ -102,3 +102,5 @@ __exportStar(require("./WindowEventMessage"), exports);
|
|
102
102
|
__exportStar(require("./WindowId"), exports);
|
103
103
|
__exportStar(require("./WindowIdResponse"), exports);
|
104
104
|
__exportStar(require("./WindowResponse"), exports);
|
105
|
+
__exportStar(require("./WindowsResponse"), exports);
|
106
|
+
__exportStar(require("./WindowsWithMeta"), exports);
|
@@ -4,18 +4,15 @@
|
|
4
4
|
import * as serializers from "../../../index";
|
5
5
|
import * as Airtop from "../../../../api/index";
|
6
6
|
import * as core from "../../../../core";
|
7
|
-
import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
|
8
7
|
import { SessionsEventsResponseFileEvent } from "./SessionsEventsResponseFileEvent";
|
9
8
|
import { SessionsEventsResponseCaptchaEvent } from "./SessionsEventsResponseCaptchaEvent";
|
10
9
|
import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
|
11
10
|
import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
|
12
11
|
import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
|
12
|
+
import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
|
13
13
|
export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
|
14
14
|
export declare namespace SessionsEventsResponse {
|
15
|
-
type Raw = SessionsEventsResponse.
|
16
|
-
interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
|
17
|
-
event: "sessionEvent";
|
18
|
-
}
|
15
|
+
type Raw = SessionsEventsResponse.FileEvent | SessionsEventsResponse.CaptchaEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent;
|
19
16
|
interface FileEvent extends SessionsEventsResponseFileEvent.Raw {
|
20
17
|
event: "fileEvent";
|
21
18
|
}
|
@@ -31,4 +28,7 @@ export declare namespace SessionsEventsResponse {
|
|
31
28
|
interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
|
32
29
|
event: "windowEvent";
|
33
30
|
}
|
31
|
+
interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
|
32
|
+
event: "sessionEvent";
|
33
|
+
}
|
34
34
|
}
|
@@ -38,20 +38,20 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
39
39
|
exports.SessionsEventsResponse = void 0;
|
40
40
|
const core = __importStar(require("../../../../core"));
|
41
|
-
const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
|
42
41
|
const SessionsEventsResponseFileEvent_1 = require("./SessionsEventsResponseFileEvent");
|
43
42
|
const SessionsEventsResponseCaptchaEvent_1 = require("./SessionsEventsResponseCaptchaEvent");
|
44
43
|
const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
|
45
44
|
const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
|
46
45
|
const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
|
46
|
+
const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
|
47
47
|
exports.SessionsEventsResponse = core.serialization
|
48
48
|
.union("event", {
|
49
|
-
sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
|
50
49
|
fileEvent: SessionsEventsResponseFileEvent_1.SessionsEventsResponseFileEvent,
|
51
50
|
captchaEvent: SessionsEventsResponseCaptchaEvent_1.SessionsEventsResponseCaptchaEvent,
|
52
51
|
status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
|
53
52
|
error: SessionsEventsResponseError_1.SessionsEventsResponseError,
|
54
53
|
windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
|
54
|
+
sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
|
55
55
|
})
|
56
56
|
.transform({
|
57
57
|
transform: (value) => value,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export * from "./SessionsListRequestStatus";
|
2
|
-
export * from "./SessionsEventsResponseSessionEvent";
|
3
2
|
export * from "./SessionsEventsResponseFileEvent";
|
4
3
|
export * from "./SessionsEventsResponseCaptchaEvent";
|
5
4
|
export * from "./SessionsEventsResponseStatus";
|
6
5
|
export * from "./SessionsEventsResponseError";
|
7
6
|
export * from "./SessionsEventsResponseWindowEvent";
|
7
|
+
export * from "./SessionsEventsResponseSessionEvent";
|
8
8
|
export * from "./SessionsEventsResponse";
|
@@ -15,10 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./SessionsListRequestStatus"), exports);
|
18
|
-
__exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
|
19
18
|
__exportStar(require("./SessionsEventsResponseFileEvent"), exports);
|
20
19
|
__exportStar(require("./SessionsEventsResponseCaptchaEvent"), exports);
|
21
20
|
__exportStar(require("./SessionsEventsResponseStatus"), exports);
|
22
21
|
__exportStar(require("./SessionsEventsResponseError"), exports);
|
23
22
|
__exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
|
23
|
+
__exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
|
24
24
|
__exportStar(require("./SessionsEventsResponse"), exports);
|
@@ -40,5 +40,7 @@ exports.WindowId = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
41
41
|
exports.WindowId = core.serialization.object({
|
42
42
|
targetId: core.serialization.string(),
|
43
|
+
title: core.serialization.string().optional(),
|
44
|
+
url: core.serialization.string().optional(),
|
43
45
|
windowId: core.serialization.string(),
|
44
46
|
});
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Airtop from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
import { WindowsWithMeta } from "./WindowsWithMeta";
|
8
|
+
import { Issue } from "./Issue";
|
9
|
+
import { EnvelopeDefaultMeta } from "./EnvelopeDefaultMeta";
|
10
|
+
export declare const WindowsResponse: core.serialization.ObjectSchema<serializers.WindowsResponse.Raw, Airtop.WindowsResponse>;
|
11
|
+
export declare namespace WindowsResponse {
|
12
|
+
interface Raw {
|
13
|
+
data: WindowsWithMeta.Raw;
|
14
|
+
errors?: Issue.Raw[] | null;
|
15
|
+
meta: EnvelopeDefaultMeta.Raw;
|
16
|
+
warnings?: Issue.Raw[] | null;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.WindowsResponse = void 0;
|
40
|
+
const core = __importStar(require("../../core"));
|
41
|
+
const WindowsWithMeta_1 = require("./WindowsWithMeta");
|
42
|
+
const Issue_1 = require("./Issue");
|
43
|
+
const EnvelopeDefaultMeta_1 = require("./EnvelopeDefaultMeta");
|
44
|
+
exports.WindowsResponse = core.serialization.object({
|
45
|
+
data: WindowsWithMeta_1.WindowsWithMeta,
|
46
|
+
errors: core.serialization.list(Issue_1.Issue).optional(),
|
47
|
+
meta: EnvelopeDefaultMeta_1.EnvelopeDefaultMeta,
|
48
|
+
warnings: core.serialization.list(Issue_1.Issue).optional(),
|
49
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Airtop from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
import { WindowId } from "./WindowId";
|
8
|
+
export declare const WindowsWithMeta: core.serialization.ObjectSchema<serializers.WindowsWithMeta.Raw, Airtop.WindowsWithMeta>;
|
9
|
+
export declare namespace WindowsWithMeta {
|
10
|
+
interface Raw {
|
11
|
+
windows?: WindowId.Raw[] | null;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.WindowsWithMeta = void 0;
|
40
|
+
const core = __importStar(require("../../core"));
|
41
|
+
const WindowId_1 = require("./WindowId");
|
42
|
+
exports.WindowsWithMeta = core.serialization.object({
|
43
|
+
windows: core.serialization.list(WindowId_1.WindowId).optional(),
|
44
|
+
});
|
@@ -102,3 +102,5 @@ __exportStar(require("./WindowEventMessage"), exports);
|
|
102
102
|
__exportStar(require("./WindowId"), exports);
|
103
103
|
__exportStar(require("./WindowIdResponse"), exports);
|
104
104
|
__exportStar(require("./WindowResponse"), exports);
|
105
|
+
__exportStar(require("./WindowsResponse"), exports);
|
106
|
+
__exportStar(require("./WindowsWithMeta"), exports);
|
package/dist/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
1
|
+
export declare const SDK_VERSION = "0.1.44";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -332,6 +332,69 @@ await client.windows.asyncFillForm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334
|
|
332
332
|
</dl>
|
333
333
|
</details>
|
334
334
|
|
335
|
+
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">list</a>(sessionId) -> Airtop.WindowsResponse</code></summary>
|
336
|
+
<dl>
|
337
|
+
<dd>
|
338
|
+
|
339
|
+
#### 📝 Description
|
340
|
+
|
341
|
+
<dl>
|
342
|
+
<dd>
|
343
|
+
|
344
|
+
<dl>
|
345
|
+
<dd>
|
346
|
+
|
347
|
+
Lists all browser windows in a session.
|
348
|
+
|
349
|
+
</dd>
|
350
|
+
</dl>
|
351
|
+
</dd>
|
352
|
+
</dl>
|
353
|
+
|
354
|
+
#### 🔌 Usage
|
355
|
+
|
356
|
+
<dl>
|
357
|
+
<dd>
|
358
|
+
|
359
|
+
<dl>
|
360
|
+
<dd>
|
361
|
+
|
362
|
+
```typescript
|
363
|
+
await client.windows.list("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
|
364
|
+
```
|
365
|
+
|
366
|
+
</dd>
|
367
|
+
</dl>
|
368
|
+
</dd>
|
369
|
+
</dl>
|
370
|
+
|
371
|
+
#### ⚙️ Parameters
|
372
|
+
|
373
|
+
<dl>
|
374
|
+
<dd>
|
375
|
+
|
376
|
+
<dl>
|
377
|
+
<dd>
|
378
|
+
|
379
|
+
**sessionId:** `string` — ID of the session to list windows for.
|
380
|
+
|
381
|
+
</dd>
|
382
|
+
</dl>
|
383
|
+
|
384
|
+
<dl>
|
385
|
+
<dd>
|
386
|
+
|
387
|
+
**requestOptions:** `Windows.RequestOptions`
|
388
|
+
|
389
|
+
</dd>
|
390
|
+
</dl>
|
391
|
+
</dd>
|
392
|
+
</dl>
|
393
|
+
|
394
|
+
</dd>
|
395
|
+
</dl>
|
396
|
+
</details>
|
397
|
+
|
335
398
|
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">create</a>(sessionId, { ...params }) -> Airtop.WindowIdResponse</code></summary>
|
336
399
|
<dl>
|
337
400
|
<dd>
|
@@ -4,18 +4,15 @@
|
|
4
4
|
import * as serializers from "../../../index";
|
5
5
|
import * as Airtop from "../../../../api/index";
|
6
6
|
import * as core from "../../../../core";
|
7
|
-
import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
|
8
7
|
import { SessionsEventsResponseFileEvent } from "./SessionsEventsResponseFileEvent";
|
9
8
|
import { SessionsEventsResponseCaptchaEvent } from "./SessionsEventsResponseCaptchaEvent";
|
10
9
|
import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
|
11
10
|
import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
|
12
11
|
import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
|
12
|
+
import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
|
13
13
|
export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
|
14
14
|
export declare namespace SessionsEventsResponse {
|
15
|
-
type Raw = SessionsEventsResponse.
|
16
|
-
interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
|
17
|
-
event: "sessionEvent";
|
18
|
-
}
|
15
|
+
type Raw = SessionsEventsResponse.FileEvent | SessionsEventsResponse.CaptchaEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent;
|
19
16
|
interface FileEvent extends SessionsEventsResponseFileEvent.Raw {
|
20
17
|
event: "fileEvent";
|
21
18
|
}
|
@@ -31,4 +28,7 @@ export declare namespace SessionsEventsResponse {
|
|
31
28
|
interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
|
32
29
|
event: "windowEvent";
|
33
30
|
}
|
31
|
+
interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
|
32
|
+
event: "sessionEvent";
|
33
|
+
}
|
34
34
|
}
|
@@ -38,20 +38,20 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
39
39
|
exports.SessionsEventsResponse = void 0;
|
40
40
|
const core = __importStar(require("../../../../core"));
|
41
|
-
const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
|
42
41
|
const SessionsEventsResponseFileEvent_1 = require("./SessionsEventsResponseFileEvent");
|
43
42
|
const SessionsEventsResponseCaptchaEvent_1 = require("./SessionsEventsResponseCaptchaEvent");
|
44
43
|
const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
|
45
44
|
const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
|
46
45
|
const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
|
46
|
+
const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
|
47
47
|
exports.SessionsEventsResponse = core.serialization
|
48
48
|
.union("event", {
|
49
|
-
sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
|
50
49
|
fileEvent: SessionsEventsResponseFileEvent_1.SessionsEventsResponseFileEvent,
|
51
50
|
captchaEvent: SessionsEventsResponseCaptchaEvent_1.SessionsEventsResponseCaptchaEvent,
|
52
51
|
status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
|
53
52
|
error: SessionsEventsResponseError_1.SessionsEventsResponseError,
|
54
53
|
windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
|
54
|
+
sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
|
55
55
|
})
|
56
56
|
.transform({
|
57
57
|
transform: (value) => value,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export * from "./SessionsListRequestStatus";
|
2
|
-
export * from "./SessionsEventsResponseSessionEvent";
|
3
2
|
export * from "./SessionsEventsResponseFileEvent";
|
4
3
|
export * from "./SessionsEventsResponseCaptchaEvent";
|
5
4
|
export * from "./SessionsEventsResponseStatus";
|
6
5
|
export * from "./SessionsEventsResponseError";
|
7
6
|
export * from "./SessionsEventsResponseWindowEvent";
|
7
|
+
export * from "./SessionsEventsResponseSessionEvent";
|
8
8
|
export * from "./SessionsEventsResponse";
|
@@ -15,10 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./SessionsListRequestStatus"), exports);
|
18
|
-
__exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
|
19
18
|
__exportStar(require("./SessionsEventsResponseFileEvent"), exports);
|
20
19
|
__exportStar(require("./SessionsEventsResponseCaptchaEvent"), exports);
|
21
20
|
__exportStar(require("./SessionsEventsResponseStatus"), exports);
|
22
21
|
__exportStar(require("./SessionsEventsResponseError"), exports);
|
23
22
|
__exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
|
23
|
+
__exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
|
24
24
|
__exportStar(require("./SessionsEventsResponse"), exports);
|
@@ -40,5 +40,7 @@ exports.WindowId = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
41
41
|
exports.WindowId = core.serialization.object({
|
42
42
|
targetId: core.serialization.string(),
|
43
|
+
title: core.serialization.string().optional(),
|
44
|
+
url: core.serialization.string().optional(),
|
43
45
|
windowId: core.serialization.string(),
|
44
46
|
});
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Airtop from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
import { WindowsWithMeta } from "./WindowsWithMeta";
|
8
|
+
import { Issue } from "./Issue";
|
9
|
+
import { EnvelopeDefaultMeta } from "./EnvelopeDefaultMeta";
|
10
|
+
export declare const WindowsResponse: core.serialization.ObjectSchema<serializers.WindowsResponse.Raw, Airtop.WindowsResponse>;
|
11
|
+
export declare namespace WindowsResponse {
|
12
|
+
interface Raw {
|
13
|
+
data: WindowsWithMeta.Raw;
|
14
|
+
errors?: Issue.Raw[] | null;
|
15
|
+
meta: EnvelopeDefaultMeta.Raw;
|
16
|
+
warnings?: Issue.Raw[] | null;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.WindowsResponse = void 0;
|
40
|
+
const core = __importStar(require("../../core"));
|
41
|
+
const WindowsWithMeta_1 = require("./WindowsWithMeta");
|
42
|
+
const Issue_1 = require("./Issue");
|
43
|
+
const EnvelopeDefaultMeta_1 = require("./EnvelopeDefaultMeta");
|
44
|
+
exports.WindowsResponse = core.serialization.object({
|
45
|
+
data: WindowsWithMeta_1.WindowsWithMeta,
|
46
|
+
errors: core.serialization.list(Issue_1.Issue).optional(),
|
47
|
+
meta: EnvelopeDefaultMeta_1.EnvelopeDefaultMeta,
|
48
|
+
warnings: core.serialization.list(Issue_1.Issue).optional(),
|
49
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Airtop from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
import { WindowId } from "./WindowId";
|
8
|
+
export declare const WindowsWithMeta: core.serialization.ObjectSchema<serializers.WindowsWithMeta.Raw, Airtop.WindowsWithMeta>;
|
9
|
+
export declare namespace WindowsWithMeta {
|
10
|
+
interface Raw {
|
11
|
+
windows?: WindowId.Raw[] | null;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.WindowsWithMeta = void 0;
|
40
|
+
const core = __importStar(require("../../core"));
|
41
|
+
const WindowId_1 = require("./WindowId");
|
42
|
+
exports.WindowsWithMeta = core.serialization.object({
|
43
|
+
windows: core.serialization.list(WindowId_1.WindowId).optional(),
|
44
|
+
});
|
@@ -102,3 +102,5 @@ __exportStar(require("./WindowEventMessage"), exports);
|
|
102
102
|
__exportStar(require("./WindowId"), exports);
|
103
103
|
__exportStar(require("./WindowIdResponse"), exports);
|
104
104
|
__exportStar(require("./WindowResponse"), exports);
|
105
|
+
__exportStar(require("./WindowsResponse"), exports);
|
106
|
+
__exportStar(require("./WindowsWithMeta"), exports);
|
package/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
1
|
+
export declare const SDK_VERSION = "0.1.44";
|
package/version.js
CHANGED