@dynamic-labs/sdk-api 0.0.780 → 0.0.782

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.780",
3
+ "version": "0.0.782",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -271,6 +271,36 @@ class WaasApi extends runtime.BaseAPI {
271
271
  return yield response.value();
272
272
  });
273
273
  }
274
+ /**
275
+ * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
276
+ * Get delegated access encryption public key for an environment
277
+ */
278
+ getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
279
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
280
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
281
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getDelegatedAccessEncryptionPublicKey.');
282
+ }
283
+ const queryParameters = {};
284
+ const headerParameters = {};
285
+ const response = yield this.request({
286
+ path: `/sdk/{environmentId}/waas/delegatedAccess/encryptionPublicKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
287
+ method: 'GET',
288
+ headers: headerParameters,
289
+ query: queryParameters,
290
+ }, initOverrides);
291
+ return new runtime.JSONApiResponse(response, (jsonValue) => DelegatedAccessEncryptionPublicKeyResponse.DelegatedAccessEncryptionPublicKeyResponseFromJSON(jsonValue));
292
+ });
293
+ }
294
+ /**
295
+ * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
296
+ * Get delegated access encryption public key for an environment
297
+ */
298
+ getDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
299
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
300
+ const response = yield this.getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
301
+ return yield response.value();
302
+ });
303
+ }
274
304
  /**
275
305
  * Get a specific delegated access encryption public key by ID
276
306
  */
@@ -363,6 +393,35 @@ class WaasApi extends runtime.BaseAPI {
363
393
  return yield response.value();
364
394
  });
365
395
  }
396
+ /**
397
+ * Returns the allowed HTTP methods and CORS headers for this endpoint.
398
+ * Get CORS and allowed methods for delegated access encryption public keys endpoint
399
+ */
400
+ optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
401
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
402
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
403
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optionsDelegatedAccessEncryptionPublicKey.');
404
+ }
405
+ const queryParameters = {};
406
+ const headerParameters = {};
407
+ const response = yield this.request({
408
+ path: `/sdk/{environmentId}/waas/delegatedAccess/encryptionPublicKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
409
+ method: 'OPTIONS',
410
+ headers: headerParameters,
411
+ query: queryParameters,
412
+ }, initOverrides);
413
+ return new runtime.VoidApiResponse(response);
414
+ });
415
+ }
416
+ /**
417
+ * Returns the allowed HTTP methods and CORS headers for this endpoint.
418
+ * Get CORS and allowed methods for delegated access encryption public keys endpoint
419
+ */
420
+ optionsDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
421
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
422
+ yield this.optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
423
+ });
424
+ }
366
425
  /**
367
426
  * Update the WAAS policy for an environment by ruleId
368
427
  */
@@ -31,6 +31,9 @@ export interface DeleteWaasPolicyRequest {
31
31
  environmentId: string;
32
32
  waasPolicyDeleteRequest: WaasPolicyDeleteRequest;
33
33
  }
34
+ export interface GetDelegatedAccessEncryptionPublicKeyRequest {
35
+ environmentId: string;
36
+ }
34
37
  export interface GetDelegatedAccessEncryptionPublicKeyByIdRequest {
35
38
  environmentId: string;
36
39
  keyId: string;
@@ -42,6 +45,9 @@ export interface GetDelegatedAccessEncryptionPublicKeysRequest {
42
45
  export interface GetWaasPolicyRequest {
43
46
  environmentId: string;
44
47
  }
48
+ export interface OptionsDelegatedAccessEncryptionPublicKeyRequest {
49
+ environmentId: string;
50
+ }
45
51
  export interface UpdateWaasPolicyRequest {
46
52
  environmentId: string;
47
53
  waasPolicyUpdateRequest: WaasPolicyUpdateRequest;
@@ -90,6 +96,16 @@ export declare class WaasApi extends runtime.BaseAPI {
90
96
  * Delete a WAAS policy rule by ruleId
91
97
  */
92
98
  deleteWaasPolicy(requestParameters: DeleteWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
99
+ /**
100
+ * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
101
+ * Get delegated access encryption public key for an environment
102
+ */
103
+ getDelegatedAccessEncryptionPublicKeyRaw(requestParameters: GetDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<DelegatedAccessEncryptionPublicKeyResponse>>;
104
+ /**
105
+ * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
106
+ * Get delegated access encryption public key for an environment
107
+ */
108
+ getDelegatedAccessEncryptionPublicKey(requestParameters: GetDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise<DelegatedAccessEncryptionPublicKeyResponse>;
93
109
  /**
94
110
  * Get a specific delegated access encryption public key by ID
95
111
  */
@@ -116,6 +132,16 @@ export declare class WaasApi extends runtime.BaseAPI {
116
132
  * Get the WAAS policy for an environment
117
133
  */
118
134
  getWaasPolicy(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
135
+ /**
136
+ * Returns the allowed HTTP methods and CORS headers for this endpoint.
137
+ * Get CORS and allowed methods for delegated access encryption public keys endpoint
138
+ */
139
+ optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters: OptionsDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
140
+ /**
141
+ * Returns the allowed HTTP methods and CORS headers for this endpoint.
142
+ * Get CORS and allowed methods for delegated access encryption public keys endpoint
143
+ */
144
+ optionsDelegatedAccessEncryptionPublicKey(requestParameters: OptionsDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise<void>;
119
145
  /**
120
146
  * Update the WAAS policy for an environment by ruleId
121
147
  */
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from '../../_virtual/_tslib.js';
2
- import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
2
+ import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse } from '../runtime.js';
3
3
  import '../models/AccessOutcomeEnum.js';
4
4
  import '../models/ExchangeKeyEnum.js';
5
5
  import '../models/AttestationConveyancePreference.js';
@@ -267,6 +267,36 @@ class WaasApi extends BaseAPI {
267
267
  return yield response.value();
268
268
  });
269
269
  }
270
+ /**
271
+ * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
272
+ * Get delegated access encryption public key for an environment
273
+ */
274
+ getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
275
+ return __awaiter(this, void 0, void 0, function* () {
276
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
277
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getDelegatedAccessEncryptionPublicKey.');
278
+ }
279
+ const queryParameters = {};
280
+ const headerParameters = {};
281
+ const response = yield this.request({
282
+ path: `/sdk/{environmentId}/waas/delegatedAccess/encryptionPublicKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
283
+ method: 'GET',
284
+ headers: headerParameters,
285
+ query: queryParameters,
286
+ }, initOverrides);
287
+ return new JSONApiResponse(response, (jsonValue) => DelegatedAccessEncryptionPublicKeyResponseFromJSON(jsonValue));
288
+ });
289
+ }
290
+ /**
291
+ * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
292
+ * Get delegated access encryption public key for an environment
293
+ */
294
+ getDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
295
+ return __awaiter(this, void 0, void 0, function* () {
296
+ const response = yield this.getDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
297
+ return yield response.value();
298
+ });
299
+ }
270
300
  /**
271
301
  * Get a specific delegated access encryption public key by ID
272
302
  */
@@ -359,6 +389,35 @@ class WaasApi extends BaseAPI {
359
389
  return yield response.value();
360
390
  });
361
391
  }
392
+ /**
393
+ * Returns the allowed HTTP methods and CORS headers for this endpoint.
394
+ * Get CORS and allowed methods for delegated access encryption public keys endpoint
395
+ */
396
+ optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides) {
397
+ return __awaiter(this, void 0, void 0, function* () {
398
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
399
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optionsDelegatedAccessEncryptionPublicKey.');
400
+ }
401
+ const queryParameters = {};
402
+ const headerParameters = {};
403
+ const response = yield this.request({
404
+ path: `/sdk/{environmentId}/waas/delegatedAccess/encryptionPublicKey`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
405
+ method: 'OPTIONS',
406
+ headers: headerParameters,
407
+ query: queryParameters,
408
+ }, initOverrides);
409
+ return new VoidApiResponse(response);
410
+ });
411
+ }
412
+ /**
413
+ * Returns the allowed HTTP methods and CORS headers for this endpoint.
414
+ * Get CORS and allowed methods for delegated access encryption public keys endpoint
415
+ */
416
+ optionsDelegatedAccessEncryptionPublicKey(requestParameters, initOverrides) {
417
+ return __awaiter(this, void 0, void 0, function* () {
418
+ yield this.optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
419
+ });
420
+ }
362
421
  /**
363
422
  * Update the WAAS policy for an environment by ruleId
364
423
  */
@@ -13,6 +13,7 @@ var WaasDelegatedAccessEncryptionPublicKeyType = require('./WaasDelegatedAccessE
13
13
  exports.DelegatedAccessEncryptionPublicKeyAlgEnum = void 0;
14
14
  (function (DelegatedAccessEncryptionPublicKeyAlgEnum) {
15
15
  DelegatedAccessEncryptionPublicKeyAlgEnum["RsaOaep256"] = "RSA-OAEP-256";
16
+ DelegatedAccessEncryptionPublicKeyAlgEnum["HybridRsaAes256"] = "HYBRID-RSA-AES-256";
16
17
  })(exports.DelegatedAccessEncryptionPublicKeyAlgEnum || (exports.DelegatedAccessEncryptionPublicKeyAlgEnum = {})); /**
17
18
  * @export
18
19
  * @enum {string}
@@ -88,7 +88,8 @@ export interface DelegatedAccessEncryptionPublicKey {
88
88
  * @enum {string}
89
89
  */
90
90
  export declare enum DelegatedAccessEncryptionPublicKeyAlgEnum {
91
- RsaOaep256 = "RSA-OAEP-256"
91
+ RsaOaep256 = "RSA-OAEP-256",
92
+ HybridRsaAes256 = "HYBRID-RSA-AES-256"
92
93
  } /**
93
94
  * @export
94
95
  * @enum {string}
@@ -9,6 +9,7 @@ import { WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON, WaasDelegatedAccess
9
9
  var DelegatedAccessEncryptionPublicKeyAlgEnum;
10
10
  (function (DelegatedAccessEncryptionPublicKeyAlgEnum) {
11
11
  DelegatedAccessEncryptionPublicKeyAlgEnum["RsaOaep256"] = "RSA-OAEP-256";
12
+ DelegatedAccessEncryptionPublicKeyAlgEnum["HybridRsaAes256"] = "HYBRID-RSA-AES-256";
12
13
  })(DelegatedAccessEncryptionPublicKeyAlgEnum || (DelegatedAccessEncryptionPublicKeyAlgEnum = {})); /**
13
14
  * @export
14
15
  * @enum {string}
@@ -15,6 +15,7 @@ function VerifyUnlinkRequestFromJSONTyped(json, ignoreDiscriminator) {
15
15
  return {
16
16
  'walletId': !runtime.exists(json, 'walletId') ? undefined : json['walletId'],
17
17
  'verifiedCrentialId': !runtime.exists(json, 'verifiedCrentialId') ? undefined : json['verifiedCrentialId'],
18
+ 'verifiedCredentialId': !runtime.exists(json, 'verifiedCredentialId') ? undefined : json['verifiedCredentialId'],
18
19
  'primaryWalletId': !runtime.exists(json, 'primaryWalletId') ? undefined : json['primaryWalletId'],
19
20
  };
20
21
  }
@@ -28,6 +29,7 @@ function VerifyUnlinkRequestToJSON(value) {
28
29
  return {
29
30
  'walletId': value.walletId,
30
31
  'verifiedCrentialId': value.verifiedCrentialId,
32
+ 'verifiedCredentialId': value.verifiedCredentialId,
31
33
  'primaryWalletId': value.primaryWalletId,
32
34
  };
33
35
  }
@@ -27,6 +27,12 @@ export interface VerifyUnlinkRequest {
27
27
  * @memberof VerifyUnlinkRequest
28
28
  */
29
29
  verifiedCrentialId?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof VerifyUnlinkRequest
34
+ */
35
+ verifiedCredentialId?: string;
30
36
  /**
31
37
  *
32
38
  * @type {string}
@@ -11,6 +11,7 @@ function VerifyUnlinkRequestFromJSONTyped(json, ignoreDiscriminator) {
11
11
  return {
12
12
  'walletId': !exists(json, 'walletId') ? undefined : json['walletId'],
13
13
  'verifiedCrentialId': !exists(json, 'verifiedCrentialId') ? undefined : json['verifiedCrentialId'],
14
+ 'verifiedCredentialId': !exists(json, 'verifiedCredentialId') ? undefined : json['verifiedCredentialId'],
14
15
  'primaryWalletId': !exists(json, 'primaryWalletId') ? undefined : json['primaryWalletId'],
15
16
  };
16
17
  }
@@ -24,6 +25,7 @@ function VerifyUnlinkRequestToJSON(value) {
24
25
  return {
25
26
  'walletId': value.walletId,
26
27
  'verifiedCrentialId': value.verifiedCrentialId,
28
+ 'verifiedCredentialId': value.verifiedCredentialId,
27
29
  'primaryWalletId': value.primaryWalletId,
28
30
  };
29
31
  }
@@ -13,6 +13,7 @@ var WaasDelegatedAccessEncryptionPublicKeyType = require('./WaasDelegatedAccessE
13
13
  exports.WaasDelegationCredentialsResponseAlgEnum = void 0;
14
14
  (function (WaasDelegationCredentialsResponseAlgEnum) {
15
15
  WaasDelegationCredentialsResponseAlgEnum["RsaOaep256"] = "RSA-OAEP-256";
16
+ WaasDelegationCredentialsResponseAlgEnum["HybridRsaAes256"] = "HYBRID-RSA-AES-256";
16
17
  })(exports.WaasDelegationCredentialsResponseAlgEnum || (exports.WaasDelegationCredentialsResponseAlgEnum = {}));
17
18
  function WaasDelegationCredentialsResponseFromJSON(json) {
18
19
  return WaasDelegationCredentialsResponseFromJSONTyped(json);
@@ -58,7 +58,8 @@ export interface WaasDelegationCredentialsResponse {
58
58
  * @enum {string}
59
59
  */
60
60
  export declare enum WaasDelegationCredentialsResponseAlgEnum {
61
- RsaOaep256 = "RSA-OAEP-256"
61
+ RsaOaep256 = "RSA-OAEP-256",
62
+ HybridRsaAes256 = "HYBRID-RSA-AES-256"
62
63
  }
63
64
  export declare function WaasDelegationCredentialsResponseFromJSON(json: any): WaasDelegationCredentialsResponse;
64
65
  export declare function WaasDelegationCredentialsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasDelegationCredentialsResponse;
@@ -9,6 +9,7 @@ import { WaasDelegatedAccessEncryptionPublicKeyTypeFromJSON, WaasDelegatedAccess
9
9
  var WaasDelegationCredentialsResponseAlgEnum;
10
10
  (function (WaasDelegationCredentialsResponseAlgEnum) {
11
11
  WaasDelegationCredentialsResponseAlgEnum["RsaOaep256"] = "RSA-OAEP-256";
12
+ WaasDelegationCredentialsResponseAlgEnum["HybridRsaAes256"] = "HYBRID-RSA-AES-256";
12
13
  })(WaasDelegationCredentialsResponseAlgEnum || (WaasDelegationCredentialsResponseAlgEnum = {}));
13
14
  function WaasDelegationCredentialsResponseFromJSON(json) {
14
15
  return WaasDelegationCredentialsResponseFromJSONTyped(json);