@kubb/studio 5.6.1 → 5.6.3

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./rolldown-runtime-CRm0XQPb.js";
2
- import { F as SnapshotUploadMetadata, a as AgentConnectInfo, k as PublishedSnapshot, o as AgentPermissions } from "./protocol-P0znFp9w.js";
2
+ import { F as SnapshotUploadMetadata, a as AgentConnectInfo, k as PublishedSnapshot, o as AgentPermissions } from "./protocol-i7JV0P4z.js";
3
3
  import { Config, Hookable, KubbHooks } from "@kubb/core";
4
4
  //#region src/connect.d.ts
5
5
  /**
@@ -220,28 +220,18 @@ type CreateSnapshotOptions = Omit<SnapshotUploadMetadata, 'hashes' | 'peerDepend
220
220
  */
221
221
  apiKey: string;
222
222
  /**
223
- * The project's Kubb config. Like `kubb generate`, it writes to `output.path`, then runs the
224
- * formatter, the linter, and `output.postGenerate`.
223
+ * The project's Kubb config, generated like `kubb generate`: formatter, linter, and `output.postGenerate` included.
225
224
  */
226
225
  config: Config;
227
226
  hooks?: Hookable<KubbHooks>;
228
227
  signal?: AbortSignal;
229
228
  };
230
229
  /**
231
- * Generates the project, packs it as an npm tarball, and publishes it to Studio in one
232
- * `POST /api/snapshots` request.
230
+ * Generates the project, packs it as an npm tarball, and publishes it to Studio in one `POST /api/snapshots` request.
233
231
  *
234
232
  * @example
235
233
  * ```ts
236
- * const snapshot = await createSnapshot({
237
- * apiKey: process.env.KUBB_TOKEN!,
238
- * config,
239
- * id: 'gh:123:pr-4',
240
- * name: 'acme/api#4',
241
- * packageName: '@acme/api',
242
- * version: '1.0.0',
243
- * })
244
- * console.log(snapshot.url, snapshot.changes)
234
+ * const { url } = await createSnapshot({ apiKey: process.env.KUBB_TOKEN!, config, id: 'gh:123:pr-4', name: 'acme/api#4', packageName: '@acme/api', version: '1.0.0' })
245
235
  * ```
246
236
  */
247
237
  export declare function createSnapshot({ studioUrl, apiKey, config, hooks, signal, ...metadata }: CreateSnapshotOptions): Promise<PublishedSnapshot>;