@kernelminds/scailo-sdk 0.1.6 → 0.1.7

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.
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.VaultAccessLogsList = exports.VaultAccessLogCreateRequest = exports.VaultAccessLog = exports.VaultDuplicateCheckReq = exports.VaultSearchResponsesList = exports.VaultSearchResponse = exports.VaultSearchReq = exports.GiXAppRunFilterReq = exports.GiXAppRunCountReq = exports.GiXAppRunsList = exports.GiXAppRun = exports.GiXManifest = exports.GixResources = exports.VaultPermissionModifyRequest = exports.VaultPermissionAddRequest = exports.VaultPermission = exports.VAULT_ACCESS_LOG_OPERATION = exports.VAULT_SORT_KEY = exports.VAULT_PERMISSION_CODE = exports.VAULT_REF_FOR = void 0;
7
+ exports.VaultAccessLogsList = exports.VaultAccessLogCreateRequest = exports.VaultAccessLog = exports.VaultDuplicateCheckReq = exports.VaultSearchResponsesList = exports.VaultSearchResponse = exports.VaultSearchReq = exports.EnclaveEnvironmentVariablesList = exports.EnclaveEnvironmentVariable = exports.EnclaveEnvironmentVariableUpdateRequest = exports.EnclaveEnvironmentVariableAddRequest = exports.VerifyEnclaveIngressResponse = exports.VerifyEnclaveIngressRequest = exports.EnclaveIngressFilterReq = exports.EnclaveIngressCountReq = exports.EnclaveIngressesList = exports.EnclaveIngress = exports.EnclaveManifest = exports.EnclaveResources = exports.GiXAppRunFilterReq = exports.GiXAppRunCountReq = exports.GiXAppRunsList = exports.GiXAppRun = exports.GiXManifest = exports.GixResources = exports.VaultPermissionModifyRequest = exports.VaultPermissionAddRequest = exports.VaultPermission = exports.VAULT_ACCESS_LOG_OPERATION = exports.VAULT_SORT_KEY = exports.VAULT_PERMISSION_CODE = exports.VAULT_REF_FOR = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
10
  /**
@@ -868,6 +868,779 @@ GiXAppRunFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
868
868
  { no: 21, name: "vault_file_version_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
869
869
  { no: 30, name: "run_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
870
870
  ]);
871
+ /**
872
+ *
873
+ * Describes the resources section of an Enclave
874
+ *
875
+ * @generated from message Scailo.EnclaveResources
876
+ */
877
+ class EnclaveResources extends protobuf_1.Message {
878
+ constructor(data) {
879
+ super();
880
+ /**
881
+ * Stores the list of logos that are available
882
+ *
883
+ * @generated from field: repeated string logos = 1;
884
+ */
885
+ this.logos = [];
886
+ /**
887
+ * Stores the list of folders that need to be accessible by the Enclave
888
+ *
889
+ * @generated from field: repeated string folders = 2;
890
+ */
891
+ this.folders = [];
892
+ /**
893
+ * Stores the list of files that need to be accessible by the Enclave
894
+ *
895
+ * @generated from field: repeated string files = 3;
896
+ */
897
+ this.files = [];
898
+ protobuf_1.proto3.util.initPartial(data, this);
899
+ }
900
+ static fromBinary(bytes, options) {
901
+ return new EnclaveResources().fromBinary(bytes, options);
902
+ }
903
+ static fromJson(jsonValue, options) {
904
+ return new EnclaveResources().fromJson(jsonValue, options);
905
+ }
906
+ static fromJsonString(jsonString, options) {
907
+ return new EnclaveResources().fromJsonString(jsonString, options);
908
+ }
909
+ static equals(a, b) {
910
+ return protobuf_1.proto3.util.equals(EnclaveResources, a, b);
911
+ }
912
+ }
913
+ exports.EnclaveResources = EnclaveResources;
914
+ EnclaveResources.runtime = protobuf_1.proto3;
915
+ EnclaveResources.typeName = "Scailo.EnclaveResources";
916
+ EnclaveResources.fields = protobuf_1.proto3.util.newFieldList(() => [
917
+ { no: 1, name: "logos", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
918
+ { no: 2, name: "folders", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
919
+ { no: 3, name: "files", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
920
+ ]);
921
+ /**
922
+ *
923
+ * Describes the manifest file of an Enclave. Stores the attributes that can be a part of the MANIFEST.yaml file, that is present in the root folder of an Enclave
924
+ *
925
+ * @generated from message Scailo.EnclaveManifest
926
+ */
927
+ class EnclaveManifest extends protobuf_1.Message {
928
+ constructor(data) {
929
+ super();
930
+ /**
931
+ * Stores the manifest version
932
+ *
933
+ * @generated from field: string manifest_version = 1 [json_name = "manifest_version"];
934
+ */
935
+ this.manifestVersion = "";
936
+ /**
937
+ * Stores the enclave type (valid options are node, golang, python)
938
+ *
939
+ * @generated from field: string enclave_type = 2 [json_name = "enclave_type"];
940
+ */
941
+ this.enclaveType = "";
942
+ /**
943
+ * Stores the application version
944
+ *
945
+ * @generated from field: string app_version = 3 [json_name = "app_version"];
946
+ */
947
+ this.appVersion = "";
948
+ /**
949
+ * Stores the name of the application
950
+ *
951
+ * @generated from field: string app_name = 4 [json_name = "app_name"];
952
+ */
953
+ this.appName = "";
954
+ /**
955
+ * Stores the name of the enclave
956
+ *
957
+ * @generated from field: string enclave_name = 5 [json_name = "enclave_name"];
958
+ */
959
+ this.enclaveName = "";
960
+ /**
961
+ * Stores the unique identifier for the application
962
+ *
963
+ * @generated from field: string app_unique_identifier = 6 [json_name = "app_unique_identifier"];
964
+ */
965
+ this.appUniqueIdentifier = "";
966
+ /**
967
+ * Stores the command that starts the enclave
968
+ *
969
+ * @generated from field: string start_exec = 7 [json_name = "start_exec"];
970
+ */
971
+ this.startExec = "";
972
+ protobuf_1.proto3.util.initPartial(data, this);
973
+ }
974
+ static fromBinary(bytes, options) {
975
+ return new EnclaveManifest().fromBinary(bytes, options);
976
+ }
977
+ static fromJson(jsonValue, options) {
978
+ return new EnclaveManifest().fromJson(jsonValue, options);
979
+ }
980
+ static fromJsonString(jsonString, options) {
981
+ return new EnclaveManifest().fromJsonString(jsonString, options);
982
+ }
983
+ static equals(a, b) {
984
+ return protobuf_1.proto3.util.equals(EnclaveManifest, a, b);
985
+ }
986
+ }
987
+ exports.EnclaveManifest = EnclaveManifest;
988
+ EnclaveManifest.runtime = protobuf_1.proto3;
989
+ EnclaveManifest.typeName = "Scailo.EnclaveManifest";
990
+ EnclaveManifest.fields = protobuf_1.proto3.util.newFieldList(() => [
991
+ { no: 1, name: "manifest_version", jsonName: "manifest_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
992
+ { no: 2, name: "enclave_type", jsonName: "enclave_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
993
+ { no: 3, name: "app_version", jsonName: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
994
+ { no: 4, name: "app_name", jsonName: "app_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
995
+ { no: 5, name: "enclave_name", jsonName: "enclave_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
996
+ { no: 6, name: "app_unique_identifier", jsonName: "app_unique_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
997
+ { no: 7, name: "start_exec", jsonName: "start_exec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
998
+ { no: 10, name: "resources", kind: "message", T: EnclaveResources },
999
+ ]);
1000
+ /**
1001
+ *
1002
+ * Describes the parameters that are a part of each enclave ingress
1003
+ *
1004
+ * @generated from message Scailo.EnclaveIngress
1005
+ */
1006
+ class EnclaveIngress extends protobuf_1.Message {
1007
+ constructor(data) {
1008
+ super();
1009
+ /**
1010
+ * Stores a globally unique entity UUID. This will be set at the organization level
1011
+ *
1012
+ * @generated from field: string entity_uuid = 1;
1013
+ */
1014
+ this.entityUuid = "";
1015
+ /**
1016
+ * Stores the unique token that can be used to identify the user who executed this enclave
1017
+ *
1018
+ * @generated from field: string token = 10;
1019
+ */
1020
+ this.token = "";
1021
+ /**
1022
+ * Stores the expiry timestamp of the ingress token
1023
+ *
1024
+ * @generated from field: uint64 expires_at = 11;
1025
+ */
1026
+ this.expiresAt = protobuf_1.protoInt64.zero;
1027
+ /**
1028
+ * Stores the ID of the file that is being executed
1029
+ *
1030
+ * @generated from field: uint64 vault_file_id = 20;
1031
+ */
1032
+ this.vaultFileId = protobuf_1.protoInt64.zero;
1033
+ /**
1034
+ * Stores the ID of the version of the file that is being executed
1035
+ *
1036
+ * @generated from field: uint64 vault_file_version_id = 21;
1037
+ */
1038
+ this.vaultFileVersionId = protobuf_1.protoInt64.zero;
1039
+ /**
1040
+ * Stores the unique identifier of the application
1041
+ *
1042
+ * @generated from field: string enclave_name = 22;
1043
+ */
1044
+ this.enclaveName = "";
1045
+ /**
1046
+ * Stores the IP address from where the app was executed
1047
+ *
1048
+ * @generated from field: string ip_addr = 24;
1049
+ */
1050
+ this.ipAddr = "";
1051
+ /**
1052
+ * Stores the ID of the user who executed this enclave
1053
+ *
1054
+ * @generated from field: uint64 runner_user_id = 30;
1055
+ */
1056
+ this.runnerUserId = protobuf_1.protoInt64.zero;
1057
+ /**
1058
+ * Stores the ID of the user when this enclave was executed
1059
+ *
1060
+ * @generated from field: uint64 runner_role_id = 31;
1061
+ */
1062
+ this.runnerRoleId = protobuf_1.protoInt64.zero;
1063
+ /**
1064
+ * Stores the endpoint of the application execution
1065
+ *
1066
+ * @generated from field: string app_endpoint = 60;
1067
+ */
1068
+ this.appEndpoint = "";
1069
+ protobuf_1.proto3.util.initPartial(data, this);
1070
+ }
1071
+ static fromBinary(bytes, options) {
1072
+ return new EnclaveIngress().fromBinary(bytes, options);
1073
+ }
1074
+ static fromJson(jsonValue, options) {
1075
+ return new EnclaveIngress().fromJson(jsonValue, options);
1076
+ }
1077
+ static fromJsonString(jsonString, options) {
1078
+ return new EnclaveIngress().fromJsonString(jsonString, options);
1079
+ }
1080
+ static equals(a, b) {
1081
+ return protobuf_1.proto3.util.equals(EnclaveIngress, a, b);
1082
+ }
1083
+ }
1084
+ exports.EnclaveIngress = EnclaveIngress;
1085
+ EnclaveIngress.runtime = protobuf_1.proto3;
1086
+ EnclaveIngress.typeName = "Scailo.EnclaveIngress";
1087
+ EnclaveIngress.fields = protobuf_1.proto3.util.newFieldList(() => [
1088
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1089
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
1090
+ { no: 10, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1091
+ { no: 11, name: "expires_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1092
+ { no: 20, name: "vault_file_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1093
+ { no: 21, name: "vault_file_version_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1094
+ { no: 22, name: "enclave_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1095
+ { no: 24, name: "ip_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1096
+ { no: 30, name: "runner_user_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1097
+ { no: 31, name: "runner_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1098
+ { no: 60, name: "app_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1099
+ ]);
1100
+ /**
1101
+ *
1102
+ * Describes the message consisting of the list of enclave ingresses
1103
+ *
1104
+ * @generated from message Scailo.EnclaveIngressesList
1105
+ */
1106
+ class EnclaveIngressesList extends protobuf_1.Message {
1107
+ constructor(data) {
1108
+ super();
1109
+ /**
1110
+ * List of runs
1111
+ *
1112
+ * @generated from field: repeated Scailo.EnclaveIngress list = 1;
1113
+ */
1114
+ this.list = [];
1115
+ protobuf_1.proto3.util.initPartial(data, this);
1116
+ }
1117
+ static fromBinary(bytes, options) {
1118
+ return new EnclaveIngressesList().fromBinary(bytes, options);
1119
+ }
1120
+ static fromJson(jsonValue, options) {
1121
+ return new EnclaveIngressesList().fromJson(jsonValue, options);
1122
+ }
1123
+ static fromJsonString(jsonString, options) {
1124
+ return new EnclaveIngressesList().fromJsonString(jsonString, options);
1125
+ }
1126
+ static equals(a, b) {
1127
+ return protobuf_1.proto3.util.equals(EnclaveIngressesList, a, b);
1128
+ }
1129
+ }
1130
+ exports.EnclaveIngressesList = EnclaveIngressesList;
1131
+ EnclaveIngressesList.runtime = protobuf_1.proto3;
1132
+ EnclaveIngressesList.typeName = "Scailo.EnclaveIngressesList";
1133
+ EnclaveIngressesList.fields = protobuf_1.proto3.util.newFieldList(() => [
1134
+ { no: 1, name: "list", kind: "message", T: EnclaveIngress, repeated: true },
1135
+ ]);
1136
+ /**
1137
+ *
1138
+ * Describes the request payload of a count filter for enclave runs
1139
+ *
1140
+ * @generated from message Scailo.EnclaveIngressCountReq
1141
+ */
1142
+ class EnclaveIngressCountReq extends protobuf_1.Message {
1143
+ constructor(data) {
1144
+ super();
1145
+ /**
1146
+ * If true, then returns only active records. If false, then returns only inactive records
1147
+ *
1148
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
1149
+ */
1150
+ this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
1151
+ /**
1152
+ * The minimum timestamp that needs to be considered to filter by creation
1153
+ *
1154
+ * @generated from field: uint64 creation_timestamp_start = 101;
1155
+ */
1156
+ this.creationTimestampStart = protobuf_1.protoInt64.zero;
1157
+ /**
1158
+ * The maximum timestamp that needs to be considered to filter by creation
1159
+ *
1160
+ * @generated from field: uint64 creation_timestamp_end = 102;
1161
+ */
1162
+ this.creationTimestampEnd = protobuf_1.protoInt64.zero;
1163
+ /**
1164
+ * The minimum timestamp that needs to be considered to filter by modification
1165
+ *
1166
+ * @generated from field: uint64 modification_timestamp_start = 103;
1167
+ */
1168
+ this.modificationTimestampStart = protobuf_1.protoInt64.zero;
1169
+ /**
1170
+ * The maximum timestamp that needs to be considered to filter by modification
1171
+ *
1172
+ * @generated from field: uint64 modification_timestamp_end = 104;
1173
+ */
1174
+ this.modificationTimestampEnd = protobuf_1.protoInt64.zero;
1175
+ /**
1176
+ * The UUID of the file
1177
+ *
1178
+ * @generated from field: string vault_file_uuid = 20;
1179
+ */
1180
+ this.vaultFileUuid = "";
1181
+ /**
1182
+ * The UUID of the version
1183
+ *
1184
+ * --------------------------------------------------------
1185
+ *
1186
+ * @generated from field: string vault_file_version_uuid = 21;
1187
+ */
1188
+ this.vaultFileVersionUuid = "";
1189
+ /**
1190
+ * Stores the ID of the user who executed this enclave
1191
+ *
1192
+ * @generated from field: uint64 runner_user_id = 30;
1193
+ */
1194
+ this.runnerUserId = protobuf_1.protoInt64.zero;
1195
+ /**
1196
+ * Stores the ID of the user when this enclave was executed
1197
+ *
1198
+ * @generated from field: uint64 runner_role_id = 31;
1199
+ */
1200
+ this.runnerRoleId = protobuf_1.protoInt64.zero;
1201
+ protobuf_1.proto3.util.initPartial(data, this);
1202
+ }
1203
+ static fromBinary(bytes, options) {
1204
+ return new EnclaveIngressCountReq().fromBinary(bytes, options);
1205
+ }
1206
+ static fromJson(jsonValue, options) {
1207
+ return new EnclaveIngressCountReq().fromJson(jsonValue, options);
1208
+ }
1209
+ static fromJsonString(jsonString, options) {
1210
+ return new EnclaveIngressCountReq().fromJsonString(jsonString, options);
1211
+ }
1212
+ static equals(a, b) {
1213
+ return protobuf_1.proto3.util.equals(EnclaveIngressCountReq, a, b);
1214
+ }
1215
+ }
1216
+ exports.EnclaveIngressCountReq = EnclaveIngressCountReq;
1217
+ EnclaveIngressCountReq.runtime = protobuf_1.proto3;
1218
+ EnclaveIngressCountReq.typeName = "Scailo.EnclaveIngressCountReq";
1219
+ EnclaveIngressCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1220
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
1221
+ { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1222
+ { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1223
+ { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1224
+ { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1225
+ { no: 20, name: "vault_file_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1226
+ { no: 21, name: "vault_file_version_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1227
+ { no: 30, name: "runner_user_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1228
+ { no: 31, name: "runner_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1229
+ ]);
1230
+ /**
1231
+ *
1232
+ * Describes the base request payload of a filter search for enclave runs
1233
+ *
1234
+ * @generated from message Scailo.EnclaveIngressFilterReq
1235
+ */
1236
+ class EnclaveIngressFilterReq extends protobuf_1.Message {
1237
+ constructor(data) {
1238
+ super();
1239
+ /**
1240
+ * If true, then returns only active records. If false, then returns only inactive records
1241
+ *
1242
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
1243
+ */
1244
+ this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
1245
+ /**
1246
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
1247
+ *
1248
+ * @generated from field: int64 count = 2;
1249
+ */
1250
+ this.count = protobuf_1.protoInt64.zero;
1251
+ /**
1252
+ * The number that need to be offset by before fetching the records
1253
+ *
1254
+ * // The sort order that is to be used to fetch the pagination response
1255
+ * SORT_ORDER sort_order = 4;
1256
+ * // The sort key that is to be used to fetch the pagination response
1257
+ * VAULT_SORT_KEY sort_key = 5;
1258
+ *
1259
+ * @generated from field: uint64 offset = 3;
1260
+ */
1261
+ this.offset = protobuf_1.protoInt64.zero;
1262
+ /**
1263
+ * The minimum timestamp that needs to be considered to filter by creation
1264
+ *
1265
+ * @generated from field: uint64 creation_timestamp_start = 101;
1266
+ */
1267
+ this.creationTimestampStart = protobuf_1.protoInt64.zero;
1268
+ /**
1269
+ * The maximum timestamp that needs to be considered to filter by creation
1270
+ *
1271
+ * @generated from field: uint64 creation_timestamp_end = 102;
1272
+ */
1273
+ this.creationTimestampEnd = protobuf_1.protoInt64.zero;
1274
+ /**
1275
+ * The minimum timestamp that needs to be considered to filter by modification
1276
+ *
1277
+ * @generated from field: uint64 modification_timestamp_start = 103;
1278
+ */
1279
+ this.modificationTimestampStart = protobuf_1.protoInt64.zero;
1280
+ /**
1281
+ * The maximum timestamp that needs to be considered to filter by modification
1282
+ *
1283
+ * @generated from field: uint64 modification_timestamp_end = 104;
1284
+ */
1285
+ this.modificationTimestampEnd = protobuf_1.protoInt64.zero;
1286
+ /**
1287
+ * The UUID of the file
1288
+ *
1289
+ * @generated from field: string vault_file_uuid = 20;
1290
+ */
1291
+ this.vaultFileUuid = "";
1292
+ /**
1293
+ * The UUID of the version
1294
+ *
1295
+ * --------------------------------------------------------
1296
+ *
1297
+ * @generated from field: string vault_file_version_uuid = 21;
1298
+ */
1299
+ this.vaultFileVersionUuid = "";
1300
+ /**
1301
+ * Stores the ID of the user who executed this enclave
1302
+ *
1303
+ * @generated from field: uint64 runner_user_id = 30;
1304
+ */
1305
+ this.runnerUserId = protobuf_1.protoInt64.zero;
1306
+ /**
1307
+ * Stores the ID of the user when this enclave was executed
1308
+ *
1309
+ * @generated from field: uint64 runner_role_id = 31;
1310
+ */
1311
+ this.runnerRoleId = protobuf_1.protoInt64.zero;
1312
+ protobuf_1.proto3.util.initPartial(data, this);
1313
+ }
1314
+ static fromBinary(bytes, options) {
1315
+ return new EnclaveIngressFilterReq().fromBinary(bytes, options);
1316
+ }
1317
+ static fromJson(jsonValue, options) {
1318
+ return new EnclaveIngressFilterReq().fromJson(jsonValue, options);
1319
+ }
1320
+ static fromJsonString(jsonString, options) {
1321
+ return new EnclaveIngressFilterReq().fromJsonString(jsonString, options);
1322
+ }
1323
+ static equals(a, b) {
1324
+ return protobuf_1.proto3.util.equals(EnclaveIngressFilterReq, a, b);
1325
+ }
1326
+ }
1327
+ exports.EnclaveIngressFilterReq = EnclaveIngressFilterReq;
1328
+ EnclaveIngressFilterReq.runtime = protobuf_1.proto3;
1329
+ EnclaveIngressFilterReq.typeName = "Scailo.EnclaveIngressFilterReq";
1330
+ EnclaveIngressFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1331
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
1332
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1333
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1334
+ { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1335
+ { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1336
+ { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1337
+ { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1338
+ { no: 20, name: "vault_file_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1339
+ { no: 21, name: "vault_file_version_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1340
+ { no: 30, name: "runner_user_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1341
+ { no: 31, name: "runner_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1342
+ ]);
1343
+ /**
1344
+ *
1345
+ * The request payload to verify an enclave ingress
1346
+ *
1347
+ * @generated from message Scailo.VerifyEnclaveIngressRequest
1348
+ */
1349
+ class VerifyEnclaveIngressRequest extends protobuf_1.Message {
1350
+ constructor(data) {
1351
+ super();
1352
+ /**
1353
+ * The token that needs to be verified
1354
+ *
1355
+ * @generated from field: string token = 1;
1356
+ */
1357
+ this.token = "";
1358
+ protobuf_1.proto3.util.initPartial(data, this);
1359
+ }
1360
+ static fromBinary(bytes, options) {
1361
+ return new VerifyEnclaveIngressRequest().fromBinary(bytes, options);
1362
+ }
1363
+ static fromJson(jsonValue, options) {
1364
+ return new VerifyEnclaveIngressRequest().fromJson(jsonValue, options);
1365
+ }
1366
+ static fromJsonString(jsonString, options) {
1367
+ return new VerifyEnclaveIngressRequest().fromJsonString(jsonString, options);
1368
+ }
1369
+ static equals(a, b) {
1370
+ return protobuf_1.proto3.util.equals(VerifyEnclaveIngressRequest, a, b);
1371
+ }
1372
+ }
1373
+ exports.VerifyEnclaveIngressRequest = VerifyEnclaveIngressRequest;
1374
+ VerifyEnclaveIngressRequest.runtime = protobuf_1.proto3;
1375
+ VerifyEnclaveIngressRequest.typeName = "Scailo.VerifyEnclaveIngressRequest";
1376
+ VerifyEnclaveIngressRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1377
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1378
+ ]);
1379
+ /**
1380
+ *
1381
+ * The response payload to verify an enclave ingress
1382
+ *
1383
+ * @generated from message Scailo.VerifyEnclaveIngressResponse
1384
+ */
1385
+ class VerifyEnclaveIngressResponse extends protobuf_1.Message {
1386
+ constructor(data) {
1387
+ super();
1388
+ /**
1389
+ * The name of the enclave
1390
+ *
1391
+ * @generated from field: string enclave_name = 1;
1392
+ */
1393
+ this.enclaveName = "";
1394
+ /**
1395
+ * The UUID of the user who is running the enclave
1396
+ *
1397
+ * @generated from field: string user_uuid = 2;
1398
+ */
1399
+ this.userUuid = "";
1400
+ /**
1401
+ * The UUID of the user's role
1402
+ *
1403
+ * @generated from field: string role_uuid = 3;
1404
+ */
1405
+ this.roleUuid = "";
1406
+ /**
1407
+ * The auth token of the user that can be used for subsequent requests
1408
+ *
1409
+ * @generated from field: string auth_token = 4;
1410
+ */
1411
+ this.authToken = "";
1412
+ /**
1413
+ * The timestamp after which the auth token expires
1414
+ *
1415
+ * @generated from field: uint64 expires_at = 5;
1416
+ */
1417
+ this.expiresAt = protobuf_1.protoInt64.zero;
1418
+ protobuf_1.proto3.util.initPartial(data, this);
1419
+ }
1420
+ static fromBinary(bytes, options) {
1421
+ return new VerifyEnclaveIngressResponse().fromBinary(bytes, options);
1422
+ }
1423
+ static fromJson(jsonValue, options) {
1424
+ return new VerifyEnclaveIngressResponse().fromJson(jsonValue, options);
1425
+ }
1426
+ static fromJsonString(jsonString, options) {
1427
+ return new VerifyEnclaveIngressResponse().fromJsonString(jsonString, options);
1428
+ }
1429
+ static equals(a, b) {
1430
+ return protobuf_1.proto3.util.equals(VerifyEnclaveIngressResponse, a, b);
1431
+ }
1432
+ }
1433
+ exports.VerifyEnclaveIngressResponse = VerifyEnclaveIngressResponse;
1434
+ VerifyEnclaveIngressResponse.runtime = protobuf_1.proto3;
1435
+ VerifyEnclaveIngressResponse.typeName = "Scailo.VerifyEnclaveIngressResponse";
1436
+ VerifyEnclaveIngressResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
1437
+ { no: 1, name: "enclave_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1438
+ { no: 2, name: "user_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1439
+ { no: 3, name: "role_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1440
+ { no: 4, name: "auth_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1441
+ { no: 5, name: "expires_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1442
+ ]);
1443
+ /**
1444
+ *
1445
+ * Stores the payload that is necessary to create a custom environment variable for an enclave
1446
+ *
1447
+ * @generated from message Scailo.EnclaveEnvironmentVariableAddRequest
1448
+ */
1449
+ class EnclaveEnvironmentVariableAddRequest extends protobuf_1.Message {
1450
+ constructor(data) {
1451
+ super();
1452
+ /**
1453
+ * The UUID of the enclave file that will be updated with the given environment variable
1454
+ *
1455
+ * @generated from field: string file_uuid = 1;
1456
+ */
1457
+ this.fileUuid = "";
1458
+ /**
1459
+ * The name of the environment variable
1460
+ *
1461
+ * @generated from field: string name = 11;
1462
+ */
1463
+ this.name = "";
1464
+ /**
1465
+ * The value of the environment variable
1466
+ *
1467
+ * @generated from field: string value = 12;
1468
+ */
1469
+ this.value = "";
1470
+ /**
1471
+ * Denotes if the value should be stored as a secret (will not be visible to the user post creation)
1472
+ *
1473
+ * @generated from field: bool is_secret = 13;
1474
+ */
1475
+ this.isSecret = false;
1476
+ protobuf_1.proto3.util.initPartial(data, this);
1477
+ }
1478
+ static fromBinary(bytes, options) {
1479
+ return new EnclaveEnvironmentVariableAddRequest().fromBinary(bytes, options);
1480
+ }
1481
+ static fromJson(jsonValue, options) {
1482
+ return new EnclaveEnvironmentVariableAddRequest().fromJson(jsonValue, options);
1483
+ }
1484
+ static fromJsonString(jsonString, options) {
1485
+ return new EnclaveEnvironmentVariableAddRequest().fromJsonString(jsonString, options);
1486
+ }
1487
+ static equals(a, b) {
1488
+ return protobuf_1.proto3.util.equals(EnclaveEnvironmentVariableAddRequest, a, b);
1489
+ }
1490
+ }
1491
+ exports.EnclaveEnvironmentVariableAddRequest = EnclaveEnvironmentVariableAddRequest;
1492
+ EnclaveEnvironmentVariableAddRequest.runtime = protobuf_1.proto3;
1493
+ EnclaveEnvironmentVariableAddRequest.typeName = "Scailo.EnclaveEnvironmentVariableAddRequest";
1494
+ EnclaveEnvironmentVariableAddRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1495
+ { no: 1, name: "file_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1496
+ { no: 11, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1497
+ { no: 12, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1498
+ { no: 13, name: "is_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1499
+ ]);
1500
+ /**
1501
+ *
1502
+ * Stores the payload that is necessary to update a custom environment variable for an enclave
1503
+ *
1504
+ * @generated from message Scailo.EnclaveEnvironmentVariableUpdateRequest
1505
+ */
1506
+ class EnclaveEnvironmentVariableUpdateRequest extends protobuf_1.Message {
1507
+ constructor(data) {
1508
+ super();
1509
+ /**
1510
+ * The UUID of the environment variables that needs to be updated
1511
+ *
1512
+ * @generated from field: string uuid = 1;
1513
+ */
1514
+ this.uuid = "";
1515
+ /**
1516
+ * The value of the environment variable that needs to be updated
1517
+ *
1518
+ * @generated from field: string value = 11;
1519
+ */
1520
+ this.value = "";
1521
+ protobuf_1.proto3.util.initPartial(data, this);
1522
+ }
1523
+ static fromBinary(bytes, options) {
1524
+ return new EnclaveEnvironmentVariableUpdateRequest().fromBinary(bytes, options);
1525
+ }
1526
+ static fromJson(jsonValue, options) {
1527
+ return new EnclaveEnvironmentVariableUpdateRequest().fromJson(jsonValue, options);
1528
+ }
1529
+ static fromJsonString(jsonString, options) {
1530
+ return new EnclaveEnvironmentVariableUpdateRequest().fromJsonString(jsonString, options);
1531
+ }
1532
+ static equals(a, b) {
1533
+ return protobuf_1.proto3.util.equals(EnclaveEnvironmentVariableUpdateRequest, a, b);
1534
+ }
1535
+ }
1536
+ exports.EnclaveEnvironmentVariableUpdateRequest = EnclaveEnvironmentVariableUpdateRequest;
1537
+ EnclaveEnvironmentVariableUpdateRequest.runtime = protobuf_1.proto3;
1538
+ EnclaveEnvironmentVariableUpdateRequest.typeName = "Scailo.EnclaveEnvironmentVariableUpdateRequest";
1539
+ EnclaveEnvironmentVariableUpdateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1540
+ { no: 1, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1541
+ { no: 11, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1542
+ ]);
1543
+ /**
1544
+ *
1545
+ * Denotes an individual environment variable that is part of an enclave
1546
+ *
1547
+ * @generated from message Scailo.EnclaveEnvironmentVariable
1548
+ */
1549
+ class EnclaveEnvironmentVariable extends protobuf_1.Message {
1550
+ constructor(data) {
1551
+ super();
1552
+ /**
1553
+ * Stores a globally unique entity UUID. This will be set at the organization level
1554
+ *
1555
+ * @generated from field: string entity_uuid = 1;
1556
+ */
1557
+ this.entityUuid = "";
1558
+ /**
1559
+ * Stores the ID of the file that the environment variable belongs to
1560
+ *
1561
+ * @generated from field: uint64 vault_file_id = 10;
1562
+ */
1563
+ this.vaultFileId = protobuf_1.protoInt64.zero;
1564
+ /**
1565
+ * The name of the environment variable
1566
+ *
1567
+ * @generated from field: string name = 11;
1568
+ */
1569
+ this.name = "";
1570
+ /**
1571
+ * The value of the environment variable
1572
+ *
1573
+ * @generated from field: string value = 12;
1574
+ */
1575
+ this.value = "";
1576
+ /**
1577
+ * Denotes if the value should be stored as a secret (will not be visible to the user post creation)
1578
+ *
1579
+ * @generated from field: bool is_secret = 13;
1580
+ */
1581
+ this.isSecret = false;
1582
+ protobuf_1.proto3.util.initPartial(data, this);
1583
+ }
1584
+ static fromBinary(bytes, options) {
1585
+ return new EnclaveEnvironmentVariable().fromBinary(bytes, options);
1586
+ }
1587
+ static fromJson(jsonValue, options) {
1588
+ return new EnclaveEnvironmentVariable().fromJson(jsonValue, options);
1589
+ }
1590
+ static fromJsonString(jsonString, options) {
1591
+ return new EnclaveEnvironmentVariable().fromJsonString(jsonString, options);
1592
+ }
1593
+ static equals(a, b) {
1594
+ return protobuf_1.proto3.util.equals(EnclaveEnvironmentVariable, a, b);
1595
+ }
1596
+ }
1597
+ exports.EnclaveEnvironmentVariable = EnclaveEnvironmentVariable;
1598
+ EnclaveEnvironmentVariable.runtime = protobuf_1.proto3;
1599
+ EnclaveEnvironmentVariable.typeName = "Scailo.EnclaveEnvironmentVariable";
1600
+ EnclaveEnvironmentVariable.fields = protobuf_1.proto3.util.newFieldList(() => [
1601
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1602
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
1603
+ { no: 10, name: "vault_file_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1604
+ { no: 11, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1605
+ { no: 12, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1606
+ { no: 13, name: "is_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1607
+ ]);
1608
+ /**
1609
+ *
1610
+ * Denotes the list of environment variables that are part of an enclave
1611
+ *
1612
+ * @generated from message Scailo.EnclaveEnvironmentVariablesList
1613
+ */
1614
+ class EnclaveEnvironmentVariablesList extends protobuf_1.Message {
1615
+ constructor(data) {
1616
+ super();
1617
+ /**
1618
+ * List of environment variables
1619
+ *
1620
+ * @generated from field: repeated Scailo.EnclaveEnvironmentVariable list = 1;
1621
+ */
1622
+ this.list = [];
1623
+ protobuf_1.proto3.util.initPartial(data, this);
1624
+ }
1625
+ static fromBinary(bytes, options) {
1626
+ return new EnclaveEnvironmentVariablesList().fromBinary(bytes, options);
1627
+ }
1628
+ static fromJson(jsonValue, options) {
1629
+ return new EnclaveEnvironmentVariablesList().fromJson(jsonValue, options);
1630
+ }
1631
+ static fromJsonString(jsonString, options) {
1632
+ return new EnclaveEnvironmentVariablesList().fromJsonString(jsonString, options);
1633
+ }
1634
+ static equals(a, b) {
1635
+ return protobuf_1.proto3.util.equals(EnclaveEnvironmentVariablesList, a, b);
1636
+ }
1637
+ }
1638
+ exports.EnclaveEnvironmentVariablesList = EnclaveEnvironmentVariablesList;
1639
+ EnclaveEnvironmentVariablesList.runtime = protobuf_1.proto3;
1640
+ EnclaveEnvironmentVariablesList.typeName = "Scailo.EnclaveEnvironmentVariablesList";
1641
+ EnclaveEnvironmentVariablesList.fields = protobuf_1.proto3.util.newFieldList(() => [
1642
+ { no: 1, name: "list", kind: "message", T: EnclaveEnvironmentVariable, repeated: true },
1643
+ ]);
871
1644
  /**
872
1645
  * @generated from message Scailo.VaultSearchReq
873
1646
  */