@hashgraphonline/standards-agent-kit 0.2.132 → 0.2.135
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/cjs/builders/hcs10/hcs10-builder.d.ts +0 -2
- package/dist/cjs/builders/inscriber/inscriber-builder.d.ts +2 -39
- package/dist/cjs/lib/zod-render/config-extractor.d.ts +0 -21
- package/dist/cjs/lib/zod-render/index.d.ts +3 -3
- package/dist/cjs/lib/zod-render/schema-extension.d.ts +1 -9
- package/dist/cjs/standards-agent-kit.cjs +1 -1
- package/dist/cjs/standards-agent-kit.cjs.map +1 -1
- package/dist/cjs/tools/index.d.ts +0 -1
- package/dist/cjs/tools/inscriber/InscribeHashinalTool.d.ts +42 -1
- package/dist/cjs/tools/inscriber/base-inscriber-tools.d.ts +19 -0
- package/dist/es/builders/hcs10/hcs10-builder.d.ts +0 -2
- package/dist/es/builders/inscriber/inscriber-builder.d.ts +2 -39
- package/dist/es/lib/zod-render/config-extractor.d.ts +0 -21
- package/dist/es/lib/zod-render/index.d.ts +3 -3
- package/dist/es/lib/zod-render/schema-extension.d.ts +1 -9
- package/dist/es/standards-agent-kit.es.js +47 -6228
- package/dist/es/standards-agent-kit.es.js.map +1 -1
- package/dist/es/standards-agent-kit.es10.js +91 -0
- package/dist/es/standards-agent-kit.es10.js.map +1 -0
- package/dist/es/standards-agent-kit.es11.js +40 -0
- package/dist/es/standards-agent-kit.es11.js.map +1 -0
- package/dist/es/standards-agent-kit.es12.js +40 -0
- package/dist/es/standards-agent-kit.es12.js.map +1 -0
- package/dist/es/standards-agent-kit.es13.js +50 -0
- package/dist/es/standards-agent-kit.es13.js.map +1 -0
- package/dist/es/standards-agent-kit.es14.js +62 -0
- package/dist/es/standards-agent-kit.es14.js.map +1 -0
- package/dist/es/standards-agent-kit.es15.js +72 -0
- package/dist/es/standards-agent-kit.es15.js.map +1 -0
- package/dist/es/standards-agent-kit.es16.js +35 -0
- package/dist/es/standards-agent-kit.es16.js.map +1 -0
- package/dist/es/standards-agent-kit.es17.js +35 -0
- package/dist/es/standards-agent-kit.es17.js.map +1 -0
- package/dist/es/standards-agent-kit.es18.js +45 -0
- package/dist/es/standards-agent-kit.es18.js.map +1 -0
- package/dist/es/standards-agent-kit.es19.js +21 -0
- package/dist/es/standards-agent-kit.es19.js.map +1 -0
- package/dist/es/standards-agent-kit.es2.js +25 -0
- package/dist/es/standards-agent-kit.es2.js.map +1 -0
- package/dist/es/standards-agent-kit.es20.js +143 -0
- package/dist/es/standards-agent-kit.es20.js.map +1 -0
- package/dist/es/standards-agent-kit.es21.js +32 -0
- package/dist/es/standards-agent-kit.es21.js.map +1 -0
- package/dist/es/standards-agent-kit.es22.js +46 -0
- package/dist/es/standards-agent-kit.es22.js.map +1 -0
- package/dist/es/standards-agent-kit.es23.js +48 -0
- package/dist/es/standards-agent-kit.es23.js.map +1 -0
- package/dist/es/standards-agent-kit.es24.js +51 -0
- package/dist/es/standards-agent-kit.es24.js.map +1 -0
- package/dist/es/standards-agent-kit.es25.js +45 -0
- package/dist/es/standards-agent-kit.es25.js.map +1 -0
- package/dist/es/standards-agent-kit.es26.js +48 -0
- package/dist/es/standards-agent-kit.es26.js.map +1 -0
- package/dist/es/standards-agent-kit.es27.js +45 -0
- package/dist/es/standards-agent-kit.es27.js.map +1 -0
- package/dist/es/standards-agent-kit.es28.js +32 -0
- package/dist/es/standards-agent-kit.es28.js.map +1 -0
- package/dist/es/standards-agent-kit.es29.js +35 -0
- package/dist/es/standards-agent-kit.es29.js.map +1 -0
- package/dist/es/standards-agent-kit.es3.js +1568 -0
- package/dist/es/standards-agent-kit.es3.js.map +1 -0
- package/dist/es/standards-agent-kit.es30.js +48 -0
- package/dist/es/standards-agent-kit.es30.js.map +1 -0
- package/dist/es/standards-agent-kit.es31.js +46 -0
- package/dist/es/standards-agent-kit.es31.js.map +1 -0
- package/dist/es/standards-agent-kit.es32.js +48 -0
- package/dist/es/standards-agent-kit.es32.js.map +1 -0
- package/dist/es/standards-agent-kit.es33.js +98 -0
- package/dist/es/standards-agent-kit.es33.js.map +1 -0
- package/dist/es/standards-agent-kit.es34.js +241 -0
- package/dist/es/standards-agent-kit.es34.js.map +1 -0
- package/dist/es/standards-agent-kit.es35.js +223 -0
- package/dist/es/standards-agent-kit.es35.js.map +1 -0
- package/dist/es/standards-agent-kit.es36.js +187 -0
- package/dist/es/standards-agent-kit.es36.js.map +1 -0
- package/dist/es/standards-agent-kit.es37.js +636 -0
- package/dist/es/standards-agent-kit.es37.js.map +1 -0
- package/dist/es/standards-agent-kit.es38.js +46 -0
- package/dist/es/standards-agent-kit.es38.js.map +1 -0
- package/dist/es/standards-agent-kit.es39.js +249 -0
- package/dist/es/standards-agent-kit.es39.js.map +1 -0
- package/dist/es/standards-agent-kit.es4.js +95 -0
- package/dist/es/standards-agent-kit.es4.js.map +1 -0
- package/dist/es/standards-agent-kit.es40.js +141 -0
- package/dist/es/standards-agent-kit.es40.js.map +1 -0
- package/dist/es/standards-agent-kit.es41.js +33 -0
- package/dist/es/standards-agent-kit.es41.js.map +1 -0
- package/dist/es/standards-agent-kit.es42.js +427 -0
- package/dist/es/standards-agent-kit.es42.js.map +1 -0
- package/dist/es/standards-agent-kit.es43.js +189 -0
- package/dist/es/standards-agent-kit.es43.js.map +1 -0
- package/dist/es/standards-agent-kit.es44.js +7 -0
- package/dist/es/standards-agent-kit.es44.js.map +1 -0
- package/dist/es/standards-agent-kit.es45.js +28 -0
- package/dist/es/standards-agent-kit.es45.js.map +1 -0
- package/dist/es/standards-agent-kit.es46.js +7 -0
- package/dist/es/standards-agent-kit.es46.js.map +1 -0
- package/dist/es/standards-agent-kit.es47.js +57 -0
- package/dist/es/standards-agent-kit.es47.js.map +1 -0
- package/dist/es/standards-agent-kit.es48.js +6 -0
- package/dist/es/standards-agent-kit.es48.js.map +1 -0
- package/dist/es/standards-agent-kit.es49.js +43 -0
- package/dist/es/standards-agent-kit.es49.js.map +1 -0
- package/dist/es/standards-agent-kit.es5.js +113 -0
- package/dist/es/standards-agent-kit.es5.js.map +1 -0
- package/dist/es/standards-agent-kit.es50.js +22 -0
- package/dist/es/standards-agent-kit.es50.js.map +1 -0
- package/dist/es/standards-agent-kit.es51.js +57 -0
- package/dist/es/standards-agent-kit.es51.js.map +1 -0
- package/dist/es/standards-agent-kit.es6.js +56 -0
- package/dist/es/standards-agent-kit.es6.js.map +1 -0
- package/dist/es/standards-agent-kit.es7.js +332 -0
- package/dist/es/standards-agent-kit.es7.js.map +1 -0
- package/dist/es/standards-agent-kit.es8.js +32 -0
- package/dist/es/standards-agent-kit.es8.js.map +1 -0
- package/dist/es/standards-agent-kit.es9.js +244 -0
- package/dist/es/standards-agent-kit.es9.js.map +1 -0
- package/dist/es/tools/index.d.ts +0 -1
- package/dist/es/tools/inscriber/InscribeHashinalTool.d.ts +42 -1
- package/dist/es/tools/inscriber/base-inscriber-tools.d.ts +19 -0
- package/dist/umd/builders/hcs10/hcs10-builder.d.ts +0 -2
- package/dist/umd/builders/inscriber/inscriber-builder.d.ts +2 -39
- package/dist/umd/lib/zod-render/config-extractor.d.ts +0 -21
- package/dist/umd/lib/zod-render/index.d.ts +3 -3
- package/dist/umd/lib/zod-render/schema-extension.d.ts +1 -9
- package/dist/umd/standards-agent-kit.umd.js +1 -1
- package/dist/umd/standards-agent-kit.umd.js.map +1 -1
- package/dist/umd/tools/index.d.ts +0 -1
- package/dist/umd/tools/inscriber/InscribeHashinalTool.d.ts +42 -1
- package/dist/umd/tools/inscriber/base-inscriber-tools.d.ts +19 -0
- package/package.json +33 -29
- package/src/builders/hcs10/hcs10-builder.ts +0 -4
- package/src/builders/inscriber/inscriber-builder.ts +2 -45
- package/src/lib/zod-render/config-extractor.ts +0 -92
- package/src/lib/zod-render/index.ts +1 -7
- package/src/lib/zod-render/schema-extension.ts +1 -69
- package/src/tools/index.ts +1 -2
- package/src/tools/inscriber/InscribeFromBufferTool.ts +2 -2
- package/src/tools/inscriber/InscribeFromUrlTool.ts +2 -2
- package/src/tools/inscriber/InscribeHashinalTool.ts +129 -20
- package/src/tools/inscriber/base-inscriber-tools.ts +26 -0
- package/src/types/inscription-response.ts +2 -2
- package/dist/cjs/lib/zod-render/__tests__/withRender.test.d.ts +0 -1
- package/dist/cjs/tools/hedera/HederaCreateNftTool.d.ts +0 -72
- package/dist/cjs/tools/hedera/index.d.ts +0 -1
- package/dist/es/lib/zod-render/__tests__/withRender.test.d.ts +0 -1
- package/dist/es/tools/hedera/HederaCreateNftTool.d.ts +0 -72
- package/dist/es/tools/hedera/index.d.ts +0 -1
- package/dist/umd/lib/zod-render/__tests__/withRender.test.d.ts +0 -1
- package/dist/umd/tools/hedera/HederaCreateNftTool.d.ts +0 -72
- package/dist/umd/tools/hedera/index.d.ts +0 -1
- package/src/lib/zod-render/__tests__/withRender.test.ts +0 -205
- package/src/tools/hedera/HederaCreateNftTool.ts +0 -294
- package/src/tools/hedera/index.ts +0 -1
|
@@ -87,8 +87,6 @@ export declare class HCS10Builder extends BaseServiceBuilder {
|
|
|
87
87
|
private standardClient;
|
|
88
88
|
private stateManager;
|
|
89
89
|
private executeResult?;
|
|
90
|
-
private useEncryption;
|
|
91
|
-
private guardedRegistryBaseUrl;
|
|
92
90
|
private network;
|
|
93
91
|
private sdkLogger;
|
|
94
92
|
constructor(hederaKit: HederaAgentKit, stateManager?: IStateManager, options?: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseServiceBuilder, HederaAgentKit } from 'hedera-agent-kit';
|
|
2
2
|
import { InscriptionInput, InscriptionOptions, InscriptionResponse, RetrievedInscriptionResult } from '@hashgraphonline/standards-sdk';
|
|
3
|
+
import { InscriptionSDK } from '@kiloscribe/inscription-sdk';
|
|
3
4
|
/**
|
|
4
|
-
* Type definition for DAppSigner
|
|
5
|
+
* Type definition for DAppSigner interface compatible with inscription SDK
|
|
5
6
|
*/
|
|
6
7
|
interface DAppSigner {
|
|
7
8
|
getAccountId(): {
|
|
@@ -9,44 +10,6 @@ interface DAppSigner {
|
|
|
9
10
|
};
|
|
10
11
|
[key: string]: unknown;
|
|
11
12
|
}
|
|
12
|
-
/**
|
|
13
|
-
* Type definition for inscription request parameters
|
|
14
|
-
*/
|
|
15
|
-
interface InscriptionRequest {
|
|
16
|
-
[key: string]: unknown;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Type definition for inscription configuration
|
|
20
|
-
*/
|
|
21
|
-
interface InscriptionConfig {
|
|
22
|
-
[key: string]: unknown;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Type definition for inscription execution result
|
|
26
|
-
*/
|
|
27
|
-
interface InscriptionExecutionResult {
|
|
28
|
-
[key: string]: unknown;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Type definition for inscription result
|
|
32
|
-
*/
|
|
33
|
-
interface InscriptionResult {
|
|
34
|
-
[key: string]: unknown;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Type definition for wait for inscription result
|
|
38
|
-
*/
|
|
39
|
-
interface WaitForInscriptionResult {
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Type definition for InscriptionSDK since we don't have the actual package
|
|
44
|
-
*/
|
|
45
|
-
interface InscriptionSDK {
|
|
46
|
-
inscribeAndExecute(request: InscriptionRequest, config: InscriptionConfig): Promise<InscriptionExecutionResult>;
|
|
47
|
-
inscribe(request: InscriptionRequest, signer: DAppSigner): Promise<InscriptionResult>;
|
|
48
|
-
waitForInscription(txId: string, maxAttempts: number, intervalMs: number, checkCompletion: boolean, progressCallback?: (...args: unknown[]) => void): Promise<WaitForInscriptionResult>;
|
|
49
|
-
}
|
|
50
13
|
/**
|
|
51
14
|
* Builder for Inscription operations
|
|
52
15
|
*/
|
|
@@ -8,15 +8,6 @@ interface FieldConfigMapEntry {
|
|
|
8
8
|
metadata: FieldMetadata;
|
|
9
9
|
path: string[];
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Type definition for validation rules entries
|
|
13
|
-
*/
|
|
14
|
-
interface ValidationRulesEntry {
|
|
15
|
-
required: boolean;
|
|
16
|
-
type: FormFieldType;
|
|
17
|
-
constraints: Record<string, unknown>;
|
|
18
|
-
customMessages?: Record<string, string>;
|
|
19
|
-
}
|
|
20
11
|
/**
|
|
21
12
|
* Type definition for simple field configuration
|
|
22
13
|
*/
|
|
@@ -50,18 +41,6 @@ export declare function generateFieldOrdering(schema: ZodType<unknown>): {
|
|
|
50
41
|
* Creates a field configuration map for form builders
|
|
51
42
|
*/
|
|
52
43
|
export declare function createFieldConfigMap(schema: ZodType<unknown>): Record<string, FieldConfigMapEntry>;
|
|
53
|
-
/**
|
|
54
|
-
* Generates validation rules from schema and render configs
|
|
55
|
-
*/
|
|
56
|
-
export declare function extractValidationRules(schema: ZodType<unknown>): Record<string, ValidationRulesEntry>;
|
|
57
|
-
/**
|
|
58
|
-
* Merges render configurations from multiple schemas
|
|
59
|
-
*/
|
|
60
|
-
export declare function mergeRenderConfigs(...configs: ExtractedRenderConfig[]): ExtractedRenderConfig;
|
|
61
|
-
/**
|
|
62
|
-
* Filters render configurations based on conditions
|
|
63
|
-
*/
|
|
64
|
-
export declare function filterRenderConfigs(config: ExtractedRenderConfig, filter: (fieldPath: string, renderConfig: RenderConfigSchema) => boolean): ExtractedRenderConfig;
|
|
65
44
|
/**
|
|
66
45
|
* Creates a simplified configuration for basic form rendering
|
|
67
46
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './types';
|
|
2
2
|
export * from './schema-extension';
|
|
3
3
|
export * from './config-extractor';
|
|
4
|
-
export { extendZodSchema, hasRenderConfig, getRenderConfig, renderConfigs
|
|
5
|
-
export { extractRenderConfigs, generateFieldOrdering, createFieldConfigMap,
|
|
6
|
-
export type { FormFieldType, RenderContext, RenderFunction, RenderConfigSchema, ZodSchemaWithRender, FormGenerationOptions, ValidationError, FormState, FormActions, UseFormReturn, ComponentRegistry, FieldComponentProps, SelectOption, FileUploadResult, FieldMetadata,
|
|
4
|
+
export { extendZodSchema, hasRenderConfig, getRenderConfig, renderConfigs } from './schema-extension';
|
|
5
|
+
export { extractRenderConfigs, generateFieldOrdering, createFieldConfigMap, createSimpleConfig } from './config-extractor';
|
|
6
|
+
export type { FormFieldType, RenderContext, RenderFunction, RenderConfigSchema, ZodSchemaWithRender, FormGenerationOptions, ValidationError, FormState, FormActions, UseFormReturn, ComponentRegistry, FieldComponentProps, SelectOption, FileUploadResult, FieldMetadata, ExtractedRenderConfig } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZodType } from 'zod';
|
|
2
|
-
import { RenderConfigSchema, EnhancedRenderConfig, ZodSchemaWithRender, FormFieldType, FieldMetadata, SelectOption
|
|
2
|
+
import { RenderConfigSchema, EnhancedRenderConfig, ZodSchemaWithRender, FormFieldType, FieldMetadata, SelectOption } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Extends a Zod schema with render configuration capabilities
|
|
5
5
|
*/
|
|
@@ -40,14 +40,6 @@ export declare function getDefaultValue(schema: ZodType<unknown>): unknown;
|
|
|
40
40
|
* Extracts field metadata from schema including render configuration
|
|
41
41
|
*/
|
|
42
42
|
export declare function extractFieldMetadata(schema: ZodType<unknown>): FieldMetadata;
|
|
43
|
-
/**
|
|
44
|
-
* Schema composition utilities for building complex forms
|
|
45
|
-
*/
|
|
46
|
-
export declare const schemaComposer: SchemaComposer;
|
|
47
|
-
/**
|
|
48
|
-
* Creates render configuration with sensible defaults
|
|
49
|
-
*/
|
|
50
|
-
export declare function createRenderConfig(overrides?: Partial<EnhancedRenderConfig>): EnhancedRenderConfig;
|
|
51
43
|
/**
|
|
52
44
|
* Helper function to create common render configurations
|
|
53
45
|
*/
|