@hermoso/sdk 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -82,6 +82,6 @@ for await (const post of paginate(listPosts, { client: hermoso, query: { status:
82
82
 
83
83
  Docs: [hermoso.ai/docs/sdks](https://hermoso.ai/docs/sdks/) · API reference:
84
84
  [hermoso.ai/docs/api](https://hermoso.ai/docs/api/) · OpenAPI:
85
- [app.hermoso.ai/openapi.json](https://app.hermoso.ai/openapi.json) · Python: [`hermoso` on PyPI](https://pypi.org/project/hermoso/)
85
+ [app.hermoso.ai/openapi.json](https://app.hermoso.ai/openapi.json) · Python: [`hermoso`](https://github.com/hermoso-ai/hermoso-sdks/tree/main/python)
86
86
 
87
87
  MIT licensed. Generated with [@hey-api/openapi-ts](https://heyapi.dev).
@@ -58,7 +58,7 @@ export declare const createMedia: <ThrowOnError extends boolean = false>(options
58
58
  /**
59
59
  * Retrieve the credit balance
60
60
  *
61
- * This workspace’s Hermoso credit balance and plan. Publishing and scheduling cost no credits; generation does. The Free plan publishes up to 5 posts a month on 3 channels (a post counts once, however many channels it goes to); every paid plan posts without a limit.
61
+ * This workspace’s Hermoso credit balance and plan. Publishing and scheduling cost no credits; generation does. The Free plan publishes up to 10 posts on 3 channels (a post counts once, however many channels it goes to); every paid plan posts without a limit.
62
62
  */
63
63
  export declare const getCredits: <ThrowOnError extends boolean = false>(options?: Options<GetCreditsData, ThrowOnError>) => RequestResult<GetCreditsResponses, GetCreditsErrors, ThrowOnError>;
64
64
  /**
@@ -148,7 +148,7 @@ export declare const createGeneration: <ThrowOnError extends boolean = false>(op
148
148
  *
149
149
  * ASYNC. A real call answers `202` with the job inside and a `Location` to poll (`GET /v1/jobs/{id}`), usually a few minutes. Or name a `callback_url` and the finished job is POSTed to you.
150
150
  *
151
- * PEOPLE AND LIKENESS. A photo of a real person needs a paid plan, and sending one is your confirmation that you have that person's permission (it is recorded). An AI person from `describe`, or a preset creator, works on every plan. A request that would be refused is refused before anything is charged, with a stable `error.code` and a plain sentence: `real_face_needs_paid`, `face_review_blocked`, `ref_unreadable`, `insufficient_credits`.
151
+ * PEOPLE AND LIKENESS. A photo of a real person needs a paid plan or a credit pack, and sending one is your confirmation that you have that person's permission (it is recorded). An AI person from `describe`, or a preset creator, works on every plan. A request that would be refused is refused before anything is charged, with a stable `error.code` and a plain sentence: `real_face_needs_paid`, `face_review_blocked`, `ref_unreadable`, `insufficient_credits`.
152
152
  */
153
153
  export declare const createRecast: <ThrowOnError extends boolean = false>(options: Options<CreateRecastData, ThrowOnError>) => RequestResult<CreateRecastResponses, CreateRecastErrors, ThrowOnError>;
154
154
  /**
@@ -86,7 +86,7 @@ export const createMedia = (options) => (options?.client ?? client).post({
86
86
  /**
87
87
  * Retrieve the credit balance
88
88
  *
89
- * This workspace’s Hermoso credit balance and plan. Publishing and scheduling cost no credits; generation does. The Free plan publishes up to 5 posts a month on 3 channels (a post counts once, however many channels it goes to); every paid plan posts without a limit.
89
+ * This workspace’s Hermoso credit balance and plan. Publishing and scheduling cost no credits; generation does. The Free plan publishes up to 10 posts on 3 channels (a post counts once, however many channels it goes to); every paid plan posts without a limit.
90
90
  */
91
91
  export const getCredits = (options) => (options?.client ?? client).get({
92
92
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -240,7 +240,7 @@ export const createGeneration = (options) => (options.client ?? client).post({
240
240
  *
241
241
  * ASYNC. A real call answers `202` with the job inside and a `Location` to poll (`GET /v1/jobs/{id}`), usually a few minutes. Or name a `callback_url` and the finished job is POSTed to you.
242
242
  *
243
- * PEOPLE AND LIKENESS. A photo of a real person needs a paid plan, and sending one is your confirmation that you have that person's permission (it is recorded). An AI person from `describe`, or a preset creator, works on every plan. A request that would be refused is refused before anything is charged, with a stable `error.code` and a plain sentence: `real_face_needs_paid`, `face_review_blocked`, `ref_unreadable`, `insufficient_credits`.
243
+ * PEOPLE AND LIKENESS. A photo of a real person needs a paid plan or a credit pack, and sending one is your confirmation that you have that person's permission (it is recorded). An AI person from `describe`, or a preset creator, works on every plan. A request that would be refused is refused before anything is charged, with a stable `error.code` and a plain sentence: `real_face_needs_paid`, `face_review_blocked`, `ref_unreadable`, `insufficient_credits`.
244
244
  */
245
245
  export const createRecast = (options) => (options.client ?? client).post({
246
246
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -1,4 +1,4 @@
1
1
  /** sha256 of the OpenAPI document this client was generated from (sdks/openapi.json). */
2
- export declare const SPEC_SHA256 = "c4ce0f73819a045c1ca9e02f04863f15f6edcd1e8cab084a924a20991fe4118f";
2
+ export declare const SPEC_SHA256 = "c428cfb6c4525ad5bc35af1537fcaf9950ed5cfc69923910f00a4a9f7fef8713";
3
3
  /** The dated /v1 contract version that document describes. */
4
4
  export declare const CONTRACT_VERSION = "2026-08-26";
@@ -1,5 +1,5 @@
1
1
  // Generated by tools/sdk-generate.mjs. Do not edit.
2
2
  /** sha256 of the OpenAPI document this client was generated from (sdks/openapi.json). */
3
- export const SPEC_SHA256 = 'c4ce0f73819a045c1ca9e02f04863f15f6edcd1e8cab084a924a20991fe4118f';
3
+ export const SPEC_SHA256 = 'c428cfb6c4525ad5bc35af1537fcaf9950ed5cfc69923910f00a4a9f7fef8713';
4
4
  /** The dated /v1 contract version that document describes. */
5
5
  export const CONTRACT_VERSION = '2026-08-26';
@@ -1004,11 +1004,11 @@ export type RecastCreate = {
1004
1004
  */
1005
1005
  export type RecastPerson = {
1006
1006
  /**
1007
- * A saved creator's id or exact name, or a preset AI creator's id (the `list_creators` tool lists both). A saved photo of a real person needs a paid plan.
1007
+ * A saved creator's id or exact name, or a preset AI creator's id (the `list_creators` tool lists both). A saved photo of a real person needs a paid plan or a credit pack.
1008
1008
  */
1009
1009
  creator_id?: string;
1010
1010
  /**
1011
- * A clear photo of the person (https or a Hermoso file URL). A photo of a real person needs a paid plan, and sending it confirms you have their permission; the confirmation is recorded. A portrait Hermoso made from words for this account counts as an AI person on every plan.
1011
+ * A clear photo of the person (https or a Hermoso file URL). A photo of a real person needs a paid plan or a credit pack, and sending it confirms you have their permission; the confirmation is recorded. A portrait Hermoso made from words for this account counts as an AI person on every plan.
1012
1012
  */
1013
1013
  image_url?: string;
1014
1014
  /**
@@ -2605,7 +2605,7 @@ export type CreateRecastErrors = {
2605
2605
  */
2606
2606
  401: Error;
2607
2607
  /**
2608
- * `insufficient_credits`: the balance does not cover `credits_needed` (nothing was started). `real_face_needs_paid`: a photo of a real person needs a paid plan (`upgrade_url`), or use `person.describe`.
2608
+ * `insufficient_credits`: the balance does not cover `credits_needed` (nothing was started). `real_face_needs_paid`: a photo of a real person needs a paid plan or a credit pack (`upgrade_url`), or use `person.describe`.
2609
2609
  */
2610
2610
  402: Error;
2611
2611
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hermoso/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Typed TypeScript client for the Hermoso API: generate ads, publish and schedule posts, read analytics, and call every Hermoso tool from your own backend.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",