@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.
Files changed (157) hide show
  1. package/dist/cjs/apps/contracts/state-machines/contract.json +1 -29
  2. package/dist/cjs/apps/contracts/state-machines/escrow.json +2 -32
  3. package/dist/cjs/generated/index.js +11 -1
  4. package/dist/cjs/metakit/drop-nulls.js +50 -0
  5. package/dist/cjs/metakit/normalize.js +147 -0
  6. package/dist/cjs/ottochain/metagraph-client.js +147 -0
  7. package/dist/cjs/validation.js +1 -1
  8. package/dist/esm/apps/contracts/state-machines/contract.json +1 -29
  9. package/dist/esm/apps/contracts/state-machines/escrow.json +2 -32
  10. package/dist/esm/generated/index.js +11 -1
  11. package/dist/esm/metakit/drop-nulls.js +46 -0
  12. package/dist/esm/metakit/normalize.js +140 -0
  13. package/dist/esm/ottochain/metagraph-client.js +147 -0
  14. package/dist/esm/validation.js +1 -1
  15. package/dist/types/generated/index.d.ts +11 -1
  16. package/dist/types/metakit/drop-nulls.d.ts +29 -0
  17. package/dist/types/metakit/normalize.d.ts +67 -0
  18. package/dist/types/ottochain/index.d.ts +1 -1
  19. package/dist/types/ottochain/metagraph-client.d.ts +90 -0
  20. package/package.json +12 -12
  21. package/dist/apps/contracts/index.d.ts +0 -21
  22. package/dist/apps/contracts/index.js +0 -39
  23. package/dist/apps/contracts/types.d.ts +0 -24
  24. package/dist/apps/contracts/types.js +0 -48
  25. package/dist/apps/identity/index.d.ts +0 -22
  26. package/dist/apps/identity/index.js +0 -40
  27. package/dist/apps/identity/types.d.ts +0 -30
  28. package/dist/apps/identity/types.js +0 -53
  29. package/dist/apps/index.d.ts +0 -29
  30. package/dist/apps/index.js +0 -60
  31. package/dist/apps/markets/index.d.ts +0 -26
  32. package/dist/apps/markets/index.js +0 -46
  33. package/dist/apps/markets/types.d.ts +0 -185
  34. package/dist/apps/markets/types.js +0 -252
  35. package/dist/apps/oracles/index.d.ts +0 -26
  36. package/dist/apps/oracles/index.js +0 -46
  37. package/dist/apps/oracles/types.d.ts +0 -211
  38. package/dist/apps/oracles/types.js +0 -306
  39. package/dist/cjs/apps/contracts/types.js +0 -48
  40. package/dist/cjs/apps/corporate/types.js +0 -44
  41. package/dist/cjs/apps/governance/types.js +0 -42
  42. package/dist/cjs/apps/identity/types.js +0 -53
  43. package/dist/cjs/apps/markets/types.js +0 -219
  44. package/dist/cjs/apps/oracles/types.js +0 -282
  45. package/dist/cjs/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -100
  46. package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate_pb.js +0 -392
  47. package/dist/cjs/generated/ottochain/apps/governance/v1/governance_pb.js +0 -235
  48. package/dist/cjs/generated/ottochain/apps/identity/v1/agent_pb.js +0 -116
  49. package/dist/cjs/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -79
  50. package/dist/cjs/generated/ottochain/apps/markets/v1/market_pb.js +0 -151
  51. package/dist/cjs/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -109
  52. package/dist/cjs/generated/ottochain/v1/common_pb.js +0 -37
  53. package/dist/cjs/generated/ottochain/v1/fiber_pb.js +0 -86
  54. package/dist/cjs/generated/ottochain/v1/messages_pb.js +0 -44
  55. package/dist/cjs/generated/ottochain/v1/records_pb.js +0 -44
  56. package/dist/errors.d.ts +0 -221
  57. package/dist/errors.js +0 -293
  58. package/dist/esm/apps/contracts/types.js +0 -44
  59. package/dist/esm/apps/corporate/types.js +0 -38
  60. package/dist/esm/apps/governance/types.js +0 -35
  61. package/dist/esm/apps/identity/types.js +0 -50
  62. package/dist/esm/apps/markets/types.js +0 -206
  63. package/dist/esm/apps/oracles/types.js +0 -267
  64. package/dist/esm/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -97
  65. package/dist/esm/generated/ottochain/apps/corporate/v1/corporate_pb.js +0 -389
  66. package/dist/esm/generated/ottochain/apps/governance/v1/governance_pb.js +0 -232
  67. package/dist/esm/generated/ottochain/apps/identity/v1/agent_pb.js +0 -113
  68. package/dist/esm/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -76
  69. package/dist/esm/generated/ottochain/apps/markets/v1/market_pb.js +0 -148
  70. package/dist/esm/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -106
  71. package/dist/esm/generated/ottochain/v1/common_pb.js +0 -34
  72. package/dist/esm/generated/ottochain/v1/fiber_pb.js +0 -83
  73. package/dist/esm/generated/ottochain/v1/messages_pb.js +0 -41
  74. package/dist/esm/generated/ottochain/v1/records_pb.js +0 -41
  75. package/dist/generated/index.d.ts +0 -15
  76. package/dist/generated/index.js +0 -34
  77. package/dist/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +0 -274
  78. package/dist/generated/ottochain/apps/contracts/v1/contract_pb.js +0 -100
  79. package/dist/generated/ottochain/apps/identity/v1/agent_pb.d.ts +0 -211
  80. package/dist/generated/ottochain/apps/identity/v1/agent_pb.js +0 -116
  81. package/dist/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +0 -238
  82. package/dist/generated/ottochain/apps/identity/v1/attestation_pb.js +0 -79
  83. package/dist/generated/ottochain/apps/markets/v1/market_pb.d.ts +0 -436
  84. package/dist/generated/ottochain/apps/markets/v1/market_pb.js +0 -151
  85. package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +0 -393
  86. package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.js +0 -109
  87. package/dist/generated/ottochain/v1/common_pb.d.ts +0 -86
  88. package/dist/generated/ottochain/v1/common_pb.js +0 -37
  89. package/dist/generated/ottochain/v1/fiber_pb.d.ts +0 -292
  90. package/dist/generated/ottochain/v1/fiber_pb.js +0 -86
  91. package/dist/generated/ottochain/v1/messages_pb.d.ts +0 -190
  92. package/dist/generated/ottochain/v1/messages_pb.js +0 -44
  93. package/dist/generated/ottochain/v1/records_pb.d.ts +0 -221
  94. package/dist/generated/ottochain/v1/records_pb.js +0 -44
  95. package/dist/index.d.ts +0 -21
  96. package/dist/index.js +0 -77
  97. package/dist/metakit/binary.d.ts +0 -38
  98. package/dist/metakit/binary.js +0 -58
  99. package/dist/metakit/canonicalize.d.ts +0 -26
  100. package/dist/metakit/canonicalize.js +0 -40
  101. package/dist/metakit/codec.d.ts +0 -16
  102. package/dist/metakit/codec.js +0 -45
  103. package/dist/metakit/currency-transaction.d.ts +0 -157
  104. package/dist/metakit/currency-transaction.js +0 -319
  105. package/dist/metakit/currency-types.d.ts +0 -55
  106. package/dist/metakit/currency-types.js +0 -13
  107. package/dist/metakit/hash.d.ts +0 -50
  108. package/dist/metakit/hash.js +0 -84
  109. package/dist/metakit/index.d.ts +0 -23
  110. package/dist/metakit/index.js +0 -74
  111. package/dist/metakit/network/client.d.ts +0 -23
  112. package/dist/metakit/network/client.js +0 -78
  113. package/dist/metakit/network/currency-l1-client.d.ts +0 -71
  114. package/dist/metakit/network/currency-l1-client.js +0 -101
  115. package/dist/metakit/network/data-l1-client.d.ts +0 -57
  116. package/dist/metakit/network/data-l1-client.js +0 -76
  117. package/dist/metakit/network/index.d.ts +0 -10
  118. package/dist/metakit/network/index.js +0 -16
  119. package/dist/metakit/network/types.d.ts +0 -74
  120. package/dist/metakit/network/types.js +0 -20
  121. package/dist/metakit/sign.d.ts +0 -65
  122. package/dist/metakit/sign.js +0 -120
  123. package/dist/metakit/signed-object.d.ts +0 -66
  124. package/dist/metakit/signed-object.js +0 -100
  125. package/dist/metakit/types.d.ts +0 -67
  126. package/dist/metakit/types.js +0 -14
  127. package/dist/metakit/verify.d.ts +0 -55
  128. package/dist/metakit/verify.js +0 -217
  129. package/dist/metakit/wallet.d.ts +0 -70
  130. package/dist/metakit/wallet.js +0 -127
  131. package/dist/ottochain/index.d.ts +0 -13
  132. package/dist/ottochain/index.js +0 -45
  133. package/dist/ottochain/metagraph-client.d.ts +0 -111
  134. package/dist/ottochain/metagraph-client.js +0 -157
  135. package/dist/ottochain/snapshot.d.ts +0 -86
  136. package/dist/ottochain/snapshot.js +0 -110
  137. package/dist/ottochain/types.d.ts +0 -278
  138. package/dist/ottochain/types.js +0 -11
  139. package/dist/types/apps/contracts/types.d.ts +0 -24
  140. package/dist/types/apps/corporate/types.d.ts +0 -9861
  141. package/dist/types/apps/governance/types.d.ts +0 -344
  142. package/dist/types/apps/identity/types.d.ts +0 -30
  143. package/dist/types/apps/markets/types.d.ts +0 -155
  144. package/dist/types/apps/oracles/types.d.ts +0 -193
  145. package/dist/types/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +0 -274
  146. package/dist/types/generated/ottochain/apps/corporate/v1/corporate_pb.d.ts +0 -1172
  147. package/dist/types/generated/ottochain/apps/governance/v1/governance_pb.d.ts +0 -772
  148. package/dist/types/generated/ottochain/apps/identity/v1/agent_pb.d.ts +0 -211
  149. package/dist/types/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +0 -238
  150. package/dist/types/generated/ottochain/apps/markets/v1/market_pb.d.ts +0 -436
  151. package/dist/types/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +0 -393
  152. package/dist/types/generated/ottochain/v1/common_pb.d.ts +0 -86
  153. package/dist/types/generated/ottochain/v1/fiber_pb.d.ts +0 -292
  154. package/dist/types/generated/ottochain/v1/messages_pb.d.ts +0 -190
  155. package/dist/types/generated/ottochain/v1/records_pb.d.ts +0 -221
  156. package/dist/validation.d.ts +0 -449
  157. 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>;