@ingram-cloud/sdk 1.6.0 → 1.7.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.
@@ -12,11 +12,17 @@
12
12
  * operator can roll back. History is append-only — a *restore* re-applies an old
13
13
  * snapshot as a brand-new revision.
14
14
  *
15
+ * `snapshot` must carry every key the API snapshots, or Zod strips the missing
16
+ * one from the response: it is stored and re-applied on restore, but invisible
17
+ * to the operator deciding whether to roll back. `skills` was absent here and
18
+ * did exactly that.
19
+ *
15
20
  * `.meta({ id })` names the component so the emitted OpenAPI references it as
16
21
  * `#/components/schemas/<id>` rather than inlining it.
17
22
  */
18
23
  import { z } from "zod";
19
24
  import { pageOut } from "./_page.js";
25
+ import { SkillRef } from "./skills.js";
20
26
  /** An immutable snapshot of a smith's effective behaviour config at one revision. */
21
27
  export const SmithRevisionOut = z
22
28
  .object({
@@ -27,6 +33,8 @@ export const SmithRevisionOut = z
27
33
  enabled_hosted_tools: z.array(z.string()).optional(),
28
34
  vector_store_ids: z.array(z.string()).optional(),
29
35
  mcp_servers: z.array(z.string()).nullish(),
36
+ /** Skills the smith carried at this revision. */
37
+ skills: z.array(SkillRef).nullish(),
30
38
  // Nullish: a snapshot taken while the smith inherited a sparse agent
31
39
  // version carries null (= the default) for these.
32
40
  auto_memory: z.boolean().nullish(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingram-cloud/sdk",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Typed wire contract + management-plane client for the Ingram Cloud API: Zod schemas to validate request/response bodies, TypeScript types for the JSON you read back, SSE/webhook event types, and a typed REST client.",
5
5
  "keywords": [
6
6
  "api",
@@ -12,11 +12,17 @@
12
12
  * operator can roll back. History is append-only — a *restore* re-applies an old
13
13
  * snapshot as a brand-new revision.
14
14
  *
15
+ * `snapshot` must carry every key the API snapshots, or Zod strips the missing
16
+ * one from the response: it is stored and re-applied on restore, but invisible
17
+ * to the operator deciding whether to roll back. `skills` was absent here and
18
+ * did exactly that.
19
+ *
15
20
  * `.meta({ id })` names the component so the emitted OpenAPI references it as
16
21
  * `#/components/schemas/<id>` rather than inlining it.
17
22
  */
18
23
  import { z } from "zod";
19
24
  import { pageOut } from "./_page.js";
25
+ import { SkillRef } from "./skills.js";
20
26
 
21
27
  /** An immutable snapshot of a smith's effective behaviour config at one revision. */
22
28
  export const SmithRevisionOut = z
@@ -28,6 +34,8 @@ export const SmithRevisionOut = z
28
34
  enabled_hosted_tools: z.array(z.string()).optional(),
29
35
  vector_store_ids: z.array(z.string()).optional(),
30
36
  mcp_servers: z.array(z.string()).nullish(),
37
+ /** Skills the smith carried at this revision. */
38
+ skills: z.array(SkillRef).nullish(),
31
39
  // Nullish: a snapshot taken while the smith inherited a sparse agent
32
40
  // version carries null (= the default) for these.
33
41
  auto_memory: z.boolean().nullish(),