@clickraft/cli 0.1.2 → 0.1.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/CHANGELOG.md +3 -2
- package/dist/cli.js +5 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
## [0.1.
|
|
1
|
+
## [0.1.3](https://github.com/clickraft/cli/compare/v0.1.2...v0.1.3) (2026-05-23)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
* **
|
|
5
|
+
* **cli:** remove double-prefix in generate/jobs/upload commands ([43c1058](https://github.com/clickraft/cli/commit/43c1058c71f3992a81b60bfa53c9171f9530f423))
|
|
6
|
+
* **schemas:** accept postgres-style timestamps in jobs schema ([d8a05ea](https://github.com/clickraft/cli/commit/d8a05ea8560646fd6813a11db1a5fd5c4ea4b4c4)), closes [#7](https://github.com/clickraft/cli/issues/7)
|
|
6
7
|
|
|
7
8
|
# Changelog
|
|
8
9
|
|
package/dist/cli.js
CHANGED
|
@@ -864,8 +864,8 @@ var GenerationResultSchema = z3.object({
|
|
|
864
864
|
errorMessage: z3.string().nullable(),
|
|
865
865
|
creditsCharged: z3.number().int().nonnegative(),
|
|
866
866
|
creditsRefunded: z3.boolean(),
|
|
867
|
-
startedAt: z3.string().
|
|
868
|
-
completedAt: z3.string().
|
|
867
|
+
startedAt: z3.string().nullable(),
|
|
868
|
+
completedAt: z3.string().nullable()
|
|
869
869
|
}).strict();
|
|
870
870
|
|
|
871
871
|
// src/commands/upload.ts
|
|
@@ -1276,7 +1276,7 @@ async function buildClient(opts) {
|
|
|
1276
1276
|
async function postAssetMetadata(args) {
|
|
1277
1277
|
return args.client.request({
|
|
1278
1278
|
method: "POST",
|
|
1279
|
-
path: "/
|
|
1279
|
+
path: "/assets",
|
|
1280
1280
|
body: {
|
|
1281
1281
|
filename: args.filename,
|
|
1282
1282
|
contentType: args.contentType,
|
|
@@ -1500,7 +1500,7 @@ async function generateGet(opts) {
|
|
|
1500
1500
|
const client = opts.client ?? await buildGenerateClient(opts);
|
|
1501
1501
|
return client.request({
|
|
1502
1502
|
method: "GET",
|
|
1503
|
-
path: `/
|
|
1503
|
+
path: `/jobs/${encodeURIComponent(opts.jobId)}`,
|
|
1504
1504
|
query: opts.waitSeconds && opts.waitSeconds > 0 ? { wait: opts.waitSeconds } : void 0,
|
|
1505
1505
|
responseSchema: GenerationResultSchema,
|
|
1506
1506
|
signal: opts.signal
|
|
@@ -1545,7 +1545,7 @@ async function generateCreate(opts) {
|
|
|
1545
1545
|
const body = buildRequestBody({ ...opts, referenceImages });
|
|
1546
1546
|
const created = await client.request({
|
|
1547
1547
|
method: "POST",
|
|
1548
|
-
path: "/
|
|
1548
|
+
path: "/jobs",
|
|
1549
1549
|
body,
|
|
1550
1550
|
responseSchema: GenerateCreateResponseSchema,
|
|
1551
1551
|
signal: opts.signal
|