@lunnoa/client 1.3.0 → 1.4.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.
package/dist/index.d.cts CHANGED
@@ -815,8 +815,8 @@ interface paths {
815
815
  get?: never;
816
816
  put?: never;
817
817
  /**
818
- * Upsert entity type by workspace-scoped slug
819
- * @description Creates or updates an entity type identified by workspace-scoped `slug`. Marks `managedByCode` by default. Prefer the CLI (`npx @lunnoa/client entity-types deploy`) over calling this from application code. Unknown instance attributes are rejected unless `allowUnknownAttributes` is true; reserved key `extensions` is always allowed.
818
+ * Upsert entity type by deployment-wide slug
819
+ * @description Creates or updates an entity type identified by deployment-wide `slug`. A new slug is granted to the caller workspace. A type already granted to other workspaces is not rewritten unless the caller is a platform admin. Marks `managedByCode` by default. Prefer the CLI (`npx @lunnoa/client entity-types deploy`). Unknown instance attributes are rejected unless `allowUnknownAttributes` is true; reserved key `extensions` is always allowed.
820
820
  */
821
821
  post: operations["ObjectTypesController_upsertBySlug"];
822
822
  delete?: never;
@@ -2408,7 +2408,7 @@ interface components {
2408
2408
  managedByCode?: boolean;
2409
2409
  };
2410
2410
  UpsertObjectTypeBySlugDto: {
2411
- /** @description Stable workspace-scoped slug (lowercase, digits, hyphens). Used as the upsert key. */
2411
+ /** @description Stable deployment-wide slug (lowercase, digits, hyphens). Used as the upsert key. Granted to the caller workspace when new. */
2412
2412
  slug: string;
2413
2413
  /** @description Singular display name. */
2414
2414
  name?: string;
@@ -2471,7 +2471,7 @@ interface components {
2471
2471
  name: string;
2472
2472
  /** @description Plural display name of the entity type. */
2473
2473
  namePlural: string;
2474
- /** @description URL-safe slug, unique within the workspace. */
2474
+ /** @description URL-safe slug, unique across the deployment. */
2475
2475
  slug: string;
2476
2476
  /** @description Icon identifier for the entity type. */
2477
2477
  icon: string;
@@ -6624,7 +6624,7 @@ declare function defineWorkflow(config: Omit<WorkflowDefinition, 'kind'>): Workf
6624
6624
  declare function defineAgent(config: Omit<AgentDefinition, 'kind'>): AgentDefinition;
6625
6625
  interface EntityTypeDefinition {
6626
6626
  kind: typeof DEFINE_KINDS.entityType;
6627
- /** Stable workspace-scoped slug (upsert key). */
6627
+ /** Stable deployment-wide slug (upsert key). Granted to the deployer's workspace when new. */
6628
6628
  slug: string;
6629
6629
  name?: string;
6630
6630
  namePlural?: string;
@@ -6955,7 +6955,7 @@ declare class EntityTypesResource {
6955
6955
  private readonly http;
6956
6956
  constructor(http: HttpClient);
6957
6957
  /**
6958
- * Lists entity types in the workspace. Request
6958
+ * Lists entity types granted to the API key's workspace. Request
6959
6959
  * `expansion: ['attributeSchema', 'stateSchema']` for the field and state
6960
6960
  * machine definitions the codegen CLI builds types from.
6961
6961
  */
@@ -6967,7 +6967,9 @@ declare class EntityTypesResource {
6967
6967
  /** Returns a single entity type by its URL-safe slug. */
6968
6968
  getBySlug(slug: string, options?: EntityTypeReadOptions): Promise<EntityType>;
6969
6969
  /**
6970
- * Creates or updates an entity type by workspace-scoped slug.
6970
+ * Creates or updates an entity type by deployment-wide slug.
6971
+ * A new slug is granted to the API key's workspace. A slug already shared
6972
+ * with another workspace is rejected unless the key belongs to a platform admin.
6971
6973
  * Prefer the CLI (`npx @lunnoa/client entity-types deploy`) for happy-path deploy.
6972
6974
  */
6973
6975
  upsertBySlug(definition: EntityTypeDefinition | UpsertEntityTypeBySlugInput): Promise<EntityType>;
package/dist/index.d.ts CHANGED
@@ -815,8 +815,8 @@ interface paths {
815
815
  get?: never;
816
816
  put?: never;
817
817
  /**
818
- * Upsert entity type by workspace-scoped slug
819
- * @description Creates or updates an entity type identified by workspace-scoped `slug`. Marks `managedByCode` by default. Prefer the CLI (`npx @lunnoa/client entity-types deploy`) over calling this from application code. Unknown instance attributes are rejected unless `allowUnknownAttributes` is true; reserved key `extensions` is always allowed.
818
+ * Upsert entity type by deployment-wide slug
819
+ * @description Creates or updates an entity type identified by deployment-wide `slug`. A new slug is granted to the caller workspace. A type already granted to other workspaces is not rewritten unless the caller is a platform admin. Marks `managedByCode` by default. Prefer the CLI (`npx @lunnoa/client entity-types deploy`). Unknown instance attributes are rejected unless `allowUnknownAttributes` is true; reserved key `extensions` is always allowed.
820
820
  */
821
821
  post: operations["ObjectTypesController_upsertBySlug"];
822
822
  delete?: never;
@@ -2408,7 +2408,7 @@ interface components {
2408
2408
  managedByCode?: boolean;
2409
2409
  };
2410
2410
  UpsertObjectTypeBySlugDto: {
2411
- /** @description Stable workspace-scoped slug (lowercase, digits, hyphens). Used as the upsert key. */
2411
+ /** @description Stable deployment-wide slug (lowercase, digits, hyphens). Used as the upsert key. Granted to the caller workspace when new. */
2412
2412
  slug: string;
2413
2413
  /** @description Singular display name. */
2414
2414
  name?: string;
@@ -2471,7 +2471,7 @@ interface components {
2471
2471
  name: string;
2472
2472
  /** @description Plural display name of the entity type. */
2473
2473
  namePlural: string;
2474
- /** @description URL-safe slug, unique within the workspace. */
2474
+ /** @description URL-safe slug, unique across the deployment. */
2475
2475
  slug: string;
2476
2476
  /** @description Icon identifier for the entity type. */
2477
2477
  icon: string;
@@ -6624,7 +6624,7 @@ declare function defineWorkflow(config: Omit<WorkflowDefinition, 'kind'>): Workf
6624
6624
  declare function defineAgent(config: Omit<AgentDefinition, 'kind'>): AgentDefinition;
6625
6625
  interface EntityTypeDefinition {
6626
6626
  kind: typeof DEFINE_KINDS.entityType;
6627
- /** Stable workspace-scoped slug (upsert key). */
6627
+ /** Stable deployment-wide slug (upsert key). Granted to the deployer's workspace when new. */
6628
6628
  slug: string;
6629
6629
  name?: string;
6630
6630
  namePlural?: string;
@@ -6955,7 +6955,7 @@ declare class EntityTypesResource {
6955
6955
  private readonly http;
6956
6956
  constructor(http: HttpClient);
6957
6957
  /**
6958
- * Lists entity types in the workspace. Request
6958
+ * Lists entity types granted to the API key's workspace. Request
6959
6959
  * `expansion: ['attributeSchema', 'stateSchema']` for the field and state
6960
6960
  * machine definitions the codegen CLI builds types from.
6961
6961
  */
@@ -6967,7 +6967,9 @@ declare class EntityTypesResource {
6967
6967
  /** Returns a single entity type by its URL-safe slug. */
6968
6968
  getBySlug(slug: string, options?: EntityTypeReadOptions): Promise<EntityType>;
6969
6969
  /**
6970
- * Creates or updates an entity type by workspace-scoped slug.
6970
+ * Creates or updates an entity type by deployment-wide slug.
6971
+ * A new slug is granted to the API key's workspace. A slug already shared
6972
+ * with another workspace is rejected unless the key belongs to a platform admin.
6971
6973
  * Prefer the CLI (`npx @lunnoa/client entity-types deploy`) for happy-path deploy.
6972
6974
  */
6973
6975
  upsertBySlug(definition: EntityTypeDefinition | UpsertEntityTypeBySlugInput): Promise<EntityType>;
package/dist/index.js CHANGED
@@ -1082,7 +1082,7 @@ var EntityTypesResource = class {
1082
1082
  }
1083
1083
  http;
1084
1084
  /**
1085
- * Lists entity types in the workspace. Request
1085
+ * Lists entity types granted to the API key's workspace. Request
1086
1086
  * `expansion: ['attributeSchema', 'stateSchema']` for the field and state
1087
1087
  * machine definitions the codegen CLI builds types from.
1088
1088
  */
@@ -1107,7 +1107,9 @@ var EntityTypesResource = class {
1107
1107
  });
1108
1108
  }
1109
1109
  /**
1110
- * Creates or updates an entity type by workspace-scoped slug.
1110
+ * Creates or updates an entity type by deployment-wide slug.
1111
+ * A new slug is granted to the API key's workspace. A slug already shared
1112
+ * with another workspace is rejected unless the key belongs to a platform admin.
1111
1113
  * Prefer the CLI (`npx @lunnoa/client entity-types deploy`) for happy-path deploy.
1112
1114
  */
1113
1115
  upsertBySlug(definition) {