@space-cow-media/spellbook-client 7.3.4 → 7.3.5
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/dist/apis/CardListFromTextApi.d.ts +1 -1
- package/dist/apis/CardListFromTextApi.js +3 -3
- package/dist/apis/CardListFromTextApi.js.map +1 -1
- package/dist/apis/CardListFromUrlApi.d.ts +1 -1
- package/dist/apis/CardListFromUrlApi.js +2 -2
- package/dist/apis/CardListFromUrlApi.js.map +1 -1
- package/dist/apis/CardsApi.d.ts +1 -1
- package/dist/apis/CardsApi.js +3 -3
- package/dist/apis/CardsApi.js.map +1 -1
- package/dist/apis/DefaultApi.d.ts +1 -1
- package/dist/apis/DefaultApi.js +3 -3
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/EstimateBracketApi.d.ts +1 -1
- package/dist/apis/EstimateBracketApi.js +3 -3
- package/dist/apis/EstimateBracketApi.js.map +1 -1
- package/dist/apis/ExplainQueryApi.d.ts +1 -1
- package/dist/apis/ExplainQueryApi.js +2 -2
- package/dist/apis/ExplainQueryApi.js.map +1 -1
- package/dist/apis/FeaturesApi.d.ts +1 -1
- package/dist/apis/FeaturesApi.js +3 -3
- package/dist/apis/FeaturesApi.js.map +1 -1
- package/dist/apis/FindMyCombosApi.d.ts +1 -1
- package/dist/apis/FindMyCombosApi.js +3 -3
- package/dist/apis/FindMyCombosApi.js.map +1 -1
- package/dist/apis/PropertiesApi.d.ts +1 -1
- package/dist/apis/PropertiesApi.js +3 -3
- package/dist/apis/PropertiesApi.js.map +1 -1
- package/dist/apis/SaltVotesApi.d.ts +1 -1
- package/dist/apis/SaltVotesApi.js +6 -6
- package/dist/apis/SaltVotesApi.js.map +1 -1
- package/dist/apis/TemplatesApi.d.ts +1 -1
- package/dist/apis/TemplatesApi.js +3 -3
- package/dist/apis/TemplatesApi.js.map +1 -1
- package/dist/apis/TokenApi.d.ts +1 -1
- package/dist/apis/TokenApi.js +1 -1
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/apis/UsersApi.js +6 -6
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/VariantAliasesApi.d.ts +1 -1
- package/dist/apis/VariantAliasesApi.js +3 -3
- package/dist/apis/VariantAliasesApi.js.map +1 -1
- package/dist/apis/VariantSuggestionsApi.d.ts +1 -1
- package/dist/apis/VariantSuggestionsApi.js +10 -10
- package/dist/apis/VariantSuggestionsApi.js.map +1 -1
- package/dist/apis/VariantUpdateSuggestionsApi.d.ts +1 -1
- package/dist/apis/VariantUpdateSuggestionsApi.js +10 -10
- package/dist/apis/VariantUpdateSuggestionsApi.js.map +1 -1
- package/dist/apis/VariantsApi.d.ts +1 -1
- package/dist/apis/VariantsApi.js +3 -3
- package/dist/apis/VariantsApi.js.map +1 -1
- package/dist/models/BracketTagEnum.d.ts +1 -1
- package/dist/models/BracketTagEnum.js +1 -1
- package/dist/models/Card.d.ts +1 -1
- package/dist/models/Card.js +1 -1
- package/dist/models/CardDetail.d.ts +1 -1
- package/dist/models/CardDetail.js +1 -1
- package/dist/models/CardInDeck.d.ts +1 -1
- package/dist/models/CardInDeck.js +1 -1
- package/dist/models/CardInDeckRequest.d.ts +1 -1
- package/dist/models/CardInDeckRequest.js +1 -1
- package/dist/models/CardInVariant.d.ts +1 -1
- package/dist/models/CardInVariant.js +1 -1
- package/dist/models/CardLegalities.d.ts +1 -1
- package/dist/models/CardLegalities.js +1 -1
- package/dist/models/CardPrices.d.ts +1 -1
- package/dist/models/CardPrices.js +1 -1
- package/dist/models/CardUsedInVariantSuggestion.d.ts +1 -1
- package/dist/models/CardUsedInVariantSuggestion.js +1 -1
- package/dist/models/CardUsedInVariantSuggestionRequest.d.ts +1 -1
- package/dist/models/CardUsedInVariantSuggestionRequest.js +1 -1
- package/dist/models/ClassifiedCard.d.ts +1 -1
- package/dist/models/ClassifiedCard.js +1 -1
- package/dist/models/ClassifiedVariant.d.ts +1 -1
- package/dist/models/ClassifiedVariant.js +1 -1
- package/dist/models/ColorEnum.d.ts +1 -1
- package/dist/models/ColorEnum.js +1 -1
- package/dist/models/Combo.d.ts +1 -1
- package/dist/models/Combo.js +1 -1
- package/dist/models/Deck.d.ts +1 -1
- package/dist/models/Deck.js +1 -1
- package/dist/models/DeckRequest.d.ts +1 -1
- package/dist/models/DeckRequest.js +1 -1
- package/dist/models/EstimateBracketResult.d.ts +1 -1
- package/dist/models/EstimateBracketResult.js +1 -1
- package/dist/models/Feature.d.ts +1 -1
- package/dist/models/Feature.js +1 -1
- package/dist/models/FeatureOfCard.d.ts +1 -1
- package/dist/models/FeatureOfCard.js +1 -1
- package/dist/models/FeatureProducedByVariant.d.ts +1 -1
- package/dist/models/FeatureProducedByVariant.js +1 -1
- package/dist/models/FeatureProducedInVariantSuggestion.d.ts +1 -1
- package/dist/models/FeatureProducedInVariantSuggestion.js +1 -1
- package/dist/models/FeatureProducedInVariantSuggestionRequest.d.ts +1 -1
- package/dist/models/FeatureProducedInVariantSuggestionRequest.js +1 -1
- package/dist/models/FeatureStatusEnum.d.ts +1 -1
- package/dist/models/FeatureStatusEnum.js +1 -1
- package/dist/models/FindMyCombosResponse.d.ts +1 -1
- package/dist/models/FindMyCombosResponse.js +1 -1
- package/dist/models/InvalidUrlResponse.d.ts +1 -1
- package/dist/models/InvalidUrlResponse.js +1 -1
- package/dist/models/KindEnum.d.ts +1 -1
- package/dist/models/KindEnum.js +1 -1
- package/dist/models/LayoutRotationEnum.d.ts +1 -1
- package/dist/models/LayoutRotationEnum.js +1 -1
- package/dist/models/PaginatedCardDetailList.d.ts +1 -1
- package/dist/models/PaginatedCardDetailList.js +1 -1
- package/dist/models/PaginatedFeatureList.d.ts +1 -1
- package/dist/models/PaginatedFeatureList.js +1 -1
- package/dist/models/PaginatedFindMyCombosResponseList.d.ts +1 -1
- package/dist/models/PaginatedFindMyCombosResponseList.js +1 -1
- package/dist/models/PaginatedFindMyCombosResponseListResults.d.ts +1 -1
- package/dist/models/PaginatedFindMyCombosResponseListResults.js +1 -1
- package/dist/models/PaginatedSaltVoteList.d.ts +1 -1
- package/dist/models/PaginatedSaltVoteList.js +1 -1
- package/dist/models/PaginatedTemplateDetailList.d.ts +1 -1
- package/dist/models/PaginatedTemplateDetailList.js +1 -1
- package/dist/models/PaginatedUserDetailList.d.ts +1 -1
- package/dist/models/PaginatedUserDetailList.js +1 -1
- package/dist/models/PaginatedVariantAliasList.d.ts +1 -1
- package/dist/models/PaginatedVariantAliasList.js +1 -1
- package/dist/models/PaginatedVariantList.d.ts +1 -1
- package/dist/models/PaginatedVariantList.js +1 -1
- package/dist/models/PaginatedVariantSuggestionList.d.ts +1 -1
- package/dist/models/PaginatedVariantSuggestionList.js +1 -1
- package/dist/models/PaginatedVariantUpdateSuggestionList.d.ts +1 -1
- package/dist/models/PaginatedVariantUpdateSuggestionList.js +1 -1
- package/dist/models/PaginatedWebsitePropertyList.d.ts +1 -1
- package/dist/models/PaginatedWebsitePropertyList.js +1 -1
- package/dist/models/PatchedUserDetailRequest.d.ts +1 -1
- package/dist/models/PatchedUserDetailRequest.js +1 -1
- package/dist/models/PatchedVariantSuggestionRequest.d.ts +1 -1
- package/dist/models/PatchedVariantSuggestionRequest.js +1 -1
- package/dist/models/PatchedVariantUpdateSuggestionRequest.d.ts +1 -1
- package/dist/models/PatchedVariantUpdateSuggestionRequest.js +1 -1
- package/dist/models/ProducedManaEnum.d.ts +1 -1
- package/dist/models/ProducedManaEnum.js +1 -1
- package/dist/models/QueryExplanation.d.ts +1 -1
- package/dist/models/QueryExplanation.js +1 -1
- package/dist/models/QueryExplanationValidationError.d.ts +1 -1
- package/dist/models/QueryExplanationValidationError.js +1 -1
- package/dist/models/SaltVote.d.ts +1 -1
- package/dist/models/SaltVote.js +1 -1
- package/dist/models/SaltVoteRequest.d.ts +1 -1
- package/dist/models/SaltVoteRequest.js +1 -1
- package/dist/models/SuggestionStatusEnum.d.ts +1 -1
- package/dist/models/SuggestionStatusEnum.js +1 -1
- package/dist/models/Template.d.ts +1 -1
- package/dist/models/Template.js +1 -1
- package/dist/models/TemplateDetail.d.ts +1 -1
- package/dist/models/TemplateDetail.js +1 -1
- package/dist/models/TemplateInVariant.d.ts +1 -1
- package/dist/models/TemplateInVariant.js +1 -1
- package/dist/models/TemplateRequiredInVariantSuggestion.d.ts +1 -1
- package/dist/models/TemplateRequiredInVariantSuggestion.js +1 -1
- package/dist/models/TemplateRequiredInVariantSuggestionRequest.d.ts +1 -1
- package/dist/models/TemplateRequiredInVariantSuggestionRequest.js +1 -1
- package/dist/models/TokenObtainPair.d.ts +1 -1
- package/dist/models/TokenObtainPair.js +1 -1
- package/dist/models/TokenObtainPairRequest.d.ts +1 -1
- package/dist/models/TokenObtainPairRequest.js +1 -1
- package/dist/models/TokenRefresh.d.ts +1 -1
- package/dist/models/TokenRefresh.js +1 -1
- package/dist/models/TokenRefreshRequest.d.ts +1 -1
- package/dist/models/TokenRefreshRequest.js +1 -1
- package/dist/models/TokenVerifyRequest.d.ts +1 -1
- package/dist/models/TokenVerifyRequest.js +1 -1
- package/dist/models/User.d.ts +1 -1
- package/dist/models/User.js +1 -1
- package/dist/models/UserDetail.d.ts +1 -1
- package/dist/models/UserDetail.js +1 -1
- package/dist/models/UserDetailRequest.d.ts +1 -1
- package/dist/models/UserDetailRequest.js +1 -1
- package/dist/models/UserRequest.d.ts +1 -1
- package/dist/models/UserRequest.js +1 -1
- package/dist/models/Variant.d.ts +1 -1
- package/dist/models/Variant.js +1 -1
- package/dist/models/VariantAlias.d.ts +1 -1
- package/dist/models/VariantAlias.js +1 -1
- package/dist/models/VariantInVariantUpdateSuggestion.d.ts +1 -1
- package/dist/models/VariantInVariantUpdateSuggestion.js +1 -1
- package/dist/models/VariantInVariantUpdateSuggestionRequest.d.ts +1 -1
- package/dist/models/VariantInVariantUpdateSuggestionRequest.js +1 -1
- package/dist/models/VariantLegalities.d.ts +1 -1
- package/dist/models/VariantLegalities.js +1 -1
- package/dist/models/VariantPrices.d.ts +1 -1
- package/dist/models/VariantPrices.js +1 -1
- package/dist/models/VariantStatusEnum.d.ts +1 -1
- package/dist/models/VariantStatusEnum.js +1 -1
- package/dist/models/VariantSuggestion.d.ts +1 -1
- package/dist/models/VariantSuggestion.js +1 -1
- package/dist/models/VariantSuggestionRequest.d.ts +1 -1
- package/dist/models/VariantSuggestionRequest.js +1 -1
- package/dist/models/VariantUpdateSuggestion.d.ts +1 -1
- package/dist/models/VariantUpdateSuggestion.js +1 -1
- package/dist/models/VariantUpdateSuggestionRequest.d.ts +1 -1
- package/dist/models/VariantUpdateSuggestionRequest.js +1 -1
- package/dist/models/VariantsQueryValidationError.d.ts +1 -1
- package/dist/models/VariantsQueryValidationError.js +1 -1
- package/dist/models/WebsiteProperty.d.ts +1 -1
- package/dist/models/WebsiteProperty.js +1 -1
- package/dist/models/ZoneLocationsEnum.d.ts +1 -1
- package/dist/models/ZoneLocationsEnum.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/spellbook-client/apis/CardListFromTextApi.ts +3 -3
- package/spellbook-client/apis/CardListFromUrlApi.ts +2 -2
- package/spellbook-client/apis/CardsApi.ts +3 -3
- package/spellbook-client/apis/DefaultApi.ts +3 -3
- package/spellbook-client/apis/EstimateBracketApi.ts +3 -3
- package/spellbook-client/apis/ExplainQueryApi.ts +2 -2
- package/spellbook-client/apis/FeaturesApi.ts +3 -3
- package/spellbook-client/apis/FindMyCombosApi.ts +3 -3
- package/spellbook-client/apis/PropertiesApi.ts +3 -3
- package/spellbook-client/apis/SaltVotesApi.ts +6 -6
- package/spellbook-client/apis/TemplatesApi.ts +3 -3
- package/spellbook-client/apis/TokenApi.ts +1 -1
- package/spellbook-client/apis/UsersApi.ts +6 -6
- package/spellbook-client/apis/VariantAliasesApi.ts +3 -3
- package/spellbook-client/apis/VariantSuggestionsApi.ts +10 -10
- package/spellbook-client/apis/VariantUpdateSuggestionsApi.ts +10 -10
- package/spellbook-client/apis/VariantsApi.ts +3 -3
- package/spellbook-client/models/BracketTagEnum.ts +1 -1
- package/spellbook-client/models/Card.ts +1 -1
- package/spellbook-client/models/CardDetail.ts +1 -1
- package/spellbook-client/models/CardInDeck.ts +1 -1
- package/spellbook-client/models/CardInDeckRequest.ts +1 -1
- package/spellbook-client/models/CardInVariant.ts +1 -1
- package/spellbook-client/models/CardLegalities.ts +1 -1
- package/spellbook-client/models/CardPrices.ts +1 -1
- package/spellbook-client/models/CardUsedInVariantSuggestion.ts +1 -1
- package/spellbook-client/models/CardUsedInVariantSuggestionRequest.ts +1 -1
- package/spellbook-client/models/ClassifiedCard.ts +1 -1
- package/spellbook-client/models/ClassifiedVariant.ts +1 -1
- package/spellbook-client/models/ColorEnum.ts +1 -1
- package/spellbook-client/models/Combo.ts +1 -1
- package/spellbook-client/models/Deck.ts +1 -1
- package/spellbook-client/models/DeckRequest.ts +1 -1
- package/spellbook-client/models/EstimateBracketResult.ts +1 -1
- package/spellbook-client/models/Feature.ts +1 -1
- package/spellbook-client/models/FeatureOfCard.ts +1 -1
- package/spellbook-client/models/FeatureProducedByVariant.ts +1 -1
- package/spellbook-client/models/FeatureProducedInVariantSuggestion.ts +1 -1
- package/spellbook-client/models/FeatureProducedInVariantSuggestionRequest.ts +1 -1
- package/spellbook-client/models/FeatureStatusEnum.ts +1 -1
- package/spellbook-client/models/FindMyCombosResponse.ts +1 -1
- package/spellbook-client/models/InvalidUrlResponse.ts +1 -1
- package/spellbook-client/models/KindEnum.ts +1 -1
- package/spellbook-client/models/LayoutRotationEnum.ts +1 -1
- package/spellbook-client/models/PaginatedCardDetailList.ts +1 -1
- package/spellbook-client/models/PaginatedFeatureList.ts +1 -1
- package/spellbook-client/models/PaginatedFindMyCombosResponseList.ts +1 -1
- package/spellbook-client/models/PaginatedFindMyCombosResponseListResults.ts +1 -1
- package/spellbook-client/models/PaginatedSaltVoteList.ts +1 -1
- package/spellbook-client/models/PaginatedTemplateDetailList.ts +1 -1
- package/spellbook-client/models/PaginatedUserDetailList.ts +1 -1
- package/spellbook-client/models/PaginatedVariantAliasList.ts +1 -1
- package/spellbook-client/models/PaginatedVariantList.ts +1 -1
- package/spellbook-client/models/PaginatedVariantSuggestionList.ts +1 -1
- package/spellbook-client/models/PaginatedVariantUpdateSuggestionList.ts +1 -1
- package/spellbook-client/models/PaginatedWebsitePropertyList.ts +1 -1
- package/spellbook-client/models/PatchedUserDetailRequest.ts +1 -1
- package/spellbook-client/models/PatchedVariantSuggestionRequest.ts +1 -1
- package/spellbook-client/models/PatchedVariantUpdateSuggestionRequest.ts +1 -1
- package/spellbook-client/models/ProducedManaEnum.ts +1 -1
- package/spellbook-client/models/QueryExplanation.ts +1 -1
- package/spellbook-client/models/QueryExplanationValidationError.ts +1 -1
- package/spellbook-client/models/SaltVote.ts +1 -1
- package/spellbook-client/models/SaltVoteRequest.ts +1 -1
- package/spellbook-client/models/SuggestionStatusEnum.ts +1 -1
- package/spellbook-client/models/Template.ts +1 -1
- package/spellbook-client/models/TemplateDetail.ts +1 -1
- package/spellbook-client/models/TemplateInVariant.ts +1 -1
- package/spellbook-client/models/TemplateRequiredInVariantSuggestion.ts +1 -1
- package/spellbook-client/models/TemplateRequiredInVariantSuggestionRequest.ts +1 -1
- package/spellbook-client/models/TokenObtainPair.ts +1 -1
- package/spellbook-client/models/TokenObtainPairRequest.ts +1 -1
- package/spellbook-client/models/TokenRefresh.ts +1 -1
- package/spellbook-client/models/TokenRefreshRequest.ts +1 -1
- package/spellbook-client/models/TokenVerifyRequest.ts +1 -1
- package/spellbook-client/models/User.ts +1 -1
- package/spellbook-client/models/UserDetail.ts +1 -1
- package/spellbook-client/models/UserDetailRequest.ts +1 -1
- package/spellbook-client/models/UserRequest.ts +1 -1
- package/spellbook-client/models/Variant.ts +1 -1
- package/spellbook-client/models/VariantAlias.ts +1 -1
- package/spellbook-client/models/VariantInVariantUpdateSuggestion.ts +1 -1
- package/spellbook-client/models/VariantInVariantUpdateSuggestionRequest.ts +1 -1
- package/spellbook-client/models/VariantLegalities.ts +1 -1
- package/spellbook-client/models/VariantPrices.ts +1 -1
- package/spellbook-client/models/VariantStatusEnum.ts +1 -1
- package/spellbook-client/models/VariantSuggestion.ts +1 -1
- package/spellbook-client/models/VariantSuggestionRequest.ts +1 -1
- package/spellbook-client/models/VariantUpdateSuggestion.ts +1 -1
- package/spellbook-client/models/VariantUpdateSuggestionRequest.ts +1 -1
- package/spellbook-client/models/VariantsQueryValidationError.ts +1 -1
- package/spellbook-client/models/WebsiteProperty.ts +1 -1
- package/spellbook-client/models/ZoneLocationsEnum.ts +1 -1
- package/spellbook-client/runtime.ts +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -62,7 +62,7 @@ export class EstimateBracketApi extends runtime.BaseAPI {
|
|
|
62
62
|
headerParameters['Content-Type'] = 'application/json';
|
|
63
63
|
|
|
64
64
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
65
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
65
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
66
66
|
}
|
|
67
67
|
if (this.configuration && this.configuration.accessToken) {
|
|
68
68
|
const token = this.configuration.accessToken;
|
|
@@ -113,7 +113,7 @@ export class EstimateBracketApi extends runtime.BaseAPI {
|
|
|
113
113
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
114
114
|
|
|
115
115
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
116
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
116
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
117
117
|
}
|
|
118
118
|
if (this.configuration && this.configuration.accessToken) {
|
|
119
119
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -49,7 +49,7 @@ export class ExplainQueryApi extends runtime.BaseAPI {
|
|
|
49
49
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
50
50
|
|
|
51
51
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
52
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
52
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
53
53
|
}
|
|
54
54
|
if (this.configuration && this.configuration.accessToken) {
|
|
55
55
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -102,7 +102,7 @@ export class FeaturesApi extends runtime.BaseAPI {
|
|
|
102
102
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
103
103
|
|
|
104
104
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
105
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
105
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
106
106
|
}
|
|
107
107
|
if (this.configuration && this.configuration.accessToken) {
|
|
108
108
|
const token = this.configuration.accessToken;
|
|
@@ -155,7 +155,7 @@ export class FeaturesApi extends runtime.BaseAPI {
|
|
|
155
155
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
156
156
|
|
|
157
157
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
158
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
158
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
159
159
|
}
|
|
160
160
|
if (this.configuration && this.configuration.accessToken) {
|
|
161
161
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -134,7 +134,7 @@ export class FindMyCombosApi extends runtime.BaseAPI {
|
|
|
134
134
|
headerParameters['Content-Type'] = 'application/json';
|
|
135
135
|
|
|
136
136
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
137
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
137
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
138
138
|
}
|
|
139
139
|
if (this.configuration && this.configuration.accessToken) {
|
|
140
140
|
const token = this.configuration.accessToken;
|
|
@@ -209,7 +209,7 @@ export class FindMyCombosApi extends runtime.BaseAPI {
|
|
|
209
209
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
210
210
|
|
|
211
211
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
212
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
212
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
213
213
|
}
|
|
214
214
|
if (this.configuration && this.configuration.accessToken) {
|
|
215
215
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -72,7 +72,7 @@ export class PropertiesApi extends runtime.BaseAPI {
|
|
|
72
72
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
73
73
|
|
|
74
74
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
75
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
75
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
76
76
|
}
|
|
77
77
|
if (this.configuration && this.configuration.accessToken) {
|
|
78
78
|
const token = this.configuration.accessToken;
|
|
@@ -125,7 +125,7 @@ export class PropertiesApi extends runtime.BaseAPI {
|
|
|
125
125
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
126
126
|
|
|
127
127
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
128
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
128
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
129
129
|
}
|
|
130
130
|
if (this.configuration && this.configuration.accessToken) {
|
|
131
131
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -106,7 +106,7 @@ export class SaltVotesApi extends runtime.BaseAPI {
|
|
|
106
106
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
107
107
|
|
|
108
108
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
109
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
109
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
110
110
|
}
|
|
111
111
|
if (this.configuration && this.configuration.accessToken) {
|
|
112
112
|
const token = this.configuration.accessToken;
|
|
@@ -170,7 +170,7 @@ export class SaltVotesApi extends runtime.BaseAPI {
|
|
|
170
170
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
171
171
|
|
|
172
172
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
173
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
173
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
174
174
|
}
|
|
175
175
|
if (this.configuration && this.configuration.accessToken) {
|
|
176
176
|
const token = this.configuration.accessToken;
|
|
@@ -222,7 +222,7 @@ export class SaltVotesApi extends runtime.BaseAPI {
|
|
|
222
222
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
223
223
|
|
|
224
224
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
225
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
225
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
226
226
|
}
|
|
227
227
|
if (this.configuration && this.configuration.accessToken) {
|
|
228
228
|
const token = this.configuration.accessToken;
|
|
@@ -277,7 +277,7 @@ export class SaltVotesApi extends runtime.BaseAPI {
|
|
|
277
277
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
278
278
|
|
|
279
279
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
280
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
280
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
281
281
|
}
|
|
282
282
|
if (this.configuration && this.configuration.accessToken) {
|
|
283
283
|
const token = this.configuration.accessToken;
|
|
@@ -342,7 +342,7 @@ export class SaltVotesApi extends runtime.BaseAPI {
|
|
|
342
342
|
headerParameters['Content-Type'] = 'application/json';
|
|
343
343
|
|
|
344
344
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
345
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
345
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
346
346
|
}
|
|
347
347
|
if (this.configuration && this.configuration.accessToken) {
|
|
348
348
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -96,7 +96,7 @@ export class TemplatesApi extends runtime.BaseAPI {
|
|
|
96
96
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
97
97
|
|
|
98
98
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
99
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
99
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
100
100
|
}
|
|
101
101
|
if (this.configuration && this.configuration.accessToken) {
|
|
102
102
|
const token = this.configuration.accessToken;
|
|
@@ -149,7 +149,7 @@ export class TemplatesApi extends runtime.BaseAPI {
|
|
|
149
149
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
150
150
|
|
|
151
151
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
152
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
152
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
153
153
|
}
|
|
154
154
|
if (this.configuration && this.configuration.accessToken) {
|
|
155
155
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -106,7 +106,7 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
106
106
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
107
107
|
|
|
108
108
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
109
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
109
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
110
110
|
}
|
|
111
111
|
if (this.configuration && this.configuration.accessToken) {
|
|
112
112
|
const token = this.configuration.accessToken;
|
|
@@ -164,7 +164,7 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
164
164
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
165
165
|
|
|
166
166
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
167
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
167
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
168
168
|
}
|
|
169
169
|
if (this.configuration && this.configuration.accessToken) {
|
|
170
170
|
const token = this.configuration.accessToken;
|
|
@@ -219,7 +219,7 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
219
219
|
headerParameters['Content-Type'] = 'application/json';
|
|
220
220
|
|
|
221
221
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
222
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
222
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
223
223
|
}
|
|
224
224
|
if (this.configuration && this.configuration.accessToken) {
|
|
225
225
|
const token = this.configuration.accessToken;
|
|
@@ -274,7 +274,7 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
274
274
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
275
275
|
|
|
276
276
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
277
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
277
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
278
278
|
}
|
|
279
279
|
if (this.configuration && this.configuration.accessToken) {
|
|
280
280
|
const token = this.configuration.accessToken;
|
|
@@ -337,7 +337,7 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
337
337
|
headerParameters['Content-Type'] = 'application/json';
|
|
338
338
|
|
|
339
339
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
340
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
340
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
341
341
|
}
|
|
342
342
|
if (this.configuration && this.configuration.accessToken) {
|
|
343
343
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -72,7 +72,7 @@ export class VariantAliasesApi extends runtime.BaseAPI {
|
|
|
72
72
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
73
73
|
|
|
74
74
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
75
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
75
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
76
76
|
}
|
|
77
77
|
if (this.configuration && this.configuration.accessToken) {
|
|
78
78
|
const token = this.configuration.accessToken;
|
|
@@ -125,7 +125,7 @@ export class VariantAliasesApi extends runtime.BaseAPI {
|
|
|
125
125
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
126
126
|
|
|
127
127
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
128
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
128
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
129
129
|
}
|
|
130
130
|
if (this.configuration && this.configuration.accessToken) {
|
|
131
131
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -148,7 +148,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
148
148
|
headerParameters['Content-Type'] = 'application/json';
|
|
149
149
|
|
|
150
150
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
151
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
151
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
152
152
|
}
|
|
153
153
|
if (this.configuration && this.configuration.accessToken) {
|
|
154
154
|
const token = this.configuration.accessToken;
|
|
@@ -202,7 +202,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
202
202
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
203
203
|
|
|
204
204
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
205
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
205
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
206
206
|
}
|
|
207
207
|
if (this.configuration && this.configuration.accessToken) {
|
|
208
208
|
const token = this.configuration.accessToken;
|
|
@@ -264,7 +264,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
264
264
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
265
265
|
|
|
266
266
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
267
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
267
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
268
268
|
}
|
|
269
269
|
if (this.configuration && this.configuration.accessToken) {
|
|
270
270
|
const token = this.configuration.accessToken;
|
|
@@ -319,7 +319,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
319
319
|
headerParameters['Content-Type'] = 'application/json';
|
|
320
320
|
|
|
321
321
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
322
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
322
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
323
323
|
}
|
|
324
324
|
if (this.configuration && this.configuration.accessToken) {
|
|
325
325
|
const token = this.configuration.accessToken;
|
|
@@ -374,7 +374,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
374
374
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
375
375
|
|
|
376
376
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
377
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
377
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
378
378
|
}
|
|
379
379
|
if (this.configuration && this.configuration.accessToken) {
|
|
380
380
|
const token = this.configuration.accessToken;
|
|
@@ -437,7 +437,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
437
437
|
headerParameters['Content-Type'] = 'application/json';
|
|
438
438
|
|
|
439
439
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
440
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
440
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
441
441
|
}
|
|
442
442
|
if (this.configuration && this.configuration.accessToken) {
|
|
443
443
|
const token = this.configuration.accessToken;
|
|
@@ -494,7 +494,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
494
494
|
headerParameters['Content-Type'] = 'application/json';
|
|
495
495
|
|
|
496
496
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
497
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
497
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
498
498
|
}
|
|
499
499
|
if (this.configuration && this.configuration.accessToken) {
|
|
500
500
|
const token = this.configuration.accessToken;
|
|
@@ -552,7 +552,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
552
552
|
headerParameters['Content-Type'] = 'application/json';
|
|
553
553
|
|
|
554
554
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
555
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
555
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
556
556
|
}
|
|
557
557
|
if (this.configuration && this.configuration.accessToken) {
|
|
558
558
|
const token = this.configuration.accessToken;
|
|
@@ -618,7 +618,7 @@ export class VariantSuggestionsApi extends runtime.BaseAPI {
|
|
|
618
618
|
headerParameters['Content-Type'] = 'application/json';
|
|
619
619
|
|
|
620
620
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
621
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
621
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
622
622
|
}
|
|
623
623
|
if (this.configuration && this.configuration.accessToken) {
|
|
624
624
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -148,7 +148,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
148
148
|
headerParameters['Content-Type'] = 'application/json';
|
|
149
149
|
|
|
150
150
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
151
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
151
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
152
152
|
}
|
|
153
153
|
if (this.configuration && this.configuration.accessToken) {
|
|
154
154
|
const token = this.configuration.accessToken;
|
|
@@ -202,7 +202,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
202
202
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
203
203
|
|
|
204
204
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
205
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
205
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
206
206
|
}
|
|
207
207
|
if (this.configuration && this.configuration.accessToken) {
|
|
208
208
|
const token = this.configuration.accessToken;
|
|
@@ -264,7 +264,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
264
264
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
265
265
|
|
|
266
266
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
267
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
267
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
268
268
|
}
|
|
269
269
|
if (this.configuration && this.configuration.accessToken) {
|
|
270
270
|
const token = this.configuration.accessToken;
|
|
@@ -319,7 +319,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
319
319
|
headerParameters['Content-Type'] = 'application/json';
|
|
320
320
|
|
|
321
321
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
322
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
322
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
323
323
|
}
|
|
324
324
|
if (this.configuration && this.configuration.accessToken) {
|
|
325
325
|
const token = this.configuration.accessToken;
|
|
@@ -374,7 +374,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
374
374
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
375
375
|
|
|
376
376
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
377
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
377
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
378
378
|
}
|
|
379
379
|
if (this.configuration && this.configuration.accessToken) {
|
|
380
380
|
const token = this.configuration.accessToken;
|
|
@@ -437,7 +437,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
437
437
|
headerParameters['Content-Type'] = 'application/json';
|
|
438
438
|
|
|
439
439
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
440
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
440
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
441
441
|
}
|
|
442
442
|
if (this.configuration && this.configuration.accessToken) {
|
|
443
443
|
const token = this.configuration.accessToken;
|
|
@@ -494,7 +494,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
494
494
|
headerParameters['Content-Type'] = 'application/json';
|
|
495
495
|
|
|
496
496
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
497
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
497
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
498
498
|
}
|
|
499
499
|
if (this.configuration && this.configuration.accessToken) {
|
|
500
500
|
const token = this.configuration.accessToken;
|
|
@@ -552,7 +552,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
552
552
|
headerParameters['Content-Type'] = 'application/json';
|
|
553
553
|
|
|
554
554
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
555
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
555
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
556
556
|
}
|
|
557
557
|
if (this.configuration && this.configuration.accessToken) {
|
|
558
558
|
const token = this.configuration.accessToken;
|
|
@@ -618,7 +618,7 @@ export class VariantUpdateSuggestionsApi extends runtime.BaseAPI {
|
|
|
618
618
|
headerParameters['Content-Type'] = 'application/json';
|
|
619
619
|
|
|
620
620
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
621
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
621
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
622
622
|
}
|
|
623
623
|
if (this.configuration && this.configuration.accessToken) {
|
|
624
624
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -109,7 +109,7 @@ export class VariantsApi extends runtime.BaseAPI {
|
|
|
109
109
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
110
110
|
|
|
111
111
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
112
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
112
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
113
113
|
}
|
|
114
114
|
if (this.configuration && this.configuration.accessToken) {
|
|
115
115
|
const token = this.configuration.accessToken;
|
|
@@ -164,7 +164,7 @@ export class VariantsApi extends runtime.BaseAPI {
|
|
|
164
164
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
165
165
|
|
|
166
166
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
167
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
167
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
168
168
|
}
|
|
169
169
|
if (this.configuration && this.configuration.accessToken) {
|
|
170
170
|
const token = this.configuration.accessToken;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Commander Spellbook API
|
|
5
5
|
* API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 7.3.
|
|
7
|
+
* The version of the OpenAPI document: 7.3.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|