@agentforge-io/sdk-server 4.65.0 → 4.66.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/resources/catalog.js +4 -0
- package/dist/resources/chat.d.ts +12 -0
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
|
@@ -271,6 +271,10 @@ class CatalogProductsResource {
|
|
|
271
271
|
qs.set('page', String(input.page));
|
|
272
272
|
if (input.pageSize !== undefined)
|
|
273
273
|
qs.set('pageSize', String(input.pageSize));
|
|
274
|
+
if (input.categoryIds?.length)
|
|
275
|
+
qs.set('categoryIds', input.categoryIds.join(','));
|
|
276
|
+
if (input.productIds?.length)
|
|
277
|
+
qs.set('productIds', input.productIds.join(','));
|
|
274
278
|
const q = qs.toString();
|
|
275
279
|
return this.client.request('GET', `${BASE}/products${q ? `?${q}` : ''}`, undefined, TENANT_AUTH);
|
|
276
280
|
}
|
package/dist/resources/chat.d.ts
CHANGED
|
@@ -73,6 +73,18 @@ export interface AppCallerClaims {
|
|
|
73
73
|
location?: string;
|
|
74
74
|
/** The delivery address the person chose in the App; the assistant offers it instead of asking (AGF-CUSTOMER-WHERE). */
|
|
75
75
|
deliveryAddress?: string;
|
|
76
|
+
/**
|
|
77
|
+
* AGF-LOCATION-FOCUS: what the person is looking at in the App, by name. The
|
|
78
|
+
* assistant prioritizes it and the rest of the catalog stays available. Never
|
|
79
|
+
* where the person is: that is `location`, and only `location` means they are
|
|
80
|
+
* attended there. A case opened without a `location` takes `focus.place` as its
|
|
81
|
+
* origin. Capped by the platform: 20 categories, 30 products.
|
|
82
|
+
*/
|
|
83
|
+
focus?: {
|
|
84
|
+
place?: string;
|
|
85
|
+
categories?: string[];
|
|
86
|
+
products?: string[];
|
|
87
|
+
};
|
|
76
88
|
}
|
|
77
89
|
export declare class ChatResource {
|
|
78
90
|
private readonly client;
|
package/dist/types.d.ts
CHANGED
|
@@ -1448,6 +1448,14 @@ export interface ListCatalogProductsInput {
|
|
|
1448
1448
|
page?: number;
|
|
1449
1449
|
/** Default 20, max 100 (server-capped). */
|
|
1450
1450
|
pageSize?: number;
|
|
1451
|
+
/**
|
|
1452
|
+
* AGF-LOCATION-FOCUS: a selection of the catalog, products in these categories
|
|
1453
|
+
* OR with these ids, on top of every other filter (`categoryId` included). UUIDs,
|
|
1454
|
+
* at most 30 categories and 100 products (else 400). Omitted or both empty: no
|
|
1455
|
+
* restriction.
|
|
1456
|
+
*/
|
|
1457
|
+
categoryIds?: string[];
|
|
1458
|
+
productIds?: string[];
|
|
1451
1459
|
}
|
|
1452
1460
|
export interface CatalogProductPage {
|
|
1453
1461
|
items: CatalogProduct[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentforge-io/sdk-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.66.0",
|
|
4
4
|
"description": "Server-side SDK for backend apps integrating with AgentForge platform. Auth via ChatToken, ak_live_ API key or App secret (sk_live_), with App installations across tenants.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|