@airweave/sdk 0.2.52 → 0.3.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -6
- package/dist/cjs/Client.d.ts +48 -0
- package/dist/cjs/Client.js +76 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +9 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +52 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +17 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/collections/client/Client.d.ts +158 -0
- package/dist/cjs/api/resources/collections/client/Client.js +537 -0
- package/dist/cjs/api/resources/collections/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/collections/client/index.js +17 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionCreate.d.ts +16 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionUpdate.d.ts +13 -0
- package/dist/cjs/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts +13 -0
- package/dist/cjs/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts +17 -0
- package/dist/cjs/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +20 -0
- package/dist/cjs/api/resources/collections/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/collections/index.d.ts +1 -0
- package/dist/cjs/api/resources/collections/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +7 -0
- package/dist/cjs/api/resources/index.js +46 -0
- package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +208 -0
- package/dist/cjs/api/resources/sourceConnections/client/Client.js +689 -0
- package/dist/cjs/api/resources/sourceConnections/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/sourceConnections/client/index.js +17 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +11 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +13 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +13 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts +21 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.ts +29 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +30 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/sourceConnections/index.d.ts +1 -0
- package/dist/cjs/api/resources/sourceConnections/index.js +17 -0
- package/dist/cjs/api/resources/sources/client/Client.d.ts +65 -0
- package/dist/cjs/api/resources/sources/client/Client.js +181 -0
- package/dist/cjs/api/resources/sources/index.d.ts +1 -0
- package/dist/cjs/api/resources/sources/index.js +17 -0
- package/dist/cjs/api/resources/whiteLabels/client/Client.d.ts +190 -0
- package/dist/cjs/api/resources/whiteLabels/client/Client.js +600 -0
- package/dist/cjs/api/resources/whiteLabels/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/whiteLabels/client/index.js +17 -0
- package/dist/cjs/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts +16 -0
- package/dist/cjs/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +28 -0
- package/dist/cjs/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +23 -0
- package/dist/cjs/api/resources/whiteLabels/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/whiteLabels/index.d.ts +1 -0
- package/dist/cjs/api/resources/whiteLabels/index.js +17 -0
- package/dist/cjs/api/types/ApiKey.d.ts +17 -0
- package/dist/cjs/api/types/ApiKeyCreate.d.ts +10 -0
- package/dist/cjs/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +13 -0
- package/dist/cjs/api/types/Collection.d.ts +30 -0
- package/dist/cjs/api/types/Connection.d.ts +18 -0
- package/dist/cjs/api/types/DagEdge.d.ts +15 -0
- package/dist/cjs/api/types/DagEdgeCreate.d.ts +10 -0
- package/dist/cjs/api/types/DagNode.d.ts +20 -0
- package/dist/cjs/api/types/DagNodeCreate.d.ts +17 -0
- package/dist/cjs/api/types/Destination.d.ts +22 -0
- package/dist/cjs/api/types/DestinationWithAuthenticationFields.d.ts +23 -0
- package/dist/cjs/api/types/EmbeddingModel.d.ts +20 -0
- package/dist/cjs/api/types/EmbeddingModelWithAuthenticationFields.d.ts +21 -0
- package/dist/cjs/api/types/EntityDefinition.d.ts +21 -0
- package/dist/cjs/api/types/EntityDefinitionCreate.d.ts +19 -0
- package/dist/cjs/api/types/EntityDefinitionUpdate.d.ts +19 -0
- package/dist/cjs/api/types/Fields.d.ts +10 -0
- package/dist/cjs/api/types/HttpValidationError.d.ts +7 -0
- package/dist/cjs/api/types/IntegrationCredentialInDb.d.ts +18 -0
- package/dist/cjs/api/types/IntegrationCredentialRawCreate.d.ts +19 -0
- package/dist/cjs/api/types/InvitationCreate.d.ts +10 -0
- package/dist/cjs/api/types/InvitationResponse.d.ts +13 -0
- package/dist/cjs/api/types/MemberResponse.d.ts +15 -0
- package/dist/cjs/api/types/Organization.d.ts +14 -0
- package/dist/cjs/api/types/OrganizationCreate.d.ts +14 -0
- package/dist/cjs/api/types/OrganizationWithRole.d.ts +16 -0
- package/dist/cjs/api/types/ResponseType.d.ts +11 -0
- package/dist/cjs/api/types/SearchResponse.d.ts +17 -0
- package/dist/cjs/api/types/SearchStatus.d.ts +12 -0
- package/dist/cjs/api/types/Source.d.ts +39 -0
- package/dist/cjs/api/types/SourceConnection.d.ts +61 -0
- package/dist/cjs/api/types/SourceConnectionCreateWithCredential.d.ts +25 -0
- package/dist/cjs/api/types/SourceConnectionCreateWithWhiteLabel.d.ts +29 -0
- package/dist/cjs/api/types/SourceConnectionJob.d.ts +45 -0
- package/dist/cjs/api/types/SourceConnectionListItem.d.ts +29 -0
- package/dist/cjs/api/types/Sync.d.ts +24 -0
- package/dist/cjs/api/types/SyncCreate.d.ts +19 -0
- package/dist/cjs/api/types/SyncDag.d.ts +29 -0
- package/dist/cjs/api/types/SyncDagCreate.d.ts +14 -0
- package/dist/cjs/api/types/SyncDagUpdate.d.ts +14 -0
- package/dist/cjs/api/types/SyncJob.d.ts +30 -0
- package/dist/cjs/api/types/SyncJobStatus.d.ts +15 -0
- package/dist/cjs/api/types/SyncJobStatus.js +14 -0
- package/dist/cjs/api/types/SyncUpdate.d.ts +14 -0
- package/dist/cjs/api/types/SyncWithSourceConnection.d.ts +25 -0
- package/dist/cjs/api/types/Transformer.d.ts +19 -0
- package/dist/cjs/api/types/TransformerCreate.d.ts +15 -0
- package/dist/cjs/api/types/TransformerUpdate.d.ts +15 -0
- package/dist/cjs/api/types/User.d.ts +15 -0
- package/dist/cjs/api/types/UserCreate.d.ts +11 -0
- package/dist/cjs/api/types/UserOrganization.d.ts +14 -0
- package/dist/cjs/api/types/ValidationError.d.ts +14 -0
- package/dist/cjs/api/types/WhiteLabel.d.ts +32 -0
- package/dist/cjs/api/types/index.d.ts +65 -0
- package/dist/cjs/api/types/index.js +81 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +17 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +14 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/cjs/core/fetcher/Fetcher.js +120 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +68 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
- package/dist/cjs/core/fetcher/index.d.ts +9 -0
- package/dist/cjs/core/fetcher/index.js +15 -0
- package/dist/cjs/core/fetcher/makeRequest.js +42 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
- package/dist/cjs/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/cjs/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/cjs/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/cjs/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/cjs/core/headers.d.ts +3 -0
- package/dist/cjs/core/headers.js +29 -0
- package/dist/cjs/core/index.d.ts +3 -0
- package/dist/cjs/core/index.js +42 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +102 -0
- package/dist/cjs/core/url/index.d.ts +2 -0
- package/dist/cjs/core/url/index.js +7 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +49 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/errors/AirweaveSDKError.d.ts +15 -0
- package/dist/cjs/errors/AirweaveSDKError.js +30 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +44 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/Client.d.mts +48 -0
- package/dist/esm/Client.mjs +39 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +9 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/collections/client/Client.d.mts +158 -0
- package/dist/esm/api/resources/collections/client/Client.mjs +500 -0
- package/dist/esm/api/resources/collections/client/index.d.mts +2 -0
- package/dist/esm/api/resources/collections/client/index.mjs +1 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionCreate.d.mts +16 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionCreate.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionUpdate.d.mts +13 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionUpdate.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.mts +13 -0
- package/dist/esm/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.mts +17 -0
- package/dist/esm/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.mts +20 -0
- package/dist/esm/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/collections/index.d.mts +1 -0
- package/dist/esm/api/resources/collections/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +7 -0
- package/dist/esm/api/resources/index.mjs +7 -0
- package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +208 -0
- package/dist/esm/api/resources/sourceConnections/client/Client.mjs +652 -0
- package/dist/esm/api/resources/sourceConnections/client/index.d.mts +2 -0
- package/dist/esm/api/resources/sourceConnections/client/index.mjs +1 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.mts +11 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.mts +13 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.mts +13 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.mts +21 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.mts +29 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.mts +30 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/sourceConnections/index.d.mts +1 -0
- package/dist/esm/api/resources/sourceConnections/index.mjs +1 -0
- package/dist/esm/api/resources/sources/client/Client.d.mts +65 -0
- package/dist/esm/api/resources/sources/client/Client.mjs +144 -0
- package/dist/esm/api/resources/sources/client/index.d.mts +1 -0
- package/dist/esm/api/resources/sources/client/index.mjs +1 -0
- package/dist/esm/api/resources/sources/index.d.mts +1 -0
- package/dist/esm/api/resources/sources/index.mjs +1 -0
- package/dist/esm/api/resources/whiteLabels/client/Client.d.mts +190 -0
- package/dist/esm/api/resources/whiteLabels/client/Client.mjs +563 -0
- package/dist/esm/api/resources/whiteLabels/client/index.d.mts +2 -0
- package/dist/esm/api/resources/whiteLabels/client/index.mjs +1 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.mts +16 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.mjs +4 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.mts +28 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelCreate.mjs +4 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.mts +23 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.mjs +4 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/whiteLabels/index.d.mts +1 -0
- package/dist/esm/api/resources/whiteLabels/index.mjs +1 -0
- package/dist/esm/api/types/ApiKey.d.mts +17 -0
- package/dist/esm/api/types/ApiKey.mjs +4 -0
- package/dist/esm/api/types/ApiKeyCreate.d.mts +10 -0
- package/dist/esm/api/types/ApiKeyCreate.mjs +4 -0
- package/dist/esm/api/types/AuthType.mjs +13 -0
- package/dist/esm/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.mjs +4 -0
- package/dist/esm/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.mts +13 -0
- package/dist/esm/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.mjs +4 -0
- package/dist/esm/api/types/Collection.d.mts +30 -0
- package/dist/esm/api/types/Collection.mjs +4 -0
- package/dist/esm/api/types/CollectionStatus.mjs +9 -0
- package/dist/esm/api/types/ConfigField.mjs +4 -0
- package/dist/esm/api/types/ConfigValues.mjs +4 -0
- package/dist/esm/api/types/Connection.d.mts +18 -0
- package/dist/esm/api/types/Connection.mjs +4 -0
- package/dist/esm/api/types/ConnectionStatus.mjs +8 -0
- package/dist/esm/api/types/DagEdge.d.mts +15 -0
- package/dist/esm/api/types/DagEdge.mjs +4 -0
- package/dist/esm/api/types/DagEdgeCreate.d.mts +10 -0
- package/dist/esm/api/types/DagEdgeCreate.mjs +4 -0
- package/dist/esm/api/types/DagNode.d.mts +20 -0
- package/dist/esm/api/types/DagNode.mjs +4 -0
- package/dist/esm/api/types/DagNodeCreate.d.mts +17 -0
- package/dist/esm/api/types/DagNodeCreate.mjs +4 -0
- package/dist/esm/api/types/Destination.d.mts +22 -0
- package/dist/esm/api/types/Destination.mjs +4 -0
- package/dist/esm/api/types/DestinationWithAuthenticationFields.d.mts +23 -0
- package/dist/esm/api/types/DestinationWithAuthenticationFields.mjs +4 -0
- package/dist/esm/api/types/EmbeddingModel.d.mts +20 -0
- package/dist/esm/api/types/EmbeddingModel.mjs +4 -0
- package/dist/esm/api/types/EmbeddingModelWithAuthenticationFields.d.mts +21 -0
- package/dist/esm/api/types/EmbeddingModelWithAuthenticationFields.mjs +4 -0
- package/dist/esm/api/types/EntityCount.mjs +4 -0
- package/dist/esm/api/types/EntityDefinition.d.mts +21 -0
- package/dist/esm/api/types/EntityDefinition.mjs +4 -0
- package/dist/esm/api/types/EntityDefinitionCreate.d.mts +19 -0
- package/dist/esm/api/types/EntityDefinitionCreate.mjs +4 -0
- package/dist/esm/api/types/EntityDefinitionUpdate.d.mts +19 -0
- package/dist/esm/api/types/EntityDefinitionUpdate.mjs +4 -0
- package/dist/esm/api/types/EntityType.mjs +7 -0
- package/dist/esm/api/types/Fields.d.mts +10 -0
- package/dist/esm/api/types/Fields.mjs +4 -0
- package/dist/esm/api/types/HttpValidationError.d.mts +7 -0
- package/dist/esm/api/types/HttpValidationError.mjs +4 -0
- package/dist/esm/api/types/IntegrationCredentialInDb.d.mts +18 -0
- package/dist/esm/api/types/IntegrationCredentialInDb.mjs +4 -0
- package/dist/esm/api/types/IntegrationCredentialRawCreate.d.mts +19 -0
- package/dist/esm/api/types/IntegrationCredentialRawCreate.mjs +4 -0
- package/dist/esm/api/types/IntegrationType.mjs +8 -0
- package/dist/esm/api/types/InvitationCreate.d.mts +10 -0
- package/dist/esm/api/types/InvitationCreate.mjs +4 -0
- package/dist/esm/api/types/InvitationResponse.d.mts +13 -0
- package/dist/esm/api/types/InvitationResponse.mjs +4 -0
- package/dist/esm/api/types/MemberResponse.d.mts +15 -0
- package/dist/esm/api/types/MemberResponse.mjs +4 -0
- package/dist/esm/api/types/NodeType.mjs +9 -0
- package/dist/esm/api/types/OAuth2AuthUrl.mjs +4 -0
- package/dist/esm/api/types/Organization.d.mts +14 -0
- package/dist/esm/api/types/Organization.mjs +4 -0
- package/dist/esm/api/types/OrganizationCreate.d.mts +14 -0
- package/dist/esm/api/types/OrganizationCreate.mjs +4 -0
- package/dist/esm/api/types/OrganizationWithRole.d.mts +16 -0
- package/dist/esm/api/types/OrganizationWithRole.mjs +4 -0
- package/dist/esm/api/types/ResponseType.d.mts +11 -0
- package/dist/esm/api/types/ResponseType.mjs +7 -0
- package/dist/esm/api/types/SearchResponse.d.mts +17 -0
- package/dist/esm/api/types/SearchResponse.mjs +4 -0
- package/dist/esm/api/types/SearchStatus.d.mts +12 -0
- package/dist/esm/api/types/SearchStatus.mjs +8 -0
- package/dist/esm/api/types/Source.d.mts +39 -0
- package/dist/esm/api/types/Source.mjs +4 -0
- package/dist/esm/api/types/SourceConnection.d.mts +61 -0
- package/dist/esm/api/types/SourceConnection.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionCreateWithCredential.d.mts +25 -0
- package/dist/esm/api/types/SourceConnectionCreateWithCredential.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionCreateWithWhiteLabel.d.mts +29 -0
- package/dist/esm/api/types/SourceConnectionCreateWithWhiteLabel.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionJob.d.mts +45 -0
- package/dist/esm/api/types/SourceConnectionJob.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionListItem.d.mts +29 -0
- package/dist/esm/api/types/SourceConnectionListItem.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionStatus.mjs +8 -0
- package/dist/esm/api/types/Sync.d.mts +24 -0
- package/dist/esm/api/types/Sync.mjs +4 -0
- package/dist/esm/api/types/SyncCreate.d.mts +19 -0
- package/dist/esm/api/types/SyncCreate.mjs +4 -0
- package/dist/esm/api/types/SyncDag.d.mts +29 -0
- package/dist/esm/api/types/SyncDag.mjs +4 -0
- package/dist/esm/api/types/SyncDagCreate.d.mts +14 -0
- package/dist/esm/api/types/SyncDagCreate.mjs +4 -0
- package/dist/esm/api/types/SyncDagUpdate.d.mts +14 -0
- package/dist/esm/api/types/SyncDagUpdate.mjs +4 -0
- package/dist/esm/api/types/SyncJob.d.mts +30 -0
- package/dist/esm/api/types/SyncJob.mjs +4 -0
- package/dist/esm/api/types/SyncJobStatus.d.mts +15 -0
- package/dist/esm/api/types/SyncJobStatus.mjs +11 -0
- package/dist/esm/api/types/SyncStatus.mjs +8 -0
- package/dist/esm/api/types/SyncUpdate.d.mts +14 -0
- package/dist/esm/api/types/SyncUpdate.mjs +4 -0
- package/dist/esm/api/types/SyncWithSourceConnection.d.mts +25 -0
- package/dist/esm/api/types/SyncWithSourceConnection.mjs +4 -0
- package/dist/esm/api/types/Transformer.d.mts +19 -0
- package/dist/esm/api/types/Transformer.mjs +4 -0
- package/dist/esm/api/types/TransformerCreate.d.mts +15 -0
- package/dist/esm/api/types/TransformerCreate.mjs +4 -0
- package/dist/esm/api/types/TransformerUpdate.d.mts +15 -0
- package/dist/esm/api/types/TransformerUpdate.mjs +4 -0
- package/dist/esm/api/types/User.d.mts +15 -0
- package/dist/esm/api/types/User.mjs +4 -0
- package/dist/esm/api/types/UserCreate.d.mts +11 -0
- package/dist/esm/api/types/UserCreate.mjs +4 -0
- package/dist/esm/api/types/UserOrganization.d.mts +14 -0
- package/dist/esm/api/types/UserOrganization.mjs +4 -0
- package/dist/esm/api/types/ValidationError.d.mts +14 -0
- package/dist/esm/api/types/ValidationError.mjs +4 -0
- package/dist/esm/api/types/WhiteLabel.d.mts +32 -0
- package/dist/esm/api/types/WhiteLabel.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +65 -0
- package/dist/esm/api/types/index.mjs +65 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +17 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +11 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +32 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
- package/dist/esm/core/fetcher/index.d.mts +9 -0
- package/dist/esm/core/fetcher/index.mjs +5 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
- package/dist/esm/core/fetcher/signals.mjs +32 -0
- package/dist/esm/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.mts +30 -0
- package/dist/esm/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.mjs +243 -0
- package/dist/esm/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.mts +21 -0
- package/dist/esm/core/fetcher/stream-wrappers/NodePre18StreamWrapper.mjs +122 -0
- package/dist/esm/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.mts +31 -0
- package/dist/esm/core/fetcher/stream-wrappers/UndiciStreamWrapper.mjs +225 -0
- package/dist/esm/core/fetcher/stream-wrappers/chooseStreamWrapper.mjs +23 -0
- package/dist/esm/core/headers.d.mts +3 -0
- package/dist/esm/core/headers.mjs +25 -0
- package/dist/esm/core/index.d.mts +3 -0
- package/dist/esm/core/index.mjs +3 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +99 -0
- package/dist/esm/core/url/index.d.mts +2 -0
- package/dist/esm/core/url/index.mjs +2 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +46 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/environments.mjs +7 -0
- package/dist/esm/errors/AirweaveSDKError.d.mts +15 -0
- package/dist/esm/errors/AirweaveSDKError.mjs +26 -0
- package/dist/esm/errors/AirweaveSDKTimeoutError.mjs +9 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/index.d.mts +4 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +39 -14
- package/reference.md +860 -127
- package/Client.d.ts +0 -37
- package/Client.js +0 -27
- package/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/api/errors/UnprocessableEntityError.js +0 -51
- package/api/errors/index.d.ts +0 -1
- package/api/errors/index.js +0 -17
- package/api/index.d.ts +0 -3
- package/api/index.js +0 -19
- package/api/resources/collections/client/Client.d.ts +0 -135
- package/api/resources/collections/client/Client.js +0 -510
- package/api/resources/collections/client/index.d.ts +0 -1
- package/api/resources/collections/client/index.js +0 -17
- package/api/resources/collections/client/requests/CollectionCreate.d.ts +0 -15
- package/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts +0 -10
- package/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts +0 -11
- package/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +0 -20
- package/api/resources/collections/client/requests/index.d.ts +0 -4
- package/api/resources/collections/index.d.ts +0 -1
- package/api/resources/collections/index.js +0 -17
- package/api/resources/index.d.ts +0 -6
- package/api/resources/index.js +0 -45
- package/api/resources/sourceConnections/client/Client.d.ts +0 -191
- package/api/resources/sourceConnections/client/Client.js +0 -625
- package/api/resources/sourceConnections/client/index.d.ts +0 -1
- package/api/resources/sourceConnections/client/index.js +0 -17
- package/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +0 -10
- package/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +0 -10
- package/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +0 -10
- package/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts +0 -15
- package/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +0 -18
- package/api/resources/sourceConnections/client/requests/index.d.ts +0 -5
- package/api/resources/sourceConnections/index.d.ts +0 -2
- package/api/resources/sourceConnections/index.js +0 -18
- package/api/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.d.ts +0 -5
- package/api/resources/sourceConnections/types/index.d.ts +0 -1
- package/api/resources/sourceConnections/types/index.js +0 -17
- package/api/resources/sources/client/Client.d.ts +0 -68
- package/api/resources/sources/client/Client.js +0 -208
- package/api/resources/sources/index.d.ts +0 -1
- package/api/resources/sources/index.js +0 -17
- package/api/types/ApiKey.d.ts +0 -17
- package/api/types/ApiKeyCreate.d.ts +0 -10
- package/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +0 -9
- package/api/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts +0 -8
- package/api/types/Chat.d.ts +0 -22
- package/api/types/ChatCreate.d.ts +0 -14
- package/api/types/ChatMessage.d.ts +0 -18
- package/api/types/ChatMessageCreate.d.ts +0 -10
- package/api/types/ChatUpdate.d.ts +0 -12
- package/api/types/Collection.d.ts +0 -19
- package/api/types/CollectionUpdate.d.ts +0 -10
- package/api/types/Connection.d.ts +0 -18
- package/api/types/DagEdge.d.ts +0 -15
- package/api/types/DagEdgeCreate.d.ts +0 -10
- package/api/types/DagNode.d.ts +0 -20
- package/api/types/DagNodeCreate.d.ts +0 -17
- package/api/types/Destination.d.ts +0 -22
- package/api/types/DestinationWithAuthenticationFields.d.ts +0 -23
- package/api/types/EmbeddingModel.d.ts +0 -20
- package/api/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -21
- package/api/types/EntityDefinition.d.ts +0 -18
- package/api/types/EntityDefinitionCreate.d.ts +0 -16
- package/api/types/EntityDefinitionCreateEntitySchema.d.ts +0 -4
- package/api/types/EntityDefinitionEntitySchema.d.ts +0 -4
- package/api/types/EntityDefinitionUpdate.d.ts +0 -16
- package/api/types/EntityDefinitionUpdateEntitySchema.d.ts +0 -4
- package/api/types/EntityDefinitionUpdateEntitySchema.js +0 -5
- package/api/types/EntityRelation.d.ts +0 -16
- package/api/types/EntityRelation.js +0 -5
- package/api/types/EntityRelationCreate.d.ts +0 -12
- package/api/types/EntityRelationCreate.js +0 -5
- package/api/types/EntityRelationUpdate.d.ts +0 -12
- package/api/types/EntityRelationUpdate.js +0 -5
- package/api/types/Fields.d.ts +0 -10
- package/api/types/HttpValidationError.d.ts +0 -7
- package/api/types/IntegrationCredentialInDb.d.ts +0 -18
- package/api/types/IntegrationCredentialRawCreate.d.ts +0 -19
- package/api/types/Organization.d.ts +0 -13
- package/api/types/ResponseType.d.ts +0 -11
- package/api/types/SearchResponse.d.ts +0 -13
- package/api/types/SearchStatus.d.ts +0 -12
- package/api/types/Source.d.ts +0 -25
- package/api/types/SourceConnection.d.ts +0 -33
- package/api/types/SourceConnectionAuthFields.d.ts +0 -5
- package/api/types/SourceConnectionAuthFields.js +0 -5
- package/api/types/SourceConnectionCreate.d.ts +0 -23
- package/api/types/SourceConnectionJob.d.ts +0 -30
- package/api/types/SourceConnectionListItem.d.ts +0 -22
- package/api/types/Sync.d.ts +0 -24
- package/api/types/SyncCreate.d.ts +0 -19
- package/api/types/SyncDag.d.ts +0 -29
- package/api/types/SyncDagCreate.d.ts +0 -14
- package/api/types/SyncDagUpdate.d.ts +0 -14
- package/api/types/SyncJob.d.ts +0 -30
- package/api/types/SyncJobStatus.d.ts +0 -13
- package/api/types/SyncJobStatus.js +0 -12
- package/api/types/SyncUpdate.d.ts +0 -14
- package/api/types/SyncWithSourceConnection.d.ts +0 -25
- package/api/types/Transformer.d.ts +0 -19
- package/api/types/TransformerCreate.d.ts +0 -15
- package/api/types/TransformerUpdate.d.ts +0 -15
- package/api/types/User.d.ts +0 -13
- package/api/types/UserCreate.d.ts +0 -11
- package/api/types/ValidationError.d.ts +0 -9
- package/api/types/ValidationErrorLocItem.d.ts +0 -4
- package/api/types/ValidationErrorLocItem.js +0 -5
- package/api/types/WhiteLabel.d.ts +0 -20
- package/api/types/WhiteLabelCreate.d.ts +0 -14
- package/api/types/WhiteLabelUpdate.d.ts +0 -13
- package/api/types/index.d.ts +0 -75
- package/api/types/index.js +0 -91
- package/core/fetcher/APIResponse.d.ts +0 -10
- package/core/fetcher/Fetcher.d.ts +0 -39
- package/core/fetcher/Fetcher.js +0 -99
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getRequestBody.js +0 -22
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/index.d.ts +0 -5
- package/core/fetcher/index.js +0 -9
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/index.d.ts +0 -3
- package/core/index.js +0 -42
- package/core/runtime/index.d.ts +0 -1
- package/core/runtime/index.js +0 -5
- package/core/runtime/runtime.d.ts +0 -9
- package/core/runtime/runtime.js +0 -93
- package/core/schemas/Schema.d.ts +0 -85
- package/core/schemas/Schema.js +0 -22
- package/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/core/schemas/builders/bigint/bigint.js +0 -49
- package/core/schemas/builders/bigint/index.d.ts +0 -1
- package/core/schemas/builders/bigint/index.js +0 -5
- package/core/schemas/builders/date/date.d.ts +0 -2
- package/core/schemas/builders/date/date.js +0 -62
- package/core/schemas/builders/date/index.d.ts +0 -1
- package/core/schemas/builders/date/index.js +0 -5
- package/core/schemas/builders/enum/enum.d.ts +0 -2
- package/core/schemas/builders/enum/enum.js +0 -38
- package/core/schemas/builders/enum/index.d.ts +0 -1
- package/core/schemas/builders/enum/index.js +0 -5
- package/core/schemas/builders/index.d.ts +0 -14
- package/core/schemas/builders/index.js +0 -30
- package/core/schemas/builders/lazy/index.d.ts +0 -3
- package/core/schemas/builders/lazy/index.js +0 -7
- package/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/core/schemas/builders/lazy/lazy.js +0 -24
- package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/core/schemas/builders/list/index.d.ts +0 -1
- package/core/schemas/builders/list/index.js +0 -5
- package/core/schemas/builders/list/list.d.ts +0 -2
- package/core/schemas/builders/list/list.js +0 -54
- package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/core/schemas/builders/literals/index.d.ts +0 -2
- package/core/schemas/builders/literals/index.js +0 -7
- package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/core/schemas/builders/object/index.d.ts +0 -6
- package/core/schemas/builders/object/index.js +0 -11
- package/core/schemas/builders/object/object.d.ts +0 -3
- package/core/schemas/builders/object/object.js +0 -260
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/core/schemas/builders/object/property.d.ts +0 -8
- package/core/schemas/builders/object/property.js +0 -15
- package/core/schemas/builders/object/types.d.ts +0 -31
- package/core/schemas/builders/object/types.js +0 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/core/schemas/builders/object-like/index.d.ts +0 -2
- package/core/schemas/builders/object-like/index.js +0 -6
- package/core/schemas/builders/object-like/types.d.ts +0 -7
- package/core/schemas/builders/object-like/types.js +0 -2
- package/core/schemas/builders/primitives/any.d.ts +0 -1
- package/core/schemas/builders/primitives/any.js +0 -6
- package/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/core/schemas/builders/primitives/boolean.js +0 -25
- package/core/schemas/builders/primitives/index.d.ts +0 -5
- package/core/schemas/builders/primitives/index.js +0 -13
- package/core/schemas/builders/primitives/number.d.ts +0 -1
- package/core/schemas/builders/primitives/number.js +0 -25
- package/core/schemas/builders/primitives/string.d.ts +0 -1
- package/core/schemas/builders/primitives/string.js +0 -25
- package/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/core/schemas/builders/primitives/unknown.js +0 -6
- package/core/schemas/builders/record/index.d.ts +0 -2
- package/core/schemas/builders/record/index.js +0 -5
- package/core/schemas/builders/record/record.d.ts +0 -3
- package/core/schemas/builders/record/record.js +0 -94
- package/core/schemas/builders/record/types.d.ts +0 -4
- package/core/schemas/builders/record/types.js +0 -2
- package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -17
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -81
- package/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/core/schemas/builders/schema-utils/index.js +0 -11
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/core/schemas/builders/set/index.d.ts +0 -1
- package/core/schemas/builders/set/index.js +0 -5
- package/core/schemas/builders/set/set.d.ts +0 -2
- package/core/schemas/builders/set/set.js +0 -43
- package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/core/schemas/builders/union/discriminant.js +0 -9
- package/core/schemas/builders/union/index.d.ts +0 -4
- package/core/schemas/builders/union/index.js +0 -7
- package/core/schemas/builders/union/types.d.ts +0 -13
- package/core/schemas/builders/union/types.js +0 -2
- package/core/schemas/builders/union/union.d.ts +0 -4
- package/core/schemas/builders/union/union.js +0 -129
- package/core/schemas/index.d.ts +0 -2
- package/core/schemas/index.js +0 -17
- package/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/core/schemas/utils/MaybePromise.js +0 -2
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/core/schemas/utils/entries.d.ts +0 -1
- package/core/schemas/utils/entries.js +0 -6
- package/core/schemas/utils/filterObject.d.ts +0 -1
- package/core/schemas/utils/filterObject.js +0 -13
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +0 -17
- package/core/schemas/utils/keys.d.ts +0 -1
- package/core/schemas/utils/keys.js +0 -6
- package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/core/schemas/utils/partition.d.ts +0 -1
- package/core/schemas/utils/partition.js +0 -15
- package/dist/Client.d.ts +0 -37
- package/dist/Client.js +0 -27
- package/dist/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/dist/api/errors/UnprocessableEntityError.js +0 -51
- package/dist/api/errors/index.d.ts +0 -1
- package/dist/api/errors/index.js +0 -17
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -19
- package/dist/api/resources/collections/client/Client.d.ts +0 -135
- package/dist/api/resources/collections/client/Client.js +0 -510
- package/dist/api/resources/collections/client/index.d.ts +0 -1
- package/dist/api/resources/collections/client/index.js +0 -17
- package/dist/api/resources/collections/client/requests/CollectionCreate.d.ts +0 -15
- package/dist/api/resources/collections/client/requests/CollectionCreate.js +0 -5
- package/dist/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts +0 -10
- package/dist/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js +0 -5
- package/dist/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts +0 -11
- package/dist/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.js +0 -5
- package/dist/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +0 -20
- package/dist/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.js +0 -5
- package/dist/api/resources/collections/client/requests/index.d.ts +0 -4
- package/dist/api/resources/collections/index.d.ts +0 -1
- package/dist/api/resources/collections/index.js +0 -17
- package/dist/api/resources/index.d.ts +0 -6
- package/dist/api/resources/index.js +0 -45
- package/dist/api/resources/sourceConnections/client/Client.d.ts +0 -191
- package/dist/api/resources/sourceConnections/client/Client.js +0 -625
- package/dist/api/resources/sourceConnections/client/index.d.ts +0 -1
- package/dist/api/resources/sourceConnections/client/index.js +0 -17
- package/dist/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +0 -10
- package/dist/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js +0 -5
- package/dist/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +0 -10
- package/dist/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js +0 -5
- package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +0 -10
- package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js +0 -5
- package/dist/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts +0 -15
- package/dist/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js +0 -5
- package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +0 -18
- package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +0 -5
- package/dist/api/resources/sourceConnections/client/requests/index.d.ts +0 -5
- package/dist/api/resources/sourceConnections/client/requests/index.js +0 -2
- package/dist/api/resources/sourceConnections/index.d.ts +0 -2
- package/dist/api/resources/sourceConnections/index.js +0 -18
- package/dist/api/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.d.ts +0 -5
- package/dist/api/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.js +0 -5
- package/dist/api/resources/sourceConnections/types/index.d.ts +0 -1
- package/dist/api/resources/sourceConnections/types/index.js +0 -17
- package/dist/api/resources/sources/client/Client.d.ts +0 -68
- package/dist/api/resources/sources/client/Client.js +0 -208
- package/dist/api/resources/sources/client/index.js +0 -2
- package/dist/api/resources/sources/index.d.ts +0 -1
- package/dist/api/resources/sources/index.js +0 -17
- package/dist/api/types/ApiKey.d.ts +0 -17
- package/dist/api/types/ApiKey.js +0 -5
- package/dist/api/types/ApiKeyCreate.d.ts +0 -10
- package/dist/api/types/ApiKeyCreate.js +0 -5
- package/dist/api/types/AuthType.js +0 -16
- package/dist/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -5
- package/dist/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +0 -9
- package/dist/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js +0 -5
- package/dist/api/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts +0 -8
- package/dist/api/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js +0 -5
- package/dist/api/types/Chat.d.ts +0 -22
- package/dist/api/types/Chat.js +0 -5
- package/dist/api/types/ChatCreate.d.ts +0 -14
- package/dist/api/types/ChatCreate.js +0 -5
- package/dist/api/types/ChatMessage.d.ts +0 -18
- package/dist/api/types/ChatMessage.js +0 -5
- package/dist/api/types/ChatMessageCreate.d.ts +0 -10
- package/dist/api/types/ChatMessageCreate.js +0 -5
- package/dist/api/types/ChatUpdate.d.ts +0 -12
- package/dist/api/types/ChatUpdate.js +0 -5
- package/dist/api/types/Collection.d.ts +0 -19
- package/dist/api/types/Collection.js +0 -5
- package/dist/api/types/CollectionStatus.js +0 -12
- package/dist/api/types/CollectionUpdate.d.ts +0 -10
- package/dist/api/types/CollectionUpdate.js +0 -5
- package/dist/api/types/ConfigField.js +0 -5
- package/dist/api/types/ConfigValues.js +0 -5
- package/dist/api/types/Connection.d.ts +0 -18
- package/dist/api/types/Connection.js +0 -5
- package/dist/api/types/ConnectionStatus.js +0 -11
- package/dist/api/types/DagEdge.d.ts +0 -15
- package/dist/api/types/DagEdge.js +0 -5
- package/dist/api/types/DagEdgeCreate.d.ts +0 -10
- package/dist/api/types/DagEdgeCreate.js +0 -5
- package/dist/api/types/DagNode.d.ts +0 -20
- package/dist/api/types/DagNode.js +0 -5
- package/dist/api/types/DagNodeCreate.d.ts +0 -17
- package/dist/api/types/DagNodeCreate.js +0 -5
- package/dist/api/types/Destination.d.ts +0 -22
- package/dist/api/types/Destination.js +0 -5
- package/dist/api/types/DestinationWithAuthenticationFields.d.ts +0 -23
- package/dist/api/types/DestinationWithAuthenticationFields.js +0 -5
- package/dist/api/types/EmbeddingModel.d.ts +0 -20
- package/dist/api/types/EmbeddingModel.js +0 -5
- package/dist/api/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -21
- package/dist/api/types/EmbeddingModelWithAuthenticationFields.js +0 -5
- package/dist/api/types/EntityCount.js +0 -5
- package/dist/api/types/EntityDefinition.d.ts +0 -18
- package/dist/api/types/EntityDefinition.js +0 -5
- package/dist/api/types/EntityDefinitionCreate.d.ts +0 -16
- package/dist/api/types/EntityDefinitionCreate.js +0 -5
- package/dist/api/types/EntityDefinitionCreateEntitySchema.d.ts +0 -4
- package/dist/api/types/EntityDefinitionCreateEntitySchema.js +0 -5
- package/dist/api/types/EntityDefinitionEntitySchema.d.ts +0 -4
- package/dist/api/types/EntityDefinitionEntitySchema.js +0 -5
- package/dist/api/types/EntityDefinitionUpdate.d.ts +0 -16
- package/dist/api/types/EntityDefinitionUpdate.js +0 -5
- package/dist/api/types/EntityDefinitionUpdateEntitySchema.d.ts +0 -4
- package/dist/api/types/EntityDefinitionUpdateEntitySchema.js +0 -5
- package/dist/api/types/EntityRelation.d.ts +0 -16
- package/dist/api/types/EntityRelation.js +0 -5
- package/dist/api/types/EntityRelationCreate.d.ts +0 -12
- package/dist/api/types/EntityRelationCreate.js +0 -5
- package/dist/api/types/EntityRelationUpdate.d.ts +0 -12
- package/dist/api/types/EntityRelationUpdate.js +0 -5
- package/dist/api/types/EntityType.js +0 -10
- package/dist/api/types/Fields.d.ts +0 -10
- package/dist/api/types/Fields.js +0 -5
- package/dist/api/types/HttpValidationError.d.ts +0 -7
- package/dist/api/types/HttpValidationError.js +0 -5
- package/dist/api/types/IntegrationCredentialInDb.d.ts +0 -18
- package/dist/api/types/IntegrationCredentialInDb.js +0 -5
- package/dist/api/types/IntegrationCredentialRawCreate.d.ts +0 -19
- package/dist/api/types/IntegrationCredentialRawCreate.js +0 -5
- package/dist/api/types/IntegrationType.js +0 -11
- package/dist/api/types/NodeType.js +0 -12
- package/dist/api/types/OAuth2AuthUrl.js +0 -5
- package/dist/api/types/Organization.d.ts +0 -13
- package/dist/api/types/Organization.js +0 -5
- package/dist/api/types/ResponseType.d.ts +0 -11
- package/dist/api/types/ResponseType.js +0 -10
- package/dist/api/types/SearchResponse.d.ts +0 -13
- package/dist/api/types/SearchResponse.js +0 -5
- package/dist/api/types/SearchStatus.d.ts +0 -12
- package/dist/api/types/SearchStatus.js +0 -11
- package/dist/api/types/Source.d.ts +0 -25
- package/dist/api/types/Source.js +0 -5
- package/dist/api/types/SourceConnection.d.ts +0 -33
- package/dist/api/types/SourceConnection.js +0 -5
- package/dist/api/types/SourceConnectionAuthFields.d.ts +0 -5
- package/dist/api/types/SourceConnectionAuthFields.js +0 -5
- package/dist/api/types/SourceConnectionCreate.d.ts +0 -23
- package/dist/api/types/SourceConnectionCreate.js +0 -5
- package/dist/api/types/SourceConnectionJob.d.ts +0 -30
- package/dist/api/types/SourceConnectionJob.js +0 -5
- package/dist/api/types/SourceConnectionListItem.d.ts +0 -22
- package/dist/api/types/SourceConnectionListItem.js +0 -5
- package/dist/api/types/SourceConnectionStatus.js +0 -11
- package/dist/api/types/Sync.d.ts +0 -24
- package/dist/api/types/Sync.js +0 -5
- package/dist/api/types/SyncCreate.d.ts +0 -19
- package/dist/api/types/SyncCreate.js +0 -5
- package/dist/api/types/SyncDag.d.ts +0 -29
- package/dist/api/types/SyncDag.js +0 -5
- package/dist/api/types/SyncDagCreate.d.ts +0 -14
- package/dist/api/types/SyncDagCreate.js +0 -5
- package/dist/api/types/SyncDagUpdate.d.ts +0 -14
- package/dist/api/types/SyncDagUpdate.js +0 -5
- package/dist/api/types/SyncJob.d.ts +0 -30
- package/dist/api/types/SyncJob.js +0 -5
- package/dist/api/types/SyncJobStatus.d.ts +0 -13
- package/dist/api/types/SyncJobStatus.js +0 -12
- package/dist/api/types/SyncStatus.js +0 -11
- package/dist/api/types/SyncUpdate.d.ts +0 -14
- package/dist/api/types/SyncUpdate.js +0 -5
- package/dist/api/types/SyncWithSourceConnection.d.ts +0 -25
- package/dist/api/types/SyncWithSourceConnection.js +0 -5
- package/dist/api/types/Transformer.d.ts +0 -19
- package/dist/api/types/Transformer.js +0 -5
- package/dist/api/types/TransformerCreate.d.ts +0 -15
- package/dist/api/types/TransformerCreate.js +0 -5
- package/dist/api/types/TransformerUpdate.d.ts +0 -15
- package/dist/api/types/TransformerUpdate.js +0 -5
- package/dist/api/types/User.d.ts +0 -13
- package/dist/api/types/User.js +0 -5
- package/dist/api/types/UserCreate.d.ts +0 -11
- package/dist/api/types/UserCreate.js +0 -5
- package/dist/api/types/ValidationError.d.ts +0 -9
- package/dist/api/types/ValidationError.js +0 -5
- package/dist/api/types/ValidationErrorLocItem.d.ts +0 -4
- package/dist/api/types/ValidationErrorLocItem.js +0 -5
- package/dist/api/types/WhiteLabel.d.ts +0 -20
- package/dist/api/types/WhiteLabel.js +0 -5
- package/dist/api/types/WhiteLabelCreate.d.ts +0 -14
- package/dist/api/types/WhiteLabelCreate.js +0 -5
- package/dist/api/types/WhiteLabelUpdate.d.ts +0 -13
- package/dist/api/types/WhiteLabelUpdate.js +0 -5
- package/dist/api/types/index.d.ts +0 -75
- package/dist/api/types/index.js +0 -91
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -39
- package/dist/core/fetcher/Fetcher.js +0 -99
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getHeader.js +0 -11
- package/dist/core/fetcher/getRequestBody.js +0 -22
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +0 -42
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -9
- package/dist/core/runtime/runtime.js +0 -93
- package/dist/core/schemas/Schema.d.ts +0 -85
- package/dist/core/schemas/Schema.js +0 -22
- package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/dist/core/schemas/builders/bigint/bigint.js +0 -49
- package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
- package/dist/core/schemas/builders/bigint/index.js +0 -5
- package/dist/core/schemas/builders/date/date.d.ts +0 -2
- package/dist/core/schemas/builders/date/date.js +0 -62
- package/dist/core/schemas/builders/date/index.d.ts +0 -1
- package/dist/core/schemas/builders/date/index.js +0 -5
- package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
- package/dist/core/schemas/builders/enum/enum.js +0 -38
- package/dist/core/schemas/builders/enum/index.d.ts +0 -1
- package/dist/core/schemas/builders/enum/index.js +0 -5
- package/dist/core/schemas/builders/index.d.ts +0 -14
- package/dist/core/schemas/builders/index.js +0 -30
- package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/index.js +0 -7
- package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/dist/core/schemas/builders/lazy/lazy.js +0 -24
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/dist/core/schemas/builders/list/index.d.ts +0 -1
- package/dist/core/schemas/builders/list/index.js +0 -5
- package/dist/core/schemas/builders/list/list.d.ts +0 -2
- package/dist/core/schemas/builders/list/list.js +0 -54
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/dist/core/schemas/builders/literals/index.d.ts +0 -2
- package/dist/core/schemas/builders/literals/index.js +0 -7
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/dist/core/schemas/builders/object/index.d.ts +0 -6
- package/dist/core/schemas/builders/object/index.js +0 -11
- package/dist/core/schemas/builders/object/object.d.ts +0 -3
- package/dist/core/schemas/builders/object/object.js +0 -260
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/dist/core/schemas/builders/object/property.d.ts +0 -8
- package/dist/core/schemas/builders/object/property.js +0 -15
- package/dist/core/schemas/builders/object/types.d.ts +0 -31
- package/dist/core/schemas/builders/object/types.js +0 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
- package/dist/core/schemas/builders/object-like/index.js +0 -6
- package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
- package/dist/core/schemas/builders/object-like/types.js +0 -2
- package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/any.js +0 -6
- package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/boolean.js +0 -25
- package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
- package/dist/core/schemas/builders/primitives/index.js +0 -13
- package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/number.js +0 -25
- package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/string.js +0 -25
- package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/unknown.js +0 -6
- package/dist/core/schemas/builders/record/index.d.ts +0 -2
- package/dist/core/schemas/builders/record/index.js +0 -5
- package/dist/core/schemas/builders/record/record.d.ts +0 -3
- package/dist/core/schemas/builders/record/record.js +0 -94
- package/dist/core/schemas/builders/record/types.d.ts +0 -4
- package/dist/core/schemas/builders/record/types.js +0 -2
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -17
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -81
- package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/index.js +0 -11
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/dist/core/schemas/builders/set/index.d.ts +0 -1
- package/dist/core/schemas/builders/set/index.js +0 -5
- package/dist/core/schemas/builders/set/set.d.ts +0 -2
- package/dist/core/schemas/builders/set/set.js +0 -43
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/dist/core/schemas/builders/union/discriminant.js +0 -9
- package/dist/core/schemas/builders/union/index.d.ts +0 -4
- package/dist/core/schemas/builders/union/index.js +0 -7
- package/dist/core/schemas/builders/union/types.d.ts +0 -13
- package/dist/core/schemas/builders/union/types.js +0 -2
- package/dist/core/schemas/builders/union/union.d.ts +0 -4
- package/dist/core/schemas/builders/union/union.js +0 -129
- package/dist/core/schemas/index.d.ts +0 -2
- package/dist/core/schemas/index.js +0 -17
- package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/dist/core/schemas/utils/MaybePromise.js +0 -2
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/dist/core/schemas/utils/entries.d.ts +0 -1
- package/dist/core/schemas/utils/entries.js +0 -6
- package/dist/core/schemas/utils/filterObject.d.ts +0 -1
- package/dist/core/schemas/utils/filterObject.js +0 -13
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +0 -17
- package/dist/core/schemas/utils/keys.d.ts +0 -1
- package/dist/core/schemas/utils/keys.js +0 -6
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/dist/core/schemas/utils/partition.d.ts +0 -1
- package/dist/core/schemas/utils/partition.js +0 -15
- package/dist/errors/AirweaveSDKError.d.ts +0 -12
- package/dist/errors/AirweaveSDKError.js +0 -32
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -44
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -18
- package/dist/serialization/resources/collections/client/index.d.ts +0 -3
- package/dist/serialization/resources/collections/client/index.js +0 -42
- package/dist/serialization/resources/collections/client/listCollections.d.ts +0 -11
- package/dist/serialization/resources/collections/client/listCollections.js +0 -42
- package/dist/serialization/resources/collections/client/refreshAllSourceConnections.d.ts +0 -11
- package/dist/serialization/resources/collections/client/refreshAllSourceConnections.js +0 -42
- package/dist/serialization/resources/collections/client/requests/CollectionCreate.d.ts +0 -13
- package/dist/serialization/resources/collections/client/requests/CollectionCreate.js +0 -44
- package/dist/serialization/resources/collections/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/client/requests/index.js +0 -5
- package/dist/serialization/resources/collections/index.d.ts +0 -1
- package/dist/serialization/resources/collections/index.js +0 -17
- package/dist/serialization/resources/index.d.ts +0 -6
- package/dist/serialization/resources/index.js +0 -45
- package/dist/serialization/resources/sourceConnections/client/index.d.ts +0 -3
- package/dist/serialization/resources/sourceConnections/client/index.js +0 -42
- package/dist/serialization/resources/sourceConnections/client/listSourceConnectionJobs.d.ts +0 -11
- package/dist/serialization/resources/sourceConnections/client/listSourceConnectionJobs.js +0 -42
- package/dist/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +0 -11
- package/dist/serialization/resources/sourceConnections/client/listSourceConnections.js +0 -42
- package/dist/serialization/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +0 -12
- package/dist/serialization/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js +0 -43
- package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +0 -20
- package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +0 -51
- package/dist/serialization/resources/sourceConnections/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/sourceConnections/client/requests/index.js +0 -7
- package/dist/serialization/resources/sourceConnections/index.d.ts +0 -2
- package/dist/serialization/resources/sourceConnections/index.js +0 -18
- package/dist/serialization/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.d.ts +0 -11
- package/dist/serialization/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.js +0 -42
- package/dist/serialization/resources/sourceConnections/types/index.d.ts +0 -1
- package/dist/serialization/resources/sourceConnections/types/index.js +0 -17
- package/dist/serialization/resources/sources/client/index.d.ts +0 -1
- package/dist/serialization/resources/sources/client/index.js +0 -37
- package/dist/serialization/resources/sources/client/readSources.d.ts +0 -11
- package/dist/serialization/resources/sources/client/readSources.js +0 -42
- package/dist/serialization/resources/sources/index.d.ts +0 -1
- package/dist/serialization/resources/sources/index.js +0 -17
- package/dist/serialization/types/ApiKey.d.ts +0 -20
- package/dist/serialization/types/ApiKey.js +0 -51
- package/dist/serialization/types/ApiKeyCreate.d.ts +0 -12
- package/dist/serialization/types/ApiKeyCreate.js +0 -43
- package/dist/serialization/types/AuthType.d.ts +0 -10
- package/dist/serialization/types/AuthType.js +0 -50
- package/dist/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +0 -13
- package/dist/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -44
- package/dist/serialization/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +0 -15
- package/dist/serialization/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js +0 -46
- package/dist/serialization/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts +0 -14
- package/dist/serialization/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js +0 -45
- package/dist/serialization/types/Chat.d.ts +0 -25
- package/dist/serialization/types/Chat.js +0 -56
- package/dist/serialization/types/ChatCreate.d.ts +0 -17
- package/dist/serialization/types/ChatCreate.js +0 -48
- package/dist/serialization/types/ChatMessage.d.ts +0 -21
- package/dist/serialization/types/ChatMessage.js +0 -52
- package/dist/serialization/types/ChatMessageCreate.d.ts +0 -13
- package/dist/serialization/types/ChatMessageCreate.js +0 -44
- package/dist/serialization/types/ChatUpdate.d.ts +0 -15
- package/dist/serialization/types/ChatUpdate.js +0 -46
- package/dist/serialization/types/Collection.d.ts +0 -21
- package/dist/serialization/types/Collection.js +0 -52
- package/dist/serialization/types/CollectionStatus.d.ts +0 -10
- package/dist/serialization/types/CollectionStatus.js +0 -41
- package/dist/serialization/types/CollectionUpdate.d.ts +0 -12
- package/dist/serialization/types/CollectionUpdate.js +0 -43
- package/dist/serialization/types/ConfigField.d.ts +0 -15
- package/dist/serialization/types/ConfigField.js +0 -46
- package/dist/serialization/types/ConfigValues.d.ts +0 -10
- package/dist/serialization/types/ConfigValues.js +0 -41
- package/dist/serialization/types/Connection.d.ts +0 -22
- package/dist/serialization/types/Connection.js +0 -53
- package/dist/serialization/types/ConnectionStatus.d.ts +0 -10
- package/dist/serialization/types/ConnectionStatus.js +0 -41
- package/dist/serialization/types/DagEdge.d.ts +0 -18
- package/dist/serialization/types/DagEdge.js +0 -49
- package/dist/serialization/types/DagEdgeCreate.d.ts +0 -13
- package/dist/serialization/types/DagEdgeCreate.js +0 -44
- package/dist/serialization/types/DagNode.d.ts +0 -23
- package/dist/serialization/types/DagNode.js +0 -54
- package/dist/serialization/types/DagNodeCreate.d.ts +0 -19
- package/dist/serialization/types/DagNodeCreate.js +0 -50
- package/dist/serialization/types/Destination.d.ts +0 -25
- package/dist/serialization/types/Destination.js +0 -56
- package/dist/serialization/types/DestinationWithAuthenticationFields.d.ts +0 -27
- package/dist/serialization/types/DestinationWithAuthenticationFields.js +0 -58
- package/dist/serialization/types/EmbeddingModel.d.ts +0 -23
- package/dist/serialization/types/EmbeddingModel.js +0 -54
- package/dist/serialization/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -25
- package/dist/serialization/types/EmbeddingModelWithAuthenticationFields.js +0 -56
- package/dist/serialization/types/EntityCount.d.ts +0 -12
- package/dist/serialization/types/EntityCount.js +0 -43
- package/dist/serialization/types/EntityDefinition.d.ts +0 -22
- package/dist/serialization/types/EntityDefinition.js +0 -53
- package/dist/serialization/types/EntityDefinitionCreate.d.ts +0 -20
- package/dist/serialization/types/EntityDefinitionCreate.js +0 -51
- package/dist/serialization/types/EntityDefinitionCreateEntitySchema.d.ts +0 -10
- package/dist/serialization/types/EntityDefinitionCreateEntitySchema.js +0 -44
- package/dist/serialization/types/EntityDefinitionEntitySchema.d.ts +0 -10
- package/dist/serialization/types/EntityDefinitionEntitySchema.js +0 -44
- package/dist/serialization/types/EntityDefinitionUpdate.d.ts +0 -20
- package/dist/serialization/types/EntityDefinitionUpdate.js +0 -51
- package/dist/serialization/types/EntityDefinitionUpdateEntitySchema.d.ts +0 -10
- package/dist/serialization/types/EntityDefinitionUpdateEntitySchema.js +0 -44
- package/dist/serialization/types/EntityRelation.d.ts +0 -19
- package/dist/serialization/types/EntityRelation.js +0 -50
- package/dist/serialization/types/EntityRelationCreate.d.ts +0 -15
- package/dist/serialization/types/EntityRelationCreate.js +0 -46
- package/dist/serialization/types/EntityRelationUpdate.d.ts +0 -15
- package/dist/serialization/types/EntityRelationUpdate.js +0 -46
- package/dist/serialization/types/EntityType.d.ts +0 -10
- package/dist/serialization/types/EntityType.js +0 -41
- package/dist/serialization/types/Fields.d.ts +0 -13
- package/dist/serialization/types/Fields.js +0 -44
- package/dist/serialization/types/HttpValidationError.d.ts +0 -13
- package/dist/serialization/types/HttpValidationError.js +0 -44
- package/dist/serialization/types/IntegrationCredentialInDb.d.ts +0 -22
- package/dist/serialization/types/IntegrationCredentialInDb.js +0 -53
- package/dist/serialization/types/IntegrationCredentialRawCreate.d.ts +0 -20
- package/dist/serialization/types/IntegrationCredentialRawCreate.js +0 -51
- package/dist/serialization/types/IntegrationType.d.ts +0 -10
- package/dist/serialization/types/IntegrationType.js +0 -41
- package/dist/serialization/types/NodeType.d.ts +0 -10
- package/dist/serialization/types/NodeType.js +0 -41
- package/dist/serialization/types/OAuth2AuthUrl.d.ts +0 -12
- package/dist/serialization/types/OAuth2AuthUrl.js +0 -43
- package/dist/serialization/types/Organization.d.ts +0 -16
- package/dist/serialization/types/Organization.js +0 -47
- package/dist/serialization/types/ResponseType.d.ts +0 -10
- package/dist/serialization/types/ResponseType.js +0 -41
- package/dist/serialization/types/SearchResponse.d.ts +0 -17
- package/dist/serialization/types/SearchResponse.js +0 -48
- package/dist/serialization/types/SearchStatus.d.ts +0 -10
- package/dist/serialization/types/SearchStatus.js +0 -41
- package/dist/serialization/types/Source.d.ts +0 -29
- package/dist/serialization/types/Source.js +0 -60
- package/dist/serialization/types/SourceConnection.d.ts +0 -38
- package/dist/serialization/types/SourceConnection.js +0 -69
- package/dist/serialization/types/SourceConnectionAuthFields.d.ts +0 -11
- package/dist/serialization/types/SourceConnectionAuthFields.js +0 -42
- package/dist/serialization/types/SourceConnectionCreate.d.ts +0 -22
- package/dist/serialization/types/SourceConnectionCreate.js +0 -53
- package/dist/serialization/types/SourceConnectionJob.d.ts +0 -30
- package/dist/serialization/types/SourceConnectionJob.js +0 -61
- package/dist/serialization/types/SourceConnectionListItem.d.ts +0 -22
- package/dist/serialization/types/SourceConnectionListItem.js +0 -53
- package/dist/serialization/types/SourceConnectionStatus.d.ts +0 -10
- package/dist/serialization/types/SourceConnectionStatus.js +0 -41
- package/dist/serialization/types/Sync.d.ts +0 -27
- package/dist/serialization/types/Sync.js +0 -58
- package/dist/serialization/types/SyncCreate.d.ts +0 -22
- package/dist/serialization/types/SyncCreate.js +0 -53
- package/dist/serialization/types/SyncDag.d.ts +0 -22
- package/dist/serialization/types/SyncDag.js +0 -53
- package/dist/serialization/types/SyncDagCreate.d.ts +0 -18
- package/dist/serialization/types/SyncDagCreate.js +0 -49
- package/dist/serialization/types/SyncDagUpdate.d.ts +0 -18
- package/dist/serialization/types/SyncDagUpdate.js +0 -49
- package/dist/serialization/types/SyncJob.d.ts +0 -32
- package/dist/serialization/types/SyncJob.js +0 -63
- package/dist/serialization/types/SyncJobStatus.d.ts +0 -10
- package/dist/serialization/types/SyncJobStatus.js +0 -41
- package/dist/serialization/types/SyncStatus.d.ts +0 -10
- package/dist/serialization/types/SyncStatus.js +0 -41
- package/dist/serialization/types/SyncUpdate.d.ts +0 -17
- package/dist/serialization/types/SyncUpdate.js +0 -48
- package/dist/serialization/types/SyncWithSourceConnection.d.ts +0 -29
- package/dist/serialization/types/SyncWithSourceConnection.js +0 -60
- package/dist/serialization/types/Transformer.d.ts +0 -22
- package/dist/serialization/types/Transformer.js +0 -53
- package/dist/serialization/types/TransformerCreate.d.ts +0 -18
- package/dist/serialization/types/TransformerCreate.js +0 -49
- package/dist/serialization/types/TransformerUpdate.d.ts +0 -18
- package/dist/serialization/types/TransformerUpdate.js +0 -49
- package/dist/serialization/types/User.d.ts +0 -16
- package/dist/serialization/types/User.js +0 -47
- package/dist/serialization/types/UserCreate.d.ts +0 -14
- package/dist/serialization/types/UserCreate.js +0 -45
- package/dist/serialization/types/ValidationError.d.ts +0 -15
- package/dist/serialization/types/ValidationError.js +0 -46
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +0 -10
- package/dist/serialization/types/ValidationErrorLocItem.js +0 -41
- package/dist/serialization/types/WhiteLabel.d.ts +0 -23
- package/dist/serialization/types/WhiteLabel.js +0 -54
- package/dist/serialization/types/WhiteLabelCreate.d.ts +0 -17
- package/dist/serialization/types/WhiteLabelCreate.js +0 -48
- package/dist/serialization/types/WhiteLabelUpdate.d.ts +0 -16
- package/dist/serialization/types/WhiteLabelUpdate.js +0 -47
- package/dist/serialization/types/index.d.ts +0 -75
- package/dist/serialization/types/index.js +0 -91
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/environments.js +0 -10
- package/errors/AirweaveSDKError.d.ts +0 -12
- package/errors/AirweaveSDKError.js +0 -32
- package/errors/AirweaveSDKTimeoutError.js +0 -13
- package/errors/index.d.ts +0 -2
- package/errors/index.js +0 -7
- package/index.d.ts +0 -4
- package/index.js +0 -44
- package/jest.config.js +0 -5
- package/serialization/index.d.ts +0 -2
- package/serialization/index.js +0 -18
- package/serialization/resources/collections/client/index.d.ts +0 -3
- package/serialization/resources/collections/client/index.js +0 -42
- package/serialization/resources/collections/client/listCollections.d.ts +0 -11
- package/serialization/resources/collections/client/listCollections.js +0 -42
- package/serialization/resources/collections/client/refreshAllSourceConnections.d.ts +0 -11
- package/serialization/resources/collections/client/refreshAllSourceConnections.js +0 -42
- package/serialization/resources/collections/client/requests/CollectionCreate.d.ts +0 -13
- package/serialization/resources/collections/client/requests/CollectionCreate.js +0 -44
- package/serialization/resources/collections/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/client/requests/index.js +0 -5
- package/serialization/resources/collections/index.d.ts +0 -1
- package/serialization/resources/collections/index.js +0 -17
- package/serialization/resources/index.d.ts +0 -6
- package/serialization/resources/index.js +0 -45
- package/serialization/resources/sourceConnections/client/index.d.ts +0 -3
- package/serialization/resources/sourceConnections/client/index.js +0 -42
- package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.d.ts +0 -11
- package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.js +0 -42
- package/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +0 -11
- package/serialization/resources/sourceConnections/client/listSourceConnections.js +0 -42
- package/serialization/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +0 -12
- package/serialization/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js +0 -43
- package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +0 -20
- package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +0 -51
- package/serialization/resources/sourceConnections/client/requests/index.d.ts +0 -2
- package/serialization/resources/sourceConnections/client/requests/index.js +0 -7
- package/serialization/resources/sourceConnections/index.d.ts +0 -2
- package/serialization/resources/sourceConnections/index.js +0 -18
- package/serialization/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.d.ts +0 -11
- package/serialization/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.js +0 -42
- package/serialization/resources/sourceConnections/types/index.d.ts +0 -1
- package/serialization/resources/sourceConnections/types/index.js +0 -17
- package/serialization/resources/sources/client/index.d.ts +0 -1
- package/serialization/resources/sources/client/index.js +0 -37
- package/serialization/resources/sources/client/readSources.d.ts +0 -11
- package/serialization/resources/sources/client/readSources.js +0 -42
- package/serialization/resources/sources/index.d.ts +0 -1
- package/serialization/resources/sources/index.js +0 -17
- package/serialization/types/ApiKey.d.ts +0 -20
- package/serialization/types/ApiKey.js +0 -51
- package/serialization/types/ApiKeyCreate.d.ts +0 -12
- package/serialization/types/ApiKeyCreate.js +0 -43
- package/serialization/types/AuthType.d.ts +0 -10
- package/serialization/types/AuthType.js +0 -50
- package/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +0 -13
- package/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -44
- package/serialization/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +0 -15
- package/serialization/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js +0 -46
- package/serialization/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts +0 -14
- package/serialization/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js +0 -45
- package/serialization/types/Chat.d.ts +0 -25
- package/serialization/types/Chat.js +0 -56
- package/serialization/types/ChatCreate.d.ts +0 -17
- package/serialization/types/ChatCreate.js +0 -48
- package/serialization/types/ChatMessage.d.ts +0 -21
- package/serialization/types/ChatMessage.js +0 -52
- package/serialization/types/ChatMessageCreate.d.ts +0 -13
- package/serialization/types/ChatMessageCreate.js +0 -44
- package/serialization/types/ChatUpdate.d.ts +0 -15
- package/serialization/types/ChatUpdate.js +0 -46
- package/serialization/types/Collection.d.ts +0 -21
- package/serialization/types/Collection.js +0 -52
- package/serialization/types/CollectionStatus.d.ts +0 -10
- package/serialization/types/CollectionStatus.js +0 -41
- package/serialization/types/CollectionUpdate.d.ts +0 -12
- package/serialization/types/CollectionUpdate.js +0 -43
- package/serialization/types/ConfigField.d.ts +0 -15
- package/serialization/types/ConfigField.js +0 -46
- package/serialization/types/ConfigValues.d.ts +0 -10
- package/serialization/types/ConfigValues.js +0 -41
- package/serialization/types/Connection.d.ts +0 -22
- package/serialization/types/Connection.js +0 -53
- package/serialization/types/ConnectionStatus.d.ts +0 -10
- package/serialization/types/ConnectionStatus.js +0 -41
- package/serialization/types/DagEdge.d.ts +0 -18
- package/serialization/types/DagEdge.js +0 -49
- package/serialization/types/DagEdgeCreate.d.ts +0 -13
- package/serialization/types/DagEdgeCreate.js +0 -44
- package/serialization/types/DagNode.d.ts +0 -23
- package/serialization/types/DagNode.js +0 -54
- package/serialization/types/DagNodeCreate.d.ts +0 -19
- package/serialization/types/DagNodeCreate.js +0 -50
- package/serialization/types/Destination.d.ts +0 -25
- package/serialization/types/Destination.js +0 -56
- package/serialization/types/DestinationWithAuthenticationFields.d.ts +0 -27
- package/serialization/types/DestinationWithAuthenticationFields.js +0 -58
- package/serialization/types/EmbeddingModel.d.ts +0 -23
- package/serialization/types/EmbeddingModel.js +0 -54
- package/serialization/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -25
- package/serialization/types/EmbeddingModelWithAuthenticationFields.js +0 -56
- package/serialization/types/EntityCount.d.ts +0 -12
- package/serialization/types/EntityCount.js +0 -43
- package/serialization/types/EntityDefinition.d.ts +0 -22
- package/serialization/types/EntityDefinition.js +0 -53
- package/serialization/types/EntityDefinitionCreate.d.ts +0 -20
- package/serialization/types/EntityDefinitionCreate.js +0 -51
- package/serialization/types/EntityDefinitionCreateEntitySchema.d.ts +0 -10
- package/serialization/types/EntityDefinitionCreateEntitySchema.js +0 -44
- package/serialization/types/EntityDefinitionEntitySchema.d.ts +0 -10
- package/serialization/types/EntityDefinitionEntitySchema.js +0 -44
- package/serialization/types/EntityDefinitionUpdate.d.ts +0 -20
- package/serialization/types/EntityDefinitionUpdate.js +0 -51
- package/serialization/types/EntityDefinitionUpdateEntitySchema.d.ts +0 -10
- package/serialization/types/EntityDefinitionUpdateEntitySchema.js +0 -44
- package/serialization/types/EntityRelation.d.ts +0 -19
- package/serialization/types/EntityRelation.js +0 -50
- package/serialization/types/EntityRelationCreate.d.ts +0 -15
- package/serialization/types/EntityRelationCreate.js +0 -46
- package/serialization/types/EntityRelationUpdate.d.ts +0 -15
- package/serialization/types/EntityRelationUpdate.js +0 -46
- package/serialization/types/EntityType.d.ts +0 -10
- package/serialization/types/EntityType.js +0 -41
- package/serialization/types/Fields.d.ts +0 -13
- package/serialization/types/Fields.js +0 -44
- package/serialization/types/HttpValidationError.d.ts +0 -13
- package/serialization/types/HttpValidationError.js +0 -44
- package/serialization/types/IntegrationCredentialInDb.d.ts +0 -22
- package/serialization/types/IntegrationCredentialInDb.js +0 -53
- package/serialization/types/IntegrationCredentialRawCreate.d.ts +0 -20
- package/serialization/types/IntegrationCredentialRawCreate.js +0 -51
- package/serialization/types/IntegrationType.d.ts +0 -10
- package/serialization/types/IntegrationType.js +0 -41
- package/serialization/types/NodeType.d.ts +0 -10
- package/serialization/types/NodeType.js +0 -41
- package/serialization/types/OAuth2AuthUrl.d.ts +0 -12
- package/serialization/types/OAuth2AuthUrl.js +0 -43
- package/serialization/types/Organization.d.ts +0 -16
- package/serialization/types/Organization.js +0 -47
- package/serialization/types/ResponseType.d.ts +0 -10
- package/serialization/types/ResponseType.js +0 -41
- package/serialization/types/SearchResponse.d.ts +0 -17
- package/serialization/types/SearchResponse.js +0 -48
- package/serialization/types/SearchStatus.d.ts +0 -10
- package/serialization/types/SearchStatus.js +0 -41
- package/serialization/types/Source.d.ts +0 -29
- package/serialization/types/Source.js +0 -60
- package/serialization/types/SourceConnection.d.ts +0 -38
- package/serialization/types/SourceConnection.js +0 -69
- package/serialization/types/SourceConnectionAuthFields.d.ts +0 -11
- package/serialization/types/SourceConnectionAuthFields.js +0 -42
- package/serialization/types/SourceConnectionCreate.d.ts +0 -22
- package/serialization/types/SourceConnectionCreate.js +0 -53
- package/serialization/types/SourceConnectionJob.d.ts +0 -30
- package/serialization/types/SourceConnectionJob.js +0 -61
- package/serialization/types/SourceConnectionListItem.d.ts +0 -22
- package/serialization/types/SourceConnectionListItem.js +0 -53
- package/serialization/types/SourceConnectionStatus.d.ts +0 -10
- package/serialization/types/SourceConnectionStatus.js +0 -41
- package/serialization/types/Sync.d.ts +0 -27
- package/serialization/types/Sync.js +0 -58
- package/serialization/types/SyncCreate.d.ts +0 -22
- package/serialization/types/SyncCreate.js +0 -53
- package/serialization/types/SyncDag.d.ts +0 -22
- package/serialization/types/SyncDag.js +0 -53
- package/serialization/types/SyncDagCreate.d.ts +0 -18
- package/serialization/types/SyncDagCreate.js +0 -49
- package/serialization/types/SyncDagUpdate.d.ts +0 -18
- package/serialization/types/SyncDagUpdate.js +0 -49
- package/serialization/types/SyncJob.d.ts +0 -32
- package/serialization/types/SyncJob.js +0 -63
- package/serialization/types/SyncJobStatus.d.ts +0 -10
- package/serialization/types/SyncJobStatus.js +0 -41
- package/serialization/types/SyncStatus.d.ts +0 -10
- package/serialization/types/SyncStatus.js +0 -41
- package/serialization/types/SyncUpdate.d.ts +0 -17
- package/serialization/types/SyncUpdate.js +0 -48
- package/serialization/types/SyncWithSourceConnection.d.ts +0 -29
- package/serialization/types/SyncWithSourceConnection.js +0 -60
- package/serialization/types/Transformer.d.ts +0 -22
- package/serialization/types/Transformer.js +0 -53
- package/serialization/types/TransformerCreate.d.ts +0 -18
- package/serialization/types/TransformerCreate.js +0 -49
- package/serialization/types/TransformerUpdate.d.ts +0 -18
- package/serialization/types/TransformerUpdate.js +0 -49
- package/serialization/types/User.d.ts +0 -16
- package/serialization/types/User.js +0 -47
- package/serialization/types/UserCreate.d.ts +0 -14
- package/serialization/types/UserCreate.js +0 -45
- package/serialization/types/ValidationError.d.ts +0 -15
- package/serialization/types/ValidationError.js +0 -46
- package/serialization/types/ValidationErrorLocItem.d.ts +0 -10
- package/serialization/types/ValidationErrorLocItem.js +0 -41
- package/serialization/types/WhiteLabel.d.ts +0 -23
- package/serialization/types/WhiteLabel.js +0 -54
- package/serialization/types/WhiteLabelCreate.d.ts +0 -17
- package/serialization/types/WhiteLabelCreate.js +0 -48
- package/serialization/types/WhiteLabelUpdate.d.ts +0 -16
- package/serialization/types/WhiteLabelUpdate.js +0 -47
- package/serialization/types/index.d.ts +0 -75
- package/serialization/types/index.js +0 -91
- package/version.d.ts +0 -1
- package/version.js +0 -4
- /package/{api → dist/cjs/api}/resources/collections/client/requests/CollectionCreate.js +0 -0
- /package/{api/types → dist/cjs/api/resources/collections/client/requests}/CollectionUpdate.js +0 -0
- /package/{api → dist/cjs/api}/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/collections/client/requests/index.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js +0 -0
- /package/{api/types → dist/cjs/api/resources/sourceConnections/client/requests}/SourceConnectionCreate.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/index.js +0 -0
- /package/{api → dist/cjs/api}/resources/sources/client/index.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/sources/client/index.js +0 -0
- /package/{api/types → dist/cjs/api/resources/whiteLabels/client/requests}/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js +0 -0
- /package/{api/types → dist/cjs/api/resources/whiteLabels/client/requests}/WhiteLabelCreate.js +0 -0
- /package/{api/types → dist/cjs/api/resources/whiteLabels/client/requests}/WhiteLabelUpdate.js +0 -0
- /package/dist/{api/resources/collections → cjs/api/resources/whiteLabels}/client/requests/index.js +0 -0
- /package/{api → dist/cjs/api}/types/ApiKey.js +0 -0
- /package/{api → dist/cjs/api}/types/ApiKeyCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/AuthType.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/AuthType.js +0 -0
- /package/{api → dist/cjs/api}/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -0
- /package/{api → dist/cjs/api}/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js +0 -0
- /package/{api → dist/cjs/api}/types/Collection.js +0 -0
- /package/{api → dist/cjs/api}/types/CollectionStatus.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/CollectionStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/ConfigField.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/ConfigField.js +0 -0
- /package/{api → dist/cjs/api}/types/ConfigValues.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/ConfigValues.js +0 -0
- /package/{api → dist/cjs/api}/types/Connection.js +0 -0
- /package/{api → dist/cjs/api}/types/ConnectionStatus.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/ConnectionStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/DagEdge.js +0 -0
- /package/{api → dist/cjs/api}/types/DagEdgeCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/DagNode.js +0 -0
- /package/{api → dist/cjs/api}/types/DagNodeCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/Destination.js +0 -0
- /package/{api → dist/cjs/api}/types/DestinationWithAuthenticationFields.js +0 -0
- /package/{api → dist/cjs/api}/types/EmbeddingModel.js +0 -0
- /package/{api → dist/cjs/api}/types/EmbeddingModelWithAuthenticationFields.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityCount.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/EntityCount.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityDefinition.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityDefinitionCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityDefinitionUpdate.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityType.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/EntityType.js +0 -0
- /package/{api → dist/cjs/api}/types/Fields.js +0 -0
- /package/{api → dist/cjs/api}/types/HttpValidationError.js +0 -0
- /package/{api → dist/cjs/api}/types/IntegrationCredentialInDb.js +0 -0
- /package/{api → dist/cjs/api}/types/IntegrationCredentialRawCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/IntegrationType.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/IntegrationType.js +0 -0
- /package/{api/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.js → dist/cjs/api/types/InvitationCreate.js} +0 -0
- /package/{api/types/Chat.js → dist/cjs/api/types/InvitationResponse.js} +0 -0
- /package/{api/types/ChatCreate.js → dist/cjs/api/types/MemberResponse.js} +0 -0
- /package/{api → dist/cjs/api}/types/NodeType.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/NodeType.js +0 -0
- /package/{api → dist/cjs/api}/types/OAuth2AuthUrl.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/OAuth2AuthUrl.js +0 -0
- /package/{api → dist/cjs/api}/types/Organization.js +0 -0
- /package/{api/types/ChatMessage.js → dist/cjs/api/types/OrganizationCreate.js} +0 -0
- /package/{api/types/ChatMessageCreate.js → dist/cjs/api/types/OrganizationWithRole.js} +0 -0
- /package/{api → dist/cjs/api}/types/ResponseType.js +0 -0
- /package/{api → dist/cjs/api}/types/SearchResponse.js +0 -0
- /package/{api → dist/cjs/api}/types/SearchStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/Source.js +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnection.js +0 -0
- /package/{api/types/ChatUpdate.js → dist/cjs/api/types/SourceConnectionCreateWithCredential.js} +0 -0
- /package/{api/types/EntityDefinitionCreateEntitySchema.js → dist/cjs/api/types/SourceConnectionCreateWithWhiteLabel.js} +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnectionJob.js +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnectionListItem.js +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnectionStatus.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnectionStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/Sync.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncDag.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncDagCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncDagUpdate.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncJob.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncStatus.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/SyncStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncUpdate.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncWithSourceConnection.js +0 -0
- /package/{api → dist/cjs/api}/types/Transformer.js +0 -0
- /package/{api → dist/cjs/api}/types/TransformerCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/TransformerUpdate.js +0 -0
- /package/{api → dist/cjs/api}/types/User.js +0 -0
- /package/{api → dist/cjs/api}/types/UserCreate.js +0 -0
- /package/{api/types/EntityDefinitionEntitySchema.js → dist/cjs/api/types/UserOrganization.js} +0 -0
- /package/{api → dist/cjs/api}/types/ValidationError.js +0 -0
- /package/{api → dist/cjs/api}/types/WhiteLabel.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/APIResponse.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/Supplier.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/Supplier.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/getFetchFn.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/getHeader.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/getHeader.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/getRequestBody.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/getResponseBody.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/makeRequest.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/requestWithRetries.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/signals.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/signals.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -0
- /package/dist/{environments.d.ts → cjs/environments.d.ts} +0 -0
- /package/dist/{environments.js → cjs/environments.js} +0 -0
- /package/dist/{errors → cjs/errors}/AirweaveSDKTimeoutError.d.ts +0 -0
- /package/dist/{errors → cjs/errors}/AirweaveSDKTimeoutError.js +0 -0
- /package/dist/{api/resources/sources/client/index.d.ts → esm/api/resources/collections/client/requests/index.mjs} +0 -0
- /package/dist/{api/types/AuthType.d.ts → esm/api/types/AuthType.d.mts} +0 -0
- /package/dist/{api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts → esm/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.mts} +0 -0
- /package/dist/{api/types/CollectionStatus.d.ts → esm/api/types/CollectionStatus.d.mts} +0 -0
- /package/dist/{api/types/ConfigField.d.ts → esm/api/types/ConfigField.d.mts} +0 -0
- /package/dist/{api/types/ConfigValues.d.ts → esm/api/types/ConfigValues.d.mts} +0 -0
- /package/dist/{api/types/ConnectionStatus.d.ts → esm/api/types/ConnectionStatus.d.mts} +0 -0
- /package/dist/{api/types/EntityCount.d.ts → esm/api/types/EntityCount.d.mts} +0 -0
- /package/dist/{api/types/EntityType.d.ts → esm/api/types/EntityType.d.mts} +0 -0
- /package/dist/{api/types/IntegrationType.d.ts → esm/api/types/IntegrationType.d.mts} +0 -0
- /package/dist/{api/types/NodeType.d.ts → esm/api/types/NodeType.d.mts} +0 -0
- /package/dist/{api/types/OAuth2AuthUrl.d.ts → esm/api/types/OAuth2AuthUrl.d.mts} +0 -0
- /package/dist/{api/types/SourceConnectionStatus.d.ts → esm/api/types/SourceConnectionStatus.d.mts} +0 -0
- /package/dist/{api/types/SyncStatus.d.ts → esm/api/types/SyncStatus.d.mts} +0 -0
- /package/dist/{core/fetcher/Supplier.d.ts → esm/core/fetcher/Supplier.d.mts} +0 -0
- /package/dist/{core/fetcher/getFetchFn.d.ts → esm/core/fetcher/getFetchFn.d.mts} +0 -0
- /package/dist/{core/fetcher/getHeader.d.ts → esm/core/fetcher/getHeader.d.mts} +0 -0
- /package/dist/{core/fetcher/getRequestBody.d.ts → esm/core/fetcher/getRequestBody.d.mts} +0 -0
- /package/dist/{core/fetcher/getResponseBody.d.ts → esm/core/fetcher/getResponseBody.d.mts} +0 -0
- /package/dist/{core/fetcher/makeRequest.d.ts → esm/core/fetcher/makeRequest.d.mts} +0 -0
- /package/dist/{core/fetcher/requestWithRetries.d.ts → esm/core/fetcher/requestWithRetries.d.mts} +0 -0
- /package/dist/{core/fetcher/signals.d.ts → esm/core/fetcher/signals.d.mts} +0 -0
- /package/dist/{core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts → esm/core/fetcher/stream-wrappers/chooseStreamWrapper.d.mts} +0 -0
- /package/{environments.d.ts → dist/esm/environments.d.mts} +0 -0
- /package/{errors/AirweaveSDKTimeoutError.d.ts → dist/esm/errors/AirweaveSDKTimeoutError.d.mts} +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
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("./ApiKey.js"), exports);
|
|
18
|
+
__exportStar(require("./ApiKeyCreate.js"), exports);
|
|
19
|
+
__exportStar(require("./AuthType.js"), exports);
|
|
20
|
+
__exportStar(require("./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js"), exports);
|
|
21
|
+
__exportStar(require("./BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js"), exports);
|
|
22
|
+
__exportStar(require("./Collection.js"), exports);
|
|
23
|
+
__exportStar(require("./CollectionStatus.js"), exports);
|
|
24
|
+
__exportStar(require("./ConfigField.js"), exports);
|
|
25
|
+
__exportStar(require("./ConfigValues.js"), exports);
|
|
26
|
+
__exportStar(require("./Connection.js"), exports);
|
|
27
|
+
__exportStar(require("./ConnectionStatus.js"), exports);
|
|
28
|
+
__exportStar(require("./DagEdge.js"), exports);
|
|
29
|
+
__exportStar(require("./DagEdgeCreate.js"), exports);
|
|
30
|
+
__exportStar(require("./DagNode.js"), exports);
|
|
31
|
+
__exportStar(require("./DagNodeCreate.js"), exports);
|
|
32
|
+
__exportStar(require("./Destination.js"), exports);
|
|
33
|
+
__exportStar(require("./DestinationWithAuthenticationFields.js"), exports);
|
|
34
|
+
__exportStar(require("./EmbeddingModel.js"), exports);
|
|
35
|
+
__exportStar(require("./EmbeddingModelWithAuthenticationFields.js"), exports);
|
|
36
|
+
__exportStar(require("./EntityCount.js"), exports);
|
|
37
|
+
__exportStar(require("./EntityDefinition.js"), exports);
|
|
38
|
+
__exportStar(require("./EntityDefinitionCreate.js"), exports);
|
|
39
|
+
__exportStar(require("./EntityDefinitionUpdate.js"), exports);
|
|
40
|
+
__exportStar(require("./EntityType.js"), exports);
|
|
41
|
+
__exportStar(require("./Fields.js"), exports);
|
|
42
|
+
__exportStar(require("./HttpValidationError.js"), exports);
|
|
43
|
+
__exportStar(require("./IntegrationCredentialInDb.js"), exports);
|
|
44
|
+
__exportStar(require("./IntegrationCredentialRawCreate.js"), exports);
|
|
45
|
+
__exportStar(require("./IntegrationType.js"), exports);
|
|
46
|
+
__exportStar(require("./InvitationCreate.js"), exports);
|
|
47
|
+
__exportStar(require("./InvitationResponse.js"), exports);
|
|
48
|
+
__exportStar(require("./MemberResponse.js"), exports);
|
|
49
|
+
__exportStar(require("./NodeType.js"), exports);
|
|
50
|
+
__exportStar(require("./OAuth2AuthUrl.js"), exports);
|
|
51
|
+
__exportStar(require("./Organization.js"), exports);
|
|
52
|
+
__exportStar(require("./OrganizationCreate.js"), exports);
|
|
53
|
+
__exportStar(require("./OrganizationWithRole.js"), exports);
|
|
54
|
+
__exportStar(require("./ResponseType.js"), exports);
|
|
55
|
+
__exportStar(require("./SearchResponse.js"), exports);
|
|
56
|
+
__exportStar(require("./SearchStatus.js"), exports);
|
|
57
|
+
__exportStar(require("./Source.js"), exports);
|
|
58
|
+
__exportStar(require("./SourceConnection.js"), exports);
|
|
59
|
+
__exportStar(require("./SourceConnectionCreateWithCredential.js"), exports);
|
|
60
|
+
__exportStar(require("./SourceConnectionCreateWithWhiteLabel.js"), exports);
|
|
61
|
+
__exportStar(require("./SourceConnectionJob.js"), exports);
|
|
62
|
+
__exportStar(require("./SourceConnectionListItem.js"), exports);
|
|
63
|
+
__exportStar(require("./SourceConnectionStatus.js"), exports);
|
|
64
|
+
__exportStar(require("./Sync.js"), exports);
|
|
65
|
+
__exportStar(require("./SyncCreate.js"), exports);
|
|
66
|
+
__exportStar(require("./SyncDag.js"), exports);
|
|
67
|
+
__exportStar(require("./SyncDagCreate.js"), exports);
|
|
68
|
+
__exportStar(require("./SyncDagUpdate.js"), exports);
|
|
69
|
+
__exportStar(require("./SyncJob.js"), exports);
|
|
70
|
+
__exportStar(require("./SyncJobStatus.js"), exports);
|
|
71
|
+
__exportStar(require("./SyncStatus.js"), exports);
|
|
72
|
+
__exportStar(require("./SyncUpdate.js"), exports);
|
|
73
|
+
__exportStar(require("./SyncWithSourceConnection.js"), exports);
|
|
74
|
+
__exportStar(require("./Transformer.js"), exports);
|
|
75
|
+
__exportStar(require("./TransformerCreate.js"), exports);
|
|
76
|
+
__exportStar(require("./TransformerUpdate.js"), exports);
|
|
77
|
+
__exportStar(require("./User.js"), exports);
|
|
78
|
+
__exportStar(require("./UserCreate.js"), exports);
|
|
79
|
+
__exportStar(require("./UserOrganization.js"), exports);
|
|
80
|
+
__exportStar(require("./ValidationError.js"), exports);
|
|
81
|
+
__exportStar(require("./WhiteLabel.js"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RawResponse } from "./RawResponse.js";
|
|
2
|
+
/**
|
|
3
|
+
* The response of an API call.
|
|
4
|
+
* It is a successful response or a failed response.
|
|
5
|
+
*/
|
|
6
|
+
export type APIResponse<Success, Failure> = SuccessfulResponse<Success> | FailedResponse<Failure>;
|
|
7
|
+
export interface SuccessfulResponse<T> {
|
|
8
|
+
ok: true;
|
|
9
|
+
body: T;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `rawResponse` instead
|
|
12
|
+
*/
|
|
13
|
+
headers?: Record<string, any>;
|
|
14
|
+
rawResponse: RawResponse;
|
|
15
|
+
}
|
|
16
|
+
export interface FailedResponse<T> {
|
|
17
|
+
ok: false;
|
|
18
|
+
error: T;
|
|
19
|
+
rawResponse: RawResponse;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ResponseWithBody } from "./ResponseWithBody.js";
|
|
2
|
+
export interface BinaryResponse {
|
|
3
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
|
|
4
|
+
bodyUsed: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Returns a ReadableStream of the response body.
|
|
7
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
|
|
8
|
+
*/
|
|
9
|
+
stream: () => ReadableStream<Uint8Array>;
|
|
10
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
|
|
11
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
12
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
|
|
13
|
+
blob: () => Promise<Blob>;
|
|
14
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
|
|
15
|
+
bytes(): Promise<Uint8Array>;
|
|
16
|
+
}
|
|
17
|
+
export declare function getBinaryResponse(response: ResponseWithBody): BinaryResponse;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBinaryResponse = getBinaryResponse;
|
|
4
|
+
function getBinaryResponse(response) {
|
|
5
|
+
return {
|
|
6
|
+
get bodyUsed() {
|
|
7
|
+
return response.bodyUsed;
|
|
8
|
+
},
|
|
9
|
+
stream: () => response.body,
|
|
10
|
+
arrayBuffer: response.arrayBuffer.bind(response),
|
|
11
|
+
blob: response.blob.bind(response),
|
|
12
|
+
bytes: response.bytes.bind(response),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { APIResponse } from "./APIResponse.js";
|
|
2
|
+
import { Supplier } from "./Supplier.js";
|
|
3
|
+
export type FetchFunction = <R = unknown>(args: Fetcher.Args) => Promise<APIResponse<R, Fetcher.Error>>;
|
|
4
|
+
export declare namespace Fetcher {
|
|
5
|
+
interface Args {
|
|
6
|
+
url: string;
|
|
7
|
+
method: string;
|
|
8
|
+
contentType?: string;
|
|
9
|
+
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
10
|
+
queryParameters?: Record<string, string | string[] | object | object[] | null>;
|
|
11
|
+
body?: unknown;
|
|
12
|
+
timeoutMs?: number;
|
|
13
|
+
maxRetries?: number;
|
|
14
|
+
withCredentials?: boolean;
|
|
15
|
+
abortSignal?: AbortSignal;
|
|
16
|
+
requestType?: "json" | "file" | "bytes";
|
|
17
|
+
responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer" | "binary-response";
|
|
18
|
+
duplex?: "half";
|
|
19
|
+
}
|
|
20
|
+
type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
|
|
21
|
+
interface FailedStatusCodeError {
|
|
22
|
+
reason: "status-code";
|
|
23
|
+
statusCode: number;
|
|
24
|
+
body: unknown;
|
|
25
|
+
}
|
|
26
|
+
interface NonJsonError {
|
|
27
|
+
reason: "non-json";
|
|
28
|
+
statusCode: number;
|
|
29
|
+
rawBody: string;
|
|
30
|
+
}
|
|
31
|
+
interface TimeoutError {
|
|
32
|
+
reason: "timeout";
|
|
33
|
+
}
|
|
34
|
+
interface UnknownError {
|
|
35
|
+
reason: "unknown";
|
|
36
|
+
errorMessage: string;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export declare function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>>;
|
|
40
|
+
export declare const fetcher: FetchFunction;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.fetcher = void 0;
|
|
13
|
+
exports.fetcherImpl = fetcherImpl;
|
|
14
|
+
const json_js_1 = require("../json.js");
|
|
15
|
+
const RawResponse_js_1 = require("./RawResponse.js");
|
|
16
|
+
const Supplier_js_1 = require("./Supplier.js");
|
|
17
|
+
const createRequestUrl_js_1 = require("./createRequestUrl.js");
|
|
18
|
+
const getFetchFn_js_1 = require("./getFetchFn.js");
|
|
19
|
+
const getRequestBody_js_1 = require("./getRequestBody.js");
|
|
20
|
+
const getResponseBody_js_1 = require("./getResponseBody.js");
|
|
21
|
+
const makeRequest_js_1 = require("./makeRequest.js");
|
|
22
|
+
const requestWithRetries_js_1 = require("./requestWithRetries.js");
|
|
23
|
+
function getHeaders(args) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const newHeaders = {};
|
|
26
|
+
if (args.body !== undefined && args.contentType != null) {
|
|
27
|
+
newHeaders["Content-Type"] = args.contentType;
|
|
28
|
+
}
|
|
29
|
+
if (args.headers == null) {
|
|
30
|
+
return newHeaders;
|
|
31
|
+
}
|
|
32
|
+
for (const [key, value] of Object.entries(args.headers)) {
|
|
33
|
+
const result = yield Supplier_js_1.Supplier.get(value);
|
|
34
|
+
if (typeof result === "string") {
|
|
35
|
+
newHeaders[key] = result;
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
if (result == null) {
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
newHeaders[key] = `${result}`;
|
|
42
|
+
}
|
|
43
|
+
return newHeaders;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function fetcherImpl(args) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
const url = (0, createRequestUrl_js_1.createRequestUrl)(args.url, args.queryParameters);
|
|
49
|
+
const requestBody = yield (0, getRequestBody_js_1.getRequestBody)({
|
|
50
|
+
body: args.body,
|
|
51
|
+
type: args.requestType === "json" ? "json" : "other",
|
|
52
|
+
});
|
|
53
|
+
const fetchFn = yield (0, getFetchFn_js_1.getFetchFn)();
|
|
54
|
+
try {
|
|
55
|
+
const response = yield (0, requestWithRetries_js_1.requestWithRetries)(() => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return (0, makeRequest_js_1.makeRequest)(fetchFn, url, args.method, yield getHeaders(args), requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex);
|
|
57
|
+
}), args.maxRetries);
|
|
58
|
+
const responseBody = yield (0, getResponseBody_js_1.getResponseBody)(response, args.responseType);
|
|
59
|
+
if (response.status >= 200 && response.status < 400) {
|
|
60
|
+
return {
|
|
61
|
+
ok: true,
|
|
62
|
+
body: responseBody,
|
|
63
|
+
headers: response.headers,
|
|
64
|
+
rawResponse: (0, RawResponse_js_1.toRawResponse)(response),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return {
|
|
69
|
+
ok: false,
|
|
70
|
+
error: {
|
|
71
|
+
reason: "status-code",
|
|
72
|
+
statusCode: response.status,
|
|
73
|
+
body: responseBody,
|
|
74
|
+
},
|
|
75
|
+
rawResponse: (0, RawResponse_js_1.toRawResponse)(response),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
if (args.abortSignal != null && args.abortSignal.aborted) {
|
|
81
|
+
return {
|
|
82
|
+
ok: false,
|
|
83
|
+
error: {
|
|
84
|
+
reason: "unknown",
|
|
85
|
+
errorMessage: "The user aborted a request",
|
|
86
|
+
},
|
|
87
|
+
rawResponse: RawResponse_js_1.abortRawResponse,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
else if (error instanceof Error && error.name === "AbortError") {
|
|
91
|
+
return {
|
|
92
|
+
ok: false,
|
|
93
|
+
error: {
|
|
94
|
+
reason: "timeout",
|
|
95
|
+
},
|
|
96
|
+
rawResponse: RawResponse_js_1.abortRawResponse,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
else if (error instanceof Error) {
|
|
100
|
+
return {
|
|
101
|
+
ok: false,
|
|
102
|
+
error: {
|
|
103
|
+
reason: "unknown",
|
|
104
|
+
errorMessage: error.message,
|
|
105
|
+
},
|
|
106
|
+
rawResponse: RawResponse_js_1.unknownRawResponse,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
ok: false,
|
|
111
|
+
error: {
|
|
112
|
+
reason: "unknown",
|
|
113
|
+
errorMessage: (0, json_js_1.toJson)(error),
|
|
114
|
+
},
|
|
115
|
+
rawResponse: RawResponse_js_1.unknownRawResponse,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
exports.fetcher = fetcherImpl;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Headers = void 0;
|
|
4
|
+
let Headers;
|
|
5
|
+
if (typeof globalThis.Headers !== "undefined") {
|
|
6
|
+
exports.Headers = Headers = globalThis.Headers;
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
exports.Headers = Headers = class Headers {
|
|
10
|
+
constructor(init) {
|
|
11
|
+
this.headers = new Map();
|
|
12
|
+
if (init) {
|
|
13
|
+
if (init instanceof Headers) {
|
|
14
|
+
init.forEach((value, key) => this.append(key, value));
|
|
15
|
+
}
|
|
16
|
+
else if (Array.isArray(init)) {
|
|
17
|
+
for (const [key, value] of init) {
|
|
18
|
+
if (typeof key === "string" && typeof value === "string") {
|
|
19
|
+
this.append(key, value);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
throw new TypeError("Each header entry must be a [string, string] tuple");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
for (const [key, value] of Object.entries(init)) {
|
|
28
|
+
if (typeof value === "string") {
|
|
29
|
+
this.append(key, value);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
throw new TypeError("Header values must be strings");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
append(name, value) {
|
|
39
|
+
const key = name.toLowerCase();
|
|
40
|
+
const existing = this.headers.get(key) || [];
|
|
41
|
+
this.headers.set(key, [...existing, value]);
|
|
42
|
+
}
|
|
43
|
+
delete(name) {
|
|
44
|
+
const key = name.toLowerCase();
|
|
45
|
+
this.headers.delete(key);
|
|
46
|
+
}
|
|
47
|
+
get(name) {
|
|
48
|
+
const key = name.toLowerCase();
|
|
49
|
+
const values = this.headers.get(key);
|
|
50
|
+
return values ? values.join(", ") : null;
|
|
51
|
+
}
|
|
52
|
+
has(name) {
|
|
53
|
+
const key = name.toLowerCase();
|
|
54
|
+
return this.headers.has(key);
|
|
55
|
+
}
|
|
56
|
+
set(name, value) {
|
|
57
|
+
const key = name.toLowerCase();
|
|
58
|
+
this.headers.set(key, [value]);
|
|
59
|
+
}
|
|
60
|
+
forEach(callbackfn, thisArg) {
|
|
61
|
+
const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
|
|
62
|
+
this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
|
|
63
|
+
}
|
|
64
|
+
getSetCookie() {
|
|
65
|
+
return this.headers.get("set-cookie") || [];
|
|
66
|
+
}
|
|
67
|
+
*entries() {
|
|
68
|
+
for (const [key, values] of this.headers.entries()) {
|
|
69
|
+
yield [key, values.join(", ")];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
*keys() {
|
|
73
|
+
yield* this.headers.keys();
|
|
74
|
+
}
|
|
75
|
+
*values() {
|
|
76
|
+
for (const values of this.headers.values()) {
|
|
77
|
+
yield values.join(", ");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
[Symbol.iterator]() {
|
|
81
|
+
return this.entries();
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { WithRawResponse } from "./RawResponse.js";
|
|
2
|
+
/**
|
|
3
|
+
* A promise that returns the parsed response and lets you retrieve the raw response too.
|
|
4
|
+
*/
|
|
5
|
+
export declare class HttpResponsePromise<T> extends Promise<T> {
|
|
6
|
+
private innerPromise;
|
|
7
|
+
private unwrappedPromise;
|
|
8
|
+
private constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Creates an `HttpResponsePromise` from a function that returns a promise.
|
|
11
|
+
*
|
|
12
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
13
|
+
* @param args - Arguments to pass to the function.
|
|
14
|
+
* @returns An `HttpResponsePromise` instance.
|
|
15
|
+
*/
|
|
16
|
+
static fromFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T>(fn: F, ...args: Parameters<F>): HttpResponsePromise<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
|
|
19
|
+
*
|
|
20
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
21
|
+
* @returns A function that returns an `HttpResponsePromise` instance.
|
|
22
|
+
*/
|
|
23
|
+
static interceptFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T = Awaited<ReturnType<F>>["data"]>(fn: F): (...args: Parameters<F>) => HttpResponsePromise<T>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates an `HttpResponsePromise` from an existing promise.
|
|
26
|
+
*
|
|
27
|
+
* @param promise - A promise resolving to a `WithRawResponse` object.
|
|
28
|
+
* @returns An `HttpResponsePromise` instance.
|
|
29
|
+
*/
|
|
30
|
+
static fromPromise<T>(promise: Promise<WithRawResponse<T>>): HttpResponsePromise<T>;
|
|
31
|
+
/**
|
|
32
|
+
* Creates an `HttpResponsePromise` from an executor function.
|
|
33
|
+
*
|
|
34
|
+
* @param executor - A function that takes resolve and reject callbacks to create a promise.
|
|
35
|
+
* @returns An `HttpResponsePromise` instance.
|
|
36
|
+
*/
|
|
37
|
+
static fromExecutor<T>(executor: (resolve: (value: WithRawResponse<T>) => void, reject: (reason?: unknown) => void) => void): HttpResponsePromise<T>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates an `HttpResponsePromise` from a resolved result.
|
|
40
|
+
*
|
|
41
|
+
* @param result - A `WithRawResponse` object to resolve immediately.
|
|
42
|
+
* @returns An `HttpResponsePromise` instance.
|
|
43
|
+
*/
|
|
44
|
+
static fromResult<T>(result: WithRawResponse<T>): HttpResponsePromise<T>;
|
|
45
|
+
private unwrap;
|
|
46
|
+
/** @inheritdoc */
|
|
47
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
48
|
+
/** @inheritdoc */
|
|
49
|
+
catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
50
|
+
/** @inheritdoc */
|
|
51
|
+
finally(onfinally?: (() => void) | null): Promise<T>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves the data and raw response.
|
|
54
|
+
*
|
|
55
|
+
* @returns A promise resolving to a `WithRawResponse` object.
|
|
56
|
+
*/
|
|
57
|
+
withRawResponse(): Promise<WithRawResponse<T>>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HttpResponsePromise = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* A promise that returns the parsed response and lets you retrieve the raw response too.
|
|
15
|
+
*/
|
|
16
|
+
class HttpResponsePromise extends Promise {
|
|
17
|
+
constructor(promise) {
|
|
18
|
+
// Initialize with a no-op to avoid premature parsing
|
|
19
|
+
super((resolve) => {
|
|
20
|
+
resolve(undefined);
|
|
21
|
+
});
|
|
22
|
+
this.innerPromise = promise;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates an `HttpResponsePromise` from a function that returns a promise.
|
|
26
|
+
*
|
|
27
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
28
|
+
* @param args - Arguments to pass to the function.
|
|
29
|
+
* @returns An `HttpResponsePromise` instance.
|
|
30
|
+
*/
|
|
31
|
+
static fromFunction(fn, ...args) {
|
|
32
|
+
return new HttpResponsePromise(fn(...args));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
|
|
36
|
+
*
|
|
37
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
38
|
+
* @returns A function that returns an `HttpResponsePromise` instance.
|
|
39
|
+
*/
|
|
40
|
+
static interceptFunction(fn) {
|
|
41
|
+
return (...args) => {
|
|
42
|
+
return HttpResponsePromise.fromPromise(fn(...args));
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Creates an `HttpResponsePromise` from an existing promise.
|
|
47
|
+
*
|
|
48
|
+
* @param promise - A promise resolving to a `WithRawResponse` object.
|
|
49
|
+
* @returns An `HttpResponsePromise` instance.
|
|
50
|
+
*/
|
|
51
|
+
static fromPromise(promise) {
|
|
52
|
+
return new HttpResponsePromise(promise);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Creates an `HttpResponsePromise` from an executor function.
|
|
56
|
+
*
|
|
57
|
+
* @param executor - A function that takes resolve and reject callbacks to create a promise.
|
|
58
|
+
* @returns An `HttpResponsePromise` instance.
|
|
59
|
+
*/
|
|
60
|
+
static fromExecutor(executor) {
|
|
61
|
+
const promise = new Promise(executor);
|
|
62
|
+
return new HttpResponsePromise(promise);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Creates an `HttpResponsePromise` from a resolved result.
|
|
66
|
+
*
|
|
67
|
+
* @param result - A `WithRawResponse` object to resolve immediately.
|
|
68
|
+
* @returns An `HttpResponsePromise` instance.
|
|
69
|
+
*/
|
|
70
|
+
static fromResult(result) {
|
|
71
|
+
const promise = Promise.resolve(result);
|
|
72
|
+
return new HttpResponsePromise(promise);
|
|
73
|
+
}
|
|
74
|
+
unwrap() {
|
|
75
|
+
if (!this.unwrappedPromise) {
|
|
76
|
+
this.unwrappedPromise = this.innerPromise.then(({ data }) => data);
|
|
77
|
+
}
|
|
78
|
+
return this.unwrappedPromise;
|
|
79
|
+
}
|
|
80
|
+
/** @inheritdoc */
|
|
81
|
+
then(onfulfilled, onrejected) {
|
|
82
|
+
return this.unwrap().then(onfulfilled, onrejected);
|
|
83
|
+
}
|
|
84
|
+
/** @inheritdoc */
|
|
85
|
+
catch(onrejected) {
|
|
86
|
+
return this.unwrap().catch(onrejected);
|
|
87
|
+
}
|
|
88
|
+
/** @inheritdoc */
|
|
89
|
+
finally(onfinally) {
|
|
90
|
+
return this.unwrap().finally(onfinally);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Retrieves the data and raw response.
|
|
94
|
+
*
|
|
95
|
+
* @returns A promise resolving to a `WithRawResponse` object.
|
|
96
|
+
*/
|
|
97
|
+
withRawResponse() {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
return yield this.innerPromise;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.HttpResponsePromise = HttpResponsePromise;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The raw response from the fetch call excluding the body.
|
|
3
|
+
*/
|
|
4
|
+
export type RawResponse = Omit<{
|
|
5
|
+
[K in keyof Response as Response[K] extends Function ? never : K]: Response[K];
|
|
6
|
+
}, "ok" | "body" | "bodyUsed">;
|
|
7
|
+
/**
|
|
8
|
+
* A raw response indicating that the request was aborted.
|
|
9
|
+
*/
|
|
10
|
+
export declare const abortRawResponse: RawResponse;
|
|
11
|
+
/**
|
|
12
|
+
* A raw response indicating an unknown error.
|
|
13
|
+
*/
|
|
14
|
+
export declare const unknownRawResponse: RawResponse;
|
|
15
|
+
/**
|
|
16
|
+
* Converts a `RawResponse` object into a `RawResponse` by extracting its properties,
|
|
17
|
+
* excluding the `body` and `bodyUsed` fields.
|
|
18
|
+
*
|
|
19
|
+
* @param response - The `RawResponse` object to convert.
|
|
20
|
+
* @returns A `RawResponse` object containing the extracted properties of the input response.
|
|
21
|
+
*/
|
|
22
|
+
export declare function toRawResponse(response: Response): RawResponse;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a `RawResponse` from a standard `Response` object.
|
|
25
|
+
*/
|
|
26
|
+
export interface WithRawResponse<T> {
|
|
27
|
+
readonly data: T;
|
|
28
|
+
readonly rawResponse: RawResponse;
|
|
29
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unknownRawResponse = exports.abortRawResponse = void 0;
|
|
4
|
+
exports.toRawResponse = toRawResponse;
|
|
5
|
+
const Headers_js_1 = require("./Headers.js");
|
|
6
|
+
/**
|
|
7
|
+
* A raw response indicating that the request was aborted.
|
|
8
|
+
*/
|
|
9
|
+
exports.abortRawResponse = {
|
|
10
|
+
headers: new Headers_js_1.Headers(),
|
|
11
|
+
redirected: false,
|
|
12
|
+
status: 499,
|
|
13
|
+
statusText: "Client Closed Request",
|
|
14
|
+
type: "error",
|
|
15
|
+
url: "",
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A raw response indicating an unknown error.
|
|
19
|
+
*/
|
|
20
|
+
exports.unknownRawResponse = {
|
|
21
|
+
headers: new Headers_js_1.Headers(),
|
|
22
|
+
redirected: false,
|
|
23
|
+
status: 0,
|
|
24
|
+
statusText: "Unknown Error",
|
|
25
|
+
type: "error",
|
|
26
|
+
url: "",
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Converts a `RawResponse` object into a `RawResponse` by extracting its properties,
|
|
30
|
+
* excluding the `body` and `bodyUsed` fields.
|
|
31
|
+
*
|
|
32
|
+
* @param response - The `RawResponse` object to convert.
|
|
33
|
+
* @returns A `RawResponse` object containing the extracted properties of the input response.
|
|
34
|
+
*/
|
|
35
|
+
function toRawResponse(response) {
|
|
36
|
+
return {
|
|
37
|
+
headers: response.headers,
|
|
38
|
+
redirected: response.redirected,
|
|
39
|
+
status: response.status,
|
|
40
|
+
statusText: response.statusText,
|
|
41
|
+
type: response.type,
|
|
42
|
+
url: response.url,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createRequestUrl(baseUrl: string, queryParameters?: Record<string, unknown>): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createRequestUrl = createRequestUrl;
|
|
4
|
+
const qs_js_1 = require("../url/qs.js");
|
|
5
|
+
function createRequestUrl(baseUrl, queryParameters) {
|
|
6
|
+
const queryString = (0, qs_js_1.toQueryString)(queryParameters, { arrayFormat: "repeat" });
|
|
7
|
+
return queryString ? `${baseUrl}?${queryString}` : baseUrl;
|
|
8
|
+
}
|