@tarileo/avileo-catalog-cli 0.3.6 → 0.3.8

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.js CHANGED
@@ -14995,6 +14995,12 @@ var AgentBusinessDtoSchema = external_exports.object({
14995
14995
  tenantState: external_exports.literal("active"),
14996
14996
  approvalStatus: external_exports.enum(["approved", "not_required"]),
14997
14997
  subscriptionStatus: external_exports.string().trim().min(1),
14998
+ /**
14999
+ * Derived, additive hint for agents: `ctx.subscription() !== null`, i.e. the
15000
+ * business has a usable subscription right now. Optional so an older server
15001
+ * response stays valid; agents must treat `undefined` as "unknown".
15002
+ */
15003
+ catalogWritable: external_exports.boolean().optional(),
14998
15004
  catalogEnabled: external_exports.literal(true),
14999
15005
  storefronts: external_exports.array(AgentStorefrontDtoSchema).max(20),
15000
15006
  grantedActions: AgentGrantedActionsSchema
@@ -15252,6 +15258,16 @@ var AgentCatalogImportPreviewDtoSchema = external_exports.object({
15252
15258
  summary: AgentCatalogImportSummaryDtoSchema,
15253
15259
  createdAt: timestampSchema
15254
15260
  }).strict();
15261
+ var AgentCatalogImportErrorDtoSchema = external_exports.object({
15262
+ code: nonEmptyTextSchema.max(100),
15263
+ message: nonEmptyTextSchema.max(500)
15264
+ }).strict();
15265
+ var AgentCatalogImportItemResultDtoSchema = external_exports.object({
15266
+ ordinal: external_exports.number().int().nonnegative(),
15267
+ action: AgentCatalogImportActionSchema,
15268
+ status: AgentCatalogImportItemStatusSchema,
15269
+ error: AgentCatalogImportErrorDtoSchema.nullable()
15270
+ }).strict();
15255
15271
  var AgentCatalogImportResultDtoSchema = external_exports.object({
15256
15272
  importId: uuidSchema,
15257
15273
  status: AgentCatalogImportRunStatusSchema,
@@ -15259,7 +15275,14 @@ var AgentCatalogImportResultDtoSchema = external_exports.object({
15259
15275
  retryable: external_exports.boolean(),
15260
15276
  createdAt: timestampSchema,
15261
15277
  updatedAt: timestampSchema,
15262
- completedAt: timestampSchema.nullable()
15278
+ completedAt: timestampSchema.nullable(),
15279
+ /**
15280
+ * Additive diagnostics: why the run failed, and the per-item outcome with
15281
+ * its own error. Optional so responses from an older server stay valid.
15282
+ * Historically omitted, which forced agents to guess the failure cause.
15283
+ */
15284
+ error: AgentCatalogImportErrorDtoSchema.nullable().optional(),
15285
+ items: external_exports.array(AgentCatalogImportItemResultDtoSchema).max(100).optional()
15263
15286
  }).strict();
15264
15287
  var AGENT_OPERATION_NAMES = [
15265
15288
  "catalog.products.create",