@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/README.md +4 -2
- package/dist/cli.js +43 -9
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +4 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +7 -5
- package/dist/react.d.ts +7 -5
- package/dist/react.js +4 -2
- package/dist/react.js.map +1 -1
- package/package.json +2 -1
package/dist/react.d.cts
CHANGED
|
@@ -975,7 +975,7 @@ interface components {
|
|
|
975
975
|
managedByCode?: boolean;
|
|
976
976
|
};
|
|
977
977
|
UpsertObjectTypeBySlugDto: {
|
|
978
|
-
/** @description Stable
|
|
978
|
+
/** @description Stable deployment-wide slug (lowercase, digits, hyphens). Used as the upsert key. Granted to the caller workspace when new. */
|
|
979
979
|
slug: string;
|
|
980
980
|
/** @description Singular display name. */
|
|
981
981
|
name?: string;
|
|
@@ -1038,7 +1038,7 @@ interface components {
|
|
|
1038
1038
|
name: string;
|
|
1039
1039
|
/** @description Plural display name of the entity type. */
|
|
1040
1040
|
namePlural: string;
|
|
1041
|
-
/** @description URL-safe slug, unique
|
|
1041
|
+
/** @description URL-safe slug, unique across the deployment. */
|
|
1042
1042
|
slug: string;
|
|
1043
1043
|
/** @description Icon identifier for the entity type. */
|
|
1044
1044
|
icon: string;
|
|
@@ -2751,7 +2751,7 @@ interface AgentDefinition {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
interface EntityTypeDefinition {
|
|
2753
2753
|
kind: typeof DEFINE_KINDS.entityType;
|
|
2754
|
-
/** Stable
|
|
2754
|
+
/** Stable deployment-wide slug (upsert key). Granted to the deployer's workspace when new. */
|
|
2755
2755
|
slug: string;
|
|
2756
2756
|
name?: string;
|
|
2757
2757
|
namePlural?: string;
|
|
@@ -3076,7 +3076,7 @@ declare class EntityTypesResource {
|
|
|
3076
3076
|
private readonly http;
|
|
3077
3077
|
constructor(http: HttpClient);
|
|
3078
3078
|
/**
|
|
3079
|
-
* Lists entity types
|
|
3079
|
+
* Lists entity types granted to the API key's workspace. Request
|
|
3080
3080
|
* `expansion: ['attributeSchema', 'stateSchema']` for the field and state
|
|
3081
3081
|
* machine definitions the codegen CLI builds types from.
|
|
3082
3082
|
*/
|
|
@@ -3088,7 +3088,9 @@ declare class EntityTypesResource {
|
|
|
3088
3088
|
/** Returns a single entity type by its URL-safe slug. */
|
|
3089
3089
|
getBySlug(slug: string, options?: EntityTypeReadOptions): Promise<EntityType>;
|
|
3090
3090
|
/**
|
|
3091
|
-
* Creates or updates an entity type by
|
|
3091
|
+
* Creates or updates an entity type by deployment-wide slug.
|
|
3092
|
+
* A new slug is granted to the API key's workspace. A slug already shared
|
|
3093
|
+
* with another workspace is rejected unless the key belongs to a platform admin.
|
|
3092
3094
|
* Prefer the CLI (`npx @lunnoa/client entity-types deploy`) for happy-path deploy.
|
|
3093
3095
|
*/
|
|
3094
3096
|
upsertBySlug(definition: EntityTypeDefinition | UpsertEntityTypeBySlugInput): Promise<EntityType>;
|
package/dist/react.d.ts
CHANGED
|
@@ -975,7 +975,7 @@ interface components {
|
|
|
975
975
|
managedByCode?: boolean;
|
|
976
976
|
};
|
|
977
977
|
UpsertObjectTypeBySlugDto: {
|
|
978
|
-
/** @description Stable
|
|
978
|
+
/** @description Stable deployment-wide slug (lowercase, digits, hyphens). Used as the upsert key. Granted to the caller workspace when new. */
|
|
979
979
|
slug: string;
|
|
980
980
|
/** @description Singular display name. */
|
|
981
981
|
name?: string;
|
|
@@ -1038,7 +1038,7 @@ interface components {
|
|
|
1038
1038
|
name: string;
|
|
1039
1039
|
/** @description Plural display name of the entity type. */
|
|
1040
1040
|
namePlural: string;
|
|
1041
|
-
/** @description URL-safe slug, unique
|
|
1041
|
+
/** @description URL-safe slug, unique across the deployment. */
|
|
1042
1042
|
slug: string;
|
|
1043
1043
|
/** @description Icon identifier for the entity type. */
|
|
1044
1044
|
icon: string;
|
|
@@ -2751,7 +2751,7 @@ interface AgentDefinition {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
interface EntityTypeDefinition {
|
|
2753
2753
|
kind: typeof DEFINE_KINDS.entityType;
|
|
2754
|
-
/** Stable
|
|
2754
|
+
/** Stable deployment-wide slug (upsert key). Granted to the deployer's workspace when new. */
|
|
2755
2755
|
slug: string;
|
|
2756
2756
|
name?: string;
|
|
2757
2757
|
namePlural?: string;
|
|
@@ -3076,7 +3076,7 @@ declare class EntityTypesResource {
|
|
|
3076
3076
|
private readonly http;
|
|
3077
3077
|
constructor(http: HttpClient);
|
|
3078
3078
|
/**
|
|
3079
|
-
* Lists entity types
|
|
3079
|
+
* Lists entity types granted to the API key's workspace. Request
|
|
3080
3080
|
* `expansion: ['attributeSchema', 'stateSchema']` for the field and state
|
|
3081
3081
|
* machine definitions the codegen CLI builds types from.
|
|
3082
3082
|
*/
|
|
@@ -3088,7 +3088,9 @@ declare class EntityTypesResource {
|
|
|
3088
3088
|
/** Returns a single entity type by its URL-safe slug. */
|
|
3089
3089
|
getBySlug(slug: string, options?: EntityTypeReadOptions): Promise<EntityType>;
|
|
3090
3090
|
/**
|
|
3091
|
-
* Creates or updates an entity type by
|
|
3091
|
+
* Creates or updates an entity type by deployment-wide slug.
|
|
3092
|
+
* A new slug is granted to the API key's workspace. A slug already shared
|
|
3093
|
+
* with another workspace is rejected unless the key belongs to a platform admin.
|
|
3092
3094
|
* Prefer the CLI (`npx @lunnoa/client entity-types deploy`) for happy-path deploy.
|
|
3093
3095
|
*/
|
|
3094
3096
|
upsertBySlug(definition: EntityTypeDefinition | UpsertEntityTypeBySlugInput): Promise<EntityType>;
|
package/dist/react.js
CHANGED
|
@@ -1063,7 +1063,7 @@ var EntityTypesResource = class {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
http;
|
|
1065
1065
|
/**
|
|
1066
|
-
* Lists entity types
|
|
1066
|
+
* Lists entity types granted to the API key's workspace. Request
|
|
1067
1067
|
* `expansion: ['attributeSchema', 'stateSchema']` for the field and state
|
|
1068
1068
|
* machine definitions the codegen CLI builds types from.
|
|
1069
1069
|
*/
|
|
@@ -1088,7 +1088,9 @@ var EntityTypesResource = class {
|
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
1090
|
/**
|
|
1091
|
-
* Creates or updates an entity type by
|
|
1091
|
+
* Creates or updates an entity type by deployment-wide slug.
|
|
1092
|
+
* A new slug is granted to the API key's workspace. A slug already shared
|
|
1093
|
+
* with another workspace is rejected unless the key belongs to a platform admin.
|
|
1092
1094
|
* Prefer the CLI (`npx @lunnoa/client entity-types deploy`) for happy-path deploy.
|
|
1093
1095
|
*/
|
|
1094
1096
|
upsertBySlug(definition) {
|