@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,116 +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/identity/v1/agent.proto (package ottochain.apps.identity.v1, syntax proto3)
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PlatformSchema = exports.Platform = exports.AgentStateSchema = exports.AgentState = exports.AgentIdentityDefinitionSchema = exports.AgentIdentitySchema = exports.PlatformLinkSchema = exports.file_ottochain_apps_identity_v1_agent = 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/identity/v1/agent.proto.
12
- */
13
- exports.file_ottochain_apps_identity_v1_agent = (0, codegenv1_1.fileDesc)("CiZvdHRvY2hhaW4vYXBwcy9pZGVudGl0eS92MS9hZ2VudC5wcm90bxIab3R0b2NoYWluLmFwcHMuaWRlbnRpdHkudjEivAEKDFBsYXRmb3JtTGluaxI2CghwbGF0Zm9ybRgBIAEoDjIkLm90dG9jaGFpbi5hcHBzLmlkZW50aXR5LnYxLlBsYXRmb3JtEhgKEHBsYXRmb3JtX3VzZXJfaWQYAiABKAkSGQoRcGxhdGZvcm1fdXNlcm5hbWUYAyABKAkSLQoJbGlua2VkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIQCgh2ZXJpZmllZBgFIAEoCCLOAgoNQWdlbnRJZGVudGl0eRImCgdhZGRyZXNzGAEgASgLMhUub3R0b2NoYWluLnYxLkFkZHJlc3MSEgoKcHVibGljX2tleRgCIAEoCRIUCgxkaXNwbGF5X25hbWUYAyABKAkSEgoKcmVwdXRhdGlvbhgEIAEoBRI1CgVzdGF0ZRgFIAEoDjImLm90dG9jaGFpbi5hcHBzLmlkZW50aXR5LnYxLkFnZW50U3RhdGUSQAoOcGxhdGZvcm1fbGlua3MYBiADKAsyKC5vdHRvY2hhaW4uYXBwcy5pZGVudGl0eS52MS5QbGF0Zm9ybUxpbmsSLgoKY3JlYXRlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAidwoXQWdlbnRJZGVudGl0eURlZmluaXRpb24SGgoSaW5pdGlhbF9yZXB1dGF0aW9uGAEgASgFEhwKFGFjdGl2YXRpb25fdGhyZXNob2xkGAIgASgFEiIKGnN1c3BlbnNpb25fZHVyYXRpb25fZXBvY2hzGAMgASgFKsoBCgpBZ2VudFN0YXRlEhsKF0FHRU5UX1NUQVRFX1VOU1BFQ0lGSUVEEAASGgoWQUdFTlRfU1RBVEVfUkVHSVNURVJFRBABEhYKEkFHRU5UX1NUQVRFX0FDVElWRRACEhoKFkFHRU5UX1NUQVRFX0NIQUxMRU5HRUQQAxIZChVBR0VOVF9TVEFURV9TVVNQRU5ERUQQBBIZChVBR0VOVF9TVEFURV9QUk9CQVRJT04QBRIZChVBR0VOVF9TVEFURV9XSVRIRFJBV04QBiqRAQoIUGxhdGZvcm0SGAoUUExBVEZPUk1fVU5TUEVDSUZJRUQQABIUChBQTEFURk9STV9ESVNDT1JEEAESFQoRUExBVEZPUk1fVEVMRUdSQU0QAhIUChBQTEFURk9STV9UV0lUVEVSEAMSEwoPUExBVEZPUk1fR0lUSFVCEAQSEwoPUExBVEZPUk1fQ1VTVE9NEAVCtwEKHmNvbS5vdHRvY2hhaW4uYXBwcy5pZGVudGl0eS52MUIKQWdlbnRQcm90b1ABogIDT0FJqgIaT3R0b2NoYWluLkFwcHMuSWRlbnRpdHkuVjHKAhpPdHRvY2hhaW5cQXBwc1xJZGVudGl0eVxWMeICJk90dG9jaGFpblxBcHBzXElkZW50aXR5XFYxXEdQQk1ldGFkYXRh6gIdT3R0b2NoYWluOjpBcHBzOjpJZGVudGl0eTo6VjFiBnByb3RvMw", [common_pb_js_1.file_ottochain_v1_common, wkt_1.file_google_protobuf_timestamp]);
14
- /**
15
- * Describes the message ottochain.apps.identity.v1.PlatformLink.
16
- * Use `create(PlatformLinkSchema)` to create a new message.
17
- */
18
- exports.PlatformLinkSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_identity_v1_agent, 0);
19
- /**
20
- * Describes the message ottochain.apps.identity.v1.AgentIdentity.
21
- * Use `create(AgentIdentitySchema)` to create a new message.
22
- */
23
- exports.AgentIdentitySchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_identity_v1_agent, 1);
24
- /**
25
- * Describes the message ottochain.apps.identity.v1.AgentIdentityDefinition.
26
- * Use `create(AgentIdentityDefinitionSchema)` to create a new message.
27
- */
28
- exports.AgentIdentityDefinitionSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_identity_v1_agent, 2);
29
- /**
30
- * Agent lifecycle states in the identity state machine
31
- *
32
- * @generated from enum ottochain.apps.identity.v1.AgentState
33
- */
34
- var AgentState;
35
- (function (AgentState) {
36
- /**
37
- * @generated from enum value: AGENT_STATE_UNSPECIFIED = 0;
38
- */
39
- AgentState[AgentState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
40
- /**
41
- * Initial state after registration
42
- *
43
- * @generated from enum value: AGENT_STATE_REGISTERED = 1;
44
- */
45
- AgentState[AgentState["REGISTERED"] = 1] = "REGISTERED";
46
- /**
47
- * Activated and participating
48
- *
49
- * @generated from enum value: AGENT_STATE_ACTIVE = 2;
50
- */
51
- AgentState[AgentState["ACTIVE"] = 2] = "ACTIVE";
52
- /**
53
- * Under dispute/challenge
54
- *
55
- * @generated from enum value: AGENT_STATE_CHALLENGED = 3;
56
- */
57
- AgentState[AgentState["CHALLENGED"] = 3] = "CHALLENGED";
58
- /**
59
- * Challenge upheld, temporarily suspended
60
- *
61
- * @generated from enum value: AGENT_STATE_SUSPENDED = 4;
62
- */
63
- AgentState[AgentState["SUSPENDED"] = 4] = "SUSPENDED";
64
- /**
65
- * Recovering from suspension
66
- *
67
- * @generated from enum value: AGENT_STATE_PROBATION = 5;
68
- */
69
- AgentState[AgentState["PROBATION"] = 5] = "PROBATION";
70
- /**
71
- * Voluntarily exited (terminal)
72
- *
73
- * @generated from enum value: AGENT_STATE_WITHDRAWN = 6;
74
- */
75
- AgentState[AgentState["WITHDRAWN"] = 6] = "WITHDRAWN";
76
- })(AgentState || (exports.AgentState = AgentState = {}));
77
- /**
78
- * Describes the enum ottochain.apps.identity.v1.AgentState.
79
- */
80
- exports.AgentStateSchema = (0, codegenv1_1.enumDesc)(exports.file_ottochain_apps_identity_v1_agent, 0);
81
- /**
82
- * Platform where agent identity is linked
83
- *
84
- * @generated from enum ottochain.apps.identity.v1.Platform
85
- */
86
- var Platform;
87
- (function (Platform) {
88
- /**
89
- * @generated from enum value: PLATFORM_UNSPECIFIED = 0;
90
- */
91
- Platform[Platform["UNSPECIFIED"] = 0] = "UNSPECIFIED";
92
- /**
93
- * @generated from enum value: PLATFORM_DISCORD = 1;
94
- */
95
- Platform[Platform["DISCORD"] = 1] = "DISCORD";
96
- /**
97
- * @generated from enum value: PLATFORM_TELEGRAM = 2;
98
- */
99
- Platform[Platform["TELEGRAM"] = 2] = "TELEGRAM";
100
- /**
101
- * @generated from enum value: PLATFORM_TWITTER = 3;
102
- */
103
- Platform[Platform["TWITTER"] = 3] = "TWITTER";
104
- /**
105
- * @generated from enum value: PLATFORM_GITHUB = 4;
106
- */
107
- Platform[Platform["GITHUB"] = 4] = "GITHUB";
108
- /**
109
- * @generated from enum value: PLATFORM_CUSTOM = 5;
110
- */
111
- Platform[Platform["CUSTOM"] = 5] = "CUSTOM";
112
- })(Platform || (exports.Platform = Platform = {}));
113
- /**
114
- * Describes the enum ottochain.apps.identity.v1.Platform.
115
- */
116
- exports.PlatformSchema = (0, codegenv1_1.enumDesc)(exports.file_ottochain_apps_identity_v1_agent, 1);
@@ -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>;
@@ -1,79 +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/identity/v1/attestation.proto (package ottochain.apps.identity.v1, syntax proto3)
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AttestationTypeSchema = exports.AttestationType = exports.ReputationConfigSchema = exports.ChallengeRequestSchema = exports.VouchRequestSchema = exports.AttestationSchema = exports.ReputationDeltaSchema = exports.file_ottochain_apps_identity_v1_attestation = void 0;
7
- const codegenv1_1 = require("@bufbuild/protobuf/codegenv1");
8
- const common_pb_js_1 = require("../../../v1/common_pb.js");
9
- const agent_pb_js_1 = require("./agent_pb.js");
10
- const wkt_1 = require("@bufbuild/protobuf/wkt");
11
- /**
12
- * Describes the file ottochain/apps/identity/v1/attestation.proto.
13
- */
14
- exports.file_ottochain_apps_identity_v1_attestation = (0, codegenv1_1.fileDesc)("CixvdHRvY2hhaW4vYXBwcy9pZGVudGl0eS92MS9hdHRlc3RhdGlvbi5wcm90bxIab3R0b2NoYWluLmFwcHMuaWRlbnRpdHkudjEiqAEKD1JlcHV0YXRpb25EZWx0YRJFChBhdHRlc3RhdGlvbl90eXBlGAEgASgOMisub3R0b2NoYWluLmFwcHMuaWRlbnRpdHkudjEuQXR0ZXN0YXRpb25UeXBlEg0KBWRlbHRhGAIgASgFEg4KBnJlYXNvbhgDIAEoCRIvCgtyZWNvcmRlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiwgIKC0F0dGVzdGF0aW9uEgoKAmlkGAEgASgJEjkKBHR5cGUYAiABKA4yKy5vdHRvY2hhaW4uYXBwcy5pZGVudGl0eS52MS5BdHRlc3RhdGlvblR5cGUSJgoHc3ViamVjdBgDIAEoCzIVLm90dG9jaGFpbi52MS5BZGRyZXNzEiUKBmlzc3VlchgEIAEoCzIVLm90dG9jaGFpbi52MS5BZGRyZXNzEj0KD2lzc3Vlcl9wbGF0Zm9ybRgFIAEoDjIkLm90dG9jaGFpbi5hcHBzLmlkZW50aXR5LnYxLlBsYXRmb3JtEg0KBWRlbHRhGAYgASgFEg4KBnJlYXNvbhgHIAEoCRIPCgd0eF9oYXNoGAggASgJEi4KCmNyZWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wInYKDFZvdWNoUmVxdWVzdBIrCgxmcm9tX2FkZHJlc3MYASABKAsyFS5vdHRvY2hhaW4udjEuQWRkcmVzcxIpCgp0b19hZGRyZXNzGAIgASgLMhUub3R0b2NoYWluLnYxLkFkZHJlc3MSDgoGcmVhc29uGAMgASgJIooBChBDaGFsbGVuZ2VSZXF1ZXN0EikKCmNoYWxsZW5nZXIYASABKAsyFS5vdHRvY2hhaW4udjEuQWRkcmVzcxIpCgpjaGFsbGVuZ2VkGAIgASgLMhUub3R0b2NoYWluLnYxLkFkZHJlc3MSEAoIZXZpZGVuY2UYAyABKAkSDgoGcmVhc29uGAQgASgJIsIBChBSZXB1dGF0aW9uQ29uZmlnEhcKD2Jhc2VfcmVwdXRhdGlvbhgBIAEoBRIYChBjb21wbGV0aW9uX2RlbHRhGAIgASgFEhMKC3ZvdWNoX2RlbHRhGAMgASgFEhcKD3Zpb2xhdGlvbl9kZWx0YRgEIAEoBRIYChBiZWhhdmlvcmFsX2RlbHRhGAUgASgFEhYKDm1pbl9yZXB1dGF0aW9uGAYgASgFEhsKE2NoYWxsZW5nZV90aHJlc2hvbGQYByABKAUqsQEKD0F0dGVzdGF0aW9uVHlwZRIgChxBVFRFU1RBVElPTl9UWVBFX1VOU1BFQ0lGSUVEEAASHwobQVRURVNUQVRJT05fVFlQRV9DT01QTEVUSU9OEAESGgoWQVRURVNUQVRJT05fVFlQRV9WT1VDSBACEh4KGkFUVEVTVEFUSU9OX1RZUEVfVklPTEFUSU9OEAMSHwobQVRURVNUQVRJT05fVFlQRV9CRUhBVklPUkFMEARCvQEKHmNvbS5vdHRvY2hhaW4uYXBwcy5pZGVudGl0eS52MUIQQXR0ZXN0YXRpb25Qcm90b1ABogIDT0FJqgIaT3R0b2NoYWluLkFwcHMuSWRlbnRpdHkuVjHKAhpPdHRvY2hhaW5cQXBwc1xJZGVudGl0eVxWMeICJk90dG9jaGFpblxBcHBzXElkZW50aXR5XFYxXEdQQk1ldGFkYXRh6gIdT3R0b2NoYWluOjpBcHBzOjpJZGVudGl0eTo6VjFiBnByb3RvMw", [common_pb_js_1.file_ottochain_v1_common, agent_pb_js_1.file_ottochain_apps_identity_v1_agent, wkt_1.file_google_protobuf_timestamp]);
15
- /**
16
- * Describes the message ottochain.apps.identity.v1.ReputationDelta.
17
- * Use `create(ReputationDeltaSchema)` to create a new message.
18
- */
19
- exports.ReputationDeltaSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_identity_v1_attestation, 0);
20
- /**
21
- * Describes the message ottochain.apps.identity.v1.Attestation.
22
- * Use `create(AttestationSchema)` to create a new message.
23
- */
24
- exports.AttestationSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_identity_v1_attestation, 1);
25
- /**
26
- * Describes the message ottochain.apps.identity.v1.VouchRequest.
27
- * Use `create(VouchRequestSchema)` to create a new message.
28
- */
29
- exports.VouchRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_identity_v1_attestation, 2);
30
- /**
31
- * Describes the message ottochain.apps.identity.v1.ChallengeRequest.
32
- * Use `create(ChallengeRequestSchema)` to create a new message.
33
- */
34
- exports.ChallengeRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_identity_v1_attestation, 3);
35
- /**
36
- * Describes the message ottochain.apps.identity.v1.ReputationConfig.
37
- * Use `create(ReputationConfigSchema)` to create a new message.
38
- */
39
- exports.ReputationConfigSchema = (0, codegenv1_1.messageDesc)(exports.file_ottochain_apps_identity_v1_attestation, 4);
40
- /**
41
- * Types of attestations that affect reputation
42
- *
43
- * @generated from enum ottochain.apps.identity.v1.AttestationType
44
- */
45
- var AttestationType;
46
- (function (AttestationType) {
47
- /**
48
- * @generated from enum value: ATTESTATION_TYPE_UNSPECIFIED = 0;
49
- */
50
- AttestationType[AttestationType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
51
- /**
52
- * Contract completed successfully (+5)
53
- *
54
- * @generated from enum value: ATTESTATION_TYPE_COMPLETION = 1;
55
- */
56
- AttestationType[AttestationType["COMPLETION"] = 1] = "COMPLETION";
57
- /**
58
- * Vouched for by another agent (+2)
59
- *
60
- * @generated from enum value: ATTESTATION_TYPE_VOUCH = 2;
61
- */
62
- AttestationType[AttestationType["VOUCH"] = 2] = "VOUCH";
63
- /**
64
- * Protocol violation (-10)
65
- *
66
- * @generated from enum value: ATTESTATION_TYPE_VIOLATION = 3;
67
- */
68
- AttestationType[AttestationType["VIOLATION"] = 3] = "VIOLATION";
69
- /**
70
- * Positive behavioral signal (+3)
71
- *
72
- * @generated from enum value: ATTESTATION_TYPE_BEHAVIORAL = 4;
73
- */
74
- AttestationType[AttestationType["BEHAVIORAL"] = 4] = "BEHAVIORAL";
75
- })(AttestationType || (exports.AttestationType = AttestationType = {}));
76
- /**
77
- * Describes the enum ottochain.apps.identity.v1.AttestationType.
78
- */
79
- exports.AttestationTypeSchema = (0, codegenv1_1.enumDesc)(exports.file_ottochain_apps_identity_v1_attestation, 0);