@ottochain/sdk 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/apps/contracts/state-machines/contract.json +1 -29
- package/dist/cjs/apps/contracts/state-machines/escrow.json +2 -32
- package/dist/cjs/generated/index.js +11 -1
- package/dist/cjs/metakit/drop-nulls.js +50 -0
- package/dist/cjs/metakit/normalize.js +147 -0
- package/dist/cjs/ottochain/metagraph-client.js +147 -0
- package/dist/cjs/validation.js +1 -1
- package/dist/esm/apps/contracts/state-machines/contract.json +1 -29
- package/dist/esm/apps/contracts/state-machines/escrow.json +2 -32
- package/dist/esm/generated/index.js +11 -1
- package/dist/esm/metakit/drop-nulls.js +46 -0
- package/dist/esm/metakit/normalize.js +140 -0
- package/dist/esm/ottochain/metagraph-client.js +147 -0
- package/dist/esm/validation.js +1 -1
- package/dist/types/generated/index.d.ts +11 -1
- package/dist/types/metakit/drop-nulls.d.ts +29 -0
- package/dist/types/metakit/normalize.d.ts +67 -0
- package/dist/types/ottochain/index.d.ts +1 -1
- package/dist/types/ottochain/metagraph-client.d.ts +90 -0
- package/package.json +12 -12
- package/dist/apps/contracts/index.d.ts +0 -21
- package/dist/apps/contracts/index.js +0 -39
- package/dist/apps/contracts/types.d.ts +0 -24
- package/dist/apps/contracts/types.js +0 -48
- package/dist/apps/identity/index.d.ts +0 -22
- package/dist/apps/identity/index.js +0 -40
- package/dist/apps/identity/types.d.ts +0 -30
- package/dist/apps/identity/types.js +0 -53
- package/dist/apps/index.d.ts +0 -29
- package/dist/apps/index.js +0 -60
- package/dist/apps/markets/index.d.ts +0 -26
- package/dist/apps/markets/index.js +0 -46
- package/dist/apps/markets/types.d.ts +0 -185
- package/dist/apps/markets/types.js +0 -252
- package/dist/apps/oracles/index.d.ts +0 -26
- package/dist/apps/oracles/index.js +0 -46
- package/dist/apps/oracles/types.d.ts +0 -211
- package/dist/apps/oracles/types.js +0 -306
- package/dist/cjs/apps/contracts/types.js +0 -48
- package/dist/cjs/apps/corporate/types.js +0 -44
- package/dist/cjs/apps/governance/types.js +0 -42
- package/dist/cjs/apps/identity/types.js +0 -53
- package/dist/cjs/apps/markets/types.js +0 -219
- package/dist/cjs/apps/oracles/types.js +0 -282
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -100
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate_pb.js +0 -392
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance_pb.js +0 -235
- package/dist/cjs/generated/ottochain/apps/identity/v1/agent_pb.js +0 -116
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -79
- package/dist/cjs/generated/ottochain/apps/markets/v1/market_pb.js +0 -151
- package/dist/cjs/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -109
- package/dist/cjs/generated/ottochain/v1/common_pb.js +0 -37
- package/dist/cjs/generated/ottochain/v1/fiber_pb.js +0 -86
- package/dist/cjs/generated/ottochain/v1/messages_pb.js +0 -44
- package/dist/cjs/generated/ottochain/v1/records_pb.js +0 -44
- package/dist/errors.d.ts +0 -221
- package/dist/errors.js +0 -293
- package/dist/esm/apps/contracts/types.js +0 -44
- package/dist/esm/apps/corporate/types.js +0 -38
- package/dist/esm/apps/governance/types.js +0 -35
- package/dist/esm/apps/identity/types.js +0 -50
- package/dist/esm/apps/markets/types.js +0 -206
- package/dist/esm/apps/oracles/types.js +0 -267
- package/dist/esm/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -97
- package/dist/esm/generated/ottochain/apps/corporate/v1/corporate_pb.js +0 -389
- package/dist/esm/generated/ottochain/apps/governance/v1/governance_pb.js +0 -232
- package/dist/esm/generated/ottochain/apps/identity/v1/agent_pb.js +0 -113
- package/dist/esm/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -76
- package/dist/esm/generated/ottochain/apps/markets/v1/market_pb.js +0 -148
- package/dist/esm/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -106
- package/dist/esm/generated/ottochain/v1/common_pb.js +0 -34
- package/dist/esm/generated/ottochain/v1/fiber_pb.js +0 -83
- package/dist/esm/generated/ottochain/v1/messages_pb.js +0 -41
- package/dist/esm/generated/ottochain/v1/records_pb.js +0 -41
- package/dist/generated/index.d.ts +0 -15
- package/dist/generated/index.js +0 -34
- package/dist/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +0 -274
- package/dist/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -100
- package/dist/generated/ottochain/apps/identity/v1/agent_pb.d.ts +0 -211
- package/dist/generated/ottochain/apps/identity/v1/agent_pb.js +0 -116
- package/dist/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +0 -238
- package/dist/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -79
- package/dist/generated/ottochain/apps/markets/v1/market_pb.d.ts +0 -436
- package/dist/generated/ottochain/apps/markets/v1/market_pb.js +0 -151
- package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +0 -393
- package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -109
- package/dist/generated/ottochain/v1/common_pb.d.ts +0 -86
- package/dist/generated/ottochain/v1/common_pb.js +0 -37
- package/dist/generated/ottochain/v1/fiber_pb.d.ts +0 -292
- package/dist/generated/ottochain/v1/fiber_pb.js +0 -86
- package/dist/generated/ottochain/v1/messages_pb.d.ts +0 -190
- package/dist/generated/ottochain/v1/messages_pb.js +0 -44
- package/dist/generated/ottochain/v1/records_pb.d.ts +0 -221
- package/dist/generated/ottochain/v1/records_pb.js +0 -44
- package/dist/index.d.ts +0 -21
- package/dist/index.js +0 -77
- package/dist/metakit/binary.d.ts +0 -38
- package/dist/metakit/binary.js +0 -58
- package/dist/metakit/canonicalize.d.ts +0 -26
- package/dist/metakit/canonicalize.js +0 -40
- package/dist/metakit/codec.d.ts +0 -16
- package/dist/metakit/codec.js +0 -45
- package/dist/metakit/currency-transaction.d.ts +0 -157
- package/dist/metakit/currency-transaction.js +0 -319
- package/dist/metakit/currency-types.d.ts +0 -55
- package/dist/metakit/currency-types.js +0 -13
- package/dist/metakit/hash.d.ts +0 -50
- package/dist/metakit/hash.js +0 -84
- package/dist/metakit/index.d.ts +0 -23
- package/dist/metakit/index.js +0 -74
- package/dist/metakit/network/client.d.ts +0 -23
- package/dist/metakit/network/client.js +0 -78
- package/dist/metakit/network/currency-l1-client.d.ts +0 -71
- package/dist/metakit/network/currency-l1-client.js +0 -101
- package/dist/metakit/network/data-l1-client.d.ts +0 -57
- package/dist/metakit/network/data-l1-client.js +0 -76
- package/dist/metakit/network/index.d.ts +0 -10
- package/dist/metakit/network/index.js +0 -16
- package/dist/metakit/network/types.d.ts +0 -74
- package/dist/metakit/network/types.js +0 -20
- package/dist/metakit/sign.d.ts +0 -65
- package/dist/metakit/sign.js +0 -120
- package/dist/metakit/signed-object.d.ts +0 -66
- package/dist/metakit/signed-object.js +0 -100
- package/dist/metakit/types.d.ts +0 -67
- package/dist/metakit/types.js +0 -14
- package/dist/metakit/verify.d.ts +0 -55
- package/dist/metakit/verify.js +0 -217
- package/dist/metakit/wallet.d.ts +0 -70
- package/dist/metakit/wallet.js +0 -127
- package/dist/ottochain/index.d.ts +0 -13
- package/dist/ottochain/index.js +0 -45
- package/dist/ottochain/metagraph-client.d.ts +0 -111
- package/dist/ottochain/metagraph-client.js +0 -157
- package/dist/ottochain/snapshot.d.ts +0 -86
- package/dist/ottochain/snapshot.js +0 -110
- package/dist/ottochain/types.d.ts +0 -278
- package/dist/ottochain/types.js +0 -11
- package/dist/types/apps/contracts/types.d.ts +0 -24
- package/dist/types/apps/corporate/types.d.ts +0 -9861
- package/dist/types/apps/governance/types.d.ts +0 -344
- package/dist/types/apps/identity/types.d.ts +0 -30
- package/dist/types/apps/markets/types.d.ts +0 -155
- package/dist/types/apps/oracles/types.d.ts +0 -193
- package/dist/types/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +0 -274
- package/dist/types/generated/ottochain/apps/corporate/v1/corporate_pb.d.ts +0 -1172
- package/dist/types/generated/ottochain/apps/governance/v1/governance_pb.d.ts +0 -772
- package/dist/types/generated/ottochain/apps/identity/v1/agent_pb.d.ts +0 -211
- package/dist/types/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +0 -238
- package/dist/types/generated/ottochain/apps/markets/v1/market_pb.d.ts +0 -436
- package/dist/types/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +0 -393
- package/dist/types/generated/ottochain/v1/common_pb.d.ts +0 -86
- package/dist/types/generated/ottochain/v1/fiber_pb.d.ts +0 -292
- package/dist/types/generated/ottochain/v1/messages_pb.d.ts +0 -190
- package/dist/types/generated/ottochain/v1/records_pb.d.ts +0 -221
- package/dist/validation.d.ts +0 -449
- package/dist/validation.js +0 -312
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.2.0 with parameter "target=ts,import_extension=.js"
|
|
2
|
-
// @generated from file ottochain/v1/records.proto (package ottochain.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
-
import { file_ottochain_v1_common } from "./common_pb.js";
|
|
6
|
-
import { file_ottochain_v1_fiber } from "./fiber_pb.js";
|
|
7
|
-
import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
8
|
-
/**
|
|
9
|
-
* Describes the file ottochain/v1/records.proto.
|
|
10
|
-
*/
|
|
11
|
-
export const file_ottochain_v1_records = /*@__PURE__*/ fileDesc("ChpvdHRvY2hhaW4vdjEvcmVjb3Jkcy5wcm90bxIMb3R0b2NoYWluLnYxIsIFChdTdGF0ZU1hY2hpbmVGaWJlclJlY29yZBIQCghmaWJlcl9pZBgBIAEoCRI3ChBjcmVhdGlvbl9vcmRpbmFsGAIgASgLMh0ub3R0b2NoYWluLnYxLlNuYXBzaG90T3JkaW5hbBI+ChdwcmV2aW91c191cGRhdGVfb3JkaW5hbBgDIAEoCzIdLm90dG9jaGFpbi52M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nRyeRILCgNrZXkYASABKAkSLgoFdmFsdWUYAiABKAsyHy5vdHRvY2hhaW4udjEuRmliZXJMb2dFbnRyeUxpc3Q6AjgBIkEKEUZpYmVyTG9nRW50cnlMaXN0EiwKB2VudHJpZXMYASADKAsyGy5vdHRvY2hhaW4udjEuRmliZXJMb2dFbnRyeSLGAgoPQ2FsY3VsYXRlZFN0YXRlEkgKDnN0YXRlX21hY2hpbmVzGAEgAygLMjAub3R0b2NoYWluLnYxLkNhbGN1bGF0ZWRTdGF0ZS5TdGF0ZU1hY2hpbmVzRW50cnkSOwoHc2NyaXB0cxgCIAMoCzIqLm90dG9jaGFpbi52MS5DYWxjdWxhdGVkU3RhdGUuU2NyaXB0c0VudHJ5GlsKElN0YXRlTWFjaGluZXNFbnRyeRILCgNrZXkYASABKAkSNAoFdmFsdWUYAiABKAsyJS5vdHRvY2hhaW4udjEuU3RhdGVNYWNoaW5lRmliZXJSZWNvcmQ6AjgBGk8KDFNjcmlwdHNFbnRyeRILCgNrZXkYASABKAkSLgoFdmFsdWUYAiABKAsyHy5vdHRvY2hhaW4udjEuU2NyaXB0RmliZXJSZWNvcmQ6AjgBQnEKEGNvbS5vdHRvY2hhaW4udjFCDFJlY29yZHNQcm90b1ABogIDT1hYqgIMT3R0b2NoYWluLlYxygIMT3R0b2NoYWluXFYx4gIYT3R0b2NoYWluXFYxXEdQQk1ldGFkYXRh6gINT3R0b2NoYWluOjpWMWIGcHJvdG8z", [file_ottochain_v1_common, file_ottochain_v1_fiber, file_google_protobuf_struct]);
|
|
12
|
-
/**
|
|
13
|
-
* Describes the message ottochain.v1.StateMachineFiberRecord.
|
|
14
|
-
* Use `create(StateMachineFiberRecordSchema)` to create a new message.
|
|
15
|
-
*/
|
|
16
|
-
export const StateMachineFiberRecordSchema = /*@__PURE__*/ messageDesc(file_ottochain_v1_records, 0);
|
|
17
|
-
/**
|
|
18
|
-
* Describes the message ottochain.v1.ScriptFiberRecord.
|
|
19
|
-
* Use `create(ScriptFiberRecordSchema)` to create a new message.
|
|
20
|
-
*/
|
|
21
|
-
export const ScriptFiberRecordSchema = /*@__PURE__*/ messageDesc(file_ottochain_v1_records, 1);
|
|
22
|
-
/**
|
|
23
|
-
* Describes the message ottochain.v1.FiberCommit.
|
|
24
|
-
* Use `create(FiberCommitSchema)` to create a new message.
|
|
25
|
-
*/
|
|
26
|
-
export const FiberCommitSchema = /*@__PURE__*/ messageDesc(file_ottochain_v1_records, 2);
|
|
27
|
-
/**
|
|
28
|
-
* Describes the message ottochain.v1.OnChainState.
|
|
29
|
-
* Use `create(OnChainStateSchema)` to create a new message.
|
|
30
|
-
*/
|
|
31
|
-
export const OnChainStateSchema = /*@__PURE__*/ messageDesc(file_ottochain_v1_records, 3);
|
|
32
|
-
/**
|
|
33
|
-
* Describes the message ottochain.v1.FiberLogEntryList.
|
|
34
|
-
* Use `create(FiberLogEntryListSchema)` to create a new message.
|
|
35
|
-
*/
|
|
36
|
-
export const FiberLogEntryListSchema = /*@__PURE__*/ messageDesc(file_ottochain_v1_records, 4);
|
|
37
|
-
/**
|
|
38
|
-
* Describes the message ottochain.v1.CalculatedState.
|
|
39
|
-
* Use `create(CalculatedStateSchema)` to create a new message.
|
|
40
|
-
*/
|
|
41
|
-
export const CalculatedStateSchema = /*@__PURE__*/ messageDesc(file_ottochain_v1_records, 5);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated Protobuf Types
|
|
3
|
-
*
|
|
4
|
-
* Auto-generated from proto/ definitions.
|
|
5
|
-
* DO NOT EDIT - regenerate with `npm run generate`
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
export * from './ottochain/v1/common_pb.js';
|
|
10
|
-
export * from './ottochain/v1/fiber_pb.js';
|
|
11
|
-
export * from './ottochain/v1/messages_pb.js';
|
|
12
|
-
export * from './ottochain/v1/records_pb.js';
|
|
13
|
-
export * from './ottochain/apps/identity/v1/agent_pb.js';
|
|
14
|
-
export * from './ottochain/apps/identity/v1/attestation_pb.js';
|
|
15
|
-
export * from './ottochain/apps/contracts/v1/contract_pb.js';
|
package/dist/generated/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated Protobuf Types
|
|
4
|
-
*
|
|
5
|
-
* Auto-generated from proto/ definitions.
|
|
6
|
-
* DO NOT EDIT - regenerate with `npm run generate`
|
|
7
|
-
*
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(o, k2, desc);
|
|
17
|
-
}) : (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
o[k2] = m[k];
|
|
20
|
-
}));
|
|
21
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
// Core types
|
|
26
|
-
__exportStar(require("./ottochain/v1/common_pb.js"), exports);
|
|
27
|
-
__exportStar(require("./ottochain/v1/fiber_pb.js"), exports);
|
|
28
|
-
__exportStar(require("./ottochain/v1/messages_pb.js"), exports);
|
|
29
|
-
__exportStar(require("./ottochain/v1/records_pb.js"), exports);
|
|
30
|
-
// App: Identity
|
|
31
|
-
__exportStar(require("./ottochain/apps/identity/v1/agent_pb.js"), exports);
|
|
32
|
-
__exportStar(require("./ottochain/apps/identity/v1/attestation_pb.js"), exports);
|
|
33
|
-
// App: Contracts
|
|
34
|
-
__exportStar(require("./ottochain/apps/contracts/v1/contract_pb.js"), exports);
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
-
import type { Address } from "../../../v1/common_pb.js";
|
|
3
|
-
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
5
|
-
/**
|
|
6
|
-
* Describes the file ottochain/apps/contracts/v1/contract.proto.
|
|
7
|
-
*/
|
|
8
|
-
export declare const file_ottochain_apps_contracts_v1_contract: GenFile;
|
|
9
|
-
/**
|
|
10
|
-
* Contract between two agents
|
|
11
|
-
*
|
|
12
|
-
* @generated from message ottochain.apps.contracts.v1.Contract
|
|
13
|
-
*/
|
|
14
|
-
export type Contract = Message<"ottochain.apps.contracts.v1.Contract"> & {
|
|
15
|
-
/**
|
|
16
|
-
* @generated from field: string id = 1;
|
|
17
|
-
*/
|
|
18
|
-
id: string;
|
|
19
|
-
/**
|
|
20
|
-
* Human-readable ID
|
|
21
|
-
*
|
|
22
|
-
* @generated from field: string contract_id = 2;
|
|
23
|
-
*/
|
|
24
|
-
contractId: string;
|
|
25
|
-
/**
|
|
26
|
-
* @generated from field: ottochain.v1.Address proposer = 3;
|
|
27
|
-
*/
|
|
28
|
-
proposer?: Address;
|
|
29
|
-
/**
|
|
30
|
-
* @generated from field: ottochain.v1.Address counterparty = 4;
|
|
31
|
-
*/
|
|
32
|
-
counterparty?: Address;
|
|
33
|
-
/**
|
|
34
|
-
* @generated from field: ottochain.apps.contracts.v1.ContractState state = 5;
|
|
35
|
-
*/
|
|
36
|
-
state: ContractState;
|
|
37
|
-
/**
|
|
38
|
-
* Flexible terms structure
|
|
39
|
-
*
|
|
40
|
-
* @generated from field: google.protobuf.Struct terms = 6;
|
|
41
|
-
*/
|
|
42
|
-
terms?: JsonObject;
|
|
43
|
-
/**
|
|
44
|
-
* @generated from field: google.protobuf.Timestamp proposed_at = 7;
|
|
45
|
-
*/
|
|
46
|
-
proposedAt?: Timestamp;
|
|
47
|
-
/**
|
|
48
|
-
* @generated from field: google.protobuf.Timestamp accepted_at = 8;
|
|
49
|
-
*/
|
|
50
|
-
acceptedAt?: Timestamp;
|
|
51
|
-
/**
|
|
52
|
-
* @generated from field: google.protobuf.Timestamp completed_at = 9;
|
|
53
|
-
*/
|
|
54
|
-
completedAt?: Timestamp;
|
|
55
|
-
/**
|
|
56
|
-
* Evidence of completion
|
|
57
|
-
*
|
|
58
|
-
* @generated from field: string completion_proof = 10;
|
|
59
|
-
*/
|
|
60
|
-
completionProof: string;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Describes the message ottochain.apps.contracts.v1.Contract.
|
|
64
|
-
* Use `create(ContractSchema)` to create a new message.
|
|
65
|
-
*/
|
|
66
|
-
export declare const ContractSchema: GenMessage<Contract>;
|
|
67
|
-
/**
|
|
68
|
-
* Propose a new contract
|
|
69
|
-
*
|
|
70
|
-
* @generated from message ottochain.apps.contracts.v1.ProposeContractRequest
|
|
71
|
-
*/
|
|
72
|
-
export type ProposeContractRequest = Message<"ottochain.apps.contracts.v1.ProposeContractRequest"> & {
|
|
73
|
-
/**
|
|
74
|
-
* @generated from field: ottochain.v1.Address proposer = 1;
|
|
75
|
-
*/
|
|
76
|
-
proposer?: Address;
|
|
77
|
-
/**
|
|
78
|
-
* @generated from field: ottochain.v1.Address counterparty = 2;
|
|
79
|
-
*/
|
|
80
|
-
counterparty?: Address;
|
|
81
|
-
/**
|
|
82
|
-
* @generated from field: google.protobuf.Struct terms = 3;
|
|
83
|
-
*/
|
|
84
|
-
terms?: JsonObject;
|
|
85
|
-
/**
|
|
86
|
-
* @generated from field: string description = 4;
|
|
87
|
-
*/
|
|
88
|
-
description: string;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Describes the message ottochain.apps.contracts.v1.ProposeContractRequest.
|
|
92
|
-
* Use `create(ProposeContractRequestSchema)` to create a new message.
|
|
93
|
-
*/
|
|
94
|
-
export declare const ProposeContractRequestSchema: GenMessage<ProposeContractRequest>;
|
|
95
|
-
/**
|
|
96
|
-
* Accept a proposed contract
|
|
97
|
-
*
|
|
98
|
-
* @generated from message ottochain.apps.contracts.v1.AcceptContractRequest
|
|
99
|
-
*/
|
|
100
|
-
export type AcceptContractRequest = Message<"ottochain.apps.contracts.v1.AcceptContractRequest"> & {
|
|
101
|
-
/**
|
|
102
|
-
* @generated from field: string contract_id = 1;
|
|
103
|
-
*/
|
|
104
|
-
contractId: string;
|
|
105
|
-
/**
|
|
106
|
-
* @generated from field: ottochain.v1.Address acceptor = 2;
|
|
107
|
-
*/
|
|
108
|
-
acceptor?: Address;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Describes the message ottochain.apps.contracts.v1.AcceptContractRequest.
|
|
112
|
-
* Use `create(AcceptContractRequestSchema)` to create a new message.
|
|
113
|
-
*/
|
|
114
|
-
export declare const AcceptContractRequestSchema: GenMessage<AcceptContractRequest>;
|
|
115
|
-
/**
|
|
116
|
-
* Complete a contract with proof
|
|
117
|
-
*
|
|
118
|
-
* @generated from message ottochain.apps.contracts.v1.CompleteContractRequest
|
|
119
|
-
*/
|
|
120
|
-
export type CompleteContractRequest = Message<"ottochain.apps.contracts.v1.CompleteContractRequest"> & {
|
|
121
|
-
/**
|
|
122
|
-
* @generated from field: string contract_id = 1;
|
|
123
|
-
*/
|
|
124
|
-
contractId: string;
|
|
125
|
-
/**
|
|
126
|
-
* @generated from field: ottochain.v1.Address completer = 2;
|
|
127
|
-
*/
|
|
128
|
-
completer?: Address;
|
|
129
|
-
/**
|
|
130
|
-
* @generated from field: string proof = 3;
|
|
131
|
-
*/
|
|
132
|
-
proof: string;
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* Describes the message ottochain.apps.contracts.v1.CompleteContractRequest.
|
|
136
|
-
* Use `create(CompleteContractRequestSchema)` to create a new message.
|
|
137
|
-
*/
|
|
138
|
-
export declare const CompleteContractRequestSchema: GenMessage<CompleteContractRequest>;
|
|
139
|
-
/**
|
|
140
|
-
* Reject a proposed contract
|
|
141
|
-
*
|
|
142
|
-
* @generated from message ottochain.apps.contracts.v1.RejectContractRequest
|
|
143
|
-
*/
|
|
144
|
-
export type RejectContractRequest = Message<"ottochain.apps.contracts.v1.RejectContractRequest"> & {
|
|
145
|
-
/**
|
|
146
|
-
* @generated from field: string contract_id = 1;
|
|
147
|
-
*/
|
|
148
|
-
contractId: string;
|
|
149
|
-
/**
|
|
150
|
-
* @generated from field: ottochain.v1.Address rejector = 2;
|
|
151
|
-
*/
|
|
152
|
-
rejector?: Address;
|
|
153
|
-
/**
|
|
154
|
-
* @generated from field: string reason = 3;
|
|
155
|
-
*/
|
|
156
|
-
reason: string;
|
|
157
|
-
};
|
|
158
|
-
/**
|
|
159
|
-
* Describes the message ottochain.apps.contracts.v1.RejectContractRequest.
|
|
160
|
-
* Use `create(RejectContractRequestSchema)` to create a new message.
|
|
161
|
-
*/
|
|
162
|
-
export declare const RejectContractRequestSchema: GenMessage<RejectContractRequest>;
|
|
163
|
-
/**
|
|
164
|
-
* Dispute a contract
|
|
165
|
-
*
|
|
166
|
-
* @generated from message ottochain.apps.contracts.v1.DisputeContractRequest
|
|
167
|
-
*/
|
|
168
|
-
export type DisputeContractRequest = Message<"ottochain.apps.contracts.v1.DisputeContractRequest"> & {
|
|
169
|
-
/**
|
|
170
|
-
* @generated from field: string contract_id = 1;
|
|
171
|
-
*/
|
|
172
|
-
contractId: string;
|
|
173
|
-
/**
|
|
174
|
-
* @generated from field: ottochain.v1.Address disputant = 2;
|
|
175
|
-
*/
|
|
176
|
-
disputant?: Address;
|
|
177
|
-
/**
|
|
178
|
-
* @generated from field: string evidence = 3;
|
|
179
|
-
*/
|
|
180
|
-
evidence: string;
|
|
181
|
-
/**
|
|
182
|
-
* @generated from field: string reason = 4;
|
|
183
|
-
*/
|
|
184
|
-
reason: string;
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Describes the message ottochain.apps.contracts.v1.DisputeContractRequest.
|
|
188
|
-
* Use `create(DisputeContractRequestSchema)` to create a new message.
|
|
189
|
-
*/
|
|
190
|
-
export declare const DisputeContractRequestSchema: GenMessage<DisputeContractRequest>;
|
|
191
|
-
/**
|
|
192
|
-
* Contract state machine definition
|
|
193
|
-
*
|
|
194
|
-
* Valid transitions:
|
|
195
|
-
* PROPOSED -> ACTIVE (accept)
|
|
196
|
-
* PROPOSED -> REJECTED (reject)
|
|
197
|
-
* PROPOSED -> CANCELLED (cancel)
|
|
198
|
-
* ACTIVE -> COMPLETED (complete)
|
|
199
|
-
* ACTIVE -> DISPUTED (dispute)
|
|
200
|
-
* DISPUTED -> COMPLETED (resolve_for_completer)
|
|
201
|
-
* DISPUTED -> REJECTED (resolve_for_disputant)
|
|
202
|
-
*
|
|
203
|
-
* @generated from message ottochain.apps.contracts.v1.ContractDefinition
|
|
204
|
-
*/
|
|
205
|
-
export type ContractDefinition = Message<"ottochain.apps.contracts.v1.ContractDefinition"> & {
|
|
206
|
-
/**
|
|
207
|
-
* Both parties must sign completion
|
|
208
|
-
*
|
|
209
|
-
* @generated from field: bool require_both_signatures = 1;
|
|
210
|
-
*/
|
|
211
|
-
requireBothSignatures: boolean;
|
|
212
|
-
/**
|
|
213
|
-
* How long after completion disputes allowed
|
|
214
|
-
*
|
|
215
|
-
* @generated from field: int32 dispute_window_epochs = 2;
|
|
216
|
-
*/
|
|
217
|
-
disputeWindowEpochs: number;
|
|
218
|
-
};
|
|
219
|
-
/**
|
|
220
|
-
* Describes the message ottochain.apps.contracts.v1.ContractDefinition.
|
|
221
|
-
* Use `create(ContractDefinitionSchema)` to create a new message.
|
|
222
|
-
*/
|
|
223
|
-
export declare const ContractDefinitionSchema: GenMessage<ContractDefinition>;
|
|
224
|
-
/**
|
|
225
|
-
* Contract lifecycle states
|
|
226
|
-
*
|
|
227
|
-
* @generated from enum ottochain.apps.contracts.v1.ContractState
|
|
228
|
-
*/
|
|
229
|
-
export declare enum ContractState {
|
|
230
|
-
/**
|
|
231
|
-
* @generated from enum value: CONTRACT_STATE_UNSPECIFIED = 0;
|
|
232
|
-
*/
|
|
233
|
-
UNSPECIFIED = 0,
|
|
234
|
-
/**
|
|
235
|
-
* Awaiting counterparty acceptance
|
|
236
|
-
*
|
|
237
|
-
* @generated from enum value: CONTRACT_STATE_PROPOSED = 1;
|
|
238
|
-
*/
|
|
239
|
-
PROPOSED = 1,
|
|
240
|
-
/**
|
|
241
|
-
* Both parties agreed, in progress
|
|
242
|
-
*
|
|
243
|
-
* @generated from enum value: CONTRACT_STATE_ACTIVE = 2;
|
|
244
|
-
*/
|
|
245
|
-
ACTIVE = 2,
|
|
246
|
-
/**
|
|
247
|
-
* Successfully fulfilled (terminal)
|
|
248
|
-
*
|
|
249
|
-
* @generated from enum value: CONTRACT_STATE_COMPLETED = 3;
|
|
250
|
-
*/
|
|
251
|
-
COMPLETED = 3,
|
|
252
|
-
/**
|
|
253
|
-
* Counterparty declined (terminal)
|
|
254
|
-
*
|
|
255
|
-
* @generated from enum value: CONTRACT_STATE_REJECTED = 4;
|
|
256
|
-
*/
|
|
257
|
-
REJECTED = 4,
|
|
258
|
-
/**
|
|
259
|
-
* Under dispute resolution
|
|
260
|
-
*
|
|
261
|
-
* @generated from enum value: CONTRACT_STATE_DISPUTED = 5;
|
|
262
|
-
*/
|
|
263
|
-
DISPUTED = 5,
|
|
264
|
-
/**
|
|
265
|
-
* Cancelled by proposer before acceptance (terminal)
|
|
266
|
-
*
|
|
267
|
-
* @generated from enum value: CONTRACT_STATE_CANCELLED = 6;
|
|
268
|
-
*/
|
|
269
|
-
CANCELLED = 6
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Describes the enum ottochain.apps.contracts.v1.ContractState.
|
|
273
|
-
*/
|
|
274
|
-
export declare const ContractStateSchema: GenEnum<ContractState>;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.2.0 with parameter "target=ts,import_extension=.js"
|
|
3
|
-
// @generated from file ottochain/apps/contracts/v1/contract.proto (package ottochain.apps.contracts.v1, syntax proto3)
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ContractStateSchema = exports.ContractState = exports.ContractDefinitionSchema = exports.DisputeContractRequestSchema = exports.RejectContractRequestSchema = exports.CompleteContractRequestSchema = exports.AcceptContractRequestSchema = exports.ProposeContractRequestSchema = exports.ContractSchema = exports.file_ottochain_apps_contracts_v1_contract = void 0;
|
|
7
|
-
const codegenv1_1 = require("@bufbuild/protobuf/codegenv1");
|
|
8
|
-
const common_pb_js_1 = require("../../../v1/common_pb.js");
|
|
9
|
-
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
10
|
-
/**
|
|
11
|
-
* Describes the file ottochain/apps/contracts/v1/contract.proto.
|
|
12
|
-
*/
|
|
13
|
-
exports.file_ottochain_apps_contracts_v1_contract = (0, codegenv1_1.fileDesc)("CipvdHRvY2hhaW4vYXBwcy9jb250cmFjdHMvdjEvY29udHJhY3QucHJvdG8SG290dG9jaGFpbi5hcHBzLmNvbnRyYWN0cy52MSKSAwoIQ29udHJhY3QSCgoCaWQYASABKAkSEwoLY29udHJhY3RfaWQYAiABKAkSJwoIcHJvcG9zZXIYAyABKAsyFS5vdHRvY2hhaW4udjEuQWRkcmVzcxIrCgxjb3VudGVycGFydHkYBCABKAsyFS5vdHRvY2hhaW4udjEuQWRkcmVzcxI5CgVzdGF0ZRgFIAEoDjIqLm90dG9jaGFpbi5hcHBzLmNvbnRyYWN0cy52MS5Db250cmFjdFN0YXRlEiYKBXRlcm1zGAYgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIvCgtwcm9wb3NlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Z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QoNQ29udHJhY3RTdGF0ZRIeChpDT05UUkFDVF9TVEFURV9VTlNQRUNJRklFRBAAEhsKF0NPTlRSQUNUX1NUQVRFX1BST1BPU0VEEAESGQoVQ09OVFJBQ1RfU1RBVEVfQUNUSVZFEAISHAoYQ09OVFJBQ1RfU1RBVEVfQ09NUExFVEVEEAMSGwoXQ09OVFJBQ1RfU1RBVEVfUkVKRUNURUQQBBIbChdDT05UUkFDVF9TVEFURV9ESVNQVVRFRBAFEhwKGENPTlRSQUNUX1NUQVRFX0NBTkNFTExFRBAGQr8BCh9jb20ub3R0b2NoYWluLmFwcHMuY29udHJhY3RzLnYxQg1Db250cmFjdFByb3RvUAGiAgNPQUOqAhtPdHRvY2hhaW4uQXBwcy5Db250cmFjdHMuVjHKAhtPdHRvY2hhaW5cQXBwc1xDb250cmFjdHNcVjHiAidPdHRvY2hhaW5cQXBwc1xDb250cmFjdHNcVjFcR1BCTWV0YWRhdGHqAh5PdHRvY2hhaW46OkFwcHM6OkNvbnRyYWN0czo6VjFiBnByb3RvMw", [common_pb_js_1.file_ottochain_v1_common, wkt_1.file_google_protobuf_struct, wkt_1.file_google_protobuf_timestamp]);
|
|
14
|
-
/**
|
|
15
|
-
* Describes the message ottochain.apps.contracts.v1.Contract.
|
|
16
|
-
* Use `create(ContractSchema)` to create a new message.
|
|
17
|
-
*/
|
|
18
|
-
exports.ContractSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_contracts_v1_contract, 0);
|
|
19
|
-
/**
|
|
20
|
-
* Describes the message ottochain.apps.contracts.v1.ProposeContractRequest.
|
|
21
|
-
* Use `create(ProposeContractRequestSchema)` to create a new message.
|
|
22
|
-
*/
|
|
23
|
-
exports.ProposeContractRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_contracts_v1_contract, 1);
|
|
24
|
-
/**
|
|
25
|
-
* Describes the message ottochain.apps.contracts.v1.AcceptContractRequest.
|
|
26
|
-
* Use `create(AcceptContractRequestSchema)` to create a new message.
|
|
27
|
-
*/
|
|
28
|
-
exports.AcceptContractRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_contracts_v1_contract, 2);
|
|
29
|
-
/**
|
|
30
|
-
* Describes the message ottochain.apps.contracts.v1.CompleteContractRequest.
|
|
31
|
-
* Use `create(CompleteContractRequestSchema)` to create a new message.
|
|
32
|
-
*/
|
|
33
|
-
exports.CompleteContractRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_contracts_v1_contract, 3);
|
|
34
|
-
/**
|
|
35
|
-
* Describes the message ottochain.apps.contracts.v1.RejectContractRequest.
|
|
36
|
-
* Use `create(RejectContractRequestSchema)` to create a new message.
|
|
37
|
-
*/
|
|
38
|
-
exports.RejectContractRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_contracts_v1_contract, 4);
|
|
39
|
-
/**
|
|
40
|
-
* Describes the message ottochain.apps.contracts.v1.DisputeContractRequest.
|
|
41
|
-
* Use `create(DisputeContractRequestSchema)` to create a new message.
|
|
42
|
-
*/
|
|
43
|
-
exports.DisputeContractRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_contracts_v1_contract, 5);
|
|
44
|
-
/**
|
|
45
|
-
* Describes the message ottochain.apps.contracts.v1.ContractDefinition.
|
|
46
|
-
* Use `create(ContractDefinitionSchema)` to create a new message.
|
|
47
|
-
*/
|
|
48
|
-
exports.ContractDefinitionSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_contracts_v1_contract, 6);
|
|
49
|
-
/**
|
|
50
|
-
* Contract lifecycle states
|
|
51
|
-
*
|
|
52
|
-
* @generated from enum ottochain.apps.contracts.v1.ContractState
|
|
53
|
-
*/
|
|
54
|
-
var ContractState;
|
|
55
|
-
(function (ContractState) {
|
|
56
|
-
/**
|
|
57
|
-
* @generated from enum value: CONTRACT_STATE_UNSPECIFIED = 0;
|
|
58
|
-
*/
|
|
59
|
-
ContractState[ContractState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
60
|
-
/**
|
|
61
|
-
* Awaiting counterparty acceptance
|
|
62
|
-
*
|
|
63
|
-
* @generated from enum value: CONTRACT_STATE_PROPOSED = 1;
|
|
64
|
-
*/
|
|
65
|
-
ContractState[ContractState["PROPOSED"] = 1] = "PROPOSED";
|
|
66
|
-
/**
|
|
67
|
-
* Both parties agreed, in progress
|
|
68
|
-
*
|
|
69
|
-
* @generated from enum value: CONTRACT_STATE_ACTIVE = 2;
|
|
70
|
-
*/
|
|
71
|
-
ContractState[ContractState["ACTIVE"] = 2] = "ACTIVE";
|
|
72
|
-
/**
|
|
73
|
-
* Successfully fulfilled (terminal)
|
|
74
|
-
*
|
|
75
|
-
* @generated from enum value: CONTRACT_STATE_COMPLETED = 3;
|
|
76
|
-
*/
|
|
77
|
-
ContractState[ContractState["COMPLETED"] = 3] = "COMPLETED";
|
|
78
|
-
/**
|
|
79
|
-
* Counterparty declined (terminal)
|
|
80
|
-
*
|
|
81
|
-
* @generated from enum value: CONTRACT_STATE_REJECTED = 4;
|
|
82
|
-
*/
|
|
83
|
-
ContractState[ContractState["REJECTED"] = 4] = "REJECTED";
|
|
84
|
-
/**
|
|
85
|
-
* Under dispute resolution
|
|
86
|
-
*
|
|
87
|
-
* @generated from enum value: CONTRACT_STATE_DISPUTED = 5;
|
|
88
|
-
*/
|
|
89
|
-
ContractState[ContractState["DISPUTED"] = 5] = "DISPUTED";
|
|
90
|
-
/**
|
|
91
|
-
* Cancelled by proposer before acceptance (terminal)
|
|
92
|
-
*
|
|
93
|
-
* @generated from enum value: CONTRACT_STATE_CANCELLED = 6;
|
|
94
|
-
*/
|
|
95
|
-
ContractState[ContractState["CANCELLED"] = 6] = "CANCELLED";
|
|
96
|
-
})(ContractState || (exports.ContractState = ContractState = {}));
|
|
97
|
-
/**
|
|
98
|
-
* Describes the enum ottochain.apps.contracts.v1.ContractState.
|
|
99
|
-
*/
|
|
100
|
-
exports.ContractStateSchema = (0, codegenv1_1.enumDesc)(exports.file_ottochain_apps_contracts_v1_contract, 0);
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
-
import type { Address } from "../../../v1/common_pb.js";
|
|
3
|
-
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
-
/**
|
|
6
|
-
* Describes the file ottochain/apps/identity/v1/agent.proto.
|
|
7
|
-
*/
|
|
8
|
-
export declare const file_ottochain_apps_identity_v1_agent: GenFile;
|
|
9
|
-
/**
|
|
10
|
-
* Platform identity link
|
|
11
|
-
*
|
|
12
|
-
* @generated from message ottochain.apps.identity.v1.PlatformLink
|
|
13
|
-
*/
|
|
14
|
-
export type PlatformLink = Message<"ottochain.apps.identity.v1.PlatformLink"> & {
|
|
15
|
-
/**
|
|
16
|
-
* @generated from field: ottochain.apps.identity.v1.Platform platform = 1;
|
|
17
|
-
*/
|
|
18
|
-
platform: Platform;
|
|
19
|
-
/**
|
|
20
|
-
* @generated from field: string platform_user_id = 2;
|
|
21
|
-
*/
|
|
22
|
-
platformUserId: string;
|
|
23
|
-
/**
|
|
24
|
-
* @generated from field: string platform_username = 3;
|
|
25
|
-
*/
|
|
26
|
-
platformUsername: string;
|
|
27
|
-
/**
|
|
28
|
-
* @generated from field: google.protobuf.Timestamp linked_at = 4;
|
|
29
|
-
*/
|
|
30
|
-
linkedAt?: Timestamp;
|
|
31
|
-
/**
|
|
32
|
-
* @generated from field: bool verified = 5;
|
|
33
|
-
*/
|
|
34
|
-
verified: boolean;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Describes the message ottochain.apps.identity.v1.PlatformLink.
|
|
38
|
-
* Use `create(PlatformLinkSchema)` to create a new message.
|
|
39
|
-
*/
|
|
40
|
-
export declare const PlatformLinkSchema: GenMessage<PlatformLink>;
|
|
41
|
-
/**
|
|
42
|
-
* Agent identity on-chain state
|
|
43
|
-
*
|
|
44
|
-
* @generated from message ottochain.apps.identity.v1.AgentIdentity
|
|
45
|
-
*/
|
|
46
|
-
export type AgentIdentity = Message<"ottochain.apps.identity.v1.AgentIdentity"> & {
|
|
47
|
-
/**
|
|
48
|
-
* @generated from field: ottochain.v1.Address address = 1;
|
|
49
|
-
*/
|
|
50
|
-
address?: Address;
|
|
51
|
-
/**
|
|
52
|
-
* @generated from field: string public_key = 2;
|
|
53
|
-
*/
|
|
54
|
-
publicKey: string;
|
|
55
|
-
/**
|
|
56
|
-
* @generated from field: string display_name = 3;
|
|
57
|
-
*/
|
|
58
|
-
displayName: string;
|
|
59
|
-
/**
|
|
60
|
-
* @generated from field: int32 reputation = 4;
|
|
61
|
-
*/
|
|
62
|
-
reputation: number;
|
|
63
|
-
/**
|
|
64
|
-
* @generated from field: ottochain.apps.identity.v1.AgentState state = 5;
|
|
65
|
-
*/
|
|
66
|
-
state: AgentState;
|
|
67
|
-
/**
|
|
68
|
-
* @generated from field: repeated ottochain.apps.identity.v1.PlatformLink platform_links = 6;
|
|
69
|
-
*/
|
|
70
|
-
platformLinks: PlatformLink[];
|
|
71
|
-
/**
|
|
72
|
-
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
73
|
-
*/
|
|
74
|
-
createdAt?: Timestamp;
|
|
75
|
-
/**
|
|
76
|
-
* @generated from field: google.protobuf.Timestamp updated_at = 8;
|
|
77
|
-
*/
|
|
78
|
-
updatedAt?: Timestamp;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Describes the message ottochain.apps.identity.v1.AgentIdentity.
|
|
82
|
-
* Use `create(AgentIdentitySchema)` to create a new message.
|
|
83
|
-
*/
|
|
84
|
-
export declare const AgentIdentitySchema: GenMessage<AgentIdentity>;
|
|
85
|
-
/**
|
|
86
|
-
* State machine definition for AgentIdentity workflow
|
|
87
|
-
* This defines the valid states and transitions
|
|
88
|
-
*
|
|
89
|
-
* Initial state is always REGISTERED
|
|
90
|
-
* Valid transitions:
|
|
91
|
-
* REGISTERED -> ACTIVE (activate)
|
|
92
|
-
* ACTIVE -> CHALLENGED (challenge)
|
|
93
|
-
* ACTIVE -> WITHDRAWN (withdraw)
|
|
94
|
-
* CHALLENGED -> SUSPENDED (uphold_challenge)
|
|
95
|
-
* CHALLENGED -> ACTIVE (dismiss_challenge)
|
|
96
|
-
* SUSPENDED -> PROBATION (begin_probation)
|
|
97
|
-
* PROBATION -> ACTIVE (complete_probation)
|
|
98
|
-
*
|
|
99
|
-
* @generated from message ottochain.apps.identity.v1.AgentIdentityDefinition
|
|
100
|
-
*/
|
|
101
|
-
export type AgentIdentityDefinition = Message<"ottochain.apps.identity.v1.AgentIdentityDefinition"> & {
|
|
102
|
-
/**
|
|
103
|
-
* Default: 10
|
|
104
|
-
*
|
|
105
|
-
* @generated from field: int32 initial_reputation = 1;
|
|
106
|
-
*/
|
|
107
|
-
initialReputation: number;
|
|
108
|
-
/**
|
|
109
|
-
* Min rep to activate (default: 0)
|
|
110
|
-
*
|
|
111
|
-
* @generated from field: int32 activation_threshold = 2;
|
|
112
|
-
*/
|
|
113
|
-
activationThreshold: number;
|
|
114
|
-
/**
|
|
115
|
-
* How long suspension lasts
|
|
116
|
-
*
|
|
117
|
-
* @generated from field: int32 suspension_duration_epochs = 3;
|
|
118
|
-
*/
|
|
119
|
-
suspensionDurationEpochs: number;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* Describes the message ottochain.apps.identity.v1.AgentIdentityDefinition.
|
|
123
|
-
* Use `create(AgentIdentityDefinitionSchema)` to create a new message.
|
|
124
|
-
*/
|
|
125
|
-
export declare const AgentIdentityDefinitionSchema: GenMessage<AgentIdentityDefinition>;
|
|
126
|
-
/**
|
|
127
|
-
* Agent lifecycle states in the identity state machine
|
|
128
|
-
*
|
|
129
|
-
* @generated from enum ottochain.apps.identity.v1.AgentState
|
|
130
|
-
*/
|
|
131
|
-
export declare enum AgentState {
|
|
132
|
-
/**
|
|
133
|
-
* @generated from enum value: AGENT_STATE_UNSPECIFIED = 0;
|
|
134
|
-
*/
|
|
135
|
-
UNSPECIFIED = 0,
|
|
136
|
-
/**
|
|
137
|
-
* Initial state after registration
|
|
138
|
-
*
|
|
139
|
-
* @generated from enum value: AGENT_STATE_REGISTERED = 1;
|
|
140
|
-
*/
|
|
141
|
-
REGISTERED = 1,
|
|
142
|
-
/**
|
|
143
|
-
* Activated and participating
|
|
144
|
-
*
|
|
145
|
-
* @generated from enum value: AGENT_STATE_ACTIVE = 2;
|
|
146
|
-
*/
|
|
147
|
-
ACTIVE = 2,
|
|
148
|
-
/**
|
|
149
|
-
* Under dispute/challenge
|
|
150
|
-
*
|
|
151
|
-
* @generated from enum value: AGENT_STATE_CHALLENGED = 3;
|
|
152
|
-
*/
|
|
153
|
-
CHALLENGED = 3,
|
|
154
|
-
/**
|
|
155
|
-
* Challenge upheld, temporarily suspended
|
|
156
|
-
*
|
|
157
|
-
* @generated from enum value: AGENT_STATE_SUSPENDED = 4;
|
|
158
|
-
*/
|
|
159
|
-
SUSPENDED = 4,
|
|
160
|
-
/**
|
|
161
|
-
* Recovering from suspension
|
|
162
|
-
*
|
|
163
|
-
* @generated from enum value: AGENT_STATE_PROBATION = 5;
|
|
164
|
-
*/
|
|
165
|
-
PROBATION = 5,
|
|
166
|
-
/**
|
|
167
|
-
* Voluntarily exited (terminal)
|
|
168
|
-
*
|
|
169
|
-
* @generated from enum value: AGENT_STATE_WITHDRAWN = 6;
|
|
170
|
-
*/
|
|
171
|
-
WITHDRAWN = 6
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Describes the enum ottochain.apps.identity.v1.AgentState.
|
|
175
|
-
*/
|
|
176
|
-
export declare const AgentStateSchema: GenEnum<AgentState>;
|
|
177
|
-
/**
|
|
178
|
-
* Platform where agent identity is linked
|
|
179
|
-
*
|
|
180
|
-
* @generated from enum ottochain.apps.identity.v1.Platform
|
|
181
|
-
*/
|
|
182
|
-
export declare enum Platform {
|
|
183
|
-
/**
|
|
184
|
-
* @generated from enum value: PLATFORM_UNSPECIFIED = 0;
|
|
185
|
-
*/
|
|
186
|
-
UNSPECIFIED = 0,
|
|
187
|
-
/**
|
|
188
|
-
* @generated from enum value: PLATFORM_DISCORD = 1;
|
|
189
|
-
*/
|
|
190
|
-
DISCORD = 1,
|
|
191
|
-
/**
|
|
192
|
-
* @generated from enum value: PLATFORM_TELEGRAM = 2;
|
|
193
|
-
*/
|
|
194
|
-
TELEGRAM = 2,
|
|
195
|
-
/**
|
|
196
|
-
* @generated from enum value: PLATFORM_TWITTER = 3;
|
|
197
|
-
*/
|
|
198
|
-
TWITTER = 3,
|
|
199
|
-
/**
|
|
200
|
-
* @generated from enum value: PLATFORM_GITHUB = 4;
|
|
201
|
-
*/
|
|
202
|
-
GITHUB = 4,
|
|
203
|
-
/**
|
|
204
|
-
* @generated from enum value: PLATFORM_CUSTOM = 5;
|
|
205
|
-
*/
|
|
206
|
-
CUSTOM = 5
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Describes the enum ottochain.apps.identity.v1.Platform.
|
|
210
|
-
*/
|
|
211
|
-
export declare const PlatformSchema: GenEnum<Platform>;
|