@sprucelabs/spruce-file-utils 18.3.0 → 18.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -921,11 +921,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
921
921
  }
922
922
  }
923
923
  namespace SpruceSchemas.Files.v2022_05_13 {
924
- interface SaveSettingsEmitTarget {
924
+ interface GetSettingsStatusEmitTarget {
925
925
  'organizationId': string;
926
926
  }
927
- interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
928
- id: 'saveSettingsEmitTarget';
927
+ interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
928
+ id: 'getSettingsStatusEmitTarget';
929
929
  version: 'v2022_05_13';
930
930
  namespace: 'Files';
931
931
  name: '';
@@ -938,134 +938,95 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
938
938
  };
939
939
  };
940
940
  }
941
- interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
941
+ interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
942
942
  }
943
943
  }
944
944
  namespace SpruceSchemas.Files.v2022_05_13 {
945
- interface SaveSettingsEmitPayload {
946
- 'awsAccessKeyId': string;
947
- 'awsSecretAccessKey': string;
948
- 'awsS3Bucket': string;
945
+ interface GetSettingsStatusResponsePayload {
946
+ 'didConfigureFileUploads': boolean;
949
947
  }
950
- interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
951
- id: 'saveSettingsEmitPayload';
948
+ interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
949
+ id: 'getSettingsStatusResponsePayload';
952
950
  version: 'v2022_05_13';
953
951
  namespace: 'Files';
954
952
  name: '';
955
953
  fields: {
956
954
  /** . */
957
- 'awsAccessKeyId': {
958
- type: 'id';
959
- isRequired: true;
960
- options: undefined;
961
- };
962
- /** . */
963
- 'awsSecretAccessKey': {
964
- type: 'text';
965
- isRequired: true;
966
- options: undefined;
967
- };
968
- /** . */
969
- 'awsS3Bucket': {
970
- type: 'text';
955
+ 'didConfigureFileUploads': {
956
+ type: 'boolean';
971
957
  isRequired: true;
972
958
  options: undefined;
973
959
  };
974
960
  };
975
961
  }
976
- interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
962
+ interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
977
963
  }
978
964
  }
979
965
  namespace SpruceSchemas.Files.v2022_05_13 {
980
- interface SaveSettingsResponsePayload {
981
- 'wasSuccessful': boolean;
966
+ interface SaveSettingsEmitTarget {
967
+ 'organizationId': string;
982
968
  }
983
- interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
984
- id: 'saveSettingsResponsePayload';
969
+ interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
970
+ id: 'saveSettingsEmitTarget';
985
971
  version: 'v2022_05_13';
986
972
  namespace: 'Files';
987
973
  name: '';
988
974
  fields: {
989
975
  /** . */
990
- 'wasSuccessful': {
991
- type: 'boolean';
976
+ 'organizationId': {
977
+ type: 'id';
992
978
  isRequired: true;
993
979
  options: undefined;
994
980
  };
995
981
  };
996
982
  }
997
- interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
983
+ interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
998
984
  }
999
985
  }
1000
986
  namespace SpruceSchemas.Files.v2022_05_13 {
1001
- interface UploadEmitTarget {
1002
- 'locationId'?: string | undefined | null;
1003
- 'organizationId'?: string | undefined | null;
1004
- 'filePersonId'?: string | undefined | null;
987
+ interface SaveSettingsEmitPayload {
988
+ 'awsAccessKeyId': string;
989
+ 'awsSecretAccessKey': string;
990
+ 'awsS3Bucket': string;
1005
991
  }
1006
- interface UploadEmitTargetSchema extends SpruceSchema.Schema {
1007
- id: 'uploadEmitTarget';
992
+ interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
993
+ id: 'saveSettingsEmitPayload';
1008
994
  version: 'v2022_05_13';
1009
995
  namespace: 'Files';
1010
996
  name: '';
1011
997
  fields: {
1012
998
  /** . */
1013
- 'locationId': {
1014
- type: 'id';
1015
- options: undefined;
1016
- };
1017
- /** . */
1018
- 'organizationId': {
999
+ 'awsAccessKeyId': {
1019
1000
  type: 'id';
1001
+ isRequired: true;
1020
1002
  options: undefined;
1021
1003
  };
1022
1004
  /** . */
1023
- 'filePersonId': {
1024
- type: 'text';
1025
- options: undefined;
1026
- };
1027
- };
1028
- }
1029
- interface UploadEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema> {
1030
- }
1031
- }
1032
- namespace SpruceSchemas.Files.v2022_05_13 {
1033
- interface UploadEmitPayload {
1034
- 'base64Body': string;
1035
- 'name': string;
1036
- }
1037
- interface UploadEmitPayloadSchema extends SpruceSchema.Schema {
1038
- id: 'uploadEmitPayload';
1039
- version: 'v2022_05_13';
1040
- namespace: 'Files';
1041
- name: '';
1042
- fields: {
1043
- /** . */
1044
- 'base64Body': {
1005
+ 'awsSecretAccessKey': {
1045
1006
  type: 'text';
1046
1007
  isRequired: true;
1047
1008
  options: undefined;
1048
1009
  };
1049
1010
  /** . */
1050
- 'name': {
1011
+ 'awsS3Bucket': {
1051
1012
  type: 'text';
1052
1013
  isRequired: true;
1053
1014
  options: undefined;
1054
1015
  };
1055
1016
  };
1056
1017
  }
1057
- interface UploadEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema> {
1018
+ interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
1058
1019
  }
1059
1020
  }
1060
1021
  namespace SpruceSchemas.Files.v2022_05_13 {
1061
- interface UploadEmitTargetAndPayload {
1022
+ interface SaveSettingsEmitTargetAndPayload {
1062
1023
  /** Source. */
1063
1024
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1064
- 'target'?: SpruceSchemas.Files.v2022_05_13.UploadEmitTarget | undefined | null;
1065
- 'payload': SpruceSchemas.Files.v2022_05_13.UploadEmitPayload;
1025
+ 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1026
+ 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1066
1027
  }
1067
- interface UploadEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1068
- id: 'uploadEmitTargetAndPayload';
1028
+ interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1029
+ id: 'saveSettingsEmitTargetAndPayload';
1069
1030
  version: 'v2022_05_13';
1070
1031
  namespace: 'Files';
1071
1032
  name: '';
@@ -1081,8 +1042,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1081
1042
  /** . */
1082
1043
  'target': {
1083
1044
  type: 'schema';
1045
+ isRequired: true;
1084
1046
  options: {
1085
- schema: SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema;
1047
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1086
1048
  };
1087
1049
  };
1088
1050
  /** . */
@@ -1090,12 +1052,33 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1090
1052
  type: 'schema';
1091
1053
  isRequired: true;
1092
1054
  options: {
1093
- schema: SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema;
1055
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1094
1056
  };
1095
1057
  };
1096
1058
  };
1097
1059
  }
1098
- interface UploadEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetAndPayloadSchema> {
1060
+ interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1061
+ }
1062
+ }
1063
+ namespace SpruceSchemas.Files.v2022_05_13 {
1064
+ interface SaveSettingsResponsePayload {
1065
+ 'wasSuccessful': boolean;
1066
+ }
1067
+ interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
1068
+ id: 'saveSettingsResponsePayload';
1069
+ version: 'v2022_05_13';
1070
+ namespace: 'Files';
1071
+ name: '';
1072
+ fields: {
1073
+ /** . */
1074
+ 'wasSuccessful': {
1075
+ type: 'boolean';
1076
+ isRequired: true;
1077
+ options: undefined;
1078
+ };
1079
+ };
1080
+ }
1081
+ interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
1099
1082
  }
1100
1083
  }
1101
1084
  namespace SpruceSchemas.Files.v2022_05_13 {
@@ -1121,14 +1104,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1121
1104
  }
1122
1105
  }
1123
1106
  namespace SpruceSchemas.Files.v2022_05_13 {
1124
- interface SaveSettingsEmitTargetAndPayload {
1107
+ interface GetSettingsStatusEmitTargetAndPayload {
1125
1108
  /** Source. */
1126
1109
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1127
- 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1128
- 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1110
+ 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1129
1111
  }
1130
- interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1131
- id: 'saveSettingsEmitTargetAndPayload';
1112
+ interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1113
+ id: 'getSettingsStatusEmitTargetAndPayload';
1132
1114
  version: 'v2022_05_13';
1133
1115
  namespace: 'Files';
1134
1116
  name: '';
@@ -1146,51 +1128,83 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1146
1128
  type: 'schema';
1147
1129
  isRequired: true;
1148
1130
  options: {
1149
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1150
- };
1151
- };
1152
- /** . */
1153
- 'payload': {
1154
- type: 'schema';
1155
- isRequired: true;
1156
- options: {
1157
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1131
+ schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1158
1132
  };
1159
1133
  };
1160
1134
  };
1161
1135
  }
1162
- interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1136
+ interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1163
1137
  }
1164
1138
  }
1165
1139
  namespace SpruceSchemas.Files.v2022_05_13 {
1166
- interface GetSettingsStatusEmitTarget {
1167
- 'organizationId': string;
1140
+ interface UploadEmitTarget {
1141
+ 'locationId'?: string | undefined | null;
1142
+ 'organizationId'?: string | undefined | null;
1143
+ 'filePersonId'?: string | undefined | null;
1168
1144
  }
1169
- interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
1170
- id: 'getSettingsStatusEmitTarget';
1145
+ interface UploadEmitTargetSchema extends SpruceSchema.Schema {
1146
+ id: 'uploadEmitTarget';
1171
1147
  version: 'v2022_05_13';
1172
1148
  namespace: 'Files';
1173
1149
  name: '';
1174
1150
  fields: {
1151
+ /** . */
1152
+ 'locationId': {
1153
+ type: 'id';
1154
+ options: undefined;
1155
+ };
1175
1156
  /** . */
1176
1157
  'organizationId': {
1177
1158
  type: 'id';
1159
+ options: undefined;
1160
+ };
1161
+ /** . */
1162
+ 'filePersonId': {
1163
+ type: 'text';
1164
+ options: undefined;
1165
+ };
1166
+ };
1167
+ }
1168
+ interface UploadEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema> {
1169
+ }
1170
+ }
1171
+ namespace SpruceSchemas.Files.v2022_05_13 {
1172
+ interface UploadEmitPayload {
1173
+ 'base64Body': string;
1174
+ 'name': string;
1175
+ }
1176
+ interface UploadEmitPayloadSchema extends SpruceSchema.Schema {
1177
+ id: 'uploadEmitPayload';
1178
+ version: 'v2022_05_13';
1179
+ namespace: 'Files';
1180
+ name: '';
1181
+ fields: {
1182
+ /** . */
1183
+ 'base64Body': {
1184
+ type: 'text';
1185
+ isRequired: true;
1186
+ options: undefined;
1187
+ };
1188
+ /** . */
1189
+ 'name': {
1190
+ type: 'text';
1178
1191
  isRequired: true;
1179
1192
  options: undefined;
1180
1193
  };
1181
1194
  };
1182
1195
  }
1183
- interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
1196
+ interface UploadEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema> {
1184
1197
  }
1185
1198
  }
1186
1199
  namespace SpruceSchemas.Files.v2022_05_13 {
1187
- interface GetSettingsStatusEmitTargetAndPayload {
1200
+ interface UploadEmitTargetAndPayload {
1188
1201
  /** Source. */
1189
1202
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1190
- 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1203
+ 'target'?: SpruceSchemas.Files.v2022_05_13.UploadEmitTarget | undefined | null;
1204
+ 'payload': SpruceSchemas.Files.v2022_05_13.UploadEmitPayload;
1191
1205
  }
1192
- interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1193
- id: 'getSettingsStatusEmitTargetAndPayload';
1206
+ interface UploadEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1207
+ id: 'uploadEmitTargetAndPayload';
1194
1208
  version: 'v2022_05_13';
1195
1209
  namespace: 'Files';
1196
1210
  name: '';
@@ -1206,35 +1220,21 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1206
1220
  /** . */
1207
1221
  'target': {
1208
1222
  type: 'schema';
1209
- isRequired: true;
1210
1223
  options: {
1211
- schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1224
+ schema: SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema;
1212
1225
  };
1213
1226
  };
1214
- };
1215
- }
1216
- interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1217
- }
1218
- }
1219
- namespace SpruceSchemas.Files.v2022_05_13 {
1220
- interface GetSettingsStatusResponsePayload {
1221
- 'didConfigureFileUploads': boolean;
1222
- }
1223
- interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
1224
- id: 'getSettingsStatusResponsePayload';
1225
- version: 'v2022_05_13';
1226
- namespace: 'Files';
1227
- name: '';
1228
- fields: {
1229
1227
  /** . */
1230
- 'didConfigureFileUploads': {
1231
- type: 'boolean';
1228
+ 'payload': {
1229
+ type: 'schema';
1232
1230
  isRequired: true;
1233
- options: undefined;
1231
+ options: {
1232
+ schema: SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema;
1233
+ };
1234
1234
  };
1235
1235
  };
1236
1236
  }
1237
- interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
1237
+ interface UploadEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetAndPayloadSchema> {
1238
1238
  }
1239
1239
  }
1240
1240
  namespace SpruceSchemas.Files.v2022_05_13 {
@@ -921,11 +921,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
921
921
  }
922
922
  }
923
923
  namespace SpruceSchemas.Files.v2022_05_13 {
924
- interface SaveSettingsEmitTarget {
924
+ interface GetSettingsStatusEmitTarget {
925
925
  'organizationId': string;
926
926
  }
927
- interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
928
- id: 'saveSettingsEmitTarget';
927
+ interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
928
+ id: 'getSettingsStatusEmitTarget';
929
929
  version: 'v2022_05_13';
930
930
  namespace: 'Files';
931
931
  name: '';
@@ -938,134 +938,95 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
938
938
  };
939
939
  };
940
940
  }
941
- interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
941
+ interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
942
942
  }
943
943
  }
944
944
  namespace SpruceSchemas.Files.v2022_05_13 {
945
- interface SaveSettingsEmitPayload {
946
- 'awsAccessKeyId': string;
947
- 'awsSecretAccessKey': string;
948
- 'awsS3Bucket': string;
945
+ interface GetSettingsStatusResponsePayload {
946
+ 'didConfigureFileUploads': boolean;
949
947
  }
950
- interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
951
- id: 'saveSettingsEmitPayload';
948
+ interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
949
+ id: 'getSettingsStatusResponsePayload';
952
950
  version: 'v2022_05_13';
953
951
  namespace: 'Files';
954
952
  name: '';
955
953
  fields: {
956
954
  /** . */
957
- 'awsAccessKeyId': {
958
- type: 'id';
959
- isRequired: true;
960
- options: undefined;
961
- };
962
- /** . */
963
- 'awsSecretAccessKey': {
964
- type: 'text';
965
- isRequired: true;
966
- options: undefined;
967
- };
968
- /** . */
969
- 'awsS3Bucket': {
970
- type: 'text';
955
+ 'didConfigureFileUploads': {
956
+ type: 'boolean';
971
957
  isRequired: true;
972
958
  options: undefined;
973
959
  };
974
960
  };
975
961
  }
976
- interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
962
+ interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
977
963
  }
978
964
  }
979
965
  namespace SpruceSchemas.Files.v2022_05_13 {
980
- interface SaveSettingsResponsePayload {
981
- 'wasSuccessful': boolean;
966
+ interface SaveSettingsEmitTarget {
967
+ 'organizationId': string;
982
968
  }
983
- interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
984
- id: 'saveSettingsResponsePayload';
969
+ interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
970
+ id: 'saveSettingsEmitTarget';
985
971
  version: 'v2022_05_13';
986
972
  namespace: 'Files';
987
973
  name: '';
988
974
  fields: {
989
975
  /** . */
990
- 'wasSuccessful': {
991
- type: 'boolean';
976
+ 'organizationId': {
977
+ type: 'id';
992
978
  isRequired: true;
993
979
  options: undefined;
994
980
  };
995
981
  };
996
982
  }
997
- interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
983
+ interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
998
984
  }
999
985
  }
1000
986
  namespace SpruceSchemas.Files.v2022_05_13 {
1001
- interface UploadEmitTarget {
1002
- 'locationId'?: string | undefined | null;
1003
- 'organizationId'?: string | undefined | null;
1004
- 'filePersonId'?: string | undefined | null;
987
+ interface SaveSettingsEmitPayload {
988
+ 'awsAccessKeyId': string;
989
+ 'awsSecretAccessKey': string;
990
+ 'awsS3Bucket': string;
1005
991
  }
1006
- interface UploadEmitTargetSchema extends SpruceSchema.Schema {
1007
- id: 'uploadEmitTarget';
992
+ interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
993
+ id: 'saveSettingsEmitPayload';
1008
994
  version: 'v2022_05_13';
1009
995
  namespace: 'Files';
1010
996
  name: '';
1011
997
  fields: {
1012
998
  /** . */
1013
- 'locationId': {
1014
- type: 'id';
1015
- options: undefined;
1016
- };
1017
- /** . */
1018
- 'organizationId': {
999
+ 'awsAccessKeyId': {
1019
1000
  type: 'id';
1001
+ isRequired: true;
1020
1002
  options: undefined;
1021
1003
  };
1022
1004
  /** . */
1023
- 'filePersonId': {
1024
- type: 'text';
1025
- options: undefined;
1026
- };
1027
- };
1028
- }
1029
- interface UploadEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema> {
1030
- }
1031
- }
1032
- namespace SpruceSchemas.Files.v2022_05_13 {
1033
- interface UploadEmitPayload {
1034
- 'base64Body': string;
1035
- 'name': string;
1036
- }
1037
- interface UploadEmitPayloadSchema extends SpruceSchema.Schema {
1038
- id: 'uploadEmitPayload';
1039
- version: 'v2022_05_13';
1040
- namespace: 'Files';
1041
- name: '';
1042
- fields: {
1043
- /** . */
1044
- 'base64Body': {
1005
+ 'awsSecretAccessKey': {
1045
1006
  type: 'text';
1046
1007
  isRequired: true;
1047
1008
  options: undefined;
1048
1009
  };
1049
1010
  /** . */
1050
- 'name': {
1011
+ 'awsS3Bucket': {
1051
1012
  type: 'text';
1052
1013
  isRequired: true;
1053
1014
  options: undefined;
1054
1015
  };
1055
1016
  };
1056
1017
  }
1057
- interface UploadEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema> {
1018
+ interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
1058
1019
  }
1059
1020
  }
1060
1021
  namespace SpruceSchemas.Files.v2022_05_13 {
1061
- interface UploadEmitTargetAndPayload {
1022
+ interface SaveSettingsEmitTargetAndPayload {
1062
1023
  /** Source. */
1063
1024
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1064
- 'target'?: SpruceSchemas.Files.v2022_05_13.UploadEmitTarget | undefined | null;
1065
- 'payload': SpruceSchemas.Files.v2022_05_13.UploadEmitPayload;
1025
+ 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1026
+ 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1066
1027
  }
1067
- interface UploadEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1068
- id: 'uploadEmitTargetAndPayload';
1028
+ interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1029
+ id: 'saveSettingsEmitTargetAndPayload';
1069
1030
  version: 'v2022_05_13';
1070
1031
  namespace: 'Files';
1071
1032
  name: '';
@@ -1081,8 +1042,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1081
1042
  /** . */
1082
1043
  'target': {
1083
1044
  type: 'schema';
1045
+ isRequired: true;
1084
1046
  options: {
1085
- schema: SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema;
1047
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1086
1048
  };
1087
1049
  };
1088
1050
  /** . */
@@ -1090,12 +1052,33 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1090
1052
  type: 'schema';
1091
1053
  isRequired: true;
1092
1054
  options: {
1093
- schema: SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema;
1055
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1094
1056
  };
1095
1057
  };
1096
1058
  };
1097
1059
  }
1098
- interface UploadEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetAndPayloadSchema> {
1060
+ interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1061
+ }
1062
+ }
1063
+ namespace SpruceSchemas.Files.v2022_05_13 {
1064
+ interface SaveSettingsResponsePayload {
1065
+ 'wasSuccessful': boolean;
1066
+ }
1067
+ interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
1068
+ id: 'saveSettingsResponsePayload';
1069
+ version: 'v2022_05_13';
1070
+ namespace: 'Files';
1071
+ name: '';
1072
+ fields: {
1073
+ /** . */
1074
+ 'wasSuccessful': {
1075
+ type: 'boolean';
1076
+ isRequired: true;
1077
+ options: undefined;
1078
+ };
1079
+ };
1080
+ }
1081
+ interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
1099
1082
  }
1100
1083
  }
1101
1084
  namespace SpruceSchemas.Files.v2022_05_13 {
@@ -1121,14 +1104,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1121
1104
  }
1122
1105
  }
1123
1106
  namespace SpruceSchemas.Files.v2022_05_13 {
1124
- interface SaveSettingsEmitTargetAndPayload {
1107
+ interface GetSettingsStatusEmitTargetAndPayload {
1125
1108
  /** Source. */
1126
1109
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1127
- 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1128
- 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1110
+ 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1129
1111
  }
1130
- interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1131
- id: 'saveSettingsEmitTargetAndPayload';
1112
+ interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1113
+ id: 'getSettingsStatusEmitTargetAndPayload';
1132
1114
  version: 'v2022_05_13';
1133
1115
  namespace: 'Files';
1134
1116
  name: '';
@@ -1146,51 +1128,83 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1146
1128
  type: 'schema';
1147
1129
  isRequired: true;
1148
1130
  options: {
1149
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1150
- };
1151
- };
1152
- /** . */
1153
- 'payload': {
1154
- type: 'schema';
1155
- isRequired: true;
1156
- options: {
1157
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1131
+ schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1158
1132
  };
1159
1133
  };
1160
1134
  };
1161
1135
  }
1162
- interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1136
+ interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1163
1137
  }
1164
1138
  }
1165
1139
  namespace SpruceSchemas.Files.v2022_05_13 {
1166
- interface GetSettingsStatusEmitTarget {
1167
- 'organizationId': string;
1140
+ interface UploadEmitTarget {
1141
+ 'locationId'?: string | undefined | null;
1142
+ 'organizationId'?: string | undefined | null;
1143
+ 'filePersonId'?: string | undefined | null;
1168
1144
  }
1169
- interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
1170
- id: 'getSettingsStatusEmitTarget';
1145
+ interface UploadEmitTargetSchema extends SpruceSchema.Schema {
1146
+ id: 'uploadEmitTarget';
1171
1147
  version: 'v2022_05_13';
1172
1148
  namespace: 'Files';
1173
1149
  name: '';
1174
1150
  fields: {
1151
+ /** . */
1152
+ 'locationId': {
1153
+ type: 'id';
1154
+ options: undefined;
1155
+ };
1175
1156
  /** . */
1176
1157
  'organizationId': {
1177
1158
  type: 'id';
1159
+ options: undefined;
1160
+ };
1161
+ /** . */
1162
+ 'filePersonId': {
1163
+ type: 'text';
1164
+ options: undefined;
1165
+ };
1166
+ };
1167
+ }
1168
+ interface UploadEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema> {
1169
+ }
1170
+ }
1171
+ namespace SpruceSchemas.Files.v2022_05_13 {
1172
+ interface UploadEmitPayload {
1173
+ 'base64Body': string;
1174
+ 'name': string;
1175
+ }
1176
+ interface UploadEmitPayloadSchema extends SpruceSchema.Schema {
1177
+ id: 'uploadEmitPayload';
1178
+ version: 'v2022_05_13';
1179
+ namespace: 'Files';
1180
+ name: '';
1181
+ fields: {
1182
+ /** . */
1183
+ 'base64Body': {
1184
+ type: 'text';
1185
+ isRequired: true;
1186
+ options: undefined;
1187
+ };
1188
+ /** . */
1189
+ 'name': {
1190
+ type: 'text';
1178
1191
  isRequired: true;
1179
1192
  options: undefined;
1180
1193
  };
1181
1194
  };
1182
1195
  }
1183
- interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
1196
+ interface UploadEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema> {
1184
1197
  }
1185
1198
  }
1186
1199
  namespace SpruceSchemas.Files.v2022_05_13 {
1187
- interface GetSettingsStatusEmitTargetAndPayload {
1200
+ interface UploadEmitTargetAndPayload {
1188
1201
  /** Source. */
1189
1202
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1190
- 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1203
+ 'target'?: SpruceSchemas.Files.v2022_05_13.UploadEmitTarget | undefined | null;
1204
+ 'payload': SpruceSchemas.Files.v2022_05_13.UploadEmitPayload;
1191
1205
  }
1192
- interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1193
- id: 'getSettingsStatusEmitTargetAndPayload';
1206
+ interface UploadEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1207
+ id: 'uploadEmitTargetAndPayload';
1194
1208
  version: 'v2022_05_13';
1195
1209
  namespace: 'Files';
1196
1210
  name: '';
@@ -1206,35 +1220,21 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1206
1220
  /** . */
1207
1221
  'target': {
1208
1222
  type: 'schema';
1209
- isRequired: true;
1210
1223
  options: {
1211
- schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1224
+ schema: SpruceSchemas.Files.v2022_05_13.UploadEmitTargetSchema;
1212
1225
  };
1213
1226
  };
1214
- };
1215
- }
1216
- interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1217
- }
1218
- }
1219
- namespace SpruceSchemas.Files.v2022_05_13 {
1220
- interface GetSettingsStatusResponsePayload {
1221
- 'didConfigureFileUploads': boolean;
1222
- }
1223
- interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
1224
- id: 'getSettingsStatusResponsePayload';
1225
- version: 'v2022_05_13';
1226
- namespace: 'Files';
1227
- name: '';
1228
- fields: {
1229
1227
  /** . */
1230
- 'didConfigureFileUploads': {
1231
- type: 'boolean';
1228
+ 'payload': {
1229
+ type: 'schema';
1232
1230
  isRequired: true;
1233
- options: undefined;
1231
+ options: {
1232
+ schema: SpruceSchemas.Files.v2022_05_13.UploadEmitPayloadSchema;
1233
+ };
1234
1234
  };
1235
1235
  };
1236
1236
  }
1237
- interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
1237
+ interface UploadEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.UploadEmitTargetAndPayloadSchema> {
1238
1238
  }
1239
1239
  }
1240
1240
  namespace SpruceSchemas.Files.v2022_05_13 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-file-utils",
3
3
  "description": "Utils for working with files and Sprucebot.",
4
- "version": "18.3.0",
4
+ "version": "18.5.0",
5
5
  "skill": {
6
6
  "namespace": "files"
7
7
  },