@carddb/core 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 +464 -209
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +266 -136
- package/dist/index.d.ts +266 -136
- package/dist/index.js +464 -209
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Core types for CardDB JavaScript clients
|
|
3
3
|
*/
|
|
4
4
|
type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
5
|
-
type ResourceType = 'publishers' | 'games' | 'datasets' | 'records' | 'decks' | 'importFormats' | 'imports' | 'exports' | 'files' | 'scans' | 'scanTemplates';
|
|
5
|
+
type ResourceType = 'publishers' | 'games' | 'datasets' | 'records' | 'decks' | 'rulesets' | 'importFormats' | 'imports' | 'exports' | 'files' | 'scans' | 'scanTemplates';
|
|
6
6
|
interface Logger {
|
|
7
7
|
debug(message: string, ...args: unknown[]): void;
|
|
8
8
|
info(message: string, ...args: unknown[]): void;
|
|
@@ -579,7 +579,7 @@ interface ImportJob {
|
|
|
579
579
|
publisher: Publisher;
|
|
580
580
|
datasetId: string;
|
|
581
581
|
dataset: Dataset;
|
|
582
|
-
accountId: string;
|
|
582
|
+
accountId: string | null;
|
|
583
583
|
status: ImportJobStatus;
|
|
584
584
|
mode: ImportMode;
|
|
585
585
|
onConflict: OnConflict;
|
|
@@ -911,9 +911,10 @@ type DeckEnvironment = 'TEST' | 'LIVE';
|
|
|
911
911
|
type DeckAccessMode = 'PUBLIC' | 'OWNER_ONLY' | 'AUTHORIZED_TOKEN';
|
|
912
912
|
type DeckDiscoverability = 'LISTED' | 'UNLISTED';
|
|
913
913
|
type DeckState = 'DRAFT' | 'PUBLISHED' | 'ARCHIVED' | 'DELETED';
|
|
914
|
-
type
|
|
915
|
-
type
|
|
916
|
-
type
|
|
914
|
+
type DeckReadState = 'DRAFT' | 'PUBLISHED';
|
|
915
|
+
type DeckRepresentation = 'PUBLIC' | 'EMBED' | 'DETAILED';
|
|
916
|
+
type DeckTokenScope = 'DECK_DRAFT_READ' | 'DECK_DRAFT_WRITE' | 'DECK_PUBLISH' | 'DECK_DELETE' | 'DECK_PUBLISHED_READ' | 'DECK_VERSION_READ' | 'DECK_COLLABORATE';
|
|
917
|
+
type DeckTokenSigningAlgorithm = 'ED25519';
|
|
917
918
|
type DeckImportFormat = 'SIMPLE_TEXT' | 'CONFIGURED';
|
|
918
919
|
type DeckExportFormat = 'SIMPLE_TEXT';
|
|
919
920
|
type DeckCollaboratorRole = 'VIEWER' | 'EDITOR';
|
|
@@ -1071,46 +1072,18 @@ interface DeckAPIApplicationAccess {
|
|
|
1071
1072
|
createdAt: string;
|
|
1072
1073
|
updatedAt: string;
|
|
1073
1074
|
}
|
|
1074
|
-
interface
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
label: string | null;
|
|
1078
|
-
expiresAt: string | null;
|
|
1079
|
-
revokedAt: string | null;
|
|
1080
|
-
lastUsedAt: string | null;
|
|
1081
|
-
createdAt: string;
|
|
1082
|
-
updatedAt: string;
|
|
1083
|
-
}
|
|
1084
|
-
interface DeckPreviewTokenCreatePayload {
|
|
1085
|
-
token: string;
|
|
1086
|
-
previewToken: DeckPreviewToken;
|
|
1075
|
+
interface DeckPublishedVersionSelector {
|
|
1076
|
+
versionId?: string;
|
|
1077
|
+
versionNumber?: number;
|
|
1087
1078
|
}
|
|
1088
|
-
interface
|
|
1079
|
+
interface DeckTokenIssuer {
|
|
1089
1080
|
id: string;
|
|
1090
|
-
deckId: string;
|
|
1091
|
-
apiApplicationId: string | null;
|
|
1092
|
-
label: string | null;
|
|
1093
|
-
readMode: DeckTokenReadMode;
|
|
1094
|
-
allowedOrigins: string[];
|
|
1095
|
-
externalSubject: string | null;
|
|
1096
|
-
expiresAt: string | null;
|
|
1097
|
-
revokedAt: string | null;
|
|
1098
|
-
lastUsedAt: string | null;
|
|
1099
|
-
createdAt: string;
|
|
1100
|
-
updatedAt: string;
|
|
1101
|
-
}
|
|
1102
|
-
interface DeckEmbedTokenCreatePayload {
|
|
1103
|
-
token: string;
|
|
1104
|
-
embedToken: DeckEmbedToken;
|
|
1105
|
-
}
|
|
1106
|
-
interface DeckAccessTokenIssuer {
|
|
1107
|
-
id: string;
|
|
1108
|
-
deckId: string;
|
|
1109
1081
|
apiApplicationId: string;
|
|
1110
1082
|
label: string | null;
|
|
1111
|
-
|
|
1083
|
+
allowedScopes: DeckTokenScope[];
|
|
1084
|
+
allowedRepresentations: DeckRepresentation[];
|
|
1112
1085
|
maxTokenLifetimeSeconds: number;
|
|
1113
|
-
directSigningAlg:
|
|
1086
|
+
directSigningAlg: DeckTokenSigningAlgorithm | null;
|
|
1114
1087
|
directSigningKeyId: string | null;
|
|
1115
1088
|
directSigningPublicKey: string | null;
|
|
1116
1089
|
directSigningKeyRevokedAt: string | null;
|
|
@@ -1118,40 +1091,24 @@ interface DeckAccessTokenIssuer {
|
|
|
1118
1091
|
createdAt: string;
|
|
1119
1092
|
updatedAt: string;
|
|
1120
1093
|
}
|
|
1121
|
-
interface
|
|
1094
|
+
interface DeckToken {
|
|
1122
1095
|
id: string;
|
|
1123
|
-
deckId: string;
|
|
1124
1096
|
apiApplicationId: string;
|
|
1125
|
-
issuerId: string;
|
|
1126
|
-
|
|
1097
|
+
issuerId: string | null;
|
|
1098
|
+
deckId: string | null;
|
|
1099
|
+
gameId: string | null;
|
|
1127
1100
|
externalSubject: string | null;
|
|
1101
|
+
scopes: DeckTokenScope[];
|
|
1102
|
+
representation: DeckRepresentation | null;
|
|
1128
1103
|
expiresAt: string;
|
|
1129
1104
|
revokedAt: string | null;
|
|
1130
1105
|
lastUsedAt: string | null;
|
|
1131
1106
|
createdAt: string;
|
|
1132
1107
|
updatedAt: string;
|
|
1133
1108
|
}
|
|
1134
|
-
interface
|
|
1135
|
-
token: string;
|
|
1136
|
-
accessToken: DeckAccessToken;
|
|
1137
|
-
}
|
|
1138
|
-
interface DeckSessionToken {
|
|
1139
|
-
id: string;
|
|
1140
|
-
accountId: string;
|
|
1141
|
-
apiApplicationId: string;
|
|
1142
|
-
gameId: string;
|
|
1143
|
-
environment: DeckEnvironment;
|
|
1144
|
-
externalSubject: string;
|
|
1145
|
-
scopes: string[];
|
|
1146
|
-
expiresAt: string;
|
|
1147
|
-
revokedAt: string | null;
|
|
1148
|
-
lastUsedAt: string | null;
|
|
1149
|
-
createdAt: string;
|
|
1150
|
-
updatedAt: string;
|
|
1151
|
-
}
|
|
1152
|
-
interface DeckSessionTokenExchangePayload {
|
|
1109
|
+
interface DeckTokenExchangePayload {
|
|
1153
1110
|
token: string;
|
|
1154
|
-
|
|
1111
|
+
deckToken: DeckToken;
|
|
1155
1112
|
}
|
|
1156
1113
|
interface DeckEntry {
|
|
1157
1114
|
id: string;
|
|
@@ -1187,7 +1144,11 @@ interface DeckCreateInput {
|
|
|
1187
1144
|
rulesetId?: string;
|
|
1188
1145
|
sourceUrl?: string;
|
|
1189
1146
|
metadata?: Record<string, unknown>;
|
|
1190
|
-
|
|
1147
|
+
/**
|
|
1148
|
+
* Omit/null to create an empty deck on first upsert or preserve entries on update.
|
|
1149
|
+
* Pass [] to explicitly replace existing entries with an empty decklist.
|
|
1150
|
+
*/
|
|
1151
|
+
entries?: DeckEntryInput[] | null;
|
|
1191
1152
|
}
|
|
1192
1153
|
interface DeckUpsertByExternalRefInput {
|
|
1193
1154
|
externalRef: string;
|
|
@@ -1358,43 +1319,154 @@ interface DeckSectionDefinition {
|
|
|
1358
1319
|
legalCardTypes: string[];
|
|
1359
1320
|
metadata: Record<string, unknown>;
|
|
1360
1321
|
}
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1322
|
+
type RulesetVersionStatus = 'DRAFT' | 'ACTIVE' | 'SUPERSEDED';
|
|
1323
|
+
interface Ruleset {
|
|
1324
|
+
id: string;
|
|
1325
|
+
gameId: string;
|
|
1326
|
+
game: GameRef | null;
|
|
1327
|
+
key: string;
|
|
1328
|
+
name: string;
|
|
1329
|
+
description: string | null;
|
|
1330
|
+
tags: string[];
|
|
1331
|
+
sortOrder: number;
|
|
1332
|
+
currentVersionId: string | null;
|
|
1333
|
+
currentVersion: RulesetVersion | null;
|
|
1334
|
+
archivedAt: string | null;
|
|
1335
|
+
isArchived: boolean;
|
|
1336
|
+
createdAt: string;
|
|
1337
|
+
updatedAt: string;
|
|
1365
1338
|
}
|
|
1366
|
-
interface
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1339
|
+
interface RulesetVersion {
|
|
1340
|
+
id: string;
|
|
1341
|
+
rulesetId: string;
|
|
1342
|
+
versionLabel: string;
|
|
1343
|
+
status: RulesetVersionStatus;
|
|
1344
|
+
rules: Record<string, unknown>;
|
|
1345
|
+
sectionDefinitions: DeckSectionDefinition[];
|
|
1346
|
+
cardDatasetId: string | null;
|
|
1347
|
+
cardDatasetVersionId: string | null;
|
|
1348
|
+
sourceDatasetId: string | null;
|
|
1349
|
+
sourceDatasetVersionId: string | null;
|
|
1350
|
+
sourceDatasetRecordId: string | null;
|
|
1351
|
+
sourceRecordIdentifier: string | null;
|
|
1352
|
+
rulesFingerprint: string | null;
|
|
1353
|
+
effectiveAt: string | null;
|
|
1354
|
+
changelog: string | null;
|
|
1355
|
+
createdByAccountId: string | null;
|
|
1356
|
+
publishedByAccountId: string | null;
|
|
1357
|
+
publishedAt: string | null;
|
|
1358
|
+
supersededAt: string | null;
|
|
1359
|
+
createdAt: string;
|
|
1360
|
+
updatedAt: string;
|
|
1373
1361
|
}
|
|
1374
|
-
|
|
1362
|
+
type RulesetConnection = Connection<Ruleset>;
|
|
1363
|
+
type RulesetVersionConnection = Connection<RulesetVersion>;
|
|
1364
|
+
interface DeckValidationRules {
|
|
1365
|
+
rulesetId: string;
|
|
1366
|
+
rulesetVersionId: string;
|
|
1367
|
+
rulesetKey: string;
|
|
1368
|
+
rulesetVersionLabel: string;
|
|
1369
|
+
rules: Record<string, unknown>;
|
|
1370
|
+
sections: DeckSectionDefinition[];
|
|
1371
|
+
}
|
|
1372
|
+
interface RulesetValidationImpact {
|
|
1373
|
+
rulesetId: string;
|
|
1374
|
+
rulesetVersionId: string;
|
|
1375
|
+
checkedAt: string;
|
|
1376
|
+
affectedDeckCount: number;
|
|
1377
|
+
invalidDeckCount: number;
|
|
1378
|
+
blockerCount: number;
|
|
1379
|
+
warningCount: number;
|
|
1380
|
+
results: RulesetValidationImpactDeck[];
|
|
1381
|
+
}
|
|
1382
|
+
interface RulesetValidationImpactDeck {
|
|
1375
1383
|
deckId: string;
|
|
1376
|
-
|
|
1384
|
+
title: string;
|
|
1385
|
+
slug: string;
|
|
1386
|
+
state: DeckState;
|
|
1387
|
+
hasUnpublishedChanges: boolean;
|
|
1388
|
+
valid: boolean;
|
|
1389
|
+
blockerCount: number;
|
|
1390
|
+
warningCount: number;
|
|
1391
|
+
affectedEntryCount: number;
|
|
1392
|
+
issues: DeckValidationIssue[];
|
|
1393
|
+
}
|
|
1394
|
+
interface RulesetVersionDraftImportPreview {
|
|
1395
|
+
sourceDatasetId: string;
|
|
1396
|
+
sourceDatasetVersionId: string | null;
|
|
1397
|
+
sourceDatasetRecordId: string;
|
|
1398
|
+
sourceRecordIdentifier: string;
|
|
1399
|
+
rules: Record<string, unknown>;
|
|
1400
|
+
sectionDefinitions: DeckSectionDefinition[];
|
|
1401
|
+
rulesFingerprint: string;
|
|
1402
|
+
summary: string;
|
|
1403
|
+
sectionCount: number;
|
|
1404
|
+
copyLimitCount: number;
|
|
1405
|
+
}
|
|
1406
|
+
interface RulesetCreateInput {
|
|
1407
|
+
gameId: string;
|
|
1408
|
+
key: string;
|
|
1409
|
+
name: string;
|
|
1410
|
+
description?: string;
|
|
1411
|
+
tags?: string[];
|
|
1412
|
+
sortOrder?: number;
|
|
1413
|
+
}
|
|
1414
|
+
interface RulesetUpdateInput {
|
|
1415
|
+
name?: string;
|
|
1416
|
+
description?: string;
|
|
1417
|
+
tags?: string[];
|
|
1418
|
+
sortOrder?: number;
|
|
1419
|
+
}
|
|
1420
|
+
interface RulesetVersionDraftCreateInput {
|
|
1421
|
+
versionLabel: string;
|
|
1422
|
+
rules: Record<string, unknown>;
|
|
1423
|
+
cardDatasetId?: string;
|
|
1424
|
+
cardDatasetVersionId?: string;
|
|
1425
|
+
effectiveAt?: string;
|
|
1426
|
+
changelog?: string;
|
|
1427
|
+
}
|
|
1428
|
+
interface RulesetVersionDraftImportFromDatasetRecordInput {
|
|
1429
|
+
versionLabel: string;
|
|
1430
|
+
sourceDatasetId: string;
|
|
1431
|
+
sourceDatasetRecordId: string;
|
|
1432
|
+
sourceDatasetVersionId?: string;
|
|
1433
|
+
cardDatasetId?: string;
|
|
1434
|
+
cardDatasetVersionId?: string;
|
|
1435
|
+
effectiveAt?: string;
|
|
1436
|
+
changelog?: string;
|
|
1437
|
+
}
|
|
1438
|
+
interface RulesetVersionDraftUpdateInput {
|
|
1439
|
+
versionLabel?: string;
|
|
1440
|
+
rules?: Record<string, unknown>;
|
|
1441
|
+
cardDatasetId?: string;
|
|
1442
|
+
cardDatasetVersionId?: string;
|
|
1443
|
+
effectiveAt?: string;
|
|
1444
|
+
changelog?: string;
|
|
1445
|
+
}
|
|
1446
|
+
interface RulesetVersionPublishInput {
|
|
1447
|
+
effectiveAt?: string;
|
|
1448
|
+
changelog?: string;
|
|
1449
|
+
}
|
|
1450
|
+
interface DeckTokenIssuerCreateInput {
|
|
1377
1451
|
label?: string;
|
|
1378
|
-
|
|
1452
|
+
allowedScopes: DeckTokenScope[];
|
|
1453
|
+
allowedRepresentations?: DeckRepresentation[];
|
|
1379
1454
|
maxTokenLifetimeSeconds?: number;
|
|
1380
|
-
directSigningKey?:
|
|
1455
|
+
directSigningKey?: DeckTokenIssuerSigningKeyInput;
|
|
1381
1456
|
}
|
|
1382
|
-
interface
|
|
1383
|
-
algorithm:
|
|
1457
|
+
interface DeckTokenIssuerSigningKeyInput {
|
|
1458
|
+
algorithm: DeckTokenSigningAlgorithm;
|
|
1384
1459
|
keyId: string;
|
|
1385
1460
|
publicKey: string;
|
|
1386
1461
|
}
|
|
1387
|
-
interface
|
|
1388
|
-
|
|
1389
|
-
|
|
1462
|
+
interface DeckTokenExchangeInput {
|
|
1463
|
+
issuerId?: string;
|
|
1464
|
+
deckId?: string;
|
|
1465
|
+
publisherSlug?: string;
|
|
1466
|
+
gameKey?: string;
|
|
1390
1467
|
externalSubject?: string;
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
interface DeckSessionTokenExchangeInput {
|
|
1394
|
-
publisherSlug: string;
|
|
1395
|
-
gameKey: string;
|
|
1396
|
-
externalSubject: string;
|
|
1397
|
-
scopes: DeckSessionScope[];
|
|
1468
|
+
scopes: DeckTokenScope[];
|
|
1469
|
+
representation?: DeckRepresentation;
|
|
1398
1470
|
expiresAt?: string;
|
|
1399
1471
|
}
|
|
1400
1472
|
interface DeckAPIApplicationAccessGrantInput {
|
|
@@ -2120,6 +2192,37 @@ interface DeckSectionDefinitionsParams {
|
|
|
2120
2192
|
rulesetKey?: string;
|
|
2121
2193
|
rulesetVersionId?: string;
|
|
2122
2194
|
}
|
|
2195
|
+
interface ListRulesetsParams {
|
|
2196
|
+
gameId: string;
|
|
2197
|
+
includeArchived?: boolean;
|
|
2198
|
+
first?: number;
|
|
2199
|
+
after?: string;
|
|
2200
|
+
}
|
|
2201
|
+
interface ListPublicRulesetsParams {
|
|
2202
|
+
gameId: string;
|
|
2203
|
+
first?: number;
|
|
2204
|
+
after?: string;
|
|
2205
|
+
}
|
|
2206
|
+
interface RulesetLookupParams {
|
|
2207
|
+
id?: string;
|
|
2208
|
+
gameId?: string;
|
|
2209
|
+
key?: string;
|
|
2210
|
+
}
|
|
2211
|
+
interface ListRulesetVersionsParams {
|
|
2212
|
+
rulesetId: string;
|
|
2213
|
+
status?: RulesetVersionStatus;
|
|
2214
|
+
first?: number;
|
|
2215
|
+
after?: string;
|
|
2216
|
+
}
|
|
2217
|
+
interface RulesetValidationRulesParams {
|
|
2218
|
+
gameId: string;
|
|
2219
|
+
rulesetKey: string;
|
|
2220
|
+
rulesetVersionId?: string;
|
|
2221
|
+
}
|
|
2222
|
+
interface RulesetValidationImpactParams {
|
|
2223
|
+
rulesetVersionId: string;
|
|
2224
|
+
first?: number;
|
|
2225
|
+
}
|
|
2123
2226
|
interface ViewerDecksParams {
|
|
2124
2227
|
filter?: ViewerDecksFilterInput;
|
|
2125
2228
|
first?: number;
|
|
@@ -2362,6 +2465,59 @@ declare const QueryBuilder: {
|
|
|
2362
2465
|
exportJobRefreshUrl(): {
|
|
2363
2466
|
query: string;
|
|
2364
2467
|
};
|
|
2468
|
+
rulesets(params: ListRulesetsParams): {
|
|
2469
|
+
query: string;
|
|
2470
|
+
variables: Record<string, unknown>;
|
|
2471
|
+
};
|
|
2472
|
+
publicRulesets(params: ListPublicRulesetsParams): {
|
|
2473
|
+
query: string;
|
|
2474
|
+
variables: Record<string, unknown>;
|
|
2475
|
+
};
|
|
2476
|
+
ruleset(params: RulesetLookupParams): {
|
|
2477
|
+
query: string;
|
|
2478
|
+
variables: Record<string, unknown>;
|
|
2479
|
+
};
|
|
2480
|
+
rulesetVersions(params: ListRulesetVersionsParams): {
|
|
2481
|
+
query: string;
|
|
2482
|
+
variables: Record<string, unknown>;
|
|
2483
|
+
};
|
|
2484
|
+
rulesetVersion(): {
|
|
2485
|
+
query: string;
|
|
2486
|
+
};
|
|
2487
|
+
rulesetValidationRules(): {
|
|
2488
|
+
query: string;
|
|
2489
|
+
};
|
|
2490
|
+
deckValidationRules(): {
|
|
2491
|
+
query: string;
|
|
2492
|
+
};
|
|
2493
|
+
rulesetVersionDraftImportPreview(): {
|
|
2494
|
+
query: string;
|
|
2495
|
+
};
|
|
2496
|
+
rulesetValidationImpact(params: RulesetValidationImpactParams): {
|
|
2497
|
+
query: string;
|
|
2498
|
+
variables: Record<string, unknown>;
|
|
2499
|
+
};
|
|
2500
|
+
createRuleset(): {
|
|
2501
|
+
query: string;
|
|
2502
|
+
};
|
|
2503
|
+
updateRuleset(): {
|
|
2504
|
+
query: string;
|
|
2505
|
+
};
|
|
2506
|
+
createRulesetVersionDraft(): {
|
|
2507
|
+
query: string;
|
|
2508
|
+
};
|
|
2509
|
+
importRulesetVersionDraftFromDatasetRecord(): {
|
|
2510
|
+
query: string;
|
|
2511
|
+
};
|
|
2512
|
+
updateRulesetVersionDraft(): {
|
|
2513
|
+
query: string;
|
|
2514
|
+
};
|
|
2515
|
+
publishRulesetVersion(): {
|
|
2516
|
+
query: string;
|
|
2517
|
+
};
|
|
2518
|
+
activateRulesetVersion(): {
|
|
2519
|
+
query: string;
|
|
2520
|
+
};
|
|
2365
2521
|
listMyDecks(params?: ListDecksParams): {
|
|
2366
2522
|
query: string;
|
|
2367
2523
|
variables: Record<string, unknown>;
|
|
@@ -2406,15 +2562,6 @@ declare const QueryBuilder: {
|
|
|
2406
2562
|
query: string;
|
|
2407
2563
|
variables: Record<string, unknown>;
|
|
2408
2564
|
};
|
|
2409
|
-
deckPreview(): {
|
|
2410
|
-
query: string;
|
|
2411
|
-
};
|
|
2412
|
-
deckEmbed(): {
|
|
2413
|
-
query: string;
|
|
2414
|
-
};
|
|
2415
|
-
deckAccess(): {
|
|
2416
|
-
query: string;
|
|
2417
|
-
};
|
|
2418
2565
|
deckDraftDiff(): {
|
|
2419
2566
|
query: string;
|
|
2420
2567
|
};
|
|
@@ -2437,12 +2584,6 @@ declare const QueryBuilder: {
|
|
|
2437
2584
|
deckCollaborators(): {
|
|
2438
2585
|
query: string;
|
|
2439
2586
|
};
|
|
2440
|
-
deckEmbedTokens(): {
|
|
2441
|
-
query: string;
|
|
2442
|
-
};
|
|
2443
|
-
deckAccessTokenIssuers(): {
|
|
2444
|
-
query: string;
|
|
2445
|
-
};
|
|
2446
2587
|
deckApiApplicationAccesses(): {
|
|
2447
2588
|
query: string;
|
|
2448
2589
|
};
|
|
@@ -2459,9 +2600,6 @@ declare const QueryBuilder: {
|
|
|
2459
2600
|
deckImportFormatTest(): {
|
|
2460
2601
|
query: string;
|
|
2461
2602
|
};
|
|
2462
|
-
deckPreviewTokens(): {
|
|
2463
|
-
query: string;
|
|
2464
|
-
};
|
|
2465
2603
|
createDeck(): {
|
|
2466
2604
|
query: string;
|
|
2467
2605
|
};
|
|
@@ -2534,31 +2672,19 @@ declare const QueryBuilder: {
|
|
|
2534
2672
|
removeDeckCollaborator(): {
|
|
2535
2673
|
query: string;
|
|
2536
2674
|
};
|
|
2537
|
-
|
|
2538
|
-
query: string;
|
|
2539
|
-
};
|
|
2540
|
-
revokeDeckPreviewToken(): {
|
|
2675
|
+
createDeckTokenIssuer(): {
|
|
2541
2676
|
query: string;
|
|
2542
2677
|
};
|
|
2543
|
-
|
|
2678
|
+
revokeDeckTokenIssuer(): {
|
|
2544
2679
|
query: string;
|
|
2545
2680
|
};
|
|
2546
|
-
|
|
2681
|
+
revokeDeckTokenIssuerSigningKey(): {
|
|
2547
2682
|
query: string;
|
|
2548
2683
|
};
|
|
2549
|
-
|
|
2684
|
+
exchangeDeckToken(): {
|
|
2550
2685
|
query: string;
|
|
2551
2686
|
};
|
|
2552
|
-
|
|
2553
|
-
query: string;
|
|
2554
|
-
};
|
|
2555
|
-
revokeDeckAccessTokenIssuerSigningKey(): {
|
|
2556
|
-
query: string;
|
|
2557
|
-
};
|
|
2558
|
-
exchangeDeckAccessToken(): {
|
|
2559
|
-
query: string;
|
|
2560
|
-
};
|
|
2561
|
-
exchangeDeckSessionToken(): {
|
|
2687
|
+
revokeDeckToken(): {
|
|
2562
2688
|
query: string;
|
|
2563
2689
|
};
|
|
2564
2690
|
grantDeckApiApplicationAccess(): {
|
|
@@ -2567,9 +2693,14 @@ declare const QueryBuilder: {
|
|
|
2567
2693
|
revokeDeckApiApplicationAccess(): {
|
|
2568
2694
|
query: string;
|
|
2569
2695
|
};
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2696
|
+
rulesetValidationRulesVariables(gameId: string, rulesetKey: string, rulesetVersionId?: string): Record<string, unknown>;
|
|
2697
|
+
rulesetVersionDraftImportPreviewVariables(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Record<string, unknown>;
|
|
2698
|
+
rulesetCreateVariables(input: RulesetCreateInput): Record<string, unknown>;
|
|
2699
|
+
rulesetUpdateVariables(id: string, input: RulesetUpdateInput): Record<string, unknown>;
|
|
2700
|
+
rulesetVersionDraftCreateVariables(rulesetId: string, input: RulesetVersionDraftCreateInput): Record<string, unknown>;
|
|
2701
|
+
rulesetVersionDraftImportFromDatasetRecordVariables(rulesetId: string, input: RulesetVersionDraftImportFromDatasetRecordInput): Record<string, unknown>;
|
|
2702
|
+
rulesetVersionDraftUpdateVariables(id: string, input: RulesetVersionDraftUpdateInput): Record<string, unknown>;
|
|
2703
|
+
rulesetVersionPublishVariables(id: string, input?: RulesetVersionPublishInput): Record<string, unknown>;
|
|
2573
2704
|
deckCreateVariables(input: DeckCreateInput): Record<string, unknown>;
|
|
2574
2705
|
deckUpdateVariables(id: string, input: DeckUpdateInput): Record<string, unknown>;
|
|
2575
2706
|
deckEntryAddVariables(input: DeckEntryAddInput): Record<string, unknown>;
|
|
@@ -2582,6 +2713,8 @@ declare const QueryBuilder: {
|
|
|
2582
2713
|
deckImportFormatUpdateVariables(id: string, input: DeckImportFormatUpdateInput): Record<string, unknown>;
|
|
2583
2714
|
deckImportFormatTestVariables(input: DeckImportFormatTestInput): Record<string, unknown>;
|
|
2584
2715
|
deckUpsertByExternalRefVariables(input: DeckUpsertByExternalRefInput): Record<string, unknown>;
|
|
2716
|
+
deckReadVariables(id: string, readState: DeckReadState, version?: DeckPublishedVersionSelector): Record<string, unknown>;
|
|
2717
|
+
deckExternalRefReadVariables(externalRef: string, readState: DeckReadState, version?: DeckPublishedVersionSelector): Record<string, unknown>;
|
|
2585
2718
|
deckClaimVariables(id: string, input: DeckClaimInput): Record<string, unknown>;
|
|
2586
2719
|
deckTransferOwnershipVariables(id: string, input: DeckTransferOwnershipInput): Record<string, unknown>;
|
|
2587
2720
|
deckCopyVariables(id: string, input: DeckCopyInput): Record<string, unknown>;
|
|
@@ -2592,11 +2725,8 @@ declare const QueryBuilder: {
|
|
|
2592
2725
|
deckExportVariables(id: string, format: DeckExportFormat): Record<string, unknown>;
|
|
2593
2726
|
deckVersionDiffVariables(fromVersionId: string, toVersionId: string): Record<string, unknown>;
|
|
2594
2727
|
deckCollaboratorVariables(deckId: string, accountId: string, role?: DeckCollaboratorRole): Record<string, unknown>;
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
deckAccessTokenIssuerCreateVariables(input: DeckAccessTokenIssuerCreateInput): Record<string, unknown>;
|
|
2598
|
-
deckAccessTokenExchangeVariables(input: DeckAccessTokenExchangeInput): Record<string, unknown>;
|
|
2599
|
-
deckSessionTokenExchangeVariables(input: DeckSessionTokenExchangeInput): Record<string, unknown>;
|
|
2728
|
+
deckTokenIssuerCreateVariables(input: DeckTokenIssuerCreateInput): Record<string, unknown>;
|
|
2729
|
+
deckTokenExchangeVariables(input: DeckTokenExchangeInput): Record<string, unknown>;
|
|
2600
2730
|
deckApiApplicationAccessesVariables(deckId: string, includeRevoked?: boolean): Record<string, unknown>;
|
|
2601
2731
|
myDeckApiApplicationAccessesVariables(applicationId?: string): Record<string, unknown>;
|
|
2602
2732
|
deckApiApplicationAccessGrantVariables(input: DeckAPIApplicationAccessGrantInput): Record<string, unknown>;
|
|
@@ -2762,4 +2892,4 @@ declare class Collection<T> implements AsyncIterable<T> {
|
|
|
2762
2892
|
each(): AsyncIterable<T>;
|
|
2763
2893
|
}
|
|
2764
2894
|
|
|
2765
|
-
export { type APIAccount, type APIApplication, type APIKeyInfo, type AppDecksFilterInput, type AppDecksParams, AuthenticationError, type BulkCreateResult, type BulkImportResult, type BulkInsertMode, type BulkRecordError, type Cache, type CardDBConfig, CardDBError, Collection, type ConfirmScanUploadInput, type Connection, ConnectionError, type CreateScanJobInput, type CreateScanUploadSessionInput, type CsvOptions, type Dataset, type DatasetExportInput, type DatasetImportFromFileInput, type DatasetImportFromPayloadInput, type DatasetImportFromUrlInput, type DatasetImportPreview, type DatasetImportPreviewInput, type DatasetImportPreviewResult, type DatasetImportRunInput, type DatasetImportValidateInput, type DatasetPurpose, type DatasetRecord, type DatasetRecordDeleteJob, type DatasetRecordDeleteJobConnection, type DatasetRecordDeleteJobResult, type DatasetRecordDeleteJobStatus, type DatasetRecordDeleteResultStatus, type DatasetRecordDeleteTargetType, type DatasetRecordsDeleteInput, type DatasetRecordsUpsertInput, type DatasetRecordsUpsertPayload, type DatasetRef, type DatasetSchema, type DatasetVisibility, type Deck, type DeckAPIApplicationAccess, type DeckAPIApplicationAccessGrantInput, type DeckAPIApplicationAccessGrantSource, type DeckAPIApplicationAccessRole, type DeckAccessApplication, type DeckAccessMode, type
|
|
2895
|
+
export { type APIAccount, type APIApplication, type APIKeyInfo, type AppDecksFilterInput, type AppDecksParams, AuthenticationError, type BulkCreateResult, type BulkImportResult, type BulkInsertMode, type BulkRecordError, type Cache, type CardDBConfig, CardDBError, Collection, type ConfirmScanUploadInput, type Connection, ConnectionError, type CreateScanJobInput, type CreateScanUploadSessionInput, type CsvOptions, type Dataset, type DatasetExportInput, type DatasetImportFromFileInput, type DatasetImportFromPayloadInput, type DatasetImportFromUrlInput, type DatasetImportPreview, type DatasetImportPreviewInput, type DatasetImportPreviewResult, type DatasetImportRunInput, type DatasetImportValidateInput, type DatasetPurpose, type DatasetRecord, type DatasetRecordDeleteJob, type DatasetRecordDeleteJobConnection, type DatasetRecordDeleteJobResult, type DatasetRecordDeleteJobStatus, type DatasetRecordDeleteResultStatus, type DatasetRecordDeleteTargetType, type DatasetRecordsDeleteInput, type DatasetRecordsUpsertInput, type DatasetRecordsUpsertPayload, type DatasetRef, type DatasetSchema, type DatasetVisibility, type Deck, type DeckAPIApplicationAccess, type DeckAPIApplicationAccessGrantInput, type DeckAPIApplicationAccessGrantSource, type DeckAPIApplicationAccessRole, type DeckAccessApplication, type DeckAccessMode, type DeckAppAccessRetention, type DeckClaimInput, type DeckCollaborator, type DeckCollaboratorRole, type DeckCopyInput, type DeckCopyPayload, type DeckCreateInput, type DeckDiff, type DeckDiscoverability, type DeckEntriesReplaceInput, type DeckEntriesReplacePayload, type DeckEntry, type DeckEntryAddInput, type DeckEntryInput, type DeckEntryMutationPayload, type DeckEntryReorderInput, type DeckEntryReorderItemInput, type DeckEntryReorderPayload, type DeckEntryUpdateInput, type DeckEnvironment, type DeckExportFormat, type DeckExportPayload, type DeckHydrateEntriesInput, type DeckHydrateEntriesPayload, type DeckImportAmbiguousEntry, type DeckImportCandidate, type DeckImportEntry, type DeckImportFormat, type DeckImportFormatCreateInput, type DeckImportFormatDefinition, type DeckImportFormatDefinitionConnection, type DeckImportFormatDetection, type DeckImportFormatTestInput, type DeckImportFormatTestPayload, type DeckImportFormatUpdateInput, type DeckImportInput, type DeckImportIssue, type DeckImportPayload, type DeckImportUnmatchedEntry, type DeckOwnerType, type DeckOwnershipTransferPayload, type DeckPublishInput, type DeckPublishPayload, type DeckPublishedVersionSelector, type DeckReadState, type DeckRemoveInvalidEntriesInput, type DeckRepresentation, type DeckSectionDefinition, type DeckSectionDefinitionsParams, type DeckState, type DeckToken, type DeckTokenExchangeInput, type DeckTokenExchangePayload, type DeckTokenIssuer, type DeckTokenIssuerCreateInput, type DeckTokenIssuerSigningKeyInput, type DeckTokenScope, type DeckTokenSigningAlgorithm, type DeckTransferOwnershipInput, type DeckUpdateInput, type DeckUpsertByExternalRefInput, type DeckUpsertByExternalRefPayload, type DeckValidateInput, type DeckValidatedAgainst, type DeckValidation, type DeckValidationAffectedEntry, type DeckValidationIssue, type DeckValidationRules, type DeckValidationSeverity, type DeckVersion, type DeckVersionConnection, type DeckVisibility, type Edge, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobStatus, type FieldInfo, type FieldMapping, type FieldMappingOverrideInput, type FieldMappingStatus, type FieldType, type File, type FileInfo, type FileStatus, type FileUploadInput, FilterBuilder, type FilterBuilderInterface, type FilterCondition, type FilterInput, type FilterOperatorValue, type FilterValue, type Game, type GameCreateInput, type GameImportDatasetStatus, type GameImportFromFileInput, type GameImportFromPayloadInput, type GameImportFromUrlInput, type GameImportJob, type GameImportJobConnection, type GameImportPreview, type GameImportPreviewInput, type GameImportRunInput, type GameRef, type GameScanRegion, type GameUpdateInput, type GameVisibility, GraphQLError, type GraphQLErrorInfo, type HydrateDeckEntryInput, type HydratedDeckEntry, type ImportFormat, type ImportJob, type ImportJobAsset, type ImportJobAssetInput, type ImportJobConnection, type ImportJobLog, type ImportJobLogConnection, type ImportJobStatus, type ImportLogLevel, type ImportMode, type ImportOptions, type ImportStats, type ImportValidationError, type ImportWarning, type ImportWarningSeverity, type InferredChildField, type LinkFieldInfo, LinkResolutionError, type LinkResolutionFailure, type ListDeckImportFormatsParams, type ListDeckVersionsParams, type ListDecksParams, type ListPublicRulesetsParams, type ListRulesetVersionsParams, type ListRulesetsParams, type LogLevel, type Logger, type NextPageLoader, NotFoundError, type ObjectField, type OnConflict, type PageInfo, type PresignedUpload, type PreviewScanTemplateInput, type PublicDecksFilterInput, type PublicDecksParams, type Publisher, type PublisherRef, type PublisherStatus, QueryBuilder, RateLimitError, type RateLimitInfo, type ResolveScanTemplateInput, type ResolvedLink, type ResourceType, RestrictedError, type Ruleset, type RulesetConnection, type RulesetCreateInput, type RulesetLookupParams, type RulesetUpdateInput, type RulesetValidationImpact, type RulesetValidationImpactDeck, type RulesetValidationImpactParams, type RulesetValidationRulesParams, type RulesetVersion, type RulesetVersionConnection, type RulesetVersionDraftCreateInput, type RulesetVersionDraftImportFromDatasetRecordInput, type RulesetVersionDraftImportPreview, type RulesetVersionDraftUpdateInput, type RulesetVersionPublishInput, type RulesetVersionStatus, type SaveScanTemplateInput, type ScanBestMatch, type ScanCandidate, type ScanFeatureVersionMetrics, type ScanFeedbackMetrics, type ScanFeedbackPayload, type ScanJob, type ScanJobError, type ScanJobMetrics, type ScanJobPayload, type ScanJobStatus, type ScanMetrics, type ScanMetricsInput, type ScanStageMetrics, type ScanTemplate, type ScanTemplateList, type ScanTemplatePayload, type ScanTemplatePreview, type ScanTemplateRegion, type ScanTemplateRegionInput, type ScanTemplateRegionPreview, type ScanTemplateResolution, type ScanTemplateWarning, type ScanTemplatesInput, type ScanWebhookState, type SearchDatasetsParams, type SearchGamesParams, type SearchPublishersParams, type SearchRecordsParams, ServerError, type SubmitScanFeedbackInput, type TCGPlayerPrice, type TCGPlayerPricing, TimeoutError, type UploadPurpose, ValidationError, type ViewerDecksFilterInput, type ViewerDecksParams, contains, eq, gt, gte, ilike, isNotNull, isNull, like, lt, lte, neq, notWithin, resolveFilter, within };
|