@aui.io/aui-client 1.2.16 → 1.2.18

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.
Files changed (69) hide show
  1. package/README.md +81 -5
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/controllerApi/client/Client.d.ts +15 -1
  4. package/dist/cjs/api/resources/controllerApi/client/Client.js +69 -1
  5. package/dist/cjs/api/resources/controllerApi/client/requests/CreateTaskRequest.d.ts +4 -1
  6. package/dist/cjs/api/resources/controllerApi/client/requests/GetProductMetadataRequest.d.ts +9 -0
  7. package/dist/cjs/api/resources/controllerApi/client/requests/GetProductMetadataRequest.js +3 -0
  8. package/dist/cjs/api/resources/controllerApi/client/requests/index.d.ts +1 -0
  9. package/dist/cjs/api/types/Card.d.ts +4 -0
  10. package/dist/cjs/api/types/CardParameter.d.ts +1 -0
  11. package/dist/cjs/api/types/Context.d.ts +1 -0
  12. package/dist/cjs/api/types/Message.d.ts +3 -0
  13. package/dist/cjs/api/types/MessageCardParameter.d.ts +8 -0
  14. package/dist/cjs/api/types/MessageCardParameter.js +3 -0
  15. package/dist/cjs/api/types/MessageCardSubEntity.d.ts +5 -0
  16. package/dist/cjs/api/types/MessageCardSubEntity.js +3 -0
  17. package/dist/cjs/api/types/MessageCardSubEntityItem.d.ts +5 -0
  18. package/dist/cjs/api/types/MessageCardSubEntityItem.js +3 -0
  19. package/dist/cjs/api/types/OptionsSearchSelfReviewMethod.d.ts +10 -0
  20. package/dist/cjs/api/types/OptionsSearchSelfReviewMethod.js +13 -0
  21. package/dist/cjs/api/types/RecordOriginType.d.ts +9 -0
  22. package/dist/cjs/api/types/RecordOriginType.js +12 -0
  23. package/dist/cjs/api/types/TaskInteractionOptionSelfReview.d.ts +8 -0
  24. package/dist/cjs/api/types/TaskInteractionOptionSelfReview.js +3 -0
  25. package/dist/cjs/api/types/TaskInteractionOptionSelfReviewScore.d.ts +6 -0
  26. package/dist/cjs/api/types/TaskInteractionOptionSelfReviewScore.js +3 -0
  27. package/dist/cjs/api/types/TaskInteractionOptionSelfReviewScoreLabel.d.ts +6 -0
  28. package/dist/cjs/api/types/TaskInteractionOptionSelfReviewScoreLabel.js +9 -0
  29. package/dist/cjs/api/types/TaskInteractionOptionSelfReviewType.d.ts +1 -0
  30. package/dist/cjs/api/types/TaskInteractionOptionSelfReviewType.js +3 -0
  31. package/dist/cjs/api/types/index.d.ts +9 -0
  32. package/dist/cjs/api/types/index.js +9 -0
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/Client.mjs +2 -2
  36. package/dist/esm/api/resources/controllerApi/client/Client.d.mts +15 -1
  37. package/dist/esm/api/resources/controllerApi/client/Client.mjs +69 -1
  38. package/dist/esm/api/resources/controllerApi/client/requests/CreateTaskRequest.d.mts +4 -1
  39. package/dist/esm/api/resources/controllerApi/client/requests/GetProductMetadataRequest.d.mts +9 -0
  40. package/dist/esm/api/resources/controllerApi/client/requests/GetProductMetadataRequest.mjs +2 -0
  41. package/dist/esm/api/resources/controllerApi/client/requests/index.d.mts +1 -0
  42. package/dist/esm/api/types/Card.d.mts +4 -0
  43. package/dist/esm/api/types/CardParameter.d.mts +1 -0
  44. package/dist/esm/api/types/Context.d.mts +1 -0
  45. package/dist/esm/api/types/Message.d.mts +3 -0
  46. package/dist/esm/api/types/MessageCardParameter.d.mts +8 -0
  47. package/dist/esm/api/types/MessageCardParameter.mjs +2 -0
  48. package/dist/esm/api/types/MessageCardSubEntity.d.mts +5 -0
  49. package/dist/esm/api/types/MessageCardSubEntity.mjs +2 -0
  50. package/dist/esm/api/types/MessageCardSubEntityItem.d.mts +5 -0
  51. package/dist/esm/api/types/MessageCardSubEntityItem.mjs +2 -0
  52. package/dist/esm/api/types/OptionsSearchSelfReviewMethod.d.mts +10 -0
  53. package/dist/esm/api/types/OptionsSearchSelfReviewMethod.mjs +10 -0
  54. package/dist/esm/api/types/RecordOriginType.d.mts +9 -0
  55. package/dist/esm/api/types/RecordOriginType.mjs +9 -0
  56. package/dist/esm/api/types/TaskInteractionOptionSelfReview.d.mts +8 -0
  57. package/dist/esm/api/types/TaskInteractionOptionSelfReview.mjs +2 -0
  58. package/dist/esm/api/types/TaskInteractionOptionSelfReviewScore.d.mts +6 -0
  59. package/dist/esm/api/types/TaskInteractionOptionSelfReviewScore.mjs +2 -0
  60. package/dist/esm/api/types/TaskInteractionOptionSelfReviewScoreLabel.d.mts +6 -0
  61. package/dist/esm/api/types/TaskInteractionOptionSelfReviewScoreLabel.mjs +6 -0
  62. package/dist/esm/api/types/TaskInteractionOptionSelfReviewType.d.mts +1 -0
  63. package/dist/esm/api/types/TaskInteractionOptionSelfReviewType.mjs +2 -0
  64. package/dist/esm/api/types/index.d.mts +9 -0
  65. package/dist/esm/api/types/index.mjs +9 -0
  66. package/dist/esm/version.d.mts +1 -1
  67. package/dist/esm/version.mjs +1 -1
  68. package/package.json +1 -1
  69. package/reference.md +53 -1
package/README.md CHANGED
@@ -31,7 +31,8 @@ const client = new ApolloClient({
31
31
  ```typescript
32
32
  // Create a new task
33
33
  const taskResponse = await client.controllerApi.createTask({
34
- user_id: 'user123'
34
+ user_id: 'user123',
35
+ task_origin_type: 'web-widget' // Required: identifies the source of the task
35
36
  });
36
37
 
37
38
  console.log('Task ID:', taskResponse.id);
@@ -165,12 +166,15 @@ Create a new task for the agent.
165
166
 
166
167
  ```typescript
167
168
  const taskResponse = await client.controllerApi.createTask({
168
- user_id: string // Unique user identifier
169
+ user_id: string, // Unique user identifier
170
+ task_origin_type: string // Required: origin type (e.g., 'web-widget', 'mobile-app', 'api')
169
171
  });
170
172
 
171
173
  // Returns: { id: string, user_id: string, title: string, welcome_message?: string }
172
174
  ```
173
175
 
176
+ **Note:** `task_origin_type` is required in v1.2.17+. Common values: `'web-widget'`, `'mobile-app'`, `'api'`, `'internal-tool'`
177
+
174
178
  #### `getTaskMessages(taskId)` - Get Task Messages
175
179
  Retrieve all messages for a specific task.
176
180
 
@@ -206,6 +210,17 @@ const tasksResponse = await client.controllerApi.listUserTasks({
206
210
  // Returns: { tasks: Task[], total: number, page: number, size: number }
207
211
  ```
208
212
 
213
+ #### `getProductMetadata(link)` - Get Product Metadata
214
+ Retrieve metadata for a product from a given URL/link.
215
+
216
+ ```typescript
217
+ const metadata = await client.controllerApi.getProductMetadata({
218
+ link: string // Product URL or link
219
+ });
220
+
221
+ // Returns: Record<string, any> - Product metadata object
222
+ ```
223
+
209
224
  ---
210
225
 
211
226
  ### WebSocket API
@@ -246,6 +261,11 @@ socket.on('close', (event: CloseEvent) => void);
246
261
  - `final_message` - Complete response with optional product cards
247
262
  - `error` - Error message from the agent
248
263
 
264
+ **New in v0.6.0:**
265
+ - **Message fields:** `welcome_message`, `executed_workflows` - Track workflow execution and welcome messages
266
+ - **Card fields:** `category`, `query`, `sub_entities`, `self_review` - Enhanced product card information with self-review scoring
267
+ - **Product Metadata API:** New endpoint to retrieve metadata from product URLs
268
+
249
269
  #### Socket Methods
250
270
 
251
271
  ```typescript
@@ -280,7 +300,8 @@ const client = new ApolloClient({
280
300
  async function searchProducts(userId: string, query: string) {
281
301
  // Step 1: Create a task
282
302
  const taskResponse = await client.controllerApi.createTask({
283
- user_id: userId
303
+ user_id: userId,
304
+ task_origin_type: 'web-widget'
284
305
  });
285
306
 
286
307
  const taskId = taskResponse.id;
@@ -367,6 +388,40 @@ async function getTaskHistory(userId: string) {
367
388
  getTaskHistory('user123');
368
389
  ```
369
390
 
391
+ ### Get Product Metadata
392
+
393
+ ```typescript
394
+ import { ApolloClient } from '@aui.io/aui-client';
395
+
396
+ const client = new ApolloClient({
397
+ networkApiKey: 'API_KEY_YOUR_KEY_HERE'
398
+ });
399
+
400
+ async function fetchProductMetadata(productLink: string) {
401
+ try {
402
+ // Fetch metadata for a product
403
+ const metadata = await client.controllerApi.getProductMetadata({
404
+ link: productLink
405
+ });
406
+
407
+ console.log('Product Metadata:', metadata);
408
+
409
+ // Metadata might include: name, price, description, images, etc.
410
+ if (metadata) {
411
+ console.log('Available fields:', Object.keys(metadata));
412
+ }
413
+
414
+ return metadata;
415
+ } catch (error) {
416
+ console.error('Error fetching product metadata:', error);
417
+ throw error;
418
+ }
419
+ }
420
+
421
+ // Example usage
422
+ fetchProductMetadata('https://www.example.com/product/12345');
423
+ ```
424
+
370
425
  ## 🔧 Advanced Configuration
371
426
 
372
427
  ### Custom Timeout and Retries
@@ -380,7 +435,10 @@ const client = new ApolloClient({
380
435
 
381
436
  // Per-request overrides
382
437
  const taskResponse = await client.controllerApi.createTask(
383
- { user_id: 'user123' },
438
+ {
439
+ user_id: 'user123',
440
+ task_origin_type: 'web-widget'
441
+ },
384
442
  {
385
443
  timeoutInSeconds: 30, // Override for this request only
386
444
  maxRetries: 2
@@ -414,7 +472,8 @@ const client = new ApolloClient({
414
472
 
415
473
  try {
416
474
  const taskResponse = await client.controllerApi.createTask({
417
- user_id: 'user123'
475
+ user_id: 'user123',
476
+ task_origin_type: 'web-widget'
418
477
  });
419
478
  } catch (error) {
420
479
  if (error instanceof UnprocessableEntityError) {
@@ -534,6 +593,23 @@ const client = new ApolloClient({
534
593
  npm install --save-dev typescript@latest
535
594
  ```
536
595
 
596
+ ## 📚 Examples
597
+
598
+ The `examples/` directory contains ready-to-run code examples:
599
+
600
+ - **Product Metadata API** - [`examples/test-product-metadata.js`](./examples/test-product-metadata.js)
601
+ - Fetch product information from URLs
602
+ - Handle errors and edge cases
603
+ - Extract and use metadata
604
+
605
+ Run examples:
606
+ ```bash
607
+ export NETWORK_API_KEY="API_KEY_YOUR_KEY_HERE"
608
+ node examples/test-product-metadata.js
609
+ ```
610
+
611
+ See the [examples README](./examples/README.md) for more details.
612
+
537
613
  ## 🔗 Resources
538
614
 
539
615
  - **GitHub Repository:** [aui-io/aui-client-typescript](https://github.com/aui-io/aui-client-typescript)
@@ -45,8 +45,8 @@ class ApolloClient {
45
45
  "x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
46
46
  "X-Fern-Language": "JavaScript",
47
47
  "X-Fern-SDK-Name": "@aui.io/aui-client",
48
- "X-Fern-SDK-Version": "1.2.16",
49
- "User-Agent": "@aui.io/aui-client/1.2.16",
48
+ "X-Fern-SDK-Version": "1.2.18",
49
+ "User-Agent": "@aui.io/aui-client/1.2.18",
50
50
  "X-Fern-Runtime": core.RUNTIME.type,
51
51
  "X-Fern-Runtime-Version": core.RUNTIME.version,
52
52
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -33,7 +33,8 @@ export declare class ControllerApi {
33
33
  *
34
34
  * @example
35
35
  * await client.controllerApi.createTask({
36
- * user_id: "user_id"
36
+ * user_id: "user_id",
37
+ * task_origin_type: "stores"
37
38
  * })
38
39
  */
39
40
  createTask(request: Apollo.CreateTaskRequest, requestOptions?: ControllerApi.RequestOptions): core.HttpResponsePromise<Apollo.CreateTaskResponse>;
@@ -64,4 +65,17 @@ export declare class ControllerApi {
64
65
  */
65
66
  sendMessage(request: Apollo.SubmitMessageRequest, requestOptions?: ControllerApi.RequestOptions): core.HttpResponsePromise<Apollo.Message>;
66
67
  private __sendMessage;
68
+ /**
69
+ * @param {Apollo.GetProductMetadataRequest} request
70
+ * @param {ControllerApi.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link Apollo.UnprocessableEntityError}
73
+ *
74
+ * @example
75
+ * await client.controllerApi.getProductMetadata({
76
+ * link: "link"
77
+ * })
78
+ */
79
+ getProductMetadata(request: Apollo.GetProductMetadataRequest, requestOptions?: ControllerApi.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
80
+ private __getProductMetadata;
67
81
  }
@@ -147,7 +147,8 @@ class ControllerApi {
147
147
  *
148
148
  * @example
149
149
  * await client.controllerApi.createTask({
150
- * user_id: "user_id"
150
+ * user_id: "user_id",
151
+ * task_origin_type: "stores"
151
152
  * })
152
153
  */
153
154
  createTask(request, requestOptions) {
@@ -342,5 +343,72 @@ class ControllerApi {
342
343
  }
343
344
  });
344
345
  }
346
+ /**
347
+ * @param {Apollo.GetProductMetadataRequest} request
348
+ * @param {ControllerApi.RequestOptions} requestOptions - Request-specific configuration.
349
+ *
350
+ * @throws {@link Apollo.UnprocessableEntityError}
351
+ *
352
+ * @example
353
+ * await client.controllerApi.getProductMetadata({
354
+ * link: "link"
355
+ * })
356
+ */
357
+ getProductMetadata(request, requestOptions) {
358
+ return core.HttpResponsePromise.fromPromise(this.__getProductMetadata(request, requestOptions));
359
+ }
360
+ __getProductMetadata(request, requestOptions) {
361
+ return __awaiter(this, void 0, void 0, function* () {
362
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
363
+ const { link } = request;
364
+ const _queryParams = {};
365
+ _queryParams.link = link;
366
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
367
+ "x-network-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.networkApiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.networkApiKey,
368
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
369
+ const _response = yield core.fetcher({
370
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : ((_e = (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ApolloEnvironment.Default)
371
+ .base, "api/v1/external/product-metadata"),
372
+ method: "GET",
373
+ headers: _headers,
374
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
375
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
376
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
377
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
378
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
379
+ logging: this._options.logging,
380
+ });
381
+ if (_response.ok) {
382
+ return { data: _response.body, rawResponse: _response.rawResponse };
383
+ }
384
+ if (_response.error.reason === "status-code") {
385
+ switch (_response.error.statusCode) {
386
+ case 422:
387
+ throw new Apollo.UnprocessableEntityError(_response.error.body, _response.rawResponse);
388
+ default:
389
+ throw new errors.ApolloError({
390
+ statusCode: _response.error.statusCode,
391
+ body: _response.error.body,
392
+ rawResponse: _response.rawResponse,
393
+ });
394
+ }
395
+ }
396
+ switch (_response.error.reason) {
397
+ case "non-json":
398
+ throw new errors.ApolloError({
399
+ statusCode: _response.error.statusCode,
400
+ body: _response.error.rawBody,
401
+ rawResponse: _response.rawResponse,
402
+ });
403
+ case "timeout":
404
+ throw new errors.ApolloTimeoutError("Timeout exceeded when calling GET /api/v1/external/product-metadata.");
405
+ case "unknown":
406
+ throw new errors.ApolloError({
407
+ message: _response.error.errorMessage,
408
+ rawResponse: _response.rawResponse,
409
+ });
410
+ }
411
+ });
412
+ }
345
413
  }
346
414
  exports.ControllerApi = ControllerApi;
@@ -1,9 +1,12 @@
1
+ import type * as Apollo from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
4
- * user_id: "user_id"
5
+ * user_id: "user_id",
6
+ * task_origin_type: "stores"
5
7
  * }
6
8
  */
7
9
  export interface CreateTaskRequest {
8
10
  user_id: string;
11
+ task_origin_type: Apollo.RecordOriginType;
9
12
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * link: "link"
5
+ * }
6
+ */
7
+ export interface GetProductMetadataRequest {
8
+ link: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export type { CreateTaskRequest } from "./CreateTaskRequest.js";
2
+ export type { GetProductMetadataRequest } from "./GetProductMetadataRequest.js";
2
3
  export type { ListUserTasksRequest } from "./ListUserTasksRequest.js";
3
4
  export type { SubmitMessageRequest } from "./SubmitMessageRequest.js";
@@ -2,6 +2,10 @@ import type * as Apollo from "../index.js";
2
2
  export interface Card {
3
3
  id: string;
4
4
  name: string;
5
+ category: string;
6
+ query?: Record<string, unknown>;
5
7
  parameters: Apollo.CardParameter[];
8
+ sub_entities?: Apollo.MessageCardSubEntity[];
9
+ self_review?: Apollo.TaskInteractionOptionSelfReview;
6
10
  is_recommended: boolean;
7
11
  }
@@ -1,5 +1,6 @@
1
1
  import type * as Apollo from "../index.js";
2
2
  export interface CardParameter {
3
+ param: string;
3
4
  title: string;
4
5
  value?: unknown;
5
6
  type: Apollo.ParameterType;
@@ -1,4 +1,5 @@
1
1
  export interface Context {
2
2
  url?: string;
3
3
  lead_details?: Record<string, unknown>;
4
+ welcome_message?: string;
4
5
  }
@@ -6,5 +6,8 @@ export interface Message {
6
6
  sender: Apollo.MessageContactParty;
7
7
  receiver: Apollo.MessageContactParty;
8
8
  cards: Apollo.Card[];
9
+ welcome_message?: string;
9
10
  followup_suggestions: string[];
11
+ executed_workflows?: string[];
12
+ url?: string;
10
13
  }
@@ -0,0 +1,8 @@
1
+ import type * as Apollo from "../index.js";
2
+ export interface MessageCardParameter {
3
+ param: string;
4
+ title: string;
5
+ name?: string;
6
+ value?: unknown;
7
+ type?: Apollo.ParameterType;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type * as Apollo from "../index.js";
2
+ export interface MessageCardSubEntity {
3
+ name: string;
4
+ items: Apollo.MessageCardSubEntityItem[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type * as Apollo from "../index.js";
2
+ export interface MessageCardSubEntityItem {
3
+ parameters: Apollo.MessageCardParameter[];
4
+ index?: number;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export declare const OptionsSearchSelfReviewMethod: {
2
+ readonly InventoryClassification: "INVENTORY_CLASSIFICATION";
3
+ readonly Llm: "LLM";
4
+ readonly LlmPerOption: "LLM_PER_OPTION";
5
+ readonly CrossEncoderRanker: "CROSS_ENCODER_RANKER";
6
+ readonly CohereRanker: "COHERE_RANKER";
7
+ readonly ConstantScore: "CONSTANT_SCORE";
8
+ readonly ParamMatching: "PARAM_MATCHING";
9
+ };
10
+ export type OptionsSearchSelfReviewMethod = (typeof OptionsSearchSelfReviewMethod)[keyof typeof OptionsSearchSelfReviewMethod];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OptionsSearchSelfReviewMethod = void 0;
5
+ exports.OptionsSearchSelfReviewMethod = {
6
+ InventoryClassification: "INVENTORY_CLASSIFICATION",
7
+ Llm: "LLM",
8
+ LlmPerOption: "LLM_PER_OPTION",
9
+ CrossEncoderRanker: "CROSS_ENCODER_RANKER",
10
+ CohereRanker: "COHERE_RANKER",
11
+ ConstantScore: "CONSTANT_SCORE",
12
+ ParamMatching: "PARAM_MATCHING",
13
+ };
@@ -0,0 +1,9 @@
1
+ export declare const RecordOriginType: {
2
+ readonly Stores: "stores";
3
+ readonly WebWidget: "web-widget";
4
+ readonly InspectionPlayground: "inspection-playground";
5
+ readonly FeedbackPlayground: "feedback-playground";
6
+ readonly LlmManagement: "llm-management";
7
+ readonly ThirdParty: "third-party";
8
+ };
9
+ export type RecordOriginType = (typeof RecordOriginType)[keyof typeof RecordOriginType];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RecordOriginType = void 0;
5
+ exports.RecordOriginType = {
6
+ Stores: "stores",
7
+ WebWidget: "web-widget",
8
+ InspectionPlayground: "inspection-playground",
9
+ FeedbackPlayground: "feedback-playground",
10
+ LlmManagement: "llm-management",
11
+ ThirdParty: "third-party",
12
+ };
@@ -0,0 +1,8 @@
1
+ import type * as Apollo from "../index.js";
2
+ export interface TaskInteractionOptionSelfReview {
3
+ score: Apollo.TaskInteractionOptionSelfReviewScore;
4
+ type: Apollo.TaskInteractionOptionSelfReviewType;
5
+ mismatches?: string[];
6
+ reasons?: string[];
7
+ order?: number;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import type * as Apollo from "../index.js";
2
+ export interface TaskInteractionOptionSelfReviewScore {
3
+ value?: number;
4
+ label: Apollo.TaskInteractionOptionSelfReviewScoreLabel;
5
+ method: Apollo.OptionsSearchSelfReviewMethod;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export declare const TaskInteractionOptionSelfReviewScoreLabel: {
2
+ readonly High: "HIGH";
3
+ readonly Medium: "MEDIUM";
4
+ readonly Low: "LOW";
5
+ };
6
+ export type TaskInteractionOptionSelfReviewScoreLabel = (typeof TaskInteractionOptionSelfReviewScoreLabel)[keyof typeof TaskInteractionOptionSelfReviewScoreLabel];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TaskInteractionOptionSelfReviewScoreLabel = void 0;
5
+ exports.TaskInteractionOptionSelfReviewScoreLabel = {
6
+ High: "HIGH",
7
+ Medium: "MEDIUM",
8
+ Low: "LOW",
9
+ };
@@ -0,0 +1 @@
1
+ export type TaskInteractionOptionSelfReviewType = "WORKFLOW";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,11 +8,20 @@ export * from "./FinalMessagePayload.js";
8
8
  export * from "./HttpValidationError.js";
9
9
  export * from "./ListTasksResponse.js";
10
10
  export * from "./Message.js";
11
+ export * from "./MessageCardParameter.js";
12
+ export * from "./MessageCardSubEntity.js";
13
+ export * from "./MessageCardSubEntityItem.js";
11
14
  export * from "./MessageContactParty.js";
15
+ export * from "./OptionsSearchSelfReviewMethod.js";
12
16
  export * from "./ParameterType.js";
13
17
  export * from "./ProductCard.js";
14
18
  export * from "./ProductParameter.js";
19
+ export * from "./RecordOriginType.js";
15
20
  export * from "./StreamingUpdatePayload.js";
21
+ export * from "./TaskInteractionOptionSelfReview.js";
22
+ export * from "./TaskInteractionOptionSelfReviewScore.js";
23
+ export * from "./TaskInteractionOptionSelfReviewScoreLabel.js";
24
+ export * from "./TaskInteractionOptionSelfReviewType.js";
16
25
  export * from "./UserMessagePayload.js";
17
26
  export * from "./ValidationError.js";
18
27
  export * from "./WsActor.js";
@@ -24,11 +24,20 @@ __exportStar(require("./FinalMessagePayload.js"), exports);
24
24
  __exportStar(require("./HttpValidationError.js"), exports);
25
25
  __exportStar(require("./ListTasksResponse.js"), exports);
26
26
  __exportStar(require("./Message.js"), exports);
27
+ __exportStar(require("./MessageCardParameter.js"), exports);
28
+ __exportStar(require("./MessageCardSubEntity.js"), exports);
29
+ __exportStar(require("./MessageCardSubEntityItem.js"), exports);
27
30
  __exportStar(require("./MessageContactParty.js"), exports);
31
+ __exportStar(require("./OptionsSearchSelfReviewMethod.js"), exports);
28
32
  __exportStar(require("./ParameterType.js"), exports);
29
33
  __exportStar(require("./ProductCard.js"), exports);
30
34
  __exportStar(require("./ProductParameter.js"), exports);
35
+ __exportStar(require("./RecordOriginType.js"), exports);
31
36
  __exportStar(require("./StreamingUpdatePayload.js"), exports);
37
+ __exportStar(require("./TaskInteractionOptionSelfReview.js"), exports);
38
+ __exportStar(require("./TaskInteractionOptionSelfReviewScore.js"), exports);
39
+ __exportStar(require("./TaskInteractionOptionSelfReviewScoreLabel.js"), exports);
40
+ __exportStar(require("./TaskInteractionOptionSelfReviewType.js"), exports);
32
41
  __exportStar(require("./UserMessagePayload.js"), exports);
33
42
  __exportStar(require("./ValidationError.js"), exports);
34
43
  __exportStar(require("./WsActor.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.16";
1
+ export declare const SDK_VERSION = "1.2.18";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.16";
4
+ exports.SDK_VERSION = "1.2.18";
@@ -9,8 +9,8 @@ export class ApolloClient {
9
9
  "x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
10
10
  "X-Fern-Language": "JavaScript",
11
11
  "X-Fern-SDK-Name": "@aui.io/aui-client",
12
- "X-Fern-SDK-Version": "1.2.16",
13
- "User-Agent": "@aui.io/aui-client/1.2.16",
12
+ "X-Fern-SDK-Version": "1.2.18",
13
+ "User-Agent": "@aui.io/aui-client/1.2.18",
14
14
  "X-Fern-Runtime": core.RUNTIME.type,
15
15
  "X-Fern-Runtime-Version": core.RUNTIME.version,
16
16
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -33,7 +33,8 @@ export declare class ControllerApi {
33
33
  *
34
34
  * @example
35
35
  * await client.controllerApi.createTask({
36
- * user_id: "user_id"
36
+ * user_id: "user_id",
37
+ * task_origin_type: "stores"
37
38
  * })
38
39
  */
39
40
  createTask(request: Apollo.CreateTaskRequest, requestOptions?: ControllerApi.RequestOptions): core.HttpResponsePromise<Apollo.CreateTaskResponse>;
@@ -64,4 +65,17 @@ export declare class ControllerApi {
64
65
  */
65
66
  sendMessage(request: Apollo.SubmitMessageRequest, requestOptions?: ControllerApi.RequestOptions): core.HttpResponsePromise<Apollo.Message>;
66
67
  private __sendMessage;
68
+ /**
69
+ * @param {Apollo.GetProductMetadataRequest} request
70
+ * @param {ControllerApi.RequestOptions} requestOptions - Request-specific configuration.
71
+ *
72
+ * @throws {@link Apollo.UnprocessableEntityError}
73
+ *
74
+ * @example
75
+ * await client.controllerApi.getProductMetadata({
76
+ * link: "link"
77
+ * })
78
+ */
79
+ getProductMetadata(request: Apollo.GetProductMetadataRequest, requestOptions?: ControllerApi.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
80
+ private __getProductMetadata;
67
81
  }
@@ -111,7 +111,8 @@ export class ControllerApi {
111
111
  *
112
112
  * @example
113
113
  * await client.controllerApi.createTask({
114
- * user_id: "user_id"
114
+ * user_id: "user_id",
115
+ * task_origin_type: "stores"
115
116
  * })
116
117
  */
117
118
  createTask(request, requestOptions) {
@@ -306,4 +307,71 @@ export class ControllerApi {
306
307
  }
307
308
  });
308
309
  }
310
+ /**
311
+ * @param {Apollo.GetProductMetadataRequest} request
312
+ * @param {ControllerApi.RequestOptions} requestOptions - Request-specific configuration.
313
+ *
314
+ * @throws {@link Apollo.UnprocessableEntityError}
315
+ *
316
+ * @example
317
+ * await client.controllerApi.getProductMetadata({
318
+ * link: "link"
319
+ * })
320
+ */
321
+ getProductMetadata(request, requestOptions) {
322
+ return core.HttpResponsePromise.fromPromise(this.__getProductMetadata(request, requestOptions));
323
+ }
324
+ __getProductMetadata(request, requestOptions) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
327
+ const { link } = request;
328
+ const _queryParams = {};
329
+ _queryParams.link = link;
330
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
331
+ "x-network-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.networkApiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.networkApiKey,
332
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
333
+ const _response = yield core.fetcher({
334
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : ((_e = (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ApolloEnvironment.Default)
335
+ .base, "api/v1/external/product-metadata"),
336
+ method: "GET",
337
+ headers: _headers,
338
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
339
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
340
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
341
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
342
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
343
+ logging: this._options.logging,
344
+ });
345
+ if (_response.ok) {
346
+ return { data: _response.body, rawResponse: _response.rawResponse };
347
+ }
348
+ if (_response.error.reason === "status-code") {
349
+ switch (_response.error.statusCode) {
350
+ case 422:
351
+ throw new Apollo.UnprocessableEntityError(_response.error.body, _response.rawResponse);
352
+ default:
353
+ throw new errors.ApolloError({
354
+ statusCode: _response.error.statusCode,
355
+ body: _response.error.body,
356
+ rawResponse: _response.rawResponse,
357
+ });
358
+ }
359
+ }
360
+ switch (_response.error.reason) {
361
+ case "non-json":
362
+ throw new errors.ApolloError({
363
+ statusCode: _response.error.statusCode,
364
+ body: _response.error.rawBody,
365
+ rawResponse: _response.rawResponse,
366
+ });
367
+ case "timeout":
368
+ throw new errors.ApolloTimeoutError("Timeout exceeded when calling GET /api/v1/external/product-metadata.");
369
+ case "unknown":
370
+ throw new errors.ApolloError({
371
+ message: _response.error.errorMessage,
372
+ rawResponse: _response.rawResponse,
373
+ });
374
+ }
375
+ });
376
+ }
309
377
  }
@@ -1,9 +1,12 @@
1
+ import type * as Apollo from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {
4
- * user_id: "user_id"
5
+ * user_id: "user_id",
6
+ * task_origin_type: "stores"
5
7
  * }
6
8
  */
7
9
  export interface CreateTaskRequest {
8
10
  user_id: string;
11
+ task_origin_type: Apollo.RecordOriginType;
9
12
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * link: "link"
5
+ * }
6
+ */
7
+ export interface GetProductMetadataRequest {
8
+ link: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,3 +1,4 @@
1
1
  export type { CreateTaskRequest } from "./CreateTaskRequest.mjs";
2
+ export type { GetProductMetadataRequest } from "./GetProductMetadataRequest.mjs";
2
3
  export type { ListUserTasksRequest } from "./ListUserTasksRequest.mjs";
3
4
  export type { SubmitMessageRequest } from "./SubmitMessageRequest.mjs";
@@ -2,6 +2,10 @@ import type * as Apollo from "../index.mjs";
2
2
  export interface Card {
3
3
  id: string;
4
4
  name: string;
5
+ category: string;
6
+ query?: Record<string, unknown>;
5
7
  parameters: Apollo.CardParameter[];
8
+ sub_entities?: Apollo.MessageCardSubEntity[];
9
+ self_review?: Apollo.TaskInteractionOptionSelfReview;
6
10
  is_recommended: boolean;
7
11
  }
@@ -1,5 +1,6 @@
1
1
  import type * as Apollo from "../index.mjs";
2
2
  export interface CardParameter {
3
+ param: string;
3
4
  title: string;
4
5
  value?: unknown;
5
6
  type: Apollo.ParameterType;
@@ -1,4 +1,5 @@
1
1
  export interface Context {
2
2
  url?: string;
3
3
  lead_details?: Record<string, unknown>;
4
+ welcome_message?: string;
4
5
  }
@@ -6,5 +6,8 @@ export interface Message {
6
6
  sender: Apollo.MessageContactParty;
7
7
  receiver: Apollo.MessageContactParty;
8
8
  cards: Apollo.Card[];
9
+ welcome_message?: string;
9
10
  followup_suggestions: string[];
11
+ executed_workflows?: string[];
12
+ url?: string;
10
13
  }
@@ -0,0 +1,8 @@
1
+ import type * as Apollo from "../index.mjs";
2
+ export interface MessageCardParameter {
3
+ param: string;
4
+ title: string;
5
+ name?: string;
6
+ value?: unknown;
7
+ type?: Apollo.ParameterType;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ import type * as Apollo from "../index.mjs";
2
+ export interface MessageCardSubEntity {
3
+ name: string;
4
+ items: Apollo.MessageCardSubEntityItem[];
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ import type * as Apollo from "../index.mjs";
2
+ export interface MessageCardSubEntityItem {
3
+ parameters: Apollo.MessageCardParameter[];
4
+ index?: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const OptionsSearchSelfReviewMethod: {
2
+ readonly InventoryClassification: "INVENTORY_CLASSIFICATION";
3
+ readonly Llm: "LLM";
4
+ readonly LlmPerOption: "LLM_PER_OPTION";
5
+ readonly CrossEncoderRanker: "CROSS_ENCODER_RANKER";
6
+ readonly CohereRanker: "COHERE_RANKER";
7
+ readonly ConstantScore: "CONSTANT_SCORE";
8
+ readonly ParamMatching: "PARAM_MATCHING";
9
+ };
10
+ export type OptionsSearchSelfReviewMethod = (typeof OptionsSearchSelfReviewMethod)[keyof typeof OptionsSearchSelfReviewMethod];
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const OptionsSearchSelfReviewMethod = {
3
+ InventoryClassification: "INVENTORY_CLASSIFICATION",
4
+ Llm: "LLM",
5
+ LlmPerOption: "LLM_PER_OPTION",
6
+ CrossEncoderRanker: "CROSS_ENCODER_RANKER",
7
+ CohereRanker: "COHERE_RANKER",
8
+ ConstantScore: "CONSTANT_SCORE",
9
+ ParamMatching: "PARAM_MATCHING",
10
+ };
@@ -0,0 +1,9 @@
1
+ export declare const RecordOriginType: {
2
+ readonly Stores: "stores";
3
+ readonly WebWidget: "web-widget";
4
+ readonly InspectionPlayground: "inspection-playground";
5
+ readonly FeedbackPlayground: "feedback-playground";
6
+ readonly LlmManagement: "llm-management";
7
+ readonly ThirdParty: "third-party";
8
+ };
9
+ export type RecordOriginType = (typeof RecordOriginType)[keyof typeof RecordOriginType];
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const RecordOriginType = {
3
+ Stores: "stores",
4
+ WebWidget: "web-widget",
5
+ InspectionPlayground: "inspection-playground",
6
+ FeedbackPlayground: "feedback-playground",
7
+ LlmManagement: "llm-management",
8
+ ThirdParty: "third-party",
9
+ };
@@ -0,0 +1,8 @@
1
+ import type * as Apollo from "../index.mjs";
2
+ export interface TaskInteractionOptionSelfReview {
3
+ score: Apollo.TaskInteractionOptionSelfReviewScore;
4
+ type: Apollo.TaskInteractionOptionSelfReviewType;
5
+ mismatches?: string[];
6
+ reasons?: string[];
7
+ order?: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ import type * as Apollo from "../index.mjs";
2
+ export interface TaskInteractionOptionSelfReviewScore {
3
+ value?: number;
4
+ label: Apollo.TaskInteractionOptionSelfReviewScoreLabel;
5
+ method: Apollo.OptionsSearchSelfReviewMethod;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const TaskInteractionOptionSelfReviewScoreLabel: {
2
+ readonly High: "HIGH";
3
+ readonly Medium: "MEDIUM";
4
+ readonly Low: "LOW";
5
+ };
6
+ export type TaskInteractionOptionSelfReviewScoreLabel = (typeof TaskInteractionOptionSelfReviewScoreLabel)[keyof typeof TaskInteractionOptionSelfReviewScoreLabel];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const TaskInteractionOptionSelfReviewScoreLabel = {
3
+ High: "HIGH",
4
+ Medium: "MEDIUM",
5
+ Low: "LOW",
6
+ };
@@ -0,0 +1 @@
1
+ export type TaskInteractionOptionSelfReviewType = "WORKFLOW";
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -8,11 +8,20 @@ export * from "./FinalMessagePayload.mjs";
8
8
  export * from "./HttpValidationError.mjs";
9
9
  export * from "./ListTasksResponse.mjs";
10
10
  export * from "./Message.mjs";
11
+ export * from "./MessageCardParameter.mjs";
12
+ export * from "./MessageCardSubEntity.mjs";
13
+ export * from "./MessageCardSubEntityItem.mjs";
11
14
  export * from "./MessageContactParty.mjs";
15
+ export * from "./OptionsSearchSelfReviewMethod.mjs";
12
16
  export * from "./ParameterType.mjs";
13
17
  export * from "./ProductCard.mjs";
14
18
  export * from "./ProductParameter.mjs";
19
+ export * from "./RecordOriginType.mjs";
15
20
  export * from "./StreamingUpdatePayload.mjs";
21
+ export * from "./TaskInteractionOptionSelfReview.mjs";
22
+ export * from "./TaskInteractionOptionSelfReviewScore.mjs";
23
+ export * from "./TaskInteractionOptionSelfReviewScoreLabel.mjs";
24
+ export * from "./TaskInteractionOptionSelfReviewType.mjs";
16
25
  export * from "./UserMessagePayload.mjs";
17
26
  export * from "./ValidationError.mjs";
18
27
  export * from "./WsActor.mjs";
@@ -8,11 +8,20 @@ export * from "./FinalMessagePayload.mjs";
8
8
  export * from "./HttpValidationError.mjs";
9
9
  export * from "./ListTasksResponse.mjs";
10
10
  export * from "./Message.mjs";
11
+ export * from "./MessageCardParameter.mjs";
12
+ export * from "./MessageCardSubEntity.mjs";
13
+ export * from "./MessageCardSubEntityItem.mjs";
11
14
  export * from "./MessageContactParty.mjs";
15
+ export * from "./OptionsSearchSelfReviewMethod.mjs";
12
16
  export * from "./ParameterType.mjs";
13
17
  export * from "./ProductCard.mjs";
14
18
  export * from "./ProductParameter.mjs";
19
+ export * from "./RecordOriginType.mjs";
15
20
  export * from "./StreamingUpdatePayload.mjs";
21
+ export * from "./TaskInteractionOptionSelfReview.mjs";
22
+ export * from "./TaskInteractionOptionSelfReviewScore.mjs";
23
+ export * from "./TaskInteractionOptionSelfReviewScoreLabel.mjs";
24
+ export * from "./TaskInteractionOptionSelfReviewType.mjs";
16
25
  export * from "./UserMessagePayload.mjs";
17
26
  export * from "./ValidationError.mjs";
18
27
  export * from "./WsActor.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.16";
1
+ export declare const SDK_VERSION = "1.2.18";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.2.16";
1
+ export const SDK_VERSION = "1.2.18";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aui.io/aui-client",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "private": false,
5
5
  "repository": "github:aui-io/aui-client-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -67,7 +67,8 @@ await client.controllerApi.listUserTasks({
67
67
 
68
68
  ```typescript
69
69
  await client.controllerApi.createTask({
70
- user_id: "user_id"
70
+ user_id: "user_id",
71
+ task_origin_type: "stores"
71
72
  });
72
73
 
73
74
  ```
@@ -202,6 +203,57 @@ await client.controllerApi.sendMessage({
202
203
  </dl>
203
204
 
204
205
 
206
+ </dd>
207
+ </dl>
208
+ </details>
209
+
210
+ <details><summary><code>client.controllerApi.<a href="/src/api/resources/controllerApi/client/Client.ts">getProductMetadata</a>({ ...params }) -> Record<string, unknown></code></summary>
211
+ <dl>
212
+ <dd>
213
+
214
+ #### 🔌 Usage
215
+
216
+ <dl>
217
+ <dd>
218
+
219
+ <dl>
220
+ <dd>
221
+
222
+ ```typescript
223
+ await client.controllerApi.getProductMetadata({
224
+ link: "link"
225
+ });
226
+
227
+ ```
228
+ </dd>
229
+ </dl>
230
+ </dd>
231
+ </dl>
232
+
233
+ #### ⚙️ Parameters
234
+
235
+ <dl>
236
+ <dd>
237
+
238
+ <dl>
239
+ <dd>
240
+
241
+ **request:** `Apollo.GetProductMetadataRequest`
242
+
243
+ </dd>
244
+ </dl>
245
+
246
+ <dl>
247
+ <dd>
248
+
249
+ **requestOptions:** `ControllerApi.RequestOptions`
250
+
251
+ </dd>
252
+ </dl>
253
+ </dd>
254
+ </dl>
255
+
256
+
205
257
  </dd>
206
258
  </dl>
207
259
  </details>