@airtop/sdk 0.1.36-beta0 → 0.1.37-beta0

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 (142) hide show
  1. package/api/resources/automations/client/Client.js +4 -4
  2. package/api/resources/files/client/Client.js +4 -4
  3. package/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -2
  4. package/api/resources/profiles/client/Client.js +1 -1
  5. package/api/resources/requests/client/Client.js +1 -1
  6. package/api/resources/sessions/client/Client.js +6 -6
  7. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -1
  8. package/api/resources/sessions/types/SessionsEventsResponseFileEvent.d.ts +11 -0
  9. package/api/resources/sessions/types/SessionsEventsResponseFileEvent.js +5 -0
  10. package/api/resources/sessions/types/index.d.ts +1 -0
  11. package/api/resources/sessions/types/index.js +1 -0
  12. package/api/resources/windows/client/Client.d.ts +14 -0
  13. package/api/resources/windows/client/Client.js +87 -30
  14. package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  15. package/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  16. package/api/resources/windows/client/requests/index.d.ts +1 -0
  17. package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  18. package/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  19. package/api/types/CreateFileV1.d.ts +2 -2
  20. package/api/types/CreateFileV1Status.d.ts +13 -0
  21. package/api/types/CreateFileV1Status.js +12 -0
  22. package/api/types/ExternalFile.d.ts +2 -0
  23. package/api/types/FileEventMessage.d.ts +14 -0
  24. package/api/types/FileEventMessage.js +5 -0
  25. package/api/types/FileEventMessageStatus.d.ts +13 -0
  26. package/api/types/FileEventMessageStatus.js +12 -0
  27. package/api/types/GetFileV1.d.ts +4 -2
  28. package/api/types/GetFileV1Status.d.ts +13 -0
  29. package/api/types/GetFileV1Status.js +12 -0
  30. package/api/types/index.d.ts +5 -0
  31. package/api/types/index.js +5 -0
  32. package/dist/api/resources/automations/client/Client.js +4 -4
  33. package/dist/api/resources/files/client/Client.js +4 -4
  34. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -2
  35. package/dist/api/resources/profiles/client/Client.js +1 -1
  36. package/dist/api/resources/requests/client/Client.js +1 -1
  37. package/dist/api/resources/sessions/client/Client.js +6 -6
  38. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -1
  39. package/dist/api/resources/sessions/types/SessionsEventsResponseFileEvent.d.ts +11 -0
  40. package/dist/api/resources/sessions/types/SessionsEventsResponseFileEvent.js +5 -0
  41. package/dist/api/resources/sessions/types/index.d.ts +1 -0
  42. package/dist/api/resources/sessions/types/index.js +1 -0
  43. package/dist/api/resources/windows/client/Client.d.ts +14 -0
  44. package/dist/api/resources/windows/client/Client.js +87 -30
  45. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  46. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  47. package/dist/api/resources/windows/client/requests/index.d.ts +1 -0
  48. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  49. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  50. package/dist/api/types/CreateFileV1.d.ts +2 -2
  51. package/dist/api/types/CreateFileV1Status.d.ts +13 -0
  52. package/dist/api/types/CreateFileV1Status.js +12 -0
  53. package/dist/api/types/ExternalFile.d.ts +2 -0
  54. package/dist/api/types/FileEventMessage.d.ts +14 -0
  55. package/dist/api/types/FileEventMessage.js +5 -0
  56. package/dist/api/types/FileEventMessageStatus.d.ts +13 -0
  57. package/dist/api/types/FileEventMessageStatus.js +12 -0
  58. package/dist/api/types/GetFileV1.d.ts +4 -2
  59. package/dist/api/types/GetFileV1Status.d.ts +13 -0
  60. package/dist/api/types/GetFileV1Status.js +12 -0
  61. package/dist/api/types/index.d.ts +5 -0
  62. package/dist/api/types/index.js +5 -0
  63. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -1
  64. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.js +0 -1
  65. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -1
  66. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -0
  67. package/dist/serialization/resources/sessions/types/SessionsEventsResponseFileEvent.d.ts +15 -0
  68. package/dist/serialization/resources/sessions/types/SessionsEventsResponseFileEvent.js +46 -0
  69. package/dist/serialization/resources/sessions/types/index.d.ts +1 -0
  70. package/dist/serialization/resources/sessions/types/index.js +1 -0
  71. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  72. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  73. package/dist/serialization/resources/windows/client/requests/index.d.ts +1 -0
  74. package/dist/serialization/resources/windows/client/requests/index.js +3 -1
  75. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  76. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  77. package/dist/serialization/types/CreateFileV1.d.ts +2 -1
  78. package/dist/serialization/types/CreateFileV1.js +2 -1
  79. package/dist/serialization/types/CreateFileV1Status.d.ts +10 -0
  80. package/dist/serialization/types/CreateFileV1Status.js +41 -0
  81. package/dist/serialization/types/ExternalFile.d.ts +1 -0
  82. package/dist/serialization/types/ExternalFile.js +1 -0
  83. package/dist/serialization/types/FileEventMessage.d.ts +16 -0
  84. package/dist/serialization/types/FileEventMessage.js +47 -0
  85. package/dist/serialization/types/FileEventMessageStatus.d.ts +10 -0
  86. package/dist/serialization/types/FileEventMessageStatus.js +41 -0
  87. package/dist/serialization/types/GetFileV1.d.ts +3 -1
  88. package/dist/serialization/types/GetFileV1.js +3 -1
  89. package/dist/serialization/types/GetFileV1Status.d.ts +10 -0
  90. package/dist/serialization/types/GetFileV1Status.js +41 -0
  91. package/dist/serialization/types/index.d.ts +5 -0
  92. package/dist/serialization/types/index.js +5 -0
  93. package/dist/version.d.ts +1 -1
  94. package/dist/version.js +1 -1
  95. package/dist/wrapper/AirtopFiles.d.ts +12 -0
  96. package/dist/wrapper/AirtopFiles.js +31 -2
  97. package/dist/wrapper/AirtopRequests.js +1 -1
  98. package/dist/wrapper/AirtopSessions.d.ts +39 -0
  99. package/dist/wrapper/AirtopSessions.js +219 -17
  100. package/dist/wrapper/AirtopWindows.d.ts +26 -0
  101. package/dist/wrapper/AirtopWindows.js +40 -0
  102. package/package.json +1 -1
  103. package/reference.md +81 -0
  104. package/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -1
  105. package/serialization/resources/files/client/requests/CreateFileRestInputV1.js +0 -1
  106. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -1
  107. package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -0
  108. package/serialization/resources/sessions/types/SessionsEventsResponseFileEvent.d.ts +15 -0
  109. package/serialization/resources/sessions/types/SessionsEventsResponseFileEvent.js +46 -0
  110. package/serialization/resources/sessions/types/index.d.ts +1 -0
  111. package/serialization/resources/sessions/types/index.js +1 -0
  112. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  113. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  114. package/serialization/resources/windows/client/requests/index.d.ts +1 -0
  115. package/serialization/resources/windows/client/requests/index.js +3 -1
  116. package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  117. package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  118. package/serialization/types/CreateFileV1.d.ts +2 -1
  119. package/serialization/types/CreateFileV1.js +2 -1
  120. package/serialization/types/CreateFileV1Status.d.ts +10 -0
  121. package/serialization/types/CreateFileV1Status.js +41 -0
  122. package/serialization/types/ExternalFile.d.ts +1 -0
  123. package/serialization/types/ExternalFile.js +1 -0
  124. package/serialization/types/FileEventMessage.d.ts +16 -0
  125. package/serialization/types/FileEventMessage.js +47 -0
  126. package/serialization/types/FileEventMessageStatus.d.ts +10 -0
  127. package/serialization/types/FileEventMessageStatus.js +41 -0
  128. package/serialization/types/GetFileV1.d.ts +3 -1
  129. package/serialization/types/GetFileV1.js +3 -1
  130. package/serialization/types/GetFileV1Status.d.ts +10 -0
  131. package/serialization/types/GetFileV1Status.js +41 -0
  132. package/serialization/types/index.d.ts +5 -0
  133. package/serialization/types/index.js +5 -0
  134. package/version.d.ts +1 -1
  135. package/version.js +1 -1
  136. package/wrapper/AirtopFiles.d.ts +12 -0
  137. package/wrapper/AirtopFiles.js +31 -2
  138. package/wrapper/AirtopRequests.js +1 -1
  139. package/wrapper/AirtopSessions.d.ts +39 -0
  140. package/wrapper/AirtopSessions.js +219 -17
  141. package/wrapper/AirtopWindows.d.ts +26 -0
  142. package/wrapper/AirtopWindows.js +40 -0
@@ -73,7 +73,7 @@ class Automations {
73
73
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
74
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "automations"),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -135,7 +135,7 @@ class Automations {
135
135
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
136
136
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "automations/description"),
137
137
  method: "PUT",
138
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
139
  contentType: "application/json",
140
140
  requestType: "json",
141
141
  body: serializers.UpdateAutomationDescriptionInputBody.jsonOrThrow(request, {
@@ -239,7 +239,7 @@ class Automations {
239
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
240
240
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `automations/${encodeURIComponent(automationId)}`),
241
241
  method: "GET",
242
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -340,7 +340,7 @@ class Automations {
340
340
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
341
341
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `automations/${encodeURIComponent(automationId)}`),
342
342
  method: "DELETE",
343
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
343
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
344
344
  contentType: "application/json",
345
345
  requestType: "json",
346
346
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -92,7 +92,7 @@ class Files {
92
92
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
93
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "files"),
94
94
  method: "GET",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -145,7 +145,7 @@ class Files {
145
145
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
146
146
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "files"),
147
147
  method: "POST",
148
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
148
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.CreateFileRestInputV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -196,7 +196,7 @@ class Files {
196
196
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
197
197
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `files/${encodeURIComponent(id)}`),
198
198
  method: "GET",
199
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -246,7 +246,7 @@ class Files {
246
246
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
247
247
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `files/${encodeURIComponent(id)}`),
248
248
  method: "DELETE",
249
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -15,8 +15,6 @@ export interface CreateFileRestInputV1 {
15
15
  fileType?: Airtop.CreateFileRestInputV1FileType;
16
16
  /** File ID. Must be unique. Leave blank to get one generated for you */
17
17
  id?: string;
18
- /** DEPRECATED: Use sessionIds instead */
19
- sessionId?: string;
20
18
  /** IDs of the associated sessions */
21
19
  sessionIds?: string[];
22
20
  }
@@ -90,7 +90,7 @@ class Profiles {
90
90
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
91
91
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "profiles"),
92
92
  method: "DELETE",
93
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -71,7 +71,7 @@ class Requests {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `requests/${encodeURIComponent(requestId)}/status`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -102,7 +102,7 @@ class Sessions {
102
102
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
103
103
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "sessions"),
104
104
  method: "GET",
105
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
106
  contentType: "application/json",
107
107
  queryParameters: _queryParams,
108
108
  requestType: "json",
@@ -180,7 +180,7 @@ class Sessions {
180
180
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
181
181
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "sessions"),
182
182
  method: "POST",
183
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
184
184
  contentType: "application/json",
185
185
  requestType: "json",
186
186
  body: serializers.SessionRestInputV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Sessions {
237
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
238
238
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(id)}`),
239
239
  method: "GET",
240
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -316,7 +316,7 @@ class Sessions {
316
316
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
317
317
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(id)}`),
318
318
  method: "DELETE",
319
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
319
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
320
320
  contentType: "application/json",
321
321
  requestType: "json",
322
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -364,7 +364,7 @@ class Sessions {
364
364
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
365
365
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(id)}/events`),
366
366
  method: "GET",
367
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
367
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
368
368
  contentType: "application/json",
369
369
  queryParameters: _queryParams,
370
370
  requestType: "json",
@@ -454,7 +454,7 @@ class Sessions {
454
454
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
455
455
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-profile-on-termination/${encodeURIComponent(profileName)}`),
456
456
  method: "PUT",
457
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
457
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta0", "User-Agent": "@airtop/sdk/0.1.37-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
458
458
  contentType: "application/json",
459
459
  requestType: "json",
460
460
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -5,7 +5,7 @@ import * as Airtop from "../../../index";
5
5
  /**
6
6
  * Each oneOf object in the array represents one possible Server Sent Events (SSE) message, serialized as UTF-8 text according to the SSE specification.
7
7
  */
8
- export type SessionsEventsResponse = Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent;
8
+ export type SessionsEventsResponse = Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.FileEvent;
9
9
  export declare namespace SessionsEventsResponse {
10
10
  interface Status extends Airtop.SessionsEventsResponseStatus {
11
11
  event: "status";
@@ -19,4 +19,7 @@ export declare namespace SessionsEventsResponse {
19
19
  interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
20
20
  event: "sessionEvent";
21
21
  }
22
+ interface FileEvent extends Airtop.SessionsEventsResponseFileEvent {
23
+ event: "fileEvent";
24
+ }
22
25
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../../../index";
5
+ export interface SessionsEventsResponseFileEvent {
6
+ data: Airtop.FileEventMessage;
7
+ /** The event ID. */
8
+ id?: number;
9
+ /** The retry time in milliseconds. */
10
+ retry?: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,4 +3,5 @@ export * from "./SessionsEventsResponseStatus";
3
3
  export * from "./SessionsEventsResponseError";
4
4
  export * from "./SessionsEventsResponseWindowEvent";
5
5
  export * from "./SessionsEventsResponseSessionEvent";
6
+ export * from "./SessionsEventsResponseFileEvent";
6
7
  export * from "./SessionsEventsResponse";
@@ -19,4 +19,5 @@ __exportStar(require("./SessionsEventsResponseStatus"), exports);
19
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
20
20
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
21
  __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
+ __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
22
23
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -306,6 +306,20 @@ export declare class Windows {
306
306
  * })
307
307
  */
308
308
  monitor(sessionId: string, windowId: string, request: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
309
+ /**
310
+ * Prompt OpenAI Operator
311
+ *
312
+ * @param {string} sessionId - ID of the session that owns the window.
313
+ * @param {string} windowId - Airtop window ID of the browser window.
314
+ * @param {Airtop.OperatorPromptV1Body} request
315
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
316
+ *
317
+ * @example
318
+ * await client.windows.operatorPrompt("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
319
+ * prompt: "What is the latest news about OpenAI?"
320
+ * })
321
+ */
322
+ operatorPrompt(sessionId: string, windowId: string, request: Airtop.OperatorPromptV1Body, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncOperatorPromptResponseEnvelope>;
309
323
  /**
310
324
  * Submit a prompt that queries the content of a specific browser window. You may extract content from the page, or ask a question about the page and allow the AI to answer it (ex. Is the user logged in?).
311
325
  *