@amigo-ai/platform-sdk 0.15.0 → 0.16.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.
package/dist/index.mjs CHANGED
@@ -1877,15 +1877,12 @@ var ConversationsResource = class extends WorkspaceScopedResource {
1877
1877
  }
1878
1878
  async createTurn(conversationId, request) {
1879
1879
  return extractData(
1880
- await this.client.POST(
1881
- "/v1/{workspace_id}/conversations/{conversation_id}/turns",
1882
- {
1883
- params: {
1884
- path: { workspace_id: this.workspaceId, conversation_id: conversationId }
1885
- },
1886
- body: request
1887
- }
1888
- )
1880
+ await this.client.POST("/v1/{workspace_id}/conversations/{conversation_id}/turns", {
1881
+ params: {
1882
+ path: { workspace_id: this.workspaceId, conversation_id: conversationId }
1883
+ },
1884
+ body: request
1885
+ })
1889
1886
  );
1890
1887
  }
1891
1888
  /** Build the real-time text WebSocket URL for browser or custom clients. */
@@ -3246,7 +3243,7 @@ var LoginCancelledError = class extends AmigoError {
3246
3243
  super("Login cancelled", { errorCode: "login_cancelled" });
3247
3244
  }
3248
3245
  };
3249
- var DEFAULT_IDENTITY_URL = "https://identity.platform.amigo.ai";
3246
+ var DEFAULT_IDENTITY_URL = "https://api.platform.amigo.ai";
3250
3247
  async function identityPost(baseUrl, path, body, fetchFn) {
3251
3248
  try {
3252
3249
  return await fetchFn(`${baseUrl}${path}`, {