@dynamic-labs/sdk-api 0.36.0 → 0.37.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -28,6 +28,7 @@ function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDis
28
28
  'keygenId': !runtime.exists(json, 'keygenId') ? undefined : json['keygenId'],
29
29
  'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
30
30
  'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
31
+ 'passwordEncrypted': !runtime.exists(json, 'passwordEncrypted') ? undefined : json['passwordEncrypted'],
31
32
  'tokenSource': !runtime.exists(json, 'tokenSource') ? undefined : json['tokenSource'],
32
33
  };
33
34
  }
@@ -43,6 +44,7 @@ function BackupKeySharesToLocationsRequestLocationsToJSON(value) {
43
44
  'keygenId': value.keygenId,
44
45
  'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
45
46
  'externalKeyShareId': value.externalKeyShareId,
47
+ 'passwordEncrypted': value.passwordEncrypted,
46
48
  'tokenSource': value.tokenSource,
47
49
  };
48
50
  }
@@ -41,6 +41,14 @@ export interface BackupKeySharesToLocationsRequestLocations {
41
41
  * @memberof BackupKeySharesToLocationsRequestLocations
42
42
  */
43
43
  externalKeyShareId?: string;
44
+ /**
45
+ * Whether the key share stored at this location is encrypted with a
46
+ * user-provided password. Stored as `false` when omitted, which makes
47
+ * recovery decrypt the share with the environment id instead.
48
+ * @type {boolean}
49
+ * @memberof BackupKeySharesToLocationsRequestLocations
50
+ */
51
+ passwordEncrypted?: boolean;
44
52
  /**
45
53
  * Audit-only indicator of which OAuth token the client used to back
46
54
  * up this location: `external` (consumer-supplied, e.g. Fanpla's own
@@ -24,6 +24,7 @@ function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDis
24
24
  'keygenId': !exists(json, 'keygenId') ? undefined : json['keygenId'],
25
25
  'thresholdSignatureScheme': !exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
26
26
  'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
27
+ 'passwordEncrypted': !exists(json, 'passwordEncrypted') ? undefined : json['passwordEncrypted'],
27
28
  'tokenSource': !exists(json, 'tokenSource') ? undefined : json['tokenSource'],
28
29
  };
29
30
  }
@@ -39,6 +40,7 @@ function BackupKeySharesToLocationsRequestLocationsToJSON(value) {
39
40
  'keygenId': value.keygenId,
40
41
  'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
41
42
  'externalKeyShareId': value.externalKeyShareId,
43
+ 'passwordEncrypted': value.passwordEncrypted,
42
44
  'tokenSource': value.tokenSource,
43
45
  };
44
46
  }
@@ -19,6 +19,7 @@ function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json,
19
19
  'keygenId': !runtime.exists(json, 'keygenId') ? undefined : json['keygenId'],
20
20
  'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
21
21
  'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
22
+ 'passwordEncrypted': !runtime.exists(json, 'passwordEncrypted') ? undefined : json['passwordEncrypted'],
22
23
  };
23
24
  }
24
25
  function BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON(value) {
@@ -33,6 +34,7 @@ function BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON(value) {
33
34
  'keygenId': value.keygenId,
34
35
  'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
35
36
  'externalKeyShareId': value.externalKeyShareId,
37
+ 'passwordEncrypted': value.passwordEncrypted,
36
38
  };
37
39
  }
38
40
 
@@ -41,6 +41,14 @@ export interface BackupKeySharesToLocationsWithUserIdRequestLocations {
41
41
  * @memberof BackupKeySharesToLocationsWithUserIdRequestLocations
42
42
  */
43
43
  externalKeyShareId?: string;
44
+ /**
45
+ * Whether the key share stored at this location is encrypted with a
46
+ * user-provided password. Stored as `false` when omitted, which makes
47
+ * recovery decrypt the share with the environment id instead.
48
+ * @type {boolean}
49
+ * @memberof BackupKeySharesToLocationsWithUserIdRequestLocations
50
+ */
51
+ passwordEncrypted?: boolean;
44
52
  }
45
53
  export declare function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON(json: any): BackupKeySharesToLocationsWithUserIdRequestLocations;
46
54
  export declare function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsWithUserIdRequestLocations;
@@ -15,6 +15,7 @@ function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json,
15
15
  'keygenId': !exists(json, 'keygenId') ? undefined : json['keygenId'],
16
16
  'thresholdSignatureScheme': !exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
17
17
  'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
18
+ 'passwordEncrypted': !exists(json, 'passwordEncrypted') ? undefined : json['passwordEncrypted'],
18
19
  };
19
20
  }
20
21
  function BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON(value) {
@@ -29,6 +30,7 @@ function BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON(value) {
29
30
  'keygenId': value.keygenId,
30
31
  'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
31
32
  'externalKeyShareId': value.externalKeyShareId,
33
+ 'passwordEncrypted': value.passwordEncrypted,
32
34
  };
33
35
  }
34
36