@sprucelabs/spruce-file-utils 18.6.5 → 18.6.6

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 GetSettingsStatusEmitTarget {
924
+ interface SaveSettingsEmitTarget {
925
925
  'organizationId': string;
926
926
  }
927
- interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
928
- id: 'getSettingsStatusEmitTarget';
927
+ interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
928
+ id: 'saveSettingsEmitTarget';
929
929
  version: 'v2022_05_13';
930
930
  namespace: 'Files';
931
931
  name: '';
@@ -938,117 +938,94 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
938
938
  };
939
939
  };
940
940
  }
941
- interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
941
+ interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
942
942
  }
943
943
  }
944
944
  namespace SpruceSchemas.Files.v2022_05_13 {
945
- interface GetSettingsStatusResponsePayload {
946
- 'didConfigureFileUploads': boolean;
945
+ interface SaveSettingsEmitPayload {
946
+ 'awsAccessKeyId': string;
947
+ 'awsSecretAccessKey': string;
948
+ 'awsS3Bucket': string;
947
949
  }
948
- interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
949
- id: 'getSettingsStatusResponsePayload';
950
+ interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
951
+ id: 'saveSettingsEmitPayload';
950
952
  version: 'v2022_05_13';
951
953
  namespace: 'Files';
952
954
  name: '';
953
955
  fields: {
954
956
  /** . */
955
- 'didConfigureFileUploads': {
956
- type: 'boolean';
957
+ 'awsAccessKeyId': {
958
+ type: 'id';
957
959
  isRequired: true;
958
960
  options: undefined;
959
961
  };
960
- };
961
- }
962
- interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
963
- }
964
- }
965
- namespace SpruceSchemas.Files.v2022_05_13 {
966
- interface GetUploadEndpointResponsePayload {
967
- /** . The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client. */
968
- 'restEndpointUrl'?: string | undefined | null;
969
- }
970
- interface GetUploadEndpointResponsePayloadSchema extends SpruceSchema.Schema {
971
- id: 'getUploadEndpointResponsePayload';
972
- version: 'v2022_05_13';
973
- namespace: 'Files';
974
- name: '';
975
- fields: {
976
- /** . The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client. */
977
- 'restEndpointUrl': {
962
+ /** . */
963
+ 'awsSecretAccessKey': {
978
964
  type: 'text';
979
- hint: 'The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client.';
965
+ isRequired: true;
966
+ options: undefined;
967
+ };
968
+ /** . */
969
+ 'awsS3Bucket': {
970
+ type: 'text';
971
+ isRequired: true;
980
972
  options: undefined;
981
973
  };
982
974
  };
983
975
  }
984
- interface GetUploadEndpointResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetUploadEndpointResponsePayloadSchema> {
976
+ interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
985
977
  }
986
978
  }
987
979
  namespace SpruceSchemas.Files.v2022_05_13 {
988
- interface SaveSettingsEmitTarget {
989
- 'organizationId': string;
980
+ interface SaveSettingsResponsePayload {
981
+ 'wasSuccessful': boolean;
990
982
  }
991
- interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
992
- id: 'saveSettingsEmitTarget';
983
+ interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
984
+ id: 'saveSettingsResponsePayload';
993
985
  version: 'v2022_05_13';
994
986
  namespace: 'Files';
995
987
  name: '';
996
988
  fields: {
997
989
  /** . */
998
- 'organizationId': {
999
- type: 'id';
990
+ 'wasSuccessful': {
991
+ type: 'boolean';
1000
992
  isRequired: true;
1001
993
  options: undefined;
1002
994
  };
1003
995
  };
1004
996
  }
1005
- interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
997
+ interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
1006
998
  }
1007
999
  }
1008
1000
  namespace SpruceSchemas.Files.v2022_05_13 {
1009
- interface SaveSettingsEmitPayload {
1010
- 'awsAccessKeyId': string;
1011
- 'awsSecretAccessKey': string;
1012
- 'awsS3Bucket': string;
1001
+ interface GetSettingsStatusEmitTarget {
1002
+ 'organizationId': string;
1013
1003
  }
1014
- interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
1015
- id: 'saveSettingsEmitPayload';
1004
+ interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
1005
+ id: 'getSettingsStatusEmitTarget';
1016
1006
  version: 'v2022_05_13';
1017
1007
  namespace: 'Files';
1018
1008
  name: '';
1019
1009
  fields: {
1020
1010
  /** . */
1021
- 'awsAccessKeyId': {
1011
+ 'organizationId': {
1022
1012
  type: 'id';
1023
1013
  isRequired: true;
1024
1014
  options: undefined;
1025
1015
  };
1026
- /** . */
1027
- 'awsSecretAccessKey': {
1028
- type: 'text';
1029
- isRequired: true;
1030
- options: undefined;
1031
- };
1032
- /** . */
1033
- 'awsS3Bucket': {
1034
- type: 'text';
1035
- isRequired: true;
1036
- options: undefined;
1037
- };
1038
1016
  };
1039
1017
  }
1040
- interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
1018
+ interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
1041
1019
  }
1042
1020
  }
1043
1021
  namespace SpruceSchemas.Files.v2022_05_13 {
1044
- interface SaveSettingsEmitTargetAndPayload {
1022
+ interface GetSettingsStatusEmitTargetAndPayload {
1045
1023
  /** Source. */
1046
1024
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1047
- 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1048
- 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1025
+ 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1049
1026
  }
1050
- interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1051
- id: 'saveSettingsEmitTargetAndPayload';
1027
+ interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1028
+ id: 'getSettingsStatusEmitTargetAndPayload';
1052
1029
  version: 'v2022_05_13';
1053
1030
  namespace: 'Files';
1054
1031
  name: '';
@@ -1066,51 +1043,66 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1066
1043
  type: 'schema';
1067
1044
  isRequired: true;
1068
1045
  options: {
1069
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1070
- };
1071
- };
1072
- /** . */
1073
- 'payload': {
1074
- type: 'schema';
1075
- isRequired: true;
1076
- options: {
1077
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1046
+ schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1078
1047
  };
1079
1048
  };
1080
1049
  };
1081
1050
  }
1082
- interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1051
+ interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1083
1052
  }
1084
1053
  }
1085
1054
  namespace SpruceSchemas.Files.v2022_05_13 {
1086
- interface SaveSettingsResponsePayload {
1087
- 'wasSuccessful': boolean;
1055
+ interface GetSettingsStatusResponsePayload {
1056
+ 'didConfigureFileUploads': boolean;
1088
1057
  }
1089
- interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
1090
- id: 'saveSettingsResponsePayload';
1058
+ interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
1059
+ id: 'getSettingsStatusResponsePayload';
1091
1060
  version: 'v2022_05_13';
1092
1061
  namespace: 'Files';
1093
1062
  name: '';
1094
1063
  fields: {
1095
1064
  /** . */
1096
- 'wasSuccessful': {
1065
+ 'didConfigureFileUploads': {
1097
1066
  type: 'boolean';
1098
1067
  isRequired: true;
1099
1068
  options: undefined;
1100
1069
  };
1101
1070
  };
1102
1071
  }
1103
- interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
1072
+ interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
1104
1073
  }
1105
1074
  }
1106
1075
  namespace SpruceSchemas.Files.v2022_05_13 {
1107
- interface GetSettingsStatusEmitTargetAndPayload {
1076
+ interface GetUploadEndpointResponsePayload {
1077
+ /** . The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client. */
1078
+ 'restEndpointUrl'?: string | undefined | null;
1079
+ }
1080
+ interface GetUploadEndpointResponsePayloadSchema extends SpruceSchema.Schema {
1081
+ id: 'getUploadEndpointResponsePayload';
1082
+ version: 'v2022_05_13';
1083
+ namespace: 'Files';
1084
+ name: '';
1085
+ fields: {
1086
+ /** . The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client. */
1087
+ 'restEndpointUrl': {
1088
+ type: 'text';
1089
+ hint: 'The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client.';
1090
+ options: undefined;
1091
+ };
1092
+ };
1093
+ }
1094
+ interface GetUploadEndpointResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetUploadEndpointResponsePayloadSchema> {
1095
+ }
1096
+ }
1097
+ namespace SpruceSchemas.Files.v2022_05_13 {
1098
+ interface SaveSettingsEmitTargetAndPayload {
1108
1099
  /** Source. */
1109
1100
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1110
- 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1101
+ 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1102
+ 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1111
1103
  }
1112
- interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1113
- id: 'getSettingsStatusEmitTargetAndPayload';
1104
+ interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1105
+ id: 'saveSettingsEmitTargetAndPayload';
1114
1106
  version: 'v2022_05_13';
1115
1107
  namespace: 'Files';
1116
1108
  name: '';
@@ -1128,12 +1120,20 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1128
1120
  type: 'schema';
1129
1121
  isRequired: true;
1130
1122
  options: {
1131
- schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1123
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1124
+ };
1125
+ };
1126
+ /** . */
1127
+ 'payload': {
1128
+ type: 'schema';
1129
+ isRequired: true;
1130
+ options: {
1131
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1132
1132
  };
1133
1133
  };
1134
1134
  };
1135
1135
  }
1136
- interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1136
+ interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1137
1137
  }
1138
1138
  }
1139
1139
  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 GetSettingsStatusEmitTarget {
924
+ interface SaveSettingsEmitTarget {
925
925
  'organizationId': string;
926
926
  }
927
- interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
928
- id: 'getSettingsStatusEmitTarget';
927
+ interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
928
+ id: 'saveSettingsEmitTarget';
929
929
  version: 'v2022_05_13';
930
930
  namespace: 'Files';
931
931
  name: '';
@@ -938,117 +938,94 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
938
938
  };
939
939
  };
940
940
  }
941
- interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
941
+ interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
942
942
  }
943
943
  }
944
944
  namespace SpruceSchemas.Files.v2022_05_13 {
945
- interface GetSettingsStatusResponsePayload {
946
- 'didConfigureFileUploads': boolean;
945
+ interface SaveSettingsEmitPayload {
946
+ 'awsAccessKeyId': string;
947
+ 'awsSecretAccessKey': string;
948
+ 'awsS3Bucket': string;
947
949
  }
948
- interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
949
- id: 'getSettingsStatusResponsePayload';
950
+ interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
951
+ id: 'saveSettingsEmitPayload';
950
952
  version: 'v2022_05_13';
951
953
  namespace: 'Files';
952
954
  name: '';
953
955
  fields: {
954
956
  /** . */
955
- 'didConfigureFileUploads': {
956
- type: 'boolean';
957
+ 'awsAccessKeyId': {
958
+ type: 'id';
957
959
  isRequired: true;
958
960
  options: undefined;
959
961
  };
960
- };
961
- }
962
- interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
963
- }
964
- }
965
- namespace SpruceSchemas.Files.v2022_05_13 {
966
- interface GetUploadEndpointResponsePayload {
967
- /** . The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client. */
968
- 'restEndpointUrl'?: string | undefined | null;
969
- }
970
- interface GetUploadEndpointResponsePayloadSchema extends SpruceSchema.Schema {
971
- id: 'getUploadEndpointResponsePayload';
972
- version: 'v2022_05_13';
973
- namespace: 'Files';
974
- name: '';
975
- fields: {
976
- /** . The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client. */
977
- 'restEndpointUrl': {
962
+ /** . */
963
+ 'awsSecretAccessKey': {
978
964
  type: 'text';
979
- hint: 'The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client.';
965
+ isRequired: true;
966
+ options: undefined;
967
+ };
968
+ /** . */
969
+ 'awsS3Bucket': {
970
+ type: 'text';
971
+ isRequired: true;
980
972
  options: undefined;
981
973
  };
982
974
  };
983
975
  }
984
- interface GetUploadEndpointResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetUploadEndpointResponsePayloadSchema> {
976
+ interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
985
977
  }
986
978
  }
987
979
  namespace SpruceSchemas.Files.v2022_05_13 {
988
- interface SaveSettingsEmitTarget {
989
- 'organizationId': string;
980
+ interface SaveSettingsResponsePayload {
981
+ 'wasSuccessful': boolean;
990
982
  }
991
- interface SaveSettingsEmitTargetSchema extends SpruceSchema.Schema {
992
- id: 'saveSettingsEmitTarget';
983
+ interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
984
+ id: 'saveSettingsResponsePayload';
993
985
  version: 'v2022_05_13';
994
986
  namespace: 'Files';
995
987
  name: '';
996
988
  fields: {
997
989
  /** . */
998
- 'organizationId': {
999
- type: 'id';
990
+ 'wasSuccessful': {
991
+ type: 'boolean';
1000
992
  isRequired: true;
1001
993
  options: undefined;
1002
994
  };
1003
995
  };
1004
996
  }
1005
- interface SaveSettingsEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema> {
997
+ interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
1006
998
  }
1007
999
  }
1008
1000
  namespace SpruceSchemas.Files.v2022_05_13 {
1009
- interface SaveSettingsEmitPayload {
1010
- 'awsAccessKeyId': string;
1011
- 'awsSecretAccessKey': string;
1012
- 'awsS3Bucket': string;
1001
+ interface GetSettingsStatusEmitTarget {
1002
+ 'organizationId': string;
1013
1003
  }
1014
- interface SaveSettingsEmitPayloadSchema extends SpruceSchema.Schema {
1015
- id: 'saveSettingsEmitPayload';
1004
+ interface GetSettingsStatusEmitTargetSchema extends SpruceSchema.Schema {
1005
+ id: 'getSettingsStatusEmitTarget';
1016
1006
  version: 'v2022_05_13';
1017
1007
  namespace: 'Files';
1018
1008
  name: '';
1019
1009
  fields: {
1020
1010
  /** . */
1021
- 'awsAccessKeyId': {
1011
+ 'organizationId': {
1022
1012
  type: 'id';
1023
1013
  isRequired: true;
1024
1014
  options: undefined;
1025
1015
  };
1026
- /** . */
1027
- 'awsSecretAccessKey': {
1028
- type: 'text';
1029
- isRequired: true;
1030
- options: undefined;
1031
- };
1032
- /** . */
1033
- 'awsS3Bucket': {
1034
- type: 'text';
1035
- isRequired: true;
1036
- options: undefined;
1037
- };
1038
1016
  };
1039
1017
  }
1040
- interface SaveSettingsEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema> {
1018
+ interface GetSettingsStatusEmitTargetEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema> {
1041
1019
  }
1042
1020
  }
1043
1021
  namespace SpruceSchemas.Files.v2022_05_13 {
1044
- interface SaveSettingsEmitTargetAndPayload {
1022
+ interface GetSettingsStatusEmitTargetAndPayload {
1045
1023
  /** Source. */
1046
1024
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1047
- 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1048
- 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1025
+ 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1049
1026
  }
1050
- interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1051
- id: 'saveSettingsEmitTargetAndPayload';
1027
+ interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1028
+ id: 'getSettingsStatusEmitTargetAndPayload';
1052
1029
  version: 'v2022_05_13';
1053
1030
  namespace: 'Files';
1054
1031
  name: '';
@@ -1066,51 +1043,66 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1066
1043
  type: 'schema';
1067
1044
  isRequired: true;
1068
1045
  options: {
1069
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1070
- };
1071
- };
1072
- /** . */
1073
- 'payload': {
1074
- type: 'schema';
1075
- isRequired: true;
1076
- options: {
1077
- schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1046
+ schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1078
1047
  };
1079
1048
  };
1080
1049
  };
1081
1050
  }
1082
- interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1051
+ interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1083
1052
  }
1084
1053
  }
1085
1054
  namespace SpruceSchemas.Files.v2022_05_13 {
1086
- interface SaveSettingsResponsePayload {
1087
- 'wasSuccessful': boolean;
1055
+ interface GetSettingsStatusResponsePayload {
1056
+ 'didConfigureFileUploads': boolean;
1088
1057
  }
1089
- interface SaveSettingsResponsePayloadSchema extends SpruceSchema.Schema {
1090
- id: 'saveSettingsResponsePayload';
1058
+ interface GetSettingsStatusResponsePayloadSchema extends SpruceSchema.Schema {
1059
+ id: 'getSettingsStatusResponsePayload';
1091
1060
  version: 'v2022_05_13';
1092
1061
  namespace: 'Files';
1093
1062
  name: '';
1094
1063
  fields: {
1095
1064
  /** . */
1096
- 'wasSuccessful': {
1065
+ 'didConfigureFileUploads': {
1097
1066
  type: 'boolean';
1098
1067
  isRequired: true;
1099
1068
  options: undefined;
1100
1069
  };
1101
1070
  };
1102
1071
  }
1103
- interface SaveSettingsResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsResponsePayloadSchema> {
1072
+ interface GetSettingsStatusResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusResponsePayloadSchema> {
1104
1073
  }
1105
1074
  }
1106
1075
  namespace SpruceSchemas.Files.v2022_05_13 {
1107
- interface GetSettingsStatusEmitTargetAndPayload {
1076
+ interface GetUploadEndpointResponsePayload {
1077
+ /** . The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client. */
1078
+ 'restEndpointUrl'?: string | undefined | null;
1079
+ }
1080
+ interface GetUploadEndpointResponsePayloadSchema extends SpruceSchema.Schema {
1081
+ id: 'getUploadEndpointResponsePayload';
1082
+ version: 'v2022_05_13';
1083
+ namespace: 'Files';
1084
+ name: '';
1085
+ fields: {
1086
+ /** . The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client. */
1087
+ 'restEndpointUrl': {
1088
+ type: 'text';
1089
+ hint: 'The REST endpoint URL to user when uploading a file. If not set, you must use upload using the Mercury Client.';
1090
+ options: undefined;
1091
+ };
1092
+ };
1093
+ }
1094
+ interface GetUploadEndpointResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetUploadEndpointResponsePayloadSchema> {
1095
+ }
1096
+ }
1097
+ namespace SpruceSchemas.Files.v2022_05_13 {
1098
+ interface SaveSettingsEmitTargetAndPayload {
1108
1099
  /** Source. */
1109
1100
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
1110
- 'target': SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTarget;
1101
+ 'target': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTarget;
1102
+ 'payload': SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayload;
1111
1103
  }
1112
- interface GetSettingsStatusEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1113
- id: 'getSettingsStatusEmitTargetAndPayload';
1104
+ interface SaveSettingsEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
1105
+ id: 'saveSettingsEmitTargetAndPayload';
1114
1106
  version: 'v2022_05_13';
1115
1107
  namespace: 'Files';
1116
1108
  name: '';
@@ -1128,12 +1120,20 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1128
1120
  type: 'schema';
1129
1121
  isRequired: true;
1130
1122
  options: {
1131
- schema: SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetSchema;
1123
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetSchema;
1124
+ };
1125
+ };
1126
+ /** . */
1127
+ 'payload': {
1128
+ type: 'schema';
1129
+ isRequired: true;
1130
+ options: {
1131
+ schema: SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitPayloadSchema;
1132
1132
  };
1133
1133
  };
1134
1134
  };
1135
1135
  }
1136
- interface GetSettingsStatusEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.GetSettingsStatusEmitTargetAndPayloadSchema> {
1136
+ interface SaveSettingsEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Files.v2022_05_13.SaveSettingsEmitTargetAndPayloadSchema> {
1137
1137
  }
1138
1138
  }
1139
1139
  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.6.5",
4
+ "version": "18.6.6",
5
5
  "skill": {
6
6
  "namespace": "files"
7
7
  },