@onesi/genesis 0.2.9 → 0.2.10
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 +1 -1
- package/dist/client.js +1 -1
- package/dist/generated/operations.d.ts +1 -1
- package/dist/generated/operations.js +126 -2
- package/dist/generated/schema.d.ts +1712 -105
- package/dist/genesis.d.ts +1 -0
- package/dist/genesis.openapi.json +1917 -17
- package/dist/hives-marketplace.d.ts +9 -0
- package/dist/hives-marketplace.js +8 -0
- package/dist/hives-resources-transport.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/minds-engine.d.ts +1 -1
- package/dist/minds-engine.js +1 -1
- package/package.json +1 -1
|
@@ -85,6 +85,13 @@ export interface HivesMarketplacePublish {
|
|
|
85
85
|
required_env?: string[];
|
|
86
86
|
license?: string;
|
|
87
87
|
}
|
|
88
|
+
/** Receipt of an unpublished (archived) package: existing installations keep running; no new install, update or version. */
|
|
89
|
+
export interface HivesMarketplaceUnpublished {
|
|
90
|
+
id: string;
|
|
91
|
+
slug: string;
|
|
92
|
+
status: 'archived';
|
|
93
|
+
archived_at: string;
|
|
94
|
+
}
|
|
88
95
|
export interface HivesMarketplaceInstall {
|
|
89
96
|
version?: string | null;
|
|
90
97
|
env_overrides?: Record<string, string>;
|
|
@@ -116,6 +123,8 @@ export declare function hivesMarketplace(client: GenesisClient): {
|
|
|
116
123
|
featured(project: string, options?: HivesResourceOptions): Promise<HivesMarketplacePage<HivesMarketplacePackage>>;
|
|
117
124
|
categories(project: string, options?: HivesResourceOptions): Promise<HivesMarketplaceCategory[]>;
|
|
118
125
|
publish(project: string, input: HivesMarketplacePublish, options?: HivesResourceOptions): Promise<HivesMarketplaceDetail>;
|
|
126
|
+
/** Unpublish (archive) an owned package of the selected environment. Sent once; 404 for a foreign, other-environment or already unpublished package. */
|
|
127
|
+
unpublish(project: string, packageSlug: string, options?: HivesResourceOptions): Promise<HivesMarketplaceUnpublished>;
|
|
119
128
|
install(project: string, packageSlug: string, input?: HivesMarketplaceInstall, options?: HivesResourceOptions): Promise<HivesMarketplaceInstallation>;
|
|
120
129
|
update(project: string, packageSlug: string, input?: HivesMarketplaceInstall, options?: HivesResourceOptions): Promise<HivesMarketplaceInstallation>;
|
|
121
130
|
installed(project: string, query?: {
|
|
@@ -169,6 +169,14 @@ export function hivesMarketplace(client) {
|
|
|
169
169
|
invalid();
|
|
170
170
|
return result;
|
|
171
171
|
},
|
|
172
|
+
/** Unpublish (archive) an owned package of the selected environment. Sent once; 404 for a foreign, other-environment or already unpublished package. */
|
|
173
|
+
async unpublish(project, packageSlug, options) {
|
|
174
|
+
const expected = slug(packageSlug);
|
|
175
|
+
const r = record(await call('unpublish', { ...projectInput(project), slug: expected }, options));
|
|
176
|
+
if (r.slug !== expected || r.status !== 'archived')
|
|
177
|
+
invalid();
|
|
178
|
+
return { id: uuid(r.id), slug: expected, status: 'archived', archived_at: date(r.archived_at) };
|
|
179
|
+
},
|
|
172
180
|
async install(project, packageSlug, input = {}, options) { return mutate('install', project, packageSlug, input, options); },
|
|
173
181
|
async update(project, packageSlug, input = {}, options) { return mutate('update', project, packageSlug, input, options); },
|
|
174
182
|
async installed(project, query = {}, options) {
|
|
@@ -58,7 +58,7 @@ export async function resourceErrorFromResponse(response, id) {
|
|
|
58
58
|
code: fields.code, requestId: fields.requestId,
|
|
59
59
|
body: fields.code || fields.requiredScope ? { error: { code: fields.code, request_id: fields.requestId, required_scope: fields.requiredScope } } : undefined });
|
|
60
60
|
}
|
|
61
|
-
export const isHivesResourceOperation = (id) => /^(?:hives_marketplace_(?:categories|featured|installed|get_installation|uninstall|reconcile|list_packages|publish|get_package|install|update|list_versions)|hives_(?:get|configure|remove)_native_queue_consumer|hives_.*_native_queue|hives_.*_native_topic|hives_(?:(?:list_volumes|create_volume|get_volume|delete_volume|mount_volume|unmount_volume)|list_buckets|create_bucket|get_bucket|delete_bucket|list_objects|upload_object(?:_by_key|_named_download)?|delete_object(?:_by_key|_named_download)?|download_object_by_key|get_cors_config|set_cors_config|generate_presigned_url|reconcile|list_runtimes|get_runtime|select_runtime|list_project_runtimes))$/.test(id);
|
|
61
|
+
export const isHivesResourceOperation = (id) => /^(?:hives_marketplace_(?:categories|featured|installed|get_installation|uninstall|reconcile|list_packages|publish|unpublish|get_package|install|update|list_versions)|hives_(?:get|configure|remove)_native_queue_consumer|hives_.*_native_queue|hives_.*_native_topic|hives_(?:(?:list_volumes|create_volume|get_volume|delete_volume|mount_volume|unmount_volume)|list_buckets|create_bucket|get_bucket|delete_bucket|list_objects|upload_object(?:_by_key|_named_download)?|delete_object(?:_by_key|_named_download)?|download_object_by_key|get_cors_config|set_cors_config|generate_presigned_url|reconcile|list_runtimes|get_runtime|select_runtime|list_project_runtimes))$/.test(id);
|
|
62
62
|
export const isHivesObjectUpload = (id) => id === 'hives_upload_object_by_key' || id === 'hives_upload_object' || id === 'hives_upload_object_named_download';
|
|
63
63
|
/** Shared-client hook proposal: snapshot only the two real raw Cells upload operations. */
|
|
64
64
|
export async function hivesObjectBody(value) {
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export { hivesQueueBody, type HivesQueue, type HivesQueueConfig, type HivesQueue
|
|
|
37
37
|
export type { HivesRuntime, HivesRuntimeSelection } from './hives-runtimes.js';
|
|
38
38
|
export type { HivesVolume, HivesVolumeCreate, HivesVolumeMount, HivesVolumePage } from './hives-volumes.js';
|
|
39
39
|
export { HIVES_OBJECT_BYTES, HIVES_QUEUE_BYTES, type HivesResourceOptions, type HivesFundedWriteOptions } from './hives-resources-transport.js';
|
|
40
|
-
export type { HivesMarketplacePackage, HivesMarketplaceVersion, HivesMarketplaceInstallation, HivesMarketplaceCategory, HivesMarketplacePage, HivesMarketplacePublish, HivesMarketplaceInstall, HivesMarketplaceSearch, HivesMarketplaceDetail } from './hives-marketplace.js';
|
|
40
|
+
export type { HivesMarketplacePackage, HivesMarketplaceVersion, HivesMarketplaceInstallation, HivesMarketplaceCategory, HivesMarketplacePage, HivesMarketplacePublish, HivesMarketplaceInstall, HivesMarketplaceSearch, HivesMarketplaceDetail, HivesMarketplaceUnpublished } from './hives-marketplace.js';
|
|
41
41
|
export type { HivesQueueConsumerConfig, HivesQueueConsumerBinding, HivesQueueConsumerAttempt, HivesQueueConsumerStatus } from './hives-queue-consumer.js';
|
|
42
42
|
export { foundryBillingOperations, isFoundryBillingOperation } from './foundry-billing.js';
|
|
43
43
|
export type { HivesTopic, HivesTopicSubscription, HivesTopicPublish, HivesTopicPublication } from './hives-topics.js';
|
package/dist/minds-engine.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ export declare function mindsEngineModule(client: GenesisClient): {
|
|
|
109
109
|
forgetting: {
|
|
110
110
|
/** GET /v1/forgetting/policies (minds:instances:read). */
|
|
111
111
|
getPolicies: (mindId: string, input?: Rest<"minds_engineForgettingGetForgettingPolicies">, options?: MindsEngineOptions) => Promise<unknown>;
|
|
112
|
-
/** POST /v1/forgetting/policies/:id/toggle (minds:instances:
|
|
112
|
+
/** POST /v1/forgetting/policies/:id/toggle (minds:instances:update). */
|
|
113
113
|
postPoliciesToggle: (mindId: string, input: Rest<"minds_engineForgettingPostForgettingPoliciesIdToggle">, options?: MindsEngineOptions) => Promise<unknown>;
|
|
114
114
|
/** GET /v1/forgetting/proof/:id (minds:instances:read). */
|
|
115
115
|
getProof: (mindId: string, input: Rest<"minds_engineForgettingGetForgettingProofId">, options?: MindsEngineOptions) => Promise<unknown>;
|
package/dist/minds-engine.js
CHANGED
|
@@ -271,7 +271,7 @@ export function mindsEngineModule(client) {
|
|
|
271
271
|
forgetting: {
|
|
272
272
|
/** GET /v1/forgetting/policies (minds:instances:read). */
|
|
273
273
|
getPolicies: (mindId, input, options) => call('minds_engineForgettingGetForgettingPolicies', mindId, input, options),
|
|
274
|
-
/** POST /v1/forgetting/policies/:id/toggle (minds:instances:
|
|
274
|
+
/** POST /v1/forgetting/policies/:id/toggle (minds:instances:update). */
|
|
275
275
|
postPoliciesToggle: (mindId, input, options) => call('minds_engineForgettingPostForgettingPoliciesIdToggle', mindId, input, options),
|
|
276
276
|
/** GET /v1/forgetting/proof/:id (minds:instances:read). */
|
|
277
277
|
getProof: (mindId, input, options) => call('minds_engineForgettingGetForgettingProofId', mindId, input, options),
|