@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.52 → 0.34.1-feature.IDK.11.54
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 +1 -1
- package/README.md +369 -0
- package/dist/index.cjs +2007 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1362 -23
- package/dist/index.d.ts +1362 -23
- package/dist/index.js +2007 -37
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/agent/KmsRestClient.ts +26 -25
- package/src/index.ts +1 -0
- package/src/types/IKmsRestClient.ts +15 -14
package/dist/index.js
CHANGED
|
@@ -1011,7 +1011,369 @@ var plugin_schema_default = {
|
|
|
1011
1011
|
import { Loggers } from "@sphereon/ssi-types";
|
|
1012
1012
|
import { fetch } from "cross-fetch";
|
|
1013
1013
|
|
|
1014
|
+
// src/models/LookupMode.ts
|
|
1015
|
+
var LookupMode = {
|
|
1016
|
+
Value: "VALUE",
|
|
1017
|
+
ConfigService: "CONFIG_SERVICE",
|
|
1018
|
+
SecretService: "SECRET_SERVICE"
|
|
1019
|
+
};
|
|
1020
|
+
function instanceOfLookupMode(value) {
|
|
1021
|
+
for (const key in LookupMode) {
|
|
1022
|
+
if (Object.prototype.hasOwnProperty.call(LookupMode, key)) {
|
|
1023
|
+
if (LookupMode[key] === value) {
|
|
1024
|
+
return true;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
return false;
|
|
1029
|
+
}
|
|
1030
|
+
__name(instanceOfLookupMode, "instanceOfLookupMode");
|
|
1031
|
+
function LookupModeFromJSON(json) {
|
|
1032
|
+
return LookupModeFromJSONTyped(json, false);
|
|
1033
|
+
}
|
|
1034
|
+
__name(LookupModeFromJSON, "LookupModeFromJSON");
|
|
1035
|
+
function LookupModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1036
|
+
return json;
|
|
1037
|
+
}
|
|
1038
|
+
__name(LookupModeFromJSONTyped, "LookupModeFromJSONTyped");
|
|
1039
|
+
function LookupModeToJSON(value) {
|
|
1040
|
+
return value;
|
|
1041
|
+
}
|
|
1042
|
+
__name(LookupModeToJSON, "LookupModeToJSON");
|
|
1043
|
+
function LookupModeToJSONTyped(value, ignoreDiscriminator) {
|
|
1044
|
+
return value;
|
|
1045
|
+
}
|
|
1046
|
+
__name(LookupModeToJSONTyped, "LookupModeToJSONTyped");
|
|
1047
|
+
|
|
1048
|
+
// src/models/AwsAssumeRoleCredentials.ts
|
|
1049
|
+
function instanceOfAwsAssumeRoleCredentials(value) {
|
|
1050
|
+
if (!("roleArn" in value) || value["roleArn"] === void 0) return false;
|
|
1051
|
+
if (!("roleSessionName" in value) || value["roleSessionName"] === void 0) return false;
|
|
1052
|
+
return true;
|
|
1053
|
+
}
|
|
1054
|
+
__name(instanceOfAwsAssumeRoleCredentials, "instanceOfAwsAssumeRoleCredentials");
|
|
1055
|
+
function AwsAssumeRoleCredentialsFromJSON(json) {
|
|
1056
|
+
return AwsAssumeRoleCredentialsFromJSONTyped(json, false);
|
|
1057
|
+
}
|
|
1058
|
+
__name(AwsAssumeRoleCredentialsFromJSON, "AwsAssumeRoleCredentialsFromJSON");
|
|
1059
|
+
function AwsAssumeRoleCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1060
|
+
if (json == null) {
|
|
1061
|
+
return json;
|
|
1062
|
+
}
|
|
1063
|
+
return {
|
|
1064
|
+
roleArn: json["roleArn"],
|
|
1065
|
+
roleSessionName: json["roleSessionName"],
|
|
1066
|
+
externalId: json["externalId"] == null ? void 0 : json["externalId"],
|
|
1067
|
+
lookupMode: json["lookupMode"] == null ? void 0 : LookupModeFromJSON(json["lookupMode"])
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
__name(AwsAssumeRoleCredentialsFromJSONTyped, "AwsAssumeRoleCredentialsFromJSONTyped");
|
|
1071
|
+
function AwsAssumeRoleCredentialsToJSON(json) {
|
|
1072
|
+
return AwsAssumeRoleCredentialsToJSONTyped(json, false);
|
|
1073
|
+
}
|
|
1074
|
+
__name(AwsAssumeRoleCredentialsToJSON, "AwsAssumeRoleCredentialsToJSON");
|
|
1075
|
+
function AwsAssumeRoleCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1076
|
+
if (value == null) {
|
|
1077
|
+
return value;
|
|
1078
|
+
}
|
|
1079
|
+
return {
|
|
1080
|
+
roleArn: value["roleArn"],
|
|
1081
|
+
roleSessionName: value["roleSessionName"],
|
|
1082
|
+
externalId: value["externalId"],
|
|
1083
|
+
lookupMode: LookupModeToJSON(value["lookupMode"])
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
__name(AwsAssumeRoleCredentialsToJSONTyped, "AwsAssumeRoleCredentialsToJSONTyped");
|
|
1087
|
+
|
|
1088
|
+
// src/models/AwsClientConfiguration.ts
|
|
1089
|
+
function instanceOfAwsClientConfiguration(value) {
|
|
1090
|
+
return true;
|
|
1091
|
+
}
|
|
1092
|
+
__name(instanceOfAwsClientConfiguration, "instanceOfAwsClientConfiguration");
|
|
1093
|
+
function AwsClientConfigurationFromJSON(json) {
|
|
1094
|
+
return AwsClientConfigurationFromJSONTyped(json, false);
|
|
1095
|
+
}
|
|
1096
|
+
__name(AwsClientConfigurationFromJSON, "AwsClientConfigurationFromJSON");
|
|
1097
|
+
function AwsClientConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
1098
|
+
if (json == null) {
|
|
1099
|
+
return json;
|
|
1100
|
+
}
|
|
1101
|
+
return {
|
|
1102
|
+
connectionTimeoutInMillis: json["connectionTimeoutInMillis"] == null ? void 0 : json["connectionTimeoutInMillis"],
|
|
1103
|
+
socketTimeoutInMillis: json["socketTimeoutInMillis"] == null ? void 0 : json["socketTimeoutInMillis"]
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
__name(AwsClientConfigurationFromJSONTyped, "AwsClientConfigurationFromJSONTyped");
|
|
1107
|
+
function AwsClientConfigurationToJSON(json) {
|
|
1108
|
+
return AwsClientConfigurationToJSONTyped(json, false);
|
|
1109
|
+
}
|
|
1110
|
+
__name(AwsClientConfigurationToJSON, "AwsClientConfigurationToJSON");
|
|
1111
|
+
function AwsClientConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1112
|
+
if (value == null) {
|
|
1113
|
+
return value;
|
|
1114
|
+
}
|
|
1115
|
+
return {
|
|
1116
|
+
connectionTimeoutInMillis: value["connectionTimeoutInMillis"],
|
|
1117
|
+
socketTimeoutInMillis: value["socketTimeoutInMillis"]
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
__name(AwsClientConfigurationToJSONTyped, "AwsClientConfigurationToJSONTyped");
|
|
1121
|
+
|
|
1122
|
+
// src/models/AwsStaticCredentials.ts
|
|
1123
|
+
function instanceOfAwsStaticCredentials(value) {
|
|
1124
|
+
if (!("accesskid" in value) || value["accesskid"] === void 0) return false;
|
|
1125
|
+
if (!("secretAccessKey" in value) || value["secretAccessKey"] === void 0) return false;
|
|
1126
|
+
return true;
|
|
1127
|
+
}
|
|
1128
|
+
__name(instanceOfAwsStaticCredentials, "instanceOfAwsStaticCredentials");
|
|
1129
|
+
function AwsStaticCredentialsFromJSON(json) {
|
|
1130
|
+
return AwsStaticCredentialsFromJSONTyped(json, false);
|
|
1131
|
+
}
|
|
1132
|
+
__name(AwsStaticCredentialsFromJSON, "AwsStaticCredentialsFromJSON");
|
|
1133
|
+
function AwsStaticCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1134
|
+
if (json == null) {
|
|
1135
|
+
return json;
|
|
1136
|
+
}
|
|
1137
|
+
return {
|
|
1138
|
+
accesskid: json["accesskid"],
|
|
1139
|
+
secretAccessKey: json["secretAccessKey"],
|
|
1140
|
+
sessionToken: json["sessionToken"] == null ? void 0 : json["sessionToken"],
|
|
1141
|
+
lookupMode: json["lookupMode"] == null ? void 0 : LookupModeFromJSON(json["lookupMode"])
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
__name(AwsStaticCredentialsFromJSONTyped, "AwsStaticCredentialsFromJSONTyped");
|
|
1145
|
+
function AwsStaticCredentialsToJSON(json) {
|
|
1146
|
+
return AwsStaticCredentialsToJSONTyped(json, false);
|
|
1147
|
+
}
|
|
1148
|
+
__name(AwsStaticCredentialsToJSON, "AwsStaticCredentialsToJSON");
|
|
1149
|
+
function AwsStaticCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1150
|
+
if (value == null) {
|
|
1151
|
+
return value;
|
|
1152
|
+
}
|
|
1153
|
+
return {
|
|
1154
|
+
accesskid: value["accesskid"],
|
|
1155
|
+
secretAccessKey: value["secretAccessKey"],
|
|
1156
|
+
sessionToken: value["sessionToken"],
|
|
1157
|
+
lookupMode: LookupModeToJSON(value["lookupMode"])
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
__name(AwsStaticCredentialsToJSONTyped, "AwsStaticCredentialsToJSONTyped");
|
|
1161
|
+
|
|
1162
|
+
// src/models/AwsWebIdentityTokenCredentials.ts
|
|
1163
|
+
function instanceOfAwsWebIdentityTokenCredentials(value) {
|
|
1164
|
+
if (!("roleArn" in value) || value["roleArn"] === void 0) return false;
|
|
1165
|
+
if (!("roleSessionName" in value) || value["roleSessionName"] === void 0) return false;
|
|
1166
|
+
if (!("webIdentityToken" in value) || value["webIdentityToken"] === void 0) return false;
|
|
1167
|
+
return true;
|
|
1168
|
+
}
|
|
1169
|
+
__name(instanceOfAwsWebIdentityTokenCredentials, "instanceOfAwsWebIdentityTokenCredentials");
|
|
1170
|
+
function AwsWebIdentityTokenCredentialsFromJSON(json) {
|
|
1171
|
+
return AwsWebIdentityTokenCredentialsFromJSONTyped(json, false);
|
|
1172
|
+
}
|
|
1173
|
+
__name(AwsWebIdentityTokenCredentialsFromJSON, "AwsWebIdentityTokenCredentialsFromJSON");
|
|
1174
|
+
function AwsWebIdentityTokenCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1175
|
+
if (json == null) {
|
|
1176
|
+
return json;
|
|
1177
|
+
}
|
|
1178
|
+
return {
|
|
1179
|
+
roleArn: json["roleArn"],
|
|
1180
|
+
roleSessionName: json["roleSessionName"],
|
|
1181
|
+
webIdentityToken: json["webIdentityToken"],
|
|
1182
|
+
lookupMode: json["lookupMode"] == null ? void 0 : LookupModeFromJSON(json["lookupMode"])
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
__name(AwsWebIdentityTokenCredentialsFromJSONTyped, "AwsWebIdentityTokenCredentialsFromJSONTyped");
|
|
1186
|
+
function AwsWebIdentityTokenCredentialsToJSON(json) {
|
|
1187
|
+
return AwsWebIdentityTokenCredentialsToJSONTyped(json, false);
|
|
1188
|
+
}
|
|
1189
|
+
__name(AwsWebIdentityTokenCredentialsToJSON, "AwsWebIdentityTokenCredentialsToJSON");
|
|
1190
|
+
function AwsWebIdentityTokenCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1191
|
+
if (value == null) {
|
|
1192
|
+
return value;
|
|
1193
|
+
}
|
|
1194
|
+
return {
|
|
1195
|
+
roleArn: value["roleArn"],
|
|
1196
|
+
roleSessionName: value["roleSessionName"],
|
|
1197
|
+
webIdentityToken: value["webIdentityToken"],
|
|
1198
|
+
lookupMode: LookupModeToJSON(value["lookupMode"])
|
|
1199
|
+
};
|
|
1200
|
+
}
|
|
1201
|
+
__name(AwsWebIdentityTokenCredentialsToJSONTyped, "AwsWebIdentityTokenCredentialsToJSONTyped");
|
|
1202
|
+
|
|
1203
|
+
// src/models/AwsKmsSetting.ts
|
|
1204
|
+
function instanceOfAwsKmsSetting(value) {
|
|
1205
|
+
if (!("region" in value) || value["region"] === void 0) return false;
|
|
1206
|
+
return true;
|
|
1207
|
+
}
|
|
1208
|
+
__name(instanceOfAwsKmsSetting, "instanceOfAwsKmsSetting");
|
|
1209
|
+
function AwsKmsSettingFromJSON(json) {
|
|
1210
|
+
return AwsKmsSettingFromJSONTyped(json, false);
|
|
1211
|
+
}
|
|
1212
|
+
__name(AwsKmsSettingFromJSON, "AwsKmsSettingFromJSON");
|
|
1213
|
+
function AwsKmsSettingFromJSONTyped(json, ignoreDiscriminator) {
|
|
1214
|
+
if (json == null) {
|
|
1215
|
+
return json;
|
|
1216
|
+
}
|
|
1217
|
+
return {
|
|
1218
|
+
region: json["region"],
|
|
1219
|
+
staticCredentials: json["staticCredentials"] == null ? void 0 : AwsStaticCredentialsFromJSON(json["staticCredentials"]),
|
|
1220
|
+
assumeRoleCredentials: json["assumeRoleCredentials"] == null ? void 0 : AwsAssumeRoleCredentialsFromJSON(json["assumeRoleCredentials"]),
|
|
1221
|
+
webIdentityTokenCredentials: json["webIdentityTokenCredentials"] == null ? void 0 : AwsWebIdentityTokenCredentialsFromJSON(json["webIdentityTokenCredentials"]),
|
|
1222
|
+
endpointUrl: json["endpointUrl"] == null ? void 0 : json["endpointUrl"],
|
|
1223
|
+
clientConfiguration: json["clientConfiguration"] == null ? void 0 : AwsClientConfigurationFromJSON(json["clientConfiguration"])
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
__name(AwsKmsSettingFromJSONTyped, "AwsKmsSettingFromJSONTyped");
|
|
1227
|
+
function AwsKmsSettingToJSON(json) {
|
|
1228
|
+
return AwsKmsSettingToJSONTyped(json, false);
|
|
1229
|
+
}
|
|
1230
|
+
__name(AwsKmsSettingToJSON, "AwsKmsSettingToJSON");
|
|
1231
|
+
function AwsKmsSettingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1232
|
+
if (value == null) {
|
|
1233
|
+
return value;
|
|
1234
|
+
}
|
|
1235
|
+
return {
|
|
1236
|
+
region: value["region"],
|
|
1237
|
+
staticCredentials: AwsStaticCredentialsToJSON(value["staticCredentials"]),
|
|
1238
|
+
assumeRoleCredentials: AwsAssumeRoleCredentialsToJSON(value["assumeRoleCredentials"]),
|
|
1239
|
+
webIdentityTokenCredentials: AwsWebIdentityTokenCredentialsToJSON(value["webIdentityTokenCredentials"]),
|
|
1240
|
+
endpointUrl: value["endpointUrl"],
|
|
1241
|
+
clientConfiguration: AwsClientConfigurationToJSON(value["clientConfiguration"])
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
__name(AwsKmsSettingToJSONTyped, "AwsKmsSettingToJSONTyped");
|
|
1245
|
+
|
|
1246
|
+
// src/models/AzureClientSecretCredentialOpts.ts
|
|
1247
|
+
function instanceOfAzureClientSecretCredentialOpts(value) {
|
|
1248
|
+
if (!("clientId" in value) || value["clientId"] === void 0) return false;
|
|
1249
|
+
if (!("clientSecret" in value) || value["clientSecret"] === void 0) return false;
|
|
1250
|
+
return true;
|
|
1251
|
+
}
|
|
1252
|
+
__name(instanceOfAzureClientSecretCredentialOpts, "instanceOfAzureClientSecretCredentialOpts");
|
|
1253
|
+
function AzureClientSecretCredentialOptsFromJSON(json) {
|
|
1254
|
+
return AzureClientSecretCredentialOptsFromJSONTyped(json, false);
|
|
1255
|
+
}
|
|
1256
|
+
__name(AzureClientSecretCredentialOptsFromJSON, "AzureClientSecretCredentialOptsFromJSON");
|
|
1257
|
+
function AzureClientSecretCredentialOptsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1258
|
+
if (json == null) {
|
|
1259
|
+
return json;
|
|
1260
|
+
}
|
|
1261
|
+
return {
|
|
1262
|
+
clientId: json["clientId"],
|
|
1263
|
+
clientSecret: json["clientSecret"],
|
|
1264
|
+
lookupMode: json["lookupMode"] == null ? void 0 : LookupModeFromJSON(json["lookupMode"])
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
__name(AzureClientSecretCredentialOptsFromJSONTyped, "AzureClientSecretCredentialOptsFromJSONTyped");
|
|
1268
|
+
function AzureClientSecretCredentialOptsToJSON(json) {
|
|
1269
|
+
return AzureClientSecretCredentialOptsToJSONTyped(json, false);
|
|
1270
|
+
}
|
|
1271
|
+
__name(AzureClientSecretCredentialOptsToJSON, "AzureClientSecretCredentialOptsToJSON");
|
|
1272
|
+
function AzureClientSecretCredentialOptsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1273
|
+
if (value == null) {
|
|
1274
|
+
return value;
|
|
1275
|
+
}
|
|
1276
|
+
return {
|
|
1277
|
+
clientId: value["clientId"],
|
|
1278
|
+
clientSecret: value["clientSecret"],
|
|
1279
|
+
lookupMode: LookupModeToJSON(value["lookupMode"])
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
__name(AzureClientSecretCredentialOptsToJSONTyped, "AzureClientSecretCredentialOptsToJSONTyped");
|
|
1283
|
+
|
|
1284
|
+
// src/models/AzureCredentialOpts.ts
|
|
1285
|
+
function instanceOfAzureCredentialOpts(value) {
|
|
1286
|
+
return true;
|
|
1287
|
+
}
|
|
1288
|
+
__name(instanceOfAzureCredentialOpts, "instanceOfAzureCredentialOpts");
|
|
1289
|
+
function AzureCredentialOptsFromJSON(json) {
|
|
1290
|
+
return AzureCredentialOptsFromJSONTyped(json, false);
|
|
1291
|
+
}
|
|
1292
|
+
__name(AzureCredentialOptsFromJSON, "AzureCredentialOptsFromJSON");
|
|
1293
|
+
function AzureCredentialOptsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1294
|
+
if (json == null) {
|
|
1295
|
+
return json;
|
|
1296
|
+
}
|
|
1297
|
+
return {
|
|
1298
|
+
clientSecretCredentialOpts: json["clientSecretCredentialOpts"] == null ? void 0 : AzureClientSecretCredentialOptsFromJSON(json["clientSecretCredentialOpts"])
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
__name(AzureCredentialOptsFromJSONTyped, "AzureCredentialOptsFromJSONTyped");
|
|
1302
|
+
function AzureCredentialOptsToJSON(json) {
|
|
1303
|
+
return AzureCredentialOptsToJSONTyped(json, false);
|
|
1304
|
+
}
|
|
1305
|
+
__name(AzureCredentialOptsToJSON, "AzureCredentialOptsToJSON");
|
|
1306
|
+
function AzureCredentialOptsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1307
|
+
if (value == null) {
|
|
1308
|
+
return value;
|
|
1309
|
+
}
|
|
1310
|
+
return {
|
|
1311
|
+
clientSecretCredentialOpts: AzureClientSecretCredentialOptsToJSON(value["clientSecretCredentialOpts"])
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
__name(AzureCredentialOptsToJSONTyped, "AzureCredentialOptsToJSONTyped");
|
|
1315
|
+
|
|
1316
|
+
// src/models/AzureKeyVaultSetting.ts
|
|
1317
|
+
function instanceOfAzureKeyVaultSetting(value) {
|
|
1318
|
+
if (!("keyvaultUrl" in value) || value["keyvaultUrl"] === void 0) return false;
|
|
1319
|
+
if (!("tenantId" in value) || value["tenantId"] === void 0) return false;
|
|
1320
|
+
if (!("credentialOpts" in value) || value["credentialOpts"] === void 0) return false;
|
|
1321
|
+
return true;
|
|
1322
|
+
}
|
|
1323
|
+
__name(instanceOfAzureKeyVaultSetting, "instanceOfAzureKeyVaultSetting");
|
|
1324
|
+
function AzureKeyVaultSettingFromJSON(json) {
|
|
1325
|
+
return AzureKeyVaultSettingFromJSONTyped(json, false);
|
|
1326
|
+
}
|
|
1327
|
+
__name(AzureKeyVaultSettingFromJSON, "AzureKeyVaultSettingFromJSON");
|
|
1328
|
+
function AzureKeyVaultSettingFromJSONTyped(json, ignoreDiscriminator) {
|
|
1329
|
+
if (json == null) {
|
|
1330
|
+
return json;
|
|
1331
|
+
}
|
|
1332
|
+
return {
|
|
1333
|
+
keyvaultUrl: json["keyvaultUrl"],
|
|
1334
|
+
tenantId: json["tenantId"],
|
|
1335
|
+
credentialOpts: AzureCredentialOptsFromJSON(json["credentialOpts"]),
|
|
1336
|
+
applicationId: json["applicationId"] == null ? void 0 : json["applicationId"],
|
|
1337
|
+
lookupMode: json["lookupMode"] == null ? void 0 : LookupModeFromJSON(json["lookupMode"])
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
__name(AzureKeyVaultSettingFromJSONTyped, "AzureKeyVaultSettingFromJSONTyped");
|
|
1341
|
+
function AzureKeyVaultSettingToJSON(json) {
|
|
1342
|
+
return AzureKeyVaultSettingToJSONTyped(json, false);
|
|
1343
|
+
}
|
|
1344
|
+
__name(AzureKeyVaultSettingToJSON, "AzureKeyVaultSettingToJSON");
|
|
1345
|
+
function AzureKeyVaultSettingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1346
|
+
if (value == null) {
|
|
1347
|
+
return value;
|
|
1348
|
+
}
|
|
1349
|
+
return {
|
|
1350
|
+
keyvaultUrl: value["keyvaultUrl"],
|
|
1351
|
+
tenantId: value["tenantId"],
|
|
1352
|
+
credentialOpts: AzureCredentialOptsToJSON(value["credentialOpts"]),
|
|
1353
|
+
applicationId: value["applicationId"],
|
|
1354
|
+
lookupMode: LookupModeToJSON(value["lookupMode"])
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
__name(AzureKeyVaultSettingToJSONTyped, "AzureKeyVaultSettingToJSONTyped");
|
|
1358
|
+
|
|
1014
1359
|
// src/models/CoseKeyType.ts
|
|
1360
|
+
var CoseKeyType = {
|
|
1361
|
+
NUMBER_1: 1,
|
|
1362
|
+
NUMBER_2: 2,
|
|
1363
|
+
NUMBER_3: 3,
|
|
1364
|
+
NUMBER_4: 4
|
|
1365
|
+
};
|
|
1366
|
+
function instanceOfCoseKeyType(value) {
|
|
1367
|
+
for (const key in CoseKeyType) {
|
|
1368
|
+
if (Object.prototype.hasOwnProperty.call(CoseKeyType, key)) {
|
|
1369
|
+
if (CoseKeyType[key] === value) {
|
|
1370
|
+
return true;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
return false;
|
|
1375
|
+
}
|
|
1376
|
+
__name(instanceOfCoseKeyType, "instanceOfCoseKeyType");
|
|
1015
1377
|
function CoseKeyTypeFromJSON(json) {
|
|
1016
1378
|
return CoseKeyTypeFromJSONTyped(json, false);
|
|
1017
1379
|
}
|
|
@@ -1020,8 +1382,21 @@ function CoseKeyTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1020
1382
|
return json;
|
|
1021
1383
|
}
|
|
1022
1384
|
__name(CoseKeyTypeFromJSONTyped, "CoseKeyTypeFromJSONTyped");
|
|
1385
|
+
function CoseKeyTypeToJSON(value) {
|
|
1386
|
+
return value;
|
|
1387
|
+
}
|
|
1388
|
+
__name(CoseKeyTypeToJSON, "CoseKeyTypeToJSON");
|
|
1389
|
+
function CoseKeyTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
1390
|
+
return value;
|
|
1391
|
+
}
|
|
1392
|
+
__name(CoseKeyTypeToJSONTyped, "CoseKeyTypeToJSONTyped");
|
|
1023
1393
|
|
|
1024
1394
|
// src/models/CoseKey.ts
|
|
1395
|
+
function instanceOfCoseKey(value) {
|
|
1396
|
+
if (!("kty" in value) || value["kty"] === void 0) return false;
|
|
1397
|
+
return true;
|
|
1398
|
+
}
|
|
1399
|
+
__name(instanceOfCoseKey, "instanceOfCoseKey");
|
|
1025
1400
|
function CoseKeyFromJSON(json) {
|
|
1026
1401
|
return CoseKeyFromJSONTyped(json, false);
|
|
1027
1402
|
}
|
|
@@ -1044,8 +1419,35 @@ function CoseKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1044
1419
|
};
|
|
1045
1420
|
}
|
|
1046
1421
|
__name(CoseKeyFromJSONTyped, "CoseKeyFromJSONTyped");
|
|
1422
|
+
function CoseKeyToJSON(json) {
|
|
1423
|
+
return CoseKeyToJSONTyped(json, false);
|
|
1424
|
+
}
|
|
1425
|
+
__name(CoseKeyToJSON, "CoseKeyToJSON");
|
|
1426
|
+
function CoseKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1427
|
+
if (value == null) {
|
|
1428
|
+
return value;
|
|
1429
|
+
}
|
|
1430
|
+
return {
|
|
1431
|
+
kty: CoseKeyTypeToJSON(value["kty"]),
|
|
1432
|
+
kid: value["kid"],
|
|
1433
|
+
alg: value["alg"],
|
|
1434
|
+
key_ops: value["keyOps"],
|
|
1435
|
+
baseIV: value["baseIV"],
|
|
1436
|
+
crv: value["crv"],
|
|
1437
|
+
x: value["x"],
|
|
1438
|
+
y: value["y"],
|
|
1439
|
+
d: value["d"],
|
|
1440
|
+
x5chain: value["x5chain"]
|
|
1441
|
+
};
|
|
1442
|
+
}
|
|
1443
|
+
__name(CoseKeyToJSONTyped, "CoseKeyToJSONTyped");
|
|
1047
1444
|
|
|
1048
1445
|
// src/models/CoseKeyPair.ts
|
|
1446
|
+
function instanceOfCoseKeyPair(value) {
|
|
1447
|
+
if (!("publicCoseKey" in value) || value["publicCoseKey"] === void 0) return false;
|
|
1448
|
+
return true;
|
|
1449
|
+
}
|
|
1450
|
+
__name(instanceOfCoseKeyPair, "instanceOfCoseKeyPair");
|
|
1049
1451
|
function CoseKeyPairFromJSON(json) {
|
|
1050
1452
|
return CoseKeyPairFromJSONTyped(json, false);
|
|
1051
1453
|
}
|
|
@@ -1060,8 +1462,38 @@ function CoseKeyPairFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1060
1462
|
};
|
|
1061
1463
|
}
|
|
1062
1464
|
__name(CoseKeyPairFromJSONTyped, "CoseKeyPairFromJSONTyped");
|
|
1465
|
+
function CoseKeyPairToJSON(json) {
|
|
1466
|
+
return CoseKeyPairToJSONTyped(json, false);
|
|
1467
|
+
}
|
|
1468
|
+
__name(CoseKeyPairToJSON, "CoseKeyPairToJSON");
|
|
1469
|
+
function CoseKeyPairToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1470
|
+
if (value == null) {
|
|
1471
|
+
return value;
|
|
1472
|
+
}
|
|
1473
|
+
return {
|
|
1474
|
+
privateCoseKey: CoseKeyToJSON(value["privateCoseKey"]),
|
|
1475
|
+
publicCoseKey: CoseKeyToJSON(value["publicCoseKey"])
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
__name(CoseKeyPairToJSONTyped, "CoseKeyPairToJSONTyped");
|
|
1063
1479
|
|
|
1064
1480
|
// src/models/KeyProviderType.ts
|
|
1481
|
+
var KeyProviderType = {
|
|
1482
|
+
Software: "SOFTWARE",
|
|
1483
|
+
AzureKeyvault: "AZURE_KEYVAULT",
|
|
1484
|
+
AwsKms: "AWS_KMS"
|
|
1485
|
+
};
|
|
1486
|
+
function instanceOfKeyProviderType(value) {
|
|
1487
|
+
for (const key in KeyProviderType) {
|
|
1488
|
+
if (Object.prototype.hasOwnProperty.call(KeyProviderType, key)) {
|
|
1489
|
+
if (KeyProviderType[key] === value) {
|
|
1490
|
+
return true;
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
return false;
|
|
1495
|
+
}
|
|
1496
|
+
__name(instanceOfKeyProviderType, "instanceOfKeyProviderType");
|
|
1065
1497
|
function KeyProviderTypeFromJSON(json) {
|
|
1066
1498
|
return KeyProviderTypeFromJSONTyped(json, false);
|
|
1067
1499
|
}
|
|
@@ -1070,8 +1502,73 @@ function KeyProviderTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1070
1502
|
return json;
|
|
1071
1503
|
}
|
|
1072
1504
|
__name(KeyProviderTypeFromJSONTyped, "KeyProviderTypeFromJSONTyped");
|
|
1505
|
+
function KeyProviderTypeToJSON(value) {
|
|
1506
|
+
return value;
|
|
1507
|
+
}
|
|
1508
|
+
__name(KeyProviderTypeToJSON, "KeyProviderTypeToJSON");
|
|
1509
|
+
function KeyProviderTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
1510
|
+
return value;
|
|
1511
|
+
}
|
|
1512
|
+
__name(KeyProviderTypeToJSONTyped, "KeyProviderTypeToJSONTyped");
|
|
1513
|
+
|
|
1514
|
+
// src/models/CreateKeyProvider.ts
|
|
1515
|
+
function instanceOfCreateKeyProvider(value) {
|
|
1516
|
+
if (!("type" in value) || value["type"] === void 0) return false;
|
|
1517
|
+
return true;
|
|
1518
|
+
}
|
|
1519
|
+
__name(instanceOfCreateKeyProvider, "instanceOfCreateKeyProvider");
|
|
1520
|
+
function CreateKeyProviderFromJSON(json) {
|
|
1521
|
+
return CreateKeyProviderFromJSONTyped(json, false);
|
|
1522
|
+
}
|
|
1523
|
+
__name(CreateKeyProviderFromJSON, "CreateKeyProviderFromJSON");
|
|
1524
|
+
function CreateKeyProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
1525
|
+
if (json == null) {
|
|
1526
|
+
return json;
|
|
1527
|
+
}
|
|
1528
|
+
return {
|
|
1529
|
+
type: KeyProviderTypeFromJSON(json["type"]),
|
|
1530
|
+
azureKeyvaultSettings: json["azureKeyvaultSettings"] == null ? void 0 : AzureKeyVaultSettingFromJSON(json["azureKeyvaultSettings"]),
|
|
1531
|
+
awsKmsSettings: json["awsKmsSettings"] == null ? void 0 : AwsKmsSettingFromJSON(json["awsKmsSettings"]),
|
|
1532
|
+
cacheEnabled: json["cacheEnabled"] == null ? void 0 : json["cacheEnabled"],
|
|
1533
|
+
cacheTTLInSeconds: json["cacheTTLInSeconds"] == null ? void 0 : json["cacheTTLInSeconds"]
|
|
1534
|
+
};
|
|
1535
|
+
}
|
|
1536
|
+
__name(CreateKeyProviderFromJSONTyped, "CreateKeyProviderFromJSONTyped");
|
|
1537
|
+
function CreateKeyProviderToJSON(json) {
|
|
1538
|
+
return CreateKeyProviderToJSONTyped(json, false);
|
|
1539
|
+
}
|
|
1540
|
+
__name(CreateKeyProviderToJSON, "CreateKeyProviderToJSON");
|
|
1541
|
+
function CreateKeyProviderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1542
|
+
if (value == null) {
|
|
1543
|
+
return value;
|
|
1544
|
+
}
|
|
1545
|
+
return {
|
|
1546
|
+
type: KeyProviderTypeToJSON(value["type"]),
|
|
1547
|
+
azureKeyvaultSettings: AzureKeyVaultSettingToJSON(value["azureKeyvaultSettings"]),
|
|
1548
|
+
awsKmsSettings: AwsKmsSettingToJSON(value["awsKmsSettings"]),
|
|
1549
|
+
cacheEnabled: value["cacheEnabled"],
|
|
1550
|
+
cacheTTLInSeconds: value["cacheTTLInSeconds"]
|
|
1551
|
+
};
|
|
1552
|
+
}
|
|
1553
|
+
__name(CreateKeyProviderToJSONTyped, "CreateKeyProviderToJSONTyped");
|
|
1073
1554
|
|
|
1074
1555
|
// src/models/KeyType.ts
|
|
1556
|
+
var KeyType = {
|
|
1557
|
+
Okp: "OKP",
|
|
1558
|
+
Ec: "EC",
|
|
1559
|
+
Rsa: "RSA"
|
|
1560
|
+
};
|
|
1561
|
+
function instanceOfKeyType(value) {
|
|
1562
|
+
for (const key in KeyType) {
|
|
1563
|
+
if (Object.prototype.hasOwnProperty.call(KeyType, key)) {
|
|
1564
|
+
if (KeyType[key] === value) {
|
|
1565
|
+
return true;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
return false;
|
|
1570
|
+
}
|
|
1571
|
+
__name(instanceOfKeyType, "instanceOfKeyType");
|
|
1075
1572
|
function KeyTypeFromJSON(json) {
|
|
1076
1573
|
return KeyTypeFromJSONTyped(json, false);
|
|
1077
1574
|
}
|
|
@@ -1084,8 +1581,27 @@ function KeyTypeToJSON(value) {
|
|
|
1084
1581
|
return value;
|
|
1085
1582
|
}
|
|
1086
1583
|
__name(KeyTypeToJSON, "KeyTypeToJSON");
|
|
1584
|
+
function KeyTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
1585
|
+
return value;
|
|
1586
|
+
}
|
|
1587
|
+
__name(KeyTypeToJSONTyped, "KeyTypeToJSONTyped");
|
|
1087
1588
|
|
|
1088
1589
|
// src/models/KeyVisibility.ts
|
|
1590
|
+
var KeyVisibility = {
|
|
1591
|
+
Public: "PUBLIC",
|
|
1592
|
+
Private: "PRIVATE"
|
|
1593
|
+
};
|
|
1594
|
+
function instanceOfKeyVisibility(value) {
|
|
1595
|
+
for (const key in KeyVisibility) {
|
|
1596
|
+
if (Object.prototype.hasOwnProperty.call(KeyVisibility, key)) {
|
|
1597
|
+
if (KeyVisibility[key] === value) {
|
|
1598
|
+
return true;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
return false;
|
|
1603
|
+
}
|
|
1604
|
+
__name(instanceOfKeyVisibility, "instanceOfKeyVisibility");
|
|
1089
1605
|
function KeyVisibilityFromJSON(json) {
|
|
1090
1606
|
return KeyVisibilityFromJSONTyped(json, false);
|
|
1091
1607
|
}
|
|
@@ -1098,8 +1614,37 @@ function KeyVisibilityToJSON(value) {
|
|
|
1098
1614
|
return value;
|
|
1099
1615
|
}
|
|
1100
1616
|
__name(KeyVisibilityToJSON, "KeyVisibilityToJSON");
|
|
1617
|
+
function KeyVisibilityToJSONTyped(value, ignoreDiscriminator) {
|
|
1618
|
+
return value;
|
|
1619
|
+
}
|
|
1620
|
+
__name(KeyVisibilityToJSONTyped, "KeyVisibilityToJSONTyped");
|
|
1101
1621
|
|
|
1102
1622
|
// src/models/SignatureAlgorithm.ts
|
|
1623
|
+
var SignatureAlgorithm = {
|
|
1624
|
+
Ed25519: "ED25519",
|
|
1625
|
+
EcdsaSha256: "ECDSA_SHA256",
|
|
1626
|
+
EcdsaSha384: "ECDSA_SHA384",
|
|
1627
|
+
EcdsaSha512: "ECDSA_SHA512",
|
|
1628
|
+
Es256K: "ES256K",
|
|
1629
|
+
EckaDhSha256: "ECKA_DH_SHA256",
|
|
1630
|
+
HmacSha256: "HMAC_SHA256",
|
|
1631
|
+
HmacSha384: "HMAC_SHA384",
|
|
1632
|
+
HmacSha512: "HMAC_SHA512",
|
|
1633
|
+
RsaSsaPssSha256Mgf1: "RSA_SSA_PSS_SHA256_MGF1",
|
|
1634
|
+
RsaSsaPssSha384Mgf1: "RSA_SSA_PSS_SHA384_MGF1",
|
|
1635
|
+
RsaSsaPssSha512Mgf1: "RSA_SSA_PSS_SHA512_MGF1"
|
|
1636
|
+
};
|
|
1637
|
+
function instanceOfSignatureAlgorithm(value) {
|
|
1638
|
+
for (const key in SignatureAlgorithm) {
|
|
1639
|
+
if (Object.prototype.hasOwnProperty.call(SignatureAlgorithm, key)) {
|
|
1640
|
+
if (SignatureAlgorithm[key] === value) {
|
|
1641
|
+
return true;
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
return false;
|
|
1646
|
+
}
|
|
1647
|
+
__name(instanceOfSignatureAlgorithm, "instanceOfSignatureAlgorithm");
|
|
1103
1648
|
function SignatureAlgorithmFromJSON(json) {
|
|
1104
1649
|
return SignatureAlgorithmFromJSONTyped(json, false);
|
|
1105
1650
|
}
|
|
@@ -1112,8 +1657,27 @@ function SignatureAlgorithmToJSON(value) {
|
|
|
1112
1657
|
return value;
|
|
1113
1658
|
}
|
|
1114
1659
|
__name(SignatureAlgorithmToJSON, "SignatureAlgorithmToJSON");
|
|
1660
|
+
function SignatureAlgorithmToJSONTyped(value, ignoreDiscriminator) {
|
|
1661
|
+
return value;
|
|
1662
|
+
}
|
|
1663
|
+
__name(SignatureAlgorithmToJSONTyped, "SignatureAlgorithmToJSONTyped");
|
|
1115
1664
|
|
|
1116
1665
|
// src/models/KeyEncoding.ts
|
|
1666
|
+
var KeyEncoding = {
|
|
1667
|
+
Cose: "COSE",
|
|
1668
|
+
Jose: "JOSE"
|
|
1669
|
+
};
|
|
1670
|
+
function instanceOfKeyEncoding(value) {
|
|
1671
|
+
for (const key in KeyEncoding) {
|
|
1672
|
+
if (Object.prototype.hasOwnProperty.call(KeyEncoding, key)) {
|
|
1673
|
+
if (KeyEncoding[key] === value) {
|
|
1674
|
+
return true;
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
return false;
|
|
1679
|
+
}
|
|
1680
|
+
__name(instanceOfKeyEncoding, "instanceOfKeyEncoding");
|
|
1117
1681
|
function KeyEncodingFromJSON(json) {
|
|
1118
1682
|
return KeyEncodingFromJSONTyped(json, false);
|
|
1119
1683
|
}
|
|
@@ -1126,8 +1690,33 @@ function KeyEncodingToJSON(value) {
|
|
|
1126
1690
|
return value;
|
|
1127
1691
|
}
|
|
1128
1692
|
__name(KeyEncodingToJSON, "KeyEncodingToJSON");
|
|
1693
|
+
function KeyEncodingToJSONTyped(value, ignoreDiscriminator) {
|
|
1694
|
+
return value;
|
|
1695
|
+
}
|
|
1696
|
+
__name(KeyEncodingToJSONTyped, "KeyEncodingToJSONTyped");
|
|
1129
1697
|
|
|
1130
1698
|
// src/models/Curve.ts
|
|
1699
|
+
var Curve = {
|
|
1700
|
+
P256: "P-256",
|
|
1701
|
+
P384: "P-384",
|
|
1702
|
+
P521: "P-521",
|
|
1703
|
+
Secp256k1: "secp256k1",
|
|
1704
|
+
Ed25519: "Ed25519",
|
|
1705
|
+
Ed448: "Ed448",
|
|
1706
|
+
X25519: "X25519",
|
|
1707
|
+
X448: "X448"
|
|
1708
|
+
};
|
|
1709
|
+
function instanceOfCurve(value) {
|
|
1710
|
+
for (const key in Curve) {
|
|
1711
|
+
if (Object.prototype.hasOwnProperty.call(Curve, key)) {
|
|
1712
|
+
if (Curve[key] === value) {
|
|
1713
|
+
return true;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
return false;
|
|
1718
|
+
}
|
|
1719
|
+
__name(instanceOfCurve, "instanceOfCurve");
|
|
1131
1720
|
function CurveFromJSON(json) {
|
|
1132
1721
|
return CurveFromJSONTyped(json, false);
|
|
1133
1722
|
}
|
|
@@ -1140,8 +1729,33 @@ function CurveToJSON(value) {
|
|
|
1140
1729
|
return value;
|
|
1141
1730
|
}
|
|
1142
1731
|
__name(CurveToJSON, "CurveToJSON");
|
|
1732
|
+
function CurveToJSONTyped(value, ignoreDiscriminator) {
|
|
1733
|
+
return value;
|
|
1734
|
+
}
|
|
1735
|
+
__name(CurveToJSONTyped, "CurveToJSONTyped");
|
|
1143
1736
|
|
|
1144
1737
|
// src/models/KeyOperations.ts
|
|
1738
|
+
var KeyOperations = {
|
|
1739
|
+
Sign: "sign",
|
|
1740
|
+
Verify: "verify",
|
|
1741
|
+
Encrypt: "encrypt",
|
|
1742
|
+
Decrypt: "decrypt",
|
|
1743
|
+
WrapKey: "wrapKey",
|
|
1744
|
+
UnwrapKey: "unwrapKey",
|
|
1745
|
+
DeriveKey: "deriveKey",
|
|
1746
|
+
DeriveBits: "deriveBits"
|
|
1747
|
+
};
|
|
1748
|
+
function instanceOfKeyOperations(value) {
|
|
1749
|
+
for (const key in KeyOperations) {
|
|
1750
|
+
if (Object.prototype.hasOwnProperty.call(KeyOperations, key)) {
|
|
1751
|
+
if (KeyOperations[key] === value) {
|
|
1752
|
+
return true;
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
return false;
|
|
1757
|
+
}
|
|
1758
|
+
__name(instanceOfKeyOperations, "instanceOfKeyOperations");
|
|
1145
1759
|
function KeyOperationsFromJSON(json) {
|
|
1146
1760
|
return KeyOperationsFromJSONTyped(json, false);
|
|
1147
1761
|
}
|
|
@@ -1154,8 +1768,27 @@ function KeyOperationsToJSON(value) {
|
|
|
1154
1768
|
return value;
|
|
1155
1769
|
}
|
|
1156
1770
|
__name(KeyOperationsToJSON, "KeyOperationsToJSON");
|
|
1771
|
+
function KeyOperationsToJSONTyped(value, ignoreDiscriminator) {
|
|
1772
|
+
return value;
|
|
1773
|
+
}
|
|
1774
|
+
__name(KeyOperationsToJSONTyped, "KeyOperationsToJSONTyped");
|
|
1157
1775
|
|
|
1158
1776
|
// src/models/JwkUse.ts
|
|
1777
|
+
var JwkUse = {
|
|
1778
|
+
Sig: "sig",
|
|
1779
|
+
Enc: "enc"
|
|
1780
|
+
};
|
|
1781
|
+
function instanceOfJwkUse(value) {
|
|
1782
|
+
for (const key in JwkUse) {
|
|
1783
|
+
if (Object.prototype.hasOwnProperty.call(JwkUse, key)) {
|
|
1784
|
+
if (JwkUse[key] === value) {
|
|
1785
|
+
return true;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
return false;
|
|
1790
|
+
}
|
|
1791
|
+
__name(instanceOfJwkUse, "instanceOfJwkUse");
|
|
1159
1792
|
function JwkUseFromJSON(json) {
|
|
1160
1793
|
return JwkUseFromJSONTyped(json, false);
|
|
1161
1794
|
}
|
|
@@ -1168,8 +1801,29 @@ function JwkUseToJSON(value) {
|
|
|
1168
1801
|
return value;
|
|
1169
1802
|
}
|
|
1170
1803
|
__name(JwkUseToJSON, "JwkUseToJSON");
|
|
1804
|
+
function JwkUseToJSONTyped(value, ignoreDiscriminator) {
|
|
1805
|
+
return value;
|
|
1806
|
+
}
|
|
1807
|
+
__name(JwkUseToJSONTyped, "JwkUseToJSONTyped");
|
|
1171
1808
|
|
|
1172
1809
|
// src/models/JwkKeyType.ts
|
|
1810
|
+
var JwkKeyType = {
|
|
1811
|
+
Ec: "EC",
|
|
1812
|
+
Rsa: "RSA",
|
|
1813
|
+
Okp: "OKP",
|
|
1814
|
+
Oct: "oct"
|
|
1815
|
+
};
|
|
1816
|
+
function instanceOfJwkKeyType(value) {
|
|
1817
|
+
for (const key in JwkKeyType) {
|
|
1818
|
+
if (Object.prototype.hasOwnProperty.call(JwkKeyType, key)) {
|
|
1819
|
+
if (JwkKeyType[key] === value) {
|
|
1820
|
+
return true;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
return false;
|
|
1825
|
+
}
|
|
1826
|
+
__name(instanceOfJwkKeyType, "instanceOfJwkKeyType");
|
|
1173
1827
|
function JwkKeyTypeFromJSON(json) {
|
|
1174
1828
|
return JwkKeyTypeFromJSONTyped(json, false);
|
|
1175
1829
|
}
|
|
@@ -1182,8 +1836,17 @@ function JwkKeyTypeToJSON(value) {
|
|
|
1182
1836
|
return value;
|
|
1183
1837
|
}
|
|
1184
1838
|
__name(JwkKeyTypeToJSON, "JwkKeyTypeToJSON");
|
|
1839
|
+
function JwkKeyTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
1840
|
+
return value;
|
|
1841
|
+
}
|
|
1842
|
+
__name(JwkKeyTypeToJSONTyped, "JwkKeyTypeToJSONTyped");
|
|
1185
1843
|
|
|
1186
1844
|
// src/models/Jwk.ts
|
|
1845
|
+
function instanceOfJwk(value) {
|
|
1846
|
+
if (!("kty" in value) || value["kty"] === void 0) return false;
|
|
1847
|
+
return true;
|
|
1848
|
+
}
|
|
1849
|
+
__name(instanceOfJwk, "instanceOfJwk");
|
|
1187
1850
|
function JwkFromJSON(json) {
|
|
1188
1851
|
return JwkFromJSONTyped(json, false);
|
|
1189
1852
|
}
|
|
@@ -1252,6 +1915,32 @@ function JwkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1252
1915
|
__name(JwkToJSONTyped, "JwkToJSONTyped");
|
|
1253
1916
|
|
|
1254
1917
|
// src/models/KeyInfo.ts
|
|
1918
|
+
function instanceOfKeyInfo(value) {
|
|
1919
|
+
return true;
|
|
1920
|
+
}
|
|
1921
|
+
__name(instanceOfKeyInfo, "instanceOfKeyInfo");
|
|
1922
|
+
function KeyInfoFromJSON(json) {
|
|
1923
|
+
return KeyInfoFromJSONTyped(json, false);
|
|
1924
|
+
}
|
|
1925
|
+
__name(KeyInfoFromJSON, "KeyInfoFromJSON");
|
|
1926
|
+
function KeyInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1927
|
+
if (json == null) {
|
|
1928
|
+
return json;
|
|
1929
|
+
}
|
|
1930
|
+
return {
|
|
1931
|
+
kid: json["kid"] == null ? void 0 : json["kid"],
|
|
1932
|
+
key: json["key"] == null ? void 0 : JwkFromJSON(json["key"]),
|
|
1933
|
+
signatureAlgorithm: json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
|
|
1934
|
+
keyVisibility: json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
|
|
1935
|
+
x5c: json["x5c"] == null ? void 0 : json["x5c"],
|
|
1936
|
+
alias: json["alias"] == null ? void 0 : json["alias"],
|
|
1937
|
+
providerId: json["providerId"] == null ? void 0 : json["providerId"],
|
|
1938
|
+
keyType: json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
|
|
1939
|
+
keyEncoding: json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
|
|
1940
|
+
opts: json["opts"] == null ? void 0 : json["opts"]
|
|
1941
|
+
};
|
|
1942
|
+
}
|
|
1943
|
+
__name(KeyInfoFromJSONTyped, "KeyInfoFromJSONTyped");
|
|
1255
1944
|
function KeyInfoToJSON(json) {
|
|
1256
1945
|
return KeyInfoToJSONTyped(json, false);
|
|
1257
1946
|
}
|
|
@@ -1276,6 +1965,30 @@ function KeyInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1276
1965
|
__name(KeyInfoToJSONTyped, "KeyInfoToJSONTyped");
|
|
1277
1966
|
|
|
1278
1967
|
// src/models/CreateRawSignature.ts
|
|
1968
|
+
function instanceOfCreateRawSignature(value) {
|
|
1969
|
+
if (!("keyInfo" in value) || value["keyInfo"] === void 0) return false;
|
|
1970
|
+
if (!("input" in value) || value["input"] === void 0) return false;
|
|
1971
|
+
return true;
|
|
1972
|
+
}
|
|
1973
|
+
__name(instanceOfCreateRawSignature, "instanceOfCreateRawSignature");
|
|
1974
|
+
function CreateRawSignatureFromJSON(json) {
|
|
1975
|
+
return CreateRawSignatureFromJSONTyped(json, false);
|
|
1976
|
+
}
|
|
1977
|
+
__name(CreateRawSignatureFromJSON, "CreateRawSignatureFromJSON");
|
|
1978
|
+
function CreateRawSignatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
1979
|
+
if (json == null) {
|
|
1980
|
+
return json;
|
|
1981
|
+
}
|
|
1982
|
+
return {
|
|
1983
|
+
keyInfo: KeyInfoFromJSON(json["keyInfo"]),
|
|
1984
|
+
input: json["input"]
|
|
1985
|
+
};
|
|
1986
|
+
}
|
|
1987
|
+
__name(CreateRawSignatureFromJSONTyped, "CreateRawSignatureFromJSONTyped");
|
|
1988
|
+
function CreateRawSignatureToJSON(json) {
|
|
1989
|
+
return CreateRawSignatureToJSONTyped(json, false);
|
|
1990
|
+
}
|
|
1991
|
+
__name(CreateRawSignatureToJSON, "CreateRawSignatureToJSON");
|
|
1279
1992
|
function CreateRawSignatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1280
1993
|
if (value == null) {
|
|
1281
1994
|
return value;
|
|
@@ -1288,6 +2001,15 @@ function CreateRawSignatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1288
2001
|
__name(CreateRawSignatureToJSONTyped, "CreateRawSignatureToJSONTyped");
|
|
1289
2002
|
|
|
1290
2003
|
// src/models/CreateRawSignatureResponse.ts
|
|
2004
|
+
function instanceOfCreateRawSignatureResponse(value) {
|
|
2005
|
+
if (!("signature" in value) || value["signature"] === void 0) return false;
|
|
2006
|
+
return true;
|
|
2007
|
+
}
|
|
2008
|
+
__name(instanceOfCreateRawSignatureResponse, "instanceOfCreateRawSignatureResponse");
|
|
2009
|
+
function CreateRawSignatureResponseFromJSON(json) {
|
|
2010
|
+
return CreateRawSignatureResponseFromJSONTyped(json, false);
|
|
2011
|
+
}
|
|
2012
|
+
__name(CreateRawSignatureResponseFromJSON, "CreateRawSignatureResponseFromJSON");
|
|
1291
2013
|
function CreateRawSignatureResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1292
2014
|
if (json == null) {
|
|
1293
2015
|
return json;
|
|
@@ -1297,8 +2019,235 @@ function CreateRawSignatureResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1297
2019
|
};
|
|
1298
2020
|
}
|
|
1299
2021
|
__name(CreateRawSignatureResponseFromJSONTyped, "CreateRawSignatureResponseFromJSONTyped");
|
|
2022
|
+
function CreateRawSignatureResponseToJSON(json) {
|
|
2023
|
+
return CreateRawSignatureResponseToJSONTyped(json, false);
|
|
2024
|
+
}
|
|
2025
|
+
__name(CreateRawSignatureResponseToJSON, "CreateRawSignatureResponseToJSON");
|
|
2026
|
+
function CreateRawSignatureResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2027
|
+
if (value == null) {
|
|
2028
|
+
return value;
|
|
2029
|
+
}
|
|
2030
|
+
return {
|
|
2031
|
+
signature: value["signature"]
|
|
2032
|
+
};
|
|
2033
|
+
}
|
|
2034
|
+
__name(CreateRawSignatureResponseToJSONTyped, "CreateRawSignatureResponseToJSONTyped");
|
|
2035
|
+
|
|
2036
|
+
// src/models/SignInput.ts
|
|
2037
|
+
var SignInputModeEnum = {
|
|
2038
|
+
Detached: "DETACHED",
|
|
2039
|
+
Attached: "ATTACHED"
|
|
2040
|
+
};
|
|
2041
|
+
function instanceOfSignInput(value) {
|
|
2042
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
2043
|
+
return true;
|
|
2044
|
+
}
|
|
2045
|
+
__name(instanceOfSignInput, "instanceOfSignInput");
|
|
2046
|
+
function SignInputFromJSON(json) {
|
|
2047
|
+
return SignInputFromJSONTyped(json, false);
|
|
2048
|
+
}
|
|
2049
|
+
__name(SignInputFromJSON, "SignInputFromJSON");
|
|
2050
|
+
function SignInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
2051
|
+
if (json == null) {
|
|
2052
|
+
return json;
|
|
2053
|
+
}
|
|
2054
|
+
return {
|
|
2055
|
+
data: json["data"],
|
|
2056
|
+
mode: json["mode"] == null ? void 0 : json["mode"],
|
|
2057
|
+
metadata: json["metadata"] == null ? void 0 : json["metadata"]
|
|
2058
|
+
};
|
|
2059
|
+
}
|
|
2060
|
+
__name(SignInputFromJSONTyped, "SignInputFromJSONTyped");
|
|
2061
|
+
function SignInputToJSON(json) {
|
|
2062
|
+
return SignInputToJSONTyped(json, false);
|
|
2063
|
+
}
|
|
2064
|
+
__name(SignInputToJSON, "SignInputToJSON");
|
|
2065
|
+
function SignInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2066
|
+
if (value == null) {
|
|
2067
|
+
return value;
|
|
2068
|
+
}
|
|
2069
|
+
return {
|
|
2070
|
+
data: value["data"],
|
|
2071
|
+
mode: value["mode"],
|
|
2072
|
+
metadata: value["metadata"]
|
|
2073
|
+
};
|
|
2074
|
+
}
|
|
2075
|
+
__name(SignInputToJSONTyped, "SignInputToJSONTyped");
|
|
2076
|
+
|
|
2077
|
+
// src/models/CreateSimpleSignature.ts
|
|
2078
|
+
function instanceOfCreateSimpleSignature(value) {
|
|
2079
|
+
if (!("signInput" in value) || value["signInput"] === void 0) return false;
|
|
2080
|
+
if (!("keyInfo" in value) || value["keyInfo"] === void 0) return false;
|
|
2081
|
+
return true;
|
|
2082
|
+
}
|
|
2083
|
+
__name(instanceOfCreateSimpleSignature, "instanceOfCreateSimpleSignature");
|
|
2084
|
+
function CreateSimpleSignatureFromJSON(json) {
|
|
2085
|
+
return CreateSimpleSignatureFromJSONTyped(json, false);
|
|
2086
|
+
}
|
|
2087
|
+
__name(CreateSimpleSignatureFromJSON, "CreateSimpleSignatureFromJSON");
|
|
2088
|
+
function CreateSimpleSignatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
2089
|
+
if (json == null) {
|
|
2090
|
+
return json;
|
|
2091
|
+
}
|
|
2092
|
+
return {
|
|
2093
|
+
signInput: SignInputFromJSON(json["signInput"]),
|
|
2094
|
+
keyInfo: KeyInfoFromJSON(json["keyInfo"]),
|
|
2095
|
+
signatureAlgorithm: json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"])
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
__name(CreateSimpleSignatureFromJSONTyped, "CreateSimpleSignatureFromJSONTyped");
|
|
2099
|
+
function CreateSimpleSignatureToJSON(json) {
|
|
2100
|
+
return CreateSimpleSignatureToJSONTyped(json, false);
|
|
2101
|
+
}
|
|
2102
|
+
__name(CreateSimpleSignatureToJSON, "CreateSimpleSignatureToJSON");
|
|
2103
|
+
function CreateSimpleSignatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2104
|
+
if (value == null) {
|
|
2105
|
+
return value;
|
|
2106
|
+
}
|
|
2107
|
+
return {
|
|
2108
|
+
signInput: SignInputToJSON(value["signInput"]),
|
|
2109
|
+
keyInfo: KeyInfoToJSON(value["keyInfo"]),
|
|
2110
|
+
signatureAlgorithm: SignatureAlgorithmToJSON(value["signatureAlgorithm"])
|
|
2111
|
+
};
|
|
2112
|
+
}
|
|
2113
|
+
__name(CreateSimpleSignatureToJSONTyped, "CreateSimpleSignatureToJSONTyped");
|
|
2114
|
+
|
|
2115
|
+
// src/models/CryptoAlg.ts
|
|
2116
|
+
var CryptoAlg = {
|
|
2117
|
+
Ed25519: "ED25519",
|
|
2118
|
+
Ecdsa: "ECDSA",
|
|
2119
|
+
Hmac: "HMAC",
|
|
2120
|
+
Rsa: "RSA"
|
|
2121
|
+
};
|
|
2122
|
+
function instanceOfCryptoAlg(value) {
|
|
2123
|
+
for (const key in CryptoAlg) {
|
|
2124
|
+
if (Object.prototype.hasOwnProperty.call(CryptoAlg, key)) {
|
|
2125
|
+
if (CryptoAlg[key] === value) {
|
|
2126
|
+
return true;
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
return false;
|
|
2131
|
+
}
|
|
2132
|
+
__name(instanceOfCryptoAlg, "instanceOfCryptoAlg");
|
|
2133
|
+
function CryptoAlgFromJSON(json) {
|
|
2134
|
+
return CryptoAlgFromJSONTyped(json, false);
|
|
2135
|
+
}
|
|
2136
|
+
__name(CryptoAlgFromJSON, "CryptoAlgFromJSON");
|
|
2137
|
+
function CryptoAlgFromJSONTyped(json, ignoreDiscriminator) {
|
|
2138
|
+
return json;
|
|
2139
|
+
}
|
|
2140
|
+
__name(CryptoAlgFromJSONTyped, "CryptoAlgFromJSONTyped");
|
|
2141
|
+
function CryptoAlgToJSON(value) {
|
|
2142
|
+
return value;
|
|
2143
|
+
}
|
|
2144
|
+
__name(CryptoAlgToJSON, "CryptoAlgToJSON");
|
|
2145
|
+
function CryptoAlgToJSONTyped(value, ignoreDiscriminator) {
|
|
2146
|
+
return value;
|
|
2147
|
+
}
|
|
2148
|
+
__name(CryptoAlgToJSONTyped, "CryptoAlgToJSONTyped");
|
|
2149
|
+
|
|
2150
|
+
// src/models/DigestAlg.ts
|
|
2151
|
+
var DigestAlg = {
|
|
2152
|
+
None: "NONE",
|
|
2153
|
+
Sha256: "SHA256",
|
|
2154
|
+
Sha384: "SHA384",
|
|
2155
|
+
Sha512: "SHA512",
|
|
2156
|
+
Sha3256: "SHA3_256",
|
|
2157
|
+
Sha3384: "SHA3_384",
|
|
2158
|
+
Sha3512: "SHA3_512"
|
|
2159
|
+
};
|
|
2160
|
+
function instanceOfDigestAlg(value) {
|
|
2161
|
+
for (const key in DigestAlg) {
|
|
2162
|
+
if (Object.prototype.hasOwnProperty.call(DigestAlg, key)) {
|
|
2163
|
+
if (DigestAlg[key] === value) {
|
|
2164
|
+
return true;
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
return false;
|
|
2169
|
+
}
|
|
2170
|
+
__name(instanceOfDigestAlg, "instanceOfDigestAlg");
|
|
2171
|
+
function DigestAlgFromJSON(json) {
|
|
2172
|
+
return DigestAlgFromJSONTyped(json, false);
|
|
2173
|
+
}
|
|
2174
|
+
__name(DigestAlgFromJSON, "DigestAlgFromJSON");
|
|
2175
|
+
function DigestAlgFromJSONTyped(json, ignoreDiscriminator) {
|
|
2176
|
+
return json;
|
|
2177
|
+
}
|
|
2178
|
+
__name(DigestAlgFromJSONTyped, "DigestAlgFromJSONTyped");
|
|
2179
|
+
function DigestAlgToJSON(value) {
|
|
2180
|
+
return value;
|
|
2181
|
+
}
|
|
2182
|
+
__name(DigestAlgToJSON, "DigestAlgToJSON");
|
|
2183
|
+
function DigestAlgToJSONTyped(value, ignoreDiscriminator) {
|
|
2184
|
+
return value;
|
|
2185
|
+
}
|
|
2186
|
+
__name(DigestAlgToJSONTyped, "DigestAlgToJSONTyped");
|
|
2187
|
+
|
|
2188
|
+
// src/models/ErrorResponse.ts
|
|
2189
|
+
function instanceOfErrorResponse(value) {
|
|
2190
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
2191
|
+
if (!("message" in value) || value["message"] === void 0) return false;
|
|
2192
|
+
return true;
|
|
2193
|
+
}
|
|
2194
|
+
__name(instanceOfErrorResponse, "instanceOfErrorResponse");
|
|
2195
|
+
function ErrorResponseFromJSON(json) {
|
|
2196
|
+
return ErrorResponseFromJSONTyped(json, false);
|
|
2197
|
+
}
|
|
2198
|
+
__name(ErrorResponseFromJSON, "ErrorResponseFromJSON");
|
|
2199
|
+
function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2200
|
+
if (json == null) {
|
|
2201
|
+
return json;
|
|
2202
|
+
}
|
|
2203
|
+
return {
|
|
2204
|
+
code: json["code"],
|
|
2205
|
+
message: json["message"],
|
|
2206
|
+
details: json["details"] == null ? void 0 : json["details"]
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
__name(ErrorResponseFromJSONTyped, "ErrorResponseFromJSONTyped");
|
|
2210
|
+
function ErrorResponseToJSON(json) {
|
|
2211
|
+
return ErrorResponseToJSONTyped(json, false);
|
|
2212
|
+
}
|
|
2213
|
+
__name(ErrorResponseToJSON, "ErrorResponseToJSON");
|
|
2214
|
+
function ErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2215
|
+
if (value == null) {
|
|
2216
|
+
return value;
|
|
2217
|
+
}
|
|
2218
|
+
return {
|
|
2219
|
+
code: value["code"],
|
|
2220
|
+
message: value["message"],
|
|
2221
|
+
details: value["details"]
|
|
2222
|
+
};
|
|
2223
|
+
}
|
|
2224
|
+
__name(ErrorResponseToJSONTyped, "ErrorResponseToJSONTyped");
|
|
1300
2225
|
|
|
1301
2226
|
// src/models/GenerateKey.ts
|
|
2227
|
+
function instanceOfGenerateKey(value) {
|
|
2228
|
+
return true;
|
|
2229
|
+
}
|
|
2230
|
+
__name(instanceOfGenerateKey, "instanceOfGenerateKey");
|
|
2231
|
+
function GenerateKeyFromJSON(json) {
|
|
2232
|
+
return GenerateKeyFromJSONTyped(json, false);
|
|
2233
|
+
}
|
|
2234
|
+
__name(GenerateKeyFromJSON, "GenerateKeyFromJSON");
|
|
2235
|
+
function GenerateKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
2236
|
+
if (json == null) {
|
|
2237
|
+
return json;
|
|
2238
|
+
}
|
|
2239
|
+
return {
|
|
2240
|
+
alias: json["alias"] == null ? void 0 : json["alias"],
|
|
2241
|
+
use: json["use"] == null ? void 0 : JwkUseFromJSON(json["use"]),
|
|
2242
|
+
keyOperations: json["keyOperations"] == null ? void 0 : json["keyOperations"].map(KeyOperationsFromJSON),
|
|
2243
|
+
alg: json["alg"] == null ? void 0 : SignatureAlgorithmFromJSON(json["alg"])
|
|
2244
|
+
};
|
|
2245
|
+
}
|
|
2246
|
+
__name(GenerateKeyFromJSONTyped, "GenerateKeyFromJSONTyped");
|
|
2247
|
+
function GenerateKeyToJSON(json) {
|
|
2248
|
+
return GenerateKeyToJSONTyped(json, false);
|
|
2249
|
+
}
|
|
2250
|
+
__name(GenerateKeyToJSON, "GenerateKeyToJSON");
|
|
1302
2251
|
function GenerateKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1303
2252
|
if (value == null) {
|
|
1304
2253
|
return value;
|
|
@@ -1313,6 +2262,31 @@ function GenerateKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1313
2262
|
__name(GenerateKeyToJSONTyped, "GenerateKeyToJSONTyped");
|
|
1314
2263
|
|
|
1315
2264
|
// src/models/GenerateKeyGlobal.ts
|
|
2265
|
+
function instanceOfGenerateKeyGlobal(value) {
|
|
2266
|
+
return true;
|
|
2267
|
+
}
|
|
2268
|
+
__name(instanceOfGenerateKeyGlobal, "instanceOfGenerateKeyGlobal");
|
|
2269
|
+
function GenerateKeyGlobalFromJSON(json) {
|
|
2270
|
+
return GenerateKeyGlobalFromJSONTyped(json, false);
|
|
2271
|
+
}
|
|
2272
|
+
__name(GenerateKeyGlobalFromJSON, "GenerateKeyGlobalFromJSON");
|
|
2273
|
+
function GenerateKeyGlobalFromJSONTyped(json, ignoreDiscriminator) {
|
|
2274
|
+
if (json == null) {
|
|
2275
|
+
return json;
|
|
2276
|
+
}
|
|
2277
|
+
return {
|
|
2278
|
+
alias: json["alias"] == null ? void 0 : json["alias"],
|
|
2279
|
+
use: json["use"] == null ? void 0 : JwkUseFromJSON(json["use"]),
|
|
2280
|
+
keyOperations: json["keyOperations"] == null ? void 0 : json["keyOperations"].map(KeyOperationsFromJSON),
|
|
2281
|
+
alg: json["alg"] == null ? void 0 : SignatureAlgorithmFromJSON(json["alg"]),
|
|
2282
|
+
providerId: json["providerId"] == null ? void 0 : json["providerId"]
|
|
2283
|
+
};
|
|
2284
|
+
}
|
|
2285
|
+
__name(GenerateKeyGlobalFromJSONTyped, "GenerateKeyGlobalFromJSONTyped");
|
|
2286
|
+
function GenerateKeyGlobalToJSON(json) {
|
|
2287
|
+
return GenerateKeyGlobalToJSONTyped(json, false);
|
|
2288
|
+
}
|
|
2289
|
+
__name(GenerateKeyGlobalToJSON, "GenerateKeyGlobalToJSON");
|
|
1316
2290
|
function GenerateKeyGlobalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1317
2291
|
if (value == null) {
|
|
1318
2292
|
return value;
|
|
@@ -1328,6 +2302,11 @@ function GenerateKeyGlobalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1328
2302
|
__name(GenerateKeyGlobalToJSONTyped, "GenerateKeyGlobalToJSONTyped");
|
|
1329
2303
|
|
|
1330
2304
|
// src/models/JoseKeyPair.ts
|
|
2305
|
+
function instanceOfJoseKeyPair(value) {
|
|
2306
|
+
if (!("publicJwk" in value) || value["publicJwk"] === void 0) return false;
|
|
2307
|
+
return true;
|
|
2308
|
+
}
|
|
2309
|
+
__name(instanceOfJoseKeyPair, "instanceOfJoseKeyPair");
|
|
1331
2310
|
function JoseKeyPairFromJSON(json) {
|
|
1332
2311
|
return JoseKeyPairFromJSONTyped(json, false);
|
|
1333
2312
|
}
|
|
@@ -1342,47 +2321,203 @@ function JoseKeyPairFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1342
2321
|
};
|
|
1343
2322
|
}
|
|
1344
2323
|
__name(JoseKeyPairFromJSONTyped, "JoseKeyPairFromJSONTyped");
|
|
2324
|
+
function JoseKeyPairToJSON(json) {
|
|
2325
|
+
return JoseKeyPairToJSONTyped(json, false);
|
|
2326
|
+
}
|
|
2327
|
+
__name(JoseKeyPairToJSON, "JoseKeyPairToJSON");
|
|
2328
|
+
function JoseKeyPairToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2329
|
+
if (value == null) {
|
|
2330
|
+
return value;
|
|
2331
|
+
}
|
|
2332
|
+
return {
|
|
2333
|
+
privateJwk: JwkToJSON(value["privateJwk"]),
|
|
2334
|
+
publicJwk: JwkToJSON(value["publicJwk"])
|
|
2335
|
+
};
|
|
2336
|
+
}
|
|
2337
|
+
__name(JoseKeyPairToJSONTyped, "JoseKeyPairToJSONTyped");
|
|
1345
2338
|
|
|
1346
2339
|
// src/models/ManagedKeyPair.ts
|
|
2340
|
+
function instanceOfManagedKeyPair(value) {
|
|
2341
|
+
if (!("providerId" in value) || value["providerId"] === void 0) return false;
|
|
2342
|
+
if (!("alias" in value) || value["alias"] === void 0) return false;
|
|
2343
|
+
if (!("cose" in value) || value["cose"] === void 0) return false;
|
|
2344
|
+
if (!("jose" in value) || value["jose"] === void 0) return false;
|
|
2345
|
+
return true;
|
|
2346
|
+
}
|
|
2347
|
+
__name(instanceOfManagedKeyPair, "instanceOfManagedKeyPair");
|
|
2348
|
+
function ManagedKeyPairFromJSON(json) {
|
|
2349
|
+
return ManagedKeyPairFromJSONTyped(json, false);
|
|
2350
|
+
}
|
|
2351
|
+
__name(ManagedKeyPairFromJSON, "ManagedKeyPairFromJSON");
|
|
1347
2352
|
function ManagedKeyPairFromJSONTyped(json, ignoreDiscriminator) {
|
|
1348
2353
|
if (json == null) {
|
|
1349
2354
|
return json;
|
|
1350
2355
|
}
|
|
1351
2356
|
return {
|
|
1352
|
-
kid: json["kid"] == null ? void 0 : json["kid"],
|
|
1353
|
-
providerId: json["providerId"],
|
|
1354
|
-
alias: json["alias"],
|
|
1355
|
-
cose: CoseKeyPairFromJSON(json["cose"]),
|
|
1356
|
-
jose: JoseKeyPairFromJSON(json["jose"])
|
|
2357
|
+
kid: json["kid"] == null ? void 0 : json["kid"],
|
|
2358
|
+
providerId: json["providerId"],
|
|
2359
|
+
alias: json["alias"],
|
|
2360
|
+
cose: CoseKeyPairFromJSON(json["cose"]),
|
|
2361
|
+
jose: JoseKeyPairFromJSON(json["jose"])
|
|
2362
|
+
};
|
|
2363
|
+
}
|
|
2364
|
+
__name(ManagedKeyPairFromJSONTyped, "ManagedKeyPairFromJSONTyped");
|
|
2365
|
+
function ManagedKeyPairToJSON(json) {
|
|
2366
|
+
return ManagedKeyPairToJSONTyped(json, false);
|
|
2367
|
+
}
|
|
2368
|
+
__name(ManagedKeyPairToJSON, "ManagedKeyPairToJSON");
|
|
2369
|
+
function ManagedKeyPairToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2370
|
+
if (value == null) {
|
|
2371
|
+
return value;
|
|
2372
|
+
}
|
|
2373
|
+
return {
|
|
2374
|
+
kid: value["kid"],
|
|
2375
|
+
providerId: value["providerId"],
|
|
2376
|
+
alias: value["alias"],
|
|
2377
|
+
cose: CoseKeyPairToJSON(value["cose"]),
|
|
2378
|
+
jose: JoseKeyPairToJSON(value["jose"])
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
__name(ManagedKeyPairToJSONTyped, "ManagedKeyPairToJSONTyped");
|
|
2382
|
+
|
|
2383
|
+
// src/models/GenerateKeyResponse.ts
|
|
2384
|
+
function instanceOfGenerateKeyResponse(value) {
|
|
2385
|
+
if (!("keyPair" in value) || value["keyPair"] === void 0) return false;
|
|
2386
|
+
return true;
|
|
2387
|
+
}
|
|
2388
|
+
__name(instanceOfGenerateKeyResponse, "instanceOfGenerateKeyResponse");
|
|
2389
|
+
function GenerateKeyResponseFromJSON(json) {
|
|
2390
|
+
return GenerateKeyResponseFromJSONTyped(json, false);
|
|
2391
|
+
}
|
|
2392
|
+
__name(GenerateKeyResponseFromJSON, "GenerateKeyResponseFromJSON");
|
|
2393
|
+
function GenerateKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2394
|
+
if (json == null) {
|
|
2395
|
+
return json;
|
|
2396
|
+
}
|
|
2397
|
+
return {
|
|
2398
|
+
keyPair: ManagedKeyPairFromJSON(json["keyPair"])
|
|
2399
|
+
};
|
|
2400
|
+
}
|
|
2401
|
+
__name(GenerateKeyResponseFromJSONTyped, "GenerateKeyResponseFromJSONTyped");
|
|
2402
|
+
function GenerateKeyResponseToJSON(json) {
|
|
2403
|
+
return GenerateKeyResponseToJSONTyped(json, false);
|
|
2404
|
+
}
|
|
2405
|
+
__name(GenerateKeyResponseToJSON, "GenerateKeyResponseToJSON");
|
|
2406
|
+
function GenerateKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2407
|
+
if (value == null) {
|
|
2408
|
+
return value;
|
|
2409
|
+
}
|
|
2410
|
+
return {
|
|
2411
|
+
keyPair: ManagedKeyPairToJSON(value["keyPair"])
|
|
2412
|
+
};
|
|
2413
|
+
}
|
|
2414
|
+
__name(GenerateKeyResponseToJSONTyped, "GenerateKeyResponseToJSONTyped");
|
|
2415
|
+
|
|
2416
|
+
// src/models/ManagedKeyInfo.ts
|
|
2417
|
+
function instanceOfManagedKeyInfo(value) {
|
|
2418
|
+
if (!("key" in value) || value["key"] === void 0) return false;
|
|
2419
|
+
if (!("alias" in value) || value["alias"] === void 0) return false;
|
|
2420
|
+
if (!("providerId" in value) || value["providerId"] === void 0) return false;
|
|
2421
|
+
return true;
|
|
2422
|
+
}
|
|
2423
|
+
__name(instanceOfManagedKeyInfo, "instanceOfManagedKeyInfo");
|
|
2424
|
+
function ManagedKeyInfoFromJSON(json) {
|
|
2425
|
+
return ManagedKeyInfoFromJSONTyped(json, false);
|
|
2426
|
+
}
|
|
2427
|
+
__name(ManagedKeyInfoFromJSON, "ManagedKeyInfoFromJSON");
|
|
2428
|
+
function ManagedKeyInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2429
|
+
if (json == null) {
|
|
2430
|
+
return json;
|
|
2431
|
+
}
|
|
2432
|
+
return {
|
|
2433
|
+
kid: json["kid"] == null ? void 0 : json["kid"],
|
|
2434
|
+
key: JwkFromJSON(json["key"]),
|
|
2435
|
+
signatureAlgorithm: json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
|
|
2436
|
+
keyVisibility: json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
|
|
2437
|
+
x5c: json["x5c"] == null ? void 0 : json["x5c"],
|
|
2438
|
+
alias: json["alias"],
|
|
2439
|
+
providerId: json["providerId"],
|
|
2440
|
+
keyType: json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
|
|
2441
|
+
keyEncoding: json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
|
|
2442
|
+
opts: json["opts"] == null ? void 0 : json["opts"]
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
__name(ManagedKeyInfoFromJSONTyped, "ManagedKeyInfoFromJSONTyped");
|
|
2446
|
+
function ManagedKeyInfoToJSON(json) {
|
|
2447
|
+
return ManagedKeyInfoToJSONTyped(json, false);
|
|
2448
|
+
}
|
|
2449
|
+
__name(ManagedKeyInfoToJSON, "ManagedKeyInfoToJSON");
|
|
2450
|
+
function ManagedKeyInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2451
|
+
if (value == null) {
|
|
2452
|
+
return value;
|
|
2453
|
+
}
|
|
2454
|
+
return {
|
|
2455
|
+
kid: value["kid"],
|
|
2456
|
+
key: JwkToJSON(value["key"]),
|
|
2457
|
+
signatureAlgorithm: SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
|
|
2458
|
+
keyVisibility: KeyVisibilityToJSON(value["keyVisibility"]),
|
|
2459
|
+
x5c: value["x5c"],
|
|
2460
|
+
alias: value["alias"],
|
|
2461
|
+
providerId: value["providerId"],
|
|
2462
|
+
keyType: KeyTypeToJSON(value["keyType"]),
|
|
2463
|
+
keyEncoding: KeyEncodingToJSON(value["keyEncoding"]),
|
|
2464
|
+
opts: value["opts"]
|
|
2465
|
+
};
|
|
2466
|
+
}
|
|
2467
|
+
__name(ManagedKeyInfoToJSONTyped, "ManagedKeyInfoToJSONTyped");
|
|
2468
|
+
|
|
2469
|
+
// src/models/GetKeyResponse.ts
|
|
2470
|
+
function instanceOfGetKeyResponse(value) {
|
|
2471
|
+
if (!("keyInfo" in value) || value["keyInfo"] === void 0) return false;
|
|
2472
|
+
return true;
|
|
2473
|
+
}
|
|
2474
|
+
__name(instanceOfGetKeyResponse, "instanceOfGetKeyResponse");
|
|
2475
|
+
function GetKeyResponseFromJSON(json) {
|
|
2476
|
+
return GetKeyResponseFromJSONTyped(json, false);
|
|
2477
|
+
}
|
|
2478
|
+
__name(GetKeyResponseFromJSON, "GetKeyResponseFromJSON");
|
|
2479
|
+
function GetKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2480
|
+
if (json == null) {
|
|
2481
|
+
return json;
|
|
2482
|
+
}
|
|
2483
|
+
return {
|
|
2484
|
+
keyInfo: ManagedKeyInfoFromJSON(json["keyInfo"])
|
|
1357
2485
|
};
|
|
1358
2486
|
}
|
|
1359
|
-
__name(
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
function ManagedKeyInfoFromJSON(json) {
|
|
1363
|
-
return ManagedKeyInfoFromJSONTyped(json, false);
|
|
2487
|
+
__name(GetKeyResponseFromJSONTyped, "GetKeyResponseFromJSONTyped");
|
|
2488
|
+
function GetKeyResponseToJSON(json) {
|
|
2489
|
+
return GetKeyResponseToJSONTyped(json, false);
|
|
1364
2490
|
}
|
|
1365
|
-
__name(
|
|
1366
|
-
function
|
|
1367
|
-
if (
|
|
1368
|
-
return
|
|
2491
|
+
__name(GetKeyResponseToJSON, "GetKeyResponseToJSON");
|
|
2492
|
+
function GetKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2493
|
+
if (value == null) {
|
|
2494
|
+
return value;
|
|
1369
2495
|
}
|
|
1370
2496
|
return {
|
|
1371
|
-
|
|
1372
|
-
key: JwkFromJSON(json["key"]),
|
|
1373
|
-
signatureAlgorithm: json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
|
|
1374
|
-
keyVisibility: json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
|
|
1375
|
-
x5c: json["x5c"] == null ? void 0 : json["x5c"],
|
|
1376
|
-
alias: json["alias"],
|
|
1377
|
-
providerId: json["providerId"],
|
|
1378
|
-
keyType: json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
|
|
1379
|
-
keyEncoding: json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
|
|
1380
|
-
opts: json["opts"] == null ? void 0 : json["opts"]
|
|
2497
|
+
keyInfo: ManagedKeyInfoToJSON(value["keyInfo"])
|
|
1381
2498
|
};
|
|
1382
2499
|
}
|
|
1383
|
-
__name(
|
|
2500
|
+
__name(GetKeyResponseToJSONTyped, "GetKeyResponseToJSONTyped");
|
|
1384
2501
|
|
|
1385
2502
|
// src/models/IdentifierMethod.ts
|
|
2503
|
+
var IdentifierMethod = {
|
|
2504
|
+
Jwk: "JWK",
|
|
2505
|
+
Kid: "KID",
|
|
2506
|
+
CoseKey: "COSE_KEY",
|
|
2507
|
+
X5C: "X5C",
|
|
2508
|
+
Did: "DID"
|
|
2509
|
+
};
|
|
2510
|
+
function instanceOfIdentifierMethod(value) {
|
|
2511
|
+
for (const key in IdentifierMethod) {
|
|
2512
|
+
if (Object.prototype.hasOwnProperty.call(IdentifierMethod, key)) {
|
|
2513
|
+
if (IdentifierMethod[key] === value) {
|
|
2514
|
+
return true;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
return false;
|
|
2519
|
+
}
|
|
2520
|
+
__name(instanceOfIdentifierMethod, "instanceOfIdentifierMethod");
|
|
1386
2521
|
function IdentifierMethodFromJSON(json) {
|
|
1387
2522
|
return IdentifierMethodFromJSONTyped(json, false);
|
|
1388
2523
|
}
|
|
@@ -1395,8 +2530,18 @@ function IdentifierMethodToJSON(value) {
|
|
|
1395
2530
|
return value;
|
|
1396
2531
|
}
|
|
1397
2532
|
__name(IdentifierMethodToJSON, "IdentifierMethodToJSON");
|
|
2533
|
+
function IdentifierMethodToJSONTyped(value, ignoreDiscriminator) {
|
|
2534
|
+
return value;
|
|
2535
|
+
}
|
|
2536
|
+
__name(IdentifierMethodToJSONTyped, "IdentifierMethodToJSONTyped");
|
|
1398
2537
|
|
|
1399
2538
|
// src/models/KeyProvider.ts
|
|
2539
|
+
function instanceOfKeyProvider(value) {
|
|
2540
|
+
if (!("providerId" in value) || value["providerId"] === void 0) return false;
|
|
2541
|
+
if (!("type" in value) || value["type"] === void 0) return false;
|
|
2542
|
+
return true;
|
|
2543
|
+
}
|
|
2544
|
+
__name(instanceOfKeyProvider, "instanceOfKeyProvider");
|
|
1400
2545
|
function KeyProviderFromJSON(json) {
|
|
1401
2546
|
return KeyProviderFromJSONTyped(json, false);
|
|
1402
2547
|
}
|
|
@@ -1411,8 +2556,32 @@ function KeyProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1411
2556
|
};
|
|
1412
2557
|
}
|
|
1413
2558
|
__name(KeyProviderFromJSONTyped, "KeyProviderFromJSONTyped");
|
|
2559
|
+
function KeyProviderToJSON(json) {
|
|
2560
|
+
return KeyProviderToJSONTyped(json, false);
|
|
2561
|
+
}
|
|
2562
|
+
__name(KeyProviderToJSON, "KeyProviderToJSON");
|
|
2563
|
+
function KeyProviderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2564
|
+
if (value == null) {
|
|
2565
|
+
return value;
|
|
2566
|
+
}
|
|
2567
|
+
return {
|
|
2568
|
+
providerId: value["providerId"],
|
|
2569
|
+
type: KeyProviderTypeToJSON(value["type"])
|
|
2570
|
+
};
|
|
2571
|
+
}
|
|
2572
|
+
__name(KeyProviderToJSONTyped, "KeyProviderToJSONTyped");
|
|
1414
2573
|
|
|
1415
2574
|
// src/models/KeyProviderResponse.ts
|
|
2575
|
+
function instanceOfKeyProviderResponse(value) {
|
|
2576
|
+
if (!("providerId" in value) || value["providerId"] === void 0) return false;
|
|
2577
|
+
if (!("type" in value) || value["type"] === void 0) return false;
|
|
2578
|
+
return true;
|
|
2579
|
+
}
|
|
2580
|
+
__name(instanceOfKeyProviderResponse, "instanceOfKeyProviderResponse");
|
|
2581
|
+
function KeyProviderResponseFromJSON(json) {
|
|
2582
|
+
return KeyProviderResponseFromJSONTyped(json, false);
|
|
2583
|
+
}
|
|
2584
|
+
__name(KeyProviderResponseFromJSON, "KeyProviderResponseFromJSON");
|
|
1416
2585
|
function KeyProviderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1417
2586
|
if (json == null) {
|
|
1418
2587
|
return json;
|
|
@@ -1423,8 +2592,68 @@ function KeyProviderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1423
2592
|
};
|
|
1424
2593
|
}
|
|
1425
2594
|
__name(KeyProviderResponseFromJSONTyped, "KeyProviderResponseFromJSONTyped");
|
|
2595
|
+
function KeyProviderResponseToJSON(json) {
|
|
2596
|
+
return KeyProviderResponseToJSONTyped(json, false);
|
|
2597
|
+
}
|
|
2598
|
+
__name(KeyProviderResponseToJSON, "KeyProviderResponseToJSON");
|
|
2599
|
+
function KeyProviderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2600
|
+
if (value == null) {
|
|
2601
|
+
return value;
|
|
2602
|
+
}
|
|
2603
|
+
return {
|
|
2604
|
+
providerId: value["providerId"],
|
|
2605
|
+
type: KeyProviderTypeToJSON(value["type"])
|
|
2606
|
+
};
|
|
2607
|
+
}
|
|
2608
|
+
__name(KeyProviderResponseToJSONTyped, "KeyProviderResponseToJSONTyped");
|
|
2609
|
+
|
|
2610
|
+
// src/models/KeyResolver.ts
|
|
2611
|
+
function instanceOfKeyResolver(value) {
|
|
2612
|
+
if (!("resolverId" in value) || value["resolverId"] === void 0) return false;
|
|
2613
|
+
return true;
|
|
2614
|
+
}
|
|
2615
|
+
__name(instanceOfKeyResolver, "instanceOfKeyResolver");
|
|
2616
|
+
function KeyResolverFromJSON(json) {
|
|
2617
|
+
return KeyResolverFromJSONTyped(json, false);
|
|
2618
|
+
}
|
|
2619
|
+
__name(KeyResolverFromJSON, "KeyResolverFromJSON");
|
|
2620
|
+
function KeyResolverFromJSONTyped(json, ignoreDiscriminator) {
|
|
2621
|
+
if (json == null) {
|
|
2622
|
+
return json;
|
|
2623
|
+
}
|
|
2624
|
+
return {
|
|
2625
|
+
resolverId: json["resolverId"],
|
|
2626
|
+
supportedIdentifierMethods: json["supportedIdentifierMethods"] == null ? void 0 : json["supportedIdentifierMethods"].map(IdentifierMethodFromJSON),
|
|
2627
|
+
supportedKeyTypes: json["supportedKeyTypes"] == null ? void 0 : json["supportedKeyTypes"].map(KeyTypeFromJSON)
|
|
2628
|
+
};
|
|
2629
|
+
}
|
|
2630
|
+
__name(KeyResolverFromJSONTyped, "KeyResolverFromJSONTyped");
|
|
2631
|
+
function KeyResolverToJSON(json) {
|
|
2632
|
+
return KeyResolverToJSONTyped(json, false);
|
|
2633
|
+
}
|
|
2634
|
+
__name(KeyResolverToJSON, "KeyResolverToJSON");
|
|
2635
|
+
function KeyResolverToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2636
|
+
if (value == null) {
|
|
2637
|
+
return value;
|
|
2638
|
+
}
|
|
2639
|
+
return {
|
|
2640
|
+
resolverId: value["resolverId"],
|
|
2641
|
+
supportedIdentifierMethods: value["supportedIdentifierMethods"] == null ? void 0 : value["supportedIdentifierMethods"].map(IdentifierMethodToJSON),
|
|
2642
|
+
supportedKeyTypes: value["supportedKeyTypes"] == null ? void 0 : value["supportedKeyTypes"].map(KeyTypeToJSON)
|
|
2643
|
+
};
|
|
2644
|
+
}
|
|
2645
|
+
__name(KeyResolverToJSONTyped, "KeyResolverToJSONTyped");
|
|
1426
2646
|
|
|
1427
2647
|
// src/models/ListKeyProvidersResponse.ts
|
|
2648
|
+
function instanceOfListKeyProvidersResponse(value) {
|
|
2649
|
+
if (!("providers" in value) || value["providers"] === void 0) return false;
|
|
2650
|
+
return true;
|
|
2651
|
+
}
|
|
2652
|
+
__name(instanceOfListKeyProvidersResponse, "instanceOfListKeyProvidersResponse");
|
|
2653
|
+
function ListKeyProvidersResponseFromJSON(json) {
|
|
2654
|
+
return ListKeyProvidersResponseFromJSONTyped(json, false);
|
|
2655
|
+
}
|
|
2656
|
+
__name(ListKeyProvidersResponseFromJSON, "ListKeyProvidersResponseFromJSON");
|
|
1428
2657
|
function ListKeyProvidersResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1429
2658
|
if (json == null) {
|
|
1430
2659
|
return json;
|
|
@@ -1434,8 +2663,30 @@ function ListKeyProvidersResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1434
2663
|
};
|
|
1435
2664
|
}
|
|
1436
2665
|
__name(ListKeyProvidersResponseFromJSONTyped, "ListKeyProvidersResponseFromJSONTyped");
|
|
2666
|
+
function ListKeyProvidersResponseToJSON(json) {
|
|
2667
|
+
return ListKeyProvidersResponseToJSONTyped(json, false);
|
|
2668
|
+
}
|
|
2669
|
+
__name(ListKeyProvidersResponseToJSON, "ListKeyProvidersResponseToJSON");
|
|
2670
|
+
function ListKeyProvidersResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2671
|
+
if (value == null) {
|
|
2672
|
+
return value;
|
|
2673
|
+
}
|
|
2674
|
+
return {
|
|
2675
|
+
providers: value["providers"].map(KeyProviderToJSON)
|
|
2676
|
+
};
|
|
2677
|
+
}
|
|
2678
|
+
__name(ListKeyProvidersResponseToJSONTyped, "ListKeyProvidersResponseToJSONTyped");
|
|
1437
2679
|
|
|
1438
2680
|
// src/models/ListKeysResponse.ts
|
|
2681
|
+
function instanceOfListKeysResponse(value) {
|
|
2682
|
+
if (!("keyInfos" in value) || value["keyInfos"] === void 0) return false;
|
|
2683
|
+
return true;
|
|
2684
|
+
}
|
|
2685
|
+
__name(instanceOfListKeysResponse, "instanceOfListKeysResponse");
|
|
2686
|
+
function ListKeysResponseFromJSON(json) {
|
|
2687
|
+
return ListKeysResponseFromJSONTyped(json, false);
|
|
2688
|
+
}
|
|
2689
|
+
__name(ListKeysResponseFromJSON, "ListKeysResponseFromJSON");
|
|
1439
2690
|
function ListKeysResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1440
2691
|
if (json == null) {
|
|
1441
2692
|
return json;
|
|
@@ -1445,8 +2696,26 @@ function ListKeysResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1445
2696
|
};
|
|
1446
2697
|
}
|
|
1447
2698
|
__name(ListKeysResponseFromJSONTyped, "ListKeysResponseFromJSONTyped");
|
|
2699
|
+
function ListKeysResponseToJSON(json) {
|
|
2700
|
+
return ListKeysResponseToJSONTyped(json, false);
|
|
2701
|
+
}
|
|
2702
|
+
__name(ListKeysResponseToJSON, "ListKeysResponseToJSON");
|
|
2703
|
+
function ListKeysResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2704
|
+
if (value == null) {
|
|
2705
|
+
return value;
|
|
2706
|
+
}
|
|
2707
|
+
return {
|
|
2708
|
+
keyInfos: value["keyInfos"].map(ManagedKeyInfoToJSON)
|
|
2709
|
+
};
|
|
2710
|
+
}
|
|
2711
|
+
__name(ListKeysResponseToJSONTyped, "ListKeysResponseToJSONTyped");
|
|
1448
2712
|
|
|
1449
2713
|
// src/models/Resolver.ts
|
|
2714
|
+
function instanceOfResolver(value) {
|
|
2715
|
+
if (!("resolverId" in value) || value["resolverId"] === void 0) return false;
|
|
2716
|
+
return true;
|
|
2717
|
+
}
|
|
2718
|
+
__name(instanceOfResolver, "instanceOfResolver");
|
|
1450
2719
|
function ResolverFromJSON(json) {
|
|
1451
2720
|
return ResolverFromJSONTyped(json, false);
|
|
1452
2721
|
}
|
|
@@ -1462,8 +2731,32 @@ function ResolverFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1462
2731
|
};
|
|
1463
2732
|
}
|
|
1464
2733
|
__name(ResolverFromJSONTyped, "ResolverFromJSONTyped");
|
|
2734
|
+
function ResolverToJSON(json) {
|
|
2735
|
+
return ResolverToJSONTyped(json, false);
|
|
2736
|
+
}
|
|
2737
|
+
__name(ResolverToJSON, "ResolverToJSON");
|
|
2738
|
+
function ResolverToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2739
|
+
if (value == null) {
|
|
2740
|
+
return value;
|
|
2741
|
+
}
|
|
2742
|
+
return {
|
|
2743
|
+
resolverId: value["resolverId"],
|
|
2744
|
+
supportedIdentifierMethods: value["supportedIdentifierMethods"] == null ? void 0 : value["supportedIdentifierMethods"].map(IdentifierMethodToJSON),
|
|
2745
|
+
supportedKeyTypes: value["supportedKeyTypes"] == null ? void 0 : value["supportedKeyTypes"].map(KeyTypeToJSON)
|
|
2746
|
+
};
|
|
2747
|
+
}
|
|
2748
|
+
__name(ResolverToJSONTyped, "ResolverToJSONTyped");
|
|
1465
2749
|
|
|
1466
2750
|
// src/models/ListResolversResponse.ts
|
|
2751
|
+
function instanceOfListResolversResponse(value) {
|
|
2752
|
+
if (!("resolvers" in value) || value["resolvers"] === void 0) return false;
|
|
2753
|
+
return true;
|
|
2754
|
+
}
|
|
2755
|
+
__name(instanceOfListResolversResponse, "instanceOfListResolversResponse");
|
|
2756
|
+
function ListResolversResponseFromJSON(json) {
|
|
2757
|
+
return ListResolversResponseFromJSONTyped(json, false);
|
|
2758
|
+
}
|
|
2759
|
+
__name(ListResolversResponseFromJSON, "ListResolversResponseFromJSON");
|
|
1467
2760
|
function ListResolversResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1468
2761
|
if (json == null) {
|
|
1469
2762
|
return json;
|
|
@@ -1473,8 +2766,118 @@ function ListResolversResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1473
2766
|
};
|
|
1474
2767
|
}
|
|
1475
2768
|
__name(ListResolversResponseFromJSONTyped, "ListResolversResponseFromJSONTyped");
|
|
2769
|
+
function ListResolversResponseToJSON(json) {
|
|
2770
|
+
return ListResolversResponseToJSONTyped(json, false);
|
|
2771
|
+
}
|
|
2772
|
+
__name(ListResolversResponseToJSON, "ListResolversResponseToJSON");
|
|
2773
|
+
function ListResolversResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2774
|
+
if (value == null) {
|
|
2775
|
+
return value;
|
|
2776
|
+
}
|
|
2777
|
+
return {
|
|
2778
|
+
resolvers: value["resolvers"].map(ResolverToJSON)
|
|
2779
|
+
};
|
|
2780
|
+
}
|
|
2781
|
+
__name(ListResolversResponseToJSONTyped, "ListResolversResponseToJSONTyped");
|
|
2782
|
+
|
|
2783
|
+
// src/models/MaskGenFunction.ts
|
|
2784
|
+
var MaskGenFunction = {
|
|
2785
|
+
Mgf1: "MGF1"
|
|
2786
|
+
};
|
|
2787
|
+
function instanceOfMaskGenFunction(value) {
|
|
2788
|
+
for (const key in MaskGenFunction) {
|
|
2789
|
+
if (Object.prototype.hasOwnProperty.call(MaskGenFunction, key)) {
|
|
2790
|
+
if (MaskGenFunction[key] === value) {
|
|
2791
|
+
return true;
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
return false;
|
|
2796
|
+
}
|
|
2797
|
+
__name(instanceOfMaskGenFunction, "instanceOfMaskGenFunction");
|
|
2798
|
+
function MaskGenFunctionFromJSON(json) {
|
|
2799
|
+
return MaskGenFunctionFromJSONTyped(json, false);
|
|
2800
|
+
}
|
|
2801
|
+
__name(MaskGenFunctionFromJSON, "MaskGenFunctionFromJSON");
|
|
2802
|
+
function MaskGenFunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
2803
|
+
return json;
|
|
2804
|
+
}
|
|
2805
|
+
__name(MaskGenFunctionFromJSONTyped, "MaskGenFunctionFromJSONTyped");
|
|
2806
|
+
function MaskGenFunctionToJSON(value) {
|
|
2807
|
+
return value;
|
|
2808
|
+
}
|
|
2809
|
+
__name(MaskGenFunctionToJSON, "MaskGenFunctionToJSON");
|
|
2810
|
+
function MaskGenFunctionToJSONTyped(value, ignoreDiscriminator) {
|
|
2811
|
+
return value;
|
|
2812
|
+
}
|
|
2813
|
+
__name(MaskGenFunctionToJSONTyped, "MaskGenFunctionToJSONTyped");
|
|
2814
|
+
|
|
2815
|
+
// src/models/ProviderCapabilities.ts
|
|
2816
|
+
function instanceOfProviderCapabilities(value) {
|
|
2817
|
+
return true;
|
|
2818
|
+
}
|
|
2819
|
+
__name(instanceOfProviderCapabilities, "instanceOfProviderCapabilities");
|
|
2820
|
+
function ProviderCapabilitiesFromJSON(json) {
|
|
2821
|
+
return ProviderCapabilitiesFromJSONTyped(json, false);
|
|
2822
|
+
}
|
|
2823
|
+
__name(ProviderCapabilitiesFromJSON, "ProviderCapabilitiesFromJSON");
|
|
2824
|
+
function ProviderCapabilitiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
2825
|
+
if (json == null) {
|
|
2826
|
+
return json;
|
|
2827
|
+
}
|
|
2828
|
+
return {
|
|
2829
|
+
keyTypes: json["keyTypes"] == null ? void 0 : json["keyTypes"].map(KeyTypeFromJSON),
|
|
2830
|
+
signatureAlgorithms: json["signatureAlgorithms"] == null ? void 0 : json["signatureAlgorithms"].map(SignatureAlgorithmFromJSON),
|
|
2831
|
+
digests: json["digests"] == null ? void 0 : json["digests"].map(DigestAlgFromJSON),
|
|
2832
|
+
curves: json["curves"] == null ? void 0 : json["curves"].map(CurveFromJSON),
|
|
2833
|
+
keyOperations: json["keyOperations"] == null ? void 0 : json["keyOperations"].map(KeyOperationsFromJSON)
|
|
2834
|
+
};
|
|
2835
|
+
}
|
|
2836
|
+
__name(ProviderCapabilitiesFromJSONTyped, "ProviderCapabilitiesFromJSONTyped");
|
|
2837
|
+
function ProviderCapabilitiesToJSON(json) {
|
|
2838
|
+
return ProviderCapabilitiesToJSONTyped(json, false);
|
|
2839
|
+
}
|
|
2840
|
+
__name(ProviderCapabilitiesToJSON, "ProviderCapabilitiesToJSON");
|
|
2841
|
+
function ProviderCapabilitiesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2842
|
+
if (value == null) {
|
|
2843
|
+
return value;
|
|
2844
|
+
}
|
|
2845
|
+
return {
|
|
2846
|
+
keyTypes: value["keyTypes"] == null ? void 0 : value["keyTypes"].map(KeyTypeToJSON),
|
|
2847
|
+
signatureAlgorithms: value["signatureAlgorithms"] == null ? void 0 : value["signatureAlgorithms"].map(SignatureAlgorithmToJSON),
|
|
2848
|
+
digests: value["digests"] == null ? void 0 : value["digests"].map(DigestAlgToJSON),
|
|
2849
|
+
curves: value["curves"] == null ? void 0 : value["curves"].map(CurveToJSON),
|
|
2850
|
+
keyOperations: value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON)
|
|
2851
|
+
};
|
|
2852
|
+
}
|
|
2853
|
+
__name(ProviderCapabilitiesToJSONTyped, "ProviderCapabilitiesToJSONTyped");
|
|
1476
2854
|
|
|
1477
2855
|
// src/models/ResolvePublicKey.ts
|
|
2856
|
+
function instanceOfResolvePublicKey(value) {
|
|
2857
|
+
if (!("keyInfo" in value) || value["keyInfo"] === void 0) return false;
|
|
2858
|
+
return true;
|
|
2859
|
+
}
|
|
2860
|
+
__name(instanceOfResolvePublicKey, "instanceOfResolvePublicKey");
|
|
2861
|
+
function ResolvePublicKeyFromJSON(json) {
|
|
2862
|
+
return ResolvePublicKeyFromJSONTyped(json, false);
|
|
2863
|
+
}
|
|
2864
|
+
__name(ResolvePublicKeyFromJSON, "ResolvePublicKeyFromJSON");
|
|
2865
|
+
function ResolvePublicKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
2866
|
+
if (json == null) {
|
|
2867
|
+
return json;
|
|
2868
|
+
}
|
|
2869
|
+
return {
|
|
2870
|
+
keyInfo: KeyInfoFromJSON(json["keyInfo"]),
|
|
2871
|
+
identifierMethod: json["identifierMethod"] == null ? void 0 : IdentifierMethodFromJSON(json["identifierMethod"]),
|
|
2872
|
+
trustedCerts: json["trustedCerts"] == null ? void 0 : json["trustedCerts"],
|
|
2873
|
+
verifyX509CertificateChain: json["verifyX509CertificateChain"] == null ? void 0 : json["verifyX509CertificateChain"]
|
|
2874
|
+
};
|
|
2875
|
+
}
|
|
2876
|
+
__name(ResolvePublicKeyFromJSONTyped, "ResolvePublicKeyFromJSONTyped");
|
|
2877
|
+
function ResolvePublicKeyToJSON(json) {
|
|
2878
|
+
return ResolvePublicKeyToJSONTyped(json, false);
|
|
2879
|
+
}
|
|
2880
|
+
__name(ResolvePublicKeyToJSON, "ResolvePublicKeyToJSON");
|
|
1478
2881
|
function ResolvePublicKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1479
2882
|
if (value == null) {
|
|
1480
2883
|
return value;
|
|
@@ -1489,6 +2892,15 @@ function ResolvePublicKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1489
2892
|
__name(ResolvePublicKeyToJSONTyped, "ResolvePublicKeyToJSONTyped");
|
|
1490
2893
|
|
|
1491
2894
|
// src/models/ResolvedKeyInfo.ts
|
|
2895
|
+
function instanceOfResolvedKeyInfo(value) {
|
|
2896
|
+
if (!("key" in value) || value["key"] === void 0) return false;
|
|
2897
|
+
return true;
|
|
2898
|
+
}
|
|
2899
|
+
__name(instanceOfResolvedKeyInfo, "instanceOfResolvedKeyInfo");
|
|
2900
|
+
function ResolvedKeyInfoFromJSON(json) {
|
|
2901
|
+
return ResolvedKeyInfoFromJSONTyped(json, false);
|
|
2902
|
+
}
|
|
2903
|
+
__name(ResolvedKeyInfoFromJSON, "ResolvedKeyInfoFromJSON");
|
|
1492
2904
|
function ResolvedKeyInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1493
2905
|
if (json == null) {
|
|
1494
2906
|
return json;
|
|
@@ -1530,7 +2942,105 @@ function ResolvedKeyInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1530
2942
|
}
|
|
1531
2943
|
__name(ResolvedKeyInfoToJSONTyped, "ResolvedKeyInfoToJSONTyped");
|
|
1532
2944
|
|
|
2945
|
+
// src/models/Signature.ts
|
|
2946
|
+
function instanceOfSignature(value) {
|
|
2947
|
+
if (!("value" in value) || value["value"] === void 0) return false;
|
|
2948
|
+
if (!("algorithm" in value) || value["algorithm"] === void 0) return false;
|
|
2949
|
+
return true;
|
|
2950
|
+
}
|
|
2951
|
+
__name(instanceOfSignature, "instanceOfSignature");
|
|
2952
|
+
function SignatureFromJSON(json) {
|
|
2953
|
+
return SignatureFromJSONTyped(json, false);
|
|
2954
|
+
}
|
|
2955
|
+
__name(SignatureFromJSON, "SignatureFromJSON");
|
|
2956
|
+
function SignatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
2957
|
+
if (json == null) {
|
|
2958
|
+
return json;
|
|
2959
|
+
}
|
|
2960
|
+
return {
|
|
2961
|
+
value: json["value"],
|
|
2962
|
+
algorithm: SignatureAlgorithmFromJSON(json["algorithm"]),
|
|
2963
|
+
keyInfo: json["keyInfo"] == null ? void 0 : KeyInfoFromJSON(json["keyInfo"]),
|
|
2964
|
+
metadata: json["metadata"] == null ? void 0 : json["metadata"]
|
|
2965
|
+
};
|
|
2966
|
+
}
|
|
2967
|
+
__name(SignatureFromJSONTyped, "SignatureFromJSONTyped");
|
|
2968
|
+
function SignatureToJSON(json) {
|
|
2969
|
+
return SignatureToJSONTyped(json, false);
|
|
2970
|
+
}
|
|
2971
|
+
__name(SignatureToJSON, "SignatureToJSON");
|
|
2972
|
+
function SignatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2973
|
+
if (value == null) {
|
|
2974
|
+
return value;
|
|
2975
|
+
}
|
|
2976
|
+
return {
|
|
2977
|
+
value: value["value"],
|
|
2978
|
+
algorithm: SignatureAlgorithmToJSON(value["algorithm"]),
|
|
2979
|
+
keyInfo: KeyInfoToJSON(value["keyInfo"]),
|
|
2980
|
+
metadata: value["metadata"]
|
|
2981
|
+
};
|
|
2982
|
+
}
|
|
2983
|
+
__name(SignatureToJSONTyped, "SignatureToJSONTyped");
|
|
2984
|
+
|
|
2985
|
+
// src/models/SignOutput.ts
|
|
2986
|
+
function instanceOfSignOutput(value) {
|
|
2987
|
+
if (!("signature" in value) || value["signature"] === void 0) return false;
|
|
2988
|
+
return true;
|
|
2989
|
+
}
|
|
2990
|
+
__name(instanceOfSignOutput, "instanceOfSignOutput");
|
|
2991
|
+
function SignOutputFromJSON(json) {
|
|
2992
|
+
return SignOutputFromJSONTyped(json, false);
|
|
2993
|
+
}
|
|
2994
|
+
__name(SignOutputFromJSON, "SignOutputFromJSON");
|
|
2995
|
+
function SignOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
2996
|
+
if (json == null) {
|
|
2997
|
+
return json;
|
|
2998
|
+
}
|
|
2999
|
+
return {
|
|
3000
|
+
signature: SignatureFromJSON(json["signature"]),
|
|
3001
|
+
metadata: json["metadata"] == null ? void 0 : json["metadata"]
|
|
3002
|
+
};
|
|
3003
|
+
}
|
|
3004
|
+
__name(SignOutputFromJSONTyped, "SignOutputFromJSONTyped");
|
|
3005
|
+
function SignOutputToJSON(json) {
|
|
3006
|
+
return SignOutputToJSONTyped(json, false);
|
|
3007
|
+
}
|
|
3008
|
+
__name(SignOutputToJSON, "SignOutputToJSON");
|
|
3009
|
+
function SignOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3010
|
+
if (value == null) {
|
|
3011
|
+
return value;
|
|
3012
|
+
}
|
|
3013
|
+
return {
|
|
3014
|
+
signature: SignatureToJSON(value["signature"]),
|
|
3015
|
+
metadata: value["metadata"]
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3018
|
+
__name(SignOutputToJSONTyped, "SignOutputToJSONTyped");
|
|
3019
|
+
|
|
1533
3020
|
// src/models/StoreKey.ts
|
|
3021
|
+
function instanceOfStoreKey(value) {
|
|
3022
|
+
if (!("keyInfo" in value) || value["keyInfo"] === void 0) return false;
|
|
3023
|
+
return true;
|
|
3024
|
+
}
|
|
3025
|
+
__name(instanceOfStoreKey, "instanceOfStoreKey");
|
|
3026
|
+
function StoreKeyFromJSON(json) {
|
|
3027
|
+
return StoreKeyFromJSONTyped(json, false);
|
|
3028
|
+
}
|
|
3029
|
+
__name(StoreKeyFromJSON, "StoreKeyFromJSON");
|
|
3030
|
+
function StoreKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
3031
|
+
if (json == null) {
|
|
3032
|
+
return json;
|
|
3033
|
+
}
|
|
3034
|
+
return {
|
|
3035
|
+
keyInfo: ResolvedKeyInfoFromJSON(json["keyInfo"]),
|
|
3036
|
+
certChain: json["certChain"] == null ? void 0 : json["certChain"]
|
|
3037
|
+
};
|
|
3038
|
+
}
|
|
3039
|
+
__name(StoreKeyFromJSONTyped, "StoreKeyFromJSONTyped");
|
|
3040
|
+
function StoreKeyToJSON(json) {
|
|
3041
|
+
return StoreKeyToJSONTyped(json, false);
|
|
3042
|
+
}
|
|
3043
|
+
__name(StoreKeyToJSON, "StoreKeyToJSON");
|
|
1534
3044
|
function StoreKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1535
3045
|
if (value == null) {
|
|
1536
3046
|
return value;
|
|
@@ -1542,7 +3052,104 @@ function StoreKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1542
3052
|
}
|
|
1543
3053
|
__name(StoreKeyToJSONTyped, "StoreKeyToJSONTyped");
|
|
1544
3054
|
|
|
3055
|
+
// src/models/StoreKeyResponse.ts
|
|
3056
|
+
function instanceOfStoreKeyResponse(value) {
|
|
3057
|
+
if (!("keyInfo" in value) || value["keyInfo"] === void 0) return false;
|
|
3058
|
+
return true;
|
|
3059
|
+
}
|
|
3060
|
+
__name(instanceOfStoreKeyResponse, "instanceOfStoreKeyResponse");
|
|
3061
|
+
function StoreKeyResponseFromJSON(json) {
|
|
3062
|
+
return StoreKeyResponseFromJSONTyped(json, false);
|
|
3063
|
+
}
|
|
3064
|
+
__name(StoreKeyResponseFromJSON, "StoreKeyResponseFromJSON");
|
|
3065
|
+
function StoreKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
3066
|
+
if (json == null) {
|
|
3067
|
+
return json;
|
|
3068
|
+
}
|
|
3069
|
+
return {
|
|
3070
|
+
keyInfo: ManagedKeyInfoFromJSON(json["keyInfo"])
|
|
3071
|
+
};
|
|
3072
|
+
}
|
|
3073
|
+
__name(StoreKeyResponseFromJSONTyped, "StoreKeyResponseFromJSONTyped");
|
|
3074
|
+
function StoreKeyResponseToJSON(json) {
|
|
3075
|
+
return StoreKeyResponseToJSONTyped(json, false);
|
|
3076
|
+
}
|
|
3077
|
+
__name(StoreKeyResponseToJSON, "StoreKeyResponseToJSON");
|
|
3078
|
+
function StoreKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3079
|
+
if (value == null) {
|
|
3080
|
+
return value;
|
|
3081
|
+
}
|
|
3082
|
+
return {
|
|
3083
|
+
keyInfo: ManagedKeyInfoToJSON(value["keyInfo"])
|
|
3084
|
+
};
|
|
3085
|
+
}
|
|
3086
|
+
__name(StoreKeyResponseToJSONTyped, "StoreKeyResponseToJSONTyped");
|
|
3087
|
+
|
|
3088
|
+
// src/models/UpdateKeyProvider.ts
|
|
3089
|
+
function instanceOfUpdateKeyProvider(value) {
|
|
3090
|
+
return true;
|
|
3091
|
+
}
|
|
3092
|
+
__name(instanceOfUpdateKeyProvider, "instanceOfUpdateKeyProvider");
|
|
3093
|
+
function UpdateKeyProviderFromJSON(json) {
|
|
3094
|
+
return UpdateKeyProviderFromJSONTyped(json, false);
|
|
3095
|
+
}
|
|
3096
|
+
__name(UpdateKeyProviderFromJSON, "UpdateKeyProviderFromJSON");
|
|
3097
|
+
function UpdateKeyProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
3098
|
+
if (json == null) {
|
|
3099
|
+
return json;
|
|
3100
|
+
}
|
|
3101
|
+
return {
|
|
3102
|
+
azureKeyvaultSettings: json["azureKeyvaultSettings"] == null ? void 0 : AzureKeyVaultSettingFromJSON(json["azureKeyvaultSettings"]),
|
|
3103
|
+
awsKmsSettings: json["awsKmsSettings"] == null ? void 0 : AwsKmsSettingFromJSON(json["awsKmsSettings"]),
|
|
3104
|
+
cacheEnabled: json["cacheEnabled"] == null ? void 0 : json["cacheEnabled"],
|
|
3105
|
+
cacheTTLInSeconds: json["cacheTTLInSeconds"] == null ? void 0 : json["cacheTTLInSeconds"]
|
|
3106
|
+
};
|
|
3107
|
+
}
|
|
3108
|
+
__name(UpdateKeyProviderFromJSONTyped, "UpdateKeyProviderFromJSONTyped");
|
|
3109
|
+
function UpdateKeyProviderToJSON(json) {
|
|
3110
|
+
return UpdateKeyProviderToJSONTyped(json, false);
|
|
3111
|
+
}
|
|
3112
|
+
__name(UpdateKeyProviderToJSON, "UpdateKeyProviderToJSON");
|
|
3113
|
+
function UpdateKeyProviderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3114
|
+
if (value == null) {
|
|
3115
|
+
return value;
|
|
3116
|
+
}
|
|
3117
|
+
return {
|
|
3118
|
+
azureKeyvaultSettings: AzureKeyVaultSettingToJSON(value["azureKeyvaultSettings"]),
|
|
3119
|
+
awsKmsSettings: AwsKmsSettingToJSON(value["awsKmsSettings"]),
|
|
3120
|
+
cacheEnabled: value["cacheEnabled"],
|
|
3121
|
+
cacheTTLInSeconds: value["cacheTTLInSeconds"]
|
|
3122
|
+
};
|
|
3123
|
+
}
|
|
3124
|
+
__name(UpdateKeyProviderToJSONTyped, "UpdateKeyProviderToJSONTyped");
|
|
3125
|
+
|
|
1545
3126
|
// src/models/VerifyRawSignature.ts
|
|
3127
|
+
function instanceOfVerifyRawSignature(value) {
|
|
3128
|
+
if (!("keyInfo" in value) || value["keyInfo"] === void 0) return false;
|
|
3129
|
+
if (!("input" in value) || value["input"] === void 0) return false;
|
|
3130
|
+
if (!("signature" in value) || value["signature"] === void 0) return false;
|
|
3131
|
+
return true;
|
|
3132
|
+
}
|
|
3133
|
+
__name(instanceOfVerifyRawSignature, "instanceOfVerifyRawSignature");
|
|
3134
|
+
function VerifyRawSignatureFromJSON(json) {
|
|
3135
|
+
return VerifyRawSignatureFromJSONTyped(json, false);
|
|
3136
|
+
}
|
|
3137
|
+
__name(VerifyRawSignatureFromJSON, "VerifyRawSignatureFromJSON");
|
|
3138
|
+
function VerifyRawSignatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
3139
|
+
if (json == null) {
|
|
3140
|
+
return json;
|
|
3141
|
+
}
|
|
3142
|
+
return {
|
|
3143
|
+
keyInfo: KeyInfoFromJSON(json["keyInfo"]),
|
|
3144
|
+
input: json["input"],
|
|
3145
|
+
signature: json["signature"]
|
|
3146
|
+
};
|
|
3147
|
+
}
|
|
3148
|
+
__name(VerifyRawSignatureFromJSONTyped, "VerifyRawSignatureFromJSONTyped");
|
|
3149
|
+
function VerifyRawSignatureToJSON(json) {
|
|
3150
|
+
return VerifyRawSignatureToJSONTyped(json, false);
|
|
3151
|
+
}
|
|
3152
|
+
__name(VerifyRawSignatureToJSON, "VerifyRawSignatureToJSON");
|
|
1546
3153
|
function VerifyRawSignatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1547
3154
|
if (value == null) {
|
|
1548
3155
|
return value;
|
|
@@ -1556,6 +3163,15 @@ function VerifyRawSignatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1556
3163
|
__name(VerifyRawSignatureToJSONTyped, "VerifyRawSignatureToJSONTyped");
|
|
1557
3164
|
|
|
1558
3165
|
// src/models/VerifyRawSignatureResponse.ts
|
|
3166
|
+
function instanceOfVerifyRawSignatureResponse(value) {
|
|
3167
|
+
if (!("isValid" in value) || value["isValid"] === void 0) return false;
|
|
3168
|
+
return true;
|
|
3169
|
+
}
|
|
3170
|
+
__name(instanceOfVerifyRawSignatureResponse, "instanceOfVerifyRawSignatureResponse");
|
|
3171
|
+
function VerifyRawSignatureResponseFromJSON(json) {
|
|
3172
|
+
return VerifyRawSignatureResponseFromJSONTyped(json, false);
|
|
3173
|
+
}
|
|
3174
|
+
__name(VerifyRawSignatureResponseFromJSON, "VerifyRawSignatureResponseFromJSON");
|
|
1559
3175
|
function VerifyRawSignatureResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1560
3176
|
if (json == null) {
|
|
1561
3177
|
return json;
|
|
@@ -1565,6 +3181,55 @@ function VerifyRawSignatureResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1565
3181
|
};
|
|
1566
3182
|
}
|
|
1567
3183
|
__name(VerifyRawSignatureResponseFromJSONTyped, "VerifyRawSignatureResponseFromJSONTyped");
|
|
3184
|
+
function VerifyRawSignatureResponseToJSON(json) {
|
|
3185
|
+
return VerifyRawSignatureResponseToJSONTyped(json, false);
|
|
3186
|
+
}
|
|
3187
|
+
__name(VerifyRawSignatureResponseToJSON, "VerifyRawSignatureResponseToJSON");
|
|
3188
|
+
function VerifyRawSignatureResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3189
|
+
if (value == null) {
|
|
3190
|
+
return value;
|
|
3191
|
+
}
|
|
3192
|
+
return {
|
|
3193
|
+
isValid: value["isValid"]
|
|
3194
|
+
};
|
|
3195
|
+
}
|
|
3196
|
+
__name(VerifyRawSignatureResponseToJSONTyped, "VerifyRawSignatureResponseToJSONTyped");
|
|
3197
|
+
|
|
3198
|
+
// src/models/VerifySimpleSignature.ts
|
|
3199
|
+
function instanceOfVerifySimpleSignature(value) {
|
|
3200
|
+
if (!("signInput" in value) || value["signInput"] === void 0) return false;
|
|
3201
|
+
if (!("signature" in value) || value["signature"] === void 0) return false;
|
|
3202
|
+
return true;
|
|
3203
|
+
}
|
|
3204
|
+
__name(instanceOfVerifySimpleSignature, "instanceOfVerifySimpleSignature");
|
|
3205
|
+
function VerifySimpleSignatureFromJSON(json) {
|
|
3206
|
+
return VerifySimpleSignatureFromJSONTyped(json, false);
|
|
3207
|
+
}
|
|
3208
|
+
__name(VerifySimpleSignatureFromJSON, "VerifySimpleSignatureFromJSON");
|
|
3209
|
+
function VerifySimpleSignatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
3210
|
+
if (json == null) {
|
|
3211
|
+
return json;
|
|
3212
|
+
}
|
|
3213
|
+
return {
|
|
3214
|
+
signInput: SignInputFromJSON(json["signInput"]),
|
|
3215
|
+
signature: SignatureFromJSON(json["signature"])
|
|
3216
|
+
};
|
|
3217
|
+
}
|
|
3218
|
+
__name(VerifySimpleSignatureFromJSONTyped, "VerifySimpleSignatureFromJSONTyped");
|
|
3219
|
+
function VerifySimpleSignatureToJSON(json) {
|
|
3220
|
+
return VerifySimpleSignatureToJSONTyped(json, false);
|
|
3221
|
+
}
|
|
3222
|
+
__name(VerifySimpleSignatureToJSON, "VerifySimpleSignatureToJSON");
|
|
3223
|
+
function VerifySimpleSignatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3224
|
+
if (value == null) {
|
|
3225
|
+
return value;
|
|
3226
|
+
}
|
|
3227
|
+
return {
|
|
3228
|
+
signInput: SignInputToJSON(value["signInput"]),
|
|
3229
|
+
signature: SignatureToJSON(value["signature"])
|
|
3230
|
+
};
|
|
3231
|
+
}
|
|
3232
|
+
__name(VerifySimpleSignatureToJSONTyped, "VerifySimpleSignatureToJSONTyped");
|
|
1568
3233
|
|
|
1569
3234
|
// src/agent/KmsRestClient.ts
|
|
1570
3235
|
var logger = Loggers.DEFAULT.get("sphereon:ssi-sdk:kms:rest-client");
|
|
@@ -1618,7 +3283,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1618
3283
|
}
|
|
1619
3284
|
/** {@inheritDoc IKmsRestClient.kmsListResolvers} */
|
|
1620
3285
|
async kmsClientListResolvers(args) {
|
|
1621
|
-
const baseUrl = this.assertedAgentBaseUrl(args
|
|
3286
|
+
const baseUrl = this.assertedAgentBaseUrl(args?.baseUrl);
|
|
1622
3287
|
const url = _KmsRestClient.urlWithBase("/resolvers", baseUrl);
|
|
1623
3288
|
const response = await fetch(url, {
|
|
1624
3289
|
method: "GET"
|
|
@@ -1708,16 +3373,16 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1708
3373
|
});
|
|
1709
3374
|
logger.debug(`get key response: ${response}`);
|
|
1710
3375
|
try {
|
|
1711
|
-
return
|
|
3376
|
+
return GetKeyResponseFromJSONTyped(await response.json(), false);
|
|
1712
3377
|
} catch (error) {
|
|
1713
3378
|
return Promise.reject(Error(`request to ${url} returned ${error}`));
|
|
1714
3379
|
}
|
|
1715
3380
|
}
|
|
1716
3381
|
/** {@inheritDoc IKmsRestClient.kmsListKeys} */
|
|
1717
3382
|
async kmsClientListKeys(args) {
|
|
1718
|
-
const baseUrl = this.assertedAgentBaseUrl(args
|
|
3383
|
+
const baseUrl = this.assertedAgentBaseUrl(args?.baseUrl);
|
|
1719
3384
|
const url = this.addSearchParams(_KmsRestClient.urlWithBase("/keys", baseUrl), {
|
|
1720
|
-
...args
|
|
3385
|
+
...args?.providerId && {
|
|
1721
3386
|
providerId: args.providerId
|
|
1722
3387
|
}
|
|
1723
3388
|
});
|
|
@@ -1726,8 +3391,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1726
3391
|
});
|
|
1727
3392
|
logger.debug(`list keys response: ${response}`);
|
|
1728
3393
|
try {
|
|
1729
|
-
|
|
1730
|
-
return ListKeysResponseFromJSONTyped(xx, false);
|
|
3394
|
+
return ListKeysResponseFromJSONTyped(await response.json(), false);
|
|
1731
3395
|
} catch (error) {
|
|
1732
3396
|
return Promise.reject(Error(`request to ${url} returned ${error}`));
|
|
1733
3397
|
}
|
|
@@ -1749,7 +3413,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1749
3413
|
});
|
|
1750
3414
|
logger.debug(`store key response: ${response}`);
|
|
1751
3415
|
try {
|
|
1752
|
-
return
|
|
3416
|
+
return StoreKeyResponseFromJSONTyped(await response.json(), false);
|
|
1753
3417
|
} catch (error) {
|
|
1754
3418
|
return Promise.reject(Error(`request to ${url} returned ${error}`));
|
|
1755
3419
|
}
|
|
@@ -1773,7 +3437,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1773
3437
|
});
|
|
1774
3438
|
logger.debug(`generate key response: ${response}`);
|
|
1775
3439
|
try {
|
|
1776
|
-
return
|
|
3440
|
+
return GenerateKeyResponseFromJSONTyped(await response.json(), false);
|
|
1777
3441
|
} catch (error) {
|
|
1778
3442
|
return Promise.reject(Error(`request to ${url} returned ${error}`));
|
|
1779
3443
|
}
|
|
@@ -1803,7 +3467,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1803
3467
|
}
|
|
1804
3468
|
/** {@inheritDoc IKmsRestClient.kmsListKeyProviders} */
|
|
1805
3469
|
async kmsClientListKeyProviders(args) {
|
|
1806
|
-
const baseUrl = this.assertedAgentBaseUrl(args
|
|
3470
|
+
const baseUrl = this.assertedAgentBaseUrl(args?.baseUrl);
|
|
1807
3471
|
const url = _KmsRestClient.urlWithBase("/providers", baseUrl);
|
|
1808
3472
|
const response = await fetch(url, {
|
|
1809
3473
|
method: "GET"
|
|
@@ -1846,7 +3510,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1846
3510
|
});
|
|
1847
3511
|
logger.debug(`provider store key response: ${response}`);
|
|
1848
3512
|
try {
|
|
1849
|
-
return
|
|
3513
|
+
return StoreKeyResponseFromJSONTyped(await response.json(), false);
|
|
1850
3514
|
} catch (error) {
|
|
1851
3515
|
return Promise.reject(Error(`request to ${url} returned ${error}`));
|
|
1852
3516
|
}
|
|
@@ -1869,7 +3533,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1869
3533
|
});
|
|
1870
3534
|
logger.debug(`provider generate key response: ${response}`);
|
|
1871
3535
|
try {
|
|
1872
|
-
return
|
|
3536
|
+
return GenerateKeyResponseFromJSONTyped(await response.json(), false);
|
|
1873
3537
|
} catch (error) {
|
|
1874
3538
|
return Promise.reject(Error(`request to ${url} returned ${error}`));
|
|
1875
3539
|
}
|
|
@@ -1883,7 +3547,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1883
3547
|
});
|
|
1884
3548
|
logger.debug(`get provider key response: ${response}`);
|
|
1885
3549
|
try {
|
|
1886
|
-
return
|
|
3550
|
+
return GetKeyResponseFromJSONTyped(await response.json(), false);
|
|
1887
3551
|
} catch (error) {
|
|
1888
3552
|
return Promise.reject(Error(`request to ${url} returned ${error}`));
|
|
1889
3553
|
}
|
|
@@ -1927,7 +3591,313 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1927
3591
|
}
|
|
1928
3592
|
};
|
|
1929
3593
|
export {
|
|
3594
|
+
AwsAssumeRoleCredentialsFromJSON,
|
|
3595
|
+
AwsAssumeRoleCredentialsFromJSONTyped,
|
|
3596
|
+
AwsAssumeRoleCredentialsToJSON,
|
|
3597
|
+
AwsAssumeRoleCredentialsToJSONTyped,
|
|
3598
|
+
AwsClientConfigurationFromJSON,
|
|
3599
|
+
AwsClientConfigurationFromJSONTyped,
|
|
3600
|
+
AwsClientConfigurationToJSON,
|
|
3601
|
+
AwsClientConfigurationToJSONTyped,
|
|
3602
|
+
AwsKmsSettingFromJSON,
|
|
3603
|
+
AwsKmsSettingFromJSONTyped,
|
|
3604
|
+
AwsKmsSettingToJSON,
|
|
3605
|
+
AwsKmsSettingToJSONTyped,
|
|
3606
|
+
AwsStaticCredentialsFromJSON,
|
|
3607
|
+
AwsStaticCredentialsFromJSONTyped,
|
|
3608
|
+
AwsStaticCredentialsToJSON,
|
|
3609
|
+
AwsStaticCredentialsToJSONTyped,
|
|
3610
|
+
AwsWebIdentityTokenCredentialsFromJSON,
|
|
3611
|
+
AwsWebIdentityTokenCredentialsFromJSONTyped,
|
|
3612
|
+
AwsWebIdentityTokenCredentialsToJSON,
|
|
3613
|
+
AwsWebIdentityTokenCredentialsToJSONTyped,
|
|
3614
|
+
AzureClientSecretCredentialOptsFromJSON,
|
|
3615
|
+
AzureClientSecretCredentialOptsFromJSONTyped,
|
|
3616
|
+
AzureClientSecretCredentialOptsToJSON,
|
|
3617
|
+
AzureClientSecretCredentialOptsToJSONTyped,
|
|
3618
|
+
AzureCredentialOptsFromJSON,
|
|
3619
|
+
AzureCredentialOptsFromJSONTyped,
|
|
3620
|
+
AzureCredentialOptsToJSON,
|
|
3621
|
+
AzureCredentialOptsToJSONTyped,
|
|
3622
|
+
AzureKeyVaultSettingFromJSON,
|
|
3623
|
+
AzureKeyVaultSettingFromJSONTyped,
|
|
3624
|
+
AzureKeyVaultSettingToJSON,
|
|
3625
|
+
AzureKeyVaultSettingToJSONTyped,
|
|
3626
|
+
CoseKeyFromJSON,
|
|
3627
|
+
CoseKeyFromJSONTyped,
|
|
3628
|
+
CoseKeyPairFromJSON,
|
|
3629
|
+
CoseKeyPairFromJSONTyped,
|
|
3630
|
+
CoseKeyPairToJSON,
|
|
3631
|
+
CoseKeyPairToJSONTyped,
|
|
3632
|
+
CoseKeyToJSON,
|
|
3633
|
+
CoseKeyToJSONTyped,
|
|
3634
|
+
CoseKeyType,
|
|
3635
|
+
CoseKeyTypeFromJSON,
|
|
3636
|
+
CoseKeyTypeFromJSONTyped,
|
|
3637
|
+
CoseKeyTypeToJSON,
|
|
3638
|
+
CoseKeyTypeToJSONTyped,
|
|
3639
|
+
CreateKeyProviderFromJSON,
|
|
3640
|
+
CreateKeyProviderFromJSONTyped,
|
|
3641
|
+
CreateKeyProviderToJSON,
|
|
3642
|
+
CreateKeyProviderToJSONTyped,
|
|
3643
|
+
CreateRawSignatureFromJSON,
|
|
3644
|
+
CreateRawSignatureFromJSONTyped,
|
|
3645
|
+
CreateRawSignatureResponseFromJSON,
|
|
3646
|
+
CreateRawSignatureResponseFromJSONTyped,
|
|
3647
|
+
CreateRawSignatureResponseToJSON,
|
|
3648
|
+
CreateRawSignatureResponseToJSONTyped,
|
|
3649
|
+
CreateRawSignatureToJSON,
|
|
3650
|
+
CreateRawSignatureToJSONTyped,
|
|
3651
|
+
CreateSimpleSignatureFromJSON,
|
|
3652
|
+
CreateSimpleSignatureFromJSONTyped,
|
|
3653
|
+
CreateSimpleSignatureToJSON,
|
|
3654
|
+
CreateSimpleSignatureToJSONTyped,
|
|
3655
|
+
CryptoAlg,
|
|
3656
|
+
CryptoAlgFromJSON,
|
|
3657
|
+
CryptoAlgFromJSONTyped,
|
|
3658
|
+
CryptoAlgToJSON,
|
|
3659
|
+
CryptoAlgToJSONTyped,
|
|
3660
|
+
Curve,
|
|
3661
|
+
CurveFromJSON,
|
|
3662
|
+
CurveFromJSONTyped,
|
|
3663
|
+
CurveToJSON,
|
|
3664
|
+
CurveToJSONTyped,
|
|
3665
|
+
DigestAlg,
|
|
3666
|
+
DigestAlgFromJSON,
|
|
3667
|
+
DigestAlgFromJSONTyped,
|
|
3668
|
+
DigestAlgToJSON,
|
|
3669
|
+
DigestAlgToJSONTyped,
|
|
3670
|
+
ErrorResponseFromJSON,
|
|
3671
|
+
ErrorResponseFromJSONTyped,
|
|
3672
|
+
ErrorResponseToJSON,
|
|
3673
|
+
ErrorResponseToJSONTyped,
|
|
3674
|
+
GenerateKeyFromJSON,
|
|
3675
|
+
GenerateKeyFromJSONTyped,
|
|
3676
|
+
GenerateKeyGlobalFromJSON,
|
|
3677
|
+
GenerateKeyGlobalFromJSONTyped,
|
|
3678
|
+
GenerateKeyGlobalToJSON,
|
|
3679
|
+
GenerateKeyGlobalToJSONTyped,
|
|
3680
|
+
GenerateKeyResponseFromJSON,
|
|
3681
|
+
GenerateKeyResponseFromJSONTyped,
|
|
3682
|
+
GenerateKeyResponseToJSON,
|
|
3683
|
+
GenerateKeyResponseToJSONTyped,
|
|
3684
|
+
GenerateKeyToJSON,
|
|
3685
|
+
GenerateKeyToJSONTyped,
|
|
3686
|
+
GetKeyResponseFromJSON,
|
|
3687
|
+
GetKeyResponseFromJSONTyped,
|
|
3688
|
+
GetKeyResponseToJSON,
|
|
3689
|
+
GetKeyResponseToJSONTyped,
|
|
3690
|
+
IdentifierMethod,
|
|
3691
|
+
IdentifierMethodFromJSON,
|
|
3692
|
+
IdentifierMethodFromJSONTyped,
|
|
3693
|
+
IdentifierMethodToJSON,
|
|
3694
|
+
IdentifierMethodToJSONTyped,
|
|
3695
|
+
JoseKeyPairFromJSON,
|
|
3696
|
+
JoseKeyPairFromJSONTyped,
|
|
3697
|
+
JoseKeyPairToJSON,
|
|
3698
|
+
JoseKeyPairToJSONTyped,
|
|
3699
|
+
JwkFromJSON,
|
|
3700
|
+
JwkFromJSONTyped,
|
|
3701
|
+
JwkKeyType,
|
|
3702
|
+
JwkKeyTypeFromJSON,
|
|
3703
|
+
JwkKeyTypeFromJSONTyped,
|
|
3704
|
+
JwkKeyTypeToJSON,
|
|
3705
|
+
JwkKeyTypeToJSONTyped,
|
|
3706
|
+
JwkToJSON,
|
|
3707
|
+
JwkToJSONTyped,
|
|
3708
|
+
JwkUse,
|
|
3709
|
+
JwkUseFromJSON,
|
|
3710
|
+
JwkUseFromJSONTyped,
|
|
3711
|
+
JwkUseToJSON,
|
|
3712
|
+
JwkUseToJSONTyped,
|
|
3713
|
+
KeyEncoding,
|
|
3714
|
+
KeyEncodingFromJSON,
|
|
3715
|
+
KeyEncodingFromJSONTyped,
|
|
3716
|
+
KeyEncodingToJSON,
|
|
3717
|
+
KeyEncodingToJSONTyped,
|
|
3718
|
+
KeyInfoFromJSON,
|
|
3719
|
+
KeyInfoFromJSONTyped,
|
|
3720
|
+
KeyInfoToJSON,
|
|
3721
|
+
KeyInfoToJSONTyped,
|
|
3722
|
+
KeyOperations,
|
|
3723
|
+
KeyOperationsFromJSON,
|
|
3724
|
+
KeyOperationsFromJSONTyped,
|
|
3725
|
+
KeyOperationsToJSON,
|
|
3726
|
+
KeyOperationsToJSONTyped,
|
|
3727
|
+
KeyProviderFromJSON,
|
|
3728
|
+
KeyProviderFromJSONTyped,
|
|
3729
|
+
KeyProviderResponseFromJSON,
|
|
3730
|
+
KeyProviderResponseFromJSONTyped,
|
|
3731
|
+
KeyProviderResponseToJSON,
|
|
3732
|
+
KeyProviderResponseToJSONTyped,
|
|
3733
|
+
KeyProviderToJSON,
|
|
3734
|
+
KeyProviderToJSONTyped,
|
|
3735
|
+
KeyProviderType,
|
|
3736
|
+
KeyProviderTypeFromJSON,
|
|
3737
|
+
KeyProviderTypeFromJSONTyped,
|
|
3738
|
+
KeyProviderTypeToJSON,
|
|
3739
|
+
KeyProviderTypeToJSONTyped,
|
|
3740
|
+
KeyResolverFromJSON,
|
|
3741
|
+
KeyResolverFromJSONTyped,
|
|
3742
|
+
KeyResolverToJSON,
|
|
3743
|
+
KeyResolverToJSONTyped,
|
|
3744
|
+
KeyType,
|
|
3745
|
+
KeyTypeFromJSON,
|
|
3746
|
+
KeyTypeFromJSONTyped,
|
|
3747
|
+
KeyTypeToJSON,
|
|
3748
|
+
KeyTypeToJSONTyped,
|
|
3749
|
+
KeyVisibility,
|
|
3750
|
+
KeyVisibilityFromJSON,
|
|
3751
|
+
KeyVisibilityFromJSONTyped,
|
|
3752
|
+
KeyVisibilityToJSON,
|
|
3753
|
+
KeyVisibilityToJSONTyped,
|
|
1930
3754
|
KmsRestClient,
|
|
3755
|
+
ListKeyProvidersResponseFromJSON,
|
|
3756
|
+
ListKeyProvidersResponseFromJSONTyped,
|
|
3757
|
+
ListKeyProvidersResponseToJSON,
|
|
3758
|
+
ListKeyProvidersResponseToJSONTyped,
|
|
3759
|
+
ListKeysResponseFromJSON,
|
|
3760
|
+
ListKeysResponseFromJSONTyped,
|
|
3761
|
+
ListKeysResponseToJSON,
|
|
3762
|
+
ListKeysResponseToJSONTyped,
|
|
3763
|
+
ListResolversResponseFromJSON,
|
|
3764
|
+
ListResolversResponseFromJSONTyped,
|
|
3765
|
+
ListResolversResponseToJSON,
|
|
3766
|
+
ListResolversResponseToJSONTyped,
|
|
3767
|
+
LookupMode,
|
|
3768
|
+
LookupModeFromJSON,
|
|
3769
|
+
LookupModeFromJSONTyped,
|
|
3770
|
+
LookupModeToJSON,
|
|
3771
|
+
LookupModeToJSONTyped,
|
|
3772
|
+
ManagedKeyInfoFromJSON,
|
|
3773
|
+
ManagedKeyInfoFromJSONTyped,
|
|
3774
|
+
ManagedKeyInfoToJSON,
|
|
3775
|
+
ManagedKeyInfoToJSONTyped,
|
|
3776
|
+
ManagedKeyPairFromJSON,
|
|
3777
|
+
ManagedKeyPairFromJSONTyped,
|
|
3778
|
+
ManagedKeyPairToJSON,
|
|
3779
|
+
ManagedKeyPairToJSONTyped,
|
|
3780
|
+
MaskGenFunction,
|
|
3781
|
+
MaskGenFunctionFromJSON,
|
|
3782
|
+
MaskGenFunctionFromJSONTyped,
|
|
3783
|
+
MaskGenFunctionToJSON,
|
|
3784
|
+
MaskGenFunctionToJSONTyped,
|
|
3785
|
+
ProviderCapabilitiesFromJSON,
|
|
3786
|
+
ProviderCapabilitiesFromJSONTyped,
|
|
3787
|
+
ProviderCapabilitiesToJSON,
|
|
3788
|
+
ProviderCapabilitiesToJSONTyped,
|
|
3789
|
+
ResolvePublicKeyFromJSON,
|
|
3790
|
+
ResolvePublicKeyFromJSONTyped,
|
|
3791
|
+
ResolvePublicKeyToJSON,
|
|
3792
|
+
ResolvePublicKeyToJSONTyped,
|
|
3793
|
+
ResolvedKeyInfoFromJSON,
|
|
3794
|
+
ResolvedKeyInfoFromJSONTyped,
|
|
3795
|
+
ResolvedKeyInfoToJSON,
|
|
3796
|
+
ResolvedKeyInfoToJSONTyped,
|
|
3797
|
+
ResolverFromJSON,
|
|
3798
|
+
ResolverFromJSONTyped,
|
|
3799
|
+
ResolverToJSON,
|
|
3800
|
+
ResolverToJSONTyped,
|
|
3801
|
+
SignInputFromJSON,
|
|
3802
|
+
SignInputFromJSONTyped,
|
|
3803
|
+
SignInputModeEnum,
|
|
3804
|
+
SignInputToJSON,
|
|
3805
|
+
SignInputToJSONTyped,
|
|
3806
|
+
SignOutputFromJSON,
|
|
3807
|
+
SignOutputFromJSONTyped,
|
|
3808
|
+
SignOutputToJSON,
|
|
3809
|
+
SignOutputToJSONTyped,
|
|
3810
|
+
SignatureAlgorithm,
|
|
3811
|
+
SignatureAlgorithmFromJSON,
|
|
3812
|
+
SignatureAlgorithmFromJSONTyped,
|
|
3813
|
+
SignatureAlgorithmToJSON,
|
|
3814
|
+
SignatureAlgorithmToJSONTyped,
|
|
3815
|
+
SignatureFromJSON,
|
|
3816
|
+
SignatureFromJSONTyped,
|
|
3817
|
+
SignatureToJSON,
|
|
3818
|
+
SignatureToJSONTyped,
|
|
3819
|
+
StoreKeyFromJSON,
|
|
3820
|
+
StoreKeyFromJSONTyped,
|
|
3821
|
+
StoreKeyResponseFromJSON,
|
|
3822
|
+
StoreKeyResponseFromJSONTyped,
|
|
3823
|
+
StoreKeyResponseToJSON,
|
|
3824
|
+
StoreKeyResponseToJSONTyped,
|
|
3825
|
+
StoreKeyToJSON,
|
|
3826
|
+
StoreKeyToJSONTyped,
|
|
3827
|
+
UpdateKeyProviderFromJSON,
|
|
3828
|
+
UpdateKeyProviderFromJSONTyped,
|
|
3829
|
+
UpdateKeyProviderToJSON,
|
|
3830
|
+
UpdateKeyProviderToJSONTyped,
|
|
3831
|
+
VerifyRawSignatureFromJSON,
|
|
3832
|
+
VerifyRawSignatureFromJSONTyped,
|
|
3833
|
+
VerifyRawSignatureResponseFromJSON,
|
|
3834
|
+
VerifyRawSignatureResponseFromJSONTyped,
|
|
3835
|
+
VerifyRawSignatureResponseToJSON,
|
|
3836
|
+
VerifyRawSignatureResponseToJSONTyped,
|
|
3837
|
+
VerifyRawSignatureToJSON,
|
|
3838
|
+
VerifyRawSignatureToJSONTyped,
|
|
3839
|
+
VerifySimpleSignatureFromJSON,
|
|
3840
|
+
VerifySimpleSignatureFromJSONTyped,
|
|
3841
|
+
VerifySimpleSignatureToJSON,
|
|
3842
|
+
VerifySimpleSignatureToJSONTyped,
|
|
3843
|
+
instanceOfAwsAssumeRoleCredentials,
|
|
3844
|
+
instanceOfAwsClientConfiguration,
|
|
3845
|
+
instanceOfAwsKmsSetting,
|
|
3846
|
+
instanceOfAwsStaticCredentials,
|
|
3847
|
+
instanceOfAwsWebIdentityTokenCredentials,
|
|
3848
|
+
instanceOfAzureClientSecretCredentialOpts,
|
|
3849
|
+
instanceOfAzureCredentialOpts,
|
|
3850
|
+
instanceOfAzureKeyVaultSetting,
|
|
3851
|
+
instanceOfCoseKey,
|
|
3852
|
+
instanceOfCoseKeyPair,
|
|
3853
|
+
instanceOfCoseKeyType,
|
|
3854
|
+
instanceOfCreateKeyProvider,
|
|
3855
|
+
instanceOfCreateRawSignature,
|
|
3856
|
+
instanceOfCreateRawSignatureResponse,
|
|
3857
|
+
instanceOfCreateSimpleSignature,
|
|
3858
|
+
instanceOfCryptoAlg,
|
|
3859
|
+
instanceOfCurve,
|
|
3860
|
+
instanceOfDigestAlg,
|
|
3861
|
+
instanceOfErrorResponse,
|
|
3862
|
+
instanceOfGenerateKey,
|
|
3863
|
+
instanceOfGenerateKeyGlobal,
|
|
3864
|
+
instanceOfGenerateKeyResponse,
|
|
3865
|
+
instanceOfGetKeyResponse,
|
|
3866
|
+
instanceOfIdentifierMethod,
|
|
3867
|
+
instanceOfJoseKeyPair,
|
|
3868
|
+
instanceOfJwk,
|
|
3869
|
+
instanceOfJwkKeyType,
|
|
3870
|
+
instanceOfJwkUse,
|
|
3871
|
+
instanceOfKeyEncoding,
|
|
3872
|
+
instanceOfKeyInfo,
|
|
3873
|
+
instanceOfKeyOperations,
|
|
3874
|
+
instanceOfKeyProvider,
|
|
3875
|
+
instanceOfKeyProviderResponse,
|
|
3876
|
+
instanceOfKeyProviderType,
|
|
3877
|
+
instanceOfKeyResolver,
|
|
3878
|
+
instanceOfKeyType,
|
|
3879
|
+
instanceOfKeyVisibility,
|
|
3880
|
+
instanceOfListKeyProvidersResponse,
|
|
3881
|
+
instanceOfListKeysResponse,
|
|
3882
|
+
instanceOfListResolversResponse,
|
|
3883
|
+
instanceOfLookupMode,
|
|
3884
|
+
instanceOfManagedKeyInfo,
|
|
3885
|
+
instanceOfManagedKeyPair,
|
|
3886
|
+
instanceOfMaskGenFunction,
|
|
3887
|
+
instanceOfProviderCapabilities,
|
|
3888
|
+
instanceOfResolvePublicKey,
|
|
3889
|
+
instanceOfResolvedKeyInfo,
|
|
3890
|
+
instanceOfResolver,
|
|
3891
|
+
instanceOfSignInput,
|
|
3892
|
+
instanceOfSignOutput,
|
|
3893
|
+
instanceOfSignature,
|
|
3894
|
+
instanceOfSignatureAlgorithm,
|
|
3895
|
+
instanceOfStoreKey,
|
|
3896
|
+
instanceOfStoreKeyResponse,
|
|
3897
|
+
instanceOfUpdateKeyProvider,
|
|
3898
|
+
instanceOfVerifyRawSignature,
|
|
3899
|
+
instanceOfVerifyRawSignatureResponse,
|
|
3900
|
+
instanceOfVerifySimpleSignature,
|
|
1931
3901
|
plugin_schema_default as schema
|
|
1932
3902
|
};
|
|
1933
3903
|
//# sourceMappingURL=index.js.map
|