@purpleschool/ai-proxy 0.1.4 → 0.1.5
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.
|
@@ -224,4 +224,14 @@ exports.ERRORS = {
|
|
|
224
224
|
message: 'Пользователь не является владельцем задания на генерацию музыки',
|
|
225
225
|
httpCode: 403,
|
|
226
226
|
},
|
|
227
|
+
IMAGE_JOB_SAVE_ERROR: {
|
|
228
|
+
code: 'A045',
|
|
229
|
+
message: 'Произошла ошибка при сохранении задания на генерацию изображения',
|
|
230
|
+
httpCode: 500,
|
|
231
|
+
},
|
|
232
|
+
IMAGE_JOB_NOT_FOUND: {
|
|
233
|
+
code: 'A046',
|
|
234
|
+
message: 'Задание на генерацию изображения не найдено',
|
|
235
|
+
httpCode: 404,
|
|
236
|
+
},
|
|
227
237
|
};
|
package/package.json
CHANGED
package/proto/ai-proxy.proto
CHANGED
|
@@ -89,6 +89,7 @@ message ImageGenerationRequest {
|
|
|
89
89
|
int32 width = 3;
|
|
90
90
|
int32 height = 4;
|
|
91
91
|
repeated Message messages = 5;
|
|
92
|
+
optional string callbackUrl = 6;
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
message ImageGenerationResponse {
|
|
@@ -97,10 +98,9 @@ message ImageGenerationResponse {
|
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
message ImageGenerationData {
|
|
100
|
-
optional string
|
|
101
|
-
optional string
|
|
102
|
-
|
|
103
|
-
string type = 4;
|
|
101
|
+
optional string data = 1;
|
|
102
|
+
optional string externalId = 2;
|
|
103
|
+
string type = 3;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// Video Generation
|