@ottochain/sdk 1.0.3 → 1.1.1

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.
Files changed (181) hide show
  1. package/dist/cjs/apps/contracts/state-machines/contract.json +21 -63
  2. package/dist/cjs/apps/contracts/state-machines/escrow.json +23 -69
  3. package/dist/cjs/apps/governance/state-machines/dao-multisig.json +22 -66
  4. package/dist/cjs/apps/governance/state-machines/dao-single.json +14 -42
  5. package/dist/cjs/apps/governance/state-machines/dao-threshold.json +18 -54
  6. package/dist/cjs/apps/governance/state-machines/dao-token.json +21 -63
  7. package/dist/cjs/apps/governance/state-machines/governance-constitution.json +22 -66
  8. package/dist/cjs/apps/governance/state-machines/governance-executive.json +27 -81
  9. package/dist/cjs/apps/governance/state-machines/governance-judiciary.json +34 -102
  10. package/dist/cjs/apps/governance/state-machines/governance-legislature.json +32 -96
  11. package/dist/cjs/apps/governance/state-machines/governance-simple.json +27 -81
  12. package/dist/cjs/apps/identity/state-machines/agent-identity.json +25 -75
  13. package/dist/cjs/apps/markets/state-machines/market-universal.json +377 -110
  14. package/dist/cjs/apps/oracles/state-machines/oracle.json +22 -66
  15. package/dist/cjs/generated/index.js +11 -1
  16. package/dist/cjs/metakit/drop-nulls.js +50 -0
  17. package/dist/cjs/metakit/normalize.js +147 -0
  18. package/dist/cjs/ottochain/metagraph-client.js +147 -0
  19. package/dist/cjs/validation.js +1 -1
  20. package/dist/esm/apps/contracts/state-machines/contract.json +21 -63
  21. package/dist/esm/apps/contracts/state-machines/escrow.json +23 -69
  22. package/dist/esm/apps/governance/state-machines/dao-multisig.json +22 -66
  23. package/dist/esm/apps/governance/state-machines/dao-single.json +14 -42
  24. package/dist/esm/apps/governance/state-machines/dao-threshold.json +18 -54
  25. package/dist/esm/apps/governance/state-machines/dao-token.json +21 -63
  26. package/dist/esm/apps/governance/state-machines/governance-constitution.json +22 -66
  27. package/dist/esm/apps/governance/state-machines/governance-executive.json +27 -81
  28. package/dist/esm/apps/governance/state-machines/governance-judiciary.json +34 -102
  29. package/dist/esm/apps/governance/state-machines/governance-legislature.json +32 -96
  30. package/dist/esm/apps/governance/state-machines/governance-simple.json +27 -81
  31. package/dist/esm/apps/identity/state-machines/agent-identity.json +25 -75
  32. package/dist/esm/apps/markets/state-machines/market-universal.json +377 -110
  33. package/dist/esm/apps/oracles/state-machines/oracle.json +22 -66
  34. package/dist/esm/generated/index.js +11 -1
  35. package/dist/esm/metakit/drop-nulls.js +46 -0
  36. package/dist/esm/metakit/normalize.js +140 -0
  37. package/dist/esm/ottochain/metagraph-client.js +147 -0
  38. package/dist/esm/validation.js +1 -1
  39. package/dist/types/generated/index.d.ts +11 -1
  40. package/dist/types/metakit/drop-nulls.d.ts +29 -0
  41. package/dist/types/metakit/normalize.d.ts +67 -0
  42. package/dist/types/ottochain/index.d.ts +1 -1
  43. package/dist/types/ottochain/metagraph-client.d.ts +90 -0
  44. package/package.json +12 -12
  45. package/dist/apps/contracts/index.d.ts +0 -21
  46. package/dist/apps/contracts/index.js +0 -39
  47. package/dist/apps/contracts/types.d.ts +0 -24
  48. package/dist/apps/contracts/types.js +0 -48
  49. package/dist/apps/identity/index.d.ts +0 -22
  50. package/dist/apps/identity/index.js +0 -40
  51. package/dist/apps/identity/types.d.ts +0 -30
  52. package/dist/apps/identity/types.js +0 -53
  53. package/dist/apps/index.d.ts +0 -29
  54. package/dist/apps/index.js +0 -60
  55. package/dist/apps/markets/index.d.ts +0 -26
  56. package/dist/apps/markets/index.js +0 -46
  57. package/dist/apps/markets/types.d.ts +0 -185
  58. package/dist/apps/markets/types.js +0 -252
  59. package/dist/apps/oracles/index.d.ts +0 -26
  60. package/dist/apps/oracles/index.js +0 -46
  61. package/dist/apps/oracles/types.d.ts +0 -211
  62. package/dist/apps/oracles/types.js +0 -306
  63. package/dist/cjs/apps/contracts/types.js +0 -48
  64. package/dist/cjs/apps/corporate/types.js +0 -44
  65. package/dist/cjs/apps/governance/types.js +0 -42
  66. package/dist/cjs/apps/identity/types.js +0 -53
  67. package/dist/cjs/apps/markets/types.js +0 -219
  68. package/dist/cjs/apps/oracles/types.js +0 -282
  69. package/dist/cjs/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -100
  70. package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate_pb.js +0 -392
  71. package/dist/cjs/generated/ottochain/apps/governance/v1/governance_pb.js +0 -235
  72. package/dist/cjs/generated/ottochain/apps/identity/v1/agent_pb.js +0 -116
  73. package/dist/cjs/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -79
  74. package/dist/cjs/generated/ottochain/apps/markets/v1/market_pb.js +0 -151
  75. package/dist/cjs/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -109
  76. package/dist/cjs/generated/ottochain/v1/common_pb.js +0 -37
  77. package/dist/cjs/generated/ottochain/v1/fiber_pb.js +0 -86
  78. package/dist/cjs/generated/ottochain/v1/messages_pb.js +0 -44
  79. package/dist/cjs/generated/ottochain/v1/records_pb.js +0 -44
  80. package/dist/errors.d.ts +0 -221
  81. package/dist/errors.js +0 -293
  82. package/dist/esm/apps/contracts/types.js +0 -44
  83. package/dist/esm/apps/corporate/types.js +0 -38
  84. package/dist/esm/apps/governance/types.js +0 -35
  85. package/dist/esm/apps/identity/types.js +0 -50
  86. package/dist/esm/apps/markets/types.js +0 -206
  87. package/dist/esm/apps/oracles/types.js +0 -267
  88. package/dist/esm/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -97
  89. package/dist/esm/generated/ottochain/apps/corporate/v1/corporate_pb.js +0 -389
  90. package/dist/esm/generated/ottochain/apps/governance/v1/governance_pb.js +0 -232
  91. package/dist/esm/generated/ottochain/apps/identity/v1/agent_pb.js +0 -113
  92. package/dist/esm/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -76
  93. package/dist/esm/generated/ottochain/apps/markets/v1/market_pb.js +0 -148
  94. package/dist/esm/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -106
  95. package/dist/esm/generated/ottochain/v1/common_pb.js +0 -34
  96. package/dist/esm/generated/ottochain/v1/fiber_pb.js +0 -83
  97. package/dist/esm/generated/ottochain/v1/messages_pb.js +0 -41
  98. package/dist/esm/generated/ottochain/v1/records_pb.js +0 -41
  99. package/dist/generated/index.d.ts +0 -15
  100. package/dist/generated/index.js +0 -34
  101. package/dist/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +0 -274
  102. package/dist/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -100
  103. package/dist/generated/ottochain/apps/identity/v1/agent_pb.d.ts +0 -211
  104. package/dist/generated/ottochain/apps/identity/v1/agent_pb.js +0 -116
  105. package/dist/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +0 -238
  106. package/dist/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -79
  107. package/dist/generated/ottochain/apps/markets/v1/market_pb.d.ts +0 -436
  108. package/dist/generated/ottochain/apps/markets/v1/market_pb.js +0 -151
  109. package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +0 -393
  110. package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -109
  111. package/dist/generated/ottochain/v1/common_pb.d.ts +0 -86
  112. package/dist/generated/ottochain/v1/common_pb.js +0 -37
  113. package/dist/generated/ottochain/v1/fiber_pb.d.ts +0 -292
  114. package/dist/generated/ottochain/v1/fiber_pb.js +0 -86
  115. package/dist/generated/ottochain/v1/messages_pb.d.ts +0 -190
  116. package/dist/generated/ottochain/v1/messages_pb.js +0 -44
  117. package/dist/generated/ottochain/v1/records_pb.d.ts +0 -221
  118. package/dist/generated/ottochain/v1/records_pb.js +0 -44
  119. package/dist/index.d.ts +0 -21
  120. package/dist/index.js +0 -77
  121. package/dist/metakit/binary.d.ts +0 -38
  122. package/dist/metakit/binary.js +0 -58
  123. package/dist/metakit/canonicalize.d.ts +0 -26
  124. package/dist/metakit/canonicalize.js +0 -40
  125. package/dist/metakit/codec.d.ts +0 -16
  126. package/dist/metakit/codec.js +0 -45
  127. package/dist/metakit/currency-transaction.d.ts +0 -157
  128. package/dist/metakit/currency-transaction.js +0 -319
  129. package/dist/metakit/currency-types.d.ts +0 -55
  130. package/dist/metakit/currency-types.js +0 -13
  131. package/dist/metakit/hash.d.ts +0 -50
  132. package/dist/metakit/hash.js +0 -84
  133. package/dist/metakit/index.d.ts +0 -23
  134. package/dist/metakit/index.js +0 -74
  135. package/dist/metakit/network/client.d.ts +0 -23
  136. package/dist/metakit/network/client.js +0 -78
  137. package/dist/metakit/network/currency-l1-client.d.ts +0 -71
  138. package/dist/metakit/network/currency-l1-client.js +0 -101
  139. package/dist/metakit/network/data-l1-client.d.ts +0 -57
  140. package/dist/metakit/network/data-l1-client.js +0 -76
  141. package/dist/metakit/network/index.d.ts +0 -10
  142. package/dist/metakit/network/index.js +0 -16
  143. package/dist/metakit/network/types.d.ts +0 -74
  144. package/dist/metakit/network/types.js +0 -20
  145. package/dist/metakit/sign.d.ts +0 -65
  146. package/dist/metakit/sign.js +0 -120
  147. package/dist/metakit/signed-object.d.ts +0 -66
  148. package/dist/metakit/signed-object.js +0 -100
  149. package/dist/metakit/types.d.ts +0 -67
  150. package/dist/metakit/types.js +0 -14
  151. package/dist/metakit/verify.d.ts +0 -55
  152. package/dist/metakit/verify.js +0 -217
  153. package/dist/metakit/wallet.d.ts +0 -70
  154. package/dist/metakit/wallet.js +0 -127
  155. package/dist/ottochain/index.d.ts +0 -13
  156. package/dist/ottochain/index.js +0 -45
  157. package/dist/ottochain/metagraph-client.d.ts +0 -111
  158. package/dist/ottochain/metagraph-client.js +0 -157
  159. package/dist/ottochain/snapshot.d.ts +0 -86
  160. package/dist/ottochain/snapshot.js +0 -110
  161. package/dist/ottochain/types.d.ts +0 -278
  162. package/dist/ottochain/types.js +0 -11
  163. package/dist/types/apps/contracts/types.d.ts +0 -24
  164. package/dist/types/apps/corporate/types.d.ts +0 -9861
  165. package/dist/types/apps/governance/types.d.ts +0 -344
  166. package/dist/types/apps/identity/types.d.ts +0 -30
  167. package/dist/types/apps/markets/types.d.ts +0 -155
  168. package/dist/types/apps/oracles/types.d.ts +0 -193
  169. package/dist/types/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +0 -274
  170. package/dist/types/generated/ottochain/apps/corporate/v1/corporate_pb.d.ts +0 -1172
  171. package/dist/types/generated/ottochain/apps/governance/v1/governance_pb.d.ts +0 -772
  172. package/dist/types/generated/ottochain/apps/identity/v1/agent_pb.d.ts +0 -211
  173. package/dist/types/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +0 -238
  174. package/dist/types/generated/ottochain/apps/markets/v1/market_pb.d.ts +0 -436
  175. package/dist/types/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +0 -393
  176. package/dist/types/generated/ottochain/v1/common_pb.d.ts +0 -86
  177. package/dist/types/generated/ottochain/v1/fiber_pb.d.ts +0 -292
  178. package/dist/types/generated/ottochain/v1/messages_pb.d.ts +0 -190
  179. package/dist/types/generated/ottochain/v1/records_pb.d.ts +0 -221
  180. package/dist/validation.d.ts +0 -449
  181. package/dist/validation.js +0 -312
@@ -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>;
@@ -1,238 +0,0 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { Address } from "../../../v1/common_pb.js";
3
- import type { Platform } from "./agent_pb.js";
4
- import type { Timestamp } from "@bufbuild/protobuf/wkt";
5
- import type { Message } from "@bufbuild/protobuf";
6
- /**
7
- * Describes the file ottochain/apps/identity/v1/attestation.proto.
8
- */
9
- export declare const file_ottochain_apps_identity_v1_attestation: GenFile;
10
- /**
11
- * Reputation change record
12
- *
13
- * @generated from message ottochain.apps.identity.v1.ReputationDelta
14
- */
15
- export type ReputationDelta = Message<"ottochain.apps.identity.v1.ReputationDelta"> & {
16
- /**
17
- * @generated from field: ottochain.apps.identity.v1.AttestationType attestation_type = 1;
18
- */
19
- attestationType: AttestationType;
20
- /**
21
- * @generated from field: int32 delta = 2;
22
- */
23
- delta: number;
24
- /**
25
- * @generated from field: string reason = 3;
26
- */
27
- reason: string;
28
- /**
29
- * @generated from field: google.protobuf.Timestamp recorded_at = 4;
30
- */
31
- recordedAt?: Timestamp;
32
- };
33
- /**
34
- * Describes the message ottochain.apps.identity.v1.ReputationDelta.
35
- * Use `create(ReputationDeltaSchema)` to create a new message.
36
- */
37
- export declare const ReputationDeltaSchema: GenMessage<ReputationDelta>;
38
- /**
39
- * Attestation record
40
- *
41
- * @generated from message ottochain.apps.identity.v1.Attestation
42
- */
43
- export type Attestation = Message<"ottochain.apps.identity.v1.Attestation"> & {
44
- /**
45
- * @generated from field: string id = 1;
46
- */
47
- id: string;
48
- /**
49
- * @generated from field: ottochain.apps.identity.v1.AttestationType type = 2;
50
- */
51
- type: AttestationType;
52
- /**
53
- * Agent receiving attestation
54
- *
55
- * @generated from field: ottochain.v1.Address subject = 3;
56
- */
57
- subject?: Address;
58
- /**
59
- * Agent or platform issuing
60
- *
61
- * @generated from field: ottochain.v1.Address issuer = 4;
62
- */
63
- issuer?: Address;
64
- /**
65
- * If issued by platform
66
- *
67
- * @generated from field: ottochain.apps.identity.v1.Platform issuer_platform = 5;
68
- */
69
- issuerPlatform: Platform;
70
- /**
71
- * Reputation change
72
- *
73
- * @generated from field: int32 delta = 6;
74
- */
75
- delta: number;
76
- /**
77
- * @generated from field: string reason = 7;
78
- */
79
- reason: string;
80
- /**
81
- * @generated from field: string tx_hash = 8;
82
- */
83
- txHash: string;
84
- /**
85
- * @generated from field: google.protobuf.Timestamp created_at = 9;
86
- */
87
- createdAt?: Timestamp;
88
- };
89
- /**
90
- * Describes the message ottochain.apps.identity.v1.Attestation.
91
- * Use `create(AttestationSchema)` to create a new message.
92
- */
93
- export declare const AttestationSchema: GenMessage<Attestation>;
94
- /**
95
- * Vouch request - one agent vouching for another
96
- *
97
- * @generated from message ottochain.apps.identity.v1.VouchRequest
98
- */
99
- export type VouchRequest = Message<"ottochain.apps.identity.v1.VouchRequest"> & {
100
- /**
101
- * @generated from field: ottochain.v1.Address from_address = 1;
102
- */
103
- fromAddress?: Address;
104
- /**
105
- * @generated from field: ottochain.v1.Address to_address = 2;
106
- */
107
- toAddress?: Address;
108
- /**
109
- * @generated from field: string reason = 3;
110
- */
111
- reason: string;
112
- };
113
- /**
114
- * Describes the message ottochain.apps.identity.v1.VouchRequest.
115
- * Use `create(VouchRequestSchema)` to create a new message.
116
- */
117
- export declare const VouchRequestSchema: GenMessage<VouchRequest>;
118
- /**
119
- * Challenge request - disputing an agent's behavior
120
- *
121
- * @generated from message ottochain.apps.identity.v1.ChallengeRequest
122
- */
123
- export type ChallengeRequest = Message<"ottochain.apps.identity.v1.ChallengeRequest"> & {
124
- /**
125
- * @generated from field: ottochain.v1.Address challenger = 1;
126
- */
127
- challenger?: Address;
128
- /**
129
- * @generated from field: ottochain.v1.Address challenged = 2;
130
- */
131
- challenged?: Address;
132
- /**
133
- * @generated from field: string evidence = 3;
134
- */
135
- evidence: string;
136
- /**
137
- * @generated from field: string reason = 4;
138
- */
139
- reason: string;
140
- };
141
- /**
142
- * Describes the message ottochain.apps.identity.v1.ChallengeRequest.
143
- * Use `create(ChallengeRequestSchema)` to create a new message.
144
- */
145
- export declare const ChallengeRequestSchema: GenMessage<ChallengeRequest>;
146
- /**
147
- * Reputation thresholds and rules
148
- *
149
- * @generated from message ottochain.apps.identity.v1.ReputationConfig
150
- */
151
- export type ReputationConfig = Message<"ottochain.apps.identity.v1.ReputationConfig"> & {
152
- /**
153
- * Starting rep (default: 10)
154
- *
155
- * @generated from field: int32 base_reputation = 1;
156
- */
157
- baseReputation: number;
158
- /**
159
- * Contract completion (default: +5)
160
- *
161
- * @generated from field: int32 completion_delta = 2;
162
- */
163
- completionDelta: number;
164
- /**
165
- * Vouch received (default: +2)
166
- *
167
- * @generated from field: int32 vouch_delta = 3;
168
- */
169
- vouchDelta: number;
170
- /**
171
- * Violation penalty (default: -10)
172
- *
173
- * @generated from field: int32 violation_delta = 4;
174
- */
175
- violationDelta: number;
176
- /**
177
- * Behavioral bonus (default: +3)
178
- *
179
- * @generated from field: int32 behavioral_delta = 5;
180
- */
181
- behavioralDelta: number;
182
- /**
183
- * Floor (default: 0)
184
- *
185
- * @generated from field: int32 min_reputation = 6;
186
- */
187
- minReputation: number;
188
- /**
189
- * Min rep to challenge (default: 5)
190
- *
191
- * @generated from field: int32 challenge_threshold = 7;
192
- */
193
- challengeThreshold: number;
194
- };
195
- /**
196
- * Describes the message ottochain.apps.identity.v1.ReputationConfig.
197
- * Use `create(ReputationConfigSchema)` to create a new message.
198
- */
199
- export declare const ReputationConfigSchema: GenMessage<ReputationConfig>;
200
- /**
201
- * Types of attestations that affect reputation
202
- *
203
- * @generated from enum ottochain.apps.identity.v1.AttestationType
204
- */
205
- export declare enum AttestationType {
206
- /**
207
- * @generated from enum value: ATTESTATION_TYPE_UNSPECIFIED = 0;
208
- */
209
- UNSPECIFIED = 0,
210
- /**
211
- * Contract completed successfully (+5)
212
- *
213
- * @generated from enum value: ATTESTATION_TYPE_COMPLETION = 1;
214
- */
215
- COMPLETION = 1,
216
- /**
217
- * Vouched for by another agent (+2)
218
- *
219
- * @generated from enum value: ATTESTATION_TYPE_VOUCH = 2;
220
- */
221
- VOUCH = 2,
222
- /**
223
- * Protocol violation (-10)
224
- *
225
- * @generated from enum value: ATTESTATION_TYPE_VIOLATION = 3;
226
- */
227
- VIOLATION = 3,
228
- /**
229
- * Positive behavioral signal (+3)
230
- *
231
- * @generated from enum value: ATTESTATION_TYPE_BEHAVIORAL = 4;
232
- */
233
- BEHAVIORAL = 4
234
- }
235
- /**
236
- * Describes the enum ottochain.apps.identity.v1.AttestationType.
237
- */
238
- export declare const AttestationTypeSchema: GenEnum<AttestationType>;