@scaleway/sdk-key-manager 2.8.1 → 2.9.0
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/LICENSE +191 -0
- package/package.json +9 -8
- package/dist/.vite/license.md +0 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/index.gen.d.ts +0 -5
- package/dist/index.gen.js +0 -2
- package/dist/metadata.gen.d.ts +0 -12
- package/dist/metadata.gen.js +0 -13
- package/dist/v1alpha1/api.gen.d.ts +0 -162
- package/dist/v1alpha1/api.gen.js +0 -136
- package/dist/v1alpha1/index.gen.d.ts +0 -3
- package/dist/v1alpha1/index.gen.js +0 -26
- package/dist/v1alpha1/marshalling.gen.d.ts +0 -19
- package/dist/v1alpha1/marshalling.gen.js +0 -158
- package/dist/v1alpha1/metadata.gen.d.ts +0 -48
- package/dist/v1alpha1/metadata.gen.js +0 -55
- package/dist/v1alpha1/types.gen.d.ts +0 -509
- package/dist/v1alpha1/types.gen.js +0 -0
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
import type { Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
|
-
export type DataKeyAlgorithmSymmetricEncryption = 'unknown_symmetric_encryption' | 'aes_256_gcm';
|
|
3
|
-
export type KeyAlgorithmAsymmetricEncryption = 'unknown_asymmetric_encryption' | 'rsa_oaep_2048_sha256' | 'rsa_oaep_3072_sha256' | 'rsa_oaep_4096_sha256';
|
|
4
|
-
export type KeyAlgorithmAsymmetricSigning = 'unknown_asymmetric_signing' | 'ec_p256_sha256' | 'ec_p384_sha384' | 'rsa_pss_2048_sha256' | 'rsa_pss_3072_sha256' | 'rsa_pss_4096_sha256' | 'rsa_pkcs1_2048_sha256' | 'rsa_pkcs1_3072_sha256' | 'rsa_pkcs1_4096_sha256' | 'ml_dsa_44' | 'ml_dsa_65' | 'ml_dsa_87';
|
|
5
|
-
export type KeyAlgorithmSymmetricEncryption = 'unknown_symmetric_encryption' | 'aes_256_gcm';
|
|
6
|
-
export type KeyOrigin = 'unknown_origin' | 'scaleway_kms' | 'external';
|
|
7
|
-
export type KeyState = 'unknown_state' | 'enabled' | 'disabled' | 'pending_key_material' | 'scheduled_for_deletion';
|
|
8
|
-
export type ListAlgorithmsRequestUsage = 'unknown_usage' | 'symmetric_encryption' | 'asymmetric_encryption' | 'asymmetric_signing';
|
|
9
|
-
export type ListKeysRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
10
|
-
export type ListKeysRequestUsage = 'unknown_usage' | 'symmetric_encryption' | 'asymmetric_encryption' | 'asymmetric_signing';
|
|
11
|
-
export interface KeyRotationPolicy {
|
|
12
|
-
/**
|
|
13
|
-
* Time interval between two key rotations. The minimum duration is 24 hours and the maximum duration is 1 year (876000 hours).
|
|
14
|
-
*/
|
|
15
|
-
rotationPeriod?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Timestamp indicating the next scheduled rotation.
|
|
18
|
-
*/
|
|
19
|
-
nextRotationAt?: Date;
|
|
20
|
-
}
|
|
21
|
-
export interface KeyUsage {
|
|
22
|
-
/**
|
|
23
|
-
* See the `Key.Algorithm.SymmetricEncryption` enum for a description of values.
|
|
24
|
-
*
|
|
25
|
-
* One-of ('usage'): at most one of 'symmetricEncryption', 'asymmetricEncryption', 'asymmetricSigning' could be set.
|
|
26
|
-
*/
|
|
27
|
-
symmetricEncryption?: KeyAlgorithmSymmetricEncryption;
|
|
28
|
-
/**
|
|
29
|
-
* See the `Key.Algorithm.AsymmetricEncryption` enum for a description of values.
|
|
30
|
-
*
|
|
31
|
-
* One-of ('usage'): at most one of 'symmetricEncryption', 'asymmetricEncryption', 'asymmetricSigning' could be set.
|
|
32
|
-
*/
|
|
33
|
-
asymmetricEncryption?: KeyAlgorithmAsymmetricEncryption;
|
|
34
|
-
/**
|
|
35
|
-
* See the `Key.Algorithm.AsymmetricSigning` enum for a description of values.
|
|
36
|
-
*
|
|
37
|
-
* One-of ('usage'): at most one of 'symmetricEncryption', 'asymmetricEncryption', 'asymmetricSigning' could be set.
|
|
38
|
-
*/
|
|
39
|
-
asymmetricSigning?: KeyAlgorithmAsymmetricSigning;
|
|
40
|
-
}
|
|
41
|
-
export interface ListAlgorithmsResponseAlgorithm {
|
|
42
|
-
usage: string;
|
|
43
|
-
name: string;
|
|
44
|
-
recommended: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface Key {
|
|
47
|
-
/**
|
|
48
|
-
* ID of the key.
|
|
49
|
-
*/
|
|
50
|
-
id: string;
|
|
51
|
-
/**
|
|
52
|
-
* ID of the Project containing the key.
|
|
53
|
-
*/
|
|
54
|
-
projectId: string;
|
|
55
|
-
/**
|
|
56
|
-
* Name of the key.
|
|
57
|
-
*/
|
|
58
|
-
name: string;
|
|
59
|
-
/**
|
|
60
|
-
* See the `Key.Usage` enum for a description of possible values.
|
|
61
|
-
*/
|
|
62
|
-
usage?: KeyUsage;
|
|
63
|
-
/**
|
|
64
|
-
* See the `Key.State` enum for a description of possible values.
|
|
65
|
-
*/
|
|
66
|
-
state: KeyState;
|
|
67
|
-
/**
|
|
68
|
-
* The rotation count tracks the number of times the key has been rotated.
|
|
69
|
-
*/
|
|
70
|
-
rotationCount: number;
|
|
71
|
-
/**
|
|
72
|
-
* Key creation date.
|
|
73
|
-
*/
|
|
74
|
-
createdAt?: Date;
|
|
75
|
-
/**
|
|
76
|
-
* Key last modification date.
|
|
77
|
-
*/
|
|
78
|
-
updatedAt?: Date;
|
|
79
|
-
/**
|
|
80
|
-
* Returns `true` if key protection is applied to the key.
|
|
81
|
-
*/
|
|
82
|
-
protected: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Returns `true` if the key is locked.
|
|
85
|
-
*/
|
|
86
|
-
locked: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Description of the key.
|
|
89
|
-
*/
|
|
90
|
-
description?: string;
|
|
91
|
-
/**
|
|
92
|
-
* List of the key's tags.
|
|
93
|
-
*/
|
|
94
|
-
tags: string[];
|
|
95
|
-
/**
|
|
96
|
-
* Key last rotation date.
|
|
97
|
-
*/
|
|
98
|
-
rotatedAt?: Date;
|
|
99
|
-
/**
|
|
100
|
-
* Key rotation policy.
|
|
101
|
-
*/
|
|
102
|
-
rotationPolicy?: KeyRotationPolicy;
|
|
103
|
-
/**
|
|
104
|
-
* Refer to the `Key.Origin` enum for a description of values.
|
|
105
|
-
*/
|
|
106
|
-
origin: KeyOrigin;
|
|
107
|
-
/**
|
|
108
|
-
* Returns the time at which deletion was requested.
|
|
109
|
-
*/
|
|
110
|
-
deletionRequestedAt?: Date;
|
|
111
|
-
/**
|
|
112
|
-
* Region where the key is stored.
|
|
113
|
-
*/
|
|
114
|
-
region: ScwRegion;
|
|
115
|
-
}
|
|
116
|
-
export type CreateKeyRequest = {
|
|
117
|
-
/**
|
|
118
|
-
* Region to target. If none is passed will use default region from the config.
|
|
119
|
-
*/
|
|
120
|
-
region?: ScwRegion;
|
|
121
|
-
/**
|
|
122
|
-
* ID of the Project containing the key.
|
|
123
|
-
*/
|
|
124
|
-
projectId?: string;
|
|
125
|
-
/**
|
|
126
|
-
* (Optional) Name of the key.
|
|
127
|
-
*/
|
|
128
|
-
name?: string;
|
|
129
|
-
/**
|
|
130
|
-
* See the `Key.Usage` enum for a description of possible values.
|
|
131
|
-
*/
|
|
132
|
-
usage?: KeyUsage;
|
|
133
|
-
/**
|
|
134
|
-
* (Optional) Description of the key.
|
|
135
|
-
*/
|
|
136
|
-
description?: string;
|
|
137
|
-
/**
|
|
138
|
-
* (Optional) List of the key's tags.
|
|
139
|
-
*/
|
|
140
|
-
tags?: string[];
|
|
141
|
-
/**
|
|
142
|
-
* If not specified, no rotation policy will be applied to the key.
|
|
143
|
-
*/
|
|
144
|
-
rotationPolicy?: KeyRotationPolicy;
|
|
145
|
-
/**
|
|
146
|
-
* Default value is `false`.
|
|
147
|
-
*/
|
|
148
|
-
unprotected: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Refer to the `Key.Origin` enum for a description of values.
|
|
151
|
-
*/
|
|
152
|
-
origin?: KeyOrigin;
|
|
153
|
-
};
|
|
154
|
-
export interface DataKey {
|
|
155
|
-
/**
|
|
156
|
-
* ID of the data encryption key.
|
|
157
|
-
*/
|
|
158
|
-
keyId: string;
|
|
159
|
-
/**
|
|
160
|
-
* Symmetric encryption algorithm of the data encryption key (`AES-256-GCM`).
|
|
161
|
-
*/
|
|
162
|
-
algorithm: DataKeyAlgorithmSymmetricEncryption;
|
|
163
|
-
/**
|
|
164
|
-
* Your data encryption key's ciphertext can be stored safely. It can only be decrypted through the keys you create in Key Manager, using the relevant key ID.
|
|
165
|
-
*/
|
|
166
|
-
ciphertext: string;
|
|
167
|
-
/**
|
|
168
|
-
* (Optional) Your data encryption key's plaintext allows you to use the key immediately upon creation. It must neither be stored or shared.
|
|
169
|
-
*/
|
|
170
|
-
plaintext?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Data encryption key creation date.
|
|
173
|
-
*/
|
|
174
|
-
createdAt?: Date;
|
|
175
|
-
}
|
|
176
|
-
export type DecryptRequest = {
|
|
177
|
-
/**
|
|
178
|
-
* Region to target. If none is passed will use default region from the config.
|
|
179
|
-
*/
|
|
180
|
-
region?: ScwRegion;
|
|
181
|
-
/**
|
|
182
|
-
* The key must have an usage set to `symmetric_encryption` or `asymmetric_encryption`.
|
|
183
|
-
*/
|
|
184
|
-
keyId: string;
|
|
185
|
-
/**
|
|
186
|
-
* Data size must be between 1 and 131071 bytes.
|
|
187
|
-
*/
|
|
188
|
-
ciphertext: string;
|
|
189
|
-
/**
|
|
190
|
-
* The additional data must match the value passed in the encryption request. Only supported by keys with a usage set to `symmetric_encryption`.
|
|
191
|
-
*/
|
|
192
|
-
associatedData?: string;
|
|
193
|
-
};
|
|
194
|
-
export interface DecryptResponse {
|
|
195
|
-
/**
|
|
196
|
-
* ID of the key used for decryption.
|
|
197
|
-
*/
|
|
198
|
-
keyId: string;
|
|
199
|
-
/**
|
|
200
|
-
* Key's decrypted data.
|
|
201
|
-
*/
|
|
202
|
-
plaintext: string;
|
|
203
|
-
/**
|
|
204
|
-
* If the data was already encrypted with the latest key rotation, no output will be returned in the response object.
|
|
205
|
-
*/
|
|
206
|
-
ciphertext?: string;
|
|
207
|
-
}
|
|
208
|
-
export type DeleteKeyMaterialRequest = {
|
|
209
|
-
/**
|
|
210
|
-
* Region to target. If none is passed will use default region from the config.
|
|
211
|
-
*/
|
|
212
|
-
region?: ScwRegion;
|
|
213
|
-
/**
|
|
214
|
-
* ID of the key of which to delete the key material.
|
|
215
|
-
*/
|
|
216
|
-
keyId: string;
|
|
217
|
-
};
|
|
218
|
-
export type DeleteKeyRequest = {
|
|
219
|
-
/**
|
|
220
|
-
* Region to target. If none is passed will use default region from the config.
|
|
221
|
-
*/
|
|
222
|
-
region?: ScwRegion;
|
|
223
|
-
/**
|
|
224
|
-
* ID of the key to delete.
|
|
225
|
-
*/
|
|
226
|
-
keyId: string;
|
|
227
|
-
};
|
|
228
|
-
export type DisableKeyRequest = {
|
|
229
|
-
/**
|
|
230
|
-
* Region to target. If none is passed will use default region from the config.
|
|
231
|
-
*/
|
|
232
|
-
region?: ScwRegion;
|
|
233
|
-
/**
|
|
234
|
-
* ID of the key to disable.
|
|
235
|
-
*/
|
|
236
|
-
keyId: string;
|
|
237
|
-
};
|
|
238
|
-
export type EnableKeyRequest = {
|
|
239
|
-
/**
|
|
240
|
-
* Region to target. If none is passed will use default region from the config.
|
|
241
|
-
*/
|
|
242
|
-
region?: ScwRegion;
|
|
243
|
-
/**
|
|
244
|
-
* ID of the key to enable.
|
|
245
|
-
*/
|
|
246
|
-
keyId: string;
|
|
247
|
-
};
|
|
248
|
-
export type EncryptRequest = {
|
|
249
|
-
/**
|
|
250
|
-
* Region to target. If none is passed will use default region from the config.
|
|
251
|
-
*/
|
|
252
|
-
region?: ScwRegion;
|
|
253
|
-
/**
|
|
254
|
-
* The key must have an usage set to `symmetric_encryption` or `asymmetric_encryption`.
|
|
255
|
-
*/
|
|
256
|
-
keyId: string;
|
|
257
|
-
/**
|
|
258
|
-
* Data size must be between 1 and 65535 bytes.
|
|
259
|
-
*/
|
|
260
|
-
plaintext: string;
|
|
261
|
-
/**
|
|
262
|
-
* Additional data which will not be encrypted, but authenticated and appended to the encrypted payload. Only supported by keys with a usage set to `symmetric_encryption`.
|
|
263
|
-
*/
|
|
264
|
-
associatedData?: string;
|
|
265
|
-
};
|
|
266
|
-
export interface EncryptResponse {
|
|
267
|
-
/**
|
|
268
|
-
* ID of the key used for encryption.
|
|
269
|
-
*/
|
|
270
|
-
keyId: string;
|
|
271
|
-
/**
|
|
272
|
-
* Key's encrypted data.
|
|
273
|
-
*/
|
|
274
|
-
ciphertext: string;
|
|
275
|
-
}
|
|
276
|
-
export type GenerateDataKeyRequest = {
|
|
277
|
-
/**
|
|
278
|
-
* Region to target. If none is passed will use default region from the config.
|
|
279
|
-
*/
|
|
280
|
-
region?: ScwRegion;
|
|
281
|
-
/**
|
|
282
|
-
* ID of the key.
|
|
283
|
-
*/
|
|
284
|
-
keyId: string;
|
|
285
|
-
/**
|
|
286
|
-
* See the `DataKey.Algorithm.SymmetricEncryption` enum for a description of values.
|
|
287
|
-
*/
|
|
288
|
-
algorithm?: DataKeyAlgorithmSymmetricEncryption;
|
|
289
|
-
/**
|
|
290
|
-
* Default value is `false`, meaning that the plaintext is returned.
|
|
291
|
-
Set it to `true` if you do not wish the plaintext to be returned in the response object.
|
|
292
|
-
*/
|
|
293
|
-
withoutPlaintext: boolean;
|
|
294
|
-
};
|
|
295
|
-
export type GetKeyRequest = {
|
|
296
|
-
/**
|
|
297
|
-
* Region to target. If none is passed will use default region from the config.
|
|
298
|
-
*/
|
|
299
|
-
region?: ScwRegion;
|
|
300
|
-
/**
|
|
301
|
-
* ID of the key to target.
|
|
302
|
-
*/
|
|
303
|
-
keyId: string;
|
|
304
|
-
};
|
|
305
|
-
export type GetPublicKeyRequest = {
|
|
306
|
-
/**
|
|
307
|
-
* Region to target. If none is passed will use default region from the config.
|
|
308
|
-
*/
|
|
309
|
-
region?: ScwRegion;
|
|
310
|
-
/**
|
|
311
|
-
* ID of the key.
|
|
312
|
-
*/
|
|
313
|
-
keyId: string;
|
|
314
|
-
};
|
|
315
|
-
export type ImportKeyMaterialRequest = {
|
|
316
|
-
/**
|
|
317
|
-
* Region to target. If none is passed will use default region from the config.
|
|
318
|
-
*/
|
|
319
|
-
region?: ScwRegion;
|
|
320
|
-
/**
|
|
321
|
-
* The key's origin must be `external`.
|
|
322
|
-
*/
|
|
323
|
-
keyId: string;
|
|
324
|
-
/**
|
|
325
|
-
* The key material is a random sequence of bytes used to derive a cryptographic key.
|
|
326
|
-
*/
|
|
327
|
-
keyMaterial: string;
|
|
328
|
-
/**
|
|
329
|
-
* A salt is random data added to key material to ensure unique derived keys, even if the input is similar. It helps strengthen security when the key material has low randomness (low entropy).
|
|
330
|
-
*/
|
|
331
|
-
salt?: string;
|
|
332
|
-
};
|
|
333
|
-
export type ListAlgorithmsRequest = {
|
|
334
|
-
/**
|
|
335
|
-
* Region to target. If none is passed will use default region from the config.
|
|
336
|
-
*/
|
|
337
|
-
region?: ScwRegion;
|
|
338
|
-
/**
|
|
339
|
-
* Filter by key usage.
|
|
340
|
-
*/
|
|
341
|
-
usages?: ListAlgorithmsRequestUsage[];
|
|
342
|
-
};
|
|
343
|
-
export interface ListAlgorithmsResponse {
|
|
344
|
-
/**
|
|
345
|
-
* Returns a list of algorithms matching the requested criteria.
|
|
346
|
-
*/
|
|
347
|
-
algorithms: ListAlgorithmsResponseAlgorithm[];
|
|
348
|
-
}
|
|
349
|
-
export type ListKeysRequest = {
|
|
350
|
-
/**
|
|
351
|
-
* Region to target. If none is passed will use default region from the config.
|
|
352
|
-
*/
|
|
353
|
-
region?: ScwRegion;
|
|
354
|
-
/**
|
|
355
|
-
* (Optional) Filter by Organization ID.
|
|
356
|
-
*/
|
|
357
|
-
organizationId?: string;
|
|
358
|
-
/**
|
|
359
|
-
* (Optional) Filter by Project ID.
|
|
360
|
-
*/
|
|
361
|
-
projectId?: string;
|
|
362
|
-
orderBy?: ListKeysRequestOrderBy;
|
|
363
|
-
page?: number;
|
|
364
|
-
pageSize?: number;
|
|
365
|
-
/**
|
|
366
|
-
* (Optional) List of tags to filter on.
|
|
367
|
-
*/
|
|
368
|
-
tags?: string[];
|
|
369
|
-
/**
|
|
370
|
-
* (Optional) Filter by key name.
|
|
371
|
-
*/
|
|
372
|
-
name?: string;
|
|
373
|
-
/**
|
|
374
|
-
* Select from symmetric encryption, asymmetric encryption, or asymmetric signing.
|
|
375
|
-
*/
|
|
376
|
-
usage?: ListKeysRequestUsage;
|
|
377
|
-
/**
|
|
378
|
-
* Filter keys based on their deletion status. By default, only keys not scheduled for deletion are returned in the output.
|
|
379
|
-
*/
|
|
380
|
-
scheduledForDeletion: boolean;
|
|
381
|
-
};
|
|
382
|
-
export interface ListKeysResponse {
|
|
383
|
-
/**
|
|
384
|
-
* Single page of keys matching the requested criteria.
|
|
385
|
-
*/
|
|
386
|
-
keys: Key[];
|
|
387
|
-
/**
|
|
388
|
-
* Total count of keys matching the requested criteria.
|
|
389
|
-
*/
|
|
390
|
-
totalCount: number;
|
|
391
|
-
}
|
|
392
|
-
export type ProtectKeyRequest = {
|
|
393
|
-
/**
|
|
394
|
-
* Region to target. If none is passed will use default region from the config.
|
|
395
|
-
*/
|
|
396
|
-
region?: ScwRegion;
|
|
397
|
-
/**
|
|
398
|
-
* ID of the key to apply key protection to.
|
|
399
|
-
*/
|
|
400
|
-
keyId: string;
|
|
401
|
-
};
|
|
402
|
-
export interface PublicKey {
|
|
403
|
-
pem: string;
|
|
404
|
-
}
|
|
405
|
-
export type RestoreKeyRequest = {
|
|
406
|
-
/**
|
|
407
|
-
* Region to target. If none is passed will use default region from the config.
|
|
408
|
-
*/
|
|
409
|
-
region?: ScwRegion;
|
|
410
|
-
keyId: string;
|
|
411
|
-
};
|
|
412
|
-
export type RotateKeyRequest = {
|
|
413
|
-
/**
|
|
414
|
-
* Region to target. If none is passed will use default region from the config.
|
|
415
|
-
*/
|
|
416
|
-
region?: ScwRegion;
|
|
417
|
-
/**
|
|
418
|
-
* ID of the key to rotate.
|
|
419
|
-
*/
|
|
420
|
-
keyId: string;
|
|
421
|
-
};
|
|
422
|
-
export type SignRequest = {
|
|
423
|
-
/**
|
|
424
|
-
* Region to target. If none is passed will use default region from the config.
|
|
425
|
-
*/
|
|
426
|
-
region?: ScwRegion;
|
|
427
|
-
/**
|
|
428
|
-
* ID of the key to use for signing.
|
|
429
|
-
*/
|
|
430
|
-
keyId: string;
|
|
431
|
-
/**
|
|
432
|
-
* The digest must be generated using the same algorithm defined in the key’s algorithm settings.
|
|
433
|
-
*/
|
|
434
|
-
digest: string;
|
|
435
|
-
};
|
|
436
|
-
export interface SignResponse {
|
|
437
|
-
/**
|
|
438
|
-
* ID of the key used to generate the signature.
|
|
439
|
-
*/
|
|
440
|
-
keyId: string;
|
|
441
|
-
/**
|
|
442
|
-
* The message signature.
|
|
443
|
-
*/
|
|
444
|
-
signature: string;
|
|
445
|
-
}
|
|
446
|
-
export type UnprotectKeyRequest = {
|
|
447
|
-
/**
|
|
448
|
-
* Region to target. If none is passed will use default region from the config.
|
|
449
|
-
*/
|
|
450
|
-
region?: ScwRegion;
|
|
451
|
-
/**
|
|
452
|
-
* ID of the key to remove key protection from.
|
|
453
|
-
*/
|
|
454
|
-
keyId: string;
|
|
455
|
-
};
|
|
456
|
-
export type UpdateKeyRequest = {
|
|
457
|
-
/**
|
|
458
|
-
* Region to target. If none is passed will use default region from the config.
|
|
459
|
-
*/
|
|
460
|
-
region?: ScwRegion;
|
|
461
|
-
/**
|
|
462
|
-
* ID of the key to update.
|
|
463
|
-
*/
|
|
464
|
-
keyId: string;
|
|
465
|
-
/**
|
|
466
|
-
* (Optional) Updated name of the key.
|
|
467
|
-
*/
|
|
468
|
-
name?: string;
|
|
469
|
-
/**
|
|
470
|
-
* (Optional) Updated description of the key.
|
|
471
|
-
*/
|
|
472
|
-
description?: string;
|
|
473
|
-
/**
|
|
474
|
-
* (Optional) Updated list of the key's tags.
|
|
475
|
-
*/
|
|
476
|
-
tags?: string[];
|
|
477
|
-
/**
|
|
478
|
-
* If not specified, the key's existing rotation policy applies.
|
|
479
|
-
*/
|
|
480
|
-
rotationPolicy?: KeyRotationPolicy;
|
|
481
|
-
};
|
|
482
|
-
export type VerifyRequest = {
|
|
483
|
-
/**
|
|
484
|
-
* Region to target. If none is passed will use default region from the config.
|
|
485
|
-
*/
|
|
486
|
-
region?: ScwRegion;
|
|
487
|
-
/**
|
|
488
|
-
* ID of the key to use for signature verification.
|
|
489
|
-
*/
|
|
490
|
-
keyId: string;
|
|
491
|
-
/**
|
|
492
|
-
* Must be generated using the same algorithm specified in the key’s configuration.
|
|
493
|
-
*/
|
|
494
|
-
digest: string;
|
|
495
|
-
/**
|
|
496
|
-
* The message signature to verify.
|
|
497
|
-
*/
|
|
498
|
-
signature: string;
|
|
499
|
-
};
|
|
500
|
-
export interface VerifyResponse {
|
|
501
|
-
/**
|
|
502
|
-
* ID of the key used for verification.
|
|
503
|
-
*/
|
|
504
|
-
keyId: string;
|
|
505
|
-
/**
|
|
506
|
-
* Returns `true` if the signature is valid for the digest and key, and `false` otherwise.
|
|
507
|
-
*/
|
|
508
|
-
valid: boolean;
|
|
509
|
-
}
|
|
File without changes
|