@antfly/sdk 0.0.4 → 0.0.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.
package/dist/index.cjs CHANGED
@@ -31,7 +31,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  AntflyClient: () => AntflyClient,
34
- default: () => index_default
34
+ default: () => index_default,
35
+ providers: () => providers
35
36
  });
36
37
  module.exports = __toCommonJS(index_exports);
37
38
 
@@ -165,9 +166,9 @@ var AntflyClient = class {
165
166
  /**
166
167
  * Create a new index
167
168
  */
168
- create: async (tableName, indexName, config) => {
169
+ create: async (tableName, config) => {
169
170
  const { error } = await this.client.POST("/table/{tableName}/index/{indexName}", {
170
- params: { path: { tableName, indexName } },
171
+ params: { path: { tableName, indexName: config.name } },
171
172
  body: config
172
173
  });
173
174
  if (error) throw new Error(`Failed to create index: ${error.error}`);
@@ -313,9 +314,18 @@ var AntflyClient = class {
313
314
  }
314
315
  };
315
316
 
317
+ // src/types.ts
318
+ var providers = [
319
+ "ollama",
320
+ "gemini",
321
+ "openai",
322
+ "bedrock"
323
+ ];
324
+
316
325
  // src/index.ts
317
326
  var index_default = AntflyClient;
318
327
  // Annotate the CommonJS export names for ESM import in node:
319
328
  0 && (module.exports = {
320
- AntflyClient
329
+ AntflyClient,
330
+ providers
321
331
  });