@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.50 → 0.34.1-feature.IDK.11.51
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 +34 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -52
- package/dist/index.d.ts +52 -52
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/agent/KmsRestClient.ts +54 -54
- package/src/types/IKmsRestClient.ts +34 -34
package/dist/index.d.cts
CHANGED
|
@@ -2445,84 +2445,84 @@ interface VerifyRawSignatureResponse {
|
|
|
2445
2445
|
}
|
|
2446
2446
|
|
|
2447
2447
|
interface IKmsRestClient extends IPluginMethodMap {
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2448
|
+
kmsClientGetResolver(args: kmsClientGetResolverArgs): Promise<Resolver>;
|
|
2449
|
+
kmsClientListResolvers(args: KmsClientListResolversArgs): Promise<ListResolversResponse>;
|
|
2450
|
+
kmsClientResolveKey(args: KmsClientResolveKeyArgs): Promise<ResolvedKeyInfo>;
|
|
2451
|
+
kmsClientCreateRawSignature(args: KmsClientCreateRawSignatureArgs): Promise<CreateRawSignatureResponse>;
|
|
2452
|
+
kmsClientIsValidRawSignature(args: KmsClientIsValidRawSignatureArgs): Promise<VerifyRawSignatureResponse>;
|
|
2453
|
+
kmsClientGetKey(args: KmsClientGetKeyArgs): Promise<ManagedKeyInfo>;
|
|
2454
|
+
kmsClientListKeys(args: KmsClientListKeysArgs): Promise<ListKeysResponse>;
|
|
2455
|
+
kmsClientStoreKey(args: KmsClientStoreKeyArgs): Promise<ManagedKeyInfo>;
|
|
2456
|
+
kmsClientGenerateKey(args: KmsClientGenerateKeyArgs): Promise<ManagedKeyPair>;
|
|
2457
|
+
kmsClientDeleteKey(args: KmsClientDeleteKeyArgs): Promise<boolean>;
|
|
2458
|
+
kmsClientGetKeyProvider(args: KmsClientGetKeyProviderArgs): Promise<KeyProviderResponse>;
|
|
2459
|
+
kmsClientListKeyProviders(args: KmsClientListKeyProvidersArgs): Promise<ListKeyProvidersResponse>;
|
|
2460
|
+
kmsClientProviderListKeys(args: KmsClientProviderListKeysArgs): Promise<ListKeysResponse>;
|
|
2461
|
+
kmsClientProviderStoreKey(args: KmsClientProviderStoreKey): Promise<ManagedKeyInfo>;
|
|
2462
|
+
kmsClientProviderGenerateKey(args: KmsClientProviderGenerateKey): Promise<ManagedKeyPair>;
|
|
2463
|
+
kmsClientProviderGetKey(args: KmsClientProviderGetKeyArgs): Promise<ManagedKeyInfo>;
|
|
2464
|
+
kmsClientProviderDeleteKey(args: KmsClientProviderDeleteKeyArgs): Promise<boolean>;
|
|
2465
2465
|
}
|
|
2466
|
-
type
|
|
2466
|
+
type KmsClientListResolversArgs = {
|
|
2467
2467
|
baseUrl?: string;
|
|
2468
2468
|
};
|
|
2469
|
-
type
|
|
2469
|
+
type kmsClientGetResolverArgs = {
|
|
2470
2470
|
baseUrl?: string;
|
|
2471
2471
|
resolverId: string;
|
|
2472
2472
|
};
|
|
2473
|
-
type
|
|
2473
|
+
type KmsClientResolveKeyArgs = {
|
|
2474
2474
|
baseUrl?: string;
|
|
2475
2475
|
resolverId: String;
|
|
2476
2476
|
} & ResolvePublicKey;
|
|
2477
|
-
type
|
|
2477
|
+
type KmsClientCreateRawSignatureArgs = {
|
|
2478
2478
|
baseUrl?: string;
|
|
2479
2479
|
} & CreateRawSignature;
|
|
2480
|
-
type
|
|
2480
|
+
type KmsClientIsValidRawSignatureArgs = {
|
|
2481
2481
|
baseUrl?: string;
|
|
2482
2482
|
} & VerifyRawSignature;
|
|
2483
|
-
type
|
|
2483
|
+
type KmsClientGetKeyArgs = {
|
|
2484
2484
|
baseUrl?: string;
|
|
2485
2485
|
aliasOrKid: string;
|
|
2486
2486
|
};
|
|
2487
|
-
type
|
|
2487
|
+
type KmsClientListKeysArgs = {
|
|
2488
2488
|
baseUrl?: string;
|
|
2489
2489
|
providerId?: string;
|
|
2490
2490
|
};
|
|
2491
|
-
type
|
|
2491
|
+
type KmsClientStoreKeyArgs = {
|
|
2492
2492
|
baseUrl?: string;
|
|
2493
2493
|
} & StoreKey;
|
|
2494
|
-
type
|
|
2494
|
+
type KmsClientGenerateKeyArgs = {
|
|
2495
2495
|
baseUrl?: string;
|
|
2496
2496
|
} & GenerateKeyGlobal;
|
|
2497
|
-
type
|
|
2497
|
+
type KmsClientDeleteKeyArgs = {
|
|
2498
2498
|
baseUrl?: string;
|
|
2499
2499
|
aliasOrKid?: string;
|
|
2500
2500
|
};
|
|
2501
|
-
type
|
|
2501
|
+
type KmsClientGetKeyProviderArgs = {
|
|
2502
2502
|
baseUrl?: string;
|
|
2503
2503
|
providerId?: string;
|
|
2504
2504
|
};
|
|
2505
|
-
type
|
|
2505
|
+
type KmsClientListKeyProvidersArgs = {
|
|
2506
2506
|
baseUrl?: string;
|
|
2507
2507
|
};
|
|
2508
|
-
type
|
|
2508
|
+
type KmsClientProviderListKeysArgs = {
|
|
2509
2509
|
baseUrl?: string;
|
|
2510
2510
|
providerId: string;
|
|
2511
2511
|
};
|
|
2512
|
-
type
|
|
2512
|
+
type KmsClientProviderStoreKey = {
|
|
2513
2513
|
baseUrl?: string;
|
|
2514
2514
|
providerId: string;
|
|
2515
2515
|
} & StoreKey;
|
|
2516
|
-
type
|
|
2516
|
+
type KmsClientProviderGenerateKey = {
|
|
2517
2517
|
baseUrl?: string;
|
|
2518
2518
|
providerId: string;
|
|
2519
2519
|
} & GenerateKey;
|
|
2520
|
-
type
|
|
2520
|
+
type KmsClientProviderGetKeyArgs = {
|
|
2521
2521
|
baseUrl?: string;
|
|
2522
2522
|
providerId: string;
|
|
2523
2523
|
aliasOrKid: string;
|
|
2524
2524
|
};
|
|
2525
|
-
type
|
|
2525
|
+
type KmsClientProviderDeleteKeyArgs = {
|
|
2526
2526
|
baseUrl?: string;
|
|
2527
2527
|
providerId: string;
|
|
2528
2528
|
aliasOrKid: string;
|
|
@@ -2547,42 +2547,42 @@ declare class KmsRestClient implements IAgentPlugin {
|
|
|
2547
2547
|
constructor(args?: KmsRestClientArgs);
|
|
2548
2548
|
private static urlWithBase;
|
|
2549
2549
|
/** {@inheritDoc IKmsRestClient.kmsGetResolver} */
|
|
2550
|
-
private
|
|
2550
|
+
private kmsClientGetResolver;
|
|
2551
2551
|
/** {@inheritDoc IKmsRestClient.kmsListResolvers} */
|
|
2552
|
-
private
|
|
2552
|
+
private kmsClientListResolvers;
|
|
2553
2553
|
/** {@inheritDoc IKmsRestClient.kmsResolveKey} */
|
|
2554
|
-
private
|
|
2554
|
+
private kmsClientResolveKey;
|
|
2555
2555
|
/** {@inheritDoc IKmsRestClient.kmsCreateRawSignature} */
|
|
2556
|
-
private
|
|
2556
|
+
private kmsClientCreateRawSignature;
|
|
2557
2557
|
/** {@inheritDoc IKmsRestClient.kmsIsValidRawSignature} */
|
|
2558
|
-
private
|
|
2558
|
+
private kmsClientIsValidRawSignature;
|
|
2559
2559
|
/** {@inheritDoc IKmsRestClient.kmsGetKey} */
|
|
2560
|
-
private
|
|
2560
|
+
private kmsClientGetKey;
|
|
2561
2561
|
/** {@inheritDoc IKmsRestClient.kmsListKeys} */
|
|
2562
|
-
private
|
|
2562
|
+
private kmsClientListKeys;
|
|
2563
2563
|
/** {@inheritDoc IKmsRestClient.kmsStoreKey} */
|
|
2564
|
-
private
|
|
2564
|
+
private kmsClientStoreKey;
|
|
2565
2565
|
/** {@inheritDoc IKmsRestClient.kmsGenerateKey} */
|
|
2566
|
-
private
|
|
2566
|
+
private kmsClientGenerateKey;
|
|
2567
2567
|
/** {@inheritDoc IKmsRestClient.kmsDeleteKey} */
|
|
2568
|
-
private
|
|
2568
|
+
private kmsClientDeleteKey;
|
|
2569
2569
|
/** {@inheritDoc IKmsRestClient.kmsGetKeyProvider} */
|
|
2570
|
-
private
|
|
2570
|
+
private kmsClientGetKeyProvider;
|
|
2571
2571
|
/** {@inheritDoc IKmsRestClient.kmsListKeyProviders} */
|
|
2572
|
-
private
|
|
2572
|
+
private kmsClientListKeyProviders;
|
|
2573
2573
|
/** {@inheritDoc IKmsRestClient.kmsProviderListKeys} */
|
|
2574
|
-
private
|
|
2574
|
+
private kmsClientProviderListKeys;
|
|
2575
2575
|
/** {@inheritDoc IKmsRestClient.kmsProviderStoreKey} */
|
|
2576
|
-
private
|
|
2576
|
+
private kmsClientProviderStoreKey;
|
|
2577
2577
|
/** {@inheritDoc IKmsRestClient.kmsProviderGenerateKey} */
|
|
2578
|
-
private
|
|
2578
|
+
private kmsClientProviderGenerateKey;
|
|
2579
2579
|
/** {@inheritDoc IKmsRestClient.kmsProviderGetKey} */
|
|
2580
|
-
private
|
|
2580
|
+
private kmsClientProviderGetKey;
|
|
2581
2581
|
/** {@inheritDoc IKmsRestClient.kmsProviderDeleteKey} */
|
|
2582
|
-
private
|
|
2582
|
+
private kmsClientProviderDeleteKey;
|
|
2583
2583
|
private assertedAgentBaseUrl;
|
|
2584
2584
|
private createHeaders;
|
|
2585
2585
|
private addSearchParams;
|
|
2586
2586
|
}
|
|
2587
2587
|
|
|
2588
|
-
export { type IKmsRestClient, type IRequiredContext, type
|
|
2588
|
+
export { type IKmsRestClient, type IRequiredContext, type KmsClientCreateRawSignatureArgs, type KmsClientDeleteKeyArgs, type KmsClientGenerateKeyArgs, type KmsClientGetKeyArgs, type KmsClientGetKeyProviderArgs, type KmsClientIsValidRawSignatureArgs, type KmsClientListKeyProvidersArgs, type KmsClientListKeysArgs, type KmsClientListResolversArgs, type KmsClientProviderDeleteKeyArgs, type KmsClientProviderGenerateKey, type KmsClientProviderGetKeyArgs, type KmsClientProviderListKeysArgs, type KmsClientProviderStoreKey, type KmsClientResolveKeyArgs, type KmsClientStoreKeyArgs, KmsRestClient, type KmsRestClientArgs, type RestClientAuthenticationOpts, type kmsClientGetResolverArgs, plugin_schema as schema };
|
package/dist/index.d.ts
CHANGED
|
@@ -2445,84 +2445,84 @@ interface VerifyRawSignatureResponse {
|
|
|
2445
2445
|
}
|
|
2446
2446
|
|
|
2447
2447
|
interface IKmsRestClient extends IPluginMethodMap {
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2448
|
+
kmsClientGetResolver(args: kmsClientGetResolverArgs): Promise<Resolver>;
|
|
2449
|
+
kmsClientListResolvers(args: KmsClientListResolversArgs): Promise<ListResolversResponse>;
|
|
2450
|
+
kmsClientResolveKey(args: KmsClientResolveKeyArgs): Promise<ResolvedKeyInfo>;
|
|
2451
|
+
kmsClientCreateRawSignature(args: KmsClientCreateRawSignatureArgs): Promise<CreateRawSignatureResponse>;
|
|
2452
|
+
kmsClientIsValidRawSignature(args: KmsClientIsValidRawSignatureArgs): Promise<VerifyRawSignatureResponse>;
|
|
2453
|
+
kmsClientGetKey(args: KmsClientGetKeyArgs): Promise<ManagedKeyInfo>;
|
|
2454
|
+
kmsClientListKeys(args: KmsClientListKeysArgs): Promise<ListKeysResponse>;
|
|
2455
|
+
kmsClientStoreKey(args: KmsClientStoreKeyArgs): Promise<ManagedKeyInfo>;
|
|
2456
|
+
kmsClientGenerateKey(args: KmsClientGenerateKeyArgs): Promise<ManagedKeyPair>;
|
|
2457
|
+
kmsClientDeleteKey(args: KmsClientDeleteKeyArgs): Promise<boolean>;
|
|
2458
|
+
kmsClientGetKeyProvider(args: KmsClientGetKeyProviderArgs): Promise<KeyProviderResponse>;
|
|
2459
|
+
kmsClientListKeyProviders(args: KmsClientListKeyProvidersArgs): Promise<ListKeyProvidersResponse>;
|
|
2460
|
+
kmsClientProviderListKeys(args: KmsClientProviderListKeysArgs): Promise<ListKeysResponse>;
|
|
2461
|
+
kmsClientProviderStoreKey(args: KmsClientProviderStoreKey): Promise<ManagedKeyInfo>;
|
|
2462
|
+
kmsClientProviderGenerateKey(args: KmsClientProviderGenerateKey): Promise<ManagedKeyPair>;
|
|
2463
|
+
kmsClientProviderGetKey(args: KmsClientProviderGetKeyArgs): Promise<ManagedKeyInfo>;
|
|
2464
|
+
kmsClientProviderDeleteKey(args: KmsClientProviderDeleteKeyArgs): Promise<boolean>;
|
|
2465
2465
|
}
|
|
2466
|
-
type
|
|
2466
|
+
type KmsClientListResolversArgs = {
|
|
2467
2467
|
baseUrl?: string;
|
|
2468
2468
|
};
|
|
2469
|
-
type
|
|
2469
|
+
type kmsClientGetResolverArgs = {
|
|
2470
2470
|
baseUrl?: string;
|
|
2471
2471
|
resolverId: string;
|
|
2472
2472
|
};
|
|
2473
|
-
type
|
|
2473
|
+
type KmsClientResolveKeyArgs = {
|
|
2474
2474
|
baseUrl?: string;
|
|
2475
2475
|
resolverId: String;
|
|
2476
2476
|
} & ResolvePublicKey;
|
|
2477
|
-
type
|
|
2477
|
+
type KmsClientCreateRawSignatureArgs = {
|
|
2478
2478
|
baseUrl?: string;
|
|
2479
2479
|
} & CreateRawSignature;
|
|
2480
|
-
type
|
|
2480
|
+
type KmsClientIsValidRawSignatureArgs = {
|
|
2481
2481
|
baseUrl?: string;
|
|
2482
2482
|
} & VerifyRawSignature;
|
|
2483
|
-
type
|
|
2483
|
+
type KmsClientGetKeyArgs = {
|
|
2484
2484
|
baseUrl?: string;
|
|
2485
2485
|
aliasOrKid: string;
|
|
2486
2486
|
};
|
|
2487
|
-
type
|
|
2487
|
+
type KmsClientListKeysArgs = {
|
|
2488
2488
|
baseUrl?: string;
|
|
2489
2489
|
providerId?: string;
|
|
2490
2490
|
};
|
|
2491
|
-
type
|
|
2491
|
+
type KmsClientStoreKeyArgs = {
|
|
2492
2492
|
baseUrl?: string;
|
|
2493
2493
|
} & StoreKey;
|
|
2494
|
-
type
|
|
2494
|
+
type KmsClientGenerateKeyArgs = {
|
|
2495
2495
|
baseUrl?: string;
|
|
2496
2496
|
} & GenerateKeyGlobal;
|
|
2497
|
-
type
|
|
2497
|
+
type KmsClientDeleteKeyArgs = {
|
|
2498
2498
|
baseUrl?: string;
|
|
2499
2499
|
aliasOrKid?: string;
|
|
2500
2500
|
};
|
|
2501
|
-
type
|
|
2501
|
+
type KmsClientGetKeyProviderArgs = {
|
|
2502
2502
|
baseUrl?: string;
|
|
2503
2503
|
providerId?: string;
|
|
2504
2504
|
};
|
|
2505
|
-
type
|
|
2505
|
+
type KmsClientListKeyProvidersArgs = {
|
|
2506
2506
|
baseUrl?: string;
|
|
2507
2507
|
};
|
|
2508
|
-
type
|
|
2508
|
+
type KmsClientProviderListKeysArgs = {
|
|
2509
2509
|
baseUrl?: string;
|
|
2510
2510
|
providerId: string;
|
|
2511
2511
|
};
|
|
2512
|
-
type
|
|
2512
|
+
type KmsClientProviderStoreKey = {
|
|
2513
2513
|
baseUrl?: string;
|
|
2514
2514
|
providerId: string;
|
|
2515
2515
|
} & StoreKey;
|
|
2516
|
-
type
|
|
2516
|
+
type KmsClientProviderGenerateKey = {
|
|
2517
2517
|
baseUrl?: string;
|
|
2518
2518
|
providerId: string;
|
|
2519
2519
|
} & GenerateKey;
|
|
2520
|
-
type
|
|
2520
|
+
type KmsClientProviderGetKeyArgs = {
|
|
2521
2521
|
baseUrl?: string;
|
|
2522
2522
|
providerId: string;
|
|
2523
2523
|
aliasOrKid: string;
|
|
2524
2524
|
};
|
|
2525
|
-
type
|
|
2525
|
+
type KmsClientProviderDeleteKeyArgs = {
|
|
2526
2526
|
baseUrl?: string;
|
|
2527
2527
|
providerId: string;
|
|
2528
2528
|
aliasOrKid: string;
|
|
@@ -2547,42 +2547,42 @@ declare class KmsRestClient implements IAgentPlugin {
|
|
|
2547
2547
|
constructor(args?: KmsRestClientArgs);
|
|
2548
2548
|
private static urlWithBase;
|
|
2549
2549
|
/** {@inheritDoc IKmsRestClient.kmsGetResolver} */
|
|
2550
|
-
private
|
|
2550
|
+
private kmsClientGetResolver;
|
|
2551
2551
|
/** {@inheritDoc IKmsRestClient.kmsListResolvers} */
|
|
2552
|
-
private
|
|
2552
|
+
private kmsClientListResolvers;
|
|
2553
2553
|
/** {@inheritDoc IKmsRestClient.kmsResolveKey} */
|
|
2554
|
-
private
|
|
2554
|
+
private kmsClientResolveKey;
|
|
2555
2555
|
/** {@inheritDoc IKmsRestClient.kmsCreateRawSignature} */
|
|
2556
|
-
private
|
|
2556
|
+
private kmsClientCreateRawSignature;
|
|
2557
2557
|
/** {@inheritDoc IKmsRestClient.kmsIsValidRawSignature} */
|
|
2558
|
-
private
|
|
2558
|
+
private kmsClientIsValidRawSignature;
|
|
2559
2559
|
/** {@inheritDoc IKmsRestClient.kmsGetKey} */
|
|
2560
|
-
private
|
|
2560
|
+
private kmsClientGetKey;
|
|
2561
2561
|
/** {@inheritDoc IKmsRestClient.kmsListKeys} */
|
|
2562
|
-
private
|
|
2562
|
+
private kmsClientListKeys;
|
|
2563
2563
|
/** {@inheritDoc IKmsRestClient.kmsStoreKey} */
|
|
2564
|
-
private
|
|
2564
|
+
private kmsClientStoreKey;
|
|
2565
2565
|
/** {@inheritDoc IKmsRestClient.kmsGenerateKey} */
|
|
2566
|
-
private
|
|
2566
|
+
private kmsClientGenerateKey;
|
|
2567
2567
|
/** {@inheritDoc IKmsRestClient.kmsDeleteKey} */
|
|
2568
|
-
private
|
|
2568
|
+
private kmsClientDeleteKey;
|
|
2569
2569
|
/** {@inheritDoc IKmsRestClient.kmsGetKeyProvider} */
|
|
2570
|
-
private
|
|
2570
|
+
private kmsClientGetKeyProvider;
|
|
2571
2571
|
/** {@inheritDoc IKmsRestClient.kmsListKeyProviders} */
|
|
2572
|
-
private
|
|
2572
|
+
private kmsClientListKeyProviders;
|
|
2573
2573
|
/** {@inheritDoc IKmsRestClient.kmsProviderListKeys} */
|
|
2574
|
-
private
|
|
2574
|
+
private kmsClientProviderListKeys;
|
|
2575
2575
|
/** {@inheritDoc IKmsRestClient.kmsProviderStoreKey} */
|
|
2576
|
-
private
|
|
2576
|
+
private kmsClientProviderStoreKey;
|
|
2577
2577
|
/** {@inheritDoc IKmsRestClient.kmsProviderGenerateKey} */
|
|
2578
|
-
private
|
|
2578
|
+
private kmsClientProviderGenerateKey;
|
|
2579
2579
|
/** {@inheritDoc IKmsRestClient.kmsProviderGetKey} */
|
|
2580
|
-
private
|
|
2580
|
+
private kmsClientProviderGetKey;
|
|
2581
2581
|
/** {@inheritDoc IKmsRestClient.kmsProviderDeleteKey} */
|
|
2582
|
-
private
|
|
2582
|
+
private kmsClientProviderDeleteKey;
|
|
2583
2583
|
private assertedAgentBaseUrl;
|
|
2584
2584
|
private createHeaders;
|
|
2585
2585
|
private addSearchParams;
|
|
2586
2586
|
}
|
|
2587
2587
|
|
|
2588
|
-
export { type IKmsRestClient, type IRequiredContext, type
|
|
2588
|
+
export { type IKmsRestClient, type IRequiredContext, type KmsClientCreateRawSignatureArgs, type KmsClientDeleteKeyArgs, type KmsClientGenerateKeyArgs, type KmsClientGetKeyArgs, type KmsClientGetKeyProviderArgs, type KmsClientIsValidRawSignatureArgs, type KmsClientListKeyProvidersArgs, type KmsClientListKeysArgs, type KmsClientListResolversArgs, type KmsClientProviderDeleteKeyArgs, type KmsClientProviderGenerateKey, type KmsClientProviderGetKeyArgs, type KmsClientProviderListKeysArgs, type KmsClientProviderStoreKey, type KmsClientResolveKeyArgs, type KmsClientStoreKeyArgs, KmsRestClient, type KmsRestClientArgs, type RestClientAuthenticationOpts, type kmsClientGetResolverArgs, plugin_schema as schema };
|
package/dist/index.js
CHANGED
|
@@ -1573,23 +1573,23 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1573
1573
|
__name(this, "KmsRestClient");
|
|
1574
1574
|
}
|
|
1575
1575
|
methods = {
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1576
|
+
kmsClientGetKey: this.kmsClientGetKey.bind(this),
|
|
1577
|
+
kmsClientListKeys: this.kmsClientListKeys.bind(this),
|
|
1578
|
+
kmsClientStoreKey: this.kmsClientStoreKey.bind(this),
|
|
1579
|
+
kmsClientGenerateKey: this.kmsClientGenerateKey.bind(this),
|
|
1580
|
+
kmsClientDeleteKey: this.kmsClientDeleteKey.bind(this),
|
|
1581
|
+
kmsClientGetKeyProvider: this.kmsClientGetKeyProvider.bind(this),
|
|
1582
|
+
kmsClientListKeyProviders: this.kmsClientListKeyProviders.bind(this),
|
|
1583
|
+
kmsClientProviderListKeys: this.kmsClientProviderListKeys.bind(this),
|
|
1584
|
+
kmsClientProviderStoreKey: this.kmsClientProviderStoreKey.bind(this),
|
|
1585
|
+
kmsClientProviderGenerateKey: this.kmsClientProviderGenerateKey.bind(this),
|
|
1586
|
+
kmsClientProviderGetKey: this.kmsClientProviderGetKey.bind(this),
|
|
1587
|
+
kmsClientProviderDeleteKey: this.kmsClientProviderDeleteKey.bind(this),
|
|
1588
|
+
kmsClientGetResolver: this.kmsClientGetResolver.bind(this),
|
|
1589
|
+
kmsClientListResolvers: this.kmsClientListResolvers.bind(this),
|
|
1590
|
+
kmsClientResolveKey: this.kmsClientResolveKey.bind(this),
|
|
1591
|
+
kmsClientCreateRawSignature: this.kmsClientCreateRawSignature.bind(this),
|
|
1592
|
+
kmsClientIsValidRawSignature: this.kmsClientIsValidRawSignature.bind(this)
|
|
1593
1593
|
};
|
|
1594
1594
|
agentBaseUrl;
|
|
1595
1595
|
authOpts;
|
|
@@ -1603,7 +1603,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1603
1603
|
return `${baseUrl}${path.startsWith("/") ? path : `/${path}`}`;
|
|
1604
1604
|
}
|
|
1605
1605
|
/** {@inheritDoc IKmsRestClient.kmsGetResolver} */
|
|
1606
|
-
async
|
|
1606
|
+
async kmsClientGetResolver(args) {
|
|
1607
1607
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1608
1608
|
const url = _KmsRestClient.urlWithBase(`/resolvers/${args.resolverId}`, baseUrl);
|
|
1609
1609
|
const response = await fetch(url, {
|
|
@@ -1617,7 +1617,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
1619
|
/** {@inheritDoc IKmsRestClient.kmsListResolvers} */
|
|
1620
|
-
async
|
|
1620
|
+
async kmsClientListResolvers(args) {
|
|
1621
1621
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1622
1622
|
const url = _KmsRestClient.urlWithBase("/resolvers", baseUrl);
|
|
1623
1623
|
const response = await fetch(url, {
|
|
@@ -1631,7 +1631,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
1633
1633
|
/** {@inheritDoc IKmsRestClient.kmsResolveKey} */
|
|
1634
|
-
async
|
|
1634
|
+
async kmsClientResolveKey(args) {
|
|
1635
1635
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1636
1636
|
const url = _KmsRestClient.urlWithBase(`/resolvers/${args.resolverId}/resolve`, baseUrl);
|
|
1637
1637
|
const body = {
|
|
@@ -1655,7 +1655,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
/** {@inheritDoc IKmsRestClient.kmsCreateRawSignature} */
|
|
1658
|
-
async
|
|
1658
|
+
async kmsClientCreateRawSignature(args) {
|
|
1659
1659
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1660
1660
|
const url = _KmsRestClient.urlWithBase(`/signatures/raw`, baseUrl);
|
|
1661
1661
|
const body = {
|
|
@@ -1677,7 +1677,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
1679
|
/** {@inheritDoc IKmsRestClient.kmsIsValidRawSignature} */
|
|
1680
|
-
async
|
|
1680
|
+
async kmsClientIsValidRawSignature(args) {
|
|
1681
1681
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1682
1682
|
const url = _KmsRestClient.urlWithBase(`/signatures/raw/verify`, baseUrl);
|
|
1683
1683
|
const body = {
|
|
@@ -1700,7 +1700,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
/** {@inheritDoc IKmsRestClient.kmsGetKey} */
|
|
1703
|
-
async
|
|
1703
|
+
async kmsClientGetKey(args) {
|
|
1704
1704
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1705
1705
|
const url = _KmsRestClient.urlWithBase(`/keys/${args.aliasOrKid}`, baseUrl);
|
|
1706
1706
|
const response = await fetch(url, {
|
|
@@ -1714,7 +1714,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
1716
|
/** {@inheritDoc IKmsRestClient.kmsListKeys} */
|
|
1717
|
-
async
|
|
1717
|
+
async kmsClientListKeys(args) {
|
|
1718
1718
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1719
1719
|
const url = this.addSearchParams(_KmsRestClient.urlWithBase("/keys", baseUrl), {
|
|
1720
1720
|
...args.providerId && {
|
|
@@ -1733,7 +1733,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
/** {@inheritDoc IKmsRestClient.kmsStoreKey} */
|
|
1736
|
-
async
|
|
1736
|
+
async kmsClientStoreKey(args) {
|
|
1737
1737
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1738
1738
|
const url = _KmsRestClient.urlWithBase(`/keys`, baseUrl);
|
|
1739
1739
|
const body = {
|
|
@@ -1755,7 +1755,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
/** {@inheritDoc IKmsRestClient.kmsGenerateKey} */
|
|
1758
|
-
async
|
|
1758
|
+
async kmsClientGenerateKey(args) {
|
|
1759
1759
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1760
1760
|
const url = _KmsRestClient.urlWithBase(`/keys/generate`, baseUrl);
|
|
1761
1761
|
const body = {
|
|
@@ -1779,7 +1779,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
1781
|
/** {@inheritDoc IKmsRestClient.kmsDeleteKey} */
|
|
1782
|
-
async
|
|
1782
|
+
async kmsClientDeleteKey(args) {
|
|
1783
1783
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1784
1784
|
const url = _KmsRestClient.urlWithBase(`/keys/${args.aliasOrKid}`, baseUrl);
|
|
1785
1785
|
await fetch(url, {
|
|
@@ -1788,7 +1788,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1788
1788
|
return true;
|
|
1789
1789
|
}
|
|
1790
1790
|
/** {@inheritDoc IKmsRestClient.kmsGetKeyProvider} */
|
|
1791
|
-
async
|
|
1791
|
+
async kmsClientGetKeyProvider(args) {
|
|
1792
1792
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1793
1793
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}`, baseUrl);
|
|
1794
1794
|
const response = await fetch(url, {
|
|
@@ -1802,7 +1802,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
1804
|
/** {@inheritDoc IKmsRestClient.kmsListKeyProviders} */
|
|
1805
|
-
async
|
|
1805
|
+
async kmsClientListKeyProviders(args) {
|
|
1806
1806
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1807
1807
|
const url = _KmsRestClient.urlWithBase("/providers", baseUrl);
|
|
1808
1808
|
const response = await fetch(url, {
|
|
@@ -1816,7 +1816,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
1818
|
/** {@inheritDoc IKmsRestClient.kmsProviderListKeys} */
|
|
1819
|
-
async
|
|
1819
|
+
async kmsClientProviderListKeys(args) {
|
|
1820
1820
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1821
1821
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}/keys`, baseUrl);
|
|
1822
1822
|
const response = await fetch(url, {
|
|
@@ -1830,7 +1830,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
1832
|
/** {@inheritDoc IKmsRestClient.kmsProviderStoreKey} */
|
|
1833
|
-
async
|
|
1833
|
+
async kmsClientProviderStoreKey(args) {
|
|
1834
1834
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1835
1835
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}/keys`, baseUrl);
|
|
1836
1836
|
const body = {
|
|
@@ -1852,7 +1852,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
1854
|
/** {@inheritDoc IKmsRestClient.kmsProviderGenerateKey} */
|
|
1855
|
-
async
|
|
1855
|
+
async kmsClientProviderGenerateKey(args) {
|
|
1856
1856
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1857
1857
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}/keys/generate`, baseUrl);
|
|
1858
1858
|
const body = {
|
|
@@ -1875,7 +1875,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
1877
|
/** {@inheritDoc IKmsRestClient.kmsProviderGetKey} */
|
|
1878
|
-
async
|
|
1878
|
+
async kmsClientProviderGetKey(args) {
|
|
1879
1879
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1880
1880
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}/keys/${args.aliasOrKid}`, baseUrl);
|
|
1881
1881
|
const response = await fetch(url, {
|
|
@@ -1889,7 +1889,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
1891
1891
|
/** {@inheritDoc IKmsRestClient.kmsProviderDeleteKey} */
|
|
1892
|
-
async
|
|
1892
|
+
async kmsClientProviderDeleteKey(args) {
|
|
1893
1893
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1894
1894
|
const url = _KmsRestClient.urlWithBase(`providers/${args.providerId}/keys/${args.aliasOrKid}`, baseUrl);
|
|
1895
1895
|
await fetch(url, {
|