@agentforge-io/sdk-server 4.91.0 → 4.93.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 +2 -2
- package/dist/index.js +2 -1
- package/dist/resources/catalog.d.ts +39 -1
- package/dist/resources/catalog.js +56 -1
- package/dist/types.d.ts +142 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { BillingResource } from './resources/billing';
|
|
|
11
11
|
export type { BillingCurrency, BillingEntitlement, BillingEntitlementStatus, BillingInterval, BillingLimits, BillingPlan, BillingInvoice, BillingInvoicePage, BillingInvoicesQuery, BillingPaymentMethod, BillingCheckoutInput, BillingStartTrialInput, AppBillingWebhookEvent, AppBillingWebhookEventName, AppBillingWebhookData, } from './resources/billing';
|
|
12
12
|
export { APP_WEBHOOK_HEADERS, TOOL_CALLBACK_HEADERS, ToolCallbackSignatureError, signToolCallbackPayload, verifyAppWebhook, verifyToolCallbackSignature, } from './webhooks';
|
|
13
13
|
export { WebhookResource, type SetAppWebhookInput } from './resources/webhook';
|
|
14
|
-
export type { AppWebhook, AppWebhookEvent, AppWebhookEventName, AppCaseWebhookEvent, AppCaseWebhookEventName, AppConversationMessageWebhookEvent, AppChannelStatusWebhookEvent, 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, ThemedColor, TeamBusinessHours, TeamWeekday, TeamProfileBlock, ProfileBlockPlacement, ProfileBlockPosition, CatalogBlockPreview, ServiceCta, ServiceCtaAction, CatalogServicesBlockConfig, AppInstallation, TemplateConfigField, TemplateSummary, TemplateDetail, TemplateInstallStats, TemplatePublisher, TemplateAuthor, AppTemplatePolicy, TemplateCategoryRef, MarketplaceCategory, MarketplaceCategoryGroup, MarketplaceLocale, TemplateInstallResult, CheckSystemTemplateResult, SetSystemAppProfileResult, SystemAppProfileView, TemplatePublishIssue, UpsertSystemTemplateInput, UpsertSystemTemplateResult, TemplateReview, TemplateRatingSummary, TemplateReviewsPage, BusinessReview, BusinessReviewsPage, ProductRatingSummary, ProductReview, ProductReviewOwner, ProductReviewsPage, ProductReviewsOwnerPage, ListProductReviewsInput, ListProductReviewsForOwnerInput, HideProductReviewInput, ProductLikeResult, ReceiptReviewable, ReceiptReviewables, SaveReceiptReviewInput, ListTemplateReviewsInput, SaveTemplateReviewInput, TemplateReportKind, CreateTemplateReportInput, TenantConfigEntry, Place, PlaceSuggestion, SearchPlacesInput, AutocompletePlacesInput, PlacesScope, CaseField, CaseBusinessState, CaseType, CaseState, CaseStateType, CasePayment, CasePaymentAccount, CasePaymentStatus, CaseReceiptPayment, CaseDestination, CaseView, CaseContactLink, CaseStateStep, CreateDirectOrderInput, CreateOpenOrderInput, CaseOffCatalogLine, CaseOffCatalogView, ConfirmCaseLineInput, SetCaseLinePriceInput, CaseLinePrices, CaseChangeInput, CaseChangeKind, CaseChangeLine, CaseChangeReason, CasePendingChange, CaseLinePriceEntry, CaseLinePriceHistoryEntry, CaseLinePriceSet, CaseLinePriceActor, CaseLinePriceBreakdownItem, CreateOffCatalogLineInput, OpenOrderFreeLine, OpenOrderLineMark, OpenOrderPayment, CreateDirectBookingInput, MoveCaseSlotInput, CaseSlot, CatalogAttendedAt, CatalogBookingRule, CaseOrigin, CaseOriginChannel, DirectOrderForm, DirectPaymentOption, CaseClosingMethod, CaseClosingOrder, CaseClosingReport, CaseClosingReceivables, CaseAccount, SetOnAccountInput, SetOnAccountResult, CaseReportPage, CaseReceipt, CaseReceiptLine, CaseProposal, CaseProposalAnswer, CaseProposalChange, CaseProposalInput, ListCasesInput, AddressValue, DeliveryLocalPricing, DeliverySettings, PaymentMethodKind, PaymentSettings, PaymentSettingsInput, PaymentAccount, PaymentCountry, PaymentFieldDef, PaymentMethodDef, StructuredConfigInput, StructuredConfigEntry, DeliveryQuoteStatus, DeliveryQuoteInput, DeliveryPricePreview, DeliveryPricingPreview, DeliveryPricingPreviewInput, DeliveryRoute, DeliveryRouteInput, DeliveryQuote, AppSelf, AppOwner, AppSelfConnector, AppSelfConnectors, AppSelfConnectorTools, AppSelfConnectorToolsResponse, RegisterToolInput, RegisterToolsInput, BusinessRoleEntry, Catalog, CatalogCheckoutCta, CatalogCategory, CatalogProduct, CatalogProductPhoto, CatalogProductKind, CatalogProductStatus, CatalogPriceKind, CatalogAvailability, CatalogLockableField, CatalogProductPage, UpsertCatalogInput, CreateCatalogCategoryInput, ListCatalogCategoriesInput, UpdateCatalogCategoryInput, CreateCatalogProductInput, UpdateCatalogProductInput, ListCatalogProductsInput, CatalogPhotoUploadTarget, SignCatalogPhotoUploadInput, AttachCatalogPhotoInput, AttachCatalogCategoryImageInput, 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, ReferenceMatchItemInput, ReferenceMatchDecisionKind, ReferenceMatchCandidate, ReferenceMatchDecision, ReferenceMatchInput, ReferenceMatchResult, ReferenceProductInput, ReferenceProductsBulkInput, ReferenceProductsBulkResult, ReferenceProduct, ListReferenceProductsInput, ReferenceProductPage, GoogleCalendarAccount, GoogleCalendarEventInput, GoogleCalendarUpsertResult, GoogleCalendarBusyInput, GoogleCalendarBusyResult, GoogleSheetsPickerInput, GoogleSheetsPickerSession, GoogleSheetsPickerErrorCode, GoogleSheetsPickerResult, RegisterToolsResult, ToolCallbackPayload, ToolCallRecord, ToolPermission, ToolPermissionMode, TokenUsage, TenantSecretEntry, UpdateAgentInput, InboxThreadMode, InboxMessageDirection, InboxMessageSource, InboxMessageType, InboxThreadCustomerProfileView, InboxThreadView, InboxMessageView, SupportKpiTotals, SupportKpiResponse, AgentAttentionLogRow, } from './types';
|
|
14
|
+
export type { AppWebhook, AppWebhookEvent, AppWebhookEventName, AppCaseWebhookEvent, AppCaseWebhookEventName, AppConversationMessageWebhookEvent, AppChannelStatusWebhookEvent, 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, ThemedColor, TeamBusinessHours, TeamWeekday, TeamProfileBlock, ProfileBlockPlacement, ProfileBlockPosition, CatalogBlockPreview, ServiceCta, ServiceCtaAction, CatalogServicesBlockConfig, AppInstallation, TemplateConfigField, TemplateSummary, TemplateDetail, TemplateInstallStats, TemplatePublisher, TemplateAuthor, AppTemplatePolicy, TemplateCategoryRef, MarketplaceCategory, MarketplaceCategoryGroup, MarketplaceLocale, TemplateInstallResult, CheckSystemTemplateResult, SetSystemAppProfileResult, SystemAppProfileView, TemplatePublishIssue, UpsertSystemTemplateInput, UpsertSystemTemplateResult, TemplateReview, TemplateRatingSummary, TemplateReviewsPage, BusinessReview, BusinessReviewsPage, ProductRatingSummary, ProductReview, ProductReviewOwner, ProductReviewsPage, ProductReviewsOwnerPage, ListProductReviewsInput, ListProductReviewsForOwnerInput, HideProductReviewInput, ProductLikeResult, ReceiptReviewable, ReceiptReviewables, SaveReceiptReviewInput, ListTemplateReviewsInput, SaveTemplateReviewInput, TemplateReportKind, CreateTemplateReportInput, TenantConfigEntry, Place, PlaceSuggestion, SearchPlacesInput, AutocompletePlacesInput, PlacesScope, CaseField, CaseBusinessState, CaseType, CaseState, CaseStateType, CasePayment, CasePaymentAccount, CasePaymentStatus, CaseReceiptPayment, CaseDestination, CaseView, CaseContactLink, CaseStateStep, CreateDirectOrderInput, CreateOpenOrderInput, CaseOffCatalogLine, CaseOffCatalogView, ConfirmCaseLineInput, SetCaseLinePriceInput, CaseLinePrices, CaseChangeInput, CaseChangeKind, CaseChangeLine, CaseChangeReason, CasePendingChange, CaseLinePriceEntry, CaseLinePriceHistoryEntry, CaseLinePriceSet, CaseLinePriceActor, CaseLinePriceBreakdownItem, CreateOffCatalogLineInput, OpenOrderFreeLine, OpenOrderLineMark, OpenOrderPayment, CreateDirectBookingInput, MoveCaseSlotInput, CaseSlot, CatalogAttendedAt, CatalogBookingRule, CaseOrigin, CaseOriginChannel, DirectOrderForm, DirectPaymentOption, CaseClosingMethod, CaseClosingOrder, CaseClosingReport, CaseClosingReceivables, CaseAccount, SetOnAccountInput, SetOnAccountResult, CaseReportPage, CaseReceipt, CaseReceiptLine, CaseProposal, CaseProposalAnswer, CaseProposalChange, CaseProposalInput, ListCasesInput, AddressValue, DeliveryLocalPricing, DeliverySettings, PaymentMethodKind, PaymentSettings, PaymentSettingsInput, PaymentAccount, PaymentCountry, PaymentFieldDef, PaymentMethodDef, StructuredConfigInput, StructuredConfigEntry, DeliveryQuoteStatus, DeliveryQuoteInput, DeliveryPricePreview, DeliveryPricingPreview, DeliveryPricingPreviewInput, DeliveryRoute, DeliveryRouteInput, DeliveryQuote, AppSelf, AppOwner, AppSelfConnector, AppSelfConnectors, AppSelfConnectorTools, AppSelfConnectorToolsResponse, RegisterToolInput, RegisterToolsInput, BusinessRoleEntry, Catalog, CatalogCheckoutCta, CatalogCategory, CatalogProduct, CatalogProductPhoto, CatalogProductKind, CatalogProductStatus, CatalogPriceKind, CatalogAvailability, CatalogLockableField, CatalogProductPage, UpsertCatalogInput, CreateCatalogCategoryInput, ListCatalogCategoriesInput, UpdateCatalogCategoryInput, CreateCatalogProductInput, UpdateCatalogProductInput, ListCatalogProductsInput, CatalogPhotoUploadTarget, SignCatalogPhotoUploadInput, CatalogPhotoStudioMode, CatalogPhotoStudioAngle, CatalogPhotoStudioStatus, CatalogPhotoStudioRequest, CatalogPhotoStudioQuoteInput, CatalogPhotoStudioQuote, CreateCatalogPhotoStudioJobInput, CatalogPhotoStudioJob, CatalogPhotoStudioCreated, CatalogPhotoStudioAttachResult, CatalogPhotoStudioSkill, CatalogPhotoStudioOutput, CatalogPhotoStudioPalette, CatalogPhotoStudioSkillInfo, CatalogPhotoStudioSkills, AttachCatalogPhotoInput, AttachCatalogCategoryImageInput, 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, ReferenceMatchItemInput, ReferenceMatchDecisionKind, ReferenceMatchCandidate, ReferenceMatchDecision, ReferenceMatchInput, ReferenceMatchResult, ReferenceProductInput, ReferenceProductsBulkInput, ReferenceProductsBulkResult, ReferenceProduct, ListReferenceProductsInput, ReferenceProductPage, GoogleCalendarAccount, GoogleCalendarEventInput, GoogleCalendarUpsertResult, GoogleCalendarBusyInput, GoogleCalendarBusyResult, GoogleSheetsPickerInput, GoogleSheetsPickerSession, GoogleSheetsPickerErrorCode, GoogleSheetsPickerResult, RegisterToolsResult, ToolCallbackPayload, ToolCallRecord, ToolPermission, ToolPermissionMode, TokenUsage, TenantSecretEntry, UpdateAgentInput, InboxThreadMode, InboxMessageDirection, InboxMessageSource, InboxMessageType, InboxThreadCustomerProfileView, InboxThreadView, InboxMessageView, SupportKpiTotals, SupportKpiResponse, AgentAttentionLogRow, } from './types';
|
|
15
15
|
export { AgentsResource } from './resources/agents';
|
|
16
16
|
export { AnalyticsResource } from './resources/analytics';
|
|
17
17
|
export type { GetSupportKpisInput, GetAgentAttentionLogInput, } from './resources/analytics';
|
|
@@ -37,7 +37,7 @@ export type { AppFileKind, SignAppFileInput, AppFileUploadTarget } from './resou
|
|
|
37
37
|
export { DeliveryResource } from './resources/delivery';
|
|
38
38
|
export { CasesResource } from './resources/cases';
|
|
39
39
|
export { BusinessRolesResource } from './resources/business-roles';
|
|
40
|
-
export { CatalogResource, CatalogCategoriesResource, CatalogProductsResource, CatalogProductReviewsResource, CatalogProductLikesResource, CatalogReviewsResource, CatalogPhotosResource, CatalogImportResource, CatalogFileImportResource, CatalogMenuImportResource, CatalogOptionGroupsResource, CatalogUnitsResource, CatalogSourcesResource, AgentForgeCatalogImportLimitError, CATALOG_IMPORT_MAX_ITEMS, } from './resources/catalog';
|
|
40
|
+
export { CatalogResource, CatalogCategoriesResource, CatalogProductsResource, CatalogProductReviewsResource, CatalogProductLikesResource, CatalogReviewsResource, CatalogPhotosResource, CatalogPhotoStudioResource, CatalogImportResource, CatalogFileImportResource, CatalogMenuImportResource, CatalogOptionGroupsResource, CatalogUnitsResource, CatalogSourcesResource, AgentForgeCatalogImportLimitError, CATALOG_IMPORT_MAX_ITEMS, } from './resources/catalog';
|
|
41
41
|
export type { ListThreadsOptions, ListNewestMessagesOptions, NewestMessagesPage, SendMessageInput, InboxOperatorAttachment, InboxAttachmentKind, AssignThreadInput, UnassignThreadInput, SetThreadModeInput, CloseThreadInput, } from './resources/inbox';
|
|
42
42
|
export { ProvisioningResource } from './resources/provisioning';
|
|
43
43
|
export type { ProvisionedTenant, ProvisionedApp, ProvisionedTeam, } from './resources/provisioning';
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
// await af.tools.respondToCallback({ resultUrl: payload.resultUrl, tenantId: payload.tenantId, secret, result });
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
31
|
exports.CasesResource = exports.DeliveryResource = exports.FilesResource = exports.ContactListsResource = exports.ContactTagsResource = exports.ContactAddressesResource = exports.ContactVerificationResource = exports.ContactsResource = exports.PlacesResource = exports.TenantConfigResource = exports.MarketplaceResource = exports.REFERENCE_BULK_MAX_ITEMS = exports.REFERENCE_MATCH_MAX_ITEMS = exports.AgentForgeReferenceLimitError = exports.ReferenceProductsResource = exports.ReferenceResource = exports.TemplateReportsResource = exports.TemplateReviewsResource = exports.TemplatesResource = exports.InstallationsResource = exports.InboxResource = exports.parseGoogleSheetsPickerResult = exports.ConnectorsResource = exports.ChatResource = exports.AppsResource = exports.AnalyticsResource = exports.AgentsResource = exports.WebhookResource = exports.verifyToolCallbackSignature = exports.verifyAppWebhook = exports.signToolCallbackPayload = exports.ToolCallbackSignatureError = exports.TOOL_CALLBACK_HEADERS = exports.APP_WEBHOOK_HEADERS = exports.BillingResource = exports.CreditAccountsResource = exports.CreditResource = exports.AGENTFORGE_PAYMENT_ERROR_CODES = exports.AgentForgePaymentError = exports.AGENTFORGE_CREDIT_ERROR_CODES = exports.AgentForgeCreditError = exports.AGENTFORGE_BILLING_ERROR_CODES = exports.AgentForgeBillingError = exports.AgentForgeDuplicateContactError = exports.AgentForgeNetworkError = exports.AgentForgeNotFoundError = exports.AgentForgeAuthError = exports.AgentForgeError = exports.INSTALLED_TENANT_HEADER = exports.AgentForgeClient = void 0;
|
|
32
|
-
exports.ToolsResource = exports.TeamsResource = exports.SecretsResource = exports.ProvisioningResource = exports.CATALOG_IMPORT_MAX_ITEMS = exports.AgentForgeCatalogImportLimitError = exports.CatalogSourcesResource = exports.CatalogUnitsResource = exports.CatalogOptionGroupsResource = exports.CatalogMenuImportResource = exports.CatalogFileImportResource = exports.CatalogImportResource = exports.CatalogPhotosResource = exports.CatalogReviewsResource = exports.CatalogProductLikesResource = exports.CatalogProductReviewsResource = exports.CatalogProductsResource = exports.CatalogCategoriesResource = exports.CatalogResource = exports.BusinessRolesResource = void 0;
|
|
32
|
+
exports.ToolsResource = exports.TeamsResource = exports.SecretsResource = exports.ProvisioningResource = exports.CATALOG_IMPORT_MAX_ITEMS = exports.AgentForgeCatalogImportLimitError = exports.CatalogSourcesResource = exports.CatalogUnitsResource = exports.CatalogOptionGroupsResource = exports.CatalogMenuImportResource = exports.CatalogFileImportResource = exports.CatalogImportResource = exports.CatalogPhotoStudioResource = exports.CatalogPhotosResource = exports.CatalogReviewsResource = exports.CatalogProductLikesResource = exports.CatalogProductReviewsResource = exports.CatalogProductsResource = exports.CatalogCategoriesResource = exports.CatalogResource = exports.BusinessRolesResource = void 0;
|
|
33
33
|
var client_1 = require("./client");
|
|
34
34
|
Object.defineProperty(exports, "AgentForgeClient", { enumerable: true, get: function () { return client_1.AgentForgeClient; } });
|
|
35
35
|
Object.defineProperty(exports, "INSTALLED_TENANT_HEADER", { enumerable: true, get: function () { return client_1.INSTALLED_TENANT_HEADER; } });
|
|
@@ -112,6 +112,7 @@ Object.defineProperty(exports, "CatalogProductReviewsResource", { enumerable: tr
|
|
|
112
112
|
Object.defineProperty(exports, "CatalogProductLikesResource", { enumerable: true, get: function () { return catalog_1.CatalogProductLikesResource; } });
|
|
113
113
|
Object.defineProperty(exports, "CatalogReviewsResource", { enumerable: true, get: function () { return catalog_1.CatalogReviewsResource; } });
|
|
114
114
|
Object.defineProperty(exports, "CatalogPhotosResource", { enumerable: true, get: function () { return catalog_1.CatalogPhotosResource; } });
|
|
115
|
+
Object.defineProperty(exports, "CatalogPhotoStudioResource", { enumerable: true, get: function () { return catalog_1.CatalogPhotoStudioResource; } });
|
|
115
116
|
Object.defineProperty(exports, "CatalogImportResource", { enumerable: true, get: function () { return catalog_1.CatalogImportResource; } });
|
|
116
117
|
Object.defineProperty(exports, "CatalogFileImportResource", { enumerable: true, get: function () { return catalog_1.CatalogFileImportResource; } });
|
|
117
118
|
Object.defineProperty(exports, "CatalogMenuImportResource", { enumerable: true, get: function () { return catalog_1.CatalogMenuImportResource; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentForgeClient } from '../client';
|
|
2
2
|
import { AgentForgeError } from '../errors';
|
|
3
|
-
import type { AttachCatalogCategoryImageInput, AttachCatalogPhotoInput, Catalog, CatalogCategory, CatalogFileApplyInput, CatalogFileApplyResult, CatalogOptionChange, CatalogOptionChangesPlan, CatalogOptionGroup, CatalogUnit, SaveCatalogUnitInput, SaveCatalogOptionGroupInput, CatalogMenuItem, CatalogMenuRead, CatalogMenuReadInput, CatalogMenuAttachInput, CatalogMenuChatFile, CatalogMenuKeepInSyncInput, CatalogMenuKeepInSyncResult, CatalogFilePreview, CatalogFilePreviewInput, CatalogImportApplyResult, CatalogImportItem, CatalogImportPreview, CatalogImportSource, CatalogImportSourcePreview, CatalogImportRunResult, CatalogPhotoUploadTarget, CatalogProduct, CatalogProductPage, HideProductReviewInput, ListProductReviewsForOwnerInput, ListProductReviewsInput, ProductLikeResult, ProductReviewOwner, ProductReviewsOwnerPage, ProductReviewsPage, CatalogSheetTab, CatalogTemplateSheet, CreateCatalogTemplateSheetInput, CreateCatalogCategoryInput, ListCatalogCategoriesInput, CreateCatalogImportSourceInput, CreateCatalogProductInput, ListCatalogProductsInput, PreviewCatalogImportSourceInput, SignCatalogPhotoUploadInput, UpdateCatalogCategoryInput, UpdateCatalogImportSourceInput, UpdateCatalogProductInput, UpsertCatalogInput } from '../types';
|
|
3
|
+
import type { AttachCatalogCategoryImageInput, AttachCatalogPhotoInput, Catalog, CatalogCategory, CatalogFileApplyInput, CatalogFileApplyResult, CatalogOptionChange, CatalogOptionChangesPlan, CatalogOptionGroup, CatalogUnit, SaveCatalogUnitInput, SaveCatalogOptionGroupInput, CatalogMenuItem, CatalogMenuRead, CatalogMenuReadInput, CatalogMenuAttachInput, CatalogMenuChatFile, CatalogMenuKeepInSyncInput, CatalogMenuKeepInSyncResult, CatalogFilePreview, CatalogFilePreviewInput, CatalogImportApplyResult, CatalogImportItem, CatalogImportPreview, CatalogImportSource, CatalogImportSourcePreview, CatalogImportRunResult, CatalogPhotoUploadTarget, CatalogPhotoStudioAttachResult, CatalogPhotoStudioCreated, CatalogPhotoStudioJob, CatalogPhotoStudioQuote, CatalogPhotoStudioSkills, CatalogPhotoStudioQuoteInput, CreateCatalogPhotoStudioJobInput, CatalogProduct, CatalogProductPage, HideProductReviewInput, ListProductReviewsForOwnerInput, ListProductReviewsInput, ProductLikeResult, ProductReviewOwner, ProductReviewsOwnerPage, ProductReviewsPage, CatalogSheetTab, CatalogTemplateSheet, CreateCatalogTemplateSheetInput, CreateCatalogCategoryInput, ListCatalogCategoriesInput, CreateCatalogImportSourceInput, CreateCatalogProductInput, ListCatalogProductsInput, PreviewCatalogImportSourceInput, SignCatalogPhotoUploadInput, UpdateCatalogCategoryInput, UpdateCatalogImportSourceInput, UpdateCatalogProductInput, UpsertCatalogInput } from '../types';
|
|
4
4
|
/** Max structured items per `import.preview/apply` call (platform cap). */
|
|
5
5
|
export declare const CATALOG_IMPORT_MAX_ITEMS = 200;
|
|
6
6
|
/** Thrown client-side, before any request, when `items` exceeds the cap. */
|
|
@@ -50,6 +50,42 @@ export declare class CatalogPhotosResource {
|
|
|
50
50
|
/** `PATCH …/photos/cover` */
|
|
51
51
|
setCover(productId: string, url: string): Promise<CatalogProduct>;
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* PDK-HIGGSFIELD — the catalog photo studio (`products.studio`): turns a REAL product photo into a
|
|
55
|
+
* catalog-ready transparent PNG through the workspace's own Higgsfield account. Owner/admin flow of the
|
|
56
|
+
* host App — who may call it is the host's decision; the platform only knows the tenant. Nothing is
|
|
57
|
+
* published by itself: a ready candidate is previewed, then `attach`ed (the cover only changes on request).
|
|
58
|
+
*
|
|
59
|
+
* Errors carry the platform's stable `error.code` (`PHOTO_REQUIRED`, `SOURCE_NOT_IN_PRODUCT`,
|
|
60
|
+
* `IDEMPOTENCY_KEY_REQUIRED`, `PRICE_CHANGED` 409, `INSUFFICIENT_CREDITS` 409, `ACTIVE_JOB_EXISTS` 409 (`jobId`),
|
|
61
|
+
* `HIGGSFIELD_NOT_CONFIGURED` / `HIGGSFIELD_NOT_CONNECTED` / `HIGGSFIELD_RECONNECT` 409, `TENANT_JOB_CAP` 429, `JOB_NOT_READY` 409, `NOT_RESUMABLE` 409, `JOB_NOT_FOUND` 404…).
|
|
62
|
+
*/
|
|
63
|
+
export declare class CatalogPhotoStudioResource {
|
|
64
|
+
private readonly client;
|
|
65
|
+
constructor(client: AgentForgeClient);
|
|
66
|
+
private path;
|
|
67
|
+
/** `GET api/v1/catalog/studio/skills` — the image skills (slug, label, purpose, aspect, output). Tenant-level: no product. */
|
|
68
|
+
skills(): Promise<CatalogPhotoStudioSkills>;
|
|
69
|
+
/** `POST …/studio/quote` — price and workspace balance before spending. cutout has `credits: null`. */
|
|
70
|
+
quote(productId: string, input: CatalogPhotoStudioQuoteInput): Promise<CatalogPhotoStudioQuote>;
|
|
71
|
+
/** `POST …/studio/jobs` — start a job (spends Higgsfield credits). `replayed` is true when the same
|
|
72
|
+
* `idempotencyKey` had already created it. */
|
|
73
|
+
create(productId: string, input: CreateCatalogPhotoStudioJobInput): Promise<CatalogPhotoStudioCreated>;
|
|
74
|
+
/** `GET …/studio/jobs` — this product's jobs, newest first (max 20). */
|
|
75
|
+
list(productId: string): Promise<CatalogPhotoStudioJob[]>;
|
|
76
|
+
/** `GET …/studio/jobs/:jobId` — status, stage, error code and (when ready) the candidate `resultUrl`. */
|
|
77
|
+
get(productId: string, jobId: string): Promise<CatalogPhotoStudioJob>;
|
|
78
|
+
/** `POST …/studio/jobs/:jobId/attach` — add the ready candidate to the product photos. Idempotent;
|
|
79
|
+
* the cover only changes with `isCover: true`. `JOB_NOT_READY` 409 otherwise. */
|
|
80
|
+
attach(productId: string, jobId: string, input?: {
|
|
81
|
+
isCover?: boolean;
|
|
82
|
+
}): Promise<CatalogPhotoStudioAttachResult>;
|
|
83
|
+
/** `POST …/studio/jobs/:jobId/resume` — continue a job the platform can safely continue (see the job's
|
|
84
|
+
* `resumable`). `NOT_RESUMABLE` 409 otherwise. */
|
|
85
|
+
resume(productId: string, jobId: string): Promise<CatalogPhotoStudioJob>;
|
|
86
|
+
/** `DELETE …/studio/jobs/:jobId` — drop a candidate (and its stored object). The product photos are not touched. */
|
|
87
|
+
discard(productId: string, jobId: string): Promise<CatalogPhotoStudioJob>;
|
|
88
|
+
}
|
|
53
89
|
/** AGF-UNITS U1 — units of measure: the standard ones and the business's own. */
|
|
54
90
|
export declare class CatalogUnitsResource {
|
|
55
91
|
private readonly client;
|
|
@@ -126,6 +162,8 @@ export declare class CatalogReviewsResource {
|
|
|
126
162
|
export declare class CatalogProductsResource {
|
|
127
163
|
private readonly client;
|
|
128
164
|
readonly photos: CatalogPhotosResource;
|
|
165
|
+
/** PDK-HIGGSFIELD — catalog photos from the owner's Higgsfield account. */
|
|
166
|
+
readonly studio: CatalogPhotoStudioResource;
|
|
129
167
|
/** AGF-PDK-PRODUCT-REVIEWS — a product's public reviews and rating. */
|
|
130
168
|
readonly reviews: CatalogProductReviewsResource;
|
|
131
169
|
/** AGF-PDK-PRODUCT-REVIEWS — likes of signed-in customers. */
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// machine-readable code (`CATALOG_NOT_FOUND`, `FILE_EMPTY_FILE`,
|
|
17
17
|
// `INVALID_MAPPING`, `TOO_MANY_ITEMS`, …).
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.CatalogResource = exports.CatalogSourcesResource = exports.CatalogImportResource = exports.CatalogMenuImportResource = exports.CatalogFileImportResource = exports.CatalogProductsResource = exports.CatalogReviewsResource = exports.CatalogProductLikesResource = exports.CatalogProductReviewsResource = exports.CatalogOptionGroupsResource = exports.CatalogUnitsResource = exports.CatalogPhotosResource = exports.CatalogCategoriesResource = exports.AgentForgeCatalogImportLimitError = exports.CATALOG_IMPORT_MAX_ITEMS = void 0;
|
|
19
|
+
exports.CatalogResource = exports.CatalogSourcesResource = exports.CatalogImportResource = exports.CatalogMenuImportResource = exports.CatalogFileImportResource = exports.CatalogProductsResource = exports.CatalogReviewsResource = exports.CatalogProductLikesResource = exports.CatalogProductReviewsResource = exports.CatalogOptionGroupsResource = exports.CatalogUnitsResource = exports.CatalogPhotoStudioResource = exports.CatalogPhotosResource = exports.CatalogCategoriesResource = exports.AgentForgeCatalogImportLimitError = exports.CATALOG_IMPORT_MAX_ITEMS = void 0;
|
|
20
20
|
const errors_1 = require("../errors");
|
|
21
21
|
const BASE = '/api/v1/catalog';
|
|
22
22
|
const TENANT_AUTH = { forceApiKey: true };
|
|
@@ -129,6 +129,60 @@ class CatalogPhotosResource {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
exports.CatalogPhotosResource = CatalogPhotosResource;
|
|
132
|
+
/**
|
|
133
|
+
* PDK-HIGGSFIELD — the catalog photo studio (`products.studio`): turns a REAL product photo into a
|
|
134
|
+
* catalog-ready transparent PNG through the workspace's own Higgsfield account. Owner/admin flow of the
|
|
135
|
+
* host App — who may call it is the host's decision; the platform only knows the tenant. Nothing is
|
|
136
|
+
* published by itself: a ready candidate is previewed, then `attach`ed (the cover only changes on request).
|
|
137
|
+
*
|
|
138
|
+
* Errors carry the platform's stable `error.code` (`PHOTO_REQUIRED`, `SOURCE_NOT_IN_PRODUCT`,
|
|
139
|
+
* `IDEMPOTENCY_KEY_REQUIRED`, `PRICE_CHANGED` 409, `INSUFFICIENT_CREDITS` 409, `ACTIVE_JOB_EXISTS` 409 (`jobId`),
|
|
140
|
+
* `HIGGSFIELD_NOT_CONFIGURED` / `HIGGSFIELD_NOT_CONNECTED` / `HIGGSFIELD_RECONNECT` 409, `TENANT_JOB_CAP` 429, `JOB_NOT_READY` 409, `NOT_RESUMABLE` 409, `JOB_NOT_FOUND` 404…).
|
|
141
|
+
*/
|
|
142
|
+
class CatalogPhotoStudioResource {
|
|
143
|
+
constructor(client) {
|
|
144
|
+
this.client = client;
|
|
145
|
+
}
|
|
146
|
+
path(productId, tail = '') {
|
|
147
|
+
return `${BASE}/products/${seg(productId)}/studio${tail}`;
|
|
148
|
+
}
|
|
149
|
+
/** `GET api/v1/catalog/studio/skills` — the image skills (slug, label, purpose, aspect, output). Tenant-level: no product. */
|
|
150
|
+
async skills() {
|
|
151
|
+
return this.client.request('GET', `${BASE}/studio/skills`, undefined, TENANT_AUTH);
|
|
152
|
+
}
|
|
153
|
+
/** `POST …/studio/quote` — price and workspace balance before spending. cutout has `credits: null`. */
|
|
154
|
+
async quote(productId, input) {
|
|
155
|
+
return this.client.request('POST', this.path(productId, '/quote'), input, TENANT_AUTH);
|
|
156
|
+
}
|
|
157
|
+
/** `POST …/studio/jobs` — start a job (spends Higgsfield credits). `replayed` is true when the same
|
|
158
|
+
* `idempotencyKey` had already created it. */
|
|
159
|
+
async create(productId, input) {
|
|
160
|
+
return this.client.request('POST', this.path(productId, '/jobs'), input, TENANT_AUTH);
|
|
161
|
+
}
|
|
162
|
+
/** `GET …/studio/jobs` — this product's jobs, newest first (max 20). */
|
|
163
|
+
async list(productId) {
|
|
164
|
+
return this.client.request('GET', this.path(productId, '/jobs'), undefined, TENANT_AUTH);
|
|
165
|
+
}
|
|
166
|
+
/** `GET …/studio/jobs/:jobId` — status, stage, error code and (when ready) the candidate `resultUrl`. */
|
|
167
|
+
async get(productId, jobId) {
|
|
168
|
+
return this.client.request('GET', this.path(productId, `/jobs/${seg(jobId)}`), undefined, TENANT_AUTH);
|
|
169
|
+
}
|
|
170
|
+
/** `POST …/studio/jobs/:jobId/attach` — add the ready candidate to the product photos. Idempotent;
|
|
171
|
+
* the cover only changes with `isCover: true`. `JOB_NOT_READY` 409 otherwise. */
|
|
172
|
+
async attach(productId, jobId, input = {}) {
|
|
173
|
+
return this.client.request('POST', this.path(productId, `/jobs/${seg(jobId)}/attach`), input, TENANT_AUTH);
|
|
174
|
+
}
|
|
175
|
+
/** `POST …/studio/jobs/:jobId/resume` — continue a job the platform can safely continue (see the job's
|
|
176
|
+
* `resumable`). `NOT_RESUMABLE` 409 otherwise. */
|
|
177
|
+
async resume(productId, jobId) {
|
|
178
|
+
return this.client.request('POST', this.path(productId, `/jobs/${seg(jobId)}/resume`), {}, TENANT_AUTH);
|
|
179
|
+
}
|
|
180
|
+
/** `DELETE …/studio/jobs/:jobId` — drop a candidate (and its stored object). The product photos are not touched. */
|
|
181
|
+
async discard(productId, jobId) {
|
|
182
|
+
return this.client.request('DELETE', this.path(productId, `/jobs/${seg(jobId)}`), undefined, TENANT_AUTH);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.CatalogPhotoStudioResource = CatalogPhotoStudioResource;
|
|
132
186
|
/** AGF-UNITS U1 — units of measure: the standard ones and the business's own. */
|
|
133
187
|
class CatalogUnitsResource {
|
|
134
188
|
constructor(client) {
|
|
@@ -254,6 +308,7 @@ class CatalogProductsResource {
|
|
|
254
308
|
constructor(client) {
|
|
255
309
|
this.client = client;
|
|
256
310
|
this.photos = new CatalogPhotosResource(client);
|
|
311
|
+
this.studio = new CatalogPhotoStudioResource(client);
|
|
257
312
|
this.reviews = new CatalogProductReviewsResource(client);
|
|
258
313
|
this.likes = new CatalogProductLikesResource(client);
|
|
259
314
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1639,6 +1639,148 @@ export interface CatalogPhotoUploadTarget {
|
|
|
1639
1639
|
key: string;
|
|
1640
1640
|
expiresInSeconds: number;
|
|
1641
1641
|
}
|
|
1642
|
+
/** PDK-HIGGSFIELD — catalog photo studio. `cutout` removes the background of the REAL photo; `studio` generates a
|
|
1643
|
+
* reference-guided image from it, then removes the background. There is no free prompt. */
|
|
1644
|
+
export type CatalogPhotoStudioMode = 'cutout' | 'studio';
|
|
1645
|
+
/** Camera angle of a `studio` mode job (a fixed list: there is no free prompt). */
|
|
1646
|
+
export type CatalogPhotoStudioAngle = 'front' | 'three_quarter' | 'top';
|
|
1647
|
+
/**
|
|
1648
|
+
* Platform-side lifecycle of a studio job. `quoting` = row created, price not accepted yet (never run); `pending` /
|
|
1649
|
+
* `submitting` / `processing` occupy the product's single active-job slot together with `quoting`; `unknown` = a paid
|
|
1650
|
+
* call may or may not have gone through (never retried automatically).
|
|
1651
|
+
*/
|
|
1652
|
+
export type CatalogPhotoStudioStatus = 'pending' | 'quoting' | 'submitting' | 'processing' | 'ready' | 'failed' | 'unknown' | 'attached' | 'discarded';
|
|
1653
|
+
/** PDK-HIGGSFIELD S2 — the image skills (server-side recipes; the prompts never leave the platform). */
|
|
1654
|
+
export type CatalogPhotoStudioSkill = 'product-cart' | 'ugc-model' | 'minimal-poster' | 'gravity-defying' | 'hero-offert' | 'cleanfly';
|
|
1655
|
+
/** `alpha_master` = transparent catalog master; `scene` = a finished picture (no background removal). */
|
|
1656
|
+
export type CatalogPhotoStudioOutput = 'alpha_master' | 'scene';
|
|
1657
|
+
/** The brand palette a skill job is painted with (the host resolves it; the platform validates and normalizes the hex values). */
|
|
1658
|
+
export interface CatalogPhotoStudioPalette {
|
|
1659
|
+
primary: string;
|
|
1660
|
+
accent?: string;
|
|
1661
|
+
surface: string;
|
|
1662
|
+
onSurface: string;
|
|
1663
|
+
mode: 'light' | 'dark';
|
|
1664
|
+
/** At most 2 extra brand colors (hex). */
|
|
1665
|
+
extra?: string[];
|
|
1666
|
+
}
|
|
1667
|
+
/**
|
|
1668
|
+
* Body of `studio.quote` (and the request part of `studio.create`). `sourceUrl` must be one of the product's photos.
|
|
1669
|
+
* Two shapes: `{ mode, angle?, sourceUrl }` (cutout / studio) or, with a `skill`, `{ skill, palette, note?, sourceUrl }`
|
|
1670
|
+
* (a skill takes no `mode` / `angle`; `palette` and `note` apply only together with a skill).
|
|
1671
|
+
*/
|
|
1672
|
+
export interface CatalogPhotoStudioRequest {
|
|
1673
|
+
/** Omit when `skill` is set (a skill runs as studio). */
|
|
1674
|
+
mode?: CatalogPhotoStudioMode;
|
|
1675
|
+
/** Required by `studio` mode (the platform validates it). Never with a skill. */
|
|
1676
|
+
angle?: CatalogPhotoStudioAngle;
|
|
1677
|
+
sourceUrl: string;
|
|
1678
|
+
/** PDK-HIGGSFIELD S2 — an image skill. Errors: `INVALID_SKILL`, `PHOTO_REQUIRED`. */
|
|
1679
|
+
skill?: CatalogPhotoStudioSkill;
|
|
1680
|
+
/** Required with a skill (`INVALID_PALETTE`). */
|
|
1681
|
+
palette?: CatalogPhotoStudioPalette;
|
|
1682
|
+
/** Short art-direction note, at most 140 characters (`NOTE_TOO_LONG`; `NOTE_NOT_ALLOWED` when it asks for text to render). */
|
|
1683
|
+
note?: string;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Body of `studio.quote`. Same as {@link CatalogPhotoStudioRequest} except that with a `skill`, `sourceUrl` is
|
|
1687
|
+
* optional (omit or `null` → priced without a photo; the price only depends on skill / aspect / model). Mode-only
|
|
1688
|
+
* requests (cutout / studio) still require it.
|
|
1689
|
+
*/
|
|
1690
|
+
export type CatalogPhotoStudioQuoteInput = (CatalogPhotoStudioRequest & {
|
|
1691
|
+
skill?: undefined;
|
|
1692
|
+
}) | (Omit<CatalogPhotoStudioRequest, 'sourceUrl' | 'skill'> & {
|
|
1693
|
+
skill: CatalogPhotoStudioSkill;
|
|
1694
|
+
sourceUrl?: string | null;
|
|
1695
|
+
});
|
|
1696
|
+
export interface CatalogPhotoStudioQuote {
|
|
1697
|
+
mode: CatalogPhotoStudioMode;
|
|
1698
|
+
angle: CatalogPhotoStudioAngle | null;
|
|
1699
|
+
/** The skill slug; `null` for the plain cutout / studio modes. */
|
|
1700
|
+
skill: CatalogPhotoStudioSkill | null;
|
|
1701
|
+
output: CatalogPhotoStudioOutput;
|
|
1702
|
+
/** Steps of the job that have no published price (cutout's `remove_background`); `[]` for a scene skill. */
|
|
1703
|
+
unpricedSteps: string[];
|
|
1704
|
+
/** `null` when quoted without a photo (skill quotes only). */
|
|
1705
|
+
sourceUrl: string | null;
|
|
1706
|
+
/** Credits the job would cost; `null` for cutout (no published price). */
|
|
1707
|
+
credits: number | null;
|
|
1708
|
+
creditsExact: number | null;
|
|
1709
|
+
/** The workspace's Higgsfield balance now. */
|
|
1710
|
+
balance: number;
|
|
1711
|
+
/** `null` when the cost is unknown. */
|
|
1712
|
+
sufficient: boolean | null;
|
|
1713
|
+
rulesVersion: string;
|
|
1714
|
+
}
|
|
1715
|
+
export interface CreateCatalogPhotoStudioJobInput extends CatalogPhotoStudioRequest {
|
|
1716
|
+
/** 8-128 chars of letters, digits and `. _ : -`. Same key, same request → the same job (`replayed: true`). */
|
|
1717
|
+
idempotencyKey: string;
|
|
1718
|
+
/** Studio: the price the owner saw (the quote's `credits`). Cutout: explicit `null`. */
|
|
1719
|
+
confirmedCredits: number | null;
|
|
1720
|
+
/** The host's id of the person who asked (kept ≤ 128 chars; optional). */
|
|
1721
|
+
requestedBy?: string | null;
|
|
1722
|
+
}
|
|
1723
|
+
/** A studio job as the platform returns it (no provider ids). */
|
|
1724
|
+
export interface CatalogPhotoStudioJob {
|
|
1725
|
+
id: string;
|
|
1726
|
+
productId: string;
|
|
1727
|
+
mode: CatalogPhotoStudioMode;
|
|
1728
|
+
angle: CatalogPhotoStudioAngle | null;
|
|
1729
|
+
/** PDK-HIGGSFIELD S2 — the skill the job runs; `null` for cutout / studio. */
|
|
1730
|
+
skill: CatalogPhotoStudioSkill | null;
|
|
1731
|
+
/** The palette the prompt was built with (normalized); `null` without a skill. */
|
|
1732
|
+
palette: CatalogPhotoStudioPalette | null;
|
|
1733
|
+
/** The sanitized art-direction note; `null` when none. */
|
|
1734
|
+
note: string | null;
|
|
1735
|
+
sourceUrl: string;
|
|
1736
|
+
status: CatalogPhotoStudioStatus;
|
|
1737
|
+
stage: string;
|
|
1738
|
+
quotedCredits: number | null;
|
|
1739
|
+
rulesVersion: string;
|
|
1740
|
+
/** Candidate image; set while `ready` / `attached`. */
|
|
1741
|
+
resultUrl: string | null;
|
|
1742
|
+
/** Stable machine code when `failed` / `unknown` (never a provider message). */
|
|
1743
|
+
errorCode: string | null;
|
|
1744
|
+
errorMessage: string | null;
|
|
1745
|
+
/** `true` when `studio.resume` would be accepted (failed after the paid step for a recoverable cause). */
|
|
1746
|
+
resumable: boolean;
|
|
1747
|
+
createdAt: string;
|
|
1748
|
+
updatedAt: string;
|
|
1749
|
+
}
|
|
1750
|
+
/** One entry of `studio.skills()`. The prompts and model internals are not listed. */
|
|
1751
|
+
export interface CatalogPhotoStudioSkillInfo {
|
|
1752
|
+
slug: CatalogPhotoStudioSkill;
|
|
1753
|
+
label: {
|
|
1754
|
+
es: string;
|
|
1755
|
+
en: string;
|
|
1756
|
+
};
|
|
1757
|
+
purpose: {
|
|
1758
|
+
es: string;
|
|
1759
|
+
en: string;
|
|
1760
|
+
};
|
|
1761
|
+
/** e.g. `1:1`, `4:5`, `16:9`. */
|
|
1762
|
+
aspectRatio: string;
|
|
1763
|
+
/** The aspect the model generates (may differ from the delivered one). */
|
|
1764
|
+
generateAspect: string;
|
|
1765
|
+
/** Delivered size in pixels. */
|
|
1766
|
+
width: number;
|
|
1767
|
+
height: number;
|
|
1768
|
+
output: CatalogPhotoStudioOutput;
|
|
1769
|
+
}
|
|
1770
|
+
/** `studio.skills()` result. */
|
|
1771
|
+
export interface CatalogPhotoStudioSkills {
|
|
1772
|
+
rulesVersion: string;
|
|
1773
|
+
skills: CatalogPhotoStudioSkillInfo[];
|
|
1774
|
+
}
|
|
1775
|
+
/** `studio.create` result: the job plus whether it was a replay of the same idempotency key (HTTP 200 vs 201). */
|
|
1776
|
+
export type CatalogPhotoStudioCreated = CatalogPhotoStudioJob & {
|
|
1777
|
+
replayed: boolean;
|
|
1778
|
+
};
|
|
1779
|
+
/** `studio.attach` result. `product` is `null` when the job was already attached (idempotent replay). */
|
|
1780
|
+
export interface CatalogPhotoStudioAttachResult {
|
|
1781
|
+
job: CatalogPhotoStudioJob;
|
|
1782
|
+
product: CatalogProduct | null;
|
|
1783
|
+
}
|
|
1642
1784
|
export interface SignCatalogPhotoUploadInput {
|
|
1643
1785
|
/** image/jpeg, image/png, image/webp… (server whitelist). */
|
|
1644
1786
|
contentType: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentforge-io/sdk-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.93.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",
|