wowok_agent 1.4.51 → 1.4.53

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.
@@ -4547,9 +4547,8 @@ export declare const WitnessSchema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4547
4547
  witness?: any;
4548
4548
  }[];
4549
4549
  }>>>;
4550
- export declare const CallDemandSchemaDescription = "Operate the on-chain Demand object using the local account signatures.\nThe Demand object is an on-chain service requirement manager, enabling users to publish, modify, or cancel service demands via local account signatures. Core functions include defining demand types (e.g., logistics, medical consultation), setting parameters (e.g., location, symptom details), specifying execution conditions, tracking status, and assigning rewards to preferred service referrers.\nScenarios :\n- Logistics : A user publishes a logistics demand with pickup/dropoff details, and sets a reward for referrers who recommend qualified delivery companies.\n- Medical Consultation : A patient creates a demand for specialist consultation, including rewards for referrers who suggest verified clinics.\nKey Details :\n- Operated via local account signatures to ensure ownership.\n- Structured fields (type, parameters, deadline, status) enable automated service matching.\n- Supports lifecycle management (update, fulfill) and reward assignment to incentivize quality referrals.";
4550
+ export declare const CallDemandSchemaDescription = "Describes operations to create or modify an on-chain Demand object using the 'account' field to sign transactions and the 'data' field to define object details. \nThe Demand object enables its manager to publish service-seeking demands, declare, and grant rewards to satisfactory service referrers. \nIt supports transaction models like C2B or C2C, where managers can dynamically update/refine demands, and referrers can adjust Services and their supply chain commitments to better fulfill personalized requirements. \nDemand administrators control permissions for different operations through a Permission object. and may set up a Guard object to enforce threshold verification requirements for service referrers.";
4551
4551
  export declare const CallDemandSchema: z.ZodObject<{
4552
- name: z.ZodLiteral<"demand">;
4553
4552
  data: z.ZodObject<{
4554
4553
  object: z.ZodUnion<[z.ZodString, z.ZodObject<{
4555
4554
  name: z.ZodOptional<z.ZodString>;
@@ -4827,7 +4826,6 @@ export declare const CallDemandSchema: z.ZodObject<{
4827
4826
  }[];
4828
4827
  }>>>;
4829
4828
  }, "strip", z.ZodTypeAny, {
4830
- name: "demand";
4831
4829
  data: {
4832
4830
  object: string | {
4833
4831
  type_parameter: string;
@@ -4886,7 +4884,6 @@ export declare const CallDemandSchema: z.ZodObject<{
4886
4884
  }[];
4887
4885
  } | null | undefined;
4888
4886
  }, {
4889
- name: "demand";
4890
4887
  data: {
4891
4888
  object: string | {
4892
4889
  type_parameter: string;
@@ -4945,9 +4942,14 @@ export declare const CallDemandSchema: z.ZodObject<{
4945
4942
  }[];
4946
4943
  } | null | undefined;
4947
4944
  }>;
4948
- export declare const CallRepositorySchemaDescription = "Operate the on-chain Repository object using the local account signatures.\nThe Repository serves as an on-chain data warehouse, storing and managing consensus data items retrievable and maintained via a dual identifier system: an address (physical locator) and a policy (semantic name defined by multi-party consensus). It can be referenced by Guards for data validation\u2014e.g., verifying an address's medical data in a named medical Repository to release insurance payouts from a Treasury, or using daily weather data from a named weather Repository to adjust service workflows (e.g., sport recommendations). Permissions can be flexibly configured per policy to enhance data comprehension, adoption, and maintenance.";
4945
+ export declare const CallDemandSchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
4946
+ $schema?: string | undefined;
4947
+ definitions?: {
4948
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
4949
+ } | undefined;
4950
+ };
4951
+ export declare const CallRepositorySchemaDescription = "Describes operations to create or modify an on-chain Repository object using the 'account' field to sign transactions and the 'data' field to define object details. \nThe Repository object enables its manager to declare and manage an on-chain database through consensus names and their independent permission settings, with data retrieval and management based on both address and consensus name. \nRepositories are widely used for on-chain data maintenance and utilization, such as: a named Repository providing medical data for different patients (addresses) and injury conditions (consensus names) to validate insurance claim conditions; \na named Repository offering hourly(with time converted to addresses) diving recommendations (consensus names) for Maldives city to support travel service providers in force majeure service disclaimers; and various data oracles. \nRepository administrators control permissions for different operations through a Permission object. and may individually set Policies for specific consensus names (including independent write permissions, declarations of consensus content, and data usage rules).";
4949
4952
  export declare const CallRepositorySchema: z.ZodObject<{
4950
- name: z.ZodLiteral<"repository">;
4951
4953
  data: z.ZodObject<{
4952
4954
  object: z.ZodUnion<[z.ZodString, z.ZodObject<{
4953
4955
  name: z.ZodOptional<z.ZodString>;
@@ -5506,7 +5508,6 @@ export declare const CallRepositorySchema: z.ZodObject<{
5506
5508
  }[];
5507
5509
  }>>>;
5508
5510
  }, "strip", z.ZodTypeAny, {
5509
- name: "repository";
5510
5511
  data: {
5511
5512
  object: string | {
5512
5513
  tags?: string[] | undefined;
@@ -5599,7 +5600,6 @@ export declare const CallRepositorySchema: z.ZodObject<{
5599
5600
  }[];
5600
5601
  } | null | undefined;
5601
5602
  }, {
5602
- name: "repository";
5603
5603
  data: {
5604
5604
  object: string | {
5605
5605
  tags?: string[] | undefined;
@@ -5692,9 +5692,14 @@ export declare const CallRepositorySchema: z.ZodObject<{
5692
5692
  }[];
5693
5693
  } | null | undefined;
5694
5694
  }>;
5695
- export declare const CallMachineSchemaDescription = "Operate the on-chain Machine object using the local account signatures. \n The Machine object is a core workflow management entity in the wowok protocol, designed to enable multi-user collaboration by providing three key capabilities: \n 1. **Process Orchestration**: Define multi-stage service execution flows (e.g., requirement confirmation \u2192 development \u2192 testing \u2192 acceptance) with clear step sequences and triggers, ensuring collaborative tasks proceed in a structured manner. \n 2. **Permission Governance**: Assign granular operation permissions to participating roles (e.g., only service providers can execute development steps; only purchasers can approve acceptance steps), preventing unauthorized modifications to the workflow. \n 3. **Delivery Verification**: Configure automatic validation rules via Guard conditions (e.g., verifying that deliverable hashes match predefined values or that timestamps meet deadlines), ensuring objective assessment of task completion. \n When integrated with Service objects, Machine enforces binding constraints on service providers and payers: service providers define the collaborative process, permissions, and verification rules in the Machine when publishing services. Once a purchaser places an order, these rules are immutably recorded on-chain, ensuring both parties' commitments are enforced programmatically without arbitrary changes, thereby maintaining trust in service execution.";
5695
+ export declare const CallRepositorySchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
5696
+ $schema?: string | undefined;
5697
+ definitions?: {
5698
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
5699
+ } | undefined;
5700
+ };
5701
+ export declare const CallMachineSchemaDescription = "Describes operations to create or modify an on-chain Machine object, where the 'account' field is used to sign transactions and the 'data' field defines object details. \nThe Machine object enables its manager to orchestrate collaborative workflows, manage permissions, and validate deliverables on-chain. It achieves reusable workflow execution through the generation of distinct instances (Progress objects), such as service processes for e-commerce orders. Core functionalities include:\n- Workflow Orchestration : Defines multi-stage collaborative workflows (e.g., Requirement Confirmation \u2192 Development \u2192 Testing \u2192 Acceptance) with parallel or sequential execution, specifying step order and trigger conditions to support complex collaboration scenarios.\n- Permission Management : Assigns granular operational permissions to collaborators (e.g., only service providers can execute development steps; only purchasers can approve acceptance steps), and sets namespace-specific permissions for different workflow instances (Progress objects) (e.g., distinct delivery personnel for different Progress objects).\n- Delivery Validation : Implements automatic validation rules via Guard objects (e.g., verifying updates to the latest data in a named Repository or confirming purchase order fulfillment as committed).\nMachine administrators control permissions for different operations through Permission objects and can configure namespaces to provide unified permission operation spaces for different instances (Progress objects). Once published, the workflow orchestration and delivery validation rules of a Machine object become immutable. To enhance a Machine, a new Machine object can be generated and modified via the Clone method.";
5696
5702
  export declare const CallMachineSchema: z.ZodObject<{
5697
- name: z.ZodLiteral<"machine">;
5698
5703
  data: z.ZodObject<{
5699
5704
  object: z.ZodUnion<[z.ZodString, z.ZodObject<{
5700
5705
  name: z.ZodOptional<z.ZodString>;
@@ -6756,7 +6761,6 @@ export declare const CallMachineSchema: z.ZodObject<{
6756
6761
  }[];
6757
6762
  }>>>;
6758
6763
  }, "strip", z.ZodTypeAny, {
6759
- name: "machine";
6760
6764
  data: {
6761
6765
  object: string | {
6762
6766
  tags?: string[] | undefined;
@@ -6928,7 +6932,6 @@ export declare const CallMachineSchema: z.ZodObject<{
6928
6932
  }[];
6929
6933
  } | null | undefined;
6930
6934
  }, {
6931
- name: "machine";
6932
6935
  data: {
6933
6936
  object: string | {
6934
6937
  tags?: string[] | undefined;
@@ -7100,9 +7103,14 @@ export declare const CallMachineSchema: z.ZodObject<{
7100
7103
  }[];
7101
7104
  } | null | undefined;
7102
7105
  }>;
7103
- export declare const CallServiceSchemaDescription = "Operate the on-chain Service object using the local account signatures.\n Service Object enables service providers to:\n Provide products/services (including descriptions, interfaces, pricing, inventory, etc.),\n Define service processes,\n Specify arbitration commitments,\n Establish payment collection and refund commitments,\n Configure order incentives/rewards,\n Set purchaser requirements, etc..\n And the Process and delivery commitments cannot be arbitrarily modified post-purchase. \n Through the Service Object, a purchaser's procurement and payment for services triggers the creation of a new Order instance, where the Order entity is contractually vested with the corresponding service entitlements.";
7106
+ export declare const CallMachineSchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
7107
+ $schema?: string | undefined;
7108
+ definitions?: {
7109
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
7110
+ } | undefined;
7111
+ };
7112
+ export declare const CallServiceSchemaDescription = "Describes operations to create or modify an on-chain Service object, where the 'account' field is used to sign transactions and the 'data' field defines object details. \nThe Service object enables its managers to publish purchasable services on-chain, including setting product/service descriptions, prices, inventory, service workflows (Machine object), withdrawal guard rules (Withdraw Guard objects), refund guard rules (Refund Guard objects), dispute commitments (Arbitration objects), the conditions for the purchaser (Buy Guard object), incentives/rewards (Treasury objects), information service endpoints (Endpoint), and encryption of sensitive information.\nUpon successful payment by the purchaser, a new Order object is generated, granting the purchaser all rights committed by the Service to the Order, including:\n- Service Workflow : Full transparency of all service and delivery processes prior to purchase.\n- Breach Arbitration : In case of order disputes, the Order owner can apply for arbitration and compensation claims through these Arbitration objects, with arbitration results and compensation requirements executed automatically.\n- Refund Commitment : Pre-purchase review of refund/withdrawal processes and terms to ensure alignment with purchaser needs.\n- Incentive Rewards : Pre-purchase review of incentives/rewards obtainable when Guard conditions are met.\n- Privacy Protection : On-chain encryption of purchaser's sensitive data or submission via the service provider's Endpoint.\nService administrators control permissions for different operations through a Permission object.\nOnce published, the Service object's service workflows, Guard objects, and other configurations become immutable. To adjust services, a new Service object must be created and configured via the Clone method. A Service can be paused to stop generating new orders, though commitments to existing orders remain unaffected.";
7104
7113
  export declare const CallServiceSchema: z.ZodObject<{
7105
- name: z.ZodLiteral<"service">;
7106
7114
  data: z.ZodObject<{
7107
7115
  object: z.ZodUnion<[z.ZodString, z.ZodObject<{
7108
7116
  name: z.ZodOptional<z.ZodString>;
@@ -8075,7 +8083,6 @@ export declare const CallServiceSchema: z.ZodObject<{
8075
8083
  }[];
8076
8084
  }>>>;
8077
8085
  }, "strip", z.ZodTypeAny, {
8078
- name: "service";
8079
8086
  data: {
8080
8087
  object: string | {
8081
8088
  type_parameter: string;
@@ -8259,7 +8266,6 @@ export declare const CallServiceSchema: z.ZodObject<{
8259
8266
  }[];
8260
8267
  } | null | undefined;
8261
8268
  }, {
8262
- name: "service";
8263
8269
  data: {
8264
8270
  object: string | {
8265
8271
  type_parameter: string;
@@ -8443,9 +8449,14 @@ export declare const CallServiceSchema: z.ZodObject<{
8443
8449
  }[];
8444
8450
  } | null | undefined;
8445
8451
  }>;
8446
- export declare const CallTreasurySchemaDescription = "Operate the on-chain Treasury object using the local account signatures. The Treasury object serves as a centralized fund management hub for wowok protocol, supporting multi-scenario financial operations including service incentives distribution, dispute compensation execution, and operational reward disbursement.\n- **Service Reward Mode**: Automatically disburses predefined incentives to service providers via smart contract triggers upon successful completion of service orders (e.g., e-commerce transaction fulfillment, travel service delivery).\n- **Dispute Compensation Mode**: Executes compensation payments to order payers based on valid Arbitration results, ensuring timely fund transfer as ruled by the arbitration panel within 24 hours of result confirmation.\n- **Operational Reward Mode**: Provides Guard-based fund withdrawal mechanisms for different operational personnel, with predefined withdrawal limits. For example, after completing a computational task, if the submitted result data meets the on-chain verification requirements (via Guard conditions), the operator can withdraw a designated reward amount up to the set limit.\n\nAll operations (deposit, withdrawal, transfer) are governed by the associated Permission object, ensuring authorized access and compliant fund flows. All transaction records are permanently stored on-chain for full transparency.";
8452
+ export declare const CallServiceSchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
8453
+ $schema?: string | undefined;
8454
+ definitions?: {
8455
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
8456
+ } | undefined;
8457
+ };
8458
+ export declare const CallTreasurySchemaDescription = "Describes operations to create or modify an on-chain Treasury object, where the 'account' field is used to sign transactions and the 'data' field defines object details. The Treasury object enables its administrators to manage a specific token's funds on-chain, including operations such as depositing, withdrawing, receiving funds, and setting memos/purposes for fund flows (e.g., allocating compensation payments from the treasury as a verification condition for collaborative workflows, such as after a courier loses a package, leveraging Guard objects to seamlessly integrate business processes).\nTreasury administrators control permissions for different operations through a Permission object. For withdrawal operations, distinct verification conditions (Guard objects) can be set to allow withdrawals of varying amounts, providing flexible and rapid withdrawal channels for external operators (e.g., airdrops or order incentives).";
8447
8459
  export declare const CallTreasurySchema: z.ZodObject<{
8448
- name: z.ZodLiteral<"treasury">;
8449
8460
  data: z.ZodObject<{
8450
8461
  object: z.ZodUnion<[z.ZodString, z.ZodObject<{
8451
8462
  name: z.ZodOptional<z.ZodString>;
@@ -8815,7 +8826,6 @@ export declare const CallTreasurySchema: z.ZodObject<{
8815
8826
  }[];
8816
8827
  }>>>;
8817
8828
  }, "strip", z.ZodTypeAny, {
8818
- name: "treasury";
8819
8829
  data: {
8820
8830
  object: string | {
8821
8831
  type_parameter: string;
@@ -8887,7 +8897,6 @@ export declare const CallTreasurySchema: z.ZodObject<{
8887
8897
  }[];
8888
8898
  } | null | undefined;
8889
8899
  }, {
8890
- name: "treasury";
8891
8900
  data: {
8892
8901
  object: string | {
8893
8902
  type_parameter: string;
@@ -8959,9 +8968,14 @@ export declare const CallTreasurySchema: z.ZodObject<{
8959
8968
  }[];
8960
8969
  } | null | undefined;
8961
8970
  }>;
8962
- export declare const CallPermissionSchemaDescription = "Operate the on-chain Permission object using the local account signatures. The Permission object is designed to manage access control for core wowok protocol entities (e.g., Machine, Service, Repository, Treasury). It defines granular operation permissions (e.g., read, write, management) for specific entities or addresses, ensuring only authorized subjects can perform designated actions on the associated on-chain objects (such as data modification, fund transfer, or configuration updates). This mechanism safeguards the security and compliance of protocol resource operations.";
8971
+ export declare const CallTreasurySchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
8972
+ $schema?: string | undefined;
8973
+ definitions?: {
8974
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
8975
+ } | undefined;
8976
+ };
8977
+ export declare const CallPermissionSchemaDescription = "Describes operations to create or modify an on-chain Permission object, where the 'account' field is used to sign transactions and the 'data' field defines object details. \nThe Permission object enables its administrators to set distinct operational permissions (including built-in permissions and custom permissions) and additional verification conditions (Guard object) for different addresses on-chain. For example, assigning Permission No. 123 (a built-in permission for cloning Service objects) to address 0x1234 allows that address to initiate clone operations across all Service objects that accept this Permission object.\nIn the Wowok protocol, objects of types such as Demand, Repository, Treasury, Service, Machine, and Arbitration include a 'permission' field that specifies the accepted Permission object. This enables addresses and permissions defined by the linked Permission object to perform operations on these target objects.";
8963
8978
  export declare const CallPermissionSchema: z.ZodObject<{
8964
- name: z.ZodLiteral<"permission">;
8965
8979
  data: z.ZodObject<{
8966
8980
  object: z.ZodUnion<[z.ZodString, z.ZodObject<{
8967
8981
  name: z.ZodOptional<z.ZodString>;
@@ -9553,7 +9567,6 @@ export declare const CallPermissionSchema: z.ZodObject<{
9553
9567
  }[];
9554
9568
  }>>>;
9555
9569
  }, "strip", z.ZodTypeAny, {
9556
- name: "permission";
9557
9570
  data: {
9558
9571
  object: string | {
9559
9572
  tags?: string[] | undefined;
@@ -9655,7 +9668,6 @@ export declare const CallPermissionSchema: z.ZodObject<{
9655
9668
  }[];
9656
9669
  } | null | undefined;
9657
9670
  }, {
9658
- name: "permission";
9659
9671
  data: {
9660
9672
  object: string | {
9661
9673
  tags?: string[] | undefined;
@@ -9757,9 +9769,14 @@ export declare const CallPermissionSchema: z.ZodObject<{
9757
9769
  }[];
9758
9770
  } | null | undefined;
9759
9771
  }>;
9760
- export declare const CallArbitrationSchemaDescription = "Operate the on-chain Arbitration object using the local account signatures. \nThe Arbitration object is designed to handle order disputes, particularly those involving off-chain data, evidence, and proofs. A public arbitration panel reviews the dispute, votes, and determines the compensation amount. If the order's Service object declares support for this Arbitration, the determined compensation amount allows the order payer to immediately withdraw funds from the order.\nThe arbitration process and results are stored as on-chain data, which may be referenced as Guard conditions to grant the order payer additional rights, such as obtaining additional incentives or compensation commitments from the Treasury for the Service.";
9772
+ export declare const CallPermissionSchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
9773
+ $schema?: string | undefined;
9774
+ definitions?: {
9775
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
9776
+ } | undefined;
9777
+ };
9778
+ export declare const CallArbitrationSchemaDescription = "Describes operations to create or modify an on-chain Arbitration object, where the 'account' field is used to sign transactions and the 'data' field defines object details. \nThe Arbitration object enables its managers to provide dispute arbitration for orders on-chain. It facilitates named voting based on descriptions and claims of the dispute object (Arb object) to determine the compensation amount for the order owner. If a Service object declares and accepts this Arbitration object, its arbitration results and compensation requirements will be automatically executed.\nWhen an order owner encounters a dispute with an order, they can initiate arbitration by selecting the Arbitration objects accepted by their Service object, resulting in the generation of a new Arb object.\nArbitration administrators control permissions for different operations through a Permission object.";
9761
9779
  export declare const CallArbitrationSchema: z.ZodObject<{
9762
- name: z.ZodLiteral<"arbitration">;
9763
9780
  data: z.ZodObject<{
9764
9781
  object: z.ZodUnion<[z.ZodString, z.ZodObject<{
9765
9782
  name: z.ZodOptional<z.ZodString>;
@@ -10194,7 +10211,6 @@ export declare const CallArbitrationSchema: z.ZodObject<{
10194
10211
  }[];
10195
10212
  }>>>;
10196
10213
  }, "strip", z.ZodTypeAny, {
10197
- name: "arbitration";
10198
10214
  data: {
10199
10215
  object: string | {
10200
10216
  type_parameter: string;
@@ -10281,7 +10297,6 @@ export declare const CallArbitrationSchema: z.ZodObject<{
10281
10297
  }[];
10282
10298
  } | null | undefined;
10283
10299
  }, {
10284
- name: "arbitration";
10285
10300
  data: {
10286
10301
  object: string | {
10287
10302
  type_parameter: string;
@@ -10368,9 +10383,14 @@ export declare const CallArbitrationSchema: z.ZodObject<{
10368
10383
  }[];
10369
10384
  } | null | undefined;
10370
10385
  }>;
10371
- export declare const CallPersonalSchemaDescription = "Operate the on-chain Personal object using local account signatures, including managing public personal information (e.g., avatar URL, personal homepage address, social media accounts like Twitter/Discord, personal introduction) and named tags for addresses/wowok entity objects. The tag management facilitates self/others to understand and manage these addresses/entities, and supports operations such as liking (favoriting) or disliking specific addresses/entity objects.";
10386
+ export declare const CallArbitrationSchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
10387
+ $schema?: string | undefined;
10388
+ definitions?: {
10389
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
10390
+ } | undefined;
10391
+ };
10392
+ export declare const CallPersonalSchemaDescription = "Describes operations to create or modify on-chain personal information(including name, avatar, website, social media accounts, etc.) , and on-chain address favorites (such as naming, tagging, and favoriting addresses to facilitate easier management of these addresses and objects), where the 'account' field is used to sign transactions and the 'data' field defines object details.";
10372
10393
  export declare const CallPersonalSchema: z.ZodObject<{
10373
- name: z.ZodLiteral<"personal">;
10374
10394
  data: z.ZodObject<{
10375
10395
  information: z.ZodOptional<z.ZodObject<{
10376
10396
  name: z.ZodString;
@@ -10680,7 +10700,6 @@ export declare const CallPersonalSchema: z.ZodObject<{
10680
10700
  }>;
10681
10701
  account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10682
10702
  }, "strip", z.ZodTypeAny, {
10683
- name: "personal";
10684
10703
  data: {
10685
10704
  mark?: {
10686
10705
  data: {
@@ -10734,7 +10753,6 @@ export declare const CallPersonalSchema: z.ZodObject<{
10734
10753
  };
10735
10754
  account?: string | null | undefined;
10736
10755
  }, {
10737
- name: "personal";
10738
10756
  data: {
10739
10757
  mark?: {
10740
10758
  data: {
@@ -10788,9 +10806,14 @@ export declare const CallPersonalSchema: z.ZodObject<{
10788
10806
  };
10789
10807
  account?: string | null | undefined;
10790
10808
  }>;
10791
- export declare const CallGuardSchemaDescription = "Generate the on-chain Guard object using local account signatures. Guard is designed for conditional verification before critical on-chain operations (e.g., time-based triggers or process completion checks), leveraging Wowok's tools for querying/verifying on-chain data (including entity object content, table data, and oracle inputs).\nDistinct from Permission, Guard provides finer-grained and more flexible permission validation. Once generated, its verification logic is immutable and publicly auditable, enabling reuse across various Wowok object operations.\nDuring transaction submission requiring Guard verification, validation executes directly within the transaction using on-chain data or prover-provided evidence. Failed verification aborts the transaction; success allows execution.";
10809
+ export declare const CallPersonalSchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
10810
+ $schema?: string | undefined;
10811
+ definitions?: {
10812
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
10813
+ } | undefined;
10814
+ };
10815
+ export declare const CallGuardSchemaDescription = "Describes operations to create or modify an on-chain Arbitration object, where the 'account' field is used to sign transactions and the 'data' field defines object details. \nGuard object is immutable once created. A Guard object is designed to define a set of verification conditions that yield a final boolean result (True or False). \nThese conditions include querying on-chain object data (e.g., verifying if an order owner is 0x1234, or if 100 SUI tokens were paid from a specific Treasury object to 0x1234 and an order(owned by 0x1234) of a Service object has reached the 'express loss verification' process node), validating Witness data provided by the signer (e.g., the provided order address must belong to a certain Service object, and the order owner must be the actual transaction signer), and performing mathematical/logical operations on numerical values. \nDue to its immutability, the Guard object is widely used as a pre-validation requirement for critical operations (e.g., placing an order for a Service object or withdrawing funds from a Treasury object). Additionally, Guard objects can be integrated with Permission object's operation validation: an operation is only executed if both the permission requirements and the Guard verification are satisfied.";
10792
10816
  export declare const CallGuardSchema: z.ZodObject<{
10793
- name: z.ZodLiteral<"guard">;
10794
10817
  data: z.ZodObject<{
10795
10818
  root: z.ZodType<any, z.ZodTypeDef, any>;
10796
10819
  namedNew: z.ZodOptional<z.ZodObject<{
@@ -10859,7 +10882,6 @@ export declare const CallGuardSchema: z.ZodObject<{
10859
10882
  }>;
10860
10883
  account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10861
10884
  }, "strip", z.ZodTypeAny, {
10862
- name: "guard";
10863
10885
  data: {
10864
10886
  table?: {
10865
10887
  identifier: number;
@@ -10878,7 +10900,6 @@ export declare const CallGuardSchema: z.ZodObject<{
10878
10900
  };
10879
10901
  account?: string | null | undefined;
10880
10902
  }, {
10881
- name: "guard";
10882
10903
  data: {
10883
10904
  table?: {
10884
10905
  identifier: number;
@@ -10897,9 +10918,14 @@ export declare const CallGuardSchema: z.ZodObject<{
10897
10918
  };
10898
10919
  account?: string | null | undefined;
10899
10920
  }>;
10900
- export declare const CallObejctPermissionSchemaDescription = "Batch replace on-chain Permission objects for core wowok protocol entities (Machine, Service, Repository, Treasury, Arbitration, Demand) using local account cryptographic signatures. This operation facilitates centralized access control management by replacing existing Permission objects with new ones, which define granular access rules (e.g., read/write permissions, operation authorizations) for these entity types. Transaction validity requires signers to be the original owners of the target Permission objects, ensuring alignment with wowok protocol's ownership verification mechanism.";
10921
+ export declare const CallGuardSchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
10922
+ $schema?: string | undefined;
10923
+ definitions?: {
10924
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
10925
+ } | undefined;
10926
+ };
10927
+ export declare const CallObejctPermissionSchemaDescription = "Enables the use of the account field to sign transactions and leverages the data field to batch replace the permission management objects for objects of types including Machine, Service, Repository, Treasury, Arbitration, and Demand on-chain. \nThis operation facilitates centralized access control by managing the assignment of operation permissions (both built-in and custom) for these objects through the Permission object. \nFor the operation to succeed, the transaction signer must be the owner of the original Permission objects associated with these target objects.";
10901
10928
  export declare const CallObejctPermissionSchema: z.ZodObject<{
10902
- name: z.ZodLiteral<"object_permission">;
10903
10929
  data: z.ZodObject<{
10904
10930
  objects: z.ZodArray<z.ZodString, "many">;
10905
10931
  new_permission: z.ZodString;
@@ -10957,7 +10983,6 @@ export declare const CallObejctPermissionSchema: z.ZodObject<{
10957
10983
  }[];
10958
10984
  }>>>;
10959
10985
  }, "strip", z.ZodTypeAny, {
10960
- name: "object_permission";
10961
10986
  data: {
10962
10987
  objects: string[];
10963
10988
  new_permission: string;
@@ -10975,7 +11000,6 @@ export declare const CallObejctPermissionSchema: z.ZodObject<{
10975
11000
  }[];
10976
11001
  } | null | undefined;
10977
11002
  }, {
10978
- name: "object_permission";
10979
11003
  data: {
10980
11004
  objects: string[];
10981
11005
  new_permission: string;
@@ -10993,1123 +11017,10 @@ export declare const CallObejctPermissionSchema: z.ZodObject<{
10993
11017
  }[];
10994
11018
  } | null | undefined;
10995
11019
  }>;
10996
- export declare const OperateSchemaDescription = "Operations on wowok protocol include two categories: \n\n### Local operations (do not require local account signatures) and management of:\n1. local private information (e.g., addresses, phone numbers); \n2. local names and tags for addresses.\n3. local accounts.\n\n### On-chain operations (require local account cryptographic signatures)\n1. Supported entities include: Demand, Repository, Machine, Service, Treasury, Arbitration, Personal, Guard, and Permission. Each entity has its own specific operation schema, allowing for granular control over various aspects of the protocol's functionality.\n2. Permission management (including replacement and transfer) for on-chain entity objects (Demand, Machine, Repository, Service, Arbitration, Treasury) by setting their `permission` attribute (which specifies the associated Permission object).";
10997
- export declare const OperateSchema: z.ZodObject<{
10998
- call: z.ZodUnion<[z.ZodObject<{
10999
- name: z.ZodLiteral<"permission">;
11000
- data: z.ZodObject<{
11001
- object: z.ZodUnion<[z.ZodString, z.ZodObject<{
11002
- name: z.ZodOptional<z.ZodString>;
11003
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11004
- useAddressIfNameExist: z.ZodOptional<z.ZodBoolean>;
11005
- onChain: z.ZodOptional<z.ZodBoolean>;
11006
- }, "strip", z.ZodTypeAny, {
11007
- tags?: string[] | undefined;
11008
- name?: string | undefined;
11009
- onChain?: boolean | undefined;
11010
- useAddressIfNameExist?: boolean | undefined;
11011
- }, {
11012
- tags?: string[] | undefined;
11013
- name?: string | undefined;
11014
- onChain?: boolean | undefined;
11015
- useAddressIfNameExist?: boolean | undefined;
11016
- }>]>;
11017
- description: z.ZodOptional<z.ZodString>;
11018
- biz_permission: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
11019
- op: z.ZodLiteral<"add">;
11020
- data: z.ZodArray<z.ZodObject<{
11021
- index: z.ZodEffects<z.ZodTypeAny, number, any>;
11022
- name: z.ZodString;
11023
- }, "strip", z.ZodTypeAny, {
11024
- name: string;
11025
- index: number;
11026
- }, {
11027
- name: string;
11028
- index?: any;
11029
- }>, "many">;
11030
- }, "strip", z.ZodTypeAny, {
11031
- data: {
11032
- name: string;
11033
- index: number;
11034
- }[];
11035
- op: "add";
11036
- }, {
11037
- data: {
11038
- name: string;
11039
- index?: any;
11040
- }[];
11041
- op: "add";
11042
- }>, z.ZodObject<{
11043
- op: z.ZodLiteral<"remove">;
11044
- permissions: z.ZodArray<z.ZodEffects<z.ZodTypeAny, number, any>, "many">;
11045
- }, "strip", z.ZodTypeAny, {
11046
- op: "remove";
11047
- permissions: number[];
11048
- }, {
11049
- op: "remove";
11050
- permissions: any[];
11051
- }>]>>;
11052
- permission: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
11053
- op: z.ZodLiteral<"add entity">;
11054
- entities: z.ZodArray<z.ZodObject<{
11055
- address: z.ZodUnion<[z.ZodObject<{
11056
- account_or_address: z.ZodOptional<z.ZodString>;
11057
- }, "strip", z.ZodTypeAny, {
11058
- account_or_address?: string | undefined;
11059
- }, {
11060
- account_or_address?: string | undefined;
11061
- }>, z.ZodObject<{
11062
- mark_or_address: z.ZodString;
11063
- }, "strip", z.ZodTypeAny, {
11064
- mark_or_address: string;
11065
- }, {
11066
- mark_or_address: string;
11067
- }>]>;
11068
- permissions: z.ZodArray<z.ZodObject<{
11069
- index: z.ZodEffects<z.ZodTypeAny, number, any>;
11070
- guard: z.ZodOptional<z.ZodString>;
11071
- }, "strip", z.ZodTypeAny, {
11072
- index: number;
11073
- guard?: string | undefined;
11074
- }, {
11075
- guard?: string | undefined;
11076
- index?: any;
11077
- }>, "many">;
11078
- }, "strip", z.ZodTypeAny, {
11079
- address: {
11080
- account_or_address?: string | undefined;
11081
- } | {
11082
- mark_or_address: string;
11083
- };
11084
- permissions: {
11085
- index: number;
11086
- guard?: string | undefined;
11087
- }[];
11088
- }, {
11089
- address: {
11090
- account_or_address?: string | undefined;
11091
- } | {
11092
- mark_or_address: string;
11093
- };
11094
- permissions: {
11095
- guard?: string | undefined;
11096
- index?: any;
11097
- }[];
11098
- }>, "many">;
11099
- }, "strip", z.ZodTypeAny, {
11100
- op: "add entity";
11101
- entities: {
11102
- address: {
11103
- account_or_address?: string | undefined;
11104
- } | {
11105
- mark_or_address: string;
11106
- };
11107
- permissions: {
11108
- index: number;
11109
- guard?: string | undefined;
11110
- }[];
11111
- }[];
11112
- }, {
11113
- op: "add entity";
11114
- entities: {
11115
- address: {
11116
- account_or_address?: string | undefined;
11117
- } | {
11118
- mark_or_address: string;
11119
- };
11120
- permissions: {
11121
- guard?: string | undefined;
11122
- index?: any;
11123
- }[];
11124
- }[];
11125
- }>, z.ZodObject<{
11126
- op: z.ZodLiteral<"add permission">;
11127
- permissions: z.ZodArray<z.ZodObject<{
11128
- index: z.ZodEffects<z.ZodTypeAny, number, any>;
11129
- entities: z.ZodArray<z.ZodObject<{
11130
- address: z.ZodUnion<[z.ZodObject<{
11131
- account_or_address: z.ZodOptional<z.ZodString>;
11132
- }, "strip", z.ZodTypeAny, {
11133
- account_or_address?: string | undefined;
11134
- }, {
11135
- account_or_address?: string | undefined;
11136
- }>, z.ZodObject<{
11137
- mark_or_address: z.ZodString;
11138
- }, "strip", z.ZodTypeAny, {
11139
- mark_or_address: string;
11140
- }, {
11141
- mark_or_address: string;
11142
- }>]>;
11143
- guard: z.ZodOptional<z.ZodString>;
11144
- }, "strip", z.ZodTypeAny, {
11145
- address: {
11146
- account_or_address?: string | undefined;
11147
- } | {
11148
- mark_or_address: string;
11149
- };
11150
- guard?: string | undefined;
11151
- }, {
11152
- address: {
11153
- account_or_address?: string | undefined;
11154
- } | {
11155
- mark_or_address: string;
11156
- };
11157
- guard?: string | undefined;
11158
- }>, "many">;
11159
- }, "strip", z.ZodTypeAny, {
11160
- index: number;
11161
- entities: {
11162
- address: {
11163
- account_or_address?: string | undefined;
11164
- } | {
11165
- mark_or_address: string;
11166
- };
11167
- guard?: string | undefined;
11168
- }[];
11169
- }, {
11170
- entities: {
11171
- address: {
11172
- account_or_address?: string | undefined;
11173
- } | {
11174
- mark_or_address: string;
11175
- };
11176
- guard?: string | undefined;
11177
- }[];
11178
- index?: any;
11179
- }>, "many">;
11180
- }, "strip", z.ZodTypeAny, {
11181
- op: "add permission";
11182
- permissions: {
11183
- index: number;
11184
- entities: {
11185
- address: {
11186
- account_or_address?: string | undefined;
11187
- } | {
11188
- mark_or_address: string;
11189
- };
11190
- guard?: string | undefined;
11191
- }[];
11192
- }[];
11193
- }, {
11194
- op: "add permission";
11195
- permissions: {
11196
- entities: {
11197
- address: {
11198
- account_or_address?: string | undefined;
11199
- } | {
11200
- mark_or_address: string;
11201
- };
11202
- guard?: string | undefined;
11203
- }[];
11204
- index?: any;
11205
- }[];
11206
- }>, z.ZodObject<{
11207
- op: z.ZodLiteral<"remove entity">;
11208
- addresses: z.ZodArray<z.ZodUnion<[z.ZodObject<{
11209
- account_or_address: z.ZodOptional<z.ZodString>;
11210
- }, "strip", z.ZodTypeAny, {
11211
- account_or_address?: string | undefined;
11212
- }, {
11213
- account_or_address?: string | undefined;
11214
- }>, z.ZodObject<{
11215
- mark_or_address: z.ZodString;
11216
- }, "strip", z.ZodTypeAny, {
11217
- mark_or_address: string;
11218
- }, {
11219
- mark_or_address: string;
11220
- }>]>, "many">;
11221
- }, "strip", z.ZodTypeAny, {
11222
- op: "remove entity";
11223
- addresses: ({
11224
- account_or_address?: string | undefined;
11225
- } | {
11226
- mark_or_address: string;
11227
- })[];
11228
- }, {
11229
- op: "remove entity";
11230
- addresses: ({
11231
- account_or_address?: string | undefined;
11232
- } | {
11233
- mark_or_address: string;
11234
- })[];
11235
- }>, z.ZodObject<{
11236
- op: z.ZodLiteral<"remove permission">;
11237
- address: z.ZodUnion<[z.ZodObject<{
11238
- account_or_address: z.ZodOptional<z.ZodString>;
11239
- }, "strip", z.ZodTypeAny, {
11240
- account_or_address?: string | undefined;
11241
- }, {
11242
- account_or_address?: string | undefined;
11243
- }>, z.ZodObject<{
11244
- mark_or_address: z.ZodString;
11245
- }, "strip", z.ZodTypeAny, {
11246
- mark_or_address: string;
11247
- }, {
11248
- mark_or_address: string;
11249
- }>]>;
11250
- index: z.ZodArray<z.ZodEffects<z.ZodTypeAny, number, any>, "many">;
11251
- }, "strip", z.ZodTypeAny, {
11252
- address: {
11253
- account_or_address?: string | undefined;
11254
- } | {
11255
- mark_or_address: string;
11256
- };
11257
- index: number[];
11258
- op: "remove permission";
11259
- }, {
11260
- address: {
11261
- account_or_address?: string | undefined;
11262
- } | {
11263
- mark_or_address: string;
11264
- };
11265
- index: any[];
11266
- op: "remove permission";
11267
- }>, z.ZodObject<{
11268
- op: z.ZodLiteral<"transfer permission">;
11269
- from: z.ZodUnion<[z.ZodObject<{
11270
- account_or_address: z.ZodOptional<z.ZodString>;
11271
- }, "strip", z.ZodTypeAny, {
11272
- account_or_address?: string | undefined;
11273
- }, {
11274
- account_or_address?: string | undefined;
11275
- }>, z.ZodObject<{
11276
- mark_or_address: z.ZodString;
11277
- }, "strip", z.ZodTypeAny, {
11278
- mark_or_address: string;
11279
- }, {
11280
- mark_or_address: string;
11281
- }>]>;
11282
- to: z.ZodUnion<[z.ZodObject<{
11283
- account_or_address: z.ZodOptional<z.ZodString>;
11284
- }, "strip", z.ZodTypeAny, {
11285
- account_or_address?: string | undefined;
11286
- }, {
11287
- account_or_address?: string | undefined;
11288
- }>, z.ZodObject<{
11289
- mark_or_address: z.ZodString;
11290
- }, "strip", z.ZodTypeAny, {
11291
- mark_or_address: string;
11292
- }, {
11293
- mark_or_address: string;
11294
- }>]>;
11295
- }, "strip", z.ZodTypeAny, {
11296
- from: {
11297
- account_or_address?: string | undefined;
11298
- } | {
11299
- mark_or_address: string;
11300
- };
11301
- to: {
11302
- account_or_address?: string | undefined;
11303
- } | {
11304
- mark_or_address: string;
11305
- };
11306
- op: "transfer permission";
11307
- }, {
11308
- from: {
11309
- account_or_address?: string | undefined;
11310
- } | {
11311
- mark_or_address: string;
11312
- };
11313
- to: {
11314
- account_or_address?: string | undefined;
11315
- } | {
11316
- mark_or_address: string;
11317
- };
11318
- op: "transfer permission";
11319
- }>]>>;
11320
- admin: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
11321
- op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"remove">, z.ZodLiteral<"set">]>;
11322
- addresses: z.ZodArray<z.ZodUnion<[z.ZodObject<{
11323
- account_or_address: z.ZodOptional<z.ZodString>;
11324
- }, "strip", z.ZodTypeAny, {
11325
- account_or_address?: string | undefined;
11326
- }, {
11327
- account_or_address?: string | undefined;
11328
- }>, z.ZodObject<{
11329
- mark_or_address: z.ZodString;
11330
- }, "strip", z.ZodTypeAny, {
11331
- mark_or_address: string;
11332
- }, {
11333
- mark_or_address: string;
11334
- }>]>, "many">;
11335
- }, "strip", z.ZodTypeAny, {
11336
- op: "set" | "add" | "remove";
11337
- addresses: ({
11338
- account_or_address?: string | undefined;
11339
- } | {
11340
- mark_or_address: string;
11341
- })[];
11342
- }, {
11343
- op: "set" | "add" | "remove";
11344
- addresses: ({
11345
- account_or_address?: string | undefined;
11346
- } | {
11347
- mark_or_address: string;
11348
- })[];
11349
- }>, z.ZodObject<{
11350
- op: z.ZodLiteral<"removeall">;
11351
- }, "strip", z.ZodTypeAny, {
11352
- op: "removeall";
11353
- }, {
11354
- op: "removeall";
11355
- }>]>>;
11356
- builder: z.ZodUnion<[z.ZodObject<{
11357
- account_or_address: z.ZodOptional<z.ZodString>;
11358
- }, "strip", z.ZodTypeAny, {
11359
- account_or_address?: string | undefined;
11360
- }, {
11361
- account_or_address?: string | undefined;
11362
- }>, z.ZodObject<{
11363
- mark_or_address: z.ZodString;
11364
- }, "strip", z.ZodTypeAny, {
11365
- mark_or_address: string;
11366
- }, {
11367
- mark_or_address: string;
11368
- }>]>;
11369
- }, "strip", z.ZodTypeAny, {
11370
- object: string | {
11371
- tags?: string[] | undefined;
11372
- name?: string | undefined;
11373
- onChain?: boolean | undefined;
11374
- useAddressIfNameExist?: boolean | undefined;
11375
- };
11376
- builder: {
11377
- account_or_address?: string | undefined;
11378
- } | {
11379
- mark_or_address: string;
11380
- };
11381
- admin?: {
11382
- op: "set" | "add" | "remove";
11383
- addresses: ({
11384
- account_or_address?: string | undefined;
11385
- } | {
11386
- mark_or_address: string;
11387
- })[];
11388
- } | {
11389
- op: "removeall";
11390
- } | undefined;
11391
- description?: string | undefined;
11392
- permission?: {
11393
- op: "add entity";
11394
- entities: {
11395
- address: {
11396
- account_or_address?: string | undefined;
11397
- } | {
11398
- mark_or_address: string;
11399
- };
11400
- permissions: {
11401
- index: number;
11402
- guard?: string | undefined;
11403
- }[];
11404
- }[];
11405
- } | {
11406
- op: "add permission";
11407
- permissions: {
11408
- index: number;
11409
- entities: {
11410
- address: {
11411
- account_or_address?: string | undefined;
11412
- } | {
11413
- mark_or_address: string;
11414
- };
11415
- guard?: string | undefined;
11416
- }[];
11417
- }[];
11418
- } | {
11419
- op: "remove entity";
11420
- addresses: ({
11421
- account_or_address?: string | undefined;
11422
- } | {
11423
- mark_or_address: string;
11424
- })[];
11425
- } | {
11426
- address: {
11427
- account_or_address?: string | undefined;
11428
- } | {
11429
- mark_or_address: string;
11430
- };
11431
- index: number[];
11432
- op: "remove permission";
11433
- } | {
11434
- from: {
11435
- account_or_address?: string | undefined;
11436
- } | {
11437
- mark_or_address: string;
11438
- };
11439
- to: {
11440
- account_or_address?: string | undefined;
11441
- } | {
11442
- mark_or_address: string;
11443
- };
11444
- op: "transfer permission";
11445
- } | undefined;
11446
- biz_permission?: {
11447
- data: {
11448
- name: string;
11449
- index: number;
11450
- }[];
11451
- op: "add";
11452
- } | {
11453
- op: "remove";
11454
- permissions: number[];
11455
- } | undefined;
11456
- }, {
11457
- object: string | {
11458
- tags?: string[] | undefined;
11459
- name?: string | undefined;
11460
- onChain?: boolean | undefined;
11461
- useAddressIfNameExist?: boolean | undefined;
11462
- };
11463
- builder: {
11464
- account_or_address?: string | undefined;
11465
- } | {
11466
- mark_or_address: string;
11467
- };
11468
- admin?: {
11469
- op: "set" | "add" | "remove";
11470
- addresses: ({
11471
- account_or_address?: string | undefined;
11472
- } | {
11473
- mark_or_address: string;
11474
- })[];
11475
- } | {
11476
- op: "removeall";
11477
- } | undefined;
11478
- description?: string | undefined;
11479
- permission?: {
11480
- op: "add entity";
11481
- entities: {
11482
- address: {
11483
- account_or_address?: string | undefined;
11484
- } | {
11485
- mark_or_address: string;
11486
- };
11487
- permissions: {
11488
- guard?: string | undefined;
11489
- index?: any;
11490
- }[];
11491
- }[];
11492
- } | {
11493
- op: "add permission";
11494
- permissions: {
11495
- entities: {
11496
- address: {
11497
- account_or_address?: string | undefined;
11498
- } | {
11499
- mark_or_address: string;
11500
- };
11501
- guard?: string | undefined;
11502
- }[];
11503
- index?: any;
11504
- }[];
11505
- } | {
11506
- op: "remove entity";
11507
- addresses: ({
11508
- account_or_address?: string | undefined;
11509
- } | {
11510
- mark_or_address: string;
11511
- })[];
11512
- } | {
11513
- address: {
11514
- account_or_address?: string | undefined;
11515
- } | {
11516
- mark_or_address: string;
11517
- };
11518
- index: any[];
11519
- op: "remove permission";
11520
- } | {
11521
- from: {
11522
- account_or_address?: string | undefined;
11523
- } | {
11524
- mark_or_address: string;
11525
- };
11526
- to: {
11527
- account_or_address?: string | undefined;
11528
- } | {
11529
- mark_or_address: string;
11530
- };
11531
- op: "transfer permission";
11532
- } | undefined;
11533
- biz_permission?: {
11534
- data: {
11535
- name: string;
11536
- index?: any;
11537
- }[];
11538
- op: "add";
11539
- } | {
11540
- op: "remove";
11541
- permissions: any[];
11542
- } | undefined;
11543
- }>;
11544
- account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11545
- witness: z.ZodNullable<z.ZodOptional<z.ZodObject<{
11546
- guards: z.ZodArray<z.ZodString, "many">;
11547
- witness: z.ZodArray<z.ZodObject<{
11548
- guard: z.ZodString;
11549
- witness: z.ZodAny;
11550
- cmd: z.ZodArray<z.ZodNumber, "many">;
11551
- cited: z.ZodNumber;
11552
- type: z.ZodNativeEnum<typeof WOWOK.ValueType>;
11553
- identifier: z.ZodNumber;
11554
- }, "strip", z.ZodTypeAny, {
11555
- type: WOWOK.ValueType;
11556
- guard: string;
11557
- identifier: number;
11558
- cmd: number[];
11559
- cited: number;
11560
- witness?: any;
11561
- }, {
11562
- type: WOWOK.ValueType;
11563
- guard: string;
11564
- identifier: number;
11565
- cmd: number[];
11566
- cited: number;
11567
- witness?: any;
11568
- }>, "many">;
11569
- }, "strip", z.ZodTypeAny, {
11570
- guards: string[];
11571
- witness: {
11572
- type: WOWOK.ValueType;
11573
- guard: string;
11574
- identifier: number;
11575
- cmd: number[];
11576
- cited: number;
11577
- witness?: any;
11578
- }[];
11579
- }, {
11580
- guards: string[];
11581
- witness: {
11582
- type: WOWOK.ValueType;
11583
- guard: string;
11584
- identifier: number;
11585
- cmd: number[];
11586
- cited: number;
11587
- witness?: any;
11588
- }[];
11589
- }>>>;
11590
- }, "strip", z.ZodTypeAny, {
11591
- name: "permission";
11592
- data: {
11593
- object: string | {
11594
- tags?: string[] | undefined;
11595
- name?: string | undefined;
11596
- onChain?: boolean | undefined;
11597
- useAddressIfNameExist?: boolean | undefined;
11598
- };
11599
- builder: {
11600
- account_or_address?: string | undefined;
11601
- } | {
11602
- mark_or_address: string;
11603
- };
11604
- admin?: {
11605
- op: "set" | "add" | "remove";
11606
- addresses: ({
11607
- account_or_address?: string | undefined;
11608
- } | {
11609
- mark_or_address: string;
11610
- })[];
11611
- } | {
11612
- op: "removeall";
11613
- } | undefined;
11614
- description?: string | undefined;
11615
- permission?: {
11616
- op: "add entity";
11617
- entities: {
11618
- address: {
11619
- account_or_address?: string | undefined;
11620
- } | {
11621
- mark_or_address: string;
11622
- };
11623
- permissions: {
11624
- index: number;
11625
- guard?: string | undefined;
11626
- }[];
11627
- }[];
11628
- } | {
11629
- op: "add permission";
11630
- permissions: {
11631
- index: number;
11632
- entities: {
11633
- address: {
11634
- account_or_address?: string | undefined;
11635
- } | {
11636
- mark_or_address: string;
11637
- };
11638
- guard?: string | undefined;
11639
- }[];
11640
- }[];
11641
- } | {
11642
- op: "remove entity";
11643
- addresses: ({
11644
- account_or_address?: string | undefined;
11645
- } | {
11646
- mark_or_address: string;
11647
- })[];
11648
- } | {
11649
- address: {
11650
- account_or_address?: string | undefined;
11651
- } | {
11652
- mark_or_address: string;
11653
- };
11654
- index: number[];
11655
- op: "remove permission";
11656
- } | {
11657
- from: {
11658
- account_or_address?: string | undefined;
11659
- } | {
11660
- mark_or_address: string;
11661
- };
11662
- to: {
11663
- account_or_address?: string | undefined;
11664
- } | {
11665
- mark_or_address: string;
11666
- };
11667
- op: "transfer permission";
11668
- } | undefined;
11669
- biz_permission?: {
11670
- data: {
11671
- name: string;
11672
- index: number;
11673
- }[];
11674
- op: "add";
11675
- } | {
11676
- op: "remove";
11677
- permissions: number[];
11678
- } | undefined;
11679
- };
11680
- account?: string | null | undefined;
11681
- witness?: {
11682
- guards: string[];
11683
- witness: {
11684
- type: WOWOK.ValueType;
11685
- guard: string;
11686
- identifier: number;
11687
- cmd: number[];
11688
- cited: number;
11689
- witness?: any;
11690
- }[];
11691
- } | null | undefined;
11692
- }, {
11693
- name: "permission";
11694
- data: {
11695
- object: string | {
11696
- tags?: string[] | undefined;
11697
- name?: string | undefined;
11698
- onChain?: boolean | undefined;
11699
- useAddressIfNameExist?: boolean | undefined;
11700
- };
11701
- builder: {
11702
- account_or_address?: string | undefined;
11703
- } | {
11704
- mark_or_address: string;
11705
- };
11706
- admin?: {
11707
- op: "set" | "add" | "remove";
11708
- addresses: ({
11709
- account_or_address?: string | undefined;
11710
- } | {
11711
- mark_or_address: string;
11712
- })[];
11713
- } | {
11714
- op: "removeall";
11715
- } | undefined;
11716
- description?: string | undefined;
11717
- permission?: {
11718
- op: "add entity";
11719
- entities: {
11720
- address: {
11721
- account_or_address?: string | undefined;
11722
- } | {
11723
- mark_or_address: string;
11724
- };
11725
- permissions: {
11726
- guard?: string | undefined;
11727
- index?: any;
11728
- }[];
11729
- }[];
11730
- } | {
11731
- op: "add permission";
11732
- permissions: {
11733
- entities: {
11734
- address: {
11735
- account_or_address?: string | undefined;
11736
- } | {
11737
- mark_or_address: string;
11738
- };
11739
- guard?: string | undefined;
11740
- }[];
11741
- index?: any;
11742
- }[];
11743
- } | {
11744
- op: "remove entity";
11745
- addresses: ({
11746
- account_or_address?: string | undefined;
11747
- } | {
11748
- mark_or_address: string;
11749
- })[];
11750
- } | {
11751
- address: {
11752
- account_or_address?: string | undefined;
11753
- } | {
11754
- mark_or_address: string;
11755
- };
11756
- index: any[];
11757
- op: "remove permission";
11758
- } | {
11759
- from: {
11760
- account_or_address?: string | undefined;
11761
- } | {
11762
- mark_or_address: string;
11763
- };
11764
- to: {
11765
- account_or_address?: string | undefined;
11766
- } | {
11767
- mark_or_address: string;
11768
- };
11769
- op: "transfer permission";
11770
- } | undefined;
11771
- biz_permission?: {
11772
- data: {
11773
- name: string;
11774
- index?: any;
11775
- }[];
11776
- op: "add";
11777
- } | {
11778
- op: "remove";
11779
- permissions: any[];
11780
- } | undefined;
11781
- };
11782
- account?: string | null | undefined;
11783
- witness?: {
11784
- guards: string[];
11785
- witness: {
11786
- type: WOWOK.ValueType;
11787
- guard: string;
11788
- identifier: number;
11789
- cmd: number[];
11790
- cited: number;
11791
- witness?: any;
11792
- }[];
11793
- } | null | undefined;
11794
- }>, z.ZodObject<{
11795
- data: z.ZodUnion<[z.ZodObject<{
11796
- op: z.ZodLiteral<"removeall">;
11797
- }, "strip", z.ZodTypeAny, {
11798
- op: "removeall";
11799
- }, {
11800
- op: "removeall";
11801
- }>, z.ZodObject<{
11802
- op: z.ZodLiteral<"add">;
11803
- data: z.ZodArray<z.ZodObject<{
11804
- name: z.ZodString;
11805
- address: z.ZodString;
11806
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11807
- useAddressIfNameExist: z.ZodOptional<z.ZodBoolean>;
11808
- }, "strip", z.ZodTypeAny, {
11809
- name: string;
11810
- address: string;
11811
- tags?: string[] | undefined;
11812
- useAddressIfNameExist?: boolean | undefined;
11813
- }, {
11814
- name: string;
11815
- address: string;
11816
- tags?: string[] | undefined;
11817
- useAddressIfNameExist?: boolean | undefined;
11818
- }>, "many">;
11819
- }, "strip", z.ZodTypeAny, {
11820
- data: {
11821
- name: string;
11822
- address: string;
11823
- tags?: string[] | undefined;
11824
- useAddressIfNameExist?: boolean | undefined;
11825
- }[];
11826
- op: "add";
11827
- }, {
11828
- data: {
11829
- name: string;
11830
- address: string;
11831
- tags?: string[] | undefined;
11832
- useAddressIfNameExist?: boolean | undefined;
11833
- }[];
11834
- op: "add";
11835
- }>, z.ZodObject<{
11836
- op: z.ZodLiteral<"remove">;
11837
- data: z.ZodArray<z.ZodString, "many">;
11838
- }, "strip", z.ZodTypeAny, {
11839
- data: string[];
11840
- op: "remove";
11841
- }, {
11842
- data: string[];
11843
- op: "remove";
11844
- }>]>;
11845
- }, "strip", z.ZodTypeAny, {
11846
- data: {
11847
- op: "removeall";
11848
- } | {
11849
- data: {
11850
- name: string;
11851
- address: string;
11852
- tags?: string[] | undefined;
11853
- useAddressIfNameExist?: boolean | undefined;
11854
- }[];
11855
- op: "add";
11856
- } | {
11857
- data: string[];
11858
- op: "remove";
11859
- };
11860
- }, {
11861
- data: {
11862
- op: "removeall";
11863
- } | {
11864
- data: {
11865
- name: string;
11866
- address: string;
11867
- tags?: string[] | undefined;
11868
- useAddressIfNameExist?: boolean | undefined;
11869
- }[];
11870
- op: "add";
11871
- } | {
11872
- data: string[];
11873
- op: "remove";
11874
- };
11875
- }>]>;
11876
- }, "strip", z.ZodTypeAny, {
11877
- call: {
11878
- data: {
11879
- op: "removeall";
11880
- } | {
11881
- data: {
11882
- name: string;
11883
- address: string;
11884
- tags?: string[] | undefined;
11885
- useAddressIfNameExist?: boolean | undefined;
11886
- }[];
11887
- op: "add";
11888
- } | {
11889
- data: string[];
11890
- op: "remove";
11891
- };
11892
- } | {
11893
- name: "permission";
11894
- data: {
11895
- object: string | {
11896
- tags?: string[] | undefined;
11897
- name?: string | undefined;
11898
- onChain?: boolean | undefined;
11899
- useAddressIfNameExist?: boolean | undefined;
11900
- };
11901
- builder: {
11902
- account_or_address?: string | undefined;
11903
- } | {
11904
- mark_or_address: string;
11905
- };
11906
- admin?: {
11907
- op: "set" | "add" | "remove";
11908
- addresses: ({
11909
- account_or_address?: string | undefined;
11910
- } | {
11911
- mark_or_address: string;
11912
- })[];
11913
- } | {
11914
- op: "removeall";
11915
- } | undefined;
11916
- description?: string | undefined;
11917
- permission?: {
11918
- op: "add entity";
11919
- entities: {
11920
- address: {
11921
- account_or_address?: string | undefined;
11922
- } | {
11923
- mark_or_address: string;
11924
- };
11925
- permissions: {
11926
- index: number;
11927
- guard?: string | undefined;
11928
- }[];
11929
- }[];
11930
- } | {
11931
- op: "add permission";
11932
- permissions: {
11933
- index: number;
11934
- entities: {
11935
- address: {
11936
- account_or_address?: string | undefined;
11937
- } | {
11938
- mark_or_address: string;
11939
- };
11940
- guard?: string | undefined;
11941
- }[];
11942
- }[];
11943
- } | {
11944
- op: "remove entity";
11945
- addresses: ({
11946
- account_or_address?: string | undefined;
11947
- } | {
11948
- mark_or_address: string;
11949
- })[];
11950
- } | {
11951
- address: {
11952
- account_or_address?: string | undefined;
11953
- } | {
11954
- mark_or_address: string;
11955
- };
11956
- index: number[];
11957
- op: "remove permission";
11958
- } | {
11959
- from: {
11960
- account_or_address?: string | undefined;
11961
- } | {
11962
- mark_or_address: string;
11963
- };
11964
- to: {
11965
- account_or_address?: string | undefined;
11966
- } | {
11967
- mark_or_address: string;
11968
- };
11969
- op: "transfer permission";
11970
- } | undefined;
11971
- biz_permission?: {
11972
- data: {
11973
- name: string;
11974
- index: number;
11975
- }[];
11976
- op: "add";
11977
- } | {
11978
- op: "remove";
11979
- permissions: number[];
11980
- } | undefined;
11981
- };
11982
- account?: string | null | undefined;
11983
- witness?: {
11984
- guards: string[];
11985
- witness: {
11986
- type: WOWOK.ValueType;
11987
- guard: string;
11988
- identifier: number;
11989
- cmd: number[];
11990
- cited: number;
11991
- witness?: any;
11992
- }[];
11993
- } | null | undefined;
11994
- };
11995
- }, {
11996
- call: {
11997
- data: {
11998
- op: "removeall";
11999
- } | {
12000
- data: {
12001
- name: string;
12002
- address: string;
12003
- tags?: string[] | undefined;
12004
- useAddressIfNameExist?: boolean | undefined;
12005
- }[];
12006
- op: "add";
12007
- } | {
12008
- data: string[];
12009
- op: "remove";
12010
- };
12011
- } | {
12012
- name: "permission";
12013
- data: {
12014
- object: string | {
12015
- tags?: string[] | undefined;
12016
- name?: string | undefined;
12017
- onChain?: boolean | undefined;
12018
- useAddressIfNameExist?: boolean | undefined;
12019
- };
12020
- builder: {
12021
- account_or_address?: string | undefined;
12022
- } | {
12023
- mark_or_address: string;
12024
- };
12025
- admin?: {
12026
- op: "set" | "add" | "remove";
12027
- addresses: ({
12028
- account_or_address?: string | undefined;
12029
- } | {
12030
- mark_or_address: string;
12031
- })[];
12032
- } | {
12033
- op: "removeall";
12034
- } | undefined;
12035
- description?: string | undefined;
12036
- permission?: {
12037
- op: "add entity";
12038
- entities: {
12039
- address: {
12040
- account_or_address?: string | undefined;
12041
- } | {
12042
- mark_or_address: string;
12043
- };
12044
- permissions: {
12045
- guard?: string | undefined;
12046
- index?: any;
12047
- }[];
12048
- }[];
12049
- } | {
12050
- op: "add permission";
12051
- permissions: {
12052
- entities: {
12053
- address: {
12054
- account_or_address?: string | undefined;
12055
- } | {
12056
- mark_or_address: string;
12057
- };
12058
- guard?: string | undefined;
12059
- }[];
12060
- index?: any;
12061
- }[];
12062
- } | {
12063
- op: "remove entity";
12064
- addresses: ({
12065
- account_or_address?: string | undefined;
12066
- } | {
12067
- mark_or_address: string;
12068
- })[];
12069
- } | {
12070
- address: {
12071
- account_or_address?: string | undefined;
12072
- } | {
12073
- mark_or_address: string;
12074
- };
12075
- index: any[];
12076
- op: "remove permission";
12077
- } | {
12078
- from: {
12079
- account_or_address?: string | undefined;
12080
- } | {
12081
- mark_or_address: string;
12082
- };
12083
- to: {
12084
- account_or_address?: string | undefined;
12085
- } | {
12086
- mark_or_address: string;
12087
- };
12088
- op: "transfer permission";
12089
- } | undefined;
12090
- biz_permission?: {
12091
- data: {
12092
- name: string;
12093
- index?: any;
12094
- }[];
12095
- op: "add";
12096
- } | {
12097
- op: "remove";
12098
- permissions: any[];
12099
- } | undefined;
12100
- };
12101
- account?: string | null | undefined;
12102
- witness?: {
12103
- guards: string[];
12104
- witness: {
12105
- type: WOWOK.ValueType;
12106
- guard: string;
12107
- identifier: number;
12108
- cmd: number[];
12109
- cited: number;
12110
- witness?: any;
12111
- }[];
12112
- } | null | undefined;
12113
- };
12114
- }>;
11020
+ export declare const CallObejctPermissionSchemaInput: () => import("zod-to-json-schema").JsonSchema7Type & {
11021
+ $schema?: string | undefined;
11022
+ definitions?: {
11023
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
11024
+ } | undefined;
11025
+ };
12115
11026
  //# sourceMappingURL=call.d.ts.map