@carddb/client 0.4.2 → 0.4.6
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/index.cjs +303 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +156 -61
- package/dist/index.d.ts +156 -61
- package/dist/index.js +303 -141
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _carddb_core from '@carddb/core';
|
|
2
|
-
import { Logger, LogLevel, Cache, ResourceType, CardDBConfig, RateLimitInfo, GraphQLErrorInfo, Collection, Publisher, Game, GameCreateInput, GameUpdateInput, GameScanRegion, Dataset, DatasetSchema, Deck, ViewerDecksFilterInput, AppDecksFilterInput, PublicDecksFilterInput, DeckVersion, DeckDiff, DeckValidateInput, DeckValidation, DeckHydrateEntriesInput, DeckHydrateEntriesPayload, DeckExportFormat, DeckExportPayload, DeckSectionDefinition, DeckCollaborator,
|
|
2
|
+
import { Logger, LogLevel, Cache, ResourceType, CardDBConfig, RateLimitInfo, GraphQLErrorInfo, Collection, Publisher, Game, GameCreateInput, GameUpdateInput, GameScanRegion, Dataset, DatasetSchema, Deck, DeckReadState, DeckPublishedVersionSelector, ViewerDecksFilterInput, AppDecksFilterInput, PublicDecksFilterInput, DeckVersion, DeckDiff, DeckValidateInput, DeckValidation, DeckHydrateEntriesInput, DeckHydrateEntriesPayload, DeckExportFormat, DeckExportPayload, DeckSectionDefinition, DeckCollaborator, DeckAPIApplicationAccess, DeckCreateInput, DeckUpdateInput, DeckUpsertByExternalRefInput, DeckUpsertByExternalRefPayload, DeckClaimInput, DeckOwnershipTransferPayload, DeckTransferOwnershipInput, DeckCopyInput, DeckCopyPayload, DeckEntryAddInput, DeckEntryMutationPayload, DeckEntryUpdateInput, DeckEntryReorderInput, DeckEntryReorderPayload, DeckEntriesReplaceInput, DeckEntriesReplacePayload, DeckImportInput, DeckImportPayload, DeckImportFormatDefinition, DeckImportFormatTestInput, DeckImportFormatTestPayload, DeckImportFormatCreateInput, DeckImportFormatUpdateInput, DeckPublishInput, DeckPublishPayload, DeckRemoveInvalidEntriesInput, DeckCollaboratorRole, DeckTokenIssuerCreateInput, DeckTokenIssuer, DeckAPIApplicationAccessGrantInput, DeckTokenExchangeInput, DeckTokenExchangePayload, HydrateDeckEntryInput, HydratedDeckEntry, FilterInput, DatasetRecord, DatasetRecordsUpsertInput, DatasetRecordsUpsertPayload, DatasetRecordsDeleteInput, DatasetRecordDeleteJob, DatasetRecordDeleteJobStatus, Ruleset, RulesetVersionStatus, RulesetVersion, DeckValidationRules, RulesetVersionDraftImportFromDatasetRecordInput, RulesetVersionDraftImportPreview, RulesetValidationImpact, RulesetCreateInput, RulesetUpdateInput, RulesetVersionDraftCreateInput, RulesetVersionDraftUpdateInput, RulesetVersionPublishInput, DatasetImportPreviewInput, DatasetImportPreviewResult, DatasetImportValidateInput, BulkImportResult, DatasetImportRunInput, ImportJob, ImportJobStatus, ImportLogLevel, ImportJobLog, GameImportPreviewInput, GameImportPreview, GameImportRunInput, GameImportJob, DatasetExportInput, ExportJob, ExportJobStatus, File, FileUploadInput, PresignedUpload, UploadPurpose, CreateScanUploadSessionInput, ConfirmScanUploadInput, CreateScanJobInput, ScanJobPayload, ScanJob, SubmitScanFeedbackInput, ScanFeedbackPayload, ScanMetricsInput, ScanMetrics, ResolveScanTemplateInput, ScanTemplateResolution, ScanTemplatesInput, ScanTemplate, SaveScanTemplateInput, ScanTemplatePayload, PreviewScanTemplateInput, ScanTemplatePreview, APIKeyInfo } from '@carddb/core';
|
|
3
3
|
export * from '@carddb/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -446,13 +446,17 @@ interface FetchDeckOptions {
|
|
|
446
446
|
/** Whether to use cache (defaults to client config) */
|
|
447
447
|
cache?: boolean;
|
|
448
448
|
}
|
|
449
|
+
interface DeckReadOptions extends FetchDeckOptions {
|
|
450
|
+
/** Explicitly choose mutable draft data or immutable published data. */
|
|
451
|
+
readState: DeckReadState;
|
|
452
|
+
/** Optional published version selector. Only valid with readState: 'PUBLISHED'. */
|
|
453
|
+
version?: DeckPublishedVersionSelector;
|
|
454
|
+
}
|
|
449
455
|
type FetchDeckByExternalRefOptions = FetchDeckOptions;
|
|
456
|
+
type DeckReadByExternalRefOptions = DeckReadOptions;
|
|
450
457
|
type FetchDeckBySlugOptions = FetchDeckOptions;
|
|
451
458
|
type ListDeckVersionsOptions = ListDecksOptions;
|
|
452
459
|
type ListDeckCollaboratorsOptions = FetchDeckOptions;
|
|
453
|
-
type ListDeckPreviewTokensOptions = FetchDeckOptions;
|
|
454
|
-
type ListDeckEmbedTokensOptions = FetchDeckOptions;
|
|
455
|
-
type ListDeckAccessTokenIssuersOptions = FetchDeckOptions;
|
|
456
460
|
interface ListDeckApiApplicationAccessesOptions extends FetchDeckOptions {
|
|
457
461
|
includeRevoked?: boolean;
|
|
458
462
|
}
|
|
@@ -490,7 +494,17 @@ declare class DecksResource extends BaseResource {
|
|
|
490
494
|
/**
|
|
491
495
|
* Fetch a deck by UUID using the ownership-aware `deck` API.
|
|
492
496
|
*/
|
|
493
|
-
get(id: string, options
|
|
497
|
+
get(id: string, options: DeckReadOptions): Promise<Deck | null>;
|
|
498
|
+
/**
|
|
499
|
+
* Fetch mutable draft data for a deck by UUID.
|
|
500
|
+
*/
|
|
501
|
+
getDraft(id: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
502
|
+
/**
|
|
503
|
+
* Fetch immutable published data for a deck by UUID.
|
|
504
|
+
*/
|
|
505
|
+
getPublished(id: string, options?: FetchDeckOptions & {
|
|
506
|
+
version?: DeckPublishedVersionSelector;
|
|
507
|
+
}): Promise<Deck | null>;
|
|
494
508
|
/**
|
|
495
509
|
* Fetch one deck owned by the current account or API application.
|
|
496
510
|
*/
|
|
@@ -510,7 +524,17 @@ declare class DecksResource extends BaseResource {
|
|
|
510
524
|
/**
|
|
511
525
|
* Fetch by external reference using the ownership-aware `deckByExternalRef` API.
|
|
512
526
|
*/
|
|
513
|
-
getByExternalRef(externalRef: string, options
|
|
527
|
+
getByExternalRef(externalRef: string, options: DeckReadByExternalRefOptions): Promise<Deck | null>;
|
|
528
|
+
/**
|
|
529
|
+
* Fetch mutable draft data by API-application external reference.
|
|
530
|
+
*/
|
|
531
|
+
getDraftByExternalRef(externalRef: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
532
|
+
/**
|
|
533
|
+
* Fetch immutable published data by API-application external reference.
|
|
534
|
+
*/
|
|
535
|
+
getPublishedByExternalRef(externalRef: string, options?: FetchDeckOptions & {
|
|
536
|
+
version?: DeckPublishedVersionSelector;
|
|
537
|
+
}): Promise<Deck | null>;
|
|
514
538
|
/**
|
|
515
539
|
* List decks owned by the current account or API application.
|
|
516
540
|
*/
|
|
@@ -535,18 +559,6 @@ declare class DecksResource extends BaseResource {
|
|
|
535
559
|
* List immutable published versions for a deck.
|
|
536
560
|
*/
|
|
537
561
|
listVersions(deckId: string, options?: ListDeckVersionsOptions): Promise<Collection<DeckVersion>>;
|
|
538
|
-
/**
|
|
539
|
-
* Fetch current draft data using a revocable preview token.
|
|
540
|
-
*/
|
|
541
|
-
preview(token: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
542
|
-
/**
|
|
543
|
-
* Fetch published embed data using a revocable embed token.
|
|
544
|
-
*/
|
|
545
|
-
embed(token: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
546
|
-
/**
|
|
547
|
-
* Fetch token-authorized published data using an exchanged access token.
|
|
548
|
-
*/
|
|
549
|
-
access(token: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
550
562
|
/**
|
|
551
563
|
* Compare the current draft against the latest published version.
|
|
552
564
|
*/
|
|
@@ -575,18 +587,6 @@ declare class DecksResource extends BaseResource {
|
|
|
575
587
|
* List collaborators for a deck.
|
|
576
588
|
*/
|
|
577
589
|
listCollaborators(deckId: string, options?: ListDeckCollaboratorsOptions): Promise<DeckCollaborator[]>;
|
|
578
|
-
/**
|
|
579
|
-
* List draft preview tokens for a deck.
|
|
580
|
-
*/
|
|
581
|
-
listPreviewTokens(deckId: string, options?: ListDeckPreviewTokensOptions): Promise<DeckPreviewToken[]>;
|
|
582
|
-
/**
|
|
583
|
-
* List published embed tokens for a deck.
|
|
584
|
-
*/
|
|
585
|
-
listEmbedTokens(deckId: string, options?: ListDeckEmbedTokensOptions): Promise<DeckEmbedToken[]>;
|
|
586
|
-
/**
|
|
587
|
-
* List trusted access token issuers for a deck.
|
|
588
|
-
*/
|
|
589
|
-
listAccessTokenIssuers(deckId: string, options?: ListDeckAccessTokenIssuersOptions): Promise<DeckAccessTokenIssuer[]>;
|
|
590
590
|
/**
|
|
591
591
|
* List API applications with explicit access to one owned deck.
|
|
592
592
|
*/
|
|
@@ -708,33 +708,17 @@ declare class DecksResource extends BaseResource {
|
|
|
708
708
|
*/
|
|
709
709
|
removeCollaborator(deckId: string, accountId: string): Promise<boolean>;
|
|
710
710
|
/**
|
|
711
|
-
* Create a
|
|
711
|
+
* Create a unified deck token issuer for the current secret-key API application.
|
|
712
712
|
*/
|
|
713
|
-
|
|
713
|
+
createTokenIssuer(input: DeckTokenIssuerCreateInput): Promise<DeckTokenIssuer>;
|
|
714
714
|
/**
|
|
715
|
-
* Revoke a
|
|
715
|
+
* Revoke a unified deck token issuer.
|
|
716
716
|
*/
|
|
717
|
-
|
|
717
|
+
revokeTokenIssuer(id: string): Promise<boolean>;
|
|
718
718
|
/**
|
|
719
|
-
*
|
|
719
|
+
* Revoke only the direct signing key for a unified deck token issuer.
|
|
720
720
|
*/
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* Revoke a published embed token.
|
|
724
|
-
*/
|
|
725
|
-
revokeEmbedToken(id: string): Promise<boolean>;
|
|
726
|
-
/**
|
|
727
|
-
* Trust the current API application to exchange short-lived deck access tokens.
|
|
728
|
-
*/
|
|
729
|
-
createAccessTokenIssuer(input: DeckAccessTokenIssuerCreateInput): Promise<DeckAccessTokenIssuer>;
|
|
730
|
-
/**
|
|
731
|
-
* Revoke a trusted deck access token issuer.
|
|
732
|
-
*/
|
|
733
|
-
revokeAccessTokenIssuer(id: string): Promise<boolean>;
|
|
734
|
-
/**
|
|
735
|
-
* Revoke only the direct signing key for a trusted deck access token issuer.
|
|
736
|
-
*/
|
|
737
|
-
revokeAccessTokenIssuerSigningKey(id: string): Promise<DeckAccessTokenIssuer>;
|
|
721
|
+
revokeTokenIssuerSigningKey(id: string): Promise<DeckTokenIssuer>;
|
|
738
722
|
/**
|
|
739
723
|
* Grant or update one OAuth app's selected-deck access.
|
|
740
724
|
*/
|
|
@@ -744,17 +728,13 @@ declare class DecksResource extends BaseResource {
|
|
|
744
728
|
*/
|
|
745
729
|
revokeApiApplicationAccess(deckId: string, apiApplicationId: string): Promise<boolean>;
|
|
746
730
|
/**
|
|
747
|
-
* Exchange the current
|
|
748
|
-
*/
|
|
749
|
-
exchangeAccessToken(input: DeckAccessTokenExchangeInput): Promise<DeckAccessTokenExchangePayload>;
|
|
750
|
-
/**
|
|
751
|
-
* Exchange the current secret API application credential for an app-owned deck session token.
|
|
731
|
+
* Exchange the current secret API application credential for a unified deck token.
|
|
752
732
|
*/
|
|
753
|
-
|
|
733
|
+
exchangeToken(input: DeckTokenExchangeInput): Promise<DeckTokenExchangePayload>;
|
|
754
734
|
/**
|
|
755
|
-
* Revoke an exchanged deck
|
|
735
|
+
* Revoke an exchanged unified deck token.
|
|
756
736
|
*/
|
|
757
|
-
|
|
737
|
+
revokeToken(id: string): Promise<boolean>;
|
|
758
738
|
/**
|
|
759
739
|
* Hydrate third-party-owned deck entries without storing them in CardDB.
|
|
760
740
|
*/
|
|
@@ -1100,6 +1080,119 @@ declare class RulesResource extends BaseResource {
|
|
|
1100
1080
|
private searchRuleRecords;
|
|
1101
1081
|
}
|
|
1102
1082
|
|
|
1083
|
+
/**
|
|
1084
|
+
* First-class rulesets resource for CardDB API
|
|
1085
|
+
*/
|
|
1086
|
+
|
|
1087
|
+
interface ListRulesetsOptions {
|
|
1088
|
+
/** Include archived rulesets */
|
|
1089
|
+
includeArchived?: boolean;
|
|
1090
|
+
/** Maximum number of results per page */
|
|
1091
|
+
first?: number;
|
|
1092
|
+
/** Cursor for pagination */
|
|
1093
|
+
after?: string;
|
|
1094
|
+
/** Whether to use cache (defaults to client config) */
|
|
1095
|
+
cache?: boolean;
|
|
1096
|
+
}
|
|
1097
|
+
type ListPublicRulesetsOptions = Omit<ListRulesetsOptions, 'includeArchived'>;
|
|
1098
|
+
interface GetRulesetOptions {
|
|
1099
|
+
/** Whether to use cache (defaults to client config) */
|
|
1100
|
+
cache?: boolean;
|
|
1101
|
+
}
|
|
1102
|
+
interface GetRulesetByKeyOptions extends GetRulesetOptions {
|
|
1103
|
+
/** Game ID for stable ruleset-key lookup */
|
|
1104
|
+
gameId: string;
|
|
1105
|
+
/** Stable ruleset key */
|
|
1106
|
+
key: string;
|
|
1107
|
+
}
|
|
1108
|
+
interface ListRulesetVersionsOptions extends GetRulesetOptions {
|
|
1109
|
+
/** Optional status filter */
|
|
1110
|
+
status?: RulesetVersionStatus;
|
|
1111
|
+
/** Maximum number of results per page */
|
|
1112
|
+
first?: number;
|
|
1113
|
+
/** Cursor for pagination */
|
|
1114
|
+
after?: string;
|
|
1115
|
+
}
|
|
1116
|
+
interface RulesetValidationRulesOptions extends GetRulesetOptions {
|
|
1117
|
+
/** Optional immutable ruleset version override */
|
|
1118
|
+
rulesetVersionId?: string;
|
|
1119
|
+
}
|
|
1120
|
+
interface RulesetValidationImpactOptions extends GetRulesetOptions {
|
|
1121
|
+
/** Maximum number of affected decks to include */
|
|
1122
|
+
first?: number;
|
|
1123
|
+
}
|
|
1124
|
+
declare class RulesetsResource extends BaseResource {
|
|
1125
|
+
constructor(connection: Connection, config: Configuration);
|
|
1126
|
+
/**
|
|
1127
|
+
* List first-class rulesets for a game.
|
|
1128
|
+
*/
|
|
1129
|
+
list(gameId: string, options?: ListRulesetsOptions): Promise<Collection<Ruleset>>;
|
|
1130
|
+
/**
|
|
1131
|
+
* List active public rulesets for a public game.
|
|
1132
|
+
*/
|
|
1133
|
+
listPublic(gameId: string, options?: ListPublicRulesetsOptions): Promise<Collection<Ruleset>>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Get one ruleset by UUID.
|
|
1136
|
+
*/
|
|
1137
|
+
get(id: string, options?: GetRulesetOptions): Promise<Ruleset | null>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Get one ruleset by game ID and stable key.
|
|
1140
|
+
*/
|
|
1141
|
+
getByKey(options: GetRulesetByKeyOptions): Promise<Ruleset | null>;
|
|
1142
|
+
/**
|
|
1143
|
+
* List immutable versions for a ruleset.
|
|
1144
|
+
*/
|
|
1145
|
+
versions(rulesetId: string, options?: ListRulesetVersionsOptions): Promise<Collection<RulesetVersion>>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Get one immutable ruleset version by UUID.
|
|
1148
|
+
*/
|
|
1149
|
+
getVersion(id: string, options?: GetRulesetOptions): Promise<RulesetVersion | null>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Get the canonical active rules JSON for a ruleset.
|
|
1152
|
+
*/
|
|
1153
|
+
validationRules(gameId: string, rulesetKey: string, options?: RulesetValidationRulesOptions): Promise<Record<string, unknown> | null>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Get typed validation rules, including parsed deck sections.
|
|
1156
|
+
*/
|
|
1157
|
+
deckValidationRules(gameId: string, rulesetKey: string, options?: RulesetValidationRulesOptions): Promise<DeckValidationRules | null>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Preview compiling a legacy formats dataset record into a draft ruleset version.
|
|
1160
|
+
*/
|
|
1161
|
+
previewImport(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Promise<RulesetVersionDraftImportPreview>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Preview validation impact for decks that use a ruleset version's parent ruleset.
|
|
1164
|
+
*/
|
|
1165
|
+
validationImpact(rulesetVersionId: string, options?: RulesetValidationImpactOptions): Promise<RulesetValidationImpact>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Create a first-class ruleset. Requires a server-side secret credential.
|
|
1168
|
+
*/
|
|
1169
|
+
create(input: RulesetCreateInput): Promise<Ruleset>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Update editable ruleset metadata. Requires a server-side secret credential.
|
|
1172
|
+
*/
|
|
1173
|
+
update(id: string, input: RulesetUpdateInput): Promise<Ruleset>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Create a draft ruleset version from an explicit canonical rules payload.
|
|
1176
|
+
*/
|
|
1177
|
+
createDraft(rulesetId: string, input: RulesetVersionDraftCreateInput): Promise<RulesetVersion>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Create a draft by compiling a legacy formats dataset record.
|
|
1180
|
+
*/
|
|
1181
|
+
importDraftFromDatasetRecord(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Promise<RulesetVersion>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Update a draft ruleset version.
|
|
1184
|
+
*/
|
|
1185
|
+
updateDraft(id: string, input: RulesetVersionDraftUpdateInput): Promise<RulesetVersion>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Publish a draft and make it the current active ruleset version.
|
|
1188
|
+
*/
|
|
1189
|
+
publishVersion(id: string, input?: RulesetVersionPublishInput): Promise<RulesetVersion>;
|
|
1190
|
+
/**
|
|
1191
|
+
* Activate an already-published version for rollback.
|
|
1192
|
+
*/
|
|
1193
|
+
activateVersion(id: string): Promise<RulesetVersion>;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1103
1196
|
/**
|
|
1104
1197
|
* Publisher-managed import format resource for CardDB API
|
|
1105
1198
|
*/
|
|
@@ -1594,6 +1687,8 @@ declare class CardDBClient {
|
|
|
1594
1687
|
readonly decks: DecksResource;
|
|
1595
1688
|
/** Rules resource for game rules and deck formats */
|
|
1596
1689
|
readonly rules: RulesResource;
|
|
1690
|
+
/** First-class rulesets resource for deck validation rules */
|
|
1691
|
+
readonly rulesets: RulesetsResource;
|
|
1597
1692
|
/** Publisher-managed import format resource */
|
|
1598
1693
|
readonly importFormats: ImportFormatsResource;
|
|
1599
1694
|
/** Publisher import job resource */
|
|
@@ -1687,4 +1782,4 @@ declare function readCache<T>(cache: Cache, key: string): Promise<T | null>;
|
|
|
1687
1782
|
*/
|
|
1688
1783
|
declare function writeCache<T>(cache: Cache, key: string, value: T, ttl: number): Promise<void>;
|
|
1689
1784
|
|
|
1690
|
-
export { BaseResource, CardDBClient, Configuration, type ConfirmScanUploadOptions, Connection, type CreateScanJobOptions, type CreateScanUploadSessionOptions, DEFAULT_CACHE_TTL, DEFAULT_ENDPOINT, DEFAULT_MAX_NETWORK_RETRIES, DEFAULT_MAX_RETRIES, DEFAULT_OPEN_TIMEOUT, DEFAULT_RETRY_BASE_DELAY, DEFAULT_RETRY_MAX_DELAY, DEFAULT_TIMEOUT, DatasetsResource, type DeckSectionDefinitionsOptions, DecksResource, ExportsResource, type FetchDeckByExternalRefOptions, type FetchDeckBySlugOptions, type FetchDeckOptions, FilesResource, GamesResource, type GetDatasetByKeyOptions, type GetDatasetOptions, type GetFileOptions, type GetGameByKeyOptions, type GetGameBySlugOptions, type GetGameOptions, type GetGameRegionsOptions, type GetImportFormatByKeyOptions, type GetImportFormatOptions, type GetPublisherOptions, type GetRecordByDatasetIdentifierOptions, type GetRecordByIdentifierOptions, type GetRecordOptions, type GetRecordsByIdentifierOptions, type GetScanJobOptions, type GraphQLResponse, type HydrateDeckEntriesOptions, ImportFormatsResource, ImportsResource, type ListAppDecksOptions, type ListDatasetsOptions, type
|
|
1785
|
+
export { BaseResource, CardDBClient, Configuration, type ConfirmScanUploadOptions, Connection, type CreateScanJobOptions, type CreateScanUploadSessionOptions, DEFAULT_CACHE_TTL, DEFAULT_ENDPOINT, DEFAULT_MAX_NETWORK_RETRIES, DEFAULT_MAX_RETRIES, DEFAULT_OPEN_TIMEOUT, DEFAULT_RETRY_BASE_DELAY, DEFAULT_RETRY_MAX_DELAY, DEFAULT_TIMEOUT, DatasetsResource, type DeckReadByExternalRefOptions, type DeckReadOptions, type DeckSectionDefinitionsOptions, DecksResource, ExportsResource, type FetchDeckByExternalRefOptions, type FetchDeckBySlugOptions, type FetchDeckOptions, FilesResource, GamesResource, type GetDatasetByKeyOptions, type GetDatasetOptions, type GetFileOptions, type GetGameByKeyOptions, type GetGameBySlugOptions, type GetGameOptions, type GetGameRegionsOptions, type GetImportFormatByKeyOptions, type GetImportFormatOptions, type GetPublisherOptions, type GetRecordByDatasetIdentifierOptions, type GetRecordByIdentifierOptions, type GetRecordOptions, type GetRecordsByIdentifierOptions, type GetRulesetByKeyOptions, type GetRulesetOptions, type GetScanJobOptions, type GraphQLResponse, type HydrateDeckEntriesOptions, ImportFormatsResource, ImportsResource, type ListAppDecksOptions, type ListDatasetsOptions, type ListDeckApiApplicationAccessesOptions, type ListDeckCollaboratorsOptions, type ListDeckImportFormatsOptions, type ListDeckVersionsOptions, type ListDecksOptions, type ListExportJobsOptions, type ListFormatsOptions, type ListGameImportJobsOptions, type ListGamesOptions, type ListImportFormatsOptions, type ListImportJobLogsOptions, type ListImportJobsOptions, type ListMyDeckApiApplicationAccessesOptions, type ListPublicDecksOptions, type ListPublicRulesetsOptions, type ListRecordDeleteJobsOptions, type ListRecordsOptions, type ListRuleDatasetsOptions, type ListRulesOptions, type ListRulesetVersionsOptions, type ListRulesetsOptions, type ListScanTemplatesOptions, type ListViewerDecksOptions, type PollScanJobOptions, type PollSignal, type PreviewScanTemplateOptions, PublishersResource, RecordsResource, type ResolveScanTemplateOptions, RulesResource, type RulesetValidationImpactOptions, type RulesetValidationRulesOptions, RulesetsResource, type SaveScanTemplateOptions, type ScanMetricsOptions, ScanTemplatesResource, ScansResource, type SearchDatasetsOptions, type SearchGamesOptions, type SearchPublishersOptions, type SearchRecordsOptions, type UpdateScanTemplateOptions, type UploadFileInput, type VerifyWebhookSignatureInput, type WaitForExportJobOptions, type WaitForImportJobOptions, type WaitForRecordDeleteJobOptions, cacheKey, getRateLimitInfo, getSDKVersion, getUserAgent, readCache, writeCache };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _carddb_core from '@carddb/core';
|
|
2
|
-
import { Logger, LogLevel, Cache, ResourceType, CardDBConfig, RateLimitInfo, GraphQLErrorInfo, Collection, Publisher, Game, GameCreateInput, GameUpdateInput, GameScanRegion, Dataset, DatasetSchema, Deck, ViewerDecksFilterInput, AppDecksFilterInput, PublicDecksFilterInput, DeckVersion, DeckDiff, DeckValidateInput, DeckValidation, DeckHydrateEntriesInput, DeckHydrateEntriesPayload, DeckExportFormat, DeckExportPayload, DeckSectionDefinition, DeckCollaborator,
|
|
2
|
+
import { Logger, LogLevel, Cache, ResourceType, CardDBConfig, RateLimitInfo, GraphQLErrorInfo, Collection, Publisher, Game, GameCreateInput, GameUpdateInput, GameScanRegion, Dataset, DatasetSchema, Deck, DeckReadState, DeckPublishedVersionSelector, ViewerDecksFilterInput, AppDecksFilterInput, PublicDecksFilterInput, DeckVersion, DeckDiff, DeckValidateInput, DeckValidation, DeckHydrateEntriesInput, DeckHydrateEntriesPayload, DeckExportFormat, DeckExportPayload, DeckSectionDefinition, DeckCollaborator, DeckAPIApplicationAccess, DeckCreateInput, DeckUpdateInput, DeckUpsertByExternalRefInput, DeckUpsertByExternalRefPayload, DeckClaimInput, DeckOwnershipTransferPayload, DeckTransferOwnershipInput, DeckCopyInput, DeckCopyPayload, DeckEntryAddInput, DeckEntryMutationPayload, DeckEntryUpdateInput, DeckEntryReorderInput, DeckEntryReorderPayload, DeckEntriesReplaceInput, DeckEntriesReplacePayload, DeckImportInput, DeckImportPayload, DeckImportFormatDefinition, DeckImportFormatTestInput, DeckImportFormatTestPayload, DeckImportFormatCreateInput, DeckImportFormatUpdateInput, DeckPublishInput, DeckPublishPayload, DeckRemoveInvalidEntriesInput, DeckCollaboratorRole, DeckTokenIssuerCreateInput, DeckTokenIssuer, DeckAPIApplicationAccessGrantInput, DeckTokenExchangeInput, DeckTokenExchangePayload, HydrateDeckEntryInput, HydratedDeckEntry, FilterInput, DatasetRecord, DatasetRecordsUpsertInput, DatasetRecordsUpsertPayload, DatasetRecordsDeleteInput, DatasetRecordDeleteJob, DatasetRecordDeleteJobStatus, Ruleset, RulesetVersionStatus, RulesetVersion, DeckValidationRules, RulesetVersionDraftImportFromDatasetRecordInput, RulesetVersionDraftImportPreview, RulesetValidationImpact, RulesetCreateInput, RulesetUpdateInput, RulesetVersionDraftCreateInput, RulesetVersionDraftUpdateInput, RulesetVersionPublishInput, DatasetImportPreviewInput, DatasetImportPreviewResult, DatasetImportValidateInput, BulkImportResult, DatasetImportRunInput, ImportJob, ImportJobStatus, ImportLogLevel, ImportJobLog, GameImportPreviewInput, GameImportPreview, GameImportRunInput, GameImportJob, DatasetExportInput, ExportJob, ExportJobStatus, File, FileUploadInput, PresignedUpload, UploadPurpose, CreateScanUploadSessionInput, ConfirmScanUploadInput, CreateScanJobInput, ScanJobPayload, ScanJob, SubmitScanFeedbackInput, ScanFeedbackPayload, ScanMetricsInput, ScanMetrics, ResolveScanTemplateInput, ScanTemplateResolution, ScanTemplatesInput, ScanTemplate, SaveScanTemplateInput, ScanTemplatePayload, PreviewScanTemplateInput, ScanTemplatePreview, APIKeyInfo } from '@carddb/core';
|
|
3
3
|
export * from '@carddb/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -446,13 +446,17 @@ interface FetchDeckOptions {
|
|
|
446
446
|
/** Whether to use cache (defaults to client config) */
|
|
447
447
|
cache?: boolean;
|
|
448
448
|
}
|
|
449
|
+
interface DeckReadOptions extends FetchDeckOptions {
|
|
450
|
+
/** Explicitly choose mutable draft data or immutable published data. */
|
|
451
|
+
readState: DeckReadState;
|
|
452
|
+
/** Optional published version selector. Only valid with readState: 'PUBLISHED'. */
|
|
453
|
+
version?: DeckPublishedVersionSelector;
|
|
454
|
+
}
|
|
449
455
|
type FetchDeckByExternalRefOptions = FetchDeckOptions;
|
|
456
|
+
type DeckReadByExternalRefOptions = DeckReadOptions;
|
|
450
457
|
type FetchDeckBySlugOptions = FetchDeckOptions;
|
|
451
458
|
type ListDeckVersionsOptions = ListDecksOptions;
|
|
452
459
|
type ListDeckCollaboratorsOptions = FetchDeckOptions;
|
|
453
|
-
type ListDeckPreviewTokensOptions = FetchDeckOptions;
|
|
454
|
-
type ListDeckEmbedTokensOptions = FetchDeckOptions;
|
|
455
|
-
type ListDeckAccessTokenIssuersOptions = FetchDeckOptions;
|
|
456
460
|
interface ListDeckApiApplicationAccessesOptions extends FetchDeckOptions {
|
|
457
461
|
includeRevoked?: boolean;
|
|
458
462
|
}
|
|
@@ -490,7 +494,17 @@ declare class DecksResource extends BaseResource {
|
|
|
490
494
|
/**
|
|
491
495
|
* Fetch a deck by UUID using the ownership-aware `deck` API.
|
|
492
496
|
*/
|
|
493
|
-
get(id: string, options
|
|
497
|
+
get(id: string, options: DeckReadOptions): Promise<Deck | null>;
|
|
498
|
+
/**
|
|
499
|
+
* Fetch mutable draft data for a deck by UUID.
|
|
500
|
+
*/
|
|
501
|
+
getDraft(id: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
502
|
+
/**
|
|
503
|
+
* Fetch immutable published data for a deck by UUID.
|
|
504
|
+
*/
|
|
505
|
+
getPublished(id: string, options?: FetchDeckOptions & {
|
|
506
|
+
version?: DeckPublishedVersionSelector;
|
|
507
|
+
}): Promise<Deck | null>;
|
|
494
508
|
/**
|
|
495
509
|
* Fetch one deck owned by the current account or API application.
|
|
496
510
|
*/
|
|
@@ -510,7 +524,17 @@ declare class DecksResource extends BaseResource {
|
|
|
510
524
|
/**
|
|
511
525
|
* Fetch by external reference using the ownership-aware `deckByExternalRef` API.
|
|
512
526
|
*/
|
|
513
|
-
getByExternalRef(externalRef: string, options
|
|
527
|
+
getByExternalRef(externalRef: string, options: DeckReadByExternalRefOptions): Promise<Deck | null>;
|
|
528
|
+
/**
|
|
529
|
+
* Fetch mutable draft data by API-application external reference.
|
|
530
|
+
*/
|
|
531
|
+
getDraftByExternalRef(externalRef: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
532
|
+
/**
|
|
533
|
+
* Fetch immutable published data by API-application external reference.
|
|
534
|
+
*/
|
|
535
|
+
getPublishedByExternalRef(externalRef: string, options?: FetchDeckOptions & {
|
|
536
|
+
version?: DeckPublishedVersionSelector;
|
|
537
|
+
}): Promise<Deck | null>;
|
|
514
538
|
/**
|
|
515
539
|
* List decks owned by the current account or API application.
|
|
516
540
|
*/
|
|
@@ -535,18 +559,6 @@ declare class DecksResource extends BaseResource {
|
|
|
535
559
|
* List immutable published versions for a deck.
|
|
536
560
|
*/
|
|
537
561
|
listVersions(deckId: string, options?: ListDeckVersionsOptions): Promise<Collection<DeckVersion>>;
|
|
538
|
-
/**
|
|
539
|
-
* Fetch current draft data using a revocable preview token.
|
|
540
|
-
*/
|
|
541
|
-
preview(token: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
542
|
-
/**
|
|
543
|
-
* Fetch published embed data using a revocable embed token.
|
|
544
|
-
*/
|
|
545
|
-
embed(token: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
546
|
-
/**
|
|
547
|
-
* Fetch token-authorized published data using an exchanged access token.
|
|
548
|
-
*/
|
|
549
|
-
access(token: string, options?: FetchDeckOptions): Promise<Deck | null>;
|
|
550
562
|
/**
|
|
551
563
|
* Compare the current draft against the latest published version.
|
|
552
564
|
*/
|
|
@@ -575,18 +587,6 @@ declare class DecksResource extends BaseResource {
|
|
|
575
587
|
* List collaborators for a deck.
|
|
576
588
|
*/
|
|
577
589
|
listCollaborators(deckId: string, options?: ListDeckCollaboratorsOptions): Promise<DeckCollaborator[]>;
|
|
578
|
-
/**
|
|
579
|
-
* List draft preview tokens for a deck.
|
|
580
|
-
*/
|
|
581
|
-
listPreviewTokens(deckId: string, options?: ListDeckPreviewTokensOptions): Promise<DeckPreviewToken[]>;
|
|
582
|
-
/**
|
|
583
|
-
* List published embed tokens for a deck.
|
|
584
|
-
*/
|
|
585
|
-
listEmbedTokens(deckId: string, options?: ListDeckEmbedTokensOptions): Promise<DeckEmbedToken[]>;
|
|
586
|
-
/**
|
|
587
|
-
* List trusted access token issuers for a deck.
|
|
588
|
-
*/
|
|
589
|
-
listAccessTokenIssuers(deckId: string, options?: ListDeckAccessTokenIssuersOptions): Promise<DeckAccessTokenIssuer[]>;
|
|
590
590
|
/**
|
|
591
591
|
* List API applications with explicit access to one owned deck.
|
|
592
592
|
*/
|
|
@@ -708,33 +708,17 @@ declare class DecksResource extends BaseResource {
|
|
|
708
708
|
*/
|
|
709
709
|
removeCollaborator(deckId: string, accountId: string): Promise<boolean>;
|
|
710
710
|
/**
|
|
711
|
-
* Create a
|
|
711
|
+
* Create a unified deck token issuer for the current secret-key API application.
|
|
712
712
|
*/
|
|
713
|
-
|
|
713
|
+
createTokenIssuer(input: DeckTokenIssuerCreateInput): Promise<DeckTokenIssuer>;
|
|
714
714
|
/**
|
|
715
|
-
* Revoke a
|
|
715
|
+
* Revoke a unified deck token issuer.
|
|
716
716
|
*/
|
|
717
|
-
|
|
717
|
+
revokeTokenIssuer(id: string): Promise<boolean>;
|
|
718
718
|
/**
|
|
719
|
-
*
|
|
719
|
+
* Revoke only the direct signing key for a unified deck token issuer.
|
|
720
720
|
*/
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* Revoke a published embed token.
|
|
724
|
-
*/
|
|
725
|
-
revokeEmbedToken(id: string): Promise<boolean>;
|
|
726
|
-
/**
|
|
727
|
-
* Trust the current API application to exchange short-lived deck access tokens.
|
|
728
|
-
*/
|
|
729
|
-
createAccessTokenIssuer(input: DeckAccessTokenIssuerCreateInput): Promise<DeckAccessTokenIssuer>;
|
|
730
|
-
/**
|
|
731
|
-
* Revoke a trusted deck access token issuer.
|
|
732
|
-
*/
|
|
733
|
-
revokeAccessTokenIssuer(id: string): Promise<boolean>;
|
|
734
|
-
/**
|
|
735
|
-
* Revoke only the direct signing key for a trusted deck access token issuer.
|
|
736
|
-
*/
|
|
737
|
-
revokeAccessTokenIssuerSigningKey(id: string): Promise<DeckAccessTokenIssuer>;
|
|
721
|
+
revokeTokenIssuerSigningKey(id: string): Promise<DeckTokenIssuer>;
|
|
738
722
|
/**
|
|
739
723
|
* Grant or update one OAuth app's selected-deck access.
|
|
740
724
|
*/
|
|
@@ -744,17 +728,13 @@ declare class DecksResource extends BaseResource {
|
|
|
744
728
|
*/
|
|
745
729
|
revokeApiApplicationAccess(deckId: string, apiApplicationId: string): Promise<boolean>;
|
|
746
730
|
/**
|
|
747
|
-
* Exchange the current
|
|
748
|
-
*/
|
|
749
|
-
exchangeAccessToken(input: DeckAccessTokenExchangeInput): Promise<DeckAccessTokenExchangePayload>;
|
|
750
|
-
/**
|
|
751
|
-
* Exchange the current secret API application credential for an app-owned deck session token.
|
|
731
|
+
* Exchange the current secret API application credential for a unified deck token.
|
|
752
732
|
*/
|
|
753
|
-
|
|
733
|
+
exchangeToken(input: DeckTokenExchangeInput): Promise<DeckTokenExchangePayload>;
|
|
754
734
|
/**
|
|
755
|
-
* Revoke an exchanged deck
|
|
735
|
+
* Revoke an exchanged unified deck token.
|
|
756
736
|
*/
|
|
757
|
-
|
|
737
|
+
revokeToken(id: string): Promise<boolean>;
|
|
758
738
|
/**
|
|
759
739
|
* Hydrate third-party-owned deck entries without storing them in CardDB.
|
|
760
740
|
*/
|
|
@@ -1100,6 +1080,119 @@ declare class RulesResource extends BaseResource {
|
|
|
1100
1080
|
private searchRuleRecords;
|
|
1101
1081
|
}
|
|
1102
1082
|
|
|
1083
|
+
/**
|
|
1084
|
+
* First-class rulesets resource for CardDB API
|
|
1085
|
+
*/
|
|
1086
|
+
|
|
1087
|
+
interface ListRulesetsOptions {
|
|
1088
|
+
/** Include archived rulesets */
|
|
1089
|
+
includeArchived?: boolean;
|
|
1090
|
+
/** Maximum number of results per page */
|
|
1091
|
+
first?: number;
|
|
1092
|
+
/** Cursor for pagination */
|
|
1093
|
+
after?: string;
|
|
1094
|
+
/** Whether to use cache (defaults to client config) */
|
|
1095
|
+
cache?: boolean;
|
|
1096
|
+
}
|
|
1097
|
+
type ListPublicRulesetsOptions = Omit<ListRulesetsOptions, 'includeArchived'>;
|
|
1098
|
+
interface GetRulesetOptions {
|
|
1099
|
+
/** Whether to use cache (defaults to client config) */
|
|
1100
|
+
cache?: boolean;
|
|
1101
|
+
}
|
|
1102
|
+
interface GetRulesetByKeyOptions extends GetRulesetOptions {
|
|
1103
|
+
/** Game ID for stable ruleset-key lookup */
|
|
1104
|
+
gameId: string;
|
|
1105
|
+
/** Stable ruleset key */
|
|
1106
|
+
key: string;
|
|
1107
|
+
}
|
|
1108
|
+
interface ListRulesetVersionsOptions extends GetRulesetOptions {
|
|
1109
|
+
/** Optional status filter */
|
|
1110
|
+
status?: RulesetVersionStatus;
|
|
1111
|
+
/** Maximum number of results per page */
|
|
1112
|
+
first?: number;
|
|
1113
|
+
/** Cursor for pagination */
|
|
1114
|
+
after?: string;
|
|
1115
|
+
}
|
|
1116
|
+
interface RulesetValidationRulesOptions extends GetRulesetOptions {
|
|
1117
|
+
/** Optional immutable ruleset version override */
|
|
1118
|
+
rulesetVersionId?: string;
|
|
1119
|
+
}
|
|
1120
|
+
interface RulesetValidationImpactOptions extends GetRulesetOptions {
|
|
1121
|
+
/** Maximum number of affected decks to include */
|
|
1122
|
+
first?: number;
|
|
1123
|
+
}
|
|
1124
|
+
declare class RulesetsResource extends BaseResource {
|
|
1125
|
+
constructor(connection: Connection, config: Configuration);
|
|
1126
|
+
/**
|
|
1127
|
+
* List first-class rulesets for a game.
|
|
1128
|
+
*/
|
|
1129
|
+
list(gameId: string, options?: ListRulesetsOptions): Promise<Collection<Ruleset>>;
|
|
1130
|
+
/**
|
|
1131
|
+
* List active public rulesets for a public game.
|
|
1132
|
+
*/
|
|
1133
|
+
listPublic(gameId: string, options?: ListPublicRulesetsOptions): Promise<Collection<Ruleset>>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Get one ruleset by UUID.
|
|
1136
|
+
*/
|
|
1137
|
+
get(id: string, options?: GetRulesetOptions): Promise<Ruleset | null>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Get one ruleset by game ID and stable key.
|
|
1140
|
+
*/
|
|
1141
|
+
getByKey(options: GetRulesetByKeyOptions): Promise<Ruleset | null>;
|
|
1142
|
+
/**
|
|
1143
|
+
* List immutable versions for a ruleset.
|
|
1144
|
+
*/
|
|
1145
|
+
versions(rulesetId: string, options?: ListRulesetVersionsOptions): Promise<Collection<RulesetVersion>>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Get one immutable ruleset version by UUID.
|
|
1148
|
+
*/
|
|
1149
|
+
getVersion(id: string, options?: GetRulesetOptions): Promise<RulesetVersion | null>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Get the canonical active rules JSON for a ruleset.
|
|
1152
|
+
*/
|
|
1153
|
+
validationRules(gameId: string, rulesetKey: string, options?: RulesetValidationRulesOptions): Promise<Record<string, unknown> | null>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Get typed validation rules, including parsed deck sections.
|
|
1156
|
+
*/
|
|
1157
|
+
deckValidationRules(gameId: string, rulesetKey: string, options?: RulesetValidationRulesOptions): Promise<DeckValidationRules | null>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Preview compiling a legacy formats dataset record into a draft ruleset version.
|
|
1160
|
+
*/
|
|
1161
|
+
previewImport(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Promise<RulesetVersionDraftImportPreview>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Preview validation impact for decks that use a ruleset version's parent ruleset.
|
|
1164
|
+
*/
|
|
1165
|
+
validationImpact(rulesetVersionId: string, options?: RulesetValidationImpactOptions): Promise<RulesetValidationImpact>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Create a first-class ruleset. Requires a server-side secret credential.
|
|
1168
|
+
*/
|
|
1169
|
+
create(input: RulesetCreateInput): Promise<Ruleset>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Update editable ruleset metadata. Requires a server-side secret credential.
|
|
1172
|
+
*/
|
|
1173
|
+
update(id: string, input: RulesetUpdateInput): Promise<Ruleset>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Create a draft ruleset version from an explicit canonical rules payload.
|
|
1176
|
+
*/
|
|
1177
|
+
createDraft(rulesetId: string, input: RulesetVersionDraftCreateInput): Promise<RulesetVersion>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Create a draft by compiling a legacy formats dataset record.
|
|
1180
|
+
*/
|
|
1181
|
+
importDraftFromDatasetRecord(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Promise<RulesetVersion>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Update a draft ruleset version.
|
|
1184
|
+
*/
|
|
1185
|
+
updateDraft(id: string, input: RulesetVersionDraftUpdateInput): Promise<RulesetVersion>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Publish a draft and make it the current active ruleset version.
|
|
1188
|
+
*/
|
|
1189
|
+
publishVersion(id: string, input?: RulesetVersionPublishInput): Promise<RulesetVersion>;
|
|
1190
|
+
/**
|
|
1191
|
+
* Activate an already-published version for rollback.
|
|
1192
|
+
*/
|
|
1193
|
+
activateVersion(id: string): Promise<RulesetVersion>;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1103
1196
|
/**
|
|
1104
1197
|
* Publisher-managed import format resource for CardDB API
|
|
1105
1198
|
*/
|
|
@@ -1594,6 +1687,8 @@ declare class CardDBClient {
|
|
|
1594
1687
|
readonly decks: DecksResource;
|
|
1595
1688
|
/** Rules resource for game rules and deck formats */
|
|
1596
1689
|
readonly rules: RulesResource;
|
|
1690
|
+
/** First-class rulesets resource for deck validation rules */
|
|
1691
|
+
readonly rulesets: RulesetsResource;
|
|
1597
1692
|
/** Publisher-managed import format resource */
|
|
1598
1693
|
readonly importFormats: ImportFormatsResource;
|
|
1599
1694
|
/** Publisher import job resource */
|
|
@@ -1687,4 +1782,4 @@ declare function readCache<T>(cache: Cache, key: string): Promise<T | null>;
|
|
|
1687
1782
|
*/
|
|
1688
1783
|
declare function writeCache<T>(cache: Cache, key: string, value: T, ttl: number): Promise<void>;
|
|
1689
1784
|
|
|
1690
|
-
export { BaseResource, CardDBClient, Configuration, type ConfirmScanUploadOptions, Connection, type CreateScanJobOptions, type CreateScanUploadSessionOptions, DEFAULT_CACHE_TTL, DEFAULT_ENDPOINT, DEFAULT_MAX_NETWORK_RETRIES, DEFAULT_MAX_RETRIES, DEFAULT_OPEN_TIMEOUT, DEFAULT_RETRY_BASE_DELAY, DEFAULT_RETRY_MAX_DELAY, DEFAULT_TIMEOUT, DatasetsResource, type DeckSectionDefinitionsOptions, DecksResource, ExportsResource, type FetchDeckByExternalRefOptions, type FetchDeckBySlugOptions, type FetchDeckOptions, FilesResource, GamesResource, type GetDatasetByKeyOptions, type GetDatasetOptions, type GetFileOptions, type GetGameByKeyOptions, type GetGameBySlugOptions, type GetGameOptions, type GetGameRegionsOptions, type GetImportFormatByKeyOptions, type GetImportFormatOptions, type GetPublisherOptions, type GetRecordByDatasetIdentifierOptions, type GetRecordByIdentifierOptions, type GetRecordOptions, type GetRecordsByIdentifierOptions, type GetScanJobOptions, type GraphQLResponse, type HydrateDeckEntriesOptions, ImportFormatsResource, ImportsResource, type ListAppDecksOptions, type ListDatasetsOptions, type
|
|
1785
|
+
export { BaseResource, CardDBClient, Configuration, type ConfirmScanUploadOptions, Connection, type CreateScanJobOptions, type CreateScanUploadSessionOptions, DEFAULT_CACHE_TTL, DEFAULT_ENDPOINT, DEFAULT_MAX_NETWORK_RETRIES, DEFAULT_MAX_RETRIES, DEFAULT_OPEN_TIMEOUT, DEFAULT_RETRY_BASE_DELAY, DEFAULT_RETRY_MAX_DELAY, DEFAULT_TIMEOUT, DatasetsResource, type DeckReadByExternalRefOptions, type DeckReadOptions, type DeckSectionDefinitionsOptions, DecksResource, ExportsResource, type FetchDeckByExternalRefOptions, type FetchDeckBySlugOptions, type FetchDeckOptions, FilesResource, GamesResource, type GetDatasetByKeyOptions, type GetDatasetOptions, type GetFileOptions, type GetGameByKeyOptions, type GetGameBySlugOptions, type GetGameOptions, type GetGameRegionsOptions, type GetImportFormatByKeyOptions, type GetImportFormatOptions, type GetPublisherOptions, type GetRecordByDatasetIdentifierOptions, type GetRecordByIdentifierOptions, type GetRecordOptions, type GetRecordsByIdentifierOptions, type GetRulesetByKeyOptions, type GetRulesetOptions, type GetScanJobOptions, type GraphQLResponse, type HydrateDeckEntriesOptions, ImportFormatsResource, ImportsResource, type ListAppDecksOptions, type ListDatasetsOptions, type ListDeckApiApplicationAccessesOptions, type ListDeckCollaboratorsOptions, type ListDeckImportFormatsOptions, type ListDeckVersionsOptions, type ListDecksOptions, type ListExportJobsOptions, type ListFormatsOptions, type ListGameImportJobsOptions, type ListGamesOptions, type ListImportFormatsOptions, type ListImportJobLogsOptions, type ListImportJobsOptions, type ListMyDeckApiApplicationAccessesOptions, type ListPublicDecksOptions, type ListPublicRulesetsOptions, type ListRecordDeleteJobsOptions, type ListRecordsOptions, type ListRuleDatasetsOptions, type ListRulesOptions, type ListRulesetVersionsOptions, type ListRulesetsOptions, type ListScanTemplatesOptions, type ListViewerDecksOptions, type PollScanJobOptions, type PollSignal, type PreviewScanTemplateOptions, PublishersResource, RecordsResource, type ResolveScanTemplateOptions, RulesResource, type RulesetValidationImpactOptions, type RulesetValidationRulesOptions, RulesetsResource, type SaveScanTemplateOptions, type ScanMetricsOptions, ScanTemplatesResource, ScansResource, type SearchDatasetsOptions, type SearchGamesOptions, type SearchPublishersOptions, type SearchRecordsOptions, type UpdateScanTemplateOptions, type UploadFileInput, type VerifyWebhookSignatureInput, type WaitForExportJobOptions, type WaitForImportJobOptions, type WaitForRecordDeleteJobOptions, cacheKey, getRateLimitInfo, getSDKVersion, getUserAgent, readCache, writeCache };
|