@airtop/sdk 0.0.4
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/Client.d.ts +33 -0
- package/Client.js +22 -0
- package/README.md +135 -0
- package/api/errors/InternalServerError.d.ts +8 -0
- package/api/errors/InternalServerError.js +41 -0
- package/api/errors/NotFoundError.d.ts +8 -0
- package/api/errors/NotFoundError.js +41 -0
- package/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/api/errors/UnprocessableEntityError.js +41 -0
- package/api/errors/index.d.ts +3 -0
- package/api/errors/index.js +19 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/resources/index.d.ts +5 -0
- package/api/resources/index.js +34 -0
- package/api/resources/profiles/client/Client.d.ts +66 -0
- package/api/resources/profiles/client/Client.js +296 -0
- package/api/resources/profiles/client/index.d.ts +1 -0
- package/api/resources/profiles/client/index.js +17 -0
- package/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +19 -0
- package/api/resources/profiles/client/requests/ProfilesDeleteRequest.js +5 -0
- package/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +19 -0
- package/api/resources/profiles/client/requests/ProfilesGetRequest.js +5 -0
- package/api/resources/profiles/client/requests/index.d.ts +2 -0
- package/api/resources/profiles/client/requests/index.js +2 -0
- package/api/resources/profiles/index.d.ts +1 -0
- package/api/resources/profiles/index.js +17 -0
- package/api/resources/sessions/client/Client.d.ts +132 -0
- package/api/resources/sessions/client/Client.js +788 -0
- package/api/resources/sessions/client/index.d.ts +1 -0
- package/api/resources/sessions/client/index.js +17 -0
- package/api/resources/sessions/client/requests/CreateLiveViewUrlRequest.d.ts +20 -0
- package/api/resources/sessions/client/requests/CreateLiveViewUrlRequest.js +5 -0
- package/api/resources/sessions/client/requests/SessionPromptContentRequest.d.ts +15 -0
- package/api/resources/sessions/client/requests/SessionPromptContentRequest.js +5 -0
- package/api/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.d.ts +15 -0
- package/api/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.js +5 -0
- package/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +14 -0
- package/api/resources/sessions/client/requests/SessionRestInputV1.js +5 -0
- package/api/resources/sessions/client/requests/SessionsListRequest.d.ts +13 -0
- package/api/resources/sessions/client/requests/SessionsListRequest.js +5 -0
- package/api/resources/sessions/client/requests/index.d.ts +5 -0
- package/api/resources/sessions/client/requests/index.js +2 -0
- package/api/resources/sessions/index.d.ts +2 -0
- package/api/resources/sessions/index.js +18 -0
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +16 -0
- package/api/resources/sessions/types/SessionsEventsResponse.js +5 -0
- package/api/resources/sessions/types/SessionsEventsResponseError.d.ts +11 -0
- package/api/resources/sessions/types/SessionsEventsResponseError.js +5 -0
- package/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +11 -0
- package/api/resources/sessions/types/SessionsEventsResponseStatus.js +5 -0
- package/api/resources/sessions/types/index.d.ts +3 -0
- package/api/resources/sessions/types/index.js +19 -0
- package/api/types/CleanScrapeResponse.d.ts +12 -0
- package/api/types/CleanScrapeResponse.js +5 -0
- package/api/types/CleanScrapeResponseData.d.ts +10 -0
- package/api/types/CleanScrapeResponseData.js +5 -0
- package/api/types/CleanScrapeResponseDataStatus.d.ts +12 -0
- package/api/types/CleanScrapeResponseDataStatus.js +11 -0
- package/api/types/CleanScrapeResponseOutput.d.ts +12 -0
- package/api/types/CleanScrapeResponseOutput.js +5 -0
- package/api/types/ConnectionInfo.d.ts +14 -0
- package/api/types/ConnectionInfo.js +5 -0
- package/api/types/ErrorDetail.d.ts +10 -0
- package/api/types/ErrorDetail.js +5 -0
- package/api/types/ErrorMessage.d.ts +11 -0
- package/api/types/ErrorMessage.js +5 -0
- package/api/types/ErrorModel.d.ts +20 -0
- package/api/types/ErrorModel.js +5 -0
- package/api/types/LiveViewConnectionInfo.d.ts +9 -0
- package/api/types/LiveViewConnectionInfo.js +5 -0
- package/api/types/LiveViewUrlOutputV1Body.d.ts +9 -0
- package/api/types/LiveViewUrlOutputV1Body.js +5 -0
- package/api/types/ProfileOutputV1Body.d.ts +10 -0
- package/api/types/ProfileOutputV1Body.js +5 -0
- package/api/types/ProfileV1.d.ts +13 -0
- package/api/types/ProfileV1.js +5 -0
- package/api/types/ProfilesOutputV1Body.d.ts +9 -0
- package/api/types/ProfilesOutputV1Body.js +5 -0
- package/api/types/ScrapeResponseContent.d.ts +9 -0
- package/api/types/ScrapeResponseContent.js +5 -0
- package/api/types/Session.d.ts +20 -0
- package/api/types/Session.js +5 -0
- package/api/types/SessionAiResponse.d.ts +16 -0
- package/api/types/SessionAiResponse.js +5 -0
- package/api/types/SessionAiResponseData.d.ts +10 -0
- package/api/types/SessionAiResponseData.js +5 -0
- package/api/types/SessionAiResponseDataStatus.d.ts +12 -0
- package/api/types/SessionAiResponseDataStatus.js +11 -0
- package/api/types/SessionAiResponseIssue.d.ts +11 -0
- package/api/types/SessionAiResponseIssue.js +5 -0
- package/api/types/SessionAiResponseMetadata.d.ts +8 -0
- package/api/types/SessionAiResponseMetadata.js +5 -0
- package/api/types/SessionAiResponseMetadataUsage.d.ts +9 -0
- package/api/types/SessionAiResponseMetadataUsage.js +5 -0
- package/api/types/SessionConfig.d.ts +17 -0
- package/api/types/SessionConfig.js +5 -0
- package/api/types/SessionConfigV1.d.ts +17 -0
- package/api/types/SessionConfigV1.js +5 -0
- package/api/types/SessionOutputV1Body.d.ts +12 -0
- package/api/types/SessionOutputV1Body.js +5 -0
- package/api/types/SessionWithConnectionInfo.d.ts +10 -0
- package/api/types/SessionWithConnectionInfo.js +5 -0
- package/api/types/SessionsOutputV1Body.d.ts +10 -0
- package/api/types/SessionsOutputV1Body.js +5 -0
- package/api/types/StatusMessage.d.ts +14 -0
- package/api/types/StatusMessage.js +5 -0
- package/api/types/StatusMessageStatus.d.ts +13 -0
- package/api/types/StatusMessageStatus.js +12 -0
- package/api/types/index.d.ts +28 -0
- package/api/types/index.js +44 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +39 -0
- package/core/fetcher/Fetcher.js +99 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +12 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +52 -0
- package/core/fetcher/index.d.ts +5 -0
- package/core/fetcher/index.js +9 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +245 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +227 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/core/index.d.ts +4 -0
- package/core/index.js +33 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +9 -0
- package/core/runtime/runtime.js +93 -0
- package/core/schemas/Schema.d.ts +84 -0
- package/core/schemas/Schema.js +21 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +13 -0
- package/core/schemas/builders/index.js +29 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +25 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +55 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +2 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +6 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +233 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +26 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +95 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +44 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +4 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +130 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/core/streaming-fetcher/Stream.d.ts +48 -0
- package/core/streaming-fetcher/Stream.js +170 -0
- package/core/streaming-fetcher/index.d.ts +1 -0
- package/core/streaming-fetcher/index.js +5 -0
- package/dist/Client.d.ts +33 -0
- package/dist/Client.js +22 -0
- package/dist/api/errors/InternalServerError.d.ts +8 -0
- package/dist/api/errors/InternalServerError.js +41 -0
- package/dist/api/errors/NotFoundError.d.ts +8 -0
- package/dist/api/errors/NotFoundError.js +41 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/errors/UnprocessableEntityError.js +41 -0
- package/dist/api/errors/index.d.ts +3 -0
- package/dist/api/errors/index.js +19 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/index.d.ts +5 -0
- package/dist/api/resources/index.js +34 -0
- package/dist/api/resources/profiles/client/Client.d.ts +66 -0
- package/dist/api/resources/profiles/client/Client.js +296 -0
- package/dist/api/resources/profiles/client/index.d.ts +1 -0
- package/dist/api/resources/profiles/client/index.js +17 -0
- package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +19 -0
- package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.js +5 -0
- package/dist/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +19 -0
- package/dist/api/resources/profiles/client/requests/ProfilesGetRequest.js +5 -0
- package/dist/api/resources/profiles/client/requests/index.d.ts +2 -0
- package/dist/api/resources/profiles/client/requests/index.js +2 -0
- package/dist/api/resources/profiles/index.d.ts +1 -0
- package/dist/api/resources/profiles/index.js +17 -0
- package/dist/api/resources/sessions/client/Client.d.ts +132 -0
- package/dist/api/resources/sessions/client/Client.js +788 -0
- package/dist/api/resources/sessions/client/index.d.ts +1 -0
- package/dist/api/resources/sessions/client/index.js +17 -0
- package/dist/api/resources/sessions/client/requests/CreateLiveViewUrlRequest.d.ts +20 -0
- package/dist/api/resources/sessions/client/requests/CreateLiveViewUrlRequest.js +5 -0
- package/dist/api/resources/sessions/client/requests/SessionPromptContentRequest.d.ts +15 -0
- package/dist/api/resources/sessions/client/requests/SessionPromptContentRequest.js +5 -0
- package/dist/api/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.d.ts +15 -0
- package/dist/api/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.js +5 -0
- package/dist/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +14 -0
- package/dist/api/resources/sessions/client/requests/SessionRestInputV1.js +5 -0
- package/dist/api/resources/sessions/client/requests/SessionsListRequest.d.ts +13 -0
- package/dist/api/resources/sessions/client/requests/SessionsListRequest.js +5 -0
- package/dist/api/resources/sessions/client/requests/index.d.ts +5 -0
- package/dist/api/resources/sessions/client/requests/index.js +2 -0
- package/dist/api/resources/sessions/index.d.ts +2 -0
- package/dist/api/resources/sessions/index.js +18 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +16 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponse.js +5 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponseError.d.ts +11 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponseError.js +5 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +11 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.js +5 -0
- package/dist/api/resources/sessions/types/index.d.ts +3 -0
- package/dist/api/resources/sessions/types/index.js +19 -0
- package/dist/api/types/CleanScrapeResponse.d.ts +12 -0
- package/dist/api/types/CleanScrapeResponse.js +5 -0
- package/dist/api/types/CleanScrapeResponseData.d.ts +10 -0
- package/dist/api/types/CleanScrapeResponseData.js +5 -0
- package/dist/api/types/CleanScrapeResponseDataStatus.d.ts +12 -0
- package/dist/api/types/CleanScrapeResponseDataStatus.js +11 -0
- package/dist/api/types/CleanScrapeResponseOutput.d.ts +12 -0
- package/dist/api/types/CleanScrapeResponseOutput.js +5 -0
- package/dist/api/types/ConnectionInfo.d.ts +14 -0
- package/dist/api/types/ConnectionInfo.js +5 -0
- package/dist/api/types/ErrorDetail.d.ts +10 -0
- package/dist/api/types/ErrorDetail.js +5 -0
- package/dist/api/types/ErrorMessage.d.ts +11 -0
- package/dist/api/types/ErrorMessage.js +5 -0
- package/dist/api/types/ErrorModel.d.ts +20 -0
- package/dist/api/types/ErrorModel.js +5 -0
- package/dist/api/types/LiveViewConnectionInfo.d.ts +9 -0
- package/dist/api/types/LiveViewConnectionInfo.js +5 -0
- package/dist/api/types/LiveViewUrlOutputV1Body.d.ts +9 -0
- package/dist/api/types/LiveViewUrlOutputV1Body.js +5 -0
- package/dist/api/types/ProfileOutputV1Body.d.ts +10 -0
- package/dist/api/types/ProfileOutputV1Body.js +5 -0
- package/dist/api/types/ProfileV1.d.ts +13 -0
- package/dist/api/types/ProfileV1.js +5 -0
- package/dist/api/types/ProfilesOutputV1Body.d.ts +9 -0
- package/dist/api/types/ProfilesOutputV1Body.js +5 -0
- package/dist/api/types/ScrapeResponseContent.d.ts +9 -0
- package/dist/api/types/ScrapeResponseContent.js +5 -0
- package/dist/api/types/Session.d.ts +20 -0
- package/dist/api/types/Session.js +5 -0
- package/dist/api/types/SessionAiResponse.d.ts +16 -0
- package/dist/api/types/SessionAiResponse.js +5 -0
- package/dist/api/types/SessionAiResponseData.d.ts +10 -0
- package/dist/api/types/SessionAiResponseData.js +5 -0
- package/dist/api/types/SessionAiResponseDataStatus.d.ts +12 -0
- package/dist/api/types/SessionAiResponseDataStatus.js +11 -0
- package/dist/api/types/SessionAiResponseIssue.d.ts +11 -0
- package/dist/api/types/SessionAiResponseIssue.js +5 -0
- package/dist/api/types/SessionAiResponseMetadata.d.ts +8 -0
- package/dist/api/types/SessionAiResponseMetadata.js +5 -0
- package/dist/api/types/SessionAiResponseMetadataUsage.d.ts +9 -0
- package/dist/api/types/SessionAiResponseMetadataUsage.js +5 -0
- package/dist/api/types/SessionConfig.d.ts +17 -0
- package/dist/api/types/SessionConfig.js +5 -0
- package/dist/api/types/SessionConfigV1.d.ts +17 -0
- package/dist/api/types/SessionConfigV1.js +5 -0
- package/dist/api/types/SessionOutputV1Body.d.ts +12 -0
- package/dist/api/types/SessionOutputV1Body.js +5 -0
- package/dist/api/types/SessionWithConnectionInfo.d.ts +10 -0
- package/dist/api/types/SessionWithConnectionInfo.js +5 -0
- package/dist/api/types/SessionsOutputV1Body.d.ts +10 -0
- package/dist/api/types/SessionsOutputV1Body.js +5 -0
- package/dist/api/types/StatusMessage.d.ts +14 -0
- package/dist/api/types/StatusMessage.js +5 -0
- package/dist/api/types/StatusMessageStatus.d.ts +13 -0
- package/dist/api/types/StatusMessageStatus.js +12 -0
- package/dist/api/types/index.d.ts +28 -0
- package/dist/api/types/index.js +44 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +39 -0
- package/dist/core/fetcher/Fetcher.js +99 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +52 -0
- package/dist/core/fetcher/index.d.ts +5 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +245 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +227 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +33 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +93 -0
- package/dist/core/schemas/Schema.d.ts +84 -0
- package/dist/core/schemas/Schema.js +21 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +13 -0
- package/dist/core/schemas/builders/index.js +29 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +25 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +55 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +233 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +95 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +44 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +130 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/core/streaming-fetcher/Stream.d.ts +48 -0
- package/dist/core/streaming-fetcher/Stream.js +170 -0
- package/dist/core/streaming-fetcher/index.d.ts +1 -0
- package/dist/core/streaming-fetcher/index.js +5 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/AirtopError.d.ts +12 -0
- package/dist/errors/AirtopError.js +32 -0
- package/dist/errors/AirtopTimeoutError.d.ts +6 -0
- package/dist/errors/AirtopTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -0
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +32 -0
- package/dist/serialization/resources/sessions/client/index.d.ts +1 -0
- package/dist/serialization/resources/sessions/client/index.js +17 -0
- package/dist/serialization/resources/sessions/client/requests/SessionPromptContentRequest.d.ts +13 -0
- package/dist/serialization/resources/sessions/client/requests/SessionPromptContentRequest.js +34 -0
- package/dist/serialization/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.d.ts +13 -0
- package/dist/serialization/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.js +34 -0
- package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +14 -0
- package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.js +35 -0
- package/dist/serialization/resources/sessions/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/sessions/client/requests/index.js +9 -0
- package/dist/serialization/resources/sessions/index.d.ts +2 -0
- package/dist/serialization/resources/sessions/index.js +18 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +18 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +41 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +15 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.js +36 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +15 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +36 -0
- package/dist/serialization/resources/sessions/types/index.d.ts +3 -0
- package/dist/serialization/resources/sessions/types/index.js +19 -0
- package/dist/serialization/types/CleanScrapeResponse.d.ts +16 -0
- package/dist/serialization/types/CleanScrapeResponse.js +37 -0
- package/dist/serialization/types/CleanScrapeResponseData.d.ts +15 -0
- package/dist/serialization/types/CleanScrapeResponseData.js +36 -0
- package/dist/serialization/types/CleanScrapeResponseDataStatus.d.ts +10 -0
- package/dist/serialization/types/CleanScrapeResponseDataStatus.js +31 -0
- package/dist/serialization/types/CleanScrapeResponseOutput.d.ts +15 -0
- package/dist/serialization/types/CleanScrapeResponseOutput.js +36 -0
- package/dist/serialization/types/ConnectionInfo.d.ts +16 -0
- package/dist/serialization/types/ConnectionInfo.js +37 -0
- package/dist/serialization/types/ErrorDetail.d.ts +14 -0
- package/dist/serialization/types/ErrorDetail.js +35 -0
- package/dist/serialization/types/ErrorMessage.d.ts +14 -0
- package/dist/serialization/types/ErrorMessage.js +35 -0
- package/dist/serialization/types/ErrorModel.d.ts +19 -0
- package/dist/serialization/types/ErrorModel.js +40 -0
- package/dist/serialization/types/LiveViewConnectionInfo.d.ts +13 -0
- package/dist/serialization/types/LiveViewConnectionInfo.js +34 -0
- package/dist/serialization/types/LiveViewUrlOutputV1Body.d.ts +13 -0
- package/dist/serialization/types/LiveViewUrlOutputV1Body.js +34 -0
- package/dist/serialization/types/ProfileOutputV1Body.d.ts +14 -0
- package/dist/serialization/types/ProfileOutputV1Body.js +35 -0
- package/dist/serialization/types/ProfileV1.d.ts +15 -0
- package/dist/serialization/types/ProfileV1.js +36 -0
- package/dist/serialization/types/ProfilesOutputV1Body.d.ts +14 -0
- package/dist/serialization/types/ProfilesOutputV1Body.js +35 -0
- package/dist/serialization/types/ScrapeResponseContent.d.ts +13 -0
- package/dist/serialization/types/ScrapeResponseContent.js +34 -0
- package/dist/serialization/types/Session.d.ts +19 -0
- package/dist/serialization/types/Session.js +40 -0
- package/dist/serialization/types/SessionAiResponse.d.ts +19 -0
- package/dist/serialization/types/SessionAiResponse.js +40 -0
- package/dist/serialization/types/SessionAiResponseData.d.ts +14 -0
- package/dist/serialization/types/SessionAiResponseData.js +35 -0
- package/dist/serialization/types/SessionAiResponseDataStatus.d.ts +10 -0
- package/dist/serialization/types/SessionAiResponseDataStatus.js +31 -0
- package/dist/serialization/types/SessionAiResponseIssue.d.ts +14 -0
- package/dist/serialization/types/SessionAiResponseIssue.js +35 -0
- package/dist/serialization/types/SessionAiResponseMetadata.d.ts +13 -0
- package/dist/serialization/types/SessionAiResponseMetadata.js +34 -0
- package/dist/serialization/types/SessionAiResponseMetadataUsage.d.ts +13 -0
- package/dist/serialization/types/SessionAiResponseMetadataUsage.js +34 -0
- package/dist/serialization/types/SessionConfig.d.ts +17 -0
- package/dist/serialization/types/SessionConfig.js +38 -0
- package/dist/serialization/types/SessionConfigV1.d.ts +17 -0
- package/dist/serialization/types/SessionConfigV1.js +38 -0
- package/dist/serialization/types/SessionOutputV1Body.d.ts +16 -0
- package/dist/serialization/types/SessionOutputV1Body.js +37 -0
- package/dist/serialization/types/SessionWithConnectionInfo.d.ts +15 -0
- package/dist/serialization/types/SessionWithConnectionInfo.js +36 -0
- package/dist/serialization/types/SessionsOutputV1Body.d.ts +14 -0
- package/dist/serialization/types/SessionsOutputV1Body.js +35 -0
- package/dist/serialization/types/StatusMessage.d.ts +16 -0
- package/dist/serialization/types/StatusMessage.js +37 -0
- package/dist/serialization/types/StatusMessageStatus.d.ts +10 -0
- package/dist/serialization/types/StatusMessageStatus.js +31 -0
- package/dist/serialization/types/index.d.ts +28 -0
- package/dist/serialization/types/index.js +44 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/AirtopError.d.ts +12 -0
- package/errors/AirtopError.js +32 -0
- package/errors/AirtopTimeoutError.d.ts +6 -0
- package/errors/AirtopTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/jest.config.js +5 -0
- package/package.json +39 -0
- package/reference.md +812 -0
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +32 -0
- package/serialization/resources/sessions/client/index.d.ts +1 -0
- package/serialization/resources/sessions/client/index.js +17 -0
- package/serialization/resources/sessions/client/requests/SessionPromptContentRequest.d.ts +13 -0
- package/serialization/resources/sessions/client/requests/SessionPromptContentRequest.js +34 -0
- package/serialization/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.d.ts +13 -0
- package/serialization/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.js +34 -0
- package/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +14 -0
- package/serialization/resources/sessions/client/requests/SessionRestInputV1.js +35 -0
- package/serialization/resources/sessions/client/requests/index.d.ts +3 -0
- package/serialization/resources/sessions/client/requests/index.js +9 -0
- package/serialization/resources/sessions/index.d.ts +2 -0
- package/serialization/resources/sessions/index.js +18 -0
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +18 -0
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +41 -0
- package/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +15 -0
- package/serialization/resources/sessions/types/SessionsEventsResponseError.js +36 -0
- package/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +15 -0
- package/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +36 -0
- package/serialization/resources/sessions/types/index.d.ts +3 -0
- package/serialization/resources/sessions/types/index.js +19 -0
- package/serialization/types/CleanScrapeResponse.d.ts +16 -0
- package/serialization/types/CleanScrapeResponse.js +37 -0
- package/serialization/types/CleanScrapeResponseData.d.ts +15 -0
- package/serialization/types/CleanScrapeResponseData.js +36 -0
- package/serialization/types/CleanScrapeResponseDataStatus.d.ts +10 -0
- package/serialization/types/CleanScrapeResponseDataStatus.js +31 -0
- package/serialization/types/CleanScrapeResponseOutput.d.ts +15 -0
- package/serialization/types/CleanScrapeResponseOutput.js +36 -0
- package/serialization/types/ConnectionInfo.d.ts +16 -0
- package/serialization/types/ConnectionInfo.js +37 -0
- package/serialization/types/ErrorDetail.d.ts +14 -0
- package/serialization/types/ErrorDetail.js +35 -0
- package/serialization/types/ErrorMessage.d.ts +14 -0
- package/serialization/types/ErrorMessage.js +35 -0
- package/serialization/types/ErrorModel.d.ts +19 -0
- package/serialization/types/ErrorModel.js +40 -0
- package/serialization/types/LiveViewConnectionInfo.d.ts +13 -0
- package/serialization/types/LiveViewConnectionInfo.js +34 -0
- package/serialization/types/LiveViewUrlOutputV1Body.d.ts +13 -0
- package/serialization/types/LiveViewUrlOutputV1Body.js +34 -0
- package/serialization/types/ProfileOutputV1Body.d.ts +14 -0
- package/serialization/types/ProfileOutputV1Body.js +35 -0
- package/serialization/types/ProfileV1.d.ts +15 -0
- package/serialization/types/ProfileV1.js +36 -0
- package/serialization/types/ProfilesOutputV1Body.d.ts +14 -0
- package/serialization/types/ProfilesOutputV1Body.js +35 -0
- package/serialization/types/ScrapeResponseContent.d.ts +13 -0
- package/serialization/types/ScrapeResponseContent.js +34 -0
- package/serialization/types/Session.d.ts +19 -0
- package/serialization/types/Session.js +40 -0
- package/serialization/types/SessionAiResponse.d.ts +19 -0
- package/serialization/types/SessionAiResponse.js +40 -0
- package/serialization/types/SessionAiResponseData.d.ts +14 -0
- package/serialization/types/SessionAiResponseData.js +35 -0
- package/serialization/types/SessionAiResponseDataStatus.d.ts +10 -0
- package/serialization/types/SessionAiResponseDataStatus.js +31 -0
- package/serialization/types/SessionAiResponseIssue.d.ts +14 -0
- package/serialization/types/SessionAiResponseIssue.js +35 -0
- package/serialization/types/SessionAiResponseMetadata.d.ts +13 -0
- package/serialization/types/SessionAiResponseMetadata.js +34 -0
- package/serialization/types/SessionAiResponseMetadataUsage.d.ts +13 -0
- package/serialization/types/SessionAiResponseMetadataUsage.js +34 -0
- package/serialization/types/SessionConfig.d.ts +17 -0
- package/serialization/types/SessionConfig.js +38 -0
- package/serialization/types/SessionConfigV1.d.ts +17 -0
- package/serialization/types/SessionConfigV1.js +38 -0
- package/serialization/types/SessionOutputV1Body.d.ts +16 -0
- package/serialization/types/SessionOutputV1Body.js +37 -0
- package/serialization/types/SessionWithConnectionInfo.d.ts +15 -0
- package/serialization/types/SessionWithConnectionInfo.js +36 -0
- package/serialization/types/SessionsOutputV1Body.d.ts +14 -0
- package/serialization/types/SessionsOutputV1Body.js +35 -0
- package/serialization/types/StatusMessage.d.ts +16 -0
- package/serialization/types/StatusMessage.js +37 -0
- package/serialization/types/StatusMessageStatus.d.ts +10 -0
- package/serialization/types/StatusMessageStatus.js +31 -0
- package/serialization/types/index.d.ts +28 -0
- package/serialization/types/index.js +44 -0
package/dist/Client.d.ts
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as environments from "./environments";
|
5
|
+
import * as core from "./core";
|
6
|
+
import { Profiles } from "./api/resources/profiles/client/Client";
|
7
|
+
import { Sessions } from "./api/resources/sessions/client/Client";
|
8
|
+
export declare namespace AirtopClient {
|
9
|
+
interface Options {
|
10
|
+
environment?: core.Supplier<environments.AirtopEnvironment | string>;
|
11
|
+
/** Override the x-airtop-token header */
|
12
|
+
airtopToken?: core.Supplier<string | undefined>;
|
13
|
+
fetcher?: core.FetchFunction;
|
14
|
+
}
|
15
|
+
interface RequestOptions {
|
16
|
+
/** The maximum time to wait for a response in seconds. */
|
17
|
+
timeoutInSeconds?: number;
|
18
|
+
/** The number of times to retry the request. Defaults to 2. */
|
19
|
+
maxRetries?: number;
|
20
|
+
/** A hook to abort the request. */
|
21
|
+
abortSignal?: AbortSignal;
|
22
|
+
/** Override the x-airtop-token header */
|
23
|
+
airtopToken?: string | undefined;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
export declare class AirtopClient {
|
27
|
+
protected readonly _options: AirtopClient.Options;
|
28
|
+
constructor(_options?: AirtopClient.Options);
|
29
|
+
protected _profiles: Profiles | undefined;
|
30
|
+
get profiles(): Profiles;
|
31
|
+
protected _sessions: Sessions | undefined;
|
32
|
+
get sessions(): Sessions;
|
33
|
+
}
|
package/dist/Client.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.AirtopClient = void 0;
|
7
|
+
const Client_1 = require("./api/resources/profiles/client/Client");
|
8
|
+
const Client_2 = require("./api/resources/sessions/client/Client");
|
9
|
+
class AirtopClient {
|
10
|
+
constructor(_options = {}) {
|
11
|
+
this._options = _options;
|
12
|
+
}
|
13
|
+
get profiles() {
|
14
|
+
var _a;
|
15
|
+
return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_1.Profiles(this._options)));
|
16
|
+
}
|
17
|
+
get sessions() {
|
18
|
+
var _a;
|
19
|
+
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_2.Sessions(this._options)));
|
20
|
+
}
|
21
|
+
}
|
22
|
+
exports.AirtopClient = AirtopClient;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as errors from "../../errors/index";
|
5
|
+
import * as Airtop from "../index";
|
6
|
+
export declare class InternalServerError extends errors.AirtopError {
|
7
|
+
constructor(body: Airtop.ErrorModel);
|
8
|
+
}
|
@@ -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.InternalServerError = void 0;
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
31
|
+
class InternalServerError extends errors.AirtopError {
|
32
|
+
constructor(body) {
|
33
|
+
super({
|
34
|
+
message: "InternalServerError",
|
35
|
+
statusCode: 500,
|
36
|
+
body: body,
|
37
|
+
});
|
38
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
exports.InternalServerError = InternalServerError;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as errors from "../../errors/index";
|
5
|
+
import * as Airtop from "../index";
|
6
|
+
export declare class NotFoundError extends errors.AirtopError {
|
7
|
+
constructor(body: Airtop.ErrorModel);
|
8
|
+
}
|
@@ -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.NotFoundError = void 0;
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
31
|
+
class NotFoundError extends errors.AirtopError {
|
32
|
+
constructor(body) {
|
33
|
+
super({
|
34
|
+
message: "NotFoundError",
|
35
|
+
statusCode: 404,
|
36
|
+
body: body,
|
37
|
+
});
|
38
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
exports.NotFoundError = NotFoundError;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as errors from "../../errors/index";
|
5
|
+
import * as Airtop from "../index";
|
6
|
+
export declare class UnprocessableEntityError extends errors.AirtopError {
|
7
|
+
constructor(body: Airtop.ErrorModel);
|
8
|
+
}
|
@@ -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.UnprocessableEntityError = void 0;
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
31
|
+
class UnprocessableEntityError extends errors.AirtopError {
|
32
|
+
constructor(body) {
|
33
|
+
super({
|
34
|
+
message: "UnprocessableEntityError",
|
35
|
+
statusCode: 422,
|
36
|
+
body: body,
|
37
|
+
});
|
38
|
+
Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
exports.UnprocessableEntityError = UnprocessableEntityError;
|
@@ -0,0 +1,19 @@
|
|
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("./NotFoundError"), exports);
|
18
|
+
__exportStar(require("./UnprocessableEntityError"), exports);
|
19
|
+
__exportStar(require("./InternalServerError"), exports);
|
@@ -0,0 +1,19 @@
|
|
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("./resources"), exports);
|
18
|
+
__exportStar(require("./types"), exports);
|
19
|
+
__exportStar(require("./errors"), exports);
|
@@ -0,0 +1,34 @@
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.profiles = exports.sessions = void 0;
|
30
|
+
exports.sessions = __importStar(require("./sessions"));
|
31
|
+
__exportStar(require("./sessions/types"), exports);
|
32
|
+
exports.profiles = __importStar(require("./profiles"));
|
33
|
+
__exportStar(require("./profiles/client/requests"), exports);
|
34
|
+
__exportStar(require("./sessions/client/requests"), exports);
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as environments from "../../../../environments";
|
5
|
+
import * as core from "../../../../core";
|
6
|
+
import * as Airtop from "../../../index";
|
7
|
+
export declare namespace Profiles {
|
8
|
+
interface Options {
|
9
|
+
environment?: core.Supplier<environments.AirtopEnvironment | string>;
|
10
|
+
/** Override the x-airtop-token header */
|
11
|
+
airtopToken?: core.Supplier<string | undefined>;
|
12
|
+
fetcher?: core.FetchFunction;
|
13
|
+
}
|
14
|
+
interface RequestOptions {
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
16
|
+
timeoutInSeconds?: number;
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
18
|
+
maxRetries?: number;
|
19
|
+
/** A hook to abort the request. */
|
20
|
+
abortSignal?: AbortSignal;
|
21
|
+
/** Override the x-airtop-token header */
|
22
|
+
airtopToken?: string | undefined;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
export declare class Profiles {
|
26
|
+
protected readonly _options: Profiles.Options;
|
27
|
+
constructor(_options?: Profiles.Options);
|
28
|
+
/**
|
29
|
+
* Get profiles, searching by name or tags
|
30
|
+
*
|
31
|
+
* @param {Airtop.ProfilesGetRequest} request
|
32
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
33
|
+
*
|
34
|
+
* @example
|
35
|
+
* await client.profiles.get({
|
36
|
+
* name: "^Acme.*"
|
37
|
+
* })
|
38
|
+
*/
|
39
|
+
get(request?: Airtop.ProfilesGetRequest, requestOptions?: Profiles.RequestOptions): Promise<Airtop.ProfilesOutputV1Body>;
|
40
|
+
/**
|
41
|
+
* Delete profiles matching query
|
42
|
+
*
|
43
|
+
* @param {Airtop.ProfilesDeleteRequest} request
|
44
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
45
|
+
*
|
46
|
+
* @example
|
47
|
+
* await client.profiles.delete({
|
48
|
+
* name: "^Acme.*"
|
49
|
+
* })
|
50
|
+
*/
|
51
|
+
delete(request?: Airtop.ProfilesDeleteRequest, requestOptions?: Profiles.RequestOptions): Promise<void>;
|
52
|
+
/**
|
53
|
+
* Get a profile by ID
|
54
|
+
*
|
55
|
+
* @param {string} id - name of the profile to get
|
56
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
57
|
+
*
|
58
|
+
* @throws {@link Airtop.NotFoundError}
|
59
|
+
* @throws {@link Airtop.UnprocessableEntityError}
|
60
|
+
* @throws {@link Airtop.InternalServerError}
|
61
|
+
*
|
62
|
+
* @example
|
63
|
+
* await client.profiles.getById("4a61a55c-391b-4f73-957e-ffbd29ac7cba")
|
64
|
+
*/
|
65
|
+
getById(id: string, requestOptions?: Profiles.RequestOptions): Promise<Airtop.ProfileOutputV1Body>;
|
66
|
+
}
|
@@ -0,0 +1,296 @@
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
39
|
+
};
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
41
|
+
exports.Profiles = void 0;
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
43
|
+
const core = __importStar(require("../../../../core"));
|
44
|
+
const Airtop = __importStar(require("../../../index"));
|
45
|
+
const url_join_1 = __importDefault(require("url-join"));
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
48
|
+
class Profiles {
|
49
|
+
constructor(_options = {}) {
|
50
|
+
this._options = _options;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Get profiles, searching by name or tags
|
54
|
+
*
|
55
|
+
* @param {Airtop.ProfilesGetRequest} request
|
56
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
57
|
+
*
|
58
|
+
* @example
|
59
|
+
* await client.profiles.get({
|
60
|
+
* name: "^Acme.*"
|
61
|
+
* })
|
62
|
+
*/
|
63
|
+
get(request = {}, requestOptions) {
|
64
|
+
var _a, _b;
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
66
|
+
const { name, tags } = request;
|
67
|
+
const _queryParams = {};
|
68
|
+
if (name != null) {
|
69
|
+
_queryParams["name"] = name;
|
70
|
+
}
|
71
|
+
if (tags != null) {
|
72
|
+
if (Array.isArray(tags)) {
|
73
|
+
_queryParams["tags"] = tags.map((item) => item);
|
74
|
+
}
|
75
|
+
else {
|
76
|
+
_queryParams["tags"] = tags;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
80
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, "profiles"),
|
81
|
+
method: "GET",
|
82
|
+
headers: {
|
83
|
+
"x-airtop-token": (yield core.Supplier.get(this._options.airtopToken)) != null
|
84
|
+
? yield core.Supplier.get(this._options.airtopToken)
|
85
|
+
: undefined,
|
86
|
+
"X-Fern-Language": "JavaScript",
|
87
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
88
|
+
"X-Fern-SDK-Version": "0.0.4",
|
89
|
+
"User-Agent": "@airtop/sdk/0.0.4",
|
90
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
91
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
92
|
+
},
|
93
|
+
contentType: "application/json",
|
94
|
+
queryParameters: _queryParams,
|
95
|
+
requestType: "json",
|
96
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
97
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
98
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
99
|
+
});
|
100
|
+
if (_response.ok) {
|
101
|
+
return serializers.ProfilesOutputV1Body.parseOrThrow(_response.body, {
|
102
|
+
unrecognizedObjectKeys: "passthrough",
|
103
|
+
allowUnrecognizedUnionMembers: true,
|
104
|
+
allowUnrecognizedEnumValues: true,
|
105
|
+
skipValidation: true,
|
106
|
+
breadcrumbsPrefix: ["response"],
|
107
|
+
});
|
108
|
+
}
|
109
|
+
if (_response.error.reason === "status-code") {
|
110
|
+
throw new errors.AirtopError({
|
111
|
+
statusCode: _response.error.statusCode,
|
112
|
+
body: _response.error.body,
|
113
|
+
});
|
114
|
+
}
|
115
|
+
switch (_response.error.reason) {
|
116
|
+
case "non-json":
|
117
|
+
throw new errors.AirtopError({
|
118
|
+
statusCode: _response.error.statusCode,
|
119
|
+
body: _response.error.rawBody,
|
120
|
+
});
|
121
|
+
case "timeout":
|
122
|
+
throw new errors.AirtopTimeoutError();
|
123
|
+
case "unknown":
|
124
|
+
throw new errors.AirtopError({
|
125
|
+
message: _response.error.errorMessage,
|
126
|
+
});
|
127
|
+
}
|
128
|
+
});
|
129
|
+
}
|
130
|
+
/**
|
131
|
+
* Delete profiles matching query
|
132
|
+
*
|
133
|
+
* @param {Airtop.ProfilesDeleteRequest} request
|
134
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
135
|
+
*
|
136
|
+
* @example
|
137
|
+
* await client.profiles.delete({
|
138
|
+
* name: "^Acme.*"
|
139
|
+
* })
|
140
|
+
*/
|
141
|
+
delete(request = {}, requestOptions) {
|
142
|
+
var _a, _b;
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
144
|
+
const { name, tags } = request;
|
145
|
+
const _queryParams = {};
|
146
|
+
if (name != null) {
|
147
|
+
_queryParams["name"] = name;
|
148
|
+
}
|
149
|
+
if (tags != null) {
|
150
|
+
if (Array.isArray(tags)) {
|
151
|
+
_queryParams["tags"] = tags.map((item) => item);
|
152
|
+
}
|
153
|
+
else {
|
154
|
+
_queryParams["tags"] = tags;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
158
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, "profiles"),
|
159
|
+
method: "DELETE",
|
160
|
+
headers: {
|
161
|
+
"x-airtop-token": (yield core.Supplier.get(this._options.airtopToken)) != null
|
162
|
+
? yield core.Supplier.get(this._options.airtopToken)
|
163
|
+
: undefined,
|
164
|
+
"X-Fern-Language": "JavaScript",
|
165
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
166
|
+
"X-Fern-SDK-Version": "0.0.4",
|
167
|
+
"User-Agent": "@airtop/sdk/0.0.4",
|
168
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
169
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
170
|
+
},
|
171
|
+
contentType: "application/json",
|
172
|
+
queryParameters: _queryParams,
|
173
|
+
requestType: "json",
|
174
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
175
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
176
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
177
|
+
});
|
178
|
+
if (_response.ok) {
|
179
|
+
return;
|
180
|
+
}
|
181
|
+
if (_response.error.reason === "status-code") {
|
182
|
+
throw new errors.AirtopError({
|
183
|
+
statusCode: _response.error.statusCode,
|
184
|
+
body: _response.error.body,
|
185
|
+
});
|
186
|
+
}
|
187
|
+
switch (_response.error.reason) {
|
188
|
+
case "non-json":
|
189
|
+
throw new errors.AirtopError({
|
190
|
+
statusCode: _response.error.statusCode,
|
191
|
+
body: _response.error.rawBody,
|
192
|
+
});
|
193
|
+
case "timeout":
|
194
|
+
throw new errors.AirtopTimeoutError();
|
195
|
+
case "unknown":
|
196
|
+
throw new errors.AirtopError({
|
197
|
+
message: _response.error.errorMessage,
|
198
|
+
});
|
199
|
+
}
|
200
|
+
});
|
201
|
+
}
|
202
|
+
/**
|
203
|
+
* Get a profile by ID
|
204
|
+
*
|
205
|
+
* @param {string} id - name of the profile to get
|
206
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
207
|
+
*
|
208
|
+
* @throws {@link Airtop.NotFoundError}
|
209
|
+
* @throws {@link Airtop.UnprocessableEntityError}
|
210
|
+
* @throws {@link Airtop.InternalServerError}
|
211
|
+
*
|
212
|
+
* @example
|
213
|
+
* await client.profiles.getById("4a61a55c-391b-4f73-957e-ffbd29ac7cba")
|
214
|
+
*/
|
215
|
+
getById(id, requestOptions) {
|
216
|
+
var _a, _b;
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
218
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
219
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `profiles/${encodeURIComponent(id)}`),
|
220
|
+
method: "GET",
|
221
|
+
headers: {
|
222
|
+
"x-airtop-token": (yield core.Supplier.get(this._options.airtopToken)) != null
|
223
|
+
? yield core.Supplier.get(this._options.airtopToken)
|
224
|
+
: undefined,
|
225
|
+
"X-Fern-Language": "JavaScript",
|
226
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
227
|
+
"X-Fern-SDK-Version": "0.0.4",
|
228
|
+
"User-Agent": "@airtop/sdk/0.0.4",
|
229
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
230
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
231
|
+
},
|
232
|
+
contentType: "application/json",
|
233
|
+
requestType: "json",
|
234
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
235
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
236
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
237
|
+
});
|
238
|
+
if (_response.ok) {
|
239
|
+
return serializers.ProfileOutputV1Body.parseOrThrow(_response.body, {
|
240
|
+
unrecognizedObjectKeys: "passthrough",
|
241
|
+
allowUnrecognizedUnionMembers: true,
|
242
|
+
allowUnrecognizedEnumValues: true,
|
243
|
+
skipValidation: true,
|
244
|
+
breadcrumbsPrefix: ["response"],
|
245
|
+
});
|
246
|
+
}
|
247
|
+
if (_response.error.reason === "status-code") {
|
248
|
+
switch (_response.error.statusCode) {
|
249
|
+
case 404:
|
250
|
+
throw new Airtop.NotFoundError(serializers.ErrorModel.parseOrThrow(_response.error.body, {
|
251
|
+
unrecognizedObjectKeys: "passthrough",
|
252
|
+
allowUnrecognizedUnionMembers: true,
|
253
|
+
allowUnrecognizedEnumValues: true,
|
254
|
+
skipValidation: true,
|
255
|
+
breadcrumbsPrefix: ["response"],
|
256
|
+
}));
|
257
|
+
case 422:
|
258
|
+
throw new Airtop.UnprocessableEntityError(serializers.ErrorModel.parseOrThrow(_response.error.body, {
|
259
|
+
unrecognizedObjectKeys: "passthrough",
|
260
|
+
allowUnrecognizedUnionMembers: true,
|
261
|
+
allowUnrecognizedEnumValues: true,
|
262
|
+
skipValidation: true,
|
263
|
+
breadcrumbsPrefix: ["response"],
|
264
|
+
}));
|
265
|
+
case 500:
|
266
|
+
throw new Airtop.InternalServerError(serializers.ErrorModel.parseOrThrow(_response.error.body, {
|
267
|
+
unrecognizedObjectKeys: "passthrough",
|
268
|
+
allowUnrecognizedUnionMembers: true,
|
269
|
+
allowUnrecognizedEnumValues: true,
|
270
|
+
skipValidation: true,
|
271
|
+
breadcrumbsPrefix: ["response"],
|
272
|
+
}));
|
273
|
+
default:
|
274
|
+
throw new errors.AirtopError({
|
275
|
+
statusCode: _response.error.statusCode,
|
276
|
+
body: _response.error.body,
|
277
|
+
});
|
278
|
+
}
|
279
|
+
}
|
280
|
+
switch (_response.error.reason) {
|
281
|
+
case "non-json":
|
282
|
+
throw new errors.AirtopError({
|
283
|
+
statusCode: _response.error.statusCode,
|
284
|
+
body: _response.error.rawBody,
|
285
|
+
});
|
286
|
+
case "timeout":
|
287
|
+
throw new errors.AirtopTimeoutError();
|
288
|
+
case "unknown":
|
289
|
+
throw new errors.AirtopError({
|
290
|
+
message: _response.error.errorMessage,
|
291
|
+
});
|
292
|
+
}
|
293
|
+
});
|
294
|
+
}
|
295
|
+
}
|
296
|
+
exports.Profiles = Profiles;
|