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