@airtop/sdk 0.0.8 → 0.0.10-a

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.
Files changed (176) hide show
  1. package/api/index.d.ts +1 -1
  2. package/api/index.js +1 -1
  3. package/api/resources/index.d.ts +2 -1
  4. package/api/resources/index.js +3 -2
  5. package/api/resources/profiles/client/Client.js +4 -4
  6. package/api/resources/sessions/client/Client.d.ts +11 -4
  7. package/api/resources/sessions/client/Client.js +117 -13
  8. package/api/resources/sessions/client/requests/SessionsListRequest.d.ts +18 -2
  9. package/api/resources/sessions/index.d.ts +1 -0
  10. package/api/resources/sessions/index.js +1 -0
  11. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +16 -0
  12. package/api/resources/sessions/types/SessionsEventsResponseError.d.ts +11 -0
  13. package/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +11 -0
  14. package/api/resources/sessions/types/SessionsEventsResponseStatus.js +5 -0
  15. package/api/resources/sessions/types/SessionsListRequestStatus.d.ts +13 -0
  16. package/api/resources/sessions/types/SessionsListRequestStatus.js +12 -0
  17. package/api/resources/sessions/types/index.d.ts +4 -0
  18. package/api/resources/sessions/types/index.js +20 -0
  19. package/api/resources/windows/client/Client.d.ts +1 -1
  20. package/api/resources/windows/client/Client.js +10 -10
  21. package/api/types/ErrorMessage.d.ts +11 -0
  22. package/api/types/ErrorMessage.js +5 -0
  23. package/api/types/ExternalProfileV1.d.ts +0 -2
  24. package/api/types/Pagination.d.ts +13 -0
  25. package/api/types/Pagination.js +5 -0
  26. package/api/types/SessionsWithPagination.d.ts +10 -0
  27. package/api/types/SessionsWithPagination.js +5 -0
  28. package/api/types/{ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts → SessionsWithPaginationEnvelopeDefaultMetaWrapper.d.ts} +2 -2
  29. package/api/types/SessionsWithPaginationEnvelopeDefaultMetaWrapper.js +5 -0
  30. package/api/types/StatusMessage.d.ts +14 -0
  31. package/api/types/StatusMessage.js +5 -0
  32. package/api/types/StatusMessageStatus.d.ts +13 -0
  33. package/api/types/StatusMessageStatus.js +12 -0
  34. package/api/types/Window.d.ts +0 -2
  35. package/api/types/index.d.ts +6 -1
  36. package/api/types/index.js +6 -1
  37. package/core/index.d.ts +1 -0
  38. package/core/index.js +1 -0
  39. package/core/streaming-fetcher/Stream.d.ts +48 -0
  40. package/core/streaming-fetcher/Stream.js +170 -0
  41. package/core/streaming-fetcher/index.d.ts +1 -0
  42. package/core/streaming-fetcher/index.js +5 -0
  43. package/dist/api/index.d.ts +1 -1
  44. package/dist/api/index.js +1 -1
  45. package/dist/api/resources/index.d.ts +2 -1
  46. package/dist/api/resources/index.js +3 -2
  47. package/dist/api/resources/profiles/client/Client.js +4 -4
  48. package/dist/api/resources/sessions/client/Client.d.ts +11 -4
  49. package/dist/api/resources/sessions/client/Client.js +117 -13
  50. package/dist/api/resources/sessions/client/requests/SessionsListRequest.d.ts +18 -2
  51. package/dist/api/resources/sessions/index.d.ts +1 -0
  52. package/dist/api/resources/sessions/index.js +1 -0
  53. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +16 -0
  54. package/dist/api/resources/sessions/types/SessionsEventsResponse.js +5 -0
  55. package/dist/api/resources/sessions/types/SessionsEventsResponseError.d.ts +11 -0
  56. package/dist/api/resources/sessions/types/SessionsEventsResponseError.js +5 -0
  57. package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +11 -0
  58. package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.js +5 -0
  59. package/dist/api/resources/sessions/types/SessionsListRequestStatus.d.ts +13 -0
  60. package/dist/api/resources/sessions/types/SessionsListRequestStatus.js +12 -0
  61. package/dist/api/resources/sessions/types/index.d.ts +4 -0
  62. package/dist/api/resources/sessions/types/index.js +20 -0
  63. package/dist/api/resources/windows/client/Client.d.ts +1 -1
  64. package/dist/api/resources/windows/client/Client.js +10 -10
  65. package/dist/api/types/ErrorMessage.d.ts +11 -0
  66. package/dist/api/types/ErrorMessage.js +5 -0
  67. package/dist/api/types/ExternalProfileV1.d.ts +0 -2
  68. package/dist/api/types/Pagination.d.ts +13 -0
  69. package/dist/api/types/Pagination.js +5 -0
  70. package/dist/api/types/SessionsWithPagination.d.ts +10 -0
  71. package/dist/api/types/SessionsWithPagination.js +5 -0
  72. package/dist/api/types/{ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts → SessionsWithPaginationEnvelopeDefaultMetaWrapper.d.ts} +2 -2
  73. package/dist/api/types/SessionsWithPaginationEnvelopeDefaultMetaWrapper.js +5 -0
  74. package/dist/api/types/StatusMessage.d.ts +14 -0
  75. package/dist/api/types/StatusMessage.js +5 -0
  76. package/dist/api/types/StatusMessageStatus.d.ts +13 -0
  77. package/dist/api/types/StatusMessageStatus.js +12 -0
  78. package/dist/api/types/Window.d.ts +0 -2
  79. package/dist/api/types/index.d.ts +6 -1
  80. package/dist/api/types/index.js +6 -1
  81. package/dist/core/index.d.ts +1 -0
  82. package/dist/core/index.js +1 -0
  83. package/dist/core/streaming-fetcher/Stream.d.ts +48 -0
  84. package/dist/core/streaming-fetcher/Stream.js +170 -0
  85. package/dist/core/streaming-fetcher/index.d.ts +1 -0
  86. package/dist/core/streaming-fetcher/index.js +5 -0
  87. package/dist/index.d.ts +2 -1
  88. package/dist/index.js +4 -3
  89. package/dist/serialization/index.d.ts +1 -1
  90. package/dist/serialization/index.js +1 -1
  91. package/dist/serialization/resources/index.d.ts +1 -0
  92. package/dist/serialization/resources/index.js +1 -0
  93. package/dist/serialization/resources/sessions/index.d.ts +1 -0
  94. package/dist/serialization/resources/sessions/index.js +1 -0
  95. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +18 -0
  96. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +41 -0
  97. package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +15 -0
  98. package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.js +36 -0
  99. package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +15 -0
  100. package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +36 -0
  101. package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.d.ts +10 -0
  102. package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.js +31 -0
  103. package/dist/serialization/resources/sessions/types/index.d.ts +4 -0
  104. package/dist/serialization/resources/sessions/types/index.js +20 -0
  105. package/dist/serialization/types/ErrorMessage.d.ts +14 -0
  106. package/dist/serialization/types/ErrorMessage.js +35 -0
  107. package/dist/serialization/types/ExternalProfileV1.d.ts +0 -1
  108. package/dist/serialization/types/ExternalProfileV1.js +0 -1
  109. package/dist/serialization/types/Pagination.d.ts +19 -0
  110. package/dist/serialization/types/Pagination.js +40 -0
  111. package/dist/serialization/types/SessionsWithPagination.d.ts +15 -0
  112. package/dist/serialization/types/SessionsWithPagination.js +36 -0
  113. package/dist/serialization/types/SessionsWithPaginationEnvelopeDefaultMetaWrapper.d.ts +18 -0
  114. package/dist/serialization/types/{ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js → SessionsWithPaginationEnvelopeDefaultMetaWrapper.js} +4 -4
  115. package/dist/serialization/types/StatusMessage.d.ts +16 -0
  116. package/dist/serialization/types/StatusMessage.js +37 -0
  117. package/dist/serialization/types/StatusMessageStatus.d.ts +10 -0
  118. package/dist/serialization/types/StatusMessageStatus.js +31 -0
  119. package/dist/serialization/types/Window.d.ts +0 -1
  120. package/dist/serialization/types/Window.js +0 -1
  121. package/dist/serialization/types/index.d.ts +6 -1
  122. package/dist/serialization/types/index.js +6 -1
  123. package/dist/wrapper/AirtopClient.d.ts +19 -0
  124. package/dist/wrapper/AirtopClient.js +32 -0
  125. package/dist/wrapper/AirtopSessions.d.ts +24 -0
  126. package/dist/wrapper/AirtopSessions.js +93 -0
  127. package/dist/wrapper/AirtopWindows.d.ts +18 -0
  128. package/dist/wrapper/AirtopWindows.js +65 -0
  129. package/index.d.ts +2 -1
  130. package/index.js +4 -3
  131. package/package.json +7 -3
  132. package/reference.md +71 -5
  133. package/serialization/index.d.ts +1 -1
  134. package/serialization/index.js +1 -1
  135. package/serialization/resources/index.d.ts +1 -0
  136. package/serialization/resources/index.js +1 -0
  137. package/serialization/resources/sessions/index.d.ts +1 -0
  138. package/serialization/resources/sessions/index.js +1 -0
  139. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +18 -0
  140. package/serialization/resources/sessions/types/SessionsEventsResponse.js +41 -0
  141. package/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +15 -0
  142. package/serialization/resources/sessions/types/SessionsEventsResponseError.js +36 -0
  143. package/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +15 -0
  144. package/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +36 -0
  145. package/serialization/resources/sessions/types/SessionsListRequestStatus.d.ts +10 -0
  146. package/serialization/resources/sessions/types/SessionsListRequestStatus.js +31 -0
  147. package/serialization/resources/sessions/types/index.d.ts +4 -0
  148. package/serialization/resources/sessions/types/index.js +20 -0
  149. package/serialization/types/ErrorMessage.d.ts +14 -0
  150. package/serialization/types/ErrorMessage.js +35 -0
  151. package/serialization/types/ExternalProfileV1.d.ts +0 -1
  152. package/serialization/types/ExternalProfileV1.js +0 -1
  153. package/serialization/types/Pagination.d.ts +19 -0
  154. package/serialization/types/Pagination.js +40 -0
  155. package/serialization/types/SessionsWithPagination.d.ts +15 -0
  156. package/serialization/types/SessionsWithPagination.js +36 -0
  157. package/serialization/types/SessionsWithPaginationEnvelopeDefaultMetaWrapper.d.ts +18 -0
  158. package/serialization/types/{ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js → SessionsWithPaginationEnvelopeDefaultMetaWrapper.js} +4 -4
  159. package/serialization/types/StatusMessage.d.ts +16 -0
  160. package/serialization/types/StatusMessage.js +37 -0
  161. package/serialization/types/StatusMessageStatus.d.ts +10 -0
  162. package/serialization/types/StatusMessageStatus.js +31 -0
  163. package/serialization/types/Window.d.ts +0 -1
  164. package/serialization/types/Window.js +0 -1
  165. package/serialization/types/index.d.ts +6 -1
  166. package/serialization/types/index.js +6 -1
  167. package/wrapper/AirtopClient.d.ts +19 -0
  168. package/wrapper/AirtopClient.js +32 -0
  169. package/wrapper/AirtopSessions.d.ts +24 -0
  170. package/wrapper/AirtopSessions.js +93 -0
  171. package/wrapper/AirtopWindows.d.ts +18 -0
  172. package/wrapper/AirtopWindows.js +65 -0
  173. package/dist/serialization/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +0 -18
  174. package/serialization/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +0 -18
  175. /package/api/{types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js → resources/sessions/types/SessionsEventsResponse.js} +0 -0
  176. /package/{dist/api/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js → api/resources/sessions/types/SessionsEventsResponseError.js} +0 -0
package/reference.md CHANGED
@@ -130,7 +130,7 @@ await client.profiles.delete();
130
130
 
131
131
  ## Sessions
132
132
 
133
- <details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">list</a>({ ...params }) -> Airtop.ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper</code></summary>
133
+ <details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">list</a>({ ...params }) -> Airtop.SessionsWithPaginationEnvelopeDefaultMetaWrapper</code></summary>
134
134
  <dl>
135
135
  <dd>
136
136
 
@@ -158,7 +158,10 @@ Get a list of sessions by ID
158
158
  <dd>
159
159
 
160
160
  ```typescript
161
- await client.sessions.list();
161
+ await client.sessions.list({
162
+ offset: 1,
163
+ limit: 10,
164
+ });
162
165
  ```
163
166
 
164
167
  </dd>
@@ -285,7 +288,7 @@ await client.sessions.getinfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
285
288
  <dl>
286
289
  <dd>
287
290
 
288
- **id:** `string` — UUID of the session to get
291
+ **id:** `string` — Id of the session to get
289
292
 
290
293
  </dd>
291
294
  </dl>
@@ -348,7 +351,70 @@ await client.sessions.terminate("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
348
351
  <dl>
349
352
  <dd>
350
353
 
351
- **id:** `string` — UUID of the session to delete
354
+ **id:** `string` — ID of the session to delete
355
+
356
+ </dd>
357
+ </dl>
358
+
359
+ <dl>
360
+ <dd>
361
+
362
+ **requestOptions:** `Sessions.RequestOptions`
363
+
364
+ </dd>
365
+ </dl>
366
+ </dd>
367
+ </dl>
368
+
369
+ </dd>
370
+ </dl>
371
+ </details>
372
+
373
+ <details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">events</a>(id) -> core.Stream<Airtop.SessionsEventsResponse></code></summary>
374
+ <dl>
375
+ <dd>
376
+
377
+ #### 📝 Description
378
+
379
+ <dl>
380
+ <dd>
381
+
382
+ <dl>
383
+ <dd>
384
+
385
+ Get a session event stream for a given session ID
386
+
387
+ </dd>
388
+ </dl>
389
+ </dd>
390
+ </dl>
391
+
392
+ #### 🔌 Usage
393
+
394
+ <dl>
395
+ <dd>
396
+
397
+ <dl>
398
+ <dd>
399
+
400
+ ```typescript
401
+ await client.sessions.events("string");
402
+ ```
403
+
404
+ </dd>
405
+ </dl>
406
+ </dd>
407
+ </dl>
408
+
409
+ #### ⚙️ Parameters
410
+
411
+ <dl>
412
+ <dd>
413
+
414
+ <dl>
415
+ <dd>
416
+
417
+ **id:** `string` — ID of the session to get status info for
352
418
 
353
419
  </dd>
354
420
  </dl>
@@ -400,7 +466,7 @@ await client.windows.getWindowInfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334
400
466
  <dl>
401
467
  <dd>
402
468
 
403
- **sessionId:** `string` — UUID of the session that owns the window
469
+ **sessionId:** `string` — ID of the session that owns the window
404
470
 
405
471
  </dd>
406
472
  </dl>
@@ -1,2 +1,2 @@
1
- export * from "./types";
2
1
  export * from "./resources";
2
+ export * from "./types";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
17
  __exportStar(require("./resources"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -1,4 +1,5 @@
1
1
  export * as sessions from "./sessions";
2
+ export * from "./sessions/types";
2
3
  export * from "./sessions/client/requests";
3
4
  export * as windows from "./windows";
4
5
  export * from "./windows/client/requests";
@@ -28,6 +28,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.windows = exports.sessions = void 0;
30
30
  exports.sessions = __importStar(require("./sessions"));
31
+ __exportStar(require("./sessions/types"), exports);
31
32
  __exportStar(require("./sessions/client/requests"), exports);
32
33
  exports.windows = __importStar(require("./windows"));
33
34
  __exportStar(require("./windows/client/requests"), exports);
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -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 { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
8
+ import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
9
+ export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
10
+ export declare namespace SessionsEventsResponse {
11
+ type Raw = SessionsEventsResponse.Status | SessionsEventsResponse.Error;
12
+ interface Status extends SessionsEventsResponseStatus.Raw {
13
+ event: "status";
14
+ }
15
+ interface Error extends SessionsEventsResponseError.Raw {
16
+ event: "error";
17
+ }
18
+ }
@@ -0,0 +1,41 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SessionsEventsResponse = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
32
+ const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
33
+ exports.SessionsEventsResponse = core.serialization
34
+ .union("event", {
35
+ status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
36
+ error: SessionsEventsResponseError_1.SessionsEventsResponseError,
37
+ })
38
+ .transform({
39
+ transform: (value) => value,
40
+ untransform: (value) => value,
41
+ });
@@ -0,0 +1,15 @@
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 { ErrorMessage } from "../../../types/ErrorMessage";
8
+ export declare const SessionsEventsResponseError: core.serialization.ObjectSchema<serializers.SessionsEventsResponseError.Raw, Airtop.SessionsEventsResponseError>;
9
+ export declare namespace SessionsEventsResponseError {
10
+ interface Raw {
11
+ data: ErrorMessage.Raw;
12
+ id?: number | null;
13
+ retry?: number | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SessionsEventsResponseError = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ErrorMessage_1 = require("../../../types/ErrorMessage");
32
+ exports.SessionsEventsResponseError = core.serialization.object({
33
+ data: ErrorMessage_1.ErrorMessage,
34
+ id: core.serialization.number().optional(),
35
+ retry: core.serialization.number().optional(),
36
+ });
@@ -0,0 +1,15 @@
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 { StatusMessage } from "../../../types/StatusMessage";
8
+ export declare const SessionsEventsResponseStatus: core.serialization.ObjectSchema<serializers.SessionsEventsResponseStatus.Raw, Airtop.SessionsEventsResponseStatus>;
9
+ export declare namespace SessionsEventsResponseStatus {
10
+ interface Raw {
11
+ data: StatusMessage.Raw;
12
+ id?: number | null;
13
+ retry?: number | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SessionsEventsResponseStatus = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const StatusMessage_1 = require("../../../types/StatusMessage");
32
+ exports.SessionsEventsResponseStatus = core.serialization.object({
33
+ data: StatusMessage_1.StatusMessage,
34
+ id: core.serialization.number().optional(),
35
+ retry: core.serialization.number().optional(),
36
+ });
@@ -0,0 +1,10 @@
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
+ export declare const SessionsListRequestStatus: core.serialization.Schema<serializers.SessionsListRequestStatus.Raw, Airtop.SessionsListRequestStatus>;
8
+ export declare namespace SessionsListRequestStatus {
9
+ type Raw = "awaiting_capacity" | "initializing" | "running" | "ended";
10
+ }
@@ -0,0 +1,31 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SessionsListRequestStatus = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.SessionsListRequestStatus = core.serialization.enum_(["awaiting_capacity", "initializing", "running", "ended"]);
@@ -0,0 +1,4 @@
1
+ export * from "./SessionsListRequestStatus";
2
+ export * from "./SessionsEventsResponseStatus";
3
+ export * from "./SessionsEventsResponseError";
4
+ export * from "./SessionsEventsResponse";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./SessionsListRequestStatus"), exports);
18
+ __exportStar(require("./SessionsEventsResponseStatus"), exports);
19
+ __exportStar(require("./SessionsEventsResponseError"), exports);
20
+ __exportStar(require("./SessionsEventsResponse"), exports);
@@ -0,0 +1,14 @@
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
+ export declare const ErrorMessage: core.serialization.ObjectSchema<serializers.ErrorMessage.Raw, Airtop.ErrorMessage>;
8
+ export declare namespace ErrorMessage {
9
+ interface Raw {
10
+ code: string;
11
+ event: string;
12
+ message: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ErrorMessage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ErrorMessage = core.serialization.object({
32
+ code: core.serialization.string(),
33
+ event: core.serialization.string(),
34
+ message: core.serialization.string(),
35
+ });
@@ -9,6 +9,5 @@ export declare namespace ExternalProfileV1 {
9
9
  interface Raw {
10
10
  profileId: string;
11
11
  status?: string | null;
12
- uploadUri?: string | null;
13
12
  }
14
13
  }
@@ -31,5 +31,4 @@ const core = __importStar(require("../../core"));
31
31
  exports.ExternalProfileV1 = core.serialization.object({
32
32
  profileId: core.serialization.string(),
33
33
  status: core.serialization.string().optional(),
34
- uploadUri: core.serialization.string().optional(),
35
34
  });
@@ -0,0 +1,19 @@
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
+ export declare const Pagination: core.serialization.ObjectSchema<serializers.Pagination.Raw, Airtop.Pagination>;
8
+ export declare namespace Pagination {
9
+ interface Raw {
10
+ currentLimit: number;
11
+ currentPage: number;
12
+ finalCount: number;
13
+ hasMore: boolean;
14
+ initialCount: number;
15
+ nextOffset: number;
16
+ numberOfPages: number;
17
+ totalItems: number;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Pagination = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Pagination = core.serialization.object({
32
+ currentLimit: core.serialization.number(),
33
+ currentPage: core.serialization.number(),
34
+ finalCount: core.serialization.number(),
35
+ hasMore: core.serialization.boolean(),
36
+ initialCount: core.serialization.number(),
37
+ nextOffset: core.serialization.number(),
38
+ numberOfPages: core.serialization.number(),
39
+ totalItems: core.serialization.number(),
40
+ });
@@ -0,0 +1,15 @@
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 { Pagination } from "./Pagination";
8
+ import { ExternalSessionWithConnectionInfo } from "./ExternalSessionWithConnectionInfo";
9
+ export declare const SessionsWithPagination: core.serialization.ObjectSchema<serializers.SessionsWithPagination.Raw, Airtop.SessionsWithPagination>;
10
+ export declare namespace SessionsWithPagination {
11
+ interface Raw {
12
+ pagination: Pagination.Raw;
13
+ sessions?: ExternalSessionWithConnectionInfo.Raw[] | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SessionsWithPagination = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Pagination_1 = require("./Pagination");
32
+ const ExternalSessionWithConnectionInfo_1 = require("./ExternalSessionWithConnectionInfo");
33
+ exports.SessionsWithPagination = core.serialization.object({
34
+ pagination: Pagination_1.Pagination,
35
+ sessions: core.serialization.list(ExternalSessionWithConnectionInfo_1.ExternalSessionWithConnectionInfo).optional(),
36
+ });
@@ -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 { SessionsWithPagination } from "./SessionsWithPagination";
8
+ import { Issue } from "./Issue";
9
+ import { DefaultMetaWrapper } from "./DefaultMetaWrapper";
10
+ export declare const SessionsWithPaginationEnvelopeDefaultMetaWrapper: core.serialization.ObjectSchema<serializers.SessionsWithPaginationEnvelopeDefaultMetaWrapper.Raw, Airtop.SessionsWithPaginationEnvelopeDefaultMetaWrapper>;
11
+ export declare namespace SessionsWithPaginationEnvelopeDefaultMetaWrapper {
12
+ interface Raw {
13
+ data: SessionsWithPagination.Raw;
14
+ errors?: Issue.Raw[] | null;
15
+ meta: DefaultMetaWrapper.Raw;
16
+ warnings?: Issue.Raw[] | null;
17
+ }
18
+ }
@@ -26,13 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper = void 0;
29
+ exports.SessionsWithPaginationEnvelopeDefaultMetaWrapper = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const ExternalSessionWithConnectionInfo_1 = require("./ExternalSessionWithConnectionInfo");
31
+ const SessionsWithPagination_1 = require("./SessionsWithPagination");
32
32
  const Issue_1 = require("./Issue");
33
33
  const DefaultMetaWrapper_1 = require("./DefaultMetaWrapper");
34
- exports.ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper = core.serialization.object({
35
- data: core.serialization.list(ExternalSessionWithConnectionInfo_1.ExternalSessionWithConnectionInfo).optional(),
34
+ exports.SessionsWithPaginationEnvelopeDefaultMetaWrapper = core.serialization.object({
35
+ data: SessionsWithPagination_1.SessionsWithPagination,
36
36
  errors: core.serialization.list(Issue_1.Issue).optional(),
37
37
  meta: DefaultMetaWrapper_1.DefaultMetaWrapper,
38
38
  warnings: core.serialization.list(Issue_1.Issue).optional(),
@@ -0,0 +1,16 @@
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 { StatusMessageStatus } from "./StatusMessageStatus";
8
+ export declare const StatusMessage: core.serialization.ObjectSchema<serializers.StatusMessage.Raw, Airtop.StatusMessage>;
9
+ export declare namespace StatusMessage {
10
+ interface Raw {
11
+ event: string;
12
+ eventTimeMillis: number;
13
+ id: string;
14
+ status: StatusMessageStatus.Raw;
15
+ }
16
+ }