@agentforge-io/sdk-server 4.93.0 → 4.95.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/resources/catalog.d.ts +6 -1
- package/dist/resources/catalog.js +9 -0
- package/dist/types.d.ts +90 -2
- 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, 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';
|
|
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, CatalogPhotoStudioEngine, CatalogPhotoStudioRetryable, CatalogPhotoStudioPalette, CatalogPhotoStudioSkillInfo, CatalogPhotoStudioSkills, CatalogPhotoStudioBatchItemInput, CatalogPhotoStudioBatchQuoteInput, CatalogPhotoStudioBatchQuoteItem, CatalogPhotoStudioBatchQuote, CreateCatalogPhotoStudioBatchInput, CatalogPhotoStudioBatchCreated, 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';
|
|
@@ -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, 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';
|
|
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, CatalogPhotoStudioBatchQuote, CatalogPhotoStudioBatchQuoteInput, CatalogPhotoStudioBatchCreated, CreateCatalogPhotoStudioBatchInput, 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. */
|
|
@@ -71,6 +71,11 @@ export declare class CatalogPhotoStudioResource {
|
|
|
71
71
|
/** `POST …/studio/jobs` — start a job (spends Higgsfield credits). `replayed` is true when the same
|
|
72
72
|
* `idempotencyKey` had already created it. */
|
|
73
73
|
create(productId: string, input: CreateCatalogPhotoStudioJobInput): Promise<CatalogPhotoStudioCreated>;
|
|
74
|
+
/** `POST …/studio/batch-quote` — price 1..4 skill images at once (per image + total + balance). Spends nothing. */
|
|
75
|
+
batchQuote(productId: string, input: CatalogPhotoStudioBatchQuoteInput): Promise<CatalogPhotoStudioBatchQuote>;
|
|
76
|
+
/** `POST …/studio/batches` — start a batch of 1..4 jobs (spends Higgsfield credits). Jobs share `batchId`
|
|
77
|
+
* and run one at a time on the platform. 201 created / 200 replay of the same `idempotencyKey`. */
|
|
78
|
+
createBatch(productId: string, input: CreateCatalogPhotoStudioBatchInput): Promise<CatalogPhotoStudioBatchCreated>;
|
|
74
79
|
/** `GET …/studio/jobs` — this product's jobs, newest first (max 20). */
|
|
75
80
|
list(productId: string): Promise<CatalogPhotoStudioJob[]>;
|
|
76
81
|
/** `GET …/studio/jobs/:jobId` — status, stage, error code and (when ready) the candidate `resultUrl`. */
|
|
@@ -159,6 +159,15 @@ class CatalogPhotoStudioResource {
|
|
|
159
159
|
async create(productId, input) {
|
|
160
160
|
return this.client.request('POST', this.path(productId, '/jobs'), input, TENANT_AUTH);
|
|
161
161
|
}
|
|
162
|
+
/** `POST …/studio/batch-quote` — price 1..4 skill images at once (per image + total + balance). Spends nothing. */
|
|
163
|
+
async batchQuote(productId, input) {
|
|
164
|
+
return this.client.request('POST', this.path(productId, '/batch-quote'), input, TENANT_AUTH);
|
|
165
|
+
}
|
|
166
|
+
/** `POST …/studio/batches` — start a batch of 1..4 jobs (spends Higgsfield credits). Jobs share `batchId`
|
|
167
|
+
* and run one at a time on the platform. 201 created / 200 replay of the same `idempotencyKey`. */
|
|
168
|
+
async createBatch(productId, input) {
|
|
169
|
+
return this.client.request('POST', this.path(productId, '/batches'), input, TENANT_AUTH);
|
|
170
|
+
}
|
|
162
171
|
/** `GET …/studio/jobs` — this product's jobs, newest first (max 20). */
|
|
163
172
|
async list(productId) {
|
|
164
173
|
return this.client.request('GET', this.path(productId, '/jobs'), undefined, TENANT_AUTH);
|
package/dist/types.d.ts
CHANGED
|
@@ -1651,7 +1651,22 @@ export type CatalogPhotoStudioAngle = 'front' | 'three_quarter' | 'top';
|
|
|
1651
1651
|
*/
|
|
1652
1652
|
export type CatalogPhotoStudioStatus = 'pending' | 'quoting' | 'submitting' | 'processing' | 'ready' | 'failed' | 'unknown' | 'attached' | 'discarded';
|
|
1653
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'
|
|
1654
|
+
export type CatalogPhotoStudioSkill = 'product-cart' | 'ugc-model' | 'minimal-poster' | 'gravity-defying' | 'hero-offert' | 'cleanfly'
|
|
1655
|
+
/** Background removal only (no generative model): needs just `sourceUrl`; `credits: null`, never a fallback engine. */
|
|
1656
|
+
| 'cutout';
|
|
1657
|
+
/**
|
|
1658
|
+
* PDK-HIGGSFIELD-FALLBACK — which model runs a generative skill. `fallback` = the skill's fallback model (offer it after a
|
|
1659
|
+
* job was refused by moderation: `retryable.fallback`); needs a new quote + an explicit owner confirm. Anything else is
|
|
1660
|
+
* `400 INVALID_ENGINE`; `fallback` with a non-generative request (plain mode, `cutout`, batch item) is also refused.
|
|
1661
|
+
*/
|
|
1662
|
+
export type CatalogPhotoStudioEngine = 'primary' | 'fallback';
|
|
1663
|
+
/** What a failed job may be redone with (non-false only for NSFW / IP_DETECTED refusals at `generate_wait`). */
|
|
1664
|
+
export interface CatalogPhotoStudioRetryable {
|
|
1665
|
+
/** Same request on the skill's fallback model (`engine: 'fallback'`). */
|
|
1666
|
+
fallback: boolean;
|
|
1667
|
+
/** Just extract the product (`skill: 'cutout'`). */
|
|
1668
|
+
cutout: boolean;
|
|
1669
|
+
}
|
|
1655
1670
|
/** `alpha_master` = transparent catalog master; `scene` = a finished picture (no background removal). */
|
|
1656
1671
|
export type CatalogPhotoStudioOutput = 'alpha_master' | 'scene';
|
|
1657
1672
|
/** The brand palette a skill job is painted with (the host resolves it; the platform validates and normalizes the hex values). */
|
|
@@ -1681,6 +1696,8 @@ export interface CatalogPhotoStudioRequest {
|
|
|
1681
1696
|
palette?: CatalogPhotoStudioPalette;
|
|
1682
1697
|
/** Short art-direction note, at most 140 characters (`NOTE_TOO_LONG`; `NOTE_NOT_ALLOWED` when it asks for text to render). */
|
|
1683
1698
|
note?: string;
|
|
1699
|
+
/** PDK-HIGGSFIELD-FALLBACK — `fallback` runs the skill on its fallback model (generative skills only; `INVALID_ENGINE`). Default `primary`. */
|
|
1700
|
+
engine?: CatalogPhotoStudioEngine;
|
|
1684
1701
|
}
|
|
1685
1702
|
/**
|
|
1686
1703
|
* Body of `studio.quote`. Same as {@link CatalogPhotoStudioRequest} except that with a `skill`, `sourceUrl` is
|
|
@@ -1703,6 +1720,10 @@ export interface CatalogPhotoStudioQuote {
|
|
|
1703
1720
|
unpricedSteps: string[];
|
|
1704
1721
|
/** `null` when quoted without a photo (skill quotes only). */
|
|
1705
1722
|
sourceUrl: string | null;
|
|
1723
|
+
/** PDK-HIGGSFIELD-FALLBACK — the engine this quote prices. */
|
|
1724
|
+
engine: CatalogPhotoStudioEngine;
|
|
1725
|
+
/** `false` when `unpricedSteps` is non-empty (the total is a floor, not the full cost). */
|
|
1726
|
+
pricingComplete: boolean;
|
|
1706
1727
|
/** Credits the job would cost; `null` for cutout (no published price). */
|
|
1707
1728
|
credits: number | null;
|
|
1708
1729
|
creditsExact: number | null;
|
|
@@ -1726,8 +1747,12 @@ export interface CatalogPhotoStudioJob {
|
|
|
1726
1747
|
productId: string;
|
|
1727
1748
|
mode: CatalogPhotoStudioMode;
|
|
1728
1749
|
angle: CatalogPhotoStudioAngle | null;
|
|
1729
|
-
/** PDK-HIGGSFIELD S2 — the skill the job runs; `null` for
|
|
1750
|
+
/** PDK-HIGGSFIELD S2 — the skill the job runs (`'cutout'` for the non-generative skill); `null` for the plain modes. */
|
|
1730
1751
|
skill: CatalogPhotoStudioSkill | null;
|
|
1752
|
+
/** PDK-HIGGSFIELD-FALLBACK — the engine the job ran on. */
|
|
1753
|
+
engine: CatalogPhotoStudioEngine;
|
|
1754
|
+
/** What a failed job can be redone with (all `false` unless it failed on an NSFW / IP_DETECTED refusal). Needs a new quote + owner confirm. */
|
|
1755
|
+
retryable: CatalogPhotoStudioRetryable;
|
|
1731
1756
|
/** The palette the prompt was built with (normalized); `null` without a skill. */
|
|
1732
1757
|
palette: CatalogPhotoStudioPalette | null;
|
|
1733
1758
|
/** The sanitized art-direction note; `null` when none. */
|
|
@@ -1744,6 +1769,10 @@ export interface CatalogPhotoStudioJob {
|
|
|
1744
1769
|
errorMessage: string | null;
|
|
1745
1770
|
/** `true` when `studio.resume` would be accepted (failed after the paid step for a recoverable cause). */
|
|
1746
1771
|
resumable: boolean;
|
|
1772
|
+
/** PDK-IMAGE-STUDIO — the batch this job belongs to; `null` for a single job. */
|
|
1773
|
+
batchId: string | null;
|
|
1774
|
+
/** Position of the job inside its batch (0-based); `null` for a single job. */
|
|
1775
|
+
batchIndex: number | null;
|
|
1747
1776
|
createdAt: string;
|
|
1748
1777
|
updatedAt: string;
|
|
1749
1778
|
}
|
|
@@ -1766,6 +1795,10 @@ export interface CatalogPhotoStudioSkillInfo {
|
|
|
1766
1795
|
width: number;
|
|
1767
1796
|
height: number;
|
|
1768
1797
|
output: CatalogPhotoStudioOutput;
|
|
1798
|
+
/** PDK-HIGGSFIELD-FALLBACK — `false` for `cutout` (no prompt, no palette/note). Optional: absent on an older platform (read as `true`). */
|
|
1799
|
+
generative?: boolean;
|
|
1800
|
+
/** PDK-HIGGSFIELD-FALLBACK — the skill has a fallback model (`engine: 'fallback'` is accepted). Optional on an older platform (read as `false`). */
|
|
1801
|
+
hasFallback?: boolean;
|
|
1769
1802
|
}
|
|
1770
1803
|
/** `studio.skills()` result. */
|
|
1771
1804
|
export interface CatalogPhotoStudioSkills {
|
|
@@ -1781,6 +1814,61 @@ export interface CatalogPhotoStudioAttachResult {
|
|
|
1781
1814
|
job: CatalogPhotoStudioJob;
|
|
1782
1815
|
product: CatalogProduct | null;
|
|
1783
1816
|
}
|
|
1817
|
+
/** One image of a studio batch: a skill applied to one of the product's photos. */
|
|
1818
|
+
export interface CatalogPhotoStudioBatchItemInput {
|
|
1819
|
+
/** Generative skills only: a `cutout` item is `400 INVALID_SKILL`. */
|
|
1820
|
+
skill: Exclude<CatalogPhotoStudioSkill, 'cutout'>;
|
|
1821
|
+
/** Must be one of the product's photos (`SOURCE_NOT_IN_PRODUCT`); omit / `null` → the platform picks the cover. */
|
|
1822
|
+
sourceUrl?: string | null;
|
|
1823
|
+
/** Short art-direction note, at most 140 characters (`NOTE_NOT_ALLOWED` when it asks for text to render). */
|
|
1824
|
+
note?: string;
|
|
1825
|
+
}
|
|
1826
|
+
/** Body of `studio.batchQuote`: 1..4 items sharing one palette. */
|
|
1827
|
+
export interface CatalogPhotoStudioBatchQuoteInput {
|
|
1828
|
+
items: CatalogPhotoStudioBatchItemInput[];
|
|
1829
|
+
palette?: CatalogPhotoStudioPalette;
|
|
1830
|
+
}
|
|
1831
|
+
export interface CatalogPhotoStudioBatchQuoteItem {
|
|
1832
|
+
skill: CatalogPhotoStudioSkill;
|
|
1833
|
+
sourceUrl: string | null;
|
|
1834
|
+
credits: number | null;
|
|
1835
|
+
output: CatalogPhotoStudioOutput;
|
|
1836
|
+
/** Delivered aspect ratio, e.g. `1:1`, `4:5`. */
|
|
1837
|
+
aspect: string;
|
|
1838
|
+
/** Paid steps the provider cannot price in advance (`remove_background` for transparent-master skills); charged on top of `credits`. */
|
|
1839
|
+
unpricedSteps?: string[];
|
|
1840
|
+
}
|
|
1841
|
+
/** `studio.batchQuote` result. Spends nothing. */
|
|
1842
|
+
export interface CatalogPhotoStudioBatchQuote {
|
|
1843
|
+
items: CatalogPhotoStudioBatchQuoteItem[];
|
|
1844
|
+
totalCredits: number;
|
|
1845
|
+
/** The workspace's Higgsfield balance now. */
|
|
1846
|
+
balance: number;
|
|
1847
|
+
/** Computed on `totalCredits` only: unpriced steps are not covered by it. */
|
|
1848
|
+
sufficient: boolean;
|
|
1849
|
+
/** False when at least one item has an unpriced paid step. */
|
|
1850
|
+
pricingComplete?: boolean;
|
|
1851
|
+
/** How many items have an unpriced paid step. */
|
|
1852
|
+
unpricedItems?: number;
|
|
1853
|
+
}
|
|
1854
|
+
/** Body of `studio.createBatch`. */
|
|
1855
|
+
export interface CreateCatalogPhotoStudioBatchInput extends CatalogPhotoStudioBatchQuoteInput {
|
|
1856
|
+
/** 8-128 chars of letters, digits and `. _ : -`. Same key, same request → the same batch. */
|
|
1857
|
+
idempotencyKey: string;
|
|
1858
|
+
/** The `totalCredits` the owner saw (`PRICE_CHANGED` when the price moved). */
|
|
1859
|
+
confirmedCredits: number;
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* `studio.createBatch` result (HTTP 201 created / 200 replay). Errors carry stable codes: `PRICE_CHANGED`,
|
|
1863
|
+
* `INSUFFICIENT_CREDITS`, `ACTIVE_JOB_EXISTS`, `TENANT_JOB_CAP`, `PHOTO_REQUIRED`, `SOURCE_NOT_IN_PRODUCT`,
|
|
1864
|
+
* `NOTE_NOT_ALLOWED`, `HIGGSFIELD_RECONNECT`.
|
|
1865
|
+
*/
|
|
1866
|
+
export interface CatalogPhotoStudioBatchCreated {
|
|
1867
|
+
batchId: string;
|
|
1868
|
+
jobs: CatalogPhotoStudioJob[];
|
|
1869
|
+
/** `true` on a replay of the same `idempotencyKey` (HTTP 200). Optional: absent until the platform sends it (read as `false`). */
|
|
1870
|
+
replayed?: boolean;
|
|
1871
|
+
}
|
|
1784
1872
|
export interface SignCatalogPhotoUploadInput {
|
|
1785
1873
|
/** image/jpeg, image/png, image/webp… (server whitelist). */
|
|
1786
1874
|
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.95.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",
|