@omnikit-ai/sdk 2.0.5 → 2.0.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.
package/dist/index.js CHANGED
@@ -1154,16 +1154,16 @@ Example: await ${collectionName}.list({ limit: 100, sort: '-created_at' })`,
1154
1154
  response = await method(params, useServiceToken);
1155
1155
  } else {
1156
1156
  const servicePathMap = {
1157
- "SendEmail": "email/send",
1158
- "InvokeLLM": "llm/invoke",
1159
- "GenerateImage": "image/generate",
1160
- "GenerateSpeech": "speech/generate",
1161
- "GenerateVideo": "video/generate",
1162
- "ExtractData": "extract/data",
1163
- "SendSMS": "sms/send",
1164
- "UploadFile": "storage/upload",
1165
- "UploadPrivateFile": "storage/upload-private",
1166
- "CreateFileSignedUrl": "storage/signed-url"
1157
+ "SendEmail": "services/email",
1158
+ "InvokeLLM": "services/llm",
1159
+ "GenerateImage": "services/images",
1160
+ "GenerateSpeech": "services/speech",
1161
+ "GenerateVideo": "services/video",
1162
+ "ExtractData": "services/extract-text",
1163
+ "SendSMS": "services/sms",
1164
+ "UploadFile": "services/files",
1165
+ "UploadPrivateFile": "services/files/private/init",
1166
+ "CreateFileSignedUrl": "services/files/signed-url"
1167
1167
  };
1168
1168
  const servicePath = servicePathMap[serviceName];
1169
1169
  if (!servicePath) {
@@ -1182,7 +1182,7 @@ Example: await ${collectionName}.list({ limit: 100, sort: '-created_at' })`,
1182
1182
  headers["Authorization"] = `Bearer ${client.userToken}`;
1183
1183
  }
1184
1184
  const fetchResponse = await fetch(
1185
- `${client.baseUrl}/apps/${client.appId}/integrations/${servicePath}`,
1185
+ `${client.baseUrl}/apps/${client.appId}/${servicePath}`,
1186
1186
  {
1187
1187
  method: "POST",
1188
1188
  headers,