@agentforge-io/sdk-server 4.45.0 → 4.47.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.d.ts +1 -1
- package/dist/types.d.ts +53 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type { AgentForgeClientOptions, RequestOptions } from './client';
|
|
|
3
3
|
export { AgentForgeError, AgentForgeAuthError, AgentForgeNotFoundError, AgentForgeNetworkError, } from './errors';
|
|
4
4
|
export { APP_WEBHOOK_HEADERS, TOOL_CALLBACK_HEADERS, ToolCallbackSignatureError, signToolCallbackPayload, verifyAppWebhook, verifyToolCallbackSignature, } from './webhooks';
|
|
5
5
|
export { WebhookResource, type SetAppWebhookInput } from './resources/webhook';
|
|
6
|
-
export type { AppWebhook, AppWebhookEvent, AppWebhookEventName, AgentMe, AgentSummary, AppUserConnectorStatus, ApprovalCopyBundle, ChannelContext, ChatStreamChunk, ChatStreamEvent, ChatTokenRecord, ConnectorDefaultsResult, ConnectorDefaultsSource, ConnectorResourceItem, ConnectorStatus, ConnectorToolInfo, ConversationHistory, ConversationStatus, CreateAgentInput, CreateClickupTaskInput, CreateClickupTaskResult, ExternalToolSummary, IssueChatTokenInput, ListAgentsResult, ListConnectorResourcesResult, McpServerConfig, MessageRecord, MessageRole, PublicAppBranding, PublicProfileBlock, PublicProfileTemplate, PublicTeamLanding, CreateTeamInput, UpdateTeamInput, TeamSummary, TeamDetail, TeamTheme, TeamBusinessHours, TeamWeekday, TeamProfileBlock, AppInstallation, TemplateConfigField, TemplateSummary, TemplateDetail, TemplateCategoryRef, MarketplaceCategory, MarketplaceCategoryGroup, MarketplaceLocale, TemplateInstallResult, TemplateReview, TemplateRatingSummary, TemplateReviewsPage, ListTemplateReviewsInput, SaveTemplateReviewInput, TemplateReportKind, CreateTemplateReportInput, TenantConfigEntry, Place, PlaceSuggestion, SearchPlacesInput, AutocompletePlacesInput, PlacesScope, CaseField, CaseBusinessState, CaseType, CaseState, CasePayment, CasePaymentAccount, CasePaymentStatus, CaseReceiptPayment, CaseView, CreateDirectOrderInput, CreateDirectBookingInput, MoveCaseSlotInput, CaseSlot, CatalogBookingRule, DirectOrderForm, DirectPaymentOption, CaseReceipt, CaseReceiptLine, ListCasesInput, AddressValue, DeliveryLocalPricing, DeliverySettings, PaymentMethodKind, PaymentSettings, PaymentSettingsInput, PaymentAccount, PaymentCountry, PaymentFieldDef, PaymentMethodDef, StructuredConfigInput, StructuredConfigEntry, DeliveryQuoteStatus, DeliveryQuoteInput, DeliveryQuote, AppSelf, AppSelfConnector, AppSelfConnectors, AppSelfConnectorTools, AppSelfConnectorToolsResponse, RegisterToolInput, RegisterToolsInput, BusinessRoleEntry, Catalog, CatalogCheckoutCta, CatalogCategory, CatalogProduct, CatalogProductPhoto, CatalogProductKind, CatalogProductStatus, CatalogPriceKind, CatalogAvailability, CatalogLockableField, CatalogProductPage, UpsertCatalogInput, CreateCatalogCategoryInput, UpdateCatalogCategoryInput, CreateCatalogProductInput, UpdateCatalogProductInput, ListCatalogProductsInput, CatalogPhotoUploadTarget, SignCatalogPhotoUploadInput, AttachCatalogPhotoInput, CatalogImportItem, CatalogImportPreview, CatalogImportApplyResult, CatalogFileMapping, CatalogFilePlan, CatalogFilePreview, CatalogFileApplyResult, CatalogFileInput, CatalogFilePreviewInput, CatalogMenuItem, CatalogMenuRead, CatalogMenuReadInput, CatalogMenuAttachInput, CatalogMenuChatFile, CatalogMenuKeepInSyncInput, CatalogMenuKeepInSyncResult, CatalogOption, CatalogOptionGroup, SaveCatalogOptionGroupInput, CatalogOptionChoice, CatalogOptionChange, CatalogOptionChangesPlan, CatalogUnit, SaveCatalogUnitInput, CatalogSaleRule, CatalogFileApplyInput, CatalogFileErrorCode, CatalogImportSourceStatus, CatalogImportColumnMapping, CatalogImportRunResult, CatalogImportSource, CreateCatalogImportSourceInput, UpdateCatalogImportSourceInput, PreviewCatalogImportSourceInput, CatalogImportSourcePreview, CatalogSheetTab, CatalogTemplateSheet, CreateCatalogTemplateSheetInput, GoogleSheetsPickerInput, GoogleSheetsPickerSession, GoogleSheetsPickerErrorCode, GoogleSheetsPickerResult, RegisterToolsResult, ToolCallbackPayload, ToolCallRecord, ToolPermission, ToolPermissionMode, TokenUsage, TenantSecretEntry, UpdateAgentInput, InboxThreadMode, InboxMessageDirection, InboxMessageSource, InboxMessageType, InboxThreadCustomerProfileView, InboxThreadView, InboxMessageView, SupportKpiTotals, SupportKpiResponse, AgentAttentionLogRow, } from './types';
|
|
6
|
+
export type { AppWebhook, AppWebhookEvent, AppWebhookEventName, AgentMe, AgentSummary, AppUserConnectorStatus, ApprovalCopyBundle, ChannelContext, ChatStreamChunk, ChatStreamEvent, ChatTokenRecord, ConnectorDefaultsResult, ConnectorDefaultsSource, ConnectorResourceItem, ConnectorStatus, ConnectorToolInfo, ConversationHistory, ConversationStatus, CreateAgentInput, CreateClickupTaskInput, CreateClickupTaskResult, ExternalToolSummary, IssueChatTokenInput, ListAgentsResult, ListConnectorResourcesResult, McpServerConfig, MessageRecord, MessageRole, PublicAppBranding, PublicProfileBlock, PublicProfileTemplate, PublicTeamLanding, CreateTeamInput, UpdateTeamInput, TeamSummary, TeamDetail, TeamTheme, TeamBusinessHours, TeamWeekday, TeamProfileBlock, AppInstallation, TemplateConfigField, TemplateSummary, TemplateDetail, TemplateCategoryRef, MarketplaceCategory, MarketplaceCategoryGroup, MarketplaceLocale, TemplateInstallResult, TemplateReview, TemplateRatingSummary, TemplateReviewsPage, ListTemplateReviewsInput, SaveTemplateReviewInput, TemplateReportKind, CreateTemplateReportInput, TenantConfigEntry, Place, PlaceSuggestion, SearchPlacesInput, AutocompletePlacesInput, PlacesScope, CaseField, CaseBusinessState, CaseType, CaseState, CasePayment, CasePaymentAccount, CasePaymentStatus, CaseReceiptPayment, CaseView, CaseStateStep, CreateDirectOrderInput, CreateDirectBookingInput, MoveCaseSlotInput, CaseSlot, CatalogBookingRule, CaseOrigin, CaseOriginChannel, DirectOrderForm, DirectPaymentOption, CaseReceipt, CaseReceiptLine, ListCasesInput, AddressValue, DeliveryLocalPricing, DeliverySettings, PaymentMethodKind, PaymentSettings, PaymentSettingsInput, PaymentAccount, PaymentCountry, PaymentFieldDef, PaymentMethodDef, StructuredConfigInput, StructuredConfigEntry, DeliveryQuoteStatus, DeliveryQuoteInput, DeliveryQuote, AppSelf, AppSelfConnector, AppSelfConnectors, AppSelfConnectorTools, AppSelfConnectorToolsResponse, RegisterToolInput, RegisterToolsInput, BusinessRoleEntry, Catalog, CatalogCheckoutCta, CatalogCategory, CatalogProduct, CatalogProductPhoto, CatalogProductKind, CatalogProductStatus, CatalogPriceKind, CatalogAvailability, CatalogLockableField, CatalogProductPage, UpsertCatalogInput, CreateCatalogCategoryInput, UpdateCatalogCategoryInput, CreateCatalogProductInput, UpdateCatalogProductInput, ListCatalogProductsInput, CatalogPhotoUploadTarget, SignCatalogPhotoUploadInput, AttachCatalogPhotoInput, CatalogImportItem, CatalogImportPreview, CatalogImportApplyResult, CatalogFileMapping, CatalogFilePlan, CatalogFilePreview, CatalogFileApplyResult, CatalogFileInput, CatalogFilePreviewInput, CatalogMenuItem, CatalogMenuRead, CatalogMenuReadInput, CatalogMenuAttachInput, CatalogMenuChatFile, CatalogMenuKeepInSyncInput, CatalogMenuKeepInSyncResult, CatalogOption, CatalogOptionGroup, SaveCatalogOptionGroupInput, CatalogOptionChoice, CatalogOptionChange, CatalogOptionChangesPlan, CatalogUnit, SaveCatalogUnitInput, CatalogSaleRule, CatalogFileApplyInput, CatalogFileErrorCode, CatalogImportSourceStatus, CatalogImportColumnMapping, CatalogImportRunResult, CatalogImportSource, CreateCatalogImportSourceInput, UpdateCatalogImportSourceInput, PreviewCatalogImportSourceInput, CatalogImportSourcePreview, CatalogSheetTab, CatalogTemplateSheet, CreateCatalogTemplateSheetInput, GoogleSheetsPickerInput, GoogleSheetsPickerSession, GoogleSheetsPickerErrorCode, GoogleSheetsPickerResult, RegisterToolsResult, ToolCallbackPayload, ToolCallRecord, ToolPermission, ToolPermissionMode, TokenUsage, TenantSecretEntry, UpdateAgentInput, InboxThreadMode, InboxMessageDirection, InboxMessageSource, InboxMessageType, InboxThreadCustomerProfileView, InboxThreadView, InboxMessageView, SupportKpiTotals, SupportKpiResponse, AgentAttentionLogRow, } from './types';
|
|
7
7
|
export { AgentsResource } from './resources/agents';
|
|
8
8
|
export { AnalyticsResource } from './resources/analytics';
|
|
9
9
|
export type { GetSupportKpisInput, GetAgentAttentionLogInput, } from './resources/analytics';
|
package/dist/types.d.ts
CHANGED
|
@@ -2015,6 +2015,14 @@ export interface CaseType {
|
|
|
2015
2015
|
*/
|
|
2016
2016
|
/** `no_show`: a booking whose customer did not come (AGF-AGENDA-LIFECYCLE). */
|
|
2017
2017
|
export type CaseState = 'open' | 'review' | 'submitted' | 'accepted' | 'completed' | 'cancelled' | 'rejected' | 'abandoned' | 'no_show' | (string & {});
|
|
2018
|
+
/** One state a case reached (AGF-CASE-TRACKING). */
|
|
2019
|
+
export interface CaseStateStep {
|
|
2020
|
+
state: string;
|
|
2021
|
+
/** ISO time it got there. */
|
|
2022
|
+
at: string;
|
|
2023
|
+
/** Who moved it; null when only the case itself tells (older cases, a move just made). */
|
|
2024
|
+
by: 'assistant' | 'business' | 'system' | 'customer' | null;
|
|
2025
|
+
}
|
|
2018
2026
|
export interface CaseView {
|
|
2019
2027
|
id: string;
|
|
2020
2028
|
/** Per workspace, sequential (ordering). People read `code`. */
|
|
@@ -2056,6 +2064,10 @@ export interface CaseView {
|
|
|
2056
2064
|
customerPhone: string | null;
|
|
2057
2065
|
/** Where in the business the customer ordered from («Mesa 2», a scanned code). */
|
|
2058
2066
|
customerPlace?: string | null;
|
|
2067
|
+
/** AGF-ORDER-ORIGIN-POS — where it came from, with its tag («Mesa 2 · QR»); null for cases from before. */
|
|
2068
|
+
origin: (CaseOrigin & {
|
|
2069
|
+
label: string;
|
|
2070
|
+
}) | null;
|
|
2059
2071
|
/** The road the business walks it: sent, accepted, the type's own phases, completed. */
|
|
2060
2072
|
path: Array<{
|
|
2061
2073
|
key: string;
|
|
@@ -2087,6 +2099,12 @@ export interface CaseView {
|
|
|
2087
2099
|
submittedAt: string | null;
|
|
2088
2100
|
closedAt: string | null;
|
|
2089
2101
|
lastActivityAt: string;
|
|
2102
|
+
/**
|
|
2103
|
+
* AGF-CASE-TRACKING — every state it reached from its sending, oldest first, with
|
|
2104
|
+
* when and who moved it. On `cases.get` and the business's moves (`transition`,
|
|
2105
|
+
* `setPayment`, `weighLine`, `assign`, `updateSlot`); absent on `cases.list`.
|
|
2106
|
+
*/
|
|
2107
|
+
history?: CaseStateStep[];
|
|
2090
2108
|
}
|
|
2091
2109
|
/**
|
|
2092
2110
|
* The payment's own lifecycle, apart from the case's states: `unpaid` →
|
|
@@ -2240,6 +2258,12 @@ export interface CaseReceipt {
|
|
|
2240
2258
|
updatedAt: string;
|
|
2241
2259
|
/** AGF-PAYMENT-ACCOUNTS — how it is paid; null before the business took it (unless chosen in the checkout). */
|
|
2242
2260
|
payment: CaseReceiptPayment | null;
|
|
2261
|
+
/** AGF-ORDER-ORIGIN-POS — where it was ordered from, as the customer reads it (no team member); null when unknown. */
|
|
2262
|
+
origin: {
|
|
2263
|
+
channel: CaseOriginChannel;
|
|
2264
|
+
place: string | null;
|
|
2265
|
+
label: string;
|
|
2266
|
+
} | null;
|
|
2243
2267
|
business: {
|
|
2244
2268
|
name: string;
|
|
2245
2269
|
description: string | null;
|
|
@@ -2249,23 +2273,47 @@ export interface CaseReceipt {
|
|
|
2249
2273
|
timeZone: string | null;
|
|
2250
2274
|
};
|
|
2251
2275
|
}
|
|
2276
|
+
/** AGF-ORDER-ORIGIN-POS — the channel an order came by (`pos`: a sale the team registered in the App). */
|
|
2277
|
+
export type CaseOriginChannel = 'qr' | 'nfc' | 'link' | 'page' | 'chat' | 'whatsapp' | 'pos';
|
|
2278
|
+
/** Where an order comes from, frozen when it is created. */
|
|
2279
|
+
export interface CaseOrigin {
|
|
2280
|
+
channel: CaseOriginChannel;
|
|
2281
|
+
/** The code or place it came from; `label` is what people read («Mesa 2», «Sede Norte»). */
|
|
2282
|
+
place?: {
|
|
2283
|
+
linkId?: string;
|
|
2284
|
+
code?: string;
|
|
2285
|
+
ref?: string;
|
|
2286
|
+
label: string;
|
|
2287
|
+
};
|
|
2288
|
+
/** `pos`: the team member who registered the sale. */
|
|
2289
|
+
by?: {
|
|
2290
|
+
accountId: string;
|
|
2291
|
+
name: string;
|
|
2292
|
+
};
|
|
2293
|
+
}
|
|
2252
2294
|
/**
|
|
2253
2295
|
* AGF-ORDER-WITHOUT-AI — an order placed without the assistant: a cart and a
|
|
2254
2296
|
* checkout on the host App. Created already sent (holds, receipt, `case.submitted`).
|
|
2255
2297
|
*/
|
|
2256
2298
|
export interface CreateDirectOrderInput {
|
|
2257
|
-
/** Who orders: the App's visitor id, and the name and phone they gave (both required unless `place`). */
|
|
2258
2299
|
/**
|
|
2259
2300
|
* AGF-CUSTOMER-WHERE: where in the business the customer is («Mesa 2»),
|
|
2260
2301
|
* from a code your server resolved — never text the customer typed. With
|
|
2261
2302
|
* it, `customer.name` and `customer.phone` may be '' (optional at a table).
|
|
2262
2303
|
*/
|
|
2263
2304
|
place?: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* Who orders: the App's visitor id, and the name and phone they gave (both required
|
|
2307
|
+
* unless `place`). A sale the team registers (`origin.channel` `pos`) may leave both
|
|
2308
|
+
* out: it is then named after its place («Mostrador», «Mesa 2») and has no phone.
|
|
2309
|
+
*/
|
|
2264
2310
|
customer: {
|
|
2265
2311
|
ref: string;
|
|
2266
|
-
name
|
|
2267
|
-
phone
|
|
2312
|
+
name?: string;
|
|
2313
|
+
phone?: string;
|
|
2268
2314
|
};
|
|
2315
|
+
/** AGF-ORDER-ORIGIN-POS — where it comes from; default `{ channel: 'page' }`. A `pos` sale needs `place` and `by`. */
|
|
2316
|
+
origin?: CaseOrigin;
|
|
2269
2317
|
/** Products of the business's catalog and how many of each. `options`: the choice for a
|
|
2270
2318
|
* product with option groups (AGF-MENU-OPTIONS M2; a required group left out → 400). */
|
|
2271
2319
|
lines: Array<{
|
|
@@ -2427,6 +2475,8 @@ export interface AppWebhookEvent {
|
|
|
2427
2475
|
/** `case.payment_changed`: where the payment is now, and where it was. */
|
|
2428
2476
|
paymentStatus?: CasePaymentStatus;
|
|
2429
2477
|
previousPaymentStatus?: CasePaymentStatus;
|
|
2478
|
+
/** AGF-ORDER-ORIGIN-POS — where the case came from (cases from before carry none). */
|
|
2479
|
+
origin?: CaseOrigin;
|
|
2430
2480
|
};
|
|
2431
2481
|
}
|
|
2432
2482
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentforge-io/sdk-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.47.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",
|